opencode-swarm 7.142.1 → 7.143.0
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/.opencode/skills/execute/SKILL.md +1 -1
- package/.opencode/skills/phase-wrap/SKILL.md +2 -2
- package/dist/cli/{config-doctor-2a3qmp5p.js → config-doctor-t1r5qwxk.js} +2 -2
- package/dist/cli/{core-h9z49ant.js → core-e30p4vz9.js} +1 -1
- package/dist/cli/{curator-mtz194wy.js → curator-ctasdmmq.js} +17 -17
- package/dist/cli/{curator-llm-factory-9fr243kj.js → curator-llm-factory-y9xg7k6k.js} +17 -17
- package/dist/cli/{evidence-summary-service-fgckng0a.js → evidence-summary-service-7bmg5r8y.js} +6 -6
- package/dist/cli/{gate-evidence-ppna7em4.js → gate-evidence-1v0cj4c6.js} +2 -2
- package/dist/cli/{guardrail-explain-ejdvvnjz.js → guardrail-explain-6x9psbwz.js} +18 -18
- package/dist/cli/{guardrail-log-adjs25ye.js → guardrail-log-pma4m8vr.js} +3 -3
- package/dist/cli/{hive-promoter-jejme31e.js → hive-promoter-g16grej1.js} +17 -17
- package/dist/cli/{index-kbshtwha.js → index-15h4dpsn.js} +3 -3
- package/dist/cli/{index-0r4qs243.js → index-1g473508.js} +19 -19
- package/dist/cli/{index-ajfa2wmj.js → index-28jr28fg.js} +3 -3
- package/dist/cli/{index-ktazgjqw.js → index-2n8y67b4.js} +2 -2
- package/dist/cli/{index-sdqtecsd.js → index-336ra397.js} +1 -1
- package/dist/cli/{index-vy11zjvh.js → index-6texwk9p.js} +1 -1
- package/dist/cli/{index-vefjxxmb.js → index-96h1v2jw.js} +1 -1
- package/dist/cli/{index-9wmx9ca8.js → index-9v53ez3a.js} +2 -2
- package/dist/cli/{index-2mb5y2w1.js → index-fhxh447f.js} +1 -1
- package/dist/cli/{index-gtkk5rx7.js → index-fprxtq3q.js} +3 -3
- package/dist/cli/{index-bkkxxwcd.js → index-g0pbvfhw.js} +1 -1
- package/dist/cli/{index-xfhe29z3.js → index-htmsm37t.js} +5 -5
- package/dist/cli/{index-j02ez59y.js → index-keskta0w.js} +4 -4
- package/dist/cli/{index-9kf3mj08.js → index-kxpz3ncd.js} +1 -1
- package/dist/cli/{index-h7ye3bzp.js → index-m4v9kab1.js} +47 -47
- package/dist/cli/{index-rthq1a6w.js → index-n96ay8w4.js} +1 -1
- package/dist/cli/{index-we279je2.js → index-q8st0mtw.js} +1 -1
- package/dist/cli/{index-xah70t2t.js → index-r0tn9kpa.js} +1 -1
- package/dist/cli/{index-bb4pcn58.js → index-s89y08tk.js} +2 -2
- package/dist/cli/{index-myav90y6.js → index-sb16w4wj.js} +1 -1
- package/dist/cli/{index-k1xsjzm3.js → index-x6qq39e9.js} +3 -3
- package/dist/cli/index.js +17 -17
- package/dist/cli/{knowledge-escalator-0b80ryka.js → knowledge-escalator-1b2hmcgn.js} +6 -6
- package/dist/cli/{knowledge-events-8x2wt562.js → knowledge-events-vx4fqjzb.js} +4 -4
- package/dist/cli/{knowledge-store-d0xj6wht.js → knowledge-store-t2qyr4yr.js} +1 -1
- package/dist/cli/{knowledge-validator-ewfj679a.js → knowledge-validator-c7871bjc.js} +2 -2
- package/dist/cli/{scan-cursor-hfyz7zpw.js → scan-cursor-pnbpfjjc.js} +2 -2
- package/dist/cli/{schema-ney3c685.js → schema-47xpcghn.js} +1 -1
- package/dist/cli/{scope-persistence-dbfgs7gh.js → scope-persistence-wxx1jpfw.js} +4 -4
- package/dist/cli/{skill-generator-p651jex5.js → skill-generator-s456hfta.js} +7 -7
- package/dist/cli/{worktree-isolation-513vx61s.js → worktree-isolation-d0xgp705.js} +17 -17
- package/dist/hooks/delegation-gate.d.ts +65 -0
- package/dist/index.js +22 -18
- package/package.json +1 -1
|
@@ -9,26 +9,26 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-htmsm37t.js";
|
|
13
|
+
import"./index-28jr28fg.js";
|
|
14
14
|
import"./index-k46me75h.js";
|
|
15
15
|
import"./index-ee3x66a5.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-keskta0w.js";
|
|
17
17
|
import"./index-ae75rja9.js";
|
|
18
18
|
import"./index-w7x7qxz2.js";
|
|
19
19
|
import"./index-erfnw81g.js";
|
|
20
20
|
import"./index-ed5ykebp.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-2n8y67b4.js";
|
|
22
22
|
import"./index-gprxjmm7.js";
|
|
23
23
|
import"./index-n832052r.js";
|
|
24
24
|
import"./index-k31en0ja.js";
|
|
25
25
|
import"./index-7g4c7s5r.js";
|
|
26
26
|
import"./index-s2rcz51a.js";
|
|
27
27
|
import"./index-4nt52yr9.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-336ra397.js";
|
|
29
29
|
import"./index-4rhhvd1a.js";
|
|
30
30
|
import"./index-zgwm4ryv.js";
|
|
31
|
-
import"./index-
|
|
31
|
+
import"./index-q8st0mtw.js";
|
|
32
32
|
import"./index-jqsfsqbx.js";
|
|
33
33
|
import"./index-zjygnfay.js";
|
|
34
34
|
import"./index-bk5tah7q.js";
|
|
@@ -29,24 +29,24 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-28jr28fg.js";
|
|
33
33
|
import"./index-k46me75h.js";
|
|
34
34
|
import"./index-ee3x66a5.js";
|
|
35
35
|
import"./index-ae75rja9.js";
|
|
36
36
|
import"./index-w7x7qxz2.js";
|
|
37
37
|
import"./index-erfnw81g.js";
|
|
38
38
|
import"./index-ed5ykebp.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-2n8y67b4.js";
|
|
40
40
|
import"./index-gprxjmm7.js";
|
|
41
41
|
import"./index-n832052r.js";
|
|
42
42
|
import"./index-k31en0ja.js";
|
|
43
43
|
import"./index-7g4c7s5r.js";
|
|
44
44
|
import"./index-s2rcz51a.js";
|
|
45
45
|
import"./index-4nt52yr9.js";
|
|
46
|
-
import"./index-
|
|
46
|
+
import"./index-336ra397.js";
|
|
47
47
|
import"./index-4rhhvd1a.js";
|
|
48
48
|
import"./index-zgwm4ryv.js";
|
|
49
|
-
import"./index-
|
|
49
|
+
import"./index-q8st0mtw.js";
|
|
50
50
|
import"./index-jqsfsqbx.js";
|
|
51
51
|
import"./index-zjygnfay.js";
|
|
52
52
|
import"./index-bk5tah7q.js";
|
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
26
|
+
} from "./index-kxpz3ncd.js";
|
|
27
27
|
import"./index-tq5s07ta.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-keskta0w.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
31
|
import"./index-w7x7qxz2.js";
|
|
32
32
|
import"./index-erfnw81g.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-6texwk9p.js";
|
|
8
|
+
import"./index-keskta0w.js";
|
|
9
9
|
import"./index-ae75rja9.js";
|
|
10
10
|
import"./index-w7x7qxz2.js";
|
|
11
11
|
import"./index-erfnw81g.js";
|
|
@@ -23,17 +23,17 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-9v53ez3a.js";
|
|
27
|
+
import"./index-sb16w4wj.js";
|
|
28
28
|
import"./index-556ja8an.js";
|
|
29
29
|
import"./index-k31en0ja.js";
|
|
30
30
|
import"./index-7g4c7s5r.js";
|
|
31
31
|
import"./index-s2rcz51a.js";
|
|
32
32
|
import"./index-4nt52yr9.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-336ra397.js";
|
|
34
34
|
import"./index-4rhhvd1a.js";
|
|
35
35
|
import"./index-zgwm4ryv.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-q8st0mtw.js";
|
|
37
37
|
import"./index-jqsfsqbx.js";
|
|
38
38
|
import"./index-zjygnfay.js";
|
|
39
39
|
import"./index-bk5tah7q.js";
|
|
@@ -33,29 +33,29 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
} from "./index-x6qq39e9.js";
|
|
37
|
+
import"./index-28jr28fg.js";
|
|
38
38
|
import"./index-k46me75h.js";
|
|
39
39
|
import"./index-ee3x66a5.js";
|
|
40
|
-
import"./index-
|
|
40
|
+
import"./index-kxpz3ncd.js";
|
|
41
41
|
import"./index-tq5s07ta.js";
|
|
42
42
|
import"./index-rtry5xyf.js";
|
|
43
|
-
import"./index-
|
|
43
|
+
import"./index-keskta0w.js";
|
|
44
44
|
import"./index-ae75rja9.js";
|
|
45
45
|
import"./index-w7x7qxz2.js";
|
|
46
46
|
import"./index-erfnw81g.js";
|
|
47
47
|
import"./index-ed5ykebp.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-2n8y67b4.js";
|
|
49
49
|
import"./index-gprxjmm7.js";
|
|
50
50
|
import"./index-n832052r.js";
|
|
51
51
|
import"./index-k31en0ja.js";
|
|
52
52
|
import"./index-7g4c7s5r.js";
|
|
53
53
|
import"./index-s2rcz51a.js";
|
|
54
54
|
import"./index-4nt52yr9.js";
|
|
55
|
-
import"./index-
|
|
55
|
+
import"./index-336ra397.js";
|
|
56
56
|
import"./index-4rhhvd1a.js";
|
|
57
57
|
import"./index-zgwm4ryv.js";
|
|
58
|
-
import"./index-
|
|
58
|
+
import"./index-q8st0mtw.js";
|
|
59
59
|
import"./index-jqsfsqbx.js";
|
|
60
60
|
import"./index-zjygnfay.js";
|
|
61
61
|
import"./index-bk5tah7q.js";
|
|
@@ -20,58 +20,58 @@ import {
|
|
|
20
20
|
sanitizeWorktreeTaskId,
|
|
21
21
|
standardWorktreeByCallID,
|
|
22
22
|
standardWorktreeSerializationSessions
|
|
23
|
-
} from "./index-
|
|
23
|
+
} from "./index-m4v9kab1.js";
|
|
24
24
|
import"./index-4905hd2m.js";
|
|
25
25
|
import"./index-ebwznsfy.js";
|
|
26
26
|
import"./index-y9h2vqf6.js";
|
|
27
|
-
import"./index-
|
|
27
|
+
import"./index-n96ay8w4.js";
|
|
28
28
|
import"./index-c8s9a3zh.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-r0tn9kpa.js";
|
|
30
|
+
import"./index-fprxtq3q.js";
|
|
31
31
|
import"./index-134d35c1.js";
|
|
32
32
|
import"./index-k92cagmt.js";
|
|
33
33
|
import"./index-y8552snf.js";
|
|
34
34
|
import"./index-9ss2m4rs.js";
|
|
35
35
|
import"./index-74hpm6sh.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
import"./index-x6qq39e9.js";
|
|
37
|
+
import"./index-htmsm37t.js";
|
|
38
|
+
import"./index-6texwk9p.js";
|
|
39
39
|
import"./index-xmzmeknp.js";
|
|
40
40
|
import"./index-82m5kwtd.js";
|
|
41
41
|
import"./index-zsrtt42s.js";
|
|
42
42
|
import"./index-qwm6vdyv.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
43
|
+
import"./index-fhxh447f.js";
|
|
44
|
+
import"./index-g0pbvfhw.js";
|
|
45
45
|
import"./index-7c4bxgdh.js";
|
|
46
46
|
import"./index-8fwhhayc.js";
|
|
47
47
|
import"./index-q1exe2b3.js";
|
|
48
|
-
import"./index-
|
|
48
|
+
import"./index-28jr28fg.js";
|
|
49
49
|
import"./index-k46me75h.js";
|
|
50
50
|
import"./index-ee3x66a5.js";
|
|
51
|
-
import"./index-
|
|
51
|
+
import"./index-kxpz3ncd.js";
|
|
52
52
|
import"./index-tq5s07ta.js";
|
|
53
53
|
import"./index-rtry5xyf.js";
|
|
54
|
-
import"./index-
|
|
54
|
+
import"./index-keskta0w.js";
|
|
55
55
|
import"./index-ae75rja9.js";
|
|
56
56
|
import"./index-w7x7qxz2.js";
|
|
57
57
|
import"./index-erfnw81g.js";
|
|
58
58
|
import"./index-ed5ykebp.js";
|
|
59
59
|
import {
|
|
60
60
|
resolveWorktreeIsolationConfig
|
|
61
|
-
} from "./index-
|
|
61
|
+
} from "./index-2n8y67b4.js";
|
|
62
62
|
import"./index-gprxjmm7.js";
|
|
63
63
|
import"./index-n832052r.js";
|
|
64
|
-
import"./index-
|
|
65
|
-
import"./index-
|
|
64
|
+
import"./index-9v53ez3a.js";
|
|
65
|
+
import"./index-sb16w4wj.js";
|
|
66
66
|
import"./index-556ja8an.js";
|
|
67
67
|
import"./index-k31en0ja.js";
|
|
68
68
|
import"./index-7g4c7s5r.js";
|
|
69
69
|
import"./index-s2rcz51a.js";
|
|
70
70
|
import"./index-4nt52yr9.js";
|
|
71
|
-
import"./index-
|
|
71
|
+
import"./index-336ra397.js";
|
|
72
72
|
import"./index-4rhhvd1a.js";
|
|
73
73
|
import"./index-zgwm4ryv.js";
|
|
74
|
-
import"./index-
|
|
74
|
+
import"./index-q8st0mtw.js";
|
|
75
75
|
import"./index-jqsfsqbx.js";
|
|
76
76
|
import"./index-zjygnfay.js";
|
|
77
77
|
import"./index-bk5tah7q.js";
|
|
@@ -221,6 +221,15 @@ export interface CoverageMissDiagnostic {
|
|
|
221
221
|
expectedSnippet: string;
|
|
222
222
|
foundSnippet: string;
|
|
223
223
|
divergenceOffset: number;
|
|
224
|
+
/**
|
|
225
|
+
* Issue #2204: the longest matching prefix fell under
|
|
226
|
+
* `COVERAGE_DIAG_MIN_PREFIX`, so the "divergence" is coincidental
|
|
227
|
+
* punctuation/noise rather than a real aligned prefix — the requirement
|
|
228
|
+
* text is effectively absent from ACCEPTANCE. Renderers must emit the
|
|
229
|
+
* "requirement text completely missing" fallback instead of a
|
|
230
|
+
* divergence pointer.
|
|
231
|
+
*/
|
|
232
|
+
completelyMissing?: boolean;
|
|
224
233
|
corruptionHint?: string;
|
|
225
234
|
}
|
|
226
235
|
/**
|
|
@@ -237,6 +246,30 @@ export declare function describeCoverageMiss(params: {
|
|
|
237
246
|
normalizedExpected: string;
|
|
238
247
|
normalizedAcceptance: string;
|
|
239
248
|
}): CoverageMissDiagnostic;
|
|
249
|
+
/**
|
|
250
|
+
* Builds the ACCEPTANCE_FIELD_COVERAGE_MISMATCH error (#1687/#1896/#2063/#2204
|
|
251
|
+
* contract). Exported pure so the message contract — normalized-compare note,
|
|
252
|
+
* divergence pointer vs #2204 completely-missing fallback, mojibake warning,
|
|
253
|
+
* fenced paste-ready requirement body with its cap, and the anti-spelunking
|
|
254
|
+
* directive — stays unit-testable even though #2205's injection makes the
|
|
255
|
+
* toolBefore throw structurally unreachable today (injection and the
|
|
256
|
+
* coverage recheck share the same field list, id-resolution, and
|
|
257
|
+
* normalization logic, so whatever injection covers, the recheck also
|
|
258
|
+
* considers covered). This stays wired as defense-in-depth against a FUTURE
|
|
259
|
+
* divergence — e.g. someone edits `injectSpecRequirementsIntoAcceptance`'s
|
|
260
|
+
* field list, unknown-id handling, or normalization without updating
|
|
261
|
+
* `checkAcceptanceCoversFrRefs` to match, or vice versa.
|
|
262
|
+
*/
|
|
263
|
+
export declare function buildAcceptanceCoverageMismatchError(params: {
|
|
264
|
+
targetAgent: string;
|
|
265
|
+
coverageTaskId: string | null;
|
|
266
|
+
coverageResult: {
|
|
267
|
+
covered: boolean;
|
|
268
|
+
missingId?: string;
|
|
269
|
+
diagnostic?: CoverageMissDiagnostic;
|
|
270
|
+
expectedBody?: string;
|
|
271
|
+
};
|
|
272
|
+
}): Error;
|
|
240
273
|
/**
|
|
241
274
|
* FR-001/FR-002/FR-005/SC-001/SC-002/SC-006 (issue #1687): mechanical coverage
|
|
242
275
|
* check that the ACCEPTANCE text CONTAINS the verbatim requirement body for each
|
|
@@ -264,6 +297,38 @@ export declare function checkAcceptanceCoversFrRefs(params: {
|
|
|
264
297
|
diagnostic?: CoverageMissDiagnostic;
|
|
265
298
|
expectedBody?: string;
|
|
266
299
|
};
|
|
300
|
+
/** Args fields (in precedence order) that may carry the ACCEPTANCE header. */
|
|
301
|
+
declare const ACCEPTANCE_ARGS_FIELDS: readonly ["prompt", "description", "task", "input", "message"];
|
|
302
|
+
export interface AcceptanceInjectionOutcome {
|
|
303
|
+
/** The args field that carried the ACCEPTANCE header and was mutated. */
|
|
304
|
+
field: (typeof ACCEPTANCE_ARGS_FIELDS)[number];
|
|
305
|
+
/** Spec ids whose verbatim bodies were appended. */
|
|
306
|
+
injectedIds: string[];
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Issue #2205: programmatically guarantee verbatim FR/SC fidelity in the
|
|
310
|
+
* ACCEPTANCE field. The architect lists the task's mapped FR-###/SC-### ids on
|
|
311
|
+
* the ACCEPTANCE line (or pastes bodies itself, legacy style); this helper
|
|
312
|
+
* appends the VERBATIM requirement body from .swarm/spec.md — prefixed with the
|
|
313
|
+
* id, on its own line inside the ACCEPTANCE section — for every mapped id the
|
|
314
|
+
* current ACCEPTANCE text does not already cover, mutating the args field in
|
|
315
|
+
* place so the downstream coder/reviewer receives the exact requirement text.
|
|
316
|
+
*
|
|
317
|
+
* Coverage uses the SAME normalized-substring test as
|
|
318
|
+
* `checkAcceptanceCoversFrRefs` (shared helpers, no drift), so:
|
|
319
|
+
* - an already-verbatim legacy dispatch is a no-op;
|
|
320
|
+
* - an id missing from spec.md is skipped (fail-open, mirrored semantics);
|
|
321
|
+
* - after injection, every extractable id is covered by construction.
|
|
322
|
+
*
|
|
323
|
+
* Returns null when nothing was injected (no ACCEPTANCE header in any field,
|
|
324
|
+
* or every mapped id already covered). Throws never — mechanical failures are
|
|
325
|
+
* the caller's concern (the coverage block is already fail-open).
|
|
326
|
+
*/
|
|
327
|
+
export declare function injectSpecRequirementsIntoAcceptance(params: {
|
|
328
|
+
args: Record<string, unknown>;
|
|
329
|
+
frRefs: string[];
|
|
330
|
+
specText: string;
|
|
331
|
+
}): AcceptanceInjectionOutcome | null;
|
|
267
332
|
interface MessageInfo {
|
|
268
333
|
role: string;
|
|
269
334
|
agent?: string;
|