@guanghechen/kit-copilot 0.6.16 → 0.6.17
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 +2 -2
- package/lib/esm/cli.mjs +1 -1
- package/lib/esm/command-DuzRG0Xt.mjs +1 -0
- package/lib/esm/index.mjs +1 -1
- package/package.json +1 -1
- package/lib/esm/command-DX8OAb_7.mjs +0 -1
package/README.md
CHANGED
|
@@ -50,10 +50,10 @@ Example `preset.json`:
|
|
|
50
50
|
`kit-copilot auth` persists `KIT_COPILOT_GITHUB_TOKEN` to preset env storage.
|
|
51
51
|
|
|
52
52
|
- Persist target resolution: `variant.envFile` > `profile.envFile` > `<config-root>/.env.local`
|
|
53
|
-
- Persist target path is
|
|
53
|
+
- Persist target path is resolved from commander public preset metadata (`meta.file/profile/variant`) and preset profile `envFile`
|
|
54
54
|
- `GH_COPILOT_TOKEN` is not persisted
|
|
55
55
|
|
|
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
|
+
Note: persist target is selected from the active preset profile/variant; default fallback is `<config-root>/.env.local` when no `envFile` is configured or path resolution fails.
|
|
57
57
|
|
|
58
58
|
## Examples
|
|
59
59
|
|
package/lib/esm/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
function _0x5f4a42(_0x326d1c,_0x42f6a4,_0x1f294e,_0x563079){const _0x830611={_0x27ae05:0x125};return _0x1162(_0x1f294e-_0x830611._0x27ae05,_0x42f6a4);}(function(_0x45a8cc,_0x12e6a1){const _0x438470={_0x1f26ab:'4!ux',_0x425071:0x2b8,_0x43aeea:0x2cd,_0x4a7b86:0x2e2,_0x2fa867:'x2sk',_0xaa97cd:0x2e9,_0x23a136:'VNP5',_0x2f0e40:0x417,_0x2dbea2:0x409,_0x537f97:0x2e0,_0xd76dfd:'35g)',_0x38c2c2:0x2c6,_0x57ffa3:0x2d0,_0x385027:'TG]H',_0x2d3e31:0x413,_0x36fdcb:0x409,_0x4a36af:'zcRa',_0x3e67b9:0x41f,_0x7490fc:0x40c,_0x2f808b:'CY4O',_0x5c09f2:0x2d7,_0x23561b:0x2d2,_0x3a5af9:'&2]^',_0x3e6d92:0x2e0,_0xbe93c0:'qkaf',_0x266171:0x2df,_0x271f8e:0x2e0,_0x1bd651:'G[u^',_0xbbacfc:0x2d1,_0x2425d6:'^]VS',_0x9a62d8:0x2b3,_0x58b3b7:'q)Hg',_0x2140fb:0x427,_0x1b8007:0x40f,_0xd9dbd0:0x426,_0x42273f:0x41d},_0x49c2a2={_0x3aff91:0x383},_0x13f469={_0x321de4:0x377},_0x5c2fd1=_0x45a8cc();function _0x2a8cc8(_0x51103b,_0x424113,_0x3aeef5,_0x5df2b5){return _0x1162(_0x3aeef5-_0x13f469._0x321de4,_0x51103b);}function _0x210620(_0x4eb54c,_0x3f8f25,_0x555754,_0x4e3063){return _0x1162(_0x4e3063- -_0x49c2a2._0x3aff91,_0x3f8f25);}while(!![]){try{const _0xfb4407=-parseInt(_0x210620(-0x2e2,_0x438470._0x1f26ab,-_0x438470._0x425071,-_0x438470._0x43aeea))/(0x4d0+-0x1d03+-0x60d*-0x4)*(-parseInt(_0x210620(-_0x438470._0x4a7b86,_0x438470._0x2fa867,-0x2d5,-_0x438470._0xaa97cd))/(0x20e*0x11+0x9*-0x257+-0xddd))+-parseInt(_0x2a8cc8(_0x438470._0x23a136,0x41d,_0x438470._0x2f0e40,_0x438470._0x2dbea2))/(-0x1f*-0x10f+0x161c+0x36ea*-0x1)*(-parseInt(_0x210620(-_0x438470._0x537f97,_0x438470._0xd76dfd,-_0x438470._0x38c2c2,-_0x438470._0x57ffa3))/(-0x1ee+0x205e+0x2*-0xf36))+parseInt(_0x2a8cc8(_0x438470._0x385027,_0x438470._0x2d3e31,0x421,_0x438470._0x36fdcb))/(-0x1*-0x254+-0x4e5*-0x3+-0x10fe)+-parseInt(_0x2a8cc8(_0x438470._0x4a36af,0x427,_0x438470._0x3e67b9,_0x438470._0x7490fc))/(0x18ae+0x1*-0x619+-0x128f)*(parseInt(_0x210620(-0x2d7,_0x438470._0x2f808b,-_0x438470._0x5c09f2,-0x2cf))/(-0x1*-0x1507+0x1*0x17f3+0x25*-0x137))+-parseInt(_0x210620(-_0x438470._0x23561b,_0x438470._0x3a5af9,-0x2ca,-0x2d5))/(-0x2*-0xbe3+0x1*0x1976+0x4*-0xc4d)*(-parseInt(_0x210620(-_0x438470._0x3e6d92,_0x438470._0xbe93c0,-0x2d4,-_0x438470._0x266171))/(-0x2371+-0x254f+0x48c9))+parseInt(_0x210620(-_0x438470._0x271f8e,_0x438470._0x1bd651,-_0x438470._0xbbacfc,-0x2dc))/(-0x14*-0x145+-0xa9f*0x3+0x683)*(parseInt(_0x210620(-0x2ce,_0x438470._0x2425d6,-_0x438470._0x9a62d8,-0x2c2))/(0x1c43+0x1e06+-0x3a3e))+-parseInt(_0x2a8cc8(_0x438470._0x58b3b7,_0x438470._0x2140fb,0x420,_0x438470._0x1b8007))/(0x2115+-0x1323+0x1*-0xde6)*(parseInt(_0x2a8cc8('5nSo',_0x438470._0xd9dbd0,0x433,_0x438470._0x42273f))/(-0x9d3*-0x1+-0x16*-0x163+-0x2848));if(_0xfb4407===_0x12e6a1)break;else _0x5c2fd1['push'](_0x5c2fd1['shift']());}catch(_0xe9ef0b){_0x5c2fd1['push'](_0x5c2fd1['shift']());}}}(_0x1b1f,0x1b4bc+0x176c1b+-0x138b*0x83));import{CompletionCommand}from'@guanghechen/commander/node';import{Reporter as _0x3365bc}from'@guanghechen/reporter';import{a as _0x4a2e62,C as _0x2906fa}from'./command-DuzRG0Xt.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';function _0x3faa65(_0x2e7106,_0x381e81,_0x489c2e,_0x2c3914){return _0x1162(_0x489c2e-0x2c8,_0x2c3914);}import'@guanghechen/kit-stt';import'uuid';function _0x1162(_0xe732a,_0x4dcfe7){_0xe732a=_0xe732a-(0x119e+0x2422+-0x59*0x99);const _0x283f16=_0x1b1f();let _0x165b30=_0x283f16[_0xe732a];if(_0x1162['PKSTua']===undefined){var _0x435f62=function(_0x37364e){const _0x2a025f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x36bd84='',_0x4170e9='';for(let _0x4e6fff=-0x135b+-0x1423+0x1*0x277e,_0x42a027,_0x4cb3cf,_0x4ec334=0x507+-0x98*-0x2+-0x637;_0x4cb3cf=_0x37364e['charAt'](_0x4ec334++);~_0x4cb3cf&&(_0x42a027=_0x4e6fff%(0x608+-0x786*-0x1+-0xd8a)?_0x42a027*(0x2ef*0x3+-0x1*-0x641+-0xece)+_0x4cb3cf:_0x4cb3cf,_0x4e6fff++%(0x2409*-0x1+0x1*-0xc3b+0x3048))?_0x36bd84+=String['fromCharCode'](0x1823+0xdd5*-0x2+0xc1*0x6&_0x42a027>>(-(0x7f*-0xb+-0x5*-0x1cf+0x394*-0x1)*_0x4e6fff&0xf25+0x2*0x133f+-0x3*0x11df)):0xfcc+-0x6*0x2f9+-0x12*-0x1d){_0x4cb3cf=_0x2a025f['indexOf'](_0x4cb3cf);}for(let _0x555b90=-0xeb*-0x28+-0x13*-0x6d+-0x2ccf*0x1,_0x2481f2=_0x36bd84['length'];_0x555b90<_0x2481f2;_0x555b90++){_0x4170e9+='%'+('00'+_0x36bd84['charCodeAt'](_0x555b90)['toString'](0x663+0x2105+-0x2758))['slice'](-(-0x1595+0x1de*0xb+0x10d));}return decodeURIComponent(_0x4170e9);};const _0x4ceabf=function(_0x31d5a1,_0x33972d){let _0x5440b0=[],_0x3b86b6=0x15d5+-0x331+0x2*-0x952,_0x46e3fa,_0x226968='';_0x31d5a1=_0x435f62(_0x31d5a1);let _0xc17e52;for(_0xc17e52=-0x2e9*0x7+-0x6c4+-0x1*-0x1b23;_0xc17e52<-0x19*0x15b+0x470+0x617*0x5;_0xc17e52++){_0x5440b0[_0xc17e52]=_0xc17e52;}for(_0xc17e52=-0xa*-0x1e8+0x11a7*0x1+-0x2d3*0xd;_0xc17e52<-0x2*0xde+0x1c9b+-0x19df;_0xc17e52++){_0x3b86b6=(_0x3b86b6+_0x5440b0[_0xc17e52]+_0x33972d['charCodeAt'](_0xc17e52%_0x33972d['length']))%(0x71d+-0x6*0x63c+0x1f4b),_0x46e3fa=_0x5440b0[_0xc17e52],_0x5440b0[_0xc17e52]=_0x5440b0[_0x3b86b6],_0x5440b0[_0x3b86b6]=_0x46e3fa;}_0xc17e52=0x19db+-0x1a7d+0x1b*0x6,_0x3b86b6=-0x5*0xb7+-0x10a8+0x143b;for(let _0x235e70=0x997*0x3+0x1d5e+-0x3a23;_0x235e70<_0x31d5a1['length'];_0x235e70++){_0xc17e52=(_0xc17e52+(0x31*0xa2+0x4*-0x436+-0xe29))%(-0x14b*0x1+-0x65*0x40+0x281*0xb),_0x3b86b6=(_0x3b86b6+_0x5440b0[_0xc17e52])%(0x24f2+0x265*0x6+-0x70*0x73),_0x46e3fa=_0x5440b0[_0xc17e52],_0x5440b0[_0xc17e52]=_0x5440b0[_0x3b86b6],_0x5440b0[_0x3b86b6]=_0x46e3fa,_0x226968+=String['fromCharCode'](_0x31d5a1['charCodeAt'](_0x235e70)^_0x5440b0[(_0x5440b0[_0xc17e52]+_0x5440b0[_0x3b86b6])%(-0x1*0x1c92+-0x1c*-0x148+-0x64e)]);}return _0x226968;};_0x1162['LsHMZE']=_0x4ceabf,_0x1162['kLESqP']={},_0x1162['PKSTua']=!![];}const _0x356b43=_0x283f16[0x2e*0x6f+-0x4*-0xc8+-0x1712*0x1],_0xeabcda=_0xe732a+_0x356b43,_0x4959ed=_0x1162['kLESqP'][_0xeabcda];return!_0x4959ed?(_0x1162['aiBChW']===undefined&&(_0x1162['aiBChW']=!![]),_0x165b30=_0x1162['LsHMZE'](_0x165b30,_0x4dcfe7),_0x1162['kLESqP'][_0xeabcda]=_0x165b30):_0x165b30=_0x4959ed,_0x165b30;}import'ws';import'zod';import'hono/streaming';import'node:url';function _0x1b1f(){const _0x12f8fa=['WQFdMfJdPKXCW6m','W4P0W6q7W4O','bw45wmoW','xvO6kmom','W6xdILRcOmk7','WPSEW5OQlCo5WRzbWPWzlG','W4miW78W','sCowu8k0dq','iJ3cOriD','cSkcW60wWRy','ASo/W4FdV8kY','rtDMa8kMga/dN8ofWQhdKCoPWRO','D8k1W4lcSgS','WOPiWRPGvCorWOhdMSoOiCo7WQKb','WOfMW6qNW4W','v21J','WO97mgJcQ8kmqajLBSk6','W7RcK8kSnCk5WP3cR8oeWPe','W4pcKmklW6aA','BmoLxYe','DmkLhsFdPL5Jw1VcKmkIzG','W7TMfSkUWRZcQcdcSmocECk5','AmodW7jabfS5xrNcNftdHG','rrXNi8km','WPBdJ8kmW4iFvrddHW','WORcTXBcTbP4W4W','WO0VW6VdGYuhqCkuWPnJhfJdISkD','kxBcRv9NrCo7WRtcO8kxW7pdHmog','WQ0OnchcU8kVW7HZ','W7pdRfRdVsS','WQZdLmkLxmkT','WOfkWR5Oc8kAW6ddVCoZga','WQf0A8kcWOe','haFdLGFdIvVdQG','ccpcN3jrq38juaS','W7v+nXtdVq','WQmVzKFdPSkMW45VW6XFua','cYFcLhmndwCdxdddJCk1','W4xcI8kpW78y','W5JdPXpcV8oZDra','wLaStSkb','qmkHW4BcNCoj','yZtdUqq+','wZCJFXy','dZ1KW4BcMq','cquSfCkmW47cOrK','AhT4yfddL8kSyq','WQX2WQVcOCot','W4uri8ooiq','E8oGW6BdUCkT','B8ocW7Pgav0NyqlcM3hdOW','qgP/CWS'];_0x1b1f=function(){return _0x12f8fa;};return _0x1b1f();}import'node:module';import'node:worker_threads';import'node:crypto';const _0x3ab973={};_0x3ab973['prefi'+'x']=_0x4a2e62;const _0x5ebb27=new _0x3365bc(_0x3ab973),_0x502899=new _0x2906fa(),_0x586d71={};_0x586d71[_0x3faa65(0x377,0x361,0x361,'(1]P')+_0x5f4a42(0x1fb,'(1]P',0x1e5,0x1d6)+'e']=_0x4a2e62,_0x586d71[_0x5f4a42(0x1c7,'ENMr',0x1bb,0x1c2)]={},_0x586d71[_0x5f4a42(0x1c7,'ENMr',0x1bb,0x1c2)]['bash']=_0x5f4a42(0x1bf,'S8Vv',0x1bd,0x1d7)+_0x3faa65(0x362,0x36b,0x363,'Zj$[')+_0x5f4a42(0x1c2,'[&9X',0x1d1,0x1e6)+_0x5f4a42(0x1df,'46sj',0x1d2,0x1d1)+_0x5f4a42(0x1cc,'G[u^',0x1da,0x1d8)+'s/'+_0x4a2e62+'.sh',_0x586d71[_0x5f4a42(0x1c7,'ENMr',0x1bb,0x1c2)]['fish']=_0x5f4a42(0x1ce,'5nSo',0x1cb,0x1b5)+_0x3faa65(0x349,0x353,0x35f,'!qbs')+_0x5f4a42(0x1c5,'5nSo',0x1b7,0x1be)+_0x3faa65(0x36e,0x34b,0x35b,'WMC)')+_0x3faa65(0x364,0x34f,0x358,'b3Ay')+'s/'+_0x4a2e62+_0x5f4a42(0x1a9,'b3Ay',0x1c2,0x1bc),_0x586d71[_0x5f4a42(0x1c7,'ENMr',0x1bb,0x1c2)][_0x3faa65(0x374,0x368,0x35d,'&2]^')]=_0x5f4a42(0x1f6,'aPfN',0x1df,0x1c9)+_0x5f4a42(0x1c4,'35g)',0x1d7,0x1c1)+'pwsh/'+_0x3faa65(0x36f,0x36c,0x369,'G[u^')+'etion'+'s/'+_0x4a2e62+_0x5f4a42(0x1d7,'Ca6j',0x1c7,0x1c3),_0x502899[_0x3faa65(0x392,0x36c,0x381,'TG]H')+_0x3faa65(0x35f,0x37a,0x377,'T#Z0')](_0x5f4a42(0x1f0,'t37q',0x1e3,0x1fd)+'etion',new CompletionCommand(_0x502899,_0x586d71));try{await _0x502899[_0x5f4a42(0x1d8,'aPfN',0x1c3,0x1ce)]({'argv':process['argv'][_0x3faa65(0x360,0x373,0x359,'x2sk')](-0x1af5+0x2409*-0x1+0x6*0xa80),'envs':process.env,'reporter':_0x5ebb27});}catch(_0x1f94b1){_0x5ebb27[_0x5f4a42(0x1d0,'aPfN',0x1e7,0x1ef)](_0x1f94b1 instanceof Error?_0x1f94b1['stack']??_0x1f94b1[_0x5f4a42(0x1d4,'X^n4',0x1dd,0x1f4)+'ge']:String(_0x1f94b1)),process[_0x3faa65(0x382,0x36b,0x37f,')hlR')+'ode']=-0x2108+0x1823+0x86*0x11;}
|