@nuvin/agent-core 0.2.0-rc.1 → 0.2.0-rc.10
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/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/agent/metrics.d.ts +17 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -0
- package/dist/chunk-IUZALP6K.js +1 -0
- package/dist/chunk-LIE76IJA.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -0
- package/dist/chunk-ZHE3E26D.js +1 -0
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/lsp/client.d.ts +4 -0
- package/dist/models/chat-model.d.ts +1 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +2 -0
- package/dist/models/model-cost.d.ts +5 -0
- package/dist/models/model-pricing-generator.d.ts +9 -0
- package/dist/models/model-pricing-products.d.ts +45 -0
- package/dist/models/model-pricing-types.d.ts +33 -0
- package/dist/models/model-pricing.d.ts +13 -0
- package/dist/models/model-pricing.generated.d.ts +23147 -0
- package/dist/models/model-registry.d.ts +8 -0
- package/dist/models/openai-surfaces.d.ts +4 -1
- package/dist/models/routed-model.d.ts +3 -0
- package/dist/shared/abort-aware-semaphore.d.ts +5 -0
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +3 -4
- package/dist/shared/types.d.ts +94 -22
- package/dist/tools/{internal-tool-runtime.d.ts → core/internal-tool-runtime.d.ts} +1 -1
- package/dist/tools/core/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/core/runtime-manager-tools.d.ts +87 -0
- package/dist/tools/{tool-output-offload.d.ts → core/tool-output-offload.d.ts} +1 -1
- package/dist/tools/{tools.d.ts → core/tools.d.ts} +4 -1
- package/dist/tools/file-editing/anchored-file-edit.d.ts +53 -0
- package/dist/tools/file-editing/anchored-file-errors.d.ts +5 -0
- package/dist/tools/file-editing/anchored-file-operations.d.ts +38 -0
- package/dist/tools/file-editing/anchored-file-read.d.ts +37 -0
- package/dist/tools/file-editing/atomic-file-write.d.ts +19 -0
- package/dist/tools/file-editing/file-edit-tool.d.ts +166 -0
- package/dist/tools/file-editing/file-mutation-coordinator.d.ts +13 -0
- package/dist/tools/file-editing/file-mutation.d.ts +15 -0
- package/dist/tools/{file-new-tool.d.ts → file-editing/file-new-tool.d.ts} +5 -2
- package/dist/tools/file-editing/file-observation-store.d.ts +40 -0
- package/dist/tools/{file-read-tool.d.ts → file-editing/file-read-tool.d.ts} +8 -2
- package/dist/tools/file-editing/file-snapshot.d.ts +16 -0
- package/dist/tools/file-editing/hashline-file-edit-adapter.d.ts +19 -0
- package/dist/tools/file-editing/structured-file-edit-adapter.d.ts +94 -0
- package/dist/tools/file-editing/workspace-paths.d.ts +20 -0
- package/dist/tools/index.d.ts +43 -29
- package/dist/tools/index.js +1 -1
- package/dist/tools/mcp/mcp-connection-generation.d.ts +59 -0
- package/dist/tools/mcp/mcp-safe-error-provenance.d.ts +4 -0
- package/dist/tools/mcp/mcp-safe-error.d.ts +14 -0
- package/dist/tools/mcp/mcp-server-manager.d.ts +16 -0
- package/dist/tools/mcp/mcp-tool-adapter.d.ts +72 -0
- package/dist/tools/{glob-tool.d.ts → search/glob-tool.d.ts} +2 -2
- package/dist/tools/search/grep-engine.d.ts +22 -0
- package/dist/tools/{grep-tool.d.ts → search/grep-tool.d.ts} +3 -3
- package/dist/tools/{ls-tool.d.ts → search/ls-tool.d.ts} +2 -2
- package/dist/tools/{ripgrep.d.ts → search/ripgrep.d.ts} +1 -0
- package/dist/tools/{view-file-tool.d.ts → search/view-file-tool.d.ts} +2 -2
- package/dist/tools/{ask-user-tool.d.ts → session/ask-user-tool.d.ts} +2 -2
- package/dist/tools/{lsp-tool.d.ts → session/lsp-tool.d.ts} +5 -5
- package/dist/tools/{skill-tool.d.ts → session/skill-tool.d.ts} +2 -2
- package/dist/tools/{todo-write-tool.d.ts → session/todo-write-tool.d.ts} +2 -2
- package/dist/tools/session/update-topic-tool.d.ts +12 -0
- package/dist/tools/shell/background-process-registry.d.ts +116 -0
- package/dist/tools/{bash-output-tool.d.ts → shell/bash-output-tool.d.ts} +2 -2
- package/dist/tools/{bash-tool.d.ts → shell/bash-tool.d.ts} +10 -6
- package/dist/tools/{command-tool.d.ts → shell/command-tool.d.ts} +2 -2
- package/dist/tools/{kill-shell-tool.d.ts → shell/kill-shell-tool.d.ts} +2 -2
- package/dist/tools/shell/process-tree-termination.d.ts +25 -0
- package/dist/tools/shell/terminal-output-normalizer.d.ts +6 -0
- package/dist/tools/{web-fetch-tool.d.ts → web/web-fetch-tool.d.ts} +2 -2
- package/dist/tools/{web-search-tool.d.ts → web/web-search-tool.d.ts} +2 -2
- package/package.json +4 -3
- package/dist/chunk-E4R6CEFK.js +0 -1
- package/dist/chunk-NYZR4XKO.js +0 -1
- package/dist/chunk-RABU4RC2.js +0 -1
- package/dist/chunk-RTDLM6FU.js +0 -1
- package/dist/tools/background-process-registry.d.ts +0 -64
- package/dist/tools/file-edit-tool.d.ts +0 -34
- package/dist/tools/mcp-server-manager.d.ts +0 -60
- package/dist/tools/mcp-tool-adapter.d.ts +0 -47
- package/dist/tools/mock-tool-runtime.d.ts +0 -3
- package/dist/tools/runtime-manager-tools.d.ts +0 -58
- package/dist/tools/update-topic-tool.d.ts +0 -12
- package/dist/tools/workspace-paths.d.ts +0 -5
- /package/dist/tools/{mcp-oauth-provider.d.ts → mcp/mcp-oauth-provider.d.ts} +0 -0
- /package/dist/tools/{bash-internals.d.ts → shell/bash-internals.d.ts} +0 -0
- /package/dist/tools/{safe-fetch.d.ts → web/safe-fetch.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvin/agent-core",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Core agent, model, format, and tool primitives for Nuvin",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
|
-
"node": ">=
|
|
15
|
+
"node": ">=22"
|
|
16
16
|
},
|
|
17
17
|
"imports": {
|
|
18
18
|
"#/*": "./src/*"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"tsup": "^8.5.1",
|
|
53
53
|
"typescript": "^6.0.2",
|
|
54
54
|
"vitest": "^4.1.2",
|
|
55
|
-
"@nuvin/config": "0.
|
|
55
|
+
"@nuvin/config": "0.3.0-rc.10"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@anthropic-ai/sdk": "^0.82.0",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"@vscode/ripgrep": "^1.18.0",
|
|
61
61
|
"cheerio": "^1.0.0",
|
|
62
62
|
"openai": "^6.33.0",
|
|
63
|
+
"string-width": "^8.1.0",
|
|
63
64
|
"turndown": "^7.2.4",
|
|
64
65
|
"vscode-jsonrpc": "^8.2.0",
|
|
65
66
|
"vscode-languageserver-protocol": "^3.17.5",
|
package/dist/chunk-E4R6CEFK.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x473145,_0x40f261){const _0x59a18d={_0x44a8c0:0x2e2,_0x1138d1:0x2e1,_0x2fd951:0x2f6,_0x18b35c:0x1f4,_0x37c991:0x1f0,_0x277ed6:0x2f5,_0x575e2c:0x2f1,_0x32952a:0x2fb,_0x1934a5:0x2db,_0x35cf0b:0x211,_0x9119a2:0x234,_0xcbefe:0x233,_0x5e1eed:0x316,_0x202027:0x32d,_0x58d793:0x332,_0x3afe4c:0x30d,_0x1812ec:0x2e0,_0x99da:0x1f3,_0xfd13cd:0x1f4,_0x3dc103:0x316,_0x1a2b69:0x303,_0x5866da:0x31d,_0x25e470:0x1ee,_0x559a57:0x1ef,_0xbec542:0x1e3,_0x5548df:0x2db,_0x520315:0x2d9},_0x4d420f={_0x5a4368:0x42};function _0x22f351(_0x534da0,_0x4d3b65,_0x1fa1c9,_0x5f3a70){return _0x2af4(_0x4d3b65-_0x4d420f._0x5a4368,_0x534da0);}const _0x74c036=_0x473145();function _0x4c809d(_0x39a9c3,_0x18b48a,_0x924308,_0x4bd773){return _0x2af4(_0x39a9c3-0x144,_0x18b48a);}while(!![]){try{const _0x278544=parseInt(_0x4c809d(_0x59a18d._0x44a8c0,_0x59a18d._0x1138d1,_0x59a18d._0x2fd951,0x2c1))/0x1*(-parseInt(_0x22f351(0x1da,0x1f8,_0x59a18d._0x18b35c,_0x59a18d._0x37c991))/0x2)+parseInt(_0x4c809d(0x2fc,_0x59a18d._0x277ed6,_0x59a18d._0x575e2c,0x2fd))/0x3*(-parseInt(_0x4c809d(_0x59a18d._0x32952a,0x2f9,_0x59a18d._0x1934a5,0x2e8))/0x4)+-parseInt(_0x22f351(0x1f4,_0x59a18d._0x35cf0b,_0x59a18d._0x9119a2,_0x59a18d._0xcbefe))/0x5+parseInt(_0x4c809d(_0x59a18d._0x5e1eed,_0x59a18d._0x202027,0x335,_0x59a18d._0x58d793))/0x6*(parseInt(_0x4c809d(0x2f6,_0x59a18d._0x3afe4c,_0x59a18d._0x1812ec,0x2d9))/0x7)+parseInt(_0x22f351(0x1eb,_0x59a18d._0x99da,_0x59a18d._0xfd13cd,0x1f9))/0x8*(-parseInt(_0x4c809d(0x30c,_0x59a18d._0x3dc103,_0x59a18d._0x1a2b69,_0x59a18d._0x5866da))/0x9)+parseInt(_0x22f351(0x1e1,_0x59a18d._0x25e470,0x1fe,0x1e4))/0xa*(-parseInt(_0x22f351(0x1f2,_0x59a18d._0x559a57,0x1f4,_0x59a18d._0xbec542))/0xb)+parseInt(_0x4c809d(0x2f7,_0x59a18d._0x1138d1,_0x59a18d._0x5548df,_0x59a18d._0x520315))/0xc;if(_0x278544===_0x40f261)break;else _0x74c036['push'](_0x74c036['shift']());}catch(_0x4e1008){_0x74c036['push'](_0x74c036['shift']());}}}(_0x1a51,0x1a5e3));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-RABU4RC2.js';function systemToInstructions(_0x4f8ca7){function _0x4cc6ca(_0xea19e5,_0x50b746,_0x4a33f8,_0x35fddc){return _0x2af4(_0xea19e5-0x1d4,_0x50b746);}function _0x64301b(_0x1ee076,_0x247ad7,_0x3618cc,_0x366061){return _0x2af4(_0x366061- -0x8e,_0x3618cc);}return normalizeContent(_0x4f8ca7)['filter'](_0x48190b=>_0x48190b[_0x64301b(0x126,0x14c,0x123,0x140)]==='text')[_0x4cc6ca(0x36a,0x35a,0x38d,0x35d)](_0x128ec2=>_0x128ec2['text'])['join']('\x0a\x0a');}function pushUserContentMessage(_0x4be613,_0x44f504,_0x25b925){const _0x156e67={_0x5b3bf4:0x57d,_0x5885b3:0x57c,_0x284ed5:0x583};function _0x300ae2(_0x539051,_0x2fa1c8,_0x14fb75,_0x442dfd){return _0x2af4(_0x539051- -0xdf,_0x14fb75);}function _0x3f418c(_0x1f7e34,_0xda1e69,_0x240124,_0x320ea6){return _0x2af4(_0x1f7e34-0x3e3,_0x320ea6);}if(_0x25b925[_0x300ae2(0xe5,0xcd,0xcd,0xfc)]===0x0)return;_0x4be613[_0x3f418c(_0x156e67._0x5b3bf4,0x567,0x59d,0x59b)]({'type':_0x3f418c(_0x156e67._0x5885b3,_0x156e67._0x284ed5,0x575,0x56a),'role':_0x44f504,'content':_0x25b925});}function _0x2af4(_0x55ba9d,_0x443282){_0x55ba9d=_0x55ba9d-0x192;const _0x1a51fd=_0x1a51();let _0x2af421=_0x1a51fd[_0x55ba9d];if(_0x2af4['TjIHEg']===undefined){var _0x3bf494=function(_0x2aa00c){const _0x4ac27b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f8ca7='',_0x48190b='';for(let _0x128ec2=0x0,_0x4be613,_0x44f504,_0x25b925=0x0;_0x44f504=_0x2aa00c['charAt'](_0x25b925++);~_0x44f504&&(_0x4be613=_0x128ec2%0x4?_0x4be613*0x40+_0x44f504:_0x44f504,_0x128ec2++%0x4)?_0x4f8ca7+=String['fromCharCode'](0xff&_0x4be613>>(-0x2*_0x128ec2&0x6)):0x0){_0x44f504=_0x4ac27b['indexOf'](_0x44f504);}for(let _0xab0d66=0x0,_0x2e67ee=_0x4f8ca7['length'];_0xab0d66<_0x2e67ee;_0xab0d66++){_0x48190b+='%'+('00'+_0x4f8ca7['charCodeAt'](_0xab0d66)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48190b);};_0x2af4['UMqmNh']=_0x3bf494,_0x2af4['ipeafu']={},_0x2af4['TjIHEg']=!![];}const _0x5326a7=_0x1a51fd[0x0],_0x318c38=_0x55ba9d+_0x5326a7,_0x380147=_0x2af4['ipeafu'][_0x318c38];return!_0x380147?(_0x2af421=_0x2af4['UMqmNh'](_0x2af421),_0x2af4['ipeafu'][_0x318c38]=_0x2af421):_0x2af421=_0x380147,_0x2af421;}function hasSerializableToolUse(_0xab0d66){const _0x1077d9={_0x5865de:0x4a,_0x1cef0b:0x62,_0x5dc187:0x69,_0x277fe1:0x2ba,_0xc9b126:0x2ce,_0x410257:0x61,_0x3d2ff3:0x6f},_0x1e2ecb={_0x5242e1:0x143};function _0x45eaf3(_0xd08ab0,_0x288102,_0x39ff2d,_0x723cad){return _0x2af4(_0x723cad-_0x1e2ecb._0x5242e1,_0x39ff2d);}function _0x53e06f(_0x35e0b8,_0x5b6c5f,_0x1ac822,_0x50ae85){return _0x2af4(_0x1ac822- -0x15a,_0x5b6c5f);}return _0xab0d66['id'][_0x53e06f(_0x1077d9._0x5865de,0x62,_0x1077d9._0x1cef0b,_0x1077d9._0x5dc187)]()['length']>0x0&&_0xab0d66[_0x45eaf3(0x2be,_0x1077d9._0x277fe1,_0x1077d9._0xc9b126,0x2d5)]['trim']()[_0x53e06f(_0x1077d9._0x410257,0x6a,0x6a,_0x1077d9._0x3d2ff3)]>0x0;}function hasSerializableToolResult(_0x2e67ee){const _0x50e43b={_0x58746b:0xa3,_0x4de459:0x95,_0x2ab457:0xb0};function _0x55d942(_0xab5d64,_0x4a04ec,_0x1e629f,_0x3d8ffe){return _0x2af4(_0x3d8ffe- -0x10c,_0xab5d64);}return _0x2e67ee['tool_use_id'][_0x55d942(_0x50e43b._0x58746b,0xc4,_0x50e43b._0x4de459,_0x50e43b._0x2ab457)]()['length']>0x0;}function isResponseInputObject(_0x5c5aaa){const _0x51a78c={_0x2bf7a5:0x523,_0x13d7a0:0x53c,_0x4d1d20:0x33d,_0x511211:0x341,_0x4650ac:0x541,_0x37b116:0x34a,_0x2262c7:0x346},_0x239d2a={_0x4588ed:0x356};if(typeof _0x5c5aaa!==_0x4b2fda(0x509,_0x51a78c._0x2bf7a5,0x511,_0x51a78c._0x13d7a0)||_0x5c5aaa===null||Array[_0x255e27(_0x51a78c._0x4d1d20,_0x51a78c._0x511211,0x340,0x363)](_0x5c5aaa))return![];const _0x209fc5=_0x5c5aaa;function _0x4b2fda(_0x3d36e6,_0x302e22,_0x4113d0,_0x51b88d){return _0x2af4(_0x302e22-_0x239d2a._0x4588ed,_0x3d36e6);}function _0x255e27(_0x535db0,_0x1230b5,_0x4a93be,_0x7d53a1){return _0x2af4(_0x1230b5-0x17e,_0x535db0);}return typeof _0x209fc5[_0x4b2fda(0x53f,0x524,0x52c,_0x51a78c._0x4650ac)]===_0x255e27(0x33d,_0x51a78c._0x37b116,0x33e,_0x51a78c._0x2262c7);}function isImageToolResultBlock(_0x5d145f){const _0x597b88={_0x1024ac:0x4ce,_0x4ecd60:0x4ad,_0x4070a2:0x4d0,_0x37d6db:0x4c4,_0x298e1c:0x4d2,_0x5b77f3:0x4e0,_0x2226aa:0x4bf,_0x49bae9:0x47c,_0x1580fd:0x4a6,_0x178a80:0x498,_0x372bae:0x4ac,_0x3f0302:0x4c0,_0x5d7ebf:0x4d8,_0x3f2b5e:0x4a7,_0x45d6da:0x48c,_0x475bbd:0x4cc,_0x2d1243:0x4bf,_0x3b386f:0x4a2,_0x1b46d8:0x46a,_0x2c4652:0x49c,_0x4ffb1f:0x4be,_0x58f5e0:0x4bd},_0x1284b5={_0x12a381:0x2f2};if(typeof _0x5d145f!==_0x4fae50(_0x597b88._0x1024ac,_0x597b88._0x4ecd60,_0x597b88._0x4070a2,0x4c1)||_0x5d145f===null||Array[_0x4fae50(_0x597b88._0x37d6db,_0x597b88._0x298e1c,_0x597b88._0x5b77f3,_0x597b88._0x2226aa)](_0x5d145f))return![];const _0x1fa33b=_0x5d145f;function _0x47582c(_0x4c5c14,_0x5ef068,_0x50d7b8,_0x54eb50){return _0x2af4(_0x5ef068-_0x1284b5._0x12a381,_0x54eb50);}function _0x4fae50(_0x50a4e4,_0x16e098,_0x41187a,_0x5c3922){return _0x2af4(_0x50a4e4-0x301,_0x41187a);}return _0x1fa33b['type']==='image'&&_0x1fa33b[_0x47582c(_0x597b88._0x49bae9,0x493,_0x597b88._0x1580fd,_0x597b88._0x178a80)]?.[_0x47582c(_0x597b88._0x372bae,_0x597b88._0x3f0302,0x4d3,_0x597b88._0x5d7ebf)]===_0x47582c(_0x597b88._0x3f2b5e,0x491,_0x597b88._0x45d6da,0x4b1)&&typeof _0x1fa33b[_0x47582c(0x488,0x493,0x4b5,0x4ab)][_0x4fae50(_0x597b88._0x475bbd,0x4d8,_0x597b88._0x2d1243,_0x597b88._0x4ecd60)]==='string'&&typeof _0x1fa33b[_0x4fae50(_0x597b88._0x3b386f,0x49d,0x4aa,0x484)][_0x47582c(0x495,0x487,_0x597b88._0x1b46d8,0x481)]===_0x47582c(_0x597b88._0x2c4652,_0x597b88._0x4ffb1f,_0x597b88._0x58f5e0,_0x597b88._0x3f2b5e);}function getToolResultText(_0x5822a1){const _0x1c795f={_0xafb7cb:0xee,_0x581329:0xaa,_0x30b36e:0x559,_0x3503f5:0xac,_0x3b6e1f:0xad,_0x482101:0xc9,_0x25ee90:0xd4},_0x17511a={_0x2a950e:0xde},_0xab71e3={_0x3ff97e:0x1d,_0x488f05:0x38,_0x9698de:0x21,_0x1ad54f:0x5,_0x40ffd2:0x1b},_0x386714={_0x33584a:0x3c3};if(typeof _0x5822a1===_0x5cc0d4(0xf0,_0x1c795f._0xafb7cb,0x100,0xd0))return _0x5822a1;function _0x3060c1(_0x5a8659,_0x5d041e,_0x391c81,_0x5d72d3){return _0x2af4(_0x5a8659-_0x386714._0x33584a,_0x5d041e);}const _0x2d5924=_0x5822a1[_0x5cc0d4(0xc3,0xca,_0x1c795f._0x581329,0xcf)](_0x455d62=>{const _0x5cce49={_0x245a8d:0x73},_0x558883={_0x435a07:0x172,_0x363ba8:0x289,_0x38128c:0x93};function _0x27c0b1(_0x3e0799,_0x21e96d,_0x2436c1,_0x3a623a){return _0x5cc0d4(_0x3e0799-_0x558883._0x435a07,_0x21e96d- -_0x558883._0x363ba8,_0x3e0799,_0x3a623a-_0x558883._0x38128c);}function _0x155514(_0x5d487d,_0x55a974,_0x52cdee,_0x33ca00){return _0x5cc0d4(_0x5d487d-0x115,_0x5d487d- -0xd2,_0x33ca00,_0x33ca00-_0x5cce49._0x245a8d);}return typeof _0x455d62===_0x155514(_0xab71e3._0x3ff97e,_0xab71e3._0x488f05,_0xab71e3._0x9698de,0x32)&&_0x455d62!==null&&_0x455d62[_0x155514(0x1e,0x15,0x3f,0x5)]===_0x155514(-0x5,0x9,-_0xab71e3._0x1ad54f,-_0xab71e3._0x40ffd2);})[_0x3060c1(_0x1c795f._0x30b36e,0x552,0x54b,0x55f)](_0x13746c=>_0x13746c[_0x5cc0d4(0xc3,0xcd,0xbb,0xb5)])[_0x5cc0d4(_0x1c795f._0x3503f5,0xc9,_0x1c795f._0x3b6e1f,0xc7)]('\x0a\x0a')[_0x3060c1(0x57f,0x575,0x594,0x586)]();function _0x5cc0d4(_0x3bcfe6,_0x2c79a4,_0x5ebc00,_0x5b533e){return _0x2af4(_0x2c79a4- -_0x17511a._0x2a950e,_0x5ebc00);}return _0x2d5924[_0x5cc0d4(_0x1c795f._0x482101,0xe6,0xe1,_0x1c795f._0x25ee90)]>0x0?_0x2d5924:_0x3060c1(0x58d,0x57c,0x58b,0x587);}function _0x1a51(){const _0x1a0a2a=['C3LZDgvT','BMfTzq','y29UDgvUDa','Dg9VBhm','zgf0yq','BwfW','B3v0Chv0rM9YBwf0','A2v5CW','BwvZC2fNzq','ChvZAa','Bw9KzwW','yxnZAxn0yw50','Dg9VBf91C2vFAwq','mtuXodncDufOtfu','yMfZzty0','C3vTBwfYEq','C291CMnL','zNvUy3rPB24','DxnLCI12AxnPyMXL','Aw1Hz2u','C2nOzw1H','Dg9VBf91C2u','AM9PBG','zMLSDgvY','ChjVDMLKzxjtDgf0zq','Aw5WDxrFDgv4Da','Dgv4Da','nJeWrhneAw1f','mtm3ntb3zeTeDxK','Bwf4vg9Rzw5Z','CM9Szq','DMLZAwjPBgL0Eq','mtyWsunUDLnr','mJHyqMDStem','odCXnZa4ohnwthv1qG','yxv0BW','C3rYDwn0DxjLzf9VDxrWDxq','mJH1uvfzAu8','ntq4wKv5uvrt','mtm4ow5kB2r0vG','Aw5WDxq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','o2jHC2u2ncW','DhjPBq','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Aw5WDxrFAw1Hz2u','Aw5WDxrFC2nOzw1H','zwzMB3j0','C3rHDhvZ','ANnVBL9Zy2HLBwe','AxnbCNjHEq','BgvUz3rO','DxnLCG','zgf0ytO','C3rYAw5NAwz5','odiWmtDQDuPzv0O','B3v0Chv0x3rLEhq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','BwvKAwfFDhLWzq','C3rYAw5N','B2jQzwn0','DhLWzq','oti5mZCWquPtteTT','C3bSAwnL','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','mtuYotm0veTxtM94','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Dg9VBf9Yzxn1Bhq','CMvHC29UAw5N'];_0x1a51=function(){return _0x1a0a2a;};return _0x1a51();}function getToolResultImages(_0x2e06d1){const _0x4f6bf7={_0x1b730a:0x378,_0x509532:0x360},_0x42070f={_0x22d419:0x1be};function _0x288b21(_0x4876c5,_0x106f40,_0x2245ca,_0x2ad7cf){return _0x2af4(_0x4876c5-_0x42070f._0x22d419,_0x2245ca);}return Array[_0x288b21(0x381,_0x4f6bf7._0x1b730a,0x374,_0x4f6bf7._0x509532)](_0x2e06d1)?_0x2e06d1['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x282430){const _0x3e5f27={_0x316b8d:0x2a3,_0x3a6f7a:0x29f,_0x2d0e5a:0x2a8},_0x25bce2={_0x33f3da:0xf3},_0x31cc27={_0x2e8cdf:0xf7};function _0x48f45c(_0x5aaf20,_0x4b0c00,_0x112f8f,_0x1faa57){return _0x2af4(_0x5aaf20-_0x31cc27._0x2e8cdf,_0x4b0c00);}function _0x31c112(_0x22f5a9,_0xae4a31,_0x489328,_0x504030){return _0x2af4(_0x489328-_0x25bce2._0x33f3da,_0x22f5a9);}return _0x282430['reasoning']?.[_0x31c112(0x28a,0x2b3,_0x3e5f27._0x316b8d,_0x3e5f27._0x3a6f7a)]??_0x48f45c(0x29a,0x27a,_0x3e5f27._0x2d0e5a,0x295);}function createOpenAiResponsesReasoning(_0x4a7319){const _0x301ff1={_0x5aa738:0x395,_0x7785db:0x3a0,_0x5884aa:0x38b,_0x22d76c:0x1ca,_0x488741:0x1d8,_0x4b54dc:0x1d8,_0x5db7f6:0x1df,_0x5880ba:0x370,_0x20d21f:0x390,_0x21a422:0x38b,_0x2cacc1:0x200,_0x41b5db:0x1e1,_0xa2f167:0x1f4},_0x2596a7={_0x537398:0x1bf},_0x4dd466=resolveOpenAiReasoningConfig(_0x4a7319[_0x20500d(0x372,0x394,0x37d,0x37f)]);if(!_0x4dd466)return{};const _0x36dfc9={};function _0x20500d(_0x53e82e,_0x4b96e4,_0x51945b,_0x27f730){return _0x2af4(_0x4b96e4-_0x2596a7._0x537398,_0x51945b);}function _0x425be0(_0x2d63f6,_0x5c7ee6,_0x5d8656,_0x585ebd){return _0x2af4(_0x2d63f6- -0x398,_0x585ebd);}const _0x552640=_0x4dd466['summary']??(resolveReasoningVisibility(_0x4a7319)==='user-visible'?_0x20500d(_0x301ff1._0x5aa738,0x373,0x392,0x358):void 0x0);return _0x4dd466[_0x20500d(_0x301ff1._0x7785db,0x37f,0x37f,_0x301ff1._0x5884aa)]&&(_0x36dfc9[_0x425be0(-0x1d8,-_0x301ff1._0x22d76c,-_0x301ff1._0x488741,-0x1ef)]=_0x4dd466[_0x425be0(-_0x301ff1._0x4b54dc,-0x1ed,-0x1bc,-_0x301ff1._0x5db7f6)]),_0x552640&&(_0x36dfc9['summary']=_0x552640),{..._0x4dd466['includeEncryptedContent']===![]?{}:{'include':[_0x20500d(_0x301ff1._0x5880ba,_0x301ff1._0x20d21f,_0x301ff1._0x5880ba,_0x301ff1._0x21a422)]},...Object[_0x425be0(-_0x301ff1._0x2cacc1,-0x1f0,-_0x301ff1._0x41b5db,-_0x301ff1._0xa2f167)](_0x36dfc9)[_0x425be0(-0x1d4,-0x1f0,-0x1ce,-0x1c1)]>0x0?{'reasoning':_0x36dfc9}:{}};}function pushAssistantProviderState(_0x498c68,_0x44f0aa,_0xeefb0a){const _0x4e6775={_0x2c0326:0x1da,_0x17b1f7:0x1c7,_0x4d68b5:0x1a4,_0x2e20e9:0x1d0,_0x517cbc:0x2ac,_0x2e5903:0x28b,_0x514811:0x293,_0xa887c6:0x292,_0x46148d:0x2a4,_0x5587f2:0x1ef,_0x5338f4:0x1fc,_0x1441d5:0x2bf,_0x205033:0x2cd,_0x1ea318:0x2aa,_0x130b05:0x2b8,_0x1f3ca3:0x200,_0x2b87db:0x1e7,_0x3407a4:0x28a,_0x2c3e62:0x1cb,_0x26638a:0x1e0,_0x53d1e7:0x1d5,_0x2c7189:0x1bd};if(_0x44f0aa[_0x53054a(_0x4e6775._0x2c0326,0x1d2,_0x4e6775._0x2c0326,0x1e6)]!==_0x53054a(_0x4e6775._0x17b1f7,_0x4e6775._0x4d68b5,_0x4e6775._0x2e20e9,0x1e0))return![];if(!isProviderStateCompatible(_0x44f0aa,_0xeefb0a))return![];function _0x53054a(_0x2b4bbc,_0x4e06f8,_0x2575bf,_0x2019e3){return _0x2af4(_0x2b4bbc-0x2b,_0x2019e3);}function _0x12b277(_0x344581,_0x5934d0,_0xced41,_0x19024d){return _0x2af4(_0x19024d-0xea,_0x5934d0);}const _0x7fd68d=_0x44f0aa[_0x12b277(_0x4e6775._0x517cbc,0x291,_0x4e6775._0x2e5903,_0x4e6775._0x514811)]?.[_0x12b277(0x2bc,_0x4e6775._0xa887c6,_0x4e6775._0x46148d,0x2a4)]??[];if(_0x7fd68d[_0x53054a(0x1ef,0x1d8,_0x4e6775._0x5587f2,_0x4e6775._0x5338f4)]===0x0)return![];for(const _0xc3eaee of _0x7fd68d){if(isResponseInputObject(_0xc3eaee)){const _0x148fd2=structuredClone(_0xc3eaee);delete _0x148fd2[_0x12b277(_0x4e6775._0x1441d5,0x2b9,0x2af,0x2ab)],_0x148fd2[_0x12b277(_0x4e6775._0x205033,_0x4e6775._0x1ea318,0x2a4,_0x4e6775._0x130b05)]===_0x53054a(_0x4e6775._0x1f3ca3,0x1f7,0x219,_0x4e6775._0x2b87db)&&!Array[_0x12b277(0x2ca,0x2b7,0x2a5,0x2ad)](_0x148fd2[_0x12b277(0x279,0x288,0x276,_0x4e6775._0x3407a4)])&&(_0x148fd2[_0x53054a(_0x4e6775._0x2c3e62,_0x4e6775._0x26638a,_0x4e6775._0x53d1e7,_0x4e6775._0x2c7189)]=[]),_0x498c68['push'](_0x148fd2);}}return!![];}function toOpenAiResponsesRequest(_0x2eb6d4){const _0x3e11b7={_0x532831:0x81,_0x32c616:0x5f,_0x3c79c9:0x57,_0x47021e:0x134,_0x2dea25:0x105,_0x7f3479:0x114,_0x250535:0x48,_0x521619:0x52,_0x49bf2e:0xed,_0x47b15a:0x119,_0x5332ab:0x10a,_0x413cba:0x66,_0x3ca751:0x3b,_0x12bf5b:0x128,_0x1a07b0:0x117,_0x3bb1ee:0xf7,_0x16f059:0x134,_0x29c807:0x110,_0x5c3d42:0x51,_0x100e63:0x69,_0x24c228:0x46,_0x4f1049:0x54,_0x332ae7:0x6a,_0x3187e7:0x82,_0x470233:0x72,_0x183417:0x63,_0xe9846d:0x6b,_0x4ea099:0x12c,_0x4eff50:0x93,_0x3b90c4:0x58,_0x28fd39:0x67,_0xb6a115:0x4d,_0x19767a:0x144,_0x15c1f4:0x145,_0x1dc981:0x122,_0x3a3724:0x41,_0x5865cd:0x4f,_0xb1f7b2:0x61,_0x4ac4fb:0x5b,_0x518d7b:0x6f,_0x199071:0x101,_0x34d098:0xd4,_0x30cdae:0x7e,_0x34a1c2:0x121,_0x5620eb:0x11d,_0x248226:0x13c,_0x5f591a:0x129,_0x332ae1:0x137,_0x1aab07:0x73,_0x1fbf8b:0x6a,_0x473415:0x71,_0x477fb0:0x43,_0x5c15dc:0x10d,_0xe6572e:0x103,_0x5d37ca:0xf5,_0x2165ea:0x104,_0x2f11cf:0xd5,_0x22f0c3:0xef,_0x19709d:0x129,_0x1ab11d:0x10c,_0x37932a:0xf0,_0x5a92e6:0x36,_0x5dbd4a:0x38,_0x121a5e:0x49,_0x1691e9:0x12e,_0x37c647:0x139,_0x497c8c:0x130,_0x425870:0xdf,_0x180f20:0x100,_0x5cfa51:0x14c,_0x14907c:0xec,_0x5c31b9:0x41,_0x340327:0x10d,_0xe69c28:0x106,_0x2b38ea:0x59,_0x2af506:0x4b,_0x26266c:0x2c,_0xae9619:0x39,_0x52506a:0x13d,_0x39aab6:0x126,_0x3ffebb:0x128,_0x1628b1:0xd5,_0x1bcebd:0xed,_0x241ce3:0x107,_0x46d961:0x115,_0x55d502:0xfc,_0x4cfc6f:0x122,_0x28c6e6:0x12b,_0x11deff:0x14a,_0x78a330:0x12f,_0x1f5c36:0x42,_0x410bb0:0x35,_0x482a4e:0x23,_0x16d5ce:0x6e,_0x1a3ffe:0x5c,_0x4276c8:0x7f,_0x320ad7:0x131,_0x4b7060:0x12c,_0x169699:0x104,_0x2a66e7:0x10e,_0x28f292:0x51,_0xb63e3e:0x4f},_0x6871a2={_0x133890:0x258,_0x523555:0x24d,_0xd473d1:0x135,_0x51ed52:0x168,_0x3f9aee:0x266,_0x4e2dc0:0x275},_0x51a0a2={_0x456009:0x20a,_0xdffcd6:0x3d},_0x149202={_0x51db73:0x154},_0x4c0bb7={_0x52f68c:0x2c3},_0x59e7c0=[];function _0x195559(_0x12ee6d,_0x22b786,_0x42ed7c,_0x5b7855){return _0x2af4(_0x5b7855- -_0x4c0bb7._0x52f68c,_0x12ee6d);}function _0x207012(_0x45a266,_0x47048e,_0x376fbc,_0x2ff392){return _0x2af4(_0x45a266- -_0x149202._0x51db73,_0x2ff392);}for(const _0x5e7ab1 of _0x2eb6d4['messages']){if(pushAssistantProviderState(_0x59e7c0,_0x5e7ab1,_0x2eb6d4))continue;const _0x26f615=[];for(const _0x198464 of normalizeContent(_0x5e7ab1['content'])){if(_0x198464[_0x207012(0x7a,_0x3e11b7._0x532831,_0x3e11b7._0x32c616,0x8a)]===_0x207012(_0x3e11b7._0x3c79c9,0x4d,0x45,0x4b)){_0x26f615[_0x195559(-_0x3e11b7._0x47021e,-0x13d,-0x109,-0x129)](_0x5e7ab1[_0x195559(-0x110,-0x120,-_0x3e11b7._0x2dea25,-_0x3e11b7._0x7f3479)]===_0x207012(_0x3e11b7._0x250535,0x50,0x54,_0x3e11b7._0x521619)?{'type':_0x195559(-_0x3e11b7._0x49bf2e,-_0x3e11b7._0x47b15a,-_0x3e11b7._0x5332ab,-0xfa),'text':_0x198464[_0x207012(0x57,0x43,_0x3e11b7._0x413cba,_0x3e11b7._0x3ca751)]}:{'type':_0x195559(-_0x3e11b7._0x12bf5b,-_0x3e11b7._0x1a07b0,-0x117,-0x119),'text':_0x198464[_0x195559(-_0x3e11b7._0x3bb1ee,-_0x3e11b7._0x16f059,-_0x3e11b7._0x29c807,-0x118)]});continue;}if(_0x198464['type']===_0x207012(0x50,_0x3e11b7._0x5c3d42,0x5e,_0x3e11b7._0x100e63)){_0x26f615[_0x207012(_0x3e11b7._0x24c228,0x40,0x3a,_0x3e11b7._0x4f1049)]({'type':_0x207012(_0x3e11b7._0x332ae7,0x89,0x60,_0x3e11b7._0x3187e7),'image_url':_0x207012(_0x3e11b7._0x470233,0x7c,_0x3e11b7._0x183417,_0x3e11b7._0xe9846d)+_0x198464[_0x195559(-0x134,-_0x3e11b7._0x4ea099,-0x11f,-0x122)][_0x207012(0x77,_0x3e11b7._0x4eff50,_0x3e11b7._0x3b90c4,0x73)]+_0x207012(_0x3e11b7._0x28fd39,0x68,_0x3e11b7._0xb6a115,_0x3e11b7._0x250535)+_0x198464[_0x195559(-_0x3e11b7._0x19767a,-_0x3e11b7._0x29c807,-_0x3e11b7._0x15c1f4,-_0x3e11b7._0x1dc981)][_0x207012(_0x3e11b7._0x3a3724,_0x3e11b7._0x5865cd,0x41,_0x3e11b7._0xb1f7b2)]});continue;}pushUserContentMessage(_0x59e7c0,_0x5e7ab1[_0x207012(_0x3e11b7._0x4ac4fb,0x41,0x55,_0x3e11b7._0x518d7b)],_0x26f615[_0x195559(-0xea,-_0x3e11b7._0x199071,-_0x3e11b7._0x34d098,-0xf3)](0x0));if(_0x198464[_0x207012(0x7a,0x5a,_0x3e11b7._0x30cdae,0x7e)]===_0x195559(-_0x3e11b7._0x34a1c2,-0x116,-0x127,-_0x3e11b7._0x5620eb)){if(!hasSerializableToolUse(_0x198464))continue;_0x59e7c0[_0x195559(-0x123,-_0x3e11b7._0x248226,-_0x3e11b7._0x7f3479,-_0x3e11b7._0x5f591a)]({'type':'function_call','call_id':_0x198464['id'],'name':_0x198464[_0x195559(-0x12b,-0x11d,-_0x3e11b7._0x332ae1,-0x131)],'arguments':JSON[_0x207012(_0x3e11b7._0x1aab07,_0x3e11b7._0x1fbf8b,_0x3e11b7._0xb1f7b2,_0x3e11b7._0x473415)](_0x198464[_0x207012(0x65,0x5c,_0x3e11b7._0x477fb0,0x6c)]??{})});continue;}if(_0x198464[_0x195559(-0xd9,-_0x3e11b7._0x5c15dc,-_0x3e11b7._0xe6572e,-_0x3e11b7._0x5d37ca)]===_0x195559(-_0x3e11b7._0x2165ea,-_0x3e11b7._0x2f11cf,-0x10f,-_0x3e11b7._0x22f0c3)){if(!hasSerializableToolResult(_0x198464))continue;const _0x2227cd=getToolResultText(_0x198464['content']);_0x59e7c0[_0x195559(-_0x3e11b7._0x19709d,-0x126,-_0x3e11b7._0x29c807,-_0x3e11b7._0x19709d)]({'type':_0x195559(-0x10b,-_0x3e11b7._0x1ab11d,-0x109,-_0x3e11b7._0x37932a),'call_id':_0x198464[_0x207012(0x49,_0x3e11b7._0x5a92e6,_0x3e11b7._0x5dbd4a,_0x3e11b7._0x121a5e)],'output':_0x2227cd});const _0x5e3575=getToolResultImages(_0x198464[_0x195559(-0x137,-_0x3e11b7._0x1691e9,-_0x3e11b7._0x37c647,-_0x3e11b7._0x497c8c)]);_0x5e3575[_0x195559(-0xe5,-_0x3e11b7._0x425870,-_0x3e11b7._0x180f20,-0xff)]>0x0&&_0x59e7c0[_0x195559(-0x134,-_0x3e11b7._0x5cfa51,-0x149,-0x129)]({'type':'message','role':_0x195559(-0xfe,-0x108,-_0x3e11b7._0x14907c,-0xfe),'content':[{'type':_0x207012(0x56,0x71,0x4b,_0x3e11b7._0x5c31b9),'text':_0x195559(-0xeb,-0x125,-_0x3e11b7._0x340327,-_0x3e11b7._0xe69c28)+_0x198464[_0x207012(0x49,_0x3e11b7._0x2b38ea,0x47,_0x3e11b7._0x2af506)]+'.'},..._0x5e3575[_0x207012(0x42,_0x3e11b7._0x26266c,0x51,_0x3e11b7._0xae9619)](_0x2c8778=>({'type':_0x207012(0x6a,0x54,0x83,0x53),'image_url':_0x195559(-0x113,-0xed,-0x101,-0xfd)+_0x2c8778[_0x195559(-0x102,-0x12e,-0x128,-0x122)][_0x207012(0x77,0x65,0x57,0x5f)]+';base64,'+_0x2c8778[_0x195559(-0x10c,-0x13c,-0x121,-0x122)][_0x207012(0x41,0x46,0x50,0x35)]}))]});}}pushUserContentMessage(_0x59e7c0,_0x5e7ab1[_0x207012(0x5b,0x59,0x5d,0x4d)],_0x26f615);}return{...createOpenAiResponsesReasoning(_0x2eb6d4),'model':_0x2eb6d4[_0x195559(-_0x3e11b7._0x52506a,-_0x3e11b7._0x39aab6,-0x10f,-_0x3e11b7._0x3ffebb)],'instructions':systemToInstructions(_0x2eb6d4[_0x195559(-0xf2,-_0x3e11b7._0x1628b1,-0xdb,-_0x3e11b7._0x1bcebd)]),'input':_0x59e7c0,..._0x2eb6d4[_0x195559(-_0x3e11b7._0x241ce3,-0x112,-0x106,-_0x3e11b7._0x46d961)]!==void 0x0?{'max_output_tokens':_0x2eb6d4[_0x195559(-_0x3e11b7._0x55d502,-0x125,-_0x3e11b7._0x4cfc6f,-0x115)]}:{},'tools':_0x2eb6d4[_0x195559(-_0x3e11b7._0x28c6e6,-0x144,-_0x3e11b7._0x11deff,-_0x3e11b7._0x78a330)][_0x207012(_0x3e11b7._0x1f5c36,_0x3e11b7._0x3ca751,_0x3e11b7._0x410bb0,0x43)](_0x21b189=>{const _0x42a113={_0x5f5798:0xeb};function _0x56040f(_0x486cfe,_0x4d73b9,_0x41ae5a,_0xf61703){return _0x207012(_0x41ae5a-_0x51a0a2._0x456009,_0x4d73b9-_0x51a0a2._0xdffcd6,_0x41ae5a-0x166,_0x4d73b9);}function _0x164743(_0x54c77a,_0x437443,_0x36934d,_0x17312d){return _0x207012(_0x36934d-0x108,_0x437443-_0x42a113._0x5f5798,_0x36934d-0x6c,_0x17312d);}return{'type':_0x56040f(0x235,0x236,_0x6871a2._0x133890,_0x6871a2._0x523555),'name':_0x21b189[_0x164743(_0x6871a2._0xd473d1,_0x6871a2._0x51ed52,0x146,0x127)],'description':_0x21b189['description'],'parameters':_0x21b189[_0x56040f(_0x6871a2._0x3f9aee,0x257,_0x6871a2._0x4e2dc0,0x284)]};}),..._0x2eb6d4[_0x207012(0x43,_0x3e11b7._0x482a4e,_0x3e11b7._0x1f5c36,_0x3e11b7._0xae9619)]?{'text':{'format':{'type':_0x207012(_0x3e11b7._0x16d5ce,_0x3e11b7._0x1a3ffe,_0x3e11b7._0x4276c8,0x6b),'name':_0x2eb6d4[_0x195559(-_0x3e11b7._0x320ad7,-0x129,-0x147,-_0x3e11b7._0x4b7060)]['name']??_0x195559(-0xf1,-0xf2,-_0x3e11b7._0x169699,-_0x3e11b7._0x2a66e7),'schema':_0x2eb6d4[_0x195559(-0x12e,-0x135,-0x143,-_0x3e11b7._0x4b7060)][_0x207012(_0x3e11b7._0x28f292,0x50,0x70,0x5a)],'strict':_0x2eb6d4[_0x207012(_0x3e11b7._0x477fb0,0x4a,0x66,_0x3e11b7._0xb63e3e)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
|
package/dist/chunk-NYZR4XKO.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x20b5da,_0x37e9d6){var _0x6a2051={_0x3ece8a:0x2fa,_0x1029f9:0x2f6,_0x6d7be4:0xaa,_0x33fffa:0xaf,_0x3e1f89:0xb0,_0x518fa2:0x308,_0x246125:0x308,_0x30b8b0:0x2f3,_0x1a7a7a:0x2fb,_0x48b9b3:0xb5,_0xdcf545:0xae,_0xefd377:0x2ff,_0xe34a23:0x2fe,_0x3dd38e:0x301,_0x4374ab:0x308,_0xdb440a:0x304,_0x2ef961:0xa5,_0x1bdd2f:0xb4};function _0x3ed818(_0x1b48ae,_0x513968,_0x31ca3d,_0x360b0e){return _0x4c0a(_0x31ca3d-0x204,_0x360b0e);}function _0x6e586b(_0x5af31d,_0x3f1304,_0x197b65,_0x175ddd){return _0x4c0a(_0x3f1304- -0x1aa,_0x5af31d);}var _0x43c116=_0x20b5da();while(!![]){try{var _0x853a6e=-parseInt(_0x3ed818(_0x6a2051._0x3ece8a,0x2fe,_0x6a2051._0x1029f9,0x2f2))/0x1*(parseInt(_0x6e586b(-_0x6a2051._0x6d7be4,-_0x6a2051._0x33fffa,-_0x6a2051._0x3e1f89,-0xae))/0x2)+-parseInt(_0x3ed818(_0x6a2051._0x518fa2,0x307,0x305,_0x6a2051._0x246125))/0x3*(parseInt(_0x3ed818(_0x6a2051._0x30b8b0,0x300,_0x6a2051._0x1a7a7a,0x303))/0x4)+-parseInt(_0x6e586b(-0xae,-0xb4,-0xb9,-0xb5))/0x5+parseInt(_0x6e586b(-_0x6a2051._0x48b9b3,-_0x6a2051._0xdcf545,-0xab,-_0x6a2051._0x3e1f89))/0x6+parseInt(_0x6e586b(-0xba,-0xb5,-0xb5,-0xad))/0x7*(-parseInt(_0x3ed818(_0x6a2051._0xefd377,0x305,_0x6a2051._0xe34a23,_0x6a2051._0xefd377))/0x8)+parseInt(_0x3ed818(0x2f6,0x2fd,0x2fc,_0x6a2051._0x3dd38e))/0x9*(-parseInt(_0x3ed818(0x309,_0x6a2051._0x4374ab,_0x6a2051._0xdb440a,0x300))/0xa)+parseInt(_0x6e586b(-_0x6a2051._0x2ef961,-0xac,-_0x6a2051._0x1bdd2f,-0xb1))/0xb;if(_0x853a6e===_0x37e9d6)break;else _0x43c116['push'](_0x43c116['shift']());}catch(_0x3f5fd6){_0x43c116['push'](_0x43c116['shift']());}}}(_0x40e6,0x40def));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function mapAutoReasoningEffortToBudgetTokens(_0x108a57){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x108a57];}function _0x40e6(){var _0x55cec8=['mtKYodi0A3fvvKzH','mMjXvxfRyq','mJK4nZK2neTmrurPvW','B3bLBMfP','mtCYmtC1ntjbsg13B3C','zw5HyMXLza','mJb4Aen3zLG','mJfUzuvHy0G','mJyXotqZwLzwCxnJ','yxv0BW','yw50AhjVCgLJ','ndLgrNLeywK','mJmZmde3mej6Eu9iCq','mJq4mZK2r3DKshvp','mJa5nZu1ogjMrKjxDG','zwzMB3j0'];_0x40e6=function(){return _0x55cec8;};return _0x40e6();}function resolveAnthropicThinkingConfig(_0x451590){var _0x1b42a6={_0x796ef6:0x144,_0x440321:0x1e1,_0x19c064:0x1df,_0x4b1a2f:0x1de,_0x141e1d:0x1e5,_0x9ea60b:0x1eb,_0x21539e:0x1ed,_0x228d09:0x14a,_0x1a2814:0x13c,_0x5ea913:0x13f},_0x3fadad={_0x19ad51:0x4b};if(!_0x451590)return void 0x0;if(_0x451590[_0x48f6f6(0x145,_0x1b42a6._0x796ef6,0x13f,0x141)])return structuredClone(_0x451590['anthropic']);function _0x48f6f6(_0x3f23f2,_0x2ab24a,_0x5368a9,_0x3087d1){return _0x4c0a(_0x5368a9-_0x3fadad._0x19ad51,_0x3f23f2);}if(!_0x451590[_0x2d77d4(_0x1b42a6._0x440321,_0x1b42a6._0x19c064,_0x1b42a6._0x4b1a2f,_0x1b42a6._0x141e1d)])return void 0x0;function _0x2d77d4(_0x5e0317,_0x390a0d,_0xca607f,_0x5cd4a2){return _0x4c0a(_0x390a0d-0xec,_0x5cd4a2);}return{'type':_0x2d77d4(0x1ec,_0x1b42a6._0x9ea60b,_0x1b42a6._0x21539e,0x1e8),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x451590['auto'][_0x48f6f6(_0x1b42a6._0x228d09,_0x1b42a6._0x1a2814,0x144,_0x1b42a6._0x5ea913)])};}function resolveOpenAiReasoningConfig(_0x3c715){var _0x292501={_0x19e956:0x110,_0x1536c2:0x104,_0x4cbcb3:0x11a,_0x4d6691:0x115};if(!_0x3c715)return void 0x0;const _0x158d8b=_0x3c715['auto']?{'effort':_0x3c715[_0xb5e427(_0x292501._0x19e956,0x10d,0x10b,_0x292501._0x1536c2)]['effort']}:void 0x0;function _0xb5e427(_0x19a375,_0x302c2e,_0x1932c4,_0x941549){return _0x4c0a(_0x1932c4-0x18,_0x19a375);}if(!_0x3c715['openai'])return _0x158d8b;function _0x31509d(_0x209883,_0x118955,_0x30a198,_0x57491b){return _0x4c0a(_0x209883- -0x34c,_0x30a198);}return{..._0x158d8b??{},...structuredClone(_0x3c715[_0xb5e427(0x110,_0x292501._0x4cbcb3,_0x292501._0x4d6691,0x116)])};}function _0x4c0a(_0x1d464a,_0xa09cac){_0x1d464a=_0x1d464a-0xf2;var _0x40e6dc=_0x40e6();var _0x4c0ab9=_0x40e6dc[_0x1d464a];if(_0x4c0a['jfNiCr']===undefined){var _0x226fee=function(_0xb3232e){var _0x5e2ba5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x108a57='',_0x451590='';for(var _0x3c715=0x0,_0x158d8b,_0x119131,_0x182fe6=0x0;_0x119131=_0xb3232e['charAt'](_0x182fe6++);~_0x119131&&(_0x158d8b=_0x3c715%0x4?_0x158d8b*0x40+_0x119131:_0x119131,_0x3c715++%0x4)?_0x108a57+=String['fromCharCode'](0xff&_0x158d8b>>(-0x2*_0x3c715&0x6)):0x0){_0x119131=_0x5e2ba5['indexOf'](_0x119131);}for(var _0x8b0238=0x0,_0x5e04de=_0x108a57['length'];_0x8b0238<_0x5e04de;_0x8b0238++){_0x451590+='%'+('00'+_0x108a57['charCodeAt'](_0x8b0238)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x451590);};_0x4c0a['IupyNF']=_0x226fee,_0x4c0a['LUvbvc']={},_0x4c0a['jfNiCr']=!![];}var _0x42c4ca=_0x40e6dc[0x0],_0x13ac8d=_0x1d464a+_0x42c4ca,_0x37ea53=_0x4c0a['LUvbvc'][_0x13ac8d];return!_0x37ea53?(_0x4c0ab9=_0x4c0a['IupyNF'](_0x4c0ab9),_0x4c0a['LUvbvc'][_0x13ac8d]=_0x4c0ab9):_0x4c0ab9=_0x37ea53,_0x4c0ab9;}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
|
package/dist/chunk-RABU4RC2.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x12de68,_0x1d3b72){const _0x249d2d={_0x405150:0x49c,_0x5bd1ba:0x491,_0x23b2e2:0x4af,_0xa96ed7:0x4ca,_0x1a7043:0x4c0,_0xed3e48:0x1b9,_0xb7af16:0x19b,_0x225097:0x1ad,_0x284d9f:0x195,_0x24d964:0x1c2,_0x55a739:0x1a8,_0x32b6ec:0x1a1,_0xb16c3d:0x46f,_0x5d84c8:0x48e,_0x475951:0x4a7,_0x306e4b:0x480,_0x1e6abb:0x47f,_0x356968:0x4a0,_0x1275e7:0x48a,_0x26005f:0x49e,_0x501971:0x47e};function _0x41ef3d(_0x5e5a5a,_0xeec072,_0x2670bc,_0x1ad1bd){return _0x2e87(_0x5e5a5a-0x324,_0x2670bc);}function _0x3c9986(_0x1acde5,_0x257c21,_0x3fe4ce,_0x1c9605){return _0x2e87(_0x3fe4ce-0x32,_0x257c21);}const _0x5470e5=_0x12de68();while(!![]){try{const _0x407274=parseInt(_0x41ef3d(_0x249d2d._0x405150,0x4a3,0x48e,_0x249d2d._0x5bd1ba))/0x1+parseInt(_0x41ef3d(_0x249d2d._0x23b2e2,0x4ab,_0x249d2d._0xa96ed7,_0x249d2d._0x1a7043))/0x2*(-parseInt(_0x3c9986(0x19f,0x1a6,0x1b6,_0x249d2d._0xed3e48))/0x3)+parseInt(_0x3c9986(_0x249d2d._0xb7af16,0x1c7,_0x249d2d._0x225097,_0x249d2d._0x284d9f))/0x4+-parseInt(_0x3c9986(_0x249d2d._0x24d964,0x1b6,_0x249d2d._0x55a739,_0x249d2d._0x32b6ec))/0x5+-parseInt(_0x41ef3d(0x487,_0x249d2d._0xb16c3d,_0x249d2d._0x5d84c8,0x48a))/0x6+parseInt(_0x41ef3d(0x495,_0x249d2d._0x475951,_0x249d2d._0x306e4b,_0x249d2d._0x1e6abb))/0x7+parseInt(_0x41ef3d(_0x249d2d._0x356968,_0x249d2d._0x1275e7,_0x249d2d._0x26005f,0x497))/0x8*(parseInt(_0x41ef3d(_0x249d2d._0x501971,_0x249d2d._0x501971,0x471,0x45f))/0x9);if(_0x407274===_0x1d3b72)break;else _0x5470e5['push'](_0x5470e5['shift']());}catch(_0x1c54ff){_0x5470e5['push'](_0x5470e5['shift']());}}}(_0x4998,0x43d3b));function createTextBlock(_0x2dbf9c){const _0x23d409={_0x4ebb99:0x1ff,_0x2ae580:0x1f4,_0x400d7c:0x1ed},_0xfca666={_0x34a217:0x67};function _0x3a69ec(_0x26a029,_0x587db3,_0x1ac5ac,_0x4b3bd2){return _0x2e87(_0x4b3bd2-_0xfca666._0x34a217,_0x587db3);}return{'type':_0x3a69ec(_0x23d409._0x4ebb99,0x202,_0x23d409._0x2ae580,_0x23d409._0x400d7c),'text':_0x2dbf9c};}function _0x2e87(_0x1a069d,_0xdc5d80){_0x1a069d=_0x1a069d-0x157;const _0x499837=_0x4998();let _0x2e87ec=_0x499837[_0x1a069d];if(_0x2e87['EmPund']===undefined){var _0x271516=function(_0x3bee63){const _0x1d47af='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2dbf9c='',_0x165792='';for(let _0x3cc96e=0x0,_0x5c1279,_0x1f753f,_0x13655e=0x0;_0x1f753f=_0x3bee63['charAt'](_0x13655e++);~_0x1f753f&&(_0x5c1279=_0x3cc96e%0x4?_0x5c1279*0x40+_0x1f753f:_0x1f753f,_0x3cc96e++%0x4)?_0x2dbf9c+=String['fromCharCode'](0xff&_0x5c1279>>(-0x2*_0x3cc96e&0x6)):0x0){_0x1f753f=_0x1d47af['indexOf'](_0x1f753f);}for(let _0x4bd052=0x0,_0x388456=_0x2dbf9c['length'];_0x4bd052<_0x388456;_0x4bd052++){_0x165792+='%'+('00'+_0x2dbf9c['charCodeAt'](_0x4bd052)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x165792);};_0x2e87['KbNwMT']=_0x271516,_0x2e87['SbRtVF']={},_0x2e87['EmPund']=!![];}const _0x24b31c=_0x499837[0x0],_0x1ad654=_0x1a069d+_0x24b31c,_0x3b77d9=_0x2e87['SbRtVF'][_0x1ad654];return!_0x3b77d9?(_0x2e87ec=_0x2e87['KbNwMT'](_0x2e87ec),_0x2e87['SbRtVF'][_0x1ad654]=_0x2e87ec):_0x2e87ec=_0x3b77d9,_0x2e87ec;}function normalizeTextBlock(_0x165792){const _0x475cbf={_0x47713d:0x2f6,_0x5e5666:0x2d2},_0x523ae3={_0x3baa1f:0x169};function _0x35ebd7(_0x292daa,_0xd0a2d1,_0x5d35c9,_0xbfd050){return _0x2e87(_0x292daa-_0x523ae3._0x3baa1f,_0xd0a2d1);}return createTextBlock(_0x165792[_0x35ebd7(0x2ef,_0x475cbf._0x47713d,_0x475cbf._0x5e5666,0x2d9)]??'');}function normalizeContent(_0x3cc96e){const _0x4e8cbb={_0x559aa7:0x312,_0x4729b1:0x322},_0x3bbb33={_0x46c115:0x86,_0x5d7657:0x80},_0x25dca1={_0x5618db:0x3ab},_0x21be0b={_0x385e16:0x1a5};function _0x27488f(_0x5e3086,_0x52bbe3,_0x5cb7e4,_0x58ffba){return _0x2e87(_0x58ffba-_0x21be0b._0x385e16,_0x52bbe3);}if(typeof _0x3cc96e==='string')return[createTextBlock(_0x3cc96e)];function _0x426537(_0x1455af,_0x3760d6,_0x1812e0,_0x4fa05f){return _0x2e87(_0x4fa05f-0x166,_0x3760d6);}if(!Array[_0x426537(0x311,_0x4e8cbb._0x559aa7,0x2ea,0x2f2)](_0x3cc96e))return[];return _0x3cc96e[_0x27488f(0x31c,0x315,_0x4e8cbb._0x4729b1,0x333)](_0x5c1279=>{function _0x58ffda(_0x5e41b5,_0x45958a,_0x2e9271,_0xc878b){return _0x27488f(_0x5e41b5-0xa1,_0xc878b,_0x2e9271-0x1e3,_0x2e9271- -_0x25dca1._0x5618db);}if(_0x5c1279['type']===_0x58ffda(-0x8d,-_0x3bbb33._0x46c115,-_0x3bbb33._0x5d7657,-0x6a))return normalizeTextBlock(_0x5c1279);return structuredClone(_0x5c1279);});}function _0x4998(){const _0x589cb9=['B3v0Chv0rM9YBwf0','mtGXmJe4nM9YuNzyua','C3rHDhvZ','DhLWzq','CMvHC29UAw5Nx3rVA2vUCW','C3vTBwfYEq','C3rYAw5N','Bw9KzwXFAwrLBNrPDhK','ChjVDMLKzxjtDgf0zq','zw5JCNLWDgvKq29UDgvUDa','ywrK','Bwv0ywrHDge','C3rVCfjLyxnVBG','kgvUy3j5ChrLzcbYzwfZB25PBMCP','Bwf4x3rVA2vUCW','nJC0ote5sLzrALHW','C2vZC2LVBL9Pza','Dg9VBf9Yzxn1Bhq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','B3bLBMfPx3jLyxnVBMLUzW','mJqWodm4nw1RquDowa','B3v0Chv0','ntm2mdi0z1HSBw5Y','C2vZC2LVBKLK','BgvUz3rO','otKXntuYsuL5tvzi','mJGWD3bqzwnL','DxnHz2u','Bwf4vg9Rzw5Z','zxjYB3i','DhjPBq','zMLSDgvY','DxnLCG','Aw5WDxrFDg9Rzw5Z','mJqWovHfy3HsyG','AM9PBG','Dgv4Da','Dg9VBhm','Bw9KzwW','B3v0Chv0vg9Rzw5Z','Bw9KzwXjzgvUDgL0Eq','mtaXohbHsMvfyq','AxnbCNjHEq','CMvHC29UAw5Nvg9Rzw5Z','BwfW','Dg9VBf91C2u','khjLzgfJDgvKihjLyxnVBMLUzYK','DhvYBKLK','DhvYBL9Pza','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','yw50AhjVCgLJx3rOAw5RAw5N','CMvHC29UAw5N','yxnZAxn0yw50','C3LZDgvT','ChvZAa','mtuXnJK1wLLqrwfp','Aw5WDxruB2TLBNm','DgHPBMTPBMC','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','zMXHDe1HCa','B3v0Chv0x3rVA2vUCW','BwvZC2fNzxm','y29UDgvUDa'];_0x4998=function(){return _0x589cb9;};return _0x4998();}function normalizeSystem(_0x1f753f=[]){const _0x435594={_0x1801f2:0x460,_0x58589a:0x463},_0x2069ed={_0x1887f1:0x2df};function _0x384311(_0x903692,_0x39acdc,_0x21b994,_0x1be0d6){return _0x2e87(_0x39acdc- -0x3cb,_0x903692);}function _0x195252(_0x39e25b,_0x5f0356,_0x123dde,_0x2b8259){return _0x2e87(_0x39e25b-_0x2069ed._0x1887f1,_0x123dde);}return normalizeContent(_0x1f753f)[_0x195252(_0x435594._0x1801f2,0x452,0x477,_0x435594._0x58589a)](_0x13655e=>_0x13655e[_0x195252(0x444,0x446,0x447,0x45e)]===_0x195252(0x465,0x45b,0x478,0x476));}function isProviderStateCompatible(_0x4bd052,_0x388456){const _0x3d2ec4={_0x1872c7:0x305,_0x5eb6f9:0x2ef,_0x244f5c:0x2dd,_0x4269c8:0x24c,_0x2da535:0x24c,_0x23a404:0x235},_0x2be3e4=_0x4bd052[_0x44e0f1(0x30d,0x30b,_0x3d2ec4._0x1872c7,_0x3d2ec4._0x5eb6f9)]?.['originModelIdentity'];function _0x2e929f(_0x42f2a8,_0x563f19,_0x3d4e16,_0x2f922f){return _0x2e87(_0x3d4e16- -0x3d6,_0x42f2a8);}function _0x44e0f1(_0x42c683,_0x39c2da,_0x288ab6,_0x4ea111){return _0x2e87(_0x4ea111-0x185,_0x288ab6);}return _0x2be3e4===void 0x0||_0x2be3e4===_0x388456[_0x44e0f1(0x30c,_0x3d2ec4._0x244f5c,0x2dd,0x2f2)][_0x2e929f(-_0x3d2ec4._0x4269c8,-0x248,-_0x3d2ec4._0x2da535,-_0x3d2ec4._0x23a404)]||_0x2be3e4===_0x388456[_0x2e929f(-0x244,-0x239,-0x24e,-0x240)];}function normalizeMessage(_0x2aa13f){const _0x5f545b={_0x15727b:0x469,_0x3b5174:0x477,_0x20e104:0x175,_0x18dc12:0x155,_0x501166:0x171,_0x4f5669:0x46f,_0x1e4213:0x487,_0x1a9041:0x47e},_0x3d931f={_0x2e2075:0x2ba};function _0x15dbe1(_0x4b0e53,_0x35bbfb,_0x5abe43,_0x34780e){return _0x2e87(_0x4b0e53- -_0x3d931f._0x2e2075,_0x34780e);}function _0x3b6ce5(_0x3cf4cc,_0x4b792d,_0x54d185,_0x186323){return _0x2e87(_0x54d185-0x305,_0x3cf4cc);}return{...typeof _0x2aa13f['id']===_0x3b6ce5(0x486,_0x5f545b._0x15727b,0x46d,_0x5f545b._0x3b5174)?{'id':_0x2aa13f['id']}:{},'role':_0x2aa13f['role'],'content':normalizeContent(_0x2aa13f[_0x15dbe1(-0x159,-_0x5f545b._0x20e104,-_0x5f545b._0x18dc12,-_0x5f545b._0x501166)]),..._0x2aa13f[_0x3b6ce5(0x47a,0x47d,_0x5f545b._0x4f5669,_0x5f545b._0x1e4213)]?{'providerState':structuredClone(_0x2aa13f[_0x3b6ce5(0x44f,_0x5f545b._0x1a9041,0x46f,0x450)])}:{}};}function compileRequest(_0x4af3f1){const _0x5afe13={_0x42abe5:0x104,_0xb43435:0xef,_0x12045c:0x4a3,_0x56c681:0x498,_0x4e849f:0x4ae,_0x4d7311:0xea,_0xcbcf01:0x108,_0x5df437:0xdd,_0x5bb733:0xf4,_0x27eb69:0xd6,_0x2890f2:0x142,_0x220c91:0x131,_0x182f32:0x146,_0x13da05:0x14d,_0x3a535c:0x44d,_0x11261b:0x47b,_0x4a4d91:0x465,_0x12bc21:0x471,_0x56d46e:0xf8,_0x1c59c1:0xf9,_0xcaa74d:0xfc,_0x361507:0x128,_0x5b2a1c:0x105,_0x214c49:0x110,_0x355490:0x4b0,_0x22bdcf:0x480,_0x5f0e70:0x496},_0x4706b1={_0x4f9543:0x305},_0x410ab7={_0x305075:0x289};function _0x5d2ad2(_0x516a12,_0x13478a,_0x5805da,_0xc3f3e0){return _0x2e87(_0x13478a- -_0x410ab7._0x305075,_0xc3f3e0);}function _0x141114(_0x533736,_0x363f1b,_0x1ca839,_0x44a447){return _0x2e87(_0x1ca839-_0x4706b1._0x4f9543,_0x533736);}return{'model':_0x4af3f1[_0x5d2ad2(-_0x5afe13._0x42abe5,-0x101,-0xe6,-_0x5afe13._0xb43435)]??_0x141114(0x49a,_0x5afe13._0x12045c,_0x5afe13._0x56c681,_0x5afe13._0x4e849f),..._0x4af3f1['max_tokens']!==void 0x0?{'max_tokens':_0x4af3f1['max_tokens']}:{},..._0x4af3f1[_0x5d2ad2(-_0x5afe13._0x4d7311,-0xf4,-_0x5afe13._0xcbcf01,-0x111)]?{'reasoning':structuredClone(_0x4af3f1[_0x5d2ad2(-_0x5afe13._0x5df437,-_0x5afe13._0x5bb733,-0x110,-_0x5afe13._0x27eb69)])}:{},'system':normalizeSystem(_0x4af3f1[_0x5d2ad2(-_0x5afe13._0x2890f2,-_0x5afe13._0x220c91,-_0x5afe13._0x182f32,-_0x5afe13._0x13da05)]),'messages':_0x4af3f1[_0x141114(_0x5afe13._0x3a535c,_0x5afe13._0x11261b,_0x5afe13._0x4a4d91,_0x5afe13._0x12bc21)][_0x5d2ad2(-_0x5afe13._0x56d46e,-0xfb,-_0x5afe13._0x1c59c1,-_0x5afe13._0xcaa74d)](normalizeMessage),'tools':structuredClone(_0x4af3f1['tools']??[]),'metadata':{'session_id':_0x4af3f1[_0x5d2ad2(-_0x5afe13._0x361507,-0x110,-_0x5afe13._0x5b2a1c,-_0x5afe13._0x214c49)],'turn_id':_0x4af3f1[_0x141114(_0x5afe13._0x355490,_0x5afe13._0x22bdcf,_0x5afe13._0x5f0e70,0x486)]}};}function toChatRequest(_0x279ac4){const _0x11a172={_0x1aae89:0xff,_0x181b95:0xe0,_0x452240:0xfd,_0xb7c404:0x169,_0x389376:0x19a,_0x3aef42:0xc5,_0x34f415:0xbd,_0x33b91d:0xd3,_0x313d99:0x170,_0x1526d1:0xe6,_0x2e21ae:0xe1,_0x4fd7b3:0xec,_0x3e515f:0xdc,_0x46254b:0xfb,_0x595516:0xde,_0x92747b:0x188,_0x505f9e:0x18a,_0x473ae1:0x199,_0x52effe:0xff,_0x978ebe:0x175,_0x12a4db:0x15d};function _0x495ea3(_0x203864,_0x2a1d3f,_0xe4d03,_0x58033d){return _0x2e87(_0x2a1d3f-0x13,_0x58033d);}function _0xe8e25e(_0x23b3a7,_0x24d78e,_0x3877b3,_0x2bc3a1){return _0x2e87(_0x24d78e- -0x268,_0x3877b3);}return{'model':_0x279ac4[_0xe8e25e(-_0x11a172._0x1aae89,-_0x11a172._0x181b95,-0xf6,-_0x11a172._0x452240)],..._0x279ac4['max_tokens']!==void 0x0?{'maxTokens':_0x279ac4[_0x495ea3(_0x11a172._0xb7c404,0x183,_0x11a172._0x389376,0x164)]}:{},..._0x279ac4[_0xe8e25e(-_0x11a172._0x3aef42,-0xd3,-0xb4,-0xdd)]?{'reasoning':structuredClone(_0x279ac4[_0xe8e25e(-0xda,-0xd3,-_0x11a172._0x34f415,-_0x11a172._0x33b91d)])}:{},'system':structuredClone(_0x279ac4['system']),'messages':structuredClone(_0x279ac4[_0x495ea3(_0x11a172._0x313d99,0x173,0x183,0x17c)]),'tools':structuredClone(_0x279ac4[_0xe8e25e(-_0x11a172._0x1526d1,-_0x11a172._0x2e21ae,-0xf3,-0xd8)]),'metadata':{'sessionId':_0x279ac4[_0xe8e25e(-_0x11a172._0x2e21ae,-0xfb,-0xdc,-_0x11a172._0x4fd7b3)][_0xe8e25e(-0x107,-0xf6,-0x105,-_0x11a172._0x3e515f)],'turnId':_0x279ac4[_0xe8e25e(-0x106,-_0x11a172._0x46254b,-_0x11a172._0x595516,-0xef)][_0x495ea3(_0x11a172._0x92747b,0x1a5,0x1bd,0x189)],..._0x279ac4[_0x495ea3(0x16d,0x180,_0x11a172._0x505f9e,_0x11a172._0x473ae1)]['model_identity']!==void 0x0?{'modelIdentity':_0x279ac4['metadata'][_0xe8e25e(-0x108,-_0x11a172._0x52effe,-_0x11a172._0x46254b,-0xe8)]}:{}},..._0x279ac4[_0x495ea3(0x15b,_0x11a172._0x978ebe,_0x11a172._0x12a4db,0x18d)]?{'outputFormat':structuredClone(_0x279ac4['outputFormat'])}:{}};}function _0x167871(_0x57110f,_0x2ad636,_0x53ae35,_0xd8b795){const _0x512df8={_0x3555b5:0x183};return _0x2e87(_0x53ae35-_0x512df8._0x3555b5,_0x2ad636);}function toModelRequest(_0x12a5c8){const _0xbc4c97={_0x2ac81:0x1a,_0x12ef61:0x2d,_0xcb45e3:0x9,_0x3caefe:0x14,_0x1a2b25:0xc,_0x1954e7:0x27,_0x21a08f:0x2b,_0xdee76a:0x544,_0x2090b1:0x543,_0x5076b8:0x54a,_0x2f5c48:0x536,_0x246849:0x539,_0x352909:0x541,_0x3aa9cd:0x53a,_0x34ca87:0x542,_0x4b2720:0x548,_0x3cf470:0x559,_0x255be3:0x559,_0x35dee5:0x2,_0x4e0e0a:0x10,_0x4e8f90:0xd,_0x4ec87d:0x52b};function _0x3fa9b9(_0x4bf823,_0x49a35f,_0x48d913,_0x2e9e71){return _0x2e87(_0x4bf823- -0x164,_0x2e9e71);}function _0xd6f902(_0x1f6d2d,_0x22992b,_0x4d0f27,_0x465e85){return _0x2e87(_0x465e85-0x3c9,_0x22992b);}return{'model':_0x12a5c8['model'],..._0x12a5c8[_0x3fa9b9(_0xbc4c97._0x2ac81,0x34,_0xbc4c97._0x12ef61,0xf)]!==void 0x0?{'max_tokens':_0x12a5c8[_0x3fa9b9(0x1a,_0xbc4c97._0xcb45e3,0x2f,_0xbc4c97._0x3caefe)]}:{},..._0x12a5c8['reasoning']?{'reasoning':structuredClone(_0x12a5c8['reasoning'])}:{},'system':structuredClone(_0x12a5c8[_0x3fa9b9(-_0xbc4c97._0x1a2b25,-_0xbc4c97._0x1954e7,-_0xbc4c97._0x21a08f,0xa)]),'messages':structuredClone(_0x12a5c8['messages']),'tools':structuredClone(_0x12a5c8[_0xd6f902(0x55c,_0xbc4c97._0xdee76a,_0xbc4c97._0x2090b1,0x550)]),'metadata':{'session_id':_0x12a5c8[_0xd6f902(0x53d,0x518,_0xbc4c97._0x5076b8,_0xbc4c97._0x2f5c48)][_0xd6f902(_0xbc4c97._0x246849,_0xbc4c97._0x352909,_0xbc4c97._0x3aa9cd,_0xbc4c97._0x34ca87)],'turn_id':_0x12a5c8[_0xd6f902(0x529,_0xbc4c97._0x2090b1,_0xbc4c97._0x4b2720,_0xbc4c97._0x2f5c48)]['turnId'],..._0x12a5c8['metadata'][_0xd6f902(_0xbc4c97._0x3cf470,0x555,_0xbc4c97._0x255be3,0x553)]!==void 0x0?{'model_identity':_0x12a5c8['metadata']['modelIdentity']}:{}},..._0x12a5c8[_0x3fa9b9(-_0xbc4c97._0x35dee5,_0xbc4c97._0x4e0e0a,-_0xbc4c97._0x2ac81,-_0xbc4c97._0x4e8f90)]?{'outputFormat':structuredClone(_0x12a5c8[_0xd6f902(0x540,0x540,0x525,_0xbc4c97._0x4ec87d)])}:{}};}function toProviderModelRequest(_0x3428e9){const _0x162968={_0xd50de4:0x14c,_0x4c4b68:0x18b,_0xba9613:0x19b,_0x2690ba:0x195,_0x13fdf7:0x10a,_0x18da39:0x13d,_0x422459:0x138,_0xfcbac5:0x131},_0x3492e1={_0x59db81:0x1};function _0x3fd545(_0x39aec0,_0x4a2d31,_0x260f49,_0x5f17d2){return _0x2e87(_0x39aec0-_0x3492e1._0x59db81,_0x260f49);}function _0x3c670d(_0x228948,_0x264a36,_0x226685,_0x4045f2){return _0x2e87(_0x226685- -0x56,_0x4045f2);}return{'model':_0x3428e9[_0x3c670d(0x12a,0x137,0x132,_0x162968._0xd50de4)],..._0x3428e9[_0x3fd545(0x17f,_0x162968._0x4c4b68,_0x162968._0xba9613,_0x162968._0x2690ba)]!==void 0x0?{'max_tokens':_0x3428e9['maxTokens']}:{},'system':structuredClone(_0x3428e9['system']),'messages':structuredClone(_0x3428e9[_0x3c670d(0xf3,0x118,_0x162968._0x13fdf7,0x121)]),'tools':structuredClone(_0x3428e9[_0x3c670d(_0x162968._0x18da39,_0x162968._0x422459,_0x162968._0xfcbac5,0x130)])};}function toChatResponse(_0xb3eda7){const _0x45afa2={_0x5c5d95:0x412,_0x59c5e5:0x44a,_0x174e06:0x469,_0x4e90ac:0x2b8,_0x6fdca4:0x2c3,_0x13dd93:0x2a5,_0x334f61:0x295,_0x538e55:0x2b2,_0x34e811:0x29f,_0x45295e:0x278,_0x3e91b0:0x294,_0x2a6a37:0x2ad,_0xa65342:0x287,_0x30722f:0x27e,_0x1d4d2c:0x29b,_0x323b46:0x433,_0x879ac:0x29d,_0x2891aa:0x298,_0x406e11:0x422,_0x195713:0x44b},_0x1815dd={_0x571830:0x135},_0x39c3ff={_0x2b1826:0x2cd};function _0x333b4e(_0x38f673,_0x562cdf,_0x4e3f72,_0x3088bd){return _0x2e87(_0x4e3f72-_0x39c3ff._0x2b1826,_0x38f673);}function _0x4e88a1(_0x162acd,_0x5098ff,_0x3987a8,_0x1afaf9){return _0x2e87(_0x5098ff-_0x1815dd._0x571830,_0x162acd);}return{'id':_0xb3eda7['id'],'content':structuredClone(_0xb3eda7[_0x333b4e(_0x45afa2._0x5c5d95,0x42a,0x42e,0x427)]),'stopReason':_0xb3eda7['stop_reason'],'usage':{'inputTokens':_0xb3eda7[_0x333b4e(0x457,0x465,_0x45afa2._0x59c5e5,_0x45afa2._0x174e06)][_0x4e88a1(0x2c3,_0x45afa2._0x4e90ac,_0x45afa2._0x6fdca4,_0x45afa2._0x13dd93)],'outputTokens':_0xb3eda7[_0x4e88a1(_0x45afa2._0x334f61,_0x45afa2._0x538e55,_0x45afa2._0x34e811,0x2b3)][_0x4e88a1(_0x45afa2._0x45295e,_0x45afa2._0x3e91b0,_0x45afa2._0x2a6a37,_0x45afa2._0xa65342)],..._0xb3eda7['usage'][_0x4e88a1(_0x45afa2._0x30722f,_0x45afa2._0x1d4d2c,0x291,0x2ba)]!==void 0x0?{'reasoningTokens':_0xb3eda7['usage'][_0x333b4e(0x436,0x451,_0x45afa2._0x323b46,0x446)]}:{}},..._0xb3eda7[_0x4e88a1(_0x45afa2._0x879ac,0x29f,0x286,_0x45afa2._0x2891aa)]?{'providerState':structuredClone(_0xb3eda7[_0x333b4e(_0x45afa2._0x406e11,_0x45afa2._0x195713,0x437,0x453)])}:{}};}function toModelResponse(_0x2687e8){const _0x401759={_0x418bc9:0xc0,_0x5d5f4:0x88,_0x1ffbc6:0x495,_0x22ad93:0x8b,_0x3413dd:0x88,_0x2c0d70:0x90,_0x2d8080:0x7c,_0x51e2f6:0x5e,_0x267080:0x70,_0x3fecdc:0x77,_0x13a478:0x68,_0x4ab2b5:0x58,_0x31da08:0x75,_0x32afb7:0x7f,_0x47e5af:0x4b1,_0x25094c:0x48b},_0x22b3e4={_0x221add:0x1f9};function _0x15c07e(_0x1f25e6,_0x163ecf,_0x4f1554,_0x19c0cd){return _0x2e87(_0x163ecf-0x337,_0x19c0cd);}function _0x5ef5f5(_0x2b63d8,_0x553b58,_0xf28346,_0x224045){return _0x2e87(_0x2b63d8- -_0x22b3e4._0x221add,_0xf28346);}return{'id':_0x2687e8['id'],'type':'message','role':_0x5ef5f5(-0xa2,-0xa6,-_0x401759._0x418bc9,-_0x401759._0x5d5f4),'content':structuredClone(_0x2687e8[_0x15c07e(0x47d,0x498,0x484,_0x401759._0x1ffbc6)]),'stop_reason':_0x2687e8[_0x5ef5f5(-_0x401759._0x22ad93,-0x7f,-0x9a,-0x97)],'stop_sequence':null,'usage':{'input_tokens':_0x2687e8['usage'][_0x5ef5f5(-0x9e,-_0x401759._0x3413dd,-0xac,-_0x401759._0x2c0d70)],'output_tokens':_0x2687e8[_0x5ef5f5(-_0x401759._0x2d8080,-0x6d,-_0x401759._0x51e2f6,-0x74)][_0x5ef5f5(-_0x401759._0x267080,-_0x401759._0x3fecdc,-0x65,-0x5a)],..._0x2687e8[_0x5ef5f5(-0x7c,-0x74,-_0x401759._0x13a478,-0x78)][_0x5ef5f5(-0x6c,-0x6d,-0x7d,-_0x401759._0x4ab2b5)]!==void 0x0?{'reasoning_tokens':_0x2687e8[_0x5ef5f5(-_0x401759._0x2d8080,-_0x401759._0x31da08,-0x7f,-_0x401759._0x32afb7)][_0x15c07e(_0x401759._0x47e5af,0x4c4,0x4d8,0x4d1)]}:{}},..._0x2687e8['providerState']?{'providerState':structuredClone(_0x2687e8[_0x15c07e(_0x401759._0x25094c,0x4a1,0x49b,0x496)])}:{}};}function responseToAssistantMessage(_0x2fb23b){const _0x27756f={_0x49d1d4:0x347,_0x5b26ba:0x366,_0x2816ef:0x35a,_0x686b6:0x369,_0x4e846d:0x355,_0x47f318:0x369},_0x87825e={_0x794396:0x38d},_0x49bd11={_0x452839:0x1f0};function _0x2b66d5(_0x22487e,_0x2a6cdc,_0x2f9b7b,_0x51b3da){return _0x2e87(_0x22487e-_0x49bd11._0x452839,_0x51b3da);}function _0x489dd9(_0x3b35fb,_0x30c0a2,_0x50d2ed,_0x2b5061){return _0x2e87(_0x2b5061-_0x87825e._0x794396,_0x50d2ed);}return{'role':_0x2b66d5(_0x27756f._0x49d1d4,0x336,0x33c,0x328),'content':normalizeContent(_0x2fb23b['content']),..._0x2fb23b[_0x2b66d5(0x35a,0x379,0x35a,_0x27756f._0x5b26ba)]?{'providerState':structuredClone(_0x2fb23b[_0x2b66d5(_0x27756f._0x2816ef,_0x27756f._0x686b6,_0x27756f._0x4e846d,_0x27756f._0x47f318)])}:{}};}function createReasoningMessage(_0x17ea83){const _0x1f9499={_0x120953:0x351,_0x1183cf:0x342,_0x4a06ae:0x35a,_0x2f3033:0x355,_0x14103f:0x350,_0x5914d5:0x350,_0x3a570b:0xa3,_0xfa5325:0x95,_0x386a78:0xab,_0x5e1c7a:0xb8},_0x4edb0f={_0x1bcdbe:0x20f},_0x314190={_0x6ea7af:0x92,_0x5321a5:0xac,_0x51d0e7:0xba,_0x1fbb5a:0xa1,_0x5264ff:0xc0,_0x316341:0x99,_0x12f312:0xef,_0x25cfa5:0xf9,_0x2470f6:0xda,_0x1eedbb:0x31,_0x55e402:0x2d,_0x54ac01:0x15,_0x337381:0x18},_0x3157a5=normalizeContent(_0x17ea83?.[_0xfffe93(_0x1f9499._0x120953,0x335,0x332,_0x1f9499._0x1183cf)])[_0xfffe93(_0x1f9499._0x4a06ae,_0x1f9499._0x2f3033,_0x1f9499._0x14103f,_0x1f9499._0x5914d5)](_0x3b3686=>{const _0x35cf89={_0x2c0f0a:0xbb},_0x221f9e={_0x54c092:0x10c,_0x52e80b:0x1a3};function _0xfa2d0c(_0x34ae88,_0x2f7f28,_0x3e3631,_0x20f792){return _0xfffe93(_0x34ae88-_0x221f9e._0x54c092,_0x20f792- -0x351,_0x3e3631-_0x221f9e._0x52e80b,_0x34ae88);}function _0x14076d(_0xab4fea,_0x46be92,_0x1c3e9e,_0x48b9bf){return _0xd64870(_0xab4fea-_0x35cf89._0x2c0f0a,_0x46be92-0x16b,_0x48b9bf-0x155,_0xab4fea);}return _0x3b3686[_0x14076d(0x8c,0xb5,_0x314190._0x6ea7af,0xab)]===_0x14076d(0xa5,_0x314190._0x5321a5,_0x314190._0x5321a5,_0x314190._0x51d0e7)||_0x3b3686[_0x14076d(_0x314190._0x1fbb5a,_0x314190._0x5264ff,_0x314190._0x316341,0xab)]===_0x14076d(0xc7,_0x314190._0x12f312,_0x314190._0x25cfa5,_0x314190._0x2470f6)||_0x3b3686[_0xfa2d0c(-_0x314190._0x1eedbb,-_0x314190._0x55e402,-_0x314190._0x54ac01,-_0x314190._0x337381)]==='openai_reasoning';});function _0xd64870(_0x442f18,_0x2d1f6d,_0x36a841,_0x1c55e2){return _0x2e87(_0x36a841- -_0x4edb0f._0x1bcdbe,_0x1c55e2);}if(_0x3157a5[_0xd64870(-0xaf,-_0x1f9499._0x3a570b,-_0x1f9499._0xfa5325,-_0x1f9499._0x386a78)]===0x0)return void 0x0;function _0xfffe93(_0x5aa52b,_0x203cfd,_0xf84f3f,_0x57e548){return _0x2e87(_0x203cfd-0x1d4,_0x57e548);}return{'role':_0xd64870(-0xd6,-0xa8,-_0x1f9499._0x5e1c7a,-0xcf),'content':_0x3157a5};}function createAssistantTextMessage(_0x3ae2d8){const _0x168656={_0xeb9666:0x48,_0x437232:0x53,_0x30b2e5:0x3bf,_0x3015e6:0x80,_0x1a0df9:0x69},_0x3b8804={_0x655b5b:0xbe,_0x578144:0x484,_0x1b87fa:0x474},_0x2d2a5f={_0xaeaa7b:0x66},_0x46f43b=normalizeContent(_0x3ae2d8?.['content'])[_0x42b081(-0x56,-_0x168656._0xeb9666,-_0x168656._0x437232,-0x3d)](_0x208f30=>{const _0x2e8fe6={_0x772bcb:0x13b,_0x1f9a8c:0x1bf};function _0x4c77a6(_0x7d4687,_0x4e7090,_0x59a699,_0x1aaaff){return _0x42b081(_0x1aaaff-_0x2e8fe6._0x772bcb,_0x4e7090,_0x59a699-_0x2e8fe6._0x1f9a8c,_0x1aaaff-0x1e2);}function _0x1f133f(_0x3a8aca,_0x417784,_0x3774ca,_0x51cba1){return _0x42b081(_0x417784-0x4c5,_0x3774ca,_0x3774ca-0xa4,_0x51cba1-_0x2d2a5f._0xaeaa7b);}return _0x208f30[_0x4c77a6(_0x3b8804._0x655b5b,0xe0,0xd4,0xc9)]===_0x1f133f(_0x3b8804._0x578144,_0x3b8804._0x1b87fa,0x45d,0x461);});function _0x418fda(_0x147015,_0x220837,_0x5217da,_0x5097b1){return _0x2e87(_0x147015-0x263,_0x5097b1);}if(_0x46f43b[_0x418fda(0x3dd,_0x168656._0x30b2e5,0x3e3,0x3e1)]===0x0)return void 0x0;function _0x42b081(_0x4146ef,_0xb45a8a,_0x4f63cb,_0x140860){return _0x2e87(_0x4146ef- -0x1d7,_0xb45a8a);}return{'role':_0x42b081(-_0x168656._0x3015e6,-0x9c,-_0x168656._0x1a0df9,-0x66),'content':_0x46f43b};}function createToolUseMessage(_0x206dfc){const _0x558b26={_0x1df6b7:0x1ca,_0x3e4e03:0x193,_0x4f034e:0x1e0,_0x325f40:0x1ce,_0x2a213e:0x1e6,_0x163912:0x36,_0x4a29fb:0x1a7},_0x24f07e={_0x441b66:0x6d,_0x684fa4:0x77,_0x7e4c95:0x74,_0x3bb290:0x3b1,_0x1de9a0:0x3ce,_0x4dd024:0x3b2},_0x537b24={_0x96b6db:0x86,_0x2c8546:0x22,_0x319219:0x16a};function _0x4ad117(_0x164899,_0xddf17e,_0x1330a2,_0x5b2073){return _0x2e87(_0x1330a2- -0x1b0,_0x164899);}const _0x4843b7=normalizeContent(_0x206dfc?.[_0x373465(0x1ba,_0x558b26._0x1df6b7,0x1ae,_0x558b26._0x3e4e03)])[_0x373465(_0x558b26._0x4f034e,0x1bb,_0x558b26._0x325f40,_0x558b26._0x2a213e)](_0x23e2a4=>{const _0x89baf1={_0x2aec3e:0x42,_0x53333b:0xe4};function _0x14695e(_0x23cf4a,_0x2eb12d,_0x3bcf4b,_0x592b95){return _0x4ad117(_0x2eb12d,_0x2eb12d-_0x537b24._0x96b6db,_0x23cf4a- -_0x537b24._0x2c8546,_0x592b95-_0x537b24._0x319219);}function _0x323590(_0x52f08d,_0x43feb3,_0x4d1f1e,_0x369ebe){return _0x4ad117(_0x43feb3,_0x43feb3-_0x89baf1._0x2aec3e,_0x52f08d-0x3d2,_0x369ebe-_0x89baf1._0x53333b);}return _0x23e2a4[_0x14695e(-_0x24f07e._0x441b66,-0x7a,-_0x24f07e._0x684fa4,-_0x24f07e._0x7e4c95)]===_0x323590(_0x24f07e._0x3bb290,0x3bc,_0x24f07e._0x1de9a0,_0x24f07e._0x4dd024);});function _0x373465(_0x2edf71,_0x45dc44,_0x2a989b,_0x2831ee){return _0x2e87(_0x2a989b-0x4d,_0x45dc44);}if(_0x4843b7[_0x4ad117(-_0x558b26._0x163912,-0x3b,-_0x558b26._0x163912,-0x2b)]===0x0)return void 0x0;return{'role':_0x373465(_0x558b26._0x4a29fb,0x1c2,0x1a4,0x190),'content':_0x4843b7};}function getTextFromMessage(_0x300b0b){const _0x5ebe74={_0x498b97:0x164,_0x380b1c:0x178,_0x43810d:0x150,_0x49ef2b:0x145,_0x2f6699:0x134,_0x436647:0x116,_0x481264:0x147,_0x50e2be:0x141,_0x157055:0x125},_0x2620f6={_0x3b7a97:0x2c2},_0x218a5c={_0x539ace:0x2c6};function _0x82fc05(_0x1cbddd,_0x23d051,_0x1c2dcd,_0x3da971){return _0x2e87(_0x1c2dcd- -_0x218a5c._0x539ace,_0x3da971);}function _0x2bdc7f(_0xffa8ce,_0x24be1f,_0x5a43c5,_0x5f0149){return _0x2e87(_0xffa8ce- -_0x2620f6._0x3b7a97,_0x5f0149);}return normalizeContent(_0x300b0b?.[_0x82fc05(-_0x5ebe74._0x498b97,-_0x5ebe74._0x380b1c,-0x165,-_0x5ebe74._0x43810d)])[_0x2bdc7f(-0x141,-0x13c,-0x153,-_0x5ebe74._0x49ef2b)](_0x2687d3=>_0x2687d3[_0x82fc05(-0x160,-0x16b,-0x161,-0x152)]===_0x2bdc7f(-0x13c,-0x13a,-0x138,-0x129))[_0x2bdc7f(-_0x5ebe74._0x2f6699,-0x128,-_0x5ebe74._0x436647,-_0x5ebe74._0x481264)](_0x57a5d0=>_0x57a5d0[_0x82fc05(-0x14b,-0x126,-0x140,-0x15b)])[_0x2bdc7f(-0x13d,-_0x5ebe74._0x50e2be,-0x14f,-_0x5ebe74._0x157055)]('\x0a');}function getReasoningTextFromMessage(_0xf68583){const _0x53cd33={_0x14c44b:0x1ec,_0x2062d4:0x1f2,_0x5bcbff:0x1f0,_0x88658a:0x1ee,_0x242d06:0x206,_0x383ca9:0x1d4,_0x233dee:0x22f,_0x96d3ab:0x22e},_0x517eb3={_0x5cebbb:0x220,_0x47e6be:0x242,_0x269aee:0x131,_0x4d5735:0x11b,_0x10679a:0x242,_0x3f6b9e:0x238,_0x518a66:0x23d,_0x569800:0x21a,_0x20557f:0x22f,_0x3162ab:0x215,_0x573c08:0x240,_0xef7a06:0x234,_0x4f04b1:0x1ec,_0x167c67:0x1fe,_0x20ef8c:0x1e6,_0xd105f5:0x121,_0x279d2e:0x120,_0x4a0c89:0x14d,_0x97926d:0x12e,_0x2f042b:0x11c,_0x2e1ad2:0x12c,_0xcc8071:0x1f1,_0xa71f1d:0x206,_0x1f6e03:0x114,_0x351589:0xf9,_0x1058e2:0x12e,_0x1d1a30:0xfd,_0x3d070a:0x10e,_0x18c0b3:0x1fb,_0x57a36d:0x20e,_0x59e5f5:0x21d,_0x2dec34:0x224,_0x18773f:0x223,_0x6ccccf:0x1ff,_0x467e0d:0x203,_0x521ec6:0x214,_0x27f452:0x1fe,_0x153ccd:0x11b,_0x36244e:0x102,_0x4c636c:0x116,_0x2b8b79:0x10f,_0x2073c2:0x104,_0x2fef54:0x112,_0x2cde82:0x12a,_0x41fd1a:0x126},_0x514345={_0x949b86:0x575},_0x3d2cdd={_0x563795:0x2e0};function _0x30def4(_0x3f801b,_0x7f9305,_0x1f92e4,_0x544266){return _0x2e87(_0x1f92e4-0x8f,_0x7f9305);}function _0x2b0935(_0x52e317,_0x4ad0c0,_0x5290ce,_0x892bb8){return _0x2e87(_0x892bb8-_0x3d2cdd._0x563795,_0x52e317);}return normalizeContent(_0xf68583?.[_0x30def4(_0x53cd33._0x14c44b,_0x53cd33._0x2062d4,_0x53cd33._0x5bcbff,_0x53cd33._0x88658a)])[_0x30def4(_0x53cd33._0x242d06,_0x53cd33._0x383ca9,0x1ed,0x1dc)](_0x20cff8=>{const _0x50889b={_0x39721c:0x10a,_0x59020f:0x423,_0x3aa76b:0xbe};if(_0x20cff8[_0x16ec4b(-0x13e,-0x130,-0x137,-0x11b)]==='anthropic_thinking')return _0x20cff8[_0x45f00a(-_0x517eb3._0x5cebbb,-0x228,-0x238,-_0x517eb3._0x47e6be)][_0x16ec4b(-_0x517eb3._0x269aee,-0x115,-0x108,-0x123)]()[_0x16ec4b(-0x106,-_0x517eb3._0x4d5735,-0x124,-0x135)]>0x0?[_0x20cff8[_0x45f00a(-0x219,-_0x517eb3._0x10679a,-_0x517eb3._0x3f6b9e,-0x249)]]:[];function _0x45f00a(_0xdd0085,_0x1d0f4d,_0x3b09ca,_0x504435){return _0x30def4(_0xdd0085-_0x50889b._0x39721c,_0xdd0085,_0x3b09ca- -_0x50889b._0x59020f,_0x504435-_0x50889b._0x3aa76b);}if(_0x20cff8[_0x45f00a(-_0x517eb3._0x518a66,-_0x517eb3._0x569800,-_0x517eb3._0x20557f,-_0x517eb3._0x3162ab)]===_0x45f00a(-_0x517eb3._0x573c08,-0x234,-0x220,-_0x517eb3._0xef7a06))return[_0x45f00a(-_0x517eb3._0x4f04b1,-_0x517eb3._0x167c67,-0x204,-_0x517eb3._0x20ef8c)];if(_0x20cff8['type']!==_0x16ec4b(-_0x517eb3._0xd105f5,-_0x517eb3._0x279d2e,-0x134,-0x133))return[];const _0x2a2ab2=_0x20cff8[_0x16ec4b(-_0x517eb3._0x4a0c89,-_0x517eb3._0x97926d,-_0x517eb3._0x2f042b,-_0x517eb3._0x2e1ad2)][_0x45f00a(-0x1f8,-_0x517eb3._0xcc8071,-_0x517eb3._0xa71f1d,-0x219)](_0x3cd3c5=>_0x3cd3c5[_0x45f00a(-0x1f0,-0x1fc,-0x20e,-0x214)])[_0x16ec4b(-0x123,-_0x517eb3._0x1f6e03,-0x125,-_0x517eb3._0x351589)](_0x240baf=>_0x240baf[_0x16ec4b(-0x132,-0x115,-0x125,-0x12a)]()[_0x45f00a(-0x216,-0x236,-0x21a,-0x21c)]>0x0)[_0x16ec4b(-0x10a,-0x110,-0xf1,-0x107)]('\x0a\x0a');if(_0x2a2ab2[_0x16ec4b(-_0x517eb3._0x1058e2,-0x11b,-_0x517eb3._0x1d1a30,-_0x517eb3._0x3d070a)]>0x0)return[_0x2a2ab2];function _0x16ec4b(_0x5d9ee7,_0x21e197,_0x3a7faf,_0x5b1fad){return _0x2b0935(_0x5d9ee7,_0x21e197-0xa4,_0x3a7faf-0x8d,_0x21e197- -_0x514345._0x949b86);}if(_0x20cff8[_0x45f00a(-0x203,-_0x517eb3._0x18c0b3,-_0x517eb3._0x57a36d,-_0x517eb3._0x59e5f5)]&&_0x20cff8[_0x45f00a(-_0x517eb3._0x2dec34,-_0x517eb3._0x18773f,-0x20e,-_0x517eb3._0x6ccccf)][_0x45f00a(-0x203,-_0x517eb3._0x467e0d,-_0x517eb3._0x521ec6,-_0x517eb3._0x27f452)]()[_0x16ec4b(-0x103,-_0x517eb3._0x153ccd,-_0x517eb3._0x36244e,-_0x517eb3._0x4c636c)]>0x0)return[_0x20cff8[_0x16ec4b(-0x101,-_0x517eb3._0x2b8b79,-_0x517eb3._0x2073c2,-_0x517eb3._0x2fef54)]];return _0x20cff8[_0x16ec4b(-0x13b,-_0x517eb3._0x2cde82,-_0x517eb3._0x41fd1a,-_0x517eb3._0xd105f5)]?[_0x45f00a(-0x230,-0x22f,-0x225,-0x20c)]:[];})[_0x30def4(0x21e,_0x53cd33._0x233dee,0x214,_0x53cd33._0x96d3ab)]('\x0a\x0a');}function getToolUseBlocks(_0x5eb7ce){const _0x4797d1={_0x17cb1e:0x4f5,_0x2c6f35:0x48,_0x3425c1:0x68},_0x4b2a71={_0x39b04c:0x394};function _0x44dc04(_0x5bb408,_0x2755d4,_0x59993c,_0x2e41d4){return _0x2e87(_0x5bb408-_0x4b2a71._0x39b04c,_0x59993c);}function _0x1edc58(_0x5d4458,_0x1eba25,_0x203da1,_0x4dae50){return _0x2e87(_0x1eba25- -0x1db,_0x4dae50);}return normalizeContent(_0x5eb7ce?.[_0x44dc04(_0x4797d1._0x17cb1e,0x4f7,0x4eb,0x4eb)])[_0x1edc58(-0x4f,-0x5a,-_0x4797d1._0x2c6f35,-_0x4797d1._0x3425c1)](_0x155aa4=>_0x155aa4[_0x1edc58(-0x83,-0x76,-0x76,-0x58)]===_0x44dc04(0x523,0x50f,0x53a,0x510));}function getToolResultBlocks(_0x15af6b){const _0x545126={_0x459a2b:0x3ad,_0xffce7b:0x3c8,_0x234f28:0x3cd,_0x19b355:0x3ae},_0x4328eb={_0xcc0938:0x1ae},_0xd14562={_0x281fc1:0x24c};function _0x536eac(_0x282850,_0x69fc3e,_0x3e669c,_0x35b4ee){return _0x2e87(_0x3e669c-_0xd14562._0x281fc1,_0x69fc3e);}function _0x537703(_0xf972e,_0x3e658e,_0x37cfe8,_0x376bd5){return _0x2e87(_0x3e658e- -_0x4328eb._0xcc0938,_0xf972e);}return normalizeContent(_0x15af6b?.[_0x536eac(0x3a1,0x3a0,_0x545126._0x459a2b,_0x545126._0xffce7b)])[_0x536eac(0x3c9,0x3ec,_0x545126._0x234f28,_0x545126._0x19b355)](_0x51a40e=>_0x51a40e[_0x537703(-0x2f,-0x49,-0x52,-0x37)]===_0x537703(-0x42,-0x3b,-0x44,-0x31));}function createToolResultUserMessage(_0x4f5636){const _0x4ef1fe={_0x425d16:0xc0,_0x58b708:0xe9,_0x1d790d:0xc9},_0x1ba137={_0x930230:0x283,_0x419999:0x282,_0x104432:0x299,_0x55f87f:0x54c,_0x5e1272:0x560,_0x4999de:0x575},_0x309d0e={_0x46016b:0xb9};function _0x55b370(_0x4663bf,_0x27d7b3,_0x88203f,_0x1ba91b){return _0x2e87(_0x1ba91b- -_0x309d0e._0x46016b,_0x4663bf);}return{'role':_0x55b370(_0x4ef1fe._0x425d16,0xd2,_0x4ef1fe._0x58b708,_0x4ef1fe._0x1d790d),'content':_0x4f5636['map'](_0x32b3ed=>{const _0x16e7c8={_0xdcc952:0x13b,_0x421321:0x132,_0x87298e:0x1d8};function _0x52778f(_0xfa1bcd,_0x446916,_0x3f5ac8,_0x4da839){return _0x55b370(_0xfa1bcd,_0x446916-_0x16e7c8._0xdcc952,_0x3f5ac8-_0x16e7c8._0x421321,_0x3f5ac8-_0x16e7c8._0x87298e);}function _0x4223b8(_0x379317,_0x1a2fbe,_0x25ac08,_0xd026d8){return _0x55b370(_0x25ac08,_0x1a2fbe-0x1c9,_0x25ac08-0xea,_0x1a2fbe-0x498);}return{'type':'tool_result','tool_use_id':_0x32b3ed['callId'],'content':_0x32b3ed['content']??_0x32b3ed[_0x52778f(_0x1ba137._0x930230,_0x1ba137._0x419999,0x296,0x294)],'is_error':_0x32b3ed[_0x52778f(0x270,_0x1ba137._0x104432,_0x1ba137._0x930230,0x278)]===_0x4223b8(_0x1ba137._0x55f87f,0x55e,_0x1ba137._0x5e1272,_0x1ba137._0x4999de)};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x167871(0x2e9,0x2d8,0x2e0,0x2fe);function synthesizeMissingToolResults(_0x55106a){const _0x478787={_0x1a7317:0xe9,_0x50a7c2:0x113,_0x1a1e5d:0x125,_0x26da97:0xf8,_0x4bdabc:0x134,_0xd06e58:0x100,_0x467110:0x140,_0x2a86ab:0xfd,_0x49225b:0x12a,_0x36eff3:0x10b},_0x651675={_0x19d0ef:0x1f1},_0x1fb581={_0x235014:0x412,_0x40050a:0x179},_0x5cab70=new Set();for(const _0x53bdb8 of _0x55106a){for(const _0x144fa1 of getToolResultBlocks(_0x53bdb8)){_0x5cab70[_0x1e53de(0xf0,0xfe,_0x478787._0x1a7317,_0x478787._0x1a7317)](_0x144fa1['tool_use_id']);}}const _0x486402=[];function _0x44f0cb(_0x20c21,_0xd02f24,_0x38aebb,_0x143ac8){return _0x167871(_0x20c21-0x1a1,_0xd02f24,_0x143ac8- -_0x1fb581._0x235014,_0x143ac8-_0x1fb581._0x40050a);}for(const _0x9b49aa of _0x55106a){_0x486402['push'](_0x9b49aa);const _0x7e1f36=getToolUseBlocks(_0x9b49aa)[_0x1e53de(0x104,_0x478787._0x50a7c2,_0x478787._0x1a1e5d,0xf6)](_0x17358a=>!_0x5cab70['has'](_0x17358a['id']));if(_0x7e1f36[_0x44f0cb(-_0x478787._0x26da97,-_0x478787._0x4bdabc,-_0x478787._0xd06e58,-0x115)]===0x0)continue;_0x486402[_0x44f0cb(-_0x478787._0x467110,-_0x478787._0x1a1e5d,-0x120,-0x136)]({'role':_0x1e53de(0x103,0x114,0x130,_0x478787._0x2a86ab),'content':_0x7e1f36[_0x1e53de(0x135,0x120,0x127,_0x478787._0x49225b)](_0x45594e=>({'type':_0x1e53de(0xf3,0x105,0xfa,0xeb),'tool_use_id':_0x45594e['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x46f0be of _0x7e1f36){_0x5cab70[_0x1e53de(_0x478787._0x36eff3,0xfe,0x106,0x104)](_0x46f0be['id']);}}function _0x1e53de(_0x1d4f6f,_0x1f62e1,_0x2bd47d,_0x400f25){return _0x167871(_0x1d4f6f-0x36,_0x2bd47d,_0x1f62e1- -_0x651675._0x19d0ef,_0x400f25-0xea);}return _0x486402;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
|
package/dist/chunk-RTDLM6FU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0xfbb815,_0x4345ec){const _0x5dd224={_0x19810c:0x5a,_0x4e649c:0x10,_0x3e9653:0x3b,_0x553535:0x3,_0x5cf740:0x4e,_0x17344a:0x37,_0x45c932:0x6b,_0x174b37:0x2e3,_0x2b134e:0x2f5,_0x3b08f0:0x14,_0x29eddd:0x3e,_0x1010cb:0x2d8,_0x336091:0x2b0,_0x11a4a4:0x298,_0x52b269:0x282,_0x41ea34:0x9d,_0x24a4f2:0x74,_0x29d808:0xd7,_0x2ebc65:0xdf,_0x28b3b9:0x5d,_0x3517fb:0x86,_0x4585e2:0x2a,_0x56c8bc:0x82},_0x5de93a={_0x5e0af8:0x378};function _0x1ad271(_0x244edb,_0x403c43,_0x57c974,_0x43a985){return _0x33d7(_0x244edb- -0x10a,_0x43a985);}function _0x2a3da9(_0x397f84,_0x2710b6,_0x533188,_0x1cc7f3){return _0x33d7(_0x2710b6- -_0x5de93a._0x5e0af8,_0x533188);}const _0x314beb=_0xfbb815();while(!![]){try{const _0xb5b3c=-parseInt(_0x1ad271(-_0x5dd224._0x19810c,-0xa1,-0x6b,-0x5))/0x1+-parseInt(_0x1ad271(-_0x5dd224._0x4e649c,_0x5dd224._0x3e9653,-_0x5dd224._0x553535,-_0x5dd224._0x5cf740))/0x2*(parseInt(_0x1ad271(-_0x5dd224._0x17344a,-0x2f,-0x3e,-_0x5dd224._0x45c932))/0x3)+-parseInt(_0x2a3da9(-0x2b2,-_0x5dd224._0x174b37,-_0x5dd224._0x2b134e,-0x2fc))/0x4*(parseInt(_0x1ad271(-0x56,-_0x5dd224._0x3b08f0,-0xaa,-0xb3))/0x5)+parseInt(_0x1ad271(-0x6b,-_0x5dd224._0x29eddd,-0x28,-0x83))/0x6*(-parseInt(_0x2a3da9(-0x2b6,-_0x5dd224._0x1010cb,-0x2af,-0x32b))/0x7)+-parseInt(_0x2a3da9(-_0x5dd224._0x336091,-0x2ce,-_0x5dd224._0x11a4a4,-_0x5dd224._0x52b269))/0x8+-parseInt(_0x1ad271(-_0x5dd224._0x41ea34,-_0x5dd224._0x24a4f2,-_0x5dd224._0x29d808,-_0x5dd224._0x2ebc65))/0x9*(-parseInt(_0x1ad271(-_0x5dd224._0x28b3b9,-0x6b,-_0x5dd224._0x3517fb,-0x6d))/0xa)+parseInt(_0x1ad271(-0x4a,-_0x5dd224._0x4585e2,-_0x5dd224._0x56c8bc,-0xc))/0xb;if(_0xb5b3c===_0x4345ec)break;else _0x314beb['push'](_0x314beb['shift']());}catch(_0x39dada){_0x314beb['push'](_0x314beb['shift']());}}}(_0x3106,0x3f8d2));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-RABU4RC2.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x1bd77c){const _0x4e9aef={_0x7e7992:0x1a9,_0x4d9cbc:0x23d},_0x24a552={_0x5860ee:0x100};function _0x416326(_0x46fee6,_0x44e0e2,_0x549079,_0x51017a){return _0x33d7(_0x51017a-_0x24a552._0x5860ee,_0x46fee6);}return typeof _0x1bd77c==='object'&&_0x1bd77c!==null&&!Array[_0x416326(_0x4e9aef._0x7e7992,0x1a6,_0x4e9aef._0x4d9cbc,0x1e1)](_0x1bd77c);}function isToolOutputEnvelope(_0x275c3f){const _0x273ed8={_0x18672e:0x374,_0x4f7f96:0x39c,_0x6d766:0x33f,_0x2ca2ae:0x3b6,_0x592f96:0x39a,_0x317ce3:0x3db,_0x3f02a1:0x1aa,_0x58f3b1:0x115,_0x30f8b8:0x170,_0x396580:0x15f,_0xd11341:0x16b,_0xa8d01f:0x1e4,_0x37be05:0x24f},_0x4e117e={_0x31774d:0x260},_0x12587b={_0x43b78c:0x2c2};if(typeof _0x275c3f!==_0x508c79(_0x273ed8._0x18672e,0x3d8,_0x273ed8._0x4f7f96,_0x273ed8._0x6d766)||_0x275c3f===null||Array[_0x508c79(_0x273ed8._0x2ca2ae,_0x273ed8._0x592f96,0x3a3,_0x273ed8._0x317ce3)](_0x275c3f))return![];function _0x508c79(_0x522bcd,_0x3750c1,_0x20a5d7,_0x4fd469){return _0x33d7(_0x20a5d7-_0x12587b._0x43b78c,_0x3750c1);}function _0x65e34a(_0x23c5d6,_0x3d14c8,_0x335ebe,_0x3dadc9){return _0x33d7(_0x3dadc9- -_0x4e117e._0x31774d,_0x3d14c8);}if(typeof _0x275c3f[_0x65e34a(-0x16f,-_0x273ed8._0x3f02a1,-_0x273ed8._0x58f3b1,-_0x273ed8._0x30f8b8)]!==_0x65e34a(-0x124,-_0x273ed8._0x396580,-_0x273ed8._0xd11341,-0x163))return![];const _0x4cdd2d=_0x275c3f[_0x65e34a(-_0x273ed8._0xa8d01f,-_0x273ed8._0x37be05,-0x236,-0x1f7)];return _0x4cdd2d===void 0x0||isJsonObject(_0x4cdd2d);}function validateAgainstSchema(_0x449aca,_0x5c9d5b,_0x46f4c8){const _0x3f7c41={_0x3bc76d:0x16f,_0x1d1a3d:0x280,_0x5ca01d:0x270,_0xad6c5c:0x234,_0x4ad739:0x12c,_0x2df93a:0x2ac,_0x3233be:0x24f,_0x12a05d:0x293,_0x33823a:0x11d,_0x497048:0x10b,_0x4cccba:0x15d,_0x51a1f4:0x188,_0x2442ac:0x187,_0x5f2a43:0x29a,_0x277143:0x237,_0x247c76:0x151,_0x2dfc0f:0x116,_0x398759:0x173,_0x4bee2c:0x108,_0x5caab7:0x217,_0x3d501b:0x295,_0x58cc5b:0x245,_0x598fc6:0x1f2,_0x21530a:0x212,_0x2d323f:0x14e,_0x5eade2:0x11c,_0x5ccf5b:0x11b,_0x10fa01:0x2aa,_0xc8b3e2:0x27a,_0x5e2c28:0x2cc,_0x44bff:0x2e1,_0x2f2604:0x276,_0x18766e:0x1b1,_0x25de5e:0x18d,_0x48b346:0x1bf,_0x545836:0x160};function _0x12aefa(_0x28280c,_0x59a163,_0x1fd422,_0x37dd61){return _0x33d7(_0x59a163-0x74,_0x37dd61);}function _0x3ad097(_0x5c4d7b,_0x3f39be,_0x42d67c,_0x25710d){return _0x33d7(_0x25710d- -0x331,_0x5c4d7b);}switch(_0x46f4c8[_0x12aefa(0x1d0,0x174,_0x3f7c41._0x3bc76d,0x193)]){case _0x3ad097(-0x22b,-0x26a,-_0x3f7c41._0x1d1a3d,-0x234):if(typeof _0x5c9d5b!==_0x3ad097(-0x20c,-_0x3f7c41._0x5ca01d,-0x28d,-_0x3f7c41._0xad6c5c))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x449aca+_0x12aefa(0x10d,_0x3f7c41._0x4ad739,0xe0,0x145));return;case'number':if(typeof _0x5c9d5b!==_0x3ad097(-_0x3f7c41._0x2df93a,-_0x3f7c41._0x3233be,-_0x3f7c41._0x12a05d,-0x278))throw new Error(_0x12aefa(_0x3f7c41._0x33823a,0x12b,0x148,_0x3f7c41._0x497048)+_0x449aca+_0x12aefa(0x18b,0x183,_0x3f7c41._0x4cccba,0x145));return;case'boolean':if(typeof _0x5c9d5b!==_0x12aefa(_0x3f7c41._0x51a1f4,0x189,_0x3f7c41._0x2442ac,0x160))throw new Error(_0x3ad097(-_0x3f7c41._0x5f2a43,-0x23f,-_0x3f7c41._0x277143,-0x27a)+_0x449aca+':\x20expected\x20boolean');return;case _0x12aefa(0x12a,0x138,0x13a,_0x3f7c41._0x247c76):if(!Array[_0x12aefa(_0x3f7c41._0x2dfc0f,0x155,_0x3f7c41._0x398759,_0x3f7c41._0x4bee2c)](_0x5c9d5b))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x449aca+_0x3ad097(-_0x3f7c41._0x5caab7,-0x24d,-_0x3f7c41._0x3d501b,-0x24b));_0x5c9d5b[_0x3ad097(-_0x3f7c41._0x58cc5b,-0x205,-_0x3f7c41._0x598fc6,-_0x3f7c41._0x21530a)]((_0x428055,_0x30d050)=>{validateAgainstSchema(_0x449aca+'['+_0x30d050+']',_0x428055,_0x46f4c8['items']);});return;case _0x12aefa(0x17a,_0x3f7c41._0x2d323f,_0x3f7c41._0x5eade2,_0x3f7c41._0x5ccf5b):if(!isJsonObject(_0x5c9d5b))throw new Error(_0x3ad097(-0x21c,-_0x3f7c41._0x10fa01,-0x248,-_0x3f7c41._0xc8b3e2)+_0x449aca+_0x3ad097(-0x259,-0x202,-0x203,-0x227));for(const _0x556e41 of _0x46f4c8[_0x3ad097(-0x23f,-0x2c2,-0x2a5,-0x28e)]??[]){if(!(_0x556e41 in _0x5c9d5b))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x449aca+_0x3ad097(-_0x3f7c41._0x5e2c28,-0x2bc,-_0x3f7c41._0x44bff,-0x28d)+_0x556e41+'\x22');}for(const [_0x2ef1db,_0x4eb952]of Object[_0x3ad097(-0x21f,-_0x3f7c41._0x2f2604,-0x2bc,-0x275)](_0x46f4c8[_0x12aefa(_0x3f7c41._0x18766e,_0x3f7c41._0x25de5e,_0x3f7c41._0x48b346,_0x3f7c41._0x545836)])){_0x2ef1db in _0x5c9d5b&&validateAgainstSchema(_0x449aca+'.'+_0x2ef1db,_0x5c9d5b[_0x2ef1db],_0x4eb952);}}}function normalizeToolOutputValue(_0x3404ba){const _0x1a97a2={_0x30b0aa:0x11b,_0x5c2422:0x155,_0x5e920c:0x32,_0x4d1e88:0x21,_0x564a40:0x115,_0x1f4d05:0xb0,_0xc81856:0xf9,_0xf80865:0x109,_0x3c5103:0x114,_0x207eb2:0x131,_0x289536:0x108,_0x1be77c:0x105,_0x510ab2:0x12a,_0x3d2a9b:0x15f,_0x5e048c:0x15b,_0x949cf1:0x76,_0x58cc58:0x90,_0x3b3513:0xc4};if(isToolOutputEnvelope(_0x3404ba))return{'output':_0x3404ba[_0x519a16(-_0x1a97a2._0x30b0aa,-0x16f,-_0x1a97a2._0x5c2422,-0x106)],'structured':_0x3404ba[_0x23dbfe(0x34,_0x1a97a2._0x5e920c,0x54,-_0x1a97a2._0x4d1e88)]??{'value':_0x3404ba[_0x23dbfe(0xdd,0xb9,_0x1a97a2._0x564a40,_0x1a97a2._0x1f4d05)]},..._0x3404ba['content']!==void 0x0?{'content':_0x3404ba[_0x519a16(-_0x1a97a2._0xc81856,-_0x1a97a2._0xf80865,-_0x1a97a2._0x3c5103,-_0x1a97a2._0x207eb2)]}:{}};if(typeof _0x3404ba===_0x519a16(-0x10e,-_0x1a97a2._0x289536,-0xd9,-0xc6))return{'output':_0x3404ba,'structured':{'value':_0x3404ba}};if(typeof _0x3404ba===_0x519a16(-_0x1a97a2._0x207eb2,-0x13a,-0x17e,-_0x1a97a2._0x1be77c)&&_0x3404ba!==null&&!Array[_0x519a16(-_0x1a97a2._0x510ab2,-0x16d,-_0x1a97a2._0x3d2a9b,-_0x1a97a2._0x5e048c)](_0x3404ba))return{'output':JSON[_0x23dbfe(_0x1a97a2._0x949cf1,_0x1a97a2._0x58cc58,_0x1a97a2._0x3b3513,0xb0)](_0x3404ba,null,0x2),'structured':_0x3404ba};function _0x23dbfe(_0x6070b4,_0x8a01ff,_0x177a13,_0x73a8ab){return _0x33d7(_0x8a01ff- -0x37,_0x177a13);}function _0x519a16(_0x2ae934,_0x222571,_0x323348,_0x496db2){return _0x33d7(_0x2ae934- -0x20b,_0x222571);}return{'output':JSON['stringify'](_0x3404ba,null,0x2),'structured':{'value':_0x3404ba}};}function createToolOutput(_0x2592ef,_0x5ab15a={'value':_0x2592ef},_0x32a591){return{'output':_0x2592ef,'structured':_0x5ab15a,..._0x32a591!==void 0x0?{'content':_0x32a591}:{}};}var ToolExecutionError=class extends Error{[_0x198dcf(0x73,0x44,0xb1,0xbe)];constructor(_0x3c5713,_0x1e93b7={}){const _0x3276b7={_0xe98a07:0x225,_0x459a48:0x208,_0x1c6b0d:0x12c},_0x55ba7a={_0x1817b6:0x2,_0x3b4649:0x54},_0x40b887={_0x1d5b4f:0x60};super(_0x3c5713),this['name']=_0x1c87ec(-0x255,-_0x3276b7._0xe98a07,-_0x3276b7._0x459a48,-0x21e);function _0x1c87ec(_0x2acf42,_0x29f1b6,_0x4ecfe9,_0x1eef32){return _0x198dcf(_0x29f1b6- -0x335,_0x29f1b6-0xd5,_0x4ecfe9-_0x40b887._0x1d5b4f,_0x2acf42);}function _0x5bcc42(_0x17521f,_0x33cc3f,_0x3fc02e,_0x2596e9){return _0x198dcf(_0x33cc3f-0x6a,_0x33cc3f-_0x55ba7a._0x1817b6,_0x3fc02e-_0x55ba7a._0x3b4649,_0x3fc02e);}this[_0x5bcc42(0xda,0xdd,_0x3276b7._0x1c6b0d,0xfb)]=_0x1e93b7;}};function defineTool(_0x51db62){return _0x51db62;}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x58f524=[]){for(const _0x44b564 of _0x58f524){this['register'](_0x44b564);}}[_0x198dcf(0xe5,0x12d,0x9c,0x12b)](_0x4c5aed){const _0x5099b7={_0x1af014:0x300,_0x26451a:0x347},_0x5c645b={_0x2ec55f:0x1eb},_0x2d5ffc={_0x43a696:0x35,_0x491320:0x169};function _0x155f3a(_0x290910,_0x1ed13d,_0x500cef,_0xf0cac4){return _0x2acee8(_0x290910-_0x2d5ffc._0x43a696,_0x1ed13d-0x1db,_0x1ed13d-_0x2d5ffc._0x491320,_0x290910);}function _0x9ee34e(_0x45d478,_0x4c4879,_0x569ad6,_0x12ffa8){return _0x2acee8(_0x45d478-0x15,_0x4c4879-_0x5c645b._0x2ec55f,_0x4c4879-0xc3,_0x45d478);}this[_0x9ee34e(0x2de,0x332,0x2e4,0x37d)]['set'](_0x4c5aed[_0x155f3a(_0x5099b7._0x1af014,0x33f,_0x5099b7._0x26451a,0x30f)],_0x4c5aed);}[_0x2acee8(0x239,0x293,0x25f,0x2b7)](_0x1a33f4){const _0x57a334={_0x3a64fb:0x2e6,_0x71dd32:0x1d3,_0x1ad6c9:0x1eb,_0x58cd8a:0x20b},_0x24d57d={_0x391fc0:0x63},_0x52e80a={_0x42fcd1:0x9b,_0x1d7fc6:0x74};function _0x2b49d2(_0x3ed56f,_0x4d8471,_0xbaf44c,_0x3c496f){return _0x2acee8(_0x3ed56f-_0x52e80a._0x42fcd1,_0x4d8471-0x26,_0xbaf44c- -_0x52e80a._0x1d7fc6,_0x3c496f);}function _0x41ea0e(_0x2a10d1,_0x34ee2d,_0x81cc75,_0x38eabe){return _0x2acee8(_0x2a10d1-_0x24d57d._0x391fc0,_0x34ee2d-0x4f,_0x81cc75- -0x4fd,_0x34ee2d);}return this[_0x41ea0e(-0x29a,-_0x57a334._0x3a64fb,-0x28e,-0x2cf)][_0x2b49d2(0x1bf,_0x57a334._0x71dd32,_0x57a334._0x1ad6c9,_0x57a334._0x58cd8a)](_0x1a33f4);}[_0x198dcf(0xb0,0x77,0x8f,0xd8)](){const _0x44e927={_0x404dda:0x134,_0x283882:0x1c0},_0xd3746e={_0x25d755:0x45};function _0xae820b(_0x573a14,_0x1eba61,_0x5c1898,_0x42d813){return _0x2acee8(_0x573a14-0x17a,_0x1eba61-_0xd3746e._0x25d755,_0x573a14- -0xe8,_0x1eba61);}return[...this[_0xae820b(0x187,0x193,_0x44e927._0x404dda,_0x44e927._0x283882)]['values']()];}[_0x198dcf(0xcc,0xab,0xfb,0xb5)](){const _0xffa9b8={_0x4ab7cb:0x459,_0x3f4f53:0x45c},_0x3e21af={_0x27259f:0x1d0,_0x443df3:0x323,_0x1a6523:0x2dc},_0x2ea4d6={_0x106ac6:0x3c5,_0x3a94de:0x28};function _0x1a9794(_0x3f2ba9,_0x280683,_0x441330,_0x35468c){return _0x198dcf(_0x441330-_0x2ea4d6._0x106ac6,_0x280683-_0x2ea4d6._0x3a94de,_0x441330-0x1ef,_0x3f2ba9);}return this[_0x1a9794(0x4af,_0xffa9b8._0x4ab7cb,0x475,_0xffa9b8._0x3f4f53)]()['map'](_0x2c2762=>{const _0x40eb7d={_0x162ddb:0xf4,_0x46992e:0x631},_0x1465b0={_0x1a26b1:0x5c,_0x3afc9a:0x148};function _0x54860b(_0x4045d7,_0x370b90,_0x2986f1,_0x5193ca){return _0x1a9794(_0x5193ca,_0x370b90-_0x1465b0._0x1a26b1,_0x2986f1- -0x793,_0x5193ca-_0x1465b0._0x3afc9a);}function _0x58c437(_0x1f614b,_0xbf1738,_0x574670,_0x19db3d){return _0x1a9794(_0xbf1738,_0xbf1738-_0x40eb7d._0x162ddb,_0x19db3d- -_0x40eb7d._0x46992e,_0x19db3d-0x140);}return{'name':_0x2c2762[_0x58c437(-0x1cf,-_0x3e21af._0x27259f,-0x222,-0x1f3)],'description':_0x2c2762['description'],'input_schema':_0x2c2762[_0x54860b(-0x2d7,-0x353,-_0x3e21af._0x443df3,-_0x3e21af._0x1a6523)]};});}};function validateToolInput(_0x170611,_0x16cef9){return validateAgainstSchema('input',_0x170611,_0x16cef9),_0x170611;}function deriveFinalToolOutput(_0x52b38f){const _0x4ed888={_0xe4df02:0x0,_0x5771e7:0x7,_0x53d8c4:0x8,_0x5b9235:0x56,_0x45a52f:0x96,_0x3889c2:0x50,_0x5d3911:0x7c,_0x566584:0x403,_0x25fea3:0x45c,_0x30ea7d:0x3ee,_0x1bedd3:0x3bd,_0x3df437:0x49e,_0x456e6b:0x43a,_0x1d2fc1:0x44d,_0x11dcd1:0x443,_0x250fcc:0x465,_0x48e602:0x1,_0x12037f:0x44,_0x21d010:0x2d},_0x3eea41={_0x598cea:0xe2,_0x513a67:0x24c},_0x14f34c={_0x3555dc:0xe0,_0x499051:0x1e5};function _0x786415(_0x2babdc,_0x469069,_0x465f43,_0x5cff31){return _0x2acee8(_0x2babdc-0x8b,_0x469069-_0x14f34c._0x3555dc,_0x465f43-_0x14f34c._0x499051,_0x469069);}function _0x5f1e6a(_0x24f12d,_0x3df7b7,_0x3f5dbd,_0x2d160b){return _0x2acee8(_0x24f12d-0x14a,_0x3df7b7-_0x3eea41._0x598cea,_0x3f5dbd- -_0x3eea41._0x513a67,_0x2d160b);}if(_0x52b38f[_0x5f1e6a(-0x3d,_0x4ed888._0xe4df02,-0x56,-0x6a)]===0x0)return{'output':'','structured':{}};if(_0x52b38f[_0x5f1e6a(_0x4ed888._0x5771e7,_0x4ed888._0x53d8c4,-_0x4ed888._0x5b9235,-0xe)]===0x1)return{'output':_0x52b38f[0x0]['output'],'structured':_0x52b38f[0x0][_0x5f1e6a(-_0x4ed888._0x45a52f,-_0x4ed888._0x3889c2,-_0x4ed888._0x5d3911,-0x85)],..._0x52b38f[0x0][_0x786415(0x456,_0x4ed888._0x566584,0x45e,0x405)]!==void 0x0?{'content':_0x52b38f[0x0][_0x786415(0x48a,_0x4ed888._0x25fea3,0x45e,0x422)]}:{}};const _0x258d11=_0x52b38f[_0x786415(_0x4ed888._0x30ea7d,0x374,0x3b8,_0x4ed888._0x1bedd3)](_0x7e831f=>_0x7e831f[_0x5f1e6a(-0x29,0x5f,0x2d,0x52)]!==void 0x0);return{'output':_0x52b38f[_0x786415(_0x4ed888._0x3df437,0x421,0x443,0x445)](_0x51867f=>_0x51867f[_0x786415(0x494,0x494,0x43c,0x480)])[_0x786415(0x3e0,0x476,_0x4ed888._0x456e6b,0x414)](''),'structured':{'chunks':_0x52b38f[_0x786415(_0x4ed888._0x1d2fc1,0x46c,_0x4ed888._0x11dcd1,_0x4ed888._0x250fcc)](_0x30abb3=>_0x30abb3[_0x5f1e6a(-0x73,-0xd1,-0x7c,-0xd3)])},..._0x258d11['length']===0x1?{'content':_0x258d11[0x0][_0x5f1e6a(-_0x4ed888._0x48e602,_0x4ed888._0x12037f,_0x4ed888._0x21d010,0x4c)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x2e2c91,_0x3c2a3f,_0x47ccf5,_0xd128c1=[]){const _0xee88a1={_0xeebb31:0x1a0,_0x571f6e:0x175,_0x1db458:0x17f,_0x241178:0xeb},_0x5e4bd5={_0x4becd6:0x12e,_0x339269:0x4a9};function _0x4780d1(_0x1dabc7,_0x14fff2,_0x306db2,_0x433221){return _0x2acee8(_0x1dabc7-_0x5e4bd5._0x4becd6,_0x14fff2-0x30,_0x306db2- -_0x5e4bd5._0x339269,_0x1dabc7);}function _0xaa3272(_0x351a70,_0x131ffb,_0x40a25f,_0x4a5ed0){return _0x2acee8(_0x351a70-0x62,_0x131ffb-0x17,_0x40a25f- -0x355,_0x4a5ed0);}return{'callId':_0x2e2c91['id'],'toolName':_0x2e2c91[_0xaa3272(-_0xee88a1._0xeebb31,-_0xee88a1._0x571f6e,-_0xee88a1._0x1db458,-0x18b)],'status':_0xaa3272(-0x136,-0xe5,-0x12b,-_0xee88a1._0x241178),'output':_0x3c2a3f,'structured':_0x47ccf5,'chunks':_0xd128c1,'meta':createToolMeta()};}function createRejectedToolResult(_0x32b61f,_0x176d83){const _0x2fd624={_0x2f9483:0x3,_0x589ec0:0x3c,_0x24bc2d:0x8f,_0x123683:0xb1,_0xaa7660:0x69,_0x2da6ec:0x9c,_0x16b264:0x6d},_0xe66ce2={_0x4fe8b3:0x1ad,_0x5dac3a:0x67,_0x5e79ca:0x232},_0x3575d8={_0x1e9d7d:0x2f7};function _0x23c63a(_0x42aeb4,_0x3b18f6,_0x2cc2be,_0x4fc361){return _0x2acee8(_0x42aeb4-0xc2,_0x3b18f6-0x1a4,_0x2cc2be- -_0x3575d8._0x1e9d7d,_0x4fc361);}const _0x1232f9=_0x176d83?.['trim']()[_0x2e5c51(-0x1e,-_0x2fd624._0x2f9483,-_0x2fd624._0x589ec0,-_0x2fd624._0x24bc2d)]?_0x176d83:_0x23c63a(-_0x2fd624._0x123683,-_0x2fd624._0xaa7660,-_0x2fd624._0x2da6ec,-0x46)+_0x32b61f['name'];function _0x2e5c51(_0x519140,_0x5a036d,_0x31b3fa,_0xa5f235){return _0x2acee8(_0x519140-_0xe66ce2._0x4fe8b3,_0x5a036d-_0xe66ce2._0x5dac3a,_0x31b3fa- -_0xe66ce2._0x5e79ca,_0x5a036d);}return createErrorToolResult(_0x32b61f,_0x1232f9,{'error':'tool_rejected',..._0x176d83?.[_0x23c63a(-0x5d,-0x62,-_0x2fd624._0x16b264,-0x89)]()['length']?{'reason':_0x176d83}:{}});}function createAbortedToolResult(_0x3313b6,_0x383ea1,_0x50844e=[]){const _0x73d62={_0x5e40b4:0x2aa,_0x2b56e5:0x288,_0x15ce69:0x236},_0x4126f9={_0x5b2674:0xa7},_0x271e5b={_0x1fc0b7:0x390,_0x4961ef:0x9e};function _0x5ee74a(_0x34b991,_0x549611,_0x1d88c7,_0x4eb25e){return _0x198dcf(_0x4eb25e- -_0x271e5b._0x1fc0b7,_0x549611-0x5,_0x1d88c7-_0x271e5b._0x4961ef,_0x549611);}const _0x268cdf=toAbortError(_0x383ea1);function _0x1f9e49(_0x52642d,_0x525619,_0x31dbcf,_0x1d7efd){return _0x198dcf(_0x1d7efd- -_0x4126f9._0x5b2674,_0x525619-0x18b,_0x31dbcf-0xa1,_0x31dbcf);}return createErrorToolResult(_0x3313b6,_0x268cdf[_0x5ee74a(-_0x73d62._0x5e40b4,-0x24e,-0x28f,-_0x73d62._0x2b56e5)],{'error':_0x268cdf[_0x5ee74a(-0x26a,-_0x73d62._0x15ce69,-0x297,-0x288)],'aborted':!![]},_0x50844e);}function createSuccessToolResult(_0x1ddacb,_0x1dde80,_0x534551){const _0x1d047d={_0x393fbe:0x362,_0x562ab3:0x34b,_0x518f65:0x39b,_0xedbf6b:0x10a,_0x216e6e:0x152,_0x2b71a6:0x6e,_0x3cc985:0x68,_0x3ad654:0x143,_0x27b714:0xf3,_0x8cd2ec:0x11a},_0xf1716={_0x5e41fa:0xb8,_0x123d4b:0x99},_0x3eb7f7={_0x2760bc:0x2,_0x4f9993:0x1b4,_0x14670b:0x21};function _0x4a2f3e(_0x3a81f5,_0x5c57c2,_0x2ed8c1,_0x120443){return _0x198dcf(_0x120443- -_0x3eb7f7._0x2760bc,_0x5c57c2-_0x3eb7f7._0x4f9993,_0x2ed8c1-_0x3eb7f7._0x14670b,_0x3a81f5);}function _0x423770(_0x3f7764,_0x20860e,_0x42527c,_0x35963c){return _0x198dcf(_0x35963c-0x301,_0x20860e-_0xf1716._0x5e41fa,_0x42527c-_0xf1716._0x123d4b,_0x42527c);}return{'callId':_0x1ddacb['id'],'toolName':_0x1ddacb[_0x423770(_0x1d047d._0x393fbe,_0x1d047d._0x562ab3,_0x1d047d._0x518f65,0x37a)],'status':'ok','output':_0x1dde80[_0x4a2f3e(_0x1d047d._0xedbf6b,0x11e,_0x1d047d._0x216e6e,0xf8)],'structured':_0x1dde80[_0x4a2f3e(_0x1d047d._0x2b71a6,_0x1d047d._0x3cc985,0x3c,0x71)],..._0x1dde80[_0x4a2f3e(_0x1d047d._0x3ad654,0xe2,_0x1d047d._0x27b714,_0x1d047d._0x8cd2ec)]!==void 0x0?{'content':_0x1dde80['content']}:{},'chunks':_0x534551,'meta':createToolMeta()};}function createUnknownToolResult(_0x2e6665){const _0x5db458={_0x3e105e:0x1ac,_0x587db8:0x2af,_0x239507:0x2e1,_0xca8acb:0x236,_0x1d1c6a:0x258,_0x4f3214:0x28a},_0x5e8927={_0x63a45d:0x56,_0x3b1228:0x1f2},_0x3597f6={_0x1fa9e9:0x199,_0x40957b:0x184};function _0x5a17dc(_0x3c9456,_0x11facc,_0x4c5649,_0x439ee7){return _0x198dcf(_0x3c9456- -0x328,_0x11facc-_0x3597f6._0x1fa9e9,_0x4c5649-_0x3597f6._0x40957b,_0x439ee7);}function _0x4c130f(_0x1046b4,_0x55eeea,_0xd12c59,_0x1bc895){return _0x198dcf(_0x1046b4- -0x26c,_0x55eeea-_0x5e8927._0x63a45d,_0xd12c59-_0x5e8927._0x3b1228,_0xd12c59);}return createErrorToolResult(_0x2e6665,_0x4c130f(-0x1c0,-0x165,-_0x5db458._0x3e105e,-0x1f2)+_0x2e6665[_0x5a17dc(-_0x5db458._0x587db8,-_0x5db458._0x239507,-0x257,-0x300)],{'error':_0x5a17dc(-_0x5db458._0xca8acb,-_0x5db458._0x1d1c6a,-0x28f,-_0x5db458._0x4f3214)});}function isDispatchDecision(_0x4c2c81){const _0x31a775={_0x2fdf19:0x420,_0x5ec148:0x463,_0x1f8e16:0x471,_0x51fb34:0x2e0},_0x215511={_0x3e3e50:0x168,_0x50cdb0:0x13,_0x4a5058:0x1d1},_0xa0984d={_0x510126:0x3b1,_0x58c5d1:0x172,_0x425465:0xac};if(typeof _0x4c2c81!==_0xe43f8a(0x3e0,_0x31a775._0x2fdf19,0x412,0x44a)||_0x4c2c81===null)return![];function _0x5d44dd(_0x48739f,_0x366a5d,_0x330f56,_0x4df80e){return _0x198dcf(_0x4df80e- -_0xa0984d._0x510126,_0x366a5d-_0xa0984d._0x58c5d1,_0x330f56-_0xa0984d._0x425465,_0x48739f);}function _0xe43f8a(_0x47a370,_0x521216,_0x586600,_0x1f76e8){return _0x2acee8(_0x47a370-_0x215511._0x3e3e50,_0x521216-_0x215511._0x50cdb0,_0x586600-_0x215511._0x4a5058,_0x47a370);}return _0x4c2c81['action']===_0xe43f8a(0x46b,_0x31a775._0x5ec148,0x459,_0x31a775._0x1f8e16)||_0x4c2c81['action']===_0x5d44dd(-0x32b,-0x310,-_0x31a775._0x51fb34,-0x2d2);}function normalizeExecutionError(_0x26742b){const _0x5e0e5e={_0x49e2f1:0x9e,_0x3110e7:0xfb,_0xa2faa7:0x8f,_0x4afde2:0x34},_0x297538={_0x53a215:0x1dc},_0x2b08f={_0x579ace:0x19c};function _0x4876dd(_0x1b5c55,_0x10f479,_0x230efa,_0xa7a66b){return _0x2acee8(_0x1b5c55-0x157,_0x10f479-0xc3,_0xa7a66b- -_0x2b08f._0x579ace,_0x10f479);}if(_0x26742b instanceof ToolExecutionError)return{'errorMessage':_0x26742b['message'],'structured':{'error':_0x26742b[_0x4876dd(_0x5e0e5e._0x49e2f1,_0x5e0e5e._0x3110e7,0xdc,0xc9)],..._0x26742b[_0x4876dd(0x61,0x45,_0x5e0e5e._0xa2faa7,_0x5e0e5e._0x4afde2)]}};function _0x52a058(_0x34e30d,_0x303998,_0x4c98e5,_0x50bdef){return _0x2acee8(_0x34e30d-_0x297538._0x53a215,_0x303998-0xd9,_0x50bdef- -0xaa,_0x34e30d);}if(_0x26742b instanceof Error)return{'errorMessage':_0x26742b['message'],'structured':{'error':_0x26742b['message']}};const _0xcd36be=String(_0x26742b);return{'errorMessage':_0xcd36be,'structured':{'error':_0xcd36be}};}async function emitEvent(_0x2d8d47,_0xbbcb36,_0x41053d){await _0x2d8d47?.(_0xbbcb36,_0x41053d);}async function resolveDispatchDecision(_0x40a1f8,_0x27a207,_0x319813){const _0x1470ce={_0x1bf83b:0x5d,_0x55a37e:0x7e,_0x11c919:0x4d,_0x210a1e:0x96,_0x4c0454:0xa,_0x1130b3:0x1,_0x1dbc73:0x52,_0x41bd7e:0x8,_0x1f712a:0x44,_0x260617:0x8a,_0x20d22f:0x22,_0x43b9e5:0x7b,_0x5384bf:0x98,_0x22563b:0x12,_0x441fc6:0x66,_0x3c5531:0x7c},_0x2ab47e={_0x310dee:0x2c,_0x297b76:0x432},_0x1a08e8={_0xc6f8fb:0x104,_0x4da35e:0xdb,_0x1f0796:0x17a,_0x211a77:0x153,_0x1bbec1:0x157,_0x52912f:0x123,_0x4b70ed:0x213,_0x3d5207:0x230,_0x3ed4a4:0x1da,_0xf033eb:0x1aa,_0x3da9c7:0x104,_0x7a76d9:0xc5,_0x4b958e:0x17a,_0x4cc614:0x158},_0x5c742f={_0x1a1607:0x1e7,_0x136ed3:0x104};function _0x171fd9(_0x57fa0c,_0x121fb7,_0x487fac,_0xe9d615){return _0x198dcf(_0x487fac- -0x92,_0x121fb7-_0x5c742f._0x1a1607,_0x487fac-_0x5c742f._0x136ed3,_0x121fb7);}if(!_0x40a1f8)return{'action':_0x171fd9(_0x1470ce._0x1bf83b,_0x1470ce._0x55a37e,_0x1470ce._0x11c919,0xab)};const _0x4f017f=Promise[_0x171fd9(_0x1470ce._0x210a1e,0x80,0x7c,0xad)]()[_0x171fd9(0x22,-_0x1470ce._0x4c0454,-0x5,_0x1470ce._0x1130b3)](()=>_0x40a1f8(_0x27a207,_0x319813));if(!_0x319813[_0x171fd9(_0x1470ce._0x1dbc73,-_0x1470ce._0x41bd7e,_0x1470ce._0x1f712a,_0x1470ce._0x260617)]){const _0x1e8155=await _0x4f017f;return isDispatchDecision(_0x1e8155)?_0x1e8155:{'action':'run'};}const _0xaa84e6=new Promise((_0x45ee5a,_0x4bdf01)=>{const _0x376e0f={_0x2bcbcf:0x303},_0x3fb5f8={_0x17c892:0x1a0,_0x2136b9:0x202,_0x29ed8a:0x186,_0x519906:0x1b5,_0x4c5400:0x215,_0x1c6485:0x45d},_0xd0b628={_0x7d2445:0xd5},_0xf0928={_0x2add45:0xd,_0x4054ef:0x39e};function _0x53b130(_0x2920bf,_0x59fd47,_0x34dddb,_0x1506c3){return _0x3b5a7e(_0x2920bf-_0xf0928._0x2add45,_0x59fd47-0xd4,_0x34dddb-_0xf0928._0x4054ef,_0x2920bf);}const _0x45c530=()=>{function _0x300c2a(_0x4c13a1,_0x1a9e91,_0x46937e,_0x4dca96){return _0x33d7(_0x4dca96-_0xd0b628._0x7d2445,_0x46937e);}function _0x4faa31(_0x5e7865,_0x4b2063,_0x32b7e0,_0x68265b){return _0x33d7(_0x68265b-0x374,_0x5e7865);}_0x319813[_0x4faa31(0x3fe,0x3f0,0x48a,0x440)]?.[_0x300c2a(_0x3fb5f8._0x17c892,_0x3fb5f8._0x2136b9,_0x3fb5f8._0x29ed8a,_0x3fb5f8._0x519906)](_0x300c2a(_0x3fb5f8._0x4c5400,0x16e,0x1c1,0x1c6),_0x45c530),_0x4bdf01(toAbortError(_0x319813['signal']?.[_0x4faa31(0x446,_0x3fb5f8._0x1c6485,0x4d9,0x47b)]));};function _0x5016cd(_0x1f9f6d,_0xcaa966,_0x2e86ba,_0x5daf08){return _0x3b5a7e(_0x1f9f6d-0x150,_0xcaa966-0xd9,_0x1f9f6d-_0x376e0f._0x2bcbcf,_0x2e86ba);}if(_0x319813[_0x5016cd(_0x1a08e8._0xc6f8fb,_0x1a08e8._0x4da35e,0xd0,0xd1)]?.[_0x53b130(0x154,0x16f,0x1a4,_0x1a08e8._0x1f0796)]){_0x4bdf01(toAbortError(_0x319813[_0x5016cd(0x104,_0x1a08e8._0x211a77,_0x1a08e8._0x1bbec1,_0x1a08e8._0x52912f)][_0x53b130(_0x1a08e8._0x4b70ed,_0x1a08e8._0x3d5207,_0x1a08e8._0x3ed4a4,_0x1a08e8._0xf033eb)]));return;}_0x319813[_0x5016cd(_0x1a08e8._0x3da9c7,_0x1a08e8._0x7a76d9,0xba,0x116)]?.[_0x53b130(0x174,_0x1a08e8._0x4b958e,_0x1a08e8._0x4cc614,0x17e)](_0x53b130(0x19b,0x1dc,0x1c4,0x174),_0x45c530,{'once':!![]});});function _0x3b5a7e(_0x193490,_0x452b24,_0x36b03b,_0x396e38){return _0x2acee8(_0x193490-_0x2ab47e._0x310dee,_0x452b24-0x5b,_0x36b03b- -_0x2ab47e._0x297b76,_0x396e38);}const _0x20d353=await Promise[_0x171fd9(_0x1470ce._0x20d22f,0x94,_0x1470ce._0x43b9e5,_0x1470ce._0x5384bf)]([_0x4f017f,_0xaa84e6]);return isDispatchDecision(_0x20d353)?_0x20d353:{'action':_0x171fd9(_0x1470ce._0x22563b,_0x1470ce._0x441fc6,0x4d,_0x1470ce._0x3c5531)};}async function executeToolCall(_0x3131b4,_0x12e494,_0x2cd0ed,_0x509822,_0x148f6b){const _0x585e59={_0x3efbbe:0x406,_0x504b71:0x405,_0x105f4c:0x3a8,_0xcd0203:0x3de,_0x3e29cb:0x416,_0x443ea2:0x3b6,_0x461c7e:0x425,_0x50da66:0x3e8,_0x368e73:0x44c,_0x9d1a3c:0x45b,_0xd16a68:0x494,_0x52f3e6:0x45a,_0x314508:0x432,_0x5e903b:0x459,_0x5a235c:0x2fe,_0x32dfcb:0x343,_0x9784b4:0x3bc,_0x5d97ff:0x360,_0x3d2765:0x428,_0x14070b:0x3ff,_0x5854ba:0x3c2,_0x3e6499:0x44b,_0x57bb6d:0x340,_0x327d7b:0x35b,_0xe04873:0x3b9,_0x3163ef:0x308,_0x41fdcc:0x34a,_0x46caa5:0x2f7,_0x25fc60:0x3a2,_0x3ffadd:0x33f,_0x58355f:0x35f,_0x2fa0d2:0x35b,_0x5de913:0x2fd,_0x4342be:0x38a,_0x1a2d43:0x3cc,_0x1991f7:0x3a0,_0x4dd090:0x2e5,_0x202497:0x3d1,_0x5bd8b5:0x3f0,_0x3bd336:0x390,_0x191f69:0x325,_0x5f3545:0x2df,_0x3df25a:0x34f,_0xc97e5e:0x2dd,_0x454195:0x2ff,_0x2d4165:0x2ec,_0x210b65:0x3aa,_0xf91417:0x3bb,_0x3bc010:0x355,_0x5deaa1:0x3b9,_0x94eec8:0x3f5},_0x56206e={_0x2d1679:0x2da,_0x254778:0x321,_0x76cbf9:0x365},_0x3059bf={_0x1d92a4:0x62b,_0x38a41b:0xb5},_0x274cb6={_0x266893:0x285,_0x3b3436:0x14e,_0x36b22e:0xce},_0x1393bc={_0x2109de:0x161,_0x2cf409:0x1d3},_0x77219c={..._0x2cd0ed,'toolCallId':_0x12e494['id']};throwIfAborted(_0x77219c[_0x53ec14(_0x585e59._0x3efbbe,_0x585e59._0x504b71,_0x585e59._0x105f4c,0x411)]);let _0x20cb68;function _0x53ec14(_0x55d079,_0x5d6b77,_0x442a3d,_0x3c239c){return _0x2acee8(_0x55d079-0x12a,_0x5d6b77-_0x1393bc._0x2109de,_0x55d079-_0x1393bc._0x2cf409,_0x442a3d);}try{_0x20cb68=await resolveDispatchDecision(_0x509822,_0x12e494,_0x77219c);}catch(_0x5f37b3){if(isAbortError(_0x5f37b3)){const _0xf2bcdb=createAbortedToolResult(_0x12e494,_0x5f37b3);return await emitEvent(_0x148f6b,{'type':_0x53ec14(0x3aa,0x3f1,0x3ba,_0x585e59._0xcd0203),'toolCall':_0x12e494,'result':_0xf2bcdb},_0x77219c),_0xf2bcdb;}const {errorMessage:_0x84a4d2,structured:_0x5f5c7a}=normalizeExecutionError(_0x5f37b3),_0x1d6eab=createErrorToolResult(_0x12e494,_0x84a4d2,_0x5f5c7a);return await emitEvent(_0x148f6b,{'type':'tool_completed','toolCall':_0x12e494,'result':_0x1d6eab},_0x77219c),_0x1d6eab;}throwIfAborted(_0x77219c[_0x53ec14(0x406,_0x585e59._0x3e29cb,0x3ab,_0x585e59._0x443ea2)]);if(_0x20cb68[_0x53ec14(_0x585e59._0x461c7e,0x41a,_0x585e59._0x50da66,_0x585e59._0x368e73)]===_0x53ec14(_0x585e59._0x9d1a3c,_0x585e59._0xd16a68,_0x585e59._0x52f3e6,0x4b3)){const _0x168277=createRejectedToolResult(_0x12e494,_0x20cb68['reason']);return await emitEvent(_0x148f6b,{'type':'tool_rejected','toolCall':_0x12e494,'result':_0x168277},_0x77219c),_0x168277;}const _0x50f0c1=_0x3131b4[_0x53ec14(_0x585e59._0x314508,_0x585e59._0x5e903b,0x418,0x3e0)](_0x12e494[_0x1d287b(0x2f0,_0x585e59._0x5a235c,_0x585e59._0x32dfcb,0x30a)]);if(!_0x50f0c1){const _0x2fb973=createUnknownToolResult(_0x12e494);return await emitEvent(_0x148f6b,{'type':_0x53ec14(0x3aa,_0x585e59._0x9784b4,_0x585e59._0x5d97ff,0x3aa),'toolCall':_0x12e494,'result':_0x2fb973},_0x77219c),_0x2fb973;}function _0x1d287b(_0x546ada,_0x18197c,_0x47988b,_0x40b2e8){return _0x198dcf(_0x18197c-_0x274cb6._0x266893,_0x18197c-_0x274cb6._0x3b3436,_0x47988b-_0x274cb6._0x36b22e,_0x546ada);}throwIfAborted(_0x77219c[_0x53ec14(_0x585e59._0x3efbbe,_0x585e59._0x3d2765,0x456,0x437)]),await emitEvent(_0x148f6b,{'type':_0x53ec14(_0x585e59._0x14070b,_0x585e59._0x5854ba,0x431,_0x585e59._0x3e6499),'toolCall':_0x12e494},_0x77219c);try{throwIfAborted(_0x77219c[_0x1d287b(_0x585e59._0x57bb6d,_0x585e59._0x327d7b,_0x585e59._0xe04873,0x302)]);const _0x3a6f4a=validateToolInput(_0x12e494[_0x1d287b(_0x585e59._0x3163ef,0x345,0x2f4,0x316)],_0x50f0c1['inputSchema']),_0x52121d=await _0x50f0c1[_0x1d287b(0x337,_0x585e59._0x41fdcc,_0x585e59._0x46caa5,_0x585e59._0x25fc60)](_0x3a6f4a,_0x77219c),_0x5d3789=[],_0x4c2cb5=addAbortListener(_0x77219c[_0x53ec14(_0x585e59._0x3efbbe,0x3fe,0x3ac,0x3aa)],()=>{function _0xc1ac88(_0x311832,_0xfae4c5,_0x5e8c8b,_0x3294a6){return _0x1d287b(_0xfae4c5,_0x5e8c8b- -_0x3059bf._0x1d92a4,_0x5e8c8b-_0x3059bf._0x38a41b,_0x3294a6-0x1cb);}void _0x52121d[_0xc1ac88(-0x354,-_0x56206e._0x2d1679,-_0x56206e._0x254778,-_0x56206e._0x76cbf9)](void 0x0)['catch'](()=>{});});try{throwIfAborted(_0x77219c['signal']);let _0x6321f9=await _0x52121d['next']();while(!_0x6321f9['done']){throwIfAborted(_0x77219c[_0x1d287b(_0x585e59._0x3ffadd,0x35b,0x375,_0x585e59._0x58355f)]);const _0x5a3971=normalizeToolOutputValue(_0x6321f9['value']);_0x5d3789['push'](_0x5a3971),await emitEvent(_0x148f6b,{'type':'tool_output_chunk','toolCall':_0x12e494,'chunk':_0x5a3971},_0x77219c),throwIfAborted(_0x77219c[_0x1d287b(0x320,_0x585e59._0x2fa0d2,0x334,_0x585e59._0x5de913)]),_0x6321f9=await _0x52121d[_0x1d287b(0x347,_0x585e59._0x4342be,_0x585e59._0x1a2d43,_0x585e59._0x1991f7)]();}throwIfAborted(_0x77219c['signal']);const _0x596f10=_0x6321f9[_0x1d287b(0x350,0x326,0x34a,_0x585e59._0x4dd090)]===void 0x0?deriveFinalToolOutput(_0x5d3789):normalizeToolOutputValue(_0x6321f9[_0x53ec14(_0x585e59._0x202497,_0x585e59._0x5bd8b5,_0x585e59._0x3bd336,0x41f)]),_0x56ea03=createSuccessToolResult(_0x12e494,_0x596f10,_0x5d3789);return await emitEvent(_0x148f6b,{'type':_0x1d287b(_0x585e59._0x191f69,0x2ff,_0x585e59._0x5f3545,0x2ce),'toolCall':_0x12e494,'result':_0x56ea03},_0x77219c),_0x56ea03;}catch(_0x358ab9){if(isAbortError(_0x358ab9)){const _0x15b70b=createAbortedToolResult(_0x12e494,_0x358ab9,_0x5d3789);return await emitEvent(_0x148f6b,{'type':_0x53ec14(0x3aa,_0x585e59._0x3df25a,0x407,0x34e),'toolCall':_0x12e494,'result':_0x15b70b},_0x77219c),_0x15b70b;}const {errorMessage:_0x52b151,structured:_0x13ee21}=normalizeExecutionError(_0x358ab9),_0x587017=createErrorToolResult(_0x12e494,_0x52b151,_0x13ee21,_0x5d3789);return await emitEvent(_0x148f6b,{'type':_0x1d287b(_0x585e59._0xc97e5e,_0x585e59._0x454195,0x2f3,_0x585e59._0x2d4165),'toolCall':_0x12e494,'result':_0x587017},_0x77219c),_0x587017;}finally{_0x4c2cb5();}}catch(_0x403dcc){if(isAbortError(_0x403dcc)){const _0x13abaf=createAbortedToolResult(_0x12e494,_0x403dcc);return await emitEvent(_0x148f6b,{'type':_0x53ec14(_0x585e59._0x210b65,_0x585e59._0xf91417,_0x585e59._0x3bc010,_0x585e59._0x5deaa1),'toolCall':_0x12e494,'result':_0x13abaf},_0x77219c),_0x13abaf;}const {errorMessage:_0x6ca3df,structured:_0x2cd059}=normalizeExecutionError(_0x403dcc),_0x41fbb6=createErrorToolResult(_0x12e494,_0x6ca3df,_0x2cd059);return await emitEvent(_0x148f6b,{'type':_0x53ec14(0x3aa,0x3c8,_0x585e59._0x94eec8,0x370),'toolCall':_0x12e494,'result':_0x41fbb6},_0x77219c),_0x41fbb6;}}function createInternalToolRuntime(_0x2fea46=[],_0x5110a1={}){const _0x4fc363={_0x230530:0x1ec},_0x5ce3ca={_0x3df00a:0x306},_0x239240={_0x2e72fd:0x1b3,_0x526b58:0x168,_0x3d062d:0x1b5},_0x28040e={_0x1e57da:0x2ff,_0x26fe6d:0x2a5,_0x1d6715:0x2b2};let _0x2ec9ae=new ToolRegistry(_0x2fea46);return{'listToolSchemas'(){function _0x5ceab8(_0x12fc99,_0x15ad53,_0x36d2c4,_0x369e12){return _0x33d7(_0x15ad53-0x21e,_0x369e12);}return _0x2ec9ae[_0x5ceab8(_0x28040e._0x1e57da,0x2e0,_0x28040e._0x26fe6d,_0x28040e._0x1d6715)]();},'setTools'(_0xc8d42a){_0x2ec9ae=new ToolRegistry(_0xc8d42a);},async 'executeCalls'(_0x3b2267,_0x4d3729){const _0x55a265={_0x2f26b1:0x3c5,_0x4730f7:0x415,_0x4f68cd:0x419,_0x4ef914:0x444};function _0x18e024(_0x1f2494,_0x543822,_0x352398,_0x4ef2be){return _0x33d7(_0x352398- -0x2ab,_0x4ef2be);}return await Promise[_0x18e024(-_0x239240._0x2e72fd,-_0x239240._0x526b58,-0x1be,-_0x239240._0x3d062d)](_0x3b2267['map'](async _0x508602=>{function _0x1b84b4(_0x3e0e65,_0x967d08,_0xa2c23c,_0x826a49){return _0x18e024(_0x3e0e65-0x18d,_0x967d08-0xfd,_0x826a49-0x5bb,_0xa2c23c);}function _0x4e4308(_0x437336,_0xeb0412,_0x4b0b4c,_0x3aa5e0){return _0x18e024(_0x437336-0x3b,_0xeb0412-0x3f,_0x437336-0x44b,_0xeb0412);}return await executeToolCall(_0x2ec9ae,_0x508602,_0x4d3729,_0x5110a1[_0x1b84b4(0x446,_0x55a265._0x2f26b1,0x451,_0x55a265._0x4730f7)],_0x5110a1[_0x1b84b4(_0x55a265._0x4f68cd,_0x55a265._0x4ef914,0x441,0x3f2)]);}));},async 'execute'(_0x28c219,_0x4ee51e){function _0x579182(_0x370e2e,_0x53c46d,_0x382ed7,_0x53f614){return _0x33d7(_0x53f614- -_0x5ce3ca._0x3df00a,_0x53c46d);}const [_0x11ed36]=await this[_0x579182(-0x24b,-0x201,-_0x4fc363._0x230530,-0x21f)]([_0x28c219],_0x4ee51e);return _0x11ed36;}};}function getOrderedObserverExtensions(_0x409f0d,_0x293349){const _0x2aa4fe={_0xfe66b6:0x49,_0x41ae89:0x7},_0x2e399d={_0xccc719:0x295,_0x44a1f5:0x2c8,_0x517bec:0x2a8},_0xa3d12a={_0x5b6c72:0x1e2,_0x485186:0x198},_0x2ae5e4={_0x2af8c1:0x36};function _0x358f67(_0x20f80e,_0x29346c,_0x5a456a,_0x76ba75){return _0x198dcf(_0x20f80e-0x374,_0x29346c-_0x2ae5e4._0x2af8c1,_0x5a456a-0x32,_0x76ba75);}function _0x16e961(_0x657652,_0x2dc34f,_0xe70dea,_0x5d2f63){return _0x2acee8(_0x657652-_0xa3d12a._0x5b6c72,_0x2dc34f-_0xa3d12a._0x485186,_0xe70dea- -0x1e6,_0x2dc34f);}return _0x409f0d['filter'](_0x51a6d7=>{const _0x182630={_0x13505f:0x27};function _0x289b1b(_0x311375,_0x450c3c,_0x1e03ec,_0x11266a){return _0x33d7(_0x11266a-0x1d0,_0x1e03ec);}function _0x2713f4(_0x55fb83,_0x3625ee,_0x328876,_0x22177a){return _0x33d7(_0x328876- -_0x182630._0x13505f,_0x22177a);}return _0x51a6d7[_0x289b1b(_0x2e399d._0xccc719,0x2eb,_0x2e399d._0x44a1f5,_0x2e399d._0x517bec)]!==![]&&_0x51a6d7[_0x2713f4(0xbc,0x14c,0xf1,0xd4)]===_0x293349&&_0x51a6d7['kind']===_0x2713f4(0x10f,0xbf,0xf3,0x124);})[_0x16e961(_0x2aa4fe._0xfe66b6,0x1b,_0x2aa4fe._0x41ae89,-0xa)]((_0x3635c5,_0x575a8d)=>_0x3635c5[_0x358f67(0x40e,0x412,0x45c,0x3b3)]-_0x575a8d['order']);}function _0x33d7(_0x4bdad3,_0x5eab91){_0x4bdad3=_0x4bdad3-0x69;const _0x31065a=_0x3106();let _0x33d716=_0x31065a[_0x4bdad3];if(_0x33d7['fFCfVE']===undefined){var _0xe66ec8=function(_0x1b29ef){const _0x2c7564='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1bd77c='',_0x275c3f='';for(let _0x4cdd2d=0x0,_0x449aca,_0x5c9d5b,_0x46f4c8=0x0;_0x5c9d5b=_0x1b29ef['charAt'](_0x46f4c8++);~_0x5c9d5b&&(_0x449aca=_0x4cdd2d%0x4?_0x449aca*0x40+_0x5c9d5b:_0x5c9d5b,_0x4cdd2d++%0x4)?_0x1bd77c+=String['fromCharCode'](0xff&_0x449aca>>(-0x2*_0x4cdd2d&0x6)):0x0){_0x5c9d5b=_0x2c7564['indexOf'](_0x5c9d5b);}for(let _0x428055=0x0,_0x30d050=_0x1bd77c['length'];_0x428055<_0x30d050;_0x428055++){_0x275c3f+='%'+('00'+_0x1bd77c['charCodeAt'](_0x428055)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x275c3f);};_0x33d7['ccdSTf']=_0xe66ec8,_0x33d7['wWcHhG']={},_0x33d7['fFCfVE']=!![];}const _0x30d80b=_0x31065a[0x0],_0x232722=_0x4bdad3+_0x30d80b,_0x39e191=_0x33d7['wWcHhG'][_0x232722];return!_0x39e191?(_0x33d716=_0x33d7['ccdSTf'](_0x33d716),_0x33d7['wWcHhG'][_0x232722]=_0x33d716):_0x33d716=_0x39e191,_0x33d716;}function getOrderedTransformerExtensions(_0x2c6bd2,_0x14f69f){const _0x5a9186={_0x1f9210:0x1cf},_0x592ec6={_0x1cbe31:0x28c,_0xb4c728:0x261,_0x1326a9:0x219,_0x28af23:0x1f8,_0x54a86a:0x221},_0x4f0bfc={_0x180f38:0x1ca,_0x1a513c:0x12d},_0xa507bd={_0x374b4f:0x35,_0xa68c56:0x13e,_0x1b85ee:0x21},_0x166155={_0x542ca2:0x35};function _0x46854d(_0x34adaf,_0x1006c2,_0x804686,_0x4d867a){return _0x198dcf(_0x4d867a- -0x216,_0x1006c2-0xe4,_0x804686-0xc7,_0x34adaf);}function _0x54a04c(_0x3e3760,_0x350505,_0x4ee14f,_0x3a1086){return _0x2acee8(_0x3e3760-_0x166155._0x542ca2,_0x350505-0xda,_0x350505-0xc5,_0x3e3760);}return _0x2c6bd2[_0x46854d(-0x1f8,-_0x5a9186._0x1f9210,-0x1c5,-0x1a0)](_0x3396e9=>{function _0x2f11c6(_0x42ed18,_0x57e253,_0xf09c81,_0x5e7973){return _0x46854d(_0x57e253,_0x57e253-_0xa507bd._0x374b4f,_0xf09c81-_0xa507bd._0xa68c56,_0x42ed18-_0xa507bd._0x1b85ee);}function _0x469a3f(_0x43d950,_0x5b898b,_0x4871d7,_0x4de328){return _0x46854d(_0x5b898b,_0x5b898b-_0x4f0bfc._0x180f38,_0x4871d7-0xd4,_0x4871d7- -_0x4f0bfc._0x1a513c);}return _0x3396e9[_0x469a3f(-_0x592ec6._0x1cbe31,-0x231,-_0x592ec6._0xb4c728,-0x2b9)]!==![]&&_0x3396e9[_0x469a3f(-_0x592ec6._0x1326a9,-_0x592ec6._0x28af23,-_0x592ec6._0x54a86a,-0x1e6)]===_0x14f69f&&_0x3396e9['kind']===_0x2f11c6(-0x11b,-0x11d,-0x125,-0x15e);})['sort']((_0x79ada1,_0xef756e)=>_0x79ada1[_0x46854d(-0x18f,-0x15a,-0x142,-0x17c)]-_0xef756e[_0x54a04c(0x2d0,0x2bc,0x2d6,0x2be)]);}function createExtensionRegistry(){const _0x1a238e={_0x334a7d:0x340},_0x1b6cea={_0x146ecc:0x235,_0x43a73f:0x23a,_0x3a4aeb:0x218},_0xc59d8={_0x42172b:0x32d},_0x5eb087={_0x5eee78:0x20f,_0xee131d:0x1cc},_0x32792d=[];return{'register'(_0x2ee456){function _0x29c7ae(_0x16d025,_0x5c47b8,_0x4a7869,_0x3f70c7){return _0x33d7(_0x5c47b8-0x149,_0x16d025);}_0x32792d[_0x29c7ae(0x233,_0x5eb087._0x5eee78,0x1b8,_0x5eb087._0xee131d)](_0x2ee456);},async 'runTransformers'(_0x5f166f,_0x1c72df,_0x5087be){function _0x204798(_0x7e372a,_0x2e3f50,_0x1f0fb2,_0x596fcc){return _0x33d7(_0x2e3f50- -_0xc59d8._0x42172b,_0x7e372a);}let _0x494123=_0x1c72df;for(const _0x126557 of getOrderedTransformerExtensions(_0x32792d,_0x5f166f)){_0x494123=await _0x126557[_0x204798(-_0x1b6cea._0x146ecc,-0x258,-_0x1b6cea._0x43a73f,-_0x1b6cea._0x3a4aeb)](_0x494123,_0x5087be);}return _0x494123;},async 'runObservers'(_0x1f21f7,_0x1e806e,_0x1a95a3){const _0x5b3826={_0x12cf84:0x2c4};function _0x14dae2(_0x2a4ff2,_0x6ede5a,_0x10413b,_0x3cdda7){return _0x33d7(_0x10413b-_0x5b3826._0x12cf84,_0x6ede5a);}for(const _0x4343a1 of getOrderedObserverExtensions(_0x32792d,_0x1f21f7)){await _0x4343a1[_0x14dae2(0x368,_0x1a238e._0x334a7d,0x399,0x35c)](_0x1e806e,_0x1a95a3);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function createAgentMetrics(_0x404524={}){const _0x3edf2b={_0x3d768f:0x22b,_0x385d24:0x1ee,_0x563208:0x246},_0x1304db={_0xe46861:0x3b4},_0x57a3be={_0x20787d:0x229,_0xe7bcc7:0x25f,_0x26f2bd:0x29d,_0x2b29b7:0x270,_0x1ff3d2:0x2a2,_0x25a7cb:0x40,_0x2c83c1:0x18,_0x18e122:0x21,_0x34efe7:0x6e,_0x111dc0:0xb0,_0xb1d14:0x228,_0x19e1c2:0x27f,_0x1c71a7:0x234,_0xd64027:0x7,_0x2873f6:0x1,_0x516d57:0x38,_0x5a7ddb:0x200,_0x8f1627:0x226,_0x59fb46:0x56,_0x333375:0x2d,_0x440f51:0x73,_0x1befa3:0x1fe,_0xb03455:0x25c,_0x4c6755:0x29e,_0x46f82b:0x276,_0x4e2797:0x2a6,_0x1f9eb7:0x29c,_0x1eec48:0x88,_0x75fd54:0x235,_0x18f885:0x1f7,_0x1095ff:0x26c,_0x4ce796:0x23b,_0x5ded82:0x219,_0xc156c7:0x254,_0xa97fc3:0x250,_0xcfb977:0x248,_0x1ee736:0x2df,_0x148768:0x2b8,_0x20476f:0x3,_0x248f45:0x3b,_0x2f7017:0x1dd,_0x2e5926:0x1eb,_0x20b4ee:0x1e9};let _0x12cf28=createEmptySnapshot();const _0x5d9399=new Set();let _0x244855;const _0x15c1a1=()=>{const _0x25f44f={..._0x12cf28};for(const _0x16f860 of _0x5d9399)_0x16f860(_0x25f44f);};return{'getSnapshot'(){return{..._0x12cf28};},'recordEvent'(_0x13f8c6){if(_0x13f8c6[_0x274aea(-_0x57a3be._0x20787d,-_0x57a3be._0xe7bcc7,-0x23e,-0x236)]===_0x274aea(-_0x57a3be._0x26f2bd,-_0x57a3be._0x2b29b7,-_0x57a3be._0x1ff3d2,-0x2ab)){_0x244855=Date[_0x274aea(-_0x57a3be._0x26f2bd,-0x245,-0x218,-0x252)]();const _0x1bc675=_0x404524[_0x72bf68(-_0x57a3be._0x25a7cb,_0x57a3be._0x2c83c1,-_0x57a3be._0x18e122,-0x4)]?.(_0x13f8c6['request']);_0x1bc675!==void 0x0&&(_0x12cf28={..._0x12cf28,'contextWindowLimit':_0x1bc675},_0x15c1a1());return;}function _0x274aea(_0x87c4ce,_0x84d716,_0x557e8b,_0x3450b0){return _0x33d7(_0x3450b0- -0x336,_0x557e8b);}function _0x72bf68(_0x5b554c,_0x19b4d2,_0x380f33,_0x2b1a07){return _0x33d7(_0x5b554c- -0xfd,_0x2b1a07);}if(_0x13f8c6['type']===_0x72bf68(-0x6f,-0x90,-_0x57a3be._0x34efe7,-0x9b)){const _0x450ddd=_0x13f8c6[_0x72bf68(-0x8a,-0x34,-0xd6,-_0x57a3be._0x111dc0)][_0x274aea(-_0x57a3be._0xb1d14,-0x247,-_0x57a3be._0x19e1c2,-_0x57a3be._0x1c71a7)][_0x72bf68(-_0x57a3be._0xd64027,0x4e,-_0x57a3be._0x2873f6,-_0x57a3be._0x516d57)],_0x2c1f44=_0x13f8c6['response']['usage'][_0x274aea(-0x27c,-_0x57a3be._0x5a7ddb,-0x269,-_0x57a3be._0x8f1627)],_0x20a2fe=_0x13f8c6['response'][_0x72bf68(0x5,-0x48,-0xc,_0x57a3be._0x59fb46)][_0x72bf68(-0x1e,-_0x57a3be._0x333375,-_0x57a3be._0x440f51,-0x3)]??0x0,_0x45179e=_0x450ddd+_0x2c1f44,_0x55d1fa=_0x244855===void 0x0?0x0:Date[_0x274aea(-_0x57a3be._0x1befa3,-_0x57a3be._0xb03455,-0x1f5,-0x252)]()-_0x244855;_0x244855=void 0x0,_0x12cf28={..._0x12cf28,'totalTokens':_0x12cf28['totalTokens']+_0x45179e,'totalInputTokens':_0x12cf28[_0x274aea(-_0x57a3be._0x4c6755,-_0x57a3be._0x46f82b,-_0x57a3be._0x4e2797,-_0x57a3be._0x1f9eb7)]+_0x450ddd,'totalOutputTokens':_0x12cf28[_0x72bf68(-_0x57a3be._0x1eec48,-0xcc,-0xd4,-0x34)]+_0x2c1f44,'totalReasoningTokens':_0x12cf28[_0x274aea(-_0x57a3be._0x75fd54,-_0x57a3be._0x18f885,-0x1d8,-0x212)]+_0x20a2fe,'modelCallCount':_0x12cf28['modelCallCount']+0x1,'totalModelTimeMs':_0x12cf28[_0x274aea(-0x1da,-0x25e,-_0x57a3be._0x1095ff,-0x229)]+_0x55d1fa,'currentTokens':_0x45179e,'currentInputTokens':_0x450ddd,'currentOutputTokens':_0x2c1f44,'currentReasoningTokens':_0x20a2fe,'currentModelTimeMs':_0x55d1fa,..._0x12cf28['contextWindowLimit']&&_0x45179e>0x0?{'contextWindowUsage':_0x45179e/_0x12cf28[_0x274aea(-0x2c7,-0x27f,-0x2fa,-0x2a3)]}:{}},_0x15c1a1();return;}if(_0x13f8c6[_0x274aea(-_0x57a3be._0x4ce796,-0x26f,-_0x57a3be._0x5ded82,-0x236)]===_0x274aea(-_0x57a3be._0xc156c7,-_0x57a3be._0xa97fc3,-_0x57a3be._0xcfb977,-0x284)){_0x12cf28={..._0x12cf28,'toolCallCount':_0x12cf28[_0x274aea(-0x2b8,-_0x57a3be._0x1ee736,-_0x57a3be._0x148768,-0x2ad)]+0x1},_0x15c1a1();return;}_0x13f8c6[_0x72bf68(_0x57a3be._0x20476f,0x5f,-_0x57a3be._0x248f45,-0x50)]==='turn_complete'&&(_0x12cf28={..._0x12cf28,'requestCount':_0x12cf28[_0x274aea(-_0x57a3be._0x2f7017,-_0x57a3be._0x2e5926,-_0x57a3be._0x20b4ee,-0x22a)]+0x1},_0x15c1a1());},'reset'(){_0x12cf28=createEmptySnapshot(),_0x244855=void 0x0,_0x15c1a1();},'subscribe'(_0x178950){const _0x4ea3a1={_0x46e481:0x539};function _0x2d569d(_0x4c1235,_0x56281c,_0x236e49,_0x444490){return _0x33d7(_0x444490- -_0x1304db._0xe46861,_0x4c1235);}return _0x5d9399[_0x2d569d(-0x34f,-0x360,-0x35e,-0x322)](_0x178950),()=>{function _0xc1120d(_0x345399,_0x30aa39,_0x2c8b0c,_0x41481e){return _0x2d569d(_0x345399,_0x30aa39-0xb9,_0x2c8b0c-0x36,_0x41481e-_0x4ea3a1._0x46e481);}_0x5d9399[_0xc1120d(_0x3edf2b._0x3d768f,_0x3edf2b._0x385d24,_0x3edf2b._0x563208,0x207)](_0x178950);};}};}function makeExtensionContext(_0x1455dd){return{'state':_0x1455dd};}async function runStage(_0x5323fe,_0x1fb2c9,_0x178b3c,_0x1e5692){const _0x4a0573={_0x26ef3d:0x2b5},_0x1f9477={_0x1e6757:0x3b2,_0x1a2c26:0x7,_0x9e246d:0xab},_0x588344=await _0x5323fe[_0x3a5e23(-_0x4a0573._0x26ef3d,-0x26d,-0x30c,-0x264)](_0x1fb2c9,_0x178b3c,_0x1e5692);function _0x3a5e23(_0x6736e8,_0x211a98,_0x5a2698,_0x3595e7){return _0x198dcf(_0x6736e8- -_0x1f9477._0x1e6757,_0x211a98-_0x1f9477._0x1a2c26,_0x5a2698-_0x1f9477._0x9e246d,_0x3595e7);}return await _0x5323fe['runObservers'](_0x1fb2c9,_0x588344,_0x1e5692),_0x588344;}async function emitEvent2(_0x2b9868,_0x2a40d6,_0x5ed783){await _0x2b9868?.(_0x2a40d6,_0x5ed783);}function replaceToolUseBlocks(_0xb0b329,_0x199c24){const _0x1f52ce={_0x203a77:0x2a},_0x15cd32={_0x1fd69b:0x6},_0x26e5be={_0x395e7b:0x27e,_0x330125:0x157};function _0x3cadf6(_0x3bef59,_0x335118,_0x3543a2,_0x5c5f0f){return _0x198dcf(_0x5c5f0f-_0x26e5be._0x395e7b,_0x335118-_0x26e5be._0x330125,_0x3543a2-0xf8,_0x3543a2);}let _0x46c651=0x0;function _0x262fbe(_0x5b9e4c,_0x525091,_0xf0d0d1,_0x2ff911){return _0x198dcf(_0x2ff911-_0x15cd32._0x1fd69b,_0x525091-0x115,_0xf0d0d1-0x27,_0xf0d0d1);}return{..._0xb0b329,'content':_0xb0b329[_0x3cadf6(0x3e9,0x3bf,0x3a3,0x39a)][_0x262fbe(0x123,0xce,0xfe,0x107)](_0x592680=>{function _0x300e62(_0x5221fd,_0x345923,_0x5bb248,_0x22532e){return _0x3cadf6(_0x5221fd-_0x1f52ce._0x203a77,_0x345923-0x46,_0x5221fd,_0x22532e-0xd2);}if(_0x592680[_0x300e62(0x473,0x409,0x4a4,0x45a)]!=='tool_use')return _0x592680;const _0x1c47a3=_0x199c24[_0x46c651];return _0x46c651+=0x1,structuredClone(_0x1c47a3);})};}function createAssistantMessageId(_0x3452a4,_0x2351a7){const _0x1b9926={_0x38ab88:0x21,_0x1961b0:0x2d,_0x4e7f01:0x21},_0x5f3ef1={_0x50aa1b:0x1f,_0x31c1bd:0x242};function _0x32daa8(_0x424760,_0x19b5b1,_0x26badd,_0x4e78e8){return _0x2acee8(_0x424760-0x22,_0x19b5b1-_0x5f3ef1._0x50aa1b,_0x26badd- -_0x5f3ef1._0x31c1bd,_0x424760);}return _0x3452a4+_0x32daa8(0x2d,-_0x1b9926._0x38ab88,-_0x1b9926._0x1961b0,_0x1b9926._0x4e7f01)+_0x2351a7;}function createReasoningMessageId(_0x3be6b3){const _0x5d0d5c={_0x1247f5:0x221,_0x2a52ff:0x243,_0x37ebc8:0x255},_0x2585f4={_0x2690ca:0x16d,_0x3cdb66:0xd};function _0x570e8a(_0x2d8d99,_0x4e4cab,_0x20d710,_0x850bfd){return _0x2acee8(_0x2d8d99-0xde,_0x4e4cab-_0x2585f4._0x2690ca,_0x4e4cab-_0x2585f4._0x3cdb66,_0x2d8d99);}return _0x3be6b3+_0x570e8a(_0x5d0d5c._0x1247f5,_0x5d0d5c._0x2a52ff,0x2a0,_0x5d0d5c._0x37ebc8);}function _0x198dcf(_0x1e7e2c,_0x1924e1,_0x5b6651,_0x74388d){return _0x33d7(_0x1e7e2c-0xa,_0x74388d);}function withMessageId(_0x14867d,_0x39955c){if(_0x14867d['id']===_0x39955c)return _0x14867d;return{..._0x14867d,'id':_0x39955c};}function _0x3106(){const _0x1b2b53=['C3rYzwfTAw5N','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Dg90ywXjBNb1DfrVA2vUCW','zgvSDge','Dg9tDhjPBMC','CMfUzg9T','Dg9VBf9Yzxn1Bhq','oda0otbZBgfRtNK','otH2qMPor2C','Aw5WDxrty2HLBwe','vw5RBM93BIb0B29SoIa','CMvXDwLYzwq','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','ywz0zxjuB29SuMvZDwX0','BgLZDa','Dg9VBf91C2vFzgvSDge','B3v0Chv0sw5KzxG','Bwv0CMLJCW','mZGXndmWnfbevgHHvW','Dg9VBf91C2vFBwvZC2fNzq','y2f1C2u','nZq1mhr6wK96uW','oMfZC2LZDgfUDdO','CMvHC29UAw5Nq29TCgXLDgvKqxq','nda2nJjLCvjHuvG','yMvMB3jLtw9KzwXszxf1zxn0','Dg9VBf9JywXS','zg9Uzq','nZuYnJvVuNf3uum','ChjVDMLKzxi','Aw5WDxq','sw52ywXPzcb0B29SigLUChv0igf0ia','oIbLEhbLy3rLzcbZDhjPBMC','BNvTyMvY','y29TCgXLDgu','zxHLy3v0zq','zw50CMLLCW','z2v0q29UDgv4DfDPBMrVD0XPBwL0','CMvHC29UAw5Nx2nODw5R','DhvYBL9JB21WBgv0zq','mteWodm3ntrOBfbZD2W','DhvYBKLUzgv4','BgLZDfrVB2Xty2HLBwfZ','zxjYB3i','yxjYyxK','Dg9VBf9ZDgfYDgvK','ChvZAa','C3rYAw5NAwz5','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','yxnZAxn0yw50x2nODw5R','B25vC2vYtwvZC2fNzq','DhvYBKnVBxbSzxrLzef0','C2LNBMfS','DxnLCL9TzxnZywDL','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','oNjLyxnVBMLUzW','DhjHBNnMB3jTzxi','ywjVCNrLza','C3rYzwfT','mtHMqwzXy2u','y29UDgvUDf9KzwX0yq','CNvU','Dg9VBfj1BNrPBwu','Dgv4Da','zw5HyMXLza','Dg9VBhm','B2jQzwn0','CMvNAxn0zxi','ywz0zxjnzxnZywDLqxbWzw5K','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','C3vTBwfYEuLUzgv4','CMvHC29UAw5Nvg9Rzw5Z','CMvTB3zLrxzLBNrmAxn0zw5LCG','AxnbCNjHEq','B25fDMvUDa','DhvYBI0','BM93','z2v0vg9VBhm','oIbLEhbLy3rLzcbHCNjHEq','zxHLy3v0zunHBgXZ','Dw5RBM93BL90B29S','CMvHC29UAw5Nu3rHCNrLzef0','DhvYBKLK','ywn0Aw9U','CMvJB3jKrxzLBNq','ywXS','AM9PBG','C2v0vg9VBhm','B3v0Chv0','ywjVCNq','C29Tzq','CNvUvhjHBNnMB3jTzxjZ','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','AxrLBuLK','Aw5WDxruB2TLBNm','BwfW','z2v0','yMvMB3jLvg9VBev4zwn1DgLVBG','mty1mdK4qLLVCuLx','BMv4Da','C3LZDgvT','C3rYAw5N','BwvZC2fNzq','C2vUza','DhLWzq','yxnRvxnLCG','DxnHz2u','CMfJzq','CMvZB2X2zq','B25uB29Sq2fSBa','vg9VBev4zwn1DgLVBKvYCM9Y','CMvHC29U','Dg9VBhncEu5HBwu','Dg9VBfjLC3vSDhm','oIbLEhbLy3rLzcbVyMPLy3q','x3n5C3rLBvbYB21WDa','CMvXDwvZDenVDw50','Dg90ywXnB2rLBfrPBwvnCW','CMvNAxn0CNK','oIbLEhbLy3rLzcbUDw1Izxi','B3v0Chv0vg9Rzw5Z','BwvZC2fNzxm','y29UDgvUDa','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','BgfZDfjLC3bVBNnL','yM9VBgvHBG','B3v0Chv0rM9YBwf0','Aw5WDxrezwX0yq','C3rHz2u','ChjVCgvYDgLLCW','B2jZzxj2zxi','C2v0u3LZDgvTuhjVBxb0','CMvZzxrnzxnZywDLCW','CNvUt2jZzxj2zxjZ','zgvWCW','zM9YrwfJAa','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','CMvQzwn0','Aw5KzxG','DhjPBq','Dg90ywXszwfZB25PBMDuB2TLBNm','C3rYDwn0DxjLza','C2XPy2u','ChjVDMLKzxjtDgf0zq','zMLSDgvY','nJaYmu9RzMTorW','ywz0zxjnB2rLBfjLC3bVBNnL','BMfTzq','Dg9VBf9JB21WBgv0zwq','C3LZDgvTuhjVBxb0','Bw9KzwXjzgvUDgL0Eq','CMvZCg9UC2u','Bwf4vg9Rzw5Z','Dg90ywXpDxrWDxruB2TLBNm','C2v0q2HHDe1VzgvS','y29TCgXLDgvK','y2HHDe1VzgvS','Dg9VBf91C2vFy2H1BMS','C2vZC2LVBI0','CMv0DxjU','C2vZC2LVBKLK','C3rHDgu','zxH0zw5ZAw9UCW','DxnLCG','zgvMyxvSDe1LC3nHz2u','Bw9KzwW','zgvSzxrL','DgHLBG','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','ywrKrxzLBNrmAxn0zw5LCG','C29YDa','C2vZC2LVBKrPCG','C2v0vg9WAwm','Dg9VBenHBgXdB3vUDa','y29UDgvUDeLUzgv4','Bw9KzwXFCMvXDwvZDa','yxnZAxn0yw50twvZC2fNzuLK','zNvUy3rPB24','Bw9KzwXFCMvZCg9UC2u','BgvUz3rO','B3jKzxi','DgHPBMTPBMC','ywrK','y29UDgv4DfDPBMrVD0XPBwL0','Bwv0yq','mtj2rw9Yr1q','ywz0zxjuDxjUq29TCgXLDgu','DMfSDwu'];_0x3106=function(){return _0x1b2b53;};return _0x3106();}function createAssistantChunkEvent(_0x5168f4,_0x98be88){const _0x29d93f={_0x3efea5:0x3c,_0x515b80:0x13,_0x366ee3:0x48,_0x1db247:0x48,_0x21952c:0x55,_0x5abfeb:0x289,_0x5573e3:0x2c3,_0x4ef24d:0x3f,_0x53395f:0x4c,_0x4cb2ca:0x89,_0x4b9777:0x82},_0x1fdfea={_0x435718:0xa2},_0x107e7a={_0x3658eb:0x13c,_0x51ddbd:0x4e};if(_0x5168f4['type']!==_0x3a7cda(_0x29d93f._0x3efea5,0x9a,-_0x29d93f._0x515b80,_0x29d93f._0x366ee3))return void 0x0;function _0x5b923c(_0x5b66d6,_0xb4ae8a,_0x244b14,_0x2ea297){return _0x2acee8(_0x5b66d6-0x5c,_0xb4ae8a-_0x107e7a._0x3658eb,_0x244b14-_0x107e7a._0x51ddbd,_0xb4ae8a);}if(_0x5168f4[_0x3a7cda(0x3f,0x91,_0x29d93f._0x1db247,-0x6)]===void 0x0)return void 0x0;function _0x3a7cda(_0xd4bdba,_0x7e180f,_0x78ced6,_0x2138bc){return _0x198dcf(_0xd4bdba- -_0x1fdfea._0x435718,_0x7e180f-0x4a,_0x78ced6-0x4f,_0x2138bc);}return{'type':_0x5b923c(0x25a,0x239,0x27e,0x22b),'index':_0x5168f4[_0x3a7cda(0x8a,0xd0,0x97,_0x29d93f._0x21952c)]??0x0,'messageId':_0x98be88,'chunk':{'type':_0x5b923c(0x23e,0x26a,_0x29d93f._0x5abfeb,0x247),'index':_0x5168f4[_0x5b923c(0x2fe,_0x29d93f._0x5573e3,0x2d7,0x2d6)]??0x0,'text':_0x5168f4[_0x3a7cda(_0x29d93f._0x4ef24d,_0x29d93f._0x53395f,_0x29d93f._0x4cb2ca,_0x29d93f._0x4b9777)]}};}function createToolUseChunkEvent(_0x374334,_0x3ea762){const _0x1a3148={_0x339372:0x61,_0xf8f2c4:0xd5,_0xd7ddb9:0x9c,_0x28543a:0x55,_0x43afaf:0x9d,_0x3dc481:0x6e,_0x38e4dc:0x91,_0x1cf0cf:0xe4,_0x5e6ac2:0x117,_0x4aa5fb:0x107,_0x33cfa3:0xe6,_0x4a61e9:0xe3,_0x2f0b2e:0x111,_0x4b8192:0x21a,_0x174c1a:0x1ca,_0xe44f3e:0x230,_0x240b69:0x1e7,_0x2991d5:0xb9,_0x42bf3f:0x157,_0x5c2a1f:0x10c,_0x21766e:0xb6},_0x1c7f6d={_0x50194c:0x15e},_0x25f8a6={_0x59537d:0xc4};if(_0x374334['type']!==_0x2b30c5(_0x1a3148._0x339372,_0x1a3148._0xf8f2c4,_0x1a3148._0xd7ddb9,_0x1a3148._0x28543a))return void 0x0;function _0xe58cf8(_0x479193,_0x1b65fa,_0x57187e,_0x4f1f4a){return _0x198dcf(_0x57187e-0x16e,_0x1b65fa-_0x25f8a6._0x59537d,_0x57187e-0x170,_0x1b65fa);}function _0x2b30c5(_0x1fb61b,_0x2c806a,_0x50f526,_0x29d225){return _0x198dcf(_0x50f526- -0x15,_0x2c806a-_0x1c7f6d._0x50194c,_0x50f526-0x1d1,_0x29d225);}return{'type':_0x2b30c5(0x76,_0x1a3148._0x43afaf,_0x1a3148._0x3dc481,_0x1a3148._0x38e4dc),'index':_0x374334[_0x2b30c5(0x109,_0x1a3148._0x1cf0cf,_0x1a3148._0x5e6ac2,_0x1a3148._0x4aa5fb)]??0x0,'messageId':_0x3ea762,'chunk':{'type':_0x2b30c5(0x3f,_0x1a3148._0x33cfa3,0x9c,0x70),'id':_0x374334['id']??'','index':_0x374334[_0x2b30c5(_0x1a3148._0x4a61e9,0xe3,0x117,_0x1a3148._0x2f0b2e)]??0x0,..._0x374334[_0xe58cf8(_0x1a3148._0x4b8192,0x242,0x1e7,0x1cb)]!==void 0x0?{'name':_0x374334[_0xe58cf8(_0x1a3148._0x174c1a,_0x1a3148._0xe44f3e,_0x1a3148._0x240b69,0x1b0)]}:{},..._0x374334[_0x2b30c5(_0x1a3148._0x2991d5,_0x1a3148._0x42bf3f,_0x1a3148._0x5c2a1f,_0x1a3148._0x21766e)]!==void 0x0?{'inputDelta':_0x374334['inputDelta']}:{}}};}function createReasoningChunkEvent(_0x4ad0db,_0x57c74e){const _0x79de8b={_0x286df6:0xb0,_0x5d1da9:0x8a,_0x2dd24e:0xec,_0x34397e:0x67,_0x48cd04:0xac,_0x1a5dc6:0xc1,_0x318905:0x1eb,_0x27fa5:0x209,_0x5d35ef:0x56,_0x315584:0xe8,_0x58e2c6:0x12e,_0x36779d:0x18f,_0xb8b527:0x144,_0x6ef992:0x126,_0x215001:0x141,_0x20e66f:0x117,_0x390981:0x1b8,_0x1a8f43:0xd9,_0x30d330:0xb3,_0xe8b034:0x110,_0x59d461:0x10b,_0x432e93:0x98,_0x59eda6:0xe4,_0x44df56:0x176,_0x5c34d8:0x14a,_0xfcb57b:0x111,_0x10607b:0x133,_0x47dbf8:0x190,_0x4eeadd:0x132,_0x4dc288:0x107,_0x30bde1:0x25a,_0x38a869:0x21a,_0x364913:0x200},_0x256d7b={_0x11a0f5:0x140};function _0x55a8cc(_0x336df3,_0x5e04ac,_0x2b388c,_0x27f3a1){return _0x198dcf(_0x27f3a1-0x118,_0x5e04ac-_0x256d7b._0x11a0f5,_0x2b388c-0x183,_0x336df3);}function _0x151d74(_0x393eb1,_0x287eb5,_0x3e9f16,_0x2ca7ba){return _0x198dcf(_0x287eb5- -0x1d8,_0x287eb5-0x27,_0x3e9f16-0x10f,_0x393eb1);}switch(_0x4ad0db[_0x151d74(-_0x79de8b._0x286df6,-0xce,-_0x79de8b._0x5d1da9,-0x118)]){case _0x151d74(-0x64,-0xbb,-_0x79de8b._0x2dd24e,-_0x79de8b._0x34397e):return{'type':_0x55a8cc(0x1ec,0x1db,0x1b1,0x1e0),'index':_0x4ad0db[_0x151d74(-0xaf,-_0x79de8b._0x48cd04,-0xb2,-_0x79de8b._0x1a5dc6)],'messageId':_0x57c74e,'chunk':{'type':_0x55a8cc(0x284,_0x79de8b._0x318905,_0x79de8b._0x27fa5,0x235),'index':_0x4ad0db[_0x151d74(-_0x79de8b._0x5d35ef,-0xac,-0xfc,-0xdd)]??0x0,'thinking':_0x4ad0db[_0x151d74(-0x11c,-0x13d,-0x160,-_0x79de8b._0x315584)]??''},'text':_0x4ad0db['thinking']??''};case'openai_reasoning_delta':return{'type':_0x151d74(-_0x79de8b._0x58e2c6,-0x110,-0x157,-0xfc),'index':_0x4ad0db[_0x151d74(-_0x79de8b._0x36779d,-_0x79de8b._0xb8b527,-0x16a,-0x178)],'messageId':_0x57c74e,'chunk':{'type':_0x151d74(-0xfa,-0x135,-_0x79de8b._0x6ef992,-_0x79de8b._0x215001),'contentIndex':_0x4ad0db[_0x151d74(-_0x79de8b._0x20e66f,-0x144,-0x18e,-0x172)]??0x0,'delta':_0x4ad0db[_0x55a8cc(0x170,_0x79de8b._0x390981,0x1cd,0x1bd)]??'','itemId':_0x4ad0db[_0x151d74(-0xb7,-_0x79de8b._0x1a8f43,-_0x79de8b._0x30d330,-0x90)]??'','outputIndex':_0x4ad0db['outputIndex']??0x0},'text':_0x4ad0db[_0x55a8cc(0x1ac,0x160,0x16c,0x1bd)]??''};case'openai_reasoning_summary_delta':return{'type':_0x151d74(-0xb6,-_0x79de8b._0xe8b034,-_0x79de8b._0x59d461,-0xde),'index':_0x4ad0db[_0x151d74(-0xe7,-0xf0,-_0x79de8b._0x432e93,-_0x79de8b._0x59eda6)],'messageId':_0x57c74e,'chunk':{'type':_0x151d74(-_0x79de8b._0x44df56,-_0x79de8b._0x5c34d8,-0x112,-0x17a),'delta':_0x4ad0db[_0x151d74(-_0x79de8b._0xfcb57b,-_0x79de8b._0x10607b,-0x18a,-_0x79de8b._0x47dbf8)]??'','itemId':_0x4ad0db[_0x151d74(-0x111,-0xd9,-_0x79de8b._0x48cd04,-_0x79de8b._0x4eeadd)]??'','outputIndex':_0x4ad0db[_0x151d74(-_0x79de8b._0x4dc288,-_0x79de8b._0x6ef992,-0x172,-0x12a)]??0x0,'summaryIndex':_0x4ad0db[_0x55a8cc(_0x79de8b._0x30bde1,0x1c0,_0x79de8b._0x38a869,_0x79de8b._0x364913)]??0x0},'text':_0x4ad0db['delta']??''};default:return void 0x0;}}function isAbortedToolResult(_0x5976b3){const _0x2ab993={_0x130154:0x16,_0x278d84:0x60},_0x54bb7d={_0x63b75a:0x36,_0x227f74:0x19,_0xe69d11:0x1d8},_0x3c0730={_0x40a794:0x1b5,_0x5b630f:0x8};function _0x469ef1(_0x472dbd,_0x3c433b,_0x38a6ee,_0x4d0541){return _0x2acee8(_0x472dbd-_0x3c0730._0x40a794,_0x3c433b-_0x3c0730._0x5b630f,_0x4d0541- -0x144,_0x38a6ee);}function _0x2003db(_0x1cce67,_0x3d6d9c,_0x525d65,_0x5ca1f5){return _0x2acee8(_0x1cce67-_0x54bb7d._0x63b75a,_0x3d6d9c-_0x54bb7d._0x227f74,_0x3d6d9c- -_0x54bb7d._0xe69d11,_0x5ca1f5);}return _0x5976b3['status']===_0x2003db(_0x2ab993._0x130154,0x52,0x1c,0xa2)&&_0x5976b3['structured'][_0x2003db(0x70,_0x2ab993._0x278d84,0x22,0x8f)]===!![];}async function executeModelRequest(_0x56ae3e,_0x5f3150,_0x187f46,_0x393275,_0x3e6ed4,_0x267064){const _0x5a0a29={_0xb93cf9:0x334,_0x498f7d:0x2fe,_0x49aa70:0x35b,_0x196dbc:0x2b4,_0x106acf:0x34f,_0x3dc841:0x2f2,_0x56a2da:0x32c,_0x4708bf:0x322,_0xafd251:0x2f8,_0x5688f5:0x304,_0x28e718:0x2df,_0x36915e:0x2e7,_0x273dd0:0x2e2,_0x34337e:0x32f,_0xbcec68:0x342,_0xb3971:0x367,_0x1d5b03:0x2ef,_0x46dfd5:0x2f0,_0x418d95:0x2fc,_0x38674d:0x343,_0x268620:0x2c6,_0x595f5c:0x309,_0xc10ee5:0x345,_0x217554:0x2e5,_0x3c714e:0x2ca,_0x244ed7:0x2cf,_0xa3e70d:0x34c,_0x41e562:0x36a,_0x5238e9:0x2a1,_0x12b912:0x262,_0x55c397:0x368,_0x15e674:0x391,_0x2baa2d:0x34e,_0x401484:0x292,_0x59b597:0x2d8,_0x2c2a75:0x2de,_0x9d4321:0x37e,_0x2bc8fc:0x306,_0x13d6fa:0x351,_0x3f1a9e:0x32d,_0x20e57a:0x2e6,_0x2ed4f9:0x302,_0x1526e0:0x2f4,_0x31b989:0x2af,_0x4a842c:0x343,_0x2e3d56:0x2fc,_0x164e08:0x350,_0x5c9422:0x351,_0x35f82b:0x325,_0x387b6:0x303,_0x3f11c8:0x339,_0x3566e2:0x2cc,_0x32e25d:0x2f7,_0x43a26e:0x317,_0x4251c9:0x2d8,_0x425f5b:0x285,_0x50492b:0x297,_0x44d755:0x2a7,_0x282b6b:0x390,_0x5248c3:0x30e,_0x1486de:0x250,_0x3313ea:0x2c9,_0x274a58:0x2ac,_0x1f2fae:0x2a4,_0x446476:0x351,_0x270224:0x302,_0x32c4b1:0x35c},_0x3f9a5e={_0x1967e4:0x25e},_0x28e659={_0x361cf1:0x216,_0x20ab2a:0x6e,_0x38a189:0x18};throwIfAborted(_0x5f3150[_0x46f299(0x2f8,_0x5a0a29._0xb93cf9,_0x5a0a29._0x498f7d,_0x5a0a29._0x49aa70)]);function _0x5df628(_0x4b587b,_0x2285f8,_0x2474f2,_0xbab49f){return _0x198dcf(_0x2474f2-_0x28e659._0x361cf1,_0x2285f8-_0x28e659._0x20ab2a,_0x2474f2-_0x28e659._0x38a189,_0x2285f8);}if(!_0x5f3150['streaming']||!_0x187f46[_0x5df628(_0x5a0a29._0x196dbc,_0x5a0a29._0x106acf,_0x5a0a29._0x3dc841,0x2d5)])return await _0x187f46[_0x46f299(_0x5a0a29._0x56a2da,_0x5a0a29._0x4708bf,0x325,_0x5a0a29._0xafd251)](_0x56ae3e,{'signal':_0x5f3150[_0x46f299(_0x5a0a29._0x5688f5,0x334,0x38a,_0x5a0a29._0x28e718)]});let _0x339df2;for await(const _0x58ba45 of _0x187f46[_0x5df628(0x295,0x2e1,0x2f2,0x314)](_0x56ae3e,{'signal':_0x5f3150[_0x46f299(0x37e,0x334,_0x5a0a29._0x36915e,_0x5a0a29._0x273dd0)]})){throwIfAborted(_0x5f3150[_0x46f299(0x2df,0x334,_0x5a0a29._0x34337e,0x38a)]);if(_0x58ba45[_0x5df628(0x32d,_0x5a0a29._0xbcec68,0x320,_0x5a0a29._0xb3971)]===_0x46f299(0x2c2,0x31b,_0x5a0a29._0x1d5b03,0x2f7)){_0x267064[_0x46f299(_0x5a0a29._0x46dfd5,_0x5a0a29._0x418d95,0x357,_0x5a0a29._0x38674d)][_0x5df628(_0x5a0a29._0x268620,0x2d8,_0x5a0a29._0x595f5c,_0x5a0a29._0xc10ee5)]!==void 0x0&&_0x267064[_0x46f299(_0x5a0a29._0x217554,0x2fc,_0x5a0a29._0x3c714e,0x313)][_0x5df628(0x316,0x2d9,_0x5a0a29._0x244ed7,0x2d5)]===void 0x0&&(_0x267064['meta'][_0x5df628(0x2b1,0x281,0x2cf,0x325)]=Date[_0x46f299(0x330,_0x5a0a29._0xa3e70d,0x37f,_0x5a0a29._0x41e562)]());_0x339df2=_0x58ba45[_0x5df628(0x244,_0x5a0a29._0x5238e9,0x293,_0x5a0a29._0x12b912)];continue;}if(_0x58ba45[_0x46f299(_0x5a0a29._0x41e562,_0x5a0a29._0x55c397,0x355,0x39b)]==='provider_retry'){await emitEvent2(_0x393275[_0x46f299(0x39f,0x34a,0x31b,_0x5a0a29._0x15e674)],_0x58ba45,_0x3e6ed4);continue;}const _0x3c0080=createReasoningChunkEvent(_0x58ba45,_0x267064['reasoningMessageId']);if(_0x3c0080&&_0x3c0080[_0x46f299(_0x5a0a29._0x2baa2d,0x368,0x34b,0x34d)]===_0x5df628(_0x5a0a29._0x401484,_0x5a0a29._0x59b597,_0x5a0a29._0x2c2a75,0x2cb)&&_0x3c0080[_0x46f299(_0x5a0a29._0x9d4321,0x33f,_0x5a0a29._0x2bc8fc,0x397)][_0x46f299(_0x5a0a29._0x13d6fa,0x2f7,0x2aa,0x30b)]>0x0){_0x267064['meta']['reasoningStartedAt']===void 0x0&&(_0x267064[_0x46f299(_0x5a0a29._0x3f1a9e,_0x5a0a29._0x418d95,_0x5a0a29._0x20e57a,0x2c3)]['reasoningStartedAt']=Date[_0x5df628(0x33e,0x2eb,0x304,_0x5a0a29._0x217554)]());await emitEvent2(_0x393275[_0x5df628(0x35e,0x2bc,_0x5a0a29._0x2ed4f9,0x2c5)],_0x3c0080,_0x3e6ed4);continue;}const _0x4e7c22=createAssistantChunkEvent(_0x58ba45,_0x267064[_0x46f299(0x2f1,_0x5a0a29._0x1526e0,_0x5a0a29._0x31b989,0x2ba)]);if(_0x4e7c22){_0x267064[_0x46f299(_0x5a0a29._0x4a842c,_0x5a0a29._0x2e3d56,_0x5a0a29._0x164e08,0x2c7)][_0x46f299(0x2fd,_0x5a0a29._0x5c9422,_0x5a0a29._0x35f82b,_0x5a0a29._0x387b6)]!==void 0x0&&_0x267064[_0x46f299(_0x5a0a29._0x3f11c8,_0x5a0a29._0x418d95,_0x5a0a29._0x3566e2,0x330)][_0x46f299(_0x5a0a29._0x32e25d,_0x5a0a29._0x43a26e,0x313,_0x5a0a29._0x4251c9)]===void 0x0&&(_0x267064[_0x5df628(0x2af,_0x5a0a29._0x425f5b,_0x5a0a29._0x196dbc,0x278)][_0x5df628(0x298,_0x5a0a29._0x50492b,0x2cf,_0x5a0a29._0x44d755)]=Date[_0x46f299(_0x5a0a29._0x282b6b,0x34c,_0x5a0a29._0x5248c3,0x35f)]());await emitEvent2(_0x393275['onEvent'],_0x4e7c22,_0x3e6ed4);continue;}const _0x3f53ee=createToolUseChunkEvent(_0x58ba45,_0x267064[_0x5df628(_0x5a0a29._0x1486de,_0x5a0a29._0x3313ea,_0x5a0a29._0x274a58,0x2ef)]);_0x3f53ee&&await emitEvent2(_0x393275[_0x5df628(_0x5a0a29._0x1f2fae,_0x5a0a29._0x446476,_0x5a0a29._0x270224,_0x5a0a29._0x32c4b1)],_0x3f53ee,_0x3e6ed4);}if(!_0x339df2)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');function _0x46f299(_0x161b55,_0x338be3,_0x56cdb9,_0x1984a4){return _0x198dcf(_0x338be3-_0x3f9a5e._0x1967e4,_0x338be3-0x10d,_0x56cdb9-0x16b,_0x161b55);}return _0x339df2;}function makeTurnGuards(_0x29618e,_0x129722,_0x4279ca,_0x110e05,_0xce127f){return{async 'stage'(_0x39a8ac,_0xde01a4){return throwIfAborted(_0x29618e),await runStage(_0x129722,_0x39a8ac,_0xde01a4,_0x110e05);},async 'emit'(_0x4ff314){throwIfAborted(_0x29618e),await emitEvent2(_0x4279ca,_0x4ff314,_0xce127f);},async 'stageUnchecked'(_0x31ea13,_0xb426c0){return await runStage(_0x129722,_0x31ea13,_0xb426c0,_0x110e05);},async 'emitUnchecked'(_0x4170cf){await emitEvent2(_0x4279ca,_0x4170cf,_0xce127f);}};}async function runTurn(_0x1abce0,_0x10af3b){const _0x2c3954={_0x3e71f8:0x27a,_0x420744:0x272,_0x534877:0x328,_0x1ba2d0:0x2b0,_0x2637ac:0x2a6,_0x40f8e8:0x2de,_0x507dc4:0x289,_0xa361c5:0x23b,_0x10c083:0x288,_0x26f95e:0x2ea,_0x435893:0x25c,_0x46aebd:0x22e,_0xfa3c1a:0x239,_0x3cf7fb:0x303,_0x8be5a:0x33f,_0x4312c1:0x2c0,_0x1dffcd:0x57,_0x2ccdcc:0x6b,_0x215071:0xf0,_0x45fde9:0xca,_0x1f93cb:0xdb,_0x47dbd4:0xc9,_0x3e4958:0xd,_0x54cc69:0xf,_0x25a142:0x5b,_0x45fe21:0x314,_0x5901d7:0x2cc,_0x3ee511:0x300,_0x10fc30:0x35b,_0x195769:0x3,_0x37c636:0xd9,_0x3e534:0x83,_0x145027:0x9c,_0x4531c4:0x10b,_0x4af299:0xae,_0x3d5421:0xd0,_0x5b068a:0x276,_0x1c2d3e:0x2fe,_0x9490c3:0x2f0,_0x484c2f:0x8b,_0x316816:0x66,_0x5ea4fb:0x40,_0x3d162b:0x68,_0x31943d:0x7b,_0x507f92:0x28a,_0x498633:0x9b,_0x4080fd:0x2d3,_0x4df24d:0x5e,_0x55bb0e:0x3b,_0x3b1e7a:0x2e3,_0x2619a4:0x28d,_0x1618e7:0x2b7,_0x241846:0x235,_0x16aac9:0x2bc,_0xeb862d:0x55,_0x474ad0:0x48,_0x31baf7:0x6d,_0x3c3927:0x270,_0x2384b6:0x27b,_0x26ddf1:0x28d,_0x179b17:0x232,_0x1ebca4:0x265,_0x3a6f20:0x22f,_0x1a0f63:0x219,_0x266174:0x271,_0x179d13:0x28e,_0x9affef:0x224,_0x314193:0x116,_0x57d72a:0xc4,_0x343d6c:0xf7,_0x4f4c1d:0xc3,_0x174cdb:0x2f9,_0xfd30da:0x2e9,_0x48e0fc:0x5a,_0x3081f6:0x313,_0x293230:0x32e,_0x204f79:0xd2,_0x55866e:0xe7,_0x87f8d6:0x310,_0x3a4107:0x2ef,_0x481f33:0x351,_0x3329bb:0x3c,_0x10ca69:0x51,_0x369244:0xfa,_0x23dfc7:0x100,_0x5c3659:0xbb,_0x48f010:0x302,_0x2edb37:0x279,_0x1690e5:0x38,_0xa80f07:0xc4,_0x4be384:0x2f4,_0x5ade78:0x90,_0x33e37e:0x56,_0x246d44:0x10,_0x19efbd:0xa4,_0x4b8f1f:0x257,_0x2c560f:0x2df,_0x3e46df:0x2a8,_0x55164a:0x2d6,_0x409877:0x295,_0x75e515:0x2ca,_0x5b81db:0x2e5,_0x219d5d:0x320,_0x1ca457:0x31a,_0x21e9ce:0x2d3,_0x7c8e52:0x2bc,_0x4d18bd:0x293,_0x258183:0x318},_0x1bfd44={_0xe2477e:0xba,_0x3161df:0xb5,_0x5a43b6:0x37},_0x2db620={_0x8f6ed0:0x1d1,_0x5131c8:0x1b},_0x2be069={_0x576ba4:0x83,_0xbcad03:0x16e},_0x56b394={_0x236419:0x24,_0x5de9a8:0x2b8};function _0x244b3e(_0xb9eae0,_0x155778,_0x971825,_0x410986){return _0x2acee8(_0xb9eae0-_0x56b394._0x236419,_0x155778-0xe6,_0x410986- -_0x56b394._0x5de9a8,_0x155778);}const _0x403a2f=_0x10af3b[_0x47416d(_0x2c3954._0x3e71f8,0x272,0x274,0x25e)],_0x1823f6=_0x1abce0['signal']??new AbortController()[_0x47416d(0x2ce,_0x2c3954._0x420744,0x30b,_0x2c3954._0x534877)],_0x2bb0b4={'sessionId':_0x1abce0['sessionId'],'turnId':_0x1abce0[_0x47416d(0x2ec,_0x2c3954._0x1ba2d0,_0x2c3954._0x2637ac,0x306)],'system':normalizeSystem(_0x1abce0['system']),'messages':(_0x1abce0[_0x47416d(0x313,0x336,_0x2c3954._0x40f8e8,0x360)]??[])['map'](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x10af3b[_0x47416d(_0x2c3954._0x507dc4,_0x2c3954._0xa361c5,_0x2c3954._0x10c083,0x250)]===_0x47416d(0x28f,_0x2c3954._0x26f95e,0x25e,_0x2c3954._0x435893)?_0x10af3b['sessionDir']():_0x10af3b[_0x47416d(0x289,_0x2c3954._0x46aebd,_0x2c3954._0xfa3c1a,0x2bb)]},_0x3e00f9=makeExtensionContext(_0x2bb0b4),_0x520935={'sessionId':_0x2bb0b4['sessionId'],'turnId':_0x2bb0b4['turnId'],'state':_0x2bb0b4,'signal':_0x1823f6,..._0x10af3b[_0x47416d(_0x2c3954._0x3cf7fb,_0x2c3954._0x8be5a,0x2c3,_0x2c3954._0x4312c1)]?{'askUser':_0x10af3b[_0x244b3e(-0x4b,-_0x2c3954._0x1dffcd,-_0x2c3954._0x2ccdcc,-0x50)]}:{},..._0x10af3b[_0x244b3e(-0x71,-_0x2c3954._0x215071,-0xa7,-0xc9)]?{'setTopic':_0x10af3b[_0x244b3e(-_0x2c3954._0x45fde9,-_0x2c3954._0x1f93cb,-0xe6,-_0x2c3954._0x47dbd4)]}:{}},{stage:_0x53cb63,emit:_0x3ec5a8,stageUnchecked:_0x38be0d,emitUnchecked:_0x5002fe}=makeTurnGuards(_0x1823f6,_0x10af3b[_0x244b3e(_0x2c3954._0x3e4958,_0x2c3954._0x54cc69,-_0x2c3954._0x25a142,-0x43)],_0x10af3b[_0x47416d(0x2e4,_0x2c3954._0x45fe21,0x296,0x318)],_0x3e00f9,_0x520935);function _0x47416d(_0x2d4c39,_0x3d9f9c,_0x49bbe3,_0xd23b72){return _0x2acee8(_0x2d4c39-_0x2be069._0x576ba4,_0x3d9f9c-_0x2be069._0xbcad03,_0x2d4c39-0x9b,_0xd23b72);}const _0x4fd31d=async(_0x36e868,_0x120a0f)=>{function _0x4dac87(_0x258963,_0x3f9b3e,_0x3930c9,_0x441eb5){return _0x244b3e(_0x258963-0xa4,_0x3f9b3e,_0x3930c9-_0x2db620._0x8f6ed0,_0x441eb5- -_0x2db620._0x5131c8);}const _0x5bedc0=_0x120a0f?{..._0x3e00f9,'turnMeta':_0x120a0f}:_0x3e00f9;await _0x10af3b['registry']['runObservers'](_0x4dac87(-_0x1bfd44._0xe2477e,-_0x1bfd44._0x3161df,-_0x1bfd44._0x5a43b6,-0x90),structuredClone(_0x36e868),_0x5bedc0);};let _0x177801=0x0;try{const _0x16c732=await _0x53cb63(_0x47416d(_0x2c3954._0x5901d7,0x321,0x2f4,0x270),normalizeMessage(_0x1abce0[_0x47416d(_0x2c3954._0x3ee511,0x2e4,_0x2c3954._0x10fc30,0x33d)]));_0x2bb0b4[_0x244b3e(-0x23,_0x2c3954._0x195769,-0x77,-0x40)]['push'](_0x16c732),await _0x4fd31d(_0x16c732),await _0x3ec5a8({'type':_0x244b3e(-_0x2c3954._0x37c636,-0xd8,-0x8f,-0x84),'message':_0x16c732});while(!![]){throwIfAborted(_0x1823f6),_0x177801+=0x1;const _0x2f8c86=createAssistantMessageId(_0x2bb0b4['turnId'],_0x177801),_0xaa6ee3=createReasoningMessageId(_0x2f8c86),_0x4bafd4={'model':_0x403a2f['model'],'modelIdentity':_0x403a2f['modelIdentity'],..._0x403a2f['provider']?{'provider':_0x403a2f[_0x244b3e(-0xbb,-0xec,-_0x2c3954._0x3e534,-_0x2c3954._0x145027)]}:{}};let _0x2ac090={'model':_0x403a2f[_0x244b3e(-0xa4,-_0x2c3954._0x4531c4,-_0x2c3954._0x4af299,-_0x2c3954._0x3d5421)],..._0x403a2f['maxTokens']!==void 0x0?{'maxTokens':_0x403a2f[_0x47416d(_0x2c3954._0x5b068a,0x25c,0x232,0x232)]}:{},'system':structuredClone(_0x2bb0b4[_0x47416d(_0x2c3954._0x1c2d3e,_0x2c3954._0x9490c3,0x2e0,0x31c)]),'messages':structuredClone(_0x2bb0b4[_0x244b3e(0x12,-_0x2c3954._0x484c2f,-_0x2c3954._0x316816,-_0x2c3954._0x5ea4fb)]),'tools':_0x10af3b[_0x244b3e(-_0x2c3954._0x3d162b,-0xa3,-0x1e,-_0x2c3954._0x31943d)][_0x47416d(0x2c4,_0x2c3954._0x507f92,0x280,0x2ab)](),'metadata':{'sessionId':_0x2bb0b4[_0x244b3e(-0xc7,-0xb3,-_0x2c3954._0x498633,-0xd5)],'turnId':_0x2bb0b4[_0x47416d(0x2ec,0x342,_0x2c3954._0x4080fd,0x32a)],'modelIdentity':_0x403a2f['modelIdentity']},..._0x10af3b[_0x244b3e(-0x57,-0x38,-0x4,-0x3b)]?{'outputFormat':_0x10af3b[_0x244b3e(-_0x2c3954._0x4df24d,-0xf,0x13,-_0x2c3954._0x55bb0e)]}:{}};_0x2ac090=await _0x53cb63(_0x47416d(0x2b3,0x2b3,0x2b4,_0x2c3954._0x3b1e7a),_0x2ac090),await _0x3ec5a8({'type':_0x47416d(_0x2c3954._0x2619a4,_0x2c3954._0x1618e7,_0x2c3954._0x241846,_0x2c3954._0x16aac9),'request':_0x2ac090}),_0x4bafd4['turnStartedAt']=Date[_0x244b3e(-_0x2c3954._0xeb862d,-_0x2c3954._0x474ad0,-0x92,-_0x2c3954._0x31baf7)]();let _0x373d74=await executeModelRequest(_0x2ac090,_0x1abce0,_0x403a2f,_0x10af3b,_0x520935,{'assistantMessageId':_0x2f8c86,'reasoningMessageId':_0xaa6ee3,'meta':_0x4bafd4});_0x4bafd4[_0x47416d(0x2cd,_0x2c3954._0x420744,0x2d9,0x299)]=Date['now'](),_0x373d74=await _0x53cb63(_0x47416d(_0x2c3954._0x3c3927,_0x2c3954._0x2384b6,0x237,0x2c6),_0x373d74);_0x373d74[_0x47416d(0x26d,_0x2c3954._0x26ddf1,_0x2c3954._0x179b17,_0x2c3954._0x1ebca4)]&&(_0x373d74={..._0x373d74,'providerState':{..._0x373d74[_0x47416d(0x26d,_0x2c3954._0x3a6f20,_0x2c3954._0x1a0f63,_0x2c3954._0x266174)],'originModelIdentity':_0x403a2f[_0x47416d(0x274,_0x2c3954._0x179d13,0x25d,_0x2c3954._0x9affef)]}});await _0x3ec5a8({'type':_0x244b3e(-_0x2c3954._0x314193,-_0x2c3954._0x57d72a,-_0x2c3954._0x343d6c,-_0x2c3954._0x4f4c1d),'response':_0x373d74}),_0x2bb0b4[_0x47416d(0x316,0x303,_0x2c3954._0x174cdb,_0x2c3954._0xfd30da)]=_0x373d74;let _0x124c17=await _0x53cb63('beforeAssistantAppend',withMessageId(responseToAssistantMessage(_0x373d74),_0x2f8c86));_0x124c17=withMessageId(_0x124c17,_0x2f8c86);const _0x2d4620=getToolUseBlocks(_0x124c17),_0x46572c=await Promise[_0x47416d(0x2ef,0x2a4,0x315,0x345)](_0x2d4620['map'](_0x5c82a3=>_0x53cb63(_0x244b3e(-0x9f,-0xf,-0xb3,-0x58),_0x5c82a3)));_0x46572c['length']>0x0&&(_0x124c17=replaceToolUseBlocks(_0x124c17,_0x46572c));const _0x2e217a=withMessageId(_0x124c17,_0x2f8c86);_0x124c17=_0x2e217a;const _0x257f50=createReasoningMessage(_0x124c17),_0x51b888=createAssistantTextMessage(_0x124c17),_0x7153b1=createToolUseMessage(_0x124c17);_0x257f50&&await _0x3ec5a8({'type':'reasoning_message','message':withMessageId(_0x257f50,_0xaa6ee3)});_0x51b888&&await _0x3ec5a8({'type':'assistant_message','message':withMessageId(_0x51b888,_0x2f8c86)});_0x7153b1&&await _0x3ec5a8({'type':_0x47416d(0x2ad,0x27a,0x297,0x296),'message':withMessageId(_0x7153b1,_0x2f8c86)});_0x2bb0b4['messages'][_0x244b3e(-_0x2c3954._0x48e0fc,-0x84,-0x34,-0x8b)](_0x2e217a);_0x46572c['length']>0x0&&await _0x4fd31d(_0x2e217a,_0x4bafd4);for(const _0x27045e of _0x46572c){await _0x3ec5a8({'type':'tool_call','toolCall':_0x27045e});}if(_0x46572c['length']===0x0){const _0x17959a=await _0x53cb63('beforeFinalOutput',_0x124c17),_0x245a56=withMessageId(_0x17959a,_0x2f8c86);return _0x2bb0b4['finalMessage']=_0x245a56,_0x2bb0b4[_0x244b3e(-0x9a,-0x49,-0x3d,-0x40)][_0x2bb0b4[_0x47416d(_0x2c3954._0x3081f6,_0x2c3954._0x293230,0x35e,0x304)][_0x244b3e(-0xf7,-_0x2c3954._0x204f79,-_0x2c3954._0x55866e,-0xc2)]-0x1]=_0x245a56,await _0x4fd31d(_0x245a56,_0x4bafd4),await _0x3ec5a8({'type':'final_message','message':_0x245a56}),throwIfAborted(_0x1823f6),await _0x10af3b[_0x47416d(_0x2c3954._0x87f8d6,_0x2c3954._0x3a4107,_0x2c3954._0x481f33,0x32a)][_0x244b3e(-0x7e,-_0x2c3954._0x3329bb,-_0x2c3954._0x10ca69,-0x34)](_0x244b3e(-0x110,-_0x2c3954._0x369244,-_0x2c3954._0x23dfc7,-_0x2c3954._0x5c3659),_0x2bb0b4,_0x3e00f9),await _0x3ec5a8({'type':_0x47416d(0x2c1,_0x2c3954._0x48f010,_0x2c3954._0x1c2d3e,0x30a),'state':_0x2bb0b4}),{'status':_0x47416d(_0x2c3954._0x2edb37,0x2a3,0x225,0x2d1),'finalMessage':_0x245a56,'state':_0x2bb0b4};}let _0x1109de=await _0x10af3b[_0x244b3e(-0xd0,-0x84,-0xb1,-_0x2c3954._0x31943d)][_0x244b3e(-0x8c,-_0x2c3954._0x1690e5,-_0x2c3954._0xa80f07,-0x6a)](_0x46572c,_0x520935);const _0x2ec272=_0x1109de[_0x47416d(_0x2c3954._0x4be384,0x2e5,0x338,0x29e)](isAbortedToolResult),_0x198c5c=_0x2ec272?_0x38be0d:_0x53cb63,_0x1a4bf2=_0x2ec272?_0x5002fe:_0x3ec5a8;_0x1109de=await Promise['all'](_0x1109de[_0x244b3e(-_0x2c3954._0x5ade78,-0x6d,-_0x2c3954._0x33e37e,-_0x2c3954._0x48e0fc)](_0x58856c=>_0x198c5c(_0x47416d(0x2a7,0x2b2,0x26d,0x291),_0x58856c))),_0x2bb0b4[_0x244b3e(-_0x2c3954._0x246d44,-0x36,-0xa0,-0x48)][_0x244b3e(-0x6c,-0x62,-_0x2c3954._0x19efbd,-0x8b)](..._0x1109de);for(const _0x5944a6 of _0x1109de){await _0x1a4bf2({'type':_0x47416d(0x2a0,_0x2c3954._0x4b8f1f,_0x2c3954._0x5b068a,0x261),'result':_0x5944a6});}const _0x3d0d7e=await _0x198c5c(_0x47416d(_0x2c3954._0x2c560f,_0x2c3954._0x3e46df,_0x2c3954._0x55164a,_0x2c3954._0x409877),createToolResultUserMessage(_0x1109de));await _0x1a4bf2({'type':_0x47416d(_0x2c3954._0x75e515,0x307,0x321,_0x2c3954._0x5b81db),'message':_0x3d0d7e}),_0x2bb0b4[_0x47416d(0x313,0x2ec,_0x2c3954._0x219d5d,_0x2c3954._0x1ca457)]['push'](_0x3d0d7e),await _0x4fd31d(_0x3d0d7e);if(_0x2ec272)return{'status':_0x47416d(0x2d3,_0x2c3954._0x21e9ce,0x29c,_0x2c3954._0x7c8e52),'state':_0x2bb0b4};}}catch(_0x3dbd35){if(!_0x1823f6[_0x47416d(_0x2c3954._0x21e9ce,_0x2c3954._0x4d18bd,0x29c,0x2e4)])throw new TurnFailedError(_0x3dbd35,_0x2bb0b4);return{'status':_0x47416d(0x2d3,0x2a3,0x2f5,_0x2c3954._0x258183),'state':_0x2bb0b4};}}function createSessionId(){const _0x1f0439={_0x1c6b8f:0x455,_0x254139:0x435,_0x15fb6d:0x4b2,_0x38c443:0x477,_0x3d8956:0x47e,_0x472aa3:0x478,_0x46b20b:0x477,_0x2c018e:0x4c9,_0x137c5c:0x47d,_0x5c5287:0x3fd},_0x2bd41e={_0x3fd3d5:0xc1},_0x488159={_0x3b0a5e:0x87};function _0xcd3c57(_0x25b403,_0x3dd5a0,_0x1ab968,_0x346736){return _0x2acee8(_0x25b403-_0x488159._0x3b0a5e,_0x3dd5a0-0xf1,_0x25b403-0x274,_0x3dd5a0);}function _0x1700ba(_0x163c5e,_0x93b458,_0x450a39,_0x25a905){return _0x2acee8(_0x163c5e-_0x2bd41e._0x3fd3d5,_0x93b458-0xb0,_0x163c5e-0x22c,_0x25a905);}return _0xcd3c57(_0x1f0439._0x1c6b8f,_0x1f0439._0x254139,_0x1f0439._0x15fb6d,0x422)+Date[_0x1700ba(_0x1f0439._0x38c443,0x41b,_0x1f0439._0x3d8956,0x434)]()+'-'+Math[_0xcd3c57(_0x1f0439._0x472aa3,0x42e,0x46a,0x46d)]()[_0xcd3c57(_0x1f0439._0x46b20b,_0x1f0439._0x2c018e,0x41e,_0x1f0439._0x137c5c)](0x10)[_0x1700ba(_0x1f0439._0x5c5287,0x3e6,0x3c1,0x43b)](0x2,0xa);}function _0x2acee8(_0x4981af,_0x1f8602,_0x3717c3,_0x2fd854){const _0x122070={_0x2e942e:0x167};return _0x33d7(_0x3717c3-_0x122070._0x2e942e,_0x2fd854);}function createTurnId(_0x26b7bb){const _0x2fca40={_0x4524b8:0x28c,_0x1fb4b0:0x2ba},_0x1154bf={_0x6c4ffa:0xb2,_0x46cb50:0x96,_0x4de620:0x15};function _0x5d5e39(_0x1da635,_0x332815,_0x488060,_0x2f34af){return _0x2acee8(_0x1da635-_0x1154bf._0x6c4ffa,_0x332815-_0x1154bf._0x46cb50,_0x2f34af-_0x1154bf._0x4de620,_0x488060);}return _0x5d5e39(_0x2fca40._0x4524b8,_0x2fca40._0x1fb4b0,0x2b5,0x25f)+_0x26b7bb;}function createDefaultMessage(_0x5451ce){if(_0x5451ce===void 0x0)return void 0x0;return normalizeUserInput(_0x5451ce);}function normalizeUserInput(_0xec4e6c){const _0x4a944e={_0x4c4d50:0x174,_0x24a656:0x1e6,_0x571bf6:0x1b0,_0x280eff:0x2f7,_0x2d45ec:0x2a6},_0x311397={_0xa27099:0x21e},_0x2086cf={_0x5104b3:0x9b,_0x3dfc1d:0x35,_0x2c19e0:0xb4};function _0x370700(_0x28fcba,_0x2fbc9d,_0x568853,_0x527252){return _0x2acee8(_0x28fcba-_0x2086cf._0x5104b3,_0x2fbc9d-_0x2086cf._0x3dfc1d,_0x527252- -_0x2086cf._0x2c19e0,_0x28fcba);}function _0x551dff(_0x13a2b9,_0x513b70,_0x10ef5e,_0x8f6977){return _0x198dcf(_0x10ef5e-_0x311397._0xa27099,_0x513b70-0x1d8,_0x10ef5e-0x18f,_0x513b70);}if(typeof _0xec4e6c===_0x370700(_0x4a944e._0x4c4d50,_0x4a944e._0x24a656,0x1c5,_0x4a944e._0x571bf6))return{'role':_0x551dff(_0x4a944e._0x280eff,_0x4a944e._0x2d45ec,0x2a7,0x2d1),'content':[{'type':'text','text':_0xec4e6c}]};return normalizeMessage(_0xec4e6c);}function resolveChatModel(_0x28a6db){const _0x1c80f0={_0x28bcf1:0xf4,_0x392155:0xb2,_0xa20f61:0x13d,_0x576d7a:0x149,_0x3cf3f5:0x245,_0x21c4b1:0x26e},_0x2d971b={_0x35db7e:0xeb},_0x3e2eb9={_0x3d13b8:0x12f};if(!_0x28a6db[_0x46f0ef(_0x1c80f0._0x28bcf1,_0x1c80f0._0x392155,0xe0,0xa1)])throw new Error(_0x46f0ef(0x17d,_0x1c80f0._0xa20f61,0x139,_0x1c80f0._0x576d7a));function _0x484bd1(_0x58bdbb,_0x48e295,_0x537949,_0x1a0c12){return _0x2acee8(_0x58bdbb-0x185,_0x48e295-_0x3e2eb9._0x3d13b8,_0x1a0c12- -0x46a,_0x58bdbb);}function _0x46f0ef(_0x1af23d,_0x2ef2d8,_0x5fd9d8,_0x401a2b){return _0x2acee8(_0x1af23d-_0x2d971b._0x35db7e,_0x2ef2d8-0x5d,_0x401a2b- -0x13e,_0x5fd9d8);}return _0x28a6db[_0x484bd1(-_0x1c80f0._0x3cf3f5,-_0x1c80f0._0x21c4b1,-0x250,-0x28b)];}function createRegistry(_0x3acba2){const _0x49bb3b={_0x3f5c9e:0x1e0,_0x4af95a:0x259,_0x350a2b:0x162,_0x593165:0x16d,_0x208b3e:0x1fb},_0xf34c33={_0x443563:0xd7},_0x39aa8a={_0x211aef:0x2f8,_0x3875b7:0xa2};if(_0x3acba2[_0x32e96c(-0x21d,-0x18d,-_0x49bb3b._0x3f5c9e,-0x1f8)])return _0x3acba2[_0x14e95f(_0x49bb3b._0x4af95a,0x27d,0x246,0x207)];function _0x32e96c(_0x43d80d,_0x186cfc,_0x131aca,_0x57f252){return _0x198dcf(_0x131aca- -_0x39aa8a._0x211aef,_0x186cfc-0x3,_0x131aca-_0x39aa8a._0x3875b7,_0x186cfc);}const _0xc1a61a=createExtensionRegistry();function _0x14e95f(_0x3265a9,_0x34346e,_0x68612b,_0x8449b9){return _0x2acee8(_0x3265a9-0x139,_0x34346e-_0xf34c33._0x443563,_0x68612b- -0x2f,_0x8449b9);}const _0x110560=_0x3acba2[_0x14e95f(0x15b,_0x49bb3b._0x350a2b,0x1b6,_0x49bb3b._0x593165)]??[];for(const _0x59bf62 of _0x110560){_0xc1a61a[_0x14e95f(0x208,0x25f,0x213,_0x49bb3b._0x208b3e)](_0x59bf62);}return _0xc1a61a;}var Agent=class{[_0x198dcf(0x115,0x12d,0xc4,0xbf)];[_0x2acee8(0x29b,0x27f,0x285,0x27b)];[_0x2acee8(0x1bc,0x223,0x210,0x1d3)];[_0x198dcf(0x86,0x3d,0x29,0x63)];[_0x198dcf(0x11b,0x124,0x161,0x10d)];[_0x2acee8(0x1db,0x23b,0x1e7,0x22e)];['turnIndex'];constructor(_0x4bed6c={}){const _0x17fbe1={_0x71093a:0x366,_0x1f945d:0x2fc,_0x2f16ea:0x335,_0x3087e5:0xed,_0x39dce6:0x161,_0x3e7106:0xd8,_0x1b2f23:0x129,_0x2bff18:0x3fd,_0x52e076:0x37c,_0x3e43cc:0x3c4,_0x143bc7:0x33b,_0x3eb2c0:0x3ff,_0x381fa6:0x95,_0xf8bcb:0x72,_0x57e8a1:0x339,_0x572870:0x9b,_0x540d9f:0x89,_0x387832:0xec,_0xcf5705:0xf0,_0xc9adea:0xbc,_0x56eb7a:0xa4,_0x4eb116:0x11c,_0x5f0e35:0xcc,_0x1c7596:0x10f,_0x5f22bd:0x94,_0x1324ed:0x65,_0xb4b4c:0x8e,_0x5769bf:0xbd,_0x4b1aa3:0x389},_0x588768={_0x583f10:0x8e,_0x1fc912:0x6e},_0x1aa85f={_0x57db06:0x14,_0x1a7598:0x54,_0x5a047d:0x337},_0x33d4a2={_0x539b3b:0x1a3,_0x4f05b3:0x1f4,_0x1fb7aa:0x3d},_0x152dfd={_0x5ed448:0x175};this[_0x1e3c0c(_0x17fbe1._0x71093a,0x36a,_0x17fbe1._0x1f945d,_0x17fbe1._0x2f16ea)]=_0x4bed6c[_0x1327cd(-0x11d,-_0x17fbe1._0x3087e5,-0x15d,-_0x17fbe1._0x39dce6)]??createSessionId(),this[_0x1327cd(-_0x17fbe1._0x3e7106,-_0x17fbe1._0x1b2f23,-0x9a,-0x80)]=0x0;function _0x1e3c0c(_0x1bdb5a,_0x470299,_0x105123,_0x41768f){return _0x2acee8(_0x1bdb5a-_0x152dfd._0x5ed448,_0x470299-0x13c,_0x41768f-0x152,_0x1bdb5a);}this[_0x1e3c0c(0x374,_0x17fbe1._0x2bff18,_0x17fbe1._0x52e076,_0x17fbe1._0x3e43cc)]=_0x4bed6c[_0x1e3c0c(0x329,_0x17fbe1._0x143bc7,0x30c,0x32a)]??'',this['messages']=(_0x4bed6c[_0x1e3c0c(_0x17fbe1._0x3eb2c0,0x3b9,0x3e7,0x3ca)]??[])[_0x1327cd(-0xa2,-_0x17fbe1._0x381fa6,-0xa9,-_0x17fbe1._0xf8bcb)](normalizeMessage),this[_0x1e3c0c(0x35b,0x340,0x2fd,_0x17fbe1._0x57e8a1)]=createDefaultMessage(_0x4bed6c[_0x1327cd(-_0x17fbe1._0x572870,-_0x17fbe1._0x540d9f,-0x52,-_0x17fbe1._0x387832)]),this[_0x1327cd(-_0x17fbe1._0xcf5705,-0x10b,-_0x17fbe1._0xc9adea,-_0x17fbe1._0x56eb7a)]=createAgentMetrics({'getContextWindowLimit':_0x4bed6c[_0x1327cd(-0xdc,-_0x17fbe1._0x4eb116,-0x121,-_0x17fbe1._0x5f0e35)]});function _0x1327cd(_0x5376b5,_0x2fa25e,_0x1ede04,_0x17aee4){return _0x198dcf(_0x5376b5- -_0x33d4a2._0x539b3b,_0x2fa25e-_0x33d4a2._0x4f05b3,_0x1ede04-_0x33d4a2._0x1fb7aa,_0x17aee4);}const _0x2183f1=_0x4bed6c['onEvent'],_0x5ec7dc=async(_0x15ec43,_0x17eae6)=>{function _0x25c9fe(_0x614941,_0x41807a,_0xc9dfd3,_0x1d6da4){return _0x1e3c0c(_0x41807a,_0x41807a-_0x1aa85f._0x57db06,_0xc9dfd3-_0x1aa85f._0x1a7598,_0x1d6da4- -_0x1aa85f._0x5a047d);}this['metrics'][_0x25c9fe(0x9f,0x98,_0x588768._0x583f10,_0x588768._0x1fc912)](_0x15ec43),await _0x2183f1?.(_0x15ec43,_0x17eae6);},_0x45ce84=createInternalToolRuntime(_0x4bed6c[_0x1327cd(-0xc0,-_0x17fbe1._0x1c7596,-0xf1,-0xd6)]??[],{'onEvent':_0x5ec7dc,'onToolCall':_0x4bed6c[_0x1327cd(-_0x17fbe1._0x5f22bd,-0x3e,-_0x17fbe1._0x1324ed,-0x3a)]});this[_0x1327cd(-0x7b,-_0x17fbe1._0xb4b4c,-0x1d,-_0x17fbe1._0x5769bf)]={'registry':createRegistry(_0x4bed6c),'chatModel':resolveChatModel(_0x4bed6c),'toolRuntime':_0x45ce84,'askUser':_0x4bed6c['askUser'],'setTopic':_0x4bed6c['setTopic'],'onEvent':_0x5ec7dc,'sessionDir':_0x4bed6c['sessionDir'],'outputFormat':_0x4bed6c[_0x1e3c0c(_0x17fbe1._0x4b1aa3,0x411,0x374,0x3cf)]};}get[_0x198dcf(0x7b,0x3e,0xbe,0xa1)](){return this['_systemPrompt'];}['setTools'](_0x57f8bf=[]){const _0x485a3f={_0x54fae5:0x1ee,_0x14f995:0x1c7,_0x142670:0x222,_0x5c685b:0x1d6,_0x5c1e0b:0x1f2,_0x452006:0x1ad,_0x503fb2:0x1d9},_0x2935ab={_0x1a3c61:0x9f};function _0x27253d(_0x26f8f8,_0xd74876,_0x3b8288,_0x471a17){return _0x198dcf(_0x3b8288-_0x2935ab._0x1a3c61,_0xd74876-0xcf,_0x3b8288-0xb0,_0xd74876);}function _0x457e02(_0x6bfee,_0x59470a,_0x49c095,_0x502172){return _0x2acee8(_0x6bfee-0x14,_0x59470a-0x15d,_0x49c095- -0x42f,_0x59470a);}this[_0x27253d(0x182,_0x485a3f._0x54fae5,_0x485a3f._0x14f995,_0x485a3f._0x142670)][_0x457e02(-_0x485a3f._0x5c685b,-0x20d,-_0x485a3f._0x5c1e0b,-0x1e4)][_0x457e02(-0x17f,-_0x485a3f._0x452006,-_0x485a3f._0x503fb2,-0x1cb)](_0x57f8bf);}[_0x198dcf(0xef,0xbd,0x12b,0xcd)](){const _0x282808={_0x322f8a:0x3d6,_0x5e67b7:0x13b,_0x887545:0xe5,_0x25337:0x11f,_0x16ec98:0xcc,_0xb00569:0xb5,_0x4957a5:0xd1,_0xcb5425:0xdf,_0x591d5b:0xb8},_0x3d1b6c={_0x532ba7:0x273,_0xa0e67a:0xc6},_0x477079={_0x27151d:0x158};function _0x20c571(_0x49b068,_0x201e3c,_0x92bca8,_0x1f6d18){return _0x2acee8(_0x49b068-0xe6,_0x201e3c-0x13d,_0x201e3c- -_0x477079._0x27151d,_0x92bca8);}function _0x332107(_0x3a2463,_0x99458e,_0x237cd4,_0x4d2dbe){return _0x198dcf(_0x3a2463-_0x3d1b6c._0x532ba7,_0x99458e-_0x3d1b6c._0xa0e67a,_0x237cd4-0x15c,_0x99458e);}return this[_0x332107(0x39b,0x3a9,0x38d,_0x282808._0x322f8a)][_0x20c571(_0x282808._0x5e67b7,_0x282808._0x887545,_0x282808._0x25337,_0x282808._0x16ec98)][_0x20c571(_0x282808._0xb00569,_0x282808._0x4957a5,_0x282808._0xcb5425,_0x282808._0x591d5b)]();}[_0x2acee8(0x28e,0x2b7,0x282,0x298)](_0x13e25e,_0x50692e={}){const _0x4023ae={_0x51606f:0x1cd,_0x1e5390:0x1af,_0x11a463:0x1fa,_0x30de7e:0x1bc,_0x1e7cc5:0x1ee,_0x3d8e0a:0x187,_0x59f186:0x21a,_0x493c18:0x324,_0x14b53d:0x325,_0x5bede3:0x1be},_0x40952e={_0x1925f1:0x56,_0x400d1f:0xb0},_0x356566={_0x4af6b3:0xf5,_0x316904:0x43f};this[_0x4da51d(-_0x4023ae._0x51606f,-_0x4023ae._0x1e5390,-0x1bd,-_0x4023ae._0x11a463)]=_0x13e25e;function _0x4da51d(_0x4a735e,_0x5eefa6,_0x333097,_0x19a1ef){return _0x2acee8(_0x4a735e-_0x356566._0x4af6b3,_0x5eefa6-0x1ab,_0x4a735e- -_0x356566._0x316904,_0x333097);}function _0x4d0d4c(_0x35548b,_0x3eb337,_0x2f3c48,_0x576a17){return _0x2acee8(_0x35548b-_0x40952e._0x1925f1,_0x3eb337-0xf5,_0x3eb337-_0x40952e._0x400d1f,_0x35548b);}_0x50692e[_0x4da51d(-_0x4023ae._0x30de7e,-_0x4023ae._0x1e7cc5,-_0x4023ae._0x3d8e0a,-_0x4023ae._0x59f186)]===!![]&&(this[_0x4d0d4c(_0x4023ae._0x493c18,0x328,_0x4023ae._0x14b53d,0x2d5)]=[],this[_0x4da51d(-0x217,-0x204,-_0x4023ae._0x5bede3,-0x1e9)]=0x0);}['setSessionId'](_0x418658){this['sessionId']=_0x418658;}[_0x2acee8(0x1a8,0x1d7,0x1dd,0x1b8)](_0x1c720b){const _0x3fc5df={_0x404cde:0x378,_0x578414:0x395,_0x229de8:0x382,_0x2b0076:0x343};function _0x418b20(_0x5dc5c6,_0x210bf8,_0x4d0020,_0x4cb299){return _0x198dcf(_0x4cb299-0x2c1,_0x210bf8-0x99,_0x4d0020-0x1f0,_0x5dc5c6);}this['deps'][_0x418b20(_0x3fc5df._0x404cde,_0x3fc5df._0x578414,_0x3fc5df._0x229de8,_0x3fc5df._0x2b0076)]=_0x1c720b;}async[_0x2acee8(0x213,0x20a,0x266,0x2c2)](_0x1f2b57=this[_0x198dcf(0x8a,0x5d,0xb7,0x33)],_0x1e6fbe={}){const _0x19028d={_0x30826e:0x3ef,_0x19c454:0x467,_0x59ca6b:0x42a,_0xf8f465:0x453,_0x3c2593:0x40f,_0x1800ad:0x19b,_0x2c5673:0x162,_0x1c6646:0x100,_0x3951f5:0x447,_0x1f29ec:0x457,_0x2edad5:0x434,_0x53ca84:0x169,_0x2d34b4:0x19f,_0x24660d:0x17f,_0x1a8aed:0x1dc,_0x209af8:0x3b4,_0x582094:0x3cb,_0x458861:0x3ba,_0xfbf368:0xb0,_0x2355ed:0xff,_0x125cdb:0x12d,_0x2679c2:0x484,_0x465bf1:0x445,_0x27c8ba:0x3fb,_0x5568de:0x404,_0x2ab5b2:0x45f,_0x395ed1:0x49f,_0x576006:0x193,_0x2b37b0:0x191,_0x1c02cb:0x47f,_0x548873:0x119,_0x3e2a88:0x131,_0x5e40ef:0x13f},_0x35395c={_0x236ef8:0xf2},_0x90d433={_0x132fc5:0x1d7,_0x26a262:0x115};function _0x4362c3(_0x4a87fe,_0x565216,_0x30394c,_0x2166c8){return _0x2acee8(_0x4a87fe-_0x90d433._0x132fc5,_0x565216-_0x90d433._0x26a262,_0x565216- -0x377,_0x30394c);}if(!_0x1f2b57)throw new Error(_0x14fb2a(0x45d,_0x19028d._0x30826e,0x41c,_0x19028d._0x19c454));function _0x14fb2a(_0xe5e7c7,_0x356db3,_0x323ba4,_0x1486a8){return _0x2acee8(_0xe5e7c7-_0x35395c._0x236ef8,_0x356db3-0x15d,_0x323ba4-0x1e7,_0x356db3);}this[_0x14fb2a(_0x19028d._0x59ca6b,_0x19028d._0xf8f465,_0x19028d._0x3c2593,0x425)]+=0x1;try{const _0x54323b=await runTurn({'sessionId':this['sessionId'],'turnId':createTurnId(this[_0x4362c3(-_0x19028d._0x1800ad,-0x14f,-_0x19028d._0x2c5673,-_0x19028d._0x1c6646)]),'streaming':_0x1e6fbe[_0x4362c3(-0x1a9,-0x178,-0x16c,-0x194)],'signal':_0x1e6fbe[_0x14fb2a(_0x19028d._0x3951f5,_0x19028d._0x1f29ec,0x41a,_0x19028d._0x2edad5)],'system':this[_0x4362c3(-_0x19028d._0x53ca84,-_0x19028d._0x2d34b4,-_0x19028d._0x24660d,-_0x19028d._0x1a8aed)],'messages':this['messages'],'message':normalizeUserInput(_0x1f2b57)},this['deps']);return this[_0x4362c3(-0xf4,-0xff,-0xbf,-0xa6)]=_0x54323b[_0x14fb2a(_0x19028d._0x209af8,0x3ab,_0x19028d._0x582094,_0x19028d._0x458861)][_0x4362c3(-_0x19028d._0xfbf368,-_0x19028d._0x2355ed,-0xe7,-_0x19028d._0x125cdb)][_0x14fb2a(_0x19028d._0x2679c2,0x415,_0x19028d._0x465bf1,_0x19028d._0x27c8ba)](normalizeMessage),_0x54323b;}catch(_0x1433e9){if(_0x1433e9 instanceof TurnFailedError){this[_0x14fb2a(_0x19028d._0x5568de,0x46a,_0x19028d._0x2ab5b2,_0x19028d._0x395ed1)]=synthesizeMissingToolResults(_0x1433e9[_0x4362c3(-0x14c,-_0x19028d._0x576006,-_0x19028d._0x2b37b0,-0x13a)][_0x14fb2a(0x41a,0x40d,0x45f,_0x19028d._0x1c02cb)][_0x4362c3(-0x165,-_0x19028d._0x548873,-_0x19028d._0x3e2a88,-_0x19028d._0x5e40ef)](normalizeMessage));throw _0x1433e9[_0x14fb2a(0x3b1,0x3e5,0x3fa,_0x19028d._0x5568de)];}throw _0x1433e9;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { ChildProcess } from "node:child_process";
|
|
2
|
-
import { StringDecoder } from "node:string_decoder";
|
|
3
|
-
export type BackgroundProcessStatus = "running" | "exited" | "killed" | "error";
|
|
4
|
-
export interface BackgroundProcessEntry {
|
|
5
|
-
shellId: string;
|
|
6
|
-
command: string;
|
|
7
|
-
cwd: string;
|
|
8
|
-
pid: number | undefined;
|
|
9
|
-
status: BackgroundProcessStatus;
|
|
10
|
-
exitCode: number | null;
|
|
11
|
-
signal: NodeJS.Signals | null;
|
|
12
|
-
startedAt: number;
|
|
13
|
-
error?: string;
|
|
14
|
-
child: ChildProcess | null;
|
|
15
|
-
buffer: string[];
|
|
16
|
-
bufferChars: number;
|
|
17
|
-
totalProduced: number;
|
|
18
|
-
totalDropped: number;
|
|
19
|
-
readCursor: number;
|
|
20
|
-
stdoutDecoder: StringDecoder;
|
|
21
|
-
stderrDecoder: StringDecoder;
|
|
22
|
-
stripAnsi: boolean;
|
|
23
|
-
killRequested: boolean;
|
|
24
|
-
processExited: boolean;
|
|
25
|
-
}
|
|
26
|
-
export interface BackgroundProcessReadResult {
|
|
27
|
-
output: string;
|
|
28
|
-
status: BackgroundProcessStatus;
|
|
29
|
-
exitCode: number | null;
|
|
30
|
-
signal: NodeJS.Signals | null;
|
|
31
|
-
truncated: boolean;
|
|
32
|
-
}
|
|
33
|
-
export interface BackgroundProcessRegistryOptions {
|
|
34
|
-
maxConcurrent?: number;
|
|
35
|
-
maxEntries?: number;
|
|
36
|
-
capChars?: number;
|
|
37
|
-
}
|
|
38
|
-
export declare class BackgroundProcessRegistry {
|
|
39
|
-
private readonly entries;
|
|
40
|
-
private readonly maxConcurrent;
|
|
41
|
-
private readonly maxEntries;
|
|
42
|
-
private readonly capChars;
|
|
43
|
-
private counter;
|
|
44
|
-
constructor(opts?: BackgroundProcessRegistryOptions);
|
|
45
|
-
spawn(opts: {
|
|
46
|
-
child: ChildProcess;
|
|
47
|
-
command: string;
|
|
48
|
-
cwd: string;
|
|
49
|
-
stripAnsi: boolean;
|
|
50
|
-
}): BackgroundProcessEntry;
|
|
51
|
-
read(shellId: string, opts?: {
|
|
52
|
-
regex?: string;
|
|
53
|
-
}): BackgroundProcessReadResult;
|
|
54
|
-
list(): BackgroundProcessEntry[];
|
|
55
|
-
kill(shellId: string): {
|
|
56
|
-
status: BackgroundProcessStatus;
|
|
57
|
-
exitCode: number | null;
|
|
58
|
-
signal: NodeJS.Signals | null;
|
|
59
|
-
};
|
|
60
|
-
closeAll(): Promise<void>;
|
|
61
|
-
private append;
|
|
62
|
-
private evictIfNeeded;
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=background-process-registry.d.ts.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export interface FileEditToolOptions {
|
|
2
|
-
allowedDirs?: readonly string[];
|
|
3
|
-
defaultCwd?: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function createFileEditTool(options?: FileEditToolOptions): import("../shared/types.ts").ToolDefinition<{
|
|
7
|
-
filePath: string;
|
|
8
|
-
oldText: string;
|
|
9
|
-
newText: string;
|
|
10
|
-
description?: string | undefined;
|
|
11
|
-
dryRun?: boolean | undefined;
|
|
12
|
-
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, {
|
|
13
|
-
type: "object";
|
|
14
|
-
properties: {
|
|
15
|
-
filePath: {
|
|
16
|
-
type: "string";
|
|
17
|
-
};
|
|
18
|
-
description: {
|
|
19
|
-
type: "string";
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
oldText: {
|
|
23
|
-
type: "string";
|
|
24
|
-
};
|
|
25
|
-
newText: {
|
|
26
|
-
type: "string";
|
|
27
|
-
};
|
|
28
|
-
dryRun: {
|
|
29
|
-
type: "boolean";
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
required: readonly ["filePath", "oldText", "newText"];
|
|
33
|
-
}>;
|
|
34
|
-
//# sourceMappingURL=file-edit-tool.d.ts.map
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { ListToolsResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import type { MCPServerConfig } from "@nuvin/config";
|
|
3
|
-
import type { AnyToolDefinition, JsonValue } from "../shared/types.ts";
|
|
4
|
-
import { type McpToolClient } from "./mcp-tool-adapter.ts";
|
|
5
|
-
interface ConnectedMcpClient extends McpToolClient {
|
|
6
|
-
listTools(): Promise<ListToolsResult>;
|
|
7
|
-
close(): Promise<void>;
|
|
8
|
-
}
|
|
9
|
-
export type McpServerConnectionStatus = {
|
|
10
|
-
status: "connected";
|
|
11
|
-
toolCount: number;
|
|
12
|
-
} | {
|
|
13
|
-
status: "disabled";
|
|
14
|
-
} | {
|
|
15
|
-
status: "authRequired";
|
|
16
|
-
message: string;
|
|
17
|
-
} | {
|
|
18
|
-
status: "error";
|
|
19
|
-
message: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* One MCP tool's user-facing descriptor, grouped per server. Populated only for
|
|
23
|
-
* connected tools so the Ctrl+P MCP tab can render enabled and disabled tools
|
|
24
|
-
* without a second round-trip (the flat {@link McpToolBundle.tools} array
|
|
25
|
-
* contains only callable tools and carries no per-server bucketing).
|
|
26
|
-
*/
|
|
27
|
-
export type McpServerToolInfo = {
|
|
28
|
-
name: string;
|
|
29
|
-
description?: string;
|
|
30
|
-
inputSchema?: JsonValue;
|
|
31
|
-
};
|
|
32
|
-
export interface McpToolBundle {
|
|
33
|
-
tools: AnyToolDefinition[];
|
|
34
|
-
servers: Record<string, McpServerConnectionStatus>;
|
|
35
|
-
/**
|
|
36
|
-
* Per-server descriptors for every discovered tool (server name →
|
|
37
|
-
* descriptors), including tools filtered from the callable array. Optional so
|
|
38
|
-
* existing bundle literals stay valid; consumers default to `{}`.
|
|
39
|
-
*/
|
|
40
|
-
serverTools?: Record<string, McpServerToolInfo[]>;
|
|
41
|
-
close(): Promise<void>;
|
|
42
|
-
}
|
|
43
|
-
export interface McpConnectionOptions {
|
|
44
|
-
oauth?: {
|
|
45
|
-
storageDir: string;
|
|
46
|
-
callbackUrl: string;
|
|
47
|
-
onRedirect(serverName: string, url: URL): void | Promise<void>;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export type McpConnector = (serverName: string, config: MCPServerConfig, options?: McpConnectionOptions) => Promise<ConnectedMcpClient>;
|
|
51
|
-
export declare function buildMcpHttpHeaders(config: MCPServerConfig): Record<string, string> | undefined;
|
|
52
|
-
export declare function connectMcpServer(serverName: string, config: MCPServerConfig, options?: McpConnectionOptions): Promise<ConnectedMcpClient>;
|
|
53
|
-
export declare function createMcpToolsFromServers(options: {
|
|
54
|
-
servers?: Record<string, MCPServerConfig>;
|
|
55
|
-
allowedTools?: Record<string, Record<string, boolean>>;
|
|
56
|
-
connection?: McpConnectionOptions;
|
|
57
|
-
connect?: McpConnector;
|
|
58
|
-
}): Promise<McpToolBundle>;
|
|
59
|
-
export {};
|
|
60
|
-
//# sourceMappingURL=mcp-server-manager.d.ts.map
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
|
-
import type { JsonObject, JsonSchema, JsonSchemaObject } from "../shared/types.ts";
|
|
3
|
-
export interface McpToolDescriptor {
|
|
4
|
-
name: string;
|
|
5
|
-
description?: string;
|
|
6
|
-
inputSchema?: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface McpToolClient {
|
|
9
|
-
callTool(input: {
|
|
10
|
-
name: string;
|
|
11
|
-
arguments?: JsonObject;
|
|
12
|
-
}): Promise<CallToolResult>;
|
|
13
|
-
}
|
|
14
|
-
export declare function createMcpToolName(serverName: string, toolName: string): string;
|
|
15
|
-
export declare function toNuvinToolSchema(inputSchema: unknown): JsonSchemaObject;
|
|
16
|
-
export declare function createMcpTool(options: {
|
|
17
|
-
serverName: string;
|
|
18
|
-
tool: McpToolDescriptor;
|
|
19
|
-
client: McpToolClient;
|
|
20
|
-
}): import("../shared/types.ts").ToolDefinition<{
|
|
21
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | {
|
|
22
|
-
[x: string]: string | number | boolean | /*elided*/ any | /*elided*/ any;
|
|
23
|
-
})[] | {
|
|
24
|
-
[x: string]: string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any;
|
|
25
|
-
})[] | {
|
|
26
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
27
|
-
})[] | {
|
|
28
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
29
|
-
})[] | {
|
|
30
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
31
|
-
})[] | {
|
|
32
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
33
|
-
})[] | {
|
|
34
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
35
|
-
})[] | {
|
|
36
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
37
|
-
})[] | {
|
|
38
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
39
|
-
})[] | {
|
|
40
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
41
|
-
})[] | {
|
|
42
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
43
|
-
})[] | {
|
|
44
|
-
[x: string]: string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | (string | number | boolean | /*elided*/ any | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any)[] | /*elided*/ any;
|
|
45
|
-
};
|
|
46
|
-
}, import("../shared/types.ts").ToolOutputEnvelope, undefined, JsonSchemaObject<Record<string, JsonSchema>, readonly string[] | undefined>>;
|
|
47
|
-
//# sourceMappingURL=mcp-tool-adapter.d.ts.map
|