@nuvin/nuvin-code 0.0.0-rc.5 → 0.0.0-rc.6
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/README.md +25 -6
- package/dist/README.md +25 -6
- package/dist/VERSION +2 -2
- package/dist/chunk-H6WTS2D2.js +1 -0
- package/dist/index.js +1 -1
- package/dist/server-MD34YHEB.js +1 -0
- package/package.json +3 -3
- package/dist/chunk-34STJR3J.js +0 -1
- package/dist/server-E72ZUMJW.js +0 -1
package/README.md
CHANGED
|
@@ -196,14 +196,33 @@ Navigate with `Tab`, confirm with `Enter`, dismiss with `Escape`.
|
|
|
196
196
|
|
|
197
197
|
## Theming
|
|
198
198
|
|
|
199
|
-
The theme system automatically adapts to your terminal
|
|
199
|
+
The theme system automatically adapts to your terminal environment, providing a polished visual experience across a wide range of terminal emulators and color capabilities.
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
2. **Color Level** — Reads `FORCE_COLOR` / `NO_COLOR` or probes `stdout.getColorDepth()`
|
|
203
|
-
3. **Backgrounds** — Enables colored surface fills only when truecolor/256-color is available (off by default in light mode)
|
|
204
|
-
4. **Dim Variant** — When a modal opens, all background colors blend toward a neutral target so the overlay stands out
|
|
201
|
+
### Detection Pipeline
|
|
205
202
|
|
|
206
|
-
|
|
203
|
+
On startup, the theme engine runs a detection pipeline in this order:
|
|
204
|
+
|
|
205
|
+
1. **Mode** — Detects light vs. dark background via `COLORFGBG` environment variable or `NUVIN_THEME_MODE` override
|
|
206
|
+
2. **Color Level** — Reads `FORCE_COLOR` / `NO_COLOR` or probes `stdout.getColorDepth()` to determine the terminal's color capabilities
|
|
207
|
+
3. **Backgrounds** — Enables colored surface fills only when truecolor/256-color is available (disabled by default in light mode)
|
|
208
|
+
4. **Dim Variant** — When a modal opens, all background colors blend toward a neutral target so the overlay stands out visually
|
|
209
|
+
|
|
210
|
+
### Accessing the Theme
|
|
211
|
+
|
|
212
|
+
The resolved theme is available throughout the application:
|
|
213
|
+
|
|
214
|
+
- **React components** — use the `useTheme()` hook for reactive updates
|
|
215
|
+
- **Vanilla JS code** — call `getTheme()` for a synchronous snapshot (no re-renders)
|
|
216
|
+
|
|
217
|
+
### Customization Points
|
|
218
|
+
|
|
219
|
+
| Setting | Env Variable | Config Key | Values |
|
|
220
|
+
|---------|-------------|------------|--------|
|
|
221
|
+
| Mode | `NUVIN_THEME_MODE` | `theme.mode` | `"dark"`, `"light"`, `"auto"` |
|
|
222
|
+
| Background fills | `NUVIN_THEME_BACKGROUNDS` | `theme.backgrounds` | `"on"`, `"off"`, `"auto"` |
|
|
223
|
+
| Message style | `NUVIN_MESSAGE_STYLE` | `theme.messageStyle` | `"plain"`, `"tinted"` |
|
|
224
|
+
| Color depth override | `FORCE_COLOR` | — | `0`–`3` |
|
|
225
|
+
| Disable colors | `NO_COLOR` | — | any value |
|
|
207
226
|
|
|
208
227
|
---
|
|
209
228
|
|
package/dist/README.md
CHANGED
|
@@ -196,14 +196,33 @@ Navigate with `Tab`, confirm with `Enter`, dismiss with `Escape`.
|
|
|
196
196
|
|
|
197
197
|
## Theming
|
|
198
198
|
|
|
199
|
-
The theme system automatically adapts to your terminal
|
|
199
|
+
The theme system automatically adapts to your terminal environment, providing a polished visual experience across a wide range of terminal emulators and color capabilities.
|
|
200
200
|
|
|
201
|
-
|
|
202
|
-
2. **Color Level** — Reads `FORCE_COLOR` / `NO_COLOR` or probes `stdout.getColorDepth()`
|
|
203
|
-
3. **Backgrounds** — Enables colored surface fills only when truecolor/256-color is available (off by default in light mode)
|
|
204
|
-
4. **Dim Variant** — When a modal opens, all background colors blend toward a neutral target so the overlay stands out
|
|
201
|
+
### Detection Pipeline
|
|
205
202
|
|
|
206
|
-
|
|
203
|
+
On startup, the theme engine runs a detection pipeline in this order:
|
|
204
|
+
|
|
205
|
+
1. **Mode** — Detects light vs. dark background via `COLORFGBG` environment variable or `NUVIN_THEME_MODE` override
|
|
206
|
+
2. **Color Level** — Reads `FORCE_COLOR` / `NO_COLOR` or probes `stdout.getColorDepth()` to determine the terminal's color capabilities
|
|
207
|
+
3. **Backgrounds** — Enables colored surface fills only when truecolor/256-color is available (disabled by default in light mode)
|
|
208
|
+
4. **Dim Variant** — When a modal opens, all background colors blend toward a neutral target so the overlay stands out visually
|
|
209
|
+
|
|
210
|
+
### Accessing the Theme
|
|
211
|
+
|
|
212
|
+
The resolved theme is available throughout the application:
|
|
213
|
+
|
|
214
|
+
- **React components** — use the `useTheme()` hook for reactive updates
|
|
215
|
+
- **Vanilla JS code** — call `getTheme()` for a synchronous snapshot (no re-renders)
|
|
216
|
+
|
|
217
|
+
### Customization Points
|
|
218
|
+
|
|
219
|
+
| Setting | Env Variable | Config Key | Values |
|
|
220
|
+
|---------|-------------|------------|--------|
|
|
221
|
+
| Mode | `NUVIN_THEME_MODE` | `theme.mode` | `"dark"`, `"light"`, `"auto"` |
|
|
222
|
+
| Background fills | `NUVIN_THEME_BACKGROUNDS` | `theme.backgrounds` | `"on"`, `"off"`, `"auto"` |
|
|
223
|
+
| Message style | `NUVIN_MESSAGE_STYLE` | `theme.messageStyle` | `"plain"`, `"tinted"` |
|
|
224
|
+
| Color depth override | `FORCE_COLOR` | — | `0`–`3` |
|
|
225
|
+
| Disable colors | `NO_COLOR` | — | any value |
|
|
207
226
|
|
|
208
227
|
---
|
|
209
228
|
|
package/dist/VERSION
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0xffc235,_0xaab6c4){const _0x5ebd4d={_0x448cc9:0x2d5,_0x335bc2:0x2c2,_0x17323b:0x2cd,_0x4e5b6b:0x2e6,_0x295d42:0x2b9,_0x5453a2:0x2c3,_0x4d377d:0x204,_0x42b7db:0x226,_0x5367d1:0x207,_0x102412:0x21a,_0x8ed477:0x214,_0x4bbfeb:0x230,_0x414005:0x203,_0x21c070:0x308,_0xd705d:0x2ef,_0x30ade4:0x1f7,_0x44a25f:0x1e0,_0xf7b45d:0x1fd},_0x2648f7={_0x93c335:0x17a};function _0x26a6f4(_0x8b9421,_0x4eb3be,_0x174838,_0x3fea41){return _0x5bf8(_0x3fea41-_0x2648f7._0x93c335,_0x174838);}const _0xa62f21=_0xffc235();function _0x318350(_0x48c215,_0x152fd5,_0x592b10,_0x351718){return _0x5bf8(_0x592b10- -0x37c,_0x48c215);}while(!![]){try{const _0x29fd62=parseInt(_0x26a6f4(_0x5ebd4d._0x448cc9,0x2f8,0x2c1,0x2e5))/0x1+-parseInt(_0x26a6f4(_0x5ebd4d._0x335bc2,0x2d5,_0x5ebd4d._0x17323b,_0x5ebd4d._0x4e5b6b))/0x2*(-parseInt(_0x26a6f4(0x2cc,0x2c0,0x2df,_0x5ebd4d._0x295d42))/0x3)+parseInt(_0x26a6f4(0x2af,0x2bf,0x2e7,_0x5ebd4d._0x5453a2))/0x4+parseInt(_0x318350(-_0x5ebd4d._0x4d377d,-0x23a,-_0x5ebd4d._0x42b7db,-_0x5ebd4d._0x5367d1))/0x5+parseInt(_0x318350(-0x216,-0x226,-_0x5ebd4d._0x102412,-_0x5ebd4d._0x8ed477))/0x6+parseInt(_0x318350(-0x22e,-_0x5ebd4d._0x4bbfeb,-0x220,-_0x5ebd4d._0x414005))/0x7+parseInt(_0x26a6f4(_0x5ebd4d._0x21c070,0x315,0x306,_0x5ebd4d._0xd705d))/0x8*(-parseInt(_0x318350(-_0x5ebd4d._0x30ade4,-_0x5ebd4d._0x44a25f,-_0x5ebd4d._0xf7b45d,-0x20b))/0x9);if(_0x29fd62===_0xaab6c4)break;else _0xa62f21['push'](_0xa62f21['shift']());}catch(_0x319962){_0xa62f21['push'](_0xa62f21['shift']());}}}(_0x5754,0xe84b5));import{createRequire as _0x38354e}from'module';const require=_0x38354e(import.meta.url);var R=Object[_0x14debc(-0x153,-0x138,-0x12b,-0x116)],x=Object[_0x14debc(-0x136,-0x13e,-0x149,-0x14f)],b=Object['getOwnPropertyDescriptor'],k=Object['getOwnPropertyNames'],j=Object[_0x2fa701(0x268,0x285,0x2a7,0x286)],J=Object['prototype']['hasOwnProperty'],F=(_0x399850=>typeof require<'u'?require:typeof Proxy<'u'?new Proxy(_0x399850,{'get':(_0x42b9ad,_0x2267b9)=>(typeof require<'u'?require:_0x42b9ad)[_0x2267b9]}):_0x399850)(function(_0x3df981){const _0xaf6c3d={_0x5bef69:0x393,_0x36bccc:0x382,_0x362d3e:0x3d0,_0x3e8c79:0x3c6,_0x5196f0:0x3b1,_0x3108ae:0x3b9},_0x5435f0={_0x2e6fdd:0xd6,_0x19c8cd:0x148},_0x52dbf3={_0x5189af:0x2,_0xd753b1:0x340,_0x2e0741:0x122};if(typeof require<'u')return require['apply'](this,arguments);function _0x14ee0d(_0x4097bf,_0x5522f7,_0x57c0b9,_0xf72476){return _0x2fa701(_0x4097bf-_0x52dbf3._0x5189af,_0xf72476- -_0x52dbf3._0xd753b1,_0x57c0b9-_0x52dbf3._0x2e0741,_0x4097bf);}function _0x35d317(_0x8586cc,_0x9da233,_0x518382,_0x5618f1){return _0x2fa701(_0x8586cc-_0x5435f0._0x2e6fdd,_0x9da233-_0x5435f0._0x19c8cd,_0x518382-0x18,_0x8586cc);}throw Error(_0x35d317(_0xaf6c3d._0x5bef69,0x386,_0xaf6c3d._0x36bccc,0x38e)+_0x3df981+_0x35d317(_0xaf6c3d._0x362d3e,_0xaf6c3d._0x3e8c79,_0xaf6c3d._0x5196f0,_0xaf6c3d._0x3108ae));}),D=(_0x57730d,_0x34a07e)=>()=>(_0x57730d&&(_0x34a07e=_0x57730d(_0x57730d=0x0)),_0x34a07e),P=(_0x2058e5,_0x34c91d)=>()=>(_0x34c91d||_0x2058e5((_0x34c91d={'exports':{}})[_0x2fa701(0x261,0x269,0x265,0x249)],_0x34c91d),_0x34c91d[_0x2fa701(0x251,0x269,0x252,0x27f)]),Q=(_0x3285b4,_0x25e44e)=>{for(var _0x193a75 in _0x25e44e)x(_0x3285b4,_0x193a75,{'get':_0x25e44e[_0x193a75],'enumerable':!0x0});},E=(_0x32c2ed,_0x534015,_0x277131,_0x2d21ef)=>{const _0x29e9f4={_0x24f848:0x144,_0x366715:0x123,_0x110fe0:0x12d},_0x3e6e94={_0x13ab18:0x28,_0x34b0d7:0x13b};function _0x20da53(_0x501607,_0x56811e,_0x1ca5f5,_0x1de926){return _0x14debc(_0x501607-0x1b2,_0x1de926-_0x3e6e94._0x13ab18,_0x1ca5f5-_0x3e6e94._0x34b0d7,_0x56811e);}if(_0x534015&&typeof _0x534015=='object'||typeof _0x534015=='function'){for(let _0x3cd00a of k(_0x534015))!J[_0x20da53(-0x131,-_0x29e9f4._0x24f848,-_0x29e9f4._0x366715,-_0x29e9f4._0x110fe0)](_0x32c2ed,_0x3cd00a)&&_0x3cd00a!==_0x277131&&x(_0x32c2ed,_0x3cd00a,{'get':()=>_0x534015[_0x3cd00a],'enumerable':!(_0x2d21ef=b(_0x534015,_0x3cd00a))||_0x2d21ef['enumerable']});}return _0x32c2ed;},V=(_0x1f6bfd,_0x26c284,_0x57c996)=>(_0x57c996=_0x1f6bfd!=null?R(j(_0x1f6bfd)):{},E(_0x26c284||!_0x1f6bfd||!_0x1f6bfd[_0x2fa701(0x235,0x244,0x254,0x224)]?x(_0x57c996,_0x2fa701(0x255,0x25e,0x282,0x26b),{'value':_0x1f6bfd,'enumerable':!0x0}):_0x57c996,_0x1f6bfd));import _0x298b79 from'path';import{fileURLToPath as _0x4c73d8}from'url';function _0x2fa701(_0x5e98b0,_0x82dacd,_0x4ec624,_0x258d27){return _0x5bf8(_0x82dacd-0x103,_0x258d27);}var i=D(()=>{'use strict';});i();function z(_0x2e2f09){const _0x456f15={_0x18317f:0x23e},_0x13387f={_0x298622:0x3a};function _0x361ac1(_0x2a52b5,_0x50f735,_0x5ae4c9,_0x2397b3){return _0x14debc(_0x2a52b5-_0x13387f._0x298622,_0x2397b3- -0xfe,_0x5ae4c9-0x67,_0x2a52b5);}return _0x2e2f09 instanceof Error?_0x2e2f09[_0x361ac1(-_0x456f15._0x18317f,-0x23e,-0x24d,-0x23d)]:String(_0x2e2f09);}function _0x5754(){const _0x236502=['r2XVyG','C3rYAw5N','CMvQzwn0zwq','y3jLyxrL','Dg9VBf9JywXS','nJCWndu2mKrmrMffDW','v2vIu2vHCMnO','CMvZDwX0','zw50CMLLCW','zxHWB3j0CW','Dg9VBe1LC3nHz2vjzhm','Dg9VBf9YzwPLy3rLza','AxnbCNjHEq','Dg9VBenHBgXjza','mtK2ofHvuhrmta','nNzUz2fWCW','C3rYDwn0DxjLza','DhLWzq','BwvZC2fNzuLK','Aw5WDxq','CMvHC29UAw5Nx2nODw5R','yxnZAxn0yw50twvZC2fNzuLKCW','y29TBwfUza','C3rHCNrZv2L0Aa','ndm1ndK4nhziuNnNEq','AgfZ','yxnZAxn0yw50x21LC3nHz2u','BwvZC2fNzs0','CMvWBgfJzq','Dg9VBe5HBwu','iIbPCYbUB3qGC3vWCg9YDgvK','BwfW','CMvHC29UAw5N','y2H1BMS','ntrVrNLnzxO','BwvZC2fNzxm','Dg9VBenHBgW','z2v0uhjVDg90ExbLt2y','zMLUywXFBwvZC2fNzq','BgvUz3rO','Dg9VBf9VDxrWDxrFy2H1BMS','rhLUyw1PyYbYzxf1AxjLig9Mici','Dgv4Da','yxnZAxn0yw50','Bwf4','mtC0mde1m2PmAeriuq','BhnW','x19LC01VzhvSzq','BMv4DeLK','y2fSBa','C3rYAw5NAwz5','DhjPBq','v2vIrMv0y2G','y2fSBeLK','Dg9VBa','mZe1mJa5nLj3r3nbAq','CMvHC29UAw5NtwvZC2fNzuLKCW','B3v0Chv0','B2jQzwn0','CM9Szq','r3jLCa','CgvUzgLUzW','C3rHDhvZ','yxbWzw5K','ywn0AxzL','zxHLyW','rMLSzvjLywq','CMvKDwnL','mtC2oty1mernBKvJuG','DxnLCG','BMfTzq','BwvZC2fNzq','zgvMAw5LuhjVCgvYDhK','zgvMyxvSDa','mtuXmZq5mvLZtwXWtG'];_0x5754=function(){return _0x236502;};return _0x5754();}i(),i();var y=new Set([_0x14debc(-0x151,-0x144,-0x16a,-0x131),'ViewFile','Ls',_0x14debc(-0x16f,-0x14a,-0x13d,-0x141),_0x14debc(-0x139,-0x13b,-0x161,-0x12f),'LoadSkill',_0x2fa701(0x240,0x243,0x234,0x241),_0x2fa701(0x22e,0x249,0x262,0x24d),_0x2fa701(0x248,0x266,0x282,0x25c)]),N=y;function _0x5bf8(_0x30740a,_0x8c04c4){_0x30740a=_0x30740a-0x13a;const _0x575426=_0x5754();let _0x5bf838=_0x575426[_0x30740a];if(_0x5bf8['yGITap']===undefined){var _0x41caef=function(_0xe4d6a2){const _0x17f8c0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x38354e='',_0x298b79='';for(let _0x4c73d8=0x0,_0x53a526,_0x435949,_0x399850=0x0;_0x435949=_0xe4d6a2['charAt'](_0x399850++);~_0x435949&&(_0x53a526=_0x4c73d8%0x4?_0x53a526*0x40+_0x435949:_0x435949,_0x4c73d8++%0x4)?_0x38354e+=String['fromCharCode'](0xff&_0x53a526>>(-0x2*_0x4c73d8&0x6)):0x0){_0x435949=_0x17f8c0['indexOf'](_0x435949);}for(let _0x42b9ad=0x0,_0x2267b9=_0x38354e['length'];_0x42b9ad<_0x2267b9;_0x42b9ad++){_0x298b79+='%'+('00'+_0x38354e['charCodeAt'](_0x42b9ad)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x298b79);};_0x5bf8['ikTdca']=_0x41caef,_0x5bf8['NiEJYR']={},_0x5bf8['yGITap']=!![];}const _0x1e5aa=_0x575426[0x0],_0x3be2af=_0x30740a+_0x1e5aa,_0x32814b=_0x5bf8['NiEJYR'][_0x3be2af];return!_0x32814b?(_0x5bf838=_0x5bf8['ikTdca'](_0x5bf838),_0x5bf8['NiEJYR'][_0x3be2af]=_0x5bf838):_0x5bf838=_0x32814b,_0x5bf838;}function ee(_0x391696){const _0x4aece4={_0x421376:0x465},_0x157ca0={_0x522306:0x39,_0x10d046:0x212,_0x13b217:0x2a};function _0x3a1fea(_0x3f72d4,_0x50db8b,_0x3be07f,_0x5be596){return _0x2fa701(_0x3f72d4-_0x157ca0._0x522306,_0x3be07f-_0x157ca0._0x10d046,_0x3be07f-_0x157ca0._0x13b217,_0x50db8b);}return N[_0x3a1fea(0x482,0x497,0x48b,_0x4aece4._0x421376)](_0x391696);}function te(){return{'active':null,'pending':[]};}function se(_0x4790d9,_0x56ae45){const _0x5b7116={_0x579d3e:0x3ab,_0x5ccde5:0x39a,_0x31d74d:0x27d,_0x500ee9:0x270,_0x3075dd:0x27f},_0x390b8f={_0x424efc:0xa2,_0x69e6c5:0x4f1,_0x35f47f:0x5b},_0x75a31f={_0x53196f:0x17,_0x560844:0x4cf};function _0x2ee0a7(_0xc07739,_0x59fa91,_0xb27e70,_0x2aef9b){return _0x2fa701(_0xc07739-_0x75a31f._0x53196f,_0x59fa91- -_0x75a31f._0x560844,_0xb27e70-0x16f,_0xc07739);}function _0x215ace(_0x42f698,_0x5e1031,_0x45bfd3,_0x3ed1f1){return _0x14debc(_0x42f698-_0x390b8f._0x424efc,_0x5e1031-_0x390b8f._0x69e6c5,_0x45bfd3-_0x390b8f._0x35f47f,_0x45bfd3);}return _0x4790d9[_0x215ace(0x3c2,_0x5b7116._0x579d3e,_0x5b7116._0x5ccde5,0x38e)]?{..._0x4790d9,'pending':[..._0x4790d9[_0x2ee0a7(-0x27c,-_0x5b7116._0x31d74d,-_0x5b7116._0x500ee9,-_0x5b7116._0x3075dd)],_0x56ae45]}:{..._0x4790d9,'active':_0x56ae45};}function ne(_0x119e0e){let [_0x46fdf3,..._0x499584]=_0x119e0e['pending'];return{'active':_0x46fdf3??null,'pending':_0x499584};}i();import{getReasoningTextFromMessage as _0x53a526,getTextFromMessage as _0x435949}from'@nuvin/agent-core/formats';i();function m(_0xbf3f13){const _0xd6beef={_0x28cc34:0x17,_0x1342ff:0x1e,_0x2e1522:0x47,_0x55fd0e:0x2e,_0x45115a:0x2a},_0x69881b={_0x1ae9f1:0x36,_0x25eb4d:0x242},_0x3d508d={_0x1264be:0x1b1,_0x205b15:0xd9};function _0x250744(_0x4ba4e0,_0x2b3c3c,_0x195780,_0x59c90d){return _0x2fa701(_0x4ba4e0-0x1bf,_0x59c90d-_0x3d508d._0x1264be,_0x195780-_0x3d508d._0x205b15,_0x195780);}function _0x4af272(_0x827964,_0x3a0558,_0x26918e,_0x2fbdcb){return _0x2fa701(_0x827964-_0x69881b._0x1ae9f1,_0x26918e- -_0x69881b._0x25eb4d,_0x26918e-0x161,_0x827964);}return typeof _0xbf3f13==_0x4af272(0xa,_0xd6beef._0x28cc34,0xd,_0xd6beef._0x1342ff)&&_0xbf3f13!==null&&!Array[_0x4af272(_0xd6beef._0x2e1522,_0xd6beef._0x55fd0e,_0xd6beef._0x45115a,0x32)](_0xbf3f13)?_0xbf3f13:void 0x0;}function g(_0x5ec7c8){const _0x30685a={_0x267b29:0x10a,_0x20b79f:0x127,_0x339c58:0xe2},_0x581834={_0x9ffc45:0x44,_0x4458f8:0xd},_0x41b57e={_0x46ccfd:0x45,_0x101c51:0x14e};function _0x26eb8a(_0x11b261,_0x41a529,_0x49e6d1,_0x2915f9){return _0x2fa701(_0x11b261-_0x41b57e._0x46ccfd,_0x11b261- -0x5,_0x49e6d1-_0x41b57e._0x101c51,_0x41a529);}function _0x3bbac6(_0x1f0ed5,_0x3bb474,_0x419a2b,_0x32a203){return _0x2fa701(_0x1f0ed5-_0x581834._0x9ffc45,_0x419a2b- -0x154,_0x419a2b-_0x581834._0x4458f8,_0x1f0ed5);}return _0x3bbac6(0x139,_0x30685a._0x267b29,_0x30685a._0x20b79f,0x134)+_0x5ec7c8[_0x3bbac6(0xe5,_0x30685a._0x339c58,0xf1,0x105)];}function u(_0x149080,_0x17f3d7,_0xb828d1){const _0x3d2b3e={_0x561487:0x9b,_0x2ceae0:0x1f6,_0x16c015:0x1de},_0x23b41e={_0x8a1acb:0x185,_0x111fc3:0x1de},_0x541043={_0x3e9423:0xb6,_0x211a27:0x52};function _0x4db514(_0x5bb2a7,_0x4a0215,_0xe95ec1,_0x236e5c){return _0x14debc(_0x5bb2a7-0x71,_0x5bb2a7- -_0x541043._0x3e9423,_0xe95ec1-_0x541043._0x211a27,_0x4a0215);}function _0x977b60(_0x3148f4,_0x50ced3,_0x417793,_0x39e813){return _0x14debc(_0x3148f4-_0x23b41e._0x8a1acb,_0x50ced3-0x6c,_0x417793-_0x23b41e._0x111fc3,_0x417793);}return{..._0x149080,'messages':_0x149080[_0x977b60(-_0x3d2b3e._0x561487,-0xac,-0xc1,-0x9e)][_0x4db514(-0x1d2,-0x1da,-_0x3d2b3e._0x2ceae0,-_0x3d2b3e._0x16c015)](_0x1853a9=>_0x1853a9['id']===_0x17f3d7?_0xb828d1(_0x1853a9):_0x1853a9)};}function c(_0x478a81,_0xad8484){const _0x315382={_0x3c119f:0xf6,_0x42ed8f:0x101,_0x310fa1:0xfb,_0x381cd9:0x203,_0x76bd34:0x20c},_0x33fd7d={_0x25c6e1:0x196};function _0x14c111(_0x33a08d,_0x53473d,_0x53caa1,_0x22f71c){return _0x2fa701(_0x33a08d-0xe9,_0x53473d- -0x384,_0x53caa1-0xea,_0x22f71c);}function _0x24d79f(_0x3d803c,_0x175c5b,_0x30c8ef,_0x14ebb4){return _0x2fa701(_0x3d803c-0x1ce,_0x30c8ef- -0x432,_0x30c8ef-_0x33fd7d._0x25c6e1,_0x175c5b);}return{..._0x478a81,'messages':[..._0x478a81[_0x14c111(-_0x315382._0x3c119f,-_0x315382._0x42ed8f,-_0x315382._0x310fa1,-0x10a)],_0xad8484],'nextId':_0x478a81[_0x24d79f(-_0x315382._0x381cd9,-_0x315382._0x76bd34,-0x1ed,-0x1d7)]+0x1};}function U(_0x231b79,_0x5b2de8){return _0x231b79?_0x231b79+'::'+_0x5b2de8:_0x5b2de8;}function l(_0x1c5513,_0x39bb19,_0x2f43dc,_0x399774,_0x45b480,_0x282fdc,_0x4cd991,_0x1857c4){const _0x34e1af={_0x2e6384:0x1ec},_0x6d2028={_0x526417:0x2d};function _0x503484(_0x2a6ba3,_0x18dc3c,_0x594a09,_0x5ab32d){return _0x2fa701(_0x2a6ba3-0x85,_0x18dc3c- -0x9c,_0x594a09-_0x6d2028._0x526417,_0x5ab32d);}function _0x12fef2(_0x39b733,_0x2db247,_0xa108cd,_0x5f30f1){return _0x14debc(_0x39b733-0x1c9,_0x2db247-0x3f3,_0xa108cd-_0x34e1af._0x2e6384,_0xa108cd);}let _0xb08d22=U(_0x1857c4,_0x2f43dc),_0x36c641=_0x1c5513[_0x39bb19][_0xb08d22];if(_0x36c641)return u(_0x1c5513,_0x36c641,_0x5acbcb=>_0x5acbcb[_0x503484(0x1a6,0x1b4,0x1a5,0x1d5)]!==_0x399774?_0x5acbcb:{..._0x5acbcb,'live':_0x4cd991,'text':_0x282fdc===_0x12fef2(0x2a7,0x2ac,0x2a3,0x2cb)?''+_0x5acbcb['text']+_0x45b480:_0x45b480});let _0x1323ba=g(_0x1c5513),_0x29e975=c(_0x1c5513,{'id':_0x1323ba,'role':_0x399774,'text':_0x45b480,'live':_0x4cd991,..._0x1857c4?{'parentToolCallId':_0x1857c4}:{}});return{..._0x29e975,[_0x39bb19]:{..._0x29e975[_0x39bb19],[_0xb08d22]:_0x1323ba}};}function $(_0x327354){const _0x46f60b={_0x1a4717:0x1cd,_0x4d9099:0x19f,_0x3ff821:0x1bb,_0x4f2e7e:0x191,_0xe90fb:0x18d,_0x376695:0x183,_0x2e3bf2:0x173,_0x2c55fe:0x19f,_0x382eb6:0x198,_0x39185d:0x172,_0x3f24e3:0x18f,_0x488d4f:0x1a5,_0x47668e:0x20,_0x2d9f87:0x12},_0x5ce524={_0x27ef46:0x5e};let _0x4af5d8=m(_0x327354);if(!_0x4af5d8)return JSON[_0x13970d(-_0x46f60b._0x1a4717,-_0x46f60b._0x4d9099,-_0x46f60b._0x3ff821,-0x1b2)](_0x327354);let _0x31c8e2=_0x4af5d8[_0x13970d(-0x18a,-_0x46f60b._0x4f2e7e,-_0x46f60b._0xe90fb,-_0x46f60b._0x376695)];if(typeof _0x31c8e2==_0x13970d(-_0x46f60b._0x2e3bf2,-_0x46f60b._0x2c55fe,-0x19c,-_0x46f60b._0x382eb6))return _0x31c8e2;function _0x13970d(_0x56da8a,_0x4226c1,_0x2d6bdc,_0x410c2f){return _0x14debc(_0x56da8a-0x174,_0x410c2f- -_0x5ce524._0x27ef46,_0x2d6bdc-0x0,_0x4226c1);}function _0x33f1ce(_0x2831a4,_0x5e71dc,_0x4d7774,_0x3daaf3){return _0x2fa701(_0x2831a4-0xdf,_0x3daaf3- -0x254,_0x4d7774-0x152,_0x2831a4);}let _0x42dfe4=Object[_0x13970d(-_0x46f60b._0x39185d,-0x1a9,-_0x46f60b._0x3f24e3,-_0x46f60b._0x4f2e7e)](_0x4af5d8);return _0x42dfe4['length']===0x1&&typeof _0x42dfe4[0x0]?.[0x1]==_0x13970d(-0x199,-_0x46f60b._0x488d4f,-0x19f,-0x198)?String(_0x42dfe4[0x0][0x1]):JSON[_0x33f1ce(-_0x46f60b._0x47668e,-0x25,-_0x46f60b._0x2d9f87,-0xd)](_0x4af5d8);}function B(_0x38cecf,_0x15f9a3){const _0x112e34={_0x5c85c0:0x2b1,_0x385e2a:0x293,_0x10520b:0x1b,_0x3fdd49:0x1c,_0x3ff931:0x4},_0x1b08b5={_0x4b6b5d:0xe6,_0x43938b:0x73},_0x58b851={_0x25084c:0x24};function _0x2b3765(_0x3e4cae,_0x460ead,_0x4d4492,_0xe060b6){return _0x14debc(_0x3e4cae-0x11c,_0xe060b6-0x120,_0x4d4492-_0x58b851._0x25084c,_0x3e4cae);}function _0x5bc047(_0x419edc,_0x1db943,_0x49a54f,_0x600486){return _0x14debc(_0x419edc-_0x1b08b5._0x4b6b5d,_0x1db943-0x3e0,_0x49a54f-_0x1b08b5._0x43938b,_0x600486);}return _0x38cecf['length']===0x0?_0x15f9a3[_0x5bc047(_0x112e34._0x5c85c0,_0x112e34._0x385e2a,0x2a3,0x292)]:_0x15f9a3['output']['length']===0x0||_0x38cecf===_0x15f9a3['output']?_0x38cecf:_0x15f9a3['output'][_0x2b3765(0xa,_0x112e34._0x10520b,_0x112e34._0x3fdd49,-_0x112e34._0x3ff931)](_0x38cecf)?_0x15f9a3['output']:_0x38cecf;}function p(_0x4101ce,_0x392d88,_0x451d20){const _0xf4e469={_0x44f4a6:0x20,_0x21d348:0x29,_0x31bbf0:0x34,_0x5bd4a7:0x16,_0x11b918:0x1f4,_0x1b9fc4:0x20c,_0x4ab9cd:0x1d,_0x20e791:0x1a,_0x2562af:0x1e5,_0x2e4d95:0x1f0,_0x5298df:0x213},_0x2042a7={_0x1d122e:0x43f,_0x4c5b6e:0x9a},_0x2aab26={_0x55b82c:0xea};let _0x5730bd=_0x4101ce[_0x52e0c(_0xf4e469._0x44f4a6,_0xf4e469._0x21d348,_0xf4e469._0x31bbf0,_0xf4e469._0x5bd4a7)][_0x392d88['id']];if(_0x5730bd)return u(_0x4101ce,_0x5730bd,_0xc72952=>_0xc72952[_0x52e0c(0x1f,0xf,0x30,-0x1)]!==_0x4d63ff(-0x1f4,-0x20a,-0x1d0,-0x1d3)||_0xc72952[_0x4d63ff(-0x1cc,-0x1d4,-0x1cc,-0x1ad)]!==void 0x0?_0xc72952:{..._0xc72952,'input':m(_0x392d88[_0x4d63ff(-0x1cc,-0x1a7,-0x1a7,-0x1bb)])});function _0x52e0c(_0x28b8ad,_0x4fc6af,_0x34e361,_0x581aa7){return _0x2fa701(_0x28b8ad-_0x2aab26._0x55b82c,_0x4fc6af- -0x241,_0x34e361-0x167,_0x34e361);}let _0x3142f7=g(_0x4101ce),_0x5e4f3e=c(_0x4101ce,{'id':_0x3142f7,'role':_0x4d63ff(-_0xf4e469._0x11b918,-0x1f0,-0x1d0,-_0xf4e469._0x1b9fc4),'toolName':_0x392d88[_0x52e0c(_0xf4e469._0x4ab9cd,_0xf4e469._0x20e791,-0x1,0x3e)],'toolCallId':_0x392d88['id'],'summary':$(_0x392d88['input']),'text':'','status':_0x4d63ff(-0x1ed,-_0xf4e469._0x2562af,-_0xf4e469._0x2e4d95,-_0xf4e469._0x5298df),'input':m(_0x392d88['input']),..._0x451d20?{'parentToolCallId':_0x451d20}:{}});function _0x4d63ff(_0x59f1e8,_0x22ac73,_0x1d61db,_0x4f9f2e){return _0x2fa701(_0x59f1e8-0xd8,_0x59f1e8- -_0x2042a7._0x1d122e,_0x1d61db-_0x2042a7._0x4c5b6e,_0x22ac73);}return{..._0x5e4f3e,'toolMessageIds':{..._0x5e4f3e[_0x52e0c(0x2e,0x29,0x3a,0x18)],[_0x392d88['id']]:_0x3142f7}};}function ce(_0x16f364,_0x583418,_0x147815){const _0x49188b={_0x4ab794:0x34b},_0x719aad={_0xc994f8:0x7},_0x525ef8={_0x543c84:0xe1};function _0x4713e0(_0xb9b8a8,_0x5d5f02,_0x207dd5,_0x5edd2c){return _0x2fa701(_0xb9b8a8-0x198,_0x5d5f02-_0x525ef8._0x543c84,_0x207dd5-0x9e,_0xb9b8a8);}let _0x2102f5=_0x16f364[_0x4713e0(0x35a,_0x49188b._0x4ab794,0x359,0x358)][_0x583418];function _0x42ada1(_0x4f8f25,_0x41e4fe,_0x3080e0,_0x1c0c6c){return _0x14debc(_0x4f8f25-0x19e,_0x3080e0-0x588,_0x3080e0-_0x719aad._0xc994f8,_0x4f8f25);}return _0x2102f5?u(_0x16f364,_0x2102f5,_0x102d40=>_0x102d40['role']!==_0x4713e0(0x349,0x32c,0x32c,0x33d)?_0x102d40:{..._0x102d40,'status':_0x147815}):_0x16f364;}function O(_0x2f170d,_0x58c6df){const _0x4239b4={_0x5e4faa:0x4c1,_0x1bca07:0x4b4,_0x2b1e08:0x4d5,_0x314997:0x23c,_0x1890f2:0x49a,_0x168e24:0x484,_0x5680d3:0x275,_0x234d25:0x250,_0x483be2:0x21d,_0x199518:0x242,_0x47ca58:0x21b,_0x469187:0x4bd,_0xc46c62:0x4a2,_0x3f0821:0x226,_0x371ad8:0x221,_0x11f730:0x234,_0x4264c8:0x24c},_0x2ff5ea={_0x252187:0x8a,_0x467f1e:0x5ea,_0x117394:0x1dd},_0x335b35={_0x4f8afd:0x2d};function _0x5cc948(_0x172875,_0x468fb8,_0x39945d,_0x4c4324){return _0x2fa701(_0x172875-0x1a3,_0x468fb8- -_0x335b35._0x4f8afd,_0x39945d-0x18d,_0x4c4324);}let _0x16c73f=_0x2f170d[_0x166ad4(_0x4239b4._0x5e4faa,_0x4239b4._0x1bca07,0x4b9,_0x4239b4._0x2b1e08)][_0x58c6df[_0x5cc948(0x20e,0x21d,_0x4239b4._0x314997,0x237)]];function _0x166ad4(_0x4edeea,_0x594b64,_0x415c4e,_0x3290ff){return _0x14debc(_0x4edeea-_0x2ff5ea._0x252187,_0x415c4e-_0x2ff5ea._0x467f1e,_0x415c4e-_0x2ff5ea._0x117394,_0x4edeea);}return _0x16c73f?u(_0x2f170d,_0x16c73f,_0x3033bb=>_0x3033bb[_0x166ad4(0x48d,0x4a3,0x49f,0x48d)]!==_0x5cc948(0x228,0x21e,0x21a,0x1f9)?_0x3033bb:{..._0x3033bb,'status':_0x58c6df[_0x166ad4(0x4bd,0x49b,0x4a2,0x489)],'text':B(_0x3033bb[_0x5cc948(0x212,0x212,0x238,0x215)],_0x58c6df),'structured':_0x58c6df[_0x166ad4(0x49b,0x4b2,0x4bf,0x4ab)]}):c(_0x2f170d,{'id':g(_0x2f170d),'role':_0x166ad4(0x4ba,0x485,_0x4239b4._0x1890f2,_0x4239b4._0x168e24),'toolName':_0x58c6df[_0x5cc948(_0x4239b4._0x5680d3,_0x4239b4._0x234d25,0x238,0x263)],'toolCallId':_0x58c6df[_0x5cc948(0x22b,_0x4239b4._0x483be2,_0x4239b4._0x199518,_0x4239b4._0x47ca58)],'status':_0x58c6df[_0x166ad4(_0x4239b4._0x469187,0x495,_0x4239b4._0xc46c62,0x47e)],'summary':'','text':_0x58c6df[_0x5cc948(_0x4239b4._0x3f0821,_0x4239b4._0x371ad8,_0x4239b4._0x11f730,0x240)],'structured':_0x58c6df[_0x5cc948(0x23b,0x243,0x22a,_0x4239b4._0x4264c8)]});}function le(){return{'assistantMessageIds':{},'messages':[],'nextId':0x1,'reasoningMessageIds':{},'toolMessageIds':{}};}function pe(_0x16edda){const _0x46ec5b={_0x66636b:0x494,_0x54a664:0x462,_0x2ef2db:0x47f,_0x176faf:0x45c,_0xf864ae:0x3b9,_0x2d096c:0x3cb,_0x283530:0x410,_0x1702e0:0x3f2,_0x196f2f:0x3f8},_0x47aaa2={_0x534758:0xa,_0x28a22c:0x28,_0x571b8f:0x82,_0x20a08a:0x8f,_0x133d4c:0x80,_0x2b4f16:0x6e},_0x2cf30a={_0x272166:0x168},_0x33a4c0={_0x5c165b:0xd8,_0x3387f3:0x1e9};function _0x51a4db(_0x39f5e0,_0x7968fb,_0xb2567c,_0x183c93){return _0x14debc(_0x39f5e0-_0x33a4c0._0x5c165b,_0x183c93-0x526,_0xb2567c-_0x33a4c0._0x3387f3,_0x7968fb);}let _0x1f7c25=_0x16edda[_0x14ac61(_0x46ec5b._0x66636b,_0x46ec5b._0x54a664,_0x46ec5b._0x2ef2db,_0x46ec5b._0x176faf)]((_0x524bc8,_0x1b515f)=>{const _0x2b1111={_0x109364:0x32,_0x499d31:0x11e};function _0x3bcc1e(_0x49d23e,_0x455911,_0x54dde7,_0x851026){return _0x14ac61(_0x49d23e-_0x2b1111._0x109364,_0x851026,_0x455911- -0x45f,_0x851026-_0x2b1111._0x499d31);}let _0x4f9f0c=/^message-(\d+)$/[_0x3bcc1e(_0x47aaa2._0x534758,0x1e,_0x47aaa2._0x28a22c,0x36)](_0x1b515f['id']);function _0x3fe93b(_0x476e27,_0x22b7ef,_0x1682d8,_0x478a7c){return _0x14ac61(_0x476e27-_0x2cf30a._0x272166,_0x476e27,_0x22b7ef- -0x3d9,_0x478a7c-0x6e);}return _0x4f9f0c?Math[_0x3fe93b(_0x47aaa2._0x571b8f,_0x47aaa2._0x20a08a,_0x47aaa2._0x133d4c,_0x47aaa2._0x2b4f16)](_0x524bc8,Number(_0x4f9f0c[0x1])+0x1):_0x524bc8;},0x1)+_0x16edda['length'],_0x9a796a={};for(let _0x448e9f of _0x16edda)_0x448e9f['role']===_0x51a4db(_0x46ec5b._0xf864ae,_0x46ec5b._0x2d096c,0x3e5,0x3d6)&&(_0x9a796a[_0x448e9f[_0x51a4db(_0x46ec5b._0x283530,0x417,_0x46ec5b._0x1702e0,_0x46ec5b._0x196f2f)]]=_0x448e9f['id']);function _0x14ac61(_0x40623d,_0x37da6e,_0x86fd70,_0x1c0979){return _0x2fa701(_0x40623d-0x1,_0x86fd70-0x227,_0x86fd70-0x102,_0x37da6e);}return{'assistantMessageIds':{},'messages':_0x16edda,'nextId':_0x1f7c25,'reasoningMessageIds':{},'toolMessageIds':_0x9a796a};}function _0x14debc(_0x2dce1e,_0x2bfb28,_0xb3f30c,_0x510314){const _0x4ed63c={_0x97e4a:0x298};return _0x5bf8(_0x2bfb28- -_0x4ed63c._0x97e4a,_0x510314);}function de(_0x1172a8,_0x5f2bb3){const _0x1dbd94={_0x30fef5:0x426},_0x25b413={_0x3b4018:0x1e9,_0x2cb968:0xad};function _0x20d8f5(_0x10997d,_0x28525f,_0x281168,_0x95f0f4){return _0x2fa701(_0x10997d-_0x25b413._0x3b4018,_0x281168-0x1cc,_0x281168-_0x25b413._0x2cb968,_0x95f0f4);}return c(_0x1172a8,{'id':g(_0x1172a8),'role':_0x20d8f5(0x43b,0x43f,_0x1dbd94._0x30fef5,0x412),'text':_0x5f2bb3});}function Me(_0x5e427b,_0x19473a){return c(_0x5e427b,{'id':g(_0x5e427b),'role':'error','text':_0x19473a});}function fe(_0x4885e5,_0x5c95d3){return c(_0x4885e5,{'id':g(_0x4885e5),'role':'info','text':_0x5c95d3});}function me(_0x5a8528,_0x23dc99,_0x1d3232){const _0x2d7c19={_0x5ca274:0x51e,_0x3d3234:0x4fd,_0x4217d0:0x4e5,_0x1aaf79:0x49d,_0x40570d:0x4e1,_0x4efcb4:0x506,_0x5713c4:0x4e0,_0x1ec16f:0x4f8,_0xe597f9:0x4da,_0xf8a57:0x51b,_0x60771e:0x530,_0x1c8dab:0x510,_0x4e888f:0x4f6,_0x522a37:0x50b,_0x16c459:0x4fd,_0x4baf5b:0x4ed,_0x35301f:0x51d,_0x2d23a3:0x4f9,_0x171b7f:0x515,_0x5e134d:0x4fc,_0x70f6ba:0x4f1,_0x78598f:0x503,_0x398751:0x4bb,_0x2bc9a7:0x4d7,_0x1949b5:0x4b4,_0xd4fc95:0x50f,_0x8007ce:0x4ce,_0xb594c8:0x521,_0x244f44:0x525,_0x9b2956:0x513,_0x1134fc:0x4db,_0x11a882:0x519,_0x9e2106:0x51f,_0x512f1b:0x502,_0x48608a:0x50a,_0x2a335a:0x4c4,_0x32b287:0x4dc,_0x27b634:0x503,_0x25e15f:0x514,_0x11e582:0x520,_0x1200e5:0x4f7,_0x11155c:0x4f2,_0x2801e5:0x505,_0x4abed8:0x500,_0xed3c50:0x4ea,_0x59dd82:0x500,_0x112dc3:0x504,_0x37a4d3:0x4bd,_0x5d3c57:0x4f9,_0x5a82be:0x4e3,_0x12ab7f:0x52d,_0x4d7011:0x50c,_0x2decd8:0x521,_0x410ff0:0x4df},_0x5094b6={_0x329cae:0x617,_0x4ee7d7:0x153},_0x5955a1={_0x3c7688:0x63c};function _0x57b686(_0x39cff0,_0x56853a,_0x379007,_0x11984c){return _0x14debc(_0x39cff0-0x43,_0x39cff0-_0x5955a1._0x3c7688,_0x379007-0xc8,_0x11984c);}function _0x1b05d4(_0x41d71b,_0x62a5c6,_0x507021,_0x2baea2){return _0x14debc(_0x41d71b-0xc,_0x62a5c6-_0x5094b6._0x329cae,_0x507021-_0x5094b6._0x4ee7d7,_0x41d71b);}switch(_0x23dc99[_0x1b05d4(0x4e5,0x4ed,0x508,0x4ca)]){case'assistant_chunk':return _0x23dc99[_0x1b05d4(_0x2d7c19._0x5ca274,_0x2d7c19._0x3d3234,_0x2d7c19._0x4217d0,0x519)][_0x1b05d4(_0x2d7c19._0x1aaf79,0x4bb,0x4ae,0x4b5)]?l(_0x5a8528,'assistantMessageIds',_0x23dc99[_0x1b05d4(0x4f4,0x4ee,0x4e5,0x4d3)],_0x57b686(_0x2d7c19._0x40570d,0x4f5,0x4ca,_0x2d7c19._0x4efcb4),_0x23dc99[_0x1b05d4(0x4f3,0x4fd,_0x2d7c19._0x5713c4,_0x2d7c19._0x1ec16f)]['text'],_0x1b05d4(_0x2d7c19._0xe597f9,0x4d0,0x4b2,0x4f4),!0x0,_0x1d3232):_0x5a8528;case _0x57b686(_0x2d7c19._0xf8a57,_0x2d7c19._0x60771e,_0x2d7c19._0x1c8dab,0x50c):{let _0x44c3a3=_0x435949(_0x23dc99[_0x57b686(0x4fd,_0x2d7c19._0x4e888f,0x4ef,0x4f3)])['trim']();return _0x44c3a3[_0x1b05d4(_0x2d7c19._0x5ca274,0x503,0x4f3,0x4e3)]===0x0?_0x5a8528:l(_0x5a8528,_0x57b686(0x516,_0x2d7c19._0x522a37,_0x2d7c19._0x4e888f,_0x2d7c19._0x16c459),_0x23dc99[_0x1b05d4(0x4c3,0x4d8,_0x2d7c19._0x4baf5b,0x4e8)]['id'],'assistant',_0x44c3a3,_0x57b686(_0x2d7c19._0x35301f,0x53f,0x532,_0x2d7c19._0x2d23a3),!0x1,_0x1d3232);}case _0x57b686(_0x2d7c19._0x171b7f,_0x2d7c19._0x5e134d,_0x2d7c19._0x70f6ba,_0x2d7c19._0x78598f):return _0x23dc99[_0x1b05d4(0x4bd,_0x2d7c19._0x398751,0x4cd,0x4c9)]?l(_0x5a8528,_0x1b05d4(_0x2d7c19._0x2bc9a7,0x4c9,_0x2d7c19._0x1949b5,0x4ac),_0x23dc99[_0x1b05d4(_0x2d7c19._0xd4fc95,0x4ee,0x4e0,_0x2d7c19._0x8007ce)],_0x57b686(_0x2d7c19._0xb594c8,_0x2d7c19._0x244f44,0x524,0x540),_0x23dc99['text'],_0x57b686(0x4f5,0x4d1,0x4d4,_0x2d7c19._0x9b2956),!0x0,_0x1d3232):_0x5a8528;case'reasoning_message':{let _0x1cf527=_0x53a526(_0x23dc99[_0x57b686(_0x2d7c19._0x3d3234,0x4fd,0x4f0,0x4e0)])['trim']();return _0x1cf527['length']===0x0?_0x5a8528:l(_0x5a8528,_0x57b686(0x4ee,_0x2d7c19._0x2bc9a7,0x4ff,0x513),_0x23dc99[_0x1b05d4(0x4bd,0x4d8,_0x2d7c19._0x1134fc,0x4ca)]['id'],_0x57b686(0x521,0x514,0x547,0x4fd),_0x1cf527,_0x57b686(0x51d,_0x2d7c19._0x11a882,0x532,_0x2d7c19._0x9e2106),!0x1,_0x1d3232);}case _0x1b05d4(0x50c,_0x2d7c19._0x512f1b,0x519,_0x2d7c19._0x48608a):{let _0xa90374=_0x435949(_0x23dc99['message'])[_0x1b05d4(_0x2d7c19._0x8007ce,_0x2d7c19._0x2a335a,_0x2d7c19._0x32b287,0x4cd)]();return _0xa90374[_0x1b05d4(0x4ec,_0x2d7c19._0x27b634,_0x2d7c19._0x25e15f,_0x2d7c19._0x11e582)]===0x0?_0x5a8528:l(_0x5a8528,_0x1b05d4(0x4ef,0x4f1,0x511,_0x2d7c19._0x1200e5),_0x23dc99[_0x57b686(_0x2d7c19._0x3d3234,_0x2d7c19._0x11155c,0x519,_0x2d7c19._0x9e2106)]['id'],'assistant',_0xa90374,'replace',!0x1,_0x1d3232);}case _0x57b686(_0x2d7c19._0x2801e5,0x4ff,_0x2d7c19._0x1c8dab,_0x2d7c19._0xb594c8):return p(_0x5a8528,_0x23dc99[_0x1b05d4(0x4e3,_0x2d7c19._0x4abed8,_0x2d7c19._0xed3c50,_0x2d7c19._0x59dd82)],_0x1d3232);case'tool_started':{let _0x254892=p(_0x5a8528,_0x23dc99['toolCall'],_0x1d3232),_0x185c23=_0x254892['toolMessageIds'][_0x23dc99['toolCall']['id']];return u(_0x254892,_0x185c23,_0x5555d4=>_0x5555d4[_0x1b05d4(0x4b1,0x4cc,0x4c6,0x4d4)]!==_0x57b686(0x4ec,0x4fa,0x4fe,0x50e)?_0x5555d4:{..._0x5555d4,'status':'running'});}case _0x57b686(0x4de,0x501,_0x2d7c19._0x112dc3,_0x2d7c19._0x37a4d3):{let _0x21021e=p(_0x5a8528,_0x23dc99['toolCall'],_0x1d3232),_0x147bb0=_0x21021e[_0x1b05d4(0x4e0,0x4e6,0x4f7,0x4ee)][_0x23dc99[_0x1b05d4(0x4ef,0x500,0x507,0x515)]['id']];return u(_0x21021e,_0x147bb0,_0x3cbd57=>_0x3cbd57[_0x57b686(0x4f1,0x50b,0x4cd,0x4fa)]!==_0x57b686(0x4ec,0x4f4,0x505,0x4f1)?_0x3cbd57:{..._0x3cbd57,'text':''+_0x3cbd57[_0x57b686(0x4e0,0x502,0x503,0x4e8)]+_0x23dc99[_0x57b686(0x522,0x536,0x543,0x519)][_0x1b05d4(0x4c8,0x4ca,0x4af,0x4b7)]});}case'tool_completed':{let _0x1beef8=p(_0x5a8528,_0x23dc99[_0x1b05d4(0x510,0x500,0x4fe,_0x2d7c19._0x5d3c57)],_0x1d3232);return O(_0x1beef8,_0x23dc99[_0x1b05d4(0x4f1,_0x2d7c19._0x5a82be,_0x2d7c19._0x2801e5,0x4ea)]);}case'tool_result':return O(_0x5a8528,_0x23dc99[_0x57b686(0x508,0x4f4,0x52c,_0x2d7c19._0x12ab7f)]);case _0x57b686(_0x2d7c19._0x4d7011,_0x2d7c19._0x2decd8,0x51e,0x52f):{let _0x5b0e92=p(_0x5a8528,_0x23dc99[_0x1b05d4(0x4fc,0x500,_0x2d7c19._0x410ff0,0x4f5)],_0x1d3232),_0x15d8a8=_0x5b0e92['toolMessageIds'][_0x23dc99[_0x1b05d4(0x513,0x500,0x50d,0x4f1)]['id']];return u(_0x5b0e92,_0x15d8a8,_0x18e365=>_0x18e365[_0x1b05d4(0x4eb,0x4cc,0x4c2,0x4aa)]!=='tool'?_0x18e365:{..._0x18e365,'status':_0x57b686(0x503,0x4e0,0x505,0x512),'text':_0x23dc99[_0x57b686(0x508,0x524,0x506,0x526)][_0x1b05d4(0x4d0,0x4ca,0x4cb,0x4d8)],'structured':_0x23dc99[_0x57b686(0x508,0x524,0x4ef,0x508)]['structured']});}default:return _0x5a8528;}}export{F as a,P as b,Q as c,V as d,i as e,m as f,z as g,y as h,ee as i,te as j,se as k,ne as l,ce as m,le as n,pe as o,de as p,Me as q,fe as r,me as s};
|