opencode-swarm 7.200.3 → 7.200.5

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 (96) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/cli/{attest-task-k7b87zk8.js → attest-task-0k72fh70.js} +41 -41
  4. package/dist/cli/{auto-checkpoint-pzsrkk2q.js → auto-checkpoint-8g004dar.js} +7 -7
  5. package/dist/cli/{checkpoint-sb3f8jfv.js → checkpoint-18wx2473.js} +15 -15
  6. package/dist/cli/{coder-settlement-5jh2erx1.js → coder-settlement-r2q6pkxc.js} +10 -10
  7. package/dist/cli/{config-doctor-8keyw62b.js → config-doctor-h071vxsj.js} +14 -14
  8. package/dist/cli/{core-7240e0vh.js → core-6767154r.js} +3 -3
  9. package/dist/cli/{curation-policy-fth5n93x.js → curation-policy-gy868ec3.js} +4 -4
  10. package/dist/cli/{curator-drift-r4yttpe9.js → curator-drift-gd7tckag.js} +8 -8
  11. package/dist/cli/curator-llm-factory-mf701qb7.js +82 -0
  12. package/dist/cli/{curator-1jhwv0ce.js → curator-pf0edk2z.js} +41 -41
  13. package/dist/cli/{doctor-knowledge-receipt-phase-id-1v5fx0rk.js → doctor-knowledge-receipt-phase-id-zz0tz3pt.js} +8 -7
  14. package/dist/cli/{evidence-summary-service-zkbzsjbf.js → evidence-summary-service-awjxt2am.js} +18 -18
  15. package/dist/cli/{gate-evidence-j4jemrv7.js → gate-evidence-tvkhkqwy.js} +5 -5
  16. package/dist/cli/guardrail-explain-m70anx1g.js +83 -0
  17. package/dist/cli/{guardrail-log-0xjg12y1.js → guardrail-log-3sf6n33b.js} +6 -6
  18. package/dist/cli/{guardrail-reset-rgbt0zgy.js → guardrail-reset-t94jbv1q.js} +41 -41
  19. package/dist/cli/{hive-promoter-f0rzkbww.js → hive-promoter-60h9tqgs.js} +41 -41
  20. package/dist/cli/{index-44z8mv05.js → index-10myvh2k.js} +4 -4
  21. package/dist/cli/{index-j2x2ajz7.js → index-1akazdbj.js} +3 -3
  22. package/dist/cli/{index-eac47j2q.js → index-1asbb0r4.js} +5 -5
  23. package/dist/cli/{index-bft3404e.js → index-1by2qd8n.js} +4 -4
  24. package/dist/cli/{index-na6ph1fp.js → index-2x015vjy.js} +1 -1
  25. package/dist/cli/{index-8x90j950.js → index-3x8mz39c.js} +2 -2
  26. package/dist/cli/{index-g57p8p1k.js → index-4fkxdnc7.js} +1 -1
  27. package/dist/cli/{index-5q3hg1pk.js → index-4krkevgc.js} +1 -1
  28. package/dist/cli/{index-bcn30s7q.js → index-4mjfdpte.js} +6 -6
  29. package/dist/cli/{index-5snwc3dz.js → index-4ph7ad0b.js} +1 -1
  30. package/dist/cli/{index-vyb5xf36.js → index-5qajesjq.js} +3 -3
  31. package/dist/cli/{index-5g0nrnyd.js → index-687c2ze1.js} +6 -6
  32. package/dist/cli/{index-v3bmwmqw.js → index-697mg68b.js} +10 -2
  33. package/dist/cli/{index-q49vqmzh.js → index-74n7sz4s.js} +3 -3
  34. package/dist/cli/{index-7rpcbnp8.js → index-7h22y3ew.js} +2 -2
  35. package/dist/cli/{index-y46b7a5g.js → index-826kptfe.js} +7 -7
  36. package/dist/cli/{index-95k0fkhp.js → index-8c51asrp.js} +2038 -1906
  37. package/dist/cli/{index-ypxq0x7r.js → index-8srvdpw6.js} +1 -1
  38. package/dist/cli/{index-xxvman1m.js → index-b4amh1n3.js} +4 -4
  39. package/dist/cli/{index-0vv7vzp8.js → index-bk8r4m9j.js} +2 -2
  40. package/dist/cli/{index-mff4szvk.js → index-cy2gbs5b.js} +4 -4
  41. package/dist/cli/{index-tmhwpzdg.js → index-dsqavehz.js} +1 -1
  42. package/dist/cli/{index-v5nh2fhv.js → index-ee59rzwk.js} +4 -4
  43. package/dist/cli/{index-6r93sy2k.js → index-g1b5xxzc.js} +5 -3
  44. package/dist/cli/{index-5c6zse74.js → index-h8419k5d.js} +7 -7
  45. package/dist/cli/{index-x48h0zsw.js → index-hfnj4s6r.js} +41 -41
  46. package/dist/cli/{index-yg4923ga.js → index-k01n01sc.js} +3 -3
  47. package/dist/cli/{index-v1h70r3y.js → index-mhd6kdzr.js} +1 -1
  48. package/dist/cli/{index-epzadpmm.js → index-mn75z39t.js} +1 -1
  49. package/dist/cli/{index-s3w41p1x.js → index-p2dst45x.js} +1 -1
  50. package/dist/cli/{index-8f7wgcpz.js → index-phz90w3t.js} +2 -2
  51. package/dist/cli/{index-2nq7h5cj.js → index-pvj101jx.js} +8 -8
  52. package/dist/cli/{index-dgv5xy0b.js → index-ryrg48c7.js} +11 -11
  53. package/dist/cli/{index-5ph10kdd.js → index-se501ytb.js} +1 -1
  54. package/dist/cli/{index-1j14kbak.js → index-tecp3a77.js} +5 -5
  55. package/dist/cli/{index-2r6d72m6.js → index-twwdx79t.js} +3 -3
  56. package/dist/cli/{index-s9y49avf.js → index-v839c9mv.js} +1 -1
  57. package/dist/cli/{index-nzfq1ms2.js → index-vtpt8yns.js} +1 -1
  58. package/dist/cli/{index-9cffn82s.js → index-vxbj42j0.js} +3 -3
  59. package/dist/cli/{index-275w8rfx.js → index-vz1fh1v3.js} +3 -3
  60. package/dist/cli/{index-encs4mdm.js → index-wyfag7r7.js} +40 -6
  61. package/dist/cli/{index-dygkt0ne.js → index-xdk3cxs9.js} +43 -43
  62. package/dist/cli/{index-pmcvznag.js → index-xh861gf3.js} +2 -2
  63. package/dist/cli/{index-ves1rtqt.js → index-y7c4hqcj.js} +1 -1
  64. package/dist/cli/{index-9dbxpr2j.js → index-yamz6830.js} +1 -1
  65. package/dist/cli/{index-traz987v.js → index-yyrnkc3a.js} +1 -1
  66. package/dist/cli/index.js +42 -42
  67. package/dist/cli/{knowledge-escalator-s25vhfrt.js → knowledge-escalator-3096yt7j.js} +13 -12
  68. package/dist/cli/{knowledge-events-qd39qwy1.js → knowledge-events-st3j22za.js} +11 -10
  69. package/dist/cli/{knowledge-link-wfhsfyn2.js → knowledge-link-13t3nfrz.js} +3 -3
  70. package/dist/cli/{knowledge-store-y02hfxq9.js → knowledge-store-9q8jvd0p.js} +4 -4
  71. package/dist/cli/{knowledge-validator-d7ysvdmw.js → knowledge-validator-fak1fvdm.js} +6 -6
  72. package/dist/cli/{mcp-5py3efbs.js → mcp-shvt5c9b.js} +1 -1
  73. package/dist/cli/{model-preflight-2zqrjnnh.js → model-preflight-cxhdzc9c.js} +41 -41
  74. package/dist/cli/{pending-delegations-9rt59skt.js → pending-delegations-tjj8nhmm.js} +11 -11
  75. package/dist/cli/{pr-subscriptions-q51ze9rn.js → pr-subscriptions-xtnbfg8m.js} +10 -10
  76. package/dist/cli/{pr-workflow-gate-3vj3f93g.js → pr-workflow-gate-24ytg64p.js} +41 -41
  77. package/dist/cli/{runner-s1a73y5h.js → runner-q1g9atrv.js} +4 -4
  78. package/dist/cli/{scan-cursor-0fr17e5q.js → scan-cursor-drax4dt3.js} +5 -5
  79. package/dist/cli/{schema-10j951xn.js → schema-epr5xxb0.js} +1 -1
  80. package/dist/cli/{scope-persistence-jewjr6zg.js → scope-persistence-pyn9vb4r.js} +13 -13
  81. package/dist/cli/{server-0s65qjx7.js → server-c5b651kg.js} +41 -41
  82. package/dist/cli/{skill-generator-7hxqq63r.js → skill-generator-r8kvvbh2.js} +15 -14
  83. package/dist/cli/{snapshot-coordination-init-kh4dayg5.js → snapshot-coordination-init-wnt85258.js} +41 -41
  84. package/dist/cli/{speckit-checkoff-n8s920fs.js → speckit-checkoff-64p4d5hf.js} +4 -4
  85. package/dist/cli/{workspace-snapshot-veqaqrjr.js → workspace-snapshot-7hws89e9.js} +3 -3
  86. package/dist/cli/{worktree-collision-ownership-7cz0a2sr.js → worktree-collision-ownership-eej2phhm.js} +13 -13
  87. package/dist/cli/{worktree-isolation-4dbza44f.js → worktree-isolation-xsc0k2n3.js} +41 -41
  88. package/dist/hooks/delegation-gate/worktree-merge-status.d.ts +4 -4
  89. package/dist/hooks/guardrails/tool-before.d.ts +35 -4
  90. package/dist/hooks/knowledge-receipt-ledger.d.ts +19 -4
  91. package/dist/hooks/phase-complete-directive-gate.d.ts +13 -1
  92. package/dist/hooks/shell-write-detect.d.ts +12 -0
  93. package/dist/index.js +64 -64
  94. package/package.json +1 -1
  95. package/dist/cli/curator-llm-factory-wcv6x9pq.js +0 -82
  96. package/dist/cli/guardrail-explain-g95j8z79.js +0 -83
