@guanghechen/kit-copilot 0.6.8 → 0.6.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/README.md CHANGED
@@ -15,26 +15,43 @@ There is no runtime fallback from business logic to global `process.env` for cri
15
15
  - `GH_PRIMARY_TOKEN`
16
16
  - `COPILOT_MODEL_REFRESH_SEC`
17
17
 
18
- ## Preset Root And `.env.local`
18
+ ## Preset File (`preset.json`)
19
19
 
20
- Preset root:
20
+ Config root:
21
21
 
22
22
  - `$XDG_CONFIG_HOME/kit/copilot` when `XDG_CONFIG_HOME` is set
23
23
  - `~/.config/kit/copilot` otherwise
24
24
 
25
- Default preset env file:
25
+ Default preset file:
26
26
 
27
- - `<preset-root>/.env.local`
27
+ - `<config-root>/preset.json`
28
28
 
29
- The file is loaded by commander preset logic and merged into `ctx.envs`.
29
+ Commander loads preset data from `preset.json` (`preset.file`) and merges selected profile into `ctx.envs`.
30
+ If `<config-root>/preset.json` does not exist, command runs without preset envs.
31
+
32
+ Example `preset.json`:
33
+
34
+ ```json
35
+ {
36
+ "version": 1,
37
+ "defaults": { "profile": "default" },
38
+ "profiles": {
39
+ "default": {
40
+ "envFile": ".env.local"
41
+ }
42
+ }
43
+ }
44
+ ```
30
45
 
31
46
  ## Token Persistence
32
47
 
33
48
  `kit-copilot auth` persists `GH_PRIMARY_TOKEN` to preset env storage.
34
49
 
35
- - Persist target: `<preset-root>/.env.local`
50
+ - Persist target: `<config-root>/.env.local`
36
51
  - `GH_COPILOT_TOKEN` is not persisted
37
52
 
53
+ Note: `.env.local` is not auto-loaded by commander unless `preset.json` profile points to it (for example via `envFile`).
54
+
38
55
  ## Examples
39
56
 
