opencode-swarm 7.164.12 → 7.164.13

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 (97) hide show
  1. package/.opencode/skills/loop/SKILL.md +1 -1
  2. package/.opencode/skills/{plan → swarm-plan}/SKILL.md +1 -1
  3. package/dist/cli/{coder-settlement-yh1q5fr3.js → coder-settlement-em2fgg4p.js} +11 -11
  4. package/dist/cli/{config-doctor-bd4yzmh7.js → config-doctor-1m4mrybp.js} +3 -3
  5. package/dist/cli/{core-y0s1vmyc.js → core-zbzdffha.js} +2 -2
  6. package/dist/cli/{curation-policy-gs1qakn7.js → curation-policy-bqpmry2n.js} +5 -5
  7. package/dist/cli/{curator-drift-1sg9yk2m.js → curator-drift-hbc3w5zj.js} +4 -4
  8. package/dist/cli/curator-llm-factory-j76c96t7.js +70 -0
  9. package/dist/cli/{curator-brqack0j.js → curator-tn3x5j02.js} +36 -36
  10. package/dist/cli/{evidence-summary-service-nqbcvp30.js → evidence-summary-service-7cn9z4sn.js} +16 -16
  11. package/dist/cli/{gate-evidence-9stdtpej.js → gate-evidence-deyzt3hz.js} +7 -7
  12. package/dist/cli/guardrail-explain-4k2pqj46.js +71 -0
  13. package/dist/cli/{guardrail-log-sf39x00b.js → guardrail-log-cnbv6vry.js} +8 -8
  14. package/dist/cli/{guardrail-reset-9wr6a60s.js → guardrail-reset-xhh61cax.js} +36 -36
  15. package/dist/cli/{hive-promoter-bqtj8261.js → hive-promoter-1m8zpz4d.js} +36 -36
  16. package/dist/cli/{index-vw66q1rw.js → index-0mwjamha.js} +1 -1
  17. package/dist/cli/{index-d7j3n5ra.js → index-3c0z1jnc.js} +41 -39
  18. package/dist/cli/{index-wasdrhev.js → index-4fhcbe14.js} +4 -4
  19. package/dist/cli/{index-r2p0pgst.js → index-5ebgzb5a.js} +3 -3
  20. package/dist/cli/{index-ebce775n.js → index-5h60rtaa.js} +2 -2
  21. package/dist/cli/{index-yvqg6kn5.js → index-6m24v15v.js} +2 -2
  22. package/dist/cli/{index-sphahrmq.js → index-6rx1rdaq.js} +1 -1
  23. package/dist/cli/{index-ad9064j9.js → index-74514zkh.js} +4 -4
  24. package/dist/cli/{index-hb7bh4r2.js → index-7f2r3ysr.js} +30 -6
  25. package/dist/cli/{index-hg09xemc.js → index-7z9zqxqt.js} +4 -4
  26. package/dist/cli/{index-xxfk62zd.js → index-8bdk7124.js} +2 -2
  27. package/dist/cli/{index-50j914b5.js → index-a0d4fp6r.js} +29 -7
  28. package/dist/cli/{index-4mjmnysc.js → index-ajknebrc.js} +1 -1
  29. package/dist/cli/{index-qqq04n70.js → index-anxs69ad.js} +1 -1
  30. package/dist/cli/{index-cgewrpw5.js → index-asey3tb3.js} +4 -3
  31. package/dist/cli/{index-03enxdaq.js → index-bvkd7at6.js} +1 -1
  32. package/dist/cli/{index-5wc5pbzc.js → index-c98rjgjq.js} +682 -349
  33. package/dist/cli/{index-qgajv9rd.js → index-d224mhr9.js} +3 -3
  34. package/dist/cli/{index-ztm0q26v.js → index-dh5th4jn.js} +1 -1
  35. package/dist/cli/{index-c45662wc.js → index-e45htt92.js} +1 -1
  36. package/dist/cli/{index-hvz4ad2t.js → index-f36hy1x4.js} +1 -1
  37. package/dist/cli/{index-m8xrbdmn.js → index-f8jdar6q.js} +2 -2
  38. package/dist/cli/{index-r69gzes2.js → index-fnyw5rzg.js} +7 -7
  39. package/dist/cli/{index-kxv193aq.js → index-g11h1qpk.js} +5 -5
  40. package/dist/cli/{index-40twgsyh.js → index-g9weyhq6.js} +2 -2
  41. package/dist/cli/{index-888pq4xx.js → index-grn6tkbt.js} +7 -7
  42. package/dist/cli/{index-ewv8qa8q.js → index-gy0nyfbw.js} +2 -2
  43. package/dist/cli/{index-8vw2pjgr.js → index-hhzzyjm3.js} +6 -6
  44. package/dist/cli/{index-eed0gkv6.js → index-j2svfhzk.js} +2 -2
  45. package/dist/cli/{index-2bhz5k91.js → index-jre6tm3v.js} +2 -2
  46. package/dist/cli/{index-k0s8n6m5.js → index-mpf1tvwf.js} +11 -11
  47. package/dist/cli/{index-4vb56w2k.js → index-ndjjvxzz.js} +4 -4
  48. package/dist/cli/{index-d3mpxsmy.js → index-ptsqnxwd.js} +7 -7
  49. package/dist/cli/{index-0byep4pe.js → index-qtxevgdx.js} +8 -8
  50. package/dist/cli/{index-wknpkfm8.js → index-s3k7xbqd.js} +7 -7
  51. package/dist/cli/{index-x39hjdf1.js → index-tqw8w2n5.js} +1 -1
  52. package/dist/cli/{index-es64amqt.js → index-w6988bbc.js} +1 -1
  53. package/dist/cli/{index-mee9maf5.js → index-xwbn7c8m.js} +2 -2
  54. package/dist/cli/{index-3fnym6ac.js → index-y5hfk7ya.js} +4 -4
  55. package/dist/cli/{index-b25t91a3.js → index-zb6gdym8.js} +2 -2
  56. package/dist/cli/index.js +146 -67
  57. package/dist/cli/{knowledge-escalator-01vva51d.js → knowledge-escalator-3fax9y3s.js} +13 -13
  58. package/dist/cli/{knowledge-events-dpfwh1hs.js → knowledge-events-9cpdyhmb.js} +11 -11
  59. package/dist/cli/{knowledge-link-2rvp966j.js → knowledge-link-dgvbqjqg.js} +4 -4
  60. package/dist/cli/{knowledge-store-aw58ae7b.js → knowledge-store-y35rka0p.js} +5 -5
  61. package/dist/cli/{knowledge-validator-yhd31ryf.js → knowledge-validator-fd761gpx.js} +7 -7
  62. package/dist/cli/{model-preflight-288nsgpw.js → model-preflight-3s1c0zpc.js} +1 -1
  63. package/dist/cli/{pending-delegations-fjetcz8e.js → pending-delegations-t3y19j3n.js} +11 -11
  64. package/dist/cli/{pr-subscriptions-cwwtfs8w.js → pr-subscriptions-00zp69mt.js} +11 -11
  65. package/dist/cli/{pr-workflow-gate-5xwtg1k2.js → pr-workflow-gate-2h0j8c92.js} +36 -36
  66. package/dist/cli/{runner-mb51twxt.js → runner-0e3bjeev.js} +5 -5
  67. package/dist/cli/{scan-cursor-j11qwf0v.js → scan-cursor-wppe2gxw.js} +6 -6
  68. package/dist/cli/{schema-0xp3bde3.js → schema-sec49ppy.js} +2 -2
  69. package/dist/cli/{scope-persistence-brrk806y.js → scope-persistence-59eyqaz4.js} +15 -15
  70. package/dist/cli/{skill-generator-j8qzmet9.js → skill-generator-56rbmpj7.js} +15 -15
  71. package/dist/cli/{snapshot-coordination-init-h0xmtftq.js → snapshot-coordination-init-dnkdc7gx.js} +36 -36
  72. package/dist/cli/{telemetry-m84ap0pp.js → telemetry-a1yvjerj.js} +1 -1
  73. package/dist/cli/{worktree-collision-ownership-j9zykj18.js → worktree-collision-ownership-fj9n4mhk.js} +12 -12
  74. package/dist/cli/{worktree-isolation-jd39xz6h.js → worktree-isolation-vd1s86ya.js} +36 -36
  75. package/dist/commands/benchmark.d.ts +5 -1
  76. package/dist/commands/registry.d.ts +34 -43
  77. package/dist/commands/turbo.d.ts +1 -1
  78. package/dist/config/bundled-skills.d.ts +4 -3
  79. package/dist/config/constants.d.ts +13 -0
  80. package/dist/hooks/extractors.d.ts +9 -0
  81. package/dist/hooks/non-architect-advisory.d.ts +18 -0
  82. package/dist/hooks/repo-graph-injection.d.ts +16 -0
  83. package/dist/index.js +73 -71
  84. package/dist/services/decision-drift-analyzer.d.ts +7 -0
  85. package/dist/services/handoff-service.d.ts +10 -0
  86. package/dist/services/status-service.d.ts +27 -0
  87. package/dist/state.d.ts +8 -0
  88. package/dist/tools/repo-graph/builder.d.ts +1 -25
  89. package/dist/tools/repo-graph/cache.d.ts +5 -1
  90. package/dist/tools/repo-graph/fallback-scanner.d.ts +71 -0
  91. package/dist/tools/repo-graph/indexed-storage.d.ts +11 -0
  92. package/dist/tools/repo-graph/storage.d.ts +7 -0
  93. package/dist/utils/context-decisions.d.ts +77 -0
  94. package/dist/utils/sanitize-display.d.ts +7 -0
  95. package/package.json +3 -2
  96. package/dist/cli/curator-llm-factory-dtsjc3zf.js +0 -70
  97. package/dist/cli/guardrail-explain-3ff1z3fm.js +0 -71
