opencode-swarm 7.169.0 → 7.170.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 (71) hide show
  1. package/README.md +1 -0
  2. package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
  3. package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
  4. package/dist/agents/reviewer-directive-compliance.d.ts +23 -7
  5. package/dist/ci/evaluate.d.ts +100 -0
  6. package/dist/ci/index.d.ts +13 -0
  7. package/dist/ci/quality-checks.d.ts +58 -0
  8. package/dist/ci/report.d.ts +21 -0
  9. package/dist/ci/runtime.d.ts +81 -0
  10. package/dist/cli/{capability-probe-faqefhah.js → capability-probe-pdwwz8gs.js} +1 -1
  11. package/dist/cli/{coder-settlement-fd6ba876.js → coder-settlement-g1n2dk0a.js} +3 -3
  12. package/dist/cli/{config-doctor-zeppqwwx.js → config-doctor-7v7hvdgw.js} +2 -2
  13. package/dist/cli/{core-fj1afc31.js → core-mz3rae1q.js} +1 -1
  14. package/dist/cli/{curator-llm-factory-4t773tmz.js → curator-llm-factory-xaetdtgf.js} +20 -20
  15. package/dist/cli/{curator-emftndv0.js → curator-x28dw2mf.js} +20 -20
  16. package/dist/cli/{evidence-summary-service-51b69jc3.js → evidence-summary-service-kd22mp04.js} +7 -7
  17. package/dist/cli/{gate-evidence-53s161wb.js → gate-evidence-9snb217d.js} +2 -2
  18. package/dist/cli/{guardrail-explain-mhx8gt8q.js → guardrail-explain-11zswj2c.js} +21 -21
  19. package/dist/cli/{guardrail-log-xg6hrdsq.js → guardrail-log-ykwrswvw.js} +3 -3
  20. package/dist/cli/{guardrail-reset-fgv5kt5x.js → guardrail-reset-7affkkeq.js} +20 -20
  21. package/dist/cli/{hive-promoter-41zygtgx.js → hive-promoter-sfzrcn03.js} +20 -20
  22. package/dist/cli/{index-83m0y4cj.js → index-0hjtck07.js} +3 -3
  23. package/dist/cli/{index-q1r1cfww.js → index-76qm2c2y.js} +37 -26
  24. package/dist/cli/{index-8x9keek6.js → index-8b2aqj41.js} +28 -22
  25. package/dist/cli/{index-c7kr7tnk.js → index-987ga2vy.js} +3 -3
  26. package/dist/cli/{index-yj24ny5k.js → index-9z0dc1t5.js} +1 -1
  27. package/dist/cli/{index-dd48vt27.js → index-as43fjha.js} +3 -3
  28. package/dist/cli/{index-exf0j569.js → index-bqscvndc.js} +1 -1
  29. package/dist/cli/{index-3zcds757.js → index-bswpngg6.js} +3372 -2500
  30. package/dist/cli/{index-sb1s03y9.js → index-d6q0g0nd.js} +3 -3
  31. package/dist/cli/{index-2znfa537.js → index-ensg0pt6.js} +1 -1
  32. package/dist/cli/{index-sxcfszbe.js → index-g0qsftdd.js} +1 -1
  33. package/dist/cli/{index-3bfzpzsb.js → index-hp729z5v.js} +1 -1
  34. package/dist/cli/{index-1cbjemgh.js → index-hzav6zra.js} +2 -2
  35. package/dist/cli/{index-ksybszed.js → index-knh5z9gb.js} +1 -1
  36. package/dist/cli/{index-5reh1bjz.js → index-krzb4zkx.js} +1 -1
  37. package/dist/cli/{index-76ng6vmq.js → index-q5q42mf3.js} +4 -4
  38. package/dist/cli/{index-0vgs5r39.js → index-qv1y6f8r.js} +3 -3
  39. package/dist/cli/{index-egkc2bpv.js → index-r1yqx3h9.js} +1 -1
  40. package/dist/cli/{index-e4dxf5cr.js → index-rkc1a0ym.js} +20 -20
  41. package/dist/cli/{index-s96dpjsk.js → index-rp0dpvd2.js} +2 -2
  42. package/dist/cli/{index-zapc8vj4.js → index-rwdfk03c.js} +4 -4
  43. package/dist/cli/{index-wwr67xc0.js → index-tz3jzz2t.js} +1 -1
  44. package/dist/cli/{index-55fkkjec.js → index-v5gsvtvs.js} +5 -5
  45. package/dist/cli/{index-nwv3e3kc.js → index-wc34rqj0.js} +1 -1
  46. package/dist/cli/{index-p6xsgk4r.js → index-z970hmyt.js} +2 -2
  47. package/dist/cli/index.js +25 -20
  48. package/dist/cli/{knowledge-escalator-07s44av0.js → knowledge-escalator-s0y3m4sn.js} +6 -6
  49. package/dist/cli/{knowledge-events-j2n1569p.js → knowledge-events-w7vjypwy.js} +4 -4
  50. package/dist/cli/{knowledge-store-85metj89.js → knowledge-store-bc2v557f.js} +1 -1
  51. package/dist/cli/{knowledge-validator-63k1xzcc.js → knowledge-validator-adaamxzg.js} +2 -2
  52. package/dist/cli/{pending-delegations-dckmjymn.js → pending-delegations-fzjr7p7f.js} +2 -2
  53. package/dist/cli/{pr-subscriptions-pyh73me6.js → pr-subscriptions-tfwf461r.js} +1 -1
  54. package/dist/cli/{pr-workflow-gate-k1r4rjw4.js → pr-workflow-gate-heajnnkw.js} +20 -20
  55. package/dist/cli/{scan-cursor-k6egg4n0.js → scan-cursor-512cqk7t.js} +2 -2
  56. package/dist/cli/{schema-vdrtpggt.js → schema-z9kd66wf.js} +1 -1
  57. package/dist/cli/{scope-persistence-h1mmww19.js → scope-persistence-8cpqcwg7.js} +5 -5
  58. package/dist/cli/{skill-generator-pmn6gmvk.js → skill-generator-1efdbkqh.js} +7 -7
  59. package/dist/cli/{snapshot-coordination-init-rspykgd0.js → snapshot-coordination-init-fsf8h4d3.js} +20 -20
  60. package/dist/cli/{worktree-collision-ownership-x84dzzzc.js → worktree-collision-ownership-zdpeepe4.js} +2 -2
  61. package/dist/cli/{worktree-isolation-nw9pakkx.js → worktree-isolation-zswrjstb.js} +20 -20
  62. package/dist/commands/ci.d.ts +40 -0
  63. package/dist/commands/index.d.ts +1 -0
  64. package/dist/commands/registry.d.ts +8 -0
  65. package/dist/hooks/gate-denial-tracker.d.ts +18 -14
  66. package/dist/hooks/phase-complete-directive-gate.d.ts +13 -0
  67. package/dist/hooks/phase-directives.d.ts +31 -2
  68. package/dist/hooks/reviewer-verdict-parser.d.ts +6 -1
  69. package/dist/index.js +449 -439
  70. package/dist/sandbox/macos/sandbox-exec-executor.d.ts +48 -11
  71. package/package.json +1 -1
