opencode-swarm 7.167.2 → 7.168.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.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/cli/{coder-settlement-jy9rad28.js → coder-settlement-a35acvj1.js} +12 -12
- package/dist/cli/{config-doctor-p66vnpy3.js → config-doctor-9csx775x.js} +3 -3
- package/dist/cli/{core-tw0wtntz.js → core-agk5s7dm.js} +2 -2
- package/dist/cli/{curation-policy-ndp27v0c.js → curation-policy-mgwv8h2k.js} +5 -5
- package/dist/cli/{curator-5nzde80g.js → curator-2fcagjyk.js} +38 -38
- package/dist/cli/{curator-drift-gb651hcw.js → curator-drift-k0zrnm09.js} +5 -5
- package/dist/cli/curator-llm-factory-qaxmyy46.js +71 -0
- package/dist/cli/{evidence-summary-service-bzpfaypy.js → evidence-summary-service-4s6cje60.js} +17 -17
- package/dist/cli/{gate-evidence-wa8cj8h6.js → gate-evidence-saja4dan.js} +7 -7
- package/dist/cli/guardrail-explain-z41q6sf0.js +72 -0
- package/dist/cli/{guardrail-log-7dv73e0q.js → guardrail-log-0h24spq0.js} +8 -8
- package/dist/cli/{guardrail-reset-1kng6y8x.js → guardrail-reset-cwbe47k5.js} +38 -38
- package/dist/cli/{hive-promoter-87kk2pg5.js → hive-promoter-esxtcvr1.js} +38 -38
- package/dist/cli/{index-3r6k6qa7.js → index-00zx94vn.js} +4 -4
- package/dist/cli/{index-arqv4psy.js → index-21ree67h.js} +57 -101
- package/dist/cli/{index-dme7wvwg.js → index-30h1pk05.js} +4 -4
- package/dist/cli/{index-shrf0wt3.js → index-3dywbkyr.js} +4 -4
- package/dist/cli/{index-vgpedapd.js → index-4r5pmtvk.js} +2 -2
- package/dist/cli/{index-3ws11dq0.js → index-54w1564x.js} +2 -2
- package/dist/cli/{index-m7cwnt9r.js → index-5zqakgp4.js} +2 -2
- package/dist/cli/{index-f91fhch0.js → index-64phnth4.js} +4 -4
- package/dist/cli/{index-09gv90d7.js → index-8f0kscpg.js} +2 -2
- package/dist/cli/{index-0q839sg6.js → index-8ybjqg51.js} +1 -1
- package/dist/cli/{index-z6we1abx.js → index-a8xbvsse.js} +2 -2
- package/dist/cli/{index-jhd3pmd1.js → index-an8b5gda.js} +7 -7
- package/dist/cli/{index-gmjg65tm.js → index-bvqqwx84.js} +2 -2
- package/dist/cli/{index-rrne6g2m.js → index-cyenn3pf.js} +6 -2
- package/dist/cli/{index-65s0vgb1.js → index-ddr97ram.js} +40 -40
- package/dist/cli/{index-mtepgqan.js → index-dfyv3xkd.js} +7 -7
- package/dist/cli/{index-2b1hd1fx.js → index-exatbqwj.js} +13 -4
- package/dist/cli/{index-83r0v5tn.js → index-gp9yzr1v.js} +1 -1
- package/dist/cli/{index-79234evf.js → index-h0e2e3h1.js} +1 -1
- package/dist/cli/{index-962qme08.js → index-h439y187.js} +1 -1
- package/dist/cli/{index-18rfc7qv.js → index-j950hqmq.js} +7 -7
- package/dist/cli/{index-8vbahc4c.js → index-kear8gb7.js} +11 -6
- package/dist/cli/{index-syedr4e3.js → index-m35hybf0.js} +1 -1
- package/dist/cli/{index-ce8p9t28.js → index-mr0wn36f.js} +5 -5
- package/dist/cli/{index-sjkg2hc4.js → index-nprngf8p.js} +6 -6
- package/dist/cli/{index-m3z83nhs.js → index-nsyxj57e.js} +8 -8
- package/dist/cli/{index-f8cc92g7.js → index-nwwk3dej.js} +1 -1
- package/dist/cli/{index-g409c7ke.js → index-pyf517sz.js} +2 -2
- package/dist/cli/{index-k73ehxa1.js → index-qhey6vc3.js} +1 -1
- package/dist/cli/{index-gs12223x.js → index-qwsh0h2g.js} +2 -2
- package/dist/cli/{index-n4fzmqz8.js → index-rdm3px0g.js} +4 -2
- package/dist/cli/{index-25xeyjfx.js → index-rxcgrgkc.js} +38 -38
- package/dist/cli/{index-ehq2vtkq.js → index-s0d5xter.js} +4 -4
- package/dist/cli/{index-wjet7x0a.js → index-seetnhpx.js} +1 -1
- package/dist/cli/{index-g5m43paw.js → index-sxt7fgcw.js} +1 -0
- package/dist/cli/{index-x7pm61wk.js → index-v3xc4sde.js} +9 -8
- package/dist/cli/{index-pdcperq5.js → index-wnzxcr0z.js} +2 -2
- package/dist/cli/{index-hhkm64wh.js → index-wst6n478.js} +103 -3
- package/dist/cli/{index-s7a9dqtb.js → index-x7k3dps5.js} +4 -3
- package/dist/cli/{index-y1sj2e1n.js → index-yevn4jpe.js} +2094 -1686
- package/dist/cli/index-yv76j77m.js +2008 -0
- package/dist/cli/{index-tcj8v6my.js → index-z6qreakh.js} +6 -6
- package/dist/cli/{index-5sjq3shs.js → index-ze520xw1.js} +8 -8
- package/dist/cli/index.js +38 -38
- package/dist/cli/{knowledge-escalator-5e4zxan5.js → knowledge-escalator-b2tf3sd1.js} +13 -13
- package/dist/cli/{knowledge-events-abzm5vfh.js → knowledge-events-bgs2kxe0.js} +11 -11
- package/dist/cli/{knowledge-link-9ga6hyd5.js → knowledge-link-dr3xnwyd.js} +4 -4
- package/dist/cli/{knowledge-store-q4a92eq7.js → knowledge-store-stbmb1b9.js} +5 -5
- package/dist/cli/{knowledge-validator-pn3m5r41.js → knowledge-validator-zykgnsag.js} +7 -7
- package/dist/cli/{model-preflight-mw895vgt.js → model-preflight-1ycat9jz.js} +1 -1
- package/dist/cli/{pending-delegations-3z0xjppd.js → pending-delegations-n5qavj20.js} +12 -12
- package/dist/cli/{pr-subscriptions-h7mwnp62.js → pr-subscriptions-gnvmyrng.js} +12 -12
- package/dist/cli/{pr-workflow-gate-fec04fa0.js → pr-workflow-gate-cf3ybrws.js} +38 -38
- package/dist/cli/{runner-d9833azt.js → runner-k0ycgv8x.js} +5 -5
- package/dist/cli/{scan-cursor-ymfvzdkz.js → scan-cursor-b3mcrx23.js} +6 -6
- package/dist/cli/{schema-chc4aez6.js → schema-08049cjb.js} +4 -2
- package/dist/cli/{scope-persistence-3xnr59y8.js → scope-persistence-a493gv51.js} +16 -16
- package/dist/cli/{skill-generator-3mvaghxk.js → skill-generator-2qqzkdpv.js} +15 -15
- package/dist/cli/{snapshot-coordination-init-arnc77r9.js → snapshot-coordination-init-8yt8p7q0.js} +38 -38
- package/dist/cli/{sqlite-loader-xrnf6bq8.js → sqlite-loader-amp9z7ty.js} +1 -1
- package/dist/cli/{telemetry-g9pppt9e.js → telemetry-2wzapf11.js} +1 -1
- package/dist/cli/{workspace-snapshot-hvsjtepd.js → workspace-snapshot-rkgxhj9b.js} +3 -3
- package/dist/cli/{worktree-collision-ownership-vj8anvb7.js → worktree-collision-ownership-xttafc4h.js} +13 -13
- package/dist/cli/{worktree-isolation-mt7z75hz.js → worktree-isolation-e5q5rewk.js} +38 -38
- package/dist/commands/reset.d.ts +10 -0
- package/dist/commands/rollback.d.ts +9 -0
- package/dist/config/schema.d.ts +29 -0
- package/dist/db/project-db.d.ts +8 -0
- package/dist/db/sqlite-loader.d.ts +2 -1
- package/dist/dispatch/spawn-circuit.d.ts +121 -0
- package/dist/dispatch/token-bucket.d.ts +46 -0
- package/dist/hooks/delegation-gate/dead-lane-reclaim.d.ts +61 -0
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +22 -0
- package/dist/hooks/issue-trace.d.ts +3 -0
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/index.js +657 -572
- package/dist/plan/ledger-sqlite.d.ts +226 -0
- package/dist/plan/ledger.d.ts +24 -0
- package/dist/plan/manager.d.ts +19 -0
- package/dist/retention/sweep.d.ts +2 -0
- package/dist/services/spec-drift-recovery.d.ts +2 -1
- package/dist/utils/ephemeral-session-teardown.d.ts +55 -2
- package/opencode-swarm.schema.json +41 -0
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-xy96x5x8.js +0 -71
- package/dist/cli/guardrail-explain-1ef5he6j.js +0 -72
- package/dist/cli/index-z7z3g5wt.js +0 -1017
|
@@ -23,30 +23,30 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
26
|
+
} from "./index-an8b5gda.js";
|
|
27
|
+
import"./index-yv76j77m.js";
|
|
28
|
+
import"./index-a8xbvsse.js";
|
|
29
|
+
import"./index-pyf517sz.js";
|
|
30
|
+
import"./index-h439y187.js";
|
|
31
|
+
import"./index-wst6n478.js";
|
|
32
|
+
import"./index-rdm3px0g.js";
|
|
33
33
|
import"./index-ry16d01s.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
import"./index-qwsh0h2g.js";
|
|
35
|
+
import"./index-j950hqmq.js";
|
|
36
36
|
import"./index-vzm6zre7.js";
|
|
37
37
|
import"./index-ae75rja9.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-8ybjqg51.js";
|
|
39
|
+
import"./index-4r5pmtvk.js";
|
|
40
40
|
import"./index-7g4c7s5r.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
41
|
+
import"./index-v3xc4sde.js";
|
|
42
|
+
import"./index-z6qreakh.js";
|
|
43
43
|
import"./index-1xnse449.js";
|
|
44
44
|
import"./index-ee6ydtfe.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-seetnhpx.js";
|
|
46
46
|
import"./index-0mhftbpp.js";
|
|
47
47
|
import"./index-a1w58b47.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-exatbqwj.js";
|
|
49
|
+
import"./index-sxt7fgcw.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-
|
|
36
|
+
} from "./index-64phnth4.js";
|
|
37
37
|
import"./index-q7sjgr1y.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
38
|
+
import"./index-nsyxj57e.js";
|
|
39
|
+
import"./index-kear8gb7.js";
|
|
40
40
|
import"./index-p612v1mv.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
41
|
+
import"./index-3dywbkyr.js";
|
|
42
|
+
import"./index-m35hybf0.js";
|
|
43
43
|
import"./index-rtry5xyf.js";
|
|
44
|
-
import"./index-
|
|
44
|
+
import"./index-x7k3dps5.js";
|
|
45
45
|
import"./index-3qf1vxtb.js";
|
|
46
46
|
import"./index-n832052r.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
47
|
+
import"./index-qwsh0h2g.js";
|
|
48
|
+
import"./index-j950hqmq.js";
|
|
49
49
|
import"./index-vzm6zre7.js";
|
|
50
50
|
import"./index-ae75rja9.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
51
|
+
import"./index-8ybjqg51.js";
|
|
52
|
+
import"./index-4r5pmtvk.js";
|
|
53
53
|
import"./index-7g4c7s5r.js";
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-
|
|
54
|
+
import"./index-v3xc4sde.js";
|
|
55
|
+
import"./index-z6qreakh.js";
|
|
56
56
|
import"./index-1xnse449.js";
|
|
57
57
|
import"./index-ee6ydtfe.js";
|
|
58
|
-
import"./index-
|
|
58
|
+
import"./index-seetnhpx.js";
|
|
59
59
|
import"./index-0mhftbpp.js";
|
|
60
60
|
import"./index-a1w58b47.js";
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
61
|
+
import"./index-exatbqwj.js";
|
|
62
|
+
import"./index-sxt7fgcw.js";
|
|
63
63
|
import"./index-bk5tah7q.js";
|
|
64
64
|
import"./index-bpmtbmy9.js";
|
|
65
65
|
import"./index-zpsr8rpc.js";
|
package/dist/cli/{snapshot-coordination-init-arnc77r9.js → snapshot-coordination-init-8yt8p7q0.js}
RENAMED
|
@@ -8,64 +8,64 @@ import {
|
|
|
8
8
|
markSnapshotCoordinationClosing,
|
|
9
9
|
retrySnapshotCoordinationInitialization,
|
|
10
10
|
startSnapshotCoordinationInitialization
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-yevn4jpe.js";
|
|
12
12
|
import"./index-d5qf7hvh.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
13
|
+
import"./index-qhey6vc3.js";
|
|
14
|
+
import"./index-30h1pk05.js";
|
|
15
|
+
import"./index-nwwk3dej.js";
|
|
16
|
+
import"./index-cyenn3pf.js";
|
|
17
|
+
import"./index-21ree67h.js";
|
|
18
|
+
import"./index-gp9yzr1v.js";
|
|
19
19
|
import"./index-txdagbh7.js";
|
|
20
20
|
import"./index-9br68j86.js";
|
|
21
21
|
import"./index-cw912re7.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
22
|
+
import"./index-64phnth4.js";
|
|
23
|
+
import"./index-mr0wn36f.js";
|
|
24
|
+
import"./index-wnzxcr0z.js";
|
|
25
25
|
import"./index-fyfbpz4f.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-dfyv3xkd.js";
|
|
27
27
|
import"./index-zsrtt42s.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
28
|
+
import"./index-ze520xw1.js";
|
|
29
|
+
import"./index-5zqakgp4.js";
|
|
30
|
+
import"./index-bvqqwx84.js";
|
|
31
31
|
import"./index-b43rt5ph.js";
|
|
32
32
|
import"./index-q7sjgr1y.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
33
|
+
import"./index-00zx94vn.js";
|
|
34
|
+
import"./index-8f0kscpg.js";
|
|
35
|
+
import"./index-nprngf8p.js";
|
|
36
|
+
import"./index-nsyxj57e.js";
|
|
37
|
+
import"./index-kear8gb7.js";
|
|
38
38
|
import"./index-p612v1mv.js";
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-3dywbkyr.js";
|
|
40
|
+
import"./index-m35hybf0.js";
|
|
41
41
|
import"./index-rtry5xyf.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-x7k3dps5.js";
|
|
43
43
|
import"./index-3qf1vxtb.js";
|
|
44
44
|
import"./index-n832052r.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
45
|
+
import"./index-an8b5gda.js";
|
|
46
|
+
import"./index-yv76j77m.js";
|
|
47
|
+
import"./index-a8xbvsse.js";
|
|
48
|
+
import"./index-pyf517sz.js";
|
|
49
|
+
import"./index-h439y187.js";
|
|
50
|
+
import"./index-wst6n478.js";
|
|
51
|
+
import"./index-rdm3px0g.js";
|
|
52
52
|
import"./index-ry16d01s.js";
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
53
|
+
import"./index-qwsh0h2g.js";
|
|
54
|
+
import"./index-j950hqmq.js";
|
|
55
55
|
import"./index-vzm6zre7.js";
|
|
56
56
|
import"./index-ae75rja9.js";
|
|
57
|
-
import"./index-
|
|
58
|
-
import"./index-
|
|
57
|
+
import"./index-8ybjqg51.js";
|
|
58
|
+
import"./index-4r5pmtvk.js";
|
|
59
59
|
import"./index-7g4c7s5r.js";
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
60
|
+
import"./index-v3xc4sde.js";
|
|
61
|
+
import"./index-z6qreakh.js";
|
|
62
62
|
import"./index-1xnse449.js";
|
|
63
63
|
import"./index-ee6ydtfe.js";
|
|
64
|
-
import"./index-
|
|
64
|
+
import"./index-seetnhpx.js";
|
|
65
65
|
import"./index-0mhftbpp.js";
|
|
66
66
|
import"./index-a1w58b47.js";
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
67
|
+
import"./index-exatbqwj.js";
|
|
68
|
+
import"./index-sxt7fgcw.js";
|
|
69
69
|
import"./index-bk5tah7q.js";
|
|
70
70
|
import"./index-bpmtbmy9.js";
|
|
71
71
|
import"./index-zpsr8rpc.js";
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
shouldSkipSnapshot,
|
|
46
46
|
switchPrFeedbackTrackingCandidateAsync,
|
|
47
47
|
workspaceSnapshotMatches
|
|
48
|
-
} from "./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
} from "./index-5zqakgp4.js";
|
|
49
|
+
import"./index-kear8gb7.js";
|
|
50
50
|
import"./index-p612v1mv.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-v3xc4sde.js";
|
|
52
52
|
import"./index-1xnse449.js";
|
|
53
53
|
import"./index-ee6ydtfe.js";
|
|
54
54
|
import"./index-0mhftbpp.js";
|
|
@@ -6,29 +6,29 @@ import {
|
|
|
6
6
|
WORKTREE_PROVISIONING_OWNER_LEASE_MS,
|
|
7
7
|
removeWorktreeProvisioningOwner,
|
|
8
8
|
scanWorktreeProvisioningOwnersForRecovery
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-bvqqwx84.js";
|
|
10
10
|
import {
|
|
11
11
|
scanDelegationFallbacksForRecovery,
|
|
12
12
|
scanDelegationsForRecovery
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
13
|
+
} from "./index-nprngf8p.js";
|
|
14
|
+
import"./index-kear8gb7.js";
|
|
15
15
|
import {
|
|
16
16
|
bunSpawn
|
|
17
17
|
} from "./index-p612v1mv.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
18
|
+
import"./index-pyf517sz.js";
|
|
19
|
+
import"./index-h439y187.js";
|
|
20
|
+
import"./index-wst6n478.js";
|
|
21
|
+
import"./index-rdm3px0g.js";
|
|
22
22
|
import"./index-ry16d01s.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
23
|
+
import"./index-qwsh0h2g.js";
|
|
24
|
+
import"./index-j950hqmq.js";
|
|
25
25
|
import"./index-vzm6zre7.js";
|
|
26
26
|
import"./index-ae75rja9.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-8ybjqg51.js";
|
|
28
|
+
import"./index-4r5pmtvk.js";
|
|
29
29
|
import"./index-7g4c7s5r.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-v3xc4sde.js";
|
|
31
|
+
import"./index-z6qreakh.js";
|
|
32
32
|
import {
|
|
33
33
|
canonicalRootKeyFresh
|
|
34
34
|
} from "./index-1xnse449.js";
|
|
@@ -21,66 +21,66 @@ import {
|
|
|
21
21
|
sanitizeWorktreeTaskId,
|
|
22
22
|
standardWorktreeByCallID,
|
|
23
23
|
standardWorktreeSerializationSessions
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-yevn4jpe.js";
|
|
25
25
|
import"./index-d5qf7hvh.js";
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
26
|
+
import"./index-qhey6vc3.js";
|
|
27
|
+
import"./index-30h1pk05.js";
|
|
28
|
+
import"./index-nwwk3dej.js";
|
|
29
|
+
import"./index-cyenn3pf.js";
|
|
30
|
+
import"./index-21ree67h.js";
|
|
31
|
+
import"./index-gp9yzr1v.js";
|
|
32
32
|
import"./index-txdagbh7.js";
|
|
33
33
|
import"./index-9br68j86.js";
|
|
34
34
|
import"./index-cw912re7.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
35
|
+
import"./index-64phnth4.js";
|
|
36
|
+
import"./index-mr0wn36f.js";
|
|
37
|
+
import"./index-wnzxcr0z.js";
|
|
38
38
|
import"./index-fyfbpz4f.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-dfyv3xkd.js";
|
|
40
40
|
import"./index-zsrtt42s.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
41
|
+
import"./index-ze520xw1.js";
|
|
42
|
+
import"./index-5zqakgp4.js";
|
|
43
|
+
import"./index-bvqqwx84.js";
|
|
44
44
|
import"./index-b43rt5ph.js";
|
|
45
45
|
import"./index-q7sjgr1y.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
46
|
+
import"./index-00zx94vn.js";
|
|
47
|
+
import"./index-8f0kscpg.js";
|
|
48
|
+
import"./index-nprngf8p.js";
|
|
49
|
+
import"./index-nsyxj57e.js";
|
|
50
|
+
import"./index-kear8gb7.js";
|
|
51
51
|
import"./index-p612v1mv.js";
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
52
|
+
import"./index-3dywbkyr.js";
|
|
53
|
+
import"./index-m35hybf0.js";
|
|
54
54
|
import"./index-rtry5xyf.js";
|
|
55
55
|
import {
|
|
56
56
|
resolveWorktreeIsolationConfig
|
|
57
|
-
} from "./index-
|
|
57
|
+
} from "./index-x7k3dps5.js";
|
|
58
58
|
import"./index-3qf1vxtb.js";
|
|
59
59
|
import"./index-n832052r.js";
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
60
|
+
import"./index-an8b5gda.js";
|
|
61
|
+
import"./index-yv76j77m.js";
|
|
62
|
+
import"./index-a8xbvsse.js";
|
|
63
|
+
import"./index-pyf517sz.js";
|
|
64
|
+
import"./index-h439y187.js";
|
|
65
|
+
import"./index-wst6n478.js";
|
|
66
|
+
import"./index-rdm3px0g.js";
|
|
67
67
|
import"./index-ry16d01s.js";
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
68
|
+
import"./index-qwsh0h2g.js";
|
|
69
|
+
import"./index-j950hqmq.js";
|
|
70
70
|
import"./index-vzm6zre7.js";
|
|
71
71
|
import"./index-ae75rja9.js";
|
|
72
|
-
import"./index-
|
|
73
|
-
import"./index-
|
|
72
|
+
import"./index-8ybjqg51.js";
|
|
73
|
+
import"./index-4r5pmtvk.js";
|
|
74
74
|
import"./index-7g4c7s5r.js";
|
|
75
|
-
import"./index-
|
|
76
|
-
import"./index-
|
|
75
|
+
import"./index-v3xc4sde.js";
|
|
76
|
+
import"./index-z6qreakh.js";
|
|
77
77
|
import"./index-1xnse449.js";
|
|
78
78
|
import"./index-ee6ydtfe.js";
|
|
79
|
-
import"./index-
|
|
79
|
+
import"./index-seetnhpx.js";
|
|
80
80
|
import"./index-0mhftbpp.js";
|
|
81
81
|
import"./index-a1w58b47.js";
|
|
82
|
-
import"./index-
|
|
83
|
-
import"./index-
|
|
82
|
+
import"./index-exatbqwj.js";
|
|
83
|
+
import"./index-sxt7fgcw.js";
|
|
84
84
|
import"./index-bk5tah7q.js";
|
|
85
85
|
import"./index-bpmtbmy9.js";
|
|
86
86
|
import"./index-zpsr8rpc.js";
|
package/dist/commands/reset.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import { clearPlanLedgerForReset } from '../plan/ledger.js';
|
|
3
|
+
import { withPlanLifecycleLock } from '../plan/manager.js';
|
|
1
4
|
import { type ResetBackupResult } from './reset-backup';
|
|
2
5
|
/**
|
|
3
6
|
* _internals DI seam so tests can stub the pre-deletion backup without touching
|
|
@@ -6,6 +9,13 @@ import { type ResetBackupResult } from './reset-backup';
|
|
|
6
9
|
*/
|
|
7
10
|
export declare const _internals: {
|
|
8
11
|
backupSwarmStateBeforeReset: (directory: string, kind: 'reset' | 'reset-session', relEntries: string[]) => ResetBackupResult;
|
|
12
|
+
clearPlanLedgerForReset: typeof clearPlanLedgerForReset;
|
|
13
|
+
withPlanLifecycleLock: typeof withPlanLifecycleLock;
|
|
14
|
+
existsSync: typeof fs.existsSync;
|
|
15
|
+
readFileSync: typeof fs.readFileSync;
|
|
16
|
+
unlinkSync: typeof fs.unlinkSync;
|
|
17
|
+
writeFileSync: typeof fs.writeFileSync;
|
|
18
|
+
rmSync: typeof fs.rmSync;
|
|
9
19
|
};
|
|
10
20
|
/**
|
|
11
21
|
* Handles the /swarm reset command.
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import { clearPlanLedgerForReset, peekPlanFromLedger, replacePlanLedgerWithRoot } from '../plan/ledger';
|
|
2
|
+
import { withPlanLifecycleLock } from '../plan/manager';
|
|
3
|
+
/** Test-only seam for the atomic ledger re-root lifecycle transition. */
|
|
4
|
+
export declare const _internals: {
|
|
5
|
+
replacePlanLedgerWithRoot: typeof replacePlanLedgerWithRoot;
|
|
6
|
+
clearPlanLedgerForReset: typeof clearPlanLedgerForReset;
|
|
7
|
+
peekPlanFromLedger: typeof peekPlanFromLedger;
|
|
8
|
+
withPlanLifecycleLock: typeof withPlanLifecycleLock;
|
|
9
|
+
};
|
|
1
10
|
/**
|
|
2
11
|
* Handle /swarm rollback command
|
|
3
12
|
* Restores .swarm/ state from a checkpoint using direct overwrite
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -1395,6 +1395,7 @@ export declare const WorktreeIsolationConfigSchema: z.ZodObject<{
|
|
|
1395
1395
|
}>>;
|
|
1396
1396
|
serialization_release_after_dispatches: z.ZodDefault<z.ZodNumber>;
|
|
1397
1397
|
serialization_release_after_ms: z.ZodDefault<z.ZodNumber>;
|
|
1398
|
+
session_create_timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
1398
1399
|
runtime_isolation: z.ZodOptional<z.ZodObject<{
|
|
1399
1400
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1400
1401
|
port_base: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1889,6 +1890,26 @@ export declare const LaneLivenessWatchdogConfigSchema: z.ZodObject<{
|
|
|
1889
1890
|
stall_token_threshold: z.ZodDefault<z.ZodNumber>;
|
|
1890
1891
|
}, z.core.$strict>;
|
|
1891
1892
|
export type LaneLivenessWatchdogConfig = z.infer<typeof LaneLivenessWatchdogConfigSchema>;
|
|
1893
|
+
/**
|
|
1894
|
+
* Issue #2507 dispatch protection: an action-local spawn-protection circuit
|
|
1895
|
+
* plus a token-bucket dispatch rate limit for native task delegations.
|
|
1896
|
+
*
|
|
1897
|
+
* Default-ON follows the guardrails family (`guardrails.enabled` defaults
|
|
1898
|
+
* true): the numbers are deliberately conservative (10 dispatches per second
|
|
1899
|
+
* with a burst of 10 never waits in normal use), and every knob is
|
|
1900
|
+
* user-overridable — set `enabled: false` to opt out entirely, or
|
|
1901
|
+
* `rate_per_second: 0` to disable only the limiter. Parameter surface
|
|
1902
|
+
* adopted with credit from opencode-ensemble (reimplemented per ADR 0002 —
|
|
1903
|
+
* no upstream code is ported).
|
|
1904
|
+
*/
|
|
1905
|
+
export declare const DispatchProtectionConfigSchema: z.ZodObject<{
|
|
1906
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1907
|
+
spawn_failure_threshold: z.ZodDefault<z.ZodNumber>;
|
|
1908
|
+
half_open_after_ms: z.ZodDefault<z.ZodNumber>;
|
|
1909
|
+
rate_per_second: z.ZodDefault<z.ZodNumber>;
|
|
1910
|
+
burst_capacity: z.ZodDefault<z.ZodNumber>;
|
|
1911
|
+
}, z.core.$strict>;
|
|
1912
|
+
export type DispatchProtectionConfig = z.infer<typeof DispatchProtectionConfigSchema>;
|
|
1892
1913
|
/**
|
|
1893
1914
|
* Issue #2384: deprecated transcript-row settlement for Profile A PR-review
|
|
1894
1915
|
* base/micro discovery lanes is an explicit compatibility opt-in. Omitted
|
|
@@ -2001,6 +2022,13 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
2001
2022
|
stall_min_steps: z.ZodDefault<z.ZodNumber>;
|
|
2002
2023
|
stall_token_threshold: z.ZodDefault<z.ZodNumber>;
|
|
2003
2024
|
}, z.core.$strict>>;
|
|
2025
|
+
dispatch_protection: z.ZodOptional<z.ZodObject<{
|
|
2026
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2027
|
+
spawn_failure_threshold: z.ZodDefault<z.ZodNumber>;
|
|
2028
|
+
half_open_after_ms: z.ZodDefault<z.ZodNumber>;
|
|
2029
|
+
rate_per_second: z.ZodDefault<z.ZodNumber>;
|
|
2030
|
+
burst_capacity: z.ZodDefault<z.ZodNumber>;
|
|
2031
|
+
}, z.core.$strict>>;
|
|
2004
2032
|
pr_review_legacy_transcript_compatibility: z.ZodOptional<z.ZodBoolean>;
|
|
2005
2033
|
gates: z.ZodOptional<z.ZodObject<{
|
|
2006
2034
|
syntax_check: z.ZodDefault<z.ZodObject<{
|
|
@@ -2801,6 +2829,7 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
2801
2829
|
}>>;
|
|
2802
2830
|
serialization_release_after_dispatches: z.ZodDefault<z.ZodNumber>;
|
|
2803
2831
|
serialization_release_after_ms: z.ZodDefault<z.ZodNumber>;
|
|
2832
|
+
session_create_timeout_ms: z.ZodDefault<z.ZodNumber>;
|
|
2804
2833
|
runtime_isolation: z.ZodOptional<z.ZodObject<{
|
|
2805
2834
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2806
2835
|
port_base: z.ZodOptional<z.ZodNumber>;
|
package/dist/db/project-db.d.ts
CHANGED
|
@@ -39,6 +39,14 @@ export declare function projectDbPath(directory: string): string;
|
|
|
39
39
|
* workspace just to check for a missing record.
|
|
40
40
|
*/
|
|
41
41
|
export declare function projectDbExists(directory: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Open the existing project database for one observational callback.
|
|
44
|
+
*
|
|
45
|
+
* Unlike `getProjectDb`, this never creates directories, negotiates WAL, runs
|
|
46
|
+
* migrations, or enters the shared connection cache. It is the only suitable
|
|
47
|
+
* path for lifecycle previews such as `/swarm close --dry-run`.
|
|
48
|
+
*/
|
|
49
|
+
export declare function withProjectDbReadOnly<T>(directory: string, read: (db: Database) => T): T | null;
|
|
42
50
|
/**
|
|
43
51
|
* Best-effort WAL checkpoint before close (issue #2480 checkpoint policy).
|
|
44
52
|
*
|
|
@@ -51,8 +51,9 @@ interface NodeDatabaseSync {
|
|
|
51
51
|
loadExtension(path: string): void;
|
|
52
52
|
close(): void;
|
|
53
53
|
}
|
|
54
|
-
type NodeDatabaseSyncCtor = new (filename: string, options?: {
|
|
54
|
+
type NodeDatabaseSyncCtor = new (filename: string | URL, options?: {
|
|
55
55
|
allowExtension?: boolean;
|
|
56
|
+
readOnly?: boolean;
|
|
56
57
|
}) => NodeDatabaseSync;
|
|
57
58
|
/**
|
|
58
59
|
* Build a `bun:sqlite`-`Database`-compatible constructor backed by `node:sqlite`'s
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Action-local spawn-protection circuit for native task delegations
|
|
3
|
+
* (issue #2507 / ADR 0002 G3 — reimplemented, no upstream code ported).
|
|
4
|
+
*
|
|
5
|
+
* Ownership boundary (one accounting owner per failure category,
|
|
6
|
+
* docs/invocation-failures.md): this circuit owns repeated ACTUAL dispatch
|
|
7
|
+
* failures of the SAME semantic action on the native `task` route. Policy
|
|
8
|
+
* denials stay with the gate-denial tracker, shell-structural failures with
|
|
9
|
+
* the non-transient circuit, PR-review lane provider-terminal with the
|
|
10
|
+
* PR-review resilience circuit, provable-non-acceptance launch retry with
|
|
11
|
+
* #2473, and lane liveness with #2506.
|
|
12
|
+
*
|
|
13
|
+
* State machine (the src/pr-review/circuit.ts timed HALF_OPEN precedent):
|
|
14
|
+
* CLOSED -> (threshold failures) -> OPEN -> (denyUntil elapses, next dispatch
|
|
15
|
+
* admitted) -> HALF_OPEN (exactly one probe) -> completed probe closes |
|
|
16
|
+
* failed probe re-opens with a fresh interval.
|
|
17
|
+
*
|
|
18
|
+
* The state is process-local, invocation-owned, and bounded — the
|
|
19
|
+
* docs/invocation-failures.md contract for action circuits (only the
|
|
20
|
+
* PR-review resilience circuit is durable).
|
|
21
|
+
*/
|
|
22
|
+
/** Bounded memory: same discipline as MAX_TRACKED_ACTION_CIRCUITS. */
|
|
23
|
+
export declare const MAX_TRACKED_SPAWN_CIRCUITS = 500;
|
|
24
|
+
export declare const SPAWN_CIRCUIT_TTL_MS: number;
|
|
25
|
+
/** Bounded armed-digest map (late toolAfter results must not grow it). */
|
|
26
|
+
export declare const MAX_ARMED_DISPATCH_IDENTITIES = 500;
|
|
27
|
+
/** Frozen denial code — gate-denial-tracker exempts exactly this code. */
|
|
28
|
+
export declare const SPAWN_CIRCUIT_DENIAL_CODE = "SPAWN PROTECTION CIRCUIT OPEN";
|
|
29
|
+
export interface SpawnCircuitEntry {
|
|
30
|
+
state: 'CLOSED' | 'OPEN' | 'HALF_OPEN';
|
|
31
|
+
sessionID: string;
|
|
32
|
+
invocationID: string;
|
|
33
|
+
actionDigest: string;
|
|
34
|
+
failureCount: number;
|
|
35
|
+
openedAt: number;
|
|
36
|
+
denyUntil: number;
|
|
37
|
+
/** Denials issued in the current OPEN episode (reset on each OPEN). */
|
|
38
|
+
denialsInEpisode: number;
|
|
39
|
+
updatedAt: number;
|
|
40
|
+
}
|
|
41
|
+
export declare function invocationIdForSession(sessionID: string): string;
|
|
42
|
+
/**
|
|
43
|
+
* Compute the dispatch identity for a tool + args WITHOUT storing anything.
|
|
44
|
+
* Shared by armDispatchIdentity (before-hook step 0) and by the after-hook
|
|
45
|
+
* recorder's fallback (which must not re-insert into the bounded armed map
|
|
46
|
+
* — a stored-but-never-consumed entry would evict legitimate pending
|
|
47
|
+
* identities under review feedback WD-1).
|
|
48
|
+
*/
|
|
49
|
+
export declare function dispatchIdentityFor(tool: string, args: unknown): {
|
|
50
|
+
digest: string;
|
|
51
|
+
pattern: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Arm the pre-mutation dispatch identity for a callID. Step 0 of the
|
|
55
|
+
* fail-closed tool.execute.before region calls this BEFORE any hook can
|
|
56
|
+
* mutate `output.args` (skill / delegate-directive injection), so the
|
|
57
|
+
* toolAfter recorder consumes the SAME digest the circuit was keyed with —
|
|
58
|
+
* a corrected success can never clear a phantom key (plan Round 1
|
|
59
|
+
* revision 2).
|
|
60
|
+
*/
|
|
61
|
+
export declare function armDispatchIdentity(callID: string, tool: string, args: unknown): {
|
|
62
|
+
digest: string;
|
|
63
|
+
pattern: string;
|
|
64
|
+
};
|
|
65
|
+
/** Consume the armed identity for a callID (fallback: undefined). */
|
|
66
|
+
export declare function takeArmedDispatchIdentity(callID: string): {
|
|
67
|
+
digest: string;
|
|
68
|
+
pattern: string;
|
|
69
|
+
} | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Record one ACTUAL dispatch failure for the matching action. Returns the
|
|
72
|
+
* entry and whether this call performed the CLOSED->OPEN transition (the
|
|
73
|
+
* caller emits exactly one bounded telemetry event on that transition).
|
|
74
|
+
*/
|
|
75
|
+
export declare function noteDispatchSpawnFailure(input: {
|
|
76
|
+
sessionID: string;
|
|
77
|
+
invocationID: string;
|
|
78
|
+
actionDigest: string;
|
|
79
|
+
threshold: number;
|
|
80
|
+
halfOpenAfterMs: number;
|
|
81
|
+
now?: number;
|
|
82
|
+
}): {
|
|
83
|
+
entry: SpawnCircuitEntry;
|
|
84
|
+
opened: boolean;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Deny when the matching action's circuit is OPEN (before its interval
|
|
88
|
+
* elapses) or when a half-open probe is already in flight. When the open
|
|
89
|
+
* interval has elapsed, this call is ADMITTED as the single probe.
|
|
90
|
+
* Throws an Error whose leading token is the frozen
|
|
91
|
+
* SPAWN_CIRCUIT_DENIAL_CODE so the gate-denial tracker can exempt it.
|
|
92
|
+
*/
|
|
93
|
+
export declare function assertDispatchSpawnCircuitAdmits(input: {
|
|
94
|
+
sessionID: string;
|
|
95
|
+
invocationID: string;
|
|
96
|
+
actionDigest: string;
|
|
97
|
+
threshold: number;
|
|
98
|
+
halfOpenAfterMs: number;
|
|
99
|
+
now?: number;
|
|
100
|
+
}): void;
|
|
101
|
+
/**
|
|
102
|
+
* A corrected successful execution clears ONLY the matching action's entry
|
|
103
|
+
* (and closes an in-flight half-open probe). Failures of other actions are
|
|
104
|
+
* never touched.
|
|
105
|
+
*/
|
|
106
|
+
export declare function noteDispatchSpawnSuccess(input: {
|
|
107
|
+
sessionID: string;
|
|
108
|
+
invocationID: string;
|
|
109
|
+
actionDigest: string;
|
|
110
|
+
}): void;
|
|
111
|
+
export declare function getSpawnCircuitEntry(input: {
|
|
112
|
+
sessionID: string;
|
|
113
|
+
invocationID: string;
|
|
114
|
+
actionDigest: string;
|
|
115
|
+
}): SpawnCircuitEntry | undefined;
|
|
116
|
+
export declare function spawnCircuitIsTaskTool(tool: string): boolean;
|
|
117
|
+
/** Test seam: reset all circuits + armed identities between test files. */
|
|
118
|
+
export declare function _clearAllSpawnCircuits(): void;
|
|
119
|
+
export declare const _internals: {
|
|
120
|
+
now: () => number;
|
|
121
|
+
};
|