@@ -7,66 +7,66 @@ import {
7
7
  isHiveEligible,
8
8
  promoteFromSwarm,
9
9
  promoteToHive
10
- } from "./index-5wc5pbzc.js";
10
+ } from "./index-c98rjgjq.js";
11
11
  import"./index-8d90gzaz.js";
12
- import"./index-hvz4ad2t.js";
13
- import"./index-wasdrhev.js";
14
- import"./index-b25t91a3.js";
15
- import"./index-k0s8n6m5.js";
16
- import"./index-x39hjdf1.js";
12
+ import"./index-f36hy1x4.js";
13
+ import"./index-4fhcbe14.js";
14
+ import"./index-zb6gdym8.js";
15
+ import"./index-mpf1tvwf.js";
16
+ import"./index-tqw8w2n5.js";
17
17
  import"./index-txdagbh7.js";
18
18
  import"./index-cw912re7.js";
19
- import"./index-hb7bh4r2.js";
20
- import"./index-kxv193aq.js";
21
- import"./index-40twgsyh.js";
19
+ import"./index-7f2r3ysr.js";
20
+ import"./index-g11h1qpk.js";
21
+ import"./index-g9weyhq6.js";
22
22
  import"./index-70ha9e09.js";
23
- import"./index-ztm0q26v.js";
23
+ import"./index-dh5th4jn.js";
24
24
  import"./index-9ss2m4rs.js";