@@ -33,37 +33,38 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-xxvman1m.js";
36
+ } from "./index-b4amh1n3.js";
37
37
  import"./index-q7sjgr1y.js";
38
- import"./index-v5nh2fhv.js";
39
- import"./index-encs4mdm.js";
38
+ import"./index-ee59rzwk.js";
39
+ import"./index-wyfag7r7.js";
40
40
  import"./index-m9zzj4ee.js";
41
- import"./index-5q3hg1pk.js";
42
- import"./index-44z8mv05.js";
43
- import"./index-v1h70r3y.js";
41
+ import"./index-4krkevgc.js";
42
+ import"./index-10myvh2k.js";
43
+ import"./index-mhd6kdzr.js";
44
44
  import"./index-rtry5xyf.js";
45
- import"./index-pmcvznag.js";
45
+ import"./index-xh861gf3.js";
46
46
  import"./index-g22dps7x.js";
47
47
  import"./index-0725jpp7.js";
48
- import"./index-ypxq0x7r.js";
49
- import"./index-5c6zse74.js";
48
+ import"./index-8srvdpw6.js";
49
+ import"./index-9rwhas09.js";
50
+ import"./index-h8419k5d.js";
50
51
  import"./index-vzm6zre7.js";
51
52
  import"./index-ae75rja9.js";
