opencode-swarm 7.159.0 → 7.159.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.
Files changed (76) hide show
  1. package/dist/cli/{coder-settlement-66mqw0xt.js → coder-settlement-d89tqam8.js} +9 -9
  2. package/dist/cli/{config-doctor-nkx61b9e.js → config-doctor-8zawz3qh.js} +2 -2
  3. package/dist/cli/{core-b3db7gf6.js → core-pp64ys5v.js} +1 -1
  4. package/dist/cli/{curation-policy-vn3m5nq2.js → curation-policy-2gq8307w.js} +6 -6
  5. package/dist/cli/{curator-llm-factory-c4y1mrr5.js → curator-llm-factory-m3yw6sn5.js} +30 -30
  6. package/dist/cli/{curator-w4ntvkz5.js → curator-mpqpbr0r.js} +30 -30
  7. package/dist/cli/{evidence-summary-service-vadgnzk6.js → evidence-summary-service-qaq1eba9.js} +12 -12
  8. package/dist/cli/{gate-evidence-0chatz5e.js → gate-evidence-r0c71n04.js} +6 -6
  9. package/dist/cli/{guardrail-explain-ax2qmsp4.js → guardrail-explain-5z64w3ah.js} +31 -31
  10. package/dist/cli/{guardrail-log-t3c9g8tc.js → guardrail-log-f9nf687y.js} +5 -5
  11. package/dist/cli/{guardrail-reset-wvdb5sv5.js → guardrail-reset-yjwk20rb.js} +30 -30
  12. package/dist/cli/{hive-promoter-mfq3ee0n.js → hive-promoter-zjtgbh4w.js} +30 -30
  13. package/dist/cli/{index-nwkr6tvv.js → index-0zerbq1v.js} +1 -1
  14. package/dist/cli/{index-mc9qgkwd.js → index-1qpagg2t.js} +3 -3
  15. package/dist/cli/{index-fcp41snp.js → index-29wav1x0.js} +4 -4
  16. package/dist/cli/{index-ghjs1n7k.js → index-2z00wqvb.js} +3 -3
  17. package/dist/cli/{index-8kfbdrxa.js → index-36sgq7n9.js} +32 -32
  18. package/dist/cli/{index-9vt2hknx.js → index-3rcqxbwt.js} +1 -1
  19. package/dist/cli/{index-hte1e31d.js → index-3scbg6n2.js} +2 -2
  20. package/dist/cli/{index-e2s08v0q.js → index-4k9pqbxw.js} +2 -2
  21. package/dist/cli/{index-xmz69g65.js → index-4nc9npx5.js} +2 -2
  22. package/dist/cli/{index-pfnj5pvs.js → index-54pkyasv.js} +1 -1
  23. package/dist/cli/{index-6e6qxf5q.js → index-60mzwj91.js} +1 -1
  24. package/dist/cli/{index-8fqb0ynp.js → index-6z53bew2.js} +1 -1
  25. package/dist/cli/{index-tcbjjppb.js → index-7yg4ypyg.js} +1 -1
  26. package/dist/cli/{index-3e8600a7.js → index-86dvzyac.js} +703 -222
  27. package/dist/cli/{index-vywbn766.js → index-8819vcke.js} +4 -4
  28. package/dist/cli/{index-04yrxg0z.js → index-9fphcxes.js} +2 -2
  29. package/dist/cli/{index-1sdb57jv.js → index-9yxyc1gb.js} +6 -6
  30. package/dist/cli/{index-zcmwwp1x.js → index-a5w29k1t.js} +1 -1
  31. package/dist/cli/{index-xagq35tf.js → index-av3gnekk.js} +1 -1
  32. package/dist/cli/{index-erdsawqz.js → index-bea260ta.js} +6 -6
  33. package/dist/cli/{index-ynjy98vv.js → index-bz7ayg01.js} +5 -5
  34. package/dist/cli/{index-k4arrwrz.js → index-f3yphmk6.js} +7 -7
  35. package/dist/cli/{index-5zgf140g.js → index-g6d8xam2.js} +1 -1
  36. package/dist/cli/{index-k48kgm6z.js → index-gkw7kq6z.js} +5 -5
  37. package/dist/cli/{index-b82tq895.js → index-k6y6btb6.js} +3 -3
  38. package/dist/cli/{index-h1g8w4v0.js → index-prknc0xn.js} +129 -44
  39. package/dist/cli/{index-z54qw70y.js → index-tvz43tea.js} +1 -1
  40. package/dist/cli/{index-h52hs4e9.js → index-v3jy0tc6.js} +2 -2
  41. package/dist/cli/{index-pvzaryhr.js → index-ve3v09kq.js} +1 -1
  42. package/dist/cli/{index-b1tenv2s.js → index-wae55z9w.js} +7 -1
  43. package/dist/cli/{index-8jnzp5ct.js → index-wttqayp1.js} +2 -2
  44. package/dist/cli/{index-35grv4jg.js → index-yw26j0q7.js} +7 -7
  45. package/dist/cli/{index-we3nf5as.js → index-zmc8mm7v.js} +4 -4
  46. package/dist/cli/{index-7s1hmrfh.js → index-zxkv8x5n.js} +2 -2
  47. package/dist/cli/index.js +30 -30
  48. package/dist/cli/{knowledge-escalator-x85t1e66.js → knowledge-escalator-585m4927.js} +11 -11
  49. package/dist/cli/{knowledge-events-bwx99mxc.js → knowledge-events-ssegqfmy.js} +9 -9
  50. package/dist/cli/{knowledge-link-cj2abbae.js → knowledge-link-a9fafeb3.js} +5 -5
  51. package/dist/cli/{knowledge-store-21m81zsa.js → knowledge-store-nznky6cv.js} +6 -6
  52. package/dist/cli/{knowledge-validator-yxcadg1p.js → knowledge-validator-3byea8gp.js} +8 -8
  53. package/dist/cli/{pending-delegations-b8qka5nf.js → pending-delegations-qrjq3s29.js} +3 -3
  54. package/dist/cli/{pr-review-reentry-authorization-wv3ck5kh.js → pr-review-reentry-authorization-w8ja0m2p.js} +30 -30
  55. package/dist/cli/{pr-subscriptions-j9j70bmd.js → pr-subscriptions-fvmey1x6.js} +4 -4
  56. package/dist/cli/{runner-sj5sf36c.js → runner-atbehryj.js} +6 -6
  57. package/dist/cli/{scan-cursor-m3w0tapb.js → scan-cursor-kv9scb2v.js} +7 -7
  58. package/dist/cli/{schema-0b0dqn28.js → schema-a7f88yc3.js} +1 -1
  59. package/dist/cli/{scope-persistence-199f7yqc.js → scope-persistence-x6de46s4.js} +8 -8
  60. package/dist/cli/{skill-generator-a2ekcbe2.js → skill-generator-vwcrfrw3.js} +13 -13
  61. package/dist/cli/{telemetry-r8e8zey7.js → telemetry-3rh94wv3.js} +1 -1
  62. package/dist/cli/{worktree-collision-ownership-5qaab3q7.js → worktree-collision-ownership-7kf9mm5z.js} +5 -5
  63. package/dist/cli/{worktree-isolation-esesc842.js → worktree-isolation-6zh5bxrd.js} +30 -30
  64. package/dist/config/schema.d.ts +20 -0
  65. package/dist/evaluation/contracts.d.ts +5 -5
  66. package/dist/evaluation/ephemeral-agent-dispatcher.d.ts +2 -0
  67. package/dist/evaluation/model-dispatcher.d.ts +2 -2
  68. package/dist/index.js +189 -189
  69. package/dist/observability/catalog.d.ts +5 -3
  70. package/dist/review/contracts.d.ts +2 -1
  71. package/dist/review/evidence.d.ts +12 -0
  72. package/dist/services/cost-accounting.d.ts +100 -0
  73. package/dist/services/status-service.d.ts +12 -0
  74. package/dist/telemetry.d.ts +1 -1
  75. package/opencode-swarm.schema.json +40 -0
  76. package/package.json +1 -1