@@ -1,44 +1,44 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-1cbjemgh.js";
5
- import"./index-3zcds757.js";
4
+ } from "./index-hzav6zra.js";
5
+ import"./index-bswpngg6.js";
6
6
  import"./index-5400m33a.js";
7
7
  import"./index-7h01bkm6.js";
8
- import"./index-5reh1bjz.js";
8
+ import"./index-krzb4zkx.js";
9
9
  import"./index-cgpwjctj.js";
10
- import"./index-egkc2bpv.js";
11
- import"./index-zapc8vj4.js";
10
+ import"./index-r1yqx3h9.js";
11
+ import"./index-rwdfk03c.js";
12
12
  import"./index-xnpjwc4h.js";
13
13
  import"./index-txdagbh7.js";
14
14
  import"./index-9br68j86.js";
15
15
  import"./index-cw912re7.js";
16
- import"./index-c7kr7tnk.js";
17
- import"./index-55fkkjec.js";
18
- import"./index-nwv3e3kc.js";
16
+ import"./index-987ga2vy.js";
17
+ import"./index-v5gsvtvs.js";
18
+ import"./index-wc34rqj0.js";
19
19
  import"./index-fyfbpz4f.js";
20
20
  import"./index-gfbggp8k.js";
21
21
  import"./index-0hgmsyfp.js";
22
22
  import"./index-zsrtt42s.js";
23
- import"./index-sb1s03y9.js";
23
+ import"./index-d6q0g0nd.js";
24
24
  import"./index-fhh02gwx.js";
25
25
  import"./index-nyn01yrz.js";
26
26
  import"./index-b43rt5ph.js";
27
27
  import"./index-q7sjgr1y.js";
28
- import"./index-sxcfszbe.js";
29
- import"./index-wwr67xc0.js";
30
- import"./index-ksybszed.js";
31
- import"./index-0vgs5r39.js";
28
+ import"./index-g0qsftdd.js";
29
+ import"./index-tz3jzz2t.js";
30
+ import"./index-knh5z9gb.js";
31
+ import"./index-qv1y6f8r.js";
32
32
  import"./index-b3pmzbh1.js";
33
33
  import"./index-2s7dvzff.js";
34
- import"./index-2znfa537.js";
34
+ import"./index-ensg0pt6.js";
35
35
  import"./index-bm5xrfnx.js";
36
36
  import"./index-rtry5xyf.js";
37
- import"./index-s96dpjsk.js";
37
+ import"./index-rp0dpvd2.js";
38
38
  import"./index-3qf1vxtb.js";
39
39
  import"./index-n832052r.js";
