@ranger-testing/ranger-cli 2.5.3 → 2.5.4-alpha.071b7bd-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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(_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
|
+
(function(_0x226b7f,_0x25ba17){const _0x117ed9=_0x1c73,_0xc818b9=_0x226b7f();while(!![]){try{const _0x543422=parseInt(_0x117ed9(0xc6))/0x1*(parseInt(_0x117ed9(0xcd))/0x2)+-parseInt(_0x117ed9(0xc2))/0x3+-parseInt(_0x117ed9(0xd2))/0x4+parseInt(_0x117ed9(0xb0))/0x5*(-parseInt(_0x117ed9(0x9d))/0x6)+-parseInt(_0x117ed9(0xae))/0x7*(-parseInt(_0x117ed9(0xbe))/0x8)+parseInt(_0x117ed9(0xce))/0x9*(-parseInt(_0x117ed9(0xb9))/0xa)+parseInt(_0x117ed9(0xd1))/0xb;if(_0x543422===_0x25ba17)break;else _0xc818b9['push'](_0xc818b9['shift']());}catch(_0x4dfa89){_0xc818b9['push'](_0xc818b9['shift']());}}}(_0x1731,0x716ff));import{readFile,stat}from'fs/promises';import{extname}from'path';function _0x1731(){const _0xdc78c=['EijaO','4524942xTNSxf','Failed\x20to\x20fetch\x20image:\x20','sTFis','value','source','fromEntries','toLowerCase','AHnCM','image','data:','data','block','Image\x20exceeds\x20size\x20limit\x20(','map','CDmte','PmvvZ','gif','7ViWhIC','isArray','5tAWbmp','entries','get','mvDHx','\x20bytes)','image/gif','toString','VIKVE','HqjAc','71000LpkBat','wfgQJ','size','vwdMQ','gyHtX','2890568JlcNbA','HgpEh','hook_event_name','object','2152089MFUrWr','drkHr','all','charCodeAt','1SDUAAK','mJnTk','content-length','onKll','split','image/png','zxdQQ','1723132NxFwIJ','522TBJGjd','isNaN','base64','15540514lunoGx','1150808wVGHfR','arrayBuffer','replace','image/jpeg','file://','fNKws','wESou','IqoBN','DJZsf','startsWith','type','string','image/webp','bPQjT','mediaType','updated'];_0x1731=function(){return _0xdc78c;};return _0x1731();}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x19fb73){const _0x182246=_0x1c73,_0x3c0506={'drkHr':_0x182246(0xc1),'gyHtX':function(_0x288768,_0x54f8f2){return _0x288768!==_0x54f8f2;}};return typeof _0x19fb73===_0x3c0506[_0x182246(0xc3)]&&_0x3c0506[_0x182246(0xbd)](_0x19fb73,null);}function isImageBlock(_0x4aa03c){const _0x594db9=_0x1c73,_0x1818cf={'oREMP':function(_0x4e49a3,_0x2a6881){return _0x4e49a3(_0x2a6881);},'gUstl':function(_0x9a708d,_0x1166c3){return _0x9a708d===_0x1166c3;}};return _0x1818cf['oREMP'](isRecord,_0x4aa03c)&&_0x1818cf['gUstl'](_0x4aa03c[_0x594db9(0x96)],_0x594db9(0xa5));}function isDataUrl(_0x3303d5){const _0x5136d4=_0x1c73,_0x376f16={'vwdMQ':_0x5136d4(0xa6)};return _0x3303d5['startsWith'](_0x376f16[_0x5136d4(0xbc)]);}function parseDataUrl(_0x5b42d9){const _0x2faaf9=/^data:([^;]+);base64,(.+)$/['exec'](_0x5b42d9);if(!_0x2faaf9)return null;const _0x53349a=_0x2faaf9[0x1]['toLowerCase']();if(!isValidMediaType(_0x53349a))return null;return{'data':_0x2faaf9[0x2],'mediaType':_0x53349a};}function isValidMediaType(_0x3b514f){const _0x198527=_0x1c73,_0x43a6c0={'RysYe':_0x198527(0xcb),'mbIEP':_0x198527(0x98)};return[_0x198527(0x8f),_0x43a6c0['RysYe'],_0x198527(0xb5),_0x43a6c0['mbIEP']]['includes'](_0x3b514f);}function inferMediaType(_0xcc21eb,_0x87f46b){const _0x25904e=_0x1c73,_0x7afeca={'XHzHQ':function(_0x10c7b1,_0x13ba14){return _0x10c7b1(_0x13ba14);},'fEKDy':'jpeg','mvDHx':_0x25904e(0xcb),'zxvrC':_0x25904e(0xad),'IqoBN':'image/webp'};if(_0xcc21eb){const _0x4d6b49=_0xcc21eb[_0x25904e(0xa3)]()[_0x25904e(0xca)](';')[0x0]['trim']();if(isValidMediaType(_0x4d6b49))return _0x4d6b49;}const _0x4bf5f4=_0x7afeca['XHzHQ'](extname,_0x87f46b)['toLowerCase']()[_0x25904e(0xd4)]('.','');switch(_0x4bf5f4){case'jpg':case _0x7afeca['fEKDy']:return'image/jpeg';case'png':return _0x7afeca[_0x25904e(0xb3)];case _0x7afeca['zxvrC']:return'image/gif';case'webp':return _0x7afeca[_0x25904e(0x93)];default:return'image/png';}}async function readImageFromUrl(_0x576b4b){const _0x568a19=_0x1c73,_0x28042a={'DXpFb':function(_0x1579b3,_0x134195){return _0x1579b3(_0x134195);},'zxdQQ':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','VIKVE':_0x568a19(0x90),'mJnTk':function(_0x231129,_0x1a9d08){return _0x231129(_0x1a9d08);},'sTFis':function(_0x55ce2e,_0x5327b0,_0x58f17e){return _0x55ce2e(_0x5327b0,_0x58f17e);},'PBpUb':'https://','EijaO':function(_0x3d4b38,_0x4bb796,_0x29ae3b){return _0x3d4b38(_0x4bb796,_0x29ae3b);},'wfgQJ':function(_0x2c9792,_0xcfdcd1){return _0x2c9792>_0xcfdcd1;},'HqjAc':function(_0x45ae93,_0x37eec){return _0x45ae93>_0x37eec;},'PmvvZ':_0x568a19(0xd0),'MKyus':'content-type','onKll':function(_0x87fca7,_0x1c4066){return _0x87fca7(_0x1c4066);},'onACT':function(_0x3daaae,_0x3a12e0){return _0x3daaae>_0x3a12e0;},'fNKws':function(_0x3c76db,_0x2069df){return _0x3c76db(_0x2069df);}};if(_0x28042a['DXpFb'](isDataUrl,_0x576b4b)){const _0x542173=parseDataUrl(_0x576b4b);if(_0x542173)return _0x542173;throw new Error(_0x28042a[_0x568a19(0xcc)]);}if(_0x576b4b[_0x568a19(0x95)](_0x28042a[_0x568a19(0xb7)])){const _0x45a142=fileURLToPath(_0x576b4b),_0x5a7fe7=await stat(_0x45a142);if(_0x5a7fe7[_0x568a19(0xbb)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x568a19(0xb4));const _0x378e86=await _0x28042a['mJnTk'](readFile,_0x45a142);return{'data':_0x378e86['toString'](_0x568a19(0xd0)),'mediaType':_0x28042a[_0x568a19(0x9f)](inferMediaType,null,_0x45a142)};}if(_0x576b4b['startsWith']('http://')||_0x576b4b['startsWith'](_0x28042a['PBpUb'])){const _0x2515ef=await _0x28042a[_0x568a19(0x9c)](fetch,_0x576b4b,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2515ef['ok'])throw new Error(_0x568a19(0x9e)+_0x2515ef['status']);const _0xa267b0=_0x2515ef['headers'][_0x568a19(0xb2)](_0x568a19(0xc8));if(_0xa267b0){const _0x1397fb=_0x28042a[_0x568a19(0xc7)](Number,_0xa267b0);if(!Number[_0x568a19(0xcf)](_0x1397fb)&&_0x28042a[_0x568a19(0xba)](_0x1397fb,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x568a19(0xa9)+MAX_IMAGE_SIZE_BYTES+_0x568a19(0xb4));}const _0x9d6d4d=await _0x2515ef[_0x568a19(0xd3)]();if(_0x28042a[_0x568a19(0xb8)](_0x9d6d4d['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x568a19(0xb4));return{'data':Buffer['from'](_0x9d6d4d)[_0x568a19(0xb6)](_0x28042a[_0x568a19(0xac)]),'mediaType':_0x28042a['EijaO'](inferMediaType,_0x2515ef['headers']['get'](_0x28042a['MKyus']),_0x576b4b)};}const _0x46d0fa=await _0x28042a[_0x568a19(0xc9)](stat,_0x576b4b);if(_0x28042a['onACT'](_0x46d0fa['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x568a19(0xa9)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x685a14=await _0x28042a[_0x568a19(0x91)](readFile,_0x576b4b);return{'data':_0x685a14['toString'](_0x28042a['PmvvZ']),'mediaType':inferMediaType(null,_0x576b4b)};}async function convertImageBlockToBase64(_0x51815c){const _0x4883bb=_0x1c73,_0x2dc647={'QMIfs':function(_0x3d95b4,_0xe58ffe){return _0x3d95b4===_0xe58ffe;}};if(_0x2dc647['QMIfs'](_0x51815c['source']?.[_0x4883bb(0x96)],_0x4883bb(0xd0)))return{'updated':![],'block':_0x51815c};if(_0x51815c['data']&&_0x51815c['mimeType'])return{'updated':![],'block':_0x51815c};const _0x2ba138=_0x51815c[_0x4883bb(0xa1)]?.['url']??_0x51815c['url'];if(!_0x2ba138)return{'updated':![],'block':_0x51815c};const _0x291eff=await readImageFromUrl(_0x2ba138);return{'updated':!![],'block':{..._0x51815c,'source':{'type':'base64','media_type':_0x291eff[_0x4883bb(0x9a)],'data':_0x291eff[_0x4883bb(0xa7)]},'url':undefined}};}function _0x1c73(_0x490cb5,_0x234032){_0x490cb5=_0x490cb5-0x8f;const _0x17318d=_0x1731();let _0x1c7359=_0x17318d[_0x490cb5];return _0x1c7359;}async function convertToolOutputImagesToBase64(_0x44fda3){const _0x411bdd=_0x1c73,_0x3e7d64={'Rvued':function(_0x20abe1,_0x175873){return _0x20abe1(_0x175873);}};if(!_0x3e7d64['Rvued'](isRecord,_0x44fda3))return{'updated':![],'output':_0x44fda3};const _0x5f2322=_0x44fda3['content'];if(!Array[_0x411bdd(0xaf)](_0x5f2322))return{'updated':![],'output':_0x44fda3};let _0x3dd388=![];const _0x2f39a4=await Promise[_0x411bdd(0xc4)](_0x5f2322['map'](async _0x5f0105=>{const _0x46d967=_0x411bdd;if(!isImageBlock(_0x5f0105))return _0x5f0105;try{const _0x919455=await convertImageBlockToBase64(_0x5f0105);if(_0x919455[_0x46d967(0x9b)])_0x3dd388=!![];return _0x919455[_0x46d967(0xa8)];}catch{return _0x5f0105;}}));if(!_0x3dd388)return{'updated':![],'output':_0x44fda3};return{'updated':!![],'output':{..._0x44fda3,'content':_0x2f39a4}};}function sanitizeLoneSurrogates(_0x152954){const _0x239a67=_0x1c73,_0x32e3c2={'bPQjT':function(_0x31d051,_0x131383){return _0x31d051<_0x131383;},'wESou':function(_0x260260,_0x3ebb13){return _0x260260>=_0x3ebb13;},'VbJvR':function(_0xcdeedb,_0x15b1b1){return _0xcdeedb<=_0x15b1b1;},'AHnCM':function(_0x174118,_0x580fe8){return _0x174118<=_0x580fe8;},'LIakl':function(_0x567edc,_0x21abc2){return _0x567edc+_0x21abc2;},'EHEXI':function(_0x21f9d7,_0x2e120c){return _0x21f9d7>=_0x2e120c;},'weYpz':function(_0x32a9cc,_0x3f57ec){return _0x32a9cc<=_0x3f57ec;}};let _0x224d54=![],_0x4a368c='';for(let _0x1360b6=0x0;_0x32e3c2[_0x239a67(0x99)](_0x1360b6,_0x152954['length']);_0x1360b6+=0x1){const _0x41dcd8=_0x152954['charCodeAt'](_0x1360b6);if(_0x32e3c2[_0x239a67(0x92)](_0x41dcd8,0xd800)&&_0x32e3c2['VbJvR'](_0x41dcd8,0xdbff)){const _0x16b410=_0x152954[_0x239a67(0xc5)](_0x1360b6+0x1);if(_0x16b410>=0xdc00&&_0x32e3c2[_0x239a67(0xa4)](_0x16b410,0xdfff)){_0x4a368c+=_0x32e3c2['LIakl'](_0x152954[_0x1360b6],_0x152954[_0x32e3c2['LIakl'](_0x1360b6,0x1)]),_0x1360b6+=0x1;continue;}_0x224d54=!![],_0x4a368c+='�';continue;}if(_0x32e3c2['EHEXI'](_0x41dcd8,0xdc00)&&_0x32e3c2['weYpz'](_0x41dcd8,0xdfff)){_0x224d54=!![],_0x4a368c+='�';continue;}_0x4a368c+=_0x152954[_0x1360b6];}return _0x224d54?{'updated':_0x224d54,'value':_0x4a368c}:{'updated':_0x224d54,'value':_0x152954};}function sanitizeLoneSurrogatesDeep(_0x2168e3){const _0x243d6c=_0x1c73,_0x5bfa12={'HgpEh':function(_0x2802dc,_0x81d70c){return _0x2802dc(_0x81d70c);},'CDmte':function(_0x45f560,_0x6e1d54){return _0x45f560===_0x6e1d54;},'DJZsf':_0x243d6c(0x97)};if(_0x5bfa12[_0x243d6c(0xab)](typeof _0x2168e3,_0x5bfa12[_0x243d6c(0x94)]))return sanitizeLoneSurrogates(_0x2168e3);if(Array['isArray'](_0x2168e3)){let _0x438aa3=![];const _0x33302e=_0x2168e3['map'](_0x33cb34=>{const _0xa98c7c=_0x243d6c,_0xaa293c=_0x5bfa12[_0xa98c7c(0xbf)](sanitizeLoneSurrogatesDeep,_0x33cb34);return _0xaa293c[_0xa98c7c(0x9b)]&&(_0x438aa3=!![]),_0xaa293c['value'];});return _0x438aa3?{'updated':!![],'value':_0x33302e}:{'updated':![],'value':_0x2168e3};}if(!isRecord(_0x2168e3))return{'updated':![],'value':_0x2168e3};let _0x1a9ce5=![];const _0x1270c9=Object[_0x243d6c(0xb1)](_0x2168e3)[_0x243d6c(0xaa)](([_0x15d8c6,_0x858f84])=>{const _0x56a045=_0x243d6c,_0x5f0c48=sanitizeLoneSurrogatesDeep(_0x858f84);return _0x5f0c48[_0x56a045(0x9b)]&&(_0x1a9ce5=!![]),[_0x15d8c6,_0x5f0c48[_0x56a045(0xa0)]];});return _0x1a9ce5?{'updated':!![],'value':Object[_0x243d6c(0xa2)](_0x1270c9)}:{'updated':![],'value':_0x2168e3};}export function createMcpImageBase64Hook(){const _0xb5de5a={'FmvWq':function(_0x252465,_0x49ea69){return _0x252465!==_0x49ea69;},'BkKnn':'PostToolUse'};return async _0xfdd86e=>{const _0x4bed0a=_0x1c73;if(_0xb5de5a['FmvWq'](_0xfdd86e[_0x4bed0a(0xc0)],_0xb5de5a['BkKnn']))return{};const _0x3f972a=_0xfdd86e,_0x281206=await convertToolOutputImagesToBase64(_0x3f972a['tool_response']),_0x28a513=sanitizeLoneSurrogatesDeep(_0x281206['output']),_0x40a088=_0x281206['updated']||_0x28a513['updated'];if(!_0x40a088)return{};return{'hookSpecificOutput':{'hookEventName':_0xb5de5a['BkKnn'],'updatedMCPToolOutput':_0x28a513['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x46e974=_0x4c95;(function(_0x3f599e,_0x5a5e80){const _0x76016c=_0x4c95,_0x4c3c3e=_0x3f599e();while(!![]){try{const _0x258a50=parseInt(_0x76016c(0x158))/0x1+parseInt(_0x76016c(0x156))/0x2+parseInt(_0x76016c(0x15b))/0x3*(parseInt(_0x76016c(0x152))/0x4)+parseInt(_0x76016c(0x153))/0x5*(-parseInt(_0x76016c(0x15d))/0x6)+parseInt(_0x76016c(0x157))/0x7*(-parseInt(_0x76016c(0x15a))/0x8)+parseInt(_0x76016c(0x15c))/0x9*(parseInt(_0x76016c(0x155))/0xa)+-parseInt(_0x76016c(0x159))/0xb;if(_0x258a50===_0x5a5e80)break;else _0x4c3c3e['push'](_0x4c3c3e['shift']());}catch(_0x3dcff8){_0x4c3c3e['push'](_0x4c3c3e['shift']());}}}(_0x2a15,0xf0cba));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x46e974(0x154)};export const DEFAULT_VERIFY_MODEL=_0x46e974(0x154);function _0x4c95(_0x48f03e,_0x55c334){_0x48f03e=_0x48f03e-0x152;const _0x2a15c6=_0x2a15();let _0x4c955c=_0x2a15c6[_0x48f03e];return _0x4c955c;}function _0x2a15(){const _0x2b2987=['657HgGOFp','9AsVqnI','198cCTlJT','28600XIIEOf','158090PrHlVW','claude-sonnet-4-6','7388610xLHYRG','3900782IcwxRE','7LLczrv','64200bmFEEP','5999257BdWizg','13953784TfZYXb'];_0x2a15=function(){return _0x2b2987;};return _0x2a15();}export function resolveVerifyModel(_0x38a48b){if(!_0x38a48b)return undefined;const _0x51f0c0=_0x38a48b['trim']();if(!_0x51f0c0)return undefined;const _0x56d57e=VERIFY_MODEL_ALIASES[_0x51f0c0['toLowerCase']()];return _0x56d57e??_0x51f0c0;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x46a8f6,_0x29c53b){var _0x4dace5=_0x4d9a,_0xe2858a=_0x46a8f6();while(!![]){try{var _0x4fb99e=parseInt(_0x4dace5(0x1d6))/0x1*(parseInt(_0x4dace5(0x1d1))/0x2)+-parseInt(_0x4dace5(0x1cd))/0x3+parseInt(_0x4dace5(0x1ca))/0x4*(parseInt(_0x4dace5(0x1cc))/0x5)+-parseInt(_0x4dace5(0x1c8))/0x6*(-parseInt(_0x4dace5(0x1d5))/0x7)+parseInt(_0x4dace5(0x1ce))/0x8+parseInt(_0x4dace5(0x1cb))/0x9+parseInt(_0x4dace5(0x1c9))/0xa*(-parseInt(_0x4dace5(0x1cf))/0xb);if(_0x4fb99e===_0x29c53b)break;else _0xe2858a['push'](_0xe2858a['shift']());}catch(_0xc83be0){_0xe2858a['push'](_0xe2858a['shift']());}}}(_0x2101,0xe1466));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';function _0x4d9a(_0xa8b539,_0x1df706){_0xa8b539=_0xa8b539-0x1c5;var _0x210127=_0x2101();var _0x4d9a35=_0x210127[_0xa8b539];return _0x4d9a35;}function _0x2101(){var _0x1330c2=['1zCZDGB','KJvIj','env','GbMTL','6JJJdhM','40CIqrsR','6406636kofhlm','8995842OURfgq','5MxWMSB','2144082QsglqM','2909936xYezGX','4599683phPPYp','.opencode','526982vUFZgP','.config','opencode','OPENCODE_CONFIG_DIR','571214FCvFKv'];_0x2101=function(){return _0x1330c2;};return _0x2101();}export function getOpencodeConfigDir(_0x260f79){var _0x565082=_0x4d9a,_0x594699={'GbMTL':function(_0x13a1e1,_0x6d5bd7){return _0x13a1e1===_0x6d5bd7;},'lcTBQ':function(_0x204cc4,_0x5e99dd,_0x3d7954,_0x575c0e){return _0x204cc4(_0x5e99dd,_0x3d7954,_0x575c0e);},'KJvIj':_0x565082(0x1d2)};if(process[_0x565082(0x1c6)]['OPENCODE_CONFIG_DIR'])return process['env'][_0x565082(0x1d4)];if(_0x594699[_0x565082(0x1c7)](_0x260f79,'user')){if(process['env']['XDG_CONFIG_HOME'])return join(process[_0x565082(0x1c6)]['XDG_CONFIG_HOME'],_0x565082(0x1d3));return _0x594699['lcTBQ'](join,homedir(),_0x594699[_0x565082(0x1c5)],_0x565082(0x1d3));}return join(getProjectRoot(),_0x565082(0x1d0));}export function getOpencodeSkillsDir(_0x1276a6){var _0x91c0ec={'TEYKC':function(_0x186ad1,_0x5e1f5c,_0x59c275){return _0x186ad1(_0x5e1f5c,_0x59c275);}};return _0x91c0ec['TEYKC'](join,getOpencodeConfigDir(_0x1276a6),'skills');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2eec3e=_0x3fa6;function _0x3fa6(_0xf09881,_0x84efad){_0xf09881=_0xf09881-0x130;const _0x4d223f=_0x4d22();let _0x3fa6a9=_0x4d223f[_0xf09881];return _0x3fa6a9;}(function(_0x3a585e,_0x372d09){const _0x4244ec=_0x3fa6,_0x1a3496=_0x3a585e();while(!![]){try{const _0x2c1693=-parseInt(_0x4244ec(0x146))/0x1+-parseInt(_0x4244ec(0x15c))/0x2*(parseInt(_0x4244ec(0x152))/0x3)+parseInt(_0x4244ec(0x15b))/0x4*(parseInt(_0x4244ec(0x135))/0x5)+-parseInt(_0x4244ec(0x13c))/0x6*(-parseInt(_0x4244ec(0x148))/0x7)+-parseInt(_0x4244ec(0x138))/0x8+-parseInt(_0x4244ec(0x14f))/0x9+parseInt(_0x4244ec(0x150))/0xa*(parseInt(_0x4244ec(0x145))/0xb);if(_0x2c1693===_0x372d09)break;else _0x1a3496['push'](_0x1a3496['shift']());}catch(_0x172c6d){_0x1a3496['push'](_0x1a3496['shift']());}}}(_0x4d22,0x4648b));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x2eec3e(0x154);function toPlaywrightCliSessionKey(_0x45d9b2){const _0x43700e=_0x2eec3e,_0x3959b9={'PNqmo':'sha256'},_0x4e7c7d=createHash(_0x3959b9[_0x43700e(0x151)])['update'](_0x45d9b2)['digest']('hex')[_0x43700e(0x15f)](0x0,0xc);return _0x43700e(0x158)+_0x4e7c7d;}function _0x4d22(){const _0x31351f=['args','3885672mSqdpI','gGEAM','npx','\x0astdout:\x20','11124yDGfHG','cmd','length','--config','aMudR','tGXwW','toString','RiQmt','script','3417667vpFSfJ','436788oPpqbm','LwBvG','1232LjeulN','\x20signal=','data','bash_command','tEqQF','ignore','trim','1729647hfqoWH','30ZXmvPF','PNqmo','6gQJgGK','fqDxJ','@playwright/cli','SIGTERM','env','\x0astderr:\x20','rg-','timeoutMs','ucGdK','12CfYDQB','13098eHFNGx','fRozA','commandArgs','slice','stdout','command','join','-s=','NgupQ','sessionId','error','string','null','262110PbRumC','replace'];_0x4d22=function(){return _0x31351f;};return _0x4d22();}function shellQuote(_0x4f0dd4){const _0x482ea7=_0x2eec3e;return'\x27'+_0x4f0dd4[_0x482ea7(0x136)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x1f8e7b){return SAFE_SHELL_TOKEN['test'](_0x1f8e7b)?_0x1f8e7b:shellQuote(_0x1f8e7b);}export function buildPlaywrightCliInvocation(_0x5f1055,_0x5a9767,_0x43716){const _0x28267d=_0x2eec3e,_0x517583={'tEqQF':_0x28267d(0x13a),'UCiSc':'--config','FaujE':function(_0x2d9558,_0x4dccc1){return _0x2d9558(_0x4dccc1);}},_0x3a8d19=toPlaywrightCliSessionKey(_0x5f1055),[_0x451724='unknown']=_0x43716,_0x57e319=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x3a8d19,'--config',_0x5a9767,..._0x43716];return{'command':_0x517583['tEqQF'],'args':_0x57e319,'shellCommand':[_0x517583[_0x28267d(0x14c)],PLAYWRIGHT_CLI_BINARY,_0x28267d(0x163)+quoteShellArg(_0x3a8d19),_0x517583['UCiSc'],_0x517583['FaujE'](quoteShellArg,_0x5a9767),..._0x43716['map'](quoteShellArg)][_0x28267d(0x162)]('\x20'),'subcommand':_0x451724};}export function buildPlaywrightCliCommandPrefix(_0x475b14,_0x4298eb){const _0x8a20c6=_0x2eec3e,_0x4a4e0e={'bwpvc':_0x8a20c6(0x13a),'ucGdK':function(_0x51fdc6,_0x16a04c){return _0x51fdc6(_0x16a04c);},'LwBvG':_0x8a20c6(0x13f)},_0x514931=toPlaywrightCliSessionKey(_0x475b14);return[_0x4a4e0e['bwpvc'],PLAYWRIGHT_CLI_BINARY,_0x8a20c6(0x163)+_0x4a4e0e[_0x8a20c6(0x15a)](quoteShellArg,_0x514931),_0x4a4e0e[_0x8a20c6(0x147)],quoteShellArg(_0x4298eb)][_0x8a20c6(0x162)]('\x20');}function truncateOutput(_0x5c388d,_0x57edac=0x7d0){const _0x7de135=_0x2eec3e,_0x4bb985={'fqDxJ':function(_0x4e8927,_0xf8dd23){return _0x4e8927>_0xf8dd23;},'tGXwW':function(_0x1af7e4,_0x3936ae){return _0x1af7e4+_0x3936ae;}};return _0x4bb985[_0x7de135(0x153)](_0x5c388d['length'],_0x57edac)?_0x4bb985[_0x7de135(0x141)](_0x5c388d[_0x7de135(0x15f)](0x0,_0x57edac),'...'):_0x5c388d;}export async function runPlaywrightCliCommand(_0x218c02){const _0x1244af=_0x2eec3e,_0x3b892b={'RiQmt':function(_0x37c679,_0x3b74bf,_0x3d10dc){return _0x37c679(_0x3b74bf,_0x3d10dc);},'HdNQQ':function(_0x59abc1,_0x1861fa){return _0x59abc1(_0x1861fa);},'GJkTg':function(_0x5403cc,_0x4f20f9){return _0x5403cc??_0x4f20f9;},'KMZhM':function(_0x3a08a6,_0x1eb8e1,_0x686da6,_0x5e5118){return _0x3a08a6(_0x1eb8e1,_0x686da6,_0x5e5118);},'gGEAM':_0x1244af(0x14a),'yktnT':'close'},_0xaa6a98=buildPlaywrightCliInvocation(_0x218c02[_0x1244af(0x131)],_0x218c02['configPath'],_0x218c02[_0x1244af(0x15e)]);return new Promise((_0x54ae0,_0x30b126)=>{const _0x31e9b5=_0x1244af,_0x1c9591={'UlsGF':function(_0x2be198,_0x311d49){return _0x2be198===_0x311d49;},'GygAJ':function(_0x2670d0,_0x1534e9){return _0x2670d0(_0x1534e9);},'aMudR':'null','JESyK':function(_0x204d13,_0x3d37a6){return _0x3b892b['GJkTg'](_0x204d13,_0x3d37a6);}},_0xaa02d4=_0x3b892b['KMZhM'](spawn,_0xaa6a98[_0x31e9b5(0x161)],_0xaa6a98[_0x31e9b5(0x137)],{'cwd':_0x218c02['cwd'],'env':_0x218c02[_0x31e9b5(0x156)],'stdio':[_0x31e9b5(0x14d),'pipe','pipe']});let _0x3c5912='',_0x573840='',_0x21e25a=![];const _0x537615=_0x218c02['timeoutMs']&&_0x218c02['timeoutMs']>0x0?_0x3b892b[_0x31e9b5(0x143)](setTimeout,()=>{const _0x3d1506=_0x31e9b5;_0x21e25a=!![],_0xaa02d4['kill'](_0x3d1506(0x155)),_0x3b892b[_0x3d1506(0x143)](setTimeout,()=>{try{_0xaa02d4['kill']('SIGKILL');}catch{}},0x3e8);},_0x218c02[_0x31e9b5(0x159)]):null;_0xaa02d4[_0x31e9b5(0x160)]?.['on'](_0x3b892b[_0x31e9b5(0x139)],_0xfad88b=>{_0x3c5912+=_0xfad88b['toString']();}),_0xaa02d4['stderr']?.['on']('data',_0x262acf=>{const _0x42d76d=_0x31e9b5;_0x573840+=_0x262acf[_0x42d76d(0x142)]();}),_0xaa02d4['on'](_0x31e9b5(0x132),_0x2ab49b=>{if(_0x537615)_0x3b892b['HdNQQ'](clearTimeout,_0x537615);_0x30b126(_0x2ab49b);}),_0xaa02d4['on'](_0x3b892b['yktnT'],(_0x18fd7e,_0x5cccd9)=>{const _0x278787=_0x31e9b5;if(_0x537615)clearTimeout(_0x537615);if(_0x1c9591['UlsGF'](_0x18fd7e,0x0)){_0x1c9591['GygAJ'](_0x54ae0,{'stdout':_0x3c5912,'stderr':_0x573840,'invocation':_0xaa6a98});return;}const _0xdf0d40=_0x21e25a?'timed\x20out\x20after\x20'+_0x218c02['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x18fd7e??_0x1c9591[_0x278787(0x140)])+_0x278787(0x149)+_0x1c9591['JESyK'](_0x5cccd9,_0x278787(0x134));_0x30b126(new Error('playwright-cli\x20'+_0xaa6a98['subcommand']+'\x20'+_0xdf0d40+_0x278787(0x13b)+truncateOutput(_0x3c5912)+_0x278787(0x157)+truncateOutput(_0x573840)));});});}export function extractBashCommand(_0xaf5924){const _0x301415=_0x2eec3e,_0x1fed84={'fRozA':_0x301415(0x14b),'NgupQ':function(_0x41ad39,_0x7d9460){return _0x41ad39===_0x7d9460;},'phLtI':_0x301415(0x133)},_0x46d3f8=['command',_0x301415(0x13d),_0x301415(0x144),_0x1fed84[_0x301415(0x15d)]];for(const _0x5d61de of _0x46d3f8){const _0x5164e=_0xaf5924[_0x5d61de];if(_0x1fed84[_0x301415(0x130)](typeof _0x5164e,_0x1fed84['phLtI'])&&_0x5164e['trim']())return _0x5164e;}const _0x86bb18=Object['values'](_0xaf5924)['find'](_0x385fce=>typeof _0x385fce==='string'&&_0x385fce[_0x301415(0x14e)]()[_0x301415(0x13e)]>0x0);return _0x86bb18??null;}export function parsePlaywrightCliCommand(_0x5d53b){const _0x5140ba=_0x5d53b['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x5140ba?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2d3a(_0x4167d7,_0x2429bd){_0x4167d7=_0x4167d7-0x130;const _0x528d7d=_0x528d();let _0x2d3ac9=_0x528d7d[_0x4167d7];return _0x2d3ac9;}(function(_0x36f2b6,_0x406683){const _0x1fc9a6=_0x2d3a,_0x4c91b3=_0x36f2b6();while(!![]){try{const _0x3c02d1=parseInt(_0x1fc9a6(0x134))/0x1*(parseInt(_0x1fc9a6(0x130))/0x2)+parseInt(_0x1fc9a6(0x138))/0x3+parseInt(_0x1fc9a6(0x133))/0x4+-parseInt(_0x1fc9a6(0x139))/0x5+parseInt(_0x1fc9a6(0x137))/0x6+-parseInt(_0x1fc9a6(0x136))/0x7+parseInt(_0x1fc9a6(0x135))/0x8*(parseInt(_0x1fc9a6(0x132))/0x9);if(_0x3c02d1===_0x406683)break;else _0x4c91b3['push'](_0x4c91b3['shift']());}catch(_0xfc78a2){_0x4c91b3['push'](_0x4c91b3['shift']());}}}(_0x528d,0xa9e3e));function _0x528d(){const _0x1b3534=['13078UlWXUM','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','1032381cDnTxi','3073272eacVfR','46nliTbc','56DTSYpg','7005530rTLmDb','335316aXxcBW','479355dSAwGP','1955430REJizH'];_0x528d=function(){return _0x1b3534;};return _0x528d();}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0xe62371){const _0x12e0c0=_0x2d3a,_0x20dec6=_0xe62371?_0xe62371(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x12e0c0(0x131)+_0x20dec6+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1509be,_0x430012){const _0x318991=_0x4234,_0x30dbfc=_0x1509be();while(!![]){try{const _0x3ec4ee=parseInt(_0x318991(0x1b6))/0x1*(-parseInt(_0x318991(0x1be))/0x2)+-parseInt(_0x318991(0x1bd))/0x3*(-parseInt(_0x318991(0x1b8))/0x4)+parseInt(_0x318991(0x1c0))/0x5+-parseInt(_0x318991(0x1c8))/0x6*(parseInt(_0x318991(0x1b7))/0x7)+-parseInt(_0x318991(0x1c2))/0x8*(-parseInt(_0x318991(0x1c7))/0x9)+-parseInt(_0x318991(0x1c1))/0xa*(-parseInt(_0x318991(0x1bb))/0xb)+parseInt(_0x318991(0x1b5))/0xc*(parseInt(_0x318991(0x1c6))/0xd);if(_0x3ec4ee===_0x430012)break;else _0x30dbfc['push'](_0x30dbfc['shift']());}catch(_0x18d7b1){_0x30dbfc['push'](_0x30dbfc['shift']());}}}(_0x232b,0xa16a1));function _0x4234(_0x11c53b,_0x2698c6){_0x11c53b=_0x11c53b-0x1b4;const _0x232b0a=_0x232b();let _0x42347b=_0x232b0a[_0x11c53b];return _0x42347b;}function _0x232b(){const _0x38b91a=[';\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','182622oTaRiT','flviA','6dQcBhk','2BacRbt','\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','120105Ykdzjs','170feCXaI','11672uYHDfm','stringify','</div>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','542243FylGPu','5769nrfuIp','6URQUMi','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','396GyZKGC','1182187bHzkjJ','8224657zwxxIR','800708ObDAJf','<div\x20class=\x22ranger-banner__message\x22>'];_0x232b=function(){return _0x38b91a;};return _0x232b();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x707bc2=_0x4234,_0x1f96c0={'flviA':function(_0x7f3a8b,_0x3424da){return _0x7f3a8b+_0x3424da;},'gFCNI':_0x707bc2(0x1c5),'mcSPD':_0x707bc2(0x1b4),'YSjzM':_0x707bc2(0x1c4)},_0x48d4fb=_0x1f96c0[_0x707bc2(0x1bc)](_0x1f96c0['flviA']('<div\x20class=\x22ranger-banner__content\x22>'+_0x1f96c0['gFCNI'],_0x707bc2(0x1b9))+_0x1f96c0['mcSPD'],'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x1f96c0['YSjzM']+'</div>'+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x43e8a5=_0x707bc2(0x1bf);return'\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'+JSON['stringify'](_0x48d4fb)+';\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[_0x707bc2(0x1c3)](_0x43e8a5)+_0x707bc2(0x1ba);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x4d316e){await _0x4d316e['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x335c52,_0x34bebc){const _0xc0d44e=_0x1d15,_0x5411a0=_0x335c52();while(!![]){try{const _0x3f86b2=-parseInt(_0xc0d44e(0x1a7))/0x1*(-parseInt(_0xc0d44e(0x19a))/0x2)+parseInt(_0xc0d44e(0x19f))/0x3*(parseInt(_0xc0d44e(0x1ab))/0x4)+parseInt(_0xc0d44e(0x199))/0x5*(parseInt(_0xc0d44e(0x1a4))/0x6)+parseInt(_0xc0d44e(0x1a5))/0x7*(-parseInt(_0xc0d44e(0x198))/0x8)+-parseInt(_0xc0d44e(0x19b))/0x9*(-parseInt(_0xc0d44e(0x1a6))/0xa)+parseInt(_0xc0d44e(0x1a0))/0xb+-parseInt(_0xc0d44e(0x1a9))/0xc;if(_0x3f86b2===_0x34bebc)break;else _0x5411a0['push'](_0x5411a0['shift']());}catch(_0x13700b){_0x5411a0['push'](_0x5411a0['shift']());}}}(_0x10e3,0xe1370));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x10e3(){const _0x362b38=['265946mkwHuU','hrSSb','33366108NbtXPC','zkXFn','339736aolbGf','24mpGvPA','5080WTXtTS','4KLGPCj','144EolFWx','aYcsb','nJtaw','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','45qprqqX','7816017AhuVVc','warn','string','parse','7632rlUzok','2428132UtpsKn','584260ZNMIEz'];_0x10e3=function(){return _0x362b38;};return _0x10e3();}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x5de974={'njLdz':function(_0x2958de){return _0x2958de();}};return join(_0x5de974['njLdz'](getRangerDir),'config.json');}function _0x1d15(_0x245141,_0x3f215e){_0x245141=_0x245141-0x198;const _0x10e34c=_0x10e3();let _0x1d15b2=_0x10e34c[_0x245141];return _0x1d15b2;}export async function loadRangerConfig(){const _0x29d536=_0x1d15,_0x1e52a5={'aYcsb':function(_0xc9dbb0){return _0xc9dbb0();},'zkXFn':function(_0x1c5364,_0x4e3830,_0x3fb3c0){return _0x1c5364(_0x4e3830,_0x3fb3c0);},'UlPMU':'utf-8','mpsLk':function(_0x160571,_0x16a421){return _0x160571!==_0x16a421;},'hrSSb':'object','nJtaw':function(_0x6345e2,_0x2eed7b){return _0x6345e2 instanceof _0x2eed7b;}},_0x6b4f2b=_0x1e52a5[_0x29d536(0x19c)](getRangerConfigPath);if(!existsSync(_0x6b4f2b))return{};try{const _0x3b79af=await _0x1e52a5[_0x29d536(0x1aa)](readFile,_0x6b4f2b,_0x1e52a5['UlPMU']),_0x3a3149=JSON[_0x29d536(0x1a3)](_0x3b79af);if(!_0x3a3149||_0x1e52a5['mpsLk'](typeof _0x3a3149,_0x1e52a5[_0x29d536(0x1a8)])||Array['isArray'](_0x3a3149))return{};const _0x46c59c={},_0x6b3ffa=_0x3a3149['model'];return typeof _0x6b3ffa===_0x29d536(0x1a2)&&(_0x46c59c['model']=_0x6b3ffa),_0x46c59c;}catch(_0x42a89f){const _0x22c6c8=_0x1e52a5[_0x29d536(0x19d)](_0x42a89f,Error)?_0x42a89f['message']:String(_0x42a89f);return console[_0x29d536(0x1a1)](_0x29d536(0x19e)+_0x6b4f2b+':\x20'+_0x22c6c8),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1feced,_0x212005){const _0x11df15=_0x5803,_0x2f6862=_0x1feced();while(!![]){try{const _0x36a4f8=parseInt(_0x11df15(0x171))/0x1*(-parseInt(_0x11df15(0x16a))/0x2)+parseInt(_0x11df15(0x168))/0x3+-parseInt(_0x11df15(0x163))/0x4*(-parseInt(_0x11df15(0x16b))/0x5)+parseInt(_0x11df15(0x165))/0x6*(-parseInt(_0x11df15(0x173))/0x7)+parseInt(_0x11df15(0x170))/0x8+parseInt(_0x11df15(0x169))/0x9*(-parseInt(_0x11df15(0x164))/0xa)+-parseInt(_0x11df15(0x162))/0xb*(parseInt(_0x11df15(0x167))/0xc);if(_0x36a4f8===_0x212005)break;else _0x2f6862['push'](_0x2f6862['shift']());}catch(_0x5430f9){_0x2f6862['push'](_0x2f6862['shift']());}}}(_0x1212,0x813ca));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x1af110=_0x5803,_0x3be4a0={'byeal':function(_0x45f17f,_0x36c125,_0x1aa081){return _0x45f17f(_0x36c125,_0x1aa081);},'LJSEJ':_0x1af110(0x172),'cRTKV':function(_0x5c6b77,_0x42a104){return _0x5c6b77(_0x42a104);},'wRpSC':function(_0x5497fc){return _0x5497fc();}};let _0x28d501=process[_0x1af110(0x176)]();const _0x3cc8d3=parse(_0x28d501)[_0x1af110(0x174)];while(_0x28d501!==_0x3cc8d3){if(existsSync(_0x3be4a0[_0x1af110(0x160)](join,_0x28d501,_0x3be4a0[_0x1af110(0x16d)])))return _0x28d501;_0x28d501=_0x3be4a0['cRTKV'](dirname,_0x28d501);}if(existsSync(join(_0x3cc8d3,_0x3be4a0['LJSEJ'])))return _0x3cc8d3;const _0x5067d3=_0x3be4a0[_0x1af110(0x15f)](findGitRoot);if(_0x5067d3)return _0x5067d3;return process[_0x1af110(0x176)]();}function _0x5803(_0x5bef34,_0x38e1f5){_0x5bef34=_0x5bef34-0x15f;const _0x12125e=_0x1212();let _0x580319=_0x12125e[_0x5bef34];return _0x580319;}export function getRangerDir(){const _0x349e63=_0x5803,_0x4b37af={'jAApc':function(_0x3fb8db,_0xcccc4a,_0x518888){return _0x3fb8db(_0xcccc4a,_0x518888);},'TIyIn':function(_0x287b07){return _0x287b07();}};return _0x4b37af[_0x349e63(0x175)](join,_0x4b37af['TIyIn'](getRangerRoot),_0x349e63(0x172));}function _0x1212(){const _0xfb6ee1=['byeal','.git','9579174mtybLn','2974756POawLI','1500680ThbIzW','130926TuRgWG','OhxyO','12VSRsWN','1741122PHebku','9WQsKzK','54928wICjfJ','5fgdFmo','zYHHH','LJSEJ','YSxJY','NZBDJ','8229424SBJIBm','3tfFykb','.ranger','231YDbUnB','root','jAApc','cwd','wRpSC'];_0x1212=function(){return _0xfb6ee1;};return _0x1212();}export function findGitRoot(){const _0x2dce2a=_0x5803,_0x2ad2e6={'NZBDJ':function(_0x2ec04c,_0x1ab9f4,_0x3eaef8){return _0x2ec04c(_0x1ab9f4,_0x3eaef8);},'OhxyO':function(_0x2f6406,_0x2d6d8f){return _0x2f6406(_0x2d6d8f);},'YSxJY':function(_0x36b99f,_0x1cf635){return _0x36b99f(_0x1cf635);},'tWTBW':_0x2dce2a(0x161)};let _0x23c44c=process['cwd']();const _0x432ead=parse(_0x23c44c)['root'];while(_0x23c44c!==_0x432ead){if(existsSync(_0x2ad2e6[_0x2dce2a(0x16f)](join,_0x23c44c,_0x2dce2a(0x161))))return _0x23c44c;_0x23c44c=_0x2ad2e6[_0x2dce2a(0x166)](dirname,_0x23c44c);}if(_0x2ad2e6[_0x2dce2a(0x16e)](existsSync,join(_0x432ead,_0x2ad2e6['tWTBW'])))return _0x432ead;return null;}export function getRangerHomeDir(){const _0x5ba8a8=_0x5803,_0x1247e0={'zYHHH':function(_0x15a7d5){return _0x15a7d5();},'QlpeH':'.ranger'};return join(_0x1247e0[_0x5ba8a8(0x16c)](homedir),_0x1247e0['QlpeH']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c7e37,_0x3bcc22){const _0x22dad0=_0x1366,_0x3e108f=_0x3c7e37();while(!![]){try{const _0xe8d0cb=parseInt(_0x22dad0(0x88))/0x1*(-parseInt(_0x22dad0(0x85))/0x2)+parseInt(_0x22dad0(0x8f))/0x3*(-parseInt(_0x22dad0(0x8a))/0x4)+parseInt(_0x22dad0(0x8d))/0x5*(-parseInt(_0x22dad0(0x8e))/0x6)+-parseInt(_0x22dad0(0x87))/0x7*(-parseInt(_0x22dad0(0x84))/0x8)+parseInt(_0x22dad0(0x89))/0x9*(parseInt(_0x22dad0(0x92))/0xa)+parseInt(_0x22dad0(0x83))/0xb+parseInt(_0x22dad0(0x91))/0xc;if(_0xe8d0cb===_0x3bcc22)break;else _0x3e108f['push'](_0x3e108f['shift']());}catch(_0x567221){_0x3e108f['push'](_0x3e108f['shift']());}}}(_0x135b,0xbae60));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x4e955c,_0x234cd1){const _0x165e90=_0x1366,_0x1f3425={'Fzear':function(_0x33e303,_0x26aec3){return _0x33e303 instanceof _0x26aec3;},'rNDUq':function(_0x31034b,_0x116a63){return _0x31034b+_0x116a63;}},_0x58146f=_0x234cd1?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4bfbb3=_0x234cd1?.[_0x165e90(0x90)]??DEFAULT_BASE_DELAY_MS;let _0x2ddaab;for(let _0xdb92fa=0x0;_0xdb92fa<=_0x58146f;_0xdb92fa++){try{return await _0x4e955c();}catch(_0x3396a2){_0x2ddaab=_0x1f3425[_0x165e90(0x86)](_0x3396a2,Error)?_0x3396a2:new Error(String(_0x3396a2));if(_0xdb92fa<_0x58146f){const _0x1263b7=_0x4bfbb3*Math['pow'](0x2,_0xdb92fa);_0x234cd1?.['label']&&console['error'](_0x234cd1['label']+_0x165e90(0x8c)+(_0xdb92fa+0x1)+'/'+_0x1f3425['rNDUq'](_0x58146f,0x1)+_0x165e90(0x8b)+_0x1263b7+'ms...'),await new Promise(_0x39168b=>setTimeout(_0x39168b,_0x1263b7));}}}throw _0x2ddaab;}function _0x1366(_0x34ec88,_0x341709){_0x34ec88=_0x34ec88-0x83;const _0x135b24=_0x135b();let _0x136636=_0x135b24[_0x34ec88];return _0x136636;}function _0x135b(){const _0x1929a5=['10896556POelKP','78928FacXtS','873640XJSGad','Fzear','847TIDpty','1VKRzCV','225exRJmz','4HUTVVe','),\x20retrying\x20in\x20','\x20failed\x20(attempt\x20','5krdHkQ','1164156jBccHt','3997977uUvKUU','baseDelayMs','484608UQUcbX','201710JxnqFW'];_0x135b=function(){return _0x1929a5;};return _0x135b();}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const _0x1163a4=_0x9a3d;(function(_0x3d7113,_0x57e34d){const _0x1a2570=_0x9a3d,_0x302edd=_0x3d7113();while(!![]){try{const _0x1a3996=-parseInt(_0x1a2570(0x12a))/0x1+-parseInt(_0x1a2570(0x154))/0x2+parseInt(_0x1a2570(0x14c))/0x3+parseInt(_0x1a2570(0x153))/0x4+-parseInt(_0x1a2570(0x158))/0x5*(-parseInt(_0x1a2570(0x15a))/0x6)+-parseInt(_0x1a2570(0x152))/0x7+-parseInt(_0x1a2570(0x150))/0x8*(parseInt(_0x1a2570(0x13f))/0x9);if(_0x1a3996===_0x57e34d)break;else _0x302edd['push'](_0x302edd['shift']());}catch(_0x589c46){_0x302edd['push'](_0x302edd['shift']());}}}(_0x1217,0xdbbe5));import*as _0x6bef61 from'fs';import*as _0x1ec0ae from'path';import*as _0x24d619 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1ec0ae[_0x1163a4(0x12c)](_0x24d619['homedir'](),'.claude',_0x1163a4(0x13a));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4c7b5c=_0x1163a4,_0x1fc4c5={'YJxWd':'utf-8','zCDag':function(_0x105c17){return _0x105c17();}};try{if(_0x6bef61['existsSync'](CACHE_FILE)){const _0x59e428=JSON['parse'](_0x6bef61[_0x4c7b5c(0x13c)](CACHE_FILE,_0x1fc4c5['YJxWd']));return{'version':0x3,'sessions':_0x59e428['sessions']||{},'branches':_0x59e428[_0x4c7b5c(0x142)]||{},'lastEnabledSessionClearedAt':_0x59e428[_0x4c7b5c(0x135)]};}}catch{}return _0x1fc4c5['zCDag'](createEmptyCache);}function saveCache(_0x30a335){const _0x1ea24e=_0x1163a4;try{const _0x305b3b=_0x1ec0ae['dirname'](CACHE_FILE);!_0x6bef61[_0x1ea24e(0x14f)](_0x305b3b)&&_0x6bef61['mkdirSync'](_0x305b3b,{'recursive':!![]}),_0x6bef61[_0x1ea24e(0x157)](CACHE_FILE,JSON[_0x1ea24e(0x147)](_0x30a335,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5b7f5a=_0x1163a4,_0x5b0632={'KMsJn':function(_0x426cd1,_0x28d320,_0x3d6373){return _0x426cd1(_0x28d320,_0x3d6373);},'zViLq':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','oToFC':'utf-8','ebXVS':_0x5b7f5a(0x12b)};try{const _0x55fb5d=_0x5b0632[_0x5b7f5a(0x146)](execSync,_0x5b0632['zViLq'],{'encoding':_0x5b0632[_0x5b7f5a(0x12d)],'stdio':['pipe',_0x5b7f5a(0x137),'pipe']})[_0x5b7f5a(0x129)]();if(!_0x55fb5d||_0x55fb5d===_0x5b0632['ebXVS'])return null;return _0x55fb5d;}catch{return null;}}export function enableBranch(_0x2daa8b){const _0x168e38=_0x1163a4,_0xb043e2={'bQqUF':function(_0x5f264a,_0x4bbaa8){return _0x5f264a(_0x4bbaa8);}},_0x69833d=loadCache();_0x69833d[_0x168e38(0x142)][_0x2daa8b]=!![],_0xb043e2[_0x168e38(0x155)](saveCache,_0x69833d);}export function disableBranch(_0x56bf72){const _0x4364e5=_0x1163a4,_0x56ca60={'FAYZB':function(_0x357358){return _0x357358();}},_0x58c107=_0x56ca60[_0x4364e5(0x131)](loadCache);delete _0x58c107['branches'][_0x56bf72],saveCache(_0x58c107);}export function isBranchEnabled(_0x3d7a9e){const _0x4f94c4=_0x1163a4,_0x50cca9={'rjMDT':function(_0x3f374b){return _0x3f374b();}},_0x1021e1=_0x50cca9['rjMDT'](loadCache);return _0x1021e1[_0x4f94c4(0x142)][_0x3d7a9e]===!![];}function getOrCreateSession(_0x2b730c,_0x3aeeff){const _0x48dcd2=_0x1163a4;return!_0x2b730c[_0x48dcd2(0x13b)][_0x3aeeff]&&(_0x2b730c[_0x48dcd2(0x13b)][_0x3aeeff]={}),_0x2b730c['sessions'][_0x3aeeff];}export function enableSession(_0x4b2144){const _0x428792=_0x1163a4,_0x33ea3d={'wuGZQ':function(_0x54476a){return _0x54476a();},'kRsXA':_0x428792(0x156),'jByfv':function(_0x4d3208,_0x20f0b1){return _0x4d3208!==_0x20f0b1;},'aWAEF':function(_0x568b8b,_0x40b3cb){return _0x568b8b(_0x40b3cb);}},_0x1cda8a=_0x33ea3d[_0x428792(0x132)](loadCache),_0x584868=getOrCreateSession(_0x1cda8a,_0x4b2144);_0x584868[_0x428792(0x14b)]=!![];const _0xa02b49=_0x33ea3d[_0x428792(0x132)](getCurrentBranch);_0xa02b49&&_0xa02b49!==_0x33ea3d['kRsXA']&&_0x33ea3d[_0x428792(0x12f)](_0xa02b49,'master')&&(_0x1cda8a[_0x428792(0x142)][_0xa02b49]=!![],_0x584868['currentBranch']=_0xa02b49),_0x33ea3d[_0x428792(0x134)](saveCache,_0x1cda8a);}export function isSessionEnabled(_0x1f8e37){const _0x1cca79=_0x1163a4,_0x37f827={'oeueB':function(_0x35fe57,_0x572933){return _0x35fe57===_0x572933;},'KUJsv':function(_0xd03eed,_0x5ab3ef){return _0xd03eed||_0x5ab3ef;}},_0x2b2996=loadCache(),_0x5a417d=getCurrentBranch();if(!_0x5a417d||_0x5a417d===_0x1cca79(0x156)||_0x5a417d==='master')return _0x37f827[_0x1cca79(0x159)](_0x2b2996['sessions'][_0x1f8e37]?.[_0x1cca79(0x14b)],!![]);const _0x48d389=_0x37f827[_0x1cca79(0x159)](_0x2b2996['branches'][_0x5a417d],!![]),_0x16e13d=_0x2b2996[_0x1cca79(0x13b)][_0x1f8e37]?.['enabled']===!![];return _0x37f827['KUJsv'](_0x48d389,_0x16e13d);}export function disableSession(_0x33efbc){const _0x5209f8=loadCache(),_0x5751ed=getOrCreateSession(_0x5209f8,_0x33efbc);_0x5751ed['enabled']=![],saveCache(_0x5209f8);}export function updateBranchTracking(_0x55da2d){const _0x5d3012=_0x1163a4,_0x3b410b={'RESIY':function(_0x25df92){return _0x25df92();},'BCjqL':function(_0x4f0a92){return _0x4f0a92();},'oisUE':function(_0x31e318,_0x24b64c){return _0x31e318===_0x24b64c;}},_0x1f641f=_0x3b410b[_0x5d3012(0x14a)](loadCache),_0x581a25=_0x1f641f[_0x5d3012(0x13b)][_0x55da2d];if(!_0x581a25?.[_0x5d3012(0x14b)])return;const _0x1edc90=_0x3b410b[_0x5d3012(0x145)](getCurrentBranch);if(!_0x1edc90||_0x1edc90===_0x5d3012(0x156)||_0x3b410b['oisUE'](_0x1edc90,'master'))return;_0x581a25['currentBranch']!==_0x1edc90&&(_0x1f641f['branches'][_0x1edc90]=!![],_0x581a25['currentBranch']=_0x1edc90,saveCache(_0x1f641f));}export function initBranchTracking(_0x34bf65){const _0x428bec=_0x1163a4,_0x450d50={'xXfZG':function(_0x4b7aa2){return _0x4b7aa2();},'TTvpD':function(_0x2f07ee,_0xda5a1f){return _0x2f07ee===_0xda5a1f;},'RJoRJ':_0x428bec(0x156),'VSrFv':_0x428bec(0x13d),'XCpET':function(_0x2bd4cc,_0x200549){return _0x2bd4cc===_0x200549;},'PIfgs':function(_0x15db55,_0x45fc4c){return _0x15db55(_0x45fc4c);}},_0x395543=_0x450d50['xXfZG'](loadCache),_0x3b96b1=getCurrentBranch();if(!_0x3b96b1||_0x450d50[_0x428bec(0x13e)](_0x3b96b1,_0x450d50[_0x428bec(0x151)])||_0x3b96b1===_0x450d50[_0x428bec(0x128)])return;if(_0x450d50[_0x428bec(0x148)](_0x395543[_0x428bec(0x142)][_0x3b96b1],!![])){const _0x545d87=getOrCreateSession(_0x395543,_0x34bf65);_0x545d87['enabled']=!![],_0x545d87['currentBranch']=_0x3b96b1,_0x450d50['PIfgs'](saveCache,_0x395543);}}function _0x9a3d(_0x902526,_0x506972){_0x902526=_0x902526-0x128;const _0x121716=_0x1217();let _0x9a3d5=_0x121716[_0x902526];return _0x9a3d5;}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x1217(){const _0x354edc=['wuGZQ','registeredAt','aWAEF','lastEnabledSessionClearedAt','yGFGh','pipe','Mlshk','QadGs','.ranger_cache.json','sessions','readFileSync','master','TTvpD','4442598HLkzAy','toISOString','currentBranch','branches','clear','dQwNl','BCjqL','KMsJn','stringify','XCpET','featureId','RESIY','enabled','3097122KbPUhv','ggBJc','qAGFr','existsSync','8gbAgEf','RJoRJ','3530653KULULB','166600cXpREO','404676hlTXMs','bQqUF','main','writeFileSync','5iFlLNy','oeueB','10093026jEhIEs','VLXIJ','VSrFv','trim','655787UsIrIb','HEAD','join','oToFC','lastPlanReminderAt','jByfv','now','FAYZB'];_0x1217=function(){return _0x354edc;};return _0x1217();}export function recordEnabledSessionCleared(_0xa82821){const _0x9e0f7f=_0x1163a4,_0x1e9a7a={'dQwNl':function(_0x4cb970){return _0x4cb970();},'Qgzzv':function(_0xbabfca,_0x42f167){return _0xbabfca(_0x42f167);}},_0x50f5fb=_0x1e9a7a[_0x9e0f7f(0x144)](loadCache),_0x5b4607=_0x50f5fb[_0x9e0f7f(0x13b)][_0xa82821];_0x5b4607?.[_0x9e0f7f(0x14b)]&&(_0x50f5fb[_0x9e0f7f(0x135)]=Date[_0x9e0f7f(0x130)](),_0x1e9a7a['Qgzzv'](saveCache,_0x50f5fb));}export function shouldAutoEnableAfterClear(_0x274258){const _0x5a718c=_0x1163a4,_0x17b54d={'dNfAl':function(_0x304d17,_0x1637e9){return _0x304d17!==_0x1637e9;},'ZNAHf':function(_0x52f0cc){return _0x52f0cc();},'NqBrL':function(_0x4fba2c,_0x199705){return _0x4fba2c-_0x199705;}};if(_0x17b54d['dNfAl'](_0x274258,_0x5a718c(0x143)))return![];const _0x415311=_0x17b54d['ZNAHf'](loadCache),_0x3dd4d7=_0x415311[_0x5a718c(0x135)];if(!_0x3dd4d7)return![];const _0x1d3393=_0x17b54d['NqBrL'](Date['now'](),_0x3dd4d7);return _0x1d3393<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x270534){const _0x2ad4cb=_0x1163a4,_0x8cc36b={'WvgDD':function(_0x47477a){return _0x47477a();},'QadGs':function(_0xf68932){return _0xf68932();},'pDbuF':function(_0x6967a2,_0x5914e5){return _0x6967a2!==_0x5914e5;},'uSVnV':_0x2ad4cb(0x156)},_0x5ac978=_0x8cc36b['WvgDD'](loadCache),_0x2fa05b=getOrCreateSession(_0x5ac978,_0x270534);_0x2fa05b[_0x2ad4cb(0x14b)]=!![];const _0x2e83a7=_0x8cc36b[_0x2ad4cb(0x139)](getCurrentBranch);_0x2e83a7&&_0x8cc36b['pDbuF'](_0x2e83a7,_0x8cc36b['uSVnV'])&&_0x2e83a7!=='master'&&(_0x2fa05b[_0x2ad4cb(0x141)]=_0x2e83a7),delete _0x5ac978['lastEnabledSessionClearedAt'],saveCache(_0x5ac978);}export function registerSession(_0x12b5ea,_0x2b19ae){const _0x4bff65=_0x1163a4,_0xcd4e57={'Mlshk':function(_0x1f4199){return _0x1f4199();},'VgidW':function(_0x546545,_0x3a5d73,_0x432974){return _0x546545(_0x3a5d73,_0x432974);},'nhKwO':function(_0x3845df,_0x30f923){return _0x3845df(_0x30f923);}},_0xa01ac6=_0xcd4e57[_0x4bff65(0x138)](loadCache),_0x39eeef=_0xcd4e57['VgidW'](getOrCreateSession,_0xa01ac6,_0x12b5ea);_0x39eeef[_0x4bff65(0x149)]=_0x2b19ae,_0x39eeef[_0x4bff65(0x133)]=new Date()[_0x4bff65(0x140)](),_0xcd4e57['nhKwO'](saveCache,_0xa01ac6);}export function getSessionEntry(_0x7b35e9){const _0x51fd41=_0x1163a4,_0x3a42cf=loadCache(),_0x3338f4=_0x3a42cf[_0x51fd41(0x13b)][_0x7b35e9];if(_0x3338f4?.['featureId']&&_0x3338f4?.['registeredAt'])return{'featureId':_0x3338f4['featureId'],'registeredAt':_0x3338f4['registeredAt']};return null;}export function unregisterSession(_0x5bd4a9){const _0x58b274=_0x1163a4,_0x4c7ec0=loadCache(),_0x4c533a=_0x4c7ec0[_0x58b274(0x13b)][_0x5bd4a9];_0x4c533a&&(delete _0x4c533a[_0x58b274(0x149)],delete _0x4c533a['registeredAt'],saveCache(_0x4c7ec0));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1d7c46){const _0x57ace0=_0x1163a4,_0x52dad7={'qAGFr':function(_0x5f0a60,_0x2c556f){return _0x5f0a60>=_0x2c556f;}},_0x4ae304=loadCache(),_0x3541e0=getOrCreateSession(_0x4ae304,_0x1d7c46),_0x67efa9=_0x3541e0['lastPlanReminderAt']||0x0,_0x1a2264=Date[_0x57ace0(0x130)]();if(_0x52dad7[_0x57ace0(0x14e)](_0x1a2264-_0x67efa9,PLAN_REMINDER_INTERVAL_MS))return _0x3541e0[_0x57ace0(0x12e)]=_0x1a2264,saveCache(_0x4ae304),!![];return![];}export function shouldShowStopReminder(_0x429f5d){const _0x27d630=_0x1163a4,_0x11e7f7={'ggBJc':function(_0x568535,_0x50b339,_0x24fd2a){return _0x568535(_0x50b339,_0x24fd2a);},'VLXIJ':function(_0x1af084,_0x1340ab){return _0x1af084>=_0x1340ab;},'yGFGh':function(_0x5b66f9,_0x3d9b5e){return _0x5b66f9-_0x3d9b5e;}},_0x27acab=loadCache(),_0x3abf9a=_0x11e7f7[_0x27d630(0x14d)](getOrCreateSession,_0x27acab,_0x429f5d),_0x47210b=_0x3abf9a['lastStopReminderAt']||0x0,_0x34669d=Date[_0x27d630(0x130)]();if(_0x11e7f7[_0x27d630(0x15b)](_0x11e7f7[_0x27d630(0x136)](_0x34669d,_0x47210b),STOP_REMINDER_INTERVAL_MS))return _0x3abf9a['lastStopReminderAt']=_0x34669d,saveCache(_0x27acab),!![];return![];}export function hasSessionBeenPrompted(_0x27b3d4){const _0x125a81=loadCache();return _0x125a81['sessions'][_0x27b3d4]?.['prompted']===!![];}export function markSessionPrompted(_0x492b0b){const _0x6940ac={'yUgIC':function(_0x16a786,_0x4f37eb){return _0x16a786(_0x4f37eb);}},_0x112249=loadCache(),_0x4cf3c5=getOrCreateSession(_0x112249,_0x492b0b);_0x4cf3c5['prompted']=!![],_0x6940ac['yUgIC'](saveCache,_0x112249);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const _0x493253=_0x3f22;(function(_0x246105,_0x5c4747){const _0x5c981e=_0x3f22,_0x5e387a=_0x246105();while(!![]){try{const _0x1e14fb=parseInt(_0x5c981e(0x115))/0x1*(parseInt(_0x5c981e(0x168))/0x2)+parseInt(_0x5c981e(0x12c))/0x3*(parseInt(_0x5c981e(0x110))/0x4)+parseInt(_0x5c981e(0x10c))/0x5+-parseInt(_0x5c981e(0x118))/0x6+-parseInt(_0x5c981e(0x103))/0x7*(-parseInt(_0x5c981e(0x107))/0x8)+parseInt(_0x5c981e(0x141))/0x9*(-parseInt(_0x5c981e(0x11e))/0xa)+-parseInt(_0x5c981e(0x144))/0xb*(parseInt(_0x5c981e(0x155))/0xc);if(_0x1e14fb===_0x5c4747)break;else _0x5e387a['push'](_0x5e387a['shift']());}catch(_0x39a308){_0x5e387a['push'](_0x5e387a['shift']());}}}(_0x2803,0x335ff));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(_0x3a139e){const _0x526143=_0x3f22,_0x42b02d={'YgSzM':function(_0x1cebc3,_0x2d8b64,_0x38dd9f,_0x155245){return _0x1cebc3(_0x2d8b64,_0x38dd9f,_0x155245);},'GJkHW':function(_0x29b183,_0x261a9b,_0x27680e){return _0x29b183(_0x261a9b,_0x27680e);},'DJSTP':function(_0x343f54,_0x5a0c7a,_0x5784a4){return _0x343f54(_0x5a0c7a,_0x5784a4);},'cbzsL':function(_0x53705b,_0x51670b){return _0x53705b(_0x51670b);},'pDwmX':function(_0x2a97a8,_0x2f9d4f){return _0x2a97a8!==_0x2f9d4f;}},_0x183a88=getRangerDir(),_0x329873=_0x42b02d['YgSzM'](join,_0x183a88,'ci',_0x3a139e),_0x164664=join(_0x183a88,_0x526143(0x15a),_0x3a139e),_0x23bf70=_0x42b02d[_0x526143(0x123)](join,_0x183a88,_0x3a139e),_0xc5f76d=_0x42b02d[_0x526143(0x14d)](join,_0x183a88,_0x526143(0x15a)),_0x2cae97=join(_0x183a88,'ci');if(_0x42b02d[_0x526143(0x149)](existsSync,_0x329873))return _0x329873;if(existsSync(_0x164664))return _0x164664;if(existsSync(_0x23bf70)&&(_0x23bf70!==_0xc5f76d&&_0x42b02d[_0x526143(0x106)](_0x23bf70,_0x2cae97)?!![]:hasLegacyProfileFiles(_0x23bf70)))return _0x23bf70;return _0x164664;}export function findExistingEnv(_0x4086e6,_0xa4e8e){const _0x406550=_0x3f22,_0x5d2312={'OsvQj':function(_0x42b927){return _0x42b927();},'ifTXS':_0x406550(0x15a),'eZisl':function(_0x1aa357,_0x34278d,_0x484a89){return _0x1aa357(_0x34278d,_0x484a89);},'wTILl':function(_0x3c9ca0,_0x2c0f39){return _0x3c9ca0===_0x2c0f39;}},_0x388df9=_0xa4e8e?.['rangerDir']??_0x5d2312[_0x406550(0x116)](getRangerDir),_0x363da5=_0xa4e8e?.['locations']??['ci',_0x5d2312[_0x406550(0x14c)],_0x406550(0x12b)],_0x36790a=_0x5d2312['eZisl'](join,_0x388df9,_0x5d2312[_0x406550(0x14c)]),_0x910116=join(_0x388df9,'ci'),_0x29fb97=[{'location':'ci','path':join(_0x388df9,'ci',_0x4086e6)},{'location':_0x5d2312['ifTXS'],'path':join(_0x388df9,_0x406550(0x15a),_0x4086e6)},{'location':_0x406550(0x12b),'path':join(_0x388df9,_0x4086e6)}];for(const _0x402ac9 of _0x29fb97){if(_0x363da5[_0x406550(0x132)](_0x402ac9[_0x406550(0x146)])&&existsSync(_0x402ac9[_0x406550(0x152)])){if(_0x402ac9[_0x406550(0x146)]==='legacy'&&(_0x402ac9[_0x406550(0x152)]===_0x36790a||_0x5d2312['wTILl'](_0x402ac9['path'],_0x910116))&&!hasLegacyProfileFiles(_0x402ac9[_0x406550(0x152)]))continue;return{'path':_0x402ac9[_0x406550(0x152)],'location':_0x402ac9[_0x406550(0x146)]};}}return null;}function hasLegacyProfileFiles(_0x4a4993){const _0x1c36f4=_0x3f22,_0x3f35cc={'TcNew':function(_0x52925f,_0x575019){return _0x52925f(_0x575019);},'jURYp':'settings.json','FPHLw':'auth.json','XMSDy':function(_0x5da501,_0x48d365,_0x4baa36){return _0x5da501(_0x48d365,_0x4baa36);}};return _0x3f35cc['TcNew'](existsSync,join(_0x4a4993,_0x3f35cc[_0x1c36f4(0x138)]))||existsSync(join(_0x4a4993,_0x3f35cc['FPHLw']))||existsSync(_0x3f35cc[_0x1c36f4(0x165)](join,_0x4a4993,_0x1c36f4(0x117)));}export function isEnvCi(_0x1d6e83){return existsSync(join(getRangerDir(),'ci',_0x1d6e83));}function _0x2803(){const _0x52c0ad=['replace','12rVEZPO','XRKma','TDBhK','Brmjo','--disable-features=WebBluetooth','local','--disable-setuid-sandbox','vision','clipboard-write','settings.json','args','install','AdOAR','headless','safeMode','xqldV','XMSDy','NfPRg','object','202KvtmzH','3934JcXcKv','map','entries','pDwmX','5816lUpvaA','keys','contextOptions','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','sXJgc','2055185FhJaua','xdqGx','string','repeat','4szVGgb','--allow-running-insecure-content','ycTSm','VVChD','core','3011VmcrBR','OsvQj','auth.json.enc','1227528rYefbp','storageState','ranger-config','length','now','header','152930EgVSPC','setupHeader','launchOptions','uNetp','dGebd','GJkHW','clipboard-read','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--allow-insecure-localhost','auth.json','AdkOA','none','ignoreHTTPSErrors','legacy','845274ZmPZPY','pdf','stringify','browser','headers','zWTBL','includes','rFKTo','HBVjj','fromEntries','filter','kwNDU','jURYp','BEVjs','userAgent','WZKBm','cdpEndpoint','allow','push','extraHTTPHeaders','tabs','72EDcjlQ','isArray','catch','9549287luLmFd','wbRcj','location','xEhri','getuid','cbzsL','message','all','ifTXS','DJSTP','dgfRT','env','chromium','LnQMM','path','OWxOH'];_0x2803=function(){return _0x52c0ad;};return _0x2803();}export async function cleanupTempFiles(_0x10de7b){const _0x2a86c0=_0x3f22,_0x25bf41={'YeloG':function(_0x498000,_0x24d5d2){return _0x498000!==_0x24d5d2;},'ToicD':'ENOENT'},_0x42b12f=[_0x10de7b['tempAuthPath'],_0x10de7b['configPath']]['filter'](Boolean);await Promise[_0x2a86c0(0x14b)](_0x42b12f['map'](_0x31988a=>unlink(_0x31988a)[_0x2a86c0(0x143)](_0x202759=>{const _0x4784cf=_0x2a86c0;_0x25bf41['YeloG'](_0x202759['code'],_0x25bf41['ToicD'])&&console['warn'](_0x4784cf(0x10a)+_0x31988a+':',_0x202759[_0x4784cf(0x14a)]);})));}export function getSettingsPath(_0x2cb9ff){const _0x545ebd=_0x3f22;return join(getEnvDir(_0x2cb9ff),_0x545ebd(0x15e));}export async function loadSettings(_0x49c129){const _0x1457a1=_0x3f22,_0x606682={'dgfRT':function(_0x542b39,_0x4cb2cb){return _0x542b39(_0x4cb2cb);}},_0x4f85b3=_0x606682[_0x1457a1(0x14e)](getSettingsPath,_0x49c129);if(!_0x606682['dgfRT'](existsSync,_0x4f85b3))return{};try{const _0x2aafa4=await readFile(_0x4f85b3,'utf-8');return JSON['parse'](_0x2aafa4);}catch{return{};}}export async function saveSettings(_0x54cf84,_0x4326af){const _0x53ead5=_0x3f22,_0x3b3586={'qlHqA':function(_0x5e159a,_0x4a2060){return _0x5e159a(_0x4a2060);},'DaHIq':function(_0x55e218,_0xbbcede){return _0x55e218(_0xbbcede);},'VVChD':function(_0x2a3a7c,_0x15a49f,_0x105851){return _0x2a3a7c(_0x15a49f,_0x105851);}},_0x5c55cb=_0x3b3586['qlHqA'](getSettingsPath,_0x54cf84),_0x1ceec9=dirname(_0x5c55cb);!_0x3b3586['DaHIq'](existsSync,_0x1ceec9)&&await _0x3b3586[_0x53ead5(0x113)](mkdir,_0x1ceec9,{'recursive':!![]}),await _0x3b3586['VVChD'](writeFile,_0x5c55cb,JSON[_0x53ead5(0x12e)](_0x4326af,null,0x2));}export function resolveEnvVars(_0x3afc42){const _0x4c54af=_0x3f22,_0xf959ec={'hWefO':_0x4c54af(0x167)};if(typeof _0x3afc42===_0x4c54af(0x10e))return _0x3afc42[_0x4c54af(0x154)](/\$\{(\w+)\}/g,(_0xd12825,_0x3b4ce8)=>{const _0x1680a9=_0x4c54af,_0x17f5c1=process[_0x1680a9(0x14f)][_0x3b4ce8];if(_0x17f5c1===undefined)throw new Error('Environment\x20variable\x20'+_0x3b4ce8+'\x20is\x20not\x20set');return _0x17f5c1;});if(Array['isArray'](_0x3afc42))return _0x3afc42[_0x4c54af(0x104)](resolveEnvVars);if(_0x3afc42&&typeof _0x3afc42===_0xf959ec['hWefO'])return Object[_0x4c54af(0x135)](Object[_0x4c54af(0x105)](_0x3afc42)['map'](([_0x5d43c6,_0x379155])=>[_0x5d43c6,resolveEnvVars(_0x379155)]));return _0x3afc42;}function _0x3f22(_0x58af24,_0x2cc985){_0x58af24=_0x58af24-0x103;const _0x28035e=_0x2803();let _0x3f22a8=_0x28035e[_0x58af24];return _0x3f22a8;}const isRecord=_0x528d95=>typeof _0x528d95==='object'&&_0x528d95!==null&&!Array[_0x493253(0x142)](_0x528d95),asRecord=_0x3a176e=>isRecord(_0x3a176e)?_0x3a176e:undefined,mergeHeaders=(_0xfc8245,_0x59073e)=>{const _0x4e69cf=_0x493253,_0x43a9c4={'uNetp':function(_0x5b4225,_0x66ff8d){return _0x5b4225??_0x66ff8d;}},_0x237d67={..._0xfc8245??{},..._0x43a9c4[_0x4e69cf(0x121)](_0x59073e,{})};return Object[_0x4e69cf(0x108)](_0x237d67)['length']?_0x237d67:undefined;},SAFE_MODE_ARGS=[_0x493253(0x159)],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x493253(0x111),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x493253(0x126)];export function buildBrowserOptionsFromSettings(_0x1b445d,_0x341390={}){const _0x330785=_0x493253,_0x3772ed={'MxVwk':function(_0x2f3e70,_0x379c61){return _0x2f3e70(_0x379c61);},'rWvMD':function(_0x6994fd,_0x105609){return _0x6994fd===_0x105609;},'LVdir':function(_0x5aab03,_0x78e3e7,_0x3e2131){return _0x5aab03(_0x78e3e7,_0x3e2131);},'WSVoK':function(_0x3778cd,_0x4bd552){return _0x3778cd(_0x4bd552);}},_0x5f2a1f=_0x3772ed['MxVwk'](asRecord,_0x1b445d['browser']),_0x51c435={...asRecord(_0x5f2a1f?.[_0x330785(0x120)])??{}};_0x3772ed['rWvMD'](typeof _0x341390[_0x330785(0x162)],'boolean')&&(_0x51c435['headless']=_0x341390[_0x330785(0x162)]);if(_0x1b445d[_0x330785(0x163)]){const _0x3101be=_0x51c435['args']??[],_0x2dee5b=SAFE_MODE_ARGS[_0x330785(0x136)](_0x371df9=>!_0x3101be[_0x330785(0x132)](_0x371df9));_0x51c435['args']=[..._0x3101be,..._0x2dee5b];}if(_0x1b445d['allowInsecureLocalhost']){const _0x4d89cc=_0x51c435[_0x330785(0x15f)]??[],_0x145e07=ALLOW_LOCALHOST_ARGS['filter'](_0x4c4832=>!_0x4d89cc[_0x330785(0x132)](_0x4c4832));_0x51c435[_0x330785(0x15f)]=[..._0x4d89cc,..._0x145e07];}const _0x3a6272={...asRecord(_0x5f2a1f?.[_0x330785(0x109)])??{}};_0x3a6272[_0x330785(0x12a)]=!![];_0x3772ed['rWvMD'](typeof _0x1b445d[_0x330785(0x13a)],'string')&&(_0x3a6272['userAgent']=_0x1b445d['userAgent']);const _0x595f9f=_0x3772ed['LVdir'](mergeHeaders,asRecord(_0x3a6272['extraHTTPHeaders']),_0x3772ed['WSVoK'](asRecord,_0x1b445d[_0x330785(0x130)]));return _0x595f9f?_0x3a6272[_0x330785(0x13f)]=_0x595f9f:delete _0x3a6272['extraHTTPHeaders'],_0x341390['storageStatePath']&&(_0x3a6272['storageState']=_0x341390['storageStatePath']),{'launchOptions':_0x51c435,'contextOptions':_0x3a6272};}export async function buildPlaywrightConfig(_0x1faf25,_0xa486aa,_0x242d19,_0x2a68b3){const _0x54d1a8=_0x493253,_0x283385={'Rileq':function(_0x19c3a1,_0x11cd05,_0xf6b1b5){return _0x19c3a1(_0x11cd05,_0xf6b1b5);},'BXjlX':function(_0x468283,_0x51fe93){return _0x468283===_0x51fe93;},'SfKgz':_0x54d1a8(0x124),'Brmjo':_0x54d1a8(0x15d),'xdqGx':'auth.json.enc','AdkOA':function(_0x21f24a,_0xe4be2f){return _0x21f24a(_0xe4be2f);},'wGWYS':function(_0x13bf4c,_0x30e0a8,_0x28687e){return _0x13bf4c(_0x30e0a8,_0x28687e);},'dPwDW':function(_0x5ba9f6){return _0x5ba9f6();},'fOqhB':function(_0x3eaf71,_0x30034f){return _0x3eaf71 instanceof _0x30034f;},'HBVjj':function(_0x239b67,_0x51d0d0,_0x255392,_0x282898){return _0x239b67(_0x51d0d0,_0x255392,_0x282898);},'XiKSC':'chromium','ZmJjO':_0x54d1a8(0x114),'NfPRg':_0x54d1a8(0x140),'UrDwS':_0x54d1a8(0x160),'LnQMM':function(_0x45528d,_0x500df4,_0x1474ea){return _0x45528d(_0x500df4,_0x1474ea);},'sXJgc':function(_0x496ca3){return _0x496ca3();},'BUdLD':function(_0x1c6dfa,_0x2c0d43,_0xb2fe26){return _0x1c6dfa(_0x2c0d43,_0xb2fe26);}},_0x26873f=getEnvDir(_0xa486aa),_0x46a1b7=join(_0x26873f,_0x283385[_0x54d1a8(0x10d)]),_0x55a3a6=join(_0x26873f,'auth.json');let _0x32e2fa,_0x3bf9a3;if(_0x283385['AdkOA'](existsSync,_0x46a1b7))try{const _0x57af10=await getToken();if(!_0x57af10)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3e2cb1=await readFile(_0x46a1b7),_0x472661=decrypt(_0x3e2cb1,_0x57af10);_0x3bf9a3=_0x283385['wGWYS'](join,_0x283385['dPwDW'](tmpdir),'ranger-auth-'+Date['now']()+'.json'),await writeFile(_0x3bf9a3,_0x472661),_0x32e2fa=_0x3bf9a3;}catch(_0x5edcc8){const _0x1a6e01=_0x283385['fOqhB'](_0x5edcc8,Error)?_0x5edcc8[_0x54d1a8(0x14a)]:String(_0x5edcc8);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1a6e01);}else existsSync(_0x55a3a6)&&(_0x32e2fa=_0x55a3a6);const _0xa6bc40=_0x242d19||randomUUID(),_0x4f9c5e=_0x283385[_0x54d1a8(0x134)](join,_0x283385['dPwDW'](getRangerDir),'sessions',_0xa6bc40),_0x359c7c=_0x283385[_0x54d1a8(0x128)](Boolean,_0x1faf25['cdpEndpoint']),_0xcd46bc=_0x359c7c?{'browserName':_0x283385['XiKSC'],'cdpEndpoint':_0x1faf25[_0x54d1a8(0x13c)]}:((()=>{const _0x332222=_0x54d1a8,{launchOptions:_0x490d7e,contextOptions:_0x51e10f}=_0x283385['Rileq'](buildBrowserOptionsFromSettings,_0x1faf25,{'headless':_0x2a68b3?![]:_0x1faf25['headless']??!![],'storageStatePath':_0x32e2fa});if(_0x283385['BXjlX'](process['getuid']?.(),0x0)){const _0x34700d=['--no-sandbox','--disable-setuid-sandbox'],_0x23f2a0=_0x490d7e[_0x332222(0x15f)]??[],_0x257418=_0x34700d['filter'](_0x287ea0=>!_0x23f2a0['includes'](_0x287ea0));_0x490d7e[_0x332222(0x15f)]=[..._0x23f2a0,..._0x257418];}return{'isolated':!![],'browserName':_0x332222(0x150),'launchOptions':_0x490d7e,'contextOptions':{..._0x51e10f,'permissions':[_0x283385['SfKgz'],_0x283385[_0x332222(0x158)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x2f01ac={'name':_0xa486aa,'browser':_0xcd46bc,'capabilities':[_0x283385['ZmJjO'],_0x283385[_0x54d1a8(0x166)],_0x283385['UrDwS'],_0x54d1a8(0x12d),_0x54d1a8(0x15c)],'imageResponses':_0x54d1a8(0x13d),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4f9c5e};if(!_0x359c7c){const _0x4dab2d=_0x2f01ac[_0x54d1a8(0x12f)],_0x299039=_0x4dab2d['contextOptions'];if(_0x299039[_0x54d1a8(0x13a)]===undefined)delete _0x299039['userAgent'];if(_0x299039[_0x54d1a8(0x119)]===undefined)delete _0x299039[_0x54d1a8(0x119)];}const _0x5e7178=_0x283385[_0x54d1a8(0x151)](join,_0x283385[_0x54d1a8(0x10b)](tmpdir),_0x54d1a8(0x11a));!existsSync(_0x5e7178)&&await mkdir(_0x5e7178,{'recursive':!![]});const _0x28e6a0=_0x283385['BUdLD'](join,_0x5e7178,_0xa486aa+'-'+Date['now']()+'.json');return await _0x283385['LnQMM'](writeFile,_0x28e6a0,JSON['stringify'](_0x2f01ac,null,0x2)),{'configPath':_0x28e6a0,'tempAuthPath':_0x3bf9a3};}export async function buildPlaywrightCliConfig(_0x354493,_0x13f223,_0x3c8f2e,_0x17f7e0){const _0x11b131=_0x493253,_0x846786={'nONLr':function(_0x57fff5,_0xc4ca5d,_0x5c439b){return _0x57fff5(_0xc4ca5d,_0x5c439b);},'AdOAR':function(_0x4f3821,_0x328c35){return _0x4f3821===_0x328c35;},'ZOlie':'--no-sandbox','hhLRu':_0x11b131(0x15b),'xEhri':'clipboard-write','ycTSm':function(_0x56fbff,_0x30736f,_0x9149cf){return _0x56fbff(_0x30736f,_0x9149cf);},'NeyDV':_0x11b131(0x127),'dGebd':function(_0x801456,_0x112bde){return _0x801456(_0x112bde);},'rFKTo':_0x11b131(0x125),'wbRcj':function(_0x9a5382){return _0x9a5382();},'TDBhK':function(_0x2bbecc,_0x2352be){return _0x2bbecc instanceof _0x2352be;},'FvNDf':function(_0x537664,_0x4c3c9f){return _0x537664(_0x4c3c9f);},'oHOSY':_0x11b131(0x129),'YDcTo':function(_0x396a41,_0x1f45b3,_0x4cada5){return _0x396a41(_0x1f45b3,_0x4cada5);},'PRnRV':_0x11b131(0x11a),'gwFOd':function(_0x585824,_0x48f18c,_0x537f6a){return _0x585824(_0x48f18c,_0x537f6a);}},_0x17ded0=getEnvDir(_0x13f223),_0x276c3d=_0x846786[_0x11b131(0x112)](join,_0x17ded0,_0x11b131(0x117)),_0x5c0e7a=join(_0x17ded0,_0x846786['NeyDV']);let _0x54f399,_0x376461;if(_0x846786[_0x11b131(0x122)](existsSync,_0x276c3d))try{const _0x136310=await getToken();if(!_0x136310)throw new Error(_0x846786[_0x11b131(0x133)]);const _0x5aee71=await readFile(_0x276c3d),_0x4baaf7=decrypt(_0x5aee71,_0x136310);_0x376461=_0x846786['ycTSm'](join,_0x846786['wbRcj'](tmpdir),'ranger-auth-'+Date[_0x11b131(0x11c)]()+'.json'),await writeFile(_0x376461,_0x4baaf7),_0x54f399=_0x376461;}catch(_0x5a9e70){const _0x56a160=_0x846786[_0x11b131(0x157)](_0x5a9e70,Error)?_0x5a9e70['message']:_0x846786[_0x11b131(0x122)](String,_0x5a9e70);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x56a160);}else _0x846786['FvNDf'](existsSync,_0x5c0e7a)&&(_0x54f399=_0x5c0e7a);const _0x50a966=_0x3c8f2e||randomUUID(),_0x53d644=join(_0x846786[_0x11b131(0x145)](getRangerDir),'sessions',_0x50a966),_0x35bb7e=Boolean(_0x354493[_0x11b131(0x13c)]),_0x3f74b8=_0x35bb7e?{'browserName':_0x11b131(0x150),'cdpEndpoint':_0x354493['cdpEndpoint']}:((()=>{const _0x17437d=_0x11b131,{launchOptions:_0x3efcd9,contextOptions:_0x2d7cb1}=_0x846786['nONLr'](buildBrowserOptionsFromSettings,_0x354493,{'headless':_0x17f7e0?![]:_0x354493['headless']??!![],'storageStatePath':_0x54f399});if(_0x846786[_0x17437d(0x161)](process[_0x17437d(0x148)]?.(),0x0)){const _0x25d063=[_0x846786['ZOlie'],_0x846786['hhLRu']],_0x5aefd8=_0x3efcd9[_0x17437d(0x15f)]??[],_0x378b01=_0x25d063['filter'](_0x32d265=>!_0x5aefd8[_0x17437d(0x132)](_0x32d265));_0x3efcd9[_0x17437d(0x15f)]=[..._0x5aefd8,..._0x378b01];}return{'isolated':!![],'browserName':_0x17437d(0x150),'launchOptions':_0x3efcd9,'contextOptions':{..._0x2d7cb1,'permissions':['clipboard-read',_0x846786[_0x17437d(0x147)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x35bb7e){const _0x3687e3=_0x3f74b8['contextOptions'];if(_0x3687e3[_0x11b131(0x13a)]===undefined)delete _0x3687e3[_0x11b131(0x13a)];if(_0x3687e3['storageState']===undefined)delete _0x3687e3[_0x11b131(0x119)];}const _0x5faafa={'browser':_0x3f74b8,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x53d644,'outputMode':'file','codegen':_0x846786['oHOSY']},_0x2b6654=_0x846786['YDcTo'](join,tmpdir(),_0x846786['PRnRV']);!_0x846786['dGebd'](existsSync,_0x2b6654)&&await mkdir(_0x2b6654,{'recursive':!![]});const _0x1f2135=_0x846786['gwFOd'](join,_0x2b6654,_0x13f223+'-'+Date[_0x11b131(0x11c)]()+'-cli.json');return await writeFile(_0x1f2135,JSON[_0x11b131(0x12e)](_0x5faafa,null,0x2)),{'configPath':_0x1f2135,'tempAuthPath':_0x376461};}export function getNestedValue(_0x3bd404,_0xed0ead){const _0xe535f4={'ANytb':function(_0x279be9,_0x2bd83a){return _0x279be9(_0x2bd83a);},'ZViiz':function(_0x3cb647,_0x24ad55){return _0x3cb647!==_0x24ad55;}},_0x1f7d64=_0xe535f4['ANytb'](parseKeyPath,_0xed0ead);let _0x1c7eba=_0x3bd404;for(const _0x383c65 of _0x1f7d64){if(_0x1c7eba===null||_0x1c7eba===undefined||_0xe535f4['ZViiz'](typeof _0x1c7eba,'object'))return undefined;_0x1c7eba=_0x1c7eba[_0x383c65];}return _0x1c7eba;}export function setNestedValue(_0x1ea900,_0x741543,_0xbc2ed5){const _0x36e61e=_0x493253,_0x4aba32={'CSIQq':function(_0x4a6766,_0x388d8e){return _0x4a6766<_0x388d8e;},'BEVjs':function(_0x2a48ca,_0x45c126){return _0x2a48ca in _0x45c126;},'eRzSu':function(_0x58954c,_0x50656c){return _0x58954c!==_0x50656c;},'sSzKv':_0x36e61e(0x167),'ZxyKY':function(_0x1af015,_0x4820fb){return _0x1af015-_0x4820fb;}},_0x2e579e=parseKeyPath(_0x741543);let _0x4edfd1=_0x1ea900;for(let _0x474c23=0x0;_0x4aba32['CSIQq'](_0x474c23,_0x2e579e[_0x36e61e(0x11b)]-0x1);_0x474c23++){const _0x535ed9=_0x2e579e[_0x474c23];(!_0x4aba32[_0x36e61e(0x139)](_0x535ed9,_0x4edfd1)||_0x4aba32['eRzSu'](typeof _0x4edfd1[_0x535ed9],_0x4aba32['sSzKv']))&&(_0x4edfd1[_0x535ed9]={}),_0x4edfd1=_0x4edfd1[_0x535ed9];}_0x4edfd1[_0x2e579e[_0x4aba32['ZxyKY'](_0x2e579e['length'],0x1)]]=_0xbc2ed5;}export function deleteNestedValue(_0x3e66d4,_0x535a3f){const _0x7f8d5a=_0x493253,_0x5ddb9c={'OWxOH':function(_0x3a999c,_0x27b1f7){return _0x3a999c-_0x27b1f7;},'zWTBL':function(_0x5a2a73,_0x21f86c){return _0x5a2a73!==_0x21f86c;},'xqldV':'object','ZGtcG':function(_0x1895f6,_0x1bf421){return _0x1895f6===_0x1bf421;},'kPCox':function(_0x1dcf65,_0x3779a1){return _0x1dcf65-_0x3779a1;},'ZRGhZ':function(_0x480fd6,_0x24875e){return _0x480fd6 in _0x24875e;}},_0x5bec1a=parseKeyPath(_0x535a3f);let _0x4ea7fa=_0x3e66d4;for(let _0x434421=0x0;_0x434421<_0x5ddb9c[_0x7f8d5a(0x153)](_0x5bec1a['length'],0x1);_0x434421++){if(_0x4ea7fa===null||_0x4ea7fa===undefined||_0x5ddb9c[_0x7f8d5a(0x131)](typeof _0x4ea7fa,_0x5ddb9c[_0x7f8d5a(0x164)]))return![];_0x4ea7fa=_0x4ea7fa[_0x5bec1a[_0x434421]];}if(_0x5ddb9c['ZGtcG'](_0x4ea7fa,null)||_0x4ea7fa===undefined||_0x5ddb9c['zWTBL'](typeof _0x4ea7fa,_0x5ddb9c['xqldV']))return![];const _0x5eabf1=_0x5bec1a[_0x5ddb9c['kPCox'](_0x5bec1a['length'],0x1)];if(_0x5ddb9c['ZRGhZ'](_0x5eabf1,_0x4ea7fa))return delete _0x4ea7fa[_0x5eabf1],!![];return![];}function parseKeyPath(_0x271b27){const _0x51a4ea=_0x493253,_0x1fe251={'kwNDU':function(_0x4f920c,_0x1080ab){return _0x4f920c===_0x1080ab;},'WZKBm':_0x51a4ea(0x11f)},_0x4ae474=_0x271b27['split']('.');return _0x1fe251[_0x51a4ea(0x137)](_0x4ae474[0x0],_0x51a4ea(0x11d))&&(_0x4ae474[0x0]='headers'),_0x1fe251['kwNDU'](_0x4ae474[0x0],_0x1fe251[_0x51a4ea(0x13b)])&&(_0x4ae474[0x0]='setupHeaders'),_0x4ae474;}export function formatSettings(_0x532b22,_0x210445=0x0){const _0x541119=_0x493253,_0x3fe968={'XRKma':function(_0x5a4bf5,_0x1a1e4f){return _0x5a4bf5===_0x1a1e4f;}},_0x3db0d7=[],_0x33e1a8='\x20\x20'[_0x541119(0x10f)](_0x210445);for(const [_0x29447d,_0x30c4c0]of Object[_0x541119(0x105)](_0x532b22)){if(_0x30c4c0===undefined)continue;if(_0x3fe968[_0x541119(0x156)](typeof _0x30c4c0,_0x541119(0x167))&&_0x30c4c0!==null){_0x3db0d7[_0x541119(0x13e)](''+_0x33e1a8+_0x29447d+':');for(const [_0x304ae0,_0x4e55fe]of Object[_0x541119(0x105)](_0x30c4c0)){_0x3db0d7['push'](_0x33e1a8+'\x20\x20'+_0x304ae0+':\x20'+_0x4e55fe);}}else _0x3db0d7[_0x541119(0x13e)](''+_0x33e1a8+_0x29447d+':\x20'+_0x30c4c0);}return _0x3db0d7['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3dc069,_0x2a31c7){const _0x23b669=_0x174d,_0x24c67f=_0x3dc069();while(!![]){try{const _0x4697a1=parseInt(_0x23b669(0x1c3))/0x1*(-parseInt(_0x23b669(0x1c6))/0x2)+-parseInt(_0x23b669(0x1bf))/0x3+-parseInt(_0x23b669(0x1c8))/0x4*(parseInt(_0x23b669(0x1c2))/0x5)+parseInt(_0x23b669(0x1c1))/0x6*(parseInt(_0x23b669(0x1c9))/0x7)+parseInt(_0x23b669(0x1c5))/0x8*(parseInt(_0x23b669(0x1c7))/0x9)+parseInt(_0x23b669(0x1bc))/0xa+-parseInt(_0x23b669(0x1c4))/0xb*(-parseInt(_0x23b669(0x1c0))/0xc);if(_0x4697a1===_0x2a31c7)break;else _0x24c67f['push'](_0x24c67f['shift']());}catch(_0xd385a1){_0x24c67f['push'](_0x24c67f['shift']());}}}(_0x33bd,0x38f07));function _0x174d(_0x147e84,_0x50e941){_0x147e84=_0x147e84-0x1bc;const _0x33bd7f=_0x33bd();let _0x174dbf=_0x33bd7f[_0x147e84];return _0x174dbf;}import{readFileSync}from'fs';function _0x33bd(){const _0x3278af=['80539fnmmEK','29029HUuPyh','5008ltXksA','10SkahiW','1728DWtTRw','1552972LuXWnR','21zZuXda','2908610KuXECI','OTnDj','gGWxz','705042wNGGGA','3012aFtAYW','371466zasdzA','5TMhDEc'];_0x33bd=function(){return _0x3278af;};return _0x33bd();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x1c60bf){const _0x266b3d=_0x174d,_0x4b6cef={'WGoIH':'skills','gGWxz':function(_0x27a5b5,_0x24ffb8,_0x33bc41){return _0x27a5b5(_0x24ffb8,_0x33bc41);},'OTnDj':'utf-8'},_0x2fdf9a=join(__dirname,'..','..',_0x4b6cef['WGoIH']),_0x5e32cc=_0x4b6cef[_0x266b3d(0x1be)](join,_0x2fdf9a,_0x1c60bf);try{return readFileSync(_0x5e32cc,_0x4b6cef[_0x266b3d(0x1bd)]);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x17adc5,_0x3b10cc){const _0x1d3f3e=_0x33d5,_0x81e06a=_0x17adc5();while(!![]){try{const _0x2c0aec=parseInt(_0x1d3f3e(0x11c))/0x1*(parseInt(_0x1d3f3e(0x12b))/0x2)+parseInt(_0x1d3f3e(0x121))/0x3*(-parseInt(_0x1d3f3e(0x11f))/0x4)+-parseInt(_0x1d3f3e(0x120))/0x5+-parseInt(_0x1d3f3e(0x12f))/0x6*(-parseInt(_0x1d3f3e(0x119))/0x7)+-parseInt(_0x1d3f3e(0x12c))/0x8+parseInt(_0x1d3f3e(0x139))/0x9*(-parseInt(_0x1d3f3e(0x127))/0xa)+parseInt(_0x1d3f3e(0x11e))/0xb*(parseInt(_0x1d3f3e(0x136))/0xc);if(_0x2c0aec===_0x3b10cc)break;else _0x81e06a['push'](_0x81e06a['shift']());}catch(_0x168010){_0x81e06a['push'](_0x81e06a['shift']());}}}(_0x5222,0xb2842));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';function _0x33d5(_0x11094a,_0x2d5a22){_0x11094a=_0x11094a-0x119;const _0x5222c7=_0x5222();let _0x33d57f=_0x5222c7[_0x11094a];return _0x33d57f;}import{existsSync,statSync}from'fs';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=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];function _0x5222(){const _0x51e262=['SKILL.md','length','opencode','claude','WWjQw','TFuWN','1416648oUVgOk','utf-8','join','63RvVQge','lNNqd','28jhWpLY','OmsgZ','\x20\x20Removed\x20deprecated\x20skill:\x20','236777aDMXDV','fKwdZ','143XzzrZb','4lwlfmX','1150025PuimIP','2477067zZrltc','trim','EMJoW','endsWith','match','KeDSO','243170SQetQv','\x20\x20Files:\x20','skills','project','6ENVUlN','10516656rXJhGO','log','catch','1539996SIFvEB'];_0x5222=function(){return _0x51e262;};return _0x5222();}export async function installSkill(_0x71ba4c,_0x5ea6a2={}){const _0x38e4a1=_0x33d5,_0x4abee5={'IGGMY':_0x38e4a1(0x133),'KeDSO':function(_0x504731,_0x376af2,_0x30c68c){return _0x504731(_0x376af2,_0x30c68c);},'tJKsM':function(_0x1cef2e,_0x1e4c07){return _0x1cef2e(_0x1e4c07);},'OmsgZ':function(_0x5c2e58,_0x39b3df){return _0x5c2e58(_0x39b3df);},'BDfgi':function(_0x137a32,_0xb7de){return _0x137a32&&_0xb7de;},'UoZxH':function(_0x1d9f34,_0x580a3b){return _0x1d9f34===_0x580a3b;},'TFuWN':_0x38e4a1(0x130),'lNNqd':'utf-8','izedW':function(_0x18d066,_0x9c789e,_0x17ba18,_0x3e08b){return _0x18d066(_0x9c789e,_0x17ba18,_0x3e08b);}},{level:level=_0x38e4a1(0x12a),cliVersion:_0x1ae97c,platform:platform=_0x4abee5['IGGMY']}=_0x5ea6a2,_0x3a0574=getSourceSkillsDir(),_0x2ddcb1=_0x4abee5[_0x38e4a1(0x126)](join,_0x3a0574,_0x71ba4c),_0x4b4808=join(_0x3a0574,_0x71ba4c+'.md'),_0x4b24ce=existsSync(_0x2ddcb1)&&_0x4abee5['tJKsM'](statSync,_0x2ddcb1)['isDirectory']()&&_0x4abee5[_0x38e4a1(0x11a)](existsSync,join(_0x2ddcb1,_0x38e4a1(0x130))),_0x53b96b=_0x4abee5[_0x38e4a1(0x11a)](existsSync,_0x4b4808);if(_0x4abee5['BDfgi'](!_0x4b24ce,!_0x53b96b))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x71ba4c),![];const _0x54668a=_0x4abee5['UoZxH'](platform,_0x38e4a1(0x132))?_0x4abee5[_0x38e4a1(0x11a)](getOpencodeSkillsDir,level):_0x4abee5[_0x38e4a1(0x11a)](getSkillsDir,level),_0x2ace64=join(_0x54668a,_0x71ba4c);await _0x4abee5[_0x38e4a1(0x126)](mkdir,_0x2ace64,{'recursive':!![]});let _0x56a156,_0x3503bc=[];if(_0x4b24ce){const _0x258ea0=await _0x4abee5['OmsgZ'](readdir,_0x2ddcb1),_0x5b6623=_0x258ea0['filter'](_0x39657f=>_0x39657f[_0x38e4a1(0x124)]('.md'));for(const _0x4a2885 of _0x5b6623){const _0x2f16c0=join(_0x2ddcb1,_0x4a2885),_0x2dbecf=join(_0x2ace64,_0x4a2885);await copyFile(_0x2f16c0,_0x2dbecf),_0x3503bc['push'](_0x4a2885);}_0x56a156=await readFile(_0x4abee5[_0x38e4a1(0x126)](join,_0x2ddcb1,_0x4abee5[_0x38e4a1(0x135)]),'utf-8');}else{_0x56a156=await _0x4abee5[_0x38e4a1(0x126)](readFile,_0x4b4808,_0x38e4a1(0x137));const _0x55a0f1=join(_0x2ace64,_0x4abee5['TFuWN']);await writeFile(_0x55a0f1,_0x56a156,_0x4abee5[_0x38e4a1(0x13a)]),_0x3503bc['push'](_0x38e4a1(0x130));}const {name:_0x44976d}=parseFrontmatter(_0x56a156);return console[_0x38e4a1(0x12d)]('\x20\x20Installed\x20skill:\x20'+_0x44976d),console[_0x38e4a1(0x12d)]('\x20\x20Location:\x20'+_0x2ace64),_0x3503bc[_0x38e4a1(0x131)]>0x1&&console['log'](_0x38e4a1(0x128)+_0x3503bc[_0x38e4a1(0x138)](',\x20')),_0x4abee5['izedW'](logLocalAgentInstallation,_0x71ba4c,{'skillDisplayName':_0x44976d,'installLevel':level},_0x1ae97c)[_0x38e4a1(0x12e)](()=>{}),!![];}function getSourceSkillsDir(){const _0x48a5e2=_0x33d5,_0x1a4cd5={'WWjQw':'skills','sUYge':function(_0x261bf,_0x2ad2fc){return _0x261bf(_0x2ad2fc);}},_0x30c814=[join(__dirname,'..','..',_0x1a4cd5[_0x48a5e2(0x134)]),join(__dirname,'..','..','..',_0x48a5e2(0x129))];for(const _0xf733be of _0x30c814){if(_0x1a4cd5['sUYge'](existsSync,_0xf733be))return _0xf733be;}return _0x30c814[0x0];}function parseFrontmatter(_0x2f2118){const _0x2f945d=_0x33d5,_0x1ed8c2={'fpyjH':'Invalid\x20skill\x20frontmatter'},_0x1b3a39=_0x2f2118['match'](/^---\n([\s\S]+?)\n---/);if(!_0x1b3a39)throw new Error(_0x1ed8c2['fpyjH']);const _0x4806e8=_0x1b3a39[0x1],_0x2a5523=_0x4806e8[_0x2f945d(0x125)](/name:\s*(.+)/),_0x504999=_0x4806e8['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x2a5523?.[0x1][_0x2f945d(0x122)]()||'','description':_0x504999?.[0x1][_0x2f945d(0x122)]()||''};}export async function removeSkill(_0x5cd103,_0x21c7d0){const _0x2a0076=_0x33d5,_0x69cc24={'EMJoW':function(_0x3f9ca5,_0xc09cdd,_0x4fe504){return _0x3f9ca5(_0xc09cdd,_0x4fe504);},'fKwdZ':function(_0x21b3da,_0x4bf8c4,_0x514875){return _0x21b3da(_0x4bf8c4,_0x514875);}},_0xdbe869=getSkillsDir(_0x21c7d0),_0x168df8=_0x69cc24[_0x2a0076(0x123)](join,_0xdbe869,_0x5cd103);if(!existsSync(_0x168df8))return![];try{return await _0x69cc24[_0x2a0076(0x11d)](rm,_0x168df8,{'recursive':!![]}),console['log'](_0x2a0076(0x11b)+_0x5cd103),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5cd103),![];}}
|