opencode-swarm 7.167.1 → 7.167.2

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 (105) 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/agents/project-context.d.ts +12 -8
  4. package/dist/cli/{coder-settlement-2ye4s5xr.js → coder-settlement-jy9rad28.js} +16 -16
  5. package/dist/cli/{config-doctor-b0k8eyd6.js → config-doctor-p66vnpy3.js} +3 -3
  6. package/dist/cli/{core-xgzgjk8s.js → core-tw0wtntz.js} +4 -4
  7. package/dist/cli/{curation-policy-bvxf5pxv.js → curation-policy-ndp27v0c.js} +7 -7
  8. package/dist/cli/{curator-jpvzrxcv.js → curator-5nzde80g.js} +45 -45
  9. package/dist/cli/{curator-drift-20m2ab5w.js → curator-drift-gb651hcw.js} +8 -8
  10. package/dist/cli/curator-llm-factory-xy96x5x8.js +71 -0
  11. package/dist/cli/{dispatch-tmb929w8.js → dispatch-8ks9dyk5.js} +244 -70
  12. package/dist/cli/{evidence-summary-service-74az43cb.js → evidence-summary-service-bzpfaypy.js} +22 -22
  13. package/dist/cli/{explorer-zvk5kbcb.js → explorer-2cv64zfj.js} +1 -1
  14. package/dist/cli/{gate-evidence-f26h2gn3.js → gate-evidence-wa8cj8h6.js} +11 -11
  15. package/dist/cli/guardrail-explain-1ef5he6j.js +72 -0
  16. package/dist/cli/{guardrail-log-pnye3xw8.js → guardrail-log-7dv73e0q.js} +9 -9
  17. package/dist/cli/{guardrail-reset-0da7q8ap.js → guardrail-reset-1kng6y8x.js} +44 -44
  18. package/dist/cli/hive-promoter-87kk2pg5.js +86 -0
  19. package/dist/cli/{index-fmzz6aw7.js → index-09gv90d7.js} +4 -4
  20. package/dist/cli/{index-9e6fdz2h.js → index-0mhftbpp.js} +1 -1
  21. package/dist/cli/{index-t8tw1bhs.js → index-0q839sg6.js} +2 -2
  22. package/dist/cli/{index-9bhzbwa4.js → index-18rfc7qv.js} +9 -9
  23. package/dist/cli/{index-7qefgq4j.js → index-1xnse449.js} +11 -1
  24. package/dist/cli/index-25xeyjfx.js +116 -0
  25. package/dist/cli/{index-87agfprq.js → index-2b1hd1fx.js} +2 -2
  26. package/dist/cli/{index-bv8ha57q.js → index-3r6k6qa7.js} +6 -6
  27. package/dist/cli/{index-69y9p6dh.js → index-3ws11dq0.js} +2 -2
  28. package/dist/cli/{index-eretcr6t.js → index-5sjq3shs.js} +11 -11
  29. package/dist/cli/{index-8x4zwk0t.js → index-65s0vgb1.js} +47 -47
  30. package/dist/cli/{index-es13aqdb.js → index-79234evf.js} +1 -1
  31. package/dist/cli/{index-5bd84nxc.js → index-83r0v5tn.js} +1 -1
  32. package/dist/cli/{index-sahf5yz3.js → index-8vbahc4c.js} +1 -1
  33. package/dist/cli/{index-6d4dc99f.js → index-962qme08.js} +1 -1
  34. package/dist/cli/{index-9ss2m4rs.js → index-9br68j86.js} +1 -1
  35. package/dist/cli/{index-4rhhvd1a.js → index-a1w58b47.js} +1 -1
  36. package/dist/cli/{index-qyr17fbz.js → index-arqv4psy.js} +16 -16
  37. package/dist/cli/{index-qtd3hrk8.js → index-ce8p9t28.js} +5 -5
  38. package/dist/cli/{index-q265ytw6.js → index-dme7wvwg.js} +4 -4
  39. package/dist/cli/{index-54vzqy47.js → index-ehq2vtkq.js} +6 -6
  40. package/dist/cli/{index-1aex5zd9.js → index-f8cc92g7.js} +2 -2
  41. package/dist/cli/{index-bzdc4b7t.js → index-f91fhch0.js} +6 -6
  42. package/dist/cli/{index-70ha9e09.js → index-fyfbpz4f.js} +1 -1
  43. package/dist/cli/{index-75f9jj3h.js → index-g409c7ke.js} +2 -2
  44. package/dist/cli/{index-0tc0pcmh.js → index-g5m43paw.js} +37 -2
  45. package/dist/cli/{index-9wv6a3jx.js → index-gmjg65tm.js} +2 -2
  46. package/dist/cli/{index-qd726agw.js → index-gs12223x.js} +3 -3
  47. package/dist/cli/{index-rk10x4zr.js → index-hhkm64wh.js} +5 -5
  48. package/dist/cli/{index-mgc3c483.js → index-jhd3pmd1.js} +10 -10
  49. package/dist/cli/{index-m3tx1q9v.js → index-k73ehxa1.js} +1 -1
  50. package/dist/cli/{index-z5gdgdkp.js → index-m3z83nhs.js} +12 -12
  51. package/dist/cli/{index-251vrmge.js → index-m7cwnt9r.js} +4 -4
  52. package/dist/cli/{index-3nm1b3t2.js → index-mtepgqan.js} +8 -8
  53. package/dist/cli/{index-79wnzc8q.js → index-pdcperq5.js} +3 -3
  54. package/dist/cli/{index-bf6zx8cq.js → index-rrne6g2m.js} +2 -2
  55. package/dist/cli/{index-hdsg7yf6.js → index-s7a9dqtb.js} +3 -3
  56. package/dist/cli/{index-f8xk5q5j.js → index-shrf0wt3.js} +4 -4
  57. package/dist/cli/{index-zwsbegc1.js → index-sjkg2hc4.js} +7 -7
  58. package/dist/cli/{index-qww0h314.js → index-syedr4e3.js} +1 -1
  59. package/dist/cli/{index-f6zgz02s.js → index-tcj8v6my.js} +3 -3
  60. package/dist/cli/{index-2w0beg3s.js → index-vgpedapd.js} +5 -5
  61. package/dist/cli/{index-emwezg3y.js → index-wjet7x0a.js} +3 -3
  62. package/dist/cli/{index-m21x1bkx.js → index-x7pm61wk.js} +2 -0
  63. package/dist/cli/{index-32bxwzw0.js → index-y1sj2e1n.js} +92719 -90312
  64. package/dist/cli/{index-qd619x3r.js → index-z6we1abx.js} +2 -2
  65. package/dist/cli/{index-fenasyvr.js → index-z7z3g5wt.js} +62 -12
  66. package/dist/cli/index.js +44 -44
  67. package/dist/cli/{knowledge-escalator-p2a8xh8x.js → knowledge-escalator-5e4zxan5.js} +17 -17
  68. package/dist/cli/{knowledge-events-jmh28m8d.js → knowledge-events-abzm5vfh.js} +15 -15
  69. package/dist/cli/{knowledge-link-w1fwqts4.js → knowledge-link-9ga6hyd5.js} +6 -6
  70. package/dist/cli/{knowledge-store-8gmabtsn.js → knowledge-store-q4a92eq7.js} +7 -7
  71. package/dist/cli/{knowledge-validator-yk579vs4.js → knowledge-validator-pn3m5r41.js} +9 -9
  72. package/dist/cli/{model-preflight-b3b5pgsc.js → model-preflight-mw895vgt.js} +1 -1
  73. package/dist/cli/{pending-delegations-nw7ph53z.js → pending-delegations-3z0xjppd.js} +14 -14
  74. package/dist/cli/{pr-subscriptions-9815fxbc.js → pr-subscriptions-h7mwnp62.js} +14 -14
  75. package/dist/cli/{pr-workflow-gate-98a7b6py.js → pr-workflow-gate-fec04fa0.js} +44 -44
  76. package/dist/cli/{runner-nmrjv7te.js → runner-d9833azt.js} +7 -7
  77. package/dist/cli/{scan-cursor-6zcs0frg.js → scan-cursor-ymfvzdkz.js} +10 -10
  78. package/dist/cli/{schema-warvhy9h.js → schema-chc4aez6.js} +2 -2
  79. package/dist/cli/{scope-persistence-c2ck77cv.js → scope-persistence-3xnr59y8.js} +20 -20
  80. package/dist/cli/{skill-generator-jamm1cna.js → skill-generator-3mvaghxk.js} +19 -19
  81. package/dist/cli/{snapshot-coordination-init-st0xsn3f.js → snapshot-coordination-init-arnc77r9.js} +44 -44
  82. package/dist/cli/{telemetry-ce0tx41h.js → telemetry-g9pppt9e.js} +2 -2
  83. package/dist/cli/{workspace-snapshot-0kxj2grt.js → workspace-snapshot-hvsjtepd.js} +6 -6
  84. package/dist/cli/{worktree-collision-ownership-qra7r8pw.js → worktree-collision-ownership-vj8anvb7.js} +17 -17
  85. package/dist/cli/{worktree-isolation-yr9gnf64.js → worktree-isolation-mt7z75hz.js} +45 -45
  86. package/dist/commands/close/align-stage.d.ts +10 -0
  87. package/dist/commands/close/archive-stage.d.ts +34 -0
  88. package/dist/commands/close/clean-stage.d.ts +2 -0
  89. package/dist/commands/close/constants.d.ts +122 -0
  90. package/dist/commands/close/context.d.ts +129 -0
  91. package/dist/commands/close/db-helpers.d.ts +10 -0
  92. package/dist/commands/close/dry-run.d.ts +12 -0
  93. package/dist/commands/close/finalize-stage.d.ts +44 -0
  94. package/dist/commands/close/fs-helpers.d.ts +17 -0
  95. package/dist/commands/close/internals.d.ts +55 -0
  96. package/dist/commands/close/orchestrator.d.ts +32 -0
  97. package/dist/commands/close/wiring.d.ts +2 -0
  98. package/dist/commands/close.d.ts +10 -402
  99. package/dist/index.js +485 -485
  100. package/dist/lang/dispatch.d.ts +6 -6
  101. package/dist/utils/canonical-root.d.ts +19 -0
  102. package/package.json +1 -1
  103. package/dist/cli/curator-llm-factory-zeb0pe2j.js +0 -71
  104. package/dist/cli/guardrail-explain-5vhveypz.js +0 -72
  105. package/dist/cli/hive-promoter-2vj54xc4.js +0 -86
