@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.
- package/dist/activate.mjs +1 -1
- package/dist/lib/api.mjs +1 -1
- package/dist/lib/backup.mjs +1 -1
- package/dist/lib/cmds.mjs +1 -1
- package/dist/lib/detect.mjs +1 -1
- package/dist/lib/device.mjs +1 -1
- package/dist/lib/diagnose.mjs +1 -1
- package/dist/lib/install.mjs +1 -1
- package/dist/lib/platforms.mjs +1 -1
- package/dist/lib/pow.mjs +1 -1
- package/dist/lib/prompt.mjs +1 -1
- package/dist/lib/render.mjs +1 -1
- package/dist/lib/ui.mjs +1 -1
- package/dist/lib/write.mjs +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/lib/render.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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
|
|
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};
|
package/dist/lib/write.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
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