opencode-swarm 7.138.3 → 7.139.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/.opencode/skills/execute/SKILL.md +11 -2
  2. package/.opencode/skills/swarm-implement/SKILL.md +1 -1
  3. package/dist/cli/{config-doctor-2mwgdbsn.js → config-doctor-aszp7z1h.js} +2 -2
  4. package/dist/cli/{core-v6bte964.js → core-3s832mxx.js} +1 -1
  5. package/dist/cli/{curation-policy-5dqexw5j.js → curation-policy-a3hs73f7.js} +6 -6
  6. package/dist/cli/{curator-llm-factory-wkjme59b.js → curator-llm-factory-e8ngwyjm.js} +26 -25
  7. package/dist/cli/{curator-jjtp9hn2.js → curator-zxjqcc8r.js} +26 -25
  8. package/dist/cli/{evidence-summary-service-6cttrkzw.js → evidence-summary-service-qfhjfxdz.js} +7 -7
  9. package/dist/cli/{gate-evidence-ecx4djaw.js → gate-evidence-m2grv70v.js} +4 -4
  10. package/dist/cli/{guardrail-explain-xppwfnxr.js → guardrail-explain-rqpmzxyy.js} +27 -26
  11. package/dist/cli/{guardrail-log-swet7rch.js → guardrail-log-vd4a0ng5.js} +4 -3
  12. package/dist/cli/{hive-promoter-xvq8jzbs.js → hive-promoter-jc5vym27.js} +26 -25
  13. package/dist/cli/{index-tc61fybd.js → index-0tsetsxs.js} +4 -4
  14. package/dist/cli/{index-jhb8kjc5.js → index-3nr2sn32.js} +3 -3
  15. package/dist/cli/{index-y06a43sk.js → index-4ft523nb.js} +323 -80
  16. package/dist/cli/index-556ja8an.js +62 -0
  17. package/dist/cli/{index-31vfewmn.js → index-5bkpyvdf.js} +271 -94
  18. package/dist/cli/{index-wqg74mwj.js → index-67yqywan.js} +2 -2
  19. package/dist/cli/{index-gda7cwqz.js → index-6q240xgm.js} +30 -68
  20. package/dist/cli/{index-adde7nm2.js → index-84s6x604.js} +5 -5
  21. package/dist/cli/{index-j0xx9wpj.js → index-85hstja2.js} +1 -1
  22. package/dist/cli/{index-xybtaph7.js → index-a614s16f.js} +1 -1
  23. package/dist/cli/{index-10mz5js6.js → index-chvqee1j.js} +2 -2
  24. package/dist/cli/{index-rrxcfxrd.js → index-ddmnhv4h.js} +1 -1
  25. package/dist/cli/{index-1v89yst3.js → index-gytyqv1d.js} +2 -2
  26. package/dist/cli/{index-93ky909v.js → index-kv36s0x0.js} +3 -3
  27. package/dist/cli/{index-z7jgvm9b.js → index-nbgw5dxa.js} +1 -1
  28. package/dist/cli/{index-tqshdzaw.js → index-nc544sfw.js} +1 -1
  29. package/dist/cli/{index-js7th5my.js → index-nsnfvckc.js} +1 -1
  30. package/dist/cli/{index-4fmztnrq.js → index-p2dz85tv.js} +2 -2
  31. package/dist/cli/{index-y6dvs5tt.js → index-q3qtgtd0.js} +1 -1
  32. package/dist/cli/{index-99af5gvd.js → index-r3pth9a7.js} +230 -118
  33. package/dist/cli/{index-ab57h0yq.js → index-rtetrxxq.js} +1 -1
  34. package/dist/cli/{index-rjratees.js → index-s428dmy6.js} +2 -2
  35. package/dist/cli/{index-q344kj84.js → index-t26nfmcs.js} +1 -1
  36. package/dist/cli/{index-1djv5684.js → index-t31cc7kv.js} +6 -6
  37. package/dist/cli/{index-39k6y018.js → index-tcdcj1g2.js} +2 -2
  38. package/dist/cli/{index-en4fb04r.js → index-tyh0p5e8.js} +1 -1
  39. package/dist/cli/{index-xgmx9had.js → index-y46anh5e.js} +28 -27
  40. package/dist/cli/index-ymszzvnr.js +1725 -0
  41. package/dist/cli/{index-ngqxzkqm.js → index-z1tkxzq4.js} +2 -2
  42. package/dist/cli/{index-btx8j39p.js → index-zd15ya1w.js} +1 -1
  43. package/dist/cli/index.js +26 -25
  44. package/dist/cli/{knowledge-escalator-7n384ys1.js → knowledge-escalator-6473ey4c.js} +7 -7
  45. package/dist/cli/{knowledge-events-yaj0yjd6.js → knowledge-events-wwzpz8m4.js} +5 -5
  46. package/dist/cli/{knowledge-link-xc6yhxmz.js → knowledge-link-trfydkzm.js} +4 -4
  47. package/dist/cli/{knowledge-store-d99k0z2d.js → knowledge-store-99gd42jy.js} +5 -5
  48. package/dist/cli/{knowledge-validator-e5fqy9h4.js → knowledge-validator-v2eevvdg.js} +8 -8
  49. package/dist/cli/{pending-delegations-7dbc0j2a.js → pending-delegations-p6n83x67.js} +3 -3
  50. package/dist/cli/{pr-subscriptions-m943zn6g.js → pr-subscriptions-xbrfr51c.js} +3 -3
  51. package/dist/cli/{runner-x1hy047y.js → runner-9an52tmz.js} +5 -5
  52. package/dist/cli/{scan-cursor-9y9msabt.js → scan-cursor-39zxpw34.js} +6 -6
  53. package/dist/cli/{schema-xg5f11md.js → schema-xhfwr6b2.js} +1 -1
  54. package/dist/cli/scope-persistence-nsa6ra9s.js +61 -0
  55. package/dist/cli/{skill-generator-arvwfdfh.js → skill-generator-5px81476.js} +9 -9
  56. package/dist/cli/{telemetry-0yqed3jv.js → telemetry-7nt7zhyp.js} +1 -1
  57. package/dist/cli/{worktree-collision-ownership-hjrt5hx2.js → worktree-collision-ownership-9x4s4890.js} +3 -3
  58. package/dist/hooks/guardrails/destructive-command.d.ts +35 -0
  59. package/dist/hooks/guardrails/file-authority.d.ts +71 -26
  60. package/dist/hooks/guardrails/index.d.ts +2 -0
  61. package/dist/hooks/guardrails/tool-before.d.ts +5 -0
  62. package/dist/hooks/scope-guard.d.ts +3 -1
  63. package/dist/index.js +533 -522
  64. package/dist/plan/manager.d.ts +2 -0
  65. package/dist/scope/path-identity.d.ts +27 -0
  66. package/dist/scope/scope-binding.d.ts +90 -2
  67. package/dist/scope/scope-lease-renewal.d.ts +28 -0
  68. package/dist/scope/scope-persistence.d.ts +102 -19
  69. package/dist/scope/scope-resolution-diagnostic.d.ts +7 -0
  70. package/dist/services/run-memory.d.ts +53 -5
  71. package/dist/tools/declare-scope.d.ts +3 -1
  72. package/dist/tools/save-plan.d.ts +2 -0
  73. package/dist/tools/update-task-status.d.ts +2 -0
  74. package/dist/turbo/lean/lane-scope.d.ts +1 -1
  75. package/dist/utils/path-security.d.ts +25 -1
  76. package/package.json +1 -1
  77. package/dist/cli/index-2y4jy0de.js +0 -642
  78. package/dist/cli/scope-persistence-n1bryhzf.js +0 -38
