opencode-swarm 7.187.0 → 7.187.2

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 (96) 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/pr-review-contract.d.ts +2 -2
  4. package/dist/cli/{auto-checkpoint-r69e82bh.js → auto-checkpoint-2xmptd5t.js} +8 -8
  5. package/dist/cli/{checkpoint-1sqwbgra.js → checkpoint-2y7z19y5.js} +14 -13
  6. package/dist/cli/{coder-settlement-b9qx0732.js → coder-settlement-s4d28fa6.js} +9 -9
  7. package/dist/cli/{config-doctor-s4fr5qwr.js → config-doctor-312afzhr.js} +13 -12
  8. package/dist/cli/{core-bezezjy9.js → core-2bywxc4w.js} +2 -2
  9. package/dist/cli/{curation-policy-2x2w3b57.js → curation-policy-sr29thf5.js} +5 -5
  10. package/dist/cli/{curator-drift-785xnxdv.js → curator-drift-xx8pp4g9.js} +6 -6
  11. package/dist/cli/{curator-w4hp7a10.js → curator-dvhf6jex.js} +37 -35
  12. package/dist/cli/{curator-llm-factory-p0wwyswg.js → curator-llm-factory-4g2nvr76.js} +37 -35
  13. package/dist/cli/doctor-knowledge-receipt-phase-id-m239pgbz.js +83 -0
  14. package/dist/cli/{evidence-summary-service-33qcm9xc.js → evidence-summary-service-9et04fjh.js} +17 -16
  15. package/dist/cli/{gate-evidence-9ehj968e.js → gate-evidence-73vj3bgm.js} +6 -6
  16. package/dist/cli/{guardrail-explain-5715fdzv.js → guardrail-explain-8n4fx9zv.js} +38 -36
  17. package/dist/cli/{guardrail-log-k1dfzfzm.js → guardrail-log-9gmfvnd7.js} +7 -7
  18. package/dist/cli/{guardrail-reset-nt88n9dm.js → guardrail-reset-k3mrq25e.js} +37 -35
  19. package/dist/cli/{hive-promoter-c8fjn186.js → hive-promoter-bp3rz0q6.js} +37 -35
  20. package/dist/cli/{index-df2p0k0s.js → index-26zs9wsj.js} +2 -2
  21. package/dist/cli/{index-ectvhv8e.js → index-310h5192.js} +2 -2
  22. package/dist/cli/{index-en7vzpeq.js → index-33345434.js} +4 -4
  23. package/dist/cli/{index-2wgvjwpr.js → index-3ckfawjf.js} +3 -3
  24. package/dist/cli/{index-b2je0z0t.js → index-3g3n9fjq.js} +4 -4
  25. package/dist/cli/{index-ycz8z2db.js → index-3y0nr248.js} +3 -3
  26. package/dist/cli/{index-v08ksq0b.js → index-4g39nne8.js} +2 -2
  27. package/dist/cli/{index-t3hcd6zz.js → index-6t7ygevg.js} +1 -1
  28. package/dist/cli/{index-5m56c5r6.js → index-7fxy1s86.js} +4 -4
  29. package/dist/cli/{index-pymr99as.js → index-85cx1mmb.js} +4 -4
  30. package/dist/cli/{index-2s8wdagg.js → index-9jafghwk.js} +37 -35
  31. package/dist/cli/{index-evy5yrsw.js → index-b308erem.js} +3 -3
  32. package/dist/cli/{index-qzgfheb4.js → index-b5tthmy2.js} +2 -2
  33. package/dist/cli/{index-yw1g78v9.js → index-bstjg81q.js} +1 -1
  34. package/dist/cli/{index-hvr82s1t.js → index-dqberkr3.js} +4 -4
  35. package/dist/cli/{index-jtncfvhe.js → index-dx6bhbd6.js} +1 -1
  36. package/dist/cli/{index-ww8payq9.js → index-e9ry78z5.js} +2 -2
  37. package/dist/cli/{index-1vvr69ka.js → index-efbhea00.js} +1 -1
  38. package/dist/cli/{index-xs96nry2.js → index-exj7czz9.js} +4 -4
  39. package/dist/cli/{index-sztx0vyt.js → index-f6pft90q.js} +3 -3
  40. package/dist/cli/{index-6ersmqjd.js → index-j5db3v56.js} +318 -767
  41. package/dist/cli/{index-pts38j6x.js → index-jh9nrshe.js} +2 -2
  42. package/dist/cli/{index-0yj79yk1.js → index-jyxgkp4a.js} +1 -1
  43. package/dist/cli/index-kc635w60.js +748 -0
  44. package/dist/cli/{index-cppqxjw9.js → index-m1vsqmyr.js} +1 -1
  45. package/dist/cli/index-m9zzj4ee.js +10 -0
  46. package/dist/cli/{index-rm676s0p.js → index-n45kz69m.js} +1 -1
  47. package/dist/cli/{index-dypmvvga.js → index-n55exns2.js} +1 -1
  48. package/dist/cli/{index-pfpnzf6w.js → index-n8kqhxay.js} +1 -1
  49. package/dist/cli/{index-bbqxt1p5.js → index-pqffq9mm.js} +3 -3
  50. package/dist/cli/{index-knbjtqwt.js → index-rtdxyjrg.js} +8 -6
  51. package/dist/cli/{index-r7gt2w1b.js → index-tkm2rj27.js} +1 -1
  52. package/dist/cli/{index-cx4s7cak.js → index-tmp07h7b.js} +39 -37
  53. package/dist/cli/{index-ta48pe8j.js → index-tngc1erw.js} +3 -3
  54. package/dist/cli/{index-akt0arnt.js → index-tq6sbcys.js} +105 -185
  55. package/dist/cli/{index-c8ffgcvz.js → index-v9y0230d.js} +1 -1
  56. package/dist/cli/{index-469xmpd6.js → index-w0bvez8c.js} +1 -1
  57. package/dist/cli/{index-4g6sw4eq.js → index-wpxy7099.js} +1 -1
  58. package/dist/cli/{index-yf0cc6c5.js → index-xs070yr9.js} +2 -2
  59. package/dist/cli/{index-zzxnssy3.js → index-xv0t2sed.js} +4 -4
  60. package/dist/cli/{index-krqq8kbq.js → index-y81jjedn.js} +6 -6
  61. package/dist/cli/{index-d6kvatwp.js → index-z04d01pv.js} +11 -16
  62. package/dist/cli/index.js +38 -36
  63. package/dist/cli/{knowledge-escalator-qttydcx2.js → knowledge-escalator-fnqctvxz.js} +14 -12
  64. package/dist/cli/{knowledge-events-4vf0vj82.js → knowledge-events-mr1vh3nb.js} +12 -10
  65. package/dist/cli/{knowledge-link-p2c8agc8.js → knowledge-link-93nzznwd.js} +4 -4
  66. package/dist/cli/{knowledge-store-bw1dk2eb.js → knowledge-store-dxy4s9k6.js} +5 -5
  67. package/dist/cli/{knowledge-validator-gefcc36h.js → knowledge-validator-gy39attk.js} +7 -7
  68. package/dist/cli/{mcp-d5p0k3p1.js → mcp-bxb59wsq.js} +1 -1
  69. package/dist/cli/{model-preflight-fmx49pwy.js → model-preflight-2kje0sp0.js} +37 -35
  70. package/dist/cli/{pending-delegations-8333cb3y.js → pending-delegations-fm2nx2k0.js} +7 -7
  71. package/dist/cli/{pr-subscriptions-p42ny2sn.js → pr-subscriptions-g4f9rehb.js} +7 -7
  72. package/dist/cli/{pr-workflow-gate-csy32z8w.js → pr-workflow-gate-qtq1wq95.js} +37 -35
  73. package/dist/cli/{runner-cbpr45cs.js → runner-verr6er5.js} +5 -5
  74. package/dist/cli/{scan-cursor-14mwymtz.js → scan-cursor-8taj944f.js} +6 -6
  75. package/dist/cli/{schema-6426g0gw.js → schema-yxq3bjmd.js} +2 -2
  76. package/dist/cli/{scope-persistence-avkv3s4m.js → scope-persistence-jppvjncr.js} +12 -12
  77. package/dist/cli/{server-d9rk2zeb.js → server-2s7wqg9e.js} +37 -35
  78. package/dist/cli/{skill-generator-epdvdsh5.js → skill-generator-pyf95aqw.js} +16 -14
  79. package/dist/cli/{snapshot-coordination-init-35f7wrqb.js → snapshot-coordination-init-8gbxw9sa.js} +37 -35
  80. package/dist/cli/{speckit-checkoff-erwa7fbj.js → speckit-checkoff-x2z0jamv.js} +4 -4
  81. package/dist/cli/{telemetry-2vwb3n42.js → telemetry-xwj899pd.js} +1 -1
  82. package/dist/cli/{worktree-collision-ownership-3tqkw81h.js → worktree-collision-ownership-455bdcnk.js} +7 -7
  83. package/dist/cli/{worktree-isolation-0rrjqypt.js → worktree-isolation-8x4p7tvm.js} +37 -35
  84. package/dist/commands/doctor-knowledge-receipt-phase-id.d.ts +16 -0
  85. package/dist/hooks/extractors.d.ts +15 -0
  86. package/dist/hooks/knowledge-injector.d.ts +5 -0
  87. package/dist/hooks/knowledge-receipt-ledger.d.ts +50 -4
  88. package/dist/hooks/knowledge-receipt-observability.d.ts +1 -1
  89. package/dist/hooks/phase-complete-directive-gate.d.ts +18 -1
  90. package/dist/hooks/phase-directives.d.ts +7 -3
  91. package/dist/index.js +469 -460
  92. package/dist/state.d.ts +26 -3
  93. package/dist/tools/phase-complete.d.ts +2 -2
  94. package/dist/tools/repair-knowledge-receipt-ledger.d.ts +26 -0
  95. package/dist/utils/path.d.ts +23 -0
  96. package/package.json +1 -1
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  init_loader,
11
11
  loadPluginConfig
