opencode-swarm 7.144.8 → 7.145.1
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/background/workspace-snapshot.d.ts +29 -0
- package/dist/cli/{config-doctor-zbqfp0v6.js → config-doctor-96jmxr7s.js} +3 -3
- package/dist/cli/{core-pz9gwatq.js → core-w78pc1hh.js} +3 -3
- package/dist/cli/{curation-policy-a511r0qz.js → curation-policy-smyc2mrm.js} +7 -7
- package/dist/cli/{curator-sk0dyvke.js → curator-59hzdxrv.js} +33 -32
- package/dist/cli/{curator-drift-ckjm272w.js → curator-drift-r50x1rac.js} +4 -4
- package/dist/cli/{curator-llm-factory-3nq3p02z.js → curator-llm-factory-g794pv51.js} +33 -32
- package/dist/cli/dispatch-ndxbsk98.js +1 -1
- package/dist/cli/{evidence-summary-service-abwrjqd0.js → evidence-summary-service-41m0cna6.js} +15 -14
- package/dist/cli/{gate-evidence-aa7vvtcd.js → gate-evidence-7aywx7qa.js} +10 -9
- package/dist/cli/guardrail-explain-j88dhm6w.js +65 -0
- package/dist/cli/{guardrail-log-jw5mzs0d.js → guardrail-log-xcb3ke8s.js} +5 -5
- package/dist/cli/{hive-promoter-m20j63yg.js → hive-promoter-nnnx5692.js} +33 -32
- package/dist/cli/{index-7qb0hn8n.js → index-17e73wac.js} +1 -1
- package/dist/cli/{index-r2rkwvzq.js → index-19v4tccw.js} +2 -2
- package/dist/cli/{index-vdha477y.js → index-2qrd8mfa.js} +1 -1
- package/dist/cli/{index-6z5jtf7d.js → index-34tawmyx.js} +4 -4
- package/dist/cli/{index-jdxnzbah.js → index-41t3hgaa.js} +10 -10
- package/dist/cli/index-4evasm2b.js +514 -0
- package/dist/cli/{index-gfvkttvd.js → index-7axx11dt.js} +1 -1
- package/dist/cli/{index-8dbzaf0m.js → index-8ef23wex.js} +4 -4
- package/dist/cli/{index-k7fk9fjs.js → index-90w06fqr.js} +107 -29
- package/dist/cli/{index-t2ntgzts.js → index-b7ntt9cw.js} +3 -3
- package/dist/cli/{index-c2rpht77.js → index-bst6epnr.js} +2703 -2054
- package/dist/cli/{index-tffg4mwr.js → index-cqfp05jb.js} +3 -3
- package/dist/cli/{index-1jsmmx7y.js → index-dppzthm9.js} +92 -35
- package/dist/cli/{index-h1p08s3n.js → index-dzan8czb.js} +1 -1
- package/dist/cli/{index-cwtpqm5f.js → index-e1pxav9g.js} +1 -1
- package/dist/cli/{index-d1dbpxxk.js → index-evpgszmp.js} +2 -2
- package/dist/cli/{index-cx51wy0c.js → index-ff66fbjt.js} +10 -10
- package/dist/cli/{index-wknz5c8q.js → index-fwnhh6s7.js} +2 -2
- package/dist/cli/{index-hkdgkkhb.js → index-gey2257h.js} +2 -2
- package/dist/cli/{index-f9vvg5xb.js → index-gf03198s.js} +67 -2
- package/dist/cli/{index-z4fssj97.js → index-kxzgnz2h.js} +20 -20
- package/dist/cli/{index-9s8drsf9.js → index-mpf01swm.js} +4 -21
- package/dist/cli/{index-sxe5nyq4.js → index-mrkgxfeh.js} +13 -15
- package/dist/cli/{index-0v1f2sdb.js → index-neh8azwc.js} +2 -2
- package/dist/cli/{index-3k3nbs52.js → index-qpke2x5h.js} +9 -9
- package/dist/cli/{index-n4hwcsbd.js → index-rtkttser.js} +5 -5
- package/dist/cli/{index-xx8tm58n.js → index-sfemjcb8.js} +5 -5
- package/dist/cli/{index-bv44950t.js → index-tm0bezd9.js} +1 -1
- package/dist/cli/{index-r14qx363.js → index-tw8ck794.js} +1 -1
- package/dist/cli/{index-t72g4a7y.js → index-xz4x17z0.js} +35 -34
- package/dist/cli/{index-nmy6rss1.js → index-ymyke19q.js} +1 -1
- package/dist/cli/{index-f36ybbsv.js → index-z9yhhk6q.js} +93 -5
- package/dist/cli/{index-xp5g9eps.js → index-zpp507z0.js} +15 -1
- package/dist/cli/index.js +33 -32
- package/dist/cli/{knowledge-escalator-mg8qb7tm.js → knowledge-escalator-s6acdpwj.js} +15 -14
- package/dist/cli/{knowledge-events-3zxf8xpb.js → knowledge-events-jprkz49t.js} +13 -12
- package/dist/cli/{knowledge-link-4cg4776a.js → knowledge-link-zvtmj756.js} +6 -6
- package/dist/cli/{knowledge-store-awnm8s6c.js → knowledge-store-mc4awds4.js} +7 -7
- package/dist/cli/{knowledge-validator-3ke5scx3.js → knowledge-validator-pe4ncrvj.js} +9 -9
- package/dist/cli/model-preflight-77dwxfv5.js +170 -0
- package/dist/cli/{pending-delegations-9h1jmtw1.js → pending-delegations-epzht3d7.js} +6 -6
- package/dist/cli/{pr-subscriptions-8pg34pev.js → pr-subscriptions-2ahy8g87.js} +6 -6
- package/dist/cli/{runner-cqecp1na.js → runner-ra9pjhp2.js} +8 -7
- package/dist/cli/{scan-cursor-00rbxkb4.js → scan-cursor-hdzhqwzj.js} +8 -8
- package/dist/cli/{schema-5nmkp1pc.js → schema-pg85z06v.js} +1 -1
- package/dist/cli/{scope-persistence-6m79atw9.js → scope-persistence-v8we8ja7.js} +11 -7
- package/dist/cli/{skill-generator-gv70s796.js → skill-generator-ctskfct2.js} +17 -16
- package/dist/cli/{telemetry-cybx6cfz.js → telemetry-c21dgffc.js} +1 -1
- package/dist/cli/{workspace-snapshot-d89zm6wm.js → workspace-snapshot-kznz5e13.js} +3 -1
- package/dist/cli/{worktree-collision-ownership-vy0kxa98.js → worktree-collision-ownership-f7se4wbf.js} +10 -10
- package/dist/cli/{worktree-isolation-bne0p54w.js → worktree-isolation-j4qb7mgb.js} +35 -32
- package/dist/cli/{worktree-provisioning-owner-zzkjycp1.js → worktree-provisioning-owner-72cyddz5.js} +3 -3
- package/dist/commands/close.d.ts +8 -1
- package/dist/config/evidence-schema.d.ts +6 -6
- package/dist/config/plan-schema.d.ts +2 -2
- package/dist/config/schema.d.ts +7 -7
- package/dist/evidence/task-file.d.ts +16 -16
- package/dist/hooks/delegation-gate/worktree-isolation.d.ts +4 -0
- package/dist/index.js +603 -559
- package/dist/memory/schema.d.ts +3 -3
- package/dist/observability/catalog.d.ts +5 -4
- package/dist/observability/envelope.d.ts +2 -2
- package/dist/scope/scope-binding.d.ts +16 -0
- package/dist/services/model-preflight.d.ts +151 -0
- package/dist/services/session-reflection.d.ts +24 -0
- package/dist/services/swarm-residue.d.ts +151 -0
- package/dist/telemetry.d.ts +32 -2
- package/dist/tools/knowledge-receipt.d.ts +1 -1
- package/dist/tools/placeholder-scan.d.ts +64 -0
- package/dist/tools/sast-scan.d.ts +6 -0
- package/dist/utils/atomic-write.d.ts +185 -0
- package/package.json +1 -1
- package/dist/cli/guardrail-explain-hvtyr2fz.js +0 -64
- package/dist/cli/{index-fv0s19g9.js → index-w8pgjr75.js} +3 -3
package/dist/cli/index.js
CHANGED
|
@@ -11,67 +11,68 @@ import {
|
|
|
11
11
|
readCachePackageVersion,
|
|
12
12
|
resolveCommand,
|
|
13
13
|
safeRealpathSync
|
|
14
|
-
} from "./index-
|
|
15
|
-
import"./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
14
|
+
} from "./index-bst6epnr.js";
|
|
15
|
+
import"./index-34tawmyx.js";
|
|
16
|
+
import"./index-ymyke19q.js";
|
|
17
|
+
import"./index-tw8ck794.js";
|
|
18
|
+
import"./index-kxzgnz2h.js";
|
|
19
|
+
import"./index-fwnhh6s7.js";
|
|
18
20
|
import"./index-134d35c1.js";
|
|
19
21
|
import"./index-abtrcs16.js";
|
|
20
|
-
import"./index-6z5jtf7d.js";
|
|
21
|
-
import"./index-wknz5c8q.js";
|
|
22
22
|
import"./index-y8552snf.js";
|
|
23
|
-
import"./index-
|
|
23
|
+
import"./index-sfemjcb8.js";
|
|
24
|
+
import"./index-evpgszmp.js";
|
|
24
25
|
import"./index-70ha9e09.js";
|
|
25
26
|
import"./index-c8s9a3zh.js";
|
|
26
27
|
import"./index-9ss2m4rs.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-vdha477y.js";
|
|
28
|
+
import"./index-z9yhhk6q.js";
|
|
29
|
+
import"./index-gey2257h.js";
|
|
30
|
+
import"./index-mrkgxfeh.js";
|
|
31
|
+
import"./index-8ef23wex.js";
|
|
32
|
+
import"./index-2qrd8mfa.js";
|
|
33
33
|
import"./index-rtry5xyf.js";
|
|
34
34
|
import"./index-zsrtt42s.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
39
|
-
import"./index-
|
|
40
|
-
import"./index-
|
|
35
|
+
import"./index-rtkttser.js";
|
|
36
|
+
import"./index-e1pxav9g.js";
|
|
37
|
+
import"./index-41t3hgaa.js";
|
|
38
|
+
import"./index-zpp507z0.js";
|
|
39
|
+
import"./index-90w06fqr.js";
|
|
40
|
+
import"./index-cqfp05jb.js";
|
|
41
41
|
import"./index-556ja8an.js";
|
|
42
42
|
import"./index-7sy3aa9m.js";
|
|
43
43
|
import"./index-wx8zdh4a.js";
|
|
44
44
|
import"./index-3g0xk6tk.js";
|
|
45
45
|
import"./index-85gkedsf.js";
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
46
|
+
import"./index-qpke2x5h.js";
|
|
47
|
+
import"./index-ff66fbjt.js";
|
|
48
|
+
import"./index-neh8azwc.js";
|
|
49
49
|
import"./index-gprxjmm7.js";
|
|
50
50
|
import"./index-n832052r.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-z6xqpmqg.js";
|
|
53
|
-
import"./index-7qb0hn8n.js";
|
|
51
|
+
import"./index-17e73wac.js";
|
|
54
52
|
import {
|
|
55
53
|
init_package,
|
|
56
54
|
package_default
|
|
57
|
-
} from "./index-
|
|
55
|
+
} from "./index-7axx11dt.js";
|
|
58
56
|
import {
|
|
59
57
|
DEFAULT_AGENT_CONFIGS,
|
|
60
58
|
init_constants
|
|
61
59
|
} from "./index-v3y3qg48.js";
|
|
62
60
|
import"./index-9e6fdz2h.js";
|
|
63
61
|
import"./index-4rhhvd1a.js";
|
|
62
|
+
import"./index-w8pgjr75.js";
|
|
63
|
+
import"./index-z6xqpmqg.js";
|
|
64
|
+
import"./index-zj6t9zgx.js";
|
|
64
65
|
import"./index-zjygnfay.js";
|
|
65
66
|
import"./index-ae75rja9.js";
|
|
66
|
-
import"./index-
|
|
67
|
-
import"./index-
|
|
68
|
-
import"./index-ed5ykebp.js";
|
|
67
|
+
import"./index-dzan8czb.js";
|
|
68
|
+
import"./index-mpf01swm.js";
|
|
69
69
|
import"./index-bk5tah7q.js";
|
|
70
|
-
import"./index-
|
|
71
|
-
import"./index-
|
|
70
|
+
import"./index-4evasm2b.js";
|
|
71
|
+
import"./index-gf03198s.js";
|
|
72
|
+
import"./index-dppzthm9.js";
|
|
72
73
|
import"./index-7g4c7s5r.js";
|
|
73
74
|
import"./index-bpmtbmy9.js";
|
|
74
|
-
import"./index-
|
|
75
|
+
import"./index-ed5ykebp.js";
|
|
75
76
|
import"./index-zgwm4ryv.js";
|
|
76
77
|
import"./index-a76rekgs.js";
|
|
77
78
|
|
|
@@ -9,30 +9,31 @@ import {
|
|
|
9
9
|
maybeEscalateOnViolation,
|
|
10
10
|
maybeQuarantineOnContradiction,
|
|
11
11
|
readRecentEscalations
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
12
|
+
} from "./index-sfemjcb8.js";
|
|
13
|
+
import"./index-qpke2x5h.js";
|
|
14
|
+
import"./index-ff66fbjt.js";
|
|
15
|
+
import"./index-neh8azwc.js";
|
|
16
16
|
import"./index-gprxjmm7.js";
|
|
17
17
|
import"./index-n832052r.js";
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-7qb0hn8n.js";
|
|
21
|
-
import"./index-gfvkttvd.js";
|
|
18
|
+
import"./index-17e73wac.js";
|
|
19
|
+
import"./index-7axx11dt.js";
|
|
22
20
|
import"./index-v3y3qg48.js";
|
|
23
21
|
import"./index-9e6fdz2h.js";
|
|
24
22
|
import"./index-4rhhvd1a.js";
|
|
23
|
+
import"./index-w8pgjr75.js";
|
|
24
|
+
import"./index-z6xqpmqg.js";
|
|
25
|
+
import"./index-zj6t9zgx.js";
|
|
25
26
|
import"./index-zjygnfay.js";
|
|
26
27
|
import"./index-ae75rja9.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-ed5ykebp.js";
|
|
28
|
+
import"./index-dzan8czb.js";
|
|
29
|
+
import"./index-mpf01swm.js";
|
|
30
30
|
import"./index-bk5tah7q.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
31
|
+
import"./index-4evasm2b.js";
|
|
32
|
+
import"./index-gf03198s.js";
|
|
33
|
+
import"./index-dppzthm9.js";
|
|
33
34
|
import"./index-7g4c7s5r.js";
|
|
34
35
|
import"./index-bpmtbmy9.js";
|
|
35
|
-
import"./index-
|
|
36
|
+
import"./index-ed5ykebp.js";
|
|
36
37
|
import"./index-zgwm4ryv.js";
|
|
37
38
|
import"./index-a76rekgs.js";
|
|
38
39
|
export {
|
|
@@ -29,28 +29,29 @@ import {
|
|
|
29
29
|
resolveKnowledgeCounterBaselinePath,
|
|
30
30
|
resolveKnowledgeEventsPath,
|
|
31
31
|
resolveLegacyApplicationLogPath
|
|
32
|
-
} from "./index-
|
|
33
|
-
import"./index-
|
|
32
|
+
} from "./index-ff66fbjt.js";
|
|
33
|
+
import"./index-neh8azwc.js";
|
|
34
34
|
import"./index-gprxjmm7.js";
|
|
35
35
|
import"./index-n832052r.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-7qb0hn8n.js";
|
|
39
|
-
import"./index-gfvkttvd.js";
|
|
36
|
+
import"./index-17e73wac.js";
|
|
37
|
+
import"./index-7axx11dt.js";
|
|
40
38
|
import"./index-v3y3qg48.js";
|
|
41
39
|
import"./index-9e6fdz2h.js";
|
|
42
40
|
import"./index-4rhhvd1a.js";
|
|
41
|
+
import"./index-w8pgjr75.js";
|
|
42
|
+
import"./index-z6xqpmqg.js";
|
|
43
|
+
import"./index-zj6t9zgx.js";
|
|
43
44
|
import"./index-zjygnfay.js";
|
|
44
45
|
import"./index-ae75rja9.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-ed5ykebp.js";
|
|
46
|
+
import"./index-dzan8czb.js";
|
|
47
|
+
import"./index-mpf01swm.js";
|
|
48
48
|
import"./index-bk5tah7q.js";
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-
|
|
49
|
+
import"./index-4evasm2b.js";
|
|
50
|
+
import"./index-gf03198s.js";
|
|
51
|
+
import"./index-dppzthm9.js";
|
|
51
52
|
import"./index-7g4c7s5r.js";
|
|
52
53
|
import"./index-bpmtbmy9.js";
|
|
53
|
-
import"./index-
|
|
54
|
+
import"./index-ed5ykebp.js";
|
|
54
55
|
import"./index-zgwm4ryv.js";
|
|
55
56
|
import"./index-a76rekgs.js";
|
|
56
57
|
export {
|
|
@@ -12,14 +12,14 @@ import {
|
|
|
12
12
|
resolveLinkDir,
|
|
13
13
|
sanitizeLinkId,
|
|
14
14
|
writeLinkPointer
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
15
|
+
} from "./index-dzan8czb.js";
|
|
16
|
+
import"./index-mpf01swm.js";
|
|
17
|
+
import"./index-4evasm2b.js";
|
|
18
|
+
import"./index-gf03198s.js";
|
|
19
|
+
import"./index-dppzthm9.js";
|
|
20
20
|
import"./index-7g4c7s5r.js";
|
|
21
21
|
import"./index-bpmtbmy9.js";
|
|
22
|
-
import"./index-
|
|
22
|
+
import"./index-ed5ykebp.js";
|
|
23
23
|
import"./index-zgwm4ryv.js";
|
|
24
24
|
import"./index-a76rekgs.js";
|
|
25
25
|
export {
|
|
@@ -41,19 +41,19 @@ import {
|
|
|
41
41
|
transactKnowledge,
|
|
42
42
|
transactKnowledgeWithCas,
|
|
43
43
|
wordBigrams
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-qpke2x5h.js";
|
|
45
45
|
import {
|
|
46
46
|
resolveHiveDataDir
|
|
47
47
|
} from "./index-ae75rja9.js";
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
50
|
-
import"./index-ed5ykebp.js";
|
|
48
|
+
import"./index-dzan8czb.js";
|
|
49
|
+
import"./index-mpf01swm.js";
|
|
51
50
|
import"./index-bk5tah7q.js";
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
51
|
+
import"./index-4evasm2b.js";
|
|
52
|
+
import"./index-gf03198s.js";
|
|
53
|
+
import"./index-dppzthm9.js";
|
|
54
54
|
import"./index-7g4c7s5r.js";
|
|
55
55
|
import"./index-bpmtbmy9.js";
|
|
56
|
-
import"./index-
|
|
56
|
+
import"./index-ed5ykebp.js";
|
|
57
57
|
import"./index-zgwm4ryv.js";
|
|
58
58
|
import"./index-a76rekgs.js";
|
|
59
59
|
export {
|
|
@@ -23,20 +23,20 @@ import {
|
|
|
23
23
|
validateLesson,
|
|
24
24
|
validateSkillCandidatePath,
|
|
25
25
|
validateSkillPath
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-8ef23wex.js";
|
|
27
|
+
import"./index-2qrd8mfa.js";
|
|
28
28
|
import"./index-rtry5xyf.js";
|
|
29
|
-
import"./index-
|
|
29
|
+
import"./index-qpke2x5h.js";
|
|
30
30
|
import"./index-ae75rja9.js";
|
|
31
|
-
import"./index-
|
|
32
|
-
import"./index-
|
|
33
|
-
import"./index-ed5ykebp.js";
|
|
31
|
+
import"./index-dzan8czb.js";
|
|
32
|
+
import"./index-mpf01swm.js";
|
|
34
33
|
import"./index-bk5tah7q.js";
|
|
35
|
-
import"./index-
|
|
36
|
-
import"./index-
|
|
34
|
+
import"./index-4evasm2b.js";
|
|
35
|
+
import"./index-gf03198s.js";
|
|
36
|
+
import"./index-dppzthm9.js";
|
|
37
37
|
import"./index-7g4c7s5r.js";
|
|
38
38
|
import"./index-bpmtbmy9.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-ed5ykebp.js";
|
|
40
40
|
import"./index-zgwm4ryv.js";
|
|
41
41
|
import"./index-a76rekgs.js";
|
|
42
42
|
export {
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
DEFAULT_MODELS,
|
|
4
|
+
init_constants
|
|
5
|
+
} from "./index-v3y3qg48.js";
|
|
6
|
+
import"./index-zjygnfay.js";
|
|
7
|
+
import"./index-a76rekgs.js";
|
|
8
|
+
|
|
9
|
+
// src/services/model-preflight.ts
|
|
10
|
+
init_constants();
|
|
11
|
+
var PROVIDER_LIST_TIMEOUT_MS = 2000;
|
|
12
|
+
function splitModelId(model) {
|
|
13
|
+
const separator = model.indexOf("/");
|
|
14
|
+
if (separator <= 0 || separator === model.length - 1)
|
|
15
|
+
return null;
|
|
16
|
+
return {
|
|
17
|
+
provider: model.slice(0, separator),
|
|
18
|
+
model: model.slice(separator + 1)
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function collectConfiguredAgentModels(config) {
|
|
22
|
+
const collected = [];
|
|
23
|
+
const overriddenAgents = new Set;
|
|
24
|
+
const overrides = config?.agents ?? {};
|
|
25
|
+
for (const [agent, override] of Object.entries(overrides)) {
|
|
26
|
+
if (typeof override?.model === "string" && override.model.trim()) {
|
|
27
|
+
collected.push({
|
|
28
|
+
agent,
|
|
29
|
+
model: override.model.trim(),
|
|
30
|
+
source: "override"
|
|
31
|
+
});
|
|
32
|
+
overriddenAgents.add(agent);
|
|
33
|
+
}
|
|
34
|
+
for (const fallback of override?.fallback_models ?? []) {
|
|
35
|
+
if (typeof fallback === "string" && fallback.trim()) {
|
|
36
|
+
collected.push({
|
|
37
|
+
agent,
|
|
38
|
+
model: fallback.trim(),
|
|
39
|
+
source: "fallback"
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
for (const [agent, model] of Object.entries(DEFAULT_MODELS)) {
|
|
45
|
+
if (overriddenAgents.has(agent))
|
|
46
|
+
continue;
|
|
47
|
+
collected.push({ agent, model, source: "default" });
|
|
48
|
+
}
|
|
49
|
+
return collected;
|
|
50
|
+
}
|
|
51
|
+
var CATALOG_CACHE_TTL_MS = 30000;
|
|
52
|
+
var catalogCacheByClient = new WeakMap;
|
|
53
|
+
function invalidateProviderCatalogCache() {
|
|
54
|
+
catalogCacheByClient = new WeakMap;
|
|
55
|
+
}
|
|
56
|
+
async function fetchProviderCatalog(client) {
|
|
57
|
+
if (!client)
|
|
58
|
+
return null;
|
|
59
|
+
const cached = catalogCacheByClient.get(client);
|
|
60
|
+
if (cached && Date.now() - cached.fetchedAt < CATALOG_CACHE_TTL_MS) {
|
|
61
|
+
return cached.catalog;
|
|
62
|
+
}
|
|
63
|
+
let response;
|
|
64
|
+
try {
|
|
65
|
+
response = await _internals.providerList(client);
|
|
66
|
+
} catch {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
const all = response?.data?.all;
|
|
70
|
+
if (!Array.isArray(all))
|
|
71
|
+
return null;
|
|
72
|
+
const catalog = new Map;
|
|
73
|
+
for (const provider of all) {
|
|
74
|
+
if (typeof provider?.id !== "string")
|
|
75
|
+
continue;
|
|
76
|
+
const models = new Set;
|
|
77
|
+
if (provider.models && typeof provider.models === "object") {
|
|
78
|
+
for (const modelKey of Object.keys(provider.models)) {
|
|
79
|
+
models.add(modelKey);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
catalog.set(provider.id, models);
|
|
83
|
+
}
|
|
84
|
+
catalogCacheByClient.set(client, { fetchedAt: Date.now(), catalog });
|
|
85
|
+
return catalog;
|
|
86
|
+
}
|
|
87
|
+
function resolveAgainstCatalog(models, catalog) {
|
|
88
|
+
if (catalog === null) {
|
|
89
|
+
return {
|
|
90
|
+
catalogAvailable: false,
|
|
91
|
+
resolutions: models.map((entry) => ({
|
|
92
|
+
...entry,
|
|
93
|
+
status: "unknown",
|
|
94
|
+
detail: "provider catalog unavailable; model resolution not checked"
|
|
95
|
+
}))
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
const resolutions = models.map((entry) => {
|
|
99
|
+
const split = splitModelId(entry.model);
|
|
100
|
+
if (!split) {
|
|
101
|
+
return {
|
|
102
|
+
...entry,
|
|
103
|
+
status: "unknown",
|
|
104
|
+
detail: "model id has no provider prefix; resolution not checked against the catalog"
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
const providerModels = catalog.get(split.provider);
|
|
108
|
+
if (providerModels === undefined) {
|
|
109
|
+
return {
|
|
110
|
+
...entry,
|
|
111
|
+
status: "unresolved",
|
|
112
|
+
detail: `provider "${split.provider}" is not present in the provider catalog`
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
if (!providerModels.has(split.model)) {
|
|
116
|
+
return {
|
|
117
|
+
...entry,
|
|
118
|
+
status: "unresolved",
|
|
119
|
+
detail: `provider "${split.provider}" does not list model "${split.model}"`
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
return { ...entry, status: "ok" };
|
|
123
|
+
});
|
|
124
|
+
return { catalogAvailable: true, resolutions };
|
|
125
|
+
}
|
|
126
|
+
async function runModelPreflight(config, client) {
|
|
127
|
+
const models = collectConfiguredAgentModels(config);
|
|
128
|
+
const catalog = await fetchProviderCatalog(client);
|
|
129
|
+
return resolveAgainstCatalog(models, catalog);
|
|
130
|
+
}
|
|
131
|
+
async function checkSingleModelResolution(model, client) {
|
|
132
|
+
const catalog = await fetchProviderCatalog(client);
|
|
133
|
+
if (catalog === null)
|
|
134
|
+
return "unknown";
|
|
135
|
+
const split = splitModelId(model);
|
|
136
|
+
if (!split)
|
|
137
|
+
return "unknown";
|
|
138
|
+
const providerModels = catalog.get(split.provider);
|
|
139
|
+
if (providerModels === undefined || !providerModels.has(split.model)) {
|
|
140
|
+
return "unresolved";
|
|
141
|
+
}
|
|
142
|
+
return "ok";
|
|
143
|
+
}
|
|
144
|
+
var _internals = {
|
|
145
|
+
providerList: async (client) => {
|
|
146
|
+
let timer;
|
|
147
|
+
try {
|
|
148
|
+
return await Promise.race([
|
|
149
|
+
client.provider.list(),
|
|
150
|
+
new Promise((_, reject) => {
|
|
151
|
+
timer = setTimeout(() => reject(new Error("provider list timed out")), PROVIDER_LIST_TIMEOUT_MS);
|
|
152
|
+
})
|
|
153
|
+
]);
|
|
154
|
+
} finally {
|
|
155
|
+
if (timer)
|
|
156
|
+
clearTimeout(timer);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
export {
|
|
161
|
+
splitModelId,
|
|
162
|
+
runModelPreflight,
|
|
163
|
+
resolveAgainstCatalog,
|
|
164
|
+
invalidateProviderCatalogCache,
|
|
165
|
+
fetchProviderCatalog,
|
|
166
|
+
collectConfiguredAgentModels,
|
|
167
|
+
checkSingleModelResolution,
|
|
168
|
+
_internals,
|
|
169
|
+
PROVIDER_LIST_TIMEOUT_MS
|
|
170
|
+
};
|
|
@@ -54,16 +54,16 @@ import {
|
|
|
54
54
|
sweepStaleDelegations,
|
|
55
55
|
updateCoderSettlement,
|
|
56
56
|
writeDelegationFallback
|
|
57
|
-
} from "./index-
|
|
58
|
-
import"./index-
|
|
57
|
+
} from "./index-rtkttser.js";
|
|
58
|
+
import"./index-w8pgjr75.js";
|
|
59
59
|
import"./index-z6xqpmqg.js";
|
|
60
|
+
import"./index-zj6t9zgx.js";
|
|
60
61
|
import"./index-zjygnfay.js";
|
|
61
|
-
import"./index-
|
|
62
|
-
import"./index-
|
|
63
|
-
import"./index-1jsmmx7y.js";
|
|
62
|
+
import"./index-gf03198s.js";
|
|
63
|
+
import"./index-dppzthm9.js";
|
|
64
64
|
import"./index-7g4c7s5r.js";
|
|
65
65
|
import"./index-bpmtbmy9.js";
|
|
66
|
-
import"./index-
|
|
66
|
+
import"./index-ed5ykebp.js";
|
|
67
67
|
import"./index-zgwm4ryv.js";
|
|
68
68
|
import"./index-a76rekgs.js";
|
|
69
69
|
export {
|
|
@@ -9,16 +9,16 @@ import {
|
|
|
9
9
|
sweepStale,
|
|
10
10
|
unsubscribe,
|
|
11
11
|
updateSnapshot
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-gey2257h.js";
|
|
13
|
+
import"./index-w8pgjr75.js";
|
|
14
14
|
import"./index-z6xqpmqg.js";
|
|
15
|
+
import"./index-zj6t9zgx.js";
|
|
15
16
|
import"./index-zjygnfay.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
18
|
-
import"./index-1jsmmx7y.js";
|
|
17
|
+
import"./index-gf03198s.js";
|
|
18
|
+
import"./index-dppzthm9.js";
|
|
19
19
|
import"./index-7g4c7s5r.js";
|
|
20
20
|
import"./index-bpmtbmy9.js";
|
|
21
|
-
import"./index-
|
|
21
|
+
import"./index-ed5ykebp.js";
|
|
22
22
|
import"./index-zgwm4ryv.js";
|
|
23
23
|
import"./index-a76rekgs.js";
|
|
24
24
|
export {
|
|
@@ -3,16 +3,17 @@ import {
|
|
|
3
3
|
_internals,
|
|
4
4
|
createModelEvaluationExecutor,
|
|
5
5
|
runEvaluation
|
|
6
|
-
} from "./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
} from "./index-34tawmyx.js";
|
|
7
|
+
import"./index-fwnhh6s7.js";
|
|
8
8
|
import"./index-y8552snf.js";
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
9
|
+
import"./index-zj6t9zgx.js";
|
|
10
|
+
import"./index-mpf01swm.js";
|
|
11
|
+
import"./index-4evasm2b.js";
|
|
12
|
+
import"./index-gf03198s.js";
|
|
13
|
+
import"./index-dppzthm9.js";
|
|
13
14
|
import"./index-7g4c7s5r.js";
|
|
14
15
|
import"./index-bpmtbmy9.js";
|
|
15
|
-
import"./index-
|
|
16
|
+
import"./index-ed5ykebp.js";
|
|
16
17
|
import"./index-zgwm4ryv.js";
|
|
17
18
|
import"./index-a76rekgs.js";
|
|
18
19
|
export {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
alreadyCuratedThisGeneration,
|
|
5
5
|
claimNextScanBatch,
|
|
6
6
|
getScanStatus
|
|
7
|
-
} from "./index-
|
|
8
|
-
import"./index-
|
|
7
|
+
} from "./index-evpgszmp.js";
|
|
8
|
+
import"./index-qpke2x5h.js";
|
|
9
9
|
import"./index-9e6fdz2h.js";
|
|
10
10
|
import"./index-4rhhvd1a.js";
|
|
11
11
|
import"./index-ae75rja9.js";
|
|
12
|
-
import"./index-
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-ed5ykebp.js";
|
|
12
|
+
import"./index-dzan8czb.js";
|
|
13
|
+
import"./index-mpf01swm.js";
|
|
15
14
|
import"./index-bk5tah7q.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
15
|
+
import"./index-4evasm2b.js";
|
|
16
|
+
import"./index-gf03198s.js";
|
|
17
|
+
import"./index-dppzthm9.js";
|
|
18
18
|
import"./index-7g4c7s5r.js";
|
|
19
19
|
import"./index-bpmtbmy9.js";
|
|
20
|
-
import"./index-
|
|
20
|
+
import"./index-ed5ykebp.js";
|
|
21
21
|
import"./index-zgwm4ryv.js";
|
|
22
22
|
import"./index-a76rekgs.js";
|
|
23
23
|
export {
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
resolveGeneratedAgentRole,
|
|
98
98
|
resolveGuardrailsConfig,
|
|
99
99
|
stripKnownSwarmPrefix
|
|
100
|
-
} from "./index-
|
|
100
|
+
} from "./index-7axx11dt.js";
|
|
101
101
|
import"./index-v3y3qg48.js";
|
|
102
102
|
import"./index-zjygnfay.js";
|
|
103
103
|
import"./index-bk5tah7q.js";
|
|
@@ -23,21 +23,25 @@ import {
|
|
|
23
23
|
tombstoneScopeBinding,
|
|
24
24
|
writeScopeBindingToDisk,
|
|
25
25
|
writeScopeToDisk
|
|
26
|
-
} from "./index-
|
|
27
|
-
import"./index-
|
|
26
|
+
} from "./index-90w06fqr.js";
|
|
27
|
+
import"./index-cqfp05jb.js";
|
|
28
28
|
import"./index-556ja8an.js";
|
|
29
|
-
import"./index-
|
|
30
|
-
import"./index-
|
|
29
|
+
import"./index-17e73wac.js";
|
|
30
|
+
import"./index-7axx11dt.js";
|
|
31
31
|
import"./index-v3y3qg48.js";
|
|
32
32
|
import"./index-9e6fdz2h.js";
|
|
33
33
|
import"./index-4rhhvd1a.js";
|
|
34
|
+
import"./index-w8pgjr75.js";
|
|
35
|
+
import"./index-z6xqpmqg.js";
|
|
36
|
+
import"./index-zj6t9zgx.js";
|
|
34
37
|
import"./index-zjygnfay.js";
|
|
35
38
|
import"./index-bk5tah7q.js";
|
|
36
|
-
import"./index-
|
|
37
|
-
import"./index-
|
|
39
|
+
import"./index-4evasm2b.js";
|
|
40
|
+
import"./index-gf03198s.js";
|
|
41
|
+
import"./index-dppzthm9.js";
|
|
38
42
|
import"./index-7g4c7s5r.js";
|
|
39
43
|
import"./index-bpmtbmy9.js";
|
|
40
|
-
import"./index-
|
|
44
|
+
import"./index-ed5ykebp.js";
|
|
41
45
|
import"./index-zgwm4ryv.js";
|
|
42
46
|
import"./index-a76rekgs.js";
|
|
43
47
|
export {
|
|
@@ -33,33 +33,34 @@ import {
|
|
|
33
33
|
sanitizeSlug,
|
|
34
34
|
selectCandidateEntries,
|
|
35
35
|
writeEvalStub
|
|
36
|
-
} from "./index-
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-
|
|
36
|
+
} from "./index-mrkgxfeh.js";
|
|
37
|
+
import"./index-8ef23wex.js";
|
|
38
|
+
import"./index-2qrd8mfa.js";
|
|
39
39
|
import"./index-rtry5xyf.js";
|
|
40
|
-
import"./index-
|
|
41
|
-
import"./index-
|
|
42
|
-
import"./index-
|
|
40
|
+
import"./index-qpke2x5h.js";
|
|
41
|
+
import"./index-ff66fbjt.js";
|
|
42
|
+
import"./index-neh8azwc.js";
|
|
43
43
|
import"./index-gprxjmm7.js";
|
|
44
44
|
import"./index-n832052r.js";
|
|
45
|
-
import"./index-
|
|
46
|
-
import"./index-
|
|
47
|
-
import"./index-7qb0hn8n.js";
|
|
48
|
-
import"./index-gfvkttvd.js";
|
|
45
|
+
import"./index-17e73wac.js";
|
|
46
|
+
import"./index-7axx11dt.js";
|
|
49
47
|
import"./index-v3y3qg48.js";
|
|
50
48
|
import"./index-9e6fdz2h.js";
|
|
51
49
|
import"./index-4rhhvd1a.js";
|
|
50
|
+
import"./index-w8pgjr75.js";
|
|
51
|
+
import"./index-z6xqpmqg.js";
|
|
52
|
+
import"./index-zj6t9zgx.js";
|
|
52
53
|
import"./index-zjygnfay.js";
|
|
53
54
|
import"./index-ae75rja9.js";
|
|
54
|
-
import"./index-
|
|
55
|
-
import"./index-
|
|
56
|
-
import"./index-ed5ykebp.js";
|
|
55
|
+
import"./index-dzan8czb.js";
|
|
56
|
+
import"./index-mpf01swm.js";
|
|
57
57
|
import"./index-bk5tah7q.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-4evasm2b.js";
|
|
59
|
+
import"./index-gf03198s.js";
|
|
60
|
+
import"./index-dppzthm9.js";
|
|
60
61
|
import"./index-7g4c7s5r.js";
|
|
61
62
|
import"./index-bpmtbmy9.js";
|
|
62
|
-
import"./index-
|
|
63
|
+
import"./index-ed5ykebp.js";
|
|
63
64
|
import"./index-zgwm4ryv.js";
|
|
64
65
|
import"./index-a76rekgs.js";
|
|
65
66
|
export {
|