@@ -4,19 +4,19 @@ import {
4
4
  alreadyCuratedThisGeneration,
5
5
  claimNextScanBatch,
6
6
  getScanStatus
7
- } from "./index-79wnzc8q.js";
8
- import"./index-9bhzbwa4.js";
7
+ } from "./index-pdcperq5.js";
8
+ import"./index-18rfc7qv.js";
9
9
  import"./index-vzm6zre7.js";
10
10
  import"./index-ae75rja9.js";
11
- import"./index-t8tw1bhs.js";
12
- import"./index-2w0beg3s.js";
13
- import"./index-m21x1bkx.js";
14
- import"./index-f6zgz02s.js";
15
- import"./index-7qefgq4j.js";
16
- import"./index-ee6ydtfe.js";
11
+ import"./index-0q839sg6.js";
12
+ import"./index-vgpedapd.js";
17
13
  import"./index-7g4c7s5r.js";
18
- import"./index-9e6fdz2h.js";
19
- import"./index-4rhhvd1a.js";
14
+ import"./index-x7pm61wk.js";
15
+ import"./index-tcj8v6my.js";
16
+ import"./index-1xnse449.js";
17
+ import"./index-ee6ydtfe.js";
18
+ import"./index-0mhftbpp.js";
19
+ import"./index-a1w58b47.js";
20
20
  import"./index-bk5tah7q.js";
