@ranger-testing/ranger-cli 2.5.2 → 2.5.3
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/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xcfafa2,_0x469f59){const _0x578677=_0x52bc,_0x15bd6d=_0xcfafa2();while(!![]){try{const _0x48761d=-parseInt(_0x578677(0xb4))/0x1+-parseInt(_0x578677(0xad))/0x2+-parseInt(_0x578677(0x92))/0x3*(parseInt(_0x578677(0xbd))/0x4)+-parseInt(_0x578677(0xbc))/0x5+parseInt(_0x578677(0x95))/0x6*(-parseInt(_0x578677(0x9c))/0x7)+parseInt(_0x578677(0x8f))/0x8+-parseInt(_0x578677(0x9d))/0x9*(-parseInt(_0x578677(0x93))/0xa);if(_0x48761d===_0x469f59)break;else _0x15bd6d['push'](_0x15bd6d['shift']());}catch(_0x3867c2){_0x15bd6d['push'](_0x15bd6d['shift']());}}}(_0x4c66,0x80732));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x40e410){const _0x4f96bc=_0x52bc,_0x33fe64={'ShaZY':function(_0x57eda7,_0x358e3e){return _0x57eda7===_0x358e3e;},'BnRCW':'object','JVRws':function(_0x4c7afb,_0x3740bf){return _0x4c7afb!==_0x3740bf;}};return _0x33fe64[_0x4f96bc(0xa3)](typeof _0x40e410,_0x33fe64[_0x4f96bc(0xa7)])&&_0x33fe64['JVRws'](_0x40e410,null);}function isImageBlock(_0x5d2e6a){const _0x18d0b2=_0x52bc;return isRecord(_0x5d2e6a)&&_0x5d2e6a['type']===_0x18d0b2(0xa2);}function isDataUrl(_0x28ab5f){const _0x53ba08=_0x52bc,_0x3dfc6b={'kJZCB':_0x53ba08(0x9e)};return _0x28ab5f[_0x53ba08(0x96)](_0x3dfc6b['kJZCB']);}function parseDataUrl(_0x438066){const _0x2475b6=_0x52bc,_0xc3fac3=/^data:([^;]+);base64,(.+)$/[_0x2475b6(0xd2)](_0x438066);if(!_0xc3fac3)return null;const _0x51796e=_0xc3fac3[0x1][_0x2475b6(0xab)]();if(!isValidMediaType(_0x51796e))return null;return{'data':_0xc3fac3[0x2],'mediaType':_0x51796e};}function isValidMediaType(_0x298fb4){const _0x9a8a7c=_0x52bc,_0x32c1e0={'yOEeR':_0x9a8a7c(0x8d),'DSOyC':'image/gif'};return[_0x32c1e0['yOEeR'],_0x9a8a7c(0xcd),_0x32c1e0['DSOyC'],'image/webp']['includes'](_0x298fb4);}function _0x4c66(){const _0x5209d4=['content','status','McSwp','3582455tzSDRl','576xDPiqa','url','gif','size','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','zARkX','length','webp','source','https://','VlPFP','updated','headers','AscJl','PostToolUse','coPWF','image/png','arrayBuffer','CuQoL','toString','\x20bytes)','exec','map','ClcDx','image/jpeg','type','5453904GtutKT','jpg','UuHAp','12588hhCFCF','470XNQthP','KtiAK','2418618acsLMt','startsWith','http://','VCuna','Image\x20exceeds\x20size\x20limit\x20(','entries','jpeg','7OKJGCC','417078ZBUigC','data:','aAAcd','image/webp','get','image','ShaZY','TPjsY','byteLength','IflkV','BnRCW','qHBIz','block','tool_response','toLowerCase','yCGHt','731274zLnuMe','base64','image/gif','isArray','IVStE','fromEntries','APngd','244227EipyWB','JKiwh','mimeType','LGLsj','xjnAP'];_0x4c66=function(){return _0x5209d4;};return _0x4c66();}function _0x52bc(_0x4f58b8,_0x1ecf59){_0x4f58b8=_0x4f58b8-0x8b;const _0x4c6610=_0x4c66();let _0x52bc5d=_0x4c6610[_0x4f58b8];return _0x52bc5d;}function inferMediaType(_0x127b76,_0x13ab3d){const _0x58cb45=_0x52bc,_0x3c756={'xjnAP':function(_0x2910b6,_0x3ac46a){return _0x2910b6(_0x3ac46a);},'zOUWv':_0x58cb45(0x90),'HrtZM':_0x58cb45(0x9b),'KtiAK':'image/jpeg','VCuna':'png','rkkGs':_0x58cb45(0xaf),'ZqKXx':_0x58cb45(0xc4),'IVStE':_0x58cb45(0xa0),'JciYG':'image/png'};if(_0x127b76){const _0x588f3e=_0x127b76[_0x58cb45(0xab)]()['split'](';')[0x0]['trim']();if(_0x3c756[_0x58cb45(0xb8)](isValidMediaType,_0x588f3e))return _0x588f3e;}const _0x459f76=extname(_0x13ab3d)[_0x58cb45(0xab)]()['replace']('.','');switch(_0x459f76){case _0x3c756['zOUWv']:case _0x3c756['HrtZM']:return _0x3c756[_0x58cb45(0x94)];case _0x3c756[_0x58cb45(0x98)]:return _0x58cb45(0xcd);case _0x58cb45(0xbf):return _0x3c756['rkkGs'];case _0x3c756['ZqKXx']:return _0x3c756[_0x58cb45(0xb1)];default:return _0x3c756['JciYG'];}}async function readImageFromUrl(_0x5a5189){const _0x11c35a=_0x52bc,_0x4a53f1={'vFRek':function(_0x32fcd0,_0x4d7c4a){return _0x32fcd0(_0x4d7c4a);},'zARkX':_0x11c35a(0xc1),'AscJl':'file://','CuQoL':_0x11c35a(0x97),'APngd':function(_0x279035,_0x39d4f8,_0x219073){return _0x279035(_0x39d4f8,_0x219073);},'ClcDx':function(_0x11e6db,_0x4cb7ca){return _0x11e6db(_0x4cb7ca);},'yCGHt':function(_0x4cc8d5,_0x7cb780){return _0x4cc8d5>_0x7cb780;},'cTGME':function(_0x2f630d,_0x209725){return _0x2f630d>_0x209725;},'JKiwh':'base64'};if(_0x4a53f1['vFRek'](isDataUrl,_0x5a5189)){const _0x297172=parseDataUrl(_0x5a5189);if(_0x297172)return _0x297172;throw new Error(_0x4a53f1[_0x11c35a(0xc2)]);}if(_0x5a5189[_0x11c35a(0x96)](_0x4a53f1[_0x11c35a(0xca)])){const _0x1d3485=fileURLToPath(_0x5a5189),_0x185079=await _0x4a53f1['vFRek'](stat,_0x1d3485);if(_0x185079[_0x11c35a(0xc0)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x11c35a(0x99)+MAX_IMAGE_SIZE_BYTES+_0x11c35a(0xd1));const _0x487975=await readFile(_0x1d3485);return{'data':_0x487975[_0x11c35a(0xd0)]('base64'),'mediaType':inferMediaType(null,_0x1d3485)};}if(_0x5a5189[_0x11c35a(0x96)](_0x4a53f1[_0x11c35a(0xcf)])||_0x5a5189[_0x11c35a(0x96)](_0x11c35a(0xc6))){const _0x52f41e=await _0x4a53f1[_0x11c35a(0xb3)](fetch,_0x5a5189,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x52f41e['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x52f41e[_0x11c35a(0xba)]);const _0x634449=_0x52f41e['headers']['get']('content-length');if(_0x634449){const _0x3c6891=_0x4a53f1[_0x11c35a(0x8c)](Number,_0x634449);if(!Number['isNaN'](_0x3c6891)&&_0x4a53f1[_0x11c35a(0xac)](_0x3c6891,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x11c35a(0x99)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x4b44aa=await _0x52f41e[_0x11c35a(0xce)]();if(_0x4a53f1['cTGME'](_0x4b44aa[_0x11c35a(0xa5)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x11c35a(0x99)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x4b44aa)['toString'](_0x4a53f1[_0x11c35a(0xb5)]),'mediaType':inferMediaType(_0x52f41e[_0x11c35a(0xc9)][_0x11c35a(0xa1)]('content-type'),_0x5a5189)};}const _0x595c69=await _0x4a53f1['ClcDx'](stat,_0x5a5189);if(_0x595c69['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x11c35a(0xd1));const _0x8b1f3a=await readFile(_0x5a5189);return{'data':_0x8b1f3a['toString']('base64'),'mediaType':inferMediaType(null,_0x5a5189)};}async function convertImageBlockToBase64(_0x2f6636){const _0x346bad=_0x52bc,_0x45a90b={'qNHDb':function(_0x46f285,_0x44cba1){return _0x46f285===_0x44cba1;},'coPWF':function(_0x18b8cd,_0x57abaa){return _0x18b8cd(_0x57abaa);},'CewVI':'base64'};if(_0x45a90b['qNHDb'](_0x2f6636[_0x346bad(0xc5)]?.[_0x346bad(0x8e)],_0x346bad(0xae)))return{'updated':![],'block':_0x2f6636};if(_0x2f6636['data']&&_0x2f6636[_0x346bad(0xb6)])return{'updated':![],'block':_0x2f6636};const _0x3dbc0b=_0x2f6636['source']?.['url']??_0x2f6636[_0x346bad(0xbe)];if(!_0x3dbc0b)return{'updated':![],'block':_0x2f6636};const _0x511c69=await _0x45a90b[_0x346bad(0xcc)](readImageFromUrl,_0x3dbc0b);return{'updated':!![],'block':{..._0x2f6636,'source':{'type':_0x45a90b['CewVI'],'media_type':_0x511c69['mediaType'],'data':_0x511c69['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x313d96){const _0x438b0b=_0x52bc,_0x1b5d7f={'zKgEr':function(_0xd39e7b,_0xd55f22){return _0xd39e7b(_0xd55f22);}};if(!isRecord(_0x313d96))return{'updated':![],'output':_0x313d96};const _0x3281dd=_0x313d96[_0x438b0b(0xb9)];if(!Array[_0x438b0b(0xb0)](_0x3281dd))return{'updated':![],'output':_0x313d96};let _0x4fb130=![];const _0x46df40=await Promise['all'](_0x3281dd[_0x438b0b(0x8b)](async _0x44258a=>{const _0x1be978=_0x438b0b;if(!_0x1b5d7f['zKgEr'](isImageBlock,_0x44258a))return _0x44258a;try{const _0x4b1c26=await convertImageBlockToBase64(_0x44258a);if(_0x4b1c26[_0x1be978(0xc8)])_0x4fb130=!![];return _0x4b1c26[_0x1be978(0xa9)];}catch{return _0x44258a;}}));if(!_0x4fb130)return{'updated':![],'output':_0x313d96};return{'updated':!![],'output':{..._0x313d96,'content':_0x46df40}};}function sanitizeLoneSurrogates(_0x11f467){const _0x8761b5=_0x52bc,_0x31fb98={'LGLsj':function(_0x52fdd4,_0x9a0afc){return _0x52fdd4<_0x9a0afc;},'aAAcd':function(_0x2a5abd,_0x53ea7b){return _0x2a5abd>=_0x53ea7b;},'uBCpg':function(_0xde1a9,_0x5d8d5b){return _0xde1a9<=_0x5d8d5b;},'VlPFP':function(_0x1a1145,_0x50451f){return _0x1a1145>=_0x50451f;},'qHBIz':function(_0xb81a11,_0x5c49fe){return _0xb81a11+_0x5c49fe;},'IflkV':function(_0x549fae,_0x17675e){return _0x549fae<=_0x17675e;}};let _0x448ab0=![],_0x3f27d4='';for(let _0x466bc0=0x0;_0x31fb98[_0x8761b5(0xb7)](_0x466bc0,_0x11f467[_0x8761b5(0xc3)]);_0x466bc0+=0x1){const _0x8f76dd=_0x11f467['charCodeAt'](_0x466bc0);if(_0x31fb98[_0x8761b5(0x9f)](_0x8f76dd,0xd800)&&_0x31fb98['uBCpg'](_0x8f76dd,0xdbff)){const _0x24522a=_0x11f467['charCodeAt'](_0x466bc0+0x1);if(_0x31fb98[_0x8761b5(0xc7)](_0x24522a,0xdc00)&&_0x24522a<=0xdfff){_0x3f27d4+=_0x31fb98[_0x8761b5(0xa8)](_0x11f467[_0x466bc0],_0x11f467[_0x466bc0+0x1]),_0x466bc0+=0x1;continue;}_0x448ab0=!![],_0x3f27d4+='�';continue;}if(_0x8f76dd>=0xdc00&&_0x31fb98[_0x8761b5(0xa6)](_0x8f76dd,0xdfff)){_0x448ab0=!![],_0x3f27d4+='�';continue;}_0x3f27d4+=_0x11f467[_0x466bc0];}return _0x448ab0?{'updated':_0x448ab0,'value':_0x3f27d4}:{'updated':_0x448ab0,'value':_0x11f467};}function sanitizeLoneSurrogatesDeep(_0x1dc287){const _0x2be73f=_0x52bc,_0x29d18a={'UuHAp':function(_0x3f2263,_0x14e936){return _0x3f2263(_0x14e936);},'gPOhU':function(_0x2e11b5,_0x2372fa){return _0x2e11b5===_0x2372fa;}};if(_0x29d18a['gPOhU'](typeof _0x1dc287,'string'))return sanitizeLoneSurrogates(_0x1dc287);if(Array['isArray'](_0x1dc287)){let _0x4607d5=![];const _0x2c5ac6=_0x1dc287['map'](_0x1da5cc=>{const _0x441dfe=sanitizeLoneSurrogatesDeep(_0x1da5cc);return _0x441dfe['updated']&&(_0x4607d5=!![]),_0x441dfe['value'];});return _0x4607d5?{'updated':!![],'value':_0x2c5ac6}:{'updated':![],'value':_0x1dc287};}if(!_0x29d18a[_0x2be73f(0x91)](isRecord,_0x1dc287))return{'updated':![],'value':_0x1dc287};let _0x4ea9a5=![];const _0x40b4c9=Object[_0x2be73f(0x9a)](_0x1dc287)['map'](([_0x1a22ea,_0x296ab7])=>{const _0x5b0145=_0x29d18a['UuHAp'](sanitizeLoneSurrogatesDeep,_0x296ab7);return _0x5b0145['updated']&&(_0x4ea9a5=!![]),[_0x1a22ea,_0x5b0145['value']];});return _0x4ea9a5?{'updated':!![],'value':Object[_0x2be73f(0xb2)](_0x40b4c9)}:{'updated':![],'value':_0x1dc287};}export function createMcpImageBase64Hook(){const _0x431cff=_0x52bc,_0x30a687={'McSwp':function(_0x485f54,_0x56c729){return _0x485f54!==_0x56c729;},'TPjsY':_0x431cff(0xcb),'SIhyq':function(_0x40df1c,_0x3ead1b){return _0x40df1c(_0x3ead1b);}};return async _0x35bb69=>{const _0x5b0325=_0x431cff;if(_0x30a687[_0x5b0325(0xbb)](_0x35bb69['hook_event_name'],_0x30a687['TPjsY']))return{};const _0x4e479a=_0x35bb69,_0x4a5cd1=await convertToolOutputImagesToBase64(_0x4e479a[_0x5b0325(0xaa)]),_0x26c9ca=_0x30a687['SIhyq'](sanitizeLoneSurrogatesDeep,_0x4a5cd1['output']),_0x338271=_0x4a5cd1['updated']||_0x26c9ca['updated'];if(!_0x338271)return{};return{'hookSpecificOutput':{'hookEventName':_0x30a687[_0x5b0325(0xa4)],'updatedMCPToolOutput':_0x26c9ca['value']}};};}
|
|
1
|
+
(function(_0x2d7b15,_0x3e8d7e){const _0x5c10a8=_0x38d4,_0x832acf=_0x2d7b15();while(!![]){try{const _0x50f97f=parseInt(_0x5c10a8(0xe1))/0x1*(-parseInt(_0x5c10a8(0xd0))/0x2)+-parseInt(_0x5c10a8(0xfa))/0x3+-parseInt(_0x5c10a8(0xce))/0x4*(parseInt(_0x5c10a8(0xf8))/0x5)+-parseInt(_0x5c10a8(0xcf))/0x6*(parseInt(_0x5c10a8(0xea))/0x7)+-parseInt(_0x5c10a8(0xfe))/0x8*(-parseInt(_0x5c10a8(0xf2))/0x9)+parseInt(_0x5c10a8(0x10d))/0xa*(parseInt(_0x5c10a8(0xd6))/0xb)+-parseInt(_0x5c10a8(0xeb))/0xc*(-parseInt(_0x5c10a8(0xdf))/0xd);if(_0x50f97f===_0x3e8d7e)break;else _0x832acf['push'](_0x832acf['shift']());}catch(_0x4deb47){_0x832acf['push'](_0x832acf['shift']());}}}(_0x1045,0xa10b9));import{readFile,stat}from'fs/promises';import{extname}from'path';function _0x38d4(_0x450c56,_0x5ec01f){_0x450c56=_0x450c56-0xcb;const _0x104554=_0x1045();let _0x38d4c5=_0x104554[_0x450c56];return _0x38d4c5;}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x4124ca){const _0x19aa36=_0x38d4,_0x2eb6d5={'baVAQ':function(_0x24d7c2,_0x12e8bc){return _0x24d7c2===_0x12e8bc;}};return _0x2eb6d5['baVAQ'](typeof _0x4124ca,_0x19aa36(0xed))&&_0x4124ca!==null;}function isImageBlock(_0x128831){const _0x210cc8=_0x38d4,_0x2e6d83={'xCBJA':function(_0x3f3dec,_0x7daf2b){return _0x3f3dec(_0x7daf2b);},'CWQeH':function(_0xb240c7,_0x2db74a){return _0xb240c7===_0x2db74a;},'vlMwN':_0x210cc8(0xf5)};return _0x2e6d83[_0x210cc8(0xfc)](isRecord,_0x128831)&&_0x2e6d83[_0x210cc8(0xe7)](_0x128831['type'],_0x2e6d83[_0x210cc8(0xe9)]);}function isDataUrl(_0x22cb84){const _0x59ea04=_0x38d4,_0x3a4a77={'ujsTS':'data:'};return _0x22cb84['startsWith'](_0x3a4a77[_0x59ea04(0xff)]);}function parseDataUrl(_0x11a469){const _0x41e84c=_0x38d4,_0x348420={'vwspK':function(_0x2a844b,_0x81c543){return _0x2a844b(_0x81c543);}},_0x466a04=/^data:([^;]+);base64,(.+)$/[_0x41e84c(0xe3)](_0x11a469);if(!_0x466a04)return null;const _0x5cd147=_0x466a04[0x1][_0x41e84c(0xe4)]();if(!_0x348420[_0x41e84c(0xd4)](isValidMediaType,_0x5cd147))return null;return{'data':_0x466a04[0x2],'mediaType':_0x5cd147};}function isValidMediaType(_0x295523){const _0x5c509c=_0x38d4,_0x31a63a={'zQhQo':_0x5c509c(0xe6)};return['image/jpeg',_0x5c509c(0xe2),'image/gif',_0x31a63a[_0x5c509c(0xec)]]['includes'](_0x295523);}function inferMediaType(_0x5cb0ed,_0x1e740f){const _0x4b27b=_0x38d4,_0x203a39={'HjdZX':function(_0x5d7d10,_0x2b46ae){return _0x5d7d10(_0x2b46ae);},'HVOxz':_0x4b27b(0x10b),'dJxBR':'image/png','slEEd':_0x4b27b(0xcd),'PNMgp':_0x4b27b(0x104)};if(_0x5cb0ed){const _0x5ed5c5=_0x5cb0ed['toLowerCase']()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x5ed5c5))return _0x5ed5c5;}const _0x2af695=_0x203a39[_0x4b27b(0xd3)](extname,_0x1e740f)[_0x4b27b(0xe4)]()['replace']('.','');switch(_0x2af695){case _0x203a39[_0x4b27b(0xdc)]:case _0x4b27b(0xee):return'image/jpeg';case'png':return _0x203a39['dJxBR'];case _0x203a39['slEEd']:return _0x203a39['PNMgp'];case'webp':return'image/webp';default:return _0x203a39['dJxBR'];}}function _0x1045(){const _0xb25e08=['xANVm','toString','HVOxz','byteLength','block','299EkUoxY','Image\x20exceeds\x20size\x20limit\x20(','33856ZIhNUy','image/png','exec','toLowerCase','updated','image/webp','CWQeH','VmrAc','vlMwN','35YtWKLD','1273332cYPnam','zQhQo','object','jpeg','bLlpf','map','rmZjl','42327FEKzzi','\x20bytes)','base64','image','mediaType','QbMiq','28870kzMPeD','https://','2569191BRDYBk','Failed\x20to\x20fetch\x20image:\x20','xCBJA','type','344qCxPPw','ujsTS','value','fromEntries','YYYAS','string','image/gif','length','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','entries','PlRHG','content','headers','jpg','timeout','610wMSAcv','rnKcb','wNiJF','gif','844UOnovW','197226hIZlUh','62LVPNRz','http://','arrayBuffer','HjdZX','vwspK','YQkhu','235411BYsEps','size','pGYsk','startsWith'];_0x1045=function(){return _0xb25e08;};return _0x1045();}async function readImageFromUrl(_0x10499f){const _0x48d469=_0x38d4,_0x4933d0={'LZLDO':function(_0x9e6576,_0x384cd3){return _0x9e6576(_0x384cd3);},'QbMiq':_0x48d469(0x106),'TDXoA':'file://','nBuBv':'base64','rmZjl':'content-length','ApcKk':function(_0x1f6be8,_0x5763f0){return _0x1f6be8(_0x5763f0);},'pGYsk':function(_0x550cb5,_0x5bb4c2){return _0x550cb5>_0x5bb4c2;}};if(isDataUrl(_0x10499f)){const _0x20e661=_0x4933d0['LZLDO'](parseDataUrl,_0x10499f);if(_0x20e661)return _0x20e661;throw new Error(_0x4933d0[_0x48d469(0xf7)]);}if(_0x10499f['startsWith'](_0x4933d0['TDXoA'])){const _0x308ca8=fileURLToPath(_0x10499f),_0x26e145=await stat(_0x308ca8);if(_0x26e145[_0x48d469(0xd7)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x48d469(0xf3));const _0x13d201=await readFile(_0x308ca8);return{'data':_0x13d201['toString'](_0x4933d0['nBuBv']),'mediaType':inferMediaType(null,_0x308ca8)};}if(_0x10499f['startsWith'](_0x48d469(0xd1))||_0x10499f[_0x48d469(0xd9)](_0x48d469(0xf9))){const _0x513bbd=await fetch(_0x10499f,{'signal':AbortSignal[_0x48d469(0x10c)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x513bbd['ok'])throw new Error(_0x48d469(0xfb)+_0x513bbd['status']);const _0x170b8f=_0x513bbd['headers']['get'](_0x4933d0[_0x48d469(0xf1)]);if(_0x170b8f){const _0x4890d0=_0x4933d0['ApcKk'](Number,_0x170b8f);if(!Number['isNaN'](_0x4890d0)&&_0x4933d0['pGYsk'](_0x4890d0,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2ae5fc=await _0x513bbd[_0x48d469(0xd2)]();if(_0x2ae5fc[_0x48d469(0xdd)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x48d469(0xf3));return{'data':Buffer['from'](_0x2ae5fc)['toString'](_0x4933d0['nBuBv']),'mediaType':inferMediaType(_0x513bbd[_0x48d469(0x10a)]['get']('content-type'),_0x10499f)};}const _0x3a8f1a=await stat(_0x10499f);if(_0x4933d0[_0x48d469(0xd8)](_0x3a8f1a[_0x48d469(0xd7)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x48d469(0xe0)+MAX_IMAGE_SIZE_BYTES+_0x48d469(0xf3));const _0x3e4763=await _0x4933d0['ApcKk'](readFile,_0x10499f);return{'data':_0x3e4763[_0x48d469(0xdb)]('base64'),'mediaType':inferMediaType(null,_0x10499f)};}async function convertImageBlockToBase64(_0x1b986f){const _0x23926a=_0x38d4,_0x33675a={'xANVm':function(_0x220408,_0x210d89){return _0x220408===_0x210d89;}};if(_0x33675a[_0x23926a(0xda)](_0x1b986f['source']?.[_0x23926a(0xfd)],_0x23926a(0xf4)))return{'updated':![],'block':_0x1b986f};if(_0x1b986f['data']&&_0x1b986f['mimeType'])return{'updated':![],'block':_0x1b986f};const _0x4b6e05=_0x1b986f['source']?.['url']??_0x1b986f['url'];if(!_0x4b6e05)return{'updated':![],'block':_0x1b986f};const _0x285b42=await readImageFromUrl(_0x4b6e05);return{'updated':!![],'block':{..._0x1b986f,'source':{'type':_0x23926a(0xf4),'media_type':_0x285b42[_0x23926a(0xf6)],'data':_0x285b42['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x2215df){const _0x425e63=_0x38d4,_0x3b3441={'WAqjx':function(_0x26561c,_0x3af896){return _0x26561c(_0x3af896);}};if(!_0x3b3441['WAqjx'](isRecord,_0x2215df))return{'updated':![],'output':_0x2215df};const _0x1351af=_0x2215df[_0x425e63(0x109)];if(!Array['isArray'](_0x1351af))return{'updated':![],'output':_0x2215df};let _0x38bdd3=![];const _0x32b60f=await Promise['all'](_0x1351af[_0x425e63(0xf0)](async _0x3c0060=>{const _0x322063=_0x425e63;if(!isImageBlock(_0x3c0060))return _0x3c0060;try{const _0x4eaea9=await convertImageBlockToBase64(_0x3c0060);if(_0x4eaea9['updated'])_0x38bdd3=!![];return _0x4eaea9[_0x322063(0xde)];}catch{return _0x3c0060;}}));if(!_0x38bdd3)return{'updated':![],'output':_0x2215df};return{'updated':!![],'output':{..._0x2215df,'content':_0x32b60f}};}function sanitizeLoneSurrogates(_0x3facc8){const _0x563d3a=_0x38d4,_0x2c0136={'YYYAS':function(_0x268600,_0x3adceb){return _0x268600>=_0x3adceb;},'VmrAc':function(_0x2d0899,_0x24db4f){return _0x2d0899<=_0x24db4f;},'rnKcb':function(_0x2b85a0,_0x557d85){return _0x2b85a0+_0x557d85;},'zJiwb':function(_0x13c69a,_0x379e9b){return _0x13c69a>=_0x379e9b;},'wNiJF':function(_0x1ad22c,_0x16ecd2){return _0x1ad22c+_0x16ecd2;},'YQkhu':function(_0x506a0a,_0x110b5d){return _0x506a0a<=_0x110b5d;}};let _0x11b2be=![],_0x25b5e3='';for(let _0x27ed65=0x0;_0x27ed65<_0x3facc8[_0x563d3a(0x105)];_0x27ed65+=0x1){const _0x414398=_0x3facc8['charCodeAt'](_0x27ed65);if(_0x2c0136[_0x563d3a(0x102)](_0x414398,0xd800)&&_0x2c0136['VmrAc'](_0x414398,0xdbff)){const _0x249f95=_0x3facc8['charCodeAt'](_0x2c0136[_0x563d3a(0xcb)](_0x27ed65,0x1));if(_0x2c0136['zJiwb'](_0x249f95,0xdc00)&&_0x2c0136[_0x563d3a(0xe8)](_0x249f95,0xdfff)){_0x25b5e3+=_0x2c0136[_0x563d3a(0xcc)](_0x3facc8[_0x27ed65],_0x3facc8[_0x27ed65+0x1]),_0x27ed65+=0x1;continue;}_0x11b2be=!![],_0x25b5e3+='�';continue;}if(_0x2c0136[_0x563d3a(0x102)](_0x414398,0xdc00)&&_0x2c0136[_0x563d3a(0xd5)](_0x414398,0xdfff)){_0x11b2be=!![],_0x25b5e3+='�';continue;}_0x25b5e3+=_0x3facc8[_0x27ed65];}return _0x11b2be?{'updated':_0x11b2be,'value':_0x25b5e3}:{'updated':_0x11b2be,'value':_0x3facc8};}function sanitizeLoneSurrogatesDeep(_0xf4755c){const _0x307b1d=_0x38d4,_0x47bc63={'PlRHG':function(_0x2b7e,_0x15f1e3){return _0x2b7e(_0x15f1e3);}};if(typeof _0xf4755c===_0x307b1d(0x103))return sanitizeLoneSurrogates(_0xf4755c);if(Array['isArray'](_0xf4755c)){let _0xe98025=![];const _0x49368b=_0xf4755c['map'](_0x32336a=>{const _0x182628=_0x307b1d,_0x4dc083=sanitizeLoneSurrogatesDeep(_0x32336a);return _0x4dc083[_0x182628(0xe5)]&&(_0xe98025=!![]),_0x4dc083['value'];});return _0xe98025?{'updated':!![],'value':_0x49368b}:{'updated':![],'value':_0xf4755c};}if(!_0x47bc63[_0x307b1d(0x108)](isRecord,_0xf4755c))return{'updated':![],'value':_0xf4755c};let _0x5c7151=![];const _0x35dcbd=Object[_0x307b1d(0x107)](_0xf4755c)['map'](([_0x43a31a,_0x4b7511])=>{const _0x4d7c93=sanitizeLoneSurrogatesDeep(_0x4b7511);return _0x4d7c93['updated']&&(_0x5c7151=!![]),[_0x43a31a,_0x4d7c93['value']];});return _0x5c7151?{'updated':!![],'value':Object[_0x307b1d(0x101)](_0x35dcbd)}:{'updated':![],'value':_0xf4755c};}export function createMcpImageBase64Hook(){const _0x32d8d1={'DMoBo':'PostToolUse','bLlpf':function(_0x49ccc4,_0x5e4c26){return _0x49ccc4(_0x5e4c26);}};return async _0x51ed3b=>{const _0x81d6ce=_0x38d4;if(_0x51ed3b['hook_event_name']!==_0x32d8d1['DMoBo'])return{};const _0x3d7784=_0x51ed3b,_0x2a420f=await _0x32d8d1[_0x81d6ce(0xef)](convertToolOutputImagesToBase64,_0x3d7784['tool_response']),_0x5188db=sanitizeLoneSurrogatesDeep(_0x2a420f['output']),_0x18abc0=_0x2a420f['updated']||_0x5188db[_0x81d6ce(0xe5)];if(!_0x18abc0)return{};return{'hookSpecificOutput':{'hookEventName':_0x32d8d1['DMoBo'],'updatedMCPToolOutput':_0x5188db[_0x81d6ce(0x100)]}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x167997=_0xffa9;(function(_0x1a2add,_0x3889ab){const _0xeeffd7=_0xffa9,_0x528006=_0x1a2add();while(!![]){try{const _0x592e9a=parseInt(_0xeeffd7(0xa0))/0x1+parseInt(_0xeeffd7(0xa5))/0x2+-parseInt(_0xeeffd7(0xa4))/0x3*(parseInt(_0xeeffd7(0xaa))/0x4)+parseInt(_0xeeffd7(0xa2))/0x5+parseInt(_0xeeffd7(0xa9))/0x6*(parseInt(_0xeeffd7(0xa1))/0x7)+-parseInt(_0xeeffd7(0xa7))/0x8+-parseInt(_0xeeffd7(0xa8))/0x9;if(_0x592e9a===_0x3889ab)break;else _0x528006['push'](_0x528006['shift']());}catch(_0x4a2a44){_0x528006['push'](_0x528006['shift']());}}}(_0x58ed,0xcd287));function _0x58ed(){const _0x46fb08=['18655497zAUomU','645252oAukfy','1068jURGpo','1432746UfVUHq','28lRNsyi','6258730dINwme','claude-sonnet-4-6','1503sfbfco','2037800UOHLeK','claude-opus-4-6','8693064eJawFb'];_0x58ed=function(){return _0x46fb08;};return _0x58ed();}const VERIFY_MODEL_ALIASES={'opus':_0x167997(0xa6),'sonnet':'claude-sonnet-4-6'};function _0xffa9(_0x3be1a9,_0x50202b){_0x3be1a9=_0x3be1a9-0xa0;const _0x58ed92=_0x58ed();let _0xffa9da=_0x58ed92[_0x3be1a9];return _0xffa9da;}export const DEFAULT_VERIFY_MODEL=_0x167997(0xa3);export function resolveVerifyModel(_0x51f5fd){if(!_0x51f5fd)return undefined;const _0x6130a8=_0x51f5fd['trim']();if(!_0x6130a8)return undefined;const _0x4b6190=VERIFY_MODEL_ALIASES[_0x6130a8['toLowerCase']()];return _0x4b6190??_0x6130a8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1a61(_0x2dfaed,_0x29f6e8){_0x2dfaed=_0x2dfaed-0x95;var _0xefe20d=_0xefe2();var _0x1a618a=_0xefe20d[_0x2dfaed];return _0x1a618a;}(function(_0x1a1672,_0x2aefaa){var _0xa86ddc=_0x1a61,_0x5ea954=_0x1a1672();while(!![]){try{var _0x131ec2=parseInt(_0xa86ddc(0xa1))/0x1*(-parseInt(_0xa86ddc(0x9c))/0x2)+-parseInt(_0xa86ddc(0xa0))/0x3+-parseInt(_0xa86ddc(0x9d))/0x4+-parseInt(_0xa86ddc(0xa2))/0x5+parseInt(_0xa86ddc(0x9b))/0x6+parseInt(_0xa86ddc(0x9e))/0x7*(-parseInt(_0xa86ddc(0x96))/0x8)+parseInt(_0xa86ddc(0x98))/0x9*(parseInt(_0xa86ddc(0xa3))/0xa);if(_0x131ec2===_0x2aefaa)break;else _0x5ea954['push'](_0x5ea954['shift']());}catch(_0x3743d0){_0x5ea954['push'](_0x5ea954['shift']());}}}(_0xefe2,0xe89de));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x523e71){var _0x289339=_0x1a61,_0x4803ad={'QvdWy':function(_0x3e8dda,_0x20d898,_0x399e2d){return _0x3e8dda(_0x20d898,_0x399e2d);},'xOlZS':function(_0x432287){return _0x432287();},'GWynx':'.opencode'};if(process['env']['OPENCODE_CONFIG_DIR'])return process[_0x289339(0x9a)]['OPENCODE_CONFIG_DIR'];if(_0x523e71==='user'){if(process[_0x289339(0x9a)][_0x289339(0x9f)])return _0x4803ad[_0x289339(0x99)](join,process[_0x289339(0x9a)][_0x289339(0x9f)],'opencode');return join(homedir(),'.config','opencode');}return join(_0x4803ad[_0x289339(0x97)](getProjectRoot),_0x4803ad['GWynx']);}export function getOpencodeSkillsDir(_0x444157){var _0x160f61=_0x1a61,_0x11c97b={'VbRWm':function(_0x144721,_0x566a63){return _0x144721(_0x566a63);},'kDsGT':'skills'};return join(_0x11c97b['VbRWm'](getOpencodeConfigDir,_0x444157),_0x11c97b[_0x160f61(0x95)]);}function _0xefe2(){var _0x41ce18=['QvdWy','env','1761798JTjgPj','46FjvLBy','898888COimmm','9337622Lyfigp','XDG_CONFIG_HOME','2156769AdBgTi','76993MDOOlj','5580300wnVZBn','11647310KOggcH','kDsGT','8MuFyER','xOlZS','45LirSQL'];_0xefe2=function(){return _0x41ce18;};return _0xefe2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x47626b=_0x554b;function _0x554b(_0x1525ce,_0x3a6857){_0x1525ce=_0x1525ce-0x17f;const _0x52ea68=_0x52ea();let _0x554b07=_0x52ea68[_0x1525ce];return _0x554b07;}(function(_0x16ec94,_0x28fd53){const _0x2c67c5=_0x554b,_0x3f9ddd=_0x16ec94();while(!![]){try{const _0x11cb8d=-parseInt(_0x2c67c5(0x197))/0x1*(-parseInt(_0x2c67c5(0x182))/0x2)+-parseInt(_0x2c67c5(0x1b2))/0x3+parseInt(_0x2c67c5(0x1b5))/0x4+-parseInt(_0x2c67c5(0x18c))/0x5*(-parseInt(_0x2c67c5(0x193))/0x6)+parseInt(_0x2c67c5(0x196))/0x7+parseInt(_0x2c67c5(0x1b4))/0x8+-parseInt(_0x2c67c5(0x18d))/0x9;if(_0x11cb8d===_0x28fd53)break;else _0x3f9ddd['push'](_0x3f9ddd['shift']());}catch(_0x38237b){_0x3f9ddd['push'](_0x3f9ddd['shift']());}}}(_0x52ea,0xee920));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x47626b(0x181);function toPlaywrightCliSessionKey(_0x3c11e3){const _0x2ed47f=_0x47626b,_0x2fab5f={'LJmHG':'sha256','pamYv':_0x2ed47f(0x1b0)},_0x18632d=createHash(_0x2fab5f[_0x2ed47f(0x191)])[_0x2ed47f(0x190)](_0x3c11e3)[_0x2ed47f(0x17f)](_0x2fab5f[_0x2ed47f(0x1a2)])['slice'](0x0,0xc);return _0x2ed47f(0x18e)+_0x18632d;}function shellQuote(_0x3e6563){return'\x27'+_0x3e6563['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2228dd){const _0x460de6={'lwqBn':function(_0x1b9cd7,_0x24de93){return _0x1b9cd7(_0x24de93);}};return SAFE_SHELL_TOKEN['test'](_0x2228dd)?_0x2228dd:_0x460de6['lwqBn'](shellQuote,_0x2228dd);}export function buildPlaywrightCliInvocation(_0x459802,_0x420020,_0x563b97){const _0x5e9083=_0x47626b,_0x4a769b={'CfRGw':function(_0x4db4e5,_0x33d892){return _0x4db4e5(_0x33d892);},'lVyBt':_0x5e9083(0x183),'VnFlO':function(_0x11b503,_0x80c266){return _0x11b503(_0x80c266);},'onlzN':_0x5e9083(0x194),'NMpMM':function(_0x46bfad,_0x4d6574){return _0x46bfad(_0x4d6574);}},_0x157612=_0x4a769b[_0x5e9083(0x18b)](toPlaywrightCliSessionKey,_0x459802),[_0x5efa2f=_0x4a769b['lVyBt']]=_0x563b97,_0x85bd88=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x157612,_0x5e9083(0x194),_0x420020,..._0x563b97];return{'command':_0x5e9083(0x180),'args':_0x85bd88,'shellCommand':[_0x5e9083(0x180),PLAYWRIGHT_CLI_BINARY,'-s='+_0x4a769b['VnFlO'](quoteShellArg,_0x157612),_0x4a769b[_0x5e9083(0x1a6)],_0x4a769b['NMpMM'](quoteShellArg,_0x420020),..._0x563b97['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x5efa2f};}export function buildPlaywrightCliCommandPrefix(_0x3e397d,_0x211c27){const _0x5774d1=_0x47626b,_0x1a7744={'xHNNJ':_0x5774d1(0x180),'dXHyl':function(_0x2d4822,_0x57bf49){return _0x2d4822(_0x57bf49);},'MFlYV':'--config'},_0x1ab7b1=toPlaywrightCliSessionKey(_0x3e397d);return[_0x1a7744['xHNNJ'],PLAYWRIGHT_CLI_BINARY,_0x5774d1(0x1a0)+_0x1a7744[_0x5774d1(0x1ad)](quoteShellArg,_0x1ab7b1),_0x1a7744['MFlYV'],quoteShellArg(_0x211c27)][_0x5774d1(0x188)]('\x20');}function _0x52ea(){const _0x2b2704=['YUurz','kill','close','stdout','-s=','rQtqn','pamYv','toString','pipe','command','onlzN','AXRBm','slice','EaeQf','CdENH','values','stderr','dXHyl','trim','\x0astdout:\x20','hex','sessionId','1953516BAANZG','exited\x20with\x20code=','5407128nUMLEQ','762784JuKAmE','string','script','find','digest','npx','@playwright/cli','2vRZurO','unknown','DWCXJ','bash_command','null','subcommand','join','env','dIMJx','CfRGw','405tdpfox','23420232hCrHPo','rg-','cmd','update','LJmHG','wxUar','27036PhfBPF','--config','SIGKILL','9496186kEZlst','1642433OnGveS','timeoutMs','data','aAvFj','args'];_0x52ea=function(){return _0x2b2704;};return _0x52ea();}function truncateOutput(_0x361b1b,_0x4bb90e=0x7d0){const _0x298acb=_0x47626b,_0x2a2d12={'TtHON':function(_0x3c3ea8,_0xc25de3){return _0x3c3ea8>_0xc25de3;},'YpcGs':function(_0x1902a0,_0x1c1c62){return _0x1902a0+_0x1c1c62;},'cowwv':'...'};return _0x2a2d12['TtHON'](_0x361b1b['length'],_0x4bb90e)?_0x2a2d12['YpcGs'](_0x361b1b[_0x298acb(0x1a8)](0x0,_0x4bb90e),_0x2a2d12['cowwv']):_0x361b1b;}export async function runPlaywrightCliCommand(_0x534628){const _0x245ed1=_0x47626b,_0x45b610={'wxUar':function(_0x16e087,_0x2df891){return _0x16e087(_0x2df891);},'OXJGZ':function(_0x4a4219,_0xaadbe6){return _0x4a4219===_0xaadbe6;},'YUurz':function(_0x3b8c3c,_0xcde517){return _0x3b8c3c??_0xcde517;},'CdENH':_0x245ed1(0x186),'dIMJx':function(_0x109792,_0x5484a4){return _0x109792(_0x5484a4);},'aAvFj':function(_0x4468e7,_0x32e7d8){return _0x4468e7(_0x32e7d8);},'cVDly':'ignore','vTJHg':function(_0x1f8526,_0x4c45c8){return _0x1f8526>_0x4c45c8;},'rQtqn':_0x245ed1(0x199),'nCDju':'error'},_0x42f88c=buildPlaywrightCliInvocation(_0x534628[_0x245ed1(0x1b1)],_0x534628['configPath'],_0x534628['commandArgs']);return new Promise((_0x5adaaa,_0x477511)=>{const _0x5197a4=_0x245ed1,_0x524308={'DWCXJ':_0x5197a4(0x195),'JUAcM':function(_0xccec43,_0x1dad35){const _0x2c22ff=_0x5197a4;return _0x45b610[_0x2c22ff(0x192)](_0xccec43,_0x1dad35);}},_0xb7679a=spawn(_0x42f88c[_0x5197a4(0x1a5)],_0x42f88c[_0x5197a4(0x19b)],{'cwd':_0x534628['cwd'],'env':_0x534628[_0x5197a4(0x189)],'stdio':[_0x45b610['cVDly'],_0x5197a4(0x1a4),_0x5197a4(0x1a4)]});let _0x502931='',_0x2d7a9f='',_0x3601fa=![];const _0x39b09c=_0x534628['timeoutMs']&&_0x45b610['vTJHg'](_0x534628['timeoutMs'],0x0)?setTimeout(()=>{const _0x54e51d=_0x5197a4,_0x1dbc40={'wASCs':_0x524308[_0x54e51d(0x184)]};_0x3601fa=!![],_0xb7679a['kill']('SIGTERM'),setTimeout(()=>{const _0x50b2e1=_0x54e51d;try{_0xb7679a[_0x50b2e1(0x19d)](_0x1dbc40['wASCs']);}catch{}},0x3e8);},_0x534628[_0x5197a4(0x198)]):null;_0xb7679a[_0x5197a4(0x19f)]?.['on'](_0x45b610[_0x5197a4(0x1a1)],_0x540656=>{_0x502931+=_0x540656['toString']();}),_0xb7679a[_0x5197a4(0x1ac)]?.['on'](_0x5197a4(0x199),_0x52c3be=>{const _0x35f8ce=_0x5197a4;_0x2d7a9f+=_0x52c3be[_0x35f8ce(0x1a3)]();}),_0xb7679a['on'](_0x45b610['nCDju'],_0x4e9883=>{if(_0x39b09c)_0x524308['JUAcM'](clearTimeout,_0x39b09c);_0x477511(_0x4e9883);}),_0xb7679a['on'](_0x5197a4(0x19e),(_0x1731d7,_0x113673)=>{const _0x528019=_0x5197a4;if(_0x39b09c)_0x45b610[_0x528019(0x192)](clearTimeout,_0x39b09c);if(_0x45b610['OXJGZ'](_0x1731d7,0x0)){_0x5adaaa({'stdout':_0x502931,'stderr':_0x2d7a9f,'invocation':_0x42f88c});return;}const _0x1eef12=_0x3601fa?'timed\x20out\x20after\x20'+_0x534628['timeoutMs']+'ms':_0x528019(0x1b3)+_0x45b610['YUurz'](_0x1731d7,'null')+'\x20signal='+_0x45b610[_0x528019(0x19c)](_0x113673,_0x45b610[_0x528019(0x1aa)]);_0x45b610[_0x528019(0x18a)](_0x477511,new Error('playwright-cli\x20'+_0x42f88c[_0x528019(0x187)]+'\x20'+_0x1eef12+_0x528019(0x1af)+_0x45b610[_0x528019(0x19a)](truncateOutput,_0x502931)+'\x0astderr:\x20'+truncateOutput(_0x2d7a9f)));});});}export function extractBashCommand(_0x2239c6){const _0x471ba8=_0x47626b,_0x20991f={'eMJPg':_0x471ba8(0x1a5),'AXRBm':function(_0x28b9af,_0x46de69){return _0x28b9af===_0x46de69;},'EaeQf':function(_0x21479e,_0x59daef){return _0x21479e??_0x59daef;}},_0x16f894=[_0x20991f['eMJPg'],_0x471ba8(0x18f),_0x471ba8(0x1b7),_0x471ba8(0x185)];for(const _0x2d6ddd of _0x16f894){const _0x3c0d7b=_0x2239c6[_0x2d6ddd];if(_0x20991f[_0x471ba8(0x1a7)](typeof _0x3c0d7b,_0x471ba8(0x1b6))&&_0x3c0d7b['trim']())return _0x3c0d7b;}const _0x537ffb=Object[_0x471ba8(0x1ab)](_0x2239c6)[_0x471ba8(0x1b8)](_0x26dd32=>typeof _0x26dd32==='string'&&_0x26dd32[_0x471ba8(0x1ae)]()['length']>0x0);return _0x20991f[_0x471ba8(0x1a9)](_0x537ffb,null);}export function parsePlaywrightCliCommand(_0x39e2af){const _0x69c0ff=_0x39e2af['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x69c0ff?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x44e812=_0x4628;function _0x4628(_0x29103a,_0x2d45f8){_0x29103a=_0x29103a-0x156;const _0x5bee4b=_0x5bee();let _0x462899=_0x5bee4b[_0x29103a];return _0x462899;}(function(_0x9ea120,_0x1157fb){const _0x153686=_0x4628,_0xf2b0dc=_0x9ea120();while(!![]){try{const _0x339d3d=-parseInt(_0x153686(0x156))/0x1+-parseInt(_0x153686(0x15b))/0x2+parseInt(_0x153686(0x158))/0x3*(-parseInt(_0x153686(0x15e))/0x4)+-parseInt(_0x153686(0x157))/0x5*(parseInt(_0x153686(0x163))/0x6)+-parseInt(_0x153686(0x15d))/0x7+-parseInt(_0x153686(0x15a))/0x8*(parseInt(_0x153686(0x162))/0x9)+parseInt(_0x153686(0x15c))/0xa*(parseInt(_0x153686(0x160))/0xb);if(_0x339d3d===_0x1157fb)break;else _0xf2b0dc['push'](_0xf2b0dc['shift']());}catch(_0x5ba368){_0xf2b0dc['push'](_0xf2b0dc['shift']());}}}(_0x5bee,0xb7fab));function _0x5bee(){const _0x6b49c9=['ranger\x20profile\x20add\x20local','9814648TlvzYt','2026042wsGfOT','110MmqIfa','3039841zTzvkR','524iQLSgN','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','4661833MIizxq','mnHFQ','9pCUhcB','30RZlXSB','561495rfnWMH','376060XuKDhM','6792lqfQWc'];_0x5bee=function(){return _0x6b49c9;};return _0x5bee();}const DEFAULT_PROFILE_COMMAND=_0x44e812(0x159);export function formatProfileRequiredMessage(_0x50812b){const _0x2dbbc3=_0x44e812,_0x98f7f5={'mnHFQ':function(_0x54a140,_0x42ce00){return _0x54a140(_0x42ce00);}},_0x4c67a6=_0x50812b?_0x98f7f5[_0x2dbbc3(0x161)](_0x50812b,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2dbbc3(0x15f)+_0x4c67a6+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c9965,_0x4edba8){const _0x41f0d4=_0x4f41,_0x3d3408=_0x3c9965();while(!![]){try{const _0x187e8a=parseInt(_0x41f0d4(0x9f))/0x1*(parseInt(_0x41f0d4(0xa2))/0x2)+-parseInt(_0x41f0d4(0xaa))/0x3+-parseInt(_0x41f0d4(0xa8))/0x4*(parseInt(_0x41f0d4(0xa0))/0x5)+-parseInt(_0x41f0d4(0xa5))/0x6*(parseInt(_0x41f0d4(0xa4))/0x7)+parseInt(_0x41f0d4(0x95))/0x8+-parseInt(_0x41f0d4(0x9d))/0x9+-parseInt(_0x41f0d4(0x96))/0xa*(-parseInt(_0x41f0d4(0xa3))/0xb);if(_0x187e8a===_0x4edba8)break;else _0x3d3408['push'](_0x3d3408['shift']());}catch(_0x2fb587){_0x3d3408['push'](_0x3d3408['shift']());}}}(_0x7a43,0xecbbc));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x434fb6=_0x4f41,_0x255df4={'aXZHp':function(_0x59281c,_0x5e5fd3){return _0x59281c+_0x5e5fd3;},'MMoha':function(_0x520c0c,_0x5e9241){return _0x520c0c+_0x5e9241;},'GUVZA':function(_0x10bd7b,_0x338fae){return _0x10bd7b+_0x338fae;},'OGXbp':'<div\x20class=\x22ranger-banner__content\x22>','nMSXW':_0x434fb6(0xa7),'WRbnp':_0x434fb6(0x99),'wPvod':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0xd48ae7=_0x255df4[_0x434fb6(0xa9)](_0x255df4[_0x434fb6(0x9b)](_0x255df4[_0x434fb6(0xa6)](_0x255df4[_0x434fb6(0x97)],_0x255df4[_0x434fb6(0x9e)]),'<div\x20class=\x22ranger-banner__message\x22>')+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x434fb6(0x9c))+_0x255df4[_0x434fb6(0xa1)]+_0x255df4['WRbnp']+_0x255df4[_0x434fb6(0x94)],_0x3a64a3='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return _0x434fb6(0x9a)+JSON['stringify'](_0xd48ae7)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON[_0x434fb6(0x98)](_0x3a64a3)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x4f41(_0x5598d1,_0x22d8c5){_0x5598d1=_0x5598d1-0x94;const _0x7a43e=_0x7a43();let _0x4f4176=_0x7a43e[_0x5598d1];return _0x4f4176;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x7a43(){const _0xdb4370=['WRbnp','2TKypbi','121omQQnQ','445718fOleyG','48zVRRqI','GUVZA','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','612nSgFsb','aXZHp','1658289oZqtMz','wPvod','10259248NeNAQY','1682840chjuWW','OGXbp','stringify','</div>','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','MMoha','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','9734265btIaWq','nMSXW','1269813hNqixt','42155KLJkei'];_0x7a43=function(){return _0xdb4370;};return _0x7a43();}export async function addProfileSetupBanner(_0x46e90c){await _0x46e90c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x24afb5,_0x5be248){const _0x1b4640=_0x4ebb,_0x160198=_0x24afb5();while(!![]){try{const _0x316535=parseInt(_0x1b4640(0x1d5))/0x1*(parseInt(_0x1b4640(0x1da))/0x2)+-parseInt(_0x1b4640(0x1db))/0x3*(-parseInt(_0x1b4640(0x1d2))/0x4)+-parseInt(_0x1b4640(0x1e8))/0x5*(-parseInt(_0x1b4640(0x1dd))/0x6)+-parseInt(_0x1b4640(0x1de))/0x7*(-parseInt(_0x1b4640(0x1e0))/0x8)+-parseInt(_0x1b4640(0x1e7))/0x9*(parseInt(_0x1b4640(0x1d6))/0xa)+-parseInt(_0x1b4640(0x1e3))/0xb*(parseInt(_0x1b4640(0x1e6))/0xc)+-parseInt(_0x1b4640(0x1e1))/0xd;if(_0x316535===_0x5be248)break;else _0x160198['push'](_0x160198['shift']());}catch(_0x565f15){_0x160198['push'](_0x160198['shift']());}}}(_0x57ad,0x41784));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x57ad(){const _0xeb3f34=['217184YTzQNh','BCxib','kPKUg','240fQaBbg','6705ZGmTHq','20ZOoabW','jXKMO','npOcs','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','208bBVIZa','object','XfEfC','473630yGxeMA','520DZFYsI','FSzkG','YBwXU','message','2IbJigz','5514GiLerU','model','729942tthTaW','3857CtxurW','isArray','4720qMtWjN','8828820BZpnUV','NSLff'];_0x57ad=function(){return _0xeb3f34;};return _0x57ad();}import{getRangerDir}from'./rangerRoot.js';function _0x4ebb(_0x369ab4,_0x27cce9){_0x369ab4=_0x369ab4-0x1d0;const _0x57ade2=_0x57ad();let _0x4ebb1b=_0x57ade2[_0x369ab4];return _0x4ebb1b;}export function getRangerConfigPath(){const _0x5db5b9=_0x4ebb,_0x101671={'FSzkG':function(_0x22895f,_0x292268,_0x36f693){return _0x22895f(_0x292268,_0x36f693);},'XfEfC':function(_0x859d49){return _0x859d49();},'OsVKa':'config.json'};return _0x101671[_0x5db5b9(0x1d7)](join,_0x101671[_0x5db5b9(0x1d4)](getRangerDir),_0x101671['OsVKa']);}export async function loadRangerConfig(){const _0x347460=_0x4ebb,_0x16fd52={'npOcs':function(_0xb41a41){return _0xb41a41();},'jXKMO':function(_0x158568,_0x3468d8){return _0x158568(_0x3468d8);},'YBwXU':function(_0x283190,_0x35d259,_0xb1fe9d){return _0x283190(_0x35d259,_0xb1fe9d);},'kPKUg':'utf-8','BCxib':function(_0x5dae33,_0x469613){return _0x5dae33!==_0x469613;},'IOmhi':'string','HVenO':function(_0x4602fe,_0x54b191){return _0x4602fe instanceof _0x54b191;},'NSLff':function(_0x49cf2b,_0x598c4c){return _0x49cf2b(_0x598c4c);}},_0xc0234b=_0x16fd52[_0x347460(0x1d0)](getRangerConfigPath);if(!_0x16fd52[_0x347460(0x1e9)](existsSync,_0xc0234b))return{};try{const _0x411511=await _0x16fd52[_0x347460(0x1d8)](readFile,_0xc0234b,_0x16fd52[_0x347460(0x1e5)]),_0x2e7f0a=JSON['parse'](_0x411511);if(!_0x2e7f0a||_0x16fd52[_0x347460(0x1e4)](typeof _0x2e7f0a,_0x347460(0x1d3))||Array[_0x347460(0x1df)](_0x2e7f0a))return{};const _0x176682={},_0x5e15c5=_0x2e7f0a[_0x347460(0x1dc)];return typeof _0x5e15c5===_0x16fd52['IOmhi']&&(_0x176682[_0x347460(0x1dc)]=_0x5e15c5),_0x176682;}catch(_0x556918){const _0x2172e8=_0x16fd52['HVenO'](_0x556918,Error)?_0x556918[_0x347460(0x1d9)]:_0x16fd52[_0x347460(0x1e2)](String,_0x556918);return console['warn'](_0x347460(0x1d1)+_0xc0234b+':\x20'+_0x2172e8),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x575ef3,_0x3696f1){const _0x1c75f2=_0xedc9,_0x50af57=_0x575ef3();while(!![]){try{const _0x472ec1=-parseInt(_0x1c75f2(0xa4))/0x1*(-parseInt(_0x1c75f2(0xa3))/0x2)+-parseInt(_0x1c75f2(0xab))/0x3*(parseInt(_0x1c75f2(0xb0))/0x4)+-parseInt(_0x1c75f2(0xa5))/0x5*(-parseInt(_0x1c75f2(0xb6))/0x6)+parseInt(_0x1c75f2(0xb8))/0x7*(parseInt(_0x1c75f2(0xa6))/0x8)+parseInt(_0x1c75f2(0xac))/0x9*(-parseInt(_0x1c75f2(0xa1))/0xa)+parseInt(_0x1c75f2(0xb7))/0xb*(parseInt(_0x1c75f2(0xa7))/0xc)+parseInt(_0x1c75f2(0xa9))/0xd*(-parseInt(_0x1c75f2(0xaa))/0xe);if(_0x472ec1===_0x3696f1)break;else _0x50af57['push'](_0x50af57['shift']());}catch(_0x653341){_0x50af57['push'](_0x50af57['shift']());}}}(_0x8855,0x6bc1c));function _0xedc9(_0x40db86,_0x41b2d8){_0x40db86=_0x40db86-0xa1;const _0x8855d3=_0x8855();let _0xedc996=_0x8855d3[_0x40db86];return _0xedc996;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x580292=_0xedc9,_0x1acc51={'vcTUa':'.ranger','jEVmG':function(_0x1626bf,_0x2429c9,_0x49d447){return _0x1626bf(_0x2429c9,_0x49d447);},'zmRmH':function(_0x27c22a){return _0x27c22a();}};let _0x265b8b=process[_0x580292(0xa2)]();const _0xbcb5d2=parse(_0x265b8b)['root'];while(_0x265b8b!==_0xbcb5d2){if(existsSync(join(_0x265b8b,_0x1acc51[_0x580292(0xad)])))return _0x265b8b;_0x265b8b=dirname(_0x265b8b);}if(existsSync(_0x1acc51[_0x580292(0xaf)](join,_0xbcb5d2,_0x1acc51[_0x580292(0xad)])))return _0xbcb5d2;const _0x1e3859=_0x1acc51['zmRmH'](findGitRoot);if(_0x1e3859)return _0x1e3859;return process[_0x580292(0xa2)]();}export function getRangerDir(){const _0x25183c=_0xedc9,_0x52b964={'SgHJe':function(_0xddd0b7,_0x3e8a26,_0x4cbf88){return _0xddd0b7(_0x3e8a26,_0x4cbf88);},'BCQYh':function(_0x31c86e){return _0x31c86e();},'UltTo':_0x25183c(0xb4)};return _0x52b964['SgHJe'](join,_0x52b964[_0x25183c(0xb3)](getRangerRoot),_0x52b964['UltTo']);}export function findGitRoot(){const _0x97272a=_0xedc9,_0x55482b={'TYCzN':function(_0x49c53f,_0x1788cb){return _0x49c53f!==_0x1788cb;},'pHePA':function(_0x754eee,_0xd95de2){return _0x754eee(_0xd95de2);},'Npsbd':function(_0x233db5,_0x51c8fc,_0xdc3196){return _0x233db5(_0x51c8fc,_0xdc3196);},'FSLfi':'.git'};let _0x308b2e=process[_0x97272a(0xa2)]();const _0xef2d41=parse(_0x308b2e)[_0x97272a(0xb1)];while(_0x55482b[_0x97272a(0xae)](_0x308b2e,_0xef2d41)){if(_0x55482b[_0x97272a(0xb5)](existsSync,_0x55482b[_0x97272a(0xa8)](join,_0x308b2e,'.git')))return _0x308b2e;_0x308b2e=dirname(_0x308b2e);}if(existsSync(join(_0xef2d41,_0x55482b[_0x97272a(0xb9)])))return _0xef2d41;return null;}function _0x8855(){const _0x1d77e8=['5173164JFGUVf','Npsbd','310297NxRfvs','462prBotq','3YyTsuL','27DaWkxD','vcTUa','TYCzN','jEVmG','1359388NCrpGW','root','anagL','BCQYh','.ranger','pHePA','6ObvCRA','11YANERC','189lYnEeR','FSLfi','324730icoSNN','cwd','3728qVJQrn','197wfIXpI','4275385mwnUGd','3832fdvTDH'];_0x8855=function(){return _0x1d77e8;};return _0x8855();}export function getRangerHomeDir(){const _0x5c2c6e=_0xedc9,_0x14ec09={'anagL':_0x5c2c6e(0xb4)};return join(homedir(),_0x14ec09[_0x5c2c6e(0xb2)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc0cf37,_0x5f3b72){const _0x3286e7=_0xb2d3,_0x227bdf=_0xc0cf37();while(!![]){try{const _0x54422f=-parseInt(_0x3286e7(0x1bf))/0x1*(-parseInt(_0x3286e7(0x1c7))/0x2)+parseInt(_0x3286e7(0x1c9))/0x3+parseInt(_0x3286e7(0x1c1))/0x4+-parseInt(_0x3286e7(0x1c4))/0x5*(parseInt(_0x3286e7(0x1c0))/0x6)+-parseInt(_0x3286e7(0x1cc))/0x7+parseInt(_0x3286e7(0x1cb))/0x8+-parseInt(_0x3286e7(0x1c6))/0x9;if(_0x54422f===_0x5f3b72)break;else _0x227bdf['push'](_0x227bdf['shift']());}catch(_0x227d7d){_0x227bdf['push'](_0x227bdf['shift']());}}}(_0x240d,0x2ea11));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x240d(){const _0x20c26f=['baseDelayMs','1VphSIw','222pJRDAx','975784yCjCYb','maxRetries','label','50095fHYure','ms...','2454606YqKqAt','277918CuIsyI','pow','1140072hWMFRg','error','967984OukEDA','346479dVrXwX'];_0x240d=function(){return _0x20c26f;};return _0x240d();}function _0xb2d3(_0x3c1c4e,_0x47ff5b){_0x3c1c4e=_0x3c1c4e-0x1bf;const _0x240d33=_0x240d();let _0xb2d3df=_0x240d33[_0x3c1c4e];return _0xb2d3df;}export async function withRetry(_0x1f0f43,_0x258048){const _0x2cfc8b=_0xb2d3,_0x41866f={'TKQls':function(_0x7f5445,_0x3af576){return _0x7f5445<=_0x3af576;},'yYAqp':function(_0xe7ae3c){return _0xe7ae3c();},'XqDHt':function(_0x39ffe8,_0x3f494f){return _0x39ffe8 instanceof _0x3f494f;},'CEkej':function(_0x2687f0,_0x280961){return _0x2687f0(_0x280961);}},_0x25f77d=_0x258048?.[_0x2cfc8b(0x1c2)]??DEFAULT_MAX_RETRIES,_0x2e4956=_0x258048?.[_0x2cfc8b(0x1cd)]??DEFAULT_BASE_DELAY_MS;let _0x4b9861;for(let _0xea201e=0x0;_0x41866f['TKQls'](_0xea201e,_0x25f77d);_0xea201e++){try{return await _0x41866f['yYAqp'](_0x1f0f43);}catch(_0x24dec4){_0x4b9861=_0x41866f['XqDHt'](_0x24dec4,Error)?_0x24dec4:new Error(_0x41866f['CEkej'](String,_0x24dec4));if(_0xea201e<_0x25f77d){const _0x12c9c9=_0x2e4956*Math[_0x2cfc8b(0x1c8)](0x2,_0xea201e);_0x258048?.['label']&&console[_0x2cfc8b(0x1ca)](_0x258048[_0x2cfc8b(0x1c3)]+'\x20failed\x20(attempt\x20'+(_0xea201e+0x1)+'/'+(_0x25f77d+0x1)+'),\x20retrying\x20in\x20'+_0x12c9c9+_0x2cfc8b(0x1c5)),await new Promise(_0x3e2f3a=>setTimeout(_0x3e2f3a,_0x12c9c9));}}}throw _0x4b9861;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xb68f5c,_0x4bf02e){const _0x57363a=_0xb547,_0xfc208e=_0xb68f5c();while(!![]){try{const _0xd5e899=parseInt(_0x57363a(0x11c))/0x1*(parseInt(_0x57363a(0x12b))/0x2)+-parseInt(_0x57363a(0x12e))/0x3+parseInt(_0x57363a(0x131))/0x4*(-parseInt(_0x57363a(0x14e))/0x5)+parseInt(_0x57363a(0x120))/0x6*(parseInt(_0x57363a(0x14a))/0x7)+-parseInt(_0x57363a(0x139))/0x8*(-parseInt(_0x57363a(0x141))/0x9)+parseInt(_0x57363a(0x14f))/0xa*(parseInt(_0x57363a(0x145))/0xb)+parseInt(_0x57363a(0x11d))/0xc*(-parseInt(_0x57363a(0x14c))/0xd);if(_0xd5e899===_0x4bf02e)break;else _0xfc208e['push'](_0xfc208e['shift']());}catch(_0x4bc179){_0xfc208e['push'](_0xfc208e['shift']());}}}(_0x1b7f,0xd2abd));import*as _0x251069 from'fs';import*as _0x1bba8b from'path';import*as _0x537558 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1bba8b['join'](_0x537558['homedir'](),'.claude','.ranger_cache.json');function _0xb547(_0x52fa5a,_0x530ed2){_0x52fa5a=_0x52fa5a-0x11b;const _0x1b7f89=_0x1b7f();let _0xb54746=_0x1b7f89[_0x52fa5a];return _0xb54746;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5e3691=_0xb547,_0x340ee1={'XXtqP':function(_0x1f246c){return _0x1f246c();}};try{if(_0x251069[_0x5e3691(0x148)](CACHE_FILE)){const _0x564275=JSON['parse'](_0x251069[_0x5e3691(0x12f)](CACHE_FILE,_0x5e3691(0x149)));return{'version':0x3,'sessions':_0x564275[_0x5e3691(0x123)]||{},'branches':_0x564275[_0x5e3691(0x150)]||{},'lastEnabledSessionClearedAt':_0x564275[_0x5e3691(0x136)]};}}catch{}return _0x340ee1['XXtqP'](createEmptyCache);}function saveCache(_0x3046e9){const _0x367b0d=_0xb547;try{const _0xc075cc=_0x1bba8b['dirname'](CACHE_FILE);!_0x251069[_0x367b0d(0x148)](_0xc075cc)&&_0x251069[_0x367b0d(0x11e)](_0xc075cc,{'recursive':!![]}),_0x251069['writeFileSync'](CACHE_FILE,JSON[_0x367b0d(0x122)](_0x3046e9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x22dd4c=_0xb547,_0x1d4450={'heFzq':function(_0x36b9dd,_0x4f246e,_0x58f999){return _0x36b9dd(_0x4f246e,_0x58f999);},'cZbbs':'utf-8','CtZzg':'pipe'};try{const _0x49e6ff=_0x1d4450['heFzq'](execSync,_0x22dd4c(0x144),{'encoding':_0x1d4450[_0x22dd4c(0x12a)],'stdio':['pipe',_0x1d4450['CtZzg'],_0x22dd4c(0x135)]})[_0x22dd4c(0x13c)]();if(!_0x49e6ff||_0x49e6ff==='HEAD')return null;return _0x49e6ff;}catch{return null;}}function _0x1b7f(){const _0x1b4d30=['4FwNUsq','IpJuc','WhKDj','4314414uEDycu','readFileSync','enabled','4NxHqjg','prompted','registeredAt','dJOSQ','pipe','lastEnabledSessionClearedAt','CnAuY','cXveT','8QMqpPc','naUjh','MqOys','trim','TNCaa','rGqbt','WKsEQ','now','4931505bNXkkB','lastPlanReminderAt','kfUFI','git\x20rev-parse\x20--abbrev-ref\x20HEAD','49753loRhPA','yuKpy','XIaGe','existsSync','utf-8','18242RFvcZy','currentBranch','26azVFbI','master','1576550zULisk','2900XuAQLq','branches','DOeIa','kdFaG','abkQO','IHCOg','597676XoZJVV','10950012PLUsMF','mkdirSync','dgmbs','3192MBbNfU','lastStopReminderAt','stringify','sessions','ZHdCh','hOiqV','main','bItji','featureId','aZdJk','cZbbs'];_0x1b7f=function(){return _0x1b4d30;};return _0x1b7f();}export function enableBranch(_0x496f21){const _0x253835=_0xb547,_0x1d4537={'abkQO':function(_0x3bba67){return _0x3bba67();},'dJOSQ':function(_0x13ff24,_0xc91922){return _0x13ff24(_0xc91922);}},_0x395d37=_0x1d4537[_0x253835(0x153)](loadCache);_0x395d37[_0x253835(0x150)][_0x496f21]=!![],_0x1d4537[_0x253835(0x134)](saveCache,_0x395d37);}export function disableBranch(_0xbf0022){const _0x30c234=_0xb547,_0x4645ce={'CfLZe':function(_0x2d1167,_0x5f2290){return _0x2d1167(_0x5f2290);}},_0x3c764b=loadCache();delete _0x3c764b[_0x30c234(0x150)][_0xbf0022],_0x4645ce['CfLZe'](saveCache,_0x3c764b);}export function isBranchEnabled(_0xb63fa8){const _0x1571e4=_0xb547,_0x20c385={'naUjh':function(_0x1a2e81,_0x5ecd47){return _0x1a2e81===_0x5ecd47;}},_0x44b6b9=loadCache();return _0x20c385[_0x1571e4(0x13a)](_0x44b6b9[_0x1571e4(0x150)][_0xb63fa8],!![]);}function getOrCreateSession(_0x4d643c,_0x3acc79){return!_0x4d643c['sessions'][_0x3acc79]&&(_0x4d643c['sessions'][_0x3acc79]={}),_0x4d643c['sessions'][_0x3acc79];}export function enableSession(_0x45693a){const _0x2e1c41=_0xb547,_0x1ab823={'ZHdCh':function(_0x10b291,_0x120bd2,_0x4d0047){return _0x10b291(_0x120bd2,_0x4d0047);},'yQsHg':function(_0x4e6851,_0x35ca68){return _0x4e6851!==_0x35ca68;}},_0x1faada=loadCache(),_0x11e53e=_0x1ab823[_0x2e1c41(0x124)](getOrCreateSession,_0x1faada,_0x45693a);_0x11e53e[_0x2e1c41(0x130)]=!![];const _0x4ae275=getCurrentBranch();_0x4ae275&&_0x1ab823['yQsHg'](_0x4ae275,'main')&&_0x1ab823['yQsHg'](_0x4ae275,'master')&&(_0x1faada[_0x2e1c41(0x150)][_0x4ae275]=!![],_0x11e53e['currentBranch']=_0x4ae275),saveCache(_0x1faada);}export function isSessionEnabled(_0x211350){const _0xf49431=_0xb547,_0x55effe={'yuKpy':function(_0x18c33a){return _0x18c33a();},'bItji':'main','IHCOg':function(_0x4b5955,_0x4495dd){return _0x4b5955===_0x4495dd;}},_0x4f948a=loadCache(),_0x384983=_0x55effe[_0xf49431(0x146)](getCurrentBranch);if(!_0x384983||_0x384983===_0x55effe[_0xf49431(0x127)]||_0x384983==='master')return _0x55effe['IHCOg'](_0x4f948a[_0xf49431(0x123)][_0x211350]?.[_0xf49431(0x130)],!![]);const _0x3a87cf=_0x4f948a['branches'][_0x384983]===!![],_0x1b3de2=_0x55effe[_0xf49431(0x11b)](_0x4f948a[_0xf49431(0x123)][_0x211350]?.[_0xf49431(0x130)],!![]);return _0x3a87cf||_0x1b3de2;}export function disableSession(_0x163fb4){const _0x541138=_0xb547,_0x2dfcc9={'rGqbt':function(_0x5e50d8){return _0x5e50d8();},'QbhFK':function(_0x127454,_0x576fbd){return _0x127454(_0x576fbd);}},_0x3fc0d8=_0x2dfcc9[_0x541138(0x13e)](loadCache),_0x1db8e6=getOrCreateSession(_0x3fc0d8,_0x163fb4);_0x1db8e6[_0x541138(0x130)]=![],_0x2dfcc9['QbhFK'](saveCache,_0x3fc0d8);}export function updateBranchTracking(_0x5e179a){const _0x405990=_0xb547,_0x4af3a6={'MqOys':function(_0x572693){return _0x572693();},'IpJuc':function(_0x5bd5b9,_0x5c3ce0){return _0x5bd5b9===_0x5c3ce0;},'xbwzO':_0x405990(0x14d),'GxzGr':function(_0x366f42,_0x894a8c){return _0x366f42!==_0x894a8c;}},_0x8f538d=_0x4af3a6[_0x405990(0x13b)](loadCache),_0x42f8a7=_0x8f538d[_0x405990(0x123)][_0x5e179a];if(!_0x42f8a7?.['enabled'])return;const _0x4354d5=_0x4af3a6[_0x405990(0x13b)](getCurrentBranch);if(!_0x4354d5||_0x4af3a6[_0x405990(0x12c)](_0x4354d5,_0x405990(0x126))||_0x4354d5===_0x4af3a6['xbwzO'])return;_0x4af3a6['GxzGr'](_0x42f8a7['currentBranch'],_0x4354d5)&&(_0x8f538d['branches'][_0x4354d5]=!![],_0x42f8a7['currentBranch']=_0x4354d5,saveCache(_0x8f538d));}export function initBranchTracking(_0x2957cc){const _0x135261=_0xb547,_0x5812e9={'dsJsC':function(_0x486cd2){return _0x486cd2();},'ywIKB':function(_0x366a2d,_0x525acb){return _0x366a2d===_0x525acb;},'twHnk':function(_0x3d49e1,_0x47f9ba){return _0x3d49e1(_0x47f9ba);}},_0x34d328=_0x5812e9['dsJsC'](loadCache),_0x5befac=_0x5812e9['dsJsC'](getCurrentBranch);if(!_0x5befac||_0x5812e9['ywIKB'](_0x5befac,_0x135261(0x126))||_0x5befac==='master')return;if(_0x34d328[_0x135261(0x150)][_0x5befac]===!![]){const _0x241d4f=getOrCreateSession(_0x34d328,_0x2957cc);_0x241d4f[_0x135261(0x130)]=!![],_0x241d4f[_0x135261(0x14b)]=_0x5befac,_0x5812e9['twHnk'](saveCache,_0x34d328);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x393afc){const _0x2174b1=_0xb547,_0x35423f={'ZevFJ':function(_0x3ea7bb){return _0x3ea7bb();},'WhKDj':function(_0x40f30a,_0x3f738a){return _0x40f30a(_0x3f738a);}},_0x422551=_0x35423f['ZevFJ'](loadCache),_0x25a72c=_0x422551['sessions'][_0x393afc];_0x25a72c?.['enabled']&&(_0x422551['lastEnabledSessionClearedAt']=Date[_0x2174b1(0x140)](),_0x35423f[_0x2174b1(0x12d)](saveCache,_0x422551));}export function shouldAutoEnableAfterClear(_0x1e7a4e){const _0x1a09a4=_0xb547,_0x55b1dd={'gxUYj':'clear','iBkGa':function(_0x39e0d6){return _0x39e0d6();}};if(_0x1e7a4e!==_0x55b1dd['gxUYj'])return![];const _0x42ede9=_0x55b1dd['iBkGa'](loadCache),_0x4efe96=_0x42ede9[_0x1a09a4(0x136)];if(!_0x4efe96)return![];const _0x3d4a08=Date['now']()-_0x4efe96;return _0x3d4a08<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x498013){const _0x541f18=_0xb547,_0x3612e7={'CnAuY':function(_0x5d3bf9){return _0x5d3bf9();},'hOiqV':function(_0x2bbdd6,_0x5f3d76,_0x182b78){return _0x2bbdd6(_0x5f3d76,_0x182b78);},'hqsFq':function(_0x3f99bd,_0x13887a){return _0x3f99bd!==_0x13887a;},'aZdJk':'master','kdFaG':function(_0x33e578,_0x244b9d){return _0x33e578(_0x244b9d);}},_0x414999=_0x3612e7[_0x541f18(0x137)](loadCache),_0x15ec1f=_0x3612e7[_0x541f18(0x125)](getOrCreateSession,_0x414999,_0x498013);_0x15ec1f['enabled']=!![];const _0x532451=getCurrentBranch();_0x532451&&_0x532451!==_0x541f18(0x126)&&_0x3612e7['hqsFq'](_0x532451,_0x3612e7[_0x541f18(0x129)])&&(_0x15ec1f[_0x541f18(0x14b)]=_0x532451),delete _0x414999['lastEnabledSessionClearedAt'],_0x3612e7[_0x541f18(0x152)](saveCache,_0x414999);}export function registerSession(_0x6496c9,_0x7b2b9e){const _0x520200=_0xb547,_0x2f08bd={'cXveT':function(_0x55fcc7){return _0x55fcc7();},'qWsoI':function(_0x67fb8e,_0x3936e1,_0xd512b9){return _0x67fb8e(_0x3936e1,_0xd512b9);},'XIaGe':function(_0x3ff9ed,_0x2cd1e4){return _0x3ff9ed(_0x2cd1e4);}},_0x2121a3=_0x2f08bd[_0x520200(0x138)](loadCache),_0x46e110=_0x2f08bd['qWsoI'](getOrCreateSession,_0x2121a3,_0x6496c9);_0x46e110['featureId']=_0x7b2b9e,_0x46e110['registeredAt']=new Date()['toISOString'](),_0x2f08bd[_0x520200(0x147)](saveCache,_0x2121a3);}export function getSessionEntry(_0x3f44e2){const _0x322d24=_0xb547,_0x3ef84c={'IOdRz':function(_0x1dffe1){return _0x1dffe1();}},_0x54dc69=_0x3ef84c['IOdRz'](loadCache),_0x52be8f=_0x54dc69['sessions'][_0x3f44e2];if(_0x52be8f?.['featureId']&&_0x52be8f?.['registeredAt'])return{'featureId':_0x52be8f[_0x322d24(0x128)],'registeredAt':_0x52be8f['registeredAt']};return null;}export function unregisterSession(_0xc9c234){const _0x5e3699=_0xb547,_0x511f1d={'TNCaa':function(_0x45245d,_0x5d5a9e){return _0x45245d(_0x5d5a9e);}},_0x960ba9=loadCache(),_0x546cd6=_0x960ba9['sessions'][_0xc9c234];_0x546cd6&&(delete _0x546cd6[_0x5e3699(0x128)],delete _0x546cd6[_0x5e3699(0x133)],_0x511f1d[_0x5e3699(0x13d)](saveCache,_0x960ba9));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2b7906){const _0x3fc63b=_0xb547,_0x3f63fd={'dgmbs':function(_0xd49e96,_0x33d924,_0x598ce1){return _0xd49e96(_0x33d924,_0x598ce1);},'DOeIa':function(_0x3e6546,_0x16eb99){return _0x3e6546>=_0x16eb99;},'kfUFI':function(_0x25378b,_0x5256d0){return _0x25378b-_0x5256d0;},'dpBiB':function(_0xfd300f,_0x12aef9){return _0xfd300f(_0x12aef9);}},_0x57e2da=loadCache(),_0x44d78d=_0x3f63fd[_0x3fc63b(0x11f)](getOrCreateSession,_0x57e2da,_0x2b7906),_0x32eac3=_0x44d78d[_0x3fc63b(0x142)]||0x0,_0x530277=Date[_0x3fc63b(0x140)]();if(_0x3f63fd[_0x3fc63b(0x151)](_0x3f63fd[_0x3fc63b(0x143)](_0x530277,_0x32eac3),PLAN_REMINDER_INTERVAL_MS))return _0x44d78d['lastPlanReminderAt']=_0x530277,_0x3f63fd['dpBiB'](saveCache,_0x57e2da),!![];return![];}export function shouldShowStopReminder(_0x31baf8){const _0x31eb73=_0xb547,_0x2be185={'WKsEQ':function(_0x2dbbc7,_0x41b034,_0x10b3f2){return _0x2dbbc7(_0x41b034,_0x10b3f2);},'LSRWc':function(_0x5ec8f2,_0x15370a){return _0x5ec8f2(_0x15370a);}},_0x1adc05=loadCache(),_0x4acd2f=_0x2be185[_0x31eb73(0x13f)](getOrCreateSession,_0x1adc05,_0x31baf8),_0x62fb49=_0x4acd2f[_0x31eb73(0x121)]||0x0,_0x444949=Date[_0x31eb73(0x140)]();if(_0x444949-_0x62fb49>=STOP_REMINDER_INTERVAL_MS)return _0x4acd2f[_0x31eb73(0x121)]=_0x444949,_0x2be185['LSRWc'](saveCache,_0x1adc05),!![];return![];}export function hasSessionBeenPrompted(_0x40c176){const _0x2e4bec=_0xb547,_0x22bbaf=loadCache();return _0x22bbaf['sessions'][_0x40c176]?.[_0x2e4bec(0x132)]===!![];}export function markSessionPrompted(_0x826918){const _0x5477fc=_0xb547,_0x5e8762=loadCache(),_0x4a287d=getOrCreateSession(_0x5e8762,_0x826918);_0x4a287d[_0x5477fc(0x132)]=!![],saveCache(_0x5e8762);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0xa20fdd=_0x3382;(function(_0x4f9df0,_0x207b3e){const _0x27ca27=_0x3382,_0x270610=_0x4f9df0();while(!![]){try{const _0x4a35e8=parseInt(_0x27ca27(0x1eb))/0x1+-parseInt(_0x27ca27(0x1f0))/0x2+parseInt(_0x27ca27(0x1d8))/0x3+-parseInt(_0x27ca27(0x1e8))/0x4+parseInt(_0x27ca27(0x206))/0x5+parseInt(_0x27ca27(0x203))/0x6*(-parseInt(_0x27ca27(0x1ea))/0x7)+parseInt(_0x27ca27(0x204))/0x8;if(_0x4a35e8===_0x207b3e)break;else _0x270610['push'](_0x270610['shift']());}catch(_0x25d82f){_0x270610['push'](_0x270610['shift']());}}}(_0x2dca,0x3990c));function _0x2dca(){const _0x273c40=['RhTyU','MOtds','lastPlanReminderAt','yteDp','registeredAt','FQjyz','git\x20rev-parse\x20--abbrev-ref\x20HEAD','stringify','12YzqDqW','3897280doFZDz','main','170315IXnrcS','562188YRkyFz','branches','existsSync','whvmZ','vnKOk','KjOZt','prompted','sessions','master','mkdirSync','trim','VVeRC','YWjax','XTRzc','NekmN','NyhhH','1691068iJFpSN','uZsZX','1038674VpddtW','354840bWpxpS','enabled','JNWTu','currentBranch','homedir','216280PrEjWF','featureId','now','toISOString','qeSfe','oKbtx','FKwLL','HEAD','lastStopReminderAt','WPeyS','lastEnabledSessionClearedAt'];_0x2dca=function(){return _0x273c40;};return _0x2dca();}import*as _0x189c73 from'fs';import*as _0x84f579 from'path';import*as _0x4f2b67 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x84f579['join'](_0x4f2b67[_0xa20fdd(0x1ef)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ed425=_0xa20fdd,_0x1bae0c={'qeSfe':function(_0x1cf16c){return _0x1cf16c();}};try{if(_0x189c73[_0x3ed425(0x1da)](CACHE_FILE)){const _0xf2f6e6=JSON['parse'](_0x189c73['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0xf2f6e6['sessions']||{},'branches':_0xf2f6e6[_0x3ed425(0x1d9)]||{},'lastEnabledSessionClearedAt':_0xf2f6e6['lastEnabledSessionClearedAt']};}}catch{}return _0x1bae0c[_0x3ed425(0x1f4)](createEmptyCache);}function saveCache(_0x52a868){const _0x4fd908=_0xa20fdd;try{const _0x58192a=_0x84f579['dirname'](CACHE_FILE);!_0x189c73['existsSync'](_0x58192a)&&_0x189c73[_0x4fd908(0x1e1)](_0x58192a,{'recursive':!![]}),_0x189c73['writeFileSync'](CACHE_FILE,JSON[_0x4fd908(0x202)](_0x52a868,null,0x2));}catch{}}export function getCurrentBranch(){const _0xf5ff75=_0xa20fdd,_0x2e479e={'cJTOW':function(_0x52233a,_0x1a1d08,_0x1a14c3){return _0x52233a(_0x1a1d08,_0x1a14c3);},'RhTyU':'pipe','MSOKq':_0xf5ff75(0x1f7)};try{const _0x37f8ea=_0x2e479e['cJTOW'](execSync,_0xf5ff75(0x201),{'encoding':'utf-8','stdio':[_0x2e479e[_0xf5ff75(0x1fb)],_0x2e479e['RhTyU'],'pipe']})[_0xf5ff75(0x1e2)]();if(!_0x37f8ea||_0x37f8ea===_0x2e479e['MSOKq'])return null;return _0x37f8ea;}catch{return null;}}export function enableBranch(_0x552ca8){const _0x17a600={'KlqEi':function(_0x2e8964){return _0x2e8964();},'JjKzb':function(_0x21dacf,_0x8c771b){return _0x21dacf(_0x8c771b);}},_0x4f72c7=_0x17a600['KlqEi'](loadCache);_0x4f72c7['branches'][_0x552ca8]=!![],_0x17a600['JjKzb'](saveCache,_0x4f72c7);}export function disableBranch(_0x1c29e2){const _0xcf2db1=_0xa20fdd,_0x5b43f3={'NyhhH':function(_0x3f3001,_0x4995e2){return _0x3f3001(_0x4995e2);}},_0x433524=loadCache();delete _0x433524[_0xcf2db1(0x1d9)][_0x1c29e2],_0x5b43f3[_0xcf2db1(0x1e7)](saveCache,_0x433524);}export function isBranchEnabled(_0x267849){const _0x16ad63={'FltIs':function(_0x31b9c3){return _0x31b9c3();},'oRETq':function(_0x41330f,_0x4f0ca0){return _0x41330f===_0x4f0ca0;}},_0x47eea=_0x16ad63['FltIs'](loadCache);return _0x16ad63['oRETq'](_0x47eea['branches'][_0x267849],!![]);}function getOrCreateSession(_0x5cbf2b,_0x427c73){const _0x24ccc4=_0xa20fdd;return!_0x5cbf2b[_0x24ccc4(0x1df)][_0x427c73]&&(_0x5cbf2b[_0x24ccc4(0x1df)][_0x427c73]={}),_0x5cbf2b['sessions'][_0x427c73];}export function enableSession(_0x1c2629){const _0x3284d0=_0xa20fdd,_0x44de05=loadCache(),_0x656943=getOrCreateSession(_0x44de05,_0x1c2629);_0x656943['enabled']=!![];const _0x43074c=getCurrentBranch();_0x43074c&&_0x43074c!=='main'&&_0x43074c!==_0x3284d0(0x1e0)&&(_0x44de05[_0x3284d0(0x1d9)][_0x43074c]=!![],_0x656943['currentBranch']=_0x43074c),saveCache(_0x44de05);}export function isSessionEnabled(_0x49173a){const _0xebc2fc=_0xa20fdd,_0x33a150={'qMkpw':function(_0x41fa14){return _0x41fa14();},'oKbtx':function(_0xe0d3a1,_0x287b7e){return _0xe0d3a1===_0x287b7e;},'OWBNL':function(_0x3076f6,_0x87b3a5){return _0x3076f6||_0x87b3a5;}},_0x178527=_0x33a150['qMkpw'](loadCache),_0x1e85e0=_0x33a150['qMkpw'](getCurrentBranch);if(!_0x1e85e0||_0x1e85e0===_0xebc2fc(0x205)||_0x1e85e0===_0xebc2fc(0x1e0))return _0x33a150[_0xebc2fc(0x1f5)](_0x178527['sessions'][_0x49173a]?.[_0xebc2fc(0x1ec)],!![]);const _0xadaffa=_0x178527[_0xebc2fc(0x1d9)][_0x1e85e0]===!![],_0x7818b1=_0x178527['sessions'][_0x49173a]?.['enabled']===!![];return _0x33a150['OWBNL'](_0xadaffa,_0x7818b1);}export function disableSession(_0x22eea0){const _0x275164=loadCache(),_0x5b34ea=getOrCreateSession(_0x275164,_0x22eea0);_0x5b34ea['enabled']=![],saveCache(_0x275164);}export function updateBranchTracking(_0x377e32){const _0xf3b834=_0xa20fdd,_0xf892bb={'WSmtz':function(_0x4a6d7a){return _0x4a6d7a();},'YWjax':function(_0x336b50,_0x4544d7){return _0x336b50===_0x4544d7;},'ptMCk':'main','vaEaS':'master','FKwLL':function(_0x5417c6,_0x3d9a3e){return _0x5417c6(_0x3d9a3e);}},_0x4a16d4=_0xf892bb['WSmtz'](loadCache),_0x435b8f=_0x4a16d4['sessions'][_0x377e32];if(!_0x435b8f?.['enabled'])return;const _0x111b03=getCurrentBranch();if(!_0x111b03||_0xf892bb[_0xf3b834(0x1e4)](_0x111b03,_0xf892bb['ptMCk'])||_0xf892bb['YWjax'](_0x111b03,_0xf892bb['vaEaS']))return;_0x435b8f[_0xf3b834(0x1ee)]!==_0x111b03&&(_0x4a16d4['branches'][_0x111b03]=!![],_0x435b8f[_0xf3b834(0x1ee)]=_0x111b03,_0xf892bb[_0xf3b834(0x1f6)](saveCache,_0x4a16d4));}export function initBranchTracking(_0x2d494b){const _0x379c04=_0xa20fdd,_0x29669b={'WPeyS':function(_0x5784ec,_0x4f7c40){return _0x5784ec===_0x4f7c40;},'NekmN':function(_0x428109,_0x4dde5b){return _0x428109===_0x4dde5b;},'kAFJD':function(_0x4fd37f,_0x4b6914,_0x14e034){return _0x4fd37f(_0x4b6914,_0x14e034);}},_0xb69740=loadCache(),_0x30991a=getCurrentBranch();if(!_0x30991a||_0x29669b[_0x379c04(0x1f9)](_0x30991a,'main')||_0x30991a==='master')return;if(_0x29669b[_0x379c04(0x1e6)](_0xb69740[_0x379c04(0x1d9)][_0x30991a],!![])){const _0x4ae596=_0x29669b['kAFJD'](getOrCreateSession,_0xb69740,_0x2d494b);_0x4ae596['enabled']=!![],_0x4ae596['currentBranch']=_0x30991a,saveCache(_0xb69740);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5ac1f6){const _0x4ec2b4=_0xa20fdd,_0x592b40={'yteDp':function(_0x3cd012,_0xf6ee53){return _0x3cd012(_0xf6ee53);}},_0x5df16e=loadCache(),_0x192bd8=_0x5df16e['sessions'][_0x5ac1f6];_0x192bd8?.[_0x4ec2b4(0x1ec)]&&(_0x5df16e['lastEnabledSessionClearedAt']=Date['now'](),_0x592b40[_0x4ec2b4(0x1fe)](saveCache,_0x5df16e));}export function shouldAutoEnableAfterClear(_0xe2cb9e){const _0x146bbc=_0xa20fdd,_0x1a9fa7={'MSiIp':function(_0x47af46){return _0x47af46();},'vnKOk':function(_0x80ec8b,_0x560c85){return _0x80ec8b-_0x560c85;}};if(_0xe2cb9e!=='clear')return![];const _0x236588=_0x1a9fa7['MSiIp'](loadCache),_0x17d1e2=_0x236588[_0x146bbc(0x1fa)];if(!_0x17d1e2)return![];const _0x31a6fb=_0x1a9fa7[_0x146bbc(0x1dc)](Date[_0x146bbc(0x1f2)](),_0x17d1e2);return _0x31a6fb<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x3fb623){const _0x4040b3=_0xa20fdd,_0x441969={'EfvFS':function(_0x57c6b1){return _0x57c6b1();},'bNkji':function(_0x4b793a,_0x5c3e82,_0xd9f5d4){return _0x4b793a(_0x5c3e82,_0xd9f5d4);},'JNWTu':function(_0x34a047,_0x210d93){return _0x34a047!==_0x210d93;},'VVeRC':_0x4040b3(0x205),'iXoqW':function(_0x3a4b9d,_0x881df9){return _0x3a4b9d!==_0x881df9;},'ZDlYO':'master'},_0x50ae70=_0x441969['EfvFS'](loadCache),_0x5f3869=_0x441969['bNkji'](getOrCreateSession,_0x50ae70,_0x3fb623);_0x5f3869[_0x4040b3(0x1ec)]=!![];const _0xd0500=getCurrentBranch();_0xd0500&&_0x441969[_0x4040b3(0x1ed)](_0xd0500,_0x441969[_0x4040b3(0x1e3)])&&_0x441969['iXoqW'](_0xd0500,_0x441969['ZDlYO'])&&(_0x5f3869[_0x4040b3(0x1ee)]=_0xd0500),delete _0x50ae70['lastEnabledSessionClearedAt'],saveCache(_0x50ae70);}export function registerSession(_0x464b03,_0x5f1c49){const _0x54c4ae=_0xa20fdd,_0x404315=loadCache(),_0x117571=getOrCreateSession(_0x404315,_0x464b03);_0x117571['featureId']=_0x5f1c49,_0x117571[_0x54c4ae(0x1ff)]=new Date()[_0x54c4ae(0x1f3)](),saveCache(_0x404315);}export function getSessionEntry(_0x419cb5){const _0x56f6a0=_0xa20fdd,_0x4f1480={'KjOZt':function(_0x15800a){return _0x15800a();}},_0x3da93f=_0x4f1480[_0x56f6a0(0x1dd)](loadCache),_0x38b83c=_0x3da93f[_0x56f6a0(0x1df)][_0x419cb5];if(_0x38b83c?.[_0x56f6a0(0x1f1)]&&_0x38b83c?.['registeredAt'])return{'featureId':_0x38b83c['featureId'],'registeredAt':_0x38b83c['registeredAt']};return null;}export function unregisterSession(_0x1a6ec8){const _0x459dac=_0xa20fdd,_0x1e4e0f={'Qfasu':function(_0x2cd068){return _0x2cd068();},'MOtds':function(_0x182c93,_0xae34af){return _0x182c93(_0xae34af);}},_0xb45c52=_0x1e4e0f['Qfasu'](loadCache),_0x13b11f=_0xb45c52[_0x459dac(0x1df)][_0x1a6ec8];_0x13b11f&&(delete _0x13b11f['featureId'],delete _0x13b11f['registeredAt'],_0x1e4e0f[_0x459dac(0x1fc)](saveCache,_0xb45c52));}function _0x3382(_0x21073b,_0x5bd25f){_0x21073b=_0x21073b-0x1d8;const _0x2dca07=_0x2dca();let _0x33821e=_0x2dca07[_0x21073b];return _0x33821e;}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2aafae){const _0x217b23=_0xa20fdd,_0x4c6e6d={'uZsZX':function(_0x35e132,_0x16fa6a){return _0x35e132>=_0x16fa6a;},'FQjyz':function(_0x3a73f6,_0x44e244){return _0x3a73f6-_0x44e244;},'DbGsT':function(_0x462e66,_0xbbb23){return _0x462e66(_0xbbb23);}},_0x4394b6=loadCache(),_0x63c53f=getOrCreateSession(_0x4394b6,_0x2aafae),_0x347c1a=_0x63c53f[_0x217b23(0x1fd)]||0x0,_0x56a910=Date['now']();if(_0x4c6e6d[_0x217b23(0x1e9)](_0x4c6e6d[_0x217b23(0x200)](_0x56a910,_0x347c1a),PLAN_REMINDER_INTERVAL_MS))return _0x63c53f[_0x217b23(0x1fd)]=_0x56a910,_0x4c6e6d['DbGsT'](saveCache,_0x4394b6),!![];return![];}export function shouldShowStopReminder(_0x4e38ad){const _0x1d64b8=_0xa20fdd,_0x960dce={'SHnDK':function(_0x2e9599){return _0x2e9599();},'BTMdb':function(_0x56598b,_0x1d6da9,_0x647737){return _0x56598b(_0x1d6da9,_0x647737);},'nrZIW':function(_0x15d2f8,_0x44cbe9){return _0x15d2f8-_0x44cbe9;}},_0x2d3034=_0x960dce['SHnDK'](loadCache),_0x35cceb=_0x960dce['BTMdb'](getOrCreateSession,_0x2d3034,_0x4e38ad),_0x96a3a5=_0x35cceb[_0x1d64b8(0x1f8)]||0x0,_0x1d2c13=Date['now']();if(_0x960dce['nrZIW'](_0x1d2c13,_0x96a3a5)>=STOP_REMINDER_INTERVAL_MS)return _0x35cceb['lastStopReminderAt']=_0x1d2c13,saveCache(_0x2d3034),!![];return![];}export function hasSessionBeenPrompted(_0x4801b7){const _0x2da654=_0xa20fdd,_0xb39f3a={'XTRzc':function(_0xd7ba5a,_0x4553e4){return _0xd7ba5a===_0x4553e4;}},_0x46ec00=loadCache();return _0xb39f3a[_0x2da654(0x1e5)](_0x46ec00['sessions'][_0x4801b7]?.[_0x2da654(0x1de)],!![]);}export function markSessionPrompted(_0x426125){const _0x5935a1=_0xa20fdd,_0x3f2ab1={'DkaYm':function(_0x1c9e3a){return _0x1c9e3a();},'whvmZ':function(_0x3b152d,_0x55104b,_0x3b0d6f){return _0x3b152d(_0x55104b,_0x3b0d6f);}},_0x3ed26e=_0x3f2ab1['DkaYm'](loadCache),_0x90a567=_0x3f2ab1[_0x5935a1(0x1db)](getOrCreateSession,_0x3ed26e,_0x426125);_0x90a567['prompted']=!![],saveCache(_0x3ed26e);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b6d94=_0xe175;(function(_0x457c50,_0x18e922){const _0x198358=_0xe175,_0x27213e=_0x457c50();while(!![]){try{const _0x2787f9=-parseInt(_0x198358(0xf9))/0x1+-parseInt(_0x198358(0x125))/0x2*(parseInt(_0x198358(0x121))/0x3)+-parseInt(_0x198358(0xda))/0x4*(parseInt(_0x198358(0xe8))/0x5)+-parseInt(_0x198358(0x109))/0x6+parseInt(_0x198358(0xe0))/0x7*(parseInt(_0x198358(0x13b))/0x8)+parseInt(_0x198358(0x129))/0x9+parseInt(_0x198358(0x134))/0xa*(parseInt(_0x198358(0x127))/0xb);if(_0x2787f9===_0x18e922)break;else _0x27213e['push'](_0x27213e['shift']());}catch(_0x4eef72){_0x27213e['push'](_0x27213e['shift']());}}}(_0x4917,0x6220f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x348c1e){const _0x4f288f=_0xe175,_0xcdf808={'ytYCQ':function(_0x8b9743){return _0x8b9743();},'nHKts':function(_0x2fff4c,_0x161d7f,_0x3dfc1d,_0x326674){return _0x2fff4c(_0x161d7f,_0x3dfc1d,_0x326674);},'bgGhz':function(_0xb15bf6,_0x31165a,_0x2636ec,_0xb8405){return _0xb15bf6(_0x31165a,_0x2636ec,_0xb8405);},'ImKJp':'local','MJNlK':function(_0x22267e,_0x4d6289,_0x9594b3){return _0x22267e(_0x4d6289,_0x9594b3);},'acxUJ':function(_0xe69e55,_0x5efb43,_0x2ae27b){return _0xe69e55(_0x5efb43,_0x2ae27b);},'alrKS':function(_0x5c2441,_0x21be1c){return _0x5c2441(_0x21be1c);}},_0x508c45=_0xcdf808[_0x4f288f(0x12c)](getRangerDir),_0x4c74ce=_0xcdf808['nHKts'](join,_0x508c45,'ci',_0x348c1e),_0x44ed53=_0xcdf808[_0x4f288f(0x100)](join,_0x508c45,_0xcdf808[_0x4f288f(0x131)],_0x348c1e),_0x20898d=_0xcdf808['MJNlK'](join,_0x508c45,_0x348c1e),_0x49f358=_0xcdf808[_0x4f288f(0x11a)](join,_0x508c45,_0xcdf808['ImKJp']),_0x194fce=join(_0x508c45,'ci');if(existsSync(_0x4c74ce))return _0x4c74ce;if(existsSync(_0x44ed53))return _0x44ed53;if(_0xcdf808['alrKS'](existsSync,_0x20898d)&&(_0x20898d!==_0x49f358&&_0x20898d!==_0x194fce?!![]:hasLegacyProfileFiles(_0x20898d)))return _0x20898d;return _0x44ed53;}export function findExistingEnv(_0x1839ca,_0x43f15f){const _0x36bebb=_0xe175,_0x4ba7c8={'drYdc':function(_0x2638c9){return _0x2638c9();},'bgsVi':function(_0x4ef7a2,_0x307f94,_0x4ed382){return _0x4ef7a2(_0x307f94,_0x4ed382);},'UwHFN':'local','oKYNc':function(_0x122319,_0x29120f){return _0x122319(_0x29120f);},'pVabS':function(_0x4bfc62,_0x3e622b){return _0x4bfc62===_0x3e622b;},'QBaez':function(_0xf65e99,_0x46630e){return _0xf65e99(_0x46630e);}},_0x2caeb6=_0x43f15f?.['rangerDir']??_0x4ba7c8['drYdc'](getRangerDir),_0x58f714=_0x43f15f?.['locations']??['ci','local','legacy'],_0x50259d=_0x4ba7c8['bgsVi'](join,_0x2caeb6,_0x36bebb(0x136)),_0x4cdc6b=_0x4ba7c8[_0x36bebb(0x122)](join,_0x2caeb6,'ci'),_0x2aa28c=[{'location':'ci','path':join(_0x2caeb6,'ci',_0x1839ca)},{'location':_0x4ba7c8[_0x36bebb(0xfa)],'path':join(_0x2caeb6,_0x4ba7c8[_0x36bebb(0xfa)],_0x1839ca)},{'location':_0x36bebb(0xfd),'path':join(_0x2caeb6,_0x1839ca)}];for(const _0x2c7ad8 of _0x2aa28c){if(_0x58f714['includes'](_0x2c7ad8['location'])&&_0x4ba7c8[_0x36bebb(0xdf)](existsSync,_0x2c7ad8['path'])){if(_0x4ba7c8[_0x36bebb(0xfb)](_0x2c7ad8['location'],'legacy')&&(_0x2c7ad8['path']===_0x50259d||_0x2c7ad8['path']===_0x4cdc6b)&&!_0x4ba7c8[_0x36bebb(0xf7)](hasLegacyProfileFiles,_0x2c7ad8[_0x36bebb(0x11c)]))continue;return{'path':_0x2c7ad8['path'],'location':_0x2c7ad8['location']};}}return null;}function hasLegacyProfileFiles(_0x5c4cfe){const _0xe260bf={'dwiHu':function(_0x264972,_0x58c6eb){return _0x264972(_0x58c6eb);},'ttrjV':function(_0x1b5702,_0x509c51,_0x1020e1){return _0x1b5702(_0x509c51,_0x1020e1);},'RGpEx':function(_0x167f66,_0x459d59){return _0x167f66(_0x459d59);},'PDHBb':'auth.json.enc'};return existsSync(join(_0x5c4cfe,'settings.json'))||_0xe260bf['dwiHu'](existsSync,_0xe260bf['ttrjV'](join,_0x5c4cfe,'auth.json'))||_0xe260bf['RGpEx'](existsSync,join(_0x5c4cfe,_0xe260bf['PDHBb']));}export function isEnvCi(_0x3b941b){return existsSync(join(getRangerDir(),'ci',_0x3b941b));}function _0xe175(_0x856be0,_0x3b3b5a){_0x856be0=_0x856be0-0xd9;const _0x491700=_0x4917();let _0xe1757d=_0x491700[_0x856be0];return _0xe1757d;}export async function cleanupTempFiles(_0x4195cc){const _0x24fede=_0xe175,_0x27617f={'bVGxM':function(_0x38c5f1,_0x263de5){return _0x38c5f1!==_0x263de5;}},_0x3bfde2=[_0x4195cc[_0x24fede(0x10b)],_0x4195cc['configPath']]['filter'](Boolean);await Promise['all'](_0x3bfde2['map'](_0x3f3f2=>unlink(_0x3f3f2)[_0x24fede(0x10f)](_0x4eee41=>{const _0x1c23d1=_0x24fede;_0x27617f['bVGxM'](_0x4eee41['code'],'ENOENT')&&console[_0x1c23d1(0xe9)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3f3f2+':',_0x4eee41[_0x1c23d1(0x13a)]);})));}export function getSettingsPath(_0x23e140){const _0x23343e=_0xe175,_0x5e1801={'ZEEmc':function(_0x2db7d2,_0x46c596,_0x46bccf){return _0x2db7d2(_0x46c596,_0x46bccf);},'MnzJn':'settings.json'};return _0x5e1801[_0x23343e(0x108)](join,getEnvDir(_0x23e140),_0x5e1801['MnzJn']);}export async function loadSettings(_0x51dde6){const _0x17e591=_0xe175,_0x532fb7={'nVPbG':function(_0x281695,_0x3a1f3b){return _0x281695(_0x3a1f3b);},'FiZLY':_0x17e591(0x11f)},_0x1dba76=_0x532fb7['nVPbG'](getSettingsPath,_0x51dde6);if(!existsSync(_0x1dba76))return{};try{const _0x452011=await readFile(_0x1dba76,_0x532fb7[_0x17e591(0xde)]);return JSON['parse'](_0x452011);}catch{return{};}}export async function saveSettings(_0x3d0089,_0x5f4760){const _0x1622e1=_0xe175,_0x42ed6b={'JrOFx':function(_0x2e51e1,_0x4a3173){return _0x2e51e1(_0x4a3173);},'DfnnX':function(_0x173060,_0x484818){return _0x173060(_0x484818);},'NsHrY':function(_0x159c7e,_0x293beb,_0x3f3480){return _0x159c7e(_0x293beb,_0x3f3480);}},_0x1ce041=_0x42ed6b['JrOFx'](getSettingsPath,_0x3d0089),_0x2a57e4=dirname(_0x1ce041);!_0x42ed6b[_0x1622e1(0x117)](existsSync,_0x2a57e4)&&await mkdir(_0x2a57e4,{'recursive':!![]}),await _0x42ed6b['NsHrY'](writeFile,_0x1ce041,JSON[_0x1622e1(0x104)](_0x5f4760,null,0x2));}export function resolveEnvVars(_0x416f97){const _0x48a611=_0xe175,_0x37463f={'asdJU':function(_0x423ee7,_0x7b950f){return _0x423ee7===_0x7b950f;},'ThRQg':_0x48a611(0xe3)};if(_0x37463f[_0x48a611(0x128)](typeof _0x416f97,_0x37463f['ThRQg']))return _0x416f97[_0x48a611(0xee)](/\$\{(\w+)\}/g,(_0x237bd8,_0x380305)=>{const _0x3e86e5=process['env'][_0x380305];if(_0x3e86e5===undefined)throw new Error('Environment\x20variable\x20'+_0x380305+'\x20is\x20not\x20set');return _0x3e86e5;});if(Array[_0x48a611(0x10a)](_0x416f97))return _0x416f97[_0x48a611(0xfe)](resolveEnvVars);if(_0x416f97&&typeof _0x416f97==='object')return Object['fromEntries'](Object['entries'](_0x416f97)[_0x48a611(0xfe)](([_0x14987f,_0x25f467])=>[_0x14987f,resolveEnvVars(_0x25f467)]));return _0x416f97;}const isRecord=_0x2c791b=>typeof _0x2c791b==='object'&&_0x2c791b!==null&&!Array['isArray'](_0x2c791b),asRecord=_0x5ca490=>isRecord(_0x5ca490)?_0x5ca490:undefined,mergeHeaders=(_0x393961,_0x670b32)=>{const _0x1d3a08=_0xe175,_0x214abd={'WcZGz':function(_0x26c707,_0x349d54){return _0x26c707??_0x349d54;}},_0x31c2b0={..._0x214abd[_0x1d3a08(0xe2)](_0x393961,{}),..._0x670b32??{}};return Object['keys'](_0x31c2b0)[_0x1d3a08(0x116)]?_0x31c2b0:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x4b6d94(0xec),_0x4b6d94(0x11e),_0x4b6d94(0x132),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x328fa6,_0x3d7d0a={}){const _0x47e096=_0x4b6d94,_0x8ccc7c={'GYUsv':'boolean','lpzdz':function(_0x1ccf73,_0x23a577){return _0x1ccf73(_0x23a577);},'ellua':_0x47e096(0xe3)},_0x8552a5=asRecord(_0x328fa6['browser']),_0x55ea57={...asRecord(_0x8552a5?.[_0x47e096(0xf6)])??{}};typeof _0x3d7d0a['headless']===_0x8ccc7c[_0x47e096(0x105)]&&(_0x55ea57[_0x47e096(0xef)]=_0x3d7d0a[_0x47e096(0xef)]);if(_0x328fa6[_0x47e096(0xf5)]){const _0x2e4c8d=_0x55ea57['args']??[],_0x2b9837=SAFE_MODE_ARGS['filter'](_0x3a791d=>!_0x2e4c8d['includes'](_0x3a791d));_0x55ea57[_0x47e096(0xf0)]=[..._0x2e4c8d,..._0x2b9837];}if(_0x328fa6['allowInsecureLocalhost']){const _0x549968=_0x55ea57['args']??[],_0x251c9b=ALLOW_LOCALHOST_ARGS[_0x47e096(0x111)](_0x30caf9=>!_0x549968['includes'](_0x30caf9));_0x55ea57[_0x47e096(0xf0)]=[..._0x549968,..._0x251c9b];}const _0x1a379a={..._0x8ccc7c['lpzdz'](asRecord,_0x8552a5?.['contextOptions'])??{}};_0x1a379a['ignoreHTTPSErrors']=!![];typeof _0x328fa6[_0x47e096(0x10e)]===_0x8ccc7c[_0x47e096(0x12f)]&&(_0x1a379a[_0x47e096(0x10e)]=_0x328fa6[_0x47e096(0x10e)]);const _0x11bee8=mergeHeaders(asRecord(_0x1a379a['extraHTTPHeaders']),asRecord(_0x328fa6['headers']));return _0x11bee8?_0x1a379a[_0x47e096(0x101)]=_0x11bee8:delete _0x1a379a['extraHTTPHeaders'],_0x3d7d0a['storageStatePath']&&(_0x1a379a['storageState']=_0x3d7d0a['storageStatePath']),{'launchOptions':_0x55ea57,'contextOptions':_0x1a379a};}function _0x4917(){const _0x3d9bd7=['GYUsv','egaGu','WxUpY','ZEEmc','233934qlXdbm','isArray','tempAuthPath','mNroG','sessions','userAgent','catch','hXlkm','filter','includes','WpsMq','LqLOR','auth.json','length','DfnnX','UHsGS','yhIPp','acxUJ','eQiYd','path','tGpwG','--allow-running-insecure-content','utf-8','setupHeader','3InAhfL','bgsVi','--no-sandbox','header','1266946nwspyb','WCUtI','4497141rySLIU','asdJU','1588401SpVfCt','.json','MKWIK','ytYCQ','core','ZnMcZ','ellua','hVTVh','ImKJp','--unsafely-treat-insecure-origin-as-secure=http://localhost','join','40xPZVyI','vision','local','WzVVk','JINbb','--disable-setuid-sandbox','message','5048CbqiyF','Uahbi','FTyXB','gfTiL','4TLXVoV','trBUC','allow','none','FiZLY','oKYNc','4585qbiUmq','clipboard-write','WcZGz','string','ranger-auth-','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','now','MVWXI','2565715YiEPxL','warn','ranger-config','Failed\x20to\x20decrypt\x20auth\x20state:\x20','--disable-web-security','KXZMb','replace','headless','args','clipboard-read','storageState','Btqcz','-cli.json','safeMode','launchOptions','QBaez','split','637578oYwccQ','UwHFN','pVabS','cdpEndpoint','legacy','map','IJREE','bgGhz','extraHTTPHeaders','setupHeaders','CqYGy','stringify'];_0x4917=function(){return _0x3d9bd7;};return _0x4917();}export async function buildPlaywrightConfig(_0x54c17b,_0x3e286c,_0x9feff4,_0x42b082){const _0x5aec0e=_0x4b6d94,_0x101aff={'ckYbA':_0x5aec0e(0x139),'SfdkT':_0x5aec0e(0xf1),'mNroG':_0x5aec0e(0xe1),'FTyXB':function(_0x16d975,_0x46b77f,_0x21cb51){return _0x16d975(_0x46b77f,_0x21cb51);},'uMYUW':function(_0x37fa93,_0x3544c7){return _0x37fa93(_0x3544c7);},'LqLOR':function(_0x28bf2f){return _0x28bf2f();},'xbSZb':function(_0x567432,_0x3c6242){return _0x567432(_0x3c6242);},'LvkIz':function(_0x5767c5,_0x20428c,_0x78b0b){return _0x5767c5(_0x20428c,_0x78b0b);},'rlHCk':function(_0x1db2e9,_0x1852b9,_0x4ca3d7,_0x377d5c){return _0x1db2e9(_0x1852b9,_0x4ca3d7,_0x377d5c);},'QdImV':_0x5aec0e(0x12d),'ltOMQ':'tabs','pzZJk':_0x5aec0e(0x135),'rGSNm':_0x5aec0e(0xdc),'WpsMq':function(_0x13c04e,_0x252be4){return _0x13c04e===_0x252be4;},'gfTiL':function(_0x28b2c3,_0x5af891){return _0x28b2c3===_0x5af891;},'MVWXI':'ranger-config'},_0x4ea93e=getEnvDir(_0x3e286c),_0x1d1e23=_0x101aff[_0x5aec0e(0x13d)](join,_0x4ea93e,'auth.json.enc'),_0x1215ea=join(_0x4ea93e,_0x5aec0e(0x115));let _0x33cc45,_0x2cb4b9;if(_0x101aff['uMYUW'](existsSync,_0x1d1e23))try{const _0x273227=await _0x101aff[_0x5aec0e(0x114)](getToken);if(!_0x273227)throw new Error(_0x5aec0e(0xe5));const _0x4467cc=await _0x101aff['xbSZb'](readFile,_0x1d1e23),_0x489e0f=decrypt(_0x4467cc,_0x273227);_0x2cb4b9=_0x101aff['FTyXB'](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x5aec0e(0x12a)),await _0x101aff['LvkIz'](writeFile,_0x2cb4b9,_0x489e0f),_0x33cc45=_0x2cb4b9;}catch(_0x26445d){const _0x4428d1=_0x26445d instanceof Error?_0x26445d['message']:String(_0x26445d);throw new Error(_0x5aec0e(0xeb)+_0x4428d1);}else _0x101aff['uMYUW'](existsSync,_0x1215ea)&&(_0x33cc45=_0x1215ea);const _0x5d1472=_0x9feff4||_0x101aff[_0x5aec0e(0x114)](randomUUID),_0x5edd07=_0x101aff['rlHCk'](join,getRangerDir(),_0x5aec0e(0x10d),_0x5d1472),_0x17019c=Boolean(_0x54c17b['cdpEndpoint']),_0x9c9e2a=_0x17019c?{'browserName':'chromium','cdpEndpoint':_0x54c17b['cdpEndpoint']}:((()=>{const _0x4384f8=_0x5aec0e,{launchOptions:_0x639c92,contextOptions:_0x40bbeb}=buildBrowserOptionsFromSettings(_0x54c17b,{'headless':_0x42b082?![]:_0x54c17b[_0x4384f8(0xef)]??!![],'storageStatePath':_0x33cc45});if(process['getuid']?.()===0x0){const _0x2d2cd8=[_0x4384f8(0x123),_0x101aff['ckYbA']],_0x2ebe11=_0x639c92[_0x4384f8(0xf0)]??[],_0x46a6b3=_0x2d2cd8[_0x4384f8(0x111)](_0x350b39=>!_0x2ebe11['includes'](_0x350b39));_0x639c92[_0x4384f8(0xf0)]=[..._0x2ebe11,..._0x46a6b3];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x639c92,'contextOptions':{..._0x40bbeb,'permissions':[_0x101aff['SfdkT'],_0x101aff[_0x4384f8(0x10c)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x329bd9={'name':_0x3e286c,'browser':_0x9c9e2a,'capabilities':[_0x101aff['QdImV'],_0x101aff['ltOMQ'],'install','pdf',_0x101aff['pzZJk']],'imageResponses':_0x101aff['rGSNm'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5edd07};if(!_0x17019c){const _0x486f49=_0x329bd9['browser'],_0x4b9ac4=_0x486f49['contextOptions'];if(_0x101aff[_0x5aec0e(0x113)](_0x4b9ac4['userAgent'],undefined))delete _0x4b9ac4[_0x5aec0e(0x10e)];if(_0x101aff[_0x5aec0e(0xd9)](_0x4b9ac4[_0x5aec0e(0xf2)],undefined))delete _0x4b9ac4[_0x5aec0e(0xf2)];}const _0x4a57c4=join(tmpdir(),_0x101aff[_0x5aec0e(0xe7)]);!existsSync(_0x4a57c4)&&await mkdir(_0x4a57c4,{'recursive':!![]});const _0x4dcda9=_0x101aff[_0x5aec0e(0x13d)](join,_0x4a57c4,_0x3e286c+'-'+Date[_0x5aec0e(0xe6)]()+'.json');return await _0x101aff[_0x5aec0e(0x13d)](writeFile,_0x4dcda9,JSON['stringify'](_0x329bd9,null,0x2)),{'configPath':_0x4dcda9,'tempAuthPath':_0x2cb4b9};}export async function buildPlaywrightCliConfig(_0x968492,_0x28a91b,_0x37302c,_0x1c4d69){const _0x3a4b7c=_0x4b6d94,_0x1951d9={'WxUpY':function(_0x581678,_0xcb04e7,_0x30c20d){return _0x581678(_0xcb04e7,_0x30c20d);},'FvMjb':function(_0xc06740,_0x40c509){return _0xc06740===_0x40c509;},'fVQWL':'--no-sandbox','YyMtN':'clipboard-read','Btqcz':function(_0x30f538,_0x424501,_0x337316){return _0x30f538(_0x424501,_0x337316);},'PofJx':'auth.json.enc','ZnMcZ':function(_0x50e674,_0x5382fb){return _0x50e674(_0x5382fb);},'WCUtI':function(_0x29bca6){return _0x29bca6();},'iXZQo':function(_0x95e511,_0xf9a50e){return _0x95e511(_0xf9a50e);},'ksbMA':function(_0x3a3936,_0x40ac8c,_0x2b0cf8){return _0x3a3936(_0x40ac8c,_0x2b0cf8);},'YOaYu':function(_0x2cf1ec){return _0x2cf1ec();},'hVTVh':function(_0x2f4923,_0x50ce15){return _0x2f4923(_0x50ce15);},'yhIPp':function(_0x1d2fb5,_0x4b04e1,_0x201906,_0x5de13c){return _0x1d2fb5(_0x4b04e1,_0x201906,_0x5de13c);},'MKWIK':'sessions','WzVVk':'chromium','Uahbi':function(_0x4a4cc2,_0xb5cb20){return _0x4a4cc2===_0xb5cb20;},'CqYGy':'file','eIuhR':_0x3a4b7c(0xea),'hXlkm':function(_0x148483,_0x403731,_0x147e93){return _0x148483(_0x403731,_0x147e93);}},_0x535186=getEnvDir(_0x28a91b),_0x5791ff=_0x1951d9['Btqcz'](join,_0x535186,_0x1951d9['PofJx']),_0x153b50=_0x1951d9[_0x3a4b7c(0xf3)](join,_0x535186,_0x3a4b7c(0x115));let _0xf7a5f0,_0x50e47f;if(_0x1951d9[_0x3a4b7c(0x12e)](existsSync,_0x5791ff))try{const _0x3be990=await _0x1951d9[_0x3a4b7c(0x126)](getToken);if(!_0x3be990)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x30f2e6=await _0x1951d9['iXZQo'](readFile,_0x5791ff),_0x511e18=_0x1951d9['ksbMA'](decrypt,_0x30f2e6,_0x3be990);_0x50e47f=join(_0x1951d9['YOaYu'](tmpdir),_0x3a4b7c(0xe4)+Date['now']()+'.json'),await _0x1951d9['Btqcz'](writeFile,_0x50e47f,_0x511e18),_0xf7a5f0=_0x50e47f;}catch(_0x548738){const _0x142bd5=_0x548738 instanceof Error?_0x548738[_0x3a4b7c(0x13a)]:String(_0x548738);throw new Error(_0x3a4b7c(0xeb)+_0x142bd5);}else _0x1951d9[_0x3a4b7c(0x130)](existsSync,_0x153b50)&&(_0xf7a5f0=_0x153b50);const _0x1835ff=_0x37302c||randomUUID(),_0x19d543=_0x1951d9[_0x3a4b7c(0x119)](join,_0x1951d9['WCUtI'](getRangerDir),_0x1951d9[_0x3a4b7c(0x12b)],_0x1835ff),_0x268358=Boolean(_0x968492[_0x3a4b7c(0xfc)]),_0x10e248=_0x268358?{'browserName':_0x1951d9[_0x3a4b7c(0x137)],'cdpEndpoint':_0x968492[_0x3a4b7c(0xfc)]}:((()=>{const _0x1337b9=_0x3a4b7c,{launchOptions:_0xee3523,contextOptions:_0x3a564b}=_0x1951d9[_0x1337b9(0x107)](buildBrowserOptionsFromSettings,_0x968492,{'headless':_0x1c4d69?![]:_0x968492[_0x1337b9(0xef)]??!![],'storageStatePath':_0xf7a5f0});if(_0x1951d9['FvMjb'](process['getuid']?.(),0x0)){const _0x4d341f=[_0x1951d9['fVQWL'],_0x1337b9(0x139)],_0x4606b5=_0xee3523['args']??[],_0x36959f=_0x4d341f[_0x1337b9(0x111)](_0x33ec7f=>!_0x4606b5[_0x1337b9(0x112)](_0x33ec7f));_0xee3523[_0x1337b9(0xf0)]=[..._0x4606b5,..._0x36959f];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0xee3523,'contextOptions':{..._0x3a564b,'permissions':[_0x1951d9['YyMtN'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x268358){const _0xfde5f4=_0x10e248['contextOptions'];if(_0x1951d9[_0x3a4b7c(0x13c)](_0xfde5f4[_0x3a4b7c(0x10e)],undefined))delete _0xfde5f4[_0x3a4b7c(0x10e)];if(_0xfde5f4[_0x3a4b7c(0xf2)]===undefined)delete _0xfde5f4['storageState'];}const _0x210b40={'browser':_0x10e248,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x19d543,'outputMode':_0x1951d9[_0x3a4b7c(0x103)],'codegen':_0x3a4b7c(0xdd)},_0x1abeb9=join(tmpdir(),_0x1951d9['eIuhR']);!_0x1951d9[_0x3a4b7c(0x12e)](existsSync,_0x1abeb9)&&await mkdir(_0x1abeb9,{'recursive':!![]});const _0x1cb3ed=_0x1951d9[_0x3a4b7c(0x110)](join,_0x1abeb9,_0x28a91b+'-'+Date[_0x3a4b7c(0xe6)]()+_0x3a4b7c(0xf4));return await _0x1951d9['WxUpY'](writeFile,_0x1cb3ed,JSON[_0x3a4b7c(0x104)](_0x210b40,null,0x2)),{'configPath':_0x1cb3ed,'tempAuthPath':_0x50e47f};}export function getNestedValue(_0x40ae83,_0x1f7125){const _0x2014c0=_0x4b6d94,_0x175277={'UHsGS':function(_0x38be4c,_0x28e6e3){return _0x38be4c(_0x28e6e3);},'DAeoZ':function(_0x1a8c00,_0x29a9e3){return _0x1a8c00===_0x29a9e3;},'trBUC':'object'},_0x30e93a=_0x175277[_0x2014c0(0x118)](parseKeyPath,_0x1f7125);let _0x20e1d7=_0x40ae83;for(const _0x96176f of _0x30e93a){if(_0x175277['DAeoZ'](_0x20e1d7,null)||_0x20e1d7===undefined||typeof _0x20e1d7!==_0x175277[_0x2014c0(0xdb)])return undefined;_0x20e1d7=_0x20e1d7[_0x96176f];}return _0x20e1d7;}export function setNestedValue(_0x69bcbd,_0x1b77f6,_0x48bb59){const _0x4bb0f5=_0x4b6d94,_0x40a84f={'IJREE':function(_0x4c7d88,_0x3f8db2){return _0x4c7d88(_0x3f8db2);},'qgCOD':function(_0x2c3bcc,_0x507ae5){return _0x2c3bcc<_0x507ae5;},'mVqeG':function(_0x338b91,_0x3576a5){return _0x338b91!==_0x3576a5;}},_0x1b276b=_0x40a84f[_0x4bb0f5(0xff)](parseKeyPath,_0x1b77f6);let _0x431b38=_0x69bcbd;for(let _0x5b4195=0x0;_0x40a84f['qgCOD'](_0x5b4195,_0x1b276b[_0x4bb0f5(0x116)]-0x1);_0x5b4195++){const _0x1cac2a=_0x1b276b[_0x5b4195];(!(_0x1cac2a in _0x431b38)||_0x40a84f['mVqeG'](typeof _0x431b38[_0x1cac2a],'object'))&&(_0x431b38[_0x1cac2a]={}),_0x431b38=_0x431b38[_0x1cac2a];}_0x431b38[_0x1b276b[_0x1b276b['length']-0x1]]=_0x48bb59;}export function deleteNestedValue(_0x3f12ec,_0x505b9a){const _0x200686=_0x4b6d94,_0x2f07d6={'XKBSZ':function(_0x4e2f53,_0x22640b){return _0x4e2f53<_0x22640b;},'egaGu':function(_0x1f102b,_0x3a72d7){return _0x1f102b-_0x3a72d7;},'JINbb':'object','tGpwG':function(_0x2af453,_0x296bab){return _0x2af453===_0x296bab;},'VROLr':function(_0x196c2a,_0x1b02df){return _0x196c2a in _0x1b02df;}},_0x564c06=parseKeyPath(_0x505b9a);let _0x34dc95=_0x3f12ec;for(let _0x3a8c69=0x0;_0x2f07d6['XKBSZ'](_0x3a8c69,_0x2f07d6[_0x200686(0x106)](_0x564c06['length'],0x1));_0x3a8c69++){if(_0x34dc95===null||_0x34dc95===undefined||typeof _0x34dc95!==_0x2f07d6[_0x200686(0x138)])return![];_0x34dc95=_0x34dc95[_0x564c06[_0x3a8c69]];}if(_0x2f07d6[_0x200686(0x11d)](_0x34dc95,null)||_0x34dc95===undefined||typeof _0x34dc95!==_0x2f07d6[_0x200686(0x138)])return![];const _0xc6f29d=_0x564c06[_0x2f07d6['egaGu'](_0x564c06[_0x200686(0x116)],0x1)];if(_0x2f07d6['VROLr'](_0xc6f29d,_0x34dc95))return delete _0x34dc95[_0xc6f29d],!![];return![];}function parseKeyPath(_0x3b5817){const _0x40b682=_0x4b6d94,_0x27e4e1={'eQiYd':_0x40b682(0x124),'KXZMb':function(_0xd02dfd,_0x39a462){return _0xd02dfd===_0x39a462;}},_0x780ee7=_0x3b5817[_0x40b682(0xf8)]('.');return _0x780ee7[0x0]===_0x27e4e1[_0x40b682(0x11b)]&&(_0x780ee7[0x0]='headers'),_0x27e4e1[_0x40b682(0xed)](_0x780ee7[0x0],_0x40b682(0x120))&&(_0x780ee7[0x0]=_0x40b682(0x102)),_0x780ee7;}export function formatSettings(_0x134cbf,_0x294d8f=0x0){const _0x1caf68=_0x4b6d94,_0x600d7f={'fMdcp':function(_0x2ffc98,_0x3f0d97){return _0x2ffc98===_0x3f0d97;},'AIjFB':function(_0x5862c5,_0x519f62){return _0x5862c5===_0x519f62;}},_0x220145=[],_0x2479b3='\x20\x20'['repeat'](_0x294d8f);for(const [_0x32d13c,_0x5ebe74]of Object['entries'](_0x134cbf)){if(_0x600d7f['fMdcp'](_0x5ebe74,undefined))continue;if(_0x600d7f['AIjFB'](typeof _0x5ebe74,'object')&&_0x5ebe74!==null){_0x220145['push'](''+_0x2479b3+_0x32d13c+':');for(const [_0xbc1c7f,_0x1b66ea]of Object['entries'](_0x5ebe74)){_0x220145['push'](_0x2479b3+'\x20\x20'+_0xbc1c7f+':\x20'+_0x1b66ea);}}else _0x220145['push'](''+_0x2479b3+_0x32d13c+':\x20'+_0x5ebe74);}return _0x220145[_0x1caf68(0x133)]('\x0a');}
|
|
1
|
+
const _0x57b256=_0x3ccc;(function(_0x38cd7b,_0xf81611){const _0x3448ee=_0x3ccc,_0x317328=_0x38cd7b();while(!![]){try{const _0xe9452d=-parseInt(_0x3448ee(0x124))/0x1+parseInt(_0x3448ee(0x127))/0x2+-parseInt(_0x3448ee(0x10d))/0x3*(-parseInt(_0x3448ee(0x121))/0x4)+parseInt(_0x3448ee(0x12a))/0x5*(parseInt(_0x3448ee(0xea))/0x6)+parseInt(_0x3448ee(0x10c))/0x7*(parseInt(_0x3448ee(0xe0))/0x8)+parseInt(_0x3448ee(0x104))/0x9*(parseInt(_0x3448ee(0xfd))/0xa)+parseInt(_0x3448ee(0x131))/0xb*(-parseInt(_0x3448ee(0x11f))/0xc);if(_0xe9452d===_0xf81611)break;else _0x317328['push'](_0x317328['shift']());}catch(_0x16d43a){_0x317328['push'](_0x317328['shift']());}}}(_0x41b8,0x376b6));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x595e4c){const _0x3568de=_0x3ccc,_0x425193={'FAllw':'local','faGQV':function(_0x482712,_0x548e76,_0x524cfe){return _0x482712(_0x548e76,_0x524cfe);},'Fezxa':function(_0x3888f2,_0x194cee){return _0x3888f2(_0x194cee);},'uahku':function(_0x97bf99,_0x50cabc){return _0x97bf99!==_0x50cabc;}},_0x59a6bf=getRangerDir(),_0x1dd587=join(_0x59a6bf,'ci',_0x595e4c),_0x16a001=join(_0x59a6bf,_0x425193[_0x3568de(0x136)],_0x595e4c),_0x3ab213=join(_0x59a6bf,_0x595e4c),_0x27dddc=_0x425193['faGQV'](join,_0x59a6bf,_0x425193[_0x3568de(0x136)]),_0x243d90=join(_0x59a6bf,'ci');if(existsSync(_0x1dd587))return _0x1dd587;if(_0x425193['Fezxa'](existsSync,_0x16a001))return _0x16a001;if(existsSync(_0x3ab213)&&(_0x3ab213!==_0x27dddc&&_0x425193[_0x3568de(0xef)](_0x3ab213,_0x243d90)?!![]:hasLegacyProfileFiles(_0x3ab213)))return _0x3ab213;return _0x16a001;}export function findExistingEnv(_0xfdd2c,_0x396eaa){const _0x184674=_0x3ccc,_0x129752={'bdVJB':function(_0x16b91b){return _0x16b91b();},'KLOiL':_0x184674(0x12b),'vQsQz':function(_0x4104cb,_0x5f3713,_0x1773f1,_0xbfb8da){return _0x4104cb(_0x5f3713,_0x1773f1,_0xbfb8da);},'FNboY':_0x184674(0x111),'dTdfm':function(_0x3a823d,_0x50e22e){return _0x3a823d(_0x50e22e);},'KVFJd':function(_0x42299f,_0x4ea99a){return _0x42299f===_0x4ea99a;},'dhJyT':function(_0x2fa1fe,_0x35786c){return _0x2fa1fe===_0x35786c;},'QTOiS':function(_0x2843f1,_0x469d16){return _0x2843f1(_0x469d16);}},_0x38162c=_0x396eaa?.['rangerDir']??_0x129752['bdVJB'](getRangerDir),_0x4f27a3=_0x396eaa?.['locations']??['ci',_0x129752['KLOiL'],'legacy'],_0x320f37=join(_0x38162c,_0x129752['KLOiL']),_0x1d762a=join(_0x38162c,'ci'),_0x52540c=[{'location':'ci','path':join(_0x38162c,'ci',_0xfdd2c)},{'location':_0x129752[_0x184674(0xfb)],'path':_0x129752['vQsQz'](join,_0x38162c,_0x129752['KLOiL'],_0xfdd2c)},{'location':_0x129752['FNboY'],'path':join(_0x38162c,_0xfdd2c)}];for(const _0x4c73b1 of _0x52540c){if(_0x4f27a3[_0x184674(0x137)](_0x4c73b1['location'])&&_0x129752[_0x184674(0x116)](existsSync,_0x4c73b1['path'])){if(_0x4c73b1[_0x184674(0xe3)]===_0x129752[_0x184674(0x139)]&&(_0x129752['KVFJd'](_0x4c73b1['path'],_0x320f37)||_0x129752[_0x184674(0x102)](_0x4c73b1[_0x184674(0x114)],_0x1d762a))&&!_0x129752[_0x184674(0x100)](hasLegacyProfileFiles,_0x4c73b1['path']))continue;return{'path':_0x4c73b1['path'],'location':_0x4c73b1[_0x184674(0xe3)]};}}return null;}function hasLegacyProfileFiles(_0x468801){const _0x5e446c=_0x3ccc,_0x47af3a={'fPcUy':function(_0x7b9abc,_0x5315a8){return _0x7b9abc(_0x5315a8);},'QxOCu':function(_0x3bd34e,_0x2fc676){return _0x3bd34e(_0x2fc676);},'gzuyG':_0x5e446c(0xe4)};return _0x47af3a[_0x5e446c(0xdb)](existsSync,join(_0x468801,'settings.json'))||_0x47af3a[_0x5e446c(0xfe)](existsSync,join(_0x468801,'auth.json'))||existsSync(join(_0x468801,_0x47af3a['gzuyG']));}export function isEnvCi(_0x585525){const _0x31f35a={'YHbMK':function(_0x10b46a,_0x8bc02f){return _0x10b46a(_0x8bc02f);},'LAedV':function(_0x3c8dda){return _0x3c8dda();}};return _0x31f35a['YHbMK'](existsSync,join(_0x31f35a['LAedV'](getRangerDir),'ci',_0x585525));}export async function cleanupTempFiles(_0x2538bb){const _0x400356=_0x3ccc,_0x50cc8c={'TaLKL':function(_0x33679b,_0x2c1c18){return _0x33679b!==_0x2c1c18;},'tqoom':'ENOENT'},_0x3e3011=[_0x2538bb[_0x400356(0xfa)],_0x2538bb[_0x400356(0x140)]]['filter'](Boolean);await Promise[_0x400356(0xda)](_0x3e3011['map'](_0x26caf3=>unlink(_0x26caf3)['catch'](_0x4ffae0=>{const _0x348781=_0x400356;_0x50cc8c[_0x348781(0xe9)](_0x4ffae0[_0x348781(0x145)],_0x50cc8c['tqoom'])&&console[_0x348781(0xde)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x26caf3+':',_0x4ffae0[_0x348781(0x110)]);})));}export function getSettingsPath(_0x4e2fcc){const _0x284ea1=_0x3ccc,_0x1af884={'lsKRI':function(_0x16168d,_0x5bb6f2,_0x215067){return _0x16168d(_0x5bb6f2,_0x215067);},'SxQkU':_0x284ea1(0xd8)};return _0x1af884[_0x284ea1(0x113)](join,getEnvDir(_0x4e2fcc),_0x1af884[_0x284ea1(0xf2)]);}export async function loadSettings(_0x59b6f9){const _0x4873bf=_0x3ccc,_0x4cadc2={'etlQg':_0x4873bf(0x128)},_0x35acc3=getSettingsPath(_0x59b6f9);if(!existsSync(_0x35acc3))return{};try{const _0x3c4bc9=await readFile(_0x35acc3,_0x4cadc2['etlQg']);return JSON[_0x4873bf(0xce)](_0x3c4bc9);}catch{return{};}}export async function saveSettings(_0x3b8b20,_0x254a5d){const _0x270544=_0x3ccc,_0x37b422={'Pelmj':function(_0x475a46,_0xe4e2c4){return _0x475a46(_0xe4e2c4);}},_0x17b996=getSettingsPath(_0x3b8b20),_0x4739f9=dirname(_0x17b996);!_0x37b422['Pelmj'](existsSync,_0x4739f9)&&await mkdir(_0x4739f9,{'recursive':!![]}),await writeFile(_0x17b996,JSON[_0x270544(0x134)](_0x254a5d,null,0x2));}export function resolveEnvVars(_0x1eef41){const _0xcf32f2=_0x3ccc,_0x2ceed8={'AenhI':function(_0x2e241a,_0x34d216){return _0x2e241a===_0x34d216;},'AYtpW':_0xcf32f2(0xf1)};if(typeof _0x1eef41===_0xcf32f2(0x135))return _0x1eef41['replace'](/\$\{(\w+)\}/g,(_0x1845c9,_0x237422)=>{const _0x84f051=_0xcf32f2,_0xfbdcc5=process[_0x84f051(0x12f)][_0x237422];if(_0x2ceed8['AenhI'](_0xfbdcc5,undefined))throw new Error(_0x84f051(0xfc)+_0x237422+'\x20is\x20not\x20set');return _0xfbdcc5;});if(Array['isArray'](_0x1eef41))return _0x1eef41[_0xcf32f2(0x11d)](resolveEnvVars);if(_0x1eef41&&typeof _0x1eef41===_0x2ceed8[_0xcf32f2(0x12c)])return Object['fromEntries'](Object['entries'](_0x1eef41)[_0xcf32f2(0x11d)](([_0x485c68,_0x1a1e39])=>[_0x485c68,resolveEnvVars(_0x1a1e39)]));return _0x1eef41;}const isRecord=_0x361bed=>typeof _0x361bed===_0x57b256(0xf1)&&_0x361bed!==null&&!Array[_0x57b256(0x11a)](_0x361bed),asRecord=_0xa47494=>isRecord(_0xa47494)?_0xa47494:undefined,mergeHeaders=(_0x1159a1,_0x244493)=>{const _0x334f92=_0x57b256,_0x5337bc={'qDtDr':function(_0x481941,_0x3dfc62){return _0x481941??_0x3dfc62;}},_0x67b2d5={..._0x5337bc[_0x334f92(0xd1)](_0x1159a1,{}),..._0x244493??{}};return Object['keys'](_0x67b2d5)[_0x334f92(0x117)]?_0x67b2d5:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x57b256(0xf8),_0x57b256(0xd9),_0x57b256(0xcf),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x1499ba,_0x56bcb8={}){const _0x5751e5=_0x57b256,_0x1641a2={'xURKA':function(_0x442a9c,_0x10c02b){return _0x442a9c(_0x10c02b);},'arbKH':function(_0x53867e,_0x52f517){return _0x53867e===_0x52f517;},'NBPlq':function(_0x53b071,_0x367e5b,_0x8b6fa3){return _0x53b071(_0x367e5b,_0x8b6fa3);},'cmjjG':function(_0xa947bb,_0x68183c){return _0xa947bb(_0x68183c);},'nHIMS':function(_0x31f38d,_0x15528e){return _0x31f38d(_0x15528e);}},_0x4af137=_0x1641a2['xURKA'](asRecord,_0x1499ba[_0x5751e5(0x130)]),_0x2b8455={...asRecord(_0x4af137?.[_0x5751e5(0x126)])??{}};_0x1641a2['arbKH'](typeof _0x56bcb8['headless'],_0x5751e5(0xd0))&&(_0x2b8455['headless']=_0x56bcb8['headless']);if(_0x1499ba[_0x5751e5(0x13a)]){const _0x268396=_0x2b8455['args']??[],_0x4843f8=SAFE_MODE_ARGS['filter'](_0x10a3e2=>!_0x268396[_0x5751e5(0x137)](_0x10a3e2));_0x2b8455[_0x5751e5(0x107)]=[..._0x268396,..._0x4843f8];}if(_0x1499ba[_0x5751e5(0x119)]){const _0x23d2ae=_0x2b8455[_0x5751e5(0x107)]??[],_0x5aa918=ALLOW_LOCALHOST_ARGS['filter'](_0x481928=>!_0x23d2ae['includes'](_0x481928));_0x2b8455[_0x5751e5(0x107)]=[..._0x23d2ae,..._0x5aa918];}const _0x2a478a={...asRecord(_0x4af137?.[_0x5751e5(0x141)])??{}};_0x2a478a[_0x5751e5(0x133)]=!![];typeof _0x1499ba[_0x5751e5(0x13e)]==='string'&&(_0x2a478a[_0x5751e5(0x13e)]=_0x1499ba['userAgent']);const _0x270a5d=_0x1641a2[_0x5751e5(0xeb)](mergeHeaders,_0x1641a2['cmjjG'](asRecord,_0x2a478a[_0x5751e5(0xe2)]),_0x1641a2['nHIMS'](asRecord,_0x1499ba[_0x5751e5(0x13f)]));return _0x270a5d?_0x2a478a['extraHTTPHeaders']=_0x270a5d:delete _0x2a478a['extraHTTPHeaders'],_0x56bcb8[_0x5751e5(0xf4)]&&(_0x2a478a[_0x5751e5(0xe8)]=_0x56bcb8[_0x5751e5(0xf4)]),{'launchOptions':_0x2b8455,'contextOptions':_0x2a478a};}export async function buildPlaywrightConfig(_0x2bb9f9,_0x2619ee,_0x213c1e,_0x3ad7a8){const _0x536f7c=_0x57b256,_0x3d220e={'wxeeB':function(_0x439c90,_0x55d761,_0x15a97d){return _0x439c90(_0x55d761,_0x15a97d);},'cSYjj':function(_0x2f4f54,_0x227a8d){return _0x2f4f54===_0x227a8d;},'IOtLA':'--no-sandbox','fRfUQ':'--disable-setuid-sandbox','PgRvQ':_0x536f7c(0x12e),'lEevM':_0x536f7c(0x13b),'CrsLi':function(_0x21840d,_0x1f322b){return _0x21840d(_0x1f322b);},'uPSWa':function(_0x4c5a9e,_0x3bfb08,_0x24e2e4){return _0x4c5a9e(_0x3bfb08,_0x24e2e4);},'XhQIy':_0x536f7c(0x13c),'TRlpv':function(_0x3b50ae,_0xb35cb8){return _0x3b50ae(_0xb35cb8);},'ZoImL':function(_0x2fe60c){return _0x2fe60c();},'rbplD':_0x536f7c(0xd4),'lbyRT':function(_0x2cf35b,_0x33f841){return _0x2cf35b(_0x33f841);},'sjUiD':_0x536f7c(0x112),'inhpb':'install','vIeAQ':function(_0xdc927f,_0x5d49e5){return _0xdc927f===_0x5d49e5;},'GotSn':function(_0x4593c3){return _0x4593c3();},'DwYCQ':function(_0x334987,_0xe9db2d,_0x3e2f5d){return _0x334987(_0xe9db2d,_0x3e2f5d);},'yonbl':function(_0x5d8cbc,_0x5ba0e1,_0x3cb02c){return _0x5d8cbc(_0x5ba0e1,_0x3cb02c);}},_0x4348df=_0x3d220e[_0x536f7c(0xdc)](getEnvDir,_0x2619ee),_0x3d6b37=join(_0x4348df,'auth.json.enc'),_0x5ca92e=_0x3d220e['uPSWa'](join,_0x4348df,_0x3d220e[_0x536f7c(0x142)]);let _0x3c97c6,_0x4fd583;if(existsSync(_0x3d6b37))try{const _0x56275d=await getToken();if(!_0x56275d)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x23ed58=await readFile(_0x3d6b37),_0x2621c9=decrypt(_0x23ed58,_0x56275d);_0x4fd583=join(tmpdir(),_0x536f7c(0xdf)+Date[_0x536f7c(0x11e)]()+'.json'),await writeFile(_0x4fd583,_0x2621c9),_0x3c97c6=_0x4fd583;}catch(_0x440061){const _0x98217a=_0x440061 instanceof Error?_0x440061['message']:_0x3d220e['TRlpv'](String,_0x440061);throw new Error(_0x536f7c(0x132)+_0x98217a);}else _0x3d220e[_0x536f7c(0xe1)](existsSync,_0x5ca92e)&&(_0x3c97c6=_0x5ca92e);const _0x15a1c7=_0x213c1e||_0x3d220e['ZoImL'](randomUUID),_0x38b680=join(getRangerDir(),_0x3d220e['rbplD'],_0x15a1c7),_0xc93d8b=_0x3d220e['lbyRT'](Boolean,_0x2bb9f9['cdpEndpoint']),_0x19293d=_0xc93d8b?{'browserName':_0x3d220e[_0x536f7c(0xe6)],'cdpEndpoint':_0x2bb9f9['cdpEndpoint']}:((()=>{const _0x3b03e6=_0x536f7c,{launchOptions:_0x322799,contextOptions:_0x32b6db}=_0x3d220e[_0x3b03e6(0xd7)](buildBrowserOptionsFromSettings,_0x2bb9f9,{'headless':_0x3ad7a8?![]:_0x2bb9f9['headless']??!![],'storageStatePath':_0x3c97c6});if(_0x3d220e[_0x3b03e6(0xf7)](process[_0x3b03e6(0x125)]?.(),0x0)){const _0x35d891=[_0x3d220e['IOtLA'],_0x3d220e['fRfUQ']],_0x879d6f=_0x322799['args']??[],_0x29b6fe=_0x35d891[_0x3b03e6(0xd5)](_0x48f423=>!_0x879d6f[_0x3b03e6(0x137)](_0x48f423));_0x322799[_0x3b03e6(0x107)]=[..._0x879d6f,..._0x29b6fe];}return{'isolated':!![],'browserName':_0x3d220e['PgRvQ'],'launchOptions':_0x322799,'contextOptions':{..._0x32b6db,'permissions':[_0x3b03e6(0x103),_0x3d220e[_0x3b03e6(0x122)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x436017={'name':_0x2619ee,'browser':_0x19293d,'capabilities':[_0x3d220e['sjUiD'],'tabs',_0x3d220e['inhpb'],'pdf',_0x536f7c(0x10a)],'imageResponses':_0x536f7c(0xf3),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x38b680};if(!_0xc93d8b){const _0x43a299=_0x436017[_0x536f7c(0x130)],_0x4726f0=_0x43a299['contextOptions'];if(_0x4726f0['userAgent']===undefined)delete _0x4726f0['userAgent'];if(_0x3d220e['vIeAQ'](_0x4726f0['storageState'],undefined))delete _0x4726f0['storageState'];}const _0x20a5cc=_0x3d220e[_0x536f7c(0xd7)](join,_0x3d220e[_0x536f7c(0x105)](tmpdir),_0x536f7c(0x129));!existsSync(_0x20a5cc)&&await mkdir(_0x20a5cc,{'recursive':!![]});const _0x50afa0=_0x3d220e[_0x536f7c(0x143)](join,_0x20a5cc,_0x2619ee+'-'+Date[_0x536f7c(0x11e)]()+'.json');return await _0x3d220e['yonbl'](writeFile,_0x50afa0,JSON[_0x536f7c(0x134)](_0x436017,null,0x2)),{'configPath':_0x50afa0,'tempAuthPath':_0x4fd583};}export async function buildPlaywrightCliConfig(_0x5cbbd3,_0x381923,_0x57640d,_0x1dd3d7){const _0x379be9=_0x57b256,_0x1c2393={'oPeNH':function(_0x38f66b,_0x1c21c9){return _0x38f66b===_0x1c21c9;},'OrFeT':_0x379be9(0xd6),'dZtwh':'clipboard-read','yolxd':function(_0x5c047f,_0x3f2abb,_0x43a462){return _0x5c047f(_0x3f2abb,_0x43a462);},'zBxfr':_0x379be9(0xe4),'bsCaT':function(_0x4ac01d,_0x5399f0,_0x3fd4e4){return _0x4ac01d(_0x5399f0,_0x3fd4e4);},'IYmEW':'auth.json','OQKMK':function(_0x457b40){return _0x457b40();},'cHBgR':function(_0x2151e0,_0xce7530){return _0x2151e0(_0xce7530);},'bVPxR':function(_0x491678){return _0x491678();},'mqbBH':function(_0x3f589f,_0x35692f,_0x19aadc){return _0x3f589f(_0x35692f,_0x19aadc);},'yHorb':function(_0x112a04,_0x28a448){return _0x112a04 instanceof _0x28a448;},'Mckqe':function(_0x5a2461,_0x473f84){return _0x5a2461(_0x473f84);},'DcFpM':function(_0x211777,_0x976248,_0x2060f2,_0x421ace){return _0x211777(_0x976248,_0x2060f2,_0x421ace);},'xAcMD':_0x379be9(0xd4),'wKURZ':function(_0x52b54b){return _0x52b54b();},'BdPbz':_0x379be9(0x129),'DNcNo':function(_0x4108b8,_0x38f9b9,_0x3e3b0f){return _0x4108b8(_0x38f9b9,_0x3e3b0f);}},_0x44c636=getEnvDir(_0x381923),_0x1d9534=_0x1c2393['yolxd'](join,_0x44c636,_0x1c2393[_0x379be9(0x138)]),_0x11b20a=_0x1c2393['bsCaT'](join,_0x44c636,_0x1c2393['IYmEW']);let _0x1c9329,_0x26b217;if(existsSync(_0x1d9534))try{const _0x11709e=await _0x1c2393[_0x379be9(0x11c)](getToken);if(!_0x11709e)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x287c78=await _0x1c2393[_0x379be9(0xe7)](readFile,_0x1d9534),_0x31e5c0=decrypt(_0x287c78,_0x11709e);_0x26b217=join(_0x1c2393['bVPxR'](tmpdir),_0x379be9(0xdf)+Date['now']()+_0x379be9(0xf9)),await _0x1c2393['mqbBH'](writeFile,_0x26b217,_0x31e5c0),_0x1c9329=_0x26b217;}catch(_0x1b3cec){const _0x40b49d=_0x1c2393['yHorb'](_0x1b3cec,Error)?_0x1b3cec[_0x379be9(0x110)]:String(_0x1b3cec);throw new Error(_0x379be9(0x132)+_0x40b49d);}else _0x1c2393[_0x379be9(0xd2)](existsSync,_0x11b20a)&&(_0x1c9329=_0x11b20a);const _0xb74060=_0x57640d||_0x1c2393[_0x379be9(0xff)](randomUUID),_0x482ef9=_0x1c2393[_0x379be9(0xed)](join,_0x1c2393[_0x379be9(0x11c)](getRangerDir),_0x1c2393[_0x379be9(0x118)],_0xb74060),_0x25600c=Boolean(_0x5cbbd3[_0x379be9(0x101)]),_0x222d2b=_0x25600c?{'browserName':'chromium','cdpEndpoint':_0x5cbbd3[_0x379be9(0x101)]}:((()=>{const _0x87cb01=_0x379be9,{launchOptions:_0x29cd7b,contextOptions:_0x5dfcc1}=buildBrowserOptionsFromSettings(_0x5cbbd3,{'headless':_0x1dd3d7?![]:_0x5cbbd3[_0x87cb01(0x106)]??!![],'storageStatePath':_0x1c9329});if(_0x1c2393[_0x87cb01(0xf6)](process[_0x87cb01(0x125)]?.(),0x0)){const _0x44499d=[_0x87cb01(0x10f),_0x1c2393[_0x87cb01(0x10b)]],_0x1a0018=_0x29cd7b[_0x87cb01(0x107)]??[],_0x4b9516=_0x44499d[_0x87cb01(0xd5)](_0x3a3bd4=>!_0x1a0018[_0x87cb01(0x137)](_0x3a3bd4));_0x29cd7b[_0x87cb01(0x107)]=[..._0x1a0018,..._0x4b9516];}return{'isolated':!![],'browserName':_0x87cb01(0x12e),'launchOptions':_0x29cd7b,'contextOptions':{..._0x5dfcc1,'permissions':[_0x1c2393[_0x87cb01(0xcd)],_0x87cb01(0x13b)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x25600c){const _0x1f40a7=_0x222d2b['contextOptions'];if(_0x1c2393[_0x379be9(0xf6)](_0x1f40a7[_0x379be9(0x13e)],undefined))delete _0x1f40a7[_0x379be9(0x13e)];if(_0x1f40a7[_0x379be9(0xe8)]===undefined)delete _0x1f40a7['storageState'];}const _0x166488={'browser':_0x222d2b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x482ef9,'outputMode':_0x379be9(0x108),'codegen':_0x379be9(0x109)},_0x61e789=_0x1c2393[_0x379be9(0xec)](join,_0x1c2393['wKURZ'](tmpdir),_0x1c2393[_0x379be9(0x115)]);!existsSync(_0x61e789)&&await mkdir(_0x61e789,{'recursive':!![]});const _0x4e5eba=_0x1c2393['DNcNo'](join,_0x61e789,_0x381923+'-'+Date['now']()+_0x379be9(0x11b));return await _0x1c2393['bsCaT'](writeFile,_0x4e5eba,JSON[_0x379be9(0x134)](_0x166488,null,0x2)),{'configPath':_0x4e5eba,'tempAuthPath':_0x26b217};}export function getNestedValue(_0x350708,_0x3e66ab){const _0x26da55=_0x57b256,_0xa1c388={'ffuFH':function(_0x5d4905,_0x4e616d){return _0x5d4905===_0x4e616d;},'QfmGE':function(_0x2a35ee,_0x2b24ac){return _0x2a35ee!==_0x2b24ac;}},_0x16d38a=parseKeyPath(_0x3e66ab);let _0x196739=_0x350708;for(const _0x10c0da of _0x16d38a){if(_0xa1c388['ffuFH'](_0x196739,null)||_0x196739===undefined||_0xa1c388[_0x26da55(0x13d)](typeof _0x196739,'object'))return undefined;_0x196739=_0x196739[_0x10c0da];}return _0x196739;}export function setNestedValue(_0x5cb873,_0x143490,_0x2c343b){const _0x2deb19=_0x57b256,_0x13322e={'kIfIm':function(_0x5832da,_0x1d50c9){return _0x5832da(_0x1d50c9);},'vmRIk':function(_0x20a63a,_0x1d4ae2){return _0x20a63a in _0x1d4ae2;}},_0x365326=_0x13322e[_0x2deb19(0x12d)](parseKeyPath,_0x143490);let _0x2ce916=_0x5cb873;for(let _0x154f0d=0x0;_0x154f0d<_0x365326['length']-0x1;_0x154f0d++){const _0x314ad6=_0x365326[_0x154f0d];(!_0x13322e[_0x2deb19(0xe5)](_0x314ad6,_0x2ce916)||typeof _0x2ce916[_0x314ad6]!==_0x2deb19(0xf1))&&(_0x2ce916[_0x314ad6]={}),_0x2ce916=_0x2ce916[_0x314ad6];}_0x2ce916[_0x365326[_0x365326['length']-0x1]]=_0x2c343b;}function _0x3ccc(_0x113b59,_0x56e619){_0x113b59=_0x113b59-0xcc;const _0x41b87c=_0x41b8();let _0x3ccc3f=_0x41b87c[_0x113b59];return _0x3ccc3f;}export function deleteNestedValue(_0x3c3238,_0xe5408a){const _0x337188=_0x57b256,_0x32e1ed={'sKqfQ':function(_0x2d2996,_0x53b333){return _0x2d2996(_0x53b333);},'IIEfN':function(_0x4d267d,_0x26e9c8){return _0x4d267d<_0x26e9c8;},'nRbbK':function(_0x41ef7c,_0x4f75bf){return _0x41ef7c===_0x4f75bf;},'lbUOy':_0x337188(0xf1),'aJkCi':function(_0x1551c1,_0x544090){return _0x1551c1===_0x544090;}},_0x2742f6=_0x32e1ed[_0x337188(0xdd)](parseKeyPath,_0xe5408a);let _0x10b888=_0x3c3238;for(let _0x4e1ced=0x0;_0x32e1ed['IIEfN'](_0x4e1ced,_0x2742f6['length']-0x1);_0x4e1ced++){if(_0x32e1ed['nRbbK'](_0x10b888,null)||_0x10b888===undefined||typeof _0x10b888!==_0x32e1ed[_0x337188(0x10e)])return![];_0x10b888=_0x10b888[_0x2742f6[_0x4e1ced]];}if(_0x10b888===null||_0x32e1ed['aJkCi'](_0x10b888,undefined)||typeof _0x10b888!==_0x337188(0xf1))return![];const _0x4e07c0=_0x2742f6[_0x2742f6['length']-0x1];if(_0x4e07c0 in _0x10b888)return delete _0x10b888[_0x4e07c0],!![];return![];}function parseKeyPath(_0x149c55){const _0x358f8b=_0x57b256,_0x10905d={'NLLlS':_0x358f8b(0xcc),'dJjdY':function(_0x38845a,_0x43480a){return _0x38845a===_0x43480a;},'CkzlX':'setupHeaders'},_0x57f11f=_0x149c55[_0x358f8b(0xee)]('.');return _0x57f11f[0x0]===_0x10905d['NLLlS']&&(_0x57f11f[0x0]='headers'),_0x10905d[_0x358f8b(0x123)](_0x57f11f[0x0],'setupHeader')&&(_0x57f11f[0x0]=_0x10905d['CkzlX']),_0x57f11f;}export function formatSettings(_0x538991,_0x301c6e=0x0){const _0x57add3=_0x57b256,_0x4c3cab={'uInds':function(_0x284c53,_0x3f4ce0){return _0x284c53===_0x3f4ce0;},'jfqCn':function(_0x26c919,_0x12ab04){return _0x26c919===_0x12ab04;},'mYKjQ':function(_0x9b7ea,_0x5b968c){return _0x9b7ea!==_0x5b968c;}},_0x122d9d=[],_0x5b3001='\x20\x20'[_0x57add3(0x144)](_0x301c6e);for(const [_0x440d6d,_0x358878]of Object['entries'](_0x538991)){if(_0x4c3cab['uInds'](_0x358878,undefined))continue;if(_0x4c3cab['jfqCn'](typeof _0x358878,'object')&&_0x4c3cab[_0x57add3(0xd3)](_0x358878,null)){_0x122d9d['push'](''+_0x5b3001+_0x440d6d+':');for(const [_0x372706,_0x5ea932]of Object[_0x57add3(0xf5)](_0x358878)){_0x122d9d[_0x57add3(0x120)](_0x5b3001+'\x20\x20'+_0x372706+':\x20'+_0x5ea932);}}else _0x122d9d['push'](''+_0x5b3001+_0x440d6d+':\x20'+_0x358878);}return _0x122d9d[_0x57add3(0xf0)]('\x0a');}function _0x41b8(){const _0x1bd1ab=['lEevM','dJjdY','308546WpwRqR','getuid','launchOptions','258840YHqEej','utf-8','ranger-config','3275vhieVh','local','AYtpW','kIfIm','chromium','env','browser','11cTUROH','Failed\x20to\x20decrypt\x20auth\x20state:\x20','ignoreHTTPSErrors','stringify','string','FAllw','includes','zBxfr','FNboY','safeMode','clipboard-write','auth.json','QfmGE','userAgent','headers','configPath','contextOptions','XhQIy','DwYCQ','repeat','code','header','dZtwh','parse','--unsafely-treat-insecure-origin-as-secure=http://localhost','boolean','qDtDr','Mckqe','mYKjQ','sessions','filter','--disable-setuid-sandbox','wxeeB','settings.json','--allow-running-insecure-content','all','fPcUy','CrsLi','sKqfQ','warn','ranger-auth-','38352WofPUG','TRlpv','extraHTTPHeaders','location','auth.json.enc','vmRIk','PgRvQ','cHBgR','storageState','TaLKL','558qafOQs','NBPlq','mqbBH','DcFpM','split','uahku','join','object','SxQkU','allow','storageStatePath','entries','oPeNH','cSYjj','--disable-web-security','.json','tempAuthPath','KLOiL','Environment\x20variable\x20','3357740NztSIQ','QxOCu','bVPxR','QTOiS','cdpEndpoint','dhJyT','clipboard-read','9YpehPO','GotSn','headless','args','file','none','vision','OrFeT','483wHtCcV','213KLKxoJ','lbUOy','--no-sandbox','message','legacy','core','lsKRI','path','BdPbz','dTdfm','length','xAcMD','allowInsecureLocalhost','isArray','-cli.json','OQKMK','map','now','7091256xsvWom','push','15188cohEOA'];_0x41b8=function(){return _0x1bd1ab;};return _0x41b8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x402599,_0x30ebe7){const _0x1d4891=_0x5e30,_0x277b32=_0x402599();while(!![]){try{const _0xd8744b=parseInt(_0x1d4891(0xbb))/0x1+-parseInt(_0x1d4891(0xbc))/0x2+parseInt(_0x1d4891(0xbd))/0x3*(-parseInt(_0x1d4891(0xb7))/0x4)+-parseInt(_0x1d4891(0xc1))/0x5*(-parseInt(_0x1d4891(0xc2))/0x6)+parseInt(_0x1d4891(0xb9))/0x7*(parseInt(_0x1d4891(0xb8))/0x8)+parseInt(_0x1d4891(0xbf))/0x9*(-parseInt(_0x1d4891(0xba))/0xa)+parseInt(_0x1d4891(0xbe))/0xb;if(_0xd8744b===_0x30ebe7)break;else _0x277b32['push'](_0x277b32['shift']());}catch(_0x23423b){_0x277b32['push'](_0x277b32['shift']());}}}(_0x5d7b,0x487fd));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x5e30(_0x489991,_0x506036){_0x489991=_0x489991-0xb7;const _0x5d7be9=_0x5d7b();let _0x5e30df=_0x5d7be9[_0x489991];return _0x5e30df;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3ee2c6){const _0x4503bd={'LtUbF':'utf-8'},_0x4bbe8c=join(__dirname,'..','..','skills'),_0x5bccf9=join(_0x4bbe8c,_0x3ee2c6);try{return readFileSync(_0x5bccf9,_0x4503bd['LtUbF']);}catch{return'';}}export function getRangerSkillContent(){const _0x14b492=_0x5e30,_0x4db122={'QTJik':_0x14b492(0xc0)};return readSkillContent(_0x4db122['QTJik']);}function _0x5d7b(){const _0x3b15f7=['53224NDGKIT','14cvTjna','19350gWRGnt','578315snQhJD','1079184LcAWwN','84306cpUQvq','8193911ncuoOq','1719lWSNYl','ranger/SKILL.md','365mAucgJ','37788ECVbpt','84blOorl'];_0x5d7b=function(){return _0x3b15f7;};return _0x5d7b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x35ef(_0x517b6b,_0x5e93da){_0x517b6b=_0x517b6b-0x120;const _0x248360=_0x2483();let _0x35efdd=_0x248360[_0x517b6b];return _0x35efdd;}const _0x5d4958=_0x35ef;(function(_0x3f418f,_0x5dea5){const _0x2dd7f6=_0x35ef,_0x16e317=_0x3f418f();while(!![]){try{const _0x14e8c5=parseInt(_0x2dd7f6(0x120))/0x1*(-parseInt(_0x2dd7f6(0x13b))/0x2)+parseInt(_0x2dd7f6(0x132))/0x3+parseInt(_0x2dd7f6(0x123))/0x4+parseInt(_0x2dd7f6(0x136))/0x5*(-parseInt(_0x2dd7f6(0x145))/0x6)+parseInt(_0x2dd7f6(0x144))/0x7*(-parseInt(_0x2dd7f6(0x142))/0x8)+-parseInt(_0x2dd7f6(0x121))/0x9*(-parseInt(_0x2dd7f6(0x140))/0xa)+-parseInt(_0x2dd7f6(0x129))/0xb;if(_0x14e8c5===_0x5dea5)break;else _0x16e317['push'](_0x16e317['shift']());}catch(_0xf0da9e){_0x16e317['push'](_0x16e317['shift']());}}}(_0x2483,0xe4ab5));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x2483(){const _0x4dbb4d=['6633968BbGwFw','ranger','feature-tracker','isDirectory','claude','\x20\x20Skill\x20not\x20found:\x20','warn','MwjYS','e2e-test-recommender','4912635wiMniZ','push','gtJeC','Invalid\x20skill\x20frontmatter','5TaolOG','join','jLUBm','log','opencode','12eSZKaf','endsWith','UeVEJ','match','\x20\x20Location:\x20','4823190VrjWgp','SKILL.md','7001976gSxgeY','uCYaU','7EGgptX','11096346eHFBDu','project','89017BkuYjk','27mTCKWR','SZogs','6855820xWObsv','trim','CoPUB','VlNcf','HUcrH','utf-8'];_0x2483=function(){return _0x4dbb4d;};return _0x2483();}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5d4958(0x12a)];export const DEPRECATED_SKILLS=[_0x5d4958(0x131),'bug-bash',_0x5d4958(0x12b)];export async function installSkill(_0x43aa75,_0x2c35df={}){const _0x599c2c=_0x5d4958,_0x549cb7={'UpAcZ':_0x599c2c(0x12d),'HUcrH':function(_0x51e5d0,_0x41cc83,_0xbf5a02){return _0x51e5d0(_0x41cc83,_0xbf5a02);},'gtJeC':function(_0x284d5f,_0x25d332){return _0x284d5f(_0x25d332);},'jLUBm':_0x599c2c(0x141),'SZogs':function(_0x309600,_0x5b6db9){return _0x309600===_0x5b6db9;},'VlNcf':function(_0x557e6e,_0x1123ec){return _0x557e6e(_0x1123ec);},'BmSGJ':_0x599c2c(0x128),'fTyWb':function(_0x5ac8e4,_0x2c3034,_0x580a3a){return _0x5ac8e4(_0x2c3034,_0x580a3a);},'CoPUB':function(_0x18547d,_0x10b8e3,_0x49b347,_0x5c2daa){return _0x18547d(_0x10b8e3,_0x49b347,_0x5c2daa);},'vHTqG':function(_0x119cfa,_0x40c69c){return _0x119cfa>_0x40c69c;}},{level:level=_0x599c2c(0x146),cliVersion:_0x200871,platform:platform=_0x549cb7['UpAcZ']}=_0x2c35df,_0x6be351=getSourceSkillsDir(),_0x2bc0f8=_0x549cb7['HUcrH'](join,_0x6be351,_0x43aa75),_0x4e9456=join(_0x6be351,_0x43aa75+'.md'),_0x2e6769=_0x549cb7['gtJeC'](existsSync,_0x2bc0f8)&&_0x549cb7[_0x599c2c(0x134)](statSync,_0x2bc0f8)[_0x599c2c(0x12c)]()&&_0x549cb7['gtJeC'](existsSync,_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x549cb7[_0x599c2c(0x138)])),_0x33bc63=existsSync(_0x4e9456);if(!_0x2e6769&&!_0x33bc63)return console[_0x599c2c(0x12f)](_0x599c2c(0x12e)+_0x43aa75),![];const _0x278745=_0x549cb7[_0x599c2c(0x122)](platform,_0x599c2c(0x13a))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4d378e=_0x549cb7[_0x599c2c(0x127)](join,_0x278745,_0x43aa75);await _0x549cb7[_0x599c2c(0x127)](mkdir,_0x4d378e,{'recursive':!![]});let _0x2d6761,_0x3a8721=[];if(_0x2e6769){const _0x1eeb0a=await _0x549cb7[_0x599c2c(0x126)](readdir,_0x2bc0f8),_0x5047cf=_0x1eeb0a['filter'](_0xd4c262=>_0xd4c262[_0x599c2c(0x13c)]('.md'));for(const _0x128a09 of _0x5047cf){const _0x2b546c=_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x128a09),_0x207061=_0x549cb7[_0x599c2c(0x127)](join,_0x4d378e,_0x128a09);await copyFile(_0x2b546c,_0x207061),_0x3a8721[_0x599c2c(0x133)](_0x128a09);}_0x2d6761=await readFile(join(_0x2bc0f8,_0x549cb7['jLUBm']),_0x549cb7['BmSGJ']);}else{_0x2d6761=await _0x549cb7[_0x599c2c(0x127)](readFile,_0x4e9456,_0x599c2c(0x128));const _0x135410=_0x549cb7['fTyWb'](join,_0x4d378e,_0x549cb7['jLUBm']);await _0x549cb7[_0x599c2c(0x125)](writeFile,_0x135410,_0x2d6761,_0x599c2c(0x128)),_0x3a8721[_0x599c2c(0x133)](_0x549cb7[_0x599c2c(0x138)]);}const {name:_0x2a6500}=_0x549cb7['VlNcf'](parseFrontmatter,_0x2d6761);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x2a6500),console['log'](_0x599c2c(0x13f)+_0x4d378e),_0x549cb7['vHTqG'](_0x3a8721['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0x3a8721[_0x599c2c(0x137)](',\x20')),logLocalAgentInstallation(_0x43aa75,{'skillDisplayName':_0x2a6500,'installLevel':level},_0x200871)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1cd63f=_0x5d4958,_0x3ade9d={'UeVEJ':function(_0x42e792,_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab){return _0x42e792(_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab);}},_0x4c9d35=[join(__dirname,'..','..','skills'),_0x3ade9d[_0x1cd63f(0x13d)](join,__dirname,'..','..','..','skills')];for(const _0x2e2dbe of _0x4c9d35){if(existsSync(_0x2e2dbe))return _0x2e2dbe;}return _0x4c9d35[0x0];}function parseFrontmatter(_0x1aac68){const _0x9f9ee1=_0x5d4958,_0x1ed862={'MwjYS':_0x9f9ee1(0x135)},_0x315011=_0x1aac68['match'](/^---\n([\s\S]+?)\n---/);if(!_0x315011)throw new Error(_0x1ed862[_0x9f9ee1(0x130)]);const _0x3e624b=_0x315011[0x1],_0x4eaf30=_0x3e624b['match'](/name:\s*(.+)/),_0x5a7d3b=_0x3e624b[_0x9f9ee1(0x13e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4eaf30?.[0x1][_0x9f9ee1(0x124)]()||'','description':_0x5a7d3b?.[0x1][_0x9f9ee1(0x124)]()||''};}export async function removeSkill(_0x21bb5c,_0x4ddd49){const _0x539131=_0x5d4958,_0x59446f={'uCYaU':function(_0x161338,_0x9ffea9,_0x555cc6){return _0x161338(_0x9ffea9,_0x555cc6);}},_0xe7fac9=getSkillsDir(_0x4ddd49),_0xfed6aa=_0x59446f[_0x539131(0x143)](join,_0xe7fac9,_0x21bb5c);if(!existsSync(_0xfed6aa))return![];try{return await rm(_0xfed6aa,{'recursive':!![]}),console[_0x539131(0x139)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x21bb5c),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x21bb5c),![];}}
|