25
- import"./index-d3mpxsmy.js";
25
+ import"./index-ptsqnxwd.js";
26
26
  import"./index-zsrtt42s.js";
27
- import"./index-r69gzes2.js";
27
+ import"./index-fnyw5rzg.js";
28
28
  import"./index-6chhqq2n.js";
29
- import"./index-xxfk62zd.js";
29
+ import"./index-8bdk7124.js";
30
30
  import"./index-b43rt5ph.js";
31
31
  import"./index-q7sjgr1y.js";
32
- import"./index-ad9064j9.js";
33
- import"./index-ebce775n.js";
34
- import"./index-8vw2pjgr.js";
35
- import"./index-0byep4pe.js";
36
- import"./index-qqq04n70.js";
32
+ import"./index-74514zkh.js";
33
+ import"./index-5h60rtaa.js";
34
+ import"./index-hhzzyjm3.js";
35
+ import"./index-qtxevgdx.js";
36
+ import"./index-anxs69ad.js";
37
37
  import"./index-z6xqpmqg.js";
38
38
  import"./index-p612v1mv.js";
39
- import"./index-hg09xemc.js";
40
- import"./index-4mjmnysc.js";
39
+ import"./index-7z9zqxqt.js";
40
+ import"./index-ajknebrc.js";
41
41
  import"./index-rtry5xyf.js";
42
- import"./index-qgajv9rd.js";
42
+ import"./index-d224mhr9.js";
43
43
  import"./index-3qf1vxtb.js";
44
44
  import"./index-n832052r.js";
45
- import"./index-wknpkfm8.js";
46
- import"./index-4vb56w2k.js";
47
- import"./index-mee9maf5.js";
45
+ import"./index-s3k7xbqd.js";
46
+ import"./index-ndjjvxzz.js";
47
+ import"./index-xwbn7c8m.js";
48
48
  import"./index-556ja8an.js";
49
- import"./index-yvqg6kn5.js";
50
- import"./index-c45662wc.js";
51
- import"./index-es64amqt.js";
49
+ import"./index-6m24v15v.js";
50
+ import"./index-e45htt92.js";
51
+ import"./index-w6988bbc.js";
52
52
  import"./index-ry16d01s.js";
53
53
  import"./index-n4fzmqz8.js";
54
- import"./index-eed0gkv6.js";
54
+ import"./index-j2svfhzk.js";
55
55
  import {
56
56
  resolveHiveKnowledgePath
57
- } from "./index-888pq4xx.js";
57
+ } from "./index-grn6tkbt.js";
58
58
  import"./index-ae75rja9.js";
59
- import"./index-sphahrmq.js";
59
+ import"./index-6rx1rdaq.js";
60
60
  import"./index-7qefgq4j.js";
61
- import"./index-2bhz5k91.js";
62
- import"./index-ewv8qa8q.js";
63
- import"./index-r2p0pgst.js";
61
+ import"./index-jre6tm3v.js";
62
+ import"./index-gy0nyfbw.js";
63
+ import"./index-5ebgzb5a.js";
64
64
  import"./index-7g4c7s5r.js";
65
- import"./index-vw66q1rw.js";
65
+ import"./index-0mwjamha.js";
66
66
  import"./index-9e6fdz2h.js";