21
21
  import"./index-bpmtbmy9.js";
22
22
  import"./index-zpsr8rpc.js";
@@ -106,8 +106,8 @@ import {
106
106
  resolveGeneratedAgentRole,
107
107
  resolveGuardrailsConfig,
108
108
  stripKnownSwarmPrefix
109
- } from "./index-87agfprq.js";
110
- import"./index-0tc0pcmh.js";
109
+ } from "./index-2b1hd1fx.js";
110
+ import"./index-g5m43paw.js";
111
111
  import"./index-bk5tah7q.js";
112
112
  import"./index-bpmtbmy9.js";
113
113
  import"./index-zpsr8rpc.js";
@@ -23,30 +23,30 @@ import {
23
23
  tombstoneScopeBinding,
24
24
  writeScopeBindingToDisk,
25
25
  writeScopeToDisk
26
- } from "./index-mgc3c483.js";
27
- import"./index-fenasyvr.js";
28
- import"./index-qd619x3r.js";
29
- import"./index-75f9jj3h.js";
30
- import"./index-6d4dc99f.js";
31
- import"./index-rk10x4zr.js";
32
- import"./index-ry16d01s.js";
26
+ } from "./index-jhd3pmd1.js";
27
+ import"./index-z7z3g5wt.js";
28
+ import"./index-z6we1abx.js";
29
+ import"./index-g409c7ke.js";
30
+ import"./index-962qme08.js";
31
+ import"./index-hhkm64wh.js";
33
32
  import"./index-n4fzmqz8.js";
34
- import"./index-qd726agw.js";
35
- import"./index-9bhzbwa4.js";
33
+ import"./index-ry16d01s.js";
34
+ import"./index-gs12223x.js";
35
+ import"./index-18rfc7qv.js";
36
36
  import"./index-vzm6zre7.js";
37
37
  import"./index-ae75rja9.js";
38
- import"./index-t8tw1bhs.js";
39
- import"./index-2w0beg3s.js";
40
- import"./index-m21x1bkx.js";
41
- import"./index-f6zgz02s.js";
42
- import"./index-7qefgq4j.js";
43
- import"./index-ee6ydtfe.js";
38
+ import"./index-0q839sg6.js";
39
+ import"./index-vgpedapd.js";
44
40
  import"./index-7g4c7s5r.js";
45
- import"./index-emwezg3y.js";
46
- import"./index-9e6fdz2h.js";
47
- import"./index-4rhhvd1a.js";
48
- import"./index-87agfprq.js";
49
- import"./index-0tc0pcmh.js";
41
+ import"./index-x7pm61wk.js";
42
+ import"./index-tcj8v6my.js";
43
+ import"./index-1xnse449.js";
44
+ import"./index-ee6ydtfe.js";
45
+ import"./index-wjet7x0a.js";
46
+ import"./index-0mhftbpp.js";
47
+ import"./index-a1w58b47.js";
48
+ import"./index-2b1hd1fx.js";
49
+ import"./index-g5m43paw.js";
50
50
  import"./index-bk5tah7q.js";
51
51
  import"./index-bpmtbmy9.js";
52
52
  import"./index-zpsr8rpc.js";
@@ -33,33 +33,33 @@ import {
33
33
  sanitizeSlug,
34
34
  selectCandidateEntries,
35
35
  writeEvalStub
36
- } from "./index-bzdc4b7t.js";
36
+ } from "./index-f91fhch0.js";
37
37
  import"./index-q7sjgr1y.js";
38
- import"./index-z5gdgdkp.js";
39
- import"./index-sahf5yz3.js";
38
+ import"./index-m3z83nhs.js";
39
+ import"./index-8vbahc4c.js";
40
40
  import"./index-p612v1mv.js";
41
- import"./index-f8xk5q5j.js";
42
- import"./index-qww0h314.js";
41
+ import"./index-shrf0wt3.js";
42
+ import"./index-syedr4e3.js";
43
43
  import"./index-rtry5xyf.js";
44
- import"./index-hdsg7yf6.js";
44
+ import"./index-s7a9dqtb.js";
45
45
  import"./index-3qf1vxtb.js";
46
46
  import"./index-n832052r.js";
47
- import"./index-qd726agw.js";
48
- import"./index-9bhzbwa4.js";
47
+ import"./index-gs12223x.js";
48
+ import"./index-18rfc7qv.js";
49
49
  import"./index-vzm6zre7.js";
50
50
  import"./index-ae75rja9.js";
