@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/CHANGELOG.md +24 -0
- package/README.md +81 -2
- package/dist/client.d.ts +22 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +268 -42
- package/dist/client.js.map +1 -1
- package/dist/fast-mode.d.ts +54 -0
- package/dist/fast-mode.d.ts.map +1 -0
- package/dist/fast-mode.js +113 -0
- package/dist/fast-mode.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/search-replay.d.ts +6 -0
- package/dist/search-replay.d.ts.map +1 -1
- package/dist/search-replay.js +10 -0
- package/dist/search-replay.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +307 -40
- package/src/fast-mode.ts +140 -0
- package/src/index.ts +8 -0
- package/src/search-replay.ts +10 -0
- package/src/types.ts +6 -0
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 {
|