52
- import"./index-g57p8p1k.js";
53
- import"./index-traz987v.js";
53
+ import"./index-4fkxdnc7.js";
54
+ import"./index-yyrnkc3a.js";
54
55
  import"./index-q8vfw61p.js";
55
56
  import"./index-t7hmqgjy.js";
56
57
  import"./index-c2k7q723.js";
57
58
  import"./index-te9hq2f4.js";
58
59
  import"./index-ejhxgyvm.js";
59
60
  import"./index-7g4c7s5r.js";
60
- import"./index-epzadpmm.js";
61
+ import"./index-mn75z39t.js";
61
62
  import"./index-3t46mez1.js";
62
- import"./index-tmhwpzdg.js";
63
+ import"./index-dsqavehz.js";
63
64
  import"./index-sp2cxpaq.js";
64
65
  import"./index-qbxk2rn6.js";
65
66
  import"./index-zgwm4ryv.js";
66
- import"./index-5ph10kdd.js";
67
+ import"./index-se501ytb.js";
67
68
  import"./index-xfzkq1k4.js";
68
69
  import"./index-bk5tah7q.js";
69
70
  import"./index-gknz3bv1.js";
@@ -8,77 +8,77 @@ import {
8
8
  markSnapshotCoordinationClosing,
9
9
  retrySnapshotCoordinationInitialization,
10
10
  startSnapshotCoordinationInitialization
11
- } from "./index-95k0fkhp.js";
12
- import"./index-s3w41p1x.js";
13
- import"./index-bft3404e.js";
14
- import"./index-yg4923ga.js";
15
- import"./index-mff4szvk.js";
16
- import"./index-5snwc3dz.js";
11
+ } from "./index-8c51asrp.js";
12
+ import"./index-p2dst45x.js";
13
+ import"./index-1by2qd8n.js";
14
+ import"./index-k01n01sc.js";
15
+ import"./index-cy2gbs5b.js";
16
+ import"./index-4ph7ad0b.js";
17
17
  import"./index-axqyjreb.js";
18
18
  import"./index-txdagbh7.js";
19
- import"./index-bcn30s7q.js";
20
- import"./index-8x90j950.js";
19
+ import"./index-4mjfdpte.js";
20
+ import"./index-3x8mz39c.js";
21
21
  import"./index-rdec0y3z.js";
22
- import"./index-q49vqmzh.js";
23
- import"./index-y46b7a5g.js";
24
- import"./index-xxvman1m.js";
25
- import"./index-0vv7vzp8.js";
26
- import"./index-1j14kbak.js";
22
+ import"./index-74n7sz4s.js";
23
+ import"./index-826kptfe.js";
24
+ import"./index-b4amh1n3.js";
25
+ import"./index-bk8r4m9j.js";
26
+ import"./index-tecp3a77.js";
27
27
  import"./index-x5jwegqw.js";
28
- import"./index-7rpcbnp8.js";
29
- import"./index-2nq7h5cj.js";
28
+ import"./index-7h22y3ew.js";
29
+ import"./index-pvj101jx.js";
30
30
  import"./index-pt7h91zc.js";
31
31
  import"./index-q7sjgr1y.js";