67
67
  import"./index-4rhhvd1a.js";
68
- import"./index-cgewrpw5.js";
69
- import"./index-50j914b5.js";
68
+ import"./index-asey3tb3.js";
69
+ import"./index-a0d4fp6r.js";
70
70
  import"./index-zjygnfay.js";
71
71
  import"./index-bk5tah7q.js";
72
72
  import"./index-bpmtbmy9.js";
@@ -14,7 +14,7 @@ import {
14
14
  PluginConfigSchema,
15
15
  init_schema,
16
16
  resolveExternalSkillsConfig
17
- } from "./index-cgewrpw5.js";
17
+ } from "./index-asey3tb3.js";
18
18
  import {
19
19
  MAX_MERGE_DEPTH,
20
20
  deepMerge,
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-m8xrbdmn.js";
4
+ } from "./index-f8jdar6q.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-03enxdaq.js";
7
+ } from "./index-bvkd7at6.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  SWARM_COMMAND_TOOL_ALLOWLIST,
@@ -94,71 +94,71 @@ import {
94
94
  handleWriteRetroCommand,
95
95
  normalizeSwarmCommandInput,
96
96
  resolveCommand
97
- } from "./index-5wc5pbzc.js";
97
+ } from "./index-c98rjgjq.js";
98
98
  import"./index-8d90gzaz.js";
99
- import"./index-hvz4ad2t.js";
100
- import"./index-wasdrhev.js";
101
- import"./index-b25t91a3.js";
102
- import"./index-k0s8n6m5.js";
103
- import"./index-x39hjdf1.js";
99
+ import"./index-f36hy1x4.js";
100
+ import"./index-4fhcbe14.js";
101
+ import"./index-zb6gdym8.js";
102
+ import"./index-mpf1tvwf.js";
103
+ import"./index-tqw8w2n5.js";
104
104
  import"./index-txdagbh7.js";
105
105
  import"./index-cw912re7.js";
106
- import"./index-hb7bh4r2.js";
107
- import"./index-kxv193aq.js";
108
- import"./index-40twgsyh.js";
106
+ import"./index-7f2r3ysr.js";
107
+ import"./index-g11h1qpk.js";
108
+ import"./index-g9weyhq6.js";
109
109
  import"./index-70ha9e09.js";
110
- import"./index-ztm0q26v.js";
110
+ import"./index-dh5th4jn.js";
111
111
  import"./index-9ss2m4rs.js";
112
- import"./index-d3mpxsmy.js";
112
+ import"./index-ptsqnxwd.js";
113
113
  import"./index-zsrtt42s.js";
114
- import"./index-r69gzes2.js";
114
+ import"./index-fnyw5rzg.js";
115
115
  import"./index-6chhqq2n.js";
116
- import"./index-xxfk62zd.js";
116
+ import"./index-8bdk7124.js";
117
117
  import"./index-b43rt5ph.js";
118
118
  import"./index-q7sjgr1y.js";
119
- import"./index-ad9064j9.js";
120
- import"./index-ebce775n.js";
121
- import"./index-8vw2pjgr.js";
122
- import"./index-0byep4pe.js";
123
- import"./index-qqq04n70.js";
119
+ import"./index-74514zkh.js";
120
+ import"./index-5h60rtaa.js";
121
+ import"./index-hhzzyjm3.js";
122
+ import"./index-qtxevgdx.js";
123
+ import"./index-anxs69ad.js";
124
124
  import"./index-z6xqpmqg.js";
125
125
  import"./index-p612v1mv.js";
126
- import"./index-hg09xemc.js";
127
- import"./index-4mjmnysc.js";
126
+ import"./index-7z9zqxqt.js";
127
+ import"./index-ajknebrc.js";
128
128
  import"./index-rtry5xyf.js";
129
- import"./index-qgajv9rd.js";
129
+ import"./index-d224mhr9.js";
130
130
  import"./index-3qf1vxtb.js";
131
131
  import"./index-n832052r.js";
132
- import"./index-wknpkfm8.js";
133
- import"./index-4vb56w2k.js";
134
- import"./index-mee9maf5.js";
132
+ import"./index-s3k7xbqd.js";
133
+ import"./index-ndjjvxzz.js";
134
+ import"./index-xwbn7c8m.js";
135
135
  import"./index-556ja8an.js";
136
- import"./index-yvqg6kn5.js";
137
- import"./index-c45662wc.js";
138
- import"./index-es64amqt.js";
136
+ import"./index-6m24v15v.js";
137
+ import"./index-e45htt92.js";
138
+ import"./index-w6988bbc.js";
139
139
  import"./index-ry16d01s.js";
140
140
  import"./index-n4fzmqz8.js";
141
- import"./index-eed0gkv6.js";
142
- import"./index-888pq4xx.js";
141
+ import"./index-j2svfhzk.js";
142
+ import"./index-grn6tkbt.js";
143
143
  import"./index-ae75rja9.js";
