@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.
package/dist/activate.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function _0xa4cb(_0xc50c4b,_0x21c29e){_0xc50c4b=_0xc50c4b-0x186;const _0x22920a=_0x2292();let _0xa4cbf3=_0x22920a[_0xc50c4b];return _0xa4cbf3;}const _0x3700ab=_0xa4cb;(function(_0x40907b,_0x3220fa){const _0x49b935=_0xa4cb,_0x408abf=_0x40907b();while(!![]){try{const _0x37d3ba=-parseInt(_0x49b935(0x260))/0x1+parseInt(_0x49b935(0x1fc))/0x2*(parseInt(_0x49b935(0x275))/0x3)+-parseInt(_0x49b935(0x262))/0x4+-parseInt(_0x49b935(0x222))/0x5+-parseInt(_0x49b935(0x1da))/0x6+-parseInt(_0x49b935(0x237))/0x7*(-parseInt(_0x49b935(0x24e))/0x8)+parseInt(_0x49b935(0x26a))/0x9*(parseInt(_0x49b935(0x243))/0xa);if(_0x37d3ba===_0x3220fa)break;else _0x408abf['push'](_0x408abf['shift']());}catch(_0x25d9d6){_0x408abf['push'](_0x408abf['shift']());}}}(_0x2292,0x2c6ad),(process[_0x3700ab(0x24c)](_0x3700ab(0x24a)),process[_0x3700ab(0x20d)][_0x3700ab(0x1db)]='1'));import{detectAll as _0x5e3a08}from'./lib/detect.mjs';function _0x2292(){const _0x2adc78=['MydyO','KmUMD','选择\x20CLI','usage','\x20(未装)','available','GqvXS','exit','length','grok','(新用户已创建)','\x0a@2api-store/activate\x20v','qoqrQ','backup-failed','model','请求\x20GET\x20/v1/models…','label','Mzokc','has','isMac','可能是分组不匹配或账号临时不可用,使用时会报\x20404/429','[试运行]\x20将写入\x20','group','rfUMy','未捕获错误:','key','备份失败:','shell-only','失败\x20','FArdr','UkJXT','content','zDYvA','pDcKd','handler','NNCpW','base_url','请求激活服务','1053120QEdljd','NODE_NO_WARNINGS','ibhsA','bLSnm','GwFbs','LRkvT','node','兑换码','XMSpq','ckQzY','MUzmb','VMrrc','dryRun','dim','未查询到可用分组。请联系管理员开通分组后再激活。','configs','dFSQO','\x20\x20[shell\x20命令,请手动执行]','client_type','isLinux','(跳过此文件避免无备份覆盖)','\x20已安装','pTUTA','RNMyj','未选择任何\x20CLI,退出。','email','gxleF','YbLsu','isWindows','gemini','unknown','kUvPK','CECgw','path','910aFbqxu','检查\x20CLI\x20安装状态','验证未通过:','PowerShell','\x20异常:','stack','alreadyInstalled','yTGGf','qWNJB','action','未知错误','MxSsd','未检测到\x20','\x20\x20备份:','error','version','split','env','获取可用分组','inIyQ','【试运行模式\x20--dry-run】不会真写文件、不会真装\x20CLI','permission-denied','clientType','Linux','config','argv','\x20/\x20','\x20安装(','\x20项(见上方输出)','\x20\x20目标:','环境:','(仍会写入配置;如需更换请重跑激活选择其他模型)','邮箱格式不正确','--api-base','haeuO','凭据格式无法识别(应为\x20sk-\x20前缀的\x20API\x20Key\x20或兑换码)','files','TPjFS','1677470dEVwVY','macOS','rBaty','wfayt','installed','rLMgJ','map','YqMVK','sk-','📧\x20新账号\x20','displayName','models','help','(ID\x20','log','\x20\x20\x20\x20','doBKu','cVkOs','oVodu','https://2api.store','\x20个模型当前无可用账号(标注\x20⚠,可能是分组不匹配或账号临时不可用)','7DbJKFU','lcEOv','yZAoC','meta','LljLk','\x20·\x20node\x20v','wxRzw','push','Windows','已写入','zCkgD','add','80YsLLxj','startsWith',')\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20显示帮助\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20显示版本\x0a\x0a','已写入\x20','fewYZ','backup','base_url_beta','warning','message','removeAllListeners','XonrU','120016rOxxwy','lvEVn','reason','mBKuX','\x20\x20[试运行]\x20不真实写入','未输入凭据','UoJtm','你的\x20key\x20所属分组:','GPDsy','user','statusCode','选择绑定的分组','\x20项:','\x20\x20\x20\x20...(共\x20','zWfhe','string','FBYwc','claude','91684rDfvNM','HTTP\x20','386188iRbUrx','YWUMc','JFMNx','detectBin','failed','ACTIVATE_API_BASE','iNfHU','redeem','683703WufMgb','JndXg','apiBase','all','平台过滤:','test','KHUnJ','replace','(配置已写入,请手动检查)','kbjFe','green','1704ADxmMm','get','选择默认模型(最新优先)','已检测到\x20CLI:','\x20安装失败:','catch','vnYfr','选择默认模型','\x20平台,ID\x20','name','display_name','cli','uoAHB','(配置仍会写入,但请手动安装后使用)','/antigravity','written','sSQAD','备份并写入配置','isArray','rdLUI','trim','UexZs','(跳过模型可用性探测:服务端暂不支持或网络不可达)','\x20个文件','dSGwu','BkXOH','os_type','\x20\x20内容预览:','platform','rHXea','fiqfl','需要\x20node\x20>=\x2018,当前\x20','激活报告','AknMY','服务端未返回模型列表,{{defaultModel}}\x20将留空','join','keys','aFyNv','需手动执行的\x20shell\x20命令:','is_new','dry-run','备份位置:','\x0a\x0a环境变量:\x0a\x20\x20ACTIVATE_API_BASE\x20\x20\x20\x20\x20\x20覆盖\x20API\x20端点(同\x20--api-base)\x0a\x0a示例:\x0a\x20\x20npx\x20@2api-store/activate\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\x20\x20\x20\x20\x20#\x20默认激活\x0a\x20\x20npx\x20@2api-store/activate\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20试运行\x0a\x20\x20npx\x20@2api-store/activate\x20--platform\x20openai\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20只激活\x20openai\x0a\x20\x20npx\x20@2api-store/activate\x20restore\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20从备份恢复\x0a\x20\x20npx\x20@2api-store/activate\x20reset\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恢复官方默认\x0a\x20\x20npx\x20@2api-store/activate\x20refresh-groups\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20查看可用分组\x0a\x20\x20ACTIVATE_API_BASE=http://127.0.0.1:5566\x20npx\x20@2api-store/activate\x0a\x0a退出码:\x0a\x20\x200\x20\x20成功\x0a\x20\x201\x20\x20输入错误\x20/\x20网络失败\x20/\x20致命错误\x0a\x20\x202\x20\x20部分文件权限不足(请按提示用\x20sudo\x20/\x20管理员\x20PowerShell\x20重跑)\x0a\x20\x203\x20\x20其他写入失败\x0a','filter','slice','windows','ZGLyI','请输入邮箱(用于兑换码绑定\x20/\x20新账号创建)','\x20个文件(未真实写入)','EUCEd','TAnsl','includes','YPtHS','YcmIo','toLowerCase','anthropic','api_key','CxRrl','Ezlpj','未选择分组','startCmd','mDXxK','Tmafq','\x20\x20-\x20','输入模型\x20ID(如\x20gpt-5.6-terra)','KulHW','fCBKG','写入失败:','JPimb','──\x20','模式:','\x20──','YiXHQ','已选分组:','sSYmb','新账号:','pnmbr'];_0x2292=function(){return _0x2adc78;};return _0x2292();}import{cliActivate as _0x5ef493,listGroups as _0x403a67,verifyApiKey as _0x56a247,probeModels as _0x505e25}from'./lib/api.mjs';import{renderContent as _0x31fc6a,expandPath as _0x5ada4f,listModels as _0x336686}from'./lib/render.mjs';import{backupFile as _0x167607}from'./lib/backup.mjs';import{writeFileWithPermission as _0x2896fa,PermissionDeniedError as _0x188d82}from'./lib/write.mjs';import{ask as _0x1bda94,askSecret as _0x217568,multiSelect as _0x46af81,select as _0x1395c7,confirm as _0x57e916,closePrompt as _0x436960}from'./lib/prompt.mjs';import{banner as _0x3fb386,ok as _0x14dad2,fail as _0x5e2d7e,warn as _0x3a2d60,info as _0x698c48,step as _0x5ebcd4,guide as _0x4de158,plain as _0x32db3f,chalk as _0x4d25a8}from'./lib/ui.mjs';import{getCliMeta as _0x19419e,isDefaultSelected as _0x21a56d}from'./lib/platforms.mjs';import{ensureInstalled as _0x2db027}from'./lib/install.mjs';import{SUBCOMMANDS as _0x30a335,SUBCOMMAND_NAMES as _0x1d9840,SUB_HELP as _0x15490d}from'./lib/cmds.mjs';import{createRequire as _0x278540}from'node:module';const L=_0x278540(import.meta.url)('./package.json')[_0x3700ab(0x20b)],E=_0x3700ab(0x235);(async function(){const _0x17f543=_0x3700ab,_0x283394={'sSQAD':function(_0x19b15a,_0x216ee6){return _0x19b15a===_0x216ee6;},'ZybhU':'--dry-run','mBKuX':function(_0x483fb3,_0x1f5c1b){return _0x483fb3===_0x1f5c1b;},'ibhsA':'--platform','Hysri':_0x17f543(0x21d),'iNfHU':'--version','YiXHQ':function(_0x4752c6,_0x40b1f8){return _0x4752c6==_0x40b1f8;},'EUCEd':_0x17f543(0x25d),'wfayt':_0x17f543(0x25f),'EUHUS':_0x17f543(0x19e),'YcmIo':_0x17f543(0x1f7),'cVkOs':_0x17f543(0x1bd),'Mzokc':function(_0x24593f,_0xfa7d4e){return _0x24593f(_0xfa7d4e);},'rfUMy':function(_0x3d4b8b){return _0x3d4b8b();},'haeuO':_0x17f543(0x223),'yZAoC':_0x17f543(0x23f),'KulHW':function(_0x221626,_0x920008){return _0x221626(_0x920008);},'rLMgJ':function(_0x1b05f2,_0x26fe9a){return _0x1b05f2>_0x26fe9a;},'zWfhe':function(_0x70cb42,_0x558a66){return _0x70cb42(_0x558a66);},'pnmbr':function(_0x44879b,_0x4d5dd2){return _0x44879b(_0x4d5dd2);},'JndXg':'未检测到\x20codex/claude/gemini/grok/opencode(可在后续步骤按需自动安装)','wxRzw':function(_0xa92d7b,_0x4bab2b){return _0xa92d7b(_0x4bab2b);},'gxleF':_0x17f543(0x210),'JFMNx':function(_0x43f4b0,_0x1a3d7e){return _0x43f4b0(_0x1a3d7e);},'Tmafq':function(_0x24ca8a,_0x1312eb){return _0x24ca8a(_0x1312eb);},'vadMj':'请输入\x20API\x20Key(sk-...)或兑换码','kbjFe':function(_0x1d06c2,_0x28a8ec){return _0x1d06c2(_0x28a8ec);},'sSYmb':_0x17f543(0x253),'pTUTA':_0x17f543(0x22a),'MUzmb':_0x17f543(0x1cd),'inIyQ':_0x17f543(0x269),'zDYvA':_0x17f543(0x1f8),'Ezlpj':'empty','LljLk':_0x17f543(0x21f),'NNCpW':'API\x20Key','lcEOv':_0x17f543(0x21c),'zCkgD':function(_0x1ce554,_0x1544e2){return _0x1ce554(_0x1544e2);},'GqvXS':function(_0x4787f8,_0x291cb2){return _0x4787f8===_0x291cb2;},'qoqrQ':_0x17f543(0x1e8),'kUvPK':function(_0xbc8929,_0x31f5da){return _0xbc8929(_0x31f5da);},'bLSnm':function(_0x7e4d3a,_0x4ba843){return _0x7e4d3a(_0x4ba843);},'BkXOH':function(_0x4bea26,_0x15c1c3){return _0x4bea26(_0x15c1c3);},'rBaty':_0x17f543(0x1be),'GwFbs':function(_0x1df5ea,_0x5339b5){return _0x1df5ea(_0x5339b5);},'fCBKG':function(_0x3bf64e,_0x43c711){return _0x3bf64e===_0x43c711;},'fewYZ':'服务端未返回适配当前系统的配置模板','AknMY':function(_0x2cd333,_0xc011de){return _0x2cd333(_0xc011de);},'eGoZD':'(独立\x20CLI)','MxSsd':function(_0x5a0ffe,_0x5d9ea1){return _0x5a0ffe(_0x5d9ea1);},'qWNJB':_0x17f543(0x1b6),'lvEVn':function(_0x37eb57,_0x28cb83,_0x4c10c0,_0x24a1e8){return _0x37eb57(_0x28cb83,_0x4c10c0,_0x24a1e8);},'UkJXT':'选择要激活的\x20CLI(绿色=已装,灰色=未装;默认选主\x20CLI,独立\x20CLI\x20默认不选)','ckQzY':function(_0x7873cf,_0x570ae2){return _0x7873cf===_0x570ae2;},'MydyO':function(_0x6f7256,_0xc827ea){return _0x6f7256(_0xc827ea);},'bDPsY':_0x17f543(0x1f2),'RNMyj':_0x17f543(0x1fd),'GPDsy':function(_0x55fdbd,_0x270243,_0x30a0a4){return _0x55fdbd(_0x270243,_0x30a0a4);},'aFyNv':function(_0x3e3d5b,_0x1f8e92){return _0x3e3d5b===_0x1f8e92;},'TAnsl':_0x17f543(0x206),'LRkvT':function(_0x4489af,_0x2873ad){return _0x4489af(_0x2873ad);},'jcafQ':_0x17f543(0x277),'VMrrc':_0x17f543(0x28b),'THHvk':function(_0x3dea43,_0x172bfa){return _0x3dea43>_0x172bfa;},'VthcO':'其他(手动输入模型\x20ID)','KHUnJ':function(_0x4053ea,_0x44ed8e,_0x546a16,_0x524085){return _0x4053ea(_0x44ed8e,_0x546a16,_0x524085);},'UoJtm':_0x17f543(0x1a7),'UexZs':function(_0x274404,_0xc402c8){return _0x274404(_0xc402c8);},'doBKu':function(_0x2658a2,_0x2e54e9){return _0x2658a2(_0x2e54e9);},'sFUBw':_0x17f543(0x1c8),'dSGwu':_0x17f543(0x216),'XMSpq':function(_0x58b27f,_0x1c1ffe){return _0x58b27f(_0x1c1ffe);},'wOPTk':_0x17f543(0x189),'hmCMl':_0x17f543(0x286),'YbLsu':function(_0x32f463,_0x2463e8){return _0x32f463(_0x2463e8);},'vnYfr':'Terminal','rdLUI':_0x17f543(0x1ff),'jPXBA':_0x17f543(0x1eb),'YPtHS':function(_0xba2519,_0x5eb73c){return _0xba2519(_0x5eb73c);},'TPjFS':_0x17f543(0x252),'KPtCe':_0x17f543(0x290),'rHXea':'dry-run','FooeG':function(_0x5ed25e,_0x573bbf){return _0x5ed25e(_0x573bbf);},'KmUMD':function(_0x44a2dc,_0x20651b){return _0x44a2dc(_0x20651b);},'yTGGf':_0x17f543(0x240),'FArdr':_0x17f543(0x284),'NRGfF':function(_0x43ff27,_0x16cd77){return _0x43ff27 instanceof _0x16cd77;},'pDcKd':_0x17f543(0x211),'YqMVK':'failed','CECgw':'验证\x20API\x20Key','NBTMt':function(_0x360c0d,_0x185139){return _0x360c0d(_0x185139);},'YWUMc':_0x17f543(0x1c3),'oVodu':'API\x20Key\x20验证通过(GET\x20/v1/models\x20→\x20200)','dFSQO':function(_0x31be10,_0x297ccd){return _0x31be10(_0x297ccd);},'fiqfl':function(_0x1d3b69,_0x372f14){return _0x1d3b69(_0x372f14);},'JPimb':_0x17f543(0x187),'uoAHB':function(_0xaa65ee,_0x3233ea){return _0xaa65ee(_0x3233ea);},'CxRrl':function(_0x4294e8,_0x2a6a6e){return _0x4294e8>_0x2a6a6e;},'FBYwc':function(_0x3a47c5,_0x199249){return _0x3a47c5(_0x199249);},'mDXxK':'部分文件权限不足,请按提示用\x20sudo\x20/\x20管理员\x20PowerShell\x20重跑:','FPIbb':function(_0x2823b0,_0x446d63){return _0x2823b0(_0x446d63);},'XonrU':'\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate'},_0x1b72cf=process[_0x17f543(0x215)][0x2];if(_0x1b72cf&&!_0x1b72cf[_0x17f543(0x244)]('-')&&_0x1d9840[_0x17f543(0x1c6)](_0x1b72cf)){const _0x314cea=process['argv']['slice'](0x3),_0x3e3f74=_0x30a335[_0x1b72cf];try{return await _0x3e3f74[_0x17f543(0x1d6)](_0x314cea)||0x0;}catch(_0x213b21){return _0x283394[_0x17f543(0x1c5)](_0x5e2d7e,'子命令\x20'+_0x1b72cf+_0x17f543(0x200)+(_0x213b21?.[_0x17f543(0x24b)]||_0x213b21)),_0x213b21?.[_0x17f543(0x201)]&&console[_0x17f543(0x20a)](_0x213b21['stack']),0x1;}}const _0x2b5f59=function(_0x235a6a){const _0x53f2e6=_0x17f543,_0x157f05={'dryRun':!0x1,'platform':null,'_':[]};for(let _0x2914ec=0x0;_0x2914ec<_0x235a6a[_0x53f2e6(0x1bc)];_0x2914ec++){const _0x5b30df=_0x235a6a[_0x2914ec];if(_0x283394[_0x53f2e6(0x285)](_0x283394['ZybhU'],_0x5b30df)||_0x283394[_0x53f2e6(0x251)]('-n',_0x5b30df))_0x157f05[_0x53f2e6(0x1e6)]=!0x0;else{if(_0x283394[_0x53f2e6(0x251)](_0x283394[_0x53f2e6(0x1dc)],_0x5b30df)||_0x283394[_0x53f2e6(0x285)]('-p',_0x5b30df))_0x157f05[_0x53f2e6(0x291)]=_0x235a6a[++_0x2914ec];else{if(_0x283394[_0x53f2e6(0x251)](_0x283394['Hysri'],_0x5b30df))_0x157f05[_0x53f2e6(0x26c)]=_0x235a6a[++_0x2914ec];else{if('--help'===_0x5b30df||_0x283394['mBKuX']('-h',_0x5b30df))_0x157f05[_0x53f2e6(0x22e)]=!0x0;else{if(_0x283394[_0x53f2e6(0x268)]===_0x5b30df||_0x283394[_0x53f2e6(0x251)]('-v',_0x5b30df))_0x157f05[_0x53f2e6(0x20b)]=!0x0;else{if(_0x5b30df[_0x53f2e6(0x244)]('--')&&_0x5b30df['includes']('=')){const [_0x399f9f,_0x12aec8]=_0x5b30df[_0x53f2e6(0x193)](0x2)[_0x53f2e6(0x20c)](/=(.*)/,0x2);_0x157f05[_0x399f9f]=_0x12aec8;}else _0x5b30df[_0x53f2e6(0x244)]('--')?_0x157f05[_0x5b30df[_0x53f2e6(0x271)](/^--/,'')]=_0x235a6a[++_0x2914ec]:_0x157f05['_'][_0x53f2e6(0x23e)](_0x5b30df);}}}}}}return _0x157f05;}(process[_0x17f543(0x215)][_0x17f543(0x193)](0x2));if(_0x2b5f59[_0x17f543(0x22e)])return console[_0x17f543(0x230)]((_0x17f543(0x1bf)+L+'\x20—\x20TokenShop\x20CLI\x20一键激活\x0a\x0a用法:\x0a\x20\x20npx\x20@2api-store/activate\x20[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20默认激活流程\x0a\x20\x20npx\x20@2api-store/activate\x20<subcommand>\x20[options]\x20\x20\x20运行子命令\x0a\x0a选项(默认激活流程):\x0a\x20\x20--dry-run,\x20-n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20不真写配置/不真装\x20CLI,只展示将做什么\x0a\x20\x20--platform\x20<name>\x20\x20\x20\x20\x20\x20只激活指定平台(openai/anthropic/gemini/grok/antigravity)\x0a\x20\x20--api-base\x20<url>\x20\x20\x20\x20\x20\x20\x20覆盖\x20API\x20端点(默认\x20$ACTIVATE_API_BASE\x20或\x20'+E+_0x17f543(0x245)+_0x15490d+_0x17f543(0x191))['trim']()),0x0;if(_0x2b5f59[_0x17f543(0x20b)])return console[_0x17f543(0x230)](L),0x0;_0x283394[_0x17f543(0x1cb)](_0x3fb386);const _0xcf590e=_0x283394[_0x17f543(0x1cb)](_0x5e3a08),_0xdbe859=_0xcf590e['os'][_0x17f543(0x1c7)]?_0x283394[_0x17f543(0x21e)]:_0xcf590e['os'][_0x17f543(0x1ed)]?_0x17f543(0x213):_0xcf590e['os'][_0x17f543(0x1f6)]?_0x283394[_0x17f543(0x239)]:_0xcf590e['os'][_0x17f543(0x291)];if(_0x283394[_0x17f543(0x1c5)](_0x698c48,_0x17f543(0x21a)+_0xdbe859+_0x17f543(0x23c)+_0xcf590e[_0x17f543(0x1e0)]['version']),!_0xcf590e['node']['supported'])return _0x283394[_0x17f543(0x1a8)](_0x5e2d7e,_0x17f543(0x186)+_0xcf590e[_0x17f543(0x1e0)]['version']),0x1;const _0x2d3fe5=Object[_0x17f543(0x18b)](_0xcf590e[_0x17f543(0x226)]),_0x5dc7ee=_0x2d3fe5[_0x17f543(0x228)](_0x37dd71=>{const _0x3f2c08=_0x17f543,_0x2fddae=_0xcf590e[_0x3f2c08(0x226)][_0x37dd71]?.[_0x3f2c08(0x20b)];return _0x2fddae?_0x37dd71+'@'+_0x2fddae:_0x37dd71;});_0x283394[_0x17f543(0x227)](_0x2d3fe5[_0x17f543(0x1bc)],0x0)?_0x283394[_0x17f543(0x25c)](_0x14dad2,_0x17f543(0x278)+_0x5dc7ee[_0x17f543(0x18a)](',\x20')):_0x283394[_0x17f543(0x1b3)](_0x698c48,_0x283394[_0x17f543(0x26b)]);const _0x2325e7=_0x2b5f59[_0x17f543(0x26c)]||process[_0x17f543(0x20d)][_0x17f543(0x267)]||E;_0x283394[_0x17f543(0x23d)](_0x698c48,'API\x20端点:'+_0x2325e7),_0x2b5f59[_0x17f543(0x1e6)]&&_0x283394['Mzokc'](_0x3a2d60,_0x283394[_0x17f543(0x1f4)]),_0x2b5f59[_0x17f543(0x291)]&&_0x283394['JFMNx'](_0x698c48,_0x17f543(0x26e)+_0x2b5f59['platform']),console[_0x17f543(0x230)]();const _0x597548=(await _0x283394[_0x17f543(0x1a5)](_0x217568,_0x283394['vadMj']))['trim']();if(!_0x597548)return _0x283394[_0x17f543(0x273)](_0x5e2d7e,_0x283394[_0x17f543(0x1b1)]),0x1;const _0x5f1289=(_0x3d40ae=_0x597548)?_0x3d40ae['startsWith'](_0x283394[_0x17f543(0x1f0)])?_0x283394[_0x17f543(0x1e4)]:/^[a-zA-Z0-9]{16,64}$/[_0x17f543(0x26f)](_0x3d40ae)?_0x283394[_0x17f543(0x20f)]:_0x283394[_0x17f543(0x1d4)]:_0x283394[_0x17f543(0x1a1)];var _0x3d40ae;if(_0x283394[_0x17f543(0x1d4)]===_0x5f1289)return _0x5e2d7e(_0x283394[_0x17f543(0x23b)]),0x1;_0x698c48('识别为:'+(_0x283394[_0x17f543(0x251)](_0x283394['MUzmb'],_0x5f1289)?_0x283394[_0x17f543(0x1d7)]:_0x17f543(0x1e1))+'模式');let _0x4bf03a,_0x3ddd2d='',_0x18cdfe=null;if(_0x283394[_0x17f543(0x20f)]===_0x5f1289){if(_0x3ddd2d=(await _0x283394['KulHW'](_0x1bda94,_0x17f543(0x196)))['trim'](),!_0x3ddd2d||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/[_0x17f543(0x26f)](_0x3ddd2d))return _0x5e2d7e(_0x283394[_0x17f543(0x238)]),0x1;_0x283394[_0x17f543(0x241)](_0x5ebcd4,_0x17f543(0x20e));const _0x44bf9d=await _0x283394[_0x17f543(0x1a8)](_0x403a67,{'apiBase':_0x2325e7});if(_0x283394[_0x17f543(0x1ba)](0x0,_0x44bf9d[_0x17f543(0x1bc)]))return _0x283394[_0x17f543(0x25c)](_0x5e2d7e,_0x283394[_0x17f543(0x1c0)]),0x1;const _0x256c08=_0x44bf9d['map'](_0x21522a=>({'label':''+_0x21522a[_0x17f543(0x27e)],'value':_0x21522a['id']})),_0x478689=await _0x1395c7(_0x17f543(0x259),_0x256c08,{'defaultIndex':0x0});if(_0x18cdfe=_0x44bf9d[_0x478689]?.['id'],!_0x18cdfe)return _0x283394[_0x17f543(0x1a8)](_0x5e2d7e,_0x17f543(0x1a2)),0x1;_0x14dad2(_0x17f543(0x1b0)+_0x44bf9d[_0x478689][_0x17f543(0x27e)]+_0x17f543(0x22f)+_0x18cdfe+')'),console['log']();}_0x283394[_0x17f543(0x1f9)](_0x5ebcd4,_0x17f543(0x1d9));try{_0x4bf03a=await _0x283394[_0x17f543(0x1dd)](_0x5ef493,{'credential':_0x597548,'email':_0x3ddd2d,'platform':_0x2b5f59[_0x17f543(0x291)],'groupId':_0x18cdfe,'apiBase':_0x2325e7});}catch(_0x2f830e){return _0x283394['kbjFe'](_0x5e2d7e,'激活失败:'+_0x2f830e[_0x17f543(0x24b)]),_0x2f830e[_0x17f543(0x258)]&&_0x283394[_0x17f543(0x28e)](_0x5e2d7e,'\x20\x20HTTP\x20'+_0x2f830e[_0x17f543(0x258)]),0x1;}_0x4bf03a[_0x17f543(0x1ca)]?.['name']&&_0x283394[_0x17f543(0x273)](_0x698c48,_0x17f543(0x255)+_0x4bf03a['group'][_0x17f543(0x27e)]+'('+(_0x4bf03a['group'][_0x17f543(0x291)]||'未知')+_0x17f543(0x27d)+_0x4bf03a['group']['id']+')'),_0x283394[_0x17f543(0x23d)](_0x14dad2,_0x17f543(0x1ad)+_0x4bf03a['mode']+(_0x4bf03a[_0x17f543(0x257)]?.['is_new']?_0x283394[_0x17f543(0x224)]:'')),_0x4bf03a[_0x17f543(0x257)]?.[_0x17f543(0x18e)]&&_0x4bf03a['user']?.[_0x17f543(0x1f3)]&&(_0x283394[_0x17f543(0x1a8)](_0x698c48,_0x17f543(0x1b2)+_0x4bf03a[_0x17f543(0x257)][_0x17f543(0x1f3)]),_0x4bf03a[_0x17f543(0x257)][_0x17f543(0x24b)]&&_0x283394['GwFbs'](_0x698c48,_0x4bf03a[_0x17f543(0x257)][_0x17f543(0x24b)])),console[_0x17f543(0x230)]();const _0x2a1bae=function(_0x458869){const _0x570638=_0x17f543,_0x123629=new Set();for(const _0x47332b of _0x458869||[]){const _0x2333b2=(_0x283394[_0x570638(0x1af)](_0x283394[_0x570638(0x198)],typeof _0x47332b)?_0x47332b:_0x47332b?.['id']||'')[_0x570638(0x19d)]();/^(gpt|o1|o3|codex|glm|minimax|deepseek)/['test'](_0x2333b2)?_0x123629[_0x570638(0x242)]('openai'):_0x2333b2[_0x570638(0x244)](_0x283394[_0x570638(0x225)])?_0x123629['add'](_0x283394['EUHUS']):_0x2333b2[_0x570638(0x244)](_0x283394['YcmIo'])?_0x123629[_0x570638(0x242)](_0x283394[_0x570638(0x19c)]):_0x2333b2[_0x570638(0x244)](_0x283394[_0x570638(0x233)])&&_0x123629['add'](_0x283394[_0x570638(0x233)]);}return[..._0x123629];}(_0x4bf03a[_0x17f543(0x22d)]||[]);_0x2b5f59[_0x17f543(0x291)]&&!_0x2a1bae[_0x17f543(0x19a)](_0x2b5f59[_0x17f543(0x291)])&&_0x2a1bae['push'](_0x2b5f59[_0x17f543(0x291)]);const _0x241880=(_0x4bf03a[_0x17f543(0x1e9)]||[])[_0x17f543(0x192)](_0xab48a2=>!!_0xab48a2&&(!(_0x2a1bae['length']>0x0&&!_0x2a1bae[_0x17f543(0x19a)](_0xab48a2[_0x17f543(0x291)]))&&((!_0x2b5f59[_0x17f543(0x291)]||_0xab48a2[_0x17f543(0x291)]===_0x2b5f59['platform'])&&(_0xcf590e['os'][_0x17f543(0x1f6)]?_0x17f543(0x194)===_0xab48a2['os_type']||'all'===_0xab48a2[_0x17f543(0x28f)]:'unix'===_0xab48a2[_0x17f543(0x28f)]||_0x17f543(0x26d)===_0xab48a2[_0x17f543(0x28f)]))));if(_0x283394['fCBKG'](0x0,_0x241880[_0x17f543(0x1bc)]))return _0x5e2d7e(_0x283394[_0x17f543(0x247)]),0x1;const _0x13e740=new Set(),_0x4c9212=[];for(const _0x7307d3 of _0x241880){const _0x2b58af=_0x7307d3[_0x17f543(0x291)]+'/'+_0x7307d3[_0x17f543(0x1ec)];if(_0x13e740[_0x17f543(0x1c6)](_0x2b58af))continue;_0x13e740[_0x17f543(0x242)](_0x2b58af);const _0x58fb99=_0x283394['AknMY'](_0x19419e,_0x7307d3['client_type']),_0x302f79=_0x7307d3[_0x17f543(0x27f)]||_0x7307d3[_0x17f543(0x22c)]||_0x58fb99?.['name']||_0x7307d3['platform']+'\x20'+_0x7307d3['client_type'],_0x160bb7=_0xcf590e[_0x17f543(0x226)][_0x7307d3[_0x17f543(0x1ec)]]?.[_0x17f543(0x1fb)]||_0x58fb99&&_0xcf590e[_0x17f543(0x226)][_0x58fb99['detectBin']]?.[_0x17f543(0x1fb)],_0x37e9b2=_0x21a56d(_0x7307d3[_0x17f543(0x1ec)])?'':_0x283394['eGoZD'],_0x481568=_0x160bb7?_0x4d25a8[_0x17f543(0x274)](_0x302f79):_0x4d25a8['gray'](_0x302f79+_0x17f543(0x1b8));_0x4c9212[_0x17f543(0x23e)]({'label':_0x481568+'\x20'+_0x4d25a8[_0x17f543(0x1e7)]('['+_0x7307d3['platform']+'/'+_0x7307d3[_0x17f543(0x1ec)]+']')+_0x37e9b2,'config':_0x7307d3,'clientType':_0x7307d3[_0x17f543(0x1ec)],'meta':_0x58fb99,'alreadyInstalled':!!_0x160bb7});}const _0x443d34=_0x4c9212[_0x17f543(0x228)]((_0x51bb8b,_0x47cbf5)=>({'item':_0x51bb8b,'i':_0x47cbf5}))[_0x17f543(0x192)](({item:_0xd27ce})=>_0x21a56d(_0xd27ce[_0x17f543(0x212)]))[_0x17f543(0x228)](({i:_0x535e08})=>_0x535e08);_0x283394[_0x17f543(0x207)](_0x5ebcd4,_0x283394[_0x17f543(0x204)]);const _0x1dfdd5=await _0x283394[_0x17f543(0x24f)](_0x46af81,_0x283394[_0x17f543(0x1d2)],_0x4c9212,{'defaultSelected':_0x443d34});if(_0x283394[_0x17f543(0x1e3)](0x0,_0x1dfdd5[_0x17f543(0x1bc)]))return _0x283394[_0x17f543(0x1b4)](_0x32db3f,_0x283394['bDPsY']),0x0;const _0x4c469b=_0x1dfdd5['map'](_0x253569=>_0x4c9212[_0x253569]);if(console[_0x17f543(0x230)](),!_0x2b5f59[_0x17f543(0x1e6)]){_0x5ebcd4(_0x283394[_0x17f543(0x1f1)]);for(const _0x3cc90e of _0x4c469b){if(_0x3cc90e[_0x17f543(0x202)]){const _0x3bbc1a=_0xcf590e[_0x17f543(0x226)][_0x3cc90e[_0x17f543(0x212)]]?.['version']||_0xcf590e[_0x17f543(0x226)][_0x3cc90e[_0x17f543(0x23a)]?.[_0x17f543(0x265)]]?.[_0x17f543(0x20b)];_0x283394[_0x17f543(0x264)](_0x14dad2,(_0x3cc90e[_0x17f543(0x23a)]?.['name']||_0x3cc90e[_0x17f543(0x212)])+_0x17f543(0x1ef)+(_0x3bbc1a?'(v'+_0x3bbc1a+')':''));continue;}if(!_0x3cc90e[_0x17f543(0x23a)]||!_0x3cc90e[_0x17f543(0x23a)]['installPackage']){_0x283394[_0x17f543(0x1de)](_0x3a2d60,_0x3cc90e['clientType']+'\x20无可自动安装的\x20npm\x20包,请手动安装后重跑(配置仍会写入)');continue;}_0x698c48(_0x17f543(0x208)+_0x3cc90e[_0x17f543(0x23a)][_0x17f543(0x27e)]+'(命令\x20'+_0x3cc90e[_0x17f543(0x23a)][_0x17f543(0x265)]+')');const _0x5413e2=await _0x283394[_0x17f543(0x256)](_0x2db027,_0x3cc90e[_0x17f543(0x23a)],{'dryRun':_0x2b5f59[_0x17f543(0x1e6)]});_0x5413e2['installed']?_0x283394[_0x17f543(0x23d)](_0x14dad2,_0x3cc90e[_0x17f543(0x23a)]['name']+'\x20安装成功'+(_0x5413e2[_0x17f543(0x20b)]?'(v'+_0x5413e2['version']+')':'')):_0x5413e2['skipped']&&_0x283394[_0x17f543(0x18c)]('user-declined',_0x5413e2[_0x17f543(0x250)])?_0x3a2d60('已跳过\x20'+_0x3cc90e['meta'][_0x17f543(0x27e)]+'\x20安装(配置仍会写入,但请手动安装后使用)'):_0x5413e2['skipped']?_0x283394[_0x17f543(0x188)](_0x698c48,'已跳过\x20'+_0x3cc90e['meta']['name']+_0x17f543(0x217)+_0x5413e2[_0x17f543(0x250)]+')'):_0x5e2d7e(_0x3cc90e[_0x17f543(0x23a)]['name']+_0x17f543(0x279)+(_0x5413e2[_0x17f543(0x20a)]||_0x283394[_0x17f543(0x199)])+_0x17f543(0x282));}console[_0x17f543(0x230)]();}const _0x3e1ab7=_0x283394[_0x17f543(0x1df)](_0x336686,_0x4bf03a[_0x17f543(0x22d)]||[]);let _0x62a04b='';if(_0x3e1ab7['length']>0x0){_0x283394['MydyO'](_0x5ebcd4,_0x283394['jcafQ']);let _0xf73fcf=null;if(_0x597548[_0x17f543(0x244)](_0x283394[_0x17f543(0x1f0)]))try{const _0x1e0980=await _0x505e25({'credential':_0x597548,'apiBase':_0x2325e7});_0x1e0980&&Array[_0x17f543(0x287)](_0x1e0980[_0x17f543(0x22d)])&&(_0xf73fcf=new Map(_0x1e0980[_0x17f543(0x22d)]['map'](_0x113ab7=>[_0x113ab7[_0x17f543(0x1c2)],!!_0x113ab7[_0x17f543(0x1b9)]])));}catch{_0x698c48(_0x283394[_0x17f543(0x1e5)]);}let _0x495b4b=_0x3e1ab7;if(_0xf73fcf){_0x495b4b=[..._0x3e1ab7[_0x17f543(0x192)](_0x4f6f18=>!0x1!==_0xf73fcf[_0x17f543(0x276)](_0x4f6f18['id'])),..._0x3e1ab7[_0x17f543(0x192)](_0xcefe8e=>!0x1===_0xf73fcf['get'](_0xcefe8e['id']))];const _0x14e4db=_0x495b4b[_0x17f543(0x192)](_0x32dc1c=>!0x1===_0xf73fcf['get'](_0x32dc1c['id']))['length'];_0x283394['rLMgJ'](_0x14e4db,0x0)&&_0x283394[_0x17f543(0x273)](_0x698c48,'⚠\x20'+_0x14e4db+_0x17f543(0x236));}const _0x2267d9=0xa,_0x3fd29c=_0x495b4b[_0x17f543(0x193)](0x0,_0x2267d9),_0x8212ae=_0x283394['THHvk'](_0x495b4b['length'],_0x2267d9),_0x41c7c9=_0x49263e=>_0xf73fcf?!0x1===_0xf73fcf[_0x17f543(0x276)](_0x49263e['id'])?'⚠\x20':'✓\x20':'',_0x5909a9=[..._0x3fd29c[_0x17f543(0x228)](_0x56e3bc=>({'label':''+_0x41c7c9(_0x56e3bc)+_0x56e3bc[_0x17f543(0x1c4)]+'\x20('+_0x56e3bc['id']+')'})),..._0x8212ae?[{'label':_0x4d25a8[_0x17f543(0x1e7)](_0x283394['VthcO'])}]:[]],_0x4f6c0f=await _0x283394[_0x17f543(0x270)](_0x1395c7,_0x17f543(0x27c),_0x5909a9,{'defaultIndex':0x0});if(_0x8212ae&&_0x283394[_0x17f543(0x1e3)](_0x4f6c0f,_0x3fd29c[_0x17f543(0x1bc)])?(_0x62a04b=(await _0x283394[_0x17f543(0x1de)](_0x1bda94,_0x283394[_0x17f543(0x254)]))[_0x17f543(0x289)](),_0x62a04b||(_0x62a04b=_0x3fd29c[0x0]['id'])):_0x62a04b=_0x3fd29c[_0x4f6c0f]['id'],_0x283394[_0x17f543(0x1df)](_0x14dad2,'已选默认模型:'+_0x62a04b),_0xf73fcf&&!0x1===_0xf73fcf[_0x17f543(0x276)](_0x62a04b)){const _0x47b238=_0x495b4b[_0x17f543(0x192)](_0x3b25cd=>!0x1!==_0xf73fcf['get'](_0x3b25cd['id']))['slice'](0x0,0x3)[_0x17f543(0x228)](_0x21dfe5=>_0x21dfe5['id']);_0x283394[_0x17f543(0x28a)](_0x3a2d60,'模型可用性探测:'+_0x62a04b+'\x20当前无可用账号'),_0x283394['doBKu'](_0x3a2d60,_0x283394['sFUBw']),_0x47b238[_0x17f543(0x1bc)]>0x0&&_0x283394[_0x17f543(0x1f9)](_0x3a2d60,'建议换用:'+_0x47b238[_0x17f543(0x18a)](_0x283394[_0x17f543(0x28d)])),_0x283394[_0x17f543(0x1e2)](_0x3a2d60,_0x17f543(0x21b));}}else _0x3a2d60(_0x283394['wOPTk']);console[_0x17f543(0x230)]();const _0x26d2fd=_0x4bf03a[_0x17f543(0x1d8)]||'',_0x4426b7=_0x4bf03a[_0x17f543(0x249)]||_0x26d2fd,_0x32a228={'apiKey':_0x4bf03a[_0x17f543(0x19f)]||'','baseUrl':_0x26d2fd,'apiBase':_0x26d2fd,'apiBaseBeta':_0x4426b7,'antigravityApiBase':_0x26d2fd+'/antigravity','antigravityApiBaseBeta':_0x4426b7+_0x17f543(0x283),'defaultModel':_0x62a04b};_0x5ebcd4(_0x283394['hmCMl']);const _0x39b9ec=[];let _0xa517b8=null;for(const _0x1aac8e of _0x4c469b){const _0x272ce1=_0x1aac8e[_0x17f543(0x214)][_0x17f543(0x27f)]||_0x1aac8e[_0x17f543(0x214)][_0x17f543(0x22c)]||_0x1aac8e[_0x17f543(0x23a)]?.['name']||_0x1aac8e['clientType'];_0x283394[_0x17f543(0x1f5)](_0x32db3f,_0x17f543(0x1ac)+_0x272ce1+_0x17f543(0x1ae));const _0x1440e8=_0x1aac8e[_0x17f543(0x214)][_0x17f543(0x220)]||[];for(const _0x125e2f of _0x1440e8){const _0xa87c5e=_0x125e2f[_0x17f543(0x1fb)]||'',_0x42ed3d=_0x283394[_0x17f543(0x1a9)](_0x283394[_0x17f543(0x27b)],_0xa87c5e)||_0x283394[_0x17f543(0x285)](_0x283394[_0x17f543(0x288)],_0xa87c5e),_0x26ab9d=_0x42ed3d?_0xa87c5e:_0x5ada4f(_0xa87c5e,{'isWindows':_0xcf590e['os']['isWindows']}),_0x77f75c=_0x31fc6a(_0x125e2f[_0x17f543(0x1d3)]||'',_0x32a228);if(_0x42ed3d){_0x283394[_0x17f543(0x232)](_0x32db3f,_0x283394['jPXBA']),_0x32db3f(_0x77f75c[_0x17f543(0x20c)]('\x0a')[_0x17f543(0x228)](_0x279434=>'\x20\x20\x20\x20'+_0x279434)[_0x17f543(0x18a)]('\x0a')),_0x39b9ec[_0x17f543(0x23e)]({'cli':_0x272ce1,'path':_0xa87c5e,'action':_0x17f543(0x1cf)});continue;}if(_0x283394[_0x17f543(0x19b)](_0x32db3f,_0x17f543(0x219)+_0x26ab9d),_0x2b5f59[_0x17f543(0x1e6)]){_0x3a2d60(_0x283394[_0x17f543(0x221)]);const _0x2275c9=_0x77f75c[_0x17f543(0x20c)]('\x0a'),_0x41c684=_0x2275c9[_0x17f543(0x193)](0x0,0x8)['join']('\x0a');_0x283394[_0x17f543(0x19b)](_0x32db3f,_0x283394['KPtCe']),_0x283394['doBKu'](_0x32db3f,_0x41c684[_0x17f543(0x20c)]('\x0a')[_0x17f543(0x228)](_0x4d30e5=>_0x17f543(0x231)+_0x4d30e5)[_0x17f543(0x18a)]('\x0a')),_0x2275c9['length']>0x8&&_0x283394[_0x17f543(0x1b3)](_0x32db3f,_0x17f543(0x25b)+_0x2275c9[_0x17f543(0x1bc)]+'\x20行)'),_0x39b9ec[_0x17f543(0x23e)]({'cli':_0x272ce1,'path':_0x26ab9d,'action':_0x283394[_0x17f543(0x292)]}),console[_0x17f543(0x230)]();continue;}let _0x27be4e=null;try{_0x27be4e=_0x167607(_0x26ab9d),_0x27be4e&&_0x283394['kbjFe'](_0x32db3f,_0x17f543(0x209)+_0x27be4e);}catch(_0x29b5e5){_0x283394['FooeG'](_0x5e2d7e,_0x17f543(0x1ce)+_0x29b5e5['message']+_0x17f543(0x1ee)),_0x39b9ec['push']({'cli':_0x272ce1,'path':_0x26ab9d,'action':_0x17f543(0x1c1),'error':_0x29b5e5[_0x17f543(0x24b)]});continue;}try{_0x2896fa(_0x26ab9d,_0x77f75c,{'isWindows':_0xcf590e['os'][_0x17f543(0x1f6)]}),_0x283394[_0x17f543(0x1b5)](_0x14dad2,_0x283394[_0x17f543(0x203)]),_0x39b9ec[_0x17f543(0x23e)]({'cli':_0x272ce1,'path':_0x26ab9d,'action':_0x283394[_0x17f543(0x1d1)],'backup':_0x27be4e});}catch(_0x6eb284){_0x283394['NRGfF'](_0x6eb284,_0x188d82)?(_0xa517b8||(_0xa517b8=_0x6eb284),_0x5e2d7e(_0x6eb284[_0x17f543(0x24b)]),_0x39b9ec[_0x17f543(0x23e)]({'cli':_0x272ce1,'path':_0x26ab9d,'action':_0x283394[_0x17f543(0x1d5)],'error':_0x6eb284[_0x17f543(0x24b)]})):(_0x5e2d7e(_0x17f543(0x1aa)+_0x6eb284[_0x17f543(0x24b)]),_0x39b9ec[_0x17f543(0x23e)]({'cli':_0x272ce1,'path':_0x26ab9d,'action':_0x283394[_0x17f543(0x229)],'error':_0x6eb284[_0x17f543(0x24b)]}));}}console[_0x17f543(0x230)]();}if(_0x436960(),!_0x2b5f59[_0x17f543(0x1e6)]&&_0x4bf03a['api_key']&&_0x4bf03a[_0x17f543(0x1d8)]){_0x283394[_0x17f543(0x19b)](_0x5ebcd4,_0x283394[_0x17f543(0x1fa)]),_0x283394['NBTMt'](_0x698c48,_0x283394[_0x17f543(0x263)]);const _0x550899=await _0x283394[_0x17f543(0x28a)](_0x56a247,{'apiKey':_0x4bf03a[_0x17f543(0x19f)],'baseUrl':_0x4bf03a[_0x17f543(0x1d8)]});_0x550899['ok']?_0x283394[_0x17f543(0x207)](_0x14dad2,_0x283394[_0x17f543(0x234)]):_0x283394[_0x17f543(0x1ea)](_0x3a2d60,_0x17f543(0x1fe)+(_0x550899[_0x17f543(0x20a)]||_0x17f543(0x261)+_0x550899[_0x17f543(0x258)])+_0x17f543(0x272)),console[_0x17f543(0x230)]();}_0x283394[_0x17f543(0x293)](_0x5ebcd4,_0x283394[_0x17f543(0x1ab)]);const _0x1202cf=_0x39b9ec[_0x17f543(0x192)](_0x206c42=>_0x17f543(0x284)===_0x206c42[_0x17f543(0x205)]),_0x439c91=_0x39b9ec[_0x17f543(0x192)](_0x25ffa1=>_0x17f543(0x266)===_0x25ffa1[_0x17f543(0x205)]||'permission-denied'===_0x25ffa1[_0x17f543(0x205)]||_0x17f543(0x1c1)===_0x25ffa1[_0x17f543(0x205)]),_0x42d3eb=_0x39b9ec[_0x17f543(0x192)](_0x19f88b=>_0x17f543(0x1cf)===_0x19f88b[_0x17f543(0x205)]),_0x39f722=_0x39b9ec[_0x17f543(0x192)](_0x579911=>_0x17f543(0x18f)===_0x579911[_0x17f543(0x205)]);_0x2b5f59[_0x17f543(0x1e6)]?_0x283394['FooeG'](_0x32db3f,_0x17f543(0x1c9)+_0x39f722['length']+_0x17f543(0x197)):_0x14dad2(_0x17f543(0x246)+_0x1202cf[_0x17f543(0x1bc)]+_0x17f543(0x28c)),_0x283394[_0x17f543(0x227)](_0x42d3eb[_0x17f543(0x1bc)],0x0)&&_0x698c48(_0x17f543(0x18d)+_0x42d3eb[_0x17f543(0x1bc)]+_0x17f543(0x218)),_0x439c91[_0x17f543(0x1bc)]>0x0&&(_0x283394[_0x17f543(0x281)](_0x3a2d60,_0x17f543(0x1d0)+_0x439c91[_0x17f543(0x1bc)]+_0x17f543(0x25a)),_0x439c91['forEach'](_0x5d8c19=>_0x3a2d60('\x20\x20-\x20'+_0x5d8c19[_0x17f543(0x280)]+'\x20'+_0x5d8c19[_0x17f543(0x1fb)])));const _0x22ec17=_0x39b9ec[_0x17f543(0x192)](_0x5c989b=>_0x5c989b['backup'])[_0x17f543(0x228)](_0x3f8484=>_0x3f8484[_0x17f543(0x248)]);if(_0x283394[_0x17f543(0x1a0)](_0x22ec17[_0x17f543(0x1bc)],0x0)&&(_0x283394[_0x17f543(0x1ea)](_0x698c48,_0x17f543(0x190)),_0x22ec17['forEach'](_0x115504=>_0x32db3f(_0x17f543(0x1a6)+_0x115504))),_0x4bf03a[_0x17f543(0x257)]?.['is_new']&&(console[_0x17f543(0x230)](),_0x283394[_0x17f543(0x188)](_0x698c48,_0x17f543(0x22b)+(_0x4bf03a['user'][_0x17f543(0x1f3)]||'')+'\x20已创建,请查收邮件获取初始密码,登录后尽快修改。')),!_0x2b5f59[_0x17f543(0x1e6)]){const _0x524d07=_0x4c469b[_0x17f543(0x228)](_0x58e8b4=>_0x58e8b4['meta'])[_0x17f543(0x192)](Boolean)[_0x17f543(0x228)](_0x1a4737=>({'name':_0x1a4737[_0x17f543(0x27e)],'startCmd':_0x1a4737[_0x17f543(0x1a3)],'usage':_0x1a4737[_0x17f543(0x1b7)]}));_0x283394[_0x17f543(0x25e)](_0x4de158,_0x524d07);}return _0xa517b8?(console[_0x17f543(0x230)](),_0x283394['wxRzw'](_0x5e2d7e,_0x283394[_0x17f543(0x1a4)]),_0x283394['FPIbb'](_0x5e2d7e,_0x283394[_0x17f543(0x24d)]),0x2):_0x283394[_0x17f543(0x227)](_0x439c91['length'],0x0)?0x3:0x0;}()['then'](_0x395193=>{const _0x393dc2=_0x3700ab,_0x24078b={'ZGLyI':function(_0x4805d2){return _0x4805d2();}};_0x24078b[_0x393dc2(0x195)](_0x436960),process[_0x393dc2(0x1bb)](_0x395193||0x0);})[_0x3700ab(0x27a)](_0x883d4e=>{const _0x5ec43b=_0x3700ab,_0x2ca743={'xxoSj':function(_0x1e2ccf,_0xe9b1de){return _0x1e2ccf(_0xe9b1de);}};_0x2ca743['xxoSj'](_0x5e2d7e,_0x5ec43b(0x1cc)+(_0x883d4e?.[_0x5ec43b(0x24b)]||_0x883d4e)),_0x883d4e?.[_0x5ec43b(0x201)]&&console[_0x5ec43b(0x20a)](_0x883d4e['stack']),_0x436960(),process[_0x5ec43b(0x1bb)](0x1);}));
2
+ function _0x3c38(){const _0x2b8afa=['macOS','statusCode','ScYKG','\x20异常:','skipped','message','未检测到\x20','JdhkM','备份失败:','permission-denied','vsBtX','gray','1705947cdEISU','\x20\x20目标:','--platform','UMuVT','env','catch','BOKMH','--api-base','\x20\x20[试运行]\x20不真实写入','redeem','ticcp','os_type','openai','startsWith','\x20\x20\x20\x20','join','WoEPS','iQbXx','jOwdf','group','noNdG','选择要激活的\x20CLI(绿色=已装,灰色=未装;默认只选\x20Codex\x20+\x20Claude\x20Code,其余按需勾选)','nHWHc','(默认不选)','(新用户已创建)','meta','zjvbW','\x20\x20HTTP\x20','eauDG','geaPU','xbdPG','你的\x20key\x20所属分组:','输入模型\x20ID(如\x20gpt-5.6-terra)','--help','api_key','需手动执行的\x20shell\x20命令:','detectBin','nZNTK','asslK','written','node','NODE_NO_WARNINGS','hwjKd','vJQxD','(跳过此文件避免无备份覆盖)','kDPLv','\x20项(见上方输出)','backup-failed','dsmAw','zWLiQ','服务端未返回适配当前系统的配置模板','display_name','API\x20端点:','(配置仍会写入,但请手动安装后使用)','VLOVK','aDiOG','15aWhRqU','\x20\x20\x20\x20...(共\x20','jUeya','已选默认模型:','EIyWG','gemini','1977132WQBUyZ','models','zfYob','error','凭据格式无法识别(应为\x20sk-\x20前缀的\x20API\x20Key\x20或兑换码)','anthropic','激活报告','clientType','all','请求\x20GET\x20/v1/models…','green','base_url','--dry-run','log','\x20\x20sudo\x20npx\x20-y\x20@2api-store/activate','\x20行)','installPackage','reason','qlYhe','CFAgb','Ajjox','user-declined','(命令\x20','SVWnc','apiBase','已检测到\x20CLI:','dpuIU','dry-run','HTTP\x20','选择默认模型','ZIsun','\x20\x20内容含非法控制字符(疑似服务端模板损坏),已跳过写入。请反馈客服并用\x20restore\x20子命令恢复备份','isArray','验证\x20API\x20Key','\x20·\x20node\x20v','FrWgt','18377270ZLzlCo','base_url_beta','startCmd','nUPnH','stack','子命令\x20','475BuKdqd','11vkHYJP','UlSeX','\x20\x20-\x20','──\x20','vDeyg','hbrlv','平台过滤:','MKvQc','选择绑定的分组','已跳过\x20','client_type','YQGjE','displayName','未选择分组','服务端未返回模型列表,{{defaultModel}}\x20将留空','uZyVF','API\x20Key\x20验证通过(GET\x20/v1/models\x20→\x20200)','GmxVF','EqKXB','get','可能是分组不匹配或账号临时不可用,使用时会报\x20404/429','help','argv','jUTbU','installed','vjhYn','handler','📧\x20新账号\x20','TpRov','split','wDUhJ','shell-only','is_new','mode','cQlUL','version','ugBMT','2548WlkPPx','fLFMJ','(ID\x20','Windows','windows','ZoBsH','KUofL','RlmXe','/antigravity','action','OIskp','uLAHC','备份位置:','3283959PRShlf','label','\x20/\x20','dim','GtYYX','email','\x20安装(','请求激活服务','name','zvdao','Zmlsj','已选分组:','TCQuq','\x20已安装','1463058GgwmCG','8RqVrjz','trim','\x20—\x20TokenShop\x20CLI\x20一键激活\x0a\x0a用法:\x0a\x20\x20npx\x20@2api-store/activate\x20[options]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20默认激活流程\x0a\x20\x20npx\x20@2api-store/activate\x20<subcommand>\x20[options]\x20\x20\x20运行子命令\x0a\x0a选项(默认激活流程):\x0a\x20\x20--dry-run,\x20-n\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20不真写配置/不真装\x20CLI,只展示将做什么\x0a\x20\x20--platform\x20<name>\x20\x20\x20\x20\x20\x20只激活指定平台(openai/anthropic/gemini/grok/antigravity)\x0a\x20\x20--api-base\x20<url>\x20\x20\x20\x20\x20\x20\x20覆盖\x20API\x20端点(默认\x20$ACTIVATE_API_BASE\x20或\x20','uKDZM','push','[试运行]\x20将写入\x20','dfxUo','Rsykg','hJyIv','files','\x20\x20[shell\x20命令,请手动执行]','configs','\x20平台,ID\x20','./package.json','empty','xwwvQ','replace','dryRun','mNeAg','失败\x20','string','(配置已写入,请手动检查)','wqGhk','forEach','【试运行模式\x20--dry-run】不会真写文件、不会真装\x20CLI','建议换用:','includes','pRWag','map','HkwUh','zqgIQ','\x20当前无可用账号','已写入','lTLxd','key','KBJqD','Zmnwc','DWNBI','ZseNL','\x20个模型当前无可用账号(标注\x20⚠,可能是分组不匹配或账号临时不可用)','control-char-skipped','user','config','alreadyInstalled','add','slice','has','兑换码','未查询到可用分组。请联系管理员开通分组后再激活。','EdYFf','platform','未知错误','BbkEx','需要\x20node\x20>=\x2018,当前\x20','ZRYKZ','新账号:','supported','gnPUu','CQjgr','bbBla','sk-','length','https://2api.store','未捕获错误:','XpyCV','邮箱格式不正确','path','选择默认模型(最新优先)','dtLqR','模式:','\x20安装失败:','test','环境:','已写入\x20','未检测到\x20codex/claude/gemini/grok/opencode(可在后续步骤按需自动安装)','ACTIVATE_API_BASE','ilLDC','ZVbWG','filter','yDniW','(跳过模型可用性探测:服务端暂不支持或网络不可达)','isWindows','\x20安装(配置仍会写入,但请手动安装后使用)','其他(手动输入模型\x20ID)','验证未通过:','KfkZN','model_context_windows','model','RMBhw','\x0a@2api-store/activate\x20v','unknown','exit','dxsdN','\x20无可自动安装的\x20npm\x20包,请手动安装后重跑(配置仍会写入)','Jiljp','3754644Bloxuc','\x20项:','isLinux','\x20──','备份并写入配置','grok','请输入\x20API\x20Key(sk-...)或兑换码','Linux'];_0x3c38=function(){return _0x2b8afa;};return _0x3c38();}const _0x40fb7b=_0x25f8;(function(_0x44e329,_0x39ac0f){const _0x38fda9=_0x25f8,_0x382c44=_0x44e329();while(!![]){try{const _0x541b5a=-parseInt(_0x38fda9(0x1ab))/0x1*(parseInt(_0x38fda9(0x1d1))/0x2)+parseInt(_0x38fda9(0x260))/0x3+-parseInt(_0x38fda9(0x24c))/0x4+parseInt(_0x38fda9(0x298))/0x5*(-parseInt(_0x38fda9(0x29e))/0x6)+-parseInt(_0x38fda9(0x1de))/0x7*(-parseInt(_0x38fda9(0x1ed))/0x8)+parseInt(_0x38fda9(0x1ec))/0x9+-parseInt(_0x38fda9(0x1a5))/0xa*(-parseInt(_0x38fda9(0x1ac))/0xb);if(_0x541b5a===_0x39ac0f)break;else _0x382c44['push'](_0x382c44['shift']());}catch(_0x4a62e8){_0x382c44['push'](_0x382c44['shift']());}}}(_0x3c38,0x7b762),(process['removeAllListeners']('warning'),process[_0x40fb7b(0x264)][_0x40fb7b(0x289)]='1'));import{detectAll as _0x16e00b}from'./lib/detect.mjs';import{cliActivate as _0xa0d729,listGroups as _0x4d4977,verifyApiKey as _0x5abe8d,probeModels as _0x22325f}from'./lib/api.mjs';import{renderContent as _0x568df3,applyModelContextWindow as _0x132839,expandPath as _0xb5bd7c,listModels as _0x2d2d71}from'./lib/render.mjs';import{backupFile as _0x329168}from'./lib/backup.mjs';import{writeFileWithPermission as _0xb6055f,PermissionDeniedError as _0x242e91}from'./lib/write.mjs';function _0x25f8(_0x2e587d,_0x597ceb){_0x2e587d=_0x2e587d-0x196;const _0x3c3895=_0x3c38();let _0x25f821=_0x3c3895[_0x2e587d];return _0x25f821;}import{ask as _0x3c0799,askSecret as _0x5cc6cc,multiSelect as _0x304379,select as _0x19d1fd,confirm as _0x527e86,closePrompt as _0x5a7697}from'./lib/prompt.mjs';import{banner as _0x237a37,ok as _0x4328bb,fail as _0x2ba1da,warn as _0x358e74,info as _0x32dc18,step as _0x42b6d3,guide as _0x44570f,plain as _0x3d9fc7,chalk as _0x286ada}from'./lib/ui.mjs';import{getCliMeta as _0x4eeaef,isDefaultSelected as _0x5e3005}from'./lib/platforms.mjs';import{ensureInstalled as _0x39e0d2}from'./lib/install.mjs';import{SUBCOMMANDS as _0xa64ee5,SUBCOMMAND_NAMES as _0x339fc5,SUB_HELP as _0x4ed719}from'./lib/cmds.mjs';import{createRequire as _0x2af7fd}from'node:module';const S=_0x2af7fd(import.meta.url)(_0x40fb7b(0x1fa))[_0x40fb7b(0x1cf)],L=_0x40fb7b(0x22b);(async function(){const _0x3d5586=_0x40fb7b,_0x1aecba={'UlSeX':function(_0x3c295c,_0x3702f1){return _0x3c295c<_0x3702f1;},'ilLDC':function(_0x132023,_0x23856c){return _0x132023===_0x23856c;},'ZRYKZ':_0x3d5586(0x2aa),'nZNTK':function(_0x6ca04a,_0x5e5cfb){return _0x6ca04a===_0x5e5cfb;},'cQlUL':_0x3d5586(0x281),'aDiOG':function(_0x512185,_0x5c45af){return _0x512185===_0x5c45af;},'eauDG':function(_0x4715ea,_0x9fefe2){return _0x4715ea===_0x9fefe2;},'iEjxa':'--version','NiAFR':function(_0x24c693,_0x421b66){return _0x24c693===_0x421b66;},'zvdao':function(_0xd61363,_0x5c24db){return _0xd61363==_0x5c24db;},'zqgIQ':_0x3d5586(0x201),'RMBhw':_0x3d5586(0x26c),'QiKTM':'claude','RlmXe':_0x3d5586(0x2a3),'dxsdN':_0x3d5586(0x251),'VLOVK':function(_0x28f8ed,_0x58ba36){return _0x28f8ed(_0x58ba36);},'JdhkM':function(_0x25e2c3){return _0x25e2c3();},'xwwvQ':_0x3d5586(0x254),'xbdPG':_0x3d5586(0x253),'vJQxD':_0x3d5586(0x1d4),'SVWnc':function(_0x1a7dcc,_0x1bf337){return _0x1a7dcc(_0x1bf337);},'KBJqD':function(_0x50eb70,_0x3d462b){return _0x50eb70>_0x3d462b;},'ZoBsH':function(_0x4d2e5e,_0x418622){return _0x4d2e5e(_0x418622);},'noNdG':_0x3d5586(0x237),'EIyWG':_0x3d5586(0x205),'fLFMJ':function(_0x57b06c,_0x375928){return _0x57b06c(_0x375928);},'wqGhk':_0x3d5586(0x252),'nqwVM':'未输入凭据','dfxUo':_0x3d5586(0x20f),'GtYYX':_0x3d5586(0x269),'CFAgb':_0x3d5586(0x247),'bHKxj':function(_0x3cf092,_0x365ada){return _0x3cf092===_0x365ada;},'iQbXx':function(_0x5d3699,_0x2d2e5f){return _0x5d3699(_0x2d2e5f);},'HkwUh':_0x3d5586(0x2a2),'FrWgt':function(_0x4472d9,_0x16e529){return _0x4472d9===_0x16e529;},'Ajjox':'获取可用分组','KUofL':_0x3d5586(0x21d),'ZIsun':_0x3d5586(0x1b4),'UJukM':_0x3d5586(0x1b9),'dpuIU':function(_0x4acf13,_0x4f86d8){return _0x4acf13(_0x4f86d8);},'MjBEN':_0x3d5586(0x1e5),'Ibckc':_0x3d5586(0x278),'ScYKG':function(_0x4e4766,_0x536231){return _0x4e4766(_0x536231);},'jOwdf':function(_0x24d3f8,_0x963ed4){return _0x24d3f8(_0x963ed4);},'EqKXB':_0x3d5586(0x292),'nHWHc':function(_0xa5d951,_0x2dee24){return _0xa5d951(_0x2dee24);},'jUTbU':'选择\x20CLI','jUeya':function(_0x41ae1a,_0x52abf6,_0x6b6907,_0x2aa862){return _0x41ae1a(_0x52abf6,_0x6b6907,_0x2aa862);},'KfkZN':function(_0x20637a,_0x595c70){return _0x20637a(_0x595c70);},'hbrlv':'检查\x20CLI\x20安装状态','Dshec':function(_0x4fe7dd,_0x420752){return _0x4fe7dd(_0x420752);},'dsmAw':function(_0x2d716f,_0x2dadb4,_0x152cf2){return _0x2d716f(_0x2dadb4,_0x152cf2);},'uZyVF':function(_0x2b0ea5,_0xbe17bb){return _0x2b0ea5===_0xbe17bb;},'Jiljp':_0x3d5586(0x196),'DWNBI':function(_0x45c970,_0x5435e4){return _0x45c970(_0x5435e4);},'dqOIJ':_0x3d5586(0x220),'uLAHC':function(_0x2fa159,_0x56091){return _0x2fa159(_0x56091);},'wDUhJ':_0x3d5586(0x229),'ugBMT':function(_0x57370a,_0xf1bf76){return _0x57370a(_0xf1bf76);},'ZqvPQ':_0x3d5586(0x23d),'zWLiQ':function(_0x458e13,_0x4eb4d5){return _0x458e13>_0x4eb4d5;},'XpyCV':_0x3d5586(0x240),'hwjKd':_0x3d5586(0x19e),'TCQuq':function(_0x79dcf1,_0x37c75d){return _0x79dcf1(_0x37c75d);},'zjvbW':function(_0x1adaac,_0x448ad1){return _0x1adaac(_0x448ad1);},'Zmnwc':function(_0x222fc2,_0x195bbd){return _0x222fc2(_0x195bbd);},'dtLqR':_0x3d5586(0x1c0),'bJwZH':function(_0x433a10,_0x1d146f){return _0x433a10>_0x1d146f;},'tZzCT':_0x3d5586(0x1e0),'mNeAg':function(_0x54f9a9,_0x1fd304){return _0x54f9a9(_0x1fd304);},'vsBtX':_0x3d5586(0x250),'lTLxd':function(_0x2a51aa,_0x1eccc4){return _0x2a51aa(_0x1eccc4);},'GmxVF':'Terminal','rwsdH':function(_0x3adb27,_0x2cb923,_0xe3db39){return _0x3adb27(_0x2cb923,_0xe3db39);},'Rsykg':function(_0x2b52cc,_0x5e3d9a){return _0x2b52cc(_0x5e3d9a);},'UMuVT':_0x3d5586(0x215),'vDeyg':_0x3d5586(0x1f7),'qlYhe':_0x3d5586(0x1cb),'hJyIv':function(_0x581e5e,_0xe83939){return _0x581e5e(_0xe83939);},'EdYFf':_0x3d5586(0x268),'bbBla':function(_0x593b4e,_0x450c14){return _0x593b4e(_0x450c14);},'kDPLv':function(_0xc9c58,_0x26ab57){return _0xc9c58(_0x26ab57);},'CcfJz':_0x3d5586(0x19c),'mveqH':function(_0x32808e,_0x5c3656){return _0x32808e(_0x5c3656);},'jvnhF':'backup-failed','TpRov':function(_0x54486c,_0x1c2ed8){return _0x54486c(_0x1c2ed8);},'STbjy':_0x3d5586(0x20d),'uKDZM':_0x3d5586(0x287),'CQjgr':function(_0x18830e,_0x4ce3d2){return _0x18830e instanceof _0x4ce3d2;},'ZseNL':_0x3d5586(0x25d),'BbkEx':function(_0x51dba2,_0x3faf95){return _0x51dba2(_0x3faf95);},'ticcp':'failed','pRWag':function(_0x5dc93c,_0x16a8d1){return _0x5dc93c(_0x16a8d1);},'BOKMH':_0x3d5586(0x1a2),'MKvQc':function(_0x435996,_0x17199d){return _0x435996(_0x17199d);},'ZVbWG':function(_0x2aec79,_0x1b97be){return _0x2aec79(_0x1b97be);},'asslK':_0x3d5586(0x1bc),'OIskp':function(_0xa867a3,_0xc9f717){return _0xa867a3(_0xc9f717);},'qVjIh':function(_0x101425,_0x5c8ddc){return _0x101425(_0x5c8ddc);},'QVLeT':function(_0x2775db,_0x13494a){return _0x2775db>_0x13494a;},'zfYob':function(_0x3fa9c1,_0x100bf0){return _0x3fa9c1(_0x100bf0);},'WoEPS':function(_0xf86850,_0x1e5bf8){return _0xf86850>_0x1e5bf8;},'SnlyD':function(_0x24e17c,_0x334544){return _0x24e17c(_0x334544);},'vjhYn':function(_0x10e644,_0x2a2c73){return _0x10e644(_0x2a2c73);},'gnPUu':function(_0x23767b,_0x188918){return _0x23767b(_0x188918);},'yDniW':function(_0xe39858,_0x2869d0){return _0xe39858(_0x2869d0);},'geaPU':_0x3d5586(0x2ac),'EigVl':function(_0x2c350e,_0x65de3){return _0x2c350e>_0x65de3;}},_0x18fb55=process[_0x3d5586(0x1c2)][0x2];if(_0x18fb55&&!_0x18fb55[_0x3d5586(0x26d)]('-')&&_0x339fc5[_0x3d5586(0x21b)](_0x18fb55)){const _0x10bda3=process[_0x3d5586(0x1c2)][_0x3d5586(0x21a)](0x3),_0x503706=_0xa64ee5[_0x18fb55];try{return await _0x503706[_0x3d5586(0x1c6)](_0x10bda3)||0x0;}catch(_0x34eeca){return _0x1aecba[_0x3d5586(0x296)](_0x2ba1da,_0x3d5586(0x1aa)+_0x18fb55+_0x3d5586(0x257)+(_0x34eeca?.[_0x3d5586(0x259)]||_0x34eeca)),_0x34eeca?.['stack']&&console[_0x3d5586(0x2a1)](_0x34eeca['stack']),0x1;}}const _0x29894b=function(_0x4d7d14){const _0x10763d=_0x3d5586,_0x41b245={'dryRun':!0x1,'platform':null,'_':[]};for(let _0x226082=0x0;_0x1aecba[_0x10763d(0x1ad)](_0x226082,_0x4d7d14[_0x10763d(0x22a)]);_0x226082++){const _0x259a8c=_0x4d7d14[_0x226082];if(_0x1aecba['ilLDC'](_0x1aecba[_0x10763d(0x223)],_0x259a8c)||_0x1aecba[_0x10763d(0x285)]('-n',_0x259a8c))_0x41b245['dryRun']=!0x0;else{if(_0x1aecba['ilLDC'](_0x10763d(0x262),_0x259a8c)||'-p'===_0x259a8c)_0x41b245[_0x10763d(0x21f)]=_0x4d7d14[++_0x226082];else{if(_0x10763d(0x267)===_0x259a8c)_0x41b245['apiBase']=_0x4d7d14[++_0x226082];else{if(_0x1aecba[_0x10763d(0x285)](_0x1aecba[_0x10763d(0x1ce)],_0x259a8c)||_0x1aecba[_0x10763d(0x297)]('-h',_0x259a8c))_0x41b245[_0x10763d(0x1c1)]=!0x0;else{if(_0x1aecba[_0x10763d(0x27c)](_0x1aecba['iEjxa'],_0x259a8c)||_0x1aecba['NiAFR']('-v',_0x259a8c))_0x41b245[_0x10763d(0x1cf)]=!0x0;else{if(_0x259a8c['startsWith']('--')&&_0x259a8c['includes']('=')){const [_0x266514,_0x3ba1e5]=_0x259a8c[_0x10763d(0x21a)](0x2)[_0x10763d(0x1c9)](/=(.*)/,0x2);_0x41b245[_0x266514]=_0x3ba1e5;}else _0x259a8c[_0x10763d(0x26d)]('--')?_0x41b245[_0x259a8c[_0x10763d(0x1fd)](/^--/,'')]=_0x4d7d14[++_0x226082]:_0x41b245['_'][_0x10763d(0x1f1)](_0x259a8c);}}}}}}return _0x41b245;}(process[_0x3d5586(0x1c2)][_0x3d5586(0x21a)](0x2));if(_0x29894b[_0x3d5586(0x1c1)])return console[_0x3d5586(0x2ab)]((_0x3d5586(0x246)+S+_0x3d5586(0x1ef)+L+')\x0a\x20\x20-h,\x20--help\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20显示帮助\x0a\x20\x20-v,\x20--version\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20显示版本\x0a\x0a'+_0x4ed719+'\x0a\x0a环境变量:\x0a\x20\x20ACTIVATE_API_BASE\x20\x20\x20\x20\x20\x20覆盖\x20API\x20端点(同\x20--api-base)\x0a\x0a示例:\x0a\x20\x20npx\x20@2api-store/activate\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\x20\x20\x20\x20\x20#\x20默认激活\x0a\x20\x20npx\x20@2api-store/activate\x20--dry-run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20试运行\x0a\x20\x20npx\x20@2api-store/activate\x20--platform\x20openai\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20只激活\x20openai\x0a\x20\x20npx\x20@2api-store/activate\x20restore\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20从备份恢复\x0a\x20\x20npx\x20@2api-store/activate\x20reset\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恢复官方默认\x0a\x20\x20npx\x20@2api-store/activate\x20refresh-groups\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20查看可用分组\x0a\x20\x20ACTIVATE_API_BASE=http://127.0.0.1:5566\x20npx\x20@2api-store/activate\x0a\x0a退出码:\x0a\x20\x200\x20\x20成功\x0a\x20\x201\x20\x20输入错误\x20/\x20网络失败\x20/\x20致命错误\x0a\x20\x202\x20\x20部分文件权限不足(请按提示用\x20sudo\x20/\x20管理员\x20PowerShell\x20重跑)\x0a\x20\x203\x20\x20其他写入失败\x0a')[_0x3d5586(0x1ee)]()),0x0;if(_0x29894b[_0x3d5586(0x1cf)])return console[_0x3d5586(0x2ab)](S),0x0;_0x1aecba[_0x3d5586(0x25b)](_0x237a37);const _0x4ff170=_0x1aecba[_0x3d5586(0x25b)](_0x16e00b),_0x256a0f=_0x4ff170['os']['isMac']?_0x1aecba[_0x3d5586(0x1fc)]:_0x4ff170['os'][_0x3d5586(0x24e)]?_0x1aecba[_0x3d5586(0x27e)]:_0x4ff170['os'][_0x3d5586(0x23e)]?_0x1aecba[_0x3d5586(0x28b)]:_0x4ff170['os'][_0x3d5586(0x21f)];if(_0x1aecba[_0x3d5586(0x296)](_0x32dc18,_0x3d5586(0x235)+_0x256a0f+_0x3d5586(0x1a3)+_0x4ff170[_0x3d5586(0x288)][_0x3d5586(0x1cf)]),!_0x4ff170['node'][_0x3d5586(0x225)])return _0x1aecba['SVWnc'](_0x2ba1da,_0x3d5586(0x222)+_0x4ff170['node'][_0x3d5586(0x1cf)]),0x1;const _0x3c7f3b=Object['keys'](_0x4ff170[_0x3d5586(0x1c4)]),_0x52ea36=_0x3c7f3b[_0x3d5586(0x209)](_0x40c36c=>{const _0x177dc2=_0x3d5586,_0x501495=_0x4ff170[_0x177dc2(0x1c4)][_0x40c36c]?.[_0x177dc2(0x1cf)];return _0x501495?_0x40c36c+'@'+_0x501495:_0x40c36c;});_0x1aecba[_0x3d5586(0x210)](_0x3c7f3b[_0x3d5586(0x22a)],0x0)?_0x4328bb(_0x3d5586(0x19a)+_0x52ea36['join'](',\x20')):_0x1aecba[_0x3d5586(0x1d6)](_0x32dc18,_0x1aecba[_0x3d5586(0x274)]);const _0x362a67=_0x29894b[_0x3d5586(0x199)]||process[_0x3d5586(0x264)][_0x3d5586(0x238)]||L;_0x1aecba[_0x3d5586(0x296)](_0x32dc18,_0x3d5586(0x294)+_0x362a67),_0x29894b[_0x3d5586(0x1fe)]&&_0x1aecba[_0x3d5586(0x1d6)](_0x358e74,_0x1aecba[_0x3d5586(0x29c)]),_0x29894b[_0x3d5586(0x21f)]&&_0x1aecba[_0x3d5586(0x198)](_0x32dc18,_0x3d5586(0x1b2)+_0x29894b[_0x3d5586(0x21f)]),console[_0x3d5586(0x2ab)]();const _0x14d3da=(await _0x1aecba[_0x3d5586(0x1d2)](_0x5cc6cc,_0x1aecba[_0x3d5586(0x203)]))['trim']();if(!_0x14d3da)return _0x2ba1da(_0x1aecba['nqwVM']),0x1;const _0x1a8e47=(_0x21ad6d=_0x14d3da)?_0x21ad6d[_0x3d5586(0x26d)](_0x3d5586(0x229))?_0x1aecba[_0x3d5586(0x1f3)]:/^[a-zA-Z0-9]{16,64}$/[_0x3d5586(0x234)](_0x21ad6d)?_0x1aecba[_0x3d5586(0x1e2)]:_0x1aecba[_0x3d5586(0x2b1)]:_0x3d5586(0x1fb);var _0x21ad6d;if(_0x1aecba['bHKxj'](_0x1aecba['CFAgb'],_0x1a8e47))return _0x1aecba[_0x3d5586(0x271)](_0x2ba1da,_0x1aecba[_0x3d5586(0x20a)]),0x1;_0x1aecba['VLOVK'](_0x32dc18,'识别为:'+(_0x1aecba['FrWgt']('key',_0x1a8e47)?'API\x20Key':_0x3d5586(0x21c))+'模式');let _0x3370be,_0x251860='',_0x5d7e36=null;if(_0x1aecba['eauDG'](_0x3d5586(0x269),_0x1a8e47)){if(_0x251860=(await _0x3c0799('请输入邮箱(用于兑换码绑定\x20/\x20新账号创建)'))[_0x3d5586(0x1ee)](),!_0x251860||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/[_0x3d5586(0x234)](_0x251860))return _0x1aecba[_0x3d5586(0x1d6)](_0x2ba1da,_0x3d5586(0x22e)),0x1;_0x1aecba[_0x3d5586(0x198)](_0x42b6d3,_0x1aecba[_0x3d5586(0x2b2)]);const _0x5c59ab=await _0x1aecba['iQbXx'](_0x4d4977,{'apiBase':_0x362a67});if(_0x1aecba[_0x3d5586(0x239)](0x0,_0x5c59ab[_0x3d5586(0x22a)]))return _0x1aecba[_0x3d5586(0x296)](_0x2ba1da,_0x1aecba[_0x3d5586(0x1d7)]),0x1;const _0x174b91=_0x5c59ab[_0x3d5586(0x209)](_0x35838b=>({'label':''+_0x35838b[_0x3d5586(0x1e6)],'value':_0x35838b['id']})),_0x4f67ef=await _0x19d1fd(_0x1aecba[_0x3d5586(0x19f)],_0x174b91,{'defaultIndex':0x0});if(_0x5d7e36=_0x5c59ab[_0x4f67ef]?.['id'],!_0x5d7e36)return _0x2ba1da(_0x1aecba['UJukM']),0x1;_0x1aecba['ZoBsH'](_0x4328bb,_0x3d5586(0x1e9)+_0x5c59ab[_0x4f67ef][_0x3d5586(0x1e6)]+_0x3d5586(0x1d3)+_0x5d7e36+')'),console['log']();}_0x1aecba[_0x3d5586(0x19b)](_0x42b6d3,_0x1aecba['MjBEN']);try{_0x3370be=await _0xa0d729({'credential':_0x14d3da,'email':_0x251860,'platform':_0x29894b[_0x3d5586(0x21f)],'groupId':_0x5d7e36,'apiBase':_0x362a67});}catch(_0x1534df){return _0x1aecba[_0x3d5586(0x1d2)](_0x2ba1da,'激活失败:'+_0x1534df[_0x3d5586(0x259)]),_0x1534df['statusCode']&&_0x1aecba[_0x3d5586(0x198)](_0x2ba1da,_0x3d5586(0x27b)+_0x1534df[_0x3d5586(0x255)]),0x1;}_0x3370be[_0x3d5586(0x273)]?.[_0x3d5586(0x1e6)]&&_0x32dc18(_0x3d5586(0x27f)+_0x3370be[_0x3d5586(0x273)]['name']+'('+(_0x3370be[_0x3d5586(0x273)]['platform']||'未知')+_0x3d5586(0x1f9)+_0x3370be[_0x3d5586(0x273)]['id']+')'),_0x1aecba[_0x3d5586(0x1d6)](_0x4328bb,_0x3d5586(0x232)+_0x3370be[_0x3d5586(0x1cd)]+(_0x3370be[_0x3d5586(0x216)]?.[_0x3d5586(0x1cc)]?_0x1aecba['Ibckc']:'')),_0x3370be['user']?.[_0x3d5586(0x1cc)]&&_0x3370be['user']?.[_0x3d5586(0x1e3)]&&(_0x1aecba[_0x3d5586(0x256)](_0x32dc18,_0x3d5586(0x224)+_0x3370be['user'][_0x3d5586(0x1e3)]),_0x3370be[_0x3d5586(0x216)][_0x3d5586(0x259)]&&_0x32dc18(_0x3370be[_0x3d5586(0x216)][_0x3d5586(0x259)])),console[_0x3d5586(0x2ab)]();const _0x2d3a24=function(_0x2dc16a){const _0x112e4c=_0x3d5586,_0x8e84c4=new Set();for(const _0x3496bc of _0x2dc16a||[]){const _0x12b4c2=(_0x1aecba[_0x112e4c(0x1e7)](_0x1aecba[_0x112e4c(0x20b)],typeof _0x3496bc)?_0x3496bc:_0x3496bc?.['id']||'')['toLowerCase']();/^(gpt|o1|o3|codex|glm|minimax|deepseek)/[_0x112e4c(0x234)](_0x12b4c2)?_0x8e84c4[_0x112e4c(0x219)](_0x1aecba[_0x112e4c(0x245)]):_0x12b4c2['startsWith'](_0x1aecba['QiKTM'])?_0x8e84c4[_0x112e4c(0x219)](_0x1aecba[_0x112e4c(0x1d8)]):_0x12b4c2['startsWith'](_0x112e4c(0x29d))?_0x8e84c4[_0x112e4c(0x219)](_0x112e4c(0x29d)):_0x12b4c2['startsWith'](_0x1aecba[_0x112e4c(0x249)])&&_0x8e84c4[_0x112e4c(0x219)](_0x1aecba[_0x112e4c(0x249)]);}return[..._0x8e84c4];}(_0x3370be['models']||[]);_0x29894b[_0x3d5586(0x21f)]&&!_0x2d3a24[_0x3d5586(0x207)](_0x29894b[_0x3d5586(0x21f)])&&_0x2d3a24[_0x3d5586(0x1f1)](_0x29894b[_0x3d5586(0x21f)]);const _0x17017e=(_0x3370be[_0x3d5586(0x1f8)]||[])['filter'](_0x326ad2=>!!_0x326ad2&&(!(_0x2d3a24[_0x3d5586(0x22a)]>0x0&&!_0x2d3a24[_0x3d5586(0x207)](_0x326ad2['platform']))&&((!_0x29894b['platform']||_0x326ad2['platform']===_0x29894b[_0x3d5586(0x21f)])&&(_0x4ff170['os'][_0x3d5586(0x23e)]?_0x3d5586(0x1d5)===_0x326ad2[_0x3d5586(0x26b)]||_0x3d5586(0x2a6)===_0x326ad2[_0x3d5586(0x26b)]:'unix'===_0x326ad2[_0x3d5586(0x26b)]||_0x3d5586(0x2a6)===_0x326ad2[_0x3d5586(0x26b)]))));if(0x0===_0x17017e[_0x3d5586(0x22a)])return _0x1aecba[_0x3d5586(0x272)](_0x2ba1da,_0x1aecba[_0x3d5586(0x1be)]),0x1;const _0xec73c6=new Set(),_0x529f7c=[];for(const _0x1f6c71 of _0x17017e){const _0x493c7c=_0x1f6c71['platform']+'/'+_0x1f6c71[_0x3d5586(0x1b6)];if(_0xec73c6[_0x3d5586(0x21b)](_0x493c7c))continue;_0xec73c6[_0x3d5586(0x219)](_0x493c7c);const _0x294d39=_0x4eeaef(_0x1f6c71[_0x3d5586(0x1b6)]),_0x4d1b33=_0x1f6c71[_0x3d5586(0x293)]||_0x1f6c71[_0x3d5586(0x1b8)]||_0x294d39?.['name']||_0x1f6c71[_0x3d5586(0x21f)]+'\x20'+_0x1f6c71['client_type'],_0x52565a=_0x4ff170[_0x3d5586(0x1c4)][_0x1f6c71[_0x3d5586(0x1b6)]]?.['path']||_0x294d39&&_0x4ff170[_0x3d5586(0x1c4)][_0x294d39[_0x3d5586(0x284)]]?.['path'],_0x463ab1=_0x1aecba[_0x3d5586(0x276)](_0x5e3005,_0x1f6c71[_0x3d5586(0x1b6)])?'':_0x3d5586(0x277),_0x46ad7d=_0x52565a?_0x286ada[_0x3d5586(0x2a8)](_0x4d1b33):_0x286ada[_0x3d5586(0x25f)](_0x4d1b33+'\x20(未装)');_0x529f7c['push']({'label':_0x46ad7d+'\x20'+_0x286ada[_0x3d5586(0x1e1)]('['+_0x1f6c71[_0x3d5586(0x21f)]+'/'+_0x1f6c71['client_type']+']')+_0x463ab1,'config':_0x1f6c71,'clientType':_0x1f6c71[_0x3d5586(0x1b6)],'meta':_0x294d39,'alreadyInstalled':!!_0x52565a});}const _0x502108=_0x529f7c[_0x3d5586(0x209)]((_0x45b493,_0x190a4f)=>({'item':_0x45b493,'i':_0x190a4f}))[_0x3d5586(0x23b)](({item:_0x27cea8})=>_0x5e3005(_0x27cea8['clientType']))[_0x3d5586(0x209)](({i:_0x37af10})=>_0x37af10);_0x1aecba[_0x3d5586(0x1d2)](_0x42b6d3,_0x1aecba[_0x3d5586(0x1c3)]);const _0x369419=await _0x1aecba[_0x3d5586(0x29a)](_0x304379,_0x3d5586(0x275),_0x529f7c,{'defaultSelected':_0x502108});if(_0x1aecba[_0x3d5586(0x1a4)](0x0,_0x369419[_0x3d5586(0x22a)]))return _0x3d9fc7('未选择任何\x20CLI,退出。'),0x0;const _0x5687a6=_0x369419[_0x3d5586(0x209)](_0x133073=>_0x529f7c[_0x133073]);if(console[_0x3d5586(0x2ab)](),!_0x29894b[_0x3d5586(0x1fe)]){_0x1aecba[_0x3d5586(0x242)](_0x42b6d3,_0x1aecba[_0x3d5586(0x1b1)]);for(const _0x202b06 of _0x5687a6){if(_0x202b06[_0x3d5586(0x218)]){const _0x1d2f7d=_0x4ff170[_0x3d5586(0x1c4)][_0x202b06[_0x3d5586(0x2a5)]]?.[_0x3d5586(0x1cf)]||_0x4ff170[_0x3d5586(0x1c4)][_0x202b06[_0x3d5586(0x279)]?.[_0x3d5586(0x284)]]?.[_0x3d5586(0x1cf)];_0x4328bb((_0x202b06[_0x3d5586(0x279)]?.[_0x3d5586(0x1e6)]||_0x202b06[_0x3d5586(0x2a5)])+_0x3d5586(0x1eb)+(_0x1d2f7d?'(v'+_0x1d2f7d+')':''));continue;}if(!_0x202b06[_0x3d5586(0x279)]||!_0x202b06[_0x3d5586(0x279)][_0x3d5586(0x2ae)]){_0x1aecba['Dshec'](_0x358e74,_0x202b06[_0x3d5586(0x2a5)]+_0x3d5586(0x24a));continue;}_0x1aecba[_0x3d5586(0x1d2)](_0x32dc18,_0x3d5586(0x25a)+_0x202b06[_0x3d5586(0x279)][_0x3d5586(0x1e6)]+_0x3d5586(0x197)+_0x202b06[_0x3d5586(0x279)][_0x3d5586(0x284)]+')');const _0x3d6052=await _0x1aecba[_0x3d5586(0x290)](_0x39e0d2,_0x202b06[_0x3d5586(0x279)],{'dryRun':_0x29894b[_0x3d5586(0x1fe)]});_0x3d6052[_0x3d5586(0x1c4)]?_0x1aecba[_0x3d5586(0x19b)](_0x4328bb,_0x202b06[_0x3d5586(0x279)][_0x3d5586(0x1e6)]+'\x20安装成功'+(_0x3d6052['version']?'(v'+_0x3d6052[_0x3d5586(0x1cf)]+')':'')):_0x3d6052[_0x3d5586(0x258)]&&_0x1aecba[_0x3d5586(0x1bb)](_0x1aecba[_0x3d5586(0x24b)],_0x3d6052[_0x3d5586(0x2af)])?_0x1aecba[_0x3d5586(0x212)](_0x358e74,'已跳过\x20'+_0x202b06['meta'][_0x3d5586(0x1e6)]+_0x3d5586(0x23f)):_0x3d6052[_0x3d5586(0x258)]?_0x32dc18(_0x3d5586(0x1b5)+_0x202b06[_0x3d5586(0x279)][_0x3d5586(0x1e6)]+_0x3d5586(0x1e4)+_0x3d6052[_0x3d5586(0x2af)]+')'):_0x2ba1da(_0x202b06[_0x3d5586(0x279)]['name']+_0x3d5586(0x233)+(_0x3d6052['error']||_0x1aecba['dqOIJ'])+_0x3d5586(0x295));}console[_0x3d5586(0x2ab)]();}const _0x170c10=_0x1aecba[_0x3d5586(0x1dc)](_0x2d2d71,_0x3370be['models']||[]);let _0x2e1f6c='';if(_0x170c10[_0x3d5586(0x22a)]>0x0){_0x42b6d3(_0x3d5586(0x230));let _0x1d7077=null;if(_0x14d3da[_0x3d5586(0x26d)](_0x1aecba[_0x3d5586(0x1ca)]))try{const _0x5ddd71=await _0x22325f({'credential':_0x14d3da,'apiBase':_0x362a67});_0x5ddd71&&Array[_0x3d5586(0x1a1)](_0x5ddd71[_0x3d5586(0x29f)])&&(_0x1d7077=new Map(_0x5ddd71[_0x3d5586(0x29f)][_0x3d5586(0x209)](_0x6cc0fc=>[_0x6cc0fc[_0x3d5586(0x244)],!!_0x6cc0fc['available']])));}catch{_0x1aecba[_0x3d5586(0x1d0)](_0x32dc18,_0x1aecba['ZqvPQ']);}let _0x4744f9=_0x170c10;if(_0x1d7077){_0x4744f9=[..._0x170c10['filter'](_0x4cb698=>!0x1!==_0x1d7077['get'](_0x4cb698['id'])),..._0x170c10[_0x3d5586(0x23b)](_0xcbdd46=>!0x1===_0x1d7077[_0x3d5586(0x1bf)](_0xcbdd46['id']))];const _0x13fce0=_0x4744f9[_0x3d5586(0x23b)](_0x3c62a0=>!0x1===_0x1d7077[_0x3d5586(0x1bf)](_0x3c62a0['id']))[_0x3d5586(0x22a)];_0x1aecba[_0x3d5586(0x291)](_0x13fce0,0x0)&&_0x1aecba['dpuIU'](_0x32dc18,'⚠\x20'+_0x13fce0+_0x3d5586(0x214));}const _0x276631=0xa,_0x1dea91=_0x4744f9[_0x3d5586(0x21a)](0x0,_0x276631),_0x331b1c=_0x4744f9[_0x3d5586(0x22a)]>_0x276631,_0x45ddc9=_0x32be30=>_0x1d7077?!0x1===_0x1d7077[_0x3d5586(0x1bf)](_0x32be30['id'])?'⚠\x20':'✓\x20':'',_0x56b03c=[..._0x1dea91[_0x3d5586(0x209)](_0x2aed63=>({'label':''+_0x45ddc9(_0x2aed63)+_0x2aed63[_0x3d5586(0x1df)]+'\x20('+_0x2aed63['id']+')'})),..._0x331b1c?[{'label':_0x286ada['dim'](_0x1aecba[_0x3d5586(0x22d)])}]:[]],_0x1bcbe7=await _0x1aecba[_0x3d5586(0x29a)](_0x19d1fd,_0x1aecba[_0x3d5586(0x28a)],_0x56b03c,{'defaultIndex':0x0});if(_0x331b1c&&_0x1bcbe7===_0x1dea91[_0x3d5586(0x22a)]?(_0x2e1f6c=(await _0x1aecba[_0x3d5586(0x198)](_0x3c0799,_0x3d5586(0x280)))[_0x3d5586(0x1ee)](),_0x2e1f6c||(_0x2e1f6c=_0x1dea91[0x0]['id'])):_0x2e1f6c=_0x1dea91[_0x1bcbe7]['id'],_0x1aecba[_0x3d5586(0x1ea)](_0x4328bb,_0x3d5586(0x29b)+_0x2e1f6c),_0x1d7077&&!0x1===_0x1d7077[_0x3d5586(0x1bf)](_0x2e1f6c)){const _0x292d6a=_0x4744f9['filter'](_0x425332=>!0x1!==_0x1d7077[_0x3d5586(0x1bf)](_0x425332['id']))['slice'](0x0,0x3)[_0x3d5586(0x209)](_0xf1ff28=>_0xf1ff28['id']);_0x1aecba[_0x3d5586(0x27a)](_0x358e74,'模型可用性探测:'+_0x2e1f6c+_0x3d5586(0x20c)),_0x1aecba[_0x3d5586(0x211)](_0x358e74,_0x1aecba[_0x3d5586(0x231)]),_0x1aecba['bJwZH'](_0x292d6a[_0x3d5586(0x22a)],0x0)&&_0x1aecba[_0x3d5586(0x27a)](_0x358e74,_0x3d5586(0x206)+_0x292d6a[_0x3d5586(0x26f)](_0x1aecba['tZzCT'])),_0x1aecba[_0x3d5586(0x1ea)](_0x358e74,'(仍会写入配置;如需更换请重跑激活选择其他模型)');}}else _0x358e74(_0x3d5586(0x1ba));console[_0x3d5586(0x2ab)]();const _0x2b9e55=_0x3370be[_0x3d5586(0x2a9)]||'',_0x2f0a55=_0x3370be[_0x3d5586(0x1a6)]||_0x2b9e55,_0x386662={'apiKey':_0x3370be[_0x3d5586(0x282)]||'','baseUrl':_0x2b9e55,'apiBase':_0x2b9e55,'apiBaseBeta':_0x2f0a55,'antigravityApiBase':_0x2b9e55+_0x3d5586(0x1d9),'antigravityApiBaseBeta':_0x2f0a55+'/antigravity','defaultModel':_0x2e1f6c};_0x1aecba[_0x3d5586(0x1ff)](_0x42b6d3,_0x1aecba[_0x3d5586(0x25e)]);const _0x30cd43=[];let _0x267e6a=null;for(const _0x2547b1 of _0x5687a6){const _0x3f038=_0x2547b1[_0x3d5586(0x217)][_0x3d5586(0x293)]||_0x2547b1[_0x3d5586(0x217)][_0x3d5586(0x1b8)]||_0x2547b1[_0x3d5586(0x279)]?.[_0x3d5586(0x1e6)]||_0x2547b1[_0x3d5586(0x2a5)];_0x1aecba[_0x3d5586(0x20e)](_0x3d9fc7,_0x3d5586(0x1af)+_0x3f038+_0x3d5586(0x24f));const _0x498c43=_0x2547b1[_0x3d5586(0x217)][_0x3d5586(0x1f6)]||[];for(const _0x53919a of _0x498c43){const _0x28de26=_0x53919a[_0x3d5586(0x22f)]||'',_0x334a11=_0x1aecba[_0x3d5586(0x1a4)](_0x1aecba[_0x3d5586(0x1bd)],_0x28de26)||_0x1aecba[_0x3d5586(0x285)]('PowerShell',_0x28de26),_0x5adce8=_0x334a11?_0x28de26:_0x1aecba['rwsdH'](_0xb5bd7c,_0x28de26,{'isWindows':_0x4ff170['os'][_0x3d5586(0x23e)]}),_0x4a635f=_0x132839(_0x1aecba[_0x3d5586(0x290)](_0x568df3,_0x53919a['content']||'',_0x386662),_0x3370be[_0x3d5586(0x243)],_0x2e1f6c);if(/[\u0000-\u0008\u000B\u000C\u000E-\u001F]/[_0x3d5586(0x234)](_0x4a635f)){_0x1aecba[_0x3d5586(0x1f4)](_0x2ba1da,_0x3d5586(0x1a0)),_0x30cd43['push']({'cli':_0x3f038,'path':_0x5adce8,'action':_0x1aecba[_0x3d5586(0x263)]});continue;}if(_0x334a11){_0x3d9fc7(_0x1aecba[_0x3d5586(0x1b0)]),_0x3d9fc7(_0x4a635f['split']('\x0a')['map'](_0x4f8964=>_0x3d5586(0x26e)+_0x4f8964)['join']('\x0a')),_0x30cd43[_0x3d5586(0x1f1)]({'cli':_0x3f038,'path':_0x28de26,'action':_0x1aecba[_0x3d5586(0x2b0)]});continue;}if(_0x1aecba[_0x3d5586(0x1f5)](_0x3d9fc7,_0x3d5586(0x261)+_0x5adce8),_0x29894b['dryRun']){_0x358e74(_0x1aecba[_0x3d5586(0x21e)]);const _0x1cfcf8=_0x4a635f[_0x3d5586(0x1c9)]('\x0a'),_0x5723c4=_0x1cfcf8[_0x3d5586(0x21a)](0x0,0x8)['join']('\x0a');_0x1aecba[_0x3d5586(0x228)](_0x3d9fc7,'\x20\x20内容预览:'),_0x1aecba[_0x3d5586(0x28d)](_0x3d9fc7,_0x5723c4[_0x3d5586(0x1c9)]('\x0a')[_0x3d5586(0x209)](_0x47ba61=>_0x3d5586(0x26e)+_0x47ba61)[_0x3d5586(0x26f)]('\x0a')),_0x1cfcf8[_0x3d5586(0x22a)]>0x8&&_0x1aecba[_0x3d5586(0x256)](_0x3d9fc7,_0x3d5586(0x299)+_0x1cfcf8[_0x3d5586(0x22a)]+_0x3d5586(0x2ad)),_0x30cd43['push']({'cli':_0x3f038,'path':_0x5adce8,'action':_0x1aecba['CcfJz']}),console[_0x3d5586(0x2ab)]();continue;}let _0x2eeaf5=null;try{_0x2eeaf5=_0x329168(_0x5adce8),_0x2eeaf5&&_0x1aecba['mveqH'](_0x3d9fc7,'\x20\x20备份:'+_0x2eeaf5);}catch(_0x41da9d){_0x1aecba['kDPLv'](_0x2ba1da,_0x3d5586(0x25c)+_0x41da9d['message']+_0x3d5586(0x28c)),_0x30cd43['push']({'cli':_0x3f038,'path':_0x5adce8,'action':_0x1aecba['jvnhF'],'error':_0x41da9d[_0x3d5586(0x259)]});continue;}try{_0x1aecba[_0x3d5586(0x29a)](_0xb6055f,_0x5adce8,_0x4a635f,{'isWindows':_0x4ff170['os'][_0x3d5586(0x23e)]}),_0x1aecba[_0x3d5586(0x1c8)](_0x4328bb,_0x1aecba['STbjy']),_0x30cd43[_0x3d5586(0x1f1)]({'cli':_0x3f038,'path':_0x5adce8,'action':_0x1aecba[_0x3d5586(0x1f0)],'backup':_0x2eeaf5});}catch(_0x4c377a){_0x1aecba[_0x3d5586(0x227)](_0x4c377a,_0x242e91)?(_0x267e6a||(_0x267e6a=_0x4c377a),_0x1aecba[_0x3d5586(0x19b)](_0x2ba1da,_0x4c377a[_0x3d5586(0x259)]),_0x30cd43['push']({'cli':_0x3f038,'path':_0x5adce8,'action':_0x1aecba[_0x3d5586(0x213)],'error':_0x4c377a[_0x3d5586(0x259)]})):(_0x1aecba[_0x3d5586(0x221)](_0x2ba1da,'写入失败:'+_0x4c377a[_0x3d5586(0x259)]),_0x30cd43[_0x3d5586(0x1f1)]({'cli':_0x3f038,'path':_0x5adce8,'action':_0x1aecba[_0x3d5586(0x26a)],'error':_0x4c377a[_0x3d5586(0x259)]}));}}console['log']();}if(_0x1aecba['JdhkM'](_0x5a7697),!_0x29894b['dryRun']&&_0x3370be[_0x3d5586(0x282)]&&_0x3370be[_0x3d5586(0x2a9)]){_0x1aecba[_0x3d5586(0x208)](_0x42b6d3,_0x1aecba[_0x3d5586(0x266)]),_0x1aecba[_0x3d5586(0x1b3)](_0x32dc18,_0x3d5586(0x2a7));const _0x31012d=await _0x5abe8d({'apiKey':_0x3370be[_0x3d5586(0x282)],'baseUrl':_0x3370be[_0x3d5586(0x2a9)]});_0x31012d['ok']?_0x1aecba[_0x3d5586(0x23a)](_0x4328bb,_0x1aecba[_0x3d5586(0x286)]):_0x1aecba[_0x3d5586(0x211)](_0x358e74,_0x3d5586(0x241)+(_0x31012d['error']||_0x3d5586(0x19d)+_0x31012d[_0x3d5586(0x255)])+_0x3d5586(0x202)),console[_0x3d5586(0x2ab)]();}_0x42b6d3(_0x3d5586(0x2a4));const _0x7ab292=_0x30cd43['filter'](_0x42baa9=>_0x3d5586(0x287)===_0x42baa9[_0x3d5586(0x1da)]),_0x5cc88c=_0x30cd43['filter'](_0xe6e0fa=>'failed'===_0xe6e0fa[_0x3d5586(0x1da)]||_0x3d5586(0x25d)===_0xe6e0fa[_0x3d5586(0x1da)]||_0x3d5586(0x28f)===_0xe6e0fa[_0x3d5586(0x1da)]),_0x22fc61=_0x30cd43[_0x3d5586(0x23b)](_0x822709=>_0x3d5586(0x1cb)===_0x822709[_0x3d5586(0x1da)]),_0x2cb3b2=_0x30cd43[_0x3d5586(0x23b)](_0x1b45ca=>_0x3d5586(0x19c)===_0x1b45ca[_0x3d5586(0x1da)]);_0x29894b['dryRun']?_0x1aecba[_0x3d5586(0x1db)](_0x3d9fc7,_0x3d5586(0x1f2)+_0x2cb3b2['length']+'\x20个文件(未真实写入)'):_0x1aecba['qVjIh'](_0x4328bb,_0x3d5586(0x236)+_0x7ab292[_0x3d5586(0x22a)]+'\x20个文件'),_0x1aecba['QVLeT'](_0x22fc61[_0x3d5586(0x22a)],0x0)&&_0x1aecba[_0x3d5586(0x2a0)](_0x32dc18,_0x3d5586(0x283)+_0x22fc61[_0x3d5586(0x22a)]+_0x3d5586(0x28e)),_0x1aecba[_0x3d5586(0x270)](_0x5cc88c[_0x3d5586(0x22a)],0x0)&&(_0x1aecba['SnlyD'](_0x358e74,_0x3d5586(0x200)+_0x5cc88c[_0x3d5586(0x22a)]+_0x3d5586(0x24d)),_0x5cc88c[_0x3d5586(0x204)](_0x5e3ff0=>_0x358e74(_0x3d5586(0x1ae)+_0x5e3ff0['cli']+'\x20'+_0x5e3ff0[_0x3d5586(0x22f)])));const _0x2d432c=_0x30cd43[_0x3d5586(0x23b)](_0x2215b5=>_0x2215b5['backup'])[_0x3d5586(0x209)](_0x12c705=>_0x12c705['backup']);if(_0x1aecba[_0x3d5586(0x270)](_0x2d432c['length'],0x0)&&(_0x1aecba[_0x3d5586(0x198)](_0x32dc18,_0x3d5586(0x1dd)),_0x2d432c[_0x3d5586(0x204)](_0x135089=>_0x3d9fc7(_0x3d5586(0x1ae)+_0x135089))),_0x3370be['user']?.['is_new']&&(console[_0x3d5586(0x2ab)](),_0x1aecba[_0x3d5586(0x1c5)](_0x32dc18,_0x3d5586(0x1c7)+(_0x3370be[_0x3d5586(0x216)][_0x3d5586(0x1e3)]||'')+'\x20已创建,请查收邮件获取初始密码,登录后尽快修改。')),!_0x29894b[_0x3d5586(0x1fe)]){const _0xfd98ac=_0x5687a6[_0x3d5586(0x209)](_0x37703b=>_0x37703b[_0x3d5586(0x279)])['filter'](Boolean)[_0x3d5586(0x209)](_0x5577c6=>({'name':_0x5577c6['name'],'startCmd':_0x5577c6[_0x3d5586(0x1a7)],'usage':_0x5577c6['usage']}));_0x1aecba[_0x3d5586(0x226)](_0x44570f,_0xfd98ac);}return _0x267e6a?(console[_0x3d5586(0x2ab)](),_0x2ba1da('部分文件权限不足,请按提示用\x20sudo\x20/\x20管理员\x20PowerShell\x20重跑:'),_0x1aecba[_0x3d5586(0x23c)](_0x2ba1da,_0x1aecba[_0x3d5586(0x27d)]),0x2):_0x1aecba['EigVl'](_0x5cc88c['length'],0x0)?0x3:0x0;}()['then'](_0x21465c=>{const _0x115408=_0x40fb7b,_0x3fe642={'nUPnH':function(_0x62709b){return _0x62709b();},'YQGjE':function(_0x38bcce,_0x3f6c85){return _0x38bcce||_0x3f6c85;}};_0x3fe642[_0x115408(0x1a8)](_0x5a7697),process[_0x115408(0x248)](_0x3fe642[_0x115408(0x1b7)](_0x21465c,0x0));})[_0x40fb7b(0x265)](_0x5ad4b4=>{const _0x1c5337=_0x40fb7b,_0x1e3d2d={'TiPZS':function(_0x5f0060,_0xf868e6){return _0x5f0060(_0xf868e6);},'Zmlsj':function(_0x5e59aa){return _0x5e59aa();}};_0x1e3d2d['TiPZS'](_0x2ba1da,_0x1c5337(0x22c)+(_0x5ad4b4?.[_0x1c5337(0x259)]||_0x5ad4b4)),_0x5ad4b4?.[_0x1c5337(0x1a9)]&&console[_0x1c5337(0x2a1)](_0x5ad4b4[_0x1c5337(0x1a9)]),_0x1e3d2d[_0x1c5337(0x1e8)](_0x5a7697),process[_0x1c5337(0x248)](0x1);}));
package/dist/lib/api.mjs CHANGED
@@ -1 +1 @@
1
- const _0x5e1e03=_0x498b;(function(_0x38692d,_0xff5dd7){const _0x21f384=_0x498b,_0x38d1d0=_0x38692d();while(!![]){try{const _0x3b04e9=parseInt(_0x21f384(0xf6))/0x1*(-parseInt(_0x21f384(0x12f))/0x2)+parseInt(_0x21f384(0x114))/0x3*(-parseInt(_0x21f384(0x107))/0x4)+-parseInt(_0x21f384(0x132))/0x5*(-parseInt(_0x21f384(0x127))/0x6)+parseInt(_0x21f384(0x104))/0x7+parseInt(_0x21f384(0xd2))/0x8*(-parseInt(_0x21f384(0x135))/0x9)+parseInt(_0x21f384(0x129))/0xa+parseInt(_0x21f384(0xef))/0xb;if(_0x3b04e9===_0xff5dd7)break;else _0x38d1d0['push'](_0x38d1d0['shift']());}catch(_0x94d33c){_0x38d1d0['push'](_0x38d1d0['shift']());}}}(_0x2604,0x2c86f));function _0x2604(){const _0x8814df=['hxorJ','GET','153321iloBcn','TRXug','parse','4QlqAaP','write','body','无效的\x20baseUrl:','POST','bDJJw','xrkWa','push','LWtij','xshWW','jdfLT','uOQJT','xwNRh','519069TxhYpD','smAuL','JgvUj','响应非\x20JSON','cihTp','UdOTI','aCzpi','isArray','GKndi','toString','statusCode','end','bGWXM','PODbC','data','/api/v1/cli/probe-models','Coxsw','kKOss','YEpqF','16644XBEezU','destroy','1346470rvEpJo','slice','XkAaL','error','FtvLp','WWpGz','91406PjyhbL','sqBvN','响应非\x20JSON(HTTP\x20','380tXUoRw','fWwGg','QmKze','931005tqFdEu','PoW\x20challenge\x20获取失败:','ZRNNj','seDKY','/api/v1/cli/activate','HTTP\x20','验证请求超时(15s)','TNmXh','niVqm','24ERuCxM','WtZYE','s)—\x20','FDePY','sEnlY','tDhOC','fAQvd','ZGGzt','sdDzr','object','请求超时(30s)—\x20','message','XKtUo','application/json','LxBah','protocol','QUDjM','raw','dneIk','LJNgZ','timeout','UacfF','pCKNx','/v1/models','iLYQL','byteLength','tvXon','concat','request','4790236bKINTw','stringify','rDTIN','SqYlC','utf8','xvfYs','dLDwF','3jfLUba','@2api-store/activate/0.1.0','dhWll','ZFqwq','/api/v1/cli/groups','lMrwV','无效的\x20apiBase:','href','wMxnY','https:','uQDmV','iZQGu'];_0x2604=function(){return _0x8814df;};return _0x2604();}import _0x456539 from'node:https';import _0x384e51 from'node:http';import{getDeviceId as _0x403d4c}from'./device.mjs';import{getChallenge as _0x4ec1f2,solvePoW as _0x29609d}from'./pow.mjs';function _0x498b(_0x5d983b,_0x440d88){_0x5d983b=_0x5d983b-0xd0;const _0x2604e9=_0x2604();let _0x498b6f=_0x2604e9[_0x5d983b];return _0x498b6f;}const n=_0x5e1e03(0xf7),a=0x7530;function i(_0x3add83,_0x5b29fb={}){return{'User-Agent':n,'X-Device-Id':_0x3add83,..._0x5b29fb};}export async function cliActivate({credential:_0x117f52,email:_0x35a533,platform:_0x1cca2f,groupId:_0x55f3bb,apiBase:_0x4d299f}){const _0x26a073=_0x5e1e03,_0x1b42e5={'LxBah':'utf8','PODbC':function(_0x5a3c6a,_0x482476){return _0x5a3c6a(_0x482476);},'seDKY':function(_0x3e58d9,_0x122241){return _0x3e58d9>=_0x122241;},'fWwGg':_0x26a073(0xdb),'cihTp':_0x26a073(0x11f),'uOQJT':_0x26a073(0x139),'smAuL':function(_0x589032,_0x590993){return _0x589032(_0x590993);},'sljYN':function(_0x4e6231,_0x2eb24d){return _0x4e6231===_0x2eb24d;},'doSIw':_0x26a073(0x10b),'jdfLT':_0x26a073(0xdf),'sEnlY':_0x26a073(0xe6),'XDgBA':function(_0x20972b){return _0x20972b();},'tDhOC':function(_0x360580,_0xf820fd,_0x3c3f27){return _0x360580(_0xf820fd,_0x3c3f27);}},_0x48d132=_0x1b42e5['XDgBA'](_0x403d4c);let _0x1dc718,_0x358c12;try{const {challenge:_0xc6a53,difficulty:_0x1628f4}=await _0x4ec1f2({'apiBase':_0x4d299f,'deviceId':_0x48d132});_0x1dc718=_0xc6a53,_0x358c12=_0x1b42e5[_0x26a073(0xd7)](_0x29609d,_0xc6a53,_0x1628f4);}catch(_0x2919cb){throw new Error(_0x26a073(0x136)+_0x2919cb[_0x26a073(0xdd)]);}return new Promise((_0x3574c3,_0x3b2b4a)=>{const _0x18b956=_0x26a073;let _0x5e38ee;try{_0x5e38ee=new URL(_0x1b42e5[_0x18b956(0x112)],_0x4d299f);}catch(_0x4a50b6){return void _0x1b42e5[_0x18b956(0x115)](_0x3b2b4a,new Error(_0x18b956(0xfc)+_0x4d299f+'('+_0x4a50b6[_0x18b956(0xdd)]+')'));}const _0x5819ea=_0x1b42e5['sljYN'](_0x18b956(0xff),_0x5e38ee[_0x18b956(0xe1)])?_0x456539:_0x384e51,_0x35adff={'credential':_0x117f52,..._0x35a533?{'email':_0x35a533}:{},..._0x1cca2f?{'platform':_0x1cca2f}:{},..._0x55f3bb?{'group_id':_0x55f3bb}:{}},_0x6a4a4e=JSON[_0x18b956(0xf0)](_0x35adff),_0x59e906=_0x5819ea['request'](_0x5e38ee,{'method':_0x1b42e5['doSIw'],'headers':i(_0x48d132,{'Content-Type':_0x1b42e5[_0x18b956(0x111)],'Content-Length':Buffer[_0x18b956(0xeb)](_0x6a4a4e),'X-PoW-Challenge':_0x1dc718,'X-PoW-Nonce':_0x358c12}),'timeout':a},_0x1487b8=>{const _0xe3cf11=_0x18b956,_0x2e5e86={'sqBvN':_0x1b42e5[_0xe3cf11(0xe0)],'WtZYE':function(_0x440422,_0x4d2f35){return _0x1b42e5['PODbC'](_0x440422,_0x4d2f35);},'iLYQL':function(_0x47d381,_0x9c4dc3){const _0x4998e8=_0xe3cf11;return _0x1b42e5[_0x4998e8(0x138)](_0x47d381,_0x9c4dc3);},'UdOTI':function(_0x1bd19d,_0x228833){return _0x1bd19d<_0x228833;},'FDePY':function(_0x7dfec9,_0xb8d1){const _0x51e477=_0xe3cf11;return _0x1b42e5[_0x51e477(0x121)](_0x7dfec9,_0xb8d1);},'TRXug':_0x1b42e5[_0xe3cf11(0x133)],'wHEpJ':function(_0x100c6c,_0x1fe4bc){return _0x100c6c(_0x1fe4bc);}},_0x97cb0=[];_0x1487b8['on'](_0xe3cf11(0x122),_0x501cdb=>_0x97cb0['push'](_0x501cdb)),_0x1487b8['on'](_0x1b42e5[_0xe3cf11(0x118)],()=>{const _0x476ae7=_0xe3cf11,_0x4d9b5e=Buffer['concat'](_0x97cb0)[_0x476ae7(0x11d)](_0x2e5e86[_0x476ae7(0x130)]);let _0x4db5c4;try{_0x4db5c4=_0x4d9b5e?JSON[_0x476ae7(0x106)](_0x4d9b5e):{};}catch{const _0x603290=new Error(_0x476ae7(0x131)+_0x1487b8[_0x476ae7(0x11e)]+'):'+_0x4d9b5e[_0x476ae7(0x12a)](0x0,0xc8));return _0x603290[_0x476ae7(0x11e)]=_0x1487b8[_0x476ae7(0x11e)],_0x603290[_0x476ae7(0xe3)]=_0x4d9b5e,void _0x2e5e86[_0x476ae7(0xd3)](_0x3b2b4a,_0x603290);}if(_0x2e5e86[_0x476ae7(0xea)](_0x1487b8[_0x476ae7(0x11e)],0xc8)&&_0x2e5e86[_0x476ae7(0x119)](_0x1487b8['statusCode'],0x12c))_0x2e5e86[_0x476ae7(0xd5)](_0x3574c3,_0x4db5c4);else{const _0x63019c=_0x4db5c4?.[_0x476ae7(0x12c)],_0x4e5f4b=(_0x63019c&&_0x2e5e86[_0x476ae7(0x105)]==typeof _0x63019c?_0x63019c[_0x476ae7(0xdd)]:_0x63019c)||_0x4db5c4?.[_0x476ae7(0xdd)]||_0x476ae7(0x13a)+_0x1487b8[_0x476ae7(0x11e)],_0x42f98d=new Error(_0x4e5f4b);_0x42f98d['statusCode']=_0x1487b8[_0x476ae7(0x11e)],_0x42f98d[_0x476ae7(0x109)]=_0x4db5c4,_0x2e5e86['wHEpJ'](_0x3b2b4a,_0x42f98d);}});});_0x59e906['on'](_0x1b42e5[_0x18b956(0xd6)],()=>{const _0x659338=_0x18b956;_0x59e906[_0x659338(0x128)](new Error('请求超时(30s)—\x20'+_0x5e38ee[_0x659338(0xfd)]));}),_0x59e906['on'](_0x18b956(0x12c),_0x3b2b4a),_0x59e906[_0x18b956(0x108)](_0x6a4a4e),_0x59e906[_0x18b956(0x11f)]();});}export function probeModels({credential:_0x2b38be,apiBase:_0x1a7a32,timeoutMs:_0x5dcbf1=0x2710}){const _0x1b673c=_0x5e1e03,_0x16fc3f={'LJNgZ':function(_0x189a32,_0x5427c4){return _0x189a32<_0x5427c4;},'ZRNNj':function(_0x19c0f8,_0x47164c){return _0x19c0f8>=_0x47164c;},'zixiA':_0x1b673c(0x122),'XKtUo':'end','uQDmV':_0x1b673c(0x123),'YEpqF':function(_0x2210c4,_0x31097f){return _0x2210c4===_0x31097f;},'uNnvi':'https:','JgvUj':_0x1b673c(0x10b),'WWpGz':function(_0x3f053f,_0x2788e7,_0x588878){return _0x3f053f(_0x2788e7,_0x588878);},'rDTIN':_0x1b673c(0xdf),'QUDjM':'error','efvoe':function(_0x2f10ba){return _0x2f10ba();}},_0x291c3f=_0x16fc3f['efvoe'](_0x403d4c);return new Promise((_0x483e0a,_0x4c9e84)=>{const _0x4a39f9=_0x1b673c,_0x24421f={'XNDGH':'utf8','XkAaL':function(_0x255c85,_0x568275){const _0x5b93ec=_0x498b;return _0x16fc3f[_0x5b93ec(0xe5)](_0x255c85,_0x568275);},'bDJJw':function(_0x17dd00,_0x2ce162){const _0x27bea7=_0x498b;return _0x16fc3f[_0x27bea7(0x137)](_0x17dd00,_0x2ce162);},'lMrwV':function(_0x13b545,_0x2267a8){return _0x13b545(_0x2267a8);},'kHZeF':_0x4a39f9(0x117),'LWtij':_0x16fc3f['zixiA'],'aCzpi':_0x16fc3f[_0x4a39f9(0xde)]};let _0x354702;try{_0x354702=new URL(_0x16fc3f[_0x4a39f9(0x100)],_0x1a7a32);}catch(_0x2c5b95){return void _0x4c9e84(new Error(_0x4a39f9(0xfc)+_0x1a7a32+'('+_0x2c5b95[_0x4a39f9(0xdd)]+')'));}const _0x30fc02=_0x16fc3f[_0x4a39f9(0x126)](_0x16fc3f['uNnvi'],_0x354702['protocol'])?_0x456539:_0x384e51,_0x31e860=JSON[_0x4a39f9(0xf0)]({'credential':_0x2b38be}),_0x35211d=_0x30fc02[_0x4a39f9(0xee)](_0x354702,{'method':_0x16fc3f[_0x4a39f9(0x116)],'headers':_0x16fc3f[_0x4a39f9(0x12e)](i,_0x291c3f,{'Content-Type':_0x16fc3f[_0x4a39f9(0xf1)],'Content-Length':Buffer['byteLength'](_0x31e860)}),'timeout':_0x5dcbf1},_0x37ef91=>{const _0x3a2caf=_0x4a39f9,_0x4823bf={'xwNRh':_0x24421f['XNDGH'],'EyfKY':function(_0x48f4e7,_0x50b34c){const _0x419a6d=_0x498b;return _0x24421f[_0x419a6d(0x12b)](_0x48f4e7,_0x50b34c);},'pjRlk':function(_0x3b89e9,_0x2608a8){const _0xba2c7b=_0x498b;return _0x24421f[_0xba2c7b(0x10c)](_0x3b89e9,_0x2608a8);},'QmKze':function(_0x3a1267,_0x842eea){return _0x3a1267(_0x842eea);},'sdDzr':function(_0x339453,_0x567737){const _0x148762=_0x498b;return _0x24421f[_0x148762(0xfb)](_0x339453,_0x567737);},'fAQvd':function(_0x33fe7b,_0x12b9b5){return _0x33fe7b(_0x12b9b5);},'dhWll':_0x24421f['kHZeF']},_0x2ad5f3=[];_0x37ef91['on'](_0x24421f[_0x3a2caf(0x10f)],_0x645698=>_0x2ad5f3[_0x3a2caf(0x10e)](_0x645698)),_0x37ef91['on'](_0x24421f[_0x3a2caf(0x11a)],()=>{const _0x361b7b=_0x3a2caf,_0x50da9c=Buffer['concat'](_0x2ad5f3)[_0x361b7b(0x11d)](_0x4823bf[_0x361b7b(0x113)]);if(_0x4823bf['EyfKY'](_0x37ef91['statusCode'],0xc8)||_0x4823bf['pjRlk'](_0x37ef91['statusCode'],0x12c)){const _0x59bdf3=new Error(_0x361b7b(0x13a)+_0x37ef91[_0x361b7b(0x11e)]);return _0x59bdf3['statusCode']=_0x37ef91['statusCode'],void _0x4823bf[_0x361b7b(0x134)](_0x4c9e84,_0x59bdf3);}try{_0x4823bf[_0x361b7b(0xda)](_0x483e0a,_0x50da9c?JSON[_0x361b7b(0x106)](_0x50da9c):{});}catch{_0x4823bf[_0x361b7b(0xd8)](_0x4c9e84,new Error(_0x4823bf[_0x361b7b(0xf8)]));}});});_0x35211d['on'](_0x4a39f9(0xe6),()=>{const _0x586093=_0x4a39f9;_0x35211d['destroy'](new Error('请求超时('+_0x5dcbf1/0x3e8+_0x586093(0xd4)+_0x354702[_0x586093(0xfd)]));}),_0x35211d['on'](_0x16fc3f[_0x4a39f9(0xe2)],_0x4c9e84),_0x35211d['write'](_0x31e860),_0x35211d['end']();});}export function listGroups({apiBase:_0x3195e9}){const _0x38ea9b=_0x5e1e03,_0x49a520={'wMxnY':function(_0x5c6375,_0x365675){return _0x5c6375(_0x365675);},'EsfEs':function(_0x37228c,_0x5a8803){return _0x37228c>=_0x5a8803;},'ZGGzt':function(_0x2cdda3,_0x39311b){return _0x2cdda3<_0x39311b;},'puMWh':'data','xshWW':_0x38ea9b(0xff),'iZQGu':function(_0x1a2520){return _0x1a2520();},'GKndi':_0x38ea9b(0xe6),'TNmXh':_0x38ea9b(0x12c)};return new Promise((_0x440d42,_0x5bbf9c)=>{const _0x499c22=_0x38ea9b,_0x2c65fb={'dneIk':function(_0x2c135c,_0x18787d){const _0x3c44e6=_0x498b;return _0x49a520[_0x3c44e6(0xfe)](_0x2c135c,_0x18787d);},'UacfF':function(_0x850e1c,_0x34f8b3){return _0x49a520['EsfEs'](_0x850e1c,_0x34f8b3);},'VtlhS':function(_0x4610ed,_0x416b77){const _0x595569=_0x498b;return _0x49a520[_0x595569(0xd9)](_0x4610ed,_0x416b77);},'niVqm':_0x49a520['puMWh'],'YUbJu':_0x499c22(0x11f)};let _0x58e36b;try{_0x58e36b=new URL(_0x499c22(0xfa),_0x3195e9);}catch(_0x5a634b){return void _0x5bbf9c(new Error('无效的\x20apiBase:'+_0x3195e9+'('+_0x5a634b[_0x499c22(0xdd)]+')'));}const _0x5f2b19=_0x49a520[_0x499c22(0x110)]===_0x58e36b[_0x499c22(0xe1)]?_0x456539:_0x384e51,_0x572d7a=_0x49a520[_0x499c22(0x101)](_0x403d4c),_0x4e0200=_0x5f2b19['request'](_0x58e36b,{'method':_0x499c22(0x103),'headers':i(_0x572d7a,{'Accept':_0x499c22(0xdf)}),'timeout':a},_0x1aa4b0=>{const _0x4e5c1f=_0x499c22,_0x5d36c7={'FtvLp':_0x4e5c1f(0xf3),'kKOss':function(_0x507f4c,_0x36dfaa){const _0x4ca73f=_0x4e5c1f;return _0x2c65fb[_0x4ca73f(0xe4)](_0x507f4c,_0x36dfaa);},'Coxsw':function(_0x10e520,_0x1032f9){const _0x2c7ba9=_0x4e5c1f;return _0x2c65fb[_0x2c7ba9(0xe7)](_0x10e520,_0x1032f9);},'xLuxJ':function(_0x426f2b,_0x3082c1){return _0x2c65fb['VtlhS'](_0x426f2b,_0x3082c1);},'KwgiE':function(_0x202637,_0x4fcda1){return _0x202637(_0x4fcda1);}},_0x700eaa=[];_0x1aa4b0['on'](_0x2c65fb[_0x4e5c1f(0xd1)],_0x3ff973=>_0x700eaa[_0x4e5c1f(0x10e)](_0x3ff973)),_0x1aa4b0['on'](_0x2c65fb['YUbJu'],()=>{const _0x525037=_0x4e5c1f,_0x33bb71=Buffer[_0x525037(0xed)](_0x700eaa)[_0x525037(0x11d)](_0x5d36c7[_0x525037(0x12d)]);let _0x764f55;try{_0x764f55=_0x33bb71?JSON[_0x525037(0x106)](_0x33bb71):{};}catch{return void _0x5d36c7[_0x525037(0x125)](_0x440d42,[]);}if(_0x5d36c7[_0x525037(0x124)](_0x1aa4b0['statusCode'],0xc8)&&_0x5d36c7['xLuxJ'](_0x1aa4b0[_0x525037(0x11e)],0x12c)){const _0x1e7108=Array['isArray'](_0x764f55)?_0x764f55:_0x764f55?.['groups'];_0x5d36c7['KwgiE'](_0x440d42,Array[_0x525037(0x11b)](_0x1e7108)?_0x1e7108:[]);}else _0x440d42([]);});});_0x4e0200['on'](_0x49a520[_0x499c22(0x11c)],()=>{const _0x3b0f1f=_0x499c22;_0x4e0200[_0x3b0f1f(0x128)](new Error(_0x3b0f1f(0xdc)+_0x58e36b[_0x3b0f1f(0xfd)]));}),_0x4e0200['on'](_0x49a520[_0x499c22(0xd0)],_0x183b2d=>{_0x49a520['wMxnY'](_0x440d42,[]);}),_0x4e0200[_0x499c22(0x11f)]();});}export function verifyApiKey({apiKey:_0x4c5dcb,baseUrl:_0x493a83}){const _0x3eb931=_0x5e1e03,_0x1c15b2={'LwHgL':function(_0x17765b,_0x32f6d8){return _0x17765b<_0x32f6d8;},'xrkWa':function(_0x4c7b0c,_0x1acb75){return _0x4c7b0c(_0x1acb75);},'pCKNx':'data','iASMZ':function(_0x1f2e28,_0x38c5cb){return _0x1f2e28(_0x38c5cb);},'dLDwF':function(_0x402a20,_0x34433c){return _0x402a20(_0x34433c);},'bGWXM':function(_0x3a6db6,_0x4253be){return _0x3a6db6===_0x4253be;},'SqYlC':_0x3eb931(0x103)};return new Promise(_0x454834=>{const _0x3d5bd8=_0x3eb931,_0x46e0c1={'xvfYs':function(_0x24edd4,_0x133cf7){return _0x1c15b2['iASMZ'](_0x24edd4,_0x133cf7);},'tvXon':_0x3d5bd8(0x13b)};let _0x445960;try{_0x445960=new URL(_0x3d5bd8(0xe9),_0x493a83);}catch{return void _0x1c15b2[_0x3d5bd8(0xf5)](_0x454834,{'ok':!0x1,'error':_0x3d5bd8(0x10a)+_0x493a83});}const _0xd3f819=(_0x1c15b2[_0x3d5bd8(0x120)](_0x3d5bd8(0xff),_0x445960[_0x3d5bd8(0xe1)])?_0x456539:_0x384e51)['request'](_0x445960,{'method':_0x1c15b2[_0x3d5bd8(0xf2)],'headers':{'Authorization':'Bearer\x20'+_0x4c5dcb,'User-Agent':n},'timeout':0x3a98},_0x42aeea=>{const _0x212e2b=_0x3d5bd8,_0x487517={'hxorJ':function(_0x521db8,_0x3fb145){return _0x521db8>=_0x3fb145;},'ZFqwq':function(_0x42b9c5,_0x462927){return _0x1c15b2['LwHgL'](_0x42b9c5,_0x462927);},'SYqnv':function(_0x43ce9f,_0x1ed2b7){const _0x4bb33c=_0x498b;return _0x1c15b2[_0x4bb33c(0x10d)](_0x43ce9f,_0x1ed2b7);}},_0xc0c53d=[];_0x42aeea['on'](_0x1c15b2[_0x212e2b(0xe8)],_0x1851c7=>_0xc0c53d[_0x212e2b(0x10e)](_0x1851c7)),_0x42aeea['on'](_0x212e2b(0x11f),()=>{const _0x4fdf79=_0x212e2b,_0x13ddf6=_0x487517[_0x4fdf79(0x102)](_0x42aeea[_0x4fdf79(0x11e)],0xc8)&&_0x487517[_0x4fdf79(0xf9)](_0x42aeea[_0x4fdf79(0x11e)],0x12c);_0x487517['SYqnv'](_0x454834,{'ok':_0x13ddf6,'statusCode':_0x42aeea[_0x4fdf79(0x11e)]});});});_0xd3f819['on']('timeout',()=>{const _0x4da7fa=_0x3d5bd8;_0xd3f819[_0x4da7fa(0x128)](),_0x46e0c1[_0x4da7fa(0xf4)](_0x454834,{'ok':!0x1,'error':_0x46e0c1[_0x4da7fa(0xec)]});}),_0xd3f819['on'](_0x3d5bd8(0x12c),_0x346ee6=>_0x454834({'ok':!0x1,'error':_0x346ee6[_0x3d5bd8(0xdd)]})),_0xd3f819['end']();});}
1
+ const _0x47b4b8=_0x2685;(function(_0x34e82e,_0x1cd200){const _0x55b4e9=_0x2685,_0x16ac7e=_0x34e82e();while(!![]){try{const _0x3ffe3a=-parseInt(_0x55b4e9(0xb7))/0x1+parseInt(_0x55b4e9(0xcb))/0x2*(parseInt(_0x55b4e9(0xb5))/0x3)+-parseInt(_0x55b4e9(0xd9))/0x4*(-parseInt(_0x55b4e9(0xd1))/0x5)+-parseInt(_0x55b4e9(0xa9))/0x6+parseInt(_0x55b4e9(0xae))/0x7*(parseInt(_0x55b4e9(0x98))/0x8)+parseInt(_0x55b4e9(0xea))/0x9+parseInt(_0x55b4e9(0xa6))/0xa;if(_0x3ffe3a===_0x1cd200)break;else _0x16ac7e['push'](_0x16ac7e['shift']());}catch(_0x3e8ef4){_0x16ac7e['push'](_0x16ac7e['shift']());}}}(_0x2cc6,0x749d7));import _0x13513b from'node:https';import _0x183a66 from'node:http';import{createRequire as _0x2b5b42}from'node:module';import{getDeviceId as _0x4909d0}from'./device.mjs';import{getChallenge as _0x2f01a4,solvePoW as _0x38a537}from'./pow.mjs';function _0x2685(_0x4baf6b,_0x3c86d0){_0x4baf6b=_0x4baf6b-0x90;const _0x2cc675=_0x2cc6();let _0x26857c=_0x2cc675[_0x4baf6b];return _0x26857c;}const a=_0x2b5b42(import.meta.url)('../package.json')[_0x47b4b8(0xdf)],i=_0x47b4b8(0xe4)+a,c=0x7530;function u(_0x365942,_0x5bb4dc={}){return{'User-Agent':i,'X-Device-Id':_0x365942,..._0x5bb4dc};}export async function cliActivate({credential:_0x4d4bae,email:_0x42a4dd,platform:_0x3520f0,groupId:_0x1e3ba2,apiBase:_0x2ede7c}){const _0x2b6f6d=_0x47b4b8,_0x476b1a={'YLgYZ':function(_0x564aad,_0x176ce7){return _0x564aad(_0x176ce7);},'atGZe':function(_0x4c8b79,_0x599926){return _0x4c8b79==_0x599926;},'TGuNG':_0x2b6f6d(0xe1),'GTKeV':_0x2b6f6d(0xb1),'WhJyG':function(_0x12db1e,_0x32b37e){return _0x12db1e(_0x32b37e);},'IZVAo':'https:','Qkdhi':_0x2b6f6d(0xb3),'YTzXr':function(_0x308fb4,_0x4fe7d0,_0x56d625){return _0x308fb4(_0x4fe7d0,_0x56d625);},'DfdvF':_0x2b6f6d(0x95),'VMxXL':_0x2b6f6d(0x9b),'HSWMP':_0x2b6f6d(0x9e),'hGEqL':function(_0x3ef7e9,_0x12b7a5){return _0x3ef7e9(_0x12b7a5);}},_0x2f705d=_0x4909d0();let _0x407887,_0x3ed319;try{const {challenge:_0x56cf28,difficulty:_0x57da3f}=await _0x476b1a['hGEqL'](_0x2f01a4,{'apiBase':_0x2ede7c,'deviceId':_0x2f705d});_0x407887=_0x56cf28,_0x3ed319=_0x38a537(_0x56cf28,_0x57da3f);}catch(_0x22e325){throw new Error(_0x2b6f6d(0xcd)+_0x22e325[_0x2b6f6d(0xe7)]);}return new Promise((_0x57e40a,_0xe8d24d)=>{const _0xbf25bb=_0x2b6f6d,_0x5b2585={'UreIK':function(_0x595813,_0x2e5a07){return _0x476b1a['YLgYZ'](_0x595813,_0x2e5a07);},'HREIo':function(_0x3deee6,_0x21960d){return _0x3deee6>=_0x21960d;},'eldCo':function(_0x43328e,_0x2f32ef){const _0x11b49f=_0x2685;return _0x476b1a[_0x11b49f(0x94)](_0x43328e,_0x2f32ef);},'xgDPd':'object','ziZiw':_0x476b1a[_0xbf25bb(0xe9)],'RVNwW':_0xbf25bb(0xef)};let _0x176461;try{_0x176461=new URL(_0x476b1a[_0xbf25bb(0xa8)],_0x2ede7c);}catch(_0x26bb8b){return void _0x476b1a[_0xbf25bb(0xe0)](_0xe8d24d,new Error(_0xbf25bb(0xeb)+_0x2ede7c+'('+_0x26bb8b[_0xbf25bb(0xe7)]+')'));}const _0xfee431=_0x476b1a[_0xbf25bb(0xca)]===_0x176461[_0xbf25bb(0xbf)]?_0x13513b:_0x183a66,_0x362c75={'credential':_0x4d4bae,'cli_version':a,..._0x42a4dd?{'email':_0x42a4dd}:{},..._0x3520f0?{'platform':_0x3520f0}:{},..._0x1e3ba2?{'group_id':_0x1e3ba2}:{}},_0x129e1b=JSON[_0xbf25bb(0xbb)](_0x362c75),_0x458dad=_0xfee431[_0xbf25bb(0xdd)](_0x176461,{'method':_0x476b1a[_0xbf25bb(0xbc)],'headers':_0x476b1a[_0xbf25bb(0xba)](u,_0x2f705d,{'Content-Type':_0x476b1a['DfdvF'],'Content-Length':Buffer[_0xbf25bb(0xb8)](_0x129e1b),'X-PoW-Challenge':_0x407887,'X-PoW-Nonce':_0x3ed319}),'timeout':c},_0x1b2c28=>{const _0x54b357=_0xbf25bb,_0x4336aa=[];_0x1b2c28['on'](_0x5b2585[_0x54b357(0xda)],_0x426b2e=>_0x4336aa[_0x54b357(0xc6)](_0x426b2e)),_0x1b2c28['on'](_0x5b2585[_0x54b357(0xde)],()=>{const _0x32a747=_0x54b357,_0x469525=Buffer[_0x32a747(0xa3)](_0x4336aa)['toString'](_0x32a747(0xd5));let _0x594619;try{_0x594619=_0x469525?JSON[_0x32a747(0xc0)](_0x469525):{};}catch{const _0x574a7e=new Error(_0x32a747(0xdc)+_0x1b2c28[_0x32a747(0x9a)]+'):'+_0x469525[_0x32a747(0xa7)](0x0,0xc8));return _0x574a7e[_0x32a747(0x9a)]=_0x1b2c28[_0x32a747(0x9a)],_0x574a7e[_0x32a747(0xa2)]=_0x469525,void _0x5b2585[_0x32a747(0xd7)](_0xe8d24d,_0x574a7e);}if(_0x5b2585['HREIo'](_0x1b2c28[_0x32a747(0x9a)],0xc8)&&_0x1b2c28[_0x32a747(0x9a)]<0x12c)_0x5b2585['UreIK'](_0x57e40a,_0x594619);else{const _0xb18366=_0x594619?.['error'],_0x4d6109=(_0xb18366&&_0x5b2585[_0x32a747(0xc8)](_0x5b2585['xgDPd'],typeof _0xb18366)?_0xb18366['message']:_0xb18366)||_0x594619?.[_0x32a747(0xe7)]||_0x32a747(0xa5)+_0x1b2c28['statusCode'],_0x364b66=new Error(_0x4d6109);_0x364b66[_0x32a747(0x9a)]=_0x1b2c28['statusCode'],_0x364b66[_0x32a747(0xa4)]=_0x594619,_0x5b2585[_0x32a747(0xd7)](_0xe8d24d,_0x364b66);}});});_0x458dad['on'](_0x476b1a['VMxXL'],()=>{const _0x338f40=_0xbf25bb;_0x458dad[_0x338f40(0xb4)](new Error(_0x338f40(0xbe)+_0x176461[_0x338f40(0xc9)]));}),_0x458dad['on'](_0x476b1a['HSWMP'],_0xe8d24d),_0x458dad[_0xbf25bb(0x9d)](_0x129e1b),_0x458dad[_0xbf25bb(0xef)]();});}export function probeModels({credential:_0x2f30ca,apiBase:_0x48edf1,timeoutMs:_0x2cd17f=0x2710}){const _0x3b729a=_0x47b4b8,_0x25d2f3={'exyDo':function(_0x55dddc,_0x481dc8){return _0x55dddc/_0x481dc8;},'qJlnS':function(_0x46356e,_0x4d62cd){return _0x46356e<_0x4d62cd;},'TXCgf':function(_0x1e6248,_0x46209b){return _0x1e6248(_0x46209b);},'YoeTp':_0x3b729a(0xe1),'ksiOY':'end','lLWmU':_0x3b729a(0xe8),'cqPXX':_0x3b729a(0xb3),'DVNdZ':function(_0x2559b9,_0x44a319,_0x302f73){return _0x2559b9(_0x44a319,_0x302f73);},'AfXEP':'application/json','dsODU':_0x3b729a(0x9b),'NphXr':_0x3b729a(0x9e)},_0x5c7f7a=_0x4909d0();return new Promise((_0x520496,_0x279630)=>{const _0x49bed1=_0x3b729a,_0x103d37={'gRMPq':function(_0x1dfd2c,_0x584064){const _0x3b61ee=_0x2685;return _0x25d2f3[_0x3b61ee(0xd0)](_0x1dfd2c,_0x584064);},'FbCvg':function(_0x2ba19a,_0x1723ca){return _0x2ba19a(_0x1723ca);},'ocQVz':function(_0x1ff85d,_0x313388){const _0x3e46ce=_0x2685;return _0x25d2f3[_0x3e46ce(0x97)](_0x1ff85d,_0x313388);},'SeSoS':_0x25d2f3[_0x49bed1(0xb2)],'yzslQ':_0x25d2f3['ksiOY']};let _0x27c607;try{_0x27c607=new URL(_0x25d2f3[_0x49bed1(0xce)],_0x48edf1);}catch(_0x4596fa){return void _0x25d2f3[_0x49bed1(0x97)](_0x279630,new Error(_0x49bed1(0xeb)+_0x48edf1+'('+_0x4596fa['message']+')'));}const _0x1b4bee='https:'===_0x27c607[_0x49bed1(0xbf)]?_0x13513b:_0x183a66,_0x27c72f=JSON[_0x49bed1(0xbb)]({'credential':_0x2f30ca}),_0x30f224=_0x1b4bee[_0x49bed1(0xdd)](_0x27c607,{'method':_0x25d2f3['cqPXX'],'headers':_0x25d2f3[_0x49bed1(0xaa)](u,_0x5c7f7a,{'Content-Type':_0x25d2f3[_0x49bed1(0xd2)],'Content-Length':Buffer[_0x49bed1(0xb8)](_0x27c72f)}),'timeout':_0x2cd17f},_0xee9103=>{const _0x133b62=_0x49bed1,_0x33473d=[];_0xee9103['on'](_0x103d37[_0x133b62(0xd3)],_0x2f2652=>_0x33473d[_0x133b62(0xc6)](_0x2f2652)),_0xee9103['on'](_0x103d37[_0x133b62(0x96)],()=>{const _0x5c5e95=_0x133b62,_0x2b5cd2=Buffer[_0x5c5e95(0xa3)](_0x33473d)[_0x5c5e95(0xc1)](_0x5c5e95(0xd5));if(_0x103d37[_0x5c5e95(0x93)](_0xee9103[_0x5c5e95(0x9a)],0xc8)||_0xee9103[_0x5c5e95(0x9a)]>=0x12c){const _0xa5b807=new Error(_0x5c5e95(0xa5)+_0xee9103[_0x5c5e95(0x9a)]);return _0xa5b807[_0x5c5e95(0x9a)]=_0xee9103[_0x5c5e95(0x9a)],void _0x279630(_0xa5b807);}try{_0x103d37[_0x5c5e95(0xab)](_0x520496,_0x2b5cd2?JSON[_0x5c5e95(0xc0)](_0x2b5cd2):{});}catch{_0x103d37[_0x5c5e95(0xd6)](_0x279630,new Error(_0x5c5e95(0xcc)));}});});_0x30f224['on'](_0x25d2f3[_0x49bed1(0xd8)],()=>{const _0x4d7755=_0x49bed1;_0x30f224[_0x4d7755(0xb4)](new Error('请求超时('+_0x25d2f3['exyDo'](_0x2cd17f,0x3e8)+_0x4d7755(0xed)+_0x27c607[_0x4d7755(0xc9)]));}),_0x30f224['on'](_0x25d2f3[_0x49bed1(0xd4)],_0x279630),_0x30f224[_0x49bed1(0x9d)](_0x27c72f),_0x30f224[_0x49bed1(0xef)]();});}export function listGroups({apiBase:_0x44bde5}){const _0x497e26=_0x47b4b8,_0x19f890={'vZEjU':_0x497e26(0xd5),'fVGTK':function(_0x1a248c,_0x2c703c){return _0x1a248c(_0x2c703c);},'dvkky':function(_0x47f514,_0x425f57){return _0x47f514>=_0x425f57;},'MfqAF':function(_0x1823e1,_0x1212ee){return _0x1823e1<_0x1212ee;},'czNJP':_0x497e26(0xef),'CIOKT':'/api/v1/cli/groups','zYDEM':function(_0x8f5edb,_0x4b5582){return _0x8f5edb(_0x4b5582);},'kuSsw':function(_0x25c4f2){return _0x25c4f2();},'jtUIf':_0x497e26(0x91),'Fhbny':function(_0x271a72,_0x20e01c,_0x1aac92){return _0x271a72(_0x20e01c,_0x1aac92);},'PybqH':_0x497e26(0x9b),'kFrqG':_0x497e26(0x9e)};return new Promise((_0x33d559,_0x57f75c)=>{const _0x1028e3=_0x497e26,_0x1d0b7d={'NITTI':_0x19f890[_0x1028e3(0xb9)],'aDPhP':function(_0x26cbb2,_0x5371cf){const _0xea904f=_0x1028e3;return _0x19f890[_0xea904f(0x92)](_0x26cbb2,_0x5371cf);},'tMQwA':function(_0x50e820,_0x5bd9a1){const _0x469f0f=_0x1028e3;return _0x19f890[_0x469f0f(0xee)](_0x50e820,_0x5bd9a1);},'lBSNQ':function(_0x729f50,_0xf8c75f){const _0x5cc7ea=_0x1028e3;return _0x19f890[_0x5cc7ea(0x99)](_0x729f50,_0xf8c75f);},'OEywX':'data','ysUCE':_0x19f890[_0x1028e3(0xec)]};let _0x592a37;try{_0x592a37=new URL(_0x19f890['CIOKT'],_0x44bde5);}catch(_0x6bbca7){return void _0x19f890['zYDEM'](_0x57f75c,new Error(_0x1028e3(0xeb)+_0x44bde5+'('+_0x6bbca7[_0x1028e3(0xe7)]+')'));}const _0x380b73=_0x1028e3(0xc2)===_0x592a37[_0x1028e3(0xbf)]?_0x13513b:_0x183a66,_0x5ccdd9=_0x19f890[_0x1028e3(0xc5)](_0x4909d0),_0x25d0f0=_0x380b73['request'](_0x592a37,{'method':_0x19f890[_0x1028e3(0xad)],'headers':_0x19f890[_0x1028e3(0xa0)](u,_0x5ccdd9,{'Accept':_0x1028e3(0x95)}),'timeout':c},_0x22a2f2=>{const _0x3c1b2c=_0x1028e3,_0x42d4a7=[];_0x22a2f2['on'](_0x1d0b7d[_0x3c1b2c(0xbd)],_0x54894f=>_0x42d4a7[_0x3c1b2c(0xc6)](_0x54894f)),_0x22a2f2['on'](_0x1d0b7d['ysUCE'],()=>{const _0x2bf36b=_0x3c1b2c,_0x244954=Buffer[_0x2bf36b(0xa3)](_0x42d4a7)[_0x2bf36b(0xc1)](_0x1d0b7d[_0x2bf36b(0xc7)]);let _0x2c0ff7;try{_0x2c0ff7=_0x244954?JSON[_0x2bf36b(0xc0)](_0x244954):{};}catch{return void _0x1d0b7d[_0x2bf36b(0xb6)](_0x33d559,[]);}if(_0x1d0b7d[_0x2bf36b(0xb0)](_0x22a2f2[_0x2bf36b(0x9a)],0xc8)&&_0x1d0b7d[_0x2bf36b(0xc3)](_0x22a2f2[_0x2bf36b(0x9a)],0x12c)){const _0x415440=Array[_0x2bf36b(0x90)](_0x2c0ff7)?_0x2c0ff7:_0x2c0ff7?.['groups'];_0x1d0b7d[_0x2bf36b(0xb6)](_0x33d559,Array[_0x2bf36b(0x90)](_0x415440)?_0x415440:[]);}else _0x33d559([]);});});_0x25d0f0['on'](_0x19f890[_0x1028e3(0xdb)],()=>{const _0x43e948=_0x1028e3;_0x25d0f0['destroy'](new Error(_0x43e948(0xbe)+_0x592a37[_0x43e948(0xc9)]));}),_0x25d0f0['on'](_0x19f890['kFrqG'],_0x3df6d8=>{_0x33d559([]);}),_0x25d0f0[_0x1028e3(0xef)]();});}export function verifyApiKey({apiKey:_0x1888d1,baseUrl:_0x192c50}){const _0x20370a=_0x47b4b8,_0x20cda0={'oUrGA':_0x20370a(0xef),'qiPkU':function(_0x4d14f9,_0xb14563){return _0x4d14f9>=_0xb14563;},'ybuSj':function(_0x57a007,_0x21e6af){return _0x57a007(_0x21e6af);},'QcaHH':_0x20370a(0xac),'aReKJ':function(_0x15bf6b,_0x1e4dcd){return _0x15bf6b(_0x1e4dcd);},'QiWSZ':function(_0xcfca8c,_0x213cac){return _0xcfca8c===_0x213cac;},'fgwaH':'https:','yQZOW':_0x20370a(0x91),'MLAXs':'error'};return new Promise(_0x265b55=>{const _0x226134=_0x20370a,_0x5003b5={'KVvcA':function(_0x4dfd07,_0x3f901c){const _0xe7d88d=_0x2685;return _0x20cda0[_0xe7d88d(0xaf)](_0x4dfd07,_0x3f901c);},'UaeNI':function(_0x8f595c,_0x588404){return _0x8f595c<_0x588404;},'cZeuS':function(_0x55e890,_0xc6db99){return _0x20cda0['ybuSj'](_0x55e890,_0xc6db99);}};let _0x207d37;try{_0x207d37=new URL(_0x20cda0[_0x226134(0x9f)],_0x192c50);}catch{return void _0x20cda0['aReKJ'](_0x265b55,{'ok':!0x1,'error':'无效的\x20baseUrl:'+_0x192c50});}const _0x48b3db=(_0x20cda0['QiWSZ'](_0x20cda0[_0x226134(0x9c)],_0x207d37[_0x226134(0xbf)])?_0x13513b:_0x183a66)['request'](_0x207d37,{'method':_0x20cda0[_0x226134(0xe2)],'headers':{'Authorization':_0x226134(0xc4)+_0x1888d1,'User-Agent':i},'timeout':0x3a98},_0x1c78a2=>{const _0x4fe471=_0x226134,_0x5d780a=[];_0x1c78a2['on']('data',_0x49b273=>_0x5d780a[_0x4fe471(0xc6)](_0x49b273)),_0x1c78a2['on'](_0x20cda0[_0x4fe471(0xe6)],()=>{const _0x42e8df=_0x4fe471,_0x5af897=_0x5003b5['KVvcA'](_0x1c78a2[_0x42e8df(0x9a)],0xc8)&&_0x5003b5[_0x42e8df(0xcf)](_0x1c78a2[_0x42e8df(0x9a)],0x12c);_0x5003b5[_0x42e8df(0xa1)](_0x265b55,{'ok':_0x5af897,'statusCode':_0x1c78a2[_0x42e8df(0x9a)]});});});_0x48b3db['on'](_0x226134(0x9b),()=>{const _0x5e3932=_0x226134;_0x48b3db[_0x5e3932(0xb4)](),_0x5003b5[_0x5e3932(0xa1)](_0x265b55,{'ok':!0x1,'error':_0x5e3932(0xe3)});}),_0x48b3db['on'](_0x20cda0[_0x226134(0xe5)],_0x2c9299=>_0x265b55({'ok':!0x1,'error':_0x2c9299['message']})),_0x48b3db['end']();});}function _0x2cc6(){const _0x9a63d7=['byteLength','vZEjU','YTzXr','stringify','Qkdhi','OEywX','请求超时(30s)—\x20','protocol','parse','toString','https:','lBSNQ','Bearer\x20','kuSsw','push','NITTI','eldCo','href','IZVAo','2mkslLe','响应非\x20JSON','PoW\x20challenge\x20获取失败:','lLWmU','UaeNI','qJlnS','37745kndkBQ','AfXEP','SeSoS','NphXr','utf8','ocQVz','UreIK','dsODU','196ratzsv','ziZiw','PybqH','响应非\x20JSON(HTTP\x20','request','RVNwW','version','WhJyG','data','yQZOW','验证请求超时(15s)','@2api-store/activate/','MLAXs','oUrGA','message','/api/v1/cli/probe-models','TGuNG','3467376MEDZIb','无效的\x20apiBase:','czNJP','s)—\x20','dvkky','end','isArray','GET','fVGTK','gRMPq','atGZe','application/json','yzslQ','TXCgf','8uyqbUe','MfqAF','statusCode','timeout','fgwaH','write','error','QcaHH','Fhbny','cZeuS','raw','concat','body','HTTP\x20','888210mazZBX','slice','GTKeV','3804774gwOygq','DVNdZ','FbCvg','/v1/models','jtUIf','2140915SrrDHu','qiPkU','tMQwA','/api/v1/cli/activate','YoeTp','POST','destroy','165939aIRdVO','aDPhP','93360nHiqVV'];_0x2cc6=function(){return _0x9a63d7;};return _0x2cc6();}
@@ -1 +1 @@
1
- (function(_0x3291d9,_0x558501){const _0x390124=_0x35d0,_0x65e1fe=_0x3291d9();while(!![]){try{const _0x4715bc=-parseInt(_0x390124(0x194))/0x1+-parseInt(_0x390124(0x1a7))/0x2*(-parseInt(_0x390124(0x19a))/0x3)+-parseInt(_0x390124(0x1ac))/0x4*(-parseInt(_0x390124(0x199))/0x5)+-parseInt(_0x390124(0x196))/0x6+-parseInt(_0x390124(0x1ab))/0x7*(parseInt(_0x390124(0x195))/0x8)+parseInt(_0x390124(0x19e))/0x9*(-parseInt(_0x390124(0x1a2))/0xa)+parseInt(_0x390124(0x19d))/0xb*(parseInt(_0x390124(0x1a0))/0xc);if(_0x4715bc===_0x558501)break;else _0x65e1fe['push'](_0x65e1fe['shift']());}catch(_0x7d6e27){_0x65e1fe['push'](_0x65e1fe['shift']());}}}(_0x2c9c,0x3cd64));import _0x295c7c from'node:fs';import _0x4726ac from'node:path';function _0x2c9c(){const _0x343b50=['sort','existsSync','14344LuOnQe','1065384BVFyvE','mtime','5820cWqBic','.bak.','40asngAc','isFile','toISOString','name','push','15518GiACxd','mtimeMs','备份文件不存在:','size','49piGfFX','1693388rGONPb','join','30841VEewDS','216464xujDzF','723642WaxKgW','readdirSync','match','5iLHvco','3qrZMab'];_0x2c9c=function(){return _0x343b50;};return _0x2c9c();}export function backupFile(_0x42ae30){const _0x5194c0=_0x35d0;let _0xfc1730=!0x1;try{_0xfc1730=_0x295c7c[_0x5194c0(0x19c)](_0x42ae30);}catch{return null;}if(!_0xfc1730)return null;const _0x1089fb=_0x42ae30+_0x5194c0(0x1a1)+new Date()[_0x5194c0(0x1a4)]()['replace'](/[:.]/g,'-');return _0x295c7c['copyFileSync'](_0x42ae30,_0x1089fb),_0x1089fb;}function _0x35d0(_0x89ac25,_0x5e8728){_0x89ac25=_0x89ac25-0x193;const _0x2c9ccd=_0x2c9c();let _0x35d0d6=_0x2c9ccd[_0x89ac25];return _0x35d0d6;}export function listBackups(_0xd00aef){const _0x1edca0=_0x35d0,_0x306623=[];for(const _0x274503 of _0xd00aef){if(!_0x274503)continue;let _0x52189f;try{_0x52189f=_0x295c7c[_0x1edca0(0x197)](_0x274503,{'withFileTypes':!0x0});}catch{continue;}for(const _0x33afcd of _0x52189f){if(!_0x33afcd[_0x1edca0(0x1a3)]())continue;const _0x426fd1=_0x33afcd[_0x1edca0(0x1a5)][_0x1edca0(0x198)](/^(.+)\.bak\.[\dTZ:-]+$/);if(!_0x426fd1)continue;const _0x7889cb=_0x426fd1[0x1],_0x3bf9be=_0x4726ac['join'](_0x274503,_0x33afcd[_0x1edca0(0x1a5)]),_0x30238a=_0x4726ac[_0x1edca0(0x193)](_0x274503,_0x7889cb);try{const _0x4a653d=_0x295c7c['statSync'](_0x3bf9be);_0x306623[_0x1edca0(0x1a6)]({'bakPath':_0x3bf9be,'origPath':_0x30238a,'mtime':_0x4a653d[_0x1edca0(0x1a8)],'dir':_0x274503,'file':_0x33afcd[_0x1edca0(0x1a5)],'origName':_0x7889cb,'size':_0x4a653d[_0x1edca0(0x1aa)]});}catch{}}}return _0x306623[_0x1edca0(0x19b)]((_0xa3271f,_0x1fca8a)=>_0x1fca8a['mtime']-_0xa3271f[_0x1edca0(0x19f)]),_0x306623;}export function restoreBackup(_0x4f2434,_0x1f182f){const _0x1da558=_0x35d0;if(!_0x295c7c[_0x1da558(0x19c)](_0x4f2434))throw new Error(_0x1da558(0x1a9)+_0x4f2434);const _0x69b28c=_0x4726ac['dirname'](_0x1f182f);try{_0x295c7c['mkdirSync'](_0x69b28c,{'recursive':!0x0});}catch{}return _0x295c7c['copyFileSync'](_0x4f2434,_0x1f182f),_0x1f182f;}
1
+ (function(_0x23b18a,_0x615cc6){const _0x1ce2fd=_0x268b,_0x2da627=_0x23b18a();while(!![]){try{const _0x3bb99b=parseInt(_0x1ce2fd(0x98))/0x1+parseInt(_0x1ce2fd(0x8c))/0x2+-parseInt(_0x1ce2fd(0x84))/0x3+-parseInt(_0x1ce2fd(0x91))/0x4*(-parseInt(_0x1ce2fd(0x88))/0x5)+parseInt(_0x1ce2fd(0x86))/0x6+-parseInt(_0x1ce2fd(0x94))/0x7*(parseInt(_0x1ce2fd(0x90))/0x8)+-parseInt(_0x1ce2fd(0x8f))/0x9;if(_0x3bb99b===_0x615cc6)break;else _0x2da627['push'](_0x2da627['shift']());}catch(_0x539d32){_0x2da627['push'](_0x2da627['shift']());}}}(_0x5141,0x1b5e8));import _0x2f4d2b from'node:fs';import _0xcef38f from'node:path';function _0x268b(_0xdebb4d,_0x5d975b){_0xdebb4d=_0xdebb4d-0x82;const _0x5141d1=_0x5141();let _0x268b55=_0x5141d1[_0xdebb4d];return _0x268b55;}export function backupFile(_0x5b8b89){const _0x2f1dc7=_0x268b;let _0x5bb35e=!0x1;try{_0x5bb35e=_0x2f4d2b[_0x2f1dc7(0x97)](_0x5b8b89);}catch{return null;}if(!_0x5bb35e)return null;const _0x203adb=_0x5b8b89+'.bak.'+new Date()['toISOString']()[_0x2f1dc7(0x92)](/[:.]/g,'-');return _0x2f4d2b[_0x2f1dc7(0x8e)](_0x5b8b89,_0x203adb),_0x203adb;}function _0x5141(){const _0x3b5c5c=['size','5055ByRDGk','mtime','dirname','match','420348cahsVI','name','copyFileSync','4176kitGde','162264lQzwep','340glYydp','replace','sort','70PpmtdJ','statSync','isFile','existsSync','141485pSUUmp','mtimeMs','readdirSync','483393ATmlAi','push','233610fGCnhJ'];_0x5141=function(){return _0x3b5c5c;};return _0x5141();}export function listBackups(_0x18db91){const _0x4b1f0a=_0x268b,_0x3ced9f=[];for(const _0x598ec5 of _0x18db91){if(!_0x598ec5)continue;let _0x1af5dc;try{_0x1af5dc=_0x2f4d2b[_0x4b1f0a(0x83)](_0x598ec5,{'withFileTypes':!0x0});}catch{continue;}for(const _0x278064 of _0x1af5dc){if(!_0x278064[_0x4b1f0a(0x96)]())continue;const _0x328dab=_0x278064[_0x4b1f0a(0x8d)][_0x4b1f0a(0x8b)](/^(.+)\.bak\.[\dTZ:-]+$/);if(!_0x328dab)continue;const _0x267efc=_0x328dab[0x1],_0x277ce5=_0xcef38f['join'](_0x598ec5,_0x278064[_0x4b1f0a(0x8d)]),_0x21c60f=_0xcef38f['join'](_0x598ec5,_0x267efc);try{const _0x39d4a1=_0x2f4d2b[_0x4b1f0a(0x95)](_0x277ce5);_0x3ced9f[_0x4b1f0a(0x85)]({'bakPath':_0x277ce5,'origPath':_0x21c60f,'mtime':_0x39d4a1[_0x4b1f0a(0x82)],'dir':_0x598ec5,'file':_0x278064['name'],'origName':_0x267efc,'size':_0x39d4a1[_0x4b1f0a(0x87)]});}catch{}}}return _0x3ced9f[_0x4b1f0a(0x93)]((_0x276a1e,_0x5cf027)=>_0x5cf027[_0x4b1f0a(0x89)]-_0x276a1e[_0x4b1f0a(0x89)]),_0x3ced9f;}export function restoreBackup(_0x3d1ab9,_0x5aae55){const _0xdc155d=_0x268b;if(!_0x2f4d2b[_0xdc155d(0x97)](_0x3d1ab9))throw new Error('备份文件不存在:'+_0x3d1ab9);const _0x6f2d5c=_0xcef38f[_0xdc155d(0x8a)](_0x5aae55);try{_0x2f4d2b['mkdirSync'](_0x6f2d5c,{'recursive':!0x0});}catch{}return _0x2f4d2b['copyFileSync'](_0x3d1ab9,_0x5aae55),_0x5aae55;}
package/dist/lib/cmds.mjs CHANGED
@@ -1 +1 @@
1
- const _0x14467b=_0x8873;(function(_0x4f6526,_0x2eb365){const _0x6e2156=_0x8873,_0x4e11da=_0x4f6526();while(!![]){try{const _0x2219fa=parseInt(_0x6e2156(0x213))/0x1+-parseInt(_0x6e2156(0x27d))/0x2*(-parseInt(_0x6e2156(0x184))/0x3)+parseInt(_0x6e2156(0x277))/0x4+parseInt(_0x6e2156(0x1ff))/0x5+-parseInt(_0x6e2156(0x25e))/0x6*(-parseInt(_0x6e2156(0x245))/0x7)+parseInt(_0x6e2156(0x1a3))/0x8*(-parseInt(_0x6e2156(0x1fe))/0x9)+-parseInt(_0x6e2156(0x223))/0xa*(parseInt(_0x6e2156(0x1d2))/0xb);if(_0x2219fa===_0x2eb365)break;else _0x4e11da['push'](_0x4e11da['shift']());}catch(_0x48f25c){_0x4e11da['push'](_0x4e11da['shift']());}}}(_0x4e67,0xd68de));import _0x178e02 from'node:fs';import _0x2a326f from'node:path';import _0x31d95c from'node:os';import{unzipSync as _0x5b8abe}from'fflate';import{backupFile as _0xdaa780,listBackups as _0x167215,restoreBackup as _0x49bc65}from'./backup.mjs';import{cliActivate as _0x3b404b,listGroups as _0x403c03}from'./api.mjs';function _0x4e67(){const _0x296c0b=['iHrDl','%userprofile%\x5c.claude\x5csettings.json','EACCES','rWzqT','⚠️\x20这是破坏性操作:将删除上述配置文件并尝试从备份恢复。','vKjoa','Claude\x20Code','padEnd','dirname','includes','需要\x20node\x20>=\x2018,当前\x20','RxrHL','Logiu','isArray','获取可用分组','forEach','QZoKg','has','slice','NAxPC','可能原因:服务端未配置分组\x20/\x20网络错误\x20/\x20端点错误','%userprofile%\x5c.gemini','SHKYA','isWindows','fail','zdTlJ','请把\x20zip\x20压缩包发给客服排障(包内已脱敏,不含明文\x20key)','group','恢复官方默认(删\x202api.store\x20配置并从备份恢复)','vcoQy','lhCkh','未查询到可用分组','MDYuS','%userprofile%\x5c.gemini\x5csettings.json','诊断失败:','dDFQL','key:…','%userprofile%\x5c.codex\x5cconfig.toml','\x20文件:','VuYWb','node','79849QpKORz','getFullYear','status','(跳过删除此文件避免误伤)','MlwTd','toUpperCase','\x20\x20...(共\x20','\x20\x20•\x20使用兑换码:重新激活时选目标分组即可','readFileSync','\x20\x20说明','LLZOx','log','utf8','bCgKF','Gemini\x20CLI','XgxOU','skip-cli-tests','诊断连接并生成日志压缩包(发给客服排障)','已恢复:','【试运行模式\x20--dry-run】不会真实删除/恢复文件','gLJql','keys','total_ms','ACTIVATE_API_BASE','wsmlC','toOnx','DxkxZ','get','UuvOz','权限不足,无法删除\x20','IAKsO','MQUkV','string','cyan','duration_ms','sk-…','sort','xsvgD','match','dryRun','bNORP','.bak.reset.','将处理以下文件:','ttmOU','765459IKUrMM','4038055MQRXCa','HvfAp','~/.claude','lVQnX','cuKva','%userprofile%\x5c.codex\x5cauth.json','GfPtT','/cli-tests.jsonl','分组列表','定位\x202api.store\x20写入的配置','未发现\x202api.store\x20写入的配置文件(可能已\x20reset\x20或从未激活过)','无\x20HTTP\x20测试记录','从备份恢复\x20','并从最新备份恢复:','replace','将恢复\x20','find','mtime','endsWith','NioAw','57231nudMAI','未找到任何备份文件(reset\x20后这些文件将直接删除,无备份可恢复)','选择应用(回车=第一个)','Snlcu','fUYIv','split','parse','下一步:如需重新激活,运行\x20npx\x20@2api-store/activate','cfXaF','FZXUr','dry-run','已取消','ZOYOY','~/.claude/settings.json','查询到\x20','values','1930MQcHBG','sYFqO','rPRdk','--help','vCLmN','cli','name','existsSync','API\x20端点:','\x20\x20•\x20已有\x20API\x20Key\x20绑组:登录管理后台修改,或重新激活(npx\x20@2api-store/activate)','max','npx\x20@2api-store/activate\x20reset\x20[options]\x0a\x0a','JkSxG','\x20个\x202api.store\x20配置文件','已删除\x20','tMzGU','trim','copyFileSync','getMinutes','(可通过\x20--api-base\x20或\x20ACTIVATE_API_BASE\x20覆盖)','~/.gemini/settings.json','从最新备份恢复','已删除:','\x20\x20✓\x20','nqKIT','XmpLt','IToFJ','DjxNg','\x20|\x20','iZsfQ','QhVcV','uvBvs','IMrVn','npx\x20@2api-store/activate\x20diagnose\x20[options]\x0a\x0a','5397LloCcB','set','sdpkg','MbNzV','USERPROFILE','未找到任何备份文件(.bak.*)','ttfb_ms','💡\x20如需切换分组:','找到\x20','\x20\x20-\x20','\x20←\x20','ERR','--yes','http_tests','--dry-run','\x20个可用分组','HQnze','yellow','npx\x20@2api-store/activate\x20refresh-groups\x20[options]\x0a\x0a','%userprofile%\x5c.claude','inowj','EoHmr','诊断包已生成:','origPath','getMonth','3186rgElQo','push','安全备份当前文件','ccIdM','恢复失败:','GqXcF','未选择应用','pVMzf','sVlBV','选择要恢复的应用','model','ZMaIE','扫描目录:','YXYPi','todig','help','verdict','将对每个测试模型发送真实计费的小请求(max_tokens=1,每模型约几分钱),用于连通性实测','\x20个文件','WwSOH','from','getHours','jHXmG','skipCliTests','删除\x202api.store\x20配置','4072344tUVClu','supported','relative','EROFS','dqmYg','gOELy','180LKmFDJ','code','length','qSQPv','yes','tUVUT','\x20个备份文件','未选择时间点','选择时间点(回车=最新)','\x20个备份)','eOWAG','myNtm','EPERM','Fvpgg','env','--api-base','ThuUh','~/.gemini','VBMPA','ms/','获取分组失败:','~/.codex/config.toml','nEeMX','PAmXP','Cqqwl','map','basename','unlinkSync','查看可用分组(不改配置)','reset\x20报告','无可恢复的备份','DkLFe','将执行:','xPLln','slow','MBGVZ','~/.codex','version','\x20个文件):','ARoLR','JLnBk','共恢复\x20','%userprofile%\x5c.codex','apiBase','dOdij','Lzmzg','rAOEH','XjWZT','\x20→\x20','50613GIhKwS','wqthn','HOME','startsWith','已安全备份\x20','从备份恢复配置','zipPath','nTRBt','bakPath','MxqRr','MChhj','message','getSeconds','bold','join','getDate','toISOString','green','(请用\x20sudo\x20/\x20管理员\x20PowerShell\x20重跑)','qrCnj','ZBQbX','\x20\x20exit\x20','out','dim','TVQxc','NSeEe','如需从备份恢复,请运行:npx\x20@2api-store/activate\x20restore','boruH','BBgsi','\x20\x20request_id','~/.codex/auth.json','144JgUsJp','mKzgM','model:','KEDRk','[试运行]\x20不真实恢复','安全备份:'];_0x4e67=function(){return _0x296c0b;};return _0x4e67();}import{writeFileWithPermission as _0x2975d6,PermissionDeniedError as _0x4ba144}from'./write.mjs';import{renderContent as _0x2d9268,expandPath as _0x5b5618,listModels as _0x20ebc7}from'./render.mjs';import{getCliMeta as _0x5ee762,isDefaultSelected as _0x25dba2}from'./platforms.mjs';import{detectAll as _0x375296}from'./detect.mjs';import{runDiagnose as _0x58947d}from'./diagnose.mjs';import{ask as _0x30a1d3,askSecret as _0x35231d,multiSelect as _0x47b223,select as _0x4929aa,confirm as _0x34f933,closePrompt as _0x3ced5f}from'./prompt.mjs';import{banner as _0x5e198b,ok as _0x3e1f02,fail as _0x4b9df4,warn as _0x183042,info as _0xb8bd2c,step as _0x24ea79,plain as _0x3861df,guide as _0x12c245,chalk as _0x2ee820}from'./ui.mjs';const C='https://2api.store',R=[_0x14467b(0x292),_0x14467b(0x1a2),_0x14467b(0x220),_0x14467b(0x237)],M=[_0x14467b(0x1ce),_0x14467b(0x204),_0x14467b(0x1aa),_0x14467b(0x1ca)],N=[_0x14467b(0x2a1),_0x14467b(0x201),_0x14467b(0x28e)],B=[_0x14467b(0x17d),_0x14467b(0x258),_0x14467b(0x1be)],H=new Set([_0x14467b(0x21d),_0x14467b(0x1e2)]);function K(_0x374a23){const _0x348009=_0x14467b;return _0x374a23[_0x348009(0x20d)](/-([a-z])/g,(_0x61f4d3,_0x56356e)=>_0x56356e[_0x348009(0x1d7)]());}function U(_0x24d0c9){const _0x42b780=_0x14467b,_0x5bf107={'qrCnj':function(_0x242569,_0x1fc1c4){return _0x242569<_0x1fc1c4;},'uvBvs':function(_0x3186f8,_0x46d51e){return _0x3186f8===_0x46d51e;},'XmpLt':_0x42b780(0x253),'QhVcV':function(_0x4e1fff,_0x31e7d9){return _0x4e1fff===_0x31e7d9;},'wqthn':_0x42b780(0x251),'boruH':function(_0x4f9cd8,_0x4e11f7){return _0x4f9cd8===_0x4e11f7;},'tmyIt':_0x42b780(0x28c),'inowj':function(_0x593c03,_0x14864f){return _0x593c03(_0x14864f);}},_0xa5e7a4={'dryRun':!0x1,'_':[]};for(let _0x2c4c0e=0x0;_0x5bf107[_0x42b780(0x197)](_0x2c4c0e,_0x24d0c9[_0x42b780(0x27f)]);_0x2c4c0e++){const _0x3d96c2=_0x24d0c9[_0x2c4c0e];if(_0x5bf107['uvBvs'](_0x5bf107[_0x42b780(0x23c)],_0x3d96c2)||_0x5bf107[_0x42b780(0x241)]('-n',_0x3d96c2))_0xa5e7a4[_0x42b780(0x1f9)]=!0x0;else{if(_0x5bf107['QhVcV'](_0x5bf107[_0x42b780(0x185)],_0x3d96c2)||_0x5bf107[_0x42b780(0x19f)]('-y',_0x3d96c2))_0xa5e7a4['yes']=!0x0;else{if(_0x5bf107[_0x42b780(0x241)](_0x5bf107['tmyIt'],_0x3d96c2))_0xa5e7a4[_0x42b780(0x17e)]=_0x24d0c9[++_0x2c4c0e];else{if(_0x5bf107[_0x42b780(0x242)](_0x42b780(0x226),_0x3d96c2)||_0x5bf107[_0x42b780(0x19f)]('-h',_0x3d96c2))_0xa5e7a4[_0x42b780(0x26d)]=!0x0;else{if(_0x3d96c2[_0x42b780(0x187)]('--')&&_0x3d96c2['includes']('=')){const [_0x51ff97,_0x145864]=_0x3d96c2[_0x42b780(0x1bb)](0x2)[_0x42b780(0x218)](/=(.*)/,0x2);H[_0x42b780(0x1ba)](_0x51ff97)?_0xa5e7a4[_0x5bf107[_0x42b780(0x259)](K,_0x51ff97)]=!0x0:_0xa5e7a4[_0x51ff97]=_0x145864;}else{if(_0x3d96c2[_0x42b780(0x187)]('--')){const _0x337dfc=_0x3d96c2[_0x42b780(0x20d)](/^--/,'');H[_0x42b780(0x1ba)](_0x337dfc)?_0xa5e7a4[_0x5bf107[_0x42b780(0x259)](K,_0x337dfc)]=!0x0:_0xa5e7a4[_0x337dfc]=_0x24d0c9[++_0x2c4c0e];}else _0xa5e7a4['_'][_0x42b780(0x25f)](_0x3d96c2);}}}}}}return _0xa5e7a4;}function D(_0x5f0ff1,_0x3e8ac7){const _0x5cc410=_0x14467b,_0x3cf1cb={'bCgKF':function(_0x3e83f3,_0x44e407,_0x5a14d4){return _0x3e83f3(_0x44e407,_0x5a14d4);}};return _0x3cf1cb[_0x5cc410(0x1df)](_0x5b5618,_0x5f0ff1,{'isWindows':_0x3e8ac7});}function W(_0x3a7e23){const _0x425da3=_0x14467b;return(_0x3a7e23?B:N)[_0x425da3(0x296)](_0x33cd68=>D(_0x33cd68,_0x3a7e23));}const z='\x0a子命令:\x0a\x20\x20restore\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20从备份恢复(扫描\x20~/.codex\x20/\x20~/.claude\x20/\x20~/.gemini\x20下的\x20.bak.*\x20文件)\x0a\x20\x20reset\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20恢复官方默认(删\x202api.store\x20写入的配置,并从最新备份恢复)\x0a\x20\x20refresh-groups\x20\x20\x20刷新分组列表(只展示,不改\x20key/配置)\x0a\x20\x20diagnose\x20\x20\x20\x20\x20\x20\x20\x20\x20诊断连接并生成日志压缩包(环境收集+渠道实测+CLI实测,发给客服排障)\x0a\x0a所有子命令都支持\x20--api-base\x20<url>\x20覆盖端点,restore/reset\x20支持\x20--dry-run。\x0a'[_0x14467b(0x233)]();function F(_0x39af14){const _0xd3add6=_0x14467b,_0x2638dc={'yWKkr':function(_0x5e3cf9,_0x5cd2fe){return _0x5e3cf9<_0x5cd2fe;},'xAiMB':function(_0x397160,_0x4f4289){return _0x397160!=_0x4f4289;},'MQOgg':function(_0x19d537,_0x463e21){return _0x19d537>_0x463e21;},'sdpkg':'slow','EoHmr':_0xd3add6(0x1c1)};return _0x39af14[_0xd3add6(0x1d4)]>=0xc8&&_0x2638dc['yWKkr'](_0x39af14['status'],0x12c)?_0x2638dc['xAiMB'](null,_0x39af14[_0xd3add6(0x24b)])&&_0x2638dc['MQOgg'](_0x39af14[_0xd3add6(0x24b)],0x2710)?_0x2638dc[_0xd3add6(0x247)]:'ok':_0x2638dc[_0xd3add6(0x25a)];}function _0x8873(_0x31e5bc,_0x4890f0){_0x31e5bc=_0x31e5bc-0x178;const _0x4e67c8=_0x4e67();let _0x887319=_0x4e67c8[_0x31e5bc];return _0x887319;}function Y({zipPath:_0x317faa,summary:_0x33315c}){const _0x4cff57=_0x14467b,_0x109134={'DkLFe':function(_0x20be85,_0x14d0f1){return _0x20be85(_0x14d0f1);},'JLnBk':function(_0x4f252c,_0x244b51){return _0x4f252c(_0x244b51);},'GfPtT':function(_0x2d5239,_0x1f4f13){return _0x2d5239>_0x1f4f13;},'Asjtw':'ttfb/总延迟','jHXmG':function(_0x234aec,_0x22c237){return _0x234aec(_0x22c237);},'RxrHL':function(_0x41e532,_0x181b1c){return _0x41e532===_0x181b1c;},'QZoKg':function(_0x242476,_0x2a5e22){return _0x242476===_0x2a5e22;},'TVQxc':_0x4cff57(0x29f),'KEDRk':function(_0x3fccd6,_0xda621a){return _0x3fccd6(_0xda621a);},'HQnze':_0x4cff57(0x250),'GqXcF':_0x4cff57(0x20a),'NAxPC':function(_0x292e06,_0x78940c){return _0x292e06(_0x78940c);},'FZXUr':function(_0x28b5d7,_0x4b147d){return _0x28b5d7!=_0x4b147d;}};console[_0x4cff57(0x1dd)](),_0x109134[_0x4cff57(0x17b)](_0x24ea79,'诊断摘要');const _0x11164c=Array[_0x4cff57(0x1b6)](_0x33315c[_0x4cff57(0x252)])?_0x33315c[_0x4cff57(0x252)]:[];if(_0x109134[_0x4cff57(0x205)](_0x11164c[_0x4cff57(0x27f)],0x0)){const _0x16ab8d=Math['max'](0x6,..._0x11164c[_0x4cff57(0x296)](_0x3947fb=>String(_0x3947fb['model'])[_0x4cff57(0x27f)])),_0x320e72=Math['max'](0x6,..._0x11164c[_0x4cff57(0x296)](_0x14492c=>String(_0x14492c[_0x4cff57(0x26e)]??'-')[_0x4cff57(0x27f)]));_0x109134[_0x4cff57(0x17b)](_0x3861df,_0x2ee820['bold']['cyan']('\x20\x20'+'模型'[_0x4cff57(0x1b0)](_0x16ab8d)+'\x20\x20'+'判定'['padEnd'](_0x320e72)+'\x20\x20'+'状态'[_0x4cff57(0x1b0)](0x6)+'\x20\x20'+_0x109134['Asjtw'][_0x4cff57(0x1b0)](0x12)+_0x4cff57(0x1a1)));for(const _0x199ece of _0x11164c){const _0xb65fa3=_0x109134[_0x4cff57(0x274)](F,_0x199ece),_0x1309b9=String(_0x199ece['verdict']??'-')[_0x4cff57(0x1b0)](_0x320e72),_0x350aee=_0x109134[_0x4cff57(0x1b4)]('ok',_0xb65fa3)?_0x2ee820[_0x4cff57(0x195)](_0x1309b9):_0x109134[_0x4cff57(0x1b9)](_0x109134[_0x4cff57(0x19c)],_0xb65fa3)?_0x2ee820[_0x4cff57(0x256)](_0x1309b9):_0x2ee820['red'](_0x1309b9),_0x5c641a=(_0x199ece['ttfb_ms']??'-')+_0x4cff57(0x290)+(_0x199ece[_0x4cff57(0x1e8)]??'-')+'ms';_0x109134[_0x4cff57(0x1a6)](_0x3861df,'\x20\x20'+_0x109134[_0x4cff57(0x17b)](String,_0x199ece['model'])['padEnd'](_0x16ab8d)+'\x20\x20'+_0x350aee+'\x20\x20'+String(_0x199ece[_0x4cff57(0x1d4)]??_0x109134[_0x4cff57(0x255)])[_0x4cff57(0x1b0)](0x6)+'\x20\x20'+_0x5c641a[_0x4cff57(0x1b0)](0x12)+'\x20\x20'+(_0x199ece['request_id']??'-'));}}else _0x109134[_0x4cff57(0x17b)](_0xb8bd2c,_0x109134[_0x4cff57(0x263)]);const _0x52ee79=Array[_0x4cff57(0x1b6)](_0x33315c['cli_tests'])?_0x33315c['cli_tests']:[];if(_0x109134[_0x4cff57(0x205)](_0x52ee79[_0x4cff57(0x27f)],0x0)){const _0x3b5085=function(_0x4dfabe){const _0x3e0376=_0x4cff57,_0x46691a={};try{const _0x84abf0=_0x109134[_0x3e0376(0x29c)](_0x5b8abe,new Uint8Array(_0x178e02[_0x3e0376(0x1da)](_0x4dfabe))),_0x5b7cae=Object[_0x3e0376(0x1e7)](_0x84abf0)[_0x3e0376(0x20f)](_0x41601a=>_0x41601a[_0x3e0376(0x211)](_0x3e0376(0x206)));if(!_0x5b7cae)return _0x46691a;for(const _0x18decc of Buffer[_0x3e0376(0x272)](_0x84abf0[_0x5b7cae])['toString'](_0x3e0376(0x1de))['split']('\x0a'))if(_0x18decc[_0x3e0376(0x233)]())try{const _0x174a22=JSON[_0x3e0376(0x219)](_0x18decc);_0x174a22&&_0x174a22['cli']&&(_0x46691a[_0x174a22[_0x3e0376(0x228)]]=_0x174a22[_0x3e0376(0x1f4)]);}catch{}}catch{}return _0x46691a;}(_0x317faa),_0x1090d0=Math[_0x4cff57(0x22d)](0x6,..._0x52ee79[_0x4cff57(0x296)](_0x5a9a97=>String(_0x5a9a97['cli'])[_0x4cff57(0x27f)]));for(const _0x204c2e of _0x52ee79){const _0x2c3f57=_0x109134[_0x4cff57(0x1bc)](String,_0x204c2e[_0x4cff57(0x26e)]??'-'),_0x405b9b=_0x109134[_0x4cff57(0x1b4)]('ok',_0x2c3f57)?_0x2ee820[_0x4cff57(0x195)](_0x2c3f57):_0x2ee820['red'](_0x2c3f57),_0x5c39de=_0x109134[_0x4cff57(0x21c)](null,_0x3b5085[_0x204c2e[_0x4cff57(0x228)]])?_0x3b5085[_0x204c2e[_0x4cff57(0x228)]]+'ms':'-';_0x109134['KEDRk'](_0x3861df,'\x20\x20'+_0x109134[_0x4cff57(0x274)](String,_0x204c2e[_0x4cff57(0x228)])[_0x4cff57(0x1b0)](_0x1090d0)+'\x20\x20'+_0x405b9b[_0x4cff57(0x1b0)](0x6)+_0x4cff57(0x199)+(_0x204c2e['exit_code']??_0x4cff57(0x250))+'\x20\x20'+_0x5c39de);}}}export const SUBCOMMANDS={'restore':{'handler':async function(_0x5793c3){const _0x488961=_0x14467b,_0x3cd903={'pVMzf':function(_0x2f715a,_0x32de2b){return _0x2f715a(_0x32de2b);},'fUYIv':'dummy','rAOEH':function(_0x4a8f63,_0x14e2fb){return _0x4a8f63(_0x14e2fb);},'UuvOz':function(_0x5c778a,_0x499c9f){return _0x5c778a>_0x499c9f;},'jxmSW':_0x488961(0x23f),'ccIdM':function(_0x16601d){return _0x16601d();},'DjxNg':function(_0x3872eb,_0x19a9b5){return _0x3872eb(_0x19a9b5);},'JkSxG':function(_0x431d5a,_0x4a7347){return _0x431d5a(_0x4a7347);},'rPRdk':'扫描备份文件','qSQPv':function(_0x24d6f9,_0x1a2c9b){return _0x24d6f9(_0x1a2c9b);},'HhsKh':'【试运行模式\x20--dry-run】不会真实恢复文件','tMzGU':function(_0x353e04,_0x563f92){return _0x353e04===_0x563f92;},'LLZOx':function(_0x33f90b,_0x487db8){return _0x33f90b(_0x487db8);},'gcmtQ':_0x488961(0x1e0),'ZOYOY':function(_0x41cd41,_0x320737){return _0x41cd41(_0x320737);},'CwRMb':function(_0x240d2a,_0x336abf){return _0x240d2a(_0x336abf);},'vKjoa':_0x488961(0x29b),'GHRMt':function(_0x2258b3,_0xcf8611){return _0x2258b3(_0xcf8611);},'NioAw':_0x488961(0x267),'IToFJ':function(_0x2691d5,_0x2d02ef,_0x435bba,_0x3850d3){return _0x2691d5(_0x2d02ef,_0x435bba,_0x3850d3);},'ThuUh':_0x488961(0x215),'mKzgM':function(_0x4d7d5c,_0x3550a2){return _0x4d7d5c>=_0x3550a2;},'NSeEe':_0x488961(0x264),'MDYuS':function(_0x4270d8,_0x4b04d4){return _0x4270d8<_0x4b04d4;},'IAKsO':function(_0x9f793c,_0x2453bf){return _0x9f793c>=_0x2453bf;},'vcoQy':function(_0x3efe94,_0x110d07){return _0x3efe94(_0x110d07);},'Cqqwl':_0x488961(0x284),'VuYWb':_0x488961(0x1a7),'Logiu':function(_0x17b454,_0xe1a508){return _0x17b454(_0xe1a508);},'ARoLR':function(_0x342420,_0x187d51){return _0x342420(_0x187d51);}},_0x1c19a8=_0x3cd903['pVMzf'](U,_0x5793c3);if(_0x1c19a8['help'])return console['log']('npx\x20@2api-store/activate\x20restore\x20[options]\x0a\x0a'+z),0x0;_0x5e198b();const _0x501cf3=_0x3cd903[_0x488961(0x261)](_0x375296);if(!_0x501cf3[_0x488961(0x1d1)][_0x488961(0x278)])return _0x3cd903[_0x488961(0x23e)](_0x4b9df4,_0x488961(0x1b3)+_0x501cf3[_0x488961(0x1d1)][_0x488961(0x178)]),0x1;_0x3cd903[_0x488961(0x22f)](_0x24ea79,_0x3cd903[_0x488961(0x225)]);const _0x4777fa=_0x3cd903['pVMzf'](W,_0x501cf3['os'][_0x488961(0x1c0)]);_0x1c19a8[_0x488961(0x1f9)]&&_0x3cd903['qSQPv'](_0x183042,_0x3cd903['HhsKh']),_0x3cd903[_0x488961(0x280)](_0xb8bd2c,_0x488961(0x26a)+_0x4777fa[_0x488961(0x192)](',\x20'));const _0x13eab6=_0x3cd903[_0x488961(0x181)](_0x167215,_0x4777fa);if(_0x3cd903['tMzGU'](0x0,_0x13eab6[_0x488961(0x27f)]))return _0x3cd903['qSQPv'](_0xb8bd2c,_0x488961(0x24a)),_0x3cd903[_0x488961(0x22f)](_0xb8bd2c,'提示:只有运行过\x20npx\x20@2api-store/activate\x20后才会产生备份文件'),0x0;_0x3cd903['LLZOx'](_0x3e1f02,_0x488961(0x24d)+_0x13eab6[_0x488961(0x27f)]+_0x488961(0x283));const _0x14fed5={'.codex':'Codex\x20CLI','.claude':_0x488961(0x1af),'.gemini':_0x3cd903['gcmtQ']};function _0x5692fe(_0x14a4d3){const _0x3adbe2=_0x488961,_0xd88c69=process[_0x3adbe2(0x28b)][_0x3adbe2(0x186)]||process[_0x3adbe2(0x28b)][_0x3adbe2(0x249)]||'',_0x4fc9af=_0x2a326f[_0x3adbe2(0x279)](_0xd88c69,_0x14a4d3)['replace'](/\\/g,'/')[_0x3adbe2(0x218)]('/')[0x0];return _0x14fed5[_0x4fc9af]||_0x4fc9af;}function _0x44aec7(_0x32ac83){const _0x2395ba=_0x488961;return process[_0x2395ba(0x28b)][_0x2395ba(0x186)]||process[_0x2395ba(0x28b)][_0x2395ba(0x249)],_0x2a326f[_0x2395ba(0x1b1)](_0x32ac83);}const _0x12c22a={};for(const _0x2f0531 of _0x13eab6){const _0x345114=_0x3cd903[_0x488961(0x21f)](_0x44aec7,_0x2f0531[_0x488961(0x25c)]);_0x12c22a[_0x345114]||(_0x12c22a[_0x345114]=[]),_0x12c22a[_0x345114]['push'](_0x2f0531);}const _0x23072b=Object['keys'](_0x12c22a);if(_0x3cd903[_0x488961(0x232)](0x0,_0x23072b[_0x488961(0x27f)]))return _0x3cd903['CwRMb'](_0xb8bd2c,_0x3cd903[_0x488961(0x1ae)]),0x0;console['log'](),_0x3cd903['GHRMt'](_0x24ea79,_0x3cd903[_0x488961(0x212)]);const _0x1ec464=_0x23072b[_0x488961(0x296)](_0x379045=>{const _0x6c0073=_0x488961,_0x7381e3=_0x3cd903[_0x6c0073(0x265)](_0x5692fe,_0x2a326f['join'](_0x379045,_0x3cd903[_0x6c0073(0x217)])),_0x4fd3d3=_0x12c22a[_0x379045][_0x6c0073(0x27f)];return{'label':_0x2ee820[_0x6c0073(0x1f3)](_0x7381e3)+'('+_0x4fd3d3+_0x6c0073(0x286),'dir':_0x379045};}),_0x5469ad=await _0x3cd903[_0x488961(0x23d)](_0x4929aa,_0x3cd903[_0x488961(0x28d)],_0x1ec464,{'defaultIndex':0x0});if(_0x5469ad<0x0||_0x3cd903[_0x488961(0x1a4)](_0x5469ad,_0x1ec464[_0x488961(0x27f)]))return _0x4b9df4(_0x3cd903[_0x488961(0x19d)]),0x1;const _0x50cc00=_0x1ec464[_0x5469ad]['dir'],_0xa7efe7=_0x5692fe(_0x2a326f['join'](_0x50cc00,_0x3cd903[_0x488961(0x217)])),_0x36013d=_0x12c22a[_0x50cc00][_0x488961(0x1f6)]((_0x1dea72,_0x347868)=>_0x347868['mtime']-_0x1dea72[_0x488961(0x210)]),_0x2a0e1b={},_0x2ec879=[];for(const _0x5f0079 of _0x36013d){const _0x1dca6b=_0x2a326f['basename'](_0x5f0079[_0x488961(0x18c)])['match'](/\.bak\.(.+)$/),_0x5adeba=(_0x1dca6b?_0x1dca6b[0x1]:'')[_0x488961(0x20d)](/-\d{3}Z$/,'Z');_0x2a0e1b[_0x5adeba]||(_0x2a0e1b[_0x5adeba]=[],_0x2ec879['push'](_0x5adeba)),_0x2a0e1b[_0x5adeba]['push'](_0x5f0079);}for(const _0x5787eb of _0x2ec879){const _0x569a51=_0x2a0e1b[_0x5787eb],_0x59da8c={};for(const _0x23fcdc of _0x569a51)(!_0x59da8c[_0x23fcdc['origPath']]||_0x3cd903[_0x488961(0x1ee)](_0x23fcdc[_0x488961(0x210)],_0x59da8c[_0x23fcdc[_0x488961(0x25c)]][_0x488961(0x210)]))&&(_0x59da8c[_0x23fcdc[_0x488961(0x25c)]]=_0x23fcdc);_0x2a0e1b[_0x5787eb]=Object[_0x488961(0x222)](_0x59da8c)['sort']((_0x517991,_0x3fd60b)=>_0x3fd60b[_0x488961(0x210)]-_0x517991[_0x488961(0x210)]);}console[_0x488961(0x1dd)](),_0x24ea79('选择恢复时间点('+_0xa7efe7+')');const _0x30d97d=_0x2ec879['map'](_0x2ce40e=>{const _0x20473f=_0x488961,_0x2803b7=_0x2a0e1b[_0x2ce40e],_0x4db038=_0x2803b7[_0x20473f(0x296)](_0x2c8b08=>_0x2a326f[_0x20473f(0x297)](_0x2c8b08[_0x20473f(0x25c)]))[_0x20473f(0x192)](',\x20'),_0xda0d3f=function(_0x1aae5a){const _0x1c9ffd=_0x20473f;try{const _0x5b8cd6=new Date(_0x1aae5a),_0x2f4b2d=_0x46c710=>String(_0x46c710)['padStart'](0x2,'0');return _0x5b8cd6[_0x1c9ffd(0x1d3)]()+'-'+_0x3cd903['pVMzf'](_0x2f4b2d,_0x5b8cd6[_0x1c9ffd(0x25d)]()+0x1)+'-'+_0x2f4b2d(_0x5b8cd6[_0x1c9ffd(0x193)]())+'\x20'+_0x3cd903[_0x1c9ffd(0x181)](_0x2f4b2d,_0x5b8cd6[_0x1c9ffd(0x273)]())+':'+_0x2f4b2d(_0x5b8cd6[_0x1c9ffd(0x235)]())+':'+_0x2f4b2d(_0x5b8cd6[_0x1c9ffd(0x190)]());}catch{return new Date(_0x1aae5a)[_0x1c9ffd(0x194)]();}}(_0x2803b7[0x0][_0x20473f(0x210)]),_0xf31900=[];for(const _0xae94b1 of _0x2803b7)try{const _0x5198da=_0x178e02[_0x20473f(0x1da)](_0xae94b1[_0x20473f(0x18c)],_0x20473f(0x1de));if(!_0xf31900['find'](_0x7a6038=>_0x7a6038[_0x20473f(0x1b2)]('…'))){const _0x9190fe=_0x5198da[_0x20473f(0x1f8)](/sk-([a-zA-Z0-9]{10,})/);if(_0x9190fe)_0xf31900[_0x20473f(0x25f)](_0x20473f(0x1f5)+_0x9190fe[0x1][_0x20473f(0x1bb)](-0x6));else{const _0x19539d=_0x5198da[_0x20473f(0x1f8)](/(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)["':\s]+["']([a-zA-Z0-9._-]{10,})["']/);if(_0x19539d)_0xf31900['push'](_0x20473f(0x1cd)+_0x19539d[0x1][_0x20473f(0x1bb)](-0x6));else{const _0x27ff6f=_0x5198da[_0x20473f(0x1f8)](/export\s+(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)=(["']?)([a-zA-Z0-9._-]{10,})/);_0x27ff6f&&_0xf31900[_0x20473f(0x25f)](_0x20473f(0x1cd)+_0x27ff6f[0x2][_0x20473f(0x1bb)](-0x6));}}}if(!_0xf31900[_0x20473f(0x20f)](_0x2d5154=>_0x2d5154[_0x20473f(0x187)]('http'))){const _0x1877cf=_0x5198da[_0x20473f(0x1f8)](/(https?:\/\/[^\s"'`}]+)/);_0x1877cf&&_0xf31900[_0x20473f(0x25f)](_0x1877cf[0x1][_0x20473f(0x20d)](/\/+$/,''));}if(!_0xf31900[_0x20473f(0x20f)](_0x8d2d02=>_0x8d2d02[_0x20473f(0x187)](_0x20473f(0x268)))){const _0x521440=_0x5198da[_0x20473f(0x1f8)](/(?:^|\n)\s*model\s*[=:]\s*["']?([a-zA-Z0-9][\w.-]+)/);_0x521440&&_0xf31900[_0x20473f(0x25f)](_0x20473f(0x1a5)+_0x521440[0x1]);}}catch{}const _0x5c19f5=_0x3cd903[_0x20473f(0x1ee)](_0xf31900[_0x20473f(0x27f)],0x0)?'\x20'+_0x2ee820['yellow'](_0xf31900[_0x20473f(0x192)](_0x3cd903['jxmSW'])):'';return{'label':_0x2ee820[_0x20473f(0x19b)](_0xda0d3f)+'('+_0x2803b7[_0x20473f(0x27f)]+_0x20473f(0x1cf)+_0x4db038+')'+_0x5c19f5,'ts':_0x2ce40e,'group':_0x2803b7};}),_0x523eb0=await _0x3cd903[_0x488961(0x23d)](_0x4929aa,_0x488961(0x285),_0x30d97d,{'defaultIndex':0x0});if(_0x3cd903[_0x488961(0x1c9)](_0x523eb0,0x0)||_0x3cd903[_0x488961(0x1f0)](_0x523eb0,_0x30d97d[_0x488961(0x27f)]))return _0x3cd903[_0x488961(0x1c6)](_0x4b9df4,_0x3cd903[_0x488961(0x295)]),0x1;const _0x1c72c6=_0x30d97d[_0x523eb0][_0x488961(0x1c4)];console['log'](),_0xb8bd2c(_0x488961(0x20e)+_0xa7efe7+'('+_0x1c72c6[_0x488961(0x27f)]+_0x488961(0x179));for(const _0x248119 of _0x1c72c6)_0x3cd903[_0x488961(0x22f)](_0xb8bd2c,'\x20\x20'+_0x2a326f[_0x488961(0x297)](_0x248119[_0x488961(0x25c)])+_0x488961(0x24f)+_0x2a326f[_0x488961(0x297)](_0x248119[_0x488961(0x18c)]));if(_0x1c19a8[_0x488961(0x1f9)])return _0x3cd903['DjxNg'](_0x183042,_0x3cd903[_0x488961(0x1d0)]),0x0;let _0x594706=0x0;for(const _0x32e7ca of _0x1c72c6){if(_0x178e02[_0x488961(0x22a)](_0x32e7ca['origPath']))try{const _0x5db09a=_0x3cd903[_0x488961(0x1b5)](_0xdaa780,_0x32e7ca[_0x488961(0x25c)]);_0x5db09a&&_0x3cd903[_0x488961(0x17a)](_0xb8bd2c,_0x488961(0x1a8)+_0x2a326f[_0x488961(0x297)](_0x32e7ca['origPath'])+_0x488961(0x183)+_0x2a326f['basename'](_0x5db09a));}catch{}try{_0x49bc65(_0x32e7ca[_0x488961(0x18c)],_0x32e7ca[_0x488961(0x25c)]),_0x3cd903[_0x488961(0x1dc)](_0x3e1f02,_0x488961(0x1e4)+_0x32e7ca[_0x488961(0x25c)]),_0x594706++;}catch(_0x366df1){_0x3cd903[_0x488961(0x23e)](_0x4b9df4,_0x488961(0x262)+_0x32e7ca[_0x488961(0x25c)]+'('+_0x366df1[_0x488961(0x18f)]+')');}}return _0xb8bd2c(_0x488961(0x17c)+_0x594706+_0x488961(0x270)),_0x594706>0x0?0x0:0x3;},'description':_0x14467b(0x189)},'reset':{'handler':async function(_0x321110){const _0x180588=_0x14467b,_0x1d5056={'dOdij':function(_0x8b08aa){return _0x8b08aa();},'xPLln':function(_0x4fc72a,_0x439f17){return _0x4fc72a(_0x439f17);},'YXYPi':_0x180588(0x208),'lVQnX':function(_0x4e1952,_0x278717){return _0x4e1952===_0x278717;},'xsvgD':function(_0x40d866,_0x567a9e){return _0x40d866(_0x567a9e);},'vCLmN':_0x180588(0x209),'SBztY':_0x180588(0x19e),'nqKIT':_0x180588(0x1fc),'gLJql':function(_0x466eff,_0x48e5a8){return _0x466eff>_0x48e5a8;},'PAmXP':_0x180588(0x214),'MChhj':'确认操作','toOnx':_0x180588(0x1ad),'ttmOU':'\x20\x20\x20删除前会再备份一次(.bak.reset.<时间戳>),可手动恢复。','bNORP':function(_0x1d483f,_0x5264ef,_0x5999bb){return _0x1d483f(_0x5264ef,_0x5999bb);},'tUVUT':'确认\x20reset\x20吗?','wleBX':function(_0x225b8a,_0x43a60e){return _0x225b8a(_0x43a60e);},'lguyK':_0x180588(0x1e5),'IMrVn':function(_0x1132e6,_0x300b18){return _0x1132e6(_0x300b18);},'MBGVZ':_0x180588(0x29d),'nTRBt':function(_0x1fb877,_0x39f1ba){return _0x1fb877(_0x39f1ba);},'rpdfi':function(_0x507fd9,_0x196cc6){return _0x507fd9>_0x196cc6;},'cejBd':function(_0x5b7ead,_0x4ee541){return _0x5b7ead(_0x4ee541);},'XgxOU':_0x180588(0x260),'cuKva':function(_0xdd602b,_0x22486b){return _0xdd602b(_0x22486b);},'WwSOH':function(_0x15681c,_0xf76bbc){return _0x15681c(_0xf76bbc);},'eOWAG':function(_0x4eb90f,_0x24aed4){return _0x4eb90f>_0x24aed4;},'MxqRr':_0x180588(0x276),'UPoTW':function(_0x1d3d70,_0x5909df){return _0x1d3d70(_0x5909df);},'BBgsi':_0x180588(0x1ab),'Lzmzg':function(_0x1d4866,_0x1b9bc1){return _0x1d4866===_0x1b9bc1;},'VBMPA':_0x180588(0x289),'iPPAa':function(_0x370c8c,_0x5c582c){return _0x370c8c===_0x5c582c;},'sYFqO':function(_0x191388,_0x3d6fa5){return _0x191388(_0x3d6fa5);},'nEeMX':_0x180588(0x238),'dqmYg':function(_0x1f6aa7,_0x173bb4){return _0x1f6aa7(_0x173bb4);},'ZBQbX':_0x180588(0x29a),'iHrDl':'安全备份位置(如需撤销\x20reset,手动恢复这些文件):','todig':_0x180588(0x21a)},_0xefe07c=U(_0x321110);if(_0xefe07c[_0x180588(0x26d)])return console[_0x180588(0x1dd)](_0x180588(0x22e)+z),0x0;_0x1d5056[_0x180588(0x17f)](_0x5e198b);const _0x426773=_0x375296();if(!_0x426773[_0x180588(0x1d1)][_0x180588(0x278)])return _0x1d5056['xPLln'](_0x4b9df4,'需要\x20node\x20>=\x2018,当前\x20'+_0x426773[_0x180588(0x1d1)]['version']),0x1;var _0x3f82b2;_0x24ea79(_0x1d5056[_0x180588(0x26b)]);const _0x2fc239=((_0x3f82b2=_0x426773['os']['isWindows'])?M:R)[_0x180588(0x296)](_0x6d051f=>D(_0x6d051f,_0x3f82b2))['filter'](_0x3b227f=>{const _0x319eda=_0x180588;try{return _0x178e02[_0x319eda(0x22a)](_0x3b227f);}catch{return!0x1;}});if(_0x1d5056[_0x180588(0x202)](0x0,_0x2fc239[_0x180588(0x27f)]))return _0x1d5056[_0x180588(0x1f7)](_0x183042,_0x1d5056[_0x180588(0x227)]),_0x1d5056['xPLln'](_0xb8bd2c,_0x1d5056['SBztY']),0x0;_0xb8bd2c(_0x1d5056[_0x180588(0x23b)]),_0x2fc239[_0x180588(0x1b8)](_0x2699da=>_0x3861df(_0x180588(0x24e)+_0x2ee820[_0x180588(0x256)](_0x2699da))),console[_0x180588(0x1dd)]();const _0x2cc13a=W(_0x426773['os'][_0x180588(0x1c0)]),_0xce75b5=_0x1d5056[_0x180588(0x29e)](_0x167215,_0x2cc13a),_0x17192a=_0x1d5056['gLJql'](_0xce75b5[_0x180588(0x27f)],0x0);if(_0x17192a?_0x3e1f02('发现\x20'+_0xce75b5[_0x180588(0x27f)]+'\x20个备份文件(reset\x20后将尝试恢复每个配置的最新备份)'):_0x183042(_0x1d5056[_0x180588(0x294)]),console[_0x180588(0x1dd)](),_0x24ea79(_0x1d5056[_0x180588(0x18e)]),_0x1d5056[_0x180588(0x29e)](_0x183042,_0x1d5056[_0x180588(0x1eb)]),_0x183042(_0x1d5056[_0x180588(0x1fd)]),!await _0x1d5056[_0x180588(0x1fa)](_0x34f933,_0x1d5056[_0x180588(0x282)],{'defaultValue':!0x1}))return _0x3861df(_0x180588(0x21e)),0x0;if(console['log'](),_0xefe07c[_0x180588(0x1f9)])return _0x1d5056['wleBX'](_0x183042,_0x1d5056['lguyK']),_0x1d5056[_0x180588(0x243)](_0xb8bd2c,_0x1d5056[_0x180588(0x2a0)]),_0x2fc239[_0x180588(0x1b8)](_0x7a7b85=>_0x3861df('\x20\x20-\x20删除\x20'+_0x7a7b85)),_0x17192a&&(_0x1d5056[_0x180588(0x18b)](_0xb8bd2c,_0x180588(0x20c)),_0xce75b5[_0x180588(0x1bb)](0x0,0x5)[_0x180588(0x1b8)](_0x4d345a=>_0x3861df(_0x180588(0x24e)+_0x4d345a[_0x180588(0x18c)]+_0x180588(0x183)+_0x4d345a[_0x180588(0x25c)])),_0x1d5056['rpdfi'](_0xce75b5[_0x180588(0x27f)],0x5)&&_0x3861df(_0x180588(0x1d8)+_0xce75b5[_0x180588(0x27f)]+_0x180588(0x286))),0x0;_0x1d5056['cejBd'](_0x24ea79,_0x1d5056[_0x180588(0x1e1)]);const _0x37b151=[];for(const _0x41ad42 of _0x2fc239)try{const _0x99eac6=_0x41ad42+_0x180588(0x1fb)+new Date()[_0x180588(0x194)]()[_0x180588(0x20d)](/[:.]/g,'-');_0x178e02[_0x180588(0x234)](_0x41ad42,_0x99eac6),_0x37b151['push'](_0x99eac6),_0x1d5056['cuKva'](_0x3861df,_0x180588(0x23a)+_0x41ad42+_0x180588(0x183)+_0x99eac6);}catch(_0x3fb554){_0x1d5056[_0x180588(0x271)](_0x4b9df4,'安全备份失败\x20'+_0x41ad42+':'+_0x3fb554[_0x180588(0x18f)]+_0x180588(0x1d5));}_0x1d5056[_0x180588(0x287)](_0x37b151['length'],0x0)&&_0x1d5056['cejBd'](_0x3e1f02,_0x180588(0x188)+_0x37b151['length']+_0x180588(0x270)),console[_0x180588(0x1dd)](),_0x24ea79(_0x1d5056[_0x180588(0x18d)]);const _0x52a2e2=[];for(const _0x533e15 of _0x2fc239)try{_0x178e02[_0x180588(0x298)](_0x533e15),_0x1d5056['UPoTW'](_0x3e1f02,_0x180588(0x239)+_0x533e15),_0x52a2e2[_0x180588(0x25f)](_0x533e15);}catch(_0x1c91ca){_0x1d5056['lVQnX'](_0x1d5056[_0x180588(0x1a0)],_0x1c91ca[_0x180588(0x27e)])||_0x1d5056[_0x180588(0x180)](_0x1d5056[_0x180588(0x28f)],_0x1c91ca['code'])||_0x1d5056['iPPAa'](_0x180588(0x27a),_0x1c91ca[_0x180588(0x27e)])?_0x4b9df4(_0x180588(0x1ef)+_0x533e15+_0x180588(0x196)):_0x1d5056[_0x180588(0x224)](_0x4b9df4,'删除失败\x20'+_0x533e15+':'+_0x1c91ca[_0x180588(0x18f)]);}if(console[_0x180588(0x1dd)](),_0x17192a){_0x1d5056[_0x180588(0x203)](_0x24ea79,_0x1d5056[_0x180588(0x293)]);const _0x59c641=new Map();for(const _0x2b47a1 of _0xce75b5){const _0x46bbaa=_0x59c641[_0x180588(0x1ed)](_0x2b47a1[_0x180588(0x25c)]);(!_0x46bbaa||_0x1d5056[_0x180588(0x1e6)](_0x2b47a1[_0x180588(0x210)],_0x46bbaa[_0x180588(0x210)]))&&_0x59c641[_0x180588(0x246)](_0x2b47a1['origPath'],_0x2b47a1);}let _0x418a28=0x0;for(const [_0x4ffa0f,_0x57ecd1]of _0x59c641)try{_0x1d5056[_0x180588(0x1fa)](_0x49bc65,_0x57ecd1[_0x180588(0x18c)],_0x4ffa0f),_0x1d5056[_0x180588(0x27b)](_0x3e1f02,'已恢复:'+_0x57ecd1[_0x180588(0x18c)]+'\x20→\x20'+_0x4ffa0f),_0x418a28++;}catch(_0x1bbec1){_0x183042('恢复失败\x20'+_0x4ffa0f+':'+_0x1bbec1['message']+'(文件已删除,未恢复)');}_0x418a28>0x0&&_0xb8bd2c(_0x180588(0x20b)+_0x418a28+_0x180588(0x270)),console[_0x180588(0x1dd)]();}return _0x1d5056[_0x180588(0x271)](_0x24ea79,_0x1d5056[_0x180588(0x198)]),_0x3e1f02(_0x180588(0x231)+_0x52a2e2[_0x180588(0x27f)]+_0x180588(0x230)),_0x1d5056[_0x180588(0x287)](_0x37b151['length'],0x0)&&(_0x1d5056['IMrVn'](_0xb8bd2c,_0x1d5056[_0x180588(0x1a9)]),_0x37b151[_0x180588(0x1b8)](_0x52dac6=>_0x3861df('\x20\x20-\x20'+_0x52dac6))),_0x1d5056[_0x180588(0x271)](_0xb8bd2c,_0x1d5056[_0x180588(0x26c)]),_0x1d5056[_0x180588(0x287)](_0x52a2e2[_0x180588(0x27f)],0x0)?0x0:0x1;},'description':_0x14467b(0x1c5)},'refresh-groups':{'handler':async function(_0x4ddde9){const _0x418fd6=_0x14467b,_0x3315cf={'MbNzV':function(_0x4eae88,_0x580865){return _0x4eae88(_0x580865);},'MQUkV':function(_0x1c9ac7){return _0x1c9ac7();},'SHKYA':function(_0x3d38fa){return _0x3d38fa();},'iZsfQ':function(_0x50b578,_0x14015b){return _0x50b578===_0x14015b;},'vqZcN':function(_0x34056d,_0x270657){return _0x34056d(_0x270657);},'yLyqy':_0x418fd6(0x1c8),'sVlBV':function(_0x378804,_0x1b4201){return _0x378804(_0x1b4201);},'HvfAp':_0x418fd6(0x1bd),'Fvpgg':function(_0x11bdba,_0x376f12){return _0x11bdba(_0x376f12);},'gOELy':function(_0xc6f22c,_0x1f36c4){return _0xc6f22c+_0x1f36c4;},'XjWZT':function(_0x13bb7e,_0x367223){return _0x13bb7e(_0x367223);},'mRJvp':_0x418fd6(0x24c),'zdTlJ':_0x418fd6(0x22c),'WpBDC':function(_0x40d73f,_0x4edf33){return _0x40d73f(_0x4edf33);},'myNtm':_0x418fd6(0x1d9),'Snlcu':'(本命令仅展示分组,不修改\x20API\x20Key\x20或配置文件)'},_0x3e1178=_0x3315cf[_0x418fd6(0x248)](U,_0x4ddde9);if(_0x3e1178['help'])return console[_0x418fd6(0x1dd)](_0x418fd6(0x257)+z),0x0;_0x3315cf[_0x418fd6(0x1f1)](_0x5e198b);const _0x3fec42=_0x3315cf[_0x418fd6(0x1bf)](_0x375296);if(!_0x3fec42[_0x418fd6(0x1d1)]['supported'])return _0x4b9df4('需要\x20node\x20>=\x2018,当前\x20'+_0x3fec42[_0x418fd6(0x1d1)]['version']),0x1;const _0x379392=_0x3e1178['apiBase']||process[_0x418fd6(0x28b)][_0x418fd6(0x1e9)]||C;_0x3315cf[_0x418fd6(0x248)](_0xb8bd2c,'API\x20端点:'+_0x379392),console[_0x418fd6(0x1dd)](),_0x24ea79(_0x418fd6(0x1b7));let _0x53899f=[];try{_0x53899f=await _0x3315cf['MbNzV'](_0x403c03,{'apiBase':_0x379392});}catch(_0x411b6e){return _0x3315cf[_0x418fd6(0x248)](_0x4b9df4,_0x418fd6(0x291)+_0x411b6e['message']),0x1;}if(_0x3315cf[_0x418fd6(0x240)](0x0,_0x53899f['length']))return _0x3315cf['vqZcN'](_0x183042,_0x3315cf['yLyqy']),_0x3315cf[_0x418fd6(0x266)](_0xb8bd2c,_0x3315cf[_0x418fd6(0x200)]),_0xb8bd2c('当前端点:'+_0x379392+_0x418fd6(0x236)),0x0;_0x3315cf[_0x418fd6(0x28a)](_0x3e1f02,_0x418fd6(0x221)+_0x53899f[_0x418fd6(0x27f)]+_0x418fd6(0x254)),console[_0x418fd6(0x1dd)](),_0x3315cf[_0x418fd6(0x248)](_0x24ea79,_0x418fd6(0x207));const _0x58e355=Math['max'](0x4,..._0x53899f[_0x418fd6(0x296)](_0x500cc8=>String(_0x500cc8['id']??'')[_0x418fd6(0x27f)])),_0x45ce62=Math[_0x418fd6(0x22d)](0x6,..._0x53899f[_0x418fd6(0x296)](_0xa311e=>String(_0xa311e[_0x418fd6(0x229)]??'')[_0x418fd6(0x27f)])),_0x426c53='\x20\x20'+'ID'[_0x418fd6(0x1b0)](_0x58e355)+'\x20\x20'+'名称'['padEnd'](_0x45ce62)+_0x418fd6(0x1db);return _0x3861df(_0x2ee820[_0x418fd6(0x191)][_0x418fd6(0x1f3)](_0x426c53)),_0x3861df(_0x2ee820['dim'](_0x3315cf[_0x418fd6(0x27c)]('\x20\x20','─'['repeat'](_0x3315cf[_0x418fd6(0x27c)](_0x3315cf[_0x418fd6(0x27c)](_0x58e355,_0x45ce62),0xf))))),_0x53899f[_0x418fd6(0x1b8)]((_0x22db99,_0x539f47)=>{const _0x2378df=_0x418fd6,_0x4bec47=String(_0x22db99['id']??'')[_0x2378df(0x1b0)](_0x58e355),_0x7bdb67=String(_0x22db99['name']??'')[_0x2378df(0x1b0)](_0x45ce62),_0x82e833='\x20\x20'+_0x2ee820[_0x2378df(0x256)](_0x4bec47)+'\x20\x20'+_0x2ee820[_0x2378df(0x195)](_0x7bdb67);_0x3315cf[_0x2378df(0x248)](_0x3861df,_0x82e833);}),console[_0x418fd6(0x1dd)](),_0x3315cf[_0x418fd6(0x182)](_0xb8bd2c,_0x3315cf['mRJvp']),_0x3861df(_0x3315cf[_0x418fd6(0x1c2)]),_0x3315cf['WpBDC'](_0x3861df,_0x3315cf[_0x418fd6(0x288)]),_0xb8bd2c(_0x3315cf[_0x418fd6(0x216)]),0x0;},'description':_0x14467b(0x299)},'diagnose':{'handler':async function(_0x4799b7){const _0x5ac178=_0x14467b,_0x4aa2e1={'cfXaF':function(_0x2ec8b0,_0x93d39a){return _0x2ec8b0(_0x93d39a);},'MlwTd':function(_0x3c5bea){return _0x3c5bea();},'dDFQL':function(_0xa67a10,_0x308a2f){return _0xa67a10===_0x308a2f;},'wsmlC':_0x5ac178(0x1f2),'Sroxv':_0x5ac178(0x26f),'ZMaIE':function(_0x14e016,_0x13986b){return _0x14e016(_0x13986b);},'lhCkh':function(_0x406914,_0x495628){return _0x406914(_0x495628);},'DxkxZ':function(_0x28288b,_0x2f87e0){return _0x28288b(_0x2f87e0);},'rWzqT':_0x5ac178(0x1c3)},_0x2926f9=_0x4aa2e1['cfXaF'](U,_0x4799b7);if(_0x2926f9[_0x5ac178(0x26d)])return console[_0x5ac178(0x1dd)](_0x5ac178(0x244)+z),0x0;_0x4aa2e1[_0x5ac178(0x1d6)](_0x5e198b);const _0x1862e8=_0x375296();if(!_0x1862e8[_0x5ac178(0x1d1)][_0x5ac178(0x278)])return _0x4b9df4(_0x5ac178(0x1b3)+_0x1862e8['node'][_0x5ac178(0x178)]),0x1;const _0x2849ce=_0x2926f9[_0x5ac178(0x17e)]||process['env'][_0x5ac178(0x1e9)]||C;_0x4aa2e1['cfXaF'](_0xb8bd2c,_0x5ac178(0x22b)+_0x2849ce);const _0x2d9725={'yes':_0x4aa2e1['dDFQL'](!0x0,_0x2926f9[_0x5ac178(0x281)]),'models':_0x4aa2e1[_0x5ac178(0x1ea)]==typeof _0x2926f9['model']?_0x2926f9[_0x5ac178(0x268)]:void 0x0,'skipCliTests':_0x4aa2e1[_0x5ac178(0x1cc)](!0x0,_0x2926f9[_0x5ac178(0x275)]),'outDir':_0x2926f9[_0x5ac178(0x19a)]};let _0x2f30cf;_0x2d9725['yes']||_0x4aa2e1[_0x5ac178(0x21b)](_0xb8bd2c,_0x4aa2e1['Sroxv']);try{_0x2f30cf=await _0x58947d({'apiBase':_0x2849ce,'opts':_0x2d9725,'ui':{'banner':_0x5e198b,'ok':_0x3e1f02,'fail':_0x4b9df4,'warn':_0x183042,'info':_0xb8bd2c,'step':_0x24ea79,'plain':_0x3861df,'guide':_0x12c245,'chalk':_0x2ee820}});}catch(_0x4b39f5){return _0x4b9df4(_0x5ac178(0x1cb)+(_0x4b39f5?.[_0x5ac178(0x18f)]||_0x4b39f5)),0x1;}return _0x4aa2e1[_0x5ac178(0x269)](Y,_0x2f30cf),_0x4aa2e1[_0x5ac178(0x1c7)](_0x3e1f02,_0x5ac178(0x25b)+_0x2f30cf[_0x5ac178(0x18a)]),_0x4aa2e1[_0x5ac178(0x1ec)](_0xb8bd2c,_0x4aa2e1[_0x5ac178(0x1ac)]),0x0;},'description':_0x14467b(0x1e3)}};export const SUBCOMMAND_NAMES=new Set(Object[_0x14467b(0x1e7)](SUBCOMMANDS));export{z as SUB_HELP};
1
+ const _0x5cd6d7=_0x2c8f;(function(_0x285a92,_0x265597){const _0x2acf97=_0x2c8f,_0x241d8f=_0x285a92();while(!![]){try{const _0x5a4152=-parseInt(_0x2acf97(0x17e))/0x1*(-parseInt(_0x2acf97(0x151))/0x2)+-parseInt(_0x2acf97(0x136))/0x3+-parseInt(_0x2acf97(0xbf))/0x4+-parseInt(_0x2acf97(0x182))/0x5*(parseInt(_0x2acf97(0xa6))/0x6)+-parseInt(_0x2acf97(0xc8))/0x7*(parseInt(_0x2acf97(0x12c))/0x8)+-parseInt(_0x2acf97(0x18f))/0x9*(-parseInt(_0x2acf97(0x1a0))/0xa)+parseInt(_0x2acf97(0x131))/0xb;if(_0x5a4152===_0x265597)break;else _0x241d8f['push'](_0x241d8f['shift']());}catch(_0x5d2790){_0x241d8f['push'](_0x241d8f['shift']());}}}(_0xbdf2,0xd80ff));import _0x18ed1e from'node:fs';import _0x20193c from'node:path';import _0x370317 from'node:os';import{unzipSync as _0x547d18}from'fflate';import{backupFile as _0x3941ea,listBackups as _0x180bc6,restoreBackup as _0x463f1f}from'./backup.mjs';import{cliActivate as _0x449610,listGroups as _0x110562}from'./api.mjs';import{writeFileWithPermission as _0x31805,PermissionDeniedError as _0x35086a}from'./write.mjs';import{renderContent as _0x35866a,expandPath as _0x301dfa,listModels as _0x5231e0}from'./render.mjs';import{getCliMeta as _0x96a2c2,isDefaultSelected as _0x49afcf}from'./platforms.mjs';import{detectAll as _0x739076}from'./detect.mjs';import{runDiagnose as _0x1893a0}from'./diagnose.mjs';import{ask as _0x364e63,askSecret as _0x523f26,multiSelect as _0x191412,select as _0x22e00b,confirm as _0x217c99,closePrompt as _0x337834}from'./prompt.mjs';import{banner as _0x249a72,ok as _0x159efd,fail as _0x59e962,warn as _0x2378ba,info as _0x21e766,step as _0x10d1a2,plain as _0x324f1c,guide as _0x2d7ebd,chalk as _0x4eb3c3}from'./ui.mjs';const C=_0x5cd6d7(0x16b),R=[_0x5cd6d7(0x19b),_0x5cd6d7(0x193),_0x5cd6d7(0xd1),_0x5cd6d7(0x121)],M=['%userprofile%\x5c.codex\x5cconfig.toml',_0x5cd6d7(0x137),'%userprofile%\x5c.claude\x5csettings.json','%userprofile%\x5c.gemini\x5csettings.json'],N=[_0x5cd6d7(0x11b),'~/.claude',_0x5cd6d7(0x19d)],B=['%userprofile%\x5c.codex',_0x5cd6d7(0xf2),_0x5cd6d7(0x141)],H=new Set([_0x5cd6d7(0xbb),_0x5cd6d7(0x9f)]);function K(_0x5a5ac5){return _0x5a5ac5['replace'](/-([a-z])/g,(_0x4bbc27,_0x2d5c73)=>_0x2d5c73['toUpperCase']());}function _0x2c8f(_0xb8b52f,_0x462e1d){_0xb8b52f=_0xb8b52f-0x8a;const _0xbdf282=_0xbdf2();let _0x2c8fcc=_0xbdf282[_0xb8b52f];return _0x2c8fcc;}function U(_0x24c069){const _0x46fa64=_0x5cd6d7,_0x1e5125={'tXANq':function(_0x36354f,_0x21f187){return _0x36354f<_0x21f187;},'hHErb':function(_0x3b7330,_0x5a4cc6){return _0x3b7330===_0x5a4cc6;},'IXoJE':'--dry-run','IMfdl':_0x46fa64(0xe0),'YxLrY':_0x46fa64(0x9a),'FGQij':function(_0x395456,_0x54b9aa){return _0x395456===_0x54b9aa;},'fuNHy':function(_0x951530,_0x1c3609){return _0x951530(_0x1c3609);}},_0x1cd55f={'dryRun':!0x1,'_':[]};for(let _0x224fdb=0x0;_0x1e5125['tXANq'](_0x224fdb,_0x24c069['length']);_0x224fdb++){const _0x17b62f=_0x24c069[_0x224fdb];if(_0x1e5125['hHErb'](_0x1e5125['IXoJE'],_0x17b62f)||_0x1e5125[_0x46fa64(0x12f)]('-n',_0x17b62f))_0x1cd55f[_0x46fa64(0xd9)]=!0x0;else{if(_0x1e5125['IMfdl']===_0x17b62f||_0x1e5125[_0x46fa64(0x12f)]('-y',_0x17b62f))_0x1cd55f['yes']=!0x0;else{if(_0x1e5125[_0x46fa64(0x12f)](_0x46fa64(0x174),_0x17b62f))_0x1cd55f[_0x46fa64(0x1a2)]=_0x24c069[++_0x224fdb];else{if(_0x1e5125[_0x46fa64(0xf3)]===_0x17b62f||_0x1e5125[_0x46fa64(0x128)]('-h',_0x17b62f))_0x1cd55f[_0x46fa64(0x160)]=!0x0;else{if(_0x17b62f[_0x46fa64(0xa4)]('--')&&_0x17b62f[_0x46fa64(0x194)]('=')){const [_0x48599b,_0x10a2ed]=_0x17b62f[_0x46fa64(0xda)](0x2)[_0x46fa64(0x18c)](/=(.*)/,0x2);H[_0x46fa64(0xed)](_0x48599b)?_0x1cd55f[_0x1e5125[_0x46fa64(0x95)](K,_0x48599b)]=!0x0:_0x1cd55f[_0x48599b]=_0x10a2ed;}else{if(_0x17b62f[_0x46fa64(0xa4)]('--')){const _0x3e0681=_0x17b62f[_0x46fa64(0x140)](/^--/,'');H[_0x46fa64(0xed)](_0x3e0681)?_0x1cd55f[_0x1e5125['fuNHy'](K,_0x3e0681)]=!0x0:_0x1cd55f[_0x3e0681]=_0x24c069[++_0x224fdb];}else _0x1cd55f['_']['push'](_0x17b62f);}}}}}}return _0x1cd55f;}function D(_0xcde11c,_0x4e90ce){const _0x86f6b3=_0x5cd6d7,_0x19d9ef={'KJULj':function(_0x44bbe3,_0x18cb8,_0xf20bb2){return _0x44bbe3(_0x18cb8,_0xf20bb2);}};return _0x19d9ef[_0x86f6b3(0x110)](_0x301dfa,_0xcde11c,{'isWindows':_0x4e90ce});}function W(_0x3094bc){const _0x49463c=_0x5cd6d7;return(_0x3094bc?B:N)[_0x49463c(0x11f)](_0x48f8d9=>D(_0x48f8d9,_0x3094bc));}function _0xbdf2(){const _0x2abd6d=['green','iBpyj','24rKufMi','UnXwk','已安全备份\x20','hHErb','VcUuB','46892076ANISGZ','NxWdZ','无可恢复的备份','isWindows','确认\x20reset\x20吗?','4176000VuzigW','%userprofile%\x5c.codex\x5cauth.json','red','Cayvr','需要\x20node\x20>=\x2018,当前\x20','未查询到可用分组','已恢复:','mmYNX','origPath','\x20个文件','replace','%userprofile%\x5c.gemini','ms/','SsSYu','log','\x20\x20说明','nyxfU','EACCES','string','可能原因:服务端未配置分组\x20/\x20网络错误\x20/\x20端点错误','诊断摘要','bold','yqSIF','join','padEnd','uqrOH','dir','24588zvZikc','nvLFW','\x20个可用分组','sVPRG','\x20个备份文件(reset\x20后将尝试恢复每个配置的最新备份)','YsXyz','诊断连接并生成日志压缩包(发给客服排障)','EROFS','yellow','match','ecJNX','NMqit','\x20个备份)','key:…','yes','help','fNxQX','endsWith','http','安全备份:','length','code','cyan','LitJi','获取可用分组','npx\x20@2api-store/activate\x20refresh-groups\x20[options]\x0a\x0a','https://2api.store','已删除\x20','未找到任何备份文件(reset\x20后这些文件将直接删除,无备份可恢复)','tfVBG','cli','padStart','OClxp','从备份恢复配置','提示:只有运行过\x20npx\x20@2api-store/activate\x20后才会产生备份文件','--api-base','xnbxr','RYpGs','dNZiT','下一步:如需重新激活,运行\x20npx\x20@2api-store/activate','\x20\x20•\x20使用兑换码:重新激活时选目标分组即可','out','未选择应用','owFBO','LKUOS','46PZsMfY','slow','获取分组失败:','keys','112110zCPHRn','toString','jEowA','恢复失败\x20','parse','分组列表','uUVah','ttfb_ms','yMcgZ','fail','split','(跳过删除此文件避免误伤)','Efkit','9oPiDsZ','BPtNF','发现\x20','cli_tests','~/.codex/auth.json','includes','mtime','Gemini\x20CLI','qnWvM','isArray','EPERM','prvgU','~/.codex/config.toml','lEOEZ','~/.gemini','request_id','dim','1209770NVTNWM','(本命令仅展示分组,不修改\x20API\x20Key\x20或配置文件)','apiBase','jaJMq','relative','exit_code','qGDSz','\x20\x20request_id','wudth','forEach','INdcJ','lCEot','klJFN','将处理以下文件:','将执行:','taHMc','bakPath','xhHZK','getMinutes','权限不足,无法删除\x20','zudmm','set','fuNHy','安全备份当前文件','mFbID','DEbqQ','Zvrkl','--help','安全备份位置(如需撤销\x20reset,手动恢复这些文件):','\x20→\x20','将对每个测试模型发送真实计费的小请求(max_tokens=1,每模型约几分钱),用于连通性实测','已取消','skip-cli-tests','DXxxB','existsSync','API\x20端点:','\x20\x20...(共\x20','startsWith','getFullYear','90hgCQmk','已删除:','(文件已删除,未恢复)','\x20个文件):','toISOString','\x20\x20•\x20已有\x20API\x20Key\x20绑组:登录管理后台修改,或重新激活(npx\x20@2api-store/activate)','cLbNo','\x20文件:','BuTtw','Claude\x20Code','status','xLLnt','USERPROFILE','EOCTy','查询到\x20','lKUuH','(请用\x20sudo\x20/\x20管理员\x20PowerShell\x20重跑)','[试运行]\x20不真实恢复','igJow','trim','readFileSync','dry-run','请把\x20zip\x20压缩包发给客服排障(包内已脱敏,不含明文\x20key)','\x0a子命令:\x0a\x20\x20restore\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20从备份恢复(扫描\x20~/.codex\x20/\x20~/.claude\x20/\x20~/.gemini\x20下的\x20.bak.*\x20文件)\x0a\x20\x20reset\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20恢复官方默认(删\x202api.store\x20写入的配置,并从最新备份恢复)\x0a\x20\x20refresh-groups\x20\x20\x20刷新分组列表(只展示,不改\x20key/配置)\x0a\x20\x20diagnose\x20\x20\x20\x20\x20\x20\x20\x20\x20诊断连接并生成日志压缩包(环境收集+渠道实测+CLI实测,发给客服排障)\x0a\x0a所有子命令都支持\x20--api-base\x20<url>\x20覆盖端点,restore/reset\x20支持\x20--dry-run。\x0a','verdict','2617652uYwrmG','fLdUU','npx\x20@2api-store/activate\x20restore\x20[options]\x0a\x0a','model','DYhOH','cbWAJ','QLPcp','http_tests','getHours','3923927FommDF','Cwdmq','如需从备份恢复,请运行:npx\x20@2api-store/activate\x20restore','model:','env','sqpEw','选择要恢复的应用','删除\x202api.store\x20配置','查看可用分组(不改配置)','~/.claude/settings.json','guJbC','\x20\x20✓\x20','扫描备份文件','bneVo','XXBQO','\x20\x20-\x20删除\x20','删除失败\x20','dryRun','slice','\x20←\x20','find','CLLKX','copyFileSync','UhrLZ','--yes','并从最新备份恢复:','选择恢复时间点(','Trira','supported','恢复官方默认(删\x202api.store\x20配置并从备份恢复)','skipCliTests','选择时间点(回车=最新)','BrquT','【试运行模式\x20--dry-run】不会真实删除/恢复文件','qMDAS','group','mYqcZ','has','sTUYs','无\x20HTTP\x20测试记录','DEYdE','(可通过\x20--api-base\x20或\x20ACTIVATE_API_BASE\x20覆盖)','%userprofile%\x5c.claude','YxLrY','ACTIVATE_API_BASE','utf8','\x20\x20exit\x20','AIhOS','QQdFV','message','【试运行模式\x20--dry-run】不会真实恢复文件','\x20\x20-\x20','scIPb','getMonth','jNgiG','诊断包已生成:','get','total_ms','诊断失败:','name','EYVYb','uWtvZ','values','从最新备份恢复','从备份恢复\x20','SrPAX','HOME','npx\x20@2api-store/activate\x20reset\x20[options]\x0a\x0a','kRePK','mOxJM','sk-…','jbKhW','KJULj','未发现\x202api.store\x20写入的配置文件(可能已\x20reset\x20或从未激活过)','未选择时间点','basename','定位\x202api.store\x20写入的配置','filter','unlinkSync','恢复失败:','dummy','sort','UFdVb','~/.codex','⚠️\x20这是破坏性操作:将删除上述配置文件并尝试从备份恢复。','node','OHUyi','map','from','~/.gemini/settings.json','push','LaUUv','\x20\x20\x20删除前会再备份一次(.bak.reset.<时间戳>),可手动恢复。','version','pHCCC','LyGmS','FGQij','YbcAw'];_0xbdf2=function(){return _0x2abd6d;};return _0xbdf2();}const z=_0x5cd6d7(0xbd)[_0x5cd6d7(0xb9)]();function F(_0x5c3b6b){const _0x4f6819=_0x5cd6d7,_0x35a7e5={'BrquT':function(_0x454ef9,_0x3d71ec){return _0x454ef9!=_0x3d71ec;},'qDgMu':function(_0x4f5a30,_0x567c6b){return _0x4f5a30>_0x567c6b;},'nvLFW':_0x4f6819(0x17f),'VcUuB':_0x4f6819(0x18b)};return _0x5c3b6b[_0x4f6819(0xb0)]>=0xc8&&_0x5c3b6b['status']<0x12c?_0x35a7e5[_0x4f6819(0xe8)](null,_0x5c3b6b[_0x4f6819(0x189)])&&_0x35a7e5['qDgMu'](_0x5c3b6b[_0x4f6819(0x189)],0x2710)?_0x35a7e5[_0x4f6819(0x152)]:'ok':_0x35a7e5[_0x4f6819(0x130)];}function Y({zipPath:_0x2f37a8,summary:_0x133454}){const _0x510031=_0x5cd6d7,_0x5e05c5={'uWtvZ':function(_0x39128a,_0x5bce28){return _0x39128a(_0x5bce28);},'LyGmS':_0x510031(0xf5),'cLbNo':function(_0x2665d6,_0x4870fb){return _0x2665d6(_0x4870fb);},'YbcAw':_0x510031(0x14a),'xhHZK':function(_0x5b8d14,_0x754c4f){return _0x5b8d14>_0x754c4f;},'DEYdE':function(_0x1ea158,_0x344d2c){return _0x1ea158(_0x344d2c);},'uRDdO':'ttfb/总延迟','Trira':function(_0x566459,_0x4ac11b){return _0x566459===_0x4ac11b;},'jEowA':'slow','kRePK':function(_0x15fbd7,_0x511cdc){return _0x15fbd7(_0x511cdc);},'xLLnt':'ERR','jNgiG':function(_0x251aa3,_0x3c5016){return _0x251aa3(_0x3c5016);},'DAcwo':_0x510031(0xef),'Hphod':function(_0x88631b,_0x17ec48){return _0x88631b(_0x17ec48);},'uqrOH':function(_0x40c97a,_0x329fbe){return _0x40c97a!=_0x329fbe;},'FDOwJ':function(_0x20b0e1,_0x5d88ee){return _0x20b0e1(_0x5d88ee);},'Cayvr':function(_0x491c23,_0x32382e){return _0x491c23(_0x32382e);}};console['log'](),_0x5e05c5[_0x510031(0xac)](_0x10d1a2,_0x5e05c5[_0x510031(0x129)]);const _0x3992bc=Array['isArray'](_0x133454[_0x510031(0xc6)])?_0x133454[_0x510031(0xc6)]:[];if(_0x5e05c5[_0x510031(0x90)](_0x3992bc['length'],0x0)){const _0x309eb1=Math['max'](0x6,..._0x3992bc[_0x510031(0x11f)](_0x486da7=>String(_0x486da7[_0x510031(0xc2)])['length'])),_0x3a0a07=Math['max'](0x6,..._0x3992bc[_0x510031(0x11f)](_0x470277=>String(_0x470277[_0x510031(0xbe)]??'-')[_0x510031(0x165)]));_0x5e05c5[_0x510031(0xf0)](_0x324f1c,_0x4eb3c3[_0x510031(0x14b)][_0x510031(0x167)]('\x20\x20'+'模型'['padEnd'](_0x309eb1)+'\x20\x20'+'判定'['padEnd'](_0x3a0a07)+'\x20\x20'+'状态'['padEnd'](0x6)+'\x20\x20'+_0x5e05c5['uRDdO'][_0x510031(0x14e)](0x12)+_0x510031(0x1a7)));for(const _0x3e06c6 of _0x3992bc){const _0x42135b=F(_0x3e06c6),_0x40062a=_0x5e05c5[_0x510031(0xf0)](String,_0x3e06c6[_0x510031(0xbe)]??'-')[_0x510031(0x14e)](_0x3a0a07),_0x465820='ok'===_0x42135b?_0x4eb3c3[_0x510031(0x12a)](_0x40062a):_0x5e05c5[_0x510031(0xe3)](_0x5e05c5[_0x510031(0x184)],_0x42135b)?_0x4eb3c3[_0x510031(0x159)](_0x40062a):_0x4eb3c3[_0x510031(0x138)](_0x40062a),_0x544624=(_0x3e06c6[_0x510031(0x189)]??'-')+_0x510031(0x142)+(_0x3e06c6[_0x510031(0x101)]??'-')+'ms';_0x5e05c5['cLbNo'](_0x324f1c,'\x20\x20'+String(_0x3e06c6[_0x510031(0xc2)])[_0x510031(0x14e)](_0x309eb1)+'\x20\x20'+_0x465820+'\x20\x20'+_0x5e05c5[_0x510031(0x10c)](String,_0x3e06c6['status']??_0x5e05c5[_0x510031(0xb1)])['padEnd'](0x6)+'\x20\x20'+_0x544624[_0x510031(0x14e)](0x12)+'\x20\x20'+(_0x3e06c6[_0x510031(0x19e)]??'-'));}}else _0x5e05c5[_0x510031(0xfe)](_0x21e766,_0x5e05c5['DAcwo']);const _0x2d3723=Array[_0x510031(0x198)](_0x133454[_0x510031(0x192)])?_0x133454[_0x510031(0x192)]:[];if(_0x5e05c5[_0x510031(0x90)](_0x2d3723['length'],0x0)){const _0x7caea9=function(_0x30d45e){const _0x1ce3fe=_0x510031,_0x2c8bb={};try{const _0xfb5bcb=_0x5e05c5[_0x1ce3fe(0x105)](_0x547d18,new Uint8Array(_0x18ed1e[_0x1ce3fe(0xba)](_0x30d45e))),_0x2dd343=Object[_0x1ce3fe(0x181)](_0xfb5bcb)[_0x1ce3fe(0xdc)](_0x4c9a5e=>_0x4c9a5e[_0x1ce3fe(0x162)]('/cli-tests.jsonl'));if(!_0x2dd343)return _0x2c8bb;for(const _0xd7eb2a of Buffer[_0x1ce3fe(0x120)](_0xfb5bcb[_0x2dd343])[_0x1ce3fe(0x183)](_0x5e05c5[_0x1ce3fe(0x127)])['split']('\x0a'))if(_0xd7eb2a[_0x1ce3fe(0xb9)]())try{const _0x1894f5=JSON[_0x1ce3fe(0x186)](_0xd7eb2a);_0x1894f5&&_0x1894f5[_0x1ce3fe(0x16f)]&&(_0x2c8bb[_0x1894f5[_0x1ce3fe(0x16f)]]=_0x1894f5['duration_ms']);}catch{}}catch{}return _0x2c8bb;}(_0x2f37a8),_0x3f23d4=Math['max'](0x6,..._0x2d3723[_0x510031(0x11f)](_0x39f223=>String(_0x39f223['cli'])[_0x510031(0x165)]));for(const _0x54d6e1 of _0x2d3723){const _0x1e8354=_0x5e05c5['Hphod'](String,_0x54d6e1['verdict']??'-'),_0x20b6b5='ok'===_0x1e8354?_0x4eb3c3[_0x510031(0x12a)](_0x1e8354):_0x4eb3c3[_0x510031(0x138)](_0x1e8354),_0x38a60=_0x5e05c5[_0x510031(0x14f)](null,_0x7caea9[_0x54d6e1['cli']])?_0x7caea9[_0x54d6e1[_0x510031(0x16f)]]+'ms':'-';_0x5e05c5['FDOwJ'](_0x324f1c,'\x20\x20'+_0x5e05c5[_0x510031(0x139)](String,_0x54d6e1[_0x510031(0x16f)])[_0x510031(0x14e)](_0x3f23d4)+'\x20\x20'+_0x20b6b5[_0x510031(0x14e)](0x6)+_0x510031(0xf6)+(_0x54d6e1[_0x510031(0x1a5)]??_0x5e05c5[_0x510031(0xb1)])+'\x20\x20'+_0x38a60);}}}export const SUBCOMMANDS={'restore':{'handler':async function(_0x54fa27){const _0x332c83=_0x5cd6d7,_0x194e8c={'NxWdZ':function(_0x1c0aa6,_0x57d092){return _0x1c0aa6(_0x57d092);},'bneVo':function(_0x3d8056,_0x19a2d1){return _0x3d8056+_0x19a2d1;},'klJFN':_0x332c83(0xf5),'dNZiT':function(_0x49460e,_0x50a356){return _0x49460e>_0x50a356;},'RYpGs':'\x20|\x20','taHMc':function(_0x1c5735){return _0x1c5735();},'qMDAS':function(_0x38a3c9,_0x62de0a){return _0x38a3c9(_0x62de0a);},'wQtLG':function(_0x449d43,_0x2c71eb){return _0x449d43(_0x2c71eb);},'MwHdI':_0x332c83(0xd4),'gsdhh':function(_0x9e9c67,_0x10b3d6){return _0x9e9c67(_0x10b3d6);},'iBpyj':_0x332c83(0xfa),'rCfkW':function(_0x1ffa7b,_0x4e5d51){return _0x1ffa7b(_0x4e5d51);},'fNxQX':function(_0x4e1d72,_0x5d0fd8){return _0x4e1d72===_0x5d0fd8;},'jbKhW':function(_0x23df16,_0x5000b8){return _0x23df16(_0x5000b8);},'nyxfU':'未找到任何备份文件(.bak.*)','BqLzE':function(_0x167e82,_0x3cf59a){return _0x167e82(_0x3cf59a);},'ecJNX':function(_0x1d36de,_0x13a1b2){return _0x1d36de(_0x13a1b2);},'ZIChc':'Codex\x20CLI','EOCTy':_0x332c83(0xaf),'BuTtw':_0x332c83(0x196),'DYhOH':function(_0x586cdb,_0x512951){return _0x586cdb(_0x512951);},'wSgrf':function(_0x170bd1,_0x40d874){return _0x170bd1===_0x40d874;},'CsGme':_0x332c83(0x133),'wriyj':_0x332c83(0xce),'QfeWE':function(_0x192323,_0x19b552,_0x392ebd,_0x199a97){return _0x192323(_0x19b552,_0x392ebd,_0x199a97);},'mOxJM':'选择应用(回车=第一个)','tfVBG':function(_0x47d1bf,_0x34a93a){return _0x47d1bf<_0x34a93a;},'piVHp':function(_0x4f6f95,_0x5ef7b3){return _0x4f6f95>=_0x5ef7b3;},'LaUUv':_0x332c83(0x17b),'DXxxB':_0x332c83(0x118),'EYVYb':function(_0x5a4f5b,_0x268f5c,_0x5b1c56,_0x1bedb4){return _0x5a4f5b(_0x268f5c,_0x5b1c56,_0x1bedb4);},'qSufG':_0x332c83(0xe7),'lEOEZ':function(_0x4c748b,_0x159c44){return _0x4c748b<_0x159c44;},'yqSIF':_0x332c83(0x112),'QQdFV':function(_0x1afbd9,_0x164a18){return _0x1afbd9(_0x164a18);},'jnSzP':function(_0x3088aa,_0x2dd4bf){return _0x3088aa(_0x2dd4bf);},'ejSLs':function(_0x1437d9,_0x3f06ab){return _0x1437d9(_0x3f06ab);},'fLdUU':_0x332c83(0xb7),'pHCCC':function(_0x2f05c8,_0x245e3f,_0x2f2f88){return _0x2f05c8(_0x245e3f,_0x2f2f88);},'mmYNX':function(_0x8010e7,_0x53e410){return _0x8010e7(_0x53e410);}},_0x5320d6=U(_0x54fa27);if(_0x5320d6[_0x332c83(0x160)])return console[_0x332c83(0x144)](_0x332c83(0xc1)+z),0x0;_0x249a72();const _0x4a1623=_0x194e8c[_0x332c83(0x8e)](_0x739076);if(!_0x4a1623[_0x332c83(0x11d)][_0x332c83(0xe4)])return _0x194e8c[_0x332c83(0xea)](_0x59e962,_0x332c83(0x13a)+_0x4a1623[_0x332c83(0x11d)][_0x332c83(0x125)]),0x1;_0x194e8c['wQtLG'](_0x10d1a2,_0x194e8c['MwHdI']);const _0x132213=_0x194e8c['NxWdZ'](W,_0x4a1623['os']['isWindows']);_0x5320d6[_0x332c83(0xd9)]&&_0x194e8c['gsdhh'](_0x2378ba,_0x194e8c[_0x332c83(0x12b)]),_0x21e766('扫描目录:'+_0x132213[_0x332c83(0x14d)](',\x20'));const _0x21a78d=_0x194e8c['rCfkW'](_0x180bc6,_0x132213);if(_0x194e8c[_0x332c83(0x161)](0x0,_0x21a78d[_0x332c83(0x165)]))return _0x194e8c['jbKhW'](_0x21e766,_0x194e8c[_0x332c83(0x146)]),_0x194e8c['BqLzE'](_0x21e766,_0x332c83(0x173)),0x0;_0x194e8c[_0x332c83(0x15b)](_0x159efd,'找到\x20'+_0x21a78d[_0x332c83(0x165)]+'\x20个备份文件');const _0x33126e={'.codex':_0x194e8c['ZIChc'],'.claude':_0x194e8c[_0x332c83(0xb3)],'.gemini':_0x194e8c[_0x332c83(0xae)]};function _0xfbb8ce(_0x43b14e){const _0x2faa1a=_0x332c83,_0x1caf1b=process[_0x2faa1a(0xcc)][_0x2faa1a(0x10a)]||process[_0x2faa1a(0xcc)][_0x2faa1a(0xb2)]||'',_0x2a9dc4=_0x20193c[_0x2faa1a(0x1a4)](_0x1caf1b,_0x43b14e)[_0x2faa1a(0x140)](/\\/g,'/')[_0x2faa1a(0x18c)]('/')[0x0];return _0x33126e[_0x2a9dc4]||_0x2a9dc4;}function _0x29fa17(_0x131fbc){const _0x515e34=_0x332c83;return process[_0x515e34(0xcc)][_0x515e34(0x10a)]||process[_0x515e34(0xcc)][_0x515e34(0xb2)],_0x20193c['dirname'](_0x131fbc);}const _0xc1a539={};for(const _0x545dc1 of _0x21a78d){const _0x25d7b2=_0x194e8c[_0x332c83(0xc3)](_0x29fa17,_0x545dc1[_0x332c83(0x13e)]);_0xc1a539[_0x25d7b2]||(_0xc1a539[_0x25d7b2]=[]),_0xc1a539[_0x25d7b2][_0x332c83(0x122)](_0x545dc1);}const _0x432500=Object[_0x332c83(0x181)](_0xc1a539);if(_0x194e8c['wSgrf'](0x0,_0x432500[_0x332c83(0x165)]))return _0x194e8c[_0x332c83(0x10f)](_0x21e766,_0x194e8c['CsGme']),0x0;console['log'](),_0x10d1a2(_0x194e8c['wriyj']);const _0x35c4af=_0x432500[_0x332c83(0x11f)](_0x28bab4=>{const _0x2dcc60=_0x332c83,_0x1e8535=_0x194e8c[_0x2dcc60(0x132)](_0xfbb8ce,_0x20193c['join'](_0x28bab4,_0x2dcc60(0x118))),_0xdaa640=_0xc1a539[_0x28bab4][_0x2dcc60(0x165)];return{'label':_0x4eb3c3['cyan'](_0x1e8535)+'('+_0xdaa640+'\x20个备份)','dir':_0x28bab4};}),_0x1171fb=await _0x194e8c['QfeWE'](_0x22e00b,_0x194e8c[_0x332c83(0x10d)],_0x35c4af,{'defaultIndex':0x0});if(_0x194e8c[_0x332c83(0x16e)](_0x1171fb,0x0)||_0x194e8c['piVHp'](_0x1171fb,_0x35c4af[_0x332c83(0x165)]))return _0x59e962(_0x194e8c[_0x332c83(0x123)]),0x1;const _0x14020c=_0x35c4af[_0x1171fb][_0x332c83(0x150)],_0x196e53=_0xfbb8ce(_0x20193c[_0x332c83(0x14d)](_0x14020c,_0x194e8c[_0x332c83(0xa0)])),_0x4bb961=_0xc1a539[_0x14020c]['sort']((_0x4dc072,_0x202b4f)=>_0x202b4f['mtime']-_0x4dc072['mtime']),_0x32da7d={},_0x23ad91=[];for(const _0x57f363 of _0x4bb961){const _0x1a4aa2=_0x20193c[_0x332c83(0x113)](_0x57f363['bakPath'])[_0x332c83(0x15a)](/\.bak\.(.+)$/),_0x51f720=(_0x1a4aa2?_0x1a4aa2[0x1]:'')[_0x332c83(0x140)](/-\d{3}Z$/,'Z');_0x32da7d[_0x51f720]||(_0x32da7d[_0x51f720]=[],_0x23ad91[_0x332c83(0x122)](_0x51f720)),_0x32da7d[_0x51f720][_0x332c83(0x122)](_0x57f363);}for(const _0x22908e of _0x23ad91){const _0x104321=_0x32da7d[_0x22908e],_0x57a11f={};for(const _0x59770c of _0x104321)(!_0x57a11f[_0x59770c[_0x332c83(0x13e)]]||_0x194e8c[_0x332c83(0x177)](_0x59770c[_0x332c83(0x195)],_0x57a11f[_0x59770c[_0x332c83(0x13e)]][_0x332c83(0x195)]))&&(_0x57a11f[_0x59770c[_0x332c83(0x13e)]]=_0x59770c);_0x32da7d[_0x22908e]=Object[_0x332c83(0x106)](_0x57a11f)[_0x332c83(0x119)]((_0x201c37,_0x1ae953)=>_0x1ae953['mtime']-_0x201c37[_0x332c83(0x195)]);}console[_0x332c83(0x144)](),_0x194e8c['NxWdZ'](_0x10d1a2,_0x332c83(0xe2)+_0x196e53+')');const _0x3207e9=_0x23ad91['map'](_0x57ca5e=>{const _0x458cef=_0x332c83,_0x46ab7d=_0x32da7d[_0x57ca5e],_0x20af45=_0x46ab7d[_0x458cef(0x11f)](_0x5cff8c=>_0x20193c[_0x458cef(0x113)](_0x5cff8c[_0x458cef(0x13e)]))['join'](',\x20'),_0x4b3378=function(_0x4e3110){const _0x1fabff=_0x458cef;try{const _0xad3db1=new Date(_0x4e3110),_0x776d61=_0x5e7868=>String(_0x5e7868)[_0x1fabff(0x170)](0x2,'0');return _0xad3db1[_0x1fabff(0xa5)]()+'-'+_0x194e8c['NxWdZ'](_0x776d61,_0x194e8c[_0x1fabff(0xd5)](_0xad3db1[_0x1fabff(0xfd)](),0x1))+'-'+_0x776d61(_0xad3db1['getDate']())+'\x20'+_0x194e8c['NxWdZ'](_0x776d61,_0xad3db1[_0x1fabff(0xc7)]())+':'+_0x776d61(_0xad3db1[_0x1fabff(0x91)]())+':'+_0x776d61(_0xad3db1['getSeconds']());}catch{return new Date(_0x4e3110)[_0x1fabff(0xaa)]();}}(_0x46ab7d[0x0]['mtime']),_0x433188=[];for(const _0x4ea14a of _0x46ab7d)try{const _0x1190f2=_0x18ed1e[_0x458cef(0xba)](_0x4ea14a[_0x458cef(0x8f)],_0x194e8c[_0x458cef(0x8b)]);if(!_0x433188[_0x458cef(0xdc)](_0x2d47d0=>_0x2d47d0[_0x458cef(0x194)]('…'))){const _0x410a7b=_0x1190f2[_0x458cef(0x15a)](/sk-([a-zA-Z0-9]{10,})/);if(_0x410a7b)_0x433188[_0x458cef(0x122)](_0x458cef(0x10e)+_0x410a7b[0x1][_0x458cef(0xda)](-0x6));else{const _0x786c54=_0x1190f2[_0x458cef(0x15a)](/(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)["':\s]+["']([a-zA-Z0-9._-]{10,})["']/);if(_0x786c54)_0x433188['push']('key:…'+_0x786c54[0x1][_0x458cef(0xda)](-0x6));else{const _0x2f146b=_0x1190f2[_0x458cef(0x15a)](/export\s+(?:API_KEY|AUTH_TOKEN|OPENAI_API_KEY|ANTHROPIC_API_KEY|ANTHROPIC_AUTH_TOKEN)=(["']?)([a-zA-Z0-9._-]{10,})/);_0x2f146b&&_0x433188[_0x458cef(0x122)](_0x458cef(0x15e)+_0x2f146b[0x2][_0x458cef(0xda)](-0x6));}}}if(!_0x433188['find'](_0x50d9be=>_0x50d9be[_0x458cef(0xa4)](_0x458cef(0x163)))){const _0x45452f=_0x1190f2['match'](/(https?:\/\/[^\s"'`}]+)/);_0x45452f&&_0x433188['push'](_0x45452f[0x1][_0x458cef(0x140)](/\/+$/,''));}if(!_0x433188[_0x458cef(0xdc)](_0x407ed8=>_0x407ed8[_0x458cef(0xa4)](_0x458cef(0xc2)))){const _0x2575fc=_0x1190f2[_0x458cef(0x15a)](/(?:^|\n)\s*model\s*[=:]\s*["']?([a-zA-Z0-9][\w.-]+)/);_0x2575fc&&_0x433188[_0x458cef(0x122)](_0x458cef(0xcb)+_0x2575fc[0x1]);}}catch{}const _0x9d06cd=_0x194e8c[_0x458cef(0x177)](_0x433188['length'],0x0)?'\x20'+_0x4eb3c3['yellow'](_0x433188[_0x458cef(0x14d)](_0x194e8c[_0x458cef(0x176)])):'';return{'label':_0x4eb3c3[_0x458cef(0x19f)](_0x4b3378)+'('+_0x46ab7d[_0x458cef(0x165)]+_0x458cef(0xad)+_0x20af45+')'+_0x9d06cd,'ts':_0x57ca5e,'group':_0x46ab7d};}),_0x2e4fce=await _0x194e8c[_0x332c83(0x104)](_0x22e00b,_0x194e8c['qSufG'],_0x3207e9,{'defaultIndex':0x0});if(_0x194e8c[_0x332c83(0x19c)](_0x2e4fce,0x0)||_0x2e4fce>=_0x3207e9[_0x332c83(0x165)])return _0x59e962(_0x194e8c[_0x332c83(0x14c)]),0x1;const _0x2f7a79=_0x3207e9[_0x2e4fce][_0x332c83(0xeb)];console[_0x332c83(0x144)](),_0x194e8c[_0x332c83(0xf8)](_0x21e766,'将恢复\x20'+_0x196e53+'('+_0x2f7a79['length']+_0x332c83(0xa9));for(const _0x4667d of _0x2f7a79)_0x194e8c['jnSzP'](_0x21e766,'\x20\x20'+_0x20193c['basename'](_0x4667d[_0x332c83(0x13e)])+_0x332c83(0xdb)+_0x20193c[_0x332c83(0x113)](_0x4667d['bakPath']));if(_0x5320d6[_0x332c83(0xd9)])return _0x194e8c['ejSLs'](_0x2378ba,_0x194e8c[_0x332c83(0xc0)]),0x0;let _0x2a931d=0x0;for(const _0x2ac0cf of _0x2f7a79){if(_0x18ed1e[_0x332c83(0xa1)](_0x2ac0cf['origPath']))try{const _0x3d0951=_0x3941ea(_0x2ac0cf[_0x332c83(0x13e)]);_0x3d0951&&_0x21e766(_0x332c83(0x164)+_0x20193c[_0x332c83(0x113)](_0x2ac0cf[_0x332c83(0x13e)])+_0x332c83(0x9c)+_0x20193c[_0x332c83(0x113)](_0x3d0951));}catch{}try{_0x194e8c[_0x332c83(0x126)](_0x463f1f,_0x2ac0cf[_0x332c83(0x8f)],_0x2ac0cf['origPath']),_0x159efd(_0x332c83(0x13c)+_0x2ac0cf[_0x332c83(0x13e)]),_0x2a931d++;}catch(_0x17fc65){_0x194e8c[_0x332c83(0x13d)](_0x59e962,_0x332c83(0x117)+_0x2ac0cf[_0x332c83(0x13e)]+'('+_0x17fc65[_0x332c83(0xf9)]+')');}}return _0x21e766('共恢复\x20'+_0x2a931d+_0x332c83(0x13f)),_0x194e8c['dNZiT'](_0x2a931d,0x0)?0x0:0x3;},'description':_0x5cd6d7(0x172)},'reset':{'handler':async function(_0x1add03){const _0x54c940=_0x5cd6d7,_0x403a95={'UnXwk':function(_0x2005c8,_0x2e23d2){return _0x2005c8(_0x2e23d2);},'hXNbU':function(_0x37f084){return _0x37f084();},'NICBh':function(_0xc1547f){return _0xc1547f();},'NMqit':function(_0x27a32b,_0x495248){return _0x27a32b(_0x495248);},'zudmm':_0x54c940(0x114),'lCEot':function(_0x48198c,_0x39b8ac){return _0x48198c(_0x39b8ac);},'PWxRt':_0x54c940(0x111),'qGDSz':function(_0x5d70af,_0x25b753){return _0x5d70af(_0x25b753);},'LKUOS':function(_0x4e70e6,_0x304d5b){return _0x4e70e6(_0x304d5b);},'cbWAJ':function(_0x4113d8,_0x43aee5){return _0x4113d8(_0x43aee5);},'qFgyW':_0x54c940(0x11c),'prvgU':_0x54c940(0x124),'LitJi':function(_0x330366,_0x209eb5,_0x490955){return _0x330366(_0x209eb5,_0x490955);},'zWiST':_0x54c940(0x9e),'sTUYs':_0x54c940(0xe9),'sVPRG':function(_0xf3a94c,_0x42352e){return _0xf3a94c(_0x42352e);},'RYxVJ':_0x54c940(0x8d),'BPtNF':function(_0x413a03,_0x3796d4){return _0x413a03(_0x3796d4);},'INdcJ':_0x54c940(0xe1),'guJbC':function(_0x4308a8,_0x19ce73){return _0x4308a8>_0x19ce73;},'UhrLZ':_0x54c940(0x96),'xnbxr':function(_0x4015fa,_0x46605e){return _0x4015fa(_0x46605e);},'Efkit':function(_0x835351,_0x3b1c7a){return _0x835351(_0x3b1c7a);},'jaJMq':_0x54c940(0xcf),'wudth':function(_0x2cbe40,_0x48696b){return _0x2cbe40(_0x48696b);},'lKUuH':function(_0x41ebbf,_0x1fca40){return _0x41ebbf===_0x1fca40;},'IOGcw':_0x54c940(0x147),'Zvrkl':_0x54c940(0x158),'YsXyz':function(_0x5d9578,_0x2cf875){return _0x5d9578>_0x2cf875;},'iPEuz':function(_0x105ccd,_0x5946b0){return _0x105ccd(_0x5946b0);},'LdfIn':'reset\x20报告','qnWvM':function(_0x44c7b8,_0x5b3317){return _0x44c7b8(_0x5b3317);},'AIhOS':_0x54c940(0x178)},_0x2a20f9=_0x403a95[_0x54c940(0x12d)](U,_0x1add03);if(_0x2a20f9[_0x54c940(0x160)])return console['log'](_0x54c940(0x10b)+z),0x0;_0x403a95['hXNbU'](_0x249a72);const _0x46c5a1=_0x403a95['NICBh'](_0x739076);if(!_0x46c5a1[_0x54c940(0x11d)]['supported'])return _0x403a95['UnXwk'](_0x59e962,_0x54c940(0x13a)+_0x46c5a1['node'][_0x54c940(0x125)]),0x1;var _0x256b9f;_0x403a95[_0x54c940(0x15c)](_0x10d1a2,_0x403a95[_0x54c940(0x93)]);const _0x3d0a13=((_0x256b9f=_0x46c5a1['os'][_0x54c940(0x134)])?M:R)['map'](_0x140781=>D(_0x140781,_0x256b9f))[_0x54c940(0x115)](_0xda5f25=>{try{return _0x18ed1e['existsSync'](_0xda5f25);}catch{return!0x1;}});if(0x0===_0x3d0a13[_0x54c940(0x165)])return _0x403a95[_0x54c940(0x8a)](_0x2378ba,_0x403a95['PWxRt']),_0x403a95[_0x54c940(0x1a6)](_0x21e766,_0x54c940(0xca)),0x0;_0x403a95[_0x54c940(0x12d)](_0x21e766,_0x54c940(0x8c)),_0x3d0a13[_0x54c940(0x1a9)](_0x5282ff=>_0x324f1c(_0x54c940(0xfb)+_0x4eb3c3[_0x54c940(0x159)](_0x5282ff))),console[_0x54c940(0x144)]();const _0x30c8fe=W(_0x46c5a1['os'][_0x54c940(0x134)]),_0x5a94b7=_0x403a95[_0x54c940(0x12d)](_0x180bc6,_0x30c8fe),_0x3a4431=_0x5a94b7[_0x54c940(0x165)]>0x0;if(_0x3a4431?_0x159efd(_0x54c940(0x191)+_0x5a94b7[_0x54c940(0x165)]+_0x54c940(0x155)):_0x403a95[_0x54c940(0x8a)](_0x2378ba,_0x54c940(0x16d)),console[_0x54c940(0x144)](),_0x403a95[_0x54c940(0x17d)](_0x10d1a2,'确认操作'),_0x403a95[_0x54c940(0xc4)](_0x2378ba,_0x403a95['qFgyW']),_0x2378ba(_0x403a95[_0x54c940(0x19a)]),!await _0x403a95[_0x54c940(0x168)](_0x217c99,_0x54c940(0x135),{'defaultValue':!0x1}))return _0x403a95[_0x54c940(0x12d)](_0x324f1c,_0x403a95['zWiST']),0x0;if(console['log'](),_0x2a20f9[_0x54c940(0xd9)])return _0x2378ba(_0x403a95[_0x54c940(0xee)]),_0x403a95[_0x54c940(0x154)](_0x21e766,_0x403a95['RYxVJ']),_0x3d0a13[_0x54c940(0x1a9)](_0x343b31=>_0x324f1c(_0x54c940(0xd7)+_0x343b31)),_0x3a4431&&(_0x403a95['BPtNF'](_0x21e766,_0x403a95[_0x54c940(0x1aa)]),_0x5a94b7['slice'](0x0,0x5)[_0x54c940(0x1a9)](_0x33c434=>_0x324f1c(_0x54c940(0xfb)+_0x33c434[_0x54c940(0x8f)]+_0x54c940(0x9c)+_0x33c434[_0x54c940(0x13e)])),_0x403a95[_0x54c940(0xd2)](_0x5a94b7['length'],0x5)&&_0x324f1c(_0x54c940(0xa3)+_0x5a94b7['length']+_0x54c940(0x15d))),0x0;_0x403a95['UnXwk'](_0x10d1a2,_0x403a95[_0x54c940(0xdf)]);const _0x34ff4b=[];for(const _0x15b2fb of _0x3d0a13)try{const _0x1a1f4a=_0x15b2fb+'.bak.reset.'+new Date()[_0x54c940(0xaa)]()[_0x54c940(0x140)](/[:.]/g,'-');_0x18ed1e[_0x54c940(0xde)](_0x15b2fb,_0x1a1f4a),_0x34ff4b[_0x54c940(0x122)](_0x1a1f4a),_0x403a95['xnbxr'](_0x324f1c,_0x54c940(0xd3)+_0x15b2fb+_0x54c940(0x9c)+_0x1a1f4a);}catch(_0x3d090f){_0x59e962('安全备份失败\x20'+_0x15b2fb+':'+_0x3d090f[_0x54c940(0xf9)]+_0x54c940(0x18d));}_0x403a95[_0x54c940(0xd2)](_0x34ff4b[_0x54c940(0x165)],0x0)&&_0x403a95[_0x54c940(0x18e)](_0x159efd,_0x54c940(0x12e)+_0x34ff4b[_0x54c940(0x165)]+'\x20个文件'),console[_0x54c940(0x144)](),_0x10d1a2(_0x403a95[_0x54c940(0x1a3)]);const _0x365ab5=[];for(const _0x79e9aa of _0x3d0a13)try{_0x18ed1e[_0x54c940(0x116)](_0x79e9aa),_0x403a95[_0x54c940(0x1a8)](_0x159efd,_0x54c940(0xa7)+_0x79e9aa),_0x365ab5[_0x54c940(0x122)](_0x79e9aa);}catch(_0x13a21f){_0x403a95[_0x54c940(0xb5)](_0x403a95['IOGcw'],_0x13a21f[_0x54c940(0x166)])||_0x403a95[_0x54c940(0xb5)](_0x54c940(0x199),_0x13a21f['code'])||_0x403a95[_0x54c940(0xb5)](_0x403a95[_0x54c940(0x99)],_0x13a21f['code'])?_0x59e962(_0x54c940(0x92)+_0x79e9aa+_0x54c940(0xb6)):_0x59e962(_0x54c940(0xd8)+_0x79e9aa+':'+_0x13a21f['message']);}if(console['log'](),_0x3a4431){_0x10d1a2(_0x54c940(0x107));const _0x24fe86=new Map();for(const _0x3e1055 of _0x5a94b7){const _0x662843=_0x24fe86[_0x54c940(0x100)](_0x3e1055[_0x54c940(0x13e)]);(!_0x662843||_0x403a95[_0x54c940(0x156)](_0x3e1055[_0x54c940(0x195)],_0x662843[_0x54c940(0x195)]))&&_0x24fe86[_0x54c940(0x94)](_0x3e1055[_0x54c940(0x13e)],_0x3e1055);}let _0x333499=0x0;for(const [_0x198266,_0x265113]of _0x24fe86)try{_0x463f1f(_0x265113['bakPath'],_0x198266),_0x159efd(_0x54c940(0x13c)+_0x265113[_0x54c940(0x8f)]+'\x20→\x20'+_0x198266),_0x333499++;}catch(_0x59c00b){_0x403a95['iPEuz'](_0x2378ba,_0x54c940(0x185)+_0x198266+':'+_0x59c00b[_0x54c940(0xf9)]+_0x54c940(0xa8));}_0x403a95['guJbC'](_0x333499,0x0)&&_0x403a95[_0x54c940(0x190)](_0x21e766,_0x54c940(0x108)+_0x333499+_0x54c940(0x13f)),console[_0x54c940(0x144)]();}return _0x403a95[_0x54c940(0x8a)](_0x10d1a2,_0x403a95['LdfIn']),_0x159efd(_0x54c940(0x16c)+_0x365ab5['length']+'\x20个\x202api.store\x20配置文件'),_0x403a95[_0x54c940(0xd2)](_0x34ff4b[_0x54c940(0x165)],0x0)&&(_0x403a95[_0x54c940(0x175)](_0x21e766,_0x54c940(0x9b)),_0x34ff4b[_0x54c940(0x1a9)](_0x53eb5d=>_0x324f1c('\x20\x20-\x20'+_0x53eb5d))),_0x403a95[_0x54c940(0x197)](_0x21e766,_0x403a95[_0x54c940(0xf7)]),_0x403a95[_0x54c940(0xd2)](_0x365ab5[_0x54c940(0x165)],0x0)?0x0:0x1;},'description':_0x5cd6d7(0xe5)},'refresh-groups':{'handler':async function(_0x18fbe1){const _0x15660e=_0x5cd6d7,_0x3b2e75={'CLLKX':function(_0x2f1c26,_0x5f37f3){return _0x2f1c26(_0x5f37f3);},'uUVah':function(_0x43dbcf,_0x548f2d){return _0x43dbcf(_0x548f2d);},'HfgIZ':function(_0x59ea1a,_0x3cd2ba){return _0x59ea1a(_0x3cd2ba);},'QLPcp':function(_0x4cceba){return _0x4cceba();},'owFBO':function(_0x5192fc,_0x33f5aa){return _0x5192fc(_0x33f5aa);},'SrPAX':function(_0x3d709b,_0x917df2){return _0x3d709b(_0x917df2);},'lQGsG':function(_0x1d79ad,_0x1a0305){return _0x1d79ad(_0x1a0305);},'yMcgZ':function(_0x534e76,_0x13c7d8){return _0x534e76(_0x13c7d8);},'Cwdmq':_0x15660e(0x149),'OHUyi':function(_0x111a69,_0x53c13b){return _0x111a69(_0x53c13b);},'OClxp':function(_0x2296e4,_0x564fa3){return _0x2296e4(_0x564fa3);},'XXBQO':'💡\x20如需切换分组:','SsSYu':function(_0x1126cb,_0x19e954){return _0x1126cb(_0x19e954);},'wgRbp':_0x15660e(0x179),'KipeC':_0x15660e(0x1a1)},_0x20fb11=U(_0x18fbe1);if(_0x20fb11[_0x15660e(0x160)])return console['log'](_0x15660e(0x16a)+z),0x0;_0x3b2e75[_0x15660e(0xc5)](_0x249a72);const _0x59cfe0=_0x3b2e75[_0x15660e(0xc5)](_0x739076);if(!_0x59cfe0[_0x15660e(0x11d)]['supported'])return _0x59e962(_0x15660e(0x13a)+_0x59cfe0[_0x15660e(0x11d)][_0x15660e(0x125)]),0x1;const _0x4bd965=_0x20fb11['apiBase']||process[_0x15660e(0xcc)][_0x15660e(0xf4)]||C;_0x21e766('API\x20端点:'+_0x4bd965),console[_0x15660e(0x144)](),_0x3b2e75[_0x15660e(0x17c)](_0x10d1a2,_0x15660e(0x169));let _0x493fb5=[];try{_0x493fb5=await _0x3b2e75[_0x15660e(0x109)](_0x110562,{'apiBase':_0x4bd965});}catch(_0x3e93ed){return _0x3b2e75['lQGsG'](_0x59e962,_0x15660e(0x180)+_0x3e93ed[_0x15660e(0xf9)]),0x1;}if(0x0===_0x493fb5[_0x15660e(0x165)])return _0x3b2e75['CLLKX'](_0x2378ba,_0x15660e(0x13b)),_0x3b2e75[_0x15660e(0x18a)](_0x21e766,_0x3b2e75[_0x15660e(0xc9)]),_0x21e766('当前端点:'+_0x4bd965+_0x15660e(0xf1)),0x0;_0x3b2e75[_0x15660e(0x11e)](_0x159efd,_0x15660e(0xb4)+_0x493fb5[_0x15660e(0x165)]+_0x15660e(0x153)),console['log'](),_0x10d1a2(_0x15660e(0x187));const _0x3191f8=Math['max'](0x4,..._0x493fb5[_0x15660e(0x11f)](_0x223cbf=>String(_0x223cbf['id']??'')[_0x15660e(0x165)])),_0x40b519=Math['max'](0x6,..._0x493fb5['map'](_0x502506=>String(_0x502506[_0x15660e(0x103)]??'')['length'])),_0x57b7e5='\x20\x20'+'ID'[_0x15660e(0x14e)](_0x3191f8)+'\x20\x20'+'名称'[_0x15660e(0x14e)](_0x40b519)+_0x15660e(0x145);return _0x3b2e75[_0x15660e(0x171)](_0x324f1c,_0x4eb3c3[_0x15660e(0x14b)]['cyan'](_0x57b7e5)),_0x3b2e75['yMcgZ'](_0x324f1c,_0x4eb3c3['dim']('\x20\x20'+'─'['repeat'](_0x3191f8+_0x40b519+0xf))),_0x493fb5[_0x15660e(0x1a9)]((_0x58ab5d,_0x26b283)=>{const _0x2d772d=_0x15660e,_0x2caae9=_0x3b2e75[_0x2d772d(0xdd)](String,_0x58ab5d['id']??'')[_0x2d772d(0x14e)](_0x3191f8),_0xa01192=_0x3b2e75[_0x2d772d(0x188)](String,_0x58ab5d['name']??'')[_0x2d772d(0x14e)](_0x40b519),_0xa112d1='\x20\x20'+_0x4eb3c3[_0x2d772d(0x159)](_0x2caae9)+'\x20\x20'+_0x4eb3c3[_0x2d772d(0x12a)](_0xa01192);_0x3b2e75['HfgIZ'](_0x324f1c,_0xa112d1);}),console[_0x15660e(0x144)](),_0x3b2e75[_0x15660e(0x171)](_0x21e766,_0x3b2e75[_0x15660e(0xd6)]),_0x3b2e75[_0x15660e(0x143)](_0x324f1c,_0x15660e(0xab)),_0x3b2e75['yMcgZ'](_0x324f1c,_0x3b2e75['wgRbp']),_0x3b2e75['HfgIZ'](_0x21e766,_0x3b2e75['KipeC']),0x0;},'description':_0x5cd6d7(0xd0)},'diagnose':{'handler':async function(_0x599452){const _0x336097=_0x5cd6d7,_0x388ebc={'scIPb':function(_0x5b35c8){return _0x5b35c8();},'mYqcZ':function(_0x46a2b0){return _0x46a2b0();},'igJow':function(_0x22d8eb,_0x5d3039){return _0x22d8eb(_0x5d3039);},'mFbID':function(_0x61cf03,_0x5eac54){return _0x61cf03(_0x5eac54);},'JHDcE':function(_0x28f38d,_0x1bf2f7){return _0x28f38d===_0x1bf2f7;},'UFdVb':function(_0x4b353e,_0x2722c8){return _0x4b353e==_0x2722c8;},'sqpEw':function(_0x415604,_0x386da0){return _0x415604(_0x386da0);},'DEbqQ':function(_0x1020d9,_0x23d6e4){return _0x1020d9(_0x23d6e4);},'VDydj':function(_0x3d7d9b,_0x420572){return _0x3d7d9b(_0x420572);}},_0x530afb=U(_0x599452);if(_0x530afb[_0x336097(0x160)])return console[_0x336097(0x144)]('npx\x20@2api-store/activate\x20diagnose\x20[options]\x0a\x0a'+z),0x0;_0x388ebc[_0x336097(0xfc)](_0x249a72);const _0x414f00=_0x388ebc[_0x336097(0xec)](_0x739076);if(!_0x414f00[_0x336097(0x11d)][_0x336097(0xe4)])return _0x388ebc[_0x336097(0xb8)](_0x59e962,'需要\x20node\x20>=\x2018,当前\x20'+_0x414f00[_0x336097(0x11d)]['version']),0x1;const _0x53b725=_0x530afb[_0x336097(0x1a2)]||process['env'][_0x336097(0xf4)]||C;_0x388ebc[_0x336097(0x97)](_0x21e766,_0x336097(0xa2)+_0x53b725);const _0x2b1734={'yes':_0x388ebc['JHDcE'](!0x0,_0x530afb[_0x336097(0x15f)]),'models':_0x388ebc[_0x336097(0x11a)](_0x336097(0x148),typeof _0x530afb[_0x336097(0xc2)])?_0x530afb[_0x336097(0xc2)]:void 0x0,'skipCliTests':!0x0===_0x530afb[_0x336097(0xe6)],'outDir':_0x530afb[_0x336097(0x17a)]};let _0x14353c;_0x2b1734[_0x336097(0x15f)]||_0x388ebc[_0x336097(0xcd)](_0x21e766,_0x336097(0x9d));try{_0x14353c=await _0x1893a0({'apiBase':_0x53b725,'opts':_0x2b1734,'ui':{'banner':_0x249a72,'ok':_0x159efd,'fail':_0x59e962,'warn':_0x2378ba,'info':_0x21e766,'step':_0x10d1a2,'plain':_0x324f1c,'guide':_0x2d7ebd,'chalk':_0x4eb3c3}});}catch(_0x460c97){return _0x388ebc[_0x336097(0x98)](_0x59e962,_0x336097(0x102)+(_0x460c97?.[_0x336097(0xf9)]||_0x460c97)),0x1;}return _0x388ebc['VDydj'](Y,_0x14353c),_0x388ebc[_0x336097(0x97)](_0x159efd,_0x336097(0xff)+_0x14353c['zipPath']),_0x21e766(_0x336097(0xbc)),0x0;},'description':_0x5cd6d7(0x157)}};export const SUBCOMMAND_NAMES=new Set(Object[_0x5cd6d7(0x181)](SUBCOMMANDS));export{z as SUB_HELP};
@@ -1 +1 @@
1
- const _0x4a7e99=_0x1772;(function(_0x55c9cc,_0x8c02b2){const _0xe377c3=_0x1772,_0x4eaf5e=_0x55c9cc();while(!![]){try{const _0x18935=parseInt(_0xe377c3(0x1be))/0x1*(-parseInt(_0xe377c3(0x1bd))/0x2)+parseInt(_0xe377c3(0x1bf))/0x3*(parseInt(_0xe377c3(0x1ca))/0x4)+parseInt(_0xe377c3(0x1de))/0x5+parseInt(_0xe377c3(0x1cd))/0x6*(-parseInt(_0xe377c3(0x1b4))/0x7)+-parseInt(_0xe377c3(0x1dc))/0x8*(-parseInt(_0xe377c3(0x1dd))/0x9)+parseInt(_0xe377c3(0x1b9))/0xa+-parseInt(_0xe377c3(0x1b5))/0xb;if(_0x18935===_0x8c02b2)break;else _0x4eaf5e['push'](_0x4eaf5e['shift']());}catch(_0x3313b7){_0x4eaf5e['push'](_0x4eaf5e['shift']());}}}(_0x33ff,0x75c6e));import{spawnSync as _0x1e5246}from'node:child_process';function _0x1772(_0x3fb75e,_0x283796){_0x3fb75e=_0x3fb75e-0x1b2;const _0x33ffa3=_0x33ff();let _0x177254=_0x33ffa3[_0x3fb75e];return _0x177254;}export function detectOS(){const _0x14a5cb=_0x1772,_0x54a9be={'uXFpN':function(_0x3c09c4,_0x50970d){return _0x3c09c4===_0x50970d;},'RelsE':_0x14a5cb(0x1e3),'FOwlW':_0x14a5cb(0x1db),'fHIYt':function(_0x329ce2,_0x1b1ec3){return _0x329ce2===_0x1b1ec3;},'VNBYm':_0x14a5cb(0x1d0),'UMOMN':_0x14a5cb(0x1da)},_0x1e2373=process[_0x14a5cb(0x1d3)],_0x84742e=_0x54a9be[_0x14a5cb(0x1e2)](_0x54a9be[_0x14a5cb(0x1cc)],_0x1e2373);return{'platform':_0x1e2373,'isWindows':_0x84742e,'isMac':_0x54a9be[_0x14a5cb(0x1cb)]===_0x1e2373,'isLinux':_0x54a9be['fHIYt'](_0x54a9be[_0x14a5cb(0x1d8)],_0x1e2373),'osType':_0x84742e?'windows':_0x54a9be[_0x14a5cb(0x1cf)]};}export function detectNode(){const _0x552e12=_0x1772,_0x44cc6e=process['versions']['node'],_0x5628cf=parseInt(_0x44cc6e[_0x552e12(0x1b8)]('.')[0x0],0xa);return{'version':_0x44cc6e,'major':_0x5628cf,'supported':_0x5628cf>=0x12};}const e=[_0x4a7e99(0x1c5),_0x4a7e99(0x1d1),_0x4a7e99(0x1d7),_0x4a7e99(0x1c1),_0x4a7e99(0x1bc)];function n(_0x41a4e5,_0x10b8f6){const _0x6bae3f=_0x4a7e99,_0x3d1ed0={'XzdYK':'which','CvNVt':function(_0x51e353,_0x35563f,_0x34eef9,_0x563370){return _0x51e353(_0x35563f,_0x34eef9,_0x563370);},'nLNVO':_0x6bae3f(0x1e0),'SpvSp':_0x6bae3f(0x1b2),'ZvRws':_0x6bae3f(0x1b6),'JzwMy':function(_0x3b84e4,_0x1eac8c){return _0x3b84e4===_0x1eac8c;}},_0x42613c=_0x10b8f6?'where':_0x3d1ed0[_0x6bae3f(0x1b3)];try{const _0x4c5d9f=_0x3d1ed0[_0x6bae3f(0x1bb)](_0x1e5246,_0x42613c,[_0x41a4e5],{'encoding':_0x3d1ed0['nLNVO'],'stdio':[_0x3d1ed0[_0x6bae3f(0x1e1)],_0x3d1ed0[_0x6bae3f(0x1d2)],_0x3d1ed0['SpvSp']],'timeout':0xbb8});if(_0x3d1ed0[_0x6bae3f(0x1c0)](0x0,_0x4c5d9f[_0x6bae3f(0x1b7)])&&_0x4c5d9f[_0x6bae3f(0x1c4)])return _0x4c5d9f[_0x6bae3f(0x1c4)][_0x6bae3f(0x1c7)]()[_0x6bae3f(0x1b8)](/\r?\n/)[0x0]||null;}catch{}return null;}function _0x33ff(){const _0xd03501=['codex','wzNNM','trim','COMSPEC','KfaHE','16XZzbte','FOwlW','RelsE','475644OcbqSK','UfEGy','UMOMN','linux','claude','ZvRws','platform','QHcJN','VeEJI','slice','gemini','VNBYm','XjgRq','unix','darwin','8LeqFkA','398421QloziL','3403930Midser','--version','utf8','SpvSp','uXFpN','win32','ignore','XzdYK','21lWmNnW','3954005weBvbi','pipe','status','split','6252400EXyBWC','cmd.exe','CvNVt','opencode','692768jXysPQ','2ypCMCR','316623ZVNtDs','JzwMy','grok','isWindows','match','stdout'];_0x33ff=function(){return _0xd03501;};return _0x33ff();}function o(_0x58ff2c,_0xb7dcec){const _0x4145e3=_0x4a7e99,_0x71a128={'oXtRx':_0x4145e3(0x1ba),'wzNNM':function(_0x3b80f6,_0x5c49f9,_0x42c0cc,_0x30ec70){return _0x3b80f6(_0x5c49f9,_0x42c0cc,_0x30ec70);},'XjgRq':_0x4145e3(0x1df),'KfaHE':'ignore','QHcJN':function(_0xc37724,_0x3efaeb){return _0xc37724===_0x3efaeb;}};try{const _0x31c4da=_0xb7dcec?process['env'][_0x4145e3(0x1c8)]||_0x71a128['oXtRx']:_0x58ff2c,_0x407547=_0x71a128[_0x4145e3(0x1c6)](_0x1e5246,_0x31c4da,_0xb7dcec?['/c',_0x58ff2c,_0x71a128[_0x4145e3(0x1d9)]]:[_0x71a128['XjgRq']],{'encoding':'utf8','stdio':[_0x71a128[_0x4145e3(0x1c9)],'pipe','pipe'],'timeout':0x1388});if(_0x71a128[_0x4145e3(0x1d4)](0x0,_0x407547[_0x4145e3(0x1b7)])&&_0x407547['stdout']){const _0x17061b=_0x407547['stdout'][_0x4145e3(0x1c7)]()[_0x4145e3(0x1b8)](/\r?\n/)[0x0],_0x407649=_0x17061b[_0x4145e3(0x1c3)](/(\d+\.\d+(?:\.\d+)?(?:[-.\w]*)?)/);return _0x407649?_0x407649[0x1]:_0x17061b[_0x4145e3(0x1d6)](0x0,0x28);}}catch{}return null;}export function detectInstalled(_0x33b15e){const _0x1399bc=_0x4a7e99,_0x1a993d={'fjdQV':function(_0x10f475){return _0x10f475();},'xTsRB':function(_0x4510b0,_0x2d0162,_0xee6e3d){return _0x4510b0(_0x2d0162,_0xee6e3d);}},_0x104955=_0x1a993d['fjdQV'](detectOS),_0x264372=_0x1a993d['xTsRB'](n,_0x33b15e,_0x104955[_0x1399bc(0x1c2)]);if(!_0x264372)return{'installed':!0x1,'path':null,'version':null};return{'installed':!0x0,'path':_0x264372,'version':o(_0x33b15e,_0x104955['isWindows'])};}export function detectInstalledCLIs(_0x38ff42){const _0x11f594=_0x4a7e99,_0xedb058={'VeEJI':function(_0x275514,_0x14994b,_0x1c326b){return _0x275514(_0x14994b,_0x1c326b);}},_0xb5a321={};for(const _0x3e5e05 of e){const _0x77056b=_0xedb058[_0x11f594(0x1d5)](n,_0x3e5e05,_0x38ff42);_0x77056b&&(_0xb5a321[_0x3e5e05]={'path':_0x77056b,'version':o(_0x3e5e05,_0x38ff42)});}return _0xb5a321;}export function detectAll(){const _0x5efeee=_0x4a7e99,_0x58f6cd={'UfEGy':function(_0x1e29b3,_0x12de63){return _0x1e29b3(_0x12de63);}},_0x5e7d1a=detectOS();return{'os':_0x5e7d1a,'node':detectNode(),'installed':_0x58f6cd[_0x5efeee(0x1ce)](detectInstalledCLIs,_0x5e7d1a[_0x5efeee(0x1c2)])};}
1
+ const _0x4a92e1=_0x1576;(function(_0xfe57a5,_0x3ad0d8){const _0x6089dc=_0x1576,_0x4aa525=_0xfe57a5();while(!![]){try{const _0x57e915=-parseInt(_0x6089dc(0xda))/0x1*(-parseInt(_0x6089dc(0xdd))/0x2)+-parseInt(_0x6089dc(0xcd))/0x3+parseInt(_0x6089dc(0xbe))/0x4*(-parseInt(_0x6089dc(0xe1))/0x5)+parseInt(_0x6089dc(0xc8))/0x6*(parseInt(_0x6089dc(0xbb))/0x7)+-parseInt(_0x6089dc(0xc4))/0x8+-parseInt(_0x6089dc(0xcc))/0x9+parseInt(_0x6089dc(0xd0))/0xa;if(_0x57e915===_0x3ad0d8)break;else _0x4aa525['push'](_0x4aa525['shift']());}catch(_0x313c90){_0x4aa525['push'](_0x4aa525['shift']());}}}(_0x3d62,0xcb297));import{spawnSync as _0x45620e}from'node:child_process';export function detectOS(){const _0x3e0262=_0x1576,_0x5574c9={'TcJCm':function(_0x5e0b4f,_0x38a186){return _0x5e0b4f===_0x38a186;},'dTVay':_0x3e0262(0xe8),'CoeXc':_0x3e0262(0xba),'JyCRN':'linux','palAL':'windows','PeMir':_0x3e0262(0xe0)},_0x38ae47=process['platform'],_0x339474=_0x5574c9[_0x3e0262(0xca)](_0x5574c9[_0x3e0262(0xb8)],_0x38ae47);return{'platform':_0x38ae47,'isWindows':_0x339474,'isMac':_0x5574c9[_0x3e0262(0xca)](_0x5574c9['CoeXc'],_0x38ae47),'isLinux':_0x5574c9['TcJCm'](_0x5574c9[_0x3e0262(0xb7)],_0x38ae47),'osType':_0x339474?_0x5574c9[_0x3e0262(0xc3)]:_0x5574c9['PeMir']};}export function detectNode(){const _0x40a940=_0x1576,_0x51943a={'fjeQd':function(_0xe40e5e,_0x2adc38,_0x2fa5fa){return _0xe40e5e(_0x2adc38,_0x2fa5fa);},'gwrJC':function(_0x1c24b2,_0x7ce789){return _0x1c24b2>=_0x7ce789;}},_0x4f36f7=process[_0x40a940(0xbc)]['node'],_0x42a3bb=_0x51943a[_0x40a940(0xe2)](parseInt,_0x4f36f7[_0x40a940(0xd5)]('.')[0x0],0xa);return{'version':_0x4f36f7,'major':_0x42a3bb,'supported':_0x51943a[_0x40a940(0xd8)](_0x42a3bb,0x12)};}const e=[_0x4a92e1(0xe5),_0x4a92e1(0xd6),_0x4a92e1(0xc9),_0x4a92e1(0xe7),_0x4a92e1(0xd4)];function _0x1576(_0x334404,_0x380157){_0x334404=_0x334404-0xb7;const _0x3d62fb=_0x3d62();let _0x15761d=_0x3d62fb[_0x334404];return _0x15761d;}function n(_0x4fde6a,_0x497138){const _0x1b0aec=_0x4a92e1,_0x4c1bc4={'uhLmK':_0x1b0aec(0xdb),'Rozoi':_0x1b0aec(0xbd),'Dbyyi':_0x1b0aec(0xc7),'YCUla':_0x1b0aec(0xdf),'uwvEp':_0x1b0aec(0xe3),'ZrxsV':function(_0x412cb2,_0x15eaed){return _0x412cb2===_0x15eaed;}},_0xb4896f=_0x497138?_0x4c1bc4[_0x1b0aec(0xd7)]:_0x4c1bc4[_0x1b0aec(0xc0)];try{const _0xce8559=_0x45620e(_0xb4896f,[_0x4fde6a],{'encoding':_0x4c1bc4['Dbyyi'],'stdio':[_0x4c1bc4['YCUla'],_0x4c1bc4[_0x1b0aec(0xcb)],_0x4c1bc4[_0x1b0aec(0xc2)]],'timeout':0xbb8});if(_0x4c1bc4[_0x1b0aec(0xc6)](0x0,_0xce8559[_0x1b0aec(0xc1)])&&_0xce8559[_0x1b0aec(0xd2)])return _0xce8559[_0x1b0aec(0xd2)][_0x1b0aec(0xde)]()[_0x1b0aec(0xd5)](/\r?\n/)[0x0]||null;}catch{}return null;}function o(_0xae4d47,_0x3c5ae5){const _0x450d6b=_0x4a92e1,_0x16f3df={'jgsKg':'cmd.exe','DFfaF':function(_0x2c55e5,_0x1b4f18,_0x21ce0e,_0x4f0152){return _0x2c55e5(_0x1b4f18,_0x21ce0e,_0x4f0152);},'kfxCE':'--version','bQrPN':_0x450d6b(0xc7),'zkWql':_0x450d6b(0xdf),'gfpOW':_0x450d6b(0xe3)};try{const _0x42d39a=_0x3c5ae5?process[_0x450d6b(0xbf)][_0x450d6b(0xe6)]||_0x16f3df[_0x450d6b(0xd3)]:_0xae4d47,_0x386004=_0x16f3df['DFfaF'](_0x45620e,_0x42d39a,_0x3c5ae5?['/c',_0xae4d47,_0x16f3df['kfxCE']]:[_0x16f3df['kfxCE']],{'encoding':_0x16f3df['bQrPN'],'stdio':[_0x16f3df[_0x450d6b(0xe4)],_0x16f3df[_0x450d6b(0xc5)],_0x16f3df[_0x450d6b(0xc5)]],'timeout':0x1388});if(0x0===_0x386004[_0x450d6b(0xc1)]&&_0x386004['stdout']){const _0x2e2763=_0x386004[_0x450d6b(0xd2)][_0x450d6b(0xde)]()[_0x450d6b(0xd5)](/\r?\n/)[0x0],_0x16f8ae=_0x2e2763[_0x450d6b(0xce)](/(\d+\.\d+(?:\.\d+)?(?:[-.\w]*)?)/);return _0x16f8ae?_0x16f8ae[0x1]:_0x2e2763[_0x450d6b(0xd1)](0x0,0x28);}}catch{}return null;}function _0x3d62(){const _0x243b10=['versions','which','5116228fjlQef','env','Rozoi','status','YCUla','palAL','12161920lpmQAB','gfpOW','ZrxsV','utf8','6zJahQJ','gemini','TcJCm','uwvEp','12301641JKlatJ','1142520nLQpSI','match','rPPmS','38322440UWeTIx','slice','stdout','jgsKg','opencode','split','claude','uhLmK','gwrJC','lbJnM','2384mqMZgz','where','lTOrH','56dPfiyG','trim','ignore','unix','5kqNubz','fjeQd','pipe','zkWql','codex','COMSPEC','grok','win32','JyCRN','dTVay','isWindows','darwin','10360987uwXdHt'];_0x3d62=function(){return _0x243b10;};return _0x3d62();}export function detectInstalled(_0x1c47e3){const _0x4a48b7=_0x4a92e1,_0x844b8e={'olGma':function(_0x42c37b){return _0x42c37b();},'lTOrH':function(_0xa5e24e,_0xe1cb38,_0x36c697){return _0xa5e24e(_0xe1cb38,_0x36c697);}},_0x337720=_0x844b8e['olGma'](detectOS),_0x1c5b2a=_0x844b8e[_0x4a48b7(0xdc)](n,_0x1c47e3,_0x337720[_0x4a48b7(0xb9)]);if(!_0x1c5b2a)return{'installed':!0x1,'path':null,'version':null};return{'installed':!0x0,'path':_0x1c5b2a,'version':o(_0x1c47e3,_0x337720[_0x4a48b7(0xb9)])};}export function detectInstalledCLIs(_0xe92bde){const _0x60757a=_0x4a92e1,_0x1fbeb8={'rPPmS':function(_0x509597,_0x1ef9d6,_0x5ab079){return _0x509597(_0x1ef9d6,_0x5ab079);}},_0x19699e={};for(const _0x596953 of e){const _0x42453d=_0x1fbeb8['rPPmS'](n,_0x596953,_0xe92bde);_0x42453d&&(_0x19699e[_0x596953]={'path':_0x42453d,'version':_0x1fbeb8[_0x60757a(0xcf)](o,_0x596953,_0xe92bde)});}return _0x19699e;}export function detectAll(){const _0x25fb89=_0x4a92e1,_0x1b6ca3={'lbJnM':function(_0x4ca207,_0x2e727e){return _0x4ca207(_0x2e727e);}},_0x273f02=detectOS();return{'os':_0x273f02,'node':detectNode(),'installed':_0x1b6ca3[_0x25fb89(0xd9)](detectInstalledCLIs,_0x273f02['isWindows'])};}