32
- import"./index-5g0nrnyd.js";
33
- import"./index-dgv5xy0b.js";
32
+ import"./index-687c2ze1.js";
33
+ import"./index-ryrg48c7.js";
34
34
  import"./index-6b295cas.js";
35
35
  import"./index-9nyqt3kb.js";
36
- import"./index-vyb5xf36.js";
37
- import"./index-v3bmwmqw.js";
36
+ import"./index-5qajesjq.js";
37
+ import"./index-697mg68b.js";
38
38
  import"./index-8mrentmw.js";
39
- import"./index-8f7wgcpz.js";
40
- import"./index-j2x2ajz7.js";
41
- import"./index-2r6d72m6.js";
39
+ import"./index-phz90w3t.js";
40
+ import"./index-1akazdbj.js";
41
+ import"./index-twwdx79t.js";
42
42
  import"./index-spggmr30.js";
43
- import"./index-v5nh2fhv.js";
44
- import"./index-encs4mdm.js";
43
+ import"./index-ee59rzwk.js";
44
+ import"./index-wyfag7r7.js";
45
45
  import"./index-m9zzj4ee.js";
46
- import"./index-5q3hg1pk.js";
47
- import"./index-44z8mv05.js";
48
- import"./index-v1h70r3y.js";
46
+ import"./index-4krkevgc.js";
47
+ import"./index-10myvh2k.js";
48
+ import"./index-mhd6kdzr.js";
49
49
  import"./index-rtry5xyf.js";
50
- import"./index-pmcvznag.js";
50
+ import"./index-xh861gf3.js";
51
51
  import"./index-g22dps7x.js";
52
52
  import"./index-0725jpp7.js";
53
- import"./index-eac47j2q.js";
54
- import"./index-s9y49avf.js";
55
- import"./index-9cffn82s.js";
56
- import"./index-na6ph1fp.js";
57
- import"./index-ves1rtqt.js";
53
+ import"./index-1asbb0r4.js";
54
+ import"./index-v839c9mv.js";
55
+ import"./index-vxbj42j0.js";
56
+ import"./index-2x015vjy.js";
57
+ import"./index-y7c4hqcj.js";
58
58
  import"./index-ry16d01s.js";
59
59
  import"./index-rdm3px0g.js";
60
- import"./index-nzfq1ms2.js";
60
+ import"./index-vtpt8yns.js";
61
61
  import"./index-7pmbnjvj.js";
62
+ import"./index-8srvdpw6.js";
62
63
  import"./index-9rwhas09.js";
63
- import"./index-ypxq0x7r.js";
64
- import"./index-5c6zse74.js";
64
+ import"./index-h8419k5d.js";
65
65
  import"./index-vzm6zre7.js";
66
66
  import"./index-ae75rja9.js";
67
- import"./index-g57p8p1k.js";
68
- import"./index-traz987v.js";
67
+ import"./index-4fkxdnc7.js";
68
+ import"./index-yyrnkc3a.js";
69
69
  import"./index-q8vfw61p.js";
70
70
  import"./index-t7hmqgjy.js";
71
71
  import"./index-c2k7q723.js";
72
72
  import"./index-te9hq2f4.js";
73
73
  import"./index-ejhxgyvm.js";
74
74
  import"./index-7g4c7s5r.js";
75
- import"./index-epzadpmm.js";
75
+ import"./index-mn75z39t.js";
76
76
  import"./index-3t46mez1.js";
77
- import"./index-tmhwpzdg.js";
77
+ import"./index-dsqavehz.js";
78
78
  import"./index-sp2cxpaq.js";
79
79
  import"./index-qbxk2rn6.js";
80
80
  import"./index-zgwm4ryv.js";
81
- import"./index-5ph10kdd.js";
81
+ import"./index-se501ytb.js";
82
82
  import"./index-xfzkq1k4.js";
83
83
  import"./index-bk5tah7q.js";
84
84
  import"./index-gknz3bv1.js";
@@ -7,15 +7,15 @@ import {
7
7
  parseSpeckitTasksContent,
8
8
  propagateSpeckitCheckoff,
9
9
  writeSpeckitCheckoffLedger
10
- } from "./index-8f7wgcpz.js";
10
+ } from "./index-phz90w3t.js";
11
11
  import"./index-ejhxgyvm.js";
12
12
  import"./index-7g4c7s5r.js";
13
- import"./index-epzadpmm.js";
14
- import"./index-tmhwpzdg.js";
13
+ import"./index-mn75z39t.js";
14
+ import"./index-dsqavehz.js";
15
15
  import"./index-sp2cxpaq.js";
16
16
  import"./index-qbxk2rn6.js";
17
17
  import"./index-zgwm4ryv.js";
18
- import"./index-5ph10kdd.js";
18
+ import"./index-se501ytb.js";
19
19
  import"./index-xfzkq1k4.js";
20
20
  import"./index-bk5tah7q.js";
21
21
  import"./index-gknz3bv1.js";
