@ranger-testing/ranger-cli 2.4.4 → 2.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/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 _0x535979=_0x6897;(function(_0x153894,_0x237af9){const _0x40df06=_0x6897,_0x37eb69=_0x153894();while(!![]){try{const _0x1c62c6=-parseInt(_0x40df06(0x107))/0x1+parseInt(_0x40df06(0x108))/0x2*(parseInt(_0x40df06(0x10b))/0x3)+parseInt(_0x40df06(0x10c))/0x4+parseInt(_0x40df06(0x10f))/0x5*(-parseInt(_0x40df06(0x106))/0x6)+-parseInt(_0x40df06(0x100))/0x7+-parseInt(_0x40df06(0x105))/0x8*(parseInt(_0x40df06(0x112))/0x9)+parseInt(_0x40df06(0x10e))/0xa;if(_0x1c62c6===_0x237af9)break;else _0x37eb69['push'](_0x37eb69['shift']());}catch(_0x3d14d3){_0x37eb69['push'](_0x37eb69['shift']());}}}(_0x38aa,0x46b2d));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x535979(0x10d)];function parseValue(_0x34500d,_0x229c6f){const _0x2ebb3f=_0x535979,_0x1cab25={'BRSDR':function(_0x18a6e2,_0x5922e4){return _0x18a6e2===_0x5922e4;}};if(BOOLEAN_KEYS['includes'](_0x34500d)){if(_0x1cab25['BRSDR'](_0x229c6f,_0x2ebb3f(0x111)))return!![];if(_0x229c6f===_0x2ebb3f(0x102))return![];throw new Error(_0x2ebb3f(0x114)+_0x34500d+_0x2ebb3f(0x109));}return _0x229c6f;}export async function configSet(_0x1f01bf,_0xf0477c,_0x2db7e8){const _0xc2e7e8=_0x535979,_0x3eeadf={'Bkcrg':function(_0x16e033,_0x5f033a){return _0x16e033(_0x5f033a);},'jxLRT':function(_0x1e4a6c,_0x123940,_0x2389b7){return _0x1e4a6c(_0x123940,_0x2389b7);}},_0x3f9950=_0x3eeadf[_0xc2e7e8(0x115)](getEnvDir,_0x1f01bf);if(!_0x3eeadf['Bkcrg'](existsSync,_0x3f9950))throw new Error('Profile\x20\x22'+_0x1f01bf+_0xc2e7e8(0x10a)+_0x1f01bf);const _0x293938=await loadSettings(_0x1f01bf),_0xb89c80=_0x3eeadf[_0xc2e7e8(0x101)](parseValue,_0xf0477c,_0x2db7e8);setNestedValue(_0x293938,_0xf0477c,_0xb89c80),await saveSettings(_0x1f01bf,_0x293938),console['log']('Set\x20'+_0xf0477c+'\x20=\x20'+_0xb89c80);}function _0x6897(_0x353695,_0x5450e3){_0x353695=_0x353695-0xff;const _0x38aa73=_0x38aa();let _0x6897a2=_0x38aa73[_0x353695];return _0x6897a2;}export async function configGet(_0x6ccfdf,_0x25a5bd){const _0x3b6fd2=_0x535979,_0x5a3645={'unOZH':function(_0x45d12f,_0x1a64ee){return _0x45d12f(_0x1a64ee);},'gxAOK':function(_0x1630f0,_0x4b2c57,_0x3c36a5){return _0x1630f0(_0x4b2c57,_0x3c36a5);},'mSXfR':function(_0x4cae8c,_0x162733){return _0x4cae8c===_0x162733;},'NiMvF':function(_0x43f453,_0x3d0ae8){return _0x43f453===_0x3d0ae8;},'EZqVH':'object'},_0x53f57c=_0x5a3645['unOZH'](getEnvDir,_0x6ccfdf);if(!existsSync(_0x53f57c))throw new Error('Profile\x20\x22'+_0x6ccfdf+'\x22\x20does\x20not\x20exist.');const _0x3caed3=await loadSettings(_0x6ccfdf),_0x5f45d7=_0x5a3645[_0x3b6fd2(0x103)](getNestedValue,_0x3caed3,_0x25a5bd);if(_0x5a3645['mSXfR'](_0x5f45d7,undefined))console['log']('(not\x20set)');else _0x5a3645['NiMvF'](typeof _0x5f45d7,_0x5a3645['EZqVH'])?console['log'](JSON['stringify'](_0x5f45d7,null,0x2)):console['log'](_0x5f45d7);}function _0x38aa(){const _0xc871bf=['true','5823bCjTvM','log','Invalid\x20value\x20for\x20','Bkcrg','Removed\x20','aIxqD','2090249tFJOFu','jxLRT','false','gxAOK','\x22\x20does\x20not\x20exist.','5432KRgXJz','42friKko','179905xpHpGS','79886mNrTbM',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','3YlWGAE','455076VnxTjn','allowInsecureLocalhost','11878490JbGHGz','95825BCmshi','No\x20configuration\x20set\x20for\x20\x22'];_0x38aa=function(){return _0xc871bf;};return _0x38aa();}export async function configList(_0x29e02a){const _0x5d0b8f=_0x535979,_0x318233={'aIxqD':function(_0x29f0fc,_0x3218c9){return _0x29f0fc(_0x3218c9);}},_0x293cf3=_0x318233['aIxqD'](getSettingsPath,_0x29e02a);if(!existsSync(_0x293cf3)){const _0x4f8506=_0x318233[_0x5d0b8f(0xff)](getEnvDir,_0x29e02a);if(!existsSync(_0x4f8506))throw new Error('Profile\x20\x22'+_0x29e02a+'\x22\x20does\x20not\x20exist.');console['log'](_0x5d0b8f(0x110)+_0x29e02a+'\x22');return;}const _0x12b5da=await loadSettings(_0x29e02a),_0x20fbee=formatSettings(_0x12b5da);!_0x20fbee?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x29e02a+'\x22'):console[_0x5d0b8f(0x113)](_0x20fbee);}export async function configUnset(_0x171691,_0x2767a7){const _0x250e3f=_0x535979,_0x2b2f41={'LPYDt':function(_0x5d8514,_0x3351e6){return _0x5d8514(_0x3351e6);},'ZNTlj':function(_0x1d5d7c,_0x29228b,_0x3cb267){return _0x1d5d7c(_0x29228b,_0x3cb267);}},_0x28ec0f=getEnvDir(_0x171691);if(!existsSync(_0x28ec0f))throw new Error('Profile\x20\x22'+_0x171691+_0x250e3f(0x104));const _0x2775a9=await _0x2b2f41['LPYDt'](loadSettings,_0x171691),_0x445fdb=deleteNestedValue(_0x2775a9,_0x2767a7);_0x445fdb?(await _0x2b2f41['ZNTlj'](saveSettings,_0x171691,_0x2775a9),console[_0x250e3f(0x113)](_0x250e3f(0x116)+_0x2767a7)):console['log']('Key\x20\x22'+_0x2767a7+'\x22\x20not\x20found');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x108234=_0x3a86;function _0x56aa(){const _0x42a642=['24onpVhp','reports','SpQRS','environmentDetails','log','YMHPz','settings.json','1988693hQPiie','Yugtq','baseUrl','68828mXoGKW','KHhkU','\x20\x20\x20\x20\x20\x20URL:\x20','2429162rlQIaC','\x0aProfiles:','504459YWtaWO','length','oQqGG','sort','GynCU','10pvVMrx','push','\x0aNo\x20profiles\x20found.','6940190muBCaI','iScaV','55TIGfzH','.txt','177gUlAkB','853043lLTppM','mWjRa','1265466BVIaIe','local','isDirectory'];_0x56aa=function(){return _0x42a642;};return _0x56aa();}(function(_0x48c8f6,_0x3c1bc6){const _0x2707fd=_0x3a86,_0x2ce7f7=_0x48c8f6();while(!![]){try{const _0x5ecff4=-parseInt(_0x2707fd(0x12c))/0x1+-parseInt(_0x2707fd(0x11d))/0x2+-parseInt(_0x2707fd(0x12b))/0x3*(parseInt(_0x2707fd(0x11a))/0x4)+parseInt(_0x2707fd(0x124))/0x5*(-parseInt(_0x2707fd(0x12e))/0x6)+parseInt(_0x2707fd(0x117))/0x7*(parseInt(_0x2707fd(0x131))/0x8)+-parseInt(_0x2707fd(0x11f))/0x9+-parseInt(_0x2707fd(0x127))/0xa*(-parseInt(_0x2707fd(0x129))/0xb);if(_0x5ecff4===_0x3c1bc6)break;else _0x2ce7f7['push'](_0x2ce7f7['shift']());}catch(_0x354be9){_0x2ce7f7['push'](_0x2ce7f7['shift']());}}}(_0x56aa,0xb9f52));import{readdir,stat}from'fs/promises';import{join}from'path';function _0x3a86(_0x685973,_0xd581da){_0x685973=_0x685973-0x111;const _0x56aaab=_0x56aa();let _0x3a8659=_0x56aaab[_0x685973];return _0x3a8659;}import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes',_0x108234(0x111),_0x108234(0x12f),'ci'];export async function getEnvNames(){const _0x1cfcea=_0x108234,_0x229d87={'YMHPz':function(_0x55963f,_0x26e0dc){return _0x55963f(_0x26e0dc);},'mWjRa':function(_0x259827){return _0x259827();},'KHhkU':_0x1cfcea(0x12f),'hqYqf':function(_0x415be5,_0x869a72){return _0x415be5(_0x869a72);},'GynCU':function(_0x103cda,_0x24bf4f){return _0x103cda(_0x24bf4f);},'SpQRS':function(_0x56e52c,_0x542a8a,_0x169ef9){return _0x56e52c(_0x542a8a,_0x169ef9);},'iScaV':function(_0x53a174,_0x4b2920){return _0x53a174(_0x4b2920);},'oQqGG':function(_0x2e8880,_0xb28de3,_0x3c9d2a){return _0x2e8880(_0xb28de3,_0x3c9d2a);},'xxurA':'legacy'},_0x4a6bfe=getRangerDir();if(!_0x229d87['YMHPz'](existsSync,_0x4a6bfe))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5465fd=await _0x229d87[_0x1cfcea(0x12d)](readActiveProfileName),_0x4c8514=[],_0x8d1005={},_0x81b27e=join(_0x4a6bfe,_0x229d87[_0x1cfcea(0x11b)]);if(_0x229d87['hqYqf'](existsSync,_0x81b27e)){const _0x206daf=await _0x229d87[_0x1cfcea(0x123)](readdir,_0x81b27e);for(const _0x82ff6c of _0x206daf){const _0x1b6165=join(_0x81b27e,_0x82ff6c),_0x4738bf=await _0x229d87[_0x1cfcea(0x115)](stat,_0x1b6165);_0x4738bf[_0x1cfcea(0x130)]()&&(_0x4c8514[_0x1cfcea(0x125)](_0x82ff6c),_0x8d1005[_0x82ff6c]='local');}}const _0x338c8c=_0x229d87[_0x1cfcea(0x112)](join,_0x4a6bfe,'ci');if(existsSync(_0x338c8c)){const _0x3b35c8=await readdir(_0x338c8c);for(const _0x1e1397 of _0x3b35c8){const _0x359246=_0x229d87[_0x1cfcea(0x112)](join,_0x338c8c,_0x1e1397),_0x29a8c1=await _0x229d87[_0x1cfcea(0x128)](stat,_0x359246);_0x29a8c1[_0x1cfcea(0x130)]()&&(_0x4c8514[_0x1cfcea(0x125)](_0x1e1397),_0x8d1005[_0x1e1397]='ci');}}const _0x3ff021=await readdir(_0x4a6bfe);for(const _0x4fea17 of _0x3ff021){if(NON_ENV_DIRS['includes'](_0x4fea17))continue;if(_0x4fea17['startsWith']('.'))continue;if(_0x4fea17['endsWith'](_0x1cfcea(0x12a)))continue;const _0x4b326e=join(_0x4a6bfe,_0x4fea17),_0x16d838=await stat(_0x4b326e);_0x16d838['isDirectory']()&&existsSync(_0x229d87[_0x1cfcea(0x121)](join,_0x4b326e,_0x1cfcea(0x116)))&&(!_0x4c8514['includes'](_0x4fea17)&&(_0x4c8514['push'](_0x4fea17),_0x8d1005[_0x4fea17]=_0x229d87['xxurA']));}return{'envNames':_0x4c8514,'activeEnv':_0x5465fd,'envTypes':_0x8d1005};}export async function envList(){const _0x21b979=_0x108234,_0x2a776f={'LfhFe':function(_0x51cf43,_0x32c8b4){return _0x51cf43===_0x32c8b4;},'FszyS':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','Yugtq':_0x21b979(0x12f)},{envNames:_0x3c4a2e,activeEnv:_0x563a5a,envTypes:_0x17a63e}=await getEnvNames();if(_0x2a776f['LfhFe'](_0x3c4a2e[_0x21b979(0x120)],0x0)){console[_0x21b979(0x114)](_0x21b979(0x126)),console['log'](_0x2a776f['FszyS']);return;}console['log'](_0x21b979(0x11e));for(const _0x5414f7 of _0x3c4a2e[_0x21b979(0x122)]()){const _0x48a752=_0x5414f7===_0x563a5a,_0x49222a=_0x17a63e[_0x5414f7]||_0x2a776f[_0x21b979(0x118)],_0xc03ec2=await loadSettings(_0x5414f7),_0x1b546f=_0x49222a==='legacy'?'':'\x20['+_0x49222a+']';console[_0x21b979(0x114)]('\x20\x20'+(_0x48a752?'*\x20':'\x20\x20')+_0x5414f7+_0x1b546f),_0xc03ec2[_0x21b979(0x119)]&&console['log'](_0x21b979(0x11c)+_0xc03ec2[_0x21b979(0x119)]),_0xc03ec2[_0x21b979(0x113)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0xc03ec2[_0x21b979(0x113)]);}_0x563a5a&&console[_0x21b979(0x114)]('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -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
|
+
(function(_0x4bed91,_0x574ca8){const _0x50c6af=_0x5c21,_0x2f1017=_0x4bed91();while(!![]){try{const _0x3557ed=parseInt(_0x50c6af(0x1db))/0x1+parseInt(_0x50c6af(0x23d))/0x2*(-parseInt(_0x50c6af(0x256))/0x3)+-parseInt(_0x50c6af(0x1c6))/0x4*(-parseInt(_0x50c6af(0x1b9))/0x5)+parseInt(_0x50c6af(0x1e9))/0x6*(parseInt(_0x50c6af(0x1cd))/0x7)+-parseInt(_0x50c6af(0x1dd))/0x8+parseInt(_0x50c6af(0x202))/0x9+-parseInt(_0x50c6af(0x1b8))/0xa;if(_0x3557ed===_0x574ca8)break;else _0x2f1017['push'](_0x2f1017['shift']());}catch(_0x3bb198){_0x2f1017['push'](_0x2f1017['shift']());}}}(_0x3ef3,0x8efe6));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5f1fe5 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=_0x2a7fc3=>'\x1b[1m'+_0x2a7fc3+'\x1b[0m';function getGitRepoUrl(){const _0x22f50d=_0x5c21,_0xc47034={'YHDLc':function(_0x3f4a9a,_0x2b6b28,_0x3c5797){return _0x3f4a9a(_0x2b6b28,_0x3c5797);},'fyofK':'utf-8','NnrXe':'pipe'};try{const _0x29b737=_0xc47034[_0x22f50d(0x259)](execSync,_0x22f50d(0x250),{'encoding':_0xc47034[_0x22f50d(0x198)],'stdio':[_0xc47034[_0x22f50d(0x251)],'pipe',_0xc47034[_0x22f50d(0x251)]]})[_0x22f50d(0x189)]();return _0x29b737[_0x22f50d(0x245)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x22f50d(0x21d))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5c3351=_0x5c21,_0x4c38f8={'tnPJE':'pipe'};try{return execSync(_0x5c3351(0x1fd),{'encoding':'utf-8','stdio':[_0x5c3351(0x212),_0x4c38f8[_0x5c3351(0x19f)],_0x4c38f8['tnPJE']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4009a4=_0x5c21,_0x680eeb={'jUJHE':function(_0x1e13f8){return _0x1e13f8();},'RasPC':function(_0x523df0,_0x1170ad){return _0x523df0(_0x1170ad);},'xtjKf':function(_0x244540,_0x1cc75c,_0x24fb22){return _0x244540(_0x1cc75c,_0x24fb22);},'zrkFX':'utf-8'},_0x37a002=join(_0x680eeb['jUJHE'](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x680eeb[_0x4009a4(0x1de)](existsSync,_0x37a002))return null;try{const _0x5be2df=await _0x680eeb['xtjKf'](readFile,_0x37a002,_0x680eeb['zrkFX']);return _0x5be2df['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x1784aa){const _0x372684=_0x5c21,_0x2d9cb8={'MwknI':function(_0x506834,_0x2b3d98,_0x266b86){return _0x506834(_0x2b3d98,_0x266b86);}},_0x12a588=getRangerDir(),_0x5e25d6=join(_0x12a588,ACTIVE_FEATURE_FILE);!existsSync(_0x12a588)&&await _0x2d9cb8['MwknI'](mkdir,_0x12a588,{'recursive':!![]}),await writeFile(_0x5e25d6,_0x1784aa,_0x372684(0x185));}function getProgressDisplay(_0x50e361){const _0xe03050=_0x5c21,_0x15e6cf={'Rmhst':function(_0x3d256c,_0x3003d6){return _0x3d256c+_0x3003d6;},'yWGIr':function(_0x205019,_0x2dcb71){return _0x205019-_0x2dcb71;},'htqap':function(_0x33820e,_0x3e6854){return _0x33820e>_0x3e6854;}},_0x1a1147=_0x50e361['verifiedItems']||0x0,_0xe2b5e7=_0x50e361['verificationInProgressItems']||0x0,_0x5a42e2=_0x50e361[_0xe03050(0x247)]||0x0,_0x358bad=_0x50e361[_0xe03050(0x22f)]||0x0,_0x5a92f1=_0x50e361['pendingItems']||0x0,_0x21bfaf=_0x15e6cf[_0xe03050(0x18f)](_0x1a1147+_0xe2b5e7,_0x5a42e2)+_0x358bad+_0x5a92f1;if(_0x21bfaf===0x0)return'-';const _0x57df75=0xa,_0xc793fa=Math['round'](_0x1a1147/_0x21bfaf*_0x57df75),_0x591c50=_0x15e6cf[_0xe03050(0x18f)]('█'['repeat'](_0xc793fa),'░'['repeat'](_0x15e6cf['yWGIr'](_0x57df75,_0xc793fa))),_0x267414=[];if(_0x5a42e2>0x0)_0x267414[_0xe03050(0x181)](_0x5a42e2+'\x20blocked');if(_0x358bad>0x0)_0x267414[_0xe03050(0x181)](_0x358bad+'\x20incomplete');if(_0xe2b5e7>0x0)_0x267414[_0xe03050(0x181)](_0xe2b5e7+'\x20in\x20progress');const _0x2702b2=_0x15e6cf['htqap'](_0x267414[_0xe03050(0x18c)],0x0)?'\x20('+_0x267414[_0xe03050(0x1af)](',\x20')+')':'';return _0x591c50+'\x20'+_0x1a1147+'/'+_0x21bfaf+'\x20verified'+_0x2702b2;}function getCurrentSessionItems(_0x50caa6,_0x30ed83){const _0x5511c2=_0x5c21;if(!_0x50caa6[_0x5511c2(0x228)])return _0x30ed83[_0x5511c2(0x1ab)](_0x1ac113=>!_0x1ac113['sessionId']);return _0x30ed83[_0x5511c2(0x1ab)](_0x357de2=>_0x357de2[_0x5511c2(0x1e8)]===_0x50caa6[_0x5511c2(0x228)]||!_0x357de2[_0x5511c2(0x1e8)]);}function displayFeature(_0x26fffd,_0x561510){const _0x4310b5=_0x5c21,_0x107924={'kTgkJ':function(_0x286223,_0x4f2216){return _0x286223(_0x4f2216);},'VTrgL':function(_0x49c2c9,_0x4fe158){return _0x49c2c9>_0x4fe158;},'pqJBw':_0x4310b5(0x21b),'YuvnZ':function(_0x2d12f8,_0xfb5fac){return _0x2d12f8===_0xfb5fac;},'EsTgd':function(_0x5c1812,_0x35ff6d){return _0x5c1812===_0x35ff6d;},'GtBnL':'verified','zgXqf':'blocked','OkABi':function(_0x218df5,_0x4e220a){return _0x218df5===_0x4e220a;},'RWghd':'verification_in_progress','kqMrz':function(_0xedc3e6,_0xa64e89){return _0xedc3e6+_0xa64e89;},'xfEbF':_0x4310b5(0x23b),'kJxGe':function(_0x1f6fda,_0x591eed){return _0x1f6fda===_0x591eed;},'qpdbB':_0x4310b5(0x206)};console[_0x4310b5(0x21e)]('\x0a'+_0x26fffd[_0x4310b5(0x21a)]+'\x20('+_0x26fffd[_0x4310b5(0x19d)]+')');_0x26fffd['stats']&&console['log'](_0x4310b5(0x21f)+_0x107924[_0x4310b5(0x227)](getProgressDisplay,_0x26fffd['stats']));_0x26fffd[_0x4310b5(0x246)]&&console['log']('\x20\x20\x20Description:\x20'+_0x26fffd[_0x4310b5(0x246)]);_0x26fffd['gitRepoUrl']&&console[_0x4310b5(0x21e)](_0x4310b5(0x1b4)+_0x26fffd[_0x4310b5(0x1fe)]);_0x26fffd[_0x4310b5(0x1e6)]&&console[_0x4310b5(0x21e)](_0x4310b5(0x191)+_0x26fffd[_0x4310b5(0x1e6)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x26fffd['createdAt'])['toLocaleString']());_0x26fffd['completedAt']&&console[_0x4310b5(0x21e)]('\x20\x20\x20Completed:\x20'+new Date(_0x26fffd['completedAt'])[_0x4310b5(0x213)]());if(_0x561510&&_0x107924[_0x4310b5(0x1cf)](_0x561510['length'],0x0)){console['log'](_0x107924['pqJBw']);for(let _0x21b84c=0x0;_0x21b84c<_0x561510[_0x4310b5(0x18c)];_0x21b84c++){const _0x4309fe=_0x561510[_0x21b84c];let _0x3b8c5e;if(_0x107924[_0x4310b5(0x239)](_0x4309fe[_0x4310b5(0x249)],_0x4310b5(0x23b))&&_0x107924[_0x4310b5(0x1da)](_0x4309fe[_0x4310b5(0x195)],'approved'))_0x3b8c5e='✅';else{if(_0x107924[_0x4310b5(0x1da)](_0x4309fe['status'],_0x107924['GtBnL']))_0x3b8c5e='🟢';else{if(_0x4309fe[_0x4310b5(0x249)]===_0x4310b5(0x19e))_0x3b8c5e='🟠';else{if(_0x4309fe[_0x4310b5(0x249)]===_0x107924[_0x4310b5(0x25a)])_0x3b8c5e='🛑';else{if(_0x4309fe['status']===_0x4310b5(0x23b))_0x3b8c5e='⛔';else _0x107924['OkABi'](_0x4309fe['status'],_0x107924['RWghd'])?_0x3b8c5e='⏳':_0x3b8c5e='⬜';}}}}const _0x304692=_0x107924[_0x4310b5(0x1cf)](_0x4309fe[_0x4310b5(0x17f)],0x1)?_0x4310b5(0x24d)+_0x4309fe['version']+')':'',_0x39d8e9=_0x107924[_0x4310b5(0x1cf)](_0x4309fe[_0x4310b5(0x17f)],0x1)&&_0x4309fe[_0x4310b5(0x1a4)]&&_0x4309fe[_0x4310b5(0x249)]!==_0x4310b5(0x23b)&&_0x4309fe['status']!=='verified'?_0x4310b5(0x1cb):'';console[_0x4310b5(0x21e)]('\x20\x20\x20'+_0x107924['kqMrz'](_0x21b84c,0x1)+'.\x20'+_0x3b8c5e+'\x20'+_0x4309fe[_0x4310b5(0x246)]+_0x304692+_0x39d8e9);_0x4309fe['status']===_0x107924[_0x4310b5(0x25a)]&&_0x4309fe['blockedReason']&&console['log'](_0x4310b5(0x241)+_0x4309fe[_0x4310b5(0x216)]);_0x4309fe['status']==='incomplete'&&_0x4309fe[_0x4310b5(0x1bf)]&&console['log'](_0x4310b5(0x1e7)+_0x4309fe[_0x4310b5(0x1bf)]);if(_0x107924[_0x4310b5(0x1da)](_0x4309fe[_0x4310b5(0x249)],_0x107924[_0x4310b5(0x255)])&&_0x107924['kJxGe'](_0x4309fe['terminalReason'],_0x107924[_0x4310b5(0x192)]))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x107924['EsTgd'](_0x4309fe[_0x4310b5(0x249)],'closed')&&_0x4309fe[_0x4310b5(0x254)]&&console['log'](_0x4310b5(0x20c)+_0x4309fe['canceledReason']);}}}export async function featureCreate(_0x568f64,_0x3e4b43){const _0x3cecd1=_0x5c21,_0x34b2b0={'GUYiJ':function(_0x2090b3){return _0x2090b3();},'dOiUX':function(_0x41c306,_0x26ae12){return _0x41c306===_0x26ae12;},'APKGI':_0x3cecd1(0x238),'AIwtS':function(_0x52c8dd,_0x43da31){return _0x52c8dd(_0x43da31);},'fnqAK':function(_0x4dd8f5,_0x2eb109,_0x4b14d8){return _0x4dd8f5(_0x2eb109,_0x4b14d8);}},{envNames:_0x39b957}=await _0x34b2b0['GUYiJ'](getEnvNames);_0x34b2b0['dOiUX'](_0x39b957['length'],0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x5011e5=>bold(_0x5011e5)));const _0x335ef2=_0x3e4b43[_0x3cecd1(0x1a0)]?_0x3e4b43['scenarios'][_0x3cecd1(0x1ad)](_0x611b04=>_0x611b04[_0x3cecd1(0x189)]()):[],_0x46d12b=getGitRepoUrl(),_0x501c6c=getGitBranch();console[_0x3cecd1(0x21e)](_0x34b2b0['APKGI']);const _0x3d9170=await _0x34b2b0[_0x3cecd1(0x190)](createFeature,{'name':_0x568f64,'description':_0x3e4b43['description'],'checklist':_0x335ef2,'gitRepoUrl':_0x46d12b,'gitBranch':_0x501c6c});await setActiveFeatureId(_0x3d9170['id']),await tryStartCurrentSession(_0x3d9170['id']);const _0x342315=process['env'][_0x3cecd1(0x1ef)];_0x342315&®isterSession(_0x342315,_0x3d9170['id']),console[_0x3cecd1(0x21e)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x3d9170['id']),_0x34b2b0[_0x3cecd1(0x242)](displayFeature,_0x3d9170,_0x3d9170['checklistItems']),console['log'](_0x3cecd1(0x252));}export async function featureList(_0x116d62){const _0x137e03=_0x5c21,_0x4a4eb6={'ZDeXq':function(_0x586874){return _0x586874();},'gOQBa':function(_0x25ca8a,_0x4d293e){return _0x25ca8a(_0x4d293e);},'TNYOb':function(_0x39170c,_0x468935){return _0x39170c+_0x468935;},'rjJgt':function(_0x2e1f39,_0xc321aa){return _0x2e1f39!==_0xc321aa;}},_0x1cd544={'limit':_0x116d62[_0x137e03(0x1b7)]??0xa,'offset':_0x116d62[_0x137e03(0x226)]??0x0,'includeDeleted':_0x116d62['includeDeleted']};_0x116d62[_0x137e03(0x1bb)]&&(_0x1cd544['gitRepoUrl']=_0x4a4eb6[_0x137e03(0x22c)](getGitRepoUrl),_0x1cd544[_0x137e03(0x1e6)]=getGitBranch());const _0x3c99c6=await _0x4a4eb6[_0x137e03(0x24a)](listFeatures,_0x1cd544);if(_0x3c99c6['items'][_0x137e03(0x18c)]===0x0){console[_0x137e03(0x21e)]('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x4f8087=_0x3c99c6[_0x137e03(0x205)]>_0x3c99c6['items'][_0x137e03(0x18c)]?'Showing\x20'+_0x3c99c6['items']['length']+_0x137e03(0x1f2)+_0x3c99c6['totalCount']:_0x3c99c6['totalCount']+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x4f8087+':\x0a');for(const _0x267ac0 of _0x3c99c6[_0x137e03(0x19b)]){const _0x1c5e0a='3|4|2|1|0|5'[_0x137e03(0x1fa)]('|');let _0x3c9da0=0x0;while(!![]){switch(_0x1c5e0a[_0x3c9da0++]){case'0':console[_0x137e03(0x21e)]('\x20\x20\x20Created:\x20'+new Date(_0x267ac0['createdAt'])['toLocaleDateString']());continue;case'1':_0x267ac0[_0x137e03(0x1e6)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x267ac0['gitBranch']);continue;case'2':_0x267ac0['stats']&&console['log'](_0x137e03(0x21f)+getProgressDisplay(_0x267ac0[_0x137e03(0x1b5)]));continue;case'3':console['log'](''+_0x267ac0[_0x137e03(0x21a)]);continue;case'4':console['log'](_0x137e03(0x1ec)+_0x267ac0['id']);continue;case'5':console['log']('');continue;}break;}}const _0xddb8ae=_0x1cd544[_0x137e03(0x1b7)]??0xa,_0x364f59=_0x4a4eb6[_0x137e03(0x1fb)](_0x1cd544['offset']??0x0,_0x3c99c6['items']['length']);if(_0x364f59<_0x3c99c6[_0x137e03(0x205)]){const _0x5bd882=_0x4a4eb6['rjJgt'](_0xddb8ae,0xa)?'\x20--limit\x20'+_0xddb8ae:'',_0x4dd249=_0x116d62['currentBranch']?'\x20--current-branch':'',_0x1cd90c=_0x116d62[_0x137e03(0x201)]?'\x20--include-deleted':'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x364f59+_0x5bd882+_0x4dd249+_0x1cd90c);}}export async function featureShow(_0x45c14b){const _0x1c141b=_0x5c21,_0x17de9d={'gLyLk':function(_0x1cdca1){return _0x1cdca1();},'WLseY':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','jMauE':function(_0x252b15,_0x1bbe3b){return _0x252b15(_0x1bbe3b);}},_0x51c684=_0x45c14b||await _0x17de9d['gLyLk'](getActiveFeatureId);if(!_0x51c684)throw new Error(_0x17de9d[_0x1c141b(0x1d0)]);const _0x5b5864=await _0x17de9d[_0x1c141b(0x207)](getFeature,_0x51c684);displayFeature(_0x5b5864,_0x5b5864['checklistItems']);}export async function featureResume(_0x438e9b){const _0x8b8e29=_0x5c21,_0x4b8327={'FWAZH':function(_0x4b4217,_0x407359){return _0x4b4217(_0x407359);},'VSmqs':function(_0x470591){return _0x470591();},'izzhu':function(_0x193f05,_0x54a135){return _0x193f05!==_0x54a135;},'EIUfC':function(_0x1598f8,_0xe86d65,_0x2362dc){return _0x1598f8(_0xe86d65,_0x2362dc);},'YzfQx':function(_0x277f8c,_0x5b6274){return _0x277f8c(_0x5b6274);},'Lttdx':function(_0x2f3814,_0x5c6a80,_0x28a6f4){return _0x2f3814(_0x5c6a80,_0x28a6f4);},'pNotc':function(_0x9e339a,_0x3bc5d3){return _0x9e339a&&_0x3bc5d3;},'oWMbM':_0x8b8e29(0x237),'LpcFj':function(_0x21a7bf,_0x1a56f6){return _0x21a7bf||_0x1a56f6;},'XIaSj':_0x8b8e29(0x196),'JbIwW':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','QrkAJ':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','CvNRC':_0x8b8e29(0x21c),'OmqaF':function(_0x226953,_0x243d10){return _0x226953(_0x243d10);},'JCxPa':function(_0x219a77,_0x576e13,_0x36edf0){return _0x219a77(_0x576e13,_0x36edf0);},'pQdOd':function(_0x15a20e,_0x1c93c6){return _0x15a20e(_0x1c93c6);},'gibjT':function(_0x30ce57,_0x719cb0){return _0x30ce57(_0x719cb0);}};if(_0x438e9b){const _0x2c84c1=await _0x4b8327[_0x8b8e29(0x1a3)](getFeature,_0x438e9b);await setActiveFeatureId(_0x2c84c1['id']);const _0x6969cd=_0x4b8327['VSmqs'](getGitBranch);_0x6969cd&&_0x4b8327['izzhu'](_0x6969cd,_0x2c84c1['gitBranch'])&&(await _0x4b8327['EIUfC'](updateFeature,_0x2c84c1['id'],{'gitBranch':_0x6969cd}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x6969cd));console['log'](_0x8b8e29(0x1ed)+_0x2c84c1[_0x8b8e29(0x21a)]+'\x20('+_0x2c84c1['id']+')'),await _0x4b8327[_0x8b8e29(0x1d4)](tryStartCurrentSession,_0x2c84c1['id']);const _0x1c8c4b=process[_0x8b8e29(0x215)][_0x8b8e29(0x1ef)];_0x1c8c4b&&_0x4b8327[_0x8b8e29(0x217)](registerSession,_0x1c8c4b,_0x2c84c1['id']);_0x4b8327['Lttdx'](displayFeature,_0x2c84c1,_0x2c84c1['checklistItems']),await printFeedbackNudge(_0x2c84c1['id']);return;}const _0x4da6d0=_0x4b8327['VSmqs'](getGitRepoUrl),_0x2cc0fc=_0x4b8327['VSmqs'](getGitBranch);if(_0x4b8327[_0x8b8e29(0x203)](!_0x4da6d0,!_0x2cc0fc))throw new Error(_0x4b8327[_0x8b8e29(0x1b1)]);console[_0x8b8e29(0x21e)](_0x8b8e29(0x1bd)+(_0x4da6d0||'any')+_0x8b8e29(0x18d)+_0x4b8327[_0x8b8e29(0x1a2)](_0x2cc0fc,_0x4b8327[_0x8b8e29(0x183)])+_0x8b8e29(0x23a));const _0x148207=await _0x4b8327[_0x8b8e29(0x1a3)](listFeatures,{'gitRepoUrl':_0x4da6d0,'gitBranch':_0x2cc0fc}),_0x40e5ab=_0x148207['items'][_0x8b8e29(0x1ab)](_0x169879=>!_0x169879['completedAt']);if(_0x40e5ab['length']===0x0){console[_0x8b8e29(0x21e)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0x4b8327['JbIwW']);return;}let _0x421701;if(_0x40e5ab['length']===0x1)_0x421701=_0x40e5ab[0x0];else{const _0x297530=process['stdin'][_0x8b8e29(0x18b)]&&process[_0x8b8e29(0x20e)][_0x8b8e29(0x18b)];if(!_0x297530){console[_0x8b8e29(0x21e)](_0x4b8327[_0x8b8e29(0x221)]);for(const _0x166fe9 of _0x40e5ab){console[_0x8b8e29(0x21e)]('\x20\x20'+_0x166fe9[_0x8b8e29(0x21a)]),console[_0x8b8e29(0x21e)](_0x8b8e29(0x1c5)+_0x166fe9['id']),_0x166fe9[_0x8b8e29(0x1b5)]&&console[_0x8b8e29(0x21e)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x166fe9['stats'])),_0x166fe9['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x166fe9[_0x8b8e29(0x1e6)]);}throw new Error(_0x8b8e29(0x1d3));}const {selected:_0x139067}=await _0x5f1fe5['prompt']([{'type':'list','name':_0x8b8e29(0x19a),'message':_0x4b8327['CvNRC'],'choices':_0x40e5ab[_0x8b8e29(0x1ad)](_0x303ecb=>({'name':_0x303ecb['name']+'\x20('+_0x303ecb['id']+')','value':_0x303ecb['id']}))}]);_0x421701=_0x40e5ab[_0x8b8e29(0x1cc)](_0x5b8a79=>_0x5b8a79['id']===_0x139067);}await _0x4b8327['OmqaF'](setActiveFeatureId,_0x421701['id']);_0x2cc0fc&&_0x2cc0fc!==_0x421701[_0x8b8e29(0x1e6)]&&(await _0x4b8327['JCxPa'](updateFeature,_0x421701['id'],{'gitBranch':_0x2cc0fc}),console['log'](_0x8b8e29(0x1c9)+_0x2cc0fc));console['log'](_0x8b8e29(0x1ed)+_0x421701['name']+'\x20('+_0x421701['id']+')'),await _0x4b8327['pQdOd'](tryStartCurrentSession,_0x421701['id']);const _0x258139=await _0x4b8327[_0x8b8e29(0x1c3)](getFeature,_0x421701['id']),_0x2bada0=process['env']['CLAUDE_SESSION_ID'];_0x2bada0&&_0x4b8327[_0x8b8e29(0x217)](registerSession,_0x2bada0,_0x258139['id']),_0x4b8327[_0x8b8e29(0x217)](displayFeature,_0x258139,_0x258139[_0x8b8e29(0x1e2)]),await printFeedbackNudge(_0x258139['id']);}async function printFeedbackNudge(_0x1d068c){const _0x4bc051=_0x5c21,_0x483efa={'emhzQ':function(_0x463224,_0x349606){return _0x463224(_0x349606);},'QEcQb':function(_0x106f6f,_0x22be00,_0xffaa5a){return _0x106f6f(_0x22be00,_0xffaa5a);}};try{const {items:_0xffa00c}=await _0x483efa[_0x4bc051(0x1b2)](getActionItems,_0x1d068c);let _0x3bc690=0x0,_0xfd74cb=0x0;for(const _0x180794 of _0xffa00c){const _0x12e645=await _0x483efa['QEcQb'](getItemFeedback,_0x1d068c,_0x180794['id']);_0x12e645[_0x4bc051(0x1c7)]['length']>0x0&&(_0x3bc690+=_0x12e645[_0x4bc051(0x1c7)]['length'],_0xfd74cb++);}_0x3bc690>0x0&&(console['log'](_0x4bc051(0x253)+_0x3bc690+_0x4bc051(0x225)+_0xfd74cb+'\x20scenario(s).'),console['log'](_0x4bc051(0x20b)));}catch{}}async function tryStartCurrentSession(_0x1fea98){const _0x5b9c14=_0x5c21,_0x55f978={'gGpPv':function(_0x20c533,_0x24a461,_0x1340f3){return _0x20c533(_0x24a461,_0x1340f3);}};try{const {sessions:_0x4178e1}=await listFeatureSessions(_0x1fea98),_0x578b01=_0x4178e1['find'](_0x3193de=>_0x3193de['status']===_0x5b9c14(0x235));_0x578b01&&(await _0x55f978[_0x5b9c14(0x22b)](startSession,_0x1fea98,_0x578b01['id']),console[_0x5b9c14(0x21e)](_0x5b9c14(0x1a5)+_0x578b01[_0x5b9c14(0x1e5)]));}catch{}}export async function featureReport(_0x5b5b63,_0x54dd6a){const _0x32e7c2=_0x5c21,_0x467a0d={'NrTho':_0x32e7c2(0x222),'dsUTg':function(_0x2483ee){return _0x2483ee();},'DIOvl':_0x32e7c2(0x188),'dMrOA':function(_0x570038,_0xa86e9,_0x10a3eb){return _0x570038(_0xa86e9,_0x10a3eb);},'lGPAr':function(_0x4807f0,_0x957b00){return _0x4807f0(_0x957b00);}},_0x1363dd=_0x5b5b63||await getActiveFeatureId();if(!_0x1363dd)throw new Error(_0x467a0d['NrTho']);console['log'](_0x32e7c2(0x180));const _0x5bab30=await getFeatureReportMarkdown(_0x1363dd,{'style':_0x54dd6a['style']}),_0x2dd0fa=_0x54dd6a[_0x32e7c2(0x20d)]||join(_0x467a0d[_0x32e7c2(0x1f6)](getRangerDir),_0x467a0d['DIOvl'],_0x1363dd+'.md'),_0x335f82=_0x467a0d['dMrOA'](join,_0x2dd0fa,'..');!_0x467a0d[_0x32e7c2(0x218)](existsSync,_0x335f82)&&await _0x467a0d['dMrOA'](mkdir,_0x335f82,{'recursive':!![]}),await writeFile(_0x2dd0fa,_0x5bab30,_0x32e7c2(0x185)),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x2dd0fa);}function getScenarioResult(_0x1032aa){const _0x4be484=_0x5c21,_0x3a2d89={'wDuhH':function(_0x3e61e0,_0x4428cd){return _0x3e61e0===_0x4428cd;},'GqjRc':_0x4be484(0x23b),'BEUKc':'in_progress'};if(_0x3a2d89[_0x4be484(0x24b)](_0x1032aa['status'],'closed'))return _0x1032aa[_0x4be484(0x195)]??_0x3a2d89[_0x4be484(0x1aa)];if(_0x1032aa[_0x4be484(0x249)]===_0x4be484(0x1f1))return _0x3a2d89['BEUKc'];return _0x1032aa[_0x4be484(0x249)];}function getScenarioRationale(_0x40b35d,_0xf68ed7){const _0x51b20c=_0x5c21,_0x5850ea=_0x51b20c(0x1e3)['split']('|');let _0x2ba68f=0x0;while(!![]){switch(_0x5850ea[_0x2ba68f++]){case'0':return null;case'1':if(_0x40b35d[_0x51b20c(0x216)])return _0x40b35d[_0x51b20c(0x216)];continue;case'2':if(_0x40b35d[_0x51b20c(0x243)])return _0x40b35d[_0x51b20c(0x243)];continue;case'3':if(_0x40b35d['incompleteReason'])return _0x40b35d['incompleteReason'];continue;case'4':if(_0xf68ed7)return _0xf68ed7;continue;case'5':if(_0x40b35d[_0x51b20c(0x254)])return _0x40b35d['canceledReason'];continue;}break;}}export async function featureReportPrDescription(_0x429f95,_0x20605a){const _0x315865=_0x5c21,_0x200a9c={'ihIxS':function(_0x4d4f84){return _0x4d4f84();},'WlYUw':_0x315865(0x1c0),'ueKTY':function(_0x5a90f7,_0x39c4bd){return _0x5a90f7+_0x39c4bd;},'KEOfA':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0x4fdb17=_0x429f95||await _0x200a9c[_0x315865(0x1a1)](getActiveFeatureId);if(!_0x4fdb17)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x3a4868=await getFeature(_0x4fdb17),_0x4abf95=_0x3a4868['checklistItems']||[],_0x5cad89=getCurrentSessionItems(_0x3a4868,_0x4abf95);_0x5cad89['length']===0x0&&(console['error'](_0x200a9c[_0x315865(0x231)]),process['exit'](0x1));const _0x2e871a=_0x20605a['excludeScenarios']??[],_0x826c48=_0x2e871a[_0x315865(0x1ab)](_0x58b369=>!Number[_0x315865(0x214)](_0x58b369)||_0x58b369<0x1||_0x58b369>_0x5cad89[_0x315865(0x18c)]);if(_0x826c48['length']>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x826c48['join'](',\x20')),console['log']('\x0aAvailable\x20scenarios:');for(let _0x2613e1=0x0;_0x2613e1<_0x5cad89['length'];_0x2613e1++){console[_0x315865(0x21e)]('\x20\x20'+_0x200a9c[_0x315865(0x194)](_0x2613e1,0x1)+'.\x20'+_0x5cad89[_0x2613e1]['description']);}process['exit'](0x1);}const _0x2acc48=new Set(_0x2e871a[_0x315865(0x1ad)](_0x418082=>_0x418082-0x1)),_0x1a731f=_0x5cad89[_0x315865(0x1ab)]((_0x176bad,_0x216484)=>!_0x2acc48['has'](_0x216484));_0x1a731f['length']===0x0&&(console[_0x315865(0x22e)](_0x200a9c['KEOfA']),process[_0x315865(0x1d5)](0x1));if(_0x20605a[_0x315865(0x18a)])await outputJsonReport(_0x4fdb17,_0x3a4868,_0x1a731f);else{const _0xb7524f=await getFeatureReportMarkdown(_0x4fdb17,{'itemIds':_0x1a731f[_0x315865(0x1ad)](_0x3b455f=>_0x3b455f['id'])});process['stdout']['write'](_0xb7524f[_0x315865(0x20f)]()+'\x0a');}}async function outputJsonReport(_0x14a68a,_0x7a0b30,_0x2774ef){const _0x575d8b=_0x5c21,_0x132afd={'eQokX':function(_0x1355ff,_0xe9d2f7){return _0x1355ff>_0xe9d2f7;},'bUDJY':function(_0x595202,_0x3a0dc3){return _0x595202===_0x3a0dc3;},'CSknU':function(_0x3bb214,_0x2af54e){return _0x3bb214+_0x2af54e;}},_0xb24176=getApiBaseUrl(),_0x46adfb=await getFeatureReport(_0x14a68a),_0xed8d60=new Map(_0x46adfb['checklistItems']['map'](_0x3280f1=>[_0x3280f1['id'],_0x3280f1])),_0x3e26ff=await Promise[_0x575d8b(0x199)](_0x2774ef[_0x575d8b(0x1ad)](async _0x442362=>{const _0x5ecbe6=_0x575d8b,_0x12557f=_0xed8d60[_0x5ecbe6(0x1ce)](_0x442362['id']),_0x48f268=_0x12557f?.[_0x5ecbe6(0x244)]??null;let _0x377b9f=[];if(_0x442362['browserSessionId'])try{const {steps:_0x5ac13e}=await getBrowserSessionSteps(_0x442362[_0x5ecbe6(0x1b3)]);_0x132afd['eQokX'](_0x5ac13e['length'],0x0)&&(_0x377b9f=_0x5ac13e['map'](_0x42483c=>{const _0xf9ca00=_0x5ecbe6,_0x41089d=_0x42483c['assets']['find'](_0x5a7551=>_0x5a7551['assetType']===_0xf9ca00(0x1ea)&&_0x5a7551['timing']==='after')??_0x42483c[_0xf9ca00(0x1be)][_0xf9ca00(0x1cc)](_0x13652f=>_0x13652f[_0xf9ca00(0x1f9)]===_0xf9ca00(0x1ea));let _0x23bc5f=null,_0x47e70b=null;if(_0x41089d){const _0x2dce7e=_0x41089d['storage']['location'][_0xf9ca00(0x1fa)]('/')[_0xf9ca00(0x1ee)]();_0x23bc5f=_0xb24176+_0xf9ca00(0x23c)+_0x442362[_0xf9ca00(0x1b3)]+_0xf9ca00(0x1d6)+_0x2dce7e,_0x2dce7e&&(_0x47e70b=_0x2dce7e['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x47e70b||_0x42483c[_0xf9ca00(0x246)]||_0x42483c[_0xf9ca00(0x1c1)]||'Step\x20'+_0x42483c[_0xf9ca00(0x1d8)],'screenshot':_0x23bc5f,'is_key_step':_0x42483c['isKeyStep']};}));}catch{}return _0x132afd['bUDJY'](_0x377b9f['length'],0x0)&&_0x48f268?.['screenshotUrls']&&(_0x377b9f=_0x48f268[_0x5ecbe6(0x1dc)]['map']((_0x209dd4,_0x475997)=>({'description':'Screenshot\x20'+(_0x475997+0x1),'screenshot':_0x209dd4,'is_key_step':![]}))),{'description':_0x442362['description'],'result':getScenarioResult(_0x442362),'rationale':getScenarioRationale(_0x442362,_0x48f268?.[_0x5ecbe6(0x240)]),'steps':_0x377b9f};})),_0x3b9fef={'url':_0x7a0b30[_0x575d8b(0x19d)],'scenarios':_0x3e26ff};process[_0x575d8b(0x20e)][_0x575d8b(0x1df)](_0x132afd[_0x575d8b(0x197)](JSON['stringify'](_0x3b9fef,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x7a501b){const _0x1f6142=_0x5c21,_0x17edd6={'HUCYq':function(_0x315816){return _0x315816();},'AcGHl':function(_0x6bd456,_0x1fa910){return _0x6bd456(_0x1fa910);},'VnZiZ':function(_0x43f3ba,_0x3e0ab5){return _0x43f3ba(_0x3e0ab5);},'ExXMQ':_0x1f6142(0x236),'ANSMd':function(_0x133675,_0x1a0915){return _0x133675!==_0x1a0915;},'UHBTG':_0x1f6142(0x1f4),'mVWJK':function(_0x51b1d1,_0x1a6fe9,_0x34e2a1){return _0x51b1d1(_0x1a6fe9,_0x34e2a1);}},_0x22ee19=_0x7a501b||await _0x17edd6['HUCYq'](getActiveFeatureId);if(!_0x22ee19)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 _0xcab798=await _0x17edd6[_0x1f6142(0x210)](getFeature,_0x22ee19);if(!_0xcab798[_0x1f6142(0x228)])throw new Error(_0x1f6142(0x24c));const {sessions:_0x2c65ee}=await _0x17edd6[_0x1f6142(0x1f0)](listFeatureSessions,_0x22ee19),_0x710c5d=_0x2c65ee[_0x1f6142(0x1cc)](_0x55b994=>_0x55b994['id']===_0xcab798[_0x1f6142(0x228)]);if(!_0x710c5d)throw new Error('Current\x20session\x20not\x20found.');if(_0x710c5d[_0x1f6142(0x249)]===_0x17edd6['ExXMQ']){console[_0x1f6142(0x21e)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x17edd6['ANSMd'](_0x710c5d['status'],_0x17edd6['UHBTG']))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x710c5d[_0x1f6142(0x249)]);console['log'](_0x1f6142(0x1d7)),await _0x17edd6['mVWJK'](concludeSession,_0x22ee19,_0xcab798[_0x1f6142(0x228)]),console[_0x1f6142(0x21e)](_0x1f6142(0x204)+_0x710c5d['iteration']+'\x20concluded.'),console[_0x1f6142(0x21e)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x12e807){const _0x3cd7b7=_0x5c21,_0x273c96={'YYAFb':_0x3cd7b7(0x222),'QvqIC':function(_0x4e0e7f,_0xdc7330){return _0x4e0e7f(_0xdc7330);},'zUnzY':function(_0x1f773a,_0x3fac84){return _0x1f773a===_0x3fac84;}},_0x2d01fd=_0x12e807||await getActiveFeatureId();if(!_0x2d01fd)throw new Error(_0x273c96[_0x3cd7b7(0x234)]);const _0x56d063=await _0x273c96[_0x3cd7b7(0x23e)](getFeature,_0x2d01fd);console[_0x3cd7b7(0x21e)](_0x3cd7b7(0x1b6)+_0x56d063[_0x3cd7b7(0x21a)]+'\x0a');const {sessions:_0x423490}=await listFeatureSessions(_0x2d01fd);if(_0x273c96[_0x3cd7b7(0x1a7)](_0x423490[_0x3cd7b7(0x18c)],0x0)){console[_0x3cd7b7(0x21e)]('No\x20sessions\x20found.');return;}for(const _0x36e5b4 of _0x423490){const _0xe5489b=_0x36e5b4['status']==='completed'?'✅':_0x36e5b4['status']==='in_progress'?'🔄':'▶️';console['log'](_0xe5489b+'\x20Session\x20'+_0x36e5b4['iteration']+'\x20('+_0x36e5b4['id']+')'),console['log'](_0x3cd7b7(0x20a)+_0x36e5b4['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x36e5b4['createdAt'])['toLocaleString']()),_0x36e5b4[_0x3cd7b7(0x184)]&&console['log'](_0x3cd7b7(0x1f3)+new Date(_0x36e5b4['completedAt'])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x2a87c9,_0x185cd4){const _0xe1cb01=_0x5c21,_0x1b1f5f={'MdYag':function(_0x22c3bc){return _0x22c3bc();},'YUwpx':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','IbgtO':function(_0x322c83,_0x35b3b8,_0x55674){return _0x322c83(_0x35b3b8,_0x55674);}},_0x4ebf6a=_0x185cd4||await _0x1b1f5f['MdYag'](getActiveFeatureId);if(!_0x4ebf6a)throw new Error(_0x1b1f5f[_0xe1cb01(0x1eb)]);const _0x410979=await getFeature(_0x4ebf6a);if(_0x410979['latestReview']&&!_0x410979['latestReview'][_0xe1cb01(0x1bc)])throw new Error(_0xe1cb01(0x1ba)+_0x410979[_0xe1cb01(0x19d)]);await _0x1b1f5f[_0xe1cb01(0x22d)](createChecklistItem,_0x4ebf6a,_0x2a87c9);const _0x1222f5=await getFeature(_0x4ebf6a);console[_0xe1cb01(0x21e)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x1222f5,_0x1222f5[_0xe1cb01(0x1e2)]);}export async function featureEditScenario(_0x5e705a,_0x41642e){const _0x1469a9=_0x5c21,_0xebf0ff={'Ecgck':_0x1469a9(0x1a6),'MkoLl':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','PtpsY':function(_0x4ec545,_0x43a09e){return _0x4ec545(_0x43a09e);},'fHPer':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','nCKHR':function(_0x4279ea,_0x4057ae){return _0x4279ea===_0x4057ae;},'YTqYx':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','GdQJm':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','JbHqh':'\x0aAvailable\x20scenarios:','sOHAG':function(_0x492e61,_0x46755d){return _0x492e61<_0x46755d;},'EJDxU':function(_0x3e93f5,_0x8f9f5f){return _0x3e93f5<_0x8f9f5f;},'AZnIP':function(_0x165507,_0x444270){return _0x165507>=_0x444270;},'geDbY':function(_0x5bbd1b,_0xe61c11,_0x1c2670,_0x3a9c6c){return _0x5bbd1b(_0xe61c11,_0x1c2670,_0x3a9c6c);},'WOtZc':function(_0x541ab8,_0x461877,_0xced4a0){return _0x541ab8(_0x461877,_0xced4a0);}},_0x4b5faf=_0x41642e['id']||await getActiveFeatureId();!_0x4b5faf&&(console[_0x1469a9(0x22e)](_0xebf0ff['Ecgck']),console['error'](_0xebf0ff[_0x1469a9(0x1c4)]),process[_0x1469a9(0x1d5)](0x1));const _0x546ec3=await _0xebf0ff[_0x1469a9(0x1d2)](getFeature,_0x4b5faf);_0x546ec3['latestReview']&&!_0x546ec3[_0x1469a9(0x1f5)]['submittedAt']&&(console[_0x1469a9(0x22e)](_0xebf0ff['fHPer']),console[_0x1469a9(0x22e)](_0x1469a9(0x1d9)),console['error']('\x20\x20'+_0x546ec3[_0x1469a9(0x19d)]),process['exit'](0x1));const _0x307347=_0x546ec3[_0x1469a9(0x1e2)]||[];_0xebf0ff['nCKHR'](_0x307347['length'],0x0)&&(console[_0x1469a9(0x22e)](_0xebf0ff[_0x1469a9(0x200)]),process['exit'](0x1));if(_0x41642e[_0x1469a9(0x209)]===undefined){console[_0x1469a9(0x22e)](_0xebf0ff['GdQJm']),console[_0x1469a9(0x21e)](_0xebf0ff['JbHqh']);for(let _0x37277a=0x0;_0xebf0ff['sOHAG'](_0x37277a,_0x307347[_0x1469a9(0x18c)]);_0x37277a++){console['log']('\x20\x20'+(_0x37277a+0x1)+'.\x20'+_0x307347[_0x37277a]['description']);}process['exit'](0x1);}const _0x218bf4=_0x41642e['scenario']-0x1;if(_0xebf0ff[_0x1469a9(0x1ff)](_0x218bf4,0x0)||_0xebf0ff[_0x1469a9(0x18e)](_0x218bf4,_0x307347[_0x1469a9(0x18c)])){console['error'](_0x1469a9(0x1e0)+_0x41642e[_0x1469a9(0x209)]+'.\x20Feature\x20review\x20has\x20'+_0x307347[_0x1469a9(0x18c)]+_0x1469a9(0x1e4)),console[_0x1469a9(0x21e)](_0xebf0ff[_0x1469a9(0x220)]);for(let _0x511245=0x0;_0x511245<_0x307347[_0x1469a9(0x18c)];_0x511245++){console[_0x1469a9(0x21e)]('\x20\x20'+(_0x511245+0x1)+'.\x20'+_0x307347[_0x511245]['description']);}process['exit'](0x1);}const _0x51f5f7=_0x307347[_0x218bf4];await _0xebf0ff['geDbY'](updateChecklistItem,_0x4b5faf,_0x51f5f7['id'],{'description':_0x5e705a});const _0x21263b=await getFeature(_0x4b5faf);console[_0x1469a9(0x21e)]('\x0a✅\x20Scenario\x20updated'),_0xebf0ff[_0x1469a9(0x258)](displayFeature,_0x21263b,_0x21263b['checklistItems']);}async function downloadFeedbackImage(_0x82e9d5,_0x2a3bd8){const _0x2d4f3c=_0x5c21,_0x207c77={'bduGI':function(_0x226d91,_0x17a043,_0x25cf18){return _0x226d91(_0x17a043,_0x25cf18);},'SCvDZ':function(_0x34056b,_0xa88191,_0x53ae06){return _0x34056b(_0xa88191,_0x53ae06);}};try{const _0x499668=_0x207c77['bduGI'](join,getRangerDir(),'feedback-images');await mkdir(_0x499668,{'recursive':!![]});const _0x3bdd4e=_0x207c77['SCvDZ'](join,_0x499668,'comment_'+_0x2a3bd8+_0x2d4f3c(0x229)),_0x540376=await fetch(_0x82e9d5);if(!_0x540376['ok'])return null;const _0x5efac9=Buffer[_0x2d4f3c(0x223)](await _0x540376['arrayBuffer']());return await writeFile(_0x3bdd4e,_0x5efac9),_0x3bdd4e;}catch{return null;}}export async function featureGetReview(_0x27e0a9){const _0x8eebfe=_0x5c21,_0xf113d={'xSNsH':function(_0x70392a,_0x2bac5b){return _0x70392a(_0x2bac5b);},'oiTjq':_0x8eebfe(0x219),'ofwKJ':function(_0x108275,_0x729e55,_0x3f2842){return _0x108275(_0x729e55,_0x3f2842);},'hLYlw':function(_0x206886,_0x1e0db5){return _0x206886>_0x1e0db5;},'JLFYY':_0x8eebfe(0x23f),'vmIWh':_0x8eebfe(0x211),'GTtRb':function(_0x1d840a,_0x3a4157,_0x57cfc8){return _0x1d840a(_0x3a4157,_0x57cfc8);},'VKQiq':'\x20>\x20','htrEb':function(_0x122de9,_0x1d1fc1){return _0x122de9>=_0x1d1fc1;},'UDJtf':function(_0x2fe7f0,_0xbf2cae){return _0x2fe7f0+_0xbf2cae;}},_0x4b4d39=_0x27e0a9||await getActiveFeatureId();if(!_0x4b4d39)throw new Error(_0x8eebfe(0x186));const _0x5c5ac2=await getFeature(_0x4b4d39),{items:_0x2a0c3f}=await _0xf113d['xSNsH'](getActionItems,_0x4b4d39);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x5c5ac2['name']+'\x20('+_0x5c5ac2['id']+')\x0a');if(_0x2a0c3f[_0x8eebfe(0x18c)]===0x0){console['log'](_0xf113d['oiTjq']);return;}for(let _0x2828cd=0x0;_0x2828cd<_0x2a0c3f['length'];_0x2828cd++){const _0x4f7bd3=_0x2a0c3f[_0x2828cd],_0xfb5582=_0x4f7bd3['version']>0x1?_0x8eebfe(0x24d)+_0x4f7bd3[_0x8eebfe(0x17f)]+')':'',_0x5481c2=await _0xf113d[_0x8eebfe(0x1ac)](getItemFeedback,_0x4b4d39,_0x4f7bd3['id']);if(_0xf113d[_0x8eebfe(0x1c8)](_0x5481c2[_0x8eebfe(0x1c7)]['length'],0x0)){console['log']('Scenario\x20'+(_0x2828cd+0x1)+':\x20\x22'+_0x4f7bd3['description']+'\x22'+_0xfb5582+'\x20—\x20'+_0x5481c2[_0x8eebfe(0x1c7)]['length']+_0x8eebfe(0x17e));for(const _0x1ce6ca of _0x5481c2['unaddressedComments']){const _0x3a21bb=new Date(_0x1ce6ca[_0x8eebfe(0x233)])['toLocaleDateString'](_0x8eebfe(0x22a),{'month':'short','day':_0xf113d[_0x8eebfe(0x1a9)]}),_0x5b4c46=_0x1ce6ca[_0x8eebfe(0x1a8)]||_0x1ce6ca[_0x8eebfe(0x1ae)]||_0xf113d['vmIWh'];console[_0x8eebfe(0x21e)](_0x8eebfe(0x232)+_0x5b4c46+'\x20('+_0x3a21bb+'):\x20\x22'+_0x1ce6ca['content']+'\x22');if(_0x1ce6ca[_0x8eebfe(0x1d1)]){const _0x71d490=await _0xf113d[_0x8eebfe(0x1f8)](downloadFeedbackImage,_0x1ce6ca[_0x8eebfe(0x1d1)],_0x1ce6ca['id']);_0x71d490&&console[_0x8eebfe(0x21e)](_0x8eebfe(0x1f7)+_0x71d490);}if(_0x1ce6ca['domRef']){const _0x5dcebd=_0x1ce6ca[_0x8eebfe(0x208)]['selector'][_0x8eebfe(0x1fa)](_0xf113d['VKQiq'])['pop']()?.[_0x8eebfe(0x1fa)](':')[0x0]||'element',_0x4a9e11=_0x1ce6ca['domRef']['textContent']?'\x20\x22'+_0x1ce6ca[_0x8eebfe(0x208)][_0x8eebfe(0x24e)][_0x8eebfe(0x230)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x5dcebd+'>'+_0x4a9e11),console[_0x8eebfe(0x21e)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x1ce6ca[_0x8eebfe(0x208)][_0x8eebfe(0x24f)]);}else{if(_0x1ce6ca['spatial']){const _0x48a429=_0x1ce6ca[_0x8eebfe(0x1b0)]['coordinates'];_0x1ce6ca[_0x8eebfe(0x1b0)][_0x8eebfe(0x1c2)]===_0x8eebfe(0x248)&&_0xf113d[_0x8eebfe(0x17d)](_0x48a429[_0x8eebfe(0x18c)],0x2)?console[_0x8eebfe(0x21e)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x48a429[0x0]['toFixed'](0x2)+',\x20'+_0x48a429[0x1]['toFixed'](0x2)+')'):console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x1ce6ca[_0x8eebfe(0x1b0)]['type']+_0x8eebfe(0x187)+_0x48a429['map'](_0x5ca957=>_0x5ca957['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x5481c2[_0x8eebfe(0x19c)]){console[_0x8eebfe(0x21e)](_0x8eebfe(0x1e1));for(const _0x43927b of _0x5481c2[_0x8eebfe(0x19c)]['split']('\x0a')){console[_0x8eebfe(0x21e)](_0x8eebfe(0x1ca)+_0x43927b);}}}else console['log']('Scenario\x20'+_0xf113d[_0x8eebfe(0x1fc)](_0x2828cd,0x1)+':\x20\x22'+_0x4f7bd3[_0x8eebfe(0x246)]+'\x22'+_0xfb5582+_0x8eebfe(0x224)),console[_0x8eebfe(0x21e)](_0x8eebfe(0x193));console[_0x8eebfe(0x21e)]('');}}function _0x5c21(_0x11b896,_0x1f2f30){_0x11b896=_0x11b896-0x17d;const _0x3ef36c=_0x3ef3();let _0x5c21a9=_0x3ef36c[_0x11b896];return _0x5c21a9;}function _0x3ef3(){const _0x49ee7c=['FWAZH','parentItemId','\x20\x20\x20▶️\x20Started\x20session\x20','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','zUnzY','authorName','JLFYY','GqjRc','filter','ofwKJ','map','authorEmail','join','spatial','oWMbM','emhzQ','browserSessionId','\x20\x20\x20Repository:\x20','stats','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','limit','13790040vqnoKc','2749990qWeCMR','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','currentBranch','submittedAt','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','assets','incompleteReason','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','stepName','type','gibjT','MkoLl','\x20\x20\x20\x20\x20ID:\x20','8IhfLLy','unaddressedComments','hLYlw','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20\x20\x20\x20','\x20[has\x20reviewer\x20feedback]','find','222061WQuYSi','get','VTrgL','WLseY','assetUrl','PtpsY','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','YzfQx','exit','/artifacts/','\x0aConcluding\x20session...','position','Please\x20finish\x20your\x20review\x20first:','EsTgd','952721bBzWtk','screenshotUrls','4539368kvqTEs','RasPC','write','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x20\x20Expected\x20flow:','checklistItems','4|1|3|5|2|0','\x20scenarios.','iteration','gitBranch','\x20\x20\x20\x20\x20\x20Incomplete:\x20','sessionId','168JXUvHP','screenshot','YUwpx','\x20\x20\x20ID:\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','pop','CLAUDE_SESSION_ID','VnZiZ','verification_in_progress','\x20of\x20','\x20\x20\x20Completed:\x20','in_progress','latestReview','dsUTg','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','GTtRb','assetType','split','TNYOb','UDJtf','git\x20rev-parse\x20--abbrev-ref\x20HEAD','gitRepoUrl','EJDxU','YTqYx','includeDeleted','5020299NHAPoI','pNotc','\x0a✅\x20Session\x20','totalCount','approved','jMauE','domRef','scenario','\x20\x20\x20Status:\x20','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','\x20\x20\x20\x20\x20\x20Cancelled:\x20','output','stdout','trimEnd','AcGHl','Unknown','pipe','toLocaleString','isInteger','env','blockedReason','Lttdx','lGPAr','No\x20scenarios\x20found.','name','\x0a\x20\x20\x20Scenarios:','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','github.com/','log','\x20\x20\x20Progress:\x20','JbHqh','QrkAJ','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','from','\x20—\x20no\x20comments','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','offset','kTgkJ','currentSessionId','.png','en-US','gGpPv','ZDeXq','IbgtO','error','incompleteItems','slice','WlYUw','\x20\x20💬\x20','createdAt','YYAFb','ready','completed','Not\x20in\x20a\x20git\x20repository.','\x0aCreating\x20feature\x20review...','YuvnZ','...','closed','/api/v1/mcp/browser-sessions/','6JhGTaR','QvqIC','numeric','agentResponse','\x20\x20\x20\x20\x20\x20Blocked:\x20','fnqAK','notes','linkedSession','replace','description','blockedItems','point','status','gOQBa','wDuhH','No\x20active\x20session\x20for\x20this\x20feature\x20review.','\x20(v','textContent','selector','git\x20remote\x20get-url\x20origin','NnrXe','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x0a⚠️\x20\x20','canceledReason','xfEbF','966645yZzxhV','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','WOtZc','YHDLc','zgXqf','htrEb','\x20unaddressed\x20comment(s)','version','\x0aGenerating\x20report...','push','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','XIaSj','completedAt','utf-8','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20at\x20[','reports','trim','json','isTTY','length','\x20/\x20','AZnIP','Rmhst','AIwtS','\x20\x20\x20Branch:\x20','qpdbB','\x20\x20✅\x20No\x20feedback\x20to\x20address','ueKTY','terminalReason','any','CSknU','fyofK','all','selected','items','canonicalFlow','dashboardUrl','incomplete','tnPJE','scenarios','ihIxS','LpcFj'];_0x3ef3=function(){return _0x49ee7c;};return _0x3ef3();}export async function featureDelete(_0x2f7c33){const _0x20e271=_0x5c21,_0x45bc0a={'lWupf':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','MpRcm':function(_0x18f59d,_0x38e0e0){return _0x18f59d(_0x38e0e0);},'aazdU':function(_0x45c1ab,_0x112464){return _0x45c1ab+_0x112464;},'JUIax':_0x20e271(0x257)},_0x42c1a1=_0x2f7c33||await getActiveFeatureId();if(!_0x42c1a1)throw new Error(_0x45bc0a['lWupf']);const _0x5ab069=await _0x45bc0a['MpRcm'](getFeature,_0x42c1a1);await softDeleteFeature(_0x42c1a1),console['log'](_0x20e271(0x182)+_0x5ab069['name']+'\x20('+_0x42c1a1+')'),console[_0x20e271(0x21e)](_0x45bc0a['aazdU'](_0x45bc0a['JUIax'],_0x42c1a1));}export async function featureRestore(_0x2700bf){const _0x52aa6c=_0x5c21,_0x4938ea={'mjMHb':function(_0xc71fea,_0x45448a){return _0xc71fea(_0x45448a);},'EyuRl':function(_0x5be730,_0x52653d,_0x45db8c){return _0x5be730(_0x52653d,_0x45db8c);}};await _0x4938ea['mjMHb'](restoreFeature,_0x2700bf);const _0x5e66d2=await _0x4938ea['mjMHb'](getFeature,_0x2700bf);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x5e66d2[_0x52aa6c(0x21a)]+'\x20('+_0x2700bf+')'),_0x4938ea['EyuRl'](displayFeature,_0x5e66d2,_0x5e66d2[_0x52aa6c(0x1e2)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3e7c66,_0x3cc658){const _0x18f05e=_0x191b,_0x2f9167=_0x3e7c66();while(!![]){try{const _0xad6faf=parseInt(_0x18f05e(0x1cf))/0x1*(-parseInt(_0x18f05e(0x1d3))/0x2)+parseInt(_0x18f05e(0x1ce))/0x3+-parseInt(_0x18f05e(0x1d6))/0x4+-parseInt(_0x18f05e(0x1cc))/0x5+-parseInt(_0x18f05e(0x1d8))/0x6*(-parseInt(_0x18f05e(0x1d4))/0x7)+parseInt(_0x18f05e(0x1cd))/0x8*(parseInt(_0x18f05e(0x1d0))/0x9)+-parseInt(_0x18f05e(0x1d1))/0xa*(-parseInt(_0x18f05e(0x1d2))/0xb);if(_0xad6faf===_0x3cc658)break;else _0x2f9167['push'](_0x2f9167['shift']());}catch(_0x49eed6){_0x2f9167['push'](_0x2f9167['shift']());}}}(_0x5157,0x3a202));function _0x191b(_0x186071,_0x247018){_0x186071=_0x186071-0x1cc;const _0x5157e6=_0x5157();let _0x191b34=_0x5157e6[_0x186071];return _0x191b34;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x5157(){const _0x1d7ff1=['375550DLTZts','1035584HKxwkK','839352NKmyQW','19421vxaRfT','18tZQwBg','80kVHBTL','102223LEJZOb','22cCQAKx','35AwBOMn','SIGTERM','901264JcJeDG','once','166938hpWCWi','keys','join'];_0x5157=function(){return _0x1d7ff1;};return _0x5157();}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x425a4d=_0x191b,_0x24f2fd={'EtBPV':'SIGINT'};if(cancellationHandlersInstalled)return;const _0x3849a3=()=>{process['exit'](0x0);};process['once'](_0x24f2fd['EtBPV'],_0x3849a3),process['once'](_0x425a4d(0x1d5),_0x3849a3),process[_0x425a4d(0x1d7)]('SIGHUP',_0x3849a3),cancellationHandlersInstalled=!![];}export async function hook(_0xbda919,_0x4eab70){const _0x3a8516=_0x191b;installCancellationHandlers();const _0x487abe=HOOKS[_0xbda919];if(!_0x487abe){const _0x9f313f=Object[_0x3a8516(0x1d9)](HOOKS)[_0x3a8516(0x1da)](',\x20');console['error']('Unknown\x20hook:\x20'+_0xbda919),console['error']('Valid\x20hooks:\x20'+_0x9f313f),process['exit'](0x1);}await _0x487abe(_0x4eab70);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3774d7=_0x4977;function _0x4977(_0x1a8202,_0x30ec4c){_0x1a8202=_0x1a8202-0xdb;const _0x1ac191=_0x1ac1();let _0x4977c1=_0x1ac191[_0x1a8202];return _0x4977c1;}(function(_0x59b32e,_0x2eb570){const _0x4c367a=_0x4977,_0x3e3178=_0x59b32e();while(!![]){try{const _0x3933da=parseInt(_0x4c367a(0xdf))/0x1+parseInt(_0x4c367a(0xdd))/0x2*(parseInt(_0x4c367a(0xe1))/0x3)+-parseInt(_0x4c367a(0xdc))/0x4+-parseInt(_0x4c367a(0xe5))/0x5*(-parseInt(_0x4c367a(0xe4))/0x6)+-parseInt(_0x4c367a(0xe2))/0x7+parseInt(_0x4c367a(0xe0))/0x8+parseInt(_0x4c367a(0xde))/0x9;if(_0x3933da===_0x2eb570)break;else _0x3e3178['push'](_0x3e3178['shift']());}catch(_0x38fde0){_0x3e3178['push'](_0x3e3178['shift']());}}}(_0x1ac1,0xaca4a));function _0x1ac1(){const _0x364b37=['36927nIWeJv','778407gmGweV','oXPmw','4966326ALpcSY','5gFtZaZ','\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.','5404052nQKRUM','12jVXnmG','1541502fnxSZH','380104ZuLOVT','5731224CFMtgl'];_0x1ac1=function(){return _0x364b37;};return _0x1ac1();}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x3774d7(0xdb);export async function autoPrompt(){const _0x131a5f=_0x3774d7,_0x2c776a={'kjwcI':function(_0x42f6f1){return _0x42f6f1();},'oXPmw':function(_0x5eca52,_0x3bfb0d){return _0x5eca52(_0x3bfb0d);}},_0x2ead59=await _0x2c776a['kjwcI'](readHookInput),_0x130331=_0x2ead59?.['session_id'];if(!_0x130331)return;if(isSessionEnabled(_0x130331)||hasSessionBeenPrompted(_0x130331))return;_0x2c776a[_0x131a5f(0xe3)](markSessionPrompted,_0x130331),console['log'](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x733cc0,_0x3306b1){const _0x13d0cf=_0x39b0,_0x20c4b7=_0x733cc0();while(!![]){try{const _0x4662eb=parseInt(_0x13d0cf(0x169))/0x1*(parseInt(_0x13d0cf(0x170))/0x2)+parseInt(_0x13d0cf(0x172))/0x3+-parseInt(_0x13d0cf(0x168))/0x4+-parseInt(_0x13d0cf(0x176))/0x5+parseInt(_0x13d0cf(0x16d))/0x6*(-parseInt(_0x13d0cf(0x16c))/0x7)+-parseInt(_0x13d0cf(0x16f))/0x8*(-parseInt(_0x13d0cf(0x177))/0x9)+parseInt(_0x13d0cf(0x16e))/0xa;if(_0x4662eb===_0x3306b1)break;else _0x20c4b7['push'](_0x20c4b7['shift']());}catch(_0x1a82a9){_0x20c4b7['push'](_0x20c4b7['shift']());}}}(_0x35d8,0x98bfa));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x39b0(_0x524295,_0x4cfa81){_0x524295=_0x524295-0x168;const _0x35d804=_0x35d8();let _0x39b0e3=_0x35d804[_0x524295];return _0x39b0e3;}export async function disable(_0x458f79){const _0x22e227=_0x39b0,_0x5a4834={'txaOj':function(_0x162c84,_0x23b801){return _0x162c84(_0x23b801);},'BPScp':function(_0x2005aa){return _0x2005aa();},'bjvEQ':function(_0x5838a0,_0xb9d113){return _0x5838a0!==_0xb9d113;},'gCvwV':_0x22e227(0x175),'RhMVa':function(_0x230f94,_0x248db7){return _0x230f94(_0x248db7);},'vBSqD':function(_0x1d550f,_0xcd58a5){return _0x1d550f!==_0xcd58a5;},'ehHqC':'main','UUiug':function(_0x36a360,_0x1af6d5){return _0x36a360!==_0x1af6d5;}},_0x114a9e=_0x458f79||process['env']['CLAUDE_SESSION_ID']||'';_0x114a9e&&_0x5a4834[_0x22e227(0x178)](disableSession,_0x114a9e);const _0x5872f3=_0x5a4834['BPScp'](getCurrentBranch);_0x5872f3&&_0x5a4834['bjvEQ'](_0x5872f3,_0x22e227(0x171))&&_0x5872f3!==_0x5a4834['gCvwV']&&_0x5a4834[_0x22e227(0x174)](disableBranch,_0x5872f3),printBlock(_0x22e227(0x173)+(_0x5872f3&&_0x5a4834['vBSqD'](_0x5872f3,_0x5a4834['ehHqC'])&&_0x5a4834['UUiug'](_0x5872f3,_0x5a4834[_0x22e227(0x16b)])?'\x20and\x20branch\x20\x27'+_0x5872f3+'\x27':'')+_0x22e227(0x16a));}function _0x35d8(){const _0x29d6fd=['master','5798895qwnMNZ','4828779xokzGk','txaOj','4181036ebsKRC','127535bbyPLI','.\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`.','gCvwV','8604148hncZSo','6osNTwD','21434340PjQAWi','8kRvgGL','8uPPxrB','main','2609265dUEPFr','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','RhMVa'];_0x35d8=function(){return _0x29d6fd;};return _0x35d8();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b66c6,_0x50dfd7){const _0x26884e=_0x1d43,_0x12ac85=_0x2b66c6();while(!![]){try{const _0x552298=parseInt(_0x26884e(0x6f))/0x1*(parseInt(_0x26884e(0x78))/0x2)+parseInt(_0x26884e(0x6e))/0x3+parseInt(_0x26884e(0x68))/0x4*(parseInt(_0x26884e(0x6b))/0x5)+-parseInt(_0x26884e(0x73))/0x6+parseInt(_0x26884e(0x6a))/0x7+parseInt(_0x26884e(0x7a))/0x8*(-parseInt(_0x26884e(0x71))/0x9)+-parseInt(_0x26884e(0x72))/0xa;if(_0x552298===_0x50dfd7)break;else _0x12ac85['push'](_0x12ac85['shift']());}catch(_0x34a83c){_0x12ac85['push'](_0x12ac85['shift']());}}}(_0x4fdf,0x216bd));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x4fdf(){const _0x49c01f=['ranger\x20setup\x20--opencode','696123Ozuilf','60180GsKCAS','1396200BKqoFv','#\x20RANGER\x20ENABLED','OPdHK','main','ranger\x20setup','2niKKsk','HfGDy','16PzuLJR','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','\x0a\x0a**Branch\x20\x27','468OugJgV','\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`.','1470000bHZeyq','3650GmqKMC','#\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`','master','115320zPqaTQ','196455SaacSs'];_0x4fdf=function(){return _0x49c01f;};return _0x4fdf();}function _0x1d43(_0x385037,_0x244960){_0x385037=_0x385037-0x66;const _0x4fdf85=_0x4fdf();let _0x1d43d6=_0x4fdf85[_0x385037];return _0x1d43d6;}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(_0x5936f0){const _0x3dff1e=_0x1d43,_0x4bd244={'OPdHK':function(_0x403edd,_0x3c23dd){return _0x403edd(_0x3c23dd);},'KTwaz':_0x3dff1e(0x77),'HfGDy':function(_0x574980,_0xf73a59){return _0x574980!==_0xf73a59;},'gqHgl':_0x3dff1e(0x6d)},_0xfa13cf=_0x5936f0||process['env']['CLAUDE_SESSION_ID']||'',_0x113309=_0x4bd244[_0x3dff1e(0x75)](Boolean,_0x5936f0),_0x541748=await getToken();if(!_0x541748){const _0x5bb213=_0x113309?_0x3dff1e(0x70):_0x4bd244['KTwaz'],_0x27a6f6=_0x113309?_0x3dff1e(0x66):'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x4bd244[_0x3dff1e(0x75)](printBlock,_0x3dff1e(0x6c)+_0x5bb213+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x27a6f6);return;}try{await update();}catch{}_0xfa13cf&&_0x4bd244['OPdHK'](enableSession,_0xfa13cf);const _0xca6b4e=getCurrentBranch(),_0x1a5804=_0xca6b4e&&_0x4bd244[_0x3dff1e(0x79)](_0xca6b4e,_0x3dff1e(0x76))&&_0xca6b4e!==_0x4bd244['gqHgl']?_0x3dff1e(0x67)+_0xca6b4e+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x158254=getRangerSkillContent();printBlock(_0x3dff1e(0x74)+_0x1a5804+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x158254+_0x3dff1e(0x69));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41e8d2,_0x1980d2){const _0x559deb=_0x3764,_0x435e04=_0x41e8d2();while(!![]){try{const _0x31a24f=-parseInt(_0x559deb(0x13d))/0x1*(parseInt(_0x559deb(0x140))/0x2)+parseInt(_0x559deb(0x13c))/0x3*(-parseInt(_0x559deb(0x144))/0x4)+parseInt(_0x559deb(0x143))/0x5+parseInt(_0x559deb(0x142))/0x6*(parseInt(_0x559deb(0x141))/0x7)+parseInt(_0x559deb(0x13a))/0x8+parseInt(_0x559deb(0x13e))/0x9*(parseInt(_0x559deb(0x13f))/0xa)+-parseInt(_0x559deb(0x13b))/0xb;if(_0x31a24f===_0x1980d2)break;else _0x435e04['push'](_0x435e04['shift']());}catch(_0x12eb5f){_0x435e04['push'](_0x435e04['shift']());}}}(_0x53f5,0x8dd6b));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3764(_0x2b660c,_0x13618b){_0x2b660c=_0x2b660c-0x13a;const _0x53f58c=_0x53f5();let _0x3764d8=_0x53f58c[_0x2b660c];return _0x3764d8;}function _0x53f5(){const _0x13be66=['9170DJfprP','334uafKPf','216013oLzClX','114eTmglC','4615535BCiYVW','2932IduRdr','9008792RWqtPZ','18167050MaCRoD','3468YIAbiz','2089ObkFhr','7785sfTmRr'];_0x53f5=function(){return _0x13be66;};return _0x53f5();}export async function exitPlanMode(_0x498306){const _0x590732={'QaLIG':function(_0x4ef274,_0x52702f){return _0x4ef274(_0x52702f);}},_0x40e1f5=await getEnabledSessionId(_0x498306);if(!_0x40e1f5)return;_0x590732['QaLIG'](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x172bfa,_0x211369){var _0x6e1bf4=_0x2167,_0x4bd763=_0x172bfa();while(!![]){try{var _0x562f0a=parseInt(_0x6e1bf4(0x1eb))/0x1*(-parseInt(_0x6e1bf4(0x1ec))/0x2)+parseInt(_0x6e1bf4(0x1e8))/0x3+parseInt(_0x6e1bf4(0x1ee))/0x4*(-parseInt(_0x6e1bf4(0x1ef))/0x5)+-parseInt(_0x6e1bf4(0x1e9))/0x6+parseInt(_0x6e1bf4(0x1e7))/0x7+parseInt(_0x6e1bf4(0x1f0))/0x8*(parseInt(_0x6e1bf4(0x1ed))/0x9)+-parseInt(_0x6e1bf4(0x1e6))/0xa*(parseInt(_0x6e1bf4(0x1ea))/0xb);if(_0x562f0a===_0x211369)break;else _0x4bd763['push'](_0x4bd763['shift']());}catch(_0x31cdf2){_0x4bd763['push'](_0x4bd763['shift']());}}}(_0x162f,0xc2ae6));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x2167(_0x1eff0d,_0x2219b6){_0x1eff0d=_0x1eff0d-0x1e6;var _0x162f87=_0x162f();var _0x21676d=_0x162f87[_0x1eff0d];return _0x21676d;}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 _0x162f(){var _0x4a29a3=['10937800QumUTd','7237160WpKzpo','2787312CInDMW','1164000KVvIMd','11WKMQaw','400341fIkxJr','2UGIfpI','279TCrvVB','3932WsggXk','1455DDBPIc','208672JwKiGI'];_0x162f=function(){return _0x4a29a3;};return _0x162f();}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e73f5,_0x22e4cc){const _0x22aae9=_0x4dc9,_0x4c6b03=_0x1e73f5();while(!![]){try{const _0x40ec1b=parseInt(_0x22aae9(0x96))/0x1*(parseInt(_0x22aae9(0x9b))/0x2)+-parseInt(_0x22aae9(0xa0))/0x3+parseInt(_0x22aae9(0x98))/0x4*(-parseInt(_0x22aae9(0x97))/0x5)+parseInt(_0x22aae9(0x9c))/0x6+parseInt(_0x22aae9(0xa2))/0x7*(parseInt(_0x22aae9(0x9d))/0x8)+-parseInt(_0x22aae9(0x9e))/0x9+parseInt(_0x22aae9(0xa3))/0xa*(-parseInt(_0x22aae9(0xa1))/0xb);if(_0x40ec1b===_0x22e4cc)break;else _0x4c6b03['push'](_0x4c6b03['shift']());}catch(_0x3904bb){_0x4c6b03['push'](_0x4c6b03['shift']());}}}(_0x3da9,0x98a01));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x87a32d){console['log'](_0x87a32d);}function _0x4dc9(_0x162113,_0x5131fc){_0x162113=_0x162113-0x95;const _0x3da969=_0x3da9();let _0x4dc9a6=_0x3da969[_0x162113];return _0x4dc9a6;}export async function readHookInput(){const _0x5a97f9=_0x4dc9;let _0x50817e='';try{for await(const _0x36ddba of process['stdin']){_0x50817e+=_0x36ddba;}}catch{return null;}if(!_0x50817e[_0x5a97f9(0x99)]())return null;try{return JSON[_0x5a97f9(0x9a)](_0x50817e);}catch{return null;}}function _0x3da9(){const _0x205830=['32BIUgyf','3720897npzrey','session_id','2279637vRhjph','550LYQVhw','1188474ApXuyR','50230XJbtxg','jvSkQ','1245857yTDhJk','5NUOpEr','3500716QDrqQU','trim','parse','2focqco','5998854xarWWG'];_0x3da9=function(){return _0x205830;};return _0x3da9();}export async function getEnabledSessionId(_0x868078){const _0x3ce350=_0x4dc9,_0x32f134={'jvSkQ':function(_0x1ac0dc){return _0x1ac0dc();},'vjSKn':function(_0x20cee0,_0x79a1a9){return _0x20cee0(_0x79a1a9);}};if(_0x868078)return isSessionEnabled(_0x868078)?_0x868078:null;const _0x2e7f72=await _0x32f134[_0x3ce350(0x95)](readHookInput),_0x19aa81=_0x2e7f72?.['session_id'];if(!_0x19aa81||!_0x32f134['vjSKn'](isSessionEnabled,_0x19aa81))return null;return _0x19aa81;}export async function getEnabledHookContext(_0x14492b){const _0x1e8ae7=_0x4dc9,_0x33316e={'Ycyth':function(_0x3e3c64){return _0x3e3c64();},'ebncN':function(_0x2b37bd,_0x467aa4){return _0x2b37bd(_0x467aa4);}};if(_0x14492b){if(!isSessionEnabled(_0x14492b))return null;return{'sessionId':_0x14492b,'input':{'session_id':_0x14492b}};}const _0x1f2b53=await _0x33316e['Ycyth'](readHookInput),_0x58bfb6=_0x1f2b53?.[_0x1e8ae7(0x9f)];if(!_0x58bfb6||!_0x33316e['ebncN'](isSessionEnabled,_0x58bfb6))return null;return{'sessionId':_0x58bfb6,'input':_0x1f2b53};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5a392b,_0x240bc0){const _0x5ec53d=_0xf4f7,_0x9c76bd=_0x5a392b();while(!![]){try{const _0x3f58df=parseInt(_0x5ec53d(0x138))/0x1+-parseInt(_0x5ec53d(0x135))/0x2+-parseInt(_0x5ec53d(0x137))/0x3+parseInt(_0x5ec53d(0x132))/0x4+-parseInt(_0x5ec53d(0x136))/0x5*(parseInt(_0x5ec53d(0x133))/0x6)+-parseInt(_0x5ec53d(0x13c))/0x7+parseInt(_0x5ec53d(0x139))/0x8;if(_0x3f58df===_0x240bc0)break;else _0x9c76bd['push'](_0x9c76bd['shift']());}catch(_0x2f6f1e){_0x9c76bd['push'](_0x9c76bd['shift']());}}}(_0x24f9,0xed52b));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0xf4f7(_0x3b9b6d,_0x20178e){_0x3b9b6d=_0x3b9b6d-0x132;const _0x24f9cb=_0x24f9();let _0xf4f7b4=_0x24f9cb[_0x3b9b6d];return _0xf4f7b4;}export async function planReminder(_0x4bbcd1){const _0x329b76=_0xf4f7,_0x40ec79={'DxfCw':function(_0x28bd29,_0xb43b7b){return _0x28bd29(_0xb43b7b);},'ZEGdg':function(_0x4f6334,_0x500179){return _0x4f6334(_0x500179);}},_0x431587=await _0x40ec79[_0x329b76(0x13a)](getEnabledHookContext,_0x4bbcd1);if(!_0x431587)return;if(_0x431587['input'][_0x329b76(0x134)]!=='plan')return;if(!_0x40ec79[_0x329b76(0x13b)](shouldShowPlanReminder,_0x431587['sessionId']))return;_0x40ec79[_0x329b76(0x13b)](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}function _0x24f9(){const _0x1c305f=['609572pfDubX','3353995DrUroU','753687zSChOm','378898mFQbGC','22305528ZaawPw','DxfCw','ZEGdg','12119128TIGuEm','3052416ueBhNq','6WmugVJ','permission_mode'];_0x24f9=function(){return _0x1c305f;};return _0x24f9();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x284783,_0x55b5f0){const _0x33c51b=_0x426b,_0x41d300=_0x284783();while(!![]){try{const _0x2ed79d=parseInt(_0x33c51b(0x158))/0x1*(-parseInt(_0x33c51b(0x151))/0x2)+-parseInt(_0x33c51b(0x152))/0x3+-parseInt(_0x33c51b(0x155))/0x4+parseInt(_0x33c51b(0x153))/0x5+-parseInt(_0x33c51b(0x14f))/0x6+parseInt(_0x33c51b(0x150))/0x7*(parseInt(_0x33c51b(0x156))/0x8)+parseInt(_0x33c51b(0x157))/0x9;if(_0x2ed79d===_0x55b5f0)break;else _0x41d300['push'](_0x41d300['shift']());}catch(_0x13dbd4){_0x41d300['push'](_0x41d300['shift']());}}}(_0x25fb,0xb55e9));function _0x426b(_0xc14af3,_0x9fba97){_0xc14af3=_0xc14af3-0x14f;const _0x25fb1b=_0x25fb();let _0x426bee=_0x25fb1b[_0xc14af3];return _0x426bee;}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x266231){const _0x22fb9b=_0x426b,_0xe07004=await getEnabledSessionId(_0x266231);if(!_0xe07004)return;printBlock(_0x22fb9b(0x154));}function _0x25fb(){const _0x4f9be3=['3433947FbvPss','2987570tNYjMq','===\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===','5365812OfFSSD','8vYZVtY','23637483HolPia','5YCdULE','3972768gUhxUP','8339191kTRuhP','209638wslHQN'];_0x25fb=function(){return _0x4f9be3;};return _0x25fb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4dbc5a,_0x571f40){const _0x250047=_0x25e9,_0x5ac61b=_0x4dbc5a();while(!![]){try{const _0x593550=parseInt(_0x250047(0x1dc))/0x1+-parseInt(_0x250047(0x1d4))/0x2+-parseInt(_0x250047(0x1d6))/0x3*(parseInt(_0x250047(0x1de))/0x4)+parseInt(_0x250047(0x1d7))/0x5*(parseInt(_0x250047(0x1d9))/0x6)+-parseInt(_0x250047(0x1db))/0x7+-parseInt(_0x250047(0x1d2))/0x8*(parseInt(_0x250047(0x1df))/0x9)+parseInt(_0x250047(0x1dd))/0xa*(parseInt(_0x250047(0x1d5))/0xb);if(_0x593550===_0x571f40)break;else _0x5ac61b['push'](_0x5ac61b['shift']());}catch(_0x130ced){_0x5ac61b['push'](_0x5ac61b['shift']());}}}(_0x277a,0xcf93e));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x25e9(_0x161137,_0x54b812){_0x161137=_0x161137-0x1d2;const _0x277a1f=_0x277a();let _0x25e919=_0x277a1f[_0x161137];return _0x25e919;}import{getToken}from'../utils/keychain.js';function _0x277a(){const _0x1f4050=['3266187RhSPLE','2760390pJuXCb','stringify','6vqCKlX','PostToolUse','9995251XebEzB','1050731pcaPhI','18650950QBvTKC','4mrZkEy','594189bbJCfW','160lNCTzh','SxQbv','1291438wntpFS','22YkRxfG'];_0x277a=function(){return _0x1f4050;};return _0x277a();}import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x5b7339){const _0x11ca66=_0x25e9,_0xf96c07={'JXVPA':function(_0x489bbd,_0x1f11c7){return _0x489bbd(_0x1f11c7);},'SxQbv':function(_0x51bf15){return _0x51bf15();},'fDNHm':_0x11ca66(0x1da)},_0x4e4a53=await getEnabledSessionId(_0x5b7339);if(!_0x4e4a53)return;_0xf96c07['JXVPA'](updateBranchTracking,_0x4e4a53);const _0x390494=await _0xf96c07[_0x11ca66(0x1d3)](getToken);if(!_0x390494)return;const _0x30ccf2=getSessionEntry(_0x4e4a53);if(_0x30ccf2){const _0x169e24={'hookSpecificOutput':{'hookEventName':_0xf96c07['fDNHm'],'additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON[_0x11ca66(0x1d8)](_0x169e24));return;}const _0x2d1896={'hookSpecificOutput':{'hookEventName':_0x11ca66(0x1da),'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x2d1896));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd8540e,_0x236789){const _0x2236fc=_0x22ee,_0x3da282=_0xd8540e();while(!![]){try{const _0x1c6413=parseInt(_0x2236fc(0x166))/0x1+parseInt(_0x2236fc(0x16a))/0x2+parseInt(_0x2236fc(0x168))/0x3*(parseInt(_0x2236fc(0x172))/0x4)+parseInt(_0x2236fc(0x16b))/0x5+-parseInt(_0x2236fc(0x16f))/0x6*(-parseInt(_0x2236fc(0x170))/0x7)+-parseInt(_0x2236fc(0x16e))/0x8+parseInt(_0x2236fc(0x169))/0x9*(-parseInt(_0x2236fc(0x16c))/0xa);if(_0x1c6413===_0x236789)break;else _0x3da282['push'](_0x3da282['shift']());}catch(_0x3367b1){_0x3da282['push'](_0x3da282['shift']());}}}(_0x4a9b,0xaad1b));function _0x22ee(_0x4de6fc,_0x5d749d){_0x4de6fc=_0x4de6fc-0x166;const _0x4a9b9d=_0x4a9b();let _0x22eedc=_0x4a9b9d[_0x4de6fc];return _0x22eedc;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x4a9b(){const _0x5de0eb=['1196674NCMliN','1406580QvAagC','240mUYPSp','tQoFj','40432ELTxGH','39798gKXDKE','903EfTIBC','XxwFR','4HxHBdd','485862EnkymA','===\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`.','382095lZLQIw','616428MHRYva'];_0x4a9b=function(){return _0x5de0eb;};return _0x4a9b();}export async function preCompact(_0x402d14){const _0x1ae5cd=_0x22ee,_0x40d879={'XxwFR':function(_0x16214c,_0x2e9bb7){return _0x16214c(_0x2e9bb7);},'tQoFj':function(_0x11bdd3){return _0x11bdd3();}},_0x1648cc=await _0x40d879[_0x1ae5cd(0x171)](getEnabledSessionId,_0x402d14);if(!_0x1648cc)return;try{const _0x354921=await _0x40d879[_0x1ae5cd(0x16d)](getToken);if(!_0x354921)return;_0x40d879['XxwFR'](printBlock,_0x1ae5cd(0x167));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x53b51d,_0x2e7edb){const _0x21c510=_0x362f,_0x147a69=_0x53b51d();while(!![]){try{const _0x1b915d=parseInt(_0x21c510(0x18f))/0x1*(parseInt(_0x21c510(0x18c))/0x2)+parseInt(_0x21c510(0x188))/0x3+-parseInt(_0x21c510(0x18b))/0x4+-parseInt(_0x21c510(0x190))/0x5*(parseInt(_0x21c510(0x193))/0x6)+parseInt(_0x21c510(0x18a))/0x7+-parseInt(_0x21c510(0x191))/0x8*(parseInt(_0x21c510(0x189))/0x9)+-parseInt(_0x21c510(0x18e))/0xa*(-parseInt(_0x21c510(0x187))/0xb);if(_0x1b915d===_0x2e7edb)break;else _0x147a69['push'](_0x147a69['shift']());}catch(_0x24e444){_0x147a69['push'](_0x147a69['shift']());}}}(_0x5ad9,0x9a178));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x362f(_0xa92891,_0x1c9303){_0xa92891=_0xa92891-0x186;const _0x5ad9a0=_0x5ad9();let _0x362fb1=_0x5ad9a0[_0xa92891];return _0x362fb1;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x50f07d){const _0x4a2270=_0x362f,_0x25c5c7={'NqnCi':function(_0x40eca4,_0x45fa3e){return _0x40eca4(_0x45fa3e);},'EUvlI':function(_0x30b35a){return _0x30b35a();},'daTHs':'clear'},_0x583c35=process['env']['CLAUDE_SESSION_ID'];let _0x2451c3=_0x50f07d,_0x18acdf;if(!_0x50f07d){if(_0x583c35&&!_0x25c5c7[_0x4a2270(0x186)](isSessionEnabled,_0x583c35))return;const _0x8a3e03=await _0x25c5c7['EUvlI'](readHookInput);_0x2451c3=_0x8a3e03?.[_0x4a2270(0x192)]||_0x583c35,_0x18acdf=_0x8a3e03?.['reason'];}if(!_0x2451c3)return;_0x18acdf===_0x25c5c7[_0x4a2270(0x18d)]&&recordEnabledSessionCleared(_0x2451c3);}function _0x5ad9(){const _0x227430=['3264879WlPHWY','1114677nZkrBe','4916408jPBCkg','1870200jQBlDa','4RtNWYA','daTHs','1451280ZVhMXn','200426HHLYNA','7960zNPgpO','56iXVJbJ','session_id','1398mRCKbl','NqnCi','11NbfuWZ'];_0x5ad9=function(){return _0x227430;};return _0x5ad9();}
|