@ranger-testing/ranger-cli 2.1.4 → 2.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/browserSessionsApi.js +1 -1
  35. package/build/commands/utils/claudeConfig.js +1 -1
  36. package/build/commands/utils/claudePlugin.js +1 -1
  37. package/build/commands/utils/crypto.js +1 -1
  38. package/build/commands/utils/desirePathLog.js +1 -1
  39. package/build/commands/utils/deviceAuth.js +1 -1
  40. package/build/commands/utils/environment.js +1 -1
  41. package/build/commands/utils/featureApi.js +1 -1
  42. package/build/commands/utils/featureReportGenerator.js +1 -1
  43. package/build/commands/utils/fixWebmDuration.js +1 -1
  44. package/build/commands/utils/git.js +1 -1
  45. package/build/commands/utils/keychain.js +1 -1
  46. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  47. package/build/commands/utils/mcpImageBase64.js +1 -1
  48. package/build/commands/utils/model.js +1 -1
  49. package/build/commands/utils/opencodeConfig.js +1 -1
  50. package/build/commands/utils/profileMessages.js +1 -1
  51. package/build/commands/utils/profileSetupBanner.js +1 -1
  52. package/build/commands/utils/rangerConfig.js +1 -1
  53. package/build/commands/utils/rangerRoot.js +1 -1
  54. package/build/commands/utils/reportGenerator.js +1 -1
  55. package/build/commands/utils/retry.js +1 -1
  56. package/build/commands/utils/sessionCache.js +1 -1
  57. package/build/commands/utils/settings.js +1 -1
  58. package/build/commands/utils/skillContent.js +1 -1
  59. package/build/commands/utils/skills.js +1 -1
  60. package/build/commands/utils/telemetry.js +1 -1
  61. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  62. package/build/commands/utils/userApi.js +1 -1
  63. package/build/commands/utils/version.js +1 -1
  64. package/build/commands/verifyFeature.js +1 -1
  65. package/build/commands/verifyInBrowser.js +1 -1
  66. package/package.json +1 -1