@@ -52,10 +52,10 @@ import {
52
52
  shouldSkipSnapshot,
53
53
  switchPrFeedbackTrackingCandidateAsync,
54
54
  workspaceSnapshotMatches
55
- } from "./index-0vv7vzp8.js";
56
- import"./index-5q3hg1pk.js";
55
+ } from "./index-bk8r4m9j.js";
56
+ import"./index-4krkevgc.js";
57
57
  import"./index-te9hq2f4.js";
58
- import"./index-epzadpmm.js";
58
+ import"./index-mn75z39t.js";
59
59
  import"./index-sp2cxpaq.js";
60
60
  import"./index-qbxk2rn6.js";
61
61
  import"./index-zgwm4ryv.js";
@@ -6,28 +6,28 @@ import {
6
6
  WORKTREE_PROVISIONING_OWNER_LEASE_MS,
7
7
  removeWorktreeProvisioningOwner,
8
8
  scanWorktreeProvisioningOwnersForRecovery
9
- } from "./index-7rpcbnp8.js";
9
+ } from "./index-7h22y3ew.js";
10
10
  import {
11
11
  scanDelegationFallbacksForRecovery,
12
12
  scanDelegationsForRecovery
13
- } from "./index-2nq7h5cj.js";
13
+ } from "./index-pvj101jx.js";
14
14
  import {
15
15
  scanWorktreeMergeFailuresForRecovery
16
- } from "./index-v3bmwmqw.js";
17
- import"./index-5q3hg1pk.js";
18
- import"./index-s9y49avf.js";
19
- import"./index-na6ph1fp.js";
20
- import"./index-ves1rtqt.js";
16
+ } from "./index-697mg68b.js";
17
+ import"./index-4krkevgc.js";
18
+ import"./index-v839c9mv.js";
19
+ import"./index-2x015vjy.js";
20
+ import"./index-y7c4hqcj.js";
21
21
  import"./index-ry16d01s.js";
22
22
  import"./index-rdm3px0g.js";
23
- import"./index-nzfq1ms2.js";
23
+ import"./index-vtpt8yns.js";
24
24
  import"./index-7pmbnjvj.js";
25
- import"./index-ypxq0x7r.js";
26
- import"./index-5c6zse74.js";
25
+ import"./index-8srvdpw6.js";
26
+ import"./index-h8419k5d.js";
27
27
  import"./index-vzm6zre7.js";
28
28
  import"./index-ae75rja9.js";
29
- import"./index-g57p8p1k.js";
30
- import"./index-traz987v.js";
29
+ import"./index-4fkxdnc7.js";
30
+ import"./index-yyrnkc3a.js";
31
31
  import"./index-q8vfw61p.js";
32
32
  import"./index-t7hmqgjy.js";
33
33
  import"./index-c2k7q723.js";
@@ -36,7 +36,7 @@ import {
36
36
  } from "./index-te9hq2f4.js";
37
37
  import"./index-ejhxgyvm.js";
38
38
  import"./index-7g4c7s5r.js";
39
- import"./index-epzadpmm.js";
39
+ import"./index-mn75z39t.js";
40
40
  import"./index-sp2cxpaq.js";
41
41
  import"./index-qbxk2rn6.js";
42
42
  import"./index-zgwm4ryv.js";
@@ -25,79 +25,79 @@ import {
25
25
  sanitizeWorktreeTaskId,
26
26
  standardWorktreeByCallID,
27
27
  standardWorktreeSerializationSessions
28
- } from "./index-95k0fkhp.js";
29
- import"./index-s3w41p1x.js";
30
- import"./index-bft3404e.js";
31
- import"./index-yg4923ga.js";
32
- import"./index-mff4szvk.js";
33
- import"./index-5snwc3dz.js";
28
+ } from "./index-8c51asrp.js";
29
+ import"./index-p2dst45x.js";
30
+ import"./index-1by2qd8n.js";
31
+ import"./index-k01n01sc.js";
32
+ import"./index-cy2gbs5b.js";
33
+ import"./index-4ph7ad0b.js";
34
34
  import"./index-axqyjreb.js";
35
35
  import"./index-txdagbh7.js";
36
- import"./index-bcn30s7q.js";
37
- import"./index-8x90j950.js";
36
+ import"./index-4mjfdpte.js";
37
+ import"./index-3x8mz39c.js";
38
38
  import"./index-rdec0y3z.js";
39
- import"./index-q49vqmzh.js";
40
- import"./index-y46b7a5g.js";
41
- import"./index-xxvman1m.js";
42
- import"./index-0vv7vzp8.js";
43
- import"./index-1j14kbak.js";
39
+ import"./index-74n7sz4s.js";
40
+ import"./index-826kptfe.js";
41
+ import"./index-b4amh1n3.js";
42
+ import"./index-bk8r4m9j.js";
43
+ import"./index-tecp3a77.js";
44
44
  import"./index-x5jwegqw.js";
