opencode-swarm 7.165.0 → 7.166.1
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/background/delegation-cost-identity.d.ts +41 -0
- package/dist/background/delegation-lifecycle.d.ts +24 -5
- package/dist/background/pending-delegations.d.ts +2 -0
- package/dist/background/pr-monitor-worker.d.ts +60 -6
- package/dist/background/pr-subscriptions.d.ts +13 -0
- package/dist/cli/{capability-probe-5wa7mcp6.js → capability-probe-faqefhah.js} +2 -1
- package/dist/cli/{coder-settlement-89nt4j7g.js → coder-settlement-x0h3h6vd.js} +13 -13
- package/dist/cli/{config-doctor-gm6f5chm.js → config-doctor-pjcjeh8f.js} +5 -5
- package/dist/cli/{core-91p43zwj.js → core-v11pd1yk.js} +4 -4
- package/dist/cli/{curation-policy-bqpmry2n.js → curation-policy-jtzwz6bc.js} +4 -4
- package/dist/cli/{curator-drift-hbc3w5zj.js → curator-drift-jpdfwae9.js} +5 -5
- package/dist/cli/curator-llm-factory-da5q3gg6.js +70 -0
- package/dist/cli/{curator-4bs2hmy9.js → curator-ssvd7evd.js} +40 -40
- package/dist/cli/{dispatch-c7xjt7js.js → dispatch-591v13pp.js} +3 -3
- package/dist/cli/{evidence-summary-service-g1xd8egd.js → evidence-summary-service-mw6tnsp9.js} +19 -19
- package/dist/cli/{gate-evidence-gdmgsz7c.js → gate-evidence-jymaxb82.js} +9 -9
- package/dist/cli/guardrail-explain-eva1yrtf.js +71 -0
- package/dist/cli/guardrail-log-kzq2sktb.js +23 -0
- package/dist/cli/{guardrail-reset-rp9jq0gj.js → guardrail-reset-ea1g3g7d.js} +40 -40
- package/dist/cli/hive-promoter-ghjbgsms.js +85 -0
- package/dist/cli/{index-6be5caj8.js → index-066xxa4q.js} +3 -3
- package/dist/cli/{index-5ythtd9t.js → index-0g5v4s0x.js} +67 -16
- package/dist/cli/{index-a0d4fp6r.js → index-0tc0pcmh.js} +1 -1
- package/dist/cli/{index-n3pjcks8.js → index-13egyjgv.js} +5 -5
- package/dist/cli/{index-tqw8w2n5.js → index-17yszqs5.js} +1 -1
- package/dist/cli/{index-8bdk7124.js → index-1zqf2pny.js} +1 -1
- package/dist/cli/{index-8d90gzaz.js → index-2sqgbmtq.js} +1 -1
- package/dist/cli/{index-xwbn7c8m.js → index-2v17wb75.js} +2 -2
- package/dist/cli/{index-y1zhpfk8.js → index-2y4kargd.js} +4 -4
- package/dist/cli/{index-hwz46jj7.js → index-399nq780.js} +2509 -1094
- package/dist/cli/{index-r5hj3nfe.js → index-3tyym20r.js} +2 -2
- package/dist/cli/{index-zycp24b9.js → index-52xdezsh.js} +12 -3
- package/dist/cli/{index-2k53pfnc.js → index-6rff2h8x.js} +4 -4
- package/dist/cli/{index-6m24v15v.js → index-79sr3fd1.js} +2 -2
- package/dist/cli/{index-k1ntjzmf.js → index-8fr2wn18.js} +2 -2
- package/dist/cli/{index-dh5th4jn.js → index-8hqkrd2j.js} +1 -1
- package/dist/cli/{index-6rx1rdaq.js → index-a7rw4g4s.js} +1 -1
- package/dist/cli/{index-w6988bbc.js → index-aftapk6j.js} +75 -1
- package/dist/cli/{index-j2svfhzk.js → index-axf65x87.js} +1 -1
- package/dist/cli/{index-anxs69ad.js → index-bfr392e7.js} +1 -1
- package/dist/cli/{index-c4ddtrqg.js → index-bkd3450m.js} +6 -6
- package/dist/cli/{index-ajknebrc.js → index-c20gf089.js} +1 -1
- package/dist/cli/{index-qzvry1n1.js → index-crjx4sx0.js} +42 -42
- package/dist/cli/{index-jre6tm3v.js → index-edm41q4j.js} +1 -1
- package/dist/cli/{index-z6xqpmqg.js → index-ee6ydtfe.js} +1 -1
- package/dist/cli/{index-p7hdp3rp.js → index-fc1dqzjp.js} +2 -2
- package/dist/cli/{index-4gmt79q9.js → index-gerkwyrr.js} +1 -1
- package/dist/cli/{index-hdakb4n9.js → index-gr8ppbq3.js} +16 -13
- package/dist/cli/{index-f36hy1x4.js → index-hvk3zs62.js} +1 -1
- package/dist/cli/{index-5ebgzb5a.js → index-hwj25q9r.js} +78 -53
- package/dist/cli/{index-1v6vc90w.js → index-j29nkq5d.js} +5 -5
- package/dist/cli/{index-e45htt92.js → index-jx9f4ke1.js} +1 -1
- package/dist/cli/{index-7h94rfem.js → index-k5w284js.js} +16 -14
- package/dist/cli/{index-58be2gtd.js → index-nph5g4em.js} +3 -3
- package/dist/cli/{index-4fwbbad3.js → index-q1r1cfww.js} +46 -17
- package/dist/cli/{index-afpkqsdb.js → index-w11whwn3.js} +14 -7
- package/dist/cli/{index-0e9jh9c7.js → index-wf12wckd.js} +3 -3
- package/dist/cli/{index-ptsqnxwd.js → index-xezfx7ge.js} +21 -11
- package/dist/cli/{index-3xyjvx24.js → index-xwkn5hse.js} +11 -9
- package/dist/cli/{index-g8wdekzz.js → index-ybcxvv17.js} +2 -2
- package/dist/cli/{index-e6n7cemz.js → index-yt25kpvz.js} +12 -8
- package/dist/cli/{index-556ja8an.js → index-yzjaj53h.js} +9 -2
- package/dist/cli/{index-gn6ybsc4.js → index-zha9bdj9.js} +8 -8
- package/dist/cli/index-zpsr8rpc.js +68 -0
- package/dist/cli/index.js +40 -40
- package/dist/cli/{knowledge-escalator-eq07pcj3.js → knowledge-escalator-3pjed4tq.js} +14 -14
- package/dist/cli/{knowledge-events-rv9q9mkm.js → knowledge-events-a5dwkg30.js} +12 -12
- package/dist/cli/{knowledge-link-dgvbqjqg.js → knowledge-link-1zykfk1p.js} +3 -3
- package/dist/cli/{knowledge-store-cxcr0ttk.js → knowledge-store-h85efsak.js} +4 -4
- package/dist/cli/{knowledge-validator-8qtd9ys0.js → knowledge-validator-76qrf1ev.js} +6 -6
- package/dist/cli/{model-preflight-3s1c0zpc.js → model-preflight-b3b5pgsc.js} +2 -2
- package/dist/cli/{pending-delegations-dp3g8e7k.js → pending-delegations-zgwfqfac.js} +14 -12
- package/dist/cli/{pr-subscriptions-3vx06rar.js → pr-subscriptions-fzy3ks1k.js} +16 -12
- package/dist/cli/{pr-workflow-gate-bbet0apk.js → pr-workflow-gate-1gtsn7f0.js} +40 -40
- package/dist/cli/{runner-0e3bjeev.js → runner-j3acybhs.js} +4 -4
- package/dist/cli/{scan-cursor-zwm0xng7.js → scan-cursor-ahwkxa8j.js} +5 -5
- package/dist/cli/{schema-ebfxgya0.js → schema-27sedbfk.js} +3 -3
- package/dist/cli/{scope-persistence-6c55akfz.js → scope-persistence-q792yfxh.js} +16 -16
- package/dist/cli/{skill-generator-mv5jxzsh.js → skill-generator-g8wbjw6v.js} +16 -16
- package/dist/cli/{snapshot-coordination-init-n556wa18.js → snapshot-coordination-init-y6spakwm.js} +40 -40
- package/dist/cli/{telemetry-a1yvjerj.js → telemetry-9h1z2w9d.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-pp4z4z8p.js → worktree-collision-ownership-pmpnftkd.js} +13 -13
- package/dist/cli/{worktree-isolation-69hz9dgg.js → worktree-isolation-4053n0px.js} +40 -40
- package/dist/commands/pr-monitor-status.d.ts +2 -0
- package/dist/commands/registry.d.ts +8 -0
- package/dist/commands/report.d.ts +36 -0
- package/dist/db/observability-event-store.d.ts +162 -0
- package/dist/git/pr.d.ts +27 -27
- package/dist/git/safe-ref.d.ts +51 -0
- package/dist/hooks/context-capsule-inject.d.ts +3 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +573 -480
- package/dist/observability/catalog.d.ts +8 -4
- package/dist/sandbox/executor.d.ts +10 -0
- package/dist/sandbox/win32/runner-client.d.ts +7 -0
- package/dist/services/context-attribution.d.ts +69 -0
- package/dist/services/cost-accounting.d.ts +2 -0
- package/dist/telemetry.d.ts +10 -2
- package/dist/tools/co-change-analyzer.d.ts +7 -0
- package/dist/tools/gh-evidence.d.ts +15 -8
- package/dist/tools/pkg-audit.d.ts +23 -0
- package/dist/utils/gh-executable.d.ts +106 -0
- package/dist/utils/merge.d.ts +26 -0
- package/opencode-swarm.schema.json +1 -1
- package/package.json +1 -1
- package/dist/cli/curator-llm-factory-fhbjwar0.js +0 -70
- package/dist/cli/guardrail-explain-1nfbtpgg.js +0 -71
- package/dist/cli/guardrail-log-nyggdv04.js +0 -23
- package/dist/cli/hive-promoter-39xb4tx2.js +0 -85
- package/dist/cli/index-zjygnfay.js +0 -33
|
@@ -23,32 +23,32 @@ 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-w6988bbc.js";
|
|
26
|
+
} from "./index-xwkn5hse.js";
|
|
27
|
+
import"./index-2y4kargd.js";
|
|
28
|
+
import"./index-2v17wb75.js";
|
|
29
|
+
import"./index-79sr3fd1.js";
|
|
30
|
+
import"./index-jx9f4ke1.js";
|
|
31
|
+
import"./index-aftapk6j.js";
|
|
33
32
|
import"./index-ry16d01s.js";
|
|
34
33
|
import"./index-n4fzmqz8.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
34
|
+
import"./index-axf65x87.js";
|
|
35
|
+
import"./index-bkd3450m.js";
|
|
37
36
|
import"./index-ae75rja9.js";
|
|
38
|
-
import"./index-
|
|
37
|
+
import"./index-a7rw4g4s.js";
|
|
39
38
|
import"./index-7qefgq4j.js";
|
|
40
|
-
import"./index-
|
|
39
|
+
import"./index-edm41q4j.js";
|
|
41
40
|
import"./index-gy0nyfbw.js";
|
|
42
|
-
import"./index-
|
|
41
|
+
import"./index-hwj25q9r.js";
|
|
43
42
|
import"./index-7g4c7s5r.js";
|
|
44
|
-
import"./index-
|
|
43
|
+
import"./index-52xdezsh.js";
|
|
45
44
|
import"./index-9e6fdz2h.js";
|
|
46
45
|
import"./index-4rhhvd1a.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
46
|
+
import"./index-wf12wckd.js";
|
|
47
|
+
import"./index-0tc0pcmh.js";
|
|
48
|
+
import"./index-zpsr8rpc.js";
|
|
50
49
|
import"./index-bk5tah7q.js";
|
|
51
50
|
import"./index-bpmtbmy9.js";
|
|
51
|
+
import"./index-yzjaj53h.js";
|
|
52
52
|
import"./index-zgwm4ryv.js";
|
|
53
53
|
import"./index-a76rekgs.js";
|
|
54
54
|
export {
|
|
@@ -33,33 +33,33 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
36
|
+
} from "./index-066xxa4q.js";
|
|
37
37
|
import"./index-q7sjgr1y.js";
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
38
|
+
import"./index-zha9bdj9.js";
|
|
39
|
+
import"./index-bfr392e7.js";
|
|
40
|
+
import"./index-ee6ydtfe.js";
|
|
41
41
|
import"./index-p612v1mv.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
42
|
+
import"./index-6rff2h8x.js";
|
|
43
|
+
import"./index-c20gf089.js";
|
|
44
44
|
import"./index-rtry5xyf.js";
|
|
45
|
-
import"./index-
|
|
45
|
+
import"./index-nph5g4em.js";
|
|
46
46
|
import"./index-3qf1vxtb.js";
|
|
47
47
|
import"./index-n832052r.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-axf65x87.js";
|
|
49
|
+
import"./index-bkd3450m.js";
|
|
50
50
|
import"./index-ae75rja9.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-a7rw4g4s.js";
|
|
52
52
|
import"./index-7qefgq4j.js";
|
|
53
|
-
import"./index-
|
|
53
|
+
import"./index-edm41q4j.js";
|
|
54
54
|
import"./index-gy0nyfbw.js";
|
|
55
|
-
import"./index-
|
|
55
|
+
import"./index-hwj25q9r.js";
|
|
56
56
|
import"./index-7g4c7s5r.js";
|
|
57
|
-
import"./index-
|
|
57
|
+
import"./index-52xdezsh.js";
|
|
58
58
|
import"./index-9e6fdz2h.js";
|
|
59
59
|
import"./index-4rhhvd1a.js";
|
|
60
|
-
import"./index-
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
60
|
+
import"./index-wf12wckd.js";
|
|
61
|
+
import"./index-0tc0pcmh.js";
|
|
62
|
+
import"./index-zpsr8rpc.js";
|
|
63
63
|
import"./index-bk5tah7q.js";
|
|
64
64
|
import"./index-bpmtbmy9.js";
|
|
65
65
|
import"./index-zgwm4ryv.js";
|
package/dist/cli/{snapshot-coordination-init-n556wa18.js → snapshot-coordination-init-y6spakwm.js}
RENAMED
|
@@ -8,68 +8,68 @@ import {
|
|
|
8
8
|
markSnapshotCoordinationClosing,
|
|
9
9
|
retrySnapshotCoordinationInitialization,
|
|
10
10
|
startSnapshotCoordinationInitialization
|
|
11
|
-
} from "./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
11
|
+
} from "./index-399nq780.js";
|
|
12
|
+
import"./index-2sqgbmtq.js";
|
|
13
|
+
import"./index-hvk3zs62.js";
|
|
14
|
+
import"./index-gr8ppbq3.js";
|
|
15
|
+
import"./index-8fr2wn18.js";
|
|
16
|
+
import"./index-0g5v4s0x.js";
|
|
17
|
+
import"./index-17yszqs5.js";
|
|
18
18
|
import"./index-txdagbh7.js";
|
|
19
19
|
import"./index-cw912re7.js";
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
20
|
+
import"./index-066xxa4q.js";
|
|
21
|
+
import"./index-13egyjgv.js";
|
|
22
|
+
import"./index-ybcxvv17.js";
|
|
23
23
|
import"./index-70ha9e09.js";
|
|
24
|
-
import"./index-
|
|
24
|
+
import"./index-8hqkrd2j.js";
|
|
25
25
|
import"./index-9ss2m4rs.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-xezfx7ge.js";
|
|
27
27
|
import"./index-zsrtt42s.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-k5w284js.js";
|
|
29
29
|
import"./index-6chhqq2n.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-1zqf2pny.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-
|
|
38
|
-
import"./index-
|
|
33
|
+
import"./index-yt25kpvz.js";
|
|
34
|
+
import"./index-fc1dqzjp.js";
|
|
35
|
+
import"./index-w11whwn3.js";
|
|
36
|
+
import"./index-zha9bdj9.js";
|
|
37
|
+
import"./index-bfr392e7.js";
|
|
38
|
+
import"./index-ee6ydtfe.js";
|
|
39
39
|
import"./index-p612v1mv.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
40
|
+
import"./index-6rff2h8x.js";
|
|
41
|
+
import"./index-c20gf089.js";
|
|
42
42
|
import"./index-rtry5xyf.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-nph5g4em.js";
|
|
44
44
|
import"./index-3qf1vxtb.js";
|
|
45
45
|
import"./index-n832052r.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-w6988bbc.js";
|
|
46
|
+
import"./index-xwkn5hse.js";
|
|
47
|
+
import"./index-2y4kargd.js";
|
|
48
|
+
import"./index-2v17wb75.js";
|
|
49
|
+
import"./index-79sr3fd1.js";
|
|
50
|
+
import"./index-jx9f4ke1.js";
|
|
51
|
+
import"./index-aftapk6j.js";
|
|
53
52
|
import"./index-ry16d01s.js";
|
|
54
53
|
import"./index-n4fzmqz8.js";
|
|
55
|
-
import"./index-
|
|
56
|
-
import"./index-
|
|
54
|
+
import"./index-axf65x87.js";
|
|
55
|
+
import"./index-bkd3450m.js";
|
|
57
56
|
import"./index-ae75rja9.js";
|
|
58
|
-
import"./index-
|
|
57
|
+
import"./index-a7rw4g4s.js";
|
|
59
58
|
import"./index-7qefgq4j.js";
|
|
60
|
-
import"./index-
|
|
59
|
+
import"./index-edm41q4j.js";
|
|
61
60
|
import"./index-gy0nyfbw.js";
|
|
62
|
-
import"./index-
|
|
61
|
+
import"./index-hwj25q9r.js";
|
|
63
62
|
import"./index-7g4c7s5r.js";
|
|
64
|
-
import"./index-
|
|
63
|
+
import"./index-52xdezsh.js";
|
|
65
64
|
import"./index-9e6fdz2h.js";
|
|
66
65
|
import"./index-4rhhvd1a.js";
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
66
|
+
import"./index-wf12wckd.js";
|
|
67
|
+
import"./index-0tc0pcmh.js";
|
|
68
|
+
import"./index-zpsr8rpc.js";
|
|
70
69
|
import"./index-bk5tah7q.js";
|
|
71
70
|
import"./index-bpmtbmy9.js";
|
|
72
|
-
import"./index-
|
|
71
|
+
import"./index-q1r1cfww.js";
|
|
72
|
+
import"./index-yzjaj53h.js";
|
|
73
73
|
import"./index-zgwm4ryv.js";
|
|
74
74
|
import"./index-a76rekgs.js";
|
|
75
75
|
export {
|
|
@@ -6,38 +6,38 @@ import {
|
|
|
6
6
|
WORKTREE_PROVISIONING_OWNER_LEASE_MS,
|
|
7
7
|
removeWorktreeProvisioningOwner,
|
|
8
8
|
scanWorktreeProvisioningOwnersForRecovery
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-1zqf2pny.js";
|
|
10
10
|
import {
|
|
11
11
|
scanDelegationFallbacksForRecovery,
|
|
12
12
|
scanDelegationsForRecovery
|
|
13
|
-
} from "./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
13
|
+
} from "./index-w11whwn3.js";
|
|
14
|
+
import"./index-bfr392e7.js";
|
|
15
|
+
import"./index-ee6ydtfe.js";
|
|
16
16
|
import {
|
|
17
17
|
bunSpawn
|
|
18
18
|
} from "./index-p612v1mv.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
19
|
+
import"./index-79sr3fd1.js";
|
|
20
|
+
import"./index-jx9f4ke1.js";
|
|
21
|
+
import"./index-aftapk6j.js";
|
|
22
22
|
import"./index-ry16d01s.js";
|
|
23
23
|
import"./index-n4fzmqz8.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-axf65x87.js";
|
|
25
|
+
import"./index-bkd3450m.js";
|
|
26
26
|
import"./index-ae75rja9.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-a7rw4g4s.js";
|
|
28
28
|
import {
|
|
29
29
|
canonicalRootKeyFresh
|
|
30
30
|
} from "./index-7qefgq4j.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-edm41q4j.js";
|
|
32
32
|
import"./index-gy0nyfbw.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-hwj25q9r.js";
|
|
34
34
|
import"./index-7g4c7s5r.js";
|
|
35
35
|
import {
|
|
36
36
|
init_git_executable,
|
|
37
37
|
resolveGitExecutable
|
|
38
38
|
} from "./index-9e6fdz2h.js";
|
|
39
39
|
import"./index-4rhhvd1a.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-zpsr8rpc.js";
|
|
41
41
|
import"./index-bk5tah7q.js";
|
|
42
42
|
import"./index-bpmtbmy9.js";
|
|
43
43
|
import"./index-zgwm4ryv.js";
|
|
@@ -21,70 +21,70 @@ import {
|
|
|
21
21
|
sanitizeWorktreeTaskId,
|
|
22
22
|
standardWorktreeByCallID,
|
|
23
23
|
standardWorktreeSerializationSessions
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
24
|
+
} from "./index-399nq780.js";
|
|
25
|
+
import"./index-2sqgbmtq.js";
|
|
26
|
+
import"./index-hvk3zs62.js";
|
|
27
|
+
import"./index-gr8ppbq3.js";
|
|
28
|
+
import"./index-8fr2wn18.js";
|
|
29
|
+
import"./index-0g5v4s0x.js";
|
|
30
|
+
import"./index-17yszqs5.js";
|
|
31
31
|
import"./index-txdagbh7.js";
|
|
32
32
|
import"./index-cw912re7.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
33
|
+
import"./index-066xxa4q.js";
|
|
34
|
+
import"./index-13egyjgv.js";
|
|
35
|
+
import"./index-ybcxvv17.js";
|
|
36
36
|
import"./index-70ha9e09.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-8hqkrd2j.js";
|
|
38
38
|
import"./index-9ss2m4rs.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-xezfx7ge.js";
|
|
40
40
|
import"./index-zsrtt42s.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-k5w284js.js";
|
|
42
42
|
import"./index-6chhqq2n.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-1zqf2pny.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-
|
|
51
|
-
import"./index-
|
|
46
|
+
import"./index-yt25kpvz.js";
|
|
47
|
+
import"./index-fc1dqzjp.js";
|
|
48
|
+
import"./index-w11whwn3.js";
|
|
49
|
+
import"./index-zha9bdj9.js";
|
|
50
|
+
import"./index-bfr392e7.js";
|
|
51
|
+
import"./index-ee6ydtfe.js";
|
|
52
52
|
import"./index-p612v1mv.js";
|
|
53
|
-
import"./index-
|
|
54
|
-
import"./index-
|
|
53
|
+
import"./index-6rff2h8x.js";
|
|
54
|
+
import"./index-c20gf089.js";
|
|
55
55
|
import"./index-rtry5xyf.js";
|
|
56
56
|
import {
|
|
57
57
|
resolveWorktreeIsolationConfig
|
|
58
|
-
} from "./index-
|
|
58
|
+
} from "./index-nph5g4em.js";
|
|
59
59
|
import"./index-3qf1vxtb.js";
|
|
60
60
|
import"./index-n832052r.js";
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-w6988bbc.js";
|
|
61
|
+
import"./index-xwkn5hse.js";
|
|
62
|
+
import"./index-2y4kargd.js";
|
|
63
|
+
import"./index-2v17wb75.js";
|
|
64
|
+
import"./index-79sr3fd1.js";
|
|
65
|
+
import"./index-jx9f4ke1.js";
|
|
66
|
+
import"./index-aftapk6j.js";
|
|
68
67
|
import"./index-ry16d01s.js";
|
|
69
68
|
import"./index-n4fzmqz8.js";
|
|
70
|
-
import"./index-
|
|
71
|
-
import"./index-
|
|
69
|
+
import"./index-axf65x87.js";
|
|
70
|
+
import"./index-bkd3450m.js";
|
|
72
71
|
import"./index-ae75rja9.js";
|
|
73
|
-
import"./index-
|
|
72
|
+
import"./index-a7rw4g4s.js";
|
|
74
73
|
import"./index-7qefgq4j.js";
|
|
75
|
-
import"./index-
|
|
74
|
+
import"./index-edm41q4j.js";
|
|
76
75
|
import"./index-gy0nyfbw.js";
|
|
77
|
-
import"./index-
|
|
76
|
+
import"./index-hwj25q9r.js";
|
|
78
77
|
import"./index-7g4c7s5r.js";
|
|
79
|
-
import"./index-
|
|
78
|
+
import"./index-52xdezsh.js";
|
|
80
79
|
import"./index-9e6fdz2h.js";
|
|
81
80
|
import"./index-4rhhvd1a.js";
|
|
82
|
-
import"./index-
|
|
83
|
-
import"./index-
|
|
84
|
-
import"./index-
|
|
81
|
+
import"./index-wf12wckd.js";
|
|
82
|
+
import"./index-0tc0pcmh.js";
|
|
83
|
+
import"./index-zpsr8rpc.js";
|
|
85
84
|
import"./index-bk5tah7q.js";
|
|
86
85
|
import"./index-bpmtbmy9.js";
|
|
87
|
-
import"./index-
|
|
86
|
+
import"./index-q1r1cfww.js";
|
|
87
|
+
import"./index-yzjaj53h.js";
|
|
88
88
|
import"./index-zgwm4ryv.js";
|
|
89
89
|
import"./index-a76rekgs.js";
|
|
90
90
|
export {
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* Input contract (no args):
|
|
10
10
|
* /swarm pr status → show session subscriptions
|
|
11
11
|
*/
|
|
12
|
+
import { getPrMonitorWorkerHealth } from '../background/pr-monitor-worker.js';
|
|
12
13
|
import { getPrSubscriptionHealth, listActive, type PrSubscriptionHealth } from '../background/pr-subscriptions.js';
|
|
13
14
|
type MergeGroupRun = {
|
|
14
15
|
databaseId: number;
|
|
@@ -54,6 +55,7 @@ export declare const _internals: {
|
|
|
54
55
|
listMergeGroupRuns: typeof listMergeGroupRuns;
|
|
55
56
|
parseMergeGroupRuns: typeof parseMergeGroupRuns;
|
|
56
57
|
getPrSubscriptionHealth: typeof getPrSubscriptionHealth;
|
|
58
|
+
getPrMonitorWorkerHealth: typeof getPrMonitorWorkerHealth;
|
|
57
59
|
};
|
|
58
60
|
/**
|
|
59
61
|
* Show PR monitor subscription status for the current session.
|
|
@@ -489,6 +489,14 @@ export declare const COMMAND_REGISTRY: {
|
|
|
489
489
|
readonly category: "diagnostics";
|
|
490
490
|
readonly toolPolicy: "agent";
|
|
491
491
|
};
|
|
492
|
+
readonly report: {
|
|
493
|
+
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
494
|
+
readonly description: "Report swarm observability events from the SQLite query authority [--task <id>] [--session <id>] [--trace <id>] [--run <batchId>] [--since <ISO-8601>] [--json]";
|
|
495
|
+
readonly args: "--task <id>, --session <id>, --trace <id>, --run <batchId>, --since <ISO-8601>, --json";
|
|
496
|
+
readonly details: "Bounded, deterministic query over the observability events store in .swarm/swarm.db (the first run performs a bounded, idempotent legacy-import into the local sink). --run filters the lane/dispatch batch axis (workflow.batchId). Unmatched delegation begins are disclosed, never fabricated into ends. --json emits a schemaVersion-tagged block.";
|
|
497
|
+
readonly category: "diagnostics";
|
|
498
|
+
readonly toolPolicy: "agent";
|
|
499
|
+
};
|
|
492
500
|
readonly learning: {
|
|
493
501
|
readonly handler: (ctx: CommandContext) => Promise<string>;
|
|
494
502
|
readonly description: "Show learning metrics and violation trends";
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `/swarm report` — bounded, deterministic observability report over the
|
|
3
|
+
* SQLite-native query authority (issue #2482 / D3, absorbing #2048).
|
|
4
|
+
*
|
|
5
|
+
* - Read-only. Queries `.swarm/swarm.db` `observability_event` via the
|
|
6
|
+
* bounded store queries (`src/db/observability-event-store.ts`); lazily
|
|
7
|
+
* syncs the rebuildable legacy import (`syncObservabilityImport`) FIRST so
|
|
8
|
+
* the report covers the bounded `telemetry.jsonl(.1)` window too.
|
|
9
|
+
* - Filters: `--task <id>` (workflow.taskId), `--session <id>`
|
|
10
|
+
* (hostSessionId), `--trace <id>` (traceId), `--run <id>` (workflow.batchId
|
|
11
|
+
* — the lane/dispatch batch axis; `prRunId`/`backgroundInvocationId` have
|
|
12
|
+
* no producers today), `--since <ISO-8601>` (inclusive lower bound).
|
|
13
|
+
* `--json` emits a versioned JSON block. Each value flag may appear at
|
|
14
|
+
* most once with a non-empty value; any subset is valid.
|
|
15
|
+
* - Bounded: row cap + truncated flag (`MAX_REPORT_ROWS`), ordering is
|
|
16
|
+
* `occurred_at, rowid` (code-unit string compare — no locale collation),
|
|
17
|
+
* so the same query window yields byte-identical output (proven by test).
|
|
18
|
+
* - Honest coverage: live vs imported row counts, quarantined rows (excluded
|
|
19
|
+
* from the timeline), the sink's own health counters, and the delegation
|
|
20
|
+
* begin/end pairing delta — unmatched begins are DISCLOSED, never
|
|
21
|
+
* fabricated into ends.
|
|
22
|
+
* - Fail-open: a missing/unopenable store yields an explicit empty report
|
|
23
|
+
* with `coverage.unavailable`, never an error.
|
|
24
|
+
*/
|
|
25
|
+
import { type ObservabilityEventFilter } from '../db/observability-event-store.js';
|
|
26
|
+
export declare const REPORT_JSON_SCHEMA_VERSION = 1;
|
|
27
|
+
interface ParsedReportArgs {
|
|
28
|
+
filter: ObservabilityEventFilter;
|
|
29
|
+
json: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function parseReportArgs(args: string[]): {
|
|
32
|
+
parsed?: ParsedReportArgs;
|
|
33
|
+
error?: string;
|
|
34
|
+
};
|
|
35
|
+
export declare function handleReportCommand(directory: string, args: string[]): Promise<string>;
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* swarm.db store for the canonical observability event envelope (issue #2482,
|
|
3
|
+
* Workstream D PR 3).
|
|
4
|
+
*
|
|
5
|
+
* The durable local query authority for observability events:
|
|
6
|
+
*
|
|
7
|
+
* - Table `observability_event` — one row per emitted canonical
|
|
8
|
+
* `ObservabilityEvent`, appended through the group-commit writer (queue ->
|
|
9
|
+
* one txn per flush). Durability class `normal` (rebuildable telemetry
|
|
10
|
+
* sink; the bounded `.swarm/telemetry.jsonl` stream remains the
|
|
11
|
+
* operational legacy record — this store does NOT replace it).
|
|
12
|
+
* - The sink registers as a TELEMETRY LISTENER (`registerObservabilityEventSink`),
|
|
13
|
+
* not as an `emit()` call site: the retention-registry writer-coverage
|
|
14
|
+
* ratchet requires every writer module to appear in exactly one registry
|
|
15
|
+
* row, and `src/telemetry.ts` is already owned by the `telemetry-jsonl`
|
|
16
|
+
* row. The listener receives the canonical envelope as its third
|
|
17
|
+
* parameter.
|
|
18
|
+
* - Zero top-level executable side effects; no DB work at plugin init. The
|
|
19
|
+
* DB handle opens lazily on the first sink append (`getProjectDb` /
|
|
20
|
+
* `getGroupCommitWriter` are invoked inside the listener closure, matching
|
|
21
|
+
* the `insight-candidate-store.ts` precedent). Processes that never
|
|
22
|
+
* register the sink (direct CLI / test scripts) simply get no SQLite sink —
|
|
23
|
+
* fail-open, never an error.
|
|
24
|
+
* - Fail-open everywhere: sink failures are counted (bounded in-memory
|
|
25
|
+
* counters persisted opportunistically into `observability_sink_health`)
|
|
26
|
+
* and never propagate. The sink is non-authoritative for every decision;
|
|
27
|
+
* observability health is surfaced through `/swarm report`.
|
|
28
|
+
* - Malformed events are QUARANTINED, not dropped: rows that cannot carry a
|
|
29
|
+
* faithful envelope (fallback observations, oversize payloads, unparseable
|
|
30
|
+
* legacy import lines) are stored with `quarantined = 1` plus a reason and
|
|
31
|
+
* excluded from report timelines while remaining countable.
|
|
32
|
+
* - Rebuildable: `syncObservabilityImport` (report path only — never per
|
|
33
|
+
* emit, never at init) incrementally imports the bounded legacy
|
|
34
|
+
* `telemetry.jsonl(.1)` stream using deterministic per-line synthetic ids,
|
|
35
|
+
* so deleting the imported rows and re-syncing reproduces byte-identical
|
|
36
|
+
* content (proven by test).
|
|
37
|
+
*/
|
|
38
|
+
import type { ObservabilityEvent } from '../observability/envelope.js';
|
|
39
|
+
import { extractWorkflowIds } from '../observability/legacy.js';
|
|
40
|
+
import { getGroupCommitWriter } from './group-commit-writer.js';
|
|
41
|
+
import { getProjectDb } from './project-db.js';
|
|
42
|
+
/** Hard cap on retained observability rows (DELETE-based retention). */
|
|
43
|
+
export declare const MAX_OBSERVABILITY_EVENT_ROWS = 50000;
|
|
44
|
+
/** Rows past this many accepted events get a retention check appended. */
|
|
45
|
+
export declare const RETENTION_CHECK_INTERVAL = 512;
|
|
46
|
+
/** Health-counter deltas are persisted at most this often (events). */
|
|
47
|
+
export declare const HEALTH_UPSERT_INTERVAL = 256;
|
|
48
|
+
/** Hard cap on a single serialized payload (oversize → quarantined stub). */
|
|
49
|
+
export declare const MAX_EVENT_PAYLOAD_BYTES: number;
|
|
50
|
+
export type IngestedVia = 'live' | 'import';
|
|
51
|
+
export interface ObservabilityEventRow {
|
|
52
|
+
rowid: number;
|
|
53
|
+
event_id: string;
|
|
54
|
+
kind: string;
|
|
55
|
+
category: string | null;
|
|
56
|
+
severity: string | null;
|
|
57
|
+
occurred_at: string;
|
|
58
|
+
writer_sequence: number | null;
|
|
59
|
+
trace_id: string | null;
|
|
60
|
+
span_id: string | null;
|
|
61
|
+
host_session_id: string | null;
|
|
62
|
+
task_id: string | null;
|
|
63
|
+
lane_id: string | null;
|
|
64
|
+
batch_id: string | null;
|
|
65
|
+
phase_id: string | null;
|
|
66
|
+
council_round_id: string | null;
|
|
67
|
+
project_ref: string | null;
|
|
68
|
+
outcome_status: string | null;
|
|
69
|
+
retry_index: number | null;
|
|
70
|
+
privacy_class: string | null;
|
|
71
|
+
sampled: number | null;
|
|
72
|
+
payload_json: string;
|
|
73
|
+
relationship_violations: string | null;
|
|
74
|
+
quarantined: number;
|
|
75
|
+
quarantine_reason: string | null;
|
|
76
|
+
ingested_via: string;
|
|
77
|
+
}
|
|
78
|
+
export interface ObservabilitySinkHealth {
|
|
79
|
+
accepted: number;
|
|
80
|
+
quarantined: number;
|
|
81
|
+
dropped: number;
|
|
82
|
+
last_error_category: string | null;
|
|
83
|
+
last_error_at: string | null;
|
|
84
|
+
last_flush_at: string | null;
|
|
85
|
+
updated_at: string | null;
|
|
86
|
+
}
|
|
87
|
+
/** Filter set for bounded report queries. Every field optional. */
|
|
88
|
+
export interface ObservabilityEventFilter {
|
|
89
|
+
taskId?: string;
|
|
90
|
+
sessionId?: string;
|
|
91
|
+
traceId?: string;
|
|
92
|
+
batchId?: string;
|
|
93
|
+
/** Inclusive lower bound on `occurred_at` (ISO-8601 string compare). */
|
|
94
|
+
since?: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Register the SQLite observability sink as a telemetry listener for this
|
|
98
|
+
* project root. O(1), idempotent, never opens the DB, never throws — safe to
|
|
99
|
+
* call immediately before `initTelemetry` on the plugin init path. Registering
|
|
100
|
+
* with a DIFFERENT directory evicts the previous listener first, so exactly
|
|
101
|
+
* one sink listener is ever on the telemetry bus (per-directory counters live
|
|
102
|
+
* in their own maps and simply resume under the new binding).
|
|
103
|
+
*/
|
|
104
|
+
export declare function registerObservabilityEventSink(directory: string): void;
|
|
105
|
+
/** Test/reset hook: drops the listener and forgets the binding. */
|
|
106
|
+
export declare function resetObservabilityEventSinkForTesting(): void;
|
|
107
|
+
/**
|
|
108
|
+
* Append one canonical event to the SQLite query authority via the
|
|
109
|
+
* group-commit writer (durability `normal`). Fail-open contract: throws are
|
|
110
|
+
* the CALLER's to swallow (the sink listener does). In-memory health counters
|
|
111
|
+
* track accepted/quarantined; retention + health persistence are appended to
|
|
112
|
+
* the same batch on their throttle intervals so they can never race a live
|
|
113
|
+
* append.
|
|
114
|
+
*/
|
|
115
|
+
export declare function appendObservabilityEventDb(directory: string, canonical: ObservabilityEvent): void;
|
|
116
|
+
export interface ObservabilityImportResult {
|
|
117
|
+
imported: number;
|
|
118
|
+
quarantined: number;
|
|
119
|
+
skippedUnchanged: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Incrementally import the bounded legacy `telemetry.jsonl(.1)` stream into
|
|
123
|
+
* the query authority. Deterministic and idempotent: per-file markers record
|
|
124
|
+
* (size, mtime, lines_seen); append-only growth imports just the delta;
|
|
125
|
+
* rotation/shrink (or a deleted/recreated file) triggers a full rescan whose
|
|
126
|
+
* content-derived synthetic ids make every re-insert a no-op (`INSERT OR
|
|
127
|
+
* IGNORE`). Runs only from the report path — never per emit, never at init.
|
|
128
|
+
* Files are read oldest-generation first so rowid order tracks event order.
|
|
129
|
+
*/
|
|
130
|
+
export declare function syncObservabilityImport(directory: string): ObservabilityImportResult;
|
|
131
|
+
/** Row cap for a single report query (#2048 bounded output budget). */
|
|
132
|
+
export declare const MAX_REPORT_ROWS = 5000;
|
|
133
|
+
export interface ObservabilityQueryResult {
|
|
134
|
+
rows: ObservabilityEventRow[];
|
|
135
|
+
truncated: boolean;
|
|
136
|
+
totalMatching: number;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Bounded, deterministic query over the query authority. Filters are exact
|
|
140
|
+
* bound parameters (node:sqlite strictness — counts are exact per branch);
|
|
141
|
+
* ordering is code-unit string compare on ISO timestamps plus rowid — no
|
|
142
|
+
* locale-dependent collation. Quarantined rows are excluded from timelines.
|
|
143
|
+
*/
|
|
144
|
+
export declare function queryObservabilityEvents(directory: string, filter: ObservabilityEventFilter): ObservabilityQueryResult;
|
|
145
|
+
/** Cumulative persisted sink health (never opens a DB when absent). */
|
|
146
|
+
export declare function readObservabilitySinkHealth(directory: string): ObservabilitySinkHealth | null;
|
|
147
|
+
/** Coverage snapshot for report disclosure (live/imported/quarantined). */
|
|
148
|
+
export interface ObservabilityCoverage {
|
|
149
|
+
liveRows: number;
|
|
150
|
+
importedRows: number;
|
|
151
|
+
quarantinedRows: number;
|
|
152
|
+
totalRows: number;
|
|
153
|
+
earliestOccurredAt: string | null;
|
|
154
|
+
latestOccurredAt: string | null;
|
|
155
|
+
}
|
|
156
|
+
export declare function readObservabilityCoverage(directory: string): ObservabilityCoverage | null;
|
|
157
|
+
/** DI seam (repo `_internals` convention). */
|
|
158
|
+
export declare const _internals: {
|
|
159
|
+
getProjectDb: typeof getProjectDb;
|
|
160
|
+
getGroupCommitWriter: typeof getGroupCommitWriter;
|
|
161
|
+
extractWorkflowIds: typeof extractWorkflowIds;
|
|
162
|
+
};
|