@nuvin/nuvin-code 0.0.0-rc.18 → 0.0.0-rc.19
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/chunk-JCYYSGKS.js +1 -1
- package/dist/chunk-NX5ERSFL.js +1 -0
- package/dist/chunk-QX4BITAK.js +1 -1
- package/dist/clipboard-CPWTSEL3.js +1 -1
- package/dist/index.js +1 -1
- package/dist/root-QJBXYC45.js +1 -0
- package/dist/server-6M7BE6ZM.js +1 -0
- package/dist/web/assets/{index-C6Ga6oL9.js → index-CAtfC5jW.js} +3 -3
- package/dist/web/index.html +1 -1
- package/package.json +4 -6
- package/dist/chunk-U4RHWJPE.js +0 -1
- package/dist/root-NJI7C3W7.js +0 -1
- package/dist/server-FKMCRG2W.js +0 -1
package/dist/web/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Nuvin Web</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-CAtfC5jW.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-BGww2T_z.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvin/nuvin-code",
|
|
3
|
-
"version": "0.0.0-rc.
|
|
3
|
+
"version": "0.0.0-rc.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Interactive AI coding assistant CLI powered by Nuvin core",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,9 +34,7 @@
|
|
|
34
34
|
"supports-hyperlinks": "^3.2.0",
|
|
35
35
|
"ws": "^8.20.0",
|
|
36
36
|
"zustand": "^5.0.0",
|
|
37
|
-
"@nuvin/agent-core": "^0.0.0-rc.
|
|
38
|
-
"@nuvin/daemon": "0.1.0-rc.1",
|
|
39
|
-
"@nuvin/tui": "0.1.0-rc.1",
|
|
37
|
+
"@nuvin/agent-core": "^0.0.0-rc.15",
|
|
40
38
|
"ink": "npm:@nuvin/ink@7.0.2-alpha"
|
|
41
39
|
},
|
|
42
40
|
"devDependencies": {
|
|
@@ -50,9 +48,9 @@
|
|
|
50
48
|
"vitest": "^4.1.2",
|
|
51
49
|
"@nuvin/config": "0.1.0-rc.6",
|
|
52
50
|
"@nuvin/web": "0.0.0-rc.7",
|
|
53
|
-
"@nuvin/ink-
|
|
51
|
+
"@nuvin/ink-input": "0.1.0-rc.3",
|
|
54
52
|
"@nuvin/ink-text-input": "0.1.0-rc.4",
|
|
55
|
-
"@nuvin/ink-
|
|
53
|
+
"@nuvin/ink-virtualized-list": "0.0.1-rc.5"
|
|
56
54
|
},
|
|
57
55
|
"scripts": {
|
|
58
56
|
"build": "node scripts/build.js",
|
package/dist/chunk-U4RHWJPE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(function(_0x17334b,_0x120107){const _0x251692={_0x154466:0x86,_0x37d1b8:0x6b,_0x5b106b:0x69,_0x5c9296:0xae,_0x148fd6:0x61,_0x45fd1b:0x1d7,_0x3f5f73:0x21c,_0x197e47:0x219,_0x19fdd4:0x32,_0x39b745:0x45,_0x28c607:0x2d,_0x4afe8e:0x1d8,_0x5c415d:0x1cc,_0x3d3aed:0x1ce,_0x34b81c:0x1fb,_0x4f04aa:0x65,_0x3f99f4:0x25c},_0x3e0014={_0xd6c380:0x319};function _0x4cc08f(_0x56d95e,_0x324eb4,_0x38d439,_0x44f2f1){return _0x46ca(_0x324eb4- -_0x3e0014._0xd6c380,_0x38d439);}function _0x53e5f0(_0x7ae5c5,_0x171eef,_0x4c1280,_0x380880){return _0x46ca(_0x171eef- -0x16e,_0x4c1280);}const _0x562581=_0x17334b();while(!![]){try{const _0x237247=-parseInt(_0x53e5f0(-0x7d,-_0x251692._0x154466,-0xad,-_0x251692._0x37d1b8))/0x1*(parseInt(_0x53e5f0(-_0x251692._0x5b106b,-0x7e,-_0x251692._0x5c9296,-_0x251692._0x148fd6))/0x2)+parseInt(_0x4cc08f(-_0x251692._0x45fd1b,-0x207,-0x1eb,-0x1e0))/0x3*(parseInt(_0x4cc08f(-0x201,-0x20d,-_0x251692._0x3f5f73,-0x237))/0x4)+parseInt(_0x4cc08f(-0x25e,-0x240,-0x21d,-_0x251692._0x197e47))/0x5+-parseInt(_0x53e5f0(-_0x251692._0x19fdd4,-_0x251692._0x39b745,-_0x251692._0x28c607,-0x5d))/0x6+-parseInt(_0x4cc08f(-_0x251692._0x4afe8e,-0x1ef,-_0x251692._0x5c415d,-_0x251692._0x3d3aed))/0x7+-parseInt(_0x4cc08f(-0x1ed,-_0x251692._0x34b81c,-0x1fb,-0x228))/0x8+parseInt(_0x53e5f0(-0x32,-0x40,-_0x251692._0x37d1b8,-_0x251692._0x4f04aa))/0x9*(parseInt(_0x4cc08f(-0x228,-0x235,-_0x251692._0x3f99f4,-0x24a))/0xa);if(_0x237247===_0x120107)break;else _0x562581['push'](_0x562581['shift']());}catch(_0x425c3f){_0x562581['push'](_0x562581['shift']());}}}(_0x1bee,0x7f361));import{createRequire as _0x3943d5}from'module';const require=_0x3943d5(import.meta.url);import{e as _0x186c2a}from'./chunk-JCYYSGKS.js';function _0x2ef314(_0x37b37d,_0x4c9b8c,_0xad15bb,_0x376632){return _0x46ca(_0xad15bb-0x77,_0x4c9b8c);}_0x186c2a(),_0x186c2a();import{executeCommandHook as _0x258806}from'@nuvin/agent-core/hooks';async function A(_0x2ec7a5,_0x39fa10,_0x23058e){const _0x14e791={_0x1c184e:0x49f,_0x2b1eb2:0x4bf,_0x2f3023:0x3d5,_0x2aecb5:0x3ea,_0x5a408a:0x390,_0x4d1800:0x3e3,_0x23990b:0x3bb,_0x1600fe:0x3b6,_0x209545:0x3d2,_0x796721:0x4d4,_0x424b62:0x413,_0x2d3321:0x3f4,_0x23cdb8:0x3c8,_0x552675:0x3da,_0x3e0363:0x4d6,_0x5666f3:0x4e8,_0x5cb0f6:0x4d7,_0x453d17:0x3f7,_0x518046:0x3c1,_0x3fe698:0x3ad,_0x33b55a:0x3d2,_0x291e32:0x3bc,_0x5d86a2:0x3d6,_0x483e99:0x3df,_0x7a9755:0x4db,_0x4ecc65:0x4d1,_0x3118db:0x4cd,_0x1b9d02:0x4d3,_0x4862f7:0x4b6,_0x15ff66:0x483,_0x5b27e7:0x4a3},_0x2e34ed={_0x3a61a3:0x3be};let _0x4f0604=_0x23058e[_0xc1535a(0x4b7,0x4e1,_0x14e791._0x1c184e,_0x14e791._0x2b1eb2)]??_0x258806,_0x2dcf1b=_0x39fa10['getHooks']('UserPromptSubmit'),_0x5cede3=[];function _0xc1535a(_0x3b7246,_0x26fa2f,_0x368adc,_0x27ce61){return _0x46ca(_0x3b7246-_0x2e34ed._0x3a61a3,_0x27ce61);}for(let _0x68811e of _0x2dcf1b){let _0x5a714c=await _0x4f0604(_0x68811e['command'],{'prompt':_0x2ec7a5,'session_id':_0x23058e[_0x1c5a1b(_0x14e791._0x2f3023,0x3dc,_0x14e791._0x2f3023,0x3cd)]},_0x68811e['timeout'],_0x23058e[_0x1c5a1b(0x3c7,0x3fb,0x3f0,_0x14e791._0x2aecb5)]);if(_0x5a714c['output']?.[_0x1c5a1b(0x3eb,_0x14e791._0x5a408a,_0x14e791._0x4d1800,0x3bb)]?.['permissionDecision']==='deny')return{'allow':!0x1,'reason':_0x5a714c[_0x1c5a1b(_0x14e791._0x23990b,_0x14e791._0x1600fe,0x3d6,_0x14e791._0x209545)]?.[_0x1c5a1b(0x396,0x393,0x3c9,0x3bb)]?.[_0xc1535a(_0x14e791._0x796721,0x4a9,0x4bf,0x4ad)]??_0xc1535a(0x4c9,0x4dc,0x4a5,0x4a9)};if(_0x5a714c['status']===_0x1c5a1b(_0x14e791._0x424b62,0x3f9,_0x14e791._0x2d3321,0x3f9)||_0x5a714c[_0x1c5a1b(0x3c3,_0x14e791._0x23cdb8,_0x14e791._0x552675,_0x14e791._0x209545)]?.['decision']===_0xc1535a(_0x14e791._0x3e0363,_0x14e791._0x5666f3,_0x14e791._0x5cb0f6,0x4d7))return{'allow':!0x1,'reason':_0x5a714c[_0x1c5a1b(_0x14e791._0x453d17,_0x14e791._0x518046,_0x14e791._0x3fe698,_0x14e791._0x33b55a)]?.[_0x1c5a1b(0x400,_0x14e791._0x291e32,_0x14e791._0x5d86a2,_0x14e791._0x483e99)]??'Prompt\x20blocked\x20by\x20UserPromptSubmit\x20hook'};if(_0x5a714c['status']===_0xc1535a(_0x14e791._0x7a9755,0x4b0,0x500,_0x14e791._0x4ecc65)){let _0x410cc6=_0x5a714c[_0xc1535a(0x4af,0x491,_0x14e791._0x3118db,_0x14e791._0x1b9d02)]?.['hookSpecificOutput']?.[_0x1c5a1b(0x3a9,0x3a6,0x39b,0x3c7)];_0x410cc6&&_0x5cede3['push'](_0x410cc6);}}function _0x1c5a1b(_0x4f2bb0,_0x263139,_0x2e1d9a,_0x227124){return _0x46ca(_0x227124-0x2e1,_0x4f2bb0);}return{'allow':!0x0,..._0x5cede3['length']>0x0?{'additionalContext':_0x5cede3[_0xc1535a(0x499,_0x14e791._0x4862f7,_0x14e791._0x15ff66,_0x14e791._0x5b27e7)]('\x0a\x0a')}:{}};}function h(_0x2e352a){const _0x167eb3={_0x4ae843:0xd4,_0x27f476:0x104,_0x2285d4:0x130,_0x359c66:0x1de,_0x3c43d4:0x1ad,_0x5c6fd3:0x12e,_0x4a0089:0x139,_0x48f790:0x155,_0x46efa2:0x1e7,_0xfd1334:0x203,_0x198398:0x1f2},_0x10630e={_0x416fcf:0x213};function _0x2c7e83(_0x3a7cc6,_0x113aa7,_0x11e486,_0xa104b1){return _0x46ca(_0x3a7cc6- -_0x10630e._0x416fcf,_0xa104b1);}function _0x104266(_0x3504f3,_0x44a292,_0x294768,_0x36773f){return _0x46ca(_0x44a292- -0x2de,_0x3504f3);}if(typeof _0x2e352a=='string')return _0x2e352a;let _0x398fdc=_0x2e352a['content'];return typeof _0x398fdc==_0x2c7e83(-0xeb,-0xce,-_0x167eb3._0x4ae843,-_0x167eb3._0x27f476)?_0x398fdc:Array[_0x2c7e83(-0x12a,-0x12a,-0x154,-_0x167eb3._0x2285d4)](_0x398fdc)?_0x398fdc[_0x104266(-_0x167eb3._0x359c66,-0x1af,-0x19d,-_0x167eb3._0x3c43d4)](_0xda106a=>_0xda106a[_0x104266(-0x1cd,-0x1ce,-0x1b9,-0x1f8)]===_0x104266(-0x1d1,-0x1fc,-0x1ea,-0x223))[_0x2c7e83(-_0x167eb3._0x5c6fd3,-0x14b,-_0x167eb3._0x4a0089,-_0x167eb3._0x48f790)](_0x23cc66=>_0x23cc66[_0x104266(-0x203,-0x1fc,-0x1e7,-0x21b)])[_0x104266(-_0x167eb3._0x46efa2,-_0x167eb3._0xfd1334,-_0x167eb3._0x198398,-0x1d3)]('\x0a'):'';}function O(_0x14a633,_0x22fbea){const _0x342fa1={_0x1c01b5:0x138,_0xd4f182:0x132,_0x52e681:0x69,_0x11c7e9:0x185,_0x37cf19:0x178,_0x3a62ba:0x193},_0x51ccc0={_0x20c798:0x80},_0x48ea82={_0x5a1e1e:0x25a};let _0x584d9c=h(_0x14a633),_0x5464d4=_0x22fbea+'\x0a\x0a'+_0x584d9c;if(typeof _0x14a633==_0x3c5fb4(-_0x342fa1._0x1c01b5,-_0x342fa1._0xd4f182,-0x133,-0x160))return _0x5464d4;function _0x3c5fb4(_0x3626e3,_0x3a09da,_0x2a8c45,_0x68a2b5){return _0x46ca(_0x3a09da- -_0x48ea82._0x5a1e1e,_0x2a8c45);}let _0x3b0bd9=_0x14a633['content'],_0x44a1bd=Array[_0x4a50b7(0x8e,0x64,0x54,_0x342fa1._0x52e681)](_0x3b0bd9)?_0x3b0bd9['filter'](_0x9d09e6=>_0x9d09e6[_0x4a50b7(0x6c,0xa4,0x8e,0x90)]!=='text'):[];function _0x4a50b7(_0x355d7c,_0x1bec7a,_0x337756,_0x505038){return _0x46ca(_0x505038- -_0x51ccc0._0x20c798,_0x337756);}return{..._0x14a633,'content':[{'type':_0x3c5fb4(-_0x342fa1._0x11c7e9,-_0x342fa1._0x37cf19,-0x16b,-_0x342fa1._0x3a62ba),'text':_0x5464d4},..._0x44a1bd]};}async function V(_0x288b66,_0x1f003a){const _0xde74ed={_0x38f38e:0x91,_0x397131:0x54,_0x47032d:0x1c,_0x1312b1:0x50,_0x456efa:0x2c,_0x1c41f8:0x6f,_0x34ba9d:0x35d,_0x4e2dd4:0x349,_0x2ef895:0x371,_0x5ca20c:0x354,_0x566476:0x5d,_0x432228:0x7d,_0x1f7636:0x6a,_0x4c9c32:0x5a},_0x5549aa={_0x2536e4:0x15b},_0x17c8ee={_0x2c254e:0x28b};function _0x51c348(_0x59aec2,_0x856699,_0x208867,_0x36f2ac){return _0x46ca(_0x856699-_0x17c8ee._0x2c254e,_0x59aec2);}let _0xdd2ef6=h(_0x288b66);if(!_0xdd2ef6?.[_0x28d1d5(-0x6d,-0x7d,-_0xde74ed._0x38f38e,-_0xde74ed._0x397131)]())return{'prompt':_0x288b66};let _0x487809=await A(_0xdd2ef6,_0x1f003a[_0x28d1d5(-0x35,-0x56,-_0xde74ed._0x47032d,-_0xde74ed._0x1312b1)],{'sessionId':_0x1f003a['sessionId'],'projectDir':_0x1f003a[_0x28d1d5(-0x52,-0x44,-_0xde74ed._0x456efa,-_0xde74ed._0x1c41f8)],'executor':_0x1f003a['executor']});function _0x28d1d5(_0x4b38d7,_0x4eac54,_0x42b3af,_0xde2a8e){return _0x46ca(_0x4b38d7- -_0x5549aa._0x2536e4,_0x42b3af);}return _0x487809[_0x51c348(0x379,0x375,0x36f,_0xde74ed._0x34ba9d)]?_0x487809[_0x51c348(0x377,0x371,_0xde74ed._0x4e2dd4,0x372)]?{'prompt':O(_0x288b66,_0x487809[_0x51c348(_0xde74ed._0x2ef895,_0xde74ed._0x2ef895,_0xde74ed._0x5ca20c,0x345)])}:{'prompt':_0x288b66}:{'blocked':{'reason':_0x487809[_0x28d1d5(-_0xde74ed._0x566476,-_0xde74ed._0x432228,-_0xde74ed._0x1f7636,-_0xde74ed._0x4c9c32)]}};}_0x186c2a();import{contentFromPastedText as _0x1e155e,hasPastedImages as _0x4e9ba3}from'@nuvin/agent-core/formats';function q(_0x521ef5){return _0x4e9ba3(_0x521ef5)?{'role':'user','content':_0x1e155e(_0x521ef5)}:_0x521ef5;}_0x186c2a();function K(_0x5a0e26){return _0x5a0e26 instanceof Error?_0x5a0e26['message']:String(_0x5a0e26);}function _0x1683cb(_0x2f8df7,_0x3ee027,_0x5522e5,_0x3ab406){return _0x46ca(_0x3ee027-0x1b6,_0x3ab406);}function X(_0x3e75b9){const _0xe2b165={_0x2810a2:0x370,_0x119c44:0x332,_0x5c1310:0x342,_0x4998fe:0x327,_0x1fb38c:0x30a,_0x12b0e5:0x38,_0x37ca9e:0x315,_0x2f88f9:0x341};function _0x99e23b(_0x2fe86f,_0xa4de8,_0x43c677,_0x2418ac){return _0x46ca(_0x2418ac-0x228,_0x2fe86f);}function _0x469d50(_0x1cdf79,_0x534cfa,_0x21fe09,_0x2a3a88){return _0x46ca(_0x1cdf79- -0x10b,_0x534cfa);}return _0x3e75b9 instanceof Error?''+(_0x3e75b9['constructor'][_0x99e23b(_0xe2b165._0x2810a2,_0xe2b165._0x119c44,0x366,_0xe2b165._0x5c1310)]!==_0x99e23b(_0xe2b165._0x4998fe,0x32f,_0xe2b165._0x1fb38c,0x339)?_0x3e75b9[_0x469d50(0x15,0x16,-0x6,_0xe2b165._0x12b0e5)]['name']+':\x20':'')+_0x3e75b9[_0x99e23b(0x32b,0x32a,_0xe2b165._0x37ca9e,_0xe2b165._0x2f88f9)]:String(_0x3e75b9);}function _0x1bee(){const _0x1e0822=['y2fSBeLK','yMXVy2S','BwvZC2fNzq','BMfTzq','C3rYAw5NAwz5','yxnZAxn0yw50twvZC2fNzuLKCW','CgfZCW','ndyYmZi3mNbVyNnmzq','Dg9VBenHBgW','y29UC3rYDwn0B3i','CNvUBMLUzW','v2vIu2vHCMnO','CMvWBgfJzq','BgvUz3rO','ChjVDMLKzxjFCMv0CNK','Ag9VA1jLz2LZDhj5','y2vPBa','C3rYAw5N','mZy0ndyYmLfiufjHza','nJC3mtmWm0Dvu0vMAG','Bwf4','zgvSyxLnCW','qMfZAa','mJuYuNDeywfu','zMLSDgvY','D2fYBMLUzW','yxbWzw5K','CM9Szq','Dg9VBe1LC3nHz2vjzhm','C3bSAxq','r2XVyG','Dg9VBf9JB21WBgv0zwq','zw50CMLLCW','ywn0AxzL','mJGWotG5mhj4wLPorG','Ag9VA1nWzwnPzMLJt3v0Chv0','AM9PBG','qxnRvxnLCLrVB2W','Dg9VBf9JywXS','BMv4DeLK','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqSihjLDhj5Aw5Nia','yxnZAxn0yw50x2nODw5R','y29TBwfUza','Dgv4Da','Dg9VBa','nZm2nZmWCe55zur0','BwfW','ywrKAxrPB25HBenVBNrLEhq','C3rHCNrLzef0','odu2nZi1BNb5B1DZ','AxnbCNjHEq','ywXSB3C','DxnLCG','C2vZC2LVBKLK','CgvUzgLUzW','DhjPBq','CMvQzwn0zwq','mKjqq0fXEa','B3v0Chv0','CMvHC29UAw5N','zxHLyW','CMvZDwX0','Dg9VBenHBgXjza','tg9HzfnRAwXS','C3rYzwfTAw5NuhjLDMLLDW','CMvHC29UAw5NtwvZC2fNzuLKCW','zxHLy3v0B3i','BwvZC2fNzuLK','Bwf4qxr0zw1WDhm','zxjYB3i','C3rHCNrZv2L0Aa','CMvHC29U','C3rYDwn0DxjLza','yxr0zw1WDa','Dg9VBf9ZDgfYDgvK','Dg9VBf9YzwPLy3rLza','Dg9VBf9VDxrWDxrFy2H1BMS','vg9KB1DYAxrL','y2H1BMS','y29TCgXLDgvKqxq','yxnZAxn0yw50','r3jLCa','ChjVAMvJDerPCG','thnW','ugvYBwLZC2LVBIbKzw5PzwqGzM9YihbYB21WDa','nZi0nta4sgXhBxLO','CMvHC29UAw5Nx21LC3nHz2u','Dg9VBf9Yzxn1Bhq','CMvHC29UAw5Nx2nODw5R','DhLWzq','rxjYB3i','mtvStKXrAeG','BwvZC2fNzxm','Aw5WDxq','v2vIrMv0y2G','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U'];_0x1bee=function(){return _0x1e0822;};return _0x1bee();}_0x186c2a(),_0x186c2a();var T=new Set(['FileRead','ViewFile','Ls',_0x2ef314(0x15f,0x189,0x17f,0x1ab),_0x2ef314(0x13c,0x12e,0x14c,0x15c),_0x2ef314(0x195,0x175,0x16d,0x168),_0x1683cb(0x2a7,0x2c0,0x2d4,0x2c3),_0x2ef314(0x1ac,0x16e,0x18c,0x17a),_0x2ef314(0x1c4,0x1c7,0x199,0x18b)]),E=new Set([_0x1683cb(0x287,0x292,0x2a5,0x2ba),_0x2ef314(0x153,0x1a7,0x17b,0x1aa)]),j=new Set([...T,...E]);function st(_0x3ac5ac){return j['has'](_0x3ac5ac);}function rt(){return{'active':null,'pending':[]};}function it(_0x6fc4cb,_0x1371e8){const _0x220dd7={_0xa34f7a:0x181,_0xaafc5e:0x14d,_0x3372b3:0x153,_0x507f61:0x147},_0x479a72={_0x3f1bd4:0x1f1,_0x46337a:0x204,_0x214695:0x152},_0x1d4e90={_0x15383b:0x1eb,_0x23dfd0:0x3ea,_0x45df19:0x46};function _0x40432f(_0x5884e5,_0x5300a2,_0x47d037,_0x45e8bd){return _0x1683cb(_0x5884e5-_0x1d4e90._0x15383b,_0x45e8bd- -_0x1d4e90._0x23dfd0,_0x47d037-_0x1d4e90._0x45df19,_0x5884e5);}function _0x2f76b8(_0x3d0a07,_0x2d12bc,_0x47cbd4,_0x49f619){return _0x2ef314(_0x3d0a07-_0x479a72._0x3f1bd4,_0x49f619,_0x2d12bc- -_0x479a72._0x46337a,_0x49f619-_0x479a72._0x214695);}return _0x6fc4cb[_0x40432f(-0x134,-_0x220dd7._0xa34f7a,-0x17b,-0x15c)]?{..._0x6fc4cb,'pending':[..._0x6fc4cb[_0x40432f(-_0x220dd7._0xaafc5e,-0x16f,-_0x220dd7._0x3372b3,-_0x220dd7._0x507f61)],_0x1371e8]}:{..._0x6fc4cb,'active':_0x1371e8};}function at(_0x429921){const _0x4371bc={_0x31dd47:0x222},_0x522b49={_0x28a810:0x9a};let [_0x5d928e,..._0x242b5b]=_0x429921[_0x2d3904(0x250,_0x4371bc._0x31dd47,0x24f,0x221)];function _0x2d3904(_0x17232c,_0x446ce2,_0x4eb29a,_0x532723){return _0x1683cb(_0x17232c-0x95,_0x532723- -0x82,_0x4eb29a-_0x522b49._0x28a810,_0x17232c);}return{'active':_0x5d928e??null,'pending':_0x242b5b};}_0x186c2a();import{getReasoningTextFromMessage as _0x375766,getTextFromMessage as _0x107a2f}from'@nuvin/agent-core/formats';_0x186c2a();function S(_0x1b22cb){const _0x1d39e0={_0x343c19:0x309,_0x32c0b:0x2e9};function _0x30866e(_0x2148d7,_0x561a47,_0x46f12a,_0x10ad75){return _0x1683cb(_0x2148d7-0xe6,_0x2148d7- -0x591,_0x46f12a-0xdd,_0x46f12a);}return typeof _0x1b22cb=='object'&&_0x1b22cb!==null&&!Array[_0x30866e(-0x2f2,-_0x1d39e0._0x343c19,-0x2ff,-_0x1d39e0._0x32c0b)](_0x1b22cb)?_0x1b22cb:void 0x0;}function l(_0x556e25){return'message-'+_0x556e25['nextId'];}function p(_0x506d2a,_0x4f2ae3,_0x448163){return{..._0x506d2a,'messages':_0x506d2a['messages']['map'](_0x1a95a8=>_0x1a95a8['id']===_0x4f2ae3?_0x448163(_0x1a95a8):_0x1a95a8)};}function d(_0x4e3052,_0x13367f){const _0x552b7d={_0x5c7c51:0x131,_0x186c56:0x13e,_0x4477b0:0xaa,_0xedfdfb:0xb1,_0x5b01d7:0xb9},_0x59280e={_0x109bc8:0x8d,_0x2e6b0e:0x1db},_0x514cf8={_0x40abe9:0x195};function _0x464b2f(_0x3fd87b,_0x20b2f9,_0x23d337,_0x5537af){return _0x1683cb(_0x3fd87b-0x1dc,_0x20b2f9- -0x411,_0x23d337-_0x514cf8._0x40abe9,_0x3fd87b);}function _0x1a791c(_0x17af8a,_0x9757c0,_0x2a5946,_0x3ac8c9){return _0x1683cb(_0x17af8a-_0x59280e._0x109bc8,_0x3ac8c9- -_0x59280e._0x2e6b0e,_0x2a5946-0x1b5,_0x9757c0);}return{..._0x4e3052,'messages':[..._0x4e3052[_0x464b2f(-_0x552b7d._0x5c7c51,-0x148,-0x159,-_0x552b7d._0x186c56)],_0x13367f],'nextId':_0x4e3052[_0x1a791c(_0x552b7d._0x4477b0,_0x552b7d._0xedfdfb,0xa3,_0x552b7d._0x5b01d7)]+0x1};}function $(_0x320011,_0x2a21df){return _0x320011?_0x320011+'::'+_0x2a21df:_0x2a21df;}function m(_0x5b7d94,_0x3ff81b,_0x11f876,_0xf02039,_0x472ff7,_0x357689,_0x168a15,_0x17dd65){const _0x1b31ee={_0x5f1c3d:0x196,_0x298e7a:0x1cb},_0x5fb7d3={_0x2a8282:0xff};function _0x262ce9(_0x742978,_0x30e306,_0x143ea3,_0x29821f){return _0x1683cb(_0x742978-0x14e,_0x742978- -0x4f3,_0x143ea3-_0x5fb7d3._0x2a8282,_0x143ea3);}let _0x378a40=$(_0x17dd65,_0x11f876),_0x3056ef=_0x5b7d94[_0x3ff81b][_0x378a40];function _0x507360(_0x2ebdba,_0xf9859a,_0x48e34a,_0x336a6b){return _0x2ef314(_0x2ebdba-_0x1b31ee._0x5f1c3d,_0x48e34a,_0xf9859a- -_0x1b31ee._0x298e7a,_0x336a6b-0x1b2);}if(_0x3056ef)return p(_0x5b7d94,_0x3056ef,_0x3d54b6=>_0x3d54b6[_0x507360(-0x49,-0x22,-0x34,-0x42)]!==_0xf02039?_0x3d54b6:{..._0x3d54b6,'live':_0x168a15,'text':_0x357689==='append'?''+_0x3d54b6[_0x262ce9(-0x25b,-0x240,-0x265,-0x267)]+_0x472ff7:_0x472ff7});let _0x3c1c9c=l(_0x5b7d94),_0x2ad01e=d(_0x5b7d94,{'id':_0x3c1c9c,'role':_0xf02039,'text':_0x472ff7,'live':_0x168a15,..._0x17dd65?{'parentToolCallId':_0x17dd65}:{}});return{..._0x2ad01e,[_0x3ff81b]:{..._0x2ad01e[_0x3ff81b],[_0x378a40]:_0x3c1c9c}};}function H(_0x425f9c){const _0x412121={_0x45dbaa:0xa4,_0x326e74:0x3cf,_0x33264d:0x3e6,_0x571a80:0x11a,_0x3c9a42:0xdb,_0x1230b3:0xfe,_0x406765:0x412,_0x1ad497:0x41c,_0x257090:0x3f1,_0x2525f4:0x416,_0x4370d4:0xbc,_0x4240d7:0xb8,_0x2dae17:0xba},_0x3ef176={_0x56b947:0x10b},_0x1a84aa={_0x1620f2:0x34};let _0x3ebe81=S(_0x425f9c);if(!_0x3ebe81)return JSON[_0x206768(-0xd1,-_0x412121._0x45dbaa,-0xa9,-0xba)](_0x425f9c);let _0x2cc25d=_0x3ebe81[_0x2130fa(_0x412121._0x326e74,_0x412121._0x33264d,0x3c0,0x3f8)];function _0x2130fa(_0x3a5bf1,_0x4a539e,_0x189fe8,_0x14e807){return _0x1683cb(_0x3a5bf1-0x16a,_0x3a5bf1-0x138,_0x189fe8-_0x1a84aa._0x1620f2,_0x189fe8);}if(typeof _0x2cc25d=='string')return _0x2cc25d;function _0x206768(_0x6ce3f6,_0x75d1f,_0xc3727f,_0x4fa16d){return _0x1683cb(_0x6ce3f6-_0x3ef176._0x56b947,_0x4fa16d- -0x38b,_0xc3727f-0x1d1,_0x6ce3f6);}let _0x5dc203=Object[_0x206768(-_0x412121._0x571a80,-_0x412121._0x3c9a42,-0xf2,-_0x412121._0x1230b3)](_0x3ebe81);return _0x5dc203[_0x2130fa(_0x412121._0x406765,0x43f,_0x412121._0x1ad497,_0x412121._0x257090)]===0x1&&typeof _0x5dc203[0x0]?.[0x1]==_0x2130fa(_0x412121._0x2525f4,0x41c,0x424,0x419)?String(_0x5dc203[0x0][0x1]):JSON[_0x206768(-0x92,-_0x412121._0x4370d4,-_0x412121._0x4240d7,-_0x412121._0x2dae17)](_0x3ebe81);}var U=0x5;function B(_0x130f17){const _0x4bf13a={_0x13c210:0xbf,_0x2ac659:0xda,_0x91781c:0xd0,_0x5a5b14:0xaa,_0x4be7ba:0xca,_0x3d8572:0xf5,_0x22b752:0x114,_0x37de30:0x123},_0x4d4f9a={_0x587846:0x275,_0x5c5361:0x50},_0x3ce71f={_0x5c88d2:0x171,_0x5b9c06:0xc2};let _0x2d17ef=_0x130f17['replace'](/\s+$/,'');function _0x2e8690(_0x59e8f0,_0x492d31,_0x1879c2,_0x4e9a90){return _0x1683cb(_0x59e8f0-0x36,_0x1879c2-_0x3ce71f._0x5c88d2,_0x1879c2-_0x3ce71f._0x5b9c06,_0x492d31);}function _0x54520e(_0x5b3903,_0x103775,_0x3aa666,_0x3332a5){return _0x2ef314(_0x5b3903-0x29,_0x3332a5,_0x3aa666- -_0x4d4f9a._0x587846,_0x3332a5-_0x4d4f9a._0x5c5361);}if(_0x2d17ef[_0x54520e(-_0x4bf13a._0x13c210,-0xb5,-_0x4bf13a._0x2ac659,-_0x4bf13a._0x91781c)]===0x0)return;let _0x4faf81=_0x2d17ef[_0x54520e(-0xb8,-_0x4bf13a._0x5a5b14,-_0x4bf13a._0x4be7ba,-0xe0)]('\x0a');return{'text':_0x4faf81['slice'](-U)[_0x54520e(-_0x4bf13a._0x3d8572,-_0x4bf13a._0x22b752,-_0x4bf13a._0x37de30,-0x14e)]('\x0a'),'totalLines':_0x4faf81['length']};}function _0x46ca(_0x414e97,_0x41eebb){_0x414e97=_0x414e97-0xd5;const _0x1bee42=_0x1bee();let _0x46ca02=_0x1bee42[_0x414e97];if(_0x46ca['pPzvSE']===undefined){var _0x11832a=function(_0x2ac1ea){const _0xea59ad='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3943d5='',_0x186c2a='';for(let _0x258806=0x0,_0x1e155e,_0x4e9ba3,_0x375766=0x0;_0x4e9ba3=_0x2ac1ea['charAt'](_0x375766++);~_0x4e9ba3&&(_0x1e155e=_0x258806%0x4?_0x1e155e*0x40+_0x4e9ba3:_0x4e9ba3,_0x258806++%0x4)?_0x3943d5+=String['fromCharCode'](0xff&_0x1e155e>>(-0x2*_0x258806&0x6)):0x0){_0x4e9ba3=_0xea59ad['indexOf'](_0x4e9ba3);}for(let _0x107a2f=0x0,_0x2ec7a5=_0x3943d5['length'];_0x107a2f<_0x2ec7a5;_0x107a2f++){_0x186c2a+='%'+('00'+_0x3943d5['charCodeAt'](_0x107a2f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x186c2a);};_0x46ca['ngKIQy']=_0x11832a,_0x46ca['OHrnes']={},_0x46ca['pPzvSE']=!![];}const _0x3502d4=_0x1bee42[0x0],_0x2fc68a=_0x414e97+_0x3502d4,_0x1dca38=_0x46ca['OHrnes'][_0x2fc68a];return!_0x1dca38?(_0x46ca02=_0x46ca['ngKIQy'](_0x46ca02),_0x46ca['OHrnes'][_0x2fc68a]=_0x46ca02):_0x46ca02=_0x1dca38,_0x46ca02;}function F(_0x1fb201,_0x999d7){const _0x1981c9={_0x3358a5:0x3f3,_0x54763d:0x3b6,_0x22a6c4:0x3e6,_0x40c7a5:0x1b9,_0x47c921:0x1a3,_0x297a5d:0x1b0,_0x282b37:0x1ae,_0x4b5db0:0x18f,_0x64688f:0x19a,_0x496e42:0x1a2,_0x303566:0x1cc,_0x3812dd:0x19e,_0x55ed90:0x1c9,_0x513588:0x1ad,_0x7b8c21:0x1a4},_0x37deff={_0x2946cf:0x87,_0x5f1429:0x460,_0x1c2c3c:0x5};function _0x51f18a(_0x25da64,_0x488557,_0x44f9b1,_0x223cce){return _0x1683cb(_0x25da64-_0x37deff._0x2946cf,_0x488557- -_0x37deff._0x5f1429,_0x44f9b1-_0x37deff._0x1c2c3c,_0x223cce);}function _0x4b9af0(_0x118244,_0x26d5e3,_0x1c4b95,_0x23ee24){return _0x2ef314(_0x118244-0x3d,_0x23ee24,_0x118244-0x237,_0x23ee24-0x17a);}return _0x1fb201[_0x4b9af0(0x3d2,_0x1981c9._0x3358a5,_0x1981c9._0x54763d,_0x1981c9._0x22a6c4)]===0x0?_0x999d7[_0x51f18a(-0x19d,-_0x1981c9._0x40c7a5,-_0x1981c9._0x47c921,-_0x1981c9._0x297a5d)]:_0x999d7[_0x51f18a(-0x1d5,-0x1b9,-_0x1981c9._0x282b37,-_0x1981c9._0x4b5db0)]['length']===0x0||_0x1fb201===_0x999d7[_0x51f18a(-_0x1981c9._0x64688f,-_0x1981c9._0x40c7a5,-0x1e6,-_0x1981c9._0x496e42)]?_0x1fb201:_0x999d7[_0x51f18a(-0x1e8,-0x1b9,-_0x1981c9._0x303566,-_0x1981c9._0x3812dd)][_0x51f18a(-_0x1981c9._0x55ed90,-_0x1981c9._0x513588,-_0x1981c9._0x7b8c21,-0x1be)](_0x1fb201)?_0x999d7['output']:_0x1fb201;}function x(_0x59b9df,_0x50e723,_0x365415){const _0x291cb4={_0x1eb652:0x1f,_0x3f18c2:0x1,_0x3beb3b:0x74,_0x387a75:0x51,_0x4d4dd3:0x72,_0x53def2:0xd,_0x54bdb2:0x25,_0x3583f1:0x20,_0x4155ba:0xee,_0x30cd6d:0x131},_0x441717={_0x70ddac:0x1ab},_0x227041={_0x20d60c:0x3f1,_0x30c56e:0x184};let _0x22af73=_0x59b9df[_0x7778e6(-_0x291cb4._0x1eb652,-_0x291cb4._0x3f18c2,-0x2,-0x29)][_0x50e723['id']];function _0x6d774b(_0x4bf29f,_0x2ce48d,_0x23423e,_0x49adca){return _0x1683cb(_0x4bf29f-0x154,_0x23423e- -_0x227041._0x20d60c,_0x23423e-_0x227041._0x30c56e,_0x2ce48d);}if(_0x22af73)return p(_0x59b9df,_0x22af73,_0x476626=>_0x476626[_0x7778e6(-0xd,-0x2,0xb,-0x12)]!==_0x6d774b(-0x181,-0x16f,-0x158,-0x181)||_0x476626['input']!==void 0x0?_0x476626:{..._0x476626,'input':S(_0x50e723[_0x6d774b(-0x155,-0x10c,-0x127,-0x12d)])});function _0x7778e6(_0x37bd7d,_0x55cea5,_0x12ba62,_0x4bfe56){return _0x2ef314(_0x37bd7d-0xeb,_0x12ba62,_0x55cea5- -_0x441717._0x70ddac,_0x4bfe56-0x1e1);}let _0x257e83=l(_0x59b9df),_0x2eee9f=d(_0x59b9df,{'id':_0x257e83,'role':_0x7778e6(-_0x291cb4._0x3beb3b,-_0x291cb4._0x387a75,-_0x291cb4._0x4d4dd3,-0x45),'toolName':_0x50e723['name'],'toolCallId':_0x50e723['id'],'summary':H(_0x50e723[_0x7778e6(_0x291cb4._0x53def2,-0x20,-_0x291cb4._0x54bdb2,-0x1b)]),'text':'','status':'pending','input':S(_0x50e723[_0x7778e6(-0x3a,-_0x291cb4._0x3583f1,-0x3e,-0x25)]),..._0x365415?{'parentToolCallId':_0x365415}:{}});return{..._0x2eee9f,'toolMessageIds':{..._0x2eee9f[_0x6d774b(-_0x291cb4._0x4155ba,-0xfe,-0x108,-_0x291cb4._0x30cd6d)],[_0x50e723['id']]:_0x257e83}};}function ft(_0x1e4d7c,_0x5ef409,_0x561d4f){const _0x25baab={_0x5eb357:0x124},_0x369b11={_0x3f9bee:0x1f5};function _0x2df2e4(_0x3f47f6,_0x27e873,_0x4cf9a7,_0xe6928d){return _0x2ef314(_0x3f47f6-0x92,_0xe6928d,_0x4cf9a7-_0x369b11._0x3f9bee,_0xe6928d-0x86);}function _0x1f9759(_0x50ef6d,_0x207080,_0x2c433a,_0x11a0b8){return _0x2ef314(_0x50ef6d-_0x25baab._0x5eb357,_0x50ef6d,_0x2c433a- -0x24d,_0x11a0b8-0x18);}let _0x46e5c4=_0x1e4d7c[_0x1f9759(-0x85,-0x92,-0xa3,-0xbf)][_0x5ef409];return _0x46e5c4?p(_0x1e4d7c,_0x46e5c4,_0x14798e=>_0x14798e['role']!==_0x2df2e4(0x36c,0x335,0x34f,0x346)?_0x14798e:{..._0x14798e,'status':_0x561d4f}):_0x1e4d7c;}function P(_0x18fede,_0x2764c9,_0x42952b){const _0x101367={_0x47f1ee:0xab,_0x234be:0x8b,_0x2d90ab:0xbb,_0x1a21c6:0x70,_0x59963c:0x82,_0x4fbd17:0x58,_0x56ac1a:0x64,_0x393504:0x6f,_0x57714d:0x74,_0x2d3ba2:0x9e,_0x4e2ddc:0x3d,_0x40ef9d:0x66,_0x24847a:0x6b,_0x3b75e1:0x8d},_0x5bb38b={_0x3f7700:0x10c,_0xec432f:0x135},_0x393fdc={_0x242ab6:0x76};function _0x1892f5(_0x33e1b7,_0x392079,_0x2e0f2a,_0x5ecafd){return _0x1683cb(_0x33e1b7-0x1a5,_0x392079- -0x31b,_0x2e0f2a-_0x393fdc._0x242ab6,_0x33e1b7);}let _0xfe994b=_0x18fede[_0x1892f5(-0x54,-0x32,-0x2a,-0x23)][_0x2764c9[_0x44a934(0xb0,_0x101367._0x47f1ee,_0x101367._0x234be,_0x101367._0x2d90ab)]];function _0x44a934(_0x209719,_0x53d964,_0x38df08,_0xc84fd8){return _0x1683cb(_0x209719-_0x5bb38b._0x3f7700,_0x53d964- -0x222,_0x38df08-_0x5bb38b._0xec432f,_0xc84fd8);}return _0xfe994b?p(_0x18fede,_0xfe994b,_0x95fcbb=>_0x95fcbb[_0x1892f5(-0x3c,-0x33,-0x28,-0x15)]!==_0x44a934(0x85,0x77,0x6e,0x4c)?_0x95fcbb:{..._0x95fcbb,'completedAt':_0x95fcbb[_0x44a934(0x78,0x9a,0x84,0x8c)]??_0x42952b,'status':_0x2764c9['status'],'text':F(_0x95fcbb[_0x44a934(0x82,0x76,0x66,0x80)],_0x2764c9),'structured':_0x2764c9[_0x44a934(0xab,0x93,0xbe,0x7a)],'hidden':!0x1,'streamingPreview':void 0x0}):d(_0x18fede,{'id':l(_0x18fede),'completedAt':_0x42952b,'role':_0x1892f5(-_0x101367._0x1a21c6,-_0x101367._0x59963c,-_0x101367._0x4fbd17,-0xa7),'toolName':_0x2764c9['toolName'],'toolCallId':_0x2764c9[_0x1892f5(-0x1e,-0x4e,-_0x101367._0x56ac1a,-0x42)],'status':_0x2764c9['status'],'summary':'','text':_0x2764c9[_0x1892f5(-_0x101367._0x393504,-_0x101367._0x57714d,-0x6e,-_0x101367._0x2d3ba2)],'structured':_0x2764c9[_0x1892f5(-_0x101367._0x4e2ddc,-_0x101367._0x40ef9d,-_0x101367._0x24847a,-_0x101367._0x3b75e1)]});}function mt(){return{'assistantMessageIds':{},'messages':[],'nextId':0x1,'reasoningMessageIds':{},'toolMessageIds':{}};}function xt(_0x1b3184){const _0x1a6bb2={_0x436732:0x156,_0x201fc4:0x13c,_0x17aaa1:0x119,_0x5ad042:0xf7},_0x3bcac8={_0xeffc45:0x10c,_0x57995e:0xd4,_0x833bb1:0xf5,_0x137bec:0x94,_0x3546c2:0xc8},_0x36bdfb={_0x4b0644:0x1e8};let _0x744f6e=_0x1b3184['reduce']((_0x154eba,_0xaf0daa)=>{const _0x4d009d={_0x1665f5:0x37e};function _0x45fec1(_0x30f870,_0x3e4cec,_0x59d6e7,_0x52f510){return _0x46ca(_0x52f510- -_0x36bdfb._0x4b0644,_0x59d6e7);}let _0x4c9a86=/^message-(\d+)$/[_0x45fec1(-0xe7,-_0x3bcac8._0xeffc45,-_0x3bcac8._0x57995e,-_0x3bcac8._0x833bb1)](_0xaf0daa['id']);function _0x5261e9(_0xaf5184,_0x109ce1,_0x15ba49,_0x4dcf5a){return _0x46ca(_0xaf5184-_0x4d009d._0x1665f5,_0x4dcf5a);}return _0x4c9a86?Math[_0x45fec1(-_0x3bcac8._0x137bec,-0xbb,-_0x3bcac8._0x3546c2,-0xbd)](_0x154eba,Number(_0x4c9a86[0x1])+0x1):_0x154eba;},0x1)+_0x1b3184['length'],_0x4d8b99={};for(let _0x19c53a of _0x1b3184)_0x19c53a[_0x42a195(0x12c,_0x1a6bb2._0x436732,0x14e,_0x1a6bb2._0x201fc4)]==='tool'&&(_0x4d8b99[_0x19c53a[_0x42a195(0x137,_0x1a6bb2._0x17aaa1,_0x1a6bb2._0x5ad042,0xf6)]]=_0x19c53a['id']);function _0x42a195(_0xa01106,_0x8ff0a3,_0x3f1dbb,_0x3af8ff){return _0x1683cb(_0xa01106-0x5c,_0x8ff0a3- -0x192,_0x3f1dbb-0x3d,_0x3af8ff);}function _0x2b3df1(_0x28d41c,_0x4d823a,_0x17ac58,_0x2eed9b){return _0x1683cb(_0x28d41c-0x8f,_0x28d41c- -0x3c9,_0x17ac58-0x123,_0x4d823a);}return{'assistantMessageIds':{},'messages':_0x1b3184,'nextId':_0x744f6e,'reasoningMessageIds':{},'toolMessageIds':_0x4d8b99};}function Mt(_0x191c5c,_0x34cd39,_0x23b86d){const _0xce2418={_0x1368ab:0x20b,_0x1dfc83:0x231},_0x39a6fc={_0x44be84:0x92};function _0x365f80(_0x3f83eb,_0x2da3fc,_0x194f4e,_0x5d9bb3){return _0x1683cb(_0x3f83eb-_0x39a6fc._0x44be84,_0x2da3fc- -0x70,_0x194f4e-0x91,_0x3f83eb);}return d(_0x191c5c,{'id':l(_0x191c5c),'role':_0x365f80(_0xce2418._0x1368ab,_0xce2418._0x1dfc83,0x256,0x20f),'text':_0x34cd39,..._0x23b86d&&_0x23b86d['length']>0x0?{'attachmentLabels':_0x23b86d}:{}});}function St(_0x1a8945,_0x1877e3){const _0x3cae2e={_0x57d35f:0x295,_0x2c428d:0x2bd},_0x1a7913={_0x10e455:0x115,_0x5a5bf4:0x199};function _0x3fceb0(_0x4103c1,_0x40c9ee,_0x243513,_0xab7260){return _0x2ef314(_0x4103c1-_0x1a7913._0x10e455,_0x4103c1,_0x40c9ee- -0x417,_0xab7260-_0x1a7913._0x5a5bf4);}return d(_0x1a8945,{'id':l(_0x1a8945),'role':_0x3fceb0(-_0x3cae2e._0x57d35f,-0x2a4,-0x2b1,-_0x3cae2e._0x2c428d),'text':_0x1877e3});}function It(_0x4084b2,_0x58ed7f){return d(_0x4084b2,{'id':l(_0x4084b2),'role':'info','text':_0x58ed7f});}function J(_0x136782,_0x4c31f6){const _0x1359bf={_0x442f4d:0x1c9,_0x164696:0x1d0},_0x35d67e={_0x17592b:0x57};function _0x7dbece(_0x4c28f8,_0x50de25,_0x498105,_0x25901d){return _0x2ef314(_0x4c28f8-0x14a,_0x4c28f8,_0x50de25- -0x39e,_0x25901d-_0x35d67e._0x17592b);}return d(_0x136782,{'id':l(_0x136782),'role':_0x7dbece(-_0x1359bf._0x442f4d,-0x1f7,-_0x1359bf._0x164696,-0x1d5),'text':_0x4c31f6});}function yt(_0x117ebd,_0x3a7b12,_0x581509,_0x58893d=Date['now']()){const _0x10c484={_0x3463f:0x24f,_0x181ec8:0x270,_0x27f780:0x26a,_0x561258:0x2a0,_0x40e4b1:0x277,_0x20d2e5:0x250,_0x43556c:0x23d,_0x5b3f7f:0x23c,_0x5f3e07:0x221,_0x4d3852:0x238,_0x29ed6a:0x246,_0x5cdefd:0x298,_0x2f48d7:0x292,_0x3006ac:0x279,_0x19c94e:0x288,_0xc1203e:0x237,_0x2805c0:0x28e,_0x23115f:0x269,_0x28a7ee:0x280,_0x21a103:0x254,_0x5e259c:0x268,_0x44e268:0x266,_0x54308b:0x26d,_0x5198c5:0x28d,_0x4bae82:0x294,_0x337a26:0x282,_0x2d2ffe:0x279,_0x16cb08:0x221,_0x458db6:0x1ff,_0x482be2:0x22b,_0x31e66c:0x270,_0x4cbd21:0x243,_0x2fd5a2:0x290,_0x1fe7d9:0x24a,_0x262cb0:0x23c,_0x1af27f:0x25d,_0x2d7799:0x27e,_0x24cf0f:0x288,_0x28350e:0x231,_0x520f97:0x23f,_0x3f6c47:0x2a3,_0x58b70:0x26e,_0x26975b:0x284,_0x1ca6e3:0x262,_0x184f29:0x246,_0xe05d1a:0x253,_0x51e623:0x271,_0x351f1a:0x258,_0x2ddd68:0x23c,_0x2a72cf:0x27b,_0x24a4b1:0x240,_0x49e893:0x254,_0x4fb120:0x26f,_0x3d8cd8:0x256,_0x484791:0x238,_0x3b083d:0x299,_0x3e0840:0x272,_0x35e4a9:0x25c,_0x2c984e:0x24b,_0x4354c6:0x249,_0x500765:0x269,_0x20cb77:0x258,_0x3e2810:0x257,_0x33e512:0x272,_0xb32991:0x283,_0x4b46fd:0x23e,_0x4c4bb5:0x26b,_0x5b5e9e:0x257,_0x5f23d0:0x261,_0x1bdef3:0x243,_0x1e19d5:0x286,_0x46ea0d:0x292,_0x6aa2a3:0x23b,_0x28c5b9:0x24e,_0x445e9e:0x24d,_0x4b4c7f:0x252,_0x1ef69d:0x241,_0xf400c3:0x260,_0x18ad34:0x233,_0x961824:0x275,_0x2a726b:0x264,_0x577a7b:0x23d,_0x105db4:0x230,_0x2b27d5:0x246,_0x5e25d7:0x25b,_0x574cf5:0x255,_0x3bc7f2:0x26b,_0x16273d:0x248,_0x192d45:0x2ae,_0x15b66a:0x297,_0x26d624:0x274,_0x4966b6:0x25f,_0x46f2e0:0x27b},_0x73742b={_0x24ca00:0x367,_0x1ecefc:0x34d,_0x591488:0x311,_0x1cc547:0x315,_0x4e5691:0x320,_0x31d902:0x89,_0x5ae4f6:0x93,_0x2ad89e:0x35f,_0x47130b:0x377,_0x5854c4:0xa1,_0x105a4a:0xb1,_0x5e069c:0xd0,_0x122f00:0xc6},_0x26ee01={_0x74920:0x115},_0x429e22={_0x2cccf2:0x12e,_0x166c68:0x161,_0x58f1a3:0x5a8},_0x491389={_0x248abe:0x3ed,_0x208a38:0xda},_0x507b29={_0x4deb96:0x169};function _0x2f804c(_0x179d1b,_0x473f08,_0x311e7a,_0x483b52){return _0x2ef314(_0x179d1b-0x16f,_0x483b52,_0x179d1b-0xc8,_0x483b52-_0x507b29._0x4deb96);}function _0x2fef81(_0x308aec,_0x52003a,_0xa4b797,_0x49a15c){return _0x2ef314(_0x308aec-0x1e9,_0x308aec,_0x49a15c- -_0x491389._0x248abe,_0x49a15c-_0x491389._0x208a38);}switch(_0x3a7b12[_0x2f804c(_0x10c484._0x3463f,_0x10c484._0x181ec8,_0x10c484._0x27f780,0x221)]){case _0x2fef81(-_0x10c484._0x561258,-0x2ad,-0x2b2,-0x296):return _0x3a7b12['chunk']['text']?m(_0x117ebd,_0x2f804c(0x25b,0x230,_0x10c484._0x40e4b1,_0x10c484._0x20d2e5),_0x3a7b12[_0x2f804c(0x239,_0x10c484._0x43556c,0x23c,_0x10c484._0x5b3f7f)],'assistant',_0x3a7b12[_0x2fef81(-0x279,-0x249,-0x24f,-0x271)][_0x2f804c(_0x10c484._0x5f3e07,0x1f8,_0x10c484._0x4d3852,0x214)],_0x2f804c(_0x10c484._0x181ec8,_0x10c484._0x29ed6a,_0x10c484._0x5cdefd,_0x10c484._0x2f48d7),!0x0,_0x581509):_0x117ebd;case'assistant_message':{let _0x2632fa=_0x107a2f(_0x3a7b12[_0x2f804c(0x258,0x259,0x27a,0x231)])[_0x2fef81(-0x262,-_0x10c484._0x3006ac,-0x274,-_0x10c484._0x19c94e)]();return _0x2632fa[_0x2f804c(0x263,_0x10c484._0xc1203e,_0x10c484._0x2805c0,_0x10c484._0x23115f)]===0x0?_0x117ebd:m(_0x117ebd,_0x2fef81(-_0x10c484._0x28a7ee,-_0x10c484._0x21a103,-_0x10c484._0x5e259c,-0x25a),_0x3a7b12['message']['id'],_0x2fef81(-0x285,-0x25e,-0x267,-0x26f),_0x2632fa,'replace',!0x1,_0x581509);}case _0x2fef81(-_0x10c484._0x44e268,-0x23b,-_0x10c484._0x54308b,-0x267):return _0x3a7b12[_0x2fef81(-_0x10c484._0x5198c5,-0x268,-0x28b,-_0x10c484._0x4bae82)]?m(_0x117ebd,_0x2fef81(-_0x10c484._0x337a26,-_0x10c484._0x2d2ffe,-0x29a,-0x27e),_0x3a7b12['messageId'],_0x2f804c(0x231,0x218,0x243,0x254),_0x3a7b12[_0x2f804c(_0x10c484._0x16cb08,0x1f7,_0x10c484._0x458db6,_0x10c484._0x482be2)],_0x2f804c(_0x10c484._0x31e66c,_0x10c484._0x4cbd21,_0x10c484._0x2fd5a2,_0x10c484._0x337a26),!0x0,_0x581509):_0x117ebd;case _0x2fef81(-_0x10c484._0x1fe7d9,-0x243,-_0x10c484._0x262cb0,-_0x10c484._0x23115f):{let _0x3669de=_0x375766(_0x3a7b12[_0x2fef81(-0x289,-0x235,-0x27b,-_0x10c484._0x1af27f)])[_0x2fef81(-0x29c,-0x26e,-_0x10c484._0x2d7799,-_0x10c484._0x24cf0f)]();return _0x3669de['length']===0x0?_0x117ebd:m(_0x117ebd,_0x2f804c(_0x10c484._0xc1203e,0x247,0x22c,_0x10c484._0x28350e),_0x3a7b12[_0x2f804c(0x258,_0x10c484._0x520f97,0x231,0x282)]['id'],_0x2fef81(-_0x10c484._0x3f6c47,-_0x10c484._0x58b70,-0x296,-_0x10c484._0x26975b),_0x3669de,_0x2f804c(_0x10c484._0x1ca6e3,0x250,0x265,0x26a),!0x1,_0x581509);}case'final_message':{let _0x473800=_0x107a2f(_0x3a7b12['message'])[_0x2f804c(0x22d,0x207,_0x10c484._0x184f29,0x229)]();return _0x473800['length']===0x0?_0x117ebd:m(_0x117ebd,_0x2f804c(0x25b,_0x10c484._0xe05d1a,_0x10c484._0x51e623,0x289),_0x3a7b12[_0x2f804c(_0x10c484._0x351f1a,_0x10c484._0x2ddd68,0x263,_0x10c484._0x2a72cf)]['id'],_0x2fef81(-_0x10c484._0x24a4b1,-0x29d,-_0x10c484._0x49e893,-_0x10c484._0x4fb120),_0x473800,_0x2f804c(0x262,_0x10c484._0x3d8cd8,_0x10c484._0x484791,0x27d),!0x1,_0x581509);}case _0x2fef81(-_0x10c484._0x3b083d,-_0x10c484._0x3e0840,-0x27e,-0x299):return x(_0x117ebd,_0x3a7b12['toolCall'],_0x581509);case _0x2fef81(-_0x10c484._0x35e4a9,-_0x10c484._0x2c984e,-_0x10c484._0x4354c6,-0x275):{let _0x212c43=x(_0x117ebd,_0x3a7b12[_0x2fef81(-_0x10c484._0x500765,-_0x10c484._0x20cb77,-0x238,-_0x10c484._0x3e2810)],_0x581509),_0x49ee4c=_0x212c43[_0x2f804c(_0x10c484._0x33e512,0x252,_0x10c484._0xb32991,0x242)][_0x3a7b12[_0x2f804c(0x25e,0x282,0x244,0x235)]['id']];return p(_0x212c43,_0x49ee4c,_0xadd089=>_0xadd089[_0x2f804c(0x271,0x271,0x267,0x27d)]!==_0x2fef81(-0x2b4,-0x26e,-0x28f,-0x293)?_0xadd089:{..._0xadd089,'startedAt':_0xadd089[_0x2fef81(-0x264,-0x28b,-0x272,-0x28f)]??_0x58893d,'status':_0x2f804c(0x260,0x281,0x233,0x248)});}case _0x2f804c(0x242,0x25e,_0x10c484._0x4b46fd,_0x10c484._0x4c4bb5):{let _0x2d880e=x(_0x117ebd,_0x3a7b12[_0x2fef81(-_0x10c484._0x40e4b1,-0x229,-0x27b,-_0x10c484._0x5b5e9e)],_0x581509),_0x30eb78=_0x2d880e[_0x2fef81(-_0x10c484._0x5f23d0,-0x26c,-0x23f,-_0x10c484._0x1bdef3)][_0x3a7b12[_0x2fef81(-0x24b,-0x256,-_0x10c484._0x1e19d5,-0x257)]['id']];return p(_0x2d880e,_0x30eb78,_0x3ffb30=>{function _0x1f91c8(_0x10fb69,_0x19c342,_0x12c4a1,_0x503b5f){return _0x2fef81(_0x503b5f,_0x19c342-_0x429e22._0x2cccf2,_0x12c4a1-_0x429e22._0x166c68,_0x12c4a1-_0x429e22._0x58f1a3);}if(_0x3ffb30[_0x1f91c8(_0x73742b._0x24ca00,0x36e,0x364,_0x73742b._0x1ecefc)]!==_0x1f91c8(_0x73742b._0x591488,0x2e8,_0x73742b._0x1cc547,_0x73742b._0x4e5691))return _0x3ffb30;let _0x55e25a=''+_0x3ffb30[_0x23aadf(0x8c,0x7a,_0x73742b._0x31d902,_0x73742b._0x5ae4f6)]+_0x3a7b12['chunk']['output'];function _0x23aadf(_0x4b1328,_0x32e01d,_0x36d62b,_0x3e10fb){return _0x2f804c(_0x4b1328- -0x195,_0x32e01d-_0x26ee01._0x74920,_0x36d62b-0xa,_0x36d62b);}return{..._0x3ffb30,'text':_0x55e25a,'streamingPreview':_0x3ffb30['toolName']===_0x1f91c8(0x331,0x388,_0x73742b._0x2ad89e,_0x73742b._0x47130b)?B(_0x55e25a):_0x3ffb30[_0x23aadf(_0x73742b._0x5854c4,_0x73742b._0x105a4a,_0x73742b._0x5e069c,_0x73742b._0x122f00)]};});}case _0x2fef81(-_0x10c484._0x46ea0d,-_0x10c484._0x5cdefd,-_0x10c484._0x51e623,-_0x10c484._0x561258):{let _0xae5efd=x(_0x117ebd,_0x3a7b12[_0x2fef81(-_0x10c484._0x6aa2a3,-0x270,-_0x10c484._0x28c5b9,-_0x10c484._0x5b5e9e)],_0x581509);return P(_0xae5efd,_0x3a7b12['result'],_0x58893d);}case _0x2f804c(_0x10c484._0x445e9e,_0x10c484._0x4b4c7f,0x235,0x225):return P(_0x117ebd,_0x3a7b12['result'],_0x58893d);case _0x2f804c(_0x10c484._0x1ef69d,0x21c,_0x10c484._0xf400c3,_0x10c484._0x20cb77):{let _0x151b4e=x(_0x117ebd,_0x3a7b12[_0x2fef81(-_0x10c484._0x18ad34,-0x274,-_0x10c484._0x961824,-0x257)],_0x581509),_0x542429=_0x151b4e[_0x2fef81(-_0x10c484._0x28c5b9,-0x21e,-_0x10c484._0x20cb77,-0x243)][_0x3a7b12['toolCall']['id']];return p(_0x151b4e,_0x542429,_0x3c74ca=>_0x3c74ca[_0x2fef81(-0x232,-0x236,-0x242,-0x244)]!=='tool'?_0x3c74ca:{..._0x3c74ca,'completedAt':_0x3c74ca['completedAt']??_0x58893d,'status':_0x2f804c(0x22e,0x223,0x231,0x243),'text':_0x3a7b12[_0x2f804c(0x233,0x22c,0x22b,0x20d)][_0x2f804c(0x230,0x220,0x24d,0x207)],'structured':_0x3a7b12['result'][_0x2fef81(-0x257,-0x260,-0x24b,-0x277)]});}case _0x2f804c(_0x10c484._0x2a726b,_0x10c484._0x577a7b,_0x10c484._0x28a7ee,0x246):{let _0x1eab14=Math[_0x2fef81(-_0x10c484._0x105db4,-_0x10c484._0x2b27d5,-_0x10c484._0x5e25d7,-_0x10c484._0x2c984e)](0x1,Math[_0x2f804c(_0x10c484._0x44e268,0x26d,_0x10c484._0x574cf5,_0x10c484._0x28a7ee)](_0x3a7b12[_0x2f804c(_0x10c484._0x3bc7f2,0x28b,_0x10c484._0x54308b,_0x10c484._0x16273d)]/0x3e8)),_0x100302=_0x3a7b12['delayMs']>0x0?'in\x20'+_0x1eab14+'s':'now';return J(_0x117ebd,_0x2fef81(-0x2ad,-_0x10c484._0x192d45,-0x2c7,-_0x10c484._0x15b66a)+_0x100302+'\x20('+_0x3a7b12[_0x2fef81(-_0x10c484._0x445e9e,-0x27e,-_0x10c484._0x26d624,-0x276)]+'/'+_0x3a7b12[_0x2fef81(-0x261,-_0x10c484._0x4966b6,-0x269,-_0x10c484._0x46f2e0)]+')…');}default:return _0x117ebd;}}export{V as a,K as b,X as c,q as d,T as e,st as f,rt as g,it as h,at as i,S as j,ft as k,mt as l,xt as m,Mt as n,St as o,It as p,yt as q};
|