45
- import"./index-7rpcbnp8.js";
46
- import"./index-2nq7h5cj.js";
45
+ import"./index-7h22y3ew.js";
46
+ import"./index-pvj101jx.js";
47
47
  import"./index-pt7h91zc.js";
48
48
  import"./index-q7sjgr1y.js";
49
- import"./index-5g0nrnyd.js";
50
- import"./index-dgv5xy0b.js";
49
+ import"./index-687c2ze1.js";
50
+ import"./index-ryrg48c7.js";
51
51
  import"./index-6b295cas.js";
52
52
  import"./index-9nyqt3kb.js";
53
- import"./index-vyb5xf36.js";
54
- import"./index-v3bmwmqw.js";
53
+ import"./index-5qajesjq.js";
54
+ import"./index-697mg68b.js";
55
55
  import"./index-8mrentmw.js";
56
- import"./index-8f7wgcpz.js";
57
- import"./index-j2x2ajz7.js";
58
- import"./index-2r6d72m6.js";
56
+ import"./index-phz90w3t.js";
57
+ import"./index-1akazdbj.js";
58
+ import"./index-twwdx79t.js";
59
59
  import"./index-spggmr30.js";
60
- import"./index-v5nh2fhv.js";
61
- import"./index-encs4mdm.js";
60
+ import"./index-ee59rzwk.js";
61
+ import"./index-wyfag7r7.js";
62
62
  import"./index-m9zzj4ee.js";
63
- import"./index-5q3hg1pk.js";
64
- import"./index-44z8mv05.js";
65
- import"./index-v1h70r3y.js";
63
+ import"./index-4krkevgc.js";
64
+ import"./index-10myvh2k.js";
65
+ import"./index-mhd6kdzr.js";
66
66
  import"./index-rtry5xyf.js";
67
67
  import {
68
68
  resolveWorktreeIsolationConfig
69
- } from "./index-pmcvznag.js";
69
+ } from "./index-xh861gf3.js";
70
70
  import"./index-g22dps7x.js";
71
71
  import"./index-0725jpp7.js";
72
- import"./index-eac47j2q.js";
73
- import"./index-s9y49avf.js";
74
- import"./index-9cffn82s.js";
75
- import"./index-na6ph1fp.js";
76
- import"./index-ves1rtqt.js";
72
+ import"./index-1asbb0r4.js";
73
+ import"./index-v839c9mv.js";
74
+ import"./index-vxbj42j0.js";
75
+ import"./index-2x015vjy.js";
76
+ import"./index-y7c4hqcj.js";
77
77
  import"./index-ry16d01s.js";
78
78
  import"./index-rdm3px0g.js";
79
- import"./index-nzfq1ms2.js";
79
+ import"./index-vtpt8yns.js";
80
80
  import"./index-7pmbnjvj.js";
81
+ import"./index-8srvdpw6.js";
81
82
  import"./index-9rwhas09.js";
82
- import"./index-ypxq0x7r.js";
83
- import"./index-5c6zse74.js";
83
+ import"./index-h8419k5d.js";
84
84
  import"./index-vzm6zre7.js";
85
85
  import"./index-ae75rja9.js";
86
- import"./index-g57p8p1k.js";
87
- import"./index-traz987v.js";
86
+ import"./index-4fkxdnc7.js";
87
+ import"./index-yyrnkc3a.js";
88
88
  import"./index-q8vfw61p.js";
89
89
  import"./index-t7hmqgjy.js";
90
90
  import"./index-c2k7q723.js";
91
91
  import"./index-te9hq2f4.js";
92
92
  import"./index-ejhxgyvm.js";
93
93
  import"./index-7g4c7s5r.js";
94
- import"./index-epzadpmm.js";
94
+ import"./index-mn75z39t.js";
95
95
  import"./index-3t46mez1.js";
96
- import"./index-tmhwpzdg.js";
96
+ import"./index-dsqavehz.js";
97
97
  import"./index-sp2cxpaq.js";
98
98
  import"./index-qbxk2rn6.js";
99
99
  import"./index-zgwm4ryv.js";
100
- import"./index-5ph10kdd.js";
100
+ import"./index-se501ytb.js";
101
101
  import"./index-xfzkq1k4.js";
102
102
  import"./index-bk5tah7q.js";
103
103
  import"./index-gknz3bv1.js";
@@ -21,10 +21,10 @@
21
21
  * can depend on it without creating an import cycle.
22
22
  *
23
23
  * STATE DURABILITY: Status is stored in an in-memory Map (fast, per-process)
