maka-agent 0.2.0-dev.62.20260928 → 0.2.0-dev.64.20260929
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/LICENSE +15 -15
- package/THIRD_PARTY_NOTICES.txt +26 -26
- package/native/runtime-host-windows-task-launcher/prebuilds/win32-x64/maka-runtime-host-task-launcher.exe +0 -0
- package/node_modules/@agentclientprotocol/sdk/dist/examples/dual-version-agent.js +12 -12
- package/node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js +52 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/acp.js +5 -4
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/guards.gen.js +7 -0
- package/node_modules/@agentclientprotocol/sdk/dist/v2/schema/zod.gen.js +51 -8
- package/node_modules/@agentclientprotocol/sdk/package.json +2 -2
- package/node_modules/@agentclientprotocol/sdk/schema/schema.json +90 -2
- package/node_modules/@agentclientprotocol/sdk/schema/v2/schema.unstable.json +103 -12
- package/node_modules/@ai-sdk/anthropic/CHANGELOG.md +140 -0
- package/node_modules/@ai-sdk/anthropic/README.md +1 -1
- package/node_modules/@ai-sdk/anthropic/dist/index.js +1622 -868
- package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +1516 -763
- package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +483 -62
- package/node_modules/@ai-sdk/anthropic/package.json +4 -4
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/approval-continuation.js +0 -1
- package/node_modules/@ai-sdk/code-mode/dist/code-mode-tool.js +59 -0
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/errors.js +0 -8
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/interrupt-continuation.js +0 -2
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/tool-prompt.js +43 -15
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/package.json +3 -3
- package/node_modules/@ai-sdk/cohere/CHANGELOG.md +99 -0
- package/node_modules/@ai-sdk/cohere/README.md +1 -1
- package/node_modules/@ai-sdk/cohere/dist/index.js +35 -49
- package/node_modules/@ai-sdk/cohere/docs/25-cohere.mdx +11 -9
- package/node_modules/@ai-sdk/cohere/package.json +4 -4
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/gateway/CHANGELOG.md +183 -0
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/gateway/README.md +1 -1
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/gateway/dist/index.js +587 -245
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/gateway/docs/00-ai-gateway.mdx +235 -30
- package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/gateway/package.json +4 -4
- package/node_modules/@ai-sdk/google/CHANGELOG.md +180 -0
- package/node_modules/@ai-sdk/google/README.md +1 -1
- package/node_modules/@ai-sdk/google/dist/index.js +1147 -1130
- package/node_modules/@ai-sdk/google/dist/internal/index.js +809 -889
- package/node_modules/@ai-sdk/google/docs/15-google.mdx +224 -41
- package/node_modules/@ai-sdk/google/package.json +4 -4
- package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +109 -0
- package/node_modules/@ai-sdk/open-responses/dist/index.js +419 -183
- package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +121 -6
- package/node_modules/@ai-sdk/open-responses/package.json +4 -4
- package/node_modules/@ai-sdk/openai/CHANGELOG.md +147 -0
- package/node_modules/@ai-sdk/openai/README.md +27 -2
- package/node_modules/@ai-sdk/openai/dist/index.js +2445 -1828
- package/node_modules/@ai-sdk/openai/dist/internal/index.js +2170 -2041
- package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +311 -102
- package/node_modules/@ai-sdk/openai/package.json +4 -4
- package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +110 -0
- package/node_modules/@ai-sdk/openai-compatible/dist/index.js +120 -130
- package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +22 -14
- package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +2 -0
- package/node_modules/@ai-sdk/openai-compatible/package.json +4 -4
- package/node_modules/@ai-sdk/{anthropic/node_modules/@ai-sdk/provider → provider}/CHANGELOG.md +47 -0
- package/node_modules/@ai-sdk/{cohere/node_modules/@ai-sdk/provider → provider}/dist/index.js +127 -102
- package/node_modules/@ai-sdk/{anthropic/node_modules/@ai-sdk/provider → provider}/package.json +1 -1
- package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +99 -0
- package/node_modules/@ai-sdk/provider-utils/dist/experimental-evaluation/index.js +1618 -0
- package/node_modules/@ai-sdk/provider-utils/dist/index.js +470 -268
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +3 -1
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/docs/docs/api/Dispatcher.md +1 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client-h2.js +84 -19
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/handler/cache-handler.js +21 -5
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/handler/retry-handler.js +109 -23
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/interceptor/decompress.js +338 -46
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/websocket/connection.js +19 -9
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/@ai-sdk/provider-utils/node_modules/undici/package.json +1 -1
- package/node_modules/@ai-sdk/provider-utils/package.json +7 -2
- package/node_modules/@earendil-works/pi-tui/README.md +8 -2
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +18 -11
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +7 -6
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +23 -22
- package/node_modules/@earendil-works/pi-tui/dist/index.js +2 -0
- package/node_modules/@earendil-works/pi-tui/dist/latex.js +109 -16
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +3 -44
- package/node_modules/@earendil-works/pi-tui/dist/native-platform.js +42 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +2 -20
- package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +25 -6
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +4 -0
- package/node_modules/@earendil-works/pi-tui/native/clipboard.h +170 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/README.md +8 -6
- package/node_modules/@earendil-works/pi-tui/native/darwin/build.sh +12 -5
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/{darwin-modifiers.node → darwin-platform.node} +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/{darwin-modifiers.node → darwin-platform.node} +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/src/darwin-platform.m +93 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/README.md +23 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/build.sh +65 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/prebuilds/linux-arm64/linux-platform-x11.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/prebuilds/linux-x64/linux-platform-x11.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/src/clipboard-worker.h +70 -0
- package/node_modules/@earendil-works/pi-tui/native/linux/src/linux-platform-x11.c +274 -0
- package/node_modules/@earendil-works/pi-tui/native/napi.h +89 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/README.md +16 -7
- package/node_modules/@earendil-works/pi-tui/native/win32/build.mjs +7 -4
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-platform.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-platform.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/src/win32-platform.c +241 -0
- package/node_modules/@earendil-works/pi-tui/package.json +11 -4
- package/node_modules/@larksuiteoapi/node-sdk/README.md +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/README.zh.md +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/es/index.js +33 -1
- package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +33 -1
- package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
- package/node_modules/@maka/acp-executor-plugin/dist/plugin.mjs +17 -0
- package/node_modules/@maka/acp-executor-plugin/package.json +1 -1
- package/node_modules/@maka/core/dist/model-web-search.js +2 -3
- package/node_modules/@maka/core/dist/relative-time.js +19 -20
- package/node_modules/@maka/eval/harbor/egress_filter.py +64 -47
- package/node_modules/@maka/eval/harbor/eval_framework.py +3 -3
- package/node_modules/@maka/eval/harbor/run_trial.py +2 -2
- package/node_modules/@maka/eval/node_modules/undici/README.md +10 -1
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Agent.md +8 -8
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Dispatcher.md +9 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Errors.md +25 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Interceptors.md +4 -3
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/@maka/eval/node_modules/undici/docs/docs/index.md +10 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +11 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +52 -8
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +6 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/pool.js +90 -7
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/proxy-agent.js +16 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/deduplication-handler.js +24 -11
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +5 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +72 -13
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/cache.js +4 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/decompress.js +236 -69
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/@maka/eval/node_modules/undici/lib/web/cookies/util.js +3 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource.js +25 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/body.js +22 -15
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/headers.js +34 -31
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/index.js +46 -25
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +74 -79
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/util.js +7 -7
- package/node_modules/@maka/eval/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/webidl/index.js +2 -14
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/connection.js +33 -12
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/receiver.js +2 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/@maka/eval/node_modules/undici/package.json +1 -1
- package/node_modules/@maka/mcp/package.json +1 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +15 -3
- package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +33 -3
- package/node_modules/@maka/runtime/dist/deepseek-web-search-codec.js +71 -0
- package/node_modules/@maka/runtime/dist/history-compaction.js +11 -4
- package/node_modules/@maka/runtime/dist/model-adapter.js +9 -5
- package/node_modules/@maka/runtime/dist/model-factory.js +4 -0
- package/node_modules/@maka/runtime/dist/plugin-agent-service.js +5 -13
- package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +5 -13
- package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +26 -36
- package/node_modules/@maka/runtime/dist/plugin-data-services.js +9 -26
- package/node_modules/@maka/runtime/dist/plugin-fs-service.js +5 -13
- package/node_modules/@maka/runtime/dist/plugin-goal-service.js +5 -13
- package/node_modules/@maka/runtime/dist/plugin-internals.js +78 -0
- package/node_modules/@maka/runtime/dist/plugin-llm-service.js +5 -13
- package/node_modules/@maka/runtime/dist/plugin-runtime.js +4 -32
- package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +5 -13
- package/node_modules/@maka/runtime/dist/plugin-shell-service.js +5 -13
- package/node_modules/@maka/runtime/dist/plugin-web-service.js +5 -13
- package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +3 -3
- package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +161 -104
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +3 -1
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/docs/docs/api/Dispatcher.md +1 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client-h2.js +84 -19
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/handler/cache-handler.js +21 -5
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/handler/retry-handler.js +109 -23
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/interceptor/decompress.js +338 -46
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/websocket/connection.js +19 -9
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/node_modules/undici/package.json +1 -1
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/package.json +1 -1
- package/node_modules/@maka/runtime/node_modules/undici/README.md +10 -1
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Agent.md +8 -8
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Dispatcher.md +9 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Errors.md +25 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Interceptors.md +4 -3
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/@maka/runtime/node_modules/undici/docs/docs/index.md +10 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +11 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +52 -8
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +6 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/pool.js +90 -7
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/proxy-agent.js +16 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/deduplication-handler.js +24 -11
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +5 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +72 -13
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/cache.js +4 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/decompress.js +236 -69
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/cookies/util.js +3 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource.js +25 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/body.js +22 -15
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/headers.js +34 -31
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/index.js +46 -25
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +74 -79
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/util.js +7 -7
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/webidl/index.js +2 -14
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/connection.js +33 -12
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/receiver.js +2 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/@maka/runtime/node_modules/undici/package.json +1 -1
- package/node_modules/@maka/runtime/package.json +11 -11
- package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +3 -7
- package/node_modules/@maka/runtime-host/dist/candidate-cli.js +7 -7
- package/node_modules/@maka/runtime-host/dist/protocol/turn.js +20 -8
- package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +107 -63
- package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +1 -3
- package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +51 -16
- package/node_modules/@maka/runtime-host/package.json +2 -2
- package/node_modules/@maka/storage/dist/project-catalog.js +13 -20
- package/node_modules/@modelcontextprotocol/client/dist/index-BCtJi0p5.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index-CEk3qkZM.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/dist/index.cjs +375 -60
- package/node_modules/@modelcontextprotocol/client/dist/index.d.cts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.d.mts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/index.mjs +369 -61
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.cjs +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/shimsWorkerd.mjs +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/{src-NAgB4Mp8.cjs → src-D0qEN74R.cjs} +111 -38
- package/node_modules/@modelcontextprotocol/client/dist/{src-D_zzAWoS.mjs → src-DDAAhLnO.mjs} +106 -33
- package/node_modules/@modelcontextprotocol/client/dist/stdio.cjs +8 -2
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.cts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.d.mts.map +1 -1
- package/node_modules/@modelcontextprotocol/client/dist/stdio.mjs +8 -2
- package/node_modules/@modelcontextprotocol/{core/dist/auth-hYtaIUZm.d.cts.map → client/node_modules/@modelcontextprotocol/core/dist/auth--n_Yzytt.d.cts.map} +1 -1
- package/node_modules/@modelcontextprotocol/{core/dist/auth-CfDMXiII.cjs → client/node_modules/@modelcontextprotocol/core/dist/auth-4-zilcqg.cjs} +3 -2
- package/node_modules/@modelcontextprotocol/{core/dist/auth-CUe6YdwF.mjs → client/node_modules/@modelcontextprotocol/core/dist/auth-CGP0BDVq.mjs} +3 -2
- package/node_modules/@modelcontextprotocol/{core/dist/auth-BWdKR39I.d.mts.map → client/node_modules/@modelcontextprotocol/core/dist/auth-YUQV3RRv.d.mts.map} +1 -1
- package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/index.cjs +1 -1
- package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/index.mjs +1 -1
- package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/internal.cjs +1 -1
- package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/internal.mjs +1 -1
- package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/package.json +1 -1
- package/node_modules/@modelcontextprotocol/client/package.json +4 -4
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/package.json +2 -17
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/CHANGELOG.md +311 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/README.md +6 -6
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/dist/index.js +4830 -1974
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/dist/internal/index.js +694 -332
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/00-introduction/index.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-foundations/02-providers-and-models.mdx +5 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-foundations/03-prompts.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-foundations/04-tools.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-foundations/06-provider-options.mdx +11 -11
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/00-choosing-a-provider.mdx +4 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/02-nextjs-app-router.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/03-nextjs-pages-router.mdx +4 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/04-svelte.mdx +7 -7
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/05-nuxt.mdx +8 -8
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/06-nodejs.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/07-expo.mdx +10 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/08-tanstack-start.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/09-coding-agents.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/02-building-agents.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/03-workflows.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/04-loop-control.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/05-configuring-call-options.mdx +4 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/06-memory.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/06-policy-tool-approvals.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/06-tool-approvals.mdx +16 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/07-workflow-agent.mdx +12 -12
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/08-terminal-ui.mdx +14 -10
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/05-generating-text.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +6 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/16-mcp-tools.mdx +31 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/17-mcp-apps.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/18-code-mode.mdx +50 -0
- package/node_modules/ai/docs/03-ai-sdk-core/19-tool-search.mdx +82 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/20-prompt-engineering.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/26-reasoning.mdx +15 -14
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/31-reranking.mdx +12 -10
- package/node_modules/ai/docs/03-ai-sdk-core/32-evaluation.mdx +287 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/35-image-generation.mdx +40 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/36-realtime.mdx +41 -18
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/36-transcription.mdx +1 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/37-speech.mdx +8 -6
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/39-file-uploads.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/40-middleware.mdx +92 -7
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/41-skill-uploads.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/42-batch.mdx +2 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/45-provider-management.mdx +31 -21
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/55-testing.mdx +75 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/60-telemetry.mdx +57 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/65-devtools.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +132 -7
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/index.mdx +6 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/01-overview.mdx +3 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +151 -112
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/03-tools.mdx +47 -22
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/04-skills.mdx +0 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +43 -9
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/07-ui.mdx +33 -30
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +8 -6
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/01-overview.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/02-chatbot.mdx +47 -21
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +46 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +11 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +10 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/05-completion.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/08-object-generation.mdx +4 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/21-error-handling.mdx +28 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/21-transport.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +5 -5
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/06-loading-state.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/02-stopping-streams.mdx +8 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/04-caching.mdx +2 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/11-secure-url-fetching.mdx +47 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +13 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +16 -7
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +5 -5
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/12-generate-speech.mdx +3 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/14-evaluate.mdx +74 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +4 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/20-tool.mdx +7 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/22-dynamic-tool.mdx +7 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-tool-search.mdx +76 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +30 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +12 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +19 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +22 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +17 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/index.mdx +6 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/03-use-object.mdx +4 -1
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +563 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +12 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +9 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +2 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +8 -8
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +4 -4
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-api-call-error.mdx +4 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-evaluation-unsupported-question-type-error.mdx +31 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +4 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +4 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-ui-message-stream-error.mdx +6 -2
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +138 -0
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +13 -9
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/29-migration-guide-4-0.mdx +5 -5
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/37-migration-guide-3-3.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +3 -3
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +1 -1
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +2 -2
- package/node_modules/{@maka/runtime/node_modules/ai → ai}/package.json +13 -13
- package/node_modules/image-dimensions/cli.js +18 -3
- package/node_modules/image-dimensions/index.js +7 -5
- package/node_modules/image-dimensions/package.json +4 -1
- package/node_modules/image-dimensions/readme.md +2 -1
- package/node_modules/image-dimensions/types/avif.js +2 -24
- package/node_modules/image-dimensions/types/heic.js +2 -24
- package/node_modules/image-dimensions/types/jpeg.js +28 -7
- package/node_modules/image-dimensions/types/png.js +13 -2
- package/node_modules/image-dimensions/types/webp.js +20 -36
- package/node_modules/image-dimensions/utilities.js +184 -60
- package/node_modules/ip-address/README.md +145 -135
- package/node_modules/ip-address/dist/common.js +48 -0
- package/node_modules/ip-address/dist/ipv4.js +117 -11
- package/node_modules/ip-address/dist/ipv6.js +162 -48
- package/node_modules/ip-address/dist/v4/constants.js +40 -1
- package/node_modules/ip-address/dist/v6/constants.js +47 -1
- package/node_modules/ip-address/package.json +1 -1
- package/node_modules/marked/README.md +1 -0
- package/node_modules/marked/lib/marked.esm.js +30 -29
- package/node_modules/marked/lib/marked.umd.js +30 -29
- package/node_modules/marked/man/marked.1 +1 -1
- package/node_modules/marked/package.json +11 -11
- package/node_modules/systeminformation/lib/battery.js +32 -11
- package/node_modules/systeminformation/lib/cpu.js +23 -23
- package/node_modules/systeminformation/lib/filesystem.js +14 -8
- package/node_modules/systeminformation/lib/memory.js +3 -5
- package/node_modules/systeminformation/lib/network.js +8 -2
- package/node_modules/systeminformation/lib/osinfo.js +17 -3
- package/node_modules/systeminformation/lib/util.js +7 -0
- package/node_modules/systeminformation/package.json +1 -1
- package/node_modules/undici/README.md +10 -1
- package/node_modules/undici/docs/docs/api/Agent.md +8 -8
- package/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +9 -6
- package/node_modules/undici/docs/docs/api/Dispatcher.md +9 -0
- package/node_modules/undici/docs/docs/api/Errors.md +25 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/undici/docs/docs/api/Interceptors.md +4 -3
- package/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/undici/docs/docs/index.md +10 -1
- package/node_modules/undici/lib/api/readable.js +1 -2
- package/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/undici/lib/dispatcher/client-h1.js +11 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +52 -8
- package/node_modules/undici/lib/dispatcher/client.js +6 -1
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +21 -6
- package/node_modules/undici/lib/dispatcher/pool-base.js +63 -2
- package/node_modules/undici/lib/dispatcher/pool.js +90 -7
- package/node_modules/undici/lib/dispatcher/proxy-agent.js +16 -3
- package/node_modules/undici/lib/handler/deduplication-handler.js +24 -11
- package/node_modules/undici/lib/handler/redirect-handler.js +5 -0
- package/node_modules/undici/lib/handler/retry-handler.js +72 -13
- package/node_modules/undici/lib/interceptor/cache.js +4 -1
- package/node_modules/undici/lib/interceptor/decompress.js +236 -69
- package/node_modules/undici/lib/web/cache/cache.js +17 -8
- package/node_modules/undici/lib/web/cache/cachestorage.js +11 -5
- package/node_modules/undici/lib/web/cookies/index.js +19 -7
- package/node_modules/undici/lib/web/cookies/util.js +3 -1
- package/node_modules/undici/lib/web/eventsource/eventsource.js +25 -1
- package/node_modules/undici/lib/web/fetch/body.js +22 -15
- package/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/node_modules/undici/lib/web/fetch/formdata.js +30 -36
- package/node_modules/undici/lib/web/fetch/headers.js +34 -31
- package/node_modules/undici/lib/web/fetch/index.js +46 -25
- package/node_modules/undici/lib/web/fetch/request.js +74 -79
- package/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/undici/lib/web/fetch/util.js +7 -7
- package/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/undici/lib/web/webidl/index.js +2 -14
- package/node_modules/undici/lib/web/websocket/connection.js +33 -12
- package/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/undici/lib/web/websocket/receiver.js +2 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketerror.js +13 -10
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +19 -4
- package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/undici/package.json +1 -1
- package/package.json +4 -4
- package/node_modules/@ai-sdk/anthropic/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1262
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@ai-sdk/cohere/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1262
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@ai-sdk/google/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1262
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1262
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/LICENSE +0 -13
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@ai-sdk/openai/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1262
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/LICENSE +0 -13
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@ai-sdk/openai-compatible/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1262
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/LICENSE +0 -13
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@ai-sdk/provider-utils/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@earendil-works/pi-tui/native/darwin/src/darwin-modifiers.c +0 -70
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/win32/src/win32-console-mode.c +0 -119
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/LICENSE +0 -13
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/code-mode/dist/code-mode-tool.js +0 -40
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/gateway/LICENSE +0 -13
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1262
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/LICENSE +0 -13
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/README.md +0 -1
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/dist/index.js +0 -426
- package/node_modules/@maka/runtime/node_modules/@ai-sdk/provider/package.json +0 -63
- package/node_modules/@maka/runtime/node_modules/ai/LICENSE +0 -13
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/02-ai-sdk-ui/05-use-realtime.mdx +0 -247
- package/node_modules/@maka/runtime/node_modules/ai/docs/07-reference/05-ai-sdk-errors/index.mdx +0 -43
- package/node_modules/@modelcontextprotocol/client/dist/index-CHhhk6PQ.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/client/dist/index-D4xIIEF6.d.mts.map +0 -1
- /package/node_modules/@ai-sdk/{anthropic/node_modules/@ai-sdk/provider → code-mode}/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/README.md +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/approval.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/continuation-capability.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/direct-tool-call.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/host-interrupt.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/run-code-mode.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/tool-invocation.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/types.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/dist/utils/serialization.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@ai-sdk → @ai-sdk}/code-mode/src/tsconfig.json +0 -0
- /package/node_modules/@ai-sdk/{cohere/node_modules/@ai-sdk/provider → gateway}/LICENSE +0 -0
- /package/node_modules/@ai-sdk/{google/node_modules/@ai-sdk/provider → provider}/LICENSE +0 -0
- /package/node_modules/@ai-sdk/{anthropic/node_modules/@ai-sdk/provider → provider}/README.md +0 -0
- /package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/LICENSE +0 -0
- /package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/README.md +0 -0
- /package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/internal.d.cts.map +0 -0
- /package/node_modules/@modelcontextprotocol/{core → client/node_modules/@modelcontextprotocol/core}/dist/internal.d.mts.map +0 -0
- /package/node_modules/{@ai-sdk/open-responses/node_modules/@ai-sdk/provider → ai}/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-foundations/01-overview.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-foundations/05-streaming.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-foundations/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/01-navigating-the-library.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/02-getting-started/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/01-overview.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/06-subagents.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-agents/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/01-overview.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/10-generating-structured-data.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/17-runtime-and-tool-context.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/25-settings.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/30-embeddings.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/36-translation.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/38-video-generation.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-core/50-error-handling.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/03-ai-sdk-harnesses/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/04-generative-user-interfaces.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/20-streaming-data.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/24-reading-ui-message-streams.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/25-message-metadata.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/50-stream-protocol.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/04-ai-sdk-ui/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/01-overview.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/03-generative-ui-state.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/03-saving-and-restoring-states.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/05-streaming-values.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/08-error-handling.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/09-authentication.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/05-ai-sdk-rsc/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/01-prompt-engineering.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/03-backpressure.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/05-multiple-streamables.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/06-rate-limiting.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/07-rendering-ui-with-language-models.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/08-model-as-router.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/09-multistep-interfaces.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/09-sequential-generations.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/10-vercel-deployment-guide.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/06-advanced/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/05-embed.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/11-stream-transcribe.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/11-stream-translate.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/13-generate-video.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/14-upload-skill.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/15-agent.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/17-create-agent-ui-stream.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/18-create-agent-ui-stream-response.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/18-pipe-agent-ui-stream-to-response.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/22-get-batch-results.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/23-create-mcp-client.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/23-get-realtime-tool-definitions.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/24-mcp-apps.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/24-mcp-stdio-transport.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/25-json-schema.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/26-zod-schema.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/27-valibot-schema.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/28-output.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/29-filter-active-tools.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/30-model-message.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/34-sandbox.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/50-cosine-similarity.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/65-language-model-v2-middleware.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/66-extract-reasoning-middleware.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/67-simulate-streaming-middleware.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/68-default-instructions-middleware.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/68-default-settings-middleware.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/69-add-tool-input-examples-middleware.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/70-extract-json-middleware.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/70-is-step-count.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/71-has-tool-call.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/72-loop-finished.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/75-simulate-readable-stream.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/90-generate-id.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/91-create-id-generator.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/01-ai-sdk-core/92-default-generated-file.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/02-use-completion.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/32-prune-messages.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/42-pipe-ui-message-stream-to-response.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/43-read-ui-message-stream.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/46-infer-ui-tools.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/47-infer-ui-tool.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/48-mcp-app-renderer.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/02-ai-sdk-ui/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/04-create-streamable-value.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/05-read-streamable-value.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/06-get-ai-state.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/07-get-mutable-ai-state.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/08-use-ai-state.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/09-use-actions.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/10-use-ui-state.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/11-use-streamable-value.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/20-render.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/03-ai-sdk-rsc/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/04-ai-sdk-workflow/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-download-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-empty-response-body-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-data-content-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-message-role-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-prompt-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-response-data-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-approval-signature-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-invalid-tool-input-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-json-parse-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-load-api-key-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-load-setting-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-message-conversion-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-content-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-object-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-output-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-speech-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-reference-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-such-tool-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-transcript-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-translation-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-no-video-generated-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-retry-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-too-many-embedding-values-for-call-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-not-found-for-approval-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-call-repair-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-type-validation-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/05-ai-sdk-errors/ai-unsupported-functionality-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/06-ai-sdk-tui/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/07-reference/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/00-versioning.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/23-migration-guide-7-0.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/24-migration-guide-6-0.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/25-migration-guide-5-0-data.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/26-migration-guide-5-0.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/27-migration-guide-4-2.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/28-migration-guide-4-1.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/36-migration-guide-3-4.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/38-migration-guide-3-2.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/39-migration-guide-3-1.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/08-migration-guides/index.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/01-azure-stream-slow.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/03-server-actions-in-client-components.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/04-strange-stream-output.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/05-streamable-ui-errors.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/05-tool-invocation-missing-result.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/06-streaming-not-working-when-deployed.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/06-streaming-not-working-when-proxied.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/06-timeout-on-vercel.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/07-unclosed-streams.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/08-use-chat-failed-to-parse-stream.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/09-client-stream-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/10-use-chat-tools-no-response.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/12-typescript-performance-zod.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/12-use-chat-an-error-occurred.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/14-stream-abort-handling.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/14-tool-calling-with-structured-outputs.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/15-abort-breaks-resumable-streams.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/15-stream-text-not-working.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/16-streaming-status-delay.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/18-ontoolcall-type-narrowing.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/19-unsupported-model-version.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/20-no-object-generated-content-filter.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/21-missing-tool-results-error.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/30-model-is-not-assignable-to-type.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/40-typescript-cannot-find-namespace-jsx.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/50-react-maximum-update-depth-exceeded.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/60-jest-cannot-find-module-ai-rsc.mdx +0 -0
- /package/node_modules/{@maka/runtime/node_modules/ai → ai}/docs/09-troubleshooting/index.mdx +0 -0
|
@@ -64,18 +64,18 @@ You can use the following optional settings to customize the Anthropic provider
|
|
|
64
64
|
## Language Models
|
|
65
65
|
|
|
66
66
|
You can create models that call the [Anthropic Messages API](https://docs.anthropic.com/claude/reference/messages_post) using the provider instance.
|
|
67
|
-
The first argument is the model id, e.g. `claude-
|
|
67
|
+
The first argument is the model id, e.g. `claude-haiku-4-5`.
|
|
68
68
|
Some models have multi-modal capabilities.
|
|
69
69
|
|
|
70
70
|
```ts
|
|
71
|
-
const model = anthropic('claude-
|
|
71
|
+
const model = anthropic('claude-haiku-4-5');
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
You can also use the following aliases for model creation:
|
|
75
75
|
|
|
76
|
-
- `anthropic.languageModel('claude-
|
|
77
|
-
- `anthropic.chat('claude-
|
|
78
|
-
- `anthropic.messages('claude-
|
|
76
|
+
- `anthropic.languageModel('claude-haiku-4-5')` - Creates a language model
|
|
77
|
+
- `anthropic.chat('claude-haiku-4-5')` - Alias for `languageModel`
|
|
78
|
+
- `anthropic.messages('claude-haiku-4-5')` - Alias for `languageModel`
|
|
79
79
|
|
|
80
80
|
You can use Anthropic language models to generate text with the `generateText` function:
|
|
81
81
|
|
|
@@ -84,7 +84,7 @@ import { anthropic } from '@ai-sdk/anthropic';
|
|
|
84
84
|
import { generateText } from 'ai';
|
|
85
85
|
|
|
86
86
|
const { text } = await generateText({
|
|
87
|
-
model: anthropic('claude-
|
|
87
|
+
model: anthropic('claude-haiku-4-5'),
|
|
88
88
|
prompt: 'Write a vegetarian lasagna recipe for 4 people.',
|
|
89
89
|
});
|
|
90
90
|
```
|
|
@@ -179,7 +179,7 @@ import { streamText, tool } from 'ai';
|
|
|
179
179
|
import { z } from 'zod';
|
|
180
180
|
|
|
181
181
|
const result = streamText({
|
|
182
|
-
model: anthropic('claude-sonnet-
|
|
182
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
183
183
|
tools: {
|
|
184
184
|
writeFile: tool({
|
|
185
185
|
description: 'Write content to a file',
|
|
@@ -197,23 +197,44 @@ const result = streamText({
|
|
|
197
197
|
});
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
For `claude-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
For `claude-sonnet-5-5`, `claude-opus-5-5`, and `claude-fable-5-1`, the
|
|
201
|
+
default `"auto"` mode uses native structured outputs through
|
|
202
|
+
`output_config.format`. These models reject forced tool use, so the
|
|
203
|
+
`"jsonTool"` mode cannot be used with them. If you
|
|
204
|
+
request `"jsonTool"` anyway, the provider falls back to `"outputFormat"` and
|
|
205
|
+
emits a warning. Likewise, a `required` or named `toolChoice` is downgraded to
|
|
206
|
+
`auto` with a warning; instruct the model to use the tool in your prompt and
|
|
207
|
+
verify that a tool call was made.
|
|
204
208
|
|
|
205
209
|
### Effort
|
|
206
210
|
|
|
207
|
-
Anthropic introduced an `effort` option with `claude-opus-4-5` that affects thinking, text responses, and function calls. Effort defaults to `high` and you can set it to `medium` or `low` to save tokens and to lower time-to-last-token latency (TTLT). `claude-opus-4-7`, `claude-opus-4-8`, `claude-opus-5`, `claude-fable-5`, `claude-fable-5-1`, and `claude-sonnet-5` additionally support `xhigh` for maximum reasoning effort.
|
|
211
|
+
Anthropic introduced an `effort` option with `claude-opus-4-5` that affects thinking, text responses, and function calls. Effort defaults to `high` and you can set it to `medium` or `low` to save tokens and to lower time-to-last-token latency (TTLT). `claude-opus-4-7`, `claude-opus-4-8`, `claude-opus-5`, `claude-opus-5-5`, `claude-fable-5`, `claude-fable-5-1`, `claude-sonnet-5`, and `claude-sonnet-5-5` additionally support `xhigh` for maximum reasoning effort.
|
|
208
212
|
|
|
209
213
|
On `claude-opus-5`, thinking can only be disabled at effort levels up to and including `high`. When you combine `thinking: { type: 'disabled' }` with `effort: 'xhigh'` or `effort: 'max'`, the AI SDK lowers the effort to `high` and emits a warning instead of sending a request that the API would reject.
|
|
210
214
|
|
|
215
|
+
On `claude-opus-5-5`, thinking is always adaptive and cannot be disabled, so
|
|
216
|
+
`effort` is the main control for latency and cost. The API default effort for
|
|
217
|
+
`claude-opus-5-5` is `medium`. Start there and test other levels rather than
|
|
218
|
+
carrying over the setting you used on `claude-opus-5`. Set `maxOutputTokens`
|
|
219
|
+
with room for thinking as well as the reply; thinking counts toward the limit
|
|
220
|
+
even when its content is not returned.
|
|
221
|
+
|
|
222
|
+
On `claude-sonnet-5-5`, thinking cannot be turned off either, and the API
|
|
223
|
+
default effort is `high`. Its effort levels are not equivalent to those of
|
|
224
|
+
`claude-sonnet-5`, so test several levels rather than carrying over your
|
|
225
|
+
current setting. For agentic coding and other multi-step tool use, start at
|
|
226
|
+
`medium` for well-specified tasks and move to `high` for harder ones. The
|
|
227
|
+
lowest thinking setting, [`between_tools`](#between-tools-thinking), is only
|
|
228
|
+
accepted at `low`, `medium`, and `high` effort. When you combine it with
|
|
229
|
+
`effort: 'xhigh'` or `effort: 'max'`, the AI SDK lowers the effort to `high`
|
|
230
|
+
and emits a warning.
|
|
231
|
+
|
|
211
232
|
```ts highlight="8-10"
|
|
212
233
|
import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
213
234
|
import { generateText } from 'ai';
|
|
214
235
|
|
|
215
236
|
const { text, usage } = await generateText({
|
|
216
|
-
model: anthropic('claude-opus-
|
|
237
|
+
model: anthropic('claude-opus-5-5'),
|
|
217
238
|
prompt: 'How many people will live in the world in 2040?',
|
|
218
239
|
providerOptions: {
|
|
219
240
|
anthropic: {
|
|
@@ -258,7 +279,7 @@ import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
|
258
279
|
import { generateText } from 'ai';
|
|
259
280
|
|
|
260
281
|
const { text } = await generateText({
|
|
261
|
-
model: anthropic('claude-opus-
|
|
282
|
+
model: anthropic('claude-opus-5-5'),
|
|
262
283
|
prompt: 'Research the pros and cons of Rust vs Go for building CLI tools.',
|
|
263
284
|
providerOptions: {
|
|
264
285
|
anthropic: {
|
|
@@ -296,7 +317,7 @@ import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
|
296
317
|
import { generateText } from 'ai';
|
|
297
318
|
|
|
298
319
|
const { text } = await generateText({
|
|
299
|
-
model: anthropic('claude-opus-
|
|
320
|
+
model: anthropic('claude-opus-5-5'),
|
|
300
321
|
prompt: 'Summarize the key points of this document.',
|
|
301
322
|
providerOptions: {
|
|
302
323
|
anthropic: {
|
|
@@ -312,6 +333,8 @@ The `inferenceGeo` option accepts `'us'` (US-only infrastructure) or `'global'`
|
|
|
312
333
|
|
|
313
334
|
Claude Fable 5 has safeguards that limit its performance in certain areas like cybersecurity, biology, and chemistry, and automated safety checks are run on every request.
|
|
314
335
|
|
|
336
|
+
Claude Sonnet 5.5 also has safety classifiers enabled, including for cybersecurity, biology, and reasoning extraction. Requests that ask the model to reproduce its internal reasoning in the response text can be declined with the `reasoning_extraction` category; use `thinking: { type: 'adaptive', display: 'summarized' }` and read the reasoning parts instead.
|
|
337
|
+
|
|
315
338
|
When one of these checks blocks a request, the API does not answer it. Instead it returns a classifier block: a `200` response with a `refusal` stop reason and an optional `stop_details` object describing the category that triggered the block. The AI SDK surfaces this as a `content-filter` finish reason, with the details available on `providerMetadata.anthropic.stopDetails`.
|
|
316
339
|
|
|
317
340
|
A classifier block looks like this:
|
|
@@ -341,7 +364,7 @@ import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
|
341
364
|
import { generateText } from 'ai';
|
|
342
365
|
|
|
343
366
|
const { text } = await generateText({
|
|
344
|
-
model: anthropic('claude-fable-5'),
|
|
367
|
+
model: anthropic('claude-fable-5-1'),
|
|
345
368
|
prompt: 'Explain the history of cryptography.',
|
|
346
369
|
providerOptions: {
|
|
347
370
|
anthropic: {
|
|
@@ -358,11 +381,11 @@ import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
|
358
381
|
import { generateText } from 'ai';
|
|
359
382
|
|
|
360
383
|
const { text } = await generateText({
|
|
361
|
-
model: anthropic('claude-fable-5'),
|
|
384
|
+
model: anthropic('claude-fable-5-1'),
|
|
362
385
|
prompt: 'Explain the history of cryptography.',
|
|
363
386
|
providerOptions: {
|
|
364
387
|
anthropic: {
|
|
365
|
-
fallbacks: [{ model: 'claude-fable-5' }],
|
|
388
|
+
fallbacks: [{ model: 'claude-fable-5-1' }],
|
|
366
389
|
} satisfies AnthropicLanguageModelOptions,
|
|
367
390
|
},
|
|
368
391
|
});
|
|
@@ -385,6 +408,57 @@ const servedByFallback = iterations?.some(
|
|
|
385
408
|
console.log('Served by fallback:', servedByFallback);
|
|
386
409
|
```
|
|
387
410
|
|
|
411
|
+
### Dangerous Tool Use Safeguard
|
|
412
|
+
|
|
413
|
+
The `safeguards` option asks the API to run additional server-side checks as part of the request. The `dangerous_tool_use` safeguard classifies every `tool_use` block in the response for dangerous actions, such as destructive shell commands or data exfiltration, and returns a verdict per tool call. This is the check that Claude Code's auto mode relies on. The `dangerous-tool-use-2026-09-03` beta header is added for you.
|
|
414
|
+
|
|
415
|
+
```ts highlight="9-16"
|
|
416
|
+
import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
417
|
+
import { generateText, tool } from 'ai';
|
|
418
|
+
import { z } from 'zod';
|
|
419
|
+
|
|
420
|
+
const result = await generateText({
|
|
421
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
422
|
+
prompt: 'Use the bash tool to run: echo hello',
|
|
423
|
+
tools: { bash: tool({ inputSchema: z.object({ command: z.string() }) }) },
|
|
424
|
+
providerOptions: {
|
|
425
|
+
anthropic: {
|
|
426
|
+
safeguards: [
|
|
427
|
+
{
|
|
428
|
+
type: 'dangerous_tool_use',
|
|
429
|
+
classifierContext: { v: 1, permission_mode: 'auto' },
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
} satisfies AnthropicLanguageModelOptions,
|
|
433
|
+
},
|
|
434
|
+
});
|
|
435
|
+
|
|
436
|
+
console.log(result.providerMetadata?.anthropic?.safeguardResults);
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
The verdicts are available on `providerMetadata.anthropic.safeguardResults`, one entry per requested safeguard, in the API's wire shape:
|
|
440
|
+
|
|
441
|
+
```json
|
|
442
|
+
[
|
|
443
|
+
{
|
|
444
|
+
"type": "dangerous_tool_use",
|
|
445
|
+
"status": {
|
|
446
|
+
"type": "available",
|
|
447
|
+
"tool_uses": {
|
|
448
|
+
"toolu_01Ti4QpUfhLV6QqCTFVY8C7w": {
|
|
449
|
+
"type": "evaluated",
|
|
450
|
+
"outcome": "not_flagged"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
`status.type` is `available` when the classifier ran; `unsupported` means the API key is not enabled for the beta. Inside `status.tool_uses`, each tool call id maps to `evaluated` (with an `outcome` of `not_flagged` or `flagged`, the latter with an `explanation` such as `[Data Exfiltration]`), `skipped`, or `unavailable` (a transient classifier failure). When streaming, the verdicts arrive on the final `message_delta` event and are exposed on the `finish` part's provider metadata.
|
|
459
|
+
|
|
460
|
+
Anthropic's platform reference does not document the beta yet; the feature is described from the client side in the Claude Code [auto mode classifier](https://code.claude.com/docs/en/auto-mode-classifier-billing) and [gateway compatibility](https://code.claude.com/docs/en/llm-gateway-protocol#feature-pass-through) guides.
|
|
461
|
+
|
|
388
462
|
### Reasoning
|
|
389
463
|
|
|
390
464
|
Anthropic models support extended thinking, where Claude shows its reasoning process before providing a final answer.
|
|
@@ -428,6 +502,83 @@ const { text } = await generateText({
|
|
|
428
502
|
});
|
|
429
503
|
```
|
|
430
504
|
|
|
505
|
+
##### Adaptive-Only Models
|
|
506
|
+
|
|
507
|
+
`claude-sonnet-5-5`, `claude-opus-5-5`, `claude-fable-5`, and
|
|
508
|
+
`claude-fable-5-1` always run adaptive thinking. The API rejects
|
|
509
|
+
`thinking: { type: 'disabled' }` and budget-based
|
|
510
|
+
`thinking: { type: 'enabled' }` for these models. To keep existing code
|
|
511
|
+
working, the provider:
|
|
512
|
+
|
|
513
|
+
- removes `thinking: { type: 'disabled' }` and emits a warning,
|
|
514
|
+
- converts `thinking: { type: 'enabled', budgetTokens }` to `{ type: 'adaptive' }` and emits a warning,
|
|
515
|
+
- maps the top-level `reasoning: 'none'` option to `effort: 'low'` and emits a warning.
|
|
516
|
+
|
|
517
|
+
On `claude-sonnet-5-5`, which supports
|
|
518
|
+
[`between_tools` thinking](#between-tools-thinking), the provider instead
|
|
519
|
+
replaces `thinking: { type: 'disabled' }` with `thinking: { type: 'between_tools' }`
|
|
520
|
+
(with a warning) and maps `reasoning: 'none'` to `between_tools` thinking.
|
|
521
|
+
|
|
522
|
+
Use `effort` to control how much these models think. On `claude-opus-5-5`, set
|
|
523
|
+
`effort: 'low'` when time to first token matters, and move to `medium` if
|
|
524
|
+
quality drops:
|
|
525
|
+
|
|
526
|
+
```ts highlight="6-9"
|
|
527
|
+
const { text } = await generateText({
|
|
528
|
+
model: anthropic('claude-opus-5-5'),
|
|
529
|
+
prompt: 'Summarize this ticket in one sentence.',
|
|
530
|
+
providerOptions: {
|
|
531
|
+
anthropic: {
|
|
532
|
+
// thinking stays adaptive; effort controls how much the model thinks
|
|
533
|
+
effort: 'low',
|
|
534
|
+
} satisfies AnthropicLanguageModelOptions,
|
|
535
|
+
},
|
|
536
|
+
});
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
<Note>
|
|
540
|
+
Responses from adaptive-only models can begin with a thinking block. Read the
|
|
541
|
+
response by content type (`text`, `reasoning`, `tool-call`) rather than
|
|
542
|
+
assuming the first part is text. Under the default `display: 'omitted'`
|
|
543
|
+
setting, thinking blocks are returned with empty text.
|
|
544
|
+
</Note>
|
|
545
|
+
|
|
546
|
+
##### Between-Tools Thinking
|
|
547
|
+
|
|
548
|
+
`claude-sonnet-5-5` supports `thinking: { type: 'between_tools' }`, its lowest
|
|
549
|
+
thinking setting. The model does no upfront thinking, but the short progress
|
|
550
|
+
notes it writes between tool calls are still returned as thinking blocks, each
|
|
551
|
+
with a short summary. They are available as reasoning parts and are sent back
|
|
552
|
+
unchanged on the next step. `between_tools` accepts no other thinking options
|
|
553
|
+
(such as `display` or `blockBinding`) and is only accepted at `low`, `medium`,
|
|
554
|
+
and `high` effort. Per-message effort changes via
|
|
555
|
+
[mid-conversation system messages](#mid-conversation-system-controls) are not
|
|
556
|
+
supported with `between_tools`.
|
|
557
|
+
|
|
558
|
+
```ts highlight="16-17"
|
|
559
|
+
import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
560
|
+
import { generateText, isStepCount, tool } from 'ai';
|
|
561
|
+
import { z } from 'zod';
|
|
562
|
+
|
|
563
|
+
const { text, steps } = await generateText({
|
|
564
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
565
|
+
stopWhen: isStepCount(5),
|
|
566
|
+
tools: {
|
|
567
|
+
weather: tool({
|
|
568
|
+
inputSchema: z.object({ city: z.string() }),
|
|
569
|
+
execute: async ({ city }) => ({ city, temperature: 72 }),
|
|
570
|
+
}),
|
|
571
|
+
},
|
|
572
|
+
providerOptions: {
|
|
573
|
+
anthropic: {
|
|
574
|
+
thinking: { type: 'between_tools' },
|
|
575
|
+
effort: 'low',
|
|
576
|
+
} satisfies AnthropicLanguageModelOptions,
|
|
577
|
+
},
|
|
578
|
+
prompt: 'Compare the weather in San Francisco and New York.',
|
|
579
|
+
});
|
|
580
|
+
```
|
|
581
|
+
|
|
431
582
|
##### Thinking Display (Opus 4.7+)
|
|
432
583
|
|
|
433
584
|
Starting with `claude-opus-4-7`, thinking content is omitted from the response by default — thinking blocks are present in the stream but their text is empty. To receive reasoning output, set `display: 'summarized'`:
|
|
@@ -455,9 +606,11 @@ console.log(text);
|
|
|
455
606
|
|
|
456
607
|
##### Thinking Updates
|
|
457
608
|
|
|
458
|
-
Use `display: 'updates'` with `claude-
|
|
459
|
-
between tool calls.
|
|
460
|
-
|
|
609
|
+
Use `display: 'updates'` with `claude-sonnet-5-5`, `claude-opus-5-5`, or
|
|
610
|
+
`claude-fable-5-1` to stream thinking summaries between tool calls. These models
|
|
611
|
+
return progress notes between tool calls as thinking blocks rather than text, so
|
|
612
|
+
without this setting a long tool-calling turn can look silent. The provider adds
|
|
613
|
+
the required `thinking-display-updates-2026-08-18` beta header automatically:
|
|
461
614
|
|
|
462
615
|
```ts highlight="12-16"
|
|
463
616
|
import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
@@ -482,11 +635,13 @@ const result = streamText({
|
|
|
482
635
|
|
|
483
636
|
##### Thinking Binding Controls
|
|
484
637
|
|
|
485
|
-
Fable 5.1 can recover from a thinking-block prefix
|
|
486
|
-
mismatched block. Set
|
|
487
|
-
set it to `error` to
|
|
488
|
-
|
|
489
|
-
thinking.
|
|
638
|
+
Fable 5.1, Opus 5.5, and Sonnet 5.5 can recover from a thinking-block prefix
|
|
639
|
+
mismatch by dropping the mismatched block. Set
|
|
640
|
+
`blockBinding.prefixMismatchBehavior` to `drop_block`, or set it to `error` to
|
|
641
|
+
reject the request. You can provide block binding by itself to preserve the
|
|
642
|
+
model's default thinking mode, or combine it with adaptive thinking. Block
|
|
643
|
+
binding is not available with `between_tools` thinking; keep the message
|
|
644
|
+
history append-only instead.
|
|
490
645
|
|
|
491
646
|
```ts highlight="7-11"
|
|
492
647
|
const result = await generateText({
|
|
@@ -617,7 +772,89 @@ const result = await generateText({
|
|
|
617
772
|
});
|
|
618
773
|
```
|
|
619
774
|
|
|
620
|
-
#### Compaction
|
|
775
|
+
#### On-Demand Compaction
|
|
776
|
+
|
|
777
|
+
Use the `compaction` provider option to ask Anthropic to summarize the supplied
|
|
778
|
+
conversation immediately. The provider automatically adds the
|
|
779
|
+
`compact-2026-09-04` beta header.
|
|
780
|
+
|
|
781
|
+
```ts highlight="10-15,21-22"
|
|
782
|
+
import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
783
|
+
import { generateText, ModelMessage } from 'ai';
|
|
784
|
+
|
|
785
|
+
const history: ModelMessage[] = [
|
|
786
|
+
{ role: 'user', content: 'Help me design a recipe application.' },
|
|
787
|
+
{ role: 'assistant', content: 'Start with Recipe and Ingredient.' },
|
|
788
|
+
{ role: 'user', content: 'Recipe also needs a title and servings.' },
|
|
789
|
+
];
|
|
790
|
+
|
|
791
|
+
const summary = await generateText({
|
|
792
|
+
model: anthropic('claude-opus-5'),
|
|
793
|
+
messages: history,
|
|
794
|
+
maxOutputTokens: 4096,
|
|
795
|
+
providerOptions: {
|
|
796
|
+
anthropic: {
|
|
797
|
+
compaction: {
|
|
798
|
+
type: 'summarize',
|
|
799
|
+
instructions: 'Preserve all agreed entities and fields.',
|
|
800
|
+
},
|
|
801
|
+
} satisfies AnthropicLanguageModelOptions,
|
|
802
|
+
},
|
|
803
|
+
});
|
|
804
|
+
|
|
805
|
+
if (summary.rawFinishReason === 'compaction') {
|
|
806
|
+
const [compactionMessage] = summary.finalStep.response.messages;
|
|
807
|
+
|
|
808
|
+
const continuation = await generateText({
|
|
809
|
+
model: anthropic('claude-opus-5'),
|
|
810
|
+
messages: [
|
|
811
|
+
compactionMessage,
|
|
812
|
+
{ role: 'user', content: 'Which fields should be required?' },
|
|
813
|
+
],
|
|
814
|
+
});
|
|
815
|
+
|
|
816
|
+
console.log(continuation.text);
|
|
817
|
+
}
|
|
818
|
+
```
|
|
819
|
+
|
|
820
|
+
Anthropic returns the summary as a text part whose
|
|
821
|
+
`providerMetadata.anthropic.type` is `compaction`. Its opaque signature is
|
|
822
|
+
available as `providerMetadata.anthropic.signature`. Response messages copy
|
|
823
|
+
that metadata to `providerOptions`, so passing
|
|
824
|
+
`summary.finalStep.response.messages` back to the AI SDK preserves the signed
|
|
825
|
+
block and automatically adds the beta header on the continuation request.
|
|
826
|
+
|
|
827
|
+
Check `rawFinishReason` before reading the response block. Anthropic can return
|
|
828
|
+
a successful HTTP response without a summary when summarization ends for
|
|
829
|
+
another reason, such as `max_tokens`, `model_context_window_exceeded`,
|
|
830
|
+
`tool_use`, `refusal`, or `end_turn`. In that case, keep the existing history
|
|
831
|
+
and retry later; the unsuccessful summarization is still included in
|
|
832
|
+
`providerMetadata.anthropic.iterations`.
|
|
833
|
+
|
|
834
|
+
Send exactly one signed compaction block on continuation requests. It must be
|
|
835
|
+
the first content block in `messages` and must be replayed without changing its
|
|
836
|
+
text or signature. Remove the messages it summarizes before continuing. Keep
|
|
837
|
+
the same system prompt and tool definitions on the compaction request that you
|
|
838
|
+
use for the conversation, especially when preserving later thinking blocks.
|
|
839
|
+
|
|
840
|
+
Before requesting compaction, resolve any unfinished tool call from the last
|
|
841
|
+
assistant turn. Do not combine `compaction` with `contextManagement`,
|
|
842
|
+
`stopSequences`, structured output, a required or named `toolChoice`, or a
|
|
843
|
+
`taskBudget.remaining` value. Also omit `taskBudget.remaining` from later
|
|
844
|
+
requests that carry the signed block.
|
|
845
|
+
|
|
846
|
+
On-demand compaction usage is reported in
|
|
847
|
+
`providerMetadata.anthropic.iterations`. Sum the iteration usage when
|
|
848
|
+
calculating the tokens consumed by the summarization request.
|
|
849
|
+
|
|
850
|
+
On-demand compaction can also be initiated in a Message Batch. Configure the
|
|
851
|
+
`compaction` provider option on the individual batch request; the provider
|
|
852
|
+
automatically adds `compact-2026-09-04` to the batch beta header.
|
|
853
|
+
|
|
854
|
+
For more details, see
|
|
855
|
+
[Anthropic's on-demand compaction documentation](https://platform.claude.com/docs/en/build-with-claude/compaction-on-demand).
|
|
856
|
+
|
|
857
|
+
#### Threshold Compaction
|
|
621
858
|
|
|
622
859
|
The `compact_20260112` edit type automatically summarizes earlier conversation context when token limits are reached. This is useful for long-running conversations where you want to preserve the essence of earlier exchanges while staying within token limits.
|
|
623
860
|
|
|
@@ -626,7 +863,7 @@ import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
|
626
863
|
import { streamText } from 'ai';
|
|
627
864
|
|
|
628
865
|
const result = streamText({
|
|
629
|
-
model: anthropic('claude-opus-
|
|
866
|
+
model: anthropic('claude-opus-5-5'),
|
|
630
867
|
messages: conversationHistory,
|
|
631
868
|
providerOptions: {
|
|
632
869
|
anthropic: {
|
|
@@ -750,7 +987,7 @@ import { generateText } from 'ai';
|
|
|
750
987
|
const errorMessage = '... long error message ...';
|
|
751
988
|
|
|
752
989
|
const result = await generateText({
|
|
753
|
-
model: anthropic('claude-sonnet-
|
|
990
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
754
991
|
messages: [
|
|
755
992
|
{
|
|
756
993
|
role: 'user',
|
|
@@ -784,7 +1021,7 @@ You can also use cache control on system messages by providing multiple system m
|
|
|
784
1021
|
|
|
785
1022
|
```ts highlight="3,7-9"
|
|
786
1023
|
const result = await generateText({
|
|
787
|
-
model: anthropic('claude-sonnet-
|
|
1024
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
788
1025
|
messages: [
|
|
789
1026
|
{
|
|
790
1027
|
role: 'system',
|
|
@@ -1026,11 +1263,75 @@ const computerTool = anthropic.tools.computer_20251124({
|
|
|
1026
1263
|
```
|
|
1027
1264
|
|
|
1028
1265
|
<Note>
|
|
1029
|
-
Use `
|
|
1030
|
-
|
|
1031
|
-
Opus 4
|
|
1266
|
+
Use `computerToolset_20260801` for Claude Sonnet 5.5 and Opus 5.5 (required),
|
|
1267
|
+
Opus 5, Sonnet 5, Fable 5, Fable 5.1, and Opus 4.8. Use `computer_20251124`
|
|
1268
|
+
for Claude Opus 4.5 through Opus 4.7, which support the zoom action. Use
|
|
1269
|
+
`computer_20250124` for Claude Sonnet 4.5, Haiku 4.5, Opus 4.1, Sonnet 4, Opus
|
|
1270
|
+
4, and Sonnet 3.7.
|
|
1032
1271
|
</Note>
|
|
1033
1272
|
|
|
1273
|
+
#### Computer Toolset
|
|
1274
|
+
|
|
1275
|
+
Newer models use the computer toolset instead of a versioned computer tool.
|
|
1276
|
+
`claude-sonnet-5-5` and `claude-opus-5-5` accept computer use only through the
|
|
1277
|
+
toolset and reject the older `computer_*` tool types with a 400. The toolset
|
|
1278
|
+
does not require a beta header and has no display size parameters: coordinates
|
|
1279
|
+
are always in the pixel space of the screenshots you return. Zoom is enabled by default, and Claude can
|
|
1280
|
+
return several actions in one turn, each as its own tool call.
|
|
1281
|
+
|
|
1282
|
+
The API returns each action as a separate `tool_use` block with
|
|
1283
|
+
`toolset_name: 'computer'`. The AI SDK maps every action to the toolset tool and
|
|
1284
|
+
passes the action name as `action`, so `execute` receives the same input shape
|
|
1285
|
+
as the older computer tools:
|
|
1286
|
+
|
|
1287
|
+
```ts
|
|
1288
|
+
const computerTool = anthropic.tools.computerToolset_20260801({
|
|
1289
|
+
// optional: turn individual actions on or off
|
|
1290
|
+
configs: {
|
|
1291
|
+
zoom: { enabled: false },
|
|
1292
|
+
},
|
|
1293
|
+
|
|
1294
|
+
execute: async ({ action, coordinate, text, region }) => {
|
|
1295
|
+
switch (action) {
|
|
1296
|
+
case 'screenshot': {
|
|
1297
|
+
return {
|
|
1298
|
+
type: 'image',
|
|
1299
|
+
data: fs.readFileSync('./data/screenshot.png').toString('base64'),
|
|
1300
|
+
};
|
|
1301
|
+
}
|
|
1302
|
+
default: {
|
|
1303
|
+
console.log('Action:', action, coordinate, text, region);
|
|
1304
|
+
return `executed ${action}`;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
},
|
|
1308
|
+
|
|
1309
|
+
toModelOutput({ output }) {
|
|
1310
|
+
return typeof output === 'string'
|
|
1311
|
+
? [{ type: 'text', text: output }]
|
|
1312
|
+
: [{ type: 'file-data', data: output.data, mediaType: 'image/png' }];
|
|
1313
|
+
},
|
|
1314
|
+
});
|
|
1315
|
+
```
|
|
1316
|
+
|
|
1317
|
+
Parameters:
|
|
1318
|
+
|
|
1319
|
+
- `action` ('screenshot' | 'zoom' | 'left_click' | 'right_click' | 'middle_click' | 'double_click' | 'triple_click' | 'left_click_drag' | 'mouse_move' | 'left_mouse_down' | 'left_mouse_up' | 'cursor_position' | 'scroll' | 'type' | 'key' | 'hold_key' | 'wait'): The member tool that Claude invoked.
|
|
1320
|
+
- `coordinate` (number[], optional): The (x, y) pixel coordinates for click, move, and scroll actions.
|
|
1321
|
+
- `start_coordinate` (number[], optional): Where a `left_click_drag` starts.
|
|
1322
|
+
- `region` (number[], optional): `[x1, y1, x2, y2]` for the `zoom` action.
|
|
1323
|
+
- `text` (string, optional): Text to type, the key combination for `key` and `hold_key`, or modifier keys to hold during click and scroll actions.
|
|
1324
|
+
- `repeat` (number, optional): How many times to press the key for `key`.
|
|
1325
|
+
- `duration` (number, optional): Seconds for `hold_key` and `wait`.
|
|
1326
|
+
- `scroll_direction` ('up' | 'down' | 'left' | 'right', optional) and `scroll_amount` (number, optional): For the `scroll` action.
|
|
1327
|
+
- `configs` (object, optional): Per-action settings keyed by action name. Each entry accepts `enabled` (default `true`) and `deferLoading` (default `false`, for tool search).
|
|
1328
|
+
|
|
1329
|
+
Tool calls and results of the toolset are serialized with `toolset_name` when
|
|
1330
|
+
you pass the message history back. Keep the toolset tool in `tools` on
|
|
1331
|
+
follow-up requests, or the provider falls back to the `toolsetName` provider
|
|
1332
|
+
metadata on the tool calls of previous responses. Do not declare the toolset
|
|
1333
|
+
together with an older `computer_*` tool.
|
|
1334
|
+
|
|
1034
1335
|
Parameters:
|
|
1035
1336
|
|
|
1036
1337
|
- `action` ('key' | 'type' | 'mouse_move' | 'left_click' | 'left_click_drag' | 'right_click' | 'middle_click' | 'double_click' | 'screenshot' | 'cursor_position' | 'zoom'): The action to perform. The `zoom` action is only available with `computer_20251124`.
|
|
@@ -1052,12 +1353,13 @@ You can enable web search using the provider-defined web search tool:
|
|
|
1052
1353
|
import { anthropic } from '@ai-sdk/anthropic';
|
|
1053
1354
|
import { generateText } from 'ai';
|
|
1054
1355
|
|
|
1055
|
-
const webSearchTool = anthropic.tools.
|
|
1356
|
+
const webSearchTool = anthropic.tools.webSearch_20260318({
|
|
1056
1357
|
maxUses: 5,
|
|
1358
|
+
responseInclusion: 'excluded',
|
|
1057
1359
|
});
|
|
1058
1360
|
|
|
1059
1361
|
const result = await generateText({
|
|
1060
|
-
model: anthropic('claude-opus-
|
|
1362
|
+
model: anthropic('claude-opus-5-5'),
|
|
1061
1363
|
prompt: 'What are the latest developments in AI?',
|
|
1062
1364
|
tools: {
|
|
1063
1365
|
web_search: webSearchTool,
|
|
@@ -1072,6 +1374,10 @@ const result = await generateText({
|
|
|
1072
1374
|
|
|
1073
1375
|
#### Configuration Options
|
|
1074
1376
|
|
|
1377
|
+
Use `webSearch_20260318` for dynamic filtering and response inclusion control.
|
|
1378
|
+
The older `webSearch_20260209` and `webSearch_20250305` versions remain
|
|
1379
|
+
available for applications that need their earlier behavior.
|
|
1380
|
+
|
|
1075
1381
|
The web search tool supports several configuration options:
|
|
1076
1382
|
|
|
1077
1383
|
- **maxUses** _number_
|
|
@@ -1090,11 +1396,17 @@ The web search tool supports several configuration options:
|
|
|
1090
1396
|
|
|
1091
1397
|
Optional user location information to provide geographically relevant search results.
|
|
1092
1398
|
|
|
1399
|
+
- **responseInclusion** _'full' | 'excluded'_
|
|
1400
|
+
|
|
1401
|
+
Available with `webSearch_20260318`. Controls whether search result blocks
|
|
1402
|
+
consumed by a completed code execution call in the same turn are included in
|
|
1403
|
+
the API response. The default is `'full'`. Use `'excluded'` to omit those
|
|
1404
|
+
nested call/result pairs and reduce output token usage.
|
|
1405
|
+
|
|
1093
1406
|
```ts
|
|
1094
|
-
const webSearchTool = anthropic.tools.
|
|
1407
|
+
const webSearchTool = anthropic.tools.webSearch_20260318({
|
|
1095
1408
|
maxUses: 3,
|
|
1096
1409
|
allowedDomains: ['techcrunch.com', 'wired.com'],
|
|
1097
|
-
blockedDomains: ['example-spam-site.com'],
|
|
1098
1410
|
userLocation: {
|
|
1099
1411
|
type: 'approximate',
|
|
1100
1412
|
country: 'US',
|
|
@@ -1102,10 +1414,11 @@ const webSearchTool = anthropic.tools.webSearch_20250305({
|
|
|
1102
1414
|
city: 'San Francisco',
|
|
1103
1415
|
timezone: 'America/Los_Angeles',
|
|
1104
1416
|
},
|
|
1417
|
+
responseInclusion: 'excluded',
|
|
1105
1418
|
});
|
|
1106
1419
|
|
|
1107
1420
|
const result = await generateText({
|
|
1108
|
-
model: anthropic('claude-opus-
|
|
1421
|
+
model: anthropic('claude-opus-5-5'),
|
|
1109
1422
|
prompt: 'Find local news about technology',
|
|
1110
1423
|
tools: {
|
|
1111
1424
|
web_search: webSearchTool,
|
|
@@ -1113,6 +1426,13 @@ const result = await generateText({
|
|
|
1113
1426
|
});
|
|
1114
1427
|
```
|
|
1115
1428
|
|
|
1429
|
+
<Note>
|
|
1430
|
+
`responseInclusion: 'excluded'` only omits results consumed by code execution
|
|
1431
|
+
calls that complete in the same turn. Results from direct calls and from code
|
|
1432
|
+
execution calls that pause before completing are always returned in full so
|
|
1433
|
+
they can be sent back on the next turn.
|
|
1434
|
+
</Note>
|
|
1435
|
+
|
|
1116
1436
|
### Web Fetch Tool
|
|
1117
1437
|
|
|
1118
1438
|
Anthropic provides a provider-defined web fetch tool that allows Claude to retrieve content from specific URLs. This is useful when you want Claude to analyze or reference content from a particular webpage or document.
|
|
@@ -1124,11 +1444,14 @@ import { anthropic } from '@ai-sdk/anthropic';
|
|
|
1124
1444
|
import { generateText } from 'ai';
|
|
1125
1445
|
|
|
1126
1446
|
const result = await generateText({
|
|
1127
|
-
model: anthropic('claude-
|
|
1447
|
+
model: anthropic('claude-opus-5-5'),
|
|
1128
1448
|
prompt:
|
|
1129
1449
|
'What is this page about? https://en.wikipedia.org/wiki/Maglemosian_culture',
|
|
1130
1450
|
tools: {
|
|
1131
|
-
web_fetch: anthropic.tools.
|
|
1451
|
+
web_fetch: anthropic.tools.webFetch_20260318({
|
|
1452
|
+
maxUses: 1,
|
|
1453
|
+
responseInclusion: 'excluded',
|
|
1454
|
+
}),
|
|
1132
1455
|
},
|
|
1133
1456
|
});
|
|
1134
1457
|
```
|
|
@@ -1213,7 +1536,7 @@ import { generateText, tool } from 'ai';
|
|
|
1213
1536
|
import { z } from 'zod';
|
|
1214
1537
|
|
|
1215
1538
|
const result = await generateText({
|
|
1216
|
-
model: anthropic('claude-sonnet-
|
|
1539
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
1217
1540
|
prompt: 'What is the weather in San Francisco?',
|
|
1218
1541
|
tools: {
|
|
1219
1542
|
toolSearch: anthropic.tools.toolSearchBm25_20251119(),
|
|
@@ -1243,7 +1566,7 @@ For more precise tool matching, you can use the regex variant:
|
|
|
1243
1566
|
|
|
1244
1567
|
```ts
|
|
1245
1568
|
const result = await generateText({
|
|
1246
|
-
model: anthropic('claude-sonnet-
|
|
1569
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
1247
1570
|
prompt: 'Get the weather data',
|
|
1248
1571
|
tools: {
|
|
1249
1572
|
toolSearch: anthropic.tools.toolSearchRegex_20251119(),
|
|
@@ -1264,7 +1587,7 @@ import { generateText, tool } from 'ai';
|
|
|
1264
1587
|
import { z } from 'zod';
|
|
1265
1588
|
|
|
1266
1589
|
const result = await generateText({
|
|
1267
|
-
model: anthropic('claude-sonnet-
|
|
1590
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
1268
1591
|
prompt: 'What is the weather in San Francisco?',
|
|
1269
1592
|
tools: {
|
|
1270
1593
|
// Custom search tool
|
|
@@ -1307,13 +1630,16 @@ This sends `tool_reference` blocks to Anthropic, which loads the corresponding d
|
|
|
1307
1630
|
|
|
1308
1631
|
### Mid-Conversation System Controls
|
|
1309
1632
|
|
|
1310
|
-
With `claude-
|
|
1311
|
-
|
|
1312
|
-
|
|
1633
|
+
With `claude-sonnet-5-5`, `claude-opus-5-5`, and `claude-fable-5-1`, use an
|
|
1634
|
+
empty system message to change effort from the next user turn. A separate
|
|
1635
|
+
system message containing text can provide a turn-scoped reminder with
|
|
1636
|
+
`clearAt: 'next_user_message'`: its text applies until the next user message. Keep the reminder after a user turn and
|
|
1637
|
+
before an assistant turn, or at the end of the messages array.
|
|
1638
|
+
The provider adds the required
|
|
1313
1639
|
`mid-conversation-system-clear-at-2026-08-21` and
|
|
1314
|
-
`mid-conversation-
|
|
1640
|
+
`mid-conversation-output-config-2026-07-01` beta headers automatically.
|
|
1315
1641
|
|
|
1316
|
-
```ts highlight="
|
|
1642
|
+
```ts highlight="16-24,29-37"
|
|
1317
1643
|
import { anthropic } from '@ai-sdk/anthropic';
|
|
1318
1644
|
import { generateText } from 'ai';
|
|
1319
1645
|
|
|
@@ -1331,10 +1657,9 @@ const result = await generateText({
|
|
|
1331
1657
|
},
|
|
1332
1658
|
{
|
|
1333
1659
|
role: 'system',
|
|
1334
|
-
content: '
|
|
1660
|
+
content: '',
|
|
1335
1661
|
providerOptions: {
|
|
1336
1662
|
anthropic: {
|
|
1337
|
-
clearAt: 'next_user_message',
|
|
1338
1663
|
effort: 'high',
|
|
1339
1664
|
},
|
|
1340
1665
|
},
|
|
@@ -1343,19 +1668,39 @@ const result = await generateText({
|
|
|
1343
1668
|
role: 'user',
|
|
1344
1669
|
content: 'Complete the plan.',
|
|
1345
1670
|
},
|
|
1671
|
+
{
|
|
1672
|
+
role: 'system',
|
|
1673
|
+
content: 'For this turn, verify every compatibility claim.',
|
|
1674
|
+
providerOptions: {
|
|
1675
|
+
anthropic: {
|
|
1676
|
+
clearAt: 'next_user_message',
|
|
1677
|
+
},
|
|
1678
|
+
},
|
|
1679
|
+
},
|
|
1346
1680
|
],
|
|
1347
1681
|
});
|
|
1348
1682
|
```
|
|
1349
1683
|
|
|
1350
1684
|
An effort-only system message can use an empty content array at the API level;
|
|
1351
1685
|
in an AI SDK prompt, set `content: ''`. The provider serializes it as
|
|
1352
|
-
`content: []`.
|
|
1686
|
+
`content: []`. These effort-only messages can appear first or later in the
|
|
1687
|
+
conversation, including consecutively. The provider preserves their order. The new
|
|
1688
|
+
level applies from the next user turn until a later message changes it.
|
|
1689
|
+
Initial instruction text is sent in the top-level `system` field.
|
|
1690
|
+
|
|
1691
|
+
Consecutive inline system messages are evaluated as a group. If an effort-only
|
|
1692
|
+
message is adjacent to a system message containing text, the whole group must
|
|
1693
|
+
follow Anthropic's [content placement rules](https://platform.claude.com/docs/en/build-with-claude/mid-conversation-system-messages#limitations).
|
|
1694
|
+
|
|
1695
|
+
Turn-scoped messages with `clearAt` support text only. Put effort updates in a
|
|
1696
|
+
separate message, as in the example above.
|
|
1353
1697
|
|
|
1354
1698
|
<Note>
|
|
1355
|
-
`clearAt`
|
|
1356
|
-
messages
|
|
1357
|
-
and emits a warning. Use
|
|
1358
|
-
effort
|
|
1699
|
+
`clearAt` applies only to mid-conversation system messages. On initial system
|
|
1700
|
+
messages, the provider ignores `clearAt` and effort attached to non-empty
|
|
1701
|
+
content and emits a warning. Use an empty system message for an initial
|
|
1702
|
+
per-message effort setting, or the top-level `effort` provider option to
|
|
1703
|
+
configure effort for the full request.
|
|
1359
1704
|
</Note>
|
|
1360
1705
|
|
|
1361
1706
|
### Mid-Conversation Tool Changes
|
|
@@ -1424,7 +1769,7 @@ import { anthropic, AnthropicLanguageModelOptions } from '@ai-sdk/anthropic';
|
|
|
1424
1769
|
import { generateText } from 'ai';
|
|
1425
1770
|
|
|
1426
1771
|
const result = await generateText({
|
|
1427
|
-
model: anthropic('claude-sonnet-
|
|
1772
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
1428
1773
|
prompt: `Call the echo tool with "hello world". what does it respond with back?`,
|
|
1429
1774
|
providerOptions: {
|
|
1430
1775
|
anthropic: {
|
|
@@ -1473,6 +1818,19 @@ The web fetch tool supports several configuration options:
|
|
|
1473
1818
|
|
|
1474
1819
|
The maxContentTokens parameter limits the amount of content that will be included in the context.
|
|
1475
1820
|
|
|
1821
|
+
- **useCache** _boolean_
|
|
1822
|
+
|
|
1823
|
+
Available with `webFetch_20260318`. Set to `false` to bypass cached content
|
|
1824
|
+
and fetch fresh content. The default is `true`; disabling the cache can
|
|
1825
|
+
increase latency.
|
|
1826
|
+
|
|
1827
|
+
- **responseInclusion** _'full' | 'excluded'_
|
|
1828
|
+
|
|
1829
|
+
Available with `webFetch_20260318`. Controls whether fetch result blocks
|
|
1830
|
+
consumed by a completed code execution call in the same turn are included in
|
|
1831
|
+
the API response. The default is `'full'`. Direct results and results from
|
|
1832
|
+
code execution calls that pause before completing are always returned in full.
|
|
1833
|
+
|
|
1476
1834
|
#### Error Handling
|
|
1477
1835
|
|
|
1478
1836
|
Web search errors are handled differently depending on whether you're using streaming or non-streaming:
|
|
@@ -1483,7 +1841,7 @@ Web search errors throw exceptions that you can catch:
|
|
|
1483
1841
|
```ts
|
|
1484
1842
|
try {
|
|
1485
1843
|
const result = await generateText({
|
|
1486
|
-
model: anthropic('claude-opus-
|
|
1844
|
+
model: anthropic('claude-opus-5-5'),
|
|
1487
1845
|
prompt: 'Search for something',
|
|
1488
1846
|
tools: {
|
|
1489
1847
|
web_search: webSearchTool,
|
|
@@ -1502,7 +1860,7 @@ Web search errors are delivered as error parts in the stream:
|
|
|
1502
1860
|
|
|
1503
1861
|
```ts
|
|
1504
1862
|
const result = await streamText({
|
|
1505
|
-
model: anthropic('claude-opus-
|
|
1863
|
+
model: anthropic('claude-opus-5-5'),
|
|
1506
1864
|
prompt: 'Search for something',
|
|
1507
1865
|
tools: {
|
|
1508
1866
|
web_search: webSearchTool,
|
|
@@ -1597,7 +1955,7 @@ Code execution errors are delivered as tool result parts in the response:
|
|
|
1597
1955
|
|
|
1598
1956
|
```ts
|
|
1599
1957
|
const result = await generateText({
|
|
1600
|
-
model: anthropic('claude-opus-
|
|
1958
|
+
model: anthropic('claude-opus-5-5'),
|
|
1601
1959
|
prompt: 'Execute some Python script',
|
|
1602
1960
|
tools: {
|
|
1603
1961
|
code_execution: codeExecutionTool,
|
|
@@ -1622,7 +1980,7 @@ Code execution errors are delivered as error parts in the stream:
|
|
|
1622
1980
|
|
|
1623
1981
|
```ts
|
|
1624
1982
|
const result = await streamText({
|
|
1625
|
-
model: anthropic('claude-opus-
|
|
1983
|
+
model: anthropic('claude-opus-5-5'),
|
|
1626
1984
|
prompt: 'Execute some Python script',
|
|
1627
1985
|
tools: {
|
|
1628
1986
|
code_execution: codeExecutionTool,
|
|
@@ -1693,6 +2051,18 @@ In this flow:
|
|
|
1693
2051
|
`code_execution_20260120` or `code_execution_20250825` tool.
|
|
1694
2052
|
</Note>
|
|
1695
2053
|
|
|
2054
|
+
#### Pruning Programmatic Tool History
|
|
2055
|
+
|
|
2056
|
+
When pruning removes a code execution call but keeps a tool call that references
|
|
2057
|
+
it through `caller.toolId`, the provider omits the dangling caller metadata from
|
|
2058
|
+
history before a subsequent user message and emits a warning. The retained tool
|
|
2059
|
+
calls and results are still sent to Anthropic; the removed code execution history
|
|
2060
|
+
is not restored.
|
|
2061
|
+
|
|
2062
|
+
Tool-result messages do not end a turn. Caller metadata in an active tool
|
|
2063
|
+
continuation is preserved, so keep the source code execution call when returning
|
|
2064
|
+
programmatic tool results.
|
|
2065
|
+
|
|
1696
2066
|
#### Container Persistence
|
|
1697
2067
|
|
|
1698
2068
|
When using programmatic tool calling across multiple steps, you need to preserve the container ID between steps using `prepareStep`. You can use the `forwardAnthropicContainerIdFromLastStep` helper function to do this automatically. The container ID is available in `providerMetadata.anthropic.container.id` after each step completes.
|
|
@@ -1782,7 +2152,7 @@ Option 1: URL-based PDF document
|
|
|
1782
2152
|
|
|
1783
2153
|
```ts
|
|
1784
2154
|
const result = await generateText({
|
|
1785
|
-
model: anthropic('claude-sonnet-
|
|
2155
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
1786
2156
|
messages: [
|
|
1787
2157
|
{
|
|
1788
2158
|
role: 'user',
|
|
@@ -1808,7 +2178,7 @@ Option 2: Base64-encoded PDF document
|
|
|
1808
2178
|
|
|
1809
2179
|
```ts
|
|
1810
2180
|
const result = await generateText({
|
|
1811
|
-
model: anthropic('claude-sonnet-
|
|
2181
|
+
model: anthropic('claude-sonnet-5-5'),
|
|
1812
2182
|
messages: [
|
|
1813
2183
|
{
|
|
1814
2184
|
role: 'user',
|
|
@@ -1837,7 +2207,9 @@ and the `mediaType` should be set to `'application/pdf'`.
|
|
|
1837
2207
|
|
|
1838
2208
|
| Model | Image Input | Object Generation | Tool Usage | Computer Use | Web Search | Tool Search | Compaction |
|
|
1839
2209
|
| ------------------- | ----------- | ----------------- | ---------- | ------------ | ---------- | ----------- | ---------- |
|
|
2210
|
+
| `claude-opus-5-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1840
2211
|
| `claude-opus-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
2212
|
+
| `claude-sonnet-5-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1841
2213
|
| `claude-sonnet-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1842
2214
|
| `claude-fable-5-1` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
1843
2215
|
| `claude-fable-5` | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> | <Check /> |
|
|
@@ -1858,3 +2230,52 @@ and the `mediaType` should be set to `'application/pdf'`.
|
|
|
1858
2230
|
of available models. The table above lists popular models. You can also pass
|
|
1859
2231
|
any available provider model ID as a string if needed.
|
|
1860
2232
|
</Note>
|
|
2233
|
+
|
|
2234
|
+
## Evaluation Models
|
|
2235
|
+
|
|
2236
|
+
Create an experimental evaluation model with `anthropic.evaluationModel(modelId)`.
|
|
2237
|
+
It uses the Messages API's structured-output support for Choice, Score, and Boolean
|
|
2238
|
+
questions. `claude-haiku-4-5-20251001` is one supported model.
|
|
2239
|
+
|
|
2240
|
+
```ts
|
|
2241
|
+
import { anthropic } from '@ai-sdk/anthropic';
|
|
2242
|
+
import { experimental_evaluate } from 'ai';
|
|
2243
|
+
|
|
2244
|
+
const { answers } = await experimental_evaluate({
|
|
2245
|
+
model: anthropic.evaluationModel('claude-haiku-4-5-20251001'),
|
|
2246
|
+
state: 'I was charged twice.',
|
|
2247
|
+
questions: {
|
|
2248
|
+
requestsRefund: {
|
|
2249
|
+
type: 'boolean',
|
|
2250
|
+
instructions: 'Is the customer requesting money back?',
|
|
2251
|
+
},
|
|
2252
|
+
department: {
|
|
2253
|
+
type: 'choice',
|
|
2254
|
+
instructions: 'Which team should handle this?',
|
|
2255
|
+
criteria: { billing: 'Charges and refunds', support: 'Other requests' },
|
|
2256
|
+
},
|
|
2257
|
+
},
|
|
2258
|
+
});
|
|
2259
|
+
```
|
|
2260
|
+
|
|
2261
|
+
Choice labels are preserved exactly, and Scores are finite fractional positions
|
|
2262
|
+
on the ordered rubric. Anthropic does not support numeric bounds in its native
|
|
2263
|
+
output schema, so the adapter describes them in the prompt and validates them
|
|
2264
|
+
after parsing. Invalid answers, refusals, and truncation fail the entire call.
|
|
2265
|
+
|
|
2266
|
+
The adapter returns no probability distributions for Choice or Score. Boolean
|
|
2267
|
+
answers contain prompted estimates of P(true), validated to be finite and in
|
|
2268
|
+
`[0, 1]`. These estimates are not guaranteed to be calibrated. Apply thresholds
|
|
2269
|
+
in application code, for example `answers.requestsRefund.probability >= 0.5`.
|
|
2270
|
+
It respects
|
|
2271
|
+
`createAnthropic` configuration and forwards `providerOptions.anthropic`, including
|
|
2272
|
+
`structuredOutputMode`. Supported models use native structured output by default;
|
|
2273
|
+
`jsonTool` uses the existing Messages JSON-tool fallback. Usage, warnings,
|
|
2274
|
+
response information, and provider metadata are preserved.
|
|
2275
|
+
See [Evaluation](/docs/ai-sdk-core/evaluation).
|
|
2276
|
+
|
|
2277
|
+
Evaluation models can also be accessed through `customProvider` aliases or
|
|
2278
|
+
`createProviderRegistry().evaluationModel('provider:model')`. Direct string IDs
|
|
2279
|
+
use Gateway by default, or an explicitly configured default provider with an
|
|
2280
|
+
`evaluationModel` method. See
|
|
2281
|
+
[model aliases and registries](/docs/ai-sdk-core/evaluation#model-aliases-and-registries).
|