40
57
  ```bash
package/lib/esm/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0x418af8,_0x58e240){const _0x2de080={_0x25dd01:0x3ac,_0x1cf8a6:'jaOE',_0x3fea4d:0x39e,_0x404867:0x3b0,_0x52a12d:0x38a,_0xcb4d25:0x398,_0x22b25a:0x393,_0x5a0ab:0x3cd,_0x4a86fa:0x3c9,_0x16b9be:0x3c2,_0x198acf:'RET^',_0x4477c0:0x3c6,_0x402b91:0x3c0,_0x57c33e:0x3bd,_0x21af76:'l*a$',_0x1f6ae2:0x3ca,_0x1261f8:0x3ca,_0x4658f7:0x3c1,_0x4a3715:'Mc0g',_0x2e1548:'k&c9',_0xa448d3:0x3c5,_0x15d528:0x3d9,_0x13503c:'$$R0',_0x7f82be:0x3af,_0x3418e0:0x3dc,_0x38d349:'1Y0y',_0x49b1ba:0x3a5,_0x138155:0x3b1},_0x1e367d={_0x66c934:0x21a},_0x56e6bb={_0x7b42e9:0x252};function _0x436701(_0x5c10e0,_0x12d466,_0x2d03a8,_0x4a6a47){return _0x35b6(_0x5c10e0-_0x56e6bb._0x7b42e9,_0x4a6a47);}function _0x54351b(_0x5d14d6,_0x3619b1,_0x52d1ef,_0x3a0101){return _0x35b6(_0x3a0101-_0x1e367d._0x66c934,_0x3619b1);}const _0x1610db=_0x418af8();while(!![]){try{const _0x5543e2=parseInt(_0x54351b(_0x2de080._0x25dd01,_0x2de080._0x1cf8a6,_0x2de080._0x3fea4d,_0x2de080._0x404867))/(0x2d*-0xd+-0x61b*-0x1+-0x3d1*0x1)+parseInt(_0x54351b(_0x2de080._0x52a12d,'6M6q',_0x2de080._0xcb4d25,_0x2de080._0x22b25a))/(-0x1*-0x35a+-0xb71*-0x1+-0xec9)*(parseInt(_0x436701(_0x2de080._0x5a0ab,_0x2de080._0x4a86fa,_0x2de080._0x16b9be,_0x2de080._0x198acf))/(0x1bbb*-0x1+0x801*0x1+-0x1*-0x13bd))+parseInt(_0x436701(_0x2de080._0x4477c0,_0x2de080._0x402b91,_0x2de080._0x57c33e,_0x2de080._0x21af76))/(-0x22db+-0xd*0x28d+0x4408)+parseInt(_0x436701(_0x2de080._0x1f6ae2,_0x2de080._0x1261f8,_0x2de080._0x4658f7,_0x2de080._0x4a3715))/(0x1f8+-0xc0d*-0x3+0x1*-0x261a)*(parseInt(_0x54351b(0x3ba,_0x2de080._0x2e1548,0x3c3,0x3b4))/(-0x134f+-0x6d*0x2f+-0x8*-0x4eb))+-parseInt(_0x436701(_0x2de080._0xa448d3,0x3c2,_0x2de080._0x15d528,'BMRA'))/(-0xe21+-0x28*0x75+0x2070)*(parseInt(_0x54351b(0x3b2,_0x2de080._0x13503c,0x3c3,_0x2de080._0x7f82be))/(0x1a65+0x1*0x1a4b+-0x34a8))+parseInt(_0x436701(_0x2de080._0x3418e0,0x3d2,0x3cb,_0x2de080._0x38d349))/(0x870+-0xb6*-0x2e+0x291b*-0x1)+-parseInt(_0x54351b(_0x2de080._0x49b1ba,'n050',_0x2de080._0x138155,0x3b6))/(-0xa35+-0x19df+-0x43*-0x8a);if(_0x5543e2===_0x58e240)break;else _0x1610db['push'](_0x1610db['shift']());}catch(_0x309b21){_0x1610db['push'](_0x1610db['shift']());}}}(_0x4cbb,0x166963+0xf4d9a+-0x17dcd0));import{CompletionCommand}from'@guanghechen/commander/node';import{Reporter}from'@guanghechen/reporter';import{a as _0x4d9a32,C as _0x1a1815}from'./command-DIvNFckg.mjs';import'node:fs';import'node:path';import'node:child_process';import'node:os';import'node:http';import'node:fs/promises';import'@hono/node-server';import'hono';function _0x42ce8b(_0x14a288,_0xb119a8,_0x2f1c40,_0x25421d){const _0x11dfc7={_0x2d471f:0x198};return _0x35b6(_0x2f1c40-_0x11dfc7._0x2d471f,_0x14a288);}import'hono/cors';import'uuid';function _0x4ad18e(_0x5ec45b,_0x17df6b,_0x26567e,_0x4fcf4f){const _0x2465f2={_0x590f67:0x36a};return _0x35b6(_0x5ec45b- -_0x2465f2._0x590f67,_0x26567e);}import'zod';function _0x35b6(_0x4fe6c7,_0x4fc7c8){_0x4fe6c7=_0x4fe6c7-(0x147d+0x198d+0x2f9*-0xf);const _0x236d03=_0x4cbb();let _0x48edf2=_0x236d03[_0x4fe6c7];if(_0x35b6['sCZLSW']===undefined){var _0x33bcf8=function(_0x5e2707){const _0x121f4b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5813b5='',_0x5bcd65='';for(let _0x233ae0=0x7b7*-0x5+-0x215f+0x47f2,_0x101d45,_0x11ba50,_0x2a8059=-0x2633+0x1b6f+0xac4;_0x11ba50=_0x5e2707['charAt'](_0x2a8059++);~_0x11ba50&&(_0x101d45=_0x233ae0%(0x69*0x53+0x1*0x1b9e+-0x3da5)?_0x101d45*(-0x12b6+0x1325+-0x2f)+_0x11ba50:_0x11ba50,_0x233ae0++%(0x79*-0x3e+-0xc7*0x7+0x22c3))?_0x5813b5+=String['fromCharCode'](-0x2166+0x2005+0x260&_0x101d45>>(-(0x1882+-0x7*0x287+0x53*-0x15)*_0x233ae0&0x2*0xf88+-0x1*-0xd97+-0x8ed*0x5)):0x34d+0x464*0x1+-0xb3*0xb){_0x11ba50=_0x121f4b['indexOf'](_0x11ba50);}for(let _0x57f927=-0x129a+-0x399+0x1*0x1633,_0x1c83f6=_0x5813b5['length'];_0x57f927<_0x1c83f6;_0x57f927++){_0x5bcd65+='%'+('00'+_0x5813b5['charCodeAt'](_0x57f927)['toString'](0x964+-0x1734+-0x2*-0x6f0))['slice'](-(0x8d0+-0x7e0+0x11*-0xe));}return decodeURIComponent(_0x5bcd65);};const _0x22bee6=function(_0x56422f,_0x4a065f){let _0xeeb5ef=[],_0x1d1aee=0x1b57+-0x24bd*-0x1+-0x4014,_0x1f88c7,_0x418af8='';_0x56422f=_0x33bcf8(_0x56422f);let _0x58e240;for(_0x58e240=-0x13b7+0xeab*0x1+-0x4c*-0x11;_0x58e240<0xf2b*0x1+0x574+-0x139f;_0x58e240++){_0xeeb5ef[_0x58e240]=_0x58e240;}for(_0x58e240=-0x478+-0x10d*-0x3+0x1*0x151;_0x58e240<-0x33d+-0x680+0xabd*0x1;_0x58e240++){_0x1d1aee=(_0x1d1aee+_0xeeb5ef[_0x58e240]+_0x4a065f['charCodeAt'](_0x58e240%_0x4a065f['length']))%(0x3d*-0x25+-0x1*-0x14e7+-0x102*0xb),_0x1f88c7=_0xeeb5ef[_0x58e240],_0xeeb5ef[_0x58e240]=_0xeeb5ef[_0x1d1aee],_0xeeb5ef[_0x1d1aee]=_0x1f88c7;}_0x58e240=0x2245*0x1+-0x85a+0x52f*-0x5,_0x1d1aee=0x1807+-0x6b5*-0x1+0x7*-0x464;for(let _0x1610db=-0x1a7*-0x7+-0xc1+-0xad0;_0x1610db<_0x56422f['length'];_0x1610db++){_0x58e240=(_0x58e240+(0x3*0x2ab+0x4*0x432+-0x18c8))%(-0x22db+-0xd*0x28d+0x4504),_0x1d1aee=(_0x1d1aee+_0xeeb5ef[_0x58e240])%(0x1f8+-0xc0d*-0x3+0xd*-0x2db),_0x1f88c7=_0xeeb5ef[_0x58e240],_0xeeb5ef[_0x58e240]=_0xeeb5ef[_0x1d1aee],_0xeeb5ef[_0x1d1aee]=_0x1f88c7,_0x418af8+=String['fromCharCode'](_0x56422f['charCodeAt'](_0x1610db)^_0xeeb5ef[(_0xeeb5ef[_0x58e240]+_0xeeb5ef[_0x1d1aee])%(-0x134f+-0x6d*0x2f+-0x1a*-0x18d)]);}return _0x418af8;};_0x35b6['ryABPg']=_0x22bee6,_0x35b6['YDsILT']={},_0x35b6['sCZLSW']=!![];}const _0x2c0615=_0x236d03[-0xe21+-0x28*0x75+0x2069],_0x39fcd0=_0x4fe6c7+_0x2c0615,_0x579a9f=_0x35b6['YDsILT'][_0x39fcd0];return!_0x579a9f?(_0x35b6['KYsnUF']===undefined&&(_0x35b6['KYsnUF']=!![]),_0x48edf2=_0x35b6['ryABPg'](_0x48edf2,_0x4fc7c8),_0x35b6['YDsILT'][_0x39fcd0]=_0x48edf2):_0x48edf2=_0x579a9f,_0x48edf2;}import'hono/streaming';import'node:url';function _0x4cbb(){const _0x36af66=['CHHsW6hcHG','CmoOWQRcPNO','kColwH3dL8onwG','WPFcJCkSW71R','wcNcQweUCCoCWRJdVMFdU8oad8or','iXv7WPVcNW','W7L1W69RvuysB8opW6LHjGlcTq','WRRcL8oAWPtdThZdR8kvWQtdQwSU','ASoUjKnohmoBWRVdPdpdLmoF','WROLWQWWhW','erSzA04','nLBdOCoHWPC','WOddS2/dTmoIifqMbMZcRYJcJW','W5JdTZFdPmkHW6FdSG','W5ZdVCkcWQOofmoy','W5pdL0nfWP8QW6Pir8ogimoyWOa','WQyrW4qWta','WROaW4m','WR/dOdih','WPFcVvS','zu8YWQ3cHa','W6FdNCkfW5pcHW','ftFcSdf4','W63cVCo8WPq','CNlcNmkJWPFdQ27dLCk3WRjLWPm','oCkqe0Dw','W7ZcGGddS8od','sSknW40xWPK','W5/cSfhcHvW','E14OWQi','oHTTW7/cNetcGmo4W7OonSo0W6FdSW','WOG1sCoDpW','FSo9Ct4','jY3dI8o+W4m','yXrOW6JcMa','qCoTfSkIWO4','xsRcQwiLCCkrW5JdJh7dGCo/','W5BdMSoUCqu','WROZWQSWqW','zdpdGG','jfBdPSoHW4S','W7TYWQaUar9Wbq','dHHiW5VdVX7dTmktWR0guuC','m09EW7/cMaqUlW'];_0x4cbb=function(){return _0x36af66;};return _0x4cbb();}import'node:module';import'node:worker_threads';import'node:crypto';const _0x969538={};_0x969538['prefi'+'x']=_0x4d9a32;const _0x5a4656=new Reporter(_0x969538),_0x1e325f=new _0x1a1815(),_0x58b3b8={};_0x58b3b8[_0x4ad18e(-0x1db,-0x1ea,'EYlb',-0x1da)+_0x42ce8b('M#bp',0x312,0x326,0x325)+'e']=_0x4d9a32,_0x58b3b8[_0x42ce8b('M#bp',0x324,0x330,0x333)]={},_0x58b3b8[_0x42ce8b('M#bp',0x324,0x330,0x333)][_0x4ad18e(-0x1e7,-0x1da,'0*BZ',-0x1d2)]='~/.co'+_0x4ad18e(-0x1e3,-0x1dd,'t9mp',-0x1f0)+_0x4ad18e(-0x1d6,-0x1cb,'q*9g',-0x1d7)+_0x4ad18e(-0x1d9,-0x1da,'Yr(5',-0x1d2)+'etion'+'s/'+_0x4d9a32+_0x42ce8b('9u9n',0x31c,0x32b,0x315),_0x58b3b8[_0x42ce8b('M#bp',0x324,0x330,0x333)]['fish']=_0x4ad18e(-0x1e8,-0x1f7,'n050',-0x1f9)+'nfig/'+'fish/'+_0x42ce8b('cOgS',0x318,0x31d,0x31e)+_0x42ce8b('1IkG',0x311,0x30e,0x306)+'s/'+_0x4d9a32+_0x42ce8b('2viU',0x32c,0x333,0x343),_0x58b3b8[_0x42ce8b('M#bp',0x324,0x330,0x333)][_0x42ce8b('1Y0y',0x32a,0x321,0x328)]=_0x4ad18e(-0x1e2,-0x1ea,'l*&E',-0x1e9)+_0x4ad18e(-0x1ea,-0x1e5,'1Y0y',-0x1fc)+_0x42ce8b('$$R0',0x339,0x32a,0x32c)+'compl'+'etion'+'s/'+_0x4d9a32+_0x4ad18e(-0x1ec,-0x1d7,'o&f*',-0x1f6),_0x1e325f[_0x4ad18e(-0x1ee,-0x202,'xXco',-0x1ea)+_0x42ce8b('9u9n',0x32d,0x325,0x323)](_0x42ce8b('$dV^',0x31d,0x31e,0x31d)+_0x42ce8b('Ggcd',0x338,0x331,0x31e),new CompletionCommand(_0x1e325f,_0x58b3b8));try{await _0x1e325f[_0x42ce8b('VQQd',0x30b,0x317,0x31b)]({'argv':process[_0x42ce8b('k&c9',0x333,0x324,0x314)]['slice'](0x7*-0xc7+0x23a7+-0x1e34),'envs':process.env,'reporter':_0x5a4656});}catch(_0x4a9551){_0x5a4656[_0x4ad18e(-0x1df,-0x1f5,'#ocX',-0x1eb)](_0x4a9551 instanceof Error?_0x4a9551['stack']??_0x4a9551[_0x42ce8b(')gEr',0x33a,0x335,0x345)+'ge']:String(_0x4a9551)),process[_0x4ad18e(-0x1e9,-0x1ff,'BMRA',-0x1fc)+_0x42ce8b('xXco',0x326,0x315,0x30c)]=-0x2166+0x2005+0x162;}
2
+ (function(_0xd578af,_0x3a1eb0){const _0x255f9e={_0x2235bb:'4K2Y',_0x40aebe:0x4c4,_0x48d3f5:0x4d0,_0x1625b8:0x50b,_0x30dae0:0x50a,_0x26b355:'x[ZA',_0x18fa1d:0x4e3,_0x4fba81:0x4e2,_0x203e72:0x4df,_0x42e1c3:'sU)L',_0x5f47d2:0x4f0,_0x35ee43:0x4da,_0x3cf0de:0x4fd,_0x689c97:'U$$f',_0x58c1d9:0x4ec,_0x384d56:0x503,_0x2aaa51:'fSBH',_0x31df87:0x504,_0x37ff34:0x4db,_0x11ef20:0x4e6,_0x388b8d:0x4bc,_0x54bd06:'4K2Y',_0x44063b:0x4cf,_0x23dcd9:0x4e4,_0x3d95c0:0x4f6,_0x1f66c9:'xQ[i',_0x11c802:0x4ef,_0x966d2d:'ep9I',_0x518583:0x4f7},_0x10c574={_0x1d6f2b:0x374},_0x1c98b8={_0xf67466:0x393};function _0x448a53(_0x105d98,_0x54a5e7,_0x3f1c4f,_0x12b293){return _0x4d72(_0x12b293-_0x1c98b8._0xf67466,_0x3f1c4f);}const _0x2629fb=_0xd578af();function _0x17707a(_0x6ab23d,_0x1d9b96,_0x59d9d4,_0x370680){return _0x4d72(_0x370680-_0x10c574._0x1d6f2b,_0x1d9b96);}while(!![]){try{const _0x398aea=-parseInt(_0x17707a(0x4d9,_0x255f9e._0x2235bb,_0x255f9e._0x40aebe,_0x255f9e._0x48d3f5))/(0xb8a+-0xa88+-0x101)+parseInt(_0x448a53(0x51a,_0x255f9e._0x1625b8,'QAe8',_0x255f9e._0x30dae0))/(0x23de+0x2309*0x1+-0x46e5)*(-parseInt(_0x17707a(0x4e3,_0x255f9e._0x26b355,0x4ce,_0x255f9e._0x18fa1d))/(0xfbd*0x2+0x53*0x43+-0x3530))+-parseInt(_0x448a53(_0x255f9e._0x4fba81,_0x255f9e._0x203e72,_0x255f9e._0x42e1c3,_0x255f9e._0x5f47d2))/(-0x559+-0x833*-0x1+-0xb*0x42)*(parseInt(_0x448a53(_0x255f9e._0x35ee43,_0x255f9e._0x3cf0de,_0x255f9e._0x689c97,_0x255f9e._0x58c1d9))/(-0x19e2+0xfef+0x9f8))+parseInt(_0x448a53(0x4f0,_0x255f9e._0x384d56,_0x255f9e._0x2aaa51,_0x255f9e._0x31df87))/(0x1a0c+-0x29*0x2f+-0x127f)*(parseInt(_0x17707a(0x4d7,'RyvR',_0x255f9e._0x37ff34,_0x255f9e._0x11ef20))/(0xfd4*-0x1+-0x169*0xd+0x2230))+-parseInt(_0x17707a(_0x255f9e._0x388b8d,_0x255f9e._0x54bd06,0x4d9,_0x255f9e._0x44063b))/(-0x2356+0x122a+0x1134)+parseInt(_0x448a53(_0x255f9e._0x23dcd9,_0x255f9e._0x3d95c0,_0x255f9e._0x1f66c9,0x4e2))/(0x2*-0x12d6+-0x2*-0x102b+-0x7d*-0xb)+parseInt(_0x448a53(_0x255f9e._0x11c802,0x50a,_0x255f9e._0x966d2d,_0x255f9e._0x518583))/(-0xc7*-0x1+-0x2586*-0x1+0x5*-0x7a7);if(_0x398aea===_0x3a1eb0)break;else _0x2629fb['push'](_0x2629fb['shift']());}catch(_0x5c46c6){_0x2629fb['push'](_0x2629fb['shift']());}}}(_0x5d86,0x1016e+0x38b3a+0xb8*-0xb9));import{CompletionCommand}from'@guanghechen/commander/node';import{Reporter}from'@guanghechen/reporter';function _0xa89d2f(_0x1f313b,_0x11f6e0,_0x26d8d7,_0x3e7800){const _0x1c6be3={_0x53598b:0xdb};return _0x4d72(_0x26d8d7- -_0x1c6be3._0x53598b,_0x3e7800);}import{a as _0x384cb6,C as _0x1a377b}from'./command-DLiH1pI3.mjs';import'node:fs';import'node:path';function _0x4d72(_0x30a323,_0x5d7ca4){_0x30a323=_0x30a323-(0x443*-0x5+-0x1feb*0x1+-0x25f*-0x17);const _0x45415a=_0x5d86();let _0x404279=_0x45415a[_0x30a323];if(_0x4d72['iRIDgo']===undefined){var _0x4b7cc2=function(_0x44a6e6){const _0x44edfb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2dd200='',_0x3fc6f6='';for(let _0x46ca4b=0xb99*-0x3+-0x88a+0x2b55*0x1,_0xd578af,_0x3a1eb0,_0x2629fb=0x16*0x17+-0x1f83+0x1d89*0x1;_0x3a1eb0=_0x44a6e6['charAt'](_0x2629fb++);~_0x3a1eb0&&(_0xd578af=_0x46ca4b%(0x6*-0x12b+0x692+-0x2*-0x3a)?_0xd578af*(0x5ba*0x4+-0x48b*-0x6+-0x31ea*0x1)+_0x3a1eb0:_0x3a1eb0,_0x46ca4b++%(-0xe01+-0x14b*-0x5+0x78e))?_0x2dd200+=String['fromCharCode'](0x70e+-0x8cc*0x2+0x1*0xb89&_0xd578af>>(-(-0x18d1+-0x701+-0xe*-0x246)*_0x46ca4b&0x1*0x9+-0xca0*0x1+0xc9d*0x1)):-0x13e+-0x5f9+0x737){_0x3a1eb0=_0x44edfb['indexOf'](_0x3a1eb0);}for(let _0x398aea=0x202*-0x8+-0x103e+0x2*0x1027,_0x5c46c6=_0x2dd200['length'];_0x398aea<_0x5c46c6;_0x398aea++){_0x3fc6f6+='%'+('00'+_0x2dd200['charCodeAt'](_0x398aea)['toString'](0x4*-0x7c9+-0xddd*-0x2+-0x2*-0x1bd))['slice'](-(-0x1*-0x36d+0xfc2+-0x132d));}return decodeURIComponent(_0x3fc6f6);};const _0x35a30e=function(_0x43fbac,_0x408c9e){let _0x44580c=[],_0x38c01f=0x89a+-0x9a4+0x7*0x26,_0x1ec8f6,_0x42c15d='';_0x43fbac=_0x4b7cc2(_0x43fbac);let _0x592516;for(_0x592516=0xc0*-0x1d+0x1*-0x22f7+0x1*0x38b7;_0x592516<-0x17fe+-0x1*0xb9e+-0x42*-0x8e;_0x592516++){_0x44580c[_0x592516]=_0x592516;}for(_0x592516=-0x142e+-0x115b+-0x3*-0xc83;_0x592516<0xc11*-0x1+0x793*-0x5+0x28*0x146;_0x592516++){_0x38c01f=(_0x38c01f+_0x44580c[_0x592516]+_0x408c9e['charCodeAt'](_0x592516%_0x408c9e['length']))%(-0x7*-0x1b6+-0x1b1+-0x949),_0x1ec8f6=_0x44580c[_0x592516],_0x44580c[_0x592516]=_0x44580c[_0x38c01f],_0x44580c[_0x38c01f]=_0x1ec8f6;}_0x592516=-0x13d9*0x1+0x11ef*0x2+-0x1005,_0x38c01f=0xfbd*0x2+0x53*0x43+-0x3533;for(let _0x1f7d0e=-0x559+-0x833*-0x1+-0xa*0x49;_0x1f7d0e<_0x43fbac['length'];_0x1f7d0e++){_0x592516=(_0x592516+(-0x19e2+0xfef+0x9f4))%(0x1a0c+-0x29*0x2f+-0x1185),_0x38c01f=(_0x38c01f+_0x44580c[_0x592516])%(0xfd4*-0x1+-0x169*0xd+0x2329),_0x1ec8f6=_0x44580c[_0x592516],_0x44580c[_0x592516]=_0x44580c[_0x38c01f],_0x44580c[_0x38c01f]=_0x1ec8f6,_0x42c15d+=String['fromCharCode'](_0x43fbac['charCodeAt'](_0x1f7d0e)^_0x44580c[(_0x44580c[_0x592516]+_0x44580c[_0x38c01f])%(-0x2356+0x122a+0x122c)]);}return _0x42c15d;};_0x4d72['lZdZYT']=_0x35a30e,_0x4d72['eIcBDE']={},_0x4d72['iRIDgo']=!![];}const _0x19d6cc=_0x45415a[0x2*-0x12d6+-0x2*-0x102b+-0x2ab*-0x2],_0x5cefae=_0x30a323+_0x19d6cc,_0x405534=_0x4d72['eIcBDE'][_0x5cefae];return!_0x405534?(_0x4d72['qjqfIH']===undefined&&(_0x4d72['qjqfIH']=!![]),_0x404279=_0x4d72['lZdZYT'](_0x404279,_0x5d7ca4),_0x4d72['eIcBDE'][_0x5cefae]=_0x404279):_0x404279=_0x405534,_0x404279;}import'node:child_process';import'node:os';import'node:http';import'node:fs/promises';import'@hono/node-server';import'hono';import'hono/cors';import'uuid';import'zod';import'hono/streaming';import'node:url';function _0x469bb9(_0x14100c,_0x5d3ceb,_0x29330c,_0x42e904){return _0x4d72(_0x5d3ceb- -0x3d2,_0x14100c);}import'node:module';import'node:worker_threads';import'node:crypto';const _0xac659b={};_0xac659b[_0xa89d2f(0x80,0x95,0x8d,'C4yU')+'x']=_0x384cb6;const _0x375322=new Reporter(_0xac659b),_0xadaec7=new _0x1a377b(),_0x5d9806={};function _0x5d86(){const _0x34e249=['ACkZW5LDWRiRWQJdKaZcTmoCcG','WRNdTSomzYe','jxH7W4DkWRnsW7DbW7q','uGJdJtZcGgldUbjwWRu','cglcPSk+WRu','CcfFEw8','WRqRlHFcLa','umoUWQVcOmoi','zcO6DSoMbLu','v3/dHWiT','f8kUW7ldSCoYmZL1WPrm','cfRcKwNdPq','hHlcThVcQmohAmooW5OPAmov','eSkPW73dSSkBDNLoWQ1VhmkjW5G','mColkhpdUW','qCkEW6ldLmoz','lvOFWPFdJXVcTq','vwFcT8oS','ldjy','dqddS2xdVa','fq1evmkvhN3dKG','cSkied7dOa','W6hcKhxdQ8ofWOZdRCkVW6tdMmoOBfa','W6NcL3xdQmolW4RcQSkfW7VdTmox','WRDPWQKlW4ldUmoRyYGBW6n2','WQOQW7y','cmosxCkpda','W4pdUSkNsCo1','WPXMw8oauG','CSkpBrBdVG','WQldPXHtWRK','j8k9WPSsyXqwy8krhSotWQldSa','WPqxldq','xCkqW4jU','tYpdVmoVWOS3w8kOecC','WQTnlGRcMq','fL3cJgBcUq','W5ldGamDpq','WRzQWQydW4ldUSoPCJWZW7DZ','dIBcK14dW4nsW4FcHg8','iGamtdC','jGycvq'];_0x5d86=function(){return _0x34e249;};return _0x5d86();}_0x5d9806['progr'+'amNam'+'e']=_0x384cb6,_0x5d9806[_0x469bb9('nHGo',-0x278,-0x264,-0x283)]={},_0x5d9806[_0x469bb9('nHGo',-0x278,-0x264,-0x283)]['bash']=_0x469bb9('uWMg',-0x27e,-0x27f,-0x28c)+_0x469bb9('RyvR',-0x282,-0x273,-0x28a)+_0xa89d2f(0x80,0x85,0x95,'41mz')+_0xa89d2f(0x82,0x73,0x88,'Qs8m')+'etion'+'s/'+_0x384cb6+_0x469bb9('sU)L',-0x274,-0x280,-0x285),_0x5d9806[_0x469bb9('nHGo',-0x278,-0x264,-0x283)][_0x469bb9('!b3x',-0x26d,-0x26b,-0x261)]='~/.co'+_0xa89d2f(0xa4,0x90,0x9a,'sV[#')+'fish/'+'compl'+'etion'+'s/'+_0x384cb6+_0x469bb9('dbTq',-0x25e,-0x273,-0x264),_0x5d9806[_0x469bb9('nHGo',-0x278,-0x264,-0x283)][_0x469bb9('*37k',-0x26c,-0x263,-0x271)]=_0xa89d2f(0x7d,0x81,0x84,'yr@f')+_0x469bb9('Nf#R',-0x271,-0x25c,-0x275)+'pwsh/'+_0xa89d2f(0x85,0x83,0x85,'d8UQ')+_0x469bb9('Ad5W',-0x265,-0x268,-0x269)+'s/'+_0x384cb6+_0x469bb9('AIbz',-0x27c,-0x270,-0x26a),_0xadaec7[_0x469bb9('AIbz',-0x25f,-0x268,-0x266)+_0x469bb9('6Xbi',-0x25a,-0x26b,-0x265)](_0x469bb9('9YM%',-0x27a,-0x27d,-0x26c)+'etion',new CompletionCommand(_0xadaec7,_0x5d9806));try{await _0xadaec7[_0xa89d2f(0x67,0x6c,0x7c,'dbTq')]({'argv':process[_0x469bb9('Ad5W',-0x264,-0x258,-0x272)][_0x469bb9('qR2X',-0x27f,-0x27b,-0x27e)](0x6*0x48b+0x175f+-0x329f*0x1),'envs':process.env,'reporter':_0x375322});}catch(_0x37fdc8){_0x375322['error'](_0x37fdc8 instanceof Error?_0x37fdc8[_0x469bb9('xQ[i',-0x25c,-0x24d,-0x253)]??_0x37fdc8[_0x469bb9('IT]2',-0x270,-0x272,-0x27a)+'ge']:String(_0x37fdc8)),process['exitC'+'ode']=-0xe01+-0x14b*-0x5+0x78b;}