12
- } from "./index-469xmpd6.js";
12
+ } from "./index-w0bvez8c.js";
13
13
  import {
14
14
  init_logger,
15
15
  log,
@@ -0,0 +1,10 @@
1
+ // @bun
2
+ // src/hooks/context-sanitizer.ts
3
+ function sanitizeContextText(text) {
4
+ return text.split("").filter((char) => {
5
+ const code = char.charCodeAt(0);
6
+ return code === 9 || code === 10 || code === 13 || code > 31 && code !== 127;
7
+ }).join("").replace(/[\u00AD\u200B-\u200F\u2060-\u2064\uFEFF]/g, "").replace(/[\u202A-\u202E\u2066-\u2069]/g, "").replace(/```/g, "` ` `").replace(/^system\s*:/gim, "[BLOCKED]:").replace(/<system\b[^>]*>/gi, "[BLOCKED-TAG]").replace(/<\/system>/gi, "[/BLOCKED-TAG]").replace(/<tool_call\b[^>]*>/gi, "[BLOCKED-TOOL]").replace(/<\/tool_call>/gi, "[/BLOCKED-TOOL]").replace(/<\/\w+>/g, "[/BLOCKED-TAG]");
8
+ }
9
+
10
+ export { sanitizeContextText };
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  atomicWriteFile
4
- } from "./index-t3hcd6zz.js";
4
+ } from "./index-6t7ygevg.js";
5
5
  import {
6
6
  canonicalRootKeyFresh
7
7
  } from "./index-fzpt2djt.js";