40
- import"./index-p6xsgk4r.js";
41
- import"./index-83m0y4cj.js";
40
+ import"./index-z970hmyt.js";
41
+ import"./index-0hjtck07.js";
42
42
  import"./index-fgp96k3r.js";
43
43
  import"./index-br3mvbsa.js";
44
44
  import"./index-bernkwgf.js";
@@ -46,7 +46,7 @@ import"./index-dvbf6fpn.js";
46
46
  import"./index-rdm3px0g.js";
47
47
  import"./index-ry16d01s.js";
48
48
  import"./index-5qt9yf5w.js";
49
- import"./index-76ng6vmq.js";
49
+ import"./index-q5q42mf3.js";
50
50
  import"./index-vzm6zre7.js";
51
51
  import"./index-ae75rja9.js";
52
52
  import"./index-9ttqbhvw.js";
@@ -56,15 +56,15 @@ import"./index-nprdr0sm.js";
56
56
  import"./index-nbdmdyke.js";
57
57
  import"./index-1xnse449.js";
58
58
  import"./index-ee6ydtfe.js";
59
- import"./index-3bfzpzsb.js";
59
+ import"./index-hp729z5v.js";
60
60
  import"./index-0mhftbpp.js";
61
61
  import"./index-a1w58b47.js";
62
- import"./index-yj24ny5k.js";
62
+ import"./index-9z0dc1t5.js";
63
63
  import"./index-sxt7fgcw.js";
64
64
  import"./index-bk5tah7q.js";
65
65
  import"./index-bpmtbmy9.js";
66
66
  import"./index-zpsr8rpc.js";
67
- import"./index-q1r1cfww.js";
67
+ import"./index-76qm2c2y.js";
68
68
  import"./index-yzjaj53h.js";
69
69
  import"./index-zgwm4ryv.js";
70
70
  import"./index-a76rekgs.js";
@@ -1,8 +1,8 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailLog
4
- } from "./index-exf0j569.js";
5
- import"./index-5reh1bjz.js";
4
+ } from "./index-bqscvndc.js";
5
+ import"./index-krzb4zkx.js";
6
6
  import"./index-2s7dvzff.js";
7
7
  import"./index-fgp96k3r.js";
8
8
  import"./index-5qt9yf5w.js";
@@ -10,7 +10,7 @@ import"./index-nprdr0sm.js";
10
10
  import"./index-nbdmdyke.js";
11
11
  import"./index-1xnse449.js";
12
12
  import"./index-ee6ydtfe.js";
13
- import"./index-yj24ny5k.js";
13
+ import"./index-9z0dc1t5.js";
14
14
  import"./index-sxt7fgcw.js";
15
15
  import"./index-bk5tah7q.js";
16
16
  import"./index-bpmtbmy9.js";
@@ -3,43 +3,43 @@ import {
3
3
  getAgentSession,
4
4
  getBlockingActionCircuit,
5
5
  resetActionCircuitExternally
6
- } from "./index-3zcds757.js";
6
+ } from "./index-bswpngg6.js";
7
7
  import"./index-5400m33a.js";
8
8
  import"./index-7h01bkm6.js";
9
- import"./index-5reh1bjz.js";
9
+ import"./index-krzb4zkx.js";
10
10
  import"./index-cgpwjctj.js";
11
- import"./index-egkc2bpv.js";
12
- import"./index-zapc8vj4.js";
11
+ import"./index-r1yqx3h9.js";
12
+ import"./index-rwdfk03c.js";
13
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-c7kr7tnk.js";
18
- import"./index-55fkkjec.js";
19
- import"./index-nwv3e3kc.js";
17
+ import"./index-987ga2vy.js";
18
+ import"./index-v5gsvtvs.js";
19
+ import"./index-wc34rqj0.js";
20
20
  import"./index-fyfbpz4f.js";
21
21
  import"./index-gfbggp8k.js";
22
22
  import"./index-0hgmsyfp.js";
23
23
  import"./index-zsrtt42s.js";
24
- import"./index-sb1s03y9.js";
24
+ import"./index-d6q0g0nd.js";
25
25
  import"./index-fhh02gwx.js";
26
26
  import"./index-nyn01yrz.js";
27
27
  import"./index-b43rt5ph.js";
28
28
  import"./index-q7sjgr1y.js";
29
- import"./index-sxcfszbe.js";
30
- import"./index-wwr67xc0.js";
31
- import"./index-ksybszed.js";
32
- import"./index-0vgs5r39.js";
29
+ import"./index-g0qsftdd.js";
30
+ import"./index-tz3jzz2t.js";
31
+ import"./index-knh5z9gb.js";
32
+ import"./index-qv1y6f8r.js";
33
33
  import"./index-b3pmzbh1.js";
34
34
  import"./index-2s7dvzff.js";
35
- import"./index-2znfa537.js";
35
+ import"./index-ensg0pt6.js";
36
36
  import"./index-bm5xrfnx.js";