51
- import"./index-t8tw1bhs.js";
52
- import"./index-2w0beg3s.js";
53
- import"./index-m21x1bkx.js";
54
- import"./index-f6zgz02s.js";
55
- import"./index-7qefgq4j.js";
56
- import"./index-ee6ydtfe.js";
51
+ import"./index-0q839sg6.js";
52
+ import"./index-vgpedapd.js";
57
53
  import"./index-7g4c7s5r.js";
58
- import"./index-emwezg3y.js";
59
- import"./index-9e6fdz2h.js";
60
- import"./index-4rhhvd1a.js";
61
- import"./index-87agfprq.js";
62
- import"./index-0tc0pcmh.js";
54
+ import"./index-x7pm61wk.js";
55
+ import"./index-tcj8v6my.js";
56
+ import"./index-1xnse449.js";
57
+ import"./index-ee6ydtfe.js";
58
+ import"./index-wjet7x0a.js";
59
+ import"./index-0mhftbpp.js";
60
+ import"./index-a1w58b47.js";
61
+ import"./index-2b1hd1fx.js";
62
+ import"./index-g5m43paw.js";
63
63
  import"./index-bk5tah7q.js";
64
64
  import"./index-bpmtbmy9.js";
65
65
  import"./index-zpsr8rpc.js";
@@ -8,64 +8,64 @@ import {
8
8
  markSnapshotCoordinationClosing,
9
9
  retrySnapshotCoordinationInitialization,
10
10
  startSnapshotCoordinationInitialization
11
- } from "./index-32bxwzw0.js";
11
+ } from "./index-y1sj2e1n.js";
12
12
  import"./index-d5qf7hvh.js";
13
- import"./index-m3tx1q9v.js";
14
- import"./index-q265ytw6.js";
15
- import"./index-bf6zx8cq.js";
16
- import"./index-qyr17fbz.js";
17
- import"./index-5bd84nxc.js";
13
+ import"./index-k73ehxa1.js";
14
+ import"./index-dme7wvwg.js";
15
+ import"./index-f8cc92g7.js";
16
+ import"./index-rrne6g2m.js";
17
+ import"./index-arqv4psy.js";
18
+ import"./index-83r0v5tn.js";
18
19
  import"./index-txdagbh7.js";
20
+ import"./index-9br68j86.js";
19
21
  import"./index-cw912re7.js";
20
- import"./index-bzdc4b7t.js";
21
- import"./index-qtd3hrk8.js";
22
- import"./index-79wnzc8q.js";
23
- import"./index-70ha9e09.js";
24
- import"./index-1aex5zd9.js";
25
- import"./index-9ss2m4rs.js";
26
- import"./index-3nm1b3t2.js";
22
+ import"./index-f91fhch0.js";
23
+ import"./index-ce8p9t28.js";
24
+ import"./index-pdcperq5.js";
25
+ import"./index-fyfbpz4f.js";
26
+ import"./index-mtepgqan.js";
27
27
  import"./index-zsrtt42s.js";
28
- import"./index-eretcr6t.js";
29
- import"./index-251vrmge.js";
30
- import"./index-9wv6a3jx.js";
28
+ import"./index-5sjq3shs.js";
29
+ import"./index-m7cwnt9r.js";
30
+ import"./index-gmjg65tm.js";
31
31
  import"./index-b43rt5ph.js";
32
32
  import"./index-q7sjgr1y.js";
33
- import"./index-bv8ha57q.js";
34
- import"./index-fmzz6aw7.js";
35
- import"./index-zwsbegc1.js";
36
- import"./index-z5gdgdkp.js";
37
- import"./index-sahf5yz3.js";
33
+ import"./index-3r6k6qa7.js";
34
+ import"./index-09gv90d7.js";
35
+ import"./index-sjkg2hc4.js";
36
+ import"./index-m3z83nhs.js";
37
+ import"./index-8vbahc4c.js";
38
38
  import"./index-p612v1mv.js";
39
- import"./index-f8xk5q5j.js";
40
- import"./index-qww0h314.js";
39
+ import"./index-shrf0wt3.js";
40
+ import"./index-syedr4e3.js";
41
41
  import"./index-rtry5xyf.js";
42
- import"./index-hdsg7yf6.js";
42
+ import"./index-s7a9dqtb.js";
43
43
  import"./index-3qf1vxtb.js";
44
44
  import"./index-n832052r.js";
45
- import"./index-mgc3c483.js";
46
- import"./index-fenasyvr.js";
47
- import"./index-qd619x3r.js";
48
- import"./index-75f9jj3h.js";
49
- import"./index-6d4dc99f.js";
50
- import"./index-rk10x4zr.js";
51
- import"./index-ry16d01s.js";
45
+ import"./index-jhd3pmd1.js";
46
+ import"./index-z7z3g5wt.js";
47
+ import"./index-z6we1abx.js";
48
+ import"./index-g409c7ke.js";
49
+ import"./index-962qme08.js";
50
+ import"./index-hhkm64wh.js";
52
51
  import"./index-n4fzmqz8.js";
53
- import"./index-qd726agw.js";
54
- import"./index-9bhzbwa4.js";
52
+ import"./index-ry16d01s.js";
53
+ import"./index-gs12223x.js";
54
+ import"./index-18rfc7qv.js";
55
55
  import"./index-vzm6zre7.js";
56
56
  import"./index-ae75rja9.js";
57
- import"./index-t8tw1bhs.js";
58
- import"./index-2w0beg3s.js";
59
- import"./index-m21x1bkx.js";
60
- import"./index-f6zgz02s.js";
61
- import"./index-7qefgq4j.js";
62
- import"./index-ee6ydtfe.js";
57
+ import"./index-0q839sg6.js";
58
+ import"./index-vgpedapd.js";
63
59
  import"./index-7g4c7s5r.js";