@@ -9,10 +9,10 @@ import {
9
9
  } from "./index-y8552snf.js";
10
10
  import {
11
11
  atomicWriteFile
12
- } from "./index-tqshdzaw.js";
12
+ } from "./index-nc544sfw.js";
13
13
  import {
14
14
  withEvidenceLock
15
- } from "./index-xybtaph7.js";
15
+ } from "./index-a614s16f.js";
16
16
  import {
17
17
  exports_external,
18
18
  init_zod
@@ -6,7 +6,7 @@ import {
6
6
  PluginConfigSchema,
7
7
  init_schema,
8
8
  stripKnownSwarmPrefix
9
- } from "./index-ab57h0yq.js";
9
+ } from "./index-rtetrxxq.js";
10
10
  import {
11
11
  ALL_AGENT_NAMES,
12
12
  init_constants
package/dist/cli/index.js CHANGED
@@ -6,60 +6,61 @@ import {
6
6
  getPluginConfigDir,
7
7
  getPluginLockFilePaths,
8
8
  resolveCommand
9
- } from "./index-99af5gvd.js";
9
+ } from "./index-r3pth9a7.js";
10
10
  import"./index-vm4xw9z3.js";
11
- import"./index-rrxcfxrd.js";
12
- import"./index-31vfewmn.js";
13
- import"./index-btx8j39p.js";
14
- import"./index-y06a43sk.js";
15
- import"./index-ngqxzkqm.js";
11
+ import"./index-ddmnhv4h.js";
12
+ import"./index-5bkpyvdf.js";
13
+ import"./index-zd15ya1w.js";
14
+ import"./index-4ft523nb.js";
15
+ import"./index-z1tkxzq4.js";
16
16
  import"./index-y8552snf.js";
17
17
  import"./index-4905hd2m.js";
18
18
  import"./index-134d35c1.js";
19
- import"./index-jhb8kjc5.js";
20
- import"./index-adde7nm2.js";
21
- import"./index-rjratees.js";
19
+ import"./index-3nr2sn32.js";
20
+ import"./index-84s6x604.js";
21
+ import"./index-s428dmy6.js";
22
22
  import"./index-6mjf4vr1.js";
