@opencode-ai/cli-linux-x64 0.0.0-beta-202606050000
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/bin/chunk-01tb5qes.js.map +131 -0
- package/bin/chunk-06d8aa69.js.map +10 -0
- package/bin/chunk-07w2xsfy.js.map +50 -0
- package/bin/chunk-0azwkk9z.js.map +12 -0
- package/bin/chunk-0d9ja06r.js.map +9 -0
- package/bin/chunk-14kv2kjk.js.map +13 -0
- package/bin/chunk-17j53wgt.js.map +11 -0
- package/bin/chunk-191djt7z.js.map +113 -0
- package/bin/chunk-1brm44vt.js.map +10 -0
- package/bin/chunk-1jb1dn9p.js.map +10 -0
- package/bin/chunk-1paeax4j.js.map +56 -0
- package/bin/chunk-1wb39pye.js.map +9 -0
- package/bin/chunk-2mjmecen.js.map +10 -0
- package/bin/chunk-2wqpg9fb.js.map +10 -0
- package/bin/chunk-32ewzcjk.js.map +10 -0
- package/bin/chunk-334z6v35.js.map +9 -0
- package/bin/chunk-3jqjf0hd.js.map +10 -0
- package/bin/chunk-3n6vddyq.js.map +73 -0
- package/bin/chunk-3zmvhepw.js.map +10 -0
- package/bin/chunk-4980h0t7.js.map +37 -0
- package/bin/chunk-4q5k6a0e.js.map +10 -0
- package/bin/chunk-5ft9zwf9.js.map +10 -0
- package/bin/chunk-6ttpn29p.js.map +10 -0
- package/bin/chunk-7fvpf4bs.js.map +10 -0
- package/bin/chunk-7vb6kdat.js.map +10 -0
- package/bin/chunk-84amh6xf.js.map +11 -0
- package/bin/chunk-8akfq1ty.js.map +19 -0
- package/bin/chunk-8rd9r1gb.js.map +11 -0
- package/bin/chunk-8x80qvzn.js.map +10 -0
- package/bin/chunk-943th5qs.js.map +10 -0
- package/bin/chunk-94yf089p.js.map +10 -0
- package/bin/chunk-98cxndhz.js.map +9 -0
- package/bin/chunk-9f8tmby0.js.map +9 -0
- package/bin/chunk-9fbstsnw.js.map +9 -0
- package/bin/chunk-9hq8aywf.js.map +10 -0
- package/bin/chunk-9m7hf7ms.js.map +10 -0
- package/bin/chunk-9vf55fj3.js.map +10 -0
- package/bin/chunk-9w9rk9en.js.map +20 -0
- package/bin/chunk-9y4hgfns.js.map +10 -0
- package/bin/chunk-aag5p1fp.js.map +10 -0
- package/bin/chunk-axy1v6wd.js.map +27 -0
- package/bin/chunk-bj9msmj2.js.map +10 -0
- package/bin/chunk-bt0r89ee.js.map +9 -0
- package/bin/chunk-c2gsyspz.js.map +10 -0
- package/bin/chunk-c8hr0q5n.js.map +10 -0
- package/bin/chunk-cab6ccj0.js.map +10 -0
- package/bin/chunk-ck4nkjtx.js.map +193 -0
- package/bin/chunk-cvm4kr56.js.map +23 -0
- package/bin/chunk-cyb9bpgm.js.map +10 -0
- package/bin/chunk-d1p8awq6.js.map +10 -0
- package/bin/chunk-d6nz1m6v.js.map +10 -0
- package/bin/chunk-d9g5798m.js.map +81 -0
- package/bin/chunk-dcn0azxw.js.map +10 -0
- package/bin/chunk-dd9pfwmr.js.map +10 -0
- package/bin/chunk-dk4qekzk.js.map +10 -0
- package/bin/chunk-dk9tgwkh.js.map +9 -0
- package/bin/chunk-dzzhxh1c.js.map +10 -0
- package/bin/chunk-efsmps94.js.map +9 -0
- package/bin/chunk-fdw7znt6.js.map +11 -0
- package/bin/chunk-fs6t8jdg.js.map +10 -0
- package/bin/chunk-fzcqzwx5.js.map +10 -0
- package/bin/chunk-g4fcmhkj.js.map +11 -0
- package/bin/chunk-g4ff66n8.js.map +10 -0
- package/bin/chunk-g8mpn6ke.js.map +11 -0
- package/bin/chunk-gahs293a.js.map +10 -0
- package/bin/chunk-gh9dcqbv.js.map +10 -0
- package/bin/chunk-grvxd8zq.js.map +10 -0
- package/bin/chunk-gv6nagng.js.map +10 -0
- package/bin/chunk-h1vz14ze.js.map +167 -0
- package/bin/chunk-hav16yge.js.map +10 -0
- package/bin/chunk-hp5nnq6f.js.map +11 -0
- package/bin/chunk-hrcbafh3.js.map +9 -0
- package/bin/chunk-hxfsfpek.js.map +10 -0
- package/bin/chunk-jcqp2wmf.js.map +10 -0
- package/bin/chunk-jt9t8203.js.map +9 -0
- package/bin/chunk-k0980eb5.js.map +10 -0
- package/bin/chunk-kghptcgb.js.map +9 -0
- package/bin/chunk-kkvk5eez.js.map +10 -0
- package/bin/chunk-kv0b3sh5.js.map +10 -0
- package/bin/chunk-kvfs5rat.js.map +10 -0
- package/bin/chunk-mf0qqhvb.js.map +10 -0
- package/bin/chunk-mkze6twx.js.map +10 -0
- package/bin/chunk-mzjs3qj3.js.map +10 -0
- package/bin/chunk-n10mj2m3.js.map +17 -0
- package/bin/chunk-n2fbt143.js.map +9 -0
- package/bin/chunk-n6a0rctn.js.map +9 -0
- package/bin/chunk-nd3yv9bg.js.map +388 -0
- package/bin/chunk-njn9a3jp.js.map +13 -0
- package/bin/chunk-nkhzpsnk.js.map +13 -0
- package/bin/chunk-ny5cyeha.js.map +10 -0
- package/bin/chunk-p3nkd9t2.js.map +10 -0
- package/bin/chunk-p3pr1t3k.js.map +10 -0
- package/bin/chunk-p7j7e7hb.js.map +10 -0
- package/bin/chunk-p89bk96c.js.map +10 -0
- package/bin/chunk-pnkd37ss.js.map +20 -0
- package/bin/chunk-prat77ba.js.map +577 -0
- package/bin/chunk-q6nf6fka.js.map +10 -0
- package/bin/chunk-qbpebjh2.js.map +10 -0
- package/bin/chunk-qzx2gre7.js.map +13 -0
- package/bin/chunk-r55kafff.js.map +9 -0
- package/bin/chunk-rrwp4x01.js.map +10 -0
- package/bin/chunk-rt02k446.js.map +11 -0
- package/bin/chunk-s39nwv01.js.map +9 -0
- package/bin/chunk-s983v0dp.js.map +10 -0
- package/bin/chunk-san15sca.js.map +10 -0
- package/bin/chunk-sfk73pp2.js.map +10 -0
- package/bin/chunk-sjd3wbjd.js.map +10 -0
- package/bin/chunk-swbdmja3.js.map +10 -0
- package/bin/chunk-tc8tvjey.js.map +33 -0
- package/bin/chunk-tcqtz83b.js.map +10 -0
- package/bin/chunk-tgxxchfy.js.map +28 -0
- package/bin/chunk-tvxakxv2.js.map +10 -0
- package/bin/chunk-v81ta3tx.js.map +15 -0
- package/bin/chunk-va2h4xya.js.map +37 -0
- package/bin/chunk-vezq3hc4.js.map +9 -0
- package/bin/chunk-vmbpvmpg.js.map +10 -0
- package/bin/chunk-w7p62pb6.js.map +17 -0
- package/bin/chunk-wr4x72qd.js.map +13 -0
- package/bin/chunk-x3ywttp7.js.map +10 -0
- package/bin/chunk-x988wmrk.js.map +10 -0
- package/bin/chunk-x9zjg1f7.js.map +20 -0
- package/bin/chunk-xaqrhtz6.js.map +10 -0
- package/bin/chunk-xd2mrkwy.js.map +10 -0
- package/bin/chunk-xfh2377b.js.map +10 -0
- package/bin/chunk-xs0ras4j.js.map +51 -0
- package/bin/chunk-xt7ap9fb.js.map +10 -0
- package/bin/chunk-xya5qk3h.js.map +16 -0
- package/bin/chunk-yg7w4jgd.js.map +10 -0
- package/bin/chunk-yhpv46tb.js.map +20 -0
- package/bin/chunk-ymy66kr8.js.map +15 -0
- package/bin/chunk-yx4z6xsb.js.map +11 -0
- package/bin/chunk-yymwxqpy.js.map +10 -0
- package/bin/chunk-z70c75xe.js.map +11 -0
- package/bin/chunk-zkqyr3hc.js.map +10 -0
- package/bin/index.js.map +12 -0
- package/bin/lildax +0 -0
- package/package.json +15 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../node_modules/.bun/@ai-sdk+google-vertex@4.0.128+681b88a6fb77e557/node_modules/@ai-sdk/google-vertex/dist/anthropic/index.mjs", "../../node_modules/.bun/@ai-sdk+anthropic@3.0.77+d6123d32214422cb/node_modules/@ai-sdk/anthropic/dist/internal/index.mjs"],
|
|
4
|
+
"sourcesContent": [
|
|
5
|
+
"// src/anthropic/google-vertex-anthropic-provider-node.ts\nimport { resolve } from \"@ai-sdk/provider-utils\";\n\n// src/google-vertex-auth-google-auth-library.ts\nimport { GoogleAuth } from \"google-auth-library\";\nfunction createAuthTokenGenerator(options) {\n const auth = new GoogleAuth({\n scopes: [\"https://www.googleapis.com/auth/cloud-platform\"],\n ...options\n });\n return async function generateAuthToken() {\n var _a;\n const client = await auth.getClient();\n const token = await client.getAccessToken();\n return (_a = token == null ? void 0 : token.token) != null ? _a : null;\n };\n}\n\n// src/anthropic/google-vertex-anthropic-provider.ts\nimport {\n NoSuchModelError\n} from \"@ai-sdk/provider\";\nimport {\n loadOptionalSetting,\n withoutTrailingSlash\n} from \"@ai-sdk/provider-utils\";\nimport {\n anthropicTools,\n AnthropicMessagesLanguageModel\n} from \"@ai-sdk/anthropic/internal\";\nvar vertexAnthropicTools = {\n /**\n * The bash tool enables Claude to execute shell commands in a persistent bash session,\n * allowing system operations, script execution, and command-line automation.\n *\n * Image results are supported.\n */\n bash_20241022: anthropicTools.bash_20241022,\n /**\n * The bash tool enables Claude to execute shell commands in a persistent bash session,\n * allowing system operations, script execution, and command-line automation.\n *\n * Image results are supported.\n */\n bash_20250124: anthropicTools.bash_20250124,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files,\n * helping you debug, fix, and improve your code or other text documents.\n *\n * Supported models: Claude Sonnet 3.5\n */\n textEditor_20241022: anthropicTools.textEditor_20241022,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files,\n * helping you debug, fix, and improve your code or other text documents.\n *\n * Supported models: Claude Sonnet 3.7\n */\n textEditor_20250124: anthropicTools.textEditor_20250124,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files.\n * Note: This version does not support the \"undo_edit\" command.\n * @deprecated Use textEditor_20250728 instead\n */\n textEditor_20250429: anthropicTools.textEditor_20250429,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files.\n * Note: This version does not support the \"undo_edit\" command and adds optional max_characters parameter.\n * Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1\n */\n textEditor_20250728: anthropicTools.textEditor_20250728,\n /**\n * Claude can interact with computer environments through the computer use tool, which\n * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.\n *\n * Image results are supported.\n */\n computer_20241022: anthropicTools.computer_20241022,\n /**\n * Creates a web search tool that gives Claude direct access to real-time web content.\n */\n webSearch_20250305: anthropicTools.webSearch_20250305,\n /**\n * Creates a tool search tool that uses regex patterns to find tools.\n *\n * The tool search tool enables Claude to work with hundreds or thousands of tools\n * by dynamically discovering and loading them on-demand.\n *\n * Use `providerOptions: { anthropic: { deferLoading: true } }` on other tools\n * to mark them for deferred loading.\n */\n toolSearchRegex_20251119: anthropicTools.toolSearchRegex_20251119,\n /**\n * Creates a tool search tool that uses BM25 (natural language) to find tools.\n *\n * The tool search tool enables Claude to work with hundreds or thousands of tools\n * by dynamically discovering and loading them on-demand.\n *\n * Use `providerOptions: { anthropic: { deferLoading: true } }` on other tools\n * to mark them for deferred loading.\n */\n toolSearchBm25_20251119: anthropicTools.toolSearchBm25_20251119\n};\nfunction createVertexAnthropic(options = {}) {\n const getBaseURL = () => {\n var _a;\n const location = loadOptionalSetting({\n settingValue: options.location,\n environmentVariableName: \"GOOGLE_VERTEX_LOCATION\"\n });\n const project = loadOptionalSetting({\n settingValue: options.project,\n environmentVariableName: \"GOOGLE_VERTEX_PROJECT\"\n });\n return (_a = withoutTrailingSlash(options.baseURL)) != null ? _a : `https://${location === \"global\" ? \"\" : location + \"-\"}aiplatform.googleapis.com/v1/projects/${project}/locations/${location}/publishers/anthropic/models`;\n };\n const createChatModel = (modelId) => {\n var _a;\n return new AnthropicMessagesLanguageModel(modelId, {\n provider: \"vertex.anthropic.messages\",\n baseURL: getBaseURL(),\n headers: (_a = options.headers) != null ? _a : {},\n fetch: options.fetch,\n buildRequestUrl: (baseURL, isStreaming) => `${baseURL}/${modelId}:${isStreaming ? \"streamRawPredict\" : \"rawPredict\"}`,\n transformRequestBody: (args) => {\n const { model, ...rest } = args;\n return {\n ...rest,\n anthropic_version: \"vertex-2023-10-16\"\n };\n },\n // Google Vertex Anthropic doesn't support URL sources, force download and base64 conversion\n supportedUrls: () => ({}),\n // force the use of JSON tool fallback for structured outputs since beta header isn't supported\n supportsNativeStructuredOutput: false,\n // Vertex Anthropic doesn't support strict mode on tool definitions.\n supportsStrictTools: false\n });\n };\n const provider = function(modelId) {\n if (new.target) {\n throw new Error(\n \"The Anthropic model function cannot be called with the new keyword.\"\n );\n }\n return createChatModel(modelId);\n };\n provider.specificationVersion = \"v3\";\n provider.languageModel = createChatModel;\n provider.chat = createChatModel;\n provider.messages = createChatModel;\n provider.embeddingModel = (modelId) => {\n throw new NoSuchModelError({ modelId, modelType: \"embeddingModel\" });\n };\n provider.textEmbeddingModel = provider.embeddingModel;\n provider.imageModel = (modelId) => {\n throw new NoSuchModelError({ modelId, modelType: \"imageModel\" });\n };\n provider.tools = vertexAnthropicTools;\n return provider;\n}\n\n// src/anthropic/google-vertex-anthropic-provider-node.ts\nfunction createVertexAnthropic2(options = {}) {\n var _a;\n const generateAuthToken = (_a = options.generateAuthToken) != null ? _a : createAuthTokenGenerator(options.googleAuthOptions);\n return createVertexAnthropic({\n ...options,\n headers: async () => ({\n Authorization: `Bearer ${await generateAuthToken()}`,\n ...await resolve(options.headers)\n })\n });\n}\nvar vertexAnthropic = createVertexAnthropic2();\nexport {\n createVertexAnthropic2 as createVertexAnthropic,\n vertexAnthropic\n};\n//# sourceMappingURL=index.mjs.map",
|
|
6
|
+
"// src/anthropic-messages-language-model.ts\nimport {\n APICallError\n} from \"@ai-sdk/provider\";\nimport {\n combineHeaders,\n createEventSourceResponseHandler,\n createJsonResponseHandler,\n createToolNameMapping,\n generateId,\n parseProviderOptions as parseProviderOptions2,\n postJsonToApi,\n resolve\n} from \"@ai-sdk/provider-utils\";\n\n// src/anthropic-error.ts\nimport {\n createJsonErrorResponseHandler,\n lazySchema,\n zodSchema\n} from \"@ai-sdk/provider-utils\";\nimport { z } from \"zod/v4\";\nvar anthropicErrorDataSchema = lazySchema(\n () => zodSchema(\n z.object({\n type: z.literal(\"error\"),\n error: z.object({\n type: z.string(),\n message: z.string()\n })\n })\n )\n);\nvar anthropicFailedResponseHandler = createJsonErrorResponseHandler({\n errorSchema: anthropicErrorDataSchema,\n errorToMessage: (data) => data.error.message\n});\n\n// src/anthropic-messages-api.ts\nimport {\n lazySchema as lazySchema2,\n zodSchema as zodSchema2\n} from \"@ai-sdk/provider-utils\";\nimport { z as z2 } from \"zod/v4\";\nvar anthropicMessagesResponseSchema = lazySchema2(\n () => zodSchema2(\n z2.object({\n type: z2.literal(\"message\"),\n id: z2.string().nullish(),\n model: z2.string().nullish(),\n content: z2.array(\n z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"text\"),\n text: z2.string(),\n citations: z2.array(\n z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"web_search_result_location\"),\n cited_text: z2.string(),\n url: z2.string(),\n title: z2.string(),\n encrypted_index: z2.string()\n }),\n z2.object({\n type: z2.literal(\"page_location\"),\n cited_text: z2.string(),\n document_index: z2.number(),\n document_title: z2.string().nullable(),\n start_page_number: z2.number(),\n end_page_number: z2.number()\n }),\n z2.object({\n type: z2.literal(\"char_location\"),\n cited_text: z2.string(),\n document_index: z2.number(),\n document_title: z2.string().nullable(),\n start_char_index: z2.number(),\n end_char_index: z2.number()\n })\n ])\n ).optional()\n }),\n z2.object({\n type: z2.literal(\"thinking\"),\n thinking: z2.string(),\n signature: z2.string()\n }),\n z2.object({\n type: z2.literal(\"redacted_thinking\"),\n data: z2.string()\n }),\n z2.object({\n type: z2.literal(\"compaction\"),\n content: z2.string()\n }),\n z2.object({\n type: z2.literal(\"tool_use\"),\n id: z2.string(),\n name: z2.string(),\n input: z2.unknown(),\n // Programmatic tool calling: caller info when triggered from code execution\n caller: z2.union([\n z2.object({\n type: z2.literal(\"code_execution_20250825\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"code_execution_20260120\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"direct\")\n })\n ]).optional()\n }),\n z2.object({\n type: z2.literal(\"server_tool_use\"),\n id: z2.string(),\n name: z2.string(),\n input: z2.record(z2.string(), z2.unknown()).nullish(),\n caller: z2.union([\n z2.object({\n type: z2.literal(\"code_execution_20260120\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"direct\")\n })\n ]).optional()\n }),\n z2.object({\n type: z2.literal(\"mcp_tool_use\"),\n id: z2.string(),\n name: z2.string(),\n input: z2.unknown(),\n server_name: z2.string()\n }),\n z2.object({\n type: z2.literal(\"mcp_tool_result\"),\n tool_use_id: z2.string(),\n is_error: z2.boolean(),\n content: z2.array(\n z2.union([\n z2.string(),\n z2.object({ type: z2.literal(\"text\"), text: z2.string() })\n ])\n )\n }),\n z2.object({\n type: z2.literal(\"web_fetch_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.object({\n type: z2.literal(\"web_fetch_result\"),\n url: z2.string(),\n retrieved_at: z2.string(),\n content: z2.object({\n type: z2.literal(\"document\"),\n title: z2.string().nullable(),\n citations: z2.object({ enabled: z2.boolean() }).optional(),\n source: z2.union([\n z2.object({\n type: z2.literal(\"base64\"),\n media_type: z2.literal(\"application/pdf\"),\n data: z2.string()\n }),\n z2.object({\n type: z2.literal(\"text\"),\n media_type: z2.literal(\"text/plain\"),\n data: z2.string()\n })\n ])\n })\n }),\n z2.object({\n type: z2.literal(\"web_fetch_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n z2.object({\n type: z2.literal(\"web_search_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.array(\n z2.object({\n type: z2.literal(\"web_search_result\"),\n url: z2.string(),\n title: z2.string(),\n encrypted_content: z2.string(),\n page_age: z2.string().nullish()\n })\n ),\n z2.object({\n type: z2.literal(\"web_search_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // code execution results for code_execution_20250522 tool:\n z2.object({\n type: z2.literal(\"code_execution_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.object({\n type: z2.literal(\"code_execution_result\"),\n stdout: z2.string(),\n stderr: z2.string(),\n return_code: z2.number(),\n content: z2.array(\n z2.object({\n type: z2.literal(\"code_execution_output\"),\n file_id: z2.string()\n })\n ).optional().default([])\n }),\n z2.object({\n type: z2.literal(\"encrypted_code_execution_result\"),\n encrypted_stdout: z2.string(),\n stderr: z2.string(),\n return_code: z2.number(),\n content: z2.array(\n z2.object({\n type: z2.literal(\"code_execution_output\"),\n file_id: z2.string()\n })\n ).optional().default([])\n }),\n z2.object({\n type: z2.literal(\"code_execution_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // bash code execution results for code_execution_20250825 tool:\n z2.object({\n type: z2.literal(\"bash_code_execution_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"bash_code_execution_result\"),\n content: z2.array(\n z2.object({\n type: z2.literal(\"bash_code_execution_output\"),\n file_id: z2.string()\n })\n ),\n stdout: z2.string(),\n stderr: z2.string(),\n return_code: z2.number()\n }),\n z2.object({\n type: z2.literal(\"bash_code_execution_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // text editor code execution results for code_execution_20250825 tool:\n z2.object({\n type: z2.literal(\"text_editor_code_execution_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"text_editor_code_execution_tool_result_error\"),\n error_code: z2.string()\n }),\n z2.object({\n type: z2.literal(\"text_editor_code_execution_view_result\"),\n content: z2.string(),\n file_type: z2.string(),\n num_lines: z2.number().nullable(),\n start_line: z2.number().nullable(),\n total_lines: z2.number().nullable()\n }),\n z2.object({\n type: z2.literal(\"text_editor_code_execution_create_result\"),\n is_file_update: z2.boolean()\n }),\n z2.object({\n type: z2.literal(\n \"text_editor_code_execution_str_replace_result\"\n ),\n lines: z2.array(z2.string()).nullable(),\n new_lines: z2.number().nullable(),\n new_start: z2.number().nullable(),\n old_lines: z2.number().nullable(),\n old_start: z2.number().nullable()\n })\n ])\n }),\n // tool search tool results for tool_search_tool_regex_20251119 and tool_search_tool_bm25_20251119:\n z2.object({\n type: z2.literal(\"tool_search_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.object({\n type: z2.literal(\"tool_search_tool_search_result\"),\n tool_references: z2.array(\n z2.object({\n type: z2.literal(\"tool_reference\"),\n tool_name: z2.string()\n })\n )\n }),\n z2.object({\n type: z2.literal(\"tool_search_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // advisor results for advisor_20260301:\n z2.object({\n type: z2.literal(\"advisor_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"advisor_result\"),\n text: z2.string()\n }),\n z2.object({\n type: z2.literal(\"advisor_redacted_result\"),\n encrypted_content: z2.string()\n }),\n z2.object({\n type: z2.literal(\"advisor_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n })\n ])\n ),\n stop_reason: z2.string().nullish(),\n stop_sequence: z2.string().nullish(),\n usage: z2.looseObject({\n input_tokens: z2.number(),\n output_tokens: z2.number(),\n cache_creation_input_tokens: z2.number().nullish(),\n cache_read_input_tokens: z2.number().nullish(),\n iterations: z2.array(\n z2.union([\n z2.object({\n type: z2.union([z2.literal(\"compaction\"), z2.literal(\"message\")]),\n input_tokens: z2.number(),\n output_tokens: z2.number(),\n cache_creation_input_tokens: z2.number().nullish(),\n cache_read_input_tokens: z2.number().nullish()\n }),\n z2.object({\n type: z2.literal(\"advisor_message\"),\n model: z2.string(),\n input_tokens: z2.number(),\n output_tokens: z2.number(),\n cache_creation_input_tokens: z2.number().nullish(),\n cache_read_input_tokens: z2.number().nullish()\n })\n ])\n ).nullish()\n }),\n container: z2.object({\n expires_at: z2.string(),\n id: z2.string(),\n skills: z2.array(\n z2.object({\n type: z2.union([z2.literal(\"anthropic\"), z2.literal(\"custom\")]),\n skill_id: z2.string(),\n version: z2.string()\n })\n ).nullish()\n }).nullish(),\n context_management: z2.object({\n applied_edits: z2.array(\n z2.union([\n z2.object({\n type: z2.literal(\"clear_tool_uses_20250919\"),\n cleared_tool_uses: z2.number(),\n cleared_input_tokens: z2.number()\n }),\n z2.object({\n type: z2.literal(\"clear_thinking_20251015\"),\n cleared_thinking_turns: z2.number(),\n cleared_input_tokens: z2.number()\n }),\n z2.object({\n type: z2.literal(\"compact_20260112\")\n })\n ])\n )\n }).nullish()\n })\n )\n);\nvar anthropicMessagesChunkSchema = lazySchema2(\n () => zodSchema2(\n z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"message_start\"),\n message: z2.object({\n id: z2.string().nullish(),\n model: z2.string().nullish(),\n role: z2.string().nullish(),\n usage: z2.looseObject({\n input_tokens: z2.number(),\n cache_creation_input_tokens: z2.number().nullish(),\n cache_read_input_tokens: z2.number().nullish()\n }),\n // Programmatic tool calling: content may be pre-populated for deferred tool calls\n content: z2.array(\n z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"tool_use\"),\n id: z2.string(),\n name: z2.string(),\n input: z2.unknown(),\n caller: z2.union([\n z2.object({\n type: z2.literal(\"code_execution_20250825\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"code_execution_20260120\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"direct\")\n })\n ]).optional()\n })\n ])\n ).nullish(),\n stop_reason: z2.string().nullish(),\n container: z2.object({\n expires_at: z2.string(),\n id: z2.string()\n }).nullish()\n })\n }),\n z2.object({\n type: z2.literal(\"content_block_start\"),\n index: z2.number(),\n content_block: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"text\"),\n text: z2.string()\n }),\n z2.object({\n type: z2.literal(\"thinking\"),\n thinking: z2.string()\n }),\n z2.object({\n type: z2.literal(\"tool_use\"),\n id: z2.string(),\n name: z2.string(),\n // Programmatic tool calling: input may be present directly for deferred tool calls\n input: z2.record(z2.string(), z2.unknown()).optional(),\n // Programmatic tool calling: caller info when triggered from code execution\n caller: z2.union([\n z2.object({\n type: z2.literal(\"code_execution_20250825\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"code_execution_20260120\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"direct\")\n })\n ]).optional()\n }),\n z2.object({\n type: z2.literal(\"redacted_thinking\"),\n data: z2.string()\n }),\n z2.object({\n type: z2.literal(\"compaction\"),\n content: z2.string().nullish()\n }),\n z2.object({\n type: z2.literal(\"server_tool_use\"),\n id: z2.string(),\n name: z2.string(),\n input: z2.record(z2.string(), z2.unknown()).nullish(),\n caller: z2.union([\n z2.object({\n type: z2.literal(\"code_execution_20260120\"),\n tool_id: z2.string()\n }),\n z2.object({\n type: z2.literal(\"direct\")\n })\n ]).optional()\n }),\n z2.object({\n type: z2.literal(\"mcp_tool_use\"),\n id: z2.string(),\n name: z2.string(),\n input: z2.unknown(),\n server_name: z2.string()\n }),\n z2.object({\n type: z2.literal(\"mcp_tool_result\"),\n tool_use_id: z2.string(),\n is_error: z2.boolean(),\n content: z2.array(\n z2.union([\n z2.string(),\n z2.object({ type: z2.literal(\"text\"), text: z2.string() })\n ])\n )\n }),\n z2.object({\n type: z2.literal(\"web_fetch_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.object({\n type: z2.literal(\"web_fetch_result\"),\n url: z2.string(),\n retrieved_at: z2.string(),\n content: z2.object({\n type: z2.literal(\"document\"),\n title: z2.string().nullable(),\n citations: z2.object({ enabled: z2.boolean() }).optional(),\n source: z2.union([\n z2.object({\n type: z2.literal(\"base64\"),\n media_type: z2.literal(\"application/pdf\"),\n data: z2.string()\n }),\n z2.object({\n type: z2.literal(\"text\"),\n media_type: z2.literal(\"text/plain\"),\n data: z2.string()\n })\n ])\n })\n }),\n z2.object({\n type: z2.literal(\"web_fetch_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n z2.object({\n type: z2.literal(\"web_search_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.array(\n z2.object({\n type: z2.literal(\"web_search_result\"),\n url: z2.string(),\n title: z2.string(),\n encrypted_content: z2.string(),\n page_age: z2.string().nullish()\n })\n ),\n z2.object({\n type: z2.literal(\"web_search_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // code execution results for code_execution_20250522 tool:\n z2.object({\n type: z2.literal(\"code_execution_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.object({\n type: z2.literal(\"code_execution_result\"),\n stdout: z2.string(),\n stderr: z2.string(),\n return_code: z2.number(),\n content: z2.array(\n z2.object({\n type: z2.literal(\"code_execution_output\"),\n file_id: z2.string()\n })\n ).optional().default([])\n }),\n z2.object({\n type: z2.literal(\"encrypted_code_execution_result\"),\n encrypted_stdout: z2.string(),\n stderr: z2.string(),\n return_code: z2.number(),\n content: z2.array(\n z2.object({\n type: z2.literal(\"code_execution_output\"),\n file_id: z2.string()\n })\n ).optional().default([])\n }),\n z2.object({\n type: z2.literal(\"code_execution_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // bash code execution results for code_execution_20250825 tool:\n z2.object({\n type: z2.literal(\"bash_code_execution_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"bash_code_execution_result\"),\n content: z2.array(\n z2.object({\n type: z2.literal(\"bash_code_execution_output\"),\n file_id: z2.string()\n })\n ),\n stdout: z2.string(),\n stderr: z2.string(),\n return_code: z2.number()\n }),\n z2.object({\n type: z2.literal(\"bash_code_execution_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // text editor code execution results for code_execution_20250825 tool:\n z2.object({\n type: z2.literal(\"text_editor_code_execution_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"text_editor_code_execution_tool_result_error\"),\n error_code: z2.string()\n }),\n z2.object({\n type: z2.literal(\"text_editor_code_execution_view_result\"),\n content: z2.string(),\n file_type: z2.string(),\n num_lines: z2.number().nullable(),\n start_line: z2.number().nullable(),\n total_lines: z2.number().nullable()\n }),\n z2.object({\n type: z2.literal(\"text_editor_code_execution_create_result\"),\n is_file_update: z2.boolean()\n }),\n z2.object({\n type: z2.literal(\n \"text_editor_code_execution_str_replace_result\"\n ),\n lines: z2.array(z2.string()).nullable(),\n new_lines: z2.number().nullable(),\n new_start: z2.number().nullable(),\n old_lines: z2.number().nullable(),\n old_start: z2.number().nullable()\n })\n ])\n }),\n // tool search tool results for tool_search_tool_regex_20251119 and tool_search_tool_bm25_20251119:\n z2.object({\n type: z2.literal(\"tool_search_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.union([\n z2.object({\n type: z2.literal(\"tool_search_tool_search_result\"),\n tool_references: z2.array(\n z2.object({\n type: z2.literal(\"tool_reference\"),\n tool_name: z2.string()\n })\n )\n }),\n z2.object({\n type: z2.literal(\"tool_search_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n }),\n // advisor results for advisor_20260301:\n z2.object({\n type: z2.literal(\"advisor_tool_result\"),\n tool_use_id: z2.string(),\n content: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"advisor_result\"),\n text: z2.string()\n }),\n z2.object({\n type: z2.literal(\"advisor_redacted_result\"),\n encrypted_content: z2.string()\n }),\n z2.object({\n type: z2.literal(\"advisor_tool_result_error\"),\n error_code: z2.string()\n })\n ])\n })\n ])\n }),\n z2.object({\n type: z2.literal(\"content_block_delta\"),\n index: z2.number(),\n delta: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"input_json_delta\"),\n partial_json: z2.string()\n }),\n z2.object({\n type: z2.literal(\"text_delta\"),\n text: z2.string()\n }),\n z2.object({\n type: z2.literal(\"thinking_delta\"),\n thinking: z2.string()\n }),\n z2.object({\n type: z2.literal(\"signature_delta\"),\n signature: z2.string()\n }),\n z2.object({\n type: z2.literal(\"compaction_delta\"),\n content: z2.string().nullish()\n }),\n z2.object({\n type: z2.literal(\"citations_delta\"),\n citation: z2.discriminatedUnion(\"type\", [\n z2.object({\n type: z2.literal(\"web_search_result_location\"),\n cited_text: z2.string(),\n url: z2.string(),\n title: z2.string(),\n encrypted_index: z2.string()\n }),\n z2.object({\n type: z2.literal(\"page_location\"),\n cited_text: z2.string(),\n document_index: z2.number(),\n document_title: z2.string().nullable(),\n start_page_number: z2.number(),\n end_page_number: z2.number()\n }),\n z2.object({\n type: z2.literal(\"char_location\"),\n cited_text: z2.string(),\n document_index: z2.number(),\n document_title: z2.string().nullable(),\n start_char_index: z2.number(),\n end_char_index: z2.number()\n })\n ])\n })\n ])\n }),\n z2.object({\n type: z2.literal(\"content_block_stop\"),\n index: z2.number()\n }),\n z2.object({\n type: z2.literal(\"error\"),\n error: z2.object({\n type: z2.string(),\n message: z2.string()\n })\n }),\n z2.object({\n type: z2.literal(\"message_delta\"),\n delta: z2.object({\n stop_reason: z2.string().nullish(),\n stop_sequence: z2.string().nullish(),\n container: z2.object({\n expires_at: z2.string(),\n id: z2.string(),\n skills: z2.array(\n z2.object({\n type: z2.union([\n z2.literal(\"anthropic\"),\n z2.literal(\"custom\")\n ]),\n skill_id: z2.string(),\n version: z2.string()\n })\n ).nullish()\n }).nullish()\n }),\n usage: z2.looseObject({\n input_tokens: z2.number().nullish(),\n output_tokens: z2.number(),\n cache_creation_input_tokens: z2.number().nullish(),\n cache_read_input_tokens: z2.number().nullish(),\n iterations: z2.array(\n z2.union([\n z2.object({\n type: z2.union([\n z2.literal(\"compaction\"),\n z2.literal(\"message\")\n ]),\n input_tokens: z2.number(),\n output_tokens: z2.number(),\n cache_creation_input_tokens: z2.number().nullish(),\n cache_read_input_tokens: z2.number().nullish()\n }),\n z2.object({\n type: z2.literal(\"advisor_message\"),\n model: z2.string(),\n input_tokens: z2.number(),\n output_tokens: z2.number(),\n cache_creation_input_tokens: z2.number().nullish(),\n cache_read_input_tokens: z2.number().nullish()\n })\n ])\n ).nullish()\n }),\n context_management: z2.object({\n applied_edits: z2.array(\n z2.union([\n z2.object({\n type: z2.literal(\"clear_tool_uses_20250919\"),\n cleared_tool_uses: z2.number(),\n cleared_input_tokens: z2.number()\n }),\n z2.object({\n type: z2.literal(\"clear_thinking_20251015\"),\n cleared_thinking_turns: z2.number(),\n cleared_input_tokens: z2.number()\n }),\n z2.object({\n type: z2.literal(\"compact_20260112\")\n })\n ])\n )\n }).nullish()\n }),\n z2.object({\n type: z2.literal(\"message_stop\")\n }),\n z2.object({\n type: z2.literal(\"ping\")\n })\n ])\n )\n);\nvar anthropicReasoningMetadataSchema = lazySchema2(\n () => zodSchema2(\n z2.object({\n signature: z2.string().optional(),\n redactedData: z2.string().optional()\n })\n )\n);\n\n// src/anthropic-messages-options.ts\nimport { z as z3 } from \"zod/v4\";\nvar anthropicFilePartProviderOptions = z3.object({\n /**\n * Citation configuration for this document.\n * When enabled, this document will generate citations in the response.\n */\n citations: z3.object({\n /**\n * Enable citations for this document\n */\n enabled: z3.boolean()\n }).optional(),\n /**\n * Custom title for the document.\n * If not provided, the filename will be used.\n */\n title: z3.string().optional(),\n /**\n * Context about the document that will be passed to the model\n * but not used towards cited content.\n * Useful for storing document metadata as text or stringified JSON.\n */\n context: z3.string().optional()\n});\nvar anthropicLanguageModelOptions = z3.object({\n /**\n * Whether to send reasoning to the model.\n *\n * This allows you to deactivate reasoning inputs for models that do not support them.\n */\n sendReasoning: z3.boolean().optional(),\n /**\n * Determines how structured outputs are generated.\n *\n * - `outputFormat`: Use the `output_config.format` parameter to specify the structured output format.\n * - `jsonTool`: Use a special 'json' tool to specify the structured output format.\n * - `auto`: Use 'outputFormat' when supported, otherwise use 'jsonTool' (default).\n */\n structuredOutputMode: z3.enum([\"outputFormat\", \"jsonTool\", \"auto\"]).optional(),\n /**\n * Configuration for enabling Claude's extended thinking.\n *\n * When enabled, responses include thinking content blocks showing Claude's thinking process before the final answer.\n * Requires a minimum budget of 1,024 tokens and counts towards the `max_tokens` limit.\n */\n thinking: z3.discriminatedUnion(\"type\", [\n z3.object({\n /** for Sonnet 4.6, Opus 4.6, and newer models */\n type: z3.literal(\"adaptive\"),\n /**\n * Controls whether thinking content is included in the response.\n * - `\"omitted\"`: Thinking blocks are present but text is empty (default for Opus 4.7+).\n * - `\"summarized\"`: Thinking content is returned. Required to see reasoning output.\n */\n display: z3.enum([\"omitted\", \"summarized\"]).optional()\n }),\n z3.object({\n /** for models before Opus 4.6, except Sonnet 4.6 still supports it */\n type: z3.literal(\"enabled\"),\n budgetTokens: z3.number().optional()\n }),\n z3.object({\n type: z3.literal(\"disabled\")\n })\n ]).optional(),\n /**\n * Whether to disable parallel function calling during tool use. Default is false.\n * When set to true, Claude will use at most one tool per response.\n */\n disableParallelToolUse: z3.boolean().optional(),\n /**\n * Cache control settings for this message.\n * See https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching\n */\n cacheControl: z3.object({\n type: z3.literal(\"ephemeral\"),\n ttl: z3.union([z3.literal(\"5m\"), z3.literal(\"1h\")]).optional()\n }).optional(),\n /**\n * Metadata to include with the request.\n *\n * See https://platform.claude.com/docs/en/api/messages/create for details.\n */\n metadata: z3.object({\n /**\n * An external identifier for the user associated with the request.\n *\n * Should be a UUID, hash value, or other opaque identifier.\n * Must not contain PII (name, email, phone number, etc.).\n */\n userId: z3.string().optional()\n }).optional(),\n /**\n * MCP servers to be utilized in this request.\n */\n mcpServers: z3.array(\n z3.object({\n type: z3.literal(\"url\"),\n name: z3.string(),\n url: z3.string(),\n authorizationToken: z3.string().nullish(),\n toolConfiguration: z3.object({\n enabled: z3.boolean().nullish(),\n allowedTools: z3.array(z3.string()).nullish()\n }).nullish()\n })\n ).optional(),\n /**\n * Agent Skills configuration. Skills enable Claude to perform specialized tasks\n * like document processing (PPTX, DOCX, PDF, XLSX) and data analysis.\n * Requires code execution tool to be enabled.\n */\n container: z3.object({\n id: z3.string().optional(),\n skills: z3.array(\n z3.object({\n type: z3.union([z3.literal(\"anthropic\"), z3.literal(\"custom\")]),\n skillId: z3.string(),\n version: z3.string().optional()\n })\n ).optional()\n }).optional(),\n /**\n * Whether to enable fine-grained (eager) streaming of tool call inputs\n * and structured outputs for every function tool in the request. When\n * true (the default), each function tool receives a default of\n * `eager_input_streaming: true` unless it explicitly sets\n * `providerOptions.anthropic.eagerInputStreaming`.\n *\n * @default true\n */\n toolStreaming: z3.boolean().optional(),\n /**\n * @default 'high'\n */\n effort: z3.enum([\"low\", \"medium\", \"high\", \"xhigh\", \"max\"]).optional(),\n /**\n * Task budget for agentic turns. Informs the model of the total token budget\n * available for the current task, allowing it to prioritize work and wind down\n * gracefully as the budget is consumed.\n *\n * Advisory only — does not enforce a hard token limit.\n */\n taskBudget: z3.object({\n type: z3.literal(\"tokens\"),\n total: z3.number().int().min(2e4),\n remaining: z3.number().int().min(0).optional()\n }).optional(),\n /**\n * Enable fast mode for faster inference (2.5x faster output token speeds).\n * Only supported with claude-opus-4-6.\n */\n speed: z3.enum([\"fast\", \"standard\"]).optional(),\n /**\n * Controls where model inference runs for this request.\n *\n * - `\"global\"`: Inference may run in any available geography (default).\n * - `\"us\"`: Inference runs only in US-based infrastructure.\n *\n * See https://platform.claude.com/docs/en/build-with-claude/data-residency\n */\n inferenceGeo: z3.enum([\"us\", \"global\"]).optional(),\n /**\n * A set of beta features to enable.\n * Allow a provider to receive the full `betas` set if it needs it.\n */\n anthropicBeta: z3.array(z3.string()).optional(),\n contextManagement: z3.object({\n edits: z3.array(\n z3.discriminatedUnion(\"type\", [\n z3.object({\n type: z3.literal(\"clear_tool_uses_20250919\"),\n trigger: z3.discriminatedUnion(\"type\", [\n z3.object({\n type: z3.literal(\"input_tokens\"),\n value: z3.number()\n }),\n z3.object({\n type: z3.literal(\"tool_uses\"),\n value: z3.number()\n })\n ]).optional(),\n keep: z3.object({\n type: z3.literal(\"tool_uses\"),\n value: z3.number()\n }).optional(),\n clearAtLeast: z3.object({\n type: z3.literal(\"input_tokens\"),\n value: z3.number()\n }).optional(),\n clearToolInputs: z3.boolean().optional(),\n excludeTools: z3.array(z3.string()).optional()\n }),\n z3.object({\n type: z3.literal(\"clear_thinking_20251015\"),\n keep: z3.union([\n z3.literal(\"all\"),\n z3.object({\n type: z3.literal(\"thinking_turns\"),\n value: z3.number()\n })\n ]).optional()\n }),\n z3.object({\n type: z3.literal(\"compact_20260112\"),\n trigger: z3.object({\n type: z3.literal(\"input_tokens\"),\n value: z3.number()\n }).optional(),\n pauseAfterCompaction: z3.boolean().optional(),\n instructions: z3.string().optional()\n })\n ])\n )\n }).optional()\n});\n\n// src/anthropic-prepare-tools.ts\nimport {\n UnsupportedFunctionalityError\n} from \"@ai-sdk/provider\";\n\n// src/get-cache-control.ts\nvar MAX_CACHE_BREAKPOINTS = 4;\nfunction getCacheControl(providerMetadata) {\n var _a;\n const anthropic = providerMetadata == null ? void 0 : providerMetadata.anthropic;\n const cacheControlValue = (_a = anthropic == null ? void 0 : anthropic.cacheControl) != null ? _a : anthropic == null ? void 0 : anthropic.cache_control;\n return cacheControlValue;\n}\nvar CacheControlValidator = class {\n constructor() {\n this.breakpointCount = 0;\n this.warnings = [];\n }\n getCacheControl(providerMetadata, context) {\n const cacheControlValue = getCacheControl(providerMetadata);\n if (!cacheControlValue) {\n return void 0;\n }\n if (!context.canCache) {\n this.warnings.push({\n type: \"unsupported\",\n feature: \"cache_control on non-cacheable context\",\n details: `cache_control cannot be set on ${context.type}. It will be ignored.`\n });\n return void 0;\n }\n this.breakpointCount++;\n if (this.breakpointCount > MAX_CACHE_BREAKPOINTS) {\n this.warnings.push({\n type: \"unsupported\",\n feature: \"cacheControl breakpoint limit\",\n details: `Maximum ${MAX_CACHE_BREAKPOINTS} cache breakpoints exceeded (found ${this.breakpointCount}). This breakpoint will be ignored.`\n });\n return void 0;\n }\n return cacheControlValue;\n }\n getWarnings() {\n return this.warnings;\n }\n};\n\n// src/tool/advisor_20260301.ts\nimport {\n createProviderToolFactoryWithOutputSchema,\n lazySchema as lazySchema3,\n zodSchema as zodSchema3\n} from \"@ai-sdk/provider-utils\";\nimport { z as z4 } from \"zod/v4\";\nvar advisor_20260301ArgsSchema = lazySchema3(\n () => zodSchema3(\n z4.object({\n model: z4.string(),\n maxUses: z4.number().optional(),\n caching: z4.object({\n type: z4.literal(\"ephemeral\"),\n ttl: z4.union([z4.literal(\"5m\"), z4.literal(\"1h\")])\n }).optional()\n })\n )\n);\nvar advisor_20260301OutputSchema = lazySchema3(\n () => zodSchema3(\n z4.discriminatedUnion(\"type\", [\n z4.object({\n type: z4.literal(\"advisor_result\"),\n text: z4.string()\n }),\n z4.object({\n type: z4.literal(\"advisor_redacted_result\"),\n encryptedContent: z4.string()\n }),\n z4.object({\n type: z4.literal(\"advisor_tool_result_error\"),\n errorCode: z4.string()\n })\n ])\n )\n);\nvar advisor_20260301InputSchema = lazySchema3(\n () => zodSchema3(z4.object({}).strict())\n);\nvar factory = createProviderToolFactoryWithOutputSchema({\n id: \"anthropic.advisor_20260301\",\n inputSchema: advisor_20260301InputSchema,\n outputSchema: advisor_20260301OutputSchema,\n supportsDeferredResults: true\n});\nvar advisor_20260301 = (args) => {\n return factory(args);\n};\n\n// src/tool/text-editor_20250728.ts\nimport {\n createProviderToolFactory,\n lazySchema as lazySchema4,\n zodSchema as zodSchema4\n} from \"@ai-sdk/provider-utils\";\nimport { z as z5 } from \"zod/v4\";\nvar textEditor_20250728ArgsSchema = lazySchema4(\n () => zodSchema4(\n z5.object({\n maxCharacters: z5.number().optional()\n })\n )\n);\nvar textEditor_20250728InputSchema = lazySchema4(\n () => zodSchema4(\n z5.object({\n command: z5.enum([\"view\", \"create\", \"str_replace\", \"insert\"]),\n path: z5.string(),\n file_text: z5.string().optional(),\n insert_line: z5.number().int().optional(),\n new_str: z5.string().optional(),\n insert_text: z5.string().optional(),\n old_str: z5.string().optional(),\n view_range: z5.array(z5.number().int()).optional()\n })\n )\n);\nvar factory2 = createProviderToolFactory({\n id: \"anthropic.text_editor_20250728\",\n inputSchema: textEditor_20250728InputSchema\n});\nvar textEditor_20250728 = (args = {}) => {\n return factory2(args);\n};\n\n// src/tool/web-search_20260209.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema2,\n lazySchema as lazySchema5,\n zodSchema as zodSchema5\n} from \"@ai-sdk/provider-utils\";\nimport { z as z6 } from \"zod/v4\";\nvar webSearch_20260209ArgsSchema = lazySchema5(\n () => zodSchema5(\n z6.object({\n maxUses: z6.number().optional(),\n allowedDomains: z6.array(z6.string()).optional(),\n blockedDomains: z6.array(z6.string()).optional(),\n userLocation: z6.object({\n type: z6.literal(\"approximate\"),\n city: z6.string().optional(),\n region: z6.string().optional(),\n country: z6.string().optional(),\n timezone: z6.string().optional()\n }).optional()\n })\n )\n);\nvar webSearch_20260209OutputSchema = lazySchema5(\n () => zodSchema5(\n z6.array(\n z6.object({\n url: z6.string(),\n title: z6.string().nullable(),\n pageAge: z6.string().nullable(),\n encryptedContent: z6.string(),\n type: z6.literal(\"web_search_result\")\n })\n )\n )\n);\nvar webSearch_20260209InputSchema = lazySchema5(\n () => zodSchema5(\n z6.object({\n query: z6.string()\n })\n )\n);\nvar factory3 = createProviderToolFactoryWithOutputSchema2({\n id: \"anthropic.web_search_20260209\",\n inputSchema: webSearch_20260209InputSchema,\n outputSchema: webSearch_20260209OutputSchema,\n supportsDeferredResults: true\n});\nvar webSearch_20260209 = (args = {}) => {\n return factory3(args);\n};\n\n// src/tool/web-search_20250305.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema3,\n lazySchema as lazySchema6,\n zodSchema as zodSchema6\n} from \"@ai-sdk/provider-utils\";\nimport { z as z7 } from \"zod/v4\";\nvar webSearch_20250305ArgsSchema = lazySchema6(\n () => zodSchema6(\n z7.object({\n maxUses: z7.number().optional(),\n allowedDomains: z7.array(z7.string()).optional(),\n blockedDomains: z7.array(z7.string()).optional(),\n userLocation: z7.object({\n type: z7.literal(\"approximate\"),\n city: z7.string().optional(),\n region: z7.string().optional(),\n country: z7.string().optional(),\n timezone: z7.string().optional()\n }).optional()\n })\n )\n);\nvar webSearch_20250305OutputSchema = lazySchema6(\n () => zodSchema6(\n z7.array(\n z7.object({\n url: z7.string(),\n title: z7.string().nullable(),\n pageAge: z7.string().nullable(),\n encryptedContent: z7.string(),\n type: z7.literal(\"web_search_result\")\n })\n )\n )\n);\nvar webSearch_20250305InputSchema = lazySchema6(\n () => zodSchema6(\n z7.object({\n query: z7.string()\n })\n )\n);\nvar factory4 = createProviderToolFactoryWithOutputSchema3({\n id: \"anthropic.web_search_20250305\",\n inputSchema: webSearch_20250305InputSchema,\n outputSchema: webSearch_20250305OutputSchema,\n supportsDeferredResults: true\n});\nvar webSearch_20250305 = (args = {}) => {\n return factory4(args);\n};\n\n// src/tool/web-fetch-20260209.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema4,\n lazySchema as lazySchema7,\n zodSchema as zodSchema7\n} from \"@ai-sdk/provider-utils\";\nimport { z as z8 } from \"zod/v4\";\nvar webFetch_20260209ArgsSchema = lazySchema7(\n () => zodSchema7(\n z8.object({\n maxUses: z8.number().optional(),\n allowedDomains: z8.array(z8.string()).optional(),\n blockedDomains: z8.array(z8.string()).optional(),\n citations: z8.object({ enabled: z8.boolean() }).optional(),\n maxContentTokens: z8.number().optional()\n })\n )\n);\nvar webFetch_20260209OutputSchema = lazySchema7(\n () => zodSchema7(\n z8.object({\n type: z8.literal(\"web_fetch_result\"),\n url: z8.string(),\n content: z8.object({\n type: z8.literal(\"document\"),\n title: z8.string().nullable(),\n citations: z8.object({ enabled: z8.boolean() }).optional(),\n source: z8.union([\n z8.object({\n type: z8.literal(\"base64\"),\n mediaType: z8.literal(\"application/pdf\"),\n data: z8.string()\n }),\n z8.object({\n type: z8.literal(\"text\"),\n mediaType: z8.literal(\"text/plain\"),\n data: z8.string()\n })\n ])\n }),\n retrievedAt: z8.string().nullable()\n })\n )\n);\nvar webFetch_20260209InputSchema = lazySchema7(\n () => zodSchema7(\n z8.object({\n url: z8.string()\n })\n )\n);\nvar factory5 = createProviderToolFactoryWithOutputSchema4({\n id: \"anthropic.web_fetch_20260209\",\n inputSchema: webFetch_20260209InputSchema,\n outputSchema: webFetch_20260209OutputSchema,\n supportsDeferredResults: true\n});\nvar webFetch_20260209 = (args = {}) => {\n return factory5(args);\n};\n\n// src/tool/web-fetch-20250910.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema5,\n lazySchema as lazySchema8,\n zodSchema as zodSchema8\n} from \"@ai-sdk/provider-utils\";\nimport { z as z9 } from \"zod/v4\";\nvar webFetch_20250910ArgsSchema = lazySchema8(\n () => zodSchema8(\n z9.object({\n maxUses: z9.number().optional(),\n allowedDomains: z9.array(z9.string()).optional(),\n blockedDomains: z9.array(z9.string()).optional(),\n citations: z9.object({ enabled: z9.boolean() }).optional(),\n maxContentTokens: z9.number().optional()\n })\n )\n);\nvar webFetch_20250910OutputSchema = lazySchema8(\n () => zodSchema8(\n z9.object({\n type: z9.literal(\"web_fetch_result\"),\n url: z9.string(),\n content: z9.object({\n type: z9.literal(\"document\"),\n title: z9.string().nullable(),\n citations: z9.object({ enabled: z9.boolean() }).optional(),\n source: z9.union([\n z9.object({\n type: z9.literal(\"base64\"),\n mediaType: z9.literal(\"application/pdf\"),\n data: z9.string()\n }),\n z9.object({\n type: z9.literal(\"text\"),\n mediaType: z9.literal(\"text/plain\"),\n data: z9.string()\n })\n ])\n }),\n retrievedAt: z9.string().nullable()\n })\n )\n);\nvar webFetch_20250910InputSchema = lazySchema8(\n () => zodSchema8(\n z9.object({\n url: z9.string()\n })\n )\n);\nvar factory6 = createProviderToolFactoryWithOutputSchema5({\n id: \"anthropic.web_fetch_20250910\",\n inputSchema: webFetch_20250910InputSchema,\n outputSchema: webFetch_20250910OutputSchema,\n supportsDeferredResults: true\n});\nvar webFetch_20250910 = (args = {}) => {\n return factory6(args);\n};\n\n// src/anthropic-prepare-tools.ts\nimport { validateTypes } from \"@ai-sdk/provider-utils\";\nasync function prepareTools({\n tools,\n toolChoice,\n disableParallelToolUse,\n cacheControlValidator,\n supportsStructuredOutput,\n supportsStrictTools,\n defaultEagerInputStreaming = false\n}) {\n var _a, _b;\n tools = (tools == null ? void 0 : tools.length) ? tools : void 0;\n const toolWarnings = [];\n const betas = /* @__PURE__ */ new Set();\n const validator = cacheControlValidator || new CacheControlValidator();\n if (tools == null) {\n return { tools: void 0, toolChoice: void 0, toolWarnings, betas };\n }\n const anthropicTools2 = [];\n for (const tool of tools) {\n switch (tool.type) {\n case \"function\": {\n const cacheControl = validator.getCacheControl(tool.providerOptions, {\n type: \"tool definition\",\n canCache: true\n });\n const anthropicOptions = (_a = tool.providerOptions) == null ? void 0 : _a.anthropic;\n const eagerInputStreaming = (_b = anthropicOptions == null ? void 0 : anthropicOptions.eagerInputStreaming) != null ? _b : defaultEagerInputStreaming;\n const deferLoading = anthropicOptions == null ? void 0 : anthropicOptions.deferLoading;\n const allowedCallers = anthropicOptions == null ? void 0 : anthropicOptions.allowedCallers;\n if (!supportsStrictTools && tool.strict != null) {\n toolWarnings.push({\n type: \"unsupported\",\n feature: \"strict\",\n details: `Tool '${tool.name}' has strict: ${tool.strict}, but strict mode is not supported by this provider. The strict property will be ignored.`\n });\n }\n anthropicTools2.push({\n name: tool.name,\n description: tool.description,\n input_schema: tool.inputSchema,\n cache_control: cacheControl,\n ...eagerInputStreaming ? { eager_input_streaming: true } : {},\n ...supportsStrictTools === true && tool.strict != null ? { strict: tool.strict } : {},\n ...deferLoading != null ? { defer_loading: deferLoading } : {},\n ...allowedCallers != null ? { allowed_callers: allowedCallers } : {},\n ...tool.inputExamples != null ? {\n input_examples: tool.inputExamples.map(\n (example) => example.input\n )\n } : {}\n });\n if (supportsStructuredOutput === true) {\n betas.add(\"structured-outputs-2025-11-13\");\n }\n if (tool.inputExamples != null || allowedCallers != null) {\n betas.add(\"advanced-tool-use-2025-11-20\");\n }\n break;\n }\n case \"provider\": {\n switch (tool.id) {\n case \"anthropic.code_execution_20250522\": {\n betas.add(\"code-execution-2025-05-22\");\n anthropicTools2.push({\n type: \"code_execution_20250522\",\n name: \"code_execution\",\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.code_execution_20250825\": {\n betas.add(\"code-execution-2025-08-25\");\n anthropicTools2.push({\n type: \"code_execution_20250825\",\n name: \"code_execution\"\n });\n break;\n }\n case \"anthropic.code_execution_20260120\": {\n anthropicTools2.push({\n type: \"code_execution_20260120\",\n name: \"code_execution\"\n });\n break;\n }\n case \"anthropic.computer_20250124\": {\n betas.add(\"computer-use-2025-01-24\");\n anthropicTools2.push({\n name: \"computer\",\n type: \"computer_20250124\",\n display_width_px: tool.args.displayWidthPx,\n display_height_px: tool.args.displayHeightPx,\n display_number: tool.args.displayNumber,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.computer_20251124\": {\n betas.add(\"computer-use-2025-11-24\");\n anthropicTools2.push({\n name: \"computer\",\n type: \"computer_20251124\",\n display_width_px: tool.args.displayWidthPx,\n display_height_px: tool.args.displayHeightPx,\n display_number: tool.args.displayNumber,\n enable_zoom: tool.args.enableZoom,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.computer_20241022\": {\n betas.add(\"computer-use-2024-10-22\");\n anthropicTools2.push({\n name: \"computer\",\n type: \"computer_20241022\",\n display_width_px: tool.args.displayWidthPx,\n display_height_px: tool.args.displayHeightPx,\n display_number: tool.args.displayNumber,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.text_editor_20250124\": {\n betas.add(\"computer-use-2025-01-24\");\n anthropicTools2.push({\n name: \"str_replace_editor\",\n type: \"text_editor_20250124\",\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.text_editor_20241022\": {\n betas.add(\"computer-use-2024-10-22\");\n anthropicTools2.push({\n name: \"str_replace_editor\",\n type: \"text_editor_20241022\",\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.text_editor_20250429\": {\n betas.add(\"computer-use-2025-01-24\");\n anthropicTools2.push({\n name: \"str_replace_based_edit_tool\",\n type: \"text_editor_20250429\",\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.text_editor_20250728\": {\n const args = await validateTypes({\n value: tool.args,\n schema: textEditor_20250728ArgsSchema\n });\n anthropicTools2.push({\n name: \"str_replace_based_edit_tool\",\n type: \"text_editor_20250728\",\n max_characters: args.maxCharacters,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.bash_20250124\": {\n betas.add(\"computer-use-2025-01-24\");\n anthropicTools2.push({\n name: \"bash\",\n type: \"bash_20250124\",\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.bash_20241022\": {\n betas.add(\"computer-use-2024-10-22\");\n anthropicTools2.push({\n name: \"bash\",\n type: \"bash_20241022\",\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.memory_20250818\": {\n betas.add(\"context-management-2025-06-27\");\n anthropicTools2.push({\n name: \"memory\",\n type: \"memory_20250818\"\n });\n break;\n }\n case \"anthropic.web_fetch_20250910\": {\n betas.add(\"web-fetch-2025-09-10\");\n const args = await validateTypes({\n value: tool.args,\n schema: webFetch_20250910ArgsSchema\n });\n anthropicTools2.push({\n type: \"web_fetch_20250910\",\n name: \"web_fetch\",\n max_uses: args.maxUses,\n allowed_domains: args.allowedDomains,\n blocked_domains: args.blockedDomains,\n citations: args.citations,\n max_content_tokens: args.maxContentTokens,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.web_fetch_20260209\": {\n betas.add(\"code-execution-web-tools-2026-02-09\");\n const args = await validateTypes({\n value: tool.args,\n schema: webFetch_20260209ArgsSchema\n });\n anthropicTools2.push({\n type: \"web_fetch_20260209\",\n name: \"web_fetch\",\n max_uses: args.maxUses,\n allowed_domains: args.allowedDomains,\n blocked_domains: args.blockedDomains,\n citations: args.citations,\n max_content_tokens: args.maxContentTokens,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.web_search_20250305\": {\n const args = await validateTypes({\n value: tool.args,\n schema: webSearch_20250305ArgsSchema\n });\n anthropicTools2.push({\n type: \"web_search_20250305\",\n name: \"web_search\",\n max_uses: args.maxUses,\n allowed_domains: args.allowedDomains,\n blocked_domains: args.blockedDomains,\n user_location: args.userLocation,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.web_search_20260209\": {\n betas.add(\"code-execution-web-tools-2026-02-09\");\n const args = await validateTypes({\n value: tool.args,\n schema: webSearch_20260209ArgsSchema\n });\n anthropicTools2.push({\n type: \"web_search_20260209\",\n name: \"web_search\",\n max_uses: args.maxUses,\n allowed_domains: args.allowedDomains,\n blocked_domains: args.blockedDomains,\n user_location: args.userLocation,\n cache_control: void 0\n });\n break;\n }\n case \"anthropic.tool_search_regex_20251119\": {\n anthropicTools2.push({\n type: \"tool_search_tool_regex_20251119\",\n name: \"tool_search_tool_regex\"\n });\n break;\n }\n case \"anthropic.tool_search_bm25_20251119\": {\n anthropicTools2.push({\n type: \"tool_search_tool_bm25_20251119\",\n name: \"tool_search_tool_bm25\"\n });\n break;\n }\n case \"anthropic.advisor_20260301\": {\n betas.add(\"advisor-tool-2026-03-01\");\n const args = await validateTypes({\n value: tool.args,\n schema: advisor_20260301ArgsSchema\n });\n anthropicTools2.push({\n type: \"advisor_20260301\",\n name: \"advisor\",\n model: args.model,\n ...args.maxUses !== void 0 && { max_uses: args.maxUses },\n ...args.caching !== void 0 && { caching: args.caching }\n });\n break;\n }\n default: {\n toolWarnings.push({\n type: \"unsupported\",\n feature: `provider-defined tool ${tool.id}`\n });\n break;\n }\n }\n break;\n }\n default: {\n toolWarnings.push({\n type: \"unsupported\",\n feature: `tool ${tool}`\n });\n break;\n }\n }\n }\n if (toolChoice == null) {\n return {\n tools: anthropicTools2,\n toolChoice: disableParallelToolUse ? { type: \"auto\", disable_parallel_tool_use: disableParallelToolUse } : void 0,\n toolWarnings,\n betas\n };\n }\n const type = toolChoice.type;\n switch (type) {\n case \"auto\":\n return {\n tools: anthropicTools2,\n toolChoice: {\n type: \"auto\",\n disable_parallel_tool_use: disableParallelToolUse\n },\n toolWarnings,\n betas\n };\n case \"required\":\n return {\n tools: anthropicTools2,\n toolChoice: {\n type: \"any\",\n disable_parallel_tool_use: disableParallelToolUse\n },\n toolWarnings,\n betas\n };\n case \"none\":\n return { tools: void 0, toolChoice: void 0, toolWarnings, betas };\n case \"tool\":\n return {\n tools: anthropicTools2,\n toolChoice: {\n type: \"tool\",\n name: toolChoice.toolName,\n disable_parallel_tool_use: disableParallelToolUse\n },\n toolWarnings,\n betas\n };\n default: {\n const _exhaustiveCheck = type;\n throw new UnsupportedFunctionalityError({\n functionality: `tool choice type: ${_exhaustiveCheck}`\n });\n }\n }\n}\n\n// src/convert-anthropic-messages-usage.ts\nfunction convertAnthropicMessagesUsage({\n usage,\n rawUsage\n}) {\n var _a, _b;\n const cacheCreationTokens = (_a = usage.cache_creation_input_tokens) != null ? _a : 0;\n const cacheReadTokens = (_b = usage.cache_read_input_tokens) != null ? _b : 0;\n let inputTokens;\n let outputTokens;\n if (usage.iterations && usage.iterations.length > 0) {\n const executorIterations = usage.iterations.filter(\n (iter) => iter.type === \"compaction\" || iter.type === \"message\"\n );\n if (executorIterations.length > 0) {\n const totals = executorIterations.reduce(\n (acc, iter) => ({\n input: acc.input + iter.input_tokens,\n output: acc.output + iter.output_tokens\n }),\n { input: 0, output: 0 }\n );\n inputTokens = totals.input;\n outputTokens = totals.output;\n } else {\n inputTokens = usage.input_tokens;\n outputTokens = usage.output_tokens;\n }\n } else {\n inputTokens = usage.input_tokens;\n outputTokens = usage.output_tokens;\n }\n return {\n inputTokens: {\n total: inputTokens + cacheCreationTokens + cacheReadTokens,\n noCache: inputTokens,\n cacheRead: cacheReadTokens,\n cacheWrite: cacheCreationTokens\n },\n outputTokens: {\n total: outputTokens,\n text: void 0,\n reasoning: void 0\n },\n raw: rawUsage != null ? rawUsage : usage\n };\n}\n\n// src/convert-to-anthropic-messages-prompt.ts\nimport {\n UnsupportedFunctionalityError as UnsupportedFunctionalityError2\n} from \"@ai-sdk/provider\";\nimport {\n convertBase64ToUint8Array,\n convertToBase64,\n parseProviderOptions,\n validateTypes as validateTypes2,\n isNonNullable\n} from \"@ai-sdk/provider-utils\";\n\n// src/tool/code-execution_20250522.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema6,\n lazySchema as lazySchema9,\n zodSchema as zodSchema9\n} from \"@ai-sdk/provider-utils\";\nimport { z as z10 } from \"zod/v4\";\nvar codeExecution_20250522OutputSchema = lazySchema9(\n () => zodSchema9(\n z10.object({\n type: z10.literal(\"code_execution_result\"),\n stdout: z10.string(),\n stderr: z10.string(),\n return_code: z10.number(),\n content: z10.array(\n z10.object({\n type: z10.literal(\"code_execution_output\"),\n file_id: z10.string()\n })\n ).optional().default([])\n })\n )\n);\nvar codeExecution_20250522InputSchema = lazySchema9(\n () => zodSchema9(\n z10.object({\n code: z10.string()\n })\n )\n);\nvar factory7 = createProviderToolFactoryWithOutputSchema6({\n id: \"anthropic.code_execution_20250522\",\n inputSchema: codeExecution_20250522InputSchema,\n outputSchema: codeExecution_20250522OutputSchema\n});\nvar codeExecution_20250522 = (args = {}) => {\n return factory7(args);\n};\n\n// src/tool/code-execution_20250825.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema7,\n lazySchema as lazySchema10,\n zodSchema as zodSchema10\n} from \"@ai-sdk/provider-utils\";\nimport { z as z11 } from \"zod/v4\";\nvar codeExecution_20250825OutputSchema = lazySchema10(\n () => zodSchema10(\n z11.discriminatedUnion(\"type\", [\n z11.object({\n type: z11.literal(\"code_execution_result\"),\n stdout: z11.string(),\n stderr: z11.string(),\n return_code: z11.number(),\n content: z11.array(\n z11.object({\n type: z11.literal(\"code_execution_output\"),\n file_id: z11.string()\n })\n ).optional().default([])\n }),\n z11.object({\n type: z11.literal(\"bash_code_execution_result\"),\n content: z11.array(\n z11.object({\n type: z11.literal(\"bash_code_execution_output\"),\n file_id: z11.string()\n })\n ),\n stdout: z11.string(),\n stderr: z11.string(),\n return_code: z11.number()\n }),\n z11.object({\n type: z11.literal(\"bash_code_execution_tool_result_error\"),\n error_code: z11.string()\n }),\n z11.object({\n type: z11.literal(\"text_editor_code_execution_tool_result_error\"),\n error_code: z11.string()\n }),\n z11.object({\n type: z11.literal(\"text_editor_code_execution_view_result\"),\n content: z11.string(),\n file_type: z11.string(),\n num_lines: z11.number().nullable(),\n start_line: z11.number().nullable(),\n total_lines: z11.number().nullable()\n }),\n z11.object({\n type: z11.literal(\"text_editor_code_execution_create_result\"),\n is_file_update: z11.boolean()\n }),\n z11.object({\n type: z11.literal(\"text_editor_code_execution_str_replace_result\"),\n lines: z11.array(z11.string()).nullable(),\n new_lines: z11.number().nullable(),\n new_start: z11.number().nullable(),\n old_lines: z11.number().nullable(),\n old_start: z11.number().nullable()\n })\n ])\n )\n);\nvar codeExecution_20250825InputSchema = lazySchema10(\n () => zodSchema10(\n z11.discriminatedUnion(\"type\", [\n // Programmatic tool calling format (mapped from { code } by AI SDK)\n z11.object({\n type: z11.literal(\"programmatic-tool-call\"),\n code: z11.string()\n }),\n z11.object({\n type: z11.literal(\"bash_code_execution\"),\n command: z11.string()\n }),\n z11.discriminatedUnion(\"command\", [\n z11.object({\n type: z11.literal(\"text_editor_code_execution\"),\n command: z11.literal(\"view\"),\n path: z11.string()\n }),\n z11.object({\n type: z11.literal(\"text_editor_code_execution\"),\n command: z11.literal(\"create\"),\n path: z11.string(),\n file_text: z11.string().nullish()\n }),\n z11.object({\n type: z11.literal(\"text_editor_code_execution\"),\n command: z11.literal(\"str_replace\"),\n path: z11.string(),\n old_str: z11.string(),\n new_str: z11.string()\n })\n ])\n ])\n )\n);\nvar factory8 = createProviderToolFactoryWithOutputSchema7({\n id: \"anthropic.code_execution_20250825\",\n inputSchema: codeExecution_20250825InputSchema,\n outputSchema: codeExecution_20250825OutputSchema,\n // Programmatic tool calling: tool results may be deferred to a later turn\n // when code execution triggers a client-executed tool that needs to be\n // resolved before the code execution result can be returned.\n supportsDeferredResults: true\n});\nvar codeExecution_20250825 = (args = {}) => {\n return factory8(args);\n};\n\n// src/tool/code-execution_20260120.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema8,\n lazySchema as lazySchema11,\n zodSchema as zodSchema11\n} from \"@ai-sdk/provider-utils\";\nimport { z as z12 } from \"zod/v4\";\nvar codeExecution_20260120OutputSchema = lazySchema11(\n () => zodSchema11(\n z12.discriminatedUnion(\"type\", [\n z12.object({\n type: z12.literal(\"code_execution_result\"),\n stdout: z12.string(),\n stderr: z12.string(),\n return_code: z12.number(),\n content: z12.array(\n z12.object({\n type: z12.literal(\"code_execution_output\"),\n file_id: z12.string()\n })\n ).optional().default([])\n }),\n z12.object({\n type: z12.literal(\"encrypted_code_execution_result\"),\n encrypted_stdout: z12.string(),\n stderr: z12.string(),\n return_code: z12.number(),\n content: z12.array(\n z12.object({\n type: z12.literal(\"code_execution_output\"),\n file_id: z12.string()\n })\n ).optional().default([])\n }),\n z12.object({\n type: z12.literal(\"bash_code_execution_result\"),\n content: z12.array(\n z12.object({\n type: z12.literal(\"bash_code_execution_output\"),\n file_id: z12.string()\n })\n ),\n stdout: z12.string(),\n stderr: z12.string(),\n return_code: z12.number()\n }),\n z12.object({\n type: z12.literal(\"bash_code_execution_tool_result_error\"),\n error_code: z12.string()\n }),\n z12.object({\n type: z12.literal(\"text_editor_code_execution_tool_result_error\"),\n error_code: z12.string()\n }),\n z12.object({\n type: z12.literal(\"text_editor_code_execution_view_result\"),\n content: z12.string(),\n file_type: z12.string(),\n num_lines: z12.number().nullable(),\n start_line: z12.number().nullable(),\n total_lines: z12.number().nullable()\n }),\n z12.object({\n type: z12.literal(\"text_editor_code_execution_create_result\"),\n is_file_update: z12.boolean()\n }),\n z12.object({\n type: z12.literal(\"text_editor_code_execution_str_replace_result\"),\n lines: z12.array(z12.string()).nullable(),\n new_lines: z12.number().nullable(),\n new_start: z12.number().nullable(),\n old_lines: z12.number().nullable(),\n old_start: z12.number().nullable()\n })\n ])\n )\n);\nvar codeExecution_20260120InputSchema = lazySchema11(\n () => zodSchema11(\n z12.discriminatedUnion(\"type\", [\n z12.object({\n type: z12.literal(\"programmatic-tool-call\"),\n code: z12.string()\n }),\n z12.object({\n type: z12.literal(\"bash_code_execution\"),\n command: z12.string()\n }),\n z12.discriminatedUnion(\"command\", [\n z12.object({\n type: z12.literal(\"text_editor_code_execution\"),\n command: z12.literal(\"view\"),\n path: z12.string()\n }),\n z12.object({\n type: z12.literal(\"text_editor_code_execution\"),\n command: z12.literal(\"create\"),\n path: z12.string(),\n file_text: z12.string().nullish()\n }),\n z12.object({\n type: z12.literal(\"text_editor_code_execution\"),\n command: z12.literal(\"str_replace\"),\n path: z12.string(),\n old_str: z12.string(),\n new_str: z12.string()\n })\n ])\n ])\n )\n);\nvar factory9 = createProviderToolFactoryWithOutputSchema8({\n id: \"anthropic.code_execution_20260120\",\n inputSchema: codeExecution_20260120InputSchema,\n outputSchema: codeExecution_20260120OutputSchema,\n supportsDeferredResults: true\n});\nvar codeExecution_20260120 = (args = {}) => {\n return factory9(args);\n};\n\n// src/tool/tool-search-regex_20251119.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema9,\n lazySchema as lazySchema12,\n zodSchema as zodSchema12\n} from \"@ai-sdk/provider-utils\";\nimport { z as z13 } from \"zod/v4\";\nvar toolSearchRegex_20251119OutputSchema = lazySchema12(\n () => zodSchema12(\n z13.array(\n z13.object({\n type: z13.literal(\"tool_reference\"),\n toolName: z13.string()\n })\n )\n )\n);\nvar toolSearchRegex_20251119InputSchema = lazySchema12(\n () => zodSchema12(\n z13.object({\n /**\n * A regex pattern to search for tools.\n * Uses Python re.search() syntax. Maximum 200 characters.\n *\n * Examples:\n * - \"weather\" - matches tool names/descriptions containing \"weather\"\n * - \"get_.*_data\" - matches tools like get_user_data, get_weather_data\n * - \"database.*query|query.*database\" - OR patterns for flexibility\n * - \"(?i)slack\" - case-insensitive search\n */\n pattern: z13.string(),\n /**\n * Maximum number of tools to return. Optional.\n */\n limit: z13.number().optional()\n })\n )\n);\nvar factory10 = createProviderToolFactoryWithOutputSchema9({\n id: \"anthropic.tool_search_regex_20251119\",\n inputSchema: toolSearchRegex_20251119InputSchema,\n outputSchema: toolSearchRegex_20251119OutputSchema,\n supportsDeferredResults: true\n});\nvar toolSearchRegex_20251119 = (args = {}) => {\n return factory10(args);\n};\n\n// src/convert-to-anthropic-messages-prompt.ts\nfunction convertToString(data) {\n if (typeof data === \"string\") {\n return new TextDecoder().decode(convertBase64ToUint8Array(data));\n }\n if (data instanceof Uint8Array) {\n return new TextDecoder().decode(data);\n }\n if (data instanceof URL) {\n throw new UnsupportedFunctionalityError2({\n functionality: \"URL-based text documents are not supported for citations\"\n });\n }\n throw new UnsupportedFunctionalityError2({\n functionality: `unsupported data type for text documents: ${typeof data}`\n });\n}\nfunction isUrlData(data) {\n return data instanceof URL || isUrlString(data);\n}\nfunction isUrlString(data) {\n return typeof data === \"string\" && /^https?:\\/\\//i.test(data);\n}\nfunction getUrlString(data) {\n return data instanceof URL ? data.toString() : data;\n}\nasync function convertToAnthropicMessagesPrompt({\n prompt,\n sendReasoning,\n warnings,\n cacheControlValidator,\n toolNameMapping\n}) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;\n const betas = /* @__PURE__ */ new Set();\n const blocks = groupIntoBlocks(prompt);\n const validator = cacheControlValidator || new CacheControlValidator();\n let system = void 0;\n const messages = [];\n async function shouldEnableCitations(providerMetadata) {\n var _a2, _b2;\n const anthropicOptions = await parseProviderOptions({\n provider: \"anthropic\",\n providerOptions: providerMetadata,\n schema: anthropicFilePartProviderOptions\n });\n return (_b2 = (_a2 = anthropicOptions == null ? void 0 : anthropicOptions.citations) == null ? void 0 : _a2.enabled) != null ? _b2 : false;\n }\n async function getDocumentMetadata(providerMetadata) {\n const anthropicOptions = await parseProviderOptions({\n provider: \"anthropic\",\n providerOptions: providerMetadata,\n schema: anthropicFilePartProviderOptions\n });\n return {\n title: anthropicOptions == null ? void 0 : anthropicOptions.title,\n context: anthropicOptions == null ? void 0 : anthropicOptions.context\n };\n }\n for (let i = 0; i < blocks.length; i++) {\n const block = blocks[i];\n const isLastBlock = i === blocks.length - 1;\n const type = block.type;\n switch (type) {\n case \"system\": {\n if (system != null) {\n throw new UnsupportedFunctionalityError2({\n functionality: \"Multiple system messages that are separated by user/assistant messages\"\n });\n }\n system = block.messages.map(({ content, providerOptions }) => ({\n type: \"text\",\n text: content,\n cache_control: validator.getCacheControl(providerOptions, {\n type: \"system message\",\n canCache: true\n })\n }));\n break;\n }\n case \"user\": {\n const anthropicContent = [];\n for (const message of block.messages) {\n const { role, content } = message;\n switch (role) {\n case \"user\": {\n for (let j = 0; j < content.length; j++) {\n const part = content[j];\n const isLastPart = j === content.length - 1;\n const cacheControl = (_a = validator.getCacheControl(part.providerOptions, {\n type: \"user message part\",\n canCache: true\n })) != null ? _a : isLastPart ? validator.getCacheControl(message.providerOptions, {\n type: \"user message\",\n canCache: true\n }) : void 0;\n switch (part.type) {\n case \"text\": {\n anthropicContent.push({\n type: \"text\",\n text: part.text,\n cache_control: cacheControl\n });\n break;\n }\n case \"file\": {\n if (part.mediaType.startsWith(\"image/\")) {\n anthropicContent.push({\n type: \"image\",\n source: isUrlData(part.data) ? {\n type: \"url\",\n url: getUrlString(part.data)\n } : {\n type: \"base64\",\n media_type: part.mediaType === \"image/*\" ? \"image/jpeg\" : part.mediaType,\n data: convertToBase64(part.data)\n },\n cache_control: cacheControl\n });\n } else if (part.mediaType === \"application/pdf\") {\n betas.add(\"pdfs-2024-09-25\");\n const enableCitations = await shouldEnableCitations(\n part.providerOptions\n );\n const metadata = await getDocumentMetadata(\n part.providerOptions\n );\n anthropicContent.push({\n type: \"document\",\n source: isUrlData(part.data) ? {\n type: \"url\",\n url: getUrlString(part.data)\n } : {\n type: \"base64\",\n media_type: \"application/pdf\",\n data: convertToBase64(part.data)\n },\n title: (_b = metadata.title) != null ? _b : part.filename,\n ...metadata.context && { context: metadata.context },\n ...enableCitations && {\n citations: { enabled: true }\n },\n cache_control: cacheControl\n });\n } else if (part.mediaType === \"text/plain\") {\n const enableCitations = await shouldEnableCitations(\n part.providerOptions\n );\n const metadata = await getDocumentMetadata(\n part.providerOptions\n );\n anthropicContent.push({\n type: \"document\",\n source: isUrlData(part.data) ? {\n type: \"url\",\n url: getUrlString(part.data)\n } : {\n type: \"text\",\n media_type: \"text/plain\",\n data: convertToString(part.data)\n },\n title: (_c = metadata.title) != null ? _c : part.filename,\n ...metadata.context && { context: metadata.context },\n ...enableCitations && {\n citations: { enabled: true }\n },\n cache_control: cacheControl\n });\n } else {\n throw new UnsupportedFunctionalityError2({\n functionality: `media type: ${part.mediaType}`\n });\n }\n break;\n }\n }\n }\n break;\n }\n case \"tool\": {\n for (let i2 = 0; i2 < content.length; i2++) {\n const part = content[i2];\n if (part.type === \"tool-approval-response\") {\n continue;\n }\n const isLastPart = i2 === content.length - 1;\n const cacheControl = (_d = validator.getCacheControl(part.providerOptions, {\n type: \"tool result part\",\n canCache: true\n })) != null ? _d : isLastPart ? validator.getCacheControl(message.providerOptions, {\n type: \"tool result message\",\n canCache: true\n }) : void 0;\n const output = part.output;\n let contentValue;\n switch (output.type) {\n case \"content\":\n contentValue = output.value.map((contentPart) => {\n var _a2;\n switch (contentPart.type) {\n case \"text\":\n return {\n type: \"text\",\n text: contentPart.text\n };\n case \"image-data\": {\n return {\n type: \"image\",\n source: {\n type: \"base64\",\n media_type: contentPart.mediaType,\n data: contentPart.data\n }\n };\n }\n case \"image-url\": {\n return {\n type: \"image\",\n source: {\n type: \"url\",\n url: contentPart.url\n }\n };\n }\n case \"file-url\": {\n return {\n type: \"document\",\n source: {\n type: \"url\",\n url: contentPart.url\n }\n };\n }\n case \"file-data\": {\n if (contentPart.mediaType === \"application/pdf\") {\n betas.add(\"pdfs-2024-09-25\");\n return {\n type: \"document\",\n source: {\n type: \"base64\",\n media_type: contentPart.mediaType,\n data: contentPart.data\n }\n };\n }\n warnings.push({\n type: \"other\",\n message: `unsupported tool content part type: ${contentPart.type} with media type: ${contentPart.mediaType}`\n });\n return void 0;\n }\n case \"custom\": {\n const anthropicOptions = (_a2 = contentPart.providerOptions) == null ? void 0 : _a2.anthropic;\n if ((anthropicOptions == null ? void 0 : anthropicOptions.type) === \"tool-reference\") {\n return {\n type: \"tool_reference\",\n tool_name: anthropicOptions.toolName\n };\n }\n warnings.push({\n type: \"other\",\n message: `unsupported custom tool content part`\n });\n return void 0;\n }\n default: {\n warnings.push({\n type: \"other\",\n message: `unsupported tool content part type: ${contentPart.type}`\n });\n return void 0;\n }\n }\n }).filter(isNonNullable);\n break;\n case \"text\":\n case \"error-text\":\n contentValue = output.value;\n break;\n case \"execution-denied\":\n contentValue = (_e = output.reason) != null ? _e : \"Tool execution denied.\";\n break;\n case \"json\":\n case \"error-json\":\n default:\n contentValue = JSON.stringify(output.value);\n break;\n }\n anthropicContent.push({\n type: \"tool_result\",\n tool_use_id: part.toolCallId,\n content: contentValue,\n is_error: output.type === \"error-text\" || output.type === \"error-json\" ? true : void 0,\n cache_control: cacheControl\n });\n }\n break;\n }\n default: {\n const _exhaustiveCheck = role;\n throw new Error(`Unsupported role: ${_exhaustiveCheck}`);\n }\n }\n }\n messages.push({ role: \"user\", content: anthropicContent });\n break;\n }\n case \"assistant\": {\n const anthropicContent = [];\n const mcpToolUseIds = /* @__PURE__ */ new Set();\n for (let j = 0; j < block.messages.length; j++) {\n const message = block.messages[j];\n const isLastMessage = j === block.messages.length - 1;\n const { content } = message;\n for (let k = 0; k < content.length; k++) {\n const part = content[k];\n const isLastContentPart = k === content.length - 1;\n const cacheControl = (_f = validator.getCacheControl(part.providerOptions, {\n type: \"assistant message part\",\n canCache: true\n })) != null ? _f : isLastContentPart ? validator.getCacheControl(message.providerOptions, {\n type: \"assistant message\",\n canCache: true\n }) : void 0;\n switch (part.type) {\n case \"text\": {\n const textMetadata = (_g = part.providerOptions) == null ? void 0 : _g.anthropic;\n if ((textMetadata == null ? void 0 : textMetadata.type) === \"compaction\") {\n anthropicContent.push({\n type: \"compaction\",\n content: part.text,\n cache_control: cacheControl\n });\n } else {\n anthropicContent.push({\n type: \"text\",\n text: (\n // trim the last text part if it's the last message in the block\n // because Anthropic does not allow trailing whitespace\n // in pre-filled assistant responses\n isLastBlock && isLastMessage && isLastContentPart ? part.text.trim() : part.text\n ),\n cache_control: cacheControl\n });\n }\n break;\n }\n case \"reasoning\": {\n if (sendReasoning) {\n const reasoningMetadata = await parseProviderOptions({\n provider: \"anthropic\",\n providerOptions: part.providerOptions,\n schema: anthropicReasoningMetadataSchema\n });\n if (reasoningMetadata != null) {\n if (reasoningMetadata.signature != null) {\n validator.getCacheControl(part.providerOptions, {\n type: \"thinking block\",\n canCache: false\n });\n anthropicContent.push({\n type: \"thinking\",\n thinking: part.text,\n signature: reasoningMetadata.signature\n });\n } else if (reasoningMetadata.redactedData != null) {\n validator.getCacheControl(part.providerOptions, {\n type: \"redacted thinking block\",\n canCache: false\n });\n anthropicContent.push({\n type: \"redacted_thinking\",\n data: reasoningMetadata.redactedData\n });\n } else {\n warnings.push({\n type: \"other\",\n message: \"unsupported reasoning metadata\"\n });\n }\n } else {\n warnings.push({\n type: \"other\",\n message: \"unsupported reasoning metadata\"\n });\n }\n } else {\n warnings.push({\n type: \"other\",\n message: \"sending reasoning content is disabled for this model\"\n });\n }\n break;\n }\n case \"tool-call\": {\n if (part.providerExecuted) {\n const providerToolName = toolNameMapping.toProviderToolName(\n part.toolName\n );\n const isMcpToolUse = ((_i = (_h = part.providerOptions) == null ? void 0 : _h.anthropic) == null ? void 0 : _i.type) === \"mcp-tool-use\";\n if (isMcpToolUse) {\n mcpToolUseIds.add(part.toolCallId);\n const serverName = (_k = (_j = part.providerOptions) == null ? void 0 : _j.anthropic) == null ? void 0 : _k.serverName;\n if (serverName == null || typeof serverName !== \"string\") {\n warnings.push({\n type: \"other\",\n message: \"mcp tool use server name is required and must be a string\"\n });\n break;\n }\n anthropicContent.push({\n type: \"mcp_tool_use\",\n id: part.toolCallId,\n name: part.toolName,\n input: part.input,\n server_name: serverName,\n cache_control: cacheControl\n });\n } else if (\n // code execution 20250825:\n providerToolName === \"code_execution\" && part.input != null && typeof part.input === \"object\" && \"type\" in part.input && typeof part.input.type === \"string\" && (part.input.type === \"bash_code_execution\" || part.input.type === \"text_editor_code_execution\")\n ) {\n anthropicContent.push({\n type: \"server_tool_use\",\n id: part.toolCallId,\n name: part.input.type,\n // map back to subtool name\n input: part.input,\n cache_control: cacheControl\n });\n } else if (\n // code execution 20250825 programmatic tool calling:\n // Strip the fake 'programmatic-tool-call' type before sending to Anthropic\n providerToolName === \"code_execution\" && part.input != null && typeof part.input === \"object\" && \"type\" in part.input && part.input.type === \"programmatic-tool-call\"\n ) {\n const { type: _, ...inputWithoutType } = part.input;\n anthropicContent.push({\n type: \"server_tool_use\",\n id: part.toolCallId,\n name: \"code_execution\",\n input: inputWithoutType,\n cache_control: cacheControl\n });\n } else {\n if (providerToolName === \"code_execution\" || // code execution 20250522\n providerToolName === \"web_fetch\" || providerToolName === \"web_search\") {\n anthropicContent.push({\n type: \"server_tool_use\",\n id: part.toolCallId,\n name: providerToolName,\n input: part.input,\n cache_control: cacheControl\n });\n } else if (providerToolName === \"tool_search_tool_regex\" || providerToolName === \"tool_search_tool_bm25\") {\n anthropicContent.push({\n type: \"server_tool_use\",\n id: part.toolCallId,\n name: providerToolName,\n input: part.input,\n cache_control: cacheControl\n });\n } else if (providerToolName === \"advisor\") {\n anthropicContent.push({\n type: \"server_tool_use\",\n id: part.toolCallId,\n name: \"advisor\",\n input: {},\n cache_control: cacheControl\n });\n } else {\n warnings.push({\n type: \"other\",\n message: `provider executed tool call for tool ${part.toolName} is not supported`\n });\n }\n }\n break;\n }\n const callerOptions = (_l = part.providerOptions) == null ? void 0 : _l.anthropic;\n const caller = (callerOptions == null ? void 0 : callerOptions.caller) ? (callerOptions.caller.type === \"code_execution_20250825\" || callerOptions.caller.type === \"code_execution_20260120\") && callerOptions.caller.toolId ? {\n type: callerOptions.caller.type,\n tool_id: callerOptions.caller.toolId\n } : callerOptions.caller.type === \"direct\" ? { type: \"direct\" } : void 0 : void 0;\n anthropicContent.push({\n type: \"tool_use\",\n id: part.toolCallId,\n name: part.toolName,\n input: part.input,\n ...caller && { caller },\n cache_control: cacheControl\n });\n break;\n }\n case \"tool-result\": {\n const providerToolName = toolNameMapping.toProviderToolName(\n part.toolName\n );\n if (mcpToolUseIds.has(part.toolCallId)) {\n const output = part.output;\n if (output.type !== \"json\" && output.type !== \"error-json\") {\n warnings.push({\n type: \"other\",\n message: `provider executed tool result output type ${output.type} for tool ${part.toolName} is not supported`\n });\n break;\n }\n anthropicContent.push({\n type: \"mcp_tool_result\",\n tool_use_id: part.toolCallId,\n is_error: output.type === \"error-json\",\n content: output.value,\n cache_control: cacheControl\n });\n } else if (providerToolName === \"code_execution\") {\n const output = part.output;\n if (output.type === \"error-text\" || output.type === \"error-json\") {\n let errorInfo = {};\n try {\n if (typeof output.value === \"string\") {\n errorInfo = JSON.parse(output.value);\n } else if (typeof output.value === \"object\" && output.value !== null) {\n errorInfo = output.value;\n }\n } catch (e) {\n }\n if (errorInfo.type === \"code_execution_tool_result_error\") {\n anthropicContent.push({\n type: \"code_execution_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: \"code_execution_tool_result_error\",\n error_code: (_m = errorInfo.errorCode) != null ? _m : \"unknown\"\n },\n cache_control: cacheControl\n });\n } else {\n anthropicContent.push({\n type: \"bash_code_execution_tool_result\",\n tool_use_id: part.toolCallId,\n cache_control: cacheControl,\n content: {\n type: \"bash_code_execution_tool_result_error\",\n error_code: (_n = errorInfo.errorCode) != null ? _n : \"unknown\"\n }\n });\n }\n break;\n }\n if (output.type !== \"json\") {\n warnings.push({\n type: \"other\",\n message: `provider executed tool result output type ${output.type} for tool ${part.toolName} is not supported`\n });\n break;\n }\n if (output.value == null || typeof output.value !== \"object\" || !(\"type\" in output.value) || typeof output.value.type !== \"string\") {\n warnings.push({\n type: \"other\",\n message: `provider executed tool result output value is not a valid code execution result for tool ${part.toolName}`\n });\n break;\n }\n if (output.value.type === \"code_execution_result\") {\n const codeExecutionOutput = await validateTypes2({\n value: output.value,\n schema: codeExecution_20250522OutputSchema\n });\n anthropicContent.push({\n type: \"code_execution_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: codeExecutionOutput.type,\n stdout: codeExecutionOutput.stdout,\n stderr: codeExecutionOutput.stderr,\n return_code: codeExecutionOutput.return_code,\n content: (_o = codeExecutionOutput.content) != null ? _o : []\n },\n cache_control: cacheControl\n });\n } else if (output.value.type === \"encrypted_code_execution_result\") {\n const codeExecutionOutput = await validateTypes2({\n value: output.value,\n schema: codeExecution_20260120OutputSchema\n });\n if (codeExecutionOutput.type === \"encrypted_code_execution_result\") {\n anthropicContent.push({\n type: \"code_execution_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: codeExecutionOutput.type,\n encrypted_stdout: codeExecutionOutput.encrypted_stdout,\n stderr: codeExecutionOutput.stderr,\n return_code: codeExecutionOutput.return_code,\n content: (_p = codeExecutionOutput.content) != null ? _p : []\n },\n cache_control: cacheControl\n });\n }\n } else {\n const codeExecutionOutput = await validateTypes2({\n value: output.value,\n schema: codeExecution_20250825OutputSchema\n });\n if (codeExecutionOutput.type === \"code_execution_result\") {\n anthropicContent.push({\n type: \"code_execution_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: codeExecutionOutput.type,\n stdout: codeExecutionOutput.stdout,\n stderr: codeExecutionOutput.stderr,\n return_code: codeExecutionOutput.return_code,\n content: (_q = codeExecutionOutput.content) != null ? _q : []\n },\n cache_control: cacheControl\n });\n } else if (codeExecutionOutput.type === \"bash_code_execution_result\" || codeExecutionOutput.type === \"bash_code_execution_tool_result_error\") {\n anthropicContent.push({\n type: \"bash_code_execution_tool_result\",\n tool_use_id: part.toolCallId,\n cache_control: cacheControl,\n content: codeExecutionOutput\n });\n } else {\n anthropicContent.push({\n type: \"text_editor_code_execution_tool_result\",\n tool_use_id: part.toolCallId,\n cache_control: cacheControl,\n content: codeExecutionOutput\n });\n }\n }\n break;\n }\n if (providerToolName === \"web_fetch\") {\n const output = part.output;\n if (output.type === \"error-json\") {\n let errorValue = {};\n try {\n if (typeof output.value === \"string\") {\n errorValue = JSON.parse(output.value);\n } else if (typeof output.value === \"object\" && output.value !== null) {\n errorValue = output.value;\n }\n } catch (e) {\n const extractedErrorCode = (_r = output.value) == null ? void 0 : _r.errorCode;\n errorValue = {\n errorCode: typeof extractedErrorCode === \"string\" ? extractedErrorCode : \"unavailable\"\n };\n }\n anthropicContent.push({\n type: \"web_fetch_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: \"web_fetch_tool_result_error\",\n error_code: (_s = errorValue.errorCode) != null ? _s : \"unavailable\"\n },\n cache_control: cacheControl\n });\n break;\n }\n if (output.type !== \"json\") {\n warnings.push({\n type: \"other\",\n message: `provider executed tool result output type ${output.type} for tool ${part.toolName} is not supported`\n });\n break;\n }\n const webFetchOutput = await validateTypes2({\n value: output.value,\n schema: webFetch_20250910OutputSchema\n });\n anthropicContent.push({\n type: \"web_fetch_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: \"web_fetch_result\",\n url: webFetchOutput.url,\n retrieved_at: webFetchOutput.retrievedAt,\n content: {\n type: \"document\",\n title: webFetchOutput.content.title,\n citations: webFetchOutput.content.citations,\n source: {\n type: webFetchOutput.content.source.type,\n media_type: webFetchOutput.content.source.mediaType,\n data: webFetchOutput.content.source.data\n }\n }\n },\n cache_control: cacheControl\n });\n break;\n }\n if (providerToolName === \"web_search\") {\n const output = part.output;\n if (output.type !== \"json\") {\n warnings.push({\n type: \"other\",\n message: `provider executed tool result output type ${output.type} for tool ${part.toolName} is not supported`\n });\n break;\n }\n const webSearchOutput = await validateTypes2({\n value: output.value,\n schema: webSearch_20250305OutputSchema\n });\n anthropicContent.push({\n type: \"web_search_tool_result\",\n tool_use_id: part.toolCallId,\n content: webSearchOutput.map((result) => ({\n url: result.url,\n title: result.title,\n page_age: result.pageAge,\n encrypted_content: result.encryptedContent,\n type: result.type\n })),\n cache_control: cacheControl\n });\n break;\n }\n if (providerToolName === \"tool_search_tool_regex\" || providerToolName === \"tool_search_tool_bm25\") {\n const output = part.output;\n if (output.type !== \"json\") {\n warnings.push({\n type: \"other\",\n message: `provider executed tool result output type ${output.type} for tool ${part.toolName} is not supported`\n });\n break;\n }\n const toolSearchOutput = await validateTypes2({\n value: output.value,\n schema: toolSearchRegex_20251119OutputSchema\n });\n const toolReferences = toolSearchOutput.map((ref) => ({\n type: \"tool_reference\",\n tool_name: ref.toolName\n }));\n anthropicContent.push({\n type: \"tool_search_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: \"tool_search_tool_search_result\",\n tool_references: toolReferences\n },\n cache_control: cacheControl\n });\n break;\n }\n if (providerToolName === \"advisor\") {\n const output = part.output;\n if (output.type !== \"json\" && output.type !== \"error-json\") {\n warnings.push({\n type: \"other\",\n message: `provider executed tool result output type ${output.type} for tool ${part.toolName} is not supported`\n });\n break;\n }\n const advisorOutput = await validateTypes2({\n value: output.value,\n schema: advisor_20260301OutputSchema\n });\n if (advisorOutput.type === \"advisor_result\") {\n anthropicContent.push({\n type: \"advisor_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: \"advisor_result\",\n text: advisorOutput.text\n },\n cache_control: cacheControl\n });\n } else if (advisorOutput.type === \"advisor_redacted_result\") {\n anthropicContent.push({\n type: \"advisor_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: \"advisor_redacted_result\",\n encrypted_content: advisorOutput.encryptedContent\n },\n cache_control: cacheControl\n });\n } else {\n anthropicContent.push({\n type: \"advisor_tool_result\",\n tool_use_id: part.toolCallId,\n content: {\n type: \"advisor_tool_result_error\",\n error_code: advisorOutput.errorCode\n },\n cache_control: cacheControl\n });\n }\n break;\n }\n warnings.push({\n type: \"other\",\n message: `provider executed tool result for tool ${part.toolName} is not supported`\n });\n break;\n }\n }\n }\n }\n messages.push({ role: \"assistant\", content: anthropicContent });\n break;\n }\n default: {\n const _exhaustiveCheck = type;\n throw new Error(`content type: ${_exhaustiveCheck}`);\n }\n }\n }\n return {\n prompt: { system, messages },\n betas\n };\n}\nfunction groupIntoBlocks(prompt) {\n const blocks = [];\n let currentBlock = void 0;\n for (const message of prompt) {\n const { role } = message;\n switch (role) {\n case \"system\": {\n if ((currentBlock == null ? void 0 : currentBlock.type) !== \"system\") {\n currentBlock = { type: \"system\", messages: [] };\n blocks.push(currentBlock);\n }\n currentBlock.messages.push(message);\n break;\n }\n case \"assistant\": {\n if ((currentBlock == null ? void 0 : currentBlock.type) !== \"assistant\") {\n currentBlock = { type: \"assistant\", messages: [] };\n blocks.push(currentBlock);\n }\n currentBlock.messages.push(message);\n break;\n }\n case \"user\": {\n if ((currentBlock == null ? void 0 : currentBlock.type) !== \"user\") {\n currentBlock = { type: \"user\", messages: [] };\n blocks.push(currentBlock);\n }\n currentBlock.messages.push(message);\n break;\n }\n case \"tool\": {\n if ((currentBlock == null ? void 0 : currentBlock.type) !== \"user\") {\n currentBlock = { type: \"user\", messages: [] };\n blocks.push(currentBlock);\n }\n currentBlock.messages.push(message);\n break;\n }\n default: {\n const _exhaustiveCheck = role;\n throw new Error(`Unsupported role: ${_exhaustiveCheck}`);\n }\n }\n }\n return blocks;\n}\n\n// src/map-anthropic-stop-reason.ts\nfunction mapAnthropicStopReason({\n finishReason,\n isJsonResponseFromTool\n}) {\n switch (finishReason) {\n case \"pause_turn\":\n case \"end_turn\":\n case \"stop_sequence\":\n return \"stop\";\n case \"refusal\":\n return \"content-filter\";\n case \"tool_use\":\n return isJsonResponseFromTool ? \"stop\" : \"tool-calls\";\n case \"max_tokens\":\n case \"model_context_window_exceeded\":\n return \"length\";\n case \"compaction\":\n return \"other\";\n default:\n return \"other\";\n }\n}\n\n// src/sanitize-json-schema.ts\nvar SUPPORTED_STRING_FORMATS = /* @__PURE__ */ new Set([\n \"date-time\",\n \"time\",\n \"date\",\n \"duration\",\n \"email\",\n \"hostname\",\n \"uri\",\n \"ipv4\",\n \"ipv6\",\n \"uuid\"\n]);\nvar DESCRIPTION_CONSTRAINT_KEYS = [\n \"minimum\",\n \"maximum\",\n \"exclusiveMinimum\",\n \"exclusiveMaximum\",\n \"multipleOf\",\n \"minLength\",\n \"maxLength\",\n \"pattern\",\n \"minItems\",\n \"maxItems\",\n \"uniqueItems\",\n \"minProperties\",\n \"maxProperties\",\n \"not\"\n];\nfunction sanitizeJsonSchema(schema) {\n return sanitizeSchema(schema);\n}\nfunction sanitizeDefinition(definition) {\n if (typeof definition === \"boolean\" || !isPlainObject(definition)) {\n return definition;\n }\n return sanitizeSchema(definition);\n}\nfunction sanitizeSchema(schema) {\n const result = {};\n const schemaWithDefs = schema;\n if (schema.$ref != null) {\n return { $ref: schema.$ref };\n }\n if (schema.$schema != null) {\n result.$schema = schema.$schema;\n }\n if (schema.$id != null) {\n result.$id = schema.$id;\n }\n if (schema.title != null) {\n result.title = schema.title;\n }\n if (schema.description != null) {\n result.description = schema.description;\n }\n if (schema.default !== void 0) {\n result.default = schema.default;\n }\n if (schema.const !== void 0) {\n result.const = schema.const;\n }\n if (schema.enum != null) {\n result.enum = schema.enum;\n }\n if (schema.type != null) {\n result.type = schema.type;\n }\n if (schema.anyOf != null) {\n result.anyOf = schema.anyOf.map(sanitizeDefinition);\n } else if (schema.oneOf != null) {\n result.anyOf = schema.oneOf.map(sanitizeDefinition);\n }\n if (schema.allOf != null) {\n result.allOf = schema.allOf.map(sanitizeDefinition);\n }\n if (schema.definitions != null) {\n result.definitions = Object.fromEntries(\n Object.entries(schema.definitions).map(([name, definition]) => [\n name,\n sanitizeDefinition(definition)\n ])\n );\n }\n if (schemaWithDefs.$defs != null) {\n const resultWithDefs = result;\n resultWithDefs.$defs = Object.fromEntries(\n Object.entries(schemaWithDefs.$defs).map(([name, definition]) => [\n name,\n sanitizeDefinition(definition)\n ])\n );\n }\n if (schema.type === \"object\" || schema.properties != null) {\n if (schema.properties != null) {\n result.properties = Object.fromEntries(\n Object.entries(schema.properties).map(([name, definition]) => [\n name,\n sanitizeDefinition(definition)\n ])\n );\n }\n result.additionalProperties = false;\n if (schema.required != null) {\n result.required = schema.required;\n }\n }\n if (schema.items != null) {\n result.items = Array.isArray(schema.items) ? schema.items.map(sanitizeDefinition) : sanitizeDefinition(schema.items);\n }\n if (typeof schema.format === \"string\" && SUPPORTED_STRING_FORMATS.has(schema.format)) {\n result.format = schema.format;\n }\n const constraintDescription = getConstraintDescription(schema);\n if (constraintDescription != null) {\n result.description = result.description == null ? constraintDescription : `${result.description}\n${constraintDescription}`;\n }\n return result;\n}\nfunction getConstraintDescription(schema) {\n const descriptions = DESCRIPTION_CONSTRAINT_KEYS.flatMap((key) => {\n const value = schema[key];\n if (value == null || value === false) {\n return [];\n }\n return `${formatConstraintName(key)}: ${formatConstraintValue(value)}`;\n });\n if (typeof schema.format === \"string\" && !SUPPORTED_STRING_FORMATS.has(schema.format)) {\n descriptions.push(`format: ${schema.format}`);\n }\n return descriptions.length === 0 ? void 0 : `${descriptions.join(\"; \")}.`;\n}\nfunction formatConstraintName(key) {\n return key.replace(/[A-Z]/g, (match) => ` ${match.toLowerCase()}`);\n}\nfunction formatConstraintValue(value) {\n if (typeof value === \"string\") {\n return value;\n }\n return JSON.stringify(value);\n}\nfunction isPlainObject(value) {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n}\n\n// src/anthropic-messages-language-model.ts\nfunction createCitationSource(citation, citationDocuments, generateId2) {\n var _a;\n if (citation.type === \"web_search_result_location\") {\n return {\n type: \"source\",\n sourceType: \"url\",\n id: generateId2(),\n url: citation.url,\n title: citation.title,\n providerMetadata: {\n anthropic: {\n citedText: citation.cited_text,\n encryptedIndex: citation.encrypted_index\n }\n }\n };\n }\n if (citation.type !== \"page_location\" && citation.type !== \"char_location\") {\n return;\n }\n const documentInfo = citationDocuments[citation.document_index];\n if (!documentInfo) {\n return;\n }\n return {\n type: \"source\",\n sourceType: \"document\",\n id: generateId2(),\n mediaType: documentInfo.mediaType,\n title: (_a = citation.document_title) != null ? _a : documentInfo.title,\n filename: documentInfo.filename,\n providerMetadata: {\n anthropic: citation.type === \"page_location\" ? {\n citedText: citation.cited_text,\n startPageNumber: citation.start_page_number,\n endPageNumber: citation.end_page_number\n } : {\n citedText: citation.cited_text,\n startCharIndex: citation.start_char_index,\n endCharIndex: citation.end_char_index\n }\n }\n };\n}\nvar AnthropicMessagesLanguageModel = class {\n constructor(modelId, config) {\n this.specificationVersion = \"v3\";\n var _a;\n this.modelId = modelId;\n this.config = config;\n this.generateId = (_a = config.generateId) != null ? _a : generateId;\n }\n supportsUrl(url) {\n return url.protocol === \"https:\";\n }\n get provider() {\n return this.config.provider;\n }\n /**\n * Extracts the dynamic provider name from the config.provider string.\n * e.g., 'my-custom-anthropic.messages' -> 'my-custom-anthropic'\n */\n get providerOptionsName() {\n const provider = this.config.provider;\n const dotIndex = provider.indexOf(\".\");\n return dotIndex === -1 ? provider : provider.substring(0, dotIndex);\n }\n get supportedUrls() {\n var _a, _b, _c;\n return (_c = (_b = (_a = this.config).supportedUrls) == null ? void 0 : _b.call(_a)) != null ? _c : {};\n }\n async getArgs({\n userSuppliedBetas,\n prompt,\n maxOutputTokens,\n temperature,\n topP,\n topK,\n frequencyPenalty,\n presencePenalty,\n stopSequences,\n responseFormat,\n seed,\n tools,\n toolChoice,\n providerOptions,\n stream\n }) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;\n const warnings = [];\n if (frequencyPenalty != null) {\n warnings.push({ type: \"unsupported\", feature: \"frequencyPenalty\" });\n }\n if (presencePenalty != null) {\n warnings.push({ type: \"unsupported\", feature: \"presencePenalty\" });\n }\n if (seed != null) {\n warnings.push({ type: \"unsupported\", feature: \"seed\" });\n }\n if (temperature != null && temperature > 1) {\n warnings.push({\n type: \"unsupported\",\n feature: \"temperature\",\n details: `${temperature} exceeds anthropic maximum of 1.0. clamped to 1.0`\n });\n temperature = 1;\n } else if (temperature != null && temperature < 0) {\n warnings.push({\n type: \"unsupported\",\n feature: \"temperature\",\n details: `${temperature} is below anthropic minimum of 0. clamped to 0`\n });\n temperature = 0;\n }\n if ((responseFormat == null ? void 0 : responseFormat.type) === \"json\") {\n if (responseFormat.schema == null) {\n warnings.push({\n type: \"unsupported\",\n feature: \"responseFormat\",\n details: \"JSON response format requires a schema. The response format is ignored.\"\n });\n }\n }\n const providerOptionsName = this.providerOptionsName;\n const canonicalOptions = await parseProviderOptions2({\n provider: \"anthropic\",\n providerOptions,\n schema: anthropicLanguageModelOptions\n });\n const customProviderOptions = providerOptionsName !== \"anthropic\" ? await parseProviderOptions2({\n provider: providerOptionsName,\n providerOptions,\n schema: anthropicLanguageModelOptions\n }) : null;\n const usedCustomProviderKey = customProviderOptions != null;\n const anthropicOptions = Object.assign(\n {},\n canonicalOptions != null ? canonicalOptions : {},\n customProviderOptions != null ? customProviderOptions : {}\n );\n const {\n maxOutputTokens: maxOutputTokensForModel,\n supportsStructuredOutput: modelSupportsStructuredOutput,\n rejectsSamplingParameters,\n isKnownModel\n } = getModelCapabilities(this.modelId);\n if (rejectsSamplingParameters) {\n if (temperature != null) {\n warnings.push({\n type: \"unsupported\",\n feature: \"temperature\",\n details: `temperature is not supported by ${this.modelId} and will be ignored`\n });\n temperature = void 0;\n }\n if (topK != null) {\n warnings.push({\n type: \"unsupported\",\n feature: \"topK\",\n details: `topK is not supported by ${this.modelId} and will be ignored`\n });\n topK = void 0;\n }\n if (topP != null) {\n warnings.push({\n type: \"unsupported\",\n feature: \"topP\",\n details: `topP is not supported by ${this.modelId} and will be ignored`\n });\n topP = void 0;\n }\n }\n const isAnthropicModel = isKnownModel || this.modelId.startsWith(\"claude-\");\n const supportsStructuredOutput = ((_a = this.config.supportsNativeStructuredOutput) != null ? _a : true) && modelSupportsStructuredOutput;\n const supportsStrictTools = ((_b = this.config.supportsStrictTools) != null ? _b : true) && modelSupportsStructuredOutput;\n const structureOutputMode = (_c = anthropicOptions == null ? void 0 : anthropicOptions.structuredOutputMode) != null ? _c : \"auto\";\n const useStructuredOutput = structureOutputMode === \"outputFormat\" || structureOutputMode === \"auto\" && supportsStructuredOutput;\n const jsonResponseTool = (responseFormat == null ? void 0 : responseFormat.type) === \"json\" && responseFormat.schema != null && !useStructuredOutput ? {\n type: \"function\",\n name: \"json\",\n description: \"Respond with a JSON object.\",\n inputSchema: responseFormat.schema\n } : void 0;\n const contextManagement = anthropicOptions == null ? void 0 : anthropicOptions.contextManagement;\n const cacheControlValidator = new CacheControlValidator();\n const toolNameMapping = createToolNameMapping({\n tools,\n providerToolNames: {\n \"anthropic.code_execution_20250522\": \"code_execution\",\n \"anthropic.code_execution_20250825\": \"code_execution\",\n \"anthropic.code_execution_20260120\": \"code_execution\",\n \"anthropic.computer_20241022\": \"computer\",\n \"anthropic.computer_20250124\": \"computer\",\n \"anthropic.text_editor_20241022\": \"str_replace_editor\",\n \"anthropic.text_editor_20250124\": \"str_replace_editor\",\n \"anthropic.text_editor_20250429\": \"str_replace_based_edit_tool\",\n \"anthropic.text_editor_20250728\": \"str_replace_based_edit_tool\",\n \"anthropic.bash_20241022\": \"bash\",\n \"anthropic.bash_20250124\": \"bash\",\n \"anthropic.memory_20250818\": \"memory\",\n \"anthropic.web_search_20250305\": \"web_search\",\n \"anthropic.web_search_20260209\": \"web_search\",\n \"anthropic.web_fetch_20250910\": \"web_fetch\",\n \"anthropic.web_fetch_20260209\": \"web_fetch\",\n \"anthropic.tool_search_regex_20251119\": \"tool_search_tool_regex\",\n \"anthropic.tool_search_bm25_20251119\": \"tool_search_tool_bm25\",\n \"anthropic.advisor_20260301\": \"advisor\"\n }\n });\n const { prompt: messagesPrompt, betas } = await convertToAnthropicMessagesPrompt({\n prompt,\n sendReasoning: (_d = anthropicOptions == null ? void 0 : anthropicOptions.sendReasoning) != null ? _d : true,\n warnings,\n cacheControlValidator,\n toolNameMapping\n });\n const thinkingType = (_e = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _e.type;\n const isThinking = thinkingType === \"enabled\" || thinkingType === \"adaptive\";\n let thinkingBudget = thinkingType === \"enabled\" ? (_f = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _f.budgetTokens : void 0;\n const thinkingDisplay = thinkingType === \"adaptive\" ? (_g = anthropicOptions == null ? void 0 : anthropicOptions.thinking) == null ? void 0 : _g.display : void 0;\n const maxTokens = maxOutputTokens != null ? maxOutputTokens : maxOutputTokensForModel;\n const baseArgs = {\n // model id:\n model: this.modelId,\n // standardized settings:\n max_tokens: maxTokens,\n temperature,\n top_k: topK,\n top_p: topP,\n stop_sequences: stopSequences,\n // provider specific settings:\n ...isThinking && {\n thinking: {\n type: thinkingType,\n ...thinkingBudget != null && { budget_tokens: thinkingBudget },\n ...thinkingDisplay != null && { display: thinkingDisplay }\n }\n },\n ...((anthropicOptions == null ? void 0 : anthropicOptions.effort) || (anthropicOptions == null ? void 0 : anthropicOptions.taskBudget) || useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === \"json\" && responseFormat.schema != null) && {\n output_config: {\n ...(anthropicOptions == null ? void 0 : anthropicOptions.effort) && {\n effort: anthropicOptions.effort\n },\n ...(anthropicOptions == null ? void 0 : anthropicOptions.taskBudget) && {\n task_budget: {\n type: anthropicOptions.taskBudget.type,\n total: anthropicOptions.taskBudget.total,\n ...anthropicOptions.taskBudget.remaining != null && {\n remaining: anthropicOptions.taskBudget.remaining\n }\n }\n },\n ...useStructuredOutput && (responseFormat == null ? void 0 : responseFormat.type) === \"json\" && responseFormat.schema != null && {\n format: {\n type: \"json_schema\",\n schema: sanitizeJsonSchema(responseFormat.schema)\n }\n }\n }\n },\n ...(anthropicOptions == null ? void 0 : anthropicOptions.speed) && {\n speed: anthropicOptions.speed\n },\n ...(anthropicOptions == null ? void 0 : anthropicOptions.inferenceGeo) && {\n inference_geo: anthropicOptions.inferenceGeo\n },\n ...(anthropicOptions == null ? void 0 : anthropicOptions.cacheControl) && {\n cache_control: anthropicOptions.cacheControl\n },\n ...((_h = anthropicOptions == null ? void 0 : anthropicOptions.metadata) == null ? void 0 : _h.userId) != null && {\n metadata: { user_id: anthropicOptions.metadata.userId }\n },\n // mcp servers:\n ...(anthropicOptions == null ? void 0 : anthropicOptions.mcpServers) && anthropicOptions.mcpServers.length > 0 && {\n mcp_servers: anthropicOptions.mcpServers.map((server) => ({\n type: server.type,\n name: server.name,\n url: server.url,\n authorization_token: server.authorizationToken,\n tool_configuration: server.toolConfiguration ? {\n allowed_tools: server.toolConfiguration.allowedTools,\n enabled: server.toolConfiguration.enabled\n } : void 0\n }))\n },\n // container: For programmatic tool calling (just an ID string) or agent skills (object with id and skills)\n ...(anthropicOptions == null ? void 0 : anthropicOptions.container) && {\n container: anthropicOptions.container.skills && anthropicOptions.container.skills.length > 0 ? (\n // Object format when skills are provided (agent skills feature)\n {\n id: anthropicOptions.container.id,\n skills: anthropicOptions.container.skills.map((skill) => ({\n type: skill.type,\n skill_id: skill.skillId,\n version: skill.version\n }))\n }\n ) : (\n // String format for container ID only (programmatic tool calling)\n anthropicOptions.container.id\n )\n },\n // prompt:\n system: messagesPrompt.system,\n messages: messagesPrompt.messages,\n ...contextManagement && {\n context_management: {\n edits: contextManagement.edits.map((edit) => {\n const strategy = edit.type;\n switch (strategy) {\n case \"clear_tool_uses_20250919\":\n return {\n type: edit.type,\n ...edit.trigger !== void 0 && {\n trigger: edit.trigger\n },\n ...edit.keep !== void 0 && { keep: edit.keep },\n ...edit.clearAtLeast !== void 0 && {\n clear_at_least: edit.clearAtLeast\n },\n ...edit.clearToolInputs !== void 0 && {\n clear_tool_inputs: edit.clearToolInputs\n },\n ...edit.excludeTools !== void 0 && {\n exclude_tools: edit.excludeTools\n }\n };\n case \"clear_thinking_20251015\":\n return {\n type: edit.type,\n ...edit.keep !== void 0 && { keep: edit.keep }\n };\n case \"compact_20260112\":\n return {\n type: edit.type,\n ...edit.trigger !== void 0 && {\n trigger: edit.trigger\n },\n ...edit.pauseAfterCompaction !== void 0 && {\n pause_after_compaction: edit.pauseAfterCompaction\n },\n ...edit.instructions !== void 0 && {\n instructions: edit.instructions\n }\n };\n default:\n warnings.push({\n type: \"other\",\n message: `Unknown context management strategy: ${strategy}`\n });\n return void 0;\n }\n }).filter((edit) => edit !== void 0)\n }\n }\n };\n if (isThinking) {\n if (thinkingType === \"enabled\" && thinkingBudget == null) {\n warnings.push({\n type: \"compatibility\",\n feature: \"extended thinking\",\n details: \"thinking budget is required when thinking is enabled. using default budget of 1024 tokens.\"\n });\n baseArgs.thinking = {\n type: \"enabled\",\n budget_tokens: 1024\n };\n thinkingBudget = 1024;\n }\n if (baseArgs.temperature != null) {\n baseArgs.temperature = void 0;\n warnings.push({\n type: \"unsupported\",\n feature: \"temperature\",\n details: \"temperature is not supported when thinking is enabled\"\n });\n }\n if (topK != null) {\n baseArgs.top_k = void 0;\n warnings.push({\n type: \"unsupported\",\n feature: \"topK\",\n details: \"topK is not supported when thinking is enabled\"\n });\n }\n if (topP != null) {\n baseArgs.top_p = void 0;\n warnings.push({\n type: \"unsupported\",\n feature: \"topP\",\n details: \"topP is not supported when thinking is enabled\"\n });\n }\n baseArgs.max_tokens = maxTokens + (thinkingBudget != null ? thinkingBudget : 0);\n } else {\n if (isAnthropicModel && topP != null && temperature != null) {\n warnings.push({\n type: \"unsupported\",\n feature: \"topP\",\n details: `topP is not supported when temperature is set. topP is ignored.`\n });\n baseArgs.top_p = void 0;\n }\n }\n if (isKnownModel && baseArgs.max_tokens > maxOutputTokensForModel) {\n if (maxOutputTokens != null) {\n warnings.push({\n type: \"unsupported\",\n feature: \"maxOutputTokens\",\n details: `${baseArgs.max_tokens} (maxOutputTokens + thinkingBudget) is greater than ${this.modelId} ${maxOutputTokensForModel} max output tokens. The max output tokens have been limited to ${maxOutputTokensForModel}.`\n });\n }\n baseArgs.max_tokens = maxOutputTokensForModel;\n }\n if ((anthropicOptions == null ? void 0 : anthropicOptions.mcpServers) && anthropicOptions.mcpServers.length > 0) {\n betas.add(\"mcp-client-2025-04-04\");\n }\n if (contextManagement) {\n betas.add(\"context-management-2025-06-27\");\n if (contextManagement.edits.some((e) => e.type === \"compact_20260112\")) {\n betas.add(\"compact-2026-01-12\");\n }\n }\n if ((anthropicOptions == null ? void 0 : anthropicOptions.container) && anthropicOptions.container.skills && anthropicOptions.container.skills.length > 0) {\n betas.add(\"code-execution-2025-08-25\");\n betas.add(\"skills-2025-10-02\");\n betas.add(\"files-api-2025-04-14\");\n if (!(tools == null ? void 0 : tools.some(\n (tool) => tool.type === \"provider\" && (tool.id === \"anthropic.code_execution_20250825\" || tool.id === \"anthropic.code_execution_20260120\")\n ))) {\n warnings.push({\n type: \"other\",\n message: \"code execution tool is required when using skills\"\n });\n }\n }\n if (anthropicOptions == null ? void 0 : anthropicOptions.taskBudget) {\n betas.add(\"task-budgets-2026-03-13\");\n }\n if ((anthropicOptions == null ? void 0 : anthropicOptions.speed) === \"fast\") {\n betas.add(\"fast-mode-2026-02-01\");\n }\n const defaultEagerInputStreaming = stream && ((_i = anthropicOptions == null ? void 0 : anthropicOptions.toolStreaming) != null ? _i : true);\n const {\n tools: anthropicTools2,\n toolChoice: anthropicToolChoice,\n toolWarnings,\n betas: toolsBetas\n } = await prepareTools(\n jsonResponseTool != null ? {\n tools: [...tools != null ? tools : [], jsonResponseTool],\n toolChoice: { type: \"required\" },\n disableParallelToolUse: true,\n cacheControlValidator,\n supportsStructuredOutput: false,\n supportsStrictTools,\n defaultEagerInputStreaming\n } : {\n tools: tools != null ? tools : [],\n toolChoice,\n disableParallelToolUse: anthropicOptions == null ? void 0 : anthropicOptions.disableParallelToolUse,\n cacheControlValidator,\n supportsStructuredOutput,\n supportsStrictTools,\n defaultEagerInputStreaming\n }\n );\n const cacheWarnings = cacheControlValidator.getWarnings();\n return {\n args: {\n ...baseArgs,\n tools: anthropicTools2,\n tool_choice: anthropicToolChoice,\n stream: stream === true ? true : void 0\n // do not send when not streaming\n },\n warnings: [...warnings, ...toolWarnings, ...cacheWarnings],\n betas: /* @__PURE__ */ new Set([\n ...betas,\n ...toolsBetas,\n ...userSuppliedBetas,\n ...(_j = anthropicOptions == null ? void 0 : anthropicOptions.anthropicBeta) != null ? _j : []\n ]),\n usesJsonResponseTool: jsonResponseTool != null,\n toolNameMapping,\n providerOptionsName,\n usedCustomProviderKey\n };\n }\n async getHeaders({\n betas,\n headers\n }) {\n return combineHeaders(\n await resolve(this.config.headers),\n headers,\n betas.size > 0 ? { \"anthropic-beta\": Array.from(betas).join(\",\") } : {}\n );\n }\n async getBetasFromHeaders(requestHeaders) {\n var _a, _b;\n const configHeaders = await resolve(this.config.headers);\n const configBetaHeader = (_a = configHeaders[\"anthropic-beta\"]) != null ? _a : \"\";\n const requestBetaHeader = (_b = requestHeaders == null ? void 0 : requestHeaders[\"anthropic-beta\"]) != null ? _b : \"\";\n return new Set(\n [\n ...configBetaHeader.toLowerCase().split(\",\"),\n ...requestBetaHeader.toLowerCase().split(\",\")\n ].map((beta) => beta.trim()).filter((beta) => beta !== \"\")\n );\n }\n buildRequestUrl(isStreaming) {\n var _a, _b, _c;\n return (_c = (_b = (_a = this.config).buildRequestUrl) == null ? void 0 : _b.call(_a, this.config.baseURL, isStreaming)) != null ? _c : `${this.config.baseURL}/messages`;\n }\n transformRequestBody(args, betas) {\n var _a, _b, _c;\n return (_c = (_b = (_a = this.config).transformRequestBody) == null ? void 0 : _b.call(_a, args, betas)) != null ? _c : args;\n }\n extractCitationDocuments(prompt) {\n const isCitationPart = (part) => {\n var _a, _b;\n if (part.type !== \"file\") {\n return false;\n }\n if (part.mediaType !== \"application/pdf\" && part.mediaType !== \"text/plain\") {\n return false;\n }\n const anthropic = (_a = part.providerOptions) == null ? void 0 : _a.anthropic;\n const citationsConfig = anthropic == null ? void 0 : anthropic.citations;\n return (_b = citationsConfig == null ? void 0 : citationsConfig.enabled) != null ? _b : false;\n };\n return prompt.filter((message) => message.role === \"user\").flatMap((message) => message.content).filter(isCitationPart).map((part) => {\n var _a;\n const filePart = part;\n return {\n title: (_a = filePart.filename) != null ? _a : \"Untitled Document\",\n filename: filePart.filename,\n mediaType: filePart.mediaType\n };\n });\n }\n async doGenerate(options) {\n var _a, _b, _c, _d, _e, _f, _g;\n const {\n args,\n warnings,\n betas,\n usesJsonResponseTool,\n toolNameMapping,\n providerOptionsName,\n usedCustomProviderKey\n } = await this.getArgs({\n ...options,\n stream: false,\n userSuppliedBetas: await this.getBetasFromHeaders(options.headers)\n });\n const citationDocuments = [\n ...this.extractCitationDocuments(options.prompt)\n ];\n const markCodeExecutionDynamic = hasWebTool20260209WithoutCodeExecution(\n args.tools\n );\n const {\n responseHeaders,\n value: response,\n rawValue: rawResponse\n } = await postJsonToApi({\n url: this.buildRequestUrl(false),\n headers: await this.getHeaders({ betas, headers: options.headers }),\n body: this.transformRequestBody(args, betas),\n failedResponseHandler: anthropicFailedResponseHandler,\n successfulResponseHandler: createJsonResponseHandler(\n anthropicMessagesResponseSchema\n ),\n abortSignal: options.abortSignal,\n fetch: this.config.fetch\n });\n const content = [];\n const mcpToolCalls = {};\n const serverToolCalls = {};\n let isJsonResponseFromTool = false;\n for (const part of response.content) {\n switch (part.type) {\n case \"text\": {\n if (!usesJsonResponseTool) {\n content.push({ type: \"text\", text: part.text });\n if (part.citations) {\n for (const citation of part.citations) {\n const source = createCitationSource(\n citation,\n citationDocuments,\n this.generateId\n );\n if (source) {\n content.push(source);\n }\n }\n }\n }\n break;\n }\n case \"thinking\": {\n content.push({\n type: \"reasoning\",\n text: part.thinking,\n providerMetadata: {\n anthropic: {\n signature: part.signature\n }\n }\n });\n break;\n }\n case \"redacted_thinking\": {\n content.push({\n type: \"reasoning\",\n text: \"\",\n providerMetadata: {\n anthropic: {\n redactedData: part.data\n }\n }\n });\n break;\n }\n case \"compaction\": {\n content.push({\n type: \"text\",\n text: part.content,\n providerMetadata: {\n anthropic: {\n type: \"compaction\"\n }\n }\n });\n break;\n }\n case \"tool_use\": {\n const isJsonResponseTool = usesJsonResponseTool && part.name === \"json\";\n if (isJsonResponseTool) {\n isJsonResponseFromTool = true;\n content.push({\n type: \"text\",\n text: JSON.stringify(part.input)\n });\n } else {\n const caller = part.caller;\n const callerInfo = caller ? {\n type: caller.type,\n toolId: \"tool_id\" in caller ? caller.tool_id : void 0\n } : void 0;\n content.push({\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: part.name,\n input: JSON.stringify(part.input),\n ...callerInfo && {\n providerMetadata: {\n anthropic: {\n caller: callerInfo\n }\n }\n }\n });\n }\n break;\n }\n case \"server_tool_use\": {\n if (part.name === \"text_editor_code_execution\" || part.name === \"bash_code_execution\") {\n content.push({\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n input: JSON.stringify({ type: part.name, ...part.input }),\n providerExecuted: true\n });\n } else if (part.name === \"web_search\" || part.name === \"code_execution\" || part.name === \"web_fetch\") {\n const inputToSerialize = part.name === \"code_execution\" && part.input != null && typeof part.input === \"object\" && \"code\" in part.input && !(\"type\" in part.input) ? { type: \"programmatic-tool-call\", ...part.input } : part.input;\n content.push({\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: toolNameMapping.toCustomToolName(part.name),\n input: JSON.stringify(inputToSerialize),\n providerExecuted: true,\n // We want this 'code_execution' tool call to be allowed even if the tool is not explicitly provided.\n // Since the validation generally bypasses dynamic tools, we mark this specific tool as dynamic.\n ...markCodeExecutionDynamic && part.name === \"code_execution\" ? { dynamic: true } : {}\n });\n } else if (part.name === \"tool_search_tool_regex\" || part.name === \"tool_search_tool_bm25\") {\n serverToolCalls[part.id] = part.name;\n content.push({\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: toolNameMapping.toCustomToolName(part.name),\n input: JSON.stringify(part.input),\n providerExecuted: true\n });\n } else if (part.name === \"advisor\") {\n content.push({\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: toolNameMapping.toCustomToolName(\"advisor\"),\n input: JSON.stringify(part.input),\n providerExecuted: true\n });\n }\n break;\n }\n case \"mcp_tool_use\": {\n mcpToolCalls[part.id] = {\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: part.name,\n input: JSON.stringify(part.input),\n providerExecuted: true,\n dynamic: true,\n providerMetadata: {\n anthropic: {\n type: \"mcp-tool-use\",\n serverName: part.server_name\n }\n }\n };\n content.push(mcpToolCalls[part.id]);\n break;\n }\n case \"mcp_tool_result\": {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: mcpToolCalls[part.tool_use_id].toolName,\n isError: part.is_error,\n result: part.content,\n dynamic: true,\n providerMetadata: mcpToolCalls[part.tool_use_id].providerMetadata\n });\n break;\n }\n case \"web_fetch_tool_result\": {\n if (part.content.type === \"web_fetch_result\") {\n citationDocuments.push({\n title: (_a = part.content.content.title) != null ? _a : part.content.url,\n mediaType: part.content.content.source.media_type\n });\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_fetch\"),\n result: {\n type: \"web_fetch_result\",\n url: part.content.url,\n retrievedAt: part.content.retrieved_at,\n content: {\n type: part.content.content.type,\n title: part.content.content.title,\n citations: part.content.content.citations,\n source: {\n type: part.content.content.source.type,\n mediaType: part.content.content.source.media_type,\n data: part.content.content.source.data\n }\n }\n }\n });\n } else if (part.content.type === \"web_fetch_tool_result_error\") {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_fetch\"),\n isError: true,\n result: {\n type: \"web_fetch_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n break;\n }\n case \"web_search_tool_result\": {\n if (Array.isArray(part.content)) {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_search\"),\n result: part.content.map((result) => {\n var _a2;\n return {\n url: result.url,\n title: result.title,\n pageAge: (_a2 = result.page_age) != null ? _a2 : null,\n encryptedContent: result.encrypted_content,\n type: result.type\n };\n })\n });\n for (const result of part.content) {\n content.push({\n type: \"source\",\n sourceType: \"url\",\n id: this.generateId(),\n url: result.url,\n title: result.title,\n providerMetadata: {\n anthropic: {\n pageAge: (_b = result.page_age) != null ? _b : null\n }\n }\n });\n }\n } else {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_search\"),\n isError: true,\n result: {\n type: \"web_search_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n break;\n }\n // code execution 20250522:\n case \"code_execution_tool_result\": {\n if (part.content.type === \"code_execution_result\") {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n result: {\n type: part.content.type,\n stdout: part.content.stdout,\n stderr: part.content.stderr,\n return_code: part.content.return_code,\n content: (_c = part.content.content) != null ? _c : []\n }\n });\n } else if (part.content.type === \"encrypted_code_execution_result\") {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n result: {\n type: part.content.type,\n encrypted_stdout: part.content.encrypted_stdout,\n stderr: part.content.stderr,\n return_code: part.content.return_code,\n content: (_d = part.content.content) != null ? _d : []\n }\n });\n } else if (part.content.type === \"code_execution_tool_result_error\") {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n isError: true,\n result: {\n type: \"code_execution_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n break;\n }\n // code execution 20250825:\n case \"bash_code_execution_tool_result\":\n case \"text_editor_code_execution_tool_result\": {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n result: part.content\n });\n break;\n }\n // tool search tool results:\n case \"tool_search_tool_result\": {\n let providerToolName = serverToolCalls[part.tool_use_id];\n if (providerToolName == null) {\n const bm25CustomName = toolNameMapping.toCustomToolName(\n \"tool_search_tool_bm25\"\n );\n const regexCustomName = toolNameMapping.toCustomToolName(\n \"tool_search_tool_regex\"\n );\n if (bm25CustomName !== \"tool_search_tool_bm25\") {\n providerToolName = \"tool_search_tool_bm25\";\n } else if (regexCustomName !== \"tool_search_tool_regex\") {\n providerToolName = \"tool_search_tool_regex\";\n } else {\n providerToolName = \"tool_search_tool_regex\";\n }\n }\n if (part.content.type === \"tool_search_tool_search_result\") {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(providerToolName),\n result: part.content.tool_references.map((ref) => ({\n type: ref.type,\n toolName: ref.tool_name\n }))\n });\n } else {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(providerToolName),\n isError: true,\n result: {\n type: \"tool_search_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n break;\n }\n // advisor results for advisor_20260301:\n case \"advisor_tool_result\": {\n const advisorToolName = toolNameMapping.toCustomToolName(\"advisor\");\n if (part.content.type === \"advisor_result\") {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: advisorToolName,\n result: {\n type: \"advisor_result\",\n text: part.content.text\n }\n });\n } else if (part.content.type === \"advisor_redacted_result\") {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: advisorToolName,\n result: {\n type: \"advisor_redacted_result\",\n encryptedContent: part.content.encrypted_content\n }\n });\n } else {\n content.push({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: advisorToolName,\n isError: true,\n result: {\n type: \"advisor_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n break;\n }\n }\n }\n return {\n content,\n finishReason: {\n unified: mapAnthropicStopReason({\n finishReason: response.stop_reason,\n isJsonResponseFromTool\n }),\n raw: (_e = response.stop_reason) != null ? _e : void 0\n },\n usage: convertAnthropicMessagesUsage({ usage: response.usage }),\n request: { body: args },\n response: {\n id: (_f = response.id) != null ? _f : void 0,\n modelId: (_g = response.model) != null ? _g : void 0,\n headers: responseHeaders,\n body: rawResponse\n },\n warnings,\n providerMetadata: (() => {\n var _a2, _b2, _c2, _d2, _e2;\n const anthropicMetadata = {\n usage: response.usage,\n cacheCreationInputTokens: (_a2 = response.usage.cache_creation_input_tokens) != null ? _a2 : null,\n stopSequence: (_b2 = response.stop_sequence) != null ? _b2 : null,\n iterations: response.usage.iterations ? response.usage.iterations.map(\n (iter) => iter.type === \"advisor_message\" ? {\n type: iter.type,\n model: iter.model,\n inputTokens: iter.input_tokens,\n outputTokens: iter.output_tokens,\n ...iter.cache_creation_input_tokens ? {\n cacheCreationInputTokens: iter.cache_creation_input_tokens\n } : {},\n ...iter.cache_read_input_tokens ? {\n cacheReadInputTokens: iter.cache_read_input_tokens\n } : {}\n } : {\n type: iter.type,\n inputTokens: iter.input_tokens,\n outputTokens: iter.output_tokens,\n ...iter.cache_creation_input_tokens ? {\n cacheCreationInputTokens: iter.cache_creation_input_tokens\n } : {},\n ...iter.cache_read_input_tokens ? {\n cacheReadInputTokens: iter.cache_read_input_tokens\n } : {}\n }\n ) : null,\n container: response.container ? {\n expiresAt: response.container.expires_at,\n id: response.container.id,\n skills: (_d2 = (_c2 = response.container.skills) == null ? void 0 : _c2.map((skill) => ({\n type: skill.type,\n skillId: skill.skill_id,\n version: skill.version\n }))) != null ? _d2 : null\n } : null,\n contextManagement: (_e2 = mapAnthropicResponseContextManagement(\n response.context_management\n )) != null ? _e2 : null\n };\n const providerMetadata = {\n anthropic: anthropicMetadata\n };\n if (usedCustomProviderKey && providerOptionsName !== \"anthropic\") {\n providerMetadata[providerOptionsName] = anthropicMetadata;\n }\n return providerMetadata;\n })()\n };\n }\n async doStream(options) {\n var _a, _b;\n const {\n args: body,\n warnings,\n betas,\n usesJsonResponseTool,\n toolNameMapping,\n providerOptionsName,\n usedCustomProviderKey\n } = await this.getArgs({\n ...options,\n stream: true,\n userSuppliedBetas: await this.getBetasFromHeaders(options.headers)\n });\n const citationDocuments = [\n ...this.extractCitationDocuments(options.prompt)\n ];\n const markCodeExecutionDynamic = hasWebTool20260209WithoutCodeExecution(\n body.tools\n );\n const url = this.buildRequestUrl(true);\n const { responseHeaders, value: response } = await postJsonToApi({\n url,\n headers: await this.getHeaders({ betas, headers: options.headers }),\n body: this.transformRequestBody(body, betas),\n failedResponseHandler: anthropicFailedResponseHandler,\n successfulResponseHandler: createEventSourceResponseHandler(\n anthropicMessagesChunkSchema\n ),\n abortSignal: options.abortSignal,\n fetch: this.config.fetch\n });\n let finishReason = {\n unified: \"other\",\n raw: void 0\n };\n const usage = {\n input_tokens: 0,\n output_tokens: 0,\n cache_creation_input_tokens: 0,\n cache_read_input_tokens: 0,\n iterations: null\n };\n const contentBlocks = {};\n const mcpToolCalls = {};\n const serverToolCalls = {};\n let contextManagement = null;\n let rawUsage = void 0;\n let cacheCreationInputTokens = null;\n let stopSequence = null;\n let container = null;\n let isJsonResponseFromTool = false;\n let blockType = void 0;\n const generateId2 = this.generateId;\n const transformedStream = response.pipeThrough(\n new TransformStream({\n start(controller) {\n controller.enqueue({ type: \"stream-start\", warnings });\n },\n transform(chunk, controller) {\n var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;\n if (options.includeRawChunks) {\n controller.enqueue({ type: \"raw\", rawValue: chunk.rawValue });\n }\n if (!chunk.success) {\n controller.enqueue({ type: \"error\", error: chunk.error });\n return;\n }\n const value = chunk.value;\n switch (value.type) {\n case \"ping\": {\n return;\n }\n case \"content_block_start\": {\n const part = value.content_block;\n const contentBlockType = part.type;\n blockType = contentBlockType;\n switch (contentBlockType) {\n case \"text\": {\n if (usesJsonResponseTool) {\n return;\n }\n contentBlocks[value.index] = { type: \"text\" };\n controller.enqueue({\n type: \"text-start\",\n id: String(value.index)\n });\n return;\n }\n case \"thinking\": {\n contentBlocks[value.index] = { type: \"reasoning\" };\n controller.enqueue({\n type: \"reasoning-start\",\n id: String(value.index)\n });\n return;\n }\n case \"redacted_thinking\": {\n contentBlocks[value.index] = { type: \"reasoning\" };\n controller.enqueue({\n type: \"reasoning-start\",\n id: String(value.index),\n providerMetadata: {\n anthropic: {\n redactedData: part.data\n }\n }\n });\n return;\n }\n case \"compaction\": {\n contentBlocks[value.index] = { type: \"text\" };\n controller.enqueue({\n type: \"text-start\",\n id: String(value.index),\n providerMetadata: {\n anthropic: {\n type: \"compaction\"\n }\n }\n });\n return;\n }\n case \"tool_use\": {\n const isJsonResponseTool = usesJsonResponseTool && part.name === \"json\";\n if (isJsonResponseTool) {\n isJsonResponseFromTool = true;\n contentBlocks[value.index] = { type: \"text\" };\n controller.enqueue({\n type: \"text-start\",\n id: String(value.index)\n });\n } else {\n const caller = part.caller;\n const callerInfo = caller ? {\n type: caller.type,\n toolId: \"tool_id\" in caller ? caller.tool_id : void 0\n } : void 0;\n const hasNonEmptyInput = part.input && Object.keys(part.input).length > 0;\n const initialInput = hasNonEmptyInput ? JSON.stringify(part.input) : \"\";\n contentBlocks[value.index] = {\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: part.name,\n input: initialInput,\n firstDelta: initialInput.length === 0,\n ...callerInfo && { caller: callerInfo }\n };\n controller.enqueue({\n type: \"tool-input-start\",\n id: part.id,\n toolName: part.name\n });\n }\n return;\n }\n case \"server_tool_use\": {\n if ([\n \"web_fetch\",\n \"web_search\",\n // code execution 20250825:\n \"code_execution\",\n // code execution 20250825 text editor:\n \"text_editor_code_execution\",\n // code execution 20250825 bash:\n \"bash_code_execution\"\n ].includes(part.name)) {\n const providerToolName = part.name === \"text_editor_code_execution\" || part.name === \"bash_code_execution\" ? \"code_execution\" : part.name;\n const customToolName = toolNameMapping.toCustomToolName(providerToolName);\n const finalInput = part.input != null && typeof part.input === \"object\" && Object.keys(part.input).length > 0 ? JSON.stringify(part.input) : \"\";\n contentBlocks[value.index] = {\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: customToolName,\n input: finalInput,\n providerExecuted: true,\n ...markCodeExecutionDynamic && providerToolName === \"code_execution\" ? { dynamic: true } : {},\n firstDelta: true,\n providerToolName: part.name\n };\n controller.enqueue({\n type: \"tool-input-start\",\n id: part.id,\n toolName: customToolName,\n providerExecuted: true,\n ...markCodeExecutionDynamic && providerToolName === \"code_execution\" ? { dynamic: true } : {}\n });\n } else if (part.name === \"tool_search_tool_regex\" || part.name === \"tool_search_tool_bm25\") {\n serverToolCalls[part.id] = part.name;\n const customToolName = toolNameMapping.toCustomToolName(\n part.name\n );\n contentBlocks[value.index] = {\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: customToolName,\n input: \"\",\n providerExecuted: true,\n firstDelta: true,\n providerToolName: part.name\n };\n controller.enqueue({\n type: \"tool-input-start\",\n id: part.id,\n toolName: customToolName,\n providerExecuted: true\n });\n } else if (part.name === \"advisor\") {\n const customToolName = toolNameMapping.toCustomToolName(\"advisor\");\n contentBlocks[value.index] = {\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: customToolName,\n input: \"{}\",\n providerExecuted: true,\n firstDelta: true,\n providerToolName: part.name\n };\n controller.enqueue({\n type: \"tool-input-start\",\n id: part.id,\n toolName: customToolName,\n providerExecuted: true\n });\n }\n return;\n }\n case \"web_fetch_tool_result\": {\n if (part.content.type === \"web_fetch_result\") {\n citationDocuments.push({\n title: (_a2 = part.content.content.title) != null ? _a2 : part.content.url,\n mediaType: part.content.content.source.media_type\n });\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_fetch\"),\n result: {\n type: \"web_fetch_result\",\n url: part.content.url,\n retrievedAt: part.content.retrieved_at,\n content: {\n type: part.content.content.type,\n title: part.content.content.title,\n citations: part.content.content.citations,\n source: {\n type: part.content.content.source.type,\n mediaType: part.content.content.source.media_type,\n data: part.content.content.source.data\n }\n }\n }\n });\n } else if (part.content.type === \"web_fetch_tool_result_error\") {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_fetch\"),\n isError: true,\n result: {\n type: \"web_fetch_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n return;\n }\n case \"web_search_tool_result\": {\n if (Array.isArray(part.content)) {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_search\"),\n result: part.content.map((result) => {\n var _a3;\n return {\n url: result.url,\n title: result.title,\n pageAge: (_a3 = result.page_age) != null ? _a3 : null,\n encryptedContent: result.encrypted_content,\n type: result.type\n };\n })\n });\n for (const result of part.content) {\n controller.enqueue({\n type: \"source\",\n sourceType: \"url\",\n id: generateId2(),\n url: result.url,\n title: result.title,\n providerMetadata: {\n anthropic: {\n pageAge: (_b2 = result.page_age) != null ? _b2 : null\n }\n }\n });\n }\n } else {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"web_search\"),\n isError: true,\n result: {\n type: \"web_search_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n return;\n }\n // code execution 20250522:\n case \"code_execution_tool_result\": {\n if (part.content.type === \"code_execution_result\") {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n result: {\n type: part.content.type,\n stdout: part.content.stdout,\n stderr: part.content.stderr,\n return_code: part.content.return_code,\n content: (_c = part.content.content) != null ? _c : []\n }\n });\n } else if (part.content.type === \"encrypted_code_execution_result\") {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n result: {\n type: part.content.type,\n encrypted_stdout: part.content.encrypted_stdout,\n stderr: part.content.stderr,\n return_code: part.content.return_code,\n content: (_d = part.content.content) != null ? _d : []\n }\n });\n } else if (part.content.type === \"code_execution_tool_result_error\") {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n isError: true,\n result: {\n type: \"code_execution_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n return;\n }\n // code execution 20250825:\n case \"bash_code_execution_tool_result\":\n case \"text_editor_code_execution_tool_result\": {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(\"code_execution\"),\n result: part.content\n });\n return;\n }\n // tool search tool results:\n case \"tool_search_tool_result\": {\n let providerToolName = serverToolCalls[part.tool_use_id];\n if (providerToolName == null) {\n const bm25CustomName = toolNameMapping.toCustomToolName(\n \"tool_search_tool_bm25\"\n );\n const regexCustomName = toolNameMapping.toCustomToolName(\n \"tool_search_tool_regex\"\n );\n if (bm25CustomName !== \"tool_search_tool_bm25\") {\n providerToolName = \"tool_search_tool_bm25\";\n } else if (regexCustomName !== \"tool_search_tool_regex\") {\n providerToolName = \"tool_search_tool_regex\";\n } else {\n providerToolName = \"tool_search_tool_regex\";\n }\n }\n if (part.content.type === \"tool_search_tool_search_result\") {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(providerToolName),\n result: part.content.tool_references.map((ref) => ({\n type: ref.type,\n toolName: ref.tool_name\n }))\n });\n } else {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: toolNameMapping.toCustomToolName(providerToolName),\n isError: true,\n result: {\n type: \"tool_search_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n return;\n }\n // advisor results for advisor_20260301:\n // arrives fully formed in a single content_block_start (no deltas).\n case \"advisor_tool_result\": {\n const advisorToolName = toolNameMapping.toCustomToolName(\"advisor\");\n if (part.content.type === \"advisor_result\") {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: advisorToolName,\n result: {\n type: \"advisor_result\",\n text: part.content.text\n }\n });\n } else if (part.content.type === \"advisor_redacted_result\") {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: advisorToolName,\n result: {\n type: \"advisor_redacted_result\",\n encryptedContent: part.content.encrypted_content\n }\n });\n } else {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: advisorToolName,\n isError: true,\n result: {\n type: \"advisor_tool_result_error\",\n errorCode: part.content.error_code\n }\n });\n }\n return;\n }\n case \"mcp_tool_use\": {\n mcpToolCalls[part.id] = {\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: part.name,\n input: JSON.stringify(part.input),\n providerExecuted: true,\n dynamic: true,\n providerMetadata: {\n anthropic: {\n type: \"mcp-tool-use\",\n serverName: part.server_name\n }\n }\n };\n controller.enqueue(mcpToolCalls[part.id]);\n return;\n }\n case \"mcp_tool_result\": {\n controller.enqueue({\n type: \"tool-result\",\n toolCallId: part.tool_use_id,\n toolName: mcpToolCalls[part.tool_use_id].toolName,\n isError: part.is_error,\n result: part.content,\n dynamic: true,\n providerMetadata: mcpToolCalls[part.tool_use_id].providerMetadata\n });\n return;\n }\n default: {\n const _exhaustiveCheck = contentBlockType;\n throw new Error(\n `Unsupported content block type: ${_exhaustiveCheck}`\n );\n }\n }\n }\n case \"content_block_stop\": {\n if (contentBlocks[value.index] != null) {\n const contentBlock = contentBlocks[value.index];\n switch (contentBlock.type) {\n case \"text\": {\n controller.enqueue({\n type: \"text-end\",\n id: String(value.index)\n });\n break;\n }\n case \"reasoning\": {\n controller.enqueue({\n type: \"reasoning-end\",\n id: String(value.index)\n });\n break;\n }\n case \"tool-call\":\n const isJsonResponseTool = usesJsonResponseTool && contentBlock.toolName === \"json\";\n if (!isJsonResponseTool) {\n controller.enqueue({\n type: \"tool-input-end\",\n id: contentBlock.toolCallId\n });\n let finalInput = contentBlock.input === \"\" ? \"{}\" : contentBlock.input;\n if (contentBlock.providerToolName === \"code_execution\") {\n try {\n const parsed = JSON.parse(finalInput);\n if (parsed != null && typeof parsed === \"object\" && \"code\" in parsed && !(\"type\" in parsed)) {\n finalInput = JSON.stringify({\n type: \"programmatic-tool-call\",\n ...parsed\n });\n }\n } catch (e) {\n }\n }\n controller.enqueue({\n type: \"tool-call\",\n toolCallId: contentBlock.toolCallId,\n toolName: contentBlock.toolName,\n input: finalInput,\n providerExecuted: contentBlock.providerExecuted,\n ...markCodeExecutionDynamic && contentBlock.providerToolName === \"code_execution\" ? { dynamic: true } : {},\n ...contentBlock.caller && {\n providerMetadata: {\n anthropic: {\n caller: contentBlock.caller\n }\n }\n }\n });\n }\n break;\n }\n delete contentBlocks[value.index];\n }\n blockType = void 0;\n return;\n }\n case \"content_block_delta\": {\n const deltaType = value.delta.type;\n switch (deltaType) {\n case \"text_delta\": {\n if (usesJsonResponseTool) {\n return;\n }\n controller.enqueue({\n type: \"text-delta\",\n id: String(value.index),\n delta: value.delta.text\n });\n return;\n }\n case \"thinking_delta\": {\n controller.enqueue({\n type: \"reasoning-delta\",\n id: String(value.index),\n delta: value.delta.thinking\n });\n return;\n }\n case \"signature_delta\": {\n if (blockType === \"thinking\") {\n controller.enqueue({\n type: \"reasoning-delta\",\n id: String(value.index),\n delta: \"\",\n providerMetadata: {\n anthropic: {\n signature: value.delta.signature\n }\n }\n });\n }\n return;\n }\n case \"compaction_delta\": {\n if (value.delta.content != null) {\n controller.enqueue({\n type: \"text-delta\",\n id: String(value.index),\n delta: value.delta.content\n });\n }\n return;\n }\n case \"input_json_delta\": {\n const contentBlock = contentBlocks[value.index];\n let delta = value.delta.partial_json;\n if (delta.length === 0) {\n return;\n }\n if (isJsonResponseFromTool) {\n if ((contentBlock == null ? void 0 : contentBlock.type) !== \"text\") {\n return;\n }\n controller.enqueue({\n type: \"text-delta\",\n id: String(value.index),\n delta\n });\n } else {\n if ((contentBlock == null ? void 0 : contentBlock.type) !== \"tool-call\") {\n return;\n }\n if (contentBlock.firstDelta && (contentBlock.providerToolName === \"bash_code_execution\" || contentBlock.providerToolName === \"text_editor_code_execution\")) {\n delta = `{\"type\": \"${contentBlock.providerToolName}\",${delta.substring(1)}`;\n }\n controller.enqueue({\n type: \"tool-input-delta\",\n id: contentBlock.toolCallId,\n delta\n });\n contentBlock.input += delta;\n contentBlock.firstDelta = false;\n }\n return;\n }\n case \"citations_delta\": {\n const citation = value.delta.citation;\n const source = createCitationSource(\n citation,\n citationDocuments,\n generateId2\n );\n if (source) {\n controller.enqueue(source);\n }\n return;\n }\n default: {\n const _exhaustiveCheck = deltaType;\n throw new Error(\n `Unsupported delta type: ${_exhaustiveCheck}`\n );\n }\n }\n }\n case \"message_start\": {\n usage.input_tokens = value.message.usage.input_tokens;\n usage.cache_read_input_tokens = (_e = value.message.usage.cache_read_input_tokens) != null ? _e : 0;\n usage.cache_creation_input_tokens = (_f = value.message.usage.cache_creation_input_tokens) != null ? _f : 0;\n rawUsage = {\n ...value.message.usage\n };\n cacheCreationInputTokens = (_g = value.message.usage.cache_creation_input_tokens) != null ? _g : null;\n if (value.message.container != null) {\n container = {\n expiresAt: value.message.container.expires_at,\n id: value.message.container.id,\n skills: null\n };\n }\n if (value.message.stop_reason != null) {\n finishReason = {\n unified: mapAnthropicStopReason({\n finishReason: value.message.stop_reason,\n isJsonResponseFromTool\n }),\n raw: value.message.stop_reason\n };\n }\n controller.enqueue({\n type: \"response-metadata\",\n id: (_h = value.message.id) != null ? _h : void 0,\n modelId: (_i = value.message.model) != null ? _i : void 0\n });\n if (value.message.content != null) {\n for (let contentIndex = 0; contentIndex < value.message.content.length; contentIndex++) {\n const part = value.message.content[contentIndex];\n if (part.type === \"tool_use\") {\n const caller = part.caller;\n const callerInfo = caller ? {\n type: caller.type,\n toolId: \"tool_id\" in caller ? caller.tool_id : void 0\n } : void 0;\n controller.enqueue({\n type: \"tool-input-start\",\n id: part.id,\n toolName: part.name\n });\n const inputStr = JSON.stringify((_j = part.input) != null ? _j : {});\n controller.enqueue({\n type: \"tool-input-delta\",\n id: part.id,\n delta: inputStr\n });\n controller.enqueue({\n type: \"tool-input-end\",\n id: part.id\n });\n controller.enqueue({\n type: \"tool-call\",\n toolCallId: part.id,\n toolName: part.name,\n input: inputStr,\n ...callerInfo && {\n providerMetadata: {\n anthropic: {\n caller: callerInfo\n }\n }\n }\n });\n }\n }\n }\n return;\n }\n case \"message_delta\": {\n if (value.usage.input_tokens != null && usage.input_tokens !== value.usage.input_tokens) {\n usage.input_tokens = value.usage.input_tokens;\n }\n usage.output_tokens = value.usage.output_tokens;\n if (value.usage.cache_read_input_tokens != null) {\n usage.cache_read_input_tokens = value.usage.cache_read_input_tokens;\n }\n if (value.usage.cache_creation_input_tokens != null) {\n usage.cache_creation_input_tokens = value.usage.cache_creation_input_tokens;\n cacheCreationInputTokens = value.usage.cache_creation_input_tokens;\n }\n if (value.usage.iterations != null) {\n usage.iterations = value.usage.iterations;\n }\n finishReason = {\n unified: mapAnthropicStopReason({\n finishReason: value.delta.stop_reason,\n isJsonResponseFromTool\n }),\n raw: (_k = value.delta.stop_reason) != null ? _k : void 0\n };\n stopSequence = (_l = value.delta.stop_sequence) != null ? _l : null;\n container = value.delta.container != null ? {\n expiresAt: value.delta.container.expires_at,\n id: value.delta.container.id,\n skills: (_n = (_m = value.delta.container.skills) == null ? void 0 : _m.map((skill) => ({\n type: skill.type,\n skillId: skill.skill_id,\n version: skill.version\n }))) != null ? _n : null\n } : null;\n if (value.context_management) {\n contextManagement = mapAnthropicResponseContextManagement(\n value.context_management\n );\n }\n rawUsage = {\n ...rawUsage,\n ...value.usage\n };\n return;\n }\n case \"message_stop\": {\n const anthropicMetadata = {\n usage: rawUsage != null ? rawUsage : null,\n cacheCreationInputTokens,\n stopSequence,\n iterations: usage.iterations ? usage.iterations.map(\n (iter) => iter.type === \"advisor_message\" ? {\n type: iter.type,\n model: iter.model,\n inputTokens: iter.input_tokens,\n outputTokens: iter.output_tokens,\n ...iter.cache_creation_input_tokens ? {\n cacheCreationInputTokens: iter.cache_creation_input_tokens\n } : {},\n ...iter.cache_read_input_tokens ? {\n cacheReadInputTokens: iter.cache_read_input_tokens\n } : {}\n } : {\n type: iter.type,\n inputTokens: iter.input_tokens,\n outputTokens: iter.output_tokens,\n ...iter.cache_creation_input_tokens ? {\n cacheCreationInputTokens: iter.cache_creation_input_tokens\n } : {},\n ...iter.cache_read_input_tokens ? {\n cacheReadInputTokens: iter.cache_read_input_tokens\n } : {}\n }\n ) : null,\n container,\n contextManagement\n };\n const providerMetadata = {\n anthropic: anthropicMetadata\n };\n if (usedCustomProviderKey && providerOptionsName !== \"anthropic\") {\n providerMetadata[providerOptionsName] = anthropicMetadata;\n }\n controller.enqueue({\n type: \"finish\",\n finishReason,\n usage: convertAnthropicMessagesUsage({ usage, rawUsage }),\n providerMetadata\n });\n return;\n }\n case \"error\": {\n controller.enqueue({ type: \"error\", error: value.error });\n return;\n }\n default: {\n const _exhaustiveCheck = value;\n throw new Error(`Unsupported chunk type: ${_exhaustiveCheck}`);\n }\n }\n }\n })\n );\n const [streamForFirstChunk, streamForConsumer] = transformedStream.tee();\n const firstChunkReader = streamForFirstChunk.getReader();\n try {\n await firstChunkReader.read();\n let result = await firstChunkReader.read();\n if (((_a = result.value) == null ? void 0 : _a.type) === \"raw\") {\n result = await firstChunkReader.read();\n }\n if (((_b = result.value) == null ? void 0 : _b.type) === \"error\") {\n const error = result.value.error;\n throw new APICallError({\n message: error.message,\n url,\n requestBodyValues: body,\n statusCode: error.type === \"overloaded_error\" ? 529 : 500,\n responseHeaders,\n responseBody: JSON.stringify(error),\n isRetryable: error.type === \"overloaded_error\"\n });\n }\n } finally {\n firstChunkReader.cancel().catch(() => {\n });\n firstChunkReader.releaseLock();\n }\n return {\n stream: streamForConsumer,\n request: { body },\n response: { headers: responseHeaders }\n };\n }\n};\nfunction getModelCapabilities(modelId) {\n if (modelId.includes(\"claude-opus-4-7\")) {\n return {\n maxOutputTokens: 128e3,\n supportsStructuredOutput: true,\n rejectsSamplingParameters: true,\n isKnownModel: true\n };\n } else if (modelId.includes(\"claude-sonnet-4-6\") || modelId.includes(\"claude-opus-4-6\")) {\n return {\n maxOutputTokens: 128e3,\n supportsStructuredOutput: true,\n rejectsSamplingParameters: false,\n isKnownModel: true\n };\n } else if (modelId.includes(\"claude-sonnet-4-5\") || modelId.includes(\"claude-opus-4-5\") || modelId.includes(\"claude-haiku-4-5\")) {\n return {\n maxOutputTokens: 64e3,\n supportsStructuredOutput: true,\n rejectsSamplingParameters: false,\n isKnownModel: true\n };\n } else if (modelId.includes(\"claude-opus-4-1\")) {\n return {\n maxOutputTokens: 32e3,\n supportsStructuredOutput: true,\n rejectsSamplingParameters: false,\n isKnownModel: true\n };\n } else if (modelId.includes(\"claude-sonnet-4-\")) {\n return {\n maxOutputTokens: 64e3,\n supportsStructuredOutput: false,\n rejectsSamplingParameters: false,\n isKnownModel: true\n };\n } else if (modelId.includes(\"claude-opus-4-\")) {\n return {\n maxOutputTokens: 32e3,\n supportsStructuredOutput: false,\n rejectsSamplingParameters: false,\n isKnownModel: true\n };\n } else if (modelId.includes(\"claude-3-haiku\")) {\n return {\n maxOutputTokens: 4096,\n supportsStructuredOutput: false,\n rejectsSamplingParameters: false,\n isKnownModel: true\n };\n } else {\n return {\n maxOutputTokens: 4096,\n supportsStructuredOutput: false,\n rejectsSamplingParameters: false,\n isKnownModel: false\n };\n }\n}\nfunction hasWebTool20260209WithoutCodeExecution(tools) {\n if (!tools) {\n return false;\n }\n let hasWebTool20260209 = false;\n let hasCodeExecutionTool = false;\n for (const tool of tools) {\n if (\"type\" in tool && (tool.type === \"web_fetch_20260209\" || tool.type === \"web_search_20260209\")) {\n hasWebTool20260209 = true;\n continue;\n }\n if (tool.name === \"code_execution\") {\n hasCodeExecutionTool = true;\n break;\n }\n }\n return hasWebTool20260209 && !hasCodeExecutionTool;\n}\nfunction mapAnthropicResponseContextManagement(contextManagement) {\n return contextManagement ? {\n appliedEdits: contextManagement.applied_edits.map((edit) => {\n const strategy = edit.type;\n switch (strategy) {\n case \"clear_tool_uses_20250919\":\n return {\n type: edit.type,\n clearedToolUses: edit.cleared_tool_uses,\n clearedInputTokens: edit.cleared_input_tokens\n };\n case \"clear_thinking_20251015\":\n return {\n type: edit.type,\n clearedThinkingTurns: edit.cleared_thinking_turns,\n clearedInputTokens: edit.cleared_input_tokens\n };\n case \"compact_20260112\":\n return {\n type: edit.type\n };\n }\n }).filter((edit) => edit !== void 0)\n } : null;\n}\n\n// src/tool/bash_20241022.ts\nimport {\n createProviderToolFactory as createProviderToolFactory2,\n lazySchema as lazySchema13,\n zodSchema as zodSchema13\n} from \"@ai-sdk/provider-utils\";\nimport { z as z14 } from \"zod/v4\";\nvar bash_20241022InputSchema = lazySchema13(\n () => zodSchema13(\n z14.object({\n command: z14.string(),\n restart: z14.boolean().optional()\n })\n )\n);\nvar bash_20241022 = createProviderToolFactory2({\n id: \"anthropic.bash_20241022\",\n inputSchema: bash_20241022InputSchema\n});\n\n// src/tool/bash_20250124.ts\nimport {\n createProviderToolFactory as createProviderToolFactory3,\n lazySchema as lazySchema14,\n zodSchema as zodSchema14\n} from \"@ai-sdk/provider-utils\";\nimport { z as z15 } from \"zod/v4\";\nvar bash_20250124InputSchema = lazySchema14(\n () => zodSchema14(\n z15.object({\n command: z15.string(),\n restart: z15.boolean().optional()\n })\n )\n);\nvar bash_20250124 = createProviderToolFactory3({\n id: \"anthropic.bash_20250124\",\n inputSchema: bash_20250124InputSchema\n});\n\n// src/tool/computer_20241022.ts\nimport {\n createProviderToolFactory as createProviderToolFactory4,\n lazySchema as lazySchema15,\n zodSchema as zodSchema15\n} from \"@ai-sdk/provider-utils\";\nimport { z as z16 } from \"zod/v4\";\nvar computer_20241022InputSchema = lazySchema15(\n () => zodSchema15(\n z16.object({\n action: z16.enum([\n \"key\",\n \"type\",\n \"mouse_move\",\n \"left_click\",\n \"left_click_drag\",\n \"right_click\",\n \"middle_click\",\n \"double_click\",\n \"screenshot\",\n \"cursor_position\"\n ]),\n coordinate: z16.array(z16.number().int()).optional(),\n text: z16.string().optional()\n })\n )\n);\nvar computer_20241022 = createProviderToolFactory4({\n id: \"anthropic.computer_20241022\",\n inputSchema: computer_20241022InputSchema\n});\n\n// src/tool/computer_20250124.ts\nimport {\n createProviderToolFactory as createProviderToolFactory5,\n lazySchema as lazySchema16,\n zodSchema as zodSchema16\n} from \"@ai-sdk/provider-utils\";\nimport { z as z17 } from \"zod/v4\";\nvar computer_20250124InputSchema = lazySchema16(\n () => zodSchema16(\n z17.object({\n action: z17.enum([\n \"key\",\n \"hold_key\",\n \"type\",\n \"cursor_position\",\n \"mouse_move\",\n \"left_mouse_down\",\n \"left_mouse_up\",\n \"left_click\",\n \"left_click_drag\",\n \"right_click\",\n \"middle_click\",\n \"double_click\",\n \"triple_click\",\n \"scroll\",\n \"wait\",\n \"screenshot\"\n ]),\n coordinate: z17.tuple([z17.number().int(), z17.number().int()]).optional(),\n duration: z17.number().optional(),\n scroll_amount: z17.number().optional(),\n scroll_direction: z17.enum([\"up\", \"down\", \"left\", \"right\"]).optional(),\n start_coordinate: z17.tuple([z17.number().int(), z17.number().int()]).optional(),\n text: z17.string().optional()\n })\n )\n);\nvar computer_20250124 = createProviderToolFactory5({\n id: \"anthropic.computer_20250124\",\n inputSchema: computer_20250124InputSchema\n});\n\n// src/tool/computer_20251124.ts\nimport {\n createProviderToolFactory as createProviderToolFactory6,\n lazySchema as lazySchema17,\n zodSchema as zodSchema17\n} from \"@ai-sdk/provider-utils\";\nimport { z as z18 } from \"zod/v4\";\nvar computer_20251124InputSchema = lazySchema17(\n () => zodSchema17(\n z18.object({\n action: z18.enum([\n \"key\",\n \"hold_key\",\n \"type\",\n \"cursor_position\",\n \"mouse_move\",\n \"left_mouse_down\",\n \"left_mouse_up\",\n \"left_click\",\n \"left_click_drag\",\n \"right_click\",\n \"middle_click\",\n \"double_click\",\n \"triple_click\",\n \"scroll\",\n \"wait\",\n \"screenshot\",\n \"zoom\"\n ]),\n coordinate: z18.tuple([z18.number().int(), z18.number().int()]).optional(),\n duration: z18.number().optional(),\n region: z18.tuple([\n z18.number().int(),\n z18.number().int(),\n z18.number().int(),\n z18.number().int()\n ]).optional(),\n scroll_amount: z18.number().optional(),\n scroll_direction: z18.enum([\"up\", \"down\", \"left\", \"right\"]).optional(),\n start_coordinate: z18.tuple([z18.number().int(), z18.number().int()]).optional(),\n text: z18.string().optional()\n })\n )\n);\nvar computer_20251124 = createProviderToolFactory6({\n id: \"anthropic.computer_20251124\",\n inputSchema: computer_20251124InputSchema\n});\n\n// src/tool/memory_20250818.ts\nimport {\n createProviderToolFactory as createProviderToolFactory7,\n lazySchema as lazySchema18,\n zodSchema as zodSchema18\n} from \"@ai-sdk/provider-utils\";\nimport { z as z19 } from \"zod/v4\";\nvar memory_20250818InputSchema = lazySchema18(\n () => zodSchema18(\n z19.discriminatedUnion(\"command\", [\n z19.object({\n command: z19.literal(\"view\"),\n path: z19.string(),\n view_range: z19.tuple([z19.number(), z19.number()]).optional()\n }),\n z19.object({\n command: z19.literal(\"create\"),\n path: z19.string(),\n file_text: z19.string()\n }),\n z19.object({\n command: z19.literal(\"str_replace\"),\n path: z19.string(),\n old_str: z19.string(),\n new_str: z19.string()\n }),\n z19.object({\n command: z19.literal(\"insert\"),\n path: z19.string(),\n insert_line: z19.number(),\n insert_text: z19.string()\n }),\n z19.object({\n command: z19.literal(\"delete\"),\n path: z19.string()\n }),\n z19.object({\n command: z19.literal(\"rename\"),\n old_path: z19.string(),\n new_path: z19.string()\n })\n ])\n )\n);\nvar memory_20250818 = createProviderToolFactory7({\n id: \"anthropic.memory_20250818\",\n inputSchema: memory_20250818InputSchema\n});\n\n// src/tool/text-editor_20241022.ts\nimport {\n createProviderToolFactory as createProviderToolFactory8,\n lazySchema as lazySchema19,\n zodSchema as zodSchema19\n} from \"@ai-sdk/provider-utils\";\nimport { z as z20 } from \"zod/v4\";\nvar textEditor_20241022InputSchema = lazySchema19(\n () => zodSchema19(\n z20.object({\n command: z20.enum([\"view\", \"create\", \"str_replace\", \"insert\", \"undo_edit\"]),\n path: z20.string(),\n file_text: z20.string().optional(),\n insert_line: z20.number().int().optional(),\n new_str: z20.string().optional(),\n insert_text: z20.string().optional(),\n old_str: z20.string().optional(),\n view_range: z20.array(z20.number().int()).optional()\n })\n )\n);\nvar textEditor_20241022 = createProviderToolFactory8({\n id: \"anthropic.text_editor_20241022\",\n inputSchema: textEditor_20241022InputSchema\n});\n\n// src/tool/text-editor_20250124.ts\nimport {\n createProviderToolFactory as createProviderToolFactory9,\n lazySchema as lazySchema20,\n zodSchema as zodSchema20\n} from \"@ai-sdk/provider-utils\";\nimport { z as z21 } from \"zod/v4\";\nvar textEditor_20250124InputSchema = lazySchema20(\n () => zodSchema20(\n z21.object({\n command: z21.enum([\"view\", \"create\", \"str_replace\", \"insert\", \"undo_edit\"]),\n path: z21.string(),\n file_text: z21.string().optional(),\n insert_line: z21.number().int().optional(),\n new_str: z21.string().optional(),\n insert_text: z21.string().optional(),\n old_str: z21.string().optional(),\n view_range: z21.array(z21.number().int()).optional()\n })\n )\n);\nvar textEditor_20250124 = createProviderToolFactory9({\n id: \"anthropic.text_editor_20250124\",\n inputSchema: textEditor_20250124InputSchema\n});\n\n// src/tool/text-editor_20250429.ts\nimport {\n createProviderToolFactory as createProviderToolFactory10,\n lazySchema as lazySchema21,\n zodSchema as zodSchema21\n} from \"@ai-sdk/provider-utils\";\nimport { z as z22 } from \"zod/v4\";\nvar textEditor_20250429InputSchema = lazySchema21(\n () => zodSchema21(\n z22.object({\n command: z22.enum([\"view\", \"create\", \"str_replace\", \"insert\"]),\n path: z22.string(),\n file_text: z22.string().optional(),\n insert_line: z22.number().int().optional(),\n new_str: z22.string().optional(),\n insert_text: z22.string().optional(),\n old_str: z22.string().optional(),\n view_range: z22.array(z22.number().int()).optional()\n })\n )\n);\nvar textEditor_20250429 = createProviderToolFactory10({\n id: \"anthropic.text_editor_20250429\",\n inputSchema: textEditor_20250429InputSchema\n});\n\n// src/tool/tool-search-bm25_20251119.ts\nimport {\n createProviderToolFactoryWithOutputSchema as createProviderToolFactoryWithOutputSchema10,\n lazySchema as lazySchema22,\n zodSchema as zodSchema22\n} from \"@ai-sdk/provider-utils\";\nimport { z as z23 } from \"zod/v4\";\nvar toolSearchBm25_20251119OutputSchema = lazySchema22(\n () => zodSchema22(\n z23.array(\n z23.object({\n type: z23.literal(\"tool_reference\"),\n toolName: z23.string()\n })\n )\n )\n);\nvar toolSearchBm25_20251119InputSchema = lazySchema22(\n () => zodSchema22(\n z23.object({\n /**\n * A natural language query to search for tools.\n * Claude will use BM25 text search to find relevant tools.\n */\n query: z23.string(),\n /**\n * Maximum number of tools to return. Optional.\n */\n limit: z23.number().optional()\n })\n )\n);\nvar factory11 = createProviderToolFactoryWithOutputSchema10({\n id: \"anthropic.tool_search_bm25_20251119\",\n inputSchema: toolSearchBm25_20251119InputSchema,\n outputSchema: toolSearchBm25_20251119OutputSchema,\n supportsDeferredResults: true\n});\nvar toolSearchBm25_20251119 = (args = {}) => {\n return factory11(args);\n};\n\n// src/anthropic-tools.ts\nvar anthropicTools = {\n /**\n * Pairs a faster executor model with a higher-intelligence advisor model\n * that provides strategic guidance mid-generation.\n *\n * The advisor lets a faster, lower-cost executor model consult a\n * higher-intelligence advisor model server-side. The advisor reads the\n * executor's full transcript and produces a plan or course correction;\n * the executor continues with the task, informed by the advice. All of\n * this happens inside a single `/v1/messages` request.\n *\n * Beta header `advisor-tool-2026-03-01` is added automatically when this\n * tool is included.\n *\n * Multi-turn conversations: pass the full assistant content (including\n * `advisor_tool_result` blocks) back to the API on subsequent turns. If\n * you omit the advisor tool from `tools` on a follow-up turn while the\n * message history still contains `advisor_tool_result` blocks, the API\n * returns a `400 invalid_request_error`.\n *\n * Supported executor models: Claude Haiku 4.5, Sonnet 4.6, Opus 4.6,\n * Opus 4.7. The advisor must be at least as capable as the executor.\n *\n * @param model - The advisor model ID (required), e.g. `\"claude-opus-4-7\"`.\n * @param maxUses - Maximum advisor calls per request (per-request cap).\n * @param caching - Enables prompt caching for the advisor's transcript\n * across calls within a conversation. Worthwhile from ~3 advisor calls\n * per conversation.\n */\n advisor_20260301,\n /**\n * The bash tool enables Claude to execute shell commands in a persistent bash session,\n * allowing system operations, script execution, and command-line automation.\n *\n * Image results are supported.\n */\n bash_20241022,\n /**\n * The bash tool enables Claude to execute shell commands in a persistent bash session,\n * allowing system operations, script execution, and command-line automation.\n *\n * Image results are supported.\n */\n bash_20250124,\n /**\n * Claude can analyze data, create visualizations, perform complex calculations,\n * run system commands, create and edit files, and process uploaded files directly within\n * the API conversation.\n *\n * The code execution tool allows Claude to run Bash commands and manipulate files,\n * including writing code, in a secure, sandboxed environment.\n */\n codeExecution_20250522,\n /**\n * Claude can analyze data, create visualizations, perform complex calculations,\n * run system commands, create and edit files, and process uploaded files directly within\n * the API conversation.\n *\n * The code execution tool allows Claude to run both Python and Bash commands and manipulate files,\n * including writing code, in a secure, sandboxed environment.\n *\n * This is the latest version with enhanced Bash support and file operations.\n */\n codeExecution_20250825,\n /**\n * Claude can analyze data, create visualizations, perform complex calculations,\n * run system commands, create and edit files, and process uploaded files directly within\n * the API conversation.\n *\n * The code execution tool allows Claude to run both Python and Bash commands and manipulate files,\n * including writing code, in a secure, sandboxed environment.\n *\n * This is the recommended version. Does not require a beta header.\n *\n * Supported models: Claude Opus 4.6, Sonnet 4.6, Sonnet 4.5, Opus 4.5\n */\n codeExecution_20260120,\n /**\n * Claude can interact with computer environments through the computer use tool, which\n * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.\n *\n * Image results are supported.\n *\n * @param displayWidthPx - The width of the display being controlled by the model in pixels.\n * @param displayHeightPx - The height of the display being controlled by the model in pixels.\n * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.\n */\n computer_20241022,\n /**\n * Claude can interact with computer environments through the computer use tool, which\n * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.\n *\n * Image results are supported.\n *\n * @param displayWidthPx - The width of the display being controlled by the model in pixels.\n * @param displayHeightPx - The height of the display being controlled by the model in pixels.\n * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.\n */\n computer_20250124,\n /**\n * Claude can interact with computer environments through the computer use tool, which\n * provides screenshot capabilities and mouse/keyboard control for autonomous desktop interaction.\n *\n * This version adds the zoom action for detailed screen region inspection.\n *\n * Image results are supported.\n *\n * Supported models: Claude Opus 4.5\n *\n * @param displayWidthPx - The width of the display being controlled by the model in pixels.\n * @param displayHeightPx - The height of the display being controlled by the model in pixels.\n * @param displayNumber - The display number to control (only relevant for X11 environments). If specified, the tool will be provided a display number in the tool definition.\n * @param enableZoom - Enable zoom action. Set to true to allow Claude to zoom into specific screen regions. Default: false.\n */\n computer_20251124,\n /**\n * The memory tool enables Claude to store and retrieve information across conversations through a memory file directory.\n * Claude can create, read, update, and delete files that persist between sessions,\n * allowing it to build knowledge over time without keeping everything in the context window.\n * The memory tool operates client-side—you control where and how the data is stored through your own infrastructure.\n *\n * Supported models: Claude Sonnet 4.5, Claude Sonnet 4, Claude Opus 4.1, Claude Opus 4.\n */\n memory_20250818,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files,\n * helping you debug, fix, and improve your code or other text documents. This allows Claude\n * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.\n *\n * Supported models: Claude Sonnet 3.5\n */\n textEditor_20241022,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files,\n * helping you debug, fix, and improve your code or other text documents. This allows Claude\n * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.\n *\n * Supported models: Claude Sonnet 3.7\n */\n textEditor_20250124,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files,\n * helping you debug, fix, and improve your code or other text documents. This allows Claude\n * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.\n *\n * Note: This version does not support the \"undo_edit\" command.\n *\n * @deprecated Use textEditor_20250728 instead\n */\n textEditor_20250429,\n /**\n * Claude can use an Anthropic-defined text editor tool to view and modify text files,\n * helping you debug, fix, and improve your code or other text documents. This allows Claude\n * to directly interact with your files, providing hands-on assistance rather than just suggesting changes.\n *\n * Note: This version does not support the \"undo_edit\" command and adds optional max_characters parameter.\n *\n * Supported models: Claude Sonnet 4, Opus 4, and Opus 4.1\n *\n * @param maxCharacters - Optional maximum number of characters to view in the file\n */\n textEditor_20250728,\n /**\n * Creates a web fetch tool that gives Claude direct access to real-time web content.\n *\n * @param maxUses - The max_uses parameter limits the number of web fetches performed\n * @param allowedDomains - Only fetch from these domains\n * @param blockedDomains - Never fetch from these domains\n * @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.\n * @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.\n */\n webFetch_20250910,\n /**\n * Creates a web fetch tool that gives Claude direct access to real-time web content.\n *\n * @param maxUses - The max_uses parameter limits the number of web fetches performed\n * @param allowedDomains - Only fetch from these domains\n * @param blockedDomains - Never fetch from these domains\n * @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.\n * @param maxContentTokens - The max_content_tokens parameter limits the amount of content that will be included in the context.\n */\n webFetch_20260209,\n /**\n * Creates a web search tool that gives Claude direct access to real-time web content.\n *\n * @param maxUses - Maximum number of web searches Claude can perform during the conversation.\n * @param allowedDomains - Optional list of domains that Claude is allowed to search.\n * @param blockedDomains - Optional list of domains that Claude should avoid when searching.\n * @param userLocation - Optional user location information to provide geographically relevant search results.\n */\n webSearch_20250305,\n /**\n * Creates a web search tool that gives Claude direct access to real-time web content.\n *\n * @param maxUses - Maximum number of web searches Claude can perform during the conversation.\n * @param allowedDomains - Optional list of domains that Claude is allowed to search.\n * @param blockedDomains - Optional list of domains that Claude should avoid when searching.\n * @param userLocation - Optional user location information to provide geographically relevant search results.\n */\n webSearch_20260209,\n /**\n * Creates a tool search tool that uses regex patterns to find tools.\n *\n * The tool search tool enables Claude to work with hundreds or thousands of tools\n * by dynamically discovering and loading them on-demand. Instead of loading all\n * tool definitions into the context window upfront, Claude searches your tool\n * catalog and loads only the tools it needs.\n *\n * Use `providerOptions: { anthropic: { deferLoading: true } }` on other tools\n * to mark them for deferred loading.\n *\n * Supported models: Claude Opus 4.5, Claude Sonnet 4.5\n */\n toolSearchRegex_20251119,\n /**\n * Creates a tool search tool that uses BM25 (natural language) to find tools.\n *\n * The tool search tool enables Claude to work with hundreds or thousands of tools\n * by dynamically discovering and loading them on-demand. Instead of loading all\n * tool definitions into the context window upfront, Claude searches your tool\n * catalog and loads only the tools it needs.\n *\n * Use `providerOptions: { anthropic: { deferLoading: true } }` on other tools\n * to mark them for deferred loading.\n *\n * Supported models: Claude Opus 4.5, Claude Sonnet 4.5\n */\n toolSearchBm25_20251119\n};\nexport {\n AnthropicMessagesLanguageModel,\n anthropicTools,\n prepareTools\n};\n//# sourceMappingURL=index.mjs.map"
|
|
7
|
+
],
|
|
8
|
+
"mappings": ";2YAIA,uBCkBA,SAAI,QAA2B,OAC7B,IAAM,EACJ,EAAE,OAAO,CACP,KAAM,EAAE,QAAQ,OAAO,EACvB,MAAO,EAAE,OAAO,CACd,KAAM,EAAE,OAAO,EACf,QAAS,EAAE,OAAO,CACpB,CAAC,CACH,CAAC,CACH,CACF,EACI,GAAiC,GAA+B,CAClE,YAAa,GACb,eAAgB,CAAC,IAAS,EAAK,MAAM,OACvC,CAAC,EAQG,GAAkC,EACpC,IAAM,EACJ,EAAG,OAAO,CACR,KAAM,EAAG,QAAQ,SAAS,EAC1B,GAAI,EAAG,OAAO,EAAE,QAAQ,EACxB,MAAO,EAAG,OAAO,EAAE,QAAQ,EAC3B,QAAS,EAAG,MACV,EAAG,mBAAmB,OAAQ,CAC5B,EAAG,OAAO,CACR,KAAM,EAAG,QAAQ,MAAM,EACvB,KAAM,EAAG,OAAO,EAChB,UAAW,EAAG,MACZ,EAAG,mBAAmB,OAAQ,CAC5B,EAAG,OAAO,CACR,KAAM,EAAG,QAAQ,4BAA4B,EAC7C,WAAY,EAAG,OAAO,EACtB,IAAK,EAAG,OAAO,EACf,MAAO,EAAG,OAAO,EACjB,gBAAiB,EAAG,OAAO,CAC7B,CAAC,E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