@2api-store/activate 0.8.0 → 0.9.0

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 _0x4cc8d4=_0x29f4;(function(_0x7c2320,_0x5c2ffd){const _0x3a3576=_0x29f4,_0x50b5a2=_0x7c2320();while(!![]){try{const _0x5a5d32=-parseInt(_0x3a3576(0x137))/0x1+-parseInt(_0x3a3576(0x133))/0x2*(-parseInt(_0x3a3576(0x13a))/0x3)+-parseInt(_0x3a3576(0x134))/0x4*(-parseInt(_0x3a3576(0x123))/0x5)+-parseInt(_0x3a3576(0x13b))/0x6+parseInt(_0x3a3576(0x12a))/0x7+parseInt(_0x3a3576(0x135))/0x8*(parseInt(_0x3a3576(0x132))/0x9)+parseInt(_0x3a3576(0x136))/0xa*(-parseInt(_0x3a3576(0x128))/0xb);if(_0x5a5d32===_0x5c2ffd)break;else _0x50b5a2['push'](_0x50b5a2['shift']());}catch(_0x3ffabe){_0x50b5a2['push'](_0x50b5a2['shift']());}}}(_0xee76,0x8f3d5));function _0xee76(){const _0x295ce3=['20361WeIgbE',')\x0a\x20\x20','59871pPgPMy','EACCES','YnjUS','code','name','message','EROFS','writeFileSync','9NXGWpD','68tVcmrF','1157896amfYGq','7324456zQJsaY','1220yFKcUl','886495tzchEf','has','AGKiN','87999ZyFJFV','6544968rRqhuv','EPERM','写入失败:','mkdirSync','path','15CXbphO','请用「管理员\x20PowerShell」重跑:\x0a\x20\x20\x20\x20Start-Process\x20powershell\x20-Verb\x20RunAs\x20-ArgumentList\x20\x22npx,-y,@2api-store/activate\x22','请用\x20sudo\x20重跑:\x0a\x20\x20\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','utf8','PermissionDeniedError'];_0xee76=function(){return _0x295ce3;};return _0xee76();}function _0x29f4(_0x4d082e,_0x2c7eb7){_0x4d082e=_0x4d082e-0x120;const _0xee7640=_0xee76();let _0x29f454=_0xee7640[_0x4d082e];return _0x29f454;}import _0xf8b27c from'node:fs';import _0x43ae6f from'node:path';const o=new Set([_0x4cc8d4(0x12b),_0x4cc8d4(0x13c),_0x4cc8d4(0x130)]);export class PermissionDeniedError extends Error{constructor(_0x413630,_0x773db4,_0x35b3f7){const _0x38f1a1=_0x4cc8d4,_0x176331={'AGKiN':_0x38f1a1(0x124),'YnjUS':_0x38f1a1(0x127)},_0x369e83=_0x35b3f7?_0x176331[_0x38f1a1(0x139)]:_0x38f1a1(0x125);super(_0x38f1a1(0x120)+_0x413630+'('+(_0x773db4[_0x38f1a1(0x12d)]||_0x773db4[_0x38f1a1(0x12f)])+_0x38f1a1(0x129)+_0x369e83),this[_0x38f1a1(0x12e)]=_0x176331[_0x38f1a1(0x12c)],this[_0x38f1a1(0x12d)]=_0x773db4[_0x38f1a1(0x12d)],this[_0x38f1a1(0x122)]=_0x413630,this['cause']=_0x773db4;}}export function writeFileWithPermission(_0x5daac0,_0x527e4b,{isWindows:_0x594fb2=!0x1}={}){const _0x5211a3=_0x4cc8d4,_0xdfb923={'KMqyW':_0x5211a3(0x126)},_0x847262=_0x43ae6f['dirname'](_0x5daac0);try{_0xf8b27c[_0x5211a3(0x121)](_0x847262,{'recursive':!0x0});}catch(_0x1cd7c4){if(o[_0x5211a3(0x138)](_0x1cd7c4[_0x5211a3(0x12d)]))throw new PermissionDeniedError(_0x5daac0,_0x1cd7c4,_0x594fb2);throw _0x1cd7c4;}try{_0xf8b27c[_0x5211a3(0x131)](_0x5daac0,_0x527e4b,{'encoding':_0xdfb923['KMqyW'],'mode':0x180});}catch(_0x4c051f){if(o['has'](_0x4c051f['code']))throw new PermissionDeniedError(_0x5daac0,_0x4c051f,_0x594fb2);throw _0x4c051f;}return _0x5daac0;}
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;}
package/dist/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@2api-store/activate",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
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.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "TokenShop CLI 一键激活:配置本地 codex/claude/gemini/grok/opencode 指向 2api.store 中转(彩色输出 + 自动安装 CLI)",
5
5
  "type": "module",
6
6
  "bin": {