23
23
  import"./index-c8s9a3zh.js";
24
24
  import"./index-9ss2m4rs.js";
25
25
  import"./index-wsdnttf4.js";
26
- import"./index-39k6y018.js";
27
- import"./index-tc61fybd.js";
28
- import"./index-wqg74mwj.js";
26
+ import"./index-tcdcj1g2.js";
27
+ import"./index-0tsetsxs.js";
28
+ import"./index-67yqywan.js";
29
29
  import"./index-rtry5xyf.js";
30
- import"./index-1djv5684.js";
31
- import"./index-93ky909v.js";
30
+ import"./index-t31cc7kv.js";
31
+ import"./index-kv36s0x0.js";
32
32
  import"./index-ae75rja9.js";
33
- import"./index-en4fb04r.js";
34
- import"./index-tqshdzaw.js";
35
- import"./index-y6dvs5tt.js";
33
+ import"./index-tyh0p5e8.js";
34
+ import"./index-nc544sfw.js";
35
+ import"./index-q3qtgtd0.js";
36
36
  import"./index-gprxjmm7.js";
37
37
  import"./index-n832052r.js";
38
38
  import {
39
39
  init_package,
40
40
  package_default
41
- } from "./index-ab57h0yq.js";
41
+ } from "./index-rtetrxxq.js";
42
42
  import"./index-bk5tah7q.js";
43
43
  import"./index-8fwhhayc.js";
44
44
  import"./index-q1exe2b3.js";
45
- import"./index-z7jgvm9b.js";
46
- import"./index-2y4jy0de.js";
47
- import"./index-4fmztnrq.js";
45
+ import"./index-nbgw5dxa.js";
46
+ import"./index-ymszzvnr.js";
47
+ import"./index-556ja8an.js";
48
+ import"./index-p2dz85tv.js";
48
49
  import"./index-1kz6da87.js";
49
50
  import"./index-x20cgr2q.js";
50
51
  import"./index-b8zgtz81.js";
51
- import"./index-j0xx9wpj.js";
52
+ import"./index-85hstja2.js";
52
53
  import"./index-4rhhvd1a.js";
53
54
  import {
54
55
  DEFAULT_AGENT_CONFIGS,
55
56
  init_constants
56
57
  } from "./index-3jcyn8g6.js";
57
- import"./index-q344kj84.js";
58
+ import"./index-t26nfmcs.js";
58
59
  import"./index-4qzeef9h.js";
59
60
  import"./index-fsrp8wp3.js";
60
- import"./index-xybtaph7.js";
61
+ import"./index-a614s16f.js";
61
62
  import"./index-7g4c7s5r.js";
62
- import"./index-10mz5js6.js";
63
+ import"./index-chvqee1j.js";
63
64
  import"./index-bpmtbmy9.js";
64
65
  import"./index-z6xqpmqg.js";
65
66
  import"./index-zjygnfay.js";
@@ -8,17 +8,17 @@ import {
8
8
  maybeEscalateOnViolation,
9
9
  maybeQuarantineOnContradiction,
10
10
  readRecentEscalations
11
- } from "./index-adde7nm2.js";
12
- import"./index-1djv5684.js";
13
- import"./index-93ky909v.js";
11
+ } from "./index-84s6x604.js";
12
+ import"./index-t31cc7kv.js";
13
+ import"./index-kv36s0x0.js";
14
14
  import"./index-ae75rja9.js";
15
- import"./index-en4fb04r.js";
16
- import"./index-tqshdzaw.js";
15
+ import"./index-tyh0p5e8.js";
16
+ import"./index-nc544sfw.js";
17
17
  import"./index-bk5tah7q.js";
18
18
  import"./index-fsrp8wp3.js";
19
- import"./index-xybtaph7.js";
19
+ import"./index-a614s16f.js";
20
20
  import"./index-7g4c7s5r.js";
21
- import"./index-10mz5js6.js";
21
+ import"./index-chvqee1j.js";
22
22
  import"./index-bpmtbmy9.js";
23
23
  import"./index-y111zefa.js";
24
24
  import"./index-zgwm4ryv.js";
@@ -28,14 +28,14 @@ import {
28
28
  resolveKnowledgeCounterBaselinePath,
29
29
  resolveKnowledgeEventsPath,
30
30
  resolveLegacyApplicationLogPath
31
- } from "./index-93ky909v.js";
31
+ } from "./index-kv36s0x0.js";
32
32
  import"./index-ae75rja9.js";
33
- import"./index-en4fb04r.js";
34
- import"./index-tqshdzaw.js";
33
+ import"./index-tyh0p5e8.js";
34
+ import"./index-nc544sfw.js";
35
35
  import"./index-fsrp8wp3.js";
36
- import"./index-xybtaph7.js";
36
+ import"./index-a614s16f.js";
37
37
  import"./index-7g4c7s5r.js";
38
- import"./index-10mz5js6.js";
38
+ import"./index-chvqee1j.js";
39
39
  import"./index-bpmtbmy9.js";
