opencode-swarm 7.125.2 → 7.125.3
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/dist/cli/{config-doctor-8df6hk58.js → config-doctor-rm1m07gz.js} +2 -2
- package/dist/cli/{core-d38hc85b.js → core-v1kp7anb.js} +2 -2
- package/dist/cli/{curation-policy-7pvghg6f.js → curation-policy-7pgdjt5w.js} +2 -2
- package/dist/cli/{curator-dw2zb74h.js → curator-arwm18td.js} +16 -16
- package/dist/cli/{curator-drift-h9a2sjvf.js → curator-drift-24bdacdc.js} +2 -2
- package/dist/cli/{curator-llm-factory-bntt6v8j.js → curator-llm-factory-yq5vf298.js} +16 -16
- package/dist/cli/{evidence-summary-service-v4h2w487.js → evidence-summary-service-thx1c3me.js} +3 -3
- package/dist/cli/{guardrail-explain-vmr4db9n.js → guardrail-explain-mscq3veq.js} +17 -17
- package/dist/cli/{guardrail-log-8prd6cnc.js → guardrail-log-6a2zxvtx.js} +3 -3
- package/dist/cli/{hive-promoter-xymt9vf2.js → hive-promoter-q79naynh.js} +16 -16
- package/dist/cli/{index-ptmhxsaf.js → index-01n43w2p.js} +4 -4
- package/dist/cli/{index-qcrah1jk.js → index-414r47r7.js} +3 -3
- package/dist/cli/{index-pgya7cnn.js → index-45mvd5q7.js} +4 -4
- package/dist/cli/index-4rhhvd1a.js +62 -0
- package/dist/cli/{index-1s7jzcsy.js → index-4ycq2mrp.js} +1 -1
- package/dist/cli/{index-yrk6hfp1.js → index-7p6jkkat.js} +18 -18
- package/dist/cli/{index-39p1yyag.js → index-8tjbq2ej.js} +1 -1
- package/dist/cli/{index-s9mj4rb9.js → index-9ss2m4rs.js} +1 -1
- package/dist/cli/{index-j8ptbcxz.js → index-ambnwnmt.js} +15 -6
- package/dist/cli/{index-zbsxek49.js → index-emzes7sj.js} +3 -3
- package/dist/cli/{index-tdpct4cz.js → index-fm4zfxnr.js} +1 -1
- package/dist/cli/{index-v2rdhwx8.js → index-g4ef4v3m.js} +1 -1
- package/dist/cli/{index-fs02c7tz.js → index-kk1scggc.js} +1 -1
- package/dist/cli/{index-8ed9rz7y.js → index-m5e00g9s.js} +44 -42
- package/dist/cli/{index-92xyawa7.js → index-pk099nqv.js} +87 -6
- package/dist/cli/{index-7ne6q2a0.js → index-rp5msv7n.js} +1 -1
- package/dist/cli/{index-7mtvvt8p.js → index-sa3dgpmc.js} +2 -2
- package/dist/cli/{index-v3f7jvm8.js → index-vdfewvn5.js} +5 -5
- package/dist/cli/{index-em4h33my.js → index-x8entmky.js} +2 -2
- package/dist/cli/{index-sxdh19nk.js → index-xezv6tdw.js} +1 -1
- package/dist/cli/index.js +16 -16
- package/dist/cli/{knowledge-escalator-47hfstmk.js → knowledge-escalator-gr8qd7kz.js} +3 -3
- package/dist/cli/{knowledge-events-j5dpp72w.js → knowledge-events-q83g3f8z.js} +1 -1
- package/dist/cli/{knowledge-store-58gt7m85.js → knowledge-store-qq3w5yt8.js} +1 -1
- package/dist/cli/{knowledge-validator-jjxw5mwc.js → knowledge-validator-7jhq8yam.js} +4 -4
- package/dist/cli/{scan-cursor-h8we8dfv.js → scan-cursor-fa5sy36q.js} +2 -2
- package/dist/cli/{schema-xpqbhcyp.js → schema-bw68my66.js} +3 -1
- package/dist/cli/{skill-generator-k8d0vff0.js → skill-generator-ffc1agyw.js} +6 -6
- package/dist/config/loader.d.ts +14 -0
- package/dist/config/schema.d.ts +6 -0
- package/dist/index.js +6 -6
- package/dist/services/config-doctor.d.ts +14 -2
- package/dist/services/warning-buffer.d.ts +24 -5
- package/package.json +1 -1
- package/dist/cli/index-gacm5s2n.js +0 -34
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
shouldRunOnStartup,
|
|
13
13
|
writeBackupArtifact,
|
|
14
14
|
writeDoctorArtifact
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-pk099nqv.js";
|
|
16
|
+
import"./index-414r47r7.js";
|
|
17
17
|
import"./index-bk5tah7q.js";
|
|
18
18
|
import"./index-z6xqpmqg.js";
|
|
19
19
|
import"./index-zjygnfay.js";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
resolveWorktreeBaseDir,
|
|
15
15
|
shortenWorktreePath,
|
|
16
16
|
writeLaneProfileToDiskReal
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
17
|
+
} from "./index-g4ef4v3m.js";
|
|
18
|
+
import"./index-4rhhvd1a.js";
|
|
19
19
|
import"./index-z6xqpmqg.js";
|
|
20
20
|
import"./index-zjygnfay.js";
|
|
21
21
|
import"./index-zgwm4ryv.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
authorizeCuration,
|
|
5
5
|
buildConfigFingerprintInput,
|
|
6
6
|
readCohortConfigFingerprint
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-rp5msv7n.js";
|
|
8
8
|
import"./index-rtry5xyf.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-fm4zfxnr.js";
|
|
10
10
|
import"./index-ae75rja9.js";
|
|
11
11
|
import"./index-q27bajqb.js";
|
|
12
12
|
import"./index-zgwm4ryv.js";
|
|
@@ -14,39 +14,39 @@ import {
|
|
|
14
14
|
runCuratorInit,
|
|
15
15
|
runCuratorPhase,
|
|
16
16
|
writeCuratorSummary
|
|
17
|
-
} from "./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
17
|
+
} from "./index-m5e00g9s.js";
|
|
18
|
+
import"./index-xezv6tdw.js";
|
|
19
|
+
import"./index-pk099nqv.js";
|
|
20
|
+
import"./index-kk1scggc.js";
|
|
21
21
|
import"./index-4905hd2m.js";
|
|
22
22
|
import"./index-134d35c1.js";
|
|
23
23
|
import"./index-6n2jpz7x.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
24
|
+
import"./index-01n43w2p.js";
|
|
25
|
+
import"./index-vdfewvn5.js";
|
|
26
|
+
import"./index-8tjbq2ej.js";
|
|
27
27
|
import"./index-vxv732ex.js";
|
|
28
28
|
import"./index-c8s9a3zh.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-9ss2m4rs.js";
|
|
30
30
|
import"./index-23zsx7dm.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-sa3dgpmc.js";
|
|
32
|
+
import"./index-rp5msv7n.js";
|
|
33
33
|
import"./index-rtry5xyf.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
import"./index-45mvd5q7.js";
|
|
35
|
+
import"./index-fm4zfxnr.js";
|
|
36
36
|
import"./index-ae75rja9.js";
|
|
37
37
|
import"./index-q27bajqb.js";
|
|
38
|
-
import"./index-
|
|
38
|
+
import"./index-ambnwnmt.js";
|
|
39
39
|
import"./index-k5jrywpr.js";
|
|
40
40
|
import"./index-n832052r.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-414r47r7.js";
|
|
42
42
|
import"./index-bk5tah7q.js";
|
|
43
43
|
import"./index-8fwhhayc.js";
|
|
44
44
|
import"./index-q1exe2b3.js";
|
|
45
45
|
import"./index-gnvg72y1.js";
|
|
46
46
|
import"./index-2tn5h2zp.js";
|
|
47
47
|
import"./index-1kz6da87.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
48
|
+
import"./index-g4ef4v3m.js";
|
|
49
|
+
import"./index-4rhhvd1a.js";
|
|
50
50
|
import"./index-0cz1ws47.js";
|
|
51
51
|
import"./index-2445sx3d.js";
|
|
52
52
|
import"./index-z6xqpmqg.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
} from "./index-c8s9a3zh.js";
|
|
5
5
|
import {
|
|
6
6
|
readEffectiveSpecSync
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-9ss2m4rs.js";
|
|
8
8
|
import"./index-n832052r.js";
|
|
9
|
-
import"./index-
|
|
9
|
+
import"./index-4rhhvd1a.js";
|
|
10
10
|
import {
|
|
11
11
|
readSwarmFileAsync,
|
|
12
12
|
validateSwarmPath
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
createCuratorLLMDelegate
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
4
|
+
} from "./index-m5e00g9s.js";
|
|
5
|
+
import"./index-xezv6tdw.js";
|
|
6
|
+
import"./index-pk099nqv.js";
|
|
7
|
+
import"./index-kk1scggc.js";
|
|
8
8
|
import"./index-4905hd2m.js";
|
|
9
9
|
import"./index-134d35c1.js";
|
|
10
10
|
import"./index-6n2jpz7x.js";
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
11
|
+
import"./index-01n43w2p.js";
|
|
12
|
+
import"./index-vdfewvn5.js";
|
|
13
|
+
import"./index-8tjbq2ej.js";
|
|
14
14
|
import"./index-vxv732ex.js";
|
|
15
15
|
import"./index-c8s9a3zh.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-9ss2m4rs.js";
|
|
17
17
|
import"./index-23zsx7dm.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
18
|
+
import"./index-sa3dgpmc.js";
|
|
19
|
+
import"./index-rp5msv7n.js";
|
|
20
20
|
import"./index-rtry5xyf.js";
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
import"./index-45mvd5q7.js";
|
|
22
|
+
import"./index-fm4zfxnr.js";
|
|
23
23
|
import"./index-ae75rja9.js";
|
|
24
24
|
import"./index-q27bajqb.js";
|
|
25
|
-
import"./index-
|
|
25
|
+
import"./index-ambnwnmt.js";
|
|
26
26
|
import"./index-k5jrywpr.js";
|
|
27
27
|
import"./index-n832052r.js";
|
|
28
|
-
import"./index-
|
|
28
|
+
import"./index-414r47r7.js";
|
|
29
29
|
import"./index-bk5tah7q.js";
|
|
30
30
|
import"./index-8fwhhayc.js";
|
|
31
31
|
import"./index-q1exe2b3.js";
|
|
32
32
|
import"./index-gnvg72y1.js";
|
|
33
33
|
import"./index-2tn5h2zp.js";
|
|
34
34
|
import"./index-1kz6da87.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
35
|
+
import"./index-g4ef4v3m.js";
|
|
36
|
+
import"./index-4rhhvd1a.js";
|
|
37
37
|
import"./index-0cz1ws47.js";
|
|
38
38
|
import"./index-2445sx3d.js";
|
|
39
39
|
import"./index-z6xqpmqg.js";
|
package/dist/cli/{evidence-summary-service-v4h2w487.js → evidence-summary-service-thx1c3me.js}
RENAMED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadPlanJsonOnly,
|
|
7
7
|
mergeDurableGateEntriesFromEvidence,
|
|
8
8
|
readDurableGateEvidence
|
|
9
|
-
} from "./index-
|
|
10
|
-
import"./index-
|
|
9
|
+
} from "./index-kk1scggc.js";
|
|
10
|
+
import"./index-9ss2m4rs.js";
|
|
11
11
|
import"./index-k5jrywpr.js";
|
|
12
12
|
import"./index-n832052r.js";
|
|
13
13
|
import"./index-q1exe2b3.js";
|
|
14
14
|
import"./index-2tn5h2zp.js";
|
|
15
15
|
import"./index-1kz6da87.js";
|
|
16
|
-
import"./index-
|
|
16
|
+
import"./index-4rhhvd1a.js";
|
|
17
17
|
import"./index-2445sx3d.js";
|
|
18
18
|
import"./index-z6xqpmqg.js";
|
|
19
19
|
import"./index-zjygnfay.js";
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
8
|
-
import"./index-
|
|
4
|
+
} from "./index-x8entmky.js";
|
|
5
|
+
import"./index-m5e00g9s.js";
|
|
6
|
+
import"./index-xezv6tdw.js";
|
|
7
|
+
import"./index-pk099nqv.js";
|
|
8
|
+
import"./index-kk1scggc.js";
|
|
9
9
|
import"./index-4905hd2m.js";
|
|
10
10
|
import"./index-134d35c1.js";
|
|
11
11
|
import"./index-6n2jpz7x.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
12
|
+
import"./index-01n43w2p.js";
|
|
13
|
+
import"./index-vdfewvn5.js";
|
|
14
|
+
import"./index-8tjbq2ej.js";
|
|
15
15
|
import"./index-vxv732ex.js";
|
|
16
16
|
import"./index-c8s9a3zh.js";
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-9ss2m4rs.js";
|
|
18
18
|
import"./index-23zsx7dm.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
19
|
+
import"./index-sa3dgpmc.js";
|
|
20
|
+
import"./index-rp5msv7n.js";
|
|
21
21
|
import"./index-rtry5xyf.js";
|
|
22
|
-
import"./index-
|
|
23
|
-
import"./index-
|
|
22
|
+
import"./index-45mvd5q7.js";
|
|
23
|
+
import"./index-fm4zfxnr.js";
|
|
24
24
|
import"./index-ae75rja9.js";
|
|
25
25
|
import"./index-q27bajqb.js";
|
|
26
|
-
import"./index-
|
|
26
|
+
import"./index-ambnwnmt.js";
|
|
27
27
|
import"./index-k5jrywpr.js";
|
|
28
28
|
import"./index-n832052r.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-414r47r7.js";
|
|
30
30
|
import"./index-bk5tah7q.js";
|
|
31
31
|
import"./index-8fwhhayc.js";
|
|
32
32
|
import"./index-q1exe2b3.js";
|
|
33
33
|
import"./index-gnvg72y1.js";
|
|
34
34
|
import"./index-2tn5h2zp.js";
|
|
35
35
|
import"./index-1kz6da87.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
36
|
+
import"./index-g4ef4v3m.js";
|
|
37
|
+
import"./index-4rhhvd1a.js";
|
|
38
38
|
import"./index-0cz1ws47.js";
|
|
39
39
|
import"./index-2445sx3d.js";
|
|
40
40
|
import"./index-z6xqpmqg.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailLog
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
6
|
-
import"./index-
|
|
4
|
+
} from "./index-4ycq2mrp.js";
|
|
5
|
+
import"./index-xezv6tdw.js";
|
|
6
|
+
import"./index-414r47r7.js";
|
|
7
7
|
import"./index-bk5tah7q.js";
|
|
8
8
|
import"./index-z6xqpmqg.js";
|
|
9
9
|
import"./index-zjygnfay.js";
|
|
@@ -7,41 +7,41 @@ import {
|
|
|
7
7
|
isHiveEligible,
|
|
8
8
|
promoteFromSwarm,
|
|
9
9
|
promoteToHive
|
|
10
|
-
} from "./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
10
|
+
} from "./index-m5e00g9s.js";
|
|
11
|
+
import"./index-xezv6tdw.js";
|
|
12
|
+
import"./index-pk099nqv.js";
|
|
13
|
+
import"./index-kk1scggc.js";
|
|
14
14
|
import"./index-4905hd2m.js";
|
|
15
15
|
import"./index-134d35c1.js";
|
|
16
16
|
import"./index-6n2jpz7x.js";
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
17
|
+
import"./index-01n43w2p.js";
|
|
18
|
+
import"./index-vdfewvn5.js";
|
|
19
|
+
import"./index-8tjbq2ej.js";
|
|
20
20
|
import"./index-vxv732ex.js";
|
|
21
21
|
import"./index-c8s9a3zh.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-9ss2m4rs.js";
|
|
23
23
|
import"./index-23zsx7dm.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-sa3dgpmc.js";
|
|
25
|
+
import"./index-rp5msv7n.js";
|
|
26
26
|
import"./index-rtry5xyf.js";
|
|
27
27
|
import {
|
|
28
28
|
resolveHiveKnowledgePath
|
|
29
|
-
} from "./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
} from "./index-45mvd5q7.js";
|
|
30
|
+
import"./index-fm4zfxnr.js";
|
|
31
31
|
import"./index-ae75rja9.js";
|
|
32
32
|
import"./index-q27bajqb.js";
|
|
33
|
-
import"./index-
|
|
33
|
+
import"./index-ambnwnmt.js";
|
|
34
34
|
import"./index-k5jrywpr.js";
|
|
35
35
|
import"./index-n832052r.js";
|
|
36
|
-
import"./index-
|
|
36
|
+
import"./index-414r47r7.js";
|
|
37
37
|
import"./index-bk5tah7q.js";
|
|
38
38
|
import"./index-8fwhhayc.js";
|
|
39
39
|
import"./index-q1exe2b3.js";
|
|
40
40
|
import"./index-gnvg72y1.js";
|
|
41
41
|
import"./index-2tn5h2zp.js";
|
|
42
42
|
import"./index-1kz6da87.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
43
|
+
import"./index-g4ef4v3m.js";
|
|
44
|
+
import"./index-4rhhvd1a.js";
|
|
45
45
|
import"./index-0cz1ws47.js";
|
|
46
46
|
import"./index-2445sx3d.js";
|
|
47
47
|
import"./index-z6xqpmqg.js";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ALLOWED_SKILL_PATH_PREFIXES,
|
|
4
4
|
validateSkillPath
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-sa3dgpmc.js";
|
|
6
6
|
import {
|
|
7
7
|
computeOutcomeSignal,
|
|
8
8
|
readKnowledge,
|
|
9
9
|
resolveHiveKnowledgePath,
|
|
10
10
|
resolveSwarmKnowledgePath,
|
|
11
11
|
transactKnowledge
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-45mvd5q7.js";
|
|
13
13
|
import {
|
|
14
14
|
effectiveRetrievalOutcomes,
|
|
15
15
|
readKnowledgeCounterRollups
|
|
16
|
-
} from "./index-
|
|
16
|
+
} from "./index-fm4zfxnr.js";
|
|
17
17
|
import {
|
|
18
18
|
init_knowledge_types,
|
|
19
19
|
isActiveStatus
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
advisoryWarn,
|
|
23
23
|
init_warning_buffer
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-4rhhvd1a.js";
|
|
25
25
|
import {
|
|
26
26
|
init_logger,
|
|
27
27
|
log,
|
|
@@ -1118,7 +1118,7 @@ function resolveExternalSkillsConfig(input) {
|
|
|
1118
1118
|
};
|
|
1119
1119
|
return merged;
|
|
1120
1120
|
}
|
|
1121
|
-
var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, PluginConfigSchema;
|
|
1121
|
+
var _internals, SEPARATORS, CANONICAL_ROLES_LONGEST_FIRST, CANONICAL_ROLES_SET, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX = 3, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchemaBase, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchemaBase, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationAudienceSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilMemberConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, PluginConfigSchema;
|
|
1122
1122
|
var init_schema = __esm(() => {
|
|
1123
1123
|
init_zod();
|
|
1124
1124
|
init_knowledge_types();
|
|
@@ -1145,7 +1145,7 @@ var init_schema = __esm(() => {
|
|
|
1145
1145
|
variant: exports_external.string().min(1).optional(),
|
|
1146
1146
|
temperature: exports_external.number().min(0).max(2).optional(),
|
|
1147
1147
|
disabled: exports_external.boolean().optional(),
|
|
1148
|
-
fallback_models: exports_external.array(exports_external.string()).max(
|
|
1148
|
+
fallback_models: exports_external.array(exports_external.string()).max(FALLBACK_MODELS_MAX).optional(),
|
|
1149
1149
|
reasoning: AgentReasoningConfigSchema.optional(),
|
|
1150
1150
|
thinking: AgentThinkingConfigSchema.optional()
|
|
1151
1151
|
});
|
|
@@ -2503,4 +2503,4 @@ var init_schema = __esm(() => {
|
|
|
2503
2503
|
});
|
|
2504
2504
|
});
|
|
2505
2505
|
|
|
2506
|
-
export { QA_AGENTS, PIPELINE_AGENTS, ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, init_agent_names, TOOL_NAMES, TOOL_NAME_SET, AGENT_TOOL_MAP, init_tool_metadata, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, isQAAgent, isSubagent, DEFAULT_WORKTREE_ISOLATION_CONFIG, init_constants, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema, init_schema };
|
|
2506
|
+
export { QA_AGENTS, PIPELINE_AGENTS, ORCHESTRATOR_NAME, ALL_SUBAGENT_NAMES, ALL_AGENT_NAMES, init_agent_names, TOOL_NAMES, TOOL_NAME_SET, AGENT_TOOL_MAP, init_tool_metadata, DEFAULT_MODELS, DEFAULT_AGENT_CONFIGS, isQAAgent, isSubagent, DEFAULT_WORKTREE_ISOLATION_CONFIG, init_constants, _internals, isKnownCanonicalRole, getCanonicalAgentRole, resolveGeneratedAgentRole, stripKnownSwarmPrefix, AgentReasoningConfigSchema, AgentThinkingConfigSchema, FALLBACK_MODELS_MAX, AgentOverrideConfigSchema, SwarmConfigSchema, ModelPricingConfigSchema, PricingConfigSchema, HooksConfigSchema, ScoringWeightsSchema, DecisionDecaySchema, TokenRatiosSchema, ScoringConfigSchema, ContextBudgetConfigSchema, EvidenceConfigSchema, GateFeatureSchema, PlaceholderScanConfigSchema, QualityBudgetConfigSchema, GATE_CONFIG_KNOWN_SECTION_KEYS, GateConfigSchema, PipelineConfigSchema, PhaseCompleteConfigSchema, SummaryConfigSchema, ReviewPassesConfigSchema, AutoReviewConfigSchema, AdversarialDetectionConfigSchema, AdversarialTestingConfigSchema, IntegrationAnalysisConfigSchema, DocsConfigSchema, DesignDocsConfigSchema, UIReviewConfigSchema, CompactionAdvisoryConfigSchema, LintConfigSchema, SecretscanConfigSchema, GuardrailsProfileSchema, DEFAULT_AGENT_PROFILES, DEFAULT_ARCHITECT_PROFILE, GuardrailsConfigSchema, WatchdogConfigSchema, SelfReviewConfigSchema, resolveGuardrailsConfig, ToolFilterConfigSchema, PlanCursorConfigSchema, ContextMapConfigSchema, RepoGraphConfigSchema, CheckpointConfigSchema, ApplyPatchConfigSchema, AutomationModeSchema, AutomationCapabilitiesSchema, AutomationConfigSchema, KnowledgeConfigSchema, MemoryConfigSchema, CuratorConfigSchema, ArchitecturalSupervisionConfigSchema, KnowledgeApplicationConfigSchema, SkillPropagationConfigSchema, SkillImproverConfigSchema, SkillsConfigSchema, SpecWriterConfigSchema, SlopDetectorConfigSchema, IncrementalVerifyConfigSchema, CompactionConfigSchema, PrmConfigSchema, AgentAuthorityRuleSchema, AuthorityConfigSchema, GeneralCouncilConfigSchema, CouncilConfigSchema, PrMonitorConfigSchema, ParallelizationConfigSchema, WorktreeIsolationConfigSchema, LeanTurboConfigSchema, EpicConfigSchema, StandardTurboConfigSchema, LeanTurboStrategyConfigSchema, TurboConfigSchema, ExternalSkillCandidateSourceTypeSchema, ExternalSkillCandidateEvaluationVerdictSchema, DiscoverySourceSchema, ExternalSkillCandidateSchema, ExternalSkillsConfigSchema, DEFAULT_EXTERNAL_SKILLS_CONFIG, DEFAULT_SKILLS_CONFIG, resolveExternalSkillsConfig, PluginConfigSchema, init_schema };
|
|
@@ -650,7 +650,7 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
650
650
|
const recovered = touched.filter((e) => e.confidence > CONFIDENCE_FLOOR + FLOOR_EPSILON && e.confidence_floor_demoted);
|
|
651
651
|
if (atFloor.length === 0 && recovered.length === 0)
|
|
652
652
|
return;
|
|
653
|
-
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-
|
|
653
|
+
const { readKnowledgeCounterRollups, effectiveRetrievalOutcomes } = await import("./knowledge-events-q83g3f8z.js");
|
|
654
654
|
const rollups = await readKnowledgeCounterRollups(directory);
|
|
655
655
|
const flagIds = new Set;
|
|
656
656
|
for (const e of atFloor) {
|
|
@@ -717,11 +717,11 @@ async function applyConfidenceFloorAction(directory, touched, options) {
|
|
|
717
717
|
});
|
|
718
718
|
}
|
|
719
719
|
if (action === "quarantine" && toQuarantine.length > 0) {
|
|
720
|
-
const { quarantineEntry } = await import("./knowledge-validator-
|
|
721
|
-
const { KnowledgeConfigSchema } = await import("./schema-
|
|
720
|
+
const { quarantineEntry } = await import("./knowledge-validator-7jhq8yam.js");
|
|
721
|
+
const { KnowledgeConfigSchema } = await import("./schema-bw68my66.js");
|
|
722
722
|
let config;
|
|
723
723
|
try {
|
|
724
|
-
const { loadPluginConfigWithMeta } = await import("./index-
|
|
724
|
+
const { loadPluginConfigWithMeta } = await import("./index-emzes7sj.js");
|
|
725
725
|
const { config: loadedConfig } = loadPluginConfigWithMeta(directory);
|
|
726
726
|
config = KnowledgeConfigSchema.parse(loadedConfig.knowledge ?? {});
|
|
727
727
|
} catch {
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
init_logger,
|
|
4
|
+
log
|
|
5
|
+
} from "./index-zgwm4ryv.js";
|
|
6
|
+
import {
|
|
7
|
+
__esm
|
|
8
|
+
} from "./index-a76rekgs.js";
|
|
9
|
+
|
|
10
|
+
// src/services/warning-buffer.ts
|
|
11
|
+
function sanitizeBufferedLine(s) {
|
|
12
|
+
return s.replace(/\s+/g, " ").replace(CONTROL_CHARS_RE, "").replace(/\s+/g, " ").trim();
|
|
13
|
+
}
|
|
14
|
+
function addDeferredWarning(warning) {
|
|
15
|
+
const sanitized = sanitizeBufferedLine(warning);
|
|
16
|
+
if (deferredWarnings.length < MAX_DEFERRED_WARNINGS - 1) {
|
|
17
|
+
deferredWarnings.push(sanitized);
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
if (!deferredWarningsTruncated) {
|
|
21
|
+
deferredWarnings.push(`[opencode-swarm] ${MAX_DEFERRED_WARNINGS - 1} deferred warnings buffered; additional advisories were dropped (cap reached). Run with OPENCODE_SWARM_DEBUG=1 to see all advisories in the debug log.`);
|
|
22
|
+
deferredWarningsTruncated = true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function renderAdvisoryDetail(data) {
|
|
26
|
+
if (data === undefined || data === null)
|
|
27
|
+
return "";
|
|
28
|
+
let raw;
|
|
29
|
+
if (typeof data === "string") {
|
|
30
|
+
raw = data;
|
|
31
|
+
} else if (data instanceof Error) {
|
|
32
|
+
raw = data.message;
|
|
33
|
+
} else if (Array.isArray(data) && data.every((d) => typeof d === "string")) {
|
|
34
|
+
raw = data.join("; ");
|
|
35
|
+
} else {
|
|
36
|
+
try {
|
|
37
|
+
raw = JSON.stringify(data) ?? String(data);
|
|
38
|
+
} catch {
|
|
39
|
+
raw = String(data);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const collapsed = sanitizeBufferedLine(raw);
|
|
43
|
+
if (collapsed === "")
|
|
44
|
+
return "";
|
|
45
|
+
return collapsed.length > MAX_ADVISORY_DETAIL_CHARS ? `${collapsed.slice(0, MAX_ADVISORY_DETAIL_CHARS - 1)}\u2026` : collapsed;
|
|
46
|
+
}
|
|
47
|
+
function advisoryWarn(message, data) {
|
|
48
|
+
const detail = renderAdvisoryDetail(data);
|
|
49
|
+
addDeferredWarning(detail ? `${message} ${detail}` : message);
|
|
50
|
+
log(message, data);
|
|
51
|
+
}
|
|
52
|
+
function getDeferredWarnings() {
|
|
53
|
+
return [...deferredWarnings];
|
|
54
|
+
}
|
|
55
|
+
var deferredWarnings, MAX_DEFERRED_WARNINGS = 50, deferredWarningsTruncated = false, CONTROL_CHARS_RE, MAX_ADVISORY_DETAIL_CHARS = 600;
|
|
56
|
+
var init_warning_buffer = __esm(() => {
|
|
57
|
+
init_logger();
|
|
58
|
+
deferredWarnings = [];
|
|
59
|
+
CONTROL_CHARS_RE = /[\x00-\x1F\x7F-\x9F]/g;
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export { advisoryWarn, getDeferredWarnings, init_warning_buffer };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
handleGuardrailExplain
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-x8entmky.js";
|
|
5
5
|
import {
|
|
6
6
|
handleGuardrailLog
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-4ycq2mrp.js";
|
|
8
8
|
import {
|
|
9
9
|
COMMAND_REGISTRY,
|
|
10
10
|
SWARM_COMMAND_TOOL_ALLOWLIST,
|
|
@@ -83,28 +83,28 @@ import {
|
|
|
83
83
|
handleWriteRetroCommand,
|
|
84
84
|
normalizeSwarmCommandInput,
|
|
85
85
|
resolveCommand
|
|
86
|
-
} from "./index-
|
|
87
|
-
import"./index-
|
|
88
|
-
import"./index-
|
|
89
|
-
import"./index-
|
|
86
|
+
} from "./index-m5e00g9s.js";
|
|
87
|
+
import"./index-xezv6tdw.js";
|
|
88
|
+
import"./index-pk099nqv.js";
|
|
89
|
+
import"./index-kk1scggc.js";
|
|
90
90
|
import"./index-4905hd2m.js";
|
|
91
91
|
import"./index-134d35c1.js";
|
|
92
92
|
import"./index-6n2jpz7x.js";
|
|
93
|
-
import"./index-
|
|
94
|
-
import"./index-
|
|
95
|
-
import"./index-
|
|
93
|
+
import"./index-01n43w2p.js";
|
|
94
|
+
import"./index-vdfewvn5.js";
|
|
95
|
+
import"./index-8tjbq2ej.js";
|
|
96
96
|
import"./index-vxv732ex.js";
|
|
97
97
|
import"./index-c8s9a3zh.js";
|
|
98
|
-
import"./index-
|
|
98
|
+
import"./index-9ss2m4rs.js";
|
|
99
99
|
import"./index-23zsx7dm.js";
|
|
100
|
-
import"./index-
|
|
101
|
-
import"./index-
|
|
100
|
+
import"./index-sa3dgpmc.js";
|
|
101
|
+
import"./index-rp5msv7n.js";
|
|
102
102
|
import"./index-rtry5xyf.js";
|
|
103
|
-
import"./index-
|
|
104
|
-
import"./index-
|
|
103
|
+
import"./index-45mvd5q7.js";
|
|
104
|
+
import"./index-fm4zfxnr.js";
|
|
105
105
|
import"./index-ae75rja9.js";
|
|
106
106
|
import"./index-q27bajqb.js";
|
|
107
|
-
import"./index-
|
|
107
|
+
import"./index-ambnwnmt.js";
|
|
108
108
|
import"./index-k5jrywpr.js";
|
|
109
109
|
import"./index-n832052r.js";
|
|
110
110
|
import {
|
|
@@ -113,15 +113,15 @@ import {
|
|
|
113
113
|
init_constants,
|
|
114
114
|
init_schema,
|
|
115
115
|
stripKnownSwarmPrefix
|
|
116
|
-
} from "./index-
|
|
116
|
+
} from "./index-414r47r7.js";
|
|
117
117
|
import"./index-bk5tah7q.js";
|
|
118
118
|
import"./index-8fwhhayc.js";
|
|
119
119
|
import"./index-q1exe2b3.js";
|
|
120
120
|
import"./index-gnvg72y1.js";
|
|
121
121
|
import"./index-2tn5h2zp.js";
|
|
122
122
|
import"./index-1kz6da87.js";
|
|
123
|
-
import"./index-
|
|
124
|
-
import"./index-
|
|
123
|
+
import"./index-g4ef4v3m.js";
|
|
124
|
+
import"./index-4rhhvd1a.js";
|
|
125
125
|
import"./index-0cz1ws47.js";
|
|
126
126
|
import"./index-2445sx3d.js";
|
|
127
127
|
import"./index-z6xqpmqg.js";
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
init_constants,
|
|
9
9
|
init_schema,
|
|
10
10
|
resolveExternalSkillsConfig
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-414r47r7.js";
|
|
12
12
|
import {
|
|
13
13
|
advisoryWarn,
|
|
14
14
|
init_warning_buffer
|
|
15
|
-
} from "./index-
|
|
15
|
+
} from "./index-4rhhvd1a.js";
|
|
16
16
|
import {
|
|
17
17
|
MAX_MERGE_DEPTH,
|
|
18
18
|
deepMerge,
|
|
@@ -30,6 +30,7 @@ __export(exports_loader, {
|
|
|
30
30
|
loadPluginConfigWithMeta: () => loadPluginConfigWithMeta,
|
|
31
31
|
loadPluginConfig: () => loadPluginConfig,
|
|
32
32
|
loadAgentPrompt: () => loadAgentPrompt,
|
|
33
|
+
formatZodIssues: () => formatZodIssues,
|
|
33
34
|
deepMerge: () => deepMerge,
|
|
34
35
|
MAX_MERGE_DEPTH: () => MAX_MERGE_DEPTH,
|
|
35
36
|
MAX_CONFIG_FILE_BYTES: () => MAX_CONFIG_FILE_BYTES
|
|
@@ -108,7 +109,7 @@ function sanitizeExternalSkillsConfig(raw) {
|
|
|
108
109
|
external_skills: resolveExternalSkillsConfig(esResult.data)
|
|
109
110
|
};
|
|
110
111
|
}
|
|
111
|
-
advisoryWarn("[opencode-swarm] external_skills config validation failed:", esResult.error
|
|
112
|
+
advisoryWarn("[opencode-swarm] external_skills config validation failed:", formatZodIssues(esResult.error));
|
|
112
113
|
advisoryWarn("[opencode-swarm] External skills curation disabled due to invalid config. Fix the external_skills section to enable it.");
|
|
113
114
|
const cleaned = { ...raw };
|
|
114
115
|
delete cleaned.external_skills;
|
|
@@ -149,7 +150,7 @@ function sanitizeGatesConfig(raw) {
|
|
|
149
150
|
}
|
|
150
151
|
const sectionResult = schema.safeParse(sectionValue);
|
|
151
152
|
if (!sectionResult.success) {
|
|
152
|
-
advisoryWarn(`[opencode-swarm] gates.${key} config validation failed; that gate section will use defaults and other config sections remain active:`, sectionResult.error
|
|
153
|
+
advisoryWarn(`[opencode-swarm] gates.${key} config validation failed; that gate section will use defaults and other config sections remain active:`, formatZodIssues(sectionResult.error));
|
|
153
154
|
delete cleanedGates[key];
|
|
154
155
|
}
|
|
155
156
|
}
|
|
@@ -160,7 +161,7 @@ function sanitizeGatesConfig(raw) {
|
|
|
160
161
|
gates: gatesResult.data
|
|
161
162
|
};
|
|
162
163
|
}
|
|
163
|
-
advisoryWarn("[opencode-swarm] gates config validation failed after section cleanup; quality gates will use defaults and other config sections remain active:", gatesResult.error
|
|
164
|
+
advisoryWarn("[opencode-swarm] gates config validation failed after section cleanup; quality gates will use defaults and other config sections remain active:", formatZodIssues(gatesResult.error));
|
|
164
165
|
const cleaned = { ...raw };
|
|
165
166
|
delete cleaned.gates;
|
|
166
167
|
return cleaned;
|
|
@@ -168,6 +169,14 @@ function sanitizeGatesConfig(raw) {
|
|
|
168
169
|
function sanitizeSectionConfigs(raw) {
|
|
169
170
|
return sanitizeGatesConfig(sanitizeExternalSkillsConfig(raw));
|
|
170
171
|
}
|
|
172
|
+
function formatZodIssues(error) {
|
|
173
|
+
if (error.issues.length === 0)
|
|
174
|
+
return "";
|
|
175
|
+
return error.issues.map((issue) => {
|
|
176
|
+
const dotted = issue.path.map(String).join(".");
|
|
177
|
+
return dotted ? `${dotted}: ${issue.message}` : issue.message;
|
|
178
|
+
}).join("; ");
|
|
179
|
+
}
|
|
171
180
|
function stripUnrecognizedKeys(raw, error) {
|
|
172
181
|
const removed = [];
|
|
173
182
|
const cleaned = structuredClone(raw);
|
|
@@ -230,7 +239,7 @@ function parseConfigWithFallback(mergedRaw, rawUserConfig, failedResult, loadedF
|
|
|
230
239
|
if (offending.length > 0) {
|
|
231
240
|
advisoryWarn(`[opencode-swarm] Merged config validation failed. Unrecognized key(s): ${offending.join(", ")}.`);
|
|
232
241
|
} else {
|
|
233
|
-
advisoryWarn("[opencode-swarm] Merged config validation failed:", result.error
|
|
242
|
+
advisoryWarn("[opencode-swarm] Merged config validation failed:", formatZodIssues(result.error));
|
|
234
243
|
}
|
|
235
244
|
advisoryWarn("[opencode-swarm] \u26A0\uFE0F SECURITY: Falling back to conservative defaults with guardrails ENABLED. Fix the config file to restore custom configuration.");
|
|
236
245
|
return PluginConfigSchema.parse({ guardrails: { enabled: true } });
|