@2api-store/activate 0.8.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 _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 _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.8.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.8.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": {