40
40
  import"./index-y111zefa.js";
41
41
  import"./index-zgwm4ryv.js";
@@ -12,12 +12,12 @@ import {
12
12
  resolveLinkDir,
13
13
  sanitizeLinkId,
14
14
  writeLinkPointer
15
- } from "./index-en4fb04r.js";
16
- import"./index-tqshdzaw.js";
15
+ } from "./index-tyh0p5e8.js";
16
+ import"./index-nc544sfw.js";
17
17
  import"./index-fsrp8wp3.js";
18
- import"./index-xybtaph7.js";
18
+ import"./index-a614s16f.js";
19
19
  import"./index-7g4c7s5r.js";
20
- import"./index-10mz5js6.js";
20
+ import"./index-chvqee1j.js";
21
21
  import"./index-bpmtbmy9.js";
22
22
  import"./index-y111zefa.js";
23
23
  import"./index-zgwm4ryv.js";
@@ -41,17 +41,17 @@ import {
41
41
  transactKnowledge,
42
42
  transactKnowledgeWithCas,
43
43
  wordBigrams
44
- } from "./index-1djv5684.js";
44
+ } from "./index-t31cc7kv.js";
45
45
  import {
46
46
  resolveHiveDataDir
47
47
  } from "./index-ae75rja9.js";
48
- import"./index-en4fb04r.js";
49
- import"./index-tqshdzaw.js";
48
+ import"./index-tyh0p5e8.js";
49
+ import"./index-nc544sfw.js";
50
50
  import"./index-bk5tah7q.js";
51
51
  import"./index-fsrp8wp3.js";
52
- import"./index-xybtaph7.js";
52
+ import"./index-a614s16f.js";
53
53
  import"./index-7g4c7s5r.js";
54
- import"./index-10mz5js6.js";
54
+ import"./index-chvqee1j.js";
55
55
  import"./index-bpmtbmy9.js";
56
56
  import"./index-y111zefa.js";
57
57
  import"./index-zgwm4ryv.js";
@@ -23,19 +23,19 @@ import {
23
23
  validateLesson,
24
24
  validateSkillCandidatePath,
25
25
  validateSkillPath
26
- } from "./index-tc61fybd.js";
27
- import"./index-wqg74mwj.js";
26
+ } from "./index-0tsetsxs.js";
27
+ import"./index-67yqywan.js";
28
28
  import"./index-rtry5xyf.js";
29
- import"./index-1djv5684.js";
30
- import"./index-93ky909v.js";
29
+ import"./index-t31cc7kv.js";
30
+ import"./index-kv36s0x0.js";
31
31
  import"./index-ae75rja9.js";
32
- import"./index-en4fb04r.js";
33
- import"./index-tqshdzaw.js";
32
+ import"./index-tyh0p5e8.js";
33
+ import"./index-nc544sfw.js";
34
34
  import"./index-bk5tah7q.js";
35
35
  import"./index-fsrp8wp3.js";
36
- import"./index-xybtaph7.js";
36
+ import"./index-a614s16f.js";
37
37
  import"./index-7g4c7s5r.js";
38
- import"./index-10mz5js6.js";
38
+ import"./index-chvqee1j.js";
39
39
  import"./index-bpmtbmy9.js";
40
40
  import"./index-y111zefa.js";
41
41
  import"./index-zgwm4ryv.js";
@@ -41,12 +41,12 @@ import {
41
41
  sweepStaleDelegations,
42
42
  updateCoderSettlement,
43
43
  writeDelegationFallback
44
- } from "./index-q344kj84.js";
44
+ } from "./index-t26nfmcs.js";
45
45
  import"./index-4qzeef9h.js";
46
46
  import"./index-fsrp8wp3.js";
47
- import"./index-xybtaph7.js";
47
+ import"./index-a614s16f.js";
48
48
  import"./index-7g4c7s5r.js";
49
- import"./index-10mz5js6.js";
49
+ import"./index-chvqee1j.js";
50
50
  import"./index-bpmtbmy9.js";
51
51
  import"./index-z6xqpmqg.js";
52
52
  import"./index-zjygnfay.js";
@@ -9,12 +9,12 @@ import {
9
9
  sweepStale,
10
10
  unsubscribe,
11
11
  updateSnapshot
12
- } from "./index-z7jgvm9b.js";
12
+ } from "./index-nbgw5dxa.js";
13
13
  import"./index-4qzeef9h.js";
14
14
  import"./index-fsrp8wp3.js";
15
- import"./index-xybtaph7.js";
15
+ import"./index-a614s16f.js";
16
16
  import"./index-7g4c7s5r.js";
17
- import"./index-10mz5js6.js";
17
+ import"./index-chvqee1j.js";
18
18
  import"./index-bpmtbmy9.js";
19
19
  import"./index-z6xqpmqg.js";
20
20
  import"./index-zjygnfay.js";
