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.
- package/binaries/win32-arm64/swarm-sandbox-runner.exe +0 -0
- package/binaries/win32-x64/swarm-sandbox-runner.exe +0 -0
- package/dist/background/pr-review-contract.d.ts +2 -2
- package/dist/cli/{auto-checkpoint-r69e82bh.js → auto-checkpoint-2xmptd5t.js} +8 -8
- package/dist/cli/{checkpoint-1sqwbgra.js → checkpoint-2y7z19y5.js} +14 -13
- package/dist/cli/{coder-settlement-b9qx0732.js → coder-settlement-s4d28fa6.js} +9 -9
- package/dist/cli/{config-doctor-s4fr5qwr.js → config-doctor-312afzhr.js} +13 -12
- package/dist/cli/{core-bezezjy9.js → core-2bywxc4w.js} +2 -2
- package/dist/cli/{curation-policy-2x2w3b57.js → curation-policy-sr29thf5.js} +5 -5
- package/dist/cli/{curator-drift-785xnxdv.js → curator-drift-xx8pp4g9.js} +6 -6
- package/dist/cli/{curator-w4hp7a10.js → curator-dvhf6jex.js} +37 -35
- package/dist/cli/{curator-llm-factory-p0wwyswg.js → curator-llm-factory-4g2nvr76.js} +37 -35
- package/dist/cli/doctor-knowledge-receipt-phase-id-m239pgbz.js +83 -0
- package/dist/cli/{evidence-summary-service-33qcm9xc.js → evidence-summary-service-9et04fjh.js} +17 -16
- package/dist/cli/{gate-evidence-9ehj968e.js → gate-evidence-73vj3bgm.js} +6 -6
- package/dist/cli/{guardrail-explain-5715fdzv.js → guardrail-explain-8n4fx9zv.js} +38 -36
- package/dist/cli/{guardrail-log-k1dfzfzm.js → guardrail-log-9gmfvnd7.js} +7 -7
- package/dist/cli/{guardrail-reset-nt88n9dm.js → guardrail-reset-k3mrq25e.js} +37 -35
- package/dist/cli/{hive-promoter-c8fjn186.js → hive-promoter-bp3rz0q6.js} +37 -35
- package/dist/cli/{index-df2p0k0s.js → index-26zs9wsj.js} +2 -2
- package/dist/cli/{index-ectvhv8e.js → index-310h5192.js} +2 -2
- package/dist/cli/{index-en7vzpeq.js → index-33345434.js} +4 -4
- package/dist/cli/{index-2wgvjwpr.js → index-3ckfawjf.js} +3 -3
- package/dist/cli/{index-b2je0z0t.js → index-3g3n9fjq.js} +4 -4
- package/dist/cli/{index-ycz8z2db.js → index-3y0nr248.js} +3 -3
- package/dist/cli/{index-v08ksq0b.js → index-4g39nne8.js} +2 -2
- package/dist/cli/{index-t3hcd6zz.js → index-6t7ygevg.js} +1 -1
- package/dist/cli/{index-5m56c5r6.js → index-7fxy1s86.js} +4 -4
- package/dist/cli/{index-pymr99as.js → index-85cx1mmb.js} +4 -4
- package/dist/cli/{index-2s8wdagg.js → index-9jafghwk.js} +37 -35
- package/dist/cli/{index-evy5yrsw.js → index-b308erem.js} +3 -3
- package/dist/cli/{index-qzgfheb4.js → index-b5tthmy2.js} +2 -2
- package/dist/cli/{index-yw1g78v9.js → index-bstjg81q.js} +1 -1
- package/dist/cli/{index-hvr82s1t.js → index-dqberkr3.js} +4 -4
- package/dist/cli/{index-jtncfvhe.js → index-dx6bhbd6.js} +1 -1
- package/dist/cli/{index-ww8payq9.js → index-e9ry78z5.js} +2 -2
- package/dist/cli/{index-1vvr69ka.js → index-efbhea00.js} +1 -1
- package/dist/cli/{index-xs96nry2.js → index-exj7czz9.js} +4 -4
- package/dist/cli/{index-sztx0vyt.js → index-f6pft90q.js} +3 -3
- package/dist/cli/{index-6ersmqjd.js → index-j5db3v56.js} +318 -767
- package/dist/cli/{index-pts38j6x.js → index-jh9nrshe.js} +2 -2
- package/dist/cli/{index-0yj79yk1.js → index-jyxgkp4a.js} +1 -1
- package/dist/cli/index-kc635w60.js +748 -0
- package/dist/cli/{index-cppqxjw9.js → index-m1vsqmyr.js} +1 -1
- package/dist/cli/index-m9zzj4ee.js +10 -0
- package/dist/cli/{index-rm676s0p.js → index-n45kz69m.js} +1 -1
- package/dist/cli/{index-dypmvvga.js → index-n55exns2.js} +1 -1
- package/dist/cli/{index-pfpnzf6w.js → index-n8kqhxay.js} +1 -1
- package/dist/cli/{index-bbqxt1p5.js → index-pqffq9mm.js} +3 -3
- package/dist/cli/{index-knbjtqwt.js → index-rtdxyjrg.js} +8 -6
- package/dist/cli/{index-r7gt2w1b.js → index-tkm2rj27.js} +1 -1
- package/dist/cli/{index-cx4s7cak.js → index-tmp07h7b.js} +39 -37
- package/dist/cli/{index-ta48pe8j.js → index-tngc1erw.js} +3 -3
- package/dist/cli/{index-akt0arnt.js → index-tq6sbcys.js} +105 -185
- package/dist/cli/{index-c8ffgcvz.js → index-v9y0230d.js} +1 -1
- package/dist/cli/{index-469xmpd6.js → index-w0bvez8c.js} +1 -1
- package/dist/cli/{index-4g6sw4eq.js → index-wpxy7099.js} +1 -1
- package/dist/cli/{index-yf0cc6c5.js → index-xs070yr9.js} +2 -2
- package/dist/cli/{index-zzxnssy3.js → index-xv0t2sed.js} +4 -4
- package/dist/cli/{index-krqq8kbq.js → index-y81jjedn.js} +6 -6
- package/dist/cli/{index-d6kvatwp.js → index-z04d01pv.js} +11 -16
- package/dist/cli/index.js +38 -36
- package/dist/cli/{knowledge-escalator-qttydcx2.js → knowledge-escalator-fnqctvxz.js} +14 -12
- package/dist/cli/{knowledge-events-4vf0vj82.js → knowledge-events-mr1vh3nb.js} +12 -10
- package/dist/cli/{knowledge-link-p2c8agc8.js → knowledge-link-93nzznwd.js} +4 -4
- package/dist/cli/{knowledge-store-bw1dk2eb.js → knowledge-store-dxy4s9k6.js} +5 -5
- package/dist/cli/{knowledge-validator-gefcc36h.js → knowledge-validator-gy39attk.js} +7 -7
- package/dist/cli/{mcp-d5p0k3p1.js → mcp-bxb59wsq.js} +1 -1
- package/dist/cli/{model-preflight-fmx49pwy.js → model-preflight-2kje0sp0.js} +37 -35
- package/dist/cli/{pending-delegations-8333cb3y.js → pending-delegations-fm2nx2k0.js} +7 -7
- package/dist/cli/{pr-subscriptions-p42ny2sn.js → pr-subscriptions-g4f9rehb.js} +7 -7
- package/dist/cli/{pr-workflow-gate-csy32z8w.js → pr-workflow-gate-qtq1wq95.js} +37 -35
- package/dist/cli/{runner-cbpr45cs.js → runner-verr6er5.js} +5 -5
- package/dist/cli/{scan-cursor-14mwymtz.js → scan-cursor-8taj944f.js} +6 -6
- package/dist/cli/{schema-6426g0gw.js → schema-yxq3bjmd.js} +2 -2
- package/dist/cli/{scope-persistence-avkv3s4m.js → scope-persistence-jppvjncr.js} +12 -12
- package/dist/cli/{server-d9rk2zeb.js → server-2s7wqg9e.js} +37 -35
- package/dist/cli/{skill-generator-epdvdsh5.js → skill-generator-pyf95aqw.js} +16 -14
- package/dist/cli/{snapshot-coordination-init-35f7wrqb.js → snapshot-coordination-init-8gbxw9sa.js} +37 -35
- package/dist/cli/{speckit-checkoff-erwa7fbj.js → speckit-checkoff-x2z0jamv.js} +4 -4
- package/dist/cli/{telemetry-2vwb3n42.js → telemetry-xwj899pd.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-3tqkw81h.js → worktree-collision-ownership-455bdcnk.js} +7 -7
- package/dist/cli/{worktree-isolation-0rrjqypt.js → worktree-isolation-8x4p7tvm.js} +37 -35
- package/dist/commands/doctor-knowledge-receipt-phase-id.d.ts +16 -0
- package/dist/hooks/extractors.d.ts +15 -0
- package/dist/hooks/knowledge-injector.d.ts +5 -0
- package/dist/hooks/knowledge-receipt-ledger.d.ts +50 -4
- package/dist/hooks/knowledge-receipt-observability.d.ts +1 -1
- package/dist/hooks/phase-complete-directive-gate.d.ts +18 -1
- package/dist/hooks/phase-directives.d.ts +7 -3
- package/dist/index.js +469 -460
- package/dist/state.d.ts +26 -3
- package/dist/tools/phase-complete.d.ts +2 -2
- package/dist/tools/repair-knowledge-receipt-ledger.d.ts +26 -0
- package/dist/utils/path.d.ts +23 -0
- package/package.json +1 -1
|
@@ -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
|
loadPlanJsonOnly
|
|
4
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
229
|
+
const { quarantineEntry } = await import("./knowledge-validator-gy39attk.js");
|
|
228
230
|
let policyConfig;
|
|
229
231
|
try {
|
|
230
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
231
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
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,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-xs070yr9.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
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-
|
|
101
|
-
import"./index-
|
|
102
|
-
import"./index-
|
|
103
|
-
import"./index-
|
|
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-
|
|
106
|
-
import"./index-
|
|
105
|
+
import"./index-n55exns2.js";
|
|
106
|
+
import"./index-26zs9wsj.js";
|
|
107
107
|
import"./index-txdagbh7.js";
|
|
108
|
-
import"./index-
|
|
108
|
+
import"./index-4g39nne8.js";
|
|
109
109
|
import"./index-rdec0y3z.js";
|
|
110
|
-
import"./index-
|
|
111
|
-
import"./index-
|
|
112
|
-
import"./index-
|
|
113
|
-
import"./index-
|
|
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-
|
|
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-
|
|
121
|
-
import"./index-
|
|
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-
|
|
124
|
+
import"./index-efbhea00.js";
|
|
125
125
|
import"./index-zsrtt42s.js";
|
|
126
|
-
import"./index-
|
|
127
|
-
import"./index-
|
|
128
|
-
import"./index-
|
|
126
|
+
import"./index-m1vsqmyr.js";
|
|
127
|
+
import"./index-b308erem.js";
|
|
128
|
+
import"./index-jh9nrshe.js";
|
|
129
129
|
import"./index-g4fs6z4e.js";
|
|
130
|
-
import"./index-
|
|
131
|
-
import"./index-
|
|
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-
|
|
135
|
-
import"./index-
|
|
136
|
+
import"./index-xv0t2sed.js";
|
|
137
|
+
import"./index-n8kqhxay.js";
|
|
136
138
|
import"./index-rtry5xyf.js";
|
|
137
|
-
import"./index-
|
|
139
|
+
import"./index-tngc1erw.js";
|
|
138
140
|
import"./index-kbkk7vnh.js";
|
|
139
141
|
import"./index-0725jpp7.js";
|
|
140
|
-
import"./index-
|
|
141
|
-
import"./index-
|
|
142
|
-
import"./index-
|
|
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-
|
|
150
|
-
import"./index-
|
|
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-
|
|
154
|
-
import"./index-
|
|
155
|
-
import"./index-
|
|
155
|
+
import"./index-n45kz69m.js";
|
|
156
|
+
import"./index-6t7ygevg.js";
|
|
157
|
+
import"./index-jyxgkp4a.js";
|
|
156
158
|
import"./index-t7hmqgjy.js";
|
|
157
|
-
import"./index-
|
|
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-
|
|
165
|
+
import"./index-w0bvez8c.js";
|
|
164
166
|
import"./index-zxdawwc7.js";
|
|
165
167
|
import {
|
|
166
168
|
init_schema,
|
|
167
169
|
stripKnownSwarmPrefix
|
|
168
|
-
} from "./index-
|
|
170
|
+
} from "./index-b5tthmy2.js";
|
|
169
171
|
import {
|
|
170
172
|
AGENT_TOOL_MAP,
|
|
171
173
|
ORCHESTRATOR_NAME,
|
|
172
174
|
init_constants
|
|
173
|
-
} from "./index-
|
|
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-
|
|
5
|
+
} from "./index-w0bvez8c.js";
|
|
6
6
|
import {
|
|
7
7
|
init_schema
|
|
8
|
-
} from "./index-
|
|
8
|
+
} from "./index-b5tthmy2.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_WORKTREE_ISOLATION_CONFIG,
|
|
11
11
|
init_constants
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-bstjg81q.js";
|
|
13
13
|
|
|
14
14
|
// src/config/index.ts
|
|
15
15
|
init_constants();
|