@ranger-testing/ranger-cli 2.4.6 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.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/reportGenerator.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/build/commands/verifyInBrowser.js +1 -1
- package/build/skills/ranger/SKILL.md +38 -41
- package/build/skills/ranger/create.md +5 -13
- package/build/skills/ranger/feedback.md +3 -3
- package/build/skills/ranger/start.md +13 -13
- package/build/skills/ranger/verify.md +15 -28
- package/package.json +5 -3
- package/scripts/postinstall.js +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x24a467=_0x35ff;(function(_0x293621,_0x428fda){const _0x133288=_0x35ff,_0x1f6156=_0x293621();while(!![]){try{const _0x12045b=-parseInt(_0x133288(0x1ee))/0x1*(parseInt(_0x133288(0x1ea))/0x2)+parseInt(_0x133288(0x1e3))/0x3+parseInt(_0x133288(0x1e5))/0x4*(-parseInt(_0x133288(0x1e4))/0x5)+-parseInt(_0x133288(0x1eb))/0x6+-parseInt(_0x133288(0x1e7))/0x7+-parseInt(_0x133288(0x1ec))/0x8+parseInt(_0x133288(0x1e8))/0x9*(parseInt(_0x133288(0x1ef))/0xa);if(_0x12045b===_0x428fda)break;else _0x1f6156['push'](_0x1f6156['shift']());}catch(_0x424485){_0x1f6156['push'](_0x1f6156['shift']());}}}(_0x1a6e,0x1dcc1));const VERIFY_MODEL_ALIASES={'opus':_0x24a467(0x1e9),'sonnet':_0x24a467(0x1f0)};function _0x1a6e(){const _0x4e1250=['claude-opus-4-6','219782VYowGv','799938htLDha','207960sqNSsg','trim','1zigiFs','116050UNGtTe','claude-sonnet-4-6','42375ikxDog','27595igkpAy','52HqydSk','uitgw','188475GFpdQu','369yPRMUS'];_0x1a6e=function(){return _0x4e1250;};return _0x1a6e();}function _0x35ff(_0x308848,_0x2f5618){_0x308848=_0x308848-0x1e3;const _0x1a6e2e=_0x1a6e();let _0x35fff7=_0x1a6e2e[_0x308848];return _0x35fff7;}export const DEFAULT_VERIFY_MODEL=_0x24a467(0x1f0);export function resolveVerifyModel(_0x872474){const _0x25828b=_0x24a467,_0xcb2bad={'uitgw':function(_0x577326,_0x149aec){return _0x577326??_0x149aec;}};if(!_0x872474)return undefined;const _0x38ecec=_0x872474[_0x25828b(0x1ed)]();if(!_0x38ecec)return undefined;const _0x5a0348=VERIFY_MODEL_ALIASES[_0x38ecec['toLowerCase']()];return _0xcb2bad[_0x25828b(0x1e6)](_0x5a0348,_0x38ecec);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb94e59,_0x2f283c){var _0x3f6aba=_0x1367,_0x333084=_0xb94e59();while(!![]){try{var _0x21539f=parseInt(_0x3f6aba(0x182))/0x1+-parseInt(_0x3f6aba(0x17c))/0x2*(parseInt(_0x3f6aba(0x176))/0x3)+-parseInt(_0x3f6aba(0x17f))/0x4+-parseInt(_0x3f6aba(0x17d))/0x5*(-parseInt(_0x3f6aba(0x17a))/0x6)+-parseInt(_0x3f6aba(0x17b))/0x7+-parseInt(_0x3f6aba(0x177))/0x8+parseInt(_0x3f6aba(0x179))/0x9;if(_0x21539f===_0x2f283c)break;else _0x333084['push'](_0x333084['shift']());}catch(_0x5d67c7){_0x333084['push'](_0x333084['shift']());}}}(_0x2514,0x900c8));import{homedir}from'os';function _0x1367(_0x4131ff,_0xe44717){_0x4131ff=_0x4131ff-0x174;var _0x2514d9=_0x2514();var _0x1367f3=_0x2514d9[_0x4131ff];return _0x1367f3;}function _0x2514(){var _0xccc0be=['.opencode','PJUoL','1371ZBJSxU','5531104csNmjB','env','27930060pcPmBc','6MlWhaL','8155938khjnfu','484QCZiFw','2882190wIQowX','STsXa','4633748aJxMAW','cpbig','opencode','35799XrSCZE'];_0x2514=function(){return _0xccc0be;};return _0x2514();}import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0xabe14d){var _0x5392c1=_0x1367,_0x1baa82={'kHPjQ':function(_0x2b060c,_0x22ec3e){return _0x2b060c===_0x22ec3e;},'Lxtkl':_0x5392c1(0x181),'cpbig':function(_0x529b4a,_0x143235,_0x19e31c,_0x2f64f7){return _0x529b4a(_0x143235,_0x19e31c,_0x2f64f7);},'HhFTj':'.config','GtGOs':function(_0x109000){return _0x109000();}};if(process[_0x5392c1(0x178)]['OPENCODE_CONFIG_DIR'])return process[_0x5392c1(0x178)]['OPENCODE_CONFIG_DIR'];if(_0x1baa82['kHPjQ'](_0xabe14d,'user')){if(process[_0x5392c1(0x178)]['XDG_CONFIG_HOME'])return join(process['env']['XDG_CONFIG_HOME'],_0x1baa82['Lxtkl']);return _0x1baa82[_0x5392c1(0x180)](join,homedir(),_0x1baa82['HhFTj'],_0x1baa82['Lxtkl']);}return join(_0x1baa82['GtGOs'](getProjectRoot),_0x5392c1(0x174));}export function getOpencodeSkillsDir(_0x16d8b4){var _0x514644=_0x1367,_0x583b51={'UWrbt':function(_0xfa4d50,_0x59be54,_0x1f0764){return _0xfa4d50(_0x59be54,_0x1f0764);},'STsXa':function(_0x43d308,_0xe208a5){return _0x43d308(_0xe208a5);},'PJUoL':'skills'};return _0x583b51['UWrbt'](join,_0x583b51[_0x514644(0x17e)](getOpencodeConfigDir,_0x16d8b4),_0x583b51[_0x514644(0x175)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x44792f=_0x371b;(function(_0x457012,_0x19f7f5){const _0x55f58e=_0x371b,_0x5a300f=_0x457012();while(!![]){try{const _0x70a98=-parseInt(_0x55f58e(0x19c))/0x1*(-parseInt(_0x55f58e(0x187))/0x2)+-parseInt(_0x55f58e(0x1b3))/0x3*(parseInt(_0x55f58e(0x19b))/0x4)+-parseInt(_0x55f58e(0x1a0))/0x5*(-parseInt(_0x55f58e(0x18a))/0x6)+parseInt(_0x55f58e(0x1a6))/0x7*(parseInt(_0x55f58e(0x19d))/0x8)+parseInt(_0x55f58e(0x1ba))/0x9*(-parseInt(_0x55f58e(0x1af))/0xa)+parseInt(_0x55f58e(0x1b6))/0xb*(parseInt(_0x55f58e(0x193))/0xc)+-parseInt(_0x55f58e(0x1bd))/0xd;if(_0x70a98===_0x19f7f5)break;else _0x5a300f['push'](_0x5a300f['shift']());}catch(_0xc5a614){_0x5a300f['push'](_0x5a300f['shift']());}}}(_0xf263,0xa82a8));function _0xf263(){const _0xda8329=['dxurp','cWXwR','playwright-cli\x20','data','string','-s=','kALqA','1418030OzCqZH','toString','XthnP','ignore','762REBXOh','pipe','join','2398715TJNjqE','\x0astdout:\x20','--config','stdout','63Xhaety','sessionId','Yqeoo','24371256KelRVy','\x20signal=','16khaYnO','slice','kill','2172270JMSGfp','stderr','jMnDr','@playwright/cli','subcommand','args','values','env','update','60WvLaQp','zWfGe','SIGTERM','exited\x20with\x20code=','npx','timeoutMs','command','IxfMn','7992nIWYOA','148337pwpmse','8oKxlin','JPVfC','match','10iJapyD','find','script','hex','unknown','replace','7437654vMNnAY','trim'];_0xf263=function(){return _0xda8329;};return _0xf263();}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x44792f(0x18d);function toPlaywrightCliSessionKey(_0x1dbfe6){const _0x23d705=_0x44792f,_0x1985bd={'lxJgw':'sha256'},_0x8dce2=createHash(_0x1985bd['lxJgw'])[_0x23d705(0x192)](_0x1dbfe6)['digest'](_0x23d705(0x1a3))[_0x23d705(0x188)](0x0,0xc);return'rg-'+_0x8dce2;}function shellQuote(_0x8cd705){const _0x4bfcb5=_0x44792f;return'\x27'+_0x8cd705[_0x4bfcb5(0x1a5)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2777ca){const _0x3410c3={'PvFlf':function(_0x2f4590,_0x4b9b78){return _0x2f4590(_0x4b9b78);}};return SAFE_SHELL_TOKEN['test'](_0x2777ca)?_0x2777ca:_0x3410c3['PvFlf'](shellQuote,_0x2777ca);}export function buildPlaywrightCliInvocation(_0xee45ab,_0x5380ec,_0x24f70b){const _0x141bc7=_0x44792f,_0x260c72={'Fqoko':_0x141bc7(0x1a4),'CzaOC':_0x141bc7(0x1b8),'sDzqu':'npx','Jvfye':function(_0x4366e1,_0x44d756){return _0x4366e1(_0x44d756);}},_0x4698ca=toPlaywrightCliSessionKey(_0xee45ab),[_0x3c54df=_0x260c72['Fqoko']]=_0x24f70b,_0x1ccc63=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4698ca,_0x260c72['CzaOC'],_0x5380ec,..._0x24f70b];return{'command':_0x260c72['sDzqu'],'args':_0x1ccc63,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,_0x141bc7(0x1ad)+quoteShellArg(_0x4698ca),_0x141bc7(0x1b8),_0x260c72['Jvfye'](quoteShellArg,_0x5380ec),..._0x24f70b['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x3c54df};}export function buildPlaywrightCliCommandPrefix(_0x4fb5a7,_0xd0806){const _0x10e9fb=_0x44792f,_0x30723a={'kALqA':function(_0x5edf9f,_0x375db5){return _0x5edf9f(_0x375db5);},'aoqyj':_0x10e9fb(0x1b8)},_0x2439a1=toPlaywrightCliSessionKey(_0x4fb5a7);return[_0x10e9fb(0x197),PLAYWRIGHT_CLI_BINARY,_0x10e9fb(0x1ad)+_0x30723a['kALqA'](quoteShellArg,_0x2439a1),_0x30723a['aoqyj'],_0x30723a[_0x10e9fb(0x1ae)](quoteShellArg,_0xd0806)][_0x10e9fb(0x1b5)]('\x20');}function truncateOutput(_0x57e3a8,_0xf0edc4=0x7d0){const _0x51d331=_0x44792f;return _0x57e3a8['length']>_0xf0edc4?_0x57e3a8[_0x51d331(0x188)](0x0,_0xf0edc4)+'...':_0x57e3a8;}export async function runPlaywrightCliCommand(_0x6a61eb){const _0x44295e=_0x44792f,_0x1ae6e8={'jMnDr':function(_0x3832ee,_0x2c820e){return _0x3832ee(_0x2c820e);},'OVdsT':function(_0xdbfd7f,_0x2f5d64){return _0xdbfd7f??_0x2f5d64;},'ovqxV':_0x44295e(0x1b2),'WUBOX':_0x44295e(0x1b4),'Yqeoo':function(_0x255838,_0x382e1f){return _0x255838>_0x382e1f;},'dxurp':_0x44295e(0x1ab),'gaMFb':'error','IxfMn':function(_0x55773c,_0x528ff1,_0x2589de,_0x604872){return _0x55773c(_0x528ff1,_0x2589de,_0x604872);}},_0x359df1=_0x1ae6e8[_0x44295e(0x19a)](buildPlaywrightCliInvocation,_0x6a61eb[_0x44295e(0x1bb)],_0x6a61eb['configPath'],_0x6a61eb['commandArgs']);return new Promise((_0x516309,_0xd46343)=>{const _0x4190e8=_0x44295e,_0x51c1b0={'cWXwR':function(_0x4600b6,_0x4a2c33){const _0x566a81=_0x371b;return _0x1ae6e8[_0x566a81(0x18c)](_0x4600b6,_0x4a2c33);},'VycMR':function(_0x150ce2,_0x311368){return _0x1ae6e8['OVdsT'](_0x150ce2,_0x311368);}},_0x350fb8=spawn(_0x359df1[_0x4190e8(0x199)],_0x359df1[_0x4190e8(0x18f)],{'cwd':_0x6a61eb['cwd'],'env':_0x6a61eb[_0x4190e8(0x191)],'stdio':[_0x1ae6e8['ovqxV'],_0x4190e8(0x1b4),_0x1ae6e8['WUBOX']]});let _0x418f69='',_0x51da69='',_0x3d4c25=![];const _0x428ba7=_0x6a61eb['timeoutMs']&&_0x1ae6e8[_0x4190e8(0x1bc)](_0x6a61eb['timeoutMs'],0x0)?setTimeout(()=>{const _0x4308e3=_0x4190e8;_0x3d4c25=!![],_0x350fb8[_0x4308e3(0x189)](_0x4308e3(0x195)),setTimeout(()=>{try{_0x350fb8['kill']('SIGKILL');}catch{}},0x3e8);},_0x6a61eb[_0x4190e8(0x198)]):null;_0x350fb8[_0x4190e8(0x1b9)]?.['on'](_0x1ae6e8[_0x4190e8(0x1a8)],_0x27411c=>{_0x418f69+=_0x27411c['toString']();}),_0x350fb8[_0x4190e8(0x18b)]?.['on'](_0x4190e8(0x1ab),_0x148e16=>{const _0x18728f=_0x4190e8;_0x51da69+=_0x148e16[_0x18728f(0x1b0)]();}),_0x350fb8['on'](_0x1ae6e8['gaMFb'],_0x1a9b52=>{if(_0x428ba7)clearTimeout(_0x428ba7);_0x51c1b0['cWXwR'](_0xd46343,_0x1a9b52);}),_0x350fb8['on']('close',(_0x28b269,_0x5dce93)=>{const _0xef0c30=_0x4190e8;if(_0x428ba7)clearTimeout(_0x428ba7);if(_0x28b269===0x0){_0x516309({'stdout':_0x418f69,'stderr':_0x51da69,'invocation':_0x359df1});return;}const _0x290719=_0x3d4c25?'timed\x20out\x20after\x20'+_0x6a61eb['timeoutMs']+'ms':_0xef0c30(0x196)+_0x51c1b0['VycMR'](_0x28b269,'null')+_0xef0c30(0x1be)+(_0x5dce93??'null');_0xd46343(new Error(_0xef0c30(0x1aa)+_0x359df1[_0xef0c30(0x18e)]+'\x20'+_0x290719+_0xef0c30(0x1b7)+truncateOutput(_0x418f69)+'\x0astderr:\x20'+_0x51c1b0[_0xef0c30(0x1a9)](truncateOutput,_0x51da69)));});});}function _0x371b(_0x303561,_0x1fca72){_0x303561=_0x303561-0x187;const _0xf263f0=_0xf263();let _0x371b46=_0xf263f0[_0x303561];return _0x371b46;}export function extractBashCommand(_0x50330f){const _0x2378c4=_0x44792f,_0x27436f={'XthnP':'command','ekbVB':'cmd','JPVfC':'bash_command','zWfGe':'string'},_0x50504c=[_0x27436f[_0x2378c4(0x1b1)],_0x27436f['ekbVB'],_0x2378c4(0x1a2),_0x27436f[_0x2378c4(0x19e)]];for(const _0x3d66a9 of _0x50504c){const _0x4d65ec=_0x50330f[_0x3d66a9];if(typeof _0x4d65ec===_0x27436f[_0x2378c4(0x194)]&&_0x4d65ec[_0x2378c4(0x1a7)]())return _0x4d65ec;}const _0x419cb5=Object[_0x2378c4(0x190)](_0x50330f)[_0x2378c4(0x1a1)](_0x4348c8=>typeof _0x4348c8===_0x2378c4(0x1ac)&&_0x4348c8['trim']()['length']>0x0);return _0x419cb5??null;}export function parsePlaywrightCliCommand(_0x4111a){const _0x584e36=_0x44792f,_0x3836fe=_0x4111a[_0x584e36(0x19f)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x3836fe?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47c243,_0x10b5a5){const _0x37da4e=_0x3ef6,_0x595a94=_0x47c243();while(!![]){try{const _0x2d304d=parseInt(_0x37da4e(0x140))/0x1+parseInt(_0x37da4e(0x13c))/0x2+-parseInt(_0x37da4e(0x146))/0x3*(parseInt(_0x37da4e(0x141))/0x4)+-parseInt(_0x37da4e(0x13e))/0x5*(parseInt(_0x37da4e(0x145))/0x6)+parseInt(_0x37da4e(0x143))/0x7*(parseInt(_0x37da4e(0x13f))/0x8)+parseInt(_0x37da4e(0x144))/0x9*(-parseInt(_0x37da4e(0x13d))/0xa)+parseInt(_0x37da4e(0x142))/0xb;if(_0x2d304d===_0x10b5a5)break;else _0x595a94['push'](_0x595a94['shift']());}catch(_0xa877b7){_0x595a94['push'](_0x595a94['shift']());}}}(_0x2a17,0xef41e));function _0x3ef6(_0x528783,_0x38fe3a){_0x528783=_0x528783-0x13c;const _0x2a178c=_0x2a17();let _0x3ef6dc=_0x2a178c[_0x528783];return _0x3ef6dc;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x53496f){const _0x33fa62={'ogAVv':function(_0x37a74d,_0x398ba4){return _0x37a74d(_0x398ba4);}},_0x548cc9=_0x53496f?_0x33fa62['ogAVv'](_0x53496f,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'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'+_0x548cc9+'.';}function _0x2a17(){const _0x4cae16=['8993314YZxVpO','4662TQcEQD','1575657cCFboA','109770ONOvAL','3677487GoFVAO','374054xdWzCg','10XUcqQM','130dyzfDA','8032zzwBJc','1183305RtsrZU','4DhYyIJ'];_0x2a17=function(){return _0x4cae16;};return _0x2a17();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x5efe33,_0x3cdb6e){const _0x4d4fd2=_0x55fa,_0xb9062f=_0x5efe33();while(!![]){try{const _0x2d76de=-parseInt(_0x4d4fd2(0xd3))/0x1*(-parseInt(_0x4d4fd2(0xd1))/0x2)+-parseInt(_0x4d4fd2(0xd0))/0x3+-parseInt(_0x4d4fd2(0xce))/0x4*(parseInt(_0x4d4fd2(0xdc))/0x5)+parseInt(_0x4d4fd2(0xdb))/0x6*(parseInt(_0x4d4fd2(0xdd))/0x7)+parseInt(_0x4d4fd2(0xda))/0x8+parseInt(_0x4d4fd2(0xcd))/0x9*(parseInt(_0x4d4fd2(0xd8))/0xa)+parseInt(_0x4d4fd2(0xd5))/0xb;if(_0x2d76de===_0x3cdb6e)break;else _0xb9062f['push'](_0xb9062f['shift']());}catch(_0x4c7082){_0xb9062f['push'](_0xb9062f['shift']());}}}(_0x5d70,0x8b6bf));function _0x55fa(_0x323eb1,_0x14d342){_0x323eb1=_0x323eb1-0xca;const _0x5d7072=_0x5d70();let _0x55faf9=_0x5d7072[_0x323eb1];return _0x55faf9;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x34b5e7=_0x55fa,_0x2f97fe={'jJfYZ':function(_0xba7d5e,_0x3b2eb3){return _0xba7d5e+_0x3b2eb3;},'WQQPK':function(_0x4c1473,_0x1ae2fd){return _0x4c1473+_0x1ae2fd;},'ogjLZ':_0x34b5e7(0xd6),'emwZH':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','FPjIb':'</div>'},_0x11f804=_0x2f97fe[_0x34b5e7(0xde)](_0x2f97fe[_0x34b5e7(0xcc)](_0x2f97fe[_0x34b5e7(0xcc)](_0x2f97fe[_0x34b5e7(0xcc)]('<div\x20class=\x22ranger-banner__content\x22>'+_0x34b5e7(0xd4),_0x2f97fe[_0x34b5e7(0xcf)]),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x2f97fe['emwZH']+_0x2f97fe[_0x34b5e7(0xd7)],'</div>'),_0x34b5e7(0xd9)),_0x6680f2='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\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[_0x34b5e7(0xcb)](_0x11f804)+_0x34b5e7(0xd2)+JSON['stringify'](_0x6680f2)+';\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';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x5d70(){const _0x29c723=['5yUtMDJ','413OfPvET','jJfYZ','addInitScript','stringify','WQQPK','98469UPpfBE','3787340NzbTBr','ogjLZ','3003063MSxzXn','332642vkVzak',';\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','6uQwsBw','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','2919598Zvukxm','<div\x20class=\x22ranger-banner__message\x22>','FPjIb','150VdHndI','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','3762056OWTLFj','63174XJTibj'];_0x5d70=function(){return _0x29c723;};return _0x5d70();}export async function addProfileSetupBanner(_0x15a7fe){const _0x1b1032=_0x55fa;await _0x15a7fe[_0x1b1032(0xca)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xc25096,_0x443ee4){const _0x4a64f6=_0x11ac,_0x16c47c=_0xc25096();while(!![]){try{const _0x3876b3=-parseInt(_0x4a64f6(0x140))/0x1*(-parseInt(_0x4a64f6(0x13a))/0x2)+parseInt(_0x4a64f6(0x143))/0x3*(-parseInt(_0x4a64f6(0x13d))/0x4)+-parseInt(_0x4a64f6(0x138))/0x5+parseInt(_0x4a64f6(0x13f))/0x6*(-parseInt(_0x4a64f6(0x132))/0x7)+parseInt(_0x4a64f6(0x134))/0x8+-parseInt(_0x4a64f6(0x139))/0x9*(-parseInt(_0x4a64f6(0x13b))/0xa)+parseInt(_0x4a64f6(0x136))/0xb*(parseInt(_0x4a64f6(0x142))/0xc);if(_0x3876b3===_0x443ee4)break;else _0x16c47c['push'](_0x16c47c['shift']());}catch(_0x23cfed){_0x16c47c['push'](_0x16c47c['shift']());}}}(_0x473e,0x89180));import{readFile}from'fs/promises';function _0x11ac(_0x1dca81,_0x5d362d){_0x1dca81=_0x1dca81-0x131;const _0x473e70=_0x473e();let _0x11ac2e=_0x473e70[_0x1dca81];return _0x11ac2e;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x3206a0=_0x11ac,_0x20cc2d={'uIpQk':function(_0x4b526e,_0x6efc10,_0x5a2384){return _0x4b526e(_0x6efc10,_0x5a2384);},'HFTwq':'config.json'};return _0x20cc2d[_0x3206a0(0x133)](join,getRangerDir(),_0x20cc2d['HFTwq']);}export async function loadRangerConfig(){const _0x28a8b7=_0x11ac,_0x356c01={'FwcQV':function(_0x45611c,_0x4d1953,_0x2dc230){return _0x45611c(_0x4d1953,_0x2dc230);},'eNBIl':'utf-8','rdOOP':function(_0x33e2f4,_0x684dd5){return _0x33e2f4!==_0x684dd5;},'wRMBf':function(_0x38be8d,_0xfabfe4){return _0x38be8d instanceof _0xfabfe4;}},_0x1a9742=getRangerConfigPath();if(!existsSync(_0x1a9742))return{};try{const _0x4aa7f2=await _0x356c01['FwcQV'](readFile,_0x1a9742,_0x356c01['eNBIl']),_0x20202b=JSON['parse'](_0x4aa7f2);if(!_0x20202b||_0x356c01[_0x28a8b7(0x131)](typeof _0x20202b,_0x28a8b7(0x135))||Array[_0x28a8b7(0x141)](_0x20202b))return{};const _0xd5b73a={},_0x23857c=_0x20202b['model'];return typeof _0x23857c==='string'&&(_0xd5b73a[_0x28a8b7(0x13c)]=_0x23857c),_0xd5b73a;}catch(_0x2ee486){const _0x3bdbd8=_0x356c01[_0x28a8b7(0x137)](_0x2ee486,Error)?_0x2ee486['message']:String(_0x2ee486);return console[_0x28a8b7(0x13e)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x1a9742+':\x20'+_0x3bdbd8),{};}}function _0x473e(){const _0xe15ae3=['model','4wJeDCT','warn','21444XmTxWC','2LSSlOE','isArray','174228shYVpV','2418873LNvkVZ','rdOOP','273SShmrf','uIpQk','6247960MBaMvo','object','572gpAxPV','wRMBf','2825460SBEPiW','18lUvBxs','125816ExSFOa','2052530bffshk'];_0x473e=function(){return _0xe15ae3;};return _0x473e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x363712,_0x4a58a3){const _0x13ac61=_0x11fc,_0x43e8bd=_0x363712();while(!![]){try{const _0x8e89a3=parseInt(_0x13ac61(0x9f))/0x1*(parseInt(_0x13ac61(0x93))/0x2)+parseInt(_0x13ac61(0x99))/0x3*(-parseInt(_0x13ac61(0x91))/0x4)+-parseInt(_0x13ac61(0x9c))/0x5*(-parseInt(_0x13ac61(0xa1))/0x6)+-parseInt(_0x13ac61(0xa0))/0x7*(parseInt(_0x13ac61(0x96))/0x8)+-parseInt(_0x13ac61(0x9d))/0x9+parseInt(_0x13ac61(0x95))/0xa*(-parseInt(_0x13ac61(0x9e))/0xb)+parseInt(_0x13ac61(0xa2))/0xc;if(_0x8e89a3===_0x4a58a3)break;else _0x43e8bd['push'](_0x43e8bd['shift']());}catch(_0x4632bb){_0x43e8bd['push'](_0x43e8bd['shift']());}}}(_0x1424,0x43c89));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x1424(){const _0x3f8bdc=['.ranger','525070roJfUx','85784TRfLSa','NSPtO','.git','3WTmRiG','root','KxusV','75YzfANU','4490856srBIbC','110xVuWcB','3JMhBCK','7BszNet','161166CuaFtj','10756704mGQTFB','1360904jdyAFc','sPOAu','235558bNYJQi'];_0x1424=function(){return _0x3f8bdc;};return _0x1424();}export function getRangerRoot(){const _0x4399e0=_0x11fc,_0x1be66b={'KxusV':function(_0x21a4ff,_0x2496f7){return _0x21a4ff(_0x2496f7);},'SMGxX':function(_0x5c9f0a,_0x4f0a3d){return _0x5c9f0a!==_0x4f0a3d;},'uePik':function(_0x3fb2d4,_0xb88164,_0x536b83){return _0x3fb2d4(_0xb88164,_0x536b83);},'LJjZY':'.ranger'};let _0x5c7226=process['cwd']();const _0x50a35f=_0x1be66b['KxusV'](parse,_0x5c7226)[_0x4399e0(0x9a)];while(_0x1be66b['SMGxX'](_0x5c7226,_0x50a35f)){if(existsSync(_0x1be66b['uePik'](join,_0x5c7226,_0x1be66b['LJjZY'])))return _0x5c7226;_0x5c7226=dirname(_0x5c7226);}if(_0x1be66b[_0x4399e0(0x9b)](existsSync,_0x1be66b['uePik'](join,_0x50a35f,_0x1be66b['LJjZY'])))return _0x50a35f;const _0x58b967=findGitRoot();if(_0x58b967)return _0x58b967;return process['cwd']();}function _0x11fc(_0x30784b,_0x4f830f){_0x30784b=_0x30784b-0x91;const _0x1424cd=_0x1424();let _0x11fc6f=_0x1424cd[_0x30784b];return _0x11fc6f;}export function getRangerDir(){const _0x38ed44=_0x11fc,_0x7d5993={'NkfRe':function(_0x7f7b,_0x3cbd6e,_0x5f5c1a){return _0x7f7b(_0x3cbd6e,_0x5f5c1a);}};return _0x7d5993['NkfRe'](join,getRangerRoot(),_0x38ed44(0x94));}export function findGitRoot(){const _0x28c0ec=_0x11fc,_0x3023f4={'sPOAu':function(_0x47a07f,_0x3376a8){return _0x47a07f(_0x3376a8);}};let _0x31ffdc=process['cwd']();const _0x49b69b=parse(_0x31ffdc)['root'];while(_0x31ffdc!==_0x49b69b){if(existsSync(join(_0x31ffdc,_0x28c0ec(0x98))))return _0x31ffdc;_0x31ffdc=_0x3023f4[_0x28c0ec(0x92)](dirname,_0x31ffdc);}if(existsSync(join(_0x49b69b,_0x28c0ec(0x98))))return _0x49b69b;return null;}export function getRangerHomeDir(){const _0x1c0dca=_0x11fc,_0x566826={'tEywT':function(_0x57387a,_0x4410c9,_0x356a52){return _0x57387a(_0x4410c9,_0x356a52);},'NSPtO':function(_0x331c24){return _0x331c24();}};return _0x566826['tEywT'](join,_0x566826[_0x1c0dca(0x97)](homedir),_0x1c0dca(0x94));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fb924,_0x342e77){const _0x49aac3=_0x2d96,_0x14a128=_0x1fb924();while(!![]){try{const _0x129e12=-parseInt(_0x49aac3(0x13f))/0x1+parseInt(_0x49aac3(0x148))/0x2+parseInt(_0x49aac3(0x14f))/0x3+parseInt(_0x49aac3(0x145))/0x4*(parseInt(_0x49aac3(0x13c))/0x5)+-parseInt(_0x49aac3(0x12e))/0x6+parseInt(_0x49aac3(0x146))/0x7+-parseInt(_0x49aac3(0x136))/0x8;if(_0x129e12===_0x342e77)break;else _0x14a128['push'](_0x14a128['shift']());}catch(_0x24b378){_0x14a128['push'](_0x14a128['shift']());}}}(_0x3faa,0x808f7));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x190755){const _0x5d4d95=_0x2d96,_0x168f0f={'FmOQB':function(_0x550a98,_0x557662){return _0x550a98(_0x557662);},'KEnuO':function(_0x186bc5,_0x18634e,_0x4dbdc0){return _0x186bc5(_0x18634e,_0x4dbdc0);}},_0x2fb6dd=[],_0x932d7b=[];if(!_0x168f0f['FmOQB'](existsSync,_0x190755))return{'screenshots':_0x2fb6dd,'paths':_0x932d7b};const _0x22a1c0=await readdir(_0x190755),_0x524d5f=_0x22a1c0['filter'](_0x1beca3=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x5d4d95(0x142)](_0x1beca3))['sort']();for(const _0x48656a of _0x524d5f){const _0x16d533=_0x168f0f['KEnuO'](join,_0x190755,_0x48656a);_0x2fb6dd[_0x5d4d95(0x133)]({'filename':_0x48656a,'path':_0x16d533,'relativePath':'./'+_0x48656a}),_0x932d7b['push'](_0x16d533);}return{'screenshots':_0x2fb6dd,'paths':_0x932d7b};}function _0x2d96(_0xc94eb9,_0x24fa4e){_0xc94eb9=_0xc94eb9-0x12d;const _0x3faac1=_0x3faa();let _0x2d967e=_0x3faac1[_0xc94eb9];return _0x2d967e;}function getSeverityEmoji(_0x2a408e){const _0x4f69d8=_0x2d96,_0x5de649={'iLqkD':_0x4f69d8(0x12f)};switch(_0x2a408e){case _0x5de649[_0x4f69d8(0x147)]:return'🔴';case _0x4f69d8(0x14e):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x64c2dc){const _0x48c0e5=_0x2d96,_0x40e9ed=_0x64c2dc['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x41aa9c=_0x40e9ed[_0x48c0e5(0x14d)](/^\d+-/,'');return _0x41aa9c['split']('-')[_0x48c0e5(0x14a)](_0x22501e=>_0x22501e[_0x48c0e5(0x14b)](0x0)['toUpperCase']()+_0x22501e[_0x48c0e5(0x130)](0x1))['join']('\x20');}function _0x3faa(){const _0x26b9b4=['map','charAt','###\x20Summary','replace','MAJOR','914358xqMTef','qXCym','filename','4276884YyDwdg','BLOCKER','slice','##\x20Task','relativePath','push',']\x20Issue','**Status:**\x20','1494320JQoXVE','##\x20Screenshots\x20(','**Generated:**\x20','###\x20Issues\x20Found\x20(','find','PASSED','1440220txaerX','#\x20Verification\x20Report','ISSUES\x20FOUND','665251eqLdcj','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','**URL:**\x20','test','length','severity','8QYYQsW','4958527pFzMBJ','iLqkD','1004406QxVdUf','screenshot'];_0x3faa=function(){return _0x26b9b4;};return _0x3faa();}export function generateMarkdownReport(_0x4dcbaf){const _0x253fde=_0x2d96,_0x5d0dab={'qXCym':function(_0x31b862,_0x3c2f7c){return _0x31b862/_0x3c2f7c;},'dMjNe':_0x253fde(0x13b),'mdJyM':_0x253fde(0x13e),'mmbFC':function(_0x45979c,_0x95ef0){return _0x45979c(_0x95ef0);}},{sessionId:_0x4ace87,task:_0x35a641,url:_0x2392c7,success:_0x2258d3,summary:_0x58886c,issues:_0x7b17,screenshots:_0x53ec65,durationMs:_0x379889,traceViewerUrl:_0x3ab67e}=_0x4dcbaf,_0x5866d5=new Date()['toISOString'](),_0x112150=_0x5d0dab[_0x253fde(0x150)](_0x379889,0x3e8)['toFixed'](0x1),_0x43c95f=[];_0x43c95f[_0x253fde(0x133)](_0x253fde(0x13d)),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)]('**Session:**\x20`'+_0x4ace87+'`'),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x138)+_0x5866d5),_0x43c95f['push']('**Duration:**\x20'+_0x112150+'s'),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x131)),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f['push'](_0x253fde(0x141)+_0x2392c7),_0x43c95f['push'](''),_0x43c95f[_0x253fde(0x133)]('>\x20'+_0x35a641),_0x43c95f['push'](''),_0x43c95f[_0x253fde(0x133)]('##\x20Result'),_0x43c95f['push']('');const _0x599eed=_0x2258d3?'✅':'❌';_0x43c95f['push'](_0x253fde(0x135)+_0x599eed+'\x20'+(_0x2258d3?_0x5d0dab['dMjNe']:_0x5d0dab['mdJyM'])),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x14c)),_0x43c95f['push'](''),_0x43c95f['push'](_0x58886c),_0x43c95f['push']('');if(_0x7b17&&_0x7b17['length']>0x0){_0x43c95f['push'](_0x253fde(0x139)+_0x7b17[_0x253fde(0x143)]+')'),_0x43c95f['push']('');for(const _0x3d2ebc of _0x7b17){const _0x37a71d=getSeverityEmoji(_0x3d2ebc[_0x253fde(0x144)]);_0x43c95f['push']('####\x20'+_0x37a71d+'\x20['+_0x3d2ebc[_0x253fde(0x144)]+_0x253fde(0x134)),_0x43c95f['push'](''),_0x43c95f[_0x253fde(0x133)](_0x3d2ebc['description']),_0x43c95f['push']('');if(_0x3d2ebc[_0x253fde(0x149)]){const _0x536052=_0x3d2ebc['screenshot'],_0x3243a3=_0x53ec65[_0x253fde(0x13a)](_0x2eb84d=>_0x2eb84d['filename']===_0x536052||_0x2eb84d['filename']['includes'](_0x536052));_0x3243a3&&(_0x43c95f[_0x253fde(0x133)]('**Screenshot:**'),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f['push'](''),_0x43c95f['push'](''));}}}if(_0x53ec65[_0x253fde(0x143)]>0x0){_0x43c95f[_0x253fde(0x133)](_0x253fde(0x137)+_0x53ec65['length']+')'),_0x43c95f[_0x253fde(0x133)]('');for(const _0x5ab0e4 of _0x53ec65){const _0x3d21ba=_0x5d0dab['mmbFC'](formatScreenshotCaption,_0x5ab0e4[_0x253fde(0x12d)]);_0x43c95f[_0x253fde(0x133)]('###\x20'+_0x3d21ba),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f['push']('!['+_0x5ab0e4['filename']+']('+_0x5ab0e4[_0x253fde(0x132)]+')'),_0x43c95f['push']('');}}return _0x3ab67e&&(_0x43c95f[_0x253fde(0x133)]('---'),_0x43c95f[_0x253fde(0x133)](''),_0x43c95f[_0x253fde(0x133)](_0x253fde(0x140)+_0x3ab67e+')'),_0x43c95f[_0x253fde(0x133)]('')),_0x43c95f['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x39f5(_0x162a31,_0x208210){_0x162a31=_0x162a31-0xd9;const _0x460e74=_0x460e();let _0x39f5ca=_0x460e74[_0x162a31];return _0x39f5ca;}(function(_0x4a35f3,_0x1f2d74){const _0x2a2e6b=_0x39f5,_0x51bc81=_0x4a35f3();while(!![]){try{const _0x2b97e6=-parseInt(_0x2a2e6b(0xea))/0x1+-parseInt(_0x2a2e6b(0xe7))/0x2+-parseInt(_0x2a2e6b(0xda))/0x3*(parseInt(_0x2a2e6b(0xe6))/0x4)+parseInt(_0x2a2e6b(0xe8))/0x5+-parseInt(_0x2a2e6b(0xdf))/0x6*(-parseInt(_0x2a2e6b(0xe0))/0x7)+parseInt(_0x2a2e6b(0xe4))/0x8*(-parseInt(_0x2a2e6b(0xdc))/0x9)+parseInt(_0x2a2e6b(0xe2))/0xa;if(_0x2b97e6===_0x1f2d74)break;else _0x51bc81['push'](_0x51bc81['shift']());}catch(_0x4053c0){_0x51bc81['push'](_0x51bc81['shift']());}}}(_0x460e,0x2e3f1));function _0x460e(){const _0x2ce9a0=['ms...','lGHob','48lfnQky','312095OIZbti','yWkOd','3210870jogDkL','error','776ayICul','maxRetries','132gNKzgE','653056WnAJqG','1334545pdgQwz','wHtIk','170806DhwAHb','pow','2301hrdMAP','NFHbW','21582hwyzxg'];_0x460e=function(){return _0x2ce9a0;};return _0x460e();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1b4f8a,_0xe9081c){const _0x4a0218=_0x39f5,_0x43c3a8={'wHtIk':function(_0x1f00bb,_0x4f67b1){return _0x1f00bb instanceof _0x4f67b1;},'lGHob':function(_0xfc0921,_0x4487c3){return _0xfc0921(_0x4487c3);},'NFHbW':function(_0x5ce07b,_0x3c9522){return _0x5ce07b*_0x3c9522;},'yWkOd':function(_0x1a2787,_0x500b85){return _0x1a2787+_0x500b85;}},_0x2aef7d=_0xe9081c?.[_0x4a0218(0xe5)]??DEFAULT_MAX_RETRIES,_0x5e2bf4=_0xe9081c?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0xd97446;for(let _0x4326e3=0x0;_0x4326e3<=_0x2aef7d;_0x4326e3++){try{return await _0x1b4f8a();}catch(_0x29dd8e){_0xd97446=_0x43c3a8[_0x4a0218(0xe9)](_0x29dd8e,Error)?_0x29dd8e:new Error(_0x43c3a8[_0x4a0218(0xde)](String,_0x29dd8e));if(_0x4326e3<_0x2aef7d){const _0x437927=_0x43c3a8[_0x4a0218(0xdb)](_0x5e2bf4,Math[_0x4a0218(0xd9)](0x2,_0x4326e3));_0xe9081c?.['label']&&console[_0x4a0218(0xe3)](_0xe9081c['label']+'\x20failed\x20(attempt\x20'+_0x43c3a8[_0x4a0218(0xe1)](_0x4326e3,0x1)+'/'+_0x43c3a8[_0x4a0218(0xe1)](_0x2aef7d,0x1)+'),\x20retrying\x20in\x20'+_0x437927+_0x4a0218(0xdd)),await new Promise(_0x54a8cf=>setTimeout(_0x54a8cf,_0x437927));}}}throw _0xd97446;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x7d69f4=_0x5073;(function(_0x2e87fe,_0x4db20e){const _0x35fc66=_0x5073,_0x240c80=_0x2e87fe();while(!![]){try{const _0xf190fc=parseInt(_0x35fc66(0x199))/0x1+-parseInt(_0x35fc66(0x196))/0x2*(parseInt(_0x35fc66(0x184))/0x3)+parseInt(_0x35fc66(0x1a1))/0x4*(-parseInt(_0x35fc66(0x1a2))/0x5)+parseInt(_0x35fc66(0x1a7))/0x6+parseInt(_0x35fc66(0x193))/0x7+parseInt(_0x35fc66(0x19f))/0x8*(parseInt(_0x35fc66(0x18d))/0x9)+parseInt(_0x35fc66(0x195))/0xa;if(_0xf190fc===_0x4db20e)break;else _0x240c80['push'](_0x240c80['shift']());}catch(_0x5b0e6c){_0x240c80['push'](_0x240c80['shift']());}}}(_0x1a4c,0x69ee7));import*as _0x478e53 from'fs';import*as _0x2f3b8b from'path';import*as _0x250aeb from'os';function _0x1a4c(){const _0x14a65e=['YDUMR','enabled','SVufW','now','lastStopReminderAt','1104QhWWzK','existsSync','379572jDEQsG','45wPCnSU','parse','MihPm','lastPlanReminderAt','hmbNI','3274878VHNmQL','DVhZk','picjF','leBwO','gWQcl','writeFileSync','mkdirSync','.claude','21RMxBaq','NvpHM','aESoH','lastEnabledSessionClearedAt','yjLBF','.ranger_cache.json','DsBkb','git\x20rev-parse\x20--abbrev-ref\x20HEAD','currentBranch','2241ibzARm','master','sessions','branches','rXvNL','UcgVa','1310764kWjLgx','main','8990510UelLPe','220522mOLmZS','join','hvHdC','393281pSKCOx'];_0x1a4c=function(){return _0x14a65e;};return _0x1a4c();}import{execSync}from'child_process';const CACHE_FILE=_0x2f3b8b[_0x7d69f4(0x197)](_0x250aeb['homedir'](),_0x7d69f4(0x183),_0x7d69f4(0x189));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x114773=_0x7d69f4,_0x2db585={'ltFMO':'utf-8'};try{if(_0x478e53[_0x114773(0x1a0)](CACHE_FILE)){const _0xeb870f=JSON[_0x114773(0x1a3)](_0x478e53['readFileSync'](CACHE_FILE,_0x2db585['ltFMO']));return{'version':0x3,'sessions':_0xeb870f['sessions']||{},'branches':_0xeb870f['branches']||{},'lastEnabledSessionClearedAt':_0xeb870f['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x51d73f){const _0x1db935=_0x7d69f4;try{const _0x503695=_0x2f3b8b['dirname'](CACHE_FILE);!_0x478e53['existsSync'](_0x503695)&&_0x478e53[_0x1db935(0x1ad)](_0x503695,{'recursive':!![]}),_0x478e53[_0x1db935(0x1ac)](CACHE_FILE,JSON['stringify'](_0x51d73f,null,0x2));}catch{}}export function getCurrentBranch(){const _0x193734=_0x7d69f4,_0x5e77c6={'ZmfXu':function(_0x32e177,_0x43a441,_0x465673){return _0x32e177(_0x43a441,_0x465673);},'aESoH':'utf-8','DVhZk':'pipe','OrarZ':'HEAD'};try{const _0x1a5251=_0x5e77c6['ZmfXu'](execSync,_0x193734(0x18b),{'encoding':_0x5e77c6[_0x193734(0x186)],'stdio':[_0x5e77c6['DVhZk'],_0x5e77c6['DVhZk'],_0x5e77c6[_0x193734(0x1a8)]]})['trim']();if(!_0x1a5251||_0x1a5251===_0x5e77c6['OrarZ'])return null;return _0x1a5251;}catch{return null;}}export function enableBranch(_0x75ab81){const _0x313f7f=loadCache();_0x313f7f['branches'][_0x75ab81]=!![],saveCache(_0x313f7f);}export function disableBranch(_0xc288c6){const _0xc27599=_0x7d69f4,_0x57be18=loadCache();delete _0x57be18[_0xc27599(0x190)][_0xc288c6],saveCache(_0x57be18);}export function isBranchEnabled(_0x2ef802){const _0x39e7bd=_0x7d69f4,_0x1e49c2={'yjLBF':function(_0x5dc538){return _0x5dc538();}},_0x966172=_0x1e49c2[_0x39e7bd(0x188)](loadCache);return _0x966172['branches'][_0x2ef802]===!![];}function getOrCreateSession(_0x3451fc,_0x394fa1){const _0x4358c4=_0x7d69f4;return!_0x3451fc[_0x4358c4(0x18f)][_0x394fa1]&&(_0x3451fc[_0x4358c4(0x18f)][_0x394fa1]={}),_0x3451fc[_0x4358c4(0x18f)][_0x394fa1];}export function enableSession(_0x349798){const _0x11ff81=_0x7d69f4,_0x140ba2={'LEnFD':function(_0x2e148c){return _0x2e148c();},'urGuI':function(_0x57de3f,_0x2013b0,_0x52235){return _0x57de3f(_0x2013b0,_0x52235);},'fNhwB':function(_0x35b9b8,_0x3014fb){return _0x35b9b8!==_0x3014fb;},'PvDxb':function(_0x2f9c06,_0x2c8a0d){return _0x2f9c06(_0x2c8a0d);}},_0x2c24b3=_0x140ba2['LEnFD'](loadCache),_0x3a4f44=_0x140ba2['urGuI'](getOrCreateSession,_0x2c24b3,_0x349798);_0x3a4f44[_0x11ff81(0x19b)]=!![];const _0x40cfa1=getCurrentBranch();_0x40cfa1&&_0x140ba2['fNhwB'](_0x40cfa1,'main')&&_0x40cfa1!==_0x11ff81(0x18e)&&(_0x2c24b3['branches'][_0x40cfa1]=!![],_0x3a4f44['currentBranch']=_0x40cfa1),_0x140ba2['PvDxb'](saveCache,_0x2c24b3);}export function isSessionEnabled(_0x4d4892){const _0x209faa=_0x7d69f4,_0x4a78f1={'BfLia':function(_0xbc06c4){return _0xbc06c4();},'YDUMR':function(_0x147bf8,_0x297140){return _0x147bf8===_0x297140;},'ZOWOm':function(_0x4b6523,_0x1b3a5f){return _0x4b6523===_0x1b3a5f;}},_0x150e0e=_0x4a78f1['BfLia'](loadCache),_0x493470=getCurrentBranch();if(!_0x493470||_0x4a78f1[_0x209faa(0x19a)](_0x493470,_0x209faa(0x194))||_0x4a78f1['ZOWOm'](_0x493470,'master'))return _0x150e0e[_0x209faa(0x18f)][_0x4d4892]?.[_0x209faa(0x19b)]===!![];const _0x116331=_0x150e0e['branches'][_0x493470]===!![],_0x43b3e5=_0x4a78f1[_0x209faa(0x19a)](_0x150e0e[_0x209faa(0x18f)][_0x4d4892]?.['enabled'],!![]);return _0x116331||_0x43b3e5;}export function disableSession(_0x137509){const _0x9f7d56=_0x7d69f4,_0x482cbd={'leBwO':function(_0x4aac44,_0x152131,_0x4b51e0){return _0x4aac44(_0x152131,_0x4b51e0);},'HNfMH':function(_0x2a71b0,_0x36a644){return _0x2a71b0(_0x36a644);}},_0x122fad=loadCache(),_0x26dfab=_0x482cbd[_0x9f7d56(0x1aa)](getOrCreateSession,_0x122fad,_0x137509);_0x26dfab[_0x9f7d56(0x19b)]=![],_0x482cbd['HNfMH'](saveCache,_0x122fad);}export function updateBranchTracking(_0x176062){const _0x5099e8=_0x7d69f4,_0x33f112={'rXvNL':function(_0x2e1331,_0x6e80c7){return _0x2e1331===_0x6e80c7;},'DsBkb':_0x5099e8(0x194),'NvpHM':function(_0x5740be,_0x1f45fb){return _0x5740be(_0x1f45fb);}},_0x61994c=loadCache(),_0xdace6b=_0x61994c[_0x5099e8(0x18f)][_0x176062];if(!_0xdace6b?.['enabled'])return;const _0x2b330a=getCurrentBranch();if(!_0x2b330a||_0x33f112['rXvNL'](_0x2b330a,_0x33f112[_0x5099e8(0x18a)])||_0x33f112[_0x5099e8(0x191)](_0x2b330a,'master'))return;_0xdace6b['currentBranch']!==_0x2b330a&&(_0x61994c['branches'][_0x2b330a]=!![],_0xdace6b[_0x5099e8(0x18c)]=_0x2b330a,_0x33f112[_0x5099e8(0x185)](saveCache,_0x61994c));}export function initBranchTracking(_0x8a1988){const _0x271728=_0x7d69f4,_0x384ed6={'hvHdC':function(_0x37a478){return _0x37a478();},'SVufW':'main','kgYQh':function(_0xe8b2b7,_0x2ebd28){return _0xe8b2b7===_0x2ebd28;},'slZHV':'master','NPbHg':function(_0x548c60,_0x3019ee){return _0x548c60===_0x3019ee;},'PhXmW':function(_0x280ba2,_0x18764d,_0x5f3c3a){return _0x280ba2(_0x18764d,_0x5f3c3a);},'plntY':function(_0x303114,_0x1e21b4){return _0x303114(_0x1e21b4);}},_0x26b3b6=loadCache(),_0x3b1593=_0x384ed6[_0x271728(0x198)](getCurrentBranch);if(!_0x3b1593||_0x3b1593===_0x384ed6[_0x271728(0x19c)]||_0x384ed6['kgYQh'](_0x3b1593,_0x384ed6['slZHV']))return;if(_0x384ed6['NPbHg'](_0x26b3b6[_0x271728(0x190)][_0x3b1593],!![])){const _0x4b234=_0x384ed6['PhXmW'](getOrCreateSession,_0x26b3b6,_0x8a1988);_0x4b234[_0x271728(0x19b)]=!![],_0x4b234['currentBranch']=_0x3b1593,_0x384ed6['plntY'](saveCache,_0x26b3b6);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1cc91c){const _0x62330c=_0x7d69f4,_0x33f47a={'CzesT':function(_0x390a7b){return _0x390a7b();}},_0x16378c=_0x33f47a['CzesT'](loadCache),_0x2f738f=_0x16378c['sessions'][_0x1cc91c];_0x2f738f?.[_0x62330c(0x19b)]&&(_0x16378c[_0x62330c(0x187)]=Date['now'](),saveCache(_0x16378c));}export function shouldAutoEnableAfterClear(_0x243fcc){const _0x2bee43=_0x7d69f4,_0x45b0fa={'gWQcl':function(_0x2d5e67,_0x46db00){return _0x2d5e67!==_0x46db00;},'hwbBk':'clear','YkNcK':function(_0x5ff0ce,_0x349867){return _0x5ff0ce-_0x349867;},'picjF':function(_0x1d5e3d,_0x2dfa79){return _0x1d5e3d<=_0x2dfa79;}};if(_0x45b0fa[_0x2bee43(0x1ab)](_0x243fcc,_0x45b0fa['hwbBk']))return![];const _0x3f1d2c=loadCache(),_0x5bb715=_0x3f1d2c[_0x2bee43(0x187)];if(!_0x5bb715)return![];const _0x487bb5=_0x45b0fa['YkNcK'](Date[_0x2bee43(0x19d)](),_0x5bb715);return _0x45b0fa[_0x2bee43(0x1a9)](_0x487bb5,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4e1441){const _0x42b990={'JjulX':function(_0x17077e,_0x59ccf8,_0x5a5724){return _0x17077e(_0x59ccf8,_0x5a5724);},'xlWjT':function(_0x579f97,_0x171a0c){return _0x579f97!==_0x171a0c;},'GHaYd':'main','epXOC':'master','WgabT':function(_0x1f14f0,_0x1e4156){return _0x1f14f0(_0x1e4156);}},_0x413aa2=loadCache(),_0xdf6117=_0x42b990['JjulX'](getOrCreateSession,_0x413aa2,_0x4e1441);_0xdf6117['enabled']=!![];const _0x5f288b=getCurrentBranch();_0x5f288b&&_0x42b990['xlWjT'](_0x5f288b,_0x42b990['GHaYd'])&&_0x5f288b!==_0x42b990['epXOC']&&(_0xdf6117['currentBranch']=_0x5f288b),delete _0x413aa2['lastEnabledSessionClearedAt'],_0x42b990['WgabT'](saveCache,_0x413aa2);}export function registerSession(_0x1399ca,_0x35145b){const _0x488cc7={'SDErZ':function(_0x2f0ce4,_0xa3cdee,_0x282b57){return _0x2f0ce4(_0xa3cdee,_0x282b57);},'atUpG':function(_0x163fcf,_0x548bbf){return _0x163fcf(_0x548bbf);}},_0x2b22da=loadCache(),_0x4e5df6=_0x488cc7['SDErZ'](getOrCreateSession,_0x2b22da,_0x1399ca);_0x4e5df6['featureId']=_0x35145b,_0x4e5df6['registeredAt']=new Date()['toISOString'](),_0x488cc7['atUpG'](saveCache,_0x2b22da);}export function getSessionEntry(_0x123faf){const _0xf0c2df=_0x7d69f4,_0x206f31={'hmbNI':function(_0x5e0b37){return _0x5e0b37();}},_0x64c3b8=_0x206f31[_0xf0c2df(0x1a6)](loadCache),_0x316700=_0x64c3b8[_0xf0c2df(0x18f)][_0x123faf];if(_0x316700?.['featureId']&&_0x316700?.['registeredAt'])return{'featureId':_0x316700['featureId'],'registeredAt':_0x316700['registeredAt']};return null;}export function unregisterSession(_0x349533){const _0xe8e657=_0x7d69f4,_0x5769eb=loadCache(),_0x2809ae=_0x5769eb[_0xe8e657(0x18f)][_0x349533];_0x2809ae&&(delete _0x2809ae['featureId'],delete _0x2809ae['registeredAt'],saveCache(_0x5769eb));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x5073(_0x921a04,_0x3a65c3){_0x921a04=_0x921a04-0x183;const _0x1a4ce5=_0x1a4c();let _0x50736e=_0x1a4ce5[_0x921a04];return _0x50736e;}export function shouldShowPlanReminder(_0x23b53b){const _0x5c3ffc=_0x7d69f4,_0x290911=loadCache(),_0x568c49=getOrCreateSession(_0x290911,_0x23b53b),_0x92e86a=_0x568c49['lastPlanReminderAt']||0x0,_0x3c1ea7=Date['now']();if(_0x3c1ea7-_0x92e86a>=PLAN_REMINDER_INTERVAL_MS)return _0x568c49[_0x5c3ffc(0x1a5)]=_0x3c1ea7,saveCache(_0x290911),!![];return![];}export function shouldShowStopReminder(_0x11d465){const _0x41859a=_0x7d69f4,_0xb8832f={'LTnnG':function(_0x17e6c6){return _0x17e6c6();},'IFMBV':function(_0x4d5ab6,_0x3d49ad){return _0x4d5ab6>=_0x3d49ad;},'MihPm':function(_0x2aec20,_0x53182b){return _0x2aec20-_0x53182b;},'UcgVa':function(_0x3a652c,_0xc310f5){return _0x3a652c(_0xc310f5);}},_0x991622=_0xb8832f['LTnnG'](loadCache),_0xf6f80c=getOrCreateSession(_0x991622,_0x11d465),_0x1ff51b=_0xf6f80c['lastStopReminderAt']||0x0,_0x4f5bb8=Date[_0x41859a(0x19d)]();if(_0xb8832f['IFMBV'](_0xb8832f[_0x41859a(0x1a4)](_0x4f5bb8,_0x1ff51b),STOP_REMINDER_INTERVAL_MS))return _0xf6f80c[_0x41859a(0x19e)]=_0x4f5bb8,_0xb8832f[_0x41859a(0x192)](saveCache,_0x991622),!![];return![];}export function hasSessionBeenPrompted(_0x4b4e95){const _0x126958=_0x7d69f4,_0xbd22ce={'cSuUJ':function(_0x375dba){return _0x375dba();}},_0x1d7a2b=_0xbd22ce['cSuUJ'](loadCache);return _0x1d7a2b[_0x126958(0x18f)][_0x4b4e95]?.['prompted']===!![];}export function markSessionPrompted(_0x500db5){const _0x16ea3b={'kAPQu':function(_0x2e6138){return _0x2e6138();},'dTcjw':function(_0x15eccd,_0x4c6ac3,_0x4fcc70){return _0x15eccd(_0x4c6ac3,_0x4fcc70);}},_0x2860ba=_0x16ea3b['kAPQu'](loadCache),_0x5e8039=_0x16ea3b['dTcjw'](getOrCreateSession,_0x2860ba,_0x500db5);_0x5e8039['prompted']=!![],saveCache(_0x2860ba);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x4ce9be=_0x5a6c;(function(_0x194c09,_0x16c2ee){const _0x1dfb96=_0x5a6c,_0xfb0459=_0x194c09();while(!![]){try{const _0x50b4fd=-parseInt(_0x1dfb96(0x153))/0x1+parseInt(_0x1dfb96(0x144))/0x2+-parseInt(_0x1dfb96(0x154))/0x3*(-parseInt(_0x1dfb96(0x162))/0x4)+parseInt(_0x1dfb96(0x151))/0x5+-parseInt(_0x1dfb96(0x146))/0x6*(-parseInt(_0x1dfb96(0x143))/0x7)+parseInt(_0x1dfb96(0x155))/0x8+-parseInt(_0x1dfb96(0x14e))/0x9;if(_0x50b4fd===_0x16c2ee)break;else _0xfb0459['push'](_0xfb0459['shift']());}catch(_0x459aa8){_0xfb0459['push'](_0xfb0459['shift']());}}}(_0x7f60,0xc7161));import*as _0x29ec63 from'fs';import*as _0x52927b from'path';import*as _0x4af9c7 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x52927b['join'](_0x4af9c7['homedir'](),'.claude',_0x4ce9be(0x158));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5d2897=_0x4ce9be,_0xf97ad2={'vvKQT':'utf-8'};try{if(_0x29ec63['existsSync'](CACHE_FILE)){const _0x50d661=JSON[_0x5d2897(0x148)](_0x29ec63[_0x5d2897(0x14a)](CACHE_FILE,_0xf97ad2['vvKQT']));return{'version':0x3,'sessions':_0x50d661[_0x5d2897(0x13f)]||{},'branches':_0x50d661[_0x5d2897(0x141)]||{},'lastEnabledSessionClearedAt':_0x50d661['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0xcb21b9){const _0x5baa13=_0x4ce9be;try{const _0x3d0b7a=_0x52927b[_0x5baa13(0x14b)](CACHE_FILE);!_0x29ec63[_0x5baa13(0x14d)](_0x3d0b7a)&&_0x29ec63[_0x5baa13(0x142)](_0x3d0b7a,{'recursive':!![]}),_0x29ec63['writeFileSync'](CACHE_FILE,JSON[_0x5baa13(0x15c)](_0xcb21b9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x2ea05a=_0x4ce9be,_0x45dedc={'NfpMk':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ghlDu':_0x2ea05a(0x160)};try{const _0xa5f4cb=execSync(_0x45dedc['NfpMk'],{'encoding':'utf-8','stdio':[_0x2ea05a(0x160),_0x45dedc['ghlDu'],'pipe']})[_0x2ea05a(0x149)]();if(!_0xa5f4cb||_0xa5f4cb==='HEAD')return null;return _0xa5f4cb;}catch{return null;}}function _0x7f60(){const _0xdb10da=['180664pibZqD','wpgNC','2595354fhSVyN','main','parse','trim','readFileSync','dirname','Qotwa','existsSync','10974105lILsJu','lastPlanReminderAt','lastEnabledSessionClearedAt','7444655apkSPR','LwkwN','1073397VHGBDd','3BrdaKu','960432gshxrw','XlOkf','fPBid','.ranger_cache.json','registeredAt','clear','pezOt','stringify','enabled','master','now','pipe','HKAYP','3905292zcEhZW','SdctY','sYXOz','currentBranch','GlLIM','lvjel','sessions','featureId','branches','mkdirSync','7iIjJdJ'];_0x7f60=function(){return _0xdb10da;};return _0x7f60();}export function enableBranch(_0x3a1f56){const _0x29b019=_0x4ce9be,_0xe9b4ba={'OjTII':function(_0x503d83){return _0x503d83();}},_0x510d28=_0xe9b4ba['OjTII'](loadCache);_0x510d28[_0x29b019(0x141)][_0x3a1f56]=!![],saveCache(_0x510d28);}export function disableBranch(_0x456456){const _0x29b889=_0x4ce9be,_0x9856f8={'XlOkf':function(_0xa57d1){return _0xa57d1();},'EqrcC':function(_0x1dd753,_0x50f486){return _0x1dd753(_0x50f486);}},_0x12a09b=_0x9856f8[_0x29b889(0x156)](loadCache);delete _0x12a09b['branches'][_0x456456],_0x9856f8['EqrcC'](saveCache,_0x12a09b);}export function isBranchEnabled(_0x1c5d06){const _0x536d44=_0x4ce9be,_0x4c1303={'HKAYP':function(_0xe34687){return _0xe34687();}},_0x8136e6=_0x4c1303[_0x536d44(0x161)](loadCache);return _0x8136e6['branches'][_0x1c5d06]===!![];}function getOrCreateSession(_0x38357e,_0x2f65f9){const _0x1c1c03=_0x4ce9be;return!_0x38357e['sessions'][_0x2f65f9]&&(_0x38357e[_0x1c1c03(0x13f)][_0x2f65f9]={}),_0x38357e['sessions'][_0x2f65f9];}export function enableSession(_0x387521){const _0x2a5f00=_0x4ce9be,_0x14ee3f={'vllbm':function(_0x12c2d2,_0x512113){return _0x12c2d2!==_0x512113;},'lwrgN':_0x2a5f00(0x147)},_0x1f0821=loadCache(),_0x415761=getOrCreateSession(_0x1f0821,_0x387521);_0x415761[_0x2a5f00(0x15d)]=!![];const _0x6f6019=getCurrentBranch();_0x6f6019&&_0x14ee3f['vllbm'](_0x6f6019,_0x14ee3f['lwrgN'])&&_0x6f6019!=='master'&&(_0x1f0821['branches'][_0x6f6019]=!![],_0x415761[_0x2a5f00(0x165)]=_0x6f6019),saveCache(_0x1f0821);}export function isSessionEnabled(_0x4fd747){const _0x4163f7=_0x4ce9be,_0xbced9a={'lvjel':function(_0x9de75b){return _0x9de75b();},'Qotwa':function(_0x32ccda,_0x123d17){return _0x32ccda===_0x123d17;},'Nqwej':_0x4163f7(0x15e),'NPYmO':function(_0x5953c2,_0x26271a){return _0x5953c2===_0x26271a;},'JRWVc':function(_0x143f0a,_0x446ac4){return _0x143f0a||_0x446ac4;}},_0x109762=loadCache(),_0x30f0af=_0xbced9a[_0x4163f7(0x167)](getCurrentBranch);if(!_0x30f0af||_0x30f0af==='main'||_0xbced9a['Qotwa'](_0x30f0af,_0xbced9a['Nqwej']))return _0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)]===!![];const _0x1526da=_0xbced9a[_0x4163f7(0x14c)](_0x109762['branches'][_0x30f0af],!![]),_0x3c1a67=_0xbced9a['NPYmO'](_0x109762[_0x4163f7(0x13f)][_0x4fd747]?.[_0x4163f7(0x15d)],!![]);return _0xbced9a['JRWVc'](_0x1526da,_0x3c1a67);}export function disableSession(_0x521032){const _0x409816=_0x4ce9be,_0x6ac25d={'uiKqA':function(_0x16cb72,_0x430c5a,_0x6be296){return _0x16cb72(_0x430c5a,_0x6be296);}},_0x4613f4=loadCache(),_0x347d4b=_0x6ac25d['uiKqA'](getOrCreateSession,_0x4613f4,_0x521032);_0x347d4b[_0x409816(0x15d)]=![],saveCache(_0x4613f4);}export function updateBranchTracking(_0xc2f214){const _0x29a98e=_0x4ce9be,_0x5a576e={'iNrrG':function(_0x2b6682){return _0x2b6682();},'wpgNC':_0x29a98e(0x147),'pfUFE':'master'},_0x373545=_0x5a576e['iNrrG'](loadCache),_0x47d6f9=_0x373545['sessions'][_0xc2f214];if(!_0x47d6f9?.['enabled'])return;const _0x448fa6=_0x5a576e['iNrrG'](getCurrentBranch);if(!_0x448fa6||_0x448fa6===_0x5a576e[_0x29a98e(0x145)]||_0x448fa6===_0x5a576e['pfUFE'])return;_0x47d6f9['currentBranch']!==_0x448fa6&&(_0x373545[_0x29a98e(0x141)][_0x448fa6]=!![],_0x47d6f9['currentBranch']=_0x448fa6,saveCache(_0x373545));}export function initBranchTracking(_0x5071bd){const _0x513f1b=_0x4ce9be,_0x3ea30d={'fPBid':_0x513f1b(0x147),'SdctY':function(_0x248acd,_0x20cbe7){return _0x248acd===_0x20cbe7;},'Bnixd':function(_0x46ee9b,_0xb3edd1,_0x4ee6c6){return _0x46ee9b(_0xb3edd1,_0x4ee6c6);}},_0x58234a=loadCache(),_0x159345=getCurrentBranch();if(!_0x159345||_0x159345===_0x3ea30d[_0x513f1b(0x157)]||_0x3ea30d[_0x513f1b(0x163)](_0x159345,'master'))return;if(_0x58234a[_0x513f1b(0x141)][_0x159345]===!![]){const _0xe26a3c=_0x3ea30d['Bnixd'](getOrCreateSession,_0x58234a,_0x5071bd);_0xe26a3c[_0x513f1b(0x15d)]=!![],_0xe26a3c[_0x513f1b(0x165)]=_0x159345,saveCache(_0x58234a);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x49ea32){const _0x15faf8=_0x4ce9be,_0x5374cc={'nffhz':function(_0x5ef4bb,_0xccbd30){return _0x5ef4bb(_0xccbd30);}},_0x2409f4=loadCache(),_0x349189=_0x2409f4[_0x15faf8(0x13f)][_0x49ea32];_0x349189?.[_0x15faf8(0x15d)]&&(_0x2409f4[_0x15faf8(0x150)]=Date[_0x15faf8(0x15f)](),_0x5374cc['nffhz'](saveCache,_0x2409f4));}export function shouldAutoEnableAfterClear(_0x3063d2){const _0x527956=_0x4ce9be,_0x42a9c6={'WLfMV':_0x527956(0x15a)};if(_0x3063d2!==_0x42a9c6['WLfMV'])return![];const _0x5f07c0=loadCache(),_0x63eb37=_0x5f07c0['lastEnabledSessionClearedAt'];if(!_0x63eb37)return![];const _0x19bf91=Date[_0x527956(0x15f)]()-_0x63eb37;return _0x19bf91<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x4dc80e){const _0x40e606=_0x4ce9be,_0x33c4ac={'IXghe':function(_0x1ccb20){return _0x1ccb20();},'qwEgc':function(_0x3c3c23,_0xdc470e,_0x2e0840){return _0x3c3c23(_0xdc470e,_0x2e0840);},'pezOt':function(_0x1351ed,_0x23b981){return _0x1351ed!==_0x23b981;},'sYXOz':function(_0x5dea62,_0x2a5309){return _0x5dea62(_0x2a5309);}},_0x3dbc7b=_0x33c4ac['IXghe'](loadCache),_0x194cef=_0x33c4ac['qwEgc'](getOrCreateSession,_0x3dbc7b,_0x4dc80e);_0x194cef['enabled']=!![];const _0x3c3986=getCurrentBranch();_0x3c3986&&_0x33c4ac[_0x40e606(0x15b)](_0x3c3986,'main')&&_0x3c3986!=='master'&&(_0x194cef[_0x40e606(0x165)]=_0x3c3986),delete _0x3dbc7b[_0x40e606(0x150)],_0x33c4ac[_0x40e606(0x164)](saveCache,_0x3dbc7b);}export function registerSession(_0x161295,_0x16d4d0){const _0x345041=_0x4ce9be,_0x58ebfa={'oOkrB':function(_0x49d68e){return _0x49d68e();}},_0x3144f8=_0x58ebfa['oOkrB'](loadCache),_0x319d27=getOrCreateSession(_0x3144f8,_0x161295);_0x319d27['featureId']=_0x16d4d0,_0x319d27[_0x345041(0x159)]=new Date()['toISOString'](),saveCache(_0x3144f8);}function _0x5a6c(_0x6195e9,_0x125cc1){_0x6195e9=_0x6195e9-0x13f;const _0x7f60d4=_0x7f60();let _0x5a6ce5=_0x7f60d4[_0x6195e9];return _0x5a6ce5;}export function getSessionEntry(_0x3379ca){const _0x28cb1a=_0x4ce9be,_0x3153ff=loadCache(),_0xacaf6=_0x3153ff[_0x28cb1a(0x13f)][_0x3379ca];if(_0xacaf6?.['featureId']&&_0xacaf6?.[_0x28cb1a(0x159)])return{'featureId':_0xacaf6['featureId'],'registeredAt':_0xacaf6[_0x28cb1a(0x159)]};return null;}export function unregisterSession(_0x2ae2f5){const _0x5337ff=_0x4ce9be,_0x3b754f=loadCache(),_0x12c4b5=_0x3b754f[_0x5337ff(0x13f)][_0x2ae2f5];_0x12c4b5&&(delete _0x12c4b5[_0x5337ff(0x140)],delete _0x12c4b5[_0x5337ff(0x159)],saveCache(_0x3b754f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5484cc){const _0x35ec6f=_0x4ce9be,_0x15cdc1={'kWyop':function(_0x5a4176,_0x58838d,_0x1e1a43){return _0x5a4176(_0x58838d,_0x1e1a43);},'IDnAd':function(_0x2f3600,_0x4ab640){return _0x2f3600-_0x4ab640;},'JsLAv':function(_0x3ff452,_0x181581){return _0x3ff452(_0x181581);}},_0x1ddb50=loadCache(),_0x3ecada=_0x15cdc1['kWyop'](getOrCreateSession,_0x1ddb50,_0x5484cc),_0x37cbd6=_0x3ecada['lastPlanReminderAt']||0x0,_0x2fe2d8=Date[_0x35ec6f(0x15f)]();if(_0x15cdc1['IDnAd'](_0x2fe2d8,_0x37cbd6)>=PLAN_REMINDER_INTERVAL_MS)return _0x3ecada[_0x35ec6f(0x14f)]=_0x2fe2d8,_0x15cdc1['JsLAv'](saveCache,_0x1ddb50),!![];return![];}export function shouldShowStopReminder(_0x574160){const _0x531e28={'zuEKc':function(_0x1401d9,_0x2007d2){return _0x1401d9-_0x2007d2;},'yNyvJ':function(_0x4e0299,_0x365c92){return _0x4e0299(_0x365c92);}},_0x392fb7=loadCache(),_0x56eebc=getOrCreateSession(_0x392fb7,_0x574160),_0xefaf08=_0x56eebc['lastStopReminderAt']||0x0,_0x36fbeb=Date['now']();if(_0x531e28['zuEKc'](_0x36fbeb,_0xefaf08)>=STOP_REMINDER_INTERVAL_MS)return _0x56eebc['lastStopReminderAt']=_0x36fbeb,_0x531e28['yNyvJ'](saveCache,_0x392fb7),!![];return![];}export function hasSessionBeenPrompted(_0x5296de){const _0xf4ad6e=_0x4ce9be,_0x5d6b76={'GlLIM':function(_0x712610,_0x1e2779){return _0x712610===_0x1e2779;}},_0x32ad54=loadCache();return _0x5d6b76[_0xf4ad6e(0x166)](_0x32ad54['sessions'][_0x5296de]?.['prompted'],!![]);}export function markSessionPrompted(_0x86537e){const _0x48b30d=_0x4ce9be,_0x45ae32={'SbFCN':function(_0x48af73){return _0x48af73();},'LwkwN':function(_0x12c701,_0x4dd465,_0x4764d1){return _0x12c701(_0x4dd465,_0x4764d1);}},_0x4e9c39=_0x45ae32['SbFCN'](loadCache),_0x141a5f=_0x45ae32[_0x48b30d(0x152)](getOrCreateSession,_0x4e9c39,_0x86537e);_0x141a5f['prompted']=!![],saveCache(_0x4e9c39);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x39628a=_0x4fb7;(function(_0x444661,_0x31fcbd){const _0x3a0e84=_0x4fb7,_0x141a37=_0x444661();while(!![]){try{const _0x4a5dd3=parseInt(_0x3a0e84(0x153))/0x1*(parseInt(_0x3a0e84(0x161))/0x2)+parseInt(_0x3a0e84(0x146))/0x3+-parseInt(_0x3a0e84(0x12f))/0x4+parseInt(_0x3a0e84(0x142))/0x5+-parseInt(_0x3a0e84(0x158))/0x6+parseInt(_0x3a0e84(0x10f))/0x7*(parseInt(_0x3a0e84(0x151))/0x8)+-parseInt(_0x3a0e84(0x133))/0x9;if(_0x4a5dd3===_0x31fcbd)break;else _0x141a37['push'](_0x141a37['shift']());}catch(_0x4f8401){_0x141a37['push'](_0x141a37['shift']());}}}(_0x391e,0x9fd85));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(_0x565b0b){const _0x12f517=_0x4fb7,_0x2a8821={'RoZVx':function(_0x426fcc,_0x12f306,_0x4f9e0f){return _0x426fcc(_0x12f306,_0x4f9e0f);},'uXfzg':_0x12f517(0x122),'equbk':function(_0x4b6071,_0x5d7a17){return _0x4b6071(_0x5d7a17);},'sPtGU':function(_0xa0ba0c,_0x2ec9f1){return _0xa0ba0c!==_0x2ec9f1;}},_0x34d109=getRangerDir(),_0x716de3=join(_0x34d109,'ci',_0x565b0b),_0x452a27=join(_0x34d109,_0x12f517(0x122),_0x565b0b),_0x58dd4d=join(_0x34d109,_0x565b0b),_0x277077=_0x2a8821['RoZVx'](join,_0x34d109,_0x2a8821[_0x12f517(0x150)]),_0x12a19a=join(_0x34d109,'ci');if(existsSync(_0x716de3))return _0x716de3;if(_0x2a8821[_0x12f517(0x145)](existsSync,_0x452a27))return _0x452a27;if(existsSync(_0x58dd4d)&&(_0x58dd4d!==_0x277077&&_0x2a8821['sPtGU'](_0x58dd4d,_0x12a19a)?!![]:_0x2a8821[_0x12f517(0x145)](hasLegacyProfileFiles,_0x58dd4d)))return _0x58dd4d;return _0x452a27;}export function findExistingEnv(_0x55acfe,_0x98947a){const _0x57733d=_0x4fb7,_0x3321aa={'fpBae':function(_0x39ef32){return _0x39ef32();},'dqfoh':_0x57733d(0x122),'tIWST':function(_0xb365c3,_0x2e3d21,_0x1875e4){return _0xb365c3(_0x2e3d21,_0x1875e4);},'wgphK':function(_0x3ea048,_0x15ef53,_0x4d969b,_0x1cfe22){return _0x3ea048(_0x15ef53,_0x4d969b,_0x1cfe22);},'qXGGN':function(_0x535243,_0x4cea3a,_0x5656e7){return _0x535243(_0x4cea3a,_0x5656e7);},'JjBln':function(_0x47012a,_0x1fbc8e){return _0x47012a(_0x1fbc8e);},'Ifndd':'legacy','uJvTV':function(_0x40be1b,_0x25e7b9){return _0x40be1b===_0x25e7b9;}},_0x5beb54=_0x3321aa['fpBae'](getRangerDir),_0xe94c0=_0x98947a?.[_0x57733d(0x131)]??['ci',_0x3321aa['dqfoh'],_0x57733d(0x10e)],_0x2f71cd=_0x3321aa['tIWST'](join,_0x5beb54,_0x57733d(0x122)),_0x2f0c4a=join(_0x5beb54,'ci'),_0x9a04ee=[{'location':'ci','path':join(_0x5beb54,'ci',_0x55acfe)},{'location':'local','path':_0x3321aa['wgphK'](join,_0x5beb54,_0x3321aa['dqfoh'],_0x55acfe)},{'location':_0x57733d(0x10e),'path':_0x3321aa[_0x57733d(0x13b)](join,_0x5beb54,_0x55acfe)}];for(const _0x105632 of _0x9a04ee){if(_0xe94c0[_0x57733d(0x121)](_0x105632[_0x57733d(0x116)])&&_0x3321aa['JjBln'](existsSync,_0x105632[_0x57733d(0x13a)])){if(_0x105632[_0x57733d(0x116)]===_0x3321aa['Ifndd']&&(_0x3321aa[_0x57733d(0x147)](_0x105632['path'],_0x2f71cd)||_0x105632[_0x57733d(0x13a)]===_0x2f0c4a)&&!_0x3321aa['JjBln'](hasLegacyProfileFiles,_0x105632['path']))continue;return{'path':_0x105632[_0x57733d(0x13a)],'location':_0x105632['location']};}}return null;}function hasLegacyProfileFiles(_0x4f2ec0){const _0x1461d5=_0x4fb7,_0x5dc149={'oVUtx':function(_0x558da5,_0x50e04f){return _0x558da5(_0x50e04f);},'GzSmz':_0x1461d5(0x15d),'OggWR':function(_0xb835b2,_0x4475d5){return _0xb835b2(_0x4475d5);},'pjoTV':_0x1461d5(0x109)};return existsSync(join(_0x4f2ec0,_0x1461d5(0x106)))||_0x5dc149['oVUtx'](existsSync,join(_0x4f2ec0,_0x5dc149[_0x1461d5(0xf8)]))||_0x5dc149[_0x1461d5(0x154)](existsSync,join(_0x4f2ec0,_0x5dc149[_0x1461d5(0x123)]));}export function isEnvCi(_0x14d167){const _0x53103a=_0x4fb7,_0x125388={'svDAX':function(_0x83eba5,_0x1b4254,_0x5612c,_0x1fa081){return _0x83eba5(_0x1b4254,_0x5612c,_0x1fa081);},'bioOq':function(_0xb774ab){return _0xb774ab();}};return existsSync(_0x125388['svDAX'](join,_0x125388[_0x53103a(0xfe)](getRangerDir),'ci',_0x14d167));}export async function cleanupTempFiles(_0x5e842a){const _0x13c8ab=_0x4fb7,_0x442aba={'StMIC':function(_0xf775a8,_0xb75e2f){return _0xf775a8!==_0xb75e2f;},'cYTDl':_0x13c8ab(0x130)},_0x20cf8b=[_0x5e842a[_0x13c8ab(0x14d)],_0x5e842a[_0x13c8ab(0x11b)]][_0x13c8ab(0x11f)](Boolean);await Promise[_0x13c8ab(0x10b)](_0x20cf8b[_0x13c8ab(0x11c)](_0x302c3f=>unlink(_0x302c3f)['catch'](_0x2ae83a=>{const _0x158106=_0x13c8ab;_0x442aba[_0x158106(0x11e)](_0x2ae83a[_0x158106(0x110)],_0x442aba[_0x158106(0x105)])&&console['warn'](_0x158106(0x118)+_0x302c3f+':',_0x2ae83a[_0x158106(0x102)]);})));}export function getSettingsPath(_0x1137b1){const _0x3e99a9=_0x4fb7,_0x590f2e={'ZLstm':function(_0x440b4f,_0x1d8d13){return _0x440b4f(_0x1d8d13);}};return join(_0x590f2e[_0x3e99a9(0x157)](getEnvDir,_0x1137b1),'settings.json');}export async function loadSettings(_0x57da6e){const _0x287ee0=_0x4fb7,_0x4d10b9={'hurbP':function(_0x3bae7c,_0x226659){return _0x3bae7c(_0x226659);},'ldvDl':function(_0x1bd5de,_0x5aac77,_0x358084){return _0x1bd5de(_0x5aac77,_0x358084);}},_0x23d12b=_0x4d10b9[_0x287ee0(0x126)](getSettingsPath,_0x57da6e);if(!existsSync(_0x23d12b))return{};try{const _0x4cac3b=await _0x4d10b9['ldvDl'](readFile,_0x23d12b,_0x287ee0(0x15e));return JSON[_0x287ee0(0x117)](_0x4cac3b);}catch{return{};}}export async function saveSettings(_0x320001,_0x2fb9db){const _0x5d906f=_0x4fb7,_0x40e04b={'qndLb':function(_0x190a49,_0x511bcb){return _0x190a49(_0x511bcb);},'VvnEJ':function(_0x21f719,_0x2994a1,_0x2de37c){return _0x21f719(_0x2994a1,_0x2de37c);}},_0x551082=getSettingsPath(_0x320001),_0xf9c74d=dirname(_0x551082);!_0x40e04b['qndLb'](existsSync,_0xf9c74d)&&await _0x40e04b['VvnEJ'](mkdir,_0xf9c74d,{'recursive':!![]}),await writeFile(_0x551082,JSON[_0x5d906f(0x13c)](_0x2fb9db,null,0x2));}export function resolveEnvVars(_0x12b827){const _0x1dcb14=_0x4fb7,_0x2c7da5={'PSJBC':_0x1dcb14(0xfc),'LlByi':function(_0x298b40,_0x2b05bf){return _0x298b40===_0x2b05bf;},'UahDs':'object'};if(typeof _0x12b827===_0x2c7da5['PSJBC'])return _0x12b827['replace'](/\$\{(\w+)\}/g,(_0x42fcbd,_0x31fd3d)=>{const _0x2c8728=_0x1dcb14,_0x23008a=process['env'][_0x31fd3d];if(_0x23008a===undefined)throw new Error(_0x2c8728(0x101)+_0x31fd3d+_0x2c8728(0xf3));return _0x23008a;});if(Array['isArray'](_0x12b827))return _0x12b827[_0x1dcb14(0x11c)](resolveEnvVars);if(_0x12b827&&_0x2c7da5['LlByi'](typeof _0x12b827,_0x2c7da5['UahDs']))return Object[_0x1dcb14(0x13e)](Object['entries'](_0x12b827)['map'](([_0x44fd73,_0x52433e])=>[_0x44fd73,resolveEnvVars(_0x52433e)]));return _0x12b827;}const isRecord=_0x15e120=>typeof _0x15e120===_0x39628a(0x14c)&&_0x15e120!==null&&!Array[_0x39628a(0xf7)](_0x15e120),asRecord=_0xaaf14f=>isRecord(_0xaaf14f)?_0xaaf14f:undefined,mergeHeaders=(_0x270750,_0x1b7740)=>{const _0xdc378d=_0x39628a,_0x5d187f={'pRJws':function(_0x36209b,_0x36f6f2){return _0x36209b??_0x36f6f2;}},_0x2da93e={..._0x5d187f['pRJws'](_0x270750,{}),..._0x1b7740??{}};return Object[_0xdc378d(0x148)](_0x2da93e)['length']?_0x2da93e:undefined;},SAFE_MODE_ARGS=[_0x39628a(0x149)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x39628a(0x138),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x5439b7,_0x499a9f={}){const _0x4fdb88=_0x39628a,_0x38f0c={'FuPpB':function(_0x2e5489,_0x456c50){return _0x2e5489===_0x456c50;},'wETej':_0x4fdb88(0xfd),'IkYqN':function(_0xd08fa5,_0x100dcf,_0x2e7296){return _0xd08fa5(_0x100dcf,_0x2e7296);},'oaREN':function(_0x32db4a,_0x4e6fb9){return _0x32db4a(_0x4e6fb9);}},_0x4a37f2=asRecord(_0x5439b7[_0x4fdb88(0x10a)]),_0x5e9a10={...asRecord(_0x4a37f2?.[_0x4fdb88(0x12a)])??{}};_0x38f0c[_0x4fdb88(0xf9)](typeof _0x499a9f[_0x4fdb88(0xf1)],_0x38f0c[_0x4fdb88(0x143)])&&(_0x5e9a10[_0x4fdb88(0xf1)]=_0x499a9f['headless']);if(_0x5439b7['safeMode']){const _0x4942fa=_0x5e9a10[_0x4fdb88(0xee)]??[],_0x43453f=SAFE_MODE_ARGS['filter'](_0x1f2a79=>!_0x4942fa['includes'](_0x1f2a79));_0x5e9a10[_0x4fdb88(0xee)]=[..._0x4942fa,..._0x43453f];}if(_0x5439b7['allowInsecureLocalhost']){const _0x43f9af=_0x5e9a10[_0x4fdb88(0xee)]??[],_0x38f7c9=ALLOW_LOCALHOST_ARGS['filter'](_0x41e624=>!_0x43f9af['includes'](_0x41e624));_0x5e9a10['args']=[..._0x43f9af,..._0x38f7c9];}const _0xae1ec2={...asRecord(_0x4a37f2?.['contextOptions'])??{}};_0xae1ec2[_0x4fdb88(0x13d)]=!![];typeof _0x5439b7['userAgent']===_0x4fdb88(0xfc)&&(_0xae1ec2['userAgent']=_0x5439b7[_0x4fdb88(0xf5)]);const _0x186841=_0x38f0c[_0x4fdb88(0x162)](mergeHeaders,_0x38f0c[_0x4fdb88(0x111)](asRecord,_0xae1ec2['extraHTTPHeaders']),asRecord(_0x5439b7[_0x4fdb88(0x15a)]));return _0x186841?_0xae1ec2[_0x4fdb88(0x15f)]=_0x186841:delete _0xae1ec2[_0x4fdb88(0x15f)],_0x499a9f[_0x4fdb88(0x144)]&&(_0xae1ec2[_0x4fdb88(0x112)]=_0x499a9f[_0x4fdb88(0x144)]),{'launchOptions':_0x5e9a10,'contextOptions':_0xae1ec2};}export async function buildPlaywrightConfig(_0x350273,_0x440cb6,_0x42078d,_0x55cc2a){const _0x20035d=_0x39628a,_0x4836fd={'kTuoK':function(_0x91452f,_0x2e69a1){return _0x91452f===_0x2e69a1;},'QVtrG':_0x20035d(0x127),'mcmzV':'--disable-setuid-sandbox','GeceP':_0x20035d(0x152),'PHenX':function(_0x503232){return _0x503232();},'XoXmj':function(_0x45a7c7,_0x3e23f8,_0x5b52ed){return _0x45a7c7(_0x3e23f8,_0x5b52ed);},'yEcJC':function(_0x5325ae,_0x4ceaad,_0x4ce452){return _0x5325ae(_0x4ceaad,_0x4ce452);},'YmMJt':function(_0x5af801,_0xd7f0ed){return _0x5af801(_0xd7f0ed);},'NNpsX':function(_0x39fbf9){return _0x39fbf9();},'HsxLf':function(_0x49b1c7){return _0x49b1c7();},'QGhlz':'sessions','KilSq':_0x20035d(0xff),'zxfiN':_0x20035d(0xf6),'dFGIk':_0x20035d(0x12b),'YUnKw':_0x20035d(0x156),'iySri':_0x20035d(0x115),'trHui':function(_0x1d9561,_0x477c5c){return _0x1d9561(_0x477c5c);}},_0x161ed4=getEnvDir(_0x440cb6),_0x2990dd=join(_0x161ed4,_0x20035d(0x109)),_0x3c8c67=join(_0x161ed4,'auth.json');let _0x29d911,_0x3306cf;if(existsSync(_0x2990dd))try{const _0x1b68f4=await _0x4836fd[_0x20035d(0x108)](getToken);if(!_0x1b68f4)throw new Error(_0x20035d(0x114));const _0x22da94=await readFile(_0x2990dd),_0x59b1ee=_0x4836fd[_0x20035d(0x119)](decrypt,_0x22da94,_0x1b68f4);_0x3306cf=join(_0x4836fd['PHenX'](tmpdir),_0x20035d(0x124)+Date['now']()+'.json'),await _0x4836fd[_0x20035d(0x11d)](writeFile,_0x3306cf,_0x59b1ee),_0x29d911=_0x3306cf;}catch(_0xa16db8){const _0x43dc2d=_0xa16db8 instanceof Error?_0xa16db8['message']:String(_0xa16db8);throw new Error(_0x20035d(0x11a)+_0x43dc2d);}else _0x4836fd['YmMJt'](existsSync,_0x3c8c67)&&(_0x29d911=_0x3c8c67);const _0x59b8df=_0x42078d||_0x4836fd[_0x20035d(0xf4)](randomUUID),_0x35a2ac=join(_0x4836fd['HsxLf'](getRangerDir),_0x4836fd['QGhlz'],_0x59b8df),_0x2464a5=_0x4836fd['YmMJt'](Boolean,_0x350273[_0x20035d(0x136)]),_0xe14406=_0x2464a5?{'browserName':_0x20035d(0x10d),'cdpEndpoint':_0x350273[_0x20035d(0x136)]}:((()=>{const _0x50aa7f=_0x20035d,{launchOptions:_0x41a7ee,contextOptions:_0x1afab6}=buildBrowserOptionsFromSettings(_0x350273,{'headless':_0x55cc2a?![]:_0x350273['headless']??!![],'storageStatePath':_0x29d911});if(_0x4836fd['kTuoK'](process['getuid']?.(),0x0)){const _0x2fffa5=[_0x4836fd['QVtrG'],_0x4836fd['mcmzV']],_0x24ea81=_0x41a7ee['args']??[],_0x5999dd=_0x2fffa5[_0x50aa7f(0x11f)](_0x18cebc=>!_0x24ea81['includes'](_0x18cebc));_0x41a7ee[_0x50aa7f(0xee)]=[..._0x24ea81,..._0x5999dd];}return{'isolated':!![],'browserName':_0x50aa7f(0x10d),'launchOptions':_0x41a7ee,'contextOptions':{..._0x1afab6,'permissions':[_0x50aa7f(0x113),_0x4836fd['GeceP']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x332e97={'name':_0x440cb6,'browser':_0xe14406,'capabilities':[_0x4836fd['KilSq'],_0x4836fd[_0x20035d(0x15c)],_0x4836fd[_0x20035d(0x12e)],_0x4836fd['YUnKw'],'vision'],'imageResponses':_0x4836fd[_0x20035d(0x128)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x35a2ac};if(!_0x2464a5){const _0x4b8be9=_0x332e97[_0x20035d(0x10a)],_0x17d20e=_0x4b8be9['contextOptions'];if(_0x17d20e['userAgent']===undefined)delete _0x17d20e['userAgent'];if(_0x17d20e[_0x20035d(0x112)]===undefined)delete _0x17d20e['storageState'];}const _0x31cb95=join(tmpdir(),_0x20035d(0xfb));!_0x4836fd['trHui'](existsSync,_0x31cb95)&&await mkdir(_0x31cb95,{'recursive':!![]});const _0x2ade42=_0x4836fd['XoXmj'](join,_0x31cb95,_0x440cb6+'-'+Date['now']()+_0x20035d(0x14f));return await writeFile(_0x2ade42,JSON[_0x20035d(0x13c)](_0x332e97,null,0x2)),{'configPath':_0x2ade42,'tempAuthPath':_0x3306cf};}function _0x391e(){const _0x3b8ca7=['string','boolean','bioOq','core','PNtXU','Environment\x20variable\x20','message','contextOptions','-cli.json','cYTDl','settings.json','bpGlD','PHenX','auth.json.enc','browser','all','none','chromium','legacy','11452qFOHYz','code','oaREN','storageState','clipboard-read','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','allow','location','parse','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','XoXmj','Failed\x20to\x20decrypt\x20auth\x20state:\x20','configPath','map','yEcJC','StMIC','filter','aSfEv','includes','local','pjoTV','ranger-auth-','ZdbwC','hurbP','--no-sandbox','iySri','BINFE','launchOptions','install','DsbNz','szpEg','dFGIk','1146240rwTmsA','ENOENT','locations','iJgJD','16556553XUBBiq','yyxfJ','setupHeaders','cdpEndpoint','header','--unsafely-treat-insecure-origin-as-secure=http://localhost','push','path','qXGGN','stringify','ignoreHTTPSErrors','fromEntries','VqudC','jnIZx','join','2038790zgpeIF','wETej','storageStatePath','equbk','3732852puReJP','uJvTV','keys','--disable-features=WebBluetooth','length','ugngM','object','tempAuthPath','gbMKH','.json','uXfzg','5416VArdje','clipboard-write','1633HByoLP','OggWR','YAiJU','pdf','ZLstm','6583902RuLcEb','YnDSN','headers','split','zxfiN','auth.json','utf-8','extraHTTPHeaders','now','1370EKIpvM','IkYqN','--disable-setuid-sandbox','args','QbjoC','ulTjS','headless','QeGHA','\x20is\x20not\x20set','NNpsX','userAgent','tabs','isArray','GzSmz','FuPpB','tWNAw','ranger-config'];_0x391e=function(){return _0x3b8ca7;};return _0x391e();}export async function buildPlaywrightCliConfig(_0x4951a0,_0xfbf1dd,_0x52da5f,_0x17ba98){const _0x2dc5ca=_0x39628a,_0x19d5ba={'QeGHA':function(_0xda287d,_0x3ec60a,_0x3ed864){return _0xda287d(_0x3ec60a,_0x3ed864);},'ugngM':function(_0x9b52db,_0x1934cf){return _0x9b52db===_0x1934cf;},'pEPAH':_0x2dc5ca(0x127),'lAfED':'chromium','PNtXU':function(_0xf07732,_0x2eb588){return _0xf07732(_0x2eb588);},'VqudC':_0x2dc5ca(0x15d),'ZdbwC':function(_0x1f79a6,_0x3e66eb){return _0x1f79a6(_0x3e66eb);},'szpEg':function(_0x2da835){return _0x2da835();},'DsbNz':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','QbjoC':function(_0x42f15a,_0x21da35,_0x344fa2){return _0x42f15a(_0x21da35,_0x344fa2);},'gbMKH':function(_0x3d56b1,_0x3e3382){return _0x3d56b1(_0x3e3382);},'ODlSY':function(_0x2deb60){return _0x2deb60();},'jnIZx':function(_0x44872e){return _0x44872e();},'NRbaK':'file','iJgJD':_0x2dc5ca(0x10c),'bpGlD':function(_0x2498d6,_0x5128b3){return _0x2498d6(_0x5128b3);},'TJISr':function(_0x569c6f,_0x2b1ea4,_0x1beffc){return _0x569c6f(_0x2b1ea4,_0x1beffc);}},_0x2e2f7b=_0x19d5ba[_0x2dc5ca(0x100)](getEnvDir,_0xfbf1dd),_0x33f601=join(_0x2e2f7b,_0x2dc5ca(0x109)),_0x4c55bf=_0x19d5ba[_0x2dc5ca(0xf2)](join,_0x2e2f7b,_0x19d5ba[_0x2dc5ca(0x13f)]);let _0xf42b6f,_0x1004c7;if(_0x19d5ba[_0x2dc5ca(0x125)](existsSync,_0x33f601))try{const _0x3a4248=await _0x19d5ba['szpEg'](getToken);if(!_0x3a4248)throw new Error(_0x19d5ba[_0x2dc5ca(0x12c)]);const _0x145d7b=await readFile(_0x33f601),_0x421819=_0x19d5ba[_0x2dc5ca(0xf2)](decrypt,_0x145d7b,_0x3a4248);_0x1004c7=_0x19d5ba[_0x2dc5ca(0xf2)](join,tmpdir(),'ranger-auth-'+Date[_0x2dc5ca(0x160)]()+'.json'),await _0x19d5ba['QbjoC'](writeFile,_0x1004c7,_0x421819),_0xf42b6f=_0x1004c7;}catch(_0x4c2a08){const _0x32e340=_0x4c2a08 instanceof Error?_0x4c2a08['message']:_0x19d5ba[_0x2dc5ca(0x100)](String,_0x4c2a08);throw new Error(_0x2dc5ca(0x11a)+_0x32e340);}else _0x19d5ba['gbMKH'](existsSync,_0x4c55bf)&&(_0xf42b6f=_0x4c55bf);const _0x216726=_0x52da5f||_0x19d5ba['ODlSY'](randomUUID),_0x777db8=join(_0x19d5ba[_0x2dc5ca(0x140)](getRangerDir),'sessions',_0x216726),_0x535763=_0x19d5ba[_0x2dc5ca(0x14e)](Boolean,_0x4951a0[_0x2dc5ca(0x136)]),_0x4e70b5=_0x535763?{'browserName':_0x2dc5ca(0x10d),'cdpEndpoint':_0x4951a0[_0x2dc5ca(0x136)]}:((()=>{const _0x2db742=_0x2dc5ca,{launchOptions:_0xd35feb,contextOptions:_0x48f81b}=_0x19d5ba['QeGHA'](buildBrowserOptionsFromSettings,_0x4951a0,{'headless':_0x17ba98?![]:_0x4951a0['headless']??!![],'storageStatePath':_0xf42b6f});if(_0x19d5ba[_0x2db742(0x14b)](process['getuid']?.(),0x0)){const _0x1f7ef7=[_0x19d5ba['pEPAH'],_0x2db742(0x163)],_0x560056=_0xd35feb[_0x2db742(0xee)]??[],_0x20ba7a=_0x1f7ef7[_0x2db742(0x11f)](_0x2d5487=>!_0x560056['includes'](_0x2d5487));_0xd35feb['args']=[..._0x560056,..._0x20ba7a];}return{'isolated':!![],'browserName':_0x19d5ba['lAfED'],'launchOptions':_0xd35feb,'contextOptions':{..._0x48f81b,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x535763){const _0x3be8bb=_0x4e70b5[_0x2dc5ca(0x103)];if(_0x3be8bb['userAgent']===undefined)delete _0x3be8bb['userAgent'];if(_0x19d5ba['ugngM'](_0x3be8bb['storageState'],undefined))delete _0x3be8bb['storageState'];}const _0xa6e8cf={'browser':_0x4e70b5,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x777db8,'outputMode':_0x19d5ba['NRbaK'],'codegen':_0x19d5ba[_0x2dc5ca(0x132)]},_0x134987=_0x19d5ba[_0x2dc5ca(0xef)](join,_0x19d5ba[_0x2dc5ca(0x12d)](tmpdir),'ranger-config');!_0x19d5ba[_0x2dc5ca(0x107)](existsSync,_0x134987)&&await mkdir(_0x134987,{'recursive':!![]});const _0x1a2343=join(_0x134987,_0xfbf1dd+'-'+Date['now']()+_0x2dc5ca(0x104));return await _0x19d5ba['TJISr'](writeFile,_0x1a2343,JSON['stringify'](_0xa6e8cf,null,0x2)),{'configPath':_0x1a2343,'tempAuthPath':_0x1004c7};}export function getNestedValue(_0x352d53,_0x156f5a){const _0x97ae5c=_0x39628a,_0x5d8a0d={'ulTjS':function(_0x2f0707,_0x399ed1){return _0x2f0707(_0x399ed1);},'YAiJU':function(_0x599e04,_0x69381f){return _0x599e04===_0x69381f;},'BINFE':function(_0x2117df,_0x5075f8){return _0x2117df!==_0x5075f8;}},_0x583f31=_0x5d8a0d[_0x97ae5c(0xf0)](parseKeyPath,_0x156f5a);let _0x3a2152=_0x352d53;for(const _0x2e2da3 of _0x583f31){if(_0x5d8a0d['YAiJU'](_0x3a2152,null)||_0x5d8a0d[_0x97ae5c(0x155)](_0x3a2152,undefined)||_0x5d8a0d[_0x97ae5c(0x129)](typeof _0x3a2152,'object'))return undefined;_0x3a2152=_0x3a2152[_0x2e2da3];}return _0x3a2152;}export function setNestedValue(_0xb7adbd,_0x53e213,_0x41e4a4){const _0x46a808=_0x39628a,_0x31340e={'fWHBk':function(_0x241ac9,_0x5dcd7d){return _0x241ac9(_0x5dcd7d);},'CzLOe':function(_0x1c1991,_0x7f3281){return _0x1c1991<_0x7f3281;},'tWNAw':function(_0x2e7749,_0x2330f1){return _0x2e7749 in _0x2330f1;},'YnDSN':function(_0x841a10,_0x3dcfc3){return _0x841a10-_0x3dcfc3;}},_0x3a64ef=_0x31340e['fWHBk'](parseKeyPath,_0x53e213);let _0x242a69=_0xb7adbd;for(let _0x2527e9=0x0;_0x31340e['CzLOe'](_0x2527e9,_0x3a64ef['length']-0x1);_0x2527e9++){const _0x344653=_0x3a64ef[_0x2527e9];(!_0x31340e[_0x46a808(0xfa)](_0x344653,_0x242a69)||typeof _0x242a69[_0x344653]!==_0x46a808(0x14c))&&(_0x242a69[_0x344653]={}),_0x242a69=_0x242a69[_0x344653];}_0x242a69[_0x3a64ef[_0x31340e[_0x46a808(0x159)](_0x3a64ef['length'],0x1)]]=_0x41e4a4;}export function deleteNestedValue(_0x16671d,_0x124225){const _0x9392bc=_0x39628a,_0x3559bd={'aZsDO':function(_0x1ecbcc,_0x3ff7f2){return _0x1ecbcc-_0x3ff7f2;},'aSfEv':function(_0x20a36e,_0x2bad2f){return _0x20a36e===_0x2bad2f;},'yyxfJ':_0x9392bc(0x14c),'QhMfb':function(_0x361464,_0x1a3bf1){return _0x361464!==_0x1a3bf1;}},_0x2e257f=parseKeyPath(_0x124225);let _0x3e38fc=_0x16671d;for(let _0x1a4445=0x0;_0x1a4445<_0x3559bd['aZsDO'](_0x2e257f[_0x9392bc(0x14a)],0x1);_0x1a4445++){if(_0x3559bd[_0x9392bc(0x120)](_0x3e38fc,null)||_0x3e38fc===undefined||typeof _0x3e38fc!==_0x3559bd[_0x9392bc(0x134)])return![];_0x3e38fc=_0x3e38fc[_0x2e257f[_0x1a4445]];}if(_0x3e38fc===null||_0x3e38fc===undefined||_0x3559bd['QhMfb'](typeof _0x3e38fc,_0x3559bd[_0x9392bc(0x134)]))return![];const _0xa138ae=_0x2e257f[_0x2e257f['length']-0x1];if(_0xa138ae in _0x3e38fc)return delete _0x3e38fc[_0xa138ae],!![];return![];}function parseKeyPath(_0x147d85){const _0x151f46=_0x39628a,_0x7baa8e={'QIgIW':function(_0x416a44,_0x3e6665){return _0x416a44===_0x3e6665;},'DmadB':'setupHeader'},_0x35f1ff=_0x147d85[_0x151f46(0x15b)]('.');return _0x7baa8e['QIgIW'](_0x35f1ff[0x0],_0x151f46(0x137))&&(_0x35f1ff[0x0]='headers'),_0x7baa8e['QIgIW'](_0x35f1ff[0x0],_0x7baa8e['DmadB'])&&(_0x35f1ff[0x0]=_0x151f46(0x135)),_0x35f1ff;}function _0x4fb7(_0x56f97b,_0x518ff9){_0x56f97b=_0x56f97b-0xee;const _0x391ebe=_0x391e();let _0x4fb7dc=_0x391ebe[_0x56f97b];return _0x4fb7dc;}export function formatSettings(_0xa163a1,_0x476485=0x0){const _0x45b535=_0x39628a,_0x50ffb6={'tmlZY':function(_0x438604,_0x189bac){return _0x438604===_0x189bac;}},_0x4e6634=[],_0x469bab='\x20\x20'['repeat'](_0x476485);for(const [_0x5c24c7,_0x546fa4]of Object['entries'](_0xa163a1)){if(_0x50ffb6['tmlZY'](_0x546fa4,undefined))continue;if(typeof _0x546fa4==='object'&&_0x546fa4!==null){_0x4e6634[_0x45b535(0x139)](''+_0x469bab+_0x5c24c7+':');for(const [_0xe742c3,_0x55b2e1]of Object['entries'](_0x546fa4)){_0x4e6634['push'](_0x469bab+'\x20\x20'+_0xe742c3+':\x20'+_0x55b2e1);}}else _0x4e6634[_0x45b535(0x139)](''+_0x469bab+_0x5c24c7+':\x20'+_0x546fa4);}return _0x4e6634[_0x45b535(0x141)]('\x0a');}
|
|
1
|
+
const _0x45f284=_0x1300;(function(_0x4e15c2,_0x477b15){const _0x48a990=_0x1300,_0xbf092a=_0x4e15c2();while(!![]){try{const _0x58a1ad=parseInt(_0x48a990(0xa1))/0x1+parseInt(_0x48a990(0xb4))/0x2*(parseInt(_0x48a990(0xcb))/0x3)+-parseInt(_0x48a990(0xc8))/0x4*(parseInt(_0x48a990(0x7d))/0x5)+parseInt(_0x48a990(0xb0))/0x6+parseInt(_0x48a990(0x7a))/0x7+parseInt(_0x48a990(0xd6))/0x8+-parseInt(_0x48a990(0x94))/0x9*(parseInt(_0x48a990(0xbb))/0xa);if(_0x58a1ad===_0x477b15)break;else _0xbf092a['push'](_0xbf092a['shift']());}catch(_0x1286f8){_0xbf092a['push'](_0xbf092a['shift']());}}}(_0x4547,0x5d761));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(_0x2092c4){const _0x1e90bf=_0x1300,_0x5ff177={'dEBUM':function(_0x3b27e4){return _0x3b27e4();},'UpInl':function(_0x24de7e,_0x2b4654,_0x15c2a7){return _0x24de7e(_0x2b4654,_0x15c2a7);},'ehkib':'local','gLrNk':function(_0xc46dc3,_0x1db223){return _0xc46dc3(_0x1db223);},'Pxlec':function(_0x25faf9,_0x3846f6){return _0x25faf9!==_0x3846f6;}},_0x2de13e=_0x5ff177['dEBUM'](getRangerDir),_0x3928dc=join(_0x2de13e,'ci',_0x2092c4),_0x15deac=join(_0x2de13e,'local',_0x2092c4),_0x5b33f9=_0x5ff177['UpInl'](join,_0x2de13e,_0x2092c4),_0x51d64b=join(_0x2de13e,_0x5ff177['ehkib']),_0x4d5679=_0x5ff177['UpInl'](join,_0x2de13e,'ci');if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x3928dc))return _0x3928dc;if(existsSync(_0x15deac))return _0x15deac;if(_0x5ff177[_0x1e90bf(0xcf)](existsSync,_0x5b33f9)&&(_0x5b33f9!==_0x51d64b&&_0x5ff177[_0x1e90bf(0xce)](_0x5b33f9,_0x4d5679)?!![]:hasLegacyProfileFiles(_0x5b33f9)))return _0x5b33f9;return _0x15deac;}export function findExistingEnv(_0x485d21,_0x5f0df6){const _0x1d7ac7=_0x1300,_0x41b1e4={'FVmgy':_0x1d7ac7(0x7b),'eaQhi':_0x1d7ac7(0x84),'jFffR':function(_0x5f1d10,_0x17f069,_0x44753c){return _0x5f1d10(_0x17f069,_0x44753c);},'UGjoD':function(_0x12dea7,_0x446caa,_0x5c4aaa,_0x3d1896){return _0x12dea7(_0x446caa,_0x5c4aaa,_0x3d1896);},'xGYOT':function(_0x3232aa,_0x5b34ea){return _0x3232aa===_0x5b34ea;}},_0x27632b=_0x5f0df6?.['rangerDir']??getRangerDir(),_0x15f5f5=_0x5f0df6?.['locations']??['ci',_0x41b1e4[_0x1d7ac7(0x99)],_0x41b1e4['eaQhi']],_0x206bbc=join(_0x27632b,'local'),_0x3e8012=_0x41b1e4[_0x1d7ac7(0xc2)](join,_0x27632b,'ci'),_0x54eb4d=[{'location':'ci','path':join(_0x27632b,'ci',_0x485d21)},{'location':'local','path':_0x41b1e4['UGjoD'](join,_0x27632b,_0x41b1e4[_0x1d7ac7(0x99)],_0x485d21)},{'location':'legacy','path':join(_0x27632b,_0x485d21)}];for(const _0x456eaf of _0x54eb4d){if(_0x15f5f5[_0x1d7ac7(0x91)](_0x456eaf['location'])&&existsSync(_0x456eaf[_0x1d7ac7(0x8a)])){if(_0x456eaf[_0x1d7ac7(0xad)]==='legacy'&&(_0x41b1e4[_0x1d7ac7(0xdc)](_0x456eaf['path'],_0x206bbc)||_0x456eaf[_0x1d7ac7(0x8a)]===_0x3e8012)&&!hasLegacyProfileFiles(_0x456eaf[_0x1d7ac7(0x8a)]))continue;return{'path':_0x456eaf['path'],'location':_0x456eaf['location']};}}return null;}function hasLegacyProfileFiles(_0x47c8d6){const _0x4d5ca0=_0x1300,_0x112515={'MclDI':function(_0x5b458f,_0x2bf8f2,_0x13bc48){return _0x5b458f(_0x2bf8f2,_0x13bc48);},'wpEhN':_0x4d5ca0(0xb7),'jwLrv':function(_0x33a867,_0x26698d){return _0x33a867(_0x26698d);},'HZnGa':_0x4d5ca0(0xa6)};return existsSync(_0x112515['MclDI'](join,_0x47c8d6,'settings.json'))||existsSync(join(_0x47c8d6,_0x112515['wpEhN']))||_0x112515[_0x4d5ca0(0xa3)](existsSync,_0x112515[_0x4d5ca0(0xe4)](join,_0x47c8d6,_0x112515[_0x4d5ca0(0xae)]));}export function isEnvCi(_0x2a6bcd){const _0x166168={'gHXUO':function(_0x1b6fcd){return _0x1b6fcd();}};return existsSync(join(_0x166168['gHXUO'](getRangerDir),'ci',_0x2a6bcd));}export async function cleanupTempFiles(_0x33353b){const _0x15b817=_0x1300,_0x5269bf={'HXVmy':_0x15b817(0xb9)},_0x1d94cf=[_0x33353b[_0x15b817(0xe2)],_0x33353b['configPath']][_0x15b817(0xb2)](Boolean);await Promise[_0x15b817(0xdd)](_0x1d94cf[_0x15b817(0xc1)](_0x359d9a=>unlink(_0x359d9a)[_0x15b817(0x87)](_0x225982=>{const _0x5f0df5=_0x15b817;_0x225982[_0x5f0df5(0x8c)]!==_0x5269bf[_0x5f0df5(0xa9)]&&console[_0x5f0df5(0x83)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x359d9a+':',_0x225982[_0x5f0df5(0x80)]);})));}export function getSettingsPath(_0x3f5363){const _0x5e0139=_0x1300,_0x26b676={'mAYQG':function(_0x1f33bc,_0x481d69,_0x368bed){return _0x1f33bc(_0x481d69,_0x368bed);},'OZREY':'settings.json'};return _0x26b676['mAYQG'](join,getEnvDir(_0x3f5363),_0x26b676[_0x5e0139(0x7f)]);}export async function loadSettings(_0x3ed589){const _0x2b9271=_0x1300,_0x3b008e={'lvshD':function(_0x31b738,_0x41156e){return _0x31b738(_0x41156e);},'TFngI':'utf-8'},_0x35be75=_0x3b008e['lvshD'](getSettingsPath,_0x3ed589);if(!_0x3b008e['lvshD'](existsSync,_0x35be75))return{};try{const _0x36a6b3=await readFile(_0x35be75,_0x3b008e[_0x2b9271(0x81)]);return JSON['parse'](_0x36a6b3);}catch{return{};}}export async function saveSettings(_0x20e9a1,_0x5588f8){const _0x2caa44=getSettingsPath(_0x20e9a1),_0x2f4c45=dirname(_0x2caa44);!existsSync(_0x2f4c45)&&await mkdir(_0x2f4c45,{'recursive':!![]}),await writeFile(_0x2caa44,JSON['stringify'](_0x5588f8,null,0x2));}function _0x1300(_0xd9a7d4,_0x11ec90){_0xd9a7d4=_0xd9a7d4-0x77;const _0x454733=_0x4547();let _0x1300df=_0x454733[_0xd9a7d4];return _0x1300df;}export function resolveEnvVars(_0x3abfde){const _0xeda0fc=_0x1300,_0x36633f={'UwPEx':function(_0x44e871,_0x41cc7e){return _0x44e871===_0x41cc7e;},'aiQDq':_0xeda0fc(0x88)};if(_0x36633f[_0xeda0fc(0xe6)](typeof _0x3abfde,_0xeda0fc(0xd4)))return _0x3abfde[_0xeda0fc(0x82)](/\$\{(\w+)\}/g,(_0x16790a,_0x2e5246)=>{const _0x2aea5d=_0xeda0fc,_0x4fdcc3=process[_0x2aea5d(0xd5)][_0x2e5246];if(_0x36633f['UwPEx'](_0x4fdcc3,undefined))throw new Error('Environment\x20variable\x20'+_0x2e5246+'\x20is\x20not\x20set');return _0x4fdcc3;});if(Array[_0xeda0fc(0x98)](_0x3abfde))return _0x3abfde['map'](resolveEnvVars);if(_0x3abfde&&typeof _0x3abfde===_0x36633f[_0xeda0fc(0xa4)])return Object[_0xeda0fc(0x9e)](Object['entries'](_0x3abfde)[_0xeda0fc(0xc1)](([_0x2439af,_0x1e56e5])=>[_0x2439af,resolveEnvVars(_0x1e56e5)]));return _0x3abfde;}const isRecord=_0x55c763=>typeof _0x55c763===_0x45f284(0x88)&&_0x55c763!==null&&!Array[_0x45f284(0x98)](_0x55c763),asRecord=_0x2631a7=>isRecord(_0x2631a7)?_0x2631a7:undefined,mergeHeaders=(_0x8830ca,_0x2fad6d)=>{const _0x3cf9fc=_0x45f284,_0xe05d84={'dvtNH':function(_0x2f1dbb,_0x56768){return _0x2f1dbb??_0x56768;}},_0x43c126={..._0xe05d84['dvtNH'](_0x8830ca,{}),..._0xe05d84[_0x3cf9fc(0x95)](_0x2fad6d,{})};return Object[_0x3cf9fc(0x7c)](_0x43c126)[_0x3cf9fc(0x85)]?_0x43c126:undefined;},SAFE_MODE_ARGS=[_0x45f284(0xb5)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2472a5,_0x3659d0={}){const _0x1b2764=_0x45f284,_0x756624={'qfiYt':function(_0x55612a,_0x395e34){return _0x55612a(_0x395e34);},'BharN':function(_0x3dd88c,_0x1aaa97){return _0x3dd88c(_0x1aaa97);},'HthHb':function(_0x4d51fc,_0x1f1022){return _0x4d51fc===_0x1f1022;},'CxqrX':'string'},_0x586c27=_0x756624['qfiYt'](asRecord,_0x2472a5[_0x1b2764(0xc7)]),_0x13f2c3={..._0x756624[_0x1b2764(0xd3)](asRecord,_0x586c27?.['launchOptions'])??{}};typeof _0x3659d0['headless']===_0x1b2764(0xd0)&&(_0x13f2c3['headless']=_0x3659d0['headless']);if(_0x2472a5['safeMode']){const _0xafc8d0=_0x13f2c3[_0x1b2764(0x77)]??[],_0x45beb3=SAFE_MODE_ARGS['filter'](_0x4b769d=>!_0xafc8d0['includes'](_0x4b769d));_0x13f2c3[_0x1b2764(0x77)]=[..._0xafc8d0,..._0x45beb3];}if(_0x2472a5[_0x1b2764(0x8d)]){const _0x1dc953=_0x13f2c3[_0x1b2764(0x77)]??[],_0x1e2945=ALLOW_LOCALHOST_ARGS['filter'](_0x380b4b=>!_0x1dc953[_0x1b2764(0x91)](_0x380b4b));_0x13f2c3['args']=[..._0x1dc953,..._0x1e2945];}const _0x2ee9bc={..._0x756624['BharN'](asRecord,_0x586c27?.['contextOptions'])??{}};_0x2ee9bc['ignoreHTTPSErrors']=!![];_0x756624[_0x1b2764(0xb8)](typeof _0x2472a5['userAgent'],_0x756624[_0x1b2764(0x78)])&&(_0x2ee9bc['userAgent']=_0x2472a5['userAgent']);const _0x297843=mergeHeaders(asRecord(_0x2ee9bc['extraHTTPHeaders']),asRecord(_0x2472a5[_0x1b2764(0x9f)]));return _0x297843?_0x2ee9bc['extraHTTPHeaders']=_0x297843:delete _0x2ee9bc['extraHTTPHeaders'],_0x3659d0['storageStatePath']&&(_0x2ee9bc[_0x1b2764(0xde)]=_0x3659d0['storageStatePath']),{'launchOptions':_0x13f2c3,'contextOptions':_0x2ee9bc};}export async function buildPlaywrightConfig(_0x5e8d55,_0x55d02d,_0xa9f9f6,_0x2d02d2){const _0xe60a3f=_0x45f284,_0x1ef36a={'AtwIB':function(_0x167fd2,_0x3f643d){return _0x167fd2===_0x3f643d;},'yYFMy':_0xe60a3f(0x92),'fLqgZ':'--disable-setuid-sandbox','hJOjV':_0xe60a3f(0xe0),'lHqtb':_0xe60a3f(0x97),'LrfGN':function(_0x26de14,_0x26b95f,_0x4824bb){return _0x26de14(_0x26b95f,_0x4824bb);},'wKgzP':function(_0x5f2990,_0x1ddbc8){return _0x5f2990(_0x1ddbc8);},'FmtEu':function(_0x2725c0,_0x33e3f9,_0x472d0f){return _0x2725c0(_0x33e3f9,_0x472d0f);},'GeKXt':function(_0x586b9b){return _0x586b9b();},'oqDhD':function(_0x4419b7,_0x47b0a6){return _0x4419b7 instanceof _0x47b0a6;},'HJRhc':function(_0x49e576,_0x50cc5d){return _0x49e576(_0x50cc5d);},'ExLdf':function(_0x42a2e5,_0x5f3b10,_0x1e863c,_0x3b1155){return _0x42a2e5(_0x5f3b10,_0x1e863c,_0x3b1155);},'nHdhe':_0xe60a3f(0xa0),'mIXrC':'tabs','AuySf':_0xe60a3f(0xac),'oiVNu':_0xe60a3f(0xbf),'VqsAm':function(_0x5f4830,_0x460e86){return _0x5f4830===_0x460e86;},'atGCL':function(_0x1d0580){return _0x1d0580();},'ztDrg':'ranger-config','pQCON':function(_0x27e6cc,_0x362939){return _0x27e6cc(_0x362939);}},_0x329a2b=getEnvDir(_0x55d02d),_0x542e36=join(_0x329a2b,'auth.json.enc'),_0x47a775=_0x1ef36a[_0xe60a3f(0xab)](join,_0x329a2b,'auth.json');let _0x56ab45,_0x3cd17a;if(existsSync(_0x542e36))try{const _0x1207b3=await getToken();if(!_0x1207b3)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2609b2=await _0x1ef36a['wKgzP'](readFile,_0x542e36),_0x26360a=decrypt(_0x2609b2,_0x1207b3);_0x3cd17a=_0x1ef36a[_0xe60a3f(0xb1)](join,_0x1ef36a['GeKXt'](tmpdir),_0xe60a3f(0xa7)+Date[_0xe60a3f(0x96)]()+_0xe60a3f(0xaf)),await _0x1ef36a[_0xe60a3f(0xab)](writeFile,_0x3cd17a,_0x26360a),_0x56ab45=_0x3cd17a;}catch(_0x1f285a){const _0x50eb4d=_0x1ef36a['oqDhD'](_0x1f285a,Error)?_0x1f285a['message']:_0x1ef36a[_0xe60a3f(0xba)](String,_0x1f285a);throw new Error(_0xe60a3f(0x8e)+_0x50eb4d);}else existsSync(_0x47a775)&&(_0x56ab45=_0x47a775);const _0x4db8bd=_0xa9f9f6||_0x1ef36a['GeKXt'](randomUUID),_0x2ad652=_0x1ef36a[_0xe60a3f(0x9b)](join,getRangerDir(),'sessions',_0x4db8bd),_0x54926c=Boolean(_0x5e8d55[_0xe60a3f(0xd7)]),_0x417812=_0x54926c?{'browserName':'chromium','cdpEndpoint':_0x5e8d55['cdpEndpoint']}:((()=>{const _0x1f07b1=_0xe60a3f,{launchOptions:_0x4f2747,contextOptions:_0x3d2b6d}=buildBrowserOptionsFromSettings(_0x5e8d55,{'headless':_0x2d02d2?![]:_0x5e8d55['headless']??!![],'storageStatePath':_0x56ab45});if(_0x1ef36a[_0x1f07b1(0xa2)](process['getuid']?.(),0x0)){const _0x2d5373=[_0x1ef36a['yYFMy'],_0x1ef36a['fLqgZ']],_0x54dc17=_0x4f2747[_0x1f07b1(0x77)]??[],_0x2e7520=_0x2d5373['filter'](_0x226d56=>!_0x54dc17['includes'](_0x226d56));_0x4f2747[_0x1f07b1(0x77)]=[..._0x54dc17,..._0x2e7520];}return{'isolated':!![],'browserName':_0x1ef36a[_0x1f07b1(0xc3)],'launchOptions':_0x4f2747,'contextOptions':{..._0x3d2b6d,'permissions':[_0x1f07b1(0x9c),_0x1ef36a['lHqtb']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1e5e93={'name':_0x55d02d,'browser':_0x417812,'capabilities':[_0x1ef36a['nHdhe'],_0x1ef36a[_0xe60a3f(0x9a)],_0x1ef36a[_0xe60a3f(0xbd)],'pdf','vision'],'imageResponses':_0x1ef36a['oiVNu'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2ad652};if(!_0x54926c){const _0x49c990=_0x1e5e93['browser'],_0x9af66d=_0x49c990['contextOptions'];if(_0x9af66d['userAgent']===undefined)delete _0x9af66d[_0xe60a3f(0x89)];if(_0x1ef36a[_0xe60a3f(0xc0)](_0x9af66d[_0xe60a3f(0xde)],undefined))delete _0x9af66d[_0xe60a3f(0xde)];}const _0x2681fb=join(_0x1ef36a['atGCL'](tmpdir),_0x1ef36a['ztDrg']);!_0x1ef36a['pQCON'](existsSync,_0x2681fb)&&await mkdir(_0x2681fb,{'recursive':!![]});const _0x3cdabc=join(_0x2681fb,_0x55d02d+'-'+Date['now']()+'.json');return await _0x1ef36a['FmtEu'](writeFile,_0x3cdabc,JSON[_0xe60a3f(0xe1)](_0x1e5e93,null,0x2)),{'configPath':_0x3cdabc,'tempAuthPath':_0x3cd17a};}export async function buildPlaywrightCliConfig(_0x366da0,_0x29b072,_0x1e9188,_0x183bd9){const _0x3ef979=_0x45f284,_0x3c2090={'ohqPU':function(_0x2bec00,_0x37adfc,_0x19853b){return _0x2bec00(_0x37adfc,_0x19853b);},'ZGjMM':_0x3ef979(0xb3),'dPOqF':_0x3ef979(0x97),'uAKXb':'auth.json','XWCnA':function(_0x3c701e,_0x3debc9){return _0x3c701e(_0x3debc9);},'AgzYf':function(_0xc18db9){return _0xc18db9();},'YwVpX':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','FusFQ':function(_0xd4fd02,_0x1d3ade){return _0xd4fd02 instanceof _0x1d3ade;},'wYkLz':function(_0x128a12,_0x3cfacb){return _0x128a12(_0x3cfacb);},'SXDxz':function(_0x50e578,_0x268cc0){return _0x50e578(_0x268cc0);},'SrJBw':function(_0xcd0ecc,_0x25b5c0){return _0xcd0ecc===_0x25b5c0;},'kKRYw':_0x3ef979(0x7e),'nHTEJ':function(_0x3a0ad3){return _0x3a0ad3();},'DxnHM':function(_0x13f88e,_0x260e57,_0x164df8){return _0x13f88e(_0x260e57,_0x164df8);},'ljDJB':function(_0x3e5730,_0x3594b7,_0x43a338){return _0x3e5730(_0x3594b7,_0x43a338);}},_0x435631=getEnvDir(_0x29b072),_0x3efdee=join(_0x435631,_0x3ef979(0xa6)),_0x517e9f=join(_0x435631,_0x3c2090[_0x3ef979(0xd2)]);let _0x21a212,_0x2e5a57;if(_0x3c2090[_0x3ef979(0xe5)](existsSync,_0x3efdee))try{const _0x374688=await _0x3c2090[_0x3ef979(0xa5)](getToken);if(!_0x374688)throw new Error(_0x3c2090['YwVpX']);const _0x3fc9c4=await _0x3c2090[_0x3ef979(0xe5)](readFile,_0x3efdee),_0x1c3c37=_0x3c2090[_0x3ef979(0xc4)](decrypt,_0x3fc9c4,_0x374688);_0x2e5a57=join(tmpdir(),'ranger-auth-'+Date[_0x3ef979(0x96)]()+_0x3ef979(0xaf)),await _0x3c2090[_0x3ef979(0xc4)](writeFile,_0x2e5a57,_0x1c3c37),_0x21a212=_0x2e5a57;}catch(_0x18de5d){const _0x29b3ec=_0x3c2090['FusFQ'](_0x18de5d,Error)?_0x18de5d[_0x3ef979(0x80)]:String(_0x18de5d);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x29b3ec);}else _0x3c2090[_0x3ef979(0x90)](existsSync,_0x517e9f)&&(_0x21a212=_0x517e9f);const _0x479116=_0x1e9188||randomUUID(),_0x1d069a=join(_0x3c2090[_0x3ef979(0xa5)](getRangerDir),_0x3ef979(0xcc),_0x479116),_0x18b7a9=_0x3c2090[_0x3ef979(0x93)](Boolean,_0x366da0['cdpEndpoint']),_0x16024f=_0x18b7a9?{'browserName':_0x3ef979(0xe0),'cdpEndpoint':_0x366da0[_0x3ef979(0xd7)]}:((()=>{const _0x299ede=_0x3ef979,{launchOptions:_0x3e7c77,contextOptions:_0x5d439d}=_0x3c2090['ohqPU'](buildBrowserOptionsFromSettings,_0x366da0,{'headless':_0x183bd9?![]:_0x366da0[_0x299ede(0xcd)]??!![],'storageStatePath':_0x21a212});if(process[_0x299ede(0xd8)]?.()===0x0){const _0x1a6cb2=[_0x299ede(0x92),_0x3c2090[_0x299ede(0xd9)]],_0x16fe5a=_0x3e7c77[_0x299ede(0x77)]??[],_0x360e1d=_0x1a6cb2['filter'](_0x53fdc8=>!_0x16fe5a[_0x299ede(0x91)](_0x53fdc8));_0x3e7c77['args']=[..._0x16fe5a,..._0x360e1d];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x3e7c77,'contextOptions':{..._0x5d439d,'permissions':['clipboard-read',_0x3c2090['dPOqF']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x18b7a9){const _0x154e23=_0x16024f['contextOptions'];if(_0x3c2090['SrJBw'](_0x154e23[_0x3ef979(0x89)],undefined))delete _0x154e23[_0x3ef979(0x89)];if(_0x3c2090[_0x3ef979(0xc5)](_0x154e23[_0x3ef979(0xde)],undefined))delete _0x154e23[_0x3ef979(0xde)];}const _0x1e7e7f={'browser':_0x16024f,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1d069a,'outputMode':'file','codegen':_0x3c2090['kKRYw']},_0x50fe56=join(_0x3c2090[_0x3ef979(0xaa)](tmpdir),_0x3ef979(0xd1));!_0x3c2090['wYkLz'](existsSync,_0x50fe56)&&await _0x3c2090[_0x3ef979(0xb6)](mkdir,_0x50fe56,{'recursive':!![]});const _0x29926e=join(_0x50fe56,_0x29b072+'-'+Date[_0x3ef979(0x96)]()+'-cli.json');return await _0x3c2090[_0x3ef979(0xbe)](writeFile,_0x29926e,JSON[_0x3ef979(0xe1)](_0x1e7e7f,null,0x2)),{'configPath':_0x29926e,'tempAuthPath':_0x2e5a57};}export function getNestedValue(_0x1facee,_0x21f6dd){const _0x996445=_0x45f284,_0x4caaa0={'ENNrd':function(_0x89c5fc,_0x152d6d){return _0x89c5fc===_0x152d6d;},'uEPiZ':function(_0x55bc4c,_0x3b3d86){return _0x55bc4c===_0x3b3d86;},'RQihM':_0x996445(0x88)},_0xdfec5d=parseKeyPath(_0x21f6dd);let _0x5337a3=_0x1facee;for(const _0x33ab4a of _0xdfec5d){if(_0x4caaa0[_0x996445(0xe3)](_0x5337a3,null)||_0x4caaa0[_0x996445(0x86)](_0x5337a3,undefined)||typeof _0x5337a3!==_0x4caaa0[_0x996445(0x9d)])return undefined;_0x5337a3=_0x5337a3[_0x33ab4a];}return _0x5337a3;}export function setNestedValue(_0x222594,_0xe3cb2e,_0x5a165f){const _0x6fc1f7=_0x45f284,_0x542d15={'hhXMu':function(_0x4dafe3,_0x59f778){return _0x4dafe3(_0x59f778);},'kZVaF':function(_0x38279c,_0x49e2f1){return _0x38279c-_0x49e2f1;},'rdjWD':function(_0xea517,_0x54041d){return _0xea517!==_0x54041d;},'Ntlog':'object'},_0x30e7b9=_0x542d15[_0x6fc1f7(0xdb)](parseKeyPath,_0xe3cb2e);let _0x1c9d48=_0x222594;for(let _0x5b38db=0x0;_0x5b38db<_0x542d15['kZVaF'](_0x30e7b9[_0x6fc1f7(0x85)],0x1);_0x5b38db++){const _0x50371a=_0x30e7b9[_0x5b38db];(!(_0x50371a in _0x1c9d48)||_0x542d15['rdjWD'](typeof _0x1c9d48[_0x50371a],_0x542d15['Ntlog']))&&(_0x1c9d48[_0x50371a]={}),_0x1c9d48=_0x1c9d48[_0x50371a];}_0x1c9d48[_0x30e7b9[_0x542d15[_0x6fc1f7(0xe7)](_0x30e7b9['length'],0x1)]]=_0x5a165f;}export function deleteNestedValue(_0x59043b,_0x140862){const _0x3db34f=_0x45f284,_0x579063={'XoQNE':function(_0x54e8a9,_0x18f06){return _0x54e8a9(_0x18f06);},'IziqB':_0x3db34f(0x88),'ukyrb':function(_0x3612b4,_0x298a58){return _0x3612b4===_0x298a58;},'xbHIS':function(_0x24ef9c,_0x5e2b7f){return _0x24ef9c!==_0x5e2b7f;}},_0x3a59db=_0x579063[_0x3db34f(0xc9)](parseKeyPath,_0x140862);let _0x1f3389=_0x59043b;for(let _0x1a4a2b=0x0;_0x1a4a2b<_0x3a59db[_0x3db34f(0x85)]-0x1;_0x1a4a2b++){if(_0x1f3389===null||_0x1f3389===undefined||typeof _0x1f3389!==_0x579063['IziqB'])return![];_0x1f3389=_0x1f3389[_0x3a59db[_0x1a4a2b]];}if(_0x579063['ukyrb'](_0x1f3389,null)||_0x1f3389===undefined||_0x579063[_0x3db34f(0xca)](typeof _0x1f3389,_0x579063['IziqB']))return![];const _0x425a6d=_0x3a59db[_0x3a59db['length']-0x1];if(_0x425a6d in _0x1f3389)return delete _0x1f3389[_0x425a6d],!![];return![];}function parseKeyPath(_0x30c3d7){const _0x2f5f6b=_0x45f284,_0x53520f={'rFggg':_0x2f5f6b(0x79),'eEFoM':'setupHeaders'},_0x2ad307=_0x30c3d7[_0x2f5f6b(0xbc)]('.');return _0x2ad307[0x0]==='header'&&(_0x2ad307[0x0]=_0x2f5f6b(0x9f)),_0x2ad307[0x0]===_0x53520f['rFggg']&&(_0x2ad307[0x0]=_0x53520f[_0x2f5f6b(0x8f)]),_0x2ad307;}export function formatSettings(_0x3a3908,_0x29e644=0x0){const _0x506d7e=_0x45f284,_0x520964={'WghHJ':_0x506d7e(0x88)},_0x8a910f=[],_0x21490a='\x20\x20'[_0x506d7e(0xa8)](_0x29e644);for(const [_0x2eeec1,_0x349c66]of Object[_0x506d7e(0x8b)](_0x3a3908)){if(_0x349c66===undefined)continue;if(typeof _0x349c66===_0x520964[_0x506d7e(0xda)]&&_0x349c66!==null){_0x8a910f[_0x506d7e(0xdf)](''+_0x21490a+_0x2eeec1+':');for(const [_0xf8b307,_0x20d704]of Object[_0x506d7e(0x8b)](_0x349c66)){_0x8a910f['push'](_0x21490a+'\x20\x20'+_0xf8b307+':\x20'+_0x20d704);}}else _0x8a910f['push'](''+_0x21490a+_0x2eeec1+':\x20'+_0x349c66);}return _0x8a910f[_0x506d7e(0xc6)]('\x0a');}function _0x4547(){const _0x4c5bd6=['jwLrv','aiQDq','AgzYf','auth.json.enc','ranger-auth-','repeat','HXVmy','nHTEJ','LrfGN','install','location','HZnGa','.json','2626086DezUXL','FmtEu','filter','--disable-setuid-sandbox','232HiqSOQ','--disable-features=WebBluetooth','DxnHM','auth.json','HthHb','ENOENT','HJRhc','50TIMQMz','split','AuySf','ljDJB','allow','VqsAm','map','jFffR','hJOjV','ohqPU','SrJBw','join','browser','1202232agVFVF','XoQNE','xbHIS','15738Kjrkfs','sessions','headless','Pxlec','gLrNk','boolean','ranger-config','uAKXb','qfiYt','string','env','912584tEkFsB','cdpEndpoint','getuid','ZGjMM','WghHJ','hhXMu','xGYOT','all','storageState','push','chromium','stringify','tempAuthPath','ENNrd','MclDI','XWCnA','UwPEx','kZVaF','args','CxqrX','setupHeader','5108005AeGMYW','local','keys','10TvUVTj','none','OZREY','message','TFngI','replace','warn','legacy','length','uEPiZ','catch','object','userAgent','path','entries','code','allowInsecureLocalhost','Failed\x20to\x20decrypt\x20auth\x20state:\x20','eEFoM','wYkLz','includes','--no-sandbox','SXDxz','2968272RYUJwb','dvtNH','now','clipboard-write','isArray','FVmgy','mIXrC','ExLdf','clipboard-read','RQihM','fromEntries','headers','core','742968wENuNc','AtwIB'];_0x4547=function(){return _0x4c5bd6;};return _0x4547();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x8fef22,_0x3da91b){const _0x5d938e=_0x5703,_0x413817=_0x8fef22();while(!![]){try{const _0x2f122e=-parseInt(_0x5d938e(0x164))/0x1+-parseInt(_0x5d938e(0x163))/0x2+parseInt(_0x5d938e(0x15c))/0x3+-parseInt(_0x5d938e(0x15f))/0x4*(parseInt(_0x5d938e(0x15b))/0x5)+-parseInt(_0x5d938e(0x162))/0x6+-parseInt(_0x5d938e(0x15a))/0x7+parseInt(_0x5d938e(0x15e))/0x8;if(_0x2f122e===_0x3da91b)break;else _0x413817['push'](_0x413817['shift']());}catch(_0x4bec30){_0x413817['push'](_0x413817['shift']());}}}(_0x3e9b,0x23a7e));import{readFileSync}from'fs';function _0x5703(_0x664401,_0x4e571e){_0x664401=_0x664401-0x15a;const _0x3e9b56=_0x3e9b();let _0x57036d=_0x3e9b56[_0x664401];return _0x57036d;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x3e9b(){const _0xfd7f34=['55982PNwQZG','61561OjAbAF','839020XwQzDz','278755WUhccj','58536ZmXuGe','ranger/SKILL.md','4821200YwNlVI','12zUrtsk','EkplG','utf-8','596706vCjLHI'];_0x3e9b=function(){return _0xfd7f34;};return _0x3e9b();}export function readSkillContent(_0x64d597){const _0x2a08cc=_0x5703,_0x42a275={'RXqfb':function(_0x1d1398,_0x44d84a,_0x5111c4,_0x25a3d3,_0x410a70){return _0x1d1398(_0x44d84a,_0x5111c4,_0x25a3d3,_0x410a70);},'DNWIZ':'skills','EkplG':function(_0x141f87,_0x14145c,_0x24056d){return _0x141f87(_0x14145c,_0x24056d);},'mKRPA':_0x2a08cc(0x161)},_0x379701=_0x42a275['RXqfb'](join,__dirname,'..','..',_0x42a275['DNWIZ']),_0x43c5fb=_0x42a275['EkplG'](join,_0x379701,_0x64d597);try{return _0x42a275[_0x2a08cc(0x160)](readFileSync,_0x43c5fb,_0x42a275['mKRPA']);}catch{return'';}}export function getRangerSkillContent(){const _0xde3cf0=_0x5703,_0x4520f7={'UDGuc':_0xde3cf0(0x15d)};return readSkillContent(_0x4520f7['UDGuc']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3467(){const _0x4d70a7=['2UdReBk','warn','WVPCk','155901JekYSq','push','XIFNv','claude','636OVfMBJ','ZORhD','uPNix','94977JsUKso','\x20\x20Files:\x20','9LKHTYj','feature-tracker','orUrT','trim','project','50OnyIGn','549618KSqILV','filter','\x20\x20Location:\x20','isDirectory','\x20\x20Removed\x20deprecated\x20skill:\x20','SKILL.md','skills','EHrrX','1231270FXgXaN','catch','match','log','5376998eOtvVH','3949992aXvWaz','\x20\x20Skill\x20not\x20found:\x20','opencode','tBbax','Invalid\x20skill\x20frontmatter','7xhnRxB','nTNIL','endsWith'];_0x3467=function(){return _0x4d70a7;};return _0x3467();}const _0x5f3913=_0x3b36;(function(_0xcb25ab,_0x41f728){const _0x373f04=_0x3b36,_0x4e95d9=_0xcb25ab();while(!![]){try{const _0x4aab37=parseInt(_0x373f04(0xa7))/0x1*(parseInt(_0x373f04(0xc4))/0x2)+-parseInt(_0x373f04(0xc7))/0x3+parseInt(_0x373f04(0xcb))/0x4*(parseInt(_0x373f04(0xae))/0x5)+parseInt(_0x373f04(0xaf))/0x6*(parseInt(_0x373f04(0xc1))/0x7)+parseInt(_0x373f04(0xbc))/0x8+-parseInt(_0x373f04(0xa9))/0x9*(-parseInt(_0x373f04(0xb7))/0xa)+-parseInt(_0x373f04(0xbb))/0xb;if(_0x4aab37===_0x41f728)break;else _0x4e95d9['push'](_0x4e95d9['shift']());}catch(_0x502c9e){_0x4e95d9['push'](_0x4e95d9['shift']());}}}(_0x3467,0x40845));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';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',_0x5f3913(0xaa)];export async function installSkill(_0x457cac,_0x28b8a1={}){const _0xb356d9=_0x5f3913,_0x3a9de3={'QVLiN':function(_0x315a6e){return _0x315a6e();},'qoNxd':function(_0x5221bc,_0x29b894,_0x53d69f){return _0x5221bc(_0x29b894,_0x53d69f);},'JVysu':function(_0x49e4e9,_0x7b2f55,_0x1fbfc6){return _0x49e4e9(_0x7b2f55,_0x1fbfc6);},'XIFNv':function(_0x2cfd7b,_0x1bd5d3){return _0x2cfd7b(_0x1bd5d3);},'ZORhD':_0xb356d9(0xb4),'mqZoJ':function(_0x3ec340,_0x519e4b){return _0x3ec340&&_0x519e4b;},'llCmy':function(_0x199269,_0x462f7a){return _0x199269===_0x462f7a;},'PPUJM':_0xb356d9(0xbe),'VUOMO':function(_0x2ad57e,_0x56eb6a){return _0x2ad57e(_0x56eb6a);},'EHrrX':function(_0x2da6dd,_0x26e3ad,_0xa2c805){return _0x2da6dd(_0x26e3ad,_0xa2c805);},'UGMGR':function(_0x79fc14,_0x56cf4d,_0x3f868a,_0x56ed10){return _0x79fc14(_0x56cf4d,_0x3f868a,_0x56ed10);},'orUrT':function(_0x5488bf,_0xb1ed8){return _0x5488bf(_0xb1ed8);},'tBbax':function(_0x418bde,_0xc5fb80){return _0x418bde>_0xc5fb80;}},{level:level=_0xb356d9(0xad),cliVersion:_0x43abce,platform:platform=_0xb356d9(0xca)}=_0x28b8a1,_0x18f4b6=_0x3a9de3['QVLiN'](getSourceSkillsDir),_0x247551=_0x3a9de3['qoNxd'](join,_0x18f4b6,_0x457cac),_0x1bd6a0=_0x3a9de3['JVysu'](join,_0x18f4b6,_0x457cac+'.md'),_0x40c6bc=_0x3a9de3[_0xb356d9(0xc9)](existsSync,_0x247551)&&statSync(_0x247551)[_0xb356d9(0xb2)]()&&existsSync(_0x3a9de3['qoNxd'](join,_0x247551,_0x3a9de3[_0xb356d9(0xa5)])),_0x2f0a42=existsSync(_0x1bd6a0);if(_0x3a9de3['mqZoJ'](!_0x40c6bc,!_0x2f0a42))return console[_0xb356d9(0xc5)](_0xb356d9(0xbd)+_0x457cac),![];const _0x3d9cc3=_0x3a9de3['llCmy'](platform,_0x3a9de3['PPUJM'])?getOpencodeSkillsDir(level):_0x3a9de3['VUOMO'](getSkillsDir,level),_0x4d9e95=_0x3a9de3[_0xb356d9(0xb6)](join,_0x3d9cc3,_0x457cac);await mkdir(_0x4d9e95,{'recursive':!![]});let _0x4822d2,_0x2fdb00=[];if(_0x40c6bc){const _0x1f93e6=await readdir(_0x247551),_0x5d40e4=_0x1f93e6[_0xb356d9(0xb0)](_0xb45432=>_0xb45432[_0xb356d9(0xc3)]('.md'));for(const _0x1b609c of _0x5d40e4){const _0x1a86a4=join(_0x247551,_0x1b609c),_0x237c49=join(_0x4d9e95,_0x1b609c);await _0x3a9de3[_0xb356d9(0xb6)](copyFile,_0x1a86a4,_0x237c49),_0x2fdb00['push'](_0x1b609c);}_0x4822d2=await _0x3a9de3['qoNxd'](readFile,join(_0x247551,'SKILL.md'),'utf-8');}else{_0x4822d2=await _0x3a9de3[_0xb356d9(0xb6)](readFile,_0x1bd6a0,'utf-8');const _0x389f85=join(_0x4d9e95,_0x3a9de3['ZORhD']);await _0x3a9de3['UGMGR'](writeFile,_0x389f85,_0x4822d2,'utf-8'),_0x2fdb00[_0xb356d9(0xc8)](_0x3a9de3[_0xb356d9(0xa5)]);}const {name:_0x537217}=_0x3a9de3[_0xb356d9(0xab)](parseFrontmatter,_0x4822d2);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x537217),console[_0xb356d9(0xba)](_0xb356d9(0xb1)+_0x4d9e95),_0x3a9de3[_0xb356d9(0xbf)](_0x2fdb00['length'],0x1)&&console[_0xb356d9(0xba)](_0xb356d9(0xa8)+_0x2fdb00['join'](',\x20')),_0x3a9de3['UGMGR'](logLocalAgentInstallation,_0x457cac,{'skillDisplayName':_0x537217,'installLevel':level},_0x43abce)[_0xb356d9(0xb8)](()=>{}),!![];}function getSourceSkillsDir(){const _0x23f643=_0x5f3913,_0x306359={'loHcW':_0x23f643(0xb5),'nTNIL':function(_0x59d2c3,_0x7052a6){return _0x59d2c3(_0x7052a6);}},_0x1b06a4=[join(__dirname,'..','..',_0x306359['loHcW']),join(__dirname,'..','..','..',_0x306359['loHcW'])];for(const _0x5c5bfc of _0x1b06a4){if(_0x306359[_0x23f643(0xc2)](existsSync,_0x5c5bfc))return _0x5c5bfc;}return _0x1b06a4[0x0];}function parseFrontmatter(_0x1d9e3a){const _0xe4edc3=_0x5f3913,_0x184d06={'caDMp':_0xe4edc3(0xc0)},_0x1fe98e=_0x1d9e3a[_0xe4edc3(0xb9)](/^---\n([\s\S]+?)\n---/);if(!_0x1fe98e)throw new Error(_0x184d06['caDMp']);const _0x2a6cbb=_0x1fe98e[0x1],_0xd33312=_0x2a6cbb['match'](/name:\s*(.+)/),_0x456995=_0x2a6cbb[_0xe4edc3(0xb9)](/description:\s*"?(.+?)"?\n/);return{'name':_0xd33312?.[0x1][_0xe4edc3(0xac)]()||'','description':_0x456995?.[0x1]['trim']()||''};}function _0x3b36(_0x16272a,_0x5a487b){_0x16272a=_0x16272a-0xa5;const _0x3467c1=_0x3467();let _0x3b3664=_0x3467c1[_0x16272a];return _0x3b3664;}export async function removeSkill(_0x5e52f6,_0x3cb58e){const _0x211b3e=_0x5f3913,_0x101c15={'uPNix':function(_0x189af0,_0x477b3c,_0x4ecb16){return _0x189af0(_0x477b3c,_0x4ecb16);},'WVPCk':function(_0xe67470,_0x2e327c){return _0xe67470(_0x2e327c);}},_0x1d40c0=getSkillsDir(_0x3cb58e),_0x358456=_0x101c15[_0x211b3e(0xa6)](join,_0x1d40c0,_0x5e52f6);if(!_0x101c15[_0x211b3e(0xc6)](existsSync,_0x358456))return![];try{return await _0x101c15['uPNix'](rm,_0x358456,{'recursive':!![]}),console['log'](_0x211b3e(0xb3)+_0x5e52f6),!![];}catch{return console[_0x211b3e(0xc5)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5e52f6),![];}}
|