24
- * AND persisted to `.swarm/worktree-merge-status.json` (survives plugin restart).
25
- * On each write, the JSON file is atomically updated. On read, the in-memory
26
- * map is checked first (fast path); on plugin restart, the map is empty but
27
- * the durable file is restored on first read or Rule 2 lookup.
24
+ * AND persisted to `.swarm/worktree-merge-status.json` (survives plugin restart;
25
+ * EXCEPTION (#3448): a write whose status-directory parent root has vanished is
26
+ * skipped rather than recreating that root). On read, the in-memory map is
27
+ * checked first (fast path); after a restart the durable file restores it.
28
28
  */
29
29
  /** Why a task's worktree work did not fully reach the main tree. */
30
30
  export type WorktreeMergeOutcome = 'partial' | 'failed';
@@ -64,11 +64,36 @@ export interface ToolBeforeContext {
64
64
  /** @internal test seam */
65
65
  export declare function _resetSandboxUnavailableWarningState(): void;
66
66
  /**
67
- * Creates a toolBefore handler with the given shared context.
68
- *
69
- * @param ctx Shared configuration and closures from createGuardrailsHooks
70
- * @returns The toolBefore handler function
67
+ * Whether the executor that will run a bare `rmdir` has POSIX rmdir(2)
68
+ * semantics, the only basis for the empty-directory-removal exemption. Under
69
+ * PowerShell `rmdir` is an alias of Remove-Item (it deletes a file operand and
70
+ * can recurse), and cmd's `rd` differs too. So: no Windows grammar may own the
71
+ * command (`windowsShell` from resolveWindowsWriteAuthority; when it is null
72
+ * the Windows detectors do not run at all), the `shell` tool on a Windows host
73
+ * is not POSIX, and a Windows wrapper exposed only by unwrapping
74
+ * (`bash -c 'powershell -Command …'`) also disqualifies it.
75
+ */
76
+ export declare function isPosixRmdirExecutor(tool: string, windowsShell: 'powershell' | 'cmd' | null, detectionCommand: string, platform?: NodeJS.Platform): boolean;
77
+ /**
78
+ * Whether a bare `rmdir` target (`WriteTarget.emptyDirectoryRemoval`) may skip
79
+ * declared-scope membership. `targetPath` is the gate's resolved path, which
80
+ * is already LEXICALLY normalised (path.resolve collapses `.` and `..`
81
+ * segments before any symlink is followed); that is safe only because an
82
+ * operand with a `..` segment is never tagged (shell-write-detect.ts
83
+ * isBareRmdirOperand). The helper then realpaths the target's PARENT, so
84
+ * every symlink/junction in the parent chain is resolved, and requires the
85
+ * result to lie strictly inside the canonical workspace root. Fail-closed:
86
+ * a resolution error, the root itself, a target outside the root, a target
87
+ * that exists as a file or symlink, or a target under the workspace's
88
+ * repository control state (`.git` / `.swarm`, checked on both the lexical
89
+ * and the canonical location — PR #3456 review FB-007: an architect passes
90
+ * file authority for control paths, so the exemption must not be what lets
91
+ * a declared-scope-bound role reach them) returns false. rmdir(2) does not
92
+ * follow a final symlink, so the parent chain decides containment. There is
93
+ * deliberately no emptiness check — that would be a TOCTOU race; the
94
+ * kernel's ENOTEMPTY is the authoritative guard.
71
95
  */
96
+ export declare function isEmptyDirectoryRemovalWithinWorkspace(targetPath: string, workspace: string): boolean;
72
97
  /**
73
98
  * Issue #3099 R2 (executor context): which grammar OWNS shared constructs.
74
99
  *
@@ -91,6 +116,12 @@ export declare function _resetSandboxUnavailableWarningState(): void;
91
116
  * commands the gate blocks (#3099 review finding).
92
117
  */
93
118
  export declare function resolveWindowsWriteAuthority(tool: string, command: string, detectedShellType: 'posix' | 'powershell' | 'cmd' | 'unix' | 'bash', shaped: boolean, platform?: NodeJS.Platform): 'powershell' | 'cmd' | null;
119
+ /**
120
+ * Creates a toolBefore handler with the given shared context.
121
+ *
122
+ * @param ctx Shared configuration and closures from createGuardrailsHooks
123
+ * @returns The toolBefore handler function
124
+ */
94
125
  export declare function createToolBeforeHandler(ctx: ToolBeforeContext): (input: {
95
126
  tool: string;
96
127
  sessionID: string;
@@ -173,6 +173,24 @@ export type ReceiptUnavailable = {
173
173
  export type ReceiptLedgerResult<T> = ({
174
174
  ok: true;
175
175
  } & T) | ReceiptUnavailable;
176
+ /**
177
+ * #2965: permanent identity-conflict codes for the empty-trace immutability
178
+ * rule. The conflict itself stays legitimate — only its category changes: a
179
+ * deterministic policy rejection must never ride the retry-inviting
180
+ * `store_unavailable` store channel (AGENTS.md invariant 9).
181
+ */
182
+ export type ReceiptEmptyTraceConflictCode = 'wrong_task' | 'wrong_phase' | 'duplicate_conflicting_terminal';
183
+ /** #2965: typed rejection for a conflicting `'none'`-sentinel re-file. */
184
+ export type ReceiptEmptyTraceConflict = {
185
+ ok: false;
186
+ code: ReceiptEmptyTraceConflictCode;
187
+ detail: string;
188
+ };
189
+ export type CommitEmptyRetrievalResult = {
190
+ ok: true;
191
+ event_id: string;
192
+ terminal_event_id: string;
193
+ } | ReceiptEmptyTraceConflict | ReceiptUnavailable;
176
194
  declare function writeSnapshot(paths: ReceiptLedgerPaths, state: LedgerState): Promise<void>;
177
195
  export interface RepairKnowledgeReceiptLedgerInput {
178
196
  phase: string;
@@ -219,10 +237,7 @@ export declare function commitDisplayedMembership(directory: string, input: Comm
219
237
  event_id: string;
220
238
  memberships: ReceiptMembership[];
221
239
  }>>;
222
- export declare function commitEmptyRetrieval(directory: string, input: Omit<CommitDisplayedMembershipInput, 'entries'>): Promise<ReceiptLedgerResult<{
223
- event_id: string;
224
- terminal_event_id: string;
225
- }>>;
240
+ export declare function commitEmptyRetrieval(directory: string, input: Omit<CommitDisplayedMembershipInput, 'entries'>): Promise<CommitEmptyRetrievalResult>;
226
241
  export interface TerminalBatchInput {
227
242
  trace_id: string;
228
243
  session_id: string;
@@ -16,8 +16,9 @@
16
16
  * `override` event with a written justification). Fail-CLOSED: any read error
17
17
  * surfaces as a block, never a silent pass.
18
18
  */
19
+ import { type ReceiptUnavailable } from './knowledge-receipt-ledger.js';
19
20
  export type DirectiveBlockReason = 'no_verdict' | 'unremediated_violation';
20
- export type DirectiveGateFailureCode = 'RECEIPT_MISSING' | 'RECEIPT_CORRUPT' | 'RECEIPT_LOCK_TIMEOUT' | 'RECEIPT_WRONG_ROOT' | 'RECEIPT_PERMISSION' | 'RECEIPT_TRANSIENT' | 'RECEIPT_STORE_UNAVAILABLE';
21
+ export type DirectiveGateFailureCode = 'RECEIPT_MISSING' | 'RECEIPT_CORRUPT' | 'RECEIPT_LOCK_TIMEOUT' | 'RECEIPT_WRONG_ROOT' | 'RECEIPT_PERMISSION' | 'RECEIPT_TRANSIENT' | 'RECEIPT_CONFLICT' | 'RECEIPT_STORE_UNAVAILABLE';
21
22
  export interface DirectiveGateResult {
22
23
  blocked: boolean;
23
24
  unresolved: Array<{
@@ -52,6 +53,7 @@ export interface DirectiveGateResult {
52
53
  action: 'knowledge_receipt' | 'phase_complete' | 'repair_knowledge_receipt_ledger';
53
54
  };
54
55
  }
56
+ declare function classifyDirectiveGateFailure(error: unknown | ReceiptUnavailable): Pick<DirectiveGateResult, 'failure' | 'recovery'>;
55
57
  /**
56
58
  * Evaluate all critical directives shown during the phase. Fail-closed.
57
59
  *
@@ -83,3 +85,13 @@ export declare function evaluatePhaseCriticalDirectives(params: {
83
85
  export declare function recordDirectiveOverrides(directory: string, ids: string[], justification: string, sessionId: string | undefined, phaseLabel?: string, phaseId?: number): Promise<void>;
84
86
  /** Build a structured, human-readable block message for unresolved criticals. */
85
87
  export declare function formatDirectiveBlockMessage(unresolved: DirectiveGateResult['unresolved']): string;
88
+ /**
89
+ * #2965: dependency-injection seam for the failure classifier. Tests drive
90
+ * `classifyDirectiveGateFailure` through this seam (per the repo's
91
+ * `_internals` convention); these are synthetic classifier tests, not
92
+ * end-to-end gate evidence.
93
+ */
94
+ export declare const _internals: {
95
+ classifyDirectiveGateFailure: typeof classifyDirectiveGateFailure;
96
+ };
97
+ export {};
@@ -22,6 +22,18 @@ export interface WriteTarget {
22
22
  operator: string;
23
23
  /** The file path written to, or null when the path cannot be determined statically. */
24
24
  path: string | null;
25
+ /**
26
+ * Set only for a bare POSIX `rmdir <dir>`: no options, exactly one literal
27
+ * operand (no expansion, glob, brace or quote characters). rmdir(2) refuses
28
+ * a non-empty directory (ENOTEMPTY), so this form cannot destroy file data.
29
+ * The shell write-scope gate uses it to skip declared-scope membership for
30
+ * a target that resolves inside the workspace; every other check still
31
+ * applies. `rmdir -p` (removes parents) and all other forms never carry it,
32
+ * and neither does any write of a line that runs a command outside
33
+ * CWD_NEUTRAL_COMMANDS or holds a character outside PLAIN_COMMAND_LINE
34
+ * (see detectPosixWrites).
35
+ */
36
+ emptyDirectoryRemoval?: true;
25
37
  }
26
38
  /**
27
39
  * Result of analyzing a single shell command.