@@ -21,64 +21,64 @@ import {
21
21
  sanitizeWorktreeTaskId,
22
22
  standardWorktreeByCallID,
23
23
  standardWorktreeSerializationSessions
24
- } from "./index-3e8600a7.js";
25
- import"./index-z54qw70y.js";
26
- import"./index-04yrxg0z.js";
27
- import"./index-6e6qxf5q.js";
28
- import"./index-k4arrwrz.js";
29
- import"./index-7s1hmrfh.js";
24
+ } from "./index-86dvzyac.js";
25
+ import"./index-tvz43tea.js";
26
+ import"./index-9fphcxes.js";
27
+ import"./index-60mzwj91.js";
28
+ import"./index-f3yphmk6.js";
29
+ import"./index-zxkv8x5n.js";
30
30
  import"./index-txdagbh7.js";
31
31
  import"./index-134d35c1.js";
32
32
  import"./index-nj6rmyeh.js";
33
- import"./index-fcp41snp.js";
34
- import"./index-k48kgm6z.js";
35
- import"./index-xmz69g65.js";
33
+ import"./index-29wav1x0.js";
34
+ import"./index-gkw7kq6z.js";
35
+ import"./index-4nc9npx5.js";
36
36
  import"./index-70ha9e09.js";
37
37
  import"./index-c8s9a3zh.js";
