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.
Files changed (112) hide show
  1. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  2. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  3. package/dist/background/delegation-cost-identity.d.ts +41 -0
  4. package/dist/background/delegation-lifecycle.d.ts +24 -5
  5. package/dist/background/pending-delegations.d.ts +2 -0
  6. package/dist/background/pr-monitor-worker.d.ts +60 -6
  7. package/dist/background/pr-subscriptions.d.ts +13 -0
  8. package/dist/cli/{capability-probe-5wa7mcp6.js → capability-probe-faqefhah.js} +2 -1
  9. package/dist/cli/{coder-settlement-89nt4j7g.js → coder-settlement-x0h3h6vd.js} +13 -13
  10. package/dist/cli/{config-doctor-gm6f5chm.js → config-doctor-pjcjeh8f.js} +5 -5
  11. package/dist/cli/{core-91p43zwj.js → core-v11pd1yk.js} +4 -4
  12. package/dist/cli/{curation-policy-bqpmry2n.js → curation-policy-jtzwz6bc.js} +4 -4
  13. package/dist/cli/{curator-drift-hbc3w5zj.js → curator-drift-jpdfwae9.js} +5 -5
  14. package/dist/cli/curator-llm-factory-da5q3gg6.js +70 -0
  15. package/dist/cli/{curator-4bs2hmy9.js → curator-ssvd7evd.js} +40 -40
  16. package/dist/cli/{dispatch-c7xjt7js.js → dispatch-591v13pp.js} +3 -3
  17. package/dist/cli/{evidence-summary-service-g1xd8egd.js → evidence-summary-service-mw6tnsp9.js} +19 -19
  18. package/dist/cli/{gate-evidence-gdmgsz7c.js → gate-evidence-jymaxb82.js} +9 -9
  19. package/dist/cli/guardrail-explain-eva1yrtf.js +71 -0
  20. package/dist/cli/guardrail-log-kzq2sktb.js +23 -0
  21. package/dist/cli/{guardrail-reset-rp9jq0gj.js → guardrail-reset-ea1g3g7d.js} +40 -40
  22. package/dist/cli/hive-promoter-ghjbgsms.js +85 -0
  23. package/dist/cli/{index-6be5caj8.js → index-066xxa4q.js} +3 -3
  24. package/dist/cli/{index-5ythtd9t.js → index-0g5v4s0x.js} +67 -16
  25. package/dist/cli/{index-a0d4fp6r.js → index-0tc0pcmh.js} +1 -1
  26. package/dist/cli/{index-n3pjcks8.js → index-13egyjgv.js} +5 -5
  27. package/dist/cli/{index-tqw8w2n5.js → index-17yszqs5.js} +1 -1
  28. package/dist/cli/{index-8bdk7124.js → index-1zqf2pny.js} +1 -1
  29. package/dist/cli/{index-8d90gzaz.js → index-2sqgbmtq.js} +1 -1
  30. package/dist/cli/{index-xwbn7c8m.js → index-2v17wb75.js} +2 -2
  31. package/dist/cli/{index-y1zhpfk8.js → index-2y4kargd.js} +4 -4
  32. package/dist/cli/{index-hwz46jj7.js → index-399nq780.js} +2509 -1094
  33. package/dist/cli/{index-r5hj3nfe.js → index-3tyym20r.js} +2 -2
  34. package/dist/cli/{index-zycp24b9.js → index-52xdezsh.js} +12 -3
  35. package/dist/cli/{index-2k53pfnc.js → index-6rff2h8x.js} +4 -4
  36. package/dist/cli/{index-6m24v15v.js → index-79sr3fd1.js} +2 -2
  37. package/dist/cli/{index-k1ntjzmf.js → index-8fr2wn18.js} +2 -2
  38. package/dist/cli/{index-dh5th4jn.js → index-8hqkrd2j.js} +1 -1
  39. package/dist/cli/{index-6rx1rdaq.js → index-a7rw4g4s.js} +1 -1
  40. package/dist/cli/{index-w6988bbc.js → index-aftapk6j.js} +75 -1
  41. package/dist/cli/{index-j2svfhzk.js → index-axf65x87.js} +1 -1
  42. package/dist/cli/{index-anxs69ad.js → index-bfr392e7.js} +1 -1
  43. package/dist/cli/{index-c4ddtrqg.js → index-bkd3450m.js} +6 -6
  44. package/dist/cli/{index-ajknebrc.js → index-c20gf089.js} +1 -1
  45. package/dist/cli/{index-qzvry1n1.js → index-crjx4sx0.js} +42 -42
  46. package/dist/cli/{index-jre6tm3v.js → index-edm41q4j.js} +1 -1
  47. package/dist/cli/{index-z6xqpmqg.js → index-ee6ydtfe.js} +1 -1
  48. package/dist/cli/{index-p7hdp3rp.js → index-fc1dqzjp.js} +2 -2
  49. package/dist/cli/{index-4gmt79q9.js → index-gerkwyrr.js} +1 -1
  50. package/dist/cli/{index-hdakb4n9.js → index-gr8ppbq3.js} +16 -13
  51. package/dist/cli/{index-f36hy1x4.js → index-hvk3zs62.js} +1 -1
  52. package/dist/cli/{index-5ebgzb5a.js → index-hwj25q9r.js} +78 -53
  53. package/dist/cli/{index-1v6vc90w.js → index-j29nkq5d.js} +5 -5
  54. package/dist/cli/{index-e45htt92.js → index-jx9f4ke1.js} +1 -1
  55. package/dist/cli/{index-7h94rfem.js → index-k5w284js.js} +16 -14
  56. package/dist/cli/{index-58be2gtd.js → index-nph5g4em.js} +3 -3
  57. package/dist/cli/{index-4fwbbad3.js → index-q1r1cfww.js} +46 -17
  58. package/dist/cli/{index-afpkqsdb.js → index-w11whwn3.js} +14 -7
  59. package/dist/cli/{index-0e9jh9c7.js → index-wf12wckd.js} +3 -3
  60. package/dist/cli/{index-ptsqnxwd.js → index-xezfx7ge.js} +21 -11
  61. package/dist/cli/{index-3xyjvx24.js → index-xwkn5hse.js} +11 -9
  62. package/dist/cli/{index-g8wdekzz.js → index-ybcxvv17.js} +2 -2
  63. package/dist/cli/{index-e6n7cemz.js → index-yt25kpvz.js} +12 -8
  64. package/dist/cli/{index-556ja8an.js → index-yzjaj53h.js} +9 -2
  65. package/dist/cli/{index-gn6ybsc4.js → index-zha9bdj9.js} +8 -8
  66. package/dist/cli/index-zpsr8rpc.js +68 -0
  67. package/dist/cli/index.js +40 -40
  68. package/dist/cli/{knowledge-escalator-eq07pcj3.js → knowledge-escalator-3pjed4tq.js} +14 -14
  69. package/dist/cli/{knowledge-events-rv9q9mkm.js → knowledge-events-a5dwkg30.js} +12 -12
  70. package/dist/cli/{knowledge-link-dgvbqjqg.js → knowledge-link-1zykfk1p.js} +3 -3
  71. package/dist/cli/{knowledge-store-cxcr0ttk.js → knowledge-store-h85efsak.js} +4 -4
  72. package/dist/cli/{knowledge-validator-8qtd9ys0.js → knowledge-validator-76qrf1ev.js} +6 -6
  73. package/dist/cli/{model-preflight-3s1c0zpc.js → model-preflight-b3b5pgsc.js} +2 -2
  74. package/dist/cli/{pending-delegations-dp3g8e7k.js → pending-delegations-zgwfqfac.js} +14 -12
  75. package/dist/cli/{pr-subscriptions-3vx06rar.js → pr-subscriptions-fzy3ks1k.js} +16 -12
  76. package/dist/cli/{pr-workflow-gate-bbet0apk.js → pr-workflow-gate-1gtsn7f0.js} +40 -40
  77. package/dist/cli/{runner-0e3bjeev.js → runner-j3acybhs.js} +4 -4
  78. package/dist/cli/{scan-cursor-zwm0xng7.js → scan-cursor-ahwkxa8j.js} +5 -5
  79. package/dist/cli/{schema-ebfxgya0.js → schema-27sedbfk.js} +3 -3
  80. package/dist/cli/{scope-persistence-6c55akfz.js → scope-persistence-q792yfxh.js} +16 -16
  81. package/dist/cli/{skill-generator-mv5jxzsh.js → skill-generator-g8wbjw6v.js} +16 -16
  82. package/dist/cli/{snapshot-coordination-init-n556wa18.js → snapshot-coordination-init-y6spakwm.js} +40 -40
  83. package/dist/cli/{telemetry-a1yvjerj.js → telemetry-9h1z2w9d.js} +1 -1
  84. package/dist/cli/{worktree-collision-ownership-pp4z4z8p.js → worktree-collision-ownership-pmpnftkd.js} +13 -13
  85. package/dist/cli/{worktree-isolation-69hz9dgg.js → worktree-isolation-4053n0px.js} +40 -40
  86. package/dist/commands/pr-monitor-status.d.ts +2 -0
  87. package/dist/commands/registry.d.ts +8 -0
  88. package/dist/commands/report.d.ts +36 -0
  89. package/dist/db/observability-event-store.d.ts +162 -0
  90. package/dist/git/pr.d.ts +27 -27
  91. package/dist/git/safe-ref.d.ts +51 -0
  92. package/dist/hooks/context-capsule-inject.d.ts +3 -0
  93. package/dist/index.d.ts +6 -1
  94. package/dist/index.js +573 -480
  95. package/dist/observability/catalog.d.ts +8 -4
  96. package/dist/sandbox/executor.d.ts +10 -0
  97. package/dist/sandbox/win32/runner-client.d.ts +7 -0
  98. package/dist/services/context-attribution.d.ts +69 -0
  99. package/dist/services/cost-accounting.d.ts +2 -0
  100. package/dist/telemetry.d.ts +10 -2
  101. package/dist/tools/co-change-analyzer.d.ts +7 -0
  102. package/dist/tools/gh-evidence.d.ts +15 -8
  103. package/dist/tools/pkg-audit.d.ts +23 -0
  104. package/dist/utils/gh-executable.d.ts +106 -0
  105. package/dist/utils/merge.d.ts +26 -0
  106. package/opencode-swarm.schema.json +1 -1
  107. package/package.json +1 -1
  108. package/dist/cli/curator-llm-factory-fhbjwar0.js +0 -70
  109. package/dist/cli/guardrail-explain-1nfbtpgg.js +0 -71
  110. package/dist/cli/guardrail-log-nyggdv04.js +0 -23
  111. package/dist/cli/hive-promoter-39xb4tx2.js +0 -85
  112. 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-e6n7cemz.js";
