opencode-swarm 7.168.1 → 7.170.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/.opencode/skills/swarm-pr-feedback/SKILL.md +11 -11
- package/README.md +1 -0
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/ci/evaluate.d.ts +100 -0
- package/dist/ci/index.d.ts +13 -0
- package/dist/ci/quality-checks.d.ts +58 -0
- package/dist/ci/report.d.ts +21 -0
- package/dist/ci/runtime.d.ts +81 -0
- package/dist/cli/{capability-probe-faqefhah.js → capability-probe-pdwwz8gs.js} +1 -1
- package/dist/cli/{coder-settlement-54a3d97g.js → coder-settlement-65zx1bet.js} +12 -12
- package/dist/cli/{config-doctor-vzp6b3ng.js → config-doctor-c30rss1c.js} +2 -2
- package/dist/cli/{core-yynse50x.js → core-8wkbr1tr.js} +5 -2
- package/dist/cli/{curation-policy-mgwv8h2k.js → curation-policy-k74qz9ms.js} +5 -5
- package/dist/cli/{curator-drift-k0zrnm09.js → curator-drift-3ssjr0nx.js} +5 -5
- package/dist/cli/curator-llm-factory-jkjqasfs.js +72 -0
- package/dist/cli/{curator-agdhhzqt.js → curator-pckzk1q4.js} +40 -39
- package/dist/cli/{dispatch-8ks9dyk5.js → dispatch-hwwj3qrb.js} +2 -2
- package/dist/cli/{evidence-summary-service-6mmcekr7.js → evidence-summary-service-4ydcapke.js} +17 -17
- package/dist/cli/{gate-evidence-xqvkqhrk.js → gate-evidence-xwqfky3m.js} +7 -7
- package/dist/cli/guardrail-explain-fe2veh2s.js +73 -0
- package/dist/cli/{guardrail-log-5wa5c77w.js → guardrail-log-z38j69bx.js} +8 -8
- package/dist/cli/{guardrail-reset-dh78tbcf.js → guardrail-reset-mmnzt4mz.js} +40 -39
- package/dist/cli/hive-promoter-68hrw1y1.js +87 -0
- package/dist/cli/{index-gmpmgtzn.js → index-06rbdzqn.js} +5 -5
- package/dist/cli/index-0hgmsyfp.js +92 -0
- package/dist/cli/{index-f1fps3w9.js → index-0xprxg95.js} +7 -7
- package/dist/cli/{index-p612v1mv.js → index-2s7dvzff.js} +200 -51
- package/dist/cli/{index-qthc56c4.js → index-31sqcdsd.js} +4 -4
- package/dist/cli/{index-y85aptep.js → index-3axdtaf0.js} +7 -7
- package/dist/cli/{index-9b2105n0.js → index-3eh2n3dx.js} +2 -2
- package/dist/cli/{index-w1dfkp1q.js → index-3p3y55xg.js} +15 -15
- package/dist/cli/{index-apy1qfj0.js → index-4wc5gfgm.js} +26 -4
- package/dist/cli/{index-d5qf7hvh.js → index-5400m33a.js} +1 -1
- package/dist/cli/{index-qkwtth00.js → index-59fcfpkh.js} +197 -35
- package/dist/cli/{index-j0bxxz9d.js → index-5bbem0ey.js} +8 -8
- package/dist/cli/{index-qwsh0h2g.js → index-5qt9yf5w.js} +4 -4
- package/dist/cli/{index-q1r1cfww.js → index-76qm2c2y.js} +37 -26
- package/dist/cli/{index-qhey6vc3.js → index-7h01bkm6.js} +2 -2
- package/dist/cli/{index-6df6wbvj.js → index-8w1mrvbd.js} +8 -8
- package/dist/cli/{index-8ybjqg51.js → index-9ttqbhvw.js} +1 -1
- package/dist/cli/{index-xhb4gryr.js → index-9xk97bcf.js} +4 -4
- package/dist/cli/{index-kear8gb7.js → index-b3pmzbh1.js} +2 -2
- package/dist/cli/{index-h439y187.js → index-bernkwgf.js} +1 -1
- package/dist/cli/{index-m35hybf0.js → index-bm5xrfnx.js} +1 -1
- package/dist/cli/{index-pyf517sz.js → index-br3mvbsa.js} +2 -2
- package/dist/cli/{index-4r5pmtvk.js → index-bx1wgn3a.js} +4 -4
- package/dist/cli/{index-nwwk3dej.js → index-cgpwjctj.js} +1 -1
- package/dist/cli/{index-wst6n478.js → index-dvbf6fpn.js} +1 -1
- package/dist/cli/{index-a8xbvsse.js → index-fgp96k3r.js} +2 -2
- package/dist/cli/{index-5zqakgp4.js → index-fhh02gwx.js} +3 -3
- package/dist/cli/{index-dfyv3xkd.js → index-gfbggp8k.js} +9 -9
- package/dist/cli/{index-kkmezerc.js → index-j144fgk8.js} +4831 -2776
- package/dist/cli/{index-xkf3672y.js → index-mjn6aqqk.js} +2 -2
- package/dist/cli/{index-3jmb4ppa.js → index-n0d5hrs4.js} +2 -2
- package/dist/cli/{index-v3xc4sde.js → index-nbdmdyke.js} +2 -1
- package/dist/cli/{index-z6qreakh.js → index-nprdr0sm.js} +6 -4
- package/dist/cli/{index-bvqqwx84.js → index-nyn01yrz.js} +2 -2
- package/dist/cli/{index-q8091q8b.js → index-p6fj7qz7.js} +3 -3
- package/dist/cli/{index-gh9ybrrs.js → index-pw00xcj0.js} +7 -7
- package/dist/cli/{index-bw9x8d8n.js → index-r1z8nrb6.js} +5 -5
- package/dist/cli/{index-2xbww1x0.js → index-ssx8087p.js} +7 -7
- package/dist/cli/{index-4kv1ew3q.js → index-t73888m0.js} +1 -1
- package/dist/cli/{index-91ww9hyr.js → index-td6xrw55.js} +1 -1
- package/dist/cli/{index-gp9yzr1v.js → index-xnpjwc4h.js} +1 -1
- package/dist/cli/{index-yt9n9zt3.js → index-xztkjj3c.js} +48 -41
- package/dist/cli/{index-5g6rhkn7.js → index-ye43mdfm.js} +36 -1
- package/dist/cli/{index-w3x1dmrf.js → index-z5vas8c3.js} +40 -39
- package/dist/cli/{index-chebm5h5.js → index-zw3hkzch.js} +3 -3
- package/dist/cli/index.js +45 -39
- package/dist/cli/{knowledge-escalator-135dz4eh.js → knowledge-escalator-pz2faktx.js} +13 -13
- package/dist/cli/{knowledge-events-27gwv47q.js → knowledge-events-s6s8qedx.js} +11 -11
- package/dist/cli/{knowledge-link-dr3xnwyd.js → knowledge-link-rkxfrmhm.js} +4 -4
- package/dist/cli/{knowledge-store-80m44bfw.js → knowledge-store-dgv3xw3h.js} +5 -5
- package/dist/cli/{knowledge-validator-crsfb2cc.js → knowledge-validator-22qppdyv.js} +7 -7
- package/dist/cli/{pending-delegations-gwgjzzkz.js → pending-delegations-4r21nf9d.js} +12 -12
- package/dist/cli/{pr-subscriptions-g633nhz4.js → pr-subscriptions-d52xy3zd.js} +12 -12
- package/dist/cli/{pr-workflow-gate-4dc5nt2e.js → pr-workflow-gate-0de81kzw.js} +40 -39
- package/dist/cli/{runner-k0ycgv8x.js → runner-1dwrgyyr.js} +6 -6
- package/dist/cli/{scan-cursor-avxjsm4w.js → scan-cursor-ahbbejab.js} +6 -6
- package/dist/cli/{schema-3ja77k4y.js → schema-17h2hcw9.js} +5 -1
- package/dist/cli/{scope-persistence-f540tc50.js → scope-persistence-gcn3zm5e.js} +14 -14
- package/dist/cli/{skill-generator-kcqqpg1g.js → skill-generator-hkqr5qs7.js} +15 -15
- package/dist/cli/{snapshot-coordination-init-e4s8bn4p.js → snapshot-coordination-init-ms36zxv6.js} +40 -39
- package/dist/cli/{telemetry-2wzapf11.js → telemetry-fdtaemnv.js} +1 -1
- package/dist/cli/{workspace-snapshot-rkgxhj9b.js → workspace-snapshot-hkz2wt1c.js} +4 -4
- package/dist/cli/{worktree-collision-ownership-rk9gz638.js → worktree-collision-ownership-7v7gg511.js} +18 -104
- package/dist/cli/{worktree-isolation-1bdzfgky.js → worktree-isolation-nanamt25.js} +40 -39
- package/dist/commands/ci.d.ts +40 -0
- package/dist/commands/destructive-purge.d.ts +85 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/registry.d.ts +10 -2
- package/dist/commands/reset-session.d.ts +5 -1
- package/dist/config/constants.d.ts +4 -1
- package/dist/config/lane-context.d.ts +19 -0
- package/dist/config/schema.d.ts +77 -0
- package/dist/evaluation/index.d.ts +1 -0
- package/dist/evaluation/retrieval-quality.d.ts +116 -0
- package/dist/failures/invocation-failure.d.ts +23 -4
- package/dist/hooks/gate-denial-tracker.d.ts +18 -14
- package/dist/hooks/init-orphan-recovery.d.ts +7 -0
- package/dist/hooks/pr-workflow-gate.d.ts +8 -2
- package/dist/index.js +616 -608
- package/dist/memory/embeddings/reranker.d.ts +13 -2
- package/dist/memory/evaluation.d.ts +99 -0
- package/dist/memory/heldout-evaluation-corpus.d.ts +51 -0
- package/dist/memory/index.d.ts +5 -2
- package/dist/memory/sqlite-provider.d.ts +35 -1
- package/dist/memory/types.d.ts +14 -0
- package/dist/observability/otel-mapping.d.ts +5 -5
- package/dist/observability/otlp-exporter.d.ts +80 -0
- package/dist/parallel/lane-owners.d.ts +76 -0
- package/dist/sandbox/macos/sandbox-exec-executor.d.ts +48 -11
- package/dist/tools/repo-graph/query.d.ts +6 -1
- package/dist/tools/repo-graph/types.d.ts +13 -4
- package/dist/utils/bun-compat.d.ts +20 -0
- package/dist/utils/gitignore-warning.d.ts +5 -2
- package/dist/worktree/base-migration.d.ts +55 -0
- package/dist/worktree/core.d.ts +15 -6
- package/dist/worktree/ownership.d.ts +66 -0
- package/opencode-swarm.schema.json +97 -0
- package/package.json +4 -2
- package/tests/fixtures/memory-recall-heldout/manifest.json +311 -0
- package/tests/fixtures/memory-recall-heldout/sources/bash.sh +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/c.c +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/cpp.cpp +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/csharp.cs +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/css.css +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/dart.dart +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/go.go +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/ini.ini +2 -0
- package/tests/fixtures/memory-recall-heldout/sources/java.java +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/javascript.js +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/kotlin.kt +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/php.php +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/powershell.ps1 +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/python.py +2 -0
- package/tests/fixtures/memory-recall-heldout/sources/regex.regex +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/ruby.rb +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/rust.rs +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/swift.swift +1 -0
- package/tests/fixtures/memory-recall-heldout/sources/tsx.tsx +3 -0
- package/tests/fixtures/memory-recall-heldout/sources/typescript.ts +3 -0
- package/dist/cli/curator-llm-factory-ygxd6hfx.js +0 -71
- package/dist/cli/guardrail-explain-vjtjhgzs.js +0 -72
- package/dist/cli/hive-promoter-3czsx7c6.js +0 -86
package/dist/cli/{evidence-summary-service-6mmcekr7.js → evidence-summary-service-4ydcapke.js}
RENAMED
|
@@ -6,40 +6,40 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-3p3y55xg.js";
|
|
10
|
+
import"./index-xnpjwc4h.js";
|
|
11
11
|
import"./index-txdagbh7.js";
|
|
12
12
|
import"./index-9br68j86.js";
|
|
13
13
|
import"./index-cw912re7.js";
|
|
14
14
|
import"./index-zsrtt42s.js";
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
15
|
+
import"./index-06rbdzqn.js";
|
|
16
|
+
import"./index-59fcfpkh.js";
|
|
17
|
+
import"./index-b3pmzbh1.js";
|
|
18
|
+
import"./index-2s7dvzff.js";
|
|
19
19
|
import"./index-3qf1vxtb.js";
|
|
20
20
|
import"./index-n832052r.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
21
|
+
import"./index-pw00xcj0.js";
|
|
22
|
+
import"./index-fgp96k3r.js";
|
|
23
|
+
import"./index-bernkwgf.js";
|
|
24
|
+
import"./index-dvbf6fpn.js";
|
|
25
25
|
import"./index-rdm3px0g.js";
|
|
26
26
|
import"./index-ry16d01s.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-5qt9yf5w.js";
|
|
28
|
+
import"./index-bx1wgn3a.js";
|
|
29
29
|
import"./index-7g4c7s5r.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-nprdr0sm.js";
|
|
31
|
+
import"./index-nbdmdyke.js";
|
|
32
32
|
import"./index-1xnse449.js";
|
|
33
33
|
import"./index-ee6ydtfe.js";
|
|
34
|
-
import"./index-
|
|
34
|
+
import"./index-td6xrw55.js";
|
|
35
35
|
import"./index-0mhftbpp.js";
|
|
36
36
|
import"./index-a1w58b47.js";
|
|
37
|
-
import"./index-
|
|
37
|
+
import"./index-4wc5gfgm.js";
|
|
38
38
|
import"./index-sxt7fgcw.js";
|
|
39
39
|
import"./index-bk5tah7q.js";
|
|
40
40
|
import"./index-bpmtbmy9.js";
|
|
41
41
|
import"./index-zpsr8rpc.js";
|
|
42
|
-
import"./index-
|
|
42
|
+
import"./index-76qm2c2y.js";
|
|
43
43
|
import"./index-yzjaj53h.js";
|
|
44
44
|
import {
|
|
45
45
|
log
|
|
@@ -21,14 +21,14 @@ import {
|
|
|
21
21
|
reduceTaskWorkflowSnapshot,
|
|
22
22
|
transitionTaskWorkflowEvidence,
|
|
23
23
|
withTaskEvidenceTransaction
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
24
|
+
} from "./index-06rbdzqn.js";
|
|
25
|
+
import"./index-59fcfpkh.js";
|
|
26
|
+
import"./index-b3pmzbh1.js";
|
|
27
|
+
import"./index-2s7dvzff.js";
|
|
28
|
+
import"./index-bx1wgn3a.js";
|
|
29
29
|
import"./index-7g4c7s5r.js";
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
30
|
+
import"./index-nprdr0sm.js";
|
|
31
|
+
import"./index-nbdmdyke.js";
|
|
32
32
|
import"./index-1xnse449.js";
|
|
33
33
|
import"./index-ee6ydtfe.js";
|
|
34
34
|
import"./index-0mhftbpp.js";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
handleGuardrailExplain
|
|
4
|
+
} from "./index-n0d5hrs4.js";
|
|
5
|
+
import"./index-j144fgk8.js";
|
|
6
|
+
import"./index-5400m33a.js";
|
|
7
|
+
import"./index-7h01bkm6.js";
|
|
8
|
+
import"./index-zw3hkzch.js";
|
|
9
|
+
import"./index-cgpwjctj.js";
|
|
10
|
+
import"./index-ye43mdfm.js";
|
|
11
|
+
import"./index-3p3y55xg.js";
|
|
12
|
+
import"./index-xnpjwc4h.js";
|
|
13
|
+
import"./index-txdagbh7.js";
|
|
14
|
+
import"./index-9br68j86.js";
|
|
15
|
+
import"./index-cw912re7.js";
|
|
16
|
+
import"./index-9xk97bcf.js";
|
|
17
|
+
import"./index-r1z8nrb6.js";
|
|
18
|
+
import"./index-3eh2n3dx.js";
|
|
19
|
+
import"./index-fyfbpz4f.js";
|
|
20
|
+
import"./index-gfbggp8k.js";
|
|
21
|
+
import"./index-0hgmsyfp.js";
|
|
22
|
+
import"./index-zsrtt42s.js";
|
|
23
|
+
import"./index-5bbem0ey.js";
|
|
24
|
+
import"./index-fhh02gwx.js";
|
|
25
|
+
import"./index-nyn01yrz.js";
|
|
26
|
+
import"./index-b43rt5ph.js";
|
|
27
|
+
import"./index-q7sjgr1y.js";
|
|
28
|
+
import"./index-06rbdzqn.js";
|
|
29
|
+
import"./index-59fcfpkh.js";
|
|
30
|
+
import"./index-0xprxg95.js";
|
|
31
|
+
import"./index-8w1mrvbd.js";
|
|
32
|
+
import"./index-b3pmzbh1.js";
|
|
33
|
+
import"./index-2s7dvzff.js";
|
|
34
|
+
import"./index-31sqcdsd.js";
|
|
35
|
+
import"./index-bm5xrfnx.js";
|
|
36
|
+
import"./index-rtry5xyf.js";
|
|
37
|
+
import"./index-mjn6aqqk.js";
|
|
38
|
+
import"./index-3qf1vxtb.js";
|
|
39
|
+
import"./index-n832052r.js";
|
|
40
|
+
import"./index-3axdtaf0.js";
|
|
41
|
+
import"./index-pw00xcj0.js";
|
|
42
|
+
import"./index-fgp96k3r.js";
|
|
43
|
+
import"./index-br3mvbsa.js";
|
|
44
|
+
import"./index-bernkwgf.js";
|
|
45
|
+
import"./index-dvbf6fpn.js";
|
|
46
|
+
import"./index-rdm3px0g.js";
|
|
47
|
+
import"./index-ry16d01s.js";
|
|
48
|
+
import"./index-5qt9yf5w.js";
|
|
49
|
+
import"./index-ssx8087p.js";
|
|
50
|
+
import"./index-vzm6zre7.js";
|
|
51
|
+
import"./index-ae75rja9.js";
|
|
52
|
+
import"./index-9ttqbhvw.js";
|
|
53
|
+
import"./index-bx1wgn3a.js";
|
|
54
|
+
import"./index-7g4c7s5r.js";
|
|
55
|
+
import"./index-nprdr0sm.js";
|
|
56
|
+
import"./index-nbdmdyke.js";
|
|
57
|
+
import"./index-1xnse449.js";
|
|
58
|
+
import"./index-ee6ydtfe.js";
|
|
59
|
+
import"./index-td6xrw55.js";
|
|
60
|
+
import"./index-0mhftbpp.js";
|
|
61
|
+
import"./index-a1w58b47.js";
|
|
62
|
+
import"./index-4wc5gfgm.js";
|
|
63
|
+
import"./index-sxt7fgcw.js";
|
|
64
|
+
import"./index-bk5tah7q.js";
|
|
65
|
+
import"./index-bpmtbmy9.js";
|
|
66
|
+
import"./index-zpsr8rpc.js";
|
|
67
|
+
import"./index-76qm2c2y.js";
|
|
68
|
+
import"./index-yzjaj53h.js";
|
|
69
|
+
import"./index-zgwm4ryv.js";
|
|
70
|
+
import"./index-a76rekgs.js";
|
|
71
|
+
export {
|
|
72
|
+
handleGuardrailExplain
|
|
73
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
4
|
+
} from "./index-t73888m0.js";
|
|
5
|
+
import"./index-zw3hkzch.js";
|
|
6
|
+
import"./index-2s7dvzff.js";
|
|
7
|
+
import"./index-fgp96k3r.js";
|
|
8
|
+
import"./index-5qt9yf5w.js";
|
|
9
|
+
import"./index-nprdr0sm.js";
|
|
10
|
+
import"./index-nbdmdyke.js";
|
|
11
11
|
import"./index-1xnse449.js";
|
|
12
12
|
import"./index-ee6ydtfe.js";
|
|
13
|
-
import"./index-
|
|
13
|
+
import"./index-4wc5gfgm.js";
|
|
14
14
|
import"./index-sxt7fgcw.js";
|
|
15
15
|
import"./index-bk5tah7q.js";
|
|
16
16
|
import"./index-bpmtbmy9.js";
|
|
@@ -3,68 +3,69 @@ 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-
|
|
13
|
-
import"./index-
|
|
6
|
+
} from "./index-j144fgk8.js";
|
|
7
|
+
import"./index-5400m33a.js";
|
|
8
|
+
import"./index-7h01bkm6.js";
|
|
9
|
+
import"./index-zw3hkzch.js";
|
|
10
|
+
import"./index-cgpwjctj.js";
|
|
11
|
+
import"./index-ye43mdfm.js";
|
|
12
|
+
import"./index-3p3y55xg.js";
|
|
13
|
+
import"./index-xnpjwc4h.js";
|
|
14
14
|
import"./index-txdagbh7.js";
|
|
15
15
|
import"./index-9br68j86.js";
|
|
16
16
|
import"./index-cw912re7.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-9xk97bcf.js";
|
|
18
|
+
import"./index-r1z8nrb6.js";
|
|
19
|
+
import"./index-3eh2n3dx.js";
|
|
20
20
|
import"./index-fyfbpz4f.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-gfbggp8k.js";
|
|
22
|
+
import"./index-0hgmsyfp.js";
|
|
22
23
|
import"./index-zsrtt42s.js";
|
|
23
|
-
import"./index-
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-5bbem0ey.js";
|
|
25
|
+
import"./index-fhh02gwx.js";
|
|
26
|
+
import"./index-nyn01yrz.js";
|
|
26
27
|
import"./index-b43rt5ph.js";
|
|
27
28
|
import"./index-q7sjgr1y.js";
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
29
|
+
import"./index-06rbdzqn.js";
|
|
30
|
+
import"./index-59fcfpkh.js";
|
|
31
|
+
import"./index-0xprxg95.js";
|
|
32
|
+
import"./index-8w1mrvbd.js";
|
|
33
|
+
import"./index-b3pmzbh1.js";
|
|
34
|
+
import"./index-2s7dvzff.js";
|
|
35
|
+
import"./index-31sqcdsd.js";
|
|
36
|
+
import"./index-bm5xrfnx.js";
|
|
36
37
|
import"./index-rtry5xyf.js";
|
|
37
|
-
import"./index-
|
|
38
|
+
import"./index-mjn6aqqk.js";
|
|
38
39
|
import"./index-3qf1vxtb.js";
|
|
39
40
|
import"./index-n832052r.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
41
|
+
import"./index-3axdtaf0.js";
|
|
42
|
+
import"./index-pw00xcj0.js";
|
|
43
|
+
import"./index-fgp96k3r.js";
|
|
44
|
+
import"./index-br3mvbsa.js";
|
|
45
|
+
import"./index-bernkwgf.js";
|
|
46
|
+
import"./index-dvbf6fpn.js";
|
|
46
47
|
import"./index-rdm3px0g.js";
|
|
47
48
|
import"./index-ry16d01s.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-5qt9yf5w.js";
|
|
50
|
+
import"./index-ssx8087p.js";
|
|
50
51
|
import"./index-vzm6zre7.js";
|
|
51
52
|
import"./index-ae75rja9.js";
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
53
|
+
import"./index-9ttqbhvw.js";
|
|
54
|
+
import"./index-bx1wgn3a.js";
|
|
54
55
|
import"./index-7g4c7s5r.js";
|
|
55
|
-
import"./index-
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-nprdr0sm.js";
|
|
57
|
+
import"./index-nbdmdyke.js";
|
|
57
58
|
import"./index-1xnse449.js";
|
|
58
59
|
import"./index-ee6ydtfe.js";
|
|
59
|
-
import"./index-
|
|
60
|
+
import"./index-td6xrw55.js";
|
|
60
61
|
import"./index-0mhftbpp.js";
|
|
61
62
|
import"./index-a1w58b47.js";
|
|
62
|
-
import"./index-
|
|
63
|
+
import"./index-4wc5gfgm.js";
|
|
63
64
|
import"./index-sxt7fgcw.js";
|
|
64
65
|
import"./index-bk5tah7q.js";
|
|
65
66
|
import"./index-bpmtbmy9.js";
|
|
66
67
|
import"./index-zpsr8rpc.js";
|
|
67
|
-
import"./index-
|
|
68
|
+
import"./index-76qm2c2y.js";
|
|
68
69
|
import"./index-yzjaj53h.js";
|
|
69
70
|
import"./index-zgwm4ryv.js";
|
|
70
71
|
import"./index-a76rekgs.js";
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
_internals3 as _internals,
|
|
4
|
+
checkHivePromotions,
|
|
5
|
+
countDistinctProjects,
|
|
6
|
+
createHivePromoterHook,
|
|
7
|
+
isHiveEligible,
|
|
8
|
+
promoteFromSwarm,
|
|
9
|
+
promoteToHive
|
|
10
|
+
} from "./index-j144fgk8.js";
|
|
11
|
+
import"./index-5400m33a.js";
|
|
12
|
+
import"./index-7h01bkm6.js";
|
|
13
|
+
import"./index-zw3hkzch.js";
|
|
14
|
+
import"./index-cgpwjctj.js";
|
|
15
|
+
import"./index-ye43mdfm.js";
|
|
16
|
+
import"./index-3p3y55xg.js";
|
|
17
|
+
import"./index-xnpjwc4h.js";
|
|
18
|
+
import"./index-txdagbh7.js";
|
|
19
|
+
import"./index-9br68j86.js";
|
|
20
|
+
import"./index-cw912re7.js";
|
|
21
|
+
import"./index-9xk97bcf.js";
|
|
22
|
+
import"./index-r1z8nrb6.js";
|
|
23
|
+
import"./index-3eh2n3dx.js";
|
|
24
|
+
import"./index-fyfbpz4f.js";
|
|
25
|
+
import"./index-gfbggp8k.js";
|
|
26
|
+
import"./index-0hgmsyfp.js";
|
|
27
|
+
import"./index-zsrtt42s.js";
|
|
28
|
+
import"./index-5bbem0ey.js";
|
|
29
|
+
import"./index-fhh02gwx.js";
|
|
30
|
+
import"./index-nyn01yrz.js";
|
|
31
|
+
import"./index-b43rt5ph.js";
|
|
32
|
+
import"./index-q7sjgr1y.js";
|
|
33
|
+
import"./index-06rbdzqn.js";
|
|
34
|
+
import"./index-59fcfpkh.js";
|
|
35
|
+
import"./index-0xprxg95.js";
|
|
36
|
+
import"./index-8w1mrvbd.js";
|
|
37
|
+
import"./index-b3pmzbh1.js";
|
|
38
|
+
import"./index-2s7dvzff.js";
|
|
39
|
+
import"./index-31sqcdsd.js";
|
|
40
|
+
import"./index-bm5xrfnx.js";
|
|
41
|
+
import"./index-rtry5xyf.js";
|
|
42
|
+
import"./index-mjn6aqqk.js";
|
|
43
|
+
import"./index-3qf1vxtb.js";
|
|
44
|
+
import"./index-n832052r.js";
|
|
45
|
+
import"./index-3axdtaf0.js";
|
|
46
|
+
import"./index-pw00xcj0.js";
|
|
47
|
+
import"./index-fgp96k3r.js";
|
|
48
|
+
import"./index-br3mvbsa.js";
|
|
49
|
+
import"./index-bernkwgf.js";
|
|
50
|
+
import"./index-dvbf6fpn.js";
|
|
51
|
+
import"./index-rdm3px0g.js";
|
|
52
|
+
import"./index-ry16d01s.js";
|
|
53
|
+
import"./index-5qt9yf5w.js";
|
|
54
|
+
import {
|
|
55
|
+
resolveHiveKnowledgePath
|
|
56
|
+
} from "./index-ssx8087p.js";
|
|
57
|
+
import"./index-vzm6zre7.js";
|
|
58
|
+
import"./index-ae75rja9.js";
|
|
59
|
+
import"./index-9ttqbhvw.js";
|
|
60
|
+
import"./index-bx1wgn3a.js";
|
|
61
|
+
import"./index-7g4c7s5r.js";
|
|
62
|
+
import"./index-nprdr0sm.js";
|
|
63
|
+
import"./index-nbdmdyke.js";
|
|
64
|
+
import"./index-1xnse449.js";
|
|
65
|
+
import"./index-ee6ydtfe.js";
|
|
66
|
+
import"./index-td6xrw55.js";
|
|
67
|
+
import"./index-0mhftbpp.js";
|
|
68
|
+
import"./index-a1w58b47.js";
|
|
69
|
+
import"./index-4wc5gfgm.js";
|
|
70
|
+
import"./index-sxt7fgcw.js";
|
|
71
|
+
import"./index-bk5tah7q.js";
|
|
72
|
+
import"./index-bpmtbmy9.js";
|
|
73
|
+
import"./index-zpsr8rpc.js";
|
|
74
|
+
import"./index-76qm2c2y.js";
|
|
75
|
+
import"./index-yzjaj53h.js";
|
|
76
|
+
import"./index-zgwm4ryv.js";
|
|
77
|
+
import"./index-a76rekgs.js";
|
|
78
|
+
export {
|
|
79
|
+
resolveHiveKnowledgePath,
|
|
80
|
+
promoteToHive,
|
|
81
|
+
promoteFromSwarm,
|
|
82
|
+
isHiveEligible,
|
|
83
|
+
createHivePromoterHook,
|
|
84
|
+
countDistinctProjects,
|
|
85
|
+
checkHivePromotions,
|
|
86
|
+
_internals
|
|
87
|
+
};
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
import {
|
|
3
3
|
autoCommitDirty,
|
|
4
4
|
cleanUntrackedFiles
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-59fcfpkh.js";
|
|
6
6
|
import {
|
|
7
7
|
validateSwarmPath
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-b3pmzbh1.js";
|
|
9
9
|
import {
|
|
10
10
|
bunSpawn,
|
|
11
11
|
classifySpawnFailure
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-2s7dvzff.js";
|
|
13
13
|
import {
|
|
14
14
|
assertProjectRoot,
|
|
15
15
|
atomicWriteFile,
|
|
16
16
|
taskEvidencePath,
|
|
17
17
|
withTaskEvidenceLock
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-bx1wgn3a.js";
|
|
19
19
|
import {
|
|
20
20
|
telemetry
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-nprdr0sm.js";
|
|
22
22
|
import {
|
|
23
23
|
init_git_executable,
|
|
24
24
|
resolveGitExecutable
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
bunSpawn
|
|
4
|
+
} from "./index-2s7dvzff.js";
|
|
5
|
+
import {
|
|
6
|
+
init_git_executable,
|
|
7
|
+
resolveGitExecutable
|
|
8
|
+
} from "./index-0mhftbpp.js";
|
|
9
|
+
|
|
10
|
+
// src/hooks/delegation-gate/worktree-ownership-tag.ts
|
|
11
|
+
import * as fs from "fs";
|
|
12
|
+
import * as path from "path";
|
|
13
|
+
init_git_executable();
|
|
14
|
+
var OWNERSHIP_TAG_SCAN_TIMEOUT_MS = 2000;
|
|
15
|
+
var MAX_OWNERSHIP_TAGS = 512;
|
|
16
|
+
function decodeTagPart(value) {
|
|
17
|
+
if (!value || !/^[A-Za-z0-9_-]+$/.test(value))
|
|
18
|
+
return null;
|
|
19
|
+
const decoded = Buffer.from(value, "base64url").toString("utf8");
|
|
20
|
+
return decoded && Buffer.from(decoded, "utf8").toString("base64url") === value ? decoded : null;
|
|
21
|
+
}
|
|
22
|
+
async function scanBackgroundWorktreeOwnershipTagsForRecovery(directory) {
|
|
23
|
+
try {
|
|
24
|
+
fs.statSync(path.join(directory, ".git"));
|
|
25
|
+
} catch (error) {
|
|
26
|
+
if (error.code === "ENOENT") {
|
|
27
|
+
return { status: "ok", owners: [] };
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
status: "uncertain",
|
|
31
|
+
reason: `Git metadata could not be inspected: ${error instanceof Error ? error.message : String(error)}`
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
let proc;
|
|
35
|
+
try {
|
|
36
|
+
proc = bunSpawn([
|
|
37
|
+
resolveGitExecutable(),
|
|
38
|
+
"-C",
|
|
39
|
+
directory,
|
|
40
|
+
"for-each-ref",
|
|
41
|
+
`--count=${MAX_OWNERSHIP_TAGS + 1}`,
|
|
42
|
+
"--format=%(refname:strip=2)%00%(objectname)",
|
|
43
|
+
"refs/tags/swarm-preserved-owner/"
|
|
44
|
+
], {
|
|
45
|
+
stdin: "ignore",
|
|
46
|
+
stdout: "pipe",
|
|
47
|
+
stderr: "ignore",
|
|
48
|
+
timeout: OWNERSHIP_TAG_SCAN_TIMEOUT_MS
|
|
49
|
+
});
|
|
50
|
+
const exitCode = await proc.exited;
|
|
51
|
+
if (exitCode !== 0) {
|
|
52
|
+
return {
|
|
53
|
+
status: "uncertain",
|
|
54
|
+
reason: `ownership tag scan exited ${exitCode}`
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
const lines = (await proc.stdout.text()).split(/\r?\n/).map((line) => line.trim()).filter(Boolean);
|
|
58
|
+
if (lines.length > MAX_OWNERSHIP_TAGS) {
|
|
59
|
+
return {
|
|
60
|
+
status: "uncertain",
|
|
61
|
+
reason: `ownership tag scan exceeded the ${MAX_OWNERSHIP_TAGS}-tag safety bound`
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
const owners = [];
|
|
65
|
+
for (const line of lines) {
|
|
66
|
+
const [tag, ref, ...extra] = line.split("\x00");
|
|
67
|
+
const segments = tag?.split("/") ?? [];
|
|
68
|
+
const sessionId = decodeTagPart(segments[1] ?? "");
|
|
69
|
+
const laneId = decodeTagPart(segments[2] ?? "");
|
|
70
|
+
const callDigest = segments[3];
|
|
71
|
+
if (extra.length > 0 || segments.length !== 4 || segments[0] !== "swarm-preserved-owner" || !sessionId || !laneId || !callDigest || !/^[0-9a-f]{12}$/.test(callDigest) || !ref || !/^[0-9a-f]{40,64}$/i.test(ref)) {
|
|
72
|
+
return {
|
|
73
|
+
status: "uncertain",
|
|
74
|
+
reason: `malformed background ownership tag entry "${tag ?? ""}"`
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
owners.push({ sessionId, laneId, callDigest, ref });
|
|
78
|
+
}
|
|
79
|
+
return { status: "ok", owners };
|
|
80
|
+
} catch (error) {
|
|
81
|
+
return {
|
|
82
|
+
status: "uncertain",
|
|
83
|
+
reason: `ownership tag scan failed: ${error instanceof Error ? error.message : String(error)}`
|
|
84
|
+
};
|
|
85
|
+
} finally {
|
|
86
|
+
try {
|
|
87
|
+
proc?.kill();
|
|
88
|
+
} catch {}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export { scanBackgroundWorktreeOwnershipTagsForRecovery };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
validateSwarmPath
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-b3pmzbh1.js";
|
|
5
5
|
import {
|
|
6
6
|
bunWrite
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-2s7dvzff.js";
|
|
8
8
|
import {
|
|
9
9
|
MAX_COORDINATION_STATE_LIST_ROWS,
|
|
10
10
|
acquireCoordinationLease,
|
|
@@ -18,18 +18,18 @@ import {
|
|
|
18
18
|
releaseCoordinationLease,
|
|
19
19
|
transitionCoordinationState,
|
|
20
20
|
withCoordinationTransaction
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-bernkwgf.js";
|
|
22
22
|
import {
|
|
23
23
|
getProjectDb,
|
|
24
24
|
projectDbExists
|
|
25
|
-
} from "./index-
|
|
25
|
+
} from "./index-dvbf6fpn.js";
|
|
26
26
|
import {
|
|
27
27
|
observeDelegationLedgerPressure
|
|
28
|
-
} from "./index-
|
|
28
|
+
} from "./index-5qt9yf5w.js";
|
|
29
29
|
import {
|
|
30
30
|
EvidenceLockTimeoutError,
|
|
31
31
|
withEvidenceLock
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-bx1wgn3a.js";
|
|
33
33
|
import {
|
|
34
34
|
canonicalRootKeyFresh,
|
|
35
35
|
sameProjectRoot
|
|
@@ -4524,7 +4524,7 @@ async function reconcileLegacyCoderSettlements(directory, maxRecords, onReconcil
|
|
|
4524
4524
|
const candidates = readDelegations(directory).filter((record) => record.normalizedAgent === "coder" && Boolean(record.legacyCoderSettlementTransfer) && Boolean(record.terminalResult)).slice(0, maxRecords);
|
|
4525
4525
|
if (candidates.length === 0)
|
|
4526
4526
|
return 0;
|
|
4527
|
-
const { transferCoderSettlementToBackground } = await import("./coder-settlement-
|
|
4527
|
+
const { transferCoderSettlementToBackground } = await import("./coder-settlement-65zx1bet.js");
|
|
4528
4528
|
let transferred = 0;
|
|
4529
4529
|
for (const record of candidates) {
|
|
4530
4530
|
try {
|