@ranger-testing/ranger-cli 2.1.3 → 2.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +2 -2
@@ -1 +1 @@
1
- function _0xa8b0(){const _0x19fdfc=['9GvEysL','includes','length','baseUrl','AlsZz','sessions','bug-bashes','1939NOAeVL','FIQzl','56518NKPnYU','21832wOIVwc','1172910EBSWjg','push','kukWp','settings.json','1859270tsvDMD','2199356yJSnIG','log','legacy','vWpmg','\x0aNo\x20profiles\x20found.','6GJlYFk','1807210nYHXDI','isDirectory','\x20\x20\x20\x20\x20\x20Details:\x20','environmentDetails','ZMuao','reports','.txt','4860XcpoiM','3kGTRxW','283848cOUeiy','VqQcs','local','qAxwU'];_0xa8b0=function(){return _0x19fdfc;};return _0xa8b0();}const _0x517e83=_0x3950;(function(_0x219844,_0x5521d2){const _0x43d9bb=_0x3950,_0x14cedc=_0x219844();while(!![]){try{const _0x1e308e=parseInt(_0x43d9bb(0x13b))/0x1+parseInt(_0x43d9bb(0x155))/0x2+parseInt(_0x43d9bb(0x13a))/0x3*(parseInt(_0x43d9bb(0x14f))/0x4)+parseInt(_0x43d9bb(0x14e))/0x5*(parseInt(_0x43d9bb(0x154))/0x6)+-parseInt(_0x43d9bb(0x146))/0x7*(-parseInt(_0x43d9bb(0x149))/0x8)+-parseInt(_0x43d9bb(0x13f))/0x9*(parseInt(_0x43d9bb(0x14a))/0xa)+parseInt(_0x43d9bb(0x148))/0xb*(-parseInt(_0x43d9bb(0x139))/0xc);if(_0x1e308e===_0x5521d2)break;else _0x14cedc['push'](_0x14cedc['shift']());}catch(_0x16b35b){_0x14cedc['push'](_0x14cedc['shift']());}}}(_0xa8b0,0xa2d12));function _0x3950(_0x4bfca8,_0x3b552a){_0x4bfca8=_0x4bfca8-0x135;const _0xa8b01c=_0xa8b0();let _0x395077=_0xa8b01c[_0x4bfca8];return _0x395077;}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';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x517e83(0x144),_0x517e83(0x145),_0x517e83(0x137),'local','ci'];export async function getEnvNames(){const _0x2dc426=_0x517e83,_0x17e744={'PaDBX':function(_0x57772e){return _0x57772e();},'SNbgd':function(_0x2c85fd,_0xbadde3){return _0x2c85fd(_0xbadde3);},'ZMuao':_0x2dc426(0x13d),'kukWp':function(_0x12ca3e,_0x41f9e8){return _0x12ca3e(_0x41f9e8);},'CeTXo':function(_0x5179f1,_0x5a5501,_0xc2b4fb){return _0x5179f1(_0x5a5501,_0xc2b4fb);},'FIQzl':function(_0x4b6736,_0xb82300){return _0x4b6736(_0xb82300);},'AlsZz':function(_0x590d32,_0x37779b){return _0x590d32(_0x37779b);},'yOUjw':_0x2dc426(0x14d)},_0x39c112=_0x17e744['PaDBX'](getRangerDir);if(!_0x17e744['SNbgd'](existsSync,_0x39c112))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x3d176c=await readActiveProfileName(),_0x2064f2=[],_0x2ab3bb={},_0x17bfd2=join(_0x39c112,_0x17e744[_0x2dc426(0x136)]);if(existsSync(_0x17bfd2)){const _0x5f09e2=await _0x17e744[_0x2dc426(0x14c)](readdir,_0x17bfd2);for(const _0x38b716 of _0x5f09e2){const _0x175690=join(_0x17bfd2,_0x38b716),_0x95a56d=await stat(_0x175690);_0x95a56d['isDirectory']()&&(_0x2064f2[_0x2dc426(0x14b)](_0x38b716),_0x2ab3bb[_0x38b716]=_0x2dc426(0x13d));}}const _0x5985bb=_0x17e744['CeTXo'](join,_0x39c112,'ci');if(existsSync(_0x5985bb)){const _0x2c0ad8=await readdir(_0x5985bb);for(const _0x4bee6e of _0x2c0ad8){const _0x7da4a3=join(_0x5985bb,_0x4bee6e),_0x5f0810=await _0x17e744[_0x2dc426(0x147)](stat,_0x7da4a3);_0x5f0810['isDirectory']()&&(_0x2064f2['push'](_0x4bee6e),_0x2ab3bb[_0x4bee6e]='ci');}}const _0x59efee=await readdir(_0x39c112);for(const _0x96578e of _0x59efee){if(NON_ENV_DIRS[_0x2dc426(0x140)](_0x96578e))continue;if(_0x96578e['startsWith']('.'))continue;if(_0x96578e['endsWith'](_0x2dc426(0x138)))continue;const _0xa3b9c9=join(_0x39c112,_0x96578e),_0x2ddb93=await _0x17e744[_0x2dc426(0x143)](stat,_0xa3b9c9);_0x2ddb93[_0x2dc426(0x156)]()&&existsSync(_0x17e744['CeTXo'](join,_0xa3b9c9,_0x17e744['yOUjw']))&&(!_0x2064f2['includes'](_0x96578e)&&(_0x2064f2[_0x2dc426(0x14b)](_0x96578e),_0x2ab3bb[_0x96578e]=_0x2dc426(0x151)));}return{'envNames':_0x2064f2,'activeEnv':_0x3d176c,'envTypes':_0x2ab3bb};}export async function envList(){const _0x3fa07e=_0x517e83,_0xbe418e={'LkRyY':function(_0x42cad1){return _0x42cad1();},'qAxwU':function(_0xffbcc,_0x5ca558){return _0xffbcc===_0x5ca558;},'VqQcs':_0x3fa07e(0x153),'mirCm':function(_0x26215c,_0x890221){return _0x26215c(_0x890221);},'vWpmg':_0x3fa07e(0x151)},{envNames:_0x474493,activeEnv:_0x50aa1a,envTypes:_0x49f1b5}=await _0xbe418e['LkRyY'](getEnvNames);if(_0xbe418e[_0x3fa07e(0x13e)](_0x474493[_0x3fa07e(0x141)],0x0)){console[_0x3fa07e(0x150)](_0xbe418e[_0x3fa07e(0x13c)]),console[_0x3fa07e(0x150)]('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}console['log']('\x0aProfiles:');for(const _0x1b2bef of _0x474493['sort']()){const _0x2f40c7=_0x1b2bef===_0x50aa1a,_0x1f360e=_0x49f1b5[_0x1b2bef]||_0x3fa07e(0x13d),_0x88e635=await _0xbe418e['mirCm'](loadSettings,_0x1b2bef),_0x4f751a=_0x1f360e===_0xbe418e[_0x3fa07e(0x152)]?'':'\x20['+_0x1f360e+']';console['log']('\x20\x20'+(_0x2f40c7?'*\x20':'\x20\x20')+_0x1b2bef+_0x4f751a),_0x88e635[_0x3fa07e(0x142)]&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x88e635['baseUrl']),_0x88e635['environmentDetails']&&console['log'](_0x3fa07e(0x157)+_0x88e635[_0x3fa07e(0x135)]);}_0x50aa1a&&console[_0x3fa07e(0x150)]('\x0a*\x20=\x20active\x20profile');}
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 +1 @@
1
- const _0x5cb4dc=_0x3172;(function(_0x5523db,_0x21dfeb){const _0x7bed0b=_0x3172,_0x25c44f=_0x5523db();while(!![]){try{const _0x57d325=-parseInt(_0x7bed0b(0x254))/0x1*(-parseInt(_0x7bed0b(0x1e4))/0x2)+parseInt(_0x7bed0b(0x24d))/0x3*(-parseInt(_0x7bed0b(0x26b))/0x4)+parseInt(_0x7bed0b(0x286))/0x5+-parseInt(_0x7bed0b(0x267))/0x6*(-parseInt(_0x7bed0b(0x1f3))/0x7)+-parseInt(_0x7bed0b(0x1ee))/0x8*(-parseInt(_0x7bed0b(0x203))/0x9)+parseInt(_0x7bed0b(0x1f0))/0xa*(parseInt(_0x7bed0b(0x1d4))/0xb)+-parseInt(_0x7bed0b(0x1e5))/0xc*(parseInt(_0x7bed0b(0x1c6))/0xd);if(_0x57d325===_0x21dfeb)break;else _0x25c44f['push'](_0x25c44f['shift']());}catch(_0x10c598){_0x25c44f['push'](_0x25c44f['shift']());}}}(_0x6e3f,0xef486));function _0x3172(_0x115bcf,_0x26d63e){_0x115bcf=_0x115bcf-0x1be;const _0x6e3f92=_0x6e3f();let _0x317290=_0x6e3f92[_0x115bcf];return _0x317290;}import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x567b4d 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';function _0x6e3f(){const _0x548910=['canonicalFlow','qcGNB','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','1482668VDcAtR','utf-8','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','authorName','pipe','createdAt','\x20>\x20','en-US','gcUPy','kpyNI','numeric','YpRwZ','error','\x20\x20\x20Completed:\x20','pendingItems','iMqRw','590IOikTE','696SGnbSd','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','Next\x20page:\x20ranger\x20list\x20--offset\x20','completedAt','gitRepoUrl','Please\x20finish\x20your\x20review\x20first:','point','jdJPA','\x20at\x20[','6002776uOIUhP','\x20blocked','80WmzyaV','Scenario\x20','offset','28XWAuSX','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','totalCount','assetUrl','PpLTC','push','\x20(v','\x0a✅\x20Feature\x20review\x20created:\x20','IGRxp','has','dashboardUrl','GOCFX','lGfDF','\x20\x20\x20Branch:\x20','lXrbi','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','9PXngQO','VTJLR','spatial','incompleteItems','git\x20rev-parse\x20--abbrev-ref\x20HEAD','\x20\x20\x20\x20\x20Progress:\x20','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','QqNuP','status','\x20\x20\x20\x20','DHedC','\x0a✅\x20Resumed\x20feature\x20review:\x20','QQREa','split','verification_in_progress','.md','github.com/','\x20\x20\x20Created:\x20','paIBG','pDSas','description','rwjwK','map','DboTk','iWvHT','canceledReason','\x20\x20\x20\x20\x20\x20Approved','scenarios','currentBranch','qYmiI','\x20feature\x20review(s)\x20found','\x20Session\x20','TBaMx','mQtyt','cRkOr','iAUjk','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','\x0a✅\x20Restored\x20feature\x20review:\x20','thlKw','iRdJk','DWRoH','Gwwee','blockedItems','wAuJl','CfdTD','approved','limit','\x0a📋\x20Feedback\x20for:\x20','unaddressedComments','UjIlZ','closed','BLGXa','version','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','completed','\x20verified','sccCI','\x20—\x20','UnNWI','checklistItems','VNVdg','\x0a✅\x20Scenario\x20added','position','viwmu','submittedAt','KWhze','IymiH','\x20\x20\x20Updated\x20branch\x20to:\x20','latestReview','dSWbu','name','find','toLocaleDateString','6UWTZYJ','length','mYfOA','FhdeD','currentSessionId','\x20/\x20','domRef','1967UUSDeW','BkRAx','bEbJx','TYwWV','textContent','iteration','rsAiO','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','log','mHPDv','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','No\x20sessions\x20found.','Current\x20session\x20not\x20found.','blocked','filter','isTTY','stdout','PVbmF','\x20\x20\x20Repository:\x20','2073426wZclAV','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','toLocaleString','\x20of\x20','3802852mTRNwI','toFixed','\x0a\x20\x20\x20Scenarios:','isInteger','xlvEY','\x20--current-branch','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','in_progress','stats','type','goBLW','prompt','WgGZX','sessionId','\x20\x20\x20\x20\x20\x20Incomplete:\x20','replace','from','pop','env','yfGYO','gitBranch','No\x20scenarios\x20found.','includeDeleted','\x20\x20Expected\x20flow:','exit','incompleteReason','zfbYa','5840310cYJtMT','\x20\x20\x20▶️\x20Started\x20session\x20','repeat','terminalReason','items','QMZdK','kzeOu','blockedReason','\x1b[0m','trimEnd','trim','465699XOwSVo','join','hOmhA','\x0aGenerating\x20report...','\x20\x20\x20\x20\x20ID:\x20','any','git\x20remote\x20get-url\x20origin','ZfQUv','sort','Showing\x20','iYJcU'];_0x6e3f=function(){return _0x548910;};return _0x6e3f();}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=_0x478bf3=>'\x1b[1m'+_0x478bf3+_0x5cb4dc(0x1c3);function getGitRepoUrl(){const _0x59111a=_0x5cb4dc,_0x446b2d={'OzCPo':function(_0x3cbbfb,_0x14e732,_0xccd3a7){return _0x3cbbfb(_0x14e732,_0xccd3a7);},'TYwWV':_0x59111a(0x1cc),'DHedC':'utf-8','xlvEY':_0x59111a(0x1d8),'iAUjk':_0x59111a(0x214)};try{const _0x400bab=_0x446b2d['OzCPo'](execSync,_0x446b2d[_0x59111a(0x257)],{'encoding':_0x446b2d[_0x59111a(0x20e)],'stdio':[_0x446b2d[_0x59111a(0x26f)],_0x59111a(0x1d8),'pipe']})[_0x59111a(0x1c5)]();return _0x400bab['replace'](/\.git$/,'')[_0x59111a(0x27a)](/^git@github\.com:/,_0x446b2d[_0x59111a(0x227)])[_0x59111a(0x27a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x31b95b=_0x5cb4dc,_0xa3533e={'pDSas':function(_0x2986df,_0x5e5b27,_0x4a2123){return _0x2986df(_0x5e5b27,_0x4a2123);},'cvrPP':_0x31b95b(0x207),'owoTZ':'utf-8','GOCFX':_0x31b95b(0x1d8)};try{return _0xa3533e[_0x31b95b(0x217)](execSync,_0xa3533e['cvrPP'],{'encoding':_0xa3533e['owoTZ'],'stdio':[_0xa3533e['GOCFX'],_0xa3533e[_0x31b95b(0x1fe)],'pipe']})[_0x31b95b(0x1c5)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4f165e=_0x5cb4dc,_0x5a0b59={'QOAps':function(_0xc1e5a6,_0x5d616f){return _0xc1e5a6(_0x5d616f);},'IGRxp':'utf-8'},_0x3a44ef=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x5a0b59['QOAps'](existsSync,_0x3a44ef))return null;try{const _0x4b8d27=await readFile(_0x3a44ef,_0x5a0b59[_0x4f165e(0x1fb)]);return _0x4b8d27[_0x4f165e(0x1c5)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x49b4d0){const _0xa4d0c2=_0x5cb4dc,_0xde1492={'bEbJx':function(_0x3b005c,_0x43cc37,_0x1972f8){return _0x3b005c(_0x43cc37,_0x1972f8);},'fglce':function(_0x4937d6,_0x589367){return _0x4937d6(_0x589367);},'wAuJl':function(_0x4c2c13,_0x4877da,_0x3a710c,_0x3ec74f){return _0x4c2c13(_0x4877da,_0x3a710c,_0x3ec74f);},'yvHyk':_0xa4d0c2(0x1d5)},_0x4685fe=getRangerDir(),_0x3ccaa7=_0xde1492[_0xa4d0c2(0x256)](join,_0x4685fe,ACTIVE_FEATURE_FILE);!_0xde1492['fglce'](existsSync,_0x4685fe)&&await mkdir(_0x4685fe,{'recursive':!![]}),await _0xde1492[_0xa4d0c2(0x22f)](writeFile,_0x3ccaa7,_0x49b4d0,_0xde1492['yvHyk']);}function getProgressDisplay(_0x4b9c26){const _0x10f2b5=_0x5cb4dc,_0x56f7bc={'tWlQE':function(_0x195780,_0x217210){return _0x195780+_0x217210;},'EvHGx':function(_0x2e1bbf,_0x191c8f){return _0x2e1bbf+_0x191c8f;},'qcGNB':function(_0x248840,_0x3f7d1e){return _0x248840*_0x3f7d1e;},'iYJcU':function(_0x53bad9,_0x2117dc){return _0x53bad9/_0x2117dc;},'gYsyb':function(_0x5a3ce5,_0x3858ef){return _0x5a3ce5-_0x3858ef;}},_0x1aa8fe=_0x4b9c26['verifiedItems']||0x0,_0x139c7c=_0x4b9c26['verificationInProgressItems']||0x0,_0x20ba4b=_0x4b9c26[_0x10f2b5(0x22e)]||0x0,_0x848936=_0x4b9c26[_0x10f2b5(0x206)]||0x0,_0x102b11=_0x4b9c26[_0x10f2b5(0x1e2)]||0x0,_0x3a97f1=_0x56f7bc['tWlQE'](_0x56f7bc['EvHGx'](_0x1aa8fe,_0x139c7c)+_0x20ba4b,_0x848936)+_0x102b11;if(_0x3a97f1===0x0)return'-';const _0x1bf4f6=0xa,_0x4fbea4=Math['round'](_0x56f7bc[_0x10f2b5(0x1d2)](_0x56f7bc[_0x10f2b5(0x1d0)](_0x1aa8fe,_0x3a97f1),_0x1bf4f6)),_0x203858='█'['repeat'](_0x4fbea4)+'░'[_0x10f2b5(0x288)](_0x56f7bc['gYsyb'](_0x1bf4f6,_0x4fbea4)),_0x49abbe=[];if(_0x20ba4b>0x0)_0x49abbe['push'](_0x20ba4b+_0x10f2b5(0x1ef));if(_0x848936>0x0)_0x49abbe[_0x10f2b5(0x1f8)](_0x848936+'\x20incomplete');if(_0x139c7c>0x0)_0x49abbe[_0x10f2b5(0x1f8)](_0x139c7c+'\x20in\x20progress');const _0x4ace80=_0x49abbe['length']>0x0?'\x20('+_0x49abbe[_0x10f2b5(0x1c7)](',\x20')+')':'';return _0x203858+'\x20'+_0x1aa8fe+'/'+_0x3a97f1+_0x10f2b5(0x23b)+_0x4ace80;}function getCurrentSessionItems(_0x40e8cf,_0x2965d6){const _0x34aed5=_0x5cb4dc;if(!_0x40e8cf[_0x34aed5(0x251)])return _0x2965d6['filter'](_0x3bb602=>!_0x3bb602[_0x34aed5(0x278)])['sort']((_0x17b731,_0x33034e)=>_0x17b731[_0x34aed5(0x242)]-_0x33034e[_0x34aed5(0x242)]);return _0x2965d6[_0x34aed5(0x262)](_0x14a4dd=>_0x14a4dd[_0x34aed5(0x278)]===_0x40e8cf[_0x34aed5(0x251)]||!_0x14a4dd[_0x34aed5(0x278)])[_0x34aed5(0x1ce)]((_0x376301,_0x4988da)=>_0x376301['position']-_0x4988da[_0x34aed5(0x242)]);}function displayFeature(_0x42fd8f,_0xb694d0){const _0x164ca3=_0x5cb4dc,_0x341164={'DWRoH':function(_0x50f83a,_0x2f758b){return _0x50f83a===_0x2f758b;},'YpRwZ':_0x164ca3(0x231),'rwjwK':function(_0x4d7d5b,_0x20ed89){return _0x4d7d5b===_0x20ed89;},'lXrbi':'verified','Zkfre':_0x164ca3(0x261),'QqNuP':_0x164ca3(0x236),'vJuKn':function(_0x5ce926,_0x424027){return _0x5ce926>_0x424027;},'DboTk':function(_0x5dc76b,_0x428196){return _0x5dc76b!==_0x428196;},'Gwwee':'\x20[has\x20reviewer\x20feedback]','gcUPy':'incomplete','OVygl':function(_0x574d8a,_0x59dbd8){return _0x574d8a===_0x59dbd8;}};console[_0x164ca3(0x25c)]('\x0a'+_0x42fd8f[_0x164ca3(0x24a)]+'\x20('+_0x42fd8f[_0x164ca3(0x1fd)]+')');_0x42fd8f[_0x164ca3(0x273)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x42fd8f['stats']));_0x42fd8f[_0x164ca3(0x218)]&&console['log']('\x20\x20\x20Description:\x20'+_0x42fd8f['description']);_0x42fd8f[_0x164ca3(0x1e9)]&&console[_0x164ca3(0x25c)](_0x164ca3(0x266)+_0x42fd8f[_0x164ca3(0x1e9)]);_0x42fd8f[_0x164ca3(0x27f)]&&console[_0x164ca3(0x25c)](_0x164ca3(0x200)+_0x42fd8f['gitBranch']);console[_0x164ca3(0x25c)](_0x164ca3(0x215)+new Date(_0x42fd8f[_0x164ca3(0x1d9)])[_0x164ca3(0x269)]());_0x42fd8f[_0x164ca3(0x1e8)]&&console[_0x164ca3(0x25c)]('\x20\x20\x20Completed:\x20'+new Date(_0x42fd8f[_0x164ca3(0x1e8)])['toLocaleString']());if(_0xb694d0&&_0xb694d0[_0x164ca3(0x24e)]>0x0){console[_0x164ca3(0x25c)](_0x164ca3(0x26d));for(let _0x3b8fff=0x0;_0x3b8fff<_0xb694d0['length'];_0x3b8fff++){const _0x4c993c=_0xb694d0[_0x3b8fff];let _0x5ec57a;if(_0x341164[_0x164ca3(0x22c)](_0x4c993c['status'],'closed')&&_0x341164[_0x164ca3(0x22c)](_0x4c993c[_0x164ca3(0x1be)],_0x341164['YpRwZ']))_0x5ec57a='✅';else{if(_0x341164[_0x164ca3(0x219)](_0x4c993c['status'],_0x341164[_0x164ca3(0x201)]))_0x5ec57a='🟢';else{if(_0x4c993c[_0x164ca3(0x20c)]==='incomplete')_0x5ec57a='🟠';else{if(_0x4c993c['status']===_0x341164['Zkfre'])_0x5ec57a='🛑';else{if(_0x4c993c[_0x164ca3(0x20c)]===_0x341164[_0x164ca3(0x20b)])_0x5ec57a='⛔';else _0x341164['rwjwK'](_0x4c993c[_0x164ca3(0x20c)],_0x164ca3(0x212))?_0x5ec57a='⏳':_0x5ec57a='⬜';}}}}const _0x46a7e9=_0x4c993c[_0x164ca3(0x238)]>0x1?_0x164ca3(0x1f9)+_0x4c993c[_0x164ca3(0x238)]+')':'',_0x5e0e22=_0x341164['vJuKn'](_0x4c993c[_0x164ca3(0x238)],0x1)&&_0x4c993c['parentItemId']&&_0x4c993c[_0x164ca3(0x20c)]!==_0x341164[_0x164ca3(0x20b)]&&_0x341164[_0x164ca3(0x21b)](_0x4c993c[_0x164ca3(0x20c)],_0x341164['lXrbi'])?_0x341164[_0x164ca3(0x22d)]:'';console[_0x164ca3(0x25c)]('\x20\x20\x20'+(_0x3b8fff+0x1)+'.\x20'+_0x5ec57a+'\x20'+_0x4c993c['description']+_0x46a7e9+_0x5e0e22);_0x4c993c[_0x164ca3(0x20c)]==='blocked'&&_0x4c993c['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x4c993c[_0x164ca3(0x1c2)]);_0x341164[_0x164ca3(0x22c)](_0x4c993c['status'],_0x341164[_0x164ca3(0x1dc)])&&_0x4c993c[_0x164ca3(0x284)]&&console['log'](_0x164ca3(0x279)+_0x4c993c[_0x164ca3(0x284)]);if(_0x4c993c['status']===_0x341164['QqNuP']&&_0x341164['OVygl'](_0x4c993c['terminalReason'],_0x341164[_0x164ca3(0x1df)]))console[_0x164ca3(0x25c)](_0x164ca3(0x21e));else _0x4c993c['status']===_0x341164[_0x164ca3(0x20b)]&&_0x4c993c[_0x164ca3(0x21d)]&&console[_0x164ca3(0x25c)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x4c993c['canceledReason']);}}}export async function featureCreate(_0x391364,_0x495022){const _0x3b9840=_0x5cb4dc,_0x4ccc92={'ONGLk':function(_0x3f7e15,_0x4949c4){return _0x3f7e15===_0x4949c4;},'iWvHT':function(_0x5336bb){return _0x5336bb();},'GqdNB':'\x0aCreating\x20feature\x20review...','sotFJ':function(_0x2db7e9,_0x1e9dfc){return _0x2db7e9(_0x1e9dfc);},'nfKcF':function(_0x3e3c67,_0x39f96c){return _0x3e3c67(_0x39f96c);},'iNgEz':function(_0x101d80,_0x155933,_0xff9961){return _0x101d80(_0x155933,_0xff9961);}},{envNames:_0x565980}=await getEnvNames();_0x4ccc92['ONGLk'](_0x565980[_0x3b9840(0x24e)],0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x43b00a=>bold(_0x43b00a)));const _0x3d724f=_0x495022[_0x3b9840(0x21f)]?_0x495022['scenarios'][_0x3b9840(0x21a)](_0x30249a=>_0x30249a['trim']()):[],_0x4d1f41=getGitRepoUrl(),_0x307ca2=_0x4ccc92[_0x3b9840(0x21c)](getGitBranch);console['log'](_0x4ccc92['GqdNB']);const _0x1a4efd=await _0x4ccc92['sotFJ'](createFeature,{'name':_0x391364,'description':_0x495022[_0x3b9840(0x218)],'checklist':_0x3d724f,'gitRepoUrl':_0x4d1f41,'gitBranch':_0x307ca2});await setActiveFeatureId(_0x1a4efd['id']),await _0x4ccc92['nfKcF'](tryStartCurrentSession,_0x1a4efd['id']);const _0x1e3ca8=process['env']['CLAUDE_SESSION_ID'];_0x1e3ca8&&_0x4ccc92['iNgEz'](registerSession,_0x1e3ca8,_0x1a4efd['id']),console['log'](_0x3b9840(0x1fa)+_0x1a4efd['id']),displayFeature(_0x1a4efd,_0x1a4efd[_0x3b9840(0x23f)]),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x548699){const _0x210993=_0x5cb4dc,_0x4168db={'KCxMo':function(_0x5deb04){return _0x5deb04();},'xoLwE':function(_0xa224d9,_0x4ae1fd){return _0xa224d9(_0x4ae1fd);},'sccCI':'\x0aNo\x20feature\x20reviews\x20found.','mvMyV':function(_0x50ac7d,_0x883a9d){return _0x50ac7d+_0x883a9d;},'QjYUr':function(_0x52d510,_0xf91067){return _0x52d510<_0xf91067;},'mYfOA':function(_0x1033d8,_0x20417b){return _0x1033d8!==_0x20417b;}},_0xa8c852={'limit':_0x548699[_0x210993(0x232)]??0xa,'offset':_0x548699[_0x210993(0x1f2)]??0x0,'includeDeleted':_0x548699['includeDeleted']};_0x548699[_0x210993(0x220)]&&(_0xa8c852['gitRepoUrl']=_0x4168db['KCxMo'](getGitRepoUrl),_0xa8c852[_0x210993(0x27f)]=getGitBranch());const _0x1bf235=await _0x4168db['xoLwE'](listFeatures,_0xa8c852);if(_0x1bf235[_0x210993(0x1bf)]['length']===0x0){console[_0x210993(0x25c)](_0x4168db[_0x210993(0x23c)]);return;}const _0x53d7ab=_0x1bf235[_0x210993(0x1f5)]>_0x1bf235['items']['length']?_0x210993(0x1cf)+_0x1bf235['items']['length']+_0x210993(0x26a)+_0x1bf235[_0x210993(0x1f5)]:_0x1bf235[_0x210993(0x1f5)]+_0x210993(0x222);console['log']('\x0a'+_0x53d7ab+':\x0a');for(const _0x1bf578 of _0x1bf235['items']){console[_0x210993(0x25c)](''+_0x1bf578[_0x210993(0x24a)]),console['log']('\x20\x20\x20ID:\x20'+_0x1bf578['id']),_0x1bf578['stats']&&console[_0x210993(0x25c)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1bf578['stats'])),_0x1bf578['gitBranch']&&console[_0x210993(0x25c)](_0x210993(0x200)+_0x1bf578[_0x210993(0x27f)]),console['log'](_0x210993(0x215)+new Date(_0x1bf578['createdAt'])[_0x210993(0x24c)]()),console[_0x210993(0x25c)]('');}const _0x115ff0=_0xa8c852['limit']??0xa,_0x325e09=_0x4168db['mvMyV'](_0xa8c852['offset']??0x0,_0x1bf235['items']['length']);if(_0x4168db['QjYUr'](_0x325e09,_0x1bf235['totalCount'])){const _0x7a8cb0=_0x4168db[_0x210993(0x24f)](_0x115ff0,0xa)?'\x20--limit\x20'+_0x115ff0:'',_0x323a12=_0x548699[_0x210993(0x220)]?_0x210993(0x270):'',_0x12babe=_0x548699[_0x210993(0x281)]?'\x20--include-deleted':'';console[_0x210993(0x25c)](_0x210993(0x1e7)+_0x325e09+_0x7a8cb0+_0x323a12+_0x12babe);}}export async function featureShow(_0x3e3320){const _0x173d05=_0x5cb4dc,_0x228d77={'QQREa':function(_0x120772){return _0x120772();},'GzXHS':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'},_0x29b53f=_0x3e3320||await _0x228d77[_0x173d05(0x210)](getActiveFeatureId);if(!_0x29b53f)throw new Error(_0x228d77['GzXHS']);const _0x16abee=await getFeature(_0x29b53f);displayFeature(_0x16abee,_0x16abee['checklistItems']);}export async function featureResume(_0x1c6781){const _0x14289d=_0x5cb4dc,_0x51a9bb={'CfdTD':function(_0x2e4569,_0x317fb6){return _0x2e4569(_0x317fb6);},'PVbmF':function(_0x518d60){return _0x518d60();},'sCifb':function(_0x544cbe,_0x51b4fd){return _0x544cbe&&_0x51b4fd;},'zfbYa':'Not\x20in\x20a\x20git\x20repository.','jjntN':function(_0x3a5ce4,_0x399f40){return _0x3a5ce4||_0x399f40;},'ZoHKA':function(_0x55f7cd,_0x1df9cf){return _0x55f7cd||_0x1df9cf;},'iRdJk':_0x14289d(0x20a),'UjIlZ':function(_0x35af0d,_0x268cf0){return _0x35af0d(_0x268cf0);},'iNpgU':function(_0x299f05,_0x1be43d,_0x112192){return _0x299f05(_0x1be43d,_0x112192);}};if(_0x1c6781){const _0x32dc34=await _0x51a9bb[_0x14289d(0x230)](getFeature,_0x1c6781);await setActiveFeatureId(_0x32dc34['id']);const _0x3c7ac7=getGitBranch();_0x3c7ac7&&_0x3c7ac7!==_0x32dc34[_0x14289d(0x27f)]&&(await updateFeature(_0x32dc34['id'],{'gitBranch':_0x3c7ac7}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x3c7ac7));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x32dc34[_0x14289d(0x24a)]+'\x20('+_0x32dc34['id']+')'),await _0x51a9bb[_0x14289d(0x230)](tryStartCurrentSession,_0x32dc34['id']);const _0x118774=process[_0x14289d(0x27d)]['CLAUDE_SESSION_ID'];_0x118774&&registerSession(_0x118774,_0x32dc34['id']);displayFeature(_0x32dc34,_0x32dc34['checklistItems']),await printFeedbackNudge(_0x32dc34['id']);return;}const _0x2ce98f=_0x51a9bb[_0x14289d(0x265)](getGitRepoUrl),_0x268d0f=_0x51a9bb['PVbmF'](getGitBranch);if(_0x51a9bb['sCifb'](!_0x2ce98f,!_0x268d0f))throw new Error(_0x51a9bb[_0x14289d(0x285)]);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x51a9bb['jjntN'](_0x2ce98f,'any')+_0x14289d(0x252)+_0x51a9bb['ZoHKA'](_0x268d0f,_0x14289d(0x1cb))+'...');const _0x56cb15=await listFeatures({'gitRepoUrl':_0x2ce98f,'gitBranch':_0x268d0f}),_0x315ff9=_0x56cb15[_0x14289d(0x1bf)][_0x14289d(0x262)](_0x150ca7=>!_0x150ca7[_0x14289d(0x1e8)]);if(_0x315ff9['length']===0x0){console[_0x14289d(0x25c)]('\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.'),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x370295;if(_0x315ff9[_0x14289d(0x24e)]===0x1)_0x370295=_0x315ff9[0x0];else{const _0x491d83=process['stdin'][_0x14289d(0x263)]&&process['stdout']['isTTY'];if(!_0x491d83){console['log'](_0x14289d(0x268));for(const _0x17ee02 of _0x315ff9){console[_0x14289d(0x25c)]('\x20\x20'+_0x17ee02[_0x14289d(0x24a)]),console[_0x14289d(0x25c)](_0x14289d(0x1ca)+_0x17ee02['id']),_0x17ee02[_0x14289d(0x273)]&&console['log'](_0x14289d(0x208)+_0x51a9bb[_0x14289d(0x230)](getProgressDisplay,_0x17ee02['stats'])),_0x17ee02[_0x14289d(0x27f)]&&console[_0x14289d(0x25c)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x17ee02['gitBranch']);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x34f439}=await _0x567b4d[_0x14289d(0x276)]([{'type':'list','name':'selected','message':_0x51a9bb[_0x14289d(0x22b)],'choices':_0x315ff9[_0x14289d(0x21a)](_0x4df4bb=>({'name':_0x4df4bb[_0x14289d(0x24a)]+'\x20('+_0x4df4bb['id']+')','value':_0x4df4bb['id']}))}]);_0x370295=_0x315ff9['find'](_0x156f53=>_0x156f53['id']===_0x34f439);}await setActiveFeatureId(_0x370295['id']);_0x268d0f&&_0x268d0f!==_0x370295[_0x14289d(0x27f)]&&(await updateFeature(_0x370295['id'],{'gitBranch':_0x268d0f}),console[_0x14289d(0x25c)](_0x14289d(0x247)+_0x268d0f));console[_0x14289d(0x25c)](_0x14289d(0x20f)+_0x370295[_0x14289d(0x24a)]+'\x20('+_0x370295['id']+')'),await _0x51a9bb['UjIlZ'](tryStartCurrentSession,_0x370295['id']);const _0x4853e2=await getFeature(_0x370295['id']),_0x1d4067=process[_0x14289d(0x27d)]['CLAUDE_SESSION_ID'];_0x1d4067&&registerSession(_0x1d4067,_0x4853e2['id']),_0x51a9bb['iNpgU'](displayFeature,_0x4853e2,_0x4853e2['checklistItems']),await _0x51a9bb[_0x14289d(0x235)](printFeedbackNudge,_0x4853e2['id']);}async function printFeedbackNudge(_0x5320a8){const _0x199635=_0x5cb4dc,_0x126b1d={'lQOoO':function(_0x4a0dfa,_0x237ff9,_0x2770a9){return _0x4a0dfa(_0x237ff9,_0x2770a9);},'rtvqa':function(_0x1255e9,_0x3c3f26){return _0x1255e9>_0x3c3f26;},'kpyNI':_0x199635(0x239)};try{const {items:_0x4f59f4}=await getActionItems(_0x5320a8);let _0x3b0de7=0x0,_0x40ea1b=0x0;for(const _0x2a39bc of _0x4f59f4){const _0x28e49b=await _0x126b1d['lQOoO'](getItemFeedback,_0x5320a8,_0x2a39bc['id']);_0x28e49b['unaddressedComments'][_0x199635(0x24e)]>0x0&&(_0x3b0de7+=_0x28e49b['unaddressedComments']['length'],_0x40ea1b++);}_0x126b1d['rtvqa'](_0x3b0de7,0x0)&&(console[_0x199635(0x25c)]('\x0a⚠️\x20\x20'+_0x3b0de7+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x40ea1b+'\x20scenario(s).'),console[_0x199635(0x25c)](_0x126b1d[_0x199635(0x1dd)]));}catch{}}async function tryStartCurrentSession(_0x4ccf22){const _0x4be68c=_0x5cb4dc,_0x2d5c2e={'sSkvX':function(_0x2c1a55,_0x1f752e){return _0x2c1a55(_0x1f752e);},'lgSqg':function(_0x35715c,_0x2e2b58,_0x41029f){return _0x35715c(_0x2e2b58,_0x41029f);}};try{const {sessions:_0x35d184}=await _0x2d5c2e['sSkvX'](listFeatureSessions,_0x4ccf22),_0x13142e=_0x35d184[_0x4be68c(0x24b)](_0x5b94ca=>_0x5b94ca[_0x4be68c(0x20c)]==='ready');_0x13142e&&(await _0x2d5c2e['lgSqg'](startSession,_0x4ccf22,_0x13142e['id']),console[_0x4be68c(0x25c)](_0x4be68c(0x287)+_0x13142e['iteration']));}catch{}}export async function featureReport(_0x4c23ad,_0x97d730){const _0x363721=_0x5cb4dc,_0x425d61={'lGfDF':function(_0x3c45e5,_0x15c0f0,_0x23128f){return _0x3c45e5(_0x15c0f0,_0x23128f);},'HznLX':'reports','oYiQH':function(_0x5c00dc,_0x34d980){return _0x5c00dc(_0x34d980);},'mRJCr':function(_0x2a422f,_0x474b8e,_0x3a11b9){return _0x2a422f(_0x474b8e,_0x3a11b9);},'ehGHS':_0x363721(0x1d5)},_0x28a2e6=_0x4c23ad||await getActiveFeatureId();if(!_0x28a2e6)throw new Error(_0x363721(0x1d6));console[_0x363721(0x25c)](_0x363721(0x1c9));const _0x443b68=await _0x425d61[_0x363721(0x1ff)](getFeatureReportMarkdown,_0x28a2e6,{'style':_0x97d730['style']}),_0x4bcbb6=_0x97d730['output']||join(getRangerDir(),_0x425d61['HznLX'],_0x28a2e6+_0x363721(0x213)),_0x5e1d35=join(_0x4bcbb6,'..');!_0x425d61['oYiQH'](existsSync,_0x5e1d35)&&await _0x425d61['mRJCr'](mkdir,_0x5e1d35,{'recursive':!![]}),await writeFile(_0x4bcbb6,_0x443b68,_0x425d61['ehGHS']),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x4bcbb6);}export async function featureReportPrDescription(_0x95f76f,_0x1b9b95){const _0x1ffa52=_0x5cb4dc,_0x5a2469={'CSKCN':function(_0xfad347,_0x11cfa5){return _0xfad347(_0x11cfa5);},'IqrUN':_0x1ffa52(0x1d3),'cRMwg':function(_0x54a762,_0x366c50){return _0x54a762>_0x366c50;},'DdYBo':'\x0aAvailable\x20scenarios:'},_0x44768c=_0x95f76f||await getActiveFeatureId();if(!_0x44768c)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x20bd83=await _0x5a2469['CSKCN'](getFeature,_0x44768c),_0x4f9725=_0x20bd83['checklistItems']||[],_0x1ea07a=getCurrentSessionItems(_0x20bd83,_0x4f9725);_0x1ea07a['length']===0x0&&(console['error'](_0x5a2469['IqrUN']),process[_0x1ffa52(0x283)](0x1));const _0x16779a=_0x1b9b95['excludeScenarios']??[],_0x3badbc=_0x16779a[_0x1ffa52(0x262)](_0xc96a2b=>!Number[_0x1ffa52(0x26e)](_0xc96a2b)||_0xc96a2b<0x1||_0xc96a2b>_0x1ea07a['length']);if(_0x5a2469['cRMwg'](_0x3badbc[_0x1ffa52(0x24e)],0x0)){console[_0x1ffa52(0x1e0)](_0x1ffa52(0x228)+_0x3badbc[_0x1ffa52(0x1c7)](',\x20')),console['log'](_0x5a2469['DdYBo']);for(let _0x34bff1=0x0;_0x34bff1<_0x1ea07a['length'];_0x34bff1++){console[_0x1ffa52(0x25c)]('\x20\x20'+(_0x34bff1+0x1)+'.\x20'+_0x1ea07a[_0x34bff1]['description']);}process['exit'](0x1);}const _0x2a7563=new Set(_0x16779a['map'](_0x5b15f4=>_0x5b15f4-0x1)),_0xd06ca5=_0x1ea07a[_0x1ffa52(0x262)]((_0x20ca1b,_0x1737c4)=>!_0x2a7563[_0x1ffa52(0x1fc)](_0x1737c4));_0xd06ca5['length']===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process[_0x1ffa52(0x283)](0x1));const _0xb10da6=await getFeatureReportMarkdown(_0x44768c,{'itemIds':_0xd06ca5['map'](_0x165b84=>_0x165b84['id'])});process[_0x1ffa52(0x264)]['write'](_0xb10da6[_0x1ffa52(0x1c4)]()+'\x0a');}export async function featureConcludeSession(_0x48c0a9){const _0x2131f5=_0x5cb4dc,_0x3e0454={'KWhze':function(_0x101d6a){return _0x101d6a();},'viwmu':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','kzeOu':function(_0x5f186c,_0x5ca38f){return _0x5f186c(_0x5ca38f);},'owsuj':function(_0x207399,_0x31532b){return _0x207399===_0x31532b;},'ZFwCC':'\x0a✅\x20Session\x20is\x20already\x20completed.','iMqRw':function(_0x50811b,_0x31fe08){return _0x50811b!==_0x31fe08;},'mQtyt':_0x2131f5(0x272),'ZBdnU':function(_0x1ad5a4,_0x24f13d,_0x23495f){return _0x1ad5a4(_0x24f13d,_0x23495f);}},_0x3ab447=_0x48c0a9||await _0x3e0454[_0x2131f5(0x245)](getActiveFeatureId);if(!_0x3ab447)throw new Error(_0x3e0454[_0x2131f5(0x243)]);const _0x3df295=await _0x3e0454[_0x2131f5(0x1c1)](getFeature,_0x3ab447);if(!_0x3df295[_0x2131f5(0x251)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x3f597b}=await listFeatureSessions(_0x3ab447),_0x34bf6d=_0x3f597b[_0x2131f5(0x24b)](_0xb9ad60=>_0xb9ad60['id']===_0x3df295[_0x2131f5(0x251)]);if(!_0x34bf6d)throw new Error(_0x2131f5(0x260));if(_0x3e0454['owsuj'](_0x34bf6d['status'],'completed')){console[_0x2131f5(0x25c)](_0x3e0454['ZFwCC']);return;}if(_0x3e0454[_0x2131f5(0x1e3)](_0x34bf6d[_0x2131f5(0x20c)],_0x3e0454[_0x2131f5(0x225)]))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x34bf6d['status']);console['log']('\x0aConcluding\x20session...'),await _0x3e0454['ZBdnU'](concludeSession,_0x3ab447,_0x3df295[_0x2131f5(0x251)]),console['log']('\x0a✅\x20Session\x20'+_0x34bf6d['iteration']+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x2e0727){const _0x1666ba=_0x5cb4dc,_0x34b223={'qHUpb':_0x1666ba(0x1d6),'zrwxB':function(_0x798575,_0x3ad1ef){return _0x798575===_0x3ad1ef;},'qYmiI':_0x1666ba(0x23a),'VNVdg':_0x1666ba(0x272)},_0x572ed3=_0x2e0727||await getActiveFeatureId();if(!_0x572ed3)throw new Error(_0x34b223['qHUpb']);const _0x515441=await getFeature(_0x572ed3);console['log'](_0x1666ba(0x202)+_0x515441['name']+'\x0a');const {sessions:_0x2a0826}=await listFeatureSessions(_0x572ed3);if(_0x2a0826[_0x1666ba(0x24e)]===0x0){console[_0x1666ba(0x25c)](_0x1666ba(0x25f));return;}for(const _0x5b6e14 of _0x2a0826){const _0x259071=_0x34b223['zrwxB'](_0x5b6e14[_0x1666ba(0x20c)],_0x34b223[_0x1666ba(0x221)])?'✅':_0x5b6e14['status']===_0x34b223[_0x1666ba(0x240)]?'🔄':'▶️';console['log'](_0x259071+_0x1666ba(0x223)+_0x5b6e14[_0x1666ba(0x259)]+'\x20('+_0x5b6e14['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x5b6e14[_0x1666ba(0x20c)]),console[_0x1666ba(0x25c)](_0x1666ba(0x215)+new Date(_0x5b6e14['createdAt'])[_0x1666ba(0x269)]()),_0x5b6e14['completedAt']&&console[_0x1666ba(0x25c)](_0x1666ba(0x1e1)+new Date(_0x5b6e14['completedAt'])[_0x1666ba(0x269)]()),console['log']('');}}export async function featureAddScenario(_0x1d4f8d,_0x234893){const _0x38c36f=_0x5cb4dc,_0x212155={'IymiH':function(_0x8d10cc){return _0x8d10cc();},'Kdlua':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','VTJLR':function(_0x2c598a,_0x52de85,_0x94d3d2){return _0x2c598a(_0x52de85,_0x94d3d2);},'goBLW':function(_0x251440,_0x599aa7){return _0x251440(_0x599aa7);}},_0x567abb=_0x234893||await _0x212155[_0x38c36f(0x246)](getActiveFeatureId);if(!_0x567abb)throw new Error(_0x212155['Kdlua']);const _0x3091ba=await getFeature(_0x567abb);if(_0x3091ba['latestReview']&&!_0x3091ba[_0x38c36f(0x248)][_0x38c36f(0x244)])throw new Error(_0x38c36f(0x1e6)+_0x3091ba[_0x38c36f(0x1fd)]);await _0x212155['VTJLR'](createChecklistItem,_0x567abb,_0x1d4f8d);const _0xf83385=await _0x212155[_0x38c36f(0x275)](getFeature,_0x567abb);console[_0x38c36f(0x25c)](_0x38c36f(0x241)),_0x212155[_0x38c36f(0x204)](displayFeature,_0xf83385,_0xf83385[_0x38c36f(0x23f)]);}export async function featureEditScenario(_0x45dd50,_0x57a850){const _0x258497=_0x5cb4dc,_0x2424c0={'WgGZX':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','rsAiO':function(_0x32120f,_0x5674b0){return _0x32120f(_0x5674b0);},'hOmhA':_0x258497(0x1ea),'yfGYO':function(_0x3f5319,_0x39153f){return _0x3f5319===_0x39153f;},'eNMrT':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','BLGXa':'\x0aAvailable\x20scenarios:','yLiUt':function(_0x25e01f,_0x3ca58f){return _0x25e01f-_0x3ca58f;},'mHPDv':function(_0x54f71f,_0x368a9a){return _0x54f71f>=_0x368a9a;},'lBMvt':function(_0x21a989,_0x172622){return _0x21a989<_0x172622;},'aZNeP':function(_0x5cf938,_0x245fe8){return _0x5cf938+_0x245fe8;}},_0x34a691=_0x57a850['id']||await getActiveFeatureId();!_0x34a691&&(console[_0x258497(0x1e0)](_0x2424c0[_0x258497(0x277)]),console['error'](_0x258497(0x1f4)),process[_0x258497(0x283)](0x1));const _0x542d46=await _0x2424c0[_0x258497(0x25a)](getFeature,_0x34a691);_0x542d46[_0x258497(0x248)]&&!_0x542d46[_0x258497(0x248)][_0x258497(0x244)]&&(console[_0x258497(0x1e0)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x258497(0x1e0)](_0x2424c0[_0x258497(0x1c8)]),console['error']('\x20\x20'+_0x542d46[_0x258497(0x1fd)]),process['exit'](0x1));const _0x12e8d0=_0x542d46[_0x258497(0x23f)]||[];_0x12e8d0['length']===0x0&&(console[_0x258497(0x1e0)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x2424c0[_0x258497(0x27e)](_0x57a850['scenario'],undefined)){console['error'](_0x2424c0['eNMrT']),console['log'](_0x2424c0['BLGXa']);for(let _0xf31219=0x0;_0xf31219<_0x12e8d0['length'];_0xf31219++){console[_0x258497(0x25c)]('\x20\x20'+(_0xf31219+0x1)+'.\x20'+_0x12e8d0[_0xf31219][_0x258497(0x218)]);}process['exit'](0x1);}const _0x114bd3=_0x2424c0['yLiUt'](_0x57a850['scenario'],0x1);if(_0x114bd3<0x0||_0x2424c0[_0x258497(0x25d)](_0x114bd3,_0x12e8d0[_0x258497(0x24e)])){console[_0x258497(0x1e0)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x57a850['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x12e8d0['length']+'\x20scenarios.'),console['log'](_0x2424c0[_0x258497(0x237)]);for(let _0x4264dc=0x0;_0x2424c0['lBMvt'](_0x4264dc,_0x12e8d0['length']);_0x4264dc++){console[_0x258497(0x25c)]('\x20\x20'+_0x2424c0['aZNeP'](_0x4264dc,0x1)+'.\x20'+_0x12e8d0[_0x4264dc][_0x258497(0x218)]);}process['exit'](0x1);}const _0x1dfb81=_0x12e8d0[_0x114bd3];await updateChecklistItem(_0x34a691,_0x1dfb81['id'],{'description':_0x45dd50});const _0x960218=await getFeature(_0x34a691);console[_0x258497(0x25c)]('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x960218,_0x960218[_0x258497(0x23f)]);}async function downloadFeedbackImage(_0x44ffb3,_0x152d84){const _0x4707d8=_0x5cb4dc,_0x48fd54={'jdJPA':function(_0x5ac17e){return _0x5ac17e();},'emINF':function(_0x3e27d1,_0x28a5e1,_0x1e45e2){return _0x3e27d1(_0x28a5e1,_0x1e45e2);},'paIBG':function(_0x36d3da,_0xf3d95d,_0xe0f4b3){return _0x36d3da(_0xf3d95d,_0xe0f4b3);}};try{const _0x36deb7=join(_0x48fd54[_0x4707d8(0x1ec)](getRangerDir),'feedback-images');await _0x48fd54['emINF'](mkdir,_0x36deb7,{'recursive':!![]});const _0x235dc1=_0x48fd54[_0x4707d8(0x216)](join,_0x36deb7,'comment_'+_0x152d84+'.png'),_0x4278e5=await fetch(_0x44ffb3);if(!_0x4278e5['ok'])return null;const _0xbc1a73=Buffer[_0x4707d8(0x27b)](await _0x4278e5['arrayBuffer']());return await writeFile(_0x235dc1,_0xbc1a73),_0x235dc1;}catch{return null;}}export async function featureGetReview(_0x4477e5){const _0x34abd4=_0x5cb4dc,_0xdbf136={'ErWcI':function(_0x5d8712){return _0x5d8712();},'QMZdK':function(_0x7969ef,_0x2c361c){return _0x7969ef(_0x2c361c);},'UnNWI':function(_0x5508a2,_0xf882de){return _0x5508a2===_0xf882de;},'PpLTC':_0x34abd4(0x280),'iFbiT':function(_0x4a8c40,_0x12ab52){return _0x4a8c40<_0x12ab52;},'dSWbu':function(_0x4da2ba,_0x5f433e){return _0x4da2ba>_0x5f433e;},'Tawya':function(_0x1937b1,_0x285a21){return _0x1937b1>_0x285a21;},'TBaMx':function(_0x50cdf0,_0x465a72){return _0x50cdf0+_0x465a72;},'ZfQUv':_0x34abd4(0x1db),'ePFgO':'short','BkRAx':'Unknown','thlKw':_0x34abd4(0x1da),'uunWZ':function(_0x2c8535,_0x4fe37d){return _0x2c8535>=_0x4fe37d;}},_0x3841c7=_0x4477e5||await _0xdbf136['ErWcI'](getActiveFeatureId);if(!_0x3841c7)throw new Error(_0x34abd4(0x25e));const _0x5f3938=await _0xdbf136[_0x34abd4(0x1c0)](getFeature,_0x3841c7),{items:_0x1f0394}=await getActionItems(_0x3841c7);console['log'](_0x34abd4(0x233)+_0x5f3938['name']+'\x20('+_0x5f3938['id']+')\x0a');if(_0xdbf136[_0x34abd4(0x23e)](_0x1f0394['length'],0x0)){console[_0x34abd4(0x25c)](_0xdbf136[_0x34abd4(0x1f7)]);return;}for(let _0x4573d0=0x0;_0xdbf136['iFbiT'](_0x4573d0,_0x1f0394[_0x34abd4(0x24e)]);_0x4573d0++){const _0x154c60=_0x1f0394[_0x4573d0],_0x22330e=_0xdbf136[_0x34abd4(0x249)](_0x154c60[_0x34abd4(0x238)],0x1)?_0x34abd4(0x1f9)+_0x154c60['version']+')':'',_0x4e40bb=await getItemFeedback(_0x3841c7,_0x154c60['id']);if(_0xdbf136['Tawya'](_0x4e40bb['unaddressedComments']['length'],0x0)){console[_0x34abd4(0x25c)](_0x34abd4(0x1f1)+_0xdbf136[_0x34abd4(0x224)](_0x4573d0,0x1)+':\x20\x22'+_0x154c60['description']+'\x22'+_0x22330e+_0x34abd4(0x23d)+_0x4e40bb[_0x34abd4(0x234)][_0x34abd4(0x24e)]+'\x20unaddressed\x20comment(s)');for(const _0x3a472e of _0x4e40bb['unaddressedComments']){const _0x4f99d3=new Date(_0x3a472e[_0x34abd4(0x1d9)])['toLocaleDateString'](_0xdbf136[_0x34abd4(0x1cd)],{'month':_0xdbf136['ePFgO'],'day':_0x34abd4(0x1de)}),_0x3a28a7=_0x3a472e[_0x34abd4(0x1d7)]||_0x3a472e['authorEmail']||_0xdbf136[_0x34abd4(0x255)];console['log']('\x20\x20💬\x20'+_0x3a28a7+'\x20('+_0x4f99d3+'):\x20\x22'+_0x3a472e['content']+'\x22');if(_0x3a472e['assetUrl']){const _0x506fd0=await downloadFeedbackImage(_0x3a472e[_0x34abd4(0x1f6)],_0x3a472e['id']);_0x506fd0&&console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x506fd0);}if(_0x3a472e['domRef']){const _0x142a45=_0x3a472e[_0x34abd4(0x253)]['selector'][_0x34abd4(0x211)](_0xdbf136[_0x34abd4(0x22a)])[_0x34abd4(0x27c)]()?.[_0x34abd4(0x211)](':')[0x0]||'element',_0x6f8745=_0x3a472e['domRef'][_0x34abd4(0x258)]?'\x20\x22'+_0x3a472e[_0x34abd4(0x253)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x34abd4(0x25c)](_0x34abd4(0x209)+_0x142a45+'>'+_0x6f8745),console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x3a472e['domRef']['selector']);}else{if(_0x3a472e[_0x34abd4(0x205)]){const _0x29637a=_0x3a472e[_0x34abd4(0x205)]['coordinates'];_0xdbf136[_0x34abd4(0x23e)](_0x3a472e[_0x34abd4(0x205)][_0x34abd4(0x274)],_0x34abd4(0x1eb))&&_0xdbf136['uunWZ'](_0x29637a[_0x34abd4(0x24e)],0x2)?console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x29637a[0x0][_0x34abd4(0x26c)](0x2)+',\x20'+_0x29637a[0x1][_0x34abd4(0x26c)](0x2)+')'):console[_0x34abd4(0x25c)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x3a472e[_0x34abd4(0x205)]['type']+_0x34abd4(0x1ed)+_0x29637a[_0x34abd4(0x21a)](_0x57479c=>_0x57479c[_0x34abd4(0x26c)](0x2))['join'](',\x20')+']');}}}if(_0x4e40bb['canonicalFlow']){console[_0x34abd4(0x25c)](_0x34abd4(0x282));for(const _0x3e960a of _0x4e40bb[_0x34abd4(0x1d1)][_0x34abd4(0x211)]('\x0a')){console['log'](_0x34abd4(0x20d)+_0x3e960a);}}}else console[_0x34abd4(0x25c)](_0x34abd4(0x1f1)+(_0x4573d0+0x1)+':\x20\x22'+_0x154c60[_0x34abd4(0x218)]+'\x22'+_0x22330e+'\x20—\x20no\x20comments'),console[_0x34abd4(0x25c)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x34abd4(0x25c)]('');}}export async function featureDelete(_0x2f1e3e){const _0x154889=_0x5cb4dc,_0x2b9583={'LseBU':function(_0x3f3735){return _0x3f3735();},'FhdeD':function(_0x5b7775,_0x437347){return _0x5b7775(_0x437347);},'gfzKS':function(_0x41a877,_0x335257){return _0x41a877+_0x335257;},'cRkOr':_0x154889(0x25b)},_0x34a636=_0x2f1e3e||await _0x2b9583['LseBU'](getActiveFeatureId);if(!_0x34a636)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 _0x270d19=await getFeature(_0x34a636);await _0x2b9583[_0x154889(0x250)](softDeleteFeature,_0x34a636),console[_0x154889(0x25c)](_0x154889(0x271)+_0x270d19['name']+'\x20('+_0x34a636+')'),console[_0x154889(0x25c)](_0x2b9583['gfzKS'](_0x2b9583[_0x154889(0x226)],_0x34a636));}export async function featureRestore(_0x508e25){const _0x1cf679=_0x5cb4dc,_0x46800f={'hftcx':function(_0x5da1ee,_0x1b78cf){return _0x5da1ee(_0x1b78cf);},'NMxNw':function(_0x3b3039,_0x191154,_0x2b5629){return _0x3b3039(_0x191154,_0x2b5629);}};await _0x46800f['hftcx'](restoreFeature,_0x508e25);const _0x2bb78b=await getFeature(_0x508e25);console[_0x1cf679(0x25c)](_0x1cf679(0x229)+_0x2bb78b['name']+'\x20('+_0x508e25+')'),_0x46800f['NMxNw'](displayFeature,_0x2bb78b,_0x2bb78b[_0x1cf679(0x23f)]);}
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 +1 @@
1
- (function(_0x24410e,_0x591f18){const _0x2b2c28=_0xc077,_0x495771=_0x24410e();while(!![]){try{const _0x1e7d13=-parseInt(_0x2b2c28(0x9f))/0x1*(parseInt(_0x2b2c28(0xa0))/0x2)+-parseInt(_0x2b2c28(0x9a))/0x3+parseInt(_0x2b2c28(0x98))/0x4*(parseInt(_0x2b2c28(0x9d))/0x5)+-parseInt(_0x2b2c28(0x9e))/0x6*(parseInt(_0x2b2c28(0x99))/0x7)+-parseInt(_0x2b2c28(0x9b))/0x8*(parseInt(_0x2b2c28(0xa2))/0x9)+-parseInt(_0x2b2c28(0x96))/0xa*(parseInt(_0x2b2c28(0x94))/0xb)+-parseInt(_0x2b2c28(0x95))/0xc*(-parseInt(_0x2b2c28(0xa1))/0xd);if(_0x1e7d13===_0x591f18)break;else _0x495771['push'](_0x495771['shift']());}catch(_0x40b126){_0x495771['push'](_0x495771['shift']());}}}(_0x3f8b,0xf10c1));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0xc077(_0x16f3fe,_0x11baf5){_0x16f3fe=_0x16f3fe-0x93;const _0x3f8b46=_0x3f8b();let _0xc0771f=_0x3f8b46[_0x16f3fe];return _0xc0771f;}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};export async function hook(_0x3db4f3,_0x1dfa4a){const _0x26a66c=_0xc077,_0x386a08=HOOKS[_0x3db4f3];if(!_0x386a08){const _0x2d2d3a=Object[_0x26a66c(0x93)](HOOKS)[_0x26a66c(0x9c)](',\x20');console[_0x26a66c(0x97)]('Unknown\x20hook:\x20'+_0x3db4f3),console[_0x26a66c(0x97)]('Valid\x20hooks:\x20'+_0x2d2d3a),process['exit'](0x1);}await _0x386a08(_0x1dfa4a);}function _0x3f8b(){const _0x10d3c1=['4174821wPJKqP','328EArYLN','join','1573235RddSKz','6seYVne','335557ABcYUg','2jHNdXh','195260xkCeaO','102474kgUWqG','keys','1024199erHCyF','4824NiQjPR','150BaGSLm','error','4VMQGgm','12423131coFUrq'];_0x3f8b=function(){return _0x10d3c1;};return _0x3f8b();}
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 +1 @@
1
- function _0x4130(){const _0x495101=['865865ERgEtg','2057256bpuZPG','11QRZFMk','4dLTtBq','\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.','log','46518VFXjDO','19295090fRimLB','6MhwrmC','7JGQGIu','session_id','2117763JtVduO','1906445pcxtIQ','851344bqyEQM'];_0x4130=function(){return _0x495101;};return _0x4130();}const _0x2d5e75=_0x5377;(function(_0x400e30,_0x16c7f4){const _0x4ec348=_0x5377,_0x5adabf=_0x400e30();while(!![]){try{const _0x1e3c46=-parseInt(_0x4ec348(0x6f))/0x1+-parseInt(_0x4ec348(0x72))/0x2*(-parseInt(_0x4ec348(0x67))/0x3)+parseInt(_0x4ec348(0x6e))/0x4+parseInt(_0x4ec348(0x6d))/0x5*(-parseInt(_0x4ec348(0x69))/0x6)+-parseInt(_0x4ec348(0x6a))/0x7*(parseInt(_0x4ec348(0x70))/0x8)+-parseInt(_0x4ec348(0x6c))/0x9+-parseInt(_0x4ec348(0x68))/0xa*(-parseInt(_0x4ec348(0x71))/0xb);if(_0x1e3c46===_0x16c7f4)break;else _0x5adabf['push'](_0x5adabf['shift']());}catch(_0x5f2f5c){_0x5adabf['push'](_0x5adabf['shift']());}}}(_0x4130,0x69e4b));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x5377(_0x1aefa1,_0x560efb){_0x1aefa1=_0x1aefa1-0x67;const _0x413018=_0x4130();let _0x5377d3=_0x413018[_0x1aefa1];return _0x5377d3;}const AUTO_PROMPT_TEXT=_0x2d5e75(0x73);export async function autoPrompt(){const _0x9a223a=_0x2d5e75,_0x118d24={'kxIvy':function(_0x531bf9){return _0x531bf9();},'FFIDn':function(_0x3b5e05,_0x2125da){return _0x3b5e05(_0x2125da);}},_0x266400=await _0x118d24['kxIvy'](readHookInput),_0x5aafc3=_0x266400?.[_0x9a223a(0x6b)];if(!_0x5aafc3)return;if(_0x118d24['FFIDn'](isSessionEnabled,_0x5aafc3)||_0x118d24['FFIDn'](hasSessionBeenPrompted,_0x5aafc3))return;markSessionPrompted(_0x5aafc3),console[_0x9a223a(0x74)](AUTO_PROMPT_TEXT);}
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 +1 @@
1
- function _0x2800(){const _0x3bc392=['30PyfRLF','266178BcjQfu','\x20and\x20branch\x20\x27','543lCGIKX','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','error','xyjVM','master','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','198000nDMREh','802032rBaGtN','8MvEfiw','51128GxjvKT','682QIBBIz','9462594rPggmb','13975839CqFmQN','env','lgDFi'];_0x2800=function(){return _0x3bc392;};return _0x2800();}function _0x4d28(_0x1d4632,_0x39dae9){_0x1d4632=_0x1d4632-0x12c;const _0x280070=_0x2800();let _0x4d2887=_0x280070[_0x1d4632];return _0x4d2887;}(function(_0x508a0f,_0x294b58){const _0x22335a=_0x4d28,_0x4bf28f=_0x508a0f();while(!![]){try{const _0x7d6c3a=-parseInt(_0x22335a(0x13c))/0x1+parseInt(_0x22335a(0x136))/0x2*(-parseInt(_0x22335a(0x12c))/0x3)+parseInt(_0x22335a(0x133))/0x4*(parseInt(_0x22335a(0x13b))/0x5)+-parseInt(_0x22335a(0x137))/0x6+parseInt(_0x22335a(0x135))/0x7+-parseInt(_0x22335a(0x134))/0x8*(-parseInt(_0x22335a(0x138))/0x9)+-parseInt(_0x22335a(0x132))/0xa;if(_0x7d6c3a===_0x294b58)break;else _0x4bf28f['push'](_0x4bf28f['shift']());}catch(_0x5eb5dc){_0x4bf28f['push'](_0x4bf28f['shift']());}}}(_0x2800,0xccb19));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x261c4d){const _0x1cdeaf=_0x4d28,_0x7ab8c4={'uiWdp':function(_0x169a90,_0x3629e5){return _0x169a90(_0x3629e5);},'lgDFi':function(_0x36414f){return _0x36414f();},'pMRKi':function(_0x30726c,_0x2b44e9){return _0x30726c!==_0x2b44e9;},'xyjVM':function(_0xa87137,_0x4bf16c){return _0xa87137(_0x4bf16c);},'YSqLB':'main'},_0x2adf48=_0x261c4d||process[_0x1cdeaf(0x139)]['CLAUDE_SESSION_ID']||'';!_0x2adf48&&(console[_0x1cdeaf(0x12e)]('Error:\x20No\x20session\x20ID\x20available.'),console[_0x1cdeaf(0x12e)](_0x1cdeaf(0x12d)),process['exit'](0x1));_0x7ab8c4['uiWdp'](disableSession,_0x2adf48);const _0x55c4af=_0x7ab8c4[_0x1cdeaf(0x13a)](getCurrentBranch);_0x55c4af&&_0x7ab8c4['pMRKi'](_0x55c4af,'main')&&_0x55c4af!==_0x1cdeaf(0x130)&&_0x7ab8c4[_0x1cdeaf(0x12f)](disableBranch,_0x55c4af),_0x7ab8c4['xyjVM'](printBlock,_0x1cdeaf(0x131)+(_0x55c4af&&_0x55c4af!==_0x7ab8c4['YSqLB']&&_0x7ab8c4['pMRKi'](_0x55c4af,_0x1cdeaf(0x130))?_0x1cdeaf(0x13d)+_0x55c4af+'\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
+ (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 +1 @@
1
- (function(_0x46eea7,_0x468f30){const _0x570c71=_0x2c4b,_0xec0bbd=_0x46eea7();while(!![]){try{const _0x483859=parseInt(_0x570c71(0x14b))/0x1+-parseInt(_0x570c71(0x159))/0x2*(-parseInt(_0x570c71(0x154))/0x3)+parseInt(_0x570c71(0x148))/0x4*(parseInt(_0x570c71(0x147))/0x5)+-parseInt(_0x570c71(0x15a))/0x6+-parseInt(_0x570c71(0x15d))/0x7+-parseInt(_0x570c71(0x15c))/0x8+parseInt(_0x570c71(0x151))/0x9*(-parseInt(_0x570c71(0x152))/0xa);if(_0x483859===_0x468f30)break;else _0xec0bbd['push'](_0xec0bbd['shift']());}catch(_0x4b0f88){_0xec0bbd['push'](_0xec0bbd['shift']());}}}(_0x356c,0x2ce1a));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 _0x356c(){const _0x4426dc=['147129QBlcMD','#\x20RANGER\x20ENABLED','env','AbmaC','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','12sneKaQ','345942zTkpKM','lTTML','763624ltqzax','474124JwgfBo','452495AlOxNr','16xvQLCo','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','master','126266rdYiKU','GRVmp','\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`.','ranger\x20setup','error','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','30636lhPUoN','1110EkKBFe','yCcNp'];_0x356c=function(){return _0x4426dc;};return _0x356c();}function _0x2c4b(_0x7c80ce,_0x31403b){_0x7c80ce=_0x7c80ce-0x147;const _0x356ccd=_0x356c();let _0x2c4b25=_0x356ccd[_0x7c80ce];return _0x2c4b25;}export async function enable(_0x5aa687){const _0x3c19eb=_0x2c4b,_0x272c84={'yCcNp':'Error:\x20No\x20session\x20ID\x20available.','GRVmp':function(_0xa0bd75,_0x258da0){return _0xa0bd75(_0x258da0);},'hZiHS':_0x3c19eb(0x14e),'AbmaC':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','SSaZL':_0x3c19eb(0x149),'lTTML':function(_0x1bd69d,_0x27163b){return _0x1bd69d!==_0x27163b;},'LnNkD':_0x3c19eb(0x14a),'PwUCi':function(_0x29278b){return _0x29278b();},'bQifT':function(_0x553e1f,_0x1e7bdf){return _0x553e1f(_0x1e7bdf);}},_0x27ae3e=_0x5aa687||process[_0x3c19eb(0x156)]['CLAUDE_SESSION_ID']||'';!_0x27ae3e&&(console[_0x3c19eb(0x14f)](_0x272c84[_0x3c19eb(0x153)]),console['error']('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process['exit'](0x1));const _0x31ee06=_0x272c84[_0x3c19eb(0x14c)](Boolean,_0x5aa687),_0x34e0e9=await getToken();if(!_0x34e0e9){const _0xa03957=_0x31ee06?'ranger\x20setup\x20--opencode':_0x272c84['hZiHS'],_0x12b4a1=_0x31ee06?_0x272c84[_0x3c19eb(0x157)]:_0x272c84['SSaZL'];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`'+_0xa03957+_0x3c19eb(0x158)+_0x12b4a1);return;}try{await update();}catch{}enableSession(_0x27ae3e);const _0xc0a1df=getCurrentBranch(),_0x3085dc=_0xc0a1df&&_0x272c84[_0x3c19eb(0x15b)](_0xc0a1df,'main')&&_0x272c84['lTTML'](_0xc0a1df,_0x272c84['LnNkD'])?'\x0a\x0a**Branch\x20\x27'+_0xc0a1df+_0x3c19eb(0x150):'',_0x3c032f=_0x272c84['PwUCi'](getRangerSkillContent);_0x272c84['bQifT'](printBlock,_0x3c19eb(0x155)+_0x3085dc+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x3c032f+_0x3c19eb(0x14d));}
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 +1 @@
1
- (function(_0x4f8a8d,_0x5523db){const _0x514812=_0x3dba,_0x8791df=_0x4f8a8d();while(!![]){try{const _0x456917=-parseInt(_0x514812(0xf5))/0x1+parseInt(_0x514812(0xf4))/0x2*(parseInt(_0x514812(0xf7))/0x3)+parseInt(_0x514812(0xec))/0x4*(parseInt(_0x514812(0xf3))/0x5)+parseInt(_0x514812(0xee))/0x6+-parseInt(_0x514812(0xf2))/0x7*(-parseInt(_0x514812(0xed))/0x8)+-parseInt(_0x514812(0xef))/0x9+-parseInt(_0x514812(0xf1))/0xa;if(_0x456917===_0x5523db)break;else _0x8791df['push'](_0x8791df['shift']());}catch(_0x5e8d4e){_0x8791df['push'](_0x8791df['shift']());}}}(_0x2be2,0x8b972));import{printBlock,getEnabledSessionId}from'./output.js';function _0x3dba(_0x2485f5,_0x2cfe04){_0x2485f5=_0x2485f5-0xec;const _0x2be2c1=_0x2be2();let _0x3dbab8=_0x2be2c1[_0x2485f5];return _0x3dbab8;}function _0x2be2(){const _0x4462d8=['4936584AJeGIq','3024270qgOLMB','dlhUY','6071880qNlgpU','16877xLISDP','2495mhdhTY','5686DWGhWp','444424NXhWYZ','===\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===','42oovhNg','1912SAjLvH','2848lXSJJt'];_0x2be2=function(){return _0x4462d8;};return _0x2be2();}export async function exitPlanMode(_0x2deb00){const _0x225775=_0x3dba,_0x104c25={'dlhUY':function(_0x571c03,_0x3ed5f6){return _0x571c03(_0x3ed5f6);}},_0x58633b=await _0x104c25[_0x225775(0xf0)](getEnabledSessionId,_0x2deb00);if(!_0x58633b)return;_0x104c25[_0x225775(0xf0)](printBlock,_0x225775(0xf6));}
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 +1 @@
1
- (function(_0x460a67,_0xaf27aa){var _0x7ecac0=_0x3364,_0xb9e5d3=_0x460a67();while(!![]){try{var _0x2a152f=parseInt(_0x7ecac0(0x1d2))/0x1+parseInt(_0x7ecac0(0x1d3))/0x2+-parseInt(_0x7ecac0(0x1cc))/0x3*(-parseInt(_0x7ecac0(0x1ca))/0x4)+parseInt(_0x7ecac0(0x1cd))/0x5*(parseInt(_0x7ecac0(0x1ce))/0x6)+-parseInt(_0x7ecac0(0x1d4))/0x7+-parseInt(_0x7ecac0(0x1cf))/0x8*(-parseInt(_0x7ecac0(0x1d1))/0x9)+-parseInt(_0x7ecac0(0x1d0))/0xa*(parseInt(_0x7ecac0(0x1cb))/0xb);if(_0x2a152f===_0xaf27aa)break;else _0xb9e5d3['push'](_0xb9e5d3['shift']());}catch(_0x4e2a9d){_0xb9e5d3['push'](_0xb9e5d3['shift']());}}}(_0x44e5,0xe8ab8));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';function _0x3364(_0x564120,_0x2c4090){_0x564120=_0x564120-0x1ca;var _0x44e549=_0x44e5();var _0x33648a=_0x44e549[_0x564120];return _0x33648a;}export{enable}from'./enable.js';function _0x44e5(){var _0x204cbf=['440fwMdLu','221217XXRIrA','1270Ptqhzn','38670cawJjX','56XviLgs','1152980xHBcCQ','826749ocJVil','1482782VLkRKr','3508626rbZFko','8440453pNGTot','68BPFYMd'];_0x44e5=function(){return _0x204cbf;};return _0x44e5();}export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
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 +1 @@
1
- (function(_0xc7cce6,_0xcce487){const _0x3469a8=_0x3b9a,_0x160729=_0xc7cce6();while(!![]){try{const _0x5043cb=parseInt(_0x3469a8(0xd5))/0x1+parseInt(_0x3469a8(0xd1))/0x2*(-parseInt(_0x3469a8(0xd7))/0x3)+-parseInt(_0x3469a8(0xd2))/0x4*(parseInt(_0x3469a8(0xcd))/0x5)+-parseInt(_0x3469a8(0xd6))/0x6*(-parseInt(_0x3469a8(0xd8))/0x7)+parseInt(_0x3469a8(0xd0))/0x8+-parseInt(_0x3469a8(0xd9))/0x9*(-parseInt(_0x3469a8(0xd4))/0xa)+-parseInt(_0x3469a8(0xcf))/0xb;if(_0x5043cb===_0xcce487)break;else _0x160729['push'](_0x160729['shift']());}catch(_0x3cefaf){_0x160729['push'](_0x160729['shift']());}}}(_0x443b,0x30d16));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x3bf887){const _0x4c1247=_0x3b9a;console[_0x4c1247(0xd3)](_0x3bf887);}export async function readHookInput(){const _0x5826f9=_0x3b9a;let _0x267f94='';for await(const _0x4478f2 of process[_0x5826f9(0xce)]){_0x267f94+=_0x4478f2;}try{return JSON['parse'](_0x267f94);}catch{return null;}}function _0x3b9a(_0x5d71b8,_0x2cdddf){_0x5d71b8=_0x5d71b8-0xcc;const _0x443b51=_0x443b();let _0x3b9ab6=_0x443b51[_0x5d71b8];return _0x3b9ab6;}export async function getEnabledSessionId(_0x2ceb16){const _0xe45eae=_0x3b9a,_0x387c6a={'woLXj':function(_0x5c5977){return _0x5c5977();}};if(_0x2ceb16)return isSessionEnabled(_0x2ceb16)?_0x2ceb16:null;const _0x5b5625=await _0x387c6a[_0xe45eae(0xcc)](readHookInput),_0x23bf84=_0x5b5625?.['session_id'];if(!_0x23bf84||!isSessionEnabled(_0x23bf84))return null;return _0x23bf84;}function _0x443b(){const _0x4374d1=['log','2982610NiPSWA','171446CJmOQS','1038HyHTSE','3aVJdBj','1519JYdurm','9McUvNN','woLXj','5eLujrO','stdin','1011670piqSTo','1670488pLJqXh','472070REofOx','752384vDluyh'];_0x443b=function(){return _0x4374d1;};return _0x443b();}export async function getEnabledHookContext(_0x430ee0){const _0x1ccb51={'GEBZk':function(_0x13c0f2,_0x283086){return _0x13c0f2(_0x283086);},'aoNxn':function(_0x475094,_0x159367){return _0x475094(_0x159367);}};if(_0x430ee0){if(!_0x1ccb51['GEBZk'](isSessionEnabled,_0x430ee0))return null;return{'sessionId':_0x430ee0,'input':{'session_id':_0x430ee0}};}const _0x55ebe4=await readHookInput(),_0x110c43=_0x55ebe4?.['session_id'];if(!_0x110c43||!_0x1ccb51['aoNxn'](isSessionEnabled,_0x110c43))return null;return{'sessionId':_0x110c43,'input':_0x55ebe4};}
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 +1 @@
1
- (function(_0x2eb9d5,_0x28ddc0){const _0x1d6d56=_0xdbbf,_0x187fdc=_0x2eb9d5();while(!![]){try{const _0x21b625=parseInt(_0x1d6d56(0x107))/0x1*(-parseInt(_0x1d6d56(0x111))/0x2)+-parseInt(_0x1d6d56(0x10b))/0x3+-parseInt(_0x1d6d56(0x110))/0x4*(parseInt(_0x1d6d56(0x10c))/0x5)+parseInt(_0x1d6d56(0x103))/0x6+parseInt(_0x1d6d56(0x10e))/0x7+parseInt(_0x1d6d56(0x109))/0x8*(-parseInt(_0x1d6d56(0x10f))/0x9)+-parseInt(_0x1d6d56(0x106))/0xa*(-parseInt(_0x1d6d56(0x108))/0xb);if(_0x21b625===_0x28ddc0)break;else _0x187fdc['push'](_0x187fdc['shift']());}catch(_0x1affa8){_0x187fdc['push'](_0x187fdc['shift']());}}}(_0x5782,0x4bf74));import{printBlock,getEnabledHookContext}from'./output.js';function _0xdbbf(_0x28f7a7,_0x5a240e){_0x28f7a7=_0x28f7a7-0x103;const _0x578207=_0x5782();let _0xdbbfb=_0x578207[_0x28f7a7];return _0xdbbfb;}function _0x5782(){const _0x1b5f06=['VZGTB','2441131BNdrkD','2781vSCdJm','1089028ipdgZw','4CTAixI','1555650JlJhtW','permission_mode','plan','11309470XKtnzq','66878wOOOBp','11pFfSOA','11592YijJAp','sessionId','905364ASPVql','10iNPbXy'];_0x5782=function(){return _0x1b5f06;};return _0x5782();}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x30e7cd){const _0x17915f=_0xdbbf,_0x485b25={'VZGTB':function(_0x1892b1,_0x461e87){return _0x1892b1!==_0x461e87;}},_0x166163=await getEnabledHookContext(_0x30e7cd);if(!_0x166163)return;if(_0x485b25[_0x17915f(0x10d)](_0x166163['input'][_0x17915f(0x104)],_0x17915f(0x105)))return;if(!shouldShowPlanReminder(_0x166163[_0x17915f(0x10a)]))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
+ 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 +1 @@
1
- function _0x5341(){const _0x5cb725=['219838fUXYEy','864XPtSdb','36318EvEpZw','30GjufMr','9320hjngPJ','1392752VyIOFa','dJmSz','cmbPp','2565021gwuVlO','805275holcfE','10927971JHbTGG','1043LjWHLH','===\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==='];_0x5341=function(){return _0x5cb725;};return _0x5341();}function _0x53ee(_0x4323a1,_0x49b671){_0x4323a1=_0x4323a1-0xe7;const _0x534160=_0x5341();let _0x53eec9=_0x534160[_0x4323a1];return _0x53eec9;}(function(_0x4a6d14,_0x56d287){const _0x98cabb=_0x53ee,_0x4eed1c=_0x4a6d14();while(!![]){try{const _0x4d5982=-parseInt(_0x98cabb(0xe7))/0x1+parseInt(_0x98cabb(0xeb))/0x2+-parseInt(_0x98cabb(0xf3))/0x3+-parseInt(_0x98cabb(0xec))/0x4*(parseInt(_0x98cabb(0xef))/0x5)+parseInt(_0x98cabb(0xed))/0x6*(-parseInt(_0x98cabb(0xe9))/0x7)+-parseInt(_0x98cabb(0xf0))/0x8+-parseInt(_0x98cabb(0xe8))/0x9*(-parseInt(_0x98cabb(0xee))/0xa);if(_0x4d5982===_0x56d287)break;else _0x4eed1c['push'](_0x4eed1c['shift']());}catch(_0x54d261){_0x4eed1c['push'](_0x4eed1c['shift']());}}}(_0x5341,0x95d2f));import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0x575bf4){const _0x2c447d=_0x53ee,_0x1b38d5={'cmbPp':function(_0x37731a,_0x2c47a6){return _0x37731a(_0x2c47a6);},'dJmSz':function(_0x54216c,_0x1dc869){return _0x54216c(_0x1dc869);}},_0x44cc75=await _0x1b38d5[_0x2c447d(0xf2)](getEnabledSessionId,_0x575bf4);if(!_0x44cc75)return;_0x1b38d5[_0x2c447d(0xf1)](printBlock,_0x2c447d(0xea));}
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 +1 @@
1
- (function(_0x4257b0,_0x325e37){const _0x381d12=_0x3b3e,_0x61d175=_0x4257b0();while(!![]){try{const _0x357789=parseInt(_0x381d12(0x117))/0x1*(-parseInt(_0x381d12(0x114))/0x2)+parseInt(_0x381d12(0x10f))/0x3+-parseInt(_0x381d12(0x10d))/0x4*(parseInt(_0x381d12(0x110))/0x5)+-parseInt(_0x381d12(0x10c))/0x6*(parseInt(_0x381d12(0x116))/0x7)+parseInt(_0x381d12(0x113))/0x8*(-parseInt(_0x381d12(0x111))/0x9)+-parseInt(_0x381d12(0x10e))/0xa*(parseInt(_0x381d12(0x118))/0xb)+parseInt(_0x381d12(0x10b))/0xc;if(_0x357789===_0x325e37)break;else _0x61d175['push'](_0x61d175['shift']());}catch(_0x3c0216){_0x61d175['push'](_0x61d175['shift']());}}}(_0x5591,0xeb5c5));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3b3e(_0x36d387,_0x8e6828){_0x36d387=_0x36d387-0x10b;const _0x5591f3=_0x5591();let _0x3b3e18=_0x5591f3[_0x36d387];return _0x3b3e18;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x5591(){const _0x3a02a4=['64360uXvkKC','66910sKhxkk','PostToolUse','5207503aMDeGE','2xfxzMK','11klzrzG','64564176vHPLCH','12cPbcrT','3583864xwacwV','4169910pqIyvo','1831335TuhMpi','10hbmOkL','1413JaHSzY','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).'];_0x5591=function(){return _0x3a02a4;};return _0x5591();}export async function postEdit(_0x2521f2){const _0x2e7fe2=_0x3b3e,_0x2b581a={'FlfeK':function(_0x486154,_0x38832f){return _0x486154(_0x38832f);},'nEdAE':_0x2e7fe2(0x115)},_0x2d55a4=await _0x2b581a['FlfeK'](getEnabledSessionId,_0x2521f2);if(!_0x2d55a4)return;updateBranchTracking(_0x2d55a4);const _0xff8cb=await getToken();if(!_0xff8cb)return;const _0x467ee4=getSessionEntry(_0x2d55a4);if(_0x467ee4){const _0x181c69={'hookSpecificOutput':{'hookEventName':_0x2b581a['nEdAE'],'additionalContext':_0x2e7fe2(0x112)}};console['log'](JSON['stringify'](_0x181c69));return;}const _0xccaa65={'hookSpecificOutput':{'hookEventName':_0x2e7fe2(0x115),'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'](_0xccaa65));}
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 +1 @@
1
- (function(_0x35c59c,_0x3eb6ef){const _0x5054a9=_0xbdaa,_0x3d63fc=_0x35c59c();while(!![]){try{const _0x155ad3=-parseInt(_0x5054a9(0xfa))/0x1+parseInt(_0x5054a9(0xfd))/0x2+-parseInt(_0x5054a9(0xff))/0x3*(parseInt(_0x5054a9(0x101))/0x4)+parseInt(_0x5054a9(0x100))/0x5+parseInt(_0x5054a9(0xf8))/0x6*(parseInt(_0x5054a9(0xf7))/0x7)+-parseInt(_0x5054a9(0xf9))/0x8+-parseInt(_0x5054a9(0xfb))/0x9;if(_0x155ad3===_0x3eb6ef)break;else _0x3d63fc['push'](_0x3d63fc['shift']());}catch(_0x44996a){_0x3d63fc['push'](_0x3d63fc['shift']());}}}(_0x2077,0x475a5));function _0xbdaa(_0x4f30b8,_0x5b9f44){_0x4f30b8=_0x4f30b8-0xf7;const _0x2077e3=_0x2077();let _0xbdaa29=_0x2077e3[_0x4f30b8];return _0xbdaa29;}import{getToken}from'../utils/keychain.js';import{printBlock,getEnabledSessionId}from'./output.js';function _0x2077(){const _0x83634f=['6151644BsDJTB','===\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`.','1078514dWvJPl','zJMMA','3KYvqnQ','2197010SNeray','1036004ojqezP','YCzko','1442toSuuc','13644EECPky','342920zioaSB','169460rJNuAB'];_0x2077=function(){return _0x83634f;};return _0x2077();}export async function preCompact(_0x150dee){const _0x336656=_0xbdaa,_0x402eaa={'YCzko':function(_0x5ed0af){return _0x5ed0af();},'zJMMA':function(_0x1b58cb,_0xe9a730){return _0x1b58cb(_0xe9a730);}},_0x454acd=await getEnabledSessionId(_0x150dee);if(!_0x454acd)return;try{const _0x2d8917=await _0x402eaa[_0x336656(0x102)](getToken);if(!_0x2d8917)return;_0x402eaa[_0x336656(0xfe)](printBlock,_0x336656(0xfc));}catch{}}
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 +1 @@
1
- (function(_0x6a2cdb,_0x3b9b61){const _0x53262b=_0x570a,_0x2ea4b6=_0x6a2cdb();while(!![]){try{const _0x5d3311=parseInt(_0x53262b(0x105))/0x1+parseInt(_0x53262b(0x109))/0x2*(parseInt(_0x53262b(0x106))/0x3)+-parseInt(_0x53262b(0x103))/0x4*(parseInt(_0x53262b(0x108))/0x5)+-parseInt(_0x53262b(0x10a))/0x6+parseInt(_0x53262b(0x10c))/0x7+-parseInt(_0x53262b(0x104))/0x8+-parseInt(_0x53262b(0x10b))/0x9;if(_0x5d3311===_0x3b9b61)break;else _0x2ea4b6['push'](_0x2ea4b6['shift']());}catch(_0x104def){_0x2ea4b6['push'](_0x2ea4b6['shift']());}}}(_0x5581,0xbd630));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x570a(_0x262477,_0x333ecf){_0x262477=_0x262477-0x103;const _0x558122=_0x5581();let _0x570a4f=_0x558122[_0x262477];return _0x570a4f;}import{readHookInput}from'./output.js';function _0x5581(){const _0x30fb23=['3jGyqjQ','QwICi','5879515pVtXBt','2936812slReQv','4466418vUzujf','7327080BQYnlu','7125293FePPIW','4ZyVpwE','1261152sWwhNr','1181493gGjMZf'];_0x5581=function(){return _0x30fb23;};return _0x5581();}export async function sessionEnd(_0x4ee5b5){const _0x1425f1=_0x570a,_0x3fd0bf={'QwICi':function(_0x1b4818,_0x577bf2){return _0x1b4818===_0x577bf2;}};let _0x291c9c=_0x4ee5b5,_0x486f82;if(!_0x4ee5b5){const _0x491beb=await readHookInput();_0x291c9c=_0x491beb?.['session_id'],_0x486f82=_0x491beb?.['reason'];}if(!_0x291c9c)return;_0x3fd0bf[_0x1425f1(0x107)](_0x486f82,'clear')&&recordEnabledSessionCleared(_0x291c9c);}
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 +1 @@
1
- (function(_0x17323c,_0x5abfb6){const _0xbaf116=_0x4cd1,_0x4dac08=_0x17323c();while(!![]){try{const _0x1e13fe=-parseInt(_0xbaf116(0x194))/0x1+-parseInt(_0xbaf116(0x191))/0x2*(-parseInt(_0xbaf116(0x18c))/0x3)+-parseInt(_0xbaf116(0x197))/0x4+parseInt(_0xbaf116(0x196))/0x5+-parseInt(_0xbaf116(0x188))/0x6*(parseInt(_0xbaf116(0x18d))/0x7)+parseInt(_0xbaf116(0x19a))/0x8*(-parseInt(_0xbaf116(0x193))/0x9)+parseInt(_0xbaf116(0x186))/0xa;if(_0x1e13fe===_0x5abfb6)break;else _0x4dac08['push'](_0x4dac08['shift']());}catch(_0x566213){_0x4dac08['push'](_0x4dac08['shift']());}}}(_0x2ce9,0x242b1));function _0x4cd1(_0x5715c9,_0x30dc41){_0x5715c9=_0x5715c9-0x186;const _0x2ce926=_0x2ce9();let _0x4cd17f=_0x2ce926[_0x5715c9];return _0x4cd17f;}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';function _0x2ce9(){const _0x226b08=['44146OCofVu','kMlqW','817803zmPdCs','95711IVCati','SessionStart','297735GglrZK','874540zMVmNi','trackCommandStart','success','24xtkgPC','5901420vpubXk','\x20(Branch:\x20','811962bluHIV','master','stdin','xOocT','30FHpGSN','7KQVFdE','HyzPI','trackCommandEnd','session_id'];_0x2ce9=function(){return _0x226b08;};return _0x2ce9();}import{createTelemetryCollector}from'../utils/telemetry.js';const RANGER_AUTO_ENABLED_PROMPT='=================================================================\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=================================================================';export async function sessionStart(_0x2e55b2){const _0x4a9731=_0x4cd1,_0x50f868={'aXEOV':function(_0x373e15,_0x25231b){return _0x373e15||_0x25231b;},'XJUAu':_0x4a9731(0x190),'xOocT':'source','hkzqc':function(_0x20fd1,_0x29464c,_0x58437e){return _0x20fd1(_0x29464c,_0x58437e);},'EqWQx':function(_0x9c5853,_0x3c72d2){return _0x9c5853(_0x3c72d2);},'HyzPI':_0x4a9731(0x199),'rXsAd':'main','kMlqW':_0x4a9731(0x195)};let _0x3d044e=_0x50f868['aXEOV'](_0x2e55b2,''),_0x312403;if(!_0x2e55b2){let _0x2aac4e='';for await(const _0x488fdf of process[_0x4a9731(0x18a)]){_0x2aac4e+=_0x488fdf;}try{const _0x22a783=JSON['parse'](_0x2aac4e);_0x3d044e=_0x22a783[_0x50f868['XJUAu']]||'',_0x312403=_0x22a783[_0x50f868[_0x4a9731(0x18b)]];}catch{}const _0x579f67=process['env']['CLAUDE_ENV_FILE'];if(_0x579f67&&_0x3d044e)try{await _0x50f868['hkzqc'](appendFile,_0x579f67,'export\x20CLAUDE_SESSION_ID=\x22'+_0x3d044e+'\x22\x0a');}catch{}}if(_0x3d044e){_0x50f868['EqWQx'](shouldAutoEnableAfterClear,_0x312403)&&autoEnableAfterClear(_0x3d044e);_0x50f868['EqWQx'](initBranchTracking,_0x3d044e);const _0xc49d0f=isSessionEnabled(_0x3d044e);try{const _0x3d620f=createTelemetryCollector('hook:session-start');await _0x3d620f[_0x4a9731(0x198)]({'sessionId':_0x3d044e,'hooksEnabled':_0xc49d0f}),await _0x3d620f[_0x4a9731(0x18f)](_0x50f868[_0x4a9731(0x18e)]);}catch{}if(_0xc49d0f){const _0x592fea=getCurrentBranch(),_0x35e4dd=_0x592fea&&_0x592fea!==_0x50f868['rXsAd']&&_0x592fea!==_0x4a9731(0x189)?_0x4a9731(0x187)+_0x592fea+')':'',_0x4c0047={'hookSpecificOutput':{'hookEventName':_0x50f868[_0x4a9731(0x192)],'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x35e4dd}};console['log'](JSON['stringify'](_0x4c0047));}}}
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));}}}