37
37
  import"./index-rtry5xyf.js";
38
- import"./index-s96dpjsk.js";
38
+ import"./index-rp0dpvd2.js";
39
39
  import"./index-3qf1vxtb.js";
40
40
  import"./index-n832052r.js";
41
- import"./index-p6xsgk4r.js";
42
- import"./index-83m0y4cj.js";
41
+ import"./index-z970hmyt.js";
42
+ import"./index-0hjtck07.js";
43
43
  import"./index-fgp96k3r.js";
44
44
  import"./index-br3mvbsa.js";
45
45
  import"./index-bernkwgf.js";
@@ -47,7 +47,7 @@ import"./index-dvbf6fpn.js";
47
47
  import"./index-rdm3px0g.js";
48
48
  import"./index-ry16d01s.js";
49
49
  import"./index-5qt9yf5w.js";
50
- import"./index-76ng6vmq.js";
50
+ import"./index-q5q42mf3.js";
51
51
  import"./index-vzm6zre7.js";
52
52
  import"./index-ae75rja9.js";
53
53
  import"./index-9ttqbhvw.js";
@@ -57,15 +57,15 @@ import"./index-nprdr0sm.js";
57
57
  import"./index-nbdmdyke.js";
58
58
  import"./index-1xnse449.js";
59
59
  import"./index-ee6ydtfe.js";
60
- import"./index-3bfzpzsb.js";
60
+ import"./index-hp729z5v.js";
61
61
  import"./index-0mhftbpp.js";
62
62
  import"./index-a1w58b47.js";
63
- import"./index-yj24ny5k.js";
63
+ import"./index-9z0dc1t5.js";
64
64
  import"./index-sxt7fgcw.js";
65
65
  import"./index-bk5tah7q.js";
66
66
  import"./index-bpmtbmy9.js";
67
67
  import"./index-zpsr8rpc.js";
68
- import"./index-q1r1cfww.js";
68
+ import"./index-76qm2c2y.js";
69
69
  import"./index-yzjaj53h.js";
70
70
  import"./index-zgwm4ryv.js";
71
71
  import"./index-a76rekgs.js";
@@ -7,43 +7,43 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-3zcds757.js";
10
+ } from "./index-bswpngg6.js";
11
11
  import"./index-5400m33a.js";
12
12
  import"./index-7h01bkm6.js";
13
- import"./index-5reh1bjz.js";
13
+ import"./index-krzb4zkx.js";
14
14
  import"./index-cgpwjctj.js";
15
- import"./index-egkc2bpv.js";
16
- import"./index-zapc8vj4.js";
15
+ import"./index-r1yqx3h9.js";
16
+ import"./index-rwdfk03c.js";
17
17
  import"./index-xnpjwc4h.js";
18
18
  import"./index-txdagbh7.js";
19
19
  import"./index-9br68j86.js";
20
20
  import"./index-cw912re7.js";
21
- import"./index-c7kr7tnk.js";
22
- import"./index-55fkkjec.js";
23
- import"./index-nwv3e3kc.js";
21
+ import"./index-987ga2vy.js";
22
+ import"./index-v5gsvtvs.js";
23
+ import"./index-wc34rqj0.js";
24
24
  import"./index-fyfbpz4f.js";
25
25
  import"./index-gfbggp8k.js";
26
26
  import"./index-0hgmsyfp.js";
27
27
  import"./index-zsrtt42s.js";
28
- import"./index-sb1s03y9.js";
28
+ import"./index-d6q0g0nd.js";
29
29
  import"./index-fhh02gwx.js";
30
30
  import"./index-nyn01yrz.js";
31
31
  import"./index-b43rt5ph.js";
32
32
  import"./index-q7sjgr1y.js";
33
- import"./index-sxcfszbe.js";
34
- import"./index-wwr67xc0.js";
35
- import"./index-ksybszed.js";
36
- import"./index-0vgs5r39.js";
33
+ import"./index-g0qsftdd.js";
34
+ import"./index-tz3jzz2t.js";
35
+ import"./index-knh5z9gb.js";
36
+ import"./index-qv1y6f8r.js";
37
37
  import"./index-b3pmzbh1.js";
38
38
  import"./index-2s7dvzff.js";
39
- import"./index-2znfa537.js";
39
+ import"./index-ensg0pt6.js";
40
40
  import"./index-bm5xrfnx.js";
41
41
  import"./index-rtry5xyf.js";
42
- import"./index-s96dpjsk.js";
42
+ import"./index-rp0dpvd2.js";
43
43
  import"./index-3qf1vxtb.js";
44
44
  import"./index-n832052r.js";
45
- import"./index-p6xsgk4r.js";
46
- import"./index-83m0y4cj.js";
45
+ import"./index-z970hmyt.js";
46
+ import"./index-0hjtck07.js";
47
47
  import"./index-fgp96k3r.js";
48
48
  import"./index-br3mvbsa.js";
