@namzu/anthropic 6.8.1 → 7.1.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/src/types.ts CHANGED
@@ -61,6 +61,12 @@ export interface AnthropicConfig {
61
61
  * breakpoint in a request carries the same lifetime.
62
62
  */
63
63
  promptCacheTtl?: '5m' | '1h'
64
+ /**
65
+ * The clock, in epoch milliseconds, used to decide dated vendor deprecations
66
+ * (fast mode on `claude-opus-4-8` is refused from 2026-11-30). Defaults to
67
+ * `Date.now`; set it in tests so a date cut-off needs no waiting.
68
+ */
69
+ clock?: () => number
64
70
  }
65
71
 
66
72
  export interface AnthropicProviderConfig extends AnthropicConfig {