maka-agent 0.2.0-dev.6.20260830 → 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/DISCLAIMER-WIP +6 -1
- package/LICENSE +291 -9
- package/README.md +50 -20
- package/README.zh-CN.md +39 -19
- package/RUNTIME_HOST_PEER_DEPENDENCIES.rust.tsv +70 -0
- package/RUNTIME_HOST_PEER_THIRD_PARTY_NOTICES.txt +1839 -140
- package/THIRD_PARTY_NOTICES.txt +490 -271
- package/dist/acp/active-promise.js +38 -0
- package/dist/acp/goal-plan-operations.js +142 -0
- package/dist/acp/goal-plan-routes.js +33 -0
- package/dist/acp/maka-acp-agent.js +128 -7
- package/dist/acp/prompt-content.js +225 -0
- package/dist/acp/session-configuration.js +143 -0
- package/dist/acp/session-domain-observation.js +185 -0
- package/dist/acp/session-event-mapper.js +205 -0
- package/dist/acp/session-interactions.js +550 -0
- package/dist/acp/session-mcp.js +361 -0
- package/dist/acp/session-registry.js +2378 -0
- package/dist/acp/stdio-server.js +32 -1
- package/dist/acp/tool-event-mapper.js +457 -0
- package/dist/acp/turn-observation.js +260 -0
- package/dist/activation-command.js +12 -5
- package/dist/bounded-chunk-buffer.js +16 -3
- package/dist/cli-core.js +98 -102
- package/dist/cli-ui-locale.js +7 -2
- package/dist/mcp-capability-provider.js +21 -12
- package/dist/mcp-capability-publication.js +155 -0
- package/dist/onboarding-catalog.js +23 -8
- package/dist/pi-transcript-tools.js +17 -5
- package/dist/pi-transcript.js +77 -31
- package/dist/pi-tui-form-interaction.js +497 -0
- package/dist/pi-tui-layout.js +101 -24
- package/dist/pi-tui-mcp-status.js +194 -128
- package/dist/pi-tui-pickers.js +588 -103
- package/dist/pi-tui-runner.js +1097 -251
- package/dist/pi-tui-todo.js +221 -0
- package/dist/pi-tui-transcript-viewer.js +134 -7
- package/dist/run-command-core.js +6 -14
- package/dist/runtime-host-access-command.js +37 -4
- package/dist/runtime-host-capability-provider-command.js +41 -8
- package/dist/runtime-host-cli-context.js +300 -80
- package/dist/runtime-host-cli-installation.js +8 -2
- package/dist/runtime-host-cli.js +360 -64
- package/dist/runtime-host-handoff-surface.js +108 -0
- package/dist/runtime-host-help.js +244 -0
- package/dist/runtime-host-installed-update-activator.js +70 -33
- package/dist/runtime-host-installed-update-bootstrap.js +16 -1
- package/dist/runtime-host-installed-update-coordinator.js +44 -96
- package/dist/runtime-host-lifecycle-transaction.js +101 -28
- package/dist/runtime-host-local-handoff.js +215 -41
- package/dist/runtime-host-local-managed-activation.js +84 -0
- package/dist/runtime-host-local-source-retirement.js +119 -0
- package/dist/runtime-host-local-target-activation.js +141 -0
- package/dist/runtime-host-managed-deployment.js +158 -51
- package/dist/runtime-host-managed-lifecycle-manager.js +5 -6
- package/dist/runtime-host-onboarding.js +363 -23
- package/dist/runtime-host-openrc-service.js +469 -0
- package/dist/runtime-host-operator-retirement.js +50 -0
- package/dist/runtime-host-package-deployment.js +36 -2
- package/dist/runtime-host-peer-artifact.js +3 -3
- package/dist/runtime-host-peer-management-command.js +30 -12
- package/dist/runtime-host-peer-mesh-management-command.js +1 -1
- package/dist/runtime-host-plugin-command.js +101 -0
- package/dist/runtime-host-profile-command.js +1 -1
- package/dist/runtime-host-run-command.js +89 -67
- package/dist/runtime-host-run-mcp.js +161 -0
- package/dist/runtime-host-service-command.js +3 -3
- package/dist/runtime-host-service-management-command.js +67 -17
- package/dist/runtime-host-service-manager.js +30 -11
- package/dist/runtime-host-session-channel.js +282 -28
- package/dist/runtime-host-session-driver.js +115 -55
- package/dist/runtime-host-session-update.js +62 -0
- package/dist/runtime-host-setup-command.js +72 -52
- package/dist/runtime-host-task-readiness.js +2 -3
- package/dist/runtime-host-tui-command.js +63 -82
- package/dist/runtime-host-tui-context.js +74 -11
- package/dist/runtime-host-tui-owner.js +226 -0
- package/dist/runtime-host-update-command.js +165 -70
- package/dist/runtime-host-update-discovery.js +1 -0
- package/dist/runtime-host-update-reconciliation.js +7 -7
- package/dist/runtime-host-windows-service.js +166 -0
- package/dist/runtime-host-windows-task-launcher-artifact.js +75 -0
- package/dist/session-export-command.js +72 -0
- package/dist/session-import-command.js +69 -0
- package/dist/tui-autocomplete-layout.js +3 -1
- package/dist/tui-clipboard.js +86 -0
- package/dist/tui-context-refresh.js +92 -0
- package/dist/tui-copy-catalog.js +1060 -14
- package/dist/tui-copy-command.js +103 -0
- package/dist/tui-editor-render.js +36 -0
- package/dist/tui-host-owner-copy.js +24 -0
- package/dist/tui-mcp-control.js +162 -122
- package/dist/tui-mcp-remote-publication.js +395 -0
- package/dist/workspace-root.js +2 -2
- package/native/runtime-host-peer/prebuilds/darwin-arm64/maka_runtime_host_peer.node +0 -0
- package/native/runtime-host-peer/prebuilds/linux-arm64/maka_runtime_host_peer.node +0 -0
- package/native/runtime-host-peer/prebuilds/linux-x64/maka_runtime_host_peer.node +0 -0
- package/native/runtime-host-peer/prebuilds/win32-x64/maka_runtime_host_peer.node +0 -0
- 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 +257 -0
- package/node_modules/@ai-sdk/anthropic/README.md +1 -1
- package/node_modules/@ai-sdk/anthropic/dist/index.js +2478 -1198
- package/node_modules/@ai-sdk/anthropic/dist/internal/index.js +1822 -894
- package/node_modules/@ai-sdk/anthropic/docs/05-anthropic.mdx +590 -80
- package/node_modules/@ai-sdk/anthropic/package.json +6 -6
- package/node_modules/@ai-sdk/code-mode/dist/approval-continuation.js +0 -1
- package/node_modules/@ai-sdk/code-mode/dist/code-mode-tool.js +26 -7
- package/node_modules/@ai-sdk/code-mode/dist/errors.js +0 -8
- package/node_modules/@ai-sdk/code-mode/dist/interrupt-continuation.js +0 -2
- package/node_modules/@ai-sdk/code-mode/dist/run-code-mode.js +8 -19
- package/node_modules/@ai-sdk/code-mode/dist/tool-prompt.js +43 -15
- package/node_modules/@ai-sdk/code-mode/package.json +5 -5
- package/node_modules/@ai-sdk/cohere/CHANGELOG.md +204 -0
- package/node_modules/@ai-sdk/cohere/README.md +1 -1
- package/node_modules/@ai-sdk/cohere/dist/index.js +54 -70
- package/node_modules/@ai-sdk/cohere/docs/25-cohere.mdx +11 -9
- package/node_modules/@ai-sdk/cohere/package.json +6 -6
- package/node_modules/@ai-sdk/gateway/CHANGELOG.md +385 -0
- package/node_modules/@ai-sdk/gateway/README.md +1 -1
- package/node_modules/@ai-sdk/gateway/dist/index.js +1326 -357
- package/node_modules/@ai-sdk/gateway/docs/00-ai-gateway.mdx +547 -29
- package/node_modules/@ai-sdk/gateway/package.json +8 -8
- package/node_modules/@ai-sdk/google/CHANGELOG.md +356 -0
- package/node_modules/@ai-sdk/google/README.md +1 -1
- package/node_modules/@ai-sdk/google/dist/index.js +6356 -4699
- package/node_modules/@ai-sdk/google/dist/internal/index.js +1207 -824
- package/node_modules/@ai-sdk/google/docs/15-google.mdx +444 -133
- package/node_modules/@ai-sdk/google/package.json +6 -6
- package/node_modules/@ai-sdk/open-responses/CHANGELOG.md +190 -0
- package/node_modules/@ai-sdk/open-responses/dist/index.js +908 -124
- package/node_modules/@ai-sdk/open-responses/docs/06-open-responses.mdx +240 -4
- package/node_modules/@ai-sdk/open-responses/package.json +4 -4
- package/node_modules/@ai-sdk/openai/CHANGELOG.md +331 -0
- package/node_modules/@ai-sdk/openai/README.md +27 -2
- package/node_modules/@ai-sdk/openai/dist/index.js +3791 -1897
- package/node_modules/@ai-sdk/openai/dist/internal/index.js +3008 -1980
- package/node_modules/@ai-sdk/openai/docs/03-openai.mdx +485 -120
- package/node_modules/@ai-sdk/openai/package.json +6 -6
- package/node_modules/@ai-sdk/openai-compatible/CHANGELOG.md +236 -0
- package/node_modules/@ai-sdk/openai-compatible/dist/index.js +218 -143
- package/node_modules/@ai-sdk/openai-compatible/dist/internal/index.js +31 -14
- package/node_modules/@ai-sdk/openai-compatible/docs/index.mdx +80 -0
- package/node_modules/@ai-sdk/openai-compatible/package.json +6 -6
- package/node_modules/@ai-sdk/provider/CHANGELOG.md +91 -0
- package/node_modules/@ai-sdk/provider/dist/index.js +127 -102
- package/node_modules/@ai-sdk/provider/package.json +3 -3
- package/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +191 -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 +1105 -407
- 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 +10 -5
- package/node_modules/@earendil-works/pi-tui/README.md +61 -6
- package/node_modules/@earendil-works/pi-tui/dist/alt-screen-search.js +202 -42
- package/node_modules/@earendil-works/pi-tui/dist/autocomplete.js +54 -14
- package/node_modules/@earendil-works/pi-tui/dist/components/box.js +29 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/editor.js +114 -28
- package/node_modules/@earendil-works/pi-tui/dist/components/input.js +44 -5
- package/node_modules/@earendil-works/pi-tui/dist/components/loader.js +10 -3
- package/node_modules/@earendil-works/pi-tui/dist/components/markdown.js +9 -4
- package/node_modules/@earendil-works/pi-tui/dist/components/mouse-region.js +21 -0
- package/node_modules/@earendil-works/pi-tui/dist/components/scroll-view.js +8 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/select-list.js +49 -2
- package/node_modules/@earendil-works/pi-tui/dist/components/settings-list.js +79 -9
- package/node_modules/@earendil-works/pi-tui/dist/components/text.js +5 -4
- package/node_modules/@earendil-works/pi-tui/dist/fuzzy.js +23 -22
- package/node_modules/@earendil-works/pi-tui/dist/index.js +4 -1
- package/node_modules/@earendil-works/pi-tui/dist/keybindings.js +2 -2
- package/node_modules/@earendil-works/pi-tui/dist/latex.js +123 -16
- package/node_modules/@earendil-works/pi-tui/dist/layout.js +32 -9
- package/node_modules/@earendil-works/pi-tui/dist/native-modifiers.js +3 -50
- package/node_modules/@earendil-works/pi-tui/dist/native-module-path.js +19 -0
- package/node_modules/@earendil-works/pi-tui/dist/native-platform.js +42 -0
- package/node_modules/@earendil-works/pi-tui/dist/terminal-image.js +38 -6
- package/node_modules/@earendil-works/pi-tui/dist/terminal.js +19 -30
- package/node_modules/@earendil-works/pi-tui/dist/tui-alt-screen.js +427 -60
- package/node_modules/@earendil-works/pi-tui/dist/tui-main-screen.js +111 -50
- package/node_modules/@earendil-works/pi-tui/dist/tui.js +123 -9
- package/node_modules/@earendil-works/pi-tui/dist/utils.js +13 -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-platform.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/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 +232 -36
- package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +232 -36
- package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
- package/node_modules/@maka/acp-executor-plugin/dist/acp-errors.js +26 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-filesystem.js +103 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-process.js +119 -0
- package/node_modules/@maka/acp-executor-plugin/dist/acp-projection.js +146 -0
- package/node_modules/@maka/acp-executor-plugin/dist/index.js +958 -0
- package/node_modules/@maka/acp-executor-plugin/dist/plugin.mjs +24719 -0
- package/node_modules/@maka/acp-executor-plugin/package.json +15 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/index.js +88 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/model-presentation.js +53 -0
- package/node_modules/@maka/antigravity-acp-plugin/dist/plugin.mjs +115 -0
- package/node_modules/@maka/antigravity-acp-plugin/package.json +15 -0
- package/node_modules/@maka/core/dist/agent-graph-schedule.js +15 -4
- package/node_modules/@maka/core/dist/agent-run.js +25 -336
- package/node_modules/@maka/core/dist/artifacts.js +33 -23
- package/node_modules/@maka/core/dist/attachments.js +107 -1
- package/node_modules/@maka/core/dist/bot-events.js +18 -63
- package/node_modules/@maka/core/dist/bounded-response.js +71 -0
- package/node_modules/@maka/core/dist/canonical-json.js +27 -0
- package/node_modules/@maka/core/dist/canonical-runtime-event.js +3 -1
- package/node_modules/@maka/core/dist/capabilities.js +35 -0
- package/node_modules/@maka/core/dist/chat-model-choice.js +14 -31
- package/node_modules/@maka/core/dist/client-capability-grant.js +149 -0
- package/node_modules/@maka/core/dist/collaboration.js +12 -0
- package/node_modules/@maka/core/dist/computer-use.js +27 -93
- package/node_modules/@maka/core/dist/connection-error-copy.js +17 -34
- package/node_modules/@maka/core/dist/connection-readiness.js +3 -31
- package/node_modules/@maka/core/dist/diagnostic-log.js +18 -7
- package/node_modules/@maka/core/dist/display-redaction.js +18 -0
- package/node_modules/@maka/core/dist/durable-tool-result-projection.js +126 -0
- package/node_modules/@maka/core/dist/events.js +125 -21
- package/node_modules/@maka/core/dist/execution-inspect.js +12 -21
- package/node_modules/@maka/core/dist/executor-catalog.js +115 -0
- package/node_modules/@maka/core/dist/executor-id.js +22 -0
- package/node_modules/@maka/core/dist/external-session.js +65 -3
- package/node_modules/@maka/core/dist/goal.js +44 -2
- package/node_modules/@maka/core/dist/health.js +50 -45
- package/node_modules/@maka/core/dist/interaction.js +657 -2
- package/node_modules/@maka/core/dist/llm-connections.js +108 -97
- package/node_modules/@maka/core/dist/local-memory.js +2 -2
- package/node_modules/@maka/core/dist/maka-wordmark.js +23 -0
- package/node_modules/@maka/core/dist/mcp.js +4 -1
- package/node_modules/@maka/core/dist/message-queue-order.js +47 -0
- package/node_modules/@maka/core/dist/model-call-attempt.js +134 -82
- package/node_modules/@maka/core/dist/model-call-usage-projection.js +0 -196
- package/node_modules/@maka/core/dist/model-catalog.js +194 -337
- package/node_modules/@maka/core/dist/model-facts.js +204 -0
- package/node_modules/@maka/core/dist/model-failure.js +40 -0
- package/node_modules/@maka/core/dist/model-metadata.generated.js +2069 -1878
- package/node_modules/@maka/core/dist/model-metadata.js +371 -215
- package/node_modules/@maka/core/dist/model-projection-transition.js +145 -0
- package/node_modules/@maka/core/dist/model-thinking.js +133 -34
- package/node_modules/@maka/core/dist/model-web-search.js +13 -15
- package/node_modules/@maka/core/dist/models-dev-projection.js +320 -0
- package/node_modules/@maka/core/dist/models-dev-refresh.js +55 -0
- package/node_modules/@maka/core/dist/onboarding.js +3 -5
- package/node_modules/@maka/core/dist/openai-urls.js +51 -0
- package/node_modules/@maka/core/dist/permission-profile.js +17 -0
- package/node_modules/@maka/core/dist/permission.js +0 -1
- package/node_modules/@maka/core/dist/provider-auth.js +49 -291
- package/node_modules/@maka/core/dist/provider-registry.js +251 -494
- package/node_modules/@maka/core/dist/recall.js +1143 -0
- package/node_modules/@maka/core/dist/record-schema.js +22 -2
- package/node_modules/@maka/core/dist/redaction.js +128 -43
- package/node_modules/@maka/core/dist/refresh-read-coordinator.js +62 -0
- package/node_modules/@maka/core/dist/relative-time-policy.js +71 -0
- package/node_modules/@maka/core/dist/relative-time.js +26 -77
- package/node_modules/@maka/core/dist/run-composition.js +77 -2
- package/node_modules/@maka/core/dist/runtime-boundary.js +182 -66
- package/node_modules/@maka/core/dist/runtime-event-store.js +31 -0
- package/node_modules/@maka/core/dist/runtime-event.js +270 -12
- package/node_modules/@maka/core/dist/runtime-handoff.js +106 -0
- package/node_modules/@maka/core/dist/runtime-invocation.js +228 -0
- package/node_modules/@maka/core/dist/runtime-logical-execution.js +137 -0
- package/node_modules/@maka/core/dist/runtime-policy/connection-catalog-codec.js +247 -74
- package/node_modules/@maka/core/dist/runtime-policy/credential-vault-codec.js +15 -1
- package/node_modules/@maka/core/dist/runtime-policy/model-catalog-entry-codec.js +106 -0
- package/node_modules/@maka/core/dist/runtime-policy/policy-codec.js +139 -4
- package/node_modules/@maka/core/dist/runtime-policy.js +7 -3
- package/node_modules/@maka/core/dist/scheduled-task.js +12 -2
- package/node_modules/@maka/core/dist/session-name.js +2 -3
- package/node_modules/@maka/core/dist/session-reference.js +149 -0
- package/node_modules/@maka/core/dist/session-send-projection.js +8 -4
- package/node_modules/@maka/core/dist/session-start-mode.js +39 -0
- package/node_modules/@maka/core/dist/session-todo.js +101 -0
- package/node_modules/@maka/core/dist/session-trace.js +5 -1
- package/node_modules/@maka/core/dist/session.js +356 -57
- package/node_modules/@maka/core/dist/settings.js +50 -12
- package/node_modules/@maka/core/dist/shell-run-result.js +1 -0
- package/node_modules/@maka/core/dist/shell-run.js +15 -0
- package/node_modules/@maka/core/dist/skill-locations.js +29 -0
- package/node_modules/@maka/core/dist/slash-command-catalog.js +4 -0
- package/node_modules/@maka/core/dist/task-submission-readiness.js +2 -1
- package/node_modules/@maka/core/dist/text-sanitize.js +29 -4
- package/node_modules/@maka/core/dist/tool-activity-args.js +4 -0
- package/node_modules/@maka/core/dist/tool-ledger-scanner.js +365 -104
- package/node_modules/@maka/core/dist/tool-quiet-preview.js +53 -26
- package/node_modules/@maka/core/dist/tool-result-archive-evidence.js +22 -0
- package/node_modules/@maka/core/dist/tool-result-record-schema.js +12 -2
- package/node_modules/@maka/core/dist/transcript-search.js +46 -0
- package/node_modules/@maka/core/dist/turn-origin.js +20 -0
- package/node_modules/@maka/core/dist/ui-locale.js +23 -10
- package/node_modules/@maka/core/dist/unified-diff.js +33 -26
- package/node_modules/@maka/core/dist/usage-ledger-merge.js +10 -9
- package/node_modules/@maka/core/dist/usage-record-schema.js +38 -31
- package/node_modules/@maka/core/dist/usage-stats/types.js +3 -0
- package/node_modules/@maka/core/dist/work-board.js +94 -1
- package/node_modules/@maka/core/dist/workhub-action-result.js +68 -0
- package/node_modules/@maka/core/dist/workhub-routing.js +126 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/index.js +2178 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +209 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +162 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/package.json +21 -0
- package/node_modules/@maka/core/node_modules/@formatjs/icu-messageformat-parser/printer.js +224 -0
- package/node_modules/@maka/core/node_modules/intl-messageformat/intl-messageformat.iife.js +2810 -0
- package/node_modules/@maka/core/node_modules/intl-messageformat/package.json +40 -0
- package/node_modules/@maka/core/package.json +34 -8
- package/node_modules/@maka/eval/dist/egress-audit.js +127 -0
- package/node_modules/@maka/eval/dist/experiment-directory.js +4 -13
- package/node_modules/@maka/eval/dist/fleet-simulation.js +270 -0
- package/node_modules/@maka/eval/dist/fleet-store.js +243 -0
- package/node_modules/@maka/eval/dist/fleet-worker.js +125 -0
- package/node_modules/@maka/eval/dist/fleet.js +329 -0
- package/node_modules/@maka/eval/dist/harbor-external-subject.js +2 -1
- package/node_modules/@maka/eval/dist/harbor-maka-subject.js +16 -3
- package/node_modules/@maka/eval/dist/harness-executor.js +19 -98
- package/node_modules/@maka/eval/dist/index.js +3 -0
- package/node_modules/@maka/eval/dist/install-preflight.js +39 -10
- package/node_modules/@maka/eval/dist/maka-artifacts.js +28 -14
- package/node_modules/@maka/eval/dist/maka-subject.js +35 -3
- package/node_modules/@maka/eval/dist/metering-checkpoint.js +4 -4
- package/node_modules/@maka/eval/dist/process-termination.js +83 -0
- package/node_modules/@maka/eval/dist/toolchain-verification.js +1 -1
- package/node_modules/@maka/eval/harbor/egress-proxy/entrypoint.sh +6 -5
- package/node_modules/@maka/eval/harbor/egress_filter.py +202 -136
- package/node_modules/@maka/eval/harbor/eval_framework.py +39 -16
- package/node_modules/@maka/eval/harbor/relay_agent.py +47 -10
- package/node_modules/@maka/eval/harbor/run_trial.py +13 -6
- 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/Client.md +4 -0
- 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/EnvHttpProxyAgent.md +3 -2
- 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/EventSource.md +4 -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 +8 -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/api/Socks5ProxyAgent.md +7 -1
- 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/cache/memory-cache-store.js +2 -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/symbols.js +2 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client-h2.js +94 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/client.js +9 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +31 -9
- 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 +33 -3
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/deduplication-handler.js +29 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/redirect-handler.js +26 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/handler/retry-handler.js +215 -38
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/cache.js +69 -13
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/decompress.js +319 -50
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/@maka/eval/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/mock/mock-utils.js +11 -10
- package/node_modules/@maka/eval/node_modules/undici/lib/util/cache.js +45 -3
- 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/parse.js +150 -147
- 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-stream.js +28 -1
- package/node_modules/@maka/eval/node_modules/undici/lib/web/eventsource/eventsource.js +38 -4
- 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 +52 -25
- package/node_modules/@maka/eval/node_modules/undici/lib/web/fetch/request.js +76 -82
- 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 +13 -8
- 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 +5 -17
- package/node_modules/@maka/eval/node_modules/undici/lib/web/websocket/connection.js +34 -13
- 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/permessage-deflate.js +5 -0
- 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 +27 -14
- 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 +3 -3
- package/node_modules/@maka/eval/package.json +1 -1
- package/node_modules/@maka/mcp/dist/credential-coordinator.js +6 -1
- package/node_modules/@maka/mcp/dist/form-elicitation.js +213 -0
- package/node_modules/@maka/mcp/dist/index.js +517 -72
- package/node_modules/@maka/mcp/dist/oauth.js +58 -8
- package/node_modules/@maka/mcp/dist/sep-2243.js +3 -3
- package/node_modules/@maka/mcp/dist/tool-progress.js +45 -0
- package/node_modules/@maka/mcp/package.json +1 -1
- package/node_modules/@maka/runtime/dist/agent-graph-supervisor-wake.js +33 -6
- package/node_modules/@maka/runtime/dist/agent-graph-timeline.js +12 -11
- package/node_modules/@maka/runtime/dist/agent-run-inspect.js +38 -86
- package/node_modules/@maka/runtime/dist/agent-run-recovery.js +36 -46
- package/node_modules/@maka/runtime/dist/agent-run.js +603 -470
- package/node_modules/@maka/runtime/dist/agent-swarm-status-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-backend.js +116 -3753
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction-contract.js +6 -1
- package/node_modules/@maka/runtime/dist/ai-sdk-compaction.js +511 -549
- package/node_modules/@maka/runtime/dist/ai-sdk-message-projection.js +623 -0
- package/node_modules/@maka/runtime/dist/ai-sdk-tool-repair.js +115 -0
- package/node_modules/@maka/runtime/dist/ai-sdk-turn.js +2616 -0
- package/node_modules/@maka/runtime/dist/apply-patch-profile.js +64 -14
- package/node_modules/@maka/runtime/dist/ask-user-question-tool.js +0 -1
- package/node_modules/@maka/runtime/dist/background-task-health-tool.js +104 -0
- package/node_modules/@maka/runtime/dist/bash-model-output.js +7 -1
- package/node_modules/@maka/runtime/dist/bash-tail-buffer.js +13 -52
- package/node_modules/@maka/runtime/dist/bots/base-adapter.js +17 -0
- package/node_modules/@maka/runtime/dist/bots/bot-test.js +40 -23
- package/node_modules/@maka/runtime/dist/bots/dingtalk-bridge.js +93 -24
- package/node_modules/@maka/runtime/dist/bots/discord-bridge.js +4 -4
- package/node_modules/@maka/runtime/dist/bots/feishu-bridge.js +28 -25
- package/node_modules/@maka/runtime/dist/bots/proxied-fetch.js +5 -4
- package/node_modules/@maka/runtime/dist/bots/qq-bridge.js +6 -4
- package/node_modules/@maka/runtime/dist/bots/slack-bridge.js +8 -7
- package/node_modules/@maka/runtime/dist/bots/telegram-bridge.js +7 -31
- package/node_modules/@maka/runtime/dist/bots/wechat-bridge.js +104 -48
- package/node_modules/@maka/runtime/dist/bots/wecom-bridge.js +45 -42
- package/node_modules/@maka/runtime/dist/bots/ws-bridge-base.js +2 -3
- package/node_modules/@maka/runtime/dist/builtin-tools.js +134 -133
- package/node_modules/@maka/runtime/dist/bundled-skill-catalog.generated.js +1 -1
- package/node_modules/@maka/runtime/dist/child-fd-input.js +3 -2
- package/node_modules/@maka/runtime/dist/code-mode.js +7 -4
- package/node_modules/@maka/runtime/dist/codex-v4a-patch.js +18 -0
- package/node_modules/@maka/runtime/dist/computer-use-codec.js +1 -141
- package/node_modules/@maka/runtime/dist/computer-use-tools.js +162 -205
- package/node_modules/@maka/runtime/dist/context-budget-helpers.js +7 -56
- package/node_modules/@maka/runtime/dist/context-budget-policy.js +26 -65
- package/node_modules/@maka/runtime/dist/context-budget.js +44 -103
- package/node_modules/@maka/runtime/dist/context-diagnostics.js +72 -33
- package/node_modules/@maka/runtime/dist/continuation-replay.js +25 -12
- package/node_modules/@maka/runtime/dist/conversation-copy.js +731 -356
- package/node_modules/@maka/runtime/dist/cua-frame-state.js +1 -69
- package/node_modules/@maka/runtime/dist/deepseek-web-search-codec.js +71 -0
- package/node_modules/@maka/runtime/dist/durable-tool-result-projection.js +436 -0
- package/node_modules/@maka/runtime/dist/edit-replace.js +9 -9
- package/node_modules/@maka/runtime/dist/execution-inspect.js +56 -41
- package/node_modules/@maka/runtime/dist/filesystem-executor.js +17 -28
- package/node_modules/@maka/runtime/dist/filesystem-worker/client.js +77 -19
- package/node_modules/@maka/runtime/dist/filesystem-worker/launch-spec.js +66 -55
- package/node_modules/@maka/runtime/dist/filesystem-worker/operations.js +50 -125
- package/node_modules/@maka/runtime/dist/filesystem-worker/protocol.js +29 -11
- package/node_modules/@maka/runtime/dist/filesystem-worker/worker-entry.js +2 -0
- package/node_modules/@maka/runtime/dist/format-json.js +39 -0
- package/node_modules/@maka/runtime/dist/github-copilot-oauth-enrollment.js +267 -0
- package/node_modules/@maka/runtime/dist/glob-search.js +87 -0
- package/node_modules/@maka/runtime/dist/goal-continuation.js +119 -13
- package/node_modules/@maka/runtime/dist/goal-evaluator.js +10 -4
- package/node_modules/@maka/runtime/dist/goal-state.js +7 -0
- package/node_modules/@maka/runtime/dist/grep-search.js +155 -0
- package/node_modules/@maka/runtime/dist/history-compact-checkpoint-coordinator.js +16 -6
- package/node_modules/@maka/runtime/dist/history-compact-checkpoint.js +79 -34
- package/node_modules/@maka/runtime/dist/history-compact-error.js +10 -2
- package/node_modules/@maka/runtime/dist/history-compact-input-fit.js +7 -1
- package/node_modules/@maka/runtime/dist/history-compact-ledger.js +18 -18
- package/node_modules/@maka/runtime/dist/history-compact-summarizer.js +132 -110
- package/node_modules/@maka/runtime/dist/history-compact-summary-validation.js +14 -30
- package/node_modules/@maka/runtime/dist/history-compaction.js +114 -93
- package/node_modules/@maka/runtime/dist/image-file.js +26 -33
- package/node_modules/@maka/runtime/dist/interaction-authority.js +85 -0
- package/node_modules/@maka/runtime/dist/latest-context-snapshot.js +112 -23
- package/node_modules/@maka/runtime/dist/ledger-tool-result-archive-reader.js +164 -0
- package/node_modules/@maka/runtime/dist/local-web-fetch.js +26 -55
- package/node_modules/@maka/runtime/dist/mcp-tools.js +102 -37
- package/node_modules/@maka/runtime/dist/memory-extraction-evidence.js +7 -1
- package/node_modules/@maka/runtime/dist/memory-extraction.js +30 -19
- package/node_modules/@maka/runtime/dist/message-authority.js +9 -0
- package/node_modules/@maka/runtime/dist/model-adapter.js +291 -193
- package/node_modules/@maka/runtime/dist/model-factory.js +131 -135
- package/node_modules/@maka/runtime/dist/model-fetcher.js +102 -90
- package/node_modules/@maka/runtime/dist/model-history.js +533 -169
- package/node_modules/@maka/runtime/dist/model-projection-transition-ledger.js +207 -0
- package/node_modules/@maka/runtime/dist/model-runtime.js +91 -113
- package/node_modules/@maka/runtime/dist/native-web-search-tool.js +2 -1
- package/node_modules/@maka/runtime/dist/network/abortable-connector.js +55 -0
- package/node_modules/@maka/runtime/dist/network/proxy-dispatcher.js +72 -37
- package/node_modules/@maka/runtime/dist/network/proxy-test.js +1 -1
- package/node_modules/@maka/runtime/dist/network/scoped-fetch-transport.js +7 -2
- package/node_modules/@maka/runtime/dist/oauth-provider-contracts.js +28 -1
- package/node_modules/@maka/runtime/dist/openai-apply-patch.js +5 -0
- package/node_modules/@maka/runtime/dist/openai-codex-history-compactor.js +29 -77
- package/node_modules/@maka/runtime/dist/openai-responses-websocket.js +2 -5
- package/node_modules/@maka/runtime/dist/opencode-session-header.js +30 -0
- package/node_modules/@maka/runtime/dist/pipe-tail-collector.js +6 -9
- package/node_modules/@maka/runtime/dist/plan-mode.js +0 -65
- package/node_modules/@maka/runtime/dist/plan-tools.js +0 -3
- package/node_modules/@maka/runtime/dist/plugin-agent-service.js +123 -0
- package/node_modules/@maka/runtime/dist/plugin-approval-service.js +33 -0
- package/node_modules/@maka/runtime/dist/plugin-attachment-service.js +45 -0
- package/node_modules/@maka/runtime/dist/plugin-client-bridge-service.js +308 -0
- package/node_modules/@maka/runtime/dist/plugin-command-service.js +100 -0
- package/node_modules/@maka/runtime/dist/plugin-composition-loader.js +209 -56
- package/node_modules/@maka/runtime/dist/plugin-data-services.js +315 -0
- package/node_modules/@maka/runtime/dist/plugin-executor-backend.js +451 -0
- package/node_modules/@maka/runtime/dist/plugin-executor-service.js +576 -0
- package/node_modules/@maka/runtime/dist/plugin-fs-service.js +54 -0
- package/node_modules/@maka/runtime/dist/plugin-goal-service.js +53 -0
- package/node_modules/@maka/runtime/dist/plugin-internals.js +78 -0
- package/node_modules/@maka/runtime/dist/plugin-invocation-signal.js +24 -0
- package/node_modules/@maka/runtime/dist/plugin-llm-service.js +77 -0
- package/node_modules/@maka/runtime/dist/plugin-lsp-service.js +94 -0
- package/node_modules/@maka/runtime/dist/plugin-runtime.js +211 -10
- package/node_modules/@maka/runtime/dist/plugin-scope-registry.js +91 -0
- package/node_modules/@maka/runtime/dist/plugin-session-query-service.js +63 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-env-service.js +87 -0
- package/node_modules/@maka/runtime/dist/plugin-shell-service.js +66 -0
- package/node_modules/@maka/runtime/dist/plugin-skill-service.js +93 -0
- package/node_modules/@maka/runtime/dist/plugin-system-prompt-service.js +346 -0
- package/node_modules/@maka/runtime/dist/plugin-tool-service.js +171 -0
- package/node_modules/@maka/runtime/dist/plugin-user-question-service.js +43 -0
- package/node_modules/@maka/runtime/dist/plugin-web-service.js +61 -0
- package/node_modules/@maka/runtime/dist/prior-run-context.js +24 -94
- package/node_modules/@maka/runtime/dist/process-tree-terminator.js +2 -2
- package/node_modules/@maka/runtime/dist/prompt-composition.js +36 -31
- package/node_modules/@maka/runtime/dist/provider-error-classification.js +127 -205
- package/node_modules/@maka/runtime/dist/provider-error-signals.js +31 -0
- package/node_modules/@maka/runtime/dist/provider-image-overflow-recovery.js +12 -31
- package/node_modules/@maka/runtime/dist/provider-request-telemetry.js +207 -204
- package/node_modules/@maka/runtime/dist/provider-retry-policy.js +79 -0
- package/node_modules/@maka/runtime/dist/provider-urls.js +1 -18
- package/node_modules/@maka/runtime/dist/pty-screen-collector.js +32 -6
- package/node_modules/@maka/runtime/dist/quiescent-session-snapshot.js +78 -0
- package/node_modules/@maka/runtime/dist/read-page.js +234 -0
- package/node_modules/@maka/runtime/dist/recall-candidates.js +53 -0
- package/node_modules/@maka/runtime/dist/recall-tools.js +282 -0
- package/node_modules/@maka/runtime/dist/recovery-resolver.js +0 -59
- package/node_modules/@maka/runtime/dist/request-customization-fetch.js +14 -7
- package/node_modules/@maka/runtime/dist/request-projection.js +2 -15
- package/node_modules/@maka/runtime/dist/request-shape.js +187 -365
- package/node_modules/@maka/runtime/dist/responses-reasoning-state.js +19 -7
- package/node_modules/@maka/runtime/dist/ripgrep-executable.js +62 -0
- package/node_modules/@maka/runtime/dist/ripgrep-guidance.js +81 -0
- package/node_modules/@maka/runtime/dist/run-handoff-gate.js +97 -0
- package/node_modules/@maka/runtime/dist/run-trace.js +2 -34
- package/node_modules/@maka/runtime/dist/runtime-continuation-admission.js +1 -1
- package/node_modules/@maka/runtime/dist/runtime-event-backfill.js +114 -66
- package/node_modules/@maka/runtime/dist/runtime-event-read-model.js +420 -234
- package/node_modules/@maka/runtime/dist/runtime-invocation-route.js +49 -0
- package/node_modules/@maka/runtime/dist/runtime-kernel.js +619 -357
- package/node_modules/@maka/runtime/dist/runtime-ledger-repair.js +235 -450
- package/node_modules/@maka/runtime/dist/runtime-read-model.js +94 -200
- package/node_modules/@maka/runtime/dist/runtime-resume.js +162 -126
- package/node_modules/@maka/runtime/dist/sandbox/index.js +0 -1
- package/node_modules/@maka/runtime/dist/sandbox/linux-profile-path.js +7 -1
- package/node_modules/@maka/runtime/dist/sandbox/linux-sandbox.js +20 -17
- package/node_modules/@maka/runtime/dist/sandbox/macos-seatbelt.js +0 -12
- package/node_modules/@maka/runtime/dist/sandbox/sandbox-manager.js +0 -35
- package/node_modules/@maka/runtime/dist/sandbox/windows-sandbox.js +0 -12
- package/node_modules/@maka/runtime/dist/scheduled-task-tools.js +68 -9
- package/node_modules/@maka/runtime/dist/session-event-runtime-mapper.js +67 -20
- package/node_modules/@maka/runtime/dist/session-export.js +178 -0
- package/node_modules/@maka/runtime/dist/session-import.js +100 -0
- package/node_modules/@maka/runtime/dist/session-manager.js +985 -1067
- package/node_modules/@maka/runtime/dist/session-projection-helpers.js +18 -28
- package/node_modules/@maka/runtime/dist/session-recap.js +90 -17
- package/node_modules/@maka/runtime/dist/session-todo-tools.js +67 -0
- package/node_modules/@maka/runtime/dist/session-trace-projection.js +25 -30
- package/node_modules/@maka/runtime/dist/shell-detect.js +3 -7
- package/node_modules/@maka/runtime/dist/shell-exec.js +7 -25
- package/node_modules/@maka/runtime/dist/shell-run-contract.js +0 -1
- package/node_modules/@maka/runtime/dist/shell-run-manager.js +83 -78
- package/node_modules/@maka/runtime/dist/shell-run-tool-result.js +19 -9
- package/node_modules/@maka/runtime/dist/shell-tools.js +84 -14
- package/node_modules/@maka/runtime/dist/skills-discovery.js +17 -23
- package/node_modules/@maka/runtime/dist/stream-graph-coordinator.js +96 -20
- package/node_modules/@maka/runtime/dist/stream-graph-handoff.js +6 -1
- package/node_modules/@maka/runtime/dist/stream-graph-projection.js +18 -15
- package/node_modules/@maka/runtime/dist/stream-graph-read-model.js +5 -0
- package/node_modules/@maka/runtime/dist/stream-graph-schedule-reconcile.js +1 -0
- package/node_modules/@maka/runtime/dist/stream-graph-supervisor-tools.js +26 -12
- package/node_modules/@maka/runtime/dist/stream-usage-fallback-fetch.js +74 -0
- package/node_modules/@maka/runtime/dist/subagent-tools.js +77 -90
- package/node_modules/@maka/runtime/dist/subscription-credentials.js +51 -4
- package/node_modules/@maka/runtime/dist/subscription-model-fetch.js +135 -13
- package/node_modules/@maka/runtime/dist/system-prompt/main-session-prompt.js +21 -2
- package/node_modules/@maka/runtime/dist/system-prompt/workspace-instructions.js +11 -6
- package/node_modules/@maka/runtime/dist/tavily-search.js +8 -2
- package/node_modules/@maka/runtime/dist/telemetry/model-pricing.generated.js +299 -215
- package/node_modules/@maka/runtime/dist/terminal-run-commit.js +42 -171
- package/node_modules/@maka/runtime/dist/test-connection.js +35 -85
- package/node_modules/@maka/runtime/dist/text-line-window.js +49 -0
- package/node_modules/@maka/runtime/dist/tool-activation-identity.js +41 -0
- package/node_modules/@maka/runtime/dist/tool-availability.js +89 -8
- package/node_modules/@maka/runtime/dist/tool-output.js +36 -13
- package/node_modules/@maka/runtime/dist/tool-result-archive-capability.js +24 -36
- package/node_modules/@maka/runtime/dist/tool-result-archive-encoding.js +38 -0
- package/node_modules/@maka/runtime/dist/tool-result-archive-resource.js +93 -245
- package/node_modules/@maka/runtime/dist/tool-result-archive-transition.js +186 -0
- package/node_modules/@maka/runtime/dist/tool-result-archive.js +50 -173
- package/node_modules/@maka/runtime/dist/tool-runtime.js +415 -613
- package/node_modules/@maka/runtime/dist/unified-diff.js +40 -10
- package/node_modules/@maka/runtime/dist/web-fetch-tool.js +4 -2
- package/node_modules/@maka/runtime/dist/workers/filesystem-worker.js +13681 -5108
- package/node_modules/@maka/runtime/dist/workspace-executor.js +26 -35
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/README.md +44 -8
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/package.json +4 -4
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SlackWebSocket.js +39 -3
- package/node_modules/@maka/runtime/node_modules/@slack/socket-mode/dist/src/SocketModeClient.js +4 -0
- 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 +5 -5
- 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/Client.md +4 -0
- 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/EnvHttpProxyAgent.md +3 -2
- 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/EventSource.md +4 -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 +8 -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/api/Socks5ProxyAgent.md +7 -1
- 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/cache/memory-cache-store.js +2 -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/symbols.js +2 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client-h2.js +94 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/client.js +9 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +31 -9
- 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 +33 -3
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/deduplication-handler.js +29 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/redirect-handler.js +26 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/handler/retry-handler.js +215 -38
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/cache.js +69 -13
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/decompress.js +319 -50
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/@maka/runtime/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/mock/mock-utils.js +11 -10
- package/node_modules/@maka/runtime/node_modules/undici/lib/util/cache.js +45 -3
- 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/parse.js +150 -147
- 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-stream.js +28 -1
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/eventsource/eventsource.js +38 -4
- 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 +52 -25
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/fetch/request.js +76 -82
- 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 +13 -8
- 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 +5 -17
- package/node_modules/@maka/runtime/node_modules/undici/lib/web/websocket/connection.js +34 -13
- 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/permessage-deflate.js +5 -0
- 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 +27 -14
- 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 +3 -3
- package/node_modules/@maka/runtime/package.json +53 -22
- package/node_modules/@maka/runtime-host/dist/adapter/provider-retry-projector.js +63 -0
- package/node_modules/@maka/runtime-host/dist/adapter/session-projector.js +137 -156
- package/node_modules/@maka/runtime-host/dist/candidate-cli.js +7 -7
- package/node_modules/@maka/runtime-host/dist/candidate-entry.js +18 -7
- package/node_modules/@maka/runtime-host/dist/candidate-launch-owner-guard.js +13 -0
- package/node_modules/@maka/runtime-host/dist/client/capability-provider-service.js +2 -0
- package/node_modules/@maka/runtime-host/dist/client/catalog-reader.js +64 -25
- package/node_modules/@maka/runtime-host/dist/client/client-capability-channel.js +190 -30
- package/node_modules/@maka/runtime-host/dist/client/connect-or-spawn.js +60 -20
- package/node_modules/@maka/runtime-host/dist/client/connection.js +170 -63
- package/node_modules/@maka/runtime-host/dist/client/host-handoff-copy.js +248 -0
- package/node_modules/@maka/runtime-host/dist/client/host-handoff.js +311 -0
- package/node_modules/@maka/runtime-host/dist/client/host-profile.js +483 -94
- package/node_modules/@maka/runtime-host/dist/client/host-retirement.js +28 -5
- package/node_modules/@maka/runtime-host/dist/client/hosted-execution-target.js +33 -6
- package/node_modules/@maka/runtime-host/dist/client/hosted-execution.js +10 -28
- package/node_modules/@maka/runtime-host/dist/client/index.js +15 -11
- package/node_modules/@maka/runtime-host/dist/client/launcher.js +12 -3
- package/node_modules/@maka/runtime-host/dist/client/oauth-presentation.js +1 -1
- package/node_modules/@maka/runtime-host/dist/client/owner-connection-code.js +38 -4
- package/node_modules/@maka/runtime-host/dist/client/peer-client.js +389 -25
- package/node_modules/@maka/runtime-host/dist/client/process-identity.js +73 -0
- package/node_modules/@maka/runtime-host/dist/client/reconnect-lifecycle.js +80 -8
- package/node_modules/@maka/runtime-host/dist/client/reconnecting-connection.js +15 -4
- package/node_modules/@maka/runtime-host/dist/client/registered-host-termination.js +107 -0
- package/node_modules/@maka/runtime-host/dist/client/remote-compatibility-error.js +2 -0
- package/node_modules/@maka/runtime-host/dist/client/session-catalog-summary.js +15 -1
- package/node_modules/@maka/runtime-host/dist/client/session-subscription.js +105 -125
- package/node_modules/@maka/runtime-host/dist/client/ssh-operator-activation.js +48 -11
- package/node_modules/@maka/runtime-host/dist/client/startup-error.js +1 -1
- package/node_modules/@maka/runtime-host/dist/client/wait-for-ready.js +1 -1
- package/node_modules/@maka/runtime-host/dist/client/wsl-control.js +0 -8
- package/node_modules/@maka/runtime-host/dist/client/wsl-environment.js +12 -8
- package/node_modules/@maka/runtime-host/dist/client-capability-entity-id.js +27 -0
- package/node_modules/@maka/runtime-host/dist/composition-identity.js +19 -0
- package/node_modules/@maka/runtime-host/dist/control/endpoint.js +8 -9
- package/node_modules/@maka/runtime-host/dist/execution-candidate-main.js +8 -1
- package/node_modules/@maka/runtime-host/dist/node-error.js +22 -0
- package/node_modules/@maka/runtime-host/dist/operator/access-management-frame.js +10 -1
- package/node_modules/@maka/runtime-host/dist/operator/index.js +5 -2
- package/node_modules/@maka/runtime-host/dist/operator/managed-deployment.js +17 -8
- package/node_modules/@maka/runtime-host/dist/operator/operator-command.js +110 -0
- package/node_modules/@maka/runtime-host/dist/operator/peer-management-frame.js +2 -0
- package/node_modules/@maka/runtime-host/dist/operator/retirement-cancellation.js +20 -0
- package/node_modules/@maka/runtime-host/dist/operator/service-management-frame.js +5 -6
- package/node_modules/@maka/runtime-host/dist/operator/setup-frame.js +32 -6
- package/node_modules/@maka/runtime-host/dist/peer-mesh/index.js +3 -3
- package/node_modules/@maka/runtime-host/dist/peer-mesh/limits.js +1 -2
- package/node_modules/@maka/runtime-host/dist/peer-mesh/model.js +48 -60
- package/node_modules/@maka/runtime-host/dist/peer-mesh/node.js +1228 -472
- package/node_modules/@maka/runtime-host/dist/peer-mesh/owner.js +33 -70
- package/node_modules/@maka/runtime-host/dist/peer-mesh/store.js +141 -59
- package/node_modules/@maka/runtime-host/dist/peer-reachability/index.js +21 -0
- package/node_modules/@maka/runtime-host/dist/peer-reachability/model.js +202 -0
- package/node_modules/@maka/runtime-host/dist/peer-reachability/owner.js +118 -0
- package/node_modules/@maka/runtime-host/dist/peer-reachability/publisher.js +243 -0
- package/node_modules/@maka/runtime-host/dist/protocol/agent-graph.js +5 -12
- package/node_modules/@maka/runtime-host/dist/protocol/artifact.js +11 -20
- package/node_modules/@maka/runtime-host/dist/protocol/client-capability.js +273 -46
- package/node_modules/@maka/runtime-host/dist/protocol/codec.js +11 -0
- package/node_modules/@maka/runtime-host/dist/protocol/configuration.js +55 -9
- package/node_modules/@maka/runtime-host/dist/protocol/connection-catalog-change.js +26 -0
- package/node_modules/@maka/runtime-host/dist/protocol/connection-effects.js +42 -9
- package/node_modules/@maka/runtime-host/dist/protocol/external-agent-setup.js +149 -0
- package/node_modules/@maka/runtime-host/dist/protocol/external-session.js +41 -12
- package/node_modules/@maka/runtime-host/dist/protocol/host-resources.js +253 -0
- package/node_modules/@maka/runtime-host/dist/protocol/host-status.js +49 -11
- package/node_modules/@maka/runtime-host/dist/protocol/index.js +283 -5
- package/node_modules/@maka/runtime-host/dist/protocol/message-queue-limits.js +21 -0
- package/node_modules/@maka/runtime-host/dist/protocol/message.js +29 -112
- package/node_modules/@maka/runtime-host/dist/protocol/network-proxy.js +1 -7
- package/node_modules/@maka/runtime-host/dist/protocol/oauth.js +104 -8
- package/node_modules/@maka/runtime-host/dist/protocol/operations.js +34 -10
- package/node_modules/@maka/runtime-host/dist/protocol/peer-mesh.js +14 -31
- package/node_modules/@maka/runtime-host/dist/protocol/plan.js +1 -0
- package/node_modules/@maka/runtime-host/dist/protocol/plugin-platform.js +899 -0
- package/node_modules/@maka/runtime-host/dist/protocol/project-catalog.js +2 -2
- package/node_modules/@maka/runtime-host/dist/protocol/prompt-suggestions.js +61 -0
- package/node_modules/@maka/runtime-host/dist/protocol/queue-mutation.js +136 -0
- package/node_modules/@maka/runtime-host/dist/protocol/recall.js +270 -0
- package/node_modules/@maka/runtime-host/dist/protocol/runtime-policy.js +84 -26
- package/node_modules/@maka/runtime-host/dist/protocol/runtime-resource.js +4 -17
- package/node_modules/@maka/runtime-host/dist/protocol/scheduled-task.js +26 -6
- package/node_modules/@maka/runtime-host/dist/protocol/session-bundle.js +100 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-catalog-change.js +24 -6
- package/node_modules/@maka/runtime-host/dist/protocol/session-catalog.js +134 -14
- package/node_modules/@maka/runtime-host/dist/protocol/session-collaboration.js +68 -4
- package/node_modules/@maka/runtime-host/dist/protocol/session-continuity.js +71 -34
- package/node_modules/@maka/runtime-host/dist/protocol/session-retirement.js +30 -3
- package/node_modules/@maka/runtime-host/dist/protocol/session-revision.js +11 -2
- package/node_modules/@maka/runtime-host/dist/protocol/session-todo.js +53 -0
- package/node_modules/@maka/runtime-host/dist/protocol/session-transcript.js +34 -127
- package/node_modules/@maka/runtime-host/dist/protocol/session-turns.js +38 -59
- package/node_modules/@maka/runtime-host/dist/protocol/skill-catalog.js +2 -1
- package/node_modules/@maka/runtime-host/dist/protocol/turn-provider-retry.js +69 -0
- package/node_modules/@maka/runtime-host/dist/protocol/turn.js +54 -95
- package/node_modules/@maka/runtime-host/dist/protocol/usage-pricing.js +39 -3
- package/node_modules/@maka/runtime-host/dist/protocol/usage-screen.js +312 -0
- package/node_modules/@maka/runtime-host/dist/protocol/workhub-coordination.js +218 -75
- package/node_modules/@maka/runtime-host/dist/server/access-authority.js +78 -17
- package/node_modules/@maka/runtime-host/dist/server/access-credential-metadata.js +4 -2
- package/node_modules/@maka/runtime-host/dist/server/access-credential-store.js +137 -49
- package/node_modules/@maka/runtime-host/dist/server/acp/antigravity-install.js +242 -0
- package/node_modules/@maka/runtime-host/dist/server/acp/antigravity.js +154 -0
- package/node_modules/@maka/runtime-host/dist/server/acp/connection.js +116 -0
- package/node_modules/@maka/runtime-host/dist/server/agent-graph-coordinator.js +0 -3
- package/node_modules/@maka/runtime-host/dist/server/agent-graph-execution-coordinator.js +1 -2
- package/node_modules/@maka/runtime-host/dist/server/artifact-coordinator.js +19 -22
- package/node_modules/@maka/runtime-host/dist/server/bootstrap-runtime-policy.js +95 -97
- package/node_modules/@maka/runtime-host/dist/server/builtin-external-agent-plugins.js +188 -0
- package/node_modules/@maka/runtime-host/dist/server/candidate.js +15 -7
- package/node_modules/@maka/runtime-host/dist/server/canonical-session-projection.js +2 -1
- package/node_modules/@maka/runtime-host/dist/server/canonical-turn-snapshot.js +34 -24
- package/node_modules/@maka/runtime-host/dist/server/canonical-usage-reader.js +24 -11
- package/node_modules/@maka/runtime-host/dist/server/child-agent-composition.js +2 -1
- package/node_modules/@maka/runtime-host/dist/server/client-capability-coordinator.js +633 -101
- package/node_modules/@maka/runtime-host/dist/server/client-capability-invocation-broker.js +266 -53
- package/node_modules/@maka/runtime-host/dist/server/client-capability-provider-id.js +31 -0
- package/node_modules/@maka/runtime-host/dist/server/client-capability-recovery.js +45 -44
- package/node_modules/@maka/runtime-host/dist/server/configuration-coordinator.js +20 -1
- package/node_modules/@maka/runtime-host/dist/server/connection-effect-coordinator.js +46 -18
- package/node_modules/@maka/runtime-host/dist/server/connection-session.js +42 -19
- package/node_modules/@maka/runtime-host/dist/server/context-coordinator.js +2 -0
- package/node_modules/@maka/runtime-host/dist/server/daily-review-coordinator.js +164 -82
- package/node_modules/@maka/runtime-host/dist/server/execution-artifacts.js +59 -57
- package/node_modules/@maka/runtime-host/dist/server/execution-candidate.js +4 -1
- package/node_modules/@maka/runtime-host/dist/server/execution-composition-factory.js +10 -4
- package/node_modules/@maka/runtime-host/dist/server/execution-composition.js +1511 -240
- package/node_modules/@maka/runtime-host/dist/server/execution-inspect-coordinator.js +35 -29
- package/node_modules/@maka/runtime-host/dist/server/execution-model-authority.js +160 -20
- package/node_modules/@maka/runtime-host/dist/server/execution-model-composition.js +102 -73
- package/node_modules/@maka/runtime-host/dist/server/execution-service.js +49 -25
- package/node_modules/@maka/runtime-host/dist/server/extension-bundle.js +253 -0
- package/node_modules/@maka/runtime-host/dist/server/extension-package-manifest.js +280 -0
- package/node_modules/@maka/runtime-host/dist/server/external-agent-setup-coordinator.js +190 -0
- package/node_modules/@maka/runtime-host/dist/server/external-session-coordinator.js +130 -55
- package/node_modules/@maka/runtime-host/dist/server/failure-diagnostic.js +24 -0
- package/node_modules/@maka/runtime-host/dist/server/generated-text.js +39 -0
- package/node_modules/@maka/runtime-host/dist/server/goal-coordinator.js +176 -40
- package/node_modules/@maka/runtime-host/dist/server/host-change-feed.js +26 -22
- package/node_modules/@maka/runtime-host/dist/server/host-composition-source.js +47 -0
- package/node_modules/@maka/runtime-host/dist/server/host-composition.js +1 -29
- package/node_modules/@maka/runtime-host/dist/server/host-kernel.js +164 -35
- package/node_modules/@maka/runtime-host/dist/server/host-residency-registry.js +41 -20
- package/node_modules/@maka/runtime-host/dist/server/host-resource-collector.js +223 -0
- package/node_modules/@maka/runtime-host/dist/server/host-resource-probe-main.js +44 -0
- package/node_modules/@maka/runtime-host/dist/server/host-resource-probe.js +83 -0
- package/node_modules/@maka/runtime-host/dist/server/host-session-availability.js +15 -4
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-admission-registry.js +3 -1
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-projection.js +12 -7
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-recovery.js +205 -75
- package/node_modules/@maka/runtime-host/dist/server/hosted-execution-tool-profile.js +82 -12
- package/node_modules/@maka/runtime-host/dist/server/index.js +5 -0
- package/node_modules/@maka/runtime-host/dist/server/interaction-coordinator.js +467 -40
- package/node_modules/@maka/runtime-host/dist/server/interaction-projection.js +36 -1
- package/node_modules/@maka/runtime-host/dist/server/interactive-run-composer.js +178 -126
- package/node_modules/@maka/runtime-host/dist/server/interactive-turn-coordinator.js +5 -17
- package/node_modules/@maka/runtime-host/dist/server/jev-routing-model.js +157 -0
- package/node_modules/@maka/runtime-host/dist/server/json-array-page-budget.js +48 -0
- package/node_modules/@maka/runtime-host/dist/server/listener-set.js +8 -6
- package/node_modules/@maka/runtime-host/dist/server/memory-projection.js +14 -15
- package/node_modules/@maka/runtime-host/dist/server/message-coordinator.js +565 -353
- package/node_modules/@maka/runtime-host/dist/server/message-queue-state.js +69 -0
- package/node_modules/@maka/runtime-host/dist/server/model-metadata-refresh.js +96 -0
- package/node_modules/@maka/runtime-host/dist/server/network-proxy-coordinator.js +0 -1
- package/node_modules/@maka/runtime-host/dist/server/oauth-coordinator.js +169 -45
- package/node_modules/@maka/runtime-host/dist/server/oauth-execution-authority.js +20 -3
- package/node_modules/@maka/runtime-host/dist/server/operation-dispatcher.js +66 -127
- package/node_modules/@maka/runtime-host/dist/server/peer-listener.js +131 -48
- package/node_modules/@maka/runtime-host/dist/server/peer-mesh-authority.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/plan-coordinator.js +52 -16
- package/node_modules/@maka/runtime-host/dist/server/plugin-composition-patch.js +58 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-composition-store.js +141 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-data-runtime.js +234 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-package-loader.js +204 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-package-store.js +545 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform-coordinator.js +400 -0
- package/node_modules/@maka/runtime-host/dist/server/plugin-platform.js +1273 -0
- package/node_modules/@maka/runtime-host/dist/server/process-lifecycle.js +1 -1
- package/node_modules/@maka/runtime-host/dist/server/process-termination-error.js +27 -0
- package/node_modules/@maka/runtime-host/dist/server/project-catalog-coordinator.js +10 -12
- package/node_modules/@maka/runtime-host/dist/server/project-directory-authority.js +4 -3
- package/node_modules/@maka/runtime-host/dist/server/prompt-suggestion.js +179 -0
- package/node_modules/@maka/runtime-host/dist/server/provider-retry-projection.js +71 -0
- package/node_modules/@maka/runtime-host/dist/server/queued-mutation-executor.js +94 -0
- package/node_modules/@maka/runtime-host/dist/server/recall-coordinator.js +117 -0
- package/node_modules/@maka/runtime-host/dist/server/recall-material-fetch.js +92 -0
- package/node_modules/@maka/runtime-host/dist/server/root-admission-owner.js +32 -7
- package/node_modules/@maka/runtime-host/dist/server/root-turn-coordinator.js +803 -218
- package/node_modules/@maka/runtime-host/dist/server/runtime-policy-coordinator.js +74 -18
- package/node_modules/@maka/runtime-host/dist/server/runtime-resource-coordinator.js +24 -31
- package/node_modules/@maka/runtime-host/dist/server/runtime-resource-projection.js +15 -32
- package/node_modules/@maka/runtime-host/dist/server/safe-boundary-resume-policy.js +27 -0
- package/node_modules/@maka/runtime-host/dist/server/sandbox-boundary-graph-wake.js +3 -5
- package/node_modules/@maka/runtime-host/dist/server/scheduled-task-coordinator.js +150 -41
- package/node_modules/@maka/runtime-host/dist/server/serial-outbound-writer.js +46 -4
- package/node_modules/@maka/runtime-host/dist/server/session-admission-gate.js +21 -1
- package/node_modules/@maka/runtime-host/dist/server/session-bundle-coordinator.js +166 -0
- package/node_modules/@maka/runtime-host/dist/server/session-catalog-coordinator.js +461 -62
- package/node_modules/@maka/runtime-host/dist/server/session-continuity-coordinator.js +484 -586
- package/node_modules/@maka/runtime-host/dist/server/session-effect-coordinator.js +13 -7
- package/node_modules/@maka/runtime-host/dist/server/session-retirement-coordinator.js +68 -16
- package/node_modules/@maka/runtime-host/dist/server/session-revision-coordinator.js +118 -189
- package/node_modules/@maka/runtime-host/dist/server/session-revision-graph-references.js +64 -85
- package/node_modules/@maka/runtime-host/dist/server/session-sidecar-purge.js +2 -1
- package/node_modules/@maka/runtime-host/dist/server/session-title.js +3 -16
- package/node_modules/@maka/runtime-host/dist/server/session-todo-coordinator.js +77 -0
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-pager.js +23 -488
- package/node_modules/@maka/runtime-host/dist/server/session-transcript-reader.js +407 -115
- package/node_modules/@maka/runtime-host/dist/server/session-turn-access-request-coordinator.js +33 -26
- package/node_modules/@maka/runtime-host/dist/server/shared-session-transcript.js +4 -1
- package/node_modules/@maka/runtime-host/dist/server/skill-catalog-coordinator.js +18 -2
- package/node_modules/@maka/runtime-host/dist/server/skill-catalog-repository.js +16 -17
- package/node_modules/@maka/runtime-host/dist/server/storage-maintenance.js +109 -0
- package/node_modules/@maka/runtime-host/dist/server/usage-pricing-coordinator.js +120 -36
- package/node_modules/@maka/runtime-host/dist/server/web-fetch-tool.js +38 -2
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-action-gate.js +625 -39
- package/node_modules/@maka/runtime-host/dist/server/workhub-coordination-coordinator.js +625 -132
- package/node_modules/@maka/runtime-host/dist/server/workhub-message-attachments.js +47 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-result-coordinator.js +203 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-result-runtime.js +293 -0
- package/node_modules/@maka/runtime-host/dist/server/workhub-target-execution-authority.js +161 -0
- package/node_modules/@maka/runtime-host/dist/transport/framed-byte-stream-transport.js +43 -6
- package/node_modules/@maka/runtime-host/dist/transport/local-ipc-framing.js +4 -2
- package/node_modules/@maka/runtime-host/dist/transport/peer-native.js +112 -24
- package/node_modules/@maka/runtime-host/dist/transport/resumable-peer-stream.js +469 -0
- package/node_modules/@maka/runtime-host/dist/webrtc-stun-policy.js +114 -0
- package/node_modules/@maka/runtime-host/package.json +9 -1
- package/node_modules/@maka/storage/dist/agent-run-store-contract.js +956 -0
- package/node_modules/@maka/storage/dist/agent-run-store.js +264 -1058
- package/node_modules/@maka/storage/dist/artifact-attachments.js +66 -18
- package/node_modules/@maka/storage/dist/artifact-metadata-codec.js +28 -31
- package/node_modules/@maka/storage/dist/artifact-store.js +265 -787
- package/node_modules/@maka/storage/dist/artifact-stores.js +5 -12
- package/node_modules/@maka/storage/dist/artifact-writer-lock.js +1 -1
- package/node_modules/@maka/storage/dist/atomic-file-write.js +75 -0
- package/node_modules/@maka/storage/dist/claude-code-session-adapter.js +802 -321
- package/node_modules/@maka/storage/dist/claude-code-transcript-lineage.js +106 -77
- package/node_modules/@maka/storage/dist/codex-session-adapter.js +845 -315
- package/node_modules/@maka/storage/dist/config-transfer.js +14 -8
- package/node_modules/@maka/storage/dist/context-offload-snapshot.js +397 -0
- package/node_modules/@maka/storage/dist/context-value-mutation-gate.js +59 -0
- package/node_modules/@maka/storage/dist/conversation-operational-state.js +10 -0
- package/node_modules/@maka/storage/dist/credential-store.js +15 -63
- package/node_modules/@maka/storage/dist/execution-persistence-provider.js +55 -0
- package/node_modules/@maka/storage/dist/execution-record-codec.js +1 -22
- package/node_modules/@maka/storage/dist/execution-stores.js +254 -81
- package/node_modules/@maka/storage/dist/external-session-importer.js +25 -3
- package/node_modules/@maka/storage/dist/file-lifetime-owner.js +30 -2
- package/node_modules/@maka/storage/dist/file-session-repository.js +1012 -0
- package/node_modules/@maka/storage/dist/git-exec.js +61 -0
- package/node_modules/@maka/storage/dist/git-worktree-child-executor.js +8 -35
- package/node_modules/@maka/storage/dist/goal-authority.js +41 -10
- package/node_modules/@maka/storage/dist/graph-control-values.js +126 -0
- package/node_modules/@maka/storage/dist/interaction-store-contract.js +231 -0
- package/node_modules/@maka/storage/dist/interaction-store-public.js +1 -1
- package/node_modules/@maka/storage/dist/interaction-store.js +196 -166
- package/node_modules/@maka/storage/dist/legacy-run-header.js +327 -0
- package/node_modules/@maka/storage/dist/local-execution-persistence.js +80 -0
- package/node_modules/@maka/storage/dist/mcp-config-store.js +123 -30
- package/node_modules/@maka/storage/dist/message-admission-store.js +8 -3
- package/node_modules/@maka/storage/dist/model-call-ledger.js +199 -32
- package/node_modules/@maka/storage/dist/model-call-usage-sql.js +136 -0
- package/node_modules/@maka/storage/dist/model-facts-store.js +56 -0
- package/node_modules/@maka/storage/dist/offset-external-session-catalog.js +69 -0
- package/node_modules/@maka/storage/dist/opencode-session-adapter.js +278 -77
- package/node_modules/@maka/storage/dist/operational-state-backup.js +15 -11
- package/node_modules/@maka/storage/dist/operational-state-store-public.js +1 -1
- package/node_modules/@maka/storage/dist/operational-state-store.js +60 -8
- package/node_modules/@maka/storage/dist/plan-authority.js +50 -0
- package/node_modules/@maka/storage/dist/plan-store.js +30 -0
- package/node_modules/@maka/storage/dist/process-lifetime-file-update-lock.js +0 -41
- package/node_modules/@maka/storage/dist/production-session-snapshot.js +761 -0
- package/node_modules/@maka/storage/dist/project-catalog.js +51 -74
- package/node_modules/@maka/storage/dist/quiescent-session-snapshot.js +1154 -0
- package/node_modules/@maka/storage/dist/recall-fold.js +65 -0
- package/node_modules/@maka/storage/dist/root-authority.js +4 -0
- package/node_modules/@maka/storage/dist/runtime-event-invariants.js +2 -2
- package/node_modules/@maka/storage/dist/runtime-event-persistence.js +9 -0
- package/node_modules/@maka/storage/dist/runtime-event-store-contract.js +19 -0
- package/node_modules/@maka/storage/dist/runtime-partial-values.js +118 -0
- package/node_modules/@maka/storage/dist/runtime-policy/connection-catalog-document.js +181 -112
- package/node_modules/@maka/storage/dist/runtime-policy/coordinator.js +552 -121
- package/node_modules/@maka/storage/dist/runtime-policy/credential-vault-document.js +4 -1
- package/node_modules/@maka/storage/dist/runtime-policy/document-io.js +22 -16
- package/node_modules/@maka/storage/dist/runtime-policy/legacy-custom-connection.js +65 -0
- package/node_modules/@maka/storage/dist/runtime-policy/oauth-login-receipt-document.js +207 -0
- package/node_modules/@maka/storage/dist/runtime-policy/onboarding-transaction.js +157 -9
- package/node_modules/@maka/storage/dist/runtime-policy/policy-document.js +12 -4
- package/node_modules/@maka/storage/dist/runtime-policy-stores.js +7 -4
- package/node_modules/@maka/storage/dist/runtime-transcript-query.js +333 -0
- package/node_modules/@maka/storage/dist/scheduled-task-store.js +256 -283
- package/node_modules/@maka/storage/dist/session-bundle-manifest.js +5 -17
- package/node_modules/@maka/storage/dist/session-bundle-policy.js +1042 -34
- package/node_modules/@maka/storage/dist/session-bundle-ustar.js +12 -0
- package/node_modules/@maka/storage/dist/session-copy-cleanup.js +12 -7
- package/node_modules/@maka/storage/dist/session-message-projection.js +24 -5
- package/node_modules/@maka/storage/dist/session-repository.js +767 -0
- package/node_modules/@maka/storage/dist/session-store-contract.js +61 -0
- package/node_modules/@maka/storage/dist/session-store-values.js +354 -0
- package/node_modules/@maka/storage/dist/session-store.js +129 -433
- package/node_modules/@maka/storage/dist/session-todo-authority.js +106 -0
- package/node_modules/@maka/storage/dist/session-todo-store.js +169 -0
- package/node_modules/@maka/storage/dist/settings-store.js +297 -34
- package/node_modules/@maka/storage/dist/shell-run-authority.js +1 -0
- package/node_modules/@maka/storage/dist/shell-run-store.js +15 -0
- package/node_modules/@maka/storage/dist/sqlite-artifact-metadata.js +51 -17
- package/node_modules/@maka/storage/dist/sqlite-artifact-schema.js +55 -5
- package/node_modules/@maka/storage/dist/sqlite-context-offload-store.js +42 -12
- package/node_modules/@maka/storage/dist/sqlite-core-execution-schema.js +46 -2
- package/node_modules/@maka/storage/dist/sqlite-long-term-memory-store.js +86 -12
- package/node_modules/@maka/storage/dist/sqlite-runtime-schema.js +455 -1
- package/node_modules/@maka/storage/dist/sqlite-runtime-store.js +1461 -359
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-schema.js +114 -5
- package/node_modules/@maka/storage/dist/sqlite-session-metadata-store.js +705 -1049
- package/node_modules/@maka/storage/dist/sqlite-usage-schema.js +280 -20
- package/node_modules/@maka/storage/dist/sqlite-usage-store.js +29 -6
- package/node_modules/@maka/storage/dist/sqlite-workflow-schema.js +7 -8
- package/node_modules/@maka/storage/dist/stable-storage.js +16 -2
- package/node_modules/@maka/storage/dist/storage-id.js +28 -0
- package/node_modules/@maka/storage/dist/storage-writer-composition.js +5 -9
- package/node_modules/@maka/storage/dist/telemetry-file-schema.js +5 -3
- package/node_modules/@maka/storage/dist/tool-commit-validation.js +111 -0
- package/node_modules/@maka/storage/dist/tool-result-archive-evidence.js +138 -0
- package/node_modules/@maka/storage/dist/usage-screen.js +384 -0
- package/node_modules/@maka/storage/dist/usage-stores.js +30 -9
- package/node_modules/@maka/storage/dist/work-board-store.js +44 -5
- package/node_modules/@maka/storage/dist/workspace-identity.js +2 -15
- package/node_modules/@maka/storage/dist/workspace-version-authority-internal.js +1 -8
- package/node_modules/@maka/storage/package.json +9 -5
- 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-D0qEN74R.cjs +7521 -0
- package/node_modules/@modelcontextprotocol/client/dist/src-DDAAhLnO.mjs +7153 -0
- 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/client/node_modules/@modelcontextprotocol/core/dist/auth--n_Yzytt.d.cts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/auth-4-zilcqg.cjs +2900 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/auth-CGP0BDVq.mjs +1679 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/auth-YUQV3RRv.d.mts.map +1 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/index.cjs +175 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/index.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/internal.cjs +201 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/dist/internal.mjs +3 -0
- package/node_modules/@modelcontextprotocol/client/node_modules/@modelcontextprotocol/core/package.json +85 -0
- package/node_modules/@modelcontextprotocol/client/package.json +4 -4
- package/node_modules/@openai/agents-core/dist/agent.js +8 -10
- package/node_modules/@openai/agents-core/dist/agent.mjs +9 -11
- package/node_modules/@openai/agents-core/dist/agentToolInput.js +2 -30
- package/node_modules/@openai/agents-core/dist/agentToolInput.mjs +1 -29
- package/node_modules/@openai/agents-core/dist/defaultModel.js +23 -3
- package/node_modules/@openai/agents-core/dist/defaultModel.mjs +21 -3
- package/node_modules/@openai/agents-core/dist/handoff.js +5 -5
- package/node_modules/@openai/agents-core/dist/handoff.mjs +5 -5
- package/node_modules/@openai/agents-core/dist/index.js +2 -1
- package/node_modules/@openai/agents-core/dist/index.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/items.js +8 -1
- package/node_modules/@openai/agents-core/dist/items.mjs +8 -1
- package/node_modules/@openai/agents-core/dist/mcp.js +26 -16
- package/node_modules/@openai/agents-core/dist/mcp.mjs +27 -17
- package/node_modules/@openai/agents-core/dist/mcpServers.js +18 -15
- package/node_modules/@openai/agents-core/dist/mcpServers.mjs +18 -15
- package/node_modules/@openai/agents-core/dist/mcpShared.js +12 -0
- package/node_modules/@openai/agents-core/dist/mcpShared.mjs +12 -0
- package/node_modules/@openai/agents-core/dist/memory/session.js +8 -0
- package/node_modules/@openai/agents-core/dist/memory/session.mjs +7 -0
- package/node_modules/@openai/agents-core/dist/metadata.js +2 -2
- package/node_modules/@openai/agents-core/dist/metadata.mjs +2 -2
- package/node_modules/@openai/agents-core/dist/run.js +550 -248
- package/node_modules/@openai/agents-core/dist/run.mjs +555 -253
- package/node_modules/@openai/agents-core/dist/runState.js +747 -420
- package/node_modules/@openai/agents-core/dist/runState.mjs +742 -421
- package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.js +440 -0
- package/node_modules/@openai/agents-core/dist/runStateLegacyCompaction.mjs +404 -0
- package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.js +274 -78
- package/node_modules/@openai/agents-core/dist/runner/blockedOutputPersistence.mjs +268 -77
- package/node_modules/@openai/agents-core/dist/runner/conversation.js +22 -3
- package/node_modules/@openai/agents-core/dist/runner/conversation.mjs +23 -4
- package/node_modules/@openai/agents-core/dist/runner/guardrails.js +80 -15
- package/node_modules/@openai/agents-core/dist/runner/guardrails.mjs +78 -15
- package/node_modules/@openai/agents-core/dist/runner/items.js +35 -2
- package/node_modules/@openai/agents-core/dist/runner/items.mjs +35 -2
- package/node_modules/@openai/agents-core/dist/runner/modelOutputs.js +47 -18
- package/node_modules/@openai/agents-core/dist/runner/modelOutputs.mjs +50 -21
- package/node_modules/@openai/agents-core/dist/runner/modelPreparation.js +28 -0
- package/node_modules/@openai/agents-core/dist/runner/modelPreparation.mjs +28 -1
- package/node_modules/@openai/agents-core/dist/runner/modelRetry.js +322 -217
- package/node_modules/@openai/agents-core/dist/runner/modelRetry.mjs +322 -217
- package/node_modules/@openai/agents-core/dist/runner/modelSettings.js +15 -22
- package/node_modules/@openai/agents-core/dist/runner/modelSettings.mjs +15 -22
- package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.js +32 -0
- package/node_modules/@openai/agents-core/dist/runner/outputGuardrailBlockedMessage.mjs +28 -0
- package/node_modules/@openai/agents-core/dist/runner/runLoop.js +53 -8
- package/node_modules/@openai/agents-core/dist/runner/runLoop.mjs +53 -8
- package/node_modules/@openai/agents-core/dist/runner/sessionItems.js +119 -0
- package/node_modules/@openai/agents-core/dist/runner/sessionItems.mjs +114 -0
- package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.js +408 -157
- package/node_modules/@openai/agents-core/dist/runner/sessionPersistence.mjs +388 -142
- package/node_modules/@openai/agents-core/dist/runner/toolExecution.js +42 -3
- package/node_modules/@openai/agents-core/dist/runner/toolExecution.mjs +42 -3
- package/node_modules/@openai/agents-core/dist/runner/toolSearch.js +1 -0
- package/node_modules/@openai/agents-core/dist/runner/toolSearch.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.js +19 -0
- package/node_modules/@openai/agents-core/dist/runner/toolSearchAttribution.mjs +15 -0
- package/node_modules/@openai/agents-core/dist/runner/turnResolution.js +65 -13
- package/node_modules/@openai/agents-core/dist/runner/turnResolution.mjs +65 -13
- package/node_modules/@openai/agents-core/dist/runner/usageTracking.js +69 -0
- package/node_modules/@openai/agents-core/dist/runner/usageTracking.mjs +65 -0
- package/node_modules/@openai/agents-core/dist/sandbox/manifest.js +4 -0
- package/node_modules/@openai/agents-core/dist/sandbox/manifest.mjs +4 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.js +317 -127
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/docker.mjs +319 -129
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.js +1 -1
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/localWorkspace.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.js +27 -13
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/pty.mjs +27 -13
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.js +196 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFileWorker.mjs +193 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.js +215 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/shared/unixLocalFiles.mjs +211 -0
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.js +193 -83
- package/node_modules/@openai/agents-core/dist/sandbox/sandboxes/unixLocal.mjs +196 -86
- package/node_modules/@openai/agents-core/dist/sandbox/session.js +2 -1
- package/node_modules/@openai/agents-core/dist/sandbox/session.mjs +2 -1
- package/node_modules/@openai/agents-core/dist/tracing/processor.js +21 -7
- package/node_modules/@openai/agents-core/dist/tracing/processor.mjs +21 -7
- package/node_modules/@openai/agents-core/dist/tracing/spans.js +40 -6
- package/node_modules/@openai/agents-core/dist/tracing/spans.mjs +7 -3
- package/node_modules/@openai/agents-core/dist/types/protocol.js +6 -0
- package/node_modules/@openai/agents-core/dist/types/protocol.mjs +6 -0
- package/node_modules/@openai/agents-core/dist/usage.js +13 -4
- package/node_modules/@openai/agents-core/dist/usage.mjs +13 -4
- package/node_modules/@openai/agents-core/dist/utils/applyDiff.js +24 -7
- package/node_modules/@openai/agents-core/dist/utils/applyDiff.mjs +24 -7
- package/node_modules/@openai/agents-core/dist/utils/internal.js +3 -1
- package/node_modules/@openai/agents-core/dist/utils/internal.mjs +1 -1
- package/node_modules/@openai/agents-core/dist/utils/zodCompat.js +29 -0
- package/node_modules/@openai/agents-core/dist/utils/zodCompat.mjs +28 -0
- package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.js +3 -31
- package/node_modules/@openai/agents-core/dist/utils/zodJsonSchemaCompat.mjs +1 -29
- package/node_modules/@openai/agents-core/package.json +1 -1
- package/node_modules/@slack/types/dist/events/agent.js +3 -0
- package/node_modules/@slack/types/dist/events/index.js +44 -0
- package/node_modules/@slack/types/package.json +47 -0
- package/node_modules/@slack/web-api/README.md +382 -0
- package/node_modules/@slack/web-api/dist/methods.js +1636 -0
- package/node_modules/@slack/web-api/dist/types/request/agents.js +3 -0
- package/node_modules/@slack/web-api/dist/types/request/blocks.js +3 -0
- package/node_modules/@slack/web-api/dist/types/response/AdminUsersGetExpirationResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsRenameResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/AgentsSessionsSetStatusResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/BlocksValidateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +48 -0
- package/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +67 -0
- package/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +72 -0
- package/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +48 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +11 -0
- package/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +11 -0
- package/node_modules/@slack/web-api/node_modules/@types/retry/LICENSE +21 -0
- package/node_modules/@slack/web-api/node_modules/@types/retry/README.md +15 -0
- package/node_modules/@slack/web-api/node_modules/@types/retry/package.json +30 -0
- package/node_modules/@slack/web-api/package.json +71 -0
- package/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/package.json +3 -18
- package/node_modules/ai/CHANGELOG.md +611 -0
- package/node_modules/ai/README.md +6 -6
- package/node_modules/ai/dist/index.js +7872 -3383
- package/node_modules/ai/dist/internal/index.js +837 -465
- package/node_modules/ai/docs/00-introduction/index.mdx +1 -1
- package/node_modules/ai/docs/02-foundations/02-providers-and-models.mdx +15 -4
- package/node_modules/ai/docs/02-foundations/03-prompts.mdx +1 -1
- package/node_modules/ai/docs/02-foundations/04-tools.mdx +2 -2
- package/node_modules/ai/docs/02-foundations/06-provider-options.mdx +11 -11
- package/node_modules/ai/docs/02-getting-started/00-choosing-a-provider.mdx +4 -4
- package/node_modules/ai/docs/02-getting-started/02-nextjs-app-router.mdx +3 -3
- package/node_modules/ai/docs/02-getting-started/03-nextjs-pages-router.mdx +4 -4
- package/node_modules/ai/docs/02-getting-started/04-svelte.mdx +7 -7
- package/node_modules/ai/docs/02-getting-started/05-nuxt.mdx +8 -8
- package/node_modules/ai/docs/02-getting-started/06-nodejs.mdx +3 -3
- package/node_modules/ai/docs/02-getting-started/07-expo.mdx +10 -3
- package/node_modules/ai/docs/02-getting-started/08-tanstack-start.mdx +3 -3
- package/node_modules/ai/docs/02-getting-started/09-coding-agents.mdx +1 -1
- package/node_modules/ai/docs/03-agents/02-building-agents.mdx +2 -2
- package/node_modules/ai/docs/03-agents/03-workflows.mdx +2 -2
- package/node_modules/ai/docs/03-agents/04-loop-control.mdx +6 -4
- package/node_modules/ai/docs/03-agents/05-configuring-call-options.mdx +4 -2
- package/node_modules/ai/docs/03-agents/06-memory.mdx +2 -2
- package/node_modules/ai/docs/03-agents/06-policy-tool-approvals.mdx +5 -4
- package/node_modules/ai/docs/03-agents/06-tool-approvals.mdx +35 -7
- package/node_modules/ai/docs/03-agents/07-workflow-agent.mdx +125 -28
- package/node_modules/ai/docs/03-agents/08-terminal-ui.mdx +14 -10
- package/node_modules/ai/docs/03-ai-sdk-core/05-generating-text.mdx +2 -2
- package/node_modules/ai/docs/03-ai-sdk-core/10-generating-structured-data.mdx +15 -3
- package/node_modules/ai/docs/03-ai-sdk-core/15-tools-and-tool-calling.mdx +14 -6
- package/node_modules/ai/docs/03-ai-sdk-core/16-mcp-tools.mdx +95 -1
- package/node_modules/ai/docs/03-ai-sdk-core/17-mcp-apps.mdx +2 -2
- package/node_modules/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/ai/docs/03-ai-sdk-core/20-prompt-engineering.mdx +1 -1
- package/node_modules/ai/docs/03-ai-sdk-core/26-reasoning.mdx +15 -14
- package/node_modules/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/ai/docs/03-ai-sdk-core/35-image-generation.mdx +79 -14
- package/node_modules/ai/docs/03-ai-sdk-core/36-realtime.mdx +41 -18
- package/node_modules/ai/docs/03-ai-sdk-core/36-transcription.mdx +37 -35
- package/node_modules/ai/docs/03-ai-sdk-core/37-speech.mdx +8 -23
- package/node_modules/ai/docs/03-ai-sdk-core/39-file-uploads.mdx +26 -1
- package/node_modules/ai/docs/03-ai-sdk-core/40-middleware.mdx +92 -7
- package/node_modules/ai/docs/03-ai-sdk-core/41-skill-uploads.mdx +1 -1
- package/node_modules/ai/docs/03-ai-sdk-core/42-batch.mdx +371 -0
- package/node_modules/ai/docs/03-ai-sdk-core/45-provider-management.mdx +31 -21
- package/node_modules/ai/docs/03-ai-sdk-core/50-error-handling.mdx +94 -2
- package/node_modules/ai/docs/03-ai-sdk-core/55-testing.mdx +75 -0
- package/node_modules/ai/docs/03-ai-sdk-core/60-telemetry.mdx +89 -11
- package/node_modules/ai/docs/03-ai-sdk-core/65-devtools.mdx +3 -3
- package/node_modules/ai/docs/03-ai-sdk-core/65-lifecycle-callbacks.mdx +132 -7
- package/node_modules/ai/docs/03-ai-sdk-core/index.mdx +11 -0
- package/node_modules/ai/docs/03-ai-sdk-harnesses/01-overview.mdx +3 -2
- package/node_modules/ai/docs/03-ai-sdk-harnesses/02-harness-agent.mdx +324 -97
- package/node_modules/ai/docs/03-ai-sdk-harnesses/03-tools.mdx +47 -22
- package/node_modules/ai/docs/03-ai-sdk-harnesses/04-skills.mdx +6 -6
- package/node_modules/ai/docs/03-ai-sdk-harnesses/05-harness-adapters.mdx +15 -13
- package/node_modules/ai/docs/03-ai-sdk-harnesses/06-workflow-utilities.mdx +43 -9
- package/node_modules/ai/docs/03-ai-sdk-harnesses/07-ui.mdx +33 -30
- package/node_modules/ai/docs/03-ai-sdk-harnesses/08-terminal-ui.mdx +8 -6
- package/node_modules/ai/docs/04-ai-sdk-ui/01-overview.mdx +1 -1
- package/node_modules/ai/docs/04-ai-sdk-ui/02-chatbot.mdx +47 -21
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-message-persistence.mdx +46 -3
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-resume-streams.mdx +11 -4
- package/node_modules/ai/docs/04-ai-sdk-ui/03-chatbot-tool-usage.mdx +39 -2
- package/node_modules/ai/docs/04-ai-sdk-ui/05-completion.mdx +1 -1
- package/node_modules/ai/docs/04-ai-sdk-ui/08-object-generation.mdx +4 -1
- package/node_modules/ai/docs/04-ai-sdk-ui/20-streaming-data.mdx +11 -6
- package/node_modules/ai/docs/04-ai-sdk-ui/21-error-handling.mdx +28 -2
- package/node_modules/ai/docs/04-ai-sdk-ui/21-transport.mdx +7 -3
- package/node_modules/ai/docs/04-ai-sdk-ui/50-stream-protocol.mdx +6 -2
- package/node_modules/ai/docs/05-ai-sdk-rsc/02-streaming-react-components.mdx +5 -5
- package/node_modules/ai/docs/05-ai-sdk-rsc/04-multistep-interfaces.mdx +2 -2
- package/node_modules/ai/docs/05-ai-sdk-rsc/06-loading-state.mdx +1 -1
- package/node_modules/ai/docs/05-ai-sdk-rsc/10-migrating-to-ui.mdx +3 -3
- package/node_modules/ai/docs/06-advanced/02-stopping-streams.mdx +8 -0
- package/node_modules/ai/docs/06-advanced/04-caching.mdx +9 -1
- package/node_modules/ai/docs/06-advanced/11-secure-url-fetching.mdx +54 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/01-generate-text.mdx +28 -5
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/02-stream-text.mdx +66 -15
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/05-embed.mdx +31 -5
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-embed-many.mdx +38 -8
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/06-rerank.mdx +24 -10
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/10-generate-image.mdx +2 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/11-transcribe.mdx +1 -1
- package/node_modules/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/ai/docs/07-reference/01-ai-sdk-core/14-upload-file.mdx +37 -4
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/16-tool-loop-agent.mdx +5 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-start-batch.mdx +154 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/20-tool.mdx +7 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/21-get-batch-status.mdx +133 -0
- package/node_modules/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/22-get-batch-results.mdx +109 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-cancel-batch.mdx +96 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/23-tool-search.mdx +76 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/24-list-batches.mdx +121 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/28-output.mdx +27 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/31-ui-message.mdx +63 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/32-validate-ui-messages.mdx +30 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/33-safe-validate-ui-messages.mdx +12 -0
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/40-provider-registry.mdx +19 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/42-custom-provider.mdx +22 -4
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/60-wrap-language-model.mdx +1 -1
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/61-wrap-image-model.mdx +17 -2
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/80-smooth-stream.mdx +5 -3
- package/node_modules/ai/docs/07-reference/01-ai-sdk-core/index.mdx +31 -0
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/01-use-chat.mdx +2 -2
- package/node_modules/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 +364 -48
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/31-convert-to-model-messages.mdx +14 -2
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/40-create-ui-message-stream.mdx +45 -6
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/41-create-ui-message-stream-response.mdx +6 -1
- package/node_modules/ai/docs/07-reference/02-ai-sdk-ui/50-direct-chat-transport.mdx +3 -3
- package/node_modules/ai/docs/07-reference/03-ai-sdk-rsc/01-stream-ui.mdx +2 -1
- package/node_modules/ai/docs/07-reference/03-ai-sdk-rsc/02-create-ai.mdx +1 -1
- package/node_modules/ai/docs/07-reference/03-ai-sdk-rsc/03-create-streamable-ui.mdx +1 -1
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/01-workflow-agent.mdx +124 -43
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/02-workflow-chat-transport.mdx +29 -15
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/03-generate-video.mdx +157 -0
- package/node_modules/ai/docs/07-reference/04-ai-sdk-workflow/index.mdx +6 -0
- package/node_modules/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/ai/docs/07-reference/05-ai-sdk-errors/ai-invalid-argument-error.mdx +6 -1
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-image-generated-error.mdx +7 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-such-model-error.mdx +4 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-no-such-provider-error.mdx +4 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-stream-provider-error.mdx +52 -0
- package/node_modules/ai/docs/07-reference/05-ai-sdk-errors/ai-tool-choice-violation-error.mdx +38 -0
- package/node_modules/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 +131 -34
- package/node_modules/ai/docs/07-reference/06-ai-sdk-tui/01-run-agent-tui.mdx +13 -9
- package/node_modules/ai/docs/08-migration-guides/29-migration-guide-4-0.mdx +5 -5
- package/node_modules/ai/docs/08-migration-guides/37-migration-guide-3-3.mdx +1 -1
- package/node_modules/ai/docs/09-troubleshooting/11-use-chat-custom-request-options.mdx +3 -3
- package/node_modules/ai/docs/09-troubleshooting/13-repeated-assistant-messages.mdx +2 -2
- package/node_modules/ai/docs/09-troubleshooting/17-use-chat-stale-body-data.mdx +1 -1
- package/node_modules/ai/docs/09-troubleshooting/70-high-memory-usage-with-images.mdx +2 -2
- package/node_modules/ai/package.json +19 -9
- package/node_modules/balanced-match/LICENSE.md +23 -0
- package/node_modules/balanced-match/README.md +57 -0
- package/node_modules/balanced-match/dist/commonjs/index.js +59 -0
- package/node_modules/balanced-match/dist/commonjs/package.json +3 -0
- package/node_modules/balanced-match/dist/esm/index.js +54 -0
- package/node_modules/balanced-match/dist/esm/package.json +3 -0
- package/node_modules/balanced-match/package.json +68 -0
- package/node_modules/brace-expansion/LICENSE +23 -0
- package/node_modules/brace-expansion/README.md +105 -0
- package/node_modules/brace-expansion/dist/commonjs/index.js +289 -0
- package/node_modules/brace-expansion/dist/commonjs/package.json +3 -0
- package/node_modules/brace-expansion/dist/esm/index.js +285 -0
- package/node_modules/brace-expansion/dist/esm/package.json +3 -0
- package/node_modules/brace-expansion/package.json +64 -0
- package/node_modules/fast-uri/index.js +215 -47
- package/node_modules/fast-uri/lib/schemes.js +9 -4
- package/node_modules/fast-uri/lib/utils.js +396 -92
- package/node_modules/fast-uri/package.json +1 -1
- package/node_modules/fs-native-extensions/package.json +1 -1
- package/node_modules/fs-native-extensions/prebuilds/android-arm/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-ia32/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/android-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-arm64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/darwin-x64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-arm64-simulator/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/ios-x64-simulator/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/linux-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/linux-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-arm64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.bare +0 -0
- package/node_modules/fs-native-extensions/prebuilds/win32-x64/fs-native-extensions.node +0 -0
- package/node_modules/fs-native-extensions/src/win32.c +50 -11
- package/node_modules/glob/LICENSE.md +63 -0
- package/node_modules/glob/README.md +1203 -0
- package/node_modules/glob/dist/commonjs/glob.js +248 -0
- package/node_modules/glob/dist/commonjs/has-magic.js +27 -0
- package/node_modules/glob/dist/commonjs/ignore.js +119 -0
- package/node_modules/glob/dist/commonjs/index.js +68 -0
- package/node_modules/glob/dist/commonjs/index.min.js +4 -0
- package/node_modules/glob/dist/commonjs/package.json +3 -0
- package/node_modules/glob/dist/commonjs/pattern.js +223 -0
- package/node_modules/glob/dist/commonjs/processor.js +301 -0
- package/node_modules/glob/dist/commonjs/walker.js +387 -0
- package/node_modules/glob/dist/esm/glob.js +244 -0
- package/node_modules/glob/dist/esm/has-magic.js +23 -0
- package/node_modules/glob/dist/esm/ignore.js +115 -0
- package/node_modules/glob/dist/esm/index.js +55 -0
- package/node_modules/glob/dist/esm/index.min.js +4 -0
- package/node_modules/glob/dist/esm/package.json +3 -0
- package/node_modules/glob/dist/esm/pattern.js +219 -0
- package/node_modules/glob/dist/esm/processor.js +294 -0
- package/node_modules/glob/dist/esm/walker.js +381 -0
- package/node_modules/glob/package.json +98 -0
- 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/minimatch/LICENSE.md +55 -0
- package/node_modules/minimatch/README.md +528 -0
- package/node_modules/minimatch/dist/commonjs/assert-valid-pattern.js +14 -0
- package/node_modules/minimatch/dist/commonjs/ast.js +845 -0
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +150 -0
- package/node_modules/minimatch/dist/commonjs/escape.js +30 -0
- package/node_modules/minimatch/dist/commonjs/index.js +1127 -0
- package/node_modules/minimatch/dist/commonjs/package.json +3 -0
- package/node_modules/minimatch/dist/commonjs/unescape.js +38 -0
- package/node_modules/minimatch/dist/esm/assert-valid-pattern.js +10 -0
- package/node_modules/minimatch/dist/esm/ast.js +841 -0
- package/node_modules/minimatch/dist/esm/brace-expressions.js +146 -0
- package/node_modules/minimatch/dist/esm/escape.js +26 -0
- package/node_modules/minimatch/dist/esm/index.js +1114 -0
- package/node_modules/minimatch/dist/esm/package.json +3 -0
- package/node_modules/minimatch/dist/esm/unescape.js +34 -0
- package/node_modules/minimatch/package.json +73 -0
- package/node_modules/minipass/LICENSE.md +55 -0
- package/node_modules/minipass/README.md +825 -0
- package/node_modules/minipass/dist/commonjs/index.js +1038 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.js +1020 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +77 -0
- package/node_modules/path-scurry/LICENSE.md +55 -0
- package/node_modules/path-scurry/README.md +636 -0
- package/node_modules/path-scurry/dist/commonjs/index.js +2018 -0
- package/node_modules/path-scurry/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/dist/esm/index.js +1983 -0
- package/node_modules/path-scurry/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/LICENSE.md +55 -0
- package/node_modules/path-scurry/node_modules/lru-cache/README.md +469 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel-cjs.d.cts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.js +1726 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel-esm.d.mts.map +1 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.js +1722 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/package.json +3 -0
- package/node_modules/path-scurry/node_modules/lru-cache/dist/esm/perf.js +7 -0
- package/node_modules/path-scurry/node_modules/lru-cache/package.json +154 -0
- package/node_modules/path-scurry/package.json +72 -0
- package/node_modules/qs/.github/THREAT_MODEL.md +3 -3
- package/node_modules/qs/CHANGELOG.md +15 -0
- package/node_modules/qs/README.md +19 -1
- package/node_modules/qs/dist/qs.js +21 -21
- package/node_modules/qs/eslint.config.mjs +1 -1
- package/node_modules/qs/lib/parse.js +3 -4
- package/node_modules/qs/lib/stringify.js +23 -8
- package/node_modules/qs/lib/utils.js +10 -3
- package/node_modules/qs/package.json +4 -4
- package/node_modules/run/README.md +109 -18
- package/node_modules/run/THIRD_PARTY_NOTICES.md +11 -11
- package/node_modules/run/dist/continuation-validation.js +116 -1
- package/node_modules/run/dist/errors.js +12 -2
- package/node_modules/run/dist/host-function-invocation.js +2 -1
- package/node_modules/run/dist/run.js +30 -4
- package/node_modules/run/dist/runtime/guest-serde-source.js +1 -1
- package/node_modules/run/dist/runtime/guest-sources.js +214 -56
- package/node_modules/run/dist/runtime/manager.js +575 -116
- package/node_modules/run/dist/runtime/max-workers.js +8 -4
- package/node_modules/run/dist/runtime/protocol-validation.js +20 -7
- package/node_modules/run/dist/runtime/sync-bridge-protocol.js +135 -0
- package/node_modules/run/dist/runtime/worker-source.js +1 -1
- package/node_modules/run/dist/utils/options.js +7 -0
- package/node_modules/run/dist/utils/promise-with-resolvers.js +13 -1
- package/node_modules/run/dist/utils/serde.js +1 -7
- package/node_modules/run/dist/utils/source-cache.js +83 -13
- package/node_modules/run/package.json +6 -4
- package/node_modules/socks/build/common/helpers.js +5 -6
- package/node_modules/socks/build/common/util.js +2 -2
- package/node_modules/socks/package.json +7 -7
- package/node_modules/systeminformation/LICENSE +20 -0
- package/node_modules/systeminformation/README.md +1251 -0
- package/node_modules/systeminformation/lib/audio.js +335 -0
- package/node_modules/systeminformation/lib/battery.js +355 -0
- package/node_modules/systeminformation/lib/bluetooth.js +315 -0
- package/node_modules/systeminformation/lib/bluetoothVendors.js +1138 -0
- package/node_modules/systeminformation/lib/cli.js +100 -0
- package/node_modules/systeminformation/lib/cpu.js +2285 -0
- package/node_modules/systeminformation/lib/docker.js +791 -0
- package/node_modules/systeminformation/lib/dockerSocket.js +117 -0
- package/node_modules/systeminformation/lib/filesystem.js +1933 -0
- package/node_modules/systeminformation/lib/graphics.js +1317 -0
- package/node_modules/systeminformation/lib/index.js +520 -0
- package/node_modules/systeminformation/lib/internet.js +265 -0
- package/node_modules/systeminformation/lib/memory.js +620 -0
- package/node_modules/systeminformation/lib/network.js +2014 -0
- package/node_modules/systeminformation/lib/osinfo.js +1304 -0
- package/node_modules/systeminformation/lib/printer.js +209 -0
- package/node_modules/systeminformation/lib/processes.js +1496 -0
- package/node_modules/systeminformation/lib/system.js +855 -0
- package/node_modules/systeminformation/lib/usb.js +309 -0
- package/node_modules/systeminformation/lib/users.js +412 -0
- package/node_modules/systeminformation/lib/util.js +2840 -0
- package/node_modules/systeminformation/lib/virtualbox.js +116 -0
- package/node_modules/systeminformation/lib/wifi.js +839 -0
- package/node_modules/systeminformation/package.json +102 -0
- 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/Client.md +4 -0
- 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/EnvHttpProxyAgent.md +3 -2
- package/node_modules/undici/docs/docs/api/Errors.md +25 -0
- package/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/undici/docs/docs/api/Fetch.md +10 -0
- package/node_modules/undici/docs/docs/api/Interceptors.md +8 -3
- package/node_modules/undici/docs/docs/api/Pool.md +5 -6
- package/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- 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/cache/memory-cache-store.js +2 -2
- package/node_modules/undici/lib/core/request.js +23 -2
- package/node_modules/undici/lib/core/symbols.js +2 -0
- package/node_modules/undici/lib/core/util.js +0 -39
- package/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/undici/lib/dispatcher/client-h1.js +23 -8
- package/node_modules/undici/lib/dispatcher/client-h2.js +94 -10
- package/node_modules/undici/lib/dispatcher/client.js +9 -3
- package/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +31 -9
- 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 +33 -3
- package/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +91 -21
- package/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/undici/lib/handler/deduplication-handler.js +29 -10
- package/node_modules/undici/lib/handler/redirect-handler.js +26 -4
- package/node_modules/undici/lib/handler/retry-handler.js +215 -38
- package/node_modules/undici/lib/interceptor/cache.js +69 -13
- package/node_modules/undici/lib/interceptor/decompress.js +319 -50
- package/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/undici/lib/mock/mock-utils.js +11 -10
- package/node_modules/undici/lib/util/cache.js +45 -3
- 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/parse.js +150 -147
- package/node_modules/undici/lib/web/cookies/util.js +3 -1
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/undici/lib/web/eventsource/eventsource.js +38 -4
- 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 +52 -25
- package/node_modules/undici/lib/web/fetch/request.js +76 -82
- package/node_modules/undici/lib/web/fetch/response.js +43 -44
- package/node_modules/undici/lib/web/fetch/util.js +13 -8
- package/node_modules/undici/lib/web/infra/index.js +16 -1
- package/node_modules/undici/lib/web/webidl/index.js +5 -17
- package/node_modules/undici/lib/web/websocket/connection.js +34 -13
- package/node_modules/undici/lib/web/websocket/events.js +43 -26
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- 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 +27 -14
- package/node_modules/undici/lib/web/websocket/websocket.js +44 -41
- package/node_modules/undici/package.json +3 -3
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/yaml/browser/dist/compose/resolve-flow-scalar.js +19 -18
- package/node_modules/yaml/browser/dist/nodes/Alias.js +25 -23
- package/node_modules/yaml/dist/compose/resolve-flow-scalar.js +19 -18
- package/node_modules/yaml/dist/nodes/Alias.js +25 -23
- package/node_modules/yaml/package.json +1 -1
- package/node_modules/zod/README.md +29 -2
- package/node_modules/zod/compile.cjs +96 -0
- package/node_modules/zod/compile.js +52 -0
- package/node_modules/zod/index.cjs +21 -2
- package/node_modules/zod/index.js +5 -2
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +20 -8
- package/node_modules/zod/v3/ZodError.cjs +41 -12
- package/node_modules/zod/v3/ZodError.js +22 -12
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +26 -5
- package/node_modules/zod/v3/types.js +7 -5
- package/node_modules/zod/v4/classic/checks.cjs +21 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/node_modules/zod/v4/classic/errors.cjs +62 -34
- package/node_modules/zod/v4/classic/errors.js +43 -34
- package/node_modules/zod/v4/classic/external.cjs +51 -27
- package/node_modules/zod/v4/classic/external.js +5 -8
- package/node_modules/zod/v4/classic/from-json-schema.cjs +376 -75
- package/node_modules/zod/v4/classic/from-json-schema.js +357 -75
- package/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/node_modules/zod/v4/classic/in-out.js +36 -0
- package/node_modules/zod/v4/classic/index.cjs +21 -2
- package/node_modules/zod/v4/classic/index.js +2 -2
- package/node_modules/zod/v4/classic/iso.cjs +30 -22
- package/node_modules/zod/v4/classic/iso.js +2 -17
- package/node_modules/zod/v4/classic/parse.cjs +23 -1
- package/node_modules/zod/v4/classic/parse.js +1 -0
- package/node_modules/zod/v4/classic/schemas.cjs +591 -426
- package/node_modules/zod/v4/classic/schemas.js +564 -424
- package/node_modules/zod/v4/core/api.cjs +66 -24
- package/node_modules/zod/v4/core/api.js +44 -24
- package/node_modules/zod/v4/core/checks.cjs +88 -128
- package/node_modules/zod/v4/core/checks.js +68 -127
- package/node_modules/zod/v4/core/compile.cjs +1908 -0
- package/node_modules/zod/v4/core/compile.js +1858 -0
- package/node_modules/zod/v4/core/core.cjs +101 -19
- package/node_modules/zod/v4/core/core.js +83 -20
- package/node_modules/zod/v4/core/doc.cjs +31 -9
- package/node_modules/zod/v4/core/doc.js +12 -9
- package/node_modules/zod/v4/core/errors.cjs +126 -25
- package/node_modules/zod/v4/core/errors.js +107 -25
- package/node_modules/zod/v4/core/index.cjs +24 -1
- package/node_modules/zod/v4/core/index.js +3 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +24 -1
- package/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +441 -156
- package/node_modules/zod/v4/core/json-schema-processors.js +400 -158
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/memoizer.cjs +356 -0
- package/node_modules/zod/v4/core/memoizer.js +307 -0
- package/node_modules/zod/v4/core/parse.cjs +148 -46
- package/node_modules/zod/v4/core/parse.js +127 -45
- package/node_modules/zod/v4/core/regexes.cjs +54 -17
- package/node_modules/zod/v4/core/regexes.js +32 -15
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/registries.js +2 -2
- package/node_modules/zod/v4/core/schemas.cjs +785 -386
- package/node_modules/zod/v4/core/schemas.js +753 -386
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +269 -45
- package/node_modules/zod/v4/core/to-json-schema.js +247 -44
- package/node_modules/zod/v4/core/util.cjs +372 -157
- package/node_modules/zod/v4/core/util.js +341 -156
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +214 -0
- package/node_modules/zod/v4/core/visit.js +169 -0
- package/node_modules/zod/v4/index.cjs +34 -5
- package/node_modules/zod/v4/index.js +3 -2
- package/node_modules/zod/v4/locales/ar.cjs +5 -0
- package/node_modules/zod/v4/locales/ar.js +5 -0
- package/node_modules/zod/v4/locales/az.cjs +5 -0
- package/node_modules/zod/v4/locales/az.js +5 -0
- package/node_modules/zod/v4/locales/be.cjs +12 -0
- package/node_modules/zod/v4/locales/be.js +12 -0
- package/node_modules/zod/v4/locales/bg.cjs +5 -0
- package/node_modules/zod/v4/locales/bg.js +5 -0
- package/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/node_modules/zod/v4/locales/bn.js +113 -0
- package/node_modules/zod/v4/locales/ca.cjs +5 -0
- package/node_modules/zod/v4/locales/ca.js +5 -0
- package/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/node_modules/zod/v4/locales/ckb.js +133 -0
- package/node_modules/zod/v4/locales/cs.cjs +5 -0
- package/node_modules/zod/v4/locales/cs.js +5 -0
- package/node_modules/zod/v4/locales/da.cjs +7 -2
- package/node_modules/zod/v4/locales/da.js +7 -2
- package/node_modules/zod/v4/locales/de.cjs +5 -0
- package/node_modules/zod/v4/locales/de.js +5 -0
- package/node_modules/zod/v4/locales/el.cjs +3 -0
- package/node_modules/zod/v4/locales/el.js +3 -0
- package/node_modules/zod/v4/locales/en.cjs +16 -4
- package/node_modules/zod/v4/locales/en.js +16 -4
- package/node_modules/zod/v4/locales/eo.cjs +5 -0
- package/node_modules/zod/v4/locales/eo.js +5 -0
- package/node_modules/zod/v4/locales/es.cjs +4 -0
- package/node_modules/zod/v4/locales/es.js +4 -0
- package/node_modules/zod/v4/locales/fa.cjs +5 -0
- package/node_modules/zod/v4/locales/fa.js +5 -0
- package/node_modules/zod/v4/locales/fi.cjs +5 -0
- package/node_modules/zod/v4/locales/fi.js +5 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +5 -0
- package/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/node_modules/zod/v4/locales/fr.cjs +18 -14
- package/node_modules/zod/v4/locales/fr.js +18 -14
- package/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/node_modules/zod/v4/locales/gu.js +113 -0
- package/node_modules/zod/v4/locales/he.cjs +7 -0
- package/node_modules/zod/v4/locales/he.js +7 -0
- package/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/node_modules/zod/v4/locales/hi.js +111 -0
- package/node_modules/zod/v4/locales/hr.cjs +4 -0
- package/node_modules/zod/v4/locales/hr.js +4 -0
- package/node_modules/zod/v4/locales/hu.cjs +5 -0
- package/node_modules/zod/v4/locales/hu.js +5 -0
- package/node_modules/zod/v4/locales/hy.cjs +11 -0
- package/node_modules/zod/v4/locales/hy.js +11 -0
- package/node_modules/zod/v4/locales/id.cjs +5 -0
- package/node_modules/zod/v4/locales/id.js +5 -0
- package/node_modules/zod/v4/locales/index.cjs +43 -2
- package/node_modules/zod/v4/locales/index.js +11 -0
- package/node_modules/zod/v4/locales/is.cjs +5 -0
- package/node_modules/zod/v4/locales/is.js +5 -0
- package/node_modules/zod/v4/locales/it.cjs +5 -0
- package/node_modules/zod/v4/locales/it.js +5 -0
- package/node_modules/zod/v4/locales/ja.cjs +5 -0
- package/node_modules/zod/v4/locales/ja.js +5 -0
- package/node_modules/zod/v4/locales/ka.cjs +5 -0
- package/node_modules/zod/v4/locales/ka.js +5 -0
- package/node_modules/zod/v4/locales/km.cjs +5 -0
- package/node_modules/zod/v4/locales/km.js +5 -0
- package/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/node_modules/zod/v4/locales/kn.js +116 -0
- package/node_modules/zod/v4/locales/ko.cjs +5 -0
- package/node_modules/zod/v4/locales/ko.js +5 -0
- package/node_modules/zod/v4/locales/lt.cjs +4 -0
- package/node_modules/zod/v4/locales/lt.js +4 -0
- package/node_modules/zod/v4/locales/mk.cjs +5 -0
- package/node_modules/zod/v4/locales/mk.js +5 -0
- package/node_modules/zod/v4/locales/ms.cjs +5 -0
- package/node_modules/zod/v4/locales/ms.js +5 -0
- package/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/node_modules/zod/v4/locales/ne.js +111 -0
- package/node_modules/zod/v4/locales/nl.cjs +5 -0
- package/node_modules/zod/v4/locales/nl.js +5 -0
- package/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/node_modules/zod/v4/locales/nn.js +113 -0
- package/node_modules/zod/v4/locales/no.cjs +7 -2
- package/node_modules/zod/v4/locales/no.js +7 -2
- package/node_modules/zod/v4/locales/ota.cjs +5 -0
- package/node_modules/zod/v4/locales/ota.js +5 -0
- package/node_modules/zod/v4/locales/pl.cjs +5 -0
- package/node_modules/zod/v4/locales/pl.js +5 -0
- package/node_modules/zod/v4/locales/ps.cjs +5 -0
- package/node_modules/zod/v4/locales/ps.js +5 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/node_modules/zod/v4/locales/pt.cjs +89 -55
- package/node_modules/zod/v4/locales/pt.js +89 -55
- package/node_modules/zod/v4/locales/ro.cjs +3 -0
- package/node_modules/zod/v4/locales/ro.js +3 -0
- package/node_modules/zod/v4/locales/ru.cjs +12 -0
- package/node_modules/zod/v4/locales/ru.js +12 -0
- package/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/node_modules/zod/v4/locales/sk.js +116 -0
- package/node_modules/zod/v4/locales/sl.cjs +5 -0
- package/node_modules/zod/v4/locales/sl.js +5 -0
- package/node_modules/zod/v4/locales/sv.cjs +7 -2
- package/node_modules/zod/v4/locales/sv.js +7 -2
- package/node_modules/zod/v4/locales/ta.cjs +5 -0
- package/node_modules/zod/v4/locales/ta.js +5 -0
- package/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/node_modules/zod/v4/locales/tg.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +5 -0
- package/node_modules/zod/v4/locales/th.js +5 -0
- package/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/node_modules/zod/v4/locales/tk.js +107 -0
- package/node_modules/zod/v4/locales/tr.cjs +5 -0
- package/node_modules/zod/v4/locales/tr.js +5 -0
- package/node_modules/zod/v4/locales/uk.cjs +5 -0
- package/node_modules/zod/v4/locales/uk.js +5 -0
- package/node_modules/zod/v4/locales/ur.cjs +5 -0
- package/node_modules/zod/v4/locales/ur.js +5 -0
- package/node_modules/zod/v4/locales/uz.cjs +3 -0
- package/node_modules/zod/v4/locales/uz.js +3 -0
- package/node_modules/zod/v4/locales/vi.cjs +5 -0
- package/node_modules/zod/v4/locales/vi.js +5 -0
- package/node_modules/zod/v4/locales/yo.cjs +5 -0
- package/node_modules/zod/v4/locales/yo.js +5 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +5 -0
- package/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/node_modules/zod/v4/mini/checks.cjs +21 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/node_modules/zod/v4/mini/external.cjs +33 -1
- package/node_modules/zod/v4/mini/external.js +3 -1
- package/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/node_modules/zod/v4/mini/in-out.js +36 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +22 -1
- package/node_modules/zod/v4/mini/parse.js +1 -1
- package/node_modules/zod/v4/mini/schemas.cjs +117 -53
- package/node_modules/zod/v4/mini/schemas.js +92 -51
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +4 -4
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/CHANGELOG.md +0 -1224
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider/LICENSE +0 -13
- 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/open-responses/node_modules/@ai-sdk/provider-utils/CHANGELOG.md +0 -2444
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/README.md +0 -1
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/dist/index.js +0 -4295
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/package.json +0 -82
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/LICENSE +0 -16
- package/node_modules/@ai-sdk/open-responses/node_modules/@ai-sdk/provider-utils/src/to-json-schema/zod3-to-json-schema/README.md +0 -24
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/LICENSE +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/README.md +0 -741
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Agent.md +0 -84
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/BalancedPool.md +0 -99
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStorage.md +0 -30
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/CacheStore.md +0 -164
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Client.md +0 -288
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ClientStats.md +0 -27
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Connector.md +0 -115
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ContentType.md +0 -57
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Cookies.md +0 -128
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Debug.md +0 -62
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +0 -315
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Dispatcher.md +0 -1392
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +0 -159
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Errors.md +0 -49
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/EventSource.md +0 -45
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Fetch.md +0 -60
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/GlobalInstallation.md +0 -139
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/H2CClient.md +0 -263
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockAgent.md +0 -603
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistory.md +0 -197
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +0 -43
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockClient.md +0 -81
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockErrors.md +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/MockPool.md +0 -555
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Pool.md +0 -84
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/PoolStats.md +0 -35
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/ProxyAgent.md +0 -229
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RedirectHandler.md +0 -93
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryAgent.md +0 -50
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RetryHandler.md +0 -118
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/RoundRobinPool.md +0 -145
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/SnapshotAgent.md +0 -616
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +0 -275
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/Util.md +0 -25
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/WebSocket.md +0 -141
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/api/api-lifecycle.md +0 -91
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -64
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/crawling.md +0 -58
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/mocking-request.md +0 -190
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/proxy.md +0 -127
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +0 -224
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -63
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/index-fetch.js +0 -65
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/index.js +0 -234
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/abort-signal.js +0 -59
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-connect.js +0 -110
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-pipeline.js +0 -252
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-request.js +0 -214
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-stream.js +0 -209
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/api-upgrade.js +0 -111
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/index.js +0 -7
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/api/readable.js +0 -580
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/memory-cache-store.js +0 -279
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/cache/sqlite-cache-store.js +0 -467
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/connect.js +0 -153
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/constants.js +0 -143
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/diagnostics.js +0 -227
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/errors.js +0 -477
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/request.js +0 -464
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-client.js +0 -422
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/socks5-utils.js +0 -212
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/symbols.js +0 -75
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/tree.js +0 -160
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/core/util.js +0 -992
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/agent.js +0 -158
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/balanced-pool.js +0 -219
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h1.js +0 -1731
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client-h2.js +0 -995
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/client.js +0 -664
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher-base.js +0 -184
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/dispatcher.js +0 -48
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +0 -146
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/fixed-queue.js +0 -135
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/h2c-client.js +0 -51
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool-base.js +0 -214
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/pool.js +0 -118
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/proxy-agent.js +0 -319
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/retry-agent.js +0 -35
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/round-robin-pool.js +0 -137
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +0 -260
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/encoding/index.js +0 -33
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/global.js +0 -59
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-handler.js +0 -760
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -124
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/decorator-handler.js +0 -67
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/deduplication-handler.js +0 -460
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/redirect-handler.js +0 -238
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/retry-handler.js +0 -418
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/unwrap-handler.js +0 -106
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/handler/wrap-handler.js +0 -105
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/cache.js +0 -602
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/decompress.js +0 -259
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/deduplicate.js +0 -117
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dns.js +0 -571
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/dump.js +0 -112
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/redirect.js +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/response-error.js +0 -95
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/interceptor/retry.js +0 -19
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/constants.js +0 -531
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp-wasm.js +0 -15
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +0 -15
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/llhttp/utils.js +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-agent.js +0 -232
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-call-history.js +0 -248
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-client.js +0 -68
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-errors.js +0 -29
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-interceptor.js +0 -209
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-pool.js +0 -68
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-symbols.js +0 -32
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/mock-utils.js +0 -486
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/pending-interceptors-formatter.js +0 -43
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-agent.js +0 -353
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-recorder.js +0 -588
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/mock/snapshot-utils.js +0 -158
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/cache.js +0 -676
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/date.js +0 -670
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/promise.js +0 -28
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/runtime-features.js +0 -124
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/stats.js +0 -32
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/util/timers.js +0 -425
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cache.js +0 -864
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/cachestorage.js +0 -152
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cache/util.js +0 -45
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/constants.js +0 -12
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/index.js +0 -199
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/parse.js +0 -314
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/cookies/util.js +0 -352
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource-stream.js +0 -399
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/eventsource.js +0 -501
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/eventsource/util.js +0 -29
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/LICENSE +0 -21
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/body.js +0 -509
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/constants.js +0 -131
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/data-url.js +0 -596
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata-parser.js +0 -586
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/formdata.js +0 -259
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/global.js +0 -40
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/headers.js +0 -719
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/index.js +0 -2413
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/request.js +0 -1115
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/response.js +0 -641
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/fetch/util.js +0 -1522
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/infra/index.js +0 -229
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/Readme.md +0 -9
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +0 -307
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/webidl/index.js +0 -1006
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/connection.js +0 -329
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/constants.js +0 -126
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/events.js +0 -331
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/frame.js +0 -133
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/permessage-deflate.js +0 -100
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/receiver.js +0 -507
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/sender.js +0 -109
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketerror.js +0 -104
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/stream/websocketstream.js +0 -498
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/util.js +0 -347
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/lib/web/websocket/websocket.js +0 -758
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/package.json +0 -152
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/scripts/strip-comments.js +0 -10
- package/node_modules/@ai-sdk/open-responses/node_modules/undici/types/README.md +0 -6
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
- package/node_modules/@earendil-works/pi-tui/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- 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/@formatjs/icu-messageformat-parser/index.js +0 -2173
- package/node_modules/@formatjs/icu-messageformat-parser/manipulator.js +0 -207
- package/node_modules/@formatjs/icu-messageformat-parser/no-parser.js +0 -160
- package/node_modules/@formatjs/icu-messageformat-parser/package.json +0 -21
- package/node_modules/@formatjs/icu-messageformat-parser/printer.js +0 -224
- package/node_modules/@maka/core/dist/deep-research-client-progress.js +0 -132
- package/node_modules/@maka/core/dist/deep-research-run.js +0 -625
- package/node_modules/@maka/core/dist/deep-research.js +0 -227
- package/node_modules/@maka/core/dist/foreign-session.js +0 -596
- package/node_modules/@maka/core/dist/task-ledger.js +0 -797
- package/node_modules/@maka/core/dist/thread-search.js +0 -498
- package/node_modules/@maka/eval/dist/maka-runtime-policy.js +0 -42
- package/node_modules/@maka/runtime/dist/active-tool-result-prune.js +0 -334
- package/node_modules/@maka/runtime/dist/active-tool-result-working-set.js +0 -218
- package/node_modules/@maka/runtime/dist/archive-read-tool.js +0 -92
- package/node_modules/@maka/runtime/dist/deep-research-tools.js +0 -741
- package/node_modules/@maka/runtime/dist/history-tools.js +0 -429
- package/node_modules/@maka/runtime/dist/provider-runtime-policy.js +0 -43
- package/node_modules/@maka/runtime/dist/sandbox/diagnostics.js +0 -285
- package/node_modules/@maka/runtime/dist/system-prompt/sandbox-context-prompt.js +0 -77
- package/node_modules/@maka/runtime/dist/system-prompt/session-environment-prompt.js +0 -47
- package/node_modules/@maka/runtime/dist/task-ledger-tools.js +0 -244
- package/node_modules/@maka/runtime/dist/test-helpers.js +0 -61
- package/node_modules/@maka/runtime/node_modules/@slack/types/dist/events/index.js +0 -43
- package/node_modules/@maka/runtime/node_modules/@slack/types/package.json +0 -47
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/README.md +0 -390
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/methods.js +0 -1610
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatAppendStreamResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStartStreamResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/ChatStopStreamResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/PinsListResponse.js +0 -37
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchAllResponse.js +0 -82
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SearchFilesResponse.js +0 -63
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessDeleteResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsAccessSetResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsCreateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadGetResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsDownloadStartResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsCreateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteMultipleResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsDeleteResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsInfoResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsListResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsItemsUpdateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/SlackListsUpdateResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedAddResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedListResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedRemoveResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/dist/types/response/WorkflowsFeaturedSetResponse.js +0 -3
- package/node_modules/@maka/runtime/node_modules/@slack/web-api/package.json +0 -71
- package/node_modules/@maka/runtime-host/dist/protocol/deep-research.js +0 -233
- package/node_modules/@maka/runtime-host/dist/protocol/task-ledger.js +0 -321
- package/node_modules/@maka/runtime-host/dist/server/deep-research-coordinator.js +0 -116
- package/node_modules/@maka/runtime-host/dist/server/task-ledger-coordinator.js +0 -154
- package/node_modules/@maka/storage/dist/artifact-storage-layout.js +0 -26
- package/node_modules/@maka/storage/dist/deep-research-authority.js +0 -129
- package/node_modules/@maka/storage/dist/deep-research-store.js +0 -343
- package/node_modules/@maka/storage/dist/foreign-session-store.js +0 -641
- package/node_modules/@maka/storage/dist/provider-request-capture-artifact.js +0 -31
- package/node_modules/@maka/storage/dist/task-ledger-authority.js +0 -121
- package/node_modules/@maka/storage/dist/task-ledger-store-internal.js +0 -32
- package/node_modules/@maka/storage/dist/task-ledger-store.js +0 -663
- 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/@modelcontextprotocol/client/dist/src-D_zzAWoS.mjs +0 -7063
- package/node_modules/@modelcontextprotocol/client/dist/src-NAgB4Mp8.cjs +0 -7431
- package/node_modules/@modelcontextprotocol/core/dist/auth-BWdKR39I.d.mts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/auth-CUe6YdwF.mjs +0 -1678
- package/node_modules/@modelcontextprotocol/core/dist/auth-CfDMXiII.cjs +0 -2899
- package/node_modules/@modelcontextprotocol/core/dist/auth-hYtaIUZm.d.cts.map +0 -1
- package/node_modules/@modelcontextprotocol/core/dist/index.cjs +0 -175
- package/node_modules/@modelcontextprotocol/core/dist/index.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/dist/internal.cjs +0 -201
- package/node_modules/@modelcontextprotocol/core/dist/internal.mjs +0 -3
- package/node_modules/@modelcontextprotocol/core/package.json +0 -85
- package/node_modules/intl-messageformat/intl-messageformat.iife.js +0 -2807
- package/node_modules/intl-messageformat/package.json +0 -40
- package/node_modules/socks/.eslintrc.cjs +0 -11
- /package/node_modules/@maka/{storage/dist/artifact-metadata-repository.js → core/dist/client-plugin-bridge.js} +0 -0
- /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/LICENSE.md +0 -0
- /package/node_modules/{@formatjs → @maka/core/node_modules/@formatjs}/icu-messageformat-parser/README.md +0 -0
- /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/LICENSE.md +0 -0
- /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/README.md +0 -0
- /package/node_modules/{intl-messageformat → @maka/core/node_modules/intl-messageformat}/index.js +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/{@maka/runtime/node_modules/@slack → @slack}/logger/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/README.md +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/logger/package.json +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/README.md +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/block-elements.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/blocks.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/composition-objects.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/block-kit/extensions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/calls.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/chunk.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/bot-profile.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/common/status-emoji-display-info.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/dialog.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/app.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/assistant.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/call.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/channel.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/dnd.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/email.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/entity-details-requested.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/file.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/function.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/grid-migration.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/group.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/im.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/invite.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/link-shared.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/member.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message-metadata.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/message.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/pin.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/reaction.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/shared-channel.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/star.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/steps-from-apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/subteam.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/team.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/token.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/events/user.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-attachments.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/message-metadata.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/types/dist/views.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/LICENSE +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/WebClient.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/chat-stream.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/errors.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/file-upload.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/helpers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/instrument.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/logger.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/retry-policies.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/helpers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/analytics.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/auth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/barriers.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/conversations.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/functions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/inviteRequests.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/roles.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/teams.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/usergroups.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/users.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/admin/workflows.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/api.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/apps.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/assistant.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/auth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bookmarks.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/bots.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/calls.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/canvas.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/chat.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/common.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/conversations.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dialog.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/dnd.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/emoji.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/entity.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/files.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/functions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/index.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/manifest.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/migration.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/oauth.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/openid.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/pins.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reactions.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/reminders.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/rtm.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/search.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/slackLists.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/stars.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/team.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/tooling.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/usergroups.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/users.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/views.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/request/workflows.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAnalyticsGetFileResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsActivitiesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsApprovedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsClearResolutionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsConfigSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsCancelResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRequestsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsRestrictedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAppsUninstallResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyAssignEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyGetEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminAuthPolicyRemoveEntitiesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminBarriersUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsBulkMoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPrivateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsConvertToPublicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsDisconnectSharedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsEkmListOriginalConnectedChannelInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetConversationPrefsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsGetTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRemoveCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessAddGroupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessListGroupsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsRestrictAccessRemoveGroupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSearchResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetConversationPrefsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetCustomRetentionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsSetTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistListGroupsLinkedToChannelResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminConversationsWhitelistRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddAliasResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminEmojiRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminFunctionsPermissionsSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsApprovedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDeniedListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsDenyResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminInviteRequestsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesAddAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesListAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminRolesRemoveAssignmentsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsAdminsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsOwnersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDefaultChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDescriptionResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetDiscoverabilityResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetIconResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminTeamsSettingsSetNameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsAddTeamsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsListChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsergroupsRemoveChannelsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersAssignResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionClearSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionGetSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionInvalidateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetBulkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionResetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSessionSetSettingsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetAdminResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetExpirationResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetOwnerResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersSetRegularResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminUsersUnsupportedVersionsExportResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsCollaboratorsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsPermissionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsSearchResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AdminWorkflowsUnpublishResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ApiTestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsConnectionsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsEventAuthorizationsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestExportResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsManifestValidateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsRequestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsResourcesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsScopesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsPermissionsUsersRequestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUninstallResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AppsUserConnectionUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetStatusResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetSuggestedPromptsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AssistantThreadsSetTitleResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthRevokeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/AuthTestResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BookmarksRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/BotsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsEndResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsParticipantsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CallsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesAccessSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/CanvasesSectionsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsJoinResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChannelsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatDeleteScheduledMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatGetPermalinkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatMeMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostEphemeralResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatPostMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduleMessageResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatScheduledMessagesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUnfurlResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ChatUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsAcceptSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsApproveSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCanvasesCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsDeclineSharedInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsExternalInvitePermissionsSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsInviteSharedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsJoinResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListConnectInvitesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsMembersResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteApproveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteDenyResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsRequestSharedInviteListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ConversationsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DialogOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndDndResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndEndSnoozeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndSetSnoozeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/DndTeamInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EmojiListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/EntityPresentDetailsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCommentsEditResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesCompleteUploadExternalResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesGetUploadURLExternalResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteShareResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRemoteUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesRevokePublicURLResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesSharedPublicURLResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FilesUploadResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteErrorResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/FunctionsCompleteSuccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsArchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateChildResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsInviteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsKickResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsLeaveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRenameResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetPurposeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsSetTopicResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/GroupsUnarchiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ImRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MigrationExchangeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimCloseResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimHistoryResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimMarkResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/MpimRepliesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthAccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthTokenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2AccessResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OauthV2ExchangeResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectTokenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/OpenIDConnectUserInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/PinsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ReactionsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersCompleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersDeleteResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RemindersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmConnectResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/RtmStartResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/SearchMessagesResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsAddResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/StarsRemoveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamAccessLogsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillableInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamBillingInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsDisconnectResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamExternalTeamsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamIntegrationLogsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamPreferencesListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/TeamProfileGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ToolingTokensRotateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsCreateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsDisableResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsEnableResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsergroupsUsersUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersConversationsResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDeletePhotoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersDiscoverableContactsLookupResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersGetPresenceResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersIdentityResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersInfoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersListResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersLookupByEmailResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileGetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersProfileSetResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetActiveResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPhotoResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/UsersSetPresenceResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsOpenResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPublishResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsPushResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/ViewsUpdateResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepCompletedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsStepFailedResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/WorkflowsUpdateStepResponse.js +0 -0
- /package/node_modules/{@maka/runtime/node_modules/@slack → @slack}/web-api/dist/types/response/index.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/License +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/README.md +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/dns.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/example/stop.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/index.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/lib/retry_operation.js +0 -0
- /package/node_modules/{@maka/runtime → @slack/web-api}/node_modules/retry/package.json +0 -0
|
@@ -57,9 +57,10 @@ var AnthropicFiles = class {
|
|
|
57
57
|
async uploadFile({
|
|
58
58
|
data,
|
|
59
59
|
mediaType,
|
|
60
|
-
filename
|
|
60
|
+
filename,
|
|
61
|
+
abortSignal,
|
|
62
|
+
headers
|
|
61
63
|
}) {
|
|
62
|
-
var _a, _b;
|
|
63
64
|
const fileBytes = convertInlineFileDataToUint8Array(data);
|
|
64
65
|
const blob = new Blob([fileBytes], { type: mediaType });
|
|
65
66
|
const formData = new FormData();
|
|
@@ -70,21 +71,24 @@ var AnthropicFiles = class {
|
|
|
70
71
|
}
|
|
71
72
|
const { value: response } = await postFormDataToApi({
|
|
72
73
|
url: `${this.config.baseURL}/files`,
|
|
73
|
-
headers: combineHeaders(
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
headers: combineHeaders(
|
|
75
|
+
this.config.headers(),
|
|
76
|
+
{ "anthropic-beta": "files-api-2025-04-14" },
|
|
77
|
+
headers
|
|
78
|
+
),
|
|
76
79
|
formData,
|
|
77
80
|
failedResponseHandler: anthropicFailedResponseHandler,
|
|
78
81
|
successfulResponseHandler: createJsonResponseHandler(
|
|
79
82
|
anthropicUploadFileResponseSchema
|
|
80
83
|
),
|
|
84
|
+
abortSignal,
|
|
81
85
|
fetch: this.config.fetch
|
|
82
86
|
});
|
|
83
87
|
return {
|
|
84
88
|
warnings: [],
|
|
85
89
|
providerReference: { anthropic: response.id },
|
|
86
|
-
mediaType:
|
|
87
|
-
filename:
|
|
90
|
+
mediaType: response.mime_type ?? mediaType,
|
|
91
|
+
filename: response.filename ?? filename,
|
|
88
92
|
providerMetadata: {
|
|
89
93
|
anthropic: {
|
|
90
94
|
filename: response.filename,
|
|
@@ -101,15 +105,18 @@ var AnthropicFiles = class {
|
|
|
101
105
|
// src/anthropic-language-model.ts
|
|
102
106
|
import {
|
|
103
107
|
APICallError,
|
|
108
|
+
InvalidArgumentError,
|
|
104
109
|
InvalidResponseDataError
|
|
105
110
|
} from "@ai-sdk/provider";
|
|
106
111
|
import {
|
|
107
112
|
combineHeaders as combineHeaders2,
|
|
108
113
|
createEventSourceResponseHandler,
|
|
109
114
|
createJsonResponseHandler as createJsonResponseHandler2,
|
|
115
|
+
createProviderStreamError,
|
|
110
116
|
createToolNameMapping,
|
|
111
117
|
generateId,
|
|
112
118
|
isCustomReasoning,
|
|
119
|
+
isProviderStreamError,
|
|
113
120
|
mapReasoningToProviderBudget,
|
|
114
121
|
mapReasoningToProviderEffort,
|
|
115
122
|
parseProviderOptions as parseProviderOptions2,
|
|
@@ -134,6 +141,20 @@ var anthropicStopDetailsSchema = z3.object({
|
|
|
134
141
|
explanation: z3.string().nullish(),
|
|
135
142
|
recommended_model: z3.string().nullish()
|
|
136
143
|
});
|
|
144
|
+
var anthropicSafeguardResultSchema = z3.object({
|
|
145
|
+
type: z3.string(),
|
|
146
|
+
status: z3.object({
|
|
147
|
+
type: z3.string(),
|
|
148
|
+
tool_uses: z3.record(
|
|
149
|
+
z3.string(),
|
|
150
|
+
z3.object({
|
|
151
|
+
type: z3.string(),
|
|
152
|
+
outcome: z3.string().nullish(),
|
|
153
|
+
explanation: z3.string().nullish()
|
|
154
|
+
})
|
|
155
|
+
).nullish()
|
|
156
|
+
})
|
|
157
|
+
});
|
|
137
158
|
var anthropicToolCallCallerSchema = z3.union([
|
|
138
159
|
z3.object({
|
|
139
160
|
type: z3.literal("code_execution_20250825"),
|
|
@@ -147,6 +168,71 @@ var anthropicToolCallCallerSchema = z3.union([
|
|
|
147
168
|
type: z3.literal("direct")
|
|
148
169
|
})
|
|
149
170
|
]);
|
|
171
|
+
var anthropicCitationSchema = z3.discriminatedUnion("type", [
|
|
172
|
+
z3.object({
|
|
173
|
+
type: z3.literal("web_search_result_location"),
|
|
174
|
+
cited_text: z3.string(),
|
|
175
|
+
url: z3.string(),
|
|
176
|
+
title: z3.string().nullable(),
|
|
177
|
+
encrypted_index: z3.string()
|
|
178
|
+
}),
|
|
179
|
+
z3.object({
|
|
180
|
+
type: z3.literal("page_location"),
|
|
181
|
+
cited_text: z3.string(),
|
|
182
|
+
document_index: z3.number(),
|
|
183
|
+
document_title: z3.string().nullable(),
|
|
184
|
+
start_page_number: z3.number(),
|
|
185
|
+
end_page_number: z3.number(),
|
|
186
|
+
file_id: z3.string().nullish()
|
|
187
|
+
}),
|
|
188
|
+
z3.object({
|
|
189
|
+
type: z3.literal("char_location"),
|
|
190
|
+
cited_text: z3.string(),
|
|
191
|
+
document_index: z3.number(),
|
|
192
|
+
document_title: z3.string().nullable(),
|
|
193
|
+
start_char_index: z3.number(),
|
|
194
|
+
end_char_index: z3.number(),
|
|
195
|
+
file_id: z3.string().nullish()
|
|
196
|
+
}),
|
|
197
|
+
z3.object({
|
|
198
|
+
type: z3.literal("content_block_location"),
|
|
199
|
+
cited_text: z3.string(),
|
|
200
|
+
document_index: z3.number(),
|
|
201
|
+
document_title: z3.string().nullable(),
|
|
202
|
+
start_block_index: z3.number(),
|
|
203
|
+
end_block_index: z3.number(),
|
|
204
|
+
file_id: z3.string().nullable()
|
|
205
|
+
}),
|
|
206
|
+
z3.object({
|
|
207
|
+
type: z3.literal("search_result_location"),
|
|
208
|
+
cited_text: z3.string(),
|
|
209
|
+
search_result_index: z3.number(),
|
|
210
|
+
source: z3.string(),
|
|
211
|
+
title: z3.string().nullable(),
|
|
212
|
+
start_block_index: z3.number(),
|
|
213
|
+
end_block_index: z3.number()
|
|
214
|
+
})
|
|
215
|
+
]);
|
|
216
|
+
var anthropicMcpToolResultContentSchema = z3.union([
|
|
217
|
+
z3.string(),
|
|
218
|
+
z3.array(
|
|
219
|
+
z3.union([
|
|
220
|
+
z3.string(),
|
|
221
|
+
z3.object({
|
|
222
|
+
type: z3.literal("text"),
|
|
223
|
+
text: z3.string(),
|
|
224
|
+
// MCP tool-result citations are opaque third-party pass-through data.
|
|
225
|
+
// Keep them permissive so new shapes do not reject whole responses.
|
|
226
|
+
citations: z3.array(z3.json()).nullable().optional()
|
|
227
|
+
})
|
|
228
|
+
])
|
|
229
|
+
)
|
|
230
|
+
]);
|
|
231
|
+
var anthropicInputTransformationSchema = z3.object({
|
|
232
|
+
type: z3.string(),
|
|
233
|
+
path: z3.string(),
|
|
234
|
+
reason: z3.string()
|
|
235
|
+
});
|
|
150
236
|
var anthropicResponseSchema = lazySchema3(
|
|
151
237
|
() => zodSchema3(
|
|
152
238
|
z3.object({
|
|
@@ -158,33 +244,7 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
158
244
|
z3.object({
|
|
159
245
|
type: z3.literal("text"),
|
|
160
246
|
text: z3.string(),
|
|
161
|
-
citations: z3.array(
|
|
162
|
-
z3.discriminatedUnion("type", [
|
|
163
|
-
z3.object({
|
|
164
|
-
type: z3.literal("web_search_result_location"),
|
|
165
|
-
cited_text: z3.string(),
|
|
166
|
-
url: z3.string(),
|
|
167
|
-
title: z3.string(),
|
|
168
|
-
encrypted_index: z3.string()
|
|
169
|
-
}),
|
|
170
|
-
z3.object({
|
|
171
|
-
type: z3.literal("page_location"),
|
|
172
|
-
cited_text: z3.string(),
|
|
173
|
-
document_index: z3.number(),
|
|
174
|
-
document_title: z3.string().nullable(),
|
|
175
|
-
start_page_number: z3.number(),
|
|
176
|
-
end_page_number: z3.number()
|
|
177
|
-
}),
|
|
178
|
-
z3.object({
|
|
179
|
-
type: z3.literal("char_location"),
|
|
180
|
-
cited_text: z3.string(),
|
|
181
|
-
document_index: z3.number(),
|
|
182
|
-
document_title: z3.string().nullable(),
|
|
183
|
-
start_char_index: z3.number(),
|
|
184
|
-
end_char_index: z3.number()
|
|
185
|
-
})
|
|
186
|
-
])
|
|
187
|
-
).optional()
|
|
247
|
+
citations: z3.array(anthropicCitationSchema).nullable().optional()
|
|
188
248
|
}),
|
|
189
249
|
z3.object({
|
|
190
250
|
type: z3.literal("thinking"),
|
|
@@ -197,7 +257,8 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
197
257
|
}),
|
|
198
258
|
z3.object({
|
|
199
259
|
type: z3.literal("compaction"),
|
|
200
|
-
content: z3.string()
|
|
260
|
+
content: z3.string().nullish(),
|
|
261
|
+
signature: z3.string().nullish()
|
|
201
262
|
}),
|
|
202
263
|
z3.object({
|
|
203
264
|
type: z3.literal("tool_use"),
|
|
@@ -205,7 +266,9 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
205
266
|
name: z3.string(),
|
|
206
267
|
input: z3.unknown(),
|
|
207
268
|
// Programmatic tool calling: caller info when triggered from code execution
|
|
208
|
-
caller: anthropicToolCallCallerSchema.optional()
|
|
269
|
+
caller: anthropicToolCallCallerSchema.optional(),
|
|
270
|
+
// Toolsets (e.g. computer toolset): name of the toolset this member call belongs to
|
|
271
|
+
toolset_name: z3.string().nullish()
|
|
209
272
|
}),
|
|
210
273
|
z3.object({
|
|
211
274
|
type: z3.literal("server_tool_use"),
|
|
@@ -225,12 +288,7 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
225
288
|
type: z3.literal("mcp_tool_result"),
|
|
226
289
|
tool_use_id: z3.string(),
|
|
227
290
|
is_error: z3.boolean(),
|
|
228
|
-
content:
|
|
229
|
-
z3.union([
|
|
230
|
-
z3.string(),
|
|
231
|
-
z3.object({ type: z3.literal("text"), text: z3.string() })
|
|
232
|
-
])
|
|
233
|
-
)
|
|
291
|
+
content: anthropicMcpToolResultContentSchema
|
|
234
292
|
}),
|
|
235
293
|
z3.object({
|
|
236
294
|
type: z3.literal("web_fetch_tool_result"),
|
|
@@ -240,7 +298,7 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
240
298
|
z3.object({
|
|
241
299
|
type: z3.literal("web_fetch_result"),
|
|
242
300
|
url: z3.string(),
|
|
243
|
-
retrieved_at: z3.string(),
|
|
301
|
+
retrieved_at: z3.string().nullable(),
|
|
244
302
|
content: z3.object({
|
|
245
303
|
type: z3.literal("document"),
|
|
246
304
|
title: z3.string().nullable(),
|
|
@@ -274,7 +332,7 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
274
332
|
z3.object({
|
|
275
333
|
type: z3.literal("web_search_result"),
|
|
276
334
|
url: z3.string(),
|
|
277
|
-
title: z3.string(),
|
|
335
|
+
title: z3.string().nullable(),
|
|
278
336
|
encrypted_content: z3.string(),
|
|
279
337
|
page_age: z3.string().nullish()
|
|
280
338
|
})
|
|
@@ -396,6 +454,10 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
396
454
|
})
|
|
397
455
|
])
|
|
398
456
|
}),
|
|
457
|
+
z3.object({
|
|
458
|
+
type: z3.literal("container_upload"),
|
|
459
|
+
file_id: z3.string()
|
|
460
|
+
}),
|
|
399
461
|
// advisor results for advisor_20260301:
|
|
400
462
|
z3.object({
|
|
401
463
|
type: z3.literal("advisor_tool_result"),
|
|
@@ -428,6 +490,8 @@ var anthropicResponseSchema = lazySchema3(
|
|
|
428
490
|
stop_reason: z3.string().nullish(),
|
|
429
491
|
stop_sequence: z3.string().nullish(),
|
|
430
492
|
stop_details: anthropicStopDetailsSchema.nullish(),
|
|
493
|
+
input_transformations: z3.array(anthropicInputTransformationSchema).nullish(),
|
|
494
|
+
safeguard_results: z3.array(anthropicSafeguardResultSchema).nullish(),
|
|
431
495
|
usage: z3.looseObject({
|
|
432
496
|
input_tokens: z3.number(),
|
|
433
497
|
output_tokens: z3.number(),
|
|
@@ -507,11 +571,13 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
507
571
|
id: z3.string(),
|
|
508
572
|
name: z3.string(),
|
|
509
573
|
input: z3.unknown(),
|
|
510
|
-
caller: anthropicToolCallCallerSchema.optional()
|
|
574
|
+
caller: anthropicToolCallCallerSchema.optional(),
|
|
575
|
+
toolset_name: z3.string().nullish()
|
|
511
576
|
})
|
|
512
577
|
])
|
|
513
578
|
).nullish(),
|
|
514
579
|
stop_reason: z3.string().nullish(),
|
|
580
|
+
input_transformations: z3.array(anthropicInputTransformationSchema).nullish(),
|
|
515
581
|
container: z3.object({
|
|
516
582
|
expires_at: z3.string(),
|
|
517
583
|
id: z3.string()
|
|
@@ -537,7 +603,9 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
537
603
|
// Programmatic tool calling: input may be present directly for deferred tool calls
|
|
538
604
|
input: z3.record(z3.string(), z3.unknown()).optional(),
|
|
539
605
|
// Programmatic tool calling: caller info when triggered from code execution
|
|
540
|
-
caller: anthropicToolCallCallerSchema.optional()
|
|
606
|
+
caller: anthropicToolCallCallerSchema.optional(),
|
|
607
|
+
// Toolsets (e.g. computer toolset): name of the toolset this member call belongs to
|
|
608
|
+
toolset_name: z3.string().nullish()
|
|
541
609
|
}),
|
|
542
610
|
z3.object({
|
|
543
611
|
type: z3.literal("redacted_thinking"),
|
|
@@ -545,7 +613,8 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
545
613
|
}),
|
|
546
614
|
z3.object({
|
|
547
615
|
type: z3.literal("compaction"),
|
|
548
|
-
content: z3.string().nullish()
|
|
616
|
+
content: z3.string().nullish(),
|
|
617
|
+
signature: z3.string().nullish()
|
|
549
618
|
}),
|
|
550
619
|
z3.object({
|
|
551
620
|
type: z3.literal("server_tool_use"),
|
|
@@ -565,12 +634,7 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
565
634
|
type: z3.literal("mcp_tool_result"),
|
|
566
635
|
tool_use_id: z3.string(),
|
|
567
636
|
is_error: z3.boolean(),
|
|
568
|
-
content:
|
|
569
|
-
z3.union([
|
|
570
|
-
z3.string(),
|
|
571
|
-
z3.object({ type: z3.literal("text"), text: z3.string() })
|
|
572
|
-
])
|
|
573
|
-
)
|
|
637
|
+
content: anthropicMcpToolResultContentSchema
|
|
574
638
|
}),
|
|
575
639
|
z3.object({
|
|
576
640
|
type: z3.literal("web_fetch_tool_result"),
|
|
@@ -580,7 +644,7 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
580
644
|
z3.object({
|
|
581
645
|
type: z3.literal("web_fetch_result"),
|
|
582
646
|
url: z3.string(),
|
|
583
|
-
retrieved_at: z3.string(),
|
|
647
|
+
retrieved_at: z3.string().nullable(),
|
|
584
648
|
content: z3.object({
|
|
585
649
|
type: z3.literal("document"),
|
|
586
650
|
title: z3.string().nullable(),
|
|
@@ -614,7 +678,7 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
614
678
|
z3.object({
|
|
615
679
|
type: z3.literal("web_search_result"),
|
|
616
680
|
url: z3.string(),
|
|
617
|
-
title: z3.string(),
|
|
681
|
+
title: z3.string().nullable(),
|
|
618
682
|
encrypted_content: z3.string(),
|
|
619
683
|
page_age: z3.string().nullish()
|
|
620
684
|
})
|
|
@@ -790,31 +854,7 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
790
854
|
}),
|
|
791
855
|
z3.object({
|
|
792
856
|
type: z3.literal("citations_delta"),
|
|
793
|
-
citation:
|
|
794
|
-
z3.object({
|
|
795
|
-
type: z3.literal("web_search_result_location"),
|
|
796
|
-
cited_text: z3.string(),
|
|
797
|
-
url: z3.string(),
|
|
798
|
-
title: z3.string(),
|
|
799
|
-
encrypted_index: z3.string()
|
|
800
|
-
}),
|
|
801
|
-
z3.object({
|
|
802
|
-
type: z3.literal("page_location"),
|
|
803
|
-
cited_text: z3.string(),
|
|
804
|
-
document_index: z3.number(),
|
|
805
|
-
document_title: z3.string().nullable(),
|
|
806
|
-
start_page_number: z3.number(),
|
|
807
|
-
end_page_number: z3.number()
|
|
808
|
-
}),
|
|
809
|
-
z3.object({
|
|
810
|
-
type: z3.literal("char_location"),
|
|
811
|
-
cited_text: z3.string(),
|
|
812
|
-
document_index: z3.number(),
|
|
813
|
-
document_title: z3.string().nullable(),
|
|
814
|
-
start_char_index: z3.number(),
|
|
815
|
-
end_char_index: z3.number()
|
|
816
|
-
})
|
|
817
|
-
])
|
|
857
|
+
citation: anthropicCitationSchema
|
|
818
858
|
})
|
|
819
859
|
])
|
|
820
860
|
}),
|
|
@@ -826,7 +866,11 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
826
866
|
type: z3.literal("error"),
|
|
827
867
|
error: z3.object({
|
|
828
868
|
type: z3.string(),
|
|
829
|
-
message: z3.string()
|
|
869
|
+
message: z3.string(),
|
|
870
|
+
code: z3.union([z3.string(), z3.number()]).nullish(),
|
|
871
|
+
statusCode: z3.number().nullish(),
|
|
872
|
+
isRetryable: z3.boolean().nullish(),
|
|
873
|
+
data: z3.unknown().nullish()
|
|
830
874
|
})
|
|
831
875
|
}),
|
|
832
876
|
z3.object({
|
|
@@ -835,6 +879,7 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
835
879
|
stop_reason: z3.string().nullish(),
|
|
836
880
|
stop_sequence: z3.string().nullish(),
|
|
837
881
|
stop_details: anthropicStopDetailsSchema.nullish(),
|
|
882
|
+
safeguard_results: z3.array(anthropicSafeguardResultSchema).nullish(),
|
|
838
883
|
container: z3.object({
|
|
839
884
|
expires_at: z3.string(),
|
|
840
885
|
id: z3.string(),
|
|
@@ -874,6 +919,7 @@ var anthropicChunkSchema = lazySchema3(
|
|
|
874
919
|
})
|
|
875
920
|
).nullish()
|
|
876
921
|
}),
|
|
922
|
+
input_transformations: z3.array(anthropicInputTransformationSchema).nullish(),
|
|
877
923
|
context_management: z3.object({
|
|
878
924
|
applied_edits: z3.array(
|
|
879
925
|
z3.union([
|
|
@@ -943,6 +989,21 @@ var anthropicFilePartProviderOptions = z4.object({
|
|
|
943
989
|
context: z4.string().optional()
|
|
944
990
|
});
|
|
945
991
|
var anthropicSystemMessageProviderOptions = z4.object({
|
|
992
|
+
/**
|
|
993
|
+
* Controls when an ephemeral mid-conversation system message is cleared.
|
|
994
|
+
*
|
|
995
|
+
* Only supported on system messages that appear mid-conversation.
|
|
996
|
+
* The required `mid-conversation-system-clear-at-2026-08-21` beta is
|
|
997
|
+
* added automatically.
|
|
998
|
+
*/
|
|
999
|
+
clearAt: z4.literal("next_user_message").optional(),
|
|
1000
|
+
/**
|
|
1001
|
+
* Sets the model effort from the next user turn until a later message
|
|
1002
|
+
* changes it. An effort-only system message with empty content can appear
|
|
1003
|
+
* first. The required `mid-conversation-output-config-2026-07-01` beta is
|
|
1004
|
+
* added automatically.
|
|
1005
|
+
*/
|
|
1006
|
+
effort: z4.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
|
|
946
1007
|
/**
|
|
947
1008
|
* Mid-conversation tool changes. Adds or removes tools from the
|
|
948
1009
|
* conversation's tool set between turns without invalidating the prompt
|
|
@@ -990,25 +1051,57 @@ var anthropicLanguageModelOptions = z4.object({
|
|
|
990
1051
|
*
|
|
991
1052
|
* When enabled, responses include thinking content blocks showing Claude's thinking process before the final answer.
|
|
992
1053
|
* Requires a minimum budget of 1,024 tokens and counts towards the `max_tokens` limit.
|
|
1054
|
+
*
|
|
1055
|
+
* Models that always use adaptive thinking (e.g. `claude-opus-5-5`,
|
|
1056
|
+
* `claude-fable-5-1`) reject `enabled` and `disabled`. For those models the
|
|
1057
|
+
* provider drops the unsupported setting, emits a warning, and sends an
|
|
1058
|
+
* adaptive thinking request. Use `effort` to control how much they think.
|
|
1059
|
+
*
|
|
1060
|
+
* `claude-sonnet-5-5` supports `between_tools`, its lowest thinking setting,
|
|
1061
|
+
* and the provider uses it in place of `disabled` for that model.
|
|
993
1062
|
*/
|
|
994
|
-
thinking: z4.
|
|
995
|
-
z4.
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1063
|
+
thinking: z4.union([
|
|
1064
|
+
z4.discriminatedUnion("type", [
|
|
1065
|
+
z4.object({
|
|
1066
|
+
/** for Sonnet 4.6, Opus 4.6, and newer models */
|
|
1067
|
+
type: z4.literal("adaptive"),
|
|
1068
|
+
/**
|
|
1069
|
+
* Controls whether thinking content is included in the response.
|
|
1070
|
+
* - `"omitted"`: Thinking blocks are present but text is empty (default for Opus 4.7+).
|
|
1071
|
+
* - `"summarized"`: Thinking content is returned.
|
|
1072
|
+
* - `"updates"`: Thinking updates are returned between tool calls.
|
|
1073
|
+
*/
|
|
1074
|
+
display: z4.enum(["omitted", "summarized", "updates"]).optional(),
|
|
1075
|
+
/**
|
|
1076
|
+
* Controls how thinking blocks are bound to an existing thinking
|
|
1077
|
+
* prefix. Requires the `thinking-binding-controls-2026-08-01` beta.
|
|
1078
|
+
*/
|
|
1079
|
+
blockBinding: z4.object({
|
|
1080
|
+
prefixMismatchBehavior: z4.enum(["error", "drop_block"])
|
|
1081
|
+
}).optional()
|
|
1082
|
+
}),
|
|
1083
|
+
z4.object({
|
|
1084
|
+
/** for models before Opus 4.6, except Sonnet 4.6 still supports it */
|
|
1085
|
+
type: z4.literal("enabled"),
|
|
1086
|
+
budgetTokens: z4.number().optional()
|
|
1087
|
+
}),
|
|
1088
|
+
z4.object({
|
|
1089
|
+
type: z4.literal("disabled")
|
|
1090
|
+
}),
|
|
1091
|
+
z4.object({
|
|
1092
|
+
/**
|
|
1093
|
+
* for `claude-sonnet-5-5`: no upfront thinking, but progress notes
|
|
1094
|
+
* between tool calls are returned as summarized thinking blocks.
|
|
1095
|
+
* Only supported at `low`, `medium`, and `high` effort.
|
|
1096
|
+
*/
|
|
1097
|
+
type: z4.literal("between_tools")
|
|
1098
|
+
})
|
|
1099
|
+
]),
|
|
1010
1100
|
z4.object({
|
|
1011
|
-
type: z4.
|
|
1101
|
+
type: z4.never().optional(),
|
|
1102
|
+
blockBinding: z4.object({
|
|
1103
|
+
prefixMismatchBehavior: z4.enum(["error", "drop_block"])
|
|
1104
|
+
})
|
|
1012
1105
|
})
|
|
1013
1106
|
]).optional(),
|
|
1014
1107
|
/**
|
|
@@ -1086,7 +1179,11 @@ var anthropicLanguageModelOptions = z4.object({
|
|
|
1086
1179
|
*/
|
|
1087
1180
|
toolStreaming: z4.boolean().optional(),
|
|
1088
1181
|
/**
|
|
1089
|
-
*
|
|
1182
|
+
* Controls how much effort the model spends on thinking, text responses,
|
|
1183
|
+
* and tool calls. On models that always use adaptive thinking
|
|
1184
|
+
* (e.g. `claude-opus-5-5`), effort is the main lever for latency and cost.
|
|
1185
|
+
*
|
|
1186
|
+
* The API default is `high` for most models and `medium` for `claude-opus-5-5`.
|
|
1090
1187
|
*/
|
|
1091
1188
|
effort: z4.enum(["low", "medium", "high", "xhigh", "max"]).optional(),
|
|
1092
1189
|
/**
|
|
@@ -1106,6 +1203,8 @@ var anthropicLanguageModelOptions = z4.object({
|
|
|
1106
1203
|
* Only supported with claude-opus-4-6.
|
|
1107
1204
|
*/
|
|
1108
1205
|
speed: z4.enum(["fast", "standard"]).optional(),
|
|
1206
|
+
/** Selects Anthropic's service tier for the request. */
|
|
1207
|
+
serviceTier: z4.enum(["auto", "standard_only"]).optional(),
|
|
1109
1208
|
/**
|
|
1110
1209
|
* Controls where model inference runs for this request.
|
|
1111
1210
|
*
|
|
@@ -1150,6 +1249,32 @@ var anthropicLanguageModelOptions = z4.object({
|
|
|
1150
1249
|
* Allow a provider to receive the full `betas` set if it needs it.
|
|
1151
1250
|
*/
|
|
1152
1251
|
anthropicBeta: z4.array(z4.string()).optional(),
|
|
1252
|
+
/**
|
|
1253
|
+
* Server-side safeguards to run as part of the request.
|
|
1254
|
+
*
|
|
1255
|
+
* `dangerous_tool_use` asks the API to classify every `tool_use` block in
|
|
1256
|
+
* the response for dangerous actions (the check Claude Code's auto mode
|
|
1257
|
+
* relies on). The per-call verdicts are returned in
|
|
1258
|
+
* `providerMetadata.anthropic.safeguardResults`, keyed by tool call id.
|
|
1259
|
+
* `classifierContext` is passed through to the API as `classifier_context`.
|
|
1260
|
+
* The `dangerous-tool-use-2026-09-03` beta is added automatically.
|
|
1261
|
+
*/
|
|
1262
|
+
safeguards: z4.array(
|
|
1263
|
+
z4.object({
|
|
1264
|
+
type: z4.literal("dangerous_tool_use"),
|
|
1265
|
+
classifierContext: z4.record(z4.string(), z4.unknown()).optional()
|
|
1266
|
+
})
|
|
1267
|
+
).optional(),
|
|
1268
|
+
/**
|
|
1269
|
+
* Requests an on-demand summary of the supplied conversation.
|
|
1270
|
+
*
|
|
1271
|
+
* The required `compact-2026-09-04` beta is added automatically.
|
|
1272
|
+
* Cannot be combined with `contextManagement`.
|
|
1273
|
+
*/
|
|
1274
|
+
compaction: z4.object({
|
|
1275
|
+
type: z4.literal("summarize"),
|
|
1276
|
+
instructions: z4.string().optional()
|
|
1277
|
+
}).optional(),
|
|
1153
1278
|
contextManagement: z4.object({
|
|
1154
1279
|
edits: z4.array(
|
|
1155
1280
|
z4.discriminatedUnion("type", [
|
|
@@ -1208,9 +1333,8 @@ import {
|
|
|
1208
1333
|
// src/get-cache-control.ts
|
|
1209
1334
|
var MAX_CACHE_BREAKPOINTS = 4;
|
|
1210
1335
|
function getCacheControl(providerMetadata) {
|
|
1211
|
-
|
|
1212
|
-
const
|
|
1213
|
-
const cacheControlValue = (_a = anthropic == null ? void 0 : anthropic.cacheControl) != null ? _a : anthropic == null ? void 0 : anthropic.cache_control;
|
|
1336
|
+
const anthropic = providerMetadata?.anthropic;
|
|
1337
|
+
const cacheControlValue = anthropic?.cacheControl ?? anthropic?.cache_control;
|
|
1214
1338
|
return cacheControlValue;
|
|
1215
1339
|
}
|
|
1216
1340
|
var CacheControlValidator = class {
|
|
@@ -1300,103 +1424,114 @@ var advisor_20260301 = (args) => {
|
|
|
1300
1424
|
return factory(args);
|
|
1301
1425
|
};
|
|
1302
1426
|
|
|
1303
|
-
// src/tool/
|
|
1427
|
+
// src/tool/computer-toolset_20260801.ts
|
|
1304
1428
|
import {
|
|
1305
1429
|
createProviderDefinedToolFactory,
|
|
1306
1430
|
lazySchema as lazySchema5,
|
|
1307
1431
|
zodSchema as zodSchema5
|
|
1308
1432
|
} from "@ai-sdk/provider-utils";
|
|
1309
1433
|
import { z as z6 } from "zod/v4";
|
|
1310
|
-
var
|
|
1434
|
+
var computerToolset_20260801Members = [
|
|
1435
|
+
"screenshot",
|
|
1436
|
+
"zoom",
|
|
1437
|
+
"left_click",
|
|
1438
|
+
"right_click",
|
|
1439
|
+
"middle_click",
|
|
1440
|
+
"double_click",
|
|
1441
|
+
"triple_click",
|
|
1442
|
+
"left_click_drag",
|
|
1443
|
+
"mouse_move",
|
|
1444
|
+
"left_mouse_down",
|
|
1445
|
+
"left_mouse_up",
|
|
1446
|
+
"cursor_position",
|
|
1447
|
+
"scroll",
|
|
1448
|
+
"type",
|
|
1449
|
+
"key",
|
|
1450
|
+
"hold_key",
|
|
1451
|
+
"wait"
|
|
1452
|
+
];
|
|
1453
|
+
var computerToolset_20260801InputSchema = lazySchema5(
|
|
1311
1454
|
() => zodSchema5(
|
|
1312
1455
|
z6.object({
|
|
1313
|
-
|
|
1456
|
+
action: z6.enum(computerToolset_20260801Members),
|
|
1457
|
+
coordinate: z6.tuple([z6.number().int(), z6.number().int()]).optional(),
|
|
1458
|
+
duration: z6.number().optional(),
|
|
1459
|
+
region: z6.tuple([
|
|
1460
|
+
z6.number().int(),
|
|
1461
|
+
z6.number().int(),
|
|
1462
|
+
z6.number().int(),
|
|
1463
|
+
z6.number().int()
|
|
1464
|
+
]).optional(),
|
|
1465
|
+
repeat: z6.number().int().optional(),
|
|
1466
|
+
scroll_amount: z6.number().optional(),
|
|
1467
|
+
scroll_direction: z6.enum(["up", "down", "left", "right"]).optional(),
|
|
1468
|
+
start_coordinate: z6.tuple([z6.number().int(), z6.number().int()]).optional(),
|
|
1469
|
+
text: z6.string().optional()
|
|
1314
1470
|
})
|
|
1315
1471
|
)
|
|
1316
1472
|
);
|
|
1317
|
-
var
|
|
1473
|
+
var computerToolset_20260801ArgsSchema = lazySchema5(
|
|
1318
1474
|
() => zodSchema5(
|
|
1319
1475
|
z6.object({
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
view_range: z6.array(z6.number().int()).optional()
|
|
1476
|
+
configs: z6.partialRecord(
|
|
1477
|
+
z6.enum(computerToolset_20260801Members),
|
|
1478
|
+
z6.object({
|
|
1479
|
+
enabled: z6.boolean().optional(),
|
|
1480
|
+
deferLoading: z6.boolean().optional()
|
|
1481
|
+
})
|
|
1482
|
+
).optional()
|
|
1328
1483
|
})
|
|
1329
1484
|
)
|
|
1330
1485
|
);
|
|
1331
|
-
var
|
|
1332
|
-
id: "anthropic.
|
|
1333
|
-
inputSchema:
|
|
1486
|
+
var computerToolset_20260801 = createProviderDefinedToolFactory({
|
|
1487
|
+
id: "anthropic.computer_toolset_20260801",
|
|
1488
|
+
inputSchema: computerToolset_20260801InputSchema
|
|
1334
1489
|
});
|
|
1335
|
-
var textEditor_20250728 = (args = {}) => {
|
|
1336
|
-
return factory2(args);
|
|
1337
|
-
};
|
|
1338
1490
|
|
|
1339
|
-
// src/tool/
|
|
1491
|
+
// src/tool/text-editor_20250728.ts
|
|
1340
1492
|
import {
|
|
1341
|
-
|
|
1493
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory2,
|
|
1342
1494
|
lazySchema as lazySchema6,
|
|
1343
1495
|
zodSchema as zodSchema6
|
|
1344
1496
|
} from "@ai-sdk/provider-utils";
|
|
1345
1497
|
import { z as z7 } from "zod/v4";
|
|
1346
|
-
var
|
|
1498
|
+
var textEditor_20250728ArgsSchema = lazySchema6(
|
|
1347
1499
|
() => zodSchema6(
|
|
1348
1500
|
z7.object({
|
|
1349
|
-
|
|
1350
|
-
allowedDomains: z7.array(z7.string()).optional(),
|
|
1351
|
-
blockedDomains: z7.array(z7.string()).optional(),
|
|
1352
|
-
userLocation: z7.object({
|
|
1353
|
-
type: z7.literal("approximate"),
|
|
1354
|
-
city: z7.string().optional(),
|
|
1355
|
-
region: z7.string().optional(),
|
|
1356
|
-
country: z7.string().optional(),
|
|
1357
|
-
timezone: z7.string().optional()
|
|
1358
|
-
}).optional()
|
|
1501
|
+
maxCharacters: z7.number().optional()
|
|
1359
1502
|
})
|
|
1360
1503
|
)
|
|
1361
1504
|
);
|
|
1362
|
-
var
|
|
1363
|
-
() => zodSchema6(
|
|
1364
|
-
z7.array(
|
|
1365
|
-
z7.object({
|
|
1366
|
-
url: z7.string(),
|
|
1367
|
-
title: z7.string().nullable(),
|
|
1368
|
-
pageAge: z7.string().nullable(),
|
|
1369
|
-
encryptedContent: z7.string(),
|
|
1370
|
-
type: z7.literal("web_search_result")
|
|
1371
|
-
})
|
|
1372
|
-
)
|
|
1373
|
-
)
|
|
1374
|
-
);
|
|
1375
|
-
var webSearch_20260209InputSchema = lazySchema6(
|
|
1505
|
+
var textEditor_20250728InputSchema = lazySchema6(
|
|
1376
1506
|
() => zodSchema6(
|
|
1377
1507
|
z7.object({
|
|
1378
|
-
|
|
1508
|
+
command: z7.enum(["view", "create", "str_replace", "insert"]),
|
|
1509
|
+
path: z7.string(),
|
|
1510
|
+
file_text: z7.string().optional(),
|
|
1511
|
+
insert_line: z7.number().int().optional(),
|
|
1512
|
+
new_str: z7.string().optional(),
|
|
1513
|
+
insert_text: z7.string().optional(),
|
|
1514
|
+
old_str: z7.string().optional(),
|
|
1515
|
+
view_range: z7.array(z7.number().int()).optional()
|
|
1379
1516
|
})
|
|
1380
1517
|
)
|
|
1381
1518
|
);
|
|
1382
|
-
var
|
|
1383
|
-
id: "anthropic.
|
|
1384
|
-
inputSchema:
|
|
1385
|
-
outputSchema: webSearch_20260209OutputSchema,
|
|
1386
|
-
supportsDeferredResults: true
|
|
1519
|
+
var factory2 = createProviderDefinedToolFactory2({
|
|
1520
|
+
id: "anthropic.text_editor_20250728",
|
|
1521
|
+
inputSchema: textEditor_20250728InputSchema
|
|
1387
1522
|
});
|
|
1388
|
-
var
|
|
1389
|
-
return
|
|
1523
|
+
var textEditor_20250728 = (args = {}) => {
|
|
1524
|
+
return factory2(args);
|
|
1390
1525
|
};
|
|
1391
1526
|
|
|
1392
|
-
// src/tool/web-
|
|
1527
|
+
// src/tool/web-search_20260318.ts
|
|
1393
1528
|
import {
|
|
1394
|
-
createProviderExecutedToolFactory as
|
|
1529
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory2,
|
|
1395
1530
|
lazySchema as lazySchema7,
|
|
1396
1531
|
zodSchema as zodSchema7
|
|
1397
1532
|
} from "@ai-sdk/provider-utils";
|
|
1398
1533
|
import { z as z8 } from "zod/v4";
|
|
1399
|
-
var
|
|
1534
|
+
var webSearch_20260318ArgsSchema = lazySchema7(
|
|
1400
1535
|
() => zodSchema7(
|
|
1401
1536
|
z8.object({
|
|
1402
1537
|
maxUses: z8.number().optional(),
|
|
@@ -1408,11 +1543,12 @@ var webSearch_20250305ArgsSchema = lazySchema7(
|
|
|
1408
1543
|
region: z8.string().optional(),
|
|
1409
1544
|
country: z8.string().optional(),
|
|
1410
1545
|
timezone: z8.string().optional()
|
|
1411
|
-
}).optional()
|
|
1546
|
+
}).optional(),
|
|
1547
|
+
responseInclusion: z8.enum(["full", "excluded"]).optional()
|
|
1412
1548
|
})
|
|
1413
1549
|
)
|
|
1414
1550
|
);
|
|
1415
|
-
var
|
|
1551
|
+
var webSearch_20260318OutputSchema = lazySchema7(
|
|
1416
1552
|
() => zodSchema7(
|
|
1417
1553
|
z8.array(
|
|
1418
1554
|
z8.object({
|
|
@@ -1425,143 +1561,312 @@ var webSearch_20250305OutputSchema = lazySchema7(
|
|
|
1425
1561
|
)
|
|
1426
1562
|
)
|
|
1427
1563
|
);
|
|
1428
|
-
var
|
|
1564
|
+
var webSearch_20260318InputSchema = lazySchema7(
|
|
1429
1565
|
() => zodSchema7(
|
|
1430
1566
|
z8.object({
|
|
1431
1567
|
query: z8.string()
|
|
1432
1568
|
})
|
|
1433
1569
|
)
|
|
1434
1570
|
);
|
|
1435
|
-
var
|
|
1436
|
-
id: "anthropic.
|
|
1437
|
-
inputSchema:
|
|
1438
|
-
outputSchema:
|
|
1571
|
+
var factory3 = createProviderExecutedToolFactory2({
|
|
1572
|
+
id: "anthropic.web_search_20260318",
|
|
1573
|
+
inputSchema: webSearch_20260318InputSchema,
|
|
1574
|
+
outputSchema: webSearch_20260318OutputSchema,
|
|
1439
1575
|
supportsDeferredResults: true
|
|
1440
1576
|
});
|
|
1441
|
-
var
|
|
1442
|
-
return
|
|
1577
|
+
var webSearch_20260318 = (args = {}) => {
|
|
1578
|
+
return factory3(args);
|
|
1443
1579
|
};
|
|
1444
1580
|
|
|
1445
|
-
// src/tool/web-
|
|
1581
|
+
// src/tool/web-search_20260209.ts
|
|
1446
1582
|
import {
|
|
1447
|
-
createProviderExecutedToolFactory as
|
|
1583
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory3,
|
|
1448
1584
|
lazySchema as lazySchema8,
|
|
1449
1585
|
zodSchema as zodSchema8
|
|
1450
1586
|
} from "@ai-sdk/provider-utils";
|
|
1451
1587
|
import { z as z9 } from "zod/v4";
|
|
1452
|
-
var
|
|
1588
|
+
var webSearch_20260209ArgsSchema = lazySchema8(
|
|
1453
1589
|
() => zodSchema8(
|
|
1454
1590
|
z9.object({
|
|
1455
1591
|
maxUses: z9.number().optional(),
|
|
1456
1592
|
allowedDomains: z9.array(z9.string()).optional(),
|
|
1457
1593
|
blockedDomains: z9.array(z9.string()).optional(),
|
|
1458
|
-
|
|
1459
|
-
|
|
1594
|
+
userLocation: z9.object({
|
|
1595
|
+
type: z9.literal("approximate"),
|
|
1596
|
+
city: z9.string().optional(),
|
|
1597
|
+
region: z9.string().optional(),
|
|
1598
|
+
country: z9.string().optional(),
|
|
1599
|
+
timezone: z9.string().optional()
|
|
1600
|
+
}).optional()
|
|
1460
1601
|
})
|
|
1461
1602
|
)
|
|
1462
1603
|
);
|
|
1463
|
-
var
|
|
1604
|
+
var webSearch_20260209OutputSchema = lazySchema8(
|
|
1464
1605
|
() => zodSchema8(
|
|
1465
|
-
z9.
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
content: z9.object({
|
|
1469
|
-
type: z9.literal("document"),
|
|
1606
|
+
z9.array(
|
|
1607
|
+
z9.object({
|
|
1608
|
+
url: z9.string(),
|
|
1470
1609
|
title: z9.string().nullable(),
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
data: z9.string()
|
|
1477
|
-
}),
|
|
1478
|
-
z9.object({
|
|
1479
|
-
type: z9.literal("text"),
|
|
1480
|
-
mediaType: z9.literal("text/plain"),
|
|
1481
|
-
data: z9.string()
|
|
1482
|
-
})
|
|
1483
|
-
])
|
|
1484
|
-
}),
|
|
1485
|
-
retrievedAt: z9.string().nullable()
|
|
1486
|
-
})
|
|
1610
|
+
pageAge: z9.string().nullable(),
|
|
1611
|
+
encryptedContent: z9.string(),
|
|
1612
|
+
type: z9.literal("web_search_result")
|
|
1613
|
+
})
|
|
1614
|
+
)
|
|
1487
1615
|
)
|
|
1488
1616
|
);
|
|
1489
|
-
var
|
|
1617
|
+
var webSearch_20260209InputSchema = lazySchema8(
|
|
1490
1618
|
() => zodSchema8(
|
|
1491
1619
|
z9.object({
|
|
1492
|
-
|
|
1620
|
+
query: z9.string()
|
|
1493
1621
|
})
|
|
1494
1622
|
)
|
|
1495
1623
|
);
|
|
1496
|
-
var
|
|
1497
|
-
id: "anthropic.
|
|
1498
|
-
inputSchema:
|
|
1499
|
-
outputSchema:
|
|
1624
|
+
var factory4 = createProviderExecutedToolFactory3({
|
|
1625
|
+
id: "anthropic.web_search_20260209",
|
|
1626
|
+
inputSchema: webSearch_20260209InputSchema,
|
|
1627
|
+
outputSchema: webSearch_20260209OutputSchema,
|
|
1500
1628
|
supportsDeferredResults: true
|
|
1501
1629
|
});
|
|
1502
|
-
var
|
|
1503
|
-
return
|
|
1630
|
+
var webSearch_20260209 = (args = {}) => {
|
|
1631
|
+
return factory4(args);
|
|
1504
1632
|
};
|
|
1505
1633
|
|
|
1506
|
-
// src/tool/web-
|
|
1634
|
+
// src/tool/web-search_20250305.ts
|
|
1507
1635
|
import {
|
|
1508
|
-
createProviderExecutedToolFactory as
|
|
1636
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory4,
|
|
1509
1637
|
lazySchema as lazySchema9,
|
|
1510
1638
|
zodSchema as zodSchema9
|
|
1511
1639
|
} from "@ai-sdk/provider-utils";
|
|
1512
1640
|
import { z as z10 } from "zod/v4";
|
|
1513
|
-
var
|
|
1641
|
+
var webSearch_20250305ArgsSchema = lazySchema9(
|
|
1514
1642
|
() => zodSchema9(
|
|
1515
1643
|
z10.object({
|
|
1516
1644
|
maxUses: z10.number().optional(),
|
|
1517
1645
|
allowedDomains: z10.array(z10.string()).optional(),
|
|
1518
1646
|
blockedDomains: z10.array(z10.string()).optional(),
|
|
1519
|
-
|
|
1520
|
-
|
|
1647
|
+
userLocation: z10.object({
|
|
1648
|
+
type: z10.literal("approximate"),
|
|
1649
|
+
city: z10.string().optional(),
|
|
1650
|
+
region: z10.string().optional(),
|
|
1651
|
+
country: z10.string().optional(),
|
|
1652
|
+
timezone: z10.string().optional()
|
|
1653
|
+
}).optional()
|
|
1521
1654
|
})
|
|
1522
1655
|
)
|
|
1523
1656
|
);
|
|
1524
|
-
var
|
|
1657
|
+
var webSearch_20250305OutputSchema = lazySchema9(
|
|
1525
1658
|
() => zodSchema9(
|
|
1526
|
-
z10.
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
content: z10.object({
|
|
1530
|
-
type: z10.literal("document"),
|
|
1659
|
+
z10.array(
|
|
1660
|
+
z10.object({
|
|
1661
|
+
url: z10.string(),
|
|
1531
1662
|
title: z10.string().nullable(),
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1663
|
+
pageAge: z10.string().nullable(),
|
|
1664
|
+
encryptedContent: z10.string(),
|
|
1665
|
+
type: z10.literal("web_search_result")
|
|
1666
|
+
})
|
|
1667
|
+
)
|
|
1668
|
+
)
|
|
1669
|
+
);
|
|
1670
|
+
var webSearch_20250305InputSchema = lazySchema9(
|
|
1671
|
+
() => zodSchema9(
|
|
1672
|
+
z10.object({
|
|
1673
|
+
query: z10.string()
|
|
1674
|
+
})
|
|
1675
|
+
)
|
|
1676
|
+
);
|
|
1677
|
+
var factory5 = createProviderExecutedToolFactory4({
|
|
1678
|
+
id: "anthropic.web_search_20250305",
|
|
1679
|
+
inputSchema: webSearch_20250305InputSchema,
|
|
1680
|
+
outputSchema: webSearch_20250305OutputSchema,
|
|
1681
|
+
supportsDeferredResults: true
|
|
1682
|
+
});
|
|
1683
|
+
var webSearch_20250305 = (args = {}) => {
|
|
1684
|
+
return factory5(args);
|
|
1685
|
+
};
|
|
1686
|
+
|
|
1687
|
+
// src/tool/web-fetch-20260318.ts
|
|
1688
|
+
import {
|
|
1689
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory5,
|
|
1690
|
+
lazySchema as lazySchema10,
|
|
1691
|
+
zodSchema as zodSchema10
|
|
1692
|
+
} from "@ai-sdk/provider-utils";
|
|
1693
|
+
import { z as z11 } from "zod/v4";
|
|
1694
|
+
var webFetch_20260318ArgsSchema = lazySchema10(
|
|
1695
|
+
() => zodSchema10(
|
|
1696
|
+
z11.object({
|
|
1697
|
+
maxUses: z11.number().optional(),
|
|
1698
|
+
allowedDomains: z11.array(z11.string()).optional(),
|
|
1699
|
+
blockedDomains: z11.array(z11.string()).optional(),
|
|
1700
|
+
citations: z11.object({ enabled: z11.boolean() }).optional(),
|
|
1701
|
+
maxContentTokens: z11.number().optional(),
|
|
1702
|
+
useCache: z11.boolean().optional(),
|
|
1703
|
+
responseInclusion: z11.enum(["full", "excluded"]).optional()
|
|
1704
|
+
})
|
|
1705
|
+
)
|
|
1706
|
+
);
|
|
1707
|
+
var webFetch_20260318OutputSchema = lazySchema10(
|
|
1708
|
+
() => zodSchema10(
|
|
1709
|
+
z11.object({
|
|
1710
|
+
type: z11.literal("web_fetch_result"),
|
|
1711
|
+
url: z11.string(),
|
|
1712
|
+
content: z11.object({
|
|
1713
|
+
type: z11.literal("document"),
|
|
1714
|
+
title: z11.string().nullable(),
|
|
1715
|
+
citations: z11.object({ enabled: z11.boolean() }).optional(),
|
|
1716
|
+
source: z11.union([
|
|
1717
|
+
z11.object({
|
|
1718
|
+
type: z11.literal("base64"),
|
|
1719
|
+
mediaType: z11.literal("application/pdf"),
|
|
1720
|
+
data: z11.string()
|
|
1538
1721
|
}),
|
|
1539
|
-
|
|
1540
|
-
type:
|
|
1541
|
-
mediaType:
|
|
1542
|
-
data:
|
|
1722
|
+
z11.object({
|
|
1723
|
+
type: z11.literal("text"),
|
|
1724
|
+
mediaType: z11.literal("text/plain"),
|
|
1725
|
+
data: z11.string()
|
|
1543
1726
|
})
|
|
1544
1727
|
])
|
|
1545
1728
|
}),
|
|
1546
|
-
retrievedAt:
|
|
1729
|
+
retrievedAt: z11.string().nullable()
|
|
1547
1730
|
})
|
|
1548
1731
|
)
|
|
1549
1732
|
);
|
|
1550
|
-
var
|
|
1551
|
-
() =>
|
|
1552
|
-
|
|
1553
|
-
url:
|
|
1733
|
+
var webFetch_20260318InputSchema = lazySchema10(
|
|
1734
|
+
() => zodSchema10(
|
|
1735
|
+
z11.object({
|
|
1736
|
+
url: z11.string()
|
|
1554
1737
|
})
|
|
1555
1738
|
)
|
|
1556
1739
|
);
|
|
1557
1740
|
var factory6 = createProviderExecutedToolFactory5({
|
|
1741
|
+
id: "anthropic.web_fetch_20260318",
|
|
1742
|
+
inputSchema: webFetch_20260318InputSchema,
|
|
1743
|
+
outputSchema: webFetch_20260318OutputSchema,
|
|
1744
|
+
supportsDeferredResults: true
|
|
1745
|
+
});
|
|
1746
|
+
var webFetch_20260318 = (args = {}) => {
|
|
1747
|
+
return factory6(args);
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1750
|
+
// src/tool/web-fetch-20260209.ts
|
|
1751
|
+
import {
|
|
1752
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory6,
|
|
1753
|
+
lazySchema as lazySchema11,
|
|
1754
|
+
zodSchema as zodSchema11
|
|
1755
|
+
} from "@ai-sdk/provider-utils";
|
|
1756
|
+
import { z as z12 } from "zod/v4";
|
|
1757
|
+
var webFetch_20260209ArgsSchema = lazySchema11(
|
|
1758
|
+
() => zodSchema11(
|
|
1759
|
+
z12.object({
|
|
1760
|
+
maxUses: z12.number().optional(),
|
|
1761
|
+
allowedDomains: z12.array(z12.string()).optional(),
|
|
1762
|
+
blockedDomains: z12.array(z12.string()).optional(),
|
|
1763
|
+
citations: z12.object({ enabled: z12.boolean() }).optional(),
|
|
1764
|
+
maxContentTokens: z12.number().optional()
|
|
1765
|
+
})
|
|
1766
|
+
)
|
|
1767
|
+
);
|
|
1768
|
+
var webFetch_20260209OutputSchema = lazySchema11(
|
|
1769
|
+
() => zodSchema11(
|
|
1770
|
+
z12.object({
|
|
1771
|
+
type: z12.literal("web_fetch_result"),
|
|
1772
|
+
url: z12.string(),
|
|
1773
|
+
content: z12.object({
|
|
1774
|
+
type: z12.literal("document"),
|
|
1775
|
+
title: z12.string().nullable(),
|
|
1776
|
+
citations: z12.object({ enabled: z12.boolean() }).optional(),
|
|
1777
|
+
source: z12.union([
|
|
1778
|
+
z12.object({
|
|
1779
|
+
type: z12.literal("base64"),
|
|
1780
|
+
mediaType: z12.literal("application/pdf"),
|
|
1781
|
+
data: z12.string()
|
|
1782
|
+
}),
|
|
1783
|
+
z12.object({
|
|
1784
|
+
type: z12.literal("text"),
|
|
1785
|
+
mediaType: z12.literal("text/plain"),
|
|
1786
|
+
data: z12.string()
|
|
1787
|
+
})
|
|
1788
|
+
])
|
|
1789
|
+
}),
|
|
1790
|
+
retrievedAt: z12.string().nullable()
|
|
1791
|
+
})
|
|
1792
|
+
)
|
|
1793
|
+
);
|
|
1794
|
+
var webFetch_20260209InputSchema = lazySchema11(
|
|
1795
|
+
() => zodSchema11(
|
|
1796
|
+
z12.object({
|
|
1797
|
+
url: z12.string()
|
|
1798
|
+
})
|
|
1799
|
+
)
|
|
1800
|
+
);
|
|
1801
|
+
var factory7 = createProviderExecutedToolFactory6({
|
|
1802
|
+
id: "anthropic.web_fetch_20260209",
|
|
1803
|
+
inputSchema: webFetch_20260209InputSchema,
|
|
1804
|
+
outputSchema: webFetch_20260209OutputSchema,
|
|
1805
|
+
supportsDeferredResults: true
|
|
1806
|
+
});
|
|
1807
|
+
var webFetch_20260209 = (args = {}) => {
|
|
1808
|
+
return factory7(args);
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
// src/tool/web-fetch-20250910.ts
|
|
1812
|
+
import {
|
|
1813
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory7,
|
|
1814
|
+
lazySchema as lazySchema12,
|
|
1815
|
+
zodSchema as zodSchema12
|
|
1816
|
+
} from "@ai-sdk/provider-utils";
|
|
1817
|
+
import { z as z13 } from "zod/v4";
|
|
1818
|
+
var webFetch_20250910ArgsSchema = lazySchema12(
|
|
1819
|
+
() => zodSchema12(
|
|
1820
|
+
z13.object({
|
|
1821
|
+
maxUses: z13.number().optional(),
|
|
1822
|
+
allowedDomains: z13.array(z13.string()).optional(),
|
|
1823
|
+
blockedDomains: z13.array(z13.string()).optional(),
|
|
1824
|
+
citations: z13.object({ enabled: z13.boolean() }).optional(),
|
|
1825
|
+
maxContentTokens: z13.number().optional()
|
|
1826
|
+
})
|
|
1827
|
+
)
|
|
1828
|
+
);
|
|
1829
|
+
var webFetch_20250910OutputSchema = lazySchema12(
|
|
1830
|
+
() => zodSchema12(
|
|
1831
|
+
z13.object({
|
|
1832
|
+
type: z13.literal("web_fetch_result"),
|
|
1833
|
+
url: z13.string(),
|
|
1834
|
+
content: z13.object({
|
|
1835
|
+
type: z13.literal("document"),
|
|
1836
|
+
title: z13.string().nullable(),
|
|
1837
|
+
citations: z13.object({ enabled: z13.boolean() }).optional(),
|
|
1838
|
+
source: z13.union([
|
|
1839
|
+
z13.object({
|
|
1840
|
+
type: z13.literal("base64"),
|
|
1841
|
+
mediaType: z13.literal("application/pdf"),
|
|
1842
|
+
data: z13.string()
|
|
1843
|
+
}),
|
|
1844
|
+
z13.object({
|
|
1845
|
+
type: z13.literal("text"),
|
|
1846
|
+
mediaType: z13.literal("text/plain"),
|
|
1847
|
+
data: z13.string()
|
|
1848
|
+
})
|
|
1849
|
+
])
|
|
1850
|
+
}),
|
|
1851
|
+
retrievedAt: z13.string().nullable()
|
|
1852
|
+
})
|
|
1853
|
+
)
|
|
1854
|
+
);
|
|
1855
|
+
var webFetch_20250910InputSchema = lazySchema12(
|
|
1856
|
+
() => zodSchema12(
|
|
1857
|
+
z13.object({
|
|
1858
|
+
url: z13.string()
|
|
1859
|
+
})
|
|
1860
|
+
)
|
|
1861
|
+
);
|
|
1862
|
+
var factory8 = createProviderExecutedToolFactory7({
|
|
1558
1863
|
id: "anthropic.web_fetch_20250910",
|
|
1559
1864
|
inputSchema: webFetch_20250910InputSchema,
|
|
1560
1865
|
outputSchema: webFetch_20250910OutputSchema,
|
|
1561
1866
|
supportsDeferredResults: true
|
|
1562
1867
|
});
|
|
1563
1868
|
var webFetch_20250910 = (args = {}) => {
|
|
1564
|
-
return
|
|
1869
|
+
return factory8(args);
|
|
1565
1870
|
};
|
|
1566
1871
|
|
|
1567
1872
|
// src/anthropic-prepare-tools.ts
|
|
@@ -1573,10 +1878,10 @@ async function prepareTools({
|
|
|
1573
1878
|
cacheControlValidator,
|
|
1574
1879
|
supportsStructuredOutput,
|
|
1575
1880
|
supportsStrictTools,
|
|
1576
|
-
defaultEagerInputStreaming = false
|
|
1881
|
+
defaultEagerInputStreaming = false,
|
|
1882
|
+
rejectsForcedToolUse = false
|
|
1577
1883
|
}) {
|
|
1578
|
-
|
|
1579
|
-
tools = (tools == null ? void 0 : tools.length) ? tools : void 0;
|
|
1884
|
+
tools = tools?.length ? tools : void 0;
|
|
1580
1885
|
const toolWarnings = [];
|
|
1581
1886
|
const betas = /* @__PURE__ */ new Set();
|
|
1582
1887
|
const validator = cacheControlValidator || new CacheControlValidator();
|
|
@@ -1591,10 +1896,10 @@ async function prepareTools({
|
|
|
1591
1896
|
type: "tool definition",
|
|
1592
1897
|
canCache: true
|
|
1593
1898
|
});
|
|
1594
|
-
const anthropicOptions =
|
|
1595
|
-
const eagerInputStreaming =
|
|
1596
|
-
const deferLoading = anthropicOptions
|
|
1597
|
-
const allowedCallers = anthropicOptions
|
|
1899
|
+
const anthropicOptions = tool.providerOptions?.anthropic;
|
|
1900
|
+
const eagerInputStreaming = anthropicOptions?.eagerInputStreaming ?? defaultEagerInputStreaming;
|
|
1901
|
+
const deferLoading = anthropicOptions?.deferLoading;
|
|
1902
|
+
const allowedCallers = anthropicOptions?.allowedCallers;
|
|
1598
1903
|
if (!supportsStrictTools && tool.strict != null) {
|
|
1599
1904
|
toolWarnings.push({
|
|
1600
1905
|
type: "unsupported",
|
|
@@ -1676,6 +1981,31 @@ async function prepareTools({
|
|
|
1676
1981
|
});
|
|
1677
1982
|
break;
|
|
1678
1983
|
}
|
|
1984
|
+
case "anthropic.computer_toolset_20260801": {
|
|
1985
|
+
const args = await validateTypes({
|
|
1986
|
+
value: tool.args,
|
|
1987
|
+
schema: computerToolset_20260801ArgsSchema
|
|
1988
|
+
});
|
|
1989
|
+
const configs = args.configs != null ? Object.fromEntries(
|
|
1990
|
+
Object.entries(args.configs).map(([member, config]) => [
|
|
1991
|
+
member,
|
|
1992
|
+
{
|
|
1993
|
+
...config?.enabled != null && {
|
|
1994
|
+
enabled: config.enabled
|
|
1995
|
+
},
|
|
1996
|
+
...config?.deferLoading != null && {
|
|
1997
|
+
defer_loading: config.deferLoading
|
|
1998
|
+
}
|
|
1999
|
+
}
|
|
2000
|
+
])
|
|
2001
|
+
) : void 0;
|
|
2002
|
+
anthropicTools2.push({
|
|
2003
|
+
type: "computer_toolset_20260801",
|
|
2004
|
+
...configs != null && { configs },
|
|
2005
|
+
cache_control: void 0
|
|
2006
|
+
});
|
|
2007
|
+
break;
|
|
2008
|
+
}
|
|
1679
2009
|
case "anthropic.computer_20241022": {
|
|
1680
2010
|
betas.add("computer-use-2024-10-22");
|
|
1681
2011
|
anthropicTools2.push({
|
|
@@ -1790,6 +2120,25 @@ async function prepareTools({
|
|
|
1790
2120
|
});
|
|
1791
2121
|
break;
|
|
1792
2122
|
}
|
|
2123
|
+
case "anthropic.web_fetch_20260318": {
|
|
2124
|
+
const args = await validateTypes({
|
|
2125
|
+
value: tool.args,
|
|
2126
|
+
schema: webFetch_20260318ArgsSchema
|
|
2127
|
+
});
|
|
2128
|
+
anthropicTools2.push({
|
|
2129
|
+
type: "web_fetch_20260318",
|
|
2130
|
+
name: "web_fetch",
|
|
2131
|
+
max_uses: args.maxUses,
|
|
2132
|
+
allowed_domains: args.allowedDomains,
|
|
2133
|
+
blocked_domains: args.blockedDomains,
|
|
2134
|
+
citations: args.citations,
|
|
2135
|
+
max_content_tokens: args.maxContentTokens,
|
|
2136
|
+
use_cache: args.useCache,
|
|
2137
|
+
response_inclusion: args.responseInclusion,
|
|
2138
|
+
cache_control: void 0
|
|
2139
|
+
});
|
|
2140
|
+
break;
|
|
2141
|
+
}
|
|
1793
2142
|
case "anthropic.web_search_20250305": {
|
|
1794
2143
|
const args = await validateTypes({
|
|
1795
2144
|
value: tool.args,
|
|
@@ -1823,6 +2172,23 @@ async function prepareTools({
|
|
|
1823
2172
|
});
|
|
1824
2173
|
break;
|
|
1825
2174
|
}
|
|
2175
|
+
case "anthropic.web_search_20260318": {
|
|
2176
|
+
const args = await validateTypes({
|
|
2177
|
+
value: tool.args,
|
|
2178
|
+
schema: webSearch_20260318ArgsSchema
|
|
2179
|
+
});
|
|
2180
|
+
anthropicTools2.push({
|
|
2181
|
+
type: "web_search_20260318",
|
|
2182
|
+
name: "web_search",
|
|
2183
|
+
max_uses: args.maxUses,
|
|
2184
|
+
allowed_domains: args.allowedDomains,
|
|
2185
|
+
blocked_domains: args.blockedDomains,
|
|
2186
|
+
user_location: args.userLocation,
|
|
2187
|
+
response_inclusion: args.responseInclusion,
|
|
2188
|
+
cache_control: void 0
|
|
2189
|
+
});
|
|
2190
|
+
break;
|
|
2191
|
+
}
|
|
1826
2192
|
case "anthropic.tool_search_regex_20251119": {
|
|
1827
2193
|
anthropicTools2.push({
|
|
1828
2194
|
type: "tool_search_tool_regex_20251119",
|
|
@@ -1895,6 +2261,22 @@ async function prepareTools({
|
|
|
1895
2261
|
betas
|
|
1896
2262
|
};
|
|
1897
2263
|
case "required":
|
|
2264
|
+
if (rejectsForcedToolUse) {
|
|
2265
|
+
toolWarnings.push({
|
|
2266
|
+
type: "unsupported",
|
|
2267
|
+
feature: "toolChoice",
|
|
2268
|
+
details: `toolChoice 'required' is not supported by this model because it rejects forced tool use. Using 'auto' instead. Instruct the model to use a tool in the prompt and verify that a tool call was made.`
|
|
2269
|
+
});
|
|
2270
|
+
return {
|
|
2271
|
+
tools: anthropicTools2,
|
|
2272
|
+
toolChoice: {
|
|
2273
|
+
type: "auto",
|
|
2274
|
+
disable_parallel_tool_use: disableParallelToolUse
|
|
2275
|
+
},
|
|
2276
|
+
toolWarnings,
|
|
2277
|
+
betas
|
|
2278
|
+
};
|
|
2279
|
+
}
|
|
1898
2280
|
return {
|
|
1899
2281
|
tools: anthropicTools2,
|
|
1900
2282
|
toolChoice: {
|
|
@@ -1907,6 +2289,24 @@ async function prepareTools({
|
|
|
1907
2289
|
case "none":
|
|
1908
2290
|
return { tools: void 0, toolChoice: void 0, toolWarnings, betas };
|
|
1909
2291
|
case "tool":
|
|
2292
|
+
if (rejectsForcedToolUse) {
|
|
2293
|
+
toolWarnings.push({
|
|
2294
|
+
type: "unsupported",
|
|
2295
|
+
feature: "toolChoice",
|
|
2296
|
+
details: `toolChoice 'tool' is not supported by this model because it rejects forced tool use. Only the '${toolChoice.toolName}' tool is sent with 'auto' tool choice. Instruct the model to use the tool in the prompt and verify that a tool call was made.`
|
|
2297
|
+
});
|
|
2298
|
+
return {
|
|
2299
|
+
tools: anthropicTools2.filter(
|
|
2300
|
+
(tool) => "name" in tool && tool.name === toolChoice.toolName
|
|
2301
|
+
),
|
|
2302
|
+
toolChoice: {
|
|
2303
|
+
type: "auto",
|
|
2304
|
+
disable_parallel_tool_use: disableParallelToolUse
|
|
2305
|
+
},
|
|
2306
|
+
toolWarnings,
|
|
2307
|
+
betas
|
|
2308
|
+
};
|
|
2309
|
+
}
|
|
1910
2310
|
return {
|
|
1911
2311
|
tools: anthropicTools2,
|
|
1912
2312
|
toolChoice: {
|
|
@@ -1931,13 +2331,12 @@ function convertAnthropicUsage({
|
|
|
1931
2331
|
usage,
|
|
1932
2332
|
rawUsage
|
|
1933
2333
|
}) {
|
|
1934
|
-
|
|
1935
|
-
const
|
|
1936
|
-
const
|
|
1937
|
-
const reasoningTokens = (_d = (_c = usage.output_tokens_details) == null ? void 0 : _c.thinking_tokens) != null ? _d : void 0;
|
|
2334
|
+
const cacheCreationTokens = usage.cache_creation_input_tokens ?? 0;
|
|
2335
|
+
const cacheReadTokens = usage.cache_read_input_tokens ?? 0;
|
|
2336
|
+
const reasoningTokens = usage.output_tokens_details?.thinking_tokens ?? void 0;
|
|
1938
2337
|
let inputTokens;
|
|
1939
2338
|
let outputTokens;
|
|
1940
|
-
const servedByFallback =
|
|
2339
|
+
const servedByFallback = usage.iterations?.some(
|
|
1941
2340
|
(iter) => iter.type === "fallback_message"
|
|
1942
2341
|
);
|
|
1943
2342
|
if (usage.iterations && usage.iterations.length > 0 && !servedByFallback) {
|
|
@@ -1974,7 +2373,7 @@ function convertAnthropicUsage({
|
|
|
1974
2373
|
text: reasoningTokens == null ? void 0 : outputTokens - reasoningTokens,
|
|
1975
2374
|
reasoning: reasoningTokens
|
|
1976
2375
|
},
|
|
1977
|
-
raw: rawUsage
|
|
2376
|
+
raw: rawUsage ?? usage
|
|
1978
2377
|
};
|
|
1979
2378
|
}
|
|
1980
2379
|
|
|
@@ -1996,145 +2395,145 @@ import {
|
|
|
1996
2395
|
|
|
1997
2396
|
// src/tool/code-execution_20250522.ts
|
|
1998
2397
|
import {
|
|
1999
|
-
createProviderExecutedToolFactory as
|
|
2000
|
-
lazySchema as
|
|
2001
|
-
zodSchema as
|
|
2398
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory8,
|
|
2399
|
+
lazySchema as lazySchema13,
|
|
2400
|
+
zodSchema as zodSchema13
|
|
2002
2401
|
} from "@ai-sdk/provider-utils";
|
|
2003
|
-
import { z as
|
|
2004
|
-
var codeExecution_20250522OutputSchema =
|
|
2005
|
-
() =>
|
|
2006
|
-
|
|
2007
|
-
type:
|
|
2008
|
-
stdout:
|
|
2009
|
-
stderr:
|
|
2010
|
-
return_code:
|
|
2011
|
-
content:
|
|
2012
|
-
|
|
2013
|
-
type:
|
|
2014
|
-
file_id:
|
|
2402
|
+
import { z as z14 } from "zod/v4";
|
|
2403
|
+
var codeExecution_20250522OutputSchema = lazySchema13(
|
|
2404
|
+
() => zodSchema13(
|
|
2405
|
+
z14.object({
|
|
2406
|
+
type: z14.literal("code_execution_result"),
|
|
2407
|
+
stdout: z14.string(),
|
|
2408
|
+
stderr: z14.string(),
|
|
2409
|
+
return_code: z14.number(),
|
|
2410
|
+
content: z14.array(
|
|
2411
|
+
z14.object({
|
|
2412
|
+
type: z14.literal("code_execution_output"),
|
|
2413
|
+
file_id: z14.string()
|
|
2015
2414
|
})
|
|
2016
2415
|
).optional().default([])
|
|
2017
2416
|
})
|
|
2018
2417
|
)
|
|
2019
2418
|
);
|
|
2020
|
-
var codeExecution_20250522InputSchema =
|
|
2021
|
-
() =>
|
|
2022
|
-
|
|
2023
|
-
code:
|
|
2419
|
+
var codeExecution_20250522InputSchema = lazySchema13(
|
|
2420
|
+
() => zodSchema13(
|
|
2421
|
+
z14.object({
|
|
2422
|
+
code: z14.string()
|
|
2024
2423
|
})
|
|
2025
2424
|
)
|
|
2026
2425
|
);
|
|
2027
|
-
var
|
|
2426
|
+
var factory9 = createProviderExecutedToolFactory8({
|
|
2028
2427
|
id: "anthropic.code_execution_20250522",
|
|
2029
2428
|
inputSchema: codeExecution_20250522InputSchema,
|
|
2030
2429
|
outputSchema: codeExecution_20250522OutputSchema
|
|
2031
2430
|
});
|
|
2032
2431
|
var codeExecution_20250522 = (args = {}) => {
|
|
2033
|
-
return
|
|
2432
|
+
return factory9(args);
|
|
2034
2433
|
};
|
|
2035
2434
|
|
|
2036
2435
|
// src/tool/code-execution_20250825.ts
|
|
2037
2436
|
import {
|
|
2038
|
-
createProviderExecutedToolFactory as
|
|
2437
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory9,
|
|
2039
2438
|
experimental_toolCaller,
|
|
2040
|
-
lazySchema as
|
|
2041
|
-
zodSchema as
|
|
2439
|
+
lazySchema as lazySchema14,
|
|
2440
|
+
zodSchema as zodSchema14
|
|
2042
2441
|
} from "@ai-sdk/provider-utils";
|
|
2043
|
-
import { z as
|
|
2044
|
-
var codeExecution_20250825OutputSchema =
|
|
2045
|
-
() =>
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
type:
|
|
2049
|
-
stdout:
|
|
2050
|
-
stderr:
|
|
2051
|
-
return_code:
|
|
2052
|
-
content:
|
|
2053
|
-
|
|
2054
|
-
type:
|
|
2055
|
-
file_id:
|
|
2442
|
+
import { z as z15 } from "zod/v4";
|
|
2443
|
+
var codeExecution_20250825OutputSchema = lazySchema14(
|
|
2444
|
+
() => zodSchema14(
|
|
2445
|
+
z15.discriminatedUnion("type", [
|
|
2446
|
+
z15.object({
|
|
2447
|
+
type: z15.literal("code_execution_result"),
|
|
2448
|
+
stdout: z15.string(),
|
|
2449
|
+
stderr: z15.string(),
|
|
2450
|
+
return_code: z15.number(),
|
|
2451
|
+
content: z15.array(
|
|
2452
|
+
z15.object({
|
|
2453
|
+
type: z15.literal("code_execution_output"),
|
|
2454
|
+
file_id: z15.string()
|
|
2056
2455
|
})
|
|
2057
2456
|
).optional().default([])
|
|
2058
2457
|
}),
|
|
2059
|
-
|
|
2060
|
-
type:
|
|
2061
|
-
content:
|
|
2062
|
-
|
|
2063
|
-
type:
|
|
2064
|
-
file_id:
|
|
2458
|
+
z15.object({
|
|
2459
|
+
type: z15.literal("bash_code_execution_result"),
|
|
2460
|
+
content: z15.array(
|
|
2461
|
+
z15.object({
|
|
2462
|
+
type: z15.literal("bash_code_execution_output"),
|
|
2463
|
+
file_id: z15.string()
|
|
2065
2464
|
})
|
|
2066
2465
|
),
|
|
2067
|
-
stdout:
|
|
2068
|
-
stderr:
|
|
2069
|
-
return_code:
|
|
2466
|
+
stdout: z15.string(),
|
|
2467
|
+
stderr: z15.string(),
|
|
2468
|
+
return_code: z15.number()
|
|
2070
2469
|
}),
|
|
2071
|
-
|
|
2072
|
-
type:
|
|
2073
|
-
error_code:
|
|
2470
|
+
z15.object({
|
|
2471
|
+
type: z15.literal("bash_code_execution_tool_result_error"),
|
|
2472
|
+
error_code: z15.string()
|
|
2074
2473
|
}),
|
|
2075
|
-
|
|
2076
|
-
type:
|
|
2077
|
-
error_code:
|
|
2474
|
+
z15.object({
|
|
2475
|
+
type: z15.literal("text_editor_code_execution_tool_result_error"),
|
|
2476
|
+
error_code: z15.string()
|
|
2078
2477
|
}),
|
|
2079
|
-
|
|
2080
|
-
type:
|
|
2081
|
-
content:
|
|
2082
|
-
file_type:
|
|
2083
|
-
num_lines:
|
|
2084
|
-
start_line:
|
|
2085
|
-
total_lines:
|
|
2478
|
+
z15.object({
|
|
2479
|
+
type: z15.literal("text_editor_code_execution_view_result"),
|
|
2480
|
+
content: z15.string(),
|
|
2481
|
+
file_type: z15.string(),
|
|
2482
|
+
num_lines: z15.number().nullable(),
|
|
2483
|
+
start_line: z15.number().nullable(),
|
|
2484
|
+
total_lines: z15.number().nullable()
|
|
2086
2485
|
}),
|
|
2087
|
-
|
|
2088
|
-
type:
|
|
2089
|
-
is_file_update:
|
|
2486
|
+
z15.object({
|
|
2487
|
+
type: z15.literal("text_editor_code_execution_create_result"),
|
|
2488
|
+
is_file_update: z15.boolean()
|
|
2090
2489
|
}),
|
|
2091
|
-
|
|
2092
|
-
type:
|
|
2093
|
-
lines:
|
|
2094
|
-
new_lines:
|
|
2095
|
-
new_start:
|
|
2096
|
-
old_lines:
|
|
2097
|
-
old_start:
|
|
2490
|
+
z15.object({
|
|
2491
|
+
type: z15.literal("text_editor_code_execution_str_replace_result"),
|
|
2492
|
+
lines: z15.array(z15.string()).nullable(),
|
|
2493
|
+
new_lines: z15.number().nullable(),
|
|
2494
|
+
new_start: z15.number().nullable(),
|
|
2495
|
+
old_lines: z15.number().nullable(),
|
|
2496
|
+
old_start: z15.number().nullable()
|
|
2098
2497
|
})
|
|
2099
2498
|
])
|
|
2100
2499
|
)
|
|
2101
2500
|
);
|
|
2102
|
-
var codeExecution_20250825InputSchema =
|
|
2103
|
-
() =>
|
|
2104
|
-
|
|
2501
|
+
var codeExecution_20250825InputSchema = lazySchema14(
|
|
2502
|
+
() => zodSchema14(
|
|
2503
|
+
z15.discriminatedUnion("type", [
|
|
2105
2504
|
// Programmatic tool calling format (mapped from { code } by AI SDK)
|
|
2106
|
-
|
|
2107
|
-
type:
|
|
2108
|
-
code:
|
|
2505
|
+
z15.object({
|
|
2506
|
+
type: z15.literal("programmatic-tool-call"),
|
|
2507
|
+
code: z15.string()
|
|
2109
2508
|
}),
|
|
2110
|
-
|
|
2111
|
-
type:
|
|
2112
|
-
command:
|
|
2509
|
+
z15.object({
|
|
2510
|
+
type: z15.literal("bash_code_execution"),
|
|
2511
|
+
command: z15.string()
|
|
2113
2512
|
}),
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
type:
|
|
2117
|
-
command:
|
|
2118
|
-
path:
|
|
2513
|
+
z15.discriminatedUnion("command", [
|
|
2514
|
+
z15.object({
|
|
2515
|
+
type: z15.literal("text_editor_code_execution"),
|
|
2516
|
+
command: z15.literal("view"),
|
|
2517
|
+
path: z15.string()
|
|
2119
2518
|
}),
|
|
2120
|
-
|
|
2121
|
-
type:
|
|
2122
|
-
command:
|
|
2123
|
-
path:
|
|
2124
|
-
file_text:
|
|
2519
|
+
z15.object({
|
|
2520
|
+
type: z15.literal("text_editor_code_execution"),
|
|
2521
|
+
command: z15.literal("create"),
|
|
2522
|
+
path: z15.string(),
|
|
2523
|
+
file_text: z15.string().nullish()
|
|
2125
2524
|
}),
|
|
2126
|
-
|
|
2127
|
-
type:
|
|
2128
|
-
command:
|
|
2129
|
-
path:
|
|
2130
|
-
old_str:
|
|
2131
|
-
new_str:
|
|
2525
|
+
z15.object({
|
|
2526
|
+
type: z15.literal("text_editor_code_execution"),
|
|
2527
|
+
command: z15.literal("str_replace"),
|
|
2528
|
+
path: z15.string(),
|
|
2529
|
+
old_str: z15.string(),
|
|
2530
|
+
new_str: z15.string()
|
|
2132
2531
|
})
|
|
2133
2532
|
])
|
|
2134
2533
|
])
|
|
2135
2534
|
)
|
|
2136
2535
|
);
|
|
2137
|
-
var
|
|
2536
|
+
var factory10 = createProviderExecutedToolFactory9({
|
|
2138
2537
|
id: "anthropic.code_execution_20250825",
|
|
2139
2538
|
inputSchema: codeExecution_20250825InputSchema,
|
|
2140
2539
|
outputSchema: codeExecution_20250825OutputSchema,
|
|
@@ -2144,18 +2543,17 @@ var factory8 = createProviderExecutedToolFactory7({
|
|
|
2144
2543
|
supportsDeferredResults: true
|
|
2145
2544
|
});
|
|
2146
2545
|
var codeExecution_20250825 = (args = {}) => {
|
|
2147
|
-
return experimental_toolCaller(
|
|
2546
|
+
return experimental_toolCaller(factory10(args), {
|
|
2148
2547
|
type: "provider",
|
|
2149
2548
|
prepareProviderOptions: (providerOptions) => {
|
|
2150
|
-
|
|
2151
|
-
const anthropicOptions = providerOptions == null ? void 0 : providerOptions.anthropic;
|
|
2549
|
+
const anthropicOptions = providerOptions?.anthropic;
|
|
2152
2550
|
return {
|
|
2153
2551
|
...providerOptions,
|
|
2154
2552
|
anthropic: {
|
|
2155
2553
|
...anthropicOptions,
|
|
2156
2554
|
allowedCallers: [
|
|
2157
2555
|
.../* @__PURE__ */ new Set([
|
|
2158
|
-
...
|
|
2556
|
+
...anthropicOptions?.allowedCallers ?? [],
|
|
2159
2557
|
"code_execution_20250825"
|
|
2160
2558
|
])
|
|
2161
2559
|
]
|
|
@@ -2167,135 +2565,134 @@ var codeExecution_20250825 = (args = {}) => {
|
|
|
2167
2565
|
|
|
2168
2566
|
// src/tool/code-execution_20260120.ts
|
|
2169
2567
|
import {
|
|
2170
|
-
createProviderExecutedToolFactory as
|
|
2568
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory10,
|
|
2171
2569
|
experimental_toolCaller as experimental_toolCaller2,
|
|
2172
|
-
lazySchema as
|
|
2173
|
-
zodSchema as
|
|
2570
|
+
lazySchema as lazySchema15,
|
|
2571
|
+
zodSchema as zodSchema15
|
|
2174
2572
|
} from "@ai-sdk/provider-utils";
|
|
2175
|
-
import { z as
|
|
2176
|
-
var codeExecution_20260120OutputSchema =
|
|
2177
|
-
() =>
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
type:
|
|
2181
|
-
stdout:
|
|
2182
|
-
stderr:
|
|
2183
|
-
return_code:
|
|
2184
|
-
content:
|
|
2185
|
-
|
|
2186
|
-
type:
|
|
2187
|
-
file_id:
|
|
2573
|
+
import { z as z16 } from "zod/v4";
|
|
2574
|
+
var codeExecution_20260120OutputSchema = lazySchema15(
|
|
2575
|
+
() => zodSchema15(
|
|
2576
|
+
z16.discriminatedUnion("type", [
|
|
2577
|
+
z16.object({
|
|
2578
|
+
type: z16.literal("code_execution_result"),
|
|
2579
|
+
stdout: z16.string(),
|
|
2580
|
+
stderr: z16.string(),
|
|
2581
|
+
return_code: z16.number(),
|
|
2582
|
+
content: z16.array(
|
|
2583
|
+
z16.object({
|
|
2584
|
+
type: z16.literal("code_execution_output"),
|
|
2585
|
+
file_id: z16.string()
|
|
2188
2586
|
})
|
|
2189
2587
|
).optional().default([])
|
|
2190
2588
|
}),
|
|
2191
|
-
|
|
2192
|
-
type:
|
|
2193
|
-
encrypted_stdout:
|
|
2194
|
-
stderr:
|
|
2195
|
-
return_code:
|
|
2196
|
-
content:
|
|
2197
|
-
|
|
2198
|
-
type:
|
|
2199
|
-
file_id:
|
|
2589
|
+
z16.object({
|
|
2590
|
+
type: z16.literal("encrypted_code_execution_result"),
|
|
2591
|
+
encrypted_stdout: z16.string(),
|
|
2592
|
+
stderr: z16.string(),
|
|
2593
|
+
return_code: z16.number(),
|
|
2594
|
+
content: z16.array(
|
|
2595
|
+
z16.object({
|
|
2596
|
+
type: z16.literal("code_execution_output"),
|
|
2597
|
+
file_id: z16.string()
|
|
2200
2598
|
})
|
|
2201
2599
|
).optional().default([])
|
|
2202
2600
|
}),
|
|
2203
|
-
|
|
2204
|
-
type:
|
|
2205
|
-
content:
|
|
2206
|
-
|
|
2207
|
-
type:
|
|
2208
|
-
file_id:
|
|
2601
|
+
z16.object({
|
|
2602
|
+
type: z16.literal("bash_code_execution_result"),
|
|
2603
|
+
content: z16.array(
|
|
2604
|
+
z16.object({
|
|
2605
|
+
type: z16.literal("bash_code_execution_output"),
|
|
2606
|
+
file_id: z16.string()
|
|
2209
2607
|
})
|
|
2210
2608
|
),
|
|
2211
|
-
stdout:
|
|
2212
|
-
stderr:
|
|
2213
|
-
return_code:
|
|
2609
|
+
stdout: z16.string(),
|
|
2610
|
+
stderr: z16.string(),
|
|
2611
|
+
return_code: z16.number()
|
|
2214
2612
|
}),
|
|
2215
|
-
|
|
2216
|
-
type:
|
|
2217
|
-
error_code:
|
|
2613
|
+
z16.object({
|
|
2614
|
+
type: z16.literal("bash_code_execution_tool_result_error"),
|
|
2615
|
+
error_code: z16.string()
|
|
2218
2616
|
}),
|
|
2219
|
-
|
|
2220
|
-
type:
|
|
2221
|
-
error_code:
|
|
2617
|
+
z16.object({
|
|
2618
|
+
type: z16.literal("text_editor_code_execution_tool_result_error"),
|
|
2619
|
+
error_code: z16.string()
|
|
2222
2620
|
}),
|
|
2223
|
-
|
|
2224
|
-
type:
|
|
2225
|
-
content:
|
|
2226
|
-
file_type:
|
|
2227
|
-
num_lines:
|
|
2228
|
-
start_line:
|
|
2229
|
-
total_lines:
|
|
2621
|
+
z16.object({
|
|
2622
|
+
type: z16.literal("text_editor_code_execution_view_result"),
|
|
2623
|
+
content: z16.string(),
|
|
2624
|
+
file_type: z16.string(),
|
|
2625
|
+
num_lines: z16.number().nullable(),
|
|
2626
|
+
start_line: z16.number().nullable(),
|
|
2627
|
+
total_lines: z16.number().nullable()
|
|
2230
2628
|
}),
|
|
2231
|
-
|
|
2232
|
-
type:
|
|
2233
|
-
is_file_update:
|
|
2629
|
+
z16.object({
|
|
2630
|
+
type: z16.literal("text_editor_code_execution_create_result"),
|
|
2631
|
+
is_file_update: z16.boolean()
|
|
2234
2632
|
}),
|
|
2235
|
-
|
|
2236
|
-
type:
|
|
2237
|
-
lines:
|
|
2238
|
-
new_lines:
|
|
2239
|
-
new_start:
|
|
2240
|
-
old_lines:
|
|
2241
|
-
old_start:
|
|
2633
|
+
z16.object({
|
|
2634
|
+
type: z16.literal("text_editor_code_execution_str_replace_result"),
|
|
2635
|
+
lines: z16.array(z16.string()).nullable(),
|
|
2636
|
+
new_lines: z16.number().nullable(),
|
|
2637
|
+
new_start: z16.number().nullable(),
|
|
2638
|
+
old_lines: z16.number().nullable(),
|
|
2639
|
+
old_start: z16.number().nullable()
|
|
2242
2640
|
})
|
|
2243
2641
|
])
|
|
2244
2642
|
)
|
|
2245
2643
|
);
|
|
2246
|
-
var codeExecution_20260120InputSchema =
|
|
2247
|
-
() =>
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
type:
|
|
2251
|
-
code:
|
|
2644
|
+
var codeExecution_20260120InputSchema = lazySchema15(
|
|
2645
|
+
() => zodSchema15(
|
|
2646
|
+
z16.discriminatedUnion("type", [
|
|
2647
|
+
z16.object({
|
|
2648
|
+
type: z16.literal("programmatic-tool-call"),
|
|
2649
|
+
code: z16.string()
|
|
2252
2650
|
}),
|
|
2253
|
-
|
|
2254
|
-
type:
|
|
2255
|
-
command:
|
|
2651
|
+
z16.object({
|
|
2652
|
+
type: z16.literal("bash_code_execution"),
|
|
2653
|
+
command: z16.string()
|
|
2256
2654
|
}),
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
type:
|
|
2260
|
-
command:
|
|
2261
|
-
path:
|
|
2655
|
+
z16.discriminatedUnion("command", [
|
|
2656
|
+
z16.object({
|
|
2657
|
+
type: z16.literal("text_editor_code_execution"),
|
|
2658
|
+
command: z16.literal("view"),
|
|
2659
|
+
path: z16.string()
|
|
2262
2660
|
}),
|
|
2263
|
-
|
|
2264
|
-
type:
|
|
2265
|
-
command:
|
|
2266
|
-
path:
|
|
2267
|
-
file_text:
|
|
2661
|
+
z16.object({
|
|
2662
|
+
type: z16.literal("text_editor_code_execution"),
|
|
2663
|
+
command: z16.literal("create"),
|
|
2664
|
+
path: z16.string(),
|
|
2665
|
+
file_text: z16.string().nullish()
|
|
2268
2666
|
}),
|
|
2269
|
-
|
|
2270
|
-
type:
|
|
2271
|
-
command:
|
|
2272
|
-
path:
|
|
2273
|
-
old_str:
|
|
2274
|
-
new_str:
|
|
2667
|
+
z16.object({
|
|
2668
|
+
type: z16.literal("text_editor_code_execution"),
|
|
2669
|
+
command: z16.literal("str_replace"),
|
|
2670
|
+
path: z16.string(),
|
|
2671
|
+
old_str: z16.string(),
|
|
2672
|
+
new_str: z16.string()
|
|
2275
2673
|
})
|
|
2276
2674
|
])
|
|
2277
2675
|
])
|
|
2278
2676
|
)
|
|
2279
2677
|
);
|
|
2280
|
-
var
|
|
2678
|
+
var factory11 = createProviderExecutedToolFactory10({
|
|
2281
2679
|
id: "anthropic.code_execution_20260120",
|
|
2282
2680
|
inputSchema: codeExecution_20260120InputSchema,
|
|
2283
2681
|
outputSchema: codeExecution_20260120OutputSchema,
|
|
2284
2682
|
supportsDeferredResults: true
|
|
2285
2683
|
});
|
|
2286
2684
|
var codeExecution_20260120 = (args = {}) => {
|
|
2287
|
-
return experimental_toolCaller2(
|
|
2685
|
+
return experimental_toolCaller2(factory11(args), {
|
|
2288
2686
|
type: "provider",
|
|
2289
2687
|
prepareProviderOptions: (providerOptions) => {
|
|
2290
|
-
|
|
2291
|
-
const anthropicOptions = providerOptions == null ? void 0 : providerOptions.anthropic;
|
|
2688
|
+
const anthropicOptions = providerOptions?.anthropic;
|
|
2292
2689
|
return {
|
|
2293
2690
|
...providerOptions,
|
|
2294
2691
|
anthropic: {
|
|
2295
2692
|
...anthropicOptions,
|
|
2296
2693
|
allowedCallers: [
|
|
2297
2694
|
.../* @__PURE__ */ new Set([
|
|
2298
|
-
...
|
|
2695
|
+
...anthropicOptions?.allowedCallers ?? [],
|
|
2299
2696
|
"code_execution_20260120"
|
|
2300
2697
|
])
|
|
2301
2698
|
]
|
|
@@ -2307,24 +2704,24 @@ var codeExecution_20260120 = (args = {}) => {
|
|
|
2307
2704
|
|
|
2308
2705
|
// src/tool/tool-search-regex_20251119.ts
|
|
2309
2706
|
import {
|
|
2310
|
-
createProviderExecutedToolFactory as
|
|
2311
|
-
lazySchema as
|
|
2312
|
-
zodSchema as
|
|
2707
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory11,
|
|
2708
|
+
lazySchema as lazySchema16,
|
|
2709
|
+
zodSchema as zodSchema16
|
|
2313
2710
|
} from "@ai-sdk/provider-utils";
|
|
2314
|
-
import { z as
|
|
2315
|
-
var toolSearchRegex_20251119OutputSchema =
|
|
2316
|
-
() =>
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
type:
|
|
2320
|
-
toolName:
|
|
2711
|
+
import { z as z17 } from "zod/v4";
|
|
2712
|
+
var toolSearchRegex_20251119OutputSchema = lazySchema16(
|
|
2713
|
+
() => zodSchema16(
|
|
2714
|
+
z17.array(
|
|
2715
|
+
z17.object({
|
|
2716
|
+
type: z17.literal("tool_reference"),
|
|
2717
|
+
toolName: z17.string()
|
|
2321
2718
|
})
|
|
2322
2719
|
)
|
|
2323
2720
|
)
|
|
2324
2721
|
);
|
|
2325
|
-
var toolSearchRegex_20251119InputSchema =
|
|
2326
|
-
() =>
|
|
2327
|
-
|
|
2722
|
+
var toolSearchRegex_20251119InputSchema = lazySchema16(
|
|
2723
|
+
() => zodSchema16(
|
|
2724
|
+
z17.object({
|
|
2328
2725
|
/**
|
|
2329
2726
|
* A regex pattern to search for tools.
|
|
2330
2727
|
* Uses Python re.search() syntax. Maximum 200 characters.
|
|
@@ -2335,22 +2732,22 @@ var toolSearchRegex_20251119InputSchema = lazySchema13(
|
|
|
2335
2732
|
* - "database.*query|query.*database" - OR patterns for flexibility
|
|
2336
2733
|
* - "(?i)slack" - case-insensitive search
|
|
2337
2734
|
*/
|
|
2338
|
-
pattern:
|
|
2735
|
+
pattern: z17.string(),
|
|
2339
2736
|
/**
|
|
2340
2737
|
* Maximum number of tools to return. Optional.
|
|
2341
2738
|
*/
|
|
2342
|
-
limit:
|
|
2739
|
+
limit: z17.number().optional()
|
|
2343
2740
|
})
|
|
2344
2741
|
)
|
|
2345
2742
|
);
|
|
2346
|
-
var
|
|
2743
|
+
var factory12 = createProviderExecutedToolFactory11({
|
|
2347
2744
|
id: "anthropic.tool_search_regex_20251119",
|
|
2348
2745
|
inputSchema: toolSearchRegex_20251119InputSchema,
|
|
2349
2746
|
outputSchema: toolSearchRegex_20251119OutputSchema,
|
|
2350
2747
|
supportsDeferredResults: true
|
|
2351
2748
|
});
|
|
2352
2749
|
var toolSearchRegex_20251119 = (args = {}) => {
|
|
2353
|
-
return
|
|
2750
|
+
return factory12(args);
|
|
2354
2751
|
};
|
|
2355
2752
|
|
|
2356
2753
|
// src/convert-to-anthropic-prompt.ts
|
|
@@ -2367,8 +2764,8 @@ function extractErrorValue(value) {
|
|
|
2367
2764
|
} else if (typeof value === "object" && value !== null) {
|
|
2368
2765
|
return value;
|
|
2369
2766
|
}
|
|
2370
|
-
} catch
|
|
2371
|
-
const extractedErrorCode = value
|
|
2767
|
+
} catch {
|
|
2768
|
+
const extractedErrorCode = value?.errorCode;
|
|
2372
2769
|
return {
|
|
2373
2770
|
errorCode: typeof extractedErrorCode === "string" ? extractedErrorCode : "unavailable"
|
|
2374
2771
|
};
|
|
@@ -2380,31 +2777,30 @@ async function convertToAnthropicPrompt({
|
|
|
2380
2777
|
sendReasoning,
|
|
2381
2778
|
warnings,
|
|
2382
2779
|
cacheControlValidator,
|
|
2383
|
-
toolNameMapping
|
|
2780
|
+
toolNameMapping,
|
|
2781
|
+
toolsetNames = {}
|
|
2384
2782
|
}) {
|
|
2385
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
2386
2783
|
const betas = /* @__PURE__ */ new Set();
|
|
2387
2784
|
const blocks = groupIntoBlocks(prompt);
|
|
2388
2785
|
const validator = cacheControlValidator || new CacheControlValidator();
|
|
2389
2786
|
let system = void 0;
|
|
2390
2787
|
const messages = [];
|
|
2788
|
+
let lastUserMessageIndex = -1;
|
|
2391
2789
|
async function shouldEnableCitations(providerMetadata) {
|
|
2392
|
-
var _a2, _b2;
|
|
2393
2790
|
const anthropicOptions = await parseProviderOptions({
|
|
2394
2791
|
provider: "anthropic",
|
|
2395
2792
|
providerOptions: providerMetadata,
|
|
2396
2793
|
schema: anthropicFilePartProviderOptions
|
|
2397
2794
|
});
|
|
2398
|
-
return
|
|
2795
|
+
return anthropicOptions?.citations?.enabled ?? false;
|
|
2399
2796
|
}
|
|
2400
2797
|
async function shouldUseContainerUpload(providerMetadata) {
|
|
2401
|
-
var _a2;
|
|
2402
2798
|
const anthropicOptions = await parseProviderOptions({
|
|
2403
2799
|
provider: "anthropic",
|
|
2404
2800
|
providerOptions: providerMetadata,
|
|
2405
2801
|
schema: anthropicFilePartProviderOptions
|
|
2406
2802
|
});
|
|
2407
|
-
return
|
|
2803
|
+
return anthropicOptions?.containerUpload ?? false;
|
|
2408
2804
|
}
|
|
2409
2805
|
async function getDocumentMetadata(providerMetadata) {
|
|
2410
2806
|
const anthropicOptions = await parseProviderOptions({
|
|
@@ -2413,8 +2809,8 @@ async function convertToAnthropicPrompt({
|
|
|
2413
2809
|
schema: anthropicFilePartProviderOptions
|
|
2414
2810
|
});
|
|
2415
2811
|
return {
|
|
2416
|
-
title: anthropicOptions
|
|
2417
|
-
context: anthropicOptions
|
|
2812
|
+
title: anthropicOptions?.title,
|
|
2813
|
+
context: anthropicOptions?.context
|
|
2418
2814
|
};
|
|
2419
2815
|
}
|
|
2420
2816
|
for (let i = 0; i < blocks.length; i++) {
|
|
@@ -2423,16 +2819,16 @@ async function convertToAnthropicPrompt({
|
|
|
2423
2819
|
const type = block.type;
|
|
2424
2820
|
switch (type) {
|
|
2425
2821
|
case "system": {
|
|
2426
|
-
const
|
|
2427
|
-
let toolChangeCount = 0;
|
|
2822
|
+
const convertedMessages = [];
|
|
2428
2823
|
for (const { content: text, providerOptions } of block.messages) {
|
|
2429
2824
|
const systemMessageOptions = await parseProviderOptions({
|
|
2430
2825
|
provider: "anthropic",
|
|
2431
2826
|
providerOptions,
|
|
2432
2827
|
schema: anthropicSystemMessageProviderOptions
|
|
2433
2828
|
});
|
|
2434
|
-
const toolChanges =
|
|
2435
|
-
|
|
2829
|
+
const toolChanges = systemMessageOptions?.toolChanges ?? [];
|
|
2830
|
+
const content = [];
|
|
2831
|
+
if (text !== "" || toolChanges.length === 0 && systemMessageOptions?.clearAt == null && systemMessageOptions?.effort == null) {
|
|
2436
2832
|
content.push({
|
|
2437
2833
|
type: "text",
|
|
2438
2834
|
text,
|
|
@@ -2443,7 +2839,6 @@ async function convertToAnthropicPrompt({
|
|
|
2443
2839
|
});
|
|
2444
2840
|
}
|
|
2445
2841
|
for (const toolChange of toolChanges) {
|
|
2446
|
-
toolChangeCount++;
|
|
2447
2842
|
content.push({
|
|
2448
2843
|
type: toolChange.type,
|
|
2449
2844
|
tool: {
|
|
@@ -2452,22 +2847,67 @@ async function convertToAnthropicPrompt({
|
|
|
2452
2847
|
}
|
|
2453
2848
|
});
|
|
2454
2849
|
}
|
|
2850
|
+
convertedMessages.push({
|
|
2851
|
+
content,
|
|
2852
|
+
clearAt: systemMessageOptions?.clearAt,
|
|
2853
|
+
effort: systemMessageOptions?.effort,
|
|
2854
|
+
toolChangeCount: toolChanges.length
|
|
2855
|
+
});
|
|
2455
2856
|
}
|
|
2456
|
-
|
|
2857
|
+
const toolChangeCount = convertedMessages.reduce(
|
|
2858
|
+
(count, message) => count + message.toolChangeCount,
|
|
2859
|
+
0
|
|
2860
|
+
);
|
|
2861
|
+
const hasInlineSystemOptions = convertedMessages.some(
|
|
2862
|
+
(message) => message.clearAt != null || message.effort != null
|
|
2863
|
+
);
|
|
2864
|
+
if (i === 0 || system == null && toolChangeCount === 0 && !hasInlineSystemOptions) {
|
|
2457
2865
|
if (toolChangeCount > 0) {
|
|
2458
2866
|
warnings.push({
|
|
2459
2867
|
type: "other",
|
|
2460
2868
|
message: "tool changes on the initial system message are not supported by Anthropic. Configure the initial tool set via the tools option instead. The tool changes have been ignored."
|
|
2461
2869
|
});
|
|
2462
2870
|
}
|
|
2463
|
-
|
|
2464
|
-
(
|
|
2871
|
+
for (const message of convertedMessages) {
|
|
2872
|
+
if (message.content.length === 0 && message.clearAt == null && message.effort != null) {
|
|
2873
|
+
messages.push({
|
|
2874
|
+
role: "system",
|
|
2875
|
+
content: [],
|
|
2876
|
+
output_config: { effort: message.effort }
|
|
2877
|
+
});
|
|
2878
|
+
betas.add("mid-conversation-output-config-2026-07-01");
|
|
2879
|
+
} else if (message.clearAt != null || message.effort != null) {
|
|
2880
|
+
warnings.push({
|
|
2881
|
+
type: "other",
|
|
2882
|
+
message: "clearAt and effort on this initial system message are not supported by Anthropic. Use a separate effort-only system message with empty content to set effort. These options have been ignored."
|
|
2883
|
+
});
|
|
2884
|
+
}
|
|
2885
|
+
}
|
|
2886
|
+
system = convertedMessages.flatMap(
|
|
2887
|
+
(message) => message.content.filter(
|
|
2888
|
+
(part) => part.type === "text"
|
|
2889
|
+
)
|
|
2465
2890
|
);
|
|
2466
2891
|
} else {
|
|
2467
|
-
messages.push({ role: "system", content });
|
|
2468
2892
|
betas.add("mid-conversation-system-2026-04-07");
|
|
2469
|
-
|
|
2470
|
-
|
|
2893
|
+
for (const message of convertedMessages) {
|
|
2894
|
+
messages.push({
|
|
2895
|
+
role: "system",
|
|
2896
|
+
content: message.content,
|
|
2897
|
+
...message.clearAt != null && { clear_at: message.clearAt },
|
|
2898
|
+
...message.effort != null && {
|
|
2899
|
+
output_config: { effort: message.effort }
|
|
2900
|
+
}
|
|
2901
|
+
});
|
|
2902
|
+
if (message.toolChangeCount > 0) {
|
|
2903
|
+
betas.add("mid-conversation-tool-changes-2026-07-01");
|
|
2904
|
+
}
|
|
2905
|
+
if (message.clearAt != null) {
|
|
2906
|
+
betas.add("mid-conversation-system-clear-at-2026-08-21");
|
|
2907
|
+
}
|
|
2908
|
+
if (message.effort != null) {
|
|
2909
|
+
betas.add("mid-conversation-output-config-2026-07-01");
|
|
2910
|
+
}
|
|
2471
2911
|
}
|
|
2472
2912
|
}
|
|
2473
2913
|
break;
|
|
@@ -2478,16 +2918,19 @@ async function convertToAnthropicPrompt({
|
|
|
2478
2918
|
const { role, content } = message;
|
|
2479
2919
|
switch (role) {
|
|
2480
2920
|
case "user": {
|
|
2921
|
+
if (content.length > 0) {
|
|
2922
|
+
lastUserMessageIndex = messages.length;
|
|
2923
|
+
}
|
|
2481
2924
|
for (let j = 0; j < content.length; j++) {
|
|
2482
2925
|
const part = content[j];
|
|
2483
2926
|
const isLastPart = j === content.length - 1;
|
|
2484
|
-
const cacheControl =
|
|
2927
|
+
const cacheControl = validator.getCacheControl(part.providerOptions, {
|
|
2485
2928
|
type: "user message part",
|
|
2486
2929
|
canCache: true
|
|
2487
|
-
})
|
|
2930
|
+
}) ?? (isLastPart ? validator.getCacheControl(message.providerOptions, {
|
|
2488
2931
|
type: "user message",
|
|
2489
2932
|
canCache: true
|
|
2490
|
-
}) : void 0;
|
|
2933
|
+
}) : void 0);
|
|
2491
2934
|
switch (part.type) {
|
|
2492
2935
|
case "text": {
|
|
2493
2936
|
anthropicContent.push({
|
|
@@ -2539,7 +2982,7 @@ async function convertToAnthropicPrompt({
|
|
|
2539
2982
|
media_type: "text/plain",
|
|
2540
2983
|
data: part.data.text
|
|
2541
2984
|
},
|
|
2542
|
-
title:
|
|
2985
|
+
title: metadata.title ?? part.filename,
|
|
2543
2986
|
...metadata.context && {
|
|
2544
2987
|
context: metadata.context
|
|
2545
2988
|
},
|
|
@@ -2584,7 +3027,7 @@ async function convertToAnthropicPrompt({
|
|
|
2584
3027
|
media_type: "application/pdf",
|
|
2585
3028
|
data: convertToBase64(part.data.data)
|
|
2586
3029
|
},
|
|
2587
|
-
title:
|
|
3030
|
+
title: metadata.title ?? part.filename,
|
|
2588
3031
|
...metadata.context && {
|
|
2589
3032
|
context: metadata.context
|
|
2590
3033
|
},
|
|
@@ -2612,7 +3055,7 @@ async function convertToAnthropicPrompt({
|
|
|
2612
3055
|
part.data.data
|
|
2613
3056
|
)
|
|
2614
3057
|
},
|
|
2615
|
-
title:
|
|
3058
|
+
title: metadata.title ?? part.filename,
|
|
2616
3059
|
...metadata.context && {
|
|
2617
3060
|
context: metadata.context
|
|
2618
3061
|
},
|
|
@@ -2642,25 +3085,24 @@ async function convertToAnthropicPrompt({
|
|
|
2642
3085
|
continue;
|
|
2643
3086
|
}
|
|
2644
3087
|
const output = part.output;
|
|
2645
|
-
const outputProviderOptions = "providerOptions" in output ? output.providerOptions : output.type === "content" ?
|
|
3088
|
+
const outputProviderOptions = "providerOptions" in output ? output.providerOptions : output.type === "content" ? output.value.find(
|
|
2646
3089
|
(contentPart) => contentPart.providerOptions != null
|
|
2647
|
-
)
|
|
3090
|
+
)?.providerOptions : void 0;
|
|
2648
3091
|
const isLastPart = i2 === content.length - 1;
|
|
2649
|
-
const cacheControl =
|
|
3092
|
+
const cacheControl = validator.getCacheControl(part.providerOptions, {
|
|
2650
3093
|
type: "tool result part",
|
|
2651
3094
|
canCache: true
|
|
2652
|
-
})
|
|
3095
|
+
}) ?? validator.getCacheControl(outputProviderOptions, {
|
|
2653
3096
|
type: "tool result output",
|
|
2654
3097
|
canCache: true
|
|
2655
|
-
})
|
|
3098
|
+
}) ?? (isLastPart ? validator.getCacheControl(message.providerOptions, {
|
|
2656
3099
|
type: "tool result message",
|
|
2657
3100
|
canCache: true
|
|
2658
|
-
}) : void 0;
|
|
3101
|
+
}) : void 0);
|
|
2659
3102
|
let contentValue;
|
|
2660
3103
|
switch (output.type) {
|
|
2661
3104
|
case "content":
|
|
2662
3105
|
contentValue = output.value.map((contentPart) => {
|
|
2663
|
-
var _a2;
|
|
2664
3106
|
switch (contentPart.type) {
|
|
2665
3107
|
case "text":
|
|
2666
3108
|
return {
|
|
@@ -2730,8 +3172,8 @@ async function convertToAnthropicPrompt({
|
|
|
2730
3172
|
return void 0;
|
|
2731
3173
|
}
|
|
2732
3174
|
case "custom": {
|
|
2733
|
-
const anthropicOptions =
|
|
2734
|
-
if (
|
|
3175
|
+
const anthropicOptions = contentPart.providerOptions?.anthropic;
|
|
3176
|
+
if (anthropicOptions?.type === "tool-reference") {
|
|
2735
3177
|
return {
|
|
2736
3178
|
type: "tool_reference",
|
|
2737
3179
|
tool_name: anthropicOptions.toolName
|
|
@@ -2758,7 +3200,7 @@ async function convertToAnthropicPrompt({
|
|
|
2758
3200
|
contentValue = output.value;
|
|
2759
3201
|
break;
|
|
2760
3202
|
case "execution-denied":
|
|
2761
|
-
contentValue =
|
|
3203
|
+
contentValue = output.reason ?? "Tool call execution denied.";
|
|
2762
3204
|
break;
|
|
2763
3205
|
case "json":
|
|
2764
3206
|
case "error-json":
|
|
@@ -2766,9 +3208,15 @@ async function convertToAnthropicPrompt({
|
|
|
2766
3208
|
contentValue = JSON.stringify(output.value);
|
|
2767
3209
|
break;
|
|
2768
3210
|
}
|
|
3211
|
+
const toolsetName = getAnthropicToolsetName({
|
|
3212
|
+
toolName: part.toolName,
|
|
3213
|
+
providerOptions: part.providerOptions,
|
|
3214
|
+
toolsetNames
|
|
3215
|
+
});
|
|
2769
3216
|
anthropicContent.push({
|
|
2770
3217
|
type: "tool_result",
|
|
2771
3218
|
tool_use_id: part.toolCallId,
|
|
3219
|
+
...toolsetName != null && { toolset_name: toolsetName },
|
|
2772
3220
|
content: contentValue,
|
|
2773
3221
|
is_error: output.type === "error-text" || output.type === "error-json" ? true : void 0,
|
|
2774
3222
|
cache_control: cacheControl
|
|
@@ -2795,20 +3243,29 @@ async function convertToAnthropicPrompt({
|
|
|
2795
3243
|
for (let k = 0; k < content.length; k++) {
|
|
2796
3244
|
const part = content[k];
|
|
2797
3245
|
const isLastContentPart = k === content.length - 1;
|
|
2798
|
-
const cacheControl =
|
|
3246
|
+
const cacheControl = validator.getCacheControl(part.providerOptions, {
|
|
2799
3247
|
type: "assistant message part",
|
|
2800
3248
|
canCache: true
|
|
2801
|
-
})
|
|
3249
|
+
}) ?? (isLastContentPart ? validator.getCacheControl(message.providerOptions, {
|
|
2802
3250
|
type: "assistant message",
|
|
2803
3251
|
canCache: true
|
|
2804
|
-
}) : void 0;
|
|
3252
|
+
}) : void 0);
|
|
2805
3253
|
switch (part.type) {
|
|
2806
3254
|
case "text": {
|
|
2807
|
-
const textMetadata =
|
|
2808
|
-
if (
|
|
3255
|
+
const textMetadata = part.providerOptions?.anthropic;
|
|
3256
|
+
if (textMetadata?.type === "compaction") {
|
|
3257
|
+
if (part.text === "") {
|
|
3258
|
+
break;
|
|
3259
|
+
}
|
|
3260
|
+
if (typeof textMetadata.signature === "string") {
|
|
3261
|
+
betas.add("compact-2026-09-04");
|
|
3262
|
+
}
|
|
2809
3263
|
anthropicContent.push({
|
|
2810
3264
|
type: "compaction",
|
|
2811
3265
|
content: part.text,
|
|
3266
|
+
...typeof textMetadata.signature === "string" && {
|
|
3267
|
+
signature: textMetadata.signature
|
|
3268
|
+
},
|
|
2812
3269
|
cache_control: cacheControl
|
|
2813
3270
|
});
|
|
2814
3271
|
} else {
|
|
@@ -2820,7 +3277,7 @@ async function convertToAnthropicPrompt({
|
|
|
2820
3277
|
// in pre-filled assistant responses
|
|
2821
3278
|
isLastBlock && isLastMessage && isLastContentPart ? part.text.trim() : part.text
|
|
2822
3279
|
),
|
|
2823
|
-
...
|
|
3280
|
+
...textMetadata?.citations != null && {
|
|
2824
3281
|
citations: textMetadata.citations
|
|
2825
3282
|
},
|
|
2826
3283
|
cache_control: cacheControl
|
|
@@ -2881,10 +3338,10 @@ async function convertToAnthropicPrompt({
|
|
|
2881
3338
|
const providerToolName = toolNameMapping.toProviderToolName(
|
|
2882
3339
|
part.toolName
|
|
2883
3340
|
);
|
|
2884
|
-
const isMcpToolUse =
|
|
3341
|
+
const isMcpToolUse = part.providerOptions?.anthropic?.type === "mcp-tool-use";
|
|
2885
3342
|
if (isMcpToolUse) {
|
|
2886
3343
|
mcpToolUseIds.add(part.toolCallId);
|
|
2887
|
-
const serverName =
|
|
3344
|
+
const serverName = part.providerOptions?.anthropic?.serverName;
|
|
2888
3345
|
if (serverName == null || typeof serverName !== "string") {
|
|
2889
3346
|
warnings.push({
|
|
2890
3347
|
type: "other",
|
|
@@ -2966,6 +3423,33 @@ async function convertToAnthropicPrompt({
|
|
|
2966
3423
|
}
|
|
2967
3424
|
break;
|
|
2968
3425
|
}
|
|
3426
|
+
const toolsetName = getAnthropicToolsetName({
|
|
3427
|
+
toolName: part.toolName,
|
|
3428
|
+
providerOptions: part.providerOptions,
|
|
3429
|
+
toolsetNames
|
|
3430
|
+
});
|
|
3431
|
+
if (toolsetName != null) {
|
|
3432
|
+
const { action, ...memberInput } = toAnthropicToolInput(
|
|
3433
|
+
part.input
|
|
3434
|
+
);
|
|
3435
|
+
if (typeof action !== "string") {
|
|
3436
|
+
warnings.push({
|
|
3437
|
+
type: "other",
|
|
3438
|
+
message: `toolset tool call for tool ${part.toolName} is missing the action`
|
|
3439
|
+
});
|
|
3440
|
+
break;
|
|
3441
|
+
}
|
|
3442
|
+
anthropicContent.push({
|
|
3443
|
+
type: "tool_use",
|
|
3444
|
+
id: part.toolCallId,
|
|
3445
|
+
name: action,
|
|
3446
|
+
toolset_name: toolsetName,
|
|
3447
|
+
input: memberInput,
|
|
3448
|
+
...caller && { caller },
|
|
3449
|
+
cache_control: cacheControl
|
|
3450
|
+
});
|
|
3451
|
+
break;
|
|
3452
|
+
}
|
|
2969
3453
|
anthropicContent.push({
|
|
2970
3454
|
type: "tool_use",
|
|
2971
3455
|
id: part.toolCallId,
|
|
@@ -3007,7 +3491,7 @@ async function convertToAnthropicPrompt({
|
|
|
3007
3491
|
} else if (typeof output.value === "object" && output.value !== null) {
|
|
3008
3492
|
errorInfo = output.value;
|
|
3009
3493
|
}
|
|
3010
|
-
} catch
|
|
3494
|
+
} catch {
|
|
3011
3495
|
}
|
|
3012
3496
|
if (errorInfo.type === "code_execution_tool_result_error") {
|
|
3013
3497
|
anthropicContent.push({
|
|
@@ -3015,7 +3499,7 @@ async function convertToAnthropicPrompt({
|
|
|
3015
3499
|
tool_use_id: part.toolCallId,
|
|
3016
3500
|
content: {
|
|
3017
3501
|
type: "code_execution_tool_result_error",
|
|
3018
|
-
error_code:
|
|
3502
|
+
error_code: errorInfo.errorCode ?? "unknown"
|
|
3019
3503
|
},
|
|
3020
3504
|
cache_control: cacheControl
|
|
3021
3505
|
});
|
|
@@ -3026,7 +3510,7 @@ async function convertToAnthropicPrompt({
|
|
|
3026
3510
|
cache_control: cacheControl,
|
|
3027
3511
|
content: {
|
|
3028
3512
|
type: "bash_code_execution_tool_result_error",
|
|
3029
|
-
error_code:
|
|
3513
|
+
error_code: errorInfo.errorCode ?? "unknown"
|
|
3030
3514
|
}
|
|
3031
3515
|
});
|
|
3032
3516
|
}
|
|
@@ -3059,7 +3543,7 @@ async function convertToAnthropicPrompt({
|
|
|
3059
3543
|
stdout: codeExecutionOutput.stdout,
|
|
3060
3544
|
stderr: codeExecutionOutput.stderr,
|
|
3061
3545
|
return_code: codeExecutionOutput.return_code,
|
|
3062
|
-
content:
|
|
3546
|
+
content: codeExecutionOutput.content ?? []
|
|
3063
3547
|
},
|
|
3064
3548
|
cache_control: cacheControl
|
|
3065
3549
|
});
|
|
@@ -3077,7 +3561,7 @@ async function convertToAnthropicPrompt({
|
|
|
3077
3561
|
encrypted_stdout: codeExecutionOutput.encrypted_stdout,
|
|
3078
3562
|
stderr: codeExecutionOutput.stderr,
|
|
3079
3563
|
return_code: codeExecutionOutput.return_code,
|
|
3080
|
-
content:
|
|
3564
|
+
content: codeExecutionOutput.content ?? []
|
|
3081
3565
|
},
|
|
3082
3566
|
cache_control: cacheControl
|
|
3083
3567
|
});
|
|
@@ -3096,7 +3580,7 @@ async function convertToAnthropicPrompt({
|
|
|
3096
3580
|
stdout: codeExecutionOutput.stdout,
|
|
3097
3581
|
stderr: codeExecutionOutput.stderr,
|
|
3098
3582
|
return_code: codeExecutionOutput.return_code,
|
|
3099
|
-
content:
|
|
3583
|
+
content: codeExecutionOutput.content ?? []
|
|
3100
3584
|
},
|
|
3101
3585
|
cache_control: cacheControl
|
|
3102
3586
|
});
|
|
@@ -3134,7 +3618,7 @@ async function convertToAnthropicPrompt({
|
|
|
3134
3618
|
tool_use_id: part.toolCallId,
|
|
3135
3619
|
content: {
|
|
3136
3620
|
type: "web_fetch_tool_result_error",
|
|
3137
|
-
error_code:
|
|
3621
|
+
error_code: extractErrorValue(output.value).errorCode ?? "unavailable"
|
|
3138
3622
|
},
|
|
3139
3623
|
...caller && { caller },
|
|
3140
3624
|
cache_control: cacheControl
|
|
@@ -3183,7 +3667,7 @@ async function convertToAnthropicPrompt({
|
|
|
3183
3667
|
tool_use_id: part.toolCallId,
|
|
3184
3668
|
content: {
|
|
3185
3669
|
type: "web_search_tool_result_error",
|
|
3186
|
-
error_code:
|
|
3670
|
+
error_code: extractErrorValue(output.value).errorCode ?? "unavailable"
|
|
3187
3671
|
},
|
|
3188
3672
|
...caller && { caller },
|
|
3189
3673
|
cache_control: cacheControl
|
|
@@ -3305,10 +3789,12 @@ async function convertToAnthropicPrompt({
|
|
|
3305
3789
|
}
|
|
3306
3790
|
}
|
|
3307
3791
|
}
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3792
|
+
if (anthropicContent.length > 0) {
|
|
3793
|
+
messages.push({
|
|
3794
|
+
role: "assistant",
|
|
3795
|
+
content: moveToolUseBlocksToEnd(anthropicContent)
|
|
3796
|
+
});
|
|
3797
|
+
}
|
|
3312
3798
|
break;
|
|
3313
3799
|
}
|
|
3314
3800
|
default: {
|
|
@@ -3317,6 +3803,42 @@ async function convertToAnthropicPrompt({
|
|
|
3317
3803
|
}
|
|
3318
3804
|
}
|
|
3319
3805
|
}
|
|
3806
|
+
const codeExecutionToolCallIds = /* @__PURE__ */ new Set();
|
|
3807
|
+
for (const message of messages) {
|
|
3808
|
+
if (message.role !== "assistant") {
|
|
3809
|
+
continue;
|
|
3810
|
+
}
|
|
3811
|
+
for (const part of message.content) {
|
|
3812
|
+
if (part.type === "server_tool_use" && part.name === "code_execution") {
|
|
3813
|
+
codeExecutionToolCallIds.add(part.id);
|
|
3814
|
+
}
|
|
3815
|
+
}
|
|
3816
|
+
}
|
|
3817
|
+
const warnedToolCallIds = /* @__PURE__ */ new Set();
|
|
3818
|
+
for (let i = 0; i < lastUserMessageIndex; i++) {
|
|
3819
|
+
const message = messages[i];
|
|
3820
|
+
if (message.role !== "assistant") {
|
|
3821
|
+
continue;
|
|
3822
|
+
}
|
|
3823
|
+
for (const part of message.content) {
|
|
3824
|
+
if (!("caller" in part)) {
|
|
3825
|
+
continue;
|
|
3826
|
+
}
|
|
3827
|
+
const caller = part.caller;
|
|
3828
|
+
if (caller == null || caller.type === "direct" || codeExecutionToolCallIds.has(caller.tool_id)) {
|
|
3829
|
+
continue;
|
|
3830
|
+
}
|
|
3831
|
+
const toolCallId = "id" in part ? part.id : part.tool_use_id;
|
|
3832
|
+
delete part.caller;
|
|
3833
|
+
if (!warnedToolCallIds.has(toolCallId)) {
|
|
3834
|
+
warnedToolCallIds.add(toolCallId);
|
|
3835
|
+
warnings.push({
|
|
3836
|
+
type: "other",
|
|
3837
|
+
message: `Omitted caller metadata for tool ${toolCallId} because source code execution tool ${caller.tool_id} is missing from the conversation history.`
|
|
3838
|
+
});
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3320
3842
|
return {
|
|
3321
3843
|
prompt: { system, messages },
|
|
3322
3844
|
betas
|
|
@@ -3329,7 +3851,7 @@ function groupIntoBlocks(prompt) {
|
|
|
3329
3851
|
const { role } = message;
|
|
3330
3852
|
switch (role) {
|
|
3331
3853
|
case "system": {
|
|
3332
|
-
if (
|
|
3854
|
+
if (currentBlock?.type !== "system") {
|
|
3333
3855
|
currentBlock = { type: "system", messages: [] };
|
|
3334
3856
|
blocks.push(currentBlock);
|
|
3335
3857
|
}
|
|
@@ -3337,7 +3859,7 @@ function groupIntoBlocks(prompt) {
|
|
|
3337
3859
|
break;
|
|
3338
3860
|
}
|
|
3339
3861
|
case "assistant": {
|
|
3340
|
-
if (
|
|
3862
|
+
if (currentBlock?.type !== "assistant") {
|
|
3341
3863
|
currentBlock = { type: "assistant", messages: [] };
|
|
3342
3864
|
blocks.push(currentBlock);
|
|
3343
3865
|
}
|
|
@@ -3345,7 +3867,7 @@ function groupIntoBlocks(prompt) {
|
|
|
3345
3867
|
break;
|
|
3346
3868
|
}
|
|
3347
3869
|
case "user": {
|
|
3348
|
-
if (
|
|
3870
|
+
if (currentBlock?.type !== "user") {
|
|
3349
3871
|
currentBlock = { type: "user", messages: [] };
|
|
3350
3872
|
blocks.push(currentBlock);
|
|
3351
3873
|
}
|
|
@@ -3353,7 +3875,7 @@ function groupIntoBlocks(prompt) {
|
|
|
3353
3875
|
break;
|
|
3354
3876
|
}
|
|
3355
3877
|
case "tool": {
|
|
3356
|
-
if (
|
|
3878
|
+
if (currentBlock?.type !== "user") {
|
|
3357
3879
|
currentBlock = { type: "user", messages: [] };
|
|
3358
3880
|
blocks.push(currentBlock);
|
|
3359
3881
|
}
|
|
@@ -3389,16 +3911,27 @@ function moveToolUseBlocksToEnd(content) {
|
|
|
3389
3911
|
flushSegment();
|
|
3390
3912
|
return result;
|
|
3391
3913
|
}
|
|
3914
|
+
function getAnthropicToolsetName({
|
|
3915
|
+
toolName,
|
|
3916
|
+
providerOptions,
|
|
3917
|
+
toolsetNames
|
|
3918
|
+
}) {
|
|
3919
|
+
const fromTools = toolsetNames[toolName];
|
|
3920
|
+
if (fromTools != null) {
|
|
3921
|
+
return fromTools;
|
|
3922
|
+
}
|
|
3923
|
+
const fromMetadata = providerOptions?.anthropic?.toolsetName;
|
|
3924
|
+
return typeof fromMetadata === "string" ? fromMetadata : void 0;
|
|
3925
|
+
}
|
|
3392
3926
|
function getAnthropicCaller(providerOptions) {
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
if (((caller == null ? void 0 : caller.type) === "code_execution_20250825" || (caller == null ? void 0 : caller.type) === "code_execution_20260120") && caller.toolId) {
|
|
3927
|
+
const caller = providerOptions?.anthropic?.caller;
|
|
3928
|
+
if ((caller?.type === "code_execution_20250825" || caller?.type === "code_execution_20260120") && caller.toolId) {
|
|
3396
3929
|
return {
|
|
3397
3930
|
type: caller.type,
|
|
3398
3931
|
tool_id: caller.toolId
|
|
3399
3932
|
};
|
|
3400
3933
|
}
|
|
3401
|
-
return
|
|
3934
|
+
return caller?.type === "direct" ? { type: "direct" } : void 0;
|
|
3402
3935
|
}
|
|
3403
3936
|
function toAnthropicToolInput(input) {
|
|
3404
3937
|
return typeof input === "object" && input !== null && !Array.isArray(input) ? input : { rawInvalidInput: input };
|
|
@@ -3573,15 +4106,48 @@ function formatConstraintValue(value) {
|
|
|
3573
4106
|
}
|
|
3574
4107
|
|
|
3575
4108
|
// src/anthropic-language-model.ts
|
|
4109
|
+
function createAnthropicStreamError(error) {
|
|
4110
|
+
const inferredMetadata = getAnthropicStreamErrorMetadata(error.type);
|
|
4111
|
+
return createProviderStreamError({
|
|
4112
|
+
message: error.message,
|
|
4113
|
+
type: error.type,
|
|
4114
|
+
code: error.code ?? void 0,
|
|
4115
|
+
statusCode: error.statusCode ?? inferredMetadata.statusCode,
|
|
4116
|
+
isRetryable: error.isRetryable ?? inferredMetadata.isRetryable,
|
|
4117
|
+
data: "data" in error ? error.data : error
|
|
4118
|
+
});
|
|
4119
|
+
}
|
|
4120
|
+
function getAnthropicStreamErrorMetadata(type) {
|
|
4121
|
+
switch (type) {
|
|
4122
|
+
case "api_error":
|
|
4123
|
+
return { statusCode: 500, isRetryable: true };
|
|
4124
|
+
case "overloaded_error":
|
|
4125
|
+
return { statusCode: 529, isRetryable: true };
|
|
4126
|
+
case "rate_limit_error":
|
|
4127
|
+
return { statusCode: 429, isRetryable: true };
|
|
4128
|
+
case "request_too_large":
|
|
4129
|
+
return { statusCode: 413, isRetryable: false };
|
|
4130
|
+
case "authentication_error":
|
|
4131
|
+
return { statusCode: 401, isRetryable: false };
|
|
4132
|
+
case "permission_error":
|
|
4133
|
+
return { statusCode: 403, isRetryable: false };
|
|
4134
|
+
case "not_found_error":
|
|
4135
|
+
return { statusCode: 404, isRetryable: false };
|
|
4136
|
+
case "billing_error":
|
|
4137
|
+
case "invalid_request_error":
|
|
4138
|
+
return { statusCode: 400, isRetryable: false };
|
|
4139
|
+
default:
|
|
4140
|
+
return {};
|
|
4141
|
+
}
|
|
4142
|
+
}
|
|
3576
4143
|
function createCitationSource(citation, citationDocuments, generateId2) {
|
|
3577
|
-
var _a;
|
|
3578
4144
|
if (citation.type === "web_search_result_location") {
|
|
3579
4145
|
return {
|
|
3580
4146
|
type: "source",
|
|
3581
4147
|
sourceType: "url",
|
|
3582
4148
|
id: generateId2(),
|
|
3583
4149
|
url: citation.url,
|
|
3584
|
-
title: citation.title,
|
|
4150
|
+
title: citation.title ?? void 0,
|
|
3585
4151
|
providerMetadata: {
|
|
3586
4152
|
anthropic: {
|
|
3587
4153
|
citedText: citation.cited_text,
|
|
@@ -3602,7 +4168,7 @@ function createCitationSource(citation, citationDocuments, generateId2) {
|
|
|
3602
4168
|
sourceType: "document",
|
|
3603
4169
|
id: generateId2(),
|
|
3604
4170
|
mediaType: documentInfo.mediaType,
|
|
3605
|
-
title:
|
|
4171
|
+
title: citation.document_title ?? documentInfo.title,
|
|
3606
4172
|
filename: documentInfo.filename,
|
|
3607
4173
|
providerMetadata: {
|
|
3608
4174
|
anthropic: citation.type === "page_location" ? {
|
|
@@ -3627,13 +4193,34 @@ function getAnthropicCallerMetadata(caller) {
|
|
|
3627
4193
|
const callerInfo = getAnthropicCallerInfo(caller);
|
|
3628
4194
|
return callerInfo == null ? {} : { providerMetadata: { anthropic: { caller: callerInfo } } };
|
|
3629
4195
|
}
|
|
4196
|
+
function getAnthropicToolsetNames(tools) {
|
|
4197
|
+
const toolsetNames = {};
|
|
4198
|
+
for (const tool of tools ?? []) {
|
|
4199
|
+
if (tool.type === "provider" && tool.id === "anthropic.computer_toolset_20260801") {
|
|
4200
|
+
toolsetNames[tool.name] = "computer";
|
|
4201
|
+
}
|
|
4202
|
+
}
|
|
4203
|
+
return toolsetNames;
|
|
4204
|
+
}
|
|
4205
|
+
function toToolsetMemberInput({
|
|
4206
|
+
memberName,
|
|
4207
|
+
input
|
|
4208
|
+
}) {
|
|
4209
|
+
return {
|
|
4210
|
+
action: memberName,
|
|
4211
|
+
...typeof input === "object" && input !== null && !Array.isArray(input) ? input : {}
|
|
4212
|
+
};
|
|
4213
|
+
}
|
|
4214
|
+
function getProviderOptionsName(provider) {
|
|
4215
|
+
const dotIndex = provider.indexOf(".");
|
|
4216
|
+
return dotIndex === -1 ? provider : provider.substring(0, dotIndex);
|
|
4217
|
+
}
|
|
3630
4218
|
var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
3631
4219
|
constructor(modelId, config) {
|
|
3632
4220
|
this.specificationVersion = "v4";
|
|
3633
|
-
var _a;
|
|
3634
4221
|
this.modelId = modelId;
|
|
3635
4222
|
this.config = config;
|
|
3636
|
-
this.generateId =
|
|
4223
|
+
this.generateId = config.generateId ?? generateId;
|
|
3637
4224
|
}
|
|
3638
4225
|
static [WORKFLOW_SERIALIZE](model) {
|
|
3639
4226
|
return serializeModelOptions({
|
|
@@ -3650,38 +4237,31 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3650
4237
|
get provider() {
|
|
3651
4238
|
return this.config.provider;
|
|
3652
4239
|
}
|
|
3653
|
-
/**
|
|
3654
|
-
* Extracts the dynamic provider name from the config.provider string.
|
|
3655
|
-
* e.g., 'my-custom-anthropic.messages' -> 'my-custom-anthropic'
|
|
3656
|
-
*/
|
|
3657
|
-
get providerOptionsName() {
|
|
3658
|
-
const provider = this.config.provider;
|
|
3659
|
-
const dotIndex = provider.indexOf(".");
|
|
3660
|
-
return dotIndex === -1 ? provider : provider.substring(0, dotIndex);
|
|
3661
|
-
}
|
|
3662
4240
|
get supportedUrls() {
|
|
3663
|
-
|
|
3664
|
-
return (_c = (_b = (_a = this.config).supportedUrls) == null ? void 0 : _b.call(_a)) != null ? _c : {};
|
|
4241
|
+
return this.config.supportedUrls?.() ?? {};
|
|
3665
4242
|
}
|
|
3666
|
-
async
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
4243
|
+
static async prepareRequest({
|
|
4244
|
+
modelId,
|
|
4245
|
+
config,
|
|
4246
|
+
options: {
|
|
4247
|
+
userSuppliedBetas,
|
|
4248
|
+
prompt,
|
|
4249
|
+
maxOutputTokens,
|
|
4250
|
+
temperature,
|
|
4251
|
+
topP,
|
|
4252
|
+
topK,
|
|
4253
|
+
frequencyPenalty,
|
|
4254
|
+
presencePenalty,
|
|
4255
|
+
stopSequences,
|
|
4256
|
+
responseFormat,
|
|
4257
|
+
seed,
|
|
4258
|
+
tools,
|
|
4259
|
+
toolChoice,
|
|
4260
|
+
reasoning,
|
|
4261
|
+
providerOptions,
|
|
4262
|
+
stream
|
|
4263
|
+
}
|
|
3683
4264
|
}) {
|
|
3684
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l;
|
|
3685
4265
|
const warnings = [];
|
|
3686
4266
|
if (frequencyPenalty != null) {
|
|
3687
4267
|
warnings.push({ type: "unsupported", feature: "frequencyPenalty" });
|
|
@@ -3707,7 +4287,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3707
4287
|
});
|
|
3708
4288
|
temperature = 0;
|
|
3709
4289
|
}
|
|
3710
|
-
if (
|
|
4290
|
+
if (responseFormat?.type === "json") {
|
|
3711
4291
|
if (responseFormat.schema == null) {
|
|
3712
4292
|
warnings.push({
|
|
3713
4293
|
type: "unsupported",
|
|
@@ -3716,7 +4296,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3716
4296
|
});
|
|
3717
4297
|
}
|
|
3718
4298
|
}
|
|
3719
|
-
const providerOptionsName =
|
|
4299
|
+
const providerOptionsName = getProviderOptionsName(config.provider);
|
|
3720
4300
|
const canonicalOptions = await parseProviderOptions2({
|
|
3721
4301
|
provider: "anthropic",
|
|
3722
4302
|
providerOptions,
|
|
@@ -3730,8 +4310,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3730
4310
|
const usedCustomProviderKey = customProviderOptions != null;
|
|
3731
4311
|
const anthropicOptions = Object.assign(
|
|
3732
4312
|
{},
|
|
3733
|
-
canonicalOptions
|
|
3734
|
-
customProviderOptions
|
|
4313
|
+
canonicalOptions ?? {},
|
|
4314
|
+
customProviderOptions ?? {}
|
|
3735
4315
|
);
|
|
3736
4316
|
const {
|
|
3737
4317
|
maxOutputTokens: maxOutputTokensForModel,
|
|
@@ -3740,13 +4320,16 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3740
4320
|
rejectsSamplingParameters,
|
|
3741
4321
|
supportsXhighEffort,
|
|
3742
4322
|
rejectsThinkingDisabledAboveHighEffort,
|
|
4323
|
+
rejectsThinkingDisabled,
|
|
4324
|
+
rejectsForcedToolUse,
|
|
4325
|
+
supportsBetweenToolsThinking,
|
|
3743
4326
|
isKnownModel
|
|
3744
|
-
} = getModelCapabilities(
|
|
4327
|
+
} = getModelCapabilities(modelId);
|
|
3745
4328
|
if (!isKnownModel && maxOutputTokens == null) {
|
|
3746
4329
|
warnings.push({
|
|
3747
4330
|
type: "compatibility",
|
|
3748
4331
|
feature: "maxOutputTokens",
|
|
3749
|
-
details: `The model "${
|
|
4332
|
+
details: `The model "${modelId}" is unknown. The max output tokens have been limited to ${maxOutputTokensForModel}. Set maxOutputTokens explicitly to override this limit.`
|
|
3750
4333
|
});
|
|
3751
4334
|
}
|
|
3752
4335
|
if (rejectsSamplingParameters) {
|
|
@@ -3754,7 +4337,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3754
4337
|
warnings.push({
|
|
3755
4338
|
type: "unsupported",
|
|
3756
4339
|
feature: "temperature",
|
|
3757
|
-
details: `temperature is not supported by ${
|
|
4340
|
+
details: `temperature is not supported by ${modelId} and will be ignored`
|
|
3758
4341
|
});
|
|
3759
4342
|
temperature = void 0;
|
|
3760
4343
|
}
|
|
@@ -3762,7 +4345,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3762
4345
|
warnings.push({
|
|
3763
4346
|
type: "unsupported",
|
|
3764
4347
|
feature: "topK",
|
|
3765
|
-
details: `topK is not supported by ${
|
|
4348
|
+
details: `topK is not supported by ${modelId} and will be ignored`
|
|
3766
4349
|
});
|
|
3767
4350
|
topK = void 0;
|
|
3768
4351
|
}
|
|
@@ -3770,30 +4353,45 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3770
4353
|
warnings.push({
|
|
3771
4354
|
type: "unsupported",
|
|
3772
4355
|
feature: "topP",
|
|
3773
|
-
details: `topP is not supported by ${
|
|
4356
|
+
details: `topP is not supported by ${modelId} and will be ignored`
|
|
3774
4357
|
});
|
|
3775
4358
|
topP = void 0;
|
|
3776
4359
|
}
|
|
3777
4360
|
}
|
|
3778
|
-
const isAnthropicModel = isKnownModel ||
|
|
3779
|
-
const supportsStructuredOutput = (
|
|
3780
|
-
const supportsStrictTools = (
|
|
3781
|
-
const structureOutputMode =
|
|
3782
|
-
|
|
3783
|
-
|
|
4361
|
+
const isAnthropicModel = isKnownModel || modelId.includes("claude-");
|
|
4362
|
+
const supportsStructuredOutput = (config.supportsNativeStructuredOutput ?? true) && modelSupportsStructuredOutput;
|
|
4363
|
+
const supportsStrictTools = (config.supportsStrictTools ?? true) && modelSupportsStructuredOutput;
|
|
4364
|
+
const structureOutputMode = anthropicOptions?.structuredOutputMode ?? "auto";
|
|
4365
|
+
let useStructuredOutput = structureOutputMode === "outputFormat" || structureOutputMode === "auto" && supportsStructuredOutput;
|
|
4366
|
+
if (!useStructuredOutput && rejectsForcedToolUse && supportsStructuredOutput && responseFormat?.type === "json" && responseFormat.schema != null) {
|
|
4367
|
+
warnings.push({
|
|
4368
|
+
type: "unsupported",
|
|
4369
|
+
feature: "providerOptions.anthropic.structuredOutputMode",
|
|
4370
|
+
details: `structuredOutputMode 'jsonTool' is not supported by ${modelId} because it rejects forced tool use. Using 'outputFormat' instead.`
|
|
4371
|
+
});
|
|
4372
|
+
useStructuredOutput = true;
|
|
4373
|
+
}
|
|
4374
|
+
const jsonResponseTool = responseFormat?.type === "json" && responseFormat.schema != null && !useStructuredOutput ? {
|
|
3784
4375
|
type: "function",
|
|
3785
4376
|
name: "json",
|
|
3786
4377
|
description: "Respond with a JSON object.",
|
|
3787
4378
|
inputSchema: responseFormat.schema
|
|
3788
4379
|
} : void 0;
|
|
3789
|
-
if (jsonResponseTool != null &&
|
|
4380
|
+
if (jsonResponseTool != null && anthropicOptions?.disableParallelToolUse === false) {
|
|
3790
4381
|
warnings.push({
|
|
3791
4382
|
type: "unsupported",
|
|
3792
4383
|
feature: "providerOptions.anthropic.disableParallelToolUse",
|
|
3793
4384
|
details: "`disableParallelToolUse: false` is ignored when using the JSON response tool. Parallel tool use is disabled to ensure a single coherent JSON tool call."
|
|
3794
4385
|
});
|
|
3795
4386
|
}
|
|
3796
|
-
const contextManagement = anthropicOptions
|
|
4387
|
+
const contextManagement = anthropicOptions?.contextManagement;
|
|
4388
|
+
const compaction = anthropicOptions?.compaction;
|
|
4389
|
+
if (contextManagement != null && compaction != null) {
|
|
4390
|
+
throw new InvalidArgumentError({
|
|
4391
|
+
argument: "providerOptions",
|
|
4392
|
+
message: "Anthropic provider options `compaction` and `contextManagement` cannot be used together."
|
|
4393
|
+
});
|
|
4394
|
+
}
|
|
3797
4395
|
const cacheControlValidator = new CacheControlValidator();
|
|
3798
4396
|
const toolNameMapping = createToolNameMapping({
|
|
3799
4397
|
tools,
|
|
@@ -3803,6 +4401,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3803
4401
|
"anthropic.code_execution_20260120": "code_execution",
|
|
3804
4402
|
"anthropic.computer_20241022": "computer",
|
|
3805
4403
|
"anthropic.computer_20250124": "computer",
|
|
4404
|
+
"anthropic.computer_20251124": "computer",
|
|
4405
|
+
"anthropic.computer_toolset_20260801": "computer",
|
|
3806
4406
|
"anthropic.text_editor_20241022": "str_replace_editor",
|
|
3807
4407
|
"anthropic.text_editor_20250124": "str_replace_editor",
|
|
3808
4408
|
"anthropic.text_editor_20250429": "str_replace_based_edit_tool",
|
|
@@ -3812,25 +4412,32 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3812
4412
|
"anthropic.memory_20250818": "memory",
|
|
3813
4413
|
"anthropic.web_search_20250305": "web_search",
|
|
3814
4414
|
"anthropic.web_search_20260209": "web_search",
|
|
4415
|
+
"anthropic.web_search_20260318": "web_search",
|
|
3815
4416
|
"anthropic.web_fetch_20250910": "web_fetch",
|
|
3816
4417
|
"anthropic.web_fetch_20260209": "web_fetch",
|
|
4418
|
+
"anthropic.web_fetch_20260318": "web_fetch",
|
|
3817
4419
|
"anthropic.tool_search_regex_20251119": "tool_search_tool_regex",
|
|
3818
4420
|
"anthropic.tool_search_bm25_20251119": "tool_search_tool_bm25",
|
|
3819
4421
|
"anthropic.advisor_20260301": "advisor"
|
|
3820
4422
|
}
|
|
3821
4423
|
});
|
|
4424
|
+
const toolsetNames = getAnthropicToolsetNames(tools);
|
|
3822
4425
|
const { prompt: messagesPrompt, betas } = await convertToAnthropicPrompt({
|
|
3823
4426
|
prompt,
|
|
3824
|
-
sendReasoning:
|
|
4427
|
+
sendReasoning: anthropicOptions?.sendReasoning ?? true,
|
|
3825
4428
|
warnings,
|
|
3826
4429
|
cacheControlValidator,
|
|
3827
|
-
toolNameMapping
|
|
4430
|
+
toolNameMapping,
|
|
4431
|
+
toolsetNames
|
|
3828
4432
|
});
|
|
3829
|
-
if (isCustomReasoning(reasoning) &&
|
|
4433
|
+
if (isCustomReasoning(reasoning) && anthropicOptions?.effort == null) {
|
|
3830
4434
|
const reasoningConfig = resolveAnthropicReasoningConfig({
|
|
3831
4435
|
reasoning,
|
|
4436
|
+
modelId,
|
|
3832
4437
|
supportsAdaptiveThinking,
|
|
3833
4438
|
supportsXhighEffort,
|
|
4439
|
+
rejectsThinkingDisabled,
|
|
4440
|
+
supportsBetweenToolsThinking,
|
|
3834
4441
|
maxOutputTokensForModel,
|
|
3835
4442
|
warnings
|
|
3836
4443
|
});
|
|
@@ -3838,28 +4445,62 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3838
4445
|
if (anthropicOptions.thinking == null) {
|
|
3839
4446
|
anthropicOptions.thinking = reasoningConfig.thinking;
|
|
3840
4447
|
}
|
|
3841
|
-
if (reasoningConfig.effort != null &&
|
|
4448
|
+
if (reasoningConfig.effort != null && anthropicOptions.thinking?.type !== "disabled") {
|
|
3842
4449
|
anthropicOptions.effort = reasoningConfig.effort;
|
|
3843
4450
|
}
|
|
3844
4451
|
}
|
|
3845
4452
|
}
|
|
3846
|
-
if (
|
|
4453
|
+
if (rejectsThinkingDisabled && anthropicOptions?.thinking != null) {
|
|
4454
|
+
const thinking = anthropicOptions.thinking;
|
|
4455
|
+
if (thinking.type === "disabled" && supportsBetweenToolsThinking) {
|
|
4456
|
+
warnings.push({
|
|
4457
|
+
type: "unsupported",
|
|
4458
|
+
feature: "providerOptions.anthropic.thinking",
|
|
4459
|
+
details: `thinking cannot be disabled for ${modelId}. Using 'between_tools' thinking, the lowest thinking setting, instead.`
|
|
4460
|
+
});
|
|
4461
|
+
anthropicOptions.thinking = { type: "between_tools" };
|
|
4462
|
+
} else if (thinking.type === "disabled") {
|
|
4463
|
+
warnings.push({
|
|
4464
|
+
type: "unsupported",
|
|
4465
|
+
feature: "providerOptions.anthropic.thinking",
|
|
4466
|
+
details: `thinking cannot be disabled for ${modelId}; it always uses adaptive thinking. The thinking setting has been removed. Lower 'effort' to reduce thinking.`
|
|
4467
|
+
});
|
|
4468
|
+
anthropicOptions.thinking = void 0;
|
|
4469
|
+
} else if (thinking.type === "enabled") {
|
|
4470
|
+
warnings.push({
|
|
4471
|
+
type: "unsupported",
|
|
4472
|
+
feature: "providerOptions.anthropic.thinking",
|
|
4473
|
+
details: `budget-based thinking is not supported by ${modelId}; it always uses adaptive thinking. Using adaptive thinking instead. Use 'effort' to control how much the model thinks.`
|
|
4474
|
+
});
|
|
4475
|
+
anthropicOptions.thinking = { type: "adaptive" };
|
|
4476
|
+
}
|
|
4477
|
+
}
|
|
4478
|
+
if (rejectsThinkingDisabledAboveHighEffort && anthropicOptions?.thinking?.type === "disabled" && (anthropicOptions.effort === "xhigh" || anthropicOptions.effort === "max")) {
|
|
4479
|
+
warnings.push({
|
|
4480
|
+
type: "unsupported",
|
|
4481
|
+
feature: "providerOptions.anthropic.effort",
|
|
4482
|
+
details: `effort '${anthropicOptions.effort}' is not supported by ${modelId} when thinking is disabled. The effort has been lowered to 'high'.`
|
|
4483
|
+
});
|
|
4484
|
+
anthropicOptions.effort = "high";
|
|
4485
|
+
}
|
|
4486
|
+
if (anthropicOptions?.thinking?.type === "between_tools" && (anthropicOptions.effort === "xhigh" || anthropicOptions.effort === "max")) {
|
|
3847
4487
|
warnings.push({
|
|
3848
4488
|
type: "unsupported",
|
|
3849
4489
|
feature: "providerOptions.anthropic.effort",
|
|
3850
|
-
details: `effort '${anthropicOptions.effort}' is not supported
|
|
4490
|
+
details: `effort '${anthropicOptions.effort}' is not supported with 'between_tools' thinking. The effort has been lowered to 'high'.`
|
|
3851
4491
|
});
|
|
3852
4492
|
anthropicOptions.effort = "high";
|
|
3853
4493
|
}
|
|
3854
|
-
const thinkingType =
|
|
3855
|
-
const isThinking = thinkingType === "enabled" || thinkingType === "adaptive";
|
|
3856
|
-
const
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
const
|
|
4494
|
+
const thinkingType = anthropicOptions?.thinking?.type;
|
|
4495
|
+
const isThinking = thinkingType === "enabled" || thinkingType === "adaptive" || thinkingType === "between_tools";
|
|
4496
|
+
const thinkingBlockBinding = anthropicOptions?.thinking != null && "blockBinding" in anthropicOptions.thinking ? anthropicOptions.thinking.blockBinding : void 0;
|
|
4497
|
+
const sendThinking = isThinking || thinkingType === "disabled" || thinkingBlockBinding != null;
|
|
4498
|
+
let thinkingBudget = thinkingType === "enabled" ? anthropicOptions?.thinking?.budgetTokens : void 0;
|
|
4499
|
+
const thinkingDisplay = thinkingType === "adaptive" ? anthropicOptions?.thinking?.display : void 0;
|
|
4500
|
+
const maxTokens = maxOutputTokens ?? maxOutputTokensForModel;
|
|
3860
4501
|
const baseArgs = {
|
|
3861
4502
|
// model id:
|
|
3862
|
-
model:
|
|
4503
|
+
model: modelId,
|
|
3863
4504
|
// standardized settings:
|
|
3864
4505
|
max_tokens: maxTokens,
|
|
3865
4506
|
temperature,
|
|
@@ -3869,17 +4510,22 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3869
4510
|
// provider specific settings:
|
|
3870
4511
|
...sendThinking && {
|
|
3871
4512
|
thinking: {
|
|
3872
|
-
type: thinkingType,
|
|
4513
|
+
...thinkingType != null && { type: thinkingType },
|
|
3873
4514
|
...thinkingBudget != null && { budget_tokens: thinkingBudget },
|
|
3874
|
-
...thinkingDisplay != null && { display: thinkingDisplay }
|
|
4515
|
+
...thinkingDisplay != null && { display: thinkingDisplay },
|
|
4516
|
+
...thinkingBlockBinding != null && {
|
|
4517
|
+
block_binding: {
|
|
4518
|
+
prefix_mismatch_behavior: thinkingBlockBinding.prefixMismatchBehavior
|
|
4519
|
+
}
|
|
4520
|
+
}
|
|
3875
4521
|
}
|
|
3876
4522
|
},
|
|
3877
|
-
...(
|
|
4523
|
+
...(anthropicOptions?.effort || anthropicOptions?.taskBudget || useStructuredOutput && responseFormat?.type === "json" && responseFormat.schema != null) && {
|
|
3878
4524
|
output_config: {
|
|
3879
|
-
...
|
|
4525
|
+
...anthropicOptions?.effort && {
|
|
3880
4526
|
effort: anthropicOptions.effort
|
|
3881
4527
|
},
|
|
3882
|
-
...
|
|
4528
|
+
...anthropicOptions?.taskBudget && {
|
|
3883
4529
|
task_budget: {
|
|
3884
4530
|
type: anthropicOptions.taskBudget.type,
|
|
3885
4531
|
total: anthropicOptions.taskBudget.total,
|
|
@@ -3888,7 +4534,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3888
4534
|
}
|
|
3889
4535
|
}
|
|
3890
4536
|
},
|
|
3891
|
-
...useStructuredOutput &&
|
|
4537
|
+
...useStructuredOutput && responseFormat?.type === "json" && responseFormat.schema != null && {
|
|
3892
4538
|
format: {
|
|
3893
4539
|
type: "json_schema",
|
|
3894
4540
|
schema: sanitizeJsonSchema(responseFormat.schema)
|
|
@@ -3896,23 +4542,26 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3896
4542
|
}
|
|
3897
4543
|
}
|
|
3898
4544
|
},
|
|
3899
|
-
...
|
|
4545
|
+
...anthropicOptions?.speed && {
|
|
3900
4546
|
speed: anthropicOptions.speed
|
|
3901
4547
|
},
|
|
3902
|
-
...
|
|
4548
|
+
...anthropicOptions?.serviceTier && {
|
|
4549
|
+
service_tier: anthropicOptions.serviceTier
|
|
4550
|
+
},
|
|
4551
|
+
...anthropicOptions?.inferenceGeo && {
|
|
3903
4552
|
inference_geo: anthropicOptions.inferenceGeo
|
|
3904
4553
|
},
|
|
3905
|
-
...
|
|
4554
|
+
...anthropicOptions?.fallbacks != null && (anthropicOptions.fallbacks === "default" || anthropicOptions.fallbacks.length > 0) && {
|
|
3906
4555
|
fallbacks: anthropicOptions.fallbacks
|
|
3907
4556
|
},
|
|
3908
|
-
...
|
|
4557
|
+
...anthropicOptions?.cacheControl && {
|
|
3909
4558
|
cache_control: anthropicOptions.cacheControl
|
|
3910
4559
|
},
|
|
3911
|
-
...
|
|
4560
|
+
...anthropicOptions?.metadata?.userId != null && {
|
|
3912
4561
|
metadata: { user_id: anthropicOptions.metadata.userId }
|
|
3913
4562
|
},
|
|
3914
4563
|
// mcp servers:
|
|
3915
|
-
...
|
|
4564
|
+
...anthropicOptions?.mcpServers && anthropicOptions.mcpServers.length > 0 && {
|
|
3916
4565
|
mcp_servers: anthropicOptions.mcpServers.map((server) => ({
|
|
3917
4566
|
type: server.type,
|
|
3918
4567
|
name: server.name,
|
|
@@ -3925,7 +4574,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3925
4574
|
}))
|
|
3926
4575
|
},
|
|
3927
4576
|
// container: For programmatic tool calling (just an ID string) or agent skills (object with id and skills)
|
|
3928
|
-
...
|
|
4577
|
+
...anthropicOptions?.container && {
|
|
3929
4578
|
container: anthropicOptions.container.skills && anthropicOptions.container.skills.length > 0 ? (
|
|
3930
4579
|
// Object format when skills are provided (agent skills feature)
|
|
3931
4580
|
{
|
|
@@ -3947,6 +4596,22 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
3947
4596
|
// prompt:
|
|
3948
4597
|
system: messagesPrompt.system,
|
|
3949
4598
|
messages: messagesPrompt.messages,
|
|
4599
|
+
...anthropicOptions?.safeguards && anthropicOptions.safeguards.length > 0 && {
|
|
4600
|
+
safeguards: anthropicOptions.safeguards.map((safeguard) => ({
|
|
4601
|
+
type: safeguard.type,
|
|
4602
|
+
...safeguard.classifierContext !== void 0 && {
|
|
4603
|
+
classifier_context: safeguard.classifierContext
|
|
4604
|
+
}
|
|
4605
|
+
}))
|
|
4606
|
+
},
|
|
4607
|
+
...compaction && {
|
|
4608
|
+
compaction: {
|
|
4609
|
+
type: compaction.type,
|
|
4610
|
+
...compaction.instructions !== void 0 && {
|
|
4611
|
+
instructions: compaction.instructions
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
},
|
|
3950
4615
|
...contextManagement && {
|
|
3951
4616
|
context_management: {
|
|
3952
4617
|
edits: contextManagement.edits.map((edit) => {
|
|
@@ -4035,7 +4700,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4035
4700
|
details: "topP is not supported when thinking is enabled"
|
|
4036
4701
|
});
|
|
4037
4702
|
}
|
|
4038
|
-
baseArgs.max_tokens = maxTokens + (thinkingBudget
|
|
4703
|
+
baseArgs.max_tokens = maxTokens + (thinkingBudget ?? 0);
|
|
4039
4704
|
} else {
|
|
4040
4705
|
if (isAnthropicModel && topP != null && temperature != null) {
|
|
4041
4706
|
warnings.push({
|
|
@@ -4051,45 +4716,57 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4051
4716
|
warnings.push({
|
|
4052
4717
|
type: "unsupported",
|
|
4053
4718
|
feature: "maxOutputTokens",
|
|
4054
|
-
details: `${baseArgs.max_tokens} (maxOutputTokens + thinkingBudget) is greater than ${
|
|
4719
|
+
details: `${baseArgs.max_tokens} (maxOutputTokens + thinkingBudget) is greater than ${modelId} ${maxOutputTokensForModel} max output tokens. The max output tokens have been limited to ${maxOutputTokensForModel}.`
|
|
4055
4720
|
});
|
|
4056
4721
|
}
|
|
4057
4722
|
baseArgs.max_tokens = maxOutputTokensForModel;
|
|
4058
4723
|
}
|
|
4059
|
-
if (
|
|
4724
|
+
if (anthropicOptions?.mcpServers && anthropicOptions.mcpServers.length > 0) {
|
|
4060
4725
|
betas.add("mcp-client-2025-04-04");
|
|
4061
4726
|
}
|
|
4727
|
+
if (anthropicOptions?.safeguards && anthropicOptions.safeguards.length > 0) {
|
|
4728
|
+
betas.add("dangerous-tool-use-2026-09-03");
|
|
4729
|
+
}
|
|
4730
|
+
if (compaction) {
|
|
4731
|
+
betas.add("compact-2026-09-04");
|
|
4732
|
+
}
|
|
4062
4733
|
if (contextManagement) {
|
|
4063
4734
|
betas.add("context-management-2025-06-27");
|
|
4064
4735
|
if (contextManagement.edits.some((e) => e.type === "compact_20260112")) {
|
|
4065
4736
|
betas.add("compact-2026-01-12");
|
|
4066
4737
|
}
|
|
4067
4738
|
}
|
|
4068
|
-
if (
|
|
4739
|
+
if (anthropicOptions?.container && anthropicOptions.container.skills && anthropicOptions.container.skills.length > 0) {
|
|
4069
4740
|
betas.add("code-execution-2025-08-25");
|
|
4070
4741
|
betas.add("skills-2025-10-02");
|
|
4071
4742
|
betas.add("files-api-2025-04-14");
|
|
4072
|
-
if (!
|
|
4743
|
+
if (!tools?.some(
|
|
4073
4744
|
(tool) => tool.type === "provider" && (tool.id === "anthropic.code_execution_20250825" || tool.id === "anthropic.code_execution_20260120")
|
|
4074
|
-
))
|
|
4745
|
+
)) {
|
|
4075
4746
|
warnings.push({
|
|
4076
4747
|
type: "other",
|
|
4077
4748
|
message: "code execution tool is required when using skills"
|
|
4078
4749
|
});
|
|
4079
4750
|
}
|
|
4080
4751
|
}
|
|
4081
|
-
if (anthropicOptions
|
|
4752
|
+
if (anthropicOptions?.taskBudget) {
|
|
4082
4753
|
betas.add("task-budgets-2026-03-13");
|
|
4083
4754
|
}
|
|
4084
|
-
if (
|
|
4755
|
+
if (anthropicOptions?.speed === "fast") {
|
|
4085
4756
|
betas.add("fast-mode-2026-02-01");
|
|
4086
4757
|
}
|
|
4087
|
-
if (
|
|
4758
|
+
if (thinkingDisplay === "updates") {
|
|
4759
|
+
betas.add("thinking-display-updates-2026-08-18");
|
|
4760
|
+
}
|
|
4761
|
+
if (thinkingBlockBinding != null) {
|
|
4762
|
+
betas.add("thinking-binding-controls-2026-08-01");
|
|
4763
|
+
}
|
|
4764
|
+
if (anthropicOptions?.fallbacks === "default") {
|
|
4088
4765
|
betas.add("server-side-fallback-2026-07-01");
|
|
4089
|
-
} else if (
|
|
4766
|
+
} else if (anthropicOptions?.fallbacks && anthropicOptions.fallbacks.length > 0) {
|
|
4090
4767
|
betas.add("server-side-fallback-2026-06-01");
|
|
4091
4768
|
}
|
|
4092
|
-
const defaultEagerInputStreaming = stream && (
|
|
4769
|
+
const defaultEagerInputStreaming = stream && (anthropicOptions?.toolStreaming ?? true);
|
|
4093
4770
|
const {
|
|
4094
4771
|
tools: anthropicTools2,
|
|
4095
4772
|
toolChoice: anthropicToolChoice,
|
|
@@ -4097,21 +4774,23 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4097
4774
|
betas: toolsBetas
|
|
4098
4775
|
} = await prepareTools(
|
|
4099
4776
|
jsonResponseTool != null ? {
|
|
4100
|
-
tools: [...tools
|
|
4777
|
+
tools: [...tools ?? [], jsonResponseTool],
|
|
4101
4778
|
toolChoice: { type: "required" },
|
|
4102
4779
|
disableParallelToolUse: true,
|
|
4103
4780
|
cacheControlValidator,
|
|
4104
4781
|
supportsStructuredOutput: false,
|
|
4105
4782
|
supportsStrictTools,
|
|
4106
|
-
defaultEagerInputStreaming
|
|
4783
|
+
defaultEagerInputStreaming,
|
|
4784
|
+
rejectsForcedToolUse
|
|
4107
4785
|
} : {
|
|
4108
|
-
tools: tools
|
|
4786
|
+
tools: tools ?? [],
|
|
4109
4787
|
toolChoice,
|
|
4110
|
-
disableParallelToolUse: anthropicOptions
|
|
4788
|
+
disableParallelToolUse: anthropicOptions?.disableParallelToolUse,
|
|
4111
4789
|
cacheControlValidator,
|
|
4112
4790
|
supportsStructuredOutput,
|
|
4113
4791
|
supportsStrictTools,
|
|
4114
|
-
defaultEagerInputStreaming
|
|
4792
|
+
defaultEagerInputStreaming,
|
|
4793
|
+
rejectsForcedToolUse
|
|
4115
4794
|
}
|
|
4116
4795
|
);
|
|
4117
4796
|
const cacheWarnings = cacheControlValidator.getWarnings();
|
|
@@ -4128,7 +4807,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4128
4807
|
...betas,
|
|
4129
4808
|
...toolsBetas,
|
|
4130
4809
|
...userSuppliedBetas,
|
|
4131
|
-
...
|
|
4810
|
+
...anthropicOptions?.anthropicBeta ?? []
|
|
4132
4811
|
]),
|
|
4133
4812
|
usesJsonResponseTool: jsonResponseTool != null,
|
|
4134
4813
|
toolNameMapping,
|
|
@@ -4136,6 +4815,13 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4136
4815
|
usedCustomProviderKey
|
|
4137
4816
|
};
|
|
4138
4817
|
}
|
|
4818
|
+
getArgs(options) {
|
|
4819
|
+
return _AnthropicLanguageModel.prepareRequest({
|
|
4820
|
+
modelId: this.modelId,
|
|
4821
|
+
config: this.config,
|
|
4822
|
+
options
|
|
4823
|
+
});
|
|
4824
|
+
}
|
|
4139
4825
|
async getHeaders({
|
|
4140
4826
|
betas,
|
|
4141
4827
|
headers
|
|
@@ -4147,10 +4833,9 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4147
4833
|
);
|
|
4148
4834
|
}
|
|
4149
4835
|
async getBetasFromHeaders(requestHeaders) {
|
|
4150
|
-
var _a, _b;
|
|
4151
4836
|
const configHeaders = this.config.headers ? await resolve(this.config.headers) : void 0;
|
|
4152
|
-
const configBetaHeader =
|
|
4153
|
-
const requestBetaHeader =
|
|
4837
|
+
const configBetaHeader = configHeaders?.["anthropic-beta"] ?? "";
|
|
4838
|
+
const requestBetaHeader = requestHeaders?.["anthropic-beta"] ?? "";
|
|
4154
4839
|
return new Set(
|
|
4155
4840
|
[
|
|
4156
4841
|
...configBetaHeader.toLowerCase().split(","),
|
|
@@ -4159,38 +4844,33 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4159
4844
|
);
|
|
4160
4845
|
}
|
|
4161
4846
|
buildRequestUrl(isStreaming) {
|
|
4162
|
-
|
|
4163
|
-
return (_c = (_b = (_a = this.config).buildRequestUrl) == null ? void 0 : _b.call(_a, this.config.baseURL, isStreaming)) != null ? _c : `${this.config.baseURL}/messages`;
|
|
4847
|
+
return this.config.buildRequestUrl?.(this.config.baseURL, isStreaming) ?? `${this.config.baseURL}/messages`;
|
|
4164
4848
|
}
|
|
4165
4849
|
transformRequestBody(args, betas) {
|
|
4166
|
-
|
|
4167
|
-
return (_c = (_b = (_a = this.config).transformRequestBody) == null ? void 0 : _b.call(_a, args, betas)) != null ? _c : args;
|
|
4850
|
+
return this.config.transformRequestBody?.(args, betas) ?? args;
|
|
4168
4851
|
}
|
|
4169
4852
|
extractCitationDocuments(prompt) {
|
|
4170
4853
|
const isCitationPart = (part) => {
|
|
4171
|
-
var _a, _b;
|
|
4172
4854
|
if (part.type !== "file") {
|
|
4173
4855
|
return false;
|
|
4174
4856
|
}
|
|
4175
4857
|
if (part.mediaType !== "application/pdf" && part.mediaType !== "text/plain") {
|
|
4176
4858
|
return false;
|
|
4177
4859
|
}
|
|
4178
|
-
const anthropic =
|
|
4179
|
-
const citationsConfig = anthropic
|
|
4180
|
-
return
|
|
4860
|
+
const anthropic = part.providerOptions?.anthropic;
|
|
4861
|
+
const citationsConfig = anthropic?.citations;
|
|
4862
|
+
return citationsConfig?.enabled ?? false;
|
|
4181
4863
|
};
|
|
4182
4864
|
return prompt.filter((message) => message.role === "user").flatMap((message) => message.content).filter(isCitationPart).map((part) => {
|
|
4183
|
-
var _a;
|
|
4184
4865
|
const filePart = part;
|
|
4185
4866
|
return {
|
|
4186
|
-
title:
|
|
4867
|
+
title: filePart.filename ?? "Untitled Document",
|
|
4187
4868
|
filename: filePart.filename,
|
|
4188
4869
|
mediaType: filePart.mediaType
|
|
4189
4870
|
};
|
|
4190
4871
|
});
|
|
4191
4872
|
}
|
|
4192
4873
|
async doGenerate(options) {
|
|
4193
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
4194
4874
|
const {
|
|
4195
4875
|
args,
|
|
4196
4876
|
warnings,
|
|
@@ -4207,9 +4887,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4207
4887
|
const citationDocuments = [
|
|
4208
4888
|
...this.extractCitationDocuments(options.prompt)
|
|
4209
4889
|
];
|
|
4210
|
-
const markCodeExecutionDynamic =
|
|
4211
|
-
args.tools
|
|
4212
|
-
);
|
|
4890
|
+
const markCodeExecutionDynamic = hasDynamicFilteringWebToolWithoutCodeExecution(args.tools);
|
|
4213
4891
|
const {
|
|
4214
4892
|
responseHeaders,
|
|
4215
4893
|
value: response,
|
|
@@ -4233,7 +4911,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4233
4911
|
switch (part.type) {
|
|
4234
4912
|
case "text": {
|
|
4235
4913
|
if (!usesJsonResponseTool) {
|
|
4236
|
-
const webSearchCitations =
|
|
4914
|
+
const webSearchCitations = part.citations?.filter(
|
|
4237
4915
|
(citation) => citation.type === "web_search_result_location"
|
|
4238
4916
|
);
|
|
4239
4917
|
content.push({
|
|
@@ -4286,13 +4964,27 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4286
4964
|
});
|
|
4287
4965
|
break;
|
|
4288
4966
|
}
|
|
4967
|
+
case "container_upload": {
|
|
4968
|
+
content.push({
|
|
4969
|
+
type: "custom",
|
|
4970
|
+
kind: "anthropic.container_upload",
|
|
4971
|
+
providerMetadata: { anthropic: { fileId: part.file_id } }
|
|
4972
|
+
});
|
|
4973
|
+
break;
|
|
4974
|
+
}
|
|
4289
4975
|
case "compaction": {
|
|
4976
|
+
if (!part.content) {
|
|
4977
|
+
break;
|
|
4978
|
+
}
|
|
4290
4979
|
content.push({
|
|
4291
4980
|
type: "text",
|
|
4292
4981
|
text: part.content,
|
|
4293
4982
|
providerMetadata: {
|
|
4294
4983
|
anthropic: {
|
|
4295
|
-
type: "compaction"
|
|
4984
|
+
type: "compaction",
|
|
4985
|
+
...part.signature != null && {
|
|
4986
|
+
signature: part.signature
|
|
4987
|
+
}
|
|
4296
4988
|
}
|
|
4297
4989
|
}
|
|
4298
4990
|
});
|
|
@@ -4306,6 +4998,24 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4306
4998
|
type: "text",
|
|
4307
4999
|
text: JSON.stringify(part.input)
|
|
4308
5000
|
});
|
|
5001
|
+
} else if (part.toolset_name != null) {
|
|
5002
|
+
content.push({
|
|
5003
|
+
type: "tool-call",
|
|
5004
|
+
toolCallId: part.id,
|
|
5005
|
+
toolName: toolNameMapping.toCustomToolName(part.toolset_name),
|
|
5006
|
+
input: JSON.stringify(
|
|
5007
|
+
toToolsetMemberInput({
|
|
5008
|
+
memberName: part.name,
|
|
5009
|
+
input: part.input
|
|
5010
|
+
})
|
|
5011
|
+
),
|
|
5012
|
+
providerMetadata: {
|
|
5013
|
+
anthropic: {
|
|
5014
|
+
toolsetName: part.toolset_name,
|
|
5015
|
+
...getAnthropicCallerMetadata(part.caller).providerMetadata?.anthropic
|
|
5016
|
+
}
|
|
5017
|
+
}
|
|
5018
|
+
});
|
|
4309
5019
|
} else {
|
|
4310
5020
|
content.push({
|
|
4311
5021
|
type: "tool-call",
|
|
@@ -4403,7 +5113,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4403
5113
|
case "web_fetch_tool_result": {
|
|
4404
5114
|
if (part.content.type === "web_fetch_result") {
|
|
4405
5115
|
citationDocuments.push({
|
|
4406
|
-
title:
|
|
5116
|
+
title: part.content.content.title ?? part.content.url,
|
|
4407
5117
|
mediaType: part.content.content.source.media_type
|
|
4408
5118
|
});
|
|
4409
5119
|
content.push({
|
|
@@ -4448,16 +5158,13 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4448
5158
|
type: "tool-result",
|
|
4449
5159
|
toolCallId: part.tool_use_id,
|
|
4450
5160
|
toolName: toolNameMapping.toCustomToolName("web_search"),
|
|
4451
|
-
result: part.content.map((result) => {
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
type: result.type
|
|
4459
|
-
};
|
|
4460
|
-
}),
|
|
5161
|
+
result: part.content.map((result) => ({
|
|
5162
|
+
url: result.url,
|
|
5163
|
+
...result.title != null ? { title: result.title } : {},
|
|
5164
|
+
pageAge: result.page_age ?? null,
|
|
5165
|
+
encryptedContent: result.encrypted_content,
|
|
5166
|
+
type: result.type
|
|
5167
|
+
})),
|
|
4461
5168
|
...getAnthropicCallerMetadata(part.caller)
|
|
4462
5169
|
});
|
|
4463
5170
|
for (const result of part.content) {
|
|
@@ -4466,10 +5173,10 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4466
5173
|
sourceType: "url",
|
|
4467
5174
|
id: this.generateId(),
|
|
4468
5175
|
url: result.url,
|
|
4469
|
-
title: result.title,
|
|
5176
|
+
...result.title != null ? { title: result.title } : {},
|
|
4470
5177
|
providerMetadata: {
|
|
4471
5178
|
anthropic: {
|
|
4472
|
-
pageAge:
|
|
5179
|
+
pageAge: result.page_age ?? null
|
|
4473
5180
|
}
|
|
4474
5181
|
}
|
|
4475
5182
|
});
|
|
@@ -4501,7 +5208,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4501
5208
|
stdout: part.content.stdout,
|
|
4502
5209
|
stderr: part.content.stderr,
|
|
4503
5210
|
return_code: part.content.return_code,
|
|
4504
|
-
content:
|
|
5211
|
+
content: part.content.content ?? []
|
|
4505
5212
|
}
|
|
4506
5213
|
});
|
|
4507
5214
|
} else if (part.content.type === "encrypted_code_execution_result") {
|
|
@@ -4514,7 +5221,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4514
5221
|
encrypted_stdout: part.content.encrypted_stdout,
|
|
4515
5222
|
stderr: part.content.stderr,
|
|
4516
5223
|
return_code: part.content.return_code,
|
|
4517
|
-
content:
|
|
5224
|
+
content: part.content.content ?? []
|
|
4518
5225
|
}
|
|
4519
5226
|
});
|
|
4520
5227
|
} else if (part.content.type === "code_execution_tool_result_error") {
|
|
@@ -4642,24 +5349,25 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4642
5349
|
finishReason: response.stop_reason,
|
|
4643
5350
|
isJsonResponseFromTool
|
|
4644
5351
|
}),
|
|
4645
|
-
raw:
|
|
5352
|
+
raw: response.stop_reason ?? void 0
|
|
4646
5353
|
},
|
|
4647
5354
|
usage: convertAnthropicUsage({ usage: response.usage }),
|
|
4648
5355
|
request: { body: args },
|
|
4649
5356
|
response: {
|
|
4650
|
-
id:
|
|
4651
|
-
modelId:
|
|
5357
|
+
id: response.id ?? void 0,
|
|
5358
|
+
modelId: response.model ?? void 0,
|
|
4652
5359
|
headers: responseHeaders,
|
|
4653
5360
|
body: rawResponse
|
|
4654
5361
|
},
|
|
4655
5362
|
warnings,
|
|
4656
5363
|
providerMetadata: (() => {
|
|
4657
|
-
var _a2, _b2, _c2, _d2;
|
|
4658
5364
|
const stopDetails = mapAnthropicStopDetails(response.stop_details);
|
|
4659
5365
|
const anthropicMetadata = {
|
|
4660
5366
|
usage: response.usage,
|
|
4661
|
-
stopSequence:
|
|
5367
|
+
stopSequence: response.stop_sequence ?? null,
|
|
4662
5368
|
...stopDetails != null ? { stopDetails } : {},
|
|
5369
|
+
...response.input_transformations != null ? { inputTransformations: response.input_transformations } : {},
|
|
5370
|
+
...response.safeguard_results != null ? { safeguardResults: response.safeguard_results } : {},
|
|
4663
5371
|
iterations: response.usage.iterations ? response.usage.iterations.map(
|
|
4664
5372
|
(iter) => ({
|
|
4665
5373
|
type: iter.type,
|
|
@@ -4677,15 +5385,15 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4677
5385
|
container: response.container ? {
|
|
4678
5386
|
expiresAt: response.container.expires_at,
|
|
4679
5387
|
id: response.container.id,
|
|
4680
|
-
skills:
|
|
5388
|
+
skills: response.container.skills?.map((skill) => ({
|
|
4681
5389
|
type: skill.type,
|
|
4682
5390
|
skillId: skill.skill_id,
|
|
4683
5391
|
version: skill.version
|
|
4684
|
-
}))
|
|
5392
|
+
})) ?? null
|
|
4685
5393
|
} : null,
|
|
4686
|
-
contextManagement:
|
|
5394
|
+
contextManagement: mapAnthropicResponseContextManagement(
|
|
4687
5395
|
response.context_management
|
|
4688
|
-
)
|
|
5396
|
+
) ?? null
|
|
4689
5397
|
};
|
|
4690
5398
|
const providerMetadata = {
|
|
4691
5399
|
anthropic: anthropicMetadata
|
|
@@ -4699,7 +5407,6 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4699
5407
|
}
|
|
4700
5408
|
async doStream(options) {
|
|
4701
5409
|
"use step";
|
|
4702
|
-
var _a, _b;
|
|
4703
5410
|
const {
|
|
4704
5411
|
args: body,
|
|
4705
5412
|
warnings,
|
|
@@ -4716,9 +5423,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4716
5423
|
const citationDocuments = [
|
|
4717
5424
|
...this.extractCitationDocuments(options.prompt)
|
|
4718
5425
|
];
|
|
4719
|
-
const markCodeExecutionDynamic =
|
|
4720
|
-
body.tools
|
|
4721
|
-
);
|
|
5426
|
+
const markCodeExecutionDynamic = hasDynamicFilteringWebToolWithoutCodeExecution(body.tools);
|
|
4722
5427
|
const url = this.buildRequestUrl(true);
|
|
4723
5428
|
const { responseHeaders, value: response } = await postJsonToApi({
|
|
4724
5429
|
url,
|
|
@@ -4747,6 +5452,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4747
5452
|
let rawUsage = void 0;
|
|
4748
5453
|
let stopSequence = null;
|
|
4749
5454
|
let stopDetails = void 0;
|
|
5455
|
+
let inputTransformations;
|
|
5456
|
+
let safeguardResults;
|
|
4750
5457
|
let container = null;
|
|
4751
5458
|
let isJsonResponseFromTool = false;
|
|
4752
5459
|
let isMessageOpen = false;
|
|
@@ -4760,7 +5467,6 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4760
5467
|
controller.enqueue({ type: "stream-start", warnings });
|
|
4761
5468
|
},
|
|
4762
5469
|
transform(chunk, controller) {
|
|
4763
|
-
var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
4764
5470
|
if (hasInvalidMessageSequence) {
|
|
4765
5471
|
return;
|
|
4766
5472
|
}
|
|
@@ -4829,10 +5535,20 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4829
5535
|
id: String(value.index),
|
|
4830
5536
|
providerMetadata: {
|
|
4831
5537
|
anthropic: {
|
|
4832
|
-
type: "compaction"
|
|
5538
|
+
type: "compaction",
|
|
5539
|
+
...part.signature != null && {
|
|
5540
|
+
signature: part.signature
|
|
5541
|
+
}
|
|
4833
5542
|
}
|
|
4834
5543
|
}
|
|
4835
5544
|
});
|
|
5545
|
+
if (part.signature != null && part.content != null && part.content !== "") {
|
|
5546
|
+
controller.enqueue({
|
|
5547
|
+
type: "text-delta",
|
|
5548
|
+
id: String(value.index),
|
|
5549
|
+
delta: part.content
|
|
5550
|
+
});
|
|
5551
|
+
}
|
|
4836
5552
|
return;
|
|
4837
5553
|
}
|
|
4838
5554
|
case "tool_use": {
|
|
@@ -4847,6 +5563,29 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4847
5563
|
type: "text-start",
|
|
4848
5564
|
id: String(value.index)
|
|
4849
5565
|
});
|
|
5566
|
+
} else if (part.toolset_name != null) {
|
|
5567
|
+
const callerInfo = getAnthropicCallerInfo(part.caller);
|
|
5568
|
+
const customToolName = toolNameMapping.toCustomToolName(
|
|
5569
|
+
part.toolset_name
|
|
5570
|
+
);
|
|
5571
|
+
const hasNonEmptyInput = part.input && Object.keys(part.input).length > 0;
|
|
5572
|
+
contentBlocks[value.index] = {
|
|
5573
|
+
type: "tool-call",
|
|
5574
|
+
toolCallId: part.id,
|
|
5575
|
+
toolName: customToolName,
|
|
5576
|
+
input: hasNonEmptyInput ? JSON.stringify(part.input) : "",
|
|
5577
|
+
firstDelta: true,
|
|
5578
|
+
toolset: {
|
|
5579
|
+
name: part.toolset_name,
|
|
5580
|
+
memberName: part.name
|
|
5581
|
+
},
|
|
5582
|
+
...callerInfo && { caller: callerInfo }
|
|
5583
|
+
};
|
|
5584
|
+
controller.enqueue({
|
|
5585
|
+
type: "tool-input-start",
|
|
5586
|
+
id: part.id,
|
|
5587
|
+
toolName: customToolName
|
|
5588
|
+
});
|
|
4850
5589
|
} else {
|
|
4851
5590
|
const callerInfo = getAnthropicCallerInfo(part.caller);
|
|
4852
5591
|
const hasNonEmptyInput = part.input && Object.keys(part.input).length > 0;
|
|
@@ -4955,7 +5694,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
4955
5694
|
case "web_fetch_tool_result": {
|
|
4956
5695
|
if (part.content.type === "web_fetch_result") {
|
|
4957
5696
|
citationDocuments.push({
|
|
4958
|
-
title:
|
|
5697
|
+
title: part.content.content.title ?? part.content.url,
|
|
4959
5698
|
mediaType: part.content.content.source.media_type
|
|
4960
5699
|
});
|
|
4961
5700
|
controller.enqueue({
|
|
@@ -5000,16 +5739,13 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5000
5739
|
type: "tool-result",
|
|
5001
5740
|
toolCallId: part.tool_use_id,
|
|
5002
5741
|
toolName: toolNameMapping.toCustomToolName("web_search"),
|
|
5003
|
-
result: part.content.map((result) => {
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
type: result.type
|
|
5011
|
-
};
|
|
5012
|
-
}),
|
|
5742
|
+
result: part.content.map((result) => ({
|
|
5743
|
+
url: result.url,
|
|
5744
|
+
...result.title != null ? { title: result.title } : {},
|
|
5745
|
+
pageAge: result.page_age ?? null,
|
|
5746
|
+
encryptedContent: result.encrypted_content,
|
|
5747
|
+
type: result.type
|
|
5748
|
+
})),
|
|
5013
5749
|
...getAnthropicCallerMetadata(part.caller)
|
|
5014
5750
|
});
|
|
5015
5751
|
for (const result of part.content) {
|
|
@@ -5018,10 +5754,10 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5018
5754
|
sourceType: "url",
|
|
5019
5755
|
id: generateId2(),
|
|
5020
5756
|
url: result.url,
|
|
5021
|
-
title: result.title,
|
|
5757
|
+
...result.title != null ? { title: result.title } : {},
|
|
5022
5758
|
providerMetadata: {
|
|
5023
5759
|
anthropic: {
|
|
5024
|
-
pageAge:
|
|
5760
|
+
pageAge: result.page_age ?? null
|
|
5025
5761
|
}
|
|
5026
5762
|
}
|
|
5027
5763
|
});
|
|
@@ -5053,7 +5789,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5053
5789
|
stdout: part.content.stdout,
|
|
5054
5790
|
stderr: part.content.stderr,
|
|
5055
5791
|
return_code: part.content.return_code,
|
|
5056
|
-
content:
|
|
5792
|
+
content: part.content.content ?? []
|
|
5057
5793
|
}
|
|
5058
5794
|
});
|
|
5059
5795
|
} else if (part.content.type === "encrypted_code_execution_result") {
|
|
@@ -5066,7 +5802,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5066
5802
|
encrypted_stdout: part.content.encrypted_stdout,
|
|
5067
5803
|
stderr: part.content.stderr,
|
|
5068
5804
|
return_code: part.content.return_code,
|
|
5069
|
-
content:
|
|
5805
|
+
content: part.content.content ?? []
|
|
5070
5806
|
}
|
|
5071
5807
|
});
|
|
5072
5808
|
} else if (part.content.type === "code_execution_tool_result_error") {
|
|
@@ -5246,6 +5982,25 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5246
5982
|
case "tool-call":
|
|
5247
5983
|
const isJsonResponseTool = usesJsonResponseTool && contentBlock.toolName === "json";
|
|
5248
5984
|
if (!isJsonResponseTool) {
|
|
5985
|
+
if (contentBlock.toolset != null) {
|
|
5986
|
+
let memberInput = {};
|
|
5987
|
+
try {
|
|
5988
|
+
memberInput = contentBlock.input === "" ? {} : secureJsonParse2(contentBlock.input);
|
|
5989
|
+
} catch {
|
|
5990
|
+
memberInput = void 0;
|
|
5991
|
+
}
|
|
5992
|
+
contentBlock.input = memberInput === void 0 ? contentBlock.input : JSON.stringify(
|
|
5993
|
+
toToolsetMemberInput({
|
|
5994
|
+
memberName: contentBlock.toolset.memberName,
|
|
5995
|
+
input: memberInput
|
|
5996
|
+
})
|
|
5997
|
+
);
|
|
5998
|
+
controller.enqueue({
|
|
5999
|
+
type: "tool-input-delta",
|
|
6000
|
+
id: contentBlock.toolCallId,
|
|
6001
|
+
delta: contentBlock.input
|
|
6002
|
+
});
|
|
6003
|
+
}
|
|
5249
6004
|
controller.enqueue({
|
|
5250
6005
|
type: "tool-input-end",
|
|
5251
6006
|
id: contentBlock.toolCallId
|
|
@@ -5260,7 +6015,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5260
6015
|
...parsed
|
|
5261
6016
|
});
|
|
5262
6017
|
}
|
|
5263
|
-
} catch
|
|
6018
|
+
} catch {
|
|
5264
6019
|
}
|
|
5265
6020
|
}
|
|
5266
6021
|
controller.enqueue({
|
|
@@ -5274,10 +6029,15 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5274
6029
|
// tool was not explicitly provided. We therefore bypass the general validation by marking the
|
|
5275
6030
|
// tool as dynamic.
|
|
5276
6031
|
...markCodeExecutionDynamic && contentBlock.providerToolName === "code_execution" ? { dynamic: true } : {},
|
|
5277
|
-
...contentBlock.caller && {
|
|
6032
|
+
...(contentBlock.caller || contentBlock.toolset) && {
|
|
5278
6033
|
providerMetadata: {
|
|
5279
6034
|
anthropic: {
|
|
5280
|
-
|
|
6035
|
+
...contentBlock.toolset && {
|
|
6036
|
+
toolsetName: contentBlock.toolset.name
|
|
6037
|
+
},
|
|
6038
|
+
...contentBlock.caller && {
|
|
6039
|
+
caller: contentBlock.caller
|
|
6040
|
+
}
|
|
5281
6041
|
}
|
|
5282
6042
|
}
|
|
5283
6043
|
}
|
|
@@ -5344,7 +6104,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5344
6104
|
return;
|
|
5345
6105
|
}
|
|
5346
6106
|
if (isJsonResponseFromTool) {
|
|
5347
|
-
if (
|
|
6107
|
+
if (contentBlock?.type !== "text") {
|
|
5348
6108
|
return;
|
|
5349
6109
|
}
|
|
5350
6110
|
controller.enqueue({
|
|
@@ -5353,7 +6113,11 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5353
6113
|
delta
|
|
5354
6114
|
});
|
|
5355
6115
|
} else {
|
|
5356
|
-
if (
|
|
6116
|
+
if (contentBlock?.type !== "tool-call") {
|
|
6117
|
+
return;
|
|
6118
|
+
}
|
|
6119
|
+
if (contentBlock.toolset != null) {
|
|
6120
|
+
contentBlock.input += delta;
|
|
5357
6121
|
return;
|
|
5358
6122
|
}
|
|
5359
6123
|
if (contentBlock.firstDelta && contentBlock.providerToolInputType != null) {
|
|
@@ -5372,7 +6136,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5372
6136
|
case "citations_delta": {
|
|
5373
6137
|
const citation = value.delta.citation;
|
|
5374
6138
|
const contentBlock = contentBlocks[value.index];
|
|
5375
|
-
if (
|
|
6139
|
+
if (contentBlock?.type === "text" && citation.type === "web_search_result_location") {
|
|
5376
6140
|
contentBlock.citations.push(citation);
|
|
5377
6141
|
}
|
|
5378
6142
|
const source = createCitationSource(
|
|
@@ -5411,11 +6175,14 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5411
6175
|
isMessageOpen = true;
|
|
5412
6176
|
activeMessageId = value.message.id;
|
|
5413
6177
|
usage.input_tokens = value.message.usage.input_tokens;
|
|
5414
|
-
usage.cache_read_input_tokens =
|
|
5415
|
-
usage.cache_creation_input_tokens =
|
|
6178
|
+
usage.cache_read_input_tokens = value.message.usage.cache_read_input_tokens ?? 0;
|
|
6179
|
+
usage.cache_creation_input_tokens = value.message.usage.cache_creation_input_tokens ?? 0;
|
|
5416
6180
|
rawUsage = {
|
|
5417
6181
|
...value.message.usage
|
|
5418
6182
|
};
|
|
6183
|
+
if (value.message.input_transformations != null) {
|
|
6184
|
+
inputTransformations = value.message.input_transformations;
|
|
6185
|
+
}
|
|
5419
6186
|
if (value.message.container != null) {
|
|
5420
6187
|
container = {
|
|
5421
6188
|
expiresAt: value.message.container.expires_at,
|
|
@@ -5434,8 +6201,8 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5434
6201
|
}
|
|
5435
6202
|
controller.enqueue({
|
|
5436
6203
|
type: "response-metadata",
|
|
5437
|
-
id:
|
|
5438
|
-
modelId:
|
|
6204
|
+
id: value.message.id ?? void 0,
|
|
6205
|
+
modelId: value.message.model ?? void 0
|
|
5439
6206
|
});
|
|
5440
6207
|
if (value.message.content != null) {
|
|
5441
6208
|
for (let contentIndex = 0; contentIndex < value.message.content.length; contentIndex++) {
|
|
@@ -5447,7 +6214,7 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5447
6214
|
id: part.id,
|
|
5448
6215
|
toolName: part.name
|
|
5449
6216
|
});
|
|
5450
|
-
const inputStr = JSON.stringify(
|
|
6217
|
+
const inputStr = JSON.stringify(part.input ?? {});
|
|
5451
6218
|
controller.enqueue({
|
|
5452
6219
|
type: "tool-input-delta",
|
|
5453
6220
|
id: part.id,
|
|
@@ -5497,24 +6264,30 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5497
6264
|
finishReason: value.delta.stop_reason,
|
|
5498
6265
|
isJsonResponseFromTool
|
|
5499
6266
|
}),
|
|
5500
|
-
raw:
|
|
6267
|
+
raw: value.delta.stop_reason ?? void 0
|
|
5501
6268
|
};
|
|
5502
|
-
stopSequence =
|
|
6269
|
+
stopSequence = value.delta.stop_sequence ?? null;
|
|
5503
6270
|
stopDetails = mapAnthropicStopDetails(value.delta.stop_details);
|
|
5504
6271
|
container = value.delta.container != null ? {
|
|
5505
6272
|
expiresAt: value.delta.container.expires_at,
|
|
5506
6273
|
id: value.delta.container.id,
|
|
5507
|
-
skills:
|
|
6274
|
+
skills: value.delta.container.skills?.map((skill) => ({
|
|
5508
6275
|
type: skill.type,
|
|
5509
6276
|
skillId: skill.skill_id,
|
|
5510
6277
|
version: skill.version
|
|
5511
|
-
}))
|
|
6278
|
+
})) ?? null
|
|
5512
6279
|
} : null;
|
|
5513
6280
|
if (value.context_management) {
|
|
5514
6281
|
contextManagement = mapAnthropicResponseContextManagement(
|
|
5515
6282
|
value.context_management
|
|
5516
6283
|
);
|
|
5517
6284
|
}
|
|
6285
|
+
if (value.input_transformations != null) {
|
|
6286
|
+
inputTransformations = value.input_transformations;
|
|
6287
|
+
}
|
|
6288
|
+
if (value.delta.safeguard_results != null) {
|
|
6289
|
+
safeguardResults = value.delta.safeguard_results;
|
|
6290
|
+
}
|
|
5518
6291
|
rawUsage = {
|
|
5519
6292
|
...rawUsage,
|
|
5520
6293
|
...value.usage
|
|
@@ -5525,9 +6298,11 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5525
6298
|
isMessageOpen = false;
|
|
5526
6299
|
activeMessageId = void 0;
|
|
5527
6300
|
const anthropicMetadata = {
|
|
5528
|
-
usage: rawUsage
|
|
6301
|
+
usage: rawUsage ?? null,
|
|
5529
6302
|
stopSequence,
|
|
5530
6303
|
...stopDetails != null ? { stopDetails } : {},
|
|
6304
|
+
...inputTransformations != null ? { inputTransformations } : {},
|
|
6305
|
+
...safeguardResults != null ? { safeguardResults } : {},
|
|
5531
6306
|
iterations: usage.iterations ? usage.iterations.map(
|
|
5532
6307
|
(iter) => ({
|
|
5533
6308
|
type: iter.type,
|
|
@@ -5560,7 +6335,10 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5560
6335
|
return;
|
|
5561
6336
|
}
|
|
5562
6337
|
case "error": {
|
|
5563
|
-
controller.enqueue({
|
|
6338
|
+
controller.enqueue({
|
|
6339
|
+
type: "error",
|
|
6340
|
+
error: createAnthropicStreamError(value.error)
|
|
6341
|
+
});
|
|
5564
6342
|
return;
|
|
5565
6343
|
}
|
|
5566
6344
|
default: {
|
|
@@ -5576,19 +6354,22 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5576
6354
|
try {
|
|
5577
6355
|
await firstChunkReader.read();
|
|
5578
6356
|
let result = await firstChunkReader.read();
|
|
5579
|
-
if (
|
|
6357
|
+
if (result.value?.type === "raw") {
|
|
5580
6358
|
result = await firstChunkReader.read();
|
|
5581
6359
|
}
|
|
5582
|
-
if (
|
|
6360
|
+
if (result.value?.type === "error") {
|
|
5583
6361
|
const error = result.value.error;
|
|
6362
|
+
if (!isProviderStreamError(error)) {
|
|
6363
|
+
throw new Error("Expected a normalized Anthropic stream error");
|
|
6364
|
+
}
|
|
5584
6365
|
throw new APICallError({
|
|
5585
6366
|
message: error.message,
|
|
5586
6367
|
url,
|
|
5587
6368
|
requestBodyValues: body,
|
|
5588
|
-
statusCode: error.
|
|
6369
|
+
statusCode: error.statusCode ?? 500,
|
|
5589
6370
|
responseHeaders,
|
|
5590
|
-
responseBody: JSON.stringify(error),
|
|
5591
|
-
isRetryable: error.
|
|
6371
|
+
responseBody: JSON.stringify(error.data),
|
|
6372
|
+
isRetryable: error.isRetryable ?? false
|
|
5592
6373
|
});
|
|
5593
6374
|
}
|
|
5594
6375
|
} finally {
|
|
@@ -5604,7 +6385,33 @@ var AnthropicLanguageModel = class _AnthropicLanguageModel {
|
|
|
5604
6385
|
}
|
|
5605
6386
|
};
|
|
5606
6387
|
function getModelCapabilities(modelId) {
|
|
5607
|
-
if (modelId.includes("claude-
|
|
6388
|
+
if (modelId.includes("claude-sonnet-5-5")) {
|
|
6389
|
+
return {
|
|
6390
|
+
maxOutputTokens: 128e3,
|
|
6391
|
+
supportsStructuredOutput: true,
|
|
6392
|
+
supportsAdaptiveThinking: true,
|
|
6393
|
+
rejectsSamplingParameters: true,
|
|
6394
|
+
supportsXhighEffort: true,
|
|
6395
|
+
rejectsThinkingDisabledAboveHighEffort: true,
|
|
6396
|
+
rejectsThinkingDisabled: true,
|
|
6397
|
+
rejectsForcedToolUse: true,
|
|
6398
|
+
supportsBetweenToolsThinking: true,
|
|
6399
|
+
isKnownModel: true
|
|
6400
|
+
};
|
|
6401
|
+
} else if (modelId.includes("claude-opus-5-5")) {
|
|
6402
|
+
return {
|
|
6403
|
+
maxOutputTokens: 128e3,
|
|
6404
|
+
supportsStructuredOutput: true,
|
|
6405
|
+
supportsAdaptiveThinking: true,
|
|
6406
|
+
rejectsSamplingParameters: true,
|
|
6407
|
+
supportsXhighEffort: true,
|
|
6408
|
+
rejectsThinkingDisabledAboveHighEffort: true,
|
|
6409
|
+
rejectsThinkingDisabled: true,
|
|
6410
|
+
rejectsForcedToolUse: true,
|
|
6411
|
+
supportsBetweenToolsThinking: false,
|
|
6412
|
+
isKnownModel: true
|
|
6413
|
+
};
|
|
6414
|
+
} else if (modelId.includes("claude-opus-5")) {
|
|
5608
6415
|
return {
|
|
5609
6416
|
maxOutputTokens: 128e3,
|
|
5610
6417
|
supportsStructuredOutput: true,
|
|
@@ -5612,9 +6419,38 @@ function getModelCapabilities(modelId) {
|
|
|
5612
6419
|
rejectsSamplingParameters: true,
|
|
5613
6420
|
supportsXhighEffort: true,
|
|
5614
6421
|
rejectsThinkingDisabledAboveHighEffort: true,
|
|
6422
|
+
rejectsThinkingDisabled: false,
|
|
6423
|
+
rejectsForcedToolUse: false,
|
|
6424
|
+
supportsBetweenToolsThinking: false,
|
|
6425
|
+
isKnownModel: true
|
|
6426
|
+
};
|
|
6427
|
+
} else if (modelId.includes("claude-fable-5-1")) {
|
|
6428
|
+
return {
|
|
6429
|
+
maxOutputTokens: 128e3,
|
|
6430
|
+
supportsStructuredOutput: true,
|
|
6431
|
+
supportsAdaptiveThinking: true,
|
|
6432
|
+
rejectsSamplingParameters: true,
|
|
6433
|
+
supportsXhighEffort: true,
|
|
6434
|
+
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6435
|
+
rejectsThinkingDisabled: true,
|
|
6436
|
+
rejectsForcedToolUse: true,
|
|
6437
|
+
supportsBetweenToolsThinking: false,
|
|
6438
|
+
isKnownModel: true
|
|
6439
|
+
};
|
|
6440
|
+
} else if (modelId.includes("claude-fable-5")) {
|
|
6441
|
+
return {
|
|
6442
|
+
maxOutputTokens: 128e3,
|
|
6443
|
+
supportsStructuredOutput: true,
|
|
6444
|
+
supportsAdaptiveThinking: true,
|
|
6445
|
+
rejectsSamplingParameters: true,
|
|
6446
|
+
supportsXhighEffort: true,
|
|
6447
|
+
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6448
|
+
rejectsThinkingDisabled: true,
|
|
6449
|
+
rejectsForcedToolUse: false,
|
|
6450
|
+
supportsBetweenToolsThinking: false,
|
|
5615
6451
|
isKnownModel: true
|
|
5616
6452
|
};
|
|
5617
|
-
} else if (modelId.includes("claude-opus-4-8") || modelId.includes("claude-opus-4-7") || modelId.includes("claude-
|
|
6453
|
+
} else if (modelId.includes("claude-opus-4-8") || modelId.includes("claude-opus-4-7") || modelId.includes("claude-sonnet-5")) {
|
|
5618
6454
|
return {
|
|
5619
6455
|
maxOutputTokens: 128e3,
|
|
5620
6456
|
supportsStructuredOutput: true,
|
|
@@ -5622,6 +6458,9 @@ function getModelCapabilities(modelId) {
|
|
|
5622
6458
|
rejectsSamplingParameters: true,
|
|
5623
6459
|
supportsXhighEffort: true,
|
|
5624
6460
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6461
|
+
rejectsThinkingDisabled: false,
|
|
6462
|
+
rejectsForcedToolUse: false,
|
|
6463
|
+
supportsBetweenToolsThinking: false,
|
|
5625
6464
|
isKnownModel: true
|
|
5626
6465
|
};
|
|
5627
6466
|
} else if (modelId.includes("claude-sonnet-4-6") || modelId.includes("claude-opus-4-6")) {
|
|
@@ -5632,6 +6471,9 @@ function getModelCapabilities(modelId) {
|
|
|
5632
6471
|
rejectsSamplingParameters: false,
|
|
5633
6472
|
supportsXhighEffort: false,
|
|
5634
6473
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6474
|
+
rejectsThinkingDisabled: false,
|
|
6475
|
+
rejectsForcedToolUse: false,
|
|
6476
|
+
supportsBetweenToolsThinking: false,
|
|
5635
6477
|
isKnownModel: true
|
|
5636
6478
|
};
|
|
5637
6479
|
} else if (modelId.includes("claude-sonnet-4-5") || modelId.includes("claude-opus-4-5") || modelId.includes("claude-haiku-4-5")) {
|
|
@@ -5642,6 +6484,9 @@ function getModelCapabilities(modelId) {
|
|
|
5642
6484
|
rejectsSamplingParameters: false,
|
|
5643
6485
|
supportsXhighEffort: false,
|
|
5644
6486
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6487
|
+
rejectsThinkingDisabled: false,
|
|
6488
|
+
rejectsForcedToolUse: false,
|
|
6489
|
+
supportsBetweenToolsThinking: false,
|
|
5645
6490
|
isKnownModel: true
|
|
5646
6491
|
};
|
|
5647
6492
|
} else if (modelId.includes("claude-opus-4-1")) {
|
|
@@ -5652,9 +6497,12 @@ function getModelCapabilities(modelId) {
|
|
|
5652
6497
|
rejectsSamplingParameters: false,
|
|
5653
6498
|
supportsXhighEffort: false,
|
|
5654
6499
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6500
|
+
rejectsThinkingDisabled: false,
|
|
6501
|
+
rejectsForcedToolUse: false,
|
|
6502
|
+
supportsBetweenToolsThinking: false,
|
|
5655
6503
|
isKnownModel: true
|
|
5656
6504
|
};
|
|
5657
|
-
} else if (
|
|
6505
|
+
} else if (/claude-sonnet-4(?:-|@)/.test(modelId)) {
|
|
5658
6506
|
return {
|
|
5659
6507
|
maxOutputTokens: 64e3,
|
|
5660
6508
|
supportsStructuredOutput: false,
|
|
@@ -5662,9 +6510,12 @@ function getModelCapabilities(modelId) {
|
|
|
5662
6510
|
rejectsSamplingParameters: false,
|
|
5663
6511
|
supportsXhighEffort: false,
|
|
5664
6512
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6513
|
+
rejectsThinkingDisabled: false,
|
|
6514
|
+
rejectsForcedToolUse: false,
|
|
6515
|
+
supportsBetweenToolsThinking: false,
|
|
5665
6516
|
isKnownModel: true
|
|
5666
6517
|
};
|
|
5667
|
-
} else if (
|
|
6518
|
+
} else if (/claude-opus-4(?:-|@)/.test(modelId)) {
|
|
5668
6519
|
return {
|
|
5669
6520
|
maxOutputTokens: 32e3,
|
|
5670
6521
|
supportsStructuredOutput: false,
|
|
@@ -5672,6 +6523,9 @@ function getModelCapabilities(modelId) {
|
|
|
5672
6523
|
rejectsSamplingParameters: false,
|
|
5673
6524
|
supportsXhighEffort: false,
|
|
5674
6525
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6526
|
+
rejectsThinkingDisabled: false,
|
|
6527
|
+
rejectsForcedToolUse: false,
|
|
6528
|
+
supportsBetweenToolsThinking: false,
|
|
5675
6529
|
isKnownModel: true
|
|
5676
6530
|
};
|
|
5677
6531
|
} else if (modelId.includes("claude-3-haiku")) {
|
|
@@ -5682,6 +6536,9 @@ function getModelCapabilities(modelId) {
|
|
|
5682
6536
|
rejectsSamplingParameters: false,
|
|
5683
6537
|
supportsXhighEffort: false,
|
|
5684
6538
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6539
|
+
rejectsThinkingDisabled: false,
|
|
6540
|
+
rejectsForcedToolUse: false,
|
|
6541
|
+
supportsBetweenToolsThinking: false,
|
|
5685
6542
|
isKnownModel: true
|
|
5686
6543
|
};
|
|
5687
6544
|
} else if (/claude-(?:instant(?:-|$)|v?2(?=$|[-.:])|3(?=$|[-.]))/.test(modelId)) {
|
|
@@ -5692,6 +6549,9 @@ function getModelCapabilities(modelId) {
|
|
|
5692
6549
|
rejectsSamplingParameters: false,
|
|
5693
6550
|
supportsXhighEffort: false,
|
|
5694
6551
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6552
|
+
rejectsThinkingDisabled: false,
|
|
6553
|
+
rejectsForcedToolUse: false,
|
|
6554
|
+
supportsBetweenToolsThinking: false,
|
|
5695
6555
|
isKnownModel: false
|
|
5696
6556
|
};
|
|
5697
6557
|
} else if (modelId.includes("claude-")) {
|
|
@@ -5702,6 +6562,9 @@ function getModelCapabilities(modelId) {
|
|
|
5702
6562
|
rejectsSamplingParameters: true,
|
|
5703
6563
|
supportsXhighEffort: true,
|
|
5704
6564
|
rejectsThinkingDisabledAboveHighEffort: true,
|
|
6565
|
+
rejectsThinkingDisabled: false,
|
|
6566
|
+
rejectsForcedToolUse: false,
|
|
6567
|
+
supportsBetweenToolsThinking: false,
|
|
5705
6568
|
isKnownModel: false
|
|
5706
6569
|
};
|
|
5707
6570
|
} else {
|
|
@@ -5712,32 +6575,38 @@ function getModelCapabilities(modelId) {
|
|
|
5712
6575
|
rejectsSamplingParameters: false,
|
|
5713
6576
|
supportsXhighEffort: false,
|
|
5714
6577
|
rejectsThinkingDisabledAboveHighEffort: false,
|
|
6578
|
+
rejectsThinkingDisabled: false,
|
|
6579
|
+
rejectsForcedToolUse: false,
|
|
6580
|
+
supportsBetweenToolsThinking: false,
|
|
5715
6581
|
isKnownModel: false
|
|
5716
6582
|
};
|
|
5717
6583
|
}
|
|
5718
6584
|
}
|
|
5719
|
-
function
|
|
6585
|
+
function hasDynamicFilteringWebToolWithoutCodeExecution(tools) {
|
|
5720
6586
|
if (!tools) {
|
|
5721
6587
|
return false;
|
|
5722
6588
|
}
|
|
5723
|
-
let
|
|
6589
|
+
let hasDynamicFilteringWebTool = false;
|
|
5724
6590
|
let hasCodeExecutionTool = false;
|
|
5725
6591
|
for (const tool of tools) {
|
|
5726
|
-
if ("type" in tool && (tool.type === "web_fetch_20260209" || tool.type === "web_search_20260209")) {
|
|
5727
|
-
|
|
6592
|
+
if ("type" in tool && (tool.type === "web_fetch_20260209" || tool.type === "web_fetch_20260318" || tool.type === "web_search_20260209" || tool.type === "web_search_20260318")) {
|
|
6593
|
+
hasDynamicFilteringWebTool = true;
|
|
5728
6594
|
continue;
|
|
5729
6595
|
}
|
|
5730
|
-
if (tool.
|
|
6596
|
+
if ("type" in tool && (tool.type === "code_execution_20250522" || tool.type === "code_execution_20250825" || tool.type === "code_execution_20260120")) {
|
|
5731
6597
|
hasCodeExecutionTool = true;
|
|
5732
6598
|
break;
|
|
5733
6599
|
}
|
|
5734
6600
|
}
|
|
5735
|
-
return
|
|
6601
|
+
return hasDynamicFilteringWebTool && !hasCodeExecutionTool;
|
|
5736
6602
|
}
|
|
5737
6603
|
function resolveAnthropicReasoningConfig({
|
|
5738
6604
|
reasoning,
|
|
6605
|
+
modelId,
|
|
5739
6606
|
supportsAdaptiveThinking,
|
|
5740
6607
|
supportsXhighEffort,
|
|
6608
|
+
rejectsThinkingDisabled,
|
|
6609
|
+
supportsBetweenToolsThinking,
|
|
5741
6610
|
maxOutputTokensForModel,
|
|
5742
6611
|
warnings
|
|
5743
6612
|
}) {
|
|
@@ -5745,6 +6614,17 @@ function resolveAnthropicReasoningConfig({
|
|
|
5745
6614
|
return void 0;
|
|
5746
6615
|
}
|
|
5747
6616
|
if (reasoning === "none") {
|
|
6617
|
+
if (supportsBetweenToolsThinking) {
|
|
6618
|
+
return { thinking: { type: "between_tools" } };
|
|
6619
|
+
}
|
|
6620
|
+
if (rejectsThinkingDisabled) {
|
|
6621
|
+
warnings.push({
|
|
6622
|
+
type: "compatibility",
|
|
6623
|
+
feature: "reasoning",
|
|
6624
|
+
details: `reasoning 'none' is not supported by ${modelId}; it always uses adaptive thinking. Using effort 'low' to minimize thinking instead.`
|
|
6625
|
+
});
|
|
6626
|
+
return { effort: "low" };
|
|
6627
|
+
}
|
|
5748
6628
|
return { thinking: { type: "disabled" } };
|
|
5749
6629
|
}
|
|
5750
6630
|
if (supportsAdaptiveThinking) {
|
|
@@ -5814,20 +6694,20 @@ function mapAnthropicStopDetails(stopDetails) {
|
|
|
5814
6694
|
|
|
5815
6695
|
// src/tool/bash_20241022.ts
|
|
5816
6696
|
import {
|
|
5817
|
-
createProviderDefinedToolFactory as
|
|
5818
|
-
lazySchema as
|
|
5819
|
-
zodSchema as
|
|
6697
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory3,
|
|
6698
|
+
lazySchema as lazySchema17,
|
|
6699
|
+
zodSchema as zodSchema17
|
|
5820
6700
|
} from "@ai-sdk/provider-utils";
|
|
5821
|
-
import { z as
|
|
5822
|
-
var bash_20241022InputSchema =
|
|
5823
|
-
() =>
|
|
5824
|
-
|
|
5825
|
-
command:
|
|
5826
|
-
restart:
|
|
6701
|
+
import { z as z18 } from "zod/v4";
|
|
6702
|
+
var bash_20241022InputSchema = lazySchema17(
|
|
6703
|
+
() => zodSchema17(
|
|
6704
|
+
z18.object({
|
|
6705
|
+
command: z18.string(),
|
|
6706
|
+
restart: z18.boolean().optional()
|
|
5827
6707
|
})
|
|
5828
6708
|
)
|
|
5829
6709
|
);
|
|
5830
|
-
var bash_20241022_internal =
|
|
6710
|
+
var bash_20241022_internal = createProviderDefinedToolFactory3({
|
|
5831
6711
|
id: "anthropic.bash_20241022",
|
|
5832
6712
|
inputSchema: bash_20241022InputSchema
|
|
5833
6713
|
});
|
|
@@ -5855,20 +6735,20 @@ function bash_20241022(options = {}) {
|
|
|
5855
6735
|
|
|
5856
6736
|
// src/tool/bash_20250124.ts
|
|
5857
6737
|
import {
|
|
5858
|
-
createProviderDefinedToolFactory as
|
|
5859
|
-
lazySchema as
|
|
5860
|
-
zodSchema as
|
|
6738
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory4,
|
|
6739
|
+
lazySchema as lazySchema18,
|
|
6740
|
+
zodSchema as zodSchema18
|
|
5861
6741
|
} from "@ai-sdk/provider-utils";
|
|
5862
|
-
import { z as
|
|
5863
|
-
var bash_20250124InputSchema =
|
|
5864
|
-
() =>
|
|
5865
|
-
|
|
5866
|
-
command:
|
|
5867
|
-
restart:
|
|
6742
|
+
import { z as z19 } from "zod/v4";
|
|
6743
|
+
var bash_20250124InputSchema = lazySchema18(
|
|
6744
|
+
() => zodSchema18(
|
|
6745
|
+
z19.object({
|
|
6746
|
+
command: z19.string(),
|
|
6747
|
+
restart: z19.boolean().optional()
|
|
5868
6748
|
})
|
|
5869
6749
|
)
|
|
5870
6750
|
);
|
|
5871
|
-
var bash_20250124_internal =
|
|
6751
|
+
var bash_20250124_internal = createProviderDefinedToolFactory4({
|
|
5872
6752
|
id: "anthropic.bash_20250124",
|
|
5873
6753
|
inputSchema: bash_20250124InputSchema
|
|
5874
6754
|
});
|
|
@@ -5896,15 +6776,15 @@ function bash_20250124(options = {}) {
|
|
|
5896
6776
|
|
|
5897
6777
|
// src/tool/computer_20241022.ts
|
|
5898
6778
|
import {
|
|
5899
|
-
createProviderDefinedToolFactory as
|
|
5900
|
-
lazySchema as
|
|
5901
|
-
zodSchema as
|
|
6779
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory5,
|
|
6780
|
+
lazySchema as lazySchema19,
|
|
6781
|
+
zodSchema as zodSchema19
|
|
5902
6782
|
} from "@ai-sdk/provider-utils";
|
|
5903
|
-
import { z as
|
|
5904
|
-
var computer_20241022InputSchema =
|
|
5905
|
-
() =>
|
|
5906
|
-
|
|
5907
|
-
action:
|
|
6783
|
+
import { z as z20 } from "zod/v4";
|
|
6784
|
+
var computer_20241022InputSchema = lazySchema19(
|
|
6785
|
+
() => zodSchema19(
|
|
6786
|
+
z20.object({
|
|
6787
|
+
action: z20.enum([
|
|
5908
6788
|
"key",
|
|
5909
6789
|
"type",
|
|
5910
6790
|
"mouse_move",
|
|
@@ -5916,27 +6796,27 @@ var computer_20241022InputSchema = lazySchema16(
|
|
|
5916
6796
|
"screenshot",
|
|
5917
6797
|
"cursor_position"
|
|
5918
6798
|
]),
|
|
5919
|
-
coordinate:
|
|
5920
|
-
text:
|
|
6799
|
+
coordinate: z20.array(z20.number().int()).optional(),
|
|
6800
|
+
text: z20.string().optional()
|
|
5921
6801
|
})
|
|
5922
6802
|
)
|
|
5923
6803
|
);
|
|
5924
|
-
var computer_20241022 =
|
|
6804
|
+
var computer_20241022 = createProviderDefinedToolFactory5({
|
|
5925
6805
|
id: "anthropic.computer_20241022",
|
|
5926
6806
|
inputSchema: computer_20241022InputSchema
|
|
5927
6807
|
});
|
|
5928
6808
|
|
|
5929
6809
|
// src/tool/computer_20250124.ts
|
|
5930
6810
|
import {
|
|
5931
|
-
createProviderDefinedToolFactory as
|
|
5932
|
-
lazySchema as
|
|
5933
|
-
zodSchema as
|
|
6811
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory6,
|
|
6812
|
+
lazySchema as lazySchema20,
|
|
6813
|
+
zodSchema as zodSchema20
|
|
5934
6814
|
} from "@ai-sdk/provider-utils";
|
|
5935
|
-
import { z as
|
|
5936
|
-
var computer_20250124InputSchema =
|
|
5937
|
-
() =>
|
|
5938
|
-
|
|
5939
|
-
action:
|
|
6815
|
+
import { z as z21 } from "zod/v4";
|
|
6816
|
+
var computer_20250124InputSchema = lazySchema20(
|
|
6817
|
+
() => zodSchema20(
|
|
6818
|
+
z21.object({
|
|
6819
|
+
action: z21.enum([
|
|
5940
6820
|
"key",
|
|
5941
6821
|
"hold_key",
|
|
5942
6822
|
"type",
|
|
@@ -5954,31 +6834,31 @@ var computer_20250124InputSchema = lazySchema17(
|
|
|
5954
6834
|
"wait",
|
|
5955
6835
|
"screenshot"
|
|
5956
6836
|
]),
|
|
5957
|
-
coordinate:
|
|
5958
|
-
duration:
|
|
5959
|
-
scroll_amount:
|
|
5960
|
-
scroll_direction:
|
|
5961
|
-
start_coordinate:
|
|
5962
|
-
text:
|
|
6837
|
+
coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
|
|
6838
|
+
duration: z21.number().optional(),
|
|
6839
|
+
scroll_amount: z21.number().optional(),
|
|
6840
|
+
scroll_direction: z21.enum(["up", "down", "left", "right"]).optional(),
|
|
6841
|
+
start_coordinate: z21.tuple([z21.number().int(), z21.number().int()]).optional(),
|
|
6842
|
+
text: z21.string().optional()
|
|
5963
6843
|
})
|
|
5964
6844
|
)
|
|
5965
6845
|
);
|
|
5966
|
-
var computer_20250124 =
|
|
6846
|
+
var computer_20250124 = createProviderDefinedToolFactory6({
|
|
5967
6847
|
id: "anthropic.computer_20250124",
|
|
5968
6848
|
inputSchema: computer_20250124InputSchema
|
|
5969
6849
|
});
|
|
5970
6850
|
|
|
5971
6851
|
// src/tool/computer_20251124.ts
|
|
5972
6852
|
import {
|
|
5973
|
-
createProviderDefinedToolFactory as
|
|
5974
|
-
lazySchema as
|
|
5975
|
-
zodSchema as
|
|
6853
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory7,
|
|
6854
|
+
lazySchema as lazySchema21,
|
|
6855
|
+
zodSchema as zodSchema21
|
|
5976
6856
|
} from "@ai-sdk/provider-utils";
|
|
5977
|
-
import { z as
|
|
5978
|
-
var computer_20251124InputSchema =
|
|
5979
|
-
() =>
|
|
5980
|
-
|
|
5981
|
-
action:
|
|
6857
|
+
import { z as z22 } from "zod/v4";
|
|
6858
|
+
var computer_20251124InputSchema = lazySchema21(
|
|
6859
|
+
() => zodSchema21(
|
|
6860
|
+
z22.object({
|
|
6861
|
+
action: z22.enum([
|
|
5982
6862
|
"key",
|
|
5983
6863
|
"hold_key",
|
|
5984
6864
|
"type",
|
|
@@ -5997,193 +6877,193 @@ var computer_20251124InputSchema = lazySchema18(
|
|
|
5997
6877
|
"screenshot",
|
|
5998
6878
|
"zoom"
|
|
5999
6879
|
]),
|
|
6000
|
-
coordinate:
|
|
6001
|
-
duration:
|
|
6002
|
-
region:
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6880
|
+
coordinate: z22.tuple([z22.number().int(), z22.number().int()]).optional(),
|
|
6881
|
+
duration: z22.number().optional(),
|
|
6882
|
+
region: z22.tuple([
|
|
6883
|
+
z22.number().int(),
|
|
6884
|
+
z22.number().int(),
|
|
6885
|
+
z22.number().int(),
|
|
6886
|
+
z22.number().int()
|
|
6007
6887
|
]).optional(),
|
|
6008
|
-
scroll_amount:
|
|
6009
|
-
scroll_direction:
|
|
6010
|
-
start_coordinate:
|
|
6011
|
-
text:
|
|
6888
|
+
scroll_amount: z22.number().optional(),
|
|
6889
|
+
scroll_direction: z22.enum(["up", "down", "left", "right"]).optional(),
|
|
6890
|
+
start_coordinate: z22.tuple([z22.number().int(), z22.number().int()]).optional(),
|
|
6891
|
+
text: z22.string().optional()
|
|
6012
6892
|
})
|
|
6013
6893
|
)
|
|
6014
6894
|
);
|
|
6015
|
-
var computer_20251124 =
|
|
6895
|
+
var computer_20251124 = createProviderDefinedToolFactory7({
|
|
6016
6896
|
id: "anthropic.computer_20251124",
|
|
6017
6897
|
inputSchema: computer_20251124InputSchema
|
|
6018
6898
|
});
|
|
6019
6899
|
|
|
6020
6900
|
// src/tool/memory_20250818.ts
|
|
6021
6901
|
import {
|
|
6022
|
-
createProviderDefinedToolFactory as
|
|
6023
|
-
lazySchema as
|
|
6024
|
-
zodSchema as
|
|
6902
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory8,
|
|
6903
|
+
lazySchema as lazySchema22,
|
|
6904
|
+
zodSchema as zodSchema22
|
|
6025
6905
|
} from "@ai-sdk/provider-utils";
|
|
6026
|
-
import { z as
|
|
6027
|
-
var memory_20250818InputSchema =
|
|
6028
|
-
() =>
|
|
6029
|
-
|
|
6030
|
-
|
|
6031
|
-
command:
|
|
6032
|
-
path:
|
|
6033
|
-
view_range:
|
|
6906
|
+
import { z as z23 } from "zod/v4";
|
|
6907
|
+
var memory_20250818InputSchema = lazySchema22(
|
|
6908
|
+
() => zodSchema22(
|
|
6909
|
+
z23.discriminatedUnion("command", [
|
|
6910
|
+
z23.object({
|
|
6911
|
+
command: z23.literal("view"),
|
|
6912
|
+
path: z23.string(),
|
|
6913
|
+
view_range: z23.tuple([z23.number(), z23.number()]).optional()
|
|
6034
6914
|
}),
|
|
6035
|
-
|
|
6036
|
-
command:
|
|
6037
|
-
path:
|
|
6038
|
-
file_text:
|
|
6915
|
+
z23.object({
|
|
6916
|
+
command: z23.literal("create"),
|
|
6917
|
+
path: z23.string(),
|
|
6918
|
+
file_text: z23.string()
|
|
6039
6919
|
}),
|
|
6040
|
-
|
|
6041
|
-
command:
|
|
6042
|
-
path:
|
|
6043
|
-
old_str:
|
|
6044
|
-
new_str:
|
|
6920
|
+
z23.object({
|
|
6921
|
+
command: z23.literal("str_replace"),
|
|
6922
|
+
path: z23.string(),
|
|
6923
|
+
old_str: z23.string(),
|
|
6924
|
+
new_str: z23.string()
|
|
6045
6925
|
}),
|
|
6046
|
-
|
|
6047
|
-
command:
|
|
6048
|
-
path:
|
|
6049
|
-
insert_line:
|
|
6050
|
-
insert_text:
|
|
6926
|
+
z23.object({
|
|
6927
|
+
command: z23.literal("insert"),
|
|
6928
|
+
path: z23.string(),
|
|
6929
|
+
insert_line: z23.number(),
|
|
6930
|
+
insert_text: z23.string()
|
|
6051
6931
|
}),
|
|
6052
|
-
|
|
6053
|
-
command:
|
|
6054
|
-
path:
|
|
6932
|
+
z23.object({
|
|
6933
|
+
command: z23.literal("delete"),
|
|
6934
|
+
path: z23.string()
|
|
6055
6935
|
}),
|
|
6056
|
-
|
|
6057
|
-
command:
|
|
6058
|
-
old_path:
|
|
6059
|
-
new_path:
|
|
6936
|
+
z23.object({
|
|
6937
|
+
command: z23.literal("rename"),
|
|
6938
|
+
old_path: z23.string(),
|
|
6939
|
+
new_path: z23.string()
|
|
6060
6940
|
})
|
|
6061
6941
|
])
|
|
6062
6942
|
)
|
|
6063
6943
|
);
|
|
6064
|
-
var memory_20250818 =
|
|
6944
|
+
var memory_20250818 = createProviderDefinedToolFactory8({
|
|
6065
6945
|
id: "anthropic.memory_20250818",
|
|
6066
6946
|
inputSchema: memory_20250818InputSchema
|
|
6067
6947
|
});
|
|
6068
6948
|
|
|
6069
6949
|
// src/tool/text-editor_20241022.ts
|
|
6070
6950
|
import {
|
|
6071
|
-
createProviderDefinedToolFactory as
|
|
6072
|
-
lazySchema as
|
|
6073
|
-
zodSchema as
|
|
6951
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory9,
|
|
6952
|
+
lazySchema as lazySchema23,
|
|
6953
|
+
zodSchema as zodSchema23
|
|
6074
6954
|
} from "@ai-sdk/provider-utils";
|
|
6075
|
-
import { z as
|
|
6076
|
-
var textEditor_20241022InputSchema =
|
|
6077
|
-
() =>
|
|
6078
|
-
|
|
6079
|
-
command:
|
|
6080
|
-
path:
|
|
6081
|
-
file_text:
|
|
6082
|
-
insert_line:
|
|
6083
|
-
new_str:
|
|
6084
|
-
insert_text:
|
|
6085
|
-
old_str:
|
|
6086
|
-
view_range:
|
|
6955
|
+
import { z as z24 } from "zod/v4";
|
|
6956
|
+
var textEditor_20241022InputSchema = lazySchema23(
|
|
6957
|
+
() => zodSchema23(
|
|
6958
|
+
z24.object({
|
|
6959
|
+
command: z24.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
|
|
6960
|
+
path: z24.string(),
|
|
6961
|
+
file_text: z24.string().optional(),
|
|
6962
|
+
insert_line: z24.number().int().optional(),
|
|
6963
|
+
new_str: z24.string().optional(),
|
|
6964
|
+
insert_text: z24.string().optional(),
|
|
6965
|
+
old_str: z24.string().optional(),
|
|
6966
|
+
view_range: z24.array(z24.number().int()).optional()
|
|
6087
6967
|
})
|
|
6088
6968
|
)
|
|
6089
6969
|
);
|
|
6090
|
-
var textEditor_20241022 =
|
|
6970
|
+
var textEditor_20241022 = createProviderDefinedToolFactory9({
|
|
6091
6971
|
id: "anthropic.text_editor_20241022",
|
|
6092
6972
|
inputSchema: textEditor_20241022InputSchema
|
|
6093
6973
|
});
|
|
6094
6974
|
|
|
6095
6975
|
// src/tool/text-editor_20250124.ts
|
|
6096
6976
|
import {
|
|
6097
|
-
createProviderDefinedToolFactory as
|
|
6098
|
-
lazySchema as
|
|
6099
|
-
zodSchema as
|
|
6977
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory10,
|
|
6978
|
+
lazySchema as lazySchema24,
|
|
6979
|
+
zodSchema as zodSchema24
|
|
6100
6980
|
} from "@ai-sdk/provider-utils";
|
|
6101
|
-
import { z as
|
|
6102
|
-
var textEditor_20250124InputSchema =
|
|
6103
|
-
() =>
|
|
6104
|
-
|
|
6105
|
-
command:
|
|
6106
|
-
path:
|
|
6107
|
-
file_text:
|
|
6108
|
-
insert_line:
|
|
6109
|
-
new_str:
|
|
6110
|
-
insert_text:
|
|
6111
|
-
old_str:
|
|
6112
|
-
view_range:
|
|
6981
|
+
import { z as z25 } from "zod/v4";
|
|
6982
|
+
var textEditor_20250124InputSchema = lazySchema24(
|
|
6983
|
+
() => zodSchema24(
|
|
6984
|
+
z25.object({
|
|
6985
|
+
command: z25.enum(["view", "create", "str_replace", "insert", "undo_edit"]),
|
|
6986
|
+
path: z25.string(),
|
|
6987
|
+
file_text: z25.string().optional(),
|
|
6988
|
+
insert_line: z25.number().int().optional(),
|
|
6989
|
+
new_str: z25.string().optional(),
|
|
6990
|
+
insert_text: z25.string().optional(),
|
|
6991
|
+
old_str: z25.string().optional(),
|
|
6992
|
+
view_range: z25.array(z25.number().int()).optional()
|
|
6113
6993
|
})
|
|
6114
6994
|
)
|
|
6115
6995
|
);
|
|
6116
|
-
var textEditor_20250124 =
|
|
6996
|
+
var textEditor_20250124 = createProviderDefinedToolFactory10({
|
|
6117
6997
|
id: "anthropic.text_editor_20250124",
|
|
6118
6998
|
inputSchema: textEditor_20250124InputSchema
|
|
6119
6999
|
});
|
|
6120
7000
|
|
|
6121
7001
|
// src/tool/text-editor_20250429.ts
|
|
6122
7002
|
import {
|
|
6123
|
-
createProviderDefinedToolFactory as
|
|
6124
|
-
lazySchema as
|
|
6125
|
-
zodSchema as
|
|
7003
|
+
createProviderDefinedToolFactory as createProviderDefinedToolFactory11,
|
|
7004
|
+
lazySchema as lazySchema25,
|
|
7005
|
+
zodSchema as zodSchema25
|
|
6126
7006
|
} from "@ai-sdk/provider-utils";
|
|
6127
|
-
import { z as
|
|
6128
|
-
var textEditor_20250429InputSchema =
|
|
6129
|
-
() =>
|
|
6130
|
-
|
|
6131
|
-
command:
|
|
6132
|
-
path:
|
|
6133
|
-
file_text:
|
|
6134
|
-
insert_line:
|
|
6135
|
-
new_str:
|
|
6136
|
-
insert_text:
|
|
6137
|
-
old_str:
|
|
6138
|
-
view_range:
|
|
7007
|
+
import { z as z26 } from "zod/v4";
|
|
7008
|
+
var textEditor_20250429InputSchema = lazySchema25(
|
|
7009
|
+
() => zodSchema25(
|
|
7010
|
+
z26.object({
|
|
7011
|
+
command: z26.enum(["view", "create", "str_replace", "insert"]),
|
|
7012
|
+
path: z26.string(),
|
|
7013
|
+
file_text: z26.string().optional(),
|
|
7014
|
+
insert_line: z26.number().int().optional(),
|
|
7015
|
+
new_str: z26.string().optional(),
|
|
7016
|
+
insert_text: z26.string().optional(),
|
|
7017
|
+
old_str: z26.string().optional(),
|
|
7018
|
+
view_range: z26.array(z26.number().int()).optional()
|
|
6139
7019
|
})
|
|
6140
7020
|
)
|
|
6141
7021
|
);
|
|
6142
|
-
var textEditor_20250429 =
|
|
7022
|
+
var textEditor_20250429 = createProviderDefinedToolFactory11({
|
|
6143
7023
|
id: "anthropic.text_editor_20250429",
|
|
6144
7024
|
inputSchema: textEditor_20250429InputSchema
|
|
6145
7025
|
});
|
|
6146
7026
|
|
|
6147
7027
|
// src/tool/tool-search-bm25_20251119.ts
|
|
6148
7028
|
import {
|
|
6149
|
-
createProviderExecutedToolFactory as
|
|
6150
|
-
lazySchema as
|
|
6151
|
-
zodSchema as
|
|
7029
|
+
createProviderExecutedToolFactory as createProviderExecutedToolFactory12,
|
|
7030
|
+
lazySchema as lazySchema26,
|
|
7031
|
+
zodSchema as zodSchema26
|
|
6152
7032
|
} from "@ai-sdk/provider-utils";
|
|
6153
|
-
import { z as
|
|
6154
|
-
var toolSearchBm25_20251119OutputSchema =
|
|
6155
|
-
() =>
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
type:
|
|
6159
|
-
toolName:
|
|
7033
|
+
import { z as z27 } from "zod/v4";
|
|
7034
|
+
var toolSearchBm25_20251119OutputSchema = lazySchema26(
|
|
7035
|
+
() => zodSchema26(
|
|
7036
|
+
z27.array(
|
|
7037
|
+
z27.object({
|
|
7038
|
+
type: z27.literal("tool_reference"),
|
|
7039
|
+
toolName: z27.string()
|
|
6160
7040
|
})
|
|
6161
7041
|
)
|
|
6162
7042
|
)
|
|
6163
7043
|
);
|
|
6164
|
-
var toolSearchBm25_20251119InputSchema =
|
|
6165
|
-
() =>
|
|
6166
|
-
|
|
7044
|
+
var toolSearchBm25_20251119InputSchema = lazySchema26(
|
|
7045
|
+
() => zodSchema26(
|
|
7046
|
+
z27.object({
|
|
6167
7047
|
/**
|
|
6168
7048
|
* A natural language query to search for tools.
|
|
6169
7049
|
* Claude will use BM25 text search to find relevant tools.
|
|
6170
7050
|
*/
|
|
6171
|
-
query:
|
|
7051
|
+
query: z27.string(),
|
|
6172
7052
|
/**
|
|
6173
7053
|
* Maximum number of tools to return. Optional.
|
|
6174
7054
|
*/
|
|
6175
|
-
limit:
|
|
7055
|
+
limit: z27.number().optional()
|
|
6176
7056
|
})
|
|
6177
7057
|
)
|
|
6178
7058
|
);
|
|
6179
|
-
var
|
|
7059
|
+
var factory13 = createProviderExecutedToolFactory12({
|
|
6180
7060
|
id: "anthropic.tool_search_bm25_20251119",
|
|
6181
7061
|
inputSchema: toolSearchBm25_20251119InputSchema,
|
|
6182
7062
|
outputSchema: toolSearchBm25_20251119OutputSchema,
|
|
6183
7063
|
supportsDeferredResults: true
|
|
6184
7064
|
});
|
|
6185
7065
|
var toolSearchBm25_20251119 = (args = {}) => {
|
|
6186
|
-
return
|
|
7066
|
+
return factory13(args);
|
|
6187
7067
|
};
|
|
6188
7068
|
|
|
6189
7069
|
// src/anthropic-tools.ts
|
|
@@ -6304,6 +7184,29 @@ var anthropicTools = {
|
|
|
6304
7184
|
* @param enableZoom - Enable zoom action. Set to true to allow Claude to zoom into specific screen regions. Default: false.
|
|
6305
7185
|
*/
|
|
6306
7186
|
computer_20251124,
|
|
7187
|
+
/**
|
|
7188
|
+
* The computer toolset lets Claude control a computer through screenshots,
|
|
7189
|
+
* mouse, and keyboard. It replaces the versioned computer tools
|
|
7190
|
+
* (`computer_20251124` and earlier) on newer models.
|
|
7191
|
+
*
|
|
7192
|
+
* The API returns each computer action as its own `tool_use` block with
|
|
7193
|
+
* `toolset_name: 'computer'`. The AI SDK maps every member call to this tool
|
|
7194
|
+
* and exposes the member name as `action`, so `execute` receives the same
|
|
7195
|
+
* input shape as the older computer tools. Claude may return several actions
|
|
7196
|
+
* in one turn.
|
|
7197
|
+
*
|
|
7198
|
+
* Coordinates are always in the pixel space of the screenshots you return;
|
|
7199
|
+
* there are no display size parameters. Zoom is enabled by default.
|
|
7200
|
+
*
|
|
7201
|
+
* Does not require a beta header.
|
|
7202
|
+
*
|
|
7203
|
+
* Supported models: Claude Opus 5.5 (required; older computer tool types
|
|
7204
|
+
* are rejected), Opus 5, Sonnet 5, Fable 5, Fable 5.1, Opus 4.8.
|
|
7205
|
+
*
|
|
7206
|
+
* @param configs - Per-member settings keyed by member name, e.g.
|
|
7207
|
+
* `{ zoom: { enabled: false } }`. Omitted members keep their defaults.
|
|
7208
|
+
*/
|
|
7209
|
+
computerToolset_20260801,
|
|
6307
7210
|
/**
|
|
6308
7211
|
* The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.
|
|
6309
7212
|
* Claude can create, read, update, and delete files that persist between sessions,
|
|
@@ -6371,6 +7274,18 @@ var anthropicTools = {
|
|
|
6371
7274
|
* @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.
|
|
6372
7275
|
*/
|
|
6373
7276
|
webFetch_20260209,
|
|
7277
|
+
/**
|
|
7278
|
+
* Creates a web fetch tool that gives Claude direct access to real-time web content.
|
|
7279
|
+
*
|
|
7280
|
+
* @param maxUses - The max_uses parameter limits the number of web fetches performed
|
|
7281
|
+
* @param allowedDomains - Only fetch from these domains
|
|
7282
|
+
* @param blockedDomains - Never fetch from these domains
|
|
7283
|
+
* @param citations - Unlike web search where citations are always enabled, citations are optional for web fetch. Set "citations": {"enabled": true} to enable Claude to cite specific passages from fetched documents.
|
|
7284
|
+
* @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.
|
|
7285
|
+
* @param useCache - Whether cached content may be returned. Set to false to fetch fresh content.
|
|
7286
|
+
* @param responseInclusion - Whether result blocks consumed by completed code execution calls are returned. Defaults to "full".
|
|
7287
|
+
*/
|
|
7288
|
+
webFetch_20260318,
|
|
6374
7289
|
/**
|
|
6375
7290
|
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
6376
7291
|
*
|
|
@@ -6389,6 +7304,16 @@ var anthropicTools = {
|
|
|
6389
7304
|
* @param userLocation - Optional user location information to provide geographically relevant search results.
|
|
6390
7305
|
*/
|
|
6391
7306
|
webSearch_20260209,
|
|
7307
|
+
/**
|
|
7308
|
+
* Creates a web search tool that gives Claude direct access to real-time web content.
|
|
7309
|
+
*
|
|
7310
|
+
* @param maxUses - Maximum number of web searches Claude can perform during the conversation.
|
|
7311
|
+
* @param allowedDomains - Optional list of domains that Claude is allowed to search.
|
|
7312
|
+
* @param blockedDomains - Optional list of domains that Claude should avoid when searching.
|
|
7313
|
+
* @param userLocation - Optional user location information to provide geographically relevant search results.
|
|
7314
|
+
* @param responseInclusion - Whether result blocks consumed by completed code execution calls are returned. Defaults to "full".
|
|
7315
|
+
*/
|
|
7316
|
+
webSearch_20260318,
|
|
6392
7317
|
/**
|
|
6393
7318
|
* Creates a tool search tool that uses regex patterns to find tools.
|
|
6394
7319
|
*
|
|
@@ -6430,45 +7355,49 @@ import {
|
|
|
6430
7355
|
} from "@ai-sdk/provider-utils";
|
|
6431
7356
|
|
|
6432
7357
|
// src/skills/anthropic-skills-api.ts
|
|
6433
|
-
import { lazySchema as
|
|
6434
|
-
import { z as
|
|
6435
|
-
var anthropicSkillResponseSchema =
|
|
6436
|
-
() =>
|
|
6437
|
-
|
|
6438
|
-
id:
|
|
6439
|
-
display_title:
|
|
6440
|
-
name:
|
|
6441
|
-
description:
|
|
6442
|
-
latest_version:
|
|
6443
|
-
source:
|
|
6444
|
-
created_at:
|
|
6445
|
-
updated_at:
|
|
7358
|
+
import { lazySchema as lazySchema27, zodSchema as zodSchema27 } from "@ai-sdk/provider-utils";
|
|
7359
|
+
import { z as z28 } from "zod/v4";
|
|
7360
|
+
var anthropicSkillResponseSchema = lazySchema27(
|
|
7361
|
+
() => zodSchema27(
|
|
7362
|
+
z28.object({
|
|
7363
|
+
id: z28.string(),
|
|
7364
|
+
display_title: z28.string().nullish(),
|
|
7365
|
+
name: z28.string().nullish(),
|
|
7366
|
+
description: z28.string().nullish(),
|
|
7367
|
+
latest_version: z28.string().nullish(),
|
|
7368
|
+
source: z28.string(),
|
|
7369
|
+
created_at: z28.string(),
|
|
7370
|
+
updated_at: z28.string()
|
|
6446
7371
|
})
|
|
6447
7372
|
)
|
|
6448
7373
|
);
|
|
6449
|
-
var anthropicSkillVersionListResponseSchema =
|
|
6450
|
-
() =>
|
|
6451
|
-
|
|
6452
|
-
data:
|
|
6453
|
-
|
|
6454
|
-
version:
|
|
7374
|
+
var anthropicSkillVersionListResponseSchema = lazySchema27(
|
|
7375
|
+
() => zodSchema27(
|
|
7376
|
+
z28.object({
|
|
7377
|
+
data: z28.array(
|
|
7378
|
+
z28.object({
|
|
7379
|
+
version: z28.string()
|
|
6455
7380
|
})
|
|
6456
7381
|
)
|
|
6457
7382
|
})
|
|
6458
7383
|
)
|
|
6459
7384
|
);
|
|
6460
|
-
var anthropicSkillVersionResponseSchema =
|
|
6461
|
-
() =>
|
|
6462
|
-
|
|
6463
|
-
type:
|
|
6464
|
-
skill_id:
|
|
6465
|
-
name:
|
|
6466
|
-
description:
|
|
7385
|
+
var anthropicSkillVersionResponseSchema = lazySchema27(
|
|
7386
|
+
() => zodSchema27(
|
|
7387
|
+
z28.object({
|
|
7388
|
+
type: z28.string(),
|
|
7389
|
+
skill_id: z28.string(),
|
|
7390
|
+
name: z28.string().nullish(),
|
|
7391
|
+
description: z28.string().nullish()
|
|
6467
7392
|
})
|
|
6468
7393
|
)
|
|
6469
7394
|
);
|
|
6470
7395
|
|
|
6471
7396
|
// src/skills/anthropic-skills.ts
|
|
7397
|
+
function encodePathSegment(value) {
|
|
7398
|
+
const encodedValue = encodeURIComponent(value);
|
|
7399
|
+
return encodedValue === "." ? "%252E" : encodedValue === ".." ? "%252E%252E" : encodedValue;
|
|
7400
|
+
}
|
|
6472
7401
|
var AnthropicSkills = class {
|
|
6473
7402
|
constructor(config) {
|
|
6474
7403
|
this.config = config;
|
|
@@ -6488,7 +7417,7 @@ var AnthropicSkills = class {
|
|
|
6488
7417
|
headers
|
|
6489
7418
|
}) {
|
|
6490
7419
|
const { value: versionResponse } = await getFromApi({
|
|
6491
|
-
url: `${this.config.baseURL}/skills/${skillId}/versions/${version}`,
|
|
7420
|
+
url: `${this.config.baseURL}/skills/${encodePathSegment(skillId)}/versions/${encodePathSegment(version)}`,
|
|
6492
7421
|
validateUrl: false,
|
|
6493
7422
|
headers,
|
|
6494
7423
|
failedResponseHandler: anthropicFailedResponseHandler,
|
|
@@ -6503,7 +7432,6 @@ var AnthropicSkills = class {
|
|
|
6503
7432
|
};
|
|
6504
7433
|
}
|
|
6505
7434
|
async uploadSkill(params) {
|
|
6506
|
-
var _a, _b;
|
|
6507
7435
|
const warnings = [];
|
|
6508
7436
|
const formData = new FormData();
|
|
6509
7437
|
if (params.displayTitle != null) {
|
|
@@ -6529,8 +7457,8 @@ var AnthropicSkills = class {
|
|
|
6529
7457
|
version: response.latest_version,
|
|
6530
7458
|
headers
|
|
6531
7459
|
}) : {};
|
|
6532
|
-
const name =
|
|
6533
|
-
const description =
|
|
7460
|
+
const name = versionMetadata.name ?? response.name;
|
|
7461
|
+
const description = versionMetadata.description ?? response.description;
|
|
6534
7462
|
return {
|
|
6535
7463
|
providerReference: { anthropic: response.id },
|
|
6536
7464
|
...response.display_title != null ? { displayTitle: response.display_title } : {},
|