144
- import"./index-sphahrmq.js";
144
+ import"./index-6rx1rdaq.js";
145
145
  import"./index-7qefgq4j.js";
146
- import"./index-2bhz5k91.js";
147
- import"./index-ewv8qa8q.js";
148
- import"./index-r2p0pgst.js";
146
+ import"./index-jre6tm3v.js";
147
+ import"./index-gy0nyfbw.js";
148
+ import"./index-5ebgzb5a.js";
149
149
  import"./index-7g4c7s5r.js";
150
- import"./index-vw66q1rw.js";
150
+ import"./index-0mwjamha.js";
151
151
  import"./index-9e6fdz2h.js";
152
152
  import"./index-4rhhvd1a.js";
153
153
  import {
154
154
  init_schema,
155
155
  stripKnownSwarmPrefix
156
- } from "./index-cgewrpw5.js";
156
+ } from "./index-asey3tb3.js";
157
157
  import {
158
158
  AGENT_TOOL_MAP,
159
159
  ORCHESTRATOR_NAME,
160
160
  init_constants
161
- } from "./index-50j914b5.js";
161
+ } from "./index-a0d4fp6r.js";
162
162
  import"./index-zjygnfay.js";
163
163
  import"./index-bk5tah7q.js";
164
164
  import"./index-bpmtbmy9.js";
@@ -332,7 +332,8 @@ async function buildSwarmCommandPrompt(args) {
332
332
  return routeToSwarmCommandTool({
333
333
  command: canonicalKey,
334
334
  args: resolved.remainingArgs,
335
- original: `/swarm ${tokens.join(" ")}`.trim()
335
+ original: `/swarm ${tokens.join(" ")}`.trim(),
336
+ warning: typedResolved.warning
336
337
  });
337
338
  }