@@ -3,14 +3,14 @@ import {
3
3
  _internals,
4
4
  createModelEvaluationExecutor,
5
5
  runEvaluation
6
- } from "./index-rrxcfxrd.js";
7
- import"./index-ngqxzkqm.js";
6
+ } from "./index-ddmnhv4h.js";
7
+ import"./index-z1tkxzq4.js";
8
8
  import"./index-y8552snf.js";
9
- import"./index-tqshdzaw.js";
9
+ import"./index-nc544sfw.js";
10
10
  import"./index-fsrp8wp3.js";
11
- import"./index-xybtaph7.js";
11
+ import"./index-a614s16f.js";
12
12
  import"./index-7g4c7s5r.js";
13
- import"./index-10mz5js6.js";
13
+ import"./index-chvqee1j.js";
14
14
  import"./index-bpmtbmy9.js";
15
15
  import"./index-y111zefa.js";
16
16
  import"./index-a76rekgs.js";
@@ -4,16 +4,16 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-rjratees.js";
8
- import"./index-1djv5684.js";
7
+ } from "./index-s428dmy6.js";
8
+ import"./index-t31cc7kv.js";
9
9
  import"./index-ae75rja9.js";
10
- import"./index-en4fb04r.js";
11
- import"./index-tqshdzaw.js";
10
+ import"./index-tyh0p5e8.js";
11
+ import"./index-nc544sfw.js";
12
12
  import"./index-bk5tah7q.js";
13
13
  import"./index-fsrp8wp3.js";
14
- import"./index-xybtaph7.js";
14
+ import"./index-a614s16f.js";
15
15
  import"./index-7g4c7s5r.js";
16
- import"./index-10mz5js6.js";
16
+ import"./index-chvqee1j.js";
17
17
  import"./index-bpmtbmy9.js";
18
18
  import"./index-y111zefa.js";
19
19
  import"./index-zgwm4ryv.js";
@@ -95,7 +95,7 @@ import {
95
95
  resolveGeneratedAgentRole,
96
96
  resolveGuardrailsConfig,
97
97
  stripKnownSwarmPrefix
98
- } from "./index-ab57h0yq.js";
98
+ } from "./index-rtetrxxq.js";
99
99
  import"./index-bk5tah7q.js";
100
100
  import"./index-3jcyn8g6.js";
101
101
  import"./index-bpmtbmy9.js";
@@ -0,0 +1,61 @@
1
+ // @bun
2
+ import {
3
+ _scopePersistenceInternals,
4
+ claimScopeBindingForChildDurably,
5
+ clearAllScopes,
6
+ clearScopeBindingFromDisk,
7
+ clearScopeForTask,
8
+ flushScopeBindingMaintenance,
9
+ persistAndRegisterScopeBinding,
10
+ pruneScopeBindingTombstones,
11
+ readPlanScope,
12
+ readScopeBindingFromDisk,
13
+ readScopeFromDisk,
14
+ refreshScopeBindingLease,
15
+ replaceExistingScopeDeclaration,
16
+ resolveAuthorizedPrFeedbackScopeBindingFromDisk,
17
+ resolveAuthorizedScopeBinding,
18
+ resolveAuthorizedScopeBindingDetailed,
19
+ resolveAuthorizedScopeBindingForSession,
20
+ resolveAuthorizedScopeBindingForSessionDetailed,
21
+ resolveScopeBindingFromDisk,
22
+ resolveScopeWithFallbacks,
23
+ tombstoneScopeBinding,
24
+ writeScopeBindingToDisk,
25
+ writeScopeToDisk
26
+ } from "./index-ymszzvnr.js";
27
+ import"./index-556ja8an.js";
28
+ import"./index-p2dz85tv.js";
29
+ import"./index-1kz6da87.js";
30
+ import"./index-a614s16f.js";
31
+ import"./index-7g4c7s5r.js";
32
+ import"./index-chvqee1j.js";
33
+ import"./index-bpmtbmy9.js";
34
+ import"./index-y111zefa.js";
35
+ import"./index-zgwm4ryv.js";
36
+ import"./index-a76rekgs.js";
37
+ export {
38
+ writeScopeToDisk,
39
+ writeScopeBindingToDisk,
40
+ tombstoneScopeBinding,
41
+ resolveScopeWithFallbacks,
42
+ resolveScopeBindingFromDisk,
43
+ resolveAuthorizedScopeBindingForSessionDetailed,
44
+ resolveAuthorizedScopeBindingForSession,
45
+ resolveAuthorizedScopeBindingDetailed,
46
+ resolveAuthorizedScopeBinding,
47
+ resolveAuthorizedPrFeedbackScopeBindingFromDisk,
48
+ replaceExistingScopeDeclaration,
49
+ refreshScopeBindingLease,
50
+ readScopeFromDisk,
51
+ readScopeBindingFromDisk,
52
+ readPlanScope,
53
+ pruneScopeBindingTombstones,
54
+ persistAndRegisterScopeBinding,
55
+ flushScopeBindingMaintenance,
56
+ clearScopeForTask,
57
+ clearScopeBindingFromDisk,
58
+ clearAllScopes,
59
+ claimScopeBindingForChildDurably,
60
+ _scopePersistenceInternals
61
+ };
@@ -33,21 +33,21 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-jhb8kjc5.js";
37
- import"./index-tc61fybd.js";
38
- import"./index-wqg74mwj.js";
36
+ } from "./index-3nr2sn32.js";
37
+ import"./index-0tsetsxs.js";
38
+ import"./index-67yqywan.js";
39
39
  import"./index-rtry5xyf.js";
