@ranger-testing/ranger-cli 2.4.4 → 2.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -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/tokenRefresh.js +1 -0
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1397c5=_0x538d;(function(_0x339a2b,_0xc7e312){const _0x30ec4a=_0x538d,_0x5d6187=_0x339a2b();while(!![]){try{const _0x1530ba=parseInt(_0x30ec4a(0xa6))/0x1+parseInt(_0x30ec4a(0xb5))/0x2*(parseInt(_0x30ec4a(0xad))/0x3)+parseInt(_0x30ec4a(0xb8))/0x4+parseInt(_0x30ec4a(0xa5))/0x5*(-parseInt(_0x30ec4a(0xab))/0x6)+parseInt(_0x30ec4a(0xba))/0x7*(-parseInt(_0x30ec4a(0xa1))/0x8)+parseInt(_0x30ec4a(0xbf))/0x9+parseInt(_0x30ec4a(0xac))/0xa*(-parseInt(_0x30ec4a(0xa8))/0xb);if(_0x1530ba===_0xc7e312)break;else _0x5d6187['push'](_0x5d6187['shift']());}catch(_0x5f467d){_0x5d6187['push'](_0x5d6187['shift']());}}}(_0x45f7,0x84cdf));import{existsSync}from'fs';function _0x45f7(){const _0x567b7e=['includes','4EaUejP','SGgLo','XHeJC','1062404NJQVik','acqCo','4636919KaUKMk','Profile\x20\x22','brHwc','dKhvm','No\x20configuration\x20set\x20for\x20\x22','3475692lRKZec','allowInsecureLocalhost','8nCrFRU','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','MICcL','IgyeF','5ZcLJqN','959555yqAVNK','NybTL','737PSVPxw','AFFIf','object','6373266QRZDcY','20910SVZsIh','1196022oiEKke','Key\x20\x22','log','\x22\x20not\x20found','stringify','\x22\x20does\x20not\x20exist.','uHAPb'];_0x45f7=function(){return _0x567b7e;};return _0x45f7();}import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x1397c5(0xa0)];function parseValue(_0x218adf,_0x1c5718){const _0x2c8996=_0x1397c5,_0x4f45e6={'SGgLo':'true','qRMrP':function(_0x11d0c0,_0x1eb822){return _0x11d0c0===_0x1eb822;}};if(BOOLEAN_KEYS[_0x2c8996(0xb4)](_0x218adf)){if(_0x1c5718===_0x4f45e6[_0x2c8996(0xb6)])return!![];if(_0x4f45e6['qRMrP'](_0x1c5718,'false'))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x218adf+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x1c5718;}function _0x538d(_0x46c8e8,_0x3fa9a9){_0x46c8e8=_0x46c8e8-0xa0;const _0x45f745=_0x45f7();let _0x538d33=_0x45f745[_0x46c8e8];return _0x538d33;}export async function configSet(_0x504dc5,_0x5b542b,_0x51e2dd){const _0x32674a=_0x1397c5,_0x3322c4={'IgyeF':function(_0x2d36bd,_0x1c7cd0){return _0x2d36bd(_0x1c7cd0);},'XHeJC':function(_0x5259dd,_0xd6d773,_0x100205){return _0x5259dd(_0xd6d773,_0x100205);},'VHjhu':function(_0x258285,_0x11d8ec,_0x452144,_0x3d0da8){return _0x258285(_0x11d8ec,_0x452144,_0x3d0da8);}},_0x2ac97f=getEnvDir(_0x504dc5);if(!existsSync(_0x2ac97f))throw new Error(_0x32674a(0xbb)+_0x504dc5+_0x32674a(0xa2)+_0x504dc5);const _0x34102d=await _0x3322c4[_0x32674a(0xa4)](loadSettings,_0x504dc5),_0x1adba8=_0x3322c4[_0x32674a(0xb7)](parseValue,_0x5b542b,_0x51e2dd);_0x3322c4['VHjhu'](setNestedValue,_0x34102d,_0x5b542b,_0x1adba8),await saveSettings(_0x504dc5,_0x34102d),console['log']('Set\x20'+_0x5b542b+'\x20=\x20'+_0x1adba8);}export async function configGet(_0x138c58,_0x2ca0fd){const _0x119b73=_0x1397c5,_0x557959={'OMXdl':function(_0x5ed86b,_0x48fd7e){return _0x5ed86b(_0x48fd7e);},'NybTL':function(_0x162640,_0xa81d16){return _0x162640(_0xa81d16);},'MICcL':function(_0x2cd98a,_0x1cffbc,_0x4517ed){return _0x2cd98a(_0x1cffbc,_0x4517ed);},'brHwc':function(_0x44b66d,_0x549870){return _0x44b66d===_0x549870;},'tethC':_0x119b73(0xaa)},_0x1a73b2=getEnvDir(_0x138c58);if(!_0x557959['OMXdl'](existsSync,_0x1a73b2))throw new Error('Profile\x20\x22'+_0x138c58+_0x119b73(0xb2));const _0x3f8161=await _0x557959[_0x119b73(0xa7)](loadSettings,_0x138c58),_0x2cf653=_0x557959[_0x119b73(0xa3)](getNestedValue,_0x3f8161,_0x2ca0fd);if(_0x2cf653===undefined)console[_0x119b73(0xaf)]('(not\x20set)');else _0x557959[_0x119b73(0xbc)](typeof _0x2cf653,_0x557959['tethC'])?console['log'](JSON[_0x119b73(0xb1)](_0x2cf653,null,0x2)):console['log'](_0x2cf653);}export async function configList(_0x37b812){const _0xd5926e=_0x1397c5,_0x467f65={'tlNfE':function(_0x20dacc,_0x578fec){return _0x20dacc(_0x578fec);},'AFFIf':function(_0x4b4ab1,_0x193bdd){return _0x4b4ab1(_0x193bdd);},'uHAPb':function(_0x1701ca,_0x41aa4e){return _0x1701ca(_0x41aa4e);}},_0x42bce7=_0x467f65['tlNfE'](getSettingsPath,_0x37b812);if(!_0x467f65[_0xd5926e(0xa9)](existsSync,_0x42bce7)){const _0x2e8fe0=_0x467f65[_0xd5926e(0xb3)](getEnvDir,_0x37b812);if(!_0x467f65['uHAPb'](existsSync,_0x2e8fe0))throw new Error(_0xd5926e(0xbb)+_0x37b812+'\x22\x20does\x20not\x20exist.');console[_0xd5926e(0xaf)](_0xd5926e(0xbe)+_0x37b812+'\x22');return;}const _0x56b495=await _0x467f65['tlNfE'](loadSettings,_0x37b812),_0x21b4e0=_0x467f65[_0xd5926e(0xa9)](formatSettings,_0x56b495);!_0x21b4e0?console[_0xd5926e(0xaf)](_0xd5926e(0xbe)+_0x37b812+'\x22'):console['log'](_0x21b4e0);}export async function configUnset(_0xf346f1,_0x1063a7){const _0x2bb041=_0x1397c5,_0x4f9679={'dKhvm':function(_0x5e030f,_0x194634){return _0x5e030f(_0x194634);},'acqCo':function(_0x3d5718,_0x541f5b,_0x3599b2){return _0x3d5718(_0x541f5b,_0x3599b2);}},_0x5159bd=getEnvDir(_0xf346f1);if(!_0x4f9679[_0x2bb041(0xbd)](existsSync,_0x5159bd))throw new Error('Profile\x20\x22'+_0xf346f1+'\x22\x20does\x20not\x20exist.');const _0x45466f=await loadSettings(_0xf346f1),_0x2beff0=_0x4f9679[_0x2bb041(0xb9)](deleteNestedValue,_0x45466f,_0x1063a7);_0x2beff0?(await saveSettings(_0xf346f1,_0x45466f),console[_0x2bb041(0xaf)]('Removed\x20'+_0x1063a7)):console['log'](_0x2bb041(0xae)+_0x1063a7+_0x2bb041(0xb0));}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x193b7d,_0x7d3823){const _0x381c7e=_0x11b4,_0x22025c=_0x193b7d();while(!![]){try{const _0xc8726a=-parseInt(_0x381c7e(0x1bf))/0x1+parseInt(_0x381c7e(0x1bb))/0x2*(parseInt(_0x381c7e(0x1ce))/0x3)+parseInt(_0x381c7e(0x1c7))/0x4+parseInt(_0x381c7e(0x1da))/0x5*(parseInt(_0x381c7e(0x1c8))/0x6)+-parseInt(_0x381c7e(0x1cf))/0x7*(-parseInt(_0x381c7e(0x1c5))/0x8)+-parseInt(_0x381c7e(0x1ba))/0x9*(parseInt(_0x381c7e(0x1c2))/0xa)+parseInt(_0x381c7e(0x1c1))/0xb*(parseInt(_0x381c7e(0x1d1))/0xc);if(_0xc8726a===_0x7d3823)break;else _0x22025c['push'](_0x22025c['shift']());}catch(_0x4bf3eb){_0x22025c['push'](_0x22025c['shift']());}}}(_0x25bd,0x81941));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x25bd(){const _0x5ec00a=['2085GVakrL','JghTA','18AKmBBN','1343458CGPcSn','pOSFE','settings.json','zkikL','910323mPNwGP','push','110bqJezY','4982770YretsQ','baseUrl','.txt','120DJIYwS','legacy','219412bOajkF','7674aGowEu','sort','\x0a*\x20=\x20active\x20profile','local','CSmhv','environmentDetails','3OFdTci','282961FRJbXP','length','685632fhKpGJ','rTzXj','startsWith','includes','GgaWM','log','isDirectory','XGvdw','STEOH'];_0x25bd=function(){return _0x5ec00a;};return _0x25bd();}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','local','ci'];function _0x11b4(_0x19e848,_0x47dbec){_0x19e848=_0x19e848-0x1b9;const _0x25bd0c=_0x25bd();let _0x11b418=_0x25bd0c[_0x19e848];return _0x11b418;}export async function getEnvNames(){const _0x15a8d9=_0x11b4,_0x29839f={'STEOH':function(_0x4b64b4){return _0x4b64b4();},'HUElB':function(_0x49d3e4,_0x3ced71){return _0x49d3e4(_0x3ced71);},'XGvdw':function(_0x49f105,_0x190ad1){return _0x49f105(_0x190ad1);},'ouQkx':function(_0xa410d0,_0x24367e,_0x5640f9){return _0xa410d0(_0x24367e,_0x5640f9);},'dXuhU':function(_0x75920,_0x1ee403,_0x1644fc){return _0x75920(_0x1ee403,_0x1644fc);},'zkikL':function(_0x4fb5a8,_0x6487c1){return _0x4fb5a8(_0x6487c1);},'rTzXj':function(_0x5917b7,_0xa3bfe6,_0x2a4e27){return _0x5917b7(_0xa3bfe6,_0x2a4e27);},'CSmhv':_0x15a8d9(0x1bd),'xkIFL':'legacy'},_0x3ca812=_0x29839f[_0x15a8d9(0x1d9)](getRangerDir);if(!_0x29839f['HUElB'](existsSync,_0x3ca812))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x36f81f=await readActiveProfileName(),_0x3fca07=[],_0x3f13e9={},_0x248dcb=join(_0x3ca812,_0x15a8d9(0x1cb));if(_0x29839f[_0x15a8d9(0x1d8)](existsSync,_0x248dcb)){const _0x4ae773=await readdir(_0x248dcb);for(const _0x526eb4 of _0x4ae773){const _0x321250=_0x29839f['ouQkx'](join,_0x248dcb,_0x526eb4),_0x5af779=await _0x29839f['XGvdw'](stat,_0x321250);_0x5af779[_0x15a8d9(0x1d7)]()&&(_0x3fca07[_0x15a8d9(0x1c0)](_0x526eb4),_0x3f13e9[_0x526eb4]=_0x15a8d9(0x1cb));}}const _0xc852f1=join(_0x3ca812,'ci');if(existsSync(_0xc852f1)){const _0x1835a2=await readdir(_0xc852f1);for(const _0x94c93b of _0x1835a2){const _0x429f56=_0x29839f['dXuhU'](join,_0xc852f1,_0x94c93b),_0x2348ce=await _0x29839f[_0x15a8d9(0x1be)](stat,_0x429f56);_0x2348ce['isDirectory']()&&(_0x3fca07[_0x15a8d9(0x1c0)](_0x94c93b),_0x3f13e9[_0x94c93b]='ci');}}const _0x5e6d85=await readdir(_0x3ca812);for(const _0x254af1 of _0x5e6d85){if(NON_ENV_DIRS[_0x15a8d9(0x1d4)](_0x254af1))continue;if(_0x254af1[_0x15a8d9(0x1d3)]('.'))continue;if(_0x254af1['endsWith'](_0x15a8d9(0x1c4)))continue;const _0xfcc1e6=_0x29839f[_0x15a8d9(0x1d2)](join,_0x3ca812,_0x254af1),_0x37708d=await stat(_0xfcc1e6);_0x37708d[_0x15a8d9(0x1d7)]()&&existsSync(join(_0xfcc1e6,_0x29839f[_0x15a8d9(0x1cc)]))&&(!_0x3fca07[_0x15a8d9(0x1d4)](_0x254af1)&&(_0x3fca07['push'](_0x254af1),_0x3f13e9[_0x254af1]=_0x29839f['xkIFL']));}return{'envNames':_0x3fca07,'activeEnv':_0x36f81f,'envTypes':_0x3f13e9};}export async function envList(){const _0x1d0c40=_0x11b4,_0x2ba0b5={'dQlYj':function(_0x3c074d){return _0x3c074d();},'LzKPr':'\x0aNo\x20profiles\x20found.','GgaWM':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','JghTA':_0x1d0c40(0x1cb),'pOSFE':_0x1d0c40(0x1c6)},{envNames:_0x2f0721,activeEnv:_0x550c3d,envTypes:_0x4cd591}=await _0x2ba0b5['dQlYj'](getEnvNames);if(_0x2f0721[_0x1d0c40(0x1d0)]===0x0){console['log'](_0x2ba0b5['LzKPr']),console[_0x1d0c40(0x1d6)](_0x2ba0b5[_0x1d0c40(0x1d5)]);return;}console[_0x1d0c40(0x1d6)]('\x0aProfiles:');for(const _0x8442e4 of _0x2f0721[_0x1d0c40(0x1c9)]()){const _0xb2087a=_0x8442e4===_0x550c3d,_0xfeacd6=_0x4cd591[_0x8442e4]||_0x2ba0b5[_0x1d0c40(0x1b9)],_0x11e973=await loadSettings(_0x8442e4),_0x28c000=_0xfeacd6===_0x2ba0b5[_0x1d0c40(0x1bc)]?'':'\x20['+_0xfeacd6+']';console['log']('\x20\x20'+(_0xb2087a?'*\x20':'\x20\x20')+_0x8442e4+_0x28c000),_0x11e973[_0x1d0c40(0x1c3)]&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x11e973[_0x1d0c40(0x1c3)]),_0x11e973[_0x1d0c40(0x1cd)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x11e973['environmentDetails']);}_0x550c3d&&console['log'](_0x1d0c40(0x1ca));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x21c156=_0x3ce5;(function(_0x2eb9e2,_0x446790){const _0x5943af=_0x3ce5,_0x4bd7ad=_0x2eb9e2();while(!![]){try{const _0x2e18c5=parseInt(_0x5943af(0x219))/0x1+parseInt(_0x5943af(0x1d3))/0x2+parseInt(_0x5943af(0x209))/0x3*(parseInt(_0x5943af(0x160))/0x4)+parseInt(_0x5943af(0x15a))/0x5+parseInt(_0x5943af(0x1ca))/0x6*(-parseInt(_0x5943af(0x22f))/0x7)+-parseInt(_0x5943af(0x216))/0x8+-parseInt(_0x5943af(0x1f8))/0x9*(parseInt(_0x5943af(0x20b))/0xa);if(_0x2e18c5===_0x446790)break;else _0x4bd7ad['push'](_0x4bd7ad['shift']());}catch(_0x4335e8){_0x4bd7ad['push'](_0x4bd7ad['shift']());}}}(_0x6e08,0x4fbd3));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x384464 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=_0x4c36a6=>_0x21c156(0x202)+_0x4c36a6+_0x21c156(0x213);function getGitRepoUrl(){const _0x1547ff=_0x21c156,_0x27fb04={'zUWyS':'github.com/'};try{const _0xd2caf1=execSync('git\x20remote\x20get-url\x20origin',{'encoding':_0x1547ff(0x1c8),'stdio':[_0x1547ff(0x1bf),_0x1547ff(0x1bf),_0x1547ff(0x1bf)]})['trim']();return _0xd2caf1['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x27fb04['zUWyS'])[_0x1547ff(0x1ce)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x583714={'lOqFN':'git\x20rev-parse\x20--abbrev-ref\x20HEAD'};try{return execSync(_0x583714['lOqFN'],{'encoding':'utf-8','stdio':['pipe','pipe','pipe']})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x2a0c26=_0x21c156,_0x3dde56={'LbStA':function(_0x3a0607){return _0x3a0607();}},_0x17b26d=join(_0x3dde56[_0x2a0c26(0x195)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x17b26d))return null;try{const _0x1227a5=await readFile(_0x17b26d,_0x2a0c26(0x1c8));return _0x1227a5['trim']()||null;}catch{return null;}}function _0x6e08(){const _0x210fba=['iuRfD','submittedAt','BVZnh','filter','error','verificationInProgressItems','bipeS','jfgid','name','\x20\x20\x20▶️\x20Started\x20session\x20','completed','Next\x20page:\x20ranger\x20list\x20--offset\x20','jlkIO','iteration','currentSessionId','all','/artifacts/','QLAOo','isKeyStep','\x0aNo\x20feature\x20reviews\x20found.','ZLbdc','MCpUc','push','LbStA','closed','point','\x20concluded.','gitBranch','map','\x0a✅\x20Report\x20generated:\x20','OqZvU','bDEyD','OKLQA','woRir','UXKCz','Lazvv','jZnDi','\x20/\x20','pYmsL','WnDCN','\x0aAvailable\x20scenarios:','\x20\x20\x20ID:\x20','incompleteItems','isInteger','\x20\x20\x20\x20\x20\x20Cancelled:\x20','cHqBh','items','latestReview','join','prompt','\x20\x20\x20Updated\x20branch\x20to:\x20','HXukM','Current\x20session\x20not\x20found.','\x20unaddressed\x20comment(s)','spatial','BUzYi','pjOBP','Scenario\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','phcaJ','OMaiv','assetUrl','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20',':\x20\x22','NGniQ','pipe','excludeScenarios','\x20verified','sessionId','output','OSLFu','currentBranch','tyxmG','stdout','utf-8','get','121338uqfGZp','No\x20sessions\x20found.','\x20scenarios.','wZJuh','replace','tGZMd','verifiedItems','kyGjf','Not\x20in\x20a\x20git\x20repository.','1281072wOLihw','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','TNCTF','totalCount','browserSessionId','\x20>\x20','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','Yynmc','\x20[has\x20reviewer\x20feedback]','LZrDb','\x20\x20\x20Branch:\x20','\x20\x20\x20\x20\x20\x20Approved','assets','exBRU','createdAt','YFKmR','SZGMA','dashboardUrl','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','includeDeleted','exit','fbqkB','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','jxjDp','\x20--include-deleted','completedAt','limit','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','CLAUDE_SESSION_ID','screenshotUrls','stats','log','cozSa','yOOEn','terminalReason','EtgdZ','length','4171113VeDYmL','rsjoR','checklistItems','\x0a✅\x20Scenario\x20added','MCNoX','toLocaleString','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ready','toLocaleDateString','\x1b[1m','XRDMZ','stringify','gitRepoUrl','CqRdH','assetType','QKmMi','2949ksRrUP','BNxaO','10lLuPqv','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','CagPG','rpACs','rdnSb','TPJBq','split','\x20(v','\x1b[0m','verification_in_progress','description','3945336gvafaZ','BZalG','\x0a⚠️\x20\x20','330182VevRce','incomplete','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','position','qWPfZ','domRef','any','/api/v1/mcp/browser-sessions/','type','\x0a✅\x20Feature\x20review\x20created:\x20','status','RVjzE','location','timing','version','\x20\x20\x20Completed:\x20','linkedSession','wXRxk','coordinates','canonicalFlow','authorName','warn','77EIeUin','repeat','offset','xFaHw','\x0a✅\x20Scenario\x20updated','pop','style','\x20\x20\x20Created:\x20','RLzmt','\x0a✅\x20Resumed\x20feature\x20review:\x20','stdin','2124370lFGhcT','bQqjx','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','unaddressedComments','FjHyQ','canceledReason','448fehRZd','sHVdp','numeric','slice','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x0a\x20\x20\x20Scenarios:','No\x20active\x20session\x20for\x20this\x20feature\x20review.','toFixed','agentResponse','\x20feature\x20review(s)\x20found','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','uwSxS','scenarios','incompleteReason','.\x20Feature\x20review\x20has\x20','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x0a❌\x20Invalid\x20scenario\x20index:\x20','blockedReason','rlsuF','mwkgx','Showing\x20','find','env','verified','IFJMC','blocked','YuJVk','approved','scenario','\x20\x20\x20\x20\x20📋\x20Selector:\x20'];_0x6e08=function(){return _0x210fba;};return _0x6e08();}async function setActiveFeatureId(_0x298cd1){const _0x541ddb=_0x21c156,_0x4f0174={'GoBkR':function(_0x58a3c8){return _0x58a3c8();},'rpACs':function(_0x3e8e1f,_0x4e4a0d,_0x1e64f){return _0x3e8e1f(_0x4e4a0d,_0x1e64f);},'rqcyw':function(_0x5c794c,_0x1b6541,_0x242654,_0x2b0992){return _0x5c794c(_0x1b6541,_0x242654,_0x2b0992);},'fbqkB':_0x541ddb(0x1c8)},_0x2cd216=_0x4f0174['GoBkR'](getRangerDir),_0x52ced9=_0x4f0174['rpACs'](join,_0x2cd216,ACTIVE_FEATURE_FILE);!existsSync(_0x2cd216)&&await _0x4f0174[_0x541ddb(0x20e)](mkdir,_0x2cd216,{'recursive':!![]}),await _0x4f0174['rqcyw'](writeFile,_0x52ced9,_0x298cd1,_0x4f0174[_0x541ddb(0x1e8)]);}function getProgressDisplay(_0x1939a5){const _0x67f7ff=_0x21c156,_0x18a472={'RVjzE':function(_0x627fb2,_0x15db5a){return _0x627fb2+_0x15db5a;},'MpoET':function(_0x5a4139,_0x282a36){return _0x5a4139/_0x282a36;},'ctXaK':function(_0x4f5dfa,_0x12c8f2){return _0x4f5dfa+_0x12c8f2;},'TPJBq':function(_0x15f638,_0x2f4709){return _0x15f638>_0x2f4709;}},_0x53831b=_0x1939a5[_0x67f7ff(0x1d0)]||0x0,_0x26cf67=_0x1939a5[_0x67f7ff(0x183)]||0x0,_0x242560=_0x1939a5['blockedItems']||0x0,_0x3b0f11=_0x1939a5[_0x67f7ff(0x1a8)]||0x0,_0x54aada=_0x1939a5['pendingItems']||0x0,_0x480208=_0x18a472['RVjzE'](_0x18a472[_0x67f7ff(0x224)](_0x18a472['RVjzE'](_0x53831b+_0x26cf67,_0x242560),_0x3b0f11),_0x54aada);if(_0x480208===0x0)return'-';const _0xc791dc=0xa,_0x540ffb=Math['round'](_0x18a472['MpoET'](_0x53831b,_0x480208)*_0xc791dc),_0x5100b7=_0x18a472['ctXaK']('█'['repeat'](_0x540ffb),'░'[_0x67f7ff(0x230)](_0xc791dc-_0x540ffb)),_0x28336f=[];if(_0x242560>0x0)_0x28336f[_0x67f7ff(0x194)](_0x242560+'\x20blocked');if(_0x3b0f11>0x0)_0x28336f['push'](_0x3b0f11+'\x20incomplete');if(_0x26cf67>0x0)_0x28336f[_0x67f7ff(0x194)](_0x26cf67+'\x20in\x20progress');const _0x2cf969=_0x18a472[_0x67f7ff(0x210)](_0x28336f['length'],0x0)?'\x20('+_0x28336f['join'](',\x20')+')':'';return _0x5100b7+'\x20'+_0x53831b+'/'+_0x480208+_0x67f7ff(0x1c1)+_0x2cf969;}function getCurrentSessionItems(_0x10a9d3,_0x42c841){const _0x58291f=_0x21c156;if(!_0x10a9d3[_0x58291f(0x18c)])return _0x42c841[_0x58291f(0x181)](_0x41c256=>!_0x41c256[_0x58291f(0x1c2)]);return _0x42c841['filter'](_0xe5ddda=>_0xe5ddda['sessionId']===_0x10a9d3['currentSessionId']||!_0xe5ddda['sessionId']);}function displayFeature(_0x4231a9,_0x558467){const _0x4ac2e7=_0x21c156,_0x1e1a1b={'QLAOo':function(_0x430a0d,_0x6ddb39){return _0x430a0d<_0x6ddb39;},'sHVdp':function(_0x505bae,_0x596443){return _0x505bae===_0x596443;},'BZalG':_0x4ac2e7(0x196),'qfYgX':function(_0x235ba3,_0x4c8413){return _0x235ba3===_0x4c8413;},'BUzYi':'incomplete','OqZvU':function(_0x1598d4,_0x19834b){return _0x1598d4>_0x19834b;},'RLzmt':function(_0x2089ce,_0x236a95){return _0x2089ce!==_0x236a95;},'cozSa':function(_0x4b2738,_0x2f3c3e){return _0x4b2738!==_0x2f3c3e;},'bpszf':_0x4ac2e7(0x1db),'CjDTK':function(_0x550ca5,_0xf43bcd){return _0x550ca5===_0xf43bcd;},'CkKyi':function(_0x409e4f,_0x318083){return _0x409e4f===_0x318083;},'hfQej':function(_0x5e17f7,_0x4ef262){return _0x5e17f7===_0x4ef262;},'lKkar':_0x4ac2e7(0x17b)};console[_0x4ac2e7(0x1f2)]('\x0a'+_0x4231a9['name']+'\x20('+_0x4231a9['dashboardUrl']+')');_0x4231a9['stats']&&console[_0x4ac2e7(0x1f2)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x4231a9['stats']));_0x4231a9[_0x4ac2e7(0x215)]&&console['log']('\x20\x20\x20Description:\x20'+_0x4231a9['description']);_0x4231a9[_0x4ac2e7(0x205)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x4231a9[_0x4ac2e7(0x205)]);_0x4231a9['gitBranch']&&console[_0x4ac2e7(0x1f2)](_0x4ac2e7(0x1dd)+_0x4231a9[_0x4ac2e7(0x199)]);console[_0x4ac2e7(0x1f2)](_0x4ac2e7(0x236)+new Date(_0x4231a9['createdAt'])[_0x4ac2e7(0x1fd)]());_0x4231a9['completedAt']&&console[_0x4ac2e7(0x1f2)](_0x4ac2e7(0x228)+new Date(_0x4231a9[_0x4ac2e7(0x1ec)])['toLocaleString']());if(_0x558467&&_0x558467['length']>0x0){console[_0x4ac2e7(0x1f2)](_0x4ac2e7(0x165));for(let _0x50aef8=0x0;_0x1e1a1b[_0x4ac2e7(0x18f)](_0x50aef8,_0x558467[_0x4ac2e7(0x1f7)]);_0x50aef8++){const _0xdd81d6=_0x558467[_0x50aef8];let _0x33e621;if(_0x1e1a1b[_0x4ac2e7(0x161)](_0xdd81d6[_0x4ac2e7(0x223)],_0x1e1a1b[_0x4ac2e7(0x217)])&&_0xdd81d6['terminalReason']===_0x4ac2e7(0x17b))_0x33e621='✅';else{if(_0x1e1a1b['qfYgX'](_0xdd81d6[_0x4ac2e7(0x223)],_0x4ac2e7(0x177)))_0x33e621='🟢';else{if(_0xdd81d6[_0x4ac2e7(0x223)]===_0x1e1a1b[_0x4ac2e7(0x1b5)])_0x33e621='🟠';else{if(_0xdd81d6['status']===_0x4ac2e7(0x179))_0x33e621='🛑';else{if(_0xdd81d6[_0x4ac2e7(0x223)]==='closed')_0x33e621='⛔';else _0xdd81d6['status']==='verification_in_progress'?_0x33e621='⏳':_0x33e621='⬜';}}}}const _0x21c7d9=_0x1e1a1b[_0x4ac2e7(0x19c)](_0xdd81d6[_0x4ac2e7(0x227)],0x1)?'\x20(v'+_0xdd81d6['version']+')':'',_0x472d03=_0xdd81d6['version']>0x1&&_0xdd81d6['parentItemId']&&_0x1e1a1b[_0x4ac2e7(0x237)](_0xdd81d6['status'],_0x1e1a1b[_0x4ac2e7(0x217)])&&_0x1e1a1b[_0x4ac2e7(0x1f3)](_0xdd81d6['status'],'verified')?_0x1e1a1b['bpszf']:'';console['log']('\x20\x20\x20'+(_0x50aef8+0x1)+'.\x20'+_0x33e621+'\x20'+_0xdd81d6['description']+_0x21c7d9+_0x472d03);_0x1e1a1b['qfYgX'](_0xdd81d6['status'],_0x4ac2e7(0x179))&&_0xdd81d6['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0xdd81d6['blockedReason']);_0x1e1a1b['CjDTK'](_0xdd81d6[_0x4ac2e7(0x223)],_0x4ac2e7(0x21a))&&_0xdd81d6['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0xdd81d6[_0x4ac2e7(0x16d)]);if(_0x1e1a1b['CkKyi'](_0xdd81d6['status'],_0x1e1a1b['BZalG'])&&_0x1e1a1b['hfQej'](_0xdd81d6[_0x4ac2e7(0x1f5)],_0x1e1a1b['lKkar']))console[_0x4ac2e7(0x1f2)](_0x4ac2e7(0x1de));else _0xdd81d6['status']==='closed'&&_0xdd81d6['canceledReason']&&console[_0x4ac2e7(0x1f2)](_0x4ac2e7(0x1aa)+_0xdd81d6[_0x4ac2e7(0x15f)]);}}}export async function featureCreate(_0x152aa7,_0x4e8671){const _0x599597=_0x21c156,_0x581863={'bipeS':function(_0x5d530e){return _0x5d530e();},'rsUAv':function(_0x4430ce){return _0x4430ce();},'trGkH':function(_0x2c55b0,_0xcf95e0){return _0x2c55b0(_0xcf95e0);},'uXYPy':function(_0x40e086,_0x416468){return _0x40e086(_0x416468);},'HXukM':function(_0x2d2b41,_0x465622,_0x4a35d3){return _0x2d2b41(_0x465622,_0x4a35d3);}},{envNames:_0x56ffe5}=await getEnvNames();_0x56ffe5[_0x599597(0x1f7)]===0x0&&console[_0x599597(0x22e)]('\x0a'+formatProfileRequiredMessage(_0x32d2e7=>bold(_0x32d2e7)));const _0x5f4ce1=_0x4e8671[_0x599597(0x16c)]?_0x4e8671['scenarios'][_0x599597(0x19a)](_0x4f77a9=>_0x4f77a9['trim']()):[],_0x4a7311=_0x581863[_0x599597(0x184)](getGitRepoUrl),_0x196274=_0x581863['rsUAv'](getGitBranch);console[_0x599597(0x1f2)]('\x0aCreating\x20feature\x20review...');const _0x21ef71=await createFeature({'name':_0x152aa7,'description':_0x4e8671['description'],'checklist':_0x5f4ce1,'gitRepoUrl':_0x4a7311,'gitBranch':_0x196274});await _0x581863['trGkH'](setActiveFeatureId,_0x21ef71['id']),await _0x581863['uXYPy'](tryStartCurrentSession,_0x21ef71['id']);const _0x10d580=process[_0x599597(0x176)][_0x599597(0x1ef)];_0x10d580&&_0x581863[_0x599597(0x1b1)](registerSession,_0x10d580,_0x21ef71['id']),console['log'](_0x599597(0x222)+_0x21ef71['id']),displayFeature(_0x21ef71,_0x21ef71[_0x599597(0x1fa)]),console[_0x599597(0x1f2)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x3e37fe){const _0xdac523=_0x21c156,_0x350ea6={'EtgdZ':function(_0x26e88d,_0x374393){return _0x26e88d(_0x374393);},'kyGjf':_0xdac523(0x191),'LNtBm':function(_0x28458a,_0x4ac6ab){return _0x28458a>_0x4ac6ab;},'KHqGh':function(_0x210340,_0x1c858d){return _0x210340+_0x1c858d;},'CqRdH':function(_0x2c820c,_0x1bfa58){return _0x2c820c<_0x1bfa58;},'kfiVd':function(_0x45f34c,_0x1d4f3d){return _0x45f34c!==_0x1d4f3d;},'pYmsL':_0xdac523(0x1eb)},_0xddb9c3={'limit':_0x3e37fe['limit']??0xa,'offset':_0x3e37fe[_0xdac523(0x231)]??0x0,'includeDeleted':_0x3e37fe[_0xdac523(0x1e6)]};_0x3e37fe['currentBranch']&&(_0xddb9c3[_0xdac523(0x205)]=getGitRepoUrl(),_0xddb9c3[_0xdac523(0x199)]=getGitBranch());const _0x421071=await _0x350ea6[_0xdac523(0x1f6)](listFeatures,_0xddb9c3);if(_0x421071['items'][_0xdac523(0x1f7)]===0x0){console[_0xdac523(0x1f2)](_0x350ea6[_0xdac523(0x1d1)]);return;}const _0x3b216d=_0x350ea6['LNtBm'](_0x421071[_0xdac523(0x1d6)],_0x421071['items']['length'])?_0xdac523(0x174)+_0x421071[_0xdac523(0x1ac)]['length']+'\x20of\x20'+_0x421071['totalCount']:_0x421071[_0xdac523(0x1d6)]+_0xdac523(0x169);console['log']('\x0a'+_0x3b216d+':\x0a');for(const _0x1f61f9 of _0x421071[_0xdac523(0x1ac)]){const _0x1768d5='5|1|0|2|3|4'[_0xdac523(0x211)]('|');let _0x358976=0x0;while(!![]){switch(_0x1768d5[_0x358976++]){case'0':_0x1f61f9[_0xdac523(0x1f1)]&&console[_0xdac523(0x1f2)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1f61f9['stats']));continue;case'1':console[_0xdac523(0x1f2)](_0xdac523(0x1a7)+_0x1f61f9['id']);continue;case'2':_0x1f61f9[_0xdac523(0x199)]&&console[_0xdac523(0x1f2)]('\x20\x20\x20Branch:\x20'+_0x1f61f9[_0xdac523(0x199)]);continue;case'3':console[_0xdac523(0x1f2)](_0xdac523(0x236)+new Date(_0x1f61f9[_0xdac523(0x1e1)])[_0xdac523(0x201)]());continue;case'4':console['log']('');continue;case'5':console[_0xdac523(0x1f2)](''+_0x1f61f9[_0xdac523(0x186)]);continue;}break;}}const _0x17e8a2=_0xddb9c3[_0xdac523(0x1ed)]??0xa,_0x3d3c69=_0x350ea6['KHqGh'](_0xddb9c3['offset']??0x0,_0x421071['items'][_0xdac523(0x1f7)]);if(_0x350ea6[_0xdac523(0x206)](_0x3d3c69,_0x421071[_0xdac523(0x1d6)])){const _0x84974e=_0x350ea6['kfiVd'](_0x17e8a2,0xa)?'\x20--limit\x20'+_0x17e8a2:'',_0x5466f5=_0x3e37fe[_0xdac523(0x1c5)]?'\x20--current-branch':'',_0x409e5d=_0x3e37fe[_0xdac523(0x1e6)]?_0x350ea6[_0xdac523(0x1a4)]:'';console[_0xdac523(0x1f2)](_0xdac523(0x189)+_0x3d3c69+_0x84974e+_0x5466f5+_0x409e5d);}}function _0x3ce5(_0x326964,_0x253823){_0x326964=_0x326964-0x15a;const _0x6e0859=_0x6e08();let _0x3ce538=_0x6e0859[_0x326964];return _0x3ce538;}export async function featureShow(_0x317a72){const _0x26c50b=_0x21c156,_0x1bda61=_0x317a72||await getActiveFeatureId();if(!_0x1bda61)throw new Error(_0x26c50b(0x16a));const _0x572b35=await getFeature(_0x1bda61);displayFeature(_0x572b35,_0x572b35[_0x26c50b(0x1fa)]);}export async function featureResume(_0x2c3cbe){const _0x3119b5=_0x21c156,_0x958825={'phcaJ':function(_0x2f3d95,_0x159b46){return _0x2f3d95(_0x159b46);},'cJImO':function(_0x3957f8){return _0x3957f8();},'cHqBh':function(_0x2d936,_0x10c9ce){return _0x2d936!==_0x10c9ce;},'TNCTF':function(_0x42a97d){return _0x42a97d();},'gVEAO':function(_0x4fb9b2,_0x4a88ec){return _0x4fb9b2&&_0x4a88ec;},'rsjoR':_0x3119b5(0x1d2),'IFJMC':function(_0x41fc5b,_0x1e45f3){return _0x41fc5b||_0x1e45f3;},'XRDMZ':_0x3119b5(0x21f),'tGZMd':function(_0x416af6,_0x5208e3){return _0x416af6===_0x5208e3;},'ckSxM':_0x3119b5(0x20c),'lSgrs':function(_0x2951c5,_0x52179d){return _0x2951c5(_0x52179d);},'exBRU':'selected','jlkIO':function(_0x1d80ee,_0x2b940f,_0x3d4732){return _0x1d80ee(_0x2b940f,_0x3d4732);},'OKLQA':function(_0x14b697,_0x15a2d2){return _0x14b697(_0x15a2d2);},'CdqIV':function(_0xa82cce,_0xa14f01){return _0xa82cce(_0xa14f01);},'ZLbdc':function(_0x465105,_0xf5f01d,_0x417153){return _0x465105(_0xf5f01d,_0x417153);},'wZJuh':function(_0x2f939b,_0x1f5692,_0x3b3774){return _0x2f939b(_0x1f5692,_0x3b3774);}};if(_0x2c3cbe){const _0x2f35cb=await _0x958825[_0x3119b5(0x1b9)](getFeature,_0x2c3cbe);await setActiveFeatureId(_0x2f35cb['id']);const _0x835a09=_0x958825['cJImO'](getGitBranch);_0x835a09&&_0x958825[_0x3119b5(0x1ab)](_0x835a09,_0x2f35cb[_0x3119b5(0x199)])&&(await updateFeature(_0x2f35cb['id'],{'gitBranch':_0x835a09}),console['log'](_0x3119b5(0x1b0)+_0x835a09));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x2f35cb[_0x3119b5(0x186)]+'\x20('+_0x2f35cb['id']+')'),await tryStartCurrentSession(_0x2f35cb['id']);const _0x20a60f=process['env'][_0x3119b5(0x1ef)];_0x20a60f&®isterSession(_0x20a60f,_0x2f35cb['id']);displayFeature(_0x2f35cb,_0x2f35cb[_0x3119b5(0x1fa)]),await printFeedbackNudge(_0x2f35cb['id']);return;}const _0x32c1e6=_0x958825[_0x3119b5(0x1d5)](getGitRepoUrl),_0x3243c4=getGitBranch();if(_0x958825['gVEAO'](!_0x32c1e6,!_0x3243c4))throw new Error(_0x958825[_0x3119b5(0x1f9)]);console[_0x3119b5(0x1f2)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x958825[_0x3119b5(0x178)](_0x32c1e6,_0x958825[_0x3119b5(0x203)])+_0x3119b5(0x1a3)+(_0x3243c4||_0x958825[_0x3119b5(0x203)])+'...');const _0x449690=await listFeatures({'gitRepoUrl':_0x32c1e6,'gitBranch':_0x3243c4}),_0x46cda3=_0x449690['items']['filter'](_0x17b4ff=>!_0x17b4ff['completedAt']);if(_0x958825[_0x3119b5(0x1cf)](_0x46cda3['length'],0x0)){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console[_0x3119b5(0x1f2)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x2f3993;if(_0x46cda3[_0x3119b5(0x1f7)]===0x1)_0x2f3993=_0x46cda3[0x0];else{const _0x43056c=process[_0x3119b5(0x239)]['isTTY']&&process[_0x3119b5(0x1c7)]['isTTY'];if(!_0x43056c){console['log'](_0x958825['ckSxM']);for(const _0x2d35f6 of _0x46cda3){console['log']('\x20\x20'+_0x2d35f6[_0x3119b5(0x186)]),console['log']('\x20\x20\x20\x20\x20ID:\x20'+_0x2d35f6['id']),_0x2d35f6['stats']&&console[_0x3119b5(0x1f2)]('\x20\x20\x20\x20\x20Progress:\x20'+_0x958825['lSgrs'](getProgressDisplay,_0x2d35f6['stats'])),_0x2d35f6[_0x3119b5(0x199)]&&console[_0x3119b5(0x1f2)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x2d35f6['gitBranch']);}throw new Error(_0x3119b5(0x1ee));}const {selected:_0x4bcb12}=await _0x384464[_0x3119b5(0x1af)]([{'type':'list','name':_0x958825[_0x3119b5(0x1e0)],'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x46cda3[_0x3119b5(0x19a)](_0x5dcbaa=>({'name':_0x5dcbaa['name']+'\x20('+_0x5dcbaa['id']+')','value':_0x5dcbaa['id']}))}]);_0x2f3993=_0x46cda3['find'](_0x4c0043=>_0x4c0043['id']===_0x4bcb12);}await setActiveFeatureId(_0x2f3993['id']);_0x3243c4&&_0x3243c4!==_0x2f3993['gitBranch']&&(await _0x958825[_0x3119b5(0x18a)](updateFeature,_0x2f3993['id'],{'gitBranch':_0x3243c4}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3243c4));console[_0x3119b5(0x1f2)](_0x3119b5(0x238)+_0x2f3993['name']+'\x20('+_0x2f3993['id']+')'),await _0x958825['OKLQA'](tryStartCurrentSession,_0x2f3993['id']);const _0x5620bc=await _0x958825['CdqIV'](getFeature,_0x2f3993['id']),_0xa338e1=process['env'][_0x3119b5(0x1ef)];_0xa338e1&&_0x958825[_0x3119b5(0x192)](registerSession,_0xa338e1,_0x5620bc['id']),_0x958825[_0x3119b5(0x1cd)](displayFeature,_0x5620bc,_0x5620bc[_0x3119b5(0x1fa)]),await _0x958825[_0x3119b5(0x19e)](printFeedbackNudge,_0x5620bc['id']);}async function printFeedbackNudge(_0x1584b0){const _0x18c183=_0x21c156,_0x4a4051={'EpBfa':function(_0x55d8dd,_0x1d1bbe){return _0x55d8dd(_0x1d1bbe);},'yOOEn':function(_0x1f729c,_0x392b97){return _0x1f729c>_0x392b97;}};try{const {items:_0x3d2942}=await _0x4a4051['EpBfa'](getActionItems,_0x1584b0);let _0x2fdd76=0x0,_0x1aa4ef=0x0;for(const _0x2d88e5 of _0x3d2942){const _0x3bf8ff=await getItemFeedback(_0x1584b0,_0x2d88e5['id']);_0x4a4051[_0x18c183(0x1f4)](_0x3bf8ff[_0x18c183(0x15d)][_0x18c183(0x1f7)],0x0)&&(_0x2fdd76+=_0x3bf8ff['unaddressedComments'][_0x18c183(0x1f7)],_0x1aa4ef++);}_0x4a4051['yOOEn'](_0x2fdd76,0x0)&&(console['log'](_0x18c183(0x218)+_0x2fdd76+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x1aa4ef+'\x20scenario(s).'),console['log'](_0x18c183(0x1d9)));}catch{}}async function tryStartCurrentSession(_0x938675){const _0x222c6a=_0x21c156;try{const {sessions:_0x2e155f}=await listFeatureSessions(_0x938675),_0x100461=_0x2e155f[_0x222c6a(0x175)](_0x53a61f=>_0x53a61f[_0x222c6a(0x223)]===_0x222c6a(0x200));_0x100461&&(await startSession(_0x938675,_0x100461['id']),console['log'](_0x222c6a(0x187)+_0x100461['iteration']));}catch{}}export async function featureReport(_0x449e22,_0x321865){const _0x3729ff=_0x21c156,_0x50f01c={'wXRxk':function(_0x1aa994){return _0x1aa994();},'bQqjx':_0x3729ff(0x15c),'KxIyH':'\x0aGenerating\x20report...','UXKCz':function(_0xe208ea,_0x39f564,_0x1876ae,_0x6cfa17){return _0xe208ea(_0x39f564,_0x1876ae,_0x6cfa17);},'jZnDi':function(_0x10e070){return _0x10e070();},'FjHyQ':'reports','XExjK':function(_0x512200,_0x408eb6,_0x516bdb){return _0x512200(_0x408eb6,_0x516bdb);}},_0x1c9be0=_0x449e22||await _0x50f01c[_0x3729ff(0x22a)](getActiveFeatureId);if(!_0x1c9be0)throw new Error(_0x50f01c[_0x3729ff(0x15b)]);console['log'](_0x50f01c['KxIyH']);const _0x1ad94e=await getFeatureReportMarkdown(_0x1c9be0,{'style':_0x321865[_0x3729ff(0x235)]}),_0x47b705=_0x321865[_0x3729ff(0x1c3)]||_0x50f01c[_0x3729ff(0x1a0)](join,_0x50f01c[_0x3729ff(0x1a2)](getRangerDir),_0x50f01c[_0x3729ff(0x15e)],_0x1c9be0+'.md'),_0x5d99b2=_0x50f01c['XExjK'](join,_0x47b705,'..');!existsSync(_0x5d99b2)&&await mkdir(_0x5d99b2,{'recursive':!![]}),await _0x50f01c[_0x3729ff(0x1a0)](writeFile,_0x47b705,_0x1ad94e,'utf-8'),console[_0x3729ff(0x1f2)](_0x3729ff(0x19b)+_0x47b705);}function getScenarioResult(_0x175609){const _0x122a39=_0x21c156,_0x132e58={'qWPfZ':function(_0x409915,_0x5219e9){return _0x409915===_0x5219e9;},'rlsuF':'closed'};if(_0x132e58['qWPfZ'](_0x175609['status'],_0x132e58[_0x122a39(0x172)]))return _0x175609[_0x122a39(0x1f5)]??_0x132e58[_0x122a39(0x172)];if(_0x132e58[_0x122a39(0x21d)](_0x175609['status'],_0x122a39(0x214)))return'in_progress';return _0x175609['status'];}function getScenarioRationale(_0xed8a08,_0x2eb7bc){const _0x1d44e4=_0x21c156;if(_0x2eb7bc)return _0x2eb7bc;if(_0xed8a08['blockedReason'])return _0xed8a08[_0x1d44e4(0x171)];if(_0xed8a08['incompleteReason'])return _0xed8a08[_0x1d44e4(0x16d)];if(_0xed8a08[_0x1d44e4(0x15f)])return _0xed8a08[_0x1d44e4(0x15f)];if(_0xed8a08['notes'])return _0xed8a08['notes'];return null;}export async function featureReportPrDescription(_0x299907,_0x1b8ecb){const _0x39cf75=_0x21c156,_0x2afc0a={'Yynmc':function(_0x4e3fb9){return _0x4e3fb9();},'iuRfD':function(_0x1ad9df,_0x4aa59e){return _0x1ad9df(_0x4aa59e);},'xFaHw':function(_0x28e840,_0xb41efe,_0x39604c){return _0x28e840(_0xb41efe,_0x39604c);},'MCpUc':function(_0x6b5c07,_0x11ec7c){return _0x6b5c07===_0x11ec7c;},'CagPG':_0x39cf75(0x1fe),'UFnqH':_0x39cf75(0x1a6),'SZGMA':function(_0x54fab2,_0xbbfb5d){return _0x54fab2<_0xbbfb5d;},'jfgid':_0x39cf75(0x1b8),'Lazvv':function(_0x5984fc,_0x207dbf,_0x428fca,_0xd8724c){return _0x5984fc(_0x207dbf,_0x428fca,_0xd8724c);}},_0x3280c9=_0x299907||await _0x2afc0a[_0x39cf75(0x1da)](getActiveFeatureId);if(!_0x3280c9)throw new Error(_0x39cf75(0x15c));const _0x50d474=await _0x2afc0a[_0x39cf75(0x17e)](getFeature,_0x3280c9),_0x78b7df=_0x50d474[_0x39cf75(0x1fa)]||[],_0x4b5f45=_0x2afc0a[_0x39cf75(0x232)](getCurrentSessionItems,_0x50d474,_0x78b7df);_0x2afc0a[_0x39cf75(0x193)](_0x4b5f45[_0x39cf75(0x1f7)],0x0)&&(console['error'](_0x2afc0a[_0x39cf75(0x20d)]),process[_0x39cf75(0x1e7)](0x1));const _0x1e1da8=_0x1b8ecb[_0x39cf75(0x1c0)]??[],_0x4c3d9c=_0x1e1da8['filter'](_0x51e3cf=>!Number[_0x39cf75(0x1a9)](_0x51e3cf)||_0x51e3cf<0x1||_0x51e3cf>_0x4b5f45[_0x39cf75(0x1f7)]);if(_0x4c3d9c[_0x39cf75(0x1f7)]>0x0){console[_0x39cf75(0x182)](_0x39cf75(0x1bc)+_0x4c3d9c['join'](',\x20')),console[_0x39cf75(0x1f2)](_0x2afc0a['UFnqH']);for(let _0x21e86f=0x0;_0x2afc0a[_0x39cf75(0x1e3)](_0x21e86f,_0x4b5f45['length']);_0x21e86f++){console[_0x39cf75(0x1f2)]('\x20\x20'+(_0x21e86f+0x1)+'.\x20'+_0x4b5f45[_0x21e86f][_0x39cf75(0x215)]);}process[_0x39cf75(0x1e7)](0x1);}const _0x44ad96=new Set(_0x1e1da8[_0x39cf75(0x19a)](_0x24203e=>_0x24203e-0x1)),_0x56f301=_0x4b5f45[_0x39cf75(0x181)]((_0xd8d6df,_0x29123b)=>!_0x44ad96['has'](_0x29123b));_0x2afc0a[_0x39cf75(0x193)](_0x56f301[_0x39cf75(0x1f7)],0x0)&&(console[_0x39cf75(0x182)](_0x2afc0a[_0x39cf75(0x185)]),process[_0x39cf75(0x1e7)](0x1));if(_0x1b8ecb['json'])await _0x2afc0a[_0x39cf75(0x1a1)](outputJsonReport,_0x3280c9,_0x50d474,_0x56f301);else{const _0x275403=await _0x2afc0a[_0x39cf75(0x232)](getFeatureReportMarkdown,_0x3280c9,{'itemIds':_0x56f301[_0x39cf75(0x19a)](_0x346a65=>_0x346a65['id'])});process['stdout']['write'](_0x275403['trimEnd']()+'\x0a');}}async function outputJsonReport(_0xe32fdb,_0x25536b,_0xb5a564){const _0x19eafb=_0x21c156,_0x13add5={'WnDCN':function(_0xe7b663,_0x584746){return _0xe7b663(_0x584746);},'bDEyD':function(_0x4e0494,_0x14a3ae){return _0x4e0494===_0x14a3ae;},'NlmTi':function(_0x4ec60c,_0x5ea52f,_0x11f7c3){return _0x4ec60c(_0x5ea52f,_0x11f7c3);},'uwSxS':function(_0x3cf230){return _0x3cf230();},'kVUSp':function(_0x1eec13,_0x5c1e6c){return _0x1eec13(_0x5c1e6c);}},_0x2a2fcc=_0x13add5[_0x19eafb(0x16b)](getApiBaseUrl),_0x129814=await _0x13add5['kVUSp'](getFeatureReport,_0xe32fdb),_0x5d0338=new Map(_0x129814['checklistItems'][_0x19eafb(0x19a)](_0x49ea98=>[_0x49ea98['id'],_0x49ea98])),_0xdcb1b1=await Promise[_0x19eafb(0x18d)](_0xb5a564['map'](async _0x23d834=>{const _0x54742e=_0x19eafb,_0x20088e=_0x5d0338[_0x54742e(0x1c9)](_0x23d834['id']),_0x7ec2c4=_0x20088e?.[_0x54742e(0x229)]??null;let _0x445027=[];if(_0x23d834[_0x54742e(0x1d7)])try{const {steps:_0x541bca}=await _0x13add5[_0x54742e(0x1a5)](getBrowserSessionSteps,_0x23d834[_0x54742e(0x1d7)]);_0x541bca[_0x54742e(0x1f7)]>0x0&&(_0x445027=_0x541bca['map'](_0x4f412e=>{const _0x4f2bfd=_0x54742e,_0x524e31=_0x4f412e[_0x4f2bfd(0x1df)]['find'](_0x2d48f4=>_0x2d48f4[_0x4f2bfd(0x207)]==='screenshot'&&_0x2d48f4[_0x4f2bfd(0x226)]==='after')??_0x4f412e[_0x4f2bfd(0x1df)][_0x4f2bfd(0x175)](_0x3ef734=>_0x3ef734[_0x4f2bfd(0x207)]==='screenshot');let _0x1df32d=null,_0x3575da=null;if(_0x524e31){const _0x36b1b8=_0x524e31['storage'][_0x4f2bfd(0x225)][_0x4f2bfd(0x211)]('/')['pop']();_0x1df32d=_0x2a2fcc+_0x4f2bfd(0x220)+_0x23d834['browserSessionId']+_0x4f2bfd(0x18e)+_0x36b1b8,_0x36b1b8&&(_0x3575da=_0x36b1b8['replace'](/\.\w+$/,'')[_0x4f2bfd(0x1ce)](/^(key_)?\d+_/,'')[_0x4f2bfd(0x1ce)](/[-_]/g,'\x20'));}return{'description':_0x3575da||_0x4f412e[_0x4f2bfd(0x215)]||_0x4f412e['stepName']||'Step\x20'+_0x4f412e[_0x4f2bfd(0x21c)],'screenshot':_0x1df32d,'is_key_step':_0x4f412e[_0x4f2bfd(0x190)]};}));}catch{}return _0x13add5[_0x54742e(0x19d)](_0x445027[_0x54742e(0x1f7)],0x0)&&_0x7ec2c4?.['screenshotUrls']&&(_0x445027=_0x7ec2c4[_0x54742e(0x1f0)][_0x54742e(0x19a)]((_0x447419,_0xabaa0a)=>({'description':'Screenshot\x20'+(_0xabaa0a+0x1),'screenshot':_0x447419,'is_key_step':![]}))),{'description':_0x23d834[_0x54742e(0x215)],'result':getScenarioResult(_0x23d834),'rationale':_0x13add5['NlmTi'](getScenarioRationale,_0x23d834,_0x7ec2c4?.[_0x54742e(0x168)]),'steps':_0x445027};})),_0x32587d={'url':_0x25536b['dashboardUrl'],'scenarios':_0xdcb1b1};process['stdout']['write'](JSON[_0x19eafb(0x204)](_0x32587d,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x5603cc){const _0x49bf56=_0x21c156,_0x5e6572={'nDRmw':function(_0x476b9e){return _0x476b9e();},'bcFbm':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','MCNoX':function(_0x223ba8,_0x475efe){return _0x223ba8(_0x475efe);},'RItED':_0x49bf56(0x1b2),'mRzxF':_0x49bf56(0x188),'mwkgx':'\x0aConcluding\x20session...','HlRbF':function(_0xb30467,_0x47886d,_0x5e7a0b){return _0xb30467(_0x47886d,_0x5e7a0b);}},_0x151d5d=_0x5603cc||await _0x5e6572['nDRmw'](getActiveFeatureId);if(!_0x151d5d)throw new Error(_0x5e6572['bcFbm']);const _0xabe294=await getFeature(_0x151d5d);if(!_0xabe294[_0x49bf56(0x18c)])throw new Error(_0x49bf56(0x166));const {sessions:_0x2ce89b}=await _0x5e6572[_0x49bf56(0x1fc)](listFeatureSessions,_0x151d5d),_0x58a4db=_0x2ce89b['find'](_0x1fe890=>_0x1fe890['id']===_0xabe294['currentSessionId']);if(!_0x58a4db)throw new Error(_0x5e6572['RItED']);if(_0x58a4db['status']===_0x5e6572['mRzxF']){console['log']('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x58a4db[_0x49bf56(0x223)]!=='in_progress')throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x58a4db['status']);console[_0x49bf56(0x1f2)](_0x5e6572[_0x49bf56(0x173)]),await _0x5e6572['HlRbF'](concludeSession,_0x151d5d,_0xabe294['currentSessionId']),console[_0x49bf56(0x1f2)]('\x0a✅\x20Session\x20'+_0x58a4db[_0x49bf56(0x18b)]+_0x49bf56(0x198)),console['log'](_0x49bf56(0x1e5));}export async function featureSessions(_0x2d19ee){const _0x144b36=_0x21c156,_0x26246d={'rhHMP':_0x144b36(0x15c),'woRir':function(_0x2a4036,_0x15ec69){return _0x2a4036(_0x15ec69);},'baWSG':function(_0x51b0ab,_0x51f6ed){return _0x51b0ab(_0x51f6ed);},'jxjDp':function(_0x1c3a41,_0x20c00e){return _0x1c3a41===_0x20c00e;},'kiWmC':_0x144b36(0x1cb)},_0xb4b35=_0x2d19ee||await getActiveFeatureId();if(!_0xb4b35)throw new Error(_0x26246d['rhHMP']);const _0x4f3657=await _0x26246d[_0x144b36(0x19f)](getFeature,_0xb4b35);console[_0x144b36(0x1f2)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x4f3657[_0x144b36(0x186)]+'\x0a');const {sessions:_0x147d7c}=await _0x26246d['baWSG'](listFeatureSessions,_0xb4b35);if(_0x26246d['jxjDp'](_0x147d7c[_0x144b36(0x1f7)],0x0)){console['log'](_0x26246d['kiWmC']);return;}for(const _0x461893 of _0x147d7c){const _0x32ba4e=_0x26246d[_0x144b36(0x1ea)](_0x461893[_0x144b36(0x223)],'completed')?'✅':_0x461893[_0x144b36(0x223)]==='in_progress'?'🔄':'▶️';console['log'](_0x32ba4e+'\x20Session\x20'+_0x461893[_0x144b36(0x18b)]+'\x20('+_0x461893['id']+')'),console[_0x144b36(0x1f2)]('\x20\x20\x20Status:\x20'+_0x461893['status']),console[_0x144b36(0x1f2)]('\x20\x20\x20Created:\x20'+new Date(_0x461893[_0x144b36(0x1e1)])['toLocaleString']()),_0x461893[_0x144b36(0x1ec)]&&console[_0x144b36(0x1f2)](_0x144b36(0x228)+new Date(_0x461893[_0x144b36(0x1ec)])['toLocaleString']()),console[_0x144b36(0x1f2)]('');}}export async function featureAddScenario(_0x22fc85,_0xff365d){const _0x5d353d=_0x21c156,_0x240137={'OMaiv':function(_0x57b8b6,_0x38fd5a,_0x132166){return _0x57b8b6(_0x38fd5a,_0x132166);},'QKmMi':function(_0x3af20c,_0x5af8f8,_0x4e0dba){return _0x3af20c(_0x5af8f8,_0x4e0dba);}},_0x20a9d0=_0xff365d||await getActiveFeatureId();if(!_0x20a9d0)throw new Error(_0x5d353d(0x16a));const _0x10dec9=await getFeature(_0x20a9d0);if(_0x10dec9[_0x5d353d(0x1ad)]&&!_0x10dec9['latestReview']['submittedAt'])throw new Error(_0x5d353d(0x21b)+_0x10dec9[_0x5d353d(0x1e4)]);await _0x240137[_0x5d353d(0x1ba)](createChecklistItem,_0x20a9d0,_0x22fc85);const _0xf7b402=await getFeature(_0x20a9d0);console['log'](_0x5d353d(0x1fb)),_0x240137[_0x5d353d(0x208)](displayFeature,_0xf7b402,_0xf7b402['checklistItems']);}export async function featureEditScenario(_0x381b15,_0x363afa){const _0x5fafec=_0x21c156,_0x168f1e={'OSLFu':function(_0x5e28a2){return _0x5e28a2();},'hPqGn':'\x0aAvailable\x20scenarios:','BVZnh':function(_0x52d717,_0x4be768){return _0x52d717<_0x4be768;},'rdnSb':function(_0x37e672,_0x2adb7b){return _0x37e672-_0x2adb7b;},'BNxaO':function(_0x5981ec,_0x1c847f){return _0x5981ec>=_0x1c847f;},'uNZRX':function(_0xd2d4f6,_0x5287fc){return _0xd2d4f6+_0x5287fc;},'yYOEN':function(_0x15a898,_0x39d3a4,_0x1fd65a,_0xcd7856){return _0x15a898(_0x39d3a4,_0x1fd65a,_0xcd7856);}},_0x426df0=_0x363afa['id']||await _0x168f1e[_0x5fafec(0x1c4)](getActiveFeatureId);!_0x426df0&&(console[_0x5fafec(0x182)](_0x5fafec(0x1ff)),console[_0x5fafec(0x182)](_0x5fafec(0x1e9)),process['exit'](0x1));const _0x5900f9=await getFeature(_0x426df0);_0x5900f9['latestReview']&&!_0x5900f9[_0x5fafec(0x1ad)][_0x5fafec(0x17f)]&&(console[_0x5fafec(0x182)](_0x5fafec(0x1d4)),console[_0x5fafec(0x182)]('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x5900f9[_0x5fafec(0x1e4)]),process[_0x5fafec(0x1e7)](0x1));const _0x453e06=_0x5900f9[_0x5fafec(0x1fa)]||[];_0x453e06[_0x5fafec(0x1f7)]===0x0&&(console[_0x5fafec(0x182)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x363afa['scenario']===undefined){console[_0x5fafec(0x182)](_0x5fafec(0x16f)),console['log'](_0x168f1e['hPqGn']);for(let _0xfe5912=0x0;_0x168f1e[_0x5fafec(0x180)](_0xfe5912,_0x453e06['length']);_0xfe5912++){console[_0x5fafec(0x1f2)]('\x20\x20'+(_0xfe5912+0x1)+'.\x20'+_0x453e06[_0xfe5912]['description']);}process['exit'](0x1);}const _0xdf6614=_0x168f1e[_0x5fafec(0x20f)](_0x363afa[_0x5fafec(0x17c)],0x1);if(_0x168f1e['BVZnh'](_0xdf6614,0x0)||_0x168f1e[_0x5fafec(0x20a)](_0xdf6614,_0x453e06[_0x5fafec(0x1f7)])){console[_0x5fafec(0x182)](_0x5fafec(0x170)+_0x363afa['scenario']+_0x5fafec(0x16e)+_0x453e06['length']+_0x5fafec(0x1cc)),console['log'](_0x5fafec(0x1a6));for(let _0x2307ee=0x0;_0x168f1e[_0x5fafec(0x180)](_0x2307ee,_0x453e06['length']);_0x2307ee++){console[_0x5fafec(0x1f2)]('\x20\x20'+_0x168f1e['uNZRX'](_0x2307ee,0x1)+'.\x20'+_0x453e06[_0x2307ee][_0x5fafec(0x215)]);}process[_0x5fafec(0x1e7)](0x1);}const _0x2cd803=_0x453e06[_0xdf6614];await _0x168f1e['yYOEN'](updateChecklistItem,_0x426df0,_0x2cd803['id'],{'description':_0x381b15});const _0x19bfbc=await getFeature(_0x426df0);console['log'](_0x5fafec(0x233)),displayFeature(_0x19bfbc,_0x19bfbc[_0x5fafec(0x1fa)]);}async function downloadFeedbackImage(_0x220778,_0x516a66){const _0x171561=_0x21c156,_0x181270={'OmKia':function(_0xff4b5a,_0x571719,_0x512b25){return _0xff4b5a(_0x571719,_0x512b25);},'YuJVk':function(_0x34f45a){return _0x34f45a();},'PZqTe':'feedback-images','pADsz':function(_0x5bac45,_0x34a724){return _0x5bac45(_0x34a724);},'MTEvP':function(_0x13352b,_0x4a137d,_0x454775){return _0x13352b(_0x4a137d,_0x454775);}};try{const _0x18c8e6=_0x181270['OmKia'](join,_0x181270[_0x171561(0x17a)](getRangerDir),_0x181270['PZqTe']);await mkdir(_0x18c8e6,{'recursive':!![]});const _0x26eddc=join(_0x18c8e6,'comment_'+_0x516a66+'.png'),_0x54a449=await _0x181270['pADsz'](fetch,_0x220778);if(!_0x54a449['ok'])return null;const _0x347e1b=Buffer['from'](await _0x54a449['arrayBuffer']());return await _0x181270['MTEvP'](writeFile,_0x26eddc,_0x347e1b),_0x26eddc;}catch{return null;}}export async function featureGetReview(_0x45ac73){const _0x5eab94=_0x21c156,_0x25f38b={'LZrDb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ArcxP':function(_0x3c9290,_0x47851a){return _0x3c9290===_0x47851a;},'bdbUH':function(_0x3e89d9,_0x2c4555){return _0x3e89d9<_0x2c4555;},'LBrzg':function(_0x18e475,_0x2c0d71){return _0x18e475>_0x2c0d71;},'OXbJV':'short','pjOBP':_0x5eab94(0x162),'ndhGs':'Unknown','XIlbK':function(_0x1f5a75,_0x2ca775,_0x492134){return _0x1f5a75(_0x2ca775,_0x492134);},'NGniQ':'element','ovHLi':_0x5eab94(0x197),'OCHSi':function(_0xaaf7ae,_0x365d06){return _0xaaf7ae+_0x365d06;}},_0x59cae3=_0x45ac73||await getActiveFeatureId();if(!_0x59cae3)throw new Error(_0x25f38b[_0x5eab94(0x1dc)]);const _0x50ebb7=await getFeature(_0x59cae3),{items:_0x606444}=await getActionItems(_0x59cae3);console[_0x5eab94(0x1f2)]('\x0a📋\x20Feedback\x20for:\x20'+_0x50ebb7['name']+'\x20('+_0x50ebb7['id']+')\x0a');if(_0x25f38b['ArcxP'](_0x606444[_0x5eab94(0x1f7)],0x0)){console[_0x5eab94(0x1f2)]('No\x20scenarios\x20found.');return;}for(let _0x57ef96=0x0;_0x25f38b['bdbUH'](_0x57ef96,_0x606444['length']);_0x57ef96++){const _0x34d7ab=_0x606444[_0x57ef96],_0x410d34=_0x25f38b['LBrzg'](_0x34d7ab[_0x5eab94(0x227)],0x1)?_0x5eab94(0x212)+_0x34d7ab[_0x5eab94(0x227)]+')':'',_0x4e5a76=await getItemFeedback(_0x59cae3,_0x34d7ab['id']);if(_0x4e5a76['unaddressedComments'][_0x5eab94(0x1f7)]>0x0){console['log'](_0x5eab94(0x1b7)+(_0x57ef96+0x1)+_0x5eab94(0x1bd)+_0x34d7ab[_0x5eab94(0x215)]+'\x22'+_0x410d34+'\x20—\x20'+_0x4e5a76['unaddressedComments']['length']+_0x5eab94(0x1b3));for(const _0x4cc51f of _0x4e5a76['unaddressedComments']){const _0x5cacad=new Date(_0x4cc51f[_0x5eab94(0x1e1)])[_0x5eab94(0x201)]('en-US',{'month':_0x25f38b['OXbJV'],'day':_0x25f38b[_0x5eab94(0x1b6)]}),_0x3c04d1=_0x4cc51f[_0x5eab94(0x22d)]||_0x4cc51f['authorEmail']||_0x25f38b['ndhGs'];console['log']('\x20\x20💬\x20'+_0x3c04d1+'\x20('+_0x5cacad+'):\x20\x22'+_0x4cc51f['content']+'\x22');if(_0x4cc51f[_0x5eab94(0x1bb)]){const _0x34fc20=await _0x25f38b['XIlbK'](downloadFeedbackImage,_0x4cc51f['assetUrl'],_0x4cc51f['id']);_0x34fc20&&console[_0x5eab94(0x1f2)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x34fc20);}if(_0x4cc51f['domRef']){const _0xa6a340=_0x4cc51f[_0x5eab94(0x21e)]['selector'][_0x5eab94(0x211)](_0x5eab94(0x1d8))[_0x5eab94(0x234)]()?.[_0x5eab94(0x211)](':')[0x0]||_0x25f38b[_0x5eab94(0x1be)],_0x39574c=_0x4cc51f['domRef']['textContent']?'\x20\x22'+_0x4cc51f['domRef']['textContent'][_0x5eab94(0x163)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0xa6a340+'>'+_0x39574c),console[_0x5eab94(0x1f2)](_0x5eab94(0x17d)+_0x4cc51f['domRef']['selector']);}else{if(_0x4cc51f[_0x5eab94(0x1b4)]){const _0x216af0=_0x4cc51f['spatial'][_0x5eab94(0x22b)];_0x4cc51f['spatial'][_0x5eab94(0x221)]===_0x25f38b['ovHLi']&&_0x216af0[_0x5eab94(0x1f7)]>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x216af0[0x0]['toFixed'](0x2)+',\x20'+_0x216af0[0x1][_0x5eab94(0x167)](0x2)+')'):console[_0x5eab94(0x1f2)](_0x5eab94(0x164)+_0x4cc51f['spatial']['type']+'\x20at\x20['+_0x216af0[_0x5eab94(0x19a)](_0x3f6d66=>_0x3f6d66[_0x5eab94(0x167)](0x2))[_0x5eab94(0x1ae)](',\x20')+']');}}}if(_0x4e5a76[_0x5eab94(0x22c)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x28b881 of _0x4e5a76['canonicalFlow'][_0x5eab94(0x211)]('\x0a')){console['log']('\x20\x20\x20\x20'+_0x28b881);}}}else console['log'](_0x5eab94(0x1b7)+_0x25f38b['OCHSi'](_0x57ef96,0x1)+_0x5eab94(0x1bd)+_0x34d7ab[_0x5eab94(0x215)]+'\x22'+_0x410d34+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x5eab94(0x1f2)]('');}}export async function featureDelete(_0x58bdc3){const _0x3d8d3f=_0x21c156,_0x5d0747={'tyxmG':function(_0x5d4e64,_0x5c9e7d){return _0x5d4e64(_0x5c9e7d);},'YFKmR':function(_0x454301,_0x5bc47e){return _0x454301+_0x5bc47e;},'XTrfp':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x548dfe=_0x58bdc3||await getActiveFeatureId();if(!_0x548dfe)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 _0x244153=await _0x5d0747[_0x3d8d3f(0x1c6)](getFeature,_0x548dfe);await _0x5d0747[_0x3d8d3f(0x1c6)](softDeleteFeature,_0x548dfe),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x244153[_0x3d8d3f(0x186)]+'\x20('+_0x548dfe+')'),console[_0x3d8d3f(0x1f2)](_0x5d0747[_0x3d8d3f(0x1e2)](_0x5d0747['XTrfp'],_0x548dfe));}export async function featureRestore(_0x50c56c){const _0x3e8695=_0x21c156,_0x563029={'pZRkU':function(_0x3e4277,_0x2b46d8){return _0x3e4277(_0x2b46d8);}};await _0x563029['pZRkU'](restoreFeature,_0x50c56c);const _0x2cfc63=await getFeature(_0x50c56c);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x2cfc63[_0x3e8695(0x186)]+'\x20('+_0x50c56c+')'),displayFeature(_0x2cfc63,_0x2cfc63['checklistItems']);}
|
|
1
|
+
const _0xfecff9=_0x356a;(function(_0x53562f,_0x495ba4){const _0x2e9785=_0x356a,_0x46fd72=_0x53562f();while(!![]){try{const _0x43e128=parseInt(_0x2e9785(0x1a0))/0x1*(-parseInt(_0x2e9785(0x19a))/0x2)+parseInt(_0x2e9785(0x1c1))/0x3+parseInt(_0x2e9785(0x151))/0x4*(parseInt(_0x2e9785(0x1aa))/0x5)+-parseInt(_0x2e9785(0x192))/0x6*(-parseInt(_0x2e9785(0x169))/0x7)+-parseInt(_0x2e9785(0x14e))/0x8+-parseInt(_0x2e9785(0x190))/0x9+parseInt(_0x2e9785(0x14b))/0xa*(parseInt(_0x2e9785(0x170))/0xb);if(_0x43e128===_0x495ba4)break;else _0x46fd72['push'](_0x46fd72['shift']());}catch(_0x478b30){_0x46fd72['push'](_0x46fd72['shift']());}}}(_0x494a,0xc3442));import{readFile,writeFile,mkdir}from'fs/promises';function _0x356a(_0xcc5319,_0x1db511){_0xcc5319=_0xcc5319-0x121;const _0x494a65=_0x494a();let _0x356a6d=_0x494a65[_0xcc5319];return _0x356a6d;}import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x48efea 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=_0x3f4a2f=>'\x1b[1m'+_0x3f4a2f+_0xfecff9(0x1c3);function getGitRepoUrl(){const _0x36b6eb=_0xfecff9,_0x4e60ef={'EoNVu':function(_0x5194da,_0x54e750,_0x1a7782){return _0x5194da(_0x54e750,_0x1a7782);},'hBHZB':'git\x20remote\x20get-url\x20origin','kwvdT':'utf-8','ZPQmB':_0x36b6eb(0x1e6)};try{const _0x286ac9=_0x4e60ef['EoNVu'](execSync,_0x4e60ef[_0x36b6eb(0x143)],{'encoding':_0x4e60ef['kwvdT'],'stdio':[_0x4e60ef['ZPQmB'],_0x4e60ef[_0x36b6eb(0x1bd)],_0x4e60ef[_0x36b6eb(0x1bd)]]})['trim']();return _0x286ac9['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x36b6eb(0x166))[_0x36b6eb(0x1cd)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xc4403c=_0xfecff9,_0xcda4d0={'rRhVO':function(_0x14baf1,_0x1f2b99,_0x521a3a){return _0x14baf1(_0x1f2b99,_0x521a3a);},'fOOcb':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','mFtnV':'pipe'};try{return _0xcda4d0[_0xc4403c(0x18d)](execSync,_0xcda4d0['fOOcb'],{'encoding':_0xc4403c(0x1fd),'stdio':[_0xc4403c(0x1e6),_0xcda4d0[_0xc4403c(0x1ca)],'pipe']})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x549cff=_0xfecff9,_0x2b9d23={'NNYtQ':function(_0x1985b8,_0x58c180,_0x35ab08){return _0x1985b8(_0x58c180,_0x35ab08);}},_0xe3e44=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0xe3e44))return null;try{const _0x1f72f5=await _0x2b9d23['NNYtQ'](readFile,_0xe3e44,_0x549cff(0x1fd));return _0x1f72f5['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0xfbbf8e){const _0x2c9316=_0xfecff9,_0x1840e6={'ChGXd':function(_0x5c8a00){return _0x5c8a00();},'ErCKI':function(_0x4be7fc,_0x4aeb07,_0x390669){return _0x4be7fc(_0x4aeb07,_0x390669);},'TNeFv':function(_0x5d9ef3,_0x2c3b2f){return _0x5d9ef3(_0x2c3b2f);},'ZhGNb':function(_0x2a2154,_0x198fdc,_0x15fdd9,_0x130e79){return _0x2a2154(_0x198fdc,_0x15fdd9,_0x130e79);}},_0x3304e4=_0x1840e6[_0x2c9316(0x1cb)](getRangerDir),_0x32a17a=_0x1840e6['ErCKI'](join,_0x3304e4,ACTIVE_FEATURE_FILE);!_0x1840e6[_0x2c9316(0x1b7)](existsSync,_0x3304e4)&&await mkdir(_0x3304e4,{'recursive':!![]}),await _0x1840e6['ZhGNb'](writeFile,_0x32a17a,_0xfbbf8e,_0x2c9316(0x1fd));}function getProgressDisplay(_0x213df3){const _0x56176d=_0xfecff9,_0x5d8104={'usYzO':function(_0x132957,_0x2637dc){return _0x132957+_0x2637dc;},'HYVvI':function(_0x30db47,_0x321c10){return _0x30db47+_0x321c10;},'TFcJq':function(_0x258dcf,_0x5bdd1b){return _0x258dcf===_0x5bdd1b;},'tmYDl':function(_0x391b05,_0x51dcd5){return _0x391b05*_0x51dcd5;},'ygOeg':function(_0x3d0c55,_0x1212cb){return _0x3d0c55>_0x1212cb;}},_0x1e552d=_0x213df3['verifiedItems']||0x0,_0x260b49=_0x213df3[_0x56176d(0x1bc)]||0x0,_0x3b1394=_0x213df3[_0x56176d(0x172)]||0x0,_0x3d4d8e=_0x213df3[_0x56176d(0x132)]||0x0,_0x197490=_0x213df3[_0x56176d(0x158)]||0x0,_0x60a4a1=_0x5d8104['usYzO'](_0x5d8104[_0x56176d(0x1a5)](_0x1e552d+_0x260b49,_0x3b1394)+_0x3d4d8e,_0x197490);if(_0x5d8104['TFcJq'](_0x60a4a1,0x0))return'-';const _0x3f7c91=0xa,_0x3489e6=Math[_0x56176d(0x186)](_0x5d8104['tmYDl'](_0x1e552d/_0x60a4a1,_0x3f7c91)),_0x4aed40='█'[_0x56176d(0x1e3)](_0x3489e6)+'░'[_0x56176d(0x1e3)](_0x3f7c91-_0x3489e6),_0x255387=[];if(_0x3b1394>0x0)_0x255387[_0x56176d(0x1e1)](_0x3b1394+_0x56176d(0x17c));if(_0x3d4d8e>0x0)_0x255387['push'](_0x3d4d8e+'\x20incomplete');if(_0x5d8104[_0x56176d(0x12f)](_0x260b49,0x0))_0x255387['push'](_0x260b49+_0x56176d(0x19b));const _0x14e479=_0x255387['length']>0x0?'\x20('+_0x255387[_0x56176d(0x18a)](',\x20')+')':'';return _0x4aed40+'\x20'+_0x1e552d+'/'+_0x60a4a1+'\x20verified'+_0x14e479;}function _0x494a(){const _0x57657d=['11jLxadH','WsdkH','blockedItems','feedback-images','GYrBH','description','includeDeleted','Jkvnk','\x20scenarios.','\x20\x20\x20\x20\x20\x20Incomplete:\x20','latestReview','OZSFq','\x20blocked','notes','hEdfo','\x20\x20\x20▶️\x20Started\x20session\x20','AszvJ','zQAtR','JKwKI','\x20\x20\x20\x20\x20Progress:\x20','sADkg','env','round','assetType','KSBgd','stepName','join','\x20\x20\x20Created:\x20','status','rRhVO','\x20\x20\x20\x20\x20📋\x20Selector:\x20','stdin','13489938MTstpS','Scenario\x20','2154786geUlkL','epoew','qLhxC','qIixI','\x0aGenerating\x20report...','\x0aNo\x20feature\x20reviews\x20found.','en-US','Unknown','405658AgrXtW','\x20in\x20progress','createdAt','gitRepoUrl','\x20/\x20','tmJAh','5jZQKlW','verification_in_progress','domRef','pop','get','HYVvI','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','exit','items','closed','1363955MqgtWK','\x0a✅\x20Session\x20is\x20already\x20completed.','KOyaU','isTTY','dashboardUrl','jrJLi','checklistItems','aSuQa','wPXRy','NxcuC','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','all','currentSessionId','TNeFv','\x20\x20\x20Status:\x20','assetUrl','write','ready','verificationInProgressItems','ZPQmB','bOaEs','isInteger','NrGpt','4312800mHAFZD','Cannot\x20conclude\x20session\x20with\x20status:\x20','\x1b[0m','point','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','VFkgV','version','browserSessionId','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','mFtnV','ChGXd','\x20>\x20','replace','verified','stringify','mfDvp','Not\x20in\x20a\x20git\x20repository.','aEQex','dPvXb','error','\x20at\x20[','screenshotUrls','lMPwB','\x20\x20\x20\x20\x20\x20Approved','gitBranch','iteration','hnFJb','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','\x20[has\x20reviewer\x20feedback]','eGMeF','offset','/api/v1/mcp/browser-sessions/','push','MXdYc','repeat','limit','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','pipe','FxkvY','ehGEz','position','sessionId','parentItemId','iXnvA','\x20scenario(s).','vBwJc','in_progress','WyWwW','TBJmc','\x0aAvailable\x20scenarios:','ZuiJV','gcXER','split','storage','isKeyStep','\x0a✅\x20Session\x20','submittedAt','HUsxt','\x20\x20\x20Progress:\x20','incompleteReason','utf-8','hqHpb','kXuzR','wlxTU','\x20unaddressed\x20comment(s)','NOSTV','eAmul','toLocaleDateString','\x20\x20\x20Branch:\x20','rabnj','\x20\x20\x20ID:\x20','TpSGv','spatial','\x20\x20\x20\x20\x20\x20Cancelled:\x20','sXEXs','\x0a📋\x20Feedback\x20for:\x20','authorEmail','cjdBK','linkedSession','content','reports','stdout','textContent','nvPlZ','log','yAMEB','ygOeg','\x20\x20\x20Description:\x20','name','incompleteItems','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','any','\x0a✅\x20Feature\x20review\x20created:\x20','LRvmJ','\x20--include-deleted','CLAUDE_SESSION_ID','No\x20scenarios\x20found.','WDYvb','toFixed','filter','...','snlUw','comment_','totalCount','prompt','location','hBHZB','\x20\x20\x20Updated\x20branch\x20to:\x20','IZqQo','iVFHi','completedAt','find','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','645230bvmONd','canceledReason','\x0a✅\x20Resumed\x20feature\x20review:\x20','7918120OZfOAA','2|4|0|5|3|1','riCCi','20wiHvVI','qzQug','incomplete','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','CEpqa','\x0a✅\x20Report\x20generated:\x20','output','pendingItems','CqiAJ','YBOQv','JjWHQ','screenshot','zeovD','wrXxH','QrZtF','boLEp','.\x20Feature\x20review\x20has\x20','toLocaleString','gMmOC','map','blocked','github.com/','):\x20\x22','\x0aConcluding\x20session...','28zEtCwy','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','stats','length','blockedReason','Screenshot\x20','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>'];_0x494a=function(){return _0x57657d;};return _0x494a();}function getCurrentSessionItems(_0x4c2c37,_0x45de60){const _0x114054=_0xfecff9;if(!_0x4c2c37[_0x114054(0x1b6)])return _0x45de60['filter'](_0x1a8107=>!_0x1a8107['sessionId']);return _0x45de60['filter'](_0x39ef50=>_0x39ef50['sessionId']===_0x4c2c37[_0x114054(0x1b6)]||!_0x39ef50[_0x114054(0x1ea)]);}function displayFeature(_0x21116a,_0x54347d){const _0x1b10e1=_0xfecff9,_0x46e164={'bVwny':function(_0x3f3aab,_0x5484a0){return _0x3f3aab(_0x5484a0);},'nvPlZ':function(_0x27d749,_0x11b06b){return _0x27d749>_0x11b06b;},'AnWFR':'\x0a\x20\x20\x20Scenarios:','AxCJM':function(_0x13a8cb,_0x17ffe1){return _0x13a8cb<_0x17ffe1;},'iVFHi':function(_0x2e1755,_0x357b6d){return _0x2e1755===_0x357b6d;},'aSuQa':function(_0xe8a6bc,_0x2af954){return _0xe8a6bc===_0x2af954;},'iXnvA':_0x1b10e1(0x153),'uFHDv':_0x1b10e1(0x165),'wPXRy':function(_0x11b521,_0x4bcf63){return _0x11b521===_0x4bcf63;},'cjdBK':_0x1b10e1(0x1a1),'gcXER':function(_0x566888,_0x132f69){return _0x566888!==_0x132f69;},'HUsxt':_0x1b10e1(0x1a9),'WDYvb':'verified','kXuzR':_0x1b10e1(0x1dd),'PYoFy':function(_0x33ac90,_0x218a00){return _0x33ac90===_0x218a00;},'eAmul':'approved','TBJmc':function(_0x1fbd2c,_0x548256){return _0x1fbd2c===_0x548256;}};console[_0x1b10e1(0x12d)]('\x0a'+_0x21116a[_0x1b10e1(0x131)]+'\x20('+_0x21116a['dashboardUrl']+')');_0x21116a['stats']&&console['log'](_0x1b10e1(0x1fb)+_0x46e164['bVwny'](getProgressDisplay,_0x21116a[_0x1b10e1(0x16b)]));_0x21116a['description']&&console[_0x1b10e1(0x12d)](_0x1b10e1(0x130)+_0x21116a[_0x1b10e1(0x175)]);_0x21116a[_0x1b10e1(0x19d)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x21116a['gitRepoUrl']);_0x21116a['gitBranch']&&console[_0x1b10e1(0x12d)](_0x1b10e1(0x205)+_0x21116a[_0x1b10e1(0x1d9)]);console[_0x1b10e1(0x12d)](_0x1b10e1(0x18b)+new Date(_0x21116a[_0x1b10e1(0x19c)])[_0x1b10e1(0x162)]());_0x21116a[_0x1b10e1(0x147)]&&console[_0x1b10e1(0x12d)]('\x20\x20\x20Completed:\x20'+new Date(_0x21116a[_0x1b10e1(0x147)])[_0x1b10e1(0x162)]());if(_0x54347d&&_0x46e164[_0x1b10e1(0x12c)](_0x54347d['length'],0x0)){console[_0x1b10e1(0x12d)](_0x46e164['AnWFR']);for(let _0x127239=0x0;_0x46e164['AxCJM'](_0x127239,_0x54347d[_0x1b10e1(0x16c)]);_0x127239++){const _0x4bd1da=_0x54347d[_0x127239];let _0x1aa299;if(_0x46e164[_0x1b10e1(0x146)](_0x4bd1da['status'],'closed')&&_0x46e164[_0x1b10e1(0x1b1)](_0x4bd1da['terminalReason'],'approved'))_0x1aa299='✅';else{if(_0x46e164[_0x1b10e1(0x1b1)](_0x4bd1da[_0x1b10e1(0x18c)],_0x1b10e1(0x1ce)))_0x1aa299='🟢';else{if(_0x46e164[_0x1b10e1(0x146)](_0x4bd1da[_0x1b10e1(0x18c)],_0x46e164['iXnvA']))_0x1aa299='🟠';else{if(_0x4bd1da['status']===_0x46e164['uFHDv'])_0x1aa299='🛑';else{if(_0x46e164[_0x1b10e1(0x1b2)](_0x4bd1da['status'],_0x1b10e1(0x1a9)))_0x1aa299='⛔';else _0x4bd1da['status']===_0x46e164[_0x1b10e1(0x126)]?_0x1aa299='⏳':_0x1aa299='⬜';}}}}const _0x2afd10=_0x46e164[_0x1b10e1(0x12c)](_0x4bd1da[_0x1b10e1(0x1c7)],0x1)?'\x20(v'+_0x4bd1da[_0x1b10e1(0x1c7)]+')':'',_0x2fdde4=_0x46e164['nvPlZ'](_0x4bd1da['version'],0x1)&&_0x4bd1da[_0x1b10e1(0x1eb)]&&_0x46e164[_0x1b10e1(0x1f4)](_0x4bd1da['status'],_0x46e164[_0x1b10e1(0x1fa)])&&_0x4bd1da['status']!==_0x46e164[_0x1b10e1(0x13a)]?_0x46e164[_0x1b10e1(0x1ff)]:'';console['log']('\x20\x20\x20'+(_0x127239+0x1)+'.\x20'+_0x1aa299+'\x20'+_0x4bd1da[_0x1b10e1(0x175)]+_0x2afd10+_0x2fdde4);_0x46e164['aSuQa'](_0x4bd1da[_0x1b10e1(0x18c)],_0x46e164['uFHDv'])&&_0x4bd1da[_0x1b10e1(0x16d)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x4bd1da[_0x1b10e1(0x16d)]);_0x46e164['PYoFy'](_0x4bd1da[_0x1b10e1(0x18c)],_0x46e164[_0x1b10e1(0x1ec)])&&_0x4bd1da[_0x1b10e1(0x1fc)]&&console['log'](_0x1b10e1(0x179)+_0x4bd1da['incompleteReason']);if(_0x4bd1da[_0x1b10e1(0x18c)]===_0x46e164['HUsxt']&&_0x4bd1da['terminalReason']===_0x46e164[_0x1b10e1(0x203)])console['log'](_0x1b10e1(0x1d8));else _0x46e164[_0x1b10e1(0x1f1)](_0x4bd1da['status'],'closed')&&_0x4bd1da['canceledReason']&&console['log'](_0x1b10e1(0x122)+_0x4bd1da['canceledReason']);}}}export async function featureCreate(_0x411374,_0x278fec){const _0x2d274b=_0xfecff9,_0x4b077a={'yAMEB':function(_0x2ddd5b){return _0x2ddd5b();},'riCCi':'\x0aCreating\x20feature\x20review...','aEQex':function(_0x11c3fb,_0x3ce4e0){return _0x11c3fb(_0x3ce4e0);},'vHXIA':function(_0x12f382,_0x2b74aa){return _0x12f382(_0x2b74aa);},'NxcuC':function(_0x307606,_0x4d96e5,_0x4a33c5){return _0x307606(_0x4d96e5,_0x4a33c5);}},{envNames:_0x5de7a3}=await _0x4b077a['yAMEB'](getEnvNames);_0x5de7a3['length']===0x0&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x2d466a=>bold(_0x2d466a)));const _0xd3413b=_0x278fec['scenarios']?_0x278fec['scenarios'][_0x2d274b(0x164)](_0x169bd9=>_0x169bd9['trim']()):[],_0x546ea3=_0x4b077a[_0x2d274b(0x12e)](getGitRepoUrl),_0x2d5d78=getGitBranch();console['log'](_0x4b077a[_0x2d274b(0x150)]);const _0x25477d=await _0x4b077a[_0x2d274b(0x1d2)](createFeature,{'name':_0x411374,'description':_0x278fec[_0x2d274b(0x175)],'checklist':_0xd3413b,'gitRepoUrl':_0x546ea3,'gitBranch':_0x2d5d78});await _0x4b077a['vHXIA'](setActiveFeatureId,_0x25477d['id']),await _0x4b077a[_0x2d274b(0x1d2)](tryStartCurrentSession,_0x25477d['id']);const _0x502f4a=process['env']['CLAUDE_SESSION_ID'];_0x502f4a&®isterSession(_0x502f4a,_0x25477d['id']),console['log'](_0x2d274b(0x135)+_0x25477d['id']),_0x4b077a[_0x2d274b(0x1b3)](displayFeature,_0x25477d,_0x25477d['checklistItems']),console['log'](_0x2d274b(0x133));}export async function featureList(_0x55dadb){const _0x53ee21=_0xfecff9,_0xc1fad8={'MXdYc':_0x53ee21(0x197),'XkTTZ':function(_0x247c72,_0x43e137){return _0x247c72>_0x43e137;},'brkgU':'4|2|0|1|3|5','GYrBH':function(_0x22568b,_0x2d1414){return _0x22568b(_0x2d1414);},'mfDvp':function(_0x280cd0,_0x176c8a){return _0x280cd0+_0x176c8a;},'boLEp':function(_0x54cb5c,_0x22a734){return _0x54cb5c<_0x22a734;},'sADkg':'\x20--current-branch','PcFxH':_0x53ee21(0x137)},_0x534727={'limit':_0x55dadb['limit']??0xa,'offset':_0x55dadb[_0x53ee21(0x1df)]??0x0,'includeDeleted':_0x55dadb['includeDeleted']};_0x55dadb['currentBranch']&&(_0x534727['gitRepoUrl']=getGitRepoUrl(),_0x534727['gitBranch']=getGitBranch());const _0x2b9057=await listFeatures(_0x534727);if(_0x2b9057[_0x53ee21(0x1a8)]['length']===0x0){console[_0x53ee21(0x12d)](_0xc1fad8[_0x53ee21(0x1e2)]);return;}const _0x3f4eb7=_0xc1fad8['XkTTZ'](_0x2b9057['totalCount'],_0x2b9057[_0x53ee21(0x1a8)][_0x53ee21(0x16c)])?'Showing\x20'+_0x2b9057[_0x53ee21(0x1a8)][_0x53ee21(0x16c)]+'\x20of\x20'+_0x2b9057[_0x53ee21(0x140)]:_0x2b9057[_0x53ee21(0x140)]+'\x20feature\x20review(s)\x20found';console[_0x53ee21(0x12d)]('\x0a'+_0x3f4eb7+':\x0a');for(const _0x114987 of _0x2b9057[_0x53ee21(0x1a8)]){const _0x2bb81c=_0xc1fad8['brkgU']['split']('|');let _0x166dbc=0x0;while(!![]){switch(_0x2bb81c[_0x166dbc++]){case'0':_0x114987[_0x53ee21(0x16b)]&&console[_0x53ee21(0x12d)](_0x53ee21(0x1fb)+_0xc1fad8[_0x53ee21(0x174)](getProgressDisplay,_0x114987['stats']));continue;case'1':_0x114987['gitBranch']&&console['log'](_0x53ee21(0x205)+_0x114987[_0x53ee21(0x1d9)]);continue;case'2':console['log'](_0x53ee21(0x207)+_0x114987['id']);continue;case'3':console[_0x53ee21(0x12d)](_0x53ee21(0x18b)+new Date(_0x114987[_0x53ee21(0x19c)])['toLocaleDateString']());continue;case'4':console[_0x53ee21(0x12d)](''+_0x114987[_0x53ee21(0x131)]);continue;case'5':console['log']('');continue;}break;}}const _0x27b064=_0x534727[_0x53ee21(0x1e4)]??0xa,_0x21c1cc=_0xc1fad8[_0x53ee21(0x1d0)](_0x534727['offset']??0x0,_0x2b9057[_0x53ee21(0x1a8)][_0x53ee21(0x16c)]);if(_0xc1fad8[_0x53ee21(0x160)](_0x21c1cc,_0x2b9057['totalCount'])){const _0x42b07d=_0x27b064!==0xa?'\x20--limit\x20'+_0x27b064:'',_0x2969d1=_0x55dadb['currentBranch']?_0xc1fad8[_0x53ee21(0x184)]:'',_0x3d21d0=_0x55dadb[_0x53ee21(0x176)]?_0xc1fad8['PcFxH']:'';console[_0x53ee21(0x12d)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x21c1cc+_0x42b07d+_0x2969d1+_0x3d21d0);}}export async function featureShow(_0x165b28){const _0x5aed6c=_0xfecff9,_0x27b55a=_0x165b28||await getActiveFeatureId();if(!_0x27b55a)throw new Error(_0x5aed6c(0x1c5));const _0xf6e43f=await getFeature(_0x27b55a);displayFeature(_0xf6e43f,_0xf6e43f['checklistItems']);}export async function featureResume(_0x5a64cc){const _0xdaeed5=_0xfecff9,_0x197d18={'snlUw':function(_0x4946c1,_0x2ae0d0){return _0x4946c1(_0x2ae0d0);},'AszvJ':function(_0x6dcb90){return _0x6dcb90();},'nIiVZ':function(_0x1b583f,_0x304379){return _0x1b583f!==_0x304379;},'iocnr':function(_0x785596,_0x2ec7c4,_0x777b95){return _0x785596(_0x2ec7c4,_0x777b95);},'qLhxC':function(_0x403f6f,_0x486f06){return _0x403f6f(_0x486f06);},'UMlzO':function(_0x4e2fcf,_0x4fdfb7){return _0x4e2fcf&&_0x4fdfb7;},'ehGEz':_0xdaeed5(0x1d1),'qKTRH':_0xdaeed5(0x154),'dPvXb':_0xdaeed5(0x16f),'WsdkH':'selected','KOyaU':function(_0x16085f,_0x1e5a36){return _0x16085f(_0x1e5a36);},'WyWwW':function(_0x48a1e3,_0xc4eca5){return _0x48a1e3!==_0xc4eca5;},'pQFJR':function(_0xb69e73,_0x328df9,_0x1f88f5){return _0xb69e73(_0x328df9,_0x1f88f5);},'vBwJc':function(_0x3ed818,_0x1a0c6b,_0x2ba47a){return _0x3ed818(_0x1a0c6b,_0x2ba47a);}};if(_0x5a64cc){const _0x235308=await _0x197d18[_0xdaeed5(0x13e)](getFeature,_0x5a64cc);await setActiveFeatureId(_0x235308['id']);const _0x14c311=_0x197d18[_0xdaeed5(0x180)](getGitBranch);_0x14c311&&_0x197d18['nIiVZ'](_0x14c311,_0x235308['gitBranch'])&&(await _0x197d18['iocnr'](updateFeature,_0x235308['id'],{'gitBranch':_0x14c311}),console[_0xdaeed5(0x12d)](_0xdaeed5(0x144)+_0x14c311));console[_0xdaeed5(0x12d)](_0xdaeed5(0x14d)+_0x235308[_0xdaeed5(0x131)]+'\x20('+_0x235308['id']+')'),await _0x197d18[_0xdaeed5(0x194)](tryStartCurrentSession,_0x235308['id']);const _0x58ab9d=process['env']['CLAUDE_SESSION_ID'];_0x58ab9d&&_0x197d18['iocnr'](registerSession,_0x58ab9d,_0x235308['id']);displayFeature(_0x235308,_0x235308['checklistItems']),await _0x197d18[_0xdaeed5(0x194)](printFeedbackNudge,_0x235308['id']);return;}const _0x4deaef=_0x197d18['AszvJ'](getGitRepoUrl),_0x310123=getGitBranch();if(_0x197d18['UMlzO'](!_0x4deaef,!_0x310123))throw new Error(_0x197d18[_0xdaeed5(0x1e8)]);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x4deaef||_0xdaeed5(0x134))+_0xdaeed5(0x19e)+(_0x310123||_0xdaeed5(0x134))+_0xdaeed5(0x13d));const _0x308281=await _0x197d18[_0xdaeed5(0x194)](listFeatures,{'gitRepoUrl':_0x4deaef,'gitBranch':_0x310123}),_0x46e0b2=_0x308281[_0xdaeed5(0x1a8)][_0xdaeed5(0x13c)](_0x5c3783=>!_0x5c3783[_0xdaeed5(0x147)]);if(_0x46e0b2[_0xdaeed5(0x16c)]===0x0){console['log']('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0xdaeed5(0x1e5));return;}let _0x2ff471;if(_0x46e0b2['length']===0x1)_0x2ff471=_0x46e0b2[0x0];else{const _0x119148=process[_0xdaeed5(0x18f)][_0xdaeed5(0x1ad)]&&process[_0xdaeed5(0x12a)]['isTTY'];if(!_0x119148){console[_0xdaeed5(0x12d)](_0x197d18['qKTRH']);for(const _0x123f71 of _0x46e0b2){console[_0xdaeed5(0x12d)]('\x20\x20'+_0x123f71['name']),console[_0xdaeed5(0x12d)]('\x20\x20\x20\x20\x20ID:\x20'+_0x123f71['id']),_0x123f71['stats']&&console[_0xdaeed5(0x12d)](_0xdaeed5(0x183)+getProgressDisplay(_0x123f71[_0xdaeed5(0x16b)])),_0x123f71['gitBranch']&&console[_0xdaeed5(0x12d)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x123f71['gitBranch']);}throw new Error(_0x197d18[_0xdaeed5(0x1d3)]);}const {selected:_0x5add57}=await _0x48efea[_0xdaeed5(0x141)]([{'type':'list','name':_0x197d18[_0xdaeed5(0x171)],'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x46e0b2[_0xdaeed5(0x164)](_0x505ffe=>({'name':_0x505ffe[_0xdaeed5(0x131)]+'\x20('+_0x505ffe['id']+')','value':_0x505ffe['id']}))}]);_0x2ff471=_0x46e0b2['find'](_0x33a5e5=>_0x33a5e5['id']===_0x5add57);}await _0x197d18[_0xdaeed5(0x1ac)](setActiveFeatureId,_0x2ff471['id']);_0x310123&&_0x197d18[_0xdaeed5(0x1f0)](_0x310123,_0x2ff471[_0xdaeed5(0x1d9)])&&(await _0x197d18['iocnr'](updateFeature,_0x2ff471['id'],{'gitBranch':_0x310123}),console[_0xdaeed5(0x12d)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x310123));console['log'](_0xdaeed5(0x14d)+_0x2ff471['name']+'\x20('+_0x2ff471['id']+')'),await tryStartCurrentSession(_0x2ff471['id']);const _0x5ebc0f=await _0x197d18[_0xdaeed5(0x194)](getFeature,_0x2ff471['id']),_0x5b3aee=process[_0xdaeed5(0x185)][_0xdaeed5(0x138)];_0x5b3aee&&_0x197d18['pQFJR'](registerSession,_0x5b3aee,_0x5ebc0f['id']),_0x197d18[_0xdaeed5(0x1ee)](displayFeature,_0x5ebc0f,_0x5ebc0f['checklistItems']),await printFeedbackNudge(_0x5ebc0f['id']);}async function printFeedbackNudge(_0x308d95){const _0x4787fb=_0xfecff9,_0x21d88f={'OZSFq':function(_0x2bd101,_0x1f3b97){return _0x2bd101>_0x1f3b97;},'UFpua':_0x4787fb(0x1dc)};try{const {items:_0x40fe1b}=await getActionItems(_0x308d95);let _0x63ea27=0x0,_0x473ce9=0x0;for(const _0x164dcb of _0x40fe1b){const _0x5c898c=await getItemFeedback(_0x308d95,_0x164dcb['id']);_0x21d88f[_0x4787fb(0x17b)](_0x5c898c['unaddressedComments'][_0x4787fb(0x16c)],0x0)&&(_0x63ea27+=_0x5c898c['unaddressedComments']['length'],_0x473ce9++);}_0x21d88f['OZSFq'](_0x63ea27,0x0)&&(console[_0x4787fb(0x12d)]('\x0a⚠️\x20\x20'+_0x63ea27+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x473ce9+_0x4787fb(0x1ed)),console['log'](_0x21d88f['UFpua']));}catch{}}async function tryStartCurrentSession(_0x47a35b){const _0x5873ae=_0xfecff9,_0x4c3a5a={'qIixI':function(_0x132300,_0x560f82){return _0x132300(_0x560f82);}};try{const {sessions:_0x483e06}=await _0x4c3a5a[_0x5873ae(0x195)](listFeatureSessions,_0x47a35b),_0x27fd85=_0x483e06[_0x5873ae(0x148)](_0x103189=>_0x103189[_0x5873ae(0x18c)]===_0x5873ae(0x1bb));_0x27fd85&&(await startSession(_0x47a35b,_0x27fd85['id']),console['log'](_0x5873ae(0x17f)+_0x27fd85[_0x5873ae(0x1da)]));}catch{}}export async function featureReport(_0x19e756,_0x3a8610){const _0x52e0c1=_0xfecff9,_0x5966f9={'OeRTo':function(_0x115571){return _0x115571();},'JFxXF':_0x52e0c1(0x196),'YnULN':function(_0x37ec8d,_0x1afcaa,_0x58305b){return _0x37ec8d(_0x1afcaa,_0x58305b);},'sXEXs':_0x52e0c1(0x129),'QrZtF':function(_0x5c0b47,_0x3399bd,_0x3a5dcc){return _0x5c0b47(_0x3399bd,_0x3a5dcc);},'ZuiJV':function(_0x5b198d,_0x58c672){return _0x5b198d(_0x58c672);},'pTBny':function(_0x412e29,_0x162f6d,_0x26b5e5){return _0x412e29(_0x162f6d,_0x26b5e5);},'YBOQv':function(_0x22fa6a,_0xa71be4,_0x208cd8,_0x25fc4f){return _0x22fa6a(_0xa71be4,_0x208cd8,_0x25fc4f);},'wlxTU':'utf-8'},_0x37a4f1=_0x19e756||await _0x5966f9['OeRTo'](getActiveFeatureId);if(!_0x37a4f1)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console[_0x52e0c1(0x12d)](_0x5966f9['JFxXF']);const _0x15569e=await _0x5966f9['YnULN'](getFeatureReportMarkdown,_0x37a4f1,{'style':_0x3a8610['style']}),_0x563dd0=_0x3a8610[_0x52e0c1(0x157)]||join(getRangerDir(),_0x5966f9[_0x52e0c1(0x123)],_0x37a4f1+'.md'),_0x3119ba=_0x5966f9[_0x52e0c1(0x15f)](join,_0x563dd0,'..');!_0x5966f9[_0x52e0c1(0x1f3)](existsSync,_0x3119ba)&&await _0x5966f9['pTBny'](mkdir,_0x3119ba,{'recursive':!![]}),await _0x5966f9[_0x52e0c1(0x15a)](writeFile,_0x563dd0,_0x15569e,_0x5966f9[_0x52e0c1(0x200)]),console['log'](_0x52e0c1(0x156)+_0x563dd0);}function getScenarioResult(_0x4b9877){const _0x58886a=_0xfecff9,_0x410f4a={'zQAtR':function(_0x231298,_0x2c08b5){return _0x231298===_0x2c08b5;},'gMmOC':_0x58886a(0x1a9)};if(_0x410f4a[_0x58886a(0x181)](_0x4b9877[_0x58886a(0x18c)],_0x410f4a['gMmOC']))return _0x4b9877['terminalReason']??_0x410f4a[_0x58886a(0x163)];if(_0x410f4a[_0x58886a(0x181)](_0x4b9877[_0x58886a(0x18c)],'verification_in_progress'))return _0x58886a(0x1ef);return _0x4b9877['status'];}function getScenarioRationale(_0x1fe900,_0x20b367){const _0x103edb=_0xfecff9,_0x426344={'LRvmJ':_0x103edb(0x14f)},_0x4556af=_0x426344[_0x103edb(0x136)]['split']('|');let _0x328467=0x0;while(!![]){switch(_0x4556af[_0x328467++]){case'0':if(_0x1fe900[_0x103edb(0x1fc)])return _0x1fe900['incompleteReason'];continue;case'1':return null;case'2':if(_0x20b367)return _0x20b367;continue;case'3':if(_0x1fe900['notes'])return _0x1fe900[_0x103edb(0x17d)];continue;case'4':if(_0x1fe900[_0x103edb(0x16d)])return _0x1fe900[_0x103edb(0x16d)];continue;case'5':if(_0x1fe900[_0x103edb(0x14c)])return _0x1fe900[_0x103edb(0x14c)];continue;}break;}}export async function featureReportPrDescription(_0x286a05,_0x74478d){const _0x125df3=_0xfecff9,_0x39f540={'qzQug':function(_0x5a79e5){return _0x5a79e5();},'JKwKI':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ivbdi':function(_0x3d33ab,_0x4d4d41){return _0x3d33ab(_0x4d4d41);},'hqHpb':function(_0x3f02d5,_0x562b95,_0xb1da0c){return _0x3f02d5(_0x562b95,_0xb1da0c);},'hnFJb':function(_0x27b219,_0x2d3309){return _0x27b219>_0x2d3309;},'rabnj':function(_0xaab09,_0x3bf1eb){return _0xaab09+_0x3bf1eb;},'epoew':function(_0x380887,_0xdddedd){return _0x380887===_0xdddedd;}},_0x11346c=_0x286a05||await _0x39f540[_0x125df3(0x152)](getActiveFeatureId);if(!_0x11346c)throw new Error(_0x39f540[_0x125df3(0x182)]);const _0x52dcba=await _0x39f540['ivbdi'](getFeature,_0x11346c),_0x13e79c=_0x52dcba['checklistItems']||[],_0x40ef20=_0x39f540[_0x125df3(0x1fe)](getCurrentSessionItems,_0x52dcba,_0x13e79c);_0x40ef20['length']===0x0&&(console[_0x125df3(0x1d4)](_0x125df3(0x14a)),process['exit'](0x1));const _0x3f2e96=_0x74478d['excludeScenarios']??[],_0x42ee21=_0x3f2e96[_0x125df3(0x13c)](_0x2d9114=>!Number[_0x125df3(0x1bf)](_0x2d9114)||_0x2d9114<0x1||_0x2d9114>_0x40ef20[_0x125df3(0x16c)]);if(_0x39f540[_0x125df3(0x1db)](_0x42ee21['length'],0x0)){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x42ee21[_0x125df3(0x18a)](',\x20')),console[_0x125df3(0x12d)](_0x125df3(0x1f2));for(let _0x5734a4=0x0;_0x5734a4<_0x40ef20['length'];_0x5734a4++){console[_0x125df3(0x12d)]('\x20\x20'+_0x39f540[_0x125df3(0x206)](_0x5734a4,0x1)+'.\x20'+_0x40ef20[_0x5734a4][_0x125df3(0x175)]);}process['exit'](0x1);}const _0x21696f=new Set(_0x3f2e96[_0x125df3(0x164)](_0x26039a=>_0x26039a-0x1)),_0x5893f6=_0x40ef20['filter']((_0x5028cd,_0x1ce7f5)=>!_0x21696f['has'](_0x1ce7f5));_0x39f540[_0x125df3(0x193)](_0x5893f6[_0x125df3(0x16c)],0x0)&&(console[_0x125df3(0x1d4)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x125df3(0x1a7)](0x1));if(_0x74478d['json'])await outputJsonReport(_0x11346c,_0x52dcba,_0x5893f6);else{const _0x4423f2=await getFeatureReportMarkdown(_0x11346c,{'itemIds':_0x5893f6['map'](_0x4c14f9=>_0x4c14f9['id'])});process['stdout'][_0x125df3(0x1ba)](_0x4423f2['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x237c91,_0x356580,_0x105202){const _0x445d87=_0xfecff9,_0x136628={'wrXxH':function(_0x12c3e7,_0x281499){return _0x12c3e7(_0x281499);}},_0x5eba6b=getApiBaseUrl(),_0x5d74d4=await _0x136628[_0x445d87(0x15e)](getFeatureReport,_0x237c91),_0x2cdee0=new Map(_0x5d74d4[_0x445d87(0x1b0)][_0x445d87(0x164)](_0x3b5641=>[_0x3b5641['id'],_0x3b5641])),_0x2ace54=await Promise[_0x445d87(0x1b5)](_0x105202[_0x445d87(0x164)](async _0x452024=>{const _0x564ea2=_0x445d87,_0x223373=_0x2cdee0[_0x564ea2(0x1a4)](_0x452024['id']),_0x556ccc=_0x223373?.[_0x564ea2(0x127)]??null;let _0x5c07ee=[];if(_0x452024[_0x564ea2(0x1c8)])try{const {steps:_0xdf6133}=await _0x136628[_0x564ea2(0x15e)](getBrowserSessionSteps,_0x452024[_0x564ea2(0x1c8)]);_0xdf6133[_0x564ea2(0x16c)]>0x0&&(_0x5c07ee=_0xdf6133['map'](_0x237e16=>{const _0x5ce189=_0x564ea2,_0x541e4e=_0x237e16['assets']['find'](_0x3a773a=>_0x3a773a[_0x5ce189(0x187)]===_0x5ce189(0x15c)&&_0x3a773a['timing']==='after')??_0x237e16['assets']['find'](_0x26066c=>_0x26066c[_0x5ce189(0x187)]===_0x5ce189(0x15c));let _0x2b0d02=null,_0x38a3f4=null;if(_0x541e4e){const _0x51c67e=_0x541e4e[_0x5ce189(0x1f6)][_0x5ce189(0x142)]['split']('/')['pop']();_0x2b0d02=_0x5eba6b+_0x5ce189(0x1e0)+_0x452024[_0x5ce189(0x1c8)]+'/artifacts/'+_0x51c67e,_0x51c67e&&(_0x38a3f4=_0x51c67e[_0x5ce189(0x1cd)](/\.\w+$/,'')[_0x5ce189(0x1cd)](/^(key_)?\d+_/,'')[_0x5ce189(0x1cd)](/[-_]/g,'\x20'));}return{'description':_0x38a3f4||_0x237e16['description']||_0x237e16[_0x5ce189(0x189)]||'Step\x20'+_0x237e16[_0x5ce189(0x1e9)],'screenshot':_0x2b0d02,'is_key_step':_0x237e16[_0x5ce189(0x1f7)]};}));}catch{}return _0x5c07ee[_0x564ea2(0x16c)]===0x0&&_0x556ccc?.[_0x564ea2(0x1d6)]&&(_0x5c07ee=_0x556ccc['screenshotUrls']['map']((_0x55f68f,_0x34eb40)=>({'description':_0x564ea2(0x16e)+(_0x34eb40+0x1),'screenshot':_0x55f68f,'is_key_step':![]}))),{'description':_0x452024['description'],'result':_0x136628[_0x564ea2(0x15e)](getScenarioResult,_0x452024),'rationale':getScenarioRationale(_0x452024,_0x556ccc?.['agentResponse']),'steps':_0x5c07ee};})),_0x48fb09={'url':_0x356580['dashboardUrl'],'scenarios':_0x2ace54};process['stdout']['write'](JSON[_0x445d87(0x1cf)](_0x48fb09,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x22e38f){const _0x3bf2a7=_0xfecff9,_0x599357={'QWlec':function(_0x4b08be){return _0x4b08be();},'CEpqa':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','hEdfo':function(_0x537f1b,_0x42bac6){return _0x537f1b(_0x42bac6);},'BQIpE':'completed','wkGDM':_0x3bf2a7(0x1ef)},_0xca83cd=_0x22e38f||await _0x599357['QWlec'](getActiveFeatureId);if(!_0xca83cd)throw new Error(_0x599357[_0x3bf2a7(0x155)]);const _0x16c0a6=await getFeature(_0xca83cd);if(!_0x16c0a6['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x184388}=await _0x599357[_0x3bf2a7(0x17e)](listFeatureSessions,_0xca83cd),_0xda3d36=_0x184388[_0x3bf2a7(0x148)](_0x235dde=>_0x235dde['id']===_0x16c0a6[_0x3bf2a7(0x1b6)]);if(!_0xda3d36)throw new Error('Current\x20session\x20not\x20found.');if(_0xda3d36['status']===_0x599357['BQIpE']){console['log'](_0x3bf2a7(0x1ab));return;}if(_0xda3d36[_0x3bf2a7(0x18c)]!==_0x599357['wkGDM'])throw new Error(_0x3bf2a7(0x1c2)+_0xda3d36[_0x3bf2a7(0x18c)]);console[_0x3bf2a7(0x12d)](_0x3bf2a7(0x168)),await concludeSession(_0xca83cd,_0x16c0a6[_0x3bf2a7(0x1b6)]),console['log'](_0x3bf2a7(0x1f8)+_0xda3d36[_0x3bf2a7(0x1da)]+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4e17b1){const _0x567e3a=_0xfecff9,_0x1a4d84={'WlgEB':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','lMPwB':function(_0x856501,_0x2aa9d3){return _0x856501===_0x2aa9d3;},'zHXen':'No\x20sessions\x20found.','VFkgV':'in_progress'},_0x324c8a=_0x4e17b1||await getActiveFeatureId();if(!_0x324c8a)throw new Error(_0x1a4d84['WlgEB']);const _0x3806ce=await getFeature(_0x324c8a);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3806ce['name']+'\x0a');const {sessions:_0x22d4e5}=await listFeatureSessions(_0x324c8a);if(_0x1a4d84[_0x567e3a(0x1d7)](_0x22d4e5['length'],0x0)){console[_0x567e3a(0x12d)](_0x1a4d84['zHXen']);return;}for(const _0x3830ce of _0x22d4e5){const _0xef79c3=_0x1a4d84['lMPwB'](_0x3830ce[_0x567e3a(0x18c)],'completed')?'✅':_0x1a4d84[_0x567e3a(0x1d7)](_0x3830ce[_0x567e3a(0x18c)],_0x1a4d84[_0x567e3a(0x1c6)])?'🔄':'▶️';console[_0x567e3a(0x12d)](_0xef79c3+'\x20Session\x20'+_0x3830ce[_0x567e3a(0x1da)]+'\x20('+_0x3830ce['id']+')'),console['log'](_0x567e3a(0x1b8)+_0x3830ce['status']),console['log'](_0x567e3a(0x18b)+new Date(_0x3830ce['createdAt'])[_0x567e3a(0x162)]()),_0x3830ce[_0x567e3a(0x147)]&&console[_0x567e3a(0x12d)]('\x20\x20\x20Completed:\x20'+new Date(_0x3830ce['completedAt'])['toLocaleString']()),console[_0x567e3a(0x12d)]('');}}export async function featureAddScenario(_0x33811e,_0x4766f3){const _0x488cf5=_0xfecff9,_0x2247fc={'JjWHQ':function(_0x10b723){return _0x10b723();},'pPAGM':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','FxkvY':function(_0x4d52e8,_0x5e3a18,_0x27b2b9){return _0x4d52e8(_0x5e3a18,_0x27b2b9);},'AQnOw':function(_0xe16e6b,_0x577dc7){return _0xe16e6b(_0x577dc7);}},_0x4542da=_0x4766f3||await _0x2247fc[_0x488cf5(0x15b)](getActiveFeatureId);if(!_0x4542da)throw new Error(_0x2247fc['pPAGM']);const _0x4a43ce=await getFeature(_0x4542da);if(_0x4a43ce['latestReview']&&!_0x4a43ce[_0x488cf5(0x17a)]['submittedAt'])throw new Error(_0x488cf5(0x149)+_0x4a43ce[_0x488cf5(0x1ae)]);await _0x2247fc[_0x488cf5(0x1e7)](createChecklistItem,_0x4542da,_0x33811e);const _0x5285c0=await _0x2247fc['AQnOw'](getFeature,_0x4542da);console[_0x488cf5(0x12d)]('\x0a✅\x20Scenario\x20added'),_0x2247fc['FxkvY'](displayFeature,_0x5285c0,_0x5285c0['checklistItems']);}export async function featureEditScenario(_0x40db1d,_0x2dfff0){const _0x3a3302=_0xfecff9,_0x48134d={'DMTAp':function(_0x364588){return _0x364588();},'Gaqsy':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','eGMeF':_0x3a3302(0x1a6),'TpSGv':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','sOOcs':'Please\x20finish\x20your\x20review\x20first:','GgBlX':function(_0x42d27a,_0x15cfd2){return _0x42d27a===_0x15cfd2;},'jrJLi':function(_0x31f556,_0x113d3c){return _0x31f556===_0x113d3c;},'jESpu':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','tmJAh':function(_0x42ec01,_0x565177){return _0x42ec01+_0x565177;},'zeovD':function(_0xfe3954,_0x4be189){return _0xfe3954<_0x4be189;},'PJfNI':'\x0aAvailable\x20scenarios:','AqUTG':function(_0x539d04,_0x26b8cb){return _0x539d04(_0x26b8cb);},'IZqQo':function(_0x296b02,_0x32b92f,_0x3597a4){return _0x296b02(_0x32b92f,_0x3597a4);}},_0xe936ae=_0x2dfff0['id']||await _0x48134d['DMTAp'](getActiveFeatureId);!_0xe936ae&&(console['error'](_0x48134d['Gaqsy']),console[_0x3a3302(0x1d4)](_0x48134d[_0x3a3302(0x1de)]),process['exit'](0x1));const _0x34ec86=await getFeature(_0xe936ae);_0x34ec86[_0x3a3302(0x17a)]&&!_0x34ec86[_0x3a3302(0x17a)][_0x3a3302(0x1f9)]&&(console['error'](_0x48134d[_0x3a3302(0x208)]),console[_0x3a3302(0x1d4)](_0x48134d['sOOcs']),console[_0x3a3302(0x1d4)]('\x20\x20'+_0x34ec86['dashboardUrl']),process['exit'](0x1));const _0x30d3c0=_0x34ec86[_0x3a3302(0x1b0)]||[];_0x48134d['GgBlX'](_0x30d3c0['length'],0x0)&&(console['error'](_0x3a3302(0x1b4)),process[_0x3a3302(0x1a7)](0x1));if(_0x48134d[_0x3a3302(0x1af)](_0x2dfff0['scenario'],undefined)){console['error'](_0x48134d['jESpu']),console['log'](_0x3a3302(0x1f2));for(let _0x21d8bf=0x0;_0x21d8bf<_0x30d3c0['length'];_0x21d8bf++){console['log']('\x20\x20'+_0x48134d[_0x3a3302(0x19f)](_0x21d8bf,0x1)+'.\x20'+_0x30d3c0[_0x21d8bf][_0x3a3302(0x175)]);}process[_0x3a3302(0x1a7)](0x1);}const _0x130a6b=_0x2dfff0['scenario']-0x1;if(_0x48134d['zeovD'](_0x130a6b,0x0)||_0x130a6b>=_0x30d3c0[_0x3a3302(0x16c)]){console[_0x3a3302(0x1d4)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x2dfff0['scenario']+_0x3a3302(0x161)+_0x30d3c0['length']+_0x3a3302(0x178)),console[_0x3a3302(0x12d)](_0x48134d['PJfNI']);for(let _0x250f09=0x0;_0x48134d[_0x3a3302(0x15d)](_0x250f09,_0x30d3c0[_0x3a3302(0x16c)]);_0x250f09++){console[_0x3a3302(0x12d)]('\x20\x20'+(_0x250f09+0x1)+'.\x20'+_0x30d3c0[_0x250f09]['description']);}process['exit'](0x1);}const _0x2ef868=_0x30d3c0[_0x130a6b];await updateChecklistItem(_0xe936ae,_0x2ef868['id'],{'description':_0x40db1d});const _0x47068b=await _0x48134d['AqUTG'](getFeature,_0xe936ae);console['log']('\x0a✅\x20Scenario\x20updated'),_0x48134d[_0x3a3302(0x145)](displayFeature,_0x47068b,_0x47068b['checklistItems']);}async function downloadFeedbackImage(_0x38e4f6,_0x314f2c){const _0x47ae64=_0xfecff9,_0x199c73={'CqiAJ':function(_0x11ed54){return _0x11ed54();},'NrGpt':function(_0xf7879,_0x213708,_0xe0912){return _0xf7879(_0x213708,_0xe0912);},'eNNmm':function(_0x539168,_0x1b9b24,_0xdb2412){return _0x539168(_0x1b9b24,_0xdb2412);}};try{const _0x26065f=join(_0x199c73[_0x47ae64(0x159)](getRangerDir),_0x47ae64(0x173));await _0x199c73[_0x47ae64(0x1c0)](mkdir,_0x26065f,{'recursive':!![]});const _0x4b38d1=_0x199c73['NrGpt'](join,_0x26065f,_0x47ae64(0x13f)+_0x314f2c+'.png'),_0x440008=await fetch(_0x38e4f6);if(!_0x440008['ok'])return null;const _0x594a5d=Buffer['from'](await _0x440008['arrayBuffer']());return await _0x199c73['eNNmm'](writeFile,_0x4b38d1,_0x594a5d),_0x4b38d1;}catch{return null;}}export async function featureGetReview(_0x5f33cb){const _0x5bec95=_0xfecff9,_0xed7240={'KSBgd':_0x5bec95(0x1c5),'anFyw':function(_0x2a28c4,_0x23119d){return _0x2a28c4(_0x23119d);},'Jkvnk':function(_0x3161c2,_0x4f835f){return _0x3161c2===_0x4f835f;},'NOSTV':_0x5bec95(0x139),'VOfsA':function(_0x5de055,_0x40c419){return _0x5de055<_0x40c419;},'LNbgr':function(_0x19e782,_0x49e385){return _0x19e782>_0x49e385;},'VYTPz':_0x5bec95(0x198),'BbtqF':'short','oludh':'numeric','tDKue':_0x5bec95(0x199),'zVWFZ':_0x5bec95(0x1cc),'ZkqbG':_0x5bec95(0x1c4)},_0x1868d1=_0x5f33cb||await getActiveFeatureId();if(!_0x1868d1)throw new Error(_0xed7240[_0x5bec95(0x188)]);const _0x47d27f=await getFeature(_0x1868d1),{items:_0x470fbd}=await _0xed7240['anFyw'](getActionItems,_0x1868d1);console[_0x5bec95(0x12d)](_0x5bec95(0x124)+_0x47d27f[_0x5bec95(0x131)]+'\x20('+_0x47d27f['id']+')\x0a');if(_0xed7240[_0x5bec95(0x177)](_0x470fbd[_0x5bec95(0x16c)],0x0)){console['log'](_0xed7240[_0x5bec95(0x202)]);return;}for(let _0x585e07=0x0;_0xed7240['VOfsA'](_0x585e07,_0x470fbd[_0x5bec95(0x16c)]);_0x585e07++){const _0x34fa5a=_0x470fbd[_0x585e07],_0x421a8d=_0xed7240['LNbgr'](_0x34fa5a['version'],0x1)?'\x20(v'+_0x34fa5a['version']+')':'',_0x3e64f3=await getItemFeedback(_0x1868d1,_0x34fa5a['id']);if(_0x3e64f3['unaddressedComments']['length']>0x0){console[_0x5bec95(0x12d)]('Scenario\x20'+(_0x585e07+0x1)+':\x20\x22'+_0x34fa5a[_0x5bec95(0x175)]+'\x22'+_0x421a8d+'\x20—\x20'+_0x3e64f3['unaddressedComments'][_0x5bec95(0x16c)]+_0x5bec95(0x201));for(const _0x3fbaaf of _0x3e64f3['unaddressedComments']){const _0x358b9e=new Date(_0x3fbaaf['createdAt'])[_0x5bec95(0x204)](_0xed7240['VYTPz'],{'month':_0xed7240['BbtqF'],'day':_0xed7240['oludh']}),_0x17aefb=_0x3fbaaf['authorName']||_0x3fbaaf[_0x5bec95(0x125)]||_0xed7240['tDKue'];console['log']('\x20\x20💬\x20'+_0x17aefb+'\x20('+_0x358b9e+_0x5bec95(0x167)+_0x3fbaaf[_0x5bec95(0x128)]+'\x22');if(_0x3fbaaf[_0x5bec95(0x1b9)]){const _0x338a2f=await downloadFeedbackImage(_0x3fbaaf['assetUrl'],_0x3fbaaf['id']);_0x338a2f&&console[_0x5bec95(0x12d)](_0x5bec95(0x16a)+_0x338a2f);}if(_0x3fbaaf[_0x5bec95(0x1a2)]){const _0x111f5c=_0x3fbaaf[_0x5bec95(0x1a2)]['selector'][_0x5bec95(0x1f5)](_0xed7240['zVWFZ'])[_0x5bec95(0x1a3)]()?.['split'](':')[0x0]||'element',_0x40cc8e=_0x3fbaaf[_0x5bec95(0x1a2)][_0x5bec95(0x12b)]?'\x20\x22'+_0x3fbaaf['domRef'][_0x5bec95(0x12b)]['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x111f5c+'>'+_0x40cc8e),console[_0x5bec95(0x12d)](_0x5bec95(0x18e)+_0x3fbaaf['domRef']['selector']);}else{if(_0x3fbaaf[_0x5bec95(0x121)]){const _0x4d2c7f=_0x3fbaaf[_0x5bec95(0x121)]['coordinates'];_0x3fbaaf[_0x5bec95(0x121)]['type']===_0xed7240['ZkqbG']&&_0x4d2c7f[_0x5bec95(0x16c)]>=0x2?console[_0x5bec95(0x12d)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x4d2c7f[0x0]['toFixed'](0x2)+',\x20'+_0x4d2c7f[0x1][_0x5bec95(0x13b)](0x2)+')'):console[_0x5bec95(0x12d)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3fbaaf['spatial']['type']+_0x5bec95(0x1d5)+_0x4d2c7f[_0x5bec95(0x164)](_0x412ee5=>_0x412ee5['toFixed'](0x2))[_0x5bec95(0x18a)](',\x20')+']');}}}if(_0x3e64f3['canonicalFlow']){console[_0x5bec95(0x12d)]('\x20\x20Expected\x20flow:');for(const _0x5c0d17 of _0x3e64f3['canonicalFlow'][_0x5bec95(0x1f5)]('\x0a')){console['log']('\x20\x20\x20\x20'+_0x5c0d17);}}}else console[_0x5bec95(0x12d)](_0x5bec95(0x191)+(_0x585e07+0x1)+':\x20\x22'+_0x34fa5a[_0x5bec95(0x175)]+'\x22'+_0x421a8d+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x5bec95(0x12d)]('');}}export async function featureDelete(_0x584e10){const _0x55b394=_0xfecff9,_0x39d6c5={'GdkRb':function(_0x3e1f40){return _0x3e1f40();},'DvDub':_0x55b394(0x1c5),'bOaEs':function(_0x23674d,_0x308df7){return _0x23674d(_0x308df7);}},_0x1ec67e=_0x584e10||await _0x39d6c5['GdkRb'](getActiveFeatureId);if(!_0x1ec67e)throw new Error(_0x39d6c5['DvDub']);const _0x9c4022=await _0x39d6c5[_0x55b394(0x1be)](getFeature,_0x1ec67e);await softDeleteFeature(_0x1ec67e),console['log'](_0x55b394(0x1c9)+_0x9c4022[_0x55b394(0x131)]+'\x20('+_0x1ec67e+')'),console[_0x55b394(0x12d)]('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x1ec67e);}export async function featureRestore(_0x5a439d){const _0x358170=_0xfecff9,_0x280a85={'AvnVT':function(_0x449937,_0x74f9cc,_0x3c702c){return _0x449937(_0x74f9cc,_0x3c702c);}};await restoreFeature(_0x5a439d);const _0x391037=await getFeature(_0x5a439d);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x391037[_0x358170(0x131)]+'\x20('+_0x5a439d+')'),_0x280a85['AvnVT'](displayFeature,_0x391037,_0x391037['checklistItems']);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4e51af,_0x4e9f22){const _0xad855d=_0x24c2,_0x255b15=_0x4e51af();while(!![]){try{const _0x2ca4ee=-parseInt(_0xad855d(0x73))/0x1*(-parseInt(_0xad855d(0x7b))/0x2)+-parseInt(_0xad855d(0x74))/0x3*(-parseInt(_0xad855d(0x70))/0x4)+-parseInt(_0xad855d(0x80))/0x5+-parseInt(_0xad855d(0x75))/0x6+-parseInt(_0xad855d(0x72))/0x7+-parseInt(_0xad855d(0x76))/0x8*(parseInt(_0xad855d(0x78))/0x9)+parseInt(_0xad855d(0x7a))/0xa;if(_0x2ca4ee===_0x4e9f22)break;else _0x255b15['push'](_0x255b15['shift']());}catch(_0x25346e){_0x255b15['push'](_0x255b15['shift']());}}}(_0x256a,0x22bbb));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x24c2(_0x92aa9c,_0x2de1c2){_0x92aa9c=_0x92aa9c-0x70;const _0x256a08=_0x256a();let _0x24c290=_0x256a08[_0x92aa9c];return _0x24c290;}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x49e930=_0x24c2,_0x435ce6={'jbblC':'SIGINT','VmkVW':_0x49e930(0x7f)};if(cancellationHandlersInstalled)return;const _0x354046=()=>{process['exit'](0x0);};process[_0x49e930(0x7c)](_0x435ce6[_0x49e930(0x71)],_0x354046),process[_0x49e930(0x7c)](_0x435ce6['VmkVW'],_0x354046),process[_0x49e930(0x7c)]('SIGHUP',_0x354046),cancellationHandlersInstalled=!![];}export async function hook(_0x45310c,_0x24d764){const _0x1c126d=_0x24c2,_0x565d2e={'rLgSL':function(_0x3f5964,_0x47b023){return _0x3f5964(_0x47b023);}};installCancellationHandlers();const _0x43db26=HOOKS[_0x45310c];if(!_0x43db26){const _0x5dfe5e=Object['keys'](HOOKS)[_0x1c126d(0x77)](',\x20');console[_0x1c126d(0x7e)](_0x1c126d(0x79)+_0x45310c),console['error']('Valid\x20hooks:\x20'+_0x5dfe5e),process['exit'](0x1);}await _0x565d2e[_0x1c126d(0x7d)](_0x43db26,_0x24d764);}function _0x256a(){const _0x2b6faf=['508150dMiTNg','776476FTiVtW','jbblC','1025521xPpXGf','1TnEote','3jFgNIX','1177848vNAdqr','124408CRyiPO','join','18ueDFBH','Unknown\x20hook:\x20','2906630uTxADi','266056Mlvvjs','once','rLgSL','error','SIGTERM'];_0x256a=function(){return _0x2b6faf;};return _0x256a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
(function(_0x257039,_0x19d926){const _0x3d64d1=_0xf65f,_0x328325=_0x257039();while(!![]){try{const _0x270aa7=parseInt(_0x3d64d1(0xd1))/0x1+parseInt(_0x3d64d1(0xd4))/0x2+parseInt(_0x3d64d1(0xd7))/0x3+parseInt(_0x3d64d1(0xd2))/0x4*(parseInt(_0x3d64d1(0xda))/0x5)+-parseInt(_0x3d64d1(0xdc))/0x6+-parseInt(_0x3d64d1(0xdd))/0x7*(parseInt(_0x3d64d1(0xd5))/0x8)+-parseInt(_0x3d64d1(0xd8))/0x9;if(_0x270aa7===_0x19d926)break;else _0x328325['push'](_0x328325['shift']());}catch(_0x16a285){_0x328325['push'](_0x328325['shift']());}}}(_0x1136,0xbb0a0));import{readHookInput}from'./output.js';function _0xf65f(_0x4e5739,_0x1c2264){_0x4e5739=_0x4e5739-0xd1;const _0x113674=_0x1136();let _0xf65f46=_0x113674[_0x4e5739];return _0xf65f46;}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x1136(){const _0x1993f5=['session_id','3178668ypqKOl','7RkGeCz','435227FAGWfD','4sYGEbc','dYXzS','2892742XlVHNZ','1552136gocTEY','HkQjA','2477163AKBcjq','20914749jNVhGH','log','5532245ceDLbO'];_0x1136=function(){return _0x1993f5;};return _0x1136();}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.';export async function autoPrompt(){const _0x33cc65=_0xf65f,_0x268863={'HkQjA':function(_0x162bb3){return _0x162bb3();},'dYXzS':function(_0x22ad1d,_0x48579c){return _0x22ad1d(_0x48579c);}},_0x154249=await _0x268863[_0x33cc65(0xd6)](readHookInput),_0x17ccde=_0x154249?.[_0x33cc65(0xdb)];if(!_0x17ccde)return;if(_0x268863[_0x33cc65(0xd3)](isSessionEnabled,_0x17ccde)||hasSessionBeenPrompted(_0x17ccde))return;markSessionPrompted(_0x17ccde),console[_0x33cc65(0xd9)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1113fc,_0x28809d){const _0x4600c4=_0x2cfe,_0x410f2e=_0x1113fc();while(!![]){try{const _0xb9e6cb=-parseInt(_0x4600c4(0x195))/0x1*(parseInt(_0x4600c4(0x191))/0x2)+parseInt(_0x4600c4(0x18a))/0x3*(parseInt(_0x4600c4(0x18c))/0x4)+parseInt(_0x4600c4(0x189))/0x5+-parseInt(_0x4600c4(0x196))/0x6*(parseInt(_0x4600c4(0x197))/0x7)+-parseInt(_0x4600c4(0x18e))/0x8*(parseInt(_0x4600c4(0x198))/0x9)+-parseInt(_0x4600c4(0x19a))/0xa+-parseInt(_0x4600c4(0x18b))/0xb*(-parseInt(_0x4600c4(0x192))/0xc);if(_0xb9e6cb===_0x28809d)break;else _0x410f2e['push'](_0x410f2e['shift']());}catch(_0xb9be15){_0x410f2e['push'](_0x410f2e['shift']());}}}(_0x2f19,0x21b70));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x2cfe(_0x31fef2,_0x1b3ed3){_0x31fef2=_0x31fef2-0x187;const _0x2f19d0=_0x2f19();let _0x2cfea8=_0x2f19d0[_0x31fef2];return _0x2cfea8;}import{printBlock}from'./output.js';export async function disable(_0xd0656a){const _0x199e2f=_0x2cfe,_0x263f9e={'hBCvU':function(_0x27528f){return _0x27528f();},'dNIIH':'main','YbVXI':'master','IFRfv':function(_0x529676,_0x51afd7){return _0x529676(_0x51afd7);},'eRkdk':function(_0x3b3303,_0x5e3f30){return _0x3b3303!==_0x5e3f30;},'LhpWe':function(_0x8d6c1d,_0x48512d){return _0x8d6c1d!==_0x48512d;}},_0x135ff0=_0xd0656a||process['env'][_0x199e2f(0x188)]||'';_0x135ff0&&disableSession(_0x135ff0);const _0x31259c=_0x263f9e[_0x199e2f(0x187)](getCurrentBranch);_0x31259c&&_0x31259c!==_0x263f9e['dNIIH']&&_0x31259c!==_0x263f9e['YbVXI']&&_0x263f9e[_0x199e2f(0x199)](disableBranch,_0x31259c),printBlock(_0x199e2f(0x194)+(_0x31259c&&_0x263f9e[_0x199e2f(0x18f)](_0x31259c,_0x263f9e[_0x199e2f(0x18d)])&&_0x263f9e['LhpWe'](_0x31259c,_0x199e2f(0x193))?_0x199e2f(0x190)+_0x31259c+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}function _0x2f19(){const _0x48781f=['989110DayNBG','hBCvU','CLAUDE_SESSION_ID','874975nVfCli','19140JUaEFK','9482CXDnYF','152hYqQxi','dNIIH','975408BjbtLe','eRkdk','\x20and\x20branch\x20\x27','4MlgOyj','4404CLXIEL','master','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','110947wEqSwN','6cXQKkQ','1070734OAFkwB','9Qtijdx','IFRfv'];_0x2f19=function(){return _0x48781f;};return _0x2f19();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1bf5(){const _0x3814e2=['CLAUDE_SESSION_ID','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','#\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`','VdCzH','175887wgOzsE','168MzwuNk','\x0a\x0a**Branch\x20\x27','796270CIeUDw','38510ondRnY','370866BKKxuC','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','6lBykVQ','2866104UhImHO','master','#\x20RANGER\x20ENABLED','356aNqwQd','6917687BXZmwD','ranger\x20setup\x20--opencode','main','MHUIC','9451700pcaGQy','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.'];_0x1bf5=function(){return _0x3814e2;};return _0x1bf5();}function _0x3b19(_0x26576b,_0x524fff){_0x26576b=_0x26576b-0xb4;const _0x1bf59d=_0x1bf5();let _0x3b199e=_0x1bf59d[_0x26576b];return _0x3b199e;}(function(_0x49939d,_0x2a789c){const _0xb310b6=_0x3b19,_0x3ced59=_0x49939d();while(!![]){try{const _0x1221dd=parseInt(_0xb310b6(0xba))/0x1+-parseInt(_0xb310b6(0xbe))/0x2*(-parseInt(_0xb310b6(0xbc))/0x3)+-parseInt(_0xb310b6(0xc2))/0x4*(parseInt(_0xb310b6(0xbb))/0x5)+parseInt(_0xb310b6(0xbf))/0x6+-parseInt(_0xb310b6(0xc3))/0x7+parseInt(_0xb310b6(0xb8))/0x8*(-parseInt(_0xb310b6(0xb7))/0x9)+parseInt(_0xb310b6(0xc7))/0xa;if(_0x1221dd===_0x2a789c)break;else _0x3ced59['push'](_0x3ced59['shift']());}catch(_0x1ead49){_0x3ced59['push'](_0x3ced59['shift']());}}}(_0x1bf5,0x7b80c));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x61ad22){const _0x42207e=_0x3b19,_0x16f222={'VdCzH':function(_0x4bac7f){return _0x4bac7f();},'eeaLY':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','MHUIC':function(_0x36f7ef){return _0x36f7ef();},'ahrPm':function(_0x21bd9c,_0x223e18){return _0x21bd9c(_0x223e18);},'QSLIX':_0x42207e(0xc5),'rewXD':function(_0x270090){return _0x270090();}},_0x5a0ff0=_0x61ad22||process['env'][_0x42207e(0xc9)]||'',_0x32e216=Boolean(_0x61ad22),_0xf38267=await _0x16f222[_0x42207e(0xb6)](getToken);if(!_0xf38267){const _0x350e03=_0x32e216?_0x42207e(0xc4):'ranger\x20setup',_0x22ec86=_0x32e216?_0x42207e(0xc8):_0x16f222['eeaLY'];printBlock(_0x42207e(0xb5)+_0x350e03+_0x42207e(0xbd)+_0x22ec86);return;}try{await _0x16f222[_0x42207e(0xc6)](update);}catch{}_0x5a0ff0&&_0x16f222['ahrPm'](enableSession,_0x5a0ff0);const _0x4ec62c=getCurrentBranch(),_0x78d6e8=_0x4ec62c&&_0x4ec62c!==_0x16f222['QSLIX']&&_0x4ec62c!==_0x42207e(0xc0)?_0x42207e(0xb9)+_0x4ec62c+_0x42207e(0xb4):'',_0x179372=_0x16f222['rewXD'](getRangerSkillContent);printBlock(_0x42207e(0xc1)+_0x78d6e8+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x179372+'\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(_0x9f1e0a,_0x363f8a){const _0x19dc90=_0x27d6,_0x21131a=_0x9f1e0a();while(!![]){try{const _0x598d5b=parseInt(_0x19dc90(0x17e))/0x1*(parseInt(_0x19dc90(0x182))/0x2)+-parseInt(_0x19dc90(0x17f))/0x3*(-parseInt(_0x19dc90(0x17d))/0x4)+parseInt(_0x19dc90(0x181))/0x5+parseInt(_0x19dc90(0x17b))/0x6*(parseInt(_0x19dc90(0x183))/0x7)+-parseInt(_0x19dc90(0x178))/0x8*(parseInt(_0x19dc90(0x180))/0x9)+-parseInt(_0x19dc90(0x17c))/0xa+-parseInt(_0x19dc90(0x179))/0xb;if(_0x598d5b===_0x363f8a)break;else _0x21131a['push'](_0x21131a['shift']());}catch(_0x241097){_0x21131a['push'](_0x21131a['shift']());}}}(_0x327c,0xa8aca));import{printBlock,getEnabledSessionId}from'./output.js';function _0x27d6(_0x1f36b4,_0x2325d8){_0x1f36b4=_0x1f36b4-0x178;const _0x327c2d=_0x327c();let _0x27d668=_0x327c2d[_0x1f36b4];return _0x27d668;}export async function exitPlanMode(_0x5ab236){const _0xa889d=_0x27d6,_0x396bfe={'DLQmF':function(_0x4543c7,_0x5ab276){return _0x4543c7(_0x5ab276);}},_0x50d70a=await getEnabledSessionId(_0x5ab236);if(!_0x50d70a)return;_0x396bfe[_0xa889d(0x17a)](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}function _0x327c(){const _0x424df1=['2673QhqtnE','6824485yugUBT','70864voHrCP','56SPxJXW','12288HApMkV','7001588HDjPaG','DLQmF','360786mDiJIO','9245360ltfYKS','20vuzXJo','23xtdSnF','28347nKPxFZ'];_0x327c=function(){return _0x424df1;};return _0x327c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2ad622,_0x589047){var _0xc374ce=_0xaac1,_0x21c83b=_0x2ad622();while(!![]){try{var _0x30c9ea=parseInt(_0xc374ce(0x18a))/0x1*(parseInt(_0xc374ce(0x188))/0x2)+-parseInt(_0xc374ce(0x18b))/0x3+parseInt(_0xc374ce(0x192))/0x4*(parseInt(_0xc374ce(0x18d))/0x5)+-parseInt(_0xc374ce(0x18f))/0x6+-parseInt(_0xc374ce(0x190))/0x7*(parseInt(_0xc374ce(0x18c))/0x8)+-parseInt(_0xc374ce(0x193))/0x9*(-parseInt(_0xc374ce(0x18e))/0xa)+parseInt(_0xc374ce(0x189))/0xb*(-parseInt(_0xc374ce(0x191))/0xc);if(_0x30c9ea===_0x589047)break;else _0x21c83b['push'](_0x21c83b['shift']());}catch(_0x3b9558){_0x21c83b['push'](_0x21c83b['shift']());}}}(_0x40b1,0xc2082));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';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';export{enable}from'./enable.js';function _0x40b1(){var _0x3564c0=['2361006deBgXy','8gwPsvZ','397340gUyoov','14985730sAjFuQ','1240770YXKEcq','1451023ashOaq','4637964ZPctMW','68YxXDDm','9yOpYLS','2fWKKbI','44cduMMz','692299xdewns'];_0x40b1=function(){return _0x3564c0;};return _0x40b1();}function _0xaac1(_0x49267b,_0x10cecc){_0x49267b=_0x49267b-0x188;var _0x40b137=_0x40b1();var _0xaac12d=_0x40b137[_0x49267b];return _0xaac12d;}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3db523,_0x12f216){const _0xf28f40=_0x2011,_0x382881=_0x3db523();while(!![]){try{const _0x5d82f0=-parseInt(_0xf28f40(0xd2))/0x1*(parseInt(_0xf28f40(0xcd))/0x2)+parseInt(_0xf28f40(0xd8))/0x3*(-parseInt(_0xf28f40(0xcc))/0x4)+parseInt(_0xf28f40(0xd3))/0x5*(parseInt(_0xf28f40(0xce))/0x6)+-parseInt(_0xf28f40(0xd0))/0x7+parseInt(_0xf28f40(0xcf))/0x8+parseInt(_0xf28f40(0xd7))/0x9+parseInt(_0xf28f40(0xd9))/0xa;if(_0x5d82f0===_0x12f216)break;else _0x382881['push'](_0x382881['shift']());}catch(_0xf049c0){_0x382881['push'](_0x382881['shift']());}}}(_0x17cb,0xa67d4));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x2011(_0x149917,_0x21514b){_0x149917=_0x149917-0xcc;const _0x17cb57=_0x17cb();let _0x201175=_0x17cb57[_0x149917];return _0x201175;}export function printBlock(_0xf2d05c){console['log'](_0xf2d05c);}export async function readHookInput(){const _0x690aee=_0x2011;let _0x4a6dac='';try{for await(const _0x19c36b of process[_0x690aee(0xd6)]){_0x4a6dac+=_0x19c36b;}}catch{return null;}if(!_0x4a6dac[_0x690aee(0xd5)]())return null;try{return JSON[_0x690aee(0xd1)](_0x4a6dac);}catch{return null;}}export async function getEnabledSessionId(_0x2fc508){const _0x30f4ee=_0x2011,_0x1b6103={'uasUV':function(_0x2b15a8,_0x122415){return _0x2b15a8(_0x122415);},'vOsof':function(_0x7ebe7c,_0x4af887){return _0x7ebe7c(_0x4af887);}};if(_0x2fc508)return _0x1b6103['uasUV'](isSessionEnabled,_0x2fc508)?_0x2fc508:null;const _0x319ed1=await readHookInput(),_0x5e3d55=_0x319ed1?.[_0x30f4ee(0xd4)];if(!_0x5e3d55||!_0x1b6103['vOsof'](isSessionEnabled,_0x5e3d55))return null;return _0x5e3d55;}export async function getEnabledHookContext(_0x502aa8){const _0x528a88=_0x2011,_0x53c9b1={'XUxFT':function(_0x390b21){return _0x390b21();}};if(_0x502aa8){if(!isSessionEnabled(_0x502aa8))return null;return{'sessionId':_0x502aa8,'input':{'session_id':_0x502aa8}};}const _0xe55d74=await _0x53c9b1['XUxFT'](readHookInput),_0x35148d=_0xe55d74?.[_0x528a88(0xd4)];if(!_0x35148d||!isSessionEnabled(_0x35148d))return null;return{'sessionId':_0x35148d,'input':_0xe55d74};}function _0x17cb(){const _0x4ec587=['1029296ovpKCn','8995455sZyyQX','parse','7ZsRlpR','450295UlUuzF','session_id','trim','stdin','7424748WAutWI','3ZStstH','11523670hGKwIs','870448IcjAeQ','106194XpqMJu','30cSHKVx'];_0x17cb=function(){return _0x4ec587;};return _0x17cb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c6680,_0x37a526){const _0x5ac5ad=_0x51f0,_0x3eb170=_0x4c6680();while(!![]){try{const _0x3876b0=-parseInt(_0x5ac5ad(0xe7))/0x1+-parseInt(_0x5ac5ad(0xef))/0x2+-parseInt(_0x5ac5ad(0xf5))/0x3+parseInt(_0x5ac5ad(0xf3))/0x4*(parseInt(_0x5ac5ad(0xf1))/0x5)+-parseInt(_0x5ac5ad(0xf0))/0x6*(parseInt(_0x5ac5ad(0xf2))/0x7)+-parseInt(_0x5ac5ad(0xee))/0x8+parseInt(_0x5ac5ad(0xf4))/0x9*(parseInt(_0x5ac5ad(0xeb))/0xa);if(_0x3876b0===_0x37a526)break;else _0x3eb170['push'](_0x3eb170['shift']());}catch(_0x156403){_0x3eb170['push'](_0x3eb170['shift']());}}}(_0x2799,0xc93d1));function _0x51f0(_0x2987b0,_0x3bf5d1){_0x2987b0=_0x2987b0-0xe7;const _0x27998c=_0x2799();let _0x51f042=_0x27998c[_0x2987b0];return _0x51f042;}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x2799(){const _0xec129b=['4617438lrYzxG','1260226VMaNvV','input','lqcIM','xLJKE','33040TzFDRj','===\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===','sessionId','1178624UiPlHi','1346614qokwrn','2357352pNDitz','465UctjMY','7ykQvZQ','3984rqnnMe','12924ukVIfT'];_0x2799=function(){return _0xec129b;};return _0x2799();}export async function planReminder(_0x41f1b7){const _0x5eb0a8=_0x51f0,_0x483cfc={'lqcIM':function(_0x47e2d1,_0x1cda25){return _0x47e2d1(_0x1cda25);},'xLJKE':function(_0x5b15eb,_0x2f1961){return _0x5b15eb(_0x2f1961);}},_0xcfdd9a=await _0x483cfc[_0x5eb0a8(0xe9)](getEnabledHookContext,_0x41f1b7);if(!_0xcfdd9a)return;if(_0xcfdd9a[_0x5eb0a8(0xe8)]['permission_mode']!=='plan')return;if(!_0x483cfc[_0x5eb0a8(0xe9)](shouldShowPlanReminder,_0xcfdd9a[_0x5eb0a8(0xed)]))return;_0x483cfc[_0x5eb0a8(0xea)](printBlock,_0x5eb0a8(0xec));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32b0db,_0x12d478){const _0x39bd71=_0x5e73,_0x662277=_0x32b0db();while(!![]){try{const _0x1a2779=-parseInt(_0x39bd71(0x199))/0x1+parseInt(_0x39bd71(0x197))/0x2*(-parseInt(_0x39bd71(0x1a1))/0x3)+-parseInt(_0x39bd71(0x19c))/0x4*(-parseInt(_0x39bd71(0x19f))/0x5)+parseInt(_0x39bd71(0x1a0))/0x6*(-parseInt(_0x39bd71(0x198))/0x7)+-parseInt(_0x39bd71(0x19e))/0x8*(-parseInt(_0x39bd71(0x19a))/0x9)+parseInt(_0x39bd71(0x19d))/0xa+parseInt(_0x39bd71(0x19b))/0xb;if(_0x1a2779===_0x12d478)break;else _0x662277['push'](_0x662277['shift']());}catch(_0x1df724){_0x662277['push'](_0x662277['shift']());}}}(_0x170b,0x1d837));function _0x5e73(_0x4c0ce7,_0x50f078){_0x4c0ce7=_0x4c0ce7-0x197;const _0x170ba8=_0x170b();let _0x5e73b6=_0x170ba8[_0x4c0ce7];return _0x5e73b6;}function _0x170b(){const _0x5b6d68=['1076691glPzVI','4ZIcMKu','366090viZndS','8YbFlDD','755815ESLKYH','12iecukS','324867QxMDfQ','===\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===','2uuErRP','180173lseWFV','30005dbqHGt','225054DcTqZJ'];_0x170b=function(){return _0x5b6d68;};return _0x170b();}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x57c94e){const _0x89adc7=_0x5e73,_0x4674f={'HIkwc':function(_0x25b850,_0x1ecfd3){return _0x25b850(_0x1ecfd3);}},_0x5b8c75=await getEnabledSessionId(_0x57c94e);if(!_0x5b8c75)return;_0x4674f['HIkwc'](printBlock,_0x89adc7(0x1a2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1d4777,_0x339f25){const _0x3e3ea5=_0x470d,_0x55777f=_0x1d4777();while(!![]){try{const _0x4a5673=-parseInt(_0x3e3ea5(0x14a))/0x1*(-parseInt(_0x3e3ea5(0x155))/0x2)+-parseInt(_0x3e3ea5(0x14f))/0x3*(parseInt(_0x3e3ea5(0x159))/0x4)+-parseInt(_0x3e3ea5(0x157))/0x5*(-parseInt(_0x3e3ea5(0x154))/0x6)+parseInt(_0x3e3ea5(0x14b))/0x7*(-parseInt(_0x3e3ea5(0x152))/0x8)+-parseInt(_0x3e3ea5(0x158))/0x9*(parseInt(_0x3e3ea5(0x156))/0xa)+parseInt(_0x3e3ea5(0x149))/0xb*(parseInt(_0x3e3ea5(0x153))/0xc)+-parseInt(_0x3e3ea5(0x148))/0xd;if(_0x4a5673===_0x339f25)break;else _0x55777f['push'](_0x55777f['shift']());}catch(_0x2ad18b){_0x55777f['push'](_0x55777f['shift']());}}}(_0x221d,0x749f3));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x470d(_0x17c711,_0xa3c532){_0x17c711=_0x17c711-0x148;const _0x221d66=_0x221d();let _0x470d7a=_0x221d66[_0x17c711];return _0x470d7a;}function _0x221d(){const _0x313b6c=['3DVKzrk','log','PostToolUse','24OAaPXo','7487196lbOBtf','4161516vsEAYB','27294ScyUfh','54160jOAfkR','5nRyBjk','432EQGTfR','3365780YAxdli','NhtJM','7942805prVaYJ','11KwnBKD','65gGSyYv','33817CutlCv','OULad','stringify','ruHYl'];_0x221d=function(){return _0x313b6c;};return _0x221d();}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x38cbc9){const _0x4c9d16=_0x470d,_0x3791ee={'ruHYl':function(_0x53e7f4,_0x5bfd4b){return _0x53e7f4(_0x5bfd4b);},'OULad':function(_0x572660,_0x16d43b){return _0x572660(_0x16d43b);},'NhtJM':function(_0x4646b2){return _0x4646b2();}},_0x3904a9=await _0x3791ee[_0x4c9d16(0x14e)](getEnabledSessionId,_0x38cbc9);if(!_0x3904a9)return;_0x3791ee[_0x4c9d16(0x14c)](updateBranchTracking,_0x3904a9);const _0x433bb7=await _0x3791ee[_0x4c9d16(0x15a)](getToken);if(!_0x433bb7)return;const _0x59936f=getSessionEntry(_0x3904a9);if(_0x59936f){const _0xca38a5={'hookSpecificOutput':{'hookEventName':_0x4c9d16(0x151),'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console[_0x4c9d16(0x150)](JSON[_0x4c9d16(0x14d)](_0xca38a5));return;}const _0x4acae0={'hookSpecificOutput':{'hookEventName':'PostToolUse','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[_0x4c9d16(0x14d)](_0x4acae0));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x217c(){const _0x484fb0=['10442270kqQHVE','1437SxzkVe','===\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`.','7945Bwrkev','1204uVJTFH','orSzP','1196BfwBNM','11SVTjkC','106173CcPgmJ','438539vBvSyG','2276556XDcYua','8ifwIgB','644763CFwlVv'];_0x217c=function(){return _0x484fb0;};return _0x217c();}(function(_0x2c0c00,_0x3ea245){const _0x31b53d=_0x4309,_0x167040=_0x2c0c00();while(!![]){try{const _0x45162d=parseInt(_0x31b53d(0x1b4))/0x1+-parseInt(_0x31b53d(0x1bc))/0x2*(parseInt(_0x31b53d(0x1b9))/0x3)+parseInt(_0x31b53d(0x1b1))/0x4*(-parseInt(_0x31b53d(0x1bb))/0x5)+-parseInt(_0x31b53d(0x1b5))/0x6+-parseInt(_0x31b53d(0x1b7))/0x7+-parseInt(_0x31b53d(0x1b6))/0x8*(-parseInt(_0x31b53d(0x1b3))/0x9)+parseInt(_0x31b53d(0x1b8))/0xa*(parseInt(_0x31b53d(0x1b2))/0xb);if(_0x45162d===_0x3ea245)break;else _0x167040['push'](_0x167040['shift']());}catch(_0x1c8e3b){_0x167040['push'](_0x167040['shift']());}}}(_0x217c,0x3f5e7));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x4309(_0x32572a,_0x2afeeb){_0x32572a=_0x32572a-0x1b0;const _0x217c98=_0x217c();let _0x43095b=_0x217c98[_0x32572a];return _0x43095b;}export async function preCompact(_0x312782){const _0x3d4bf0=_0x4309,_0xa85081={'orSzP':function(_0x2ad1a8,_0x2359d4){return _0x2ad1a8(_0x2359d4);}},_0x458b78=await getEnabledSessionId(_0x312782);if(!_0x458b78)return;try{const _0x9cbe76=await getToken();if(!_0x9cbe76)return;_0xa85081[_0x3d4bf0(0x1b0)](printBlock,_0x3d4bf0(0x1ba));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x390f43,_0x131cff){const _0x505edd=_0x5d01,_0x5b2470=_0x390f43();while(!![]){try{const _0x3295b4=parseInt(_0x505edd(0x10d))/0x1+parseInt(_0x505edd(0x109))/0x2+parseInt(_0x505edd(0x107))/0x3+parseInt(_0x505edd(0x10c))/0x4+-parseInt(_0x505edd(0x106))/0x5*(parseInt(_0x505edd(0x104))/0x6)+parseInt(_0x505edd(0x103))/0x7+-parseInt(_0x505edd(0x10b))/0x8;if(_0x3295b4===_0x131cff)break;else _0x5b2470['push'](_0x5b2470['shift']());}catch(_0x478c9b){_0x5b2470['push'](_0x5b2470['shift']());}}}(_0x5e2c,0xf0258));function _0x5e2c(){const _0x454f10=['27258800vUxeQL','4693716KOaUTe','1265932kpoVca','clear','session_id','12508048ygkLbT','809886eTYMcB','env','45RMMgfs','743616tGjOuF','yQfiU','2263444HVboua','AjjzU'];_0x5e2c=function(){return _0x454f10;};return _0x5e2c();}import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';function _0x5d01(_0x456fe2,_0xa128f7){_0x456fe2=_0x456fe2-0x101;const _0x5e2c20=_0x5e2c();let _0x5d01de=_0x5e2c20[_0x456fe2];return _0x5d01de;}export async function sessionEnd(_0x2c271e){const _0x46558d=_0x5d01,_0x37d222={'AjjzU':function(_0xc49284,_0x5077d3){return _0xc49284===_0x5077d3;},'hbfro':_0x46558d(0x101),'yQfiU':function(_0x2be928,_0x102155){return _0x2be928(_0x102155);}},_0xb903ce=process[_0x46558d(0x105)]['CLAUDE_SESSION_ID'];let _0x2df850=_0x2c271e,_0x11b101;if(!_0x2c271e){if(_0xb903ce&&!isSessionEnabled(_0xb903ce))return;const _0x1a9b09=await readHookInput();_0x2df850=_0x1a9b09?.[_0x46558d(0x102)]||_0xb903ce,_0x11b101=_0x1a9b09?.['reason'];}if(!_0x2df850)return;_0x37d222[_0x46558d(0x10a)](_0x11b101,_0x37d222['hbfro'])&&_0x37d222[_0x46558d(0x108)](recordEnabledSessionCleared,_0x2df850);}
|