@ranger-testing/ranger-cli 2.2.4 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/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/playwrightCli.js +1 -0
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -0
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +3 -1
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4a214e=_0x2bbb;function _0x23bc(){const _0x33076a=['CJmdl','TSfZj','Nqdyr','UAkrJ','NUUHU','3388617cVNSRj','309360JyNbrE','\x22\x20does\x20not\x20exist.','228042tNFdhm','(not\x20set)','146538sPBZGK','stringify','Key\x20\x22','qOkVZ','OxweO','allowInsecureLocalhost','object','No\x20configuration\x20set\x20for\x20\x22','Profile\x20\x22','906355CScqfz','480552Vijgpj','WUNzd','7zWsJSP','4JFPIrp','log','195988dQBwjp','true'];_0x23bc=function(){return _0x33076a;};return _0x23bc();}(function(_0x4bbb99,_0x49dbeb){const _0x45e390=_0x2bbb,_0x3bd447=_0x4bbb99();while(!![]){try{const _0x52d9ba=parseInt(_0x45e390(0xa2))/0x1+-parseInt(_0x45e390(0xac))/0x2+parseInt(_0x45e390(0x9d))/0x3+-parseInt(_0x45e390(0xa0))/0x4*(-parseInt(_0x45e390(0x9c))/0x5)+-parseInt(_0x45e390(0xae))/0x6*(-parseInt(_0x45e390(0x9f))/0x7)+parseInt(_0x45e390(0xaa))/0x8+-parseInt(_0x45e390(0xa9))/0x9;if(_0x52d9ba===_0x49dbeb)break;else _0x3bd447['push'](_0x3bd447['shift']());}catch(_0x5559bc){_0x3bd447['push'](_0x3bd447['shift']());}}}(_0x23bc,0x1adb2));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x4a214e(0x98)];function parseValue(_0x51e60d,_0x2aa988){const _0x2f8913=_0x4a214e,_0xc891bc={'qOkVZ':function(_0x1a8336,_0xb7c282){return _0x1a8336===_0xb7c282;}};if(BOOLEAN_KEYS['includes'](_0x51e60d)){if(_0xc891bc[_0x2f8913(0xb1)](_0x2aa988,_0x2f8913(0xa3)))return!![];if(_0x2aa988==='false')return![];throw new Error('Invalid\x20value\x20for\x20'+_0x51e60d+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x2aa988;}export async function configSet(_0x3761f7,_0x5b2cbb,_0x4a4857){const _0xf782f3=_0x4a214e,_0x7b3166={'TSfZj':function(_0x406c8b,_0xca7d33){return _0x406c8b(_0xca7d33);},'UAkrJ':function(_0x154ded,_0x5f2314,_0x254d96){return _0x154ded(_0x5f2314,_0x254d96);}},_0x1c27c5=getEnvDir(_0x3761f7);if(!existsSync(_0x1c27c5))throw new Error('Profile\x20\x22'+_0x3761f7+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3761f7);const _0x1309bb=await _0x7b3166[_0xf782f3(0xa5)](loadSettings,_0x3761f7),_0x1cefec=_0x7b3166[_0xf782f3(0xa7)](parseValue,_0x5b2cbb,_0x4a4857);setNestedValue(_0x1309bb,_0x5b2cbb,_0x1cefec),await _0x7b3166[_0xf782f3(0xa7)](saveSettings,_0x3761f7,_0x1309bb),console[_0xf782f3(0xa1)]('Set\x20'+_0x5b2cbb+'\x20=\x20'+_0x1cefec);}function _0x2bbb(_0x2ebf66,_0x57235f){_0x2ebf66=_0x2ebf66-0x98;const _0x23bc73=_0x23bc();let _0x2bbb8c=_0x23bc73[_0x2ebf66];return _0x2bbb8c;}export async function configGet(_0x1a7b55,_0x2e49a0){const _0x4d381c=_0x4a214e,_0x4fbe81={'CJmdl':function(_0x5f4c89,_0x395683){return _0x5f4c89(_0x395683);},'oqvSo':function(_0x1afce8,_0x39ce11,_0x5b1493){return _0x1afce8(_0x39ce11,_0x5b1493);},'NUUHU':function(_0x585479,_0x4a1ac0){return _0x585479===_0x4a1ac0;},'twqZZ':_0x4d381c(0x99)},_0x49d80c=_0x4fbe81[_0x4d381c(0xa4)](getEnvDir,_0x1a7b55);if(!existsSync(_0x49d80c))throw new Error('Profile\x20\x22'+_0x1a7b55+_0x4d381c(0xab));const _0x5e651b=await _0x4fbe81[_0x4d381c(0xa4)](loadSettings,_0x1a7b55),_0x4e65b7=_0x4fbe81['oqvSo'](getNestedValue,_0x5e651b,_0x2e49a0);if(_0x4fbe81[_0x4d381c(0xa8)](_0x4e65b7,undefined))console['log'](_0x4d381c(0xad));else _0x4fbe81[_0x4d381c(0xa8)](typeof _0x4e65b7,_0x4fbe81['twqZZ'])?console['log'](JSON[_0x4d381c(0xaf)](_0x4e65b7,null,0x2)):console['log'](_0x4e65b7);}export async function configList(_0xcf9987){const _0x1cd65d=_0x4a214e,_0x1e9c68={'WUNzd':function(_0x2a04b7,_0x54e6cf){return _0x2a04b7(_0x54e6cf);},'bkNrx':function(_0x21e474,_0x3fa244){return _0x21e474(_0x3fa244);},'Nqdyr':function(_0x212c96,_0x46da4f){return _0x212c96(_0x46da4f);},'EGjjZ':function(_0x28e830,_0x18717a){return _0x28e830(_0x18717a);}},_0x5eb8c1=_0x1e9c68[_0x1cd65d(0x9e)](getSettingsPath,_0xcf9987);if(!_0x1e9c68['bkNrx'](existsSync,_0x5eb8c1)){const _0x44b0ce=_0x1e9c68['WUNzd'](getEnvDir,_0xcf9987);if(!_0x1e9c68[_0x1cd65d(0xa6)](existsSync,_0x44b0ce))throw new Error(_0x1cd65d(0x9b)+_0xcf9987+'\x22\x20does\x20not\x20exist.');console[_0x1cd65d(0xa1)](_0x1cd65d(0x9a)+_0xcf9987+'\x22');return;}const _0x54bd50=await loadSettings(_0xcf9987),_0x6a4943=_0x1e9c68['EGjjZ'](formatSettings,_0x54bd50);!_0x6a4943?console[_0x1cd65d(0xa1)]('No\x20configuration\x20set\x20for\x20\x22'+_0xcf9987+'\x22'):console['log'](_0x6a4943);}export async function configUnset(_0x1dbd57,_0x830b0f){const _0x2801a3=_0x4a214e,_0x5c437d={'OxweO':function(_0x173f71,_0xe690a8){return _0x173f71(_0xe690a8);},'nQumd':function(_0x49f687,_0x1df29a,_0x3941dc){return _0x49f687(_0x1df29a,_0x3941dc);}},_0x4161d6=_0x5c437d[_0x2801a3(0xb2)](getEnvDir,_0x1dbd57);if(!_0x5c437d['OxweO'](existsSync,_0x4161d6))throw new Error(_0x2801a3(0x9b)+_0x1dbd57+'\x22\x20does\x20not\x20exist.');const _0x87577b=await loadSettings(_0x1dbd57),_0x2fca18=_0x5c437d['nQumd'](deleteNestedValue,_0x87577b,_0x830b0f);_0x2fca18?(await saveSettings(_0x1dbd57,_0x87577b),console['log']('Removed\x20'+_0x830b0f)):console['log'](_0x2801a3(0xb0)+_0x830b0f+'\x22\x20not\x20found');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5539e7=_0xd630;(function(_0x3acf4f,_0x57a113){const _0x214195=_0xd630,_0x207565=_0x3acf4f();while(!![]){try{const _0x56d3dc=parseInt(_0x214195(0x1f7))/0x1*(parseInt(_0x214195(0x205))/0x2)+-parseInt(_0x214195(0x206))/0x3*(parseInt(_0x214195(0x1fa))/0x4)+parseInt(_0x214195(0x1fd))/0x5*(parseInt(_0x214195(0x1f0))/0x6)+parseInt(_0x214195(0x1ef))/0x7+-parseInt(_0x214195(0x1ee))/0x8*(-parseInt(_0x214195(0x213))/0x9)+-parseInt(_0x214195(0x1f9))/0xa*(-parseInt(_0x214195(0x20f))/0xb)+parseInt(_0x214195(0x1f8))/0xc*(parseInt(_0x214195(0x201))/0xd);if(_0x56d3dc===_0x57a113)break;else _0x207565['push'](_0x207565['shift']());}catch(_0x3cfd86){_0x207565['push'](_0x207565['shift']());}}}(_0x3bee,0xe483e));function _0xd630(_0x535026,_0x1d43e9){_0x535026=_0x535026-0x1ee;const _0x3bee69=_0x3bee();let _0xd630e3=_0x3bee69[_0x535026];return _0xd630e3;}import{readdir,stat}from'fs/promises';function _0x3bee(){const _0x509e7f=['pXyaR','includes','1cksFCT','348tVrFji','10HaRXaT','12NlUtkb','log','Run:\x20ranger\x20profile\x20add\x20<profile-name>','5xnLLnO','kFsmX','sessions','kJHST','62348FCzBUh','.txt','environmentDetails','YpehF','452484JdfPvP','1547871KhCyPE','local','EYdwj','\x20\x20\x20\x20\x20\x20URL:\x20','baseUrl','push','\x0aProfiles:','legacy','\x0aNo\x20profiles\x20found.','1850321SZtiPz','sort','length','UWKdw','714501dXKpdx','104KazkDT','1911028rTxVli','3871626uRCVdo','iZOaL','bug-bashes','isDirectory','\x0a*\x20=\x20active\x20profile'];_0x3bee=function(){return _0x509e7f;};return _0x3bee();}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=[_0x5539e7(0x1ff),_0x5539e7(0x1f2),'reports','local','ci'];export async function getEnvNames(){const _0x284660=_0x5539e7,_0x244c55={'YpehF':function(_0x2c3cc7){return _0x2c3cc7();},'pXyaR':function(_0x4b1ee6,_0x5ac29c,_0x3fe8cc){return _0x4b1ee6(_0x5ac29c,_0x3fe8cc);},'WlPQS':function(_0x5d2342,_0x48890e){return _0x5d2342(_0x48890e);},'kJHST':function(_0x512de2,_0xda0c4c){return _0x512de2(_0xda0c4c);},'EYdwj':function(_0x4e681e,_0x5838fe,_0x18d5fa){return _0x4e681e(_0x5838fe,_0x18d5fa);},'Mzssp':function(_0x39a98e,_0x107ee5,_0x1150b8){return _0x39a98e(_0x107ee5,_0x1150b8);},'tNGzq':function(_0x1c9d5d,_0x48b44b){return _0x1c9d5d(_0x48b44b);},'tNTzr':function(_0x5d168a,_0x40c6f4){return _0x5d168a(_0x40c6f4);},'dQBCv':'settings.json'},_0x411f17=getRangerDir();if(!existsSync(_0x411f17))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x4740cf=await _0x244c55[_0x284660(0x204)](readActiveProfileName),_0x17d429=[],_0x4d361d={},_0x2fa25e=_0x244c55[_0x284660(0x1f5)](join,_0x411f17,_0x284660(0x207));if(_0x244c55['WlPQS'](existsSync,_0x2fa25e)){const _0x507743=await _0x244c55[_0x284660(0x200)](readdir,_0x2fa25e);for(const _0x328b4 of _0x507743){const _0x15f2b1=_0x244c55[_0x284660(0x208)](join,_0x2fa25e,_0x328b4),_0x5cf830=await stat(_0x15f2b1);_0x5cf830['isDirectory']()&&(_0x17d429['push'](_0x328b4),_0x4d361d[_0x328b4]='local');}}const _0x4d497c=_0x244c55['Mzssp'](join,_0x411f17,'ci');if(existsSync(_0x4d497c)){const _0x452be5=await readdir(_0x4d497c);for(const _0x5d3c7a of _0x452be5){const _0x7a0acb=join(_0x4d497c,_0x5d3c7a),_0x1eb5c4=await _0x244c55['tNGzq'](stat,_0x7a0acb);_0x1eb5c4['isDirectory']()&&(_0x17d429[_0x284660(0x20b)](_0x5d3c7a),_0x4d361d[_0x5d3c7a]='ci');}}const _0x175999=await readdir(_0x411f17);for(const _0x207756 of _0x175999){if(NON_ENV_DIRS[_0x284660(0x1f6)](_0x207756))continue;if(_0x207756['startsWith']('.'))continue;if(_0x207756['endsWith'](_0x284660(0x202)))continue;const _0x1cfe4f=join(_0x411f17,_0x207756),_0x56e280=await stat(_0x1cfe4f);_0x56e280[_0x284660(0x1f3)]()&&_0x244c55['tNTzr'](existsSync,join(_0x1cfe4f,_0x244c55['dQBCv']))&&(!_0x17d429[_0x284660(0x1f6)](_0x207756)&&(_0x17d429['push'](_0x207756),_0x4d361d[_0x207756]=_0x284660(0x20d)));}return{'envNames':_0x17d429,'activeEnv':_0x4740cf,'envTypes':_0x4d361d};}export async function envList(){const _0x4a8ca2=_0x5539e7,_0x30092e={'oozZG':_0x4a8ca2(0x20e),'iZOaL':_0x4a8ca2(0x1fc),'UWKdw':_0x4a8ca2(0x20c),'kFsmX':function(_0x5b0da8,_0xb8e3a1){return _0x5b0da8===_0xb8e3a1;},'KyArq':'legacy'},{envNames:_0x3b449d,activeEnv:_0xc76a93,envTypes:_0x30e7c3}=await getEnvNames();if(_0x3b449d[_0x4a8ca2(0x211)]===0x0){console['log'](_0x30092e['oozZG']),console['log'](_0x30092e[_0x4a8ca2(0x1f1)]);return;}console[_0x4a8ca2(0x1fb)](_0x30092e[_0x4a8ca2(0x212)]);for(const _0x588605 of _0x3b449d[_0x4a8ca2(0x210)]()){const _0x496efb=_0x30092e[_0x4a8ca2(0x1fe)](_0x588605,_0xc76a93),_0x4bf1dc=_0x30e7c3[_0x588605]||'local',_0x331580=await loadSettings(_0x588605),_0x10e004=_0x30092e['kFsmX'](_0x4bf1dc,_0x30092e['KyArq'])?'':'\x20['+_0x4bf1dc+']';console['log']('\x20\x20'+(_0x496efb?'*\x20':'\x20\x20')+_0x588605+_0x10e004),_0x331580[_0x4a8ca2(0x20a)]&&console['log'](_0x4a8ca2(0x209)+_0x331580['baseUrl']),_0x331580[_0x4a8ca2(0x203)]&&console[_0x4a8ca2(0x1fb)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x331580['environmentDetails']);}_0xc76a93&&console['log'](_0x4a8ca2(0x1f4));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4dc6cf=_0x56d8;(function(_0x5bf525,_0x697570){const _0x437ebc=_0x56d8,_0xd72b1c=_0x5bf525();while(!![]){try{const _0x5620e9=-parseInt(_0x437ebc(0x1a1))/0x1*(parseInt(_0x437ebc(0x1dd))/0x2)+parseInt(_0x437ebc(0x23a))/0x3+-parseInt(_0x437ebc(0x211))/0x4+parseInt(_0x437ebc(0x213))/0x5*(parseInt(_0x437ebc(0x1af))/0x6)+parseInt(_0x437ebc(0x232))/0x7+-parseInt(_0x437ebc(0x1dc))/0x8*(parseInt(_0x437ebc(0x1d5))/0x9)+parseInt(_0x437ebc(0x252))/0xa*(parseInt(_0x437ebc(0x185))/0xb);if(_0x5620e9===_0x697570)break;else _0xd72b1c['push'](_0xd72b1c['shift']());}catch(_0x560b1c){_0xd72b1c['push'](_0xd72b1c['shift']());}}}(_0x4cbe,0x5ca3a));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2737b7 from'inquirer';function _0x56d8(_0x263c74,_0xd64bef){_0x263c74=_0x263c74-0x17a;const _0x4cbe1e=_0x4cbe();let _0x56d8cb=_0x4cbe1e[_0x263c74];return _0x56d8cb;}import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x27ac2c=>'\x1b[1m'+_0x27ac2c+_0x4dc6cf(0x1b2);function getGitRepoUrl(){const _0x2fce0d=_0x4dc6cf,_0x3ff3a5={'cBcDD':_0x2fce0d(0x1c1),'gbzTD':'pipe'};try{const _0x55ce0d=execSync(_0x3ff3a5['cBcDD'],{'encoding':'utf-8','stdio':[_0x3ff3a5['gbzTD'],'pipe',_0x3ff3a5[_0x2fce0d(0x1a0)]]})[_0x2fce0d(0x1cf)]();return _0x55ce0d['replace'](/\.git$/,'')[_0x2fce0d(0x1e3)](/^git@github\.com:/,_0x2fce0d(0x1ee))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x327ac0=_0x4dc6cf,_0x5c8497={'cwNjG':_0x327ac0(0x219),'gDtlU':'utf-8','pxaxu':'pipe'};try{return execSync(_0x5c8497[_0x327ac0(0x22d)],{'encoding':_0x5c8497[_0x327ac0(0x205)],'stdio':[_0x5c8497['pxaxu'],_0x5c8497[_0x327ac0(0x1b4)],_0x5c8497[_0x327ac0(0x1b4)]]})[_0x327ac0(0x1cf)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x1df5e6={'PbFXl':function(_0x1bd29d,_0x56655c,_0x4a68fa){return _0x1bd29d(_0x56655c,_0x4a68fa);},'OQgqZ':'utf-8'},_0x25897f=_0x1df5e6['PbFXl'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x25897f))return null;try{const _0x2cec4a=await readFile(_0x25897f,_0x1df5e6['OQgqZ']);return _0x2cec4a['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x18bf0b){const _0x29edd4=_0x4dc6cf,_0x33e66c={'iRdVF':function(_0x2dd9fe,_0x55d53c){return _0x2dd9fe(_0x55d53c);},'DyJnk':function(_0x369976,_0x4aca14,_0x41526c,_0x12ed01){return _0x369976(_0x4aca14,_0x41526c,_0x12ed01);},'EpBvF':'utf-8'},_0x33c8ac=getRangerDir(),_0x30a753=join(_0x33c8ac,ACTIVE_FEATURE_FILE);!_0x33e66c[_0x29edd4(0x223)](existsSync,_0x33c8ac)&&await mkdir(_0x33c8ac,{'recursive':!![]}),await _0x33e66c[_0x29edd4(0x1e7)](writeFile,_0x30a753,_0x18bf0b,_0x33e66c[_0x29edd4(0x20d)]);}function getProgressDisplay(_0x4eb928){const _0x448816=_0x4dc6cf,_0x5c06c9={'RqIyz':function(_0x495283,_0x5bf4e9){return _0x495283/_0x5bf4e9;},'kqJfU':function(_0x224a92,_0x428e12){return _0x224a92+_0x428e12;},'tKQku':function(_0x2a88e5,_0x5cd882){return _0x2a88e5>_0x5cd882;},'RMXvI':function(_0x1cd0ae,_0xfa6e3){return _0x1cd0ae>_0xfa6e3;},'Qlcgi':function(_0x40116e,_0x409885){return _0x40116e>_0x409885;}},_0x89c527=_0x4eb928[_0x448816(0x190)]||0x0,_0x31d3f7=_0x4eb928[_0x448816(0x21b)]||0x0,_0x4f6fd2=_0x4eb928[_0x448816(0x19e)]||0x0,_0x35cc16=_0x4eb928['incompleteItems']||0x0,_0x2e4b7c=_0x4eb928['pendingItems']||0x0,_0x46e5f1=_0x89c527+_0x31d3f7+_0x4f6fd2+_0x35cc16+_0x2e4b7c;if(_0x46e5f1===0x0)return'-';const _0xcc96c4=0xa,_0x2c56d1=Math[_0x448816(0x1ae)](_0x5c06c9['RqIyz'](_0x89c527,_0x46e5f1)*_0xcc96c4),_0x233dcf=_0x5c06c9[_0x448816(0x1ed)]('█'['repeat'](_0x2c56d1),'░'['repeat'](_0xcc96c4-_0x2c56d1)),_0x56e1be=[];if(_0x5c06c9[_0x448816(0x1a8)](_0x4f6fd2,0x0))_0x56e1be['push'](_0x4f6fd2+_0x448816(0x202));if(_0x5c06c9['tKQku'](_0x35cc16,0x0))_0x56e1be['push'](_0x35cc16+_0x448816(0x231));if(_0x5c06c9[_0x448816(0x1df)](_0x31d3f7,0x0))_0x56e1be['push'](_0x31d3f7+'\x20in\x20progress');const _0x528221=_0x5c06c9['Qlcgi'](_0x56e1be['length'],0x0)?'\x20('+_0x56e1be[_0x448816(0x1f8)](',\x20')+')':'';return _0x233dcf+'\x20'+_0x89c527+'/'+_0x46e5f1+'\x20verified'+_0x528221;}function getCurrentSessionItems(_0x17d40d,_0x1d29ac){const _0x36280f=_0x4dc6cf;if(!_0x17d40d['currentSessionId'])return _0x1d29ac['filter'](_0xd3a863=>!_0xd3a863[_0x36280f(0x222)]);return _0x1d29ac[_0x36280f(0x1d7)](_0x88da86=>_0x88da86['sessionId']===_0x17d40d['currentSessionId']||!_0x88da86[_0x36280f(0x222)]);}function displayFeature(_0x4397de,_0x1231ba){const _0x494317=_0x4dc6cf,_0x39ab39={'QoCyt':function(_0x20793f,_0x3a212e){return _0x20793f>_0x3a212e;},'hjoBP':'\x0a\x20\x20\x20Scenarios:','OaOwH':function(_0x19754b,_0x28e074){return _0x19754b===_0x28e074;},'uGHQD':'closed','iDZIu':function(_0x3c5baf,_0x37116e){return _0x3c5baf===_0x37116e;},'wxnro':function(_0x527d2a,_0x3fe7c3){return _0x527d2a===_0x3fe7c3;},'cLCkj':function(_0x481984,_0x2c0951){return _0x481984===_0x2c0951;},'aRLCt':_0x494317(0x235),'VbvNq':function(_0x59d209,_0x3b190d){return _0x59d209>_0x3b190d;},'jfPBC':function(_0x1441a8,_0x267bea){return _0x1441a8>_0x267bea;},'rtZam':function(_0x25aae0,_0x3bf49f){return _0x25aae0!==_0x3bf49f;},'sriYV':_0x494317(0x1c7),'Nsljt':function(_0x67b2d,_0x54cb61){return _0x67b2d===_0x54cb61;},'tRXdY':'blocked','qNIXE':function(_0x160355,_0x218a97){return _0x160355===_0x218a97;}};console['log']('\x0a'+_0x4397de[_0x494317(0x1b7)]+'\x20('+_0x4397de[_0x494317(0x24d)]+')');_0x4397de['stats']&&console[_0x494317(0x244)](_0x494317(0x1ec)+getProgressDisplay(_0x4397de[_0x494317(0x1f5)]));_0x4397de[_0x494317(0x24b)]&&console['log'](_0x494317(0x1bd)+_0x4397de['description']);_0x4397de['gitRepoUrl']&&console[_0x494317(0x244)](_0x494317(0x20f)+_0x4397de[_0x494317(0x21f)]);_0x4397de['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x4397de['gitBranch']);console['log'](_0x494317(0x20b)+new Date(_0x4397de[_0x494317(0x217)])['toLocaleString']());_0x4397de[_0x494317(0x1c0)]&&console[_0x494317(0x244)](_0x494317(0x198)+new Date(_0x4397de['completedAt'])['toLocaleString']());if(_0x1231ba&&_0x39ab39['QoCyt'](_0x1231ba[_0x494317(0x181)],0x0)){console['log'](_0x39ab39[_0x494317(0x18e)]);for(let _0x4e0a58=0x0;_0x4e0a58<_0x1231ba[_0x494317(0x181)];_0x4e0a58++){const _0x526dba=_0x1231ba[_0x4e0a58];let _0x36a4dd;if(_0x39ab39['OaOwH'](_0x526dba[_0x494317(0x1e4)],_0x39ab39[_0x494317(0x1d1)])&&_0x39ab39['iDZIu'](_0x526dba[_0x494317(0x251)],'approved'))_0x36a4dd='✅';else{if(_0x526dba['status']===_0x494317(0x227))_0x36a4dd='🟢';else{if(_0x39ab39['wxnro'](_0x526dba['status'],_0x494317(0x22a)))_0x36a4dd='🟠';else{if(_0x526dba['status']==='blocked')_0x36a4dd='🛑';else{if(_0x526dba[_0x494317(0x1e4)]==='closed')_0x36a4dd='⛔';else _0x39ab39['cLCkj'](_0x526dba['status'],_0x39ab39[_0x494317(0x1be)])?_0x36a4dd='⏳':_0x36a4dd='⬜';}}}}const _0x41c414=_0x39ab39[_0x494317(0x20a)](_0x526dba['version'],0x1)?_0x494317(0x23d)+_0x526dba[_0x494317(0x1b3)]+')':'',_0x240f8f=_0x39ab39[_0x494317(0x24e)](_0x526dba['version'],0x1)&&_0x526dba[_0x494317(0x1b5)]&&_0x526dba[_0x494317(0x1e4)]!==_0x494317(0x249)&&_0x39ab39['rtZam'](_0x526dba['status'],_0x494317(0x227))?_0x39ab39['sriYV']:'';console['log']('\x20\x20\x20'+(_0x4e0a58+0x1)+'.\x20'+_0x36a4dd+'\x20'+_0x526dba[_0x494317(0x24b)]+_0x41c414+_0x240f8f);_0x39ab39['Nsljt'](_0x526dba['status'],_0x39ab39['tRXdY'])&&_0x526dba[_0x494317(0x189)]&&console['log'](_0x494317(0x23c)+_0x526dba['blockedReason']);_0x39ab39[_0x494317(0x200)](_0x526dba[_0x494317(0x1e4)],'incomplete')&&_0x526dba['incompleteReason']&&console[_0x494317(0x244)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x526dba[_0x494317(0x1d4)]);if(_0x39ab39['cLCkj'](_0x526dba['status'],_0x494317(0x249))&&_0x39ab39['Nsljt'](_0x526dba[_0x494317(0x251)],_0x494317(0x1ba)))console['log'](_0x494317(0x207));else _0x39ab39[_0x494317(0x1e9)](_0x526dba[_0x494317(0x1e4)],'closed')&&_0x526dba[_0x494317(0x1c9)]&&console[_0x494317(0x244)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x526dba[_0x494317(0x1c9)]);}}}export async function featureCreate(_0x32c0b1,_0x2fede3){const _0x16cda2=_0x4dc6cf,_0x3af2ab={'uachd':function(_0xf24130){return _0xf24130();},'ZzbHz':function(_0x5a39f5,_0x32996f){return _0x5a39f5===_0x32996f;},'uiNIv':function(_0x3ce903,_0x4f4e52){return _0x3ce903(_0x4f4e52);},'pjgud':function(_0x432e65){return _0x432e65();},'FzJSg':function(_0xd62d42){return _0xd62d42();},'wnQpc':'\x0aCreating\x20feature\x20review...','ZDfgO':function(_0x13a2b0,_0x40409b){return _0x13a2b0(_0x40409b);},'YiCPl':function(_0x5410a8,_0x1d856d,_0x2c98a2){return _0x5410a8(_0x1d856d,_0x2c98a2);}},{envNames:_0x2c859f}=await _0x3af2ab['uachd'](getEnvNames);_0x3af2ab[_0x16cda2(0x1f2)](_0x2c859f[_0x16cda2(0x181)],0x0)&&console['warn']('\x0a'+_0x3af2ab[_0x16cda2(0x239)](formatProfileRequiredMessage,_0x7cf4fd=>bold(_0x7cf4fd)));const _0x245efc=_0x2fede3[_0x16cda2(0x182)]?_0x2fede3[_0x16cda2(0x182)]['map'](_0x39343e=>_0x39343e[_0x16cda2(0x1cf)]()):[],_0x93c602=_0x3af2ab['pjgud'](getGitRepoUrl),_0x17ef6e=_0x3af2ab['FzJSg'](getGitBranch);console['log'](_0x3af2ab['wnQpc']);const _0x5ba122=await _0x3af2ab['uiNIv'](createFeature,{'name':_0x32c0b1,'description':_0x2fede3[_0x16cda2(0x24b)],'checklist':_0x245efc,'gitRepoUrl':_0x93c602,'gitBranch':_0x17ef6e});await setActiveFeatureId(_0x5ba122['id']),await _0x3af2ab[_0x16cda2(0x197)](tryStartCurrentSession,_0x5ba122['id']);const _0x12dfac=process[_0x16cda2(0x226)]['CLAUDE_SESSION_ID'];_0x12dfac&&_0x3af2ab['YiCPl'](registerSession,_0x12dfac,_0x5ba122['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x5ba122['id']),displayFeature(_0x5ba122,_0x5ba122[_0x16cda2(0x22f)]),console['log'](_0x16cda2(0x1d0));}export async function featureList(_0x4a5959){const _0x147b62=_0x4dc6cf,_0x2eaf55={'GjYnk':function(_0x729e8d){return _0x729e8d();},'tqzdd':function(_0x347f99,_0x25e628){return _0x347f99>_0x25e628;},'EszZy':function(_0x5bbc99,_0x348337){return _0x5bbc99+_0x348337;},'bVKdu':'\x20--include-deleted'},_0x4936b7={'limit':_0x4a5959[_0x147b62(0x1c8)]??0xa,'offset':_0x4a5959[_0x147b62(0x191)]??0x0,'includeDeleted':_0x4a5959[_0x147b62(0x240)]};_0x4a5959['currentBranch']&&(_0x4936b7[_0x147b62(0x21f)]=_0x2eaf55[_0x147b62(0x1bc)](getGitRepoUrl),_0x4936b7['gitBranch']=_0x2eaf55[_0x147b62(0x1bc)](getGitBranch));const _0x2ce1a9=await listFeatures(_0x4936b7);if(_0x2ce1a9['items'][_0x147b62(0x181)]===0x0){console['log'](_0x147b62(0x17c));return;}const _0x25ae39=_0x2eaf55[_0x147b62(0x206)](_0x2ce1a9[_0x147b62(0x253)],_0x2ce1a9[_0x147b62(0x236)]['length'])?'Showing\x20'+_0x2ce1a9[_0x147b62(0x236)][_0x147b62(0x181)]+'\x20of\x20'+_0x2ce1a9[_0x147b62(0x253)]:_0x2ce1a9['totalCount']+_0x147b62(0x1e8);console[_0x147b62(0x244)]('\x0a'+_0x25ae39+':\x0a');for(const _0x4b06bf of _0x2ce1a9[_0x147b62(0x236)]){console['log'](''+_0x4b06bf['name']),console[_0x147b62(0x244)](_0x147b62(0x1d6)+_0x4b06bf['id']),_0x4b06bf['stats']&&console[_0x147b62(0x244)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x4b06bf[_0x147b62(0x1f5)])),_0x4b06bf[_0x147b62(0x19b)]&&console['log'](_0x147b62(0x1fb)+_0x4b06bf['gitBranch']),console['log'](_0x147b62(0x20b)+new Date(_0x4b06bf['createdAt'])['toLocaleDateString']()),console['log']('');}const _0x32c0db=_0x4936b7['limit']??0xa,_0x1a1414=_0x2eaf55['EszZy'](_0x4936b7[_0x147b62(0x191)]??0x0,_0x2ce1a9['items']['length']);if(_0x1a1414<_0x2ce1a9['totalCount']){const _0x472809=_0x32c0db!==0xa?_0x147b62(0x1b0)+_0x32c0db:'',_0x1636d9=_0x4a5959['currentBranch']?'\x20--current-branch':'',_0x2e728f=_0x4a5959['includeDeleted']?_0x2eaf55['bVKdu']:'';console[_0x147b62(0x244)](_0x147b62(0x224)+_0x1a1414+_0x472809+_0x1636d9+_0x2e728f);}}export async function featureShow(_0xdc3569){const _0x139051=_0x4dc6cf,_0x45dd16={'jeylJ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x37a362=_0xdc3569||await getActiveFeatureId();if(!_0x37a362)throw new Error(_0x45dd16['jeylJ']);const _0x309b0=await getFeature(_0x37a362);displayFeature(_0x309b0,_0x309b0[_0x139051(0x22f)]);}export async function featureResume(_0x30b337){const _0x1c9e80=_0x4dc6cf,_0x28bbd9={'MZGTo':function(_0x218a0e,_0x887a90){return _0x218a0e(_0x887a90);},'EbOKq':function(_0x1fecf7,_0x5a821d){return _0x1fecf7(_0x5a821d);},'aXjRi':function(_0x55fc24){return _0x55fc24();},'EtAiP':function(_0x109c91,_0x33a16f){return _0x109c91!==_0x33a16f;},'tBkyh':function(_0x5016fd,_0x1c5b22){return _0x5016fd(_0x1c5b22);},'aaSgT':function(_0x1e15c4,_0x577a2f){return _0x1e15c4&&_0x577a2f;},'jPMhj':_0x1c9e80(0x187),'MmcHS':function(_0x43e7be,_0x3df679){return _0x43e7be||_0x3df679;},'rHMmJ':_0x1c9e80(0x245),'HshpL':function(_0x4b14a4,_0x1569c4){return _0x4b14a4(_0x1569c4);},'UfROi':function(_0x54c054,_0x5046c7){return _0x54c054===_0x5046c7;},'oSjhP':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','dudxV':'list','zINpj':function(_0x4885aa,_0x1a5a37,_0xdef3a1){return _0x4885aa(_0x1a5a37,_0xdef3a1);},'rHRhp':function(_0x1c81f0,_0x1865f3){return _0x1c81f0(_0x1865f3);},'KKkZv':function(_0x432196,_0x16fe19){return _0x432196(_0x16fe19);}};if(_0x30b337){const _0x474d63=await _0x28bbd9['MZGTo'](getFeature,_0x30b337);await _0x28bbd9[_0x1c9e80(0x1cb)](setActiveFeatureId,_0x474d63['id']);const _0x3f71b7=_0x28bbd9['aXjRi'](getGitBranch);_0x3f71b7&&_0x28bbd9[_0x1c9e80(0x1ef)](_0x3f71b7,_0x474d63['gitBranch'])&&(await updateFeature(_0x474d63['id'],{'gitBranch':_0x3f71b7}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3f71b7));console['log'](_0x1c9e80(0x1da)+_0x474d63['name']+'\x20('+_0x474d63['id']+')'),await _0x28bbd9['tBkyh'](tryStartCurrentSession,_0x474d63['id']);const _0x2dc601=process[_0x1c9e80(0x226)]['CLAUDE_SESSION_ID'];_0x2dc601&®isterSession(_0x2dc601,_0x474d63['id']);displayFeature(_0x474d63,_0x474d63[_0x1c9e80(0x22f)]),await printFeedbackNudge(_0x474d63['id']);return;}const _0x68a950=getGitRepoUrl(),_0x3ec929=_0x28bbd9['aXjRi'](getGitBranch);if(_0x28bbd9[_0x1c9e80(0x210)](!_0x68a950,!_0x3ec929))throw new Error(_0x28bbd9['jPMhj']);console[_0x1c9e80(0x244)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x68a950||'any')+_0x1c9e80(0x20e)+_0x28bbd9[_0x1c9e80(0x1a9)](_0x3ec929,_0x28bbd9[_0x1c9e80(0x1eb)])+'...');const _0x4c5758=await _0x28bbd9[_0x1c9e80(0x1f0)](listFeatures,{'gitRepoUrl':_0x68a950,'gitBranch':_0x3ec929}),_0x18c7a8=_0x4c5758['items']['filter'](_0x4a7ffd=>!_0x4a7ffd['completedAt']);if(_0x28bbd9['UfROi'](_0x18c7a8[_0x1c9e80(0x181)],0x0)){console['log'](_0x1c9e80(0x21e)),console['log'](_0x28bbd9['oSjhP']);return;}let _0x4ccb12;if(_0x18c7a8['length']===0x1)_0x4ccb12=_0x18c7a8[0x0];else{const _0x5612e3=process['stdin']['isTTY']&&process[_0x1c9e80(0x1ea)]['isTTY'];if(!_0x5612e3){console[_0x1c9e80(0x244)]('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x1cb3b1 of _0x18c7a8){console['log']('\x20\x20'+_0x1cb3b1['name']),console['log'](_0x1c9e80(0x242)+_0x1cb3b1['id']),_0x1cb3b1['stats']&&console[_0x1c9e80(0x244)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1cb3b1[_0x1c9e80(0x1f5)])),_0x1cb3b1[_0x1c9e80(0x19b)]&&console[_0x1c9e80(0x244)](_0x1c9e80(0x220)+_0x1cb3b1['gitBranch']);}throw new Error(_0x1c9e80(0x1e2));}const {selected:_0x3426b3}=await _0x2737b7[_0x1c9e80(0x1ca)]([{'type':_0x28bbd9['dudxV'],'name':_0x1c9e80(0x214),'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x18c7a8[_0x1c9e80(0x1bf)](_0x4a821d=>({'name':_0x4a821d['name']+'\x20('+_0x4a821d['id']+')','value':_0x4a821d['id']}))}]);_0x4ccb12=_0x18c7a8['find'](_0x15b419=>_0x15b419['id']===_0x3426b3);}await setActiveFeatureId(_0x4ccb12['id']);_0x3ec929&&_0x28bbd9['EtAiP'](_0x3ec929,_0x4ccb12['gitBranch'])&&(await _0x28bbd9[_0x1c9e80(0x184)](updateFeature,_0x4ccb12['id'],{'gitBranch':_0x3ec929}),console[_0x1c9e80(0x244)](_0x1c9e80(0x1a4)+_0x3ec929));console[_0x1c9e80(0x244)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x4ccb12['name']+'\x20('+_0x4ccb12['id']+')'),await _0x28bbd9[_0x1c9e80(0x1cb)](tryStartCurrentSession,_0x4ccb12['id']);const _0x487faf=await _0x28bbd9[_0x1c9e80(0x1c2)](getFeature,_0x4ccb12['id']),_0x438651=process[_0x1c9e80(0x226)][_0x1c9e80(0x241)];_0x438651&®isterSession(_0x438651,_0x487faf['id']),displayFeature(_0x487faf,_0x487faf['checklistItems']),await _0x28bbd9[_0x1c9e80(0x1de)](printFeedbackNudge,_0x487faf['id']);}async function printFeedbackNudge(_0x584477){const _0x26cfad=_0x4dc6cf,_0x341efb={'bNKmy':function(_0x2253bf,_0x54739c,_0x48d180){return _0x2253bf(_0x54739c,_0x48d180);},'XXPPp':function(_0x5b7446,_0x819e68){return _0x5b7446>_0x819e68;},'nrdEy':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x1a3193}=await getActionItems(_0x584477);let _0x22b04a=0x0,_0x4520c6=0x0;for(const _0x2f4eca of _0x1a3193){const _0x55e374=await _0x341efb['bNKmy'](getItemFeedback,_0x584477,_0x2f4eca['id']);_0x341efb[_0x26cfad(0x221)](_0x55e374[_0x26cfad(0x195)]['length'],0x0)&&(_0x22b04a+=_0x55e374[_0x26cfad(0x195)]['length'],_0x4520c6++);}_0x341efb[_0x26cfad(0x221)](_0x22b04a,0x0)&&(console['log'](_0x26cfad(0x1cc)+_0x22b04a+_0x26cfad(0x1e5)+_0x4520c6+'\x20scenario(s).'),console[_0x26cfad(0x244)](_0x341efb[_0x26cfad(0x188)]));}catch{}}async function tryStartCurrentSession(_0x24200e){const _0x55fae0=_0x4dc6cf,_0x4f6142={'TsdXJ':function(_0x284398,_0x1a51ba,_0x5db21a){return _0x284398(_0x1a51ba,_0x5db21a);}};try{const {sessions:_0x2c76f2}=await listFeatureSessions(_0x24200e),_0x2af2ac=_0x2c76f2['find'](_0x34dda8=>_0x34dda8[_0x55fae0(0x1e4)]===_0x55fae0(0x243));_0x2af2ac&&(await _0x4f6142['TsdXJ'](startSession,_0x24200e,_0x2af2ac['id']),console[_0x55fae0(0x244)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x2af2ac[_0x55fae0(0x1fd)]));}catch{}}export async function featureReport(_0x1265d8,_0x336917){const _0x416c77=_0x4dc6cf,_0x43bc16={'awJOw':_0x416c77(0x1c6),'ePeIy':function(_0x11923b,_0x23cf6f,_0x5bdd6a){return _0x11923b(_0x23cf6f,_0x5bdd6a);},'rmXIc':function(_0x1f23cc,_0x151bd5,_0x38b053,_0x1edd9b){return _0x1f23cc(_0x151bd5,_0x38b053,_0x1edd9b);},'TKuuU':function(_0x3b725c,_0x34299a){return _0x3b725c(_0x34299a);}},_0x2ed2ab=_0x1265d8||await getActiveFeatureId();if(!_0x2ed2ab)throw new Error(_0x416c77(0x238));console['log'](_0x43bc16[_0x416c77(0x1f7)]);const _0x4b4106=await _0x43bc16['ePeIy'](getFeatureReportMarkdown,_0x2ed2ab,{'style':_0x336917['style']}),_0x1b4a7e=_0x336917[_0x416c77(0x23e)]||_0x43bc16[_0x416c77(0x208)](join,getRangerDir(),'reports',_0x2ed2ab+'.md'),_0x583583=join(_0x1b4a7e,'..');!_0x43bc16[_0x416c77(0x1ff)](existsSync,_0x583583)&&await mkdir(_0x583583,{'recursive':!![]}),await _0x43bc16['rmXIc'](writeFile,_0x1b4a7e,_0x4b4106,_0x416c77(0x212)),console[_0x416c77(0x244)](_0x416c77(0x1e6)+_0x1b4a7e);}function getScenarioResult(_0x42321f){const _0xd04d11=_0x4dc6cf;if(_0x42321f['status']===_0xd04d11(0x249))return _0x42321f['terminalReason']??_0xd04d11(0x249);if(_0x42321f[_0xd04d11(0x1e4)]==='verification_in_progress')return'in_progress';return _0x42321f[_0xd04d11(0x1e4)];}function _0x4cbe(){const _0x33ae9b=['\x20\x20\x20Completed:\x20','\x20\x20\x20\x20\x20📋\x20Selector:\x20','McJiD','gitBranch','has','diekW','blockedItems','trimEnd','gbzTD','1341UyROYy','assets','assetType','\x20\x20\x20Updated\x20branch\x20to:\x20','oPkRf','AGlCe','.png','tKQku','MmcHS','iZvJL','clVaz','\x20>\x20','PCMNN','round','234YGtmGF','\x20--limit\x20','DCSIU','\x1b[0m','version','pxaxu','parentItemId','xkvQQ','name','location','currentSessionId','approved','linkedSession','GjYnk','\x20\x20\x20Description:\x20','aRLCt','map','completedAt','git\x20remote\x20get-url\x20origin','rHRhp','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','PGLbL','screenshot','\x0aGenerating\x20report...','\x20[has\x20reviewer\x20feedback]','limit','canceledReason','prompt','EbOKq','\x0a⚠️\x20\x20','pop','domRef','trim','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','uGHQD','scenario','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','incompleteReason','832347DUuRwy','\x20\x20\x20ID:\x20','filter','write','toLocaleString','\x0a✅\x20Resumed\x20feature\x20review:\x20','exit','56PjrNNw','116rKUuDm','KKkZv','RMXvI','):\x20\x22','screenshotUrls','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','replace','status','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x0a✅\x20Report\x20generated:\x20','DyJnk','\x20feature\x20review(s)\x20found','qNIXE','stdout','rHMmJ','\x20\x20\x20Progress:\x20','kqJfU','github.com/','EtAiP','HshpL','stringify','ZzbHz','htqIq','latestReview','stats','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','awJOw','join','element','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20\x20\x20Branch:\x20','tlAam','iteration','storage','TKuuU','cLCkj','get','\x20blocked','iWjtN','spatial','gDtlU','tqzdd','\x20\x20\x20\x20\x20\x20Approved','rmXIc','assetUrl','VbvNq','\x20\x20\x20Created:\x20','KDTez','EpBvF','\x20/\x20','\x20\x20\x20Repository:\x20','aaSgT','2059892hSnwyj','utf-8','53180FoJcyU','selected','\x20Session\x20','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','createdAt','toFixed','git\x20rev-parse\x20--abbrev-ref\x20HEAD','Scenario\x20','verificationInProgressItems','\x0aAvailable\x20scenarios:','\x20at\x20[','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','gitRepoUrl','\x20\x20\x20\x20\x20Branch:\x20','XXPPp','sessionId','iRdVF','Next\x20page:\x20ranger\x20list\x20--offset\x20','/artifacts/','env','verified','\x0a✅\x20Scenario\x20updated','browserSessionId','incomplete','submittedAt','EwddZ','cwNjG','split','checklistItems','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x20incomplete','2375345qfTSBt','ipILe','yhdHx','verification_in_progress','items','canonicalFlow','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','uiNIv','1797024AQmEVF','QqZuE','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x20(v','output','selector','includeDeleted','CLAUDE_SESSION_ID','\x20\x20\x20\x20\x20ID:\x20','ready','log','any','EWoeD','GPSHH','IFqlB','closed','textContent','description','\x20\x20✅\x20No\x20feedback\x20to\x20address','dashboardUrl','jfPBC','\x20concluded.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','terminalReason','532870bUvVgi','totalCount','Current\x20session\x20not\x20found.','Cannot\x20conclude\x20session\x20with\x20status:\x20','\x0aNo\x20feature\x20reviews\x20found.','after','/api/v1/mcp/browser-sessions/','\x20\x20Expected\x20flow:','oRHBB','length','scenarios',':\x20\x22','zINpj','55XZMmne','\x20\x20\x20\x20','Not\x20in\x20a\x20git\x20repository.','nrdEy','blockedReason','EqBhb','notes','completed','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','hjoBP','in_progress','verifiedItems','offset','json','error','hZzwQ','unaddressedComments','toLocaleDateString','ZDfgO'];_0x4cbe=function(){return _0x33ae9b;};return _0x4cbe();}function getScenarioRationale(_0x31cc47,_0xa30ad1){const _0x2badba=_0x4dc6cf;if(_0xa30ad1)return _0xa30ad1;if(_0x31cc47['blockedReason'])return _0x31cc47[_0x2badba(0x189)];if(_0x31cc47['incompleteReason'])return _0x31cc47[_0x2badba(0x1d4)];if(_0x31cc47['canceledReason'])return _0x31cc47[_0x2badba(0x1c9)];if(_0x31cc47[_0x2badba(0x18b)])return _0x31cc47['notes'];return null;}export async function featureReportPrDescription(_0x22f69f,_0x2d713f){const _0x350a01=_0x4dc6cf,_0x2e37ad={'KDTez':_0x350a01(0x1d3),'oPkRf':function(_0x1642c6,_0x5542c8){return _0x1642c6>_0x5542c8;},'xkvQQ':_0x350a01(0x21c),'IKUMm':function(_0x535f82,_0x407ffe){return _0x535f82===_0x407ffe;},'gwIIm':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','bvDDg':function(_0x2bbb0c,_0x215406,_0x2dc064){return _0x2bbb0c(_0x215406,_0x2dc064);}},_0x2ff24c=_0x22f69f||await getActiveFeatureId();if(!_0x2ff24c)throw new Error(_0x350a01(0x238));const _0xee97e=await getFeature(_0x2ff24c),_0x268a99=_0xee97e['checklistItems']||[],_0x55357a=getCurrentSessionItems(_0xee97e,_0x268a99);_0x55357a[_0x350a01(0x181)]===0x0&&(console['error'](_0x2e37ad[_0x350a01(0x20c)]),process['exit'](0x1));const _0x327a20=_0x2d713f['excludeScenarios']??[],_0x5eb2ac=_0x327a20['filter'](_0xafcc8f=>!Number['isInteger'](_0xafcc8f)||_0xafcc8f<0x1||_0xafcc8f>_0x55357a[_0x350a01(0x181)]);if(_0x2e37ad[_0x350a01(0x1a5)](_0x5eb2ac['length'],0x0)){console[_0x350a01(0x193)](_0x350a01(0x216)+_0x5eb2ac['join'](',\x20')),console['log'](_0x2e37ad[_0x350a01(0x1b6)]);for(let _0x43c6ee=0x0;_0x43c6ee<_0x55357a['length'];_0x43c6ee++){console[_0x350a01(0x244)]('\x20\x20'+(_0x43c6ee+0x1)+'.\x20'+_0x55357a[_0x43c6ee]['description']);}process['exit'](0x1);}const _0x644a26=new Set(_0x327a20['map'](_0x152a9b=>_0x152a9b-0x1)),_0x59abd0=_0x55357a['filter']((_0x4cee60,_0x56d2c0)=>!_0x644a26[_0x350a01(0x19c)](_0x56d2c0));_0x2e37ad['IKUMm'](_0x59abd0['length'],0x0)&&(console['error'](_0x2e37ad['gwIIm']),process[_0x350a01(0x1db)](0x1));if(_0x2d713f[_0x350a01(0x192)])await outputJsonReport(_0x2ff24c,_0xee97e,_0x59abd0);else{const _0x2a6622=await _0x2e37ad['bvDDg'](getFeatureReportMarkdown,_0x2ff24c,{'itemIds':_0x59abd0[_0x350a01(0x1bf)](_0x47dd7d=>_0x47dd7d['id'])});process['stdout'][_0x350a01(0x1d8)](_0x2a6622[_0x350a01(0x19f)]()+'\x0a');}}async function outputJsonReport(_0x42108f,_0x4ed3cf,_0x5039c8){const _0x1d717f=_0x4dc6cf,_0x35f8c2={'oRHBB':function(_0x3f405e,_0xde2aae){return _0x3f405e>_0xde2aae;},'jxnsp':function(_0x5708b9,_0x315596){return _0x5708b9===_0x315596;},'iWjtN':function(_0x3408a6,_0x11af50){return _0x3408a6(_0x11af50);},'EdPkm':function(_0x4bc475){return _0x4bc475();},'RumMd':function(_0x16c348,_0x4deb02){return _0x16c348+_0x4deb02;}},_0x339bed=_0x35f8c2['EdPkm'](getApiBaseUrl),_0x3b3b9a=await _0x35f8c2[_0x1d717f(0x203)](getFeatureReport,_0x42108f),_0x181e1b=new Map(_0x3b3b9a[_0x1d717f(0x22f)][_0x1d717f(0x1bf)](_0xd2b890=>[_0xd2b890['id'],_0xd2b890])),_0x27fd34=await Promise['all'](_0x5039c8[_0x1d717f(0x1bf)](async _0x24e712=>{const _0x378244=_0x1d717f,_0x542d33=_0x181e1b[_0x378244(0x201)](_0x24e712['id']),_0x4d57c3=_0x542d33?.[_0x378244(0x1bb)]??null;let _0x302d8f=[];if(_0x24e712['browserSessionId'])try{const {steps:_0x2ba588}=await getBrowserSessionSteps(_0x24e712[_0x378244(0x229)]);_0x35f8c2[_0x378244(0x180)](_0x2ba588[_0x378244(0x181)],0x0)&&(_0x302d8f=_0x2ba588[_0x378244(0x1bf)](_0x3402a5=>{const _0x258936=_0x378244,_0x4ff0f5=_0x3402a5[_0x258936(0x1a2)]['find'](_0x1e9ddb=>_0x1e9ddb[_0x258936(0x1a3)]==='screenshot'&&_0x1e9ddb['timing']===_0x258936(0x17d))??_0x3402a5['assets']['find'](_0x12b7d5=>_0x12b7d5[_0x258936(0x1a3)]===_0x258936(0x1c5));let _0x2166a8=null,_0x4753a4=null;if(_0x4ff0f5){const _0x341205=_0x4ff0f5[_0x258936(0x1fe)][_0x258936(0x1b8)]['split']('/')[_0x258936(0x1cd)]();_0x2166a8=_0x339bed+_0x258936(0x17e)+_0x24e712['browserSessionId']+_0x258936(0x225)+_0x341205,_0x341205&&(_0x4753a4=_0x341205['replace'](/\.\w+$/,'')[_0x258936(0x1e3)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x4753a4||_0x3402a5['description']||_0x3402a5['stepName']||'Step\x20'+_0x3402a5['position'],'screenshot':_0x2166a8,'is_key_step':_0x3402a5['isKeyStep']};}));}catch{}return _0x35f8c2['jxnsp'](_0x302d8f[_0x378244(0x181)],0x0)&&_0x4d57c3?.[_0x378244(0x1e1)]&&(_0x302d8f=_0x4d57c3['screenshotUrls'][_0x378244(0x1bf)]((_0x538df5,_0xc7161d)=>({'description':'Screenshot\x20'+(_0xc7161d+0x1),'screenshot':_0x538df5,'is_key_step':![]}))),{'description':_0x24e712[_0x378244(0x24b)],'result':_0x35f8c2['iWjtN'](getScenarioResult,_0x24e712),'rationale':getScenarioRationale(_0x24e712,_0x4d57c3?.['agentResponse']),'steps':_0x302d8f};})),_0x42edbe={'url':_0x4ed3cf[_0x1d717f(0x24d)],'scenarios':_0x27fd34};process['stdout']['write'](_0x35f8c2['RumMd'](JSON[_0x1d717f(0x1f1)](_0x42edbe,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x14c243){const _0x31c62d=_0x4dc6cf,_0x187a89={'EqBhb':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','ZARhq':function(_0x10ae70,_0x12239f){return _0x10ae70(_0x12239f);},'QDAve':function(_0x5b6562,_0x57dcb1){return _0x5b6562===_0x57dcb1;},'PCMNN':'completed','ipILe':'\x0a✅\x20Session\x20is\x20already\x20completed.','htqIq':'\x0aConcluding\x20session...'},_0x4dc397=_0x14c243||await getActiveFeatureId();if(!_0x4dc397)throw new Error(_0x31c62d(0x250));const _0x24db23=await getFeature(_0x4dc397);if(!_0x24db23['currentSessionId'])throw new Error(_0x187a89[_0x31c62d(0x18a)]);const {sessions:_0x462db5}=await _0x187a89['ZARhq'](listFeatureSessions,_0x4dc397),_0x2a7b89=_0x462db5['find'](_0x399a52=>_0x399a52['id']===_0x24db23['currentSessionId']);if(!_0x2a7b89)throw new Error(_0x31c62d(0x17a));if(_0x187a89['QDAve'](_0x2a7b89[_0x31c62d(0x1e4)],_0x187a89[_0x31c62d(0x1ad)])){console['log'](_0x187a89[_0x31c62d(0x233)]);return;}if(_0x2a7b89['status']!==_0x31c62d(0x18f))throw new Error(_0x31c62d(0x17b)+_0x2a7b89[_0x31c62d(0x1e4)]);console['log'](_0x187a89[_0x31c62d(0x1f3)]),await concludeSession(_0x4dc397,_0x24db23[_0x31c62d(0x1b9)]),console['log']('\x0a✅\x20Session\x20'+_0x2a7b89[_0x31c62d(0x1fd)]+_0x31c62d(0x24f)),console[_0x31c62d(0x244)](_0x31c62d(0x1f6));}export async function featureSessions(_0x544e2c){const _0x4dbd00=_0x4dc6cf,_0x2916cb={'jlFIK':function(_0x402602){return _0x402602();},'GPSHH':function(_0xc9044d,_0x120f04){return _0xc9044d(_0x120f04);},'IFqlB':function(_0x5c4aab,_0x3396d2){return _0x5c4aab===_0x3396d2;},'clVaz':'No\x20sessions\x20found.','OCotD':_0x4dbd00(0x18c)},_0xff220a=_0x544e2c||await _0x2916cb['jlFIK'](getActiveFeatureId);if(!_0xff220a)throw new Error(_0x4dbd00(0x238));const _0x51a362=await getFeature(_0xff220a);console[_0x4dbd00(0x244)](_0x4dbd00(0x1c3)+_0x51a362[_0x4dbd00(0x1b7)]+'\x0a');const {sessions:_0x2b3d5d}=await _0x2916cb[_0x4dbd00(0x247)](listFeatureSessions,_0xff220a);if(_0x2916cb['IFqlB'](_0x2b3d5d[_0x4dbd00(0x181)],0x0)){console['log'](_0x2916cb[_0x4dbd00(0x1ab)]);return;}for(const _0x8c5747 of _0x2b3d5d){const _0x41609a=_0x8c5747[_0x4dbd00(0x1e4)]===_0x2916cb['OCotD']?'✅':_0x2916cb[_0x4dbd00(0x248)](_0x8c5747[_0x4dbd00(0x1e4)],_0x4dbd00(0x18f))?'🔄':'▶️';console['log'](_0x41609a+_0x4dbd00(0x215)+_0x8c5747[_0x4dbd00(0x1fd)]+'\x20('+_0x8c5747['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x8c5747['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x8c5747[_0x4dbd00(0x217)])['toLocaleString']()),_0x8c5747['completedAt']&&console[_0x4dbd00(0x244)](_0x4dbd00(0x198)+new Date(_0x8c5747['completedAt'])[_0x4dbd00(0x1d9)]()),console[_0x4dbd00(0x244)]('');}}export async function featureAddScenario(_0x2d8a50,_0x5d5e4f){const _0x5db8d5=_0x4dc6cf,_0x512f51={'QqZuE':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','CZTRP':function(_0x4227e9,_0x40d423,_0x1007f9){return _0x4227e9(_0x40d423,_0x1007f9);},'BXhXn':function(_0x4f7bbf,_0x4c1211){return _0x4f7bbf(_0x4c1211);},'EwddZ':function(_0x5e3813,_0x1e858d,_0x4d79ce){return _0x5e3813(_0x1e858d,_0x4d79ce);}},_0x5b7d9b=_0x5d5e4f||await getActiveFeatureId();if(!_0x5b7d9b)throw new Error(_0x512f51[_0x5db8d5(0x23b)]);const _0x38e177=await getFeature(_0x5b7d9b);if(_0x38e177['latestReview']&&!_0x38e177[_0x5db8d5(0x1f4)]['submittedAt'])throw new Error(_0x5db8d5(0x230)+_0x38e177['dashboardUrl']);await _0x512f51['CZTRP'](createChecklistItem,_0x5b7d9b,_0x2d8a50);const _0xa871fa=await _0x512f51['BXhXn'](getFeature,_0x5b7d9b);console['log']('\x0a✅\x20Scenario\x20added'),_0x512f51[_0x5db8d5(0x22c)](displayFeature,_0xa871fa,_0xa871fa[_0x5db8d5(0x22f)]);}export async function featureEditScenario(_0x3a374e,_0x1778e4){const _0x21a332=_0x4dc6cf,_0x54dfca={'SvieQ':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ctGCl':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','yhdHx':function(_0x253913,_0x550387){return _0x253913===_0x550387;},'RCRwY':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','TMDqQ':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','ukSuw':function(_0x46b07f,_0x43b064){return _0x46b07f<_0x43b064;},'tlAam':function(_0x530b44,_0x1cc0b9){return _0x530b44-_0x1cc0b9;},'PGLbL':function(_0x1fdd19,_0x193df0){return _0x1fdd19>=_0x193df0;},'XUTdR':function(_0x5e48be,_0x571e8a){return _0x5e48be<_0x571e8a;},'JNlvJ':function(_0x105dda,_0x48a825){return _0x105dda+_0x48a825;},'hZzwQ':function(_0x2f3a6d,_0x352e69){return _0x2f3a6d(_0x352e69);},'WYaUc':function(_0x356a62,_0x444b62,_0x4ba0cb){return _0x356a62(_0x444b62,_0x4ba0cb);}},_0x24bb42=_0x1778e4['id']||await getActiveFeatureId();!_0x24bb42&&(console[_0x21a332(0x193)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x21a332(0x193)](_0x54dfca['SvieQ']),process['exit'](0x1));const _0x4bede1=await getFeature(_0x24bb42);_0x4bede1['latestReview']&&!_0x4bede1['latestReview'][_0x21a332(0x22b)]&&(console[_0x21a332(0x193)](_0x54dfca['ctGCl']),console[_0x21a332(0x193)]('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x4bede1['dashboardUrl']),process['exit'](0x1));const _0x4e0900=_0x4bede1[_0x21a332(0x22f)]||[];_0x54dfca[_0x21a332(0x234)](_0x4e0900['length'],0x0)&&(console[_0x21a332(0x193)](_0x54dfca['RCRwY']),process['exit'](0x1));if(_0x54dfca[_0x21a332(0x234)](_0x1778e4[_0x21a332(0x1d2)],undefined)){console[_0x21a332(0x193)](_0x54dfca['TMDqQ']),console['log'](_0x21a332(0x21c));for(let _0x5168d2=0x0;_0x54dfca['ukSuw'](_0x5168d2,_0x4e0900[_0x21a332(0x181)]);_0x5168d2++){console[_0x21a332(0x244)]('\x20\x20'+(_0x5168d2+0x1)+'.\x20'+_0x4e0900[_0x5168d2]['description']);}process['exit'](0x1);}const _0x448387=_0x54dfca[_0x21a332(0x1fc)](_0x1778e4[_0x21a332(0x1d2)],0x1);if(_0x448387<0x0||_0x54dfca[_0x21a332(0x1c4)](_0x448387,_0x4e0900['length'])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x1778e4['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x4e0900['length']+'\x20scenarios.'),console[_0x21a332(0x244)]('\x0aAvailable\x20scenarios:');for(let _0x41097e=0x0;_0x54dfca['XUTdR'](_0x41097e,_0x4e0900[_0x21a332(0x181)]);_0x41097e++){console['log']('\x20\x20'+_0x54dfca['JNlvJ'](_0x41097e,0x1)+'.\x20'+_0x4e0900[_0x41097e][_0x21a332(0x24b)]);}process['exit'](0x1);}const _0x5ea0a5=_0x4e0900[_0x448387];await updateChecklistItem(_0x24bb42,_0x5ea0a5['id'],{'description':_0x3a374e});const _0xf9e08d=await _0x54dfca[_0x21a332(0x194)](getFeature,_0x24bb42);console['log'](_0x21a332(0x228)),_0x54dfca['WYaUc'](displayFeature,_0xf9e08d,_0xf9e08d[_0x21a332(0x22f)]);}async function downloadFeedbackImage(_0x1e2048,_0x448203){const _0x19ba49=_0x4dc6cf,_0x3ce9b3={'McJiD':'feedback-images'};try{const _0x163d80=join(getRangerDir(),_0x3ce9b3[_0x19ba49(0x19a)]);await mkdir(_0x163d80,{'recursive':!![]});const _0x293bf2=join(_0x163d80,'comment_'+_0x448203+_0x19ba49(0x1a7)),_0x13eea8=await fetch(_0x1e2048);if(!_0x13eea8['ok'])return null;const _0x490d6e=Buffer['from'](await _0x13eea8['arrayBuffer']());return await writeFile(_0x293bf2,_0x490d6e),_0x293bf2;}catch{return null;}}export async function featureGetReview(_0x270baf){const _0xfab706=_0x4dc6cf,_0x5e5450={'SeHnF':function(_0x268f17){return _0x268f17();},'DCSIU':_0xfab706(0x250),'VXlsQ':function(_0x5782d4,_0x3df429){return _0x5782d4===_0x3df429;},'iKauD':function(_0x191fb9,_0x2ee09c){return _0x191fb9<_0x2ee09c;},'diekW':'en-US','DVYmQ':'numeric','AGlCe':'Unknown','dovPP':function(_0x5217f2,_0x31735a,_0x3f1be9){return _0x5217f2(_0x31735a,_0x3f1be9);},'EWoeD':_0xfab706(0x1f9),'HKhjz':function(_0x40c568,_0xc2b9b4){return _0x40c568+_0xc2b9b4;}},_0x5780eb=_0x270baf||await _0x5e5450['SeHnF'](getActiveFeatureId);if(!_0x5780eb)throw new Error(_0x5e5450[_0xfab706(0x1b1)]);const _0x4cdbcd=await getFeature(_0x5780eb),{items:_0x280624}=await getActionItems(_0x5780eb);console[_0xfab706(0x244)]('\x0a📋\x20Feedback\x20for:\x20'+_0x4cdbcd['name']+'\x20('+_0x4cdbcd['id']+')\x0a');if(_0x5e5450['VXlsQ'](_0x280624[_0xfab706(0x181)],0x0)){console[_0xfab706(0x244)]('No\x20scenarios\x20found.');return;}for(let _0x2f4325=0x0;_0x5e5450['iKauD'](_0x2f4325,_0x280624['length']);_0x2f4325++){const _0x271696=_0x280624[_0x2f4325],_0x22c325=_0x271696['version']>0x1?'\x20(v'+_0x271696[_0xfab706(0x1b3)]+')':'',_0x3803c3=await getItemFeedback(_0x5780eb,_0x271696['id']);if(_0x3803c3['unaddressedComments'][_0xfab706(0x181)]>0x0){console[_0xfab706(0x244)]('Scenario\x20'+(_0x2f4325+0x1)+_0xfab706(0x183)+_0x271696[_0xfab706(0x24b)]+'\x22'+_0x22c325+'\x20—\x20'+_0x3803c3[_0xfab706(0x195)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x211e18 of _0x3803c3[_0xfab706(0x195)]){const _0x4f6ddb=new Date(_0x211e18['createdAt'])[_0xfab706(0x196)](_0x5e5450[_0xfab706(0x19d)],{'month':'short','day':_0x5e5450['DVYmQ']}),_0xece4d9=_0x211e18['authorName']||_0x211e18['authorEmail']||_0x5e5450[_0xfab706(0x1a6)];console['log']('\x20\x20💬\x20'+_0xece4d9+'\x20('+_0x4f6ddb+_0xfab706(0x1e0)+_0x211e18['content']+'\x22');if(_0x211e18[_0xfab706(0x209)]){const _0x23ece3=await _0x5e5450['dovPP'](downloadFeedbackImage,_0x211e18[_0xfab706(0x209)],_0x211e18['id']);_0x23ece3&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x23ece3);}if(_0x211e18[_0xfab706(0x1ce)]){const _0x1a9bba=_0x211e18[_0xfab706(0x1ce)][_0xfab706(0x23f)][_0xfab706(0x22e)](_0xfab706(0x1ac))['pop']()?.['split'](':')[0x0]||_0x5e5450[_0xfab706(0x246)],_0x1fc5e7=_0x211e18['domRef']['textContent']?'\x20\x22'+_0x211e18[_0xfab706(0x1ce)][_0xfab706(0x24a)]['slice'](0x0,0x3c)+'\x22':'';console[_0xfab706(0x244)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x1a9bba+'>'+_0x1fc5e7),console['log'](_0xfab706(0x199)+_0x211e18[_0xfab706(0x1ce)]['selector']);}else{if(_0x211e18[_0xfab706(0x204)]){const _0x5a4bee=_0x211e18[_0xfab706(0x204)]['coordinates'];_0x211e18['spatial']['type']==='point'&&_0x5a4bee['length']>=0x2?console[_0xfab706(0x244)](_0xfab706(0x1fa)+_0x5a4bee[0x0][_0xfab706(0x218)](0x2)+',\x20'+_0x5a4bee[0x1][_0xfab706(0x218)](0x2)+')'):console[_0xfab706(0x244)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x211e18['spatial']['type']+_0xfab706(0x21d)+_0x5a4bee[_0xfab706(0x1bf)](_0x394109=>_0x394109['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x3803c3[_0xfab706(0x237)]){console['log'](_0xfab706(0x17f));for(const _0x16d0a7 of _0x3803c3[_0xfab706(0x237)][_0xfab706(0x22e)]('\x0a')){console[_0xfab706(0x244)](_0xfab706(0x186)+_0x16d0a7);}}}else console[_0xfab706(0x244)](_0xfab706(0x21a)+_0x5e5450['HKhjz'](_0x2f4325,0x1)+_0xfab706(0x183)+_0x271696[_0xfab706(0x24b)]+'\x22'+_0x22c325+'\x20—\x20no\x20comments'),console[_0xfab706(0x244)](_0xfab706(0x24c));console['log']('');}}export async function featureDelete(_0x52b06a){const _0x4dd9ba=_0x4dc6cf,_0x362aed=_0x52b06a||await getActiveFeatureId();if(!_0x362aed)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 _0x56d650=await getFeature(_0x362aed);await softDeleteFeature(_0x362aed),console[_0x4dd9ba(0x244)](_0x4dd9ba(0x18d)+_0x56d650['name']+'\x20('+_0x362aed+')'),console['log']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x362aed);}export async function featureRestore(_0x30b353){const _0x1e3084=_0x4dc6cf,_0x37a8c1={'iZvJL':function(_0x324871,_0x14d9c0,_0xb330e2){return _0x324871(_0x14d9c0,_0xb330e2);}};await restoreFeature(_0x30b353);const _0x53e5cf=await getFeature(_0x30b353);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x53e5cf['name']+'\x20('+_0x30b353+')'),_0x37a8c1[_0x1e3084(0x1aa)](displayFeature,_0x53e5cf,_0x53e5cf['checklistItems']);}
|
|
1
|
+
function _0x42a3(){const _0x46bee6=['/api/v1/mcp/browser-sessions/','\x20/\x20','RecJt','split','gitRepoUrl','\x20\x20\x20\x20\x20ID:\x20','\x20\x20💬\x20','yxLfk','ELhOw','reports','QrpAV','1NYHPjn','\x1b[0m','No\x20scenarios\x20found.','Next\x20page:\x20ranger\x20list\x20--offset\x20','browserSessionId','output','env','assets','verification_in_progress','tzcQd','lsdFQ','utf-8','name','incompleteItems','4990794eBguxG','completedAt','checklistItems','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','LDsnr','ziEVL','2798109PGroeq','GWTIg','createdAt','nYuwk','aVlqW','stepName','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','currentSessionId','CLAUDE_SESSION_ID','write','description','tHHiU','parentItemId','\x20concluded.','quPBR','incompleteReason','\x20\x20\x20Progress:\x20','\x0a❌\x20Invalid\x20scenario\x20index:\x20','RojiB','\x20verified','JGyNK',':\x20\x22','evDWG','\x0a✅\x20Restored\x20feature\x20review:\x20','GwRrh','scenario','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','kpBek','xzEDQ','50lAdbdP','version','unaddressedComments','sknqb','kmqmT','DBPgo','toLocaleDateString','MfVwp','length','jzfBk','pop','closed','pdgyz','kHCvH','rtAgn','ijcsd','VDykV','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','iteration','\x20\x20\x20\x20\x20\x20Incomplete:\x20','assetType','terminalReason','TZAaW','CRXNh','\x20\x20\x20\x20\x20\x20Approved','olDcG','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','trim','stats','EGMOs','toLocaleString','KcwQD','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x0a⚠️\x20\x20','ftgZP','timing','VDVYy','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','ready','rThpx','\x20at\x20[','\x0a✅\x20Resumed\x20feature\x20review:\x20','5677160TppIXr','canonicalFlow','\x20\x20\x20\x20','63ZptVam','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','type','\x20\x20\x20▶️\x20Started\x20session\x20','error','\x20blocked','\x20of\x20','isTTY','\x20—\x20','pUEOF','git\x20remote\x20get-url\x20origin','includeDeleted','trimEnd','replace','agentResponse','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','MrTJg','approved','ufTUf','log','Screenshot\x20','blockedReason','authorName','uhogo','en-US','stdout','screenshot','gitBranch','assetUrl','vWZWX','qkXio','gjIih','join','map','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','FiaxO','...','status','ATEZL','6645HsRJdb','position','PKNyF','get','json','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','blockedItems','oeffw','\x20\x20\x20\x20\x20Branch:\x20','JxBDa','filter','QGIaT','domRef','Current\x20session\x20not\x20found.','yfhWJ','gfOkJ','xWNxp','LtTaf','warn','stringify','has','totalCount','zRNkM','coordinates','gMbzK','element','IrZMY','4228ClJUui','\x20\x20\x20\x20\x20📋\x20Selector:\x20','canceledReason','blocked','wCtmR','authorEmail','\x20[has\x20reviewer\x20feedback]','notes','Showing\x20','aNFnx','point','hhhfi','spatial','\x0a✅\x20Session\x20is\x20already\x20completed.','sessionId','find','QzVdj','github.com/','895296THVAkq','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','textContent','hupaA','selector','in_progress','3141470GRHWhx','\x20\x20\x20Completed:\x20','\x20\x20\x20Description:\x20','dashboardUrl','latestReview','pipe','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20Expected\x20flow:','toFixed','Cannot\x20conclude\x20session\x20with\x20status:\x20','kQmNV','SmiEL','\x20--limit\x20','completed','submittedAt','\x20Session\x20','QOdXJ','uBoBz','LOivW','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','scenarios','VTbaN','active-feature.txt','51269867nVSiis','No\x20sessions\x20found.','\x0a✅\x20Feature\x20review\x20created:\x20','\x20\x20\x20ID:\x20'];_0x42a3=function(){return _0x46bee6;};return _0x42a3();}const _0x492c6d=_0x56e7;(function(_0x21d07a,_0x480696){const _0x58578e=_0x56e7,_0x517c7d=_0x21d07a();while(!![]){try{const _0x1fef29=-parseInt(_0x58578e(0x13d))/0x1*(-parseInt(_0x58578e(0x117))/0x2)+parseInt(_0x58578e(0x14b))/0x3+parseInt(_0x58578e(0x1dd))/0x4*(parseInt(_0x58578e(0x1c2))/0x5)+parseInt(_0x58578e(0x111))/0x6*(-parseInt(_0x58578e(0x19b))/0x7)+parseInt(_0x58578e(0x198))/0x8+parseInt(_0x58578e(0x151))/0x9*(parseInt(_0x58578e(0x16e))/0xa)+-parseInt(_0x58578e(0x12e))/0xb;if(_0x1fef29===_0x480696)break;else _0x517c7d['push'](_0x517c7d['shift']());}catch(_0x281bd7){_0x517c7d['push'](_0x517c7d['shift']());}}}(_0x42a3,0xdb943));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x29615f from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE=_0x492c6d(0x12d),bold=_0x1dc034=>'\x1b[1m'+_0x1dc034+_0x492c6d(0x13e);function getGitRepoUrl(){const _0x1ceff0=_0x492c6d,_0x4fd855={'PIqDK':_0x1ceff0(0x1a5),'iNtKN':'pipe'};try{const _0x2a2d86=execSync(_0x4fd855['PIqDK'],{'encoding':'utf-8','stdio':[_0x1ceff0(0x11c),'pipe',_0x4fd855['iNtKN']]})[_0x1ceff0(0x189)]();return _0x2a2d86['replace'](/\.git$/,'')[_0x1ceff0(0x1a8)](/^git@github\.com:/,_0x1ceff0(0x110))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x24be31=_0x492c6d,_0x55e57b={'euCvA':function(_0x3d585b,_0x22907e,_0x50ddf0){return _0x3d585b(_0x22907e,_0x50ddf0);},'gdfMa':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','FMFBT':_0x24be31(0x148),'LDsnr':'pipe'};try{return _0x55e57b['euCvA'](execSync,_0x55e57b['gdfMa'],{'encoding':_0x55e57b['FMFBT'],'stdio':[_0x55e57b[_0x24be31(0x14f)],_0x24be31(0x11c),'pipe']})[_0x24be31(0x189)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x539496=_0x492c6d,_0x36d633={'dzsyT':function(_0x1942a6,_0x13bd41,_0x10b343){return _0x1942a6(_0x13bd41,_0x10b343);},'jkdVs':function(_0x501212){return _0x501212();},'kmqmT':_0x539496(0x148)},_0x4546df=_0x36d633['dzsyT'](join,_0x36d633['jkdVs'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4546df))return null;try{const _0x241822=await readFile(_0x4546df,_0x36d633[_0x539496(0x172)]);return _0x241822['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x18d453){const _0x55caf5=_0x492c6d,_0x439dc0={'ATEZL':function(_0x25d07c,_0x2f171b,_0x36276c){return _0x25d07c(_0x2f171b,_0x36276c);},'VTbaN':function(_0x51f0b7,_0x23e6b2,_0x28d7ba,_0x2eb577){return _0x51f0b7(_0x23e6b2,_0x28d7ba,_0x2eb577);},'FiaxO':_0x55caf5(0x148)},_0x4a5352=getRangerDir(),_0x2fadda=join(_0x4a5352,ACTIVE_FEATURE_FILE);!existsSync(_0x4a5352)&&await _0x439dc0[_0x55caf5(0x1c1)](mkdir,_0x4a5352,{'recursive':!![]}),await _0x439dc0[_0x55caf5(0x12c)](writeFile,_0x2fadda,_0x18d453,_0x439dc0[_0x55caf5(0x1be)]);}function getProgressDisplay(_0x4b3279){const _0x2265b6=_0x492c6d,_0x2ed766={'ziEVL':function(_0x5f2a90,_0x1d5d9b){return _0x5f2a90+_0x1d5d9b;},'ftgZP':function(_0x5af7d4,_0x2779b7){return _0x5af7d4+_0x2779b7;},'RecJt':function(_0x4a9a4f,_0x7484b1){return _0x4a9a4f+_0x7484b1;},'stvGt':function(_0x399d3d,_0x31f977){return _0x399d3d*_0x31f977;},'lsdFQ':function(_0x61c02,_0x59e859){return _0x61c02/_0x59e859;},'uBoBz':function(_0x2fc164,_0x259921){return _0x2fc164>_0x259921;}},_0x44fb10=_0x4b3279['verifiedItems']||0x0,_0x47083c=_0x4b3279['verificationInProgressItems']||0x0,_0x309d46=_0x4b3279[_0x2265b6(0x1c8)]||0x0,_0x348a55=_0x4b3279[_0x2265b6(0x14a)]||0x0,_0x1ed48b=_0x4b3279['pendingItems']||0x0,_0x530e4b=_0x2ed766[_0x2265b6(0x150)](_0x2ed766[_0x2265b6(0x190)](_0x2ed766[_0x2265b6(0x134)](_0x44fb10+_0x47083c,_0x309d46),_0x348a55),_0x1ed48b);if(_0x530e4b===0x0)return'-';const _0x39b100=0xa,_0x3e12a6=Math['round'](_0x2ed766['stvGt'](_0x2ed766[_0x2265b6(0x147)](_0x44fb10,_0x530e4b),_0x39b100)),_0x1064aa='█'['repeat'](_0x3e12a6)+'░'['repeat'](_0x39b100-_0x3e12a6),_0x100beb=[];if(_0x2ed766[_0x2265b6(0x128)](_0x309d46,0x0))_0x100beb['push'](_0x309d46+_0x2265b6(0x1a0));if(_0x348a55>0x0)_0x100beb['push'](_0x348a55+'\x20incomplete');if(_0x47083c>0x0)_0x100beb['push'](_0x47083c+'\x20in\x20progress');const _0x31ce26=_0x2ed766['uBoBz'](_0x100beb[_0x2265b6(0x176)],0x0)?'\x20('+_0x100beb['join'](',\x20')+')':'';return _0x1064aa+'\x20'+_0x44fb10+'/'+_0x530e4b+_0x2265b6(0x164)+_0x31ce26;}function getCurrentSessionItems(_0x73e644,_0xd392b8){const _0x5cd922=_0x492c6d;if(!_0x73e644['currentSessionId'])return _0xd392b8['filter'](_0x41f37e=>!_0x41f37e['sessionId']);return _0xd392b8[_0x5cd922(0x1cc)](_0x3476bf=>_0x3476bf[_0x5cd922(0x10d)]===_0x73e644['currentSessionId']||!_0x3476bf[_0x5cd922(0x10d)]);}function displayFeature(_0x300bd2,_0x488480){const _0x398d12=_0x492c6d,_0xa27599={'nYuwk':function(_0x2a0c6b,_0x5c159d){return _0x2a0c6b>_0x5c159d;},'tzcQd':function(_0x2acc34,_0x434f0e){return _0x2acc34<_0x434f0e;},'ogslj':function(_0x105e99,_0x1e67c4){return _0x105e99===_0x1e67c4;},'aVlqW':_0x398d12(0x1ac),'evDWG':function(_0x112cf0,_0x1256c9){return _0x112cf0===_0x1256c9;},'TZAaW':'verified','siKJu':'incomplete','QGIaT':_0x398d12(0x1e0),'QzVdj':'closed','LmwfE':'verification_in_progress','qFaHN':function(_0x3a54d6,_0x399247){return _0x3a54d6!==_0x399247;},'KyIxc':function(_0x3aa7d5,_0x4da89c){return _0x3aa7d5!==_0x4da89c;},'GWTIg':function(_0x34bdff,_0x832a3d){return _0x34bdff===_0x832a3d;}};console[_0x398d12(0x1ae)]('\x0a'+_0x300bd2['name']+'\x20('+_0x300bd2[_0x398d12(0x11a)]+')');_0x300bd2['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x300bd2['stats']));_0x300bd2['description']&&console['log'](_0x398d12(0x119)+_0x300bd2['description']);_0x300bd2[_0x398d12(0x136)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x300bd2['gitRepoUrl']);_0x300bd2['gitBranch']&&console[_0x398d12(0x1ae)]('\x20\x20\x20Branch:\x20'+_0x300bd2['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x300bd2[_0x398d12(0x153)])[_0x398d12(0x18c)]());_0x300bd2[_0x398d12(0x14c)]&&console['log'](_0x398d12(0x118)+new Date(_0x300bd2[_0x398d12(0x14c)])['toLocaleString']());if(_0x488480&&_0xa27599[_0x398d12(0x154)](_0x488480['length'],0x0)){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x5d715b=0x0;_0xa27599[_0x398d12(0x146)](_0x5d715b,_0x488480['length']);_0x5d715b++){const _0xe2673b=_0x488480[_0x5d715b];let _0x22df10;if(_0xe2673b[_0x398d12(0x1c0)]==='closed'&&_0xa27599['ogslj'](_0xe2673b[_0x398d12(0x183)],_0xa27599['aVlqW']))_0x22df10='✅';else{if(_0xa27599[_0x398d12(0x167)](_0xe2673b['status'],_0xa27599[_0x398d12(0x184)]))_0x22df10='🟢';else{if(_0xa27599['ogslj'](_0xe2673b['status'],_0xa27599['siKJu']))_0x22df10='🟠';else{if(_0xa27599[_0x398d12(0x167)](_0xe2673b['status'],_0xa27599['QGIaT']))_0x22df10='🛑';else{if(_0xe2673b['status']===_0xa27599['QzVdj'])_0x22df10='⛔';else _0xa27599[_0x398d12(0x167)](_0xe2673b[_0x398d12(0x1c0)],_0xa27599['LmwfE'])?_0x22df10='⏳':_0x22df10='⬜';}}}}const _0x6a926f=_0xe2673b['version']>0x1?'\x20(v'+_0xe2673b[_0x398d12(0x16f)]+')':'',_0x5311b4=_0xe2673b[_0x398d12(0x16f)]>0x1&&_0xe2673b[_0x398d12(0x15d)]&&_0xa27599['qFaHN'](_0xe2673b['status'],'closed')&&_0xa27599['KyIxc'](_0xe2673b['status'],_0xa27599[_0x398d12(0x184)])?_0x398d12(0x1e3):'';console['log']('\x20\x20\x20'+(_0x5d715b+0x1)+'.\x20'+_0x22df10+'\x20'+_0xe2673b[_0x398d12(0x15b)]+_0x6a926f+_0x5311b4);_0xe2673b['status']===_0xa27599[_0x398d12(0x1cd)]&&_0xe2673b['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0xe2673b['blockedReason']);_0xa27599[_0x398d12(0x152)](_0xe2673b['status'],'incomplete')&&_0xe2673b['incompleteReason']&&console['log'](_0x398d12(0x181)+_0xe2673b['incompleteReason']);if(_0xa27599['evDWG'](_0xe2673b['status'],_0xa27599['QzVdj'])&&_0xe2673b['terminalReason']===_0xa27599[_0x398d12(0x155)])console[_0x398d12(0x1ae)](_0x398d12(0x186));else _0xe2673b[_0x398d12(0x1c0)]===_0xa27599[_0x398d12(0x10f)]&&_0xe2673b[_0x398d12(0x1df)]&&console[_0x398d12(0x1ae)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0xe2673b['canceledReason']);}}}export async function featureCreate(_0xf6cb54,_0x3e83dc){const _0xc9b646=_0x492c6d,_0x1ce76f={'bHgzd':function(_0x4fb7ea){return _0x4fb7ea();},'KAilK':function(_0x474558,_0x36a8db){return _0x474558===_0x36a8db;},'RojiB':function(_0x31c920,_0x51f707){return _0x31c920(_0x51f707);},'CPPaP':function(_0x9f5bce){return _0x9f5bce();},'tHHiU':function(_0x1b49f2){return _0x1b49f2();},'uvvxT':'\x0aCreating\x20feature\x20review...','kpBek':function(_0x1e21b0,_0xd7bfa2){return _0x1e21b0(_0xd7bfa2);},'KFxBJ':function(_0x199c77,_0x5a1dbb,_0xa9b5df){return _0x199c77(_0x5a1dbb,_0xa9b5df);}},{envNames:_0x4fe83b}=await _0x1ce76f['bHgzd'](getEnvNames);_0x1ce76f['KAilK'](_0x4fe83b[_0xc9b646(0x176)],0x0)&&console[_0xc9b646(0x1d4)]('\x0a'+_0x1ce76f[_0xc9b646(0x163)](formatProfileRequiredMessage,_0xf6f54c=>bold(_0xf6f54c)));const _0x3a7847=_0x3e83dc['scenarios']?_0x3e83dc[_0xc9b646(0x12b)][_0xc9b646(0x1bc)](_0x35187d=>_0x35187d['trim']()):[],_0x3baa3c=_0x1ce76f['CPPaP'](getGitRepoUrl),_0x5996cb=_0x1ce76f[_0xc9b646(0x15c)](getGitBranch);console['log'](_0x1ce76f['uvvxT']);const _0x4b7a55=await _0x1ce76f[_0xc9b646(0x163)](createFeature,{'name':_0xf6cb54,'description':_0x3e83dc['description'],'checklist':_0x3a7847,'gitRepoUrl':_0x3baa3c,'gitBranch':_0x5996cb});await _0x1ce76f[_0xc9b646(0x16c)](setActiveFeatureId,_0x4b7a55['id']),await _0x1ce76f['RojiB'](tryStartCurrentSession,_0x4b7a55['id']);const _0x48e6f1=process['env'][_0xc9b646(0x159)];_0x48e6f1&&_0x1ce76f['KFxBJ'](registerSession,_0x48e6f1,_0x4b7a55['id']),console[_0xc9b646(0x1ae)](_0xc9b646(0x130)+_0x4b7a55['id']),displayFeature(_0x4b7a55,_0x4b7a55[_0xc9b646(0x14d)]),console['log'](_0xc9b646(0x18e));}export async function featureList(_0x23e8e3){const _0x426727=_0x492c6d,_0x558bd6={'hupaA':function(_0x524ef2){return _0x524ef2();},'GwRrh':function(_0xa9ba7d){return _0xa9ba7d();},'aNFnx':function(_0x4b3e87,_0xe7b349){return _0x4b3e87(_0xe7b349);},'WOjhI':function(_0x4008b2,_0x288b6c){return _0x4008b2+_0x288b6c;},'nUhGb':'\x20--current-branch'},_0x203b01={'limit':_0x23e8e3['limit']??0xa,'offset':_0x23e8e3['offset']??0x0,'includeDeleted':_0x23e8e3[_0x426727(0x1a6)]};_0x23e8e3['currentBranch']&&(_0x203b01[_0x426727(0x136)]=_0x558bd6[_0x426727(0x114)](getGitRepoUrl),_0x203b01[_0x426727(0x1b6)]=_0x558bd6[_0x426727(0x169)](getGitBranch));const _0x36335c=await _0x558bd6[_0x426727(0x1e6)](listFeatures,_0x203b01);if(_0x36335c['items'][_0x426727(0x176)]===0x0){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x1cfb59=_0x36335c['totalCount']>_0x36335c['items']['length']?_0x426727(0x1e5)+_0x36335c['items'][_0x426727(0x176)]+_0x426727(0x1a1)+_0x36335c['totalCount']:_0x36335c[_0x426727(0x1d7)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1cfb59+':\x0a');for(const _0x3d8677 of _0x36335c['items']){console[_0x426727(0x1ae)](''+_0x3d8677['name']),console['log'](_0x426727(0x131)+_0x3d8677['id']),_0x3d8677[_0x426727(0x18a)]&&console['log'](_0x426727(0x161)+_0x558bd6['aNFnx'](getProgressDisplay,_0x3d8677['stats'])),_0x3d8677['gitBranch']&&console[_0x426727(0x1ae)]('\x20\x20\x20Branch:\x20'+_0x3d8677['gitBranch']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x3d8677[_0x426727(0x153)])[_0x426727(0x174)]()),console['log']('');}const _0x360f40=_0x203b01['limit']??0xa,_0x3b0731=_0x558bd6['WOjhI'](_0x203b01['offset']??0x0,_0x36335c['items'][_0x426727(0x176)]);if(_0x3b0731<_0x36335c['totalCount']){const _0x515492=_0x360f40!==0xa?_0x426727(0x123)+_0x360f40:'',_0x410326=_0x23e8e3['currentBranch']?_0x558bd6['nUhGb']:'',_0x52fc8e=_0x23e8e3['includeDeleted']?'\x20--include-deleted':'';console[_0x426727(0x1ae)](_0x426727(0x140)+_0x3b0731+_0x515492+_0x410326+_0x52fc8e);}}function _0x56e7(_0x268715,_0x24379f){_0x268715=_0x268715-0x109;const _0x42a387=_0x42a3();let _0x56e7c0=_0x42a387[_0x268715];return _0x56e7c0;}export async function featureShow(_0x3aff8e){const _0x44b1e2=_0x492c6d,_0x44685c=_0x3aff8e||await getActiveFeatureId();if(!_0x44685c)throw new Error(_0x44b1e2(0x11d));const _0x39bf25=await getFeature(_0x44685c);displayFeature(_0x39bf25,_0x39bf25['checklistItems']);}export async function featureResume(_0x500f57){const _0x3c9112=_0x492c6d,_0x527c59={'LtTaf':function(_0x88596f,_0x80a5a8){return _0x88596f(_0x80a5a8);},'bgOvY':function(_0x145130){return _0x145130();},'AawUp':function(_0x312036,_0x293ef8){return _0x312036!==_0x293ef8;},'IrZMY':function(_0x5bf640,_0x5c89de,_0x2c5cd7){return _0x5bf640(_0x5c89de,_0x2c5cd7);},'GngDc':function(_0x13e221){return _0x13e221();},'NZqgx':function(_0x498531,_0x52408c){return _0x498531&&_0x52408c;},'PKNyF':'Not\x20in\x20a\x20git\x20repository.','hfkBx':'any','sknqb':function(_0x52e5f4,_0x365f64){return _0x52e5f4===_0x365f64;},'HhxZQ':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','BrjYv':'selected','XQHWJ':function(_0x5baee2,_0x242b1f){return _0x5baee2(_0x242b1f);},'Xvydo':function(_0x550740,_0x3b05ac,_0x2f54a4){return _0x550740(_0x3b05ac,_0x2f54a4);}};if(_0x500f57){const _0x26eb11=await getFeature(_0x500f57);await _0x527c59['LtTaf'](setActiveFeatureId,_0x26eb11['id']);const _0x5334f4=_0x527c59['bgOvY'](getGitBranch);_0x5334f4&&_0x527c59['AawUp'](_0x5334f4,_0x26eb11[_0x3c9112(0x1b6)])&&(await updateFeature(_0x26eb11['id'],{'gitBranch':_0x5334f4}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x5334f4));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x26eb11[_0x3c9112(0x149)]+'\x20('+_0x26eb11['id']+')'),await tryStartCurrentSession(_0x26eb11['id']);const _0x36bb69=process[_0x3c9112(0x143)]['CLAUDE_SESSION_ID'];_0x36bb69&&_0x527c59['IrZMY'](registerSession,_0x36bb69,_0x26eb11['id']);displayFeature(_0x26eb11,_0x26eb11['checklistItems']),await printFeedbackNudge(_0x26eb11['id']);return;}const _0x248b58=getGitRepoUrl(),_0x1c6a31=_0x527c59['GngDc'](getGitBranch);if(_0x527c59['NZqgx'](!_0x248b58,!_0x1c6a31))throw new Error(_0x527c59[_0x3c9112(0x1c4)]);console[_0x3c9112(0x1ae)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x248b58||'any')+_0x3c9112(0x133)+(_0x1c6a31||_0x527c59['hfkBx'])+_0x3c9112(0x1bf));const _0x1c4292=await _0x527c59[_0x3c9112(0x1d3)](listFeatures,{'gitRepoUrl':_0x248b58,'gitBranch':_0x1c6a31}),_0x3d3c2d=_0x1c4292['items'][_0x3c9112(0x1cc)](_0x155f69=>!_0x155f69[_0x3c9112(0x14c)]);if(_0x527c59[_0x3c9112(0x171)](_0x3d3c2d[_0x3c9112(0x176)],0x0)){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0x3c9112(0x1aa));return;}let _0x231672;if(_0x527c59[_0x3c9112(0x171)](_0x3d3c2d['length'],0x1))_0x231672=_0x3d3c2d[0x0];else{const _0x7c08fe=process['stdin'][_0x3c9112(0x1a2)]&&process[_0x3c9112(0x1b4)][_0x3c9112(0x1a2)];if(!_0x7c08fe){console[_0x3c9112(0x1ae)](_0x3c9112(0x1c7));for(const _0x24e938 of _0x3d3c2d){console['log']('\x20\x20'+_0x24e938[_0x3c9112(0x149)]),console[_0x3c9112(0x1ae)](_0x3c9112(0x137)+_0x24e938['id']),_0x24e938[_0x3c9112(0x18a)]&&console[_0x3c9112(0x1ae)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x24e938[_0x3c9112(0x18a)])),_0x24e938[_0x3c9112(0x1b6)]&&console[_0x3c9112(0x1ae)](_0x3c9112(0x1ca)+_0x24e938['gitBranch']);}throw new Error(_0x527c59['HhxZQ']);}const {selected:_0x9939d4}=await _0x29615f['prompt']([{'type':'list','name':_0x527c59['BrjYv'],'message':_0x3c9112(0x17f),'choices':_0x3d3c2d['map'](_0x4e3ca7=>({'name':_0x4e3ca7[_0x3c9112(0x149)]+'\x20('+_0x4e3ca7['id']+')','value':_0x4e3ca7['id']}))}]);_0x231672=_0x3d3c2d[_0x3c9112(0x10e)](_0x49e5e3=>_0x49e5e3['id']===_0x9939d4);}await setActiveFeatureId(_0x231672['id']);_0x1c6a31&&_0x1c6a31!==_0x231672[_0x3c9112(0x1b6)]&&(await updateFeature(_0x231672['id'],{'gitBranch':_0x1c6a31}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x1c6a31));console['log'](_0x3c9112(0x197)+_0x231672[_0x3c9112(0x149)]+'\x20('+_0x231672['id']+')'),await _0x527c59['XQHWJ'](tryStartCurrentSession,_0x231672['id']);const _0x40c574=await _0x527c59[_0x3c9112(0x1d3)](getFeature,_0x231672['id']),_0x9b91ca=process['env']['CLAUDE_SESSION_ID'];_0x9b91ca&&_0x527c59['Xvydo'](registerSession,_0x9b91ca,_0x40c574['id']),_0x527c59[_0x3c9112(0x1dc)](displayFeature,_0x40c574,_0x40c574[_0x3c9112(0x14d)]),await printFeedbackNudge(_0x40c574['id']);}async function printFeedbackNudge(_0x456aaf){const _0x22f425=_0x492c6d,_0x37105c={'rtAgn':function(_0x3a14a3,_0x55a5fc){return _0x3a14a3(_0x55a5fc);},'QrpAV':function(_0x1807af,_0x22ce5d,_0x5e0f75){return _0x1807af(_0x22ce5d,_0x5e0f75);},'YLuqE':function(_0x470f51,_0x57cba5){return _0x470f51>_0x57cba5;},'yxLfk':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x100ab7}=await _0x37105c[_0x22f425(0x17c)](getActionItems,_0x456aaf);let _0x4aede5=0x0,_0x183ab4=0x0;for(const _0x4069c8 of _0x100ab7){const _0x213318=await _0x37105c[_0x22f425(0x13c)](getItemFeedback,_0x456aaf,_0x4069c8['id']);_0x37105c['YLuqE'](_0x213318[_0x22f425(0x170)]['length'],0x0)&&(_0x4aede5+=_0x213318['unaddressedComments']['length'],_0x183ab4++);}_0x4aede5>0x0&&(console[_0x22f425(0x1ae)](_0x22f425(0x18f)+_0x4aede5+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x183ab4+'\x20scenario(s).'),console['log'](_0x37105c[_0x22f425(0x139)]));}catch{}}async function tryStartCurrentSession(_0x1a1b84){const _0x1c324d=_0x492c6d,_0x4e7190={'EXNZh':function(_0x48b056,_0x3434e9){return _0x48b056(_0x3434e9);},'XrJlt':function(_0x148c70,_0x14e064,_0x47c872){return _0x148c70(_0x14e064,_0x47c872);}};try{const {sessions:_0x21ac14}=await _0x4e7190['EXNZh'](listFeatureSessions,_0x1a1b84),_0x213aee=_0x21ac14[_0x1c324d(0x10e)](_0x43e5eb=>_0x43e5eb['status']===_0x1c324d(0x194));_0x213aee&&(await _0x4e7190['XrJlt'](startSession,_0x1a1b84,_0x213aee['id']),console['log'](_0x1c324d(0x19e)+_0x213aee[_0x1c324d(0x180)]));}catch{}}export async function featureReport(_0x4399de,_0x5acc3a){const _0x3ca01f=_0x492c6d,_0x39401f={'xWNxp':function(_0x5f3e2f,_0x1d0c59,_0x877aa4){return _0x5f3e2f(_0x1d0c59,_0x877aa4);},'oeffw':function(_0x2d7d54,_0x26b877,_0xef7f27,_0x328afc){return _0x2d7d54(_0x26b877,_0xef7f27,_0x328afc);},'jzfBk':_0x3ca01f(0x13b),'zRNkM':function(_0x191d57,_0x1e29d8,_0x1aa1da){return _0x191d57(_0x1e29d8,_0x1aa1da);},'JGyNK':function(_0x3a9253,_0x337b19){return _0x3a9253(_0x337b19);},'hhhfi':function(_0x47bee4,_0x21f087,_0x3a4506){return _0x47bee4(_0x21f087,_0x3a4506);},'VDVYy':_0x3ca01f(0x148)},_0x550e4c=_0x4399de||await getActiveFeatureId();if(!_0x550e4c)throw new Error(_0x3ca01f(0x14e));console['log']('\x0aGenerating\x20report...');const _0x11e781=await _0x39401f[_0x3ca01f(0x1d2)](getFeatureReportMarkdown,_0x550e4c,{'style':_0x5acc3a['style']}),_0x1013e0=_0x5acc3a[_0x3ca01f(0x142)]||_0x39401f[_0x3ca01f(0x1c9)](join,getRangerDir(),_0x39401f[_0x3ca01f(0x177)],_0x550e4c+'.md'),_0x18e7ae=_0x39401f[_0x3ca01f(0x1d8)](join,_0x1013e0,'..');!_0x39401f[_0x3ca01f(0x165)](existsSync,_0x18e7ae)&&await _0x39401f[_0x3ca01f(0x10a)](mkdir,_0x18e7ae,{'recursive':!![]}),await _0x39401f['oeffw'](writeFile,_0x1013e0,_0x11e781,_0x39401f[_0x3ca01f(0x192)]),console[_0x3ca01f(0x1ae)]('\x0a✅\x20Report\x20generated:\x20'+_0x1013e0);}function getScenarioResult(_0x58cfbe){const _0x28baef=_0x492c6d,_0x190182={'XRMQX':_0x28baef(0x179),'pUEOF':function(_0x5cf6c4,_0x44bc94){return _0x5cf6c4===_0x44bc94;},'pAqkm':_0x28baef(0x145),'JxBDa':_0x28baef(0x116)};if(_0x58cfbe[_0x28baef(0x1c0)]===_0x190182['XRMQX'])return _0x58cfbe[_0x28baef(0x183)]??_0x28baef(0x179);if(_0x190182[_0x28baef(0x1a4)](_0x58cfbe['status'],_0x190182['pAqkm']))return _0x190182[_0x28baef(0x1cb)];return _0x58cfbe['status'];}function getScenarioRationale(_0x4534f2,_0x4b8797){const _0x55a572=_0x492c6d;if(_0x4b8797)return _0x4b8797;if(_0x4534f2[_0x55a572(0x1b0)])return _0x4534f2[_0x55a572(0x1b0)];if(_0x4534f2[_0x55a572(0x160)])return _0x4534f2[_0x55a572(0x160)];if(_0x4534f2[_0x55a572(0x1df)])return _0x4534f2[_0x55a572(0x1df)];if(_0x4534f2['notes'])return _0x4534f2[_0x55a572(0x1e4)];return null;}export async function featureReportPrDescription(_0x535e40,_0x17214b){const _0x24757c=_0x492c6d,_0x69896c={'zbMYP':function(_0x319263,_0x11e756,_0x343e3e){return _0x319263(_0x11e756,_0x343e3e);},'QJGmw':function(_0x2dc4a8,_0xd67e99){return _0x2dc4a8===_0xd67e99;},'uhogo':function(_0x2a4654,_0x453c6a){return _0x2a4654+_0x453c6a;},'wCtmR':_0x24757c(0x188),'VDykV':function(_0x527dbd,_0x1b7b44,_0x2472f8,_0x21c9f4){return _0x527dbd(_0x1b7b44,_0x2472f8,_0x21c9f4);}},_0x1c84cf=_0x535e40||await getActiveFeatureId();if(!_0x1c84cf)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x1e6fb6=await getFeature(_0x1c84cf),_0x154c6f=_0x1e6fb6[_0x24757c(0x14d)]||[],_0x418666=_0x69896c['zbMYP'](getCurrentSessionItems,_0x1e6fb6,_0x154c6f);_0x69896c['QJGmw'](_0x418666['length'],0x0)&&(console[_0x24757c(0x19f)](_0x24757c(0x193)),process['exit'](0x1));const _0x5e45f6=_0x17214b['excludeScenarios']??[],_0x2fe0ec=_0x5e45f6[_0x24757c(0x1cc)](_0x1055fa=>!Number['isInteger'](_0x1055fa)||_0x1055fa<0x1||_0x1055fa>_0x418666['length']);if(_0x2fe0ec[_0x24757c(0x176)]>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x2fe0ec[_0x24757c(0x1bb)](',\x20')),console[_0x24757c(0x1ae)]('\x0aAvailable\x20scenarios:');for(let _0x1711b9=0x0;_0x1711b9<_0x418666['length'];_0x1711b9++){console['log']('\x20\x20'+_0x69896c[_0x24757c(0x1b2)](_0x1711b9,0x1)+'.\x20'+_0x418666[_0x1711b9]['description']);}process['exit'](0x1);}const _0x34d173=new Set(_0x5e45f6[_0x24757c(0x1bc)](_0x396bbb=>_0x396bbb-0x1)),_0x2762ee=_0x418666['filter']((_0x241c06,_0x2f35ad)=>!_0x34d173[_0x24757c(0x1d6)](_0x2f35ad));_0x2762ee['length']===0x0&&(console['error'](_0x69896c[_0x24757c(0x1e1)]),process['exit'](0x1));if(_0x17214b[_0x24757c(0x1c6)])await _0x69896c[_0x24757c(0x17e)](outputJsonReport,_0x1c84cf,_0x1e6fb6,_0x2762ee);else{const _0x5db66e=await getFeatureReportMarkdown(_0x1c84cf,{'itemIds':_0x2762ee[_0x24757c(0x1bc)](_0x3ea62d=>_0x3ea62d['id'])});process[_0x24757c(0x1b4)][_0x24757c(0x15a)](_0x5db66e[_0x24757c(0x1a7)]()+'\x0a');}}async function outputJsonReport(_0x1b9a69,_0x5de1e3,_0x318208){const _0x21ca19=_0x492c6d,_0x4951a3={'ELhOw':function(_0x3ad79c){return _0x3ad79c();},'KcwQD':function(_0x345569,_0x3f2718){return _0x345569(_0x3f2718);}},_0xe97d73=_0x4951a3[_0x21ca19(0x13a)](getApiBaseUrl),_0x418fed=await _0x4951a3[_0x21ca19(0x18d)](getFeatureReport,_0x1b9a69),_0x54bc1c=new Map(_0x418fed[_0x21ca19(0x14d)]['map'](_0x7e6428=>[_0x7e6428['id'],_0x7e6428])),_0x5cadb6=await Promise['all'](_0x318208[_0x21ca19(0x1bc)](async _0x4c80ba=>{const _0x5e9446=_0x21ca19,_0x43b62c=_0x54bc1c[_0x5e9446(0x1c5)](_0x4c80ba['id']),_0x36d5ec=_0x43b62c?.['linkedSession']??null;let _0x1e3f0c=[];if(_0x4c80ba[_0x5e9446(0x141)])try{const {steps:_0x4506e2}=await getBrowserSessionSteps(_0x4c80ba['browserSessionId']);_0x4506e2[_0x5e9446(0x176)]>0x0&&(_0x1e3f0c=_0x4506e2[_0x5e9446(0x1bc)](_0x55b1d5=>{const _0x14f50a=_0x5e9446,_0x382b1d=_0x55b1d5[_0x14f50a(0x144)]['find'](_0x5de71c=>_0x5de71c[_0x14f50a(0x182)]===_0x14f50a(0x1b5)&&_0x5de71c[_0x14f50a(0x191)]==='after')??_0x55b1d5[_0x14f50a(0x144)]['find'](_0x3bedfd=>_0x3bedfd[_0x14f50a(0x182)]===_0x14f50a(0x1b5));let _0xddb7db=null,_0xf668a8=null;if(_0x382b1d){const _0x37a9e5=_0x382b1d['storage']['location'][_0x14f50a(0x135)]('/')[_0x14f50a(0x178)]();_0xddb7db=_0xe97d73+_0x14f50a(0x132)+_0x4c80ba['browserSessionId']+'/artifacts/'+_0x37a9e5,_0x37a9e5&&(_0xf668a8=_0x37a9e5[_0x14f50a(0x1a8)](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x14f50a(0x1a8)](/[-_]/g,'\x20'));}return{'description':_0xf668a8||_0x55b1d5['description']||_0x55b1d5[_0x14f50a(0x156)]||'Step\x20'+_0x55b1d5[_0x14f50a(0x1c3)],'screenshot':_0xddb7db,'is_key_step':_0x55b1d5['isKeyStep']};}));}catch{}return _0x1e3f0c['length']===0x0&&_0x36d5ec?.['screenshotUrls']&&(_0x1e3f0c=_0x36d5ec['screenshotUrls']['map']((_0x1dcc71,_0xb3af25)=>({'description':_0x5e9446(0x1af)+(_0xb3af25+0x1),'screenshot':_0x1dcc71,'is_key_step':![]}))),{'description':_0x4c80ba[_0x5e9446(0x15b)],'result':getScenarioResult(_0x4c80ba),'rationale':getScenarioRationale(_0x4c80ba,_0x36d5ec?.[_0x5e9446(0x1a9)]),'steps':_0x1e3f0c};})),_0x236853={'url':_0x5de1e3['dashboardUrl'],'scenarios':_0x5cadb6};process['stdout']['write'](JSON[_0x21ca19(0x1d5)](_0x236853,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x186c57){const _0x34822e=_0x492c6d,_0x4783b6={'McazZ':_0x34822e(0x1cf),'EGMOs':function(_0x3f2114,_0x2a12ff){return _0x3f2114===_0x2a12ff;},'npyvv':function(_0x5b782f,_0x14ae34){return _0x5b782f!==_0x14ae34;}},_0x2d148b=_0x186c57||await getActiveFeatureId();if(!_0x2d148b)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 _0x350e81=await getFeature(_0x2d148b);if(!_0x350e81[_0x34822e(0x158)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x604944}=await listFeatureSessions(_0x2d148b),_0x388ee4=_0x604944['find'](_0x5af8dc=>_0x5af8dc['id']===_0x350e81[_0x34822e(0x158)]);if(!_0x388ee4)throw new Error(_0x4783b6['McazZ']);if(_0x4783b6[_0x34822e(0x18b)](_0x388ee4[_0x34822e(0x1c0)],_0x34822e(0x124))){console[_0x34822e(0x1ae)](_0x34822e(0x10c));return;}if(_0x4783b6['npyvv'](_0x388ee4[_0x34822e(0x1c0)],'in_progress'))throw new Error(_0x34822e(0x120)+_0x388ee4['status']);console[_0x34822e(0x1ae)]('\x0aConcluding\x20session...'),await concludeSession(_0x2d148b,_0x350e81[_0x34822e(0x158)]),console['log']('\x0a✅\x20Session\x20'+_0x388ee4['iteration']+_0x34822e(0x15e)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x216687){const _0x691874=_0x492c6d,_0x2e6e2e={'gMbzK':function(_0x1b976f){return _0x1b976f();},'qkXio':_0x691874(0x14e),'rmMZi':function(_0x232419,_0xd7228a){return _0x232419(_0xd7228a);},'OZZNh':function(_0x3d0292,_0x17c65b){return _0x3d0292(_0x17c65b);},'QOdXJ':function(_0x560d65,_0x236d87){return _0x560d65===_0x236d87;},'mZqLO':function(_0x464300,_0x4a06cf){return _0x464300===_0x4a06cf;}},_0x5d1502=_0x216687||await _0x2e6e2e[_0x691874(0x1da)](getActiveFeatureId);if(!_0x5d1502)throw new Error(_0x2e6e2e[_0x691874(0x1b9)]);const _0x2df451=await _0x2e6e2e['rmMZi'](getFeature,_0x5d1502);console['log'](_0x691874(0x112)+_0x2df451['name']+'\x0a');const {sessions:_0x599696}=await _0x2e6e2e['OZZNh'](listFeatureSessions,_0x5d1502);if(_0x2e6e2e[_0x691874(0x127)](_0x599696[_0x691874(0x176)],0x0)){console['log'](_0x691874(0x12f));return;}for(const _0x3ee868 of _0x599696){const _0x357ce9=_0x2e6e2e['mZqLO'](_0x3ee868['status'],_0x691874(0x124))?'✅':_0x2e6e2e[_0x691874(0x127)](_0x3ee868[_0x691874(0x1c0)],_0x691874(0x116))?'🔄':'▶️';console[_0x691874(0x1ae)](_0x357ce9+_0x691874(0x126)+_0x3ee868[_0x691874(0x180)]+'\x20('+_0x3ee868['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x3ee868[_0x691874(0x1c0)]),console[_0x691874(0x1ae)]('\x20\x20\x20Created:\x20'+new Date(_0x3ee868['createdAt'])[_0x691874(0x18c)]()),_0x3ee868['completedAt']&&console['log'](_0x691874(0x118)+new Date(_0x3ee868['completedAt'])['toLocaleString']()),console[_0x691874(0x1ae)]('');}}export async function featureAddScenario(_0x1469e5,_0x291332){const _0x552efa=_0x492c6d,_0x584d9b={'olDcG':function(_0x2a3d1a){return _0x2a3d1a();},'neBaY':function(_0x30d607,_0x19cc09,_0x574e68){return _0x30d607(_0x19cc09,_0x574e68);},'kHCvH':function(_0x1ae8ef,_0x2547df,_0x377d7b){return _0x1ae8ef(_0x2547df,_0x377d7b);}},_0x223fc2=_0x291332||await _0x584d9b[_0x552efa(0x187)](getActiveFeatureId);if(!_0x223fc2)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 _0x417f6a=await getFeature(_0x223fc2);if(_0x417f6a[_0x552efa(0x11b)]&&!_0x417f6a['latestReview'][_0x552efa(0x125)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x417f6a['dashboardUrl']);await _0x584d9b['neBaY'](createChecklistItem,_0x223fc2,_0x1469e5);const _0x2ba8df=await getFeature(_0x223fc2);console[_0x552efa(0x1ae)]('\x0a✅\x20Scenario\x20added'),_0x584d9b[_0x552efa(0x17b)](displayFeature,_0x2ba8df,_0x2ba8df[_0x552efa(0x14d)]);}export async function featureEditScenario(_0x4dcb52,_0xb4fe6){const _0x241345=_0x492c6d,_0xefe041={'gjIih':function(_0x2c21bc){return _0x2c21bc();},'ijcsd':'Please\x20finish\x20your\x20review\x20first:','ykpzg':function(_0x13af42,_0x11fa52){return _0x13af42===_0x11fa52;},'gfOkJ':function(_0x16f4f6,_0x12077c){return _0x16f4f6===_0x12077c;},'ruVOL':'\x0aAvailable\x20scenarios:','yfhWJ':function(_0x50e2ec,_0x50463f){return _0x50e2ec<_0x50463f;},'SmiEL':function(_0x15eb82,_0x3347cc){return _0x15eb82-_0x3347cc;},'KQlsV':function(_0x5b0d02,_0x3ddba3){return _0x5b0d02<_0x3ddba3;},'kQmNV':function(_0x545475,_0x5212c2,_0x4d5026,_0x4f4a37){return _0x545475(_0x5212c2,_0x4d5026,_0x4f4a37);},'DBPgo':function(_0x3c0fb1,_0x357744){return _0x3c0fb1(_0x357744);},'xzEDQ':function(_0x32e754,_0x2245d5,_0x2996ae){return _0x32e754(_0x2245d5,_0x2996ae);}},_0x2d75b1=_0xb4fe6['id']||await _0xefe041[_0x241345(0x1ba)](getActiveFeatureId);!_0x2d75b1&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error']('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x10234b=await getFeature(_0x2d75b1);_0x10234b[_0x241345(0x11b)]&&!_0x10234b[_0x241345(0x11b)][_0x241345(0x125)]&&(console[_0x241345(0x19f)](_0x241345(0x157)),console[_0x241345(0x19f)](_0xefe041[_0x241345(0x17d)]),console[_0x241345(0x19f)]('\x20\x20'+_0x10234b['dashboardUrl']),process['exit'](0x1));const _0x5c6f9f=_0x10234b[_0x241345(0x14d)]||[];_0xefe041['ykpzg'](_0x5c6f9f['length'],0x0)&&(console[_0x241345(0x19f)](_0x241345(0x12a)),process['exit'](0x1));if(_0xefe041[_0x241345(0x1d1)](_0xb4fe6['scenario'],undefined)){console[_0x241345(0x19f)](_0x241345(0x1bd)),console[_0x241345(0x1ae)](_0xefe041['ruVOL']);for(let _0x3d005a=0x0;_0xefe041[_0x241345(0x1d0)](_0x3d005a,_0x5c6f9f[_0x241345(0x176)]);_0x3d005a++){console['log']('\x20\x20'+(_0x3d005a+0x1)+'.\x20'+_0x5c6f9f[_0x3d005a]['description']);}process['exit'](0x1);}const _0x7005f6=_0xefe041[_0x241345(0x122)](_0xb4fe6[_0x241345(0x16a)],0x1);if(_0xefe041['KQlsV'](_0x7005f6,0x0)||_0x7005f6>=_0x5c6f9f[_0x241345(0x176)]){console['error'](_0x241345(0x162)+_0xb4fe6[_0x241345(0x16a)]+'.\x20Feature\x20review\x20has\x20'+_0x5c6f9f[_0x241345(0x176)]+'\x20scenarios.'),console[_0x241345(0x1ae)]('\x0aAvailable\x20scenarios:');for(let _0x35f3d7=0x0;_0x35f3d7<_0x5c6f9f[_0x241345(0x176)];_0x35f3d7++){console[_0x241345(0x1ae)]('\x20\x20'+(_0x35f3d7+0x1)+'.\x20'+_0x5c6f9f[_0x35f3d7]['description']);}process['exit'](0x1);}const _0x31a9f2=_0x5c6f9f[_0x7005f6];await _0xefe041[_0x241345(0x121)](updateChecklistItem,_0x2d75b1,_0x31a9f2['id'],{'description':_0x4dcb52});const _0x5b0a02=await _0xefe041[_0x241345(0x173)](getFeature,_0x2d75b1);console['log']('\x0a✅\x20Scenario\x20updated'),_0xefe041[_0x241345(0x16d)](displayFeature,_0x5b0a02,_0x5b0a02['checklistItems']);}async function downloadFeedbackImage(_0x4e9d28,_0x527e22){const _0x1974e8={'Qhcbv':function(_0x2960e4){return _0x2960e4();}};try{const _0x5cc725=join(_0x1974e8['Qhcbv'](getRangerDir),'feedback-images');await mkdir(_0x5cc725,{'recursive':!![]});const _0x4618d2=join(_0x5cc725,'comment_'+_0x527e22+'.png'),_0x5ad93f=await fetch(_0x4e9d28);if(!_0x5ad93f['ok'])return null;const _0x22b19d=Buffer['from'](await _0x5ad93f['arrayBuffer']());return await writeFile(_0x4618d2,_0x22b19d),_0x4618d2;}catch{return null;}}export async function featureGetReview(_0x1cfd36){const _0x240a48=_0x492c6d,_0x7820cc={'NYeuU':function(_0x45f42a,_0x2d9dba){return _0x45f42a(_0x2d9dba);},'hdBzo':function(_0x1257d7,_0x211c79){return _0x1257d7===_0x211c79;},'GfEXz':_0x240a48(0x13f),'MrTJg':function(_0x2ca7d4,_0x186798){return _0x2ca7d4>_0x186798;},'AxmjZ':function(_0x322bca,_0x2e5961){return _0x322bca>_0x2e5961;},'OtTip':function(_0x2ea215,_0x158a11){return _0x2ea215+_0x158a11;},'LOivW':'numeric','vWZWX':'Unknown','HmVNq':function(_0x3efe1c,_0x4c853e,_0x3502cc){return _0x3efe1c(_0x4c853e,_0x3502cc);},'quPBR':'\x20>\x20','ufTUf':_0x240a48(0x109),'pdgyz':function(_0x31d304,_0x4b4eea){return _0x31d304>=_0x4b4eea;}},_0xaf3caa=_0x1cfd36||await getActiveFeatureId();if(!_0xaf3caa)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 _0x1d47ef=await getFeature(_0xaf3caa),{items:_0x245d37}=await _0x7820cc['NYeuU'](getActionItems,_0xaf3caa);console[_0x240a48(0x1ae)]('\x0a📋\x20Feedback\x20for:\x20'+_0x1d47ef['name']+'\x20('+_0x1d47ef['id']+')\x0a');if(_0x7820cc['hdBzo'](_0x245d37[_0x240a48(0x176)],0x0)){console[_0x240a48(0x1ae)](_0x7820cc['GfEXz']);return;}for(let _0x7784bb=0x0;_0x7784bb<_0x245d37[_0x240a48(0x176)];_0x7784bb++){const _0x387bd4=_0x245d37[_0x7784bb],_0x3f4c97=_0x7820cc[_0x240a48(0x1ab)](_0x387bd4[_0x240a48(0x16f)],0x1)?'\x20(v'+_0x387bd4['version']+')':'',_0x10090f=await getItemFeedback(_0xaf3caa,_0x387bd4['id']);if(_0x7820cc['AxmjZ'](_0x10090f[_0x240a48(0x170)]['length'],0x0)){console['log']('Scenario\x20'+_0x7820cc['OtTip'](_0x7784bb,0x1)+_0x240a48(0x166)+_0x387bd4['description']+'\x22'+_0x3f4c97+_0x240a48(0x1a3)+_0x10090f[_0x240a48(0x170)][_0x240a48(0x176)]+'\x20unaddressed\x20comment(s)');for(const _0x4f7fad of _0x10090f[_0x240a48(0x170)]){const _0x2a5d2d=new Date(_0x4f7fad[_0x240a48(0x153)])[_0x240a48(0x174)](_0x240a48(0x1b3),{'month':'short','day':_0x7820cc[_0x240a48(0x129)]}),_0x3f2ff0=_0x4f7fad[_0x240a48(0x1b1)]||_0x4f7fad[_0x240a48(0x1e2)]||_0x7820cc[_0x240a48(0x1b8)];console['log'](_0x240a48(0x138)+_0x3f2ff0+'\x20('+_0x2a5d2d+'):\x20\x22'+_0x4f7fad['content']+'\x22');if(_0x4f7fad['assetUrl']){const _0x55ae9e=await _0x7820cc['HmVNq'](downloadFeedbackImage,_0x4f7fad[_0x240a48(0x1b7)],_0x4f7fad['id']);_0x55ae9e&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x55ae9e);}if(_0x4f7fad['domRef']){const _0x31efe1=_0x4f7fad['domRef']['selector']['split'](_0x7820cc[_0x240a48(0x15f)])['pop']()?.['split'](':')[0x0]||_0x240a48(0x1db),_0x55cae6=_0x4f7fad['domRef'][_0x240a48(0x113)]?'\x20\x22'+_0x4f7fad[_0x240a48(0x1ce)][_0x240a48(0x113)]['slice'](0x0,0x3c)+'\x22':'';console[_0x240a48(0x1ae)](_0x240a48(0x19c)+_0x31efe1+'>'+_0x55cae6),console['log'](_0x240a48(0x1de)+_0x4f7fad['domRef'][_0x240a48(0x115)]);}else{if(_0x4f7fad[_0x240a48(0x10b)]){const _0x2bb74e=_0x4f7fad[_0x240a48(0x10b)][_0x240a48(0x1d9)];_0x4f7fad['spatial'][_0x240a48(0x19d)]===_0x7820cc[_0x240a48(0x1ad)]&&_0x7820cc[_0x240a48(0x17a)](_0x2bb74e[_0x240a48(0x176)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x2bb74e[0x0][_0x240a48(0x11f)](0x2)+',\x20'+_0x2bb74e[0x1][_0x240a48(0x11f)](0x2)+')'):console['log'](_0x240a48(0x16b)+_0x4f7fad[_0x240a48(0x10b)][_0x240a48(0x19d)]+_0x240a48(0x196)+_0x2bb74e[_0x240a48(0x1bc)](_0x36c0c0=>_0x36c0c0[_0x240a48(0x11f)](0x2))['join'](',\x20')+']');}}}if(_0x10090f[_0x240a48(0x199)]){console[_0x240a48(0x1ae)](_0x240a48(0x11e));for(const _0x29a82f of _0x10090f[_0x240a48(0x199)][_0x240a48(0x135)]('\x0a')){console[_0x240a48(0x1ae)](_0x240a48(0x19a)+_0x29a82f);}}}else console[_0x240a48(0x1ae)]('Scenario\x20'+(_0x7784bb+0x1)+_0x240a48(0x166)+_0x387bd4['description']+'\x22'+_0x3f4c97+'\x20—\x20no\x20comments'),console[_0x240a48(0x1ae)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x59b1f7){const _0x387b30=_0x492c6d,_0x58d295={'ulmvh':function(_0x4bca21,_0x24114d){return _0x4bca21(_0x24114d);},'rThpx':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x2bbb5c=_0x59b1f7||await getActiveFeatureId();if(!_0x2bbb5c)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 _0x4f3148=await _0x58d295['ulmvh'](getFeature,_0x2bbb5c);await softDeleteFeature(_0x2bbb5c),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x4f3148[_0x387b30(0x149)]+'\x20('+_0x2bbb5c+')'),console[_0x387b30(0x1ae)](_0x58d295[_0x387b30(0x195)]+_0x2bbb5c);}export async function featureRestore(_0x555eb8){const _0x591c5e=_0x492c6d,_0x5366e1={'fTTcX':function(_0x22a6c9,_0x226efb){return _0x22a6c9(_0x226efb);},'MfVwp':function(_0x5b1f0a,_0x108154){return _0x5b1f0a(_0x108154);},'CRXNh':function(_0x255d63,_0x3dff20,_0x388387){return _0x255d63(_0x3dff20,_0x388387);}};await _0x5366e1['fTTcX'](restoreFeature,_0x555eb8);const _0x1c254d=await _0x5366e1[_0x591c5e(0x175)](getFeature,_0x555eb8);console['log'](_0x591c5e(0x168)+_0x1c254d['name']+'\x20('+_0x555eb8+')'),_0x5366e1[_0x591c5e(0x185)](displayFeature,_0x1c254d,_0x1c254d['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3690e2,_0x2bf3ca){const _0xa9d9bc=_0x3c3c,_0x28d7a5=_0x3690e2();while(!![]){try{const _0x7e928=-parseInt(_0xa9d9bc(0xb0))/0x1*(parseInt(_0xa9d9bc(0xb2))/0x2)+-parseInt(_0xa9d9bc(0xb3))/0x3+parseInt(_0xa9d9bc(0xad))/0x4+parseInt(_0xa9d9bc(0xac))/0x5+parseInt(_0xa9d9bc(0xae))/0x6+-parseInt(_0xa9d9bc(0xaf))/0x7+parseInt(_0xa9d9bc(0xab))/0x8;if(_0x7e928===_0x2bf3ca)break;else _0x28d7a5['push'](_0x28d7a5['shift']());}catch(_0x1bc344){_0x28d7a5['push'](_0x28d7a5['shift']());}}}(_0x4bf7,0x57db9));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x3c3c(_0x403c4c,_0x36dddb){_0x403c4c=_0x403c4c-0xab;const _0x4bf7e7=_0x4bf7();let _0x3c3c0f=_0x4bf7e7[_0x403c4c];return _0x3c3c0f;}function _0x4bf7(){const _0x58099c=['4070680uLjGGO','2037810rEdPXG','1249684NNkvCn','4145652lfgDfA','4169487mPZapi','2oKZuhL','Unknown\x20hook:\x20','275612PCHnwp','2065926FkKfZH','khfga','error','exit'];_0x4bf7=function(){return _0x58099c;};return _0x4bf7();}export async function hook(_0x46fcc6,_0x487887){const _0x28addb=_0x3c3c,_0x26e112={'khfga':function(_0x231985,_0x313423){return _0x231985(_0x313423);}},_0x453aa=HOOKS[_0x46fcc6];if(!_0x453aa){const _0x191760=Object['keys'](HOOKS)['join'](',\x20');console[_0x28addb(0xb5)](_0x28addb(0xb1)+_0x46fcc6),console['error']('Valid\x20hooks:\x20'+_0x191760),process[_0x28addb(0xb6)](0x1);}await _0x26e112[_0x28addb(0xb4)](_0x453aa,_0x487887);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x91464f,_0x4efd99){const _0x2bf179=_0x55a6,_0x49ac03=_0x91464f();while(!![]){try{const _0x4a8d84=-parseInt(_0x2bf179(0x81))/0x1+-parseInt(_0x2bf179(0x82))/0x2*(parseInt(_0x2bf179(0x84))/0x3)+-parseInt(_0x2bf179(0x8a))/0x4*(parseInt(_0x2bf179(0x89))/0x5)+-parseInt(_0x2bf179(0x83))/0x6+parseInt(_0x2bf179(0x88))/0x7+-parseInt(_0x2bf179(0x86))/0x8*(parseInt(_0x2bf179(0x8b))/0x9)+parseInt(_0x2bf179(0x85))/0xa;if(_0x4a8d84===_0x4efd99)break;else _0x49ac03['push'](_0x49ac03['shift']());}catch(_0x5d1c5b){_0x49ac03['push'](_0x49ac03['shift']());}}}(_0x110c,0xad9fd));import{readHookInput}from'./output.js';function _0x110c(){const _0x4cbf9b=['6489282fBOYJm','1702491SVWYLJ','48403140xYQwdU','1832MAjigo','session_id','2886870NenjIu','17145iPFEsn','612rUNhjQ','21852WZEKTi','1244369OMsGYF','4SEvdwa'];_0x110c=function(){return _0x4cbf9b;};return _0x110c();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\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.';function _0x55a6(_0x5f0b0c,_0x50772c){_0x5f0b0c=_0x5f0b0c-0x81;const _0x110c16=_0x110c();let _0x55a655=_0x110c16[_0x5f0b0c];return _0x55a655;}export async function autoPrompt(){const _0x1e4757=_0x55a6,_0x2cb8cb={'iISkR':function(_0x4dece5,_0x5bb138){return _0x4dece5(_0x5bb138);}},_0x15fc5e=await readHookInput(),_0x288407=_0x15fc5e?.[_0x1e4757(0x87)];if(!_0x288407)return;if(isSessionEnabled(_0x288407)||_0x2cb8cb['iISkR'](hasSessionBeenPrompted,_0x288407))return;markSessionPrompted(_0x288407),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x52bc4a,_0x2ab104){const _0xacde50=_0x1b7b,_0x122368=_0x52bc4a();while(!![]){try{const _0x54a955=parseInt(_0xacde50(0x87))/0x1*(parseInt(_0xacde50(0x95))/0x2)+parseInt(_0xacde50(0x94))/0x3+-parseInt(_0xacde50(0x8f))/0x4*(-parseInt(_0xacde50(0x88))/0x5)+parseInt(_0xacde50(0x93))/0x6*(-parseInt(_0xacde50(0x96))/0x7)+parseInt(_0xacde50(0x90))/0x8*(parseInt(_0xacde50(0x8b))/0x9)+parseInt(_0xacde50(0x8a))/0xa+-parseInt(_0xacde50(0x85))/0xb;if(_0x54a955===_0x2ab104)break;else _0x122368['push'](_0x122368['shift']());}catch(_0x5ecd62){_0x122368['push'](_0x122368['shift']());}}}(_0x166d,0xece46));function _0x166d(){const _0x2a3db1=['18uXRIjS','VUOmW','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','lEaZK','366500YvIoIN','362832IHRtIs','main','CLAUDE_SESSION_ID','6WyfMdy','3662220NBBRaV','24kmabdp','12240858cUoPgM','2159443FDQVUT','SmWid','7303RBcOgV','5zUHUVz','master','14246080cqEipW'];_0x166d=function(){return _0x2a3db1;};return _0x166d();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x1b7b(_0x552b7f,_0x4f7cec){_0x552b7f=_0x552b7f-0x85;const _0x166d9c=_0x166d();let _0x1b7b1d=_0x166d9c[_0x552b7f];return _0x1b7b1d;}import{printBlock}from'./output.js';export async function disable(_0x3c1839){const _0x2e1856=_0x1b7b,_0x6fc958={'SmWid':function(_0x51196a,_0x5d06ff){return _0x51196a(_0x5d06ff);},'lEaZK':function(_0x1f1a28,_0xd7ac18){return _0x1f1a28!==_0xd7ac18;},'iTCtl':function(_0x59f80c,_0x5dfbb9){return _0x59f80c!==_0x5dfbb9;},'zvMMT':_0x2e1856(0x89),'uxSJM':function(_0x56afb8,_0x21a963){return _0x56afb8(_0x21a963);},'VUOmW':function(_0x4f763e,_0x4827ae){return _0x4f763e!==_0x4827ae;}},_0x24e16c=_0x3c1839||process['env'][_0x2e1856(0x92)]||'';_0x24e16c&&_0x6fc958[_0x2e1856(0x86)](disableSession,_0x24e16c);const _0x39a450=getCurrentBranch();_0x39a450&&_0x6fc958[_0x2e1856(0x8e)](_0x39a450,_0x2e1856(0x91))&&_0x6fc958['iTCtl'](_0x39a450,_0x6fc958['zvMMT'])&&_0x6fc958[_0x2e1856(0x86)](disableBranch,_0x39a450),_0x6fc958['uxSJM'](printBlock,_0x2e1856(0x8d)+(_0x39a450&&_0x39a450!=='main'&&_0x6fc958[_0x2e1856(0x8c)](_0x39a450,'master')?'\x20and\x20branch\x20\x27'+_0x39a450+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14bf1b,_0x33ff80){const _0x4b613b=_0x433b,_0x49ace6=_0x14bf1b();while(!![]){try{const _0x48d32c=parseInt(_0x4b613b(0x1b9))/0x1+-parseInt(_0x4b613b(0x1b2))/0x2+-parseInt(_0x4b613b(0x1ad))/0x3*(-parseInt(_0x4b613b(0x1a3))/0x4)+parseInt(_0x4b613b(0x1a4))/0x5+-parseInt(_0x4b613b(0x1ba))/0x6*(parseInt(_0x4b613b(0x1a6))/0x7)+-parseInt(_0x4b613b(0x1a8))/0x8+parseInt(_0x4b613b(0x1b1))/0x9;if(_0x48d32c===_0x33ff80)break;else _0x49ace6['push'](_0x49ace6['shift']());}catch(_0xfe27e7){_0x49ace6['push'](_0x49ace6['shift']());}}}(_0x5b18,0xb18ee));function _0x433b(_0x5b4f7a,_0xca33e2){_0x5b4f7a=_0x5b4f7a-0x1a3;const _0x5b18e9=_0x5b18();let _0x433b79=_0x5b18e9[_0x5b4f7a];return _0x433b79;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x5b18(){const _0x5a9025=['main','#\x20RANGER\x20ENABLED','#\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`','752302vkLTqt','7332AUEUqx','12IHJSem','5526370zwqQjE','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','7161bLPFyz','\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`.','3336600yhIlmq','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','EXIHn','ECLUv','120837MZmSmi','master','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','MiOLx','16562187iyHVKD','2848394WKLaVL','XkiOK','sUaCM','zAIZR'];_0x5b18=function(){return _0x5a9025;};return _0x5b18();}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x27184b){const _0x577037=_0x433b,_0x199054={'JvNIn':function(_0x19f811,_0x32bd16){return _0x19f811(_0x32bd16);},'zAIZR':'ranger\x20setup\x20--opencode','EXIHn':'ranger\x20setup','XkiOK':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','sUaCM':function(_0x659067){return _0x659067();},'MiOLx':_0x577037(0x1b6),'ECLUv':function(_0x4474dc,_0x56b499){return _0x4474dc!==_0x56b499;}},_0x2a2b59=_0x27184b||process['env']['CLAUDE_SESSION_ID']||'',_0x5866b8=_0x199054['JvNIn'](Boolean,_0x27184b),_0x402398=await getToken();if(!_0x402398){const _0x273ff9=_0x5866b8?_0x199054[_0x577037(0x1b5)]:_0x199054[_0x577037(0x1ab)],_0x1592fa=_0x5866b8?_0x577037(0x1a5):_0x199054[_0x577037(0x1b3)];printBlock(_0x577037(0x1b8)+_0x273ff9+_0x577037(0x1aa)+_0x1592fa);return;}try{await update();}catch{}_0x2a2b59&&enableSession(_0x2a2b59);const _0x1c9f65=_0x199054[_0x577037(0x1b4)](getCurrentBranch),_0x4291=_0x1c9f65&&_0x1c9f65!==_0x199054[_0x577037(0x1b0)]&&_0x199054[_0x577037(0x1ac)](_0x1c9f65,_0x577037(0x1ae))?'\x0a\x0a**Branch\x20\x27'+_0x1c9f65+_0x577037(0x1a9):'',_0x12f94b=getRangerSkillContent();printBlock(_0x577037(0x1b7)+_0x4291+_0x577037(0x1af)+_0x12f94b+_0x577037(0x1a7));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x362a(_0x23504b,_0x3ad814){_0x23504b=_0x23504b-0x1dd;const _0x293904=_0x2939();let _0x362a7f=_0x293904[_0x23504b];return _0x362a7f;}function _0x2939(){const _0x2ab7f7=['1485400NQIhaE','1317zePgsf','smkZm','761352zMfCZn','660709cylXFx','339853kKQyCM','1322isBwSP','90441ZApjjZ','18LrRoRA','323995lJXxpW','410xFXAUk'];_0x2939=function(){return _0x2ab7f7;};return _0x2939();}(function(_0x2ca50d,_0x2f88cc){const _0x20858b=_0x362a,_0x3f4a68=_0x2ca50d();while(!![]){try{const _0x256c54=-parseInt(_0x20858b(0x1df))/0x1+parseInt(_0x20858b(0x1e0))/0x2*(parseInt(_0x20858b(0x1e6))/0x3)+-parseInt(_0x20858b(0x1dd))/0x4+-parseInt(_0x20858b(0x1e3))/0x5+-parseInt(_0x20858b(0x1e2))/0x6*(-parseInt(_0x20858b(0x1de))/0x7)+-parseInt(_0x20858b(0x1e5))/0x8+-parseInt(_0x20858b(0x1e1))/0x9*(-parseInt(_0x20858b(0x1e4))/0xa);if(_0x256c54===_0x2f88cc)break;else _0x3f4a68['push'](_0x3f4a68['shift']());}catch(_0xbbc007){_0x3f4a68['push'](_0x3f4a68['shift']());}}}(_0x2939,0x31f8c));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3cb0fc){const _0x32f1fa=_0x362a,_0xeee9b0={'smkZm':function(_0x521901,_0x508932){return _0x521901(_0x508932);}},_0x281f05=await _0xeee9b0[_0x32f1fa(0x1e7)](getEnabledSessionId,_0x3cb0fc);if(!_0x281f05)return;printBlock('===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1fbb85,_0x5e9c59){var _0x4c4a80=_0x32e3,_0x38877b=_0x1fbb85();while(!![]){try{var _0x54cc81=parseInt(_0x4c4a80(0x1c2))/0x1+parseInt(_0x4c4a80(0x1c8))/0x2*(-parseInt(_0x4c4a80(0x1c0))/0x3)+-parseInt(_0x4c4a80(0x1c6))/0x4*(parseInt(_0x4c4a80(0x1c3))/0x5)+-parseInt(_0x4c4a80(0x1c7))/0x6+parseInt(_0x4c4a80(0x1bf))/0x7+parseInt(_0x4c4a80(0x1c5))/0x8*(-parseInt(_0x4c4a80(0x1c4))/0x9)+parseInt(_0x4c4a80(0x1c1))/0xa;if(_0x54cc81===_0x5e9c59)break;else _0x38877b['push'](_0x38877b['shift']());}catch(_0x18606f){_0x38877b['push'](_0x38877b['shift']());}}}(_0x5bba,0x4e758));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x5bba(){var _0x5885b0=['44dWSvHw','559410UopmPw','538562AqdIuM','1921927qogjGD','3fQaaKe','7511900qrgFFy','76230iZOrZc','33190kRQyBl','3105711WFHtEr','8UpBqBE'];_0x5bba=function(){return _0x5885b0;};return _0x5bba();}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';function _0x32e3(_0x39e156,_0x2916ea){_0x39e156=_0x39e156-0x1bf;var _0x5bbad3=_0x5bba();var _0x32e3c7=_0x5bbad3[_0x39e156];return _0x32e3c7;}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x586dda,_0x4c827d){const _0x4c02a6=_0x14fd,_0x2cc7e7=_0x586dda();while(!![]){try{const _0x3ab94c=-parseInt(_0x4c02a6(0x190))/0x1+-parseInt(_0x4c02a6(0x19a))/0x2+parseInt(_0x4c02a6(0x198))/0x3*(parseInt(_0x4c02a6(0x195))/0x4)+parseInt(_0x4c02a6(0x191))/0x5+-parseInt(_0x4c02a6(0x194))/0x6+-parseInt(_0x4c02a6(0x193))/0x7+-parseInt(_0x4c02a6(0x18e))/0x8*(-parseInt(_0x4c02a6(0x18f))/0x9);if(_0x3ab94c===_0x4c827d)break;else _0x2cc7e7['push'](_0x2cc7e7['shift']());}catch(_0x383313){_0x2cc7e7['push'](_0x2cc7e7['shift']());}}}(_0x41b9,0x7c211));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x437b34){const _0x26f411=_0x14fd;console[_0x26f411(0x18d)](_0x437b34);}function _0x41b9(){const _0x732299=['PyAnN','9kEUYuh','parse','257940pxqwjB','log','14126408TMOPNg','9ZWjtIS','257772bfDGSm','414835EZuVYZ','stdin','3231340iWWfkR','4320882WdUybT','304232mJGnZz','session_id'];_0x41b9=function(){return _0x732299;};return _0x41b9();}export async function readHookInput(){const _0x12e72a=_0x14fd;let _0x5d17b7='';for await(const _0x4fc0f4 of process[_0x12e72a(0x192)]){_0x5d17b7+=_0x4fc0f4;}try{return JSON[_0x12e72a(0x199)](_0x5d17b7);}catch{return null;}}export async function getEnabledSessionId(_0x1abecb){const _0x4248f8=_0x14fd,_0x5954e6={'PyAnN':function(_0x441923){return _0x441923();}};if(_0x1abecb)return isSessionEnabled(_0x1abecb)?_0x1abecb:null;const _0x1ec938=await _0x5954e6[_0x4248f8(0x197)](readHookInput),_0x4d54e4=_0x1ec938?.[_0x4248f8(0x196)];if(!_0x4d54e4||!isSessionEnabled(_0x4d54e4))return null;return _0x4d54e4;}function _0x14fd(_0x3f8172,_0x2ba49f){_0x3f8172=_0x3f8172-0x18d;const _0x41b939=_0x41b9();let _0x14fdf1=_0x41b939[_0x3f8172];return _0x14fdf1;}export async function getEnabledHookContext(_0x156cec){const _0x5cc33f=_0x14fd;if(_0x156cec){if(!isSessionEnabled(_0x156cec))return null;return{'sessionId':_0x156cec,'input':{'session_id':_0x156cec}};}const _0x3751d6=await readHookInput(),_0x5b3989=_0x3751d6?.[_0x5cc33f(0x196)];if(!_0x5b3989||!isSessionEnabled(_0x5b3989))return null;return{'sessionId':_0x5b3989,'input':_0x3751d6};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5f1567,_0x119b5a){const _0x16e4fb=_0x139c,_0x3c007c=_0x5f1567();while(!![]){try{const _0x5457fd=-parseInt(_0x16e4fb(0x1fa))/0x1*(parseInt(_0x16e4fb(0x1f3))/0x2)+-parseInt(_0x16e4fb(0x1f6))/0x3+parseInt(_0x16e4fb(0x1f5))/0x4+parseInt(_0x16e4fb(0x1f1))/0x5+-parseInt(_0x16e4fb(0x1f4))/0x6+-parseInt(_0x16e4fb(0x1fc))/0x7+-parseInt(_0x16e4fb(0x1f7))/0x8*(-parseInt(_0x16e4fb(0x1fd))/0x9);if(_0x5457fd===_0x119b5a)break;else _0x3c007c['push'](_0x3c007c['shift']());}catch(_0x5095cb){_0x3c007c['push'](_0x3c007c['shift']());}}}(_0x3365,0x8f31c));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x139c(_0x32e430,_0x37676d){_0x32e430=_0x32e430-0x1f1;const _0x336579=_0x3365();let _0x139c2a=_0x336579[_0x32e430];return _0x139c2a;}export async function planReminder(_0x4fa00d){const _0x4035d1=_0x139c,_0x52ecf5={'rLitv':function(_0x200a45,_0xc057df){return _0x200a45(_0xc057df);}},_0xd57813=await getEnabledHookContext(_0x4fa00d);if(!_0xd57813)return;if(_0xd57813[_0x4035d1(0x1f9)][_0x4035d1(0x1fb)]!==_0x4035d1(0x1f8))return;if(!_0x52ecf5['rLitv'](shouldShowPlanReminder,_0xd57813[_0x4035d1(0x1f2)]))return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}function _0x3365(){const _0x457730=['5599363coDnYY','3114qQoTUI','5175875ZBHerp','sessionId','1826050bbULLe','351768PXtcYo','1229568gKbUWk','755637pdcYDu','29304gLCdqf','plan','input','1fqXRvT','permission_mode'];_0x3365=function(){return _0x457730;};return _0x3365();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4ff3(_0x73dc2a,_0x53e493){_0x73dc2a=_0x73dc2a-0x1ae;const _0x1e6849=_0x1e68();let _0x4ff3e2=_0x1e6849[_0x73dc2a];return _0x4ff3e2;}(function(_0x1809f3,_0xc68e3a){const _0x334f11=_0x4ff3,_0x4c864c=_0x1809f3();while(!![]){try{const _0x4cf6bb=-parseInt(_0x334f11(0x1b4))/0x1+parseInt(_0x334f11(0x1b5))/0x2*(-parseInt(_0x334f11(0x1b0))/0x3)+-parseInt(_0x334f11(0x1b8))/0x4+-parseInt(_0x334f11(0x1ae))/0x5+-parseInt(_0x334f11(0x1b6))/0x6*(-parseInt(_0x334f11(0x1b7))/0x7)+parseInt(_0x334f11(0x1b2))/0x8+-parseInt(_0x334f11(0x1b3))/0x9*(-parseInt(_0x334f11(0x1af))/0xa);if(_0x4cf6bb===_0xc68e3a)break;else _0x4c864c['push'](_0x4c864c['shift']());}catch(_0x1ddd5a){_0x4c864c['push'](_0x4c864c['shift']());}}}(_0x1e68,0x8ea41));import{printBlock,getEnabledSessionId}from'./output.js';function _0x1e68(){const _0x5e2cf6=['13960vUkxhO','9XpPhEU','LvpSl','7292752ZZWoAB','7020FTaUUN','541642yKZVzw','559898ZKDxDC','6gpjEqq','6909616BdEjvN','2995088NJAzLz','1365220bDTwEu'];_0x1e68=function(){return _0x5e2cf6;};return _0x1e68();}export async function planStart(_0x58720c){const _0x1b5772=_0x4ff3,_0x57ba36={'LvpSl':function(_0x335494,_0x26aeb8){return _0x335494(_0x26aeb8);}},_0x39adb0=await _0x57ba36[_0x1b5772(0x1b1)](getEnabledSessionId,_0x58720c);if(!_0x39adb0)return;_0x57ba36['LvpSl'](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
|
-
function
|
|
1
|
+
function _0xc6cc(_0x6f4fdc,_0x412614){_0x6f4fdc=_0x6f4fdc-0x1e0;const _0x14266c=_0x1426();let _0xc6cca5=_0x14266c[_0x6f4fdc];return _0xc6cca5;}(function(_0x55cfcc,_0xa8df3d){const _0x567d6d=_0xc6cc,_0x6e50c5=_0x55cfcc();while(!![]){try{const _0x84e924=-parseInt(_0x567d6d(0x1e5))/0x1+-parseInt(_0x567d6d(0x1ee))/0x2*(-parseInt(_0x567d6d(0x1ea))/0x3)+parseInt(_0x567d6d(0x1e8))/0x4*(parseInt(_0x567d6d(0x1e1))/0x5)+-parseInt(_0x567d6d(0x1e6))/0x6+parseInt(_0x567d6d(0x1e3))/0x7*(parseInt(_0x567d6d(0x1e2))/0x8)+parseInt(_0x567d6d(0x1e0))/0x9*(parseInt(_0x567d6d(0x1ed))/0xa)+-parseInt(_0x567d6d(0x1ec))/0xb;if(_0x84e924===_0xa8df3d)break;else _0x6e50c5['push'](_0x6e50c5['shift']());}catch(_0x202af2){_0x6e50c5['push'](_0x6e50c5['shift']());}}}(_0x1426,0x632c2));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x1426(){const _0x25cb05=['73740qQsokh','IJWMR','883040DUUrKW','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).','463704zShwNG','stringify','2745864jOIUnx','1783240xbMkCw','2kLdttj','AyXbk','9gBHiWK','15MDAoAz','20144EuGzWY','889JCUJeQ','log','646834OwftoE'];_0x1426=function(){return _0x25cb05;};return _0x1426();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x23af56){const _0x97b151=_0xc6cc,_0x26f20b={'UONGZ':function(_0x22b29a,_0x14e160){return _0x22b29a(_0x14e160);},'AyXbk':function(_0x23ec63,_0x1a2e01){return _0x23ec63(_0x1a2e01);},'IJWMR':'PostToolUse'},_0x1fd806=await _0x26f20b['UONGZ'](getEnabledSessionId,_0x23af56);if(!_0x1fd806)return;_0x26f20b[_0x97b151(0x1ef)](updateBranchTracking,_0x1fd806);const _0x34ed3a=await getToken();if(!_0x34ed3a)return;const _0x9c4be5=getSessionEntry(_0x1fd806);if(_0x9c4be5){const _0x59c2a6={'hookSpecificOutput':{'hookEventName':_0x26f20b[_0x97b151(0x1e7)],'additionalContext':_0x97b151(0x1e9)}};console[_0x97b151(0x1e4)](JSON[_0x97b151(0x1eb)](_0x59c2a6));return;}const _0x25bdd1={'hookSpecificOutput':{'hookEventName':_0x26f20b['IJWMR'],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x25bdd1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d5a91,_0x3fcf8f){const _0x207d60=_0x5670,_0x2f4400=_0x2d5a91();while(!![]){try{const _0x1af59b=parseInt(_0x207d60(0x101))/0x1+parseInt(_0x207d60(0xfa))/0x2*(parseInt(_0x207d60(0x100))/0x3)+-parseInt(_0x207d60(0x102))/0x4*(parseInt(_0x207d60(0xff))/0x5)+-parseInt(_0x207d60(0xfc))/0x6+-parseInt(_0x207d60(0xf9))/0x7+parseInt(_0x207d60(0x103))/0x8*(parseInt(_0x207d60(0xfb))/0x9)+parseInt(_0x207d60(0xfd))/0xa*(parseInt(_0x207d60(0xfe))/0xb);if(_0x1af59b===_0x3fcf8f)break;else _0x2f4400['push'](_0x2f4400['shift']());}catch(_0x33196f){_0x2f4400['push'](_0x2f4400['shift']());}}}(_0x3d7d,0xa4be6));import{getToken}from'../utils/keychain.js';function _0x3d7d(){const _0x263a3f=['90hnCCAd','6844050jHNXLg','3151180iCRtro','55WhDVnQ','30lSMbbc','430293wxFxZZ','8178NzjEHw','452524cpdIoO','554072biYmnu','2490817NkHdSe','8wrDjqt'];_0x3d7d=function(){return _0x263a3f;};return _0x3d7d();}function _0x5670(_0x5a847b,_0x3cbdec){_0x5a847b=_0x5a847b-0xf9;const _0x3d7d6a=_0x3d7d();let _0x567088=_0x3d7d6a[_0x5a847b];return _0x567088;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x54a1e4){const _0x33e848={'DbtNn':function(_0x546951){return _0x546951();}},_0x4def74=await getEnabledSessionId(_0x54a1e4);if(!_0x4def74)return;try{const _0x3abfe6=await _0x33e848['DbtNn'](getToken);if(!_0x3abfe6)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x344ec8,_0x2f1d5e){const _0xa85b81=_0x3525,_0xe543fc=_0x344ec8();while(!![]){try{const _0x3caf8b=-parseInt(_0xa85b81(0x90))/0x1+parseInt(_0xa85b81(0x91))/0x2*(-parseInt(_0xa85b81(0x95))/0x3)+parseInt(_0xa85b81(0x8a))/0x4*(parseInt(_0xa85b81(0x93))/0x5)+-parseInt(_0xa85b81(0x8f))/0x6*(-parseInt(_0xa85b81(0x8c))/0x7)+parseInt(_0xa85b81(0x8b))/0x8+parseInt(_0xa85b81(0x8d))/0x9*(-parseInt(_0xa85b81(0x92))/0xa)+parseInt(_0xa85b81(0x94))/0xb;if(_0x3caf8b===_0x2f1d5e)break;else _0xe543fc['push'](_0xe543fc['shift']());}catch(_0x376bc3){_0xe543fc['push'](_0xe543fc['shift']());}}}(_0x5b84,0xbc132));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x5b84(){const _0x42bb53=['18788lzHRRn','4218282joLlmL','reason','1146KkOsxC','251877hwhxfi','20BafbDw','10FnHFZi','2457845kztKGj','8204944BzPEqB','267234WKVSyJ','4RLaulG','5052736iarMoO'];_0x5b84=function(){return _0x42bb53;};return _0x5b84();}import{readHookInput}from'./output.js';function _0x3525(_0x269094,_0x57a7bb){_0x269094=_0x269094-0x8a;const _0x5b8480=_0x5b84();let _0x3525c8=_0x5b8480[_0x269094];return _0x3525c8;}export async function sessionEnd(_0x4b08d4){const _0x59a4fd=_0x3525,_0x8733f7={'QoFzK':function(_0x51f01c,_0x2d4b6b){return _0x51f01c(_0x2d4b6b);}};let _0x49f074=_0x4b08d4,_0x5ae126;if(!_0x4b08d4){const _0x11b32c=await readHookInput();_0x49f074=_0x11b32c?.['session_id'],_0x5ae126=_0x11b32c?.[_0x59a4fd(0x8e)];}if(!_0x49f074)return;_0x5ae126==='clear'&&_0x8733f7['QoFzK'](recordEnabledSessionCleared,_0x49f074);}
|