@ranger-testing/ranger-cli 3.1.7-alpha.a5be4ca-60 → 3.1.7-alpha.d64f22a-65
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 +1 -1
|
@@ -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 _0x18ee59=_0x5e2b;(function(_0x17a693,_0x49d96e){const _0x58538d=_0x5e2b,_0x354f98=_0x17a693();while(!![]){try{const _0x30c3da=parseInt(_0x58538d(0x1aa))/0x1+parseInt(_0x58538d(0x19a))/0x2*(-parseInt(_0x58538d(0x125))/0x3)+parseInt(_0x58538d(0xf2))/0x4+parseInt(_0x58538d(0x176))/0x5+parseInt(_0x58538d(0xdb))/0x6*(-parseInt(_0x58538d(0xf9))/0x7)+-parseInt(_0x58538d(0x13a))/0x8*(parseInt(_0x58538d(0x18c))/0x9)+parseInt(_0x58538d(0xee))/0xa*(parseInt(_0x58538d(0x156))/0xb);if(_0x30c3da===_0x49d96e)break;else _0x354f98['push'](_0x354f98['shift']());}catch(_0x40009b){_0x354f98['push'](_0x354f98['shift']());}}}(_0x4658,0x4f6a3));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3d3dd7 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';function _0x4658(){const _0x339383=['103442NHssfd','slice','LLiJV','.\x20Feature\x20review\x20has\x20','screenshotUrls','write','map','6kmnTnG','createdAt','Showing\x20','browserSessionId','zkDHV','stdout','eCnLG','TUTfw','trim','jSxAb','\x20>\x20','toLocaleDateString','trimEnd','completedAt','currentBranch','currentSessionId','\x20--include-deleted','JuHkj','\x0a✅\x20Resumed\x20feature\x20review:\x20','30jqVQig','selector','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','pMmrY','526148vFgMHi','canceledReason','dwVpH','HYXDv','Jvvhq','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','BQufJ','22729rjAKaF','in_progress','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x0a✅\x20Report\x20generated:\x20','stats','\x20in\x20progress','pop','\x1b[0m','sessionId','screenshot','closed','RAIkl','env','gitBranch','sBdAX','scenarios','get','items','has','pipe','\x20\x20\x20\x20\x20\x20Blocked:\x20','latestReview','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','\x20(v','rovHN','git\x20rev-parse\x20--abbrev-ref\x20HEAD','list','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','hFGdM','IgpjX','ZrmjN','submittedAt','assets','lBpnq','toLocaleString','utf-8','checklistItems','\x20\x20\x20','short','dashboardUrl','\x0a📋\x20Feedback\x20for:\x20','verification_in_progress','authorEmail','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','127599aYuPrI','Bdnwj','toFixed','PvGpw','CLAUDE_SESSION_ID','Step\x20','terminalReason','VrqhN','find','Please\x20finish\x20your\x20review\x20first:','EFcel','replace','point','content','\x0aAvailable\x20scenarios:','\x20\x20💬\x20','split','IZLgJ','blockedItems','from','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','4567496ztwOgR','qQgdD','cTfdw','.png','Not\x20in\x20a\x20git\x20repository.','):\x20\x22','length','\x0aNo\x20feature\x20reviews\x20found.','\x20\x20\x20Completed:\x20','/api/v1/mcp/browser-sessions/','version','join','ready','PQytk','\x20\x20\x20Created:\x20','EmhPV','\x20\x20✅\x20No\x20feedback\x20to\x20address','any','\x20/\x20','completed','error','sCoAV','iBAWD','EpIRm','flyCW','ltkWc','type','jvVXN','2113331cpfTMz','jGIzF','\x20\x20\x20ID:\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','iteration','fjFFX','pOShC','mIXcp','RCDoL','domRef','scenario','ZAsov','.md','eToUV','blocked','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','ybyHf','incompleteItems','blockedReason','EwVnb','IeYVX','totalCount','exit','\x20—\x20no\x20comments','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','bLqtj','ECqRU','tCYBd','incomplete','verifiedItems',':\x20\x22','\x20[has\x20reviewer\x20feedback]','653290yvIMws','\x0aGenerating\x20report...','No\x20active\x20session\x20for\x20this\x20feature\x20review.','XzLPD','prompt','gitRepoUrl','unaddressedComments','status','bIsZF','izbrt','nXGeI','zZEAR','\x0aConcluding\x20session...','approved','element','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a✅\x20Scenario\x20updated','description','\x20\x20\x20Branch:\x20','4|0|3|5|1|2','incompleteReason','name','9QuMndl','/artifacts/','ezdjR','dqRiB','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','stepName','push','\x0a⚠️\x20\x20','filter','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','\x20\x20\x20Progress:\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','2AQUxXe','assetType','verified','\x20Session\x20','NCcMB','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','mQxSh','bDssp','\x20\x20\x20\x20\x20\x20Approved','log','assetUrl','dNVez','orDPp','includeDeleted','stdin','\x0a❌\x20Invalid\x20scenario\x20index:\x20'];_0x4658=function(){return _0x339383;};return _0x4658();}import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x5798f9=>'\x1b[1m'+_0x5798f9+_0x18ee59(0x100);function getGitRepoUrl(){const _0x2cb558=_0x18ee59,_0x304f6d={'PnNJU':function(_0x495dca,_0x109d62,_0x17980c){return _0x495dca(_0x109d62,_0x17980c);},'bIsZF':'utf-8','eCnLG':'pipe','IEsKR':'github.com/'};try{const _0xa12a9e=_0x304f6d['PnNJU'](execSync,'git\x20remote\x20get-url\x20origin',{'encoding':_0x304f6d[_0x2cb558(0x17e)],'stdio':['pipe',_0x304f6d[_0x2cb558(0xe1)],_0x2cb558(0x10c)]})['trim']();return _0xa12a9e[_0x2cb558(0x130)](/\.git$/,'')[_0x2cb558(0x130)](/^git@github\.com:/,_0x304f6d['IEsKR'])[_0x2cb558(0x130)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x518641=_0x18ee59,_0x228f3d={'WibTI':_0x518641(0x10c)};try{return execSync(_0x518641(0x112),{'encoding':_0x518641(0x11c),'stdio':[_0x228f3d['WibTI'],_0x518641(0x10c),_0x518641(0x10c)]})[_0x518641(0xe3)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x2075bf=_0x18ee59,_0x44f336={'pOShC':function(_0x540d16,_0x3e4453,_0x277adc){return _0x540d16(_0x3e4453,_0x277adc);},'BQufJ':function(_0x59fba6,_0x36fa81,_0x5d33e5){return _0x59fba6(_0x36fa81,_0x5d33e5);}},_0x49f19e=_0x44f336[_0x2075bf(0x15c)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x49f19e))return null;try{const _0x4da90a=await _0x44f336[_0x2075bf(0xf8)](readFile,_0x49f19e,'utf-8');return _0x4da90a[_0x2075bf(0xe3)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x4d4eb9){const _0x2cefb9=_0x18ee59,_0x27d7cc={'qQgdD':function(_0x32b7f8,_0x4962c3,_0x22ab94){return _0x32b7f8(_0x4962c3,_0x22ab94);},'PvGpw':function(_0x1fd056,_0x4daa05,_0x45c98e,_0x444b85){return _0x1fd056(_0x4daa05,_0x45c98e,_0x444b85);},'mQxSh':_0x2cefb9(0x11c)},_0x500e53=getRangerDir(),_0x42c48f=join(_0x500e53,ACTIVE_FEATURE_FILE);!existsSync(_0x500e53)&&await _0x27d7cc[_0x2cefb9(0x13b)](mkdir,_0x500e53,{'recursive':!![]}),await _0x27d7cc[_0x2cefb9(0x128)](writeFile,_0x42c48f,_0x4d4eb9,_0x27d7cc[_0x2cefb9(0x1a0)]);}function getProgressDisplay(_0x5f48dc){const _0x335f5e=_0x18ee59,_0x2d5973={'zZEAR':function(_0x31579e,_0x495598){return _0x31579e+_0x495598;},'ELRtd':function(_0x10e160,_0xd0d691){return _0x10e160/_0xd0d691;},'cTfdw':function(_0x239db5,_0x432d00){return _0x239db5>_0x432d00;}},_0xfc9322=_0x5f48dc[_0x335f5e(0x173)]||0x0,_0x3b3df1=_0x5f48dc['verificationInProgressItems']||0x0,_0x320c60=_0x5f48dc[_0x335f5e(0x137)]||0x0,_0x395ab9=_0x5f48dc[_0x335f5e(0x167)]||0x0,_0x4e6eee=_0x5f48dc['pendingItems']||0x0,_0x123179=_0x2d5973['zZEAR'](_0x2d5973[_0x335f5e(0x181)](_0x2d5973[_0x335f5e(0x181)](_0xfc9322,_0x3b3df1),_0x320c60)+_0x395ab9,_0x4e6eee);if(_0x123179===0x0)return'-';const _0x47b2cf=0xa,_0x5aa7d0=Math['round'](_0x2d5973['ELRtd'](_0xfc9322,_0x123179)*_0x47b2cf),_0x5c20b0='█'['repeat'](_0x5aa7d0)+'░'['repeat'](_0x47b2cf-_0x5aa7d0),_0x36ef71=[];if(_0x320c60>0x0)_0x36ef71['push'](_0x320c60+'\x20blocked');if(_0x395ab9>0x0)_0x36ef71[_0x335f5e(0x192)](_0x395ab9+'\x20incomplete');if(_0x2d5973[_0x335f5e(0x13c)](_0x3b3df1,0x0))_0x36ef71[_0x335f5e(0x192)](_0x3b3df1+_0x335f5e(0xfe));const _0x4dd4ab=_0x36ef71['length']>0x0?'\x20('+_0x36ef71[_0x335f5e(0x145)](',\x20')+')':'';return _0x5c20b0+'\x20'+_0xfc9322+'/'+_0x123179+'\x20verified'+_0x4dd4ab;}function getCurrentSessionItems(_0x4d2203,_0x441381){const _0x4f570a=_0x18ee59;if(!_0x4d2203['currentSessionId'])return _0x441381[_0x4f570a(0x194)](_0x24ee5c=>!_0x24ee5c['sessionId']);return _0x441381[_0x4f570a(0x194)](_0x6d031f=>_0x6d031f['sessionId']===_0x4d2203['currentSessionId']||!_0x6d031f[_0x4f570a(0x101)]);}function displayFeature(_0x438063,_0x2a0029){const _0x4598aa=_0x18ee59,_0x4c8765={'flyCW':function(_0x2f6bd8,_0x7cf5f2){return _0x2f6bd8(_0x7cf5f2);},'fhhGE':function(_0x50f95c,_0x87ed05){return _0x50f95c>_0x87ed05;},'nlJoC':'\x0a\x20\x20\x20Scenarios:','dqRiB':function(_0x28744a,_0x792a21){return _0x28744a===_0x792a21;},'iBAWD':_0x4598aa(0x103),'rovHN':function(_0x4caed3,_0x3c2e23){return _0x4caed3===_0x3c2e23;},'urhaR':_0x4598aa(0x172),'wKgUb':_0x4598aa(0x164),'fjFFX':'verification_in_progress','LLiJV':function(_0x36ace0,_0x215e12){return _0x36ace0>_0x215e12;},'uZtWj':function(_0x172841,_0x30c8ce){return _0x172841!==_0x30c8ce;},'DlgpC':function(_0x1d943d,_0x9c5289){return _0x1d943d===_0x9c5289;},'ghSGi':function(_0x10694c,_0x313991){return _0x10694c===_0x313991;},'Rdeby':_0x4598aa(0x183)};console[_0x4598aa(0x1a3)]('\x0a'+_0x438063['name']+'\x20('+_0x438063[_0x4598aa(0x120)]+')');_0x438063['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x4c8765[_0x4598aa(0x152)](getProgressDisplay,_0x438063['stats']));_0x438063[_0x4598aa(0x187)]&&console[_0x4598aa(0x1a3)]('\x20\x20\x20Description:\x20'+_0x438063['description']);_0x438063[_0x4598aa(0x17b)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x438063['gitRepoUrl']);_0x438063[_0x4598aa(0x106)]&&console['log'](_0x4598aa(0x188)+_0x438063['gitBranch']);console['log'](_0x4598aa(0x148)+new Date(_0x438063[_0x4598aa(0xdc)])[_0x4598aa(0x11b)]());_0x438063[_0x4598aa(0xe8)]&&console[_0x4598aa(0x1a3)](_0x4598aa(0x142)+new Date(_0x438063[_0x4598aa(0xe8)])[_0x4598aa(0x11b)]());if(_0x2a0029&&_0x4c8765['fhhGE'](_0x2a0029['length'],0x0)){console[_0x4598aa(0x1a3)](_0x4c8765['nlJoC']);for(let _0x2db31f=0x0;_0x2db31f<_0x2a0029['length'];_0x2db31f++){const _0x204549=_0x2a0029[_0x2db31f];let _0x59e77e;if(_0x4c8765[_0x4598aa(0x18f)](_0x204549['status'],_0x4c8765[_0x4598aa(0x150)])&&_0x4c8765['dqRiB'](_0x204549[_0x4598aa(0x12b)],_0x4598aa(0x183)))_0x59e77e='✅';else{if(_0x4c8765[_0x4598aa(0x111)](_0x204549['status'],_0x4598aa(0x19c)))_0x59e77e='🟢';else{if(_0x204549['status']===_0x4c8765['urhaR'])_0x59e77e='🟠';else{if(_0x204549[_0x4598aa(0x17d)]===_0x4c8765['wKgUb'])_0x59e77e='🛑';else{if(_0x204549[_0x4598aa(0x17d)]===_0x4c8765['iBAWD'])_0x59e77e='⛔';else _0x4c8765['rovHN'](_0x204549['status'],_0x4c8765[_0x4598aa(0x15b)])?_0x59e77e='⏳':_0x59e77e='⬜';}}}}const _0x398d1b=_0x4c8765[_0x4598aa(0x1ac)](_0x204549[_0x4598aa(0x144)],0x1)?_0x4598aa(0x110)+_0x204549['version']+')':'',_0x218efb=_0x204549['version']>0x1&&_0x204549['parentItemId']&&_0x204549[_0x4598aa(0x17d)]!==_0x4598aa(0x103)&&_0x4c8765['uZtWj'](_0x204549[_0x4598aa(0x17d)],'verified')?_0x4598aa(0x175):'';console[_0x4598aa(0x1a3)](_0x4598aa(0x11e)+(_0x2db31f+0x1)+'.\x20'+_0x59e77e+'\x20'+_0x204549[_0x4598aa(0x187)]+_0x398d1b+_0x218efb);_0x4c8765['DlgpC'](_0x204549[_0x4598aa(0x17d)],_0x4598aa(0x164))&&_0x204549[_0x4598aa(0x168)]&&console['log'](_0x4598aa(0x10d)+_0x204549[_0x4598aa(0x168)]);_0x4c8765['ghSGi'](_0x204549[_0x4598aa(0x17d)],'incomplete')&&_0x204549[_0x4598aa(0x18a)]&&console['log'](_0x4598aa(0xfb)+_0x204549[_0x4598aa(0x18a)]);if(_0x4c8765[_0x4598aa(0x111)](_0x204549['status'],_0x4c8765['iBAWD'])&&_0x204549['terminalReason']===_0x4c8765['Rdeby'])console[_0x4598aa(0x1a3)](_0x4598aa(0x1a2));else _0x204549['status']===_0x4c8765['iBAWD']&&_0x204549[_0x4598aa(0xf3)]&&console[_0x4598aa(0x1a3)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x204549['canceledReason']);}}}export async function featureCreate(_0x1827e0,_0x5b3cd8){const _0x5ba10e=_0x18ee59,_0x580766={'VciJv':function(_0x376284){return _0x376284();},'jGIzF':function(_0x187fb8,_0x255784){return _0x187fb8(_0x255784);},'jvVXN':'\x0aCreating\x20feature\x20review...','RCDoL':function(_0x5f26b6,_0xd9f06a,_0x12df73){return _0x5f26b6(_0xd9f06a,_0x12df73);}},{envNames:_0x206243}=await _0x580766['VciJv'](getEnvNames);if(_0x206243['length']===0x0&&!process[_0x5ba10e(0x105)]['RANGER_TEST_USERNAME']){let _0x1bb5a8=0x0;try{_0x1bb5a8=(await listCloudProfiles())[_0x5ba10e(0x140)];}catch{_0x1bb5a8=0x1;}_0x1bb5a8===0x0&&console['warn']('\x0a'+_0x580766[_0x5ba10e(0x157)](formatProfileRequiredMessage,_0x5c0ff4=>bold(_0x5c0ff4)));}const _0x25e58d=_0x5b3cd8[_0x5ba10e(0x108)]?_0x5b3cd8['scenarios']['map'](_0x5e02b3=>_0x5e02b3['trim']()):[],_0x3aef35=getGitRepoUrl(),_0x2e1352=getGitBranch();console[_0x5ba10e(0x1a3)](_0x580766[_0x5ba10e(0x155)]);const _0x1937dc=await createFeature({'name':_0x1827e0,'description':_0x5b3cd8[_0x5ba10e(0x187)],'checklist':_0x25e58d,'gitRepoUrl':_0x3aef35,'gitBranch':_0x2e1352});await _0x580766['jGIzF'](setActiveFeatureId,_0x1937dc['id']),await tryStartCurrentSession(_0x1937dc['id']);const _0x43ddf4=process[_0x5ba10e(0x105)][_0x5ba10e(0x129)];_0x43ddf4&&_0x580766[_0x5ba10e(0x15e)](registerSession,_0x43ddf4,_0x1937dc['id']),console[_0x5ba10e(0x1a3)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x1937dc['id']),displayFeature(_0x1937dc,_0x1937dc['checklistItems']),console['log'](_0x5ba10e(0x198));}export async function featureList(_0x198012){const _0x30d146=_0x18ee59,_0x102773={'IZLgJ':function(_0x4b2c7c,_0x1b7d14){return _0x4b2c7c(_0x1b7d14);},'VrqhN':function(_0x3e35c8,_0x303f6a){return _0x3e35c8===_0x303f6a;},'IgpjX':_0x30d146(0x189),'ybyHf':function(_0x4cef24,_0x244846){return _0x4cef24(_0x244846);},'EmhPV':function(_0x42f52b,_0x45bb65){return _0x42f52b+_0x45bb65;},'HYXDv':function(_0x1c47ba,_0x454eec){return _0x1c47ba!==_0x454eec;},'FYlzQ':'\x20--current-branch'},_0x43f356={'limit':_0x198012['limit']??0xa,'offset':_0x198012['offset']??0x0,'includeDeleted':_0x198012['includeDeleted']};_0x198012['currentBranch']&&(_0x43f356[_0x30d146(0x17b)]=getGitRepoUrl(),_0x43f356[_0x30d146(0x106)]=getGitBranch());const _0x5221d9=await _0x102773[_0x30d146(0x136)](listFeatures,_0x43f356);if(_0x102773[_0x30d146(0x12c)](_0x5221d9[_0x30d146(0x10a)]['length'],0x0)){console['log'](_0x30d146(0x141));return;}const _0x4d4e20=_0x5221d9['totalCount']>_0x5221d9[_0x30d146(0x10a)][_0x30d146(0x140)]?_0x30d146(0xdd)+_0x5221d9[_0x30d146(0x10a)]['length']+'\x20of\x20'+_0x5221d9[_0x30d146(0x16b)]:_0x5221d9['totalCount']+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x4d4e20+':\x0a');for(const _0x5b0ae8 of _0x5221d9['items']){const _0x1e8951=_0x102773[_0x30d146(0x116)][_0x30d146(0x135)]('|');let _0x2ba49f=0x0;while(!![]){switch(_0x1e8951[_0x2ba49f++]){case'0':console[_0x30d146(0x1a3)](_0x30d146(0x158)+_0x5b0ae8['id']);continue;case'1':console[_0x30d146(0x1a3)](_0x30d146(0x148)+new Date(_0x5b0ae8[_0x30d146(0xdc)])[_0x30d146(0xe6)]());continue;case'2':console[_0x30d146(0x1a3)]('');continue;case'3':_0x5b0ae8[_0x30d146(0xfd)]&&console['log'](_0x30d146(0x197)+_0x102773[_0x30d146(0x166)](getProgressDisplay,_0x5b0ae8['stats']));continue;case'4':console['log'](''+_0x5b0ae8[_0x30d146(0x18b)]);continue;case'5':_0x5b0ae8[_0x30d146(0x106)]&&console['log'](_0x30d146(0x188)+_0x5b0ae8['gitBranch']);continue;}break;}}const _0xabc126=_0x43f356['limit']??0xa,_0x31f319=_0x102773[_0x30d146(0x149)](_0x43f356['offset']??0x0,_0x5221d9['items']['length']);if(_0x31f319<_0x5221d9[_0x30d146(0x16b)]){const _0x11cc87=_0x102773[_0x30d146(0xf5)](_0xabc126,0xa)?'\x20--limit\x20'+_0xabc126:'',_0x244881=_0x198012[_0x30d146(0xe9)]?_0x102773['FYlzQ']:'',_0x454dcb=_0x198012[_0x30d146(0x1a7)]?_0x30d146(0xeb):'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x31f319+_0x11cc87+_0x244881+_0x454dcb);}}function _0x5e2b(_0x4bbd07,_0x118539){_0x4bbd07=_0x4bbd07-0xd9;const _0x4658b2=_0x4658();let _0x5e2b9a=_0x4658b2[_0x4bbd07];return _0x5e2b9a;}export async function featureShow(_0x4c50b9){const _0x1b779d=_0x18ee59,_0x60b32={'TggSY':_0x1b779d(0x139)},_0x2cb343=_0x4c50b9||await getActiveFeatureId();if(!_0x2cb343)throw new Error(_0x60b32['TggSY']);const _0x1e5a82=await getFeature(_0x2cb343);displayFeature(_0x1e5a82,_0x1e5a82['checklistItems']);}export async function featureResume(_0xb138f0){const _0x4b22c9=_0x18ee59,_0x31c486={'DvkQV':function(_0x13cf58,_0x4f3ccb){return _0x13cf58(_0x4f3ccb);},'mIXcp':function(_0x326d55){return _0x326d55();},'orDPp':function(_0x3506b1,_0x512b4d,_0x2fffaf){return _0x3506b1(_0x512b4d,_0x2fffaf);},'eToUV':function(_0x42c540,_0x6af1ff){return _0x42c540&&_0x6af1ff;},'MQJix':function(_0x55548d,_0x515a1c){return _0x55548d||_0x515a1c;},'CLsgZ':function(_0x588b15,_0x2838ef){return _0x588b15||_0x2838ef;},'ltkWc':function(_0x1661ef,_0x1c138e){return _0x1661ef(_0x1c138e);},'sBdAX':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','tlsOC':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','dNVez':function(_0x5e6e93,_0xb25f6b){return _0x5e6e93===_0xb25f6b;},'sCoAV':_0x4b22c9(0x190),'dwVpH':function(_0x17204e,_0x2168ec){return _0x17204e(_0x2168ec);},'JuHkj':_0x4b22c9(0x10f),'ghLYm':_0x4b22c9(0x113),'lXTPu':'selected','Wptla':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','XzLPD':function(_0x3f163b,_0x23191e){return _0x3f163b!==_0x23191e;},'EFcel':function(_0x1b625b,_0x275f0d){return _0x1b625b(_0x275f0d);},'ueraU':function(_0xa6df25,_0x4787b2){return _0xa6df25(_0x4787b2);}};if(_0xb138f0){const _0x4a4ab2=await getFeature(_0xb138f0);await _0x31c486['DvkQV'](setActiveFeatureId,_0x4a4ab2['id']);const _0x767c2d=_0x31c486[_0x4b22c9(0x15d)](getGitBranch);_0x767c2d&&_0x767c2d!==_0x4a4ab2['gitBranch']&&(await updateFeature(_0x4a4ab2['id'],{'gitBranch':_0x767c2d}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x767c2d));console['log'](_0x4b22c9(0xed)+_0x4a4ab2[_0x4b22c9(0x18b)]+'\x20('+_0x4a4ab2['id']+')'),await tryStartCurrentSession(_0x4a4ab2['id']);const _0xbbb399=process[_0x4b22c9(0x105)]['CLAUDE_SESSION_ID'];_0xbbb399&&_0x31c486[_0x4b22c9(0x1a6)](registerSession,_0xbbb399,_0x4a4ab2['id']);_0x31c486['orDPp'](displayFeature,_0x4a4ab2,_0x4a4ab2['checklistItems']),await _0x31c486['DvkQV'](printFeedbackNudge,_0x4a4ab2['id']);return;}const _0x3f896c=getGitRepoUrl(),_0x5a4ecb=getGitBranch();if(_0x31c486[_0x4b22c9(0x163)](!_0x3f896c,!_0x5a4ecb))throw new Error(_0x4b22c9(0x13e));console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x31c486['MQJix'](_0x3f896c,'any')+_0x4b22c9(0x14c)+_0x31c486['CLsgZ'](_0x5a4ecb,_0x4b22c9(0x14b))+'...');const _0x2f46a2=await _0x31c486[_0x4b22c9(0x153)](listFeatures,{'gitRepoUrl':_0x3f896c,'gitBranch':_0x5a4ecb}),_0x1bfb73=_0x2f46a2['items'][_0x4b22c9(0x194)](_0x7e655f=>_0x7e655f[_0x4b22c9(0x17d)]?_0x7e655f[_0x4b22c9(0x17d)]!==_0x4b22c9(0x19c):!_0x7e655f[_0x4b22c9(0xe8)]);if(_0x1bfb73['length']===0x0){console[_0x4b22c9(0x1a3)](_0x31c486[_0x4b22c9(0x107)]),console['log'](_0x31c486['tlsOC']);return;}let _0x3b4a06;if(_0x31c486[_0x4b22c9(0x1a5)](_0x1bfb73[_0x4b22c9(0x140)],0x1))_0x3b4a06=_0x1bfb73[0x0];else{const _0x8642a0=process[_0x4b22c9(0x1a8)]['isTTY']&&process['stdout']['isTTY'];if(!_0x8642a0){console['log'](_0x31c486[_0x4b22c9(0x14f)]);for(const _0x1e3891 of _0x1bfb73){console[_0x4b22c9(0x1a3)]('\x20\x20'+_0x1e3891['name']),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x1e3891['id']),_0x1e3891[_0x4b22c9(0xfd)]&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x31c486[_0x4b22c9(0xf4)](getProgressDisplay,_0x1e3891['stats'])),_0x1e3891['gitBranch']&&console[_0x4b22c9(0x1a3)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x1e3891['gitBranch']);}throw new Error(_0x31c486[_0x4b22c9(0xec)]);}const {selected:_0x45ad9d}=await _0x3d3dd7[_0x4b22c9(0x17a)]([{'type':_0x31c486['ghLYm'],'name':_0x31c486['lXTPu'],'message':_0x31c486['Wptla'],'choices':_0x1bfb73[_0x4b22c9(0xda)](_0x2b6c26=>({'name':_0x2b6c26['name']+'\x20('+_0x2b6c26['id']+')','value':_0x2b6c26['id']}))}]);_0x3b4a06=_0x1bfb73[_0x4b22c9(0x12d)](_0x22ed05=>_0x22ed05['id']===_0x45ad9d);}await setActiveFeatureId(_0x3b4a06['id']);_0x5a4ecb&&_0x31c486[_0x4b22c9(0x179)](_0x5a4ecb,_0x3b4a06['gitBranch'])&&(await _0x31c486['orDPp'](updateFeature,_0x3b4a06['id'],{'gitBranch':_0x5a4ecb}),console[_0x4b22c9(0x1a3)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x5a4ecb));console[_0x4b22c9(0x1a3)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3b4a06[_0x4b22c9(0x18b)]+'\x20('+_0x3b4a06['id']+')'),await tryStartCurrentSession(_0x3b4a06['id']);const _0x4b4c1d=await _0x31c486[_0x4b22c9(0x12f)](getFeature,_0x3b4a06['id']),_0x2810d7=process[_0x4b22c9(0x105)][_0x4b22c9(0x129)];_0x2810d7&®isterSession(_0x2810d7,_0x4b4c1d['id']),displayFeature(_0x4b4c1d,_0x4b4c1d[_0x4b22c9(0x11d)]),await _0x31c486['ueraU'](printFeedbackNudge,_0x4b4c1d['id']);}async function printFeedbackNudge(_0x4b082a){const _0x47fd4a=_0x18ee59,_0x465edf={'ECqRU':function(_0x2c02a5,_0x13c487){return _0x2c02a5(_0x13c487);},'pMmrY':function(_0x3a2bb2,_0x3e58df,_0x34be56){return _0x3a2bb2(_0x3e58df,_0x34be56);}};try{const {items:_0x4a07a3}=await _0x465edf[_0x47fd4a(0x170)](getActionItems,_0x4b082a);let _0x10f044=0x0,_0x593051=0x0;for(const _0x2b2359 of _0x4a07a3){const _0x34e797=await _0x465edf[_0x47fd4a(0xf1)](getItemFeedback,_0x4b082a,_0x2b2359['id']);_0x34e797[_0x47fd4a(0x17c)][_0x47fd4a(0x140)]>0x0&&(_0x10f044+=_0x34e797['unaddressedComments']['length'],_0x593051++);}_0x10f044>0x0&&(console['log'](_0x47fd4a(0x193)+_0x10f044+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x593051+'\x20scenario(s).'),console[_0x47fd4a(0x1a3)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x79d765){const _0x2fc61a=_0x18ee59,_0x3c8091={'TUTfw':function(_0x30f8e3,_0x374cfe){return _0x30f8e3(_0x374cfe);}};try{const {sessions:_0x15dd20}=await _0x3c8091[_0x2fc61a(0xe2)](listFeatureSessions,_0x79d765),_0x3e73f1=_0x15dd20['find'](_0x95dd69=>_0x95dd69['status']===_0x2fc61a(0x146));_0x3e73f1&&(await startSession(_0x79d765,_0x3e73f1['id']),console[_0x2fc61a(0x1a3)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x3e73f1[_0x2fc61a(0x15a)]));}catch{}}export async function featureReport(_0x4f16e2,_0x2b506a){const _0x37769b=_0x18ee59,_0x420d9f={'fVqRq':function(_0x131bb7,_0xbbc6b,_0x2f538a){return _0x131bb7(_0xbbc6b,_0x2f538a);},'lBpnq':'reports','QHDKa':function(_0x5546eb,_0x3aef51,_0x5d0f32){return _0x5546eb(_0x3aef51,_0x5d0f32);},'urJoS':function(_0x23d221,_0x4d87c3){return _0x23d221(_0x4d87c3);},'UUMzb':function(_0x2dde3d,_0x1771ad,_0x1b26ed,_0x410ad1){return _0x2dde3d(_0x1771ad,_0x1b26ed,_0x410ad1);}},_0x439cc=_0x4f16e2||await getActiveFeatureId();if(!_0x439cc)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log'](_0x37769b(0x177));const _0x20860e=await _0x420d9f['fVqRq'](getFeatureReportMarkdown,_0x439cc,{'style':_0x2b506a['style']}),_0x20b0ac=_0x2b506a['output']||join(getRangerDir(),_0x420d9f[_0x37769b(0x11a)],_0x439cc+_0x37769b(0x162)),_0x1f9012=_0x420d9f['QHDKa'](join,_0x20b0ac,'..');!_0x420d9f['urJoS'](existsSync,_0x1f9012)&&await mkdir(_0x1f9012,{'recursive':!![]}),await _0x420d9f['UUMzb'](writeFile,_0x20b0ac,_0x20860e,_0x37769b(0x11c)),console['log'](_0x37769b(0xfc)+_0x20b0ac);}function getScenarioResult(_0x55d72d){const _0x3ccfda=_0x18ee59,_0x2fc41a={'udhLz':function(_0x3908d2,_0x168422){return _0x3908d2===_0x168422;},'EpIRm':'closed','bLqtj':_0x3ccfda(0x122)};if(_0x2fc41a['udhLz'](_0x55d72d[_0x3ccfda(0x17d)],_0x2fc41a[_0x3ccfda(0x151)]))return _0x55d72d['terminalReason']??_0x2fc41a['EpIRm'];if(_0x55d72d['status']===_0x2fc41a[_0x3ccfda(0x16f)])return'in_progress';return _0x55d72d['status'];}function getScenarioRationale(_0x590dc3,_0xa805e){const _0x566b9a=_0x18ee59;if(_0xa805e)return _0xa805e;if(_0x590dc3['blockedReason'])return _0x590dc3['blockedReason'];if(_0x590dc3[_0x566b9a(0x18a)])return _0x590dc3[_0x566b9a(0x18a)];if(_0x590dc3['canceledReason'])return _0x590dc3[_0x566b9a(0xf3)];if(_0x590dc3['notes'])return _0x590dc3['notes'];return null;}export async function featureReportPrDescription(_0x4ef5b2,_0x5fa0b){const _0x53c177=_0x18ee59,_0x84aa8c={'NLbxv':function(_0x16201c){return _0x16201c();},'baDoh':function(_0x16f8b1,_0x5f0803){return _0x16f8b1(_0x5f0803);},'IeYVX':function(_0x1c93c6,_0x1aa6b1,_0x3b6be2){return _0x1c93c6(_0x1aa6b1,_0x3b6be2);},'tfZqZ':function(_0xcb0647,_0x53660c){return _0xcb0647===_0x53660c;}},_0x5f56c5=_0x4ef5b2||await _0x84aa8c['NLbxv'](getActiveFeatureId);if(!_0x5f56c5)throw new Error(_0x53c177(0x199));const _0x3cff2b=await _0x84aa8c['baDoh'](getFeature,_0x5f56c5),_0x428a77=_0x3cff2b[_0x53c177(0x11d)]||[],_0x271ffd=_0x84aa8c[_0x53c177(0x16a)](getCurrentSessionItems,_0x3cff2b,_0x428a77);_0x84aa8c['tfZqZ'](_0x271ffd['length'],0x0)&&(console['error'](_0x53c177(0x124)),process[_0x53c177(0x16c)](0x1));const _0x18a462=_0x5fa0b['excludeScenarios']??[],_0x4b3f92=_0x18a462[_0x53c177(0x194)](_0x19e845=>!Number['isInteger'](_0x19e845)||_0x19e845<0x1||_0x19e845>_0x271ffd['length']);if(_0x4b3f92['length']>0x0){console[_0x53c177(0x14e)](_0x53c177(0x159)+_0x4b3f92['join'](',\x20')),console[_0x53c177(0x1a3)]('\x0aAvailable\x20scenarios:');for(let _0x30f8cd=0x0;_0x30f8cd<_0x271ffd[_0x53c177(0x140)];_0x30f8cd++){console['log']('\x20\x20'+(_0x30f8cd+0x1)+'.\x20'+_0x271ffd[_0x30f8cd][_0x53c177(0x187)]);}process[_0x53c177(0x16c)](0x1);}const _0x222371=new Set(_0x18a462[_0x53c177(0xda)](_0x36ed25=>_0x36ed25-0x1)),_0x5aab56=_0x271ffd['filter']((_0x387104,_0x437551)=>!_0x222371[_0x53c177(0x10b)](_0x437551));_0x5aab56['length']===0x0&&(console[_0x53c177(0x14e)](_0x53c177(0xf0)),process[_0x53c177(0x16c)](0x1));if(_0x5fa0b['json'])await outputJsonReport(_0x5f56c5,_0x3cff2b,_0x5aab56);else{const _0x5d8a66=await _0x84aa8c['IeYVX'](getFeatureReportMarkdown,_0x5f56c5,{'itemIds':_0x5aab56[_0x53c177(0xda)](_0x33ffe7=>_0x33ffe7['id'])});process[_0x53c177(0xe0)][_0x53c177(0xd9)](_0x5d8a66[_0x53c177(0xe7)]()+'\x0a');}}async function outputJsonReport(_0x22409c,_0x20c764,_0xaf84ea){const _0x4edfcd=_0x18ee59,_0x5082dd={'ezdjR':function(_0x16024f,_0x2827f9){return _0x16024f(_0x2827f9);},'jgZza':function(_0x2df311,_0x152a29,_0x5cedb3){return _0x2df311(_0x152a29,_0x5cedb3);},'nXGeI':function(_0xf45ccd){return _0xf45ccd();},'hOUOK':function(_0x14348f,_0x264af6){return _0x14348f(_0x264af6);}},_0x23bac5=_0x5082dd[_0x4edfcd(0x180)](getApiBaseUrl),_0xc174b0=await _0x5082dd['hOUOK'](getFeatureReport,_0x22409c),_0x2801ae=new Map(_0xc174b0['checklistItems'][_0x4edfcd(0xda)](_0x22d295=>[_0x22d295['id'],_0x22d295])),_0x7bcf01=await Promise['all'](_0xaf84ea['map'](async _0x3e9dee=>{const _0x4b6e68=_0x4edfcd,_0x4fda00=_0x2801ae[_0x4b6e68(0x109)](_0x3e9dee['id']),_0x515c48=_0x4fda00?.['linkedSession']??null;let _0x3661c7=[];if(_0x3e9dee['browserSessionId'])try{const {steps:_0x336e49}=await _0x5082dd[_0x4b6e68(0x18e)](getBrowserSessionSteps,_0x3e9dee[_0x4b6e68(0xde)]);_0x336e49['length']>0x0&&(_0x3661c7=_0x336e49['map'](_0xd115d8=>{const _0x387bd5=_0x4b6e68,_0x3ca24b=_0xd115d8['assets']['find'](_0x3748e4=>_0x3748e4['assetType']==='screenshot'&&_0x3748e4['timing']==='after')??_0xd115d8[_0x387bd5(0x119)][_0x387bd5(0x12d)](_0x2f8ac4=>_0x2f8ac4[_0x387bd5(0x19b)]===_0x387bd5(0x102));let _0x2ed8ce=null,_0x506be6=null;if(_0x3ca24b){const _0x25a747=_0x3ca24b['storage']['location'][_0x387bd5(0x135)]('/')['pop']();_0x2ed8ce=_0x23bac5+_0x387bd5(0x143)+_0x3e9dee['browserSessionId']+_0x387bd5(0x18d)+_0x25a747,_0x25a747&&(_0x506be6=_0x25a747['replace'](/\.\w+$/,'')[_0x387bd5(0x130)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x506be6||_0xd115d8['description']||_0xd115d8[_0x387bd5(0x191)]||_0x387bd5(0x12a)+_0xd115d8['position'],'screenshot':_0x2ed8ce,'is_key_step':_0xd115d8['isKeyStep']};}));}catch{}return _0x3661c7[_0x4b6e68(0x140)]===0x0&&_0x515c48?.['screenshotUrls']&&(_0x3661c7=_0x515c48[_0x4b6e68(0x1ae)][_0x4b6e68(0xda)]((_0x33e09c,_0x1d872e)=>({'description':'Screenshot\x20'+(_0x1d872e+0x1),'screenshot':_0x33e09c,'is_key_step':![]}))),{'description':_0x3e9dee['description'],'result':getScenarioResult(_0x3e9dee),'rationale':_0x5082dd['jgZza'](getScenarioRationale,_0x3e9dee,_0x515c48?.['agentResponse']),'steps':_0x3661c7};})),_0x1d962e={'url':_0x20c764['dashboardUrl'],'scenarios':_0x7bcf01};process['stdout']['write'](JSON['stringify'](_0x1d962e,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x12cddd){const _0xcc7fac=_0x18ee59,_0x1abe66={'tCYBd':function(_0x1bf01a){return _0x1bf01a();},'BrZwl':_0xcc7fac(0x178),'Jvvhq':function(_0x19d62d,_0x5392c5){return _0x19d62d(_0x5392c5);},'PQytk':function(_0x1b351c,_0x41f053){return _0x1b351c===_0x41f053;},'PaUxw':function(_0x28dd4c,_0x2a7e49){return _0x28dd4c!==_0x2a7e49;},'pqXYj':'in_progress','Pusqi':function(_0x2a3899,_0x5afe51,_0x4c8726){return _0x2a3899(_0x5afe51,_0x4c8726);}},_0x17285f=_0x12cddd||await _0x1abe66[_0xcc7fac(0x171)](getActiveFeatureId);if(!_0x17285f)throw new Error(_0xcc7fac(0x139));const _0x35191a=await getFeature(_0x17285f);if(!_0x35191a['currentSessionId'])throw new Error(_0x1abe66['BrZwl']);const {sessions:_0x51f02a}=await _0x1abe66[_0xcc7fac(0xf6)](listFeatureSessions,_0x17285f),_0x38ecb6=_0x51f02a['find'](_0x7f384c=>_0x7f384c['id']===_0x35191a[_0xcc7fac(0xea)]);if(!_0x38ecb6)throw new Error('Current\x20session\x20not\x20found.');if(_0x1abe66[_0xcc7fac(0x147)](_0x38ecb6['status'],_0xcc7fac(0x14d))){console['log']('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x1abe66['PaUxw'](_0x38ecb6[_0xcc7fac(0x17d)],_0x1abe66['pqXYj']))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x38ecb6['status']);console['log'](_0xcc7fac(0x182)),await _0x1abe66['Pusqi'](concludeSession,_0x17285f,_0x35191a['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x38ecb6[_0xcc7fac(0x15a)]+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4ef1ac){const _0x5bd1a1=_0x18ee59,_0x4ca015={'bDssp':function(_0x1d1e31){return _0x1d1e31();},'uiBkJ':_0x5bd1a1(0x199),'hCdvE':_0x5bd1a1(0x14d),'Bdnwj':function(_0x18e02f,_0x5e47e9){return _0x18e02f===_0x5e47e9;}},_0x440fb4=_0x4ef1ac||await _0x4ca015[_0x5bd1a1(0x1a1)](getActiveFeatureId);if(!_0x440fb4)throw new Error(_0x4ca015['uiBkJ']);const _0x33ce49=await getFeature(_0x440fb4);console['log'](_0x5bd1a1(0x196)+_0x33ce49[_0x5bd1a1(0x18b)]+'\x0a');const {sessions:_0x106248}=await listFeatureSessions(_0x440fb4);if(_0x106248[_0x5bd1a1(0x140)]===0x0){console['log']('No\x20sessions\x20found.');return;}for(const _0x4849f7 of _0x106248){const _0x408302=_0x4849f7[_0x5bd1a1(0x17d)]===_0x4ca015['hCdvE']?'✅':_0x4ca015[_0x5bd1a1(0x126)](_0x4849f7['status'],_0x5bd1a1(0xfa))?'🔄':'▶️';console['log'](_0x408302+_0x5bd1a1(0x19d)+_0x4849f7['iteration']+'\x20('+_0x4849f7['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x4849f7[_0x5bd1a1(0x17d)]),console['log'](_0x5bd1a1(0x148)+new Date(_0x4849f7['createdAt'])[_0x5bd1a1(0x11b)]()),_0x4849f7[_0x5bd1a1(0xe8)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x4849f7[_0x5bd1a1(0xe8)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x15ca60,_0x1cb68a){const _0x330510=_0x18ee59,_0x4a91c3={'wpvNY':function(_0x3e2c51){return _0x3e2c51();},'eElUD':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','UJNsP':function(_0x34d4e3,_0x2f40f1){return _0x34d4e3(_0x2f40f1);},'EwVnb':function(_0x3544b8,_0x32fbfe,_0x49ef15){return _0x3544b8(_0x32fbfe,_0x49ef15);},'PCtqz':function(_0x2c17eb,_0x6837cf,_0x411bf7){return _0x2c17eb(_0x6837cf,_0x411bf7);}},_0x22704b=_0x1cb68a||await _0x4a91c3['wpvNY'](getActiveFeatureId);if(!_0x22704b)throw new Error(_0x4a91c3['eElUD']);const _0x506a73=await _0x4a91c3['UJNsP'](getFeature,_0x22704b);if(_0x506a73[_0x330510(0x10e)]&&!_0x506a73[_0x330510(0x10e)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x506a73['dashboardUrl']);await _0x4a91c3[_0x330510(0x169)](createChecklistItem,_0x22704b,_0x15ca60);const _0xecd7ca=await _0x4a91c3['UJNsP'](getFeature,_0x22704b);console['log']('\x0a✅\x20Scenario\x20added'),_0x4a91c3['PCtqz'](displayFeature,_0xecd7ca,_0xecd7ca['checklistItems']);}export async function featureEditScenario(_0x3a4440,_0x42f864){const _0x414940=_0x18ee59,_0x55539d={'Wcphd':_0x414940(0x185),'jSxAb':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','izbrt':_0x414940(0x16e),'PAENm':_0x414940(0x12e),'HoiMk':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','RAIkl':function(_0x4d9e5c,_0x3a7bd){return _0x4d9e5c<_0x3a7bd;},'ZrmjN':function(_0x4a11c6,_0x4fb34e,_0x409a23,_0x3ce984){return _0x4a11c6(_0x4fb34e,_0x409a23,_0x3ce984);},'XdjPy':function(_0x4cb142,_0x232d78){return _0x4cb142(_0x232d78);}},_0x4e13c8=_0x42f864['id']||await getActiveFeatureId();!_0x4e13c8&&(console[_0x414940(0x14e)](_0x55539d['Wcphd']),console['error'](_0x55539d[_0x414940(0xe4)]),process[_0x414940(0x16c)](0x1));const _0xc31a12=await getFeature(_0x4e13c8);_0xc31a12['latestReview']&&!_0xc31a12['latestReview'][_0x414940(0x118)]&&(console['error'](_0x55539d[_0x414940(0x17f)]),console[_0x414940(0x14e)](_0x55539d['PAENm']),console['error']('\x20\x20'+_0xc31a12[_0x414940(0x120)]),process['exit'](0x1));const _0x27d35c=_0xc31a12[_0x414940(0x11d)]||[];_0x27d35c['length']===0x0&&(console[_0x414940(0x14e)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process[_0x414940(0x16c)](0x1));if(_0x42f864['scenario']===undefined){console[_0x414940(0x14e)](_0x55539d['HoiMk']),console['log'](_0x414940(0x133));for(let _0x2bfe0a=0x0;_0x2bfe0a<_0x27d35c['length'];_0x2bfe0a++){console['log']('\x20\x20'+(_0x2bfe0a+0x1)+'.\x20'+_0x27d35c[_0x2bfe0a][_0x414940(0x187)]);}process['exit'](0x1);}const _0x408c4b=_0x42f864[_0x414940(0x160)]-0x1;if(_0x408c4b<0x0||_0x408c4b>=_0x27d35c['length']){console['error'](_0x414940(0x1a9)+_0x42f864['scenario']+_0x414940(0x1ad)+_0x27d35c['length']+'\x20scenarios.'),console['log']('\x0aAvailable\x20scenarios:');for(let _0x1d133f=0x0;_0x55539d[_0x414940(0x104)](_0x1d133f,_0x27d35c[_0x414940(0x140)]);_0x1d133f++){console[_0x414940(0x1a3)]('\x20\x20'+(_0x1d133f+0x1)+'.\x20'+_0x27d35c[_0x1d133f][_0x414940(0x187)]);}process['exit'](0x1);}const _0x58b385=_0x27d35c[_0x408c4b];await _0x55539d[_0x414940(0x117)](updateChecklistItem,_0x4e13c8,_0x58b385['id'],{'description':_0x3a4440});const _0xada6ea=await _0x55539d['XdjPy'](getFeature,_0x4e13c8);console['log'](_0x414940(0x186)),displayFeature(_0xada6ea,_0xada6ea[_0x414940(0x11d)]);}async function downloadFeedbackImage(_0x4aa86f,_0x5e08b4){const _0x57e7bd=_0x18ee59,_0x5681bc={'RKtxS':'feedback-images','qvXDi':function(_0x17328f,_0x3ecb44,_0x343421){return _0x17328f(_0x3ecb44,_0x343421);}};try{const _0x27a634=join(getRangerDir(),_0x5681bc['RKtxS']);await mkdir(_0x27a634,{'recursive':!![]});const _0x2d0ad9=_0x5681bc['qvXDi'](join,_0x27a634,'comment_'+_0x5e08b4+_0x57e7bd(0x13d)),_0x1b1faa=await fetch(_0x4aa86f);if(!_0x1b1faa['ok'])return null;const _0x2d571=Buffer[_0x57e7bd(0x138)](await _0x1b1faa['arrayBuffer']());return await _0x5681bc['qvXDi'](writeFile,_0x2d0ad9,_0x2d571),_0x2d0ad9;}catch{return null;}}export async function featureGetReview(_0x1c6c7d){const _0x4777c3=_0x18ee59,_0x517eac={'hFGdM':function(_0x28b8c6,_0x95d602){return _0x28b8c6(_0x95d602);},'zkDHV':function(_0x396fed,_0x21f89b){return _0x396fed===_0x21f89b;},'zkIQP':function(_0x2e9a04,_0x9250f2){return _0x2e9a04<_0x9250f2;},'dBbdz':function(_0x5207a2,_0x463d14){return _0x5207a2>_0x463d14;},'WSAGQ':'en-US','ZAsov':_0x4777c3(0xe5),'NCcMB':function(_0x279bc6,_0x53e3ce){return _0x279bc6>=_0x53e3ce;},'jfOsR':function(_0x32fd66,_0x2b625b){return _0x32fd66+_0x2b625b;}},_0x5710b5=_0x1c6c7d||await getActiveFeatureId();if(!_0x5710b5)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 _0xaa7da4=await _0x517eac[_0x4777c3(0x115)](getFeature,_0x5710b5),{items:_0x26d414}=await getActionItems(_0x5710b5);console['log'](_0x4777c3(0x121)+_0xaa7da4[_0x4777c3(0x18b)]+'\x20('+_0xaa7da4['id']+')\x0a');if(_0x517eac['zkDHV'](_0x26d414[_0x4777c3(0x140)],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x4a6dfe=0x0;_0x517eac['zkIQP'](_0x4a6dfe,_0x26d414['length']);_0x4a6dfe++){const _0x5ef480=_0x26d414[_0x4a6dfe],_0x1c5e3=_0x517eac['dBbdz'](_0x5ef480[_0x4777c3(0x144)],0x1)?_0x4777c3(0x110)+_0x5ef480['version']+')':'',_0x357571=await getItemFeedback(_0x5710b5,_0x5ef480['id']);if(_0x517eac['dBbdz'](_0x357571[_0x4777c3(0x17c)][_0x4777c3(0x140)],0x0)){console['log']('Scenario\x20'+(_0x4a6dfe+0x1)+':\x20\x22'+_0x5ef480[_0x4777c3(0x187)]+'\x22'+_0x1c5e3+'\x20—\x20'+_0x357571['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0xa1df99 of _0x357571['unaddressedComments']){const _0x4472e6=new Date(_0xa1df99[_0x4777c3(0xdc)])[_0x4777c3(0xe6)](_0x517eac['WSAGQ'],{'month':_0x4777c3(0x11f),'day':'numeric'}),_0x36dad5=_0xa1df99['authorName']||_0xa1df99[_0x4777c3(0x123)]||'Unknown';console[_0x4777c3(0x1a3)](_0x4777c3(0x134)+_0x36dad5+'\x20('+_0x4472e6+_0x4777c3(0x13f)+_0xa1df99[_0x4777c3(0x132)]+'\x22');if(_0xa1df99[_0x4777c3(0x1a4)]){const _0x2475c3=await downloadFeedbackImage(_0xa1df99[_0x4777c3(0x1a4)],_0xa1df99['id']);_0x2475c3&&console['log'](_0x4777c3(0xf7)+_0x2475c3);}if(_0xa1df99['domRef']){const _0x5c172b=_0xa1df99['domRef'][_0x4777c3(0xef)][_0x4777c3(0x135)](_0x517eac[_0x4777c3(0x161)])[_0x4777c3(0xff)]()?.[_0x4777c3(0x135)](':')[0x0]||_0x4777c3(0x184),_0x135ef8=_0xa1df99['domRef']['textContent']?'\x20\x22'+_0xa1df99['domRef']['textContent'][_0x4777c3(0x1ab)](0x0,0x3c)+'\x22':'';console[_0x4777c3(0x1a3)](_0x4777c3(0x114)+_0x5c172b+'>'+_0x135ef8),console[_0x4777c3(0x1a3)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0xa1df99[_0x4777c3(0x15f)]['selector']);}else{if(_0xa1df99['spatial']){const _0x308638=_0xa1df99['spatial']['coordinates'];_0x517eac[_0x4777c3(0xdf)](_0xa1df99['spatial']['type'],_0x4777c3(0x131))&&_0x517eac[_0x4777c3(0x19e)](_0x308638[_0x4777c3(0x140)],0x2)?console['log'](_0x4777c3(0x19f)+_0x308638[0x0][_0x4777c3(0x127)](0x2)+',\x20'+_0x308638[0x1]['toFixed'](0x2)+')'):console['log'](_0x4777c3(0x165)+_0xa1df99['spatial'][_0x4777c3(0x154)]+'\x20at\x20['+_0x308638[_0x4777c3(0xda)](_0x189d57=>_0x189d57[_0x4777c3(0x127)](0x2))[_0x4777c3(0x145)](',\x20')+']');}}}if(_0x357571['canonicalFlow']){console[_0x4777c3(0x1a3)]('\x20\x20Expected\x20flow:');for(const _0x430b62 of _0x357571['canonicalFlow'][_0x4777c3(0x135)]('\x0a')){console[_0x4777c3(0x1a3)]('\x20\x20\x20\x20'+_0x430b62);}}}else console['log']('Scenario\x20'+_0x517eac['jfOsR'](_0x4a6dfe,0x1)+_0x4777c3(0x174)+_0x5ef480[_0x4777c3(0x187)]+'\x22'+_0x1c5e3+_0x4777c3(0x16d)),console['log'](_0x4777c3(0x14a));console['log']('');}}export async function featureDelete(_0x2341b7){const _0x4ba728=_0x18ee59,_0x3d9501={'rzSDX':function(_0xcddf64){return _0xcddf64();},'kFkTm':function(_0x20c586,_0x355744){return _0x20c586(_0x355744);},'WbWUE':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x2b11c2=_0x2341b7||await _0x3d9501['rzSDX'](getActiveFeatureId);if(!_0x2b11c2)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 _0x4348f5=await _0x3d9501['kFkTm'](getFeature,_0x2b11c2);await softDeleteFeature(_0x2b11c2),console['log'](_0x4ba728(0x195)+_0x4348f5['name']+'\x20('+_0x2b11c2+')'),console['log'](_0x3d9501['WbWUE']+_0x2b11c2);}export async function featureRestore(_0x9f64fd){const _0xbcec7b=_0x18ee59;await restoreFeature(_0x9f64fd);const _0x178a24=await getFeature(_0x9f64fd);console[_0xbcec7b(0x1a3)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x178a24['name']+'\x20('+_0x9f64fd+')'),displayFeature(_0x178a24,_0x178a24[_0xbcec7b(0x11d)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5632ca,_0x485748){const _0x5d9a2e=_0x23ca,_0x3b936b=_0x5632ca();while(!![]){try{const _0x30663e=parseInt(_0x5d9a2e(0x1f1))/0x1+parseInt(_0x5d9a2e(0x1ec))/0x2*(-parseInt(_0x5d9a2e(0x1e8))/0x3)+parseInt(_0x5d9a2e(0x1f8))/0x4+-parseInt(_0x5d9a2e(0x1f4))/0x5*(-parseInt(_0x5d9a2e(0x1ea))/0x6)+parseInt(_0x5d9a2e(0x1e7))/0x7*(-parseInt(_0x5d9a2e(0x1f7))/0x8)+parseInt(_0x5d9a2e(0x1e6))/0x9*(parseInt(_0x5d9a2e(0x1ed))/0xa)+parseInt(_0x5d9a2e(0x1f6))/0xb*(-parseInt(_0x5d9a2e(0x1ef))/0xc);if(_0x30663e===_0x485748)break;else _0x3b936b['push'](_0x3b936b['shift']());}catch(_0x51eb62){_0x3b936b['push'](_0x3b936b['shift']());}}}(_0x2448,0x96ecc));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};function _0x2448(){const _0x31e00f=['exit','SIGINT','3557635fcvxXT','join','23694IRjLUe','746352ZxrBse','4716928etKRsC','once','2817081vIfSyE','14SUzqlt','54822bNuzqK','error','6APFJQz','iUHYG','34mjjQkE','10PZoEpE','VWulS','11364NtwpsE','Valid\x20hooks:\x20','951504kvqyVQ'];_0x2448=function(){return _0x31e00f;};return _0x2448();}function _0x23ca(_0xc2b1e4,_0x1e41b5){_0xc2b1e4=_0xc2b1e4-0x1e5;const _0x2448d8=_0x2448();let _0x23ca3e=_0x2448d8[_0xc2b1e4];return _0x23ca3e;}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x42d3c5=_0x23ca,_0x387bd8={'iUHYG':'SIGTERM'};if(cancellationHandlersInstalled)return;const _0x503667=()=>{process['exit'](0x0);};process[_0x42d3c5(0x1e5)](_0x42d3c5(0x1f3),_0x503667),process[_0x42d3c5(0x1e5)](_0x387bd8[_0x42d3c5(0x1eb)],_0x503667),process[_0x42d3c5(0x1e5)]('SIGHUP',_0x503667),cancellationHandlersInstalled=!![];}export async function hook(_0x1d8096,_0x1f12e0){const _0x5126c1=_0x23ca,_0x31ccfc={'VWulS':function(_0x56e0c5,_0x342076){return _0x56e0c5(_0x342076);}};installCancellationHandlers();const _0x5adb1f=HOOKS[_0x1d8096];if(!_0x5adb1f){const _0x229a0e=Object['keys'](HOOKS)[_0x5126c1(0x1f5)](',\x20');console[_0x5126c1(0x1e9)]('Unknown\x20hook:\x20'+_0x1d8096),console[_0x5126c1(0x1e9)](_0x5126c1(0x1f0)+_0x229a0e),process[_0x5126c1(0x1f2)](0x1);}await _0x31ccfc[_0x5126c1(0x1ee)](_0x5adb1f,_0x1f12e0);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2f7d8d,_0x4c025d){const _0x3bc9c6=_0x260e,_0x528d31=_0x2f7d8d();while(!![]){try{const _0x2a2656=-parseInt(_0x3bc9c6(0xb9))/0x1+-parseInt(_0x3bc9c6(0xb2))/0x2+-parseInt(_0x3bc9c6(0xbb))/0x3*(-parseInt(_0x3bc9c6(0xb8))/0x4)+-parseInt(_0x3bc9c6(0xc1))/0x5+-parseInt(_0x3bc9c6(0xb3))/0x6*(-parseInt(_0x3bc9c6(0xbc))/0x7)+parseInt(_0x3bc9c6(0xb6))/0x8+parseInt(_0x3bc9c6(0xc0))/0x9*(-parseInt(_0x3bc9c6(0xbf))/0xa);if(_0x2a2656===_0x4c025d)break;else _0x528d31['push'](_0x528d31['shift']());}catch(_0xd4bb84){_0x528d31['push'](_0x528d31['shift']());}}}(_0x72eb,0xb60da));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x72eb(){const _0x552b95=['ikDvN','940628ItUSWA','302068vRaNIj','off','18LMKmwn','42pNSEyx','FiRBd','ITjjy','2758710ssrKFd','45EGBqVC','5206980vRlYaN','434192KpxTEe','1217154mCPKZw','log','atpKi','8460072mxPVpH'];_0x72eb=function(){return _0x552b95;};return _0x72eb();}function _0x260e(_0x553a3a,_0x1daa1e){_0x553a3a=_0x553a3a-0xb2;const _0x72eb94=_0x72eb();let _0x260e31=_0x72eb94[_0x553a3a];return _0x260e31;}import{resolveHookMode}from'../utils/environment.js';const AUTO_PROMPT_TEXT='\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.';export async function autoPrompt(){const _0xcb25e2=_0x260e,_0x730050={'ikDvN':function(_0x15e462){return _0x15e462();},'FiRBd':_0xcb25e2(0xba),'ITjjy':function(_0x180f74){return _0x180f74();},'BYuRt':function(_0x23a561,_0x10911d){return _0x23a561(_0x10911d);},'atpKi':function(_0x574f03,_0x3e8c9f){return _0x574f03(_0x3e8c9f);}};if(_0x730050[_0xcb25e2(0xb7)](resolveHookMode)===_0x730050[_0xcb25e2(0xbd)])return;const _0x2c42c7=await _0x730050[_0xcb25e2(0xbe)](readHookInput),_0x27384b=_0x2c42c7?.['session_id'];if(!_0x27384b)return;if(isSessionEnabled(_0x27384b)||_0x730050['BYuRt'](hasSessionBeenPrompted,_0x27384b))return;_0x730050[_0xcb25e2(0xb5)](markSessionPrompted,_0x27384b),console[_0xcb25e2(0xb4)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2159f8,_0x1a5bc9){const _0x58262c=_0x2ce2,_0x4544e5=_0x2159f8();while(!![]){try{const _0xf441fb=-parseInt(_0x58262c(0xbb))/0x1+parseInt(_0x58262c(0xb8))/0x2*(parseInt(_0x58262c(0xbd))/0x3)+parseInt(_0x58262c(0xb9))/0x4+parseInt(_0x58262c(0xbe))/0x5*(parseInt(_0x58262c(0xbf))/0x6)+-parseInt(_0x58262c(0xb4))/0x7+-parseInt(_0x58262c(0xc2))/0x8+parseInt(_0x58262c(0xba))/0x9;if(_0xf441fb===_0x1a5bc9)break;else _0x4544e5['push'](_0x4544e5['shift']());}catch(_0x4748ad){_0x4544e5['push'](_0x4544e5['shift']());}}}(_0x4567,0x4f948));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x2ce2(_0x2ec70f,_0x3ab237){_0x2ec70f=_0x2ec70f-0xb3;const _0x4567fd=_0x4567();let _0x2ce24d=_0x4567fd[_0x2ec70f];return _0x2ce24d;}import{printBlock}from'./output.js';export async function disable(_0x254264){const _0x3dcb29=_0x2ce2,_0x469396={'UKQaK':function(_0x442fc8,_0x278895){return _0x442fc8(_0x278895);},'jwqQG':function(_0x54a5d0){return _0x54a5d0();},'txDKe':function(_0x41d49f,_0x1d78fa){return _0x41d49f!==_0x1d78fa;},'nGYgl':function(_0x4c1bf4,_0x520e4f){return _0x4c1bf4(_0x520e4f);},'LfybG':'master'},_0x2a1077=_0x254264||process[_0x3dcb29(0xb5)]['CLAUDE_SESSION_ID']||'';_0x2a1077&&_0x469396['UKQaK'](disableSession,_0x2a1077);const _0x49fa3e=_0x469396[_0x3dcb29(0xc0)](getCurrentBranch);_0x49fa3e&&_0x49fa3e!==_0x3dcb29(0xb3)&&_0x469396['txDKe'](_0x49fa3e,_0x3dcb29(0xc3))&&_0x469396[_0x3dcb29(0xc4)](disableBranch,_0x49fa3e),_0x469396[_0x3dcb29(0xbc)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x49fa3e&&_0x49fa3e!==_0x3dcb29(0xb3)&&_0x469396[_0x3dcb29(0xc1)](_0x49fa3e,_0x469396[_0x3dcb29(0xb6)])?_0x3dcb29(0xb7)+_0x49fa3e+'\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`.');}function _0x4567(){const _0x4b1582=['nGYgl','main','4045979saVaeY','env','LfybG','\x20and\x20branch\x20\x27','1029604LEcInz','2044432hvcteh','6274350xyhGJO','356458KRDLyv','UKQaK','3MlbLqW','30NZskAD','57012nubyGz','jwqQG','txDKe','4157256xgQZIN','master'];_0x4567=function(){return _0x4b1582;};return _0x4567();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x23bfa1,_0x143d0d){const _0x355ca1=_0x27da,_0xe8dacb=_0x23bfa1();while(!![]){try{const _0x27eb7a=parseInt(_0x355ca1(0x159))/0x1*(-parseInt(_0x355ca1(0x161))/0x2)+parseInt(_0x355ca1(0x14e))/0x3+-parseInt(_0x355ca1(0x14f))/0x4*(-parseInt(_0x355ca1(0x15d))/0x5)+-parseInt(_0x355ca1(0x157))/0x6*(-parseInt(_0x355ca1(0x163))/0x7)+parseInt(_0x355ca1(0x153))/0x8+-parseInt(_0x355ca1(0x162))/0x9*(-parseInt(_0x355ca1(0x164))/0xa)+-parseInt(_0x355ca1(0x151))/0xb;if(_0x27eb7a===_0x143d0d)break;else _0xe8dacb['push'](_0xe8dacb['shift']());}catch(_0x132d0b){_0xe8dacb['push'](_0xe8dacb['shift']());}}}(_0x391d,0xbe986));function _0x27da(_0x4f0f30,_0x52de2d){_0x4f0f30=_0x4f0f30-0x14e;const _0x391d1a=_0x391d();let _0x27dac1=_0x391d1a[_0x4f0f30];return _0x27dac1;}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';export async function enable(_0x1071d1){const _0x7d01b9=_0x27da,_0x197b5a={'UdXBT':function(_0x5613f7,_0x3bf94c){return _0x5613f7(_0x3bf94c);},'IeLzN':function(_0xb2c17f){return _0xb2c17f();},'AUvnb':_0x7d01b9(0x152),'Akulv':_0x7d01b9(0x150),'osnXR':function(_0xe968a5,_0xbbbb88){return _0xe968a5(_0xbbbb88);},'VkrlD':function(_0x1d3920){return _0x1d3920();}},_0x48169a=_0x1071d1||process['env'][_0x7d01b9(0x160)]||'',_0x4c318c=_0x197b5a['UdXBT'](Boolean,_0x1071d1),_0x2c9e91=await _0x197b5a[_0x7d01b9(0x156)](getToken);if(!_0x2c9e91){const _0x1d7d8c=_0x4c318c?_0x197b5a['AUvnb']:_0x197b5a[_0x7d01b9(0x15a)],_0x2d0077=_0x4c318c?_0x7d01b9(0x15f):_0x7d01b9(0x15b);_0x197b5a['osnXR'](printBlock,_0x7d01b9(0x158)+_0x1d7d8c+_0x7d01b9(0x165)+_0x2d0077);return;}try{await update();}catch{}_0x48169a&&enableSession(_0x48169a);const _0x51b40e=_0x197b5a[_0x7d01b9(0x155)](getCurrentBranch),_0x20ffdb=_0x51b40e&&_0x51b40e!=='main'&&_0x51b40e!=='master'?_0x7d01b9(0x154)+_0x51b40e+_0x7d01b9(0x15e):'',_0x11799b=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0x20ffdb+_0x7d01b9(0x15c)+_0x11799b+'\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`.');}function _0x391d(){const _0x28e409=['Akulv','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','452225KKQdGK','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','CLAUDE_SESSION_ID','2886228VcGICl','13302837NGCFUG','497NeGYRF','10KqJhjC','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','2055399UlNJgy','8JbfPMe','ranger\x20setup','16570125SyifZA','ranger\x20setup\x20--opencode','4426336FDCazD','\x0a\x0a**Branch\x20\x27','VkrlD','IeLzN','70374hygQBV','#\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`','1KZJKuA'];_0x391d=function(){return _0x28e409;};return _0x391d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39a52b,_0xba54d3){const _0x958815=_0x2526,_0x4cae21=_0x39a52b();while(!![]){try{const _0x243fd4=parseInt(_0x958815(0x9b))/0x1+parseInt(_0x958815(0x9a))/0x2+-parseInt(_0x958815(0x96))/0x3*(-parseInt(_0x958815(0x9f))/0x4)+parseInt(_0x958815(0x9c))/0x5+-parseInt(_0x958815(0x97))/0x6*(-parseInt(_0x958815(0x98))/0x7)+parseInt(_0x958815(0x9e))/0x8+-parseInt(_0x958815(0x99))/0x9;if(_0x243fd4===_0xba54d3)break;else _0x4cae21['push'](_0x4cae21['shift']());}catch(_0x36fa65){_0x4cae21['push'](_0x4cae21['shift']());}}}(_0x1dae,0xbb772));import{printBlock,getEnabledSessionId}from'./output.js';function _0x2526(_0x5b63b2,_0x25345e){_0x5b63b2=_0x5b63b2-0x96;const _0x1dae21=_0x1dae();let _0x252645=_0x1dae21[_0x5b63b2];return _0x252645;}function _0x1dae(){const _0x43c8af=['1210473KhmBVt','2395215pgTMZU','===\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===','9347608wwocok','37916facmHO','186aeVNmY','24DpHpjo','430507zZKjhy','38909268prbDeK','2798882NhyYTo'];_0x1dae=function(){return _0x43c8af;};return _0x1dae();}export async function exitPlanMode(_0x2fafe2){const _0x172235=_0x2526,_0x47730d=await getEnabledSessionId(_0x2fafe2);if(!_0x47730d)return;printBlock(_0x172235(0x9d));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37b453,_0x214786){var _0x5b8dd5=_0x8acb,_0x4c6950=_0x37b453();while(!![]){try{var _0x10dd1d=parseInt(_0x5b8dd5(0x113))/0x1+parseInt(_0x5b8dd5(0x114))/0x2*(-parseInt(_0x5b8dd5(0x112))/0x3)+parseInt(_0x5b8dd5(0x10d))/0x4*(-parseInt(_0x5b8dd5(0x117))/0x5)+-parseInt(_0x5b8dd5(0x10e))/0x6+parseInt(_0x5b8dd5(0x115))/0x7*(-parseInt(_0x5b8dd5(0x10f))/0x8)+-parseInt(_0x5b8dd5(0x116))/0x9+parseInt(_0x5b8dd5(0x111))/0xa*(parseInt(_0x5b8dd5(0x110))/0xb);if(_0x10dd1d===_0x214786)break;else _0x4c6950['push'](_0x4c6950['shift']());}catch(_0x4a54e6){_0x4c6950['push'](_0x4c6950['shift']());}}}(_0x3611,0x77b41));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x3611(){var _0x47c2e6=['324275mmxGiu','248594LVaaCf','1243837TGkAMc','6423876TlisZP','14585yrHdGo','1000UCuSag','4258704UMHHrd','16gsOzyU','77uaULKa','5063270cSRSIN','21kFzSlz'];_0x3611=function(){return _0x47c2e6;};return _0x3611();}function _0x8acb(_0x386ef9,_0x5ebc36){_0x386ef9=_0x386ef9-0x10d;var _0x361185=_0x3611();var _0x8acb33=_0x361185[_0x386ef9];return _0x8acb33;}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';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(_0x12d066,_0x51768e){const _0x13ffe5=_0x1176,_0x1a2c4b=_0x12d066();while(!![]){try{const _0x402ff6=-parseInt(_0x13ffe5(0xbb))/0x1*(parseInt(_0x13ffe5(0xba))/0x2)+-parseInt(_0x13ffe5(0xbc))/0x3*(-parseInt(_0x13ffe5(0xb9))/0x4)+-parseInt(_0x13ffe5(0xb7))/0x5+-parseInt(_0x13ffe5(0xb5))/0x6+parseInt(_0x13ffe5(0xbd))/0x7+-parseInt(_0x13ffe5(0xb8))/0x8*(parseInt(_0x13ffe5(0xb6))/0x9)+parseInt(_0x13ffe5(0xb2))/0xa;if(_0x402ff6===_0x51768e)break;else _0x1a2c4b['push'](_0x1a2c4b['shift']());}catch(_0x5b0c77){_0x1a2c4b['push'](_0x1a2c4b['shift']());}}}(_0x210c,0x37a1b));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x4b1d8f){console['log'](_0x4b1d8f);}export async function readHookInput(){const _0x342920=_0x1176;let _0xee3f54='';try{for await(const _0x565daa of process[_0x342920(0xb4)]){_0xee3f54+=_0x565daa;}}catch{return null;}if(!_0xee3f54['trim']())return null;try{return JSON['parse'](_0xee3f54);}catch{return null;}}function _0x1176(_0x392861,_0x301f10){_0x392861=_0x392861-0xb2;const _0x210cde=_0x210c();let _0x117685=_0x210cde[_0x392861];return _0x117685;}export async function getEnabledSessionId(_0x3cebfa){const _0x4cb44d=_0x1176,_0x17e02d={'ZlvrE':function(_0x3a5bdf,_0x1e1429){return _0x3a5bdf(_0x1e1429);},'NfLoa':function(_0x3d3790){return _0x3d3790();}};if(_0x3cebfa)return _0x17e02d[_0x4cb44d(0xbe)](isSessionEnabled,_0x3cebfa)?_0x3cebfa:null;const _0x26574b=await _0x17e02d['NfLoa'](readHookInput),_0x488521=_0x26574b?.['session_id'];if(!_0x488521||!isSessionEnabled(_0x488521))return null;return _0x488521;}export async function getEnabledHookContext(_0xad106a){const _0x513db5=_0x1176,_0x5a2ea7={'YWAZK':function(_0x4c0aff,_0x2d1ee4){return _0x4c0aff(_0x2d1ee4);},'uiyTm':function(_0x3df998){return _0x3df998();},'ThnWE':function(_0x4e7f38,_0x14334c){return _0x4e7f38(_0x14334c);}};if(_0xad106a){if(!_0x5a2ea7['YWAZK'](isSessionEnabled,_0xad106a))return null;return{'sessionId':_0xad106a,'input':{'session_id':_0xad106a}};}const _0x32432a=await _0x5a2ea7['uiyTm'](readHookInput),_0x29bf37=_0x32432a?.['session_id'];if(!_0x29bf37||!_0x5a2ea7[_0x513db5(0xb3)](isSessionEnabled,_0x29bf37))return null;return{'sessionId':_0x29bf37,'input':_0x32432a};}function _0x210c(){const _0x107b33=['172220eSXPPk','637050xQjUcZ','1uKUeLO','21ZZvYRo','2764916zzFicr','ZlvrE','6338940sDtsOv','ThnWE','stdin','1520148GusLhe','1767870HRkGUN','1670435XQYxSs','8VNmoCC'];_0x210c=function(){return _0x107b33;};return _0x210c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4483e4,_0x5e4d0f){const _0x2b06be=_0x49a7,_0x49f305=_0x4483e4();while(!![]){try{const _0x5e46d1=-parseInt(_0x2b06be(0x14b))/0x1*(-parseInt(_0x2b06be(0x14a))/0x2)+-parseInt(_0x2b06be(0x149))/0x3+-parseInt(_0x2b06be(0x148))/0x4+-parseInt(_0x2b06be(0x145))/0x5*(-parseInt(_0x2b06be(0x144))/0x6)+-parseInt(_0x2b06be(0x142))/0x7*(-parseInt(_0x2b06be(0x146))/0x8)+-parseInt(_0x2b06be(0x147))/0x9*(parseInt(_0x2b06be(0x141))/0xa)+parseInt(_0x2b06be(0x143))/0xb;if(_0x5e46d1===_0x5e4d0f)break;else _0x49f305['push'](_0x49f305['shift']());}catch(_0x313a37){_0x49f305['push'](_0x49f305['shift']());}}}(_0x5748,0xee3c7));import{printBlock,getEnabledHookContext}from'./output.js';function _0x49a7(_0x5c47e5,_0x299762){_0x5c47e5=_0x5c47e5-0x141;const _0x5748f7=_0x5748();let _0x49a794=_0x5748f7[_0x5c47e5];return _0x49a794;}function _0x5748(){const _0x3b6102=['29589EwqXmL','16738612XCEAXF','4497522dCjfxv','5bFkWrw','976ukdauN','9TqRfmx','4032328CTFFTK','1440207ZvbnwJ','725326WcKBPI','4kjzQLq','zXlhG','17736590UTdOoa'];_0x5748=function(){return _0x3b6102;};return _0x5748();}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x3cc724){const _0x18901f=_0x49a7,_0x3845ac={'zXlhG':function(_0x2fd2de,_0x4ce1e7){return _0x2fd2de(_0x4ce1e7);}},_0x26a03d=await _0x3845ac[_0x18901f(0x14c)](getEnabledHookContext,_0x3cc724);if(!_0x26a03d)return;if(_0x26a03d['input']['permission_mode']!=='plan')return;if(!_0x3845ac['zXlhG'](shouldShowPlanReminder,_0x26a03d['sessionId']))return;printBlock('===\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===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5ac165,_0x75e9c9){const _0x2885e5=_0x511b,_0x289197=_0x5ac165();while(!![]){try{const _0x592331=parseInt(_0x2885e5(0x12c))/0x1+parseInt(_0x2885e5(0x124))/0x2+parseInt(_0x2885e5(0x123))/0x3+parseInt(_0x2885e5(0x12b))/0x4*(-parseInt(_0x2885e5(0x125))/0x5)+parseInt(_0x2885e5(0x12a))/0x6+-parseInt(_0x2885e5(0x129))/0x7+-parseInt(_0x2885e5(0x128))/0x8;if(_0x592331===_0x75e9c9)break;else _0x289197['push'](_0x289197['shift']());}catch(_0x5b3e57){_0x289197['push'](_0x289197['shift']());}}}(_0x109a,0xa22de));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0xc4113c){const _0x59614e=_0x511b,_0x2ef6fd={'tieQf':function(_0x47ca09,_0x1c6599){return _0x47ca09(_0x1c6599);}},_0x28bbef=await _0x2ef6fd['tieQf'](getEnabledSessionId,_0xc4113c);if(!_0x28bbef)return;_0x2ef6fd[_0x59614e(0x127)](printBlock,_0x59614e(0x126));}function _0x511b(_0x33b339,_0x34682){_0x33b339=_0x33b339-0x123;const _0x109aad=_0x109a();let _0x511b60=_0x109aad[_0x33b339];return _0x511b60;}function _0x109a(){const _0x4cf0de=['9416SGCQNQ','1030663goJIYE','746925ilQxKC','1598408znfZQA','1225gJNfeJ','===\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===','tieQf','5339536RtDZfK','9171729eXXBKa','6839178Diskui'];_0x109a=function(){return _0x4cf0de;};return _0x109a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x50a6ba,_0x590d76){const _0xd374e=_0x283e,_0x36255e=_0x50a6ba();while(!![]){try{const _0x4cce81=parseInt(_0xd374e(0xeb))/0x1+parseInt(_0xd374e(0xe8))/0x2+-parseInt(_0xd374e(0xf4))/0x3*(-parseInt(_0xd374e(0xea))/0x4)+parseInt(_0xd374e(0xf6))/0x5*(-parseInt(_0xd374e(0xec))/0x6)+parseInt(_0xd374e(0xef))/0x7*(parseInt(_0xd374e(0xf5))/0x8)+-parseInt(_0xd374e(0xf1))/0x9*(-parseInt(_0xd374e(0xe9))/0xa)+parseInt(_0xd374e(0xee))/0xb*(-parseInt(_0xd374e(0xf3))/0xc);if(_0x4cce81===_0x590d76)break;else _0x36255e['push'](_0x36255e['shift']());}catch(_0x1fc303){_0x36255e['push'](_0x36255e['shift']());}}}(_0x1a96,0xe4a3d));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x1a96(){const _0x4b3cee=['5LBQyBV','ErtTP','846818GbtPOf','10ttVYuW','3675780qbwMko','863138ZMLWDV','8520810gxDTNp','eAekB','31540377gHcPnf','798cNIKwy','PostToolUse','16708113tWiAoI','IQdaE','12qYIaUZ','3qkjkOg','81544HwUiSP'];_0x1a96=function(){return _0x4b3cee;};return _0x1a96();}function _0x283e(_0x40d403,_0x362d0b){_0x40d403=_0x40d403-0xe7;const _0x1a9698=_0x1a96();let _0x283ece=_0x1a9698[_0x40d403];return _0x283ece;}export async function postEdit(_0xab165a){const _0x220342=_0x283e,_0x28a9c2={'IQdaE':function(_0x58c77a,_0x49f373){return _0x58c77a(_0x49f373);},'eAekB':function(_0x571499,_0xa45d86){return _0x571499(_0xa45d86);},'Dildg':function(_0x20b7be){return _0x20b7be();},'crkbk':function(_0x222352,_0x586b83){return _0x222352(_0x586b83);},'ErtTP':_0x220342(0xf0)},_0x3e21c5=await _0x28a9c2[_0x220342(0xf2)](getEnabledSessionId,_0xab165a);if(!_0x3e21c5)return;_0x28a9c2[_0x220342(0xed)](updateBranchTracking,_0x3e21c5);const _0x28fba1=await _0x28a9c2['Dildg'](getToken);if(!_0x28fba1)return;const _0x8cc836=_0x28a9c2['crkbk'](getSessionEntry,_0x3e21c5);if(_0x8cc836){const _0x666817={'hookSpecificOutput':{'hookEventName':_0x28a9c2[_0x220342(0xe7)],'additionalContext':'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).'}};console['log'](JSON['stringify'](_0x666817));return;}const _0x16c55a={'hookSpecificOutput':{'hookEventName':_0x28a9c2[_0x220342(0xe7)],'additionalContext':'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.'}};console['log'](JSON['stringify'](_0x16c55a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe32ec6,_0xcf1ed6){const _0x315eff=_0x65b8,_0x23baa1=_0xe32ec6();while(!![]){try{const _0x114b18=-parseInt(_0x315eff(0xd7))/0x1*(-parseInt(_0x315eff(0xd6))/0x2)+parseInt(_0x315eff(0xcf))/0x3*(-parseInt(_0x315eff(0xd8))/0x4)+parseInt(_0x315eff(0xd3))/0x5+-parseInt(_0x315eff(0xda))/0x6+parseInt(_0x315eff(0xd0))/0x7*(parseInt(_0x315eff(0xd2))/0x8)+parseInt(_0x315eff(0xd1))/0x9*(parseInt(_0x315eff(0xd4))/0xa)+-parseInt(_0x315eff(0xd9))/0xb;if(_0x114b18===_0xcf1ed6)break;else _0x23baa1['push'](_0x23baa1['shift']());}catch(_0x331c0c){_0x23baa1['push'](_0x23baa1['shift']());}}}(_0x5139,0xdae16));function _0x5139(){const _0x1b1dfd=['4MphfEw','14607274JaOwcF','8392668QwZlwu','3116517LWTtWw','6400198nrdNAG','8750817wPQwHq','8BfNnXE','6618750Ykbsnm','10AOjhPo','XHAie','4KVYEub','725854OyZXrd'];_0x5139=function(){return _0x1b1dfd;};return _0x5139();}function _0x65b8(_0x39d919,_0x743d70){_0x39d919=_0x39d919-0xcf;const _0x5139d0=_0x5139();let _0x65b83d=_0x5139d0[_0x39d919];return _0x65b83d;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x54348b){const _0x48d9a7=_0x65b8,_0x5c8d1c={'XHAie':function(_0x1d9aef,_0xdcbcc7){return _0x1d9aef(_0xdcbcc7);},'xaAhl':function(_0x8df653){return _0x8df653();}},_0x2c71cc=await _0x5c8d1c[_0x48d9a7(0xd5)](getEnabledSessionId,_0x54348b);if(!_0x2c71cc)return;try{const _0x2f46d6=await _0x5c8d1c['xaAhl'](getToken);if(!_0x2f46d6)return;_0x5c8d1c[_0x48d9a7(0xd5)](printBlock,'===\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`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb231bb,_0x2c61ed){const _0x1062bc=_0x2658,_0x40a4d3=_0xb231bb();while(!![]){try{const _0x3afc72=-parseInt(_0x1062bc(0x187))/0x1*(-parseInt(_0x1062bc(0x184))/0x2)+-parseInt(_0x1062bc(0x190))/0x3+-parseInt(_0x1062bc(0x18b))/0x4+parseInt(_0x1062bc(0x18a))/0x5*(-parseInt(_0x1062bc(0x18e))/0x6)+-parseInt(_0x1062bc(0x18f))/0x7*(parseInt(_0x1062bc(0x18c))/0x8)+-parseInt(_0x1062bc(0x18d))/0x9*(-parseInt(_0x1062bc(0x185))/0xa)+parseInt(_0x1062bc(0x189))/0xb*(parseInt(_0x1062bc(0x186))/0xc);if(_0x3afc72===_0x2c61ed)break;else _0x40a4d3['push'](_0x40a4d3['shift']());}catch(_0x17d951){_0x40a4d3['push'](_0x40a4d3['shift']());}}}(_0x457a,0x77df2));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x2658(_0x18ba1d,_0x1786df){_0x18ba1d=_0x18ba1d-0x183;const _0x457add=_0x457a();let _0x265887=_0x457add[_0x18ba1d];return _0x265887;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x27f756){const _0x526354=_0x2658,_0x2dee8c={'aNPFL':function(_0x3a0228){return _0x3a0228();}},_0x261f8b=process['env'][_0x526354(0x183)];let _0x29e98e=_0x27f756,_0x1c11e4;if(!_0x27f756){if(_0x261f8b&&!isSessionEnabled(_0x261f8b))return;const _0x4a7eee=await _0x2dee8c['aNPFL'](readHookInput);_0x29e98e=_0x4a7eee?.['session_id']||_0x261f8b,_0x1c11e4=_0x4a7eee?.['reason'];}if(!_0x29e98e)return;_0x1c11e4===_0x526354(0x188)&&recordEnabledSessionCleared(_0x29e98e);}function _0x457a(){const _0x5a8eca=['340zEksgK','342892yIAgga','472RLTqvb','9wATFip','30804HnMrIO','17899IVOZqi','95118uoyayz','CLAUDE_SESSION_ID','16GaNnhR','3175390nEAWYP','1445988oPiAkz','83795XiQEpq','clear','11RLYOOH'];_0x457a=function(){return _0x5a8eca;};return _0x457a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18c407=_0x3a78;(function(_0x81ea29,_0x363876){const _0x397696=_0x3a78,_0x1d8d53=_0x81ea29();while(!![]){try{const _0x2770aa=parseInt(_0x397696(0x15f))/0x1*(parseInt(_0x397696(0x161))/0x2)+-parseInt(_0x397696(0x159))/0x3+-parseInt(_0x397696(0x160))/0x4*(parseInt(_0x397696(0x15d))/0x5)+parseInt(_0x397696(0x154))/0x6*(-parseInt(_0x397696(0x168))/0x7)+parseInt(_0x397696(0x158))/0x8+parseInt(_0x397696(0x14d))/0x9*(parseInt(_0x397696(0x15e))/0xa)+parseInt(_0x397696(0x153))/0xb;if(_0x2770aa===_0x363876)break;else _0x1d8d53['push'](_0x1d8d53['shift']());}catch(_0x4a6f8e){_0x1d8d53['push'](_0x1d8d53['shift']());}}}(_0x1139,0x3b861));function _0x1139(){const _0x58b231=['success','5zjwLkD','10DEceoE','292531ELDoFh','1244588uozaGw','2DkqbQI','main','hook:session-start','master','CLAUDE_ENV_FILE','OpSEQ','SessionStart','1421EdONyl','14643lXiEoj','JKxCg','uVAEO','=================================================================\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=================================================================','stringify','export\x20CLAUDE_SESSION_ID=\x22','7030661iUSBig','10566wwlsqo','session_id','QBrku','log','3635704DnqklW','1425999GdIqdT','source','EoXAU'];_0x1139=function(){return _0x58b231;};return _0x1139();}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,enableSession,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';import{getToken}from'../utils/keychain.js';function _0x3a78(_0x5ba44f,_0x34f643){_0x5ba44f=_0x5ba44f-0x14d;const _0x113975=_0x1139();let _0x3a78e9=_0x113975[_0x5ba44f];return _0x3a78e9;}import{resolveHookMode}from'../utils/environment.js';const RANGER_AUTO_ENABLED_PROMPT=_0x18c407(0x150);export async function sessionStart(_0x936dea){const _0x35afc3=_0x18c407,_0x2fe914={'phQaW':function(_0x2b059c,_0x2e1827){return _0x2b059c||_0x2e1827;},'JKxCg':function(_0x51a174,_0x25d677){return _0x51a174&&_0x25d677;},'uVAEO':function(_0x378b58,_0x4db897,_0x21feea){return _0x378b58(_0x4db897,_0x21feea);},'OpSEQ':function(_0x266cbb,_0x15a902){return _0x266cbb(_0x15a902);},'EUTZi':function(_0x412407,_0x4f1925){return _0x412407===_0x4f1925;},'EoXAU':function(_0x4e9896){return _0x4e9896();},'pqfSj':function(_0x253aa3,_0x4d9b6e){return _0x253aa3(_0x4d9b6e);},'Sotzs':function(_0x25a478,_0x1701df){return _0x25a478!==_0x1701df;},'QBrku':_0x35afc3(0x162),'VStdo':_0x35afc3(0x167)};let _0x13c634=_0x2fe914['phQaW'](_0x936dea,''),_0x33f45c;if(!_0x936dea){let _0x6ac8b3='';for await(const _0x41fedc of process['stdin']){_0x6ac8b3+=_0x41fedc;}try{const _0x4650d3=JSON['parse'](_0x6ac8b3);_0x13c634=_0x4650d3[_0x35afc3(0x155)]||'',_0x33f45c=_0x4650d3[_0x35afc3(0x15a)];}catch{}const _0x115ab4=process['env'][_0x35afc3(0x165)];if(_0x2fe914[_0x35afc3(0x14e)](_0x115ab4,_0x13c634))try{await _0x2fe914[_0x35afc3(0x14f)](appendFile,_0x115ab4,_0x35afc3(0x152)+_0x13c634+'\x22\x0a');}catch{}}try{await getToken();}catch{}if(_0x13c634){shouldAutoEnableAfterClear(_0x33f45c)&&autoEnableAfterClear(_0x13c634);_0x2fe914['OpSEQ'](initBranchTracking,_0x13c634);_0x2fe914['EUTZi'](_0x2fe914['EoXAU'](resolveHookMode),'on')&&_0x2fe914[_0x35afc3(0x166)](enableSession,_0x13c634);const _0x41ad93=isSessionEnabled(_0x13c634);try{const _0x1a783d=_0x2fe914['pqfSj'](createTelemetryCollector,_0x35afc3(0x163));await _0x1a783d['trackCommandStart']({'sessionId':_0x13c634,'hooksEnabled':_0x41ad93}),await _0x1a783d['trackCommandEnd'](_0x35afc3(0x15c));}catch{}if(_0x41ad93){const _0x39962b=_0x2fe914[_0x35afc3(0x15b)](getCurrentBranch),_0x46b826=_0x39962b&&_0x2fe914['Sotzs'](_0x39962b,_0x2fe914[_0x35afc3(0x156)])&&_0x39962b!==_0x35afc3(0x164)?'\x20(Branch:\x20'+_0x39962b+')':'',_0x36cc26={'hookSpecificOutput':{'hookEventName':_0x2fe914['VStdo'],'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x46b826}};console[_0x35afc3(0x157)](JSON[_0x35afc3(0x151)](_0x36cc26));}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x285a2a,_0x37203b){const _0x1f4e76=_0x127a,_0x2003de=_0x285a2a();while(!![]){try{const _0x42a896=-parseInt(_0x1f4e76(0xbe))/0x1*(-parseInt(_0x1f4e76(0xc3))/0x2)+parseInt(_0x1f4e76(0xc6))/0x3*(parseInt(_0x1f4e76(0xcb))/0x4)+-parseInt(_0x1f4e76(0xbf))/0x5+parseInt(_0x1f4e76(0xb7))/0x6+-parseInt(_0x1f4e76(0xb2))/0x7+parseInt(_0x1f4e76(0xca))/0x8+parseInt(_0x1f4e76(0xc7))/0x9;if(_0x42a896===_0x37203b)break;else _0x2003de['push'](_0x2003de['shift']());}catch(_0x485e82){_0x2003de['push'](_0x2003de['shift']());}}}(_0x3f02,0xb849c));import{getToken}from'../utils/keychain.js';import{getFeature,concludeSession}from'../utils/featureApi.js';function _0x3f02(){const _0x5a3078=['Sjozn','hook:stop','3748398fiUlwN','closed','log','featureId','trackCommandStart','incomplete','biTai','1598oVawph','5057170CAtLiH','sessionId','verified','some','242CYagYN','filter','ZvVnC','6990cyBNKQ','7137009UiRbUm','checklistItems','HkUSx','9213064oyKplr','568ENZOIb','gXJQQ','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','success','9291149SrxssD','stringify','status'];_0x3f02=function(){return _0x5a3078;};return _0x3f02();}import{getSessionEntry,shouldShowStopReminder}from'../utils/sessionCache.js';function _0x127a(_0x28161b,_0x280eb3){_0x28161b=_0x28161b-0xb1;const _0x3f02ac=_0x3f02();let _0x127a1d=_0x3f02ac[_0x28161b];return _0x127a1d;}import{getEnabledHookContext}from'./output.js';import{createTelemetryCollector}from'../utils/telemetry.js';export async function stopHook(_0x381103){const _0x3341bb=_0x127a,_0x29d15c={'gXJQQ':function(_0x2fab26,_0x4c7842){return _0x2fab26(_0x4c7842);},'biTai':function(_0x5cd3d3,_0x1f984d,_0x2d43c3,_0x38e2af){return _0x5cd3d3(_0x1f984d,_0x2d43c3,_0x38e2af);},'HkUSx':function(_0x337d4a,_0x37e7de){return _0x337d4a(_0x37e7de);},'ZvVnC':function(_0x3921f5,_0xcf280b){return _0x3921f5&&_0xcf280b;},'Sjozn':'Stop'},_0x65dbc9=await _0x29d15c[_0x3341bb(0xcc)](getEnabledHookContext,_0x381103),_0x508fa6=_0x65dbc9?.['sessionId']??null;let _0xb00f57=!![];if(!_0x508fa6){await _0x29d15c[_0x3341bb(0xbd)](trackStop,_0x508fa6,![],_0xb00f57);return;}try{const _0x44cfbf=getSessionEntry(_0x508fa6);if(!_0x44cfbf){await trackStop(_0x508fa6,!![],_0xb00f57);return;}const _0xd0ae54=await getToken(),_0x3f0700='https://dashboard.ranger.net/features/'+_0x44cfbf['featureId'];let _0x2bf9b1=null,_0x2d9cb6=![],_0x344179=![];if(_0xd0ae54)try{const _0xdeff53=await _0x29d15c[_0x3341bb(0xc9)](getFeature,_0x44cfbf['featureId']);_0x2bf9b1=_0xdeff53['currentSessionId']??null;const _0x8a405f=_0xdeff53[_0x3341bb(0xc8)][_0x3341bb(0xc4)](_0x88e491=>_0x88e491[_0x3341bb(0xc0)]===_0x2bf9b1);_0x2d9cb6=_0x8a405f[_0x3341bb(0xc2)](_0x30c7af=>_0x30c7af['status']!==_0x3341bb(0xc1)&&_0x30c7af[_0x3341bb(0xb4)]!=='blocked'&&_0x30c7af[_0x3341bb(0xb4)]!==_0x3341bb(0xb8)&&_0x30c7af[_0x3341bb(0xb4)]!==_0x3341bb(0xbc)),_0x344179=_0x8a405f['some'](_0x35a4c5=>_0x35a4c5['status']==='verification_in_progress');}catch{}if(_0x29d15c[_0x3341bb(0xc5)](_0xd0ae54,_0x2bf9b1)&&_0x2d9cb6){if(!_0x344179&&shouldShowStopReminder(_0x508fa6)){const _0x193457={'hookSpecificOutput':{'hookEventName':_0x29d15c[_0x3341bb(0xb5)],'additionalContext':_0x3341bb(0xcd)+_0x3f0700}};console[_0x3341bb(0xb9)](JSON[_0x3341bb(0xb3)](_0x193457));}}if(_0xd0ae54&&_0x2bf9b1&&!_0x2d9cb6)try{await concludeSession(_0x44cfbf[_0x3341bb(0xba)],_0x2bf9b1);}catch{}await trackStop(_0x508fa6,!![],_0xb00f57);return;}catch{await trackStop(_0x508fa6,!![],_0xb00f57);return;}}async function trackStop(_0x37a76e,_0xc953c,_0xd43fb0){const _0x5c5403=_0x127a;try{const _0xa0edf3=createTelemetryCollector(_0x5c5403(0xb6));await _0xa0edf3[_0x5c5403(0xbb)]({'sessionId':_0x37a76e??undefined,'hooksEnabled':_0xc953c,'stopAllowed':_0xd43fb0}),await _0xa0edf3['trackCommandEnd'](_0x5c5403(0xb1));}catch{}}
|
package/build/commands/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x16ed82,_0x77a051){var _0x29805d=_0x1c41,_0x202ba1=_0x16ed82();while(!![]){try{var _0x365343=parseInt(_0x29805d(0x182))/0x1+parseInt(_0x29805d(0x184))/0x2*(-parseInt(_0x29805d(0x185))/0x3)+-parseInt(_0x29805d(0x189))/0x4*(-parseInt(_0x29805d(0x181))/0x5)+parseInt(_0x29805d(0x18a))/0x6+parseInt(_0x29805d(0x188))/0x7+parseInt(_0x29805d(0x187))/0x8+-parseInt(_0x29805d(0x183))/0x9*(parseInt(_0x29805d(0x186))/0xa);if(_0x365343===_0x77a051)break;else _0x202ba1['push'](_0x202ba1['shift']());}catch(_0xa854b9){_0x202ba1['push'](_0x202ba1['shift']());}}}(_0x4892,0xcbe5b));export{addEnv}from'./addEnv.js';export{clean}from'./clean.js';export{login}from'./login.js';function _0x1c41(_0x4607e8,_0x5f48ea){_0x4607e8=_0x4607e8-0x181;var _0x48923a=_0x4892();var _0x1c4158=_0x48923a[_0x4607e8];return _0x1c4158;}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';export{setupCi}from'./setupCi.js';export{migrateProfile}from'./migrateProfile.js';function _0x4892(){var _0xddd640=['10882464XuWueT','5006771XJiLCT','596QaIoCP','9237408kDCRqA','7930wNwYZm','742334FtAqru','369QmxOIE','2kiSIel','2709753GAbmIY','696430tKVJPq'];_0x4892=function(){return _0xddd640;};return _0x4892();}
|