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
|
@@ -21,21 +21,21 @@ import {
|
|
|
21
21
|
reduceTaskWorkflowSnapshot,
|
|
22
22
|
transitionTaskWorkflowEvidence,
|
|
23
23
|
withTaskEvidenceTransaction
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
24
|
+
} from "./index-yt25kpvz.js";
|
|
25
|
+
import"./index-fc1dqzjp.js";
|
|
26
|
+
import"./index-bfr392e7.js";
|
|
27
|
+
import"./index-ee6ydtfe.js";
|
|
28
28
|
import"./index-p612v1mv.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-jre6tm3v.js";
|
|
29
|
+
import"./index-edm41q4j.js";
|
|
31
30
|
import"./index-gy0nyfbw.js";
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-hwj25q9r.js";
|
|
33
32
|
import"./index-7g4c7s5r.js";
|
|
34
33
|
import"./index-9e6fdz2h.js";
|
|
35
34
|
import"./index-4rhhvd1a.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
35
|
+
import"./index-0tc0pcmh.js";
|
|
36
|
+
import"./index-zpsr8rpc.js";
|
|
38
37
|
import"./index-bpmtbmy9.js";
|
|
38
|
+
import"./index-yzjaj53h.js";
|
|
39
39
|
import"./index-zgwm4ryv.js";
|
|
40
40
|
import"./index-a76rekgs.js";
|
|
41
41
|
export {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
handleGuardrailExplain
|
|
4
|
+
} from "./index-3tyym20r.js";
|
|
5
|
+
import"./index-399nq780.js";
|
|
6
|
+
import"./index-2sqgbmtq.js";
|
|
7
|
+
import"./index-hvk3zs62.js";
|
|
8
|
+
import"./index-gr8ppbq3.js";
|
|
9
|
+
import"./index-8fr2wn18.js";
|
|
10
|
+
import"./index-0g5v4s0x.js";
|
|
11
|
+
import"./index-17yszqs5.js";
|
|
12
|
+
import"./index-txdagbh7.js";
|
|
13
|
+
import"./index-cw912re7.js";
|
|
14
|
+
import"./index-066xxa4q.js";
|
|
15
|
+
import"./index-13egyjgv.js";
|
|
16
|
+
import"./index-ybcxvv17.js";
|
|
17
|
+
import"./index-70ha9e09.js";
|
|
18
|
+
import"./index-8hqkrd2j.js";
|
|
19
|
+
import"./index-9ss2m4rs.js";
|
|
20
|
+
import"./index-xezfx7ge.js";
|
|
21
|
+
import"./index-zsrtt42s.js";
|
|
22
|
+
import"./index-k5w284js.js";
|
|
23
|
+
import"./index-6chhqq2n.js";
|
|
24
|
+
import"./index-1zqf2pny.js";
|
|
25
|
+
import"./index-b43rt5ph.js";
|
|
26
|
+
import"./index-q7sjgr1y.js";
|
|
27
|
+
import"./index-yt25kpvz.js";
|
|
28
|
+
import"./index-fc1dqzjp.js";
|
|
29
|
+
import"./index-w11whwn3.js";
|
|
30
|
+
import"./index-zha9bdj9.js";
|
|
31
|
+
import"./index-bfr392e7.js";
|
|
32
|
+
import"./index-ee6ydtfe.js";
|
|
33
|
+
import"./index-p612v1mv.js";
|
|
34
|
+
import"./index-6rff2h8x.js";
|
|
35
|
+
import"./index-c20gf089.js";
|
|
36
|
+
import"./index-rtry5xyf.js";
|
|
37
|
+
import"./index-nph5g4em.js";
|
|
38
|
+
import"./index-3qf1vxtb.js";
|
|
39
|
+
import"./index-n832052r.js";
|
|
40
|
+
import"./index-xwkn5hse.js";
|
|
41
|
+
import"./index-2y4kargd.js";
|
|
42
|
+
import"./index-2v17wb75.js";
|
|
43
|
+
import"./index-79sr3fd1.js";
|
|
44
|
+
import"./index-jx9f4ke1.js";
|
|
45
|
+
import"./index-aftapk6j.js";
|
|
46
|
+
import"./index-ry16d01s.js";
|
|
47
|
+
import"./index-n4fzmqz8.js";
|
|
48
|
+
import"./index-axf65x87.js";
|
|
49
|
+
import"./index-bkd3450m.js";
|
|
50
|
+
import"./index-ae75rja9.js";
|
|
51
|
+
import"./index-a7rw4g4s.js";
|
|
52
|
+
import"./index-7qefgq4j.js";
|
|
53
|
+
import"./index-edm41q4j.js";
|
|
54
|
+
import"./index-gy0nyfbw.js";
|
|
55
|
+
import"./index-hwj25q9r.js";
|
|
56
|
+
import"./index-7g4c7s5r.js";
|
|
57
|
+
import"./index-52xdezsh.js";
|
|
58
|
+
import"./index-9e6fdz2h.js";
|
|
59
|
+
import"./index-4rhhvd1a.js";
|
|
60
|
+
import"./index-wf12wckd.js";
|
|
61
|
+
import"./index-0tc0pcmh.js";
|
|
62
|
+
import"./index-zpsr8rpc.js";
|
|
63
|
+
import"./index-bk5tah7q.js";
|
|
64
|
+
import"./index-bpmtbmy9.js";
|
|
65
|
+
import"./index-q1r1cfww.js";
|
|
66
|
+
import"./index-yzjaj53h.js";
|
|
67
|
+
import"./index-zgwm4ryv.js";
|
|
68
|
+
import"./index-a76rekgs.js";
|
|
69
|
+
export {
|
|
70
|
+
handleGuardrailExplain
|
|
71
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
handleGuardrailLog
|
|
4
|
+
} from "./index-gerkwyrr.js";
|
|
5
|
+
import"./index-gr8ppbq3.js";
|
|
6
|
+
import"./index-ee6ydtfe.js";
|
|
7
|
+
import"./index-p612v1mv.js";
|
|
8
|
+
import"./index-2v17wb75.js";
|
|
9
|
+
import"./index-axf65x87.js";
|
|
10
|
+
import"./index-7qefgq4j.js";
|
|
11
|
+
import"./index-gy0nyfbw.js";
|
|
12
|
+
import"./index-hwj25q9r.js";
|
|
13
|
+
import"./index-wf12wckd.js";
|
|
14
|
+
import"./index-0tc0pcmh.js";
|
|
15
|
+
import"./index-zpsr8rpc.js";
|
|
16
|
+
import"./index-bk5tah7q.js";
|
|
17
|
+
import"./index-bpmtbmy9.js";
|
|
18
|
+
import"./index-yzjaj53h.js";
|
|
19
|
+
import"./index-zgwm4ryv.js";
|
|
20
|
+
import"./index-a76rekgs.js";
|
|
21
|
+
export {
|
|
22
|
+
handleGuardrailLog
|
|
23
|
+
};
|
|
@@ -3,68 +3,68 @@ import {
|
|
|
3
3
|
getAgentSession,
|
|
4
4
|
getBlockingActionCircuit,
|
|
5
5
|
resetActionCircuitExternally
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
6
|
+
} from "./index-399nq780.js";
|
|
7
|
+
import"./index-2sqgbmtq.js";
|
|
8
|
+
import"./index-hvk3zs62.js";
|
|
9
|
+
import"./index-gr8ppbq3.js";
|
|
10
|
+
import"./index-8fr2wn18.js";
|
|
11
|
+
import"./index-0g5v4s0x.js";
|
|
12
|
+
import"./index-17yszqs5.js";
|
|
13
13
|
import"./index-txdagbh7.js";
|
|
14
14
|
import"./index-cw912re7.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
import"./index-066xxa4q.js";
|
|
16
|
+
import"./index-13egyjgv.js";
|
|
17
|
+
import"./index-ybcxvv17.js";
|
|
18
18
|
import"./index-70ha9e09.js";
|
|
19
|
-
import"./index-
|
|
19
|
+
import"./index-8hqkrd2j.js";
|
|
20
20
|
import"./index-9ss2m4rs.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-xezfx7ge.js";
|
|
22
22
|
import"./index-zsrtt42s.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-k5w284js.js";
|
|
24
24
|
import"./index-6chhqq2n.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-1zqf2pny.js";
|
|
26
26
|
import"./index-b43rt5ph.js";
|
|
27
27
|
import"./index-q7sjgr1y.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
28
|
+
import"./index-yt25kpvz.js";
|
|
29
|
+
import"./index-fc1dqzjp.js";
|
|
30
|
+
import"./index-w11whwn3.js";
|
|
31
|
+
import"./index-zha9bdj9.js";
|
|
32
|
+
import"./index-bfr392e7.js";
|
|
33
|
+
import"./index-ee6ydtfe.js";
|
|
34
34
|
import"./index-p612v1mv.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-6rff2h8x.js";
|
|
36
|
+
import"./index-c20gf089.js";
|
|
37
37
|
import"./index-rtry5xyf.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-nph5g4em.js";
|
|
39
39
|
import"./index-3qf1vxtb.js";
|
|
40
40
|
import"./index-n832052r.js";
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-w6988bbc.js";
|
|
41
|
+
import"./index-xwkn5hse.js";
|
|
42
|
+
import"./index-2y4kargd.js";
|
|
43
|
+
import"./index-2v17wb75.js";
|
|
44
|
+
import"./index-79sr3fd1.js";
|
|
45
|
+
import"./index-jx9f4ke1.js";
|
|
46
|
+
import"./index-aftapk6j.js";
|
|
48
47
|
import"./index-ry16d01s.js";
|
|
49
48
|
import"./index-n4fzmqz8.js";
|
|
50
|
-
import"./index-
|
|
51
|
-
import"./index-
|
|
49
|
+
import"./index-axf65x87.js";
|
|
50
|
+
import"./index-bkd3450m.js";
|
|
52
51
|
import"./index-ae75rja9.js";
|
|
53
|
-
import"./index-
|
|
52
|
+
import"./index-a7rw4g4s.js";
|
|
54
53
|
import"./index-7qefgq4j.js";
|
|
55
|
-
import"./index-
|
|
54
|
+
import"./index-edm41q4j.js";
|
|
56
55
|
import"./index-gy0nyfbw.js";
|
|
57
|
-
import"./index-
|
|
56
|
+
import"./index-hwj25q9r.js";
|
|
58
57
|
import"./index-7g4c7s5r.js";
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-52xdezsh.js";
|
|
60
59
|
import"./index-9e6fdz2h.js";
|
|
61
60
|
import"./index-4rhhvd1a.js";
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-
|
|
64
|
-
import"./index-
|
|
61
|
+
import"./index-wf12wckd.js";
|
|
62
|
+
import"./index-0tc0pcmh.js";
|
|
63
|
+
import"./index-zpsr8rpc.js";
|
|
65
64
|
import"./index-bk5tah7q.js";
|
|
66
65
|
import"./index-bpmtbmy9.js";
|
|
67
|
-
import"./index-
|
|
66
|
+
import"./index-q1r1cfww.js";
|
|
67
|
+
import"./index-yzjaj53h.js";
|
|
68
68
|
import"./index-zgwm4ryv.js";
|
|
69
69
|
import"./index-a76rekgs.js";
|
|
70
70
|
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
_internals2 as _internals,
|
|
4
|
+
checkHivePromotions,
|
|
5
|
+
countDistinctProjects,
|
|
6
|
+
createHivePromoterHook,
|
|
7
|
+
isHiveEligible,
|
|
8
|
+
promoteFromSwarm,
|
|
9
|
+
promoteToHive
|
|
10
|
+
} from "./index-399nq780.js";
|
|
11
|
+
import"./index-2sqgbmtq.js";
|
|
12
|
+
import"./index-hvk3zs62.js";
|
|
13
|
+
import"./index-gr8ppbq3.js";
|
|
14
|
+
import"./index-8fr2wn18.js";
|
|
15
|
+
import"./index-0g5v4s0x.js";
|
|
16
|
+
import"./index-17yszqs5.js";
|
|
17
|
+
import"./index-txdagbh7.js";
|
|
18
|
+
import"./index-cw912re7.js";
|
|
19
|
+
import"./index-066xxa4q.js";
|
|
20
|
+
import"./index-13egyjgv.js";
|
|
21
|
+
import"./index-ybcxvv17.js";
|
|
22
|
+
import"./index-70ha9e09.js";
|
|
23
|
+
import"./index-8hqkrd2j.js";
|
|
24
|
+
import"./index-9ss2m4rs.js";
|
|
25
|
+
import"./index-xezfx7ge.js";
|
|
26
|
+
import"./index-zsrtt42s.js";
|
|
27
|
+
import"./index-k5w284js.js";
|
|
28
|
+
import"./index-6chhqq2n.js";
|
|
29
|
+
import"./index-1zqf2pny.js";
|
|
30
|
+
import"./index-b43rt5ph.js";
|
|
31
|
+
import"./index-q7sjgr1y.js";
|
|
32
|
+
import"./index-yt25kpvz.js";
|
|
33
|
+
import"./index-fc1dqzjp.js";
|
|
34
|
+
import"./index-w11whwn3.js";
|
|
35
|
+
import"./index-zha9bdj9.js";
|
|
36
|
+
import"./index-bfr392e7.js";
|
|
37
|
+
import"./index-ee6ydtfe.js";
|
|
38
|
+
import"./index-p612v1mv.js";
|
|
39
|
+
import"./index-6rff2h8x.js";
|
|
40
|
+
import"./index-c20gf089.js";
|
|
41
|
+
import"./index-rtry5xyf.js";
|
|
42
|
+
import"./index-nph5g4em.js";
|
|
43
|
+
import"./index-3qf1vxtb.js";
|
|
44
|
+
import"./index-n832052r.js";
|
|
45
|
+
import"./index-xwkn5hse.js";
|
|
46
|
+
import"./index-2y4kargd.js";
|
|
47
|
+
import"./index-2v17wb75.js";
|
|
48
|
+
import"./index-79sr3fd1.js";
|
|
49
|
+
import"./index-jx9f4ke1.js";
|
|
50
|
+
import"./index-aftapk6j.js";
|
|
51
|
+
import"./index-ry16d01s.js";
|
|
52
|
+
import"./index-n4fzmqz8.js";
|
|
53
|
+
import"./index-axf65x87.js";
|
|
54
|
+
import {
|
|
55
|
+
resolveHiveKnowledgePath
|
|
56
|
+
} from "./index-bkd3450m.js";
|
|
57
|
+
import"./index-ae75rja9.js";
|
|
58
|
+
import"./index-a7rw4g4s.js";
|
|
59
|
+
import"./index-7qefgq4j.js";
|
|
60
|
+
import"./index-edm41q4j.js";
|
|
61
|
+
import"./index-gy0nyfbw.js";
|
|
62
|
+
import"./index-hwj25q9r.js";
|
|
63
|
+
import"./index-7g4c7s5r.js";
|
|
64
|
+
import"./index-52xdezsh.js";
|
|
65
|
+
import"./index-9e6fdz2h.js";
|
|
66
|
+
import"./index-4rhhvd1a.js";
|
|
67
|
+
import"./index-wf12wckd.js";
|
|
68
|
+
import"./index-0tc0pcmh.js";
|
|
69
|
+
import"./index-zpsr8rpc.js";
|
|
70
|
+
import"./index-bk5tah7q.js";
|
|
71
|
+
import"./index-bpmtbmy9.js";
|
|
72
|
+
import"./index-q1r1cfww.js";
|
|
73
|
+
import"./index-yzjaj53h.js";
|
|
74
|
+
import"./index-zgwm4ryv.js";
|
|
75
|
+
import"./index-a76rekgs.js";
|
|
76
|
+
export {
|
|
77
|
+
resolveHiveKnowledgePath,
|
|
78
|
+
promoteToHive,
|
|
79
|
+
promoteFromSwarm,
|
|
80
|
+
isHiveEligible,
|
|
81
|
+
createHivePromoterHook,
|
|
82
|
+
countDistinctProjects,
|
|
83
|
+
checkHivePromotions,
|
|
84
|
+
_internals
|
|
85
|
+
};
|
|
@@ -5,18 +5,18 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
effectiveRetrievalOutcomes,
|
|
7
7
|
readAuthoritativeKnowledgeCounterRollups
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-zha9bdj9.js";
|
|
9
9
|
import {
|
|
10
10
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
11
11
|
validateSkillPath
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-6rff2h8x.js";
|
|
13
13
|
import {
|
|
14
14
|
computeOutcomeSignal,
|
|
15
15
|
readKnowledge,
|
|
16
16
|
resolveHiveKnowledgePath,
|
|
17
17
|
resolveSwarmKnowledgePath,
|
|
18
18
|
transactKnowledge
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-bkd3450m.js";
|
|
20
20
|
import {
|
|
21
21
|
canonicalRootKeyFresh
|
|
22
22
|
} from "./index-7qefgq4j.js";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
EvaluationRunV1Schema,
|
|
4
4
|
GateAuditResultV1Schema,
|
|
5
5
|
getProtectedEvaluationRunIds
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-17yszqs5.js";
|
|
7
7
|
import {
|
|
8
8
|
validateWorkspaceRoot
|
|
9
9
|
} from "./index-cw912re7.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
readTaskEvidence,
|
|
24
24
|
readTaskEvidenceRaw,
|
|
25
25
|
sanitizeTaskId
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-yt25kpvz.js";
|
|
27
27
|
import {
|
|
28
28
|
estimateCharsForTokens,
|
|
29
29
|
estimateTokens,
|
|
30
30
|
readSwarmFileAsync,
|
|
31
31
|
validateSwarmPath
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-bfr392e7.js";
|
|
33
33
|
import {
|
|
34
34
|
bunHash,
|
|
35
35
|
bunWrite,
|
|
@@ -57,10 +57,10 @@ import {
|
|
|
57
57
|
replayFromLedgerWithStatus,
|
|
58
58
|
takeSnapshotEvent,
|
|
59
59
|
takeSnapshotWithRetry
|
|
60
|
-
} from "./index-
|
|
60
|
+
} from "./index-2y4kargd.js";
|
|
61
61
|
import {
|
|
62
62
|
appendCoreEventSync
|
|
63
|
-
} from "./index-
|
|
63
|
+
} from "./index-2v17wb75.js";
|
|
64
64
|
import {
|
|
65
65
|
derivePlanId,
|
|
66
66
|
derivePlanIdentityHash,
|
|
@@ -68,13 +68,13 @@ import {
|
|
|
68
68
|
importCoordinationOnce,
|
|
69
69
|
listCoordinationStates,
|
|
70
70
|
transitionCoordinationState
|
|
71
|
-
} from "./index-
|
|
71
|
+
} from "./index-jx9f4ke1.js";
|
|
72
72
|
import {
|
|
73
73
|
DURABILITY_CLASSES,
|
|
74
74
|
getProjectDb,
|
|
75
75
|
projectDbExists,
|
|
76
76
|
withDurabilityClass
|
|
77
|
-
} from "./index-
|
|
77
|
+
} from "./index-aftapk6j.js";
|
|
78
78
|
import {
|
|
79
79
|
canonicalRootKeyFresh
|
|
80
80
|
} from "./index-7qefgq4j.js";
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
assertProjectRoot,
|
|
83
83
|
tryAcquireLock,
|
|
84
84
|
withEvidenceLock
|
|
85
|
-
} from "./index-
|
|
85
|
+
} from "./index-edm41q4j.js";
|
|
86
86
|
import {
|
|
87
87
|
atomicWriteSwarmFileSync,
|
|
88
88
|
invalidateCachedArtifact,
|
|
@@ -90,10 +90,10 @@ import {
|
|
|
90
90
|
} from "./index-gy0nyfbw.js";
|
|
91
91
|
import {
|
|
92
92
|
emit
|
|
93
|
-
} from "./index-
|
|
93
|
+
} from "./index-hwj25q9r.js";
|
|
94
94
|
import {
|
|
95
95
|
PlanSchema
|
|
96
|
-
} from "./index-
|
|
96
|
+
} from "./index-52xdezsh.js";
|
|
97
97
|
import {
|
|
98
98
|
GIT_BINARY_ENV_VAR,
|
|
99
99
|
describeGitResolution,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
init_executor,
|
|
109
109
|
isUntrustedEnvKey,
|
|
110
110
|
isValidEnvKey
|
|
111
|
-
} from "./index-
|
|
111
|
+
} from "./index-q1r1cfww.js";
|
|
112
112
|
import {
|
|
113
113
|
criticalWarn,
|
|
114
114
|
error,
|
|
@@ -316,6 +316,33 @@ function transientBackoff(attempt) {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
// src/git/safe-ref.ts
|
|
320
|
+
class UnsafeGitRefError extends Error {
|
|
321
|
+
ref;
|
|
322
|
+
context;
|
|
323
|
+
constructor(ref, context) {
|
|
324
|
+
super(`Refused unsafe git ref "${ref}" at ${context}: a ref argument ` + 'starting with "-" can be parsed by git as an option (issue #2265/#2476)');
|
|
325
|
+
this.ref = ref;
|
|
326
|
+
this.context = context;
|
|
327
|
+
this.name = "UnsafeGitRefError";
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
function isSafeGitRefArg(value) {
|
|
331
|
+
if (value.length === 0)
|
|
332
|
+
return false;
|
|
333
|
+
for (const side of value.split("..")) {
|
|
334
|
+
if (side.startsWith("-"))
|
|
335
|
+
return false;
|
|
336
|
+
}
|
|
337
|
+
return true;
|
|
338
|
+
}
|
|
339
|
+
function assertSafeGitRefArg(value, context) {
|
|
340
|
+
if (!isSafeGitRefArg(value)) {
|
|
341
|
+
throw new UnsafeGitRefError(value, context);
|
|
342
|
+
}
|
|
343
|
+
return value;
|
|
344
|
+
}
|
|
345
|
+
|
|
319
346
|
// src/git/branch.ts
|
|
320
347
|
var GIT_TIMEOUT_MS = 30000;
|
|
321
348
|
var GIT_MAX_BUFFER_BYTES = 5 * 1024 * 1024;
|
|
@@ -519,6 +546,8 @@ async function resetToRemoteBranch(cwd, options) {
|
|
|
519
546
|
warnings: []
|
|
520
547
|
};
|
|
521
548
|
}
|
|
549
|
+
assertSafeGitRefArg(currentBranch, "resetToRemoteBranch currentBranch");
|
|
550
|
+
assertSafeGitRefArg(defaultRemoteBranch, "resetToRemoteBranch defaultRemoteBranch");
|
|
522
551
|
const targetBranch = `origin/${defaultRemoteBranch}`;
|
|
523
552
|
if (currentBranch === "HEAD") {
|
|
524
553
|
return {
|
|
@@ -631,7 +660,12 @@ async function resetToRemoteBranch(cwd, options) {
|
|
|
631
660
|
continue;
|
|
632
661
|
}
|
|
633
662
|
try {
|
|
634
|
-
gitExec([
|
|
663
|
+
gitExec([
|
|
664
|
+
"branch",
|
|
665
|
+
"-d",
|
|
666
|
+
"--",
|
|
667
|
+
assertSafeGitRefArg(trimmedLine, "resetToRemoteBranch prune merged branch")
|
|
668
|
+
], cwd);
|
|
635
669
|
prunedBranches.push(trimmedLine);
|
|
636
670
|
} catch {
|
|
637
671
|
warnings.push(`Could not safely delete branch: ${trimmedLine}`);
|
|
@@ -653,7 +687,12 @@ async function resetToRemoteBranch(cwd, options) {
|
|
|
653
687
|
const parts = trimmedLine.split(/\s+/);
|
|
654
688
|
const branchName = parts[0];
|
|
655
689
|
try {
|
|
656
|
-
gitExec([
|
|
690
|
+
gitExec([
|
|
691
|
+
"branch",
|
|
692
|
+
"-d",
|
|
693
|
+
"--",
|
|
694
|
+
assertSafeGitRefArg(branchName, "resetToRemoteBranch prune gone branch")
|
|
695
|
+
], cwd);
|
|
657
696
|
prunedBranches.push(branchName);
|
|
658
697
|
} catch {
|
|
659
698
|
warnings.push(`Could not delete gone branch: ${branchName}`);
|
|
@@ -702,6 +741,8 @@ async function resetToMainAfterMerge(cwd, options) {
|
|
|
702
741
|
};
|
|
703
742
|
}
|
|
704
743
|
const currentBranch = getCurrentBranch(cwd);
|
|
744
|
+
assertSafeGitRefArg(currentBranch, "resetToMainAfterMerge currentBranch");
|
|
745
|
+
assertSafeGitRefArg(defaultBranch, "resetToMainAfterMerge defaultBranch");
|
|
705
746
|
const targetBranch = `origin/${defaultBranch}`;
|
|
706
747
|
if (currentBranch === "HEAD") {
|
|
707
748
|
return {
|
|
@@ -834,7 +875,12 @@ async function resetToMainAfterMerge(cwd, options) {
|
|
|
834
875
|
const isMerged = mergedOutput.split(`
|
|
835
876
|
`).some((line) => line.trim() === previousBranch || line.trim() === `* ${previousBranch}`);
|
|
836
877
|
if (isMerged) {
|
|
837
|
-
_internals.gitExec([
|
|
878
|
+
_internals.gitExec([
|
|
879
|
+
"branch",
|
|
880
|
+
"-d",
|
|
881
|
+
"--",
|
|
882
|
+
assertSafeGitRefArg(previousBranch, "resetToMainAfterMerge previousBranch")
|
|
883
|
+
], cwd);
|
|
838
884
|
branchDeleted = true;
|
|
839
885
|
} else {
|
|
840
886
|
warnings.push(`Branch ${previousBranch} is not merged into ${defaultBranch} \u2014 keeping it`);
|
|
@@ -854,7 +900,12 @@ async function resetToMainAfterMerge(cwd, options) {
|
|
|
854
900
|
continue;
|
|
855
901
|
}
|
|
856
902
|
try {
|
|
857
|
-
_internals.gitExec([
|
|
903
|
+
_internals.gitExec([
|
|
904
|
+
"branch",
|
|
905
|
+
"-d",
|
|
906
|
+
"--",
|
|
907
|
+
assertSafeGitRefArg(trimmedLine, "resetToMainAfterMerge prune branch")
|
|
908
|
+
], cwd);
|
|
858
909
|
} catch {
|
|
859
910
|
warnings.push(`Could not prune branch: ${trimmedLine}`);
|
|
860
911
|
}
|
|
@@ -4159,4 +4210,4 @@ function mergeDurableGateEntriesFromEvidence(taskId, entries, evidence) {
|
|
|
4159
4210
|
return merged;
|
|
4160
4211
|
}
|
|
4161
4212
|
|
|
4162
|
-
export { normalizePath, buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, isValidEvidenceType, isSecretscanEvidence, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
|
|
4213
|
+
export { normalizePath, buildTaskCompletionDescriptor, ensureTaskCheckpointReceipt, updateTaskCheckpointReceipt, MAX_TRANSIENT_RETRIES, isTransientSpawnError, transientBackoff, readLaneEnvFileFromDiskSync, getGitRepositoryStatus, isGitRepo, getDefaultBaseBranch, detectDefaultRemoteBranch, resetToRemoteBranch, resetToMainAfterMerge, isStateUnreadable, loadEpicSessionState, isEpicModeActive, enableEpicMode, disableEpicMode, pathsConflict, isGlobalFile, isProtectedPath, readTaskScopes, loadPlanJsonOnly, loadPlan, savePlan, closePlanTerminalState, updateTaskStatus, derivePlanMarkdown, isValidEvidenceType, isSecretscanEvidence, sanitizeTaskId2 as sanitizeTaskId, validateProjectRoot, saveEvidence, loadEvidence, listEvidenceTaskIds, checkRequirementCoverage, archiveEvidence, readDurableGateEvidence, getDurableGateEvidenceStatus, getDurableGateEvidenceStatusForTask, mergeDurableGateEntriesFromEvidence };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
queryHistoricalOutcomes,
|
|
4
4
|
readKnowledgeEvents,
|
|
5
5
|
recordKnowledgeEvent
|
|
6
|
-
} from "./index-
|
|
6
|
+
} from "./index-zha9bdj9.js";
|
|
7
7
|
import {
|
|
8
8
|
jaccardBigram,
|
|
9
9
|
readKnowledge,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
resolveSwarmKnowledgePath,
|
|
12
12
|
transactKnowledge,
|
|
13
13
|
wordBigrams
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-bkd3450m.js";
|
|
15
15
|
import {
|
|
16
16
|
init_knowledge_types,
|
|
17
17
|
isActiveStatus
|
|
@@ -224,11 +224,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
|
|
|
224
224
|
alreadyInactive: true
|
|
225
225
|
};
|
|
226
226
|
}
|
|
227
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
227
|
+
const { quarantineEntry } = await import("./knowledge-validator-76qrf1ev.js");
|
|
228
228
|
let policyConfig;
|
|
229
229
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
230
|
+
const { KnowledgeConfigSchema } = await import("./schema-27sedbfk.js");
|
|
231
|
+
const { loadPluginConfigWithMeta } = await import("./index-j29nkq5d.js");
|
|
232
232
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
233
233
|
policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
234
234
|
} catch {
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import {
|
|
3
3
|
derivePlanId,
|
|
4
4
|
derivePlanIdentityHash
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-jx9f4ke1.js";
|
|
6
6
|
import {
|
|
7
7
|
assertProjectRoot,
|
|
8
8
|
withEvidenceLock
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-edm41q4j.js";
|
|
10
10
|
import {
|
|
11
11
|
emit
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-hwj25q9r.js";
|
|
13
13
|
import {
|
|
14
14
|
ExecutionProfileSchema,
|
|
15
15
|
PlanSchema,
|
|
16
16
|
TaskStatusSchema,
|
|
17
17
|
init_loader
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-52xdezsh.js";
|
|
19
19
|
import {
|
|
20
20
|
criticalWarn,
|
|
21
21
|
init_logger,
|