@guanghechen/kit-copilot 0.6.14 → 0.6.16
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 +3 -2
- package/lib/esm/cli.mjs +1 -1
- package/lib/esm/command-DX8OAb_7.mjs +1 -0
- package/lib/esm/index.mjs +1 -1
- package/package.json +4 -4
- package/lib/esm/command-BM7sY3Xh.mjs +0 -1
package/README.md
CHANGED
|
@@ -49,10 +49,11 @@ Example `preset.json`:
|
|
|
49
49
|
|
|
50
50
|
`kit-copilot auth` persists `KIT_COPILOT_GITHUB_TOKEN` to preset env storage.
|
|
51
51
|
|
|
52
|
-
- Persist target: `<config-root>/.env.local`
|
|
52
|
+
- Persist target resolution: `variant.envFile` > `profile.envFile` > `<config-root>/.env.local`
|
|
53
|
+
- Persist target path is consumed from `ctx.sources.preset.meta.resolvedEnvFile` (commander output)
|
|
53
54
|
- `GH_COPILOT_TOKEN` is not persisted
|
|
54
55
|
|
|
55
|
-
Note:
|
|
56
|
+
Note: persist target is selected from the active preset profile/variant; default fallback is `<config-root>/.env.local` when no `envFile` is configured.
|
|
56
57
|
|
|
57
58
|
## Examples
|
|
58
59
|
|
package/lib/esm/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
(function(_0x51f4cc,_0x8c5427){const _0x11978e={_0x3f7d85:'XndQ',_0x112c9d:0x27d,_0x5eec82:0x286,_0x347756:0x27b,_0x1d0bbe:'mGJO',_0x2601be:0x27f,_0x41e533:0x48c,_0x4fd945:'ay#5',_0x683e2f:0x489,_0x3163cf:'*6ON',_0x2d0cc4:0x270,_0x57a4fb:0x259,_0xf81412:0x271,_0x39f661:'4489',_0x55c863:0x26f,_0x2f1e91:0x25c,_0x55c269:0x2a1,_0x3b8564:'mYJ*',_0x1cb782:0x29b,_0x2684de:0x2ac,_0x4d5522:0x289,_0x1ac9df:'un52',_0x19005d:0x283,_0x39ce30:0x279,_0x86ed69:0x49e,_0x4466ff:'tGU$',_0x114d5a:0x48f,_0x188b2b:0x47d,_0x26ef52:0x477,_0x3e5a5f:'b6az',_0x1ff974:0x48d,_0x47b787:0x4a0,_0x14630b:0x479,_0x3e4724:0x483},_0x492fd7={_0x5cd8b9:0x2de},_0x4fedbf={_0xf5d851:0xe5};function _0x24c303(_0x5ba12a,_0x1cdc05,_0x2364f7,_0x786c8e){return _0x1e8f(_0x2364f7-_0x4fedbf._0xf5d851,_0x1cdc05);}const _0x15c7ae=_0x51f4cc();function _0x55d708(_0x4f8e5e,_0x41d841,_0x422f19,_0xffb22d){return _0x1e8f(_0x422f19-_0x492fd7._0x5cd8b9,_0x41d841);}while(!![]){try{const _0x160681=parseInt(_0x24c303(0x268,_0x11978e._0x3f7d85,_0x11978e._0x112c9d,_0x11978e._0x5eec82))/(-0x23c6+-0x255a+0x61*0xc1)*(parseInt(_0x24c303(_0x11978e._0x347756,_0x11978e._0x1d0bbe,_0x11978e._0x2601be,0x28c))/(-0xfcc+-0x211*0xb+0x2689))+parseInt(_0x55d708(_0x11978e._0x41e533,_0x11978e._0x4fd945,_0x11978e._0x683e2f,0x495))/(0x1e36+-0x185a+0x5d9*-0x1)+-parseInt(_0x24c303(0x260,_0x11978e._0x3163cf,_0x11978e._0x2d0cc4,_0x11978e._0x57a4fb))/(0x4*-0x493+-0x207*0xa+0x2696)+-parseInt(_0x24c303(_0x11978e._0xf81412,_0x11978e._0x39f661,_0x11978e._0x55c863,_0x11978e._0x2f1e91))/(-0x336+0x2*0x1229+-0x2117)*(parseInt(_0x24c303(_0x11978e._0x55c269,_0x11978e._0x3b8564,_0x11978e._0x1cb782,_0x11978e._0x2684de))/(-0x54e*0x4+-0x1fc4+0x3502))+-parseInt(_0x24c303(_0x11978e._0x4d5522,_0x11978e._0x1ac9df,_0x11978e._0x19005d,_0x11978e._0x39ce30))/(-0x11d+-0x2*0xcc7+0x1ab2)*(parseInt(_0x55d708(_0x11978e._0x86ed69,_0x11978e._0x4466ff,_0x11978e._0x114d5a,_0x11978e._0x188b2b))/(-0x3*-0x54a+-0x22b4*-0x1+-0x328a))+-parseInt(_0x55d708(_0x11978e._0x26ef52,_0x11978e._0x3e5a5f,_0x11978e._0x1ff974,_0x11978e._0x47b787))/(-0x1b9b+-0x23a4+0x3f48)+parseInt(_0x55d708(_0x11978e._0x14630b,'DkWz',_0x11978e._0x3e4724,0x495))/(-0x30c+-0x2f0*-0x2+-0x1*0x2ca);if(_0x160681===_0x8c5427)break;else _0x15c7ae['push'](_0x15c7ae['shift']());}catch(_0x2de80d){_0x15c7ae['push'](_0x15c7ae['shift']());}}}(_0x4da7,-0x6223d+0xa62e4+0x70c07));import{CompletionCommand}from'@guanghechen/commander/node';import{Reporter as _0x391088}from'@guanghechen/reporter';import{a as _0x4d7a6c,C as _0x3511fc}from'./command-DX8OAb_7.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';import'hono/cors';import'@guanghechen/kit-stt';function _0x4da7(){const _0x17e6ed=['WQebpW','usBdPSk+qq','W6RdLCkXrmoDW77dGtxcK1RcHSo7','kSk/lSofWPbUW6VdLW','wmkPWOpdLHK','k8oAWR9z','dNBcTSoGxmoso8oKW4BdKWPs','kfxcVK49W6ZcMNSRiatdHW','BCo5b8otWR4','WR4yCSkCW4K','seZdPmkbWRhcMgZdNmkIWO8','W5mSWRDp','tYhdU8kXhq','W7ZdNmok','WR/dISorW5K2','hqT8W40x','WQhcP8oppSkT','WPSJWQ1ubq','W5q3WQnr','WPD1W7xcU8kn','p8oGW7qHrWRdHCoicq','cbVcJSoc','W6RdLSk6rCozWOBdVXNcLv3cPG','DSk+WO7cR8oB','WQ3cOmovmq','c8o1ix9h','W6PiAmkvWOVcGmkagSoeeHy','WQrEDCorWRC','wrOqu8kqjrdcKSk+WPBdOSkAia','BmkWWR8aha','W5upW5tdOrS','W4dcQ8ovc2e','De/dTdDA','W5aWWQxdOmotWOxcLSokkWm+zXi','WRZcRCopoSoN','W48Kdt4aAgpcTrCOWQ0','WOGAyCkhcG','hSoGphHA','rWBcS8ksbG','ffZdI8oawCoUlr5mWQujdmoc','W4uVatCcd2NcQW0gWPdcRa','ktzKW5hcMtGErKe','sWdcTq','AmkzW7OgWO7dJZJcNSk/d8oouCkk','bK5bW67cQCoLFN5vWP0X','zmkJow8nW5JcVSoTW70y','WPeNAmkuEG'];_0x4da7=function(){return _0x17e6ed;};return _0x4da7();}import'uuid';import'ws';import'zod';import'hono/streaming';import'node:url';function _0x1e8f(_0x430e44,_0x5a0be6){_0x430e44=_0x430e44-(-0x3*0x9c7+0x1ed2+-0x4*-0x3);const _0x448b46=_0x4da7();let _0x217704=_0x448b46[_0x430e44];if(_0x1e8f['Yfjogv']===undefined){var _0x3f7d4c=function(_0x5dff7){const _0x457ce2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe23b8e='',_0x2bf89a='';for(let _0x36db73=0x1*-0x44b+0x1062+-0xc17*0x1,_0x10a28d,_0x5ad0ff,_0x494672=-0xcd3+-0x1*-0x1ae7+-0xe14;_0x5ad0ff=_0x5dff7['charAt'](_0x494672++);~_0x5ad0ff&&(_0x10a28d=_0x36db73%(0x1*0x2a5+0x333+-0x5d4)?_0x10a28d*(-0x1f48*0x1+0x7d8+0x17b0)+_0x5ad0ff:_0x5ad0ff,_0x36db73++%(-0x3dd*0x6+0x24ca+-0x57*0x28))?_0xe23b8e+=String['fromCharCode'](0xbd*-0x1b+-0x2*0xd2b+0x2f44&_0x10a28d>>(-(-0x592+0x98*-0x30+-0x2*-0x110a)*_0x36db73&-0x646+0x2b*-0x67+0x1799)):-0xc3a+-0x6c*-0x3c+-0xd16){_0x5ad0ff=_0x457ce2['indexOf'](_0x5ad0ff);}for(let _0x56a202=-0x73a+0xd5d+-0x623*0x1,_0x2cfe84=_0xe23b8e['length'];_0x56a202<_0x2cfe84;_0x56a202++){_0x2bf89a+='%'+('00'+_0xe23b8e['charCodeAt'](_0x56a202)['toString'](-0x252f+0x12fa+0x1245))['slice'](-(0x1fa4+0x23c6+-0x6*0xb3c));}return decodeURIComponent(_0x2bf89a);};const _0x4301ba=function(_0x22bf66,_0x4599ea){let _0x5b3b0e=[],_0x140e00=0x1b25+-0xf0c+-0xc19*0x1,_0xeb4854,_0x51f4cc='';_0x22bf66=_0x3f7d4c(_0x22bf66);let _0x8c5427;for(_0x8c5427=0xf*0xad+0xeaa+-0x1*0x18cd;_0x8c5427<0x1dab+-0xbbf*-0x1+0x286a*-0x1;_0x8c5427++){_0x5b3b0e[_0x8c5427]=_0x8c5427;}for(_0x8c5427=0x1f7b+0xf*-0x12e+-0xdc9;_0x8c5427<-0x118a*0x1+0x1957+-0x1*0x6cd;_0x8c5427++){_0x140e00=(_0x140e00+_0x5b3b0e[_0x8c5427]+_0x4599ea['charCodeAt'](_0x8c5427%_0x4599ea['length']))%(0x258e+0x1993+-0x3e21*0x1),_0xeb4854=_0x5b3b0e[_0x8c5427],_0x5b3b0e[_0x8c5427]=_0x5b3b0e[_0x140e00],_0x5b3b0e[_0x140e00]=_0xeb4854;}_0x8c5427=-0x8*-0x418+0x23d3+-0x4493,_0x140e00=-0x255a+0x1f*-0x4a+0x2e50;for(let _0x15c7ae=-0x211*0xb+-0x88c+-0x9d*-0x33;_0x15c7ae<_0x22bf66['length'];_0x15c7ae++){_0x8c5427=(_0x8c5427+(0xa5*-0x7+-0x25d9+0x2a5d))%(-0xcb6*-0x3+0xe26+-0x3348),_0x140e00=(_0x140e00+_0x5b3b0e[_0x8c5427])%(0x2*0x1229+-0xf4f+-0x1403),_0xeb4854=_0x5b3b0e[_0x8c5427],_0x5b3b0e[_0x8c5427]=_0x5b3b0e[_0x140e00],_0x5b3b0e[_0x140e00]=_0xeb4854,_0x51f4cc+=String['fromCharCode'](_0x22bf66['charCodeAt'](_0x15c7ae)^_0x5b3b0e[(_0x5b3b0e[_0x8c5427]+_0x5b3b0e[_0x140e00])%(-0x1fc4+0x65d+0x1a67)]);}return _0x51f4cc;};_0x1e8f['eojYGS']=_0x4301ba,_0x1e8f['jOeYPK']={},_0x1e8f['Yfjogv']=!![];}const _0x30c3f4=_0x448b46[-0x11d+-0x2*0xcc7+0x1aab],_0x19d765=_0x430e44+_0x30c3f4,_0xdff318=_0x1e8f['jOeYPK'][_0x19d765];return!_0xdff318?(_0x1e8f['OVnQJd']===undefined&&(_0x1e8f['OVnQJd']=!![]),_0x217704=_0x1e8f['eojYGS'](_0x217704,_0x5a0be6),_0x1e8f['jOeYPK'][_0x19d765]=_0x217704):_0x217704=_0xdff318,_0x217704;}import'node:module';import'node:worker_threads';function _0x1d50d6(_0x43c941,_0x58cd51,_0x1691b5,_0x527154){const _0x2999ab={_0x41bb36:0x335};return _0x1e8f(_0x527154-_0x2999ab._0x41bb36,_0x1691b5);}import'node:crypto';const _0x21193b={};_0x21193b['prefi'+'x']=_0x4d7a6c;const _0x2f1963=new _0x391088(_0x21193b),_0x28e427=new _0x3511fc(),_0xce6ba4={};_0xce6ba4[_0x1d50d6(0x4ca,0x4be,'aXS#',0x4d0)+_0x5db407(0x554,0x53e,'ay#5',0x536)+'e']=_0x4d7a6c;function _0x5db407(_0xd3554b,_0x3f8d07,_0x3cec73,_0x27e58c){const _0x48f71c={_0x27cb20:0x394};return _0x1e8f(_0x3f8d07-_0x48f71c._0x27cb20,_0x3cec73);}_0xce6ba4[_0x1d50d6(0x4c8,0x4c7,'4489',0x4c5)]={},_0xce6ba4[_0x1d50d6(0x4c8,0x4c7,'4489',0x4c5)][_0x1d50d6(0x4db,0x4d3,'a3uU',0x4d1)]='~/.co'+_0x5db407(0x531,0x548,'4489',0x547)+_0x1d50d6(0x4d6,0x4c2,'XndQ',0x4d6)+'compl'+'etion'+'s/'+_0x4d7a6c+_0x1d50d6(0x4c5,0x4bb,'6j^&',0x4c6),_0xce6ba4[_0x1d50d6(0x4c8,0x4c7,'4489',0x4c5)][_0x5db407(0x52d,0x523,'HX$0',0x52d)]=_0x5db407(0x540,0x536,'a7R#',0x549)+'nfig/'+'fish/'+_0x5db407(0x527,0x521,'P@2V',0x532)+'etion'+'s/'+_0x4d7a6c+_0x1d50d6(0x4be,0x4da,'HX$0',0x4ca),_0xce6ba4[_0x1d50d6(0x4c8,0x4c7,'4489',0x4c5)][_0x5db407(0x524,0x51d,'b6az',0x515)]='~/.co'+_0x5db407(0x511,0x528,'a3uU',0x539)+_0x5db407(0x534,0x538,'[fuG',0x521)+_0x5db407(0x53e,0x533,'TVTc',0x534)+_0x1d50d6(0x4e7,0x4ce,'AJYV',0x4d2)+'s/'+_0x4d7a6c+_0x5db407(0x534,0x52d,'ay#5',0x515),_0x28e427[_0x5db407(0x535,0x52b,'DkWz',0x523)+_0x5db407(0x53b,0x546,'*CE*',0x554)]('compl'+_0x1d50d6(0x4cb,0x4dd,'uvcJ',0x4d8),new CompletionCommand(_0x28e427,_0xce6ba4));try{await _0x28e427[_0x1d50d6(0x4e6,0x4f3,'2e#U',0x4e3)]({'argv':process[_0x1d50d6(0x4da,0x4db,'HX$0',0x4cb)][_0x5db407(0x550,0x53a,'a3uU',0x545)](-0x1ef9+0x1*-0x539+0x2434),'envs':process.env,'reporter':_0x2f1963});}catch(_0x14cbdd){_0x2f1963['error'](_0x14cbdd instanceof Error?_0x14cbdd[_0x1d50d6(0x4af,0x4ae,'mYJ*',0x4c1)]??_0x14cbdd[_0x5db407(0x523,0x526,'6j^&',0x522)+'ge']:String(_0x14cbdd)),process[_0x1d50d6(0x4bc,0x4d9,'rFzH',0x4c8)+_0x5db407(0x548,0x547,'7nu8',0x54d)]=-0x236c+0x3ec+0x1f81;}
|