49
49
  import"./index-bernkwgf.js";
@@ -53,7 +53,7 @@ import"./index-ry16d01s.js";
53
53
  import"./index-5qt9yf5w.js";
54
54
  import {
55
55
  resolveHiveKnowledgePath
56
- } from "./index-76ng6vmq.js";
56
+ } from "./index-q5q42mf3.js";
57
57
  import"./index-vzm6zre7.js";
58
58
  import"./index-ae75rja9.js";
59
59
  import"./index-9ttqbhvw.js";
@@ -63,15 +63,15 @@ import"./index-nprdr0sm.js";
63
63
  import"./index-nbdmdyke.js";
64
64
  import"./index-1xnse449.js";
65
65
  import"./index-ee6ydtfe.js";
66
- import"./index-3bfzpzsb.js";
66
+ import"./index-hp729z5v.js";
67
67
  import"./index-0mhftbpp.js";
68
68
  import"./index-a1w58b47.js";
69
- import"./index-yj24ny5k.js";
69
+ import"./index-9z0dc1t5.js";
70
70
  import"./index-sxt7fgcw.js";
71
71
  import"./index-bk5tah7q.js";
72
72
  import"./index-bpmtbmy9.js";
73
73
  import"./index-zpsr8rpc.js";
74
- import"./index-q1r1cfww.js";
74
+ import"./index-76qm2c2y.js";
75
75
  import"./index-yzjaj53h.js";
76
76
  import"./index-zgwm4ryv.js";
77
77
  import"./index-a76rekgs.js";