338
339
  if (canUseTool && isV1ToolCommand && !policy.allowed) {
@@ -413,6 +414,7 @@ function formatCanonicalPromptFallback(args) {
413
414
  function routeToSwarmCommandTool(args) {
414
415
  return [
415
416
  `The user typed \`${args.original}\`.`,
417
+ ...args.warning ? [args.warning] : [],
416
418
  "Call the `swarm_command` tool exactly once with:",
417
419
  JSON.stringify({ command: args.command, args: args.args }, null, 2),
418
420
  "After the tool returns, show the tool output verbatim and add no extra swarm state."
@@ -10,17 +10,17 @@ import {
10
10
  } from "./index-556ja8an.js";
11
11
  import {
12
12
  observeStoreHealth
13
- } from "./index-eed0gkv6.js";
13
+ } from "./index-j2svfhzk.js";
14
14
  import {
15
15
  telemetry
16
- } from "./index-r2p0pgst.js";
16
+ } from "./index-5ebgzb5a.js";
17
17
  import {
18
18
  init_schema,
19
19
  stripKnownSwarmPrefix
20
- } from "./index-cgewrpw5.js";
20
+ } from "./index-asey3tb3.js";
21
21
  import {
22
22
  init_constants
23
- } from "./index-50j914b5.js";
23
+ } from "./index-a0d4fp6r.js";
24
24
  import {
25
25
  init_logger,
26
26
  warn
@@ -217,7 +217,7 @@ var CATALOG_SOURCE = [
217
217
  category: "delegation",
218
218
  severity: "info",
219
219
  privacyClass: "pseudonymous",
220
- producer: "src/index.ts:656",
220
+ producer: "src/index.ts:657",
221
221
  consumers: CONSUMER_COST_CORRECTION,
222
222
  retentionOwnerIssue: ISSUE_COST_RETENTION,
223
223
  requiredWorkflowIds: REQUIRE_SESSION_AND_TASK,
@@ -230,7 +230,7 @@ var CATALOG_SOURCE = [
230
230
  category: "delegation",
231
231
  severity: "info",
232
232
  privacyClass: "pseudonymous",
233
- producer: "src/index.ts:1594",
233
+ producer: "src/index.ts:1595",
234
234
  consumers: NO_CONSUMERS,
235
235
  futureOwnerIssue: ISSUE_SINK,
236
236
  retentionOwnerIssue: ISSUE_COST_RETENTION,
@@ -244,7 +244,7 @@ var CATALOG_SOURCE = [
244
244
  category: "delegation",
245
245
  severity: "notice",
246
246
  privacyClass: "pseudonymous",
247
- producer: "src/index.ts:1614",
247
+ producer: "src/index.ts:1615",
248
248
  consumers: CONSUMER_COST_JOIN,
249
249
  retentionOwnerIssue: ISSUE_COST_RETENTION,
250
250
  requiredWorkflowIds: REQUIRE_SESSION,
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  SWARM_WORKTREE_DIR_NAME,
15
15
  init_constants
16
- } from "./index-50j914b5.js";
16
+ } from "./index-a0d4fp6r.js";
17
17
  import {
18
18
  log
19
19
  } from "./index-zgwm4ryv.js";
@@ -92,7 +92,7 @@ var _internals = {
92
92
  symlinkSync: fs.symlinkSync
93
93
  },
94
94
  writeScopeToDisk: async (directory, taskId, files) => {
95
- const { writeScopeToDisk: realWrite } = await import("./scope-persistence-brrk806y.js");
95
+ const { writeScopeToDisk: realWrite } = await import("./scope-persistence-59eyqaz4.js");
96
96
  return realWrite(directory, taskId, files);
97
97
  },
98
98
  writeLaneProfileToDisk: async (_worktreePath, _laneIndex, _envOverrides) => {
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  derivePlanId,
4
4
  derivePlanIdentityHash
5
- } from "./index-c45662wc.js";
5
+ } from "./index-e45htt92.js";
6
6
  import {
7
7
  DURABILITY_CLASSES,
8
8
  getProjectDb,
9
9
  projectDbExists,
10
10
  withImmediateTransaction
11
- } from "./index-es64amqt.js";
11
+ } from "./index-w6988bbc.js";
12
12
  import {
13
13
  init_logger,
14
14
  warn
@@ -4,7 +4,7 @@ import {
4
4
  } from "./index-7qefgq4j.js";
5
5
  import {
6
6
  atomicWriteFile
7
- } from "./index-2bhz5k91.js";
7
+ } from "./index-jre6tm3v.js";
8
8
  import {
9
9
  init_logger,
10
10
  warn
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  autoCommitDirty,
4
4
  cleanUntrackedFiles
5
- } from "./index-ebce775n.js";
5
+ } from "./index-5h60rtaa.js";
6
6
  import {
7
7
  validateSwarmPath
8
- } from "./index-qqq04n70.js";
8
+ } from "./index-anxs69ad.js";
9
9
  import {
10
10
  bunSpawn,
11
11
  classifySpawnFailure
@@ -19,10 +19,10 @@ import {
19
19
  atomicWriteFile,
20
20
  taskEvidencePath,
21
21
  withTaskEvidenceLock
22
- } from "./index-2bhz5k91.js";
22
+ } from "./index-jre6tm3v.js";
23
23
  import {
24
24
  telemetry
25
- } from "./index-r2p0pgst.js";
25
+ } from "./index-5ebgzb5a.js";
26
26
  import {
27
27
  init_git_executable,
28
28
  resolveGitExecutable
@@ -5,25 +5,25 @@ import {
5
5
  import {
6
6
  effectiveRetrievalOutcomes,
7
7
  readAuthoritativeKnowledgeCounterRollups
8
- } from "./index-0byep4pe.js";
8
+ } from "./index-qtxevgdx.js";
9
9
  import {
10
10
  ALLOWED_SKILL_PATH_PREFIXES,
11
11
  validateSkillPath
12
- } from "./index-hg09xemc.js";
12
+ } from "./index-7z9zqxqt.js";
13
13
  import {
14
14
  computeOutcomeSignal,
15
15
  readKnowledge,
16
16
  resolveHiveKnowledgePath,
17
17
  resolveSwarmKnowledgePath,
18
18
  transactKnowledge
19
- } from "./index-888pq4xx.js";
19
+ } from "./index-grn6tkbt.js";
20
20
  import {
21
21
  canonicalRootKeyFresh
22
22
  } from "./index-7qefgq4j.js";