25
- import"./index-p7hdp3rp.js";
26
- import"./index-anxs69ad.js";
27
- import"./index-z6xqpmqg.js";
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-556ja8an.js";
30
- import"./index-jre6tm3v.js";
29
+ import"./index-edm41q4j.js";
31
30
  import"./index-gy0nyfbw.js";
32
- import"./index-5ebgzb5a.js";
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-a0d4fp6r.js";
37
- import"./index-zjygnfay.js";
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-hwz46jj7.js";
7
- import"./index-8d90gzaz.js";
8
- import"./index-f36hy1x4.js";
9
- import"./index-hdakb4n9.js";
10
- import"./index-k1ntjzmf.js";
11
- import"./index-5ythtd9t.js";
12
- import"./index-tqw8w2n5.js";
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-6be5caj8.js";
16
- import"./index-n3pjcks8.js";
17
- import"./index-g8wdekzz.js";
15
+ import"./index-066xxa4q.js";
16
+ import"./index-13egyjgv.js";
17
+ import"./index-ybcxvv17.js";
18
18
  import"./index-70ha9e09.js";
19
- import"./index-dh5th4jn.js";
19
+ import"./index-8hqkrd2j.js";
20
20
  import"./index-9ss2m4rs.js";
21
- import"./index-ptsqnxwd.js";
21
+ import"./index-xezfx7ge.js";
22
22
  import"./index-zsrtt42s.js";