64
- import"./index-emwezg3y.js";
65
- import"./index-9e6fdz2h.js";
66
- import"./index-4rhhvd1a.js";
67
- import"./index-87agfprq.js";
68
- import"./index-0tc0pcmh.js";
60
+ import"./index-x7pm61wk.js";
61
+ import"./index-tcj8v6my.js";
62
+ import"./index-1xnse449.js";
63
+ import"./index-ee6ydtfe.js";
64
+ import"./index-wjet7x0a.js";
65
+ import"./index-0mhftbpp.js";
66
+ import"./index-a1w58b47.js";
67
+ import"./index-2b1hd1fx.js";
68
+ import"./index-g5m43paw.js";
69
69
  import"./index-bk5tah7q.js";
70
70
  import"./index-bpmtbmy9.js";
71
71
  import"./index-zpsr8rpc.js";
@@ -14,8 +14,8 @@ import {
14
14
  startHeartbeatTracking,
15
15
  stopHeartbeatTracking,
16
16
  telemetry
17
- } from "./index-f6zgz02s.js";
18
- import"./index-7qefgq4j.js";
17
+ } from "./index-tcj8v6my.js";
18
+ import"./index-1xnse449.js";
19
19
  import"./index-ee6ydtfe.js";
20
20
  import"./index-bpmtbmy9.js";
21
21
  import"./index-zpsr8rpc.js";
@@ -45,14 +45,14 @@ import {
45
45
  shouldSkipSnapshot,
46
46
  switchPrFeedbackTrackingCandidateAsync,
47
47
  workspaceSnapshotMatches
48
- } from "./index-251vrmge.js";
49
- import"./index-sahf5yz3.js";
48
+ } from "./index-m7cwnt9r.js";
49
+ import"./index-8vbahc4c.js";
50
50
  import"./index-p612v1mv.js";
51
- import"./index-m21x1bkx.js";
52
- import"./index-7qefgq4j.js";
51
+ import"./index-x7pm61wk.js";
52
+ import"./index-1xnse449.js";
53
53
  import"./index-ee6ydtfe.js";
54
- import"./index-9e6fdz2h.js";
55
- import"./index-4rhhvd1a.js";
54
+ import"./index-0mhftbpp.js";
55
+ import"./index-a1w58b47.js";
56
56
  import"./index-zpsr8rpc.js";
57
57
  import"./index-zgwm4ryv.js";
58
58
  import"./index-a76rekgs.js";
@@ -6,38 +6,38 @@ import {
6
6
  WORKTREE_PROVISIONING_OWNER_LEASE_MS,
7
7
  removeWorktreeProvisioningOwner,
8
8
  scanWorktreeProvisioningOwnersForRecovery
9
- } from "./index-9wv6a3jx.js";
9
+ } from "./index-gmjg65tm.js";
10
10
  import {
11
11
  scanDelegationFallbacksForRecovery,
12
12
  scanDelegationsForRecovery
13
- } from "./index-zwsbegc1.js";
14
- import"./index-sahf5yz3.js";
13
+ } from "./index-sjkg2hc4.js";
14
+ import"./index-8vbahc4c.js";
15
15
  import {
16
16
  bunSpawn
17
17
  } from "./index-p612v1mv.js";
18
- import"./index-75f9jj3h.js";
19
- import"./index-6d4dc99f.js";
20
- import"./index-rk10x4zr.js";
21
- import"./index-ry16d01s.js";
18
+ import"./index-g409c7ke.js";
19
+ import"./index-962qme08.js";
20
+ import"./index-hhkm64wh.js";
22
21
  import"./index-n4fzmqz8.js";
23
- import"./index-qd726agw.js";
24
- import"./index-9bhzbwa4.js";
22
+ import"./index-ry16d01s.js";
23
+ import"./index-gs12223x.js";
24
+ import"./index-18rfc7qv.js";
25
25
  import"./index-vzm6zre7.js";
26
26
  import"./index-ae75rja9.js";
27
- import"./index-t8tw1bhs.js";
28
- import"./index-2w0beg3s.js";
29
- import"./index-m21x1bkx.js";
30
- import"./index-f6zgz02s.js";
27
+ import"./index-0q839sg6.js";
28
+ import"./index-vgpedapd.js";
29
+ import"./index-7g4c7s5r.js";
30
+ import"./index-x7pm61wk.js";
31
+ import"./index-tcj8v6my.js";
31
32
  import {
32
33
  canonicalRootKeyFresh
33
- } from "./index-7qefgq4j.js";
34
+ } from "./index-1xnse449.js";
34
35
  import"./index-ee6ydtfe.js";
35
- import"./index-7g4c7s5r.js";
36
36
  import {
37
37
  init_git_executable,
38
38
  resolveGitExecutable
39
- } from "./index-9e6fdz2h.js";
40
- import"./index-4rhhvd1a.js";
39
+ } from "./index-0mhftbpp.js";
40
+ import"./index-a1w58b47.js";
41
41
  import"./index-bk5tah7q.js";
42
42
  import"./index-bpmtbmy9.js";
43
43
  import"./index-zpsr8rpc.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  MAX_TRACKED_STANDARD_WORKTREE_CALLS,
4
- _internals,
4
+ _internals1 as _internals,
5
5
  abortStandardWorktreeDispatch,
6
6
  awaitingMergeByCallID,
7
7
  checkStandardWorktreeSerializationRelease,