@@ -1 +1 @@
1
- function _0x406b(){const _0x36d6ac=['12493590jdazAT','legacy','length','\x0aNo\x20profiles\x20found.','.txt','baseUrl','26zugkjT','1295847UqNkWN','push','Ddvue','environmentDetails','3077886cANNSy','isDirectory','4178120VwMvVH','263005ARBgUY','includes','sessions','64JyNRDY','log','wULpO','rssUY','1098925nfKxvG','7blfJfV','\x0a*\x20=\x20active\x20profile','jOCiX','\x20\x20\x20\x20\x20\x20URL:\x20','zkTbO','settings.json','KiIjF','startsWith','110841tyAlxR','gslTz'];_0x406b=function(){return _0x36d6ac;};return _0x406b();}const _0x305872=_0x2eea;(function(_0x374f0b,_0x5f9388){const _0x36c84e=_0x2eea,_0xbdba8d=_0x374f0b();while(!![]){try{const _0x5393e9=-parseInt(_0x36c84e(0x163))/0x1+-parseInt(_0x36c84e(0x154))/0x2*(-parseInt(_0x36c84e(0x16c))/0x3)+-parseInt(_0x36c84e(0x15f))/0x4*(-parseInt(_0x36c84e(0x15c))/0x5)+parseInt(_0x36c84e(0x159))/0x6*(-parseInt(_0x36c84e(0x164))/0x7)+-parseInt(_0x36c84e(0x15b))/0x8+parseInt(_0x36c84e(0x155))/0x9+parseInt(_0x36c84e(0x16e))/0xa;if(_0x5393e9===_0x5f9388)break;else _0xbdba8d['push'](_0xbdba8d['shift']());}catch(_0x380bc9){_0xbdba8d['push'](_0xbdba8d['shift']());}}}(_0x406b,0x8ddea));import{readdir,stat}from'fs/promises';import{join}from'path';function _0x2eea(_0x281e4d,_0x3dcf0a){_0x281e4d=_0x281e4d-0x154;const _0x406b99=_0x406b();let _0x2eea50=_0x406b99[_0x281e4d];return _0x2eea50;}import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x305872(0x15e),'bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x7dd3aa=_0x305872,_0x3c78c4={'Ddvue':function(_0x4ff718,_0x13c4dd,_0x5a4889){return _0x4ff718(_0x13c4dd,_0x5a4889);},'rssUY':'local','wULpO':function(_0x44b891,_0x84bc85){return _0x44b891(_0x84bc85);},'yPaSJ':function(_0x1a4758,_0x3ae823,_0x4bb9ba){return _0x1a4758(_0x3ae823,_0x4bb9ba);},'foWsr':function(_0x46ea2c,_0xb87b82){return _0x46ea2c(_0xb87b82);},'gslTz':function(_0x1b61aa,_0x5c83cc){return _0x1b61aa(_0x5c83cc);},'wyxNU':function(_0x5b1a69,_0x2a5001){return _0x5b1a69(_0x2a5001);},'fzQNu':function(_0x39032e,_0x3b8f5f,_0x1eac6b){return _0x39032e(_0x3b8f5f,_0x1eac6b);},'zkTbO':_0x7dd3aa(0x16f)},_0x593d5d=getRangerDir();if(!existsSync(_0x593d5d))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2dbe3b=await readActiveProfileName(),_0x5886f7=[],_0x4643d3={},_0x7e0f15=_0x3c78c4[_0x7dd3aa(0x157)](join,_0x593d5d,_0x3c78c4[_0x7dd3aa(0x162)]);if(_0x3c78c4[_0x7dd3aa(0x161)](existsSync,_0x7e0f15)){const _0x1e51a1=await _0x3c78c4[_0x7dd3aa(0x161)](readdir,_0x7e0f15);for(const _0x30bb77 of _0x1e51a1){const _0x13c55f=join(_0x7e0f15,_0x30bb77),_0x191fed=await stat(_0x13c55f);_0x191fed['isDirectory']()&&(_0x5886f7[_0x7dd3aa(0x156)](_0x30bb77),_0x4643d3[_0x30bb77]=_0x3c78c4[_0x7dd3aa(0x162)]);}}const _0xaef497=_0x3c78c4['yPaSJ'](join,_0x593d5d,'ci');if(_0x3c78c4[_0x7dd3aa(0x161)](existsSync,_0xaef497)){const _0x4e6779=await _0x3c78c4['foWsr'](readdir,_0xaef497);for(const _0x1a8b41 of _0x4e6779){const _0x314bab=join(_0xaef497,_0x1a8b41),_0x30f6e2=await _0x3c78c4['wULpO'](stat,_0x314bab);_0x30f6e2[_0x7dd3aa(0x15a)]()&&(_0x5886f7[_0x7dd3aa(0x156)](_0x1a8b41),_0x4643d3[_0x1a8b41]='ci');}}const _0x4e2ddc=await _0x3c78c4[_0x7dd3aa(0x16d)](readdir,_0x593d5d);for(const _0x1889fd of _0x4e2ddc){if(NON_ENV_DIRS[_0x7dd3aa(0x15d)](_0x1889fd))continue;if(_0x1889fd[_0x7dd3aa(0x16b)]('.'))continue;if(_0x1889fd['endsWith'](_0x7dd3aa(0x172)))continue;const _0x27c32c=join(_0x593d5d,_0x1889fd),_0x2a772b=await _0x3c78c4['wyxNU'](stat,_0x27c32c);_0x2a772b[_0x7dd3aa(0x15a)]()&&existsSync(_0x3c78c4['fzQNu'](join,_0x27c32c,_0x7dd3aa(0x169)))&&(!_0x5886f7[_0x7dd3aa(0x15d)](_0x1889fd)&&(_0x5886f7['push'](_0x1889fd),_0x4643d3[_0x1889fd]=_0x3c78c4[_0x7dd3aa(0x168)]));}return{'envNames':_0x5886f7,'activeEnv':_0x2dbe3b,'envTypes':_0x4643d3};}export async function envList(){const _0x5acf12=_0x305872,_0x583122={'NqaRn':function(_0x6b173b,_0x3c6de3){return _0x6b173b===_0x3c6de3;},'ANkRs':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','ETvoV':function(_0x221a27,_0x57d749){return _0x221a27===_0x57d749;},'jOCiX':function(_0x4981af,_0x47fbb1){return _0x4981af(_0x47fbb1);},'KiIjF':function(_0x4a7784,_0x349fc8){return _0x4a7784===_0x349fc8;}},{envNames:_0x3809f4,activeEnv:_0x27f844,envTypes:_0x253e30}=await getEnvNames();if(_0x583122['NqaRn'](_0x3809f4[_0x5acf12(0x170)],0x0)){console['log'](_0x5acf12(0x171)),console['log'](_0x583122['ANkRs']);return;}console['log']('\x0aProfiles:');for(const _0xbe46fa of _0x3809f4['sort']()){const _0x11130e=_0x583122['ETvoV'](_0xbe46fa,_0x27f844),_0x5a9bff=_0x253e30[_0xbe46fa]||'local',_0x1ebc01=await _0x583122[_0x5acf12(0x166)](loadSettings,_0xbe46fa),_0x45c3f6=_0x583122[_0x5acf12(0x16a)](_0x5a9bff,_0x5acf12(0x16f))?'':'\x20['+_0x5a9bff+']';console['log']('\x20\x20'+(_0x11130e?'*\x20':'\x20\x20')+_0xbe46fa+_0x45c3f6),_0x1ebc01[_0x5acf12(0x173)]&&console[_0x5acf12(0x160)](_0x5acf12(0x167)+_0x1ebc01[_0x5acf12(0x173)]),_0x1ebc01[_0x5acf12(0x158)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x1ebc01['environmentDetails']);}_0x27f844&&console[_0x5acf12(0x160)](_0x5acf12(0x165));}
1
+ const _0x225502=_0x393e;(function(_0xfcfe4f,_0x2098a5){const _0x38fe5f=_0x393e,_0x3b73aa=_0xfcfe4f();while(!![]){try{const _0x4592b3=parseInt(_0x38fe5f(0x1d2))/0x1+-parseInt(_0x38fe5f(0x1da))/0x2+-parseInt(_0x38fe5f(0x1c6))/0x3*(parseInt(_0x38fe5f(0x1c7))/0x4)+-parseInt(_0x38fe5f(0x1c3))/0x5+-parseInt(_0x38fe5f(0x1c4))/0x6*(parseInt(_0x38fe5f(0x1cc))/0x7)+-parseInt(_0x38fe5f(0x1ce))/0x8+parseInt(_0x38fe5f(0x1db))/0x9;if(_0x4592b3===_0x2098a5)break;else _0x3b73aa['push'](_0x3b73aa['shift']());}catch(_0x18a8b2){_0x3b73aa['push'](_0x3b73aa['shift']());}}}(_0x3f9d,0x341ea));function _0x393e(_0xe43a27,_0x357e76){_0xe43a27=_0xe43a27-0x1bf;const _0x3f9d9c=_0x3f9d();let _0x393ebd=_0x3f9d9c[_0xe43a27];return _0x393ebd;}import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';function _0x3f9d(){const _0x5aca3c=['HBKbg','60jkIXMd','11060MnMJUT','aRvyf','ABcEX','reports','kTwLb','1688442eAwzyL','environmentDetails','2223344oPcEnl','log','isDirectory','legacy','410553aUXvfn','baseUrl','mOVkG','push','Run:\x20ranger\x20profile\x20add\x20<profile-name>','nmcPm','RSdjN','length','23322PfSkcb','6678549CrxLPR','\x0aProfiles:','includes','\x20\x20\x20\x20\x20\x20Details:\x20','\x20\x20\x20\x20\x20\x20URL:\x20','1765235NcDLPf','6TVSmiX'];_0x3f9d=function(){return _0x5aca3c;};return _0x3f9d();}import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes',_0x225502(0x1ca),'local','ci'];export async function getEnvNames(){const _0x2c2c76=_0x225502,_0x8816a5={'GlQnj':function(_0x54b2d6){return _0x54b2d6();},'YdcRK':function(_0x3b305f,_0x5c8d80){return _0x3b305f(_0x5c8d80);},'kTwLb':'local','nmcPm':function(_0x3ba98a,_0x484cea,_0x3fe19d){return _0x3ba98a(_0x484cea,_0x3fe19d);},'cRIhO':function(_0x291768,_0x2b6351){return _0x291768(_0x2b6351);},'aRvyf':function(_0x5674ba,_0x22bf90){return _0x5674ba(_0x22bf90);},'mOVkG':'.txt','RSdjN':function(_0x65eb3d,_0x4823fd){return _0x65eb3d(_0x4823fd);},'HBKbg':_0x2c2c76(0x1d1)},_0x336329=_0x8816a5['GlQnj'](getRangerDir);if(!_0x8816a5['YdcRK'](existsSync,_0x336329))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x4d965f=await readActiveProfileName(),_0x381448=[],_0x13de6c={},_0x3e2ede=join(_0x336329,_0x8816a5['kTwLb']);if(existsSync(_0x3e2ede)){const _0xd86f3e=await readdir(_0x3e2ede);for(const _0x90c44b of _0xd86f3e){const _0x427695=_0x8816a5[_0x2c2c76(0x1d7)](join,_0x3e2ede,_0x90c44b),_0x38b045=await stat(_0x427695);_0x38b045[_0x2c2c76(0x1d0)]()&&(_0x381448['push'](_0x90c44b),_0x13de6c[_0x90c44b]=_0x8816a5[_0x2c2c76(0x1cb)]);}}const _0x4b4a5b=join(_0x336329,'ci');if(_0x8816a5['cRIhO'](existsSync,_0x4b4a5b)){const _0x2c5051=await readdir(_0x4b4a5b);for(const _0x3023a7 of _0x2c5051){const _0x45bbb5=join(_0x4b4a5b,_0x3023a7),_0x4d204f=await stat(_0x45bbb5);_0x4d204f['isDirectory']()&&(_0x381448['push'](_0x3023a7),_0x13de6c[_0x3023a7]='ci');}}const _0x201519=await _0x8816a5[_0x2c2c76(0x1c8)](readdir,_0x336329);for(const _0x242e30 of _0x201519){if(NON_ENV_DIRS['includes'](_0x242e30))continue;if(_0x242e30['startsWith']('.'))continue;if(_0x242e30['endsWith'](_0x8816a5[_0x2c2c76(0x1d4)]))continue;const _0x42480a=join(_0x336329,_0x242e30),_0x3d59ab=await _0x8816a5[_0x2c2c76(0x1d8)](stat,_0x42480a);_0x3d59ab[_0x2c2c76(0x1d0)]()&&existsSync(join(_0x42480a,'settings.json'))&&(!_0x381448[_0x2c2c76(0x1c0)](_0x242e30)&&(_0x381448[_0x2c2c76(0x1d5)](_0x242e30),_0x13de6c[_0x242e30]=_0x8816a5[_0x2c2c76(0x1c5)]));}return{'envNames':_0x381448,'activeEnv':_0x4d965f,'envTypes':_0x13de6c};}export async function envList(){const _0xda65bc=_0x225502,_0x19e57c={'lvSeM':'\x0aNo\x20profiles\x20found.','ABcEX':function(_0x2b319e,_0x412830){return _0x2b319e===_0x412830;},'QXorn':'legacy'},{envNames:_0x25a625,activeEnv:_0x576238,envTypes:_0x51befa}=await getEnvNames();if(_0x25a625[_0xda65bc(0x1d9)]===0x0){console['log'](_0x19e57c['lvSeM']),console['log'](_0xda65bc(0x1d6));return;}console['log'](_0xda65bc(0x1bf));for(const _0x2c202e of _0x25a625['sort']()){const _0x38883d=_0x2c202e===_0x576238,_0x47f324=_0x51befa[_0x2c202e]||'local',_0x25ccc9=await loadSettings(_0x2c202e),_0x226973=_0x19e57c[_0xda65bc(0x1c9)](_0x47f324,_0x19e57c['QXorn'])?'':'\x20['+_0x47f324+']';console[_0xda65bc(0x1cf)]('\x20\x20'+(_0x38883d?'*\x20':'\x20\x20')+_0x2c202e+_0x226973),_0x25ccc9['baseUrl']&&console['log'](_0xda65bc(0x1c2)+_0x25ccc9[_0xda65bc(0x1d3)]),_0x25ccc9[_0xda65bc(0x1cd)]&&console[_0xda65bc(0x1cf)](_0xda65bc(0x1c1)+_0x25ccc9['environmentDetails']);}_0x576238&&console['log']('\x0a*\x20=\x20active\x20profile');}
@@ -1 +1 @@
1
- const _0x239627=_0x580b;(function(_0x28b7f2,_0x19cc1c){const _0x1f4507=_0x580b,_0x36506d=_0x28b7f2();while(!![]){try{const _0x1f780b=parseInt(_0x1f4507(0x174))/0x1*(parseInt(_0x1f4507(0x1b2))/0x2)+-parseInt(_0x1f4507(0x191))/0x3*(-parseInt(_0x1f4507(0x14e))/0x4)+-parseInt(_0x1f4507(0x1c6))/0x5+parseInt(_0x1f4507(0x144))/0x6*(parseInt(_0x1f4507(0x120))/0x7)+parseInt(_0x1f4507(0x18f))/0x8+-parseInt(_0x1f4507(0x199))/0x9+parseInt(_0x1f4507(0x15f))/0xa;if(_0x1f780b===_0x19cc1c)break;else _0x36506d['push'](_0x36506d['shift']());}catch(_0x3636bf){_0x36506d['push'](_0x36506d['shift']());}}}(_0x3d26,0x57408));function _0x580b(_0x25e074,_0x34a89b){_0x25e074=_0x25e074-0x120;const _0x3d26c6=_0x3d26();let _0x580b22=_0x3d26c6[_0x25e074];return _0x580b22;}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3edf0f from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.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=_0x239627(0x167),bold=_0x3f789a=>_0x239627(0x15d)+_0x3f789a+_0x239627(0x131);function getGitRepoUrl(){const _0x2fbb1e=_0x239627,_0x5ac745={'UUFpe':function(_0x3443e6,_0x4b2deb,_0x459c6c){return _0x3443e6(_0x4b2deb,_0x459c6c);},'KZSAg':_0x2fbb1e(0x1d6),'vWZhW':'pipe'};try{const _0x2a20e8=_0x5ac745['UUFpe'](execSync,_0x2fbb1e(0x13e),{'encoding':_0x5ac745['KZSAg'],'stdio':[_0x5ac745['vWZhW'],_0x5ac745['vWZhW'],_0x5ac745[_0x2fbb1e(0x127)]]})[_0x2fbb1e(0x137)]();return _0x2a20e8[_0x2fbb1e(0x1d9)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x2fbb1e(0x18e))[_0x2fbb1e(0x1d9)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x426f6c=_0x239627,_0x155af8={'DuDHN':function(_0x1671be,_0x4edfd3,_0x2a6a75){return _0x1671be(_0x4edfd3,_0x2a6a75);},'XKQoY':_0x426f6c(0x1d6),'iIDHF':_0x426f6c(0x159)};try{return _0x155af8[_0x426f6c(0x132)](execSync,_0x426f6c(0x1cd),{'encoding':_0x155af8['XKQoY'],'stdio':[_0x426f6c(0x159),'pipe',_0x155af8['iIDHF']]})['trim']();}catch{return undefined;}}function _0x3d26(){const _0x26a754=['textContent','completed','Scenario\x20','latestReview','\x0a✅\x20Resumed\x20feature\x20review:\x20','closed','206RccQTY','No\x20scenarios\x20found.','.md','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','includeDeleted','Current\x20session\x20not\x20found.','canceledReason','repeat','\x0a✅\x20Session\x20is\x20already\x20completed.','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','NslBY','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','YUaGg','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','bOmOV','canonicalFlow','error','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','FTKdQ','2152385HhWALO','\x20\x20\x20Repository:\x20','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','BsvqT','dCsfY','domRef','iteration','git\x20rev-parse\x20--abbrev-ref\x20HEAD','Please\x20finish\x20your\x20review\x20first:','\x20\x20\x20Completed:\x20','\x20\x20\x20\x20','XpVny','\x20\x20\x20\x20\x20\x20Blocked:\x20','blockedReason','sLZrI','name','utf-8','\x20(v','assetUrl','replace','join','xngPS','osldB','CvTEY','items','5|2|4|1|3|0','Fqofg','\x20--current-branch','type','find','stdout','\x20at\x20[','YrLbl','submittedAt','length','log','UCYcq','mtnXh','warn','lkVYj','\x20scenarios.','JTFCa','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20\x20\x20Progress:\x20','\x20\x20\x20Created:\x20','PaEZn','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','xshPo','HiGsq','currentBranch','bprAX','gitRepoUrl','BtiCM','1211679PtYqNR','kVytg','\x20--include-deleted',':\x20\x22','limit','GpYAC','gitBranch','vWZhW','push','jQIEy','\x20\x20\x20','\x20scenario(s).','pXhUB','Gqlyv','description','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','env','\x1b[0m','DuDHN','currentSessionId','short','qNJdV','\x20unaddressed\x20comment(s)','trim','BmGzi','LeRKm','approved','IvpUo','feedback-images','PvsJH','git\x20remote\x20get-url\x20origin','QtvJe','\x20concluded.','round','SVSuj','\x20feature\x20review(s)\x20found','6JWsVKB','position','dysgP','isTTY','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','scenarios','\x20\x20\x20▶️\x20Started\x20session\x20','\x20\x20\x20Branch:\x20','totalCount','Larxx','70732xtpaIj','LWQLx','olWZc','\x20of\x20','ready','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','createdAt','sessionId','blockedItems','map','\x20in\x20progress','pipe','\x0a✅\x20Session\x20','xVhst','fcYSU','\x1b[1m','QABtt','5843320gBaQGw','dashboardUrl','split','\x20verified','Not\x20in\x20a\x20git\x20repository.','in_progress','write','selector','active-feature.txt','uNtTB','yHxbh','verified','NqChM','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','spatial','status','\x0a✅\x20Report\x20generated:\x20','\x20blocked','toLocaleDateString','kPdoM','\x0a⚠️\x20\x20','418VihtEa','\x20\x20\x20Description:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','WNoqQ','reports','oJUkH','\x0a\x20\x20\x20Scenarios:','ARyAH','\x20\x20\x20ID:\x20','ygPoJ','filter','qJtYp','eFrGY','trimEnd','unaddressedComments','mhOGY','en-US','havOL','version','DRXjA','numeric','stats','toLocaleString','mdGBu','element','wkseC','github.com/','707632CLUZCR','\x20\x20\x20\x20\x20\x20Cancelled:\x20','18raumPZ','offset','BPgpd','exit','AcLNC','\x20\x20\x20\x20\x20Branch:\x20','\x20\x20\x20Status:\x20','NFeHB','1864566FpspzM','\x20\x20\x20\x20\x20\x20Approved','incompleteItems','isInteger','CLAUDE_SESSION_ID','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','incomplete','desjK','sort','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','checklistItems','obArp','VnJrx','authorEmail','LoEKa','slice','arrayBuffer','egmBW','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'];_0x3d26=function(){return _0x26a754;};return _0x3d26();}export async function getActiveFeatureId(){const _0x7b6c37=_0x239627,_0x14b64d={'AcLNC':function(_0x2e981b){return _0x2e981b();}},_0x3fa6b0=join(_0x14b64d[_0x7b6c37(0x195)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x3fa6b0))return null;try{const _0x1fba33=await readFile(_0x3fa6b0,_0x7b6c37(0x1d6));return _0x1fba33['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x3dbfd2){const _0x154c75=_0x239627,_0x62ba3={'YBFja':function(_0x50cb88){return _0x50cb88();},'BPgpd':function(_0x3da18c,_0x52d0ae,_0x583a5a){return _0x3da18c(_0x52d0ae,_0x583a5a);},'xngPS':function(_0x2728b1,_0xea35e0){return _0x2728b1(_0xea35e0);},'QABtt':function(_0x56ccd5,_0x116c48,_0x213a2a,_0x1f2c9f){return _0x56ccd5(_0x116c48,_0x213a2a,_0x1f2c9f);},'nboPh':'utf-8'},_0x376a03=_0x62ba3['YBFja'](getRangerDir),_0x2df13e=_0x62ba3['BPgpd'](join,_0x376a03,ACTIVE_FEATURE_FILE);!_0x62ba3[_0x154c75(0x1db)](existsSync,_0x376a03)&&await _0x62ba3[_0x154c75(0x193)](mkdir,_0x376a03,{'recursive':!![]}),await _0x62ba3[_0x154c75(0x15e)](writeFile,_0x2df13e,_0x3dbfd2,_0x62ba3['nboPh']);}function getProgressDisplay(_0x3c8a2f){const _0x1e2f43=_0x239627,_0xe21867={'YUaGg':function(_0x5a019c,_0x39e101){return _0x5a019c+_0x39e101;},'BtiCM':function(_0x488a52,_0x50274e){return _0x488a52===_0x50274e;},'RMlOY':function(_0x268063,_0x12c4c1){return _0x268063-_0x12c4c1;},'egmBW':function(_0x46bd3f,_0xc5bbe){return _0x46bd3f>_0xc5bbe;},'Fqofg':function(_0x1050ad,_0x2ba572){return _0x1050ad>_0x2ba572;}},_0x46b3d2=_0x3c8a2f['verifiedItems']||0x0,_0x45ed18=_0x3c8a2f['verificationInProgressItems']||0x0,_0x68cc98=_0x3c8a2f[_0x1e2f43(0x156)]||0x0,_0x9090b7=_0x3c8a2f[_0x1e2f43(0x19b)]||0x0,_0x36e2f3=_0x3c8a2f['pendingItems']||0x0,_0x39a780=_0xe21867[_0x1e2f43(0x1bf)](_0x46b3d2,_0x45ed18)+_0x68cc98+_0x9090b7+_0x36e2f3;if(_0xe21867[_0x1e2f43(0x1fb)](_0x39a780,0x0))return'-';const _0x25fb9b=0xa,_0x2ac612=Math[_0x1e2f43(0x141)](_0x46b3d2/_0x39a780*_0x25fb9b),_0x426734='█'[_0x1e2f43(0x1ba)](_0x2ac612)+'░'[_0x1e2f43(0x1ba)](_0xe21867['RMlOY'](_0x25fb9b,_0x2ac612)),_0x4a6fdd=[];if(_0xe21867[_0x1e2f43(0x1aa)](_0x68cc98,0x0))_0x4a6fdd['push'](_0x68cc98+_0x1e2f43(0x170));if(_0xe21867[_0x1e2f43(0x1e0)](_0x9090b7,0x0))_0x4a6fdd[_0x1e2f43(0x128)](_0x9090b7+'\x20incomplete');if(_0xe21867[_0x1e2f43(0x1aa)](_0x45ed18,0x0))_0x4a6fdd[_0x1e2f43(0x128)](_0x45ed18+_0x1e2f43(0x158));const _0x31a483=_0x4a6fdd['length']>0x0?'\x20('+_0x4a6fdd[_0x1e2f43(0x1da)](',\x20')+')':'';return _0x426734+'\x20'+_0x46b3d2+'/'+_0x39a780+_0x1e2f43(0x162)+_0x31a483;}function getCurrentSessionItems(_0x1268c3,_0xf07eea){const _0x3058b0=_0x239627;if(!_0x1268c3[_0x3058b0(0x133)])return _0xf07eea['filter'](_0x133f7f=>!_0x133f7f[_0x3058b0(0x155)])['sort']((_0x3adcb5,_0x4546db)=>_0x3adcb5[_0x3058b0(0x145)]-_0x4546db[_0x3058b0(0x145)]);return _0xf07eea['filter'](_0xdbcc5d=>_0xdbcc5d['sessionId']===_0x1268c3['currentSessionId']||!_0xdbcc5d['sessionId'])[_0x3058b0(0x1a1)]((_0xea4563,_0x4b8ac7)=>_0xea4563[_0x3058b0(0x145)]-_0x4b8ac7['position']);}function displayFeature(_0x2bbe0f,_0x335d1d){const _0x3287df=_0x239627,_0x571761={'jcjAc':function(_0xb385d2,_0x213aad){return _0xb385d2(_0x213aad);},'PvsJH':function(_0x12e9c6,_0x4a6206){return _0x12e9c6<_0x4a6206;},'eFrGY':function(_0x202347,_0x16515d){return _0x202347===_0x16515d;},'wkseC':_0x3287df(0x1b1),'UCYcq':_0x3287df(0x13a),'fGTHD':_0x3287df(0x19f),'exzxz':function(_0x699484,_0x26237b){return _0x699484>_0x26237b;},'LWQLx':'\x20[has\x20reviewer\x20feedback]','lkVYj':function(_0x4f5cc1,_0x1b7970){return _0x4f5cc1+_0x1b7970;},'MfukX':'blocked','VzkkC':function(_0x3f0ffe,_0xeb64d){return _0x3f0ffe===_0xeb64d;}};console[_0x3287df(0x1e9)]('\x0a'+_0x2bbe0f[_0x3287df(0x1d5)]+'\x20('+_0x2bbe0f['dashboardUrl']+')');_0x2bbe0f['stats']&&console['log']('\x20\x20\x20Progress:\x20'+_0x571761['jcjAc'](getProgressDisplay,_0x2bbe0f['stats']));_0x2bbe0f[_0x3287df(0x12e)]&&console['log'](_0x3287df(0x175)+_0x2bbe0f['description']);_0x2bbe0f[_0x3287df(0x1fa)]&&console[_0x3287df(0x1e9)](_0x3287df(0x1c7)+_0x2bbe0f['gitRepoUrl']);_0x2bbe0f['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x2bbe0f[_0x3287df(0x126)]);console['log'](_0x3287df(0x1f2)+new Date(_0x2bbe0f[_0x3287df(0x154)])[_0x3287df(0x18a)]());_0x2bbe0f['completedAt']&&console[_0x3287df(0x1e9)](_0x3287df(0x1cf)+new Date(_0x2bbe0f['completedAt'])[_0x3287df(0x18a)]());if(_0x335d1d&&_0x335d1d[_0x3287df(0x1e8)]>0x0){console['log'](_0x3287df(0x17a));for(let _0x3a1770=0x0;_0x571761[_0x3287df(0x13d)](_0x3a1770,_0x335d1d['length']);_0x3a1770++){const _0x53bc09=_0x335d1d[_0x3a1770];let _0x15d292;if(_0x571761[_0x3287df(0x180)](_0x53bc09['status'],_0x571761[_0x3287df(0x18d)])&&_0x53bc09['terminalReason']===_0x571761[_0x3287df(0x1ea)])_0x15d292='✅';else{if(_0x53bc09[_0x3287df(0x16e)]===_0x3287df(0x16a))_0x15d292='🟢';else{if(_0x571761['eFrGY'](_0x53bc09[_0x3287df(0x16e)],_0x571761['fGTHD']))_0x15d292='🟠';else{if(_0x53bc09[_0x3287df(0x16e)]==='blocked')_0x15d292='🛑';else{if(_0x53bc09['status']==='closed')_0x15d292='⛔';else _0x571761[_0x3287df(0x180)](_0x53bc09['status'],'verification_in_progress')?_0x15d292='⏳':_0x15d292='⬜';}}}}const _0x5493a3=_0x53bc09[_0x3287df(0x186)]>0x1?'\x20(v'+_0x53bc09[_0x3287df(0x186)]+')':'',_0x42d3c5=_0x571761['exzxz'](_0x53bc09['version'],0x1)&&_0x53bc09['parentItemId']&&_0x53bc09['status']!==_0x571761[_0x3287df(0x18d)]&&_0x53bc09[_0x3287df(0x16e)]!==_0x3287df(0x16a)?_0x571761[_0x3287df(0x14f)]:'';console[_0x3287df(0x1e9)](_0x3287df(0x12a)+_0x571761[_0x3287df(0x1ed)](_0x3a1770,0x1)+'.\x20'+_0x15d292+'\x20'+_0x53bc09['description']+_0x5493a3+_0x42d3c5);_0x53bc09[_0x3287df(0x16e)]===_0x571761['MfukX']&&_0x53bc09['blockedReason']&&console['log'](_0x3287df(0x1d2)+_0x53bc09[_0x3287df(0x1d3)]);_0x571761['VzkkC'](_0x53bc09[_0x3287df(0x16e)],_0x571761['fGTHD'])&&_0x53bc09['incompleteReason']&&console[_0x3287df(0x1e9)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x53bc09['incompleteReason']);if(_0x53bc09[_0x3287df(0x16e)]===_0x571761['wkseC']&&_0x571761[_0x3287df(0x180)](_0x53bc09['terminalReason'],_0x571761['UCYcq']))console['log'](_0x3287df(0x19a));else _0x53bc09['status']==='closed'&&_0x53bc09['canceledReason']&&console[_0x3287df(0x1e9)](_0x3287df(0x190)+_0x53bc09[_0x3287df(0x1b9)]);}}}export async function featureCreate(_0x5318d9,_0x56228b){const _0x2218c3=_0x239627,_0x28ec92={'qJtYp':function(_0x31c872){return _0x31c872();},'SVSuj':function(_0x2bff5c,_0x3de428){return _0x2bff5c(_0x3de428);},'PaEZn':function(_0x31f384){return _0x31f384();}},{envNames:_0x2f4887}=await _0x28ec92[_0x2218c3(0x17f)](getEnvNames);_0x2f4887[_0x2218c3(0x1e8)]===0x0&&console[_0x2218c3(0x1ec)]('\x0a'+_0x28ec92['SVSuj'](formatProfileRequiredMessage,_0x59a59d=>bold(_0x59a59d)));const _0x4997a5=_0x56228b[_0x2218c3(0x149)]?_0x56228b['scenarios']['map'](_0x29fd7c=>_0x29fd7c['trim']()):[],_0x3e5244=_0x28ec92['qJtYp'](getGitRepoUrl),_0x364403=_0x28ec92[_0x2218c3(0x1f3)](getGitBranch);console[_0x2218c3(0x1e9)]('\x0aCreating\x20feature\x20review...');const _0x4dfc11=await _0x28ec92[_0x2218c3(0x142)](createFeature,{'name':_0x5318d9,'description':_0x56228b['description'],'checklist':_0x4997a5,'gitRepoUrl':_0x3e5244,'gitBranch':_0x364403});await setActiveFeatureId(_0x4dfc11['id']),await tryStartCurrentSession(_0x4dfc11['id']);const _0x2c0945=process[_0x2218c3(0x130)][_0x2218c3(0x19d)];_0x2c0945&&registerSession(_0x2c0945,_0x4dfc11['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x4dfc11['id']),displayFeature(_0x4dfc11,_0x4dfc11[_0x2218c3(0x1a3)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x3764dd){const _0x4329ec=_0x239627,_0x280801={'LoEKa':function(_0x411e07,_0x3cfaa1){return _0x411e07===_0x3cfaa1;},'PFvUb':function(_0x5b4643,_0x109eab){return _0x5b4643>_0x109eab;},'IuxNw':_0x4329ec(0x1df),'FQEeE':function(_0x3ad39d,_0x19b2e4){return _0x3ad39d+_0x19b2e4;}},_0x4abb8d={'limit':_0x3764dd[_0x4329ec(0x124)]??0xa,'offset':_0x3764dd['offset']??0x0,'includeDeleted':_0x3764dd['includeDeleted']};_0x3764dd[_0x4329ec(0x1f8)]&&(_0x4abb8d['gitRepoUrl']=getGitRepoUrl(),_0x4abb8d['gitBranch']=getGitBranch());const _0x27b88f=await listFeatures(_0x4abb8d);if(_0x280801[_0x4329ec(0x1a7)](_0x27b88f[_0x4329ec(0x1de)]['length'],0x0)){console['log']('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x5b6ad1=_0x280801['PFvUb'](_0x27b88f[_0x4329ec(0x14c)],_0x27b88f['items'][_0x4329ec(0x1e8)])?'Showing\x20'+_0x27b88f[_0x4329ec(0x1de)][_0x4329ec(0x1e8)]+_0x4329ec(0x151)+_0x27b88f[_0x4329ec(0x14c)]:_0x27b88f['totalCount']+_0x4329ec(0x143);console['log']('\x0a'+_0x5b6ad1+':\x0a');for(const _0x1f775f of _0x27b88f[_0x4329ec(0x1de)]){const _0x4cfb39=_0x280801['IuxNw'][_0x4329ec(0x161)]('|');let _0x5d942f=0x0;while(!![]){switch(_0x4cfb39[_0x5d942f++]){case'0':console['log']('');continue;case'1':_0x1f775f['gitBranch']&&console['log'](_0x4329ec(0x14b)+_0x1f775f[_0x4329ec(0x126)]);continue;case'2':console['log'](_0x4329ec(0x17c)+_0x1f775f['id']);continue;case'3':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x1f775f[_0x4329ec(0x154)])[_0x4329ec(0x171)]());continue;case'4':_0x1f775f[_0x4329ec(0x189)]&&console['log'](_0x4329ec(0x1f1)+getProgressDisplay(_0x1f775f['stats']));continue;case'5':console['log'](''+_0x1f775f['name']);continue;}break;}}const _0xfa362e=_0x4abb8d['limit']??0xa,_0x4f43df=_0x280801['FQEeE'](_0x4abb8d[_0x4329ec(0x192)]??0x0,_0x27b88f[_0x4329ec(0x1de)][_0x4329ec(0x1e8)]);if(_0x4f43df<_0x27b88f[_0x4329ec(0x14c)]){const _0x4badcd=_0xfa362e!==0xa?'\x20--limit\x20'+_0xfa362e:'',_0x24b5cf=_0x3764dd['currentBranch']?_0x4329ec(0x1e1):'',_0x58e2f2=_0x3764dd[_0x4329ec(0x1b7)]?_0x4329ec(0x122):'';console['log'](_0x4329ec(0x1b5)+_0x4f43df+_0x4badcd+_0x24b5cf+_0x58e2f2);}}export async function featureShow(_0x7f3e68){const _0x3ee833=_0x239627,_0x2769ee={'sLZrI':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x3fce16=_0x7f3e68||await getActiveFeatureId();if(!_0x3fce16)throw new Error(_0x2769ee[_0x3ee833(0x1d4)]);const _0x1c3aee=await getFeature(_0x3fce16);displayFeature(_0x1c3aee,_0x1c3aee['checklistItems']);}export async function featureResume(_0x51fe25){const _0x4f9588=_0x239627,_0xc53696={'QtvJe':function(_0x21fc14,_0xf58b4b){return _0x21fc14(_0xf58b4b);},'WNoqQ':function(_0xbe4de1){return _0xbe4de1();},'kVytg':function(_0x3ea08c,_0x5127be){return _0x3ea08c!==_0x5127be;},'QAldo':function(_0x18aa8d,_0x485235,_0x439296){return _0x18aa8d(_0x485235,_0x439296);},'zDERo':function(_0x24d57e,_0x191ece){return _0x24d57e(_0x191ece);},'ARyAH':function(_0x38c0f5,_0x240128,_0x2d9db7){return _0x38c0f5(_0x240128,_0x2d9db7);},'xshPo':'any','qNJdV':function(_0x5403ea,_0x47808d){return _0x5403ea===_0x47808d;},'uNtTB':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','GpYAC':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','ygPoJ':'list','VnJrx':'selected','Giggt':function(_0x68cc72,_0x3ac15a){return _0x68cc72(_0x3ac15a);},'lwdpw':function(_0x61e930,_0x3d93ac){return _0x61e930!==_0x3d93ac;},'osldB':function(_0x50cb0b,_0x4b6c8a,_0x2a6481){return _0x50cb0b(_0x4b6c8a,_0x2a6481);}};if(_0x51fe25){const _0x531063=await _0xc53696[_0x4f9588(0x13f)](getFeature,_0x51fe25);await setActiveFeatureId(_0x531063['id']);const _0x5b126d=_0xc53696[_0x4f9588(0x177)](getGitBranch);_0x5b126d&&_0xc53696[_0x4f9588(0x121)](_0x5b126d,_0x531063['gitBranch'])&&(await _0xc53696['QAldo'](updateFeature,_0x531063['id'],{'gitBranch':_0x5b126d}),console['log'](_0x4f9588(0x1b6)+_0x5b126d));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x531063['name']+'\x20('+_0x531063['id']+')'),await _0xc53696['zDERo'](tryStartCurrentSession,_0x531063['id']);const _0x2bf64c=process[_0x4f9588(0x130)][_0x4f9588(0x19d)];_0x2bf64c&&registerSession(_0x2bf64c,_0x531063['id']);_0xc53696[_0x4f9588(0x17b)](displayFeature,_0x531063,_0x531063['checklistItems']),await printFeedbackNudge(_0x531063['id']);return;}const _0x4c12b5=getGitRepoUrl(),_0x21e9e4=_0xc53696[_0x4f9588(0x177)](getGitBranch);if(!_0x4c12b5&&!_0x21e9e4)throw new Error(_0x4f9588(0x163));console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x4c12b5||_0xc53696[_0x4f9588(0x1f6)])+'\x20/\x20'+(_0x21e9e4||'any')+'...');const _0x4573e7=await listFeatures({'gitRepoUrl':_0x4c12b5,'gitBranch':_0x21e9e4}),_0x202780=_0x4573e7['items']['filter'](_0x32aff0=>!_0x32aff0['completedAt']);if(_0xc53696[_0x4f9588(0x135)](_0x202780[_0x4f9588(0x1e8)],0x0)){console['log'](_0xc53696[_0x4f9588(0x168)]),console[_0x4f9588(0x1e9)]('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x38d74b;if(_0x202780[_0x4f9588(0x1e8)]===0x1)_0x38d74b=_0x202780[0x0];else{const _0x406bbf=process['stdin'][_0x4f9588(0x147)]&&process[_0x4f9588(0x1e4)][_0x4f9588(0x147)];if(!_0x406bbf){console['log'](_0xc53696[_0x4f9588(0x125)]);for(const _0x1eb510 of _0x202780){console['log']('\x20\x20'+_0x1eb510['name']),console[_0x4f9588(0x1e9)]('\x20\x20\x20\x20\x20ID:\x20'+_0x1eb510['id']),_0x1eb510['stats']&&console[_0x4f9588(0x1e9)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1eb510['stats'])),_0x1eb510['gitBranch']&&console[_0x4f9588(0x1e9)](_0x4f9588(0x196)+_0x1eb510[_0x4f9588(0x126)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0xbce5b4}=await _0x3edf0f['prompt']([{'type':_0xc53696[_0x4f9588(0x17d)],'name':_0xc53696[_0x4f9588(0x1a5)],'message':_0x4f9588(0x1f0),'choices':_0x202780[_0x4f9588(0x157)](_0x22d70f=>({'name':_0x22d70f[_0x4f9588(0x1d5)]+'\x20('+_0x22d70f['id']+')','value':_0x22d70f['id']}))}]);_0x38d74b=_0x202780[_0x4f9588(0x1e3)](_0x3db035=>_0x3db035['id']===_0xbce5b4);}await _0xc53696['Giggt'](setActiveFeatureId,_0x38d74b['id']);_0x21e9e4&&_0xc53696['lwdpw'](_0x21e9e4,_0x38d74b['gitBranch'])&&(await _0xc53696['ARyAH'](updateFeature,_0x38d74b['id'],{'gitBranch':_0x21e9e4}),console['log'](_0x4f9588(0x1b6)+_0x21e9e4));console['log'](_0x4f9588(0x1b0)+_0x38d74b['name']+'\x20('+_0x38d74b['id']+')'),await _0xc53696['zDERo'](tryStartCurrentSession,_0x38d74b['id']);const _0x358200=await getFeature(_0x38d74b['id']),_0x1732a7=process[_0x4f9588(0x130)]['CLAUDE_SESSION_ID'];_0x1732a7&&_0xc53696[_0x4f9588(0x1dc)](registerSession,_0x1732a7,_0x358200['id']),displayFeature(_0x358200,_0x358200[_0x4f9588(0x1a3)]),await printFeedbackNudge(_0x358200['id']);}async function printFeedbackNudge(_0x4bd374){const _0x2c1d86=_0x239627,_0x258f30={'dysgP':function(_0x2069db,_0xbac467){return _0x2069db(_0xbac467);},'EgZpN':function(_0x29fd1e,_0x337d26){return _0x29fd1e>_0x337d26;},'yLeBf':_0x2c1d86(0x1ab)};try{const {items:_0x2f2d9f}=await _0x258f30[_0x2c1d86(0x146)](getActionItems,_0x4bd374);let _0x441806=0x0,_0x48e864=0x0;for(const _0x30d031 of _0x2f2d9f){const _0x35fec2=await getItemFeedback(_0x4bd374,_0x30d031['id']);_0x258f30['EgZpN'](_0x35fec2[_0x2c1d86(0x182)]['length'],0x0)&&(_0x441806+=_0x35fec2['unaddressedComments'][_0x2c1d86(0x1e8)],_0x48e864++);}_0x441806>0x0&&(console[_0x2c1d86(0x1e9)](_0x2c1d86(0x173)+_0x441806+_0x2c1d86(0x1f4)+_0x48e864+_0x2c1d86(0x12b)),console[_0x2c1d86(0x1e9)](_0x258f30['yLeBf']));}catch{}}async function tryStartCurrentSession(_0x3929fe){const _0x46e614=_0x239627,_0x20843e={'BmGzi':function(_0x5b9249,_0x617900,_0x96fdab){return _0x5b9249(_0x617900,_0x96fdab);}};try{const {sessions:_0x49eb73}=await listFeatureSessions(_0x3929fe),_0x1007a3=_0x49eb73[_0x46e614(0x1e3)](_0x4674b4=>_0x4674b4['status']===_0x46e614(0x152));_0x1007a3&&(await _0x20843e[_0x46e614(0x138)](startSession,_0x3929fe,_0x1007a3['id']),console[_0x46e614(0x1e9)](_0x46e614(0x14a)+_0x1007a3[_0x46e614(0x1cc)]));}catch{}}export async function featureReport(_0x26f8d5,_0x105495){const _0x5dcd1e=_0x239627,_0x4df402={'CvTEY':_0x5dcd1e(0x16c),'IvpUo':'\x0aGenerating\x20report...','uTkXz':function(_0x4f1d3f,_0xb945e6,_0x3ab8fb,_0x4fd4d9){return _0x4f1d3f(_0xb945e6,_0x3ab8fb,_0x4fd4d9);},'bprAX':function(_0x4e16a0){return _0x4e16a0();},'bOmOV':_0x5dcd1e(0x178),'YrLbl':function(_0x562c80,_0x46e3b0,_0x1f6278){return _0x562c80(_0x46e3b0,_0x1f6278);},'sqybr':function(_0x1ec7ba,_0x5038cb){return _0x1ec7ba(_0x5038cb);}},_0x177ebb=_0x26f8d5||await getActiveFeatureId();if(!_0x177ebb)throw new Error(_0x4df402[_0x5dcd1e(0x1dd)]);console['log'](_0x4df402[_0x5dcd1e(0x13b)]);const _0xa0cb9c=await getFeatureReportMarkdown(_0x177ebb,{'style':_0x105495['style']}),_0x3c2026=_0x105495['output']||_0x4df402['uTkXz'](join,_0x4df402[_0x5dcd1e(0x1f9)](getRangerDir),_0x4df402[_0x5dcd1e(0x1c1)],_0x177ebb+_0x5dcd1e(0x1b4)),_0x15864c=_0x4df402[_0x5dcd1e(0x1e6)](join,_0x3c2026,'..');!_0x4df402['sqybr'](existsSync,_0x15864c)&&await mkdir(_0x15864c,{'recursive':!![]}),await writeFile(_0x3c2026,_0xa0cb9c,_0x5dcd1e(0x1d6)),console['log'](_0x5dcd1e(0x16f)+_0x3c2026);}export async function featureReportPrDescription(_0xab2264,_0x39d210){const _0x49a7b6=_0x239627,_0x4da57e={'fIwIG':function(_0x29b38d){return _0x29b38d();},'HiGsq':_0x49a7b6(0x16c),'xVhst':function(_0x2bf2cf,_0x297850){return _0x2bf2cf(_0x297850);},'kPdoM':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','fKyUf':'\x0aAvailable\x20scenarios:','havOL':function(_0x2a078e,_0x37ab7e){return _0x2a078e<_0x37ab7e;},'NfvNa':function(_0x525088,_0x16cb19){return _0x525088===_0x16cb19;},'YSFFQ':function(_0x1bdd7e,_0x3a8397,_0x5bf3bf){return _0x1bdd7e(_0x3a8397,_0x5bf3bf);}},_0x2e4bd0=_0xab2264||await _0x4da57e['fIwIG'](getActiveFeatureId);if(!_0x2e4bd0)throw new Error(_0x4da57e[_0x49a7b6(0x1f7)]);const _0x170ca3=await _0x4da57e[_0x49a7b6(0x15b)](getFeature,_0x2e4bd0),_0x5b9f1b=_0x170ca3[_0x49a7b6(0x1a3)]||[],_0x3fe2e4=getCurrentSessionItems(_0x170ca3,_0x5b9f1b);_0x3fe2e4[_0x49a7b6(0x1e8)]===0x0&&(console[_0x49a7b6(0x1c3)](_0x4da57e[_0x49a7b6(0x172)]),process[_0x49a7b6(0x194)](0x1));const _0x2d4d11=_0x39d210['excludeScenarios']??[],_0x57f6d6=_0x2d4d11[_0x49a7b6(0x17e)](_0x297df7=>!Number[_0x49a7b6(0x19c)](_0x297df7)||_0x297df7<0x1||_0x297df7>_0x3fe2e4[_0x49a7b6(0x1e8)]);if(_0x57f6d6[_0x49a7b6(0x1e8)]>0x0){console[_0x49a7b6(0x1c3)](_0x49a7b6(0x12f)+_0x57f6d6['join'](',\x20')),console[_0x49a7b6(0x1e9)](_0x4da57e['fKyUf']);for(let _0x35b7df=0x0;_0x4da57e[_0x49a7b6(0x185)](_0x35b7df,_0x3fe2e4['length']);_0x35b7df++){console[_0x49a7b6(0x1e9)]('\x20\x20'+(_0x35b7df+0x1)+'.\x20'+_0x3fe2e4[_0x35b7df][_0x49a7b6(0x12e)]);}process['exit'](0x1);}const _0x515380=new Set(_0x2d4d11[_0x49a7b6(0x157)](_0x54409b=>_0x54409b-0x1)),_0x1614b8=_0x3fe2e4['filter']((_0x3f9e08,_0x2f5369)=>!_0x515380['has'](_0x2f5369));_0x4da57e['NfvNa'](_0x1614b8[_0x49a7b6(0x1e8)],0x0)&&(console[_0x49a7b6(0x1c3)]('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x49a7b6(0x194)](0x1));const _0x55f50e=await _0x4da57e['YSFFQ'](getFeatureReportMarkdown,_0x2e4bd0,{'itemIds':_0x1614b8[_0x49a7b6(0x157)](_0x50e52c=>_0x50e52c['id'])});process[_0x49a7b6(0x1e4)][_0x49a7b6(0x165)](_0x55f50e[_0x49a7b6(0x181)]()+'\x0a');}export async function featureConcludeSession(_0x554e00){const _0x1d5dd5=_0x239627,_0x2bfee1={'NFeHB':function(_0x2be70a){return _0x2be70a();},'mtnXh':_0x1d5dd5(0x148),'dEwSZ':_0x1d5dd5(0x1ad),'whjyC':_0x1d5dd5(0x164)},_0x521f9c=_0x554e00||await _0x2bfee1[_0x1d5dd5(0x198)](getActiveFeatureId);if(!_0x521f9c)throw new Error(_0x2bfee1[_0x1d5dd5(0x1eb)]);const _0x5e7587=await getFeature(_0x521f9c);if(!_0x5e7587[_0x1d5dd5(0x133)])throw new Error(_0x1d5dd5(0x176));const {sessions:_0x2ffe47}=await listFeatureSessions(_0x521f9c),_0xb5bd33=_0x2ffe47[_0x1d5dd5(0x1e3)](_0x53b019=>_0x53b019['id']===_0x5e7587['currentSessionId']);if(!_0xb5bd33)throw new Error(_0x1d5dd5(0x1b8));if(_0xb5bd33[_0x1d5dd5(0x16e)]===_0x2bfee1['dEwSZ']){console['log'](_0x1d5dd5(0x1bb));return;}if(_0xb5bd33[_0x1d5dd5(0x16e)]!==_0x2bfee1['whjyC'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0xb5bd33['status']);console[_0x1d5dd5(0x1e9)]('\x0aConcluding\x20session...'),await concludeSession(_0x521f9c,_0x5e7587[_0x1d5dd5(0x133)]),console[_0x1d5dd5(0x1e9)](_0x1d5dd5(0x15a)+_0xb5bd33['iteration']+_0x1d5dd5(0x140)),console['log'](_0x1d5dd5(0x1c8));}export async function featureSessions(_0x4aabfe){const _0x5d890b=_0x239627,_0x32216c={'QEeeW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','JTFCa':function(_0x8a0ff1,_0x14ed1f){return _0x8a0ff1(_0x14ed1f);},'fcYSU':function(_0xcefe1c,_0x2e0dea){return _0xcefe1c===_0x2e0dea;},'NqChM':function(_0x7a288f,_0x49ed79){return _0x7a288f===_0x49ed79;},'UbDjm':function(_0x384de9,_0x54b0d8){return _0x384de9===_0x54b0d8;}},_0x30f24f=_0x4aabfe||await getActiveFeatureId();if(!_0x30f24f)throw new Error(_0x32216c['QEeeW']);const _0x1a256c=await _0x32216c[_0x5d890b(0x1ef)](getFeature,_0x30f24f);console[_0x5d890b(0x1e9)](_0x5d890b(0x1c0)+_0x1a256c[_0x5d890b(0x1d5)]+'\x0a');const {sessions:_0x30ffb6}=await listFeatureSessions(_0x30f24f);if(_0x32216c[_0x5d890b(0x15c)](_0x30ffb6['length'],0x0)){console[_0x5d890b(0x1e9)]('No\x20sessions\x20found.');return;}for(const _0xd234d6 of _0x30ffb6){const _0x3a99d5=_0x32216c[_0x5d890b(0x16b)](_0xd234d6[_0x5d890b(0x16e)],'completed')?'✅':_0x32216c['UbDjm'](_0xd234d6['status'],_0x5d890b(0x164))?'🔄':'▶️';console[_0x5d890b(0x1e9)](_0x3a99d5+'\x20Session\x20'+_0xd234d6[_0x5d890b(0x1cc)]+'\x20('+_0xd234d6['id']+')'),console[_0x5d890b(0x1e9)](_0x5d890b(0x197)+_0xd234d6['status']),console['log'](_0x5d890b(0x1f2)+new Date(_0xd234d6[_0x5d890b(0x154)])[_0x5d890b(0x18a)]()),_0xd234d6['completedAt']&&console[_0x5d890b(0x1e9)](_0x5d890b(0x1cf)+new Date(_0xd234d6['completedAt'])['toLocaleString']()),console[_0x5d890b(0x1e9)]('');}}export async function featureAddScenario(_0x5635c0,_0x30fca1){const _0x5c0ac8=_0x239627,_0x2c216a={'NslBY':function(_0xc5fcf6){return _0xc5fcf6();},'gQfbs':function(_0x1c4ffc,_0x37944e,_0x4a56b8){return _0x1c4ffc(_0x37944e,_0x4a56b8);}},_0x1d9833=_0x30fca1||await _0x2c216a[_0x5c0ac8(0x1bd)](getActiveFeatureId);if(!_0x1d9833)throw new Error(_0x5c0ac8(0x148));const _0x2f3d95=await getFeature(_0x1d9833);if(_0x2f3d95[_0x5c0ac8(0x1af)]&&!_0x2f3d95[_0x5c0ac8(0x1af)][_0x5c0ac8(0x1e7)])throw new Error(_0x5c0ac8(0x1a2)+_0x2f3d95[_0x5c0ac8(0x160)]);await _0x2c216a['gQfbs'](createChecklistItem,_0x1d9833,_0x5635c0);const _0x29f14e=await getFeature(_0x1d9833);console[_0x5c0ac8(0x1e9)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x29f14e,_0x29f14e[_0x5c0ac8(0x1a3)]);}export async function featureEditScenario(_0x3972c8,_0x9d8ec3){const _0x5e2529=_0x239627,_0xd8ed={'EhmEO':function(_0x4f7475){return _0x4f7475();},'obArp':_0x5e2529(0x1bc),'mdGBu':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XwJmJ':function(_0x5df65d,_0xfe919f){return _0x5df65d===_0xfe919f;},'dCsfY':_0x5e2529(0x1be),'gvANe':function(_0x4985bf,_0x3c28b5){return _0x4985bf===_0x3c28b5;},'BsvqT':'\x0aAvailable\x20scenarios:','yHxbh':function(_0x422bd6,_0x56ddeb){return _0x422bd6<_0x56ddeb;},'LeRKm':function(_0x49926b,_0x1843d3){return _0x49926b-_0x1843d3;},'kyyFB':function(_0x2e8a69,_0x4b68ea){return _0x2e8a69>=_0x4b68ea;}},_0x43202b=_0x9d8ec3['id']||await _0xd8ed['EhmEO'](getActiveFeatureId);!_0x43202b&&(console['error'](_0xd8ed[_0x5e2529(0x1a4)]),console['error'](_0xd8ed[_0x5e2529(0x18b)]),process[_0x5e2529(0x194)](0x1));const _0xe32145=await getFeature(_0x43202b);_0xe32145[_0x5e2529(0x1af)]&&!_0xe32145['latestReview']['submittedAt']&&(console[_0x5e2529(0x1c3)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x5e2529(0x1c3)](_0x5e2529(0x1ce)),console['error']('\x20\x20'+_0xe32145['dashboardUrl']),process[_0x5e2529(0x194)](0x1));const _0x48e76b=_0xe32145[_0x5e2529(0x1a3)]||[];_0xd8ed['XwJmJ'](_0x48e76b[_0x5e2529(0x1e8)],0x0)&&(console[_0x5e2529(0x1c3)](_0xd8ed[_0x5e2529(0x1ca)]),process['exit'](0x1));if(_0xd8ed['gvANe'](_0x9d8ec3['scenario'],undefined)){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x5e2529(0x1e9)](_0xd8ed[_0x5e2529(0x1c9)]);for(let _0x46eb58=0x0;_0xd8ed['yHxbh'](_0x46eb58,_0x48e76b[_0x5e2529(0x1e8)]);_0x46eb58++){console['log']('\x20\x20'+(_0x46eb58+0x1)+'.\x20'+_0x48e76b[_0x46eb58]['description']);}process['exit'](0x1);}const _0x5382a5=_0xd8ed[_0x5e2529(0x139)](_0x9d8ec3['scenario'],0x1);if(_0xd8ed['yHxbh'](_0x5382a5,0x0)||_0xd8ed['kyyFB'](_0x5382a5,_0x48e76b['length'])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x9d8ec3['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x48e76b[_0x5e2529(0x1e8)]+_0x5e2529(0x1ee)),console['log'](_0xd8ed[_0x5e2529(0x1c9)]);for(let _0x4fea66=0x0;_0xd8ed[_0x5e2529(0x169)](_0x4fea66,_0x48e76b[_0x5e2529(0x1e8)]);_0x4fea66++){console['log']('\x20\x20'+(_0x4fea66+0x1)+'.\x20'+_0x48e76b[_0x4fea66]['description']);}process[_0x5e2529(0x194)](0x1);}const _0x59569f=_0x48e76b[_0x5382a5];await updateChecklistItem(_0x43202b,_0x59569f['id'],{'description':_0x3972c8});const _0x4e56ff=await getFeature(_0x43202b);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x4e56ff,_0x4e56ff[_0x5e2529(0x1a3)]);}async function downloadFeedbackImage(_0x5e88fa,_0x289c06){const _0x24f90a=_0x239627,_0x1143af={'TqSGq':function(_0x252d74,_0x1c461f,_0x1dd9a8){return _0x252d74(_0x1c461f,_0x1dd9a8);},'CuQss':function(_0x2511c5,_0x5e92d8){return _0x2511c5(_0x5e92d8);}};try{const _0x314e3f=join(getRangerDir(),_0x24f90a(0x13c));await _0x1143af['TqSGq'](mkdir,_0x314e3f,{'recursive':!![]});const _0x375e60=_0x1143af['TqSGq'](join,_0x314e3f,'comment_'+_0x289c06+'.png'),_0x34a32e=await _0x1143af['CuQss'](fetch,_0x5e88fa);if(!_0x34a32e['ok'])return null;const _0x340b0a=Buffer['from'](await _0x34a32e[_0x24f90a(0x1a9)]());return await writeFile(_0x375e60,_0x340b0a),_0x375e60;}catch{return null;}}export async function featureGetReview(_0x9e74a9){const _0x4fe55f=_0x239627,_0x3c66f7={'ASQES':function(_0x8faf7b){return _0x8faf7b();},'mhOGY':_0x4fe55f(0x148),'Gqlyv':function(_0xb5581,_0x4d9578){return _0xb5581(_0x4d9578);},'desjK':function(_0x368034,_0xa00706){return _0x368034<_0xa00706;},'pXhUB':function(_0xdfefa0,_0x5e5ebd){return _0xdfefa0>_0x5e5ebd;},'tqPUh':function(_0x4831e3,_0x51460d){return _0x4831e3+_0x51460d;},'DNasQ':_0x4fe55f(0x134),'QaYjh':'\x20>\x20','XpVny':function(_0x1befa8,_0x2a533e){return _0x1befa8===_0x2a533e;},'iUdaq':'point','Larxx':function(_0x2d6125,_0x2ec7e2){return _0x2d6125>=_0x2ec7e2;},'SLRoh':function(_0x1ca6c3,_0x15d93b){return _0x1ca6c3+_0x15d93b;}},_0x16d6ad=_0x9e74a9||await _0x3c66f7['ASQES'](getActiveFeatureId);if(!_0x16d6ad)throw new Error(_0x3c66f7[_0x4fe55f(0x183)]);const _0x22df5f=await _0x3c66f7[_0x4fe55f(0x12d)](getFeature,_0x16d6ad),{items:_0x1b5bf6}=await getActionItems(_0x16d6ad);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x22df5f['name']+'\x20('+_0x22df5f['id']+')\x0a');if(_0x1b5bf6[_0x4fe55f(0x1e8)]===0x0){console['log'](_0x4fe55f(0x1b3));return;}for(let _0x4b068e=0x0;_0x3c66f7[_0x4fe55f(0x1a0)](_0x4b068e,_0x1b5bf6['length']);_0x4b068e++){const _0x35d309=_0x1b5bf6[_0x4b068e],_0x1aa640=_0x3c66f7[_0x4fe55f(0x12c)](_0x35d309[_0x4fe55f(0x186)],0x1)?_0x4fe55f(0x1d7)+_0x35d309['version']+')':'',_0x45c095=await getItemFeedback(_0x16d6ad,_0x35d309['id']);if(_0x3c66f7[_0x4fe55f(0x12c)](_0x45c095[_0x4fe55f(0x182)]['length'],0x0)){console['log'](_0x4fe55f(0x1ae)+_0x3c66f7['tqPUh'](_0x4b068e,0x1)+_0x4fe55f(0x123)+_0x35d309['description']+'\x22'+_0x1aa640+'\x20—\x20'+_0x45c095[_0x4fe55f(0x182)][_0x4fe55f(0x1e8)]+_0x4fe55f(0x136));for(const _0x142119 of _0x45c095['unaddressedComments']){const _0x33d2f4=new Date(_0x142119[_0x4fe55f(0x154)])[_0x4fe55f(0x171)](_0x4fe55f(0x184),{'month':_0x3c66f7['DNasQ'],'day':_0x4fe55f(0x188)}),_0x525a43=_0x142119['authorName']||_0x142119[_0x4fe55f(0x1a6)]||'Unknown';console['log']('\x20\x20💬\x20'+_0x525a43+'\x20('+_0x33d2f4+'):\x20\x22'+_0x142119['content']+'\x22');if(_0x142119[_0x4fe55f(0x1d8)]){const _0xd3f608=await downloadFeedbackImage(_0x142119[_0x4fe55f(0x1d8)],_0x142119['id']);_0xd3f608&&console['log'](_0x4fe55f(0x1c4)+_0xd3f608);}if(_0x142119[_0x4fe55f(0x1cb)]){const _0x46664a=_0x142119['domRef'][_0x4fe55f(0x166)]['split'](_0x3c66f7['QaYjh'])['pop']()?.[_0x4fe55f(0x161)](':')[0x0]||_0x4fe55f(0x18c),_0x3028fc=_0x142119[_0x4fe55f(0x1cb)][_0x4fe55f(0x1ac)]?'\x20\x22'+_0x142119['domRef']['textContent'][_0x4fe55f(0x1a8)](0x0,0x3c)+'\x22':'';console[_0x4fe55f(0x1e9)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x46664a+'>'+_0x3028fc),console[_0x4fe55f(0x1e9)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x142119[_0x4fe55f(0x1cb)]['selector']);}else{if(_0x142119['spatial']){const _0x48af5f=_0x142119[_0x4fe55f(0x16d)]['coordinates'];_0x3c66f7[_0x4fe55f(0x1d1)](_0x142119['spatial'][_0x4fe55f(0x1e2)],_0x3c66f7['iUdaq'])&&_0x3c66f7[_0x4fe55f(0x14d)](_0x48af5f[_0x4fe55f(0x1e8)],0x2)?console[_0x4fe55f(0x1e9)](_0x4fe55f(0x19e)+_0x48af5f[0x0]['toFixed'](0x2)+',\x20'+_0x48af5f[0x1]['toFixed'](0x2)+')'):console[_0x4fe55f(0x1e9)](_0x4fe55f(0x153)+_0x142119[_0x4fe55f(0x16d)][_0x4fe55f(0x1e2)]+_0x4fe55f(0x1e5)+_0x48af5f[_0x4fe55f(0x157)](_0x452dd4=>_0x452dd4['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x45c095[_0x4fe55f(0x1c2)]){console[_0x4fe55f(0x1e9)]('\x20\x20Expected\x20flow:');for(const _0x24ffa6 of _0x45c095['canonicalFlow']['split']('\x0a')){console[_0x4fe55f(0x1e9)](_0x4fe55f(0x1d0)+_0x24ffa6);}}}else console[_0x4fe55f(0x1e9)](_0x4fe55f(0x1ae)+_0x3c66f7['SLRoh'](_0x4b068e,0x1)+':\x20\x22'+_0x35d309[_0x4fe55f(0x12e)]+'\x22'+_0x1aa640+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x4fe55f(0x1e9)]('');}}export async function featureDelete(_0x438b08){const _0xe459c=_0x239627,_0x40b38b={'olWZc':function(_0x43901c){return _0x43901c();},'VgAfb':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','FgWOz':function(_0x102edc,_0x1959ba){return _0x102edc(_0x1959ba);},'SyPdM':function(_0x85a5b,_0x578be4){return _0x85a5b+_0x578be4;},'jQIEy':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0xe8e7cd=_0x438b08||await _0x40b38b[_0xe459c(0x150)](getActiveFeatureId);if(!_0xe8e7cd)throw new Error(_0x40b38b['VgAfb']);const _0x4aab85=await _0x40b38b['FgWOz'](getFeature,_0xe8e7cd);await softDeleteFeature(_0xe8e7cd),console[_0xe459c(0x1e9)](_0xe459c(0x1f5)+_0x4aab85['name']+'\x20('+_0xe8e7cd+')'),console[_0xe459c(0x1e9)](_0x40b38b['SyPdM'](_0x40b38b[_0xe459c(0x129)],_0xe8e7cd));}export async function featureRestore(_0xba85bb){const _0x1cf007=_0x239627,_0x3d2694={'DRXjA':function(_0x523742,_0x5c2628){return _0x523742(_0x5c2628);},'FTKdQ':function(_0x450809,_0x4241c1){return _0x450809(_0x4241c1);},'oJUkH':function(_0x45584a,_0x1b43c7,_0xb5c174){return _0x45584a(_0x1b43c7,_0xb5c174);}};await _0x3d2694[_0x1cf007(0x187)](restoreFeature,_0xba85bb);const _0x454548=await _0x3d2694[_0x1cf007(0x1c5)](getFeature,_0xba85bb);console[_0x1cf007(0x1e9)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x454548[_0x1cf007(0x1d5)]+'\x20('+_0xba85bb+')'),_0x3d2694[_0x1cf007(0x179)](displayFeature,_0x454548,_0x454548[_0x1cf007(0x1a3)]);}
1
+ const _0x2f0c7d=_0x12a8;(function(_0x47b112,_0x299fcc){const _0x599db9=_0x12a8,_0x47ada7=_0x47b112();while(!![]){try{const _0x1757f6=-parseInt(_0x599db9(0xfa))/0x1*(-parseInt(_0x599db9(0x137))/0x2)+-parseInt(_0x599db9(0x190))/0x3+-parseInt(_0x599db9(0x131))/0x4*(parseInt(_0x599db9(0x125))/0x5)+parseInt(_0x599db9(0x12e))/0x6*(parseInt(_0x599db9(0xea))/0x7)+parseInt(_0x599db9(0x18e))/0x8+parseInt(_0x599db9(0x10c))/0x9*(parseInt(_0x599db9(0xd5))/0xa)+-parseInt(_0x599db9(0x177))/0xb;if(_0x1757f6===_0x299fcc)break;else _0x47ada7['push'](_0x47ada7['shift']());}catch(_0x4edf74){_0x47ada7['push'](_0x47ada7['shift']());}}}(_0x5917,0x9c6a1));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x24aae8 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x23ee6c=>'\x1b[1m'+_0x23ee6c+_0x2f0c7d(0x124);function getGitRepoUrl(){const _0x126701=_0x2f0c7d,_0x10e696={'ybPLl':function(_0x19ce02,_0x4a16a6,_0x16bf7b){return _0x19ce02(_0x4a16a6,_0x16bf7b);},'qCRZm':'git\x20remote\x20get-url\x20origin','wqnsF':'pipe'};try{const _0x46c02d=_0x10e696['ybPLl'](execSync,_0x10e696[_0x126701(0x12b)],{'encoding':'utf-8','stdio':[_0x10e696['wqnsF'],'pipe','pipe']})['trim']();return _0x46c02d[_0x126701(0x140)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x126701(0x13f))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x3b7e62=_0x2f0c7d,_0x1cd196={'tKpUp':_0x3b7e62(0x117),'yQGFx':_0x3b7e62(0x123)};try{return execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x1cd196[_0x3b7e62(0x168)],'stdio':[_0x1cd196['yQGFx'],_0x1cd196[_0x3b7e62(0x151)],'pipe']})[_0x3b7e62(0xff)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x197c9b=_0x2f0c7d,_0x36c4a2={'zEscz':function(_0xe523b0,_0x311650,_0xa5643){return _0xe523b0(_0x311650,_0xa5643);},'iQNdQ':function(_0x47fd60,_0x4c0a79){return _0x47fd60(_0x4c0a79);}},_0x6b9efa=_0x36c4a2[_0x197c9b(0x11a)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x36c4a2['iQNdQ'](existsSync,_0x6b9efa))return null;try{const _0x4294fd=await _0x36c4a2['zEscz'](readFile,_0x6b9efa,_0x197c9b(0x117));return _0x4294fd[_0x197c9b(0xff)]()||null;}catch{return null;}}function _0x12a8(_0x46fa5c,_0x2b7118){_0x46fa5c=_0x46fa5c-0xc5;const _0x5917c4=_0x5917();let _0x12a858=_0x5917c4[_0x46fa5c];return _0x12a858;}async function setActiveFeatureId(_0x212d36){const _0x4c9d0b=_0x2f0c7d,_0x5e87e2={'LpPif':function(_0x5a1177){return _0x5a1177();},'WCKen':function(_0xaf23ce,_0x155800,_0x5ed765){return _0xaf23ce(_0x155800,_0x5ed765);},'qYRCe':function(_0x50e22c,_0x43cd51){return _0x50e22c(_0x43cd51);},'RUjCs':_0x4c9d0b(0x117)},_0x4e0235=_0x5e87e2['LpPif'](getRangerDir),_0x4dc247=_0x5e87e2['WCKen'](join,_0x4e0235,ACTIVE_FEATURE_FILE);!_0x5e87e2[_0x4c9d0b(0xda)](existsSync,_0x4e0235)&&await mkdir(_0x4e0235,{'recursive':!![]}),await writeFile(_0x4dc247,_0x212d36,_0x5e87e2['RUjCs']);}function getProgressDisplay(_0x24d513){const _0x4a6794=_0x2f0c7d,_0x375c8b={'LcmjG':function(_0x46df97,_0x157b0e){return _0x46df97+_0x157b0e;},'zfzhL':function(_0xac84aa,_0x57e087){return _0xac84aa+_0x57e087;},'nsgtC':function(_0x155305,_0x23b3b5){return _0x155305+_0x23b3b5;},'xTYNi':function(_0x3ee5fa,_0x26530f){return _0x3ee5fa-_0x26530f;},'vRtfZ':function(_0x51323c,_0x45fc2d){return _0x51323c>_0x45fc2d;},'dfGEo':function(_0x2b87a4,_0x1f62f3){return _0x2b87a4>_0x1f62f3;}},_0x544022=_0x24d513['verifiedItems']||0x0,_0x18b572=_0x24d513[_0x4a6794(0x10b)]||0x0,_0x55c4db=_0x24d513['blockedItems']||0x0,_0x5a7478=_0x24d513['incompleteItems']||0x0,_0x35bcdd=_0x24d513['pendingItems']||0x0,_0x56e0e7=_0x375c8b['LcmjG'](_0x375c8b[_0x4a6794(0x10f)](_0x375c8b[_0x4a6794(0x181)](_0x375c8b[_0x4a6794(0xd8)](_0x544022,_0x18b572),_0x55c4db),_0x5a7478),_0x35bcdd);if(_0x56e0e7===0x0)return'-';const _0x4d62bb=0xa,_0x8d9180=Math[_0x4a6794(0x18d)](_0x544022/_0x56e0e7*_0x4d62bb),_0x2262b2='█'['repeat'](_0x8d9180)+'░'[_0x4a6794(0x132)](_0x375c8b[_0x4a6794(0x18c)](_0x4d62bb,_0x8d9180)),_0x5f4ecc=[];if(_0x375c8b[_0x4a6794(0x153)](_0x55c4db,0x0))_0x5f4ecc['push'](_0x55c4db+_0x4a6794(0xe4));if(_0x375c8b['dfGEo'](_0x5a7478,0x0))_0x5f4ecc[_0x4a6794(0x11d)](_0x5a7478+'\x20incomplete');if(_0x18b572>0x0)_0x5f4ecc[_0x4a6794(0x11d)](_0x18b572+_0x4a6794(0xf8));const _0x7fd044=_0x375c8b[_0x4a6794(0xfb)](_0x5f4ecc[_0x4a6794(0xcd)],0x0)?'\x20('+_0x5f4ecc['join'](',\x20')+')':'';return _0x2262b2+'\x20'+_0x544022+'/'+_0x56e0e7+'\x20verified'+_0x7fd044;}function getCurrentSessionItems(_0x2b41ee,_0x423d9a){const _0x3094ba=_0x2f0c7d;if(!_0x2b41ee['currentSessionId'])return _0x423d9a[_0x3094ba(0x16f)](_0x25fb1b=>!_0x25fb1b['sessionId'])[_0x3094ba(0xfe)]((_0x1a268c,_0x211443)=>_0x1a268c[_0x3094ba(0x10d)]-_0x211443[_0x3094ba(0x10d)]);return _0x423d9a['filter'](_0x766bef=>_0x766bef['sessionId']===_0x2b41ee[_0x3094ba(0xe3)]||!_0x766bef['sessionId'])[_0x3094ba(0xfe)]((_0x9512f7,_0x441270)=>_0x9512f7['position']-_0x441270[_0x3094ba(0x10d)]);}function displayFeature(_0x8f3642,_0xef9356){const _0x1d4ee3=_0x2f0c7d,_0x11eb0b={'hVwiM':function(_0x369514,_0x24608f){return _0x369514(_0x24608f);},'pbOTp':function(_0x2d8f9a,_0xc81a4f){return _0x2d8f9a>_0xc81a4f;},'CzNiR':function(_0x527acb,_0x37f148){return _0x527acb<_0x37f148;},'YKDvU':function(_0x4dc30f,_0x546814){return _0x4dc30f===_0x546814;},'cWIDJ':'approved','muUKs':function(_0x2038d9,_0x433ae7){return _0x2038d9===_0x433ae7;},'PwPjy':'verified','vMIoa':function(_0x49a276,_0x3f965e){return _0x49a276===_0x3f965e;},'mMDWH':_0x1d4ee3(0x166),'hObLo':function(_0x18550d,_0x3528ae){return _0x18550d>_0x3528ae;},'Fazah':function(_0x2227b0,_0x1f341d){return _0x2227b0!==_0x1f341d;},'FAsoF':function(_0x535f6f,_0x6dcd1a){return _0x535f6f+_0x6dcd1a;},'ARoDf':function(_0x50e7d3,_0x493304){return _0x50e7d3===_0x493304;},'YSwQF':'closed'};console['log']('\x0a'+_0x8f3642[_0x1d4ee3(0x17f)]+'\x20('+_0x8f3642['dashboardUrl']+')');_0x8f3642['stats']&&console['log'](_0x1d4ee3(0xcc)+_0x11eb0b[_0x1d4ee3(0x144)](getProgressDisplay,_0x8f3642[_0x1d4ee3(0x118)]));_0x8f3642[_0x1d4ee3(0x18a)]&&console['log']('\x20\x20\x20Description:\x20'+_0x8f3642['description']);_0x8f3642[_0x1d4ee3(0xc7)]&&console['log'](_0x1d4ee3(0x14c)+_0x8f3642['gitRepoUrl']);_0x8f3642[_0x1d4ee3(0x139)]&&console[_0x1d4ee3(0x152)](_0x1d4ee3(0xc8)+_0x8f3642[_0x1d4ee3(0x139)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x8f3642['createdAt'])[_0x1d4ee3(0x113)]());_0x8f3642['completedAt']&&console[_0x1d4ee3(0x152)]('\x20\x20\x20Completed:\x20'+new Date(_0x8f3642['completedAt'])['toLocaleString']());if(_0xef9356&&_0x11eb0b['pbOTp'](_0xef9356[_0x1d4ee3(0xcd)],0x0)){console[_0x1d4ee3(0x152)]('\x0a\x20\x20\x20Scenarios:');for(let _0x3d145e=0x0;_0x11eb0b[_0x1d4ee3(0xcb)](_0x3d145e,_0xef9356['length']);_0x3d145e++){const _0x7f4d7c=_0xef9356[_0x3d145e];let _0x418e07;if(_0x11eb0b[_0x1d4ee3(0x127)](_0x7f4d7c[_0x1d4ee3(0x14d)],'closed')&&_0x11eb0b[_0x1d4ee3(0x127)](_0x7f4d7c['terminalReason'],_0x11eb0b['cWIDJ']))_0x418e07='✅';else{if(_0x11eb0b['muUKs'](_0x7f4d7c['status'],_0x11eb0b['PwPjy']))_0x418e07='🟢';else{if(_0x7f4d7c['status']==='incomplete')_0x418e07='🟠';else{if(_0x11eb0b[_0x1d4ee3(0x120)](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x11eb0b['mMDWH']))_0x418e07='🛑';else{if(_0x7f4d7c[_0x1d4ee3(0x14d)]==='closed')_0x418e07='⛔';else _0x7f4d7c['status']==='verification_in_progress'?_0x418e07='⏳':_0x418e07='⬜';}}}}const _0x1b7070=_0x11eb0b[_0x1d4ee3(0xd1)](_0x7f4d7c['version'],0x1)?_0x1d4ee3(0x170)+_0x7f4d7c['version']+')':'',_0x3f8063=_0x11eb0b[_0x1d4ee3(0x112)](_0x7f4d7c['version'],0x1)&&_0x7f4d7c['parentItemId']&&_0x11eb0b['Fazah'](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x1d4ee3(0xdb))&&_0x7f4d7c['status']!=='verified'?_0x1d4ee3(0x14e):'';console[_0x1d4ee3(0x152)](_0x1d4ee3(0x157)+_0x11eb0b['FAsoF'](_0x3d145e,0x1)+'.\x20'+_0x418e07+'\x20'+_0x7f4d7c[_0x1d4ee3(0x18a)]+_0x1b7070+_0x3f8063);_0x11eb0b[_0x1d4ee3(0xce)](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x1d4ee3(0x166))&&_0x7f4d7c[_0x1d4ee3(0x138)]&&console['log'](_0x1d4ee3(0x178)+_0x7f4d7c[_0x1d4ee3(0x138)]);_0x7f4d7c['status']===_0x1d4ee3(0x193)&&_0x7f4d7c['incompleteReason']&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x7f4d7c[_0x1d4ee3(0xe6)]);if(_0x11eb0b['ARoDf'](_0x7f4d7c[_0x1d4ee3(0x14d)],_0x11eb0b['YSwQF'])&&_0x7f4d7c[_0x1d4ee3(0x12f)]===_0x11eb0b['cWIDJ'])console['log'](_0x1d4ee3(0x14b));else _0x7f4d7c[_0x1d4ee3(0x14d)]===_0x11eb0b['YSwQF']&&_0x7f4d7c['canceledReason']&&console['log'](_0x1d4ee3(0x158)+_0x7f4d7c['canceledReason']);}}}export async function featureCreate(_0xd2aad9,_0x3cd9ff){const _0x4ebf6a=_0x2f0c7d,_0x29bf27={'SGScO':function(_0x5d62c7){return _0x5d62c7();},'NCjoF':function(_0x286ca1,_0x520f06){return _0x286ca1(_0x520f06);},'OfVxC':function(_0x442b73,_0x316d7f,_0x36f127){return _0x442b73(_0x316d7f,_0x36f127);}},{envNames:_0x5e5fca}=await _0x29bf27[_0x4ebf6a(0x159)](getEnvNames);_0x5e5fca['length']===0x0&&console['warn']('\x0a'+_0x29bf27['NCjoF'](formatProfileRequiredMessage,_0x3a3c92=>bold(_0x3a3c92)));const _0x16a9ed=_0x3cd9ff['scenarios']?_0x3cd9ff['scenarios'][_0x4ebf6a(0x187)](_0x262ff1=>_0x262ff1['trim']()):[],_0x2f46e0=_0x29bf27[_0x4ebf6a(0x159)](getGitRepoUrl),_0xe697a9=getGitBranch();console['log'](_0x4ebf6a(0xf1));const _0x8db63e=await createFeature({'name':_0xd2aad9,'description':_0x3cd9ff['description'],'checklist':_0x16a9ed,'gitRepoUrl':_0x2f46e0,'gitBranch':_0xe697a9});await _0x29bf27['NCjoF'](setActiveFeatureId,_0x8db63e['id']),await tryStartCurrentSession(_0x8db63e['id']);const _0x2e14ae=process['env']['CLAUDE_SESSION_ID'];_0x2e14ae&&registerSession(_0x2e14ae,_0x8db63e['id']),console[_0x4ebf6a(0x152)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x8db63e['id']),_0x29bf27['OfVxC'](displayFeature,_0x8db63e,_0x8db63e['checklistItems']),console[_0x4ebf6a(0x152)](_0x4ebf6a(0x101));}export async function featureList(_0x51648f){const _0x1b25ae=_0x2f0c7d,_0x3c35a4={'JXrCw':function(_0x3ddd25,_0xcac36f){return _0x3ddd25(_0xcac36f);},'AKqcI':'\x0aNo\x20feature\x20reviews\x20found.','ETajM':function(_0x2034a3,_0x1980f5){return _0x2034a3(_0x1980f5);},'PRJTe':function(_0x3a3438,_0x26048d){return _0x3a3438+_0x26048d;},'skIXi':function(_0x21ee7b,_0x2f839c){return _0x21ee7b!==_0x2f839c;},'LoXpt':'\x20--include-deleted'},_0x3620d7={'limit':_0x51648f[_0x1b25ae(0x10a)]??0xa,'offset':_0x51648f['offset']??0x0,'includeDeleted':_0x51648f['includeDeleted']};_0x51648f[_0x1b25ae(0x194)]&&(_0x3620d7['gitRepoUrl']=getGitRepoUrl(),_0x3620d7['gitBranch']=getGitBranch());const _0x14b213=await _0x3c35a4[_0x1b25ae(0x162)](listFeatures,_0x3620d7);if(_0x14b213['items']['length']===0x0){console[_0x1b25ae(0x152)](_0x3c35a4['AKqcI']);return;}const _0x403d1f=_0x14b213['totalCount']>_0x14b213['items']['length']?'Showing\x20'+_0x14b213['items'][_0x1b25ae(0xcd)]+_0x1b25ae(0x156)+_0x14b213['totalCount']:_0x14b213['totalCount']+_0x1b25ae(0x135);console[_0x1b25ae(0x152)]('\x0a'+_0x403d1f+':\x0a');for(const _0x4d89ef of _0x14b213[_0x1b25ae(0x14a)]){const _0x87ebe7='3|1|2|4|0|5'[_0x1b25ae(0xd7)]('|');let _0x2f6e1a=0x0;while(!![]){switch(_0x87ebe7[_0x2f6e1a++]){case'0':console['log'](_0x1b25ae(0x111)+new Date(_0x4d89ef[_0x1b25ae(0xe9)])[_0x1b25ae(0xf5)]());continue;case'1':console['log'](_0x1b25ae(0xec)+_0x4d89ef['id']);continue;case'2':_0x4d89ef[_0x1b25ae(0x118)]&&console['log'](_0x1b25ae(0xcc)+_0x3c35a4['ETajM'](getProgressDisplay,_0x4d89ef[_0x1b25ae(0x118)]));continue;case'3':console['log'](''+_0x4d89ef['name']);continue;case'4':_0x4d89ef[_0x1b25ae(0x139)]&&console[_0x1b25ae(0x152)](_0x1b25ae(0xc8)+_0x4d89ef[_0x1b25ae(0x139)]);continue;case'5':console[_0x1b25ae(0x152)]('');continue;}break;}}const _0x363ef1=_0x3620d7[_0x1b25ae(0x10a)]??0xa,_0x4a123c=_0x3c35a4['PRJTe'](_0x3620d7[_0x1b25ae(0x102)]??0x0,_0x14b213[_0x1b25ae(0x14a)][_0x1b25ae(0xcd)]);if(_0x4a123c<_0x14b213[_0x1b25ae(0x11b)]){const _0x47cd8b=_0x3c35a4[_0x1b25ae(0x12a)](_0x363ef1,0xa)?'\x20--limit\x20'+_0x363ef1:'',_0x721a0f=_0x51648f[_0x1b25ae(0x194)]?_0x1b25ae(0x179):'',_0xc0a582=_0x51648f[_0x1b25ae(0xeb)]?_0x3c35a4['LoXpt']:'';console['log'](_0x1b25ae(0x122)+_0x4a123c+_0x47cd8b+_0x721a0f+_0xc0a582);}}export async function featureShow(_0x251b4e){const _0x4af10e=_0x2f0c7d,_0xde8bab={'PjmHk':_0x4af10e(0x173),'HLWoP':function(_0x22433c,_0x4048a9){return _0x22433c(_0x4048a9);}},_0x3515a6=_0x251b4e||await getActiveFeatureId();if(!_0x3515a6)throw new Error(_0xde8bab[_0x4af10e(0x141)]);const _0x43e1b6=await _0xde8bab['HLWoP'](getFeature,_0x3515a6);displayFeature(_0x43e1b6,_0x43e1b6['checklistItems']);}export async function featureResume(_0x2ee4e8){const _0x223520=_0x2f0c7d,_0x36bdf5={'hpfyS':function(_0x541fe9,_0x4b7950){return _0x541fe9(_0x4b7950);},'EWmcP':function(_0x577c54){return _0x577c54();},'LpJny':function(_0xb45bf8,_0x54a21a,_0x259653){return _0xb45bf8(_0x54a21a,_0x259653);},'WeXdU':function(_0x3ec664,_0x160578){return _0x3ec664(_0x160578);},'fJYBX':function(_0x4253a9,_0x293883){return _0x4253a9&&_0x293883;},'xbxOB':function(_0x5ed56c,_0x1bd30e){return _0x5ed56c||_0x1bd30e;},'zGRhD':'any','eyUGE':function(_0x1dd0cf,_0x24f1ee){return _0x1dd0cf===_0x24f1ee;},'IhqeM':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','iShyO':_0x223520(0xcf),'NEvby':'selected','yTbUF':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','kXhLX':function(_0x2c8e9c,_0xe6d6f9,_0x2b121b){return _0x2c8e9c(_0xe6d6f9,_0x2b121b);}};if(_0x2ee4e8){const _0xb841df=await getFeature(_0x2ee4e8);await _0x36bdf5['hpfyS'](setActiveFeatureId,_0xb841df['id']);const _0x381f70=_0x36bdf5['EWmcP'](getGitBranch);_0x381f70&&_0x381f70!==_0xb841df[_0x223520(0x139)]&&(await _0x36bdf5[_0x223520(0x191)](updateFeature,_0xb841df['id'],{'gitBranch':_0x381f70}),console[_0x223520(0x152)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x381f70));console[_0x223520(0x152)](_0x223520(0xf4)+_0xb841df[_0x223520(0x17f)]+'\x20('+_0xb841df['id']+')'),await tryStartCurrentSession(_0xb841df['id']);const _0x59d62c=process['env']['CLAUDE_SESSION_ID'];_0x59d62c&&registerSession(_0x59d62c,_0xb841df['id']);_0x36bdf5[_0x223520(0x191)](displayFeature,_0xb841df,_0xb841df['checklistItems']),await _0x36bdf5['WeXdU'](printFeedbackNudge,_0xb841df['id']);return;}const _0xf68e49=getGitRepoUrl(),_0x56a882=_0x36bdf5['EWmcP'](getGitBranch);if(_0x36bdf5[_0x223520(0x103)](!_0xf68e49,!_0x56a882))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x36bdf5[_0x223520(0x180)](_0xf68e49,_0x36bdf5[_0x223520(0x182)])+_0x223520(0x174)+(_0x56a882||_0x223520(0x18b))+_0x223520(0x13c));const _0x473af9=await listFeatures({'gitRepoUrl':_0xf68e49,'gitBranch':_0x56a882}),_0x1cb230=_0x473af9['items'][_0x223520(0x16f)](_0x177e80=>!_0x177e80[_0x223520(0x116)]);if(_0x36bdf5[_0x223520(0xd9)](_0x1cb230['length'],0x0)){console[_0x223520(0x152)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log'](_0x36bdf5[_0x223520(0x136)]);return;}let _0x35215a;if(_0x1cb230[_0x223520(0xcd)]===0x1)_0x35215a=_0x1cb230[0x0];else{const _0x5279f9=process[_0x223520(0x13b)][_0x223520(0xc5)]&&process['stdout']['isTTY'];if(!_0x5279f9){console['log'](_0x223520(0x110));for(const _0xfe694d of _0x1cb230){console['log']('\x20\x20'+_0xfe694d['name']),console[_0x223520(0x152)]('\x20\x20\x20\x20\x20ID:\x20'+_0xfe694d['id']),_0xfe694d[_0x223520(0x118)]&&console[_0x223520(0x152)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0xfe694d['stats'])),_0xfe694d['gitBranch']&&console['log'](_0x223520(0x186)+_0xfe694d[_0x223520(0x139)]);}throw new Error(_0x223520(0xef));}const {selected:_0x3d52d8}=await _0x24aae8['prompt']([{'type':_0x36bdf5[_0x223520(0xe2)],'name':_0x36bdf5[_0x223520(0xd0)],'message':_0x36bdf5['yTbUF'],'choices':_0x1cb230['map'](_0x4920ad=>({'name':_0x4920ad['name']+'\x20('+_0x4920ad['id']+')','value':_0x4920ad['id']}))}]);_0x35215a=_0x1cb230[_0x223520(0xed)](_0x2257cb=>_0x2257cb['id']===_0x3d52d8);}await setActiveFeatureId(_0x35215a['id']);_0x56a882&&_0x56a882!==_0x35215a['gitBranch']&&(await updateFeature(_0x35215a['id'],{'gitBranch':_0x56a882}),console[_0x223520(0x152)](_0x223520(0xdf)+_0x56a882));console['log'](_0x223520(0xf4)+_0x35215a['name']+'\x20('+_0x35215a['id']+')'),await tryStartCurrentSession(_0x35215a['id']);const _0x403f5c=await getFeature(_0x35215a['id']),_0x3a071b=process['env']['CLAUDE_SESSION_ID'];_0x3a071b&&_0x36bdf5['kXhLX'](registerSession,_0x3a071b,_0x403f5c['id']),displayFeature(_0x403f5c,_0x403f5c['checklistItems']),await _0x36bdf5[_0x223520(0xfd)](printFeedbackNudge,_0x403f5c['id']);}async function printFeedbackNudge(_0x4187ca){const _0x38cbb9=_0x2f0c7d,_0x3dae52={'cNrKg':function(_0x14a52c,_0x49f3a4){return _0x14a52c(_0x49f3a4);}};try{const {items:_0x92053f}=await _0x3dae52[_0x38cbb9(0x184)](getActionItems,_0x4187ca);let _0x452396=0x0,_0xc89d42=0x0;for(const _0x36ab31 of _0x92053f){const _0x250ff3=await getItemFeedback(_0x4187ca,_0x36ab31['id']);_0x250ff3[_0x38cbb9(0x15c)][_0x38cbb9(0xcd)]>0x0&&(_0x452396+=_0x250ff3[_0x38cbb9(0x15c)][_0x38cbb9(0xcd)],_0xc89d42++);}_0x452396>0x0&&(console[_0x38cbb9(0x152)](_0x38cbb9(0x100)+_0x452396+_0x38cbb9(0x142)+_0xc89d42+_0x38cbb9(0x16d)),console[_0x38cbb9(0x152)](_0x38cbb9(0xfc)));}catch{}}async function tryStartCurrentSession(_0x1e716a){const _0x189638=_0x2f0c7d,_0x345f00={'NsfCw':function(_0x42c5dc,_0x132444){return _0x42c5dc(_0x132444);},'MHCfJ':function(_0x17c7bb,_0x5ad5f6,_0x33afaf){return _0x17c7bb(_0x5ad5f6,_0x33afaf);}};try{const {sessions:_0x2fff00}=await _0x345f00['NsfCw'](listFeatureSessions,_0x1e716a),_0x141627=_0x2fff00['find'](_0x5eb6cd=>_0x5eb6cd[_0x189638(0x14d)]==='ready');_0x141627&&(await _0x345f00['MHCfJ'](startSession,_0x1e716a,_0x141627['id']),console[_0x189638(0x152)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x141627[_0x189638(0xf9)]));}catch{}}export async function featureReport(_0x43e394,_0xf61936){const _0xc564e4=_0x2f0c7d,_0x3e0662={'tKddr':_0xc564e4(0x16a),'zaByB':function(_0x164554,_0x589c8b,_0x54e12f,_0x1ca26f){return _0x164554(_0x589c8b,_0x54e12f,_0x1ca26f);},'FmRqy':function(_0x41f068){return _0x41f068();},'dJOCv':function(_0x14ed35,_0x973abe){return _0x14ed35(_0x973abe);},'EcSND':'utf-8'},_0xd2883=_0x43e394||await getActiveFeatureId();if(!_0xd2883)throw new Error(_0xc564e4(0xf0));console[_0xc564e4(0x152)](_0x3e0662['tKddr']);const _0x576301=await getFeatureReportMarkdown(_0xd2883,{'style':_0xf61936['style']}),_0x418437=_0xf61936[_0xc564e4(0x14f)]||_0x3e0662['zaByB'](join,_0x3e0662[_0xc564e4(0x13d)](getRangerDir),_0xc564e4(0x109),_0xd2883+'.md'),_0x373b4c=join(_0x418437,'..');!_0x3e0662['dJOCv'](existsSync,_0x373b4c)&&await mkdir(_0x373b4c,{'recursive':!![]}),await writeFile(_0x418437,_0x576301,_0x3e0662['EcSND']),console[_0xc564e4(0x152)](_0xc564e4(0x11f)+_0x418437);}export async function featureReportPrDescription(_0x5d5989,_0x381d5d){const _0x1b1e41=_0x2f0c7d,_0x7abc08={'YGAcQ':function(_0x59d113){return _0x59d113();},'SYVEN':_0x1b1e41(0x104),'MmlFh':function(_0x317529,_0x5c426d){return _0x317529>_0x5c426d;},'MFsUC':_0x1b1e41(0x121),'LnURc':function(_0x4249b0,_0x2d5b59){return _0x4249b0===_0x2d5b59;},'hUfHC':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0xe3a3eb=_0x5d5989||await _0x7abc08['YGAcQ'](getActiveFeatureId);if(!_0xe3a3eb)throw new Error(_0x1b1e41(0xf0));const _0x37948a=await getFeature(_0xe3a3eb),_0x48b214=_0x37948a['checklistItems']||[],_0x144dc3=getCurrentSessionItems(_0x37948a,_0x48b214);_0x144dc3['length']===0x0&&(console['error'](_0x7abc08['SYVEN']),process['exit'](0x1));const _0x4d83ce=_0x381d5d[_0x1b1e41(0x106)]??[],_0x185467=_0x4d83ce['filter'](_0x4f5420=>!Number[_0x1b1e41(0x161)](_0x4f5420)||_0x4f5420<0x1||_0x4f5420>_0x144dc3['length']);if(_0x7abc08['MmlFh'](_0x185467['length'],0x0)){console[_0x1b1e41(0x115)](_0x1b1e41(0xdd)+_0x185467['join'](',\x20')),console['log'](_0x7abc08['MFsUC']);for(let _0x4d09bd=0x0;_0x4d09bd<_0x144dc3[_0x1b1e41(0xcd)];_0x4d09bd++){console[_0x1b1e41(0x152)]('\x20\x20'+(_0x4d09bd+0x1)+'.\x20'+_0x144dc3[_0x4d09bd]['description']);}process[_0x1b1e41(0x163)](0x1);}const _0x2f0779=new Set(_0x4d83ce[_0x1b1e41(0x187)](_0x1ba722=>_0x1ba722-0x1)),_0x4acbe7=_0x144dc3['filter']((_0x21ca53,_0x28c210)=>!_0x2f0779['has'](_0x28c210));_0x7abc08['LnURc'](_0x4acbe7[_0x1b1e41(0xcd)],0x0)&&(console[_0x1b1e41(0x115)](_0x7abc08[_0x1b1e41(0x10e)]),process[_0x1b1e41(0x163)](0x1));const _0x253caf=await getFeatureReportMarkdown(_0xe3a3eb,{'itemIds':_0x4acbe7['map'](_0x2a8832=>_0x2a8832['id'])});process[_0x1b1e41(0x175)][_0x1b1e41(0x17c)](_0x253caf['trimEnd']()+'\x0a');}function _0x5917(){const _0x24bfb1=['ykhdI','blocked','PoAGv','tKpUp','iMJyR','\x0aGenerating\x20report...','slice','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','\x20scenario(s).','\x20scenarios.','filter','\x20(v','scenario','\x20concluded.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20/\x20','stdout','xxBbw','9951810tRSjdb','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x20--current-branch','spatial','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','write','arrayBuffer','sObON','name','xbxOB','LcmjG','zGRhD','authorEmail','cNrKg','element','\x20\x20\x20\x20\x20Branch:\x20','map','\x0a✅\x20Scenario\x20added','.png','description','any','xTYNi','round','4535320wxzCAR','\x0a✅\x20Scenario\x20updated','3558123wPuFDo','LpJny','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','incomplete','currentBranch','isTTY','dIOFC','gitRepoUrl','\x20\x20\x20Branch:\x20',':\x20\x22','textContent','CzNiR','\x20\x20\x20Progress:\x20','length','muUKs','list','NEvby','hObLo','join','hYpmn','selector','6190790MtPIHL','version','split','nsgtC','eyUGE','qYRCe','closed','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','feedback-images','qDfpw','iShyO','currentSessionId','\x20blocked','taxQv','incompleteReason','domRef','authorName','createdAt','3388eXtBYS','includeDeleted','\x20\x20\x20ID:\x20','find','wvAXg','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0aCreating\x20feature\x20review...','JCFFj','XheGI','\x0a✅\x20Resumed\x20feature\x20review:\x20','toLocaleDateString','\x20\x20\x20Status:\x20','vQBhx','\x20in\x20progress','iteration','4ktVGDo','dfGEo','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','hpfyS','sort','trim','\x0a⚠️\x20\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','offset','fJYBX','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','assetUrl','excludeScenarios','FizjO','hCApx','reports','limit','verificationInProgressItems','9thFzkW','position','hUfHC','zfzhL','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','\x20\x20\x20Created:\x20','pbOTp','toLocaleString','uQeGU','error','completedAt','utf-8','stats','aZzqJ','zEscz','totalCount','dashboardUrl','push','Unknown','\x0a✅\x20Report\x20generated:\x20','vMIoa','\x0aAvailable\x20scenarios:','Next\x20page:\x20ranger\x20list\x20--offset\x20','pipe','\x1b[0m','10nKEWWr','SHnrZ','YKDvU','\x0a✅\x20Session\x20is\x20already\x20completed.','OGHAO','skIXi','qCRZm','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','en-US','12678KOKucA','terminalReason','hxpTZ','1423828cXouAZ','repeat','submittedAt','\x0a✅\x20Restored\x20feature\x20review:\x20','\x20feature\x20review(s)\x20found','IhqeM','617326yvsdUc','blockedReason','gitBranch','):\x20\x22','stdin','...','FmRqy','Cannot\x20conclude\x20session\x20with\x20status:\x20','github.com/','replace','PjmHk','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','from','hVwiM','in_progress','\x20\x20Expected\x20flow:','checklistItems','\x20unaddressed\x20comment(s)','\x20—\x20no\x20comments','items','\x20\x20\x20\x20\x20\x20Approved','\x20\x20\x20Repository:\x20','status','\x20[has\x20reviewer\x20feedback]','output','JMICI','yQGFx','log','vRtfZ','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','Current\x20session\x20not\x20found.','\x20of\x20','\x20\x20\x20','\x20\x20\x20\x20\x20\x20Cancelled:\x20','SGScO','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','completed','unaddressedComments','No\x20sessions\x20found.','content','.\x20Feature\x20review\x20has\x20','vcmYT','isInteger','JXrCw','exit','\x0aConcluding\x20session...'];_0x5917=function(){return _0x24bfb1;};return _0x5917();}export async function featureConcludeSession(_0x5e2850){const _0x4887ef=_0x2f0c7d,_0x3cb7f5={'pZJsY':function(_0x124041){return _0x124041();},'fXryg':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','JMICI':function(_0x1c2230,_0x5988ae){return _0x1c2230(_0x5988ae);},'proGX':_0x4887ef(0x15b),'POnFK':_0x4887ef(0x128),'vQBhx':_0x4887ef(0x164)},_0x496cf0=_0x5e2850||await _0x3cb7f5['pZJsY'](getActiveFeatureId);if(!_0x496cf0)throw new Error(_0x4887ef(0x173));const _0x1bab74=await getFeature(_0x496cf0);if(!_0x1bab74[_0x4887ef(0xe3)])throw new Error(_0x3cb7f5['fXryg']);const {sessions:_0x43c481}=await _0x3cb7f5[_0x4887ef(0x150)](listFeatureSessions,_0x496cf0),_0x162d52=_0x43c481['find'](_0x4774e3=>_0x4774e3['id']===_0x1bab74['currentSessionId']);if(!_0x162d52)throw new Error(_0x4887ef(0x155));if(_0x162d52[_0x4887ef(0x14d)]===_0x3cb7f5['proGX']){console['log'](_0x3cb7f5['POnFK']);return;}if(_0x162d52['status']!=='in_progress')throw new Error(_0x4887ef(0x13e)+_0x162d52[_0x4887ef(0x14d)]);console[_0x4887ef(0x152)](_0x3cb7f5[_0x4887ef(0xf7)]),await concludeSession(_0x496cf0,_0x1bab74['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x162d52['iteration']+_0x4887ef(0x172)),console['log'](_0x4887ef(0x16c));}export async function featureSessions(_0x27c500){const _0x5e0869=_0x2f0c7d,_0x4f4d78={'pKKUH':function(_0xa51043,_0x808d7){return _0xa51043(_0x808d7);},'wvAXg':function(_0x4825ae,_0x1a6c12){return _0x4825ae===_0x1a6c12;},'dIOFC':_0x5e0869(0x15d),'xxBbw':function(_0x2b7402,_0x622d2){return _0x2b7402===_0x622d2;},'sObON':_0x5e0869(0x15b),'PInRw':_0x5e0869(0x145)},_0x113aa7=_0x27c500||await getActiveFeatureId();if(!_0x113aa7)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x9ad407=await getFeature(_0x113aa7);console[_0x5e0869(0x152)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x9ad407['name']+'\x0a');const {sessions:_0x1726ff}=await _0x4f4d78['pKKUH'](listFeatureSessions,_0x113aa7);if(_0x4f4d78[_0x5e0869(0xee)](_0x1726ff['length'],0x0)){console['log'](_0x4f4d78[_0x5e0869(0xc6)]);return;}for(const _0x2d58aa of _0x1726ff){const _0x2cef06=_0x4f4d78[_0x5e0869(0x176)](_0x2d58aa[_0x5e0869(0x14d)],_0x4f4d78[_0x5e0869(0x17e)])?'✅':_0x2d58aa['status']===_0x4f4d78['PInRw']?'🔄':'▶️';console['log'](_0x2cef06+'\x20Session\x20'+_0x2d58aa[_0x5e0869(0xf9)]+'\x20('+_0x2d58aa['id']+')'),console['log'](_0x5e0869(0xf6)+_0x2d58aa['status']),console['log'](_0x5e0869(0x111)+new Date(_0x2d58aa[_0x5e0869(0xe9)])['toLocaleString']()),_0x2d58aa['completedAt']&&console[_0x5e0869(0x152)]('\x20\x20\x20Completed:\x20'+new Date(_0x2d58aa[_0x5e0869(0x116)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x42150c,_0x335c73){const _0x47e2ec=_0x2f0c7d,_0x3d3b81={'hYpmn':function(_0x485032){return _0x485032();},'yjkzG':_0x47e2ec(0x173),'XheGI':function(_0x3a87d6,_0x59dbab){return _0x3a87d6(_0x59dbab);},'VUCKt':function(_0xb1cf65,_0x48b15e){return _0xb1cf65(_0x48b15e);}},_0x1b5165=_0x335c73||await _0x3d3b81[_0x47e2ec(0xd3)](getActiveFeatureId);if(!_0x1b5165)throw new Error(_0x3d3b81['yjkzG']);const _0xd908f4=await _0x3d3b81[_0x47e2ec(0xf3)](getFeature,_0x1b5165);if(_0xd908f4['latestReview']&&!_0xd908f4['latestReview'][_0x47e2ec(0x133)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0xd908f4['dashboardUrl']);await createChecklistItem(_0x1b5165,_0x42150c);const _0x87c675=await _0x3d3b81['VUCKt'](getFeature,_0x1b5165);console[_0x47e2ec(0x152)](_0x47e2ec(0x188)),displayFeature(_0x87c675,_0x87c675['checklistItems']);}export async function featureEditScenario(_0x21dbbb,_0x19139b){const _0x403fc2=_0x2f0c7d,_0x5d519d={'ceBfz':_0x403fc2(0xdc),'PoAGv':_0x403fc2(0x12c),'qDfpw':function(_0x283a4f,_0x3c9855){return _0x283a4f(_0x3c9855);},'aqLZs':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','FizjO':function(_0xc10d24,_0x3a442e){return _0xc10d24===_0x3a442e;},'ztYmd':function(_0x229d9a,_0x42ad6c){return _0x229d9a+_0x42ad6c;},'hCApx':function(_0x34d26e,_0x1409ac){return _0x34d26e-_0x1409ac;},'vcmYT':function(_0x382bc2,_0x5b29e5){return _0x382bc2>=_0x5b29e5;},'uQeGU':_0x403fc2(0x121),'JCFFj':function(_0x4563e2,_0x23787,_0x3a21e4,_0x5163f3){return _0x4563e2(_0x23787,_0x3a21e4,_0x5163f3);}},_0x3cc07c=_0x19139b['id']||await getActiveFeatureId();!_0x3cc07c&&(console[_0x403fc2(0x115)](_0x5d519d['ceBfz']),console['error'](_0x5d519d[_0x403fc2(0x167)]),process[_0x403fc2(0x163)](0x1));const _0x4f3512=await _0x5d519d[_0x403fc2(0xe1)](getFeature,_0x3cc07c);_0x4f3512['latestReview']&&!_0x4f3512['latestReview']['submittedAt']&&(console['error'](_0x5d519d['aqLZs']),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x4f3512[_0x403fc2(0x11c)]),process['exit'](0x1));const _0x3aa1f3=_0x4f3512[_0x403fc2(0x147)]||[];_0x5d519d[_0x403fc2(0x107)](_0x3aa1f3[_0x403fc2(0xcd)],0x0)&&(console['error'](_0x403fc2(0x17b)),process['exit'](0x1));if(_0x19139b[_0x403fc2(0x171)]===undefined){console[_0x403fc2(0x115)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x403fc2(0x121));for(let _0x1addcc=0x0;_0x1addcc<_0x3aa1f3[_0x403fc2(0xcd)];_0x1addcc++){console['log']('\x20\x20'+_0x5d519d['ztYmd'](_0x1addcc,0x1)+'.\x20'+_0x3aa1f3[_0x1addcc]['description']);}process[_0x403fc2(0x163)](0x1);}const _0x3fa1a2=_0x5d519d[_0x403fc2(0x108)](_0x19139b['scenario'],0x1);if(_0x3fa1a2<0x0||_0x5d519d[_0x403fc2(0x160)](_0x3fa1a2,_0x3aa1f3[_0x403fc2(0xcd)])){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x19139b[_0x403fc2(0x171)]+_0x403fc2(0x15f)+_0x3aa1f3['length']+_0x403fc2(0x16e)),console['log'](_0x5d519d[_0x403fc2(0x114)]);for(let _0x221de0=0x0;_0x221de0<_0x3aa1f3['length'];_0x221de0++){console[_0x403fc2(0x152)]('\x20\x20'+_0x5d519d['ztYmd'](_0x221de0,0x1)+'.\x20'+_0x3aa1f3[_0x221de0]['description']);}process[_0x403fc2(0x163)](0x1);}const _0x23813c=_0x3aa1f3[_0x3fa1a2];await _0x5d519d[_0x403fc2(0xf2)](updateChecklistItem,_0x3cc07c,_0x23813c['id'],{'description':_0x21dbbb});const _0x557321=await _0x5d519d['qDfpw'](getFeature,_0x3cc07c);console['log'](_0x403fc2(0x18f)),displayFeature(_0x557321,_0x557321['checklistItems']);}async function downloadFeedbackImage(_0x132741,_0x2625e4){const _0x44677f=_0x2f0c7d,_0x556a00={'OGHAO':function(_0x623181){return _0x623181();},'Rvtjs':_0x44677f(0xe0),'uetuK':function(_0x3df459,_0x1b5974,_0x299bf3){return _0x3df459(_0x1b5974,_0x299bf3);},'iMJyR':function(_0x42bb06,_0x2cc08e,_0x15a86c){return _0x42bb06(_0x2cc08e,_0x15a86c);},'SHnrZ':function(_0x1a2aa3,_0x3a3999){return _0x1a2aa3(_0x3a3999);}};try{const _0xcdd635=join(_0x556a00[_0x44677f(0x129)](getRangerDir),_0x556a00['Rvtjs']);await _0x556a00['uetuK'](mkdir,_0xcdd635,{'recursive':!![]});const _0x47fb0d=_0x556a00[_0x44677f(0x169)](join,_0xcdd635,'comment_'+_0x2625e4+_0x44677f(0x189)),_0x152448=await _0x556a00[_0x44677f(0x126)](fetch,_0x132741);if(!_0x152448['ok'])return null;const _0x166320=Buffer[_0x44677f(0x143)](await _0x152448[_0x44677f(0x17d)]());return await writeFile(_0x47fb0d,_0x166320),_0x47fb0d;}catch{return null;}}export async function featureGetReview(_0x16f5f1){const _0x55707a=_0x2f0c7d,_0x5e09b2={'WMpnY':function(_0x52f7b0,_0x297442,_0x3536ff){return _0x52f7b0(_0x297442,_0x3536ff);},'eynZq':_0x55707a(0x12d),'hxpTZ':'short','KmmhA':'numeric','ykhdI':_0x55707a(0x11e),'TTZaI':'\x20>\x20','zAvgl':_0x55707a(0x185),'LOYvG':function(_0x1c1fe5,_0x37c3a2){return _0x1c1fe5===_0x37c3a2;},'sBjtJ':'point','taxQv':function(_0x5613af,_0x501a4d){return _0x5613af+_0x501a4d;}},_0x2a4faa=_0x16f5f1||await getActiveFeatureId();if(!_0x2a4faa)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 _0x5eed66=await getFeature(_0x2a4faa),{items:_0x46ef72}=await getActionItems(_0x2a4faa);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x5eed66[_0x55707a(0x17f)]+'\x20('+_0x5eed66['id']+')\x0a');if(_0x46ef72['length']===0x0){console['log']('No\x20scenarios\x20found.');return;}for(let _0x1edbbc=0x0;_0x1edbbc<_0x46ef72['length'];_0x1edbbc++){const _0xeb1c0d=_0x46ef72[_0x1edbbc],_0x576c94=_0xeb1c0d['version']>0x1?_0x55707a(0x170)+_0xeb1c0d[_0x55707a(0xd6)]+')':'',_0x99850c=await _0x5e09b2['WMpnY'](getItemFeedback,_0x2a4faa,_0xeb1c0d['id']);if(_0x99850c[_0x55707a(0x15c)][_0x55707a(0xcd)]>0x0){console['log']('Scenario\x20'+(_0x1edbbc+0x1)+':\x20\x22'+_0xeb1c0d[_0x55707a(0x18a)]+'\x22'+_0x576c94+'\x20—\x20'+_0x99850c['unaddressedComments'][_0x55707a(0xcd)]+_0x55707a(0x148));for(const _0x4cdfb0 of _0x99850c[_0x55707a(0x15c)]){const _0x3c3e0a=new Date(_0x4cdfb0[_0x55707a(0xe9)])[_0x55707a(0xf5)](_0x5e09b2['eynZq'],{'month':_0x5e09b2[_0x55707a(0x130)],'day':_0x5e09b2['KmmhA']}),_0x1af227=_0x4cdfb0[_0x55707a(0xe8)]||_0x4cdfb0[_0x55707a(0x183)]||_0x5e09b2[_0x55707a(0x165)];console[_0x55707a(0x152)]('\x20\x20💬\x20'+_0x1af227+'\x20('+_0x3c3e0a+_0x55707a(0x13a)+_0x4cdfb0[_0x55707a(0x15e)]+'\x22');if(_0x4cdfb0[_0x55707a(0x105)]){const _0x4650e1=await downloadFeedbackImage(_0x4cdfb0['assetUrl'],_0x4cdfb0['id']);_0x4650e1&&console[_0x55707a(0x152)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x4650e1);}if(_0x4cdfb0['domRef']){const _0x52e26b=_0x4cdfb0[_0x55707a(0xe7)]['selector'][_0x55707a(0xd7)](_0x5e09b2['TTZaI'])['pop']()?.['split'](':')[0x0]||_0x5e09b2['zAvgl'],_0x5b1db9=_0x4cdfb0[_0x55707a(0xe7)][_0x55707a(0xca)]?'\x20\x22'+_0x4cdfb0['domRef'][_0x55707a(0xca)][_0x55707a(0x16b)](0x0,0x3c)+'\x22':'';console[_0x55707a(0x152)](_0x55707a(0x192)+_0x52e26b+'>'+_0x5b1db9),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x4cdfb0[_0x55707a(0xe7)][_0x55707a(0xd4)]);}else{if(_0x4cdfb0[_0x55707a(0x17a)]){const _0xb1174e=_0x4cdfb0['spatial']['coordinates'];_0x5e09b2['LOYvG'](_0x4cdfb0['spatial']['type'],_0x5e09b2['sBjtJ'])&&_0xb1174e[_0x55707a(0xcd)]>=0x2?console[_0x55707a(0x152)](_0x55707a(0x154)+_0xb1174e[0x0]['toFixed'](0x2)+',\x20'+_0xb1174e[0x1]['toFixed'](0x2)+')'):console['log'](_0x55707a(0xde)+_0x4cdfb0['spatial']['type']+'\x20at\x20['+_0xb1174e['map'](_0x550585=>_0x550585['toFixed'](0x2))[_0x55707a(0xd2)](',\x20')+']');}}}if(_0x99850c['canonicalFlow']){console['log'](_0x55707a(0x146));for(const _0x55ae0d of _0x99850c['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x55ae0d);}}}else console[_0x55707a(0x152)]('Scenario\x20'+_0x5e09b2[_0x55707a(0xe5)](_0x1edbbc,0x1)+_0x55707a(0xc9)+_0xeb1c0d['description']+'\x22'+_0x576c94+_0x55707a(0x149)),console[_0x55707a(0x152)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x57aae6){const _0x485cca=_0x2f0c7d,_0xbed605={'kFuxd':function(_0x47d65c,_0x704b98){return _0x47d65c(_0x704b98);}},_0x36bfb6=_0x57aae6||await getActiveFeatureId();if(!_0x36bfb6)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 _0x4549e8=await _0xbed605['kFuxd'](getFeature,_0x36bfb6);await softDeleteFeature(_0x36bfb6),console[_0x485cca(0x152)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x4549e8['name']+'\x20('+_0x36bfb6+')'),console['log'](_0x485cca(0x15a)+_0x36bfb6);}export async function featureRestore(_0x1f5569){const _0x445576=_0x2f0c7d,_0x2e63bb={'aZzqJ':function(_0xa0bf12,_0x47f76b){return _0xa0bf12(_0x47f76b);},'LtCuD':function(_0xe4ed23,_0x42d03a){return _0xe4ed23(_0x42d03a);}};await _0x2e63bb[_0x445576(0x119)](restoreFeature,_0x1f5569);const _0x39fb8d=await _0x2e63bb['LtCuD'](getFeature,_0x1f5569);console['log'](_0x445576(0x134)+_0x39fb8d['name']+'\x20('+_0x1f5569+')'),displayFeature(_0x39fb8d,_0x39fb8d['checklistItems']);}
@@ -1 +1 @@
1
- (function(_0x4449f7,_0x4e6aa5){const _0x246206=_0x5410,_0x309e21=_0x4449f7();while(!![]){try{const _0xbce32e=-parseInt(_0x246206(0xd8))/0x1+-parseInt(_0x246206(0xdd))/0x2*(parseInt(_0x246206(0xd6))/0x3)+parseInt(_0x246206(0xda))/0x4+parseInt(_0x246206(0xdb))/0x5*(parseInt(_0x246206(0xde))/0x6)+parseInt(_0x246206(0xdc))/0x7+-parseInt(_0x246206(0xd9))/0x8*(parseInt(_0x246206(0xd5))/0x9)+-parseInt(_0x246206(0xdf))/0xa;if(_0xbce32e===_0x4e6aa5)break;else _0x309e21['push'](_0x309e21['shift']());}catch(_0x54f118){_0x309e21['push'](_0x309e21['shift']());}}}(_0x2b12,0x332aa));function _0x2b12(){const _0x3abf33=['763469gboCbM','4ZbwEmd','140784nXSrfT','127300BciJVr','error','exit','keys','Unknown\x20hook:\x20','1144926biIHBO','90150rHcEWE','WLiju','282006QUkZPd','8MrSuZg','1391684mWcYBA','50zCMOEU'];_0x2b12=function(){return _0x3abf33;};return _0x2b12();}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x5410(_0xfe6f20,_0x40a90d){_0xfe6f20=_0xfe6f20-0xd5;const _0x2b12d3=_0x2b12();let _0x541090=_0x2b12d3[_0xfe6f20];return _0x541090;}export async function hook(_0x1eb8ea,_0x5024aa){const _0x25df3c=_0x5410,_0x347db5={'WLiju':function(_0x1dc0c3,_0x3d0894){return _0x1dc0c3(_0x3d0894);}},_0x59b207=HOOKS[_0x1eb8ea];if(!_0x59b207){const _0x5d6c22=Object[_0x25df3c(0xe2)](HOOKS)['join'](',\x20');console[_0x25df3c(0xe0)](_0x25df3c(0xe3)+_0x1eb8ea),console['error']('Valid\x20hooks:\x20'+_0x5d6c22),process[_0x25df3c(0xe1)](0x1);}await _0x347db5[_0x25df3c(0xd7)](_0x59b207,_0x5024aa);}
1
+ (function(_0x1b4182,_0x130888){const _0x6aec63=_0x3187,_0x591ee4=_0x1b4182();while(!![]){try{const _0x297ac1=parseInt(_0x6aec63(0x6e))/0x1*(parseInt(_0x6aec63(0x7b))/0x2)+-parseInt(_0x6aec63(0x79))/0x3+-parseInt(_0x6aec63(0x77))/0x4+parseInt(_0x6aec63(0x7a))/0x5*(-parseInt(_0x6aec63(0x72))/0x6)+parseInt(_0x6aec63(0x70))/0x7*(-parseInt(_0x6aec63(0x71))/0x8)+-parseInt(_0x6aec63(0x74))/0x9*(-parseInt(_0x6aec63(0x7c))/0xa)+parseInt(_0x6aec63(0x73))/0xb;if(_0x297ac1===_0x130888)break;else _0x591ee4['push'](_0x591ee4['shift']());}catch(_0x430902){_0x591ee4['push'](_0x591ee4['shift']());}}}(_0x4c5d,0x59fbc));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x4c5d(){const _0x3dba87=['27790MpLwSd','88NWQjeO','6kXhDjW','13979647aDubdu','171OBSSER','error','EIfVt','2040820jXbTJc','Unknown\x20hook:\x20','1749036AeXnAX','2306445wHWoMQ','77474qQYotK','345860SxJVOl','1cKkgEi','exit'];_0x4c5d=function(){return _0x3dba87;};return _0x4c5d();}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x3187(_0x226a96,_0x4fcc77){_0x226a96=_0x226a96-0x6e;const _0x4c5dc0=_0x4c5d();let _0x318779=_0x4c5dc0[_0x226a96];return _0x318779;}export async function hook(_0x5a2cb1,_0x3fc89e){const _0x1cfb6a=_0x3187,_0x46b04f={'EIfVt':function(_0x403c85,_0x475234){return _0x403c85(_0x475234);}},_0x3ec07e=HOOKS[_0x5a2cb1];if(!_0x3ec07e){const _0x25ea67=Object['keys'](HOOKS)['join'](',\x20');console['error'](_0x1cfb6a(0x78)+_0x5a2cb1),console[_0x1cfb6a(0x75)]('Valid\x20hooks:\x20'+_0x25ea67),process[_0x1cfb6a(0x6f)](0x1);}await _0x46b04f[_0x1cfb6a(0x76)](_0x3ec07e,_0x3fc89e);}
@@ -1 +1 @@
1
- function _0x38f6(_0x339216,_0x308e57){_0x339216=_0x339216-0xff;const _0xca82c5=_0xca82();let _0x38f68e=_0xca82c5[_0x339216];return _0x38f68e;}const _0x180894=_0x38f6;(function(_0x5d908f,_0xc5a5e8){const _0x5654ed=_0x38f6,_0x52a0d=_0x5d908f();while(!![]){try{const _0x35e752=parseInt(_0x5654ed(0x102))/0x1+parseInt(_0x5654ed(0x109))/0x2*(-parseInt(_0x5654ed(0x108))/0x3)+-parseInt(_0x5654ed(0x105))/0x4+-parseInt(_0x5654ed(0x103))/0x5+-parseInt(_0x5654ed(0xff))/0x6*(-parseInt(_0x5654ed(0x106))/0x7)+parseInt(_0x5654ed(0x107))/0x8+parseInt(_0x5654ed(0x101))/0x9;if(_0x35e752===_0xc5a5e8)break;else _0x52a0d['push'](_0x52a0d['shift']());}catch(_0x1cca27){_0x52a0d['push'](_0x52a0d['shift']());}}}(_0xca82,0x509dd));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x180894(0x104);function _0xca82(){const _0x11b4c6=['1824552ILzvEK','112JnfEfW','4033184sHwxid','822NrPsSF','1838sfgRjr','25314GsOQPn','log','487575fIusYl','478265fyevRp','329715xxuFbr','\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.'];_0xca82=function(){return _0x11b4c6;};return _0xca82();}export async function autoPrompt(){const _0x518d2b=_0x180894,_0x15b029={'BCHLq':function(_0xd86bbe,_0x373fa6){return _0xd86bbe(_0x373fa6);}},_0xab6546=await readHookInput(),_0x525c10=_0xab6546?.['session_id'];if(!_0x525c10)return;if(isSessionEnabled(_0x525c10)||_0x15b029['BCHLq'](hasSessionBeenPrompted,_0x525c10))return;markSessionPrompted(_0x525c10),console[_0x518d2b(0x100)](AUTO_PROMPT_TEXT);}
1
+ const _0x4263a8=_0x4480;function _0x4480(_0x9ab148,_0x2c5702){_0x9ab148=_0x9ab148-0xb7;const _0x3f45df=_0x3f45();let _0x4480ba=_0x3f45df[_0x9ab148];return _0x4480ba;}function _0x3f45(){const _0x182941=['1329580OXiMGt','3165426IblXrq','10484728IZkSbG','log','5571846bArXqj','7sEuUev','4074018QPfWmG','\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.','651040isIalx','40xtXoLa','2tlCLVm','session_id','1521360IQUOYD'];_0x3f45=function(){return _0x182941;};return _0x3f45();}(function(_0x693c12,_0x8a3810){const _0x50d488=_0x4480,_0x298c24=_0x693c12();while(!![]){try{const _0x34e3dd=parseInt(_0x50d488(0xbc))/0x1+parseInt(_0x50d488(0xbe))/0x2*(parseInt(_0x50d488(0xba))/0x3)+-parseInt(_0x50d488(0xc0))/0x4+-parseInt(_0x50d488(0xc1))/0x5+parseInt(_0x50d488(0xc2))/0x6*(parseInt(_0x50d488(0xb9))/0x7)+parseInt(_0x50d488(0xc3))/0x8+-parseInt(_0x50d488(0xb8))/0x9*(parseInt(_0x50d488(0xbd))/0xa);if(_0x34e3dd===_0x8a3810)break;else _0x298c24['push'](_0x298c24['shift']());}catch(_0x3e088d){_0x298c24['push'](_0x298c24['shift']());}}}(_0x3f45,0xb0e60));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x4263a8(0xbb);export async function autoPrompt(){const _0x4a1676=_0x4263a8,_0x25ed3e=await readHookInput(),_0x1a5704=_0x25ed3e?.[_0x4a1676(0xbf)];if(!_0x1a5704)return;if(isSessionEnabled(_0x1a5704)||hasSessionBeenPrompted(_0x1a5704))return;markSessionPrompted(_0x1a5704),console[_0x4a1676(0xb7)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x5517ec,_0x12faac){const _0x38443c=_0x4a86,_0x1fca31=_0x5517ec();while(!![]){try{const _0x49f4cb=-parseInt(_0x38443c(0x90))/0x1+parseInt(_0x38443c(0x8a))/0x2+-parseInt(_0x38443c(0x96))/0x3*(-parseInt(_0x38443c(0x95))/0x4)+parseInt(_0x38443c(0x87))/0x5*(-parseInt(_0x38443c(0x92))/0x6)+parseInt(_0x38443c(0x88))/0x7+parseInt(_0x38443c(0x8d))/0x8+parseInt(_0x38443c(0x98))/0x9*(-parseInt(_0x38443c(0x94))/0xa);if(_0x49f4cb===_0x12faac)break;else _0x1fca31['push'](_0x1fca31['shift']());}catch(_0x206801){_0x1fca31['push'](_0x1fca31['shift']());}}}(_0x3add,0x80d37));function _0x3add(){const _0x5f11d6=['11446430iqhsAm','36rYcvis','321816AGnHnu','HHEBP','9TIXdyS','.\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`.','master','env','38990QHSTxM','7015183rSfSmm','uIfSF','444436rxdYOe','error','CLAUDE_SESSION_ID','5590672QdntPe','hccRk','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','514535GNyMkz','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','540OmyQQh','YdSBu'];_0x3add=function(){return _0x5f11d6;};return _0x3add();}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x4a86(_0x585bab,_0x1905ef){_0x585bab=_0x585bab-0x87;const _0x3add3c=_0x3add();let _0x4a86e0=_0x3add3c[_0x585bab];return _0x4a86e0;}export async function disable(_0x22a70c){const _0x4979e1=_0x4a86,_0x256d52={'HHEBP':'Error:\x20No\x20session\x20ID\x20available.','hccRk':_0x4979e1(0x8f),'YdSBu':function(_0x399036,_0x1b91d8){return _0x399036(_0x1b91d8);},'uIfSF':function(_0x2a4117,_0x54ed9e){return _0x2a4117!==_0x54ed9e;}},_0x212947=_0x22a70c||process[_0x4979e1(0x9b)][_0x4979e1(0x8c)]||'';!_0x212947&&(console['error'](_0x256d52[_0x4979e1(0x97)]),console[_0x4979e1(0x8b)](_0x256d52[_0x4979e1(0x8e)]),process['exit'](0x1));disableSession(_0x212947);const _0x241dd2=getCurrentBranch();_0x241dd2&&_0x241dd2!=='main'&&_0x241dd2!==_0x4979e1(0x9a)&&disableBranch(_0x241dd2),_0x256d52[_0x4979e1(0x93)](printBlock,_0x4979e1(0x91)+(_0x241dd2&&_0x256d52[_0x4979e1(0x89)](_0x241dd2,'main')&&_0x241dd2!=='master'?'\x20and\x20branch\x20\x27'+_0x241dd2+'\x27':'')+_0x4979e1(0x99));}
1
+ (function(_0x500d6a,_0x980758){const _0x1125c4=_0x2349,_0x3446a7=_0x500d6a();while(!![]){try{const _0x5b6554=-parseInt(_0x1125c4(0xf9))/0x1*(-parseInt(_0x1125c4(0x101))/0x2)+-parseInt(_0x1125c4(0x100))/0x3+parseInt(_0x1125c4(0xf3))/0x4+-parseInt(_0x1125c4(0xef))/0x5*(parseInt(_0x1125c4(0xf0))/0x6)+-parseInt(_0x1125c4(0xfd))/0x7*(-parseInt(_0x1125c4(0xff))/0x8)+parseInt(_0x1125c4(0xfc))/0x9*(-parseInt(_0x1125c4(0xf6))/0xa)+parseInt(_0x1125c4(0xf2))/0xb;if(_0x5b6554===_0x980758)break;else _0x3446a7['push'](_0x3446a7['shift']());}catch(_0x3914f4){_0x3446a7['push'](_0x3446a7['shift']());}}}(_0x7dc9,0xb4778));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x7dc9(){const _0x22c28f=['7kWzhlj','RhggN','6897728NCxcaD','1924611Bivpiq','172tmnJiS','gVgFA','302380YrqqXd','60JhANHr','CLAUDE_SESSION_ID','13797619cLCwQD','362280rAoIHM','wpuFj','main','127970vSXkDg','xDHUW','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','13196vXgevB','Error:\x20No\x20session\x20ID\x20available.','master','954aVtJcs'];_0x7dc9=function(){return _0x22c28f;};return _0x7dc9();}import{printBlock}from'./output.js';function _0x2349(_0xe3bb47,_0x5073ba){_0xe3bb47=_0xe3bb47-0xef;const _0x7dc967=_0x7dc9();let _0x2349ce=_0x7dc967[_0xe3bb47];return _0x2349ce;}export async function disable(_0x1ed7c8){const _0x588615=_0x2349,_0x57fd29={'RhggN':_0x588615(0xfa),'bgAbo':function(_0x180865,_0x850a3e){return _0x180865(_0x850a3e);},'cULjT':function(_0x3aa6f3,_0x6a961c){return _0x3aa6f3!==_0x6a961c;},'xDHUW':function(_0x41e893,_0x436658){return _0x41e893!==_0x436658;},'gVgFA':_0x588615(0xfb),'mmPRY':function(_0x159395,_0x114c29){return _0x159395(_0x114c29);},'wpuFj':function(_0x192aa7,_0xebe649){return _0x192aa7(_0xebe649);},'krzzz':function(_0x45e9e1,_0x46ff4f){return _0x45e9e1!==_0x46ff4f;}},_0x292ffd=_0x1ed7c8||process['env'][_0x588615(0xf1)]||'';!_0x292ffd&&(console['error'](_0x57fd29[_0x588615(0xfe)]),console['error'](_0x588615(0xf8)),process['exit'](0x1));_0x57fd29['bgAbo'](disableSession,_0x292ffd);const _0x377f02=getCurrentBranch();_0x377f02&&_0x57fd29['cULjT'](_0x377f02,_0x588615(0xf5))&&_0x57fd29[_0x588615(0xf7)](_0x377f02,_0x57fd29[_0x588615(0x102)])&&_0x57fd29['mmPRY'](disableBranch,_0x377f02),_0x57fd29[_0x588615(0xf4)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x377f02&&_0x57fd29[_0x588615(0xf7)](_0x377f02,_0x588615(0xf5))&&_0x57fd29['krzzz'](_0x377f02,'master')?'\x20and\x20branch\x20\x27'+_0x377f02+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
@@ -1 +1 @@
1
- (function(_0x50a406,_0x353727){const _0x5c7e1e=_0xe579,_0x3245e4=_0x50a406();while(!![]){try{const _0x214129=-parseInt(_0x5c7e1e(0x1e9))/0x1*(parseInt(_0x5c7e1e(0x1f9))/0x2)+parseInt(_0x5c7e1e(0x1f2))/0x3*(-parseInt(_0x5c7e1e(0x1ed))/0x4)+parseInt(_0x5c7e1e(0x1fa))/0x5+parseInt(_0x5c7e1e(0x1ec))/0x6*(-parseInt(_0x5c7e1e(0x1f6))/0x7)+parseInt(_0x5c7e1e(0x1e5))/0x8*(-parseInt(_0x5c7e1e(0x1e6))/0x9)+parseInt(_0x5c7e1e(0x1ee))/0xa*(parseInt(_0x5c7e1e(0x1fb))/0xb)+parseInt(_0x5c7e1e(0x1f8))/0xc*(parseInt(_0x5c7e1e(0x1e7))/0xd);if(_0x214129===_0x353727)break;else _0x3245e4['push'](_0x3245e4['shift']());}catch(_0x3ebf02){_0x3245e4['push'](_0x3245e4['shift']());}}}(_0xea9d,0xaa541));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';function _0xe579(_0x232e81,_0x238534){_0x232e81=_0x232e81-0x1e5;const _0xea9d94=_0xea9d();let _0xe5797f=_0xea9d94[_0x232e81];return _0xe5797f;}import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0xea9d(){const _0x24c7f1=['kjgCX','1wxffJW','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','#\x20RANGER\x20ENABLED','15072twlSuc','1644DsjpsA','10TvydFa','\x0a\x0a**Branch\x20\x27','ranger\x20setup\x20--opencode','ranger\x20setup','1641YMQKOs','TnfaR','master','error','1526UimicW','main','24271500TAvdDX','1571754AyfXyq','5938145HlwzPs','2301255BOulLk','Zhagc','304BGYXwz','275562NDkgzW','13uHqwLU'];_0xea9d=function(){return _0x24c7f1;};return _0xea9d();}export async function enable(_0x3d1183){const _0xa2eb3f=_0xe579,_0x17ae88={'FtIUY':'Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','HGxIR':function(_0x25534a){return _0x25534a();},'Zhagc':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','kjgCX':function(_0x3b989f,_0x31cc75){return _0x3b989f!==_0x31cc75;},'pGkcl':_0xa2eb3f(0x1f7),'aLRVB':_0xa2eb3f(0x1f4),'TnfaR':function(_0x46eddb,_0x53366b){return _0x46eddb(_0x53366b);}},_0x5a5c52=_0x3d1183||process['env']['CLAUDE_SESSION_ID']||'';!_0x5a5c52&&(console['error']('Error:\x20No\x20session\x20ID\x20available.'),console[_0xa2eb3f(0x1f5)](_0x17ae88['FtIUY']),process['exit'](0x1));const _0x2c0442=Boolean(_0x3d1183),_0x48cce9=await _0x17ae88['HGxIR'](getToken);if(!_0x48cce9){const _0xf962f6=_0x2c0442?_0xa2eb3f(0x1f0):_0xa2eb3f(0x1f1),_0x2b2c9b=_0x2c0442?_0x17ae88[_0xa2eb3f(0x1fc)]:_0xa2eb3f(0x1ea);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`'+_0xf962f6+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x2b2c9b);return;}try{await update();}catch{}enableSession(_0x5a5c52);const _0x58f7d0=getCurrentBranch(),_0x462c5d=_0x58f7d0&&_0x17ae88[_0xa2eb3f(0x1e8)](_0x58f7d0,_0x17ae88['pGkcl'])&&_0x17ae88[_0xa2eb3f(0x1e8)](_0x58f7d0,_0x17ae88['aLRVB'])?_0xa2eb3f(0x1ef)+_0x58f7d0+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x49fdba=getRangerSkillContent();_0x17ae88[_0xa2eb3f(0x1f3)](printBlock,_0xa2eb3f(0x1eb)+_0x462c5d+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x49fdba+'\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
+ function _0x3d65(_0x7b813a,_0x4a8878){_0x7b813a=_0x7b813a-0x8c;const _0x5e0020=_0x5e00();let _0x3d6531=_0x5e0020[_0x7b813a];return _0x3d6531;}(function(_0x11cc93,_0x734b56){const _0x36185e=_0x3d65,_0x300ac7=_0x11cc93();while(!![]){try{const _0x3b4f6f=parseInt(_0x36185e(0x94))/0x1+-parseInt(_0x36185e(0x9b))/0x2*(parseInt(_0x36185e(0xa5))/0x3)+-parseInt(_0x36185e(0x8c))/0x4+parseInt(_0x36185e(0xa2))/0x5*(-parseInt(_0x36185e(0x8f))/0x6)+-parseInt(_0x36185e(0x92))/0x7+parseInt(_0x36185e(0x99))/0x8+parseInt(_0x36185e(0x97))/0x9;if(_0x3b4f6f===_0x734b56)break;else _0x300ac7['push'](_0x300ac7['shift']());}catch(_0x5485ab){_0x300ac7['push'](_0x300ac7['shift']());}}}(_0x5e00,0x8fa36));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x5e00(){const _0x250278=['\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','#\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`','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','#\x20RANGER\x20ENABLED','25uvutem','ZZRSF','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','2630433ITbztT','2710516IXTNLH','CLAUDE_SESSION_ID','jrNqR','125742dbFbai','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','JpBrE','6480194oGyiNu','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','21275LJZdNF','master','\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`.','25564176TWKsVx','fgFkw','2492560uWFXDB','main','2CsYwvq','JKGMf'];_0x5e00=function(){return _0x250278;};return _0x5e00();}export async function enable(_0x4005ec){const _0x5e4248=_0x3d65,_0x1ff710={'ZZRSF':function(_0x32c163,_0x208563){return _0x32c163(_0x208563);},'jrNqR':_0x5e4248(0xa4),'JpBrE':_0x5e4248(0x90),'wRLTw':function(_0x4bcdc9){return _0x4bcdc9();},'fgFkw':function(_0x58c76a,_0x17085c){return _0x58c76a(_0x17085c);},'CAnCB':_0x5e4248(0x9a),'HRirH':_0x5e4248(0x95),'JKGMf':function(_0x31fd66,_0x282ad8){return _0x31fd66(_0x282ad8);}},_0x49c9d6=_0x4005ec||process['env'][_0x5e4248(0x8d)]||'';!_0x49c9d6&&(console['error']('Error:\x20No\x20session\x20ID\x20available.'),console['error'](_0x5e4248(0xa0)),process['exit'](0x1));const _0x468d89=_0x1ff710[_0x5e4248(0xa3)](Boolean,_0x4005ec),_0x73f437=await getToken();if(!_0x73f437){const _0x4146ac=_0x468d89?'ranger\x20setup\x20--opencode':'ranger\x20setup',_0xcb1df4=_0x468d89?_0x1ff710[_0x5e4248(0x8e)]:_0x1ff710[_0x5e4248(0x91)];printBlock(_0x5e4248(0x9f)+_0x4146ac+_0x5e4248(0x9e)+_0xcb1df4);return;}try{await _0x1ff710['wRLTw'](update);}catch{}_0x1ff710[_0x5e4248(0x98)](enableSession,_0x49c9d6);const _0x242dda=getCurrentBranch(),_0xa686e0=_0x242dda&&_0x242dda!==_0x1ff710['CAnCB']&&_0x242dda!==_0x1ff710['HRirH']?'\x0a\x0a**Branch\x20\x27'+_0x242dda+_0x5e4248(0x9d):'',_0x2fcffb=getRangerSkillContent();_0x1ff710[_0x5e4248(0x9c)](printBlock,_0x5e4248(0xa1)+_0xa686e0+_0x5e4248(0x93)+_0x2fcffb+_0x5e4248(0x96));}
@@ -1 +1 @@
1
- (function(_0x173eea,_0x18a939){const _0x1f1804=_0x3d6f,_0x3616bb=_0x173eea();while(!![]){try{const _0x5ec2e3=parseInt(_0x1f1804(0xfd))/0x1*(parseInt(_0x1f1804(0x100))/0x2)+parseInt(_0x1f1804(0xfe))/0x3*(-parseInt(_0x1f1804(0x105))/0x4)+-parseInt(_0x1f1804(0x101))/0x5*(parseInt(_0x1f1804(0x102))/0x6)+-parseInt(_0x1f1804(0xff))/0x7+-parseInt(_0x1f1804(0x107))/0x8+-parseInt(_0x1f1804(0x104))/0x9+parseInt(_0x1f1804(0x103))/0xa;if(_0x5ec2e3===_0x18a939)break;else _0x3616bb['push'](_0x3616bb['shift']());}catch(_0x2b029c){_0x3616bb['push'](_0x3616bb['shift']());}}}(_0x3ccf,0x64f7c));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3d6f(_0x255b1c,_0x1dd4d0){_0x255b1c=_0x255b1c-0xfd;const _0x3ccfef=_0x3ccf();let _0x3d6fad=_0x3ccfef[_0x255b1c];return _0x3d6fad;}function _0x3ccf(){const _0x1b66bf=['19315020eTJdLS','2971872MSggAo','978928xlTFsO','===\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===','417928dcWzgm','51698GDLzVW','6QqkelJ','5485410AlAkrv','16cZxTGf','165FAPzGz','50178LxGzol'];_0x3ccf=function(){return _0x1b66bf;};return _0x3ccf();}export async function exitPlanMode(_0x1a1dcb){const _0x14cd17=_0x3d6f,_0x3704fb=await getEnabledSessionId(_0x1a1dcb);if(!_0x3704fb)return;printBlock(_0x14cd17(0x106));}
1
+ (function(_0x3d34f9,_0x2a1b3e){const _0x45b2d6=_0x8323,_0x50a7ef=_0x3d34f9();while(!![]){try{const _0x42e323=-parseInt(_0x45b2d6(0x1ef))/0x1+-parseInt(_0x45b2d6(0x1f1))/0x2*(-parseInt(_0x45b2d6(0x1ec))/0x3)+-parseInt(_0x45b2d6(0x1eb))/0x4*(-parseInt(_0x45b2d6(0x1ed))/0x5)+-parseInt(_0x45b2d6(0x1f2))/0x6+-parseInt(_0x45b2d6(0x1ee))/0x7*(parseInt(_0x45b2d6(0x1f0))/0x8)+-parseInt(_0x45b2d6(0x1e9))/0x9+parseInt(_0x45b2d6(0x1ea))/0xa;if(_0x42e323===_0x2a1b3e)break;else _0x50a7ef['push'](_0x50a7ef['shift']());}catch(_0x3a8ac8){_0x50a7ef['push'](_0x50a7ef['shift']());}}}(_0x5a50,0x89e73));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3a4a9a){const _0x578f81=_0x8323,_0x19fc9f=await getEnabledSessionId(_0x3a4a9a);if(!_0x19fc9f)return;printBlock(_0x578f81(0x1f3));}function _0x8323(_0x4999f7,_0xc9902a){_0x4999f7=_0x4999f7-0x1e9;const _0x5a505b=_0x5a50();let _0x83232c=_0x5a505b[_0x4999f7];return _0x83232c;}function _0x5a50(){const _0x1d7f18=['19362660yORLQR','7364uNwqyr','6aHdfjP','1695KIQsDI','841687dZmRqE','152554VtPLnf','48lYfCLo','256472PpryyF','4599150rkUDzi','===\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===','5503149gFrDMB'];_0x5a50=function(){return _0x1d7f18;};return _0x5a50();}
@@ -1 +1 @@
1
- (function(_0x26f7cd,_0x34211b){var _0x284bcb=_0x192a,_0x3f3eeb=_0x26f7cd();while(!![]){try{var _0x5991f0=-parseInt(_0x284bcb(0xdb))/0x1*(-parseInt(_0x284bcb(0xda))/0x2)+parseInt(_0x284bcb(0xd9))/0x3*(parseInt(_0x284bcb(0xe0))/0x4)+parseInt(_0x284bcb(0xdd))/0x5+parseInt(_0x284bcb(0xdf))/0x6+parseInt(_0x284bcb(0xdc))/0x7+parseInt(_0x284bcb(0xd7))/0x8*(-parseInt(_0x284bcb(0xde))/0x9)+-parseInt(_0x284bcb(0xd8))/0xa;if(_0x5991f0===_0x34211b)break;else _0x3f3eeb['push'](_0x3f3eeb['shift']());}catch(_0x24c26f){_0x3f3eeb['push'](_0x3f3eeb['shift']());}}}(_0x284a,0x4903c));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';function _0x284a(){var _0x2bdcc0=['40eRzELS','344rFXvwO','9547160MmgQEv','167604npUlGS','323054TShcsf','1PIvqVf','1404844JrvaqI','1957125BOsHYo','24525hVScWX','351810KTpJPy'];_0x284a=function(){return _0x2bdcc0;};return _0x284a();}export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';function _0x192a(_0x577e91,_0x206c6f){_0x577e91=_0x577e91-0xd7;var _0x284aba=_0x284a();var _0x192aad=_0x284aba[_0x577e91];return _0x192aad;}export{planReminder}from'./planReminder.js';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
+ (function(_0xcb0ffa,_0x1b8f03){var _0x2a7d5c=_0x5751,_0x244405=_0xcb0ffa();while(!![]){try{var _0x41e3bd=parseInt(_0x2a7d5c(0xd4))/0x1*(parseInt(_0x2a7d5c(0xd8))/0x2)+parseInt(_0x2a7d5c(0xdf))/0x3+parseInt(_0x2a7d5c(0xd5))/0x4*(parseInt(_0x2a7d5c(0xd6))/0x5)+-parseInt(_0x2a7d5c(0xdc))/0x6*(parseInt(_0x2a7d5c(0xd9))/0x7)+parseInt(_0x2a7d5c(0xd3))/0x8*(-parseInt(_0x2a7d5c(0xdd))/0x9)+-parseInt(_0x2a7d5c(0xda))/0xa*(parseInt(_0x2a7d5c(0xde))/0xb)+-parseInt(_0x2a7d5c(0xdb))/0xc*(-parseInt(_0x2a7d5c(0xd7))/0xd);if(_0x41e3bd===_0x1b8f03)break;else _0x244405['push'](_0x244405['shift']());}catch(_0x1df399){_0x244405['push'](_0x244405['shift']());}}}(_0x3fde,0xda2fb));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';function _0x5751(_0x250df9,_0x248cb2){_0x250df9=_0x250df9-0xd3;var _0x3fde32=_0x3fde();var _0x575125=_0x3fde32[_0x250df9];return _0x575125;}export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';function _0x3fde(){var _0x27d67a=['22zZpchO','5082228Ljbhmz','104MeQwAf','5hYjjFM','12RcTgmF','2390460LpjBUl','65swZuEo','632378sllYKM','497zRndYX','4668790UyEcLI','880884VkqAXp','145302oEJqvv','1058868ekKeQv'];_0x3fde=function(){return _0x27d67a;};return _0x3fde();}export{autoPrompt}from'./autoPrompt.js';
@@ -1 +1 @@
1
- (function(_0x3faa3c,_0x570c9d){const _0x22a35a=_0x9f89,_0x863f84=_0x3faa3c();while(!![]){try{const _0x6860b4=parseInt(_0x22a35a(0x140))/0x1*(-parseInt(_0x22a35a(0x138))/0x2)+-parseInt(_0x22a35a(0x13a))/0x3*(parseInt(_0x22a35a(0x143))/0x4)+parseInt(_0x22a35a(0x142))/0x5+-parseInt(_0x22a35a(0x144))/0x6*(-parseInt(_0x22a35a(0x13d))/0x7)+parseInt(_0x22a35a(0x141))/0x8*(parseInt(_0x22a35a(0x13f))/0x9)+parseInt(_0x22a35a(0x145))/0xa*(parseInt(_0x22a35a(0x13b))/0xb)+-parseInt(_0x22a35a(0x13c))/0xc*(-parseInt(_0x22a35a(0x13e))/0xd);if(_0x6860b4===_0x570c9d)break;else _0x863f84['push'](_0x863f84['shift']());}catch(_0x53e905){_0x863f84['push'](_0x863f84['shift']());}}}(_0x51a6,0xad88d));function _0x51a6(){const _0x576d73=['8fvggqh','5400645bvwLPi','973372rcWlQY','62232tzzRnY','244370AzNwEJ','parse','2kUXJHV','session_id','12ydXBOr','121kCufWS','145356mMFDtP','434CWDqGU','767clembR','478197zBuOsi','1075631kGfWrQ'];_0x51a6=function(){return _0x576d73;};return _0x51a6();}import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x6d3bfc){console['log'](_0x6d3bfc);}function _0x9f89(_0x350b37,_0x11e6a2){_0x350b37=_0x350b37-0x137;const _0x51a693=_0x51a6();let _0x9f89e6=_0x51a693[_0x350b37];return _0x9f89e6;}export async function readHookInput(){const _0x5b814a=_0x9f89;let _0x11c341='';for await(const _0x5a8028 of process['stdin']){_0x11c341+=_0x5a8028;}try{return JSON[_0x5b814a(0x137)](_0x11c341);}catch{return null;}}export async function getEnabledSessionId(_0x321487){if(_0x321487)return isSessionEnabled(_0x321487)?_0x321487:null;const _0xf1f339=await readHookInput(),_0x4f3293=_0xf1f339?.['session_id'];if(!_0x4f3293||!isSessionEnabled(_0x4f3293))return null;return _0x4f3293;}export async function getEnabledHookContext(_0x273973){const _0x3c37fb=_0x9f89,_0xceb65c={'QpECs':function(_0x383d93,_0x28784b){return _0x383d93(_0x28784b);},'CGBEH':function(_0x1b2799){return _0x1b2799();}};if(_0x273973){if(!_0xceb65c['QpECs'](isSessionEnabled,_0x273973))return null;return{'sessionId':_0x273973,'input':{'session_id':_0x273973}};}const _0x356d98=await _0xceb65c['CGBEH'](readHookInput),_0x223cf5=_0x356d98?.[_0x3c37fb(0x139)];if(!_0x223cf5||!isSessionEnabled(_0x223cf5))return null;return{'sessionId':_0x223cf5,'input':_0x356d98};}
1
+ (function(_0x10c123,_0x25627b){const _0x4404dd=_0x45fb,_0x339155=_0x10c123();while(!![]){try{const _0x3c57d0=parseInt(_0x4404dd(0x171))/0x1+-parseInt(_0x4404dd(0x170))/0x2+parseInt(_0x4404dd(0x16c))/0x3*(-parseInt(_0x4404dd(0x16f))/0x4)+-parseInt(_0x4404dd(0x173))/0x5*(-parseInt(_0x4404dd(0x177))/0x6)+-parseInt(_0x4404dd(0x16d))/0x7+parseInt(_0x4404dd(0x172))/0x8+parseInt(_0x4404dd(0x176))/0x9;if(_0x3c57d0===_0x25627b)break;else _0x339155['push'](_0x339155['shift']());}catch(_0x52480e){_0x339155['push'](_0x339155['shift']());}}}(_0x4f1b,0x7c932));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x4f1b(){const _0x5678e0=['3494202RXHGDZ','parse','xMTHV','stdin','aSUYK','8517jOCrqo','7072695xumTjO','log','176VMfdmO','1860196rFoTaP','262159UNtvxG','6923304adFeAe','5pwLgqz','session_id','IbetG','7791462lFAKXx'];_0x4f1b=function(){return _0x5678e0;};return _0x4f1b();}export function printBlock(_0x3419f4){const _0x30bac7=_0x45fb;console[_0x30bac7(0x16e)](_0x3419f4);}function _0x45fb(_0x4b8404,_0x53e4c1){_0x4b8404=_0x4b8404-0x16b;const _0x4f1be4=_0x4f1b();let _0x45fbab=_0x4f1be4[_0x4b8404];return _0x45fbab;}export async function readHookInput(){const _0x5a6d6b=_0x45fb;let _0x28e4d7='';for await(const _0x2a53fd of process[_0x5a6d6b(0x17a)]){_0x28e4d7+=_0x2a53fd;}try{return JSON[_0x5a6d6b(0x178)](_0x28e4d7);}catch{return null;}}export async function getEnabledSessionId(_0x16eccf){const _0x293284=_0x45fb,_0x423c14={'IbetG':function(_0x174106,_0x344db6){return _0x174106(_0x344db6);},'xMTHV':function(_0x5d5e29){return _0x5d5e29();}};if(_0x16eccf)return _0x423c14[_0x293284(0x175)](isSessionEnabled,_0x16eccf)?_0x16eccf:null;const _0x10e9f6=await _0x423c14[_0x293284(0x179)](readHookInput),_0x3d3c8a=_0x10e9f6?.[_0x293284(0x174)];if(!_0x3d3c8a||!_0x423c14[_0x293284(0x175)](isSessionEnabled,_0x3d3c8a))return null;return _0x3d3c8a;}export async function getEnabledHookContext(_0x3d5e89){const _0x2f83eb=_0x45fb,_0x1c5615={'aSUYK':function(_0x1d6410,_0x27ec84){return _0x1d6410(_0x27ec84);}};if(_0x3d5e89){if(!isSessionEnabled(_0x3d5e89))return null;return{'sessionId':_0x3d5e89,'input':{'session_id':_0x3d5e89}};}const _0x1af6d9=await readHookInput(),_0x2e44d6=_0x1af6d9?.['session_id'];if(!_0x2e44d6||!_0x1c5615[_0x2f83eb(0x16b)](isSessionEnabled,_0x2e44d6))return null;return{'sessionId':_0x2e44d6,'input':_0x1af6d9};}
@@ -1 +1 @@
1
- function _0x5dcd(_0x103fd6,_0x4373e8){_0x103fd6=_0x103fd6-0x1df;const _0x3e1087=_0x3e10();let _0x5dcd44=_0x3e1087[_0x103fd6];return _0x5dcd44;}(function(_0x175860,_0x1e979){const _0x4a9825=_0x5dcd,_0x4f7ad3=_0x175860();while(!![]){try{const _0x5ab5d0=-parseInt(_0x4a9825(0x1e9))/0x1+-parseInt(_0x4a9825(0x1e6))/0x2+parseInt(_0x4a9825(0x1eb))/0x3+parseInt(_0x4a9825(0x1df))/0x4*(parseInt(_0x4a9825(0x1e7))/0x5)+parseInt(_0x4a9825(0x1e0))/0x6*(parseInt(_0x4a9825(0x1e8))/0x7)+parseInt(_0x4a9825(0x1e2))/0x8*(parseInt(_0x4a9825(0x1e4))/0x9)+-parseInt(_0x4a9825(0x1ea))/0xa*(parseInt(_0x4a9825(0x1e5))/0xb);if(_0x5ab5d0===_0x1e979)break;else _0x4f7ad3['push'](_0x4f7ad3['shift']());}catch(_0x48fb3e){_0x4f7ad3['push'](_0x4f7ad3['shift']());}}}(_0x3e10,0xc9157));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';function _0x3e10(){const _0x23dd05=['2156120PySXhk','90865zJpKhw','245413WrDkxl','645495JfmMVH','92500eOwiqW','4347303oDZKxR','324KxdUTx','6aJTVGb','RLZQZ','72dbiiVO','permission_mode','710271fNftcf','1331ADoYdx'];_0x3e10=function(){return _0x23dd05;};return _0x3e10();}export async function planReminder(_0x5b7619){const _0x3b5900=_0x5dcd,_0x35db2e={'RLZQZ':function(_0x2aed04,_0x26e5ea){return _0x2aed04(_0x26e5ea);},'MnPLM':function(_0x2656ad,_0x5c4305){return _0x2656ad(_0x5c4305);}},_0x353b75=await _0x35db2e[_0x3b5900(0x1e1)](getEnabledHookContext,_0x5b7619);if(!_0x353b75)return;if(_0x353b75['input'][_0x3b5900(0x1e3)]!=='plan')return;if(!shouldShowPlanReminder(_0x353b75['sessionId']))return;_0x35db2e['MnPLM'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
1
+ (function(_0x757853,_0x211e2e){const _0x11cee0=_0xf27d,_0x17fb28=_0x757853();while(!![]){try{const _0x2d66e2=parseInt(_0x11cee0(0xe8))/0x1+parseInt(_0x11cee0(0xde))/0x2*(-parseInt(_0x11cee0(0xe2))/0x3)+-parseInt(_0x11cee0(0xe3))/0x4+parseInt(_0x11cee0(0xe9))/0x5*(parseInt(_0x11cee0(0xdd))/0x6)+-parseInt(_0x11cee0(0xe5))/0x7+-parseInt(_0x11cee0(0xdf))/0x8*(parseInt(_0x11cee0(0xe4))/0x9)+parseInt(_0x11cee0(0xe1))/0xa*(parseInt(_0x11cee0(0xe6))/0xb);if(_0x2d66e2===_0x211e2e)break;else _0x17fb28['push'](_0x17fb28['shift']());}catch(_0x2618c8){_0x17fb28['push'](_0x17fb28['shift']());}}}(_0xdba1,0x4dcc8));function _0xdba1(){const _0x526124=['10ExTgwV','6KvibBl','2459036QGQPES','1032435mJyCyv','1865927qCwtaM','15056426ZSCtci','plan','478902YuGNFK','25Htsjub','iyFDC','zLwtu','650358LHVdsS','616074FfiREM','40LdMNlM','nVMDS'];_0xdba1=function(){return _0x526124;};return _0xdba1();}import{printBlock,getEnabledHookContext}from'./output.js';function _0xf27d(_0x38c2b4,_0x392b99){_0x38c2b4=_0x38c2b4-0xdb;const _0xdba17f=_0xdba1();let _0xf27d3a=_0xdba17f[_0x38c2b4];return _0xf27d3a;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x24ca15){const _0x53cab8=_0xf27d,_0x1bdf48={'iyFDC':function(_0x2a7520,_0x223b3){return _0x2a7520!==_0x223b3;},'zLwtu':_0x53cab8(0xe7),'nVMDS':function(_0x1d84f6,_0x470120){return _0x1d84f6(_0x470120);}},_0x246707=await getEnabledHookContext(_0x24ca15);if(!_0x246707)return;if(_0x1bdf48[_0x53cab8(0xdb)](_0x246707['input']['permission_mode'],_0x1bdf48[_0x53cab8(0xdc)]))return;if(!_0x1bdf48[_0x53cab8(0xe0)](shouldShowPlanReminder,_0x246707['sessionId']))return;printBlock('===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20ANY\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill\x20NOW**\x20-\x20specifically\x20the\x20create.md\x20instructions\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20to\x20the\x20end\x20of\x20your\x20plan\x0a\x0aDO\x20NOT\x20write\x20scenarios\x20without\x20reading\x20create.md\x20first.\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0aYour\x20plan\x20must\x20end\x20with:\x0a```\x0a###\x20Ranger\x20Feature\x20Review\x20Specification\x20(create\x20this\x20first\x20with\x20`ranger\x20create`)\x0aFeature\x20Review\x20Name:\x20<name>\x0aDescription:\x20<description>\x0aScenarios:\x0a1.\x20<E2E\x20user\x20flow\x20that\x20can\x20be\x20verified\x20in\x20browser>\x0a2.\x20<another\x20E2E\x20user\x20flow\x20if\x20needed>\x0a```\x0a\x0aThen\x20run:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario1>\x22\x20-c\x20\x22<scenario2>\x22`\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- function _0x2e1c(_0x1942a7,_0x3b7557){_0x1942a7=_0x1942a7-0xeb;const _0x2d29c6=_0x2d29();let _0x2e1c0c=_0x2d29c6[_0x1942a7];return _0x2e1c0c;}(function(_0x69d9c1,_0xbfb4b8){const _0x5ea787=_0x2e1c,_0x2c62e4=_0x69d9c1();while(!![]){try{const _0x335fcd=-parseInt(_0x5ea787(0xf0))/0x1*(-parseInt(_0x5ea787(0xf2))/0x2)+-parseInt(_0x5ea787(0xed))/0x3*(-parseInt(_0x5ea787(0xf1))/0x4)+parseInt(_0x5ea787(0xee))/0x5+-parseInt(_0x5ea787(0xf3))/0x6*(-parseInt(_0x5ea787(0xf4))/0x7)+-parseInt(_0x5ea787(0xef))/0x8+parseInt(_0x5ea787(0xf5))/0x9+-parseInt(_0x5ea787(0xeb))/0xa*(parseInt(_0x5ea787(0xec))/0xb);if(_0x335fcd===_0xbfb4b8)break;else _0x2c62e4['push'](_0x2c62e4['shift']());}catch(_0x34d52c){_0x2c62e4['push'](_0x2c62e4['shift']());}}}(_0x2d29,0xe426b));import{printBlock,getEnabledSessionId}from'./output.js';function _0x2d29(){const _0x12f59c=['482DiZvRj','6AIGYbc','11312777iUSFEQ','16395696NlyVqV','251800ycdYBH','2794yfSKyQ','4615557WyxDHr','9150835DYpOnv','8965256xAYFWW','6823TLFigz','4VOHsQl'];_0x2d29=function(){return _0x12f59c;};return _0x2d29();}export async function planStart(_0x57888b){const _0x13147b={'VSlqg':function(_0x3cad64,_0x1be61e){return _0x3cad64(_0x1be61e);},'yoiLv':function(_0x4efd95,_0x4c0e9b){return _0x4efd95(_0x4c0e9b);}},_0x4cc0b5=await _0x13147b['VSlqg'](getEnabledSessionId,_0x57888b);if(!_0x4cc0b5)return;_0x13147b['yoiLv'](printBlock,'===\x20RANGER:\x20ACTION\x20REQUIRED\x20===\x0a\x0aIf\x20this\x20plan\x20involves\x20UI\x20changes,\x20you\x20MUST:\x0a\x0a1.\x20**READ\x20/ranger\x20skill**\x20-\x20specifically\x20create.md\x0a2.\x20**Add\x20a\x20Ranger\x20Feature\x20Review\x20Specification**\x20at\x20the\x20end\x20of\x20your\x20plan\x0a\x0aScenarios\x20are\x20E2E\x20test\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22Button\x20is\x20visible\x22\x0a\x0aAfter\x20planning,\x20run:\x0a`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<E2E\x20flow\x201>\x22\x20-c\x20\x22<E2E\x20flow\x202>\x22`\x0a\x0a===\x20END\x20===');}
1
+ (function(_0x31f1f4,_0x8eca9c){const _0xf25a4c=_0x4d5b,_0x79655=_0x31f1f4();while(!![]){try{const _0x2fddb8=-parseInt(_0xf25a4c(0x15f))/0x1+-parseInt(_0xf25a4c(0x15d))/0x2+parseInt(_0xf25a4c(0x165))/0x3+-parseInt(_0xf25a4c(0x162))/0x4+parseInt(_0xf25a4c(0x163))/0x5+-parseInt(_0xf25a4c(0x164))/0x6*(parseInt(_0xf25a4c(0x15b))/0x7)+-parseInt(_0xf25a4c(0x15c))/0x8*(-parseInt(_0xf25a4c(0x15e))/0x9);if(_0x2fddb8===_0x8eca9c)break;else _0x79655['push'](_0x79655['shift']());}catch(_0x1ab032){_0x79655['push'](_0x79655['shift']());}}}(_0x1527,0x6bc52));import{printBlock,getEnabledSessionId}from'./output.js';function _0x4d5b(_0x56ebb1,_0x18ddac){_0x56ebb1=_0x56ebb1-0x15b;const _0x1527fb=_0x1527();let _0x4d5bf8=_0x1527fb[_0x56ebb1];return _0x4d5bf8;}function _0x1527(){const _0x417366=['232VMrBla','1082808SCJCNd','447570OhnFgZ','323341NWNiAK','ibyuI','===\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===','1230680zvedun','2710410IHczBJ','81714aEzGMT','1135902oQvojI','385HqcaUl'];_0x1527=function(){return _0x417366;};return _0x1527();}export async function planStart(_0x2042a8){const _0x1ac944=_0x4d5b,_0x54eb40={'ibyuI':function(_0x32f14f,_0x1ec10a){return _0x32f14f(_0x1ec10a);}},_0x270ecc=await _0x54eb40[_0x1ac944(0x160)](getEnabledSessionId,_0x2042a8);if(!_0x270ecc)return;printBlock(_0x1ac944(0x161));}
@@ -1 +1 @@
1
- (function(_0x2afece,_0x13a82a){const _0x18701c=_0x4509,_0x189bd9=_0x2afece();while(!![]){try{const _0xa158d=parseInt(_0x18701c(0x177))/0x1+parseInt(_0x18701c(0x170))/0x2*(parseInt(_0x18701c(0x172))/0x3)+-parseInt(_0x18701c(0x178))/0x4+parseInt(_0x18701c(0x16c))/0x5+parseInt(_0x18701c(0x171))/0x6+parseInt(_0x18701c(0x173))/0x7*(parseInt(_0x18701c(0x174))/0x8)+-parseInt(_0x18701c(0x176))/0x9;if(_0xa158d===_0x13a82a)break;else _0x189bd9['push'](_0x189bd9['shift']());}catch(_0x2eb586){_0x189bd9['push'](_0x189bd9['shift']());}}}(_0x146f,0xd076f));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x4fdea8){const _0x4111a2=_0x4509,_0x381b83={'TNXNL':function(_0x3c4513,_0x84e168){return _0x3c4513(_0x84e168);},'ypaWk':function(_0x374553){return _0x374553();},'jENXq':function(_0x350789,_0x5c6742){return _0x350789(_0x5c6742);},'TYkBh':_0x4111a2(0x16f)},_0x477819=await _0x381b83['TNXNL'](getEnabledSessionId,_0x4fdea8);if(!_0x477819)return;updateBranchTracking(_0x477819);const _0x426910=await _0x381b83['ypaWk'](getToken);if(!_0x426910)return;const _0x1fcf96=_0x381b83[_0x4111a2(0x16e)](getSessionEntry,_0x477819);if(_0x1fcf96){const _0xbe9631={'hookSpecificOutput':{'hookEventName':_0x381b83['TYkBh'],'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[_0x4111a2(0x16d)](JSON['stringify'](_0xbe9631));return;}const _0x18d9d3={'hookSpecificOutput':{'hookEventName':_0x381b83[_0x4111a2(0x175)],'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console[_0x4111a2(0x16d)](JSON[_0x4111a2(0x179)](_0x18d9d3));}function _0x4509(_0x4a76e7,_0x44161f){_0x4a76e7=_0x4a76e7-0x16c;const _0x146f66=_0x146f();let _0x45096f=_0x146f66[_0x4a76e7];return _0x45096f;}function _0x146f(){const _0x440a5e=['7673595sMjaJd','log','jENXq','PostToolUse','2EkRjRW','8960772xqyJRP','17061oVhuGM','14GlkpEm','2290088pSAdfX','TYkBh','25066530NcwiAd','952736DPrVex','3680340EiaAUU','stringify'];_0x146f=function(){return _0x440a5e;};return _0x146f();}
1
+ function _0x5aa8(){const _0x256c0f=['24754Bcvixc','15VIXrch','1270245omfeTo','1152DnxrAB','17872tONyll','439373sMajmX','2589VnMhdv','171RDiwWR','9781080gmaAiy','stringify','5784DzCwXD','567348Wrtckt','70DZAdJI','PostToolUse'];_0x5aa8=function(){return _0x256c0f;};return _0x5aa8();}(function(_0xf1cf5f,_0x5dc344){const _0x39b6e3=_0x2a8e,_0x57b36e=_0xf1cf5f();while(!![]){try{const _0x50c8eb=-parseInt(_0x39b6e3(0x1d7))/0x1*(parseInt(_0x39b6e3(0x1d6))/0x2)+parseInt(_0x39b6e3(0x1dc))/0x3*(-parseInt(_0x39b6e3(0x1d2))/0x4)+parseInt(_0x39b6e3(0x1d8))/0x5+-parseInt(_0x39b6e3(0x1d3))/0x6*(parseInt(_0x39b6e3(0x1d4))/0x7)+parseInt(_0x39b6e3(0x1da))/0x8*(parseInt(_0x39b6e3(0x1dd))/0x9)+-parseInt(_0x39b6e3(0x1de))/0xa+parseInt(_0x39b6e3(0x1db))/0xb*(parseInt(_0x39b6e3(0x1d9))/0xc);if(_0x50c8eb===_0x5dc344)break;else _0x57b36e['push'](_0x57b36e['shift']());}catch(_0x1170e8){_0x57b36e['push'](_0x57b36e['shift']());}}}(_0x5aa8,0xbce96));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x2a8e(_0x68a65e,_0x203671){_0x68a65e=_0x68a65e-0x1d2;const _0x5aa8a6=_0x5aa8();let _0x2a8ec7=_0x5aa8a6[_0x68a65e];return _0x2a8ec7;}export async function postEdit(_0x49cdf2){const _0xa57ed8=_0x2a8e,_0x44cf68={'siryF':function(_0x4298bf,_0x31390f){return _0x4298bf(_0x31390f);}},_0x23d4ca=await _0x44cf68['siryF'](getEnabledSessionId,_0x49cdf2);if(!_0x23d4ca)return;updateBranchTracking(_0x23d4ca);const _0x2b5818=await getToken();if(!_0x2b5818)return;const _0x271375=_0x44cf68['siryF'](getSessionEntry,_0x23d4ca);if(_0x271375){const _0x1d1257={'hookSpecificOutput':{'hookEventName':'PostToolUse','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[_0xa57ed8(0x1df)](_0x1d1257));return;}const _0x5a3880={'hookSpecificOutput':{'hookEventName':_0xa57ed8(0x1d5),'additionalContext':'RANGER:\x20If\x20this\x20is\x20for\x20a\x20UI\x20feature,\x20you\x20MUST\x20use\x20/ranger\x20to\x20either\x20create\x20a\x20new\x20feature\x20review\x20or\x20resume\x20an\x20existing\x20one.'}};console['log'](JSON['stringify'](_0x5a3880));}
@@ -1 +1 @@
1
- function _0x4e47(_0x583f6f,_0x39cfea){_0x583f6f=_0x583f6f-0x1e9;const _0x2c2720=_0x2c27();let _0x4e478c=_0x2c2720[_0x583f6f];return _0x4e478c;}(function(_0x3ca915,_0x462401){const _0x51d42f=_0x4e47,_0xd501da=_0x3ca915();while(!![]){try{const _0xc83db0=-parseInt(_0x51d42f(0x1ed))/0x1*(-parseInt(_0x51d42f(0x1ea))/0x2)+parseInt(_0x51d42f(0x1eb))/0x3*(-parseInt(_0x51d42f(0x1f4))/0x4)+-parseInt(_0x51d42f(0x1f5))/0x5+parseInt(_0x51d42f(0x1f3))/0x6*(parseInt(_0x51d42f(0x1f6))/0x7)+-parseInt(_0x51d42f(0x1f2))/0x8*(-parseInt(_0x51d42f(0x1ef))/0x9)+-parseInt(_0x51d42f(0x1f0))/0xa*(parseInt(_0x51d42f(0x1ee))/0xb)+parseInt(_0x51d42f(0x1e9))/0xc;if(_0xc83db0===_0x462401)break;else _0xd501da['push'](_0xd501da['shift']());}catch(_0x5db4c1){_0xd501da['push'](_0xd501da['shift']());}}}(_0x2c27,0x4a7bd));import{getToken}from'../utils/keychain.js';function _0x2c27(){const _0x158070=['5558DxQuwe','5730516rHZjSB','14072wKqGFN','3183IbNokj','Suqeu','86amnvbD','209Eyvtbd','9KdVPXh','235630jjFzzu','YdZNE','670696kqDRzh','1812kLRyXx','948HjBFCc','2010125cmcLup'];_0x2c27=function(){return _0x158070;};return _0x2c27();}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x48e859){const _0x440d75=_0x4e47,_0x15c75b={'Suqeu':function(_0x446589){return _0x446589();},'YdZNE':function(_0x37d90a,_0x3d09ff){return _0x37d90a(_0x3d09ff);}},_0x1e66b7=await getEnabledSessionId(_0x48e859);if(!_0x1e66b7)return;try{const _0x53121a=await _0x15c75b[_0x440d75(0x1ec)](getToken);if(!_0x53121a)return;_0x15c75b[_0x440d75(0x1f1)](printBlock,'===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
1
+ function _0x5d15(_0x3e8c67,_0x4edebd){_0x3e8c67=_0x3e8c67-0x1cb;const _0x2ff871=_0x2ff8();let _0x5d15f8=_0x2ff871[_0x3e8c67];return _0x5d15f8;}function _0x2ff8(){const _0x44f8aa=['319135ZuUbfU','751932sfKfrM','20FKjACn','3oVMVGQ','1249068vYpRko','10iNZcfN','yilOe','10056805kihZwB','2205044ufvSGp','1210958LRHMvL','230290UKKGBR','48reaiwJ'];_0x2ff8=function(){return _0x44f8aa;};return _0x2ff8();}(function(_0x58f677,_0x4b3cdd){const _0xcb6fec=_0x5d15,_0x3bbc9e=_0x58f677();while(!![]){try{const _0x23634b=-parseInt(_0xcb6fec(0x1d1))/0x1+parseInt(_0xcb6fec(0x1cf))/0x2*(-parseInt(_0xcb6fec(0x1d6))/0x3)+-parseInt(_0xcb6fec(0x1d5))/0x4*(parseInt(_0xcb6fec(0x1d3))/0x5)+parseInt(_0xcb6fec(0x1cb))/0x6+-parseInt(_0xcb6fec(0x1d0))/0x7*(-parseInt(_0xcb6fec(0x1d2))/0x8)+parseInt(_0xcb6fec(0x1d4))/0x9+-parseInt(_0xcb6fec(0x1cc))/0xa*(-parseInt(_0xcb6fec(0x1ce))/0xb);if(_0x23634b===_0x4b3cdd)break;else _0x3bbc9e['push'](_0x3bbc9e['shift']());}catch(_0x316235){_0x3bbc9e['push'](_0x3bbc9e['shift']());}}}(_0x2ff8,0x9087e));import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x63402){const _0x35c371=_0x5d15,_0x2fdd72={'yilOe':function(_0x522773,_0x412b30){return _0x522773(_0x412b30);},'QtlaL':function(_0x27a25a){return _0x27a25a();}},_0x1bf6ec=await _0x2fdd72[_0x35c371(0x1cd)](getEnabledSessionId,_0x63402);if(!_0x1bf6ec)return;try{const _0xa24ed1=await _0x2fdd72['QtlaL'](getToken);if(!_0xa24ed1)return;printBlock('===\x20RANGER:\x20PRESERVE\x20IN\x20COMPACTION\x20===\x0a\x0aIf\x20you\x20created\x20a\x20plan\x20with\x20a\x20**Ranger\x20Feature\x20Review\x20Specification**,\x20you\x20MUST\x20preserve\x20it\x20in\x20the\x20compaction\x20summary.\x0a\x0aThe\x20specification\x20contains\x20scenarios\x20that\x20will\x20be\x20used\x20with\x20`ranger\x20create`.');}catch{}}
@@ -1 +1 @@
1
- (function(_0x32a6e5,_0x1d5af1){const _0x8039b0=_0x5583,_0x1885fb=_0x32a6e5();while(!![]){try{const _0x32802f=parseInt(_0x8039b0(0xf0))/0x1+parseInt(_0x8039b0(0xeb))/0x2*(parseInt(_0x8039b0(0xef))/0x3)+parseInt(_0x8039b0(0xf4))/0x4*(parseInt(_0x8039b0(0xf5))/0x5)+parseInt(_0x8039b0(0xf6))/0x6*(parseInt(_0x8039b0(0xed))/0x7)+-parseInt(_0x8039b0(0xf3))/0x8*(parseInt(_0x8039b0(0xf7))/0x9)+parseInt(_0x8039b0(0xf1))/0xa*(-parseInt(_0x8039b0(0xee))/0xb)+-parseInt(_0x8039b0(0xec))/0xc;if(_0x32802f===_0x1d5af1)break;else _0x1885fb['push'](_0x1885fb['shift']());}catch(_0x11316c){_0x1885fb['push'](_0x1885fb['shift']());}}}(_0x108f,0xaa35c));function _0x5583(_0x5d400d,_0x4a6d1b){_0x5d400d=_0x5d400d-0xea;const _0x108f21=_0x108f();let _0x5583d6=_0x108f21[_0x5d400d];return _0x5583d6;}import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';export async function sessionEnd(_0x3e7aa1){const _0x49801a=_0x5583,_0x27175b={'gjmTH':_0x49801a(0xf2),'FanoK':function(_0x5216f3,_0x434389){return _0x5216f3(_0x434389);}};let _0x518622=_0x3e7aa1,_0x2d73ea;if(!_0x3e7aa1){const _0x9d13fd=await readHookInput();_0x518622=_0x9d13fd?.['session_id'],_0x2d73ea=_0x9d13fd?.['reason'];}if(!_0x518622)return;_0x2d73ea===_0x27175b[_0x49801a(0xea)]&&_0x27175b['FanoK'](recordEnabledSessionCleared,_0x518622);}function _0x108f(){const _0x3b20fc=['15690660nLDlao','10913nJvLWx','92884JhgeCr','51NYqLiK','1364408JDrqxd','1540hotUeg','clear','8yPPFwy','364692uGRaCh','65IfOcqV','414lAlgxt','1478934Prxlbe','gjmTH','95554CwJvGv'];_0x108f=function(){return _0x3b20fc;};return _0x108f();}
1
+ function _0x46fd(_0x1dc3d2,_0x5236be){_0x1dc3d2=_0x1dc3d2-0x1af;const _0x3e1ab0=_0x3e1a();let _0x46fdd2=_0x3e1ab0[_0x1dc3d2];return _0x46fdd2;}(function(_0xdd4129,_0x5fdc14){const _0x4ff65c=_0x46fd,_0xaf651b=_0xdd4129();while(!![]){try{const _0x19d4aa=-parseInt(_0x4ff65c(0x1b5))/0x1+parseInt(_0x4ff65c(0x1b2))/0x2*(parseInt(_0x4ff65c(0x1b9))/0x3)+parseInt(_0x4ff65c(0x1b8))/0x4+-parseInt(_0x4ff65c(0x1b3))/0x5+parseInt(_0x4ff65c(0x1b6))/0x6*(parseInt(_0x4ff65c(0x1b4))/0x7)+parseInt(_0x4ff65c(0x1b0))/0x8*(-parseInt(_0x4ff65c(0x1b1))/0x9)+parseInt(_0x4ff65c(0x1af))/0xa;if(_0x19d4aa===_0x5fdc14)break;else _0xaf651b['push'](_0xaf651b['shift']());}catch(_0x5af5f9){_0xaf651b['push'](_0xaf651b['shift']());}}}(_0x3e1a,0x32874));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';import{readHookInput}from'./output.js';function _0x3e1a(){const _0x2f2afe=['21lqGPgv','272565zorsZr','304908JbShhQ','session_id','1303476TUeHqT','93303sMIgPa','3159490MtEAnX','44328Fefmnt','351wtLBjd','2wsrzSx','648725TVoIBV'];_0x3e1a=function(){return _0x2f2afe;};return _0x3e1a();}export async function sessionEnd(_0x254711){const _0x124713=_0x46fd,_0x488df1={'ABOir':function(_0x319975){return _0x319975();},'RvUHo':'clear'};let _0x3aa324=_0x254711,_0x11b391;if(!_0x254711){const _0x22b6f7=await _0x488df1['ABOir'](readHookInput);_0x3aa324=_0x22b6f7?.[_0x124713(0x1b7)],_0x11b391=_0x22b6f7?.['reason'];}if(!_0x3aa324)return;_0x11b391===_0x488df1['RvUHo']&&recordEnabledSessionCleared(_0x3aa324);}
@@ -1 +1 @@
1
- const _0x4ac9a2=_0x5b87;function _0x5b87(_0x459d7d,_0x5a13ea){_0x459d7d=_0x459d7d-0x8b;const _0x26b004=_0x26b0();let _0x5b87d2=_0x26b004[_0x459d7d];return _0x5b87d2;}function _0x26b0(){const _0x1ad798=['21514FthXvm','session_id','1980306fNeDKA','ZCMKJ','838278CkKMex','trackCommandStart','hook:session-start','export\x20CLAUDE_SESSION_ID=\x22','source','40WOTMpK','dJRld','3421195ysiTMb','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a=================================================================','stringify','ZKJTz','12XQLVtq','14WISwIm','3454736ePCzXU','730184tPhLGw','SessionStart','588810mRwnfs','parse'];_0x26b0=function(){return _0x1ad798;};return _0x26b0();}(function(_0x378632,_0x36e689){const _0xa80542=_0x5b87,_0x324521=_0x378632();while(!![]){try{const _0x13886a=-parseInt(_0xa80542(0x8c))/0x1*(parseInt(_0xa80542(0x92))/0x2)+parseInt(_0xa80542(0x90))/0x3*(-parseInt(_0xa80542(0x8b))/0x4)+parseInt(_0xa80542(0x9d))/0x5+parseInt(_0xa80542(0x94))/0x6+parseInt(_0xa80542(0x8e))/0x7+parseInt(_0xa80542(0x8d))/0x8+parseInt(_0xa80542(0x96))/0x9*(-parseInt(_0xa80542(0x9b))/0xa);if(_0x13886a===_0x36e689)break;else _0x324521['push'](_0x324521['shift']());}catch(_0xfd84ee){_0x324521['push'](_0x324521['shift']());}}}(_0x26b0,0x6b0c4));import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT=_0x4ac9a2(0x9e);export async function sessionStart(_0x5f377a){const _0x52e6e9=_0x4ac9a2,_0x1c37df={'ZCMKJ':_0x52e6e9(0x93),'ZKJTz':function(_0x5a8824,_0x5d2522){return _0x5a8824(_0x5d2522);},'uItcK':function(_0x4ee6c7,_0x108465){return _0x4ee6c7(_0x108465);},'AcMCa':_0x52e6e9(0x98),'dJRld':'success'};let _0x178414=_0x5f377a||'',_0x6484b7;if(!_0x5f377a){let _0xffb532='';for await(const _0xa75a6e of process['stdin']){_0xffb532+=_0xa75a6e;}try{const _0x51abc7=JSON[_0x52e6e9(0x91)](_0xffb532);_0x178414=_0x51abc7[_0x1c37df[_0x52e6e9(0x95)]]||'',_0x6484b7=_0x51abc7[_0x52e6e9(0x9a)];}catch{}const _0x12a3a4=process['env']['CLAUDE_ENV_FILE'];if(_0x12a3a4&&_0x178414)try{await appendFile(_0x12a3a4,_0x52e6e9(0x99)+_0x178414+'\x22\x0a');}catch{}}if(_0x178414){_0x1c37df[_0x52e6e9(0xa0)](shouldAutoEnableAfterClear,_0x6484b7)&&autoEnableAfterClear(_0x178414);initBranchTracking(_0x178414);const _0x3c7997=_0x1c37df['ZKJTz'](isSessionEnabled,_0x178414);try{const _0x58ff46=_0x1c37df['uItcK'](createTelemetryCollector,_0x1c37df['AcMCa']);await _0x58ff46[_0x52e6e9(0x97)]({'sessionId':_0x178414,'hooksEnabled':_0x3c7997}),await _0x58ff46['trackCommandEnd'](_0x1c37df[_0x52e6e9(0x9c)]);}catch{}if(_0x3c7997){const _0xc30e1a=getCurrentBranch(),_0x38f583=_0xc30e1a&&_0xc30e1a!=='main'&&_0xc30e1a!=='master'?'\x20(Branch:\x20'+_0xc30e1a+')':'',_0x338454={'hookSpecificOutput':{'hookEventName':_0x52e6e9(0x8f),'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x38f583}};console['log'](JSON[_0x52e6e9(0x9f)](_0x338454));}}}
1
+ const _0x203acb=_0x357d;(function(_0x5a29cf,_0x51d88b){const _0x11e510=_0x357d,_0x1a9c90=_0x5a29cf();while(!![]){try{const _0x1ba9ce=parseInt(_0x11e510(0xd8))/0x1*(-parseInt(_0x11e510(0xcd))/0x2)+parseInt(_0x11e510(0xce))/0x3*(-parseInt(_0x11e510(0xd0))/0x4)+-parseInt(_0x11e510(0xcc))/0x5+parseInt(_0x11e510(0xd1))/0x6*(-parseInt(_0x11e510(0xda))/0x7)+-parseInt(_0x11e510(0xd6))/0x8*(-parseInt(_0x11e510(0xd4))/0x9)+-parseInt(_0x11e510(0xd3))/0xa+parseInt(_0x11e510(0xd5))/0xb;if(_0x1ba9ce===_0x51d88b)break;else _0x1a9c90['push'](_0x1a9c90['shift']());}catch(_0x2a2348){_0x1a9c90['push'](_0x1a9c90['shift']());}}}(_0xbf0c,0xd42e8));import{appendFile}from'fs/promises';function _0xbf0c(){const _0x36bf42=['CLAUDE_ENV_FILE','main','4880885RQcIRA','114WTbluf','9312wToEHV','env','124awEWRJ','18tMiHjH','hook:session-start','12516790mAUZvh','6988653JiyDgw','45904551dZuyNy','8kDvYHO','\x20(Branch:\x20','30337YZmpUN','trackCommandEnd','63637mJAsjM','parse','session_id','yowzb','source','uyefA','=================================================================\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🚨\x20RANGER\x20IS\x20ACTIVE\x20🚨\x0a=================================================================\x0a\x0aThis\x20session\x20has\x20Ranger\x20ENABLED.\x20Before\x20doing\x20ANYTHING\x20else:\x0a\x0a1.\x20**READ\x20the\x20/ranger\x20skill\x20FIRST**\x20-\x20Run\x20the\x20skill\x20to\x20understand\x20the\x20required\x20workflow\x20for\x20UI\x20features\x0a\x0a2.\x20**Check\x20for\x20existing\x20feature\x20reviews**\x20-\x20Run\x20`ranger\x20list`\x20to\x20see\x20if\x20there\x27s\x20an\x20in-progress\x20feature\x20review\x20to\x20resume\x0a\x0a3.\x20**For\x20ANY\x20UI\x20work**:\x20You\x20MUST\x20either:\x0a\x20\x20\x20-\x20Resume\x20an\x20existing\x20feature\x20review:\x20`ranger\x20resume\x20<id>`\x0a\x20\x20\x20-\x20Create\x20a\x20new\x20feature\x20review:\x20`ranger\x20create\x20\x22<name>\x22\x20-d\x20\x22<desc>\x22\x20-c\x20\x22<scenario>\x22`\x0a\x0a4.\x20**If\x20resuming\x20a\x20feature\x20review\x20with\x20reviewer\x20comments**:\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20reviewers\x20want\x20fixed\x20before\x20making\x20code\x20changes\x0a\x0a================================================================='];_0xbf0c=function(){return _0x36bf42;};return _0xbf0c();}import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT=_0x203acb(0xc9);function _0x357d(_0x39d80d,_0x22d2cb){_0x39d80d=_0x39d80d-0xc7;const _0xbf0c19=_0xbf0c();let _0x357d70=_0xbf0c19[_0x39d80d];return _0x357d70;}export async function sessionStart(_0x1a2fda){const _0x44e229=_0x203acb,_0x952fb7={'WtXXq':_0x44e229(0xdc),'uyefA':function(_0x5976f4,_0x33f3f4,_0x41b10d){return _0x5976f4(_0x33f3f4,_0x41b10d);},'XWHvJ':function(_0x3366bd,_0x56c26d){return _0x3366bd(_0x56c26d);},'lgBLs':function(_0x4af4c2,_0x48778c){return _0x4af4c2(_0x48778c);},'TLxRl':'success','yowzb':function(_0x129867,_0x422930){return _0x129867!==_0x422930;},'MYUbX':_0x44e229(0xcb),'EriOb':function(_0x2a3bf8,_0x30cb0a){return _0x2a3bf8+_0x30cb0a;}};let _0x20f261=_0x1a2fda||'',_0x2a65df;if(!_0x1a2fda){let _0x11ba2f='';for await(const _0xeea556 of process['stdin']){_0x11ba2f+=_0xeea556;}try{const _0x548b68=JSON[_0x44e229(0xdb)](_0x11ba2f);_0x20f261=_0x548b68[_0x952fb7['WtXXq']]||'',_0x2a65df=_0x548b68[_0x44e229(0xc7)];}catch{}const _0x2a11ff=process[_0x44e229(0xcf)][_0x44e229(0xca)];if(_0x2a11ff&&_0x20f261)try{await _0x952fb7[_0x44e229(0xc8)](appendFile,_0x2a11ff,'export\x20CLAUDE_SESSION_ID=\x22'+_0x20f261+'\x22\x0a');}catch{}}if(_0x20f261){_0x952fb7['XWHvJ'](shouldAutoEnableAfterClear,_0x2a65df)&&autoEnableAfterClear(_0x20f261);initBranchTracking(_0x20f261);const _0x288740=isSessionEnabled(_0x20f261);try{const _0x4d852b=_0x952fb7['lgBLs'](createTelemetryCollector,_0x44e229(0xd2));await _0x4d852b['trackCommandStart']({'sessionId':_0x20f261,'hooksEnabled':_0x288740}),await _0x4d852b[_0x44e229(0xd9)](_0x952fb7['TLxRl']);}catch{}if(_0x288740){const _0x385756=getCurrentBranch(),_0x491d60=_0x385756&&_0x952fb7[_0x44e229(0xdd)](_0x385756,_0x952fb7['MYUbX'])&&_0x952fb7['yowzb'](_0x385756,'master')?_0x44e229(0xd7)+_0x385756+')':'',_0x27b399={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':_0x952fb7['EriOb'](RANGER_AUTO_ENABLED_PROMPT,_0x491d60)}};console['log'](JSON['stringify'](_0x27b399));}}}