@@ -22,11 +22,11 @@ import {
22
22
  TaskStatusSchema,
23
23
  init_loader,
24
24
  loadPluginConfig
25
- } from "./index-3bfzpzsb.js";
25
+ } from "./index-hp729z5v.js";
26
26
  import {
27
27
  init_package,
28
28
  package_default
29
- } from "./index-yj24ny5k.js";
29
+ } from "./index-9z0dc1t5.js";
30
30
  import {
31
31
  criticalWarn,
32
32
  init_logger,
@@ -2005,4 +2005,4 @@ var _internals = {
2005
2005
  randomUUID: () => crypto.randomUUID()
2006
2006
  };
2007
2007
 
2008
- export { renderPlanningProfileDirective, resolvePlanningProfile, normalizeExecutionProfileForHash, LedgerStaleWriterError, computePlanLedgerHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, clearPlanLedgerForReset, replacePlanLedgerWithRoot, replayFromLedger, peekPlanFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan };
2008
+ export { renderPlanningProfileDirective, resolvePlanningProfile, normalizeExecutionProfileForHash, LedgerStaleWriterError, computePlanLedgerHash, computePlanStructureHash, computeCurrentPlanHash, ledgerExists, getLatestLedgerSeq, readLedgerEvents, initLedger, readPlanEpochIdentity, getOrAdoptPlanEpochUnderLock, appendLedgerEvent, takeSnapshotWithRetry, takeSnapshotEvent, replaceTruncatedLedgerWithRecoveryRoot, clearPlanLedgerForReset, replacePlanLedgerWithRoot, replayFromLedger, peekPlanFromLedger, replayFromLedgerWithStatus, readLedgerEventsWithIntegrity, loadLastApprovedPlan, loadLastPlanCriticApprovedSnapshot };
@@ -47,9 +47,7 @@ function buildProbeProfile(tempDir) {
47
47
  return `(version 1)
48
48
  (allow default)
49
49
  (deny file-write*)
50
- (allow file-write* (subpath "${sbplEscapePath(tempDir)}"))
51
- (setenv SWARM_SANDBOX_PROBE "1")
52
- (unsetenv SWARM_SANDBOX_PROBE)`;
50
+ (allow file-write* (subpath "${sbplEscapePath(tempDir)}"))`;
53
51
  }
54
52
  function probeSandboxExec() {
55
53
  try {
@@ -96,6 +94,32 @@ function resetProbeMemo() {
96
94
  function shellEscape(s) {
97
95
  return s.replace(/'/g, "'\\''");
98
96
  }
97
+ function buildEnvOverridePrefix(envOverrides) {
98
+ if (!envOverrides) {
99
+ return "";
100
+ }
101
+ const unsetKeys = [];
102
+ const exportLines = [];
103
+ for (const [key, value] of Object.entries(envOverrides)) {
104
+ if (!isValidEnvKey(key)) {
105
+ continue;
106
+ }
107
+ if (value === null) {
108
+ unsetKeys.push(key);
109
+ } else {
110
+ exportLines.push(`export ${key}='${shellEscape(value)}'`);
111
+ }
112
+ }
113
+ const parts = [];
114
+ if (unsetKeys.length > 0) {
115
+ parts.push(`unset ${unsetKeys.join(" ")}`);
116
+ }
117
+ parts.push(...exportLines);
118
+ if (parts.length === 0) {
119
+ return "";
120
+ }
121
+ return `${parts.join("; ")}; `;
122
+ }
99
123
  function sbplEscapePath(path2) {
100
124
  const withoutControlChars = path2.split("").filter((ch) => {
101
125
  const cp = ch.codePointAt(0);
@@ -103,27 +127,13 @@ function sbplEscapePath(path2) {
103
127
  }).join("");
104
128
  return withoutControlChars.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
105
129
  }
106
- function buildSandboxProfile(scopePaths, tempDir, envOverrides) {
130
+ function buildSandboxProfile(scopePaths, tempDir) {
107
131
  const rwPaths = [...scopePaths];
108
132
  if (tempDir) {
109
133
  rwPaths.push(tempDir);
110
134
  }
111
135
  const rwAllowLines = rwPaths.map((p) => `(allow file-write* (subpath "${sbplEscapePath(p)}"))`).join(`
112
136
  `);
113
- const envLines = [];
114
- if (envOverrides) {
115
- for (const [key, value] of Object.entries(envOverrides)) {
116
- if (!isValidEnvKey(key)) {
117
- continue;
118
- }
119
- if (value === null) {
120
- envLines.push(`(unsetenv ${key})`);
121
- } else {
122
- const escaped = value.replace(/\\/g, "\\\\").replace(/"/g, "\\\"");
123
- envLines.push(`(setenv ${key} "${escaped}")`);
124
- }
125
- }
126
- }
127
137
  const profile = `(version 1)
128
138
  (allow default)
129
139
  (allow file-read* (subpath "/usr"))
@@ -132,9 +142,7 @@ function buildSandboxProfile(scopePaths, tempDir, envOverrides) {
132
142
  (allow file-read* (subpath "/lib"))
133
143
  (allow file-read* (subpath "/lib64"))
134
144
  (deny file-write*)
135
- ${rwAllowLines}
136
- ${envLines.join(`
137
- `)}`;
145
+ ${rwAllowLines}`;
138
146
  return profile;
139
147
  }
140
148
 
@@ -186,7 +194,7 @@ class MacOSSandboxExecutor {
186
194
  }
187
195
  const temp = tempDir ?? this._tempDir ?? os.tmpdir();
188
196
  const allScopes = [...this._scopePaths, ...scopePaths];
189
- const profile = buildSandboxProfile(allScopes, temp, envOverrides);
197
+ const profile = buildSandboxProfile(allScopes, temp);
190
198
  let profilePath;
191
199
  try {
192
200
  const profileDir = mkdtempSync(path.join(os.tmpdir(), "sandbox-"));
@@ -198,7 +206,8 @@ class MacOSSandboxExecutor {
198
206
  throw new SandboxError("Sandbox not available", "SANDBOX_UNAVAILABLE");
199
207
  }
200
208
  const binary = _internals.resolveSandboxExecBinary();
201
- const escapedCommand = shellEscape(command);
209
+ const envPrefix = buildEnvOverridePrefix(envOverrides);
210
+ const escapedCommand = shellEscape(`${envPrefix}${command}`);
202
211
  const escapedProfilePath = shellEscape(profilePath);
203
212
  return `${binary} -f '${escapedProfilePath}' bash -c '${escapedCommand}'`;
204
213
  }
@@ -208,6 +217,7 @@ class MacOSSandboxExecutor {
208
217
  DYLD_LIBRARY_PATH: null,
209
218
  DYLD_FRAMEWORK_PATH: null,
210
219
  DYLD_ROOT_PATH: null,
220
+ DYLD_FORCE_FLAT_NAMESPACE: null,
211
221
  PATH: "/usr/bin:/bin:/usr/sbin:/sbin"
212
222
  };
213
223
  }
@@ -223,6 +233,7 @@ var init_sandbox_exec_executor = __esm(() => {
223
233
  resetProbeMemo,
224
234
  buildSandboxProfile,
225
235
  buildProbeProfile,
236
+ buildEnvOverridePrefix,
226
237
  resolveSandboxExecBinary,
227
238
  resolveProbeTargetBinary,
228
239
  exists: existsSync,
@@ -1036,7 +1047,7 @@ async function _createExecutor() {
1036
1047
  return null;
1037
1048
  }
1038
1049
  async function _createLinuxExecutor() {
1039
- const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isBubblewrapAvailable } = await import("./capability-probe-faqefhah.js");
1050
+ const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isBubblewrapAvailable } = await import("./capability-probe-pdwwz8gs.js");
1040
1051
  await new SandboxCapabilityProbe2().detect();
1041
1052
  if (!isBubblewrapAvailable()) {
1042
1053
  return null;
@@ -1056,7 +1067,7 @@ async function _createMacOSExecutor() {
1056
1067
  }
1057
1068
  return null;
1058
1069
  }
1059
- const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isSandboxExecAvailable } = await import("./capability-probe-faqefhah.js");
1070
+ const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isSandboxExecAvailable } = await import("./capability-probe-pdwwz8gs.js");
1060
1071
  await new SandboxCapabilityProbe2().detect();
