@trazum/core 3.0.1 → 3.0.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.
Files changed (80) hide show
  1. package/README.md +1 -1
  2. package/dist/claude-model-pricing.d.ts +73 -0
  3. package/dist/claude-model-pricing.d.ts.map +1 -0
  4. package/dist/claude-model-pricing.js +208 -0
  5. package/dist/claude-model-pricing.js.map +1 -0
  6. package/dist/config-schema.d.ts +14 -1
  7. package/dist/config-schema.d.ts.map +1 -1
  8. package/dist/config-schema.js +24 -0
  9. package/dist/config-schema.js.map +1 -1
  10. package/dist/index.d.ts +13 -4
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +10 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/node.d.ts +1 -1
  15. package/dist/node.d.ts.map +1 -1
  16. package/dist/node.js +1 -1
  17. package/dist/node.js.map +1 -1
  18. package/dist/otlp.d.ts +103 -0
  19. package/dist/otlp.d.ts.map +1 -1
  20. package/dist/otlp.js +185 -0
  21. package/dist/otlp.js.map +1 -1
  22. package/dist/partner-model-id.d.ts +26 -0
  23. package/dist/partner-model-id.d.ts.map +1 -0
  24. package/dist/partner-model-id.js +60 -0
  25. package/dist/partner-model-id.js.map +1 -0
  26. package/dist/plan-edit.d.ts +99 -0
  27. package/dist/plan-edit.d.ts.map +1 -0
  28. package/dist/plan-edit.js +142 -0
  29. package/dist/plan-edit.js.map +1 -0
  30. package/dist/plan.d.ts +63 -2
  31. package/dist/plan.d.ts.map +1 -1
  32. package/dist/plan.js +55 -0
  33. package/dist/plan.js.map +1 -1
  34. package/dist/pricing.d.ts +19 -0
  35. package/dist/pricing.d.ts.map +1 -1
  36. package/dist/pricing.js +32 -0
  37. package/dist/pricing.js.map +1 -1
  38. package/dist/prometheus.d.ts +42 -0
  39. package/dist/prometheus.d.ts.map +1 -0
  40. package/dist/prometheus.js +112 -0
  41. package/dist/prometheus.js.map +1 -0
  42. package/dist/receipt.d.ts +2 -1
  43. package/dist/receipt.d.ts.map +1 -1
  44. package/dist/receipt.js +11 -1
  45. package/dist/receipt.js.map +1 -1
  46. package/dist/session-waste.d.ts +145 -0
  47. package/dist/session-waste.d.ts.map +1 -0
  48. package/dist/session-waste.js +489 -0
  49. package/dist/session-waste.js.map +1 -0
  50. package/dist/structure.js +3 -3
  51. package/dist/structure.js.map +1 -1
  52. package/dist/tokenizer.d.ts +9 -0
  53. package/dist/tokenizer.d.ts.map +1 -1
  54. package/dist/tokenizer.js +1 -1
  55. package/dist/tokenizer.js.map +1 -1
  56. package/dist/verify.d.ts +11 -1
  57. package/dist/verify.d.ts.map +1 -1
  58. package/dist/verify.js +54 -0
  59. package/dist/verify.js.map +1 -1
  60. package/dist/walk.d.ts +14 -0
  61. package/dist/walk.d.ts.map +1 -1
  62. package/dist/walk.js +35 -0
  63. package/dist/walk.js.map +1 -1
  64. package/package.json +1 -1
  65. package/src/claude-model-pricing.ts +245 -0
  66. package/src/config-schema.ts +44 -0
  67. package/src/index.ts +46 -4
  68. package/src/node.ts +1 -1
  69. package/src/otlp.ts +281 -0
  70. package/src/partner-model-id.ts +69 -0
  71. package/src/plan-edit.ts +180 -0
  72. package/src/plan.ts +104 -3
  73. package/src/pricing.ts +33 -0
  74. package/src/prometheus.ts +131 -0
  75. package/src/receipt.ts +16 -2
  76. package/src/session-waste.ts +570 -0
  77. package/src/structure.ts +3 -3
  78. package/src/tokenizer.ts +1 -1
  79. package/src/verify.ts +78 -2
  80. package/src/walk.ts +33 -0