23
23
  import {
24
24
  atomicWriteFileAnyRoot,
25
25
  atomicWriteSwarmFile
26
- } from "./index-ewv8qa8q.js";
26
+ } from "./index-gy0nyfbw.js";
27
27
  import {
28
28
  advisoryWarn,
29
29
  init_warning_buffer
@@ -73,7 +73,7 @@ var BUNDLED_PROJECT_SKILLS = [
73
73
  "swarm-pr-subscribe",
74
74
  "swarm-ci-monitor",
75
75
  "issue-ingest",
76
- "plan",
76
+ "swarm-plan",
77
77
  "critic-gate",
78
78
  "execute",
79
79
  "phase-wrap",
@@ -95,7 +95,10 @@ var BUNDLED_PROJECT_SKILLS = [
95
95
  "orchestrating-subagents",
96
96
  "durable-session-state"
97
97
  ];
98
- var RETIRED_BUNDLED_PROJECT_SKILLS = ["resume"];
98
+ var RETIRED_BUNDLED_PROJECT_SKILLS = [
99
+ "resume",
100
+ "plan"
101
+ ];
99
102
  var BUNDLED_PROJECT_SKILL_ROOT = ".swarm/bundled-skills";
100
103
  function bundledProjectSkillFileReference(slug) {
101
104
  return `file:${BUNDLED_PROJECT_SKILL_ROOT}/${slug}/SKILL.md`;
@@ -304,6 +307,27 @@ async function removeRetiredBundledSkillDirsAsync(skillsDir) {
304
307
  continue;
305
308
  throw err;
306
309
  }
310
+ const backupTarget = `${target}.retired-backup`;
311
+ let backupExists = true;
312
+ try {
313
+ await fsp.lstat(backupTarget);
314
+ } catch {
315
+ backupExists = false;
316
+ }
317
+ if (!backupExists) {
318
+ try {
319
+ await fsp.rename(target, backupTarget);
320
+ log("preserved retired bundled skill as .retired-backup", {
321
+ slug
322
+ });
323
+ continue;
324
+ } catch (renameErr) {
325
+ log("could not preserve retired bundled skill (continuing to removal)", {
326
+ slug,
327
+ message: renameErr instanceof Error ? renameErr.message : String(renameErr)
328
+ });
329
+ }
330
+ }
307
331
  await fsp.rm(target, { recursive: true, force: true });
308
332
  log("removed retired bundled skill", { slug });
309
333
  } catch (err) {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  authorizeCuration
4
- } from "./index-4mjmnysc.js";
4
+ } from "./index-ajknebrc.js";
5
5
  import {
6
6
  findNearDuplicate,
7
7
  inferTags,
@@ -9,13 +9,13 @@ import {
9
9
  resolveSwarmKnowledgePath,
10
10
  resolveSwarmRejectedPath,
11
11
  transactKnowledge
12
- } from "./index-888pq4xx.js";
12
+ } from "./index-grn6tkbt.js";
13
13
  import {
14
14
  resolveKnowledgeStoreDir
15
- } from "./index-sphahrmq.js";
15
+ } from "./index-6rx1rdaq.js";
16
16
  import {
17
17
  atomicWriteFile
18
- } from "./index-2bhz5k91.js";
18
+ } from "./index-jre6tm3v.js";
19
19
  import {
20
20
  require_proper_lockfile
21
21
  } from "./index-7g4c7s5r.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  validateSwarmPath
4
- } from "./index-qqq04n70.js";
4
+ } from "./index-anxs69ad.js";
5
5
  import {
6
6
  atomicWriteSwarmFileSync
7
- } from "./index-ewv8qa8q.js";
7
+ } from "./index-gy0nyfbw.js";
8
8
 
9
9
  // src/hooks/delegation-gate/worktree-provisioning-owner.ts
10
10
  import { createHash } from "crypto";
@@ -927,13 +927,13 @@ var init_tool_metadata = __esm(() => {
927
927
  });
928
928
 
929
929
  // src/config/constants.ts