40
- import"./index-1djv5684.js";
41
- import"./index-93ky909v.js";
40
+ import"./index-t31cc7kv.js";
41
+ import"./index-kv36s0x0.js";
42
42
  import"./index-ae75rja9.js";
43
- import"./index-en4fb04r.js";
44
- import"./index-tqshdzaw.js";
43
+ import"./index-tyh0p5e8.js";
44
+ import"./index-nc544sfw.js";
45
45
  import"./index-bk5tah7q.js";
46
46
  import"./index-4rhhvd1a.js";
47
47
  import"./index-fsrp8wp3.js";
48
- import"./index-xybtaph7.js";
48
+ import"./index-a614s16f.js";
49
49
  import"./index-7g4c7s5r.js";
50
- import"./index-10mz5js6.js";
50
+ import"./index-chvqee1j.js";
51
51
  import"./index-bpmtbmy9.js";
52
52
  import"./index-y111zefa.js";
53
53
  import"./index-zgwm4ryv.js";
@@ -13,7 +13,7 @@ import {
13
13
  startHeartbeatTracking,
14
14
  stopHeartbeatTracking,
15
15
  telemetry
16
- } from "./index-10mz5js6.js";
16
+ } from "./index-chvqee1j.js";
17
17
  import"./index-bpmtbmy9.js";
18
18
  import"./index-a76rekgs.js";