@@ -21,66 +21,66 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-32bxwzw0.js";
24
+ } from "./index-y1sj2e1n.js";
25
25
  import"./index-d5qf7hvh.js";
26
- import"./index-m3tx1q9v.js";
27
- import"./index-q265ytw6.js";
28
- import"./index-bf6zx8cq.js";
29
- import"./index-qyr17fbz.js";
30
- import"./index-5bd84nxc.js";
26
+ import"./index-k73ehxa1.js";
27
+ import"./index-dme7wvwg.js";
28
+ import"./index-f8cc92g7.js";
29
+ import"./index-rrne6g2m.js";
30
+ import"./index-arqv4psy.js";
31
+ import"./index-83r0v5tn.js";
31
32
  import"./index-txdagbh7.js";
33
+ import"./index-9br68j86.js";
32
34
  import"./index-cw912re7.js";
33
- import"./index-bzdc4b7t.js";
34
- import"./index-qtd3hrk8.js";
35
- import"./index-79wnzc8q.js";
36
- import"./index-70ha9e09.js";
37
- import"./index-1aex5zd9.js";
38
- import"./index-9ss2m4rs.js";
39
- import"./index-3nm1b3t2.js";
35
+ import"./index-f91fhch0.js";
36
+ import"./index-ce8p9t28.js";
37
+ import"./index-pdcperq5.js";
38
+ import"./index-fyfbpz4f.js";
39
+ import"./index-mtepgqan.js";
40
40
  import"./index-zsrtt42s.js";
41
- import"./index-eretcr6t.js";
42
- import"./index-251vrmge.js";
43
- import"./index-9wv6a3jx.js";
41
+ import"./index-5sjq3shs.js";
42
+ import"./index-m7cwnt9r.js";
43
+ import"./index-gmjg65tm.js";
44
44
  import"./index-b43rt5ph.js";
45
45
  import"./index-q7sjgr1y.js";
46
- import"./index-bv8ha57q.js";
47
- import"./index-fmzz6aw7.js";
48
- import"./index-zwsbegc1.js";
49
- import"./index-z5gdgdkp.js";
50
- import"./index-sahf5yz3.js";
46
+ import"./index-3r6k6qa7.js";
47
+ import"./index-09gv90d7.js";
48
+ import"./index-sjkg2hc4.js";
49
+ import"./index-m3z83nhs.js";
50
+ import"./index-8vbahc4c.js";
51
51
  import"./index-p612v1mv.js";
52
- import"./index-f8xk5q5j.js";
53
- import"./index-qww0h314.js";
52
+ import"./index-shrf0wt3.js";
53
+ import"./index-syedr4e3.js";
54
54
  import"./index-rtry5xyf.js";
55
55
  import {
56
56
  resolveWorktreeIsolationConfig
57
- } from "./index-hdsg7yf6.js";
57
+ } from "./index-s7a9dqtb.js";
58
58
  import"./index-3qf1vxtb.js";
59
59
  import"./index-n832052r.js";
60
- import"./index-mgc3c483.js";
61
- import"./index-fenasyvr.js";
62
- import"./index-qd619x3r.js";
63
- import"./index-75f9jj3h.js";
64
- import"./index-6d4dc99f.js";
65
- import"./index-rk10x4zr.js";
66
- import"./index-ry16d01s.js";
60
+ import"./index-jhd3pmd1.js";
61
+ import"./index-z7z3g5wt.js";
62
+ import"./index-z6we1abx.js";
63
+ import"./index-g409c7ke.js";
64
+ import"./index-962qme08.js";
65
+ import"./index-hhkm64wh.js";
67
66
  import"./index-n4fzmqz8.js";
68
- import"./index-qd726agw.js";
69
- import"./index-9bhzbwa4.js";
67
+ import"./index-ry16d01s.js";
68
+ import"./index-gs12223x.js";
69
+ import"./index-18rfc7qv.js";
70
70
  import"./index-vzm6zre7.js";
71
71
  import"./index-ae75rja9.js";
72
- import"./index-t8tw1bhs.js";
73
- import"./index-2w0beg3s.js";
74
- import"./index-m21x1bkx.js";
75
- import"./index-f6zgz02s.js";
76
- import"./index-7qefgq4j.js";
77
- import"./index-ee6ydtfe.js";
72
+ import"./index-0q839sg6.js";
73
+ import"./index-vgpedapd.js";
78
74
  import"./index-7g4c7s5r.js";
79
- import"./index-emwezg3y.js";
80
- import"./index-9e6fdz2h.js";
81
- import"./index-4rhhvd1a.js";
82
- import"./index-87agfprq.js";
83
- import"./index-0tc0pcmh.js";
75
+ import"./index-x7pm61wk.js";
76
+ import"./index-tcj8v6my.js";
77
+ import"./index-1xnse449.js";
78
+ import"./index-ee6ydtfe.js";
79
+ import"./index-wjet7x0a.js";
80
+ import"./index-0mhftbpp.js";
81
+ import"./index-a1w58b47.js";
82
+ import"./index-2b1hd1fx.js";
83
+ import"./index-g5m43paw.js";
84
84
  import"./index-bk5tah7q.js";
85
85
  import"./index-bpmtbmy9.js";
86
86
  import"./index-zpsr8rpc.js";
