@guanghechen/kit-copilot 0.6.9 → 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(_0xfe421a,_0x441bd2){const _0x3a98a6={_0x21bbfb:'&$fL',_0x4de827:0x53b,_0x2dc987:0x53f,_0x889bf5:0x539,_0x456b08:'pfnD',_0x39fbf9:0x558,_0x4c135c:0x55f,_0x4c71f2:0x562,_0x395677:'gQz*',_0x3f6f07:0x547,_0xe4c330:0x52c,_0x498374:'r!dj',_0x922179:0x55a,_0x172a9d:0x543,_0x556296:0x559,_0x5603ce:0x55b,_0x267425:0x554,_0x37ac3e:'@xwg',_0x9a1203:0x363,_0x243ea4:0x34f,_0x17db70:'3Y!s',_0x52d14b:0x348,_0x1469d7:'r!dj',_0x15c146:0x541,_0x2e7437:0x538,_0x173020:0x54f,_0x5d8124:'3Y!s',_0x1be619:0x356,_0x1d5487:0x35f,_0xd81861:0x359,_0x581c2f:'jKZr',_0xcc0726:0x341,_0x21c16a:0x34d,_0x4670c7:'Rk*['},_0x52d7b6={_0x3c3c87:0x1d5},_0x43a25f={_0x1d317c:0x3d7};function _0x31ddf8(_0x4f6423,_0x175461,_0x13d525,_0x4b9de0){return _0x3340(_0x175461-_0x43a25f._0x1d317c,_0x4f6423);}function _0x149214(_0x2759ae,_0x372b16,_0x4a12fe,_0x2a2d5a){return _0x3340(_0x4a12fe-_0x52d7b6._0x3c3c87,_0x2759ae);}const _0x2be92a=_0xfe421a();while(!![]){try{const _0x15336d=parseInt(_0x31ddf8(_0x3a98a6._0x21bbfb,_0x3a98a6._0x4de827,_0x3a98a6._0x2dc987,_0x3a98a6._0x889bf5))/(0x176a*-0x1+-0x1b93+0x3d*0xd6)*(parseInt(_0x31ddf8(_0x3a98a6._0x456b08,_0x3a98a6._0x39fbf9,_0x3a98a6._0x4c135c,_0x3a98a6._0x4c71f2))/(0x2*0x607+-0x2197+0x158b*0x1))+-parseInt(_0x31ddf8(_0x3a98a6._0x395677,0x542,_0x3a98a6._0x3f6f07,_0x3a98a6._0xe4c330))/(0x1c13+0xe5*0x1b+-0x3437)*(parseInt(_0x31ddf8(_0x3a98a6._0x498374,_0x3a98a6._0x922179,_0x3a98a6._0x172a9d,_0x3a98a6._0x556296))/(0x1b*-0x14f+-0x2*-0xf92+0x1*0x435))+-parseInt(_0x31ddf8('Rk*[',0x54b,_0x3a98a6._0x5603ce,_0x3a98a6._0x267425))/(-0x2530+-0xaea+0x301f*0x1)+parseInt(_0x149214(_0x3a98a6._0x37ac3e,_0x3a98a6._0x9a1203,0x352,_0x3a98a6._0x243ea4))/(-0x6*-0x337+0x11+-0x1355)+-parseInt(_0x149214(_0x3a98a6._0x17db70,0x34a,_0x3a98a6._0x52d14b,_0x3a98a6._0x243ea4))/(-0x25e3+-0x217a+-0xc*-0x5f3)+parseInt(_0x31ddf8(_0x3a98a6._0x1469d7,_0x3a98a6._0x15c146,_0x3a98a6._0x2e7437,_0x3a98a6._0x173020))/(0x14c2+0xb*0x33a+0x1*-0x3838)*(-parseInt(_0x149214(_0x3a98a6._0x5d8124,_0x3a98a6._0x1be619,_0x3a98a6._0x1d5487,_0x3a98a6._0xd81861))/(-0xa63+0xacf*0x1+-0x63))+parseInt(_0x149214(_0x3a98a6._0x581c2f,_0x3a98a6._0xcc0726,_0x3a98a6._0x21c16a,0x35f))/(-0x24bd+-0x100*-0xc+0x18c7)*(parseInt(_0x149214(_0x3a98a6._0x4670c7,_0x3a98a6._0x9a1203,0x355,0x356))/(0x1*-0x950+0x2fe*0x5+-0x59b));if(_0x15336d===_0x441bd2)break;else _0x2be92a['push'](_0x2be92a['shift']());}catch(_0x19b1b0){_0x2be92a['push'](_0x2be92a['shift']());}}}(_0x5237,0xbbe5+0xce*0x46d+-0x5db*0x62));import{CompletionCommand}from'@guanghechen/commander/node';function _0x38361c(_0x5b0923,_0x19b5e3,_0x1846b2,_0x5513e0){return _0x3340(_0x1846b2-0x320,_0x5513e0);}import{Reporter}from'@guanghechen/reporter';import{a as _0x56c8da,C as _0x3dfe66}from'./command-DJUrs5rc.mjs';import'node:fs';import'node:path';import'node:child_process';import'node:os';import'node:http';function _0x3340(_0x6d3e9c,_0x1df373){_0x6d3e9c=_0x6d3e9c-(0x1*-0x1cd0+0x5*-0x439+0x334d);const _0x2bbad5=_0x5237();let _0x3168c4=_0x2bbad5[_0x6d3e9c];if(_0x3340['HHnVYM']===undefined){var _0x1a879c=function(_0x3a1507){const _0x4cc989='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x325599='',_0x23030f='';for(let _0x3ce0fe=0x168f+-0x83*0x11+-0xddc,_0x23b71a,_0x4be2c3,_0x5950cb=-0x1fbb*-0x1+0x19bd+-0x3978;_0x4be2c3=_0x3a1507['charAt'](_0x5950cb++);~_0x4be2c3&&(_0x23b71a=_0x3ce0fe%(0x3*0x71f+0x25ab+-0x3b04)?_0x23b71a*(-0x8db*-0x2+0x26e8+-0x385e)+_0x4be2c3:_0x4be2c3,_0x3ce0fe++%(0x2292+-0x20a3+-0x1eb))?_0x325599+=String['fromCharCode'](-0x1*-0x1387+-0x1ed*-0x10+0x4*-0xc56&_0x23b71a>>(-(0xa11+-0x1506+0xaf7)*_0x3ce0fe&-0x2410+0x25f5+-0x1df*0x1)):0x169*-0x5+0x1e67+-0x175a){_0x4be2c3=_0x4cc989['indexOf'](_0x4be2c3);}for(let _0x98ac57=0x8e*-0x1d+0x5*-0xfd+0x1*0x1507,_0x2d8dfa=_0x325599['length'];_0x98ac57<_0x2d8dfa;_0x98ac57++){_0x23030f+='%'+('00'+_0x325599['charCodeAt'](_0x98ac57)['toString'](0xd87+-0x3*0x78d+0x930))['slice'](-(-0x7b2*0x1+0x269a+-0x1ee6));}return decodeURIComponent(_0x23030f);};const _0x47e203=function(_0x3e555d,_0x221ab7){let _0x4f89dd=[],_0xd81347=0xc11*0x1+-0x30d*-0x6+-0x1e5f*0x1,_0x15e4dd,_0x2452ab='';_0x3e555d=_0x1a879c(_0x3e555d);let _0x41f2de;for(_0x41f2de=0x89f*-0x1+-0x24e7+0x1*0x2d86;_0x41f2de<-0x1*-0xf7c+-0x6bb*-0x1+-0x1537;_0x41f2de++){_0x4f89dd[_0x41f2de]=_0x41f2de;}for(_0x41f2de=0x1542+0x1*-0x1987+0x445;_0x41f2de<0x1*-0x1703+-0x948+-0x3*-0xb19;_0x41f2de++){_0xd81347=(_0xd81347+_0x4f89dd[_0x41f2de]+_0x221ab7['charCodeAt'](_0x41f2de%_0x221ab7['length']))%(0x11d*0x8+-0x42d*0x4+-0x233*-0x4),_0x15e4dd=_0x4f89dd[_0x41f2de],_0x4f89dd[_0x41f2de]=_0x4f89dd[_0xd81347],_0x4f89dd[_0xd81347]=_0x15e4dd;}_0x41f2de=-0x150e+0xd53+0x7bb,_0xd81347=0x1c0b*-0x1+0x24a6+-0x89b;for(let _0x53d7f4=0x6f2+0x23*0x113+-0xed9*0x3;_0x53d7f4<_0x3e555d['length'];_0x53d7f4++){_0x41f2de=(_0x41f2de+(0xda9+0x429*0x3+0x1a23*-0x1))%(-0x1*0x1ad7+0x1a76+0x161*0x1),_0xd81347=(_0xd81347+_0x4f89dd[_0x41f2de])%(0xc44+0x1*0x1c4f+-0x2793),_0x15e4dd=_0x4f89dd[_0x41f2de],_0x4f89dd[_0x41f2de]=_0x4f89dd[_0xd81347],_0x4f89dd[_0xd81347]=_0x15e4dd,_0x2452ab+=String['fromCharCode'](_0x3e555d['charCodeAt'](_0x53d7f4)^_0x4f89dd[(_0x4f89dd[_0x41f2de]+_0x4f89dd[_0xd81347])%(-0xaea+0x23a7*-0x1+0x1*0x2f91)]);}return _0x2452ab;};_0x3340['KapWfs']=_0x47e203,_0x3340['VoahYB']={},_0x3340['HHnVYM']=!![];}const _0x49059f=_0x2bbad5[0x2e2+-0x10c6+0xde4],_0x5b0156=_0x6d3e9c+_0x49059f,_0x709d82=_0x3340['VoahYB'][_0x5b0156];return!_0x709d82?(_0x3340['nlzwnB']===undefined&&(_0x3340['nlzwnB']=!![]),_0x3168c4=_0x3340['KapWfs'](_0x3168c4,_0x1df373),_0x3340['VoahYB'][_0x5b0156]=_0x3168c4):_0x3168c4=_0x709d82,_0x3168c4;}import'node:fs/promises';import'@hono/node-server';import'hono';import'hono/cors';import'uuid';import'zod';import'hono/streaming';import'node:url';import'node:module';import'node:worker_threads';import'node:crypto';const _0x3bf9ce={};_0x3bf9ce[_0x38361c(0x483,0x4a0,0x492,'!KV]')+'x']=_0x56c8da;const _0x16079a=new Reporter(_0x3bf9ce),_0xced192=new _0x3dfe66();function _0x2cc445(_0x59414c,_0x425850,_0xc4bb7b,_0x498276){const _0x568f98={_0x1f789c:0x335};return _0x3340(_0x498276-_0x568f98._0x1f789c,_0x425850);}function _0x5237(){const _0xa3a12f=['WPBcLH3dPZ8','WOLzWOmgoa','WQtcJmoWta0','g2XcqbqHofa','WPFcOSkDW4y','lSoYqW','W7FcNCkVW5tcQmohWOBcNXVcLCk2uW','WRhdJ8keW6fhWOm0','WPZdM8o9WR3dHq','zmo3W4FdQ8ojpumwgmozrSk8WQO','yhXllh4','vKRdTmkqW6e','W7rIDxGB','quBdKhXmWRfuzmkkfG','WOOGgticDMWefSoT','amo8i8k/ta','bSoBabiu','gSoDWPC8W7S','nCo8WR3dQa','W5v8s2Wd','WRyih0S+WQrmDfpcQCowfLu','fCo8nmk2vW','Eqaux8kmWQ/cMCkRefyIW68L','aJZdQCoTk8oqWPOsdCkNW4VcUq','ySksWQ8YW64','vKBdTmklW4W','WPpdHSkKWQVdLq','WQNcNaNcG0BdS8k9tW','fadcHJW','lxvpl3O','qH8ohra','WORdKSo8WRNdK8oZW4NcJSoDWQxdLmo2','WORdM8o9WRJdNmo2WRdcMSoIWOVdL8oElq','qYC4WPi7','uwtcRCk1mW','aJhdQSoVlSouWQGPd8kPW4BcPW','tSkcW5vHW6nmWRBcTW4VW7X0','pw9aphK','r0xdLWvbWPz7uSkB','p8oOqcOb','W7ddQ8kSW4Hj','n8kMWOlcSG','dNTjWRmt','ygLk','W6BcTSoEyrqenG','FWSqhCo/W7ldP8kXkG'];_0x5237=function(){return _0xa3a12f;};return _0x5237();}const _0x189102={};_0x189102[_0x2cc445(0x4cc,'r1A*',0x4d2,0x4c2)+'amNam'+'e']=_0x56c8da,_0x189102[_0x2cc445(0x4c0,'zgRl',0x49e,0x4b3)]={},_0x189102[_0x2cc445(0x4c0,'zgRl',0x49e,0x4b3)][_0x38361c(0x4b5,0x4b8,0x4a6,'3v7V')]='~/.co'+_0x38361c(0x498,0x496,0x485,'u6Fk')+_0x38361c(0x495,0x497,0x49f,'Rk*[')+_0x2cc445(0x4a9,'0k3y',0x49c,0x4af)+'etion'+'s/'+_0x56c8da+_0x2cc445(0x4b2,'0k3y',0x4c0,0x4bd),_0x189102[_0x2cc445(0x4c0,'zgRl',0x49e,0x4b3)][_0x2cc445(0x4ab,'gu59',0x490,0x4a4)]=_0x2cc445(0x4c9,'UOrp',0x4d7,0x4c0)+'nfig/'+_0x38361c(0x48e,0x47a,0x48e,'pfnD')+_0x38361c(0x4a3,0x488,0x48d,'UZA!')+_0x38361c(0x4b7,0x49d,0x4a7,'HCDW')+'s/'+_0x56c8da+_0x2cc445(0x49e,'0k3y',0x48c,0x49c),_0x189102[_0x2cc445(0x4c0,'zgRl',0x49e,0x4b3)]['pwsh']=_0x38361c(0x48a,0x49e,0x495,'nr9e')+'nfig/'+_0x38361c(0x474,0x477,0x489,'jf01')+'compl'+_0x38361c(0x4a2,0x48e,0x497,'hJcT')+'s/'+_0x56c8da+_0x38361c(0x482,0x487,0x481,'7ce&'),_0xced192[_0x2cc445(0x4a9,'0k3y',0x4af,0x4b7)+_0x2cc445(0x4a5,'gQz*',0x4bb,0x4a5)](_0x38361c(0x4a2,0x4a3,0x4a4,'^[@k')+_0x2cc445(0x49c,'7dxZ',0x4ba,0x4ab),new CompletionCommand(_0xced192,_0x189102));try{await _0xced192[_0x2cc445(0x4a2,'^[@k',0x481,0x497)]({'argv':process[_0x38361c(0x488,0x497,0x499,'r!dj')][_0x2cc445(0x4cc,'&$fL',0x4cc,0x4ba)](-0x1a4+0x2292+-0x20ec),'envs':process.env,'reporter':_0x16079a});}catch(_0xab1dbd){_0x16079a[_0x2cc445(0x4b7,'!KV]',0x499,0x4a1)](_0xab1dbd instanceof Error?_0xab1dbd[_0x38361c(0x4a9,0x498,0x49b,'DNnh')]??_0xab1dbd[_0x38361c(0x4ad,0x4a7,0x4ac,'KlNm')+'ge']:String(_0xab1dbd)),process[_0x38361c(0x486,0x487,0x488,'7dxZ')+'ode']=0xa*-0x27c+0x1387+-0x2a9*-0x2;}
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;}