@code-yeongyu/senpi 2026.8.24 → 2026.8.26
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 +98 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +24 -9
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/file-processor.d.ts.map +1 -1
- package/dist/cli/file-processor.js +2 -1
- package/dist/cli/file-processor.js.map +1 -1
- package/dist/config.d.ts +6 -3
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +24 -14
- package/dist/config.js.map +1 -1
- package/dist/core/agent-abort-provenance.d.ts.map +1 -1
- package/dist/core/agent-abort-provenance.js +5 -1
- package/dist/core/agent-abort-provenance.js.map +1 -1
- package/dist/core/agent-session.d.ts +11 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +154 -29
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/auth-storage.d.ts +4 -0
- package/dist/core/auth-storage.d.ts.map +1 -1
- package/dist/core/auth-storage.js +35 -8
- package/dist/core/auth-storage.js.map +1 -1
- package/dist/core/brand.d.ts +2 -0
- package/dist/core/brand.d.ts.map +1 -1
- package/dist/core/brand.js +1 -0
- package/dist/core/brand.js.map +1 -1
- package/dist/core/compaction/compaction.d.ts +1 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -1
- package/dist/core/compaction/compaction.js +24 -8
- package/dist/core/compaction/compaction.js.map +1 -1
- package/dist/core/defaults.d.ts +1 -0
- package/dist/core/defaults.d.ts.map +1 -1
- package/dist/core/defaults.js +9 -0
- package/dist/core/defaults.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts +5 -9
- package/dist/core/extensions/builtin/compaction/per-turn-cap.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/per-turn-cap.js +5 -11
- package/dist/core/extensions/builtin/compaction/per-turn-cap.js.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts +2 -3
- package/dist/core/extensions/builtin/compaction/todo-bridge.d.ts.map +1 -1
- package/dist/core/extensions/builtin/compaction/todo-bridge.js +53 -14
- package/dist/core/extensions/builtin/compaction/todo-bridge.js.map +1 -1
- package/dist/core/extensions/builtin/goal/terminal-provider-error.js +1 -1
- package/dist/core/extensions/builtin/goal/terminal-provider-error.js.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/notice.d.ts.map +1 -1
- package/dist/core/extensions/builtin/loop-guard/notice.js +5 -1
- package/dist/core/extensions/builtin/loop-guard/notice.js.map +1 -1
- package/dist/core/extensions/builtin/mcp/config-schema.d.ts +2 -2
- package/dist/core/extensions/builtin/ttsr/index.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/index.js +6 -6
- package/dist/core/extensions/builtin/ttsr/index.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/message-update.d.ts +10 -0
- package/dist/core/extensions/builtin/ttsr/message-update.d.ts.map +1 -0
- package/dist/core/extensions/builtin/ttsr/message-update.js +38 -0
- package/dist/core/extensions/builtin/ttsr/message-update.js.map +1 -0
- package/dist/core/extensions/builtin/ttsr/remediation.d.ts +5 -10
- package/dist/core/extensions/builtin/ttsr/remediation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/remediation.js +19 -3
- package/dist/core/extensions/builtin/ttsr/remediation.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/stream-remediation.d.ts +1 -1
- package/dist/core/extensions/builtin/ttsr/stream-remediation.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/stream-remediation.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/types.d.ts +1 -1
- package/dist/core/extensions/builtin/ttsr/types.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/types.js.map +1 -1
- package/dist/core/extensions/builtin/ttsr/watch.d.ts +1 -1
- package/dist/core/extensions/builtin/ttsr/watch.d.ts.map +1 -1
- package/dist/core/extensions/builtin/ttsr/watch.js +2 -2
- package/dist/core/extensions/builtin/ttsr/watch.js.map +1 -1
- package/dist/core/extensions/index.d.ts +2 -2
- package/dist/core/extensions/index.d.ts.map +1 -1
- package/dist/core/extensions/index.js +1 -1
- package/dist/core/extensions/index.js.map +1 -1
- package/dist/core/extensions/loader.d.ts.map +1 -1
- package/dist/core/extensions/loader.js +107 -45
- package/dist/core/extensions/loader.js.map +1 -1
- package/dist/core/extensions/types.d.ts +17 -6
- package/dist/core/extensions/types.d.ts.map +1 -1
- package/dist/core/extensions/types.js +3 -0
- package/dist/core/extensions/types.js.map +1 -1
- package/dist/core/footer-data-provider.d.ts +1 -1
- package/dist/core/footer-data-provider.js +1 -1
- package/dist/core/footer-data-provider.js.map +1 -1
- package/dist/core/keybindings.d.ts +20 -19
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +26 -5
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/model-config-schema.d.ts +17 -5
- package/dist/core/model-config-schema.d.ts.map +1 -1
- package/dist/core/model-config-schema.js +1 -1
- package/dist/core/model-config-schema.js.map +1 -1
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +7 -5
- package/dist/core/model-config.js.map +1 -1
- package/dist/core/model-resolver.d.ts +3 -2
- package/dist/core/model-resolver.d.ts.map +1 -1
- package/dist/core/model-resolver.js +3 -2
- package/dist/core/model-resolver.js.map +1 -1
- package/dist/core/model-runtime.d.ts +0 -1
- package/dist/core/model-runtime.d.ts.map +1 -1
- package/dist/core/model-runtime.js +0 -18
- package/dist/core/model-runtime.js.map +1 -1
- package/dist/core/models-store.d.ts.map +1 -1
- package/dist/core/models-store.js +2 -1
- package/dist/core/models-store.js.map +1 -1
- package/dist/core/package-manager.d.ts.map +1 -1
- package/dist/core/package-manager.js +14 -10
- package/dist/core/package-manager.js.map +1 -1
- package/dist/core/pi-manifest.d.ts.map +1 -1
- package/dist/core/pi-manifest.js +2 -1
- package/dist/core/pi-manifest.js.map +1 -1
- package/dist/core/provider-composer.d.ts +2 -0
- package/dist/core/provider-composer.d.ts.map +1 -1
- package/dist/core/provider-composer.js +3 -6
- package/dist/core/provider-composer.js.map +1 -1
- package/dist/core/provider-display-names.d.ts.map +1 -1
- package/dist/core/provider-display-names.js +0 -1
- package/dist/core/provider-display-names.js.map +1 -1
- package/dist/core/provider-timeout-retry.d.ts.map +1 -1
- package/dist/core/provider-timeout-retry.js +8 -12
- package/dist/core/provider-timeout-retry.js.map +1 -1
- package/dist/core/resource-loader.d.ts.map +1 -1
- package/dist/core/resource-loader.js +3 -2
- package/dist/core/resource-loader.js.map +1 -1
- package/dist/core/retry-fallback/profile-override.d.ts +24 -0
- package/dist/core/retry-fallback/profile-override.d.ts.map +1 -0
- package/dist/core/retry-fallback/profile-override.js +138 -0
- package/dist/core/retry-fallback/profile-override.js.map +1 -0
- package/dist/core/retry-fallback/settings.d.ts +1 -0
- package/dist/core/retry-fallback/settings.d.ts.map +1 -1
- package/dist/core/retry-fallback/settings.js.map +1 -1
- package/dist/core/sdk.d.ts +2 -2
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +20 -5
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-export.d.ts +4 -0
- package/dist/core/session-export.d.ts.map +1 -0
- package/dist/core/session-export.js +32 -0
- package/dist/core/session-export.js.map +1 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +2 -1
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/settings-diagnostics.d.ts +9 -0
- package/dist/core/settings-diagnostics.d.ts.map +1 -0
- package/dist/core/settings-diagnostics.js +21 -0
- package/dist/core/settings-diagnostics.js.map +1 -0
- package/dist/core/settings-manager.d.ts +18 -0
- package/dist/core/settings-manager.d.ts.map +1 -1
- package/dist/core/settings-manager.js +88 -7
- package/dist/core/settings-manager.js.map +1 -1
- package/dist/core/slash-commands.d.ts.map +1 -1
- package/dist/core/slash-commands.js +2 -1
- package/dist/core/slash-commands.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +11 -2
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/bash.d.ts +14 -1
- package/dist/core/tools/bash.d.ts.map +1 -1
- package/dist/core/tools/bash.js +35 -19
- package/dist/core/tools/bash.js.map +1 -1
- package/dist/core/tools/edit-diff.d.ts +0 -5
- package/dist/core/tools/edit-diff.d.ts.map +1 -1
- package/dist/core/tools/edit-diff.js +2 -5
- package/dist/core/tools/edit-diff.js.map +1 -1
- package/dist/core/tools/edit.d.ts.map +1 -1
- package/dist/core/tools/edit.js +3 -2
- package/dist/core/tools/edit.js.map +1 -1
- package/dist/core/tools/index.d.ts +4 -1
- package/dist/core/tools/index.d.ts.map +1 -1
- package/dist/core/tools/index.js +13 -1
- package/dist/core/tools/index.js.map +1 -1
- package/dist/core/tools/powershell.d.ts +16 -0
- package/dist/core/tools/powershell.d.ts.map +1 -0
- package/dist/core/tools/powershell.js +39 -0
- package/dist/core/tools/powershell.js.map +1 -0
- package/dist/core/trust-manager.d.ts.map +1 -1
- package/dist/core/trust-manager.js +2 -1
- package/dist/core/trust-manager.js.map +1 -1
- package/dist/extensions/llama/client.d.ts +6 -0
- package/dist/extensions/llama/client.d.ts.map +1 -1
- package/dist/extensions/llama/client.js +7 -0
- package/dist/extensions/llama/client.js.map +1 -1
- package/dist/extensions/llama/provider.d.ts +3 -1
- package/dist/extensions/llama/provider.d.ts.map +1 -1
- package/dist/extensions/llama/provider.js +27 -6
- package/dist/extensions/llama/provider.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +13 -2
- package/dist/main.js.map +1 -1
- package/dist/migrations.d.ts.map +1 -1
- package/dist/migrations.js +4 -3
- package/dist/migrations.js.map +1 -1
- package/dist/modes/app-server/daemon/probe.js +1 -1
- package/dist/modes/app-server/daemon/probe.js.map +1 -1
- package/dist/modes/app-server/daemon.js +13 -2
- package/dist/modes/app-server/daemon.js.map +1 -1
- package/dist/modes/app-server/transports/websocket-connection-handler.d.ts.map +1 -1
- package/dist/modes/app-server/transports/websocket-connection-handler.js +4 -0
- package/dist/modes/app-server/transports/websocket-connection-handler.js.map +1 -1
- package/dist/modes/interactive/aborted-error-label.d.ts +2 -0
- package/dist/modes/interactive/aborted-error-label.d.ts.map +1 -1
- package/dist/modes/interactive/aborted-error-label.js +7 -0
- package/dist/modes/interactive/aborted-error-label.js.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.d.ts +15 -3
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/thinking-selector.js +68 -17
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -1
- package/dist/modes/interactive/external-editor.d.ts.map +1 -1
- package/dist/modes/interactive/external-editor.js +2 -1
- package/dist/modes/interactive/external-editor.js.map +1 -1
- package/dist/modes/interactive/interactive-mode.d.ts +6 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode.js +19 -12
- package/dist/modes/interactive/interactive-mode.js.map +1 -1
- package/dist/modes/json-event.d.ts +16 -13
- package/dist/modes/json-event.d.ts.map +1 -1
- package/dist/modes/json-event.js +20 -6
- package/dist/modes/json-event.js.map +1 -1
- package/dist/modes/rpc/connection-handler.d.ts.map +1 -1
- package/dist/modes/rpc/connection-handler.js +3 -0
- package/dist/modes/rpc/connection-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +7 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +7 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +12 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/package-manager-cli.d.ts +1 -0
- package/dist/package-manager-cli.d.ts.map +1 -1
- package/dist/package-manager-cli.js +186 -2
- package/dist/package-manager-cli.js.map +1 -1
- package/dist/utils/frontmatter.d.ts.map +1 -1
- package/dist/utils/frontmatter.js +2 -1
- package/dist/utils/frontmatter.js.map +1 -1
- package/dist/utils/shell.d.ts +3 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +17 -5
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/syntax-highlight.d.ts +1 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -1
- package/dist/utils/syntax-highlight.js +60 -1
- package/dist/utils/syntax-highlight.js.map +1 -1
- package/dist/utils/text.d.ts +8 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js +9 -0
- package/dist/utils/text.js.map +1 -0
- package/docs/compaction.md +0 -2
- package/docs/custom-provider.md +6 -6
- package/docs/environment-variables.md +8 -8
- package/docs/extensions.md +6 -5
- package/docs/json.md +7 -2
- package/docs/keybindings.md +1 -1
- package/docs/packages.md +2 -2
- package/docs/rpc.md +32 -3
- package/docs/sdk.md +7 -2
- package/docs/settings.md +9 -1
- package/docs/terminal-setup.md +11 -9
- package/docs/usage.md +4 -1
- package/docs/windows.md +24 -2
- package/examples/extensions/custom-provider-anthropic/package-lock.json +28 -5
- package/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/node_modules/@anthropic-ai/sdk/CHANGELOG.md +558 -0
- package/node_modules/@anthropic-ai/sdk/README.md +16 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +14 -2
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +14 -2
- package/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/api-promise.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/bin/migration-config.json +481 -0
- package/node_modules/@anthropic-ai/sdk/client.d.mts +165 -11
- package/node_modules/@anthropic-ai/sdk/client.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.d.ts +165 -11
- package/node_modules/@anthropic-ai/sdk/client.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.js +415 -38
- package/node_modules/@anthropic-ai/sdk/client.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/client.mjs +414 -37
- package/node_modules/@anthropic-ai/sdk/client.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.js +7 -2
- package/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +8 -3
- package/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/api.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/core/api.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.js +3 -0
- package/node_modules/@anthropic-ai/sdk/core/api.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/api.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/core/api.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts +131 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts +131 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.js +317 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.mjs +277 -0
- package/node_modules/@anthropic-ai/sdk/core/credentials.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.mts +12 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.d.ts +12 -0
- package/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.js +18 -1
- package/node_modules/@anthropic-ai/sdk/core/error.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/error.mjs +16 -0
- package/node_modules/@anthropic-ai/sdk/core/error.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts +154 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts +154 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.js +174 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.mjs +168 -0
- package/node_modules/@anthropic-ai/sdk/core/middleware.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +20 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +20 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.js +26 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/pagination.mjs +24 -0
- package/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +9 -0
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +9 -0
- package/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js +34 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs +34 -1
- package/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/error.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/error.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/error.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/error.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js +31 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs +23 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/environments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/helpers/beta/json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/mcp.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/memory.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts +11 -5
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts +11 -5
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/beta/zod.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts +2 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.js +1 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs +1 -2
- package/node_modules/@anthropic-ai/sdk/helpers/zod.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.d.mts +4 -2
- package/node_modules/@anthropic-ai/sdk/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.d.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.js +5 -1
- package/node_modules/@anthropic-ai/sdk/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/index.mjs +3 -2
- package/node_modules/@anthropic-ai/sdk/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.js +0 -5
- package/node_modules/@anthropic-ai/sdk/internal/constants.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/constants.mjs +0 -5
- package/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts +136 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts +136 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.js +531 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs +523 -0
- package/node_modules/@anthropic-ai/sdk/internal/file-store.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.js +45 -4
- package/node_modules/@anthropic-ai/sdk/internal/headers.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/headers.mjs +43 -3
- package/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js +34 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs +30 -0
- package/node_modules/@anthropic-ai/sdk/internal/message-stream-utils.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +2 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +2 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.js +16 -10
- package/node_modules/@anthropic-ai/sdk/internal/parse.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/parse.mjs +15 -9
- package/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs +9 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/formats.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.js +14 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js +277 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs +274 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/stringify.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts +57 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts +57 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.js +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/types.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js +230 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs +217 -0
- package/node_modules/@anthropic-ai/sdk/internal/qs/utils.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +52 -2
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +52 -2
- package/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.js +12 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +10 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.js +50 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs +45 -0
- package/node_modules/@anthropic-ai/sdk/internal/request-signal.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts +60 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts +60 -0
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.js +27 -6
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/{lib → internal}/stainless-helper-header.mjs +25 -5
- package/node_modules/@anthropic-ai/sdk/internal/stainless-helper-header.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.d.mts +12 -6
- package/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/types.d.ts +12 -6
- package/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts +13 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js +26 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/abort.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts +31 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts +31 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js +75 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs +71 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/async-queue.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js +44 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs +36 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/backoff.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +11 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +11 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.js +37 -11
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +35 -10
- package/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js +18 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs +15 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/promise.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts +0 -3
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts +0 -3
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.js +3 -16
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs +2 -16
- package/node_modules/@anthropic-ai/sdk/internal/utils/query.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +9 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +9 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +23 -2
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +23 -2
- package/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.js +8 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs +5 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/time.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +66 -31
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +66 -31
- package/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +37 -26
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +34 -23
- package/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/beta-parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts +39 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts +39 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js +245 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs +208 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/credential-chain.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts +11 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js +72 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs +35 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/identity-token.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts +40 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts +40 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js +82 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs +79 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/oidc-federation.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts +54 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts +54 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js +112 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs +108 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/token-cache.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts +96 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts +96 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js +266 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs +224 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/types.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts +21 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js +130 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs +94 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials/user-oauth.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.js +8 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/lib/credentials.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.js +18 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts +95 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts +95 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js +226 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs +217 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/poller.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts +227 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts +227 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js +569 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs +564 -0
- package/node_modules/@anthropic-ai/sdk/lib/environments/worker.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts +31 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts +31 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.js +58 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs +55 -0
- package/node_modules/@anthropic-ai/sdk/lib/helper-client.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts +98 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts +98 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.js +754 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs +749 -0
- package/node_modules/@anthropic-ai/sdk/lib/middleware.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/parser.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/parser.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/parser.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts +22 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts +22 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js +88 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs +85 -0
- package/node_modules/@anthropic-ai/sdk/lib/sessions/accumulate.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts +38 -5
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts +38 -5
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js +28 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs +25 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaRunnableTool.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js +107 -29
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs +105 -27
- package/node_modules/@anthropic-ai/sdk/lib/tools/BetaToolRunner.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/CompactionControl.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts +179 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts +179 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js +728 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs +724 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/SessionToolRunner.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolError.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/lib/transform-json-schema.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/package.json +32 -15
- package/node_modules/@anthropic-ai/sdk/pagination.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/pagination.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/pagination.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/pagination.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resource.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/resource.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts +608 -68
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts +608 -68
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/agents.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents/versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/agents.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +51 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +51 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +22 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +22 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts +306 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts +306 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js +55 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs +51 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployment-runs.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts +698 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts +698 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js +196 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs +192 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/deployments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts +309 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts +309 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js +116 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs +112 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/dreams.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts +426 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts +426 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js +150 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs +145 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/environments.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts +501 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts +501 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js +257 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs +251 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments/work.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts +1 -388
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts +1 -388
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js +2 -138
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs +1 -136
- package/node_modules/@anthropic-ai/sdk/resources/beta/environments.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +22 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +22 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +11 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +11 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js +23 -13
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +6 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts +136 -24
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts +136 -24
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js +10 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs +10 -10
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memories.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts +60 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts +60 -16
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js +12 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs +12 -12
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-stores.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts +105 -7
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts +105 -7
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js +6 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs +6 -6
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores/memory-versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/memory-stores.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +81 -30
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +81 -30
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +12 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +12 -9
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +2453 -380
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +2453 -380
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +16 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +16 -22
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts +643 -19
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts +643 -19
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js +29 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs +27 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/events.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts +3 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts +3 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js +3 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/resources.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts +455 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts +455 -8
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js +5 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs +6 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/sessions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts +78 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts +78 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js +61 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs +57 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/events.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts +195 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts +195 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js +88 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs +83 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads/threads.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions/threads.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/sessions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts +13 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts +13 -11
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js +5 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs +5 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/skills.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts +31 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts +31 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js +32 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs +32 -3
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills/versions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/skills.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts +163 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts +163 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs +125 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/certificates.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts +212 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts +212 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js +181 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs +176 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels/tunnels.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/tunnels.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts +62 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts +62 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.js +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs +5 -5
- package/node_modules/@anthropic-ai/sdk/resources/beta/user-profiles.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts +256 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts +256 -4
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js +22 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs +22 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/credentials.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts +2 -2
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults/vaults.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/vaults.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts +466 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts +466 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js +20 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs +16 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta/webhooks.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +18 -11
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +18 -11
- package/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/files.d.mts +105 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.ts +105 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.js +52 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs +48 -0
- package/node_modules/@anthropic-ai/sdk/resources/files.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/index.d.mts +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.d.ts +4 -2
- package/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.js +5 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/index.mjs +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +20 -11
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +20 -11
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +17 -9
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +17 -9
- package/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +1782 -162
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +1782 -162
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +23 -28
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +23 -28
- package/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.js +9 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs +4 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/index.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts +129 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js +44 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs +39 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts +104 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts +104 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js +41 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs +37 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills/versions.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts +2 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.js +6 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.mjs +3 -0
- package/node_modules/@anthropic-ai/sdk/resources/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/resources.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/resources.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +18 -2
- package/node_modules/@anthropic-ai/sdk/src/client.ts +749 -42
- package/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +14 -4
- package/node_modules/@anthropic-ai/sdk/src/core/api.ts +11 -0
- package/node_modules/@anthropic-ai/sdk/src/core/credentials.ts +379 -0
- package/node_modules/@anthropic-ai/sdk/src/core/error.ts +17 -0
- package/node_modules/@anthropic-ai/sdk/src/core/middleware.ts +339 -0
- package/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +60 -0
- package/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +38 -1
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/environments.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/json-schema.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/mcp.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/src/helpers/beta/zod.ts +14 -10
- package/node_modules/@anthropic-ai/sdk/src/helpers/zod.ts +3 -6
- package/node_modules/@anthropic-ai/sdk/src/index.ts +16 -1
- package/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +0 -5
- package/node_modules/@anthropic-ai/sdk/src/internal/file-store.ts +550 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +47 -4
- package/node_modules/@anthropic-ai/sdk/src/internal/message-stream-utils.ts +30 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +16 -11
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/LICENSE.md +13 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/README.md +3 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/formats.ts +10 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/index.ts +13 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/stringify.ts +385 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/types.ts +71 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/qs/utils.ts +265 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +55 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/request-signal.ts +68 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/stainless-helper-header.ts +122 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/abort.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/async-queue.ts +66 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/backoff.ts +41 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +41 -10
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/promise.ts +18 -0
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/query.ts +2 -18
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +25 -2
- package/node_modules/@anthropic-ai/sdk/src/internal/utils/time.ts +4 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +72 -33
- package/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +36 -24
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/credential-chain.ts +292 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/identity-token.ts +37 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/oidc-federation.ts +140 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/token-cache.ts +130 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/types.ts +295 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials/user-oauth.ts +144 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/credentials.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/index.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/poller.ts +299 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/environments/worker.ts +779 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/helper-client.ts +86 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/middleware.ts +994 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/sessions/accumulate.ts +130 -0
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaRunnableTool.ts +71 -7
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/BetaToolRunner.ts +135 -35
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/SessionToolRunner.ts +885 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/agents.ts +806 -69
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/agents/index.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +690 -28
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployment-runs.ts +441 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/deployments.ts +996 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/dreams.ts +453 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/environments.ts +626 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/index.ts +42 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments/work.ts +705 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/environments.ts +1 -540
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +28 -28
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +312 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/index.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memories.ts +141 -31
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-stores.ts +66 -20
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/memory-stores/memory-versions.ts +112 -9
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +90 -33
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +90 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +2755 -211
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +7 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/events.ts +888 -18
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/index.ts +60 -1
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/sessions.ts +669 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/events.ts +123 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/index.ts +15 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads/threads.ts +330 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/sessions/threads.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/index.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/skills.ts +15 -14
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/skills/versions.ts +49 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/certificates.ts +252 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/index.ts +23 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels/tunnels.ts +347 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/tunnels.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/user-profiles.ts +76 -5
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/credentials.ts +347 -3
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/index.ts +17 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/vaults/vaults.ts +34 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/beta/webhooks.ts +762 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +18 -11
- package/node_modules/@anthropic-ai/sdk/src/resources/files.ts +163 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/index.ts +89 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +30 -12
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +70 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +2202 -226
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/index.ts +21 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/skills.ts +194 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills/versions.ts +160 -0
- package/node_modules/@anthropic-ai/sdk/src/resources/skills.ts +3 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/fs-util.ts +190 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/memories.ts +1017 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.browser.ts +172 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/node.ts +914 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/skills.ts +372 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/agent-toolset/sync-interval.ts +30 -0
- package/node_modules/@anthropic-ai/sdk/src/tools/memory/node.browser.ts +64 -0
- package/node_modules/@anthropic-ai/sdk/src/version.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/streaming.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/streaming.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts +75 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts +75 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js +196 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs +185 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/fs-util.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts +173 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts +173 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js +902 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs +895 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/memories.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js +151 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs +131 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.browser.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts +190 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts +190 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js +819 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs +797 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/node.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts +82 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js +352 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs +344 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/skills.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts +19 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts +19 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js +29 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs +25 -0
- package/node_modules/@anthropic-ai/sdk/tools/agent-toolset/sync-interval.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts +27 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.mts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts +27 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.d.ts.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js +49 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.js.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs +44 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.browser.mjs.map +1 -0
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/tools/memory/node.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.d.mts +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.d.ts +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/uploads.mjs +1 -0
- package/node_modules/@anthropic-ai/sdk/uploads.mjs.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.mts +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.mts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.ts +1 -1
- package/node_modules/@anthropic-ai/sdk/version.d.ts.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.js +1 -1
- package/node_modules/@anthropic-ai/sdk/version.js.map +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs +1 -1
- package/node_modules/@anthropic-ai/sdk/version.mjs.map +1 -1
- package/node_modules/@code-yeongyu/senpi-codemode/CHANGELOG.md +24 -0
- package/node_modules/@code-yeongyu/senpi-codemode/package.json +4 -4
- package/node_modules/@code-yeongyu/senpi-codemode/src/extension/session-manager-proxy.ts +39 -5
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js +7 -4
- package/node_modules/@earendil-works/pi-agent-core/dist/agent-loop.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts +2 -3
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js +7 -6
- package/node_modules/@earendil-works/pi-agent-core/dist/agent.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.d.ts +4 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.js +8 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/assistant-terminal-state.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-agent-core/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-agent-core/package.json +5 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts +1 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +25 -13
- package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +2 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +91 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +4 -2
- package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +93 -54
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +2 -5
- package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js +97 -46
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/github-copilot.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js +1 -14
- package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/kimi-coding.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.d.ts +50 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.js +129 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/pool/slots.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.d.ts +8 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/models.js +16 -3
- package/node_modules/@earendil-works/pi-ai/dist/models.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts +3 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js +10 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/opengateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts +8 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/types.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts +16 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +17 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.d.ts +14 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.js +24 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/backoff.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.d.ts +36 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.js +109 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/classifiers.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.d.ts +12 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.js +109 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/failure.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.d.ts +9 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.js +6 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/index.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.d.ts +46 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.js +41 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/planner.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.d.ts +4 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.js +93 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/profiles.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.d.ts +121 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.js +11 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry-profile/types.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts +12 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +25 -5
- package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js.map +1 -1
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts +2 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js +15 -0
- package/node_modules/@earendil-works/pi-ai/dist/utils/sleep.js.map +1 -0
- package/node_modules/@earendil-works/pi-ai/package.json +21 -17
- package/node_modules/@earendil-works/pi-pty/dist/index.d.ts +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/index.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/index.js +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/index.js.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.d.ts +30 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.js +76 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-bun.js.map +1 -0
- package/node_modules/@earendil-works/pi-pty/dist/session-types.d.ts +3 -1
- package/node_modules/@earendil-works/pi-pty/dist/session-types.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session-types.js.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session.d.ts +2 -0
- package/node_modules/@earendil-works/pi-pty/dist/session.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-pty/dist/session.js +19 -9
- package/node_modules/@earendil-works/pi-pty/dist/session.js.map +1 -1
- package/node_modules/@earendil-works/pi-pty/package.json +1 -1
- package/node_modules/@earendil-works/pi-telemetry/package.json +3 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts +8 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +24 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.d.ts +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +2 -8
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts +7 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.d.ts.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js.map +1 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.d.ts.map +1 -1
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +4 -10
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js.map +1 -1
- package/node_modules/@earendil-works/pi-tui/package.json +5 -5
- package/node_modules/@stablelib/base64/LICENSE +21 -0
- package/node_modules/@stablelib/base64/base64.bench.ts +25 -0
- package/node_modules/@stablelib/base64/base64.test.ts +85 -0
- package/node_modules/@stablelib/base64/base64.ts +283 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.d.ts +1 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.js +23 -0
- package/node_modules/@stablelib/base64/lib/base64.bench.js.map +1 -0
- package/node_modules/@stablelib/base64/lib/base64.d.ts +34 -0
- package/node_modules/@stablelib/base64/lib/base64.js +282 -0
- package/node_modules/@stablelib/base64/lib/base64.js.map +1 -0
- package/node_modules/@stablelib/base64/lib/base64.test.d.ts +1 -0
- package/node_modules/@stablelib/base64/lib/base64.test.js +82 -0
- package/node_modules/@stablelib/base64/lib/base64.test.js.map +1 -0
- package/node_modules/@stablelib/base64/package.json +25 -0
- package/node_modules/@stablelib/base64/tsconfig.json +27 -0
- package/node_modules/fast-sha256/LICENSE +24 -0
- package/node_modules/fast-sha256/README.md +127 -0
- package/node_modules/fast-sha256/package.json +42 -0
- package/node_modules/fast-sha256/sha256.d.ts +39 -0
- package/node_modules/fast-sha256/sha256.js +427 -0
- package/node_modules/fast-sha256/sha256.min.js +1 -0
- package/node_modules/standardwebhooks/README.md +41 -0
- package/node_modules/standardwebhooks/dist/index.d.ts +24 -0
- package/node_modules/standardwebhooks/dist/index.js +106 -0
- package/node_modules/standardwebhooks/dist/index.js.map +1 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.d.ts +1 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.js +30 -0
- package/node_modules/standardwebhooks/dist/timing_safe_equal.js.map +1 -0
- package/node_modules/standardwebhooks/package.json +45 -0
- package/package.json +100 -89
- package/dist/core/radius.d.ts +0 -2
- package/dist/core/radius.d.ts.map +0 -1
- package/dist/core/radius.js +0 -2
- package/dist/core/radius.js.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts +0 -34
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.mts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts +0 -34
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.js.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/stainless-helper-header.mjs.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts +0 -132
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.mts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts +0 -132
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.d.ts.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js +0 -294
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.js.map +0 -1
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs +0 -290
- package/node_modules/@anthropic-ai/sdk/lib/tools/ToolRunner.mjs.map +0 -1
- package/node_modules/@anthropic-ai/sdk/src/lib/stainless-helper-header.ts +0 -80
- package/node_modules/@anthropic-ai/sdk/src/lib/tools/ToolRunner.ts +0 -381
|
@@ -9,13 +9,33 @@ export type { Logger, LogLevel } from './internal/utils/log';
|
|
|
9
9
|
import { castToError, isAbortError } from './internal/errors';
|
|
10
10
|
import type { APIResponseProps } from './internal/parse';
|
|
11
11
|
import { getPlatformHeaders } from './internal/detect-platform';
|
|
12
|
+
import {
|
|
13
|
+
armAbandonmentBackstop,
|
|
14
|
+
registerRequestSignalCleanup,
|
|
15
|
+
releaseRequestSignal,
|
|
16
|
+
} from './internal/request-signal';
|
|
12
17
|
import * as Shims from './internal/shims';
|
|
13
18
|
import * as Opts from './internal/request-options';
|
|
14
19
|
import { stringifyQuery } from './internal/utils/query';
|
|
15
20
|
import { VERSION } from './version';
|
|
16
21
|
import * as Errors from './core/error';
|
|
22
|
+
import type { AccessTokenProvider } from './lib/credentials/types';
|
|
23
|
+
import { OAUTH_API_BETA_HEADER } from './lib/credentials/types';
|
|
24
|
+
import { TokenCache } from './lib/credentials/token-cache';
|
|
25
|
+
import { defaultCredentials, resolveCredentialsFromConfig } from './lib/credentials/credential-chain';
|
|
26
|
+
import type { AnthropicConfig } from './core/credentials';
|
|
27
|
+
import {
|
|
28
|
+
type Middleware,
|
|
29
|
+
isFetchOriginError,
|
|
30
|
+
isRetryableError,
|
|
31
|
+
wrapFetchWithMiddleware,
|
|
32
|
+
} from './core/middleware';
|
|
33
|
+
export type { Middleware, MiddlewareContext, MiddlewareNext } from './core/middleware';
|
|
34
|
+
export type { APIRequest } from './core/api';
|
|
17
35
|
import * as Pagination from './core/pagination';
|
|
18
36
|
import {
|
|
37
|
+
type BidirectionalPageCursorParams,
|
|
38
|
+
BidirectionalPageCursorResponse,
|
|
19
39
|
type PageCursorParams,
|
|
20
40
|
PageCursorResponse,
|
|
21
41
|
type PageParams,
|
|
@@ -33,6 +53,14 @@ import {
|
|
|
33
53
|
CompletionCreateParamsStreaming,
|
|
34
54
|
Completions,
|
|
35
55
|
} from './resources/completions';
|
|
56
|
+
import {
|
|
57
|
+
DeletedFile,
|
|
58
|
+
FileListParams,
|
|
59
|
+
FileMetadata,
|
|
60
|
+
FileMetadataPageCursor,
|
|
61
|
+
FileUploadParams,
|
|
62
|
+
Files,
|
|
63
|
+
} from './resources/files';
|
|
36
64
|
import {
|
|
37
65
|
CapabilitySupport,
|
|
38
66
|
ContextManagementCapability,
|
|
@@ -52,10 +80,12 @@ import {
|
|
|
52
80
|
BetaAPIError,
|
|
53
81
|
BetaAuthenticationError,
|
|
54
82
|
BetaBillingError,
|
|
83
|
+
BetaCurrency,
|
|
55
84
|
BetaError,
|
|
56
85
|
BetaErrorResponse,
|
|
57
86
|
BetaGatewayTimeoutError,
|
|
58
87
|
BetaInvalidRequestError,
|
|
88
|
+
BetaMonetaryAmount,
|
|
59
89
|
BetaNotFoundError,
|
|
60
90
|
BetaOverloadedError,
|
|
61
91
|
BetaPermissionError,
|
|
@@ -73,6 +103,46 @@ import {
|
|
|
73
103
|
BashCodeExecutionToolResultError,
|
|
74
104
|
BashCodeExecutionToolResultErrorCode,
|
|
75
105
|
BashCodeExecutionToolResultErrorParam,
|
|
106
|
+
BrowserCloseTabConfig,
|
|
107
|
+
BrowserDoubleClickConfig,
|
|
108
|
+
BrowserFileUploadConfig,
|
|
109
|
+
BrowserFindConfig,
|
|
110
|
+
BrowserFormInputConfig,
|
|
111
|
+
BrowserGetPageTextConfig,
|
|
112
|
+
BrowserHoldKeyConfig,
|
|
113
|
+
BrowserHoverConfig,
|
|
114
|
+
BrowserJavascriptExecConfig,
|
|
115
|
+
BrowserKeyConfig,
|
|
116
|
+
BrowserLeftClickConfig,
|
|
117
|
+
BrowserLeftClickDragConfig,
|
|
118
|
+
BrowserLeftMouseDownConfig,
|
|
119
|
+
BrowserLeftMouseUpConfig,
|
|
120
|
+
BrowserListTabsConfig,
|
|
121
|
+
BrowserMiddleClickConfig,
|
|
122
|
+
BrowserMouseMoveConfig,
|
|
123
|
+
BrowserNavigateConfig,
|
|
124
|
+
BrowserNewTabConfig,
|
|
125
|
+
BrowserReadConsoleConfig,
|
|
126
|
+
BrowserReadNetworkConfig,
|
|
127
|
+
BrowserReadPageConfig,
|
|
128
|
+
BrowserRightClickConfig,
|
|
129
|
+
BrowserScreenshotConfig,
|
|
130
|
+
BrowserScrollConfig,
|
|
131
|
+
BrowserScrollToConfig,
|
|
132
|
+
BrowserStateBlockParam,
|
|
133
|
+
BrowserStateChange,
|
|
134
|
+
BrowserStateChangeDownloadCompleted,
|
|
135
|
+
BrowserStateChangeDownloadFailed,
|
|
136
|
+
BrowserStateChangeDownloadStarted,
|
|
137
|
+
BrowserStateChangeTabOpened,
|
|
138
|
+
BrowserStateTabEntry,
|
|
139
|
+
BrowserSwitchTabConfig,
|
|
140
|
+
BrowserToolset20260801,
|
|
141
|
+
BrowserToolsetConfigs,
|
|
142
|
+
BrowserTripleClickConfig,
|
|
143
|
+
BrowserTypeConfig,
|
|
144
|
+
BrowserWaitConfig,
|
|
145
|
+
BrowserZoomConfig,
|
|
76
146
|
CacheControlEphemeral,
|
|
77
147
|
CacheCreation,
|
|
78
148
|
CitationCharLocation,
|
|
@@ -95,6 +165,7 @@ import {
|
|
|
95
165
|
CodeExecutionTool20250522,
|
|
96
166
|
CodeExecutionTool20250825,
|
|
97
167
|
CodeExecutionTool20260120,
|
|
168
|
+
CodeExecutionTool20260521,
|
|
98
169
|
CodeExecutionToolResultBlock,
|
|
99
170
|
CodeExecutionToolResultBlockContent,
|
|
100
171
|
CodeExecutionToolResultBlockParam,
|
|
@@ -102,7 +173,28 @@ import {
|
|
|
102
173
|
CodeExecutionToolResultError,
|
|
103
174
|
CodeExecutionToolResultErrorCode,
|
|
104
175
|
CodeExecutionToolResultErrorParam,
|
|
176
|
+
ComputerCursorPositionConfig,
|
|
177
|
+
ComputerDoubleClickConfig,
|
|
178
|
+
ComputerHoldKeyConfig,
|
|
179
|
+
ComputerKeyConfig,
|
|
180
|
+
ComputerLeftClickConfig,
|
|
181
|
+
ComputerLeftClickDragConfig,
|
|
182
|
+
ComputerLeftMouseDownConfig,
|
|
183
|
+
ComputerLeftMouseUpConfig,
|
|
184
|
+
ComputerMiddleClickConfig,
|
|
185
|
+
ComputerMouseMoveConfig,
|
|
186
|
+
ComputerRightClickConfig,
|
|
187
|
+
ComputerScreenshotConfig,
|
|
188
|
+
ComputerScrollConfig,
|
|
189
|
+
ComputerToolset20260801,
|
|
190
|
+
ComputerToolsetConfigs,
|
|
191
|
+
ComputerTripleClickConfig,
|
|
192
|
+
ComputerTypeConfig,
|
|
193
|
+
ComputerWaitConfig,
|
|
194
|
+
ComputerZoomConfig,
|
|
105
195
|
Container,
|
|
196
|
+
ContainerParams,
|
|
197
|
+
ContainerSkill,
|
|
106
198
|
ContainerUploadBlock,
|
|
107
199
|
ContainerUploadBlockParam,
|
|
108
200
|
ContentBlock,
|
|
@@ -117,7 +209,10 @@ import {
|
|
|
117
209
|
DocumentBlockParam,
|
|
118
210
|
EncryptedCodeExecutionResultBlock,
|
|
119
211
|
EncryptedCodeExecutionResultBlockParam,
|
|
212
|
+
FileDocumentSource,
|
|
213
|
+
FileImageSource,
|
|
120
214
|
ImageBlockParam,
|
|
215
|
+
ImageTransformationsParam,
|
|
121
216
|
InputJSONDelta,
|
|
122
217
|
JSONOutputFormat,
|
|
123
218
|
MemoryTool20250818,
|
|
@@ -126,6 +221,7 @@ import {
|
|
|
126
221
|
MessageCountTokensParams,
|
|
127
222
|
MessageCountTokensTool,
|
|
128
223
|
MessageCreateParams,
|
|
224
|
+
MessageCreateParamsContainer,
|
|
129
225
|
MessageCreateParamsNonStreaming,
|
|
130
226
|
MessageCreateParamsStreaming,
|
|
131
227
|
MessageDeltaEvent,
|
|
@@ -139,6 +235,7 @@ import {
|
|
|
139
235
|
Metadata,
|
|
140
236
|
Model,
|
|
141
237
|
OutputConfig,
|
|
238
|
+
OutputTokensDetails,
|
|
142
239
|
PlainTextSource,
|
|
143
240
|
RawContentBlockDelta,
|
|
144
241
|
RawContentBlockDeltaEvent,
|
|
@@ -158,6 +255,7 @@ import {
|
|
|
158
255
|
ServerToolUseBlock,
|
|
159
256
|
ServerToolUseBlockParam,
|
|
160
257
|
SignatureDelta,
|
|
258
|
+
SkillParams,
|
|
161
259
|
StopReason,
|
|
162
260
|
TextBlock,
|
|
163
261
|
TextBlockParam,
|
|
@@ -216,6 +314,7 @@ import {
|
|
|
216
314
|
WebFetchTool20250910,
|
|
217
315
|
WebFetchTool20260209,
|
|
218
316
|
WebFetchTool20260309,
|
|
317
|
+
WebFetchTool20260318,
|
|
219
318
|
WebFetchToolResultBlock,
|
|
220
319
|
WebFetchToolResultBlockParam,
|
|
221
320
|
WebFetchToolResultErrorBlock,
|
|
@@ -225,6 +324,7 @@ import {
|
|
|
225
324
|
WebSearchResultBlockParam,
|
|
226
325
|
WebSearchTool20250305,
|
|
227
326
|
WebSearchTool20260209,
|
|
327
|
+
WebSearchTool20260318,
|
|
228
328
|
WebSearchToolRequestError,
|
|
229
329
|
WebSearchToolResultBlock,
|
|
230
330
|
WebSearchToolResultBlockContent,
|
|
@@ -233,6 +333,15 @@ import {
|
|
|
233
333
|
WebSearchToolResultError,
|
|
234
334
|
WebSearchToolResultErrorCode,
|
|
235
335
|
} from './resources/messages/messages';
|
|
336
|
+
import {
|
|
337
|
+
DeletedSkill,
|
|
338
|
+
Skill,
|
|
339
|
+
SkillCreateParams,
|
|
340
|
+
SkillListParams,
|
|
341
|
+
SkillSource,
|
|
342
|
+
Skills,
|
|
343
|
+
SkillsPageCursor,
|
|
344
|
+
} from './resources/skills/skills';
|
|
236
345
|
import { type Fetch } from './internal/builtin-types';
|
|
237
346
|
import { isRunningInBrowser } from './internal/detect-platform';
|
|
238
347
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
@@ -241,12 +350,47 @@ import { readEnv } from './internal/utils/env';
|
|
|
241
350
|
import {
|
|
242
351
|
type LogLevel,
|
|
243
352
|
type Logger,
|
|
353
|
+
defaultLogLevel,
|
|
244
354
|
formatRequestDetails,
|
|
245
355
|
loggerFor,
|
|
246
356
|
parseLogLevel,
|
|
247
357
|
} from './internal/utils/log';
|
|
248
358
|
import { isEmptyObj } from './internal/utils/values';
|
|
249
359
|
|
|
360
|
+
/**
|
|
361
|
+
* Shared auth state. A `withOptions()` clone receives the parent's instance
|
|
362
|
+
* (unless the caller overrides auth options) so a clone created before lazy
|
|
363
|
+
* resolution settles observes the same provider/tokenCache/error/extraHeaders
|
|
364
|
+
* as the parent rather than starting an independent resolution.
|
|
365
|
+
*/
|
|
366
|
+
type AuthState = {
|
|
367
|
+
provider: AccessTokenProvider | null;
|
|
368
|
+
tokenCache: TokenCache | null;
|
|
369
|
+
resolution: Promise<void> | null;
|
|
370
|
+
error: unknown;
|
|
371
|
+
extraHeaders: Record<string, string>;
|
|
372
|
+
/**
|
|
373
|
+
* `base_url` from the resolved profile/config, normalized (no trailing
|
|
374
|
+
* slash). Stored on the shared auth state so `withOptions()` clones created
|
|
375
|
+
* before lazy resolution settles can still adopt it on their first request.
|
|
376
|
+
*/
|
|
377
|
+
baseURL?: string | undefined;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Per-request auth flags, keyed by the FinalRequestOptions object so
|
|
382
|
+
* caller-owned options aren't mutated.
|
|
383
|
+
*/
|
|
384
|
+
type RequestAuthFlags = {
|
|
385
|
+
usedTokenCache: boolean;
|
|
386
|
+
didRefreshFor401: boolean;
|
|
387
|
+
};
|
|
388
|
+
|
|
389
|
+
type InternalClientOptions = ClientOptions & {
|
|
390
|
+
__auth?: AuthState | undefined;
|
|
391
|
+
__baseURLIsExplicit?: boolean | undefined;
|
|
392
|
+
};
|
|
393
|
+
|
|
250
394
|
export type ApiKeySetter = () => Promise<string>;
|
|
251
395
|
|
|
252
396
|
export interface ClientOptions {
|
|
@@ -268,6 +412,45 @@ export interface ClientOptions {
|
|
|
268
412
|
*/
|
|
269
413
|
authToken?: string | null | undefined;
|
|
270
414
|
|
|
415
|
+
/**
|
|
416
|
+
* An {@link AccessTokenProvider} for OAuth/workload-identity authentication.
|
|
417
|
+
*
|
|
418
|
+
* When set, the provider is wrapped in a {@link TokenCache} and used for
|
|
419
|
+
* Bearer token auth on every request. Takes precedence over `authToken`
|
|
420
|
+
* but not `apiKey`.
|
|
421
|
+
*
|
|
422
|
+
* If omitted (and no `apiKey` or `authToken` is provided), the client
|
|
423
|
+
* automatically resolves credentials from config files or environment
|
|
424
|
+
* variables on the first request.
|
|
425
|
+
*/
|
|
426
|
+
credentials?: AccessTokenProvider | null | undefined;
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* An {@link AnthropicConfig} object to resolve credentials from directly,
|
|
430
|
+
* bypassing config-file and environment-variable lookup. This is the
|
|
431
|
+
* TypeScript equivalent of Go's `option.WithConfig(cfg)`.
|
|
432
|
+
*
|
|
433
|
+
* Ignored when `credentials` is set. For `oidc_federation`, the SDK
|
|
434
|
+
* performs the jwt-bearer exchange in-process; for `user_oauth`,
|
|
435
|
+
* `authentication.credentials_path` must point at the credentials file.
|
|
436
|
+
*/
|
|
437
|
+
config?: AnthropicConfig | null | undefined;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Name of a profile to load from `<config_dir>/configs/<profile>.json`.
|
|
441
|
+
*
|
|
442
|
+
* Equivalent to setting the `ANTHROPIC_PROFILE` environment variable, but
|
|
443
|
+
* scoped to this client instance. As an explicit constructor argument it
|
|
444
|
+
* takes precedence over `ANTHROPIC_API_KEY` / `ANTHROPIC_AUTH_TOKEN` in the
|
|
445
|
+
* environment. Mutually exclusive with `credentials` and `config`.
|
|
446
|
+
*/
|
|
447
|
+
profile?: string | null | undefined;
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Defaults to process.env['ANTHROPIC_WEBHOOK_SIGNING_KEY'].
|
|
451
|
+
*/
|
|
452
|
+
webhookKey?: string | null | undefined;
|
|
453
|
+
|
|
271
454
|
/**
|
|
272
455
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
273
456
|
*
|
|
@@ -298,6 +481,18 @@ export interface ClientOptions {
|
|
|
298
481
|
*/
|
|
299
482
|
fetch?: Fetch | undefined;
|
|
300
483
|
|
|
484
|
+
/**
|
|
485
|
+
* {@link Middleware} functions that wrap every HTTP request made by the
|
|
486
|
+
* client.
|
|
487
|
+
*
|
|
488
|
+
* Middleware runs per HTTP attempt, including retries. It observes the
|
|
489
|
+
* canonical Anthropic-shaped request and response on every backend: on
|
|
490
|
+
* clients for third-party backends (Bedrock, Vertex, Foundry), the
|
|
491
|
+
* backend's URL/body rewriting, request signing, and response
|
|
492
|
+
* normalization happen inside `next`.
|
|
493
|
+
*/
|
|
494
|
+
middleware?: ReadonlyArray<Middleware> | undefined;
|
|
495
|
+
|
|
301
496
|
/**
|
|
302
497
|
* The maximum number of times that the client will retry a request in case of a
|
|
303
498
|
* temporary failure, like a network error or a 5XX error from the server.
|
|
@@ -352,6 +547,31 @@ export const AI_PROMPT = '\\n\\nAssistant:';
|
|
|
352
547
|
export class BaseAnthropic {
|
|
353
548
|
apiKey: string | null;
|
|
354
549
|
authToken: string | null;
|
|
550
|
+
webhookKey: string | null;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The active credential provider. Default credential resolution runs once
|
|
554
|
+
* at construction time. If it fails, the error is surfaced on every
|
|
555
|
+
* request and the client must be reconstructed — there is no retry path.
|
|
556
|
+
*
|
|
557
|
+
* Clones returned by {@link withOptions} share the parent's auth state
|
|
558
|
+
* (provider, token cache, pending resolution, and any resolution error)
|
|
559
|
+
* unless the caller passes an explicit `apiKey`, `authToken`,
|
|
560
|
+
* `credentials`, `config`, or `profile` override.
|
|
561
|
+
*/
|
|
562
|
+
get credentials(): AccessTokenProvider | null {
|
|
563
|
+
return this._authState.provider;
|
|
564
|
+
}
|
|
565
|
+
private _authState: AuthState;
|
|
566
|
+
/**
|
|
567
|
+
* Whether `baseURL` was chosen by the caller (constructor arg or env var)
|
|
568
|
+
* rather than derived. Non-explicit base URLs may be replaced — by a
|
|
569
|
+
* profile-supplied host, or by re-derivation in `withOptions()` clones.
|
|
570
|
+
* Subclasses that derive their own base URL should correct this after
|
|
571
|
+
* `super()`, since the base constructor can't tell a derived value apart.
|
|
572
|
+
*/
|
|
573
|
+
protected _baseURLIsExplicit: boolean;
|
|
574
|
+
private _requestAuthFlags = new WeakMap<FinalRequestOptions, RequestAuthFlags>();
|
|
355
575
|
|
|
356
576
|
baseURL: string;
|
|
357
577
|
maxRetries: number;
|
|
@@ -359,6 +579,7 @@ export class BaseAnthropic {
|
|
|
359
579
|
logger: Logger;
|
|
360
580
|
logLevel: LogLevel | undefined;
|
|
361
581
|
fetchOptions: MergedRequestInit | undefined;
|
|
582
|
+
middleware: ReadonlyArray<Middleware>;
|
|
362
583
|
|
|
363
584
|
private fetch: Fetch;
|
|
364
585
|
#encoder: Opts.RequestEncoder;
|
|
@@ -370,6 +591,7 @@ export class BaseAnthropic {
|
|
|
370
591
|
*
|
|
371
592
|
* @param {string | null | undefined} [opts.apiKey=process.env['ANTHROPIC_API_KEY'] ?? null]
|
|
372
593
|
* @param {string | null | undefined} [opts.authToken=process.env['ANTHROPIC_AUTH_TOKEN'] ?? null]
|
|
594
|
+
* @param {string | null | undefined} [opts.webhookKey=process.env['ANTHROPIC_WEBHOOK_SIGNING_KEY'] ?? null]
|
|
373
595
|
* @param {string} [opts.baseURL=process.env['ANTHROPIC_BASE_URL'] ?? https://api.anthropic.com] - Override the default base URL for the API.
|
|
374
596
|
* @param {number} [opts.timeout=10 minutes] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
375
597
|
* @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
|
|
@@ -381,13 +603,26 @@ export class BaseAnthropic {
|
|
|
381
603
|
*/
|
|
382
604
|
constructor({
|
|
383
605
|
baseURL = readEnv('ANTHROPIC_BASE_URL'),
|
|
384
|
-
apiKey
|
|
385
|
-
authToken
|
|
606
|
+
apiKey,
|
|
607
|
+
authToken,
|
|
608
|
+
webhookKey = readEnv('ANTHROPIC_WEBHOOK_SIGNING_KEY') ?? null,
|
|
386
609
|
...opts
|
|
387
610
|
}: ClientOptions = {}) {
|
|
611
|
+
// An explicit `profile` is a constructor-level credential choice; when set,
|
|
612
|
+
// do not let env ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN shadow it.
|
|
613
|
+
if (apiKey === undefined) {
|
|
614
|
+
apiKey = opts.profile != null ? null : readEnv('ANTHROPIC_API_KEY') ?? null;
|
|
615
|
+
}
|
|
616
|
+
if (authToken === undefined) {
|
|
617
|
+
authToken = opts.profile != null ? null : readEnv('ANTHROPIC_AUTH_TOKEN') ?? null;
|
|
618
|
+
}
|
|
619
|
+
if (opts.profile != null && (opts.credentials != null || opts.config != null)) {
|
|
620
|
+
throw new TypeError('Pass at most one of `profile`, `credentials`, or `config`.');
|
|
621
|
+
}
|
|
388
622
|
const options: ClientOptions = {
|
|
389
623
|
apiKey,
|
|
390
624
|
authToken,
|
|
625
|
+
webhookKey,
|
|
391
626
|
...opts,
|
|
392
627
|
baseURL: baseURL || `https://api.anthropic.com`,
|
|
393
628
|
};
|
|
@@ -399,48 +634,238 @@ export class BaseAnthropic {
|
|
|
399
634
|
}
|
|
400
635
|
|
|
401
636
|
this.baseURL = options.baseURL!;
|
|
637
|
+
// After destructuring, `baseURL` is the constructor arg or
|
|
638
|
+
// ANTHROPIC_BASE_URL — both count as an explicit choice that a profile
|
|
639
|
+
// base_url must not override. A falsy value means we fell through to the
|
|
640
|
+
// hardcoded default above and a profile may supply the host. withOptions()
|
|
641
|
+
// propagates the parent's flag via __baseURLIsExplicit so a non-overriding
|
|
642
|
+
// clone doesn't mistake the inherited baseURL for a caller-supplied one.
|
|
643
|
+
this._baseURLIsExplicit = (opts as InternalClientOptions).__baseURLIsExplicit ?? !!baseURL;
|
|
402
644
|
this.timeout = options.timeout ?? BaseAnthropic.DEFAULT_TIMEOUT /* 10 minutes */;
|
|
403
645
|
this.logger = options.logger ?? console;
|
|
404
|
-
const defaultLogLevel = 'warn';
|
|
405
646
|
// Set default logLevel early so that we can log a warning in parseLogLevel.
|
|
406
647
|
this.logLevel = defaultLogLevel;
|
|
407
648
|
this.logLevel =
|
|
408
|
-
parseLogLevel(options.logLevel, 'ClientOptions.logLevel', this) ??
|
|
409
|
-
parseLogLevel(readEnv('ANTHROPIC_LOG'), "process.env['ANTHROPIC_LOG']", this) ??
|
|
649
|
+
parseLogLevel(options.logLevel, 'ClientOptions.logLevel', loggerFor(this)) ??
|
|
650
|
+
parseLogLevel(readEnv('ANTHROPIC_LOG'), "process.env['ANTHROPIC_LOG']", loggerFor(this)) ??
|
|
410
651
|
defaultLogLevel;
|
|
411
652
|
this.fetchOptions = options.fetchOptions;
|
|
412
653
|
this.maxRetries = options.maxRetries ?? 2;
|
|
413
654
|
this.fetch = options.fetch ?? Shims.getDefaultFetch();
|
|
414
655
|
this.#encoder = Opts.FallbackEncoder;
|
|
415
656
|
|
|
657
|
+
this.middleware = [...(options.middleware ?? [])];
|
|
658
|
+
|
|
659
|
+
const customHeadersEnv = readEnv('ANTHROPIC_CUSTOM_HEADERS');
|
|
660
|
+
if (customHeadersEnv) {
|
|
661
|
+
const parsed: Record<string, string> = {};
|
|
662
|
+
for (const line of customHeadersEnv.split('\n')) {
|
|
663
|
+
const colon = line.indexOf(':');
|
|
664
|
+
if (colon >= 0) {
|
|
665
|
+
parsed[line.substring(0, colon).trim()] = line.substring(colon + 1).trim();
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
options.defaultHeaders = { ...parsed, ...options.defaultHeaders };
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
const inherited = (opts as InternalClientOptions).__auth;
|
|
672
|
+
// Never persist the internal __auth handle on _options — it's a
|
|
673
|
+
// one-shot constructor signal, and leaking it through _options would
|
|
674
|
+
// cause withOptions() to spread a stale value into clones.
|
|
675
|
+
delete (options as InternalClientOptions).__auth;
|
|
676
|
+
delete (options as InternalClientOptions).__baseURLIsExplicit;
|
|
416
677
|
this._options = options;
|
|
417
678
|
|
|
418
679
|
this.apiKey = typeof apiKey === 'string' ? apiKey : null;
|
|
419
680
|
this.authToken = authToken;
|
|
681
|
+
this.webhookKey = webhookKey;
|
|
682
|
+
|
|
683
|
+
if (inherited) {
|
|
684
|
+
this._authState = inherited;
|
|
685
|
+
if (!this._baseURLIsExplicit && inherited.baseURL) {
|
|
686
|
+
this.baseURL = inherited.baseURL;
|
|
687
|
+
}
|
|
688
|
+
} else {
|
|
689
|
+
this._authState = { provider: null, tokenCache: null, resolution: null, error: null, extraHeaders: {} };
|
|
690
|
+
|
|
691
|
+
// apiKey/authToken win over credentials/config/profile; don't build a
|
|
692
|
+
// token cache or resolve a config that the request path will then ignore.
|
|
693
|
+
if (this.apiKey == null && this.authToken == null) {
|
|
694
|
+
const credentials = options.credentials ?? null;
|
|
695
|
+
if (credentials) {
|
|
696
|
+
this._authState.provider = credentials;
|
|
697
|
+
this._authState.tokenCache = this._makeTokenCache(credentials);
|
|
698
|
+
} else if (options.config != null) {
|
|
699
|
+
const result = resolveCredentialsFromConfig(options.config, this._credentialResolverOptions());
|
|
700
|
+
this._authState.provider = result.provider;
|
|
701
|
+
this._authState.tokenCache = this._makeTokenCache(result.provider);
|
|
702
|
+
this._authState.extraHeaders = result.extraHeaders;
|
|
703
|
+
this._applyCredentialBaseURL(result.baseURL);
|
|
704
|
+
} else if (options.profile != null) {
|
|
705
|
+
this._authState.resolution = this._resolveDefaultCredentials(options.profile);
|
|
706
|
+
} else if (this._shouldResolveDefaultCredentials()) {
|
|
707
|
+
// No explicit auth provided — lazily resolve from the credential
|
|
708
|
+
// chain on first request. Errors are captured into _auth.error and
|
|
709
|
+
// surfaced on first use rather than as an unhandled rejection.
|
|
710
|
+
this._authState.resolution = this._resolveDefaultCredentials();
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/**
|
|
717
|
+
* Whether to lazily resolve auth from the default credential chain when no
|
|
718
|
+
* explicit auth is configured. Called once from the constructor, so
|
|
719
|
+
* overrides must not depend on subclass instance state. Subclasses that
|
|
720
|
+
* bring their own auth scheme return false so unrelated local credentials
|
|
721
|
+
* are never resolved or allowed to supply a base URL.
|
|
722
|
+
*/
|
|
723
|
+
protected _shouldResolveDefaultCredentials(): boolean {
|
|
724
|
+
return true;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* Stores a profile/config-supplied base URL on the shared auth state and, if
|
|
729
|
+
* the caller did not pin `baseURL` via constructor option or env, adopts it
|
|
730
|
+
* as this client's outbound API host. Precedence: ctor opt > env > profile >
|
|
731
|
+
* hardcoded default.
|
|
732
|
+
*/
|
|
733
|
+
private _applyCredentialBaseURL(baseURL: string | undefined): void {
|
|
734
|
+
if (!baseURL) return;
|
|
735
|
+
const normalized = baseURL.replace(/\/+$/, '');
|
|
736
|
+
this._authState.baseURL = normalized;
|
|
737
|
+
if (!this._baseURLIsExplicit) {
|
|
738
|
+
this.baseURL = normalized;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Options bag passed into the credential chain. `baseURL` here is only the
|
|
744
|
+
* fallback host for the token-exchange POST when the config itself omits
|
|
745
|
+
* `base_url`; the chain returns the config's own `base_url` (if any) on
|
|
746
|
+
* {@link CredentialResult.baseURL}, which {@link _applyCredentialBaseURL}
|
|
747
|
+
* then adopts for outbound API requests. The two are deliberately decoupled
|
|
748
|
+
* so this fallback never round-trips into precedence.
|
|
749
|
+
*/
|
|
750
|
+
private _credentialResolverOptions() {
|
|
751
|
+
return {
|
|
752
|
+
baseURL: this.baseURL,
|
|
753
|
+
fetch: this._credentialsFetch(),
|
|
754
|
+
userAgent: this.getUserAgent(),
|
|
755
|
+
onCacheWriteError: (err: unknown) => {
|
|
756
|
+
loggerFor(this).debug('credential cache write failed (best-effort)', err);
|
|
757
|
+
},
|
|
758
|
+
onSafetyWarning: (msg: string) => {
|
|
759
|
+
loggerFor(this).warn(msg);
|
|
760
|
+
},
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
/**
|
|
765
|
+
* A `Fetch` for first-party credential token-exchange requests (OIDC
|
|
766
|
+
* federation jwt-bearer grants, user-OAuth refresh grants) that routes
|
|
767
|
+
* through this client's middleware chain, so middleware observes token
|
|
768
|
+
* traffic like any other request. Only client-level middleware applies:
|
|
769
|
+
* a minted token is shared across requests, so attributing the exchange
|
|
770
|
+
* to any one request's per-request middleware would be arbitrary. For the
|
|
771
|
+
* same reason, `ctx.options` is undefined for these requests.
|
|
772
|
+
*/
|
|
773
|
+
private _credentialsFetch(): Fetch {
|
|
774
|
+
return wrapFetchWithMiddleware(this.fetch, this.middleware, undefined, this);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
private _makeTokenCache(provider: AccessTokenProvider): TokenCache {
|
|
778
|
+
return new TokenCache(provider, (err) => {
|
|
779
|
+
loggerFor(this).debug('advisory token refresh failed; serving cached token', err);
|
|
780
|
+
});
|
|
420
781
|
}
|
|
421
782
|
|
|
422
783
|
/**
|
|
423
784
|
* Create a new client instance re-using the same options given to the current client with optional overriding.
|
|
424
785
|
*/
|
|
425
786
|
withOptions(options: Partial<ClientOptions>): this {
|
|
426
|
-
|
|
787
|
+
// Share the auth state object unless the caller passes any auth-related
|
|
788
|
+
// key. The `in` check is intentional: even `apiKey: undefined` opts the
|
|
789
|
+
// clone out of sharing (it gets its own _auth and TokenCache, though it
|
|
790
|
+
// may still wrap the parent's provider via the credentials spread below).
|
|
791
|
+
const overridesStructuredAuth = 'credentials' in options || 'config' in options || 'profile' in options;
|
|
792
|
+
const overridesAuth = 'apiKey' in options || 'authToken' in options || overridesStructuredAuth;
|
|
793
|
+
const internal: InternalClientOptions = {
|
|
427
794
|
...this._options,
|
|
428
|
-
baseURL
|
|
795
|
+
// Only forward baseURL when the caller (or env) explicitly chose it.
|
|
796
|
+
// For a non-explicit parent, this.baseURL may have been mutated to the
|
|
797
|
+
// profile-resolved host; pinning that as the clone's options.baseURL
|
|
798
|
+
// would make _options on the clone misreport caller intent and would
|
|
799
|
+
// leave the clone stuck on the parent's host across an auth override.
|
|
800
|
+
// The clone instead receives the construction-time value via
|
|
801
|
+
// ...this._options above and re-adopts the profile host through the
|
|
802
|
+
// shared _authState.baseURL + __baseURLIsExplicit=false path.
|
|
803
|
+
...(this._baseURLIsExplicit ? { baseURL: this.baseURL } : {}),
|
|
429
804
|
maxRetries: this.maxRetries,
|
|
430
805
|
timeout: this.timeout,
|
|
431
806
|
logger: this.logger,
|
|
432
807
|
logLevel: this.logLevel,
|
|
433
808
|
fetch: this.fetch,
|
|
434
809
|
fetchOptions: this.fetchOptions,
|
|
810
|
+
middleware: this.middleware,
|
|
435
811
|
apiKey: this.apiKey,
|
|
436
812
|
authToken: this.authToken,
|
|
813
|
+
webhookKey: this.webhookKey,
|
|
814
|
+
// credentials: this.credentials is a no-op when __auth is shared (the
|
|
815
|
+
// ctor takes the inherited path and ignores options.credentials); when
|
|
816
|
+
// overridesAuth is true via apiKey/authToken only, it lets the clone
|
|
817
|
+
// build a fresh TokenCache around the parent's provider.
|
|
818
|
+
credentials: this.credentials,
|
|
819
|
+
// When the caller passes a structured-credential override, drop inherited
|
|
820
|
+
// structured-credential options so only `...options` supplies them —
|
|
821
|
+
// otherwise an inherited `credentials`/`config`/`profile` would trip the
|
|
822
|
+
// mutual-exclusion check or precedence over the override.
|
|
823
|
+
...(overridesStructuredAuth ? { credentials: undefined, config: undefined, profile: undefined } : {}),
|
|
437
824
|
...options,
|
|
438
|
-
|
|
439
|
-
|
|
825
|
+
// Always set __auth so any stale value from ...this._options is
|
|
826
|
+
// overwritten. undefined means "build fresh auth from these options".
|
|
827
|
+
__auth: overridesAuth ? undefined : this._authState,
|
|
828
|
+
__baseURLIsExplicit: 'baseURL' in options ? true : this._baseURLIsExplicit,
|
|
829
|
+
};
|
|
830
|
+
return new (this.constructor as any as new (props: ClientOptions) => typeof this)(internal);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Lazily resolves credentials from config files or environment variables.
|
|
835
|
+
* Called once from the constructor when no explicit auth is provided, or
|
|
836
|
+
* when an explicit `profile` was passed (in which case a missing/unresolved
|
|
837
|
+
* profile is surfaced as an error instead of falling through to "no auth").
|
|
838
|
+
* The returned promise is stored and awaited on the first request.
|
|
839
|
+
*/
|
|
840
|
+
private async _resolveDefaultCredentials(profile?: string): Promise<void> {
|
|
841
|
+
try {
|
|
842
|
+
const result = await defaultCredentials(this._credentialResolverOptions(), profile);
|
|
843
|
+
if (result) {
|
|
844
|
+
this._authState.provider = result.provider;
|
|
845
|
+
this._authState.tokenCache = this._makeTokenCache(result.provider);
|
|
846
|
+
this._authState.extraHeaders = result.extraHeaders;
|
|
847
|
+
this._applyCredentialBaseURL(result.baseURL);
|
|
848
|
+
} else if (profile != null) {
|
|
849
|
+
throw new Errors.AnthropicError(
|
|
850
|
+
`Profile "${profile}" could not be resolved (no <config_dir>/configs/${profile}.json found).`,
|
|
851
|
+
);
|
|
852
|
+
}
|
|
853
|
+
} catch (err) {
|
|
854
|
+
this._authState.error = err;
|
|
855
|
+
} finally {
|
|
856
|
+
this._authState.resolution = null;
|
|
857
|
+
}
|
|
440
858
|
}
|
|
441
859
|
|
|
442
860
|
/**
|
|
443
861
|
* Check whether the base URL is set to its default.
|
|
862
|
+
*
|
|
863
|
+
* A profile-supplied `base_url` counts as an override here: a profile that
|
|
864
|
+
* pins a non-default host is declaring "this whole client targets deployment
|
|
865
|
+
* X", so per-endpoint {@link RequestOptions.defaultBaseURL} hints must not
|
|
866
|
+
* silently route individual calls back to production. No generated resource
|
|
867
|
+
* currently sets `defaultBaseURL`, so this is documenting intent for when
|
|
868
|
+
* one does.
|
|
444
869
|
*/
|
|
445
870
|
#baseURLOverridden(): boolean {
|
|
446
871
|
return this.baseURL !== 'https://api.anthropic.com';
|
|
@@ -454,6 +879,12 @@ export class BaseAnthropic {
|
|
|
454
879
|
if (values.get('x-api-key') || values.get('authorization')) {
|
|
455
880
|
return;
|
|
456
881
|
}
|
|
882
|
+
if (this._authState.error) {
|
|
883
|
+
throw this._authState.error;
|
|
884
|
+
}
|
|
885
|
+
if (this._authState.tokenCache || this._authState.resolution) {
|
|
886
|
+
return; // auth will be injected per-request via authHeaders
|
|
887
|
+
}
|
|
457
888
|
|
|
458
889
|
if (this.apiKey && values.get('x-api-key')) {
|
|
459
890
|
return;
|
|
@@ -470,11 +901,35 @@ export class BaseAnthropic {
|
|
|
470
901
|
}
|
|
471
902
|
|
|
472
903
|
throw new Error(
|
|
473
|
-
'Could not resolve authentication method. Expected
|
|
904
|
+
'Could not resolve authentication method. Expected one of apiKey, authToken, credentials, config, or profile to be set. Or for one of the "X-Api-Key" or "Authorization" headers to be explicitly omitted',
|
|
474
905
|
);
|
|
475
906
|
}
|
|
476
907
|
|
|
908
|
+
private _authFlags(opts: FinalRequestOptions): RequestAuthFlags {
|
|
909
|
+
let flags = this._requestAuthFlags.get(opts);
|
|
910
|
+
if (!flags) {
|
|
911
|
+
flags = { usedTokenCache: false, didRefreshFor401: false };
|
|
912
|
+
this._requestAuthFlags.set(opts, flags);
|
|
913
|
+
}
|
|
914
|
+
return flags;
|
|
915
|
+
}
|
|
916
|
+
|
|
477
917
|
protected async authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined> {
|
|
918
|
+
// Wait for lazy credential resolution if it's in progress. If it failed,
|
|
919
|
+
// return no auth headers — validateHeaders surfaces the stored error
|
|
920
|
+
// after the explicit-header escape hatch has had a chance to apply.
|
|
921
|
+
if (this._authState.resolution) {
|
|
922
|
+
await this._authState.resolution;
|
|
923
|
+
}
|
|
924
|
+
if (this._authState.error) {
|
|
925
|
+
return undefined;
|
|
926
|
+
}
|
|
927
|
+
// If we have a token cache and no API key is set, use token auth
|
|
928
|
+
if (this._authState.tokenCache && this.apiKey == null) {
|
|
929
|
+
const token = await this._authState.tokenCache.getToken();
|
|
930
|
+
this._authFlags(opts).usedTokenCache = true;
|
|
931
|
+
return buildHeaders([{ Authorization: `Bearer ${token}` }]);
|
|
932
|
+
}
|
|
478
933
|
return buildHeaders([await this.apiKeyAuth(opts), await this.bearerAuth(opts)]);
|
|
479
934
|
}
|
|
480
935
|
|
|
@@ -492,15 +947,12 @@ export class BaseAnthropic {
|
|
|
492
947
|
return buildHeaders([{ Authorization: `Bearer ${this.authToken}` }]);
|
|
493
948
|
}
|
|
494
949
|
|
|
495
|
-
/**
|
|
496
|
-
* Basic re-implementation of `qs.stringify` for primitive types.
|
|
497
|
-
*/
|
|
498
950
|
protected stringifyQuery(query: object | Record<string, unknown>): string {
|
|
499
951
|
return stringifyQuery(query);
|
|
500
952
|
}
|
|
501
953
|
|
|
502
|
-
|
|
503
|
-
return
|
|
954
|
+
protected getUserAgent(): string {
|
|
955
|
+
return `Anthropic/JS ${VERSION}`;
|
|
504
956
|
}
|
|
505
957
|
|
|
506
958
|
protected defaultIdempotencyKey(): string {
|
|
@@ -562,11 +1014,61 @@ export class BaseAnthropic {
|
|
|
562
1014
|
*
|
|
563
1015
|
* This is useful for cases where you want to add certain headers based off of
|
|
564
1016
|
* the request properties, e.g. `method` or `url`.
|
|
1017
|
+
*
|
|
1018
|
+
* Runs after all middleware (including {@link backendMiddleware}),
|
|
1019
|
+
* immediately before each underlying fetch call, so it sees exactly what
|
|
1020
|
+
* goes over the wire. Middleware may replay a request by calling `next()`
|
|
1021
|
+
* more than once, so this hook can run multiple times per attempt:
|
|
1022
|
+
* overrides must be idempotent and overwrite headers from a previous
|
|
1023
|
+
* invocation rather than append to them.
|
|
565
1024
|
*/
|
|
566
1025
|
protected async prepareRequest(
|
|
567
1026
|
request: RequestInit,
|
|
568
1027
|
{ url, options }: { url: string; options: FinalRequestOptions },
|
|
569
|
-
): Promise<void> {
|
|
1028
|
+
): Promise<void> {
|
|
1029
|
+
// Append auth-derived headers when using token auth. Done here (after all
|
|
1030
|
+
// header merging) rather than in authHeaders() so we append to any existing
|
|
1031
|
+
// anthropic-beta values instead of being overwritten by later header sources.
|
|
1032
|
+
if (this._authState.tokenCache && this.apiKey == null) {
|
|
1033
|
+
// Normalize to a Headers instance — custom fetch impls or polyfills can
|
|
1034
|
+
// hand back arrays / plain objects, and silently dropping the beta
|
|
1035
|
+
// header in that case would surface as a confusing server-side 4xx.
|
|
1036
|
+
const headers = request.headers instanceof Headers ? request.headers : new Headers(request.headers);
|
|
1037
|
+
for (const [k, v] of Object.entries(this._authState.extraHeaders)) {
|
|
1038
|
+
if (!headers.has(k)) headers.set(k, v);
|
|
1039
|
+
}
|
|
1040
|
+
const existing = headers
|
|
1041
|
+
.get('anthropic-beta')
|
|
1042
|
+
?.split(',')
|
|
1043
|
+
.map((s) => s.trim());
|
|
1044
|
+
if (!existing?.includes(OAUTH_API_BETA_HEADER)) {
|
|
1045
|
+
headers.append('anthropic-beta', OAUTH_API_BETA_HEADER);
|
|
1046
|
+
}
|
|
1047
|
+
request.headers = headers;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* Internal {@link Middleware} composed innermost in the chain — inside both
|
|
1053
|
+
* client-level and per-request middleware, immediately around the underlying
|
|
1054
|
+
* `fetch`. Subclasses for third-party backends override this to adapt the
|
|
1055
|
+
* canonical Anthropic-shaped request to the backend's wire shape (URL/body
|
|
1056
|
+
* rewriting, request signing) and to normalize the wire response back to the
|
|
1057
|
+
* canonical shape (e.g. AWS EventStream to SSE).
|
|
1058
|
+
*
|
|
1059
|
+
* Running inside the user's middleware means user middleware always observes
|
|
1060
|
+
* canonical Anthropic-shaped traffic, and the adaptation re-runs (e.g.
|
|
1061
|
+
* re-signs) on every `next()` invocation, covering whatever the middleware
|
|
1062
|
+
* mutated.
|
|
1063
|
+
*
|
|
1064
|
+
* Errors thrown here follow the middleware error policy: they propagate to
|
|
1065
|
+
* the caller as-is — no retries, no `APIConnectionError` wrapping — unless
|
|
1066
|
+
* retryable (see {@link Middleware}); throw a `RetryableError` to opt into
|
|
1067
|
+
* the retry path.
|
|
1068
|
+
*/
|
|
1069
|
+
protected backendMiddleware(): ReadonlyArray<Middleware> {
|
|
1070
|
+
return [];
|
|
1071
|
+
}
|
|
570
1072
|
|
|
571
1073
|
get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp> {
|
|
572
1074
|
return this.methodRequest('get', path, opts);
|
|
@@ -616,6 +1118,9 @@ export class BaseAnthropic {
|
|
|
616
1118
|
const maxRetries = options.maxRetries ?? this.maxRetries;
|
|
617
1119
|
if (retriesRemaining == null) {
|
|
618
1120
|
retriesRemaining = maxRetries;
|
|
1121
|
+
// Top-level call: reset per-request auth flags so a reused options object
|
|
1122
|
+
// (via client.request(opts)) doesn't carry stale 401-refresh state.
|
|
1123
|
+
this._requestAuthFlags.delete(options);
|
|
619
1124
|
}
|
|
620
1125
|
|
|
621
1126
|
await this.prepareOptions(options);
|
|
@@ -624,33 +1129,24 @@ export class BaseAnthropic {
|
|
|
624
1129
|
retryCount: maxRetries - retriesRemaining,
|
|
625
1130
|
});
|
|
626
1131
|
|
|
627
|
-
await this.prepareRequest(req, { url, options });
|
|
628
|
-
|
|
629
1132
|
/** Not an API request ID, just for correlating local log entries. */
|
|
630
1133
|
const requestLogID = 'log_' + ((Math.random() * (1 << 24)) | 0).toString(16).padStart(6, '0');
|
|
631
1134
|
const retryLogStr = retryOfRequestLogID === undefined ? '' : `, retryOf: ${retryOfRequestLogID}`;
|
|
632
1135
|
const startTime = Date.now();
|
|
633
1136
|
|
|
634
|
-
loggerFor(this).debug(
|
|
635
|
-
`[${requestLogID}] sending request`,
|
|
636
|
-
formatRequestDetails({
|
|
637
|
-
retryOfRequestLogID,
|
|
638
|
-
method: options.method,
|
|
639
|
-
url,
|
|
640
|
-
options,
|
|
641
|
-
headers: req.headers,
|
|
642
|
-
}),
|
|
643
|
-
);
|
|
644
|
-
|
|
645
1137
|
if (options.signal?.aborted) {
|
|
646
1138
|
throw new Errors.APIUserAbortError();
|
|
647
1139
|
}
|
|
648
1140
|
|
|
649
1141
|
const controller = new AbortController();
|
|
650
|
-
const response = await this.fetchWithTimeout(url, req, timeout, controller
|
|
1142
|
+
const response = await this.fetchWithTimeout(url, req, timeout, controller, options, {
|
|
1143
|
+
requestLogID,
|
|
1144
|
+
retryOfRequestLogID,
|
|
1145
|
+
}).catch(castToError);
|
|
651
1146
|
const headersTime = Date.now();
|
|
652
1147
|
|
|
653
1148
|
if (response instanceof globalThis.Error) {
|
|
1149
|
+
releaseRequestSignal(controller);
|
|
654
1150
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
655
1151
|
if (options.signal?.aborted) {
|
|
656
1152
|
throw new Errors.APIUserAbortError();
|
|
@@ -662,6 +1158,27 @@ export class BaseAnthropic {
|
|
|
662
1158
|
const isTimeout =
|
|
663
1159
|
isAbortError(response) ||
|
|
664
1160
|
/timed? ?out/i.test(String(response) + ('cause' in response ? String(response.cause) : ''));
|
|
1161
|
+
|
|
1162
|
+
// Errors thrown by middleware (user middleware and the backend adaptation
|
|
1163
|
+
// alike) propagate to the caller as-is — no retries, no APIConnectionError
|
|
1164
|
+
// wrapping — except retryable errors (timeouts/aborts, APIConnectionErrors,
|
|
1165
|
+
// and RetryableErrors, directly or in the `cause` chain), which stay on the
|
|
1166
|
+
// retry path.
|
|
1167
|
+
const hasMiddleware =
|
|
1168
|
+
this.middleware.length > 0 || !!options.middleware?.length || this.backendMiddleware().length > 0;
|
|
1169
|
+
if (hasMiddleware && !isTimeout && !isRetryableError(response)) {
|
|
1170
|
+
loggerFor(this).info(`[${requestLogID}] middleware error (not retryable)`);
|
|
1171
|
+
loggerFor(this).debug(
|
|
1172
|
+
`[${requestLogID}] middleware error (not retryable)`,
|
|
1173
|
+
formatRequestDetails({
|
|
1174
|
+
retryOfRequestLogID,
|
|
1175
|
+
url,
|
|
1176
|
+
durationMs: headersTime - startTime,
|
|
1177
|
+
message: response.message,
|
|
1178
|
+
}),
|
|
1179
|
+
);
|
|
1180
|
+
throw response;
|
|
1181
|
+
}
|
|
665
1182
|
if (retriesRemaining) {
|
|
666
1183
|
loggerFor(this).info(
|
|
667
1184
|
`[${requestLogID}] connection ${isTimeout ? 'timed out' : 'failed'} - ${retryMessage}`,
|
|
@@ -692,11 +1209,16 @@ export class BaseAnthropic {
|
|
|
692
1209
|
if (isTimeout) {
|
|
693
1210
|
throw new Errors.APIConnectionTimeoutError();
|
|
694
1211
|
}
|
|
1212
|
+
// a retryable middleware-origin error is still the caller's error: once retries are
|
|
1213
|
+
// exhausted it propagates as-is rather than wrapped in APIConnectionError
|
|
1214
|
+
if (hasMiddleware && !isFetchOriginError(response)) {
|
|
1215
|
+
throw response;
|
|
1216
|
+
}
|
|
695
1217
|
throw new Errors.APIConnectionError({ cause: response });
|
|
696
1218
|
}
|
|
697
1219
|
|
|
698
1220
|
const specialHeaders = [...response.headers.entries()]
|
|
699
|
-
.filter(([name]) => name === 'request-id')
|
|
1221
|
+
.filter(([name]) => name === 'request-id' || name === 'anthropic-workspace-id')
|
|
700
1222
|
.map(([name, value]) => ', ' + name + ': ' + JSON.stringify(value))
|
|
701
1223
|
.join('');
|
|
702
1224
|
const responseInfo = `[${requestLogID}${retryLogStr}${specialHeaders}] ${req.method} ${url} ${
|
|
@@ -704,12 +1226,13 @@ export class BaseAnthropic {
|
|
|
704
1226
|
} with status ${response.status} in ${headersTime - startTime}ms`;
|
|
705
1227
|
|
|
706
1228
|
if (!response.ok) {
|
|
707
|
-
const shouldRetry = await this.shouldRetry(response);
|
|
1229
|
+
const shouldRetry = await this.shouldRetry(response, options);
|
|
708
1230
|
if (retriesRemaining && shouldRetry) {
|
|
709
1231
|
const retryMessage = `retrying, ${retriesRemaining} attempts remaining`;
|
|
710
1232
|
|
|
711
1233
|
// We don't need the body of this response.
|
|
712
1234
|
await Shims.CancelReadableStream(response.body);
|
|
1235
|
+
releaseRequestSignal(controller);
|
|
713
1236
|
loggerFor(this).info(`${responseInfo} - ${retryMessage}`);
|
|
714
1237
|
loggerFor(this).debug(
|
|
715
1238
|
`[${requestLogID}] response error (${retryMessage})`,
|
|
@@ -749,6 +1272,7 @@ export class BaseAnthropic {
|
|
|
749
1272
|
}),
|
|
750
1273
|
);
|
|
751
1274
|
|
|
1275
|
+
releaseRequestSignal(controller);
|
|
752
1276
|
const err = this.makeStatusError(response.status, errJSON, errMessage, response.headers);
|
|
753
1277
|
throw err;
|
|
754
1278
|
}
|
|
@@ -765,6 +1289,7 @@ export class BaseAnthropic {
|
|
|
765
1289
|
}),
|
|
766
1290
|
);
|
|
767
1291
|
|
|
1292
|
+
armAbandonmentBackstop(response.body ?? response, controller);
|
|
768
1293
|
return { response, options, controller, requestLogID, retryOfRequestLogID, startTime };
|
|
769
1294
|
}
|
|
770
1295
|
|
|
@@ -797,6 +1322,8 @@ export class BaseAnthropic {
|
|
|
797
1322
|
init: RequestInit | undefined,
|
|
798
1323
|
ms: number,
|
|
799
1324
|
controller: AbortController,
|
|
1325
|
+
requestOptions?: FinalRequestOptions | undefined,
|
|
1326
|
+
logCtx?: { requestLogID: string; retryOfRequestLogID?: string | undefined } | undefined,
|
|
800
1327
|
): Promise<Response> {
|
|
801
1328
|
const { signal, method, ...options } = init || {};
|
|
802
1329
|
// Avoid creating a closure over `this`, `init`, or `options` to prevent memory leaks.
|
|
@@ -806,9 +1333,10 @@ export class BaseAnthropic {
|
|
|
806
1333
|
// the lifetime of the signal. Using `.bind()` only retains a reference to the
|
|
807
1334
|
// controller itself.
|
|
808
1335
|
const abort = this._makeAbort(controller);
|
|
809
|
-
if (signal)
|
|
810
|
-
|
|
811
|
-
|
|
1336
|
+
if (signal) {
|
|
1337
|
+
signal.addEventListener('abort', abort, { once: true });
|
|
1338
|
+
registerRequestSignalCleanup(controller, signal, abort);
|
|
1339
|
+
}
|
|
812
1340
|
|
|
813
1341
|
const isReadableBody =
|
|
814
1342
|
((globalThis as any).ReadableStream && options.body instanceof (globalThis as any).ReadableStream) ||
|
|
@@ -826,15 +1354,81 @@ export class BaseAnthropic {
|
|
|
826
1354
|
fetchOptions.method = method.toUpperCase();
|
|
827
1355
|
}
|
|
828
1356
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
1357
|
+
// Arm the timeout around the underlying fetch only, not the middleware
|
|
1358
|
+
// chain — middleware can take arbitrarily long (or call `next` more than
|
|
1359
|
+
// once), and each inner-fetch invocation gets its own `ms` timer.
|
|
1360
|
+
const baseFetch = this.fetch;
|
|
1361
|
+
const timedFetch: Fetch = async (innerUrl, innerInit) => {
|
|
1362
|
+
const timeout = setTimeout(abort, ms);
|
|
1363
|
+
try {
|
|
1364
|
+
return await baseFetch.call(undefined, innerUrl, innerInit);
|
|
1365
|
+
} finally {
|
|
1366
|
+
clearTimeout(timeout);
|
|
1367
|
+
}
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
// Prepare the request (auth signing and other `prepareRequest` hooks) as
|
|
1371
|
+
// the innermost step, after any middleware — including the backend
|
|
1372
|
+
// middleware, so it sees exactly what goes over the wire. Runs per
|
|
1373
|
+
// inner-fetch invocation, so a request middleware rewrote — or replayed
|
|
1374
|
+
// via a second `next()` call — is prepared fresh each time. Preparation is
|
|
1375
|
+
// outside the timeout timer, matching its pre-middleware behavior.
|
|
1376
|
+
const innerFetch: Fetch =
|
|
1377
|
+
requestOptions === undefined ? timedFetch : (
|
|
1378
|
+
async (innerUrl, innerInit = {}) => {
|
|
1379
|
+
const innerUrlStr =
|
|
1380
|
+
typeof innerUrl === 'string' ? innerUrl
|
|
1381
|
+
: innerUrl instanceof URL ? innerUrl.href
|
|
1382
|
+
: innerUrl.url;
|
|
1383
|
+
innerInit.headers =
|
|
1384
|
+
innerInit.headers instanceof Headers ? innerInit.headers : new Headers(innerInit.headers);
|
|
1385
|
+
|
|
1386
|
+
await this.prepareRequest(innerInit, { url: innerUrlStr, options: requestOptions });
|
|
1387
|
+
|
|
1388
|
+
if (logCtx) {
|
|
1389
|
+
loggerFor(this).debug(
|
|
1390
|
+
`[${logCtx.requestLogID}] sending request`,
|
|
1391
|
+
formatRequestDetails({
|
|
1392
|
+
retryOfRequestLogID: logCtx.retryOfRequestLogID,
|
|
1393
|
+
method: innerInit.method,
|
|
1394
|
+
url: innerUrlStr,
|
|
1395
|
+
options: requestOptions,
|
|
1396
|
+
headers: innerInit.headers,
|
|
1397
|
+
}),
|
|
1398
|
+
);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
return timedFetch(innerUrl, innerInit);
|
|
1402
|
+
}
|
|
1403
|
+
);
|
|
1404
|
+
|
|
1405
|
+
const requestMiddleware = requestOptions?.middleware;
|
|
1406
|
+
const backendMiddleware = this.backendMiddleware();
|
|
1407
|
+
const allMiddleware =
|
|
1408
|
+
requestMiddleware?.length || backendMiddleware.length ?
|
|
1409
|
+
[...this.middleware, ...(requestMiddleware ?? []), ...backendMiddleware]
|
|
1410
|
+
: this.middleware;
|
|
1411
|
+
return await wrapFetchWithMiddleware(innerFetch, allMiddleware, requestOptions, this)(url, fetchOptions);
|
|
835
1412
|
}
|
|
836
1413
|
|
|
837
|
-
private async shouldRetry(response: Response): Promise<boolean> {
|
|
1414
|
+
private async shouldRetry(response: Response, options: FinalRequestOptions): Promise<boolean> {
|
|
1415
|
+
// Reactive refresh: on a 401 from a request that used the token cache,
|
|
1416
|
+
// invalidate and retry once. Only fires when this specific request was
|
|
1417
|
+
// bearer-authenticated (not when an apiKey was used) and only once per
|
|
1418
|
+
// request — a second 401 after refresh falls through to the normal
|
|
1419
|
+
// retry policy below (which treats 4xx as non-retryable).
|
|
1420
|
+
const flags = this._authFlags(options);
|
|
1421
|
+
if (
|
|
1422
|
+
response.status === 401 &&
|
|
1423
|
+
this._authState.tokenCache &&
|
|
1424
|
+
flags.usedTokenCache &&
|
|
1425
|
+
!flags.didRefreshFor401
|
|
1426
|
+
) {
|
|
1427
|
+
flags.didRefreshFor401 = true;
|
|
1428
|
+
this._authState.tokenCache.invalidate();
|
|
1429
|
+
return true;
|
|
1430
|
+
}
|
|
1431
|
+
|
|
838
1432
|
// Note this is not a standard header.
|
|
839
1433
|
const shouldRetryHeader = response.headers.get('x-should-retry');
|
|
840
1434
|
|
|
@@ -932,6 +1526,17 @@ export class BaseAnthropic {
|
|
|
932
1526
|
const options = { ...inputOptions };
|
|
933
1527
|
const { method, path, query, defaultBaseURL } = options;
|
|
934
1528
|
|
|
1529
|
+
// Lazy credential resolution may carry a profile-supplied baseURL. Await
|
|
1530
|
+
// it before building the request URL so the very first request — and
|
|
1531
|
+
// requests on withOptions() clones created before resolution settled —
|
|
1532
|
+
// hit the profile's host rather than the hardcoded default.
|
|
1533
|
+
if (this._authState.resolution) {
|
|
1534
|
+
await this._authState.resolution;
|
|
1535
|
+
}
|
|
1536
|
+
if (!this._baseURLIsExplicit && this._authState.baseURL && this.baseURL !== this._authState.baseURL) {
|
|
1537
|
+
this.baseURL = this._authState.baseURL;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
935
1540
|
const url = this.buildURL(path!, query as Record<string, unknown>, defaultBaseURL);
|
|
936
1541
|
if ('timeout' in options) validatePositiveInteger('timeout', options.timeout);
|
|
937
1542
|
options.timeout = options.timeout ?? this.timeout;
|
|
@@ -1073,16 +1678,21 @@ export class Anthropic extends BaseAnthropic {
|
|
|
1073
1678
|
completions: API.Completions = new API.Completions(this);
|
|
1074
1679
|
messages: API.Messages = new API.Messages(this);
|
|
1075
1680
|
models: API.Models = new API.Models(this);
|
|
1681
|
+
files: API.Files = new API.Files(this);
|
|
1682
|
+
skills: API.Skills = new API.Skills(this);
|
|
1076
1683
|
beta: API.Beta = new API.Beta(this);
|
|
1077
1684
|
}
|
|
1078
1685
|
|
|
1079
1686
|
Anthropic.Completions = Completions;
|
|
1080
1687
|
Anthropic.Messages = Messages;
|
|
1081
1688
|
Anthropic.Models = Models;
|
|
1689
|
+
Anthropic.Files = Files;
|
|
1690
|
+
Anthropic.Skills = Skills;
|
|
1082
1691
|
Anthropic.Beta = Beta;
|
|
1083
1692
|
|
|
1084
1693
|
export declare namespace Anthropic {
|
|
1085
1694
|
export type RequestOptions = Opts.RequestOptions;
|
|
1695
|
+
export type FinalRequestOptions = Opts.FinalRequestOptions;
|
|
1086
1696
|
|
|
1087
1697
|
export type { ApiKeySetter };
|
|
1088
1698
|
|
|
@@ -1095,6 +1705,12 @@ export declare namespace Anthropic {
|
|
|
1095
1705
|
export import PageCursor = Pagination.PageCursor;
|
|
1096
1706
|
export { type PageCursorParams as PageCursorParams, type PageCursorResponse as PageCursorResponse };
|
|
1097
1707
|
|
|
1708
|
+
export import BidirectionalPageCursor = Pagination.BidirectionalPageCursor;
|
|
1709
|
+
export {
|
|
1710
|
+
type BidirectionalPageCursorParams as BidirectionalPageCursorParams,
|
|
1711
|
+
type BidirectionalPageCursorResponse as BidirectionalPageCursorResponse,
|
|
1712
|
+
};
|
|
1713
|
+
|
|
1098
1714
|
export {
|
|
1099
1715
|
Completions as Completions,
|
|
1100
1716
|
type Completion as Completion,
|
|
@@ -1116,6 +1732,46 @@ export declare namespace Anthropic {
|
|
|
1116
1732
|
type BashCodeExecutionToolResultError as BashCodeExecutionToolResultError,
|
|
1117
1733
|
type BashCodeExecutionToolResultErrorCode as BashCodeExecutionToolResultErrorCode,
|
|
1118
1734
|
type BashCodeExecutionToolResultErrorParam as BashCodeExecutionToolResultErrorParam,
|
|
1735
|
+
type BrowserCloseTabConfig as BrowserCloseTabConfig,
|
|
1736
|
+
type BrowserDoubleClickConfig as BrowserDoubleClickConfig,
|
|
1737
|
+
type BrowserFileUploadConfig as BrowserFileUploadConfig,
|
|
1738
|
+
type BrowserFindConfig as BrowserFindConfig,
|
|
1739
|
+
type BrowserFormInputConfig as BrowserFormInputConfig,
|
|
1740
|
+
type BrowserGetPageTextConfig as BrowserGetPageTextConfig,
|
|
1741
|
+
type BrowserHoldKeyConfig as BrowserHoldKeyConfig,
|
|
1742
|
+
type BrowserHoverConfig as BrowserHoverConfig,
|
|
1743
|
+
type BrowserJavascriptExecConfig as BrowserJavascriptExecConfig,
|
|
1744
|
+
type BrowserKeyConfig as BrowserKeyConfig,
|
|
1745
|
+
type BrowserLeftClickConfig as BrowserLeftClickConfig,
|
|
1746
|
+
type BrowserLeftClickDragConfig as BrowserLeftClickDragConfig,
|
|
1747
|
+
type BrowserLeftMouseDownConfig as BrowserLeftMouseDownConfig,
|
|
1748
|
+
type BrowserLeftMouseUpConfig as BrowserLeftMouseUpConfig,
|
|
1749
|
+
type BrowserListTabsConfig as BrowserListTabsConfig,
|
|
1750
|
+
type BrowserMiddleClickConfig as BrowserMiddleClickConfig,
|
|
1751
|
+
type BrowserMouseMoveConfig as BrowserMouseMoveConfig,
|
|
1752
|
+
type BrowserNavigateConfig as BrowserNavigateConfig,
|
|
1753
|
+
type BrowserNewTabConfig as BrowserNewTabConfig,
|
|
1754
|
+
type BrowserReadConsoleConfig as BrowserReadConsoleConfig,
|
|
1755
|
+
type BrowserReadNetworkConfig as BrowserReadNetworkConfig,
|
|
1756
|
+
type BrowserReadPageConfig as BrowserReadPageConfig,
|
|
1757
|
+
type BrowserRightClickConfig as BrowserRightClickConfig,
|
|
1758
|
+
type BrowserScreenshotConfig as BrowserScreenshotConfig,
|
|
1759
|
+
type BrowserScrollConfig as BrowserScrollConfig,
|
|
1760
|
+
type BrowserScrollToConfig as BrowserScrollToConfig,
|
|
1761
|
+
type BrowserStateBlockParam as BrowserStateBlockParam,
|
|
1762
|
+
type BrowserStateChange as BrowserStateChange,
|
|
1763
|
+
type BrowserStateChangeDownloadCompleted as BrowserStateChangeDownloadCompleted,
|
|
1764
|
+
type BrowserStateChangeDownloadFailed as BrowserStateChangeDownloadFailed,
|
|
1765
|
+
type BrowserStateChangeDownloadStarted as BrowserStateChangeDownloadStarted,
|
|
1766
|
+
type BrowserStateChangeTabOpened as BrowserStateChangeTabOpened,
|
|
1767
|
+
type BrowserStateTabEntry as BrowserStateTabEntry,
|
|
1768
|
+
type BrowserSwitchTabConfig as BrowserSwitchTabConfig,
|
|
1769
|
+
type BrowserToolset20260801 as BrowserToolset20260801,
|
|
1770
|
+
type BrowserToolsetConfigs as BrowserToolsetConfigs,
|
|
1771
|
+
type BrowserTripleClickConfig as BrowserTripleClickConfig,
|
|
1772
|
+
type BrowserTypeConfig as BrowserTypeConfig,
|
|
1773
|
+
type BrowserWaitConfig as BrowserWaitConfig,
|
|
1774
|
+
type BrowserZoomConfig as BrowserZoomConfig,
|
|
1119
1775
|
type CacheControlEphemeral as CacheControlEphemeral,
|
|
1120
1776
|
type CacheCreation as CacheCreation,
|
|
1121
1777
|
type CitationCharLocation as CitationCharLocation,
|
|
@@ -1138,6 +1794,7 @@ export declare namespace Anthropic {
|
|
|
1138
1794
|
type CodeExecutionTool20250522 as CodeExecutionTool20250522,
|
|
1139
1795
|
type CodeExecutionTool20250825 as CodeExecutionTool20250825,
|
|
1140
1796
|
type CodeExecutionTool20260120 as CodeExecutionTool20260120,
|
|
1797
|
+
type CodeExecutionTool20260521 as CodeExecutionTool20260521,
|
|
1141
1798
|
type CodeExecutionToolResultBlock as CodeExecutionToolResultBlock,
|
|
1142
1799
|
type CodeExecutionToolResultBlockContent as CodeExecutionToolResultBlockContent,
|
|
1143
1800
|
type CodeExecutionToolResultBlockParam as CodeExecutionToolResultBlockParam,
|
|
@@ -1145,7 +1802,28 @@ export declare namespace Anthropic {
|
|
|
1145
1802
|
type CodeExecutionToolResultError as CodeExecutionToolResultError,
|
|
1146
1803
|
type CodeExecutionToolResultErrorCode as CodeExecutionToolResultErrorCode,
|
|
1147
1804
|
type CodeExecutionToolResultErrorParam as CodeExecutionToolResultErrorParam,
|
|
1805
|
+
type ComputerCursorPositionConfig as ComputerCursorPositionConfig,
|
|
1806
|
+
type ComputerDoubleClickConfig as ComputerDoubleClickConfig,
|
|
1807
|
+
type ComputerHoldKeyConfig as ComputerHoldKeyConfig,
|
|
1808
|
+
type ComputerKeyConfig as ComputerKeyConfig,
|
|
1809
|
+
type ComputerLeftClickConfig as ComputerLeftClickConfig,
|
|
1810
|
+
type ComputerLeftClickDragConfig as ComputerLeftClickDragConfig,
|
|
1811
|
+
type ComputerLeftMouseDownConfig as ComputerLeftMouseDownConfig,
|
|
1812
|
+
type ComputerLeftMouseUpConfig as ComputerLeftMouseUpConfig,
|
|
1813
|
+
type ComputerMiddleClickConfig as ComputerMiddleClickConfig,
|
|
1814
|
+
type ComputerMouseMoveConfig as ComputerMouseMoveConfig,
|
|
1815
|
+
type ComputerRightClickConfig as ComputerRightClickConfig,
|
|
1816
|
+
type ComputerScreenshotConfig as ComputerScreenshotConfig,
|
|
1817
|
+
type ComputerScrollConfig as ComputerScrollConfig,
|
|
1818
|
+
type ComputerToolset20260801 as ComputerToolset20260801,
|
|
1819
|
+
type ComputerToolsetConfigs as ComputerToolsetConfigs,
|
|
1820
|
+
type ComputerTripleClickConfig as ComputerTripleClickConfig,
|
|
1821
|
+
type ComputerTypeConfig as ComputerTypeConfig,
|
|
1822
|
+
type ComputerWaitConfig as ComputerWaitConfig,
|
|
1823
|
+
type ComputerZoomConfig as ComputerZoomConfig,
|
|
1148
1824
|
type Container as Container,
|
|
1825
|
+
type ContainerParams as ContainerParams,
|
|
1826
|
+
type ContainerSkill as ContainerSkill,
|
|
1149
1827
|
type ContainerUploadBlock as ContainerUploadBlock,
|
|
1150
1828
|
type ContainerUploadBlockParam as ContainerUploadBlockParam,
|
|
1151
1829
|
type ContentBlock as ContentBlock,
|
|
@@ -1160,12 +1838,16 @@ export declare namespace Anthropic {
|
|
|
1160
1838
|
type DocumentBlockParam as DocumentBlockParam,
|
|
1161
1839
|
type EncryptedCodeExecutionResultBlock as EncryptedCodeExecutionResultBlock,
|
|
1162
1840
|
type EncryptedCodeExecutionResultBlockParam as EncryptedCodeExecutionResultBlockParam,
|
|
1841
|
+
type FileDocumentSource as FileDocumentSource,
|
|
1842
|
+
type FileImageSource as FileImageSource,
|
|
1163
1843
|
type ImageBlockParam as ImageBlockParam,
|
|
1844
|
+
type ImageTransformationsParam as ImageTransformationsParam,
|
|
1164
1845
|
type InputJSONDelta as InputJSONDelta,
|
|
1165
1846
|
type JSONOutputFormat as JSONOutputFormat,
|
|
1166
1847
|
type MemoryTool20250818 as MemoryTool20250818,
|
|
1167
1848
|
type Message as Message,
|
|
1168
1849
|
type MessageCountTokensTool as MessageCountTokensTool,
|
|
1850
|
+
type MessageCreateParamsContainer as MessageCreateParamsContainer,
|
|
1169
1851
|
type MessageDeltaEvent as MessageDeltaEvent,
|
|
1170
1852
|
type MessageDeltaUsage as MessageDeltaUsage,
|
|
1171
1853
|
type MessageParam as MessageParam,
|
|
@@ -1176,6 +1858,7 @@ export declare namespace Anthropic {
|
|
|
1176
1858
|
type Metadata as Metadata,
|
|
1177
1859
|
type Model as Model,
|
|
1178
1860
|
type OutputConfig as OutputConfig,
|
|
1861
|
+
type OutputTokensDetails as OutputTokensDetails,
|
|
1179
1862
|
type PlainTextSource as PlainTextSource,
|
|
1180
1863
|
type RawContentBlockDelta as RawContentBlockDelta,
|
|
1181
1864
|
type RawContentBlockDeltaEvent as RawContentBlockDeltaEvent,
|
|
@@ -1195,6 +1878,7 @@ export declare namespace Anthropic {
|
|
|
1195
1878
|
type ServerToolUseBlock as ServerToolUseBlock,
|
|
1196
1879
|
type ServerToolUseBlockParam as ServerToolUseBlockParam,
|
|
1197
1880
|
type SignatureDelta as SignatureDelta,
|
|
1881
|
+
type SkillParams as SkillParams,
|
|
1198
1882
|
type StopReason as StopReason,
|
|
1199
1883
|
type TextBlock as TextBlock,
|
|
1200
1884
|
type TextBlockParam as TextBlockParam,
|
|
@@ -1253,6 +1937,7 @@ export declare namespace Anthropic {
|
|
|
1253
1937
|
type WebFetchTool20250910 as WebFetchTool20250910,
|
|
1254
1938
|
type WebFetchTool20260209 as WebFetchTool20260209,
|
|
1255
1939
|
type WebFetchTool20260309 as WebFetchTool20260309,
|
|
1940
|
+
type WebFetchTool20260318 as WebFetchTool20260318,
|
|
1256
1941
|
type WebFetchToolResultBlock as WebFetchToolResultBlock,
|
|
1257
1942
|
type WebFetchToolResultBlockParam as WebFetchToolResultBlockParam,
|
|
1258
1943
|
type WebFetchToolResultErrorBlock as WebFetchToolResultErrorBlock,
|
|
@@ -1262,6 +1947,7 @@ export declare namespace Anthropic {
|
|
|
1262
1947
|
type WebSearchResultBlockParam as WebSearchResultBlockParam,
|
|
1263
1948
|
type WebSearchTool20250305 as WebSearchTool20250305,
|
|
1264
1949
|
type WebSearchTool20260209 as WebSearchTool20260209,
|
|
1950
|
+
type WebSearchTool20260318 as WebSearchTool20260318,
|
|
1265
1951
|
type WebSearchToolRequestError as WebSearchToolRequestError,
|
|
1266
1952
|
type WebSearchToolResultBlock as WebSearchToolResultBlock,
|
|
1267
1953
|
type WebSearchToolResultBlockContent as WebSearchToolResultBlockContent,
|
|
@@ -1290,16 +1976,37 @@ export declare namespace Anthropic {
|
|
|
1290
1976
|
type ModelListParams as ModelListParams,
|
|
1291
1977
|
};
|
|
1292
1978
|
|
|
1979
|
+
export {
|
|
1980
|
+
Files as Files,
|
|
1981
|
+
type DeletedFile as DeletedFile,
|
|
1982
|
+
type FileMetadata as FileMetadata,
|
|
1983
|
+
type FileMetadataPageCursor as FileMetadataPageCursor,
|
|
1984
|
+
type FileListParams as FileListParams,
|
|
1985
|
+
type FileUploadParams as FileUploadParams,
|
|
1986
|
+
};
|
|
1987
|
+
|
|
1988
|
+
export {
|
|
1989
|
+
Skills as Skills,
|
|
1990
|
+
type DeletedSkill as DeletedSkill,
|
|
1991
|
+
type Skill as Skill,
|
|
1992
|
+
type SkillSource as SkillSource,
|
|
1993
|
+
type SkillsPageCursor as SkillsPageCursor,
|
|
1994
|
+
type SkillCreateParams as SkillCreateParams,
|
|
1995
|
+
type SkillListParams as SkillListParams,
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1293
1998
|
export {
|
|
1294
1999
|
Beta as Beta,
|
|
1295
2000
|
type AnthropicBeta as AnthropicBeta,
|
|
1296
2001
|
type BetaAPIError as BetaAPIError,
|
|
1297
2002
|
type BetaAuthenticationError as BetaAuthenticationError,
|
|
1298
2003
|
type BetaBillingError as BetaBillingError,
|
|
2004
|
+
type BetaCurrency as BetaCurrency,
|
|
1299
2005
|
type BetaError as BetaError,
|
|
1300
2006
|
type BetaErrorResponse as BetaErrorResponse,
|
|
1301
2007
|
type BetaGatewayTimeoutError as BetaGatewayTimeoutError,
|
|
1302
2008
|
type BetaInvalidRequestError as BetaInvalidRequestError,
|
|
2009
|
+
type BetaMonetaryAmount as BetaMonetaryAmount,
|
|
1303
2010
|
type BetaNotFoundError as BetaNotFoundError,
|
|
1304
2011
|
type BetaOverloadedError as BetaOverloadedError,
|
|
1305
2012
|
type BetaPermissionError as BetaPermissionError,
|