@@ -9,7 +9,7 @@ import {
9
9
  readEvaluationRun,
10
10
  saveEvaluationRun,
11
11
  saveTaskSetSnapshot
12
- } from "./index-df2p0k0s.js";
12
+ } from "./index-26zs9wsj.js";
13
13
  import {
14
14
  canonicalHash,
15
15
  computeCandidateInputContentHash,
@@ -11,7 +11,7 @@ import {
11
11
  readLinkPointer,
12
12
  resolveKnowledgeStoreDir,
13
13
  resolveLinkDir
14
- } from "./index-rm676s0p.js";
14
+ } from "./index-n45kz69m.js";
15
15
 
16
16
  // src/knowledge/curation-policy.ts
17
17
  import { readFile as readFile2 } from "fs/promises";
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  loadPlanJsonOnly
4
- } from "./index-d6kvatwp.js";
4
+ } from "./index-z04d01pv.js";
5
5
  import {
6
6
  isCanonicalPathWithinRoot
7
7
  } from "./index-6b295cas.js";
@@ -15,13 +15,13 @@ import {
15
15
  PluginConfigSchema,
16
16
  init_schema,
17
17
  stripKnownSwarmPrefix
18
- } from "./index-qzgfheb4.js";
18
+ } from "./index-b5tthmy2.js";
19
19
  import {
20
20
  ALL_AGENT_NAMES,
21
21
  TOOL_NAME_SET,
22
22
  init_constants,
23
23
  init_tool_metadata
24
- } from "./index-yw1g78v9.js";
24
+ } from "./index-bstjg81q.js";
25
25
  import {
26
26
  log
27
27
  } from "./index-zgwm4ryv.js";