23
- import"./index-7h94rfem.js";
23
+ import"./index-k5w284js.js";
24
24
  import"./index-6chhqq2n.js";
25
- import"./index-8bdk7124.js";
25
+ import"./index-1zqf2pny.js";
26
26
  import"./index-b43rt5ph.js";
27
27
  import"./index-q7sjgr1y.js";
28
- import"./index-e6n7cemz.js";
29
- import"./index-p7hdp3rp.js";
30
- import"./index-afpkqsdb.js";
31
- import"./index-gn6ybsc4.js";
32
- import"./index-anxs69ad.js";
33
- import"./index-z6xqpmqg.js";
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-2k53pfnc.js";
36
- import"./index-ajknebrc.js";
35
+ import"./index-6rff2h8x.js";
36
+ import"./index-c20gf089.js";
37
37
  import"./index-rtry5xyf.js";
38
- import"./index-58be2gtd.js";
38
+ import"./index-nph5g4em.js";
39
39
  import"./index-3qf1vxtb.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-3xyjvx24.js";
42
- import"./index-y1zhpfk8.js";
43
- import"./index-xwbn7c8m.js";
44
- import"./index-556ja8an.js";
45
- import"./index-6m24v15v.js";
46
- import"./index-e45htt92.js";
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-j2svfhzk.js";
51
- import"./index-c4ddtrqg.js";
49
+ import"./index-axf65x87.js";
50
+ import"./index-bkd3450m.js";
52
51
  import"./index-ae75rja9.js";
53
- import"./index-6rx1rdaq.js";
52
+ import"./index-a7rw4g4s.js";
54
53
  import"./index-7qefgq4j.js";
55
- import"./index-jre6tm3v.js";
54
+ import"./index-edm41q4j.js";
56
55
  import"./index-gy0nyfbw.js";