19
19
  export {
@@ -8,12 +8,12 @@ import {
8
8
  import {
9
9
  scanDelegationFallbacksForRecovery,
10
10
  scanDelegationsForRecovery
11
- } from "./index-q344kj84.js";
11
+ } from "./index-t26nfmcs.js";
12
12
  import"./index-4qzeef9h.js";
13
13
  import"./index-fsrp8wp3.js";
14
- import"./index-xybtaph7.js";
14
+ import"./index-a614s16f.js";
15
15
  import"./index-7g4c7s5r.js";
16
- import"./index-10mz5js6.js";
16
+ import"./index-chvqee1j.js";
17
17
  import"./index-bpmtbmy9.js";
18
18
  import"./index-z6xqpmqg.js";
19
19
  import"./index-zjygnfay.js";
@@ -58,6 +58,13 @@ export declare function dcUnwrapWrappers(cmd: string): string;
58
58
  * Returns array of trimmed non-empty segments.
59
59
  */
60
60
  export declare function dcSplitSegments(cmd: string): string[];
61
+ /**
62
+ * Extract targets from an `rm` command whose leading option set requests
63
+ * recursive or forced deletion. Accepts stacked short flags and long flags in
64
+ * any leading order. Quoted targets remain one token. Returns null when the
65
+ * segment is not a destructive rm form.
66
+ */
67
+ export declare function dcExtractRecursiveRmTargets(segment: string): string[] | null;
61
68
  /**
62
69
  * Returns true if a path string contains unexpanded environment variable
63
70
  * references that we cannot resolve at check time.
@@ -87,6 +94,34 @@ export declare function dcLstatAncestorWalk(targetPath: string, cwd: string): st
87
94
  * Returns a block reason string or null if targets are acceptable.
88
95
  */
89
96
  export declare function dcValidateTargets(targets: string[], cwd: string): string | null;
97
+ export interface DcVerifiedScope {
98
+ bindingId: string;
99
+ generationId: string;
100
+ files: string[];
101
+ }
102
+ export type DcRecursiveDeleteDecision = {
103
+ allowed: true;
104
+ kind: 'bare-safe-artifact' | 'scoped-nested-safe-artifact';
105
+ targets: string[];
106
+ } | {
107
+ allowed: false;
108
+ code: 'DESTRUCTIVE_TARGET_INVALID' | 'DESTRUCTIVE_TARGET_PROTECTED' | 'DESTRUCTIVE_TARGET_OUTSIDE_WORKSPACE' | 'DESTRUCTIVE_TARGET_NOT_SAFE_ARTIFACT' | 'DESTRUCTIVE_TARGET_SCOPE_REQUIRED' | 'DESTRUCTIVE_TARGET_OUT_OF_SCOPE';
109
+ reason: string;
110
+ };
111
+ /**
112
+ * Evaluate recursive-delete targets as one atomic set.
113
+ *
114
+ * Bare safe artifact names remain statically allowable after common target
115
+ * validation. Nested targets require an allowlisted final component and a
116
+ * resolver-produced active binding identity covering the target. Arbitrary
117
+ * in-scope directories are never exempt, and `.git`/`.swarm` are protected at
118
+ * every depth.
119
+ */
120
+ export declare function dcEvaluateRecursiveDeleteTargets(input: {
121
+ targets: string[];
122
+ cwd: string;
123
+ verifiedScope?: DcVerifiedScope;
124
+ }): DcRecursiveDeleteDecision;
90
125
  /**
91
126
  * Detect Windows junction or symlink CREATION commands.
92
127
  * Junction creation followed by recursive deletion of the junction is the
@@ -11,6 +11,7 @@
11
11
  import * as path from 'node:path';
12
12
  import { type AuthorityConfig } from '../../config/schema';
13
13
  import { type FileZone } from '../../context/zone-classifier';
14
+ import { type PathFlavor } from '../../scope/path-identity';
14
15
  /**
15
16
  * Hashes tool arguments for repetition detection.
16
17
  *
@@ -106,6 +107,39 @@ export type AgentRule = {
106
107
  allowedGlobs?: string[];
107
108
  allowedCaseSensitiveGlobs?: string[];
108
109
  };
110
+ export type AuthorityRoleCapability = 'native' | 'direct-write' | 'read-only' | 'dedicated-tool-only';
111
+ /**
112
+ * Exhaustive classification for every swarm role. Dedicated-tool roles may
113
+ * mutate state only through their purpose-built tools, never raw file writes.
114
+ */
115
+ export declare const AUTHORITY_ROLE_CAPABILITIES: {
116
+ readonly architect: "direct-write";
117
+ readonly coder: "direct-write";
118
+ readonly reviewer: "direct-write";
119
+ readonly critic: "direct-write";
120
+ readonly critic_oversight: "dedicated-tool-only";
121
+ readonly critic_finding_validator: "dedicated-tool-only";
122
+ readonly explorer: "read-only";
123
+ readonly sme: "read-only";
124
+ readonly researcher: "read-only";
125
+ readonly test_engineer: "direct-write";
126
+ readonly docs: "direct-write";
127
+ readonly docs_design: "direct-write";
128
+ readonly designer: "direct-write";
129
+ readonly critic_sounding_board: "read-only";
130
+ readonly critic_drift_verifier: "read-only";
131
+ readonly critic_hallucination_verifier: "read-only";
132
+ readonly critic_architecture_supervisor: "read-only";
133
+ readonly curator_init: "dedicated-tool-only";
134
+ readonly curator_phase: "dedicated-tool-only";
135
+ readonly curator_postmortem: "dedicated-tool-only";
136
+ readonly curator_consolidation: "dedicated-tool-only";
137
+ readonly council_generalist: "read-only";
138
+ readonly council_skeptic: "read-only";
139
+ readonly council_domain_expert: "read-only";
140
+ readonly skill_improver: "dedicated-tool-only";
141
+ readonly spec_writer: "dedicated-tool-only";
142
+ };
109
143
  export declare const DEFAULT_AGENT_AUTHORITY_RULES: Record<string, AgentRule>;
110
144
  /**
111
145
  * Checks whether a write target path (or any ancestor strictly inside cwd)
@@ -126,6 +160,13 @@ export declare const DEFAULT_AGENT_AUTHORITY_RULES: Record<string, AgentRule>;
126
160
  * @returns A block reason string if a symlink is detected, null if all clear.
127
161
  */
128
162
  export declare function checkWriteTargetForSymlink(targetPath: string, cwd: string): string | null;
163
+ /**
164
+ * Match configured authority prefixes using normalized lexical-prefix
165
+ * semantics. Thus `.env` covers `.env.local`; resolving both operands against
166
+ * one workspace root prevents sibling-workspace string collisions. Windows
167
+ * comparisons case-fold while POSIX comparisons remain case-sensitive.
168
+ */
169
+ export declare function matchesAuthorityDenyPrefix(candidate: string, prefix: string, cwd: string, flavor?: PathFlavor): boolean;
129
170
  /**
130
171
  * Builds the effective rules map by merging user-configured rules with defaults.
131
172
  * User overrides take precedence for each field.
@@ -144,38 +185,42 @@ export declare function buildEffectiveRules(authorityConfig?: AuthorityConfig):
144
185
  * pass `path.win32` / `path.posix` directly.
145
186
  */
146
187
  export declare function isOnDifferentFilesystemRoot(targetAbsolute: string, cwdAbsolute: string, pathLib?: Pick<typeof path, 'parse'>): boolean;
147
- /**
148
- * Checks file path authority against a pre-computed rules map.
149
- * Implements DENY-first evaluation order:
150
- * 1. readOnly - blocks all writes
151
- * 2. blockedExact - exact path matches (fast path)
152
- * 3. blockedGlobs - glob pattern matches
153
- * 4. allowedExact - explicit allow for exact paths
154
- * 5. blockedZones - zone-based blocking (runs before allowedGlobs so that generated
155
- * output dirs like dist/ and build/ cannot be bypassed by a glob pattern match)
156
- * 6. allowedGlobs - explicit allow for glob patterns (overrides blockedPrefix/allowedPrefix
157
- * but NOT blockedZones, which is already decided in Step 5)
158
- * 7. blockedPrefix - prefix-based blocking (takes priority over allowedPrefix)
159
- * 8. allowedPrefix - prefix-based allow (whitelist)
160
- */
161
- export declare function checkFileAuthorityWithRules(agentName: string, filePath: string, cwd: string, effectiveRules: Record<string, AgentRule>, options?: {
162
- declaredScope?: string[] | null;
163
- }): {
188
+ export declare const BUILT_IN_VERIFIER_CONFIG_GLOBS: readonly ["**/oxlintrc*", "**/.oxlintrc*", "**/.eslintrc*", "**/eslint.config.*", "**/.prettierrc*", "**/prettier.config.*", "**/biome.json", "**/biome.jsonc", "**/tsconfig*.json", "**/.secretscanignore", "**/.golangci*"];
189
+ export type AuthorityDecisionCode = 'AUTHORITY_INVALID_PATH' | 'AUTHORITY_ROOT_ESCAPE' | 'AUTHORITY_UNIVERSAL_DENY' | 'AUTHORITY_PROTECTED_PATH' | 'AUTHORITY_VERIFIER_CONFIG' | 'AUTHORITY_ROLE_READ_ONLY' | 'AUTHORITY_UNKNOWN_AGENT' | 'AUTHORITY_POLICY_DENY';
190
+ export type AuthorityDecisionLayer = 'path-validation' | 'containment' | 'universal-deny' | 'protected-path' | 'role-capability' | 'declared-scope' | 'role-policy';
191
+ export type AuthorityRecoveryAction = 'declare_scope' | 'save_plan';
192
+ export type AuthorityDecision = {
164
193
  allowed: true;
194
+ layer: AuthorityDecisionLayer;
195
+ path: string;
196
+ agent: string;
165
197
  } | {
166
198
  allowed: false;
199
+ code: AuthorityDecisionCode;
200
+ layer: AuthorityDecisionLayer;
201
+ rule: string;
202
+ path: string;
203
+ agent: string;
167
204
  reason: string;
205
+ recovery?: AuthorityRecoveryAction;
168
206
  zone?: FileZone;
169
207
  };
208
+ export interface AuthorityEvaluationOptions {
209
+ declaredScope?: string[] | null;
210
+ authorityEnabled?: boolean;
211
+ universalDenyPrefixes?: readonly string[];
212
+ verifierConfigPaths?: readonly string[];
213
+ }
214
+ /**
215
+ * Checks file path authority against a pre-computed rules map. Evaluation is
216
+ * staged: safe path + workspace containment; universal and protected denies;
217
+ * immutable role capability; exact declared coder scope; then configurable
218
+ * role policy. Scope can therefore authorize config/generated deliverables but
219
+ * can never authorize `.swarm`, verifier config, universal denies, root escape,
220
+ * or raw writes from read-only/dedicated-tool roles.
221
+ */
222
+ export declare function checkFileAuthorityWithRules(agentName: string, filePath: string, cwd: string, effectiveRules: Record<string, AgentRule>, options?: AuthorityEvaluationOptions): AuthorityDecision;
170
223
  /**
171
224
  * Checks whether the given agent is authorised to write to the given file path.
172
225
  */
173
- export declare function checkFileAuthority(agentName: string, filePath: string, cwd: string, authorityConfig?: AuthorityConfig, options?: {
174
- declaredScope?: string[] | null;
175
- }): {
176
- allowed: true;
177
- } | {
178
- allowed: false;
179
- reason: string;
180
- zone?: FileZone;
181
- };
226
+ export declare function checkFileAuthority(agentName: string, filePath: string, cwd: string, authorityConfig?: AuthorityConfig, options?: AuthorityEvaluationOptions): AuthorityDecision;
@@ -8,6 +8,7 @@
8
8
  */
9
9
  import { extractSwarmIdFromAgentName, getSwarmAgents, resolveFallbackModel } from '../../agents/index';
10
10
  import { type AuthorityConfig, type GuardrailsConfig } from '../../config/schema';
11
+ import { getExecutor } from '../../sandbox/executor';
11
12
  import { dcCheckJunctionCreation } from './destructive-command';
12
13
  import { getMostRecentAssistantText, getProviderFailureFingerprint, isTransientProviderFailureText } from './messages-transform';
13
14
  export declare const _internals: {
@@ -19,6 +20,7 @@ export declare const _internals: {
19
20
  resolveFallbackModel: typeof resolveFallbackModel;
20
21
  dcCheckJunctionCreation: typeof dcCheckJunctionCreation;
21
22
  extractErrorSignal: typeof extractErrorSignal;
23
+ getSandboxExecutor: typeof getExecutor;
22
24
  /**
23
25
  * Test/inspection seams for the no-op detector's bounded session state
24
26
  * (invariant 8). Production code does not call these; they exist so the