@agentvault/agentvault 0.21.2 → 0.21.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.
@@ -9,7 +9,7 @@
9
9
  * Plaintext stays in the customer's process. Only the calculated cost (a number)
10
10
  * crosses the wire to AgentVault as span metadata.
11
11
  */
12
- export declare const PRICING_AS_OF = "2026-04-30";
12
+ export declare const PRICING_AS_OF = "2026-05-02";
13
13
  /**
14
14
  * Strip provider-dated suffixes from a model name to match the canonical form.
15
15
  * Anthropic uses `-YYYYMMDD`, OpenAI uses `-YYYY-MM-DD`. Both collapse to the
@@ -1 +1 @@
1
- {"version":3,"file":"llm-cost.d.ts","sourceRoot":"","sources":["../src/llm-cost.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,eAAe,CAAC;AAyC1C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIxD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,SAAS,CAyBpB"}
1
+ {"version":3,"file":"llm-cost.d.ts","sourceRoot":"","sources":["../src/llm-cost.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,eAAO,MAAM,aAAa,eAAe,CAAC;AA6D1C;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIxD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,MAAM,GAAG,SAAS,CAyBpB"}
@@ -49193,7 +49193,24 @@ var PRICING = {
49193
49193
  "o1-mini": { inputPerMtoken: 3, outputPerMtoken: 12 },
49194
49194
  "o3-mini": { inputPerMtoken: 1.1, outputPerMtoken: 4.4 },
49195
49195
  // Free-tier marker (preserves cost=0 path through buildLlmSpan)
49196
- "free-tier-model": { inputPerMtoken: 0, outputPerMtoken: 0 }
49196
+ "free-tier-model": { inputPerMtoken: 0, outputPerMtoken: 0 },
49197
+ // Qwen — keys are post-OpenRouter-prefix-strip canonical names
49198
+ "qwen3.5-397b-a17b": { inputPerMtoken: 0.39, outputPerMtoken: 2.34 },
49199
+ "qwen3.6-plus": { inputPerMtoken: 0.26, outputPerMtoken: 1.56 },
49200
+ "qwen3-max-thinking": { inputPerMtoken: 1e-3, outputPerMtoken: 4e-3 },
49201
+ "qwen3-coder:free": { inputPerMtoken: 0, outputPerMtoken: 0 },
49202
+ // Grok — post-OpenRouter-prefix-strip canonical name
49203
+ "grok-4.20-multi-agent": { inputPerMtoken: 2, outputPerMtoken: 2 },
49204
+ // DeepSeek
49205
+ // NOTE: post-strip we can't distinguish DeepSeek-direct from DeepSeek-via-OR
49206
+ // calls (provider field on the span tells us, but calculateCost doesn't see it).
49207
+ // Using OpenRouter-routed pricing here since that's the more common path; the
49208
+ // direct-DeepSeek discrepancy will under-report cost by ~35%. Acceptable until
49209
+ // calculateCost() takes provider as a parameter.
49210
+ "deepseek-v3.2": { inputPerMtoken: 0.28, outputPerMtoken: 0.42 },
49211
+ "deepseek-v3.2-speciale": { inputPerMtoken: 0.4, outputPerMtoken: 1.2 },
49212
+ "deepseek-v4-pro": { inputPerMtoken: 0.28, outputPerMtoken: 0.42 },
49213
+ "deepseek-v4-flash": { inputPerMtoken: 0.14, outputPerMtoken: 0.28 }
49197
49214
  };
49198
49215
  function normalizeModelName(model) {
49199
49216
  return model.replace(/-\d{4}-\d{2}-\d{2}$/, "").replace(/-\d{8}$/, "");