38
38
  import"./index-9ss2m4rs.js";
39
- import"./index-mc9qgkwd.js";
39
+ import"./index-1qpagg2t.js";
40
40
  import"./index-zsrtt42s.js";
41
- import"./index-1sdb57jv.js";
41
+ import"./index-9yxyc1gb.js";
42
42
  import"./index-3f7hqtgg.js";
43
- import"./index-8fqb0ynp.js";
44
- import"./index-vywbn766.js";
45
- import"./index-pfnj5pvs.js";
43
+ import"./index-6z53bew2.js";
44
+ import"./index-8819vcke.js";
45
+ import"./index-54pkyasv.js";
46
46
  import"./index-rtry5xyf.js";
47
- import"./index-we3nf5as.js";
48
- import"./index-pvzaryhr.js";
49
- import"./index-e2s08v0q.js";
47
+ import"./index-zmc8mm7v.js";
48
+ import"./index-ve3v09kq.js";
49
+ import"./index-4k9pqbxw.js";
50
50
  import"./index-ddszzne4.js";
51
- import"./index-ynjy98vv.js";
52
- import"./index-b82tq895.js";
53
- import"./index-nwkr6tvv.js";
51
+ import"./index-bz7ayg01.js";
52
+ import"./index-k6y6btb6.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-erdsawqz.js";
59
- import"./index-35grv4jg.js";
58
+ import"./index-bea260ta.js";
59
+ import"./index-yw26j0q7.js";
60
60
  import {
61
61
  resolveWorktreeIsolationConfig
62
- } from "./index-hte1e31d.js";
62
+ } from "./index-3scbg6n2.js";
63
63
  import"./index-gprxjmm7.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-tcbjjppb.js";
69
- import"./index-b1tenv2s.js";
68
+ import"./index-7yg4ypyg.js";
69
+ import"./index-wae55z9w.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-5zgf140g.js";
76
- import"./index-h52hs4e9.js";
75
+ import"./index-g6d8xam2.js";
76
+ import"./index-v3jy0tc6.js";
77
77
  import"./index-bk5tah7q.js";
78
- import"./index-zcmwwp1x.js";
79
- import"./index-xagq35tf.js";
78
+ import"./index-a5w29k1t.js";
79
+ import"./index-av3gnekk.js";
80
80
  import"./index-ed5ykebp.js";
81
- import"./index-h1g8w4v0.js";
81
+ import"./index-prknc0xn.js";
82
82
  import"./index-7g4c7s5r.js";
83
83
  import"./index-bpmtbmy9.js";
84
84
  import"./index-zgwm4ryv.js";
@@ -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;