@rulvar/anthropic 1.124.0 → 1.126.0

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 (2) hide show
  1. package/dist/index.js +17 -9
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ const ALL_EFFORTS = [
14
14
  * one page snapshot. A later re-verification bumps it table-wide; a
15
15
  * rate CHANGE is a new release with a new pricingVersion.
16
16
  */
17
- const RATES_VERIFIED_AT = "2026-07-30";
17
+ const RATES_VERIFIED_AT = "2026-07-31";
18
18
  function current(contextWindow, maxOutputTokens, pricing, cacheMinTokens) {
19
19
  return {
20
20
  caps: {
@@ -29,6 +29,7 @@ function current(contextWindow, maxOutputTokens, pricing, cacheMinTokens) {
29
29
  outputUsdPerMTok: pricing.out,
30
30
  cacheReadUsdPerMTok: pricing.cacheRead,
31
31
  cacheWriteUsdPerMTok: pricing.cacheWrite,
32
+ cacheWrite1hUsdPerMTok: pricing.cacheWrite1h,
32
33
  ratesVerifiedAt: RATES_VERIFIED_AT
33
34
  } }
34
35
  },
@@ -42,32 +43,37 @@ const ANTHROPIC_MODELS = {
42
43
  in: 10,
43
44
  out: 50,
44
45
  cacheRead: 1,
45
- cacheWrite: 12.5
46
+ cacheWrite: 12.5,
47
+ cacheWrite1h: 20
46
48
  }, 2048),
47
49
  "claude-opus-4-8": current(1e6, 128e3, {
48
50
  in: 5,
49
51
  out: 25,
50
52
  cacheRead: .5,
51
- cacheWrite: 6.25
53
+ cacheWrite: 6.25,
54
+ cacheWrite1h: 10
52
55
  }, 4096),
53
56
  "claude-opus-4-7": current(1e6, 128e3, {
54
57
  in: 5,
55
58
  out: 25,
56
59
  cacheRead: .5,
57
- cacheWrite: 6.25
60
+ cacheWrite: 6.25,
61
+ cacheWrite1h: 10
58
62
  }, 4096),
59
63
  "claude-sonnet-5": current(1e6, 128e3, {
60
64
  in: 2,
61
65
  out: 10,
62
66
  cacheRead: .2,
63
- cacheWrite: 2.5
67
+ cacheWrite: 2.5,
68
+ cacheWrite1h: 4
64
69
  }, 2048),
65
70
  "claude-haiku-4-5": (() => {
66
71
  const base = current(2e5, 64e3, {
67
72
  in: 1,
68
73
  out: 5,
69
74
  cacheRead: .1,
70
- cacheWrite: 1.25
75
+ cacheWrite: 1.25,
76
+ cacheWrite1h: 2
71
77
  }, 2048);
72
78
  return {
73
79
  ...base,
@@ -83,7 +89,8 @@ const ANTHROPIC_MODELS = {
83
89
  in: 5,
84
90
  out: 25,
85
91
  cacheRead: .5,
86
- cacheWrite: 6.25
92
+ cacheWrite: 6.25,
93
+ cacheWrite1h: 10
87
94
  }, 4096),
88
95
  thinkingForm: "enabled-budget"
89
96
  },
@@ -92,7 +99,8 @@ const ANTHROPIC_MODELS = {
92
99
  in: 3,
93
100
  out: 15,
94
101
  cacheRead: .3,
95
- cacheWrite: 3.75
102
+ cacheWrite: 3.75,
103
+ cacheWrite1h: 6
96
104
  }, 2048),
97
105
  thinkingForm: "enabled-budget"
98
106
  }
@@ -119,7 +127,7 @@ const ANTHROPIC_MODELS = {
119
127
  * Sonnet 5 promotion ending on 2026-08-31).
120
128
  */
121
129
  const ANTHROPIC_PRICING = {
122
- pricingVersion: "anthropic-2026-07-16",
130
+ pricingVersion: "anthropic-2026-07-31",
123
131
  models: (() => {
124
132
  const models = {};
125
133
  for (const [name, info] of Object.entries(ANTHROPIC_MODELS)) if (info.caps.pricing !== void 0) models[`anthropic:${name}`] = info.caps.pricing;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/anthropic",
3
- "version": "1.124.0",
3
+ "version": "1.126.0",
4
4
  "description": "Rulvar first-class provider adapter over @anthropic-ai/sdk.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -23,13 +23,13 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@anthropic-ai/sdk": "^0.115.0",
26
- "@rulvar/core": "1.124.0"
26
+ "@rulvar/core": "1.126.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^22.20.1",
30
30
  "tsdown": "^0.22.14",
31
31
  "typescript": "~6.0.3",
32
- "@rulvar/testing": "1.124.0"
32
+ "@rulvar/testing": "1.126.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",