@@ -1,9 +1,11 @@
1
1
  // @bun
2
2
  import {
3
- queryHistoricalOutcomes,
4
3
  readKnowledgeEvents,
5
4
  recordKnowledgeEvent
6
- } from "./index-6ersmqjd.js";
5
+ } from "./index-kc635w60.js";
6
+ import {
7
+ queryHistoricalOutcomes
8
+ } from "./index-j5db3v56.js";
7
9
  import {
8
10
  jaccardBigram,
9
11
  readKnowledge,
@@ -11,7 +13,7 @@ import {
11
13
  resolveSwarmKnowledgePath,
12
14
  transactKnowledge,
13
15
  wordBigrams
14
- } from "./index-krqq8kbq.js";
16
+ } from "./index-y81jjedn.js";
15
17
  import {
16
18
  init_knowledge_types,
17
19
  isActiveStatus
@@ -224,11 +226,11 @@ async function maybeQuarantineOnContradiction(directory, entryId, threshold, win
224
226
  alreadyInactive: true
225
227
  };
226
228
  }
227
- const { quarantineEntry } = await import("./knowledge-validator-gefcc36h.js");
229
+ const { quarantineEntry } = await import("./knowledge-validator-gy39attk.js");
228
230
  let policyConfig;
229
231
  try {
230
- const { KnowledgeConfigSchema } = await import("./schema-6426g0gw.js");
231
- const { loadPluginConfigWithMeta } = await import("./index-en7vzpeq.js");
232
+ const { KnowledgeConfigSchema } = await import("./schema-yxq3bjmd.js");
233
+ const { loadPluginConfigWithMeta } = await import("./index-33345434.js");
232
234
  const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
233
235
  policyConfig = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
234
236
  } catch {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  readEffectiveSpecSync
4
- } from "./index-1vvr69ka.js";
4
+ } from "./index-efbhea00.js";
5
5
  import {
6
6
  readSwarmFileAsync
7
7
  } from "./index-bejxkee0.js";
@@ -1,10 +1,10 @@
1
1
  // @bun
2
2
  import {
3
3
  handleGuardrailExplain
4
- } from "./index-yf0cc6c5.js";
4
+ } from "./index-xs070yr9.js";
5
5
  import {
6
6
  handleGuardrailLog
7
- } from "./index-4g6sw4eq.js";
7
+ } from "./index-wpxy7099.js";
8
8
  import {
9
9
  COMMAND_REGISTRY,
10
10
  DEFAULT_CI_DEADLINE_MS,
@@ -97,80 +97,82 @@ import {
97
97
  handleWriteRetroCommand,
98
98
  normalizeSwarmCommandInput,
99
99
  resolveCommand
100
- } from "./index-akt0arnt.js";
101
- import"./index-b2je0z0t.js";
102
- import"./index-bbqxt1p5.js";
103
- import"./index-sztx0vyt.js";
100
+ } from "./index-tq6sbcys.js";
101
+ import"./index-3g3n9fjq.js";
102
+ import"./index-pqffq9mm.js";
103
+ import"./index-f6pft90q.js";
104
104
  import"./index-vx8a8w3b.js";
105
- import"./index-dypmvvga.js";
106
- import"./index-df2p0k0s.js";
105
+ import"./index-n55exns2.js";
106
+ import"./index-26zs9wsj.js";
107
107
  import"./index-txdagbh7.js";
108
- import"./index-v08ksq0b.js";
108
+ import"./index-4g39nne8.js";
109
109
  import"./index-rdec0y3z.js";
110
- import"./index-r7gt2w1b.js";
111
- import"./index-pymr99as.js";
112
- import"./index-2wgvjwpr.js";
113
- import"./index-knbjtqwt.js";
110
+ import"./index-tkm2rj27.js";
111
+ import"./index-85cx1mmb.js";
112
+ import"./index-3ckfawjf.js";
113
+ import"./index-rtdxyjrg.js";
114
114
  import"./index-mf19yqss.js";
115
- import"./index-ycz8z2db.js";
115
+ import"./index-3y0nr248.js";
116
116
  import"./index-cjapb4hy.js";
117
117
  import"./index-a8gvszr2.js";
118
118
  import"./index-pt7h91zc.js";
119
119
  import"./index-q7sjgr1y.js";
120
- import"./index-hvr82s1t.js";
121
- import"./index-d6kvatwp.js";
120
+ import"./index-dqberkr3.js";
121
+ import"./index-z04d01pv.js";
122
122
  import"./index-6b295cas.js";
