@ranger-testing/ranger-cli 3.1.7-alpha.a5be4ca-60 → 3.1.7-alpha.be2850d-64
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/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.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/actors.js +1 -0
- 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/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.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/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/scenarioOriginCheck.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/tunnelClient.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/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
- package/build/skills/ranger/SKILL.md +8 -0
- package/package.json +5 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1e0df1,_0x5a6546){const _0x4ca8f9=_0x52f9,_0x3fa470=_0x1e0df1();while(!![]){try{const _0x3afc93=parseInt(_0x4ca8f9(0x241))/0x1*(parseInt(_0x4ca8f9(0x26b))/0x2)+-parseInt(_0x4ca8f9(0x236))/0x3*(-parseInt(_0x4ca8f9(0x217))/0x4)+parseInt(_0x4ca8f9(0x269))/0x5*(-parseInt(_0x4ca8f9(0x1a5))/0x6)+parseInt(_0x4ca8f9(0x23d))/0x7+-parseInt(_0x4ca8f9(0x203))/0x8*(-parseInt(_0x4ca8f9(0x1bf))/0x9)+-parseInt(_0x4ca8f9(0x233))/0xa*(-parseInt(_0x4ca8f9(0x1b7))/0xb)+parseInt(_0x4ca8f9(0x229))/0xc*(-parseInt(_0x4ca8f9(0x1ba))/0xd);if(_0x3afc93===_0x5a6546)break;else _0x3fa470['push'](_0x3fa470['shift']());}catch(_0x475962){_0x3fa470['push'](_0x3fa470['shift']());}}}(_0xb98a,0xe270c));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x39c117 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x31aa25=>'\x1b[1m'+_0x31aa25+'\x1b[0m';function getGitRepoUrl(){const _0x38fc05=_0x52f9,_0x3a0033={'bDMyW':function(_0x183e91,_0x2a5e8b,_0x23f370){return _0x183e91(_0x2a5e8b,_0x23f370);},'CXqQr':_0x38fc05(0x222),'hKSlf':_0x38fc05(0x1e4)};try{const _0x4bed88=_0x3a0033[_0x38fc05(0x1eb)](execSync,'git\x20remote\x20get-url\x20origin',{'encoding':'utf-8','stdio':[_0x3a0033['CXqQr'],_0x3a0033[_0x38fc05(0x1d3)],_0x3a0033['CXqQr']]})['trim']();return _0x4bed88['replace'](/\.git$/,'')[_0x38fc05(0x21b)](/^git@github\.com:/,_0x3a0033['hKSlf'])[_0x38fc05(0x21b)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x589fe5=_0x52f9,_0x2f4b99={'cTkid':function(_0x56407d,_0x5a16ac,_0x1c1b75){return _0x56407d(_0x5a16ac,_0x1c1b75);},'trfQn':_0x589fe5(0x242),'YUrNY':'utf-8','lUnjq':_0x589fe5(0x222)};try{return _0x2f4b99['cTkid'](execSync,_0x2f4b99['trfQn'],{'encoding':_0x2f4b99[_0x589fe5(0x24e)],'stdio':['pipe',_0x2f4b99[_0x589fe5(0x238)],'pipe']})[_0x589fe5(0x239)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0xd7ad0d=_0x52f9,_0x163a5c={'APnvL':function(_0x4fd5a3,_0x4b0310){return _0x4fd5a3(_0x4b0310);},'yyGza':'utf-8'},_0x1136f6=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x163a5c[_0xd7ad0d(0x223)](existsSync,_0x1136f6))return null;try{const _0x7f9eec=await readFile(_0x1136f6,_0x163a5c['yyGza']);return _0x7f9eec[_0xd7ad0d(0x239)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x314aa5){const _0x937d4b=_0x52f9,_0x4eeb0c={'nkZOA':function(_0x2a7974,_0x5722c9,_0xa98786){return _0x2a7974(_0x5722c9,_0xa98786);},'DjKkM':function(_0x3e5c27,_0x5613bf){return _0x3e5c27(_0x5613bf);},'NpWsv':'utf-8'},_0x5b9994=getRangerDir(),_0x54fe5d=_0x4eeb0c['nkZOA'](join,_0x5b9994,ACTIVE_FEATURE_FILE);!_0x4eeb0c[_0x937d4b(0x1da)](existsSync,_0x5b9994)&&await mkdir(_0x5b9994,{'recursive':!![]}),await writeFile(_0x54fe5d,_0x314aa5,_0x4eeb0c['NpWsv']);}function getProgressDisplay(_0x312c5f){const _0x4699e4=_0x52f9,_0x17ff78={'BBBrX':function(_0x130bc8,_0x170c20){return _0x130bc8===_0x170c20;},'EpTnX':function(_0x363e9e,_0xfb7e56){return _0x363e9e*_0xfb7e56;},'HdVRx':function(_0x57d950,_0x5873f2){return _0x57d950>_0x5873f2;},'wcigc':function(_0x54c15c,_0x4beacc){return _0x54c15c>_0x4beacc;}},_0x4e5086=_0x312c5f['verifiedItems']||0x0,_0x568caa=_0x312c5f['verificationInProgressItems']||0x0,_0x41236c=_0x312c5f['blockedItems']||0x0,_0x334000=_0x312c5f[_0x4699e4(0x270)]||0x0,_0x352d8a=_0x312c5f['pendingItems']||0x0,_0x448325=_0x4e5086+_0x568caa+_0x41236c+_0x334000+_0x352d8a;if(_0x17ff78[_0x4699e4(0x211)](_0x448325,0x0))return'-';const _0xc2b9d6=0xa,_0x49b226=Math[_0x4699e4(0x22b)](_0x17ff78['EpTnX'](_0x4e5086/_0x448325,_0xc2b9d6)),_0x1d3117='█'[_0x4699e4(0x200)](_0x49b226)+'░'[_0x4699e4(0x200)](_0xc2b9d6-_0x49b226),_0x54870f=[];if(_0x41236c>0x0)_0x54870f['push'](_0x41236c+_0x4699e4(0x19e));if(_0x334000>0x0)_0x54870f['push'](_0x334000+_0x4699e4(0x1e7));if(_0x17ff78[_0x4699e4(0x1b6)](_0x568caa,0x0))_0x54870f['push'](_0x568caa+_0x4699e4(0x1b3));const _0x2d0255=_0x17ff78['wcigc'](_0x54870f[_0x4699e4(0x1a0)],0x0)?'\x20('+_0x54870f[_0x4699e4(0x1c2)](',\x20')+')':'';return _0x1d3117+'\x20'+_0x4e5086+'/'+_0x448325+'\x20verified'+_0x2d0255;}function getCurrentSessionItems(_0x5c8e93,_0x362590){const _0x1944a4=_0x52f9;if(!_0x5c8e93[_0x1944a4(0x221)])return _0x362590[_0x1944a4(0x27d)](_0x26e865=>!_0x26e865[_0x1944a4(0x20f)]);return _0x362590[_0x1944a4(0x27d)](_0x16da7f=>_0x16da7f['sessionId']===_0x5c8e93['currentSessionId']||!_0x16da7f['sessionId']);}function displayFeature(_0x17ba29,_0x2afa8e){const _0x261d77=_0x52f9,_0x2a2288={'CjMdH':function(_0x60f0d,_0x2811da){return _0x60f0d(_0x2811da);},'aURie':'\x0a\x20\x20\x20Scenarios:','AKxnl':function(_0x323280,_0x47a967){return _0x323280<_0x47a967;},'oYWNg':function(_0x426a3b,_0x1dab4a){return _0x426a3b===_0x1dab4a;},'KgMRz':function(_0x3288c4,_0x30a120){return _0x3288c4===_0x30a120;},'PFiNY':'approved','BwMuj':function(_0x385746,_0x566a4b){return _0x385746===_0x566a4b;},'avWRa':_0x261d77(0x212),'iDynY':function(_0x5dcb63,_0x16c4cb){return _0x5dcb63===_0x16c4cb;},'arMgs':_0x261d77(0x1bc),'xQWLe':function(_0x822430,_0x272c13){return _0x822430>_0x272c13;},'LDLtP':function(_0x2eff4e,_0x1b2bf1){return _0x2eff4e!==_0x1b2bf1;},'bBQUj':function(_0x5dbadd,_0xb94c95){return _0x5dbadd===_0xb94c95;},'HMHlB':'closed'};console[_0x261d77(0x225)]('\x0a'+_0x17ba29[_0x261d77(0x25f)]+'\x20('+_0x17ba29[_0x261d77(0x257)]+')');_0x17ba29['stats']&&console['log'](_0x261d77(0x277)+_0x2a2288[_0x261d77(0x1c4)](getProgressDisplay,_0x17ba29['stats']));_0x17ba29[_0x261d77(0x1ff)]&&console[_0x261d77(0x225)](_0x261d77(0x27f)+_0x17ba29['description']);_0x17ba29['gitRepoUrl']&&console[_0x261d77(0x225)]('\x20\x20\x20Repository:\x20'+_0x17ba29['gitRepoUrl']);_0x17ba29['gitBranch']&&console[_0x261d77(0x225)](_0x261d77(0x1bb)+_0x17ba29[_0x261d77(0x23f)]);console['log'](_0x261d77(0x22c)+new Date(_0x17ba29[_0x261d77(0x1be)])['toLocaleString']());_0x17ba29[_0x261d77(0x27e)]&&console[_0x261d77(0x225)]('\x20\x20\x20Completed:\x20'+new Date(_0x17ba29['completedAt'])[_0x261d77(0x26d)]());if(_0x2afa8e&&_0x2afa8e[_0x261d77(0x1a0)]>0x0){console[_0x261d77(0x225)](_0x2a2288['aURie']);for(let _0x168905=0x0;_0x2a2288['AKxnl'](_0x168905,_0x2afa8e['length']);_0x168905++){const _0x53b445=_0x2afa8e[_0x168905];let _0x5d195a;if(_0x2a2288[_0x261d77(0x1b9)](_0x53b445['status'],'closed')&&_0x2a2288['KgMRz'](_0x53b445[_0x261d77(0x1fc)],_0x2a2288['PFiNY']))_0x5d195a='✅';else{if(_0x2a2288[_0x261d77(0x1b8)](_0x53b445[_0x261d77(0x263)],_0x2a2288['avWRa']))_0x5d195a='🟢';else{if(_0x2a2288['iDynY'](_0x53b445['status'],_0x2a2288['arMgs']))_0x5d195a='🟠';else{if(_0x53b445[_0x261d77(0x263)]==='blocked')_0x5d195a='🛑';else{if(_0x53b445[_0x261d77(0x263)]===_0x261d77(0x1f2))_0x5d195a='⛔';else _0x53b445['status']==='verification_in_progress'?_0x5d195a='⏳':_0x5d195a='⬜';}}}}const _0x6ae45=_0x2a2288[_0x261d77(0x264)](_0x53b445[_0x261d77(0x281)],0x1)?_0x261d77(0x283)+_0x53b445[_0x261d77(0x281)]+')':'',_0x244890=_0x2a2288['xQWLe'](_0x53b445[_0x261d77(0x281)],0x1)&&_0x53b445[_0x261d77(0x218)]&&_0x2a2288['LDLtP'](_0x53b445[_0x261d77(0x263)],'closed')&&_0x53b445[_0x261d77(0x263)]!==_0x261d77(0x212)?'\x20[has\x20reviewer\x20feedback]':'';console[_0x261d77(0x225)]('\x20\x20\x20'+(_0x168905+0x1)+'.\x20'+_0x5d195a+'\x20'+_0x53b445['description']+_0x6ae45+_0x244890);_0x2a2288['bBQUj'](_0x53b445['status'],'blocked')&&_0x53b445[_0x261d77(0x1d2)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x53b445[_0x261d77(0x1d2)]);_0x2a2288['iDynY'](_0x53b445[_0x261d77(0x263)],_0x2a2288[_0x261d77(0x1d0)])&&_0x53b445[_0x261d77(0x265)]&&console[_0x261d77(0x225)](_0x261d77(0x273)+_0x53b445[_0x261d77(0x265)]);if(_0x53b445[_0x261d77(0x263)]===_0x2a2288[_0x261d77(0x1fe)]&&_0x2a2288[_0x261d77(0x1b8)](_0x53b445[_0x261d77(0x1fc)],_0x261d77(0x1cb)))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x53b445[_0x261d77(0x263)]===_0x2a2288[_0x261d77(0x1fe)]&&_0x53b445['canceledReason']&&console['log'](_0x261d77(0x280)+_0x53b445[_0x261d77(0x1ef)]);}}}function _0x52f9(_0x16c410,_0x59d648){_0x16c410=_0x16c410-0x19c;const _0xb98a1e=_0xb98a();let _0x52f92e=_0xb98a1e[_0x16c410];return _0x52f92e;}export async function featureCreate(_0x2f9307,_0x285b5b){const _0x4fcb20=_0x52f9,_0x4c2d1b={'lTWQC':function(_0x2e1337,_0x217ad2){return _0x2e1337===_0x217ad2;},'MlwEe':function(_0x5c05d0,_0x2310d8){return _0x5c05d0(_0x2310d8);},'ZNBMh':function(_0x4010dc){return _0x4010dc();},'BpSDZ':function(_0x397690){return _0x397690();},'aoAYS':function(_0x14fb20,_0x4721b3){return _0x14fb20(_0x4721b3);},'BxQkR':function(_0x3f15ed,_0x1bc132,_0x513cc3){return _0x3f15ed(_0x1bc132,_0x513cc3);},'sXtxf':function(_0x3884cd,_0x2ac1cb,_0x58b2e3){return _0x3884cd(_0x2ac1cb,_0x58b2e3);}},{envNames:_0xe8d0a0}=await getEnvNames();if(_0x4c2d1b['lTWQC'](_0xe8d0a0[_0x4fcb20(0x1a0)],0x0)&&!process[_0x4fcb20(0x1ac)][_0x4fcb20(0x234)]){let _0xa5166b=0x0;try{_0xa5166b=(await listCloudProfiles())['length'];}catch{_0xa5166b=0x1;}_0xa5166b===0x0&&console['warn']('\x0a'+_0x4c2d1b[_0x4fcb20(0x1ed)](formatProfileRequiredMessage,_0x2fefe7=>bold(_0x2fefe7)));}const _0x153da1=_0x285b5b[_0x4fcb20(0x22e)]?_0x285b5b[_0x4fcb20(0x22e)][_0x4fcb20(0x1d4)](_0x189fb3=>_0x189fb3['trim']()):[],_0x4159c6=_0x4c2d1b['ZNBMh'](getGitRepoUrl),_0x56b0bf=_0x4c2d1b[_0x4fcb20(0x23c)](getGitBranch);console[_0x4fcb20(0x225)](_0x4fcb20(0x1bd));const _0x23d463=await _0x4c2d1b[_0x4fcb20(0x1ed)](createFeature,{'name':_0x2f9307,'description':_0x285b5b[_0x4fcb20(0x1ff)],'checklist':_0x153da1,'gitRepoUrl':_0x4159c6,'gitBranch':_0x56b0bf});await setActiveFeatureId(_0x23d463['id']),await _0x4c2d1b[_0x4fcb20(0x216)](tryStartCurrentSession,_0x23d463['id']);const _0x55c900=process['env'][_0x4fcb20(0x243)];_0x55c900&&_0x4c2d1b['BxQkR'](registerSession,_0x55c900,_0x23d463['id']),console[_0x4fcb20(0x225)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x23d463['id']),_0x4c2d1b[_0x4fcb20(0x1ee)](displayFeature,_0x23d463,_0x23d463['checklistItems']),console['log'](_0x4fcb20(0x26e));}export async function featureList(_0x511ae6){const _0x267a8f=_0x52f9,_0x11de4c={'cosEw':function(_0xf00556){return _0xf00556();},'EocLc':function(_0x56f560,_0x213cca){return _0x56f560===_0x213cca;},'GsmBB':'\x0aNo\x20feature\x20reviews\x20found.','oeVkA':function(_0x26a050,_0x2c1135){return _0x26a050>_0x2c1135;},'FKsjU':function(_0x15828c,_0x3ed19c){return _0x15828c!==_0x3ed19c;}},_0x48798e={'limit':_0x511ae6[_0x267a8f(0x259)]??0xa,'offset':_0x511ae6['offset']??0x0,'includeDeleted':_0x511ae6['includeDeleted']};_0x511ae6[_0x267a8f(0x1db)]&&(_0x48798e['gitRepoUrl']=getGitRepoUrl(),_0x48798e['gitBranch']=_0x11de4c[_0x267a8f(0x1e1)](getGitBranch));const _0x1f4b16=await listFeatures(_0x48798e);if(_0x11de4c[_0x267a8f(0x25e)](_0x1f4b16['items'][_0x267a8f(0x1a0)],0x0)){console[_0x267a8f(0x225)](_0x11de4c['GsmBB']);return;}const _0x50b6f4=_0x11de4c['oeVkA'](_0x1f4b16['totalCount'],_0x1f4b16[_0x267a8f(0x213)]['length'])?'Showing\x20'+_0x1f4b16[_0x267a8f(0x213)]['length']+'\x20of\x20'+_0x1f4b16[_0x267a8f(0x22d)]:_0x1f4b16[_0x267a8f(0x22d)]+_0x267a8f(0x1dd);console[_0x267a8f(0x225)]('\x0a'+_0x50b6f4+':\x0a');for(const _0xcdb71f of _0x1f4b16['items']){console[_0x267a8f(0x225)](''+_0xcdb71f['name']),console['log']('\x20\x20\x20ID:\x20'+_0xcdb71f['id']),_0xcdb71f[_0x267a8f(0x231)]&&console['log'](_0x267a8f(0x277)+getProgressDisplay(_0xcdb71f[_0x267a8f(0x231)])),_0xcdb71f['gitBranch']&&console[_0x267a8f(0x225)](_0x267a8f(0x1bb)+_0xcdb71f['gitBranch']),console[_0x267a8f(0x225)](_0x267a8f(0x22c)+new Date(_0xcdb71f['createdAt'])[_0x267a8f(0x1d7)]()),console['log']('');}const _0x9d29da=_0x48798e[_0x267a8f(0x259)]??0xa,_0x24095f=(_0x48798e[_0x267a8f(0x1ae)]??0x0)+_0x1f4b16[_0x267a8f(0x213)][_0x267a8f(0x1a0)];if(_0x24095f<_0x1f4b16['totalCount']){const _0x4ce8e0=_0x11de4c[_0x267a8f(0x1f6)](_0x9d29da,0xa)?_0x267a8f(0x1a2)+_0x9d29da:'',_0x2da212=_0x511ae6[_0x267a8f(0x1db)]?'\x20--current-branch':'',_0x5e5090=_0x511ae6[_0x267a8f(0x20d)]?'\x20--include-deleted':'';console[_0x267a8f(0x225)](_0x267a8f(0x248)+_0x24095f+_0x4ce8e0+_0x2da212+_0x5e5090);}}export async function featureShow(_0x77156b){const _0x2a7a3d=_0x52f9,_0x3143eb={'mOdYj':function(_0x3037e6){return _0x3037e6();},'MdkVP':_0x2a7a3d(0x1a6),'sdywS':function(_0x3fa59f,_0x5b97c2,_0x1631ef){return _0x3fa59f(_0x5b97c2,_0x1631ef);}},_0x265fe0=_0x77156b||await _0x3143eb[_0x2a7a3d(0x256)](getActiveFeatureId);if(!_0x265fe0)throw new Error(_0x3143eb['MdkVP']);const _0x21a502=await getFeature(_0x265fe0);_0x3143eb['sdywS'](displayFeature,_0x21a502,_0x21a502['checklistItems']);}export async function featureResume(_0x4cb650){const _0x462226=_0x52f9,_0x1881ae={'gEzmQ':function(_0x3ed040,_0x5bfaa6){return _0x3ed040(_0x5bfaa6);},'EhVQQ':function(_0x381297){return _0x381297();},'ZNYQK':function(_0x560e39,_0x1115d8){return _0x560e39(_0x1115d8);},'BuuSg':function(_0xac739e,_0x10051d){return _0xac739e&&_0x10051d;},'rBFMa':_0x462226(0x205),'cFjfK':function(_0x43dfbc,_0x5f0a01){return _0x43dfbc===_0x5f0a01;},'lyUQU':_0x462226(0x1e2),'vNHZZ':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','RJXFq':function(_0x4df413,_0x14cc59){return _0x4df413(_0x14cc59);},'XaDds':function(_0x365fc7,_0xe60f24){return _0x365fc7(_0xe60f24);},'gLQSY':function(_0x18d3e3,_0x57a68e,_0x34d64e){return _0x18d3e3(_0x57a68e,_0x34d64e);},'QJUZP':function(_0x2fe3af,_0x57730c){return _0x2fe3af(_0x57730c);}};if(_0x4cb650){const _0x4b3895=await getFeature(_0x4cb650);await _0x1881ae['gEzmQ'](setActiveFeatureId,_0x4b3895['id']);const _0x3479c7=_0x1881ae['EhVQQ'](getGitBranch);_0x3479c7&&_0x3479c7!==_0x4b3895[_0x462226(0x23f)]&&(await updateFeature(_0x4b3895['id'],{'gitBranch':_0x3479c7}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3479c7));console['log'](_0x462226(0x21a)+_0x4b3895[_0x462226(0x25f)]+'\x20('+_0x4b3895['id']+')'),await _0x1881ae[_0x462226(0x25c)](tryStartCurrentSession,_0x4b3895['id']);const _0x2dc741=process['env'][_0x462226(0x243)];_0x2dc741&®isterSession(_0x2dc741,_0x4b3895['id']);displayFeature(_0x4b3895,_0x4b3895[_0x462226(0x224)]),await _0x1881ae['ZNYQK'](printFeedbackNudge,_0x4b3895['id']);return;}const _0x16d392=getGitRepoUrl(),_0x515d89=getGitBranch();if(_0x1881ae['BuuSg'](!_0x16d392,!_0x515d89))throw new Error(_0x1881ae['rBFMa']);console[_0x462226(0x225)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x16d392||_0x462226(0x267))+_0x462226(0x1d6)+(_0x515d89||_0x462226(0x267))+'...');const _0x526080=await listFeatures({'gitRepoUrl':_0x16d392,'gitBranch':_0x515d89}),_0x19871d=_0x526080['items'][_0x462226(0x27d)](_0x423a62=>_0x423a62['status']?_0x423a62[_0x462226(0x263)]!=='verified':!_0x423a62['completedAt']);if(_0x19871d['length']===0x0){console[_0x462226(0x225)](_0x462226(0x1b5)),console[_0x462226(0x225)](_0x462226(0x1ad));return;}let _0x1c4c95;if(_0x1881ae[_0x462226(0x208)](_0x19871d[_0x462226(0x1a0)],0x1))_0x1c4c95=_0x19871d[0x0];else{const _0xb6b085=process[_0x462226(0x20c)][_0x462226(0x1b2)]&&process['stdout'][_0x462226(0x1b2)];if(!_0xb6b085){console['log'](_0x1881ae[_0x462226(0x1ce)]);for(const _0xce5857 of _0x19871d){console[_0x462226(0x225)]('\x20\x20'+_0xce5857[_0x462226(0x25f)]),console[_0x462226(0x225)]('\x20\x20\x20\x20\x20ID:\x20'+_0xce5857['id']),_0xce5857['stats']&&console['log'](_0x462226(0x24a)+getProgressDisplay(_0xce5857[_0x462226(0x231)])),_0xce5857[_0x462226(0x23f)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xce5857[_0x462226(0x23f)]);}throw new Error(_0x462226(0x1cc));}const {selected:_0x5b18a6}=await _0x39c117[_0x462226(0x232)]([{'type':'list','name':'selected','message':_0x1881ae[_0x462226(0x1e8)],'choices':_0x19871d['map'](_0x1ea22a=>({'name':_0x1ea22a[_0x462226(0x25f)]+'\x20('+_0x1ea22a['id']+')','value':_0x1ea22a['id']}))}]);_0x1c4c95=_0x19871d['find'](_0x2b019d=>_0x2b019d['id']===_0x5b18a6);}await _0x1881ae[_0x462226(0x278)](setActiveFeatureId,_0x1c4c95['id']);_0x515d89&&_0x515d89!==_0x1c4c95['gitBranch']&&(await updateFeature(_0x1c4c95['id'],{'gitBranch':_0x515d89}),console[_0x462226(0x225)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x515d89));console['log'](_0x462226(0x21a)+_0x1c4c95['name']+'\x20('+_0x1c4c95['id']+')'),await _0x1881ae[_0x462226(0x246)](tryStartCurrentSession,_0x1c4c95['id']);const _0x1028e5=await getFeature(_0x1c4c95['id']),_0x261c1a=process['env']['CLAUDE_SESSION_ID'];_0x261c1a&&_0x1881ae[_0x462226(0x20b)](registerSession,_0x261c1a,_0x1028e5['id']),displayFeature(_0x1028e5,_0x1028e5['checklistItems']),await _0x1881ae[_0x462226(0x1f5)](printFeedbackNudge,_0x1028e5['id']);}async function printFeedbackNudge(_0xacfd0a){const _0x28fc71=_0x52f9,_0x1b2364={'ytyYo':function(_0x3b3889,_0x4158bc){return _0x3b3889(_0x4158bc);},'ZzNQk':function(_0x5112b3,_0x4dab98,_0x1a95b3){return _0x5112b3(_0x4dab98,_0x1a95b3);},'zxcEm':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x43989e}=await _0x1b2364[_0x28fc71(0x253)](getActionItems,_0xacfd0a);let _0x26b693=0x0,_0x253ff3=0x0;for(const _0x30e007 of _0x43989e){const _0x5a87bc=await _0x1b2364[_0x28fc71(0x20a)](getItemFeedback,_0xacfd0a,_0x30e007['id']);_0x5a87bc['unaddressedComments'][_0x28fc71(0x1a0)]>0x0&&(_0x26b693+=_0x5a87bc['unaddressedComments']['length'],_0x253ff3++);}_0x26b693>0x0&&(console['log'](_0x28fc71(0x1e5)+_0x26b693+_0x28fc71(0x25d)+_0x253ff3+'\x20scenario(s).'),console[_0x28fc71(0x225)](_0x1b2364['zxcEm']));}catch{}}async function tryStartCurrentSession(_0x305ed9){const _0xe03b1d=_0x52f9,_0x8edf4={'qHCeH':function(_0xcb60ab,_0x26f076){return _0xcb60ab(_0x26f076);}};try{const {sessions:_0x2ec11f}=await _0x8edf4['qHCeH'](listFeatureSessions,_0x305ed9),_0x17b831=_0x2ec11f['find'](_0xd815ba=>_0xd815ba['status']===_0xe03b1d(0x1a3));_0x17b831&&(await startSession(_0x305ed9,_0x17b831['id']),console['log'](_0xe03b1d(0x250)+_0x17b831['iteration']));}catch{}}export async function featureReport(_0x3ee45b,_0x1a4fa4){const _0x39a94d=_0x52f9,_0x543885={'kKXZb':function(_0x3e9fd9,_0x3343da,_0x5c7c0b){return _0x3e9fd9(_0x3343da,_0x5c7c0b);},'IbgME':function(_0xe34637,_0x394dbe){return _0xe34637(_0x394dbe);},'VTMyl':'utf-8'},_0x128c49=_0x3ee45b||await getActiveFeatureId();if(!_0x128c49)throw new Error(_0x39a94d(0x284));console[_0x39a94d(0x225)]('\x0aGenerating\x20report...');const _0x5d2e57=await _0x543885[_0x39a94d(0x1f4)](getFeatureReportMarkdown,_0x128c49,{'style':_0x1a4fa4[_0x39a94d(0x266)]}),_0x400c7a=_0x1a4fa4['output']||join(getRangerDir(),'reports',_0x128c49+_0x39a94d(0x207)),_0x2e7d11=join(_0x400c7a,'..');!_0x543885[_0x39a94d(0x24c)](existsSync,_0x2e7d11)&&await mkdir(_0x2e7d11,{'recursive':!![]}),await writeFile(_0x400c7a,_0x5d2e57,_0x543885[_0x39a94d(0x271)]),console[_0x39a94d(0x225)]('\x0a✅\x20Report\x20generated:\x20'+_0x400c7a);}function getScenarioResult(_0x483230){const _0x23cf6a=_0x52f9,_0x4137a7={'eVoCL':function(_0x409e,_0x1e5cdc){return _0x409e===_0x1e5cdc;},'pzZbY':'closed','CgHFT':'verification_in_progress','wkqWu':'in_progress'};if(_0x4137a7['eVoCL'](_0x483230[_0x23cf6a(0x263)],_0x4137a7[_0x23cf6a(0x226)]))return _0x483230[_0x23cf6a(0x1fc)]??_0x4137a7['pzZbY'];if(_0x4137a7[_0x23cf6a(0x251)](_0x483230[_0x23cf6a(0x263)],_0x4137a7[_0x23cf6a(0x26a)]))return _0x4137a7['wkqWu'];return _0x483230['status'];}function getScenarioRationale(_0x57f1dd,_0x5667c7){const _0x329930=_0x52f9,_0x4d269f={'HfApe':_0x329930(0x214)},_0x594a77=_0x4d269f[_0x329930(0x210)][_0x329930(0x1e3)]('|');let _0x315214=0x0;while(!![]){switch(_0x594a77[_0x315214++]){case'0':if(_0x57f1dd['blockedReason'])return _0x57f1dd['blockedReason'];continue;case'1':if(_0x57f1dd['notes'])return _0x57f1dd['notes'];continue;case'2':if(_0x57f1dd[_0x329930(0x265)])return _0x57f1dd[_0x329930(0x265)];continue;case'3':if(_0x5667c7)return _0x5667c7;continue;case'4':return null;case'5':if(_0x57f1dd['canceledReason'])return _0x57f1dd['canceledReason'];continue;}break;}}export async function featureReportPrDescription(_0x153386,_0x2e0754){const _0x2b5395=_0x52f9,_0xf625fe={'ZPkOH':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','VDHXU':function(_0x299ffd,_0x3995d8){return _0x299ffd(_0x3995d8);},'easHH':function(_0x5a4655,_0x19144c){return _0x5a4655===_0x19144c;},'dFsrQ':function(_0x447bf2,_0xaf785d){return _0x447bf2>_0xaf785d;},'kvtPC':function(_0x701281,_0x48b452){return _0x701281<_0x48b452;},'vmOlV':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0x31a400=_0x153386||await getActiveFeatureId();if(!_0x31a400)throw new Error(_0xf625fe[_0x2b5395(0x279)]);const _0x2c1bd1=await _0xf625fe[_0x2b5395(0x220)](getFeature,_0x31a400),_0x2f1792=_0x2c1bd1[_0x2b5395(0x224)]||[],_0x5038ea=getCurrentSessionItems(_0x2c1bd1,_0x2f1792);_0xf625fe['easHH'](_0x5038ea['length'],0x0)&&(console['error'](_0x2b5395(0x23e)),process[_0x2b5395(0x1de)](0x1));const _0x3b97a0=_0x2e0754['excludeScenarios']??[],_0x4714d0=_0x3b97a0['filter'](_0xe0d400=>!Number['isInteger'](_0xe0d400)||_0xe0d400<0x1||_0xe0d400>_0x5038ea['length']);if(_0xf625fe[_0x2b5395(0x202)](_0x4714d0['length'],0x0)){console[_0x2b5395(0x27b)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x4714d0[_0x2b5395(0x1c2)](',\x20')),console[_0x2b5395(0x225)]('\x0aAvailable\x20scenarios:');for(let _0xcc8868=0x0;_0xf625fe[_0x2b5395(0x1e0)](_0xcc8868,_0x5038ea[_0x2b5395(0x1a0)]);_0xcc8868++){console['log']('\x20\x20'+(_0xcc8868+0x1)+'.\x20'+_0x5038ea[_0xcc8868]['description']);}process['exit'](0x1);}const _0x39a921=new Set(_0x3b97a0['map'](_0x27781a=>_0x27781a-0x1)),_0x5b0e80=_0x5038ea['filter']((_0x26e007,_0x35a6cf)=>!_0x39a921['has'](_0x35a6cf));_0xf625fe[_0x2b5395(0x21c)](_0x5b0e80[_0x2b5395(0x1a0)],0x0)&&(console[_0x2b5395(0x27b)](_0xf625fe[_0x2b5395(0x1f1)]),process['exit'](0x1));if(_0x2e0754['json'])await outputJsonReport(_0x31a400,_0x2c1bd1,_0x5b0e80);else{const _0xa792e9=await getFeatureReportMarkdown(_0x31a400,{'itemIds':_0x5b0e80['map'](_0x4869cc=>_0x4869cc['id'])});process['stdout'][_0x2b5395(0x247)](_0xa792e9[_0x2b5395(0x237)]()+'\x0a');}}async function outputJsonReport(_0x45c9c8,_0x382037,_0x57a4a5){const _0x446ace=_0x52f9,_0x48725d={'ohMZQ':function(_0x49a7b2,_0xb761e4){return _0x49a7b2>_0xb761e4;},'hlWHQ':function(_0x237347,_0x23777f){return _0x237347===_0x23777f;},'frbal':function(_0x3ebb25,_0x390c5e){return _0x3ebb25(_0x390c5e);},'jtUQZ':function(_0x3f4b2e,_0x301201,_0x37c12b){return _0x3f4b2e(_0x301201,_0x37c12b);},'oOltV':function(_0x27cd56,_0x4df851){return _0x27cd56(_0x4df851);}},_0x56a56e=getApiBaseUrl(),_0x34fbb4=await _0x48725d[_0x446ace(0x25a)](getFeatureReport,_0x45c9c8),_0x106583=new Map(_0x34fbb4['checklistItems']['map'](_0xb4a26b=>[_0xb4a26b['id'],_0xb4a26b])),_0x3d8b0b=await Promise['all'](_0x57a4a5['map'](async _0x38e111=>{const _0x589011=_0x446ace,_0x11b53b=_0x106583['get'](_0x38e111['id']),_0x40397d=_0x11b53b?.[_0x589011(0x1fa)]??null;let _0x4e27ca=[];if(_0x38e111['browserSessionId'])try{const {steps:_0x86746b}=await getBrowserSessionSteps(_0x38e111['browserSessionId']);_0x48725d[_0x589011(0x245)](_0x86746b['length'],0x0)&&(_0x4e27ca=_0x86746b['map'](_0x36c2c7=>{const _0x49ad2d=_0x589011,_0x3f5fcc=_0x36c2c7['assets']['find'](_0x71d8f9=>_0x71d8f9[_0x49ad2d(0x252)]===_0x49ad2d(0x262)&&_0x71d8f9[_0x49ad2d(0x285)]==='after')??_0x36c2c7[_0x49ad2d(0x1aa)]['find'](_0x1f5913=>_0x1f5913[_0x49ad2d(0x252)]==='screenshot');let _0x2f13f8=null,_0x555404=null;if(_0x3f5fcc){const _0x23743b=_0x3f5fcc['storage'][_0x49ad2d(0x1fb)]['split']('/')[_0x49ad2d(0x21e)]();_0x2f13f8=_0x56a56e+'/api/v1/mcp/browser-sessions/'+_0x38e111[_0x49ad2d(0x1a8)]+_0x49ad2d(0x240)+_0x23743b,_0x23743b&&(_0x555404=_0x23743b['replace'](/\.\w+$/,'')[_0x49ad2d(0x21b)](/^(key_)?\d+_/,'')[_0x49ad2d(0x21b)](/[-_]/g,'\x20'));}return{'description':_0x555404||_0x36c2c7['description']||_0x36c2c7[_0x49ad2d(0x27c)]||_0x49ad2d(0x1c8)+_0x36c2c7['position'],'screenshot':_0x2f13f8,'is_key_step':_0x36c2c7['isKeyStep']};}));}catch{}return _0x48725d[_0x589011(0x235)](_0x4e27ca['length'],0x0)&&_0x40397d?.[_0x589011(0x244)]&&(_0x4e27ca=_0x40397d['screenshotUrls'][_0x589011(0x1d4)]((_0x55983c,_0x521096)=>({'description':'Screenshot\x20'+(_0x521096+0x1),'screenshot':_0x55983c,'is_key_step':![]}))),{'description':_0x38e111[_0x589011(0x1ff)],'result':_0x48725d[_0x589011(0x268)](getScenarioResult,_0x38e111),'rationale':_0x48725d['jtUQZ'](getScenarioRationale,_0x38e111,_0x40397d?.['agentResponse']),'steps':_0x4e27ca};})),_0x4cc2fa={'url':_0x382037[_0x446ace(0x257)],'scenarios':_0x3d8b0b};process['stdout']['write'](JSON[_0x446ace(0x1c3)](_0x4cc2fa,null,0x2)+'\x0a');}export async function featureConcludeSession(_0xcc1852){const _0x47a8d8=_0x52f9,_0x3382da={'aFATi':function(_0x57dac4,_0x540bbc){return _0x57dac4(_0x540bbc);},'yZcPD':function(_0x31b661,_0xed51dc){return _0x31b661===_0xed51dc;},'UYoRj':function(_0x257d2e,_0x1c7f16){return _0x257d2e!==_0x1c7f16;},'kfplN':_0x47a8d8(0x204),'nAZCe':_0x47a8d8(0x1f8),'taBCx':function(_0x27b193,_0x425a1c,_0x157c03){return _0x27b193(_0x425a1c,_0x157c03);}},_0x28ddeb=_0xcc1852||await getActiveFeatureId();if(!_0x28ddeb)throw new Error(_0x47a8d8(0x1a6));const _0x2907a4=await _0x3382da['aFATi'](getFeature,_0x28ddeb);if(!_0x2907a4[_0x47a8d8(0x221)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x4467e8}=await listFeatureSessions(_0x28ddeb),_0x455e53=_0x4467e8['find'](_0x1c7c8c=>_0x1c7c8c['id']===_0x2907a4[_0x47a8d8(0x221)]);if(!_0x455e53)throw new Error(_0x47a8d8(0x1b0));if(_0x3382da['yZcPD'](_0x455e53[_0x47a8d8(0x263)],_0x47a8d8(0x1c7))){console[_0x47a8d8(0x225)](_0x47a8d8(0x1f0));return;}if(_0x3382da[_0x47a8d8(0x261)](_0x455e53['status'],_0x3382da['kfplN']))throw new Error(_0x47a8d8(0x21f)+_0x455e53['status']);console['log'](_0x3382da['nAZCe']),await _0x3382da['taBCx'](concludeSession,_0x28ddeb,_0x2907a4[_0x47a8d8(0x221)]),console[_0x47a8d8(0x225)](_0x47a8d8(0x219)+_0x455e53['iteration']+_0x47a8d8(0x19c)),console[_0x47a8d8(0x225)](_0x47a8d8(0x1cd));}function _0xb98a(){const _0x5bc4bb=['timing','NgCjy','\x20concluded.','No\x20scenarios\x20found.','\x20blocked','\x20\x20\x20\x20','length','from','\x20--limit\x20','ready','wqNtB','177156szMSCV','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','en-US','browserSessionId','textContent','assets','\x20unaddressed\x20comment(s)','env','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','offset','tVjPH','Current\x20session\x20not\x20found.','\x0a✅\x20Restored\x20feature\x20review:\x20','isTTY','\x20in\x20progress','short','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','HdVRx','11PShunF','BwMuj','oYWNg','403QLzDLa','\x20\x20\x20Branch:\x20','incomplete','\x0aCreating\x20feature\x20review...','createdAt','222489DfnUMJ','point','oUegS','join','stringify','CjMdH','uIIRj','hhSRk','completed','Step\x20','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','itibB','approved','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','lyUQU','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','arMgs','latestReview','blockedReason','CXqQr','map','Scenario\x20','\x20/\x20','toLocaleDateString','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','numeric','DjKkM','currentBranch','toFixed','\x20feature\x20review(s)\x20found','exit','\x20\x20💬\x20','kvtPC','cosEw','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','split','github.com/','\x0a⚠️\x20\x20','spatial','\x20incomplete','vNHZZ','submittedAt','\x20Session\x20','bDMyW','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','MlwEe','sXtxf','canceledReason','\x0a✅\x20Session\x20is\x20already\x20completed.','vmOlV','closed','\x0aAvailable\x20scenarios:','kKXZb','QJUZP','FKsjU','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','\x0aConcluding\x20session...','comment_','linkedSession','location','terminalReason','\x20\x20\x20Completed:\x20','HMHlB','description','repeat','iKgiv','dFsrQ','392TtHkeb','in_progress','Not\x20in\x20a\x20git\x20repository.',':\x20\x22','.md','cFjfK','QQqWd','ZzNQk','gLQSY','stdin','includeDeleted','slice','sessionId','HfApe','BBBrX','verified','items','3|0|2|5|1|4','zFAAE','aoAYS','556dVVuDR','parentItemId','\x0a✅\x20Session\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','replace','easHH','\x20scenarios.','pop','Cannot\x20conclude\x20session\x20with\x20status:\x20','VDHXU','currentSessionId','pipe','APnvL','checklistItems','log','pzZbY','No\x20sessions\x20found.','assetUrl','739404bjNQVw','\x20>\x20','round','\x20\x20\x20Created:\x20','totalCount','scenarios','\x20at\x20[','selector','stats','prompt','8939980EYwhBZ','RANGER_TEST_USERNAME','hlWHQ','16791gMxKDX','trimEnd','lUnjq','trim','zVhez','unaddressedComments','BpSDZ','4668216YOzylQ','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','gitBranch','/artifacts/','1vKnWtT','git\x20rev-parse\x20--abbrev-ref\x20HEAD','CLAUDE_SESSION_ID','screenshotUrls','ohMZQ','XaDds','write','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','\x20\x20\x20\x20\x20Progress:\x20','\x20—\x20','IbgME','olGbx','YUrNY','domRef','\x20\x20\x20▶️\x20Started\x20session\x20','eVoCL','assetType','ytyYo','HdpJi','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','mOdYj','dashboardUrl','CxSzO','limit','oOltV','\x20\x20\x20\x20\x20📋\x20Selector:\x20','gEzmQ','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','EocLc','name','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','UYoRj','screenshot','status','xQWLe','incompleteReason','style','any','frbal','285ZkdPlI','CgHFT','1940822THqcJQ','DjqPD','toLocaleString','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x20\x20\x20Status:\x20','incompleteItems','VTMyl','RZRnA','\x20\x20\x20\x20\x20\x20Incomplete:\x20','type','canonicalFlow','JmMzp','\x20\x20\x20Progress:\x20','RJXFq','ZPkOH','QvsQr','error','stepName','filter','completedAt','\x20\x20\x20Description:\x20','\x20\x20\x20\x20\x20\x20Cancelled:\x20','version','XVAfk','\x20(v','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'];_0xb98a=function(){return _0x5bc4bb;};return _0xb98a();}export async function featureSessions(_0x47ab76){const _0xa6144e=_0x52f9,_0x26c3d0={'olGbx':function(_0x1e7a5d){return _0x1e7a5d();},'oLaFA':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ewUli':function(_0x3faec9,_0x4a2fd2){return _0x3faec9(_0x4a2fd2);},'XRiZU':function(_0x5c58fe,_0x4b19ef){return _0x5c58fe(_0x4b19ef);},'zHjrx':function(_0x4b2b1b,_0x50ba18){return _0x4b2b1b===_0x50ba18;}},_0x4e6f82=_0x47ab76||await _0x26c3d0[_0xa6144e(0x24d)](getActiveFeatureId);if(!_0x4e6f82)throw new Error(_0x26c3d0['oLaFA']);const _0x5e2638=await _0x26c3d0['ewUli'](getFeature,_0x4e6f82);console[_0xa6144e(0x225)](_0xa6144e(0x255)+_0x5e2638['name']+'\x0a');const {sessions:_0x76c545}=await _0x26c3d0['XRiZU'](listFeatureSessions,_0x4e6f82);if(_0x26c3d0['zHjrx'](_0x76c545[_0xa6144e(0x1a0)],0x0)){console['log'](_0xa6144e(0x227));return;}for(const _0x277fdf of _0x76c545){const _0x2ba23f=_0x26c3d0['zHjrx'](_0x277fdf['status'],'completed')?'✅':_0x277fdf[_0xa6144e(0x263)]===_0xa6144e(0x204)?'🔄':'▶️';console[_0xa6144e(0x225)](_0x2ba23f+_0xa6144e(0x1ea)+_0x277fdf['iteration']+'\x20('+_0x277fdf['id']+')'),console['log'](_0xa6144e(0x26f)+_0x277fdf[_0xa6144e(0x263)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x277fdf['createdAt'])['toLocaleString']()),_0x277fdf['completedAt']&&console[_0xa6144e(0x225)](_0xa6144e(0x1fd)+new Date(_0x277fdf[_0xa6144e(0x27e)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x4e7d14,_0x599450){const _0x26b970=_0x52f9,_0x17bfe2={'AEMku':_0x26b970(0x1a6),'NgCjy':function(_0x312427,_0x60c930,_0x1ffbe0){return _0x312427(_0x60c930,_0x1ffbe0);},'QQqWd':function(_0x42c1d2,_0x59470d){return _0x42c1d2(_0x59470d);}},_0x316a74=_0x599450||await getActiveFeatureId();if(!_0x316a74)throw new Error(_0x17bfe2['AEMku']);const _0x59f1dd=await getFeature(_0x316a74);if(_0x59f1dd['latestReview']&&!_0x59f1dd['latestReview']['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x59f1dd['dashboardUrl']);await _0x17bfe2[_0x26b970(0x286)](createChecklistItem,_0x316a74,_0x4e7d14);const _0x180925=await _0x17bfe2[_0x26b970(0x209)](getFeature,_0x316a74);console[_0x26b970(0x225)]('\x0a✅\x20Scenario\x20added'),_0x17bfe2['NgCjy'](displayFeature,_0x180925,_0x180925[_0x26b970(0x224)]);}export async function featureEditScenario(_0x3f066e,_0x3b0223){const _0x15841c=_0x52f9,_0x380be5={'RKDfJ':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XVAfk':_0x15841c(0x260),'pQWxK':function(_0x1d0d29,_0x195ee3){return _0x1d0d29===_0x195ee3;},'YQWkV':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','uyvlU':function(_0x1f2909,_0x58ced4){return _0x1f2909===_0x58ced4;},'RZRnA':_0x15841c(0x1f3),'uIIRj':function(_0x1a17bf,_0x298212){return _0x1a17bf<_0x298212;},'oUegS':function(_0x41b23c,_0x4c0137){return _0x41b23c-_0x4c0137;},'DjqPD':function(_0x406705,_0x49033f){return _0x406705<_0x49033f;},'ZQbMn':function(_0x35ba95,_0x3505d6){return _0x35ba95>=_0x3505d6;},'MZGKT':function(_0x224b0a,_0x2cb724,_0x293c6e,_0x1da6fd){return _0x224b0a(_0x2cb724,_0x293c6e,_0x1da6fd);}},_0x474e8e=_0x3b0223['id']||await getActiveFeatureId();!_0x474e8e&&(console['error'](_0x15841c(0x1c9)),console[_0x15841c(0x27b)](_0x380be5['RKDfJ']),process['exit'](0x1));const _0xc458a4=await getFeature(_0x474e8e);_0xc458a4['latestReview']&&!_0xc458a4[_0x15841c(0x1d1)][_0x15841c(0x1e9)]&&(console['error'](_0x380be5[_0x15841c(0x282)]),console[_0x15841c(0x27b)]('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0xc458a4['dashboardUrl']),process[_0x15841c(0x1de)](0x1));const _0x567c4c=_0xc458a4[_0x15841c(0x224)]||[];_0x380be5['pQWxK'](_0x567c4c[_0x15841c(0x1a0)],0x0)&&(console['error'](_0x380be5['YQWkV']),process['exit'](0x1));if(_0x380be5['uyvlU'](_0x3b0223['scenario'],undefined)){console[_0x15841c(0x27b)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x380be5[_0x15841c(0x272)]);for(let _0x4ba635=0x0;_0x380be5[_0x15841c(0x1c5)](_0x4ba635,_0x567c4c[_0x15841c(0x1a0)]);_0x4ba635++){console[_0x15841c(0x225)]('\x20\x20'+(_0x4ba635+0x1)+'.\x20'+_0x567c4c[_0x4ba635][_0x15841c(0x1ff)]);}process[_0x15841c(0x1de)](0x1);}const _0x303612=_0x380be5[_0x15841c(0x1c1)](_0x3b0223['scenario'],0x1);if(_0x380be5[_0x15841c(0x26c)](_0x303612,0x0)||_0x380be5['ZQbMn'](_0x303612,_0x567c4c['length'])){console[_0x15841c(0x27b)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x3b0223['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x567c4c['length']+_0x15841c(0x21d)),console['log'](_0x15841c(0x1f3));for(let _0x371b66=0x0;_0x371b66<_0x567c4c[_0x15841c(0x1a0)];_0x371b66++){console[_0x15841c(0x225)]('\x20\x20'+(_0x371b66+0x1)+'.\x20'+_0x567c4c[_0x371b66][_0x15841c(0x1ff)]);}process[_0x15841c(0x1de)](0x1);}const _0xb5fff4=_0x567c4c[_0x303612];await _0x380be5['MZGKT'](updateChecklistItem,_0x474e8e,_0xb5fff4['id'],{'description':_0x3f066e});const _0x246bcb=await getFeature(_0x474e8e);console[_0x15841c(0x225)]('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x246bcb,_0x246bcb['checklistItems']);}async function downloadFeedbackImage(_0x8206cb,_0x4b7a47){const _0x169977=_0x52f9,_0x459741={'iKgiv':function(_0xf92bcc,_0x359537,_0x1fe9f2){return _0xf92bcc(_0x359537,_0x1fe9f2);},'wqNtB':function(_0x31b48e,_0x456c24){return _0x31b48e(_0x456c24);}};try{const _0x1c234c=join(getRangerDir(),'feedback-images');await mkdir(_0x1c234c,{'recursive':!![]});const _0x18369e=_0x459741['iKgiv'](join,_0x1c234c,_0x169977(0x1f9)+_0x4b7a47+'.png'),_0x50ce2f=await _0x459741[_0x169977(0x1a4)](fetch,_0x8206cb);if(!_0x50ce2f['ok'])return null;const _0x2d7650=Buffer[_0x169977(0x1a1)](await _0x50ce2f['arrayBuffer']());return await _0x459741[_0x169977(0x201)](writeFile,_0x18369e,_0x2d7650),_0x18369e;}catch{return null;}}export async function featureGetReview(_0x2e1a28){const _0x61599=_0x52f9,_0x495bae={'itibB':_0x61599(0x1a6),'XcPLw':function(_0x1822d2,_0x5430a8){return _0x1822d2(_0x5430a8);},'vJABn':_0x61599(0x19d),'QvsQr':function(_0x8eaa87,_0x2baf4c,_0xae9116){return _0x8eaa87(_0x2baf4c,_0xae9116);},'hhSRk':_0x61599(0x1a7),'zFAAE':_0x61599(0x1d9),'QQrlz':'Unknown','JmMzp':_0x61599(0x22a),'zVhez':'element','SxUkf':_0x61599(0x1c0),'iwwsl':function(_0x4a9dac,_0xe4ae74){return _0x4a9dac>=_0xe4ae74;}},_0x45d43e=_0x2e1a28||await getActiveFeatureId();if(!_0x45d43e)throw new Error(_0x495bae[_0x61599(0x1ca)]);const _0x1c50ae=await _0x495bae['XcPLw'](getFeature,_0x45d43e),{items:_0xc7d087}=await getActionItems(_0x45d43e);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x1c50ae[_0x61599(0x25f)]+'\x20('+_0x1c50ae['id']+')\x0a');if(_0xc7d087['length']===0x0){console[_0x61599(0x225)](_0x495bae['vJABn']);return;}for(let _0x2dc96d=0x0;_0x2dc96d<_0xc7d087[_0x61599(0x1a0)];_0x2dc96d++){const _0x157fe0=_0xc7d087[_0x2dc96d],_0x1a79a2=_0x157fe0['version']>0x1?_0x61599(0x283)+_0x157fe0['version']+')':'',_0x44ffef=await _0x495bae[_0x61599(0x27a)](getItemFeedback,_0x45d43e,_0x157fe0['id']);if(_0x44ffef['unaddressedComments']['length']>0x0){console[_0x61599(0x225)]('Scenario\x20'+(_0x2dc96d+0x1)+_0x61599(0x206)+_0x157fe0[_0x61599(0x1ff)]+'\x22'+_0x1a79a2+_0x61599(0x24b)+_0x44ffef[_0x61599(0x23b)]['length']+_0x61599(0x1ab));for(const _0x69d509 of _0x44ffef[_0x61599(0x23b)]){const _0x20386c=new Date(_0x69d509['createdAt'])['toLocaleDateString'](_0x495bae[_0x61599(0x1c6)],{'month':_0x61599(0x1b4),'day':_0x495bae[_0x61599(0x215)]}),_0x4684ac=_0x69d509['authorName']||_0x69d509['authorEmail']||_0x495bae['QQrlz'];console['log'](_0x61599(0x1df)+_0x4684ac+'\x20('+_0x20386c+'):\x20\x22'+_0x69d509['content']+'\x22');if(_0x69d509['assetUrl']){const _0x239493=await downloadFeedbackImage(_0x69d509[_0x61599(0x228)],_0x69d509['id']);_0x239493&&console[_0x61599(0x225)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x239493);}if(_0x69d509['domRef']){const _0x46ab5f=_0x69d509['domRef'][_0x61599(0x230)][_0x61599(0x1e3)](_0x495bae[_0x61599(0x276)])['pop']()?.['split'](':')[0x0]||_0x495bae[_0x61599(0x23a)],_0x315d97=_0x69d509[_0x61599(0x24f)][_0x61599(0x1a9)]?'\x20\x22'+_0x69d509['domRef'][_0x61599(0x1a9)][_0x61599(0x20e)](0x0,0x3c)+'\x22':'';console['log'](_0x61599(0x1f7)+_0x46ab5f+'>'+_0x315d97),console['log'](_0x61599(0x25b)+_0x69d509['domRef']['selector']);}else{if(_0x69d509['spatial']){const _0x3ac09d=_0x69d509['spatial']['coordinates'];_0x69d509['spatial']['type']===_0x495bae['SxUkf']&&_0x495bae['iwwsl'](_0x3ac09d[_0x61599(0x1a0)],0x2)?console['log'](_0x61599(0x1cf)+_0x3ac09d[0x0]['toFixed'](0x2)+',\x20'+_0x3ac09d[0x1]['toFixed'](0x2)+')'):console['log'](_0x61599(0x1d8)+_0x69d509[_0x61599(0x1e6)][_0x61599(0x274)]+_0x61599(0x22f)+_0x3ac09d[_0x61599(0x1d4)](_0x1a4037=>_0x1a4037[_0x61599(0x1dc)](0x2))[_0x61599(0x1c2)](',\x20')+']');}}}if(_0x44ffef[_0x61599(0x275)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x5abd6c of _0x44ffef[_0x61599(0x275)]['split']('\x0a')){console[_0x61599(0x225)](_0x61599(0x19f)+_0x5abd6c);}}}else console['log'](_0x61599(0x1d5)+(_0x2dc96d+0x1)+':\x20\x22'+_0x157fe0[_0x61599(0x1ff)]+'\x22'+_0x1a79a2+'\x20—\x20no\x20comments'),console[_0x61599(0x225)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x477636){const _0x50e003=_0x52f9,_0x4c050f={'saUsO':function(_0x4edc75){return _0x4edc75();},'CxSzO':_0x50e003(0x1a6),'tVjPH':function(_0x4cc120,_0x4d6636){return _0x4cc120(_0x4d6636);},'HdpJi':function(_0x25ab51,_0xc43658){return _0x25ab51+_0xc43658;},'jSsys':_0x50e003(0x1ec)},_0x295a89=_0x477636||await _0x4c050f['saUsO'](getActiveFeatureId);if(!_0x295a89)throw new Error(_0x4c050f[_0x50e003(0x258)]);const _0x5d92d1=await _0x4c050f[_0x50e003(0x1af)](getFeature,_0x295a89);await softDeleteFeature(_0x295a89),console['log'](_0x50e003(0x249)+_0x5d92d1['name']+'\x20('+_0x295a89+')'),console['log'](_0x4c050f[_0x50e003(0x254)](_0x4c050f['jSsys'],_0x295a89));}export async function featureRestore(_0x1e23a6){const _0x12b07b=_0x52f9,_0x27b3e9={'IOsIE':function(_0x25d288,_0x44c6c9){return _0x25d288(_0x44c6c9);}};await restoreFeature(_0x1e23a6);const _0x381c99=await _0x27b3e9['IOsIE'](getFeature,_0x1e23a6);console[_0x12b07b(0x225)](_0x12b07b(0x1b1)+_0x381c99[_0x12b07b(0x25f)]+'\x20('+_0x1e23a6+')'),displayFeature(_0x381c99,_0x381c99[_0x12b07b(0x224)]);}
|
|
1
|
+
const _0x301dad=_0x5cc6;(function(_0x431f90,_0x284abe){const _0x460b0f=_0x5cc6,_0x982bd2=_0x431f90();while(!![]){try{const _0x1048be=-parseInt(_0x460b0f(0x282))/0x1+parseInt(_0x460b0f(0x1d5))/0x2*(-parseInt(_0x460b0f(0x254))/0x3)+-parseInt(_0x460b0f(0x297))/0x4*(-parseInt(_0x460b0f(0x247))/0x5)+-parseInt(_0x460b0f(0x259))/0x6*(-parseInt(_0x460b0f(0x1c7))/0x7)+-parseInt(_0x460b0f(0x224))/0x8+parseInt(_0x460b0f(0x241))/0x9+parseInt(_0x460b0f(0x256))/0xa;if(_0x1048be===_0x284abe)break;else _0x982bd2['push'](_0x982bd2['shift']());}catch(_0x298da7){_0x982bd2['push'](_0x982bd2['shift']());}}}(_0x1ea5,0x9b16f));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x4fc786 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';function _0x1ea5(){const _0x3ce642=['\x20\x20\x20\x20\x20🎯\x20Element:\x20<','JUsyG','\x20—\x20','domRef','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','1193997yQrDMh','location','\x20\x20\x20\x20\x20📋\x20Selector:\x20','pop','DvsWB','totalCount','\x20\x20\x20Updated\x20branch\x20to:\x20','\x1b[0m','authorEmail','incomplete','kUzaA','yIeSk','ueote','FDPmh','blocked','version','json','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','in_progress','gitRepoUrl','checklistItems','802396aTkbcU','bWgpu','LnhFW','\x20\x20\x20Branch:\x20','coordinates','YLtNn','PLLcW','items','CLAUDE_SESSION_ID','\x0a✅\x20Scenario\x20updated','\x20\x20\x20\x20\x20\x20Incomplete:\x20',':\x20\x22','length','offset','trimEnd','\x20\x20\x20\x20\x20\x20Approved','BRxyw','GVBwV','\x0a✅\x20Scenario\x20added','QsxKp','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','iteration','round','\x20\x20\x20Progress:\x20','assets','list','linkedSession','gitBranch','scenario','from','jOEdU','stats','closed','rPFPH','dashboardUrl','approved','/api/v1/mcp/browser-sessions/','\x20Session\x20','nkYcz','139223rUuJqo','find','VFzCU','\x20\x20\x20\x20','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','cTcnv','\x20of\x20','push','mkKvQ','holUv','write','completedAt','\x0a⚠️\x20\x20','nutxx','742312auRaVA','vznAb','any','blockedItems','incompleteReason','.md','pfmfG','\x20concluded.','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','OmlTt','\x20\x20\x20\x20\x20Progress:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','status','notes','\x20\x20\x20ID:\x20','createdAt','name','\x1b[1m','after','\x20\x20\x20▶️\x20Started\x20session\x20','toLocaleString','incompleteItems','point','\x20/\x20','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','Cannot\x20conclude\x20session\x20with\x20status:\x20','GchEs','\x20incomplete','sessionId','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','stringify','map','stdout','type','gzpUR','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a✅\x20Feature\x20review\x20created:\x20','RANGER_TEST_USERNAME','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','rDNPb','submittedAt','voXgU','position','selected','split','env','reports','\x0a✅\x20Restored\x20feature\x20review:\x20','prompt','FebNJ','unaddressedComments','NDYxx','MkJhq','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','waPrr','isTTY','MiYKQ','Ejpws','VMgbq','blockedReason','\x20\x20\x20','excludeScenarios','verifiedItems','selector','Showing\x20','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','stepName','amGiO','mnxzV','zIEdW','eokcS','ewbFQ','\x20\x20\x20Description:\x20','canceledReason','\x20\x20\x20\x20\x20ID:\x20','description','.\x20Feature\x20review\x20has\x20','No\x20scenarios\x20found.','pipe','9896000tNUhyW','OVFPi','Gnzrj','terminalReason','\x20\x20\x20\x20\x20\x20Blocked:\x20','screenshotUrls','Sjpqc','ZEJeq','active-feature.txt','\x0aGenerating\x20report...','xMfLD','isInteger','\x20--current-branch','\x0aAvailable\x20scenarios:','):\x20\x22','\x20\x20\x20Created:\x20','\x0a✅\x20Session\x20','dzldQ','\x20\x20\x20\x20\x20\x20Cancelled:\x20','HCmOI','\x0aCreating\x20feature\x20review...','exit','nQOHL','spatial','all','textContent','DdTgB','Scenario\x20','completed','2409507ORsiqL','\x20unaddressed\x20comment(s)','assetType','screenshot','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x0aNo\x20feature\x20reviews\x20found.','5QhKgOS','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','XDSYz','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20scenario(s).','mDyyD','SXdAN','bEXOS','trim','comment_','replace','/artifacts/','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','6IQhiaK','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','24850070fyPZfZ','currentSessionId','browserSessionId','258AIKNIb','Current\x20session\x20not\x20found.','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','filter','\x0aConcluding\x20session...','repeat','ctfrm','ApvPk','toFixed','QCAHR','omvbW','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','git\x20remote\x20get-url\x20origin','tayAk','authorName','get','stdin','ULVJF','FlXOK','XlpQR','en-US','\x20feature\x20review(s)\x20found','utf-8','WRdir','error','FOUOl','canonicalFlow','\x20\x20\x20Repository:\x20','join','log','WCrpP','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','NMWFg','\x20(v','YTQpb'];_0x1ea5=function(){return _0x3ce642;};return _0x1ea5();}import{getApiBaseUrl}from'./utils/environment.js';function _0x5cc6(_0x114a65,_0x46e78e){_0x114a65=_0x114a65-0x1a6;const _0x1ea5e9=_0x1ea5();let _0x5cc684=_0x1ea5e9[_0x114a65];return _0x5cc684;}import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE=_0x301dad(0x22c),bold=_0xada93f=>_0x301dad(0x1e6)+_0xada93f+_0x301dad(0x289);function getGitRepoUrl(){const _0x539aa9=_0x301dad,_0x248504={'QlJQO':function(_0x59665f,_0x4dd512,_0x3a007a){return _0x59665f(_0x4dd512,_0x3a007a);}};try{const _0x55f565=_0x248504['QlJQO'](execSync,_0x539aa9(0x266),{'encoding':'utf-8','stdio':[_0x539aa9(0x223),'pipe','pipe']})['trim']();return _0x55f565[_0x539aa9(0x251)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x317f95=_0x301dad,_0x5548c5={'EBOww':function(_0x1009e1,_0xad9383,_0xa95a94){return _0x1009e1(_0xad9383,_0xa95a94);},'YsmuL':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','OmlTt':_0x317f95(0x223)};try{return _0x5548c5['EBOww'](execSync,_0x5548c5['YsmuL'],{'encoding':'utf-8','stdio':[_0x5548c5['OmlTt'],_0x5548c5[_0x317f95(0x1de)],_0x5548c5[_0x317f95(0x1de)]]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0xc8c4ad=_0x301dad,_0xbf9d={'IcEXb':function(_0x56ea33,_0x3429cd,_0x50d869){return _0x56ea33(_0x3429cd,_0x50d869);},'bWgpu':function(_0x1c4753,_0x433d81){return _0x1c4753(_0x433d81);},'twHCm':function(_0x1e1a5e,_0x39f195,_0x33b400){return _0x1e1a5e(_0x39f195,_0x33b400);}},_0x467a0a=_0xbf9d['IcEXb'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0xbf9d[_0xc8c4ad(0x298)](existsSync,_0x467a0a))return null;try{const _0x4c88cf=await _0xbf9d['twHCm'](readFile,_0x467a0a,_0xc8c4ad(0x270));return _0x4c88cf[_0xc8c4ad(0x24f)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x5d5134){const _0x208e9e=_0x301dad,_0x5d7dc3={'ctfrm':function(_0x4078e8,_0xea71a3,_0xe7d28b){return _0x4078e8(_0xea71a3,_0xe7d28b);},'idOGu':_0x208e9e(0x270)},_0x25beda=getRangerDir(),_0x259166=_0x5d7dc3[_0x208e9e(0x260)](join,_0x25beda,ACTIVE_FEATURE_FILE);!existsSync(_0x25beda)&&await mkdir(_0x25beda,{'recursive':!![]}),await writeFile(_0x259166,_0x5d5134,_0x5d7dc3['idOGu']);}function getProgressDisplay(_0x457e7b){const _0x4c7e28=_0x301dad,_0x4cfd6c={'voXgU':function(_0x355e27,_0x3244d6){return _0x355e27+_0x3244d6;},'amGiO':function(_0x1e7733,_0x15bfa8){return _0x1e7733+_0x15bfa8;},'hlxKY':function(_0x153163,_0x2323f7){return _0x153163===_0x2323f7;},'waPrr':function(_0x4658,_0x5b69fc){return _0x4658*_0x5b69fc;},'VMgbq':function(_0x223bbf,_0x5ca28d){return _0x223bbf+_0x5ca28d;},'xMfLD':function(_0x57f8b9,_0x32a734){return _0x57f8b9>_0x32a734;}},_0x4f1ad9=_0x457e7b[_0x4c7e28(0x213)]||0x0,_0x5cc67c=_0x457e7b['verificationInProgressItems']||0x0,_0x55893b=_0x457e7b[_0x4c7e28(0x1d8)]||0x0,_0x361b32=_0x457e7b[_0x4c7e28(0x1ea)]||0x0,_0x4ff649=_0x457e7b['pendingItems']||0x0,_0x8115a3=_0x4cfd6c[_0x4c7e28(0x1fe)](_0x4cfd6c[_0x4c7e28(0x218)](_0x4cfd6c['voXgU'](_0x4f1ad9,_0x5cc67c)+_0x55893b,_0x361b32),_0x4ff649);if(_0x4cfd6c['hlxKY'](_0x8115a3,0x0))return'-';const _0x219d31=0xa,_0x5131b6=Math[_0x4c7e28(0x1b6)](_0x4cfd6c[_0x4c7e28(0x20b)](_0x4f1ad9/_0x8115a3,_0x219d31)),_0x12508b=_0x4cfd6c[_0x4c7e28(0x20f)]('█'[_0x4c7e28(0x25f)](_0x5131b6),'░'['repeat'](_0x219d31-_0x5131b6)),_0x1ccc41=[];if(_0x55893b>0x0)_0x1ccc41[_0x4c7e28(0x1ce)](_0x55893b+'\x20blocked');if(_0x4cfd6c[_0x4c7e28(0x22e)](_0x361b32,0x0))_0x1ccc41['push'](_0x361b32+_0x4c7e28(0x1f0));if(_0x4cfd6c['xMfLD'](_0x5cc67c,0x0))_0x1ccc41['push'](_0x5cc67c+'\x20in\x20progress');const _0x424d72=_0x1ccc41['length']>0x0?'\x20('+_0x1ccc41[_0x4c7e28(0x276)](',\x20')+')':'';return _0x12508b+'\x20'+_0x4f1ad9+'/'+_0x8115a3+'\x20verified'+_0x424d72;}function getCurrentSessionItems(_0x1d2aba,_0x40d237){const _0x2c8b61=_0x301dad;if(!_0x1d2aba[_0x2c8b61(0x257)])return _0x40d237['filter'](_0x376f15=>!_0x376f15[_0x2c8b61(0x1f1)]);return _0x40d237[_0x2c8b61(0x25d)](_0x588e5d=>_0x588e5d[_0x2c8b61(0x1f1)]===_0x1d2aba[_0x2c8b61(0x257)]||!_0x588e5d['sessionId']);}function displayFeature(_0x226379,_0x67ccab){const _0x27a9b8=_0x301dad,_0x350058={'gzpUR':function(_0xc84daf,_0x549b1e){return _0xc84daf<_0x549b1e;},'lqhJc':function(_0x1c3028,_0x279f90){return _0x1c3028===_0x279f90;},'holUv':'verified','KqEbl':_0x27a9b8(0x290),'ltkLL':'verification_in_progress','DmBJf':function(_0xae5fe2,_0x2e37b6){return _0xae5fe2>_0x2e37b6;},'myjxO':function(_0x38a587,_0xee71e1){return _0x38a587>_0xee71e1;},'HkUiU':'\x20[has\x20reviewer\x20feedback]','bEXOS':function(_0x567ee3,_0x225e76){return _0x567ee3===_0x225e76;},'zIEdW':'closed','nKZOV':'approved'};console['log']('\x0a'+_0x226379['name']+'\x20('+_0x226379[_0x27a9b8(0x1c2)]+')');_0x226379[_0x27a9b8(0x1bf)]&&console[_0x27a9b8(0x277)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x226379['stats']));_0x226379['description']&&console[_0x27a9b8(0x277)](_0x27a9b8(0x21d)+_0x226379['description']);_0x226379[_0x27a9b8(0x295)]&&console[_0x27a9b8(0x277)](_0x27a9b8(0x275)+_0x226379[_0x27a9b8(0x295)]);_0x226379['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x226379[_0x27a9b8(0x1bb)]);console[_0x27a9b8(0x277)](_0x27a9b8(0x233)+new Date(_0x226379[_0x27a9b8(0x1e4)])['toLocaleString']());_0x226379[_0x27a9b8(0x1d2)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x226379[_0x27a9b8(0x1d2)])['toLocaleString']());if(_0x67ccab&&_0x67ccab[_0x27a9b8(0x1ac)]>0x0){console[_0x27a9b8(0x277)]('\x0a\x20\x20\x20Scenarios:');for(let _0x5efe06=0x0;_0x350058[_0x27a9b8(0x1f7)](_0x5efe06,_0x67ccab['length']);_0x5efe06++){const _0x2ef540=_0x67ccab[_0x5efe06];let _0x4dbe6e;if(_0x350058['lqhJc'](_0x2ef540['status'],'closed')&&_0x2ef540['terminalReason']===_0x27a9b8(0x1c3))_0x4dbe6e='✅';else{if(_0x2ef540['status']===_0x350058[_0x27a9b8(0x1d0)])_0x4dbe6e='🟢';else{if(_0x2ef540[_0x27a9b8(0x1e1)]===_0x27a9b8(0x28b))_0x4dbe6e='🟠';else{if(_0x350058['lqhJc'](_0x2ef540['status'],_0x350058['KqEbl']))_0x4dbe6e='🛑';else{if(_0x2ef540['status']==='closed')_0x4dbe6e='⛔';else _0x2ef540[_0x27a9b8(0x1e1)]===_0x350058['ltkLL']?_0x4dbe6e='⏳':_0x4dbe6e='⬜';}}}}const _0xfc82a9=_0x350058['DmBJf'](_0x2ef540['version'],0x1)?'\x20(v'+_0x2ef540['version']+')':'',_0x3b34c3=_0x350058['myjxO'](_0x2ef540[_0x27a9b8(0x291)],0x1)&&_0x2ef540['parentItemId']&&_0x2ef540['status']!==_0x27a9b8(0x1c0)&&_0x2ef540['status']!==_0x350058[_0x27a9b8(0x1d0)]?_0x350058['HkUiU']:'';console[_0x27a9b8(0x277)](_0x27a9b8(0x211)+(_0x5efe06+0x1)+'.\x20'+_0x4dbe6e+'\x20'+_0x2ef540[_0x27a9b8(0x220)]+_0xfc82a9+_0x3b34c3);_0x350058[_0x27a9b8(0x24e)](_0x2ef540['status'],_0x350058['KqEbl'])&&_0x2ef540['blockedReason']&&console[_0x27a9b8(0x277)](_0x27a9b8(0x228)+_0x2ef540['blockedReason']);_0x2ef540['status']===_0x27a9b8(0x28b)&&_0x2ef540['incompleteReason']&&console['log'](_0x27a9b8(0x1aa)+_0x2ef540['incompleteReason']);if(_0x2ef540['status']===_0x350058[_0x27a9b8(0x21a)]&&_0x2ef540[_0x27a9b8(0x227)]===_0x350058['nKZOV'])console['log'](_0x27a9b8(0x1af));else _0x350058['lqhJc'](_0x2ef540['status'],_0x350058['zIEdW'])&&_0x2ef540['canceledReason']&&console['log'](_0x27a9b8(0x236)+_0x2ef540['canceledReason']);}}}export async function featureCreate(_0x25560f,_0x4b398e){const _0x323dfc=_0x301dad,_0x53a5ff={'ZEJeq':function(_0x5f187c){return _0x5f187c();},'FebNJ':_0x323dfc(0x238),'FOUOl':function(_0x3b4a63,_0x547dd6){return _0x3b4a63(_0x547dd6);},'HCmOI':function(_0x339ee3,_0x2a3fef,_0x1af61f){return _0x339ee3(_0x2a3fef,_0x1af61f);}},{envNames:_0x604900}=await _0x53a5ff[_0x323dfc(0x22b)](getEnvNames);if(_0x604900['length']===0x0&&!process[_0x323dfc(0x202)][_0x323dfc(0x1fa)]){let _0x1e4377=0x0;try{_0x1e4377=(await listCloudProfiles())['length'];}catch{_0x1e4377=0x1;}_0x1e4377===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x45c8da=>bold(_0x45c8da)));}const _0xb24d53=_0x4b398e['scenarios']?_0x4b398e['scenarios']['map'](_0x17825f=>_0x17825f[_0x323dfc(0x24f)]()):[],_0x516cd7=_0x53a5ff['ZEJeq'](getGitRepoUrl),_0x385721=_0x53a5ff[_0x323dfc(0x22b)](getGitBranch);console['log'](_0x53a5ff[_0x323dfc(0x206)]);const _0x1942f5=await _0x53a5ff['FOUOl'](createFeature,{'name':_0x25560f,'description':_0x4b398e[_0x323dfc(0x220)],'checklist':_0xb24d53,'gitRepoUrl':_0x516cd7,'gitBranch':_0x385721});await _0x53a5ff[_0x323dfc(0x273)](setActiveFeatureId,_0x1942f5['id']),await tryStartCurrentSession(_0x1942f5['id']);const _0x401083=process[_0x323dfc(0x202)][_0x323dfc(0x1a8)];_0x401083&®isterSession(_0x401083,_0x1942f5['id']),console[_0x323dfc(0x277)](_0x323dfc(0x1f9)+_0x1942f5['id']),_0x53a5ff[_0x323dfc(0x237)](displayFeature,_0x1942f5,_0x1942f5[_0x323dfc(0x296)]),console[_0x323dfc(0x277)](_0x323dfc(0x255));}export async function featureList(_0x416fba){const _0x247176=_0x301dad,_0x31235a={'zBntw':_0x247176(0x246),'XDSYz':function(_0x4cedf8,_0x3dd137){return _0x4cedf8(_0x3dd137);},'NMWFg':function(_0x2888d1,_0x251f0a){return _0x2888d1!==_0x251f0a;},'mDyyD':_0x247176(0x230),'eokcS':'\x20--include-deleted'},_0x23e5e1={'limit':_0x416fba['limit']??0xa,'offset':_0x416fba[_0x247176(0x1ad)]??0x0,'includeDeleted':_0x416fba['includeDeleted']};_0x416fba['currentBranch']&&(_0x23e5e1['gitRepoUrl']=getGitRepoUrl(),_0x23e5e1[_0x247176(0x1bb)]=getGitBranch());const _0x34bbf6=await listFeatures(_0x23e5e1);if(_0x34bbf6[_0x247176(0x1a7)][_0x247176(0x1ac)]===0x0){console[_0x247176(0x277)](_0x31235a['zBntw']);return;}const _0x8b9386=_0x34bbf6[_0x247176(0x287)]>_0x34bbf6['items'][_0x247176(0x1ac)]?_0x247176(0x215)+_0x34bbf6['items'][_0x247176(0x1ac)]+_0x247176(0x1cd)+_0x34bbf6[_0x247176(0x287)]:_0x34bbf6['totalCount']+_0x247176(0x26f);console['log']('\x0a'+_0x8b9386+':\x0a');for(const _0x2485f0 of _0x34bbf6[_0x247176(0x1a7)]){console[_0x247176(0x277)](''+_0x2485f0[_0x247176(0x1e5)]),console['log'](_0x247176(0x1e3)+_0x2485f0['id']),_0x2485f0['stats']&&console['log'](_0x247176(0x1b7)+_0x31235a[_0x247176(0x249)](getProgressDisplay,_0x2485f0[_0x247176(0x1bf)])),_0x2485f0[_0x247176(0x1bb)]&&console[_0x247176(0x277)](_0x247176(0x29a)+_0x2485f0[_0x247176(0x1bb)]),console[_0x247176(0x277)](_0x247176(0x233)+new Date(_0x2485f0['createdAt'])['toLocaleDateString']()),console[_0x247176(0x277)]('');}const _0x174be9=_0x23e5e1['limit']??0xa,_0x2e5662=(_0x23e5e1['offset']??0x0)+_0x34bbf6[_0x247176(0x1a7)]['length'];if(_0x2e5662<_0x34bbf6[_0x247176(0x287)]){const _0x329004=_0x31235a[_0x247176(0x27a)](_0x174be9,0xa)?'\x20--limit\x20'+_0x174be9:'',_0x1f8c2b=_0x416fba['currentBranch']?_0x31235a[_0x247176(0x24c)]:'',_0xa4e0c4=_0x416fba['includeDeleted']?_0x31235a[_0x247176(0x21b)]:'';console[_0x247176(0x277)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x2e5662+_0x329004+_0x1f8c2b+_0xa4e0c4);}}export async function featureShow(_0x49343c){const _0x254c86={'lZgnS':function(_0x1cac05){return _0x1cac05();}},_0x17af16=_0x49343c||await _0x254c86['lZgnS'](getActiveFeatureId);if(!_0x17af16)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x40cbe9=await getFeature(_0x17af16);displayFeature(_0x40cbe9,_0x40cbe9['checklistItems']);}export async function featureResume(_0x599a78){const _0x517604=_0x301dad,_0x2c5162={'KDzmw':function(_0x4c1f81){return _0x4c1f81();},'GchEs':function(_0x26af18,_0x2a40ce){return _0x26af18!==_0x2a40ce;},'YLtNn':function(_0x1e11ca,_0x3d6aed,_0x5b0198){return _0x1e11ca(_0x3d6aed,_0x5b0198);},'DdTgB':function(_0x3d84f3,_0x4ff795){return _0x3d84f3(_0x4ff795);},'ueote':function(_0x4db58e){return _0x4db58e();},'MeauG':function(_0x33c74a,_0x4ee9ae){return _0x33c74a||_0x4ee9ae;},'Gnzrj':_0x517604(0x1d7),'LnhFW':function(_0x1d1ca2,_0x40c132){return _0x1d1ca2(_0x40c132);},'Ejpws':function(_0x3809e8,_0x49b016){return _0x3809e8===_0x49b016;},'hoBtw':_0x517604(0x1b4),'fJWEh':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','OCNNs':_0x517604(0x1b9),'rYBNo':_0x517604(0x200),'WRdir':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','ULVJF':function(_0x42d221,_0x4b6395){return _0x42d221(_0x4b6395);},'dcLiA':function(_0x20f8f6,_0x781b09){return _0x20f8f6!==_0x781b09;},'VFzCU':function(_0x350e2d,_0x12bd07,_0x559cd2){return _0x350e2d(_0x12bd07,_0x559cd2);},'teeTP':function(_0x4b35ef,_0x35fd06,_0x1d7b59){return _0x4b35ef(_0x35fd06,_0x1d7b59);},'RYJBg':function(_0x33eb01,_0x1bc100,_0x5ac3f1){return _0x33eb01(_0x1bc100,_0x5ac3f1);}};if(_0x599a78){const _0xcc8a8=await getFeature(_0x599a78);await setActiveFeatureId(_0xcc8a8['id']);const _0xc48cea=_0x2c5162['KDzmw'](getGitBranch);_0xc48cea&&_0x2c5162[_0x517604(0x1ef)](_0xc48cea,_0xcc8a8['gitBranch'])&&(await _0x2c5162['YLtNn'](updateFeature,_0xcc8a8['id'],{'gitBranch':_0xc48cea}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0xc48cea));console[_0x517604(0x277)](_0x517604(0x25c)+_0xcc8a8['name']+'\x20('+_0xcc8a8['id']+')'),await _0x2c5162[_0x517604(0x23e)](tryStartCurrentSession,_0xcc8a8['id']);const _0x2d91a3=process[_0x517604(0x202)]['CLAUDE_SESSION_ID'];_0x2d91a3&®isterSession(_0x2d91a3,_0xcc8a8['id']);_0x2c5162[_0x517604(0x29c)](displayFeature,_0xcc8a8,_0xcc8a8['checklistItems']),await printFeedbackNudge(_0xcc8a8['id']);return;}const _0x19ad22=_0x2c5162[_0x517604(0x28e)](getGitRepoUrl),_0x1dea1f=getGitBranch();if(!_0x19ad22&&!_0x1dea1f)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x517604(0x277)](_0x517604(0x1ed)+_0x2c5162['MeauG'](_0x19ad22,_0x2c5162['Gnzrj'])+_0x517604(0x1ec)+(_0x1dea1f||_0x2c5162[_0x517604(0x226)])+'...');const _0x37e6fd=await _0x2c5162[_0x517604(0x299)](listFeatures,{'gitRepoUrl':_0x19ad22,'gitBranch':_0x1dea1f}),_0x3ecfe7=_0x37e6fd[_0x517604(0x1a7)]['filter'](_0x30bed5=>_0x30bed5['status']?_0x30bed5[_0x517604(0x1e1)]!=='verified':!_0x30bed5[_0x517604(0x1d2)]);if(_0x2c5162[_0x517604(0x20e)](_0x3ecfe7['length'],0x0)){console[_0x517604(0x277)](_0x2c5162['hoBtw']),console[_0x517604(0x277)](_0x517604(0x216));return;}let _0x585833;if(_0x3ecfe7['length']===0x1)_0x585833=_0x3ecfe7[0x0];else{const _0x54dde8=process[_0x517604(0x26a)][_0x517604(0x20c)]&&process['stdout'][_0x517604(0x20c)];if(!_0x54dde8){console['log'](_0x2c5162['fJWEh']);for(const _0x28c8d3 of _0x3ecfe7){console['log']('\x20\x20'+_0x28c8d3['name']),console[_0x517604(0x277)](_0x517604(0x21f)+_0x28c8d3['id']),_0x28c8d3['stats']&&console[_0x517604(0x277)](_0x517604(0x1df)+getProgressDisplay(_0x28c8d3['stats'])),_0x28c8d3['gitBranch']&&console[_0x517604(0x277)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x28c8d3[_0x517604(0x1bb)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0xa25df}=await _0x4fc786[_0x517604(0x205)]([{'type':_0x2c5162['OCNNs'],'name':_0x2c5162['rYBNo'],'message':_0x2c5162[_0x517604(0x271)],'choices':_0x3ecfe7[_0x517604(0x1f4)](_0x19b705=>({'name':_0x19b705[_0x517604(0x1e5)]+'\x20('+_0x19b705['id']+')','value':_0x19b705['id']}))}]);_0x585833=_0x3ecfe7['find'](_0x346736=>_0x346736['id']===_0xa25df);}await _0x2c5162[_0x517604(0x26b)](setActiveFeatureId,_0x585833['id']);_0x1dea1f&&_0x2c5162['dcLiA'](_0x1dea1f,_0x585833[_0x517604(0x1bb)])&&(await _0x2c5162[_0x517604(0x1c9)](updateFeature,_0x585833['id'],{'gitBranch':_0x1dea1f}),console[_0x517604(0x277)](_0x517604(0x288)+_0x1dea1f));console[_0x517604(0x277)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x585833[_0x517604(0x1e5)]+'\x20('+_0x585833['id']+')'),await _0x2c5162[_0x517604(0x299)](tryStartCurrentSession,_0x585833['id']);const _0x1cbf56=await getFeature(_0x585833['id']),_0x46ac12=process[_0x517604(0x202)]['CLAUDE_SESSION_ID'];_0x46ac12&&_0x2c5162['teeTP'](registerSession,_0x46ac12,_0x1cbf56['id']),_0x2c5162['RYJBg'](displayFeature,_0x1cbf56,_0x1cbf56[_0x517604(0x296)]),await printFeedbackNudge(_0x1cbf56['id']);}async function printFeedbackNudge(_0x178a6d){const _0xf98f33=_0x301dad,_0x564619={'wZQzQ':function(_0x18e4ac,_0x5e9aa0){return _0x18e4ac(_0x5e9aa0);},'RNpzV':function(_0x141b84,_0x3b260f){return _0x141b84>_0x3b260f;}};try{const {items:_0x62b87c}=await _0x564619['wZQzQ'](getActionItems,_0x178a6d);let _0x2fdcb8=0x0,_0x5d20d3=0x0;for(const _0x3d57db of _0x62b87c){const _0x1946b7=await getItemFeedback(_0x178a6d,_0x3d57db['id']);_0x1946b7[_0xf98f33(0x207)][_0xf98f33(0x1ac)]>0x0&&(_0x2fdcb8+=_0x1946b7[_0xf98f33(0x207)]['length'],_0x5d20d3++);}_0x564619['RNpzV'](_0x2fdcb8,0x0)&&(console[_0xf98f33(0x277)](_0xf98f33(0x1d3)+_0x2fdcb8+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x5d20d3+_0xf98f33(0x24b)),console['log'](_0xf98f33(0x253)));}catch{}}async function tryStartCurrentSession(_0x4c987c){const _0x2854aa=_0x301dad,_0x4fe0e5={'yIeSk':function(_0x2a332e,_0x4ce938){return _0x2a332e(_0x4ce938);},'QsxKp':function(_0x584945,_0x490642,_0x1385bf){return _0x584945(_0x490642,_0x1385bf);}};try{const {sessions:_0x17c2f8}=await _0x4fe0e5[_0x2854aa(0x28d)](listFeatureSessions,_0x4c987c),_0x1f4055=_0x17c2f8['find'](_0x19deee=>_0x19deee[_0x2854aa(0x1e1)]==='ready');_0x1f4055&&(await _0x4fe0e5[_0x2854aa(0x1b3)](startSession,_0x4c987c,_0x1f4055['id']),console['log'](_0x2854aa(0x1e8)+_0x1f4055[_0x2854aa(0x1b5)]));}catch{}}export async function featureReport(_0x56f645,_0x2677b4){const _0x367a7c=_0x301dad,_0x33e342={'BRxyw':_0x367a7c(0x22d),'BNeqJ':function(_0x5662a6,_0x13becb,_0x26b5fd){return _0x5662a6(_0x13becb,_0x26b5fd);},'nQOHL':function(_0x398010){return _0x398010();},'dzldQ':_0x367a7c(0x203),'HNKkS':function(_0x2a18c4,_0x145aca,_0x1c3a44,_0x2ac309){return _0x2a18c4(_0x145aca,_0x1c3a44,_0x2ac309);}},_0x242ce9=_0x56f645||await getActiveFeatureId();if(!_0x242ce9)throw new Error(_0x367a7c(0x24a));console['log'](_0x33e342[_0x367a7c(0x1b0)]);const _0x5abe7a=await _0x33e342['BNeqJ'](getFeatureReportMarkdown,_0x242ce9,{'style':_0x2677b4['style']}),_0x3e1c7d=_0x2677b4['output']||join(_0x33e342[_0x367a7c(0x23a)](getRangerDir),_0x33e342[_0x367a7c(0x235)],_0x242ce9+_0x367a7c(0x1da)),_0x442d72=join(_0x3e1c7d,'..');!existsSync(_0x442d72)&&await mkdir(_0x442d72,{'recursive':!![]}),await _0x33e342['HNKkS'](writeFile,_0x3e1c7d,_0x5abe7a,_0x367a7c(0x270)),console[_0x367a7c(0x277)]('\x0a✅\x20Report\x20generated:\x20'+_0x3e1c7d);}function getScenarioResult(_0x316a86){const _0x3ca703=_0x301dad,_0x5668af={'cUoWX':function(_0x156437,_0x355a2b){return _0x156437===_0x355a2b;},'rieUE':'verification_in_progress'};if(_0x316a86[_0x3ca703(0x1e1)]==='closed')return _0x316a86[_0x3ca703(0x227)]??'closed';if(_0x5668af['cUoWX'](_0x316a86['status'],_0x5668af['rieUE']))return _0x3ca703(0x294);return _0x316a86['status'];}function getScenarioRationale(_0x37d7bb,_0x40399a){const _0x5f4dfa=_0x301dad,_0x4edbc4={'HgWRF':'2|0|4|5|1|3'},_0x3100b1=_0x4edbc4['HgWRF']['split']('|');let _0x4381e2=0x0;while(!![]){switch(_0x3100b1[_0x4381e2++]){case'0':if(_0x37d7bb[_0x5f4dfa(0x210)])return _0x37d7bb[_0x5f4dfa(0x210)];continue;case'1':if(_0x37d7bb['notes'])return _0x37d7bb[_0x5f4dfa(0x1e2)];continue;case'2':if(_0x40399a)return _0x40399a;continue;case'3':return null;case'4':if(_0x37d7bb[_0x5f4dfa(0x1d9)])return _0x37d7bb['incompleteReason'];continue;case'5':if(_0x37d7bb['canceledReason'])return _0x37d7bb[_0x5f4dfa(0x21e)];continue;}break;}}export async function featureReportPrDescription(_0x2067f1,_0x55ee37){const _0x338eaa=_0x301dad,_0x143f52={'WCrpP':function(_0x33d72b){return _0x33d72b();},'DvsWB':function(_0x41b683,_0x419b26){return _0x41b683(_0x419b26);},'bioPk':function(_0x42116e,_0x267778,_0x3c52a9){return _0x42116e(_0x267778,_0x3c52a9);},'mnxzV':function(_0x24142a,_0x197e13){return _0x24142a===_0x197e13;},'FlXOK':function(_0x3696d0,_0x3652e7){return _0x3696d0>_0x3652e7;},'scHTg':function(_0x5e6030,_0x1a4a8e){return _0x5e6030<_0x1a4a8e;},'qHXBR':function(_0xc9f4e7,_0x489d7b){return _0xc9f4e7===_0x489d7b;},'MkJhq':_0x338eaa(0x245),'nutxx':function(_0x47decc,_0x208dd9,_0x5e5c26){return _0x47decc(_0x208dd9,_0x5e5c26);}},_0x3d6dc6=_0x2067f1||await _0x143f52[_0x338eaa(0x278)](getActiveFeatureId);if(!_0x3d6dc6)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x241b94=await _0x143f52[_0x338eaa(0x286)](getFeature,_0x3d6dc6),_0x2637ef=_0x241b94['checklistItems']||[],_0x2639fe=_0x143f52['bioPk'](getCurrentSessionItems,_0x241b94,_0x2637ef);_0x143f52[_0x338eaa(0x219)](_0x2639fe[_0x338eaa(0x1ac)],0x0)&&(console[_0x338eaa(0x272)](_0x338eaa(0x1fb)),process[_0x338eaa(0x239)](0x1));const _0x10bd45=_0x55ee37[_0x338eaa(0x212)]??[],_0x25a005=_0x10bd45['filter'](_0x10c6d6=>!Number[_0x338eaa(0x22f)](_0x10c6d6)||_0x10c6d6<0x1||_0x10c6d6>_0x2639fe['length']);if(_0x143f52[_0x338eaa(0x26c)](_0x25a005['length'],0x0)){console[_0x338eaa(0x272)](_0x338eaa(0x265)+_0x25a005['join'](',\x20')),console[_0x338eaa(0x277)]('\x0aAvailable\x20scenarios:');for(let _0x1d1d74=0x0;_0x143f52['scHTg'](_0x1d1d74,_0x2639fe['length']);_0x1d1d74++){console['log']('\x20\x20'+(_0x1d1d74+0x1)+'.\x20'+_0x2639fe[_0x1d1d74][_0x338eaa(0x220)]);}process[_0x338eaa(0x239)](0x1);}const _0x90dfec=new Set(_0x10bd45[_0x338eaa(0x1f4)](_0x4a708e=>_0x4a708e-0x1)),_0x598ea9=_0x2639fe['filter']((_0x266e5c,_0x3d318b)=>!_0x90dfec['has'](_0x3d318b));_0x143f52['qHXBR'](_0x598ea9['length'],0x0)&&(console[_0x338eaa(0x272)](_0x143f52[_0x338eaa(0x209)]),process[_0x338eaa(0x239)](0x1));if(_0x55ee37[_0x338eaa(0x292)])await outputJsonReport(_0x3d6dc6,_0x241b94,_0x598ea9);else{const _0x3d1cdf=await _0x143f52[_0x338eaa(0x1d4)](getFeatureReportMarkdown,_0x3d6dc6,{'itemIds':_0x598ea9['map'](_0xae9a99=>_0xae9a99['id'])});process[_0x338eaa(0x1f5)][_0x338eaa(0x1d1)](_0x3d1cdf[_0x338eaa(0x1ae)]()+'\x0a');}}async function outputJsonReport(_0x83bdbb,_0x39129e,_0x5dada5){const _0x43e73c=_0x301dad,_0x3904ee={'fRbvk':function(_0x129825,_0x1f207f){return _0x129825(_0x1f207f);},'LwEHM':function(_0x1014a0){return _0x1014a0();},'ZSjAq':function(_0x5e3b74,_0x5ec9bf){return _0x5e3b74(_0x5ec9bf);}},_0xe5aaed=_0x3904ee['LwEHM'](getApiBaseUrl),_0x3c1e44=await _0x3904ee['ZSjAq'](getFeatureReport,_0x83bdbb),_0x30d890=new Map(_0x3c1e44[_0x43e73c(0x296)]['map'](_0x1609af=>[_0x1609af['id'],_0x1609af])),_0x49e9e7=await Promise[_0x43e73c(0x23c)](_0x5dada5['map'](async _0x3d2cd5=>{const _0x7a9019=_0x43e73c,_0xfff32b=_0x30d890[_0x7a9019(0x269)](_0x3d2cd5['id']),_0x2a79ab=_0xfff32b?.[_0x7a9019(0x1ba)]??null;let _0x44ecf1=[];if(_0x3d2cd5['browserSessionId'])try{const {steps:_0x7c981}=await getBrowserSessionSteps(_0x3d2cd5['browserSessionId']);_0x7c981['length']>0x0&&(_0x44ecf1=_0x7c981['map'](_0x11c4d9=>{const _0x416005=_0x7a9019,_0x3f12e7=_0x11c4d9['assets'][_0x416005(0x1c8)](_0x3f1f16=>_0x3f1f16['assetType']===_0x416005(0x244)&&_0x3f1f16['timing']===_0x416005(0x1e7))??_0x11c4d9[_0x416005(0x1b8)]['find'](_0x66194b=>_0x66194b[_0x416005(0x243)]===_0x416005(0x244));let _0x3c7273=null,_0x3613eb=null;if(_0x3f12e7){const _0x5bbdee=_0x3f12e7['storage'][_0x416005(0x283)][_0x416005(0x201)]('/')[_0x416005(0x285)]();_0x3c7273=_0xe5aaed+_0x416005(0x1c4)+_0x3d2cd5[_0x416005(0x258)]+_0x416005(0x252)+_0x5bbdee,_0x5bbdee&&(_0x3613eb=_0x5bbdee[_0x416005(0x251)](/\.\w+$/,'')[_0x416005(0x251)](/^(key_)?\d+_/,'')[_0x416005(0x251)](/[-_]/g,'\x20'));}return{'description':_0x3613eb||_0x11c4d9[_0x416005(0x220)]||_0x11c4d9[_0x416005(0x217)]||'Step\x20'+_0x11c4d9[_0x416005(0x1ff)],'screenshot':_0x3c7273,'is_key_step':_0x11c4d9['isKeyStep']};}));}catch{}return _0x44ecf1[_0x7a9019(0x1ac)]===0x0&&_0x2a79ab?.[_0x7a9019(0x229)]&&(_0x44ecf1=_0x2a79ab['screenshotUrls'][_0x7a9019(0x1f4)]((_0x239ec5,_0x27e28a)=>({'description':'Screenshot\x20'+(_0x27e28a+0x1),'screenshot':_0x239ec5,'is_key_step':![]}))),{'description':_0x3d2cd5['description'],'result':_0x3904ee['fRbvk'](getScenarioResult,_0x3d2cd5),'rationale':getScenarioRationale(_0x3d2cd5,_0x2a79ab?.['agentResponse']),'steps':_0x44ecf1};})),_0x54daf0={'url':_0x39129e['dashboardUrl'],'scenarios':_0x49e9e7};process[_0x43e73c(0x1f5)][_0x43e73c(0x1d1)](JSON[_0x43e73c(0x1f3)](_0x54daf0,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x555e3f){const _0x4b9b33=_0x301dad,_0x35e956={'JoDze':function(_0x86634e){return _0x86634e();},'wbcRX':_0x4b9b33(0x1e0),'ewbFQ':function(_0x2d4528,_0xe1bc7a){return _0x2d4528(_0xe1bc7a);},'NDYxx':_0x4b9b33(0x25a),'nkYcz':function(_0xd24222,_0x1e6171){return _0xd24222===_0x1e6171;},'ApvPk':_0x4b9b33(0x294),'MxOBB':_0x4b9b33(0x25e),'gZuut':function(_0x4aeac4,_0x1ae666,_0x5e04b0){return _0x4aeac4(_0x1ae666,_0x5e04b0);}},_0x2257ce=_0x555e3f||await _0x35e956['JoDze'](getActiveFeatureId);if(!_0x2257ce)throw new Error(_0x4b9b33(0x279));const _0x29bfba=await getFeature(_0x2257ce);if(!_0x29bfba['currentSessionId'])throw new Error(_0x35e956['wbcRX']);const {sessions:_0x52305e}=await _0x35e956[_0x4b9b33(0x21c)](listFeatureSessions,_0x2257ce),_0x245210=_0x52305e['find'](_0x1baa32=>_0x1baa32['id']===_0x29bfba['currentSessionId']);if(!_0x245210)throw new Error(_0x35e956[_0x4b9b33(0x208)]);if(_0x35e956[_0x4b9b33(0x1c6)](_0x245210[_0x4b9b33(0x1e1)],_0x4b9b33(0x240))){console[_0x4b9b33(0x277)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x245210[_0x4b9b33(0x1e1)]!==_0x35e956[_0x4b9b33(0x261)])throw new Error(_0x4b9b33(0x1ee)+_0x245210[_0x4b9b33(0x1e1)]);console[_0x4b9b33(0x277)](_0x35e956['MxOBB']),await _0x35e956['gZuut'](concludeSession,_0x2257ce,_0x29bfba['currentSessionId']),console['log'](_0x4b9b33(0x234)+_0x245210[_0x4b9b33(0x1b5)]+_0x4b9b33(0x1dc)),console['log'](_0x4b9b33(0x281));}export async function featureSessions(_0x36e109){const _0x3e8d26=_0x301dad,_0x1620a4={'SCmPU':_0x3e8d26(0x24a),'eDZhP':function(_0x49ccac,_0x1bdc35){return _0x49ccac===_0x1bdc35;},'jOEdU':'completed','WEqnd':_0x3e8d26(0x294)},_0x343a00=_0x36e109||await getActiveFeatureId();if(!_0x343a00)throw new Error(_0x1620a4['SCmPU']);const _0x155ea3=await getFeature(_0x343a00);console[_0x3e8d26(0x277)](_0x3e8d26(0x1f2)+_0x155ea3['name']+'\x0a');const {sessions:_0x5ee651}=await listFeatureSessions(_0x343a00);if(_0x1620a4['eDZhP'](_0x5ee651[_0x3e8d26(0x1ac)],0x0)){console['log']('No\x20sessions\x20found.');return;}for(const _0x758131 of _0x5ee651){const _0x24aff9=_0x758131[_0x3e8d26(0x1e1)]===_0x1620a4[_0x3e8d26(0x1be)]?'✅':_0x758131[_0x3e8d26(0x1e1)]===_0x1620a4['WEqnd']?'🔄':'▶️';console[_0x3e8d26(0x277)](_0x24aff9+_0x3e8d26(0x1c5)+_0x758131['iteration']+'\x20('+_0x758131['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x758131[_0x3e8d26(0x1e1)]),console['log'](_0x3e8d26(0x233)+new Date(_0x758131[_0x3e8d26(0x1e4)])[_0x3e8d26(0x1e9)]()),_0x758131[_0x3e8d26(0x1d2)]&&console[_0x3e8d26(0x277)]('\x20\x20\x20Completed:\x20'+new Date(_0x758131['completedAt'])[_0x3e8d26(0x1e9)]()),console[_0x3e8d26(0x277)]('');}}export async function featureAddScenario(_0x4c638e,_0x24c74b){const _0x219b05=_0x301dad,_0x25d4ec={'wIjpk':function(_0x9e1a20){return _0x9e1a20();},'SXdAN':_0x219b05(0x279),'mkKvQ':function(_0x4dced1,_0x62dbb8){return _0x4dced1(_0x62dbb8);},'OVFPi':function(_0x301c3f,_0x2a6a68,_0x1e80e4){return _0x301c3f(_0x2a6a68,_0x1e80e4);},'cTcnv':function(_0x4906f1,_0x3b9e6c,_0x6d29d1){return _0x4906f1(_0x3b9e6c,_0x6d29d1);}},_0x1c2df4=_0x24c74b||await _0x25d4ec['wIjpk'](getActiveFeatureId);if(!_0x1c2df4)throw new Error(_0x25d4ec[_0x219b05(0x24d)]);const _0x2cb592=await _0x25d4ec[_0x219b05(0x1cf)](getFeature,_0x1c2df4);if(_0x2cb592['latestReview']&&!_0x2cb592['latestReview']['submittedAt'])throw new Error(_0x219b05(0x25b)+_0x2cb592['dashboardUrl']);await _0x25d4ec[_0x219b05(0x225)](createChecklistItem,_0x1c2df4,_0x4c638e);const _0x196823=await getFeature(_0x1c2df4);console[_0x219b05(0x277)](_0x219b05(0x1b2)),_0x25d4ec[_0x219b05(0x1cc)](displayFeature,_0x196823,_0x196823['checklistItems']);}export async function featureEditScenario(_0x392032,_0x4e8bef){const _0x41199c=_0x301dad,_0x382332={'Dxnua':function(_0x42bddf){return _0x42bddf();},'rPFPH':_0x41199c(0x1f8),'PUaxH':function(_0x48c588,_0x35984f){return _0x48c588(_0x35984f);},'MiYKQ':_0x41199c(0x1cb),'gzrzx':function(_0xb2f44f,_0x294d1e){return _0xb2f44f===_0x294d1e;},'LqauH':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','omvbW':_0x41199c(0x231),'YwtNZ':function(_0x855e00,_0x4a8b83){return _0x855e00<_0x4a8b83;},'tayAk':function(_0x48e17c,_0xc97f3f){return _0x48e17c-_0xc97f3f;},'WUcCN':function(_0x1289bf,_0x2a5bc6){return _0x1289bf<_0x2a5bc6;},'iwAER':function(_0x517dc9,_0x3df09a){return _0x517dc9>=_0x3df09a;},'pfmfG':function(_0x497806,_0x2590af){return _0x497806<_0x2590af;},'kbNmw':function(_0x2ccafe,_0x6e984b,_0x29e24e){return _0x2ccafe(_0x6e984b,_0x29e24e);}},_0x51ac0a=_0x4e8bef['id']||await _0x382332['Dxnua'](getActiveFeatureId);!_0x51ac0a&&(console[_0x41199c(0x272)](_0x382332[_0x41199c(0x1c1)]),console['error']('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x3af174=await _0x382332['PUaxH'](getFeature,_0x51ac0a);_0x3af174['latestReview']&&!_0x3af174['latestReview'][_0x41199c(0x1fd)]&&(console[_0x41199c(0x272)](_0x41199c(0x293)),console[_0x41199c(0x272)]('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x3af174[_0x41199c(0x1c2)]),process['exit'](0x1));const _0x2f480c=_0x3af174['checklistItems']||[];_0x2f480c[_0x41199c(0x1ac)]===0x0&&(console['error'](_0x382332[_0x41199c(0x20d)]),process['exit'](0x1));if(_0x382332['gzrzx'](_0x4e8bef['scenario'],undefined)){console['error'](_0x382332['LqauH']),console[_0x41199c(0x277)](_0x382332[_0x41199c(0x264)]);for(let _0x3cfe97=0x0;_0x382332['YwtNZ'](_0x3cfe97,_0x2f480c['length']);_0x3cfe97++){console['log']('\x20\x20'+(_0x3cfe97+0x1)+'.\x20'+_0x2f480c[_0x3cfe97][_0x41199c(0x220)]);}process[_0x41199c(0x239)](0x1);}const _0x155414=_0x382332[_0x41199c(0x267)](_0x4e8bef[_0x41199c(0x1bc)],0x1);if(_0x382332['WUcCN'](_0x155414,0x0)||_0x382332['iwAER'](_0x155414,_0x2f480c[_0x41199c(0x1ac)])){console[_0x41199c(0x272)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4e8bef[_0x41199c(0x1bc)]+_0x41199c(0x221)+_0x2f480c['length']+'\x20scenarios.'),console[_0x41199c(0x277)]('\x0aAvailable\x20scenarios:');for(let _0x399b90=0x0;_0x382332[_0x41199c(0x1db)](_0x399b90,_0x2f480c['length']);_0x399b90++){console[_0x41199c(0x277)]('\x20\x20'+(_0x399b90+0x1)+'.\x20'+_0x2f480c[_0x399b90][_0x41199c(0x220)]);}process['exit'](0x1);}const _0x23d372=_0x2f480c[_0x155414];await updateChecklistItem(_0x51ac0a,_0x23d372['id'],{'description':_0x392032});const _0x1564f5=await _0x382332['PUaxH'](getFeature,_0x51ac0a);console['log'](_0x41199c(0x1a9)),_0x382332['kbNmw'](displayFeature,_0x1564f5,_0x1564f5['checklistItems']);}async function downloadFeedbackImage(_0x1273c2,_0x31ca68){const _0x1b9cc5=_0x301dad,_0x38a41e={'PLLcW':function(_0x5c48ba,_0x7741e,_0x55a577){return _0x5c48ba(_0x7741e,_0x55a577);},'YTQpb':function(_0x46b0b0){return _0x46b0b0();}};try{const _0x564fe1=_0x38a41e['PLLcW'](join,_0x38a41e[_0x1b9cc5(0x27c)](getRangerDir),'feedback-images');await mkdir(_0x564fe1,{'recursive':!![]});const _0x294585=join(_0x564fe1,_0x1b9cc5(0x250)+_0x31ca68+'.png'),_0x1c5f56=await fetch(_0x1273c2);if(!_0x1c5f56['ok'])return null;const _0x17e031=Buffer[_0x1b9cc5(0x1bd)](await _0x1c5f56['arrayBuffer']());return await _0x38a41e[_0x1b9cc5(0x1a6)](writeFile,_0x294585,_0x17e031),_0x294585;}catch{return null;}}export async function featureGetReview(_0x5bb6fb){const _0x5789e1=_0x301dad,_0x15254b={'QCAHR':function(_0x4240cb,_0x507ccf){return _0x4240cb(_0x507ccf);},'foYjI':function(_0x778f02,_0x4d925f){return _0x778f02(_0x4d925f);},'HieQT':_0x5789e1(0x222),'ZltCb':function(_0x356b3d,_0x50bf4d){return _0x356b3d>_0x50bf4d;},'kUzaA':function(_0x4cf462,_0x2e78bd,_0x449b5f){return _0x4cf462(_0x2e78bd,_0x449b5f);},'eFxxf':function(_0x1319dc,_0x3e3b4b){return _0x1319dc>_0x3e3b4b;},'rDNPb':_0x5789e1(0x26e),'OHsPG':'numeric','FDPmh':'Unknown','GVBwV':'\x20>\x20','RWbDm':'element','OAatl':function(_0x92f274,_0x38fbc0){return _0x92f274===_0x38fbc0;},'Sjpqc':function(_0x34d049,_0x201b59){return _0x34d049+_0x201b59;}},_0xd65883=_0x5bb6fb||await getActiveFeatureId();if(!_0xd65883)throw new Error(_0x5789e1(0x279));const _0x5bb86f=await _0x15254b[_0x5789e1(0x263)](getFeature,_0xd65883),{items:_0x4b89fd}=await _0x15254b['foYjI'](getActionItems,_0xd65883);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x5bb86f[_0x5789e1(0x1e5)]+'\x20('+_0x5bb86f['id']+')\x0a');if(_0x4b89fd[_0x5789e1(0x1ac)]===0x0){console[_0x5789e1(0x277)](_0x15254b['HieQT']);return;}for(let _0x16102b=0x0;_0x16102b<_0x4b89fd[_0x5789e1(0x1ac)];_0x16102b++){const _0xb1adf3=_0x4b89fd[_0x16102b],_0x2ff5d1=_0x15254b['ZltCb'](_0xb1adf3['version'],0x1)?_0x5789e1(0x27b)+_0xb1adf3['version']+')':'',_0x3ed8c0=await _0x15254b[_0x5789e1(0x28c)](getItemFeedback,_0xd65883,_0xb1adf3['id']);if(_0x15254b['eFxxf'](_0x3ed8c0[_0x5789e1(0x207)][_0x5789e1(0x1ac)],0x0)){console['log'](_0x5789e1(0x23f)+(_0x16102b+0x1)+_0x5789e1(0x1ab)+_0xb1adf3[_0x5789e1(0x220)]+'\x22'+_0x2ff5d1+_0x5789e1(0x27f)+_0x3ed8c0[_0x5789e1(0x207)]['length']+_0x5789e1(0x242));for(const _0x530ac2 of _0x3ed8c0[_0x5789e1(0x207)]){const _0x4f5aac=new Date(_0x530ac2['createdAt'])['toLocaleDateString'](_0x15254b[_0x5789e1(0x1fc)],{'month':'short','day':_0x15254b['OHsPG']}),_0x131cdc=_0x530ac2[_0x5789e1(0x268)]||_0x530ac2[_0x5789e1(0x28a)]||_0x15254b[_0x5789e1(0x28f)];console['log']('\x20\x20💬\x20'+_0x131cdc+'\x20('+_0x4f5aac+_0x5789e1(0x232)+_0x530ac2['content']+'\x22');if(_0x530ac2['assetUrl']){const _0x5a9010=await downloadFeedbackImage(_0x530ac2['assetUrl'],_0x530ac2['id']);_0x5a9010&&console[_0x5789e1(0x277)](_0x5789e1(0x248)+_0x5a9010);}if(_0x530ac2[_0x5789e1(0x280)]){const _0xd443ec=_0x530ac2['domRef']['selector'][_0x5789e1(0x201)](_0x15254b[_0x5789e1(0x1b1)])[_0x5789e1(0x285)]()?.['split'](':')[0x0]||_0x15254b['RWbDm'],_0x46f350=_0x530ac2[_0x5789e1(0x280)][_0x5789e1(0x23d)]?'\x20\x22'+_0x530ac2['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x5789e1(0x277)](_0x5789e1(0x27d)+_0xd443ec+'>'+_0x46f350),console[_0x5789e1(0x277)](_0x5789e1(0x284)+_0x530ac2['domRef'][_0x5789e1(0x214)]);}else{if(_0x530ac2['spatial']){const _0x315132=_0x530ac2[_0x5789e1(0x23b)][_0x5789e1(0x29b)];_0x15254b['OAatl'](_0x530ac2[_0x5789e1(0x23b)][_0x5789e1(0x1f6)],_0x5789e1(0x1eb))&&_0x315132['length']>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x315132[0x0]['toFixed'](0x2)+',\x20'+_0x315132[0x1]['toFixed'](0x2)+')'):console['log'](_0x5789e1(0x20a)+_0x530ac2['spatial'][_0x5789e1(0x1f6)]+'\x20at\x20['+_0x315132['map'](_0x1625ab=>_0x1625ab[_0x5789e1(0x262)](0x2))[_0x5789e1(0x276)](',\x20')+']');}}}if(_0x3ed8c0[_0x5789e1(0x274)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x15fffc of _0x3ed8c0['canonicalFlow'][_0x5789e1(0x201)]('\x0a')){console['log'](_0x5789e1(0x1ca)+_0x15fffc);}}}else console[_0x5789e1(0x277)]('Scenario\x20'+_0x15254b[_0x5789e1(0x22a)](_0x16102b,0x1)+':\x20\x22'+_0xb1adf3[_0x5789e1(0x220)]+'\x22'+_0x2ff5d1+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x5789e1(0x277)]('');}}export async function featureDelete(_0x136fc6){const _0x448657=_0x301dad,_0x4bc34e={'HdxMT':_0x448657(0x279),'vznAb':_0x448657(0x1dd)},_0xe0e437=_0x136fc6||await getActiveFeatureId();if(!_0xe0e437)throw new Error(_0x4bc34e['HdxMT']);const _0x227fe9=await getFeature(_0xe0e437);await softDeleteFeature(_0xe0e437),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x227fe9['name']+'\x20('+_0xe0e437+')'),console['log'](_0x4bc34e[_0x448657(0x1d6)]+_0xe0e437);}export async function featureRestore(_0x173684){const _0x4f462d=_0x301dad,_0xc0571e={'XlpQR':function(_0x90239c,_0x5a8342){return _0x90239c(_0x5a8342);},'JUsyG':function(_0x197f3c,_0x2e032e,_0x1f603b){return _0x197f3c(_0x2e032e,_0x1f603b);}};await _0xc0571e[_0x4f462d(0x26d)](restoreFeature,_0x173684);const _0x4788ed=await getFeature(_0x173684);console[_0x4f462d(0x277)](_0x4f462d(0x204)+_0x4788ed[_0x4f462d(0x1e5)]+'\x20('+_0x173684+')'),_0xc0571e[_0x4f462d(0x27e)](displayFeature,_0x4788ed,_0x4788ed['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4ff47b,_0x55c91e){const _0x4c073e=_0x2a74,_0x486175=_0x4ff47b();while(!![]){try{const _0xdb8c58=parseInt(_0x4c073e(0x162))/0x1*(parseInt(_0x4c073e(0x166))/0x2)+parseInt(_0x4c073e(0x15a))/0x3*(-parseInt(_0x4c073e(0x163))/0x4)+parseInt(_0x4c073e(0x160))/0x5*(-parseInt(_0x4c073e(0x15b))/0x6)+-parseInt(_0x4c073e(0x16a))/0x7*(parseInt(_0x4c073e(0x159))/0x8)+parseInt(_0x4c073e(0x164))/0x9+parseInt(_0x4c073e(0x169))/0xa*(-parseInt(_0x4c073e(0x15c))/0xb)+parseInt(_0x4c073e(0x167))/0xc*(parseInt(_0x4c073e(0x168))/0xd);if(_0xdb8c58===_0x55c91e)break;else _0x486175['push'](_0x486175['shift']());}catch(_0x5cc6fa){_0x486175['push'](_0x486175['shift']());}}}(_0x3844,0x4e85e));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function _0x2a74(_0x4e3ebb,_0x5760f6){_0x4e3ebb=_0x4e3ebb-0x157;const _0x3844bf=_0x3844();let _0x2a74db=_0x3844bf[_0x4e3ebb];return _0x2a74db;}function installCancellationHandlers(){const _0x2011a5=_0x2a74,_0x38a60d={'vswVZ':'SIGINT'};if(cancellationHandlersInstalled)return;const _0xd0d909=()=>{process['exit'](0x0);};process[_0x2011a5(0x161)](_0x38a60d['vswVZ'],_0xd0d909),process[_0x2011a5(0x161)](_0x2011a5(0x15e),_0xd0d909),process[_0x2011a5(0x161)]('SIGHUP',_0xd0d909),cancellationHandlersInstalled=!![];}export async function hook(_0xe65033,_0x348634){const _0x27e548=_0x2a74,_0x397e5d={'LgzpU':function(_0x547bd6,_0x449989){return _0x547bd6(_0x449989);}};installCancellationHandlers();const _0x5e6e98=HOOKS[_0xe65033];if(!_0x5e6e98){const _0x3ca39d=Object[_0x27e548(0x15f)](HOOKS)['join'](',\x20');console[_0x27e548(0x158)](_0x27e548(0x15d)+_0xe65033),console['error'](_0x27e548(0x157)+_0x3ca39d),process['exit'](0x1);}await _0x397e5d[_0x27e548(0x165)](_0x5e6e98,_0x348634);}function _0x3844(){const _0x41ba6c=['13188948LPCMHM','13XQYjdk','18510ljEwgv','1493709kwIoTv','Valid\x20hooks:\x20','error','16pORrbH','341325JsexTW','1884XgUhoA','3531ILUOoN','Unknown\x20hook:\x20','SIGTERM','keys','5235RrtEXy','once','2477BSZzSl','4TCmyWi','5594643rYHYbc','LgzpU','52fwpFPN'];_0x3844=function(){return _0x41ba6c;};return _0x3844();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x45799e=_0x2bc4;(function(_0x505f05,_0x3a2adf){const _0x5864b7=_0x2bc4,_0x59592c=_0x505f05();while(!![]){try{const _0x4350c1=parseInt(_0x5864b7(0x13b))/0x1*(parseInt(_0x5864b7(0x134))/0x2)+parseInt(_0x5864b7(0x132))/0x3+-parseInt(_0x5864b7(0x135))/0x4+parseInt(_0x5864b7(0x13c))/0x5+parseInt(_0x5864b7(0x130))/0x6+parseInt(_0x5864b7(0x13a))/0x7+-parseInt(_0x5864b7(0x138))/0x8;if(_0x4350c1===_0x3a2adf)break;else _0x59592c['push'](_0x59592c['shift']());}catch(_0x195cdc){_0x59592c['push'](_0x59592c['shift']());}}}(_0x313b,0x4f9b6));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x2bc4(_0xbbcde3,_0x8b731b){_0xbbcde3=_0xbbcde3-0x130;const _0x313bba=_0x313b();let _0x2bc4e0=_0x313bba[_0xbbcde3];return _0x2bc4e0;}function _0x313b(){const _0x298068=['2001530SWPwvu','EmcdN','691848GOvqCL','LynGI','396735mSnYfP','session_id','988198CcZbNl','2535784KQRxgX','\x0a[Ranger]\x20Before\x20responding,\x20assess\x20whether\x20this\x20task\x20involves\x20frontend,\x20UI,\x20or\x20browser-facing\x20work.\x0a\x0a-\x20If\x20it\x20does:\x20enable\x20Ranger\x20Feature\x20Review\x20yourself\x20by\x20running\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool),\x20tell\x20the\x20user\x20in\x20one\x20short\x20line\x20that\x20you\x27re\x20doing\x20so\x20(e.g.\x20\x22Enabling\x20Ranger\x20feature\x20review\x20—\x20I\x27ll\x20verify\x20this\x20in\x20a\x20real\x20browser\x20as\x20I\x20work.\x22),\x20then\x20continue\x20with\x20their\x20request.\x0a-\x20If\x20it\x20does\x20not:\x20just\x20continue\x20with\x20the\x20request\x20and\x20say\x20nothing\x20about\x20Ranger.\x0a\x0aDecide\x20and\x20act\x20on\x20your\x20own.\x20Do\x20NOT\x20ask\x20the\x20user\x20whether\x20to\x20enable\x20Ranger,\x20and\x20do\x20NOT\x20wait\x20for\x20confirmation\x20—\x20that\x20blocks\x20autonomous\x20and\x20one-shot\x20agents.\x20The\x20user\x20can\x20toggle\x20Ranger\x20anytime\x20with\x20/ranger:enable\x20or\x20/ranger:disable.','log','3995336NokFKQ','KdfvH','2222325ejEelR','1OjTyUq'];_0x313b=function(){return _0x298068;};return _0x313b();}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT=_0x45799e(0x136);export async function autoPrompt(){const _0x32dfc0=_0x45799e,_0x8eb2f9={'mIynV':'off','LynGI':function(_0x3b7d39){return _0x3b7d39();},'KdfvH':function(_0x451764,_0x4ef1eb){return _0x451764(_0x4ef1eb);},'EmcdN':function(_0x4f1613,_0xfa74dd){return _0x4f1613(_0xfa74dd);}};if(resolveHookMode()===_0x8eb2f9['mIynV'])return;const _0x297603=await _0x8eb2f9[_0x32dfc0(0x131)](readHookInput),_0x2ebc2e=_0x297603?.[_0x32dfc0(0x133)];if(!_0x2ebc2e)return;if(_0x8eb2f9[_0x32dfc0(0x139)](isSessionEnabled,_0x2ebc2e)||_0x8eb2f9[_0x32dfc0(0x139)](hasSessionBeenPrompted,_0x2ebc2e))return;_0x8eb2f9[_0x32dfc0(0x13d)](markSessionPrompted,_0x2ebc2e),console[_0x32dfc0(0x137)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2e3c(_0x4e580d,_0x1e8e9f){_0x4e580d=_0x4e580d-0xbe;const _0x1bff55=_0x1bff();let _0x2e3c2a=_0x1bff55[_0x4e580d];return _0x2e3c2a;}(function(_0x2f841a,_0x3ddcc4){const _0x182cdc=_0x2e3c,_0x3fc1a5=_0x2f841a();while(!![]){try{const _0xac6869=parseInt(_0x182cdc(0xcb))/0x1+parseInt(_0x182cdc(0xc1))/0x2*(-parseInt(_0x182cdc(0xbf))/0x3)+-parseInt(_0x182cdc(0xcc))/0x4*(-parseInt(_0x182cdc(0xc2))/0x5)+-parseInt(_0x182cdc(0xc0))/0x6+parseInt(_0x182cdc(0xbe))/0x7*(parseInt(_0x182cdc(0xca))/0x8)+-parseInt(_0x182cdc(0xc6))/0x9+-parseInt(_0x182cdc(0xc3))/0xa*(-parseInt(_0x182cdc(0xc9))/0xb);if(_0xac6869===_0x3ddcc4)break;else _0x3fc1a5['push'](_0x3fc1a5['shift']());}catch(_0x5b9983){_0x3fc1a5['push'](_0x3fc1a5['shift']());}}}(_0x1bff,0x99ccf));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x1bff(){const _0x304456=['607825jqLmzV','960tkgPsO','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','RYHno','4928364tbwtsB','\x20and\x20branch\x20\x27','VHPTZ','141361hepWwG','8YFpeAF','506131eziiqZ','4aUolek','8595881srKGgY','47037VKIxkT','5732358TnwvUw','122yOhIcF'];_0x1bff=function(){return _0x304456;};return _0x1bff();}import{printBlock}from'./output.js';export async function disable(_0x1fb2c6){const _0xcf2948=_0x2e3c,_0x44baaa={'RYHno':function(_0x1f7737,_0x3f9f2b){return _0x1f7737(_0x3f9f2b);},'gdDHW':function(_0x4b1a66,_0x992c14){return _0x4b1a66!==_0x992c14;},'MWwSL':function(_0x436ef1,_0x510ce6){return _0x436ef1!==_0x510ce6;},'rSmBu':'master','VHPTZ':function(_0x365609,_0x503429){return _0x365609(_0x503429);},'BFviI':function(_0x2793a4,_0x4e0214){return _0x2793a4!==_0x4e0214;}},_0x2eca01=_0x1fb2c6||process['env']['CLAUDE_SESSION_ID']||'';_0x2eca01&&_0x44baaa[_0xcf2948(0xc5)](disableSession,_0x2eca01);const _0x350e88=getCurrentBranch();_0x350e88&&_0x44baaa['gdDHW'](_0x350e88,'main')&&_0x44baaa['MWwSL'](_0x350e88,_0x44baaa['rSmBu'])&&_0x44baaa[_0xcf2948(0xc8)](disableBranch,_0x350e88),_0x44baaa['RYHno'](printBlock,_0xcf2948(0xc4)+(_0x350e88&&_0x350e88!=='main'&&_0x44baaa['BFviI'](_0x350e88,_0x44baaa['rSmBu'])?_0xcf2948(0xc7)+_0x350e88+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xefda2a,_0xaf1232){const _0x5c7143=_0x3836,_0xea1e6b=_0xefda2a();while(!![]){try{const _0x1c9036=parseInt(_0x5c7143(0xa9))/0x1+parseInt(_0x5c7143(0xa7))/0x2+-parseInt(_0x5c7143(0x9c))/0x3+-parseInt(_0x5c7143(0xa1))/0x4*(-parseInt(_0x5c7143(0x9b))/0x5)+-parseInt(_0x5c7143(0xa5))/0x6+-parseInt(_0x5c7143(0x9e))/0x7*(-parseInt(_0x5c7143(0xaa))/0x8)+parseInt(_0x5c7143(0xa2))/0x9;if(_0x1c9036===_0xaf1232)break;else _0xea1e6b['push'](_0xea1e6b['shift']());}catch(_0x47ddaf){_0xea1e6b['push'](_0xea1e6b['shift']());}}}(_0x4206,0x68ee5));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x4206(){const _0x3b968e=['lfCPZ','102956uTTFzN','Ryvxd','27298hHAfvZ','16hiBWDc','ranger\x20setup','#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','\x0a\x0a**Branch\x20\x27','oiRME','15gPylrm','202032UMmvzD','#\x20RANGER\x20ENABLED','794087QcHZgV','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','main','191524faDlcF','8092197ryvZZL','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','master','5107758EUrBCo'];_0x4206=function(){return _0x3b968e;};return _0x4206();}function _0x3836(_0x4bfcee,_0x180a80){_0x4bfcee=_0x4bfcee-0x9b;const _0x4206e=_0x4206();let _0x3836b7=_0x4206e[_0x4bfcee];return _0x3836b7;}export async function enable(_0x568160){const _0x471bc2=_0x3836,_0x2c5a65={'AmpzU':function(_0x2676c8){return _0x2676c8();},'lfCPZ':'ranger\x20setup\x20--opencode','vwXRC':_0x471bc2(0xab),'Ryvxd':_0x471bc2(0x9f),'iovbt':function(_0x16c372,_0xe59583){return _0x16c372(_0xe59583);},'VqbqA':function(_0xb26759){return _0xb26759();},'oiRME':function(_0x369d1f,_0x3ef4e9){return _0x369d1f!==_0x3ef4e9;},'NolwC':function(_0x3210fc){return _0x3210fc();},'DiXsX':function(_0x2c5375,_0x5ccf4b){return _0x2c5375(_0x5ccf4b);}},_0x24e5b5=_0x568160||process['env']['CLAUDE_SESSION_ID']||'',_0x17d216=Boolean(_0x568160),_0x4a9780=await _0x2c5a65['AmpzU'](getToken);if(!_0x4a9780){const _0xd74362=_0x17d216?_0x2c5a65[_0x471bc2(0xa6)]:_0x2c5a65['vwXRC'],_0x3729e4=_0x17d216?_0x2c5a65[_0x471bc2(0xa8)]:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock(_0x471bc2(0xac)+_0xd74362+_0x471bc2(0xa3)+_0x3729e4);return;}try{await update();}catch{}_0x24e5b5&&_0x2c5a65['iovbt'](enableSession,_0x24e5b5);const _0x146f23=_0x2c5a65['VqbqA'](getCurrentBranch),_0x5ea7fc=_0x146f23&&_0x2c5a65[_0x471bc2(0xaf)](_0x146f23,_0x471bc2(0xa0))&&_0x2c5a65['oiRME'](_0x146f23,_0x471bc2(0xa4))?_0x471bc2(0xae)+_0x146f23+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0xb178a3=_0x2c5a65['NolwC'](getRangerSkillContent);_0x2c5a65['DiXsX'](printBlock,_0x471bc2(0x9d)+_0x5ea7fc+_0x471bc2(0xad)+_0xb178a3+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x469e(){const _0x2d55bd=['585232iyUsLX','178131vhUmxK','234312nISQcw','2kShApX','4950XSaAMT','892Hcawew','1470psySLm','147035UyLRLr','13329gdJkOb','3652758rarHGF'];_0x469e=function(){return _0x2d55bd;};return _0x469e();}function _0x3cce(_0x3c74ca,_0x5df0fa){_0x3c74ca=_0x3c74ca-0x1cf;const _0x469e6f=_0x469e();let _0x3ccea4=_0x469e6f[_0x3c74ca];return _0x3ccea4;}(function(_0x137596,_0x47741e){const _0x7f5e71=_0x3cce,_0x717daf=_0x137596();while(!![]){try{const _0x5cd1f9=parseInt(_0x7f5e71(0x1d6))/0x1+parseInt(_0x7f5e71(0x1d7))/0x2*(parseInt(_0x7f5e71(0x1d5))/0x3)+parseInt(_0x7f5e71(0x1cf))/0x4*(-parseInt(_0x7f5e71(0x1d8))/0x5)+parseInt(_0x7f5e71(0x1d3))/0x6+-parseInt(_0x7f5e71(0x1d1))/0x7+-parseInt(_0x7f5e71(0x1d4))/0x8+-parseInt(_0x7f5e71(0x1d2))/0x9*(parseInt(_0x7f5e71(0x1d0))/0xa);if(_0x5cd1f9===_0x47741e)break;else _0x717daf['push'](_0x717daf['shift']());}catch(_0x5b4f5d){_0x717daf['push'](_0x717daf['shift']());}}}(_0x469e,0x5a4b6));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x1b2fb5){const _0x329df9={'WfrqZ':function(_0x58827d,_0x4854eb){return _0x58827d(_0x4854eb);}},_0x3dd59f=await getEnabledSessionId(_0x1b2fb5);if(!_0x3dd59f)return;_0x329df9['WfrqZ'](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37c4a8,_0x178140){var _0x5ac7e2=_0x3425,_0x2d83f7=_0x37c4a8();while(!![]){try{var _0x3da2b3=parseInt(_0x5ac7e2(0x1a7))/0x1+parseInt(_0x5ac7e2(0x1ad))/0x2+parseInt(_0x5ac7e2(0x1a8))/0x3+parseInt(_0x5ac7e2(0x1ae))/0x4*(-parseInt(_0x5ac7e2(0x1ab))/0x5)+-parseInt(_0x5ac7e2(0x1aa))/0x6+-parseInt(_0x5ac7e2(0x1a9))/0x7+parseInt(_0x5ac7e2(0x1ac))/0x8;if(_0x3da2b3===_0x178140)break;else _0x2d83f7['push'](_0x2d83f7['shift']());}catch(_0x3a4804){_0x2d83f7['push'](_0x2d83f7['shift']());}}}(_0x2b78,0x76c83));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x2b78(){var _0x870a5a=['253020sgnkHd','1511952nsKOis','5981024AHVboF','693012jJoNGL','244385FAemgT','940144cZMOXR','1457148GyuxTn','12lELGLn'];_0x2b78=function(){return _0x870a5a;};return _0x2b78();}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';function _0x3425(_0x1cf72b,_0x5c7963){_0x1cf72b=_0x1cf72b-0x1a7;var _0x2b7830=_0x2b78();var _0x34257f=_0x2b7830[_0x1cf72b];return _0x34257f;}export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52be4f,_0x359162){const _0x1d0875=_0x4769,_0x4f53fb=_0x52be4f();while(!![]){try{const _0x5a71e4=-parseInt(_0x1d0875(0x87))/0x1*(parseInt(_0x1d0875(0x82))/0x2)+-parseInt(_0x1d0875(0x8e))/0x3+-parseInt(_0x1d0875(0x8d))/0x4+parseInt(_0x1d0875(0x8c))/0x5+-parseInt(_0x1d0875(0x84))/0x6+-parseInt(_0x1d0875(0x83))/0x7*(-parseInt(_0x1d0875(0x86))/0x8)+parseInt(_0x1d0875(0x89))/0x9;if(_0x5a71e4===_0x359162)break;else _0x4f53fb['push'](_0x4f53fb['shift']());}catch(_0x331e79){_0x4f53fb['push'](_0x4f53fb['shift']());}}}(_0x4653,0x78f17));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x767b0c){console['log'](_0x767b0c);}function _0x4653(){const _0x263199=['3556590cytYxT','vRXtU','3260408VLBLVP','235647KYSAad','trim','18065016bKRthR','session_id','stdin','2229230pLknMj','3006568slyvUK','2164323pMHpZD','6VAbkWF','14pzsMeC'];_0x4653=function(){return _0x263199;};return _0x4653();}export async function readHookInput(){const _0x44e909=_0x4769;let _0x518733='';try{for await(const _0x4b798d of process[_0x44e909(0x8b)]){_0x518733+=_0x4b798d;}}catch{return null;}if(!_0x518733[_0x44e909(0x88)]())return null;try{return JSON['parse'](_0x518733);}catch{return null;}}export async function getEnabledSessionId(_0x12deea){const _0x34de9c=_0x4769,_0x38e2d4={'vRXtU':function(_0x383457,_0x220549){return _0x383457(_0x220549);}};if(_0x12deea)return _0x38e2d4[_0x34de9c(0x85)](isSessionEnabled,_0x12deea)?_0x12deea:null;const _0x549c03=await readHookInput(),_0x1b2d9f=_0x549c03?.[_0x34de9c(0x8a)];if(!_0x1b2d9f||!isSessionEnabled(_0x1b2d9f))return null;return _0x1b2d9f;}function _0x4769(_0x5ed3a2,_0x1c9065){_0x5ed3a2=_0x5ed3a2-0x82;const _0x465362=_0x4653();let _0x476981=_0x465362[_0x5ed3a2];return _0x476981;}export async function getEnabledHookContext(_0x2fc38b){const _0x4f1c9b={'kFEWR':function(_0x4e9324){return _0x4e9324();}};if(_0x2fc38b){if(!isSessionEnabled(_0x2fc38b))return null;return{'sessionId':_0x2fc38b,'input':{'session_id':_0x2fc38b}};}const _0x4083a1=await _0x4f1c9b['kFEWR'](readHookInput),_0x4cfb9f=_0x4083a1?.['session_id'];if(!_0x4cfb9f||!isSessionEnabled(_0x4cfb9f))return null;return{'sessionId':_0x4cfb9f,'input':_0x4083a1};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5ebf(_0x5b50f3,_0x11c25f){_0x5b50f3=_0x5b50f3-0x1a5;const _0x12fcc9=_0x12fc();let _0x5ebfdf=_0x12fcc9[_0x5b50f3];return _0x5ebfdf;}(function(_0x368947,_0x379989){const _0x2e9371=_0x5ebf,_0x1d0d19=_0x368947();while(!![]){try{const _0x3b0d3b=-parseInt(_0x2e9371(0x1af))/0x1*(-parseInt(_0x2e9371(0x1b1))/0x2)+-parseInt(_0x2e9371(0x1ad))/0x3+-parseInt(_0x2e9371(0x1aa))/0x4+parseInt(_0x2e9371(0x1a9))/0x5+-parseInt(_0x2e9371(0x1ab))/0x6*(parseInt(_0x2e9371(0x1a7))/0x7)+-parseInt(_0x2e9371(0x1b3))/0x8*(parseInt(_0x2e9371(0x1ac))/0x9)+parseInt(_0x2e9371(0x1a5))/0xa;if(_0x3b0d3b===_0x379989)break;else _0x1d0d19['push'](_0x1d0d19['shift']());}catch(_0x254b7d){_0x1d0d19['push'](_0x1d0d19['shift']());}}}(_0x12fc,0xb5fdd));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x53d4fb){const _0x4ccd92=_0x5ebf,_0x1d5c63={'WgwkG':'plan','sYIHl':function(_0x2ac70a,_0x2814cf){return _0x2ac70a(_0x2814cf);}},_0x51e514=await getEnabledHookContext(_0x53d4fb);if(!_0x51e514)return;if(_0x51e514[_0x4ccd92(0x1b2)]['permission_mode']!==_0x1d5c63[_0x4ccd92(0x1a6)])return;if(!shouldShowPlanReminder(_0x51e514[_0x4ccd92(0x1ae)]))return;_0x1d5c63[_0x4ccd92(0x1a8)](printBlock,_0x4ccd92(0x1b0));}function _0x12fc(){const _0x3b64b6=['WgwkG','7OoPUuD','sYIHl','5063390UjJiOX','3662572UmhCRx','6528774yNUQVl','798642aqtRzR','3481425SigWlF','sessionId','2SJqaRc','===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===','631426mUcVnw','input','88EqFHIK','32416980RdivTH'];_0x12fc=function(){return _0x3b64b6;};return _0x12fc();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x59a6(_0x71fa41,_0x2c25b3){_0x71fa41=_0x71fa41-0x1e4;const _0x231509=_0x2315();let _0x59a60d=_0x231509[_0x71fa41];return _0x59a60d;}function _0x2315(){const _0x43762d=['===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===','6LqcnGQ','157068dmqvlE','193195PmlxLK','1035MJoIUK','17672dnamxV','1427885UkaTqr','72910rSlGFc','VaFZK','1750875rNbDqh','2400510tAkhoa','12FcUetA'];_0x2315=function(){return _0x43762d;};return _0x2315();}(function(_0x13c289,_0xc4cd6f){const _0x17fb16=_0x59a6,_0x18515a=_0x13c289();while(!![]){try{const _0x337a0d=-parseInt(_0x17fb16(0x1e7))/0x1+parseInt(_0x17fb16(0x1eb))/0x2*(-parseInt(_0x17fb16(0x1ef))/0x3)+-parseInt(_0x17fb16(0x1e6))/0x4+parseInt(_0x17fb16(0x1ea))/0x5*(parseInt(_0x17fb16(0x1e5))/0x6)+parseInt(_0x17fb16(0x1ed))/0x7+parseInt(_0x17fb16(0x1e9))/0x8*(parseInt(_0x17fb16(0x1e8))/0x9)+-parseInt(_0x17fb16(0x1ee))/0xa;if(_0x337a0d===_0xc4cd6f)break;else _0x18515a['push'](_0x18515a['shift']());}catch(_0x3fd7bc){_0x18515a['push'](_0x18515a['shift']());}}}(_0x2315,0x29d8c));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x25d95b){const _0x2b00d5=_0x59a6,_0x1213a0={'VaFZK':function(_0x2dc6ee,_0xf3155){return _0x2dc6ee(_0xf3155);}},_0x1fdd38=await getEnabledSessionId(_0x25d95b);if(!_0x1fdd38)return;_0x1213a0[_0x2b00d5(0x1ec)](printBlock,_0x2b00d5(0x1e4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a95c6,_0x1c9dd3){const _0x131646=_0x3bfb,_0x165374=_0x1a95c6();while(!![]){try{const _0x3804b4=-parseInt(_0x131646(0x1cf))/0x1*(-parseInt(_0x131646(0x1d2))/0x2)+-parseInt(_0x131646(0x1dc))/0x3*(-parseInt(_0x131646(0x1d6))/0x4)+parseInt(_0x131646(0x1da))/0x5+-parseInt(_0x131646(0x1d9))/0x6+parseInt(_0x131646(0x1d0))/0x7+parseInt(_0x131646(0x1dd))/0x8*(parseInt(_0x131646(0x1d1))/0x9)+parseInt(_0x131646(0x1d8))/0xa*(-parseInt(_0x131646(0x1d4))/0xb);if(_0x3804b4===_0x1c9dd3)break;else _0x165374['push'](_0x165374['shift']());}catch(_0x32062a){_0x165374['push'](_0x165374['shift']());}}}(_0x1fd3,0xb0258));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x1fd3(){const _0x5858b7=['QyyJn','12929983UDOBNU','RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).','1400740RXjVWi','stringify','20aGKWOk','5527026VisjMK','6808955fRUiCF','PostToolUse','6sbHMLm','16EKHNmO','log','RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.','BHaCY','710638rnRaIF','1395982JxSHvN','4596066aueUtC','2MgrxIV'];_0x1fd3=function(){return _0x5858b7;};return _0x1fd3();}function _0x3bfb(_0x4043c6,_0x4954f3){_0x4043c6=_0x4043c6-0x1cd;const _0x1fd3af=_0x1fd3();let _0x3bfbbb=_0x1fd3af[_0x4043c6];return _0x3bfbbb;}import{getEnabledSessionId}from'./output.js';export async function postEdit(_0xb3e54d){const _0x370f0f=_0x3bfb,_0x2999f8={'BHaCY':function(_0x44e723,_0x506593){return _0x44e723(_0x506593);},'QyyJn':'PostToolUse'},_0x580116=await getEnabledSessionId(_0xb3e54d);if(!_0x580116)return;_0x2999f8[_0x370f0f(0x1ce)](updateBranchTracking,_0x580116);const _0x461c69=await getToken();if(!_0x461c69)return;const _0x1153be=getSessionEntry(_0x580116);if(_0x1153be){const _0x4374aa={'hookSpecificOutput':{'hookEventName':_0x2999f8[_0x370f0f(0x1d3)],'additionalContext':_0x370f0f(0x1d5)}};console[_0x370f0f(0x1de)](JSON[_0x370f0f(0x1d7)](_0x4374aa));return;}const _0x2f5dec={'hookSpecificOutput':{'hookEventName':_0x370f0f(0x1db),'additionalContext':_0x370f0f(0x1cd)}};console[_0x370f0f(0x1de)](JSON[_0x370f0f(0x1d7)](_0x2f5dec));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2af630,_0x4752da){const _0x2fef82=_0x4a40,_0x342b52=_0x2af630();while(!![]){try{const _0x15bcca=-parseInt(_0x2fef82(0x1f4))/0x1*(-parseInt(_0x2fef82(0x1f2))/0x2)+-parseInt(_0x2fef82(0x1f0))/0x3*(parseInt(_0x2fef82(0x1f5))/0x4)+-parseInt(_0x2fef82(0x1ec))/0x5*(-parseInt(_0x2fef82(0x1f6))/0x6)+-parseInt(_0x2fef82(0x1eb))/0x7*(-parseInt(_0x2fef82(0x1f7))/0x8)+-parseInt(_0x2fef82(0x1f3))/0x9*(-parseInt(_0x2fef82(0x1ea))/0xa)+-parseInt(_0x2fef82(0x1e9))/0xb*(parseInt(_0x2fef82(0x1ed))/0xc)+-parseInt(_0x2fef82(0x1f1))/0xd*(parseInt(_0x2fef82(0x1ee))/0xe);if(_0x15bcca===_0x4752da)break;else _0x342b52['push'](_0x342b52['shift']());}catch(_0x3dd2cd){_0x342b52['push'](_0x342b52['shift']());}}}(_0x13b4,0x6424c));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x4a40(_0x302769,_0x9b2c9){_0x302769=_0x302769-0x1e9;const _0x13b40c=_0x13b4();let _0x4a4032=_0x13b40c[_0x302769];return _0x4a4032;}export async function preCompact(_0x1cc043){const _0x59771e=_0x4a40,_0xc966cc={'uzqbT':function(_0x89f26d,_0xe53f9){return _0x89f26d(_0xe53f9);}},_0x5aa0e6=await getEnabledSessionId(_0x1cc043);if(!_0x5aa0e6)return;try{const _0xb1dd6=await getToken();if(!_0xb1dd6)return;_0xc966cc['uzqbT'](printBlock,_0x59771e(0x1ef));}catch{}}function _0x13b4(){const _0x56f114=['5511219xdhbfp','15lbUCFc','109092hlbSPA','14AhvBXu','===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.','55773rGoocm','16754777trbHjU','194830qouMaF','27AaNrSY','5vPANqZ','84mOXxXp','1183458iyxZxb','8bbyNPq','11ITQUTr','774660GSPvRu'];_0x13b4=function(){return _0x56f114;};return _0x13b4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bf6d6,_0x4c9ba3){const _0x26ccd7=_0x5b0e,_0x231740=_0x4bf6d6();while(!![]){try{const _0x4c143c=parseInt(_0x26ccd7(0x1cd))/0x1*(-parseInt(_0x26ccd7(0x1c7))/0x2)+-parseInt(_0x26ccd7(0x1c6))/0x3*(-parseInt(_0x26ccd7(0x1cc))/0x4)+-parseInt(_0x26ccd7(0x1d2))/0x5*(parseInt(_0x26ccd7(0x1c5))/0x6)+-parseInt(_0x26ccd7(0x1ca))/0x7+-parseInt(_0x26ccd7(0x1d1))/0x8*(parseInt(_0x26ccd7(0x1cf))/0x9)+parseInt(_0x26ccd7(0x1c9))/0xa+parseInt(_0x26ccd7(0x1ce))/0xb;if(_0x4c143c===_0x4c9ba3)break;else _0x231740['push'](_0x231740['shift']());}catch(_0x510265){_0x231740['push'](_0x231740['shift']());}}}(_0x4a37,0x4e973));function _0x4a37(){const _0x511b06=['940jLsDcE','clear','8382FdluaC','66WDitie','2dWoVXK','CLAUDE_SESSION_ID','2631530zSAlXe','4259570dEbMPR','eNNhq','69468tzVDLN','182305PlhRNC','11392018twVpoT','161739Vtshxq','session_id','136scEDvA'];_0x4a37=function(){return _0x511b06;};return _0x4a37();}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';function _0x5b0e(_0x2d9091,_0x42c47b){_0x2d9091=_0x2d9091-0x1c5;const _0x4a370d=_0x4a37();let _0x5b0eb6=_0x4a370d[_0x2d9091];return _0x5b0eb6;}export async function sessionEnd(_0x1b3107){const _0x2a4e00=_0x5b0e,_0x54ed43={'eNNhq':function(_0xd8af55){return _0xd8af55();},'KXoYu':function(_0x5a88b9,_0x52f9de){return _0x5a88b9===_0x52f9de;}},_0x3e8215=process['env'][_0x2a4e00(0x1c8)];let _0xd6f9eb=_0x1b3107,_0x543ac3;if(!_0x1b3107){if(_0x3e8215&&!isSessionEnabled(_0x3e8215))return;const _0x476833=await _0x54ed43[_0x2a4e00(0x1cb)](readHookInput);_0xd6f9eb=_0x476833?.[_0x2a4e00(0x1d0)]||_0x3e8215,_0x543ac3=_0x476833?.['reason'];}if(!_0xd6f9eb)return;_0x54ed43['KXoYu'](_0x543ac3,_0x2a4e00(0x1d3))&&recordEnabledSessionCleared(_0xd6f9eb);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x356801=_0x4b0a;(function(_0x2762f4,_0x3c75b5){const _0x341cea=_0x4b0a,_0x3d0efb=_0x2762f4();while(!![]){try{const _0x9bbf44=-parseInt(_0x341cea(0xbc))/0x1*(-parseInt(_0x341cea(0xb7))/0x2)+-parseInt(_0x341cea(0xbb))/0x3+-parseInt(_0x341cea(0xb4))/0x4+parseInt(_0x341cea(0xb6))/0x5+-parseInt(_0x341cea(0xb9))/0x6*(-parseInt(_0x341cea(0xc1))/0x7)+-parseInt(_0x341cea(0xc0))/0x8+-parseInt(_0x341cea(0xbe))/0x9;if(_0x9bbf44===_0x3c75b5)break;else _0x3d0efb['push'](_0x3d0efb['shift']());}catch(_0x4e991a){_0x3d0efb['push'](_0x3d0efb['shift']());}}}(_0x387b,0x3b866));import{appendFile}from'fs/promises';function _0x387b(){const _0x4e6fee=['2LeKEIE','ZazMg','2621382GNETpI','wRCIy','513330OqzoVk','273560pUaIlC','source','2124954GYhRaz','session_id','64464eAswws','7zMOYEN','idXJP','stdin','McevX','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================','success','env','679760WeXCWC','BlirK','592855qOzxWb'];_0x387b=function(){return _0x4e6fee;};return _0x387b();}import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT=_0x356801(0xc5);function _0x4b0a(_0x23440f,_0x2a3387){_0x23440f=_0x23440f-0xb3;const _0x387be4=_0x387b();let _0x4b0a0d=_0x387be4[_0x23440f];return _0x4b0a0d;}export async function sessionStart(_0x3927a7){const _0x5e14d1=_0x356801,_0x2e8982={'hMpsx':function(_0xd74153,_0x33e70a){return _0xd74153||_0x33e70a;},'idXJP':function(_0x2627c3,_0x9183a4){return _0x2627c3&&_0x9183a4;},'HAMui':function(_0x1932ef,_0x139558,_0x40c278){return _0x1932ef(_0x139558,_0x40c278);},'McevX':function(_0x4722d0,_0x4fc475){return _0x4722d0(_0x4fc475);},'XLMqP':function(_0x163da5,_0x35ad05){return _0x163da5===_0x35ad05;},'ZazMg':function(_0x27194d){return _0x27194d();},'WTRDj':function(_0x2a9c48,_0x580b0b){return _0x2a9c48(_0x580b0b);},'BlirK':'main','wRCIy':function(_0x3e4487,_0x1bc416){return _0x3e4487+_0x1bc416;}};let _0x4791ea=_0x2e8982['hMpsx'](_0x3927a7,''),_0x5145e3;if(!_0x3927a7){let _0x2e60ab='';for await(const _0x527b16 of process[_0x5e14d1(0xc3)]){_0x2e60ab+=_0x527b16;}try{const _0x599d59=JSON['parse'](_0x2e60ab);_0x4791ea=_0x599d59[_0x5e14d1(0xbf)]||'',_0x5145e3=_0x599d59[_0x5e14d1(0xbd)];}catch{}const _0x1b99d7=process[_0x5e14d1(0xb3)]['CLAUDE_ENV_FILE'];if(_0x2e8982[_0x5e14d1(0xc2)](_0x1b99d7,_0x4791ea))try{await _0x2e8982['HAMui'](appendFile,_0x1b99d7,'export\x20CLAUDE_SESSION_ID=\x22'+_0x4791ea+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x4791ea){shouldAutoEnableAfterClear(_0x5145e3)&&_0x2e8982['McevX'](autoEnableAfterClear,_0x4791ea);_0x2e8982[_0x5e14d1(0xc4)](initBranchTracking,_0x4791ea);_0x2e8982['XLMqP'](_0x2e8982[_0x5e14d1(0xb8)](resolveHookMode),'on')&&enableSession(_0x4791ea);const _0x5cd905=_0x2e8982['WTRDj'](isSessionEnabled,_0x4791ea);try{const _0x5a2f9e=createTelemetryCollector('hook:session-start');await _0x5a2f9e['trackCommandStart']({'sessionId':_0x4791ea,'hooksEnabled':_0x5cd905}),await _0x5a2f9e['trackCommandEnd'](_0x5e14d1(0xc6));}catch{}if(_0x5cd905){const _0x25e6a5=_0x2e8982['ZazMg'](getCurrentBranch),_0xc34797=_0x25e6a5&&_0x25e6a5!==_0x2e8982[_0x5e14d1(0xb5)]&&_0x25e6a5!=='master'?'\x20(Branch:\x20'+_0x25e6a5+')':'',_0x3dbdbc={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':_0x2e8982[_0x5e14d1(0xba)](RANGER_AUTO_ENABLED_PROMPT,_0xc34797)}};console['log'](JSON['stringify'](_0x3dbdbc));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3bfbf0,_0x5a32dd){const _0x302b97=_0xfdfc,_0x285e09=_0x3bfbf0();while(!![]){try{const _0x35b1da=-parseInt(_0x302b97(0x123))/0x1+-parseInt(_0x302b97(0x12d))/0x2+-parseInt(_0x302b97(0x12a))/0x3*(parseInt(_0x302b97(0x11f))/0x4)+-parseInt(_0x302b97(0x132))/0x5*(-parseInt(_0x302b97(0x134))/0x6)+parseInt(_0x302b97(0x135))/0x7+parseInt(_0x302b97(0x127))/0x8*(parseInt(_0x302b97(0x11e))/0x9)+parseInt(_0x302b97(0x120))/0xa*(parseInt(_0x302b97(0x12e))/0xb);if(_0x35b1da===_0x5a32dd)break;else _0x285e09['push'](_0x285e09['shift']());}catch(_0x2a7971){_0x285e09['push'](_0x285e09['shift']());}}}(_0x3175,0xc9948));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0xfdfc(_0x6d1d76,_0x1bc884){_0x6d1d76=_0x6d1d76-0x11d;const _0x317597=_0x3175();let _0xfdfc17=_0x317597[_0x6d1d76];return _0xfdfc17;}export async function stopHook(_0x5feb68){const _0xf206cf=_0xfdfc,_0x33e05b={'sfSEJ':function(_0x2de975,_0x2dceaa){return _0x2de975(_0x2dceaa);},'jLWsy':function(_0x4b7df6,_0x12708e,_0x450eae,_0x284ca1){return _0x4b7df6(_0x12708e,_0x450eae,_0x284ca1);},'BEpRk':function(_0x11602e,_0x50dba9){return _0x11602e(_0x50dba9);},'SaxzH':_0xf206cf(0x12b),'vdlQb':function(_0x4f1173,_0x12b1e3,_0x35acd4){return _0x4f1173(_0x12b1e3,_0x35acd4);},'UCIrR':function(_0x1444e8,_0x43e585,_0x17ce71,_0x679803){return _0x1444e8(_0x43e585,_0x17ce71,_0x679803);},'ObPYs':function(_0x3ad834,_0x211c80,_0xbc8876,_0x5372eb){return _0x3ad834(_0x211c80,_0xbc8876,_0x5372eb);}},_0x34c129=await getEnabledHookContext(_0x5feb68),_0x2773a9=_0x34c129?.['sessionId']??null;let _0x5beacd=!![];if(!_0x2773a9){await trackStop(_0x2773a9,![],_0x5beacd);return;}try{const _0x2702c9=_0x33e05b['sfSEJ'](getSessionEntry,_0x2773a9);if(!_0x2702c9){await _0x33e05b[_0xf206cf(0x12c)](trackStop,_0x2773a9,!![],_0x5beacd);return;}const _0x1bcc67=await getToken(),_0xd9ea24=_0xf206cf(0x124)+_0x2702c9[_0xf206cf(0x133)];let _0x2b3859=null,_0x3e061a=![],_0x12146a=![];if(_0x1bcc67)try{const _0x15ae8d=await _0x33e05b['BEpRk'](getFeature,_0x2702c9['featureId']);_0x2b3859=_0x15ae8d[_0xf206cf(0x122)]??null;const _0x1eb8bd=_0x15ae8d[_0xf206cf(0x130)][_0xf206cf(0x137)](_0x27b271=>_0x27b271[_0xf206cf(0x11d)]===_0x2b3859);_0x3e061a=_0x1eb8bd[_0xf206cf(0x129)](_0x3dc500=>_0x3dc500['status']!==_0xf206cf(0x12f)&&_0x3dc500['status']!==_0xf206cf(0x125)&&_0x3dc500['status']!=='closed'&&_0x3dc500[_0xf206cf(0x131)]!=='incomplete'),_0x12146a=_0x1eb8bd['some'](_0xcdbb31=>_0xcdbb31['status']==='verification_in_progress');}catch{}if(_0x1bcc67&&_0x2b3859&&_0x3e061a){if(!_0x12146a&&shouldShowStopReminder(_0x2773a9)){const _0x355d2d={'hookSpecificOutput':{'hookEventName':_0x33e05b['SaxzH'],'additionalContext':_0xf206cf(0x126)+_0xd9ea24}};console['log'](JSON['stringify'](_0x355d2d));}}if(_0x1bcc67&&_0x2b3859&&!_0x3e061a)try{await _0x33e05b['vdlQb'](concludeSession,_0x2702c9[_0xf206cf(0x133)],_0x2b3859);}catch{}await _0x33e05b[_0xf206cf(0x128)](trackStop,_0x2773a9,!![],_0x5beacd);return;}catch{await _0x33e05b[_0xf206cf(0x136)](trackStop,_0x2773a9,!![],_0x5beacd);return;}}async function trackStop(_0x41a4bc,_0x4512cf,_0x66ae2){const _0xc4ca8f=_0xfdfc;try{const _0x5b78df=createTelemetryCollector('hook:stop');await _0x5b78df[_0xc4ca8f(0x121)]({'sessionId':_0x41a4bc??undefined,'hooksEnabled':_0x4512cf,'stopAllowed':_0x66ae2}),await _0x5b78df['trackCommandEnd']('success');}catch{}}function _0x3175(){const _0x5281ea=['44epdbze','verified','checklistItems','status','5ilLjVG','featureId','2484786PrWbSe','27748pnHzLj','ObPYs','filter','sessionId','9pCaJqs','10748AWaeHX','4668720xDNOli','trackCommandStart','currentSessionId','566112kVqavK','https://dashboard.ranger.net/features/','blocked','RANGER:\x20The\x20active\x20feature\x20review\x20still\x20has\x20unfinished\x20checklist\x20items.\x20Before\x20responding\x20to\x20the\x20user,\x20if\x20this\x20UI\x20work\x20is\x20ready,\x20run\x20`ranger\x20show`\x20and\x20then\x20`ranger\x20go`\x20for\x20the\x20relevant\x20scenario(s).\x20If\x20it\x20is\x20not\x20ready\x20for\x20browser\x20verification\x20yet,\x20continue\x20implementing.\x20Dashboard:\x20','2998168WynaQA','UCIrR','some','753OhTPAT','Stop','jLWsy','1188266FpfAcf'];_0x3175=function(){return _0x5281ea;};return _0x3175();}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d8fa1,_0x4e3d67){var _0x674eb=_0x1dd8,_0x2189de=_0x1d8fa1();while(!![]){try{var _0x503347=parseInt(_0x674eb(0x15d))/0x1+-parseInt(_0x674eb(0x15f))/0x2+parseInt(_0x674eb(0x162))/0x3+-parseInt(_0x674eb(0x161))/0x4*(-parseInt(_0x674eb(0x164))/0x5)+-parseInt(_0x674eb(0x160))/0x6*(-parseInt(_0x674eb(0x163))/0x7)+-parseInt(_0x674eb(0x166))/0x8*(-parseInt(_0x674eb(0x15e))/0x9)+-parseInt(_0x674eb(0x165))/0xa;if(_0x503347===_0x4e3d67)break;else _0x2189de['push'](_0x2189de['shift']());}catch(_0x2e72c4){_0x2189de['push'](_0x2189de['shift']());}}}(_0x58b8,0x7fd36));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';export{start,ensureLocalEnv,ensureChromium,authenticate}from'./start.js';export{useEnv}from'./useEnv.js';export{deleteProfile}from'./deleteProfile.js';export{updateEnv}from'./updateEnv.js';export{update}from'./update.js';export{skillup}from'./skillup.js';export{envList}from'./env.js';export{hook}from'./hook.js';function _0x58b8(){var _0x265b4e=['49tZWYGX','2182175elGZvv','25754000pgnKys','1808fxpbrE','923015rkxwMB','36306hkJQQM','190084FpDdQn','470946raVKuV','4uOiyux','1120335ZGalwK'];_0x58b8=function(){return _0x265b4e;};return _0x58b8();}export{setupCi}from'./setupCi.js';function _0x1dd8(_0x4e9f7f,_0x12c325){_0x4e9f7f=_0x4e9f7f-0x15d;var _0x58b810=_0x58b8();var _0x1dd814=_0x58b810[_0x4e9f7f];return _0x1dd814;}export{migrateProfile}from'./migrateProfile.js';
|