@2api-store/activate 0.9.0 → 0.9.1

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.
@@ -1 +1 @@
1
- const _0x5c47a4=_0x5079;(function(_0x443fea,_0xe571fa){const _0x33f2e1=_0x5079,_0x257811=_0x443fea();while(!![]){try{const _0x2d5dcc=parseInt(_0x33f2e1(0x211))/0x1*(parseInt(_0x33f2e1(0x204))/0x2)+-parseInt(_0x33f2e1(0x20d))/0x3*(parseInt(_0x33f2e1(0x1f9))/0x4)+parseInt(_0x33f2e1(0x212))/0x5+-parseInt(_0x33f2e1(0x20b))/0x6*(parseInt(_0x33f2e1(0x20a))/0x7)+-parseInt(_0x33f2e1(0x21c))/0x8*(parseInt(_0x33f2e1(0x1ee))/0x9)+-parseInt(_0x33f2e1(0x21b))/0xa*(parseInt(_0x33f2e1(0x203))/0xb)+parseInt(_0x33f2e1(0x1fc))/0xc*(parseInt(_0x33f2e1(0x213))/0xd);if(_0x2d5dcc===_0xe571fa)break;else _0x257811['push'](_0x257811['shift']());}catch(_0x16f4b0){_0x257811['push'](_0x257811['shift']());}}}(_0x3c92,0xb4feb));function _0x3c92(){const _0x463ade=['192VCapWw','AOrEA','antigravityApiBaseBeta','isInteger','match','isArray','env','39666hULOyb','396158uXHbTm','auto_compact','map','LIEgF','LveCo','WzAZT','357DFdYSI','123540gmRgFY','object','792237XZfcWv','defaultModel','sort','includes','5XQHpvM','1892905dkYrsm','2152735wFNaWL','join','length','ZoqxF','veFGj','keWCm','filter','apiBaseBeta','3550EKiIZb','8KfmWJp','IUKIW','slice','split','ZsBub','6145578ugMEAF','toLowerCase','bTpPT','qGPNl','RymHQ','USERPROFILE','context','startsWith','baseUrl','vhlDn','apiKey','4KrUeNl','antigravityApiBase','replace'];_0x3c92=function(){return _0x463ade;};return _0x3c92();}export const PLACEHOLDERS=[_0x5c47a4(0x1f8),_0x5c47a4(0x1f6),'apiBase',_0x5c47a4(0x21a),_0x5c47a4(0x1fa),_0x5c47a4(0x1fe),_0x5c47a4(0x20e)];export function renderContent(_0x582e5a,_0x5618b7){const _0x5a99ce=_0x5c47a4,_0x1da060={'AOrEA':function(_0x1c1604,_0x2a3b20){return _0x1c1604(_0x2a3b20);}};if(!_0x582e5a)return'';let _0xea8480=_0x582e5a;for(const _0x4ed9e6 of PLACEHOLDERS){const _0x1de084=_0x5618b7[_0x4ed9e6];null!=_0x1de084&&(_0xea8480=_0xea8480[_0x5a99ce(0x1ec)]('{{'+_0x4ed9e6+'}}')[_0x5a99ce(0x214)](_0x1da060[_0x5a99ce(0x1fd)](String,_0x1de084)));}return _0xea8480;}const t='{{modelContextWindow}}',e='{{autoCompactTokenLimit}}';export function applyModelContextWindow(_0x30000d,_0x483304,_0x3a3933){const _0x5948aa=_0x5c47a4,_0x3ca424={'bTpPT':function(_0x59449f,_0x1f835b){return _0x59449f==_0x1f835b;},'vhlDn':function(_0x3ad5d5,_0x1fcca7){return _0x3ad5d5(_0x1fcca7);},'veFGj':function(_0x23bc07,_0x12f948){return _0x23bc07>_0x12f948;},'yGBzZ':function(_0x281c73,_0x1aea88){return _0x281c73>=_0x1aea88;},'qGPNl':function(_0x20ec18,_0x1c79f9){return _0x20ec18(_0x1c79f9);}};if(!_0x30000d)return'';if(!_0x30000d[_0x5948aa(0x210)](t)&&!_0x30000d[_0x5948aa(0x210)](e))return _0x30000d;const _0x17b384=_0x483304&&_0x3ca424[_0x5948aa(0x1f0)](_0x5948aa(0x20c),typeof _0x483304)?_0x483304[_0x3a3933]:null,_0x145082=_0x17b384?_0x3ca424[_0x5948aa(0x1f7)](Number,_0x17b384[_0x5948aa(0x1f4)]):NaN,_0x39334d=_0x17b384?Number(_0x17b384[_0x5948aa(0x205)]):NaN;return Number[_0x5948aa(0x1ff)](_0x145082)&&_0x3ca424[_0x5948aa(0x217)](_0x145082,0x0)&&Number[_0x5948aa(0x1ff)](_0x39334d)&&_0x3ca424['yGBzZ'](_0x39334d,0x0)?_0x30000d[_0x5948aa(0x1ec)](t)[_0x5948aa(0x214)](_0x3ca424['vhlDn'](String,_0x145082))[_0x5948aa(0x1ec)](e)[_0x5948aa(0x214)](_0x3ca424[_0x5948aa(0x1f1)](String,_0x39334d)):_0x30000d['split']('\x0a')[_0x5948aa(0x219)](_0xaeb3c7=>!_0xaeb3c7[_0x5948aa(0x210)](t)&&!_0xaeb3c7[_0x5948aa(0x210)](e))[_0x5948aa(0x214)]('\x0a');}export function expandPath(_0x4de5a4,{isWindows:_0x4af54f}={}){const _0x280dd5=_0x5c47a4,_0x5bcea8={'WzAZT':function(_0x271b9c,_0x8b7349){return _0x271b9c===_0x8b7349;},'oEpzY':function(_0x215419,_0x12036f){return _0x215419+_0x12036f;}};if(!_0x4de5a4)return _0x4de5a4;if(_0x4af54f){const _0x2e88da=process[_0x280dd5(0x202)][_0x280dd5(0x1f3)]||'';return _0x4de5a4[_0x280dd5(0x1fb)](/^%userprofile%/i,_0x2e88da)[_0x280dd5(0x1fb)](/^~/,_0x2e88da);}const _0x12cc22=process[_0x280dd5(0x202)]['HOME']||'';return _0x5bcea8[_0x280dd5(0x209)]('~',_0x4de5a4)?_0x12cc22:_0x4de5a4[_0x280dd5(0x1f5)]('~/')?_0x5bcea8['oEpzY'](_0x12cc22,_0x4de5a4[_0x280dd5(0x1eb)](0x1)):_0x4de5a4;}function n(_0xfc86d4){const _0x1a003a=_0x5c47a4,_0x4486d4={'ZsBub':function(_0x24ffa8,_0x20d355){return _0x24ffa8(_0x20d355);},'LIEgF':function(_0x2729fe,_0x22095c){return _0x2729fe||_0x22095c;},'ZoqxF':function(_0x5dea2f,_0x52f735,_0x3b3de2){return _0x5dea2f(_0x52f735,_0x3b3de2);}},_0x3ac91d=_0x4486d4[_0x1a003a(0x1ed)](String,_0x4486d4[_0x1a003a(0x207)](_0xfc86d4,''))[_0x1a003a(0x1ef)]()[_0x1a003a(0x200)](/(\d+)\.(\d+)/);return _0x3ac91d?[parseInt(_0x3ac91d[0x1],0xa),_0x4486d4[_0x1a003a(0x216)](parseInt,_0x3ac91d[0x2],0xa)]:[0x0,0x0];}function _0x5079(_0x4ea198,_0x11321f){_0x4ea198=_0x4ea198-0x1ea;const _0x3c92f8=_0x3c92();let _0x5079d5=_0x3c92f8[_0x4ea198];return _0x5079d5;}export function listModels(_0x5f219e){const _0x2b072c=_0x5c47a4,_0x34c736={'keWCm':function(_0x41ae31,_0x39dc08){return _0x41ae31==_0x39dc08;},'LveCo':function(_0x21d233,_0x3cb3aa){return _0x21d233(_0x3cb3aa);},'IUKIW':function(_0x20511e,_0x3b3423){return _0x20511e-_0x3b3423;},'RymHQ':function(_0x39a745,_0x310f61){return _0x39a745===_0x310f61;}};if(!Array[_0x2b072c(0x201)](_0x5f219e)||_0x34c736[_0x2b072c(0x1f2)](0x0,_0x5f219e[_0x2b072c(0x215)]))return[];const _0x2754a0=_0x5f219e[_0x2b072c(0x206)]((_0xbdfc49,_0x3a5eb3)=>{const _0x4170bc=_0x2b072c;if(_0x34c736[_0x4170bc(0x218)]('string',typeof _0xbdfc49))return{'index':_0x3a5eb3,'id':_0xbdfc49,'label':_0xbdfc49,'raw':_0xbdfc49};const _0x2a4054=_0xbdfc49['id']||_0xbdfc49['name']||_0x34c736[_0x4170bc(0x208)](String,_0xbdfc49);return{'index':_0x3a5eb3,'id':_0x2a4054,'label':_0xbdfc49['name']||_0xbdfc49['id']||_0x2a4054,'raw':_0xbdfc49};});return _0x2754a0[_0x2b072c(0x20f)]((_0x19bb1b,_0x3aff74)=>{const _0x782f5c=_0x2b072c,_0x377965=_0x34c736[_0x782f5c(0x208)](n,_0x19bb1b['id']),_0x58af75=_0x34c736[_0x782f5c(0x208)](n,_0x3aff74['id']);return _0x58af75[0x0]-_0x377965[0x0]||_0x34c736[_0x782f5c(0x1ea)](_0x58af75[0x1],_0x377965[0x1])||String(_0x19bb1b['id'])['localeCompare'](_0x34c736[_0x782f5c(0x208)](String,_0x3aff74['id']));}),_0x2754a0;}
1
+ const _0x5f0485=_0x5227;(function(_0x300a20,_0x2c46e2){const _0x4a90cd=_0x5227,_0x3e2ec0=_0x300a20();while(!![]){try{const _0x8d2388=-parseInt(_0x4a90cd(0xeb))/0x1*(-parseInt(_0x4a90cd(0xf8))/0x2)+-parseInt(_0x4a90cd(0xe0))/0x3*(-parseInt(_0x4a90cd(0xfb))/0x4)+-parseInt(_0x4a90cd(0xe9))/0x5+parseInt(_0x4a90cd(0xee))/0x6+-parseInt(_0x4a90cd(0xe4))/0x7+parseInt(_0x4a90cd(0xdb))/0x8+-parseInt(_0x4a90cd(0xef))/0x9*(parseInt(_0x4a90cd(0xf6))/0xa);if(_0x8d2388===_0x2c46e2)break;else _0x3e2ec0['push'](_0x3e2ec0['shift']());}catch(_0xa39156){_0x3e2ec0['push'](_0x3e2ec0['shift']());}}}(_0x2867,0x20bf5));export const PLACEHOLDERS=['apiKey','baseUrl',_0x5f0485(0xf7),_0x5f0485(0xf2),'antigravityApiBase',_0x5f0485(0xda),_0x5f0485(0xec)];function _0x5227(_0x4d0fe7,_0x45af42){_0x4d0fe7=_0x4d0fe7-0xce;const _0x28670f=_0x2867();let _0x5227ac=_0x28670f[_0x4d0fe7];return _0x5227ac;}function _0x2867(){const _0x43af88=['hxRAq','USERPROFILE','antigravityApiBaseBeta','1023456NctsFo','KwgxA','env','replace','filter','3TnWyNY','AQjfB','isArray','prnZC','1105321fCwdxg','startsWith','object','map','hDgND','852990PHpXyz','{{modelContextWindow}}','20621bYDUYS','defaultModel','join','998208JiKEcv','832113DyFITu','sort','includes','apiBaseBeta','slice','kyRBq','EqsXN','20DNzafX','apiBase','22NNlckt','split','ugvIc','505668JVbJUM','localeCompare','xDzOb','SsZCx','lgeKB','name','auto_compact','xxjiy','{{autoCompactTokenLimit}}','SQsqG','string'];_0x2867=function(){return _0x43af88;};return _0x2867();}export function renderContent(_0x83afc1,_0x259be9){const _0x4c54ee=_0x5f0485,_0x21c000={'AQjfB':function(_0x421213,_0x5d105c){return _0x421213!=_0x5d105c;},'ugvIc':function(_0x4ee739,_0x45897a){return _0x4ee739(_0x45897a);}};if(!_0x83afc1)return'';let _0x1f02b2=_0x83afc1;for(const _0x543e98 of PLACEHOLDERS){const _0x551394=_0x259be9[_0x543e98];_0x21c000[_0x4c54ee(0xe1)](null,_0x551394)&&(_0x1f02b2=_0x1f02b2[_0x4c54ee(0xf9)]('{{'+_0x543e98+'}}')[_0x4c54ee(0xed)](_0x21c000[_0x4c54ee(0xfa)](String,_0x551394)));}return _0x1f02b2;}const t=_0x5f0485(0xea),e=_0x5f0485(0xd5);export function applyModelContextWindow(_0x2b0858,_0x426222,_0x5b883d){const _0x4ab4b4=_0x5f0485,_0xe95ef8={'hxRAq':_0x4ab4b4(0xe6),'vuQpB':function(_0x3d9328,_0x585f79){return _0x3d9328(_0x585f79);},'kyRBq':function(_0x2bd937,_0x285713){return _0x2bd937(_0x285713);},'aTDml':function(_0x267423,_0x3b6475){return _0x267423>_0x3b6475;},'SQsqG':function(_0x28baee,_0x561235){return _0x28baee>=_0x561235;}};if(!_0x2b0858)return'';if(!_0x2b0858[_0x4ab4b4(0xf1)](t)&&!_0x2b0858[_0x4ab4b4(0xf1)](e))return _0x2b0858;const _0xabbc8c=_0x426222&&_0xe95ef8[_0x4ab4b4(0xd8)]==typeof _0x426222?_0x426222[_0x5b883d]:null,_0x45fad6=_0xabbc8c?_0xe95ef8['vuQpB'](Number,_0xabbc8c['context']):NaN,_0x5eec97=_0xabbc8c?_0xe95ef8[_0x4ab4b4(0xf4)](Number,_0xabbc8c[_0x4ab4b4(0xd3)]):NaN;return Number['isInteger'](_0x45fad6)&&_0xe95ef8['aTDml'](_0x45fad6,0x0)&&Number['isInteger'](_0x5eec97)&&_0xe95ef8[_0x4ab4b4(0xd6)](_0x5eec97,0x0)?_0x2b0858['split'](t)['join'](_0xe95ef8['vuQpB'](String,_0x45fad6))[_0x4ab4b4(0xf9)](e)[_0x4ab4b4(0xed)](_0xe95ef8['vuQpB'](String,_0x5eec97)):_0x2b0858[_0x4ab4b4(0xf9)]('\x0a')[_0x4ab4b4(0xdf)](_0x3fdcda=>!_0x3fdcda[_0x4ab4b4(0xf1)](t)&&!_0x3fdcda[_0x4ab4b4(0xf1)](e))['join']('\x0a');}export function expandPath(_0x21682f,{isWindows:_0x47a478}={}){const _0x4f68d8=_0x5f0485,_0x3af5e7={'lgeKB':function(_0x4f93fd,_0x481f95){return _0x4f93fd+_0x481f95;}};if(!_0x21682f)return _0x21682f;if(_0x47a478){const _0x578722=process[_0x4f68d8(0xdd)][_0x4f68d8(0xd9)]||'';return _0x21682f[_0x4f68d8(0xde)](/^%userprofile%/i,_0x578722)[_0x4f68d8(0xde)](/^~/,_0x578722);}const _0x3d8e7a=process[_0x4f68d8(0xdd)]['HOME']||'';return'~'===_0x21682f?_0x3d8e7a:_0x21682f[_0x4f68d8(0xe5)]('~/')?_0x3af5e7[_0x4f68d8(0xd1)](_0x3d8e7a,_0x21682f[_0x4f68d8(0xf3)](0x1)):_0x21682f;}function n(_0x4bd5af){const _0x35b5bb=_0x5f0485,_0xfbbcc6={'SsZCx':function(_0xc82c6b,_0x4d7d30){return _0xc82c6b(_0x4d7d30);},'EqsXN':function(_0x48d861,_0x5acff1){return _0x48d861||_0x5acff1;},'prnZC':function(_0x305822,_0x38453c,_0x1d4863){return _0x305822(_0x38453c,_0x1d4863);}},_0x241a89=_0xfbbcc6[_0x35b5bb(0xd0)](String,_0xfbbcc6[_0x35b5bb(0xf5)](_0x4bd5af,''))['toLowerCase']()['match'](/(\d+)\.(\d+)/);return _0x241a89?[_0xfbbcc6[_0x35b5bb(0xe3)](parseInt,_0x241a89[0x1],0xa),_0xfbbcc6[_0x35b5bb(0xe3)](parseInt,_0x241a89[0x2],0xa)]:[0x0,0x0];}export function listModels(_0x41b04a){const _0x615130=_0x5f0485,_0x321fdb={'xDzOb':function(_0x49a651,_0xde08ab){return _0x49a651==_0xde08ab;},'CWxwh':_0x615130(0xd7),'xxjiy':function(_0x1f349a,_0x42a193){return _0x1f349a(_0x42a193);},'KwgxA':function(_0x184ed2,_0x1e0c0c){return _0x184ed2(_0x1e0c0c);},'hDgND':function(_0x2b9feb,_0x1c6960){return _0x2b9feb===_0x1c6960;}};if(!Array[_0x615130(0xe2)](_0x41b04a)||_0x321fdb[_0x615130(0xe8)](0x0,_0x41b04a['length']))return[];const _0x580bc3=_0x41b04a[_0x615130(0xe7)]((_0x4df2fa,_0x5e4bfe)=>{const _0x3e0468=_0x615130;if(_0x321fdb[_0x3e0468(0xcf)](_0x321fdb['CWxwh'],typeof _0x4df2fa))return{'index':_0x5e4bfe,'id':_0x4df2fa,'label':_0x4df2fa,'raw':_0x4df2fa};const _0xec4b38=_0x4df2fa['id']||_0x4df2fa['name']||_0x321fdb[_0x3e0468(0xd4)](String,_0x4df2fa);return{'index':_0x5e4bfe,'id':_0xec4b38,'label':_0x4df2fa[_0x3e0468(0xd2)]||_0x4df2fa['id']||_0xec4b38,'raw':_0x4df2fa};});return _0x580bc3[_0x615130(0xf0)]((_0x5786c9,_0x371b00)=>{const _0x38e2c3=_0x615130,_0x272ebc=n(_0x5786c9['id']),_0x1a7ddf=_0x321fdb[_0x38e2c3(0xd4)](n,_0x371b00['id']);return _0x1a7ddf[0x0]-_0x272ebc[0x0]||_0x1a7ddf[0x1]-_0x272ebc[0x1]||_0x321fdb[_0x38e2c3(0xd4)](String,_0x5786c9['id'])[_0x38e2c3(0xce)](_0x321fdb[_0x38e2c3(0xdc)](String,_0x371b00['id']));}),_0x580bc3;}
package/dist/lib/ui.mjs CHANGED
@@ -1 +1 @@
1
- const _0x1dfcce=_0x3c14;(function(_0xb4406d,_0x10417f){const _0x28301b=_0x3c14,_0x3bb8a5=_0xb4406d();while(!![]){try{const _0x5095da=-parseInt(_0x28301b(0xbe))/0x1+-parseInt(_0x28301b(0xc3))/0x2+parseInt(_0x28301b(0xb2))/0x3*(-parseInt(_0x28301b(0xac))/0x4)+parseInt(_0x28301b(0xc0))/0x5+parseInt(_0x28301b(0xab))/0x6+-parseInt(_0x28301b(0xc2))/0x7+parseInt(_0x28301b(0xb8))/0x8;if(_0x5095da===_0x10417f)break;else _0x3bb8a5['push'](_0x3bb8a5['shift']());}catch(_0x2a565b){_0x3bb8a5['push'](_0x3bb8a5['shift']());}}}(_0x444a,0x7bf63));function _0x3c14(_0x30ce63,_0x374ff3){_0x30ce63=_0x30ce63-0xab;const _0x444a8b=_0x444a();let _0x3c14e9=_0x444a8b[_0x30ce63];return _0x3c14e9;}import _0x2bdcd7 from'chalk';function _0x444a(){const _0x4dbab1=['2055582egnEHG','260200DajLKy','dim','warn','yellow','usage','\x20\x20____\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_\x20\x20\x20\x20\x20\x20\x20_\x0a\x20|___\x20\x5c\x20__\x20_\x20_\x20__\x20(_)\x20\x20___|\x20|_\x20___\x20\x20_\x20__\x20___\x0a\x20\x20\x20__)\x20/\x20_`\x20|\x20\x27_\x20\x5c|\x20|\x20/\x20__|\x20__/\x20_\x20\x5c|\x20\x27__/\x20_\x20\x5c\x0a\x20\x20/\x20__/\x20(_|\x20|\x20|_)\x20|\x20|_\x5c__\x20\x5c\x20||\x20(_)\x20|\x20|\x20|\x20\x20__/\x0a\x20|_____\x5c__,_|\x20.__/|_(_)___/\x5c__\x5c___/|_|\x20\x20\x5c___|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|_|\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v','24FPQoRN','trimEnd','log','green','version','name','19032992jJVcHL','bold','length','启动\x20/\x20使用指南','\x20\x20\x20\x20启动:','blue','647283xJeZOF','\x20\x20▶\x20','70485wMYWAx','error','4091556tWQolo','951760hQsHSv'];_0x444a=function(){return _0x4dbab1;};return _0x444a();}import{createRequire as _0x2d1b8a}from'node:module';const n=_0x1dfcce(0xb1)+_0x2d1b8a(import.meta.url)('../package.json')[_0x1dfcce(0xb6)];export function banner(){const _0x411793=_0x1dfcce;console[_0x411793(0xb4)](_0x2bdcd7['bold']['cyan'](n['replace'](/^\n/,'')[_0x411793(0xb3)]()));}export function ok(_0x28e5e8){const _0x3e9380=_0x1dfcce;console[_0x3e9380(0xb4)](_0x2bdcd7[_0x3e9380(0xb5)]('✓\x20'+_0x28e5e8));}export function fail(_0x2904f5){const _0x56eb02=_0x1dfcce;console[_0x56eb02(0xc1)](_0x2bdcd7['red']('✗\x20'+_0x2904f5));}export function warn(_0x116941){const _0xa4d0b7=_0x1dfcce;console[_0xa4d0b7(0xae)](_0x2bdcd7[_0xa4d0b7(0xaf)]('⚠\x20'+_0x116941));}export function info(_0x3c784c){const _0x42fdb9=_0x1dfcce;console[_0x42fdb9(0xb4)](_0x2bdcd7[_0x42fdb9(0xbd)]('ℹ\x20'+_0x3c784c));}export function step(_0x58c4df){const _0x58d272=_0x1dfcce;console[_0x58d272(0xb4)](),console[_0x58d272(0xb4)](_0x2bdcd7[_0x58d272(0xb9)]['cyan']('■\x20'+_0x58c4df));}export function guide(_0x3ea464){const _0x95f659=_0x1dfcce,_0x2a40ae={'ZgKmy':_0x95f659(0xbb)};if(_0x3ea464&&0x0!==_0x3ea464[_0x95f659(0xba)]){step(_0x2a40ae['ZgKmy']);for(const _0x4b54b8 of _0x3ea464){const _0x5bfc57=_0x2bdcd7[_0x95f659(0xb9)]['green'](_0x95f659(0xbf)+_0x4b54b8[_0x95f659(0xb7)]),_0x1cb186=_0x2bdcd7[_0x95f659(0xb5)](_0x95f659(0xbc)+_0x4b54b8['startCmd']),_0x167c96=_0x2bdcd7[_0x95f659(0xad)](_0x4b54b8[_0x95f659(0xb0)]||'');console['log'](_0x5bfc57),console['log'](_0x1cb186),_0x167c96&&console[_0x95f659(0xb4)](_0x167c96),console[_0x95f659(0xb4)]();}}}export function plain(_0x40b819){const _0x2921ad=_0x1dfcce;console[_0x2921ad(0xb4)](_0x40b819);}export{_0x2bdcd7 as chalk};
1
+ const _0x42d9bc=_0x214a;(function(_0x157021,_0x476870){const _0x3aa634=_0x214a,_0xb4b5f5=_0x157021();while(!![]){try{const _0x178abf=parseInt(_0x3aa634(0x131))/0x1*(-parseInt(_0x3aa634(0x123))/0x2)+-parseInt(_0x3aa634(0x129))/0x3*(parseInt(_0x3aa634(0x125))/0x4)+-parseInt(_0x3aa634(0x11d))/0x5+-parseInt(_0x3aa634(0x130))/0x6+parseInt(_0x3aa634(0x118))/0x7*(-parseInt(_0x3aa634(0x11f))/0x8)+parseInt(_0x3aa634(0x128))/0x9+parseInt(_0x3aa634(0x12d))/0xa;if(_0x178abf===_0x476870)break;else _0xb4b5f5['push'](_0xb4b5f5['shift']());}catch(_0x461b74){_0xb4b5f5['push'](_0xb4b5f5['shift']());}}}(_0x36f7,0xdb4bf));function _0x36f7(){const _0x50aa19=['14978fhHihq','../package.json','8owWNcP','log','\x20\x20\x20\x20启动:','10916541LPwwnO','1987737rlbHIS','yellow','red','inrYB','28684340gvRzrO','cyan','green','3751854WvVzBf','18PmYbke','\x20\x20____\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_\x20\x20\x20\x20\x20\x20\x20_\x0a\x20|___\x20\x5c\x20__\x20_\x20_\x20__\x20(_)\x20\x20___|\x20|_\x20___\x20\x20_\x20__\x20___\x0a\x20\x20\x20__)\x20/\x20_`\x20|\x20\x27_\x20\x5c|\x20|\x20/\x20__|\x20__/\x20_\x20\x5c|\x20\x27__/\x20_\x20\x5c\x0a\x20\x20/\x20__/\x20(_|\x20|\x20|_)\x20|\x20|_\x5c__\x20\x5c\x20||\x20(_)\x20|\x20|\x20|\x20\x20__/\x0a\x20|_____\x5c__,_|\x20.__/|_(_)___/\x5c__\x5c___/|_|\x20\x20\x5c___|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|_|\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20v','bold','startCmd','91NADaDO','启动\x20/\x20使用指南','trimEnd','\x20\x20▶\x20','name','2926035BOBoYU','replace','315488nVNwqz','warn','error','version'];_0x36f7=function(){return _0x50aa19;};return _0x36f7();}import _0x1aea2f from'chalk';import{createRequire as _0x350e0b}from'node:module';const n=_0x42d9bc(0x115)+_0x350e0b(import.meta.url)(_0x42d9bc(0x124))[_0x42d9bc(0x122)];export function banner(){const _0x185e51=_0x42d9bc;console[_0x185e51(0x126)](_0x1aea2f[_0x185e51(0x116)]['cyan'](n[_0x185e51(0x11e)](/^\n/,'')[_0x185e51(0x11a)]()));}export function ok(_0x4883c4){const _0x490261=_0x42d9bc;console['log'](_0x1aea2f[_0x490261(0x12f)]('✓\x20'+_0x4883c4));}export function fail(_0x43fd78){const _0x2547b2=_0x42d9bc;console[_0x2547b2(0x121)](_0x1aea2f[_0x2547b2(0x12b)]('✗\x20'+_0x43fd78));}export function warn(_0x40fdba){const _0x5a43a1=_0x42d9bc;console[_0x5a43a1(0x120)](_0x1aea2f[_0x5a43a1(0x12a)]('⚠\x20'+_0x40fdba));}export function info(_0x338fd8){const _0x1a2949=_0x42d9bc;console[_0x1a2949(0x126)](_0x1aea2f['blue']('ℹ\x20'+_0x338fd8));}export function step(_0xc3b45d){const _0x4e6ca8=_0x42d9bc;console[_0x4e6ca8(0x126)](),console['log'](_0x1aea2f[_0x4e6ca8(0x116)][_0x4e6ca8(0x12e)]('■\x20'+_0xc3b45d));}export function guide(_0x19935d){const _0x9588c0=_0x42d9bc,_0x2bb72a={'inrYB':_0x9588c0(0x119)};if(_0x19935d&&0x0!==_0x19935d['length']){step(_0x2bb72a[_0x9588c0(0x12c)]);for(const _0x74c58f of _0x19935d){const _0x42850a=_0x1aea2f[_0x9588c0(0x116)][_0x9588c0(0x12f)](_0x9588c0(0x11b)+_0x74c58f[_0x9588c0(0x11c)]),_0xfdb6c1=_0x1aea2f[_0x9588c0(0x12f)](_0x9588c0(0x127)+_0x74c58f[_0x9588c0(0x117)]),_0x4bbade=_0x1aea2f['dim'](_0x74c58f['usage']||'');console['log'](_0x42850a),console[_0x9588c0(0x126)](_0xfdb6c1),_0x4bbade&&console['log'](_0x4bbade),console['log']();}}}function _0x214a(_0x204e93,_0x2e67dd){_0x204e93=_0x204e93-0x115;const _0x36f773=_0x36f7();let _0x214aad=_0x36f773[_0x204e93];return _0x214aad;}export function plain(_0x3bd641){const _0x5ae0f6=_0x42d9bc;console[_0x5ae0f6(0x126)](_0x3bd641);}export{_0x1aea2f as chalk};
@@ -1 +1 @@
1
- const _0x22f604=_0x4a07;(function(_0x5f0396,_0x2a15fb){const _0x3fdc60=_0x4a07,_0x118f0e=_0x5f0396();while(!![]){try{const _0x28fe9d=-parseInt(_0x3fdc60(0x10f))/0x1*(parseInt(_0x3fdc60(0x10a))/0x2)+parseInt(_0x3fdc60(0x101))/0x3*(parseInt(_0x3fdc60(0x11d))/0x4)+parseInt(_0x3fdc60(0x117))/0x5*(parseInt(_0x3fdc60(0x111))/0x6)+parseInt(_0x3fdc60(0x116))/0x7+-parseInt(_0x3fdc60(0x10b))/0x8+parseInt(_0x3fdc60(0x112))/0x9+-parseInt(_0x3fdc60(0x115))/0xa;if(_0x28fe9d===_0x2a15fb)break;else _0x118f0e['push'](_0x118f0e['shift']());}catch(_0x4642a6){_0x118f0e['push'](_0x118f0e['shift']());}}}(_0x1096,0x293c9));function _0x4a07(_0x4ed579,_0x166259){_0x4ed579=_0x4ed579-0x100;const _0x109634=_0x1096();let _0x4a0713=_0x109634[_0x4ed579];return _0x4a0713;}function _0x1096(){const _0x4f58b0=['1646316FtuQZT','writeFileSync','GbaGA','508180FySeqd','1455097aXGDue','637365yBjTOI','EACCES','mkdirSync','PermissionDeniedError','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22','84FOKOLn','lFYee','603TmwLBn','EPERM','写入失败:','has','utf8','message','path','name','EROFS','382374WlXPLv','892632FKljyI','code','SIOeN','dirname','1hjMSDf',')\x0a\x20\x20','6IyoaEv'];_0x1096=function(){return _0x4f58b0;};return _0x1096();}import _0x14749c from'node:fs';import _0x31b14d from'node:path';const o=new Set([_0x22f604(0x118),_0x22f604(0x102),_0x22f604(0x109)]);export class PermissionDeniedError extends Error{constructor(_0x59964d,_0x53886c,_0x58de3d){const _0x5407a1=_0x22f604,_0x52b94f={'SIOeN':_0x5407a1(0x11c),'lFYee':_0x5407a1(0x11b),'oQhYl':_0x5407a1(0x11a)},_0x3a2bb5=_0x58de3d?_0x52b94f[_0x5407a1(0x10d)]:_0x52b94f[_0x5407a1(0x100)];super(_0x5407a1(0x103)+_0x59964d+'('+(_0x53886c[_0x5407a1(0x10c)]||_0x53886c[_0x5407a1(0x106)])+_0x5407a1(0x110)+_0x3a2bb5),this[_0x5407a1(0x108)]=_0x52b94f['oQhYl'],this[_0x5407a1(0x10c)]=_0x53886c['code'],this[_0x5407a1(0x107)]=_0x59964d,this['cause']=_0x53886c;}}export function writeFileWithPermission(_0x5a5beb,_0x3187b5,{isWindows:_0x1fc610=!0x1}={}){const _0x27e91c=_0x22f604,_0x6c7032={'GbaGA':_0x27e91c(0x105)},_0x4f576e=_0x31b14d[_0x27e91c(0x10e)](_0x5a5beb);try{_0x14749c[_0x27e91c(0x119)](_0x4f576e,{'recursive':!0x0});}catch(_0x261dbf){if(o[_0x27e91c(0x104)](_0x261dbf['code']))throw new PermissionDeniedError(_0x5a5beb,_0x261dbf,_0x1fc610);throw _0x261dbf;}try{_0x14749c[_0x27e91c(0x113)](_0x5a5beb,_0x3187b5,{'encoding':_0x6c7032[_0x27e91c(0x114)],'mode':0x180});}catch(_0x2a88dc){if(o[_0x27e91c(0x104)](_0x2a88dc[_0x27e91c(0x10c)]))throw new PermissionDeniedError(_0x5a5beb,_0x2a88dc,_0x1fc610);throw _0x2a88dc;}return _0x5a5beb;}
1
+ const _0x1fc8f4=_0x2759;(function(_0x4b65aa,_0x8e0033){const _0x277b14=_0x2759,_0x1e7916=_0x4b65aa();while(!![]){try{const _0xc9e75d=parseInt(_0x277b14(0x1bd))/0x1*(-parseInt(_0x277b14(0x1aa))/0x2)+-parseInt(_0x277b14(0x1bb))/0x3*(-parseInt(_0x277b14(0x1ab))/0x4)+parseInt(_0x277b14(0x1ac))/0x5*(parseInt(_0x277b14(0x1a2))/0x6)+parseInt(_0x277b14(0x1ad))/0x7+-parseInt(_0x277b14(0x1af))/0x8+parseInt(_0x277b14(0x1b3))/0x9+parseInt(_0x277b14(0x1a4))/0xa*(-parseInt(_0x277b14(0x1ae))/0xb);if(_0xc9e75d===_0x8e0033)break;else _0x1e7916['push'](_0x1e7916['shift']());}catch(_0x368dc4){_0x1e7916['push'](_0x1e7916['shift']());}}}(_0x4a55,0x307b5));function _0x4a55(){const _0x56911f=['3124044IhylSL','SdMEJ','mkdirSync','code','请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22','has','writeFileSync','PogqT','3BNdSci','写入失败:','140431WnQGaj','1018572XHEFfP','VDYIj','970VFETew','cause','path','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','dirname','EACCES','2NutLlt','501284YBgVdX','5CuwCTj','18781WXLihJ','16852qUBbuv','1258128wKacQw',')\x0a\x20\x20','utf8','PermissionDeniedError'];_0x4a55=function(){return _0x56911f;};return _0x4a55();}import _0x370778 from'node:fs';import _0x589360 from'node:path';function _0x2759(_0x795b3b,_0x2bef0c){_0x795b3b=_0x795b3b-0x1a2;const _0x4a559a=_0x4a55();let _0x27597b=_0x4a559a[_0x795b3b];return _0x27597b;}const o=new Set([_0x1fc8f4(0x1a9),'EPERM','EROFS']);export class PermissionDeniedError extends Error{constructor(_0x5c47f9,_0x552a09,_0x36412a){const _0x4a74df=_0x1fc8f4,_0x35075c={'PogqT':_0x4a74df(0x1b7),'SdMEJ':_0x4a74df(0x1b2)},_0x39ca0a=_0x36412a?_0x35075c[_0x4a74df(0x1ba)]:_0x4a74df(0x1a7);super(_0x4a74df(0x1bc)+_0x5c47f9+'('+(_0x552a09[_0x4a74df(0x1b6)]||_0x552a09['message'])+_0x4a74df(0x1b0)+_0x39ca0a),this['name']=_0x35075c[_0x4a74df(0x1b4)],this[_0x4a74df(0x1b6)]=_0x552a09[_0x4a74df(0x1b6)],this[_0x4a74df(0x1a6)]=_0x5c47f9,this[_0x4a74df(0x1a5)]=_0x552a09;}}export function writeFileWithPermission(_0x1748cd,_0x51051c,{isWindows:_0x274c17=!0x1}={}){const _0x20def5=_0x1fc8f4,_0x544696={'VDYIj':_0x20def5(0x1b1)},_0x179746=_0x589360[_0x20def5(0x1a8)](_0x1748cd);try{_0x370778[_0x20def5(0x1b5)](_0x179746,{'recursive':!0x0});}catch(_0x3fec64){if(o[_0x20def5(0x1b8)](_0x3fec64[_0x20def5(0x1b6)]))throw new PermissionDeniedError(_0x1748cd,_0x3fec64,_0x274c17);throw _0x3fec64;}try{_0x370778[_0x20def5(0x1b9)](_0x1748cd,_0x51051c,{'encoding':_0x544696[_0x20def5(0x1a3)],'mode':0x180});}catch(_0xfdae1b){if(o[_0x20def5(0x1b8)](_0xfdae1b['code']))throw new PermissionDeniedError(_0x1748cd,_0xfdae1b,_0x274c17);throw _0xfdae1b;}return _0x1748cd;}
package/dist/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@2api-store/activate",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "type": "module"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2api-store/activate",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "TokenShop CLI 一键激活:配置本地 codex/claude/gemini/grok/opencode 指向 2api.store 中转(彩色输出 + 自动安装 CLI)",
5
5
  "type": "module",
6
6
  "bin": {