930
- function freezeSet(items) {
930
+ function freezeSet(items, name = "CLAUDE_CODE_NATIVE_COMMANDS") {
931
931
  const set = new Set(items);
932
932
  const proxy = new Proxy(set, {
933
933
  get(target, prop) {
934
934
  if (prop === "add" || prop === "delete" || prop === "clear") {
935
935
  return () => {
936
- throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
936
+ throw new TypeError(`${name} is readonly`);
937
937
  };
938
938
  }
939
939
  if (prop === "forEach") {
@@ -946,16 +946,16 @@ function freezeSet(items) {
946
946
  return typeof value === "function" ? value.bind(target) : value;
947
947
  },
948
948
  set() {
949
- throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
949
+ throw new TypeError(`${name} is readonly`);
950
950
  },
951
951
  deleteProperty() {
952
- throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
952
+ throw new TypeError(`${name} is readonly`);
953
953
  },
954
954
  defineProperty() {
955
- throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
955
+ throw new TypeError(`${name} is readonly`);
956
956
  },
957
957
  setPrototypeOf() {
958
- throw new TypeError("CLAUDE_CODE_NATIVE_COMMANDS is readonly");
958
+ throw new TypeError(`${name} is readonly`);
959
959
  }
960
960
  });
961
961
  return proxy;
@@ -966,7 +966,7 @@ function isQAAgent(name) {
966
966
  function isSubagent(name) {
967
967
  return ALL_SUBAGENT_NAMES.includes(name);
968
968
  }
969
- var OPENCODE_NATIVE_AGENTS, CLAUDE_CODE_NATIVE_COMMANDS, EXTERNAL_SKILL_TOOL_NAMES, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_TOOL_NAMES, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_TOOL_NAMES, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_TOOL_NAMES, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, PR_REVIEW_CHILD_TOOL_NAMES, PR_REVIEW_CHILD_AGENT_TOOL_MAP, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, SWARM_WORKTREE_DIR_NAME = ".swarm-worktrees", DEFAULT_WORKTREE_ISOLATION_CONFIG;
969
+ var OPENCODE_NATIVE_AGENTS, CLAUDE_CODE_NATIVE_COMMANDS, OPENCODE_NATIVE_COMMANDS, EXTERNAL_SKILL_TOOL_NAMES, EXTERNAL_SKILL_AGENT_TOOL_MAP, COUNCIL_TOOL_NAMES, COUNCIL_AGENT_TOOL_MAP, GENERAL_COUNCIL_TOOL_NAMES, GENERAL_COUNCIL_AGENT_TOOL_MAP, TURBO_TOOL_NAMES, TURBO_AGENT_TOOL_MAP, SKILL_TOOL_NAMES, SKILL_AGENT_TOOL_MAP, PR_REVIEW_CHILD_TOOL_NAMES, PR_REVIEW_CHILD_AGENT_TOOL_MAP, WRITE_TOOL_NAMES, SUMMARIZER_EXEMPT_TOOL_NAMES, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, SWARM_WORKTREE_DIR_NAME = ".swarm-worktrees", DEFAULT_WORKTREE_ISOLATION_CONFIG;
970
970
  var init_constants = __esm(() => {
971
971
  init_agent_names();
972
972
  init_tool_metadata();
@@ -1088,6 +1088,28 @@ var init_constants = __esm(() => {
1088
1088
  "team-onboarding",
1089
1089
  "bashes"
1090
1090
  ]);
1091
+ OPENCODE_NATIVE_COMMANDS = freezeSet([
1092
+ "plan",
1093
+ "new",
1094
+ "share",
1095
+ "clear",
1096
+ "undo",
1097
+ "redo",
1098
+ "compact",
1099
+ "export",
1100
+ "help",
1101
+ "exit",
1102
+ "models",
1103
+ "themes",
1104
+ "edit",
1105
+ "resume",
1106
+ "copy",
1107
+ "log",
1108
+ "messages",
1109
+ "summary",
1110
+ "tree",
1111
+ "session"
1112
+ ], "OPENCODE_NATIVE_COMMANDS");
1091
1113
  EXTERNAL_SKILL_TOOL_NAMES = [
1092
1114
  "external_skill_discover",
1093
1115
  "external_skill_list",
@@ -7,7 +7,7 @@ import {
7
7
  readLinkPointer,
8
8
  resolveKnowledgeStoreDir,
9
9
  resolveLinkDir
10
- } from "./index-sphahrmq.js";
10
+ } from "./index-6rx1rdaq.js";
11
11
 
12
12
  // src/knowledge/curation-policy.ts
13
13
  import { appendFile, mkdir as mkdir2, readFile as readFile2 } from "fs/promises";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./index-p612v1mv.js";
8
8
  import {
9
9
  readCachedTextFile
10
- } from "./index-ewv8qa8q.js";
10
+ } from "./index-gy0nyfbw.js";
11
11
  import {
12
12
  warn
13
13
  } from "./index-zgwm4ryv.js";
@@ -3,7 +3,7 @@ import {
3
3
  ALL_AGENT_NAMES,
4
4
  SUMMARIZER_EXEMPT_TOOL_NAMES,
5
5
  init_constants
6
- } from "./index-50j914b5.js";
6
+ } from "./index-a0d4fp6r.js";
7
7
  import {
8
8
  OUTCOME_BLOCK_THRESHOLD,
9
9
  init_knowledge_types
@@ -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.164.12",
24
+ version: "7.164.13",
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",
@@ -84,7 +84,7 @@ var init_package = __esm(() => {
84
84
  ".opencode/skills/swarm-pr-subscribe",
85
85
  ".opencode/skills/swarm-ci-monitor",
86
86
  ".opencode/skills/issue-ingest",
87
- ".opencode/skills/plan",
87
+ ".opencode/skills/swarm-plan",
88
88
  ".opencode/skills/critic-gate",
89
89
  ".opencode/skills/execute",
90
90
  ".opencode/skills/phase-wrap",
@@ -121,6 +121,7 @@ var init_package = __esm(() => {
121
121
  "drift:check": "bun run scripts/drift-check.ts",
122
122
  "check:pre-push": "bun run scripts/drift-check.ts --enforce --no-report && bun run check:registry-citations",
123
123
  "schema:generate": "bun run scripts/generate-config-schema.ts",
124
+ "generate:commands-docs": "bun run scripts/generate-commands-docs.ts",
124
125
  "check:runtime-src-refs": "bun run scripts/check-runtime-src-refs.ts",
125
126
  "drift:fix": "bun run scripts/drift-check.ts --fix --confirm",
126
127
  "skills:sync": "bun run scripts/sync-qa-gate-skills.ts",
@@ -4,7 +4,7 @@ import {
4
4
  readShellAuditTail,
5
5
  redactPath,
6
6
  redactShellCommand
7
- } from "./index-wasdrhev.js";
7
+ } from "./index-4fhcbe14.js";
8
8
 
9
9
  // src/services/guardrail-log-service.ts
10
10
  var BLOCK_TYPES = new Set([