@praudent/dagma 0.1.0 → 0.1.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.
@@ -1,6 +1,7 @@
1
1
  /**
2
- * Dollars per million tokens, from Anthropic's public pricing for Claude 4.6 models.
3
- * Cache write multipliers: 5m = 1.25x base input, 1h = 2.0x base input; cache read = 0.1x.
2
+ * Dollars per million tokens, from Anthropic's public pricing for Claude 4.6 and 5.5 models.
3
+ * Cache write multipliers: 5m = 1.25x base input, 1h = 2.0x base input.
4
+ * Cache read multipliers: 0.1x for Claude 4.6 and Haiku 5.5; 0.05x for Sonnet 5.5 and Opus 5.5.
4
5
  */
5
6
  const PRICES = {
6
7
  'claude-sonnet-4-6': {
@@ -17,6 +18,27 @@ const PRICES = {
17
18
  cacheWrite1h: 10,
18
19
  cacheRead: 0.5,
19
20
  },
21
+ 'claude-haiku-5-5': {
22
+ input: 0.1,
23
+ output: 0.5,
24
+ cacheWrite5m: 0.125,
25
+ cacheWrite1h: 0.2,
26
+ cacheRead: 0.01,
27
+ },
28
+ 'claude-sonnet-5-5': {
29
+ input: 2,
30
+ output: 10,
31
+ cacheWrite5m: 2.5,
32
+ cacheWrite1h: 4,
33
+ cacheRead: 0.1,
34
+ },
35
+ 'claude-opus-5-5': {
36
+ input: 4,
37
+ output: 20,
38
+ cacheWrite5m: 5,
39
+ cacheWrite1h: 8,
40
+ cacheRead: 0.2,
41
+ },
20
42
  };
21
43
  /** Whether the Anthropic API route can price a model. A run on the API is refused before any call
22
44
  * when an agent names a model that has no price. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praudent/dagma",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "description": "Declare a pipeline of AI agents as a blueprint, run it in Postgres, and inspect every run",
6
6
  "bin": {