@guanghechen/kit-copilot 0.6.16 → 0.6.18
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-Cg8K-uGX.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(_0x417b48,_0x1aaa78){const _0x33697c={_0x1bdfe6:0xef,_0x45133d:0xe3,_0x33a670:'e!VS',_0xb4a660:0xee,_0x1ac29f:0xe2,_0x2a614f:0xf4,_0x40d335:0xf0,_0x57f53c:'[L&8',_0x1700a3:0x1b6,_0x1bbdc9:0x1ce,_0x196792:0x1c3,_0x1b1cde:0xe8,_0x2faf7c:0x1b6,_0x594913:'Kz0u',_0x35fddf:0x19f,_0x5a4f0f:'d1B(',_0x2c0d6a:0x19c,_0x2b2fe7:0x1b1,_0x252e82:'[L&8',_0x34180c:0x1ae},_0x17bc54={_0x18e863:0x126};function _0x47d5d8(_0x16c543,_0x3a4eb1,_0x44af24,_0xfcc91e){return _0xa981(_0xfcc91e-_0x17bc54._0x18e863,_0x3a4eb1);}function _0x282fad(_0x361ad5,_0x41e51f,_0x191a40,_0x2a0ed2){return _0xa981(_0x191a40-0x48,_0x361ad5);}const _0x2a33c0=_0x417b48();while(!![]){try{const _0x25d263=parseInt(_0x282fad('4kKy',0xf4,_0x33697c._0x1bdfe6,_0x33697c._0x45133d))/(0x807+0x2f*-0x37+0x213)+-parseInt(_0x282fad(_0x33697c._0x33a670,_0x33697c._0xb4a660,_0x33697c._0x1ac29f,_0x33697c._0x2a614f))/(-0x14d6+-0x101+0x15d9)*(-parseInt(_0x282fad('inY8',_0x33697c._0x40d335,0xec,0xf3))/(0xf*-0x37+-0xf53+0x128f))+-parseInt(_0x282fad(_0x33697c._0x57f53c,0xec,0xe6,0xf8))/(0xf*0x291+0x1d7a+-0x43f5)+parseInt(_0x47d5d8(_0x33697c._0x1700a3,'lY&o',_0x33697c._0x1bbdc9,_0x33697c._0x196792))/(0xe3d+-0x1074*-0x1+-0x34*0x97)+-parseInt(_0x282fad('Dx)2',0xe3,_0x33697c._0x1b1cde,0xfc))/(0xcc2+0x17*0x1+0x1d5*-0x7)+-parseInt(_0x47d5d8(_0x33697c._0x2faf7c,_0x33697c._0x594913,_0x33697c._0x35fddf,0x1af))/(-0x1b97+0xc8e+0xf10)*(parseInt(_0x47d5d8(0x1a0,_0x33697c._0x5a4f0f,_0x33697c._0x2c0d6a,_0x33697c._0x2b2fe7))/(-0x45e+-0x3cb*0x7+0x1*0x1ef3))+parseInt(_0x47d5d8(0x19f,_0x33697c._0x252e82,0x1a9,_0x33697c._0x34180c))/(0x5*-0x159+0x1*0x2511+-0x1e4b);if(_0x25d263===_0x1aaa78)break;else _0x2a33c0['push'](_0x2a33c0['shift']());}catch(_0x4b4c15){_0x2a33c0['push'](_0x2a33c0['shift']());}}}(_0x5582,0x115a6*0x8+0x49b6b+-0x393dd*0x2));function _0x5582(){const _0x3518a4=['xmkLeYGz','xCkKWRdcTmkb','WRtcRSkfW6e','gSony8ozW5K','FCknW47cHr9HyvPcge7dOG','W6FcMfL/WPu','WRKQWP3cJLa','h8oHW67dPmoaBclcPmoWqCksB8ok','tmkMWR3dOLzkFH3cOxNdI0be','tmkPWRhdPvHlEc3cLftdSu9T','zmo+WPFcRJ3dTg/dG1BdO8oGwCkR','CGvUWRBdSCoyW7e5ymk4oCotda','WP9YWQNdNSkr','ySolWP4','c8kKeWv0WRdcTG','WP5TW6NdUG','WP3dHvFcPmoq','W6z5W53cKmkZtCoXl1VcKmobWR8','nLyRW6/cTa','yCoyW41xhq','r8kUW6hcLL4','W5Xpsq','W4TotNNcSW','WRJcJ1e','qmoIWQmdW7a','DSkzmwxcJW','i1hdPG/cQa','jhKaW7HJ','FYbkW55v','sCkSWRJdO1HcEY7cQ0FdIKbf','W7LRW4ZcI0TKySowW40','WRJcUCkrW6qH','iCocCZZcMCkwaSoFW7ddRcrP','WO08bSkLsN1/nmkrWRPFW4C','A1lcLmkglGpdL1VcV8kPlZ4','gCkPW7ZcJuu','uSk9W6FcKv8','WOxcOmk5BGPOWOVcRCkQ','FSkpW4FcIHXIpfjAivhdVmoK','fmkXWRBcMCkXcxi','WQDDe8kEW7G','WORcPgBcVmovW7LEk8oHvr9YWP4','jfySW68'];_0x5582=function(){return _0x3518a4;};return _0x5582();}import{CompletionCommand}from'@guanghechen/commander/node';import{Reporter as _0x3e7a7a}from'@guanghechen/reporter';import{a as _0x5835df,C as _0x14acad}from'./command-Cg8K-uGX.mjs';import'node:fs';import'node:path';import'node:child_process';function _0xa981(_0x51709d,_0x419c28){_0x51709d=_0x51709d-(-0x527*-0x1+-0x6aa*0x4+0xb03*0x2);const _0x406dc2=_0x5582();let _0x54f2df=_0x406dc2[_0x51709d];if(_0xa981['MZiKOC']===undefined){var _0xe88836=function(_0x2a33c0){const _0x25d263='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b4c15='',_0x51c1cb='';for(let _0xe0e3f8=-0x9fa*-0x2+0xc*-0x7d+-0x58*0x29,_0x2a2e37,_0x56e1a2,_0x5df1dd=0x15ad+-0xd*0x34+-0x1309;_0x56e1a2=_0x2a33c0['charAt'](_0x5df1dd++);~_0x56e1a2&&(_0x2a2e37=_0xe0e3f8%(0xd09+0x4*0x964+-0x1*0x3295)?_0x2a2e37*(0x6a*-0x36+0x696+0x1006)+_0x56e1a2:_0x56e1a2,_0xe0e3f8++%(0xdf*0x29+0x18ca+0x3c7d*-0x1))?_0x4b4c15+=String['fromCharCode'](0x865*0x1+-0x146e+0x342*0x4&_0x2a2e37>>(-(-0x3b*0x53+0xc*0x4d+0xf87)*_0xe0e3f8&0x1a6e+-0xe7d+-0xbeb*0x1)):-0x22f4+-0x2f*0x8c+0x3ca8){_0x56e1a2=_0x25d263['indexOf'](_0x56e1a2);}for(let _0x491594=0x84d+0x8f7+-0x1144,_0x1d8f00=_0x4b4c15['length'];_0x491594<_0x1d8f00;_0x491594++){_0x51c1cb+='%'+('00'+_0x4b4c15['charCodeAt'](_0x491594)['toString'](0x4*-0x676+-0x1b3e+0x3526))['slice'](-(-0x168c+0x1*-0x1d15+-0x33a3*-0x1));}return decodeURIComponent(_0x51c1cb);};const _0x1aaa78=function(_0x21c57b,_0x532d08){let _0x57b9fb=[],_0x6a12fe=-0x1c4+0x39*-0x89+0x1*0x2045,_0x239252,_0x3cefcf='';_0x21c57b=_0xe88836(_0x21c57b);let _0x2c06f4;for(_0x2c06f4=0x191f+0xed3+-0x27f2;_0x2c06f4<-0xc5*-0x11+-0xe32*-0x2+-0x2879;_0x2c06f4++){_0x57b9fb[_0x2c06f4]=_0x2c06f4;}for(_0x2c06f4=-0x407*0x4+-0x194*0x8+-0x6*-0x4ca;_0x2c06f4<0xdff+-0x80*0x30+0x139*0x9;_0x2c06f4++){_0x6a12fe=(_0x6a12fe+_0x57b9fb[_0x2c06f4]+_0x532d08['charCodeAt'](_0x2c06f4%_0x532d08['length']))%(-0xd*-0x163+0x11f1+0xc*-0x2ea),_0x239252=_0x57b9fb[_0x2c06f4],_0x57b9fb[_0x2c06f4]=_0x57b9fb[_0x6a12fe],_0x57b9fb[_0x6a12fe]=_0x239252;}_0x2c06f4=-0xf8f+-0x14d6+0x2465,_0x6a12fe=-0x827+0xf*-0x37+0xb60;for(let _0x14f9b3=0x7*-0x47d+-0x2d*-0xdb+-0x714;_0x14f9b3<_0x21c57b['length'];_0x14f9b3++){_0x2c06f4=(_0x2c06f4+(0xe3d+-0x1074*-0x1+-0x10*0x1eb))%(0xcc2+0x17*0x1+0x3f3*-0x3),_0x6a12fe=(_0x6a12fe+_0x57b9fb[_0x2c06f4])%(-0x1b97+0xc8e+0x1009),_0x239252=_0x57b9fb[_0x2c06f4],_0x57b9fb[_0x2c06f4]=_0x57b9fb[_0x6a12fe],_0x57b9fb[_0x6a12fe]=_0x239252,_0x3cefcf+=String['fromCharCode'](_0x21c57b['charCodeAt'](_0x14f9b3)^_0x57b9fb[(_0x57b9fb[_0x2c06f4]+_0x57b9fb[_0x6a12fe])%(-0x45e+-0x3cb*0x7+0x1*0x1feb)]);}return _0x3cefcf;};_0xa981['UJvWqe']=_0x1aaa78,_0xa981['CQXlJk']={},_0xa981['MZiKOC']=!![];}const _0x514e76=_0x406dc2[0x5*-0x159+0x1*0x2511+-0x1e54],_0x115c25=_0x51709d+_0x514e76,_0x417b48=_0xa981['CQXlJk'][_0x115c25];return!_0x417b48?(_0xa981['tgTzXo']===undefined&&(_0xa981['tgTzXo']=!![]),_0x54f2df=_0xa981['UJvWqe'](_0x54f2df,_0x419c28),_0xa981['CQXlJk'][_0x115c25]=_0x54f2df):_0x54f2df=_0x417b48,_0x54f2df;}import'node:os';import'node:http';import'node:fs/promises';import'@hono/node-server';import'hono';import'hono/cors';import'@guanghechen/kit-stt';function _0x3f3129(_0x4754b4,_0x2396d5,_0x262428,_0x1825ca){return _0xa981(_0x4754b4- -0x6,_0x2396d5);}import'uuid';import'ws';import'zod';import'hono/streaming';import'node:url';import'node:module';import'node:worker_threads';import'node:crypto';const _0x3b9107={};_0x3b9107[_0x3f3129(0xa0,'FQjQ',0x8d,0x9e)+'x']=_0x5835df;const _0x54761b=new _0x3e7a7a(_0x3b9107);function _0x51398d(_0x384699,_0x3670b2,_0x470237,_0x5504e3){const _0x5647e1={_0x10d400:0x1bf};return _0xa981(_0x5504e3-_0x5647e1._0x10d400,_0x470237);}const _0x185758=new _0x14acad(),_0x3417d8={};_0x3417d8[_0x3f3129(0x91,'lY&o',0x98,0xa1)+'amNam'+'e']=_0x5835df,_0x3417d8[_0x3f3129(0xa2,'ZIpE',0xb3,0xa2)]={},_0x3417d8[_0x3f3129(0xa2,'ZIpE',0xb3,0xa2)][_0x3f3129(0x8f,'ZIpE',0x85,0x85)]='~/.co'+'nfig/'+'bash/'+_0x3f3129(0xa8,'ik6p',0x9b,0x9c)+'etion'+'s/'+_0x5835df+_0x51398d(0x250,0x25c,'e!VS',0x262),_0x3417d8[_0x3f3129(0xa2,'ZIpE',0xb3,0xa2)]['fish']=_0x51398d(0x247,0x250,'%MQf',0x25a)+_0x51398d(0x25e,0x241,'inY8',0x255)+_0x3f3129(0xa9,'d1B(',0x9b,0x9c)+_0x51398d(0x26d,0x244,'VEOE',0x258)+_0x3f3129(0xa6,'cZSq',0x9c,0x98)+'s/'+_0x5835df+_0x3f3129(0x88,'4(bu',0x9a,0x8b),_0x3417d8[_0x3f3129(0xa2,'ZIpE',0xb3,0xa2)]['pwsh']=_0x3f3129(0x81,'*%Vd',0x92,0x87)+_0x51398d(0x273,0x267,'YQXf',0x261)+'pwsh/'+'compl'+'etion'+'s/'+_0x5835df+_0x3f3129(0x9f,'$AWu',0x98,0xb2),_0x185758[_0x51398d(0x24e,0x255,'ISWA',0x245)+'mmand']('compl'+'etion',new CompletionCommand(_0x185758,_0x3417d8));try{await _0x185758[_0x51398d(0x27a,0x27d,'cZSq',0x26a)]({'argv':process[_0x3f3129(0x92,'6fB$',0x9d,0x84)][_0x3f3129(0x7f,'V[pM',0x88,0x7c)](-0x696*-0x1+0x1f83+0xc7*-0x31),'envs':process.env,'reporter':_0x54761b});}catch(_0x321f43){_0x54761b[_0x51398d(0x23a,0x24f,'4(bu',0x24e)](_0x321f43 instanceof Error?_0x321f43[_0x51398d(0x253,0x267,'Kz0u',0x25b)]??_0x321f43[_0x51398d(0x252,0x24b,'6fB$',0x249)+'ge']:String(_0x321f43)),process[_0x51398d(0x261,0x26b,'Q8FQ',0x268)+_0x51398d(0x25d,0x27d,'dalU',0x26c)]=0x1e4b+0x1594*0x1+-0x8a5*0x6;}
|