opencode-swarm 7.159.0 → 7.159.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/.opencode/skills/engineering-conventions/SKILL.md +20 -0
- package/.opencode/skills/execute/SKILL.md +2 -2
- package/dist/cli/{coder-settlement-66mqw0xt.js → coder-settlement-hny3vh3e.js} +9 -9
- package/dist/cli/{config-doctor-nkx61b9e.js → config-doctor-00ex0s3k.js} +2 -2
- package/dist/cli/{core-b3db7gf6.js → core-03tedwzg.js} +1 -1
- package/dist/cli/{curation-policy-vn3m5nq2.js → curation-policy-z0a5akng.js} +6 -6
- package/dist/cli/{curator-llm-factory-c4y1mrr5.js → curator-llm-factory-24bfn7h1.js} +31 -31
- package/dist/cli/{curator-w4ntvkz5.js → curator-n81nzdw8.js} +31 -31
- package/dist/cli/{evidence-summary-service-vadgnzk6.js → evidence-summary-service-nz7y1w2a.js} +13 -13
- package/dist/cli/{gate-evidence-0chatz5e.js → gate-evidence-dxafmzrn.js} +6 -6
- package/dist/cli/guardrail-explain-b3k9xrx9.js +67 -0
- package/dist/cli/{guardrail-log-t3c9g8tc.js → guardrail-log-t8c7acxg.js} +5 -5
- package/dist/cli/{guardrail-reset-wvdb5sv5.js → guardrail-reset-0ft2gf03.js} +31 -31
- package/dist/cli/{hive-promoter-mfq3ee0n.js → hive-promoter-brq9cx7c.js} +31 -31
- package/dist/cli/{index-nwkr6tvv.js → index-0zerbq1v.js} +1 -1
- package/dist/cli/{index-h52hs4e9.js → index-1e9rzhmr.js} +2 -2
- package/dist/cli/{index-b1tenv2s.js → index-1xcve0gc.js} +7 -1
- package/dist/cli/{index-8jnzp5ct.js → index-200myvdx.js} +2 -2
- package/dist/cli/{index-mc9qgkwd.js → index-6sheh3yp.js} +3 -3
- package/dist/cli/{index-k4arrwrz.js → index-7tjamatf.js} +8 -8
- package/dist/cli/{index-vywbn766.js → index-8ahjx7vt.js} +4 -4
- package/dist/cli/{index-pvzaryhr.js → index-8gh97gkz.js} +1 -1
- package/dist/cli/{index-3e8600a7.js → index-9ev0bbqh.js} +883 -252
- package/dist/cli/{index-xagq35tf.js → index-av3gnekk.js} +1 -1
- package/dist/cli/{index-k48kgm6z.js → index-b2dh37cf.js} +5 -5
- package/dist/cli/{index-ynjy98vv.js → index-b5s1n149.js} +5 -5
- package/dist/cli/{index-erdsawqz.js → index-bmst1sje.js} +6 -6
- package/dist/cli/{index-e2s08v0q.js → index-caqjwnak.js} +2 -2
- package/dist/cli/{index-tcbjjppb.js → index-dgt8z19x.js} +1 -1
- package/dist/cli/{index-6e6qxf5q.js → index-e1jcdpdg.js} +1 -1
- package/dist/cli/{index-gprxjmm7.js → index-ebz97mks.js} +3 -1
- package/dist/cli/{index-pfnj5pvs.js → index-egc8d995.js} +1 -1
- package/dist/cli/{index-we3nf5as.js → index-eh1gh043.js} +4 -4
- package/dist/cli/{index-z54qw70y.js → index-jd7mz4yg.js} +1 -1
- package/dist/cli/{index-8kfbdrxa.js → index-k7kvrwbj.js} +33 -33
- package/dist/cli/{index-7s1hmrfh.js → index-ky2r092m.js} +2 -2
- package/dist/cli/{index-xmz69g65.js → index-m0gfzxw1.js} +2 -2
- package/dist/cli/{index-ghjs1n7k.js → index-mcan50mx.js} +4 -4
- package/dist/cli/{index-04yrxg0z.js → index-nmp47dmm.js} +2 -2
- package/dist/cli/{index-9vt2hknx.js → index-p2m1skjz.js} +1 -1
- package/dist/cli/{index-h1g8w4v0.js → index-prknc0xn.js} +129 -44
- package/dist/cli/{index-zcmwwp1x.js → index-q8yma345.js} +2 -2
- package/dist/cli/{index-35grv4jg.js → index-qypnqmcj.js} +7 -7
- package/dist/cli/{index-1sdb57jv.js → index-rq461prn.js} +6 -6
- package/dist/cli/{index-b82tq895.js → index-v7wm4mw8.js} +3 -3
- package/dist/cli/{index-5zgf140g.js → index-vq4d1h7t.js} +1 -1
- package/dist/cli/{index-8fqb0ynp.js → index-w1rhyqw2.js} +1 -1
- package/dist/cli/{index-hte1e31d.js → index-wzc6vzq6.js} +2 -2
- package/dist/cli/{index-fcp41snp.js → index-y55hqgcj.js} +4 -4
- package/dist/cli/index.js +31 -31
- package/dist/cli/{knowledge-escalator-x85t1e66.js → knowledge-escalator-rxagfxnk.js} +12 -12
- package/dist/cli/{knowledge-events-bwx99mxc.js → knowledge-events-ymwdv799.js} +10 -10
- package/dist/cli/{knowledge-link-cj2abbae.js → knowledge-link-n1825n09.js} +5 -5
- package/dist/cli/{knowledge-store-21m81zsa.js → knowledge-store-nxm4xvvq.js} +6 -6
- package/dist/cli/{knowledge-validator-yxcadg1p.js → knowledge-validator-gtmq35k8.js} +8 -8
- package/dist/cli/{pending-delegations-b8qka5nf.js → pending-delegations-zdgazhdf.js} +3 -3
- package/dist/cli/{pr-review-reentry-authorization-wv3ck5kh.js → pr-review-reentry-authorization-jgzb0pma.js} +31 -31
- package/dist/cli/{pr-subscriptions-j9j70bmd.js → pr-subscriptions-pxv24d5k.js} +4 -4
- package/dist/cli/{runner-sj5sf36c.js → runner-fzgkhx6a.js} +6 -6
- package/dist/cli/{scan-cursor-m3w0tapb.js → scan-cursor-fasdj7kj.js} +7 -7
- package/dist/cli/{schema-0b0dqn28.js → schema-3x28z3rp.js} +1 -1
- package/dist/cli/{scope-persistence-199f7yqc.js → scope-persistence-p8dnxfhx.js} +8 -8
- package/dist/cli/{skill-generator-a2ekcbe2.js → skill-generator-6tjyffgd.js} +14 -14
- package/dist/cli/{telemetry-r8e8zey7.js → telemetry-3rh94wv3.js} +1 -1
- package/dist/cli/{worktree-collision-ownership-5qaab3q7.js → worktree-collision-ownership-3bbn1n2r.js} +5 -5
- package/dist/cli/{worktree-isolation-esesc842.js → worktree-isolation-1470tnxc.js} +31 -31
- package/dist/config/evidence-schema.d.ts +51 -0
- package/dist/config/schema.d.ts +20 -0
- package/dist/evaluation/contracts.d.ts +5 -5
- package/dist/evaluation/ephemeral-agent-dispatcher.d.ts +2 -0
- package/dist/evaluation/model-dispatcher.d.ts +2 -2
- package/dist/index.js +191 -191
- package/dist/observability/catalog.d.ts +5 -3
- package/dist/review/contracts.d.ts +2 -1
- package/dist/review/evidence.d.ts +12 -0
- package/dist/services/cost-accounting.d.ts +100 -0
- package/dist/services/status-service.d.ts +12 -0
- package/dist/telemetry.d.ts +1 -1
- package/dist/tools/sast-baseline.d.ts +120 -3
- package/dist/tools/sast-scan.d.ts +25 -1
- package/opencode-swarm.schema.json +40 -0
- package/package.json +1 -1
- package/dist/cli/guardrail-explain-ax2qmsp4.js +0 -67
|
@@ -21,64 +21,64 @@ import {
|
|
|
21
21
|
sanitizeWorktreeTaskId,
|
|
22
22
|
standardWorktreeByCallID,
|
|
23
23
|
standardWorktreeSerializationSessions
|
|
24
|
-
} from "./index-
|
|
25
|
-
import"./index-
|
|
26
|
-
import"./index-
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
29
|
-
import"./index-
|
|
24
|
+
} from "./index-9ev0bbqh.js";
|
|
25
|
+
import"./index-jd7mz4yg.js";
|
|
26
|
+
import"./index-nmp47dmm.js";
|
|
27
|
+
import"./index-e1jcdpdg.js";
|
|
28
|
+
import"./index-7tjamatf.js";
|
|
29
|
+
import"./index-ky2r092m.js";
|
|
30
30
|
import"./index-txdagbh7.js";
|
|
31
31
|
import"./index-134d35c1.js";
|
|
32
32
|
import"./index-nj6rmyeh.js";
|
|
33
|
-
import"./index-
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
33
|
+
import"./index-y55hqgcj.js";
|
|
34
|
+
import"./index-b2dh37cf.js";
|
|
35
|
+
import"./index-m0gfzxw1.js";
|
|
36
36
|
import"./index-70ha9e09.js";
|
|
37
37
|
import"./index-c8s9a3zh.js";
|
|
38
38
|
import"./index-9ss2m4rs.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-6sheh3yp.js";
|
|
40
40
|
import"./index-zsrtt42s.js";
|
|
41
|
-
import"./index-
|
|
41
|
+
import"./index-rq461prn.js";
|
|
42
42
|
import"./index-3f7hqtgg.js";
|
|
43
|
-
import"./index-
|
|
44
|
-
import"./index-
|
|
45
|
-
import"./index-
|
|
43
|
+
import"./index-w1rhyqw2.js";
|
|
44
|
+
import"./index-8ahjx7vt.js";
|
|
45
|
+
import"./index-egc8d995.js";
|
|
46
46
|
import"./index-rtry5xyf.js";
|
|
47
|
-
import"./index-
|
|
48
|
-
import"./index-
|
|
49
|
-
import"./index-
|
|
47
|
+
import"./index-eh1gh043.js";
|
|
48
|
+
import"./index-8gh97gkz.js";
|
|
49
|
+
import"./index-caqjwnak.js";
|
|
50
50
|
import"./index-ddszzne4.js";
|
|
51
|
-
import"./index-
|
|
52
|
-
import"./index-
|
|
53
|
-
import"./index-
|
|
51
|
+
import"./index-b5s1n149.js";
|
|
52
|
+
import"./index-v7wm4mw8.js";
|
|
53
|
+
import"./index-0zerbq1v.js";
|
|
54
54
|
import"./index-556ja8an.js";
|
|
55
55
|
import"./index-4fwbbad3.js";
|
|
56
56
|
import"./index-b43rt5ph.js";
|
|
57
57
|
import"./index-q7sjgr1y.js";
|
|
58
|
-
import"./index-
|
|
59
|
-
import"./index-
|
|
58
|
+
import"./index-bmst1sje.js";
|
|
59
|
+
import"./index-qypnqmcj.js";
|
|
60
60
|
import {
|
|
61
61
|
resolveWorktreeIsolationConfig
|
|
62
|
-
} from "./index-
|
|
63
|
-
import"./index-
|
|
62
|
+
} from "./index-wzc6vzq6.js";
|
|
63
|
+
import"./index-ebz97mks.js";
|
|
64
64
|
import"./index-n832052r.js";
|
|
65
65
|
import"./index-dtn0pne5.js";
|
|
66
66
|
import"./index-z6xqpmqg.js";
|
|
67
67
|
import"./index-r3mvsbtq.js";
|
|
68
|
-
import"./index-
|
|
69
|
-
import"./index-
|
|
68
|
+
import"./index-dgt8z19x.js";
|
|
69
|
+
import"./index-1xcve0gc.js";
|
|
70
70
|
import"./index-9e6fdz2h.js";
|
|
71
71
|
import"./index-4rhhvd1a.js";
|
|
72
72
|
import"./index-yt75r1er.js";
|
|
73
73
|
import"./index-zjygnfay.js";
|
|
74
74
|
import"./index-ae75rja9.js";
|
|
75
|
-
import"./index-
|
|
76
|
-
import"./index-
|
|
75
|
+
import"./index-vq4d1h7t.js";
|
|
76
|
+
import"./index-1e9rzhmr.js";
|
|
77
77
|
import"./index-bk5tah7q.js";
|
|
78
|
-
import"./index-
|
|
79
|
-
import"./index-
|
|
78
|
+
import"./index-q8yma345.js";
|
|
79
|
+
import"./index-av3gnekk.js";
|
|
80
80
|
import"./index-ed5ykebp.js";
|
|
81
|
-
import"./index-
|
|
81
|
+
import"./index-prknc0xn.js";
|
|
82
82
|
import"./index-7g4c7s5r.js";
|
|
83
83
|
import"./index-bpmtbmy9.js";
|
|
84
84
|
import"./index-zgwm4ryv.js";
|
|
@@ -407,7 +407,24 @@ export declare const SastEvidenceSchema: z.ZodObject<{
|
|
|
407
407
|
}, z.core.$strip>;
|
|
408
408
|
remediation: z.ZodOptional<z.ZodString>;
|
|
409
409
|
}, z.core.$strip>>>;
|
|
410
|
+
moved_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
411
|
+
rule_id: z.ZodString;
|
|
412
|
+
severity: z.ZodEnum<{
|
|
413
|
+
critical: "critical";
|
|
414
|
+
low: "low";
|
|
415
|
+
medium: "medium";
|
|
416
|
+
high: "high";
|
|
417
|
+
}>;
|
|
418
|
+
message: z.ZodString;
|
|
419
|
+
location: z.ZodObject<{
|
|
420
|
+
file: z.ZodString;
|
|
421
|
+
line: z.ZodNumber;
|
|
422
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
423
|
+
}, z.core.$strip>;
|
|
424
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
425
|
+
}, z.core.$strip>>>;
|
|
410
426
|
baseline_used: z.ZodOptional<z.ZodBoolean>;
|
|
427
|
+
truncated_moved_findings: z.ZodOptional<z.ZodBoolean>;
|
|
411
428
|
}, z.core.$strip>;
|
|
412
429
|
export type SastEvidence = z.infer<typeof SastEvidenceSchema>;
|
|
413
430
|
export declare const SbomEvidenceSchema: z.ZodObject<{
|
|
@@ -908,7 +925,24 @@ export declare const EvidenceSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
908
925
|
}, z.core.$strip>;
|
|
909
926
|
remediation: z.ZodOptional<z.ZodString>;
|
|
910
927
|
}, z.core.$strip>>>;
|
|
928
|
+
moved_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
929
|
+
rule_id: z.ZodString;
|
|
930
|
+
severity: z.ZodEnum<{
|
|
931
|
+
critical: "critical";
|
|
932
|
+
low: "low";
|
|
933
|
+
medium: "medium";
|
|
934
|
+
high: "high";
|
|
935
|
+
}>;
|
|
936
|
+
message: z.ZodString;
|
|
937
|
+
location: z.ZodObject<{
|
|
938
|
+
file: z.ZodString;
|
|
939
|
+
line: z.ZodNumber;
|
|
940
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
941
|
+
}, z.core.$strip>;
|
|
942
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
943
|
+
}, z.core.$strip>>>;
|
|
911
944
|
baseline_used: z.ZodOptional<z.ZodBoolean>;
|
|
945
|
+
truncated_moved_findings: z.ZodOptional<z.ZodBoolean>;
|
|
912
946
|
}, z.core.$strip>, z.ZodObject<{
|
|
913
947
|
task_id: z.ZodString;
|
|
914
948
|
timestamp: z.ZodString;
|
|
@@ -1398,7 +1432,24 @@ export declare const EvidenceBundleSchema: z.ZodObject<{
|
|
|
1398
1432
|
}, z.core.$strip>;
|
|
1399
1433
|
remediation: z.ZodOptional<z.ZodString>;
|
|
1400
1434
|
}, z.core.$strip>>>;
|
|
1435
|
+
moved_findings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1436
|
+
rule_id: z.ZodString;
|
|
1437
|
+
severity: z.ZodEnum<{
|
|
1438
|
+
critical: "critical";
|
|
1439
|
+
low: "low";
|
|
1440
|
+
medium: "medium";
|
|
1441
|
+
high: "high";
|
|
1442
|
+
}>;
|
|
1443
|
+
message: z.ZodString;
|
|
1444
|
+
location: z.ZodObject<{
|
|
1445
|
+
file: z.ZodString;
|
|
1446
|
+
line: z.ZodNumber;
|
|
1447
|
+
column: z.ZodOptional<z.ZodNumber>;
|
|
1448
|
+
}, z.core.$strip>;
|
|
1449
|
+
remediation: z.ZodOptional<z.ZodString>;
|
|
1450
|
+
}, z.core.$strip>>>;
|
|
1401
1451
|
baseline_used: z.ZodOptional<z.ZodBoolean>;
|
|
1452
|
+
truncated_moved_findings: z.ZodOptional<z.ZodBoolean>;
|
|
1402
1453
|
}, z.core.$strip>, z.ZodObject<{
|
|
1403
1454
|
task_id: z.ZodString;
|
|
1404
1455
|
timestamp: z.ZodString;
|
package/dist/config/schema.d.ts
CHANGED
|
@@ -146,6 +146,16 @@ export declare const ModelPricingConfigSchema: z.ZodObject<{
|
|
|
146
146
|
}, z.core.$strip>;
|
|
147
147
|
export type ModelPricingConfig = z.infer<typeof ModelPricingConfigSchema>;
|
|
148
148
|
export declare const PricingConfigSchema: z.ZodObject<{
|
|
149
|
+
currency: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USD">>>;
|
|
150
|
+
version: z.ZodOptional<z.ZodString>;
|
|
151
|
+
effective_at: z.ZodOptional<z.ZodString>;
|
|
152
|
+
billing_basis: z.ZodOptional<z.ZodEnum<{
|
|
153
|
+
token: "token";
|
|
154
|
+
request: "request";
|
|
155
|
+
subscription: "subscription";
|
|
156
|
+
}>>;
|
|
157
|
+
reported_cost_currency: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<"USD">>>>;
|
|
158
|
+
subscription_unbilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
149
159
|
models: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
150
160
|
input_per_million: z.ZodNumber;
|
|
151
161
|
output_per_million: z.ZodNumber;
|
|
@@ -1974,6 +1984,16 @@ export declare const PluginConfigSchema: z.ZodObject<{
|
|
|
1974
1984
|
tool_output_mask_threshold: z.ZodDefault<z.ZodNumber>;
|
|
1975
1985
|
}, z.core.$strip>>;
|
|
1976
1986
|
pricing: z.ZodOptional<z.ZodObject<{
|
|
1987
|
+
currency: z.ZodDefault<z.ZodOptional<z.ZodLiteral<"USD">>>;
|
|
1988
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1989
|
+
effective_at: z.ZodOptional<z.ZodString>;
|
|
1990
|
+
billing_basis: z.ZodOptional<z.ZodEnum<{
|
|
1991
|
+
token: "token";
|
|
1992
|
+
request: "request";
|
|
1993
|
+
subscription: "subscription";
|
|
1994
|
+
}>>;
|
|
1995
|
+
reported_cost_currency: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodLiteral<"USD">>>>;
|
|
1996
|
+
subscription_unbilled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1977
1997
|
models: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1978
1998
|
input_per_million: z.ZodNumber;
|
|
1979
1999
|
output_per_million: z.ZodNumber;
|
|
@@ -95,12 +95,12 @@ export declare const EvaluationCandidateV1Schema: z.ZodObject<{
|
|
|
95
95
|
}, z.core.$strict>;
|
|
96
96
|
export type EvaluationCandidateV1 = z.infer<typeof EvaluationCandidateV1Schema>;
|
|
97
97
|
export declare const EvaluationOutcomeSchema: z.ZodEnum<{
|
|
98
|
+
malformed: "malformed";
|
|
98
99
|
timeout: "timeout";
|
|
99
100
|
cancelled: "cancelled";
|
|
100
101
|
unsupported: "unsupported";
|
|
101
102
|
scored: "scored";
|
|
102
103
|
infrastructure_failure: "infrastructure_failure";
|
|
103
|
-
malformed: "malformed";
|
|
104
104
|
integrity_failure: "integrity_failure";
|
|
105
105
|
}>;
|
|
106
106
|
export type EvaluationOutcome = z.infer<typeof EvaluationOutcomeSchema>;
|
|
@@ -113,12 +113,12 @@ export declare const EvaluationResultV1Schema: z.ZodObject<{
|
|
|
113
113
|
candidateId: z.ZodString;
|
|
114
114
|
seed: z.ZodString;
|
|
115
115
|
outcome: z.ZodEnum<{
|
|
116
|
+
malformed: "malformed";
|
|
116
117
|
timeout: "timeout";
|
|
117
118
|
cancelled: "cancelled";
|
|
118
119
|
unsupported: "unsupported";
|
|
119
120
|
scored: "scored";
|
|
120
121
|
infrastructure_failure: "infrastructure_failure";
|
|
121
|
-
malformed: "malformed";
|
|
122
122
|
integrity_failure: "integrity_failure";
|
|
123
123
|
}>;
|
|
124
124
|
score: z.ZodOptional<z.ZodNumber>;
|
|
@@ -160,8 +160,8 @@ export declare const EvaluationRunV1Schema: z.ZodObject<{
|
|
|
160
160
|
createdAt: z.ZodISODateTime;
|
|
161
161
|
status: z.ZodEnum<{
|
|
162
162
|
complete: "complete";
|
|
163
|
-
cancelled: "cancelled";
|
|
164
163
|
inconclusive: "inconclusive";
|
|
164
|
+
cancelled: "cancelled";
|
|
165
165
|
}>;
|
|
166
166
|
baseline: z.ZodObject<{
|
|
167
167
|
v: z.ZodLiteral<1>;
|
|
@@ -227,12 +227,12 @@ export declare const EvaluationRunV1Schema: z.ZodObject<{
|
|
|
227
227
|
candidateId: z.ZodString;
|
|
228
228
|
seed: z.ZodString;
|
|
229
229
|
outcome: z.ZodEnum<{
|
|
230
|
+
malformed: "malformed";
|
|
230
231
|
timeout: "timeout";
|
|
231
232
|
cancelled: "cancelled";
|
|
232
233
|
unsupported: "unsupported";
|
|
233
234
|
scored: "scored";
|
|
234
235
|
infrastructure_failure: "infrastructure_failure";
|
|
235
|
-
malformed: "malformed";
|
|
236
236
|
integrity_failure: "integrity_failure";
|
|
237
237
|
}>;
|
|
238
238
|
score: z.ZodOptional<z.ZodNumber>;
|
|
@@ -415,8 +415,8 @@ export declare const GateAuditResultV1Schema: z.ZodObject<{
|
|
|
415
415
|
createdAt: z.ZodISODateTime;
|
|
416
416
|
status: z.ZodEnum<{
|
|
417
417
|
complete: "complete";
|
|
418
|
-
cancelled: "cancelled";
|
|
419
418
|
inconclusive: "inconclusive";
|
|
419
|
+
cancelled: "cancelled";
|
|
420
420
|
}>;
|
|
421
421
|
cells: z.ZodArray<z.ZodObject<{
|
|
422
422
|
v: z.ZodLiteral<1>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { OpencodeClient } from '@opencode-ai/sdk';
|
|
2
2
|
import type { DelegationCostFields } from '../services/cost-accounting.js';
|
|
3
|
+
import { type PricingConfig } from '../services/cost-accounting.js';
|
|
3
4
|
import { log } from '../utils/logger.js';
|
|
4
5
|
import type { ModelOverride } from '../utils/model-dispatch-fallback.js';
|
|
5
6
|
export declare const DEFAULT_EPHEMERAL_TIMEOUT_MS = 120000;
|
|
@@ -44,6 +45,7 @@ export type EphemeralAgentDispatchRequest = {
|
|
|
44
45
|
promptByteLimit?: number;
|
|
45
46
|
responseByteLimit?: number;
|
|
46
47
|
abortSignal?: AbortSignal;
|
|
48
|
+
pricing?: PricingConfig;
|
|
47
49
|
};
|
|
48
50
|
export type EphemeralAgentDispatchResult = {
|
|
49
51
|
status: 'completed' | 'timeout' | 'cancelled' | 'error';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Agent, OpencodeClient } from '@opencode-ai/sdk';
|
|
2
|
-
import type { DelegationCostFields } from '../services/cost-accounting.js';
|
|
2
|
+
import type { DelegationCostFields, PricingConfig } from '../services/cost-accounting.js';
|
|
3
3
|
import { _internals as ephemeralDispatcherInternals } from './ephemeral-agent-dispatcher.js';
|
|
4
4
|
export type EvaluationModelDispatchRequest = {
|
|
5
5
|
/**
|
|
@@ -52,4 +52,4 @@ export declare const _internals: {
|
|
|
52
52
|
boundedDelete: typeof ephemeralDispatcherInternals.boundedDelete;
|
|
53
53
|
log: typeof ephemeralDispatcherInternals.log;
|
|
54
54
|
};
|
|
55
|
-
export declare function createEvaluationModelDispatcher(client: OpencodeClient): EvaluationModelDispatcher;
|
|
55
|
+
export declare function createEvaluationModelDispatcher(client: OpencodeClient, pricing?: PricingConfig): EvaluationModelDispatcher;
|