@ranger-testing/ranger-cli 2.2.2 → 2.2.4
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/README.md +3 -1
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/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/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x489fec=_0x3655;(function(_0x3ee971,_0x27188d){const _0x4c5f1f=_0x3655,_0x1b726b=_0x3ee971();while(!![]){try{const _0x38390b=-parseInt(_0x4c5f1f(0x1a9))/0x1+-parseInt(_0x4c5f1f(0x1a8))/0x2*(parseInt(_0x4c5f1f(0x199))/0x3)+parseInt(_0x4c5f1f(0x1a3))/0x4+parseInt(_0x4c5f1f(0x19f))/0x5+parseInt(_0x4c5f1f(0x1a2))/0x6+-parseInt(_0x4c5f1f(0x19c))/0x7*(parseInt(_0x4c5f1f(0x19e))/0x8)+-parseInt(_0x4c5f1f(0x198))/0x9*(parseInt(_0x4c5f1f(0x197))/0xa);if(_0x38390b===_0x27188d)break;else _0x1b726b['push'](_0x1b726b['shift']());}catch(_0x383342){_0x1b726b['push'](_0x1b726b['shift']());}}}(_0x83a2,0xa12a7));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x489fec(0x1a6),_0x489fec(0x1a5)];function _0x83a2(){const _0x20158d=['object','XQAcK','stringify','1960ZDTBpD','45jxKCix','33pTopEb','FIFmJ','xuqRg','1978116rvmLZH','No\x20configuration\x20set\x20for\x20\x22','16MzLOTM','2954400WuwpbN','includes','\x20=\x20','7596414fLfOEF','1625172DrPavw','log','allowInsecureLocalhost','headless','true','7642PgzVOV','994920DJGeST','\x22\x20does\x20not\x20exist.','Profile\x20\x22'];_0x83a2=function(){return _0x20158d;};return _0x83a2();}function parseValue(_0x1c43af,_0x37eee2){const _0x5a5258=_0x489fec;if(BOOLEAN_KEYS[_0x5a5258(0x1a0)](_0x1c43af)){if(_0x37eee2===_0x5a5258(0x1a7))return!![];if(_0x37eee2==='false')return![];throw new Error('Invalid\x20value\x20for\x20'+_0x1c43af+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x37eee2;}function _0x3655(_0x543a7f,_0x556d07){_0x543a7f=_0x543a7f-0x197;const _0x83a20f=_0x83a2();let _0x3655f0=_0x83a20f[_0x543a7f];return _0x3655f0;}export async function configSet(_0x5735d0,_0x4b90a1,_0x2e02aa){const _0x425aa9=_0x489fec,_0x16aa0b={'cvJgY':function(_0x297321,_0x4cb3e1){return _0x297321(_0x4cb3e1);},'XQAcK':function(_0x87bccb,_0x402cd0,_0x1bad8f){return _0x87bccb(_0x402cd0,_0x1bad8f);}},_0x235d56=getEnvDir(_0x5735d0);if(!existsSync(_0x235d56))throw new Error('Profile\x20\x22'+_0x5735d0+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5735d0);const _0x1c5dab=await _0x16aa0b['cvJgY'](loadSettings,_0x5735d0),_0x1eb6f6=_0x16aa0b[_0x425aa9(0x1ad)](parseValue,_0x4b90a1,_0x2e02aa);setNestedValue(_0x1c5dab,_0x4b90a1,_0x1eb6f6),await saveSettings(_0x5735d0,_0x1c5dab),console[_0x425aa9(0x1a4)]('Set\x20'+_0x4b90a1+_0x425aa9(0x1a1)+_0x1eb6f6);}export async function configGet(_0x1da180,_0x49ea01){const _0x5bb0be=_0x489fec,_0x239c08={'Rcres':function(_0x26105b,_0x12ca9c){return _0x26105b===_0x12ca9c;},'jfmzu':_0x5bb0be(0x1ac)},_0x72c766=getEnvDir(_0x1da180);if(!existsSync(_0x72c766))throw new Error(_0x5bb0be(0x1ab)+_0x1da180+'\x22\x20does\x20not\x20exist.');const _0x224fc7=await loadSettings(_0x1da180),_0x22d4e1=getNestedValue(_0x224fc7,_0x49ea01);if(_0x239c08['Rcres'](_0x22d4e1,undefined))console['log']('(not\x20set)');else typeof _0x22d4e1===_0x239c08['jfmzu']?console[_0x5bb0be(0x1a4)](JSON[_0x5bb0be(0x1ae)](_0x22d4e1,null,0x2)):console[_0x5bb0be(0x1a4)](_0x22d4e1);}export async function configList(_0x196212){const _0x585287=_0x489fec,_0x155f87={'xuqRg':function(_0x177381,_0x2eab27){return _0x177381(_0x2eab27);},'sqkSM':function(_0x3415ea,_0xfe8c55){return _0x3415ea(_0xfe8c55);},'VTlan':function(_0x5b533e,_0x176a13){return _0x5b533e(_0x176a13);}},_0x49a4fb=_0x155f87['xuqRg'](getSettingsPath,_0x196212);if(!_0x155f87[_0x585287(0x19b)](existsSync,_0x49a4fb)){const _0x2dc84c=_0x155f87['sqkSM'](getEnvDir,_0x196212);if(!existsSync(_0x2dc84c))throw new Error(_0x585287(0x1ab)+_0x196212+_0x585287(0x1aa));console['log'](_0x585287(0x19d)+_0x196212+'\x22');return;}const _0x4b3164=await loadSettings(_0x196212),_0x11d9bb=_0x155f87['VTlan'](formatSettings,_0x4b3164);!_0x11d9bb?console['log'](_0x585287(0x19d)+_0x196212+'\x22'):console['log'](_0x11d9bb);}export async function configUnset(_0x57779a,_0x575885){const _0x2ece2c=_0x489fec,_0x3065fa={'FIFmJ':function(_0x1fcaba,_0x4e62aa){return _0x1fcaba(_0x4e62aa);},'QvwuP':function(_0x5be5db,_0x3b5584,_0x35c1c3){return _0x5be5db(_0x3b5584,_0x35c1c3);}},_0x20f6db=getEnvDir(_0x57779a);if(!_0x3065fa[_0x2ece2c(0x19a)](existsSync,_0x20f6db))throw new Error('Profile\x20\x22'+_0x57779a+'\x22\x20does\x20not\x20exist.');const _0x53ced9=await loadSettings(_0x57779a),_0x311c69=_0x3065fa['QvwuP'](deleteNestedValue,_0x53ced9,_0x575885);_0x311c69?(await _0x3065fa['QvwuP'](saveSettings,_0x57779a,_0x53ced9),console['log']('Removed\x20'+_0x575885)):console[_0x2ece2c(0x1a4)]('Key\x20\x22'+_0x575885+'\x22\x20not\x20found');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x163e0e=_0x5345;function _0x5345(_0x2e1ebc,_0x244e50){_0x2e1ebc=_0x2e1ebc-0x12f;const _0x6808c5=_0x6808();let _0x53454c=_0x6808c5[_0x2e1ebc];return _0x53454c;}(function(_0x59d10b,_0x51d25b){const _0x40a736=_0x5345,_0x15b142=_0x59d10b();while(!![]){try{const _0x20cdc0=-parseInt(_0x40a736(0x144))/0x1+parseInt(_0x40a736(0x135))/0x2*(parseInt(_0x40a736(0x131))/0x3)+-parseInt(_0x40a736(0x145))/0x4*(-parseInt(_0x40a736(0x13a))/0x5)+-parseInt(_0x40a736(0x136))/0x6*(parseInt(_0x40a736(0x146))/0x7)+-parseInt(_0x40a736(0x13f))/0x8*(-parseInt(_0x40a736(0x133))/0x9)+-parseInt(_0x40a736(0x142))/0xa+parseInt(_0x40a736(0x12f))/0xb;if(_0x20cdc0===_0x51d25b)break;else _0x15b142['push'](_0x15b142['shift']());}catch(_0x58ad64){_0x15b142['push'](_0x15b142['shift']());}}}(_0x6808,0xbc28d));import{readdir,stat}from'fs/promises';function _0x6808(){const _0xfb3310=['kGTHw','includes','13777753lOzEJr','LCIxy','436017aGeBhZ','JEXuv','45AIrNZI','legacy','4MhydGF','42ILeYgy','log','HdIng','fHdmV','5kvIhbs','beRMT','\x0aNo\x20profiles\x20found.','\x0aProfiles:','environmentDetails','892360GUwBWp','isDirectory','vflyu','6619660yLTwei','endsWith','532677QADnYs','2752124GIUrmp','823613DnmdBk','length','local','.txt','push'];_0x6808=function(){return _0xfb3310;};return _0x6808();}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=['sessions','bug-bashes','reports',_0x163e0e(0x148),'ci'];export async function getEnvNames(){const _0x5ec987=_0x163e0e,_0x55faef={'xvUZA':function(_0x185216){return _0x185216();},'JEXuv':function(_0x179757,_0x45eca,_0x5b0a2f){return _0x179757(_0x45eca,_0x5b0a2f);},'vflyu':_0x5ec987(0x148),'beRMT':function(_0x223a34,_0x1e5e25){return _0x223a34(_0x1e5e25);},'NQQdx':_0x5ec987(0x149),'HdIng':function(_0xdb5dec,_0x1631a6){return _0xdb5dec(_0x1631a6);},'fHdmV':'settings.json','kGTHw':_0x5ec987(0x134)},_0x5f459d=_0x55faef['xvUZA'](getRangerDir);if(!existsSync(_0x5f459d))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x55b1ae=await _0x55faef['xvUZA'](readActiveProfileName),_0x3bca77=[],_0x4145b9={},_0x290e67=_0x55faef['JEXuv'](join,_0x5f459d,_0x55faef[_0x5ec987(0x141)]);if(existsSync(_0x290e67)){const _0x13d36f=await readdir(_0x290e67);for(const _0x3a4562 of _0x13d36f){const _0x411cad=join(_0x290e67,_0x3a4562),_0x378ec4=await stat(_0x411cad);_0x378ec4['isDirectory']()&&(_0x3bca77[_0x5ec987(0x14a)](_0x3a4562),_0x4145b9[_0x3a4562]=_0x5ec987(0x148));}}const _0x3679cd=join(_0x5f459d,'ci');if(_0x55faef[_0x5ec987(0x13b)](existsSync,_0x3679cd)){const _0x80fcbc=await _0x55faef[_0x5ec987(0x13b)](readdir,_0x3679cd);for(const _0xa44f16 of _0x80fcbc){const _0x542c82=_0x55faef['JEXuv'](join,_0x3679cd,_0xa44f16),_0x415547=await _0x55faef['beRMT'](stat,_0x542c82);_0x415547[_0x5ec987(0x140)]()&&(_0x3bca77[_0x5ec987(0x14a)](_0xa44f16),_0x4145b9[_0xa44f16]='ci');}}const _0x3307cb=await readdir(_0x5f459d);for(const _0x4bfb71 of _0x3307cb){if(NON_ENV_DIRS['includes'](_0x4bfb71))continue;if(_0x4bfb71['startsWith']('.'))continue;if(_0x4bfb71[_0x5ec987(0x143)](_0x55faef['NQQdx']))continue;const _0x5ae44e=_0x55faef[_0x5ec987(0x132)](join,_0x5f459d,_0x4bfb71),_0xec8fe0=await _0x55faef['beRMT'](stat,_0x5ae44e);_0xec8fe0['isDirectory']()&&_0x55faef[_0x5ec987(0x138)](existsSync,_0x55faef[_0x5ec987(0x132)](join,_0x5ae44e,_0x55faef[_0x5ec987(0x139)]))&&(!_0x3bca77[_0x5ec987(0x14c)](_0x4bfb71)&&(_0x3bca77['push'](_0x4bfb71),_0x4145b9[_0x4bfb71]=_0x55faef[_0x5ec987(0x14b)]));}return{'envNames':_0x3bca77,'activeEnv':_0x55b1ae,'envTypes':_0x4145b9};}export async function envList(){const _0x12d628=_0x163e0e,_0x2cc50a={'LCIxy':function(_0x2b7de2){return _0x2b7de2();},'vSeMf':function(_0x3f1af9,_0x46ab12){return _0x3f1af9===_0x46ab12;},'FZKhu':function(_0x35cd10,_0x1ac038){return _0x35cd10===_0x1ac038;},'pBqRG':_0x12d628(0x134)},{envNames:_0x4db52e,activeEnv:_0x3f2b27,envTypes:_0xda10ae}=await _0x2cc50a[_0x12d628(0x130)](getEnvNames);if(_0x4db52e[_0x12d628(0x147)]===0x0){console[_0x12d628(0x137)](_0x12d628(0x13c)),console[_0x12d628(0x137)]('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}console[_0x12d628(0x137)](_0x12d628(0x13d));for(const _0x334a54 of _0x4db52e['sort']()){const _0x4c168a=_0x2cc50a['vSeMf'](_0x334a54,_0x3f2b27),_0x3f8e6d=_0xda10ae[_0x334a54]||_0x12d628(0x148),_0x1471ae=await loadSettings(_0x334a54),_0x370b5b=_0x2cc50a['FZKhu'](_0x3f8e6d,_0x2cc50a['pBqRG'])?'':'\x20['+_0x3f8e6d+']';console['log']('\x20\x20'+(_0x4c168a?'*\x20':'\x20\x20')+_0x334a54+_0x370b5b),_0x1471ae['baseUrl']&&console[_0x12d628(0x137)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x1471ae['baseUrl']),_0x1471ae[_0x12d628(0x13e)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x1471ae['environmentDetails']);}_0x3f2b27&&console[_0x12d628(0x137)]('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x23f300=_0x1ce6;(function(_0x26eacd,_0x3fc27c){const _0x43f1e7=_0x1ce6,_0xe087e7=_0x26eacd();while(!![]){try{const _0x5d69e1=parseInt(_0x43f1e7(0xb4))/0x1*(parseInt(_0x43f1e7(0x11a))/0x2)+-parseInt(_0x43f1e7(0x119))/0x3+parseInt(_0x43f1e7(0x124))/0x4+parseInt(_0x43f1e7(0x100))/0x5+-parseInt(_0x43f1e7(0xfe))/0x6+-parseInt(_0x43f1e7(0xc5))/0x7*(parseInt(_0x43f1e7(0xfb))/0x8)+-parseInt(_0x43f1e7(0xbf))/0x9;if(_0x5d69e1===_0x3fc27c)break;else _0xe087e7['push'](_0xe087e7['shift']());}catch(_0x99585d){_0xe087e7['push'](_0xe087e7['shift']());}}}(_0x56e0,0xc6b67));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x570df0 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='active-feature.txt',bold=_0xcccf41=>_0x23f300(0x136)+_0xcccf41+_0x23f300(0xa7);function getGitRepoUrl(){const _0x4df224=_0x23f300,_0x2e4717={'tSBnE':'pipe'};try{const _0x863c7d=execSync(_0x4df224(0x13e),{'encoding':'utf-8','stdio':[_0x2e4717[_0x4df224(0xb7)],_0x4df224(0xc2),_0x2e4717[_0x4df224(0xb7)]]})[_0x4df224(0xde)]();return _0x863c7d[_0x4df224(0x108)](/\.git$/,'')[_0x4df224(0x108)](/^git@github\.com:/,_0x4df224(0x134))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x59b561=_0x23f300,_0x8e0fd5={'IayQI':function(_0x3a26f3,_0x3dd797,_0x49a8eb){return _0x3a26f3(_0x3dd797,_0x49a8eb);},'OELMJ':_0x59b561(0xd9),'mkpVM':'pipe'};try{return _0x8e0fd5[_0x59b561(0xbb)](execSync,_0x59b561(0xac),{'encoding':_0x8e0fd5['OELMJ'],'stdio':[_0x8e0fd5['mkpVM'],'pipe',_0x8e0fd5['mkpVM']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x412817=_0x23f300,_0x4c36da={'JuRqt':function(_0x3d5fdd,_0x312276,_0x178ebc){return _0x3d5fdd(_0x312276,_0x178ebc);}},_0x4e8c04=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4e8c04))return null;try{const _0x4d7fa=await _0x4c36da['JuRqt'](readFile,_0x4e8c04,_0x412817(0xd9));return _0x4d7fa['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x5647c6){const _0x110cdb=_0x23f300,_0x105d83={'alvNX':function(_0x2c8fd1){return _0x2c8fd1();},'msCTV':function(_0x30bc08,_0x46dbca){return _0x30bc08(_0x46dbca);},'jcJBi':function(_0x19540f,_0x42b139,_0xf8fed5,_0x27ae85){return _0x19540f(_0x42b139,_0xf8fed5,_0x27ae85);}},_0x56236c=_0x105d83['alvNX'](getRangerDir),_0x5ae319=join(_0x56236c,ACTIVE_FEATURE_FILE);!_0x105d83[_0x110cdb(0x109)](existsSync,_0x56236c)&&await mkdir(_0x56236c,{'recursive':!![]}),await _0x105d83[_0x110cdb(0xcf)](writeFile,_0x5ae319,_0x5647c6,_0x110cdb(0xd9));}function getProgressDisplay(_0xfd3b81){const _0x3777a4=_0x23f300,_0x541754={'yVtRc':function(_0x270770,_0x33f715){return _0x270770+_0x33f715;},'GsJIN':function(_0x1b028d,_0x4dfd58){return _0x1b028d/_0x4dfd58;},'fOLuB':function(_0x47a426,_0x47d8fe){return _0x47a426+_0x47d8fe;},'WIIQf':function(_0x172608,_0x5970a5){return _0x172608>_0x5970a5;},'ZjRqW':function(_0x2b485a,_0x5a914d){return _0x2b485a>_0x5a914d;}},_0x1a5bf0=_0xfd3b81[_0x3777a4(0xd5)]||0x0,_0x5aa3a9=_0xfd3b81['verificationInProgressItems']||0x0,_0x581145=_0xfd3b81['blockedItems']||0x0,_0x21960d=_0xfd3b81[_0x3777a4(0x152)]||0x0,_0x5350e2=_0xfd3b81[_0x3777a4(0x11d)]||0x0,_0x568df4=_0x541754['yVtRc'](_0x541754['yVtRc'](_0x541754[_0x3777a4(0xb9)](_0x541754['yVtRc'](_0x1a5bf0,_0x5aa3a9),_0x581145),_0x21960d),_0x5350e2);if(_0x568df4===0x0)return'-';const _0x24c8ef=0xa,_0x4855db=Math[_0x3777a4(0x14b)](_0x541754['GsJIN'](_0x1a5bf0,_0x568df4)*_0x24c8ef),_0x562f2f=_0x541754['fOLuB']('█'[_0x3777a4(0xc0)](_0x4855db),'░'[_0x3777a4(0xc0)](_0x24c8ef-_0x4855db)),_0x9b4718=[];if(_0x581145>0x0)_0x9b4718[_0x3777a4(0xee)](_0x581145+'\x20blocked');if(_0x541754['WIIQf'](_0x21960d,0x0))_0x9b4718[_0x3777a4(0xee)](_0x21960d+'\x20incomplete');if(_0x541754['ZjRqW'](_0x5aa3a9,0x0))_0x9b4718['push'](_0x5aa3a9+'\x20in\x20progress');const _0x204b8d=_0x9b4718[_0x3777a4(0x150)]>0x0?'\x20('+_0x9b4718['join'](',\x20')+')':'';return _0x562f2f+'\x20'+_0x1a5bf0+'/'+_0x568df4+_0x3777a4(0xfa)+_0x204b8d;}function _0x1ce6(_0x24ca6f,_0x1c990a){_0x24ca6f=_0x24ca6f-0x94;const _0x56e03d=_0x56e0();let _0x1ce62d=_0x56e03d[_0x24ca6f];return _0x1ce62d;}function _0x56e0(){const _0x44df10=['point','\x20\x20\x20ID:\x20','closed','github.com/','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x1b[1m','style','dashboardUrl','qmSft','\x20(v','\x20scenarios.','NSbYx','QAiur','git\x20remote\x20get-url\x20origin','mnVdG','arrayBuffer','\x20\x20✅\x20No\x20feedback\x20to\x20address','SFncG','authorEmail','.\x20Feature\x20review\x20has\x20','laOLl','toLocaleDateString','uzBUd','name','Bxwin','domRef','round','CLAUDE_SESSION_ID','stats','Current\x20session\x20not\x20found.','stepName','length','latestReview','incompleteItems','tsfVh','isInteger','completedAt','\x20\x20\x20\x20\x20ID:\x20','hDTqf','split','stdout','stringify','find','scenarios','textContent','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','assetUrl','/api/v1/mcp/browser-sessions/','status','feedback-images','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','spatial','\x20--limit\x20','after','WcLaG','eAAEY','notes','completed','\x20\x20\x20Updated\x20branch\x20to:\x20','version','json','yQxIl','\x1b[0m','TxvNP','gitBranch','exit','Scenario\x20','git\x20rev-parse\x20--abbrev-ref\x20HEAD','Not\x20in\x20a\x20git\x20repository.','toLocaleString','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','canonicalFlow','/artifacts/','type','assetType','8929xAdqZv','OQyKG','excludeScenarios','tSBnE','toFixed','yVtRc','knTGR','IayQI','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','coordinates','dDPNT','412065uPAvNB','repeat','verification_in_progress','pipe','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','oBXUe','422835sDpVqk','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20—\x20no\x20comments','IDsBe','has','items','NRFHl','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20\x20\x20Completed:\x20','currentSessionId','jcJBi','tpIEG','iteration','JBdfv','incomplete','\x0a⚠️\x20\x20','verifiedItems','pop','isKeyStep','ready','utf-8','totalCount','selected','any','stdin','trim','RSBPJ','VrVTd','rfhAX','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','terminalReason','filter','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','\x0aAvailable\x20scenarios:','screenshotUrls','comment_','verified','FotKF','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','KxvHB','limit','push','5|4|1|3|0|2','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','scenario','gitRepoUrl','iLYaP','\x0a✅\x20Restored\x20feature\x20review:\x20','unaddressedComments','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20\x20\x20\x20','\x0a✅\x20Scenario\x20added','WGKiA','\x20verified','96aHufDN','UZCkp','cqNzQ','3073560Obedvo','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','1830290ZWgMFz','en-US','canceledReason','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20/\x20','Dxbbu','isTTY','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','replace','msCTV','QjREN','\x20\x20\x20Status:\x20','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x20\x20Expected\x20flow:','browserSessionId','Uenge','content','dsXcK','from','qSoRL','output','log','element','AVJrX','\x20\x20\x20\x20\x20Progress:\x20','751359UUCQAZ','148agEzHo','\x20feature\x20review(s)\x20found','sessionId','pendingItems','in_progress','description','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','incompleteReason','error','position','5281924tDTRDz','fBNOz','\x20\x20\x20Progress:\x20','blockedReason','vLMBX','RrbaG','checklistItems','map','\x20\x20\x20Branch:\x20','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','KtxGf','mTjpe','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'];_0x56e0=function(){return _0x44df10;};return _0x56e0();}function getCurrentSessionItems(_0x25eac9,_0xd8211b){const _0x1a0583=_0x23f300;if(!_0x25eac9[_0x1a0583(0xce)])return _0xd8211b['filter'](_0x4d1684=>!_0x4d1684['sessionId']);return _0xd8211b['filter'](_0x1e3b80=>_0x1e3b80['sessionId']===_0x25eac9[_0x1a0583(0xce)]||!_0x1e3b80[_0x1a0583(0x11c)]);}function displayFeature(_0x317369,_0x1cc3f8){const _0x11de1c=_0x23f300,_0x35032a={'wQKyC':function(_0x1c1ac7,_0x28e7cf){return _0x1c1ac7>_0x28e7cf;},'YRkZt':'\x0a\x20\x20\x20Scenarios:','tpIEG':_0x11de1c(0x133),'dDPNT':function(_0x479139,_0x3fce75){return _0x479139===_0x3fce75;},'DCRBO':'approved','AVJrX':function(_0x161f6e,_0x3be4fa){return _0x161f6e===_0x3be4fa;},'SypPY':'blocked','JSblv':function(_0x4f6ae9,_0x3c7dd4){return _0x4f6ae9>_0x3c7dd4;},'RSBPJ':function(_0x8536f9,_0x4ab7b1){return _0x8536f9!==_0x4ab7b1;},'hrXTz':_0x11de1c(0xd3),'yQxIl':function(_0xf7530b,_0x427953){return _0xf7530b===_0x427953;},'dKvkX':function(_0x52f4bc,_0x4f2456){return _0x52f4bc===_0x4f2456;}};console['log']('\x0a'+_0x317369[_0x11de1c(0x148)]+'\x20('+_0x317369[_0x11de1c(0x138)]+')');_0x317369['stats']&&console['log'](_0x11de1c(0x126)+getProgressDisplay(_0x317369[_0x11de1c(0x14d)]));_0x317369['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x317369['description']);_0x317369[_0x11de1c(0xf2)]&&console[_0x11de1c(0x115)]('\x20\x20\x20Repository:\x20'+_0x317369[_0x11de1c(0xf2)]);_0x317369['gitBranch']&&console[_0x11de1c(0x115)]('\x20\x20\x20Branch:\x20'+_0x317369['gitBranch']);console[_0x11de1c(0x115)]('\x20\x20\x20Created:\x20'+new Date(_0x317369['createdAt'])[_0x11de1c(0xae)]());_0x317369[_0x11de1c(0x155)]&&console[_0x11de1c(0x115)](_0x11de1c(0xcd)+new Date(_0x317369[_0x11de1c(0x155)])['toLocaleString']());if(_0x1cc3f8&&_0x35032a['wQKyC'](_0x1cc3f8['length'],0x0)){console['log'](_0x35032a['YRkZt']);for(let _0x2247ac=0x0;_0x2247ac<_0x1cc3f8['length'];_0x2247ac++){const _0x43764d=_0x1cc3f8[_0x2247ac];let _0x2033b5;if(_0x43764d['status']===_0x35032a[_0x11de1c(0xd0)]&&_0x35032a['dDPNT'](_0x43764d['terminalReason'],_0x35032a['DCRBO']))_0x2033b5='✅';else{if(_0x43764d['status']===_0x11de1c(0xe9))_0x2033b5='🟢';else{if(_0x35032a[_0x11de1c(0xbe)](_0x43764d['status'],_0x11de1c(0xd3)))_0x2033b5='🟠';else{if(_0x35032a['AVJrX'](_0x43764d[_0x11de1c(0x99)],_0x35032a['SypPY']))_0x2033b5='🛑';else{if(_0x43764d['status']===_0x35032a['tpIEG'])_0x2033b5='⛔';else _0x43764d['status']===_0x11de1c(0xc1)?_0x2033b5='⏳':_0x2033b5='⬜';}}}}const _0x38cb81=_0x43764d['version']>0x1?_0x11de1c(0x13a)+_0x43764d[_0x11de1c(0xa4)]+')':'',_0x2fad27=_0x35032a['JSblv'](_0x43764d['version'],0x1)&&_0x43764d['parentItemId']&&_0x43764d['status']!==_0x35032a['tpIEG']&&_0x35032a[_0x11de1c(0xdf)](_0x43764d[_0x11de1c(0x99)],'verified')?'\x20[has\x20reviewer\x20feedback]':'';console[_0x11de1c(0x115)]('\x20\x20\x20'+(_0x2247ac+0x1)+'.\x20'+_0x2033b5+'\x20'+_0x43764d['description']+_0x38cb81+_0x2fad27);_0x35032a[_0x11de1c(0x117)](_0x43764d[_0x11de1c(0x99)],_0x35032a['SypPY'])&&_0x43764d['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x43764d[_0x11de1c(0x127)]);_0x43764d[_0x11de1c(0x99)]===_0x35032a['hrXTz']&&_0x43764d['incompleteReason']&&console[_0x11de1c(0x115)](_0x11de1c(0x10c)+_0x43764d['incompleteReason']);if(_0x35032a['AVJrX'](_0x43764d['status'],_0x11de1c(0x133))&&_0x35032a[_0x11de1c(0xa6)](_0x43764d[_0x11de1c(0xe3)],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x35032a['dKvkX'](_0x43764d['status'],_0x11de1c(0x133))&&_0x43764d['canceledReason']&&console[_0x11de1c(0x115)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x43764d[_0x11de1c(0x102)]);}}}export async function featureCreate(_0x49c6d3,_0x5c3534){const _0x5654df=_0x23f300,_0x234bb7={'WcLaG':function(_0x670e61){return _0x670e61();},'PsqPG':function(_0x2130a8,_0x21535f){return _0x2130a8===_0x21535f;},'QWSMT':function(_0x352931,_0x2b85a9){return _0x352931(_0x2b85a9);},'UZCkp':function(_0x457605,_0xe23d6d,_0x5a2858){return _0x457605(_0xe23d6d,_0x5a2858);},'EebHA':function(_0x472807,_0xbdd47b,_0x58b9db){return _0x472807(_0xbdd47b,_0x58b9db);}},{envNames:_0x400a70}=await _0x234bb7[_0x5654df(0x9f)](getEnvNames);_0x234bb7['PsqPG'](_0x400a70['length'],0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x2c15da=>bold(_0x2c15da)));const _0xadd6b7=_0x5c3534[_0x5654df(0x94)]?_0x5c3534[_0x5654df(0x94)]['map'](_0x594c3d=>_0x594c3d['trim']()):[],_0xe5ae76=getGitRepoUrl(),_0x12c664=getGitBranch();console[_0x5654df(0x115)]('\x0aCreating\x20feature\x20review...');const _0x46ac57=await _0x234bb7['QWSMT'](createFeature,{'name':_0x49c6d3,'description':_0x5c3534[_0x5654df(0x11f)],'checklist':_0xadd6b7,'gitRepoUrl':_0xe5ae76,'gitBranch':_0x12c664});await setActiveFeatureId(_0x46ac57['id']),await tryStartCurrentSession(_0x46ac57['id']);const _0x1a4a3e=process['env'][_0x5654df(0x14c)];_0x1a4a3e&&_0x234bb7[_0x5654df(0xfc)](registerSession,_0x1a4a3e,_0x46ac57['id']),console[_0x5654df(0x115)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x46ac57['id']),_0x234bb7['EebHA'](displayFeature,_0x46ac57,_0x46ac57[_0x5654df(0x12a)]),console['log'](_0x5654df(0xbc));}export async function featureList(_0x2e7c88){const _0x1044e3=_0x23f300,_0x2f463e={'JUHgG':function(_0x419c32){return _0x419c32();},'KYDmp':function(_0x5d0988,_0x65e943){return _0x5d0988(_0x65e943);},'qSoRL':'\x0aNo\x20feature\x20reviews\x20found.','mMMHQ':function(_0x48b219,_0x979319){return _0x48b219>_0x979319;},'sCCMP':_0x1044e3(0xef),'YmvWM':function(_0x348f98,_0x37d3fc){return _0x348f98+_0x37d3fc;},'VrVTd':function(_0x2a347c,_0x322888){return _0x2a347c!==_0x322888;},'yWFbU':'\x20--include-deleted'},_0x21865e={'limit':_0x2e7c88[_0x1044e3(0xed)]??0xa,'offset':_0x2e7c88['offset']??0x0,'includeDeleted':_0x2e7c88['includeDeleted']};_0x2e7c88['currentBranch']&&(_0x21865e['gitRepoUrl']=_0x2f463e['JUHgG'](getGitRepoUrl),_0x21865e[_0x1044e3(0xa9)]=_0x2f463e['JUHgG'](getGitBranch));const _0x1c93f3=await _0x2f463e['KYDmp'](listFeatures,_0x21865e);if(_0x1c93f3['items'][_0x1044e3(0x150)]===0x0){console[_0x1044e3(0x115)](_0x2f463e[_0x1044e3(0x113)]);return;}const _0x3e0afa=_0x2f463e['mMMHQ'](_0x1c93f3[_0x1044e3(0xda)],_0x1c93f3['items']['length'])?'Showing\x20'+_0x1c93f3['items']['length']+'\x20of\x20'+_0x1c93f3[_0x1044e3(0xda)]:_0x1c93f3['totalCount']+_0x1044e3(0x11b);console['log']('\x0a'+_0x3e0afa+':\x0a');for(const _0x285050 of _0x1c93f3['items']){const _0x3ec0d1=_0x2f463e['sCCMP']['split']('|');let _0x21f545=0x0;while(!![]){switch(_0x3ec0d1[_0x21f545++]){case'0':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x285050['createdAt'])['toLocaleDateString']());continue;case'1':_0x285050[_0x1044e3(0x14d)]&&console[_0x1044e3(0x115)](_0x1044e3(0x126)+getProgressDisplay(_0x285050[_0x1044e3(0x14d)]));continue;case'2':console['log']('');continue;case'3':_0x285050['gitBranch']&&console['log'](_0x1044e3(0x12c)+_0x285050[_0x1044e3(0xa9)]);continue;case'4':console['log'](_0x1044e3(0x132)+_0x285050['id']);continue;case'5':console['log'](''+_0x285050['name']);continue;}break;}}const _0x4fde8c=_0x21865e[_0x1044e3(0xed)]??0xa,_0x1297c1=_0x2f463e['YmvWM'](_0x21865e['offset']??0x0,_0x1c93f3[_0x1044e3(0xca)][_0x1044e3(0x150)]);if(_0x1297c1<_0x1c93f3[_0x1044e3(0xda)]){const _0x5a70dd=_0x2f463e[_0x1044e3(0xe0)](_0x4fde8c,0xa)?_0x1044e3(0x9d)+_0x4fde8c:'',_0x24b3a7=_0x2e7c88['currentBranch']?'\x20--current-branch':'',_0x3adf62=_0x2e7c88['includeDeleted']?_0x2f463e['yWFbU']:'';console[_0x1044e3(0x115)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1297c1+_0x5a70dd+_0x24b3a7+_0x3adf62);}}export async function featureShow(_0x52063f){const _0x5894da=_0x23f300,_0x4cc7ab={'sIiJn':function(_0x33b0f2){return _0x33b0f2();},'JBwpe':_0x5894da(0x135),'NSbYx':function(_0x5ef324,_0x5cef97){return _0x5ef324(_0x5cef97);}},_0x3e5bf3=_0x52063f||await _0x4cc7ab['sIiJn'](getActiveFeatureId);if(!_0x3e5bf3)throw new Error(_0x4cc7ab['JBwpe']);const _0x336d1d=await _0x4cc7ab[_0x5894da(0x13c)](getFeature,_0x3e5bf3);displayFeature(_0x336d1d,_0x336d1d[_0x5894da(0x12a)]);}export async function featureResume(_0x58a827){const _0x5c04af=_0x23f300,_0x24ac5d={'aBSxi':function(_0x497742,_0x4084ed){return _0x497742(_0x4084ed);},'kQHNP':function(_0x28b21b,_0x3dd0a9){return _0x28b21b(_0x3dd0a9);},'MTlJh':function(_0x3c1062,_0xb99405,_0x17b9a3){return _0x3c1062(_0xb99405,_0x17b9a3);},'SDQpS':function(_0x32aee4,_0x3c3b06){return _0x32aee4(_0x3c3b06);},'SchLn':function(_0xb6e95a,_0x34069d,_0x168c7b){return _0xb6e95a(_0x34069d,_0x168c7b);},'gCRPk':function(_0x387cc4){return _0x387cc4();},'qmSft':function(_0x385e5c,_0xa51bb1){return _0x385e5c&&_0xa51bb1;},'QjREN':_0x5c04af(0xad),'mXPAX':function(_0x1eef10,_0x1443e9){return _0x1eef10||_0x1443e9;},'laOLl':'any','rfhAX':function(_0x2e3b29,_0x46cfa3){return _0x2e3b29===_0x46cfa3;},'OgbFu':_0x5c04af(0xe5),'nHDZl':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','uLJvh':_0x5c04af(0x107),'tsfVh':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:'};if(_0x58a827){const _0x382dae=await _0x24ac5d['aBSxi'](getFeature,_0x58a827);await _0x24ac5d['kQHNP'](setActiveFeatureId,_0x382dae['id']);const _0xa7691a=getGitBranch();_0xa7691a&&_0xa7691a!==_0x382dae[_0x5c04af(0xa9)]&&(await _0x24ac5d['MTlJh'](updateFeature,_0x382dae['id'],{'gitBranch':_0xa7691a}),console['log'](_0x5c04af(0xa3)+_0xa7691a));console[_0x5c04af(0x115)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x382dae['name']+'\x20('+_0x382dae['id']+')'),await _0x24ac5d['SDQpS'](tryStartCurrentSession,_0x382dae['id']);const _0x3a6bb1=process['env']['CLAUDE_SESSION_ID'];_0x3a6bb1&&_0x24ac5d['SchLn'](registerSession,_0x3a6bb1,_0x382dae['id']);displayFeature(_0x382dae,_0x382dae[_0x5c04af(0x12a)]),await printFeedbackNudge(_0x382dae['id']);return;}const _0x830378=getGitRepoUrl(),_0x2473aa=_0x24ac5d['gCRPk'](getGitBranch);if(_0x24ac5d[_0x5c04af(0x139)](!_0x830378,!_0x2473aa))throw new Error(_0x24ac5d[_0x5c04af(0x10a)]);console[_0x5c04af(0x115)](_0x5c04af(0xc3)+_0x24ac5d['mXPAX'](_0x830378,_0x5c04af(0xdc))+_0x5c04af(0x104)+(_0x2473aa||_0x24ac5d[_0x5c04af(0x145)])+'...');const _0xc2ee57=await _0x24ac5d['SDQpS'](listFeatures,{'gitRepoUrl':_0x830378,'gitBranch':_0x2473aa}),_0x43fbd9=_0xc2ee57[_0x5c04af(0xca)][_0x5c04af(0xe4)](_0x159235=>!_0x159235['completedAt']);if(_0x24ac5d[_0x5c04af(0xe1)](_0x43fbd9[_0x5c04af(0x150)],0x0)){console['log'](_0x24ac5d['OgbFu']),console['log'](_0x24ac5d['nHDZl']);return;}let _0x8b689c;if(_0x43fbd9[_0x5c04af(0x150)]===0x1)_0x8b689c=_0x43fbd9[0x0];else{const _0x16986f=process[_0x5c04af(0xdd)][_0x5c04af(0x106)]&&process[_0x5c04af(0x159)]['isTTY'];if(!_0x16986f){console[_0x5c04af(0x115)]('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0xb4df7b of _0x43fbd9){console['log']('\x20\x20'+_0xb4df7b['name']),console['log'](_0x5c04af(0x156)+_0xb4df7b['id']),_0xb4df7b['stats']&&console[_0x5c04af(0x115)](_0x5c04af(0x118)+getProgressDisplay(_0xb4df7b['stats'])),_0xb4df7b['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xb4df7b[_0x5c04af(0xa9)]);}throw new Error(_0x24ac5d['uLJvh']);}const {selected:_0x393a88}=await _0x570df0['prompt']([{'type':'list','name':_0x5c04af(0xdb),'message':_0x24ac5d[_0x5c04af(0x153)],'choices':_0x43fbd9[_0x5c04af(0x12b)](_0xd8fb1a=>({'name':_0xd8fb1a[_0x5c04af(0x148)]+'\x20('+_0xd8fb1a['id']+')','value':_0xd8fb1a['id']}))}]);_0x8b689c=_0x43fbd9[_0x5c04af(0x15b)](_0x202e83=>_0x202e83['id']===_0x393a88);}await setActiveFeatureId(_0x8b689c['id']);_0x2473aa&&_0x2473aa!==_0x8b689c['gitBranch']&&(await updateFeature(_0x8b689c['id'],{'gitBranch':_0x2473aa}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2473aa));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x8b689c[_0x5c04af(0x148)]+'\x20('+_0x8b689c['id']+')'),await tryStartCurrentSession(_0x8b689c['id']);const _0x17a4d4=await getFeature(_0x8b689c['id']),_0x17a624=process['env']['CLAUDE_SESSION_ID'];_0x17a624&®isterSession(_0x17a624,_0x17a4d4['id']),_0x24ac5d['SchLn'](displayFeature,_0x17a4d4,_0x17a4d4['checklistItems']),await printFeedbackNudge(_0x17a4d4['id']);}async function printFeedbackNudge(_0x32475f){const _0x1efc65=_0x23f300,_0x867a0d={'rgUMQ':function(_0x4b5f03,_0x592549){return _0x4b5f03(_0x592549);},'PwiMa':function(_0x22f673,_0xa4692d,_0x40c8bb){return _0x22f673(_0xa4692d,_0x40c8bb);}};try{const {items:_0x1c72d6}=await _0x867a0d['rgUMQ'](getActionItems,_0x32475f);let _0x136b44=0x0,_0x1ebf7d=0x0;for(const _0x53d6bd of _0x1c72d6){const _0x3a33dc=await _0x867a0d['PwiMa'](getItemFeedback,_0x32475f,_0x53d6bd['id']);_0x3a33dc[_0x1efc65(0xf5)]['length']>0x0&&(_0x136b44+=_0x3a33dc['unaddressedComments']['length'],_0x1ebf7d++);}_0x136b44>0x0&&(console['log'](_0x1efc65(0xd4)+_0x136b44+_0x1efc65(0xff)+_0x1ebf7d+'\x20scenario(s).'),console[_0x1efc65(0x115)](_0x1efc65(0x96)));}catch{}}async function tryStartCurrentSession(_0x5b5de5){const _0x50feab=_0x23f300,_0x36d3c5={'SEHdi':function(_0x43d511,_0x273397){return _0x43d511(_0x273397);},'YfIFT':function(_0x545056,_0x2088ce,_0x4c92e9){return _0x545056(_0x2088ce,_0x4c92e9);}};try{const {sessions:_0x11c095}=await _0x36d3c5['SEHdi'](listFeatureSessions,_0x5b5de5),_0x2916ef=_0x11c095[_0x50feab(0x15b)](_0x1b9bbd=>_0x1b9bbd[_0x50feab(0x99)]===_0x50feab(0xd8));_0x2916ef&&(await _0x36d3c5['YfIFT'](startSession,_0x5b5de5,_0x2916ef['id']),console[_0x50feab(0x115)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x2916ef['iteration']));}catch{}}export async function featureReport(_0x5db596,_0x5ba5f7){const _0xab6ba9=_0x23f300,_0x1c739a={'acMpW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','fthlR':function(_0x43f074,_0x3429b9,_0x37ca6a,_0x2fa450){return _0x43f074(_0x3429b9,_0x37ca6a,_0x2fa450);},'bALPx':function(_0x41f94b){return _0x41f94b();},'OmCHy':'reports','eXyQQ':function(_0x1ee944,_0x570232){return _0x1ee944(_0x570232);},'Fplhq':function(_0x3333db,_0x2d5953,_0x41e47c){return _0x3333db(_0x2d5953,_0x41e47c);},'bAIXs':function(_0x24583d,_0x33f063,_0x376650,_0x4fc7c0){return _0x24583d(_0x33f063,_0x376650,_0x4fc7c0);},'IhpIW':_0xab6ba9(0xd9)},_0x52018f=_0x5db596||await getActiveFeatureId();if(!_0x52018f)throw new Error(_0x1c739a['acMpW']);console[_0xab6ba9(0x115)]('\x0aGenerating\x20report...');const _0x56b7cf=await getFeatureReportMarkdown(_0x52018f,{'style':_0x5ba5f7[_0xab6ba9(0x137)]}),_0x35aa2f=_0x5ba5f7[_0xab6ba9(0x114)]||_0x1c739a['fthlR'](join,_0x1c739a['bALPx'](getRangerDir),_0x1c739a['OmCHy'],_0x52018f+'.md'),_0x5ef314=join(_0x35aa2f,'..');!_0x1c739a['eXyQQ'](existsSync,_0x5ef314)&&await _0x1c739a['Fplhq'](mkdir,_0x5ef314,{'recursive':!![]}),await _0x1c739a['bAIXs'](writeFile,_0x35aa2f,_0x56b7cf,_0x1c739a['IhpIW']),console[_0xab6ba9(0x115)]('\x0a✅\x20Report\x20generated:\x20'+_0x35aa2f);}function getScenarioResult(_0x41c7f3){const _0x2d6116=_0x23f300,_0xc56563={'IDsBe':function(_0x377d26,_0x59a445){return _0x377d26===_0x59a445;}};if(_0xc56563[_0x2d6116(0xc8)](_0x41c7f3['status'],'closed'))return _0x41c7f3[_0x2d6116(0xe3)]??'closed';if(_0xc56563['IDsBe'](_0x41c7f3[_0x2d6116(0x99)],'verification_in_progress'))return'in_progress';return _0x41c7f3['status'];}function getScenarioRationale(_0x3d7af3,_0x590384){const _0x26354b=_0x23f300,_0xf7a94f='1|2|0|4|3|5'['split']('|');let _0x55f4c2=0x0;while(!![]){switch(_0xf7a94f[_0x55f4c2++]){case'0':if(_0x3d7af3['incompleteReason'])return _0x3d7af3[_0x26354b(0x121)];continue;case'1':if(_0x590384)return _0x590384;continue;case'2':if(_0x3d7af3['blockedReason'])return _0x3d7af3[_0x26354b(0x127)];continue;case'3':if(_0x3d7af3[_0x26354b(0xa1)])return _0x3d7af3[_0x26354b(0xa1)];continue;case'4':if(_0x3d7af3[_0x26354b(0x102)])return _0x3d7af3[_0x26354b(0x102)];continue;case'5':return null;}break;}}export async function featureReportPrDescription(_0x3e597a,_0x4e5087){const _0x39e302=_0x23f300,_0x705c3={'KtxGf':function(_0xae59eb){return _0xae59eb();},'JNMkL':function(_0x3f4844,_0x5cc119,_0x2c77f3){return _0x3f4844(_0x5cc119,_0x2c77f3);},'OQyKG':_0x39e302(0xc6),'fBNOz':function(_0x11e90b,_0x61f0c2){return _0x11e90b>_0x61f0c2;},'iHAHH':'\x0aAvailable\x20scenarios:','Dxbbu':function(_0xd1e5ca,_0x506e60){return _0xd1e5ca+_0x506e60;},'JBdfv':_0x39e302(0xf6),'EpzCa':function(_0x1de38b,_0x217c1f,_0xe6e4c1,_0x10e371){return _0x1de38b(_0x217c1f,_0xe6e4c1,_0x10e371);}},_0x4ed920=_0x3e597a||await _0x705c3[_0x39e302(0x12e)](getActiveFeatureId);if(!_0x4ed920)throw new Error(_0x39e302(0xeb));const _0x4c7be8=await getFeature(_0x4ed920),_0x4a7ef4=_0x4c7be8[_0x39e302(0x12a)]||[],_0x1b39ed=_0x705c3['JNMkL'](getCurrentSessionItems,_0x4c7be8,_0x4a7ef4);_0x1b39ed['length']===0x0&&(console[_0x39e302(0x122)](_0x705c3[_0x39e302(0xb5)]),process['exit'](0x1));const _0x519f59=_0x4e5087[_0x39e302(0xb6)]??[],_0x46ba3f=_0x519f59['filter'](_0x1c725d=>!Number[_0x39e302(0x154)](_0x1c725d)||_0x1c725d<0x1||_0x1c725d>_0x1b39ed['length']);if(_0x705c3[_0x39e302(0x125)](_0x46ba3f['length'],0x0)){console[_0x39e302(0x122)](_0x39e302(0x120)+_0x46ba3f['join'](',\x20')),console[_0x39e302(0x115)](_0x705c3['iHAHH']);for(let _0x30e093=0x0;_0x30e093<_0x1b39ed['length'];_0x30e093++){console[_0x39e302(0x115)]('\x20\x20'+_0x705c3[_0x39e302(0x105)](_0x30e093,0x1)+'.\x20'+_0x1b39ed[_0x30e093][_0x39e302(0x11f)]);}process[_0x39e302(0xaa)](0x1);}const _0x221415=new Set(_0x519f59['map'](_0x32b1ad=>_0x32b1ad-0x1)),_0x5eef06=_0x1b39ed['filter']((_0x44d162,_0x18be61)=>!_0x221415[_0x39e302(0xc9)](_0x18be61));_0x5eef06['length']===0x0&&(console[_0x39e302(0x122)](_0x705c3[_0x39e302(0xd2)]),process[_0x39e302(0xaa)](0x1));if(_0x4e5087[_0x39e302(0xa5)])await _0x705c3['EpzCa'](outputJsonReport,_0x4ed920,_0x4c7be8,_0x5eef06);else{const _0x14c123=await getFeatureReportMarkdown(_0x4ed920,{'itemIds':_0x5eef06['map'](_0x5358a1=>_0x5358a1['id'])});process[_0x39e302(0x159)]['write'](_0x14c123['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x1edde8,_0x58e3f5,_0x567120){const _0x3162cf=_0x23f300,_0x332b36={'VjayR':function(_0x42710d,_0x40a09e){return _0x42710d>_0x40a09e;},'mnVdG':function(_0x7cc96b){return _0x7cc96b();}},_0x2298f8=_0x332b36[_0x3162cf(0x13f)](getApiBaseUrl),_0x3312f7=await getFeatureReport(_0x1edde8),_0x2a77bd=new Map(_0x3312f7['checklistItems']['map'](_0x2296a1=>[_0x2296a1['id'],_0x2296a1])),_0x4e2bc0=await Promise['all'](_0x567120[_0x3162cf(0x12b)](async _0x4ef518=>{const _0x128efd=_0x3162cf,_0x47afae=_0x2a77bd['get'](_0x4ef518['id']),_0x37f873=_0x47afae?.['linkedSession']??null;let _0xa16cb9=[];if(_0x4ef518['browserSessionId'])try{const {steps:_0x40d498}=await getBrowserSessionSteps(_0x4ef518[_0x128efd(0x10e)]);_0x332b36['VjayR'](_0x40d498[_0x128efd(0x150)],0x0)&&(_0xa16cb9=_0x40d498[_0x128efd(0x12b)](_0x568c19=>{const _0x5ab527=_0x128efd,_0x2b3981=_0x568c19['assets'][_0x5ab527(0x15b)](_0x17bf00=>_0x17bf00['assetType']==='screenshot'&&_0x17bf00['timing']===_0x5ab527(0x9e))??_0x568c19['assets']['find'](_0x55b8ff=>_0x55b8ff[_0x5ab527(0xb3)]==='screenshot');let _0x13681e=null,_0x523bda=null;if(_0x2b3981){const _0x257aed=_0x2b3981['storage']['location'][_0x5ab527(0x158)]('/')[_0x5ab527(0xd6)]();_0x13681e=_0x2298f8+_0x5ab527(0x98)+_0x4ef518['browserSessionId']+_0x5ab527(0xb1)+_0x257aed,_0x257aed&&(_0x523bda=_0x257aed['replace'](/\.\w+$/,'')[_0x5ab527(0x108)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x523bda||_0x568c19['description']||_0x568c19[_0x5ab527(0x14f)]||'Step\x20'+_0x568c19[_0x5ab527(0x123)],'screenshot':_0x13681e,'is_key_step':_0x568c19[_0x5ab527(0xd7)]};}));}catch{}return _0xa16cb9['length']===0x0&&_0x37f873?.[_0x128efd(0xe7)]&&(_0xa16cb9=_0x37f873[_0x128efd(0xe7)]['map']((_0x2ba058,_0x448a6c)=>({'description':'Screenshot\x20'+(_0x448a6c+0x1),'screenshot':_0x2ba058,'is_key_step':![]}))),{'description':_0x4ef518[_0x128efd(0x11f)],'result':getScenarioResult(_0x4ef518),'rationale':getScenarioRationale(_0x4ef518,_0x37f873?.['agentResponse']),'steps':_0xa16cb9};})),_0xeca52c={'url':_0x58e3f5[_0x3162cf(0x138)],'scenarios':_0x4e2bc0};process['stdout']['write'](JSON[_0x3162cf(0x15a)](_0xeca52c,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x4d2779){const _0x56c608=_0x23f300,_0x51d2d8={'BWKIZ':function(_0x12ff07,_0x4ffcfd){return _0x12ff07(_0x4ffcfd);},'mTjpe':_0x56c608(0x14e),'FotKF':_0x56c608(0xa2),'iLYaP':'\x0a✅\x20Session\x20is\x20already\x20completed.','FWzQZ':'in_progress'},_0x105016=_0x4d2779||await getActiveFeatureId();if(!_0x105016)throw new Error(_0x56c608(0x135));const _0x1e7e9a=await _0x51d2d8['BWKIZ'](getFeature,_0x105016);if(!_0x1e7e9a['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x49e327}=await listFeatureSessions(_0x105016),_0x1a56f8=_0x49e327['find'](_0xca6612=>_0xca6612['id']===_0x1e7e9a['currentSessionId']);if(!_0x1a56f8)throw new Error(_0x51d2d8[_0x56c608(0x12f)]);if(_0x1a56f8[_0x56c608(0x99)]===_0x51d2d8[_0x56c608(0xea)]){console[_0x56c608(0x115)](_0x51d2d8[_0x56c608(0xf3)]);return;}if(_0x1a56f8[_0x56c608(0x99)]!==_0x51d2d8['FWzQZ'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x1a56f8[_0x56c608(0x99)]);console[_0x56c608(0x115)]('\x0aConcluding\x20session...'),await concludeSession(_0x105016,_0x1e7e9a[_0x56c608(0xce)]),console['log']('\x0a✅\x20Session\x20'+_0x1a56f8[_0x56c608(0xd1)]+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5412a4){const _0x4e2111=_0x23f300,_0x16812f={'XEGbx':function(_0xc0068e){return _0xc0068e();},'cqNzQ':_0x4e2111(0xeb),'oBXUe':function(_0x13433f,_0x5d7e7c){return _0x13433f(_0x5d7e7c);},'NRFHl':'No\x20sessions\x20found.','oVqwE':'completed','iDbAe':function(_0x49a548,_0x51209e){return _0x49a548===_0x51209e;}},_0x296df2=_0x5412a4||await _0x16812f['XEGbx'](getActiveFeatureId);if(!_0x296df2)throw new Error(_0x16812f[_0x4e2111(0xfd)]);const _0x4d24b9=await getFeature(_0x296df2);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x4d24b9['name']+'\x0a');const {sessions:_0x427718}=await _0x16812f[_0x4e2111(0xc4)](listFeatureSessions,_0x296df2);if(_0x427718[_0x4e2111(0x150)]===0x0){console['log'](_0x16812f[_0x4e2111(0xcb)]);return;}for(const _0x1e06a6 of _0x427718){const _0x4a5950=_0x1e06a6[_0x4e2111(0x99)]===_0x16812f['oVqwE']?'✅':_0x16812f['iDbAe'](_0x1e06a6[_0x4e2111(0x99)],_0x4e2111(0x11e))?'🔄':'▶️';console[_0x4e2111(0x115)](_0x4a5950+'\x20Session\x20'+_0x1e06a6[_0x4e2111(0xd1)]+'\x20('+_0x1e06a6['id']+')'),console[_0x4e2111(0x115)](_0x4e2111(0x10b)+_0x1e06a6[_0x4e2111(0x99)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x1e06a6['createdAt'])['toLocaleString']()),_0x1e06a6[_0x4e2111(0x155)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x1e06a6['completedAt'])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x9239af,_0x2d5896){const _0x3483a3=_0x23f300,_0xb1f393={'NDuxL':function(_0x2c9877){return _0x2c9877();},'knTGR':function(_0x2c8188,_0x597126,_0x204270){return _0x2c8188(_0x597126,_0x204270);},'uuWtm':function(_0x13598f,_0x2957bf){return _0x13598f(_0x2957bf);},'dsXcK':function(_0xe6f2e1,_0x2bd4f8,_0x40ddec){return _0xe6f2e1(_0x2bd4f8,_0x40ddec);}},_0x386848=_0x2d5896||await _0xb1f393['NDuxL'](getActiveFeatureId);if(!_0x386848)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 _0x44a96d=await getFeature(_0x386848);if(_0x44a96d['latestReview']&&!_0x44a96d[_0x3483a3(0x151)]['submittedAt'])throw new Error(_0x3483a3(0x12d)+_0x44a96d[_0x3483a3(0x138)]);await _0xb1f393[_0x3483a3(0xba)](createChecklistItem,_0x386848,_0x9239af);const _0x3be6c1=await _0xb1f393['uuWtm'](getFeature,_0x386848);console[_0x3483a3(0x115)](_0x3483a3(0xf8)),_0xb1f393[_0x3483a3(0x111)](displayFeature,_0x3be6c1,_0x3be6c1[_0x3483a3(0x12a)]);}export async function featureEditScenario(_0x2b84bb,_0x38e9cd){const _0x3115e1=_0x23f300,_0x3c0d01={'eAAEY':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','EcFpn':function(_0x1af208,_0x53fda7){return _0x1af208===_0x53fda7;},'OikYs':_0x3115e1(0x9b),'iGdci':_0x3115e1(0xaf),'Bxwin':function(_0x388e8e,_0x187f19){return _0x388e8e<_0x187f19;},'bcHVy':function(_0xacfd37,_0x496aa7){return _0xacfd37+_0x496aa7;},'OMhOw':function(_0x1eb676,_0x2f9aa5){return _0x1eb676-_0x2f9aa5;},'RrbaG':function(_0x28f9d0,_0x242410){return _0x28f9d0>=_0x242410;},'weBGc':function(_0x5d6cf0,_0x1ebfe9,_0x1f9394){return _0x5d6cf0(_0x1ebfe9,_0x1f9394);}},_0x169495=_0x38e9cd['id']||await getActiveFeatureId();!_0x169495&&(console[_0x3115e1(0x122)](_0x3c0d01[_0x3115e1(0xa0)]),console[_0x3115e1(0x122)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process[_0x3115e1(0xaa)](0x1));const _0x27848c=await getFeature(_0x169495);_0x27848c[_0x3115e1(0x151)]&&!_0x27848c[_0x3115e1(0x151)]['submittedAt']&&(console['error']('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x27848c[_0x3115e1(0x138)]),process['exit'](0x1));const _0x1e6a5c=_0x27848c[_0x3115e1(0x12a)]||[];_0x3c0d01['EcFpn'](_0x1e6a5c['length'],0x0)&&(console[_0x3115e1(0x122)](_0x3c0d01['OikYs']),process['exit'](0x1));if(_0x3c0d01['EcFpn'](_0x38e9cd['scenario'],undefined)){console['error'](_0x3c0d01['iGdci']),console[_0x3115e1(0x115)](_0x3115e1(0xe6));for(let _0x42b2a2=0x0;_0x3c0d01[_0x3115e1(0x149)](_0x42b2a2,_0x1e6a5c['length']);_0x42b2a2++){console[_0x3115e1(0x115)]('\x20\x20'+_0x3c0d01['bcHVy'](_0x42b2a2,0x1)+'.\x20'+_0x1e6a5c[_0x42b2a2][_0x3115e1(0x11f)]);}process['exit'](0x1);}const _0x260433=_0x3c0d01['OMhOw'](_0x38e9cd[_0x3115e1(0xf1)],0x1);if(_0x3c0d01[_0x3115e1(0x149)](_0x260433,0x0)||_0x3c0d01[_0x3115e1(0x129)](_0x260433,_0x1e6a5c['length'])){console[_0x3115e1(0x122)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x38e9cd['scenario']+_0x3115e1(0x144)+_0x1e6a5c['length']+_0x3115e1(0x13b)),console['log'](_0x3115e1(0xe6));for(let _0x7ec227=0x0;_0x7ec227<_0x1e6a5c['length'];_0x7ec227++){console[_0x3115e1(0x115)]('\x20\x20'+_0x3c0d01['bcHVy'](_0x7ec227,0x1)+'.\x20'+_0x1e6a5c[_0x7ec227]['description']);}process['exit'](0x1);}const _0x503639=_0x1e6a5c[_0x260433];await updateChecklistItem(_0x169495,_0x503639['id'],{'description':_0x2b84bb});const _0x223845=await getFeature(_0x169495);console[_0x3115e1(0x115)]('\x0a✅\x20Scenario\x20updated'),_0x3c0d01['weBGc'](displayFeature,_0x223845,_0x223845['checklistItems']);}async function downloadFeedbackImage(_0x6df001,_0x47d23e){const _0x23a627=_0x23f300,_0x274d1b={'XuUbd':function(_0x3f9ecd,_0x213b41,_0x1d3181){return _0x3f9ecd(_0x213b41,_0x1d3181);},'QAiur':_0x23a627(0x9a),'ZQYjl':function(_0x142bbe,_0x4b4e5e,_0x1a7760){return _0x142bbe(_0x4b4e5e,_0x1a7760);}};try{const _0xa2b166=_0x274d1b['XuUbd'](join,getRangerDir(),_0x274d1b[_0x23a627(0x13d)]);await mkdir(_0xa2b166,{'recursive':!![]});const _0x343275=join(_0xa2b166,_0x23a627(0xe8)+_0x47d23e+'.png'),_0x5098d6=await fetch(_0x6df001);if(!_0x5098d6['ok'])return null;const _0x317f31=Buffer[_0x23a627(0x112)](await _0x5098d6[_0x23a627(0x140)]());return await _0x274d1b['ZQYjl'](writeFile,_0x343275,_0x317f31),_0x343275;}catch{return null;}}export async function featureGetReview(_0x2286f9){const _0x32fe87=_0x23f300,_0x4ea732={'WvAox':function(_0x1d0fb2){return _0x1d0fb2();},'gqTWK':_0x32fe87(0x135),'Uenge':function(_0x517aba,_0x58e97e){return _0x517aba(_0x58e97e);},'TxvNP':function(_0x228a63,_0x5b07a8){return _0x228a63===_0x5b07a8;},'SFncG':function(_0x5bcab8,_0x5739d2,_0x83d069){return _0x5bcab8(_0x5739d2,_0x83d069);},'oLmyz':function(_0x2f72c1,_0x45b8cb){return _0x2f72c1>_0x45b8cb;},'WIINg':'numeric','KxvHB':'Unknown','uzBUd':'\x20>\x20'},_0x10eb6f=_0x2286f9||await _0x4ea732['WvAox'](getActiveFeatureId);if(!_0x10eb6f)throw new Error(_0x4ea732['gqTWK']);const _0x1fc065=await getFeature(_0x10eb6f),{items:_0x1ef99e}=await _0x4ea732[_0x32fe87(0x10f)](getActionItems,_0x10eb6f);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x1fc065[_0x32fe87(0x148)]+'\x20('+_0x1fc065['id']+')\x0a');if(_0x4ea732[_0x32fe87(0xa8)](_0x1ef99e['length'],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x5af75f=0x0;_0x5af75f<_0x1ef99e['length'];_0x5af75f++){const _0x2fd657=_0x1ef99e[_0x5af75f],_0x1e9cf4=_0x2fd657['version']>0x1?_0x32fe87(0x13a)+_0x2fd657[_0x32fe87(0xa4)]+')':'',_0x40c809=await _0x4ea732[_0x32fe87(0x142)](getItemFeedback,_0x10eb6f,_0x2fd657['id']);if(_0x4ea732['oLmyz'](_0x40c809['unaddressedComments']['length'],0x0)){console[_0x32fe87(0x115)](_0x32fe87(0xab)+(_0x5af75f+0x1)+':\x20\x22'+_0x2fd657['description']+'\x22'+_0x1e9cf4+'\x20—\x20'+_0x40c809[_0x32fe87(0xf5)][_0x32fe87(0x150)]+'\x20unaddressed\x20comment(s)');for(const _0x5cbaad of _0x40c809[_0x32fe87(0xf5)]){const _0x55dfbe=new Date(_0x5cbaad['createdAt'])[_0x32fe87(0x146)](_0x32fe87(0x101),{'month':'short','day':_0x4ea732['WIINg']}),_0x931fe5=_0x5cbaad['authorName']||_0x5cbaad[_0x32fe87(0x143)]||_0x4ea732[_0x32fe87(0xec)];console[_0x32fe87(0x115)]('\x20\x20💬\x20'+_0x931fe5+'\x20('+_0x55dfbe+'):\x20\x22'+_0x5cbaad[_0x32fe87(0x110)]+'\x22');if(_0x5cbaad[_0x32fe87(0x97)]){const _0x599dd1=await downloadFeedbackImage(_0x5cbaad[_0x32fe87(0x97)],_0x5cbaad['id']);_0x599dd1&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x599dd1);}if(_0x5cbaad[_0x32fe87(0x14a)]){const _0x20f017=_0x5cbaad['domRef']['selector'][_0x32fe87(0x158)](_0x4ea732[_0x32fe87(0x147)])['pop']()?.[_0x32fe87(0x158)](':')[0x0]||_0x32fe87(0x116),_0x91a2f4=_0x5cbaad[_0x32fe87(0x14a)][_0x32fe87(0x95)]?'\x20\x22'+_0x5cbaad['domRef'][_0x32fe87(0x95)]['slice'](0x0,0x3c)+'\x22':'';console[_0x32fe87(0x115)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x20f017+'>'+_0x91a2f4),console['log'](_0x32fe87(0x103)+_0x5cbaad['domRef']['selector']);}else{if(_0x5cbaad['spatial']){const _0x18549e=_0x5cbaad['spatial'][_0x32fe87(0xbd)];_0x4ea732['TxvNP'](_0x5cbaad[_0x32fe87(0x9c)][_0x32fe87(0xb2)],_0x32fe87(0x131))&&_0x18549e[_0x32fe87(0x150)]>=0x2?console['log'](_0x32fe87(0xcc)+_0x18549e[0x0]['toFixed'](0x2)+',\x20'+_0x18549e[0x1][_0x32fe87(0xb8)](0x2)+')'):console['log'](_0x32fe87(0xe2)+_0x5cbaad[_0x32fe87(0x9c)][_0x32fe87(0xb2)]+'\x20at\x20['+_0x18549e[_0x32fe87(0x12b)](_0x270db5=>_0x270db5[_0x32fe87(0xb8)](0x2))['join'](',\x20')+']');}}}if(_0x40c809[_0x32fe87(0xb0)]){console['log'](_0x32fe87(0x10d));for(const _0x5b1f2c of _0x40c809['canonicalFlow']['split']('\x0a')){console['log'](_0x32fe87(0xf7)+_0x5b1f2c);}}}else console['log']('Scenario\x20'+(_0x5af75f+0x1)+':\x20\x22'+_0x2fd657[_0x32fe87(0x11f)]+'\x22'+_0x1e9cf4+_0x32fe87(0xc7)),console['log'](_0x32fe87(0x141));console[_0x32fe87(0x115)]('');}}export async function featureDelete(_0x316b62){const _0x52bc77=_0x23f300,_0x11b20c={'Ikvts':_0x52bc77(0x135),'WGKiA':function(_0x554d4c,_0x24acce){return _0x554d4c(_0x24acce);},'hDTqf':function(_0x11e56d,_0x11a61a){return _0x11e56d(_0x11a61a);},'tbLny':function(_0xd20648,_0xd1d60b){return _0xd20648+_0xd1d60b;}},_0x5f0378=_0x316b62||await getActiveFeatureId();if(!_0x5f0378)throw new Error(_0x11b20c['Ikvts']);const _0x2e94e2=await _0x11b20c[_0x52bc77(0xf9)](getFeature,_0x5f0378);await _0x11b20c[_0x52bc77(0x157)](softDeleteFeature,_0x5f0378),console[_0x52bc77(0x115)](_0x52bc77(0x130)+_0x2e94e2['name']+'\x20('+_0x5f0378+')'),console[_0x52bc77(0x115)](_0x11b20c['tbLny'](_0x52bc77(0xf0),_0x5f0378));}export async function featureRestore(_0x285cb3){const _0x75b5b9=_0x23f300,_0x235970={'gQQlf':function(_0x4724a9,_0x52374d){return _0x4724a9(_0x52374d);},'vLMBX':function(_0x3a30f6,_0x1fe92e,_0x543406){return _0x3a30f6(_0x1fe92e,_0x543406);}};await restoreFeature(_0x285cb3);const _0x244894=await _0x235970['gQQlf'](getFeature,_0x285cb3);console['log'](_0x75b5b9(0xf4)+_0x244894[_0x75b5b9(0x148)]+'\x20('+_0x285cb3+')'),_0x235970[_0x75b5b9(0x128)](displayFeature,_0x244894,_0x244894[_0x75b5b9(0x12a)]);}
|
|
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']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3efe17,_0x42bc57){const _0xdfbc1a=_0x3068,_0x1d09cc=_0x3efe17();while(!![]){try{const _0x97a414=parseInt(_0xdfbc1a(0x86))/0x1+parseInt(_0xdfbc1a(0x81))/0x2+parseInt(_0xdfbc1a(0x83))/0x3+-parseInt(_0xdfbc1a(0x85))/0x4+parseInt(_0xdfbc1a(0x7d))/0x5*(parseInt(_0xdfbc1a(0x87))/0x6)+parseInt(_0xdfbc1a(0x80))/0x7+-parseInt(_0xdfbc1a(0x7e))/0x8;if(_0x97a414===_0x42bc57)break;else _0x1d09cc['push'](_0x1d09cc['shift']());}catch(_0x1e6494){_0x1d09cc['push'](_0x1d09cc['shift']());}}}(_0x1589,0x8757d));function _0x3068(_0x4c46ae,_0x2f9d30){_0x4c46ae=_0x4c46ae-0x7d;const _0x15892a=_0x1589();let _0x3068a0=_0x15892a[_0x4c46ae];return _0x3068a0;}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 _0x1589(){const _0x5f2eb8=['Unknown\x20hook:\x20','1349688ISYRpb','Gtxrb','1062612sciDuh','191395aGTeXP','6jXFhjy','1635210feUSUB','7393416mqQIIs','error','3505187tqdZHC','550242ybPjvM'];_0x1589=function(){return _0x5f2eb8;};return _0x1589();}export async function hook(_0x5b9401,_0xce70d3){const _0x124e03=_0x3068,_0xa08aac={'Gtxrb':function(_0x26d123,_0x1453d5){return _0x26d123(_0x1453d5);}},_0x36099a=HOOKS[_0x5b9401];if(!_0x36099a){const _0x2105ca=Object['keys'](HOOKS)['join'](',\x20');console['error'](_0x124e03(0x82)+_0x5b9401),console[_0x124e03(0x7f)]('Valid\x20hooks:\x20'+_0x2105ca),process['exit'](0x1);}await _0xa08aac[_0x124e03(0x84)](_0x36099a,_0xce70d3);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x23ee(_0x28bba9,_0x1e767d){_0x28bba9=_0x28bba9-0x1d7;const _0x1bd104=_0x1bd1();let _0x23ee34=_0x1bd104[_0x28bba9];return _0x23ee34;}(function(_0x13778d,_0x5619db){const _0x5512e7=_0x23ee,_0x3cff77=_0x13778d();while(!![]){try{const _0xd51eb8=-parseInt(_0x5512e7(0x1dc))/0x1+-parseInt(_0x5512e7(0x1dd))/0x2+parseInt(_0x5512e7(0x1e0))/0x3+-parseInt(_0x5512e7(0x1d8))/0x4*(-parseInt(_0x5512e7(0x1d9))/0x5)+-parseInt(_0x5512e7(0x1df))/0x6+parseInt(_0x5512e7(0x1da))/0x7+parseInt(_0x5512e7(0x1de))/0x8;if(_0xd51eb8===_0x5619db)break;else _0x3cff77['push'](_0x3cff77['shift']());}catch(_0x15e38a){_0x3cff77['push'](_0x3cff77['shift']());}}}(_0x1bd1,0xb3e32));import{readHookInput}from'./output.js';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 _0x1bd1(){const _0xc45bfe=['session_id','log','867248ROmpSh','5JXRDqm','9121952GaAwyt','CfQLj','1219236aRCJRD','579716cYHYuN','5976080BGuuEv','8349762LRYeAw','4111743PCCVCv'];_0x1bd1=function(){return _0xc45bfe;};return _0x1bd1();}export async function autoPrompt(){const _0x544f65=_0x23ee,_0x10b029={'kQMse':function(_0x1bd607,_0x978aef){return _0x1bd607(_0x978aef);},'CfQLj':function(_0x4b5a60,_0xc750c7){return _0x4b5a60(_0xc750c7);}},_0x283408=await readHookInput(),_0x464ebc=_0x283408?.[_0x544f65(0x1e1)];if(!_0x464ebc)return;if(_0x10b029['kQMse'](isSessionEnabled,_0x464ebc)||_0x10b029[_0x544f65(0x1db)](hasSessionBeenPrompted,_0x464ebc))return;markSessionPrompted(_0x464ebc),console[_0x544f65(0x1d7)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f08c8,_0x4df618){const _0x4806ab=_0x76d4,_0xe386f5=_0x3f08c8();while(!![]){try{const _0x401f87=parseInt(_0x4806ab(0x19c))/0x1+-parseInt(_0x4806ab(0x192))/0x2+parseInt(_0x4806ab(0x19a))/0x3*(-parseInt(_0x4806ab(0x1a1))/0x4)+-parseInt(_0x4806ab(0x19e))/0x5+parseInt(_0x4806ab(0x197))/0x6*(parseInt(_0x4806ab(0x198))/0x7)+-parseInt(_0x4806ab(0x19f))/0x8+parseInt(_0x4806ab(0x194))/0x9;if(_0x401f87===_0x4df618)break;else _0xe386f5['push'](_0xe386f5['shift']());}catch(_0x176835){_0xe386f5['push'](_0xe386f5['shift']());}}}(_0x37ef,0xa441e));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x76d4(_0x3b1883,_0x2dc885){_0x3b1883=_0x3b1883-0x192;const _0x37ef6a=_0x37ef();let _0x76d45c=_0x37ef6a[_0x3b1883];return _0x76d45c;}function _0x37ef(){const _0x19d7c9=['#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','6wIOMLZ','1968757clHbnF','pilUZ','3917949lLNyfU','CLAUDE_SESSION_ID','69007BOPmGI','main','2427845sxYdCo','5368352fVrmAc','.\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`.','4vTSUeY','171480BMvJdq','GntnW','25837884OEmWcQ','NxlAK'];_0x37ef=function(){return _0x19d7c9;};return _0x37ef();}import{printBlock}from'./output.js';export async function disable(_0x44add2){const _0x351aa0=_0x76d4,_0x3210bd={'GntnW':function(_0x179325,_0x1bfeaa){return _0x179325(_0x1bfeaa);},'pilUZ':function(_0x229e14,_0x445555){return _0x229e14!==_0x445555;},'NxlAK':_0x351aa0(0x19d),'vrnvl':function(_0x3ccfd6,_0x5ee72d){return _0x3ccfd6(_0x5ee72d);},'alCAa':'master'},_0x3e45fe=_0x44add2||process['env'][_0x351aa0(0x19b)]||'';_0x3e45fe&&_0x3210bd[_0x351aa0(0x193)](disableSession,_0x3e45fe);const _0x27937c=getCurrentBranch();_0x27937c&&_0x3210bd[_0x351aa0(0x199)](_0x27937c,_0x3210bd[_0x351aa0(0x195)])&&_0x27937c!=='master'&&_0x3210bd['vrnvl'](disableBranch,_0x27937c),printBlock(_0x351aa0(0x196)+(_0x27937c&&_0x27937c!==_0x351aa0(0x19d)&&_0x27937c!==_0x3210bd['alCAa']?'\x20and\x20branch\x20\x27'+_0x27937c+'\x27':'')+_0x351aa0(0x1a0));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d97a1,_0x413221){const _0x5f21de=_0x1bff,_0x323850=_0x2d97a1();while(!![]){try{const _0x3bd4b5=parseInt(_0x5f21de(0xe5))/0x1*(parseInt(_0x5f21de(0xeb))/0x2)+parseInt(_0x5f21de(0xe7))/0x3*(parseInt(_0x5f21de(0xf7))/0x4)+-parseInt(_0x5f21de(0xf8))/0x5+parseInt(_0x5f21de(0xf2))/0x6+parseInt(_0x5f21de(0xe9))/0x7*(parseInt(_0x5f21de(0xf9))/0x8)+-parseInt(_0x5f21de(0xf0))/0x9*(-parseInt(_0x5f21de(0xf5))/0xa)+-parseInt(_0x5f21de(0xea))/0xb;if(_0x3bd4b5===_0x413221)break;else _0x323850['push'](_0x323850['shift']());}catch(_0x41dfeb){_0x323850['push'](_0x323850['shift']());}}}(_0x5aed,0x343f2));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x1bff(_0x12150c,_0x28a4ff){_0x12150c=_0x12150c-0xe4;const _0x5aedd9=_0x5aed();let _0x1bff02=_0x5aedd9[_0x12150c];return _0x1bff02;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x5aed(){const _0x39c59f=['oCQqo','1171899XvpcLi','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','2096832eDmZNK','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','YtEPX','30hAlyoQ','\x0a\x0a**Branch\x20\x27','70644iXvAqI','1722605hoNCwD','368kWDXJx','env','1kEeKoQ','CLAUDE_SESSION_ID','9zfApVM','main','5593bFMSeK','4177184hWGgJV','216850ahWFrO','#\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`','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.'];_0x5aed=function(){return _0x39c59f;};return _0x5aed();}import{update}from'../update.js';export async function enable(_0x3fd5c8){const _0x36c60d=_0x1bff,_0x327baf={'KaTkY':function(_0x15e77f){return _0x15e77f();},'OYkbZ':_0x36c60d(0xee),'YtEPX':function(_0x2f0f4b,_0x5a7a69){return _0x2f0f4b(_0x5a7a69);},'Fgjsw':function(_0x2b8781){return _0x2b8781();},'oCQqo':_0x36c60d(0xe8),'UFCay':function(_0x468c76){return _0x468c76();}},_0x3d4983=_0x3fd5c8||process[_0x36c60d(0xe4)][_0x36c60d(0xe6)]||'',_0x5d14cb=Boolean(_0x3fd5c8),_0x53521c=await _0x327baf['KaTkY'](getToken);if(!_0x53521c){const _0x217556=_0x5d14cb?'ranger\x20setup\x20--opencode':'ranger\x20setup',_0x11da59=_0x5d14cb?_0x36c60d(0xf1):_0x327baf['OYkbZ'];_0x327baf['YtEPX'](printBlock,_0x36c60d(0xed)+_0x217556+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x11da59);return;}try{await update();}catch{}_0x3d4983&&enableSession(_0x3d4983);const _0xe61d50=_0x327baf['Fgjsw'](getCurrentBranch),_0x7715d1=_0xe61d50&&_0xe61d50!==_0x327baf[_0x36c60d(0xef)]&&_0xe61d50!=='master'?_0x36c60d(0xf6)+_0xe61d50+_0x36c60d(0xf3):'',_0xcef355=_0x327baf['UFCay'](getRangerSkillContent);_0x327baf[_0x36c60d(0xf4)](printBlock,_0x36c60d(0xec)+_0x7715d1+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0xcef355+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x400c(_0x18b93d,_0x36d190){_0x18b93d=_0x18b93d-0xd4;const _0x5d2206=_0x5d22();let _0x400c61=_0x5d2206[_0x18b93d];return _0x400c61;}function _0x5d22(){const _0x4b56eb=['79864ypdhmZ','3313208JopmKI','1043oKjoRV','3205210cWpTsi','6DyOjoo','===\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===','706899aWChtG','4ersWVX','19630400UpBoSi','TtbQo','279684hvlEOf','2362473Cquroj'];_0x5d22=function(){return _0x4b56eb;};return _0x5d22();}(function(_0x3fe80b,_0x4d119b){const _0x12cd17=_0x400c,_0x35bfb2=_0x3fe80b();while(!![]){try{const _0x59c67a=parseInt(_0x12cd17(0xdc))/0x1*(parseInt(_0x12cd17(0xdd))/0x2)+parseInt(_0x12cd17(0xd4))/0x3+-parseInt(_0x12cd17(0xd7))/0x4+parseInt(_0x12cd17(0xd9))/0x5*(-parseInt(_0x12cd17(0xda))/0x6)+-parseInt(_0x12cd17(0xd8))/0x7*(parseInt(_0x12cd17(0xd6))/0x8)+parseInt(_0x12cd17(0xd5))/0x9+parseInt(_0x12cd17(0xde))/0xa;if(_0x59c67a===_0x4d119b)break;else _0x35bfb2['push'](_0x35bfb2['shift']());}catch(_0x3d284d){_0x35bfb2['push'](_0x35bfb2['shift']());}}}(_0x5d22,0xbd648));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x4d6263){const _0x2af860=_0x400c,_0x412e90={'TtbQo':function(_0xc538c0,_0x2c614d){return _0xc538c0(_0x2c614d);}},_0x4b290f=await getEnabledSessionId(_0x4d6263);if(!_0x4b290f)return;_0x412e90[_0x2af860(0xdf)](printBlock,_0x2af860(0xdb));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c6845,_0x55781d){var _0x4a9afd=_0x5dd4,_0x429cf9=_0x1c6845();while(!![]){try{var _0x4df369=parseInt(_0x4a9afd(0x7f))/0x1*(-parseInt(_0x4a9afd(0x7c))/0x2)+parseInt(_0x4a9afd(0x7e))/0x3+-parseInt(_0x4a9afd(0x78))/0x4*(-parseInt(_0x4a9afd(0x81))/0x5)+-parseInt(_0x4a9afd(0x7b))/0x6+parseInt(_0x4a9afd(0x7a))/0x7+-parseInt(_0x4a9afd(0x80))/0x8*(parseInt(_0x4a9afd(0x79))/0x9)+parseInt(_0x4a9afd(0x7d))/0xa;if(_0x4df369===_0x55781d)break;else _0x429cf9['push'](_0x429cf9['shift']());}catch(_0x38de92){_0x429cf9['push'](_0x429cf9['shift']());}}}(_0x3fce,0x5fda8));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x5dd4(_0x29b734,_0x3aa001){_0x29b734=_0x29b734-0x78;var _0x3fce1b=_0x3fce();var _0x5dd469=_0x3fce1b[_0x29b734];return _0x5dd469;}export{preCompact}from'./preCompact.js';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 _0x3fce(){var _0x341c87=['87638soJnxi','10505740fzdlcc','115971fmmShs','15bkhsJV','368PIPyNB','745345EwpnVB','4AIfLnn','128214DqsNCh','4390708wPqdPy','961962YbrRHU'];_0x3fce=function(){return _0x341c87;};return _0x3fce();}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3cab0f,_0x1f8d1d){const _0x56e932=_0x1c69,_0xbfb8ab=_0x3cab0f();while(!![]){try{const _0x3d2703=-parseInt(_0x56e932(0xec))/0x1*(parseInt(_0x56e932(0xe9))/0x2)+-parseInt(_0x56e932(0xea))/0x3*(-parseInt(_0x56e932(0xf1))/0x4)+-parseInt(_0x56e932(0xef))/0x5+parseInt(_0x56e932(0xe5))/0x6*(parseInt(_0x56e932(0xed))/0x7)+parseInt(_0x56e932(0xf4))/0x8*(parseInt(_0x56e932(0xee))/0x9)+-parseInt(_0x56e932(0xe6))/0xa*(parseInt(_0x56e932(0xf0))/0xb)+parseInt(_0x56e932(0xe8))/0xc*(parseInt(_0x56e932(0xe7))/0xd);if(_0x3d2703===_0x1f8d1d)break;else _0xbfb8ab['push'](_0xbfb8ab['shift']());}catch(_0x3a4182){_0xbfb8ab['push'](_0xbfb8ab['shift']());}}}(_0x3dff,0x3dd61));function _0x1c69(_0x532740,_0x5b54ab){_0x532740=_0x532740-0xe5;const _0x3dff32=_0x3dff();let _0x1c691e=_0x3dff32[_0x532740];return _0x1c691e;}import{isSessionEnabled}from'../utils/sessionCache.js';function _0x3dff(){const _0xf1485b=['204pzUgFM','68YhONLR','2127UHfZax','eGcpa','7785nqFKan','1149477NnWtcQ','3247803eVfXYn','1615930toYfGA','55WuPchi','2772fsGAdZ','MgegE','session_id','8KeEMzs','stdin','sFoHW','12GiunZc','921460kHxByA','92729vwJhyj'];_0x3dff=function(){return _0xf1485b;};return _0x3dff();}export function printBlock(_0x51fc0d){console['log'](_0x51fc0d);}export async function readHookInput(){const _0x20b91e=_0x1c69;let _0x3aa6b6='';for await(const _0x5d29c5 of process[_0x20b91e(0xf5)]){_0x3aa6b6+=_0x5d29c5;}try{return JSON['parse'](_0x3aa6b6);}catch{return null;}}export async function getEnabledSessionId(_0x1ff13a){const _0x419f63=_0x1c69,_0x452920={'sFoHW':function(_0x5679a1){return _0x5679a1();},'eGcpa':function(_0x1430e0,_0x5918d8){return _0x1430e0(_0x5918d8);}};if(_0x1ff13a)return isSessionEnabled(_0x1ff13a)?_0x1ff13a:null;const _0x2c4d09=await _0x452920[_0x419f63(0xf6)](readHookInput),_0x57bb0a=_0x2c4d09?.[_0x419f63(0xf3)];if(!_0x57bb0a||!_0x452920[_0x419f63(0xeb)](isSessionEnabled,_0x57bb0a))return null;return _0x57bb0a;}export async function getEnabledHookContext(_0x47e5f9){const _0x45e0d2=_0x1c69,_0x254bcd={'jRQcS':function(_0x74cfed){return _0x74cfed();},'MgegE':function(_0x536abc,_0x466715){return _0x536abc(_0x466715);}};if(_0x47e5f9){if(!isSessionEnabled(_0x47e5f9))return null;return{'sessionId':_0x47e5f9,'input':{'session_id':_0x47e5f9}};}const _0x249a2e=await _0x254bcd['jRQcS'](readHookInput),_0x14bc9b=_0x249a2e?.[_0x45e0d2(0xf3)];if(!_0x14bc9b||!_0x254bcd[_0x45e0d2(0xf2)](isSessionEnabled,_0x14bc9b))return null;return{'sessionId':_0x14bc9b,'input':_0x249a2e};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x4d9582,_0x3713f1){const _0x375dc8=_0xff2a,_0x2991e2=_0x4d9582();while(!![]){try{const _0x2f48d3=parseInt(_0x375dc8(0x198))/0x1*(-parseInt(_0x375dc8(0x197))/0x2)+-parseInt(_0x375dc8(0x193))/0x3*(parseInt(_0x375dc8(0x19d))/0x4)+parseInt(_0x375dc8(0x19a))/0x5*(-parseInt(_0x375dc8(0x194))/0x6)+parseInt(_0x375dc8(0x199))/0x7*(parseInt(_0x375dc8(0x191))/0x8)+-parseInt(_0x375dc8(0x19f))/0x9*(-parseInt(_0x375dc8(0x192))/0xa)+-parseInt(_0x375dc8(0x196))/0xb+parseInt(_0x375dc8(0x19c))/0xc;if(_0x2f48d3===_0x3713f1)break;else _0x2991e2['push'](_0x2991e2['shift']());}catch(_0x72f927){_0x2991e2['push'](_0x2991e2['shift']());}}}(_0xbede,0x963bc));function _0xff2a(_0x50ec84,_0x470660){_0x50ec84=_0x50ec84-0x191;const _0xbedec=_0xbede();let _0xff2a95=_0xbedec[_0x50ec84];return _0xff2a95;}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x5426cf){const _0x5659e6=_0xff2a,_0x4eabb7={'Kmttc':_0x5659e6(0x195),'qYDTW':function(_0x453748,_0x24e192){return _0x453748(_0x24e192);}},_0xe7236c=await getEnabledHookContext(_0x5426cf);if(!_0xe7236c)return;if(_0xe7236c[_0x5659e6(0x19b)][_0x5659e6(0x19e)]!==_0x4eabb7['Kmttc'])return;if(!shouldShowPlanReminder(_0xe7236c['sessionId']))return;_0x4eabb7['qYDTW'](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 _0xbede(){const _0x4495aa=['input','17649792mdfAwb','3904468mpMgyZ','permission_mode','45ganJGy','4370824Xedjqc','1907530CcBtOk','3IbAELz','2082iLzNPq','plan','1899227RBiqbD','2duzdDn','307033VRSzEC','7wTmpkc','12965ilQQpF'];_0xbede=function(){return _0x4495aa;};return _0xbede();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x109f3f,_0x3f8563){const _0x23cb07=_0x538f,_0x24e754=_0x109f3f();while(!![]){try{const _0x532735=-parseInt(_0x23cb07(0x1d2))/0x1+parseInt(_0x23cb07(0x1d3))/0x2+parseInt(_0x23cb07(0x1d1))/0x3+parseInt(_0x23cb07(0x1d4))/0x4+parseInt(_0x23cb07(0x1d7))/0x5*(-parseInt(_0x23cb07(0x1d5))/0x6)+parseInt(_0x23cb07(0x1d9))/0x7+-parseInt(_0x23cb07(0x1d6))/0x8;if(_0x532735===_0x3f8563)break;else _0x24e754['push'](_0x24e754['shift']());}catch(_0x1b6d51){_0x24e754['push'](_0x24e754['shift']());}}}(_0x3a26,0x9bb12));import{printBlock,getEnabledSessionId}from'./output.js';function _0x538f(_0x3dae24,_0x9e48c0){_0x3dae24=_0x3dae24-0x1d1;const _0x3a26b4=_0x3a26();let _0x538ff1=_0x3a26b4[_0x3dae24];return _0x538ff1;}function _0x3a26(){const _0x3f05e4=['623189oeRCQc','2433501TchFuz','402503BvjQRj','2120816EJLFrJ','1765012vtthBf','399624ZmgsYy','5564784eakoEy','50pTldfr','BgtjO'];_0x3a26=function(){return _0x3f05e4;};return _0x3a26();}export async function planStart(_0x4b909f){const _0x39bdbf=_0x538f,_0xb67d1b={'BgtjO':function(_0xb3c9ed,_0x5b8f04){return _0xb3c9ed(_0x5b8f04);}},_0x25884c=await _0xb67d1b[_0x39bdbf(0x1d8)](getEnabledSessionId,_0x4b909f);if(!_0x25884c)return;_0xb67d1b[_0x39bdbf(0x1d8)](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 _0x2c84(){const _0x4842ca=['4876125hWxFNM','517202azJkoB','22065525Yhlgjc','3OjRzma','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).','1083176anTBxc','28IVNnPH','3319374ZJPCYh','log','4482260wbYDOR','stringify','1251310AKdqZC','PostToolUse'];_0x2c84=function(){return _0x4842ca;};return _0x2c84();}(function(_0x281af7,_0x1b6ce2){const _0x5713ff=_0x3d20,_0x424a6a=_0x281af7();while(!![]){try{const _0x335c09=parseInt(_0x5713ff(0x8b))/0x1+parseInt(_0x5713ff(0x8e))/0x2*(-parseInt(_0x5713ff(0x90))/0x3)+parseInt(_0x5713ff(0x89))/0x4+parseInt(_0x5713ff(0x8d))/0x5+parseInt(_0x5713ff(0x94))/0x6+-parseInt(_0x5713ff(0x93))/0x7*(parseInt(_0x5713ff(0x92))/0x8)+-parseInt(_0x5713ff(0x8f))/0x9;if(_0x335c09===_0x1b6ce2)break;else _0x424a6a['push'](_0x424a6a['shift']());}catch(_0x577d40){_0x424a6a['push'](_0x424a6a['shift']());}}}(_0x2c84,0x9e4df));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3d20(_0x46bb42,_0xbf4157){_0x46bb42=_0x46bb42-0x88;const _0x2c847b=_0x2c84();let _0x3d2077=_0x2c847b[_0x46bb42];return _0x3d2077;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x569065){const _0x216d01=_0x3d20,_0x2d6e0d={'DdGaz':function(_0x5d8655,_0x17351c){return _0x5d8655(_0x17351c);},'nhpWo':_0x216d01(0x8c)},_0x9f3ec1=await _0x2d6e0d['DdGaz'](getEnabledSessionId,_0x569065);if(!_0x9f3ec1)return;updateBranchTracking(_0x9f3ec1);const _0x369014=await getToken();if(!_0x369014)return;const _0x538281=getSessionEntry(_0x9f3ec1);if(_0x538281){const _0x212cf7={'hookSpecificOutput':{'hookEventName':_0x216d01(0x8c),'additionalContext':_0x216d01(0x91)}};console[_0x216d01(0x88)](JSON[_0x216d01(0x8a)](_0x212cf7));return;}const _0x3dea81={'hookSpecificOutput':{'hookEventName':_0x2d6e0d['nhpWo'],'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'](_0x3dea81));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x13bd26,_0x4e6fbc){const _0x1e357b=_0x1943,_0x4b6282=_0x13bd26();while(!![]){try{const _0xeddf9=parseInt(_0x1e357b(0x103))/0x1+-parseInt(_0x1e357b(0x101))/0x2*(-parseInt(_0x1e357b(0x104))/0x3)+-parseInt(_0x1e357b(0x107))/0x4+-parseInt(_0x1e357b(0x102))/0x5+-parseInt(_0x1e357b(0x106))/0x6*(parseInt(_0x1e357b(0x105))/0x7)+-parseInt(_0x1e357b(0xfe))/0x8+parseInt(_0x1e357b(0xff))/0x9;if(_0xeddf9===_0x4e6fbc)break;else _0x4b6282['push'](_0x4b6282['shift']());}catch(_0x463557){_0x4b6282['push'](_0x4b6282['shift']());}}}(_0x5678,0xd567d));function _0x1943(_0x190304,_0x26c3a8){_0x190304=_0x190304-0xfe;const _0x567893=_0x5678();let _0x1943fb=_0x567893[_0x190304];return _0x1943fb;}import{getToken}from'../utils/keychain.js';function _0x5678(){const _0x3efbed=['1548030dNnORo','2415hgqBBs','267ntPjvY','714889EhZHRT','36EQEtEB','2972572uHmHTj','3863368hrdIhy','19332135oTyqxT','INdlQ','19598mVoXqc'];_0x5678=function(){return _0x3efbed;};return _0x5678();}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x19e1df){const _0x2f7109=_0x1943,_0x2a73f7={'INdlQ':function(_0x2455dc){return _0x2455dc();},'JeqrF':function(_0x40c12a,_0x141ed8){return _0x40c12a(_0x141ed8);}},_0x2aaa44=await getEnabledSessionId(_0x19e1df);if(!_0x2aaa44)return;try{const _0x53f93a=await _0x2a73f7[_0x2f7109(0x100)](getToken);if(!_0x53f93a)return;_0x2a73f7['JeqrF'](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(_0x190506,_0x3f6379){const _0x5c4c18=_0x4b7a,_0xe8692f=_0x190506();while(!![]){try{const _0x40017f=parseInt(_0x5c4c18(0xfa))/0x1+parseInt(_0x5c4c18(0xf6))/0x2*(parseInt(_0x5c4c18(0xf7))/0x3)+-parseInt(_0x5c4c18(0xf8))/0x4*(-parseInt(_0x5c4c18(0xf9))/0x5)+parseInt(_0x5c4c18(0x100))/0x6*(parseInt(_0x5c4c18(0xfb))/0x7)+parseInt(_0x5c4c18(0x101))/0x8+parseInt(_0x5c4c18(0xff))/0x9+-parseInt(_0x5c4c18(0xf5))/0xa*(parseInt(_0x5c4c18(0xfc))/0xb);if(_0x40017f===_0x3f6379)break;else _0xe8692f['push'](_0xe8692f['shift']());}catch(_0x315688){_0xe8692f['push'](_0xe8692f['shift']());}}}(_0x565d,0xc3dde));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x4b7a(_0x3958ce,_0x10d309){_0x3958ce=_0x3958ce-0xf4;const _0x565d6c=_0x565d();let _0x4b7a9a=_0x565d6c[_0x3958ce];return _0x4b7a9a;}function _0x565d(){const _0x3bbbef=['143fyQMIa','clear','session_id','12976524wHVxjG','181686cKYHDe','3203120acZXro','zyWdJ','4009310ZMNLPI','2KwmsDW','3650736klyYlY','715012KmeHOV','5bYHYdK','1474399mkJsex','301IoAjPW'];_0x565d=function(){return _0x3bbbef;};return _0x565d();}import{readHookInput}from'./output.js';export async function sessionEnd(_0x262a17){const _0x430773=_0x4b7a,_0x233282={'BUKhe':function(_0x46b94e){return _0x46b94e();},'zyWdJ':function(_0x23ec33,_0x28558c){return _0x23ec33===_0x28558c;}};let _0x15147c=_0x262a17,_0x2e2d95;if(!_0x262a17){const _0x290e52=await _0x233282['BUKhe'](readHookInput);_0x15147c=_0x290e52?.[_0x430773(0xfe)],_0x2e2d95=_0x290e52?.['reason'];}if(!_0x15147c)return;_0x233282[_0x430773(0xf4)](_0x2e2d95,_0x430773(0xfd))&&recordEnabledSessionCleared(_0x15147c);}
|