57
- import"./index-5ebgzb5a.js";
56
+ import"./index-hwj25q9r.js";
58
57
  import"./index-7g4c7s5r.js";
59
- import"./index-zycp24b9.js";
58
+ import"./index-52xdezsh.js";
60
59
  import"./index-9e6fdz2h.js";
61
60
  import"./index-4rhhvd1a.js";
62
- import"./index-0e9jh9c7.js";
63
- import"./index-a0d4fp6r.js";
64
- import"./index-zjygnfay.js";
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-4fwbbad3.js";
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-gn6ybsc4.js";
8
+ } from "./index-zha9bdj9.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-2k53pfnc.js";
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-c4ddtrqg.js";
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-tqw8w2n5.js";
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-e6n7cemz.js";
26
+ } from "./index-yt25kpvz.js";
27
27
  import {
28
28
  estimateCharsForTokens,
29
29
  estimateTokens,
30
30
  readSwarmFileAsync,
31
31
  validateSwarmPath
32
- } from "./index-anxs69ad.js";
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-y1zhpfk8.js";
60
+ } from "./index-2y4kargd.js";
61
61
  import {
62
62
  appendCoreEventSync
63
- } from "./index-xwbn7c8m.js";
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-e45htt92.js";
71
+ } from "./index-jx9f4ke1.js";
72
72
  import {
73
73
  DURABILITY_CLASSES,
74
74
  getProjectDb,
75
75
  projectDbExists,
76
76
  withDurabilityClass
77
- } from "./index-w6988bbc.js";
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-jre6tm3v.js";
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-5ebgzb5a.js";
93
+ } from "./index-hwj25q9r.js";
94
94
  import {
95
95
  PlanSchema
96
- } from "./index-zycp24b9.js";
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-4fwbbad3.js";
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(["branch", "-d", trimmedLine], cwd);
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(["branch", "-d", branchName], cwd);
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(["branch", "-d", previousBranch], cwd);
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(["branch", "-d", trimmedLine], cwd);
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 };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  init_merge
4
- } from "./index-zjygnfay.js";
4
+ } from "./index-zpsr8rpc.js";
5
5
  import {
6
6
  __esm
7
7
  } from "./index-a76rekgs.js";
@@ -3,7 +3,7 @@ import {
3
3
  queryHistoricalOutcomes,
4
4
  readKnowledgeEvents,
5
5
  recordKnowledgeEvent
6
- } from "./index-gn6ybsc4.js";
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-c4ddtrqg.js";
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-8qtd9ys0.js");
227
+ const { quarantineEntry } = await import("./knowledge-validator-76qrf1ev.js");
228
228
  let policyConfig;
229
229
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-ebfxgya0.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-1v6vc90w.js");
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 {
@@ -11,7 +11,7 @@ import {
11
11
  assertProjectRoot,
12
12
  atomicWriteFile,
13
13
  withEvidenceLock
14
- } from "./index-jre6tm3v.js";
14
+ } from "./index-edm41q4j.js";
15
15
  import {
16
16
  exports_external,
17
17
  init_zod
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-anxs69ad.js";
4
+ } from "./index-bfr392e7.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
7
  } from "./index-gy0nyfbw.js";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  simpleGlobToRegex
4
- } from "./index-z6xqpmqg.js";
4
+ } from "./index-ee6ydtfe.js";
5
5
  import {
6
6
  bunSpawnSync
7
7
  } from "./index-p612v1mv.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  observeStoreHealth
4
- } from "./index-j2svfhzk.js";
4
+ } from "./index-axf65x87.js";
5
5
  import {
6
6
  telemetry
7
- } from "./index-5ebgzb5a.js";
7
+ } from "./index-hwj25q9r.js";
8
8
  import {
9
9
  init_logger,
10
10
  warn
@@ -2,20 +2,20 @@
2
2
  import {
3
3
  derivePlanId,
4
4
  derivePlanIdentityHash
5
- } from "./index-e45htt92.js";
5
+ } from "./index-jx9f4ke1.js";
6
6
  import {
7
7
  assertProjectRoot,
8
8
  withEvidenceLock
9
- } from "./index-jre6tm3v.js";
9
+ } from "./index-edm41q4j.js";
10
10
  import {
11
11
  emit
12
- } from "./index-5ebgzb5a.js";
12
+ } from "./index-hwj25q9r.js";
13
13
  import {
14
14
  ExecutionProfileSchema,
15
15
  PlanSchema,
16
16
  TaskStatusSchema,
17
17
  init_loader
18
- } from "./index-zycp24b9.js";
18
+ } from "./index-52xdezsh.js";
19
19
  import {
20
20
  criticalWarn,
21
21
  init_logger,