@rulvar/anthropic 1.252.0 → 1.253.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.
package/dist/index.d.ts CHANGED
@@ -33,8 +33,10 @@ declare const ANTHROPIC_MODELS: Record<string, AnthropicModelInfo>;
33
33
  * the caps fallback by rule, and a later table revision surfaces as
34
34
  * explicit configuration drift on resume rather than a silent
35
35
  * reinterpretation. Extend or override rows by spreading `models` into
36
- * your own table with a new version string (the documented path for the
37
- * Sonnet 5 promotion ending on 2026-08-31).
36
+ * your own table with a new version string (the documented path when
37
+ * the provider revises a rate; the Sonnet 5 introductory rate this
38
+ * comment once expected to end on 2026-08-31 became permanent instead,
39
+ * RV4918, and no row here has a scheduled change).
38
40
  */
39
41
  declare const ANTHROPIC_PRICING: PriceTable;
40
42
  declare function anthropicModelInfo(model: string): AnthropicModelInfo;
package/dist/index.js CHANGED
@@ -12,9 +12,16 @@ const ALL_EFFORTS = [
12
12
  * The date every seed row was last verified against the documented
13
13
  * pricing table (RV814): one constant because the whole table mirrors
14
14
  * one page snapshot. A later re-verification bumps it table-wide; a
15
- * rate CHANGE is a new release with a new pricingVersion.
15
+ * rate CHANGE is a new release with a new pricingVersion. The
16
+ * 2026-09-07 renewal (RV4918) re read every row with the audit's own
17
+ * extractor and moved no number: the Sonnet 5 rate the previous stamp
18
+ * called introductory had become permanent on the page's 2026-08-10
19
+ * revision while this stamp still said 2026-07-31, and a strictPricing
20
+ * host with maxRatesAgeDays would have discarded a correct table on the
21
+ * calendar. The scheduled rates audit now fails a stamp older than
22
+ * sixty days, so the next renewal is paged for, never remembered.
16
23
  */
17
- const RATES_VERIFIED_AT = "2026-07-31";
24
+ const RATES_VERIFIED_AT = "2026-09-07";
18
25
  function current(contextWindow, maxOutputTokens, pricing, cacheMinTokens) {
19
26
  return {
20
27
  caps: {
@@ -124,8 +131,10 @@ const ANTHROPIC_MODELS = {
124
131
  * the caps fallback by rule, and a later table revision surfaces as
125
132
  * explicit configuration drift on resume rather than a silent
126
133
  * reinterpretation. Extend or override rows by spreading `models` into
127
- * your own table with a new version string (the documented path for the
128
- * Sonnet 5 promotion ending on 2026-08-31).
134
+ * your own table with a new version string (the documented path when
135
+ * the provider revises a rate; the Sonnet 5 introductory rate this
136
+ * comment once expected to end on 2026-08-31 became permanent instead,
137
+ * RV4918, and no row here has a scheduled change).
129
138
  */
130
139
  const ANTHROPIC_PRICING = {
131
140
  pricingVersion: "anthropic-2026-07-31",
@@ -141,10 +150,12 @@ const ANTHROPIC_PRICING = {
141
150
  * v1.17.0 review P1-1): the general prefix matcher let ANY suffix of a
142
151
  * known name inherit the full row, so a preview or sibling variant the
143
152
  * table has never seen, `claude-sonnet-5-preview` say, silently took
144
- * the known model's caps AND its promotional pricing, which is exactly
145
- * the fabricated row the unknown model contract above forbids. The
153
+ * the known model's caps AND its pricing, which is exactly the
154
+ * fabricated row the unknown model contract above forbids. The
146
155
  * 2026-08-12 comparison run named this counterexample: a suffix
147
- * inheriting a promotion that ends on 2026-08-31. An unknown suffix
156
+ * inheriting what was then a promotional rate with a scheduled end
157
+ * (the rate later became permanent, RV4918; the hazard is the
158
+ * inheritance, not the promotion). An unknown suffix
148
159
  * now falls through to the conservative unpriced caps, and a dated
149
160
  * snapshot resolves only through its EXACT base name, which also keeps
150
161
  * the old guarantee that a snapshot of a longer name never lands on a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/anthropic",
3
- "version": "1.252.0",
3
+ "version": "1.253.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.252.0"
26
+ "@rulvar/core": "1.253.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.252.0"
32
+ "@rulvar/testing": "1.253.0"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",