@ranger-testing/ranger-cli 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5b3cbd=_0x14bf;(function(_0x4f1e91,_0x1b1699){const _0x292711=_0x14bf,_0x4135fe=_0x4f1e91();while(!![]){try{const _0x462a4b=-parseInt(_0x292711(0x175))/0x1*(parseInt(_0x292711(0x177))/0x2)+-parseInt(_0x292711(0x174))/0x3*(-parseInt(_0x292711(0x17e))/0x4)+-parseInt(_0x292711(0x17b))/0x5+parseInt(_0x292711(0x178))/0x6+parseInt(_0x292711(0x181))/0x7*(-parseInt(_0x292711(0x185))/0x8)+parseInt(_0x292711(0x18a))/0x9*(parseInt(_0x292711(0x17f))/0xa)+-parseInt(_0x292711(0x17d))/0xb*(-parseInt(_0x292711(0x18f))/0xc);if(_0x462a4b===_0x1b1699)break;else _0x4135fe['push'](_0x4135fe['shift']());}catch(_0x643db5){_0x4135fe['push'](_0x4135fe['shift']());}}}(_0x125a,0x3488a));import{readdir,stat}from'fs/promises';function _0x125a(){const _0x547c8e=['isDirectory','7LuTaag','includes','\x0aProfiles:','settings.json','1521560JgPjUv','CBTpd','ZGwTO','local','bug-bashes','9eDAvOF','baseUrl','NVclV','sessions','environmentDetails','36ffgCxO','hFvHa','OGRFO','length','126354zsMvXL','1TUGWea','log','494152KEhnht','1290618MEibIC','LhBNF','\x20\x20\x20\x20\x20\x20URL:\x20','1197140SOYofb','push','74701YjahPt','24ZNkbWy','4036930BtVVzd'];_0x125a=function(){return _0x547c8e;};return _0x125a();}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x5b3cbd(0x18d),_0x5b3cbd(0x189),'reports','local','ci'];function _0x14bf(_0x68102c,_0x4216ca){_0x68102c=_0x68102c-0x172;const _0x125a8d=_0x125a();let _0x14bff7=_0x125a8d[_0x68102c];return _0x14bff7;}export async function getEnvNames(){const _0x2ab260=_0x5b3cbd,_0x181286={'MSnvP':function(_0x523cdf){return _0x523cdf();},'OGRFO':function(_0x5e526e,_0x22b9c8){return _0x5e526e(_0x22b9c8);},'IhwyX':function(_0x281965,_0x1b1f2e,_0x5e2abb){return _0x281965(_0x1b1f2e,_0x5e2abb);},'CBTpd':function(_0xb18477,_0x2397e6){return _0xb18477(_0x2397e6);},'LhBNF':function(_0x412f4c,_0x5be567){return _0x412f4c(_0x5be567);},'FUboj':_0x2ab260(0x184)},_0x507ad5=_0x181286['MSnvP'](getRangerDir);if(!_0x181286[_0x2ab260(0x172)](existsSync,_0x507ad5))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x37c915=await _0x181286['MSnvP'](readActiveProfileName),_0x1c3c4d=[],_0x5ef449={},_0x10eead=join(_0x507ad5,_0x2ab260(0x188));if(_0x181286[_0x2ab260(0x172)](existsSync,_0x10eead)){const _0x4f5961=await readdir(_0x10eead);for(const _0x2fcef2 of _0x4f5961){const _0x3dbe69=_0x181286['IhwyX'](join,_0x10eead,_0x2fcef2),_0x3cfcdf=await stat(_0x3dbe69);_0x3cfcdf['isDirectory']()&&(_0x1c3c4d[_0x2ab260(0x17c)](_0x2fcef2),_0x5ef449[_0x2fcef2]='local');}}const _0x5145b6=_0x181286['IhwyX'](join,_0x507ad5,'ci');if(_0x181286['OGRFO'](existsSync,_0x5145b6)){const _0x42e2d2=await readdir(_0x5145b6);for(const _0x2f50cb of _0x42e2d2){const _0x2748a4=_0x181286['IhwyX'](join,_0x5145b6,_0x2f50cb),_0x381fe4=await _0x181286['OGRFO'](stat,_0x2748a4);_0x381fe4[_0x2ab260(0x180)]()&&(_0x1c3c4d['push'](_0x2f50cb),_0x5ef449[_0x2f50cb]='ci');}}const _0x367831=await _0x181286[_0x2ab260(0x186)](readdir,_0x507ad5);for(const _0x1f3d95 of _0x367831){if(NON_ENV_DIRS['includes'](_0x1f3d95))continue;if(_0x1f3d95['startsWith']('.'))continue;if(_0x1f3d95['endsWith']('.txt'))continue;const _0x1091fb=join(_0x507ad5,_0x1f3d95),_0x586bd3=await _0x181286[_0x2ab260(0x179)](stat,_0x1091fb);_0x586bd3['isDirectory']()&&existsSync(join(_0x1091fb,_0x181286['FUboj']))&&(!_0x1c3c4d[_0x2ab260(0x182)](_0x1f3d95)&&(_0x1c3c4d['push'](_0x1f3d95),_0x5ef449[_0x1f3d95]='legacy'));}return{'envNames':_0x1c3c4d,'activeEnv':_0x37c915,'envTypes':_0x5ef449};}export async function envList(){const _0xb636f0=_0x5b3cbd,_0x4bc95f={'qcDPI':function(_0x10f622,_0x58b727){return _0x10f622===_0x58b727;},'ZGwTO':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','hFvHa':_0xb636f0(0x183),'Ptfng':_0xb636f0(0x188),'NVclV':function(_0x590db7,_0x4cad81){return _0x590db7===_0x4cad81;}},{envNames:_0xc379ba,activeEnv:_0x5919b9,envTypes:_0x40f837}=await getEnvNames();if(_0x4bc95f['qcDPI'](_0xc379ba[_0xb636f0(0x173)],0x0)){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x4bc95f[_0xb636f0(0x187)]);return;}console[_0xb636f0(0x176)](_0x4bc95f[_0xb636f0(0x190)]);for(const _0x46bad3 of _0xc379ba['sort']()){const _0x59ad91=_0x46bad3===_0x5919b9,_0x3cc6f2=_0x40f837[_0x46bad3]||_0x4bc95f['Ptfng'],_0x13a837=await loadSettings(_0x46bad3),_0xa8f966=_0x4bc95f[_0xb636f0(0x18c)](_0x3cc6f2,'legacy')?'':'\x20['+_0x3cc6f2+']';console[_0xb636f0(0x176)]('\x20\x20'+(_0x59ad91?'*\x20':'\x20\x20')+_0x46bad3+_0xa8f966),_0x13a837['baseUrl']&&console['log'](_0xb636f0(0x17a)+_0x13a837[_0xb636f0(0x18b)]),_0x13a837[_0xb636f0(0x18e)]&&console[_0xb636f0(0x176)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x13a837['environmentDetails']);}_0x5919b9&&console['log']('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2f0c7d=_0x12a8;(function(_0x47b112,_0x299fcc){const _0x599db9=_0x12a8,_0x47ada7=_0x47b112();while(!![]){try{const _0x1757f6=-parseInt(_0x599db9(0xfa))/0x1*(-parseInt(_0x599db9(0x137))/0x2)+-parseInt(_0x599db9(0x190))/0x3+-parseInt(_0x599db9(0x131))/0x4*(parseInt(_0x599db9(0x125))/0x5)+parseInt(_0x599db9(0x12e))/0x6*(parseInt(_0x599db9(0xea))/0x7)+parseInt(_0x599db9(0x18e))/0x8+parseInt(_0x599db9(0x10c))/0x9*(parseInt(_0x599db9(0xd5))/0xa)+-parseInt(_0x599db9(0x177))/0xb;if(_0x1757f6===_0x299fcc)break;else _0x47ada7['push'](_0x47ada7['shift']());}catch(_0x4edf74){_0x47ada7['push'](_0x47ada7['shift']());}}}(_0x5917,0x9c6a1));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x24aae8 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x23ee6c=>'\x1b[1m'+_0x23ee6c+_0x2f0c7d(0x124);function getGitRepoUrl(){const _0x126701=_0x2f0c7d,_0x10e696={'ybPLl':function(_0x19ce02,_0x4a16a6,_0x16bf7b){return _0x19ce02(_0x4a16a6,_0x16bf7b);},'qCRZm':'git\x20remote\x20get-url\x20origin','wqnsF':'pipe'};try{const _0x46c02d=_0x10e696['ybPLl'](execSync,_0x10e696[_0x126701(0x12b)],{'encoding':'utf-8','stdio':[_0x10e696['wqnsF'],'pipe','pipe']})['trim']();return _0x46c02d[_0x126701(0x140)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x126701(0x13f))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x3b7e62=_0x2f0c7d,_0x1cd196={'tKpUp':_0x3b7e62(0x117),'yQGFx':_0x3b7e62(0x123)};try{return execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x1cd196[_0x3b7e62(0x168)],'stdio':[_0x1cd196['yQGFx'],_0x1cd196[_0x3b7e62(0x151)],'pipe']})[_0x3b7e62(0xff)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x197c9b=_0x2f0c7d,_0x36c4a2={'zEscz':function(_0xe523b0,_0x311650,_0xa5643){return _0xe523b0(_0x311650,_0xa5643);},'iQNdQ':function(_0x47fd60,_0x4c0a79){return _0x47fd60(_0x4c0a79);}},_0x6b9efa=_0x36c4a2[_0x197c9b(0x11a)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x36c4a2['iQNdQ'](existsSync,_0x6b9efa))return null;try{const _0x4294fd=await _0x36c4a2['zEscz'](readFile,_0x6b9efa,_0x197c9b(0x117));return _0x4294fd[_0x197c9b(0xff)]()||null;}catch{return null;}}function _0x12a8(_0x46fa5c,_0x2b7118){_0x46fa5c=_0x46fa5c-0xc5;const _0x5917c4=_0x5917();let _0x12a858=_0x5917c4[_0x46fa5c];return _0x12a858;}async function setActiveFeatureId(_0x212d36){const _0x4c9d0b=_0x2f0c7d,_0x5e87e2={'LpPif':function(_0x5a1177){return _0x5a1177();},'WCKen':function(_0xaf23ce,_0x155800,_0x5ed765){return _0xaf23ce(_0x155800,_0x5ed765);},'qYRCe':function(_0x50e22c,_0x43cd51){return _0x50e22c(_0x43cd51);},'RUjCs':_0x4c9d0b(0x117)},_0x4e0235=_0x5e87e2['LpPif'](getRangerDir),_0x4dc247=_0x5e87e2['WCKen'](join,_0x4e0235,ACTIVE_FEATURE_FILE);!_0x5e87e2[_0x4c9d0b(0xda)](existsSync,_0x4e0235)&&await mkdir(_0x4e0235,{'recursive':!![]}),await writeFile(_0x4dc247,_0x212d36,_0x5e87e2['RUjCs']);}function getProgressDisplay(_0x24d513){const _0x4a6794=_0x2f0c7d,_0x375c8b={'LcmjG':function(_0x46df97,_0x157b0e){return _0x46df97+_0x157b0e;},'zfzhL':function(_0xac84aa,_0x57e087){return _0xac84aa+_0x57e087;},'nsgtC':function(_0x155305,_0x23b3b5){return _0x155305+_0x23b3b5;},'xTYNi':function(_0x3ee5fa,_0x26530f){return _0x3ee5fa-_0x26530f;},'vRtfZ':function(_0x51323c,_0x45fc2d){return _0x51323c>_0x45fc2d;},'dfGEo':function(_0x2b87a4,_0x1f62f3){return _0x2b87a4>_0x1f62f3;}},_0x544022=_0x24d513['verifiedItems']||0x0,_0x18b572=_0x24d513[_0x4a6794(0x10b)]||0x0,_0x55c4db=_0x24d513['blockedItems']||0x0,_0x5a7478=_0x24d513['incompleteItems']||0x0,_0x35bcdd=_0x24d513['pendingItems']||0x0,_0x56e0e7=_0x375c8b['LcmjG'](_0x375c8b[_0x4a6794(0x10f)](_0x375c8b[_0x4a6794(0x181)](_0x375c8b[_0x4a6794(0xd8)](_0x544022,_0x18b572),_0x55c4db),_0x5a7478),_0x35bcdd);if(_0x56e0e7===0x0)return'-';const _0x4d62bb=0xa,_0x8d9180=Math[_0x4a6794(0x18d)](_0x544022/_0x56e0e7*_0x4d62bb),_0x2262b2='█'['repeat'](_0x8d9180)+'░'[_0x4a6794(0x132)](_0x375c8b[_0x4a6794(0x18c)](_0x4d62bb,_0x8d9180)),_0x5f4ecc=[];if(_0x375c8b[_0x4a6794(0x153)](_0x55c4db,0x0))_0x5f4ecc['push'](_0x55c4db+_0x4a6794(0xe4));if(_0x375c8b['dfGEo'](_0x5a7478,0x0))_0x5f4ecc[_0x4a6794(0x11d)](_0x5a7478+'\x20incomplete');if(_0x18b572>0x0)_0x5f4ecc[_0x4a6794(0x11d)](_0x18b572+_0x4a6794(0xf8));const _0x7fd044=_0x375c8b[_0x4a6794(0xfb)](_0x5f4ecc[_0x4a6794(0xcd)],0x0)?'\x20('+_0x5f4ecc['join'](',\x20')+')':'';return _0x2262b2+'\x20'+_0x544022+'/'+_0x56e0e7+'\x20verified'+_0x7fd044;}function getCurrentSessionItems(_0x2b41ee,_0x423d9a){const _0x3094ba=_0x2f0c7d;if(!_0x2b41ee['currentSessionId'])return _0x423d9a[_0x3094ba(0x16f)](_0x25fb1b=>!_0x25fb1b['sessionId'])[_0x3094ba(0xfe)]((_0x1a268c,_0x211443)=>_0x1a268c[_0x3094ba(0x10d)]-_0x211443[_0x3094ba(0x10d)]);return _0x423d9a['filter'](_0x766bef=>_0x766bef['sessionId']===_0x2b41ee[_0x3094ba(0xe3)]||!_0x766bef['sessionId'])[_0x3094ba(0xfe)]((_0x9512f7,_0x441270)=>_0x9512f7['position']-_0x441270[_0x3094ba(0x10d)]);}function displayFeature(_0x8f3642,_0xef9356){const _0x1d4ee3=_0x2f0c7d,_0x11eb0b={'hVwiM':function(_0x369514,_0x24608f){return _0x369514(_0x24608f);},'pbOTp':function(_0x2d8f9a,_0xc81a4f){return _0x2d8f9a>_0xc81a4f;},'CzNiR':function(_0x527acb,_0x37f148){return _0x527acb<_0x37f148;},'YKDvU':function(_0x4dc30f,_0x546814){return _0x4dc30f===_0x546814;},'cWIDJ':'approved','muUKs':function(_0x2038d9,_0x433ae7){return _0x2038d9===_0x433ae7;},'PwPjy':'verified','vMIoa':function(_0x49a276,_0x3f965e){return _0x49a276===_0x3f965e;},'mMDWH':_0x1d4ee3(0x166),'hObLo':function(_0x18550d,_0x3528ae){return _0x18550d>_0x3528ae;},'Fazah':function(_0x2227b0,_0x1f341d){return _0x2227b0!==_0x1f341d;},'FAsoF':function(_0x535f6f,_0x6dcd1a){return _0x535f6f+_0x6dcd1a;},'ARoDf':function(_0x50e7d3,_0x493304){return _0x50e7d3===_0x493304;},'YSwQF':'closed'};console['log']('\x0a'+_0x8f3642[_0x1d4ee3(0x17f)]+'\x20('+_0x8f3642['dashboardUrl']+')');_0x8f3642['stats']&&console['log'](_0x1d4ee3(0xcc)+_0x11eb0b[_0x1d4ee3(0x144)](getProgressDisplay,_0x8f3642[_0x1d4ee3(0x118)]));_0x8f3642[_0x1d4ee3(0x18a)]&&console['log']('\x20\x20\x20Description:\x20'+_0x8f3642['description']);_0x8f3642[_0x1d4ee3(0xc7)]&&console['log'](_0x1d4ee3(0x14c)+_0x8f3642['gitRepoUrl']);_0x8f3642[_0x1d4ee3(0x139)]&&console[_0x1d4ee3(0x152)](_0x1d4ee3(0xc8)+_0x8f3642[_0x1d4ee3(0x139)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x8f3642['createdAt'])[_0x1d4ee3(0x113)]());_0x8f3642['completedAt']&&console[_0x1d4ee3(0x152)]('\x20\x20\x20Completed:\x20'+new Date(_0x8f3642['completedAt'])['toLocaleString']());if(_0xef9356&&_0x11eb0b['pbOTp'](_0xef9356[_0x1d4ee3(0xcd)],0x0)){console[_0x1d4ee3(0x152)]('\x0a\x20\x20\x20Scenarios:');for(let _0x3d145e=0x0;_0x11eb0b[_0x1d4ee3(0xcb)](_0x3d145e,_0xef9356['length']);_0x3d145e++){const _0x7f4d7c=_0xef9356[_0x3d145e];let _0x418e07;if(_0x11eb0b[_0x1d4ee3(0x127)](_0x7f4d7c[_0x1d4ee3(0x14d)],'closed')&&_0x11eb0b[_0x1d4ee3(0x127)](_0x7f4d7c['terminalReason'],_0x11eb0b['cWIDJ']))_0x418e07='✅';else{if(_0x11eb0b['muUKs'](_0x7f4d7c['status'],_0x11eb0b['PwPjy']))_0x418e07='🟢';else{if(_0x7f4d7c['status']==='incomplete')_0x418e07='🟠';else{if(_0x11eb0b[_0x1d4ee3(0x120)](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x11eb0b['mMDWH']))_0x418e07='🛑';else{if(_0x7f4d7c[_0x1d4ee3(0x14d)]==='closed')_0x418e07='⛔';else _0x7f4d7c['status']==='verification_in_progress'?_0x418e07='⏳':_0x418e07='⬜';}}}}const _0x1b7070=_0x11eb0b[_0x1d4ee3(0xd1)](_0x7f4d7c['version'],0x1)?_0x1d4ee3(0x170)+_0x7f4d7c['version']+')':'',_0x3f8063=_0x11eb0b[_0x1d4ee3(0x112)](_0x7f4d7c['version'],0x1)&&_0x7f4d7c['parentItemId']&&_0x11eb0b['Fazah'](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x1d4ee3(0xdb))&&_0x7f4d7c['status']!=='verified'?_0x1d4ee3(0x14e):'';console[_0x1d4ee3(0x152)](_0x1d4ee3(0x157)+_0x11eb0b['FAsoF'](_0x3d145e,0x1)+'.\x20'+_0x418e07+'\x20'+_0x7f4d7c[_0x1d4ee3(0x18a)]+_0x1b7070+_0x3f8063);_0x11eb0b[_0x1d4ee3(0xce)](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x1d4ee3(0x166))&&_0x7f4d7c[_0x1d4ee3(0x138)]&&console['log'](_0x1d4ee3(0x178)+_0x7f4d7c[_0x1d4ee3(0x138)]);_0x7f4d7c['status']===_0x1d4ee3(0x193)&&_0x7f4d7c['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x7f4d7c[_0x1d4ee3(0xe6)]);if(_0x11eb0b['ARoDf'](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x11eb0b['YSwQF'])&&_0x7f4d7c[_0x1d4ee3(0x12f)]===_0x11eb0b['cWIDJ'])console['log'](_0x1d4ee3(0x14b));else _0x7f4d7c[_0x1d4ee3(0x14d)]===_0x11eb0b['YSwQF']&&_0x7f4d7c['canceledReason']&&console['log'](_0x1d4ee3(0x158)+_0x7f4d7c['canceledReason']);}}}export async function featureCreate(_0xd2aad9,_0x3cd9ff){const _0x4ebf6a=_0x2f0c7d,_0x29bf27={'SGScO':function(_0x5d62c7){return _0x5d62c7();},'NCjoF':function(_0x286ca1,_0x520f06){return _0x286ca1(_0x520f06);},'OfVxC':function(_0x442b73,_0x316d7f,_0x36f127){return _0x442b73(_0x316d7f,_0x36f127);}},{envNames:_0x5e5fca}=await _0x29bf27[_0x4ebf6a(0x159)](getEnvNames);_0x5e5fca['length']===0x0&&console['warn']('\x0a'+_0x29bf27['NCjoF'](formatProfileRequiredMessage,_0x3a3c92=>bold(_0x3a3c92)));const _0x16a9ed=_0x3cd9ff['scenarios']?_0x3cd9ff['scenarios'][_0x4ebf6a(0x187)](_0x262ff1=>_0x262ff1['trim']()):[],_0x2f46e0=_0x29bf27[_0x4ebf6a(0x159)](getGitRepoUrl),_0xe697a9=getGitBranch();console['log'](_0x4ebf6a(0xf1));const _0x8db63e=await createFeature({'name':_0xd2aad9,'description':_0x3cd9ff['description'],'checklist':_0x16a9ed,'gitRepoUrl':_0x2f46e0,'gitBranch':_0xe697a9});await _0x29bf27['NCjoF'](setActiveFeatureId,_0x8db63e['id']),await tryStartCurrentSession(_0x8db63e['id']);const _0x2e14ae=process['env']['CLAUDE_SESSION_ID'];_0x2e14ae&®isterSession(_0x2e14ae,_0x8db63e['id']),console[_0x4ebf6a(0x152)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x8db63e['id']),_0x29bf27['OfVxC'](displayFeature,_0x8db63e,_0x8db63e['checklistItems']),console[_0x4ebf6a(0x152)](_0x4ebf6a(0x101));}export async function featureList(_0x51648f){const _0x1b25ae=_0x2f0c7d,_0x3c35a4={'JXrCw':function(_0x3ddd25,_0xcac36f){return _0x3ddd25(_0xcac36f);},'AKqcI':'\x0aNo\x20feature\x20reviews\x20found.','ETajM':function(_0x2034a3,_0x1980f5){return _0x2034a3(_0x1980f5);},'PRJTe':function(_0x3a3438,_0x26048d){return _0x3a3438+_0x26048d;},'skIXi':function(_0x21ee7b,_0x2f839c){return _0x21ee7b!==_0x2f839c;},'LoXpt':'\x20--include-deleted'},_0x3620d7={'limit':_0x51648f[_0x1b25ae(0x10a)]??0xa,'offset':_0x51648f['offset']??0x0,'includeDeleted':_0x51648f['includeDeleted']};_0x51648f[_0x1b25ae(0x194)]&&(_0x3620d7['gitRepoUrl']=getGitRepoUrl(),_0x3620d7['gitBranch']=getGitBranch());const _0x14b213=await _0x3c35a4[_0x1b25ae(0x162)](listFeatures,_0x3620d7);if(_0x14b213['items']['length']===0x0){console[_0x1b25ae(0x152)](_0x3c35a4['AKqcI']);return;}const _0x403d1f=_0x14b213['totalCount']>_0x14b213['items']['length']?'Showing\x20'+_0x14b213['items'][_0x1b25ae(0xcd)]+_0x1b25ae(0x156)+_0x14b213['totalCount']:_0x14b213['totalCount']+_0x1b25ae(0x135);console[_0x1b25ae(0x152)]('\x0a'+_0x403d1f+':\x0a');for(const _0x4d89ef of _0x14b213[_0x1b25ae(0x14a)]){const _0x87ebe7='3|1|2|4|0|5'[_0x1b25ae(0xd7)]('|');let _0x2f6e1a=0x0;while(!![]){switch(_0x87ebe7[_0x2f6e1a++]){case'0':console['log'](_0x1b25ae(0x111)+new Date(_0x4d89ef[_0x1b25ae(0xe9)])[_0x1b25ae(0xf5)]());continue;case'1':console['log'](_0x1b25ae(0xec)+_0x4d89ef['id']);continue;case'2':_0x4d89ef[_0x1b25ae(0x118)]&&console['log'](_0x1b25ae(0xcc)+_0x3c35a4['ETajM'](getProgressDisplay,_0x4d89ef[_0x1b25ae(0x118)]));continue;case'3':console['log'](''+_0x4d89ef['name']);continue;case'4':_0x4d89ef[_0x1b25ae(0x139)]&&console[_0x1b25ae(0x152)](_0x1b25ae(0xc8)+_0x4d89ef[_0x1b25ae(0x139)]);continue;case'5':console[_0x1b25ae(0x152)]('');continue;}break;}}const _0x363ef1=_0x3620d7[_0x1b25ae(0x10a)]??0xa,_0x4a123c=_0x3c35a4['PRJTe'](_0x3620d7[_0x1b25ae(0x102)]??0x0,_0x14b213[_0x1b25ae(0x14a)][_0x1b25ae(0xcd)]);if(_0x4a123c<_0x14b213[_0x1b25ae(0x11b)]){const _0x47cd8b=_0x3c35a4[_0x1b25ae(0x12a)](_0x363ef1,0xa)?'\x20--limit\x20'+_0x363ef1:'',_0x721a0f=_0x51648f[_0x1b25ae(0x194)]?_0x1b25ae(0x179):'',_0xc0a582=_0x51648f[_0x1b25ae(0xeb)]?_0x3c35a4['LoXpt']:'';console['log'](_0x1b25ae(0x122)+_0x4a123c+_0x47cd8b+_0x721a0f+_0xc0a582);}}export async function featureShow(_0x251b4e){const _0x4af10e=_0x2f0c7d,_0xde8bab={'PjmHk':_0x4af10e(0x173),'HLWoP':function(_0x22433c,_0x4048a9){return _0x22433c(_0x4048a9);}},_0x3515a6=_0x251b4e||await getActiveFeatureId();if(!_0x3515a6)throw new Error(_0xde8bab[_0x4af10e(0x141)]);const _0x43e1b6=await _0xde8bab['HLWoP'](getFeature,_0x3515a6);displayFeature(_0x43e1b6,_0x43e1b6['checklistItems']);}export async function featureResume(_0x2ee4e8){const _0x223520=_0x2f0c7d,_0x36bdf5={'hpfyS':function(_0x541fe9,_0x4b7950){return _0x541fe9(_0x4b7950);},'EWmcP':function(_0x577c54){return _0x577c54();},'LpJny':function(_0xb45bf8,_0x54a21a,_0x259653){return _0xb45bf8(_0x54a21a,_0x259653);},'WeXdU':function(_0x3ec664,_0x160578){return _0x3ec664(_0x160578);},'fJYBX':function(_0x4253a9,_0x293883){return _0x4253a9&&_0x293883;},'xbxOB':function(_0x5ed56c,_0x1bd30e){return _0x5ed56c||_0x1bd30e;},'zGRhD':'any','eyUGE':function(_0x1dd0cf,_0x24f1ee){return _0x1dd0cf===_0x24f1ee;},'IhqeM':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','iShyO':_0x223520(0xcf),'NEvby':'selected','yTbUF':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','kXhLX':function(_0x2c8e9c,_0xe6d6f9,_0x2b121b){return _0x2c8e9c(_0xe6d6f9,_0x2b121b);}};if(_0x2ee4e8){const _0xb841df=await getFeature(_0x2ee4e8);await _0x36bdf5['hpfyS'](setActiveFeatureId,_0xb841df['id']);const _0x381f70=_0x36bdf5['EWmcP'](getGitBranch);_0x381f70&&_0x381f70!==_0xb841df[_0x223520(0x139)]&&(await _0x36bdf5[_0x223520(0x191)](updateFeature,_0xb841df['id'],{'gitBranch':_0x381f70}),console[_0x223520(0x152)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x381f70));console[_0x223520(0x152)](_0x223520(0xf4)+_0xb841df[_0x223520(0x17f)]+'\x20('+_0xb841df['id']+')'),await tryStartCurrentSession(_0xb841df['id']);const _0x59d62c=process['env']['CLAUDE_SESSION_ID'];_0x59d62c&®isterSession(_0x59d62c,_0xb841df['id']);_0x36bdf5[_0x223520(0x191)](displayFeature,_0xb841df,_0xb841df['checklistItems']),await _0x36bdf5['WeXdU'](printFeedbackNudge,_0xb841df['id']);return;}const _0xf68e49=getGitRepoUrl(),_0x56a882=_0x36bdf5['EWmcP'](getGitBranch);if(_0x36bdf5[_0x223520(0x103)](!_0xf68e49,!_0x56a882))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x36bdf5[_0x223520(0x180)](_0xf68e49,_0x36bdf5[_0x223520(0x182)])+_0x223520(0x174)+(_0x56a882||_0x223520(0x18b))+_0x223520(0x13c));const _0x473af9=await listFeatures({'gitRepoUrl':_0xf68e49,'gitBranch':_0x56a882}),_0x1cb230=_0x473af9['items'][_0x223520(0x16f)](_0x177e80=>!_0x177e80[_0x223520(0x116)]);if(_0x36bdf5[_0x223520(0xd9)](_0x1cb230['length'],0x0)){console[_0x223520(0x152)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0x36bdf5[_0x223520(0x136)]);return;}let _0x35215a;if(_0x1cb230[_0x223520(0xcd)]===0x1)_0x35215a=_0x1cb230[0x0];else{const _0x5279f9=process[_0x223520(0x13b)][_0x223520(0xc5)]&&process['stdout']['isTTY'];if(!_0x5279f9){console['log'](_0x223520(0x110));for(const _0xfe694d of _0x1cb230){console['log']('\x20\x20'+_0xfe694d['name']),console[_0x223520(0x152)]('\x20\x20\x20\x20\x20ID:\x20'+_0xfe694d['id']),_0xfe694d[_0x223520(0x118)]&&console[_0x223520(0x152)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0xfe694d['stats'])),_0xfe694d['gitBranch']&&console['log'](_0x223520(0x186)+_0xfe694d[_0x223520(0x139)]);}throw new Error(_0x223520(0xef));}const {selected:_0x3d52d8}=await _0x24aae8['prompt']([{'type':_0x36bdf5[_0x223520(0xe2)],'name':_0x36bdf5[_0x223520(0xd0)],'message':_0x36bdf5['yTbUF'],'choices':_0x1cb230['map'](_0x4920ad=>({'name':_0x4920ad['name']+'\x20('+_0x4920ad['id']+')','value':_0x4920ad['id']}))}]);_0x35215a=_0x1cb230[_0x223520(0xed)](_0x2257cb=>_0x2257cb['id']===_0x3d52d8);}await setActiveFeatureId(_0x35215a['id']);_0x56a882&&_0x56a882!==_0x35215a['gitBranch']&&(await updateFeature(_0x35215a['id'],{'gitBranch':_0x56a882}),console[_0x223520(0x152)](_0x223520(0xdf)+_0x56a882));console['log'](_0x223520(0xf4)+_0x35215a['name']+'\x20('+_0x35215a['id']+')'),await tryStartCurrentSession(_0x35215a['id']);const _0x403f5c=await getFeature(_0x35215a['id']),_0x3a071b=process['env']['CLAUDE_SESSION_ID'];_0x3a071b&&_0x36bdf5['kXhLX'](registerSession,_0x3a071b,_0x403f5c['id']),displayFeature(_0x403f5c,_0x403f5c['checklistItems']),await _0x36bdf5[_0x223520(0xfd)](printFeedbackNudge,_0x403f5c['id']);}async function printFeedbackNudge(_0x4187ca){const _0x38cbb9=_0x2f0c7d,_0x3dae52={'cNrKg':function(_0x14a52c,_0x49f3a4){return _0x14a52c(_0x49f3a4);}};try{const {items:_0x92053f}=await _0x3dae52[_0x38cbb9(0x184)](getActionItems,_0x4187ca);let _0x452396=0x0,_0xc89d42=0x0;for(const _0x36ab31 of _0x92053f){const _0x250ff3=await getItemFeedback(_0x4187ca,_0x36ab31['id']);_0x250ff3[_0x38cbb9(0x15c)][_0x38cbb9(0xcd)]>0x0&&(_0x452396+=_0x250ff3[_0x38cbb9(0x15c)][_0x38cbb9(0xcd)],_0xc89d42++);}_0x452396>0x0&&(console[_0x38cbb9(0x152)](_0x38cbb9(0x100)+_0x452396+_0x38cbb9(0x142)+_0xc89d42+_0x38cbb9(0x16d)),console[_0x38cbb9(0x152)](_0x38cbb9(0xfc)));}catch{}}async function tryStartCurrentSession(_0x1e716a){const _0x189638=_0x2f0c7d,_0x345f00={'NsfCw':function(_0x42c5dc,_0x132444){return _0x42c5dc(_0x132444);},'MHCfJ':function(_0x17c7bb,_0x5ad5f6,_0x33afaf){return _0x17c7bb(_0x5ad5f6,_0x33afaf);}};try{const {sessions:_0x2fff00}=await _0x345f00['NsfCw'](listFeatureSessions,_0x1e716a),_0x141627=_0x2fff00['find'](_0x5eb6cd=>_0x5eb6cd[_0x189638(0x14d)]==='ready');_0x141627&&(await _0x345f00['MHCfJ'](startSession,_0x1e716a,_0x141627['id']),console[_0x189638(0x152)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x141627[_0x189638(0xf9)]));}catch{}}export async function featureReport(_0x43e394,_0xf61936){const _0xc564e4=_0x2f0c7d,_0x3e0662={'tKddr':_0xc564e4(0x16a),'zaByB':function(_0x164554,_0x589c8b,_0x54e12f,_0x1ca26f){return _0x164554(_0x589c8b,_0x54e12f,_0x1ca26f);},'FmRqy':function(_0x41f068){return _0x41f068();},'dJOCv':function(_0x14ed35,_0x973abe){return _0x14ed35(_0x973abe);},'EcSND':'utf-8'},_0xd2883=_0x43e394||await getActiveFeatureId();if(!_0xd2883)throw new Error(_0xc564e4(0xf0));console[_0xc564e4(0x152)](_0x3e0662['tKddr']);const _0x576301=await getFeatureReportMarkdown(_0xd2883,{'style':_0xf61936['style']}),_0x418437=_0xf61936[_0xc564e4(0x14f)]||_0x3e0662['zaByB'](join,_0x3e0662[_0xc564e4(0x13d)](getRangerDir),_0xc564e4(0x109),_0xd2883+'.md'),_0x373b4c=join(_0x418437,'..');!_0x3e0662['dJOCv'](existsSync,_0x373b4c)&&await mkdir(_0x373b4c,{'recursive':!![]}),await writeFile(_0x418437,_0x576301,_0x3e0662['EcSND']),console[_0xc564e4(0x152)](_0xc564e4(0x11f)+_0x418437);}export async function featureReportPrDescription(_0x5d5989,_0x381d5d){const _0x1b1e41=_0x2f0c7d,_0x7abc08={'YGAcQ':function(_0x59d113){return _0x59d113();},'SYVEN':_0x1b1e41(0x104),'MmlFh':function(_0x317529,_0x5c426d){return _0x317529>_0x5c426d;},'MFsUC':_0x1b1e41(0x121),'LnURc':function(_0x4249b0,_0x2d5b59){return _0x4249b0===_0x2d5b59;},'hUfHC':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0xe3a3eb=_0x5d5989||await _0x7abc08['YGAcQ'](getActiveFeatureId);if(!_0xe3a3eb)throw new Error(_0x1b1e41(0xf0));const _0x37948a=await getFeature(_0xe3a3eb),_0x48b214=_0x37948a['checklistItems']||[],_0x144dc3=getCurrentSessionItems(_0x37948a,_0x48b214);_0x144dc3['length']===0x0&&(console['error'](_0x7abc08['SYVEN']),process['exit'](0x1));const _0x4d83ce=_0x381d5d[_0x1b1e41(0x106)]??[],_0x185467=_0x4d83ce['filter'](_0x4f5420=>!Number[_0x1b1e41(0x161)](_0x4f5420)||_0x4f5420<0x1||_0x4f5420>_0x144dc3['length']);if(_0x7abc08['MmlFh'](_0x185467['length'],0x0)){console[_0x1b1e41(0x115)](_0x1b1e41(0xdd)+_0x185467['join'](',\x20')),console['log'](_0x7abc08['MFsUC']);for(let _0x4d09bd=0x0;_0x4d09bd<_0x144dc3[_0x1b1e41(0xcd)];_0x4d09bd++){console[_0x1b1e41(0x152)]('\x20\x20'+(_0x4d09bd+0x1)+'.\x20'+_0x144dc3[_0x4d09bd]['description']);}process[_0x1b1e41(0x163)](0x1);}const _0x2f0779=new Set(_0x4d83ce[_0x1b1e41(0x187)](_0x1ba722=>_0x1ba722-0x1)),_0x4acbe7=_0x144dc3['filter']((_0x21ca53,_0x28c210)=>!_0x2f0779['has'](_0x28c210));_0x7abc08['LnURc'](_0x4acbe7[_0x1b1e41(0xcd)],0x0)&&(console[_0x1b1e41(0x115)](_0x7abc08[_0x1b1e41(0x10e)]),process[_0x1b1e41(0x163)](0x1));const _0x253caf=await getFeatureReportMarkdown(_0xe3a3eb,{'itemIds':_0x4acbe7['map'](_0x2a8832=>_0x2a8832['id'])});process[_0x1b1e41(0x175)][_0x1b1e41(0x17c)](_0x253caf['trimEnd']()+'\x0a');}function _0x5917(){const _0x24bfb1=['ykhdI','blocked','PoAGv','tKpUp','iMJyR','\x0aGenerating\x20report...','slice','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','\x20scenario(s).','\x20scenarios.','filter','\x20(v','scenario','\x20concluded.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20/\x20','stdout','xxBbw','9951810tRSjdb','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x20--current-branch','spatial','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','write','arrayBuffer','sObON','name','xbxOB','LcmjG','zGRhD','authorEmail','cNrKg','element','\x20\x20\x20\x20\x20Branch:\x20','map','\x0a✅\x20Scenario\x20added','.png','description','any','xTYNi','round','4535320wxzCAR','\x0a✅\x20Scenario\x20updated','3558123wPuFDo','LpJny','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','incomplete','currentBranch','isTTY','dIOFC','gitRepoUrl','\x20\x20\x20Branch:\x20',':\x20\x22','textContent','CzNiR','\x20\x20\x20Progress:\x20','length','muUKs','list','NEvby','hObLo','join','hYpmn','selector','6190790MtPIHL','version','split','nsgtC','eyUGE','qYRCe','closed','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','feedback-images','qDfpw','iShyO','currentSessionId','\x20blocked','taxQv','incompleteReason','domRef','authorName','createdAt','3388eXtBYS','includeDeleted','\x20\x20\x20ID:\x20','find','wvAXg','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0aCreating\x20feature\x20review...','JCFFj','XheGI','\x0a✅\x20Resumed\x20feature\x20review:\x20','toLocaleDateString','\x20\x20\x20Status:\x20','vQBhx','\x20in\x20progress','iteration','4ktVGDo','dfGEo','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','hpfyS','sort','trim','\x0a⚠️\x20\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','offset','fJYBX','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','assetUrl','excludeScenarios','FizjO','hCApx','reports','limit','verificationInProgressItems','9thFzkW','position','hUfHC','zfzhL','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20\x20\x20Created:\x20','pbOTp','toLocaleString','uQeGU','error','completedAt','utf-8','stats','aZzqJ','zEscz','totalCount','dashboardUrl','push','Unknown','\x0a✅\x20Report\x20generated:\x20','vMIoa','\x0aAvailable\x20scenarios:','Next\x20page:\x20ranger\x20list\x20--offset\x20','pipe','\x1b[0m','10nKEWWr','SHnrZ','YKDvU','\x0a✅\x20Session\x20is\x20already\x20completed.','OGHAO','skIXi','qCRZm','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','en-US','12678KOKucA','terminalReason','hxpTZ','1423828cXouAZ','repeat','submittedAt','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20feature\x20review(s)\x20found','IhqeM','617326yvsdUc','blockedReason','gitBranch','):\x20\x22','stdin','...','FmRqy','Cannot\x20conclude\x20session\x20with\x20status:\x20','github.com/','replace','PjmHk','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','from','hVwiM','in_progress','\x20\x20Expected\x20flow:','checklistItems','\x20unaddressed\x20comment(s)','\x20—\x20no\x20comments','items','\x20\x20\x20\x20\x20\x20Approved','\x20\x20\x20Repository:\x20','status','\x20[has\x20reviewer\x20feedback]','output','JMICI','yQGFx','log','vRtfZ','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','Current\x20session\x20not\x20found.','\x20of\x20','\x20\x20\x20','\x20\x20\x20\x20\x20\x20Cancelled:\x20','SGScO','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','completed','unaddressedComments','No\x20sessions\x20found.','content','.\x20Feature\x20review\x20has\x20','vcmYT','isInteger','JXrCw','exit','\x0aConcluding\x20session...'];_0x5917=function(){return _0x24bfb1;};return _0x5917();}export async function featureConcludeSession(_0x5e2850){const _0x4887ef=_0x2f0c7d,_0x3cb7f5={'pZJsY':function(_0x124041){return _0x124041();},'fXryg':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','JMICI':function(_0x1c2230,_0x5988ae){return _0x1c2230(_0x5988ae);},'proGX':_0x4887ef(0x15b),'POnFK':_0x4887ef(0x128),'vQBhx':_0x4887ef(0x164)},_0x496cf0=_0x5e2850||await _0x3cb7f5['pZJsY'](getActiveFeatureId);if(!_0x496cf0)throw new Error(_0x4887ef(0x173));const _0x1bab74=await getFeature(_0x496cf0);if(!_0x1bab74[_0x4887ef(0xe3)])throw new Error(_0x3cb7f5['fXryg']);const {sessions:_0x43c481}=await _0x3cb7f5[_0x4887ef(0x150)](listFeatureSessions,_0x496cf0),_0x162d52=_0x43c481['find'](_0x4774e3=>_0x4774e3['id']===_0x1bab74['currentSessionId']);if(!_0x162d52)throw new Error(_0x4887ef(0x155));if(_0x162d52[_0x4887ef(0x14d)]===_0x3cb7f5['proGX']){console['log'](_0x3cb7f5['POnFK']);return;}if(_0x162d52['status']!=='in_progress')throw new Error(_0x4887ef(0x13e)+_0x162d52[_0x4887ef(0x14d)]);console[_0x4887ef(0x152)](_0x3cb7f5[_0x4887ef(0xf7)]),await concludeSession(_0x496cf0,_0x1bab74['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x162d52['iteration']+_0x4887ef(0x172)),console['log'](_0x4887ef(0x16c));}export async function featureSessions(_0x27c500){const _0x5e0869=_0x2f0c7d,_0x4f4d78={'pKKUH':function(_0xa51043,_0x808d7){return _0xa51043(_0x808d7);},'wvAXg':function(_0x4825ae,_0x1a6c12){return _0x4825ae===_0x1a6c12;},'dIOFC':_0x5e0869(0x15d),'xxBbw':function(_0x2b7402,_0x622d2){return _0x2b7402===_0x622d2;},'sObON':_0x5e0869(0x15b),'PInRw':_0x5e0869(0x145)},_0x113aa7=_0x27c500||await getActiveFeatureId();if(!_0x113aa7)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x9ad407=await getFeature(_0x113aa7);console[_0x5e0869(0x152)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x9ad407['name']+'\x0a');const {sessions:_0x1726ff}=await _0x4f4d78['pKKUH'](listFeatureSessions,_0x113aa7);if(_0x4f4d78[_0x5e0869(0xee)](_0x1726ff['length'],0x0)){console['log'](_0x4f4d78[_0x5e0869(0xc6)]);return;}for(const _0x2d58aa of _0x1726ff){const _0x2cef06=_0x4f4d78[_0x5e0869(0x176)](_0x2d58aa[_0x5e0869(0x14d)],_0x4f4d78[_0x5e0869(0x17e)])?'✅':_0x2d58aa['status']===_0x4f4d78['PInRw']?'🔄':'▶️';console['log'](_0x2cef06+'\x20Session\x20'+_0x2d58aa[_0x5e0869(0xf9)]+'\x20('+_0x2d58aa['id']+')'),console['log'](_0x5e0869(0xf6)+_0x2d58aa['status']),console['log'](_0x5e0869(0x111)+new Date(_0x2d58aa[_0x5e0869(0xe9)])['toLocaleString']()),_0x2d58aa['completedAt']&&console[_0x5e0869(0x152)]('\x20\x20\x20Completed:\x20'+new Date(_0x2d58aa[_0x5e0869(0x116)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x42150c,_0x335c73){const _0x47e2ec=_0x2f0c7d,_0x3d3b81={'hYpmn':function(_0x485032){return _0x485032();},'yjkzG':_0x47e2ec(0x173),'XheGI':function(_0x3a87d6,_0x59dbab){return _0x3a87d6(_0x59dbab);},'VUCKt':function(_0xb1cf65,_0x48b15e){return _0xb1cf65(_0x48b15e);}},_0x1b5165=_0x335c73||await _0x3d3b81[_0x47e2ec(0xd3)](getActiveFeatureId);if(!_0x1b5165)throw new Error(_0x3d3b81['yjkzG']);const _0xd908f4=await _0x3d3b81[_0x47e2ec(0xf3)](getFeature,_0x1b5165);if(_0xd908f4['latestReview']&&!_0xd908f4['latestReview'][_0x47e2ec(0x133)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0xd908f4['dashboardUrl']);await createChecklistItem(_0x1b5165,_0x42150c);const _0x87c675=await _0x3d3b81['VUCKt'](getFeature,_0x1b5165);console[_0x47e2ec(0x152)](_0x47e2ec(0x188)),displayFeature(_0x87c675,_0x87c675['checklistItems']);}export async function featureEditScenario(_0x21dbbb,_0x19139b){const _0x403fc2=_0x2f0c7d,_0x5d519d={'ceBfz':_0x403fc2(0xdc),'PoAGv':_0x403fc2(0x12c),'qDfpw':function(_0x283a4f,_0x3c9855){return _0x283a4f(_0x3c9855);},'aqLZs':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','FizjO':function(_0xc10d24,_0x3a442e){return _0xc10d24===_0x3a442e;},'ztYmd':function(_0x229d9a,_0x42ad6c){return _0x229d9a+_0x42ad6c;},'hCApx':function(_0x34d26e,_0x1409ac){return _0x34d26e-_0x1409ac;},'vcmYT':function(_0x382bc2,_0x5b29e5){return _0x382bc2>=_0x5b29e5;},'uQeGU':_0x403fc2(0x121),'JCFFj':function(_0x4563e2,_0x23787,_0x3a21e4,_0x5163f3){return _0x4563e2(_0x23787,_0x3a21e4,_0x5163f3);}},_0x3cc07c=_0x19139b['id']||await getActiveFeatureId();!_0x3cc07c&&(console[_0x403fc2(0x115)](_0x5d519d['ceBfz']),console['error'](_0x5d519d[_0x403fc2(0x167)]),process[_0x403fc2(0x163)](0x1));const _0x4f3512=await _0x5d519d[_0x403fc2(0xe1)](getFeature,_0x3cc07c);_0x4f3512['latestReview']&&!_0x4f3512['latestReview']['submittedAt']&&(console['error'](_0x5d519d['aqLZs']),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x4f3512[_0x403fc2(0x11c)]),process['exit'](0x1));const _0x3aa1f3=_0x4f3512[_0x403fc2(0x147)]||[];_0x5d519d[_0x403fc2(0x107)](_0x3aa1f3[_0x403fc2(0xcd)],0x0)&&(console['error'](_0x403fc2(0x17b)),process['exit'](0x1));if(_0x19139b[_0x403fc2(0x171)]===undefined){console[_0x403fc2(0x115)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x403fc2(0x121));for(let _0x1addcc=0x0;_0x1addcc<_0x3aa1f3[_0x403fc2(0xcd)];_0x1addcc++){console['log']('\x20\x20'+_0x5d519d['ztYmd'](_0x1addcc,0x1)+'.\x20'+_0x3aa1f3[_0x1addcc]['description']);}process[_0x403fc2(0x163)](0x1);}const _0x3fa1a2=_0x5d519d[_0x403fc2(0x108)](_0x19139b['scenario'],0x1);if(_0x3fa1a2<0x0||_0x5d519d[_0x403fc2(0x160)](_0x3fa1a2,_0x3aa1f3[_0x403fc2(0xcd)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x19139b[_0x403fc2(0x171)]+_0x403fc2(0x15f)+_0x3aa1f3['length']+_0x403fc2(0x16e)),console['log'](_0x5d519d[_0x403fc2(0x114)]);for(let _0x221de0=0x0;_0x221de0<_0x3aa1f3['length'];_0x221de0++){console[_0x403fc2(0x152)]('\x20\x20'+_0x5d519d['ztYmd'](_0x221de0,0x1)+'.\x20'+_0x3aa1f3[_0x221de0]['description']);}process[_0x403fc2(0x163)](0x1);}const _0x23813c=_0x3aa1f3[_0x3fa1a2];await _0x5d519d[_0x403fc2(0xf2)](updateChecklistItem,_0x3cc07c,_0x23813c['id'],{'description':_0x21dbbb});const _0x557321=await _0x5d519d['qDfpw'](getFeature,_0x3cc07c);console['log'](_0x403fc2(0x18f)),displayFeature(_0x557321,_0x557321['checklistItems']);}async function downloadFeedbackImage(_0x132741,_0x2625e4){const _0x44677f=_0x2f0c7d,_0x556a00={'OGHAO':function(_0x623181){return _0x623181();},'Rvtjs':_0x44677f(0xe0),'uetuK':function(_0x3df459,_0x1b5974,_0x299bf3){return _0x3df459(_0x1b5974,_0x299bf3);},'iMJyR':function(_0x42bb06,_0x2cc08e,_0x15a86c){return _0x42bb06(_0x2cc08e,_0x15a86c);},'SHnrZ':function(_0x1a2aa3,_0x3a3999){return _0x1a2aa3(_0x3a3999);}};try{const _0xcdd635=join(_0x556a00[_0x44677f(0x129)](getRangerDir),_0x556a00['Rvtjs']);await _0x556a00['uetuK'](mkdir,_0xcdd635,{'recursive':!![]});const _0x47fb0d=_0x556a00[_0x44677f(0x169)](join,_0xcdd635,'comment_'+_0x2625e4+_0x44677f(0x189)),_0x152448=await _0x556a00[_0x44677f(0x126)](fetch,_0x132741);if(!_0x152448['ok'])return null;const _0x166320=Buffer[_0x44677f(0x143)](await _0x152448[_0x44677f(0x17d)]());return await writeFile(_0x47fb0d,_0x166320),_0x47fb0d;}catch{return null;}}export async function featureGetReview(_0x16f5f1){const _0x55707a=_0x2f0c7d,_0x5e09b2={'WMpnY':function(_0x52f7b0,_0x297442,_0x3536ff){return _0x52f7b0(_0x297442,_0x3536ff);},'eynZq':_0x55707a(0x12d),'hxpTZ':'short','KmmhA':'numeric','ykhdI':_0x55707a(0x11e),'TTZaI':'\x20>\x20','zAvgl':_0x55707a(0x185),'LOYvG':function(_0x1c1fe5,_0x37c3a2){return _0x1c1fe5===_0x37c3a2;},'sBjtJ':'point','taxQv':function(_0x5613af,_0x501a4d){return _0x5613af+_0x501a4d;}},_0x2a4faa=_0x16f5f1||await getActiveFeatureId();if(!_0x2a4faa)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 _0x5eed66=await getFeature(_0x2a4faa),{items:_0x46ef72}=await getActionItems(_0x2a4faa);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x5eed66[_0x55707a(0x17f)]+'\x20('+_0x5eed66['id']+')\x0a');if(_0x46ef72['length']===0x0){console['log']('No\x20scenarios\x20found.');return;}for(let _0x1edbbc=0x0;_0x1edbbc<_0x46ef72['length'];_0x1edbbc++){const _0xeb1c0d=_0x46ef72[_0x1edbbc],_0x576c94=_0xeb1c0d['version']>0x1?_0x55707a(0x170)+_0xeb1c0d[_0x55707a(0xd6)]+')':'',_0x99850c=await _0x5e09b2['WMpnY'](getItemFeedback,_0x2a4faa,_0xeb1c0d['id']);if(_0x99850c[_0x55707a(0x15c)][_0x55707a(0xcd)]>0x0){console['log']('Scenario\x20'+(_0x1edbbc+0x1)+':\x20\x22'+_0xeb1c0d[_0x55707a(0x18a)]+'\x22'+_0x576c94+'\x20—\x20'+_0x99850c['unaddressedComments'][_0x55707a(0xcd)]+_0x55707a(0x148));for(const _0x4cdfb0 of _0x99850c[_0x55707a(0x15c)]){const _0x3c3e0a=new Date(_0x4cdfb0[_0x55707a(0xe9)])[_0x55707a(0xf5)](_0x5e09b2['eynZq'],{'month':_0x5e09b2[_0x55707a(0x130)],'day':_0x5e09b2['KmmhA']}),_0x1af227=_0x4cdfb0[_0x55707a(0xe8)]||_0x4cdfb0[_0x55707a(0x183)]||_0x5e09b2[_0x55707a(0x165)];console[_0x55707a(0x152)]('\x20\x20💬\x20'+_0x1af227+'\x20('+_0x3c3e0a+_0x55707a(0x13a)+_0x4cdfb0[_0x55707a(0x15e)]+'\x22');if(_0x4cdfb0[_0x55707a(0x105)]){const _0x4650e1=await downloadFeedbackImage(_0x4cdfb0['assetUrl'],_0x4cdfb0['id']);_0x4650e1&&console[_0x55707a(0x152)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x4650e1);}if(_0x4cdfb0['domRef']){const _0x52e26b=_0x4cdfb0[_0x55707a(0xe7)]['selector'][_0x55707a(0xd7)](_0x5e09b2['TTZaI'])['pop']()?.['split'](':')[0x0]||_0x5e09b2['zAvgl'],_0x5b1db9=_0x4cdfb0[_0x55707a(0xe7)][_0x55707a(0xca)]?'\x20\x22'+_0x4cdfb0['domRef'][_0x55707a(0xca)][_0x55707a(0x16b)](0x0,0x3c)+'\x22':'';console[_0x55707a(0x152)](_0x55707a(0x192)+_0x52e26b+'>'+_0x5b1db9),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x4cdfb0[_0x55707a(0xe7)][_0x55707a(0xd4)]);}else{if(_0x4cdfb0[_0x55707a(0x17a)]){const _0xb1174e=_0x4cdfb0['spatial']['coordinates'];_0x5e09b2['LOYvG'](_0x4cdfb0['spatial']['type'],_0x5e09b2['sBjtJ'])&&_0xb1174e[_0x55707a(0xcd)]>=0x2?console[_0x55707a(0x152)](_0x55707a(0x154)+_0xb1174e[0x0]['toFixed'](0x2)+',\x20'+_0xb1174e[0x1]['toFixed'](0x2)+')'):console['log'](_0x55707a(0xde)+_0x4cdfb0['spatial']['type']+'\x20at\x20['+_0xb1174e['map'](_0x550585=>_0x550585['toFixed'](0x2))[_0x55707a(0xd2)](',\x20')+']');}}}if(_0x99850c['canonicalFlow']){console['log'](_0x55707a(0x146));for(const _0x55ae0d of _0x99850c['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x55ae0d);}}}else console[_0x55707a(0x152)]('Scenario\x20'+_0x5e09b2[_0x55707a(0xe5)](_0x1edbbc,0x1)+_0x55707a(0xc9)+_0xeb1c0d['description']+'\x22'+_0x576c94+_0x55707a(0x149)),console[_0x55707a(0x152)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x57aae6){const _0x485cca=_0x2f0c7d,_0xbed605={'kFuxd':function(_0x47d65c,_0x704b98){return _0x47d65c(_0x704b98);}},_0x36bfb6=_0x57aae6||await getActiveFeatureId();if(!_0x36bfb6)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 _0x4549e8=await _0xbed605['kFuxd'](getFeature,_0x36bfb6);await softDeleteFeature(_0x36bfb6),console[_0x485cca(0x152)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x4549e8['name']+'\x20('+_0x36bfb6+')'),console['log'](_0x485cca(0x15a)+_0x36bfb6);}export async function featureRestore(_0x1f5569){const _0x445576=_0x2f0c7d,_0x2e63bb={'aZzqJ':function(_0xa0bf12,_0x47f76b){return _0xa0bf12(_0x47f76b);},'LtCuD':function(_0xe4ed23,_0x42d03a){return _0xe4ed23(_0x42d03a);}};await _0x2e63bb[_0x445576(0x119)](restoreFeature,_0x1f5569);const _0x39fb8d=await _0x2e63bb['LtCuD'](getFeature,_0x1f5569);console['log'](_0x445576(0x134)+_0x39fb8d['name']+'\x20('+_0x1f5569+')'),displayFeature(_0x39fb8d,_0x39fb8d['checklistItems']);}
|
|
1
|
+
(function(_0x467cac,_0x489e46){const _0x21fb22=_0x51d3,_0x5da530=_0x467cac();while(!![]){try{const _0xb9583d=parseInt(_0x21fb22(0xf5))/0x1*(-parseInt(_0x21fb22(0xfa))/0x2)+-parseInt(_0x21fb22(0x124))/0x3*(parseInt(_0x21fb22(0x138))/0x4)+-parseInt(_0x21fb22(0x12f))/0x5*(-parseInt(_0x21fb22(0x111))/0x6)+-parseInt(_0x21fb22(0x147))/0x7+parseInt(_0x21fb22(0x14e))/0x8+parseInt(_0x21fb22(0xa1))/0x9*(-parseInt(_0x21fb22(0xef))/0xa)+parseInt(_0x21fb22(0x15a))/0xb;if(_0xb9583d===_0x489e46)break;else _0x5da530['push'](_0x5da530['shift']());}catch(_0x4f2485){_0x5da530['push'](_0x5da530['shift']());}}}(_0x3d49,0x36a1e));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x31b5bd from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';function _0x3d49(){const _0x337ab2=['\x20--current-branch','uCTPh','xcQwZ','):\x20\x22','\x20--include-deleted','Please\x20finish\x20your\x20review\x20first:','\x0a📋\x20Feedback\x20for:\x20','LLaTW','style','canonicalFlow','327770CrWcLS','RWTzf','\x20[has\x20reviewer\x20feedback]','blocked','jfHGY','currentSessionId','KSkZa','CLAUDE_SESSION_ID','\x20\x20\x20ID:\x20','412fkIuRg','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','cOYbO','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','status','pBwup','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0aGenerating\x20report...','limit','Not\x20in\x20a\x20git\x20repository.','stdCd','selector','.md','No\x20scenarios\x20found.','submittedAt','2890993IzaCWm','tsvGq','KJqek','spatial','lskZC','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','tFeyw','2643808NZLDEh','assetUrl','ttUrQ','ivdGA','\x0a✅\x20Resumed\x20feature\x20review:\x20','KCvOU','\x20at\x20[','domRef','scenario','miwmK','zLLvH','trim','8952152dpqLFP','\x0aAvailable\x20scenarios:','git\x20remote\x20get-url\x20origin','filter','canceledReason','stdout','slPrj','rLZzg','Unknown','name','coordinates','toLocaleDateString','split','mhCgn','gitBranch','find','error','parentItemId','902457ORsGHS','gpZlZ','\x20verified','blockedReason','any','content','dacxT','vFbbR','URsRu','dashboardUrl','potqt','AlLBF','\x20\x20\x20Repository:\x20','mArjO','\x0a⚠️\x20\x20','join','currentBranch','wXjFR','length','caohl','CzZPD','reports','closed','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','GnJzk','\x20\x20\x20\x20\x20\x20Blocked:\x20','repeat','No\x20sessions\x20found.','\x20—\x20','dXTkr','description','\x20Session\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','gDWvg','tkREO','excludeScenarios','\x20incomplete','position','XtVoM','\x20\x20\x20▶️\x20Started\x20session\x20','log','stdin','zHaho','ZMBva','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','ikMFD','\x20/\x20','\x20scenarios.','SKuXH','QROjX','lYFmw','sort','jPmWl','\x20scenario(s).','replace','imcwu','pipe','stats','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20--limit\x20','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','ANmOT','GlzUC','authorName','njNTo','\x0a✅\x20Restored\x20feature\x20review:\x20','prompt','arrayBuffer','gDGir','toFixed','\x20\x20\x20Created:\x20','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','version','RmpsK','5|4|1|3|0|2','\x20\x20\x20\x20\x20\x20Incomplete:\x20','TJnjf','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','10cGLkYH','map','igjKd','from','write','env','1GhVnOc','\x0aNo\x20feature\x20reviews\x20found.','\x20\x20\x20Progress:\x20','BuwaD','UcdFx','868430xymusw','fnxfL','in_progress','exit','toLocaleString','\x20\x20\x20\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','OZqaZ','textContent','sessionId','ViMoC','checklistItems','utf-8','offset','Byvwy','CbiZU','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','gkPhB','SKqNw','Current\x20session\x20not\x20found.','nGhhW','selected','completedAt','36rHZmiM','iteration','\x20\x20\x20\x20\x20\x20Cancelled:\x20','list','IqFnq','pUfbA','approved','\x0a✅\x20Scenario\x20added','verified','ready','EBciL','tZxJz','\x20of\x20','items','unaddressedComments','completed','terminalReason','type','.\x20Feature\x20review\x20has\x20','10671CJdHRt'];_0x3d49=function(){return _0x337ab2;};return _0x3d49();}const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x2537c2=>'\x1b[1m'+_0x2537c2+'\x1b[0m';function getGitRepoUrl(){const _0xc720a2=_0x51d3,_0x3cbf97={'EgGRx':function(_0x5534f1,_0x5856c5,_0x1886bd){return _0x5534f1(_0x5856c5,_0x1886bd);},'lJKKJ':_0xc720a2(0x106)};try{const _0x3119e9=_0x3cbf97['EgGRx'](execSync,_0xc720a2(0x15c),{'encoding':_0x3cbf97['lJKKJ'],'stdio':[_0xc720a2(0xd9),'pipe',_0xc720a2(0xd9)]})['trim']();return _0x3119e9['replace'](/\.git$/,'')[_0xc720a2(0xd7)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xeee09c=_0x51d3,_0xf702b2={'BuwaD':function(_0x19103f,_0xd93b46,_0x1b7194){return _0x19103f(_0xd93b46,_0x1b7194);},'RWTzf':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','tkREO':_0xeee09c(0xd9)};try{return _0xf702b2[_0xeee09c(0xf8)](execSync,_0xf702b2[_0xeee09c(0x130)],{'encoding':'utf-8','stdio':[_0xf702b2['tkREO'],_0xf702b2['tkREO'],_0xf702b2[_0xeee09c(0xc3)]]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5871ad=_0x51d3,_0x2ba296={'potqt':function(_0x203478,_0x1ea1d3,_0x44df4f){return _0x203478(_0x1ea1d3,_0x44df4f);},'GnJzk':function(_0x1f04f7){return _0x1f04f7();},'hTDYz':function(_0x3c834d,_0x3f486f){return _0x3c834d(_0x3f486f);},'IsQHC':function(_0x21c9e7,_0x137d10,_0x3205b7){return _0x21c9e7(_0x137d10,_0x3205b7);},'fnxfL':'utf-8'},_0x4e0519=_0x2ba296[_0x5871ad(0xab)](join,_0x2ba296[_0x5871ad(0xb9)](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x2ba296['hTDYz'](existsSync,_0x4e0519))return null;try{const _0x14be27=await _0x2ba296['IsQHC'](readFile,_0x4e0519,_0x2ba296[_0x5871ad(0xfb)]);return _0x14be27[_0x5871ad(0x159)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x335aa3){const _0x49c220=_0x51d3,_0x569648={'tdhFU':function(_0x73a608,_0x475506){return _0x73a608(_0x475506);},'ZMBva':'utf-8'},_0x55d855=getRangerDir(),_0x19aee3=join(_0x55d855,ACTIVE_FEATURE_FILE);!_0x569648['tdhFU'](existsSync,_0x55d855)&&await mkdir(_0x55d855,{'recursive':!![]}),await writeFile(_0x19aee3,_0x335aa3,_0x569648[_0x49c220(0xcc)]);}function getProgressDisplay(_0x4bb457){const _0x399f41=_0x51d3,_0x228f1d={'AlLBF':function(_0x4e1a0c,_0xa5cf5){return _0x4e1a0c+_0xa5cf5;},'ANmOT':function(_0x585bf4,_0x458b7a){return _0x585bf4===_0x458b7a;},'jPmWl':function(_0xec3459,_0x2004b5){return _0xec3459*_0x2004b5;},'kOPOQ':function(_0x159705,_0x4c9068){return _0x159705/_0x4c9068;},'FzZkU':function(_0x1928f0,_0x378bc9){return _0x1928f0-_0x378bc9;},'tZxJz':function(_0x4b2202,_0x36fa54){return _0x4b2202>_0x36fa54;},'tsvGq':function(_0x2cece1,_0x57d3f6){return _0x2cece1>_0x57d3f6;}},_0x15c1bd=_0x4bb457['verifiedItems']||0x0,_0x2ace4f=_0x4bb457['verificationInProgressItems']||0x0,_0x55d022=_0x4bb457['blockedItems']||0x0,_0x475a8b=_0x4bb457['incompleteItems']||0x0,_0x3437b0=_0x4bb457['pendingItems']||0x0,_0x137d25=_0x228f1d[_0x399f41(0xac)](_0x228f1d[_0x399f41(0xac)](_0x228f1d['AlLBF'](_0x15c1bd+_0x2ace4f,_0x55d022),_0x475a8b),_0x3437b0);if(_0x228f1d[_0x399f41(0xde)](_0x137d25,0x0))return'-';const _0x12f11e=0xa,_0x4b1c16=Math['round'](_0x228f1d[_0x399f41(0xd5)](_0x228f1d['kOPOQ'](_0x15c1bd,_0x137d25),_0x12f11e)),_0x1e10d6='█'['repeat'](_0x4b1c16)+'░'[_0x399f41(0xbb)](_0x228f1d['FzZkU'](_0x12f11e,_0x4b1c16)),_0x43d3a2=[];if(_0x228f1d['tZxJz'](_0x55d022,0x0))_0x43d3a2['push'](_0x55d022+'\x20blocked');if(_0x228f1d[_0x399f41(0x11c)](_0x475a8b,0x0))_0x43d3a2['push'](_0x475a8b+_0x399f41(0xc5));if(_0x228f1d[_0x399f41(0x148)](_0x2ace4f,0x0))_0x43d3a2['push'](_0x2ace4f+'\x20in\x20progress');const _0x26c8fb=_0x43d3a2[_0x399f41(0xb3)]>0x0?'\x20('+_0x43d3a2[_0x399f41(0xb0)](',\x20')+')':'';return _0x1e10d6+'\x20'+_0x15c1bd+'/'+_0x137d25+_0x399f41(0xa3)+_0x26c8fb;}function getCurrentSessionItems(_0x351f44,_0x5e2574){const _0x316836=_0x51d3;if(!_0x351f44[_0x316836(0x134)])return _0x5e2574['filter'](_0x2cb962=>!_0x2cb962[_0x316836(0x103)])[_0x316836(0xd4)]((_0x481fa0,_0x20cf57)=>_0x481fa0[_0x316836(0xc6)]-_0x20cf57[_0x316836(0xc6)]);return _0x5e2574['filter'](_0x457e82=>_0x457e82['sessionId']===_0x351f44[_0x316836(0x134)]||!_0x457e82['sessionId'])[_0x316836(0xd4)]((_0xa763dc,_0xf27dff)=>_0xa763dc['position']-_0xf27dff['position']);}function displayFeature(_0x4804f6,_0x3b9b92){const _0x1fc099=_0x51d3,_0x5bd223={'TJnjf':function(_0x48f388,_0xbaef20){return _0x48f388(_0xbaef20);},'dXTkr':function(_0x1d86d5,_0x9c92e8){return _0x1d86d5>_0x9c92e8;},'zHaho':function(_0x58e0dd,_0x3b9b29){return _0x58e0dd===_0x3b9b29;},'wXjFR':'closed','kevgx':_0x1fc099(0x117),'QROjX':'verified','GPXHp':_0x1fc099(0x132),'ANquP':'verification_in_progress','lTRpF':function(_0x5da604,_0x462fe5){return _0x5da604!==_0x462fe5;},'VjWgr':function(_0x467f3c,_0x51f00c){return _0x467f3c+_0x51f00c;},'yOtqx':'incomplete','sjUzP':function(_0x23719d,_0x36af3f){return _0x23719d===_0x36af3f;}};console[_0x1fc099(0xc9)]('\x0a'+_0x4804f6['name']+'\x20('+_0x4804f6['dashboardUrl']+')');_0x4804f6[_0x1fc099(0xda)]&&console['log'](_0x1fc099(0xf7)+_0x5bd223[_0x1fc099(0xed)](getProgressDisplay,_0x4804f6['stats']));_0x4804f6[_0x1fc099(0xbf)]&&console[_0x1fc099(0xc9)]('\x20\x20\x20Description:\x20'+_0x4804f6[_0x1fc099(0xbf)]);_0x4804f6['gitRepoUrl']&&console['log'](_0x1fc099(0xad)+_0x4804f6['gitRepoUrl']);_0x4804f6[_0x1fc099(0x168)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x4804f6['gitBranch']);console[_0x1fc099(0xc9)](_0x1fc099(0xe7)+new Date(_0x4804f6['createdAt'])[_0x1fc099(0xfe)]());_0x4804f6['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x4804f6['completedAt'])['toLocaleString']());if(_0x3b9b92&&_0x5bd223[_0x1fc099(0xbe)](_0x3b9b92['length'],0x0)){console[_0x1fc099(0xc9)]('\x0a\x20\x20\x20Scenarios:');for(let _0xb412c7=0x0;_0xb412c7<_0x3b9b92[_0x1fc099(0xb3)];_0xb412c7++){const _0x202f60=_0x3b9b92[_0xb412c7];let _0x5a2241;if(_0x5bd223[_0x1fc099(0xcb)](_0x202f60['status'],_0x5bd223[_0x1fc099(0xb2)])&&_0x5bd223[_0x1fc099(0xcb)](_0x202f60[_0x1fc099(0x121)],_0x5bd223['kevgx']))_0x5a2241='✅';else{if(_0x202f60[_0x1fc099(0x13c)]===_0x5bd223[_0x1fc099(0xd2)])_0x5a2241='🟢';else{if(_0x5bd223['zHaho'](_0x202f60['status'],'incomplete'))_0x5a2241='🟠';else{if(_0x202f60['status']===_0x5bd223['GPXHp'])_0x5a2241='🛑';else{if(_0x202f60[_0x1fc099(0x13c)]==='closed')_0x5a2241='⛔';else _0x202f60[_0x1fc099(0x13c)]===_0x5bd223['ANquP']?_0x5a2241='⏳':_0x5a2241='⬜';}}}}const _0x2e6a10=_0x202f60['version']>0x1?'\x20(v'+_0x202f60['version']+')':'',_0x1b4ce8=_0x202f60['version']>0x1&&_0x202f60[_0x1fc099(0xa0)]&&_0x202f60[_0x1fc099(0x13c)]!=='closed'&&_0x5bd223['lTRpF'](_0x202f60['status'],_0x1fc099(0x119))?_0x1fc099(0x131):'';console['log']('\x20\x20\x20'+_0x5bd223['VjWgr'](_0xb412c7,0x1)+'.\x20'+_0x5a2241+'\x20'+_0x202f60['description']+_0x2e6a10+_0x1b4ce8);_0x202f60[_0x1fc099(0x13c)]===_0x5bd223['GPXHp']&&_0x202f60['blockedReason']&&console[_0x1fc099(0xc9)](_0x1fc099(0xba)+_0x202f60[_0x1fc099(0xa4)]);_0x202f60[_0x1fc099(0x13c)]===_0x5bd223['yOtqx']&&_0x202f60['incompleteReason']&&console['log'](_0x1fc099(0xec)+_0x202f60['incompleteReason']);if(_0x202f60[_0x1fc099(0x13c)]===_0x1fc099(0xb7)&&_0x5bd223[_0x1fc099(0xcb)](_0x202f60[_0x1fc099(0x121)],_0x5bd223['kevgx']))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x5bd223['sjUzP'](_0x202f60[_0x1fc099(0x13c)],_0x5bd223[_0x1fc099(0xb2)])&&_0x202f60[_0x1fc099(0x15e)]&&console['log'](_0x1fc099(0x113)+_0x202f60[_0x1fc099(0x15e)]);}}}export async function featureCreate(_0x3c6b02,_0x3f1899){const _0x467db0=_0x51d3,_0x2a65f6={'ApNCh':function(_0xc3edba){return _0xc3edba();},'BMlla':function(_0x116342,_0x5d839c){return _0x116342(_0x5d839c);},'mhCgn':function(_0x5c1b6a){return _0x5c1b6a();},'AQaPC':'\x0aCreating\x20feature\x20review...','ootLc':function(_0x32465d,_0x53822e,_0x251673){return _0x32465d(_0x53822e,_0x251673);}},{envNames:_0xe227f3}=await _0x2a65f6['ApNCh'](getEnvNames);_0xe227f3['length']===0x0&&console['warn']('\x0a'+_0x2a65f6['BMlla'](formatProfileRequiredMessage,_0x24c80e=>bold(_0x24c80e)));const _0x58008a=_0x3f1899['scenarios']?_0x3f1899['scenarios'][_0x467db0(0xf0)](_0x2415b4=>_0x2415b4[_0x467db0(0x159)]()):[],_0x224308=_0x2a65f6[_0x467db0(0x167)](getGitRepoUrl),_0x5652c4=getGitBranch();console['log'](_0x2a65f6['AQaPC']);const _0x30e5a9=await createFeature({'name':_0x3c6b02,'description':_0x3f1899[_0x467db0(0xbf)],'checklist':_0x58008a,'gitRepoUrl':_0x224308,'gitBranch':_0x5652c4});await setActiveFeatureId(_0x30e5a9['id']),await tryStartCurrentSession(_0x30e5a9['id']);const _0x4cbe60=process[_0x467db0(0xf4)][_0x467db0(0x136)];_0x4cbe60&&_0x2a65f6['ootLc'](registerSession,_0x4cbe60,_0x30e5a9['id']),console[_0x467db0(0xc9)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x30e5a9['id']),displayFeature(_0x30e5a9,_0x30e5a9['checklistItems']),console[_0x467db0(0xc9)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x14bbdf){const _0x435ce2=_0x51d3,_0x5302cd={'lYFmw':function(_0xffcf3d){return _0xffcf3d();},'IqFnq':function(_0x2afbb5,_0x15e5f){return _0x2afbb5===_0x15e5f;},'pUfbA':function(_0x4d7b94,_0x5b10c5){return _0x4d7b94>_0x5b10c5;},'miwmK':function(_0x57ec60,_0x34cd66){return _0x57ec60(_0x34cd66);},'Vatgj':function(_0x38af66,_0x58be21){return _0x38af66+_0x58be21;},'GlzUC':function(_0x54f255,_0x5cf68d){return _0x54f255!==_0x5cf68d;},'zgfaT':_0x435ce2(0x125),'ZMZaq':_0x435ce2(0x129)},_0x5a9c6e={'limit':_0x14bbdf[_0x435ce2(0x140)]??0xa,'offset':_0x14bbdf[_0x435ce2(0x107)]??0x0,'includeDeleted':_0x14bbdf['includeDeleted']};_0x14bbdf[_0x435ce2(0xb1)]&&(_0x5a9c6e['gitRepoUrl']=_0x5302cd[_0x435ce2(0xd3)](getGitRepoUrl),_0x5a9c6e['gitBranch']=getGitBranch());const _0x4e7394=await listFeatures(_0x5a9c6e);if(_0x5302cd[_0x435ce2(0x115)](_0x4e7394['items'][_0x435ce2(0xb3)],0x0)){console[_0x435ce2(0xc9)](_0x435ce2(0xf6));return;}const _0x1ea3cc=_0x5302cd[_0x435ce2(0x116)](_0x4e7394['totalCount'],_0x4e7394[_0x435ce2(0x11e)][_0x435ce2(0xb3)])?'Showing\x20'+_0x4e7394['items'][_0x435ce2(0xb3)]+_0x435ce2(0x11d)+_0x4e7394['totalCount']:_0x4e7394['totalCount']+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1ea3cc+':\x0a');for(const _0x2d907e of _0x4e7394['items']){const _0x3a3c00=_0x435ce2(0xeb)['split']('|');let _0x1de062=0x0;while(!![]){switch(_0x3a3c00[_0x1de062++]){case'0':console[_0x435ce2(0xc9)](_0x435ce2(0xe7)+new Date(_0x2d907e['createdAt'])['toLocaleDateString']());continue;case'1':_0x2d907e['stats']&&console['log'](_0x435ce2(0xf7)+_0x5302cd[_0x435ce2(0x157)](getProgressDisplay,_0x2d907e['stats']));continue;case'2':console['log']('');continue;case'3':_0x2d907e['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x2d907e['gitBranch']);continue;case'4':console['log'](_0x435ce2(0x137)+_0x2d907e['id']);continue;case'5':console['log'](''+_0x2d907e['name']);continue;}break;}}const _0xb65e4b=_0x5a9c6e[_0x435ce2(0x140)]??0xa,_0x4fb6c9=_0x5302cd['Vatgj'](_0x5a9c6e[_0x435ce2(0x107)]??0x0,_0x4e7394['items'][_0x435ce2(0xb3)]);if(_0x4fb6c9<_0x4e7394['totalCount']){const _0x1308a8=_0x5302cd[_0x435ce2(0xdf)](_0xb65e4b,0xa)?_0x435ce2(0xdc)+_0xb65e4b:'',_0x3124dc=_0x14bbdf['currentBranch']?_0x5302cd['zgfaT']:'',_0x1025d9=_0x14bbdf['includeDeleted']?_0x5302cd['ZMZaq']:'';console[_0x435ce2(0xc9)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x4fb6c9+_0x1308a8+_0x3124dc+_0x1025d9);}}export async function featureShow(_0xd2c3fc){const _0x440208=_0x51d3,_0x1e5b09={'DDjhj':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x41e687=_0xd2c3fc||await getActiveFeatureId();if(!_0x41e687)throw new Error(_0x1e5b09['DDjhj']);const _0x5d8427=await getFeature(_0x41e687);displayFeature(_0x5d8427,_0x5d8427[_0x440208(0x105)]);}function _0x51d3(_0x1bcc53,_0x5ef1b4){_0x1bcc53=_0x1bcc53-0xa0;const _0x3d4987=_0x3d49();let _0x51d349=_0x3d4987[_0x1bcc53];return _0x51d349;}export async function featureResume(_0x474de5){const _0xdfef03=_0x51d3,_0x7a34dc={'HqSNo':function(_0x5eca2e,_0x5bc180,_0x321d4c){return _0x5eca2e(_0x5bc180,_0x321d4c);},'KJqek':function(_0x4fce6c,_0x5a9279){return _0x4fce6c(_0x5a9279);},'NkDQw':function(_0x54a57d){return _0x54a57d();},'jfHGY':function(_0x6f9777,_0x9e9fb){return _0x6f9777&&_0x9e9fb;},'tFeyw':_0xdfef03(0x141),'dwCuP':function(_0x3dffcd,_0x4a46ad){return _0x3dffcd||_0x4a46ad;},'JwdEo':_0xdfef03(0xa5),'slPrj':function(_0xba9265,_0xe9d18c){return _0xba9265===_0xe9d18c;},'rxRih':function(_0x2985ef,_0xc96582){return _0x2985ef===_0xc96582;},'mArjO':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','GcGQF':function(_0x421811,_0x3b1887){return _0x421811(_0x3b1887);},'lskZC':_0xdfef03(0x114),'xcQwZ':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','CbiZU':function(_0x1e43b9,_0x1bcb86,_0x143314){return _0x1e43b9(_0x1bcb86,_0x143314);},'WOlKj':function(_0x271068,_0x2193c3){return _0x271068(_0x2193c3);}};if(_0x474de5){const _0x3102f9=await getFeature(_0x474de5);await setActiveFeatureId(_0x3102f9['id']);const _0x3bb960=getGitBranch();_0x3bb960&&_0x3bb960!==_0x3102f9['gitBranch']&&(await _0x7a34dc['HqSNo'](updateFeature,_0x3102f9['id'],{'gitBranch':_0x3bb960}),console[_0xdfef03(0xc9)](_0xdfef03(0xc1)+_0x3bb960));console['log'](_0xdfef03(0x152)+_0x3102f9['name']+'\x20('+_0x3102f9['id']+')'),await _0x7a34dc['KJqek'](tryStartCurrentSession,_0x3102f9['id']);const _0x51e589=process['env']['CLAUDE_SESSION_ID'];_0x51e589&®isterSession(_0x51e589,_0x3102f9['id']);_0x7a34dc['HqSNo'](displayFeature,_0x3102f9,_0x3102f9['checklistItems']),await _0x7a34dc[_0xdfef03(0x149)](printFeedbackNudge,_0x3102f9['id']);return;}const _0x420695=getGitRepoUrl(),_0x11c0dc=_0x7a34dc['NkDQw'](getGitBranch);if(_0x7a34dc[_0xdfef03(0x133)](!_0x420695,!_0x11c0dc))throw new Error(_0x7a34dc[_0xdfef03(0x14d)]);console[_0xdfef03(0xc9)](_0xdfef03(0xe8)+_0x7a34dc['dwCuP'](_0x420695,'any')+_0xdfef03(0xcf)+_0x7a34dc['dwCuP'](_0x11c0dc,_0x7a34dc['JwdEo'])+'...');const _0x5d82a0=await listFeatures({'gitRepoUrl':_0x420695,'gitBranch':_0x11c0dc}),_0x59ba20=_0x5d82a0['items']['filter'](_0x537dec=>!_0x537dec['completedAt']);if(_0x7a34dc[_0xdfef03(0x160)](_0x59ba20[_0xdfef03(0xb3)],0x0)){console[_0xdfef03(0xc9)](_0xdfef03(0x139)),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x3a88d3;if(_0x7a34dc['rxRih'](_0x59ba20['length'],0x1))_0x3a88d3=_0x59ba20[0x0];else{const _0x3ccb74=process[_0xdfef03(0xca)]['isTTY']&&process['stdout']['isTTY'];if(!_0x3ccb74){console[_0xdfef03(0xc9)](_0x7a34dc[_0xdfef03(0xae)]);for(const _0x37bd37 of _0x59ba20){console[_0xdfef03(0xc9)]('\x20\x20'+_0x37bd37[_0xdfef03(0x163)]),console[_0xdfef03(0xc9)]('\x20\x20\x20\x20\x20ID:\x20'+_0x37bd37['id']),_0x37bd37['stats']&&console[_0xdfef03(0xc9)]('\x20\x20\x20\x20\x20Progress:\x20'+_0x7a34dc['GcGQF'](getProgressDisplay,_0x37bd37['stats'])),_0x37bd37['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x37bd37[_0xdfef03(0x168)]);}throw new Error(_0xdfef03(0x10a));}const {selected:_0x198552}=await _0x31b5bd[_0xdfef03(0xe3)]([{'type':_0x7a34dc[_0xdfef03(0x14b)],'name':_0xdfef03(0x10f),'message':_0x7a34dc[_0xdfef03(0x127)],'choices':_0x59ba20[_0xdfef03(0xf0)](_0x115d13=>({'name':_0x115d13[_0xdfef03(0x163)]+'\x20('+_0x115d13['id']+')','value':_0x115d13['id']}))}]);_0x3a88d3=_0x59ba20[_0xdfef03(0x169)](_0x2ad7f6=>_0x2ad7f6['id']===_0x198552);}await _0x7a34dc['GcGQF'](setActiveFeatureId,_0x3a88d3['id']);_0x11c0dc&&_0x11c0dc!==_0x3a88d3['gitBranch']&&(await _0x7a34dc['CbiZU'](updateFeature,_0x3a88d3['id'],{'gitBranch':_0x11c0dc}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x11c0dc));console[_0xdfef03(0xc9)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3a88d3[_0xdfef03(0x163)]+'\x20('+_0x3a88d3['id']+')'),await tryStartCurrentSession(_0x3a88d3['id']);const _0x40aad2=await _0x7a34dc['WOlKj'](getFeature,_0x3a88d3['id']),_0x35f253=process[_0xdfef03(0xf4)]['CLAUDE_SESSION_ID'];_0x35f253&®isterSession(_0x35f253,_0x40aad2['id']),_0x7a34dc[_0xdfef03(0x109)](displayFeature,_0x40aad2,_0x40aad2['checklistItems']),await printFeedbackNudge(_0x40aad2['id']);}async function printFeedbackNudge(_0x3a63a7){const _0x3f71f6=_0x51d3,_0x35315c={'UcdFx':function(_0x339e68,_0x1adf6b,_0x570d3b){return _0x339e68(_0x1adf6b,_0x570d3b);},'reUxZ':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x2ef697}=await getActionItems(_0x3a63a7);let _0x1b22be=0x0,_0x1ce568=0x0;for(const _0x2ef344 of _0x2ef697){const _0x53ed24=await _0x35315c[_0x3f71f6(0xf9)](getItemFeedback,_0x3a63a7,_0x2ef344['id']);_0x53ed24[_0x3f71f6(0x11f)]['length']>0x0&&(_0x1b22be+=_0x53ed24['unaddressedComments']['length'],_0x1ce568++);}_0x1b22be>0x0&&(console[_0x3f71f6(0xc9)](_0x3f71f6(0xaf)+_0x1b22be+_0x3f71f6(0x13b)+_0x1ce568+_0x3f71f6(0xd6)),console[_0x3f71f6(0xc9)](_0x35315c['reUxZ']));}catch{}}async function tryStartCurrentSession(_0x46fb2f){const _0x3c4b4c=_0x51d3,_0x2290f4={'ttUrQ':function(_0x2cd1c7,_0x219c90,_0x261f7b){return _0x2cd1c7(_0x219c90,_0x261f7b);}};try{const {sessions:_0x2bc49b}=await listFeatureSessions(_0x46fb2f),_0x593d11=_0x2bc49b['find'](_0x7c86fc=>_0x7c86fc[_0x3c4b4c(0x13c)]===_0x3c4b4c(0x11a));_0x593d11&&(await _0x2290f4[_0x3c4b4c(0x150)](startSession,_0x46fb2f,_0x593d11['id']),console['log'](_0x3c4b4c(0xc8)+_0x593d11[_0x3c4b4c(0x112)]));}catch{}}export async function featureReport(_0x18fcbf,_0x4674dd){const _0x3fa732=_0x51d3,_0x3df90d={'ViMoC':function(_0x36f65d){return _0x36f65d();},'LgKOr':_0x3fa732(0x14c),'BkgxX':_0x3fa732(0x13f),'KCvOU':function(_0x811ed8,_0x9f148e,_0x145bf4){return _0x811ed8(_0x9f148e,_0x145bf4);},'uCTPh':function(_0x55f0ea,_0x378195,_0xf7621b,_0x15a51f){return _0x55f0ea(_0x378195,_0xf7621b,_0x15a51f);},'VLrdK':function(_0x507d0f){return _0x507d0f();},'gpZlZ':function(_0xeba50f,_0x493420){return _0xeba50f(_0x493420);}},_0x52371d=_0x18fcbf||await _0x3df90d[_0x3fa732(0x104)](getActiveFeatureId);if(!_0x52371d)throw new Error(_0x3df90d['LgKOr']);console[_0x3fa732(0xc9)](_0x3df90d['BkgxX']);const _0x1a2803=await _0x3df90d['KCvOU'](getFeatureReportMarkdown,_0x52371d,{'style':_0x4674dd[_0x3fa732(0x12d)]}),_0x2a68fb=_0x4674dd['output']||_0x3df90d[_0x3fa732(0x126)](join,_0x3df90d['VLrdK'](getRangerDir),_0x3fa732(0xb6),_0x52371d+_0x3fa732(0x144)),_0x53589d=_0x3df90d[_0x3fa732(0x153)](join,_0x2a68fb,'..');!_0x3df90d[_0x3fa732(0xa2)](existsSync,_0x53589d)&&await mkdir(_0x53589d,{'recursive':!![]}),await writeFile(_0x2a68fb,_0x1a2803,'utf-8'),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x2a68fb);}export async function featureReportPrDescription(_0x25ae14,_0x521dce){const _0x3b453c=_0x51d3,_0x51a539={'KSkZa':function(_0x4bbe22){return _0x4bbe22();},'aZuPE':_0x3b453c(0x14c),'NYrWQ':function(_0x16fc9e,_0x21cff7,_0x510f32){return _0x16fc9e(_0x21cff7,_0x510f32);},'OZqaZ':function(_0x5c59e6,_0x1f429e){return _0x5c59e6===_0x1f429e;},'vFbbR':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','gkPhB':function(_0x3c840d,_0x268208){return _0x3c840d>_0x268208;},'krpNU':function(_0x358018,_0x4bf393){return _0x358018<_0x4bf393;},'CzZPD':function(_0xaf300f,_0x2a6bf9){return _0xaf300f+_0x2a6bf9;}},_0x2eac66=_0x25ae14||await _0x51a539[_0x3b453c(0x135)](getActiveFeatureId);if(!_0x2eac66)throw new Error(_0x51a539['aZuPE']);const _0x5d6933=await getFeature(_0x2eac66),_0x505d7e=_0x5d6933[_0x3b453c(0x105)]||[],_0x2d1400=_0x51a539['NYrWQ'](getCurrentSessionItems,_0x5d6933,_0x505d7e);_0x51a539['OZqaZ'](_0x2d1400['length'],0x0)&&(console['error'](_0x51a539[_0x3b453c(0xa8)]),process[_0x3b453c(0xfd)](0x1));const _0x2613a8=_0x521dce[_0x3b453c(0xc4)]??[],_0x10bc53=_0x2613a8[_0x3b453c(0x15d)](_0x2d2e93=>!Number['isInteger'](_0x2d2e93)||_0x2d2e93<0x1||_0x2d2e93>_0x2d1400[_0x3b453c(0xb3)]);if(_0x51a539[_0x3b453c(0x10b)](_0x10bc53['length'],0x0)){console['error'](_0x3b453c(0x100)+_0x10bc53['join'](',\x20')),console['log'](_0x3b453c(0x15b));for(let _0x324dc8=0x0;_0x51a539['krpNU'](_0x324dc8,_0x2d1400['length']);_0x324dc8++){console[_0x3b453c(0xc9)]('\x20\x20'+_0x51a539[_0x3b453c(0xb5)](_0x324dc8,0x1)+'.\x20'+_0x2d1400[_0x324dc8][_0x3b453c(0xbf)]);}process['exit'](0x1);}const _0x2ea6e2=new Set(_0x2613a8['map'](_0x2127bb=>_0x2127bb-0x1)),_0x54dc96=_0x2d1400[_0x3b453c(0x15d)]((_0x54b98d,_0x571d1d)=>!_0x2ea6e2['has'](_0x571d1d));_0x51a539[_0x3b453c(0x101)](_0x54dc96[_0x3b453c(0xb3)],0x0)&&(console['error'](_0x3b453c(0xdb)),process['exit'](0x1));const _0x4ced75=await getFeatureReportMarkdown(_0x2eac66,{'itemIds':_0x54dc96['map'](_0x3a2503=>_0x3a2503['id'])});process[_0x3b453c(0x15f)][_0x3b453c(0xf3)](_0x4ced75['trimEnd']()+'\x0a');}export async function featureConcludeSession(_0x1fd5ef){const _0x5998ad=_0x51d3,_0xa74297={'qMAVq':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','njNTo':function(_0x1297b4,_0x3e9357){return _0x1297b4(_0x3e9357);},'cOYbO':_0x5998ad(0x10d),'Byvwy':'\x0a✅\x20Session\x20is\x20already\x20completed.','oiyIv':function(_0x1b1a02,_0x124131){return _0x1b1a02!==_0x124131;}},_0x1a18fc=_0x1fd5ef||await getActiveFeatureId();if(!_0x1a18fc)throw new Error(_0xa74297['qMAVq']);const _0x53640b=await _0xa74297[_0x5998ad(0xe1)](getFeature,_0x1a18fc);if(!_0x53640b['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x4560b7}=await _0xa74297[_0x5998ad(0xe1)](listFeatureSessions,_0x1a18fc),_0x52e0f5=_0x4560b7[_0x5998ad(0x169)](_0x5fbb04=>_0x5fbb04['id']===_0x53640b['currentSessionId']);if(!_0x52e0f5)throw new Error(_0xa74297[_0x5998ad(0x13a)]);if(_0x52e0f5[_0x5998ad(0x13c)]===_0x5998ad(0x120)){console[_0x5998ad(0xc9)](_0xa74297[_0x5998ad(0x108)]);return;}if(_0xa74297['oiyIv'](_0x52e0f5[_0x5998ad(0x13c)],_0x5998ad(0xfc)))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x52e0f5['status']);console[_0x5998ad(0xc9)]('\x0aConcluding\x20session...'),await concludeSession(_0x1a18fc,_0x53640b['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x52e0f5[_0x5998ad(0x112)]+'\x20concluded.'),console['log'](_0x5998ad(0xb8));}export async function featureSessions(_0x5f58c9){const _0x145363=_0x51d3,_0x174a18={'stdCd':function(_0x237048){return _0x237048();},'QUrWm':function(_0x53a5fd,_0x3cbb7b){return _0x53a5fd(_0x3cbb7b);},'EBciL':function(_0x4617d7,_0x52481b){return _0x4617d7===_0x52481b;},'NFoBM':_0x145363(0x120),'YvCuE':_0x145363(0xfc)},_0x2fa4ff=_0x5f58c9||await _0x174a18[_0x145363(0x142)](getActiveFeatureId);if(!_0x2fa4ff)throw new Error(_0x145363(0x14c));const _0xc5bb27=await getFeature(_0x2fa4ff);console[_0x145363(0xc9)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0xc5bb27['name']+'\x0a');const {sessions:_0x55d65c}=await _0x174a18['QUrWm'](listFeatureSessions,_0x2fa4ff);if(_0x174a18[_0x145363(0x11b)](_0x55d65c[_0x145363(0xb3)],0x0)){console[_0x145363(0xc9)](_0x145363(0xbc));return;}for(const _0x3d035a of _0x55d65c){const _0x5a8fa0=_0x3d035a['status']===_0x174a18['NFoBM']?'✅':_0x174a18['EBciL'](_0x3d035a[_0x145363(0x13c)],_0x174a18['YvCuE'])?'🔄':'▶️';console[_0x145363(0xc9)](_0x5a8fa0+_0x145363(0xc0)+_0x3d035a['iteration']+'\x20('+_0x3d035a['id']+')'),console[_0x145363(0xc9)]('\x20\x20\x20Status:\x20'+_0x3d035a[_0x145363(0x13c)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3d035a['createdAt'])['toLocaleString']()),_0x3d035a[_0x145363(0x110)]&&console[_0x145363(0xc9)]('\x20\x20\x20Completed:\x20'+new Date(_0x3d035a[_0x145363(0x110)])[_0x145363(0xfe)]()),console['log']('');}}export async function featureAddScenario(_0x196e9c,_0x558d54){const _0x31626f=_0x51d3,_0x177afa={'pBwup':function(_0x2ced9b,_0x4ec696){return _0x2ced9b(_0x4ec696);}},_0x35cb57=_0x558d54||await getActiveFeatureId();if(!_0x35cb57)throw new Error(_0x31626f(0x13e));const _0x507f98=await _0x177afa[_0x31626f(0x13d)](getFeature,_0x35cb57);if(_0x507f98['latestReview']&&!_0x507f98['latestReview']['submittedAt'])throw new Error(_0x31626f(0xdd)+_0x507f98[_0x31626f(0xaa)]);await createChecklistItem(_0x35cb57,_0x196e9c);const _0x1e3c48=await getFeature(_0x35cb57);console['log'](_0x31626f(0x118)),displayFeature(_0x1e3c48,_0x1e3c48['checklistItems']);}export async function featureEditScenario(_0x987805,_0x4a2b14){const _0x1fd390=_0x51d3,_0x8258e2={'nGhhW':function(_0xd44bed){return _0xd44bed();},'MlLkG':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','igjKd':function(_0x139aee,_0x433727){return _0x139aee(_0x433727);},'SKqNw':_0x1fd390(0x12a),'rLZzg':function(_0x4bd0b7,_0x75337e){return _0x4bd0b7<_0x75337e;},'RmpsK':function(_0x26f7a1,_0x3de894){return _0x26f7a1-_0x3de894;},'GIlmh':function(_0x12b159,_0x69644b){return _0x12b159<_0x69644b;},'PmOvO':'\x0aAvailable\x20scenarios:','hbqeo':function(_0x3c8ae7,_0x5a5f20){return _0x3c8ae7<_0x5a5f20;},'URsRu':function(_0x38a46c,_0x56ad89,_0x200dac,_0x11a431){return _0x38a46c(_0x56ad89,_0x200dac,_0x11a431);}},_0x4985f9=_0x4a2b14['id']||await _0x8258e2[_0x1fd390(0x10e)](getActiveFeatureId);!_0x4985f9&&(console[_0x1fd390(0x16a)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x8258e2['MlLkG']),process[_0x1fd390(0xfd)](0x1));const _0x350d62=await _0x8258e2[_0x1fd390(0xf1)](getFeature,_0x4985f9);_0x350d62['latestReview']&&!_0x350d62['latestReview'][_0x1fd390(0x146)]&&(console['error']('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x1fd390(0x16a)](_0x8258e2[_0x1fd390(0x10c)]),console['error']('\x20\x20'+_0x350d62['dashboardUrl']),process[_0x1fd390(0xfd)](0x1));const _0x183c59=_0x350d62['checklistItems']||[];_0x183c59[_0x1fd390(0xb3)]===0x0&&(console['error'](_0x1fd390(0xee)),process[_0x1fd390(0xfd)](0x1));if(_0x4a2b14[_0x1fd390(0x156)]===undefined){console[_0x1fd390(0x16a)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x1fd390(0xc9)](_0x1fd390(0x15b));for(let _0x436d64=0x0;_0x8258e2[_0x1fd390(0x161)](_0x436d64,_0x183c59['length']);_0x436d64++){console['log']('\x20\x20'+(_0x436d64+0x1)+'.\x20'+_0x183c59[_0x436d64][_0x1fd390(0xbf)]);}process['exit'](0x1);}const _0x2c6f82=_0x8258e2[_0x1fd390(0xea)](_0x4a2b14['scenario'],0x1);if(_0x8258e2['GIlmh'](_0x2c6f82,0x0)||_0x2c6f82>=_0x183c59[_0x1fd390(0xb3)]){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x4a2b14['scenario']+_0x1fd390(0x123)+_0x183c59['length']+_0x1fd390(0xd0)),console['log'](_0x8258e2['PmOvO']);for(let _0x852de=0x0;_0x8258e2['hbqeo'](_0x852de,_0x183c59['length']);_0x852de++){console[_0x1fd390(0xc9)]('\x20\x20'+(_0x852de+0x1)+'.\x20'+_0x183c59[_0x852de]['description']);}process['exit'](0x1);}const _0x3a7692=_0x183c59[_0x2c6f82];await _0x8258e2[_0x1fd390(0xa9)](updateChecklistItem,_0x4985f9,_0x3a7692['id'],{'description':_0x987805});const _0x283c99=await _0x8258e2[_0x1fd390(0xf1)](getFeature,_0x4985f9);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x283c99,_0x283c99['checklistItems']);}async function downloadFeedbackImage(_0x1a2493,_0x527cad){const _0x536bd5=_0x51d3,_0x133574={'rWJUD':function(_0x21ac24,_0x50802c,_0x549850){return _0x21ac24(_0x50802c,_0x549850);},'LLaTW':function(_0x44cfc9){return _0x44cfc9();},'gDWvg':'feedback-images','ocDmK':function(_0x585286,_0x59731f,_0x55b075){return _0x585286(_0x59731f,_0x55b075);},'imcwu':function(_0x2d2d55,_0x5776e5,_0x4026f9){return _0x2d2d55(_0x5776e5,_0x4026f9);}};try{const _0x4d72b3=_0x133574['rWJUD'](join,_0x133574[_0x536bd5(0x12c)](getRangerDir),_0x133574[_0x536bd5(0xc2)]);await _0x133574['ocDmK'](mkdir,_0x4d72b3,{'recursive':!![]});const _0x582774=_0x133574[_0x536bd5(0xd8)](join,_0x4d72b3,'comment_'+_0x527cad+'.png'),_0x39fbc7=await fetch(_0x1a2493);if(!_0x39fbc7['ok'])return null;const _0xc9896f=Buffer[_0x536bd5(0xf2)](await _0x39fbc7[_0x536bd5(0xe4)]());return await writeFile(_0x582774,_0xc9896f),_0x582774;}catch{return null;}}export async function featureGetReview(_0x5b2e2f){const _0x29c3cb=_0x51d3,_0x21b4dd={'caohl':function(_0x36aa35){return _0x36aa35();},'VWdxv':function(_0x2cc225,_0x2b8764){return _0x2cc225(_0x2b8764);},'xKppm':function(_0x16902b,_0x28079f){return _0x16902b===_0x28079f;},'fSqNS':_0x29c3cb(0x145),'XtVoM':function(_0x5b6186,_0x1f532e,_0x1f034b){return _0x5b6186(_0x1f532e,_0x1f034b);},'dacxT':function(_0x2cc1a8,_0x320101){return _0x2cc1a8>_0x320101;},'SKuXH':function(_0x3d299a,_0x244e61){return _0x3d299a+_0x244e61;},'ZgJiD':'en-US','RhQJp':'short','ivdGA':'numeric','faPHz':_0x29c3cb(0x162),'ebhYj':'element','gDGir':function(_0xb4d412,_0x4fad7a){return _0xb4d412===_0x4fad7a;},'xCefz':function(_0x6436e6,_0x1436d3){return _0x6436e6>=_0x1436d3;}},_0x2cbb46=_0x5b2e2f||await _0x21b4dd[_0x29c3cb(0xb4)](getActiveFeatureId);if(!_0x2cbb46)throw new Error(_0x29c3cb(0x13e));const _0x2ec718=await _0x21b4dd['VWdxv'](getFeature,_0x2cbb46),{items:_0x4bfbfb}=await getActionItems(_0x2cbb46);console[_0x29c3cb(0xc9)](_0x29c3cb(0x12b)+_0x2ec718['name']+'\x20('+_0x2ec718['id']+')\x0a');if(_0x21b4dd['xKppm'](_0x4bfbfb['length'],0x0)){console[_0x29c3cb(0xc9)](_0x21b4dd['fSqNS']);return;}for(let _0x8fe0fa=0x0;_0x8fe0fa<_0x4bfbfb['length'];_0x8fe0fa++){const _0x447476=_0x4bfbfb[_0x8fe0fa],_0x186801=_0x447476[_0x29c3cb(0xe9)]>0x1?'\x20(v'+_0x447476[_0x29c3cb(0xe9)]+')':'',_0x1a8438=await _0x21b4dd[_0x29c3cb(0xc7)](getItemFeedback,_0x2cbb46,_0x447476['id']);if(_0x21b4dd[_0x29c3cb(0xa7)](_0x1a8438[_0x29c3cb(0x11f)]['length'],0x0)){console['log']('Scenario\x20'+_0x21b4dd[_0x29c3cb(0xd1)](_0x8fe0fa,0x1)+':\x20\x22'+_0x447476[_0x29c3cb(0xbf)]+'\x22'+_0x186801+_0x29c3cb(0xbd)+_0x1a8438[_0x29c3cb(0x11f)][_0x29c3cb(0xb3)]+'\x20unaddressed\x20comment(s)');for(const _0x3b8cc9 of _0x1a8438['unaddressedComments']){const _0x15c0ac=new Date(_0x3b8cc9['createdAt'])[_0x29c3cb(0x165)](_0x21b4dd['ZgJiD'],{'month':_0x21b4dd['RhQJp'],'day':_0x21b4dd[_0x29c3cb(0x151)]}),_0x420e2c=_0x3b8cc9[_0x29c3cb(0xe0)]||_0x3b8cc9['authorEmail']||_0x21b4dd['faPHz'];console[_0x29c3cb(0xc9)]('\x20\x20💬\x20'+_0x420e2c+'\x20('+_0x15c0ac+_0x29c3cb(0x128)+_0x3b8cc9[_0x29c3cb(0xa6)]+'\x22');if(_0x3b8cc9['assetUrl']){const _0x10a92f=await downloadFeedbackImage(_0x3b8cc9[_0x29c3cb(0x14f)],_0x3b8cc9['id']);_0x10a92f&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x10a92f);}if(_0x3b8cc9[_0x29c3cb(0x155)]){const _0x42807b=_0x3b8cc9[_0x29c3cb(0x155)]['selector'][_0x29c3cb(0x166)]('\x20>\x20')['pop']()?.[_0x29c3cb(0x166)](':')[0x0]||_0x21b4dd['ebhYj'],_0x1def0c=_0x3b8cc9[_0x29c3cb(0x155)][_0x29c3cb(0x102)]?'\x20\x22'+_0x3b8cc9[_0x29c3cb(0x155)][_0x29c3cb(0x102)]['slice'](0x0,0x3c)+'\x22':'';console[_0x29c3cb(0xc9)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x42807b+'>'+_0x1def0c),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3b8cc9['domRef'][_0x29c3cb(0x143)]);}else{if(_0x3b8cc9['spatial']){const _0x332dee=_0x3b8cc9['spatial'][_0x29c3cb(0x164)];_0x21b4dd[_0x29c3cb(0xe5)](_0x3b8cc9[_0x29c3cb(0x14a)]['type'],'point')&&_0x21b4dd['xCefz'](_0x332dee['length'],0x2)?console[_0x29c3cb(0xc9)](_0x29c3cb(0xcd)+_0x332dee[0x0]['toFixed'](0x2)+',\x20'+_0x332dee[0x1][_0x29c3cb(0xe6)](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3b8cc9[_0x29c3cb(0x14a)][_0x29c3cb(0x122)]+_0x29c3cb(0x154)+_0x332dee['map'](_0x3d9101=>_0x3d9101[_0x29c3cb(0xe6)](0x2))['join'](',\x20')+']');}}}if(_0x1a8438[_0x29c3cb(0x12e)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x2bc536 of _0x1a8438[_0x29c3cb(0x12e)][_0x29c3cb(0x166)]('\x0a')){console[_0x29c3cb(0xc9)](_0x29c3cb(0xff)+_0x2bc536);}}}else console['log']('Scenario\x20'+_0x21b4dd[_0x29c3cb(0xd1)](_0x8fe0fa,0x1)+':\x20\x22'+_0x447476['description']+'\x22'+_0x186801+'\x20—\x20no\x20comments'),console[_0x29c3cb(0xc9)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x50f6af){const _0x35c6eb=_0x51d3,_0x1c6c7c={'zLLvH':_0x35c6eb(0x13e),'ZLOzH':function(_0x1837ac,_0xc48af6){return _0x1837ac(_0xc48af6);},'vCZpw':function(_0x40791b,_0x50a6e3){return _0x40791b+_0x50a6e3;}},_0x14ddb4=_0x50f6af||await getActiveFeatureId();if(!_0x14ddb4)throw new Error(_0x1c6c7c[_0x35c6eb(0x158)]);const _0x5a1533=await getFeature(_0x14ddb4);await _0x1c6c7c['ZLOzH'](softDeleteFeature,_0x14ddb4),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x5a1533['name']+'\x20('+_0x14ddb4+')'),console[_0x35c6eb(0xc9)](_0x1c6c7c['vCZpw']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20',_0x14ddb4));}export async function featureRestore(_0x56858a){const _0xeb157=_0x51d3,_0x34aaf6={'ikMFD':function(_0x28ac85,_0x4c667a){return _0x28ac85(_0x4c667a);}};await restoreFeature(_0x56858a);const _0x4fd5d1=await _0x34aaf6[_0xeb157(0xce)](getFeature,_0x56858a);console[_0xeb157(0xc9)](_0xeb157(0xe2)+_0x4fd5d1[_0xeb157(0x163)]+'\x20('+_0x56858a+')'),displayFeature(_0x4fd5d1,_0x4fd5d1['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30fdb3,_0x51033b){const _0x495227=_0x5da5,_0xb65708=_0x30fdb3();while(!![]){try{const _0x37934a=-parseInt(_0x495227(0x18c))/0x1*(-parseInt(_0x495227(0x18f))/0x2)+parseInt(_0x495227(0x186))/0x3*(-parseInt(_0x495227(0x18e))/0x4)+parseInt(_0x495227(0x18b))/0x5*(-parseInt(_0x495227(0x190))/0x6)+-parseInt(_0x495227(0x18a))/0x7+parseInt(_0x495227(0x181))/0x8*(parseInt(_0x495227(0x183))/0x9)+parseInt(_0x495227(0x188))/0xa*(parseInt(_0x495227(0x189))/0xb)+parseInt(_0x495227(0x182))/0xc*(parseInt(_0x495227(0x184))/0xd);if(_0x37934a===_0x51033b)break;else _0xb65708['push'](_0xb65708['shift']());}catch(_0x1107a4){_0xb65708['push'](_0xb65708['shift']());}}}(_0x3d31,0x95631));function _0x5da5(_0x4e7c6f,_0x2cea34){_0x4e7c6f=_0x4e7c6f-0x181;const _0x3d31d2=_0x3d31();let _0x5da58d=_0x3d31d2[_0x4e7c6f];return _0x5da58d;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x3d31(){const _0x5f027f=['20fRyxOt','138108rSxXYg','14820XfVKkG','794224VRnqvG','655212eJzafe','9WycYsI','429AintIq','error','447891bzfvFT','Unknown\x20hook:\x20','2220830OvelNc','33riFqbt','7714980ImBauG','1055lScRIP','6bWoEVz','keys'];_0x3d31=function(){return _0x5f027f;};return _0x3d31();}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};export async function hook(_0x16449f,_0x483982){const _0x3e2baf=_0x5da5,_0x9898fc=HOOKS[_0x16449f];if(!_0x9898fc){const _0x5b4a98=Object[_0x3e2baf(0x18d)](HOOKS)['join'](',\x20');console[_0x3e2baf(0x185)](_0x3e2baf(0x187)+_0x16449f),console[_0x3e2baf(0x185)]('Valid\x20hooks:\x20'+_0x5b4a98),process['exit'](0x1);}await _0x9898fc(_0x483982);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1023(_0x26e556,_0x57bb24){_0x26e556=_0x26e556-0x1f2;const _0x1b6417=_0x1b64();let _0x1023d3=_0x1b6417[_0x26e556];return _0x1023d3;}const _0x1edea1=_0x1023;function _0x1b64(){const _0x36a8cd=['854CPnDxt','3667450vDiekf','1564045CkEVTp','\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.','13595148UBnWav','8102080ChIDvn','83622nuvzBO','8WeeIMp','2270JlkGcZ','888085THoCRb','3042DaCoko'];_0x1b64=function(){return _0x36a8cd;};return _0x1b64();}(function(_0x360945,_0x1fb781){const _0x15d441=_0x1023,_0x579904=_0x360945();while(!![]){try{const _0x3aeff6=parseInt(_0x15d441(0x1f3))/0x1+parseInt(_0x15d441(0x1f2))/0x2*(parseInt(_0x15d441(0x1f4))/0x3)+-parseInt(_0x15d441(0x1fc))/0x4*(parseInt(_0x15d441(0x1f7))/0x5)+-parseInt(_0x15d441(0x1fb))/0x6*(-parseInt(_0x15d441(0x1f5))/0x7)+-parseInt(_0x15d441(0x1fa))/0x8+-parseInt(_0x15d441(0x1f9))/0x9+parseInt(_0x15d441(0x1f6))/0xa;if(_0x3aeff6===_0x1fb781)break;else _0x579904['push'](_0x579904['shift']());}catch(_0x4ec797){_0x579904['push'](_0x579904['shift']());}}}(_0x1b64,0xe9a9c));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x1edea1(0x1f8);export async function autoPrompt(){const _0xf3860f={'vjkde':function(_0x115d5d,_0x1fa16b){return _0x115d5d(_0x1fa16b);}},_0x2dc73d=await readHookInput(),_0xe6e021=_0x2dc73d?.['session_id'];if(!_0xe6e021)return;if(_0xf3860f['vjkde'](isSessionEnabled,_0xe6e021)||_0xf3860f['vjkde'](hasSessionBeenPrompted,_0xe6e021))return;markSessionPrompted(_0xe6e021),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x9588(){const _0x2cf862=['Error:\x20No\x20session\x20ID\x20available.','CLAUDE_SESSION_ID','OAdsP','.\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`.','112YptvYK','12687966CxCZAx','2144490bMTWbu','2414140LSrFZd','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','9369280nmNLTv','4102376jkengp','master','AeViM','10YHDXrK','main','3SMtbQd','382542xetYPV','\x20and\x20branch\x20\x27','731418EHvONp'];_0x9588=function(){return _0x2cf862;};return _0x9588();}function _0x1c5d(_0x4bcd49,_0x1536dd){_0x4bcd49=_0x4bcd49-0x149;const _0x9588f6=_0x9588();let _0x1c5da7=_0x9588f6[_0x4bcd49];return _0x1c5da7;}(function(_0x20feef,_0x286dba){const _0x3ab12b=_0x1c5d,_0x11c3b6=_0x20feef();while(!![]){try{const _0x47f793=-parseInt(_0x3ab12b(0x158))/0x1+parseInt(_0x3ab12b(0x14d))/0x2+parseInt(_0x3ab12b(0x155))/0x3*(-parseInt(_0x3ab12b(0x150))/0x4)+parseInt(_0x3ab12b(0x14c))/0x5+parseInt(_0x3ab12b(0x156))/0x6*(parseInt(_0x3ab12b(0x14a))/0x7)+parseInt(_0x3ab12b(0x14f))/0x8+parseInt(_0x3ab12b(0x14b))/0x9*(-parseInt(_0x3ab12b(0x153))/0xa);if(_0x47f793===_0x286dba)break;else _0x11c3b6['push'](_0x11c3b6['shift']());}catch(_0x5a0e83){_0x11c3b6['push'](_0x11c3b6['shift']());}}}(_0x9588,0xa13e6));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x1db396){const _0x368a29=_0x1c5d,_0x803b8a={'OAdsP':_0x368a29(0x159),'MNyay':function(_0x913ddd){return _0x913ddd();},'AeViM':function(_0x575e0b,_0x4d86ee){return _0x575e0b!==_0x4d86ee;}},_0x3a5ad9=_0x1db396||process['env'][_0x368a29(0x15a)]||'';!_0x3a5ad9&&(console['error'](_0x803b8a[_0x368a29(0x15b)]),console['error']('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process['exit'](0x1));disableSession(_0x3a5ad9);const _0x5233d1=_0x803b8a['MNyay'](getCurrentBranch);_0x5233d1&&_0x803b8a['AeViM'](_0x5233d1,_0x368a29(0x154))&&_0x803b8a[_0x368a29(0x152)](_0x5233d1,_0x368a29(0x151))&&disableBranch(_0x5233d1),printBlock(_0x368a29(0x14e)+(_0x5233d1&&_0x5233d1!==_0x368a29(0x154)&&_0x5233d1!==_0x368a29(0x151)?_0x368a29(0x157)+_0x5233d1+'\x27':'')+_0x368a29(0x149));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x751e6f,_0x2eecb9){const _0x1d8625=_0x1fec,_0x584bca=_0x751e6f();while(!![]){try{const _0x5bbd9d=-parseInt(_0x1d8625(0x1d6))/0x1+parseInt(_0x1d8625(0x1d1))/0x2*(parseInt(_0x1d8625(0x1cb))/0x3)+-parseInt(_0x1d8625(0x1c0))/0x4+parseInt(_0x1d8625(0x1c4))/0x5*(-parseInt(_0x1d8625(0x1c2))/0x6)+parseInt(_0x1d8625(0x1c8))/0x7+parseInt(_0x1d8625(0x1cd))/0x8+-parseInt(_0x1d8625(0x1cf))/0x9*(parseInt(_0x1d8625(0x1d4))/0xa);if(_0x5bbd9d===_0x2eecb9)break;else _0x584bca['push'](_0x584bca['shift']());}catch(_0x35b703){_0x584bca['push'](_0x584bca['shift']());}}}(_0x43b2,0xd3c3c));function _0x1fec(_0x1c6ec7,_0x52e8f4){_0x1c6ec7=_0x1c6ec7-0x1c0;const _0x43b24e=_0x43b2();let _0x1fecb7=_0x43b24e[_0x1c6ec7];return _0x1fecb7;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0x43b2(){const _0x176fb8=['7658200WvwPpt','\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`.','234qrMpkE','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','14056rGhAMb','Error:\x20No\x20session\x20ID\x20available.','aIgjG','1000690lgzslM','#\x20RANGER\x20ENABLED','331521GfyEjj','error','126952gFAjtl','Djrkg','525816LVoYlm','\x0a\x0a**Branch\x20\x27','5XHqIzd','UMjBY','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','JbLsh','9572122Qzxjvw','PNQrv','#\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`','681VhNxTE','CLAUDE_SESSION_ID'];_0x43b2=function(){return _0x176fb8;};return _0x43b2();}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x365bbd){const _0x4ef87e=_0x1fec,_0x15e3bf={'Djrkg':function(_0x386f36,_0x142432){return _0x386f36(_0x142432);},'RBOZp':function(_0x5d16a8){return _0x5d16a8();},'UMjBY':'ranger\x20setup\x20--opencode','JbLsh':'ranger\x20setup','aIgjG':_0x4ef87e(0x1d0),'ZJaZJ':function(_0x37fce8,_0x2959d4){return _0x37fce8(_0x2959d4);},'FsmOU':function(_0x22263a){return _0x22263a();},'PNQrv':function(_0x5eb87b,_0x42d940){return _0x5eb87b!==_0x42d940;}},_0x18faf8=_0x365bbd||process['env'][_0x4ef87e(0x1cc)]||'';!_0x18faf8&&(console[_0x4ef87e(0x1d7)](_0x4ef87e(0x1d2)),console[_0x4ef87e(0x1d7)]('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process['exit'](0x1));const _0x26c502=_0x15e3bf[_0x4ef87e(0x1c1)](Boolean,_0x365bbd),_0xaa0574=await _0x15e3bf['RBOZp'](getToken);if(!_0xaa0574){const _0x45b7cf=_0x26c502?_0x15e3bf[_0x4ef87e(0x1c5)]:_0x15e3bf[_0x4ef87e(0x1c7)],_0x2858e7=_0x26c502?_0x15e3bf[_0x4ef87e(0x1d3)]:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x15e3bf['ZJaZJ'](printBlock,_0x4ef87e(0x1ca)+_0x45b7cf+_0x4ef87e(0x1c6)+_0x2858e7);return;}try{await update();}catch{}_0x15e3bf['Djrkg'](enableSession,_0x18faf8);const _0x12c5dd=_0x15e3bf['FsmOU'](getCurrentBranch),_0x584211=_0x12c5dd&&_0x15e3bf['PNQrv'](_0x12c5dd,'main')&&_0x15e3bf[_0x4ef87e(0x1c9)](_0x12c5dd,'master')?_0x4ef87e(0x1c3)+_0x12c5dd+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x1d1a96=getRangerSkillContent();printBlock(_0x4ef87e(0x1d5)+_0x584211+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1d1a96+_0x4ef87e(0x1ce));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4d1d(_0x3bbbb6,_0x329d06){_0x3bbbb6=_0x3bbbb6-0x1d2;const _0x275d48=_0x275d();let _0x4d1d9b=_0x275d48[_0x3bbbb6];return _0x4d1d9b;}(function(_0x2bd7a9,_0x3e3115){const _0x2fdf01=_0x4d1d,_0x57b989=_0x2bd7a9();while(!![]){try{const _0xd4866c=parseInt(_0x2fdf01(0x1d3))/0x1*(-parseInt(_0x2fdf01(0x1d5))/0x2)+-parseInt(_0x2fdf01(0x1d9))/0x3+-parseInt(_0x2fdf01(0x1de))/0x4*(parseInt(_0x2fdf01(0x1da))/0x5)+-parseInt(_0x2fdf01(0x1d4))/0x6*(parseInt(_0x2fdf01(0x1d6))/0x7)+-parseInt(_0x2fdf01(0x1dc))/0x8*(parseInt(_0x2fdf01(0x1db))/0x9)+parseInt(_0x2fdf01(0x1dd))/0xa*(-parseInt(_0x2fdf01(0x1d7))/0xb)+parseInt(_0x2fdf01(0x1d2))/0xc;if(_0xd4866c===_0x3e3115)break;else _0x57b989['push'](_0x57b989['shift']());}catch(_0xbddf0d){_0x57b989['push'](_0x57b989['shift']());}}}(_0x275d,0xb0d2d));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x1fd1c4){const _0x84f933=_0x4d1d,_0x1f89d6={'blxrn':function(_0x4779bf,_0x227648){return _0x4779bf(_0x227648);}},_0x27f15f=await getEnabledSessionId(_0x1fd1c4);if(!_0x27f15f)return;_0x1f89d6[_0x84f933(0x1d8)](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}function _0x275d(){const _0x65b3f5=['2272UKJiqr','2660TjYAam','348LJnIJT','72630588hzfkjL','10Htazmd','6pXjzbH','213230InTMGA','9736678xHfehy','40370YOqxbi','blxrn','3356067CvhgUq','44205xHQLXp','225rMsGPx'];_0x275d=function(){return _0x65b3f5;};return _0x275d();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1797ee,_0x8a1cb6){var _0x12cfb8=_0x5464,_0x47dfd9=_0x1797ee();while(!![]){try{var _0x48040b=parseInt(_0x12cfb8(0x1b9))/0x1+parseInt(_0x12cfb8(0x1bb))/0x2*(parseInt(_0x12cfb8(0x1b5))/0x3)+-parseInt(_0x12cfb8(0x1ba))/0x4+-parseInt(_0x12cfb8(0x1bc))/0x5*(-parseInt(_0x12cfb8(0x1b7))/0x6)+-parseInt(_0x12cfb8(0x1b8))/0x7+parseInt(_0x12cfb8(0x1b4))/0x8+parseInt(_0x12cfb8(0x1b3))/0x9*(-parseInt(_0x12cfb8(0x1b6))/0xa);if(_0x48040b===_0x8a1cb6)break;else _0x47dfd9['push'](_0x47dfd9['shift']());}catch(_0x39473d){_0x47dfd9['push'](_0x47dfd9['shift']());}}}(_0x3ba6,0x6a2c7));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x3ba6(){var _0x3f768e=['850zTyqbD','188340jVPLHW','419587skTeNZ','301308YKMDcQ','469540RIjgCl','882amMeIQ','20DHOSsO','61245DJqDxN','3562944zLbQio','2166BmhIFf'];_0x3ba6=function(){return _0x3f768e;};return _0x3ba6();}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';function _0x5464(_0x48a0bc,_0x164ca9){_0x48a0bc=_0x48a0bc-0x1b3;var _0x3ba6eb=_0x3ba6();var _0x546426=_0x3ba6eb[_0x48a0bc];return _0x546426;}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x37c8bb,_0x647874){const _0x5e0e73=_0x51a7,_0x3759a4=_0x37c8bb();while(!![]){try{const _0x37670b=-parseInt(_0x5e0e73(0xfe))/0x1+parseInt(_0x5e0e73(0xf5))/0x2+-parseInt(_0x5e0e73(0xf6))/0x3+-parseInt(_0x5e0e73(0xfa))/0x4*(-parseInt(_0x5e0e73(0xfd))/0x5)+parseInt(_0x5e0e73(0xf1))/0x6*(parseInt(_0x5e0e73(0xfc))/0x7)+parseInt(_0x5e0e73(0xf9))/0x8+-parseInt(_0x5e0e73(0xfb))/0x9*(parseInt(_0x5e0e73(0xf2))/0xa);if(_0x37670b===_0x647874)break;else _0x3759a4['push'](_0x3759a4['shift']());}catch(_0x5efd89){_0x3759a4['push'](_0x3759a4['shift']());}}}(_0x52bf,0xd2ede));function _0x51a7(_0x3b91dc,_0x17c16e){_0x3b91dc=_0x3b91dc-0xf1;const _0x52bf73=_0x52bf();let _0x51a7f1=_0x52bf73[_0x3b91dc];return _0x51a7f1;}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x30e791){const _0x2da4c9=_0x51a7;console[_0x2da4c9(0xf7)](_0x30e791);}export async function readHookInput(){let _0x4a54ff='';for await(const _0x47fb99 of process['stdin']){_0x4a54ff+=_0x47fb99;}try{return JSON['parse'](_0x4a54ff);}catch{return null;}}export async function getEnabledSessionId(_0x3a34c8){const _0x248c80=_0x51a7;if(_0x3a34c8)return isSessionEnabled(_0x3a34c8)?_0x3a34c8:null;const _0x56ef89=await readHookInput(),_0x276e56=_0x56ef89?.[_0x248c80(0xf4)];if(!_0x276e56||!isSessionEnabled(_0x276e56))return null;return _0x276e56;}export async function getEnabledHookContext(_0x1b45ac){const _0x15a1ca=_0x51a7,_0x500aee={'BWwEI':function(_0xbe467,_0x4ece2f){return _0xbe467(_0x4ece2f);},'cCHeM':function(_0x4c1ac5,_0x19ef52){return _0x4c1ac5(_0x19ef52);}};if(_0x1b45ac){if(!_0x500aee[_0x15a1ca(0xf8)](isSessionEnabled,_0x1b45ac))return null;return{'sessionId':_0x1b45ac,'input':{'session_id':_0x1b45ac}};}const _0x3fee4a=await readHookInput(),_0x37fe71=_0x3fee4a?.[_0x15a1ca(0xf4)];if(!_0x37fe71||!_0x500aee[_0x15a1ca(0xf3)](isSessionEnabled,_0x37fe71))return null;return{'sessionId':_0x37fe71,'input':_0x3fee4a};}function _0x52bf(){const _0x50051f=['2122293gudZky','log','BWwEI','8988824hXokFW','464TDanUa','16331940pJvadO','21puYeLy','6835zxFUho','785713YNdGsq','3425424FzFJRF','10IIuOIx','cCHeM','session_id','2353766cMdlVc'];_0x52bf=function(){return _0x50051f;};return _0x52bf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a2ae4,_0x319e61){const _0x18d8d7=_0x11fc,_0xf90009=_0x5a2ae4();while(!![]){try{const _0x32b205=-parseInt(_0x18d8d7(0x15f))/0x1+-parseInt(_0x18d8d7(0x161))/0x2+-parseInt(_0x18d8d7(0x166))/0x3+parseInt(_0x18d8d7(0x160))/0x4*(parseInt(_0x18d8d7(0x164))/0x5)+parseInt(_0x18d8d7(0x15d))/0x6+-parseInt(_0x18d8d7(0x163))/0x7*(parseInt(_0x18d8d7(0x167))/0x8)+parseInt(_0x18d8d7(0x15c))/0x9;if(_0x32b205===_0x319e61)break;else _0xf90009['push'](_0xf90009['shift']());}catch(_0x49f1df){_0xf90009['push'](_0xf90009['shift']());}}}(_0x8d40,0xda99d));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x8d40(){const _0x3eba29=['1528729RbptTT','4564vogksY','2392052FxFzOC','aQjcd','119rbKExn','6240NYrLiM','sessionId','1518339BcfaGr','493920xFuFkH','qZQaf','21695067ydutso','8047836uBTjnC','plan'];_0x8d40=function(){return _0x3eba29;};return _0x8d40();}function _0x11fc(_0x1ed624,_0x14f7d2){_0x1ed624=_0x1ed624-0x15c;const _0x8d40fa=_0x8d40();let _0x11fc2b=_0x8d40fa[_0x1ed624];return _0x11fc2b;}export async function planReminder(_0x1cdbec){const _0x2afd27=_0x11fc,_0x1ccf09={'aQjcd':function(_0x3e5616,_0x19f938){return _0x3e5616(_0x19f938);},'qZQaf':function(_0x2120a9,_0x4c6408){return _0x2120a9(_0x4c6408);}},_0x292fd5=await _0x1ccf09[_0x2afd27(0x162)](getEnabledHookContext,_0x1cdbec);if(!_0x292fd5)return;if(_0x292fd5['input']['permission_mode']!==_0x2afd27(0x15e))return;if(!_0x1ccf09[_0x2afd27(0x162)](shouldShowPlanReminder,_0x292fd5[_0x2afd27(0x165)]))return;_0x1ccf09[_0x2afd27(0x168)](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 _0x1c97(_0xa7c5b2,_0x48ae3a){_0xa7c5b2=_0xa7c5b2-0x16b;const _0x1d13c7=_0x1d13();let _0x1c9704=_0x1d13c7[_0xa7c5b2];return _0x1c9704;}(function(_0x196f82,_0x581f4b){const _0x1cdb40=_0x1c97,_0x285df5=_0x196f82();while(!![]){try{const _0x1ca809=parseInt(_0x1cdb40(0x16d))/0x1*(-parseInt(_0x1cdb40(0x172))/0x2)+parseInt(_0x1cdb40(0x174))/0x3*(parseInt(_0x1cdb40(0x170))/0x4)+-parseInt(_0x1cdb40(0x173))/0x5+parseInt(_0x1cdb40(0x175))/0x6+parseInt(_0x1cdb40(0x16c))/0x7*(-parseInt(_0x1cdb40(0x171))/0x8)+parseInt(_0x1cdb40(0x16f))/0x9+parseInt(_0x1cdb40(0x16e))/0xa;if(_0x1ca809===_0x581f4b)break;else _0x285df5['push'](_0x285df5['shift']());}catch(_0x1d311e){_0x285df5['push'](_0x285df5['shift']());}}}(_0x1d13,0xa901f));function _0x1d13(){const _0x1a570e=['AOLGM','42OaNYgZ','16532lWnjmp','13068610DiwiQn','7613937nKSLBT','8DvvlhF','1723912QmXSii','6edrNun','6781680qAJOER','1501842leLWmk','1422234pnnltu'];_0x1d13=function(){return _0x1a570e;};return _0x1d13();}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x4121fa){const _0x5cc6e2=_0x1c97,_0x440691={'AOLGM':function(_0x4daf59,_0x90599a){return _0x4daf59(_0x90599a);}},_0x26ab82=await _0x440691[_0x5cc6e2(0x16b)](getEnabledSessionId,_0x4121fa);if(!_0x26ab82)return;_0x440691[_0x5cc6e2(0x16b)](printBlock,'===\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===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4a81c1,_0x12113a){const _0x26f9cf=_0x44da,_0x587a8b=_0x4a81c1();while(!![]){try{const _0x4b0fb3=-parseInt(_0x26f9cf(0x146))/0x1*(-parseInt(_0x26f9cf(0x13f))/0x2)+parseInt(_0x26f9cf(0x13c))/0x3*(parseInt(_0x26f9cf(0x143))/0x4)+-parseInt(_0x26f9cf(0x149))/0x5+parseInt(_0x26f9cf(0x13d))/0x6*(-parseInt(_0x26f9cf(0x147))/0x7)+parseInt(_0x26f9cf(0x13e))/0x8*(parseInt(_0x26f9cf(0x14a))/0x9)+-parseInt(_0x26f9cf(0x148))/0xa+parseInt(_0x26f9cf(0x141))/0xb;if(_0x4b0fb3===_0x12113a)break;else _0x587a8b['push'](_0x587a8b['shift']());}catch(_0x1f0f4f){_0x587a8b['push'](_0x587a8b['shift']());}}}(_0x1be7,0x83f68));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x44da(_0x2dbc1,_0xffe521){_0x2dbc1=_0x2dbc1-0x13c;const _0x1be79d=_0x1be7();let _0x44da99=_0x1be79d[_0x2dbc1];return _0x44da99;}import{getToken}from'../utils/keychain.js';function _0x1be7(){const _0x560d0a=['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.','MbsFc','413533nmJaup','7477085tstBqg','9710240hcykke','2530395fObIYx','36XPjRGc','19911mmfodt','6hhiKVh','517424ZqHoJR','4oHYtsb','SgGOn','21415944FrRnHD','stringify','32BSWobN'];_0x1be7=function(){return _0x560d0a;};return _0x1be7();}import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x41808a){const _0x4aa23c=_0x44da,_0x2eac88={'MbsFc':function(_0x25ae9d,_0xb366e0){return _0x25ae9d(_0xb366e0);},'SgGOn':function(_0x55b5da){return _0x55b5da();}},_0x35ee22=await getEnabledSessionId(_0x41808a);if(!_0x35ee22)return;_0x2eac88['MbsFc'](updateBranchTracking,_0x35ee22);const _0x29b626=await _0x2eac88[_0x4aa23c(0x140)](getToken);if(!_0x29b626)return;const _0x219747=_0x2eac88[_0x4aa23c(0x145)](getSessionEntry,_0x35ee22);if(_0x219747){const _0x2c4485={'hookSpecificOutput':{'hookEventName':'PostToolUse','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'](_0x2c4485));return;}const _0x1f5501={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x4aa23c(0x144)}};console['log'](JSON[_0x4aa23c(0x142)](_0x1f5501));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x450b(){const _0x122704=['6ElQbgv','6452IzseMq','5772591gBGsMy','768sgigXF','OxQji','10aRHjIK','2904965mfxaEk','124094nsWGiG','===\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`.','1891842TmFlWU','105339KNakVn','33858GtFwkZ','5oFiRRd'];_0x450b=function(){return _0x122704;};return _0x450b();}(function(_0x171409,_0xe9e99b){const _0xac8fb0=_0x529c,_0x279d51=_0x171409();while(!![]){try{const _0xe34c90=parseInt(_0xac8fb0(0x123))/0x1*(-parseInt(_0xac8fb0(0x12a))/0x2)+parseInt(_0xac8fb0(0x120))/0x3+parseInt(_0xac8fb0(0x124))/0x4+-parseInt(_0xac8fb0(0x122))/0x5*(-parseInt(_0xac8fb0(0x12c))/0x6)+parseInt(_0xac8fb0(0x129))/0x7+-parseInt(_0xac8fb0(0x126))/0x8*(-parseInt(_0xac8fb0(0x121))/0x9)+parseInt(_0xac8fb0(0x128))/0xa*(-parseInt(_0xac8fb0(0x125))/0xb);if(_0xe34c90===_0xe9e99b)break;else _0x279d51['push'](_0x279d51['shift']());}catch(_0x1fcbd5){_0x279d51['push'](_0x279d51['shift']());}}}(_0x450b,0x386cd));function _0x529c(_0x177bc4,_0x41659c){_0x177bc4=_0x177bc4-0x120;const _0x450b42=_0x450b();let _0x529cae=_0x450b42[_0x177bc4];return _0x529cae;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x4afaed){const _0x5afe2b=_0x529c,_0xec81c7={'OxQji':function(_0x3023ea,_0x2e8c9d){return _0x3023ea(_0x2e8c9d);},'MkwNq':function(_0xdaf641,_0x2f7c2b){return _0xdaf641(_0x2f7c2b);}},_0x2e4900=await _0xec81c7[_0x5afe2b(0x127)](getEnabledSessionId,_0x4afaed);if(!_0x2e4900)return;try{const _0x2b730b=await getToken();if(!_0x2b730b)return;_0xec81c7['MkwNq'](printBlock,_0x5afe2b(0x12b));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x31bb(_0x5b6592,_0x108784){_0x5b6592=_0x5b6592-0xfb;const _0x3b798f=_0x3b79();let _0x31bb24=_0x3b798f[_0x5b6592];return _0x31bb24;}(function(_0x58a0db,_0x56b2bb){const _0x55d7cf=_0x31bb,_0x5d41a7=_0x58a0db();while(!![]){try{const _0x155a1e=-parseInt(_0x55d7cf(0xfe))/0x1*(-parseInt(_0x55d7cf(0x108))/0x2)+-parseInt(_0x55d7cf(0x102))/0x3+parseInt(_0x55d7cf(0x103))/0x4*(parseInt(_0x55d7cf(0x104))/0x5)+parseInt(_0x55d7cf(0xfc))/0x6*(-parseInt(_0x55d7cf(0x100))/0x7)+-parseInt(_0x55d7cf(0x101))/0x8+-parseInt(_0x55d7cf(0x107))/0x9*(-parseInt(_0x55d7cf(0x106))/0xa)+parseInt(_0x55d7cf(0xff))/0xb*(parseInt(_0x55d7cf(0xfd))/0xc);if(_0x155a1e===_0x56b2bb)break;else _0x5d41a7['push'](_0x5d41a7['shift']());}catch(_0x3295e9){_0x5d41a7['push'](_0x5d41a7['shift']());}}}(_0x3b79,0x55e82));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x3403c3){const _0x342339=_0x31bb,_0x53a937={'KEQkg':function(_0x1d824a){return _0x1d824a();},'ASZZL':function(_0x236400,_0x30da1b){return _0x236400===_0x30da1b;},'JAIYe':'clear'};let _0x1eb83f=_0x3403c3,_0x24dffd;if(!_0x3403c3){const _0x1fe02a=await _0x53a937['KEQkg'](readHookInput);_0x1eb83f=_0x1fe02a?.['session_id'],_0x24dffd=_0x1fe02a?.[_0x342339(0x109)];}if(!_0x1eb83f)return;_0x53a937[_0x342339(0xfb)](_0x24dffd,_0x53a937[_0x342339(0x105)])&&recordEnabledSessionCleared(_0x1eb83f);}function _0x3b79(){const _0x178455=['1212QqAiDX','331157EREHNx','27379iqTqiD','28fZqVzp','2316992qpQwuO','808806gAcJNn','4jzNqYt','1375765pwpgRu','JAIYe','3260210DWcWJV','9vtNmDJ','2HqeKni','reason','ASZZL','408930qYMbgK'];_0x3b79=function(){return _0x178455;};return _0x3b79();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x475468=_0x1814;(function(_0xe0df19,_0xdcfa40){const _0x197873=_0x1814,_0x4a4d50=_0xe0df19();while(!![]){try{const _0x21b6f3=-parseInt(_0x197873(0x129))/0x1+-parseInt(_0x197873(0x133))/0x2*(parseInt(_0x197873(0x11e))/0x3)+-parseInt(_0x197873(0x12d))/0x4*(parseInt(_0x197873(0x127))/0x5)+-parseInt(_0x197873(0x121))/0x6*(parseInt(_0x197873(0x122))/0x7)+-parseInt(_0x197873(0x125))/0x8*(-parseInt(_0x197873(0x131))/0x9)+parseInt(_0x197873(0x11f))/0xa+parseInt(_0x197873(0x12b))/0xb;if(_0x21b6f3===_0xdcfa40)break;else _0x4a4d50['push'](_0x4a4d50['shift']());}catch(_0x3ac3df){_0x4a4d50['push'](_0x4a4d50['shift']());}}}(_0x3dfe,0x82a6c));function _0x1814(_0x5b96d8,_0x3ae1a7){_0x5b96d8=_0x5b96d8-0x11e;const _0x3dfeb0=_0x3dfe();let _0x1814c1=_0x3dfeb0[_0x5b96d8];return _0x1814c1;}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT=_0x475468(0x120);function _0x3dfe(){const _0x44fefb=['764812VzbvLU','qcQUj','session_id','main','80793kjxNJC','\x20(Branch:\x20','140266wSANup','21oRBGFz','5843040NhPNCJ','=================================================================\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=================================================================','78jhIOdS','23429aRkTti','mPBgH','log','824YYPICP','stringify','15rxVRQx','stdin','72839XtaSHI','yAQcx','2278133VIofDX','trackCommandStart'];_0x3dfe=function(){return _0x44fefb;};return _0x3dfe();}export async function sessionStart(_0x73c513){const _0x16f0e5=_0x475468,_0x15ba40={'aEpxx':function(_0x19337a,_0x329584){return _0x19337a||_0x329584;},'kmdqM':_0x16f0e5(0x12f),'mPBgH':function(_0x10bb1b,_0x1b5a45){return _0x10bb1b&&_0x1b5a45;},'qcQUj':function(_0x35cd14,_0x17ce3d,_0x2e7a75){return _0x35cd14(_0x17ce3d,_0x2e7a75);},'JPRgV':function(_0x5ef224,_0x59ed58){return _0x5ef224(_0x59ed58);},'LyDBX':'success','xtRAe':function(_0x33abbb){return _0x33abbb();},'yAQcx':'SessionStart','hPJSO':function(_0x5469f2,_0x1e288d){return _0x5469f2+_0x1e288d;}};let _0x48e41c=_0x15ba40['aEpxx'](_0x73c513,''),_0x51ba72;if(!_0x73c513){let _0x9b568b='';for await(const _0x4a969a of process[_0x16f0e5(0x128)]){_0x9b568b+=_0x4a969a;}try{const _0x3b93d8=JSON['parse'](_0x9b568b);_0x48e41c=_0x3b93d8[_0x15ba40['kmdqM']]||'',_0x51ba72=_0x3b93d8['source'];}catch{}const _0xbf0db1=process['env']['CLAUDE_ENV_FILE'];if(_0x15ba40[_0x16f0e5(0x123)](_0xbf0db1,_0x48e41c))try{await _0x15ba40[_0x16f0e5(0x12e)](appendFile,_0xbf0db1,'export\x20CLAUDE_SESSION_ID=\x22'+_0x48e41c+'\x22\x0a');}catch{}}if(_0x48e41c){_0x15ba40['JPRgV'](shouldAutoEnableAfterClear,_0x51ba72)&&autoEnableAfterClear(_0x48e41c);_0x15ba40['JPRgV'](initBranchTracking,_0x48e41c);const _0x2a4dad=isSessionEnabled(_0x48e41c);try{const _0x19c74e=_0x15ba40['JPRgV'](createTelemetryCollector,'hook:session-start');await _0x19c74e[_0x16f0e5(0x12c)]({'sessionId':_0x48e41c,'hooksEnabled':_0x2a4dad}),await _0x19c74e['trackCommandEnd'](_0x15ba40['LyDBX']);}catch{}if(_0x2a4dad){const _0x58af1b=_0x15ba40['xtRAe'](getCurrentBranch),_0x3f88a0=_0x58af1b&&_0x58af1b!==_0x16f0e5(0x130)&&_0x58af1b!=='master'?_0x16f0e5(0x132)+_0x58af1b+')':'',_0x4a3f74={'hookSpecificOutput':{'hookEventName':_0x15ba40[_0x16f0e5(0x12a)],'additionalContext':_0x15ba40['hPJSO'](RANGER_AUTO_ENABLED_PROMPT,_0x3f88a0)}};console[_0x16f0e5(0x124)](JSON[_0x16f0e5(0x126)](_0x4a3f74));}}}
|