@@ -0,0 +1,245 @@
1
+ import { BUNDLED_CATALOGUE } from './pricing.js';
2
+ import type { PricingCatalogue } from './pricing.js';
3
+ import type { PricingOverlay } from './pricing-overlay.js';
4
+ import type { ModelPricing } from './types.js';
5
+
6
+ /**
7
+ * Claude Code's `modelPricing` managed setting, read as a pricing overlay (#856).
8
+ *
9
+ * Since v2.1.242 an organisation can give Claude Code its contracted rates, so
10
+ * the dollar figures in `/usage`, the status line and OpenTelemetry match its
11
+ * bill: an optional `multiplier` that scales every cost, and an optional
12
+ * `overrides` map of model id to four USD-per-million rates. Trazum priced the
13
+ * same sessions at list price, so the organisation saw two figures for one piece
14
+ * of work, and Trazum's was the one that did not match the invoice.
15
+ *
16
+ * The shape and the rules are the settings reference's, read 2026-11-20
17
+ * (code.claude.com/docs/en/settings-reference#modelpricing):
18
+ *
19
+ * - `multiplier` is a number above 0 and at most 10. It scales every cost Claude
20
+ * Code computes, a row included.
21
+ * - A row needs all four of `input`, `output`, `cacheRead` and `cacheWrite`, each
22
+ * 0 to 10000. `cacheWrite` covers the five-minute and the one-hour write.
23
+ * - A row's rates are used as written: no fast-mode surcharge and no US-only
24
+ * rate on top.
25
+ * - A row Claude Code cannot parse is dropped and the rest kept.
26
+ * - A row keyed by a built-in model's id applies to its snapshots and
27
+ * provider-specific ids; any other key applies to that one id.
28
+ *
29
+ * **What this does not do.** The table has no batch rate and no fast-mode rate,
30
+ * so neither is invented: batch keeps the catalogue's ratio to the new input, a
31
+ * published fast-mode rate stays as published, and both are named per model.
32
+ * A key the catalogue cannot place is named and priced nowhere, because which
33
+ * model a Bedrock or gateway id means is the operator's to say. A rate of zero is
34
+ * refused: Trazum prices nothing at zero, and a row it cannot apply is named.
35
+ */
36
+
37
+ export const MAX_MULTIPLIER = 10;
38
+ export const MAX_RATE = 10_000;
39
+ type RateKey = 'input' | 'output' | 'cacheRead' | 'cacheWrite';
40
+ type Row = Record<RateKey, number>;
41
+
42
+ /** Why a row in the table does not reach the overlay. */
43
+ export interface SkippedRow {
44
+ key: string;
45
+ reason: 'invalid' | 'zero' | 'unknown-model' | 'duplicate';
46
+ /** For `invalid`, what was wrong; for `duplicate`, the key whose row was used. */
47
+ detail?: string;
48
+ }
49
+
50
+ export interface ClaudeModelPricingResult {
51
+ overlay: PricingOverlay;
52
+ /** The multiplier, when the table sets a usable one. */
53
+ multiplier?: number;
54
+ /** Models priced from a row of the table, by catalogue id. */
55
+ fromRows: string[];
56
+ /** Claude models with no row, priced at list times the multiplier. */
57
+ fromMultiplier: string[];
58
+ skipped: SkippedRow[];
59
+ /** Models whose published fast-mode rate this overlay leaves as published. */
60
+ fastKept: string[];
61
+ /** Models whose batch price is the catalogue's batch ratio applied to the new input. */
62
+ batchFromRatio: string[];
63
+ /** Models whose US-only rate is dropped, as Claude Code drops it on a row. */
64
+ usOnlyDropped: string[];
65
+ }
66
+
67
+ export class ClaudeModelPricingError extends Error {
68
+ constructor(message: string) {
69
+ super(message);
70
+ this.name = 'ClaudeModelPricingError';
71
+ }
72
+ }
73
+
74
+ const isPlainObject = (value: unknown): value is Record<string, unknown> =>
75
+ typeof value === 'object' && value !== null && !Array.isArray(value);
76
+
77
+ const ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
78
+
79
+ /** Twelve significant figures: 3 x 0.85 is 2.55, not 2.5500000000000003. */
80
+ const tidy = (value: number): number => Number(value.toPrecision(12));
81
+
82
+ /** The `modelPricing` object, from a whole settings file or from the object itself. */
83
+ function tableOf(document: unknown): Record<string, unknown> {
84
+ if (!isPlainObject(document)) throw new ClaudeModelPricingError('the file is not a JSON object');
85
+ if ('modelPricing' in document) {
86
+ if (!isPlainObject(document.modelPricing)) throw new ClaudeModelPricingError('"modelPricing" is not an object');
87
+ return document.modelPricing;
88
+ }
89
+ const keys = Object.keys(document);
90
+ if (keys.length > 0 && keys.every((key) => key === 'multiplier' || key === 'overrides')) return document;
91
+ throw new ClaudeModelPricingError('no "modelPricing" in the file');
92
+ }
93
+
94
+ /**
95
+ * One rate of a row as Claude Code reads it, or why it would drop the row.
96
+ * Named fields rather than a loop over keys, so nothing indexes an object by a
97
+ * computed name.
98
+ */
99
+ function rate(value: unknown, name: RateKey): number | string {
100
+ if (value === undefined) return `no "${name}"`;
101
+ if (typeof value !== 'number' || !Number.isFinite(value) || value < 0 || value > MAX_RATE) {
102
+ return `"${name}" is not a number from 0 to ${MAX_RATE}`;
103
+ }
104
+ return value;
105
+ }
106
+
107
+ /** A row as Claude Code reads it, or why Claude Code would drop it. */
108
+ function readRow(raw: unknown): { row: Row } | { invalid: string } {
109
+ if (!isPlainObject(raw)) return { invalid: 'not an object' };
110
+ const input = rate(raw.input, 'input');
111
+ const output = rate(raw.output, 'output');
112
+ const cacheRead = rate(raw.cacheRead, 'cacheRead');
113
+ const cacheWrite = rate(raw.cacheWrite, 'cacheWrite');
114
+ for (const read of [input, output, cacheRead, cacheWrite]) {
115
+ if (typeof read === 'string') return { invalid: read };
116
+ }
117
+ return { row: { input, output, cacheRead, cacheWrite } as Row };
118
+ }
119
+
120
+ /** Whether any of a row's rates is zero, which Trazum never prices at. */
121
+ const hasZero = (row: Row): boolean =>
122
+ row.input === 0 || row.output === 0 || row.cacheRead === 0 || row.cacheWrite === 0;
123
+
124
+ /**
125
+ * The overlay a `modelPricing` table makes of a catalogue.
126
+ *
127
+ * `reviewed` is the date somebody last checked the table against the contract.
128
+ * It is required: an overlay whose age is unknown is worse than the bundled
129
+ * catalogue, whose age is printed on every report.
130
+ */
131
+ export function overlayFromClaudeModelPricing(
132
+ document: unknown,
133
+ options: { reviewed: string; source?: string; catalogue?: PricingCatalogue },
134
+ ): ClaudeModelPricingResult {
135
+ if (!ISO_DATE.test(options.reviewed) || Number.isNaN(Date.parse(`${options.reviewed}T00:00:00Z`))) {
136
+ throw new ClaudeModelPricingError(`"${options.reviewed}" is not a date as YYYY-MM-DD`);
137
+ }
138
+ const catalogue = options.catalogue ?? BUNDLED_CATALOGUE;
139
+ const source = options.source ?? "Claude Code's modelPricing";
140
+ const table = tableOf(document);
141
+
142
+ const skipped: SkippedRow[] = [];
143
+ let multiplier: number | undefined;
144
+ if (table.multiplier !== undefined) {
145
+ const m = table.multiplier;
146
+ if (typeof m !== 'number' || !Number.isFinite(m) || m <= 0 || m > MAX_MULTIPLIER) {
147
+ // Claude Code drops a multiplier it cannot parse and keeps the rest.
148
+ skipped.push({ key: 'multiplier', reason: 'invalid', detail: `not a number above 0 and at most ${MAX_MULTIPLIER}` });
149
+ } else {
150
+ multiplier = m;
151
+ }
152
+ }
153
+ const scale = multiplier ?? 1;
154
+
155
+ if (table.overrides !== undefined && !isPlainObject(table.overrides)) {
156
+ throw new ClaudeModelPricingError('"overrides" is not an object');
157
+ }
158
+ const overrides = (table.overrides ?? {}) as Record<string, unknown>;
159
+
160
+ // Each usable row, by the catalogue model it lands on. A model's own id wins
161
+ // over an alias of it, as Claude Code's exact match wins over the family row.
162
+ const rows = new Map<string, { key: string; row: Row }>();
163
+ for (const [key, raw] of Object.entries(overrides)) {
164
+ const read = readRow(raw);
165
+ if ('invalid' in read) {
166
+ skipped.push({ key, reason: 'invalid', detail: read.invalid });
167
+ continue;
168
+ }
169
+ if (hasZero(read.row)) {
170
+ skipped.push({ key, reason: 'zero' });
171
+ continue;
172
+ }
173
+ const model = catalogue.byId.get(key);
174
+ if (model === undefined) {
175
+ skipped.push({ key, reason: 'unknown-model' });
176
+ continue;
177
+ }
178
+ const held = rows.get(model.id);
179
+ if (held === undefined) {
180
+ rows.set(model.id, { key, row: read.row });
181
+ } else if (key === model.id) {
182
+ skipped.push({ key: held.key, reason: 'duplicate', detail: key });
183
+ rows.set(model.id, { key, row: read.row });
184
+ } else {
185
+ skipped.push({ key, reason: 'duplicate', detail: held.key });
186
+ }
187
+ }
188
+
189
+ const note = `Contracted rates from ${source}, reviewed ${options.reviewed}.`;
190
+ const withNote = (model: ModelPricing): string => (model.notes ? `${model.notes} ${note}` : note);
191
+ const models: PricingOverlay['models'] = {};
192
+ const fromRows: string[] = [];
193
+ const fromMultiplier: string[] = [];
194
+ const fastKept: string[] = [];
195
+ const batchFromRatio: string[] = [];
196
+ const usOnlyDropped: string[] = [];
197
+ const hasFast = (model: ModelPricing): boolean => (model.tiers ?? []).some((tier) => tier.when.kind === 'speed');
198
+
199
+ for (const model of catalogue.models) {
200
+ const own = rows.get(model.id);
201
+ if (own !== undefined) {
202
+ const { row } = own;
203
+ const base = model.multipliers ?? {};
204
+ models[model.id] = {
205
+ inputPerMTok: tidy(row.input * scale),
206
+ outputPerMTok: tidy(row.output * scale),
207
+ // Ratios of the row's own input: the multiplier scales both sides, so
208
+ // it does not enter them.
209
+ multipliers: {
210
+ ...base,
211
+ cacheRead: tidy(row.cacheRead / row.input),
212
+ cacheWrite5m: tidy(row.cacheWrite / row.input),
213
+ cacheWrite1h: tidy(row.cacheWrite / row.input),
214
+ },
215
+ // A row is used as written, with no US-only rate on top.
216
+ ...(model.inferenceGeoMultipliers?.us !== undefined ? { inferenceGeoMultipliers: { us: 1 } } : {}),
217
+ notes: withNote(model),
218
+ };
219
+ fromRows.push(model.id);
220
+ if (model.inferenceGeoMultipliers?.us !== undefined) usOnlyDropped.push(model.id);
221
+ } else if (multiplier !== undefined && model.provider === 'anthropic') {
222
+ models[model.id] = {
223
+ inputPerMTok: tidy(model.inputPerMTok * scale),
224
+ outputPerMTok: tidy(model.outputPerMTok * scale),
225
+ notes: withNote(model),
226
+ };
227
+ fromMultiplier.push(model.id);
228
+ } else {
229
+ continue;
230
+ }
231
+ if (hasFast(model)) fastKept.push(model.id);
232
+ if (model.multipliers?.batch !== null) batchFromRatio.push(model.id);
233
+ }
234
+
235
+ return {
236
+ overlay: { lastReviewed: options.reviewed, models },
237
+ ...(multiplier !== undefined ? { multiplier } : {}),
238
+ fromRows,
239
+ fromMultiplier,
240
+ skipped,
241
+ fastKept,
242
+ batchFromRatio,
243
+ usOnlyDropped,
244
+ };
245
+ }
@@ -188,6 +188,19 @@ export interface TrazumConfig {
188
188
  * produced the log, and the report says so.
189
189
  */
190
190
  labels?: Record<string, string>;
191
+ /**
192
+ * Calls a month, per label in `labels`: the volume somebody stated for the
193
+ * prompt file that label sends.
194
+ *
195
+ * `trazum check --base` (#785) prices each changed prompt a month at a
196
+ * time on the base branch and on the head, and a month needs a number of
197
+ * calls. That number is a statement about traffic, so it is written here,
198
+ * keyed by the same labels `plan --edits` and `profile` read, rather than
199
+ * guessed: a prompt whose label has no volume is priced per call, and the
200
+ * report says so. A volume for a label `labels` does not map is refused,
201
+ * because it could only ever be attached to nothing.
202
+ */
203
+ volumes?: Record<string, number>;
191
204
  /**
192
205
  * Money budgets for `trazum profile`, in dollars.
193
206
  *
@@ -344,6 +357,7 @@ export const CONFIG_KEYS = keyList<TrazumConfig>({
344
357
  usage: true,
345
358
  budgets: true,
346
359
  labels: true,
360
+ volumes: true,
347
361
  spend: true,
348
362
  limits: true,
349
363
  sources: true,
@@ -566,6 +580,35 @@ function parseLabels(raw: unknown, source: string): Record<string, string> {
566
580
  return labels;
567
581
  }
568
582
 
583
+ /**
584
+ * `volumes`: label to calls a month, each label one `labels` maps to a file.
585
+ *
586
+ * Zero is allowed, because "this prompt is not sent at all yet" is a volume
587
+ * somebody can state. A negative or non-finite number is not a volume.
588
+ */
589
+ function parseVolumes(
590
+ raw: unknown,
591
+ labels: Record<string, string> | undefined,
592
+ source: string,
593
+ ): Record<string, number> {
594
+ if (!isPlainObject(raw)) throw new ConfigError('"volumes" must be an object', source);
595
+
596
+ const volumes: Record<string, number> = {};
597
+ for (const [label, value] of Object.entries(raw)) {
598
+ if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) {
599
+ throw new ConfigError(`volumes["${label}"] must be a number of calls a month, 0 or more`, source);
600
+ }
601
+ if (labels === undefined || labels[label] === undefined) {
602
+ throw new ConfigError(
603
+ `volumes["${label}"] names a label "labels" does not map to a prompt file, so the volume belongs to no prompt`,
604
+ source,
605
+ );
606
+ }
607
+ volumes[label] = value;
608
+ }
609
+ return volumes;
610
+ }
611
+
569
612
  function parseBudgets(raw: unknown, source: string): Record<string, number> {
570
613
  if (!isPlainObject(raw)) throw new ConfigError('"budgets" must be an object', source);
571
614
 
@@ -1196,6 +1239,7 @@ export function parseConfig(raw: string, source = CONFIG_FILENAME): TrazumConfig
1196
1239
  if (document.usage !== undefined) config.usage = parseUsage(document.usage, source);
1197
1240
  if (document.budgets !== undefined) config.budgets = parseBudgets(document.budgets, source);
1198
1241
  if (document.labels !== undefined) config.labels = parseLabels(document.labels, source);
1242
+ if (document.volumes !== undefined) config.volumes = parseVolumes(document.volumes, config.labels, source);
1199
1243
  if (document.spend !== undefined) config.spend = parseSpend(document.spend, source);
1200
1244
  if (document.limits !== undefined) config.limits = parseLimits(document.limits, source);
1201
1245
  if (document.sources !== undefined) config.sources = parseSources(document.sources, source);
package/src/index.ts CHANGED
@@ -75,9 +75,11 @@ export type {
75
75
  } from './receipt.js';
76
76
  export { heartbeats } from './heartbeat.js';
77
77
  export { ruleYield } from './rule-yield.js';
78
- export { buildPlan, planLabelName, parsePlanDocument, PLAN_ACTION_KINDS } from './plan.js';
78
+ export { buildPlan, planLabelName, parsePlanDocument, planEditProblem, PLAN_ACTION_KINDS, PLAN_EDIT_STEPS } from './plan.js';
79
79
  export type { PlanParseFailure, PlanParseResult } from './plan.js';
80
- export type { PlanAction, PlanActionKind, PlanAssumption, PlanDocument } from './plan.js';
80
+ export type { PlanAction, PlanActionKind, PlanAssumption, PlanDocument, PlanEdit, PlanEditStep } from './plan.js';
81
+ export { applyPlanEdit, isEditableFile, planEdits, planFileEdit, runPlanEditSteps } from './plan-edit.js';
82
+ export type { PlanDigest, PlanEditApplication, PlanEditRefusal, PlanFileEditInput } from './plan-edit.js';
81
83
  export { verifyPlan } from './verify.js';
82
84
  export { buildWeeklySummary, billFigures, strayFigures, weekWindows, weeklyMarker, WEEK_MS, WEEKLY_CHANGES, WEEKLY_MODELS, WEEKLY_MOVERS } from './weekly.js';
83
85
  export type { BillFigures, WeekWindow, WeeklyChange, WeeklyModelRow, WeeklyMover, WeeklySummary } from './weekly.js';
@@ -396,6 +398,17 @@ export type {
396
398
  RepricedSlice,
397
399
  } from './reprice.js';
398
400
  export { createSessionLedgerTracker, singleTurnCacheWrites } from './session-ledger.js';
401
+ // Waste in a coding-agent session, priced from its own counts. See session-waste.ts.
402
+ export { analyzeSessionWaste, mcpServerOf, sessionCwd, MAX_LISTED_READS, WASTE_LIMITATIONS } from './session-waste.js';
403
+ export type {
404
+ ClaudeMdFinding,
405
+ McpSource,
406
+ RepeatedRead,
407
+ SessionWasteOptions,
408
+ SessionWasteReport,
409
+ UnusedMcpServer,
410
+ } from './session-waste.js';
411
+
399
412
  // What one conversation costs — median and p95, exact. See session-cost.ts.
400
413
  export { createSessionCostTracker, sessionCostShapes } from './session-cost.js';
401
414
  export type { SessionCostOptions, SessionCostShape, SessionCostTracker } from './session-cost.js';
@@ -419,8 +432,28 @@ export {
419
432
  } from './maintainers.js';
420
433
  export type { DictionaryRecord, DictionaryStanding } from './maintainers.js';
421
434
  export { toPromptfoo } from './promptfoo.js';
422
- export { toOtlpMetrics } from './otlp.js';
423
- export type { OtlpAttribute, OtlpDataPoint, OtlpInput, OtlpMetric, OtlpPayload } from './otlp.js';
435
+ export {
436
+ OTLP_COST_BASIS,
437
+ OTLP_COST_BASIS_KEY,
438
+ OTLP_TOKEN_TYPES,
439
+ billOtlpInput,
440
+ dayIsClosed,
441
+ toBillOtlpMetrics,
442
+ toOtlpMetrics,
443
+ } from './otlp.js';
444
+ export type {
445
+ BillOtlpExcluded,
446
+ BillOtlpInput,
447
+ BillOtlpOptions,
448
+ BillOtlpRow,
449
+ OtlpAttribute,
450
+ OtlpDataPoint,
451
+ OtlpInput,
452
+ OtlpMetric,
453
+ OtlpPayload,
454
+ OtlpTokenType,
455
+ } from './otlp.js';
456
+ export { prometheusLabelValue, prometheusName, toPrometheusText } from './prometheus.js';
424
457
  export type { PromptfooExport, PromptfooOptions, PromptfooWarning } from './promptfoo.js';
425
458
  export type { ProfileOptions, PromptProfile } from './profile.js';
426
459
  export { SUGGEST_SYSTEM_PROMPT, applyRewrites, rejectionText, suggestRewrites } from './suggest.js';
@@ -466,6 +499,15 @@ export {
466
499
  parsePricingOverlay,
467
500
  } from './pricing-overlay.js';
468
501
  export type { PricingOverlay } from './pricing-overlay.js';
502
+ // A Claude model as Bedrock or Vertex names it, read but never priced (#858).
503
+ export { partnerModelId } from './partner-model-id.js';
504
+ export type { PartnerModelId, PartnerPlatform } from './partner-model-id.js';
505
+ // Claude Code's modelPricing managed setting, read as a pricing overlay (#856).
506
+ export {
507
+ ClaudeModelPricingError,
508
+ overlayFromClaudeModelPricing,
509
+ } from './claude-model-pricing.js';
510
+ export type { ClaudeModelPricingResult, SkippedRow } from './claude-model-pricing.js';
469
511
  export { openrouterOverlay } from './openrouter.js';
470
512
 
471
513
  // SigV4 and the Google service-account flow, both hand-rolled on WebCrypto to
package/src/node.ts CHANGED
@@ -59,5 +59,5 @@ export type { PricingCatalogue } from './pricing.js';
59
59
  export { detectHost } from './host.js';
60
60
  export type { HostEnvironment } from './host.js';
61
61
 
62
- export { MAX_WALK_DEPTH, MAX_WALK_FILES, walkPrompts } from './walk.js';
62
+ export { MAX_WALK_DEPTH, MAX_WALK_FILES, walkIncludes, walkPrompts } from './walk.js';
63
63
  export type { WalkOptions, WalkResult } from './walk.js';