@@ -0,0 +1,10 @@
1
+ import type { CloseStageContext, GitAlignResult } from './context.js';
2
+ /**
3
+ * STAGE 4: ALIGN
4
+ *
5
+ * Performs safe git alignment to main (resetToMainAfterMerge / resetToRemoteBranch
6
+ * via _internals), handling post-merge scenarios and non-git directories.
7
+ * Returns { gitAlignResult, prunedBranches } so the orchestrator can build
8
+ * the close summary. All warnings are pushed into ctx.warnings.
9
+ */
10
+ export declare function runAlignStage(ctx: CloseStageContext): Promise<GitAlignResult>;
@@ -0,0 +1,34 @@
1
+ import type { ArchiveStageContext, CleanStageResult, CloseStageContext } from './context.js';
2
+ /**
3
+ * Emit the single `close_archive_result` telemetry event whose payload is the
4
+ * SAME `ctx.archiveResults` array the user-facing prose derives from, so the
5
+ * two cannot disagree (issue #2030 item 6). Called AFTER `runCleanStage` so
6
+ * `source_disposition` can be finalized truthfully: artifacts that were
7
+ * successfully archived AND then unlinked by the clean stage report `'removed'`;
8
+ * artifacts preserved (absent, or failed/retained) keep their archive-time
9
+ * disposition. Counts only — no row content (issue items 4/9).
10
+ */
11
+ export declare function emitCloseArchiveResult(ctx: CloseStageContext, cleanResult: CleanStageResult): void;
12
+ /**
13
+ * Bounded activity probe for the archive-mismatch alarm (#2044): does recorded
14
+ * project activity predict archive content? Existence + size only — no reads
15
+ * of record content, no unbounded scans.
16
+ */
17
+ export declare function archiveActivityPredictsContent(directory: string): boolean;
18
+ /**
19
+ * STAGE 2: ARCHIVE
20
+ *
21
+ * Creates a timestamped archive bundle under .swarm/archive/, copies flat-file
22
+ * artifacts and active-state directories, then runs the evidence retention
23
+ * policy. All state mutations (archive path, counts, success sets) are written
24
+ * back to ctx so the caller can build the close summary.
25
+ */
26
+ export declare function runArchiveStage(ctx: CloseStageContext): Promise<void>;
27
+ /**
28
+ * Runs the evidence-retention sub-logic of STAGE 2 (ARCHIVE).
29
+ * Reads max_age_days / max_bundles / cache_max_bytes / cache_max_records from
30
+ * config.evidence (FR-016, issue #1184) and calls archiveEvidence. The report
31
+ * overload is used so the documents-cache prune runs when cache caps are set.
32
+ * Fail-open: pushes a warning on error but never throws.
33
+ */
34
+ export declare function runArchiveEvidenceRetention(ctx: ArchiveStageContext): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import type { CleanStageResult, CloseStageContext } from './context.js';
2
+ export declare function runCleanStage(ctx: CloseStageContext): Promise<CleanStageResult>;
@@ -0,0 +1,122 @@
1
+ export declare const NO_RECEIPT_PHASE_CLOSE_SCOPE_DETAIL = "no exact receipt lifecycle scope exists for phase closure";
2
+ export declare const CLOSE_SKILL_REVIEW_TIMEOUT_MS = 120000;
3
+ export declare const CLOSE_REFLECTION_TIMEOUT_MS = 90000;
4
+ /**
5
+ * Flat-file artifacts to include in the archive bundle.
6
+ * Each entry is a relative path under .swarm/.
7
+ *
8
+ * plan-ledger.jsonl is included so the archive bundle is a self-contained
9
+ * forensic snapshot of the session: the ledger holds the full audit trail of
10
+ * task state transitions and snapshot events that plan.json/plan.md don't
11
+ * preserve.
12
+ */
13
+ export declare const ARCHIVE_ARTIFACTS: string[];
14
+ /**
15
+ * Active-state flat files to clean after archiving so future swarms start clean.
16
+ *
17
+ * plan.json, plan.md, and plan-ledger.jsonl are all removed so the next /swarm
18
+ * session starts with a clean slate. The user's original ask for /swarm close
19
+ * was to "archive plan files so future swarms aren't confused" — leaving a
20
+ * terminal-state plan.json in place violates that invariant because the next
21
+ * session's loadPlan() would pick it up as if it were still active.
22
+ *
23
+ * CRITICAL: the ledger must also be removed. Without this, loadPlan()'s Step 4
24
+ * would see no plan.json but a surviving ledger, call replayFromLedger(), and
25
+ * materialize the CLOSED plan back into plan.json on the next session. The
26
+ * ledger is a second backing store for the same "terminal-state plan" and
27
+ * leaving it behind re-enables the exact bug this cleanup is meant to fix.
28
+ * The archive-first guard below ensures we only delete files we successfully
29
+ * copied to the archive bundle, so the audit trail is preserved in the bundle.
30
+ *
31
+ * knowledge-rejected.jsonl, repo-graph.json, doc-manifest.json,
32
+ * dark-matter.md, telemetry.jsonl, and swarm.db are
33
+ * session-generated artifacts that do not persist meaningfully across sessions —
34
+ * they are recreated on next session init and must be removed to avoid stale-state
35
+ * interference.
36
+ *
37
+ * The SQLite WAL sidecars swarm.db-shm and swarm.db-wal are deliberately NOT in
38
+ * either list (the archive-first guard would preserve them anyway): since #2483
39
+ * they are removed immediately AFTER the swarm.db unlink by
40
+ * removeSqliteSidecarsAfterClose, deliberately reversing #1692. Post-unlink the
41
+ * sidecar paths are meaningless for future opens (no new opener can attach),
42
+ * live processes keep their already-open fds so deleting the PATH cannot
43
+ * corrupt them, and a Windows open-handle collision yields EBUSY which the
44
+ * helper skips fail-open.
45
+ *
46
+ * Note: knowledge.jsonl is intentionally NOT cleaned because it contains cumulative
47
+ * project knowledge (lessons learned) that should persist across sessions and finalize
48
+ * cycles. The archive step still creates a backup for safety.
49
+ * close-summary.md is NOT cleaned because it is written as the final close output
50
+ * AFTER the clean stage runs. spec.md IS cleaned: it is single-session state coupled
51
+ * to the plan lifecycle (the plan it produced is removed above), so leaving it behind
52
+ * makes the next session pick up a stale spec via readEffectiveSpecSync and mis-route
53
+ * the architect into CLARIFY-SPEC/overwrite prompts. It is archived first (archive-first
54
+ * guard), so the forensic copy is preserved in the bundle. The earlier "spec.md may not
55
+ * exist" rationale was wrong — handoff.md is equally optional and is cleaned the same way.
56
+ * session-reflection.md is a single-session snapshot (not cumulative like
57
+ * knowledge.jsonl) so it IS cleaned to maintain the clean-slate invariant.
58
+ * spec-staleness.json and spec-snapshot.md are the same class of single-session
59
+ * spec-drift state as spec.md. spec-staleness.json is an existence-only gate
60
+ * checked unconditionally by enforceSpecDriftGate, which hard-blocks the core
61
+ * write tools (save_plan, update_task_status, phase_complete,
62
+ * lean_turbo_run_phase, lean_turbo_acquire_locks) with SPEC_DRIFT_BLOCK — a
63
+ * survivor would block the NEXT session against drift that no longer applies.
64
+ * spec-snapshot.md is its companion diff source, feeding the mismatch shown in
65
+ * the SPEC_DRIFT_BLOCK message. Both are archived first (archive-first guard),
66
+ * then cleaned so the next session starts drift-free.
67
+ */
68
+ export declare const ACTIVE_STATE_TO_CLEAN: string[];
69
+ /**
70
+ * Terminal plan-state files that must be removed at finalize UNCONDITIONALLY — even
71
+ * when archiving them failed — so the next session cannot resurrect the CLOSED plan
72
+ * (loadPlan Step 1 / replayFromLedger have no terminal-status filter). Kept as a
73
+ * shared constant so the archive-failure diagnostics and the unconditional removal
74
+ * below agree on the set; otherwise the "Preserved …" warning would contradict the
75
+ * removal that always follows for these files.
76
+ */
77
+ export declare const TERMINAL_STATE_FILES: readonly ["plan.json", "plan-ledger.jsonl", "spec-staleness.json", "spec-snapshot.md"];
78
+ /**
79
+ * Knowledge-family artifacts whose backing store redirects to a shared link
80
+ * directory when the worktree is linked (`.swarm/link.json`). A single
81
+ * worktree's `/swarm close` must NOT archive or delete the cohort-shared store —
82
+ * peers may still be active, and the shared store is durable with its own
83
+ * lifecycle (curation/hive-promotion already run on it, link-aware, during
84
+ * close). When the worktree is NOT linked these are handled normally (local).
85
+ *
86
+ * Scope: this set lists exactly the knowledge-family files that close otherwise
87
+ * archives/cleans — i.e. the intersection with `ARCHIVE_ARTIFACTS` /
88
+ * `ACTIVE_STATE_TO_CLEAN`. The other redirected files (retractions, counters,
89
+ * quarantine, unactionable, application, knowledge-events) appear in neither
90
+ * list, so close never touches them and they need no guard here. Note the two
91
+ * stages cover different members: the archive-stage guard fires for both
92
+ * `knowledge.jsonl` and `knowledge-rejected.jsonl` (both in `ARCHIVE_ARTIFACTS`),
93
+ * while the clean-stage guard is only reachable for `knowledge-rejected.jsonl`
94
+ * (`ACTIVE_STATE_TO_CLEAN` has no `knowledge.jsonl`).
95
+ */
96
+ export declare const KNOWLEDGE_FAMILY_ARTIFACTS: Set<string>;
97
+ /**
98
+ * Artifacts whose absence is a genuine state anomaly (vs the normal "optional,
99
+ * session-generated, may simply not exist" case). `plan.json`/`plan-ledger.jsonl`
100
+ * back the authoritative plan state (plan-durability invariant 5); their
101
+ * absence in a plan-based session warrants a warning. All other artifacts —
102
+ * including `swarm.db`, which `getProjectDb` creates lazily only when a
103
+ * DB-backed tool actually runs — are optional: a fresh or plan-free session
104
+ * legitimately has none of them, and an absent optional artifact is reported
105
+ * as `source_disposition: 'absent'`, NOT as a failure (issue #2030 item 7).
106
+ */
107
+ export declare const REQUIRED_ARTIFACTS: Set<string>;
108
+ /**
109
+ * Active-state directories to archive and clean after archiving.
110
+ * These contain session-generated data that must be removed so future
111
+ * swarms start clean. Each entry is a relative path under .swarm/.
112
+ */
113
+ export declare const ACTIVE_STATE_DIRS_TO_CLEAN: string[];
114
+ /**
115
+ * STAGE 3: CLEAN
116
+ *
117
+ * Removes active-state files and directories that were successfully archived
118
+ * (archive-first guard), plus stale config-backup/ledger-sibling/SWARM_PLAN/.tmp
119
+ * artifacts. Resets context.md for the next session. All state mutations are
120
+ * written back to ctx so the caller can build the close summary.
121
+ */
122
+ export declare const ACTIVE_STATE_UNLINK_RETRY_DELAYS_MS: readonly [25, 50, 100, 200];