123
123
  import"./index-9nyqt3kb.js";
124
- import"./index-1vvr69ka.js";
124
+ import"./index-efbhea00.js";
125
125
  import"./index-zsrtt42s.js";
126
- import"./index-cppqxjw9.js";
127
- import"./index-evy5yrsw.js";
128
- import"./index-pts38j6x.js";
126
+ import"./index-m1vsqmyr.js";
127
+ import"./index-b308erem.js";
128
+ import"./index-jh9nrshe.js";
129
129
  import"./index-g4fs6z4e.js";
130
- import"./index-xs96nry2.js";
131
- import"./index-6ersmqjd.js";
130
+ import"./index-exj7czz9.js";
131
+ import"./index-kc635w60.js";
132
+ import"./index-j5db3v56.js";
133
+ import"./index-m9zzj4ee.js";
132
134
  import"./index-bejxkee0.js";
133
135
  import"./index-2s7dvzff.js";
134
- import"./index-zzxnssy3.js";
135
- import"./index-pfpnzf6w.js";
136
+ import"./index-xv0t2sed.js";
137
+ import"./index-n8kqhxay.js";
136
138
  import"./index-rtry5xyf.js";
137
- import"./index-ta48pe8j.js";
139
+ import"./index-tngc1erw.js";
138
140
  import"./index-kbkk7vnh.js";
139
141
  import"./index-0725jpp7.js";
140
- import"./index-ectvhv8e.js";
141
- import"./index-5m56c5r6.js";
142
- import"./index-ww8payq9.js";
142
+ import"./index-310h5192.js";
143
+ import"./index-7fxy1s86.js";
144
+ import"./index-e9ry78z5.js";
143
145
  import"./index-m1qy7f1e.js";
144
146
  import"./index-cc1vzq4m.js";
145
147
  import"./index-9hag235h.js";
146
148
  import"./index-ry16d01s.js";
147
149
  import"./index-rdm3px0g.js";
148
150
  import"./index-7pmbnjvj.js";
149
- import"./index-c8ffgcvz.js";
150
- import"./index-krqq8kbq.js";
151
+ import"./index-v9y0230d.js";
152
+ import"./index-y81jjedn.js";
151
153
  import"./index-vzm6zre7.js";
152
154
  import"./index-ae75rja9.js";
153
- import"./index-rm676s0p.js";
154
- import"./index-t3hcd6zz.js";
155
- import"./index-0yj79yk1.js";
155
+ import"./index-n45kz69m.js";
156
+ import"./index-6t7ygevg.js";
157
+ import"./index-jyxgkp4a.js";
156
158
  import"./index-t7hmqgjy.js";
157
- import"./index-jtncfvhe.js";
159
+ import"./index-dx6bhbd6.js";
158
160
  import"./index-fzpt2djt.js";
159
161
  import"./index-ejhxgyvm.js";
160
162
  import"./index-7g4c7s5r.js";
161
163
  import"./index-r6e8syr3.js";
162
164
  import"./index-gx2vp8gx.js";
163
- import"./index-469xmpd6.js";
165
+ import"./index-w0bvez8c.js";
164
166
  import"./index-zxdawwc7.js";
165
167
  import {
166
168
  init_schema,
167
169
  stripKnownSwarmPrefix
168
- } from "./index-qzgfheb4.js";
170
+ } from "./index-b5tthmy2.js";
169
171
  import {
170
172
  AGENT_TOOL_MAP,
171
173
  ORCHESTRATOR_NAME,
172
174
  init_constants
173
- } from "./index-yw1g78v9.js";
175
+ } from "./index-bstjg81q.js";
174
176
  import"./index-bk5tah7q.js";
175
177
  import"./index-gknz3bv1.js";
176
178
  import"./index-zpsr8rpc.js";
@@ -2,14 +2,14 @@
2
2
  import {
3
3
  init_loader,
4
4
  loadPluginConfigWithMeta
5
- } from "./index-469xmpd6.js";
5
+ } from "./index-w0bvez8c.js";
6
6
  import {
7
7
  init_schema
8
- } from "./index-qzgfheb4.js";
8
+ } from "./index-b5tthmy2.js";
9
9
  import {
10
10
  DEFAULT_WORKTREE_ISOLATION_CONFIG,
11
11
  init_constants
12
- } from "./index-yw1g78v9.js";
12
+ } from "./index-bstjg81q.js";
13
13
 
14
14
  // src/config/index.ts
15
15
  init_constants();