1061
1072
  if (!isSandboxExecAvailable()) {
1062
1073
  return null;
@@ -1069,7 +1080,7 @@ async function _createMacOSExecutor() {
1069
1080
  }
1070
1081
  }
1071
1082
  async function _createWindowsExecutor() {
1072
- const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isWindowsSandboxAvailable } = await import("./capability-probe-faqefhah.js");
1083
+ const { SandboxCapabilityProbe: SandboxCapabilityProbe2, isWindowsSandboxAvailable } = await import("./capability-probe-pdwwz8gs.js");
1073
1084
  await new SandboxCapabilityProbe2().detect();
1074
1085
  if (!isWindowsSandboxAvailable()) {
1075
1086
  return null;
@@ -1,12 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-1cbjemgh.js";
4
+ } from "./index-hzav6zra.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-exf0j569.js";
7
+ } from "./index-bqscvndc.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
+ DEFAULT_CI_DEADLINE_MS,
10
11
  SWARM_COMMAND_TOOL_ALLOWLIST,
11
12
  SWARM_COMMAND_TOOL_COMMANDS,
12
13
  VALID_COMMANDS,
@@ -14,6 +15,7 @@ import {
14
15
  canonicalCommandKey,
15
16
  classifySwarmCommandChatFallbackUse,
16
17
  classifySwarmCommandToolUse,
18
+ createSignalCancellation,
17
19
  executeSwarmCommand,
18
20
  formatCommandNotFound,
19
21
  handleAcknowledgeSpecDriftCommand,
@@ -30,6 +32,7 @@ import {
30
32
  handleBlueprintValidateCommand,
31
33
  handleBrainstormCommand,
32
34
  handleCheckpointCommand,
35
+ handleCiCommand,
33
36
  handleCiSimulateCommand,
34
37
  handleClarifyCommand,
35
38
  handleCloseCommand,
@@ -94,43 +97,43 @@ import {
94
97
  handleWriteRetroCommand,
95
98
  normalizeSwarmCommandInput,
96
99
  resolveCommand
97
- } from "./index-3zcds757.js";
100
+ } from "./index-bswpngg6.js";
98
101
  import"./index-5400m33a.js";
99
102
  import"./index-7h01bkm6.js";
100
- import"./index-5reh1bjz.js";
103
+ import"./index-krzb4zkx.js";
101
104
  import"./index-cgpwjctj.js";
102
- import"./index-egkc2bpv.js";
103
- import"./index-zapc8vj4.js";
105
+ import"./index-r1yqx3h9.js";
106
+ import"./index-rwdfk03c.js";
104
107
  import"./index-xnpjwc4h.js";
105
108
  import"./index-txdagbh7.js";
106
109
  import"./index-9br68j86.js";
107
110
  import"./index-cw912re7.js";
108
- import"./index-c7kr7tnk.js";
109
- import"./index-55fkkjec.js";
110
- import"./index-nwv3e3kc.js";
111
+ import"./index-987ga2vy.js";
112
+ import"./index-v5gsvtvs.js";
113
+ import"./index-wc34rqj0.js";
111
114
  import"./index-fyfbpz4f.js";
112
115
  import"./index-gfbggp8k.js";
113
116
  import"./index-0hgmsyfp.js";
114
117
  import"./index-zsrtt42s.js";
115
- import"./index-sb1s03y9.js";
118
+ import"./index-d6q0g0nd.js";
116
119
  import"./index-fhh02gwx.js";
117
120
  import"./index-nyn01yrz.js";
118
121
  import"./index-b43rt5ph.js";
119
122
  import"./index-q7sjgr1y.js";
120
- import"./index-sxcfszbe.js";
121
- import"./index-wwr67xc0.js";
122
- import"./index-ksybszed.js";
123
- import"./index-0vgs5r39.js";
123
+ import"./index-g0qsftdd.js";
124
+ import"./index-tz3jzz2t.js";
125
+ import"./index-knh5z9gb.js";
126
+ import"./index-qv1y6f8r.js";
124
127
  import"./index-b3pmzbh1.js";
125
128
  import"./index-2s7dvzff.js";
126
- import"./index-2znfa537.js";
129
+ import"./index-ensg0pt6.js";
127
130
  import"./index-bm5xrfnx.js";
128
131
  import"./index-rtry5xyf.js";
129
- import"./index-s96dpjsk.js";
132
+ import"./index-rp0dpvd2.js";
130
133
  import"./index-3qf1vxtb.js";
131
134
  import"./index-n832052r.js";
132
- import"./index-p6xsgk4r.js";
133
- import"./index-83m0y4cj.js";
135
+ import"./index-z970hmyt.js";
136
+ import"./index-0hjtck07.js";
134
137
  import"./index-fgp96k3r.js";
135
138
  import"./index-br3mvbsa.js";
136
139
  import"./index-bernkwgf.js";
@@ -138,7 +141,7 @@ import"./index-dvbf6fpn.js";
138
141
  import"./index-rdm3px0g.js";
139
142
  import"./index-ry16d01s.js";
140
143
  import"./index-5qt9yf5w.js";
141
- import"./index-76ng6vmq.js";
144
+ import"./index-q5q42mf3.js";
142
145
  import"./index-vzm6zre7.js";
143
146
  import"./index-ae75rja9.js";
144
147
  import"./index-9ttqbhvw.js";
@@ -148,13 +151,13 @@ import"./index-nprdr0sm.js";
148
151
  import"./index-nbdmdyke.js";
149
152
  import"./index-1xnse449.js";
150
153
  import"./index-ee6ydtfe.js";
151
- import"./index-3bfzpzsb.js";
154
+ import"./index-hp729z5v.js";
152
155
  import"./index-0mhftbpp.js";
153
156
  import"./index-a1w58b47.js";
154
157
  import {
155
158
  init_schema,
156
159
  stripKnownSwarmPrefix
157
- } from "./index-yj24ny5k.js";
160
+ } from "./index-9z0dc1t5.js";
158
161
  import {
159
162
  AGENT_TOOL_MAP,
160
163
  ORCHESTRATOR_NAME,
@@ -163,7 +166,7 @@ import {
163
166
  import"./index-bk5tah7q.js";
164
167
  import"./index-bpmtbmy9.js";
165
168
  import"./index-zpsr8rpc.js";
166
- import"./index-q1r1cfww.js";
169
+ import"./index-76qm2c2y.js";
167
170
  import"./index-yzjaj53h.js";
168
171
  import"./index-zgwm4ryv.js";
169
172
  import"./index-a76rekgs.js";
@@ -490,6 +493,7 @@ export {
490
493
  handleCloseCommand,
491
494
  handleClarifyCommand,
492
495
  handleCiSimulateCommand,
496
+ handleCiCommand,
493
497
  handleCheckpointCommand,
494
498
  handleBrainstormCommand,
495
499
  handleBlueprintValidateCommand,
@@ -507,6 +511,7 @@ export {
507
511
  formatCommandNotFound,
508
512
  executeSwarmCommand,
509
513
  createSwarmCommandHandler,
514
+ createSignalCancellation,
510
515
  classifySwarmCommandToolUse,
511
516
  classifySwarmCommandChatFallbackUse,
512
517
  buildHelpText,
@@ -514,6 +519,7 @@ export {
514
519
  VALID_COMMANDS,
515
520
  SWARM_COMMAND_TOOL_COMMANDS,
516
521
  SWARM_COMMAND_TOOL_ALLOWLIST,
522
+ DEFAULT_CI_DEADLINE_MS,
517
523
  COMMAND_REGISTRY,
518
524
  COMMAND_NAME_SET,
519
525
  COMMAND_NAMES
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-0vgs5r39.js";
8
+ } from "./index-qv1y6f8r.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-2znfa537.js";
12
+ } from "./index-ensg0pt6.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-76ng6vmq.js";
19
+ } from "./index-q5q42mf3.js";
20
20
  import {
21
21
  appendCappedJsonl,
22
22
  resolveRetentionCap
@@ -21,7 +21,7 @@ var package_default;
21
21
  var init_package = __esm(() => {
22
22
  package_default = {
23
23
  name: "opencode-swarm",
24
- version: "7.169.0",
24
+ version: "7.170.1",
25
25
  description: "Architect-centric agentic swarm plugin for OpenCode - hub-and-spoke orchestration with SME consultation, code generation, and QA review",
26
26
  main: "dist/index.js",
27
27
  types: "dist/index.d.ts",
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  _internals,
4
4
  resolveWorktreeIsolationConfig
5
- } from "./index-s96dpjsk.js";
5
+ } from "./index-rp0dpvd2.js";
6
6
  import {
7
7
  ApprovalEvidenceSchema,
8
8
  BaseEvidenceSchema,
@@ -44,7 +44,7 @@ import {
44
44
  loadPluginConfigWithMeta,
45
45
  loadPluginConfigWithMetaAsync,
46
46
  resetConfigAdvisoryDedup
47
- } from "./index-3bfzpzsb.js";
47
+ } from "./index-hp729z5v.js";
48
48
  import"./index-0mhftbpp.js";
49
49
  import"./index-a1w58b47.js";
50
50
  import {
@@ -70,7 +70,7 @@ import {
70
70
  TurboConfigSchema,
71
71
  WorktreeIsolationConfigSchema,
72
72
  resolveAutoReviewConfig
73
- } from "./index-yj24ny5k.js";
73
+ } from "./index-9z0dc1t5.js";
74
74
  import {
75
75
  ALL_AGENT_NAMES,
76
76
  ALL_SUBAGENT_NAMES,
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-5reh1bjz.js";
7
+ } from "./index-krzb4zkx.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([