@ranger-testing/ranger-cli 2.4.7 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/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 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x309675=_0x378b;(function(_0x1b0e20,_0x518cd0){const _0x12fb9f=_0x378b,_0x287378=_0x1b0e20();while(!![]){try{const _0x171c3e=-parseInt(_0x12fb9f(0x6f))/0x1+-parseInt(_0x12fb9f(0x81))/0x2+-parseInt(_0x12fb9f(0x7d))/0x3+parseInt(_0x12fb9f(0x69))/0x4*(parseInt(_0x12fb9f(0x7a))/0x5)+-parseInt(_0x12fb9f(0x6d))/0x6+-parseInt(_0x12fb9f(0x68))/0x7*(-parseInt(_0x12fb9f(0x7c))/0x8)+parseInt(_0x12fb9f(0x77))/0x9*(parseInt(_0x12fb9f(0x70))/0xa);if(_0x171c3e===_0x518cd0)break;else _0x287378['push'](_0x287378['shift']());}catch(_0x15e760){_0x287378['push'](_0x287378['shift']());}}}(_0x2580,0x3c066));function _0x378b(_0x4becd6,_0x2389d6){_0x4becd6=_0x4becd6-0x66;const _0x258004=_0x2580();let _0x378b12=_0x258004[_0x4becd6];return _0x378b12;}import{existsSync}from'fs';function _0x2580(){const _0x350b60=['21nLvzOn','193748Dwjfpb','Profile\x20\x22','stringify','pEhoT','2148210WUMarm','includes','487349zrRMHM','155620eUFfxJ','pcVsm','XBVsM','Invalid\x20value\x20for\x20','log','allowInsecureLocalhost','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','738lGRXDQ','OkEOo',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','5RjXuzQ','true','693128WkEkeQ','1033824CRcmnb','false','Removed\x20','PRpZD','297180nHGelQ','EDXzs','(not\x20set)'];_0x2580=function(){return _0x350b60;};return _0x2580();}import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x309675(0x75)];function parseValue(_0x6135f7,_0x3db9e0){const _0x2c8a75=_0x309675,_0x2e97f7={'bysAc':function(_0x496f52,_0x297383){return _0x496f52===_0x297383;},'pEhoT':_0x2c8a75(0x7b),'pcVsm':_0x2c8a75(0x7e)};if(BOOLEAN_KEYS[_0x2c8a75(0x6e)](_0x6135f7)){if(_0x2e97f7['bysAc'](_0x3db9e0,_0x2e97f7[_0x2c8a75(0x6c)]))return!![];if(_0x3db9e0===_0x2e97f7[_0x2c8a75(0x71)])return![];throw new Error(_0x2c8a75(0x73)+_0x6135f7+_0x2c8a75(0x79));}return _0x3db9e0;}export async function configSet(_0x561e9a,_0x4c3c75,_0x12594b){const _0x337967=_0x309675,_0x5d0fab={'dtnJg':function(_0x388ecd,_0x3caad0){return _0x388ecd(_0x3caad0);},'jwpPX':function(_0x582e4,_0x549f59,_0x4fc064){return _0x582e4(_0x549f59,_0x4fc064);}},_0x1ad4e1=getEnvDir(_0x561e9a);if(!_0x5d0fab['dtnJg'](existsSync,_0x1ad4e1))throw new Error(_0x337967(0x6a)+_0x561e9a+_0x337967(0x76)+_0x561e9a);const _0x5a4e0f=await loadSettings(_0x561e9a),_0x50d329=parseValue(_0x4c3c75,_0x12594b);setNestedValue(_0x5a4e0f,_0x4c3c75,_0x50d329),await _0x5d0fab['jwpPX'](saveSettings,_0x561e9a,_0x5a4e0f),console['log']('Set\x20'+_0x4c3c75+'\x20=\x20'+_0x50d329);}export async function configGet(_0x22477b,_0x2b40a6){const _0x310864=_0x309675,_0x31567b={'PRpZD':function(_0xe86e9d,_0x4d7ae0){return _0xe86e9d(_0x4d7ae0);},'NIRAU':function(_0x1911fa,_0x127a6a){return _0x1911fa(_0x127a6a);},'ekcjc':function(_0x10a6e0,_0x5a107c){return _0x10a6e0(_0x5a107c);},'EDXzs':function(_0x56bdbe,_0x5d6b58,_0x4f1b57){return _0x56bdbe(_0x5d6b58,_0x4f1b57);},'XBVsM':'object'},_0x2f7922=_0x31567b[_0x310864(0x80)](getEnvDir,_0x22477b);if(!_0x31567b['NIRAU'](existsSync,_0x2f7922))throw new Error(_0x310864(0x6a)+_0x22477b+'\x22\x20does\x20not\x20exist.');const _0x1412ad=await _0x31567b['ekcjc'](loadSettings,_0x22477b),_0x49182a=_0x31567b[_0x310864(0x66)](getNestedValue,_0x1412ad,_0x2b40a6);if(_0x49182a===undefined)console[_0x310864(0x74)](_0x310864(0x67));else typeof _0x49182a===_0x31567b[_0x310864(0x72)]?console['log'](JSON[_0x310864(0x6b)](_0x49182a,null,0x2)):console['log'](_0x49182a);}export async function configList(_0x68814f){const _0x3340f9=_0x309675,_0x4be297={'JaVxk':function(_0x739883,_0x5d66d5){return _0x739883(_0x5d66d5);}},_0x163beb=getSettingsPath(_0x68814f);if(!_0x4be297['JaVxk'](existsSync,_0x163beb)){const _0x5cbc7a=_0x4be297['JaVxk'](getEnvDir,_0x68814f);if(!_0x4be297['JaVxk'](existsSync,_0x5cbc7a))throw new Error('Profile\x20\x22'+_0x68814f+'\x22\x20does\x20not\x20exist.');console[_0x3340f9(0x74)]('No\x20configuration\x20set\x20for\x20\x22'+_0x68814f+'\x22');return;}const _0x2ee961=await loadSettings(_0x68814f),_0x163c92=formatSettings(_0x2ee961);!_0x163c92?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x68814f+'\x22'):console[_0x3340f9(0x74)](_0x163c92);}export async function configUnset(_0x582ed0,_0x197332){const _0x64e478=_0x309675,_0x209ddf={'OkEOo':function(_0x40f42c,_0x2240a3){return _0x40f42c(_0x2240a3);},'APNyx':function(_0x5bf0d4,_0x29f231,_0x1b8728){return _0x5bf0d4(_0x29f231,_0x1b8728);}},_0x100ac0=getEnvDir(_0x582ed0);if(!_0x209ddf[_0x64e478(0x78)](existsSync,_0x100ac0))throw new Error('Profile\x20\x22'+_0x582ed0+'\x22\x20does\x20not\x20exist.');const _0x5c7268=await _0x209ddf['OkEOo'](loadSettings,_0x582ed0),_0x26939d=deleteNestedValue(_0x5c7268,_0x197332);_0x26939d?(await _0x209ddf['APNyx'](saveSettings,_0x582ed0,_0x5c7268),console[_0x64e478(0x74)](_0x64e478(0x7f)+_0x197332)):console['log']('Key\x20\x22'+_0x197332+'\x22\x20not\x20found');}
|
package/build/commands/env.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2a2540=_0x1db6;(function(_0x270d83,_0xa999dd){const _0x3ea458=_0x1db6,_0x426903=_0x270d83();while(!![]){try{const _0x242c36=-parseInt(_0x3ea458(0x1c4))/0x1+-parseInt(_0x3ea458(0x1af))/0x2*(-parseInt(_0x3ea458(0x1bf))/0x3)+parseInt(_0x3ea458(0x1b1))/0x4+parseInt(_0x3ea458(0x1bb))/0x5+parseInt(_0x3ea458(0x1bc))/0x6*(-parseInt(_0x3ea458(0x1b5))/0x7)+parseInt(_0x3ea458(0x1ba))/0x8+-parseInt(_0x3ea458(0x1b9))/0x9;if(_0x242c36===_0xa999dd)break;else _0x426903['push'](_0x426903['shift']());}catch(_0x497ce6){_0x426903['push'](_0x426903['shift']());}}}(_0x35f3,0x6c7a6));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x35f3(){const _0x29488a=['edeCZ','log','Run:\x20ranger\x20profile\x20add\x20<profile-name>','315hPcZYd','UqrnN','local','bug-bashes','10528110qBEIjv','5607576KjHtxm','2387505Gbdrao','60138miqZqd','baseUrl','\x20\x20\x20\x20\x20\x20Details:\x20','1410594dmExxK','settings.json','JojgW','legacy','push','420709jMiKYU','isDirectory','environmentDetails','2tlZYVK','.txt','3348856UzNBxb'];_0x35f3=function(){return _0x29488a;};return _0x35f3();}import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions',_0x2a2540(0x1b8),'reports','local','ci'];function _0x1db6(_0x4efd36,_0x18c9a2){_0x4efd36=_0x4efd36-0x1af;const _0x35f30e=_0x35f3();let _0x1db630=_0x35f30e[_0x4efd36];return _0x1db630;}export async function getEnvNames(){const _0xbe895a=_0x2a2540,_0x344445={'UqrnN':function(_0x166a1b){return _0x166a1b();},'TWzbq':function(_0x3e1fd4,_0x8f7035){return _0x3e1fd4(_0x8f7035);},'edeCZ':function(_0x36d5b0,_0x37ac3f){return _0x36d5b0(_0x37ac3f);},'kWEnt':_0xbe895a(0x1b7),'WTlFR':_0xbe895a(0x1b0),'EIucX':function(_0x399157,_0x521392,_0x31b15d){return _0x399157(_0x521392,_0x31b15d);}},_0x1eb9c1=_0x344445['UqrnN'](getRangerDir);if(!_0x344445['TWzbq'](existsSync,_0x1eb9c1))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x14bbe1=await _0x344445[_0xbe895a(0x1b6)](readActiveProfileName),_0x28b8e2=[],_0x5a6682={},_0x3516c2=join(_0x1eb9c1,'local');if(existsSync(_0x3516c2)){const _0x593995=await _0x344445['edeCZ'](readdir,_0x3516c2);for(const _0xa0a999 of _0x593995){const _0x624a5e=join(_0x3516c2,_0xa0a999),_0xace74b=await _0x344445[_0xbe895a(0x1b2)](stat,_0x624a5e);_0xace74b[_0xbe895a(0x1c5)]()&&(_0x28b8e2['push'](_0xa0a999),_0x5a6682[_0xa0a999]=_0x344445['kWEnt']);}}const _0x1d383c=join(_0x1eb9c1,'ci');if(_0x344445['TWzbq'](existsSync,_0x1d383c)){const _0x257fcf=await readdir(_0x1d383c);for(const _0x98e39 of _0x257fcf){const _0x25b41f=join(_0x1d383c,_0x98e39),_0x484d5a=await stat(_0x25b41f);_0x484d5a['isDirectory']()&&(_0x28b8e2[_0xbe895a(0x1c3)](_0x98e39),_0x5a6682[_0x98e39]='ci');}}const _0x5d1541=await readdir(_0x1eb9c1);for(const _0x469aa4 of _0x5d1541){if(NON_ENV_DIRS['includes'](_0x469aa4))continue;if(_0x469aa4['startsWith']('.'))continue;if(_0x469aa4['endsWith'](_0x344445['WTlFR']))continue;const _0x913491=_0x344445['EIucX'](join,_0x1eb9c1,_0x469aa4),_0x54edd2=await stat(_0x913491);_0x54edd2[_0xbe895a(0x1c5)]()&&_0x344445[_0xbe895a(0x1b2)](existsSync,join(_0x913491,_0xbe895a(0x1c0)))&&(!_0x28b8e2['includes'](_0x469aa4)&&(_0x28b8e2['push'](_0x469aa4),_0x5a6682[_0x469aa4]=_0xbe895a(0x1c2)));}return{'envNames':_0x28b8e2,'activeEnv':_0x14bbe1,'envTypes':_0x5a6682};}export async function envList(){const _0x5d2421=_0x2a2540,_0x3ba1c2={'FVIAj':'\x0aNo\x20profiles\x20found.','UFxhO':_0x5d2421(0x1b4),'JojgW':function(_0x5b2b64,_0x465d82){return _0x5b2b64===_0x465d82;},'QQbOb':function(_0x2cb8f4,_0x5aba32){return _0x2cb8f4(_0x5aba32);}},{envNames:_0x36bdf2,activeEnv:_0xf5681c,envTypes:_0x3b9d7a}=await getEnvNames();if(_0x36bdf2['length']===0x0){console[_0x5d2421(0x1b3)](_0x3ba1c2['FVIAj']),console[_0x5d2421(0x1b3)](_0x3ba1c2['UFxhO']);return;}console['log']('\x0aProfiles:');for(const _0x47b2c5 of _0x36bdf2['sort']()){const _0x184b5c=_0x3ba1c2[_0x5d2421(0x1c1)](_0x47b2c5,_0xf5681c),_0x4e62c1=_0x3b9d7a[_0x47b2c5]||_0x5d2421(0x1b7),_0xe5809c=await _0x3ba1c2['QQbOb'](loadSettings,_0x47b2c5),_0x30fe19=_0x3ba1c2['JojgW'](_0x4e62c1,'legacy')?'':'\x20['+_0x4e62c1+']';console[_0x5d2421(0x1b3)]('\x20\x20'+(_0x184b5c?'*\x20':'\x20\x20')+_0x47b2c5+_0x30fe19),_0xe5809c[_0x5d2421(0x1bd)]&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0xe5809c['baseUrl']),_0xe5809c['environmentDetails']&&console[_0x5d2421(0x1b3)](_0x5d2421(0x1be)+_0xe5809c[_0x5d2421(0x1c6)]);}_0xf5681c&&console['log']('\x0a*\x20=\x20active\x20profile');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x52aa40=_0x3041;(function(_0x54ee2d,_0x5823a7){const _0x23f623=_0x3041,_0x644b23=_0x54ee2d();while(!![]){try{const _0x4f23ae=-parseInt(_0x23f623(0xb5))/0x1+-parseInt(_0x23f623(0x13b))/0x2+parseInt(_0x23f623(0xd8))/0x3+-parseInt(_0x23f623(0x15a))/0x4*(parseInt(_0x23f623(0x15e))/0x5)+parseInt(_0x23f623(0x146))/0x6*(-parseInt(_0x23f623(0xee))/0x7)+parseInt(_0x23f623(0xb3))/0x8+-parseInt(_0x23f623(0x9f))/0x9*(-parseInt(_0x23f623(0x145))/0xa);if(_0x4f23ae===_0x5823a7)break;else _0x644b23['push'](_0x644b23['shift']());}catch(_0x591fa7){_0x644b23['push'](_0x644b23['shift']());}}}(_0x4801,0x642a3));import{readFile,writeFile,mkdir}from'fs/promises';function _0x3041(_0x18b22f,_0x3aa82d){_0x18b22f=_0x18b22f-0x9b;const _0x48015d=_0x4801();let _0x30414b=_0x48015d[_0x18b22f];return _0x30414b;}import{join}from'path';import{existsSync}from'fs';function _0x4801(){const _0x1be8e4=['\x20\x20\x20Completed:\x20','blockedReason','JdGNE','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','currentBranch','checklistItems','qTAJP','Scenario\x20','pipe','reports','\x20\x20\x20Updated\x20branch\x20to:\x20','2794240pYxgab','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','426760pvEabT','env','/artifacts/','yAEDE','NvyaC','\x20--limit\x20','trim','\x0a✅\x20Restored\x20feature\x20review:\x20','filter','LfudB','repeat','jKpJf','storage','stats','has','nDVhV','uQhiB','Xqhoy','toLocaleDateString','replace','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x0aConcluding\x20session...','stringify','currentSessionId','iteration','map','totalCount','No\x20active\x20session\x20for\x20this\x20feature\x20review.','TAJGH','\x20\x20\x20\x20\x20ID:\x20','find','completedAt','textContent','createdAt','utf-8','258267LaLteQ','RBIpI','gitRepoUrl','any','error','Not\x20in\x20a\x20git\x20repository.','\x20>\x20','sessionId','selector','mPRgR','\x20\x20\x20Description:\x20','exit','\x20verified','PGqEC','Step\x20','iIgwF','gitBranch','log','VGqhj','HZxPF','get','blocked','7LTBsZl','comment_','HHzel','isInteger','JfkpT','ddMLx','\x0a✅\x20Feature\x20review\x20created:\x20','dashboardUrl','canceledReason','submittedAt','\x20\x20\x20\x20\x20\x20Blocked:\x20','isKeyStep','MUBBR','\x0a✅\x20Scenario\x20added','\x20--include-deleted','completed','pop','dbalx','status','wcyBz',':\x20\x22','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','write','lxrWs','oEWum','terminalReason','domRef','ljZXk','\x20\x20\x20ID:\x20','split','in_progress','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','assetUrl','\x20\x20\x20\x20','aIfET','\x20\x20\x20','incompleteReason','offset','Showing\x20','\x20[has\x20reviewer\x20feedback]','\x0a✅\x20Session\x20is\x20already\x20completed.','daHvT','Please\x20finish\x20your\x20review\x20first:','\x20(v','luqFl','FQGOg','PYGAe','\x20--current-branch','KEwKZ','agentResponse','kNiri','nlnGg','oDvJl','\x20\x20\x20Repository:\x20','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','OELSN','CLAUDE_SESSION_ID','\x0a✅\x20Session\x20','notes','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','\x20Session\x20','position','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','TrIgJ','browserSessionId','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x1b[1m','stdout','name','length','incompleteItems','nWFDw','fpEgs','active-feature.txt','iSkZF','\x20—\x20no\x20comments','...','1164416LMwTii','ready','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','scenario','push','CzCRW','QWPob','AxsRt','\x20\x20\x20Created:\x20','AAvcw','20YMRGNy','1254906XTjwMO','iOaon','items','gZjCW','arrayBuffer','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','\x20blocked','Current\x20session\x20not\x20found.','verified','yGKmu','screenshot','selected','version','json','1|4|3|0|2|5','\x20feature\x20review(s)\x20found','toLocaleString','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','XBida','GMmTE','4qWAlUD','spatial','assetType','description','478435sGmBBp','aSEwo','\x20\x20\x20\x20\x20\x20Cancelled:\x20','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','latestReview','\x0aNo\x20feature\x20reviews\x20found.','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','dryVl','dVKVE','stepName','limit','verification_in_progress','.png','unaddressedComments','ODhKH','qOBxk','\x0a⚠️\x20\x20','all','\x20\x20\x20Branch:\x20','5799204EBeCvP','element','toFixed','\x20\x20\x20Progress:\x20','\x20in\x20progress','assets','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','location'];_0x4801=function(){return _0x1be8e4;};return _0x4801();}import{execSync}from'child_process';import _0x351ff2 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=_0x52aa40(0x137),bold=_0x440f9e=>_0x52aa40(0x130)+_0x440f9e+'\x1b[0m';function getGitRepoUrl(){const _0x4a9884=_0x52aa40,_0xcfaa63={'Xqhoy':function(_0x2eded7,_0x3f2d6e,_0x19b4d9){return _0x2eded7(_0x3f2d6e,_0x19b4d9);},'WNzlW':'utf-8','lxrWs':_0x4a9884(0xb0),'dbalx':'github.com/'};try{const _0x58b5da=_0xcfaa63[_0x4a9884(0xc6)](execSync,'git\x20remote\x20get-url\x20origin',{'encoding':_0xcfaa63['WNzlW'],'stdio':['pipe',_0xcfaa63[_0x4a9884(0x105)],'pipe']})[_0x4a9884(0xbb)]();return _0x58b5da[_0x4a9884(0xc8)](/\.git$/,'')[_0x4a9884(0xc8)](/^git@github\.com:/,_0xcfaa63[_0x4a9884(0xff)])[_0x4a9884(0xc8)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x4184b0=_0x52aa40,_0xaa6e34={'MNNWb':'utf-8','PYGAe':_0x4184b0(0xb0)};try{return execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0xaa6e34['MNNWb'],'stdio':[_0x4184b0(0xb0),_0xaa6e34[_0x4184b0(0x11c)],_0x4184b0(0xb0)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x2113e6=_0x52aa40,_0x5a1182={'Sxhoz':function(_0x5c6097){return _0x5c6097();},'kNiri':function(_0x40430a,_0x5324c4){return _0x40430a(_0x5324c4);},'URiff':function(_0x19942d,_0x5a0239,_0x15147c){return _0x19942d(_0x5a0239,_0x15147c);}},_0x40999c=join(_0x5a1182['Sxhoz'](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x5a1182[_0x2113e6(0x120)](existsSync,_0x40999c))return null;try{const _0x3a38f9=await _0x5a1182['URiff'](readFile,_0x40999c,_0x2113e6(0xd7));return _0x3a38f9['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x128f55){const _0x53462a=_0x52aa40,_0x118f55={'yAEDE':function(_0x33b05d){return _0x33b05d();},'qZdLj':function(_0x53bbf6,_0x29196f){return _0x53bbf6(_0x29196f);},'zaOxL':function(_0x333b6a,_0x4a89b2,_0x47c169,_0x67d551){return _0x333b6a(_0x4a89b2,_0x47c169,_0x67d551);}},_0x458653=_0x118f55[_0x53462a(0xb8)](getRangerDir),_0x48972f=join(_0x458653,ACTIVE_FEATURE_FILE);!_0x118f55['qZdLj'](existsSync,_0x458653)&&await mkdir(_0x458653,{'recursive':!![]}),await _0x118f55['zaOxL'](writeFile,_0x48972f,_0x128f55,_0x53462a(0xd7));}function getProgressDisplay(_0x261359){const _0x32ed09=_0x52aa40,_0x212fa5={'fpEgs':function(_0x373539,_0x2fe5ae){return _0x373539+_0x2fe5ae;},'pkUVW':function(_0xfe1972,_0x5b0db1){return _0xfe1972-_0x5b0db1;},'aPVOw':function(_0x2271ac,_0x3282ac){return _0x2271ac>_0x3282ac;},'LfudB':function(_0x5947b0,_0x5be3d5){return _0x5947b0>_0x5be3d5;},'BmlKJ':function(_0x521a46,_0x34761e){return _0x521a46>_0x34761e;}},_0x1dd057=_0x261359['verifiedItems']||0x0,_0x112761=_0x261359['verificationInProgressItems']||0x0,_0x5bc553=_0x261359['blockedItems']||0x0,_0x18ce40=_0x261359[_0x32ed09(0x134)]||0x0,_0x57fa17=_0x261359['pendingItems']||0x0,_0x9b3c23=_0x212fa5[_0x32ed09(0x136)](_0x212fa5['fpEgs'](_0x1dd057+_0x112761+_0x5bc553,_0x18ce40),_0x57fa17);if(_0x9b3c23===0x0)return'-';const _0x2d0997=0xa,_0x10ee81=Math['round'](_0x1dd057/_0x9b3c23*_0x2d0997),_0x19b4dc='█'[_0x32ed09(0xbf)](_0x10ee81)+'░'[_0x32ed09(0xbf)](_0x212fa5['pkUVW'](_0x2d0997,_0x10ee81)),_0x230581=[];if(_0x212fa5['aPVOw'](_0x5bc553,0x0))_0x230581[_0x32ed09(0x13f)](_0x5bc553+_0x32ed09(0x14c));if(_0x212fa5[_0x32ed09(0xbe)](_0x18ce40,0x0))_0x230581['push'](_0x18ce40+'\x20incomplete');if(_0x212fa5['BmlKJ'](_0x112761,0x0))_0x230581[_0x32ed09(0x13f)](_0x112761+_0x32ed09(0xa3));const _0x5dc096=_0x230581['length']>0x0?'\x20('+_0x230581['join'](',\x20')+')':'';return _0x19b4dc+'\x20'+_0x1dd057+'/'+_0x9b3c23+_0x32ed09(0xe4)+_0x5dc096;}function getCurrentSessionItems(_0x3859ea,_0x44fe18){const _0x281bb8=_0x52aa40;if(!_0x3859ea['currentSessionId'])return _0x44fe18['filter'](_0x3a4efe=>!_0x3a4efe['sessionId']);return _0x44fe18['filter'](_0x23a44d=>_0x23a44d['sessionId']===_0x3859ea['currentSessionId']||!_0x23a44d[_0x281bb8(0xdf)]);}function displayFeature(_0x1f9891,_0x192135){const _0x116861=_0x52aa40,_0x42c8d6={'Uwvri':function(_0x238436,_0x217a88){return _0x238436(_0x217a88);},'duVkT':function(_0x32abf9,_0x556426){return _0x32abf9<_0x556426;},'NvyaC':_0x116861(0x14e),'qZFRr':function(_0x14bea8,_0x520c83){return _0x14bea8===_0x520c83;},'aIfET':'incomplete','luqFl':function(_0x1851e9,_0x284195){return _0x1851e9===_0x284195;},'aSEwo':'closed','VHhbp':function(_0xb8ade1,_0x3d7f41){return _0xb8ade1>_0x3d7f41;},'AAvcw':function(_0x55dec5,_0x312fdb){return _0x55dec5!==_0x312fdb;},'oEWum':function(_0x42ff87,_0xfd0d72){return _0x42ff87+_0xfd0d72;},'muYVW':function(_0xcc0848,_0x1a4074){return _0xcc0848===_0x1a4074;},'ufWhT':'approved'};console[_0x116861(0xe9)]('\x0a'+_0x1f9891[_0x116861(0x132)]+'\x20('+_0x1f9891['dashboardUrl']+')');_0x1f9891[_0x116861(0xc2)]&&console[_0x116861(0xe9)](_0x116861(0xa2)+_0x42c8d6['Uwvri'](getProgressDisplay,_0x1f9891['stats']));_0x1f9891[_0x116861(0x15d)]&&console[_0x116861(0xe9)](_0x116861(0xe2)+_0x1f9891[_0x116861(0x15d)]);_0x1f9891['gitRepoUrl']&&console[_0x116861(0xe9)](_0x116861(0x123)+_0x1f9891['gitRepoUrl']);_0x1f9891['gitBranch']&&console['log'](_0x116861(0x9e)+_0x1f9891[_0x116861(0xe8)]);console[_0x116861(0xe9)]('\x20\x20\x20Created:\x20'+new Date(_0x1f9891[_0x116861(0xd6)])[_0x116861(0x156)]());_0x1f9891['completedAt']&&console[_0x116861(0xe9)](_0x116861(0xa7)+new Date(_0x1f9891['completedAt'])[_0x116861(0x156)]());if(_0x192135&&_0x192135[_0x116861(0x133)]>0x0){console[_0x116861(0xe9)]('\x0a\x20\x20\x20Scenarios:');for(let _0x4d503d=0x0;_0x42c8d6['duVkT'](_0x4d503d,_0x192135['length']);_0x4d503d++){const _0x449a01=_0x192135[_0x4d503d];let _0x276064;if(_0x449a01[_0x116861(0x100)]==='closed'&&_0x449a01[_0x116861(0x107)]==='approved')_0x276064='✅';else{if(_0x449a01[_0x116861(0x100)]===_0x42c8d6[_0x116861(0xb9)])_0x276064='🟢';else{if(_0x42c8d6['qZFRr'](_0x449a01[_0x116861(0x100)],_0x42c8d6[_0x116861(0x110)]))_0x276064='🟠';else{if(_0x42c8d6[_0x116861(0x11a)](_0x449a01['status'],'blocked'))_0x276064='🛑';else{if(_0x42c8d6[_0x116861(0x11a)](_0x449a01[_0x116861(0x100)],_0x42c8d6[_0x116861(0x15f)]))_0x276064='⛔';else _0x449a01[_0x116861(0x100)]===_0x116861(0x169)?_0x276064='⏳':_0x276064='⬜';}}}}const _0x33f739=_0x42c8d6['VHhbp'](_0x449a01['version'],0x1)?_0x116861(0x119)+_0x449a01[_0x116861(0x152)]+')':'',_0x202674=_0x449a01[_0x116861(0x152)]>0x1&&_0x449a01['parentItemId']&&_0x449a01['status']!==_0x42c8d6['aSEwo']&&_0x42c8d6[_0x116861(0x144)](_0x449a01[_0x116861(0x100)],_0x42c8d6['NvyaC'])?_0x116861(0x115):'';console['log'](_0x116861(0x111)+_0x42c8d6[_0x116861(0x106)](_0x4d503d,0x1)+'.\x20'+_0x276064+'\x20'+_0x449a01[_0x116861(0x15d)]+_0x33f739+_0x202674);_0x449a01['status']===_0x116861(0xed)&&_0x449a01[_0x116861(0xa8)]&&console['log'](_0x116861(0xf8)+_0x449a01[_0x116861(0xa8)]);_0x449a01['status']==='incomplete'&&_0x449a01['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x449a01['incompleteReason']);if(_0x449a01[_0x116861(0x100)]===_0x42c8d6['aSEwo']&&_0x42c8d6['muYVW'](_0x449a01[_0x116861(0x107)],_0x42c8d6['ufWhT']))console[_0x116861(0xe9)]('\x20\x20\x20\x20\x20\x20Approved');else _0x449a01['status']===_0x42c8d6[_0x116861(0x15f)]&&_0x449a01['canceledReason']&&console[_0x116861(0xe9)](_0x116861(0x160)+_0x449a01['canceledReason']);}}}export async function featureCreate(_0x5152b6,_0x24afa8){const _0x513f4f=_0x52aa40,_0x55685f={'TAJGH':function(_0x5131b4,_0x50f11a){return _0x5131b4(_0x50f11a);},'zvOFv':function(_0x4726c7,_0x5b0c2a){return _0x4726c7(_0x5b0c2a);}},{envNames:_0x3f82e1}=await getEnvNames();_0x3f82e1[_0x513f4f(0x133)]===0x0&&console['warn']('\x0a'+_0x55685f[_0x513f4f(0xd1)](formatProfileRequiredMessage,_0x4395ff=>bold(_0x4395ff)));const _0x155fcf=_0x24afa8['scenarios']?_0x24afa8['scenarios'][_0x513f4f(0xce)](_0x72521e=>_0x72521e['trim']()):[],_0x34cb88=getGitRepoUrl(),_0x1b1907=getGitBranch();console[_0x513f4f(0xe9)]('\x0aCreating\x20feature\x20review...');const _0x5a0eb4=await createFeature({'name':_0x5152b6,'description':_0x24afa8['description'],'checklist':_0x155fcf,'gitRepoUrl':_0x34cb88,'gitBranch':_0x1b1907});await _0x55685f['zvOFv'](setActiveFeatureId,_0x5a0eb4['id']),await tryStartCurrentSession(_0x5a0eb4['id']);const _0x50d72e=process[_0x513f4f(0xb6)]['CLAUDE_SESSION_ID'];_0x50d72e&®isterSession(_0x50d72e,_0x5a0eb4['id']),console[_0x513f4f(0xe9)](_0x513f4f(0xf4)+_0x5a0eb4['id']),displayFeature(_0x5a0eb4,_0x5a0eb4[_0x513f4f(0xad)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x3ef56f){const _0x5824ad=_0x52aa40,_0x594d66={'iryiM':function(_0x67314e){return _0x67314e();},'YxrcD':_0x5824ad(0x163),'RBIpI':function(_0x3f5258,_0x5e56d5){return _0x3f5258>_0x5e56d5;},'GMmTE':function(_0x55ac37,_0x1f5b1d){return _0x55ac37(_0x1f5b1d);},'bxjnC':function(_0xadd3c0,_0x3866a0){return _0xadd3c0+_0x3866a0;}},_0x15d6df={'limit':_0x3ef56f[_0x5824ad(0x168)]??0xa,'offset':_0x3ef56f[_0x5824ad(0x113)]??0x0,'includeDeleted':_0x3ef56f['includeDeleted']};_0x3ef56f['currentBranch']&&(_0x15d6df[_0x5824ad(0xda)]=_0x594d66['iryiM'](getGitRepoUrl),_0x15d6df['gitBranch']=_0x594d66['iryiM'](getGitBranch));const _0x4d21a7=await listFeatures(_0x15d6df);if(_0x4d21a7[_0x5824ad(0x148)]['length']===0x0){console[_0x5824ad(0xe9)](_0x594d66['YxrcD']);return;}const _0x28fa03=_0x594d66[_0x5824ad(0xd9)](_0x4d21a7[_0x5824ad(0xcf)],_0x4d21a7[_0x5824ad(0x148)][_0x5824ad(0x133)])?_0x5824ad(0x114)+_0x4d21a7['items']['length']+'\x20of\x20'+_0x4d21a7['totalCount']:_0x4d21a7[_0x5824ad(0xcf)]+_0x5824ad(0x155);console[_0x5824ad(0xe9)]('\x0a'+_0x28fa03+':\x0a');for(const _0x45f609 of _0x4d21a7[_0x5824ad(0x148)]){const _0x3dc6e4=_0x5824ad(0x154)[_0x5824ad(0x10b)]('|');let _0x549b9d=0x0;while(!![]){switch(_0x3dc6e4[_0x549b9d++]){case'0':_0x45f609[_0x5824ad(0xe8)]&&console[_0x5824ad(0xe9)]('\x20\x20\x20Branch:\x20'+_0x45f609[_0x5824ad(0xe8)]);continue;case'1':console[_0x5824ad(0xe9)](''+_0x45f609[_0x5824ad(0x132)]);continue;case'2':console['log'](_0x5824ad(0x143)+new Date(_0x45f609['createdAt'])[_0x5824ad(0xc7)]());continue;case'3':_0x45f609['stats']&&console['log'](_0x5824ad(0xa2)+_0x594d66[_0x5824ad(0x159)](getProgressDisplay,_0x45f609[_0x5824ad(0xc2)]));continue;case'4':console['log'](_0x5824ad(0x10a)+_0x45f609['id']);continue;case'5':console['log']('');continue;}break;}}const _0x4b6a09=_0x15d6df['limit']??0xa,_0x1b9906=_0x594d66['bxjnC'](_0x15d6df['offset']??0x0,_0x4d21a7['items'][_0x5824ad(0x133)]);if(_0x1b9906<_0x4d21a7[_0x5824ad(0xcf)]){const _0x288694=_0x4b6a09!==0xa?_0x5824ad(0xba)+_0x4b6a09:'',_0x39eb71=_0x3ef56f[_0x5824ad(0xac)]?_0x5824ad(0x11d):'',_0x12a1ac=_0x3ef56f['includeDeleted']?_0x5824ad(0xfc):'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1b9906+_0x288694+_0x39eb71+_0x12a1ac);}}export async function featureShow(_0x1afa5a){const _0xf22a48=_0x52aa40,_0x7d5108={'Foaup':function(_0x4ad436){return _0x4ad436();},'CzCRW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','CIvQV':function(_0x5b9b12,_0x4c4f7d,_0x1dd1ba){return _0x5b9b12(_0x4c4f7d,_0x1dd1ba);}},_0x35dc92=_0x1afa5a||await _0x7d5108['Foaup'](getActiveFeatureId);if(!_0x35dc92)throw new Error(_0x7d5108[_0xf22a48(0x140)]);const _0x3be8d1=await getFeature(_0x35dc92);_0x7d5108['CIvQV'](displayFeature,_0x3be8d1,_0x3be8d1['checklistItems']);}export async function featureResume(_0xb20a59){const _0x5a07e2=_0x52aa40,_0x54dc5b={'QWPob':function(_0x58e92e,_0x30c0f3){return _0x58e92e(_0x30c0f3);},'qOBxk':function(_0x410e38){return _0x410e38();},'dVKVE':function(_0x2f9c16,_0x5d7f67){return _0x2f9c16(_0x5d7f67);},'lgcrd':function(_0x391480,_0x59d175){return _0x391480&&_0x59d175;},'KEwKZ':_0x5a07e2(0xdd),'MUBBR':'any','ljZXk':function(_0x567d42,_0x3ad24b){return _0x567d42||_0x3ad24b;},'jhAuL':function(_0x3bb345,_0x3cb330){return _0x3bb345===_0x3cb330;},'ppcOx':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','iOaon':_0x5a07e2(0x161),'IdUiA':'list','QgWBk':_0x5a07e2(0x151),'kkRVI':_0x5a07e2(0x13d),'RyVGx':function(_0xd6f55d,_0x3f8fbc){return _0xd6f55d!==_0x3f8fbc;},'XBida':function(_0x5b97b1,_0x21fe25,_0x5bbf55){return _0x5b97b1(_0x21fe25,_0x5bbf55);},'mPRgR':function(_0x3a8906,_0x45cf6d){return _0x3a8906(_0x45cf6d);},'iIgwF':function(_0x5c62e7,_0x41ae35){return _0x5c62e7(_0x41ae35);}};if(_0xb20a59){const _0x1ad9fe=await _0x54dc5b['QWPob'](getFeature,_0xb20a59);await _0x54dc5b[_0x5a07e2(0x141)](setActiveFeatureId,_0x1ad9fe['id']);const _0x4edb8e=_0x54dc5b[_0x5a07e2(0x9b)](getGitBranch);_0x4edb8e&&_0x4edb8e!==_0x1ad9fe[_0x5a07e2(0xe8)]&&(await updateFeature(_0x1ad9fe['id'],{'gitBranch':_0x4edb8e}),console['log'](_0x5a07e2(0xb2)+_0x4edb8e));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x1ad9fe[_0x5a07e2(0x132)]+'\x20('+_0x1ad9fe['id']+')'),await tryStartCurrentSession(_0x1ad9fe['id']);const _0x2a34d3=process[_0x5a07e2(0xb6)][_0x5a07e2(0x126)];_0x2a34d3&®isterSession(_0x2a34d3,_0x1ad9fe['id']);displayFeature(_0x1ad9fe,_0x1ad9fe[_0x5a07e2(0xad)]),await _0x54dc5b[_0x5a07e2(0x166)](printFeedbackNudge,_0x1ad9fe['id']);return;}const _0x44e5ca=getGitRepoUrl(),_0x280ce4=_0x54dc5b[_0x5a07e2(0x9b)](getGitBranch);if(_0x54dc5b['lgcrd'](!_0x44e5ca,!_0x280ce4))throw new Error(_0x54dc5b[_0x5a07e2(0x11e)]);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x44e5ca||_0x54dc5b[_0x5a07e2(0xfa)])+'\x20/\x20'+_0x54dc5b[_0x5a07e2(0x109)](_0x280ce4,_0x5a07e2(0xdb))+_0x5a07e2(0x13a));const _0x37580c=await listFeatures({'gitRepoUrl':_0x44e5ca,'gitBranch':_0x280ce4}),_0x24436b=_0x37580c[_0x5a07e2(0x148)][_0x5a07e2(0xbd)](_0x352bd0=>!_0x352bd0['completedAt']);if(_0x24436b['length']===0x0){console['log'](_0x5a07e2(0x14b)),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x3b1194;if(_0x54dc5b['jhAuL'](_0x24436b['length'],0x1))_0x3b1194=_0x24436b[0x0];else{const _0x21ff87=process['stdin']['isTTY']&&process[_0x5a07e2(0x131)]['isTTY'];if(!_0x21ff87){console[_0x5a07e2(0xe9)](_0x54dc5b['ppcOx']);for(const _0x4a3094 of _0x24436b){console[_0x5a07e2(0xe9)]('\x20\x20'+_0x4a3094['name']),console[_0x5a07e2(0xe9)](_0x5a07e2(0xd2)+_0x4a3094['id']),_0x4a3094[_0x5a07e2(0xc2)]&&console[_0x5a07e2(0xe9)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x4a3094[_0x5a07e2(0xc2)])),_0x4a3094[_0x5a07e2(0xe8)]&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x4a3094[_0x5a07e2(0xe8)]);}throw new Error(_0x54dc5b[_0x5a07e2(0x147)]);}const {selected:_0x5abdd2}=await _0x351ff2['prompt']([{'type':_0x54dc5b['IdUiA'],'name':_0x54dc5b['QgWBk'],'message':_0x54dc5b['kkRVI'],'choices':_0x24436b['map'](_0x4c6c90=>({'name':_0x4c6c90['name']+'\x20('+_0x4c6c90['id']+')','value':_0x4c6c90['id']}))}]);_0x3b1194=_0x24436b['find'](_0x6ea0dc=>_0x6ea0dc['id']===_0x5abdd2);}await _0x54dc5b['QWPob'](setActiveFeatureId,_0x3b1194['id']);_0x280ce4&&_0x54dc5b['RyVGx'](_0x280ce4,_0x3b1194[_0x5a07e2(0xe8)])&&(await _0x54dc5b[_0x5a07e2(0x158)](updateFeature,_0x3b1194['id'],{'gitBranch':_0x280ce4}),console[_0x5a07e2(0xe9)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x280ce4));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3b1194[_0x5a07e2(0x132)]+'\x20('+_0x3b1194['id']+')'),await _0x54dc5b['mPRgR'](tryStartCurrentSession,_0x3b1194['id']);const _0x31cda5=await _0x54dc5b[_0x5a07e2(0xe1)](getFeature,_0x3b1194['id']),_0x2bddb0=process['env']['CLAUDE_SESSION_ID'];_0x2bddb0&&_0x54dc5b['XBida'](registerSession,_0x2bddb0,_0x31cda5['id']),displayFeature(_0x31cda5,_0x31cda5[_0x5a07e2(0xad)]),await _0x54dc5b[_0x5a07e2(0xe7)](printFeedbackNudge,_0x31cda5['id']);}async function printFeedbackNudge(_0x4f0d05){const _0x5e3594=_0x52aa40,_0x1749b0={'YmTjI':function(_0x3f2053,_0x2d816c){return _0x3f2053(_0x2d816c);},'OELSN':function(_0x1cc40c,_0x2ad9cd,_0x35beec){return _0x1cc40c(_0x2ad9cd,_0x35beec);},'ngfCg':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x5bb9c0}=await _0x1749b0['YmTjI'](getActionItems,_0x4f0d05);let _0x139311=0x0,_0x1a306c=0x0;for(const _0x391b7a of _0x5bb9c0){const _0xd47551=await _0x1749b0[_0x5e3594(0x125)](getItemFeedback,_0x4f0d05,_0x391b7a['id']);_0xd47551['unaddressedComments'][_0x5e3594(0x133)]>0x0&&(_0x139311+=_0xd47551['unaddressedComments'][_0x5e3594(0x133)],_0x1a306c++);}_0x139311>0x0&&(console[_0x5e3594(0xe9)](_0x5e3594(0x9c)+_0x139311+_0x5e3594(0x12f)+_0x1a306c+'\x20scenario(s).'),console[_0x5e3594(0xe9)](_0x1749b0['ngfCg']));}catch{}}async function tryStartCurrentSession(_0x13b233){const _0x52c015=_0x52aa40,_0x577a23={'uEZSr':function(_0x51ad28,_0x7070f,_0x2cb04d){return _0x51ad28(_0x7070f,_0x2cb04d);}};try{const {sessions:_0x2915bc}=await listFeatureSessions(_0x13b233),_0x467fa7=_0x2915bc['find'](_0x27fab6=>_0x27fab6[_0x52c015(0x100)]===_0x52c015(0x13c));_0x467fa7&&(await _0x577a23['uEZSr'](startSession,_0x13b233,_0x467fa7['id']),console[_0x52c015(0xe9)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x467fa7[_0x52c015(0xcd)]));}catch{}}export async function featureReport(_0x19aa7f,_0x38310a){const _0x4932e8=_0x52aa40,_0x3a8bd8={'vZbMj':function(_0x1af288,_0x547112,_0x62828f){return _0x1af288(_0x547112,_0x62828f);},'xEgXm':_0x4932e8(0xb1),'VGqhj':function(_0x119ef2,_0x16ae1e){return _0x119ef2(_0x16ae1e);}},_0x3813f2=_0x19aa7f||await getActiveFeatureId();if(!_0x3813f2)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console[_0x4932e8(0xe9)]('\x0aGenerating\x20report...');const _0x7260d0=await _0x3a8bd8['vZbMj'](getFeatureReportMarkdown,_0x3813f2,{'style':_0x38310a['style']}),_0x53cc97=_0x38310a['output']||join(getRangerDir(),_0x3a8bd8['xEgXm'],_0x3813f2+'.md'),_0x49a492=join(_0x53cc97,'..');!_0x3a8bd8[_0x4932e8(0xea)](existsSync,_0x49a492)&&await mkdir(_0x49a492,{'recursive':!![]}),await writeFile(_0x53cc97,_0x7260d0,'utf-8'),console[_0x4932e8(0xe9)]('\x0a✅\x20Report\x20generated:\x20'+_0x53cc97);}function getScenarioResult(_0x383fe1){const _0x3afdb2=_0x52aa40,_0x7407b0={'XClUN':'closed'};if(_0x383fe1[_0x3afdb2(0x100)]===_0x7407b0['XClUN'])return _0x383fe1['terminalReason']??'closed';if(_0x383fe1[_0x3afdb2(0x100)]===_0x3afdb2(0x169))return _0x3afdb2(0x10c);return _0x383fe1['status'];}function getScenarioRationale(_0x3548a6,_0x1bc556){const _0x4a2429=_0x52aa40;if(_0x1bc556)return _0x1bc556;if(_0x3548a6[_0x4a2429(0xa8)])return _0x3548a6['blockedReason'];if(_0x3548a6['incompleteReason'])return _0x3548a6[_0x4a2429(0x112)];if(_0x3548a6['canceledReason'])return _0x3548a6[_0x4a2429(0xf6)];if(_0x3548a6[_0x4a2429(0x128)])return _0x3548a6[_0x4a2429(0x128)];return null;}export async function featureReportPrDescription(_0x2e9e98,_0x112159){const _0x16b806=_0x52aa40,_0x18d2d4={'dkazi':function(_0x190803){return _0x190803();},'AxsRt':_0x16b806(0xab),'TSYZk':function(_0x4afb9e,_0x6e0fb6){return _0x4afb9e(_0x6e0fb6);},'snwhU':function(_0x57eb8e,_0xf4f500,_0x2d03b4){return _0x57eb8e(_0xf4f500,_0x2d03b4);},'yGKmu':function(_0x7a4637,_0x46281a){return _0x7a4637>_0x46281a;},'ddMLx':'\x0aAvailable\x20scenarios:','daHvT':function(_0x12bd96,_0x28ab7e){return _0x12bd96+_0x28ab7e;},'ODhKH':_0x16b806(0x124),'dryVl':function(_0xd01d93,_0xab9b35,_0x167acd){return _0xd01d93(_0xab9b35,_0x167acd);}},_0xa38d0=_0x2e9e98||await _0x18d2d4['dkazi'](getActiveFeatureId);if(!_0xa38d0)throw new Error(_0x18d2d4[_0x16b806(0x142)]);const _0x5e0c04=await _0x18d2d4['TSYZk'](getFeature,_0xa38d0),_0x481783=_0x5e0c04['checklistItems']||[],_0xe0d8fc=_0x18d2d4['snwhU'](getCurrentSessionItems,_0x5e0c04,_0x481783);_0xe0d8fc[_0x16b806(0x133)]===0x0&&(console[_0x16b806(0xdc)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x58027e=_0x112159['excludeScenarios']??[],_0xc92f83=_0x58027e['filter'](_0x16ad39=>!Number[_0x16b806(0xf1)](_0x16ad39)||_0x16ad39<0x1||_0x16ad39>_0xe0d8fc['length']);if(_0x18d2d4[_0x16b806(0x14f)](_0xc92f83[_0x16b806(0x133)],0x0)){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0xc92f83['join'](',\x20')),console[_0x16b806(0xe9)](_0x18d2d4[_0x16b806(0xf3)]);for(let _0x5c19c5=0x0;_0x5c19c5<_0xe0d8fc['length'];_0x5c19c5++){console['log']('\x20\x20'+_0x18d2d4[_0x16b806(0x117)](_0x5c19c5,0x1)+'.\x20'+_0xe0d8fc[_0x5c19c5][_0x16b806(0x15d)]);}process['exit'](0x1);}const _0x5c4a54=new Set(_0x58027e['map'](_0x502db9=>_0x502db9-0x1)),_0x4f2ab3=_0xe0d8fc['filter']((_0x147a07,_0x105594)=>!_0x5c4a54[_0x16b806(0xc3)](_0x105594));_0x4f2ab3['length']===0x0&&(console[_0x16b806(0xdc)](_0x18d2d4[_0x16b806(0x16c)]),process[_0x16b806(0xe3)](0x1));if(_0x112159[_0x16b806(0x153)])await outputJsonReport(_0xa38d0,_0x5e0c04,_0x4f2ab3);else{const _0x10add1=await _0x18d2d4[_0x16b806(0x165)](getFeatureReportMarkdown,_0xa38d0,{'itemIds':_0x4f2ab3[_0x16b806(0xce)](_0xbfeaa0=>_0xbfeaa0['id'])});process['stdout'][_0x16b806(0x104)](_0x10add1['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x193f45,_0x4fc28f,_0x18a9fd){const _0x3a9f1b=_0x52aa40,_0x2db521={'PGqEC':function(_0xeec905,_0x3c3acc){return _0xeec905(_0x3c3acc);},'uQhiB':function(_0x1e66d1,_0x17eb62,_0x90247a){return _0x1e66d1(_0x17eb62,_0x90247a);},'jKpJf':function(_0x53b041){return _0x53b041();}},_0x5d5496=_0x2db521[_0x3a9f1b(0xc0)](getApiBaseUrl),_0x34f140=await getFeatureReport(_0x193f45),_0x533b02=new Map(_0x34f140['checklistItems'][_0x3a9f1b(0xce)](_0x32bfd0=>[_0x32bfd0['id'],_0x32bfd0])),_0x2f1451=await Promise[_0x3a9f1b(0x9d)](_0x18a9fd['map'](async _0x27ebfb=>{const _0x458114=_0x3a9f1b,_0x4add16=_0x533b02[_0x458114(0xec)](_0x27ebfb['id']),_0x287e96=_0x4add16?.['linkedSession']??null;let _0x3885ac=[];if(_0x27ebfb[_0x458114(0x12e)])try{const {steps:_0x4b4b6b}=await _0x2db521['PGqEC'](getBrowserSessionSteps,_0x27ebfb[_0x458114(0x12e)]);_0x4b4b6b[_0x458114(0x133)]>0x0&&(_0x3885ac=_0x4b4b6b[_0x458114(0xce)](_0x18e0b1=>{const _0x46d526=_0x458114,_0x77e83b=_0x18e0b1[_0x46d526(0xa4)]['find'](_0x2ed1e9=>_0x2ed1e9['assetType']==='screenshot'&&_0x2ed1e9['timing']==='after')??_0x18e0b1[_0x46d526(0xa4)][_0x46d526(0xd3)](_0x316acf=>_0x316acf[_0x46d526(0x15c)]===_0x46d526(0x150));let _0x57d96c=null,_0x1cf0d5=null;if(_0x77e83b){const _0x7a7a1d=_0x77e83b[_0x46d526(0xc1)][_0x46d526(0xa6)][_0x46d526(0x10b)]('/')[_0x46d526(0xfe)]();_0x57d96c=_0x5d5496+'/api/v1/mcp/browser-sessions/'+_0x27ebfb[_0x46d526(0x12e)]+_0x46d526(0xb7)+_0x7a7a1d,_0x7a7a1d&&(_0x1cf0d5=_0x7a7a1d['replace'](/\.\w+$/,'')[_0x46d526(0xc8)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x1cf0d5||_0x18e0b1['description']||_0x18e0b1[_0x46d526(0x167)]||_0x46d526(0xe6)+_0x18e0b1[_0x46d526(0x12b)],'screenshot':_0x57d96c,'is_key_step':_0x18e0b1[_0x46d526(0xf9)]};}));}catch{}return _0x3885ac[_0x458114(0x133)]===0x0&&_0x287e96?.['screenshotUrls']&&(_0x3885ac=_0x287e96['screenshotUrls']['map']((_0xd7c94,_0x2a21c4)=>({'description':'Screenshot\x20'+(_0x2a21c4+0x1),'screenshot':_0xd7c94,'is_key_step':![]}))),{'description':_0x27ebfb[_0x458114(0x15d)],'result':_0x2db521[_0x458114(0xe5)](getScenarioResult,_0x27ebfb),'rationale':_0x2db521[_0x458114(0xc5)](getScenarioRationale,_0x27ebfb,_0x287e96?.[_0x458114(0x11f)]),'steps':_0x3885ac};})),_0x2e5c48={'url':_0x4fc28f[_0x3a9f1b(0xf5)],'scenarios':_0x2f1451};process['stdout'][_0x3a9f1b(0x104)](JSON[_0x3a9f1b(0xcb)](_0x2e5c48,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x667649){const _0x711dce=_0x52aa40,_0x5e5845={'pPAme':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','AyIuI':function(_0x202e6,_0x56ec90){return _0x202e6(_0x56ec90);},'qvqVr':function(_0x2b7d4d,_0x501afa){return _0x2b7d4d(_0x501afa);},'PrELt':'completed','VxZkS':_0x711dce(0x116),'nplzl':function(_0x4c45e2,_0x503287){return _0x4c45e2!==_0x503287;},'PvKNj':_0x711dce(0x10c),'vnxjj':_0x711dce(0xca)},_0x3504ca=_0x667649||await getActiveFeatureId();if(!_0x3504ca)throw new Error(_0x5e5845['pPAme']);const _0x511181=await _0x5e5845['AyIuI'](getFeature,_0x3504ca);if(!_0x511181[_0x711dce(0xcc)])throw new Error(_0x711dce(0xd0));const {sessions:_0x5d4532}=await _0x5e5845['qvqVr'](listFeatureSessions,_0x3504ca),_0x506fd3=_0x5d4532['find'](_0x28320e=>_0x28320e['id']===_0x511181[_0x711dce(0xcc)]);if(!_0x506fd3)throw new Error(_0x711dce(0x14d));if(_0x506fd3[_0x711dce(0x100)]===_0x5e5845['PrELt']){console['log'](_0x5e5845['VxZkS']);return;}if(_0x5e5845['nplzl'](_0x506fd3[_0x711dce(0x100)],_0x5e5845['PvKNj']))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x506fd3[_0x711dce(0x100)]);console[_0x711dce(0xe9)](_0x5e5845['vnxjj']),await concludeSession(_0x3504ca,_0x511181[_0x711dce(0xcc)]),console[_0x711dce(0xe9)](_0x711dce(0x127)+_0x506fd3['iteration']+'\x20concluded.'),console['log'](_0x711dce(0xa5));}export async function featureSessions(_0x2f94bb){const _0x5d229a=_0x52aa40,_0x1f472a={'oDvJl':function(_0x20aa06){return _0x20aa06();},'wcyBz':_0x5d229a(0xab),'FNwps':function(_0x228093,_0x2636df){return _0x228093(_0x2636df);},'FQGOg':function(_0x57e35c,_0x56f58f){return _0x57e35c===_0x56f58f;},'nDVhV':'No\x20sessions\x20found.','xbgnj':_0x5d229a(0xfd)},_0x2edf6e=_0x2f94bb||await _0x1f472a[_0x5d229a(0x122)](getActiveFeatureId);if(!_0x2edf6e)throw new Error(_0x1f472a[_0x5d229a(0x101)]);const _0x541a6e=await _0x1f472a['FNwps'](getFeature,_0x2edf6e);console[_0x5d229a(0xe9)](_0x5d229a(0x129)+_0x541a6e[_0x5d229a(0x132)]+'\x0a');const {sessions:_0x926c9c}=await listFeatureSessions(_0x2edf6e);if(_0x1f472a[_0x5d229a(0x11b)](_0x926c9c[_0x5d229a(0x133)],0x0)){console[_0x5d229a(0xe9)](_0x1f472a[_0x5d229a(0xc4)]);return;}for(const _0x5cc236 of _0x926c9c){const _0x5a022a=_0x1f472a[_0x5d229a(0x11b)](_0x5cc236['status'],_0x1f472a['xbgnj'])?'✅':_0x1f472a[_0x5d229a(0x11b)](_0x5cc236[_0x5d229a(0x100)],_0x5d229a(0x10c))?'🔄':'▶️';console[_0x5d229a(0xe9)](_0x5a022a+_0x5d229a(0x12a)+_0x5cc236['iteration']+'\x20('+_0x5cc236['id']+')'),console[_0x5d229a(0xe9)]('\x20\x20\x20Status:\x20'+_0x5cc236[_0x5d229a(0x100)]),console[_0x5d229a(0xe9)](_0x5d229a(0x143)+new Date(_0x5cc236['createdAt'])[_0x5d229a(0x156)]()),_0x5cc236[_0x5d229a(0xd4)]&&console[_0x5d229a(0xe9)]('\x20\x20\x20Completed:\x20'+new Date(_0x5cc236['completedAt'])[_0x5d229a(0x156)]()),console[_0x5d229a(0xe9)]('');}}export async function featureAddScenario(_0x3f9f17,_0x1f0899){const _0x7c43cc=_0x52aa40,_0x179890={'HHzel':function(_0x1f4663,_0xe9e312,_0x34f334){return _0x1f4663(_0xe9e312,_0x34f334);},'NacUS':function(_0x53f3b5,_0x5521b8,_0x550971){return _0x53f3b5(_0x5521b8,_0x550971);}},_0x45ca56=_0x1f0899||await getActiveFeatureId();if(!_0x45ca56)throw new Error(_0x7c43cc(0x12c));const _0x29fbb9=await getFeature(_0x45ca56);if(_0x29fbb9['latestReview']&&!_0x29fbb9[_0x7c43cc(0x162)][_0x7c43cc(0xf7)])throw new Error(_0x7c43cc(0x10d)+_0x29fbb9[_0x7c43cc(0xf5)]);await _0x179890[_0x7c43cc(0xf0)](createChecklistItem,_0x45ca56,_0x3f9f17);const _0x4f22a7=await getFeature(_0x45ca56);console['log'](_0x7c43cc(0xfb)),_0x179890['NacUS'](displayFeature,_0x4f22a7,_0x4f22a7['checklistItems']);}export async function featureEditScenario(_0x3f7682,_0x5bd19c){const _0x709338=_0x52aa40,_0x4e87a3={'CibwD':function(_0x426b2c,_0x28d7cd){return _0x426b2c(_0x28d7cd);},'AKTby':_0x709338(0x157),'gZjCW':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','UprUb':function(_0xe1fb36,_0x422908){return _0xe1fb36+_0x422908;},'dzRde':function(_0x26dd33,_0x569cfb){return _0x26dd33-_0x569cfb;},'HZxPF':function(_0x265234,_0x198dae){return _0x265234>=_0x198dae;},'nlnGg':'\x0aAvailable\x20scenarios:','nWFDw':function(_0x144ad8,_0x20a5fe,_0x6233a4){return _0x144ad8(_0x20a5fe,_0x6233a4);}},_0x24e669=_0x5bd19c['id']||await getActiveFeatureId();!_0x24e669&&(console[_0x709338(0xdc)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error']('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x3db6df=await _0x4e87a3['CibwD'](getFeature,_0x24e669);_0x3db6df[_0x709338(0x162)]&&!_0x3db6df['latestReview'][_0x709338(0xf7)]&&(console[_0x709338(0xdc)](_0x4e87a3['AKTby']),console['error'](_0x709338(0x118)),console[_0x709338(0xdc)]('\x20\x20'+_0x3db6df[_0x709338(0xf5)]),process[_0x709338(0xe3)](0x1));const _0x407176=_0x3db6df['checklistItems']||[];_0x407176['length']===0x0&&(console[_0x709338(0xdc)](_0x4e87a3[_0x709338(0x149)]),process[_0x709338(0xe3)](0x1));if(_0x5bd19c[_0x709338(0x13e)]===undefined){console['error'](_0x709338(0xc9)),console[_0x709338(0xe9)]('\x0aAvailable\x20scenarios:');for(let _0x58b2da=0x0;_0x58b2da<_0x407176['length'];_0x58b2da++){console[_0x709338(0xe9)]('\x20\x20'+_0x4e87a3['UprUb'](_0x58b2da,0x1)+'.\x20'+_0x407176[_0x58b2da]['description']);}process['exit'](0x1);}const _0x2aba00=_0x4e87a3['dzRde'](_0x5bd19c['scenario'],0x1);if(_0x2aba00<0x0||_0x4e87a3[_0x709338(0xeb)](_0x2aba00,_0x407176['length'])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x5bd19c['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x407176[_0x709338(0x133)]+'\x20scenarios.'),console[_0x709338(0xe9)](_0x4e87a3[_0x709338(0x121)]);for(let _0x3209ad=0x0;_0x3209ad<_0x407176[_0x709338(0x133)];_0x3209ad++){console[_0x709338(0xe9)]('\x20\x20'+(_0x3209ad+0x1)+'.\x20'+_0x407176[_0x3209ad]['description']);}process[_0x709338(0xe3)](0x1);}const _0x38ad9e=_0x407176[_0x2aba00];await updateChecklistItem(_0x24e669,_0x38ad9e['id'],{'description':_0x3f7682});const _0x3a13c1=await getFeature(_0x24e669);console['log']('\x0a✅\x20Scenario\x20updated'),_0x4e87a3[_0x709338(0x135)](displayFeature,_0x3a13c1,_0x3a13c1['checklistItems']);}async function downloadFeedbackImage(_0x166fda,_0x1906b7){const _0x4c3192=_0x52aa40,_0x232ff9={'JdGNE':function(_0x2ff221){return _0x2ff221();},'BBijt':'feedback-images','uECJK':function(_0x4bcf69,_0x50d7be){return _0x4bcf69(_0x50d7be);},'bFeiF':function(_0x130a7a,_0x136002,_0x4beb8f){return _0x130a7a(_0x136002,_0x4beb8f);}};try{const _0x2fd21c=join(_0x232ff9[_0x4c3192(0xa9)](getRangerDir),_0x232ff9['BBijt']);await mkdir(_0x2fd21c,{'recursive':!![]});const _0x5b6f6d=join(_0x2fd21c,_0x4c3192(0xef)+_0x1906b7+_0x4c3192(0x16a)),_0x3fb0fb=await _0x232ff9['uECJK'](fetch,_0x166fda);if(!_0x3fb0fb['ok'])return null;const _0x5c349d=Buffer['from'](await _0x3fb0fb[_0x4c3192(0x14a)]());return await _0x232ff9['bFeiF'](writeFile,_0x5b6f6d,_0x5c349d),_0x5b6f6d;}catch{return null;}}export async function featureGetReview(_0x346aeb){const _0x1057dd=_0x52aa40,_0x2c0c20={'OshcQ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','HGfAW':function(_0x8b652d,_0x53519f){return _0x8b652d(_0x53519f);},'JfkpT':function(_0x55bc24,_0x430542){return _0x55bc24<_0x430542;},'iSkZF':function(_0x1c3c66,_0x1fdb8c){return _0x1c3c66>_0x1fdb8c;},'uEtQe':function(_0x393c08,_0x126d3c,_0x528844){return _0x393c08(_0x126d3c,_0x528844);},'PhJDY':'short','gmYXZ':_0x1057dd(0xa0),'oGNuO':function(_0x6ca4c7,_0x124bc6){return _0x6ca4c7+_0x124bc6;}},_0x3b1c65=_0x346aeb||await getActiveFeatureId();if(!_0x3b1c65)throw new Error(_0x2c0c20['OshcQ']);const _0x4b8ae8=await _0x2c0c20['HGfAW'](getFeature,_0x3b1c65),{items:_0x339f30}=await getActionItems(_0x3b1c65);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x4b8ae8[_0x1057dd(0x132)]+'\x20('+_0x4b8ae8['id']+')\x0a');if(_0x339f30['length']===0x0){console[_0x1057dd(0xe9)]('No\x20scenarios\x20found.');return;}for(let _0x49552c=0x0;_0x2c0c20[_0x1057dd(0xf2)](_0x49552c,_0x339f30[_0x1057dd(0x133)]);_0x49552c++){const _0xfd2d7b=_0x339f30[_0x49552c],_0x1cc87a=_0x2c0c20[_0x1057dd(0x138)](_0xfd2d7b[_0x1057dd(0x152)],0x1)?'\x20(v'+_0xfd2d7b['version']+')':'',_0x68420f=await _0x2c0c20['uEtQe'](getItemFeedback,_0x3b1c65,_0xfd2d7b['id']);if(_0x68420f[_0x1057dd(0x16b)]['length']>0x0){console[_0x1057dd(0xe9)](_0x1057dd(0xaf)+(_0x49552c+0x1)+_0x1057dd(0x102)+_0xfd2d7b[_0x1057dd(0x15d)]+'\x22'+_0x1cc87a+'\x20—\x20'+_0x68420f[_0x1057dd(0x16b)]['length']+'\x20unaddressed\x20comment(s)');for(const _0x1f83ae of _0x68420f['unaddressedComments']){const _0x22771a=new Date(_0x1f83ae[_0x1057dd(0xd6)])[_0x1057dd(0xc7)]('en-US',{'month':_0x2c0c20['PhJDY'],'day':'numeric'}),_0xaa8780=_0x1f83ae['authorName']||_0x1f83ae['authorEmail']||'Unknown';console[_0x1057dd(0xe9)]('\x20\x20💬\x20'+_0xaa8780+'\x20('+_0x22771a+'):\x20\x22'+_0x1f83ae['content']+'\x22');if(_0x1f83ae[_0x1057dd(0x10e)]){const _0x29fb6c=await downloadFeedbackImage(_0x1f83ae[_0x1057dd(0x10e)],_0x1f83ae['id']);_0x29fb6c&&console['log'](_0x1057dd(0xaa)+_0x29fb6c);}if(_0x1f83ae['domRef']){const _0x3c98bf=_0x1f83ae['domRef'][_0x1057dd(0xe0)][_0x1057dd(0x10b)](_0x1057dd(0xde))['pop']()?.['split'](':')[0x0]||_0x2c0c20['gmYXZ'],_0x5853dc=_0x1f83ae[_0x1057dd(0x108)][_0x1057dd(0xd5)]?'\x20\x22'+_0x1f83ae[_0x1057dd(0x108)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x3c98bf+'>'+_0x5853dc),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x1f83ae['domRef']['selector']);}else{if(_0x1f83ae[_0x1057dd(0x15b)]){const _0x325aee=_0x1f83ae['spatial']['coordinates'];_0x1f83ae[_0x1057dd(0x15b)]['type']==='point'&&_0x325aee['length']>=0x2?console[_0x1057dd(0xe9)](_0x1057dd(0x164)+_0x325aee[0x0]['toFixed'](0x2)+',\x20'+_0x325aee[0x1]['toFixed'](0x2)+')'):console[_0x1057dd(0xe9)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x1f83ae['spatial']['type']+'\x20at\x20['+_0x325aee['map'](_0x4161f0=>_0x4161f0[_0x1057dd(0xa1)](0x2))['join'](',\x20')+']');}}}if(_0x68420f['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x42586a of _0x68420f['canonicalFlow']['split']('\x0a')){console[_0x1057dd(0xe9)](_0x1057dd(0x10f)+_0x42586a);}}}else console[_0x1057dd(0xe9)](_0x1057dd(0xaf)+_0x2c0c20['oGNuO'](_0x49552c,0x1)+':\x20\x22'+_0xfd2d7b['description']+'\x22'+_0x1cc87a+_0x1057dd(0x139)),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x1057dd(0xe9)]('');}}export async function featureDelete(_0x1ae1af){const _0x57aab8=_0x52aa40,_0x5b08c7={'TrIgJ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x55e2fc=_0x1ae1af||await getActiveFeatureId();if(!_0x55e2fc)throw new Error(_0x5b08c7[_0x57aab8(0x12d)]);const _0x39ebc8=await getFeature(_0x55e2fc);await softDeleteFeature(_0x55e2fc),console[_0x57aab8(0xe9)](_0x57aab8(0x103)+_0x39ebc8['name']+'\x20('+_0x55e2fc+')'),console[_0x57aab8(0xe9)](_0x57aab8(0xb4)+_0x55e2fc);}export async function featureRestore(_0x12e61a){const _0x178f83=_0x52aa40,_0xff0f6a={'icDZB':function(_0x39784c,_0x32881c){return _0x39784c(_0x32881c);},'qTAJP':function(_0x3ceda2,_0x42c034,_0x43165f){return _0x3ceda2(_0x42c034,_0x43165f);}};await restoreFeature(_0x12e61a);const _0x16e569=await _0xff0f6a['icDZB'](getFeature,_0x12e61a);console['log'](_0x178f83(0xbc)+_0x16e569['name']+'\x20('+_0x12e61a+')'),_0xff0f6a[_0x178f83(0xae)](displayFeature,_0x16e569,_0x16e569[_0x178f83(0xad)]);}
|
|
1
|
+
const _0xf97093=_0x4a73;(function(_0x4495b1,_0x3a1b90){const _0x4444e0=_0x4a73,_0x2f6e81=_0x4495b1();while(!![]){try{const _0x16d6c5=parseInt(_0x4444e0(0x180))/0x1+-parseInt(_0x4444e0(0x14d))/0x2*(-parseInt(_0x4444e0(0x1c0))/0x3)+-parseInt(_0x4444e0(0x203))/0x4+-parseInt(_0x4444e0(0x1a1))/0x5*(parseInt(_0x4444e0(0x137))/0x6)+-parseInt(_0x4444e0(0x171))/0x7*(-parseInt(_0x4444e0(0x198))/0x8)+parseInt(_0x4444e0(0x17d))/0x9*(-parseInt(_0x4444e0(0x1bc))/0xa)+-parseInt(_0x4444e0(0x181))/0xb;if(_0x16d6c5===_0x3a1b90)break;else _0x2f6e81['push'](_0x2f6e81['shift']());}catch(_0x26ffbd){_0x2f6e81['push'](_0x2f6e81['shift']());}}}(_0x3080,0x2319c));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x271579 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';function _0x4a73(_0x2e16f3,_0x39c68e){_0x2e16f3=_0x2e16f3-0x121;const _0x308037=_0x3080();let _0x4a73d9=_0x308037[_0x2e16f3];return _0x4a73d9;}const ACTIVE_FEATURE_FILE=_0xf97093(0x177),bold=_0x3c0942=>'\x1b[1m'+_0x3c0942+'\x1b[0m';function getGitRepoUrl(){const _0x4b1be6=_0xf97093,_0x3677fc={'bcdNo':_0x4b1be6(0x166),'QFOXW':_0x4b1be6(0x194),'bQyUU':_0x4b1be6(0x1f3)};try{const _0x512f14=execSync(_0x3677fc['bcdNo'],{'encoding':_0x3677fc[_0x4b1be6(0x1db)],'stdio':[_0x3677fc['bQyUU'],'pipe',_0x3677fc[_0x4b1be6(0x188)]]})[_0x4b1be6(0x17e)]();return _0x512f14[_0x4b1be6(0x1d2)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x4b1be6(0x1d2)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x2a77be=_0xf97093,_0x49b21a={'XkgjO':function(_0x397348,_0x15fe55,_0x4c9305){return _0x397348(_0x15fe55,_0x4c9305);},'lzkUy':'pipe'};try{return _0x49b21a['XkgjO'](execSync,_0x2a77be(0x1f1),{'encoding':'utf-8','stdio':[_0x2a77be(0x1f3),_0x49b21a[_0x2a77be(0x147)],_0x49b21a['lzkUy']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x24ae64=_0xf97093,_0x4b0c36={'hWzLi':'utf-8'},_0x1bd39c=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x1bd39c))return null;try{const _0x4f768e=await readFile(_0x1bd39c,_0x4b0c36['hWzLi']);return _0x4f768e[_0x24ae64(0x17e)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x2889ec){const _0x4f6d9b=_0xf97093,_0x2fe408=getRangerDir(),_0x5008ab=join(_0x2fe408,ACTIVE_FEATURE_FILE);!existsSync(_0x2fe408)&&await mkdir(_0x2fe408,{'recursive':!![]}),await writeFile(_0x5008ab,_0x2889ec,_0x4f6d9b(0x194));}function getProgressDisplay(_0x304f73){const _0x184ac1=_0xf97093,_0x352536={'rjYFH':function(_0x288d0d,_0x27466b){return _0x288d0d===_0x27466b;},'ylkNd':function(_0x4813a2,_0x37ea03){return _0x4813a2*_0x37ea03;},'HDzIY':function(_0x56ddf0,_0x3d6d5b){return _0x56ddf0/_0x3d6d5b;},'zDFay':function(_0x3a74e9,_0x24e590){return _0x3a74e9>_0x24e590;}},_0x12aeb9=_0x304f73['verifiedItems']||0x0,_0x5b73e6=_0x304f73['verificationInProgressItems']||0x0,_0x14da6a=_0x304f73['blockedItems']||0x0,_0x1ffb2b=_0x304f73[_0x184ac1(0x197)]||0x0,_0x2b2a89=_0x304f73[_0x184ac1(0x15e)]||0x0,_0x3ffc2c=_0x12aeb9+_0x5b73e6+_0x14da6a+_0x1ffb2b+_0x2b2a89;if(_0x352536['rjYFH'](_0x3ffc2c,0x0))return'-';const _0x2fbf39=0xa,_0x4e634f=Math['round'](_0x352536[_0x184ac1(0x1a9)](_0x352536['HDzIY'](_0x12aeb9,_0x3ffc2c),_0x2fbf39)),_0x479a16='█'[_0x184ac1(0x127)](_0x4e634f)+'░'[_0x184ac1(0x127)](_0x2fbf39-_0x4e634f),_0x2b0f1f=[];if(_0x14da6a>0x0)_0x2b0f1f['push'](_0x14da6a+_0x184ac1(0x164));if(_0x352536['zDFay'](_0x1ffb2b,0x0))_0x2b0f1f['push'](_0x1ffb2b+_0x184ac1(0x163));if(_0x5b73e6>0x0)_0x2b0f1f['push'](_0x5b73e6+'\x20in\x20progress');const _0x3633bb=_0x2b0f1f[_0x184ac1(0x1d6)]>0x0?'\x20('+_0x2b0f1f[_0x184ac1(0x1c2)](',\x20')+')':'';return _0x479a16+'\x20'+_0x12aeb9+'/'+_0x3ffc2c+'\x20verified'+_0x3633bb;}function _0x3080(){const _0xbd7dc7=['iMjeQ','terminalReason','pop','9ueTrMe','trim','domRef','168081ihFccR','241681xwttxB','scenarios','\x20>\x20','VcxZL','\x0aCreating\x20feature\x20review...','EKQdU','\x20—\x20','bQyUU','CrkTY','lHybg','kyNpA','\x0aNo\x20feature\x20reviews\x20found.','mwONa','scenario','assetUrl','limit','WXGca','incompleteReason','gitRepoUrl','utf-8','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','closed','incompleteItems','1713904prcyBK','ZShAp','lQjOf','RTrIx','\x20\x20\x20Status:\x20','arrayBuffer','zQxHi','unaddressedComments','ucMoY','75uhExrg','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','BMtJc','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0a\x20\x20\x20Scenarios:','find','\x20\x20\x20\x20\x20ID:\x20','env','ylkNd','dashboardUrl','\x0a✅\x20Scenario\x20updated','isTTY','wxbPP','assetType','Step\x20','\x20\x20\x20\x20\x20\x20Incomplete:\x20','status','trimEnd','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','HDwIE','PZPcc','\x20\x20\x20Updated\x20branch\x20to:\x20','ETIMj','comment_','/artifacts/','location','completedAt','2846410bSuuuF','notes','gitBranch','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','15033ntGDFu','CHukU','join','warn','name','map','itOqK','blocked','\x20\x20\x20','any','completed','incomplete','\x20\x20\x20\x20\x20\x20Approved','ACqAx','Scenario\x20','\x20\x20\x20\x20\x20\x20Cancelled:\x20','ZHVuB','uHIWS','replace','LfvYK','\x20\x20Expected\x20flow:','uqfvX','length','JVPPh','jQVhm','\x20of\x20','qHZsG','QFOXW','currentBranch','tjhgD','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','WbJSC','cucCK','feedback-images','spatial','jOgOE','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','/api/v1/mcp/browser-sessions/','POrGO','storage','Rnhgn','MCBaz','yZcOj','UjbNf','in_progress','Hdzoi','\x0a✅\x20Report\x20generated:\x20','xebbM','dezZd','git\x20rev-parse\x20--abbrev-ref\x20HEAD','sessionId','pipe','latestReview','\x20\x20\x20▶️\x20Started\x20session\x20','XwLYW','filter','lNuiG','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x20\x20\x20\x20\x20\x20Blocked:\x20','stepName','\x20\x20\x20Completed:\x20','blockedReason','sYZzi','items','totalCount','.png','assets','413548CExaPz','\x20\x20\x20Description:\x20','numeric','\x20--limit\x20','GfRZA','iteration','split','description','NhbOe','Gdfyg','repeat','all','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','offset','screenshot','log','Next\x20page:\x20ranger\x20list\x20--offset\x20','HfHYs','\x20--current-branch','textContent','browserSessionId','uFInQ','GkYJl','\x20\x20💬\x20','toFixed','stats','25626mbHMiH','WEQKI','stringify','JKNTn','DtXAu','leVuA','error','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','No\x20scenarios\x20found.','exit','screenshotUrls','DeAXa','OcjmU','EUGhm','ctzIT','version','lzkUy','...','canceledReason','neFrB','after','gGfHw','94JpBIuY','toLocaleDateString','CzgWv','hSLNN','approved','\x0aConcluding\x20session...','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','AMnjw','\x20--include-deleted','currentSessionId','\x0aAvailable\x20scenarios:','isKeyStep','agentResponse','prompt','checklistItems','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','\x20\x20\x20Branch:\x20','pendingItems','position','\x20(v','parentItemId','authorEmail','\x20incomplete','\x20blocked','jcdNE','git\x20remote\x20get-url\x20origin','toLocaleString','coordinates','iXvnt','style','createdAt','Please\x20finish\x20your\x20review\x20first:','Showing\x20','\x0a✅\x20Session\x20','\x20\x20✅\x20No\x20feedback\x20to\x20address','4|2|3|5|0|1','7jlCtIE','output','lmsuO','\x20scenario(s).','selector','CLAUDE_SESSION_ID','active-feature.txt','submittedAt','en-US'];_0x3080=function(){return _0xbd7dc7;};return _0x3080();}function getCurrentSessionItems(_0x4e5293,_0x246cbf){const _0x1c57af=_0xf97093;if(!_0x4e5293['currentSessionId'])return _0x246cbf['filter'](_0x13b2af=>!_0x13b2af['sessionId']);return _0x246cbf['filter'](_0x1048e5=>_0x1048e5[_0x1c57af(0x1f2)]===_0x4e5293['currentSessionId']||!_0x1048e5[_0x1c57af(0x1f2)]);}function displayFeature(_0x59ecdd,_0x228751){const _0xffc8b6=_0xf97093,_0xa4ec64={'vDFmK':function(_0xf00415,_0x3e1f56){return _0xf00415(_0x3e1f56);},'PZPcc':function(_0x63088b,_0xf1fac3){return _0x63088b>_0xf1fac3;},'kyNpA':_0xffc8b6(0x1a5),'OQVjS':function(_0x59cc83,_0x39e6e6){return _0x59cc83<_0x39e6e6;},'DHkKd':function(_0x569bf8,_0x3b52c5){return _0x569bf8===_0x3b52c5;},'uHIWS':function(_0x519f9b,_0x13faf5){return _0x519f9b===_0x13faf5;},'BMtJc':'verified','bMJoj':function(_0x510dcf,_0x218d0d){return _0x510dcf===_0x218d0d;},'wxbPP':function(_0x3a7fab,_0x2b589e){return _0x3a7fab===_0x2b589e;},'mwONa':function(_0x5c0a50,_0x229a9f){return _0x5c0a50===_0x229a9f;},'ctzIT':'closed','pOPKz':function(_0x48c78e,_0x387a01){return _0x48c78e!==_0x387a01;},'HfHYs':'incomplete','ygivF':'approved'};console[_0xffc8b6(0x12c)]('\x0a'+_0x59ecdd['name']+'\x20('+_0x59ecdd[_0xffc8b6(0x1aa)]+')');_0x59ecdd['stats']&&console[_0xffc8b6(0x12c)]('\x20\x20\x20Progress:\x20'+_0xa4ec64['vDFmK'](getProgressDisplay,_0x59ecdd[_0xffc8b6(0x136)]));_0x59ecdd[_0xffc8b6(0x124)]&&console['log'](_0xffc8b6(0x204)+_0x59ecdd['description']);_0x59ecdd['gitRepoUrl']&&console['log']('\x20\x20\x20Repository:\x20'+_0x59ecdd[_0xffc8b6(0x193)]);_0x59ecdd['gitBranch']&&console['log'](_0xffc8b6(0x15d)+_0x59ecdd['gitBranch']);console[_0xffc8b6(0x12c)]('\x20\x20\x20Created:\x20'+new Date(_0x59ecdd[_0xffc8b6(0x16b)])['toLocaleString']());_0x59ecdd['completedAt']&&console[_0xffc8b6(0x12c)]('\x20\x20\x20Completed:\x20'+new Date(_0x59ecdd['completedAt'])['toLocaleString']());if(_0x228751&&_0xa4ec64[_0xffc8b6(0x1b5)](_0x228751[_0xffc8b6(0x1d6)],0x0)){console[_0xffc8b6(0x12c)](_0xa4ec64[_0xffc8b6(0x18b)]);for(let _0x2f0273=0x0;_0xa4ec64['OQVjS'](_0x2f0273,_0x228751[_0xffc8b6(0x1d6)]);_0x2f0273++){const _0x40c268=_0x228751[_0x2f0273];let _0x244953;if(_0xa4ec64['DHkKd'](_0x40c268['status'],_0xffc8b6(0x196))&&_0xa4ec64[_0xffc8b6(0x1d1)](_0x40c268['terminalReason'],_0xffc8b6(0x151)))_0x244953='✅';else{if(_0x40c268[_0xffc8b6(0x1b1)]===_0xa4ec64['BMtJc'])_0x244953='🟢';else{if(_0xa4ec64['bMJoj'](_0x40c268[_0xffc8b6(0x1b1)],_0xffc8b6(0x1cb)))_0x244953='🟠';else{if(_0xa4ec64[_0xffc8b6(0x1ad)](_0x40c268['status'],'blocked'))_0x244953='🛑';else{if(_0xa4ec64['mwONa'](_0x40c268['status'],_0xa4ec64[_0xffc8b6(0x145)]))_0x244953='⛔';else _0x40c268['status']==='verification_in_progress'?_0x244953='⏳':_0x244953='⬜';}}}}const _0x344c8f=_0x40c268[_0xffc8b6(0x146)]>0x1?_0xffc8b6(0x160)+_0x40c268[_0xffc8b6(0x146)]+')':'',_0x4cce3d=_0x40c268[_0xffc8b6(0x146)]>0x1&&_0x40c268[_0xffc8b6(0x161)]&&_0x40c268['status']!==_0xa4ec64[_0xffc8b6(0x145)]&&_0xa4ec64['pOPKz'](_0x40c268['status'],_0xa4ec64[_0xffc8b6(0x1a3)])?'\x20[has\x20reviewer\x20feedback]':'';console[_0xffc8b6(0x12c)](_0xffc8b6(0x1c8)+(_0x2f0273+0x1)+'.\x20'+_0x244953+'\x20'+_0x40c268['description']+_0x344c8f+_0x4cce3d);_0xa4ec64[_0xffc8b6(0x18d)](_0x40c268[_0xffc8b6(0x1b1)],_0xffc8b6(0x1c7))&&_0x40c268['blockedReason']&&console[_0xffc8b6(0x12c)](_0xffc8b6(0x1fa)+_0x40c268[_0xffc8b6(0x1fd)]);_0x40c268['status']===_0xa4ec64[_0xffc8b6(0x12e)]&&_0x40c268[_0xffc8b6(0x192)]&&console[_0xffc8b6(0x12c)](_0xffc8b6(0x1b0)+_0x40c268[_0xffc8b6(0x192)]);if(_0xa4ec64['mwONa'](_0x40c268['status'],_0xa4ec64[_0xffc8b6(0x145)])&&_0xa4ec64['bMJoj'](_0x40c268['terminalReason'],_0xa4ec64['ygivF']))console['log'](_0xffc8b6(0x1cc));else _0xa4ec64[_0xffc8b6(0x18d)](_0x40c268[_0xffc8b6(0x1b1)],_0xa4ec64['ctzIT'])&&_0x40c268['canceledReason']&&console[_0xffc8b6(0x12c)](_0xffc8b6(0x1cf)+_0x40c268[_0xffc8b6(0x149)]);}}}export async function featureCreate(_0x264e5b,_0x27bbb3){const _0x97674a=_0xf97093,_0x2d9d36={'LsnEH':function(_0x340afa,_0x18f9e7){return _0x340afa===_0x18f9e7;},'qQrXl':function(_0x3a2bb2,_0x53de86){return _0x3a2bb2(_0x53de86);},'WXGca':function(_0x578b5b){return _0x578b5b();},'hMxfp':_0x97674a(0x185),'ucMoY':function(_0x353e59,_0x316891,_0x23444f){return _0x353e59(_0x316891,_0x23444f);}},{envNames:_0x1c0270}=await getEnvNames();_0x2d9d36['LsnEH'](_0x1c0270['length'],0x0)&&console[_0x97674a(0x1c3)]('\x0a'+_0x2d9d36['qQrXl'](formatProfileRequiredMessage,_0x430a62=>bold(_0x430a62)));const _0x50808a=_0x27bbb3['scenarios']?_0x27bbb3[_0x97674a(0x182)]['map'](_0x186f37=>_0x186f37[_0x97674a(0x17e)]()):[],_0xefb13f=_0x2d9d36[_0x97674a(0x191)](getGitRepoUrl),_0x28cff6=getGitBranch();console['log'](_0x2d9d36['hMxfp']);const _0x5e671a=await createFeature({'name':_0x264e5b,'description':_0x27bbb3[_0x97674a(0x124)],'checklist':_0x50808a,'gitRepoUrl':_0xefb13f,'gitBranch':_0x28cff6});await setActiveFeatureId(_0x5e671a['id']),await tryStartCurrentSession(_0x5e671a['id']);const _0x44e814=process[_0x97674a(0x1a8)][_0x97674a(0x176)];_0x44e814&&_0x2d9d36[_0x97674a(0x1a0)](registerSession,_0x44e814,_0x5e671a['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x5e671a['id']),_0x2d9d36[_0x97674a(0x1a0)](displayFeature,_0x5e671a,_0x5e671a['checklistItems']),console['log'](_0x97674a(0x1f9));}export async function featureList(_0x59f240){const _0xea8066=_0xf97093,_0x2d907f={'ZHVuB':function(_0x1cb987){return _0x1cb987();},'RTrIx':function(_0x33e0dc,_0x50c680){return _0x33e0dc(_0x50c680);},'ddASH':function(_0x388b71,_0x33de8d){return _0x388b71===_0x33de8d;},'MBXQe':function(_0x35f6bd,_0x1f0622){return _0x35f6bd>_0x1f0622;},'jQVhm':function(_0x1f402f,_0x40ef84){return _0x1f402f<_0x40ef84;},'lHybg':function(_0x37fc53,_0x7dc2f5){return _0x37fc53!==_0x7dc2f5;},'lNuiG':_0xea8066(0x12f),'ZShAp':_0xea8066(0x155)},_0x3fd41c={'limit':_0x59f240['limit']??0xa,'offset':_0x59f240[_0xea8066(0x12a)]??0x0,'includeDeleted':_0x59f240['includeDeleted']};_0x59f240['currentBranch']&&(_0x3fd41c[_0xea8066(0x193)]=_0x2d907f[_0xea8066(0x1d0)](getGitRepoUrl),_0x3fd41c['gitBranch']=_0x2d907f['ZHVuB'](getGitBranch));const _0x4fc662=await _0x2d907f[_0xea8066(0x19b)](listFeatures,_0x3fd41c);if(_0x2d907f['ddASH'](_0x4fc662['items']['length'],0x0)){console['log'](_0xea8066(0x18c));return;}const _0x30d6db=_0x2d907f['MBXQe'](_0x4fc662[_0xea8066(0x200)],_0x4fc662['items'][_0xea8066(0x1d6)])?_0xea8066(0x16d)+_0x4fc662['items']['length']+_0xea8066(0x1d9)+_0x4fc662['totalCount']:_0x4fc662[_0xea8066(0x200)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x30d6db+':\x0a');for(const _0x317391 of _0x4fc662[_0xea8066(0x1ff)]){const _0x5ebdc4=_0xea8066(0x170)[_0xea8066(0x123)]('|');let _0x5b5f0e=0x0;while(!![]){switch(_0x5ebdc4[_0x5b5f0e++]){case'0':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x317391[_0xea8066(0x16b)])[_0xea8066(0x14e)]());continue;case'1':console[_0xea8066(0x12c)]('');continue;case'2':console['log']('\x20\x20\x20ID:\x20'+_0x317391['id']);continue;case'3':_0x317391[_0xea8066(0x136)]&&console[_0xea8066(0x12c)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x317391[_0xea8066(0x136)]));continue;case'4':console[_0xea8066(0x12c)](''+_0x317391['name']);continue;case'5':_0x317391[_0xea8066(0x1be)]&&console[_0xea8066(0x12c)](_0xea8066(0x15d)+_0x317391[_0xea8066(0x1be)]);continue;}break;}}const _0x34c207=_0x3fd41c[_0xea8066(0x190)]??0xa,_0x6325e6=(_0x3fd41c[_0xea8066(0x12a)]??0x0)+_0x4fc662['items'][_0xea8066(0x1d6)];if(_0x2d907f[_0xea8066(0x1d8)](_0x6325e6,_0x4fc662[_0xea8066(0x200)])){const _0x138792=_0x2d907f[_0xea8066(0x18a)](_0x34c207,0xa)?_0xea8066(0x206)+_0x34c207:'',_0x195b9f=_0x59f240[_0xea8066(0x1dc)]?_0x2d907f[_0xea8066(0x1f8)]:'',_0x2897d0=_0x59f240['includeDeleted']?_0x2d907f[_0xea8066(0x199)]:'';console['log'](_0xea8066(0x12d)+_0x6325e6+_0x138792+_0x195b9f+_0x2897d0);}}export async function featureShow(_0x4be13a){const _0x1b82cc=_0xf97093,_0x103d71={'iXvnt':function(_0x55b3b1){return _0x55b3b1();}},_0x535bfa=_0x4be13a||await _0x103d71[_0x1b82cc(0x169)](getActiveFeatureId);if(!_0x535bfa)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 _0x5f5d4c=await getFeature(_0x535bfa);displayFeature(_0x5f5d4c,_0x5f5d4c['checklistItems']);}export async function featureResume(_0x186d26){const _0x4f19d1=_0xf97093,_0x1dcf27={'AOjKR':function(_0x56aa6d){return _0x56aa6d();},'hiNPw':function(_0x4b7990,_0x268bbb){return _0x4b7990!==_0x268bbb;},'xebbM':function(_0x5956ff,_0x50ec43,_0x3f4045){return _0x5956ff(_0x50ec43,_0x3f4045);},'POrGO':function(_0x5b7a9a,_0x40d3bc){return _0x5b7a9a(_0x40d3bc);},'VuweV':function(_0x16b515,_0x3cdf53){return _0x16b515||_0x3cdf53;},'GfRZA':_0x4f19d1(0x1c9),'VKgRu':function(_0x663ca9,_0x5dda58){return _0x663ca9===_0x5dda58;},'OcjmU':_0x4f19d1(0x1e4),'ETIMj':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','CzgWv':function(_0x51e8a6,_0x400bb2){return _0x51e8a6===_0x400bb2;},'aTapI':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','HDwIE':_0x4f19d1(0x15c),'jcdNE':'list','LfvYK':'selected','uxmJN':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','DsTcU':function(_0x5f08d5,_0x6e7ec9){return _0x5f08d5(_0x6e7ec9);},'pxUxW':function(_0x1a79c3,_0x9dcfe2,_0x40b0cd){return _0x1a79c3(_0x9dcfe2,_0x40b0cd);},'gGfHw':function(_0x5eccdf,_0x582ab8){return _0x5eccdf(_0x582ab8);},'jOgOE':function(_0x344b60,_0x334769,_0x34d9fb){return _0x344b60(_0x334769,_0x34d9fb);}};if(_0x186d26){const _0x1e39e7=await getFeature(_0x186d26);await setActiveFeatureId(_0x1e39e7['id']);const _0x2ca420=_0x1dcf27['AOjKR'](getGitBranch);_0x2ca420&&_0x1dcf27['hiNPw'](_0x2ca420,_0x1e39e7[_0x4f19d1(0x1be)])&&(await _0x1dcf27['xebbM'](updateFeature,_0x1e39e7['id'],{'gitBranch':_0x2ca420}),console[_0x4f19d1(0x12c)](_0x4f19d1(0x1b6)+_0x2ca420));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x1e39e7[_0x4f19d1(0x1c4)]+'\x20('+_0x1e39e7['id']+')'),await _0x1dcf27['POrGO'](tryStartCurrentSession,_0x1e39e7['id']);const _0x22645c=process['env'][_0x4f19d1(0x176)];_0x22645c&&_0x1dcf27['xebbM'](registerSession,_0x22645c,_0x1e39e7['id']);_0x1dcf27[_0x4f19d1(0x1ef)](displayFeature,_0x1e39e7,_0x1e39e7['checklistItems']),await printFeedbackNudge(_0x1e39e7['id']);return;}const _0x3edc03=getGitRepoUrl(),_0x413923=getGitBranch();if(!_0x3edc03&&!_0x413923)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x4f19d1(0x12c)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x1dcf27['VuweV'](_0x3edc03,_0x1dcf27[_0x4f19d1(0x121)])+'\x20/\x20'+(_0x413923||'any')+_0x4f19d1(0x148));const _0x459e66=await _0x1dcf27[_0x4f19d1(0x1e6)](listFeatures,{'gitRepoUrl':_0x3edc03,'gitBranch':_0x413923}),_0x53e0f9=_0x459e66[_0x4f19d1(0x1ff)]['filter'](_0x425fa1=>_0x425fa1[_0x4f19d1(0x1b1)]?_0x425fa1[_0x4f19d1(0x1b1)]!=='verified':!_0x425fa1[_0x4f19d1(0x1bb)]);if(_0x1dcf27['VKgRu'](_0x53e0f9[_0x4f19d1(0x1d6)],0x0)){console['log'](_0x1dcf27[_0x4f19d1(0x143)]),console[_0x4f19d1(0x12c)](_0x1dcf27[_0x4f19d1(0x1b7)]);return;}let _0xe8f22e;if(_0x1dcf27[_0x4f19d1(0x14f)](_0x53e0f9['length'],0x1))_0xe8f22e=_0x53e0f9[0x0];else{const _0x20ac42=process['stdin'][_0x4f19d1(0x1ac)]&&process['stdout']['isTTY'];if(!_0x20ac42){console['log'](_0x1dcf27['aTapI']);for(const _0x126e2d of _0x53e0f9){console['log']('\x20\x20'+_0x126e2d[_0x4f19d1(0x1c4)]),console['log'](_0x4f19d1(0x1a7)+_0x126e2d['id']),_0x126e2d['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x126e2d[_0x4f19d1(0x136)])),_0x126e2d['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x126e2d[_0x4f19d1(0x1be)]);}throw new Error(_0x1dcf27[_0x4f19d1(0x1b4)]);}const {selected:_0xdf9bd1}=await _0x271579[_0x4f19d1(0x15a)]([{'type':_0x1dcf27[_0x4f19d1(0x165)],'name':_0x1dcf27[_0x4f19d1(0x1d3)],'message':_0x1dcf27['uxmJN'],'choices':_0x53e0f9['map'](_0x3ed059=>({'name':_0x3ed059['name']+'\x20('+_0x3ed059['id']+')','value':_0x3ed059['id']}))}]);_0xe8f22e=_0x53e0f9['find'](_0x26e040=>_0x26e040['id']===_0xdf9bd1);}await _0x1dcf27['DsTcU'](setActiveFeatureId,_0xe8f22e['id']);_0x413923&&_0x413923!==_0xe8f22e['gitBranch']&&(await _0x1dcf27['pxUxW'](updateFeature,_0xe8f22e['id'],{'gitBranch':_0x413923}),console[_0x4f19d1(0x12c)](_0x4f19d1(0x1b6)+_0x413923));console[_0x4f19d1(0x12c)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xe8f22e[_0x4f19d1(0x1c4)]+'\x20('+_0xe8f22e['id']+')'),await _0x1dcf27['gGfHw'](tryStartCurrentSession,_0xe8f22e['id']);const _0x2d85bd=await getFeature(_0xe8f22e['id']),_0x2f7b9f=process['env'][_0x4f19d1(0x176)];_0x2f7b9f&®isterSession(_0x2f7b9f,_0x2d85bd['id']),_0x1dcf27[_0x4f19d1(0x1e3)](displayFeature,_0x2d85bd,_0x2d85bd['checklistItems']),await _0x1dcf27[_0x4f19d1(0x14c)](printFeedbackNudge,_0x2d85bd['id']);}async function printFeedbackNudge(_0x3ad3f8){const _0x5d9463=_0xf97093,_0x169bd8={'nQOJr':function(_0x1b1b1e,_0x815bfe,_0x2285e7){return _0x1b1b1e(_0x815bfe,_0x2285e7);},'vEujo':function(_0xed781,_0x11d82b){return _0xed781>_0x11d82b;}};try{const {items:_0x40fa29}=await getActionItems(_0x3ad3f8);let _0x3b0605=0x0,_0x402f89=0x0;for(const _0xe9acb2 of _0x40fa29){const _0x2fb27f=await _0x169bd8['nQOJr'](getItemFeedback,_0x3ad3f8,_0xe9acb2['id']);_0x2fb27f[_0x5d9463(0x19f)]['length']>0x0&&(_0x3b0605+=_0x2fb27f['unaddressedComments']['length'],_0x402f89++);}_0x169bd8['vEujo'](_0x3b0605,0x0)&&(console[_0x5d9463(0x12c)]('\x0a⚠️\x20\x20'+_0x3b0605+_0x5d9463(0x1a2)+_0x402f89+_0x5d9463(0x174)),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x509fd0){const _0x5c4766=_0xf97093,_0x16219d={'lWuzu':function(_0x312dc3,_0x4ad87d){return _0x312dc3(_0x4ad87d);},'RicGV':function(_0x36d2ca,_0x587983,_0x4d6a05){return _0x36d2ca(_0x587983,_0x4d6a05);}};try{const {sessions:_0x51afa9}=await _0x16219d['lWuzu'](listFeatureSessions,_0x509fd0),_0x1345a4=_0x51afa9['find'](_0x5a8048=>_0x5a8048['status']==='ready');_0x1345a4&&(await _0x16219d['RicGV'](startSession,_0x509fd0,_0x1345a4['id']),console[_0x5c4766(0x12c)](_0x5c4766(0x1f5)+_0x1345a4[_0x5c4766(0x122)]));}catch{}}export async function featureReport(_0x431e7d,_0x328f73){const _0x2f4116=_0xf97093,_0x4e0adc={'gejWS':_0x2f4116(0x195),'itOqK':'\x0aGenerating\x20report...','zQxHi':function(_0x36fe6b,_0x11d98e,_0x9a9d32,_0x5c866a){return _0x36fe6b(_0x11d98e,_0x9a9d32,_0x5c866a);},'BkLrd':function(_0x419aeb){return _0x419aeb();},'iMjeQ':_0x2f4116(0x194)},_0x4966e4=_0x431e7d||await getActiveFeatureId();if(!_0x4966e4)throw new Error(_0x4e0adc['gejWS']);console[_0x2f4116(0x12c)](_0x4e0adc[_0x2f4116(0x1c6)]);const _0x19dd59=await getFeatureReportMarkdown(_0x4966e4,{'style':_0x328f73[_0x2f4116(0x16a)]}),_0x2d7570=_0x328f73[_0x2f4116(0x172)]||_0x4e0adc['zQxHi'](join,_0x4e0adc['BkLrd'](getRangerDir),'reports',_0x4966e4+'.md'),_0x3d5b9a=join(_0x2d7570,'..');!existsSync(_0x3d5b9a)&&await mkdir(_0x3d5b9a,{'recursive':!![]}),await _0x4e0adc[_0x2f4116(0x19e)](writeFile,_0x2d7570,_0x19dd59,_0x4e0adc[_0x2f4116(0x17a)]),console['log'](_0x2f4116(0x1ee)+_0x2d7570);}function getScenarioResult(_0x3da282){const _0x31158e=_0xf97093,_0x134802={'sYZzi':'closed','hQPRf':'verification_in_progress','leVuA':'in_progress'};if(_0x3da282['status']===_0x31158e(0x196))return _0x3da282[_0x31158e(0x17b)]??_0x134802[_0x31158e(0x1fe)];if(_0x3da282['status']===_0x134802['hQPRf'])return _0x134802[_0x31158e(0x13c)];return _0x3da282[_0x31158e(0x1b1)];}function getScenarioRationale(_0x1711ef,_0x212adb){const _0x217914=_0xf97093;if(_0x212adb)return _0x212adb;if(_0x1711ef[_0x217914(0x1fd)])return _0x1711ef['blockedReason'];if(_0x1711ef['incompleteReason'])return _0x1711ef['incompleteReason'];if(_0x1711ef['canceledReason'])return _0x1711ef['canceledReason'];if(_0x1711ef[_0x217914(0x1bd)])return _0x1711ef[_0x217914(0x1bd)];return null;}export async function featureReportPrDescription(_0x286ebd,_0x3bfcd6){const _0x77ba8c=_0xf97093,_0x2fae23={'AMnjw':function(_0x52fab8){return _0x52fab8();},'WqgXE':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JVPPh':function(_0xcd6173,_0x5bca11){return _0xcd6173(_0x5bca11);},'CHukU':_0x77ba8c(0x1b3),'DeAXa':function(_0x256fc0,_0xe40c69){return _0x256fc0>_0xe40c69;},'cucCK':function(_0x2dadca,_0x45449a){return _0x2dadca<_0x45449a;},'wnNtg':function(_0x1b4d09,_0x38f6e1){return _0x1b4d09+_0x38f6e1;},'NhbOe':function(_0x567e52,_0x4a831e,_0xb54997,_0x1785fd){return _0x567e52(_0x4a831e,_0xb54997,_0x1785fd);}},_0x1c60eb=_0x286ebd||await _0x2fae23[_0x77ba8c(0x154)](getActiveFeatureId);if(!_0x1c60eb)throw new Error(_0x2fae23['WqgXE']);const _0x120966=await _0x2fae23[_0x77ba8c(0x1d7)](getFeature,_0x1c60eb),_0x2ae107=_0x120966['checklistItems']||[],_0x4b5473=getCurrentSessionItems(_0x120966,_0x2ae107);_0x4b5473[_0x77ba8c(0x1d6)]===0x0&&(console[_0x77ba8c(0x13d)](_0x2fae23[_0x77ba8c(0x1c1)]),process[_0x77ba8c(0x140)](0x1));const _0x419dc1=_0x3bfcd6['excludeScenarios']??[],_0x40c322=_0x419dc1[_0x77ba8c(0x1f7)](_0x3d6773=>!Number['isInteger'](_0x3d6773)||_0x3d6773<0x1||_0x3d6773>_0x4b5473[_0x77ba8c(0x1d6)]);if(_0x2fae23[_0x77ba8c(0x142)](_0x40c322['length'],0x0)){console[_0x77ba8c(0x13d)](_0x77ba8c(0x1bf)+_0x40c322[_0x77ba8c(0x1c2)](',\x20')),console[_0x77ba8c(0x12c)](_0x77ba8c(0x157));for(let _0x590e79=0x0;_0x2fae23[_0x77ba8c(0x1e0)](_0x590e79,_0x4b5473['length']);_0x590e79++){console['log']('\x20\x20'+_0x2fae23['wnNtg'](_0x590e79,0x1)+'.\x20'+_0x4b5473[_0x590e79][_0x77ba8c(0x124)]);}process[_0x77ba8c(0x140)](0x1);}const _0x2d7605=new Set(_0x419dc1[_0x77ba8c(0x1c5)](_0x1a00e2=>_0x1a00e2-0x1)),_0xf4dbc=_0x4b5473[_0x77ba8c(0x1f7)]((_0x4d59d8,_0x261559)=>!_0x2d7605['has'](_0x261559));_0xf4dbc[_0x77ba8c(0x1d6)]===0x0&&(console['error'](_0x77ba8c(0x1de)),process['exit'](0x1));if(_0x3bfcd6['json'])await _0x2fae23[_0x77ba8c(0x125)](outputJsonReport,_0x1c60eb,_0x120966,_0xf4dbc);else{const _0x543896=await getFeatureReportMarkdown(_0x1c60eb,{'itemIds':_0xf4dbc[_0x77ba8c(0x1c5)](_0x82804a=>_0x82804a['id'])});process['stdout']['write'](_0x543896[_0x77ba8c(0x1b2)]()+'\x0a');}}async function outputJsonReport(_0x152e22,_0x148608,_0x3d1329){const _0x528140=_0xf97093,_0x2cea27={'gGWlu':function(_0x3a6389,_0x1da6d5){return _0x3a6389(_0x1da6d5);},'UVhRo':function(_0xc61dc6,_0x100678){return _0xc61dc6===_0x100678;},'tjhgD':function(_0x2b9cc1,_0x5b5d84){return _0x2b9cc1+_0x5b5d84;}},_0x56ed2f=getApiBaseUrl(),_0x4fdf65=await _0x2cea27['gGWlu'](getFeatureReport,_0x152e22),_0x19fbfc=new Map(_0x4fdf65[_0x528140(0x15b)]['map'](_0xf96fde=>[_0xf96fde['id'],_0xf96fde])),_0x1654a2=await Promise[_0x528140(0x128)](_0x3d1329['map'](async _0x12c966=>{const _0x3a7487=_0x528140,_0x25d389=_0x19fbfc['get'](_0x12c966['id']),_0x41479f=_0x25d389?.['linkedSession']??null;let _0x124fbe=[];if(_0x12c966[_0x3a7487(0x131)])try{const {steps:_0x236b75}=await _0x2cea27['gGWlu'](getBrowserSessionSteps,_0x12c966['browserSessionId']);_0x236b75['length']>0x0&&(_0x124fbe=_0x236b75[_0x3a7487(0x1c5)](_0x14e499=>{const _0x82409b=_0x3a7487,_0x100606=_0x14e499['assets'][_0x82409b(0x1a6)](_0x48e191=>_0x48e191['assetType']===_0x82409b(0x12b)&&_0x48e191['timing']===_0x82409b(0x14b))??_0x14e499[_0x82409b(0x202)][_0x82409b(0x1a6)](_0x10ae2b=>_0x10ae2b[_0x82409b(0x1ae)]==='screenshot');let _0xa32edb=null,_0x128833=null;if(_0x100606){const _0x60435d=_0x100606[_0x82409b(0x1e7)][_0x82409b(0x1ba)][_0x82409b(0x123)]('/')['pop']();_0xa32edb=_0x56ed2f+_0x82409b(0x1e5)+_0x12c966[_0x82409b(0x131)]+_0x82409b(0x1b9)+_0x60435d,_0x60435d&&(_0x128833=_0x60435d['replace'](/\.\w+$/,'')[_0x82409b(0x1d2)](/^(key_)?\d+_/,'')[_0x82409b(0x1d2)](/[-_]/g,'\x20'));}return{'description':_0x128833||_0x14e499['description']||_0x14e499[_0x82409b(0x1fb)]||_0x82409b(0x1af)+_0x14e499[_0x82409b(0x15f)],'screenshot':_0xa32edb,'is_key_step':_0x14e499[_0x82409b(0x158)]};}));}catch{}return _0x2cea27['UVhRo'](_0x124fbe[_0x3a7487(0x1d6)],0x0)&&_0x41479f?.[_0x3a7487(0x141)]&&(_0x124fbe=_0x41479f['screenshotUrls']['map']((_0x11b4a6,_0x1b34a6)=>({'description':'Screenshot\x20'+(_0x1b34a6+0x1),'screenshot':_0x11b4a6,'is_key_step':![]}))),{'description':_0x12c966[_0x3a7487(0x124)],'result':getScenarioResult(_0x12c966),'rationale':getScenarioRationale(_0x12c966,_0x41479f?.[_0x3a7487(0x159)]),'steps':_0x124fbe};})),_0x415f7c={'url':_0x148608[_0x528140(0x1aa)],'scenarios':_0x1654a2};process['stdout']['write'](_0x2cea27[_0x528140(0x1dd)](JSON[_0x528140(0x139)](_0x415f7c,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x4d4708){const _0x421917=_0xf97093,_0x3e172c={'SdIsv':function(_0x399d89){return _0x399d89();},'Rnhgn':_0x421917(0x1a4),'heDEp':function(_0x2d12d7,_0x2658b2){return _0x2d12d7(_0x2658b2);},'DtXAu':function(_0x21c444,_0x31c08a){return _0x21c444(_0x31c08a);},'lQjOf':'\x0a✅\x20Session\x20is\x20already\x20completed.','UJLCu':_0x421917(0x1ec),'lmsuO':_0x421917(0x152)},_0x178ea3=_0x4d4708||await _0x3e172c['SdIsv'](getActiveFeatureId);if(!_0x178ea3)throw new Error(_0x3e172c[_0x421917(0x1e8)]);const _0x2778d0=await _0x3e172c['heDEp'](getFeature,_0x178ea3);if(!_0x2778d0[_0x421917(0x156)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x297829}=await _0x3e172c[_0x421917(0x13b)](listFeatureSessions,_0x178ea3),_0x1b3567=_0x297829[_0x421917(0x1a6)](_0x16d3af=>_0x16d3af['id']===_0x2778d0[_0x421917(0x156)]);if(!_0x1b3567)throw new Error('Current\x20session\x20not\x20found.');if(_0x1b3567[_0x421917(0x1b1)]===_0x421917(0x1ca)){console['log'](_0x3e172c[_0x421917(0x19a)]);return;}if(_0x1b3567['status']!==_0x3e172c['UJLCu'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x1b3567[_0x421917(0x1b1)]);console[_0x421917(0x12c)](_0x3e172c[_0x421917(0x173)]),await concludeSession(_0x178ea3,_0x2778d0['currentSessionId']),console['log'](_0x421917(0x16e)+_0x1b3567[_0x421917(0x122)]+'\x20concluded.'),console[_0x421917(0x12c)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x30c1d3){const _0x48fd01=_0xf97093,_0x43c146={'ACqAx':function(_0x117c28,_0x3d668d){return _0x117c28(_0x3d668d);},'MwvjM':'No\x20sessions\x20found.','xxYoe':function(_0x3a52c8,_0x4f0dc3){return _0x3a52c8===_0x4f0dc3;},'EqPqE':function(_0x5a1e0a,_0x4e4546){return _0x5a1e0a===_0x4e4546;}},_0x177417=_0x30c1d3||await getActiveFeatureId();if(!_0x177417)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x4659c1=await _0x43c146[_0x48fd01(0x1cd)](getFeature,_0x177417);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x4659c1['name']+'\x0a');const {sessions:_0x215387}=await listFeatureSessions(_0x177417);if(_0x215387['length']===0x0){console[_0x48fd01(0x12c)](_0x43c146['MwvjM']);return;}for(const _0x3c48fd of _0x215387){const _0x1b75ec=_0x43c146['xxYoe'](_0x3c48fd['status'],'completed')?'✅':_0x43c146['EqPqE'](_0x3c48fd[_0x48fd01(0x1b1)],_0x48fd01(0x1ec))?'🔄':'▶️';console['log'](_0x1b75ec+'\x20Session\x20'+_0x3c48fd['iteration']+'\x20('+_0x3c48fd['id']+')'),console[_0x48fd01(0x12c)](_0x48fd01(0x19c)+_0x3c48fd[_0x48fd01(0x1b1)]),console[_0x48fd01(0x12c)]('\x20\x20\x20Created:\x20'+new Date(_0x3c48fd['createdAt'])[_0x48fd01(0x167)]()),_0x3c48fd[_0x48fd01(0x1bb)]&&console[_0x48fd01(0x12c)](_0x48fd01(0x1fc)+new Date(_0x3c48fd['completedAt'])[_0x48fd01(0x167)]()),console[_0x48fd01(0x12c)]('');}}export async function featureAddScenario(_0x3f7440,_0x547e24){const _0x562744=_0xf97093,_0x3d5a60={'neFrB':function(_0x40a147){return _0x40a147();}},_0x40a37c=_0x547e24||await _0x3d5a60[_0x562744(0x14a)](getActiveFeatureId);if(!_0x40a37c)throw new Error(_0x562744(0x1a4));const _0x5999c6=await getFeature(_0x40a37c);if(_0x5999c6['latestReview']&&!_0x5999c6['latestReview'][_0x562744(0x178)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x5999c6[_0x562744(0x1aa)]);await createChecklistItem(_0x40a37c,_0x3f7440);const _0x496018=await getFeature(_0x40a37c);console[_0x562744(0x12c)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x496018,_0x496018['checklistItems']);}export async function featureEditScenario(_0xca8f0,_0x6bcba){const _0x38f3db=_0xf97093,_0x178b96={'JKNTn':_0x38f3db(0x129),'UjbNf':function(_0x1a024,_0x44fc65){return _0x1a024(_0x44fc65);},'QeYUe':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','WEQKI':_0x38f3db(0x16c),'WbJSC':_0x38f3db(0x153),'Gdfyg':function(_0x3bc8b7,_0x464713){return _0x3bc8b7===_0x464713;},'XwLYW':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','dezZd':_0x38f3db(0x157),'uFInQ':function(_0x2f7fbd,_0x4398f5){return _0x2f7fbd<_0x4398f5;},'MCBaz':function(_0x3d5583,_0x33063c){return _0x3d5583+_0x33063c;},'Hdzoi':function(_0x45b81e,_0x3180c3){return _0x45b81e-_0x3180c3;},'xtWgQ':function(_0x517336,_0x3d2c7c,_0x5dd81d){return _0x517336(_0x3d2c7c,_0x5dd81d);}},_0x43a1ce=_0x6bcba['id']||await getActiveFeatureId();!_0x43a1ce&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x178b96[_0x38f3db(0x13a)]),process['exit'](0x1));const _0x4c4d02=await _0x178b96[_0x38f3db(0x1eb)](getFeature,_0x43a1ce);_0x4c4d02[_0x38f3db(0x1f4)]&&!_0x4c4d02['latestReview'][_0x38f3db(0x178)]&&(console[_0x38f3db(0x13d)](_0x178b96['QeYUe']),console[_0x38f3db(0x13d)](_0x178b96[_0x38f3db(0x138)]),console[_0x38f3db(0x13d)]('\x20\x20'+_0x4c4d02[_0x38f3db(0x1aa)]),process[_0x38f3db(0x140)](0x1));const _0x34bd00=_0x4c4d02[_0x38f3db(0x15b)]||[];_0x34bd00[_0x38f3db(0x1d6)]===0x0&&(console['error'](_0x178b96[_0x38f3db(0x1df)]),process['exit'](0x1));if(_0x178b96[_0x38f3db(0x126)](_0x6bcba['scenario'],undefined)){console['error'](_0x178b96[_0x38f3db(0x1f6)]),console['log'](_0x178b96['dezZd']);for(let _0x4e2c8b=0x0;_0x178b96[_0x38f3db(0x132)](_0x4e2c8b,_0x34bd00[_0x38f3db(0x1d6)]);_0x4e2c8b++){console['log']('\x20\x20'+_0x178b96[_0x38f3db(0x1e9)](_0x4e2c8b,0x1)+'.\x20'+_0x34bd00[_0x4e2c8b][_0x38f3db(0x124)]);}process[_0x38f3db(0x140)](0x1);}const _0x597a0b=_0x178b96[_0x38f3db(0x1ed)](_0x6bcba['scenario'],0x1);if(_0x178b96[_0x38f3db(0x132)](_0x597a0b,0x0)||_0x597a0b>=_0x34bd00['length']){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x6bcba[_0x38f3db(0x18e)]+'.\x20Feature\x20review\x20has\x20'+_0x34bd00['length']+'\x20scenarios.'),console['log'](_0x178b96[_0x38f3db(0x1f0)]);for(let _0x3a1ef1=0x0;_0x3a1ef1<_0x34bd00['length'];_0x3a1ef1++){console['log']('\x20\x20'+(_0x3a1ef1+0x1)+'.\x20'+_0x34bd00[_0x3a1ef1]['description']);}process[_0x38f3db(0x140)](0x1);}const _0x433858=_0x34bd00[_0x597a0b];await updateChecklistItem(_0x43a1ce,_0x433858['id'],{'description':_0xca8f0});const _0x556319=await getFeature(_0x43a1ce);console['log'](_0x38f3db(0x1ab)),_0x178b96['xtWgQ'](displayFeature,_0x556319,_0x556319[_0x38f3db(0x15b)]);}async function downloadFeedbackImage(_0xb0e5c9,_0x43acf8){const _0x4cea15=_0xf97093,_0x4fedfe={'EUGhm':function(_0x33e681,_0x37ca69,_0x323669){return _0x33e681(_0x37ca69,_0x323669);},'GkYJl':function(_0x14aa57){return _0x14aa57();},'qHZsG':function(_0x2a2472,_0x149ef,_0x1999d2){return _0x2a2472(_0x149ef,_0x1999d2);}};try{const _0x43757c=_0x4fedfe[_0x4cea15(0x144)](join,_0x4fedfe[_0x4cea15(0x133)](getRangerDir),_0x4cea15(0x1e1));await mkdir(_0x43757c,{'recursive':!![]});const _0x420649=join(_0x43757c,_0x4cea15(0x1b8)+_0x43acf8+_0x4cea15(0x201)),_0x5103e2=await fetch(_0xb0e5c9);if(!_0x5103e2['ok'])return null;const _0x18e48b=Buffer['from'](await _0x5103e2[_0x4cea15(0x19d)]());return await _0x4fedfe[_0x4cea15(0x1da)](writeFile,_0x420649,_0x18e48b),_0x420649;}catch{return null;}}export async function featureGetReview(_0x31b395){const _0x6e04f8=_0xf97093,_0x57a715={'PbIhi':function(_0x45af68){return _0x45af68();},'VcxZL':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','hSLNN':function(_0x597e48,_0x238eed){return _0x597e48(_0x238eed);},'EKQdU':function(_0x7f8013,_0x36ff07){return _0x7f8013+_0x36ff07;},'yITXz':_0x6e04f8(0x179),'juSSM':'short','CrkTY':_0x6e04f8(0x205),'DAJnk':function(_0x56c101,_0x308914){return _0x56c101>=_0x308914;},'eiqwH':function(_0x2ae591,_0x2d7431){return _0x2ae591+_0x2d7431;}},_0x2f469c=_0x31b395||await _0x57a715['PbIhi'](getActiveFeatureId);if(!_0x2f469c)throw new Error(_0x57a715[_0x6e04f8(0x184)]);const _0x3b86b9=await getFeature(_0x2f469c),{items:_0x2c4476}=await _0x57a715[_0x6e04f8(0x150)](getActionItems,_0x2f469c);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x3b86b9[_0x6e04f8(0x1c4)]+'\x20('+_0x3b86b9['id']+')\x0a');if(_0x2c4476[_0x6e04f8(0x1d6)]===0x0){console['log'](_0x6e04f8(0x13f));return;}for(let _0x4d7770=0x0;_0x4d7770<_0x2c4476[_0x6e04f8(0x1d6)];_0x4d7770++){const _0x2f5067=_0x2c4476[_0x4d7770],_0x2f0f9c=_0x2f5067['version']>0x1?_0x6e04f8(0x160)+_0x2f5067['version']+')':'',_0x4ceb30=await getItemFeedback(_0x2f469c,_0x2f5067['id']);if(_0x4ceb30[_0x6e04f8(0x19f)]['length']>0x0){console['log'](_0x6e04f8(0x1ce)+_0x57a715[_0x6e04f8(0x186)](_0x4d7770,0x1)+':\x20\x22'+_0x2f5067[_0x6e04f8(0x124)]+'\x22'+_0x2f0f9c+_0x6e04f8(0x187)+_0x4ceb30['unaddressedComments'][_0x6e04f8(0x1d6)]+'\x20unaddressed\x20comment(s)');for(const _0x39abe1 of _0x4ceb30['unaddressedComments']){const _0x44c07d=new Date(_0x39abe1['createdAt'])[_0x6e04f8(0x14e)](_0x57a715['yITXz'],{'month':_0x57a715['juSSM'],'day':_0x57a715[_0x6e04f8(0x189)]}),_0x7b7b77=_0x39abe1['authorName']||_0x39abe1[_0x6e04f8(0x162)]||'Unknown';console[_0x6e04f8(0x12c)](_0x6e04f8(0x134)+_0x7b7b77+'\x20('+_0x44c07d+'):\x20\x22'+_0x39abe1['content']+'\x22');if(_0x39abe1[_0x6e04f8(0x18f)]){const _0x3d3656=await downloadFeedbackImage(_0x39abe1['assetUrl'],_0x39abe1['id']);_0x3d3656&&console[_0x6e04f8(0x12c)](_0x6e04f8(0x13e)+_0x3d3656);}if(_0x39abe1[_0x6e04f8(0x17f)]){const _0x29ec9a=_0x39abe1[_0x6e04f8(0x17f)][_0x6e04f8(0x175)]['split'](_0x6e04f8(0x183))[_0x6e04f8(0x17c)]()?.['split'](':')[0x0]||'element',_0x30e5d4=_0x39abe1[_0x6e04f8(0x17f)][_0x6e04f8(0x130)]?'\x20\x22'+_0x39abe1[_0x6e04f8(0x17f)][_0x6e04f8(0x130)]['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x29ec9a+'>'+_0x30e5d4),console[_0x6e04f8(0x12c)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x39abe1[_0x6e04f8(0x17f)][_0x6e04f8(0x175)]);}else{if(_0x39abe1['spatial']){const _0x4edc71=_0x39abe1[_0x6e04f8(0x1e2)][_0x6e04f8(0x168)];_0x39abe1[_0x6e04f8(0x1e2)]['type']==='point'&&_0x57a715['DAJnk'](_0x4edc71['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x4edc71[0x0]['toFixed'](0x2)+',\x20'+_0x4edc71[0x1][_0x6e04f8(0x135)](0x2)+')'):console[_0x6e04f8(0x12c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x39abe1[_0x6e04f8(0x1e2)]['type']+'\x20at\x20['+_0x4edc71[_0x6e04f8(0x1c5)](_0x1083bb=>_0x1083bb[_0x6e04f8(0x135)](0x2))[_0x6e04f8(0x1c2)](',\x20')+']');}}}if(_0x4ceb30['canonicalFlow']){console[_0x6e04f8(0x12c)](_0x6e04f8(0x1d4));for(const _0x4d63db of _0x4ceb30['canonicalFlow']['split']('\x0a')){console[_0x6e04f8(0x12c)]('\x20\x20\x20\x20'+_0x4d63db);}}}else console['log']('Scenario\x20'+_0x57a715['eiqwH'](_0x4d7770,0x1)+':\x20\x22'+_0x2f5067['description']+'\x22'+_0x2f0f9c+'\x20—\x20no\x20comments'),console[_0x6e04f8(0x12c)](_0x6e04f8(0x16f));console[_0x6e04f8(0x12c)]('');}}export async function featureDelete(_0x32b96e){const _0x14596d=_0xf97093,_0xaa6a6f={'tlZte':function(_0x49a015,_0x304088){return _0x49a015(_0x304088);}},_0x3e643d=_0x32b96e||await getActiveFeatureId();if(!_0x3e643d)throw new Error(_0x14596d(0x1a4));const _0xe77d16=await getFeature(_0x3e643d);await _0xaa6a6f['tlZte'](softDeleteFeature,_0x3e643d),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0xe77d16[_0x14596d(0x1c4)]+'\x20('+_0x3e643d+')'),console['log']('\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'+_0x3e643d);}export async function featureRestore(_0x37fb92){const _0x3e2c6e=_0xf97093,_0x3d7b53={'uqfvX':function(_0x7b3727,_0x3ceb10){return _0x7b3727(_0x3ceb10);},'yZcOj':function(_0x2c2b4e,_0x50f1d0,_0x449ccf){return _0x2c2b4e(_0x50f1d0,_0x449ccf);}};await _0x3d7b53[_0x3e2c6e(0x1d5)](restoreFeature,_0x37fb92);const _0x545c4d=await _0x3d7b53[_0x3e2c6e(0x1d5)](getFeature,_0x37fb92);console[_0x3e2c6e(0x12c)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x545c4d[_0x3e2c6e(0x1c4)]+'\x20('+_0x37fb92+')'),_0x3d7b53[_0x3e2c6e(0x1ea)](displayFeature,_0x545c4d,_0x545c4d[_0x3e2c6e(0x15b)]);}
|
package/build/commands/hook.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a3156,_0x352cd0){const _0x3570e2=_0x48c5,_0x5df6a6=_0x5a3156();while(!![]){try{const _0x14741c=parseInt(_0x3570e2(0x188))/0x1*(parseInt(_0x3570e2(0x18f))/0x2)+-parseInt(_0x3570e2(0x18e))/0x3*(-parseInt(_0x3570e2(0x193))/0x4)+parseInt(_0x3570e2(0x18a))/0x5*(parseInt(_0x3570e2(0x189))/0x6)+parseInt(_0x3570e2(0x18c))/0x7+parseInt(_0x3570e2(0x190))/0x8*(parseInt(_0x3570e2(0x18b))/0x9)+parseInt(_0x3570e2(0x18d))/0xa+parseInt(_0x3570e2(0x187))/0xb*(-parseInt(_0x3570e2(0x191))/0xc);if(_0x14741c===_0x352cd0)break;else _0x5df6a6['push'](_0x5df6a6['shift']());}catch(_0x45f45c){_0x5df6a6['push'](_0x5df6a6['shift']());}}}(_0x4e3c,0xbb29e));function _0x4e3c(){const _0x5b4973=['510YALNas','305280RROkWh','6255522HPxBvd','4905810KggCFm','3882138VTjIuF','7814lHxNMh','152hvfakp','2844CUnQfG','Unknown\x20hook:\x20','4zMzPbV','exit','132781PQYJyb','4yDkDLG','17004MiHWrs'];_0x4e3c=function(){return _0x5b4973;};return _0x4e3c();}function _0x48c5(_0x2671b3,_0x21efd4){_0x2671b3=_0x2671b3-0x186;const _0x4e3c72=_0x4e3c();let _0x48c594=_0x4e3c72[_0x2671b3];return _0x48c594;}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};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x2e65a0={'LJDeG':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x469e9f=()=>{const _0x590011=_0x48c5;process[_0x590011(0x186)](0x0);};process['once']('SIGINT',_0x469e9f),process['once']('SIGTERM',_0x469e9f),process['once'](_0x2e65a0['LJDeG'],_0x469e9f),cancellationHandlersInstalled=!![];}export async function hook(_0x3c0bc6,_0x19c2d1){const _0x3dfde8=_0x48c5,_0x33f05e={'Otoes':function(_0x7f783b,_0x4d7564){return _0x7f783b(_0x4d7564);}};installCancellationHandlers();const _0x6f7a38=HOOKS[_0x3c0bc6];if(!_0x6f7a38){const _0x180047=Object['keys'](HOOKS)['join'](',\x20');console['error'](_0x3dfde8(0x192)+_0x3c0bc6),console['error']('Valid\x20hooks:\x20'+_0x180047),process['exit'](0x1);}await _0x33f05e['Otoes'](_0x6f7a38,_0x19c2d1);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x22879e=_0x167a;function _0x167a(_0x26c2fd,_0xc2196a){_0x26c2fd=_0x26c2fd-0x16d;const _0xd0ed09=_0xd0ed();let _0x167a4b=_0xd0ed09[_0x26c2fd];return _0x167a4b;}function _0xd0ed(){const _0x355ace=['3633406xNJLDO','182717GGpiHu','21195712ilrvur','session_id','1942655lmuBPT','log','7gaeMnJ','1450260RDdlWS','3894092aFHcMy','4372284zJUbOh','\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.'];_0xd0ed=function(){return _0x355ace;};return _0xd0ed();}(function(_0x3c557c,_0x4375f4){const _0xae5fbc=_0x167a,_0x3dfd6a=_0x3c557c();while(!![]){try{const _0x19af03=parseInt(_0xae5fbc(0x16e))/0x1+parseInt(_0xae5fbc(0x16d))/0x2+-parseInt(_0xae5fbc(0x174))/0x3+parseInt(_0xae5fbc(0x175))/0x4+parseInt(_0xae5fbc(0x171))/0x5+parseInt(_0xae5fbc(0x176))/0x6+-parseInt(_0xae5fbc(0x173))/0x7*(parseInt(_0xae5fbc(0x16f))/0x8);if(_0x19af03===_0x4375f4)break;else _0x3dfd6a['push'](_0x3dfd6a['shift']());}catch(_0x2add32){_0x3dfd6a['push'](_0x3dfd6a['shift']());}}}(_0xd0ed,0xe9b78));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x22879e(0x177);export async function autoPrompt(){const _0x170cad=_0x22879e,_0x2d159b=await readHookInput(),_0xce8112=_0x2d159b?.[_0x170cad(0x170)];if(!_0xce8112)return;if(isSessionEnabled(_0xce8112)||hasSessionBeenPrompted(_0xce8112))return;markSessionPrompted(_0xce8112),console[_0x170cad(0x172)](AUTO_PROMPT_TEXT);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x176217,_0x593864){const _0x2041fe=_0x4e07,_0x3f133c=_0x176217();while(!![]){try{const _0x2e1bc9=parseInt(_0x2041fe(0x7d))/0x1*(parseInt(_0x2041fe(0x80))/0x2)+parseInt(_0x2041fe(0x7f))/0x3+-parseInt(_0x2041fe(0x81))/0x4*(parseInt(_0x2041fe(0x7c))/0x5)+-parseInt(_0x2041fe(0x83))/0x6*(parseInt(_0x2041fe(0x86))/0x7)+parseInt(_0x2041fe(0x82))/0x8*(parseInt(_0x2041fe(0x7b))/0x9)+parseInt(_0x2041fe(0x88))/0xa*(parseInt(_0x2041fe(0x84))/0xb)+parseInt(_0x2041fe(0x7e))/0xc*(parseInt(_0x2041fe(0x89))/0xd);if(_0x2e1bc9===_0x593864)break;else _0x3f133c['push'](_0x3f133c['shift']());}catch(_0x462378){_0x3f133c['push'](_0x3f133c['shift']());}}}(_0x14e2,0x75f78));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x4e07(_0x57b444,_0x290adc){_0x57b444=_0x57b444-0x7b;const _0x14e284=_0x14e2();let _0x4e076f=_0x14e284[_0x57b444];return _0x4e076f;}export async function disable(_0x18c4a5){const _0x492671=_0x4e07,_0x4574cd={'AxgLU':_0x492671(0x85),'bXGKL':function(_0x5139f7,_0x2c61bc){return _0x5139f7(_0x2c61bc);},'DYflM':function(_0xeccfcd,_0x2af3f8){return _0xeccfcd!==_0x2af3f8;},'nXlCv':function(_0x585f0f,_0x301d3f){return _0x585f0f!==_0x301d3f;},'AFUSH':'master'},_0x1da618=_0x18c4a5||process[_0x492671(0x8b)]['CLAUDE_SESSION_ID']||'';_0x1da618&&disableSession(_0x1da618);const _0x19b83f=getCurrentBranch();_0x19b83f&&_0x19b83f!==_0x4574cd[_0x492671(0x8a)]&&_0x19b83f!=='master'&&_0x4574cd[_0x492671(0x8c)](disableBranch,_0x19b83f),_0x4574cd[_0x492671(0x8c)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x19b83f&&_0x4574cd['DYflM'](_0x19b83f,'main')&&_0x4574cd[_0x492671(0x87)](_0x19b83f,_0x4574cd['AFUSH'])?'\x20and\x20branch\x20\x27'+_0x19b83f+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}function _0x14e2(){const _0x27eb11=['1726054WKlZqi','main','14HiWUco','nXlCv','10gRvwYm','39vKMNZg','AxgLU','env','bXGKL','886860VZQhnN','505qMUTdJ','25263mOJKkQ','95244rElKRL','622578fFJBde','72pvvnSe','3284XKgzTm','16FgrYCR','2786058QlwRFq'];_0x14e2=function(){return _0x27eb11;};return _0x14e2();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f3638,_0x2506c6){const _0x5e3be9=_0x545d,_0xf11045=_0x1f3638();while(!![]){try{const _0x198fca=-parseInt(_0x5e3be9(0x1b0))/0x1+parseInt(_0x5e3be9(0x1a5))/0x2*(-parseInt(_0x5e3be9(0x1a8))/0x3)+parseInt(_0x5e3be9(0x1ae))/0x4*(parseInt(_0x5e3be9(0x1a3))/0x5)+parseInt(_0x5e3be9(0x19a))/0x6*(-parseInt(_0x5e3be9(0x1a7))/0x7)+parseInt(_0x5e3be9(0x19b))/0x8*(-parseInt(_0x5e3be9(0x1a4))/0x9)+-parseInt(_0x5e3be9(0x1a2))/0xa+parseInt(_0x5e3be9(0x19c))/0xb*(parseInt(_0x5e3be9(0x1aa))/0xc);if(_0x198fca===_0x2506c6)break;else _0xf11045['push'](_0xf11045['shift']());}catch(_0x2dbb91){_0xf11045['push'](_0xf11045['shift']());}}}(_0x55bd,0x1c2a9));function _0x55bd(){const _0xd538c6=['Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','ExbYV','ranger\x20setup\x20--opencode','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','207150crGPsp','231170YtlGlR','82323qiudtp','18VnznqO','IewdX','44359YaRPPm','56664dZtBmJ','CLAUDE_SESSION_ID','24vhaGtO','UzqKJ','\x0a\x0a**Branch\x20\x27','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','4vHxeTQ','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','126402rAWsLB','#\x20RANGER\x20ENABLED','138UoPkaY','168nbGSwC','3982451dvzRrx','HdiIn'];_0x55bd=function(){return _0xd538c6;};return _0x55bd();}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x545d(_0x457580,_0x4911a8){_0x457580=_0x457580-0x199;const _0x55bd1a=_0x55bd();let _0x545d03=_0x55bd1a[_0x457580];return _0x545d03;}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x5669fc){const _0x3004d8=_0x545d,_0x3035aa={'ExbYV':function(_0x1babe1){return _0x1babe1();},'HdiIn':_0x3004d8(0x1a0),'UzqKJ':'ranger\x20setup','IewdX':_0x3004d8(0x19e),'gYWJS':_0x3004d8(0x1ad),'tTRdU':function(_0x1a3da3){return _0x1a3da3();},'oZMcF':'main','WKRUl':function(_0x5af2b6,_0x470780){return _0x5af2b6(_0x470780);}},_0x4af0ac=_0x5669fc||process['env'][_0x3004d8(0x1a9)]||'',_0x175b68=Boolean(_0x5669fc),_0x13402e=await _0x3035aa[_0x3004d8(0x19f)](getToken);if(!_0x13402e){const _0x195d47=_0x175b68?_0x3035aa[_0x3004d8(0x19d)]:_0x3035aa[_0x3004d8(0x1ab)],_0x4c3a38=_0x175b68?_0x3035aa[_0x3004d8(0x1a6)]:_0x3035aa['gYWJS'];printBlock('#\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`'+_0x195d47+_0x3004d8(0x1a1)+_0x4c3a38);return;}try{await update();}catch{}_0x4af0ac&&enableSession(_0x4af0ac);const _0x3b7362=_0x3035aa['tTRdU'](getCurrentBranch),_0x249d0b=_0x3b7362&&_0x3b7362!==_0x3035aa['oZMcF']&&_0x3b7362!=='master'?_0x3004d8(0x1ac)+_0x3b7362+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x218d42=getRangerSkillContent();_0x3035aa['WKRUl'](printBlock,_0x3004d8(0x199)+_0x249d0b+_0x3004d8(0x1af)+_0x218d42+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4ebe(){const _0x5bd6d3=['299030vaBfCw','126546UvFduv','175jTamJl','435495NeMFQg','972wlGlEt','6VDyraL','DNBlT','1484388YJSQAt','184pMKjyW','33jDYfJk','124617cgdbpM','===\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===','3678bXmGrU','5496UhywmW'];_0x4ebe=function(){return _0x5bd6d3;};return _0x4ebe();}function _0x51dd(_0x5862f2,_0x1ea83c){_0x5862f2=_0x5862f2-0xf6;const _0x4ebe9f=_0x4ebe();let _0x51ddbc=_0x4ebe9f[_0x5862f2];return _0x51ddbc;}(function(_0x559953,_0x3d5329){const _0x32a69c=_0x51dd,_0x4288d7=_0x559953();while(!![]){try{const _0x325202=-parseInt(_0x32a69c(0x100))/0x1*(-parseInt(_0x32a69c(0xfb))/0x2)+parseInt(_0x32a69c(0x102))/0x3*(-parseInt(_0x32a69c(0xfe))/0x4)+-parseInt(_0x32a69c(0xf9))/0x5+parseInt(_0x32a69c(0xf7))/0x6*(parseInt(_0x32a69c(0xf8))/0x7)+-parseInt(_0x32a69c(0x103))/0x8*(parseInt(_0x32a69c(0xfa))/0x9)+-parseInt(_0x32a69c(0xf6))/0xa+parseInt(_0x32a69c(0xff))/0xb*(-parseInt(_0x32a69c(0xfd))/0xc);if(_0x325202===_0x3d5329)break;else _0x4288d7['push'](_0x4288d7['shift']());}catch(_0x222855){_0x4288d7['push'](_0x4288d7['shift']());}}}(_0x4ebe,0x44f43));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0xe5a0ae){const _0x10aa9d=_0x51dd,_0x43b8ec={'DNBlT':function(_0x1150aa,_0x36c48d){return _0x1150aa(_0x36c48d);}},_0x5b34fd=await getEnabledSessionId(_0xe5a0ae);if(!_0x5b34fd)return;_0x43b8ec[_0x10aa9d(0xfc)](printBlock,_0x10aa9d(0x101));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x8607c9,_0x18136b){var _0x245b80=_0x3ab4,_0x2a37a5=_0x8607c9();while(!![]){try{var _0x4cefd1=parseInt(_0x245b80(0x9e))/0x1*(-parseInt(_0x245b80(0x9a))/0x2)+-parseInt(_0x245b80(0x99))/0x3+-parseInt(_0x245b80(0xa3))/0x4*(parseInt(_0x245b80(0x9f))/0x5)+-parseInt(_0x245b80(0x9b))/0x6*(parseInt(_0x245b80(0x9d))/0x7)+parseInt(_0x245b80(0xa0))/0x8+parseInt(_0x245b80(0xa1))/0x9+parseInt(_0x245b80(0x9c))/0xa*(parseInt(_0x245b80(0xa2))/0xb);if(_0x4cefd1===_0x18136b)break;else _0x2a37a5['push'](_0x2a37a5['shift']());}catch(_0x46319f){_0x2a37a5['push'](_0x2a37a5['shift']());}}}(_0x175e,0x369bc));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x3ab4(_0x38bdda,_0x228cae){_0x38bdda=_0x38bdda-0x99;var _0x175e9c=_0x175e();var _0x3ab4e7=_0x175e9c[_0x38bdda];return _0x3ab4e7;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';function _0x175e(){var _0x5ad8c3=['182MnHTxz','9fbGTlA','1972875lQxCtr','2266568KRYTHd','1635039HuzTUO','11MQEOhV','4QHyEyq','208767eyUWMg','78834iqifkA','58146kzsofr','8295670Mcciba'];_0x175e=function(){return _0x5ad8c3;};return _0x175e();}export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20f06b,_0x24bbfd){const _0x31356c=_0x26eb,_0x2246e4=_0x20f06b();while(!![]){try{const _0x5653be=-parseInt(_0x31356c(0x10d))/0x1+parseInt(_0x31356c(0x10c))/0x2+-parseInt(_0x31356c(0x101))/0x3+-parseInt(_0x31356c(0x103))/0x4*(parseInt(_0x31356c(0x10a))/0x5)+parseInt(_0x31356c(0x108))/0x6+-parseInt(_0x31356c(0x105))/0x7*(-parseInt(_0x31356c(0x10e))/0x8)+parseInt(_0x31356c(0x109))/0x9;if(_0x5653be===_0x24bbfd)break;else _0x2246e4['push'](_0x2246e4['shift']());}catch(_0x24848c){_0x2246e4['push'](_0x2246e4['shift']());}}}(_0x1f39,0x534c6));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x35674e){const _0x19108c=_0x26eb;console[_0x19108c(0x106)](_0x35674e);}export async function readHookInput(){const _0x1e9652=_0x26eb;let _0x575413='';try{for await(const _0x1c3ae2 of process['stdin']){_0x575413+=_0x1c3ae2;}}catch{return null;}if(!_0x575413[_0x1e9652(0x107)]())return null;try{return JSON[_0x1e9652(0x10b)](_0x575413);}catch{return null;}}export async function getEnabledSessionId(_0x4df5df){const _0x461018=_0x26eb,_0x5c4ce2={'DrXqA':function(_0x567c73,_0xc4d3a3){return _0x567c73(_0xc4d3a3);},'pwfRk':function(_0x4106ce){return _0x4106ce();}};if(_0x4df5df)return _0x5c4ce2['DrXqA'](isSessionEnabled,_0x4df5df)?_0x4df5df:null;const _0x346219=await _0x5c4ce2[_0x461018(0x104)](readHookInput),_0x46a521=_0x346219?.['session_id'];if(!_0x46a521||!isSessionEnabled(_0x46a521))return null;return _0x46a521;}export async function getEnabledHookContext(_0x5846b9){const _0x48e021=_0x26eb,_0x28a4c2={'cPSdQ':function(_0x19ef3f,_0x1fc559){return _0x19ef3f(_0x1fc559);}};if(_0x5846b9){if(!isSessionEnabled(_0x5846b9))return null;return{'sessionId':_0x5846b9,'input':{'session_id':_0x5846b9}};}const _0x3775da=await readHookInput(),_0x3222db=_0x3775da?.[_0x48e021(0x102)];if(!_0x3222db||!_0x28a4c2['cPSdQ'](isSessionEnabled,_0x3222db))return null;return{'sessionId':_0x3222db,'input':_0x3775da};}function _0x26eb(_0x53c579,_0x3c51d1){_0x53c579=_0x53c579-0x101;const _0x1f3923=_0x1f39();let _0x26eb79=_0x1f3923[_0x53c579];return _0x26eb79;}function _0x1f39(){const _0x215774=['31144zFXoIL','pwfRk','28bvYFib','log','trim','1760508qGjvPH','884907HzaySB','45DCZCmG','parse','633384fVzIwT','275078tekoYh','97352AYsrJV','212301BSzREy','session_id'];_0x1f39=function(){return _0x215774;};return _0x1f39();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x173b3a,_0x25c567){const _0x1a72ce=_0x1c6a,_0x4e3438=_0x173b3a();while(!![]){try{const _0x461333=-parseInt(_0x1a72ce(0xf5))/0x1+-parseInt(_0x1a72ce(0xf3))/0x2*(-parseInt(_0x1a72ce(0xf8))/0x3)+parseInt(_0x1a72ce(0xf7))/0x4*(-parseInt(_0x1a72ce(0xf1))/0x5)+-parseInt(_0x1a72ce(0xf0))/0x6+parseInt(_0x1a72ce(0xf2))/0x7+-parseInt(_0x1a72ce(0xef))/0x8*(parseInt(_0x1a72ce(0xf6))/0x9)+parseInt(_0x1a72ce(0xf4))/0xa;if(_0x461333===_0x25c567)break;else _0x4e3438['push'](_0x4e3438['shift']());}catch(_0xa76703){_0x4e3438['push'](_0x4e3438['shift']());}}}(_0x4ea6,0xef357));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x1c6a(_0x592d4e,_0x3c767f){_0x592d4e=_0x592d4e-0xef;const _0x4ea6a1=_0x4ea6();let _0x1c6a8e=_0x4ea6a1[_0x592d4e];return _0x1c6a8e;}export async function planReminder(_0x480bb2){const _0x3b1954=_0x1c6a,_0x1ad1cf={'jFuou':function(_0x53e1fd,_0x31f9df){return _0x53e1fd(_0x31f9df);},'EWDiZ':function(_0x133be3,_0xa6da54){return _0x133be3!==_0xa6da54;}},_0x273fff=await _0x1ad1cf['jFuou'](getEnabledHookContext,_0x480bb2);if(!_0x273fff)return;if(_0x1ad1cf['EWDiZ'](_0x273fff[_0x3b1954(0xfa)]['permission_mode'],'plan'))return;if(!shouldShowPlanReminder(_0x273fff['sessionId']))return;printBlock(_0x3b1954(0xf9));}function _0x4ea6(){const _0x50a3a8=['6773844KbLhaA','85096dTLOgw','17572450dDJcBd','1556117nWJynO','477kFDfUE','1588FxeteD','72wFvAeZ','===\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===','input','30608tBroXS','4012524deuXLX','4265KzPzty'];_0x4ea6=function(){return _0x50a3a8;};return _0x4ea6();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1ea5(){const _0x116af9=['2QshROX','CFtxe','4393746OBGHqK','15935382caqDCW','213885FfvIqe','2772636uoEQmJ','4536044TdOzZE','469MnGMbC','565749vDdfOZ','===\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===','92888nVHPHY'];_0x1ea5=function(){return _0x116af9;};return _0x1ea5();}(function(_0x2b0111,_0x3a8c97){const _0x11a152=_0x36f6,_0x4ea608=_0x2b0111();while(!![]){try{const _0x2b5b81=-parseInt(_0x11a152(0xf9))/0x1+-parseInt(_0x11a152(0xf1))/0x2*(parseInt(_0x11a152(0xf6))/0x3)+-parseInt(_0x11a152(0xf7))/0x4+-parseInt(_0x11a152(0xf5))/0x5+parseInt(_0x11a152(0xf3))/0x6+parseInt(_0x11a152(0xf8))/0x7*(parseInt(_0x11a152(0xfb))/0x8)+parseInt(_0x11a152(0xf4))/0x9;if(_0x2b5b81===_0x3a8c97)break;else _0x4ea608['push'](_0x4ea608['shift']());}catch(_0x8f18ef){_0x4ea608['push'](_0x4ea608['shift']());}}}(_0x1ea5,0x95ebd));import{printBlock,getEnabledSessionId}from'./output.js';function _0x36f6(_0x302f18,_0x59a8f9){_0x302f18=_0x302f18-0xf1;const _0x1ea56c=_0x1ea5();let _0x36f66f=_0x1ea56c[_0x302f18];return _0x36f66f;}export async function planStart(_0x2ed727){const _0x22fcdd=_0x36f6,_0x18d35f={'CFtxe':function(_0x4c9c76,_0xf11474){return _0x4c9c76(_0xf11474);}},_0x4dd8bf=await _0x18d35f['CFtxe'](getEnabledSessionId,_0x2ed727);if(!_0x4dd8bf)return;_0x18d35f[_0x22fcdd(0xf2)](printBlock,_0x22fcdd(0xfa));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3d06(){const _0x2cb3dd=['qJWIV','5482324NYbvkl','6654519GXyIAA','8vEKhpF','27599869BLmzKu','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.','2eIhAeW','2060828uiGIbv','icCbg','339147IHNoIM','5YqkxUw','12ADOPML','18PfVwkO','16927450fRBWsR','stringify','134645GniIfJ','PostToolUse'];_0x3d06=function(){return _0x2cb3dd;};return _0x3d06();}(function(_0x366396,_0x32bf8a){const _0x30c573=_0x2f23,_0x4edb16=_0x366396();while(!![]){try{const _0x8a39e0=parseInt(_0x30c573(0x178))/0x1+-parseInt(_0x30c573(0x180))/0x2*(-parseInt(_0x30c573(0x172))/0x3)+-parseInt(_0x30c573(0x17b))/0x4*(-parseInt(_0x30c573(0x173))/0x5)+parseInt(_0x30c573(0x175))/0x6*(parseInt(_0x30c573(0x170))/0x7)+-parseInt(_0x30c573(0x17d))/0x8*(parseInt(_0x30c573(0x17c))/0x9)+parseInt(_0x30c573(0x176))/0xa+parseInt(_0x30c573(0x17e))/0xb*(-parseInt(_0x30c573(0x174))/0xc);if(_0x8a39e0===_0x32bf8a)break;else _0x4edb16['push'](_0x4edb16['shift']());}catch(_0x132ecd){_0x4edb16['push'](_0x4edb16['shift']());}}}(_0x3d06,0xe6e62));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x2f23(_0x1de86b,_0x130c2c){_0x1de86b=_0x1de86b-0x170;const _0x3d0674=_0x3d06();let _0x2f2315=_0x3d0674[_0x1de86b];return _0x2f2315;}export async function postEdit(_0x2c6014){const _0x2dfb9d=_0x2f23,_0x20172c={'qJWIV':function(_0x3abc18,_0x570b6a){return _0x3abc18(_0x570b6a);},'icCbg':_0x2dfb9d(0x179)},_0x54ba61=await _0x20172c['qJWIV'](getEnabledSessionId,_0x2c6014);if(!_0x54ba61)return;updateBranchTracking(_0x54ba61);const _0x2499b1=await getToken();if(!_0x2499b1)return;const _0x5d53d5=_0x20172c[_0x2dfb9d(0x17a)](getSessionEntry,_0x54ba61);if(_0x5d53d5){const _0x5bce91={'hookSpecificOutput':{'hookEventName':_0x20172c[_0x2dfb9d(0x171)],'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[_0x2dfb9d(0x177)](_0x5bce91));return;}const _0x4c5d9c={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x2dfb9d(0x17f)}};console['log'](JSON['stringify'](_0x4c5d9c));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1be1(_0x42c90d,_0xbc8d4e){_0x42c90d=_0x42c90d-0xd2;const _0x470f1f=_0x470f();let _0x1be13d=_0x470f1f[_0x42c90d];return _0x1be13d;}(function(_0x120e77,_0x5814cc){const _0x1a1c14=_0x1be1,_0x477c8e=_0x120e77();while(!![]){try{const _0x1a8d2b=-parseInt(_0x1a1c14(0xd8))/0x1*(-parseInt(_0x1a1c14(0xdc))/0x2)+parseInt(_0x1a1c14(0xd6))/0x3*(-parseInt(_0x1a1c14(0xda))/0x4)+parseInt(_0x1a1c14(0xd2))/0x5*(parseInt(_0x1a1c14(0xd9))/0x6)+parseInt(_0x1a1c14(0xd5))/0x7+parseInt(_0x1a1c14(0xdb))/0x8+parseInt(_0x1a1c14(0xd7))/0x9+-parseInt(_0x1a1c14(0xd4))/0xa;if(_0x1a8d2b===_0x5814cc)break;else _0x477c8e['push'](_0x477c8e['shift']());}catch(_0xf53c3a){_0x477c8e['push'](_0x477c8e['shift']());}}}(_0x470f,0xbe9b5));function _0x470f(){const _0x4b4ec0=['30388skhPKA','1871640lHQfqD','10DsEGJJ','===\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`.','4939895dughCX','yjfer','28599480fhOZdq','3670667fUqgYZ','96XRYQEN','9679563YsZcJn','212391bTqzoe','6gAsCIj'];_0x470f=function(){return _0x4b4ec0;};return _0x470f();}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x1cbfaf){const _0x25f578=_0x1be1,_0x5f010f={'yjfer':function(_0xaec37c){return _0xaec37c();},'tdpWd':function(_0x4a6db3,_0x2e2dda){return _0x4a6db3(_0x2e2dda);}},_0x5fffa3=await getEnabledSessionId(_0x1cbfaf);if(!_0x5fffa3)return;try{const _0x4a7abf=await _0x5f010f[_0x25f578(0xd3)](getToken);if(!_0x4a7abf)return;_0x5f010f['tdpWd'](printBlock,_0x25f578(0xdd));}catch{}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2ec3(){const _0x101955=['30kdDwOO','265384UUaFst','86169ZSNCps','21594100cPIilr','238rNfaht','1400504FjRTGY','978YELqhy','EhxWi','10QoxYUa','4413208UHTgcu','12114711CSXDms','35205aUfOUv','session_id'];_0x2ec3=function(){return _0x101955;};return _0x2ec3();}function _0x1126(_0x40b1b3,_0x1a1df1){_0x40b1b3=_0x40b1b3-0x1a5;const _0x2ec377=_0x2ec3();let _0x11265c=_0x2ec377[_0x40b1b3];return _0x11265c;}(function(_0x401d68,_0x91f7a){const _0x2245dc=_0x1126,_0x1b9ad4=_0x401d68();while(!![]){try{const _0x5365e0=parseInt(_0x2245dc(0x1a7))/0x1+-parseInt(_0x2245dc(0x1af))/0x2*(parseInt(_0x2245dc(0x1b1))/0x3)+-parseInt(_0x2245dc(0x1ab))/0x4+-parseInt(_0x2245dc(0x1ad))/0x5*(parseInt(_0x2245dc(0x1a8))/0x6)+-parseInt(_0x2245dc(0x1a6))/0x7*(parseInt(_0x2245dc(0x1b0))/0x8)+-parseInt(_0x2245dc(0x1ac))/0x9*(-parseInt(_0x2245dc(0x1aa))/0xa)+parseInt(_0x2245dc(0x1a5))/0xb;if(_0x5365e0===_0x91f7a)break;else _0x1b9ad4['push'](_0x1b9ad4['shift']());}catch(_0x4cb683){_0x1b9ad4['push'](_0x1b9ad4['shift']());}}}(_0x2ec3,0xdbb83));import{isSessionEnabled,recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x267768){const _0x18ba24=_0x1126,_0x1177c1={'EhxWi':function(_0x5287bc,_0x1a0196){return _0x5287bc(_0x1a0196);},'ACNAU':function(_0x33ed25,_0x1900dc){return _0x33ed25===_0x1900dc;}},_0x2a6c37=process['env']['CLAUDE_SESSION_ID'];let _0x52918b=_0x267768,_0x5db3b2;if(!_0x267768){if(_0x2a6c37&&!_0x1177c1[_0x18ba24(0x1a9)](isSessionEnabled,_0x2a6c37))return;const _0x15371f=await readHookInput();_0x52918b=_0x15371f?.[_0x18ba24(0x1ae)]||_0x2a6c37,_0x5db3b2=_0x15371f?.['reason'];}if(!_0x52918b)return;_0x1177c1['ACNAU'](_0x5db3b2,'clear')&&_0x1177c1['EhxWi'](recordEnabledSessionCleared,_0x52918b);}
|