@ranger-testing/ranger-cli 2.2.0 → 2.2.2

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 (67) 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/stitchWebmFiles.js +1 -1
  61. package/build/commands/utils/telemetry.js +1 -1
  62. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  63. package/build/commands/utils/userApi.js +1 -1
  64. package/build/commands/utils/version.js +1 -1
  65. package/build/commands/verifyFeature.js +1 -1
  66. package/build/commands/verifyInBrowser.js +1 -1
  67. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x38675b=_0x2e0d;(function(_0x153058,_0x58bf7c){const _0x5e1295=_0x2e0d,_0x77dcc4=_0x153058();while(!![]){try{const _0x5b1e3a=-parseInt(_0x5e1295(0x197))/0x1+parseInt(_0x5e1295(0x194))/0x2*(-parseInt(_0x5e1295(0x1a6))/0x3)+-parseInt(_0x5e1295(0x1ab))/0x4+parseInt(_0x5e1295(0x19d))/0x5+parseInt(_0x5e1295(0x199))/0x6+-parseInt(_0x5e1295(0x19c))/0x7*(parseInt(_0x5e1295(0x192))/0x8)+parseInt(_0x5e1295(0x195))/0x9*(parseInt(_0x5e1295(0x1ad))/0xa);if(_0x5b1e3a===_0x58bf7c)break;else _0x77dcc4['push'](_0x77dcc4['shift']());}catch(_0x36a734){_0x77dcc4['push'](_0x77dcc4['shift']());}}}(_0x21a8,0x44628));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';function _0x21a8(){const _0x314db3=['133XqFtbO','1180935mTPoDD','sessions','environmentDetails','\x0aProfiles:','bug-bashes','reports','.txt','log','endsWith','5628sdeWrW','includes','VugDC','baseUrl','\x20\x20\x20\x20\x20\x20Details:\x20','1968620epBmKw','SFSdr','5618190PEevka','local','RdAZV','GYsRQ','push','46960gyloqs','Run:\x20ranger\x20profile\x20add\x20<profile-name>','50TyuCcd','9ohwrfj','legacy','301975PWxmRJ','\x0aNo\x20profiles\x20found.','2607948Qfsupb','hZEQm','settings.json'];_0x21a8=function(){return _0x314db3;};return _0x21a8();}function _0x2e0d(_0x339e67,_0xaff419){_0x339e67=_0x339e67-0x191;const _0x21a8f2=_0x21a8();let _0x2e0d16=_0x21a8f2[_0x339e67];return _0x2e0d16;}const NON_ENV_DIRS=[_0x38675b(0x19e),_0x38675b(0x1a1),_0x38675b(0x1a2),_0x38675b(0x1ae),'ci'];export async function getEnvNames(){const _0x332a29=_0x38675b,_0x1c8322={'DhCrN':function(_0x6a9e9f){return _0x6a9e9f();},'UlqFD':function(_0xcdcc94,_0x503a8e){return _0xcdcc94(_0x503a8e);},'SFSdr':function(_0x265939,_0x15d7bf,_0x3637bc){return _0x265939(_0x15d7bf,_0x3637bc);},'NaCpn':function(_0x2b3684,_0x330e64){return _0x2b3684(_0x330e64);},'BfvdB':function(_0x15f8dd,_0x1822db){return _0x15f8dd(_0x1822db);},'RdAZV':_0x332a29(0x19b),'hZEQm':_0x332a29(0x196)},_0x2b0eff=getRangerDir();if(!existsSync(_0x2b0eff))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x4c756=await _0x1c8322['DhCrN'](readActiveProfileName),_0x3c2fb7=[],_0x28aa5={},_0xc7eb79=join(_0x2b0eff,'local');if(_0x1c8322['UlqFD'](existsSync,_0xc7eb79)){const _0x1e7685=await readdir(_0xc7eb79);for(const _0x2f7e5d of _0x1e7685){const _0x1706b3=join(_0xc7eb79,_0x2f7e5d),_0x2d05bf=await _0x1c8322['UlqFD'](stat,_0x1706b3);_0x2d05bf['isDirectory']()&&(_0x3c2fb7['push'](_0x2f7e5d),_0x28aa5[_0x2f7e5d]=_0x332a29(0x1ae));}}const _0x22c840=_0x1c8322[_0x332a29(0x1ac)](join,_0x2b0eff,'ci');if(existsSync(_0x22c840)){const _0x21f667=await _0x1c8322['UlqFD'](readdir,_0x22c840);for(const _0x49bdd2 of _0x21f667){const _0x39ef7f=_0x1c8322['SFSdr'](join,_0x22c840,_0x49bdd2),_0x31d9db=await stat(_0x39ef7f);_0x31d9db['isDirectory']()&&(_0x3c2fb7[_0x332a29(0x191)](_0x49bdd2),_0x28aa5[_0x49bdd2]='ci');}}const _0x10de5d=await readdir(_0x2b0eff);for(const _0x7b7ac7 of _0x10de5d){if(NON_ENV_DIRS[_0x332a29(0x1a7)](_0x7b7ac7))continue;if(_0x7b7ac7['startsWith']('.'))continue;if(_0x7b7ac7[_0x332a29(0x1a5)](_0x332a29(0x1a3)))continue;const _0x54679b=join(_0x2b0eff,_0x7b7ac7),_0x15512f=await _0x1c8322['NaCpn'](stat,_0x54679b);_0x15512f['isDirectory']()&&_0x1c8322['BfvdB'](existsSync,join(_0x54679b,_0x1c8322[_0x332a29(0x1af)]))&&(!_0x3c2fb7['includes'](_0x7b7ac7)&&(_0x3c2fb7[_0x332a29(0x191)](_0x7b7ac7),_0x28aa5[_0x7b7ac7]=_0x1c8322[_0x332a29(0x19a)]));}return{'envNames':_0x3c2fb7,'activeEnv':_0x4c756,'envTypes':_0x28aa5};}export async function envList(){const _0x5a2bb6=_0x38675b,_0x50a5a2={'OFQHz':function(_0x2a8fe6){return _0x2a8fe6();},'GYsRQ':function(_0x18a504,_0x2ec2d4){return _0x18a504===_0x2ec2d4;},'hksWX':_0x5a2bb6(0x198),'xkFce':function(_0x2fdeac,_0x121020){return _0x2fdeac===_0x121020;},'VugDC':_0x5a2bb6(0x1ae)},{envNames:_0x171a17,activeEnv:_0x5ee1c4,envTypes:_0x5673bd}=await _0x50a5a2['OFQHz'](getEnvNames);if(_0x50a5a2[_0x5a2bb6(0x1b0)](_0x171a17['length'],0x0)){console['log'](_0x50a5a2['hksWX']),console[_0x5a2bb6(0x1a4)](_0x5a2bb6(0x193));return;}console['log'](_0x5a2bb6(0x1a0));for(const _0x187d48 of _0x171a17['sort']()){const _0x89ecff=_0x50a5a2['xkFce'](_0x187d48,_0x5ee1c4),_0x4e7a98=_0x5673bd[_0x187d48]||_0x50a5a2[_0x5a2bb6(0x1a8)],_0x33c95a=await loadSettings(_0x187d48),_0x1c0a08=_0x4e7a98===_0x5a2bb6(0x196)?'':'\x20['+_0x4e7a98+']';console[_0x5a2bb6(0x1a4)]('\x20\x20'+(_0x89ecff?'*\x20':'\x20\x20')+_0x187d48+_0x1c0a08),_0x33c95a[_0x5a2bb6(0x1a9)]&&console[_0x5a2bb6(0x1a4)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x33c95a[_0x5a2bb6(0x1a9)]),_0x33c95a[_0x5a2bb6(0x19f)]&&console[_0x5a2bb6(0x1a4)](_0x5a2bb6(0x1aa)+_0x33c95a[_0x5a2bb6(0x19f)]);}_0x5ee1c4&&console[_0x5a2bb6(0x1a4)]('\x0a*\x20=\x20active\x20profile');}
1
+ function _0x16cf(_0x51a5b9,_0x5b9e90){_0x51a5b9=_0x51a5b9-0x117;const _0x54d003=_0x54d0();let _0x16cf50=_0x54d003[_0x51a5b9];return _0x16cf50;}const _0x230aef=_0x16cf;(function(_0x15c9c5,_0x35d7d7){const _0x3971a4=_0x16cf,_0x3308cd=_0x15c9c5();while(!![]){try{const _0x42f98a=parseInt(_0x3971a4(0x130))/0x1*(-parseInt(_0x3971a4(0x12f))/0x2)+-parseInt(_0x3971a4(0x139))/0x3*(parseInt(_0x3971a4(0x134))/0x4)+-parseInt(_0x3971a4(0x132))/0x5*(-parseInt(_0x3971a4(0x12b))/0x6)+parseInt(_0x3971a4(0x127))/0x7+-parseInt(_0x3971a4(0x137))/0x8*(-parseInt(_0x3971a4(0x124))/0x9)+parseInt(_0x3971a4(0x118))/0xa*(-parseInt(_0x3971a4(0x135))/0xb)+parseInt(_0x3971a4(0x133))/0xc*(parseInt(_0x3971a4(0x126))/0xd);if(_0x42f98a===_0x35d7d7)break;else _0x3308cd['push'](_0x3308cd['shift']());}catch(_0x2a79ce){_0x3308cd['push'](_0x3308cd['shift']());}}}(_0x54d0,0xa12c6));import{readdir,stat}from'fs/promises';function _0x54d0(){const _0x39b729=['sort','54DnuhAe','push','18721378vcYOYK','2745995rBhLmU','jfJFd','lIHKO','\x20\x20\x20\x20\x20\x20URL:\x20','4335342zwNQmH','.txt','includes','\x0a*\x20=\x20active\x20profile','1062452PkfcXr','2XuJJTu','log','5ueZoRk','12kvokyR','1708xuzlLc','3487qoQJjA','ohQTa','602896MDYsYv','RXXWS','4548HaSvTd','isDirectory','Run:\x20ranger\x20profile\x20add\x20<profile-name>','startsWith','idLTS','20100tNGayw','bug-bashes','TWeDv','environmentDetails','local','reports','MfGqj','SXBCJ','baseUrl','sessions','settings.json'];_0x54d0=function(){return _0x39b729;};return _0x54d0();}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=[_0x230aef(0x121),_0x230aef(0x119),_0x230aef(0x11d),_0x230aef(0x11c),'ci'];export async function getEnvNames(){const _0x3361d3=_0x230aef,_0x54c7f6={'lIHKO':function(_0x4a5415){return _0x4a5415();},'wvyRz':function(_0x580b4e,_0x214723){return _0x580b4e(_0x214723);},'RXXWS':_0x3361d3(0x11c),'OCIHz':function(_0x3b8b45,_0x22432c){return _0x3b8b45(_0x22432c);},'ytGmg':function(_0x347a63,_0x33f6aa,_0x22033e){return _0x347a63(_0x33f6aa,_0x22033e);},'ohQTa':function(_0x5ea19b,_0x45d1af){return _0x5ea19b(_0x45d1af);},'TWeDv':function(_0x5d2f1d,_0x5cad0a,_0x2263f9){return _0x5d2f1d(_0x5cad0a,_0x2263f9);},'xdmps':function(_0x4efc80,_0x96f609){return _0x4efc80(_0x96f609);},'EbXvz':_0x3361d3(0x122),'RuBoA':'legacy'},_0x291e50=_0x54c7f6[_0x3361d3(0x129)](getRangerDir);if(!_0x54c7f6['wvyRz'](existsSync,_0x291e50))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x43448b=await readActiveProfileName(),_0x54e79d=[],_0x476f79={},_0x530bd7=join(_0x291e50,_0x54c7f6[_0x3361d3(0x138)]);if(_0x54c7f6['OCIHz'](existsSync,_0x530bd7)){const _0x5e81e4=await readdir(_0x530bd7);for(const _0x3d2bee of _0x5e81e4){const _0x7c10a5=join(_0x530bd7,_0x3d2bee),_0x452843=await stat(_0x7c10a5);_0x452843[_0x3361d3(0x13a)]()&&(_0x54e79d[_0x3361d3(0x125)](_0x3d2bee),_0x476f79[_0x3d2bee]='local');}}const _0x4c3317=_0x54c7f6['ytGmg'](join,_0x291e50,'ci');if(_0x54c7f6[_0x3361d3(0x136)](existsSync,_0x4c3317)){const _0x4ed5b6=await readdir(_0x4c3317);for(const _0x47c133 of _0x4ed5b6){const _0x2bfe64=_0x54c7f6[_0x3361d3(0x11a)](join,_0x4c3317,_0x47c133),_0x239464=await stat(_0x2bfe64);_0x239464[_0x3361d3(0x13a)]()&&(_0x54e79d[_0x3361d3(0x125)](_0x47c133),_0x476f79[_0x47c133]='ci');}}const _0x5a1969=await readdir(_0x291e50);for(const _0x26ddbc of _0x5a1969){if(NON_ENV_DIRS[_0x3361d3(0x12d)](_0x26ddbc))continue;if(_0x26ddbc[_0x3361d3(0x13c)]('.'))continue;if(_0x26ddbc['endsWith'](_0x3361d3(0x12c)))continue;const _0x31f987=join(_0x291e50,_0x26ddbc),_0x35314f=await stat(_0x31f987);_0x35314f[_0x3361d3(0x13a)]()&&_0x54c7f6['xdmps'](existsSync,join(_0x31f987,_0x54c7f6['EbXvz']))&&(!_0x54e79d['includes'](_0x26ddbc)&&(_0x54e79d[_0x3361d3(0x125)](_0x26ddbc),_0x476f79[_0x26ddbc]=_0x54c7f6['RuBoA']));}return{'envNames':_0x54e79d,'activeEnv':_0x43448b,'envTypes':_0x476f79};}export async function envList(){const _0x2981ba=_0x230aef,_0x2094bf={'MfGqj':function(_0x5c6475){return _0x5c6475();},'pOMvg':'\x0aNo\x20profiles\x20found.','idLTS':_0x2981ba(0x11c),'dMTpQ':function(_0x193149,_0x107bb5){return _0x193149(_0x107bb5);},'jfJFd':function(_0xb43733,_0x4c88cc){return _0xb43733===_0x4c88cc;},'SXBCJ':'legacy'},{envNames:_0x27aeb3,activeEnv:_0x244c77,envTypes:_0x78c5b3}=await _0x2094bf[_0x2981ba(0x11e)](getEnvNames);if(_0x27aeb3['length']===0x0){console['log'](_0x2094bf['pOMvg']),console['log'](_0x2981ba(0x13b));return;}console['log']('\x0aProfiles:');for(const _0xb8b05a of _0x27aeb3[_0x2981ba(0x123)]()){const _0x37b4f9=_0xb8b05a===_0x244c77,_0x4116d5=_0x78c5b3[_0xb8b05a]||_0x2094bf[_0x2981ba(0x117)],_0x16b89e=await _0x2094bf['dMTpQ'](loadSettings,_0xb8b05a),_0x17fb99=_0x2094bf[_0x2981ba(0x128)](_0x4116d5,_0x2094bf[_0x2981ba(0x11f)])?'':'\x20['+_0x4116d5+']';console['log']('\x20\x20'+(_0x37b4f9?'*\x20':'\x20\x20')+_0xb8b05a+_0x17fb99),_0x16b89e['baseUrl']&&console[_0x2981ba(0x131)](_0x2981ba(0x12a)+_0x16b89e[_0x2981ba(0x120)]),_0x16b89e[_0x2981ba(0x11b)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x16b89e['environmentDetails']);}_0x244c77&&console[_0x2981ba(0x131)](_0x2981ba(0x12e));}
@@ -1 +1 @@
1
- const _0x4f9439=_0x4fb4;(function(_0x3b8fff,_0x5bf276){const _0x466f03=_0x4fb4,_0x206872=_0x3b8fff();while(!![]){try{const _0x542b4f=parseInt(_0x466f03(0x255))/0x1+-parseInt(_0x466f03(0x20d))/0x2*(-parseInt(_0x466f03(0x1ca))/0x3)+-parseInt(_0x466f03(0x213))/0x4*(-parseInt(_0x466f03(0x267))/0x5)+-parseInt(_0x466f03(0x244))/0x6*(-parseInt(_0x466f03(0x250))/0x7)+-parseInt(_0x466f03(0x21f))/0x8+parseInt(_0x466f03(0x1d7))/0x9+parseInt(_0x466f03(0x20c))/0xa*(-parseInt(_0x466f03(0x21e))/0xb);if(_0x542b4f===_0x5bf276)break;else _0x206872['push'](_0x206872['shift']());}catch(_0x243ad5){_0x206872['push'](_0x206872['shift']());}}}(_0x39d4,0xbba9a));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x4db099 from'inquirer';function _0x39d4(){const _0x19f3ba=['qdMNd','xPwiP','toLocaleString','version','\x20[has\x20reviewer\x20feedback]','\x20\x20\x20\x20\x20ID:\x20','push','incomplete','join','QCWBQ','UiNdL','repeat','dTWOd','KhXRT','any','\x20feature\x20review(s)\x20found','RftvU','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','parentItemId','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20\x20\x20\x20\x20Progress:\x20','DLjOO','\x1b[1m','\x0aAvailable\x20scenarios:','yTJLz','find','textContent','\x0aCreating\x20feature\x20review...','jNmWI','\x1b[0m','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','\x20\x20\x20Created:\x20','terminalReason','\x20\x20\x20','content','TWknS','currentSessionId','ONddS','unaddressedComments','ucjQD','status','UcAAP','iteration','\x20\x20\x20Progress:\x20','cXXvm','\x0aNo\x20feature\x20reviews\x20found.','Current\x20session\x20not\x20found.','13004650WyROty','202EThuEi','\x0a📋\x20Feedback\x20for:\x20','2|3|4|1|0|5','verificationInProgressItems','\x0a✅\x20Session\x20','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','28hMJkjX','submittedAt','cLEeg','canceledReason','tzNpz','XQQUB','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20concluded.','filter','\x20\x20\x20Branch:\x20','closed','11UCpEvD','7350000TNDHCu','completedAt','crloK','OIRyE','SkRaG','\x20incomplete','warn','domRef','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','utf-8','UyTha','error','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','wthpR','approved','hblKc','.md','completed','\x20verified','tARgX','selector','lfpxj','CLAUDE_SESSION_ID','\x20scenario(s).','RBlZv','gFmuG','includeDeleted','latestReview','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','JoaKE','\x20--include-deleted','isTTY','quZfa','verifiedItems','scenario','mqElM','6kmzVQM','geKiO','createdAt','vLZqt','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','\x0a⚠️\x20\x20','arrayBuffer','wcPUZ','JFNdD','\x20\x20\x20\x20','incompleteReason','point','3113579fVkoyo','OdaIg','canonicalFlow','PmDof','gitBranch','914267nBQGoy','\x0a✅\x20Report\x20generated:\x20','description','IEkak','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','totalCount','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','exit','spatial','No\x20sessions\x20found.','type','pipe','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','split','map','yJXHK','\x0a\x20\x20\x20Scenarios:','...','760065PbkHbz','iyhZq','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','github.com/','Scenario\x20','\x0a✅\x20Scenario\x20added','MqJEq',':\x20\x22','checklistItems','Cannot\x20conclude\x20session\x20with\x20status:\x20','\x20\x20\x20\x20\x20Branch:\x20','\x20\x20\x20Description:\x20','toFixed','items','stdin','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','bbqAx','dkxHJ','dashboardUrl','\x20\x20\x20Completed:\x20','sessionId','env','verification_in_progress','SFDvp','limit','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','numeric','trim','authorName','stats','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Please\x20finish\x20your\x20review\x20first:','pop','\x20\x20Expected\x20flow:','DIxsX','length','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','zlcvM','vamgU','verified','13470MzrwsE','PkHzs','replace','log','\x20blocked','\x20scenarios.','currentBranch','stdout','\x20\x20\x20\x20\x20\x20Incomplete:\x20','tHBTN','AFzBv','name','qjBsw','1001124WXnoiu','\x0aGenerating\x20report...','style','\x20--limit\x20','mcgUd','BnLYr'];_0x39d4=function(){return _0x19f3ba;};return _0x39d4();}import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x1b62f6=>_0x4f9439(0x1f3)+_0x1b62f6+_0x4f9439(0x1fa);function getGitRepoUrl(){const _0x5335b0=_0x4f9439,_0xcf8f1a={'FjJGv':'git\x20remote\x20get-url\x20origin','zlcvM':'utf-8','PmDof':'pipe','DlHMU':_0x5335b0(0x1a4)};try{const _0x280cb4=execSync(_0xcf8f1a['FjJGv'],{'encoding':_0xcf8f1a[_0x5335b0(0x1c7)],'stdio':[_0xcf8f1a[_0x5335b0(0x253)],_0x5335b0(0x260),_0xcf8f1a['PmDof']]})[_0x5335b0(0x1bd)]();return _0x280cb4[_0x5335b0(0x1cc)](/\.git$/,'')[_0x5335b0(0x1cc)](/^git@github\.com:/,_0xcf8f1a['DlHMU'])[_0x5335b0(0x1cc)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x3cde8b=_0x4f9439,_0x578d31={'BgaVn':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','hblKc':_0x3cde8b(0x260)};try{return execSync(_0x578d31['BgaVn'],{'encoding':_0x3cde8b(0x228),'stdio':[_0x578d31[_0x3cde8b(0x22f)],_0x3cde8b(0x260),'pipe']})[_0x3cde8b(0x1bd)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x514d5e=_0x4f9439,_0x134375={'wcPUZ':function(_0x4fcdaa){return _0x4fcdaa();}},_0x581743=join(_0x134375[_0x514d5e(0x24b)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x581743))return null;try{const _0x43a004=await readFile(_0x581743,_0x514d5e(0x228));return _0x43a004[_0x514d5e(0x1bd)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x1e669e){const _0x279102=_0x4f9439,_0x4847ce={'wthpR':function(_0x9f9d47,_0x31fc58){return _0x9f9d47(_0x31fc58);}},_0x517c67=getRangerDir(),_0x52fb23=join(_0x517c67,ACTIVE_FEATURE_FILE);!_0x4847ce[_0x279102(0x22d)](existsSync,_0x517c67)&&await mkdir(_0x517c67,{'recursive':!![]}),await writeFile(_0x52fb23,_0x1e669e,_0x279102(0x228));}function getProgressDisplay(_0x5bd683){const _0x4dcb6e=_0x4f9439,_0x2c651a={'imDqT':function(_0x36e85e,_0x2dffd7){return _0x36e85e+_0x2dffd7;},'mcgUd':function(_0x1efe78,_0x140574){return _0x1efe78+_0x140574;},'quZfa':function(_0x26cd8a,_0x28ff7a){return _0x26cd8a/_0x28ff7a;}},_0x2425a7=_0x5bd683[_0x4dcb6e(0x241)]||0x0,_0xe9d7f9=_0x5bd683[_0x4dcb6e(0x210)]||0x0,_0x34a42f=_0x5bd683['blockedItems']||0x0,_0x5577f8=_0x5bd683['incompleteItems']||0x0,_0x55fbd1=_0x5bd683['pendingItems']||0x0,_0x3d6c5b=_0x2c651a['imDqT'](_0x2c651a[_0x4dcb6e(0x1db)](_0x2425a7,_0xe9d7f9)+_0x34a42f,_0x5577f8)+_0x55fbd1;if(_0x3d6c5b===0x0)return'-';const _0x84fb9a=0xa,_0x4bc2d5=Math['round'](_0x2c651a[_0x4dcb6e(0x240)](_0x2425a7,_0x3d6c5b)*_0x84fb9a),_0x20b866='█'[_0x4dcb6e(0x1e8)](_0x4bc2d5)+'░'[_0x4dcb6e(0x1e8)](_0x84fb9a-_0x4bc2d5),_0x40a260=[];if(_0x34a42f>0x0)_0x40a260['push'](_0x34a42f+_0x4dcb6e(0x1ce));if(_0x5577f8>0x0)_0x40a260[_0x4dcb6e(0x1e3)](_0x5577f8+_0x4dcb6e(0x224));if(_0xe9d7f9>0x0)_0x40a260['push'](_0xe9d7f9+'\x20in\x20progress');const _0x2d154c=_0x40a260[_0x4dcb6e(0x1c5)]>0x0?'\x20('+_0x40a260[_0x4dcb6e(0x1e5)](',\x20')+')':'';return _0x20b866+'\x20'+_0x2425a7+'/'+_0x3d6c5b+_0x4dcb6e(0x232)+_0x2d154c;}function getCurrentSessionItems(_0x536700,_0x34ffe7){const _0x3a35c2=_0x4f9439;if(!_0x536700['currentSessionId'])return _0x34ffe7[_0x3a35c2(0x21b)](_0x5c3282=>!_0x5c3282[_0x3a35c2(0x1b5)]);return _0x34ffe7[_0x3a35c2(0x21b)](_0x492e68=>_0x492e68[_0x3a35c2(0x1b5)]===_0x536700[_0x3a35c2(0x201)]||!_0x492e68['sessionId']);}function _0x4fb4(_0x3fc1c1,_0x5f14b6){_0x3fc1c1=_0x3fc1c1-0x1a4;const _0x39d4e7=_0x39d4();let _0x4fb43e=_0x39d4e7[_0x3fc1c1];return _0x4fb43e;}function displayFeature(_0x524e9a,_0x3cd828){const _0x5e4588=_0x4f9439,_0x26eac9={'fXhwh':function(_0x14e6d6,_0x512298){return _0x14e6d6>_0x512298;},'SexcB':function(_0x58c1c6,_0x1262d1){return _0x58c1c6===_0x1262d1;},'IEkak':'closed','iyhZq':function(_0x404842,_0x4e3f72){return _0x404842===_0x4e3f72;},'UczXT':_0x5e4588(0x1e4),'BozkK':function(_0x2bda61,_0x52a6e9){return _0x2bda61===_0x52a6e9;},'UcAAP':function(_0xd2ab4f,_0x3d5e6e){return _0xd2ab4f===_0x3d5e6e;},'BnLYr':_0x5e4588(0x1b7),'dcrpO':function(_0x36d176,_0x1e8cc3){return _0x36d176>_0x1e8cc3;},'geKiO':function(_0x5c0618,_0x13bdc0){return _0x5c0618>_0x13bdc0;},'HReoL':function(_0x2d9fc5,_0xddb177){return _0x2d9fc5+_0xddb177;},'rKTDC':function(_0x206c86,_0x253fe0){return _0x206c86===_0x253fe0;},'CVVSj':'blocked','MqJEq':function(_0x1b220f,_0x5b2c9e){return _0x1b220f===_0x5b2c9e;}};console[_0x5e4588(0x1cd)]('\x0a'+_0x524e9a[_0x5e4588(0x1d5)]+'\x20('+_0x524e9a[_0x5e4588(0x1b3)]+')');_0x524e9a['stats']&&console[_0x5e4588(0x1cd)](_0x5e4588(0x208)+getProgressDisplay(_0x524e9a[_0x5e4588(0x1bf)]));_0x524e9a[_0x5e4588(0x257)]&&console['log'](_0x5e4588(0x1ac)+_0x524e9a[_0x5e4588(0x257)]);_0x524e9a['gitRepoUrl']&&console[_0x5e4588(0x1cd)]('\x20\x20\x20Repository:\x20'+_0x524e9a['gitRepoUrl']);_0x524e9a[_0x5e4588(0x254)]&&console[_0x5e4588(0x1cd)](_0x5e4588(0x21c)+_0x524e9a['gitBranch']);console[_0x5e4588(0x1cd)](_0x5e4588(0x1fc)+new Date(_0x524e9a[_0x5e4588(0x246)])['toLocaleString']());_0x524e9a['completedAt']&&console[_0x5e4588(0x1cd)](_0x5e4588(0x1b4)+new Date(_0x524e9a['completedAt'])[_0x5e4588(0x1df)]());if(_0x3cd828&&_0x26eac9['fXhwh'](_0x3cd828[_0x5e4588(0x1c5)],0x0)){console[_0x5e4588(0x1cd)](_0x5e4588(0x265));for(let _0x3b6996=0x0;_0x3b6996<_0x3cd828['length'];_0x3b6996++){const _0x547985=_0x3cd828[_0x3b6996];let _0x2e7fc4;if(_0x26eac9['SexcB'](_0x547985[_0x5e4588(0x205)],_0x26eac9['IEkak'])&&_0x26eac9[_0x5e4588(0x268)](_0x547985[_0x5e4588(0x1fd)],_0x5e4588(0x22e)))_0x2e7fc4='✅';else{if(_0x26eac9['iyhZq'](_0x547985[_0x5e4588(0x205)],'verified'))_0x2e7fc4='🟢';else{if(_0x547985['status']===_0x26eac9['UczXT'])_0x2e7fc4='🟠';else{if(_0x26eac9['BozkK'](_0x547985[_0x5e4588(0x205)],'blocked'))_0x2e7fc4='🛑';else{if(_0x26eac9[_0x5e4588(0x206)](_0x547985[_0x5e4588(0x205)],_0x5e4588(0x21d)))_0x2e7fc4='⛔';else _0x547985[_0x5e4588(0x205)]===_0x26eac9[_0x5e4588(0x1dc)]?_0x2e7fc4='⏳':_0x2e7fc4='⬜';}}}}const _0x507276=_0x26eac9['dcrpO'](_0x547985[_0x5e4588(0x1e0)],0x1)?'\x20(v'+_0x547985[_0x5e4588(0x1e0)]+')':'',_0x525ecc=_0x26eac9[_0x5e4588(0x245)](_0x547985[_0x5e4588(0x1e0)],0x1)&&_0x547985[_0x5e4588(0x1ef)]&&_0x547985[_0x5e4588(0x205)]!==_0x26eac9[_0x5e4588(0x258)]&&_0x547985[_0x5e4588(0x205)]!==_0x5e4588(0x1c9)?_0x5e4588(0x1e1):'';console['log'](_0x5e4588(0x1fe)+_0x26eac9['HReoL'](_0x3b6996,0x1)+'.\x20'+_0x2e7fc4+'\x20'+_0x547985[_0x5e4588(0x257)]+_0x507276+_0x525ecc);_0x26eac9['rKTDC'](_0x547985[_0x5e4588(0x205)],_0x26eac9['CVVSj'])&&_0x547985['blockedReason']&&console[_0x5e4588(0x1cd)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x547985['blockedReason']);_0x26eac9[_0x5e4588(0x1a7)](_0x547985[_0x5e4588(0x205)],_0x5e4588(0x1e4))&&_0x547985[_0x5e4588(0x24e)]&&console['log'](_0x5e4588(0x1d2)+_0x547985['incompleteReason']);if(_0x547985['status']===_0x26eac9[_0x5e4588(0x258)]&&_0x26eac9[_0x5e4588(0x206)](_0x547985[_0x5e4588(0x1fd)],'approved'))console[_0x5e4588(0x1cd)]('\x20\x20\x20\x20\x20\x20Approved');else _0x547985['status']===_0x5e4588(0x21d)&&_0x547985[_0x5e4588(0x216)]&&console[_0x5e4588(0x1cd)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x547985['canceledReason']);}}}export async function featureCreate(_0x3e95e9,_0x2c16dd){const _0x3adddb=_0x4f9439,_0x14e89c={'XoDlA':function(_0x12b624,_0x563172){return _0x12b624===_0x563172;},'jIXzl':function(_0x46edb7,_0x549cc9){return _0x46edb7(_0x549cc9);},'UiNdL':function(_0x36ab16){return _0x36ab16();},'yTJLz':function(_0x4a017e,_0x435a80){return _0x4a017e(_0x435a80);},'LzxNm':function(_0x521c37,_0x3f8240,_0x547c4d){return _0x521c37(_0x3f8240,_0x547c4d);}},{envNames:_0x2a4c24}=await getEnvNames();_0x14e89c['XoDlA'](_0x2a4c24['length'],0x0)&&console[_0x3adddb(0x225)]('\x0a'+_0x14e89c['jIXzl'](formatProfileRequiredMessage,_0x4e48fe=>bold(_0x4e48fe)));const _0x3aa22a=_0x2c16dd['scenarios']?_0x2c16dd['scenarios'][_0x3adddb(0x263)](_0x240949=>_0x240949['trim']()):[],_0x1f7c4d=_0x14e89c[_0x3adddb(0x1e7)](getGitRepoUrl),_0x554d7c=_0x14e89c[_0x3adddb(0x1e7)](getGitBranch);console['log'](_0x3adddb(0x1f8));const _0x18cbf5=await _0x14e89c['jIXzl'](createFeature,{'name':_0x3e95e9,'description':_0x2c16dd[_0x3adddb(0x257)],'checklist':_0x3aa22a,'gitRepoUrl':_0x1f7c4d,'gitBranch':_0x554d7c});await setActiveFeatureId(_0x18cbf5['id']),await _0x14e89c[_0x3adddb(0x1f5)](tryStartCurrentSession,_0x18cbf5['id']);const _0x5f3dc6=process[_0x3adddb(0x1b6)]['CLAUDE_SESSION_ID'];_0x5f3dc6&&registerSession(_0x5f3dc6,_0x18cbf5['id']),console[_0x3adddb(0x1cd)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x18cbf5['id']),_0x14e89c['LzxNm'](displayFeature,_0x18cbf5,_0x18cbf5['checklistItems']),console[_0x3adddb(0x1cd)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x51184a){const _0x58792a=_0x4f9439,_0x31e680={'UyTha':_0x58792a(0x20a),'gFmuG':function(_0x1d1b4c,_0xbbca56){return _0x1d1b4c>_0xbbca56;},'ASgeE':_0x58792a(0x20f),'IYMga':_0x58792a(0x23e)},_0xbfeca9={'limit':_0x51184a['limit']??0xa,'offset':_0x51184a['offset']??0x0,'includeDeleted':_0x51184a[_0x58792a(0x23a)]};_0x51184a[_0x58792a(0x1d0)]&&(_0xbfeca9['gitRepoUrl']=getGitRepoUrl(),_0xbfeca9['gitBranch']=getGitBranch());const _0x2841cd=await listFeatures(_0xbfeca9);if(_0x2841cd['items'][_0x58792a(0x1c5)]===0x0){console['log'](_0x31e680[_0x58792a(0x229)]);return;}const _0x259d55=_0x31e680[_0x58792a(0x239)](_0x2841cd['totalCount'],_0x2841cd[_0x58792a(0x1ae)]['length'])?'Showing\x20'+_0x2841cd[_0x58792a(0x1ae)][_0x58792a(0x1c5)]+'\x20of\x20'+_0x2841cd['totalCount']:_0x2841cd['totalCount']+_0x58792a(0x1ec);console[_0x58792a(0x1cd)]('\x0a'+_0x259d55+':\x0a');for(const _0x1f6906 of _0x2841cd['items']){const _0x47db9d=_0x31e680['ASgeE']['split']('|');let _0x312dc8=0x0;while(!![]){switch(_0x47db9d[_0x312dc8++]){case'0':console[_0x58792a(0x1cd)](_0x58792a(0x1fc)+new Date(_0x1f6906[_0x58792a(0x246)])['toLocaleDateString']());continue;case'1':_0x1f6906[_0x58792a(0x254)]&&console['log'](_0x58792a(0x21c)+_0x1f6906['gitBranch']);continue;case'2':console['log'](''+_0x1f6906[_0x58792a(0x1d5)]);continue;case'3':console['log']('\x20\x20\x20ID:\x20'+_0x1f6906['id']);continue;case'4':_0x1f6906[_0x58792a(0x1bf)]&&console[_0x58792a(0x1cd)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1f6906[_0x58792a(0x1bf)]));continue;case'5':console['log']('');continue;}break;}}const _0x4f1f6f=_0xbfeca9[_0x58792a(0x1b9)]??0xa,_0xa25fd5=(_0xbfeca9['offset']??0x0)+_0x2841cd['items']['length'];if(_0xa25fd5<_0x2841cd[_0x58792a(0x25a)]){const _0x3964e3=_0x4f1f6f!==0xa?_0x58792a(0x1da)+_0x4f1f6f:'',_0x5af591=_0x51184a['currentBranch']?'\x20--current-branch':'',_0x3d4ec0=_0x51184a['includeDeleted']?_0x31e680['IYMga']:'';console[_0x58792a(0x1cd)](_0x58792a(0x219)+_0xa25fd5+_0x3964e3+_0x5af591+_0x3d4ec0);}}export async function featureShow(_0xdb16b1){const _0x412073=_0x4f9439,_0x38a6c0={'dTWOd':function(_0x340531){return _0x340531();},'lfpxj':_0x412073(0x259)},_0x3d182e=_0xdb16b1||await _0x38a6c0[_0x412073(0x1e9)](getActiveFeatureId);if(!_0x3d182e)throw new Error(_0x38a6c0[_0x412073(0x235)]);const _0x1f1df6=await getFeature(_0x3d182e);displayFeature(_0x1f1df6,_0x1f1df6[_0x412073(0x1a9)]);}export async function featureResume(_0x2ad3bd){const _0x5ec08f=_0x4f9439,_0xd0bbe5={'OdaIg':function(_0x22d677,_0x349e8f){return _0x22d677!==_0x349e8f;},'IYoBQ':function(_0x3b29ec){return _0x3b29ec();},'KhXRT':function(_0x86bb45,_0x35680e){return _0x86bb45||_0x35680e;},'bbqAx':'any','SFDvp':function(_0x52b193,_0x23b577){return _0x52b193===_0x23b577;},'gMILl':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','nRvuz':_0x5ec08f(0x269),'jsINE':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','tHBTN':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','OAxcV':'list','RRsIM':'selected','JFNdD':function(_0x20ddd7,_0x50ea6b){return _0x20ddd7(_0x50ea6b);},'tZJhV':function(_0x112757,_0x4e20f9,_0x2e7e55){return _0x112757(_0x4e20f9,_0x2e7e55);},'fNCea':function(_0x2651e5,_0x4e8668,_0x3c34c7){return _0x2651e5(_0x4e8668,_0x3c34c7);}};if(_0x2ad3bd){const _0x11a339=await getFeature(_0x2ad3bd);await setActiveFeatureId(_0x11a339['id']);const _0x3bffa7=getGitBranch();_0x3bffa7&&_0xd0bbe5[_0x5ec08f(0x251)](_0x3bffa7,_0x11a339['gitBranch'])&&(await updateFeature(_0x11a339['id'],{'gitBranch':_0x3bffa7}),console[_0x5ec08f(0x1cd)](_0x5ec08f(0x1f0)+_0x3bffa7));console[_0x5ec08f(0x1cd)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x11a339[_0x5ec08f(0x1d5)]+'\x20('+_0x11a339['id']+')'),await tryStartCurrentSession(_0x11a339['id']);const _0x39e13d=process['env'][_0x5ec08f(0x236)];_0x39e13d&&registerSession(_0x39e13d,_0x11a339['id']);displayFeature(_0x11a339,_0x11a339['checklistItems']),await printFeedbackNudge(_0x11a339['id']);return;}const _0x160143=_0xd0bbe5['IYoBQ'](getGitRepoUrl),_0x398859=getGitBranch();if(!_0x160143&&!_0x398859)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x5ec08f(0x1cd)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0xd0bbe5[_0x5ec08f(0x1ea)](_0x160143,_0x5ec08f(0x1eb))+'\x20/\x20'+_0xd0bbe5[_0x5ec08f(0x1ea)](_0x398859,_0xd0bbe5[_0x5ec08f(0x1b1)])+_0x5ec08f(0x266));const _0x311c71=await listFeatures({'gitRepoUrl':_0x160143,'gitBranch':_0x398859}),_0x36fab0=_0x311c71[_0x5ec08f(0x1ae)]['filter'](_0x450eba=>!_0x450eba[_0x5ec08f(0x220)]);if(_0xd0bbe5[_0x5ec08f(0x1b8)](_0x36fab0['length'],0x0)){console['log'](_0xd0bbe5['gMILl']),console['log'](_0xd0bbe5['nRvuz']);return;}let _0x381ac6;if(_0x36fab0['length']===0x1)_0x381ac6=_0x36fab0[0x0];else{const _0x3a2193=process[_0x5ec08f(0x1af)][_0x5ec08f(0x23f)]&&process['stdout']['isTTY'];if(!_0x3a2193){console['log'](_0xd0bbe5['jsINE']);for(const _0xa5e99d of _0x36fab0){console[_0x5ec08f(0x1cd)]('\x20\x20'+_0xa5e99d['name']),console['log'](_0x5ec08f(0x1e2)+_0xa5e99d['id']),_0xa5e99d['stats']&&console['log'](_0x5ec08f(0x1f1)+getProgressDisplay(_0xa5e99d[_0x5ec08f(0x1bf)])),_0xa5e99d['gitBranch']&&console[_0x5ec08f(0x1cd)](_0x5ec08f(0x1ab)+_0xa5e99d['gitBranch']);}throw new Error(_0xd0bbe5[_0x5ec08f(0x1d3)]);}const {selected:_0x14fcbf}=await _0x4db099['prompt']([{'type':_0xd0bbe5['OAxcV'],'name':_0xd0bbe5['RRsIM'],'message':_0x5ec08f(0x1bb),'choices':_0x36fab0['map'](_0x10d7e9=>({'name':_0x10d7e9[_0x5ec08f(0x1d5)]+'\x20('+_0x10d7e9['id']+')','value':_0x10d7e9['id']}))}]);_0x381ac6=_0x36fab0['find'](_0x4e3d89=>_0x4e3d89['id']===_0x14fcbf);}await _0xd0bbe5['JFNdD'](setActiveFeatureId,_0x381ac6['id']);_0x398859&&_0xd0bbe5['OdaIg'](_0x398859,_0x381ac6['gitBranch'])&&(await _0xd0bbe5['tZJhV'](updateFeature,_0x381ac6['id'],{'gitBranch':_0x398859}),console[_0x5ec08f(0x1cd)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x398859));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x381ac6[_0x5ec08f(0x1d5)]+'\x20('+_0x381ac6['id']+')'),await _0xd0bbe5[_0x5ec08f(0x24c)](tryStartCurrentSession,_0x381ac6['id']);const _0x5ea0e9=await getFeature(_0x381ac6['id']),_0x348252=process[_0x5ec08f(0x1b6)]['CLAUDE_SESSION_ID'];_0x348252&&registerSession(_0x348252,_0x5ea0e9['id']),_0xd0bbe5['fNCea'](displayFeature,_0x5ea0e9,_0x5ea0e9['checklistItems']),await _0xd0bbe5['JFNdD'](printFeedbackNudge,_0x5ea0e9['id']);}async function printFeedbackNudge(_0x4cc236){const _0x4faa27=_0x4f9439,_0x56f754={'GBxXf':function(_0x53c357,_0x50ea6e,_0x5e2f49){return _0x53c357(_0x50ea6e,_0x5e2f49);},'vLZqt':_0x4faa27(0x1b0)};try{const {items:_0x306022}=await getActionItems(_0x4cc236);let _0x23b426=0x0,_0x1e5e09=0x0;for(const _0x3cac4e of _0x306022){const _0x731e58=await _0x56f754['GBxXf'](getItemFeedback,_0x4cc236,_0x3cac4e['id']);_0x731e58['unaddressedComments'][_0x4faa27(0x1c5)]>0x0&&(_0x23b426+=_0x731e58[_0x4faa27(0x203)]['length'],_0x1e5e09++);}_0x23b426>0x0&&(console[_0x4faa27(0x1cd)](_0x4faa27(0x249)+_0x23b426+_0x4faa27(0x1ee)+_0x1e5e09+_0x4faa27(0x237)),console[_0x4faa27(0x1cd)](_0x56f754[_0x4faa27(0x247)]));}catch{}}async function tryStartCurrentSession(_0x4dab73){const _0x2fef5d=_0x4f9439,_0x156cae={'PkHzs':function(_0x2a4090,_0x57debd,_0x13f0cf){return _0x2a4090(_0x57debd,_0x13f0cf);}};try{const {sessions:_0x25d5f3}=await listFeatureSessions(_0x4dab73),_0x69d6ed=_0x25d5f3[_0x2fef5d(0x1f6)](_0x352bc8=>_0x352bc8['status']==='ready');_0x69d6ed&&(await _0x156cae[_0x2fef5d(0x1cb)](startSession,_0x4dab73,_0x69d6ed['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x69d6ed[_0x2fef5d(0x207)]));}catch{}}export async function featureReport(_0x21cf8e,_0x275c5f){const _0x5d506c=_0x4f9439,_0x2ae008={'GGhrM':'reports','yJXHK':function(_0x4ebb80,_0x296187,_0x51d211){return _0x4ebb80(_0x296187,_0x51d211);},'hcneu':function(_0x516df1,_0x573edc,_0x32fbba,_0x46be71){return _0x516df1(_0x573edc,_0x32fbba,_0x46be71);}},_0x36527d=_0x21cf8e||await getActiveFeatureId();if(!_0x36527d)throw new Error(_0x5d506c(0x1c6));console['log'](_0x5d506c(0x1d8));const _0x33d740=await getFeatureReportMarkdown(_0x36527d,{'style':_0x275c5f[_0x5d506c(0x1d9)]}),_0x9343d1=_0x275c5f['output']||join(getRangerDir(),_0x2ae008['GGhrM'],_0x36527d+_0x5d506c(0x230)),_0x4c501c=join(_0x9343d1,'..');!existsSync(_0x4c501c)&&await _0x2ae008[_0x5d506c(0x264)](mkdir,_0x4c501c,{'recursive':!![]}),await _0x2ae008['hcneu'](writeFile,_0x9343d1,_0x33d740,_0x5d506c(0x228)),console['log'](_0x5d506c(0x256)+_0x9343d1);}export async function featureReportPrDescription(_0xad95a3,_0x4eeeeb){const _0xba943c=_0x4f9439,_0xf2d357={'CpSiY':function(_0x131838,_0x547b6a,_0x3b8aca){return _0x131838(_0x547b6a,_0x3b8aca);},'RftvU':function(_0x975e41,_0x473c46){return _0x975e41+_0x473c46;},'cXXvm':_0xba943c(0x1ba)},_0x56a363=_0xad95a3||await getActiveFeatureId();if(!_0x56a363)throw new Error(_0xba943c(0x1c6));const _0xf47bf4=await getFeature(_0x56a363),_0x3094a8=_0xf47bf4[_0xba943c(0x1a9)]||[],_0x488f90=_0xf2d357['CpSiY'](getCurrentSessionItems,_0xf47bf4,_0x3094a8);_0x488f90['length']===0x0&&(console['error'](_0xba943c(0x261)),process[_0xba943c(0x25c)](0x1));const _0x3d52f3=_0x4eeeeb['excludeScenarios']??[],_0x5ea63d=_0x3d52f3['filter'](_0x422b69=>!Number['isInteger'](_0x422b69)||_0x422b69<0x1||_0x422b69>_0x488f90[_0xba943c(0x1c5)]);if(_0x5ea63d[_0xba943c(0x1c5)]>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x5ea63d[_0xba943c(0x1e5)](',\x20')),console[_0xba943c(0x1cd)]('\x0aAvailable\x20scenarios:');for(let _0x537c7c=0x0;_0x537c7c<_0x488f90['length'];_0x537c7c++){console['log']('\x20\x20'+_0xf2d357[_0xba943c(0x1ed)](_0x537c7c,0x1)+'.\x20'+_0x488f90[_0x537c7c][_0xba943c(0x257)]);}process['exit'](0x1);}const _0x4a81c5=new Set(_0x3d52f3[_0xba943c(0x263)](_0x1685de=>_0x1685de-0x1)),_0x45e60a=_0x488f90['filter']((_0x434384,_0x76b049)=>!_0x4a81c5['has'](_0x76b049));_0x45e60a[_0xba943c(0x1c5)]===0x0&&(console[_0xba943c(0x22a)](_0xf2d357[_0xba943c(0x209)]),process[_0xba943c(0x25c)](0x1));const _0x4fce39=await getFeatureReportMarkdown(_0x56a363,{'itemIds':_0x45e60a[_0xba943c(0x263)](_0x4a5f7e=>_0x4a5f7e['id'])});process[_0xba943c(0x1d1)]['write'](_0x4fce39['trimEnd']()+'\x0a');}export async function featureConcludeSession(_0x329188){const _0x998a8=_0x4f9439,_0x32ec6e={'MEYDr':function(_0x358678){return _0x358678();},'dkxHJ':_0x998a8(0x22c),'hGujA':function(_0x1a9505,_0x386d81){return _0x1a9505(_0x386d81);},'uyUwX':function(_0x4b71c7,_0x756b79){return _0x4b71c7===_0x756b79;},'SDwPS':'\x0a✅\x20Session\x20is\x20already\x20completed.','ucjQD':function(_0x5a2209,_0x4f3d6b){return _0x5a2209!==_0x4f3d6b;},'cLEeg':function(_0x340d18,_0x3c2e88,_0xcdb08f){return _0x340d18(_0x3c2e88,_0xcdb08f);}},_0x3fd04e=_0x329188||await _0x32ec6e['MEYDr'](getActiveFeatureId);if(!_0x3fd04e)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 _0xab5655=await getFeature(_0x3fd04e);if(!_0xab5655[_0x998a8(0x201)])throw new Error(_0x32ec6e[_0x998a8(0x1b2)]);const {sessions:_0x124627}=await _0x32ec6e['hGujA'](listFeatureSessions,_0x3fd04e),_0x21afe1=_0x124627['find'](_0xa2a497=>_0xa2a497['id']===_0xab5655[_0x998a8(0x201)]);if(!_0x21afe1)throw new Error(_0x998a8(0x20b));if(_0x32ec6e['uyUwX'](_0x21afe1[_0x998a8(0x205)],_0x998a8(0x231))){console[_0x998a8(0x1cd)](_0x32ec6e['SDwPS']);return;}if(_0x32ec6e[_0x998a8(0x204)](_0x21afe1['status'],'in_progress'))throw new Error(_0x998a8(0x1aa)+_0x21afe1[_0x998a8(0x205)]);console['log']('\x0aConcluding\x20session...'),await _0x32ec6e[_0x998a8(0x215)](concludeSession,_0x3fd04e,_0xab5655[_0x998a8(0x201)]),console['log'](_0x998a8(0x211)+_0x21afe1['iteration']+_0x998a8(0x21a)),console['log'](_0x998a8(0x23c));}export async function featureSessions(_0x582058){const _0x3827f4=_0x4f9439,_0x527d3b={'vamgU':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','ngPDy':function(_0x5486b1,_0x4ca7b8){return _0x5486b1(_0x4ca7b8);},'oQKtF':function(_0x2d1a61,_0x1b2ace){return _0x2d1a61===_0x1b2ace;},'yKtwU':function(_0x37a3e3,_0x5978d1){return _0x37a3e3===_0x5978d1;},'tnwIg':function(_0x49fa8a,_0x4b2c77){return _0x49fa8a===_0x4b2c77;}},_0x50f456=_0x582058||await getActiveFeatureId();if(!_0x50f456)throw new Error(_0x527d3b[_0x3827f4(0x1c8)]);const _0x26b2e4=await _0x527d3b['ngPDy'](getFeature,_0x50f456);console['log'](_0x3827f4(0x248)+_0x26b2e4['name']+'\x0a');const {sessions:_0xde1efc}=await listFeatureSessions(_0x50f456);if(_0x527d3b['oQKtF'](_0xde1efc[_0x3827f4(0x1c5)],0x0)){console[_0x3827f4(0x1cd)](_0x3827f4(0x25e));return;}for(const _0x46367c of _0xde1efc){const _0x3c2b52=_0x527d3b['yKtwU'](_0x46367c[_0x3827f4(0x205)],_0x3827f4(0x231))?'✅':_0x527d3b['tnwIg'](_0x46367c[_0x3827f4(0x205)],'in_progress')?'🔄':'▶️';console[_0x3827f4(0x1cd)](_0x3c2b52+'\x20Session\x20'+_0x46367c[_0x3827f4(0x207)]+'\x20('+_0x46367c['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x46367c['status']),console[_0x3827f4(0x1cd)]('\x20\x20\x20Created:\x20'+new Date(_0x46367c[_0x3827f4(0x246)])['toLocaleString']()),_0x46367c['completedAt']&&console['log'](_0x3827f4(0x1b4)+new Date(_0x46367c[_0x3827f4(0x220)])[_0x3827f4(0x1df)]()),console['log']('');}}export async function featureAddScenario(_0x282b5e,_0x487ad7){const _0x27fde2=_0x4f9439,_0x1283cb={'rzGpr':_0x27fde2(0x259)},_0x51ecac=_0x487ad7||await getActiveFeatureId();if(!_0x51ecac)throw new Error(_0x1283cb['rzGpr']);const _0x22320e=await getFeature(_0x51ecac);if(_0x22320e[_0x27fde2(0x23b)]&&!_0x22320e['latestReview'][_0x27fde2(0x214)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x22320e[_0x27fde2(0x1b3)]);await createChecklistItem(_0x51ecac,_0x282b5e);const _0x3e302f=await getFeature(_0x51ecac);console['log'](_0x27fde2(0x1a6)),displayFeature(_0x3e302f,_0x3e302f[_0x27fde2(0x1a9)]);}export async function featureEditScenario(_0x492b64,_0x1de5ee){const _0x19cea9=_0x4f9439,_0x207a2e={'evQUV':_0x19cea9(0x1c1),'lWtKb':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','qdMNd':function(_0x510651,_0x5d4697){return _0x510651===_0x5d4697;},'NhfxR':_0x19cea9(0x212),'SkRaG':'\x0aAvailable\x20scenarios:','ZGcty':function(_0x1dad3b,_0x3f14be){return _0x1dad3b+_0x3f14be;},'DIxsX':function(_0x220433,_0x18ffcb){return _0x220433-_0x18ffcb;},'QCWBQ':function(_0x5096b6,_0x5e6103){return _0x5096b6<_0x5e6103;},'DLjOO':function(_0x54a80e,_0x4f52f3){return _0x54a80e<_0x4f52f3;},'crloK':function(_0x113f77,_0x41dbd3,_0x5ee074,_0x552f71){return _0x113f77(_0x41dbd3,_0x5ee074,_0x552f71);},'VvjCr':function(_0x2c0a0f,_0x20f0e5){return _0x2c0a0f(_0x20f0e5);},'QLDec':function(_0x2209ff,_0x4880a4,_0x304d6b){return _0x2209ff(_0x4880a4,_0x304d6b);}},_0x5bce7e=_0x1de5ee['id']||await getActiveFeatureId();!_0x5bce7e&&(console[_0x19cea9(0x22a)]('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x19cea9(0x22a)](_0x19cea9(0x1c0)),process['exit'](0x1));const _0x422244=await getFeature(_0x5bce7e);_0x422244[_0x19cea9(0x23b)]&&!_0x422244[_0x19cea9(0x23b)]['submittedAt']&&(console[_0x19cea9(0x22a)](_0x19cea9(0x227)),console['error'](_0x207a2e['evQUV']),console[_0x19cea9(0x22a)]('\x20\x20'+_0x422244[_0x19cea9(0x1b3)]),process[_0x19cea9(0x25c)](0x1));const _0x2edde8=_0x422244['checklistItems']||[];_0x2edde8['length']===0x0&&(console[_0x19cea9(0x22a)](_0x207a2e['lWtKb']),process['exit'](0x1));if(_0x207a2e[_0x19cea9(0x1dd)](_0x1de5ee[_0x19cea9(0x242)],undefined)){console[_0x19cea9(0x22a)](_0x207a2e['NhfxR']),console['log'](_0x207a2e[_0x19cea9(0x223)]);for(let _0x3233d4=0x0;_0x3233d4<_0x2edde8[_0x19cea9(0x1c5)];_0x3233d4++){console['log']('\x20\x20'+_0x207a2e['ZGcty'](_0x3233d4,0x1)+'.\x20'+_0x2edde8[_0x3233d4][_0x19cea9(0x257)]);}process['exit'](0x1);}const _0x2e93ab=_0x207a2e[_0x19cea9(0x1c4)](_0x1de5ee['scenario'],0x1);if(_0x207a2e[_0x19cea9(0x1e6)](_0x2e93ab,0x0)||_0x2e93ab>=_0x2edde8[_0x19cea9(0x1c5)]){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x1de5ee[_0x19cea9(0x242)]+'.\x20Feature\x20review\x20has\x20'+_0x2edde8[_0x19cea9(0x1c5)]+_0x19cea9(0x1cf)),console['log'](_0x19cea9(0x1f4));for(let _0x5d3eff=0x0;_0x207a2e[_0x19cea9(0x1f2)](_0x5d3eff,_0x2edde8['length']);_0x5d3eff++){console['log']('\x20\x20'+(_0x5d3eff+0x1)+'.\x20'+_0x2edde8[_0x5d3eff][_0x19cea9(0x257)]);}process[_0x19cea9(0x25c)](0x1);}const _0x271442=_0x2edde8[_0x2e93ab];await _0x207a2e[_0x19cea9(0x221)](updateChecklistItem,_0x5bce7e,_0x271442['id'],{'description':_0x492b64});const _0x2001af=await _0x207a2e['VvjCr'](getFeature,_0x5bce7e);console['log']('\x0a✅\x20Scenario\x20updated'),_0x207a2e['QLDec'](displayFeature,_0x2001af,_0x2001af[_0x19cea9(0x1a9)]);}async function downloadFeedbackImage(_0x5d9d95,_0x449181){const _0x1f0ff1=_0x4f9439,_0x16175f={'pLylh':function(_0x3dd1ee,_0x17ba81,_0x1a60d3){return _0x3dd1ee(_0x17ba81,_0x1a60d3);},'tzNpz':function(_0x26b1e1){return _0x26b1e1();},'ONddS':'feedback-images','jNmWI':function(_0x2e0131,_0x4048dc){return _0x2e0131(_0x4048dc);}};try{const _0xb14865=_0x16175f['pLylh'](join,_0x16175f[_0x1f0ff1(0x217)](getRangerDir),_0x16175f[_0x1f0ff1(0x202)]);await mkdir(_0xb14865,{'recursive':!![]});const _0x479414=join(_0xb14865,'comment_'+_0x449181+'.png'),_0x4c27d1=await _0x16175f[_0x1f0ff1(0x1f9)](fetch,_0x5d9d95);if(!_0x4c27d1['ok'])return null;const _0x36599a=Buffer['from'](await _0x4c27d1[_0x1f0ff1(0x24a)]());return await writeFile(_0x479414,_0x36599a),_0x479414;}catch{return null;}}export async function featureGetReview(_0x2949a5){const _0x559240=_0x4f9439,_0x37db35={'AFzBv':function(_0x1bf49c){return _0x1bf49c();},'mqElM':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','fzJqM':function(_0x5ba69b,_0x18dac9){return _0x5ba69b(_0x18dac9);},'lkIKu':function(_0x2c8a01,_0x47f479){return _0x2c8a01===_0x47f479;},'XQQUB':'No\x20scenarios\x20found.','VuNQU':function(_0x4b55aa,_0x538345){return _0x4b55aa<_0x538345;},'JoaKE':function(_0x201bf3,_0x1c6222){return _0x201bf3>_0x1c6222;},'pVsKN':function(_0x50d561,_0x5ae124,_0xff94ee){return _0x50d561(_0x5ae124,_0xff94ee);},'OIRyE':function(_0x46a9fd,_0x3b807f){return _0x46a9fd>_0x3b807f;},'IzIHu':function(_0x3eb6c4,_0x578732){return _0x3eb6c4+_0x578732;},'qjBsw':'short','xPwiP':'element','cpzjz':function(_0x16a60d,_0x366cd0){return _0x16a60d===_0x366cd0;},'RBlZv':_0x559240(0x24f),'tARgX':function(_0x3a8733,_0x2bb245){return _0x3a8733>=_0x2bb245;},'qcSTQ':function(_0x291e55,_0x342e1a){return _0x291e55+_0x342e1a;}},_0x419f28=_0x2949a5||await _0x37db35[_0x559240(0x1d4)](getActiveFeatureId);if(!_0x419f28)throw new Error(_0x37db35[_0x559240(0x243)]);const _0x4677e2=await _0x37db35['fzJqM'](getFeature,_0x419f28),{items:_0x1c485a}=await getActionItems(_0x419f28);console['log'](_0x559240(0x20e)+_0x4677e2[_0x559240(0x1d5)]+'\x20('+_0x4677e2['id']+')\x0a');if(_0x37db35['lkIKu'](_0x1c485a[_0x559240(0x1c5)],0x0)){console['log'](_0x37db35[_0x559240(0x218)]);return;}for(let _0x38ae52=0x0;_0x37db35['VuNQU'](_0x38ae52,_0x1c485a[_0x559240(0x1c5)]);_0x38ae52++){const _0x23d4c0=_0x1c485a[_0x38ae52],_0x2bf7ed=_0x37db35[_0x559240(0x23d)](_0x23d4c0['version'],0x1)?'\x20(v'+_0x23d4c0['version']+')':'',_0x8858f8=await _0x37db35['pVsKN'](getItemFeedback,_0x419f28,_0x23d4c0['id']);if(_0x37db35[_0x559240(0x222)](_0x8858f8[_0x559240(0x203)]['length'],0x0)){console['log']('Scenario\x20'+_0x37db35['IzIHu'](_0x38ae52,0x1)+_0x559240(0x1a8)+_0x23d4c0[_0x559240(0x257)]+'\x22'+_0x2bf7ed+'\x20—\x20'+_0x8858f8[_0x559240(0x203)][_0x559240(0x1c5)]+'\x20unaddressed\x20comment(s)');for(const _0x58f6f5 of _0x8858f8['unaddressedComments']){const _0x4576c2=new Date(_0x58f6f5[_0x559240(0x246)])['toLocaleDateString']('en-US',{'month':_0x37db35[_0x559240(0x1d6)],'day':_0x559240(0x1bc)}),_0x2f6bd5=_0x58f6f5[_0x559240(0x1be)]||_0x58f6f5['authorEmail']||'Unknown';console[_0x559240(0x1cd)]('\x20\x20💬\x20'+_0x2f6bd5+'\x20('+_0x4576c2+'):\x20\x22'+_0x58f6f5[_0x559240(0x1ff)]+'\x22');if(_0x58f6f5['assetUrl']){const _0x39a114=await downloadFeedbackImage(_0x58f6f5['assetUrl'],_0x58f6f5['id']);_0x39a114&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x39a114);}if(_0x58f6f5[_0x559240(0x226)]){const _0x558c80=_0x58f6f5[_0x559240(0x226)]['selector']['split']('\x20>\x20')[_0x559240(0x1c2)]()?.[_0x559240(0x262)](':')[0x0]||_0x37db35[_0x559240(0x1de)],_0x3ca816=_0x58f6f5['domRef'][_0x559240(0x1f7)]?'\x20\x22'+_0x58f6f5['domRef'][_0x559240(0x1f7)]['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x559240(0x1fb)+_0x558c80+'>'+_0x3ca816),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x58f6f5[_0x559240(0x226)][_0x559240(0x234)]);}else{if(_0x58f6f5['spatial']){const _0x2f1dd5=_0x58f6f5[_0x559240(0x25d)]['coordinates'];_0x37db35['cpzjz'](_0x58f6f5['spatial'][_0x559240(0x25f)],_0x37db35[_0x559240(0x238)])&&_0x37db35[_0x559240(0x233)](_0x2f1dd5[_0x559240(0x1c5)],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x2f1dd5[0x0][_0x559240(0x1ad)](0x2)+',\x20'+_0x2f1dd5[0x1][_0x559240(0x1ad)](0x2)+')'):console[_0x559240(0x1cd)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x58f6f5[_0x559240(0x25d)]['type']+'\x20at\x20['+_0x2f1dd5['map'](_0x1f12b7=>_0x1f12b7['toFixed'](0x2))[_0x559240(0x1e5)](',\x20')+']');}}}if(_0x8858f8[_0x559240(0x252)]){console['log'](_0x559240(0x1c3));for(const _0x2b64b6 of _0x8858f8['canonicalFlow'][_0x559240(0x262)]('\x0a')){console['log'](_0x559240(0x24d)+_0x2b64b6);}}}else console['log'](_0x559240(0x1a5)+_0x37db35['qcSTQ'](_0x38ae52,0x1)+':\x20\x22'+_0x23d4c0[_0x559240(0x257)]+'\x22'+_0x2bf7ed+'\x20—\x20no\x20comments'),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x559240(0x1cd)]('');}}export async function featureDelete(_0xfbb3c6){const _0x305c3a=_0x4f9439,_0x2b2b4e={'TWknS':_0x305c3a(0x259),'OZMmv':function(_0x20e1a3,_0x517989){return _0x20e1a3(_0x517989);},'iIEed':_0x305c3a(0x25b)},_0x2bc8a1=_0xfbb3c6||await getActiveFeatureId();if(!_0x2bc8a1)throw new Error(_0x2b2b4e[_0x305c3a(0x200)]);const _0x32f053=await _0x2b2b4e['OZMmv'](getFeature,_0x2bc8a1);await _0x2b2b4e['OZMmv'](softDeleteFeature,_0x2bc8a1),console['log'](_0x305c3a(0x22b)+_0x32f053[_0x305c3a(0x1d5)]+'\x20('+_0x2bc8a1+')'),console['log'](_0x2b2b4e['iIEed']+_0x2bc8a1);}export async function featureRestore(_0x277ddd){const _0x40e82d=_0x4f9439,_0x420363={'ViNNM':function(_0x5280c6,_0x4bc44d){return _0x5280c6(_0x4bc44d);}};await _0x420363['ViNNM'](restoreFeature,_0x277ddd);const _0x3a7887=await _0x420363['ViNNM'](getFeature,_0x277ddd);console[_0x40e82d(0x1cd)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x3a7887[_0x40e82d(0x1d5)]+'\x20('+_0x277ddd+')'),displayFeature(_0x3a7887,_0x3a7887['checklistItems']);}
1
+ const _0x23f300=_0x1ce6;(function(_0x26eacd,_0x3fc27c){const _0x43f1e7=_0x1ce6,_0xe087e7=_0x26eacd();while(!![]){try{const _0x5d69e1=parseInt(_0x43f1e7(0xb4))/0x1*(parseInt(_0x43f1e7(0x11a))/0x2)+-parseInt(_0x43f1e7(0x119))/0x3+parseInt(_0x43f1e7(0x124))/0x4+parseInt(_0x43f1e7(0x100))/0x5+-parseInt(_0x43f1e7(0xfe))/0x6+-parseInt(_0x43f1e7(0xc5))/0x7*(parseInt(_0x43f1e7(0xfb))/0x8)+-parseInt(_0x43f1e7(0xbf))/0x9;if(_0x5d69e1===_0x3fc27c)break;else _0xe087e7['push'](_0xe087e7['shift']());}catch(_0x99585d){_0xe087e7['push'](_0xe087e7['shift']());}}}(_0x56e0,0xc6b67));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x570df0 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0xcccf41=>_0x23f300(0x136)+_0xcccf41+_0x23f300(0xa7);function getGitRepoUrl(){const _0x4df224=_0x23f300,_0x2e4717={'tSBnE':'pipe'};try{const _0x863c7d=execSync(_0x4df224(0x13e),{'encoding':'utf-8','stdio':[_0x2e4717[_0x4df224(0xb7)],_0x4df224(0xc2),_0x2e4717[_0x4df224(0xb7)]]})[_0x4df224(0xde)]();return _0x863c7d[_0x4df224(0x108)](/\.git$/,'')[_0x4df224(0x108)](/^git@github\.com:/,_0x4df224(0x134))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x59b561=_0x23f300,_0x8e0fd5={'IayQI':function(_0x3a26f3,_0x3dd797,_0x49a8eb){return _0x3a26f3(_0x3dd797,_0x49a8eb);},'OELMJ':_0x59b561(0xd9),'mkpVM':'pipe'};try{return _0x8e0fd5[_0x59b561(0xbb)](execSync,_0x59b561(0xac),{'encoding':_0x8e0fd5['OELMJ'],'stdio':[_0x8e0fd5['mkpVM'],'pipe',_0x8e0fd5['mkpVM']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x412817=_0x23f300,_0x4c36da={'JuRqt':function(_0x3d5fdd,_0x312276,_0x178ebc){return _0x3d5fdd(_0x312276,_0x178ebc);}},_0x4e8c04=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4e8c04))return null;try{const _0x4d7fa=await _0x4c36da['JuRqt'](readFile,_0x4e8c04,_0x412817(0xd9));return _0x4d7fa['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x5647c6){const _0x110cdb=_0x23f300,_0x105d83={'alvNX':function(_0x2c8fd1){return _0x2c8fd1();},'msCTV':function(_0x30bc08,_0x46dbca){return _0x30bc08(_0x46dbca);},'jcJBi':function(_0x19540f,_0x42b139,_0xf8fed5,_0x27ae85){return _0x19540f(_0x42b139,_0xf8fed5,_0x27ae85);}},_0x56236c=_0x105d83['alvNX'](getRangerDir),_0x5ae319=join(_0x56236c,ACTIVE_FEATURE_FILE);!_0x105d83[_0x110cdb(0x109)](existsSync,_0x56236c)&&await mkdir(_0x56236c,{'recursive':!![]}),await _0x105d83[_0x110cdb(0xcf)](writeFile,_0x5ae319,_0x5647c6,_0x110cdb(0xd9));}function getProgressDisplay(_0xfd3b81){const _0x3777a4=_0x23f300,_0x541754={'yVtRc':function(_0x270770,_0x33f715){return _0x270770+_0x33f715;},'GsJIN':function(_0x1b028d,_0x4dfd58){return _0x1b028d/_0x4dfd58;},'fOLuB':function(_0x47a426,_0x47d8fe){return _0x47a426+_0x47d8fe;},'WIIQf':function(_0x172608,_0x5970a5){return _0x172608>_0x5970a5;},'ZjRqW':function(_0x2b485a,_0x5a914d){return _0x2b485a>_0x5a914d;}},_0x1a5bf0=_0xfd3b81[_0x3777a4(0xd5)]||0x0,_0x5aa3a9=_0xfd3b81['verificationInProgressItems']||0x0,_0x581145=_0xfd3b81['blockedItems']||0x0,_0x21960d=_0xfd3b81[_0x3777a4(0x152)]||0x0,_0x5350e2=_0xfd3b81[_0x3777a4(0x11d)]||0x0,_0x568df4=_0x541754['yVtRc'](_0x541754['yVtRc'](_0x541754[_0x3777a4(0xb9)](_0x541754['yVtRc'](_0x1a5bf0,_0x5aa3a9),_0x581145),_0x21960d),_0x5350e2);if(_0x568df4===0x0)return'-';const _0x24c8ef=0xa,_0x4855db=Math[_0x3777a4(0x14b)](_0x541754['GsJIN'](_0x1a5bf0,_0x568df4)*_0x24c8ef),_0x562f2f=_0x541754['fOLuB']('█'[_0x3777a4(0xc0)](_0x4855db),'░'[_0x3777a4(0xc0)](_0x24c8ef-_0x4855db)),_0x9b4718=[];if(_0x581145>0x0)_0x9b4718[_0x3777a4(0xee)](_0x581145+'\x20blocked');if(_0x541754['WIIQf'](_0x21960d,0x0))_0x9b4718[_0x3777a4(0xee)](_0x21960d+'\x20incomplete');if(_0x541754['ZjRqW'](_0x5aa3a9,0x0))_0x9b4718['push'](_0x5aa3a9+'\x20in\x20progress');const _0x204b8d=_0x9b4718[_0x3777a4(0x150)]>0x0?'\x20('+_0x9b4718['join'](',\x20')+')':'';return _0x562f2f+'\x20'+_0x1a5bf0+'/'+_0x568df4+_0x3777a4(0xfa)+_0x204b8d;}function _0x1ce6(_0x24ca6f,_0x1c990a){_0x24ca6f=_0x24ca6f-0x94;const _0x56e03d=_0x56e0();let _0x1ce62d=_0x56e03d[_0x24ca6f];return _0x1ce62d;}function _0x56e0(){const _0x44df10=['point','\x20\x20\x20ID:\x20','closed','github.com/','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x1b[1m','style','dashboardUrl','qmSft','\x20(v','\x20scenarios.','NSbYx','QAiur','git\x20remote\x20get-url\x20origin','mnVdG','arrayBuffer','\x20\x20✅\x20No\x20feedback\x20to\x20address','SFncG','authorEmail','.\x20Feature\x20review\x20has\x20','laOLl','toLocaleDateString','uzBUd','name','Bxwin','domRef','round','CLAUDE_SESSION_ID','stats','Current\x20session\x20not\x20found.','stepName','length','latestReview','incompleteItems','tsfVh','isInteger','completedAt','\x20\x20\x20\x20\x20ID:\x20','hDTqf','split','stdout','stringify','find','scenarios','textContent','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','assetUrl','/api/v1/mcp/browser-sessions/','status','feedback-images','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','spatial','\x20--limit\x20','after','WcLaG','eAAEY','notes','completed','\x20\x20\x20Updated\x20branch\x20to:\x20','version','json','yQxIl','\x1b[0m','TxvNP','gitBranch','exit','Scenario\x20','git\x20rev-parse\x20--abbrev-ref\x20HEAD','Not\x20in\x20a\x20git\x20repository.','toLocaleString','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','canonicalFlow','/artifacts/','type','assetType','8929xAdqZv','OQyKG','excludeScenarios','tSBnE','toFixed','yVtRc','knTGR','IayQI','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','coordinates','dDPNT','412065uPAvNB','repeat','verification_in_progress','pipe','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','oBXUe','422835sDpVqk','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','\x20—\x20no\x20comments','IDsBe','has','items','NRFHl','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20\x20\x20Completed:\x20','currentSessionId','jcJBi','tpIEG','iteration','JBdfv','incomplete','\x0a⚠️\x20\x20','verifiedItems','pop','isKeyStep','ready','utf-8','totalCount','selected','any','stdin','trim','RSBPJ','VrVTd','rfhAX','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','terminalReason','filter','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','\x0aAvailable\x20scenarios:','screenshotUrls','comment_','verified','FotKF','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','KxvHB','limit','push','5|4|1|3|0|2','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','scenario','gitRepoUrl','iLYaP','\x0a✅\x20Restored\x20feature\x20review:\x20','unaddressedComments','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','\x20\x20\x20\x20','\x0a✅\x20Scenario\x20added','WGKiA','\x20verified','96aHufDN','UZCkp','cqNzQ','3073560Obedvo','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','1830290ZWgMFz','en-US','canceledReason','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20/\x20','Dxbbu','isTTY','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','replace','msCTV','QjREN','\x20\x20\x20Status:\x20','\x20\x20\x20\x20\x20\x20Incomplete:\x20','\x20\x20Expected\x20flow:','browserSessionId','Uenge','content','dsXcK','from','qSoRL','output','log','element','AVJrX','\x20\x20\x20\x20\x20Progress:\x20','751359UUCQAZ','148agEzHo','\x20feature\x20review(s)\x20found','sessionId','pendingItems','in_progress','description','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','incompleteReason','error','position','5281924tDTRDz','fBNOz','\x20\x20\x20Progress:\x20','blockedReason','vLMBX','RrbaG','checklistItems','map','\x20\x20\x20Branch:\x20','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','KtxGf','mTjpe','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'];_0x56e0=function(){return _0x44df10;};return _0x56e0();}function getCurrentSessionItems(_0x25eac9,_0xd8211b){const _0x1a0583=_0x23f300;if(!_0x25eac9[_0x1a0583(0xce)])return _0xd8211b['filter'](_0x4d1684=>!_0x4d1684['sessionId']);return _0xd8211b['filter'](_0x1e3b80=>_0x1e3b80['sessionId']===_0x25eac9[_0x1a0583(0xce)]||!_0x1e3b80[_0x1a0583(0x11c)]);}function displayFeature(_0x317369,_0x1cc3f8){const _0x11de1c=_0x23f300,_0x35032a={'wQKyC':function(_0x1c1ac7,_0x28e7cf){return _0x1c1ac7>_0x28e7cf;},'YRkZt':'\x0a\x20\x20\x20Scenarios:','tpIEG':_0x11de1c(0x133),'dDPNT':function(_0x479139,_0x3fce75){return _0x479139===_0x3fce75;},'DCRBO':'approved','AVJrX':function(_0x161f6e,_0x3be4fa){return _0x161f6e===_0x3be4fa;},'SypPY':'blocked','JSblv':function(_0x4f6ae9,_0x3c7dd4){return _0x4f6ae9>_0x3c7dd4;},'RSBPJ':function(_0x8536f9,_0x4ab7b1){return _0x8536f9!==_0x4ab7b1;},'hrXTz':_0x11de1c(0xd3),'yQxIl':function(_0xf7530b,_0x427953){return _0xf7530b===_0x427953;},'dKvkX':function(_0x52f4bc,_0x4f2456){return _0x52f4bc===_0x4f2456;}};console['log']('\x0a'+_0x317369[_0x11de1c(0x148)]+'\x20('+_0x317369[_0x11de1c(0x138)]+')');_0x317369['stats']&&console['log'](_0x11de1c(0x126)+getProgressDisplay(_0x317369[_0x11de1c(0x14d)]));_0x317369['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x317369['description']);_0x317369[_0x11de1c(0xf2)]&&console[_0x11de1c(0x115)]('\x20\x20\x20Repository:\x20'+_0x317369[_0x11de1c(0xf2)]);_0x317369['gitBranch']&&console[_0x11de1c(0x115)]('\x20\x20\x20Branch:\x20'+_0x317369['gitBranch']);console[_0x11de1c(0x115)]('\x20\x20\x20Created:\x20'+new Date(_0x317369['createdAt'])[_0x11de1c(0xae)]());_0x317369[_0x11de1c(0x155)]&&console[_0x11de1c(0x115)](_0x11de1c(0xcd)+new Date(_0x317369[_0x11de1c(0x155)])['toLocaleString']());if(_0x1cc3f8&&_0x35032a['wQKyC'](_0x1cc3f8['length'],0x0)){console['log'](_0x35032a['YRkZt']);for(let _0x2247ac=0x0;_0x2247ac<_0x1cc3f8['length'];_0x2247ac++){const _0x43764d=_0x1cc3f8[_0x2247ac];let _0x2033b5;if(_0x43764d['status']===_0x35032a[_0x11de1c(0xd0)]&&_0x35032a['dDPNT'](_0x43764d['terminalReason'],_0x35032a['DCRBO']))_0x2033b5='✅';else{if(_0x43764d['status']===_0x11de1c(0xe9))_0x2033b5='🟢';else{if(_0x35032a[_0x11de1c(0xbe)](_0x43764d['status'],_0x11de1c(0xd3)))_0x2033b5='🟠';else{if(_0x35032a['AVJrX'](_0x43764d[_0x11de1c(0x99)],_0x35032a['SypPY']))_0x2033b5='🛑';else{if(_0x43764d['status']===_0x35032a['tpIEG'])_0x2033b5='⛔';else _0x43764d['status']===_0x11de1c(0xc1)?_0x2033b5='⏳':_0x2033b5='⬜';}}}}const _0x38cb81=_0x43764d['version']>0x1?_0x11de1c(0x13a)+_0x43764d[_0x11de1c(0xa4)]+')':'',_0x2fad27=_0x35032a['JSblv'](_0x43764d['version'],0x1)&&_0x43764d['parentItemId']&&_0x43764d['status']!==_0x35032a['tpIEG']&&_0x35032a[_0x11de1c(0xdf)](_0x43764d[_0x11de1c(0x99)],'verified')?'\x20[has\x20reviewer\x20feedback]':'';console[_0x11de1c(0x115)]('\x20\x20\x20'+(_0x2247ac+0x1)+'.\x20'+_0x2033b5+'\x20'+_0x43764d['description']+_0x38cb81+_0x2fad27);_0x35032a[_0x11de1c(0x117)](_0x43764d[_0x11de1c(0x99)],_0x35032a['SypPY'])&&_0x43764d['blockedReason']&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x43764d[_0x11de1c(0x127)]);_0x43764d[_0x11de1c(0x99)]===_0x35032a['hrXTz']&&_0x43764d['incompleteReason']&&console[_0x11de1c(0x115)](_0x11de1c(0x10c)+_0x43764d['incompleteReason']);if(_0x35032a['AVJrX'](_0x43764d['status'],_0x11de1c(0x133))&&_0x35032a[_0x11de1c(0xa6)](_0x43764d[_0x11de1c(0xe3)],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x35032a['dKvkX'](_0x43764d['status'],_0x11de1c(0x133))&&_0x43764d['canceledReason']&&console[_0x11de1c(0x115)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x43764d[_0x11de1c(0x102)]);}}}export async function featureCreate(_0x49c6d3,_0x5c3534){const _0x5654df=_0x23f300,_0x234bb7={'WcLaG':function(_0x670e61){return _0x670e61();},'PsqPG':function(_0x2130a8,_0x21535f){return _0x2130a8===_0x21535f;},'QWSMT':function(_0x352931,_0x2b85a9){return _0x352931(_0x2b85a9);},'UZCkp':function(_0x457605,_0xe23d6d,_0x5a2858){return _0x457605(_0xe23d6d,_0x5a2858);},'EebHA':function(_0x472807,_0xbdd47b,_0x58b9db){return _0x472807(_0xbdd47b,_0x58b9db);}},{envNames:_0x400a70}=await _0x234bb7[_0x5654df(0x9f)](getEnvNames);_0x234bb7['PsqPG'](_0x400a70['length'],0x0)&&console['warn']('\x0a'+formatProfileRequiredMessage(_0x2c15da=>bold(_0x2c15da)));const _0xadd6b7=_0x5c3534[_0x5654df(0x94)]?_0x5c3534[_0x5654df(0x94)]['map'](_0x594c3d=>_0x594c3d['trim']()):[],_0xe5ae76=getGitRepoUrl(),_0x12c664=getGitBranch();console[_0x5654df(0x115)]('\x0aCreating\x20feature\x20review...');const _0x46ac57=await _0x234bb7['QWSMT'](createFeature,{'name':_0x49c6d3,'description':_0x5c3534[_0x5654df(0x11f)],'checklist':_0xadd6b7,'gitRepoUrl':_0xe5ae76,'gitBranch':_0x12c664});await setActiveFeatureId(_0x46ac57['id']),await tryStartCurrentSession(_0x46ac57['id']);const _0x1a4a3e=process['env'][_0x5654df(0x14c)];_0x1a4a3e&&_0x234bb7[_0x5654df(0xfc)](registerSession,_0x1a4a3e,_0x46ac57['id']),console[_0x5654df(0x115)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x46ac57['id']),_0x234bb7['EebHA'](displayFeature,_0x46ac57,_0x46ac57[_0x5654df(0x12a)]),console['log'](_0x5654df(0xbc));}export async function featureList(_0x2e7c88){const _0x1044e3=_0x23f300,_0x2f463e={'JUHgG':function(_0x419c32){return _0x419c32();},'KYDmp':function(_0x5d0988,_0x65e943){return _0x5d0988(_0x65e943);},'qSoRL':'\x0aNo\x20feature\x20reviews\x20found.','mMMHQ':function(_0x48b219,_0x979319){return _0x48b219>_0x979319;},'sCCMP':_0x1044e3(0xef),'YmvWM':function(_0x348f98,_0x37d3fc){return _0x348f98+_0x37d3fc;},'VrVTd':function(_0x2a347c,_0x322888){return _0x2a347c!==_0x322888;},'yWFbU':'\x20--include-deleted'},_0x21865e={'limit':_0x2e7c88[_0x1044e3(0xed)]??0xa,'offset':_0x2e7c88['offset']??0x0,'includeDeleted':_0x2e7c88['includeDeleted']};_0x2e7c88['currentBranch']&&(_0x21865e['gitRepoUrl']=_0x2f463e['JUHgG'](getGitRepoUrl),_0x21865e[_0x1044e3(0xa9)]=_0x2f463e['JUHgG'](getGitBranch));const _0x1c93f3=await _0x2f463e['KYDmp'](listFeatures,_0x21865e);if(_0x1c93f3['items'][_0x1044e3(0x150)]===0x0){console[_0x1044e3(0x115)](_0x2f463e[_0x1044e3(0x113)]);return;}const _0x3e0afa=_0x2f463e['mMMHQ'](_0x1c93f3[_0x1044e3(0xda)],_0x1c93f3['items']['length'])?'Showing\x20'+_0x1c93f3['items']['length']+'\x20of\x20'+_0x1c93f3[_0x1044e3(0xda)]:_0x1c93f3['totalCount']+_0x1044e3(0x11b);console['log']('\x0a'+_0x3e0afa+':\x0a');for(const _0x285050 of _0x1c93f3['items']){const _0x3ec0d1=_0x2f463e['sCCMP']['split']('|');let _0x21f545=0x0;while(!![]){switch(_0x3ec0d1[_0x21f545++]){case'0':console['log']('\x20\x20\x20Created:\x20'+new Date(_0x285050['createdAt'])['toLocaleDateString']());continue;case'1':_0x285050[_0x1044e3(0x14d)]&&console[_0x1044e3(0x115)](_0x1044e3(0x126)+getProgressDisplay(_0x285050[_0x1044e3(0x14d)]));continue;case'2':console['log']('');continue;case'3':_0x285050['gitBranch']&&console['log'](_0x1044e3(0x12c)+_0x285050[_0x1044e3(0xa9)]);continue;case'4':console['log'](_0x1044e3(0x132)+_0x285050['id']);continue;case'5':console['log'](''+_0x285050['name']);continue;}break;}}const _0x4fde8c=_0x21865e[_0x1044e3(0xed)]??0xa,_0x1297c1=_0x2f463e['YmvWM'](_0x21865e['offset']??0x0,_0x1c93f3[_0x1044e3(0xca)][_0x1044e3(0x150)]);if(_0x1297c1<_0x1c93f3[_0x1044e3(0xda)]){const _0x5a70dd=_0x2f463e[_0x1044e3(0xe0)](_0x4fde8c,0xa)?_0x1044e3(0x9d)+_0x4fde8c:'',_0x24b3a7=_0x2e7c88['currentBranch']?'\x20--current-branch':'',_0x3adf62=_0x2e7c88['includeDeleted']?_0x2f463e['yWFbU']:'';console[_0x1044e3(0x115)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x1297c1+_0x5a70dd+_0x24b3a7+_0x3adf62);}}export async function featureShow(_0x52063f){const _0x5894da=_0x23f300,_0x4cc7ab={'sIiJn':function(_0x33b0f2){return _0x33b0f2();},'JBwpe':_0x5894da(0x135),'NSbYx':function(_0x5ef324,_0x5cef97){return _0x5ef324(_0x5cef97);}},_0x3e5bf3=_0x52063f||await _0x4cc7ab['sIiJn'](getActiveFeatureId);if(!_0x3e5bf3)throw new Error(_0x4cc7ab['JBwpe']);const _0x336d1d=await _0x4cc7ab[_0x5894da(0x13c)](getFeature,_0x3e5bf3);displayFeature(_0x336d1d,_0x336d1d[_0x5894da(0x12a)]);}export async function featureResume(_0x58a827){const _0x5c04af=_0x23f300,_0x24ac5d={'aBSxi':function(_0x497742,_0x4084ed){return _0x497742(_0x4084ed);},'kQHNP':function(_0x28b21b,_0x3dd0a9){return _0x28b21b(_0x3dd0a9);},'MTlJh':function(_0x3c1062,_0xb99405,_0x17b9a3){return _0x3c1062(_0xb99405,_0x17b9a3);},'SDQpS':function(_0x32aee4,_0x3c3b06){return _0x32aee4(_0x3c3b06);},'SchLn':function(_0xb6e95a,_0x34069d,_0x168c7b){return _0xb6e95a(_0x34069d,_0x168c7b);},'gCRPk':function(_0x387cc4){return _0x387cc4();},'qmSft':function(_0x385e5c,_0xa51bb1){return _0x385e5c&&_0xa51bb1;},'QjREN':_0x5c04af(0xad),'mXPAX':function(_0x1eef10,_0x1443e9){return _0x1eef10||_0x1443e9;},'laOLl':'any','rfhAX':function(_0x2e3b29,_0x46cfa3){return _0x2e3b29===_0x46cfa3;},'OgbFu':_0x5c04af(0xe5),'nHDZl':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','uLJvh':_0x5c04af(0x107),'tsfVh':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:'};if(_0x58a827){const _0x382dae=await _0x24ac5d['aBSxi'](getFeature,_0x58a827);await _0x24ac5d['kQHNP'](setActiveFeatureId,_0x382dae['id']);const _0xa7691a=getGitBranch();_0xa7691a&&_0xa7691a!==_0x382dae[_0x5c04af(0xa9)]&&(await _0x24ac5d['MTlJh'](updateFeature,_0x382dae['id'],{'gitBranch':_0xa7691a}),console['log'](_0x5c04af(0xa3)+_0xa7691a));console[_0x5c04af(0x115)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x382dae['name']+'\x20('+_0x382dae['id']+')'),await _0x24ac5d['SDQpS'](tryStartCurrentSession,_0x382dae['id']);const _0x3a6bb1=process['env']['CLAUDE_SESSION_ID'];_0x3a6bb1&&_0x24ac5d['SchLn'](registerSession,_0x3a6bb1,_0x382dae['id']);displayFeature(_0x382dae,_0x382dae[_0x5c04af(0x12a)]),await printFeedbackNudge(_0x382dae['id']);return;}const _0x830378=getGitRepoUrl(),_0x2473aa=_0x24ac5d['gCRPk'](getGitBranch);if(_0x24ac5d[_0x5c04af(0x139)](!_0x830378,!_0x2473aa))throw new Error(_0x24ac5d[_0x5c04af(0x10a)]);console[_0x5c04af(0x115)](_0x5c04af(0xc3)+_0x24ac5d['mXPAX'](_0x830378,_0x5c04af(0xdc))+_0x5c04af(0x104)+(_0x2473aa||_0x24ac5d[_0x5c04af(0x145)])+'...');const _0xc2ee57=await _0x24ac5d['SDQpS'](listFeatures,{'gitRepoUrl':_0x830378,'gitBranch':_0x2473aa}),_0x43fbd9=_0xc2ee57[_0x5c04af(0xca)][_0x5c04af(0xe4)](_0x159235=>!_0x159235['completedAt']);if(_0x24ac5d[_0x5c04af(0xe1)](_0x43fbd9[_0x5c04af(0x150)],0x0)){console['log'](_0x24ac5d['OgbFu']),console['log'](_0x24ac5d['nHDZl']);return;}let _0x8b689c;if(_0x43fbd9[_0x5c04af(0x150)]===0x1)_0x8b689c=_0x43fbd9[0x0];else{const _0x16986f=process[_0x5c04af(0xdd)][_0x5c04af(0x106)]&&process[_0x5c04af(0x159)]['isTTY'];if(!_0x16986f){console[_0x5c04af(0x115)]('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0xb4df7b of _0x43fbd9){console['log']('\x20\x20'+_0xb4df7b['name']),console['log'](_0x5c04af(0x156)+_0xb4df7b['id']),_0xb4df7b['stats']&&console[_0x5c04af(0x115)](_0x5c04af(0x118)+getProgressDisplay(_0xb4df7b['stats'])),_0xb4df7b['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0xb4df7b[_0x5c04af(0xa9)]);}throw new Error(_0x24ac5d['uLJvh']);}const {selected:_0x393a88}=await _0x570df0['prompt']([{'type':'list','name':_0x5c04af(0xdb),'message':_0x24ac5d[_0x5c04af(0x153)],'choices':_0x43fbd9[_0x5c04af(0x12b)](_0xd8fb1a=>({'name':_0xd8fb1a[_0x5c04af(0x148)]+'\x20('+_0xd8fb1a['id']+')','value':_0xd8fb1a['id']}))}]);_0x8b689c=_0x43fbd9[_0x5c04af(0x15b)](_0x202e83=>_0x202e83['id']===_0x393a88);}await setActiveFeatureId(_0x8b689c['id']);_0x2473aa&&_0x2473aa!==_0x8b689c['gitBranch']&&(await updateFeature(_0x8b689c['id'],{'gitBranch':_0x2473aa}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2473aa));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x8b689c[_0x5c04af(0x148)]+'\x20('+_0x8b689c['id']+')'),await tryStartCurrentSession(_0x8b689c['id']);const _0x17a4d4=await getFeature(_0x8b689c['id']),_0x17a624=process['env']['CLAUDE_SESSION_ID'];_0x17a624&&registerSession(_0x17a624,_0x17a4d4['id']),_0x24ac5d['SchLn'](displayFeature,_0x17a4d4,_0x17a4d4['checklistItems']),await printFeedbackNudge(_0x17a4d4['id']);}async function printFeedbackNudge(_0x32475f){const _0x1efc65=_0x23f300,_0x867a0d={'rgUMQ':function(_0x4b5f03,_0x592549){return _0x4b5f03(_0x592549);},'PwiMa':function(_0x22f673,_0xa4692d,_0x40c8bb){return _0x22f673(_0xa4692d,_0x40c8bb);}};try{const {items:_0x1c72d6}=await _0x867a0d['rgUMQ'](getActionItems,_0x32475f);let _0x136b44=0x0,_0x1ebf7d=0x0;for(const _0x53d6bd of _0x1c72d6){const _0x3a33dc=await _0x867a0d['PwiMa'](getItemFeedback,_0x32475f,_0x53d6bd['id']);_0x3a33dc[_0x1efc65(0xf5)]['length']>0x0&&(_0x136b44+=_0x3a33dc['unaddressedComments']['length'],_0x1ebf7d++);}_0x136b44>0x0&&(console['log'](_0x1efc65(0xd4)+_0x136b44+_0x1efc65(0xff)+_0x1ebf7d+'\x20scenario(s).'),console[_0x1efc65(0x115)](_0x1efc65(0x96)));}catch{}}async function tryStartCurrentSession(_0x5b5de5){const _0x50feab=_0x23f300,_0x36d3c5={'SEHdi':function(_0x43d511,_0x273397){return _0x43d511(_0x273397);},'YfIFT':function(_0x545056,_0x2088ce,_0x4c92e9){return _0x545056(_0x2088ce,_0x4c92e9);}};try{const {sessions:_0x11c095}=await _0x36d3c5['SEHdi'](listFeatureSessions,_0x5b5de5),_0x2916ef=_0x11c095[_0x50feab(0x15b)](_0x1b9bbd=>_0x1b9bbd[_0x50feab(0x99)]===_0x50feab(0xd8));_0x2916ef&&(await _0x36d3c5['YfIFT'](startSession,_0x5b5de5,_0x2916ef['id']),console[_0x50feab(0x115)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x2916ef['iteration']));}catch{}}export async function featureReport(_0x5db596,_0x5ba5f7){const _0xab6ba9=_0x23f300,_0x1c739a={'acMpW':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','fthlR':function(_0x43f074,_0x3429b9,_0x37ca6a,_0x2fa450){return _0x43f074(_0x3429b9,_0x37ca6a,_0x2fa450);},'bALPx':function(_0x41f94b){return _0x41f94b();},'OmCHy':'reports','eXyQQ':function(_0x1ee944,_0x570232){return _0x1ee944(_0x570232);},'Fplhq':function(_0x3333db,_0x2d5953,_0x41e47c){return _0x3333db(_0x2d5953,_0x41e47c);},'bAIXs':function(_0x24583d,_0x33f063,_0x376650,_0x4fc7c0){return _0x24583d(_0x33f063,_0x376650,_0x4fc7c0);},'IhpIW':_0xab6ba9(0xd9)},_0x52018f=_0x5db596||await getActiveFeatureId();if(!_0x52018f)throw new Error(_0x1c739a['acMpW']);console[_0xab6ba9(0x115)]('\x0aGenerating\x20report...');const _0x56b7cf=await getFeatureReportMarkdown(_0x52018f,{'style':_0x5ba5f7[_0xab6ba9(0x137)]}),_0x35aa2f=_0x5ba5f7[_0xab6ba9(0x114)]||_0x1c739a['fthlR'](join,_0x1c739a['bALPx'](getRangerDir),_0x1c739a['OmCHy'],_0x52018f+'.md'),_0x5ef314=join(_0x35aa2f,'..');!_0x1c739a['eXyQQ'](existsSync,_0x5ef314)&&await _0x1c739a['Fplhq'](mkdir,_0x5ef314,{'recursive':!![]}),await _0x1c739a['bAIXs'](writeFile,_0x35aa2f,_0x56b7cf,_0x1c739a['IhpIW']),console[_0xab6ba9(0x115)]('\x0a✅\x20Report\x20generated:\x20'+_0x35aa2f);}function getScenarioResult(_0x41c7f3){const _0x2d6116=_0x23f300,_0xc56563={'IDsBe':function(_0x377d26,_0x59a445){return _0x377d26===_0x59a445;}};if(_0xc56563[_0x2d6116(0xc8)](_0x41c7f3['status'],'closed'))return _0x41c7f3[_0x2d6116(0xe3)]??'closed';if(_0xc56563['IDsBe'](_0x41c7f3[_0x2d6116(0x99)],'verification_in_progress'))return'in_progress';return _0x41c7f3['status'];}function getScenarioRationale(_0x3d7af3,_0x590384){const _0x26354b=_0x23f300,_0xf7a94f='1|2|0|4|3|5'['split']('|');let _0x55f4c2=0x0;while(!![]){switch(_0xf7a94f[_0x55f4c2++]){case'0':if(_0x3d7af3['incompleteReason'])return _0x3d7af3[_0x26354b(0x121)];continue;case'1':if(_0x590384)return _0x590384;continue;case'2':if(_0x3d7af3['blockedReason'])return _0x3d7af3[_0x26354b(0x127)];continue;case'3':if(_0x3d7af3[_0x26354b(0xa1)])return _0x3d7af3[_0x26354b(0xa1)];continue;case'4':if(_0x3d7af3[_0x26354b(0x102)])return _0x3d7af3[_0x26354b(0x102)];continue;case'5':return null;}break;}}export async function featureReportPrDescription(_0x3e597a,_0x4e5087){const _0x39e302=_0x23f300,_0x705c3={'KtxGf':function(_0xae59eb){return _0xae59eb();},'JNMkL':function(_0x3f4844,_0x5cc119,_0x2c77f3){return _0x3f4844(_0x5cc119,_0x2c77f3);},'OQyKG':_0x39e302(0xc6),'fBNOz':function(_0x11e90b,_0x61f0c2){return _0x11e90b>_0x61f0c2;},'iHAHH':'\x0aAvailable\x20scenarios:','Dxbbu':function(_0xd1e5ca,_0x506e60){return _0xd1e5ca+_0x506e60;},'JBdfv':_0x39e302(0xf6),'EpzCa':function(_0x1de38b,_0x217c1f,_0xe6e4c1,_0x10e371){return _0x1de38b(_0x217c1f,_0xe6e4c1,_0x10e371);}},_0x4ed920=_0x3e597a||await _0x705c3[_0x39e302(0x12e)](getActiveFeatureId);if(!_0x4ed920)throw new Error(_0x39e302(0xeb));const _0x4c7be8=await getFeature(_0x4ed920),_0x4a7ef4=_0x4c7be8[_0x39e302(0x12a)]||[],_0x1b39ed=_0x705c3['JNMkL'](getCurrentSessionItems,_0x4c7be8,_0x4a7ef4);_0x1b39ed['length']===0x0&&(console[_0x39e302(0x122)](_0x705c3[_0x39e302(0xb5)]),process['exit'](0x1));const _0x519f59=_0x4e5087[_0x39e302(0xb6)]??[],_0x46ba3f=_0x519f59['filter'](_0x1c725d=>!Number[_0x39e302(0x154)](_0x1c725d)||_0x1c725d<0x1||_0x1c725d>_0x1b39ed['length']);if(_0x705c3[_0x39e302(0x125)](_0x46ba3f['length'],0x0)){console[_0x39e302(0x122)](_0x39e302(0x120)+_0x46ba3f['join'](',\x20')),console[_0x39e302(0x115)](_0x705c3['iHAHH']);for(let _0x30e093=0x0;_0x30e093<_0x1b39ed['length'];_0x30e093++){console[_0x39e302(0x115)]('\x20\x20'+_0x705c3[_0x39e302(0x105)](_0x30e093,0x1)+'.\x20'+_0x1b39ed[_0x30e093][_0x39e302(0x11f)]);}process[_0x39e302(0xaa)](0x1);}const _0x221415=new Set(_0x519f59['map'](_0x32b1ad=>_0x32b1ad-0x1)),_0x5eef06=_0x1b39ed['filter']((_0x44d162,_0x18be61)=>!_0x221415[_0x39e302(0xc9)](_0x18be61));_0x5eef06['length']===0x0&&(console[_0x39e302(0x122)](_0x705c3[_0x39e302(0xd2)]),process[_0x39e302(0xaa)](0x1));if(_0x4e5087[_0x39e302(0xa5)])await _0x705c3['EpzCa'](outputJsonReport,_0x4ed920,_0x4c7be8,_0x5eef06);else{const _0x14c123=await getFeatureReportMarkdown(_0x4ed920,{'itemIds':_0x5eef06['map'](_0x5358a1=>_0x5358a1['id'])});process[_0x39e302(0x159)]['write'](_0x14c123['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x1edde8,_0x58e3f5,_0x567120){const _0x3162cf=_0x23f300,_0x332b36={'VjayR':function(_0x42710d,_0x40a09e){return _0x42710d>_0x40a09e;},'mnVdG':function(_0x7cc96b){return _0x7cc96b();}},_0x2298f8=_0x332b36[_0x3162cf(0x13f)](getApiBaseUrl),_0x3312f7=await getFeatureReport(_0x1edde8),_0x2a77bd=new Map(_0x3312f7['checklistItems']['map'](_0x2296a1=>[_0x2296a1['id'],_0x2296a1])),_0x4e2bc0=await Promise['all'](_0x567120[_0x3162cf(0x12b)](async _0x4ef518=>{const _0x128efd=_0x3162cf,_0x47afae=_0x2a77bd['get'](_0x4ef518['id']),_0x37f873=_0x47afae?.['linkedSession']??null;let _0xa16cb9=[];if(_0x4ef518['browserSessionId'])try{const {steps:_0x40d498}=await getBrowserSessionSteps(_0x4ef518[_0x128efd(0x10e)]);_0x332b36['VjayR'](_0x40d498[_0x128efd(0x150)],0x0)&&(_0xa16cb9=_0x40d498[_0x128efd(0x12b)](_0x568c19=>{const _0x5ab527=_0x128efd,_0x2b3981=_0x568c19['assets'][_0x5ab527(0x15b)](_0x17bf00=>_0x17bf00['assetType']==='screenshot'&&_0x17bf00['timing']===_0x5ab527(0x9e))??_0x568c19['assets']['find'](_0x55b8ff=>_0x55b8ff[_0x5ab527(0xb3)]==='screenshot');let _0x13681e=null,_0x523bda=null;if(_0x2b3981){const _0x257aed=_0x2b3981['storage']['location'][_0x5ab527(0x158)]('/')[_0x5ab527(0xd6)]();_0x13681e=_0x2298f8+_0x5ab527(0x98)+_0x4ef518['browserSessionId']+_0x5ab527(0xb1)+_0x257aed,_0x257aed&&(_0x523bda=_0x257aed['replace'](/\.\w+$/,'')[_0x5ab527(0x108)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x523bda||_0x568c19['description']||_0x568c19[_0x5ab527(0x14f)]||'Step\x20'+_0x568c19[_0x5ab527(0x123)],'screenshot':_0x13681e,'is_key_step':_0x568c19[_0x5ab527(0xd7)]};}));}catch{}return _0xa16cb9['length']===0x0&&_0x37f873?.[_0x128efd(0xe7)]&&(_0xa16cb9=_0x37f873[_0x128efd(0xe7)]['map']((_0x2ba058,_0x448a6c)=>({'description':'Screenshot\x20'+(_0x448a6c+0x1),'screenshot':_0x2ba058,'is_key_step':![]}))),{'description':_0x4ef518[_0x128efd(0x11f)],'result':getScenarioResult(_0x4ef518),'rationale':getScenarioRationale(_0x4ef518,_0x37f873?.['agentResponse']),'steps':_0xa16cb9};})),_0xeca52c={'url':_0x58e3f5[_0x3162cf(0x138)],'scenarios':_0x4e2bc0};process['stdout']['write'](JSON[_0x3162cf(0x15a)](_0xeca52c,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x4d2779){const _0x56c608=_0x23f300,_0x51d2d8={'BWKIZ':function(_0x12ff07,_0x4ffcfd){return _0x12ff07(_0x4ffcfd);},'mTjpe':_0x56c608(0x14e),'FotKF':_0x56c608(0xa2),'iLYaP':'\x0a✅\x20Session\x20is\x20already\x20completed.','FWzQZ':'in_progress'},_0x105016=_0x4d2779||await getActiveFeatureId();if(!_0x105016)throw new Error(_0x56c608(0x135));const _0x1e7e9a=await _0x51d2d8['BWKIZ'](getFeature,_0x105016);if(!_0x1e7e9a['currentSessionId'])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x49e327}=await listFeatureSessions(_0x105016),_0x1a56f8=_0x49e327['find'](_0xca6612=>_0xca6612['id']===_0x1e7e9a['currentSessionId']);if(!_0x1a56f8)throw new Error(_0x51d2d8[_0x56c608(0x12f)]);if(_0x1a56f8[_0x56c608(0x99)]===_0x51d2d8[_0x56c608(0xea)]){console[_0x56c608(0x115)](_0x51d2d8[_0x56c608(0xf3)]);return;}if(_0x1a56f8[_0x56c608(0x99)]!==_0x51d2d8['FWzQZ'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x1a56f8[_0x56c608(0x99)]);console[_0x56c608(0x115)]('\x0aConcluding\x20session...'),await concludeSession(_0x105016,_0x1e7e9a[_0x56c608(0xce)]),console['log']('\x0a✅\x20Session\x20'+_0x1a56f8[_0x56c608(0xd1)]+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5412a4){const _0x4e2111=_0x23f300,_0x16812f={'XEGbx':function(_0xc0068e){return _0xc0068e();},'cqNzQ':_0x4e2111(0xeb),'oBXUe':function(_0x13433f,_0x5d7e7c){return _0x13433f(_0x5d7e7c);},'NRFHl':'No\x20sessions\x20found.','oVqwE':'completed','iDbAe':function(_0x49a548,_0x51209e){return _0x49a548===_0x51209e;}},_0x296df2=_0x5412a4||await _0x16812f['XEGbx'](getActiveFeatureId);if(!_0x296df2)throw new Error(_0x16812f[_0x4e2111(0xfd)]);const _0x4d24b9=await getFeature(_0x296df2);console['log']('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x4d24b9['name']+'\x0a');const {sessions:_0x427718}=await _0x16812f[_0x4e2111(0xc4)](listFeatureSessions,_0x296df2);if(_0x427718[_0x4e2111(0x150)]===0x0){console['log'](_0x16812f[_0x4e2111(0xcb)]);return;}for(const _0x1e06a6 of _0x427718){const _0x4a5950=_0x1e06a6[_0x4e2111(0x99)]===_0x16812f['oVqwE']?'✅':_0x16812f['iDbAe'](_0x1e06a6[_0x4e2111(0x99)],_0x4e2111(0x11e))?'🔄':'▶️';console[_0x4e2111(0x115)](_0x4a5950+'\x20Session\x20'+_0x1e06a6[_0x4e2111(0xd1)]+'\x20('+_0x1e06a6['id']+')'),console[_0x4e2111(0x115)](_0x4e2111(0x10b)+_0x1e06a6[_0x4e2111(0x99)]),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x1e06a6['createdAt'])['toLocaleString']()),_0x1e06a6[_0x4e2111(0x155)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x1e06a6['completedAt'])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x9239af,_0x2d5896){const _0x3483a3=_0x23f300,_0xb1f393={'NDuxL':function(_0x2c9877){return _0x2c9877();},'knTGR':function(_0x2c8188,_0x597126,_0x204270){return _0x2c8188(_0x597126,_0x204270);},'uuWtm':function(_0x13598f,_0x2957bf){return _0x13598f(_0x2957bf);},'dsXcK':function(_0xe6f2e1,_0x2bd4f8,_0x40ddec){return _0xe6f2e1(_0x2bd4f8,_0x40ddec);}},_0x386848=_0x2d5896||await _0xb1f393['NDuxL'](getActiveFeatureId);if(!_0x386848)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 _0x44a96d=await getFeature(_0x386848);if(_0x44a96d['latestReview']&&!_0x44a96d[_0x3483a3(0x151)]['submittedAt'])throw new Error(_0x3483a3(0x12d)+_0x44a96d[_0x3483a3(0x138)]);await _0xb1f393[_0x3483a3(0xba)](createChecklistItem,_0x386848,_0x9239af);const _0x3be6c1=await _0xb1f393['uuWtm'](getFeature,_0x386848);console[_0x3483a3(0x115)](_0x3483a3(0xf8)),_0xb1f393[_0x3483a3(0x111)](displayFeature,_0x3be6c1,_0x3be6c1[_0x3483a3(0x12a)]);}export async function featureEditScenario(_0x2b84bb,_0x38e9cd){const _0x3115e1=_0x23f300,_0x3c0d01={'eAAEY':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','EcFpn':function(_0x1af208,_0x53fda7){return _0x1af208===_0x53fda7;},'OikYs':_0x3115e1(0x9b),'iGdci':_0x3115e1(0xaf),'Bxwin':function(_0x388e8e,_0x187f19){return _0x388e8e<_0x187f19;},'bcHVy':function(_0xacfd37,_0x496aa7){return _0xacfd37+_0x496aa7;},'OMhOw':function(_0x1eb676,_0x2f9aa5){return _0x1eb676-_0x2f9aa5;},'RrbaG':function(_0x28f9d0,_0x242410){return _0x28f9d0>=_0x242410;},'weBGc':function(_0x5d6cf0,_0x1ebfe9,_0x1f9394){return _0x5d6cf0(_0x1ebfe9,_0x1f9394);}},_0x169495=_0x38e9cd['id']||await getActiveFeatureId();!_0x169495&&(console[_0x3115e1(0x122)](_0x3c0d01[_0x3115e1(0xa0)]),console[_0x3115e1(0x122)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process[_0x3115e1(0xaa)](0x1));const _0x27848c=await getFeature(_0x169495);_0x27848c[_0x3115e1(0x151)]&&!_0x27848c[_0x3115e1(0x151)]['submittedAt']&&(console['error']('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x27848c[_0x3115e1(0x138)]),process['exit'](0x1));const _0x1e6a5c=_0x27848c[_0x3115e1(0x12a)]||[];_0x3c0d01['EcFpn'](_0x1e6a5c['length'],0x0)&&(console[_0x3115e1(0x122)](_0x3c0d01['OikYs']),process['exit'](0x1));if(_0x3c0d01['EcFpn'](_0x38e9cd['scenario'],undefined)){console['error'](_0x3c0d01['iGdci']),console[_0x3115e1(0x115)](_0x3115e1(0xe6));for(let _0x42b2a2=0x0;_0x3c0d01[_0x3115e1(0x149)](_0x42b2a2,_0x1e6a5c['length']);_0x42b2a2++){console[_0x3115e1(0x115)]('\x20\x20'+_0x3c0d01['bcHVy'](_0x42b2a2,0x1)+'.\x20'+_0x1e6a5c[_0x42b2a2][_0x3115e1(0x11f)]);}process['exit'](0x1);}const _0x260433=_0x3c0d01['OMhOw'](_0x38e9cd[_0x3115e1(0xf1)],0x1);if(_0x3c0d01[_0x3115e1(0x149)](_0x260433,0x0)||_0x3c0d01[_0x3115e1(0x129)](_0x260433,_0x1e6a5c['length'])){console[_0x3115e1(0x122)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x38e9cd['scenario']+_0x3115e1(0x144)+_0x1e6a5c['length']+_0x3115e1(0x13b)),console['log'](_0x3115e1(0xe6));for(let _0x7ec227=0x0;_0x7ec227<_0x1e6a5c['length'];_0x7ec227++){console[_0x3115e1(0x115)]('\x20\x20'+_0x3c0d01['bcHVy'](_0x7ec227,0x1)+'.\x20'+_0x1e6a5c[_0x7ec227]['description']);}process['exit'](0x1);}const _0x503639=_0x1e6a5c[_0x260433];await updateChecklistItem(_0x169495,_0x503639['id'],{'description':_0x2b84bb});const _0x223845=await getFeature(_0x169495);console[_0x3115e1(0x115)]('\x0a✅\x20Scenario\x20updated'),_0x3c0d01['weBGc'](displayFeature,_0x223845,_0x223845['checklistItems']);}async function downloadFeedbackImage(_0x6df001,_0x47d23e){const _0x23a627=_0x23f300,_0x274d1b={'XuUbd':function(_0x3f9ecd,_0x213b41,_0x1d3181){return _0x3f9ecd(_0x213b41,_0x1d3181);},'QAiur':_0x23a627(0x9a),'ZQYjl':function(_0x142bbe,_0x4b4e5e,_0x1a7760){return _0x142bbe(_0x4b4e5e,_0x1a7760);}};try{const _0xa2b166=_0x274d1b['XuUbd'](join,getRangerDir(),_0x274d1b[_0x23a627(0x13d)]);await mkdir(_0xa2b166,{'recursive':!![]});const _0x343275=join(_0xa2b166,_0x23a627(0xe8)+_0x47d23e+'.png'),_0x5098d6=await fetch(_0x6df001);if(!_0x5098d6['ok'])return null;const _0x317f31=Buffer[_0x23a627(0x112)](await _0x5098d6[_0x23a627(0x140)]());return await _0x274d1b['ZQYjl'](writeFile,_0x343275,_0x317f31),_0x343275;}catch{return null;}}export async function featureGetReview(_0x2286f9){const _0x32fe87=_0x23f300,_0x4ea732={'WvAox':function(_0x1d0fb2){return _0x1d0fb2();},'gqTWK':_0x32fe87(0x135),'Uenge':function(_0x517aba,_0x58e97e){return _0x517aba(_0x58e97e);},'TxvNP':function(_0x228a63,_0x5b07a8){return _0x228a63===_0x5b07a8;},'SFncG':function(_0x5bcab8,_0x5739d2,_0x83d069){return _0x5bcab8(_0x5739d2,_0x83d069);},'oLmyz':function(_0x2f72c1,_0x45b8cb){return _0x2f72c1>_0x45b8cb;},'WIINg':'numeric','KxvHB':'Unknown','uzBUd':'\x20>\x20'},_0x10eb6f=_0x2286f9||await _0x4ea732['WvAox'](getActiveFeatureId);if(!_0x10eb6f)throw new Error(_0x4ea732['gqTWK']);const _0x1fc065=await getFeature(_0x10eb6f),{items:_0x1ef99e}=await _0x4ea732[_0x32fe87(0x10f)](getActionItems,_0x10eb6f);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x1fc065[_0x32fe87(0x148)]+'\x20('+_0x1fc065['id']+')\x0a');if(_0x4ea732[_0x32fe87(0xa8)](_0x1ef99e['length'],0x0)){console['log']('No\x20scenarios\x20found.');return;}for(let _0x5af75f=0x0;_0x5af75f<_0x1ef99e['length'];_0x5af75f++){const _0x2fd657=_0x1ef99e[_0x5af75f],_0x1e9cf4=_0x2fd657['version']>0x1?_0x32fe87(0x13a)+_0x2fd657[_0x32fe87(0xa4)]+')':'',_0x40c809=await _0x4ea732[_0x32fe87(0x142)](getItemFeedback,_0x10eb6f,_0x2fd657['id']);if(_0x4ea732['oLmyz'](_0x40c809['unaddressedComments']['length'],0x0)){console[_0x32fe87(0x115)](_0x32fe87(0xab)+(_0x5af75f+0x1)+':\x20\x22'+_0x2fd657['description']+'\x22'+_0x1e9cf4+'\x20—\x20'+_0x40c809[_0x32fe87(0xf5)][_0x32fe87(0x150)]+'\x20unaddressed\x20comment(s)');for(const _0x5cbaad of _0x40c809[_0x32fe87(0xf5)]){const _0x55dfbe=new Date(_0x5cbaad['createdAt'])[_0x32fe87(0x146)](_0x32fe87(0x101),{'month':'short','day':_0x4ea732['WIINg']}),_0x931fe5=_0x5cbaad['authorName']||_0x5cbaad[_0x32fe87(0x143)]||_0x4ea732[_0x32fe87(0xec)];console[_0x32fe87(0x115)]('\x20\x20💬\x20'+_0x931fe5+'\x20('+_0x55dfbe+'):\x20\x22'+_0x5cbaad[_0x32fe87(0x110)]+'\x22');if(_0x5cbaad[_0x32fe87(0x97)]){const _0x599dd1=await downloadFeedbackImage(_0x5cbaad[_0x32fe87(0x97)],_0x5cbaad['id']);_0x599dd1&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x599dd1);}if(_0x5cbaad[_0x32fe87(0x14a)]){const _0x20f017=_0x5cbaad['domRef']['selector'][_0x32fe87(0x158)](_0x4ea732[_0x32fe87(0x147)])['pop']()?.[_0x32fe87(0x158)](':')[0x0]||_0x32fe87(0x116),_0x91a2f4=_0x5cbaad[_0x32fe87(0x14a)][_0x32fe87(0x95)]?'\x20\x22'+_0x5cbaad['domRef'][_0x32fe87(0x95)]['slice'](0x0,0x3c)+'\x22':'';console[_0x32fe87(0x115)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x20f017+'>'+_0x91a2f4),console['log'](_0x32fe87(0x103)+_0x5cbaad['domRef']['selector']);}else{if(_0x5cbaad['spatial']){const _0x18549e=_0x5cbaad['spatial'][_0x32fe87(0xbd)];_0x4ea732['TxvNP'](_0x5cbaad[_0x32fe87(0x9c)][_0x32fe87(0xb2)],_0x32fe87(0x131))&&_0x18549e[_0x32fe87(0x150)]>=0x2?console['log'](_0x32fe87(0xcc)+_0x18549e[0x0]['toFixed'](0x2)+',\x20'+_0x18549e[0x1][_0x32fe87(0xb8)](0x2)+')'):console['log'](_0x32fe87(0xe2)+_0x5cbaad[_0x32fe87(0x9c)][_0x32fe87(0xb2)]+'\x20at\x20['+_0x18549e[_0x32fe87(0x12b)](_0x270db5=>_0x270db5[_0x32fe87(0xb8)](0x2))['join'](',\x20')+']');}}}if(_0x40c809[_0x32fe87(0xb0)]){console['log'](_0x32fe87(0x10d));for(const _0x5b1f2c of _0x40c809['canonicalFlow']['split']('\x0a')){console['log'](_0x32fe87(0xf7)+_0x5b1f2c);}}}else console['log']('Scenario\x20'+(_0x5af75f+0x1)+':\x20\x22'+_0x2fd657[_0x32fe87(0x11f)]+'\x22'+_0x1e9cf4+_0x32fe87(0xc7)),console['log'](_0x32fe87(0x141));console[_0x32fe87(0x115)]('');}}export async function featureDelete(_0x316b62){const _0x52bc77=_0x23f300,_0x11b20c={'Ikvts':_0x52bc77(0x135),'WGKiA':function(_0x554d4c,_0x24acce){return _0x554d4c(_0x24acce);},'hDTqf':function(_0x11e56d,_0x11a61a){return _0x11e56d(_0x11a61a);},'tbLny':function(_0xd20648,_0xd1d60b){return _0xd20648+_0xd1d60b;}},_0x5f0378=_0x316b62||await getActiveFeatureId();if(!_0x5f0378)throw new Error(_0x11b20c['Ikvts']);const _0x2e94e2=await _0x11b20c[_0x52bc77(0xf9)](getFeature,_0x5f0378);await _0x11b20c[_0x52bc77(0x157)](softDeleteFeature,_0x5f0378),console[_0x52bc77(0x115)](_0x52bc77(0x130)+_0x2e94e2['name']+'\x20('+_0x5f0378+')'),console[_0x52bc77(0x115)](_0x11b20c['tbLny'](_0x52bc77(0xf0),_0x5f0378));}export async function featureRestore(_0x285cb3){const _0x75b5b9=_0x23f300,_0x235970={'gQQlf':function(_0x4724a9,_0x52374d){return _0x4724a9(_0x52374d);},'vLMBX':function(_0x3a30f6,_0x1fe92e,_0x543406){return _0x3a30f6(_0x1fe92e,_0x543406);}};await restoreFeature(_0x285cb3);const _0x244894=await _0x235970['gQQlf'](getFeature,_0x285cb3);console['log'](_0x75b5b9(0xf4)+_0x244894[_0x75b5b9(0x148)]+'\x20('+_0x285cb3+')'),_0x235970[_0x75b5b9(0x128)](displayFeature,_0x244894,_0x244894[_0x75b5b9(0x12a)]);}
@@ -1 +1 @@
1
- (function(_0x858422,_0x299918){const _0x1fef73=_0x3545,_0x556f2a=_0x858422();while(!![]){try{const _0x3916c9=parseInt(_0x1fef73(0x115))/0x1+parseInt(_0x1fef73(0x112))/0x2+-parseInt(_0x1fef73(0x111))/0x3*(-parseInt(_0x1fef73(0x119))/0x4)+parseInt(_0x1fef73(0x11d))/0x5*(parseInt(_0x1fef73(0x11a))/0x6)+parseInt(_0x1fef73(0x113))/0x7*(parseInt(_0x1fef73(0x114))/0x8)+-parseInt(_0x1fef73(0x117))/0x9*(-parseInt(_0x1fef73(0x11b))/0xa)+-parseInt(_0x1fef73(0x118))/0xb;if(_0x3916c9===_0x299918)break;else _0x556f2a['push'](_0x556f2a['shift']());}catch(_0x1d1541){_0x556f2a['push'](_0x556f2a['shift']());}}}(_0x4677,0xd4c71));function _0x4677(){const _0x4432c7=['10592771knaOzp','8nqDNAm','378611AsGFKr','error','110241jOazPh','35052809AKRpGb','4ffksCf','756gJGwqM','20JrNBLg','Unknown\x20hook:\x20','55295GzhtZF','keys','1921635OjmffD','215630KyoeGy'];_0x4677=function(){return _0x4432c7;};return _0x4677();}function _0x3545(_0x574a77,_0xa7f045){_0x574a77=_0x574a77-0x111;const _0x467738=_0x4677();let _0x354585=_0x467738[_0x574a77];return _0x354585;}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};export async function hook(_0xd2ec6d,_0xa60320){const _0x18944c=_0x3545,_0x36c653={'bfAPR':function(_0x10859a,_0x74906a){return _0x10859a(_0x74906a);}},_0x27420e=HOOKS[_0xd2ec6d];if(!_0x27420e){const _0x45a685=Object[_0x18944c(0x11e)](HOOKS)['join'](',\x20');console[_0x18944c(0x116)](_0x18944c(0x11c)+_0xd2ec6d),console[_0x18944c(0x116)]('Valid\x20hooks:\x20'+_0x45a685),process['exit'](0x1);}await _0x36c653['bfAPR'](_0x27420e,_0xa60320);}
1
+ function _0x4ee5(_0x41a145,_0x5013c5){_0x41a145=_0x41a145-0x10d;const _0x315196=_0x3151();let _0x4ee5b4=_0x315196[_0x41a145];return _0x4ee5b4;}(function(_0x46d8a7,_0x20ae97){const _0x50a343=_0x4ee5,_0x537014=_0x46d8a7();while(!![]){try{const _0x43dcdb=-parseInt(_0x50a343(0x118))/0x1+-parseInt(_0x50a343(0x119))/0x2*(-parseInt(_0x50a343(0x111))/0x3)+parseInt(_0x50a343(0x10f))/0x4*(-parseInt(_0x50a343(0x116))/0x5)+-parseInt(_0x50a343(0x114))/0x6*(parseInt(_0x50a343(0x10e))/0x7)+parseInt(_0x50a343(0x10d))/0x8+parseInt(_0x50a343(0x110))/0x9+parseInt(_0x50a343(0x115))/0xa;if(_0x43dcdb===_0x20ae97)break;else _0x537014['push'](_0x537014['shift']());}catch(_0x6c05a3){_0x537014['push'](_0x537014['shift']());}}}(_0x3151,0xecae6));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x3151(){const _0x34d1f1=['apcEm','error','4194444ZKhqKY','40603070zwLjou','28850EFFUhP','keys','1750923WXKcNp','2anqHjk','Unknown\x20hook:\x20','Valid\x20hooks:\x20','5254936WwdyJf','14azpaFX','668oJSfAQ','2468070NTqoXZ','272109NfwhrJ'];_0x3151=function(){return _0x34d1f1;};return _0x3151();}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(_0x47c998,_0x599cf0){const _0x4bb08c=_0x4ee5,_0x3bae6d={'apcEm':function(_0x3873d6,_0x209b8d){return _0x3873d6(_0x209b8d);}},_0x46d445=HOOKS[_0x47c998];if(!_0x46d445){const _0x1e9f77=Object[_0x4bb08c(0x117)](HOOKS)['join'](',\x20');console['error'](_0x4bb08c(0x11a)+_0x47c998),console[_0x4bb08c(0x113)](_0x4bb08c(0x11b)+_0x1e9f77),process['exit'](0x1);}await _0x3bae6d[_0x4bb08c(0x112)](_0x46d445,_0x599cf0);}
@@ -1 +1 @@
1
- (function(_0x4ed8b6,_0x284608){const _0x5710ba=_0x509f,_0x360555=_0x4ed8b6();while(!![]){try{const _0x39f6cb=parseInt(_0x5710ba(0xc3))/0x1*(parseInt(_0x5710ba(0xbe))/0x2)+-parseInt(_0x5710ba(0xc6))/0x3*(parseInt(_0x5710ba(0xc8))/0x4)+-parseInt(_0x5710ba(0xc9))/0x5*(parseInt(_0x5710ba(0xbc))/0x6)+-parseInt(_0x5710ba(0xc0))/0x7*(parseInt(_0x5710ba(0xc4))/0x8)+parseInt(_0x5710ba(0xbd))/0x9*(-parseInt(_0x5710ba(0xc1))/0xa)+parseInt(_0x5710ba(0xc7))/0xb+-parseInt(_0x5710ba(0xbf))/0xc*(-parseInt(_0x5710ba(0xc5))/0xd);if(_0x39f6cb===_0x284608)break;else _0x360555['push'](_0x360555['shift']());}catch(_0x435cc1){_0x360555['push'](_0x360555['shift']());}}}(_0x5f0c,0xa9190));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x509f(_0x1f2fc1,_0x39cf9f){_0x1f2fc1=_0x1f2fc1-0xbc;const _0x5f0c32=_0x5f0c();let _0x509f2e=_0x5f0c32[_0x1f2fc1];return _0x509f2e;}const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';function _0x5f0c(){const _0xaf8b61=['evLHO','1ZbXjzE','840776HfuDJu','7237165fWujYx','6IRVDAT','14249961TKqEKy','2228356qSATHr','4440sKWEod','3996YAWLKX','36wUchJN','2310800oZRuwt','24aNeljg','21kOqHMV','2126900jYMDiT'];_0x5f0c=function(){return _0xaf8b61;};return _0x5f0c();}export async function autoPrompt(){const _0x3aa994=_0x509f,_0x22cb65={'evLHO':function(_0x4246af,_0x32f2d9){return _0x4246af(_0x32f2d9);}},_0x3d75d1=await readHookInput(),_0x28535f=_0x3d75d1?.['session_id'];if(!_0x28535f)return;if(_0x22cb65['evLHO'](isSessionEnabled,_0x28535f)||_0x22cb65[_0x3aa994(0xc2)](hasSessionBeenPrompted,_0x28535f))return;markSessionPrompted(_0x28535f),console['log'](AUTO_PROMPT_TEXT);}
1
+ const _0x7f66a2=_0x5781;(function(_0x17702c,_0x501684){const _0x519203=_0x5781,_0x11cca7=_0x17702c();while(!![]){try{const _0x4d4dde=parseInt(_0x519203(0x105))/0x1+-parseInt(_0x519203(0x110))/0x2*(parseInt(_0x519203(0x10c))/0x3)+parseInt(_0x519203(0x10d))/0x4*(parseInt(_0x519203(0x10b))/0x5)+-parseInt(_0x519203(0x10a))/0x6+-parseInt(_0x519203(0x111))/0x7*(-parseInt(_0x519203(0x106))/0x8)+-parseInt(_0x519203(0x109))/0x9*(parseInt(_0x519203(0x10f))/0xa)+-parseInt(_0x519203(0x10e))/0xb*(-parseInt(_0x519203(0x108))/0xc);if(_0x4d4dde===_0x501684)break;else _0x11cca7['push'](_0x11cca7['shift']());}catch(_0x1873a6){_0x11cca7['push'](_0x11cca7['shift']());}}}(_0x23d3,0xc0edc));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x7f66a2(0x112);export async function autoPrompt(){const _0x1b27f9=_0x7f66a2,_0x22f61e={'eOQEG':function(_0x13842d){return _0x13842d();}},_0x12f3f2=await _0x22f61e['eOQEG'](readHookInput),_0x5f1e63=_0x12f3f2?.['session_id'];if(!_0x5f1e63)return;if(isSessionEnabled(_0x5f1e63)||hasSessionBeenPrompted(_0x5f1e63))return;markSessionPrompted(_0x5f1e63),console[_0x1b27f9(0x107)](AUTO_PROMPT_TEXT);}function _0x5781(_0x2bfd2c,_0x3ed0f7){_0x2bfd2c=_0x2bfd2c-0x105;const _0x23d3dd=_0x23d3();let _0x578102=_0x23d3dd[_0x2bfd2c];return _0x578102;}function _0x23d3(){const _0x10db13=['88IBMGkL','1208760JDeDrR','1139234PtmEYm','28AHgmVC','\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.','1040545dFOAcD','2675224lPHhEP','log','851868cabfuA','27IJJMbD','7655442XuhSbZ','35QlWfkZ','6OgCiYm','355392uCzDox'];_0x23d3=function(){return _0x10db13;};return _0x23d3();}
@@ -1 +1 @@
1
- (function(_0x27590b,_0x550a1f){const _0xe7bf6a=_0x1a09,_0x5c0736=_0x27590b();while(!![]){try{const _0x529537=-parseInt(_0xe7bf6a(0x1a8))/0x1+-parseInt(_0xe7bf6a(0x19e))/0x2*(-parseInt(_0xe7bf6a(0x1a4))/0x3)+parseInt(_0xe7bf6a(0x1a2))/0x4+-parseInt(_0xe7bf6a(0x1ad))/0x5*(parseInt(_0xe7bf6a(0x1a3))/0x6)+-parseInt(_0xe7bf6a(0x19f))/0x7*(-parseInt(_0xe7bf6a(0x1a5))/0x8)+parseInt(_0xe7bf6a(0x1ab))/0x9*(-parseInt(_0xe7bf6a(0x1a6))/0xa)+parseInt(_0xe7bf6a(0x1a9))/0xb;if(_0x529537===_0x550a1f)break;else _0x5c0736['push'](_0x5c0736['shift']());}catch(_0x3c6b4c){_0x5c0736['push'](_0x5c0736['shift']());}}}(_0xd507,0xb36a4));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x1a09(_0x69dba0,_0x54b85a){_0x69dba0=_0x69dba0-0x19d;const _0xd507f3=_0xd507();let _0x1a0951=_0xd507f3[_0x69dba0];return _0x1a0951;}import{printBlock}from'./output.js';function _0xd507(){const _0x1cd379=['ZgaGs','4058eneGrf','7SasoWw','NQOOu','exit','4283776mcEvBb','1296TEQGnK','1413FgLYZb','2696232lGMgkY','10UzJeal','master','657236KvZvzI','11780934NwNhjF','cFBVh','8133786ceWaRn','fhrTY','26360LEyFaI','\x20and\x20branch\x20\x27'];_0xd507=function(){return _0x1cd379;};return _0xd507();}export async function disable(_0x2cf31c){const _0x3a5942=_0x1a09,_0x1b2d40={'ZgaGs':'Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','FlqDf':function(_0xf0a305,_0x5c37f9){return _0xf0a305(_0x5c37f9);},'NQOOu':function(_0x26f721){return _0x26f721();},'fhrTY':function(_0x8568ef,_0x69208b){return _0x8568ef!==_0x69208b;},'cFBVh':'main','dQscU':function(_0xc0d55f,_0x20bf27){return _0xc0d55f(_0x20bf27);}},_0xcb2b6a=_0x2cf31c||process['env']['CLAUDE_SESSION_ID']||'';!_0xcb2b6a&&(console['error']('Error:\x20No\x20session\x20ID\x20available.'),console['error'](_0x1b2d40[_0x3a5942(0x19d)]),process[_0x3a5942(0x1a1)](0x1));_0x1b2d40['FlqDf'](disableSession,_0xcb2b6a);const _0x2a027e=_0x1b2d40[_0x3a5942(0x1a0)](getCurrentBranch);_0x2a027e&&_0x1b2d40[_0x3a5942(0x1ac)](_0x2a027e,_0x1b2d40['cFBVh'])&&_0x2a027e!==_0x3a5942(0x1a7)&&_0x1b2d40['dQscU'](disableBranch,_0x2a027e),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x2a027e&&_0x2a027e!==_0x1b2d40[_0x3a5942(0x1aa)]&&_0x2a027e!==_0x3a5942(0x1a7)?_0x3a5942(0x1ae)+_0x2a027e+'\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(_0x15aaad,_0x14f1db){const _0x26affb=_0x388d,_0x56af56=_0x15aaad();while(!![]){try{const _0x315c03=parseInt(_0x26affb(0x140))/0x1*(-parseInt(_0x26affb(0x148))/0x2)+-parseInt(_0x26affb(0x146))/0x3+parseInt(_0x26affb(0x14d))/0x4+-parseInt(_0x26affb(0x13c))/0x5*(-parseInt(_0x26affb(0x145))/0x6)+parseInt(_0x26affb(0x14a))/0x7+-parseInt(_0x26affb(0x149))/0x8+-parseInt(_0x26affb(0x139))/0x9*(-parseInt(_0x26affb(0x13e))/0xa);if(_0x315c03===_0x14f1db)break;else _0x56af56['push'](_0x56af56['shift']());}catch(_0x1a4db4){_0x56af56['push'](_0x56af56['shift']());}}}(_0x19aa,0xaf656));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x19aa(){const _0xbe848f=['master','117NqhiUf','KQItt','CLAUDE_SESSION_ID','5528605gUxeKe','yEJjJ','814010FJdTnQ','\x20and\x20branch\x20\x27','30994HidLvb','main','exit','error','UbVHm','6ttFoBP','2536308YddIjp','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','88qRQsZt','591344ZBNrAw','539420VscdjB','env','AcfFK','3042072pYcefp'];_0x19aa=function(){return _0xbe848f;};return _0x19aa();}function _0x388d(_0x44d5bd,_0x26d4ef){_0x44d5bd=_0x44d5bd-0x139;const _0x19aa12=_0x19aa();let _0x388d91=_0x19aa12[_0x44d5bd];return _0x388d91;}export async function disable(_0x49d55b){const _0x28dcfc=_0x388d,_0x55d289={'WwWNM':'Error:\x20No\x20session\x20ID\x20available.','IhFfC':'Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','yEJjJ':function(_0x26a516){return _0x26a516();},'AcfFK':function(_0x19ff1a,_0x50f9c0){return _0x19ff1a!==_0x50f9c0;},'KQItt':function(_0x1d18f9,_0x5c3878){return _0x1d18f9(_0x5c3878);},'UbVHm':function(_0x3eebd0,_0x24bdc9){return _0x3eebd0!==_0x24bdc9;}},_0x1812a6=_0x49d55b||process[_0x28dcfc(0x14b)][_0x28dcfc(0x13b)]||'';!_0x1812a6&&(console[_0x28dcfc(0x143)](_0x55d289['WwWNM']),console['error'](_0x55d289['IhFfC']),process[_0x28dcfc(0x142)](0x1));disableSession(_0x1812a6);const _0x176b99=_0x55d289[_0x28dcfc(0x13d)](getCurrentBranch);_0x176b99&&_0x176b99!==_0x28dcfc(0x141)&&_0x55d289[_0x28dcfc(0x14c)](_0x176b99,'master')&&_0x55d289[_0x28dcfc(0x13a)](disableBranch,_0x176b99),printBlock(_0x28dcfc(0x147)+(_0x176b99&&_0x176b99!=='main'&&_0x55d289[_0x28dcfc(0x144)](_0x176b99,_0x28dcfc(0x14e))?_0x28dcfc(0x13f)+_0x176b99+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
@@ -1 +1 @@
1
- (function(_0x42cc83,_0x202fd9){const _0x33fe84=_0x4334,_0x633248=_0x42cc83();while(!![]){try{const _0x428f28=-parseInt(_0x33fe84(0x209))/0x1+parseInt(_0x33fe84(0x1fb))/0x2*(parseInt(_0x33fe84(0x1fa))/0x3)+parseInt(_0x33fe84(0x201))/0x4+parseInt(_0x33fe84(0x1f8))/0x5*(-parseInt(_0x33fe84(0x1f5))/0x6)+-parseInt(_0x33fe84(0x1fe))/0x7+parseInt(_0x33fe84(0x1fc))/0x8+parseInt(_0x33fe84(0x1f7))/0x9;if(_0x428f28===_0x202fd9)break;else _0x633248['push'](_0x633248['shift']());}catch(_0x3a8fff){_0x633248['push'](_0x633248['shift']());}}}(_0x492c,0x91ac6));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x4334(_0x4d9616,_0xd56764){_0x4d9616=_0x4d9616-0x1f3;const _0x492c0e=_0x492c();let _0x4334f2=_0x492c0e[_0x4d9616];return _0x4334f2;}function _0x492c(){const _0x2fcffd=['Cngev','7209419YhQiPu','Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','4282892iaIcil','\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`.','JyRKo','Error:\x20No\x20session\x20ID\x20available.','cCPBY','main','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','exit','64579IZyVVL','qXMPy','vwnoL','5181012yByJWc','fbVUF','820575sLsBgb','5gxeFPF','ranger\x20setup','111TDmOhG','41684ijNAfQ','4972992WXJSOc'];_0x492c=function(){return _0x2fcffd;};return _0x492c();}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x166744){const _0x4ebb76=_0x4334,_0x285363={'JyRKo':_0x4ebb76(0x1ff),'cCPBY':function(_0x27dfac,_0x507a4d){return _0x27dfac(_0x507a4d);},'AHaZK':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','vwnoL':function(_0x4d517e){return _0x4d517e();},'qXMPy':function(_0x27f81e){return _0x27f81e();},'tkXrU':function(_0x1f9a2c,_0x38050f){return _0x1f9a2c!==_0x38050f;},'Cngev':_0x4ebb76(0x206),'fbVUF':function(_0x42e750,_0x36114c){return _0x42e750!==_0x36114c;}},_0x18d1e4=_0x166744||process['env']['CLAUDE_SESSION_ID']||'';!_0x18d1e4&&(console['error'](_0x4ebb76(0x204)),console['error'](_0x285363[_0x4ebb76(0x203)]),process[_0x4ebb76(0x208)](0x1));const _0x31efea=_0x285363[_0x4ebb76(0x205)](Boolean,_0x166744),_0x457235=await getToken();if(!_0x457235){const _0x1fdc11=_0x31efea?'ranger\x20setup\x20--opencode':_0x4ebb76(0x1f9),_0x50523a=_0x31efea?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x285363['AHaZK'];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`'+_0x1fdc11+_0x4ebb76(0x200)+_0x50523a);return;}try{await _0x285363[_0x4ebb76(0x1f4)](update);}catch{}enableSession(_0x18d1e4);const _0x12f227=_0x285363[_0x4ebb76(0x1f3)](getCurrentBranch),_0x126d51=_0x12f227&&_0x285363['tkXrU'](_0x12f227,_0x285363[_0x4ebb76(0x1fd)])&&_0x285363[_0x4ebb76(0x1f6)](_0x12f227,'master')?'\x0a\x0a**Branch\x20\x27'+_0x12f227+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x2bc079=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0x126d51+_0x4ebb76(0x207)+_0x2bc079+_0x4ebb76(0x202));}
1
+ function _0x5618(_0x4b795d,_0x37a72f){_0x4b795d=_0x4b795d-0x194;const _0x17706c=_0x1770();let _0x561877=_0x17706c[_0x4b795d];return _0x561877;}(function(_0x1c609c,_0x5ce584){const _0x42375a=_0x5618,_0x43c379=_0x1c609c();while(!![]){try{const _0x3555b3=-parseInt(_0x42375a(0x197))/0x1+parseInt(_0x42375a(0x19a))/0x2+parseInt(_0x42375a(0x1a5))/0x3*(parseInt(_0x42375a(0x1a1))/0x4)+-parseInt(_0x42375a(0x1a2))/0x5+-parseInt(_0x42375a(0x19d))/0x6+-parseInt(_0x42375a(0x1a8))/0x7+parseInt(_0x42375a(0x1a6))/0x8;if(_0x3555b3===_0x5ce584)break;else _0x43c379['push'](_0x43c379['shift']());}catch(_0x4c33fc){_0x43c379['push'](_0x43c379['shift']());}}}(_0x1770,0x8f0de));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x1770(){const _0x425047=['ranger\x20setup','main','3868444RZGsHp','5619200vtkWjy','#\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`','VWINo','3oXEhbx','18690880VZEaBg','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','7348929qEEoey','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','error','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','\x0a\x0a**Branch\x20\x27','rWVKC','771401kykEcO','#\x20RANGER\x20ENABLED','CLAUDE_SESSION_ID','1962536WfIWRb','exit','aQIFX','4522206OCtaCq','JDstj'];_0x1770=function(){return _0x425047;};return _0x1770();}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x408d8e){const _0x570131=_0x5618,_0x74dfdc={'eDLxQ':function(_0x115cf4,_0x1f28cb){return _0x115cf4(_0x1f28cb);},'rWVKC':function(_0x1f7da3){return _0x1f7da3();},'ZmTNh':'ranger\x20setup\x20--opencode','FQtOM':_0x570131(0x19f),'aQIFX':function(_0xb6e8cd){return _0xb6e8cd();},'VWINo':function(_0x59e122,_0x15f026){return _0x59e122!==_0x15f026;},'JDstj':'master','XqdwS':function(_0x13032a,_0x4b5b3f){return _0x13032a(_0x4b5b3f);}},_0x232117=_0x408d8e||process['env'][_0x570131(0x199)]||'';!_0x232117&&(console[_0x570131(0x1aa)]('Error:\x20No\x20session\x20ID\x20available.'),console[_0x570131(0x1aa)]('Provide\x20--session-id\x20or\x20ensure\x20CLAUDE_SESSION_ID\x20is\x20set.'),process[_0x570131(0x19b)](0x1));const _0x48bb06=_0x74dfdc['eDLxQ'](Boolean,_0x408d8e),_0x2eb34a=await _0x74dfdc[_0x570131(0x196)](getToken);if(!_0x2eb34a){const _0x13655=_0x48bb06?_0x74dfdc['ZmTNh']:_0x74dfdc['FQtOM'],_0x482b5f=_0x48bb06?_0x570131(0x1a7):_0x570131(0x194);printBlock(_0x570131(0x1a3)+_0x13655+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x482b5f);return;}try{await _0x74dfdc[_0x570131(0x196)](update);}catch{}enableSession(_0x232117);const _0x3b82f2=_0x74dfdc[_0x570131(0x19c)](getCurrentBranch),_0x54597b=_0x3b82f2&&_0x74dfdc[_0x570131(0x1a4)](_0x3b82f2,_0x570131(0x1a0))&&_0x3b82f2!==_0x74dfdc[_0x570131(0x19e)]?_0x570131(0x195)+_0x3b82f2+_0x570131(0x1a9):'',_0x1b60e4=getRangerSkillContent();_0x74dfdc['XqdwS'](printBlock,_0x570131(0x198)+_0x54597b+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x1b60e4+'\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 _0x45c0(){const _0x1ba095=['28344XBHVFk','11UaTGDO','ekstN','9825GoZnbf','25265FZBSqe','26708748WIEgyJ','17372ajGGTG','1878tIQlEe','174UiYCbk','812fRqIaT','2709ADcBcl','2502650xFFAAJ','10886031AzMyjc'];_0x45c0=function(){return _0x1ba095;};return _0x45c0();}(function(_0x4fba2a,_0x4f5e52){const _0x5d8392=_0x1aa4,_0x245627=_0x4fba2a();while(!![]){try{const _0x5cd236=-parseInt(_0x5d8392(0x1df))/0x1*(parseInt(_0x5d8392(0x1e1))/0x2)+-parseInt(_0x5d8392(0x1dc))/0x3*(parseInt(_0x5d8392(0x1e2))/0x4)+parseInt(_0x5d8392(0x1dd))/0x5*(-parseInt(_0x5d8392(0x1e0))/0x6)+parseInt(_0x5d8392(0x1e3))/0x7*(parseInt(_0x5d8392(0x1d9))/0x8)+parseInt(_0x5d8392(0x1d8))/0x9+-parseInt(_0x5d8392(0x1d7))/0xa+-parseInt(_0x5d8392(0x1da))/0xb*(-parseInt(_0x5d8392(0x1de))/0xc);if(_0x5cd236===_0x4f5e52)break;else _0x245627['push'](_0x245627['shift']());}catch(_0x3cfe24){_0x245627['push'](_0x245627['shift']());}}}(_0x45c0,0xc2eb2));function _0x1aa4(_0x4ac644,_0x4bf922){_0x4ac644=_0x4ac644-0x1d7;const _0x45c07c=_0x45c0();let _0x1aa40d=_0x45c07c[_0x4ac644];return _0x1aa40d;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x3d5f58){const _0x349117=_0x1aa4,_0xf30066={'ekstN':function(_0x3243a1,_0x981ab){return _0x3243a1(_0x981ab);}},_0x576804=await getEnabledSessionId(_0x3d5f58);if(!_0x576804)return;_0xf30066[_0x349117(0x1db)](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
1
+ function _0x2304(){const _0x230c25=['1799870ZWFtdi','2075638GXWMPF','526648JiLeCQ','3Hirzte','29642688QLTwRi','1694440gdUhZx','30101ciaUVp','112ctgWGV','2185542QnbwgV'];_0x2304=function(){return _0x230c25;};return _0x2304();}(function(_0x33caa1,_0x551e7b){const _0x31e625=_0x59f9,_0xe6b868=_0x33caa1();while(!![]){try{const _0x2d4ded=-parseInt(_0x31e625(0xb2))/0x1+-parseInt(_0x31e625(0xb6))/0x2*(parseInt(_0x31e625(0xb8))/0x3)+-parseInt(_0x31e625(0xb1))/0x4+-parseInt(_0x31e625(0xb5))/0x5+parseInt(_0x31e625(0xb4))/0x6+parseInt(_0x31e625(0xb3))/0x7*(-parseInt(_0x31e625(0xb7))/0x8)+parseInt(_0x31e625(0xb0))/0x9;if(_0x2d4ded===_0x551e7b)break;else _0xe6b868['push'](_0xe6b868['shift']());}catch(_0x4a9bfa){_0xe6b868['push'](_0xe6b868['shift']());}}}(_0x2304,0xb7dc1));function _0x59f9(_0x2e0b61,_0x4f1e71){_0x2e0b61=_0x2e0b61-0xb0;const _0x230499=_0x2304();let _0x59f9d3=_0x230499[_0x2e0b61];return _0x59f9d3;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x44e59a){const _0x5213ce=await getEnabledSessionId(_0x44e59a);if(!_0x5213ce)return;printBlock('===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- (function(_0x184400,_0x529633){var _0x54b911=_0x1e45,_0x33bac9=_0x184400();while(!![]){try{var _0x250aaa=-parseInt(_0x54b911(0xdb))/0x1*(parseInt(_0x54b911(0xd6))/0x2)+-parseInt(_0x54b911(0xd3))/0x3+parseInt(_0x54b911(0xd4))/0x4+parseInt(_0x54b911(0xd7))/0x5+parseInt(_0x54b911(0xd8))/0x6*(-parseInt(_0x54b911(0xda))/0x7)+-parseInt(_0x54b911(0xd5))/0x8+parseInt(_0x54b911(0xd9))/0x9;if(_0x250aaa===_0x529633)break;else _0x33bac9['push'](_0x33bac9['shift']());}catch(_0x33426d){_0x33bac9['push'](_0x33bac9['shift']());}}}(_0x46c2,0x59c5b));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';function _0x46c2(){var _0x3f676d=['1920840DtELbk','5807808cCbFnM','226LYlFfk','966575bGOrNc','6ByPZvs','10485864xdwNQp','3737489xrkhjX','1829VrNkvn','13002ZCeDXB'];_0x46c2=function(){return _0x3f676d;};return _0x46c2();}export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';function _0x1e45(_0x2ac247,_0x3d4466){_0x2ac247=_0x2ac247-0xd3;var _0x46c2a4=_0x46c2();var _0x1e4525=_0x46c2a4[_0x2ac247];return _0x1e4525;}export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0x14df15,_0x508942){var _0x1d116e=_0x1df9,_0x21403c=_0x14df15();while(!![]){try{var _0x6edfe7=-parseInt(_0x1d116e(0x11e))/0x1*(-parseInt(_0x1d116e(0x116))/0x2)+-parseInt(_0x1d116e(0x11a))/0x3+parseInt(_0x1d116e(0x11b))/0x4*(-parseInt(_0x1d116e(0x11d))/0x5)+parseInt(_0x1d116e(0x11c))/0x6*(parseInt(_0x1d116e(0x117))/0x7)+-parseInt(_0x1d116e(0x119))/0x8*(-parseInt(_0x1d116e(0x11f))/0x9)+parseInt(_0x1d116e(0x115))/0xa+-parseInt(_0x1d116e(0x118))/0xb;if(_0x6edfe7===_0x508942)break;else _0x21403c['push'](_0x21403c['shift']());}catch(_0x3b0e49){_0x21403c['push'](_0x21403c['shift']());}}}(_0x223d,0xdc23c));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x223d(){var _0x297250=['4DbgeYI','360642MlreAY','1223385mfiFrB','3VfAVkN','45AYpKvQ','10755920UcuGxb','1055386nbQhae','35IYGZvK','11106634mmHvSl','669160THRSTG','3664104PBIXru'];_0x223d=function(){return _0x297250;};return _0x223d();}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';function _0x1df9(_0x76a067,_0x596fcf){_0x76a067=_0x76a067-0x115;var _0x223d3b=_0x223d();var _0x1df914=_0x223d3b[_0x76a067];return _0x1df914;}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(_0x4b3c59,_0x53f8ab){const _0x248ceb=_0x1d4b,_0x420525=_0x4b3c59();while(!![]){try{const _0x5c9ed6=-parseInt(_0x248ceb(0x1d5))/0x1*(parseInt(_0x248ceb(0x1d3))/0x2)+parseInt(_0x248ceb(0x1d4))/0x3*(parseInt(_0x248ceb(0x1d0))/0x4)+parseInt(_0x248ceb(0x1cb))/0x5+parseInt(_0x248ceb(0x1cf))/0x6*(-parseInt(_0x248ceb(0x1ce))/0x7)+parseInt(_0x248ceb(0x1d2))/0x8*(parseInt(_0x248ceb(0x1d7))/0x9)+-parseInt(_0x248ceb(0x1cd))/0xa+-parseInt(_0x248ceb(0x1d1))/0xb*(parseInt(_0x248ceb(0x1cc))/0xc);if(_0x5c9ed6===_0x53f8ab)break;else _0x420525['push'](_0x420525['shift']());}catch(_0xdabb6e){_0x420525['push'](_0x420525['shift']());}}}(_0x4ac0,0xabca0));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x4d1118){console['log'](_0x4d1118);}function _0x1d4b(_0x25076c,_0x177536){_0x25076c=_0x25076c-0x1cb;const _0x4ac010=_0x4ac0();let _0x1d4b61=_0x4ac010[_0x25076c];return _0x1d4b61;}export async function readHookInput(){let _0xed1dfd='';for await(const _0x41e65b of process['stdin']){_0xed1dfd+=_0x41e65b;}try{return JSON['parse'](_0xed1dfd);}catch{return null;}}function _0x4ac0(){const _0x4652c9=['10939437QQNhfc','6104525UYiSlC','297444VCYhTT','6764950tVnlRw','77BmKlvu','93666hZvrMu','40PGSHKQ','858bTPVOc','8iSKshj','2gKJHzl','370509kWRhmE','186178TssNiD','session_id'];_0x4ac0=function(){return _0x4652c9;};return _0x4ac0();}export async function getEnabledSessionId(_0x5a6166){const _0x50b6db=_0x1d4b,_0x578829={'kftme':function(_0x10399a,_0x36567f){return _0x10399a(_0x36567f);},'oDXLj':function(_0x2e1fa8){return _0x2e1fa8();}};if(_0x5a6166)return _0x578829['kftme'](isSessionEnabled,_0x5a6166)?_0x5a6166:null;const _0x47abca=await _0x578829['oDXLj'](readHookInput),_0x175d4b=_0x47abca?.[_0x50b6db(0x1d6)];if(!_0x175d4b||!isSessionEnabled(_0x175d4b))return null;return _0x175d4b;}export async function getEnabledHookContext(_0x368163){if(_0x368163){if(!isSessionEnabled(_0x368163))return null;return{'sessionId':_0x368163,'input':{'session_id':_0x368163}};}const _0x441b06=await readHookInput(),_0x8d6e5a=_0x441b06?.['session_id'];if(!_0x8d6e5a||!isSessionEnabled(_0x8d6e5a))return null;return{'sessionId':_0x8d6e5a,'input':_0x441b06};}
1
+ (function(_0x19bbf5,_0x2b591f){const _0x213c0a=_0x4e8d,_0x2b90a6=_0x19bbf5();while(!![]){try{const _0x530a00=parseInt(_0x213c0a(0xbc))/0x1+parseInt(_0x213c0a(0xb7))/0x2*(-parseInt(_0x213c0a(0xbe))/0x3)+parseInt(_0x213c0a(0xba))/0x4*(-parseInt(_0x213c0a(0xb8))/0x5)+-parseInt(_0x213c0a(0xb6))/0x6+-parseInt(_0x213c0a(0xc1))/0x7*(-parseInt(_0x213c0a(0xbb))/0x8)+parseInt(_0x213c0a(0xbf))/0x9*(-parseInt(_0x213c0a(0xc0))/0xa)+parseInt(_0x213c0a(0xb4))/0xb;if(_0x530a00===_0x2b591f)break;else _0x2b90a6['push'](_0x2b90a6['shift']());}catch(_0x35afe8){_0x2b90a6['push'](_0x2b90a6['shift']());}}}(_0xd829,0x4ca70));function _0x4e8d(_0x1eebc8,_0x4cf028){_0x1eebc8=_0x1eebc8-0xb3;const _0xd8298b=_0xd829();let _0x4e8dad=_0xd8298b[_0x1eebc8];return _0x4e8dad;}import{isSessionEnabled}from'../utils/sessionCache.js';function _0xd829(){const _0x4fdb3c=['CiJiU','parse','session_id','cUmeb','6207201OTbzOn','log','2330130wTVTex','374IIElEA','1640OYpTwn','YyVsG','6332gxcmFc','35504uNUtVk','124798HVWVEq','aocPR','486jkBTZT','2727SGmUHj','1640lDzXLB','966iGVDnx'];_0xd829=function(){return _0x4fdb3c;};return _0xd829();}export function printBlock(_0x40dbf1){const _0x3c7d44=_0x4e8d;console[_0x3c7d44(0xb5)](_0x40dbf1);}export async function readHookInput(){const _0x44626d=_0x4e8d;let _0x4d3c8a='';for await(const _0x4e38bd of process['stdin']){_0x4d3c8a+=_0x4e38bd;}try{return JSON[_0x44626d(0xc3)](_0x4d3c8a);}catch{return null;}}export async function getEnabledSessionId(_0x52b839){const _0x5eb180=_0x4e8d,_0x4dcf24={'CiJiU':function(_0x26cb3d,_0x19671c){return _0x26cb3d(_0x19671c);},'cUmeb':function(_0x18f1b8){return _0x18f1b8();}};if(_0x52b839)return _0x4dcf24[_0x5eb180(0xc2)](isSessionEnabled,_0x52b839)?_0x52b839:null;const _0x46c21e=await _0x4dcf24[_0x5eb180(0xb3)](readHookInput),_0x47838b=_0x46c21e?.[_0x5eb180(0xc4)];if(!_0x47838b||!_0x4dcf24['CiJiU'](isSessionEnabled,_0x47838b))return null;return _0x47838b;}export async function getEnabledHookContext(_0x381b0a){const _0x2f5d7c=_0x4e8d,_0x58c801={'YyVsG':function(_0x64c8f,_0x4001ac){return _0x64c8f(_0x4001ac);},'aocPR':function(_0x238de8){return _0x238de8();},'FmWTE':function(_0x29caab,_0x3630be){return _0x29caab(_0x3630be);}};if(_0x381b0a){if(!_0x58c801[_0x2f5d7c(0xb9)](isSessionEnabled,_0x381b0a))return null;return{'sessionId':_0x381b0a,'input':{'session_id':_0x381b0a}};}const _0x2a3c54=await _0x58c801[_0x2f5d7c(0xbd)](readHookInput),_0x5b622b=_0x2a3c54?.['session_id'];if(!_0x5b622b||!_0x58c801['FmWTE'](isSessionEnabled,_0x5b622b))return null;return{'sessionId':_0x5b622b,'input':_0x2a3c54};}
@@ -1 +1 @@
1
- function _0x44c8(){const _0x33e225=['58617XklcKw','2129883kfZopC','722936MnemJS','1382hsrfRC','477670EEIqOg','781cEIYjV','200RELuVX','sessionId','1250575zbfaId','3sNZMYf','input','7130346YiziXF','971THrcoJ'];_0x44c8=function(){return _0x33e225;};return _0x44c8();}function _0x1b58(_0x4e1b0d,_0x46b3ca){_0x4e1b0d=_0x4e1b0d-0x102;const _0x44c8a0=_0x44c8();let _0x1b582f=_0x44c8a0[_0x4e1b0d];return _0x1b582f;}(function(_0xad4208,_0x2f4700){const _0x76c798=_0x1b58,_0x4119ac=_0xad4208();while(!![]){try{const _0x39fdad=parseInt(_0x76c798(0x10e))/0x1*(-parseInt(_0x76c798(0x105))/0x2)+-parseInt(_0x76c798(0x10b))/0x3*(parseInt(_0x76c798(0x104))/0x4)+-parseInt(_0x76c798(0x10a))/0x5+-parseInt(_0x76c798(0x10d))/0x6+-parseInt(_0x76c798(0x103))/0x7+-parseInt(_0x76c798(0x108))/0x8*(parseInt(_0x76c798(0x102))/0x9)+-parseInt(_0x76c798(0x106))/0xa*(-parseInt(_0x76c798(0x107))/0xb);if(_0x39fdad===_0x2f4700)break;else _0x4119ac['push'](_0x4119ac['shift']());}catch(_0xf483b2){_0x4119ac['push'](_0x4119ac['shift']());}}}(_0x44c8,0x9ad32));import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x2369aa){const _0x23dc03=_0x1b58,_0x4351a4=await getEnabledHookContext(_0x2369aa);if(!_0x4351a4)return;if(_0x4351a4[_0x23dc03(0x10c)]['permission_mode']!=='plan')return;if(!shouldShowPlanReminder(_0x4351a4[_0x23dc03(0x109)]))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 _0x5d7d(){const _0x12cdc8=['15688590QPAEvD','plan','1911042fKFciv','262245fLxwAD','92152EHcicZ','4leGCRP','1525419BJGwbi','sessionId','permission_mode','144yWejGe','775963QSIiHo','jOveR','18nHQgjl','input','3016161lPVmeq','===\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==='];_0x5d7d=function(){return _0x12cdc8;};return _0x5d7d();}(function(_0x3806b3,_0x5da07a){const _0x1e46dd=_0x2287,_0x5a92be=_0x3806b3();while(!![]){try{const _0x214374=-parseInt(_0x1e46dd(0x188))/0x1+-parseInt(_0x1e46dd(0x180))/0x2+parseInt(_0x1e46dd(0x18c))/0x3*(parseInt(_0x1e46dd(0x183))/0x4)+-parseInt(_0x1e46dd(0x181))/0x5*(-parseInt(_0x1e46dd(0x18a))/0x6)+-parseInt(_0x1e46dd(0x184))/0x7+-parseInt(_0x1e46dd(0x182))/0x8*(parseInt(_0x1e46dd(0x187))/0x9)+parseInt(_0x1e46dd(0x18e))/0xa;if(_0x214374===_0x5da07a)break;else _0x5a92be['push'](_0x5a92be['shift']());}catch(_0x5ee6c9){_0x5a92be['push'](_0x5a92be['shift']());}}}(_0x5d7d,0x91f80));import{printBlock,getEnabledHookContext}from'./output.js';function _0x2287(_0x3fce0b,_0x3d0b3a){_0x3fce0b=_0x3fce0b-0x180;const _0x5d7d51=_0x5d7d();let _0x22873e=_0x5d7d51[_0x3fce0b];return _0x22873e;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x49f754){const _0x5e28b9=_0x2287,_0x51b264={'EZScU':function(_0xbaec9a,_0xeed096){return _0xbaec9a!==_0xeed096;},'guTuT':_0x5e28b9(0x18f),'jOveR':function(_0x47c4f9,_0x74d320){return _0x47c4f9(_0x74d320);}},_0x53b1dd=await getEnabledHookContext(_0x49f754);if(!_0x53b1dd)return;if(_0x51b264['EZScU'](_0x53b1dd[_0x5e28b9(0x18b)][_0x5e28b9(0x186)],_0x51b264['guTuT']))return;if(!_0x51b264[_0x5e28b9(0x189)](shouldShowPlanReminder,_0x53b1dd[_0x5e28b9(0x185)]))return;printBlock(_0x5e28b9(0x18d));}
@@ -1 +1 @@
1
- function _0xc67c(){const _0x24fb29=['1477716fuwwqK','1951056QqVKRw','8LLuwlB','3282jDuPqL','===\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===','445kBKVzT','1493064pujHib','751594BdZDtv','287837pTIVjn','3424981idaQEC'];_0xc67c=function(){return _0x24fb29;};return _0xc67c();}(function(_0x49a4fb,_0x3921b0){const _0x472ba1=_0x2e01,_0x3db526=_0x49a4fb();while(!![]){try{const _0x211bc0=-parseInt(_0x472ba1(0x17f))/0x1+parseInt(_0x472ba1(0x17e))/0x2+parseInt(_0x472ba1(0x181))/0x3+parseInt(_0x472ba1(0x17d))/0x4+parseInt(_0x472ba1(0x17c))/0x5*(parseInt(_0x472ba1(0x17a))/0x6)+parseInt(_0x472ba1(0x180))/0x7*(-parseInt(_0x472ba1(0x179))/0x8)+-parseInt(_0x472ba1(0x178))/0x9;if(_0x211bc0===_0x3921b0)break;else _0x3db526['push'](_0x3db526['shift']());}catch(_0x1901ce){_0x3db526['push'](_0x3db526['shift']());}}}(_0xc67c,0x485de));function _0x2e01(_0x4bc75e,_0x5d4246){_0x4bc75e=_0x4bc75e-0x178;const _0xc67c94=_0xc67c();let _0x2e01ed=_0xc67c94[_0x4bc75e];return _0x2e01ed;}import{printBlock,getEnabledSessionId}from'./output.js';export async function planStart(_0xccc246){const _0x10678d=_0x2e01,_0x12880d=await getEnabledSessionId(_0xccc246);if(!_0x12880d)return;printBlock(_0x10678d(0x17b));}
1
+ (function(_0x1c12e9,_0x2ab230){const _0x4ba1b4=_0x1e57,_0x54dcca=_0x1c12e9();while(!![]){try{const _0x2cd651=parseInt(_0x4ba1b4(0xa0))/0x1+-parseInt(_0x4ba1b4(0x9a))/0x2+-parseInt(_0x4ba1b4(0x99))/0x3+-parseInt(_0x4ba1b4(0xa1))/0x4+parseInt(_0x4ba1b4(0x9f))/0x5+parseInt(_0x4ba1b4(0x9d))/0x6*(parseInt(_0x4ba1b4(0x9e))/0x7)+parseInt(_0x4ba1b4(0x98))/0x8;if(_0x2cd651===_0x2ab230)break;else _0x54dcca['push'](_0x54dcca['shift']());}catch(_0x44300f){_0x54dcca['push'](_0x54dcca['shift']());}}}(_0x5a81,0xac7a2));function _0x1e57(_0x55bd6f,_0x54c353){_0x55bd6f=_0x55bd6f-0x98;const _0x5a81d0=_0x5a81();let _0x1e5778=_0x5a81d0[_0x55bd6f];return _0x1e5778;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x5a81(){const _0x5751cf=['20706488tnCHHH','4170681jJgMeI','1567252PavDDK','wpTAW','===\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===','19806TXdLJq','7wrfKMc','926475SmRSat','345317lgkBbJ','967620jYFHIi'];_0x5a81=function(){return _0x5751cf;};return _0x5a81();}export async function planStart(_0x45d031){const _0x163a31=_0x1e57,_0x3e9664={'wpTAW':function(_0x301a90,_0x1fbcaa){return _0x301a90(_0x1fbcaa);}},_0x222dce=await _0x3e9664[_0x163a31(0x9b)](getEnabledSessionId,_0x45d031);if(!_0x222dce)return;printBlock(_0x163a31(0x9c));}
@@ -1 +1 @@
1
- (function(_0x3f6b6b,_0x45853e){const _0x41b756=_0x4a7f,_0x4c94b3=_0x3f6b6b();while(!![]){try{const _0xb68abe=-parseInt(_0x41b756(0x9e))/0x1+parseInt(_0x41b756(0xa2))/0x2*(-parseInt(_0x41b756(0x9d))/0x3)+parseInt(_0x41b756(0x9b))/0x4*(parseInt(_0x41b756(0xa0))/0x5)+parseInt(_0x41b756(0x99))/0x6*(parseInt(_0x41b756(0x9f))/0x7)+parseInt(_0x41b756(0x97))/0x8+parseInt(_0x41b756(0x98))/0x9+parseInt(_0x41b756(0x9c))/0xa;if(_0xb68abe===_0x45853e)break;else _0x4c94b3['push'](_0x4c94b3['shift']());}catch(_0x2b99a5){_0x4c94b3['push'](_0x4c94b3['shift']());}}}(_0x37c1,0x98be8));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x4a7f(_0x4b0129,_0x52e123){_0x4b0129=_0x4b0129-0x97;const _0x37c1f4=_0x37c1();let _0x4a7f0a=_0x37c1f4[_0x4b0129];return _0x4a7f0a;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';function _0x37c1(){const _0x308e33=['4960392EijBGi','3741552sVZhwl','306210VPlWHr','XuXHb','28qRiPIR','4835490VBUsrn','34821ioICsp','277824GBLAIH','49szkgyt','17925WJClPQ','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.','172xOItmM'];_0x37c1=function(){return _0x308e33;};return _0x37c1();}export async function postEdit(_0x2544f5){const _0x968bda=_0x4a7f,_0x2ba319={'XuXHb':function(_0x44c5d6){return _0x44c5d6();},'falOL':function(_0x5ada8b,_0x1ac1f8){return _0x5ada8b(_0x1ac1f8);},'usrsF':'PostToolUse'},_0x29172e=await getEnabledSessionId(_0x2544f5);if(!_0x29172e)return;updateBranchTracking(_0x29172e);const _0x15cb0d=await _0x2ba319[_0x968bda(0x9a)](getToken);if(!_0x15cb0d)return;const _0x29077f=_0x2ba319['falOL'](getSessionEntry,_0x29172e);if(_0x29077f){const _0x2ac86e={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':'RANGER:\x20If\x20this\x20change\x20expands\x20the\x20scope\x20of\x20the\x20active\x20feature\x20review,\x20you\x20may\x20need\x20to\x20add\x20a\x20scenario.\x20See\x20Workflow\x201\x20in\x20/ranger.\x20If\x20you\x20decide\x20to\x20add\x20a\x20scenario,\x20you\x20MUST\x20read\x20Workflow\x201\x20IN\x20DETAIL\x20first.\x20Remember:\x20when\x20you\x20finish\x20your\x20work,\x20your\x20final\x20message\x20to\x20the\x20user\x20must\x20direct\x20them\x20to\x20the\x20Ranger\x20feature\x20review\x20dashboard\x20to\x20review\x20(e.g.\x20\x22Go\x20to\x20the\x20Ranger\x20feature\x20dashboard\x20to\x20review:\x20https://dashboard.ranger.net/features/{feature_id}\x22).'}};console['log'](JSON['stringify'](_0x2ac86e));return;}const _0x584c67={'hookSpecificOutput':{'hookEventName':_0x2ba319['usrsF'],'additionalContext':_0x968bda(0xa1)}};console['log'](JSON['stringify'](_0x584c67));}
1
+ function _0xfab2(){const _0x36d347=['log','1805410HXDxbW','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.','4304HCJlUB','ljLTE','90363RkDFrY','4CzKqUm','4501981UUQVIo','18uQTOfG','696848oGkZRi','102UVVOay','9Kircef','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).','359610FseyEa','73980CFAtzn','stringify'];_0xfab2=function(){return _0x36d347;};return _0xfab2();}(function(_0x2819ec,_0x2eefc6){const _0x40ca6a=_0x3514,_0x57d895=_0x2819ec();while(!![]){try{const _0x36272d=-parseInt(_0x40ca6a(0x79))/0x1+parseInt(_0x40ca6a(0x7e))/0x2*(-parseInt(_0x40ca6a(0x73))/0x3)+-parseInt(_0x40ca6a(0x71))/0x4*(parseInt(_0x40ca6a(0x78))/0x5)+-parseInt(_0x40ca6a(0x75))/0x6*(parseInt(_0x40ca6a(0x70))/0x7)+-parseInt(_0x40ca6a(0x74))/0x8+parseInt(_0x40ca6a(0x76))/0x9*(parseInt(_0x40ca6a(0x7c))/0xa)+parseInt(_0x40ca6a(0x72))/0xb;if(_0x36272d===_0x2eefc6)break;else _0x57d895['push'](_0x57d895['shift']());}catch(_0x5664b6){_0x57d895['push'](_0x57d895['shift']());}}}(_0xfab2,0x1e617));import{getSessionEntry,updateBranchTracking}from'../utils/sessionCache.js';function _0x3514(_0x2687e7,_0x4e25f7){_0x2687e7=_0x2687e7-0x6f;const _0xfab21c=_0xfab2();let _0x35140b=_0xfab21c[_0x2687e7];return _0x35140b;}import{getToken}from'../utils/keychain.js';import{getEnabledSessionId}from'./output.js';export async function postEdit(_0x455300){const _0x4e3a0c=_0x3514,_0x7af7f9={'ljLTE':function(_0x148d6c,_0x1ea805){return _0x148d6c(_0x1ea805);}},_0x47f32a=await getEnabledSessionId(_0x455300);if(!_0x47f32a)return;updateBranchTracking(_0x47f32a);const _0x5471e1=await getToken();if(!_0x5471e1)return;const _0x286e32=_0x7af7f9[_0x4e3a0c(0x6f)](getSessionEntry,_0x47f32a);if(_0x286e32){const _0x528a7f={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x4e3a0c(0x77)}};console[_0x4e3a0c(0x7b)](JSON[_0x4e3a0c(0x7a)](_0x528a7f));return;}const _0x215a7b={'hookSpecificOutput':{'hookEventName':'PostToolUse','additionalContext':_0x4e3a0c(0x7d)}};console['log'](JSON[_0x4e3a0c(0x7a)](_0x215a7b));}
@@ -1 +1 @@
1
- function _0x1057(_0x132ee1,_0x45aa03){_0x132ee1=_0x132ee1-0x177;const _0x534a7e=_0x534a();let _0x105747=_0x534a7e[_0x132ee1];return _0x105747;}(function(_0x26fbcd,_0x50d0d3){const _0x5c5554=_0x1057,_0x105284=_0x26fbcd();while(!![]){try{const _0x96e835=parseInt(_0x5c5554(0x17a))/0x1+-parseInt(_0x5c5554(0x17b))/0x2*(parseInt(_0x5c5554(0x180))/0x3)+-parseInt(_0x5c5554(0x177))/0x4*(-parseInt(_0x5c5554(0x17d))/0x5)+parseInt(_0x5c5554(0x181))/0x6+-parseInt(_0x5c5554(0x17c))/0x7*(-parseInt(_0x5c5554(0x17f))/0x8)+-parseInt(_0x5c5554(0x179))/0x9*(parseInt(_0x5c5554(0x17e))/0xa)+-parseInt(_0x5c5554(0x178))/0xb*(parseInt(_0x5c5554(0x182))/0xc);if(_0x96e835===_0x50d0d3)break;else _0x105284['push'](_0x105284['shift']());}catch(_0x10182d){_0x105284['push'](_0x105284['shift']());}}}(_0x534a,0xd6d4e));import{getToken}from'../utils/keychain.js';function _0x534a(){const _0x276eda=['283497kQSdGV','7820964PwNrQZ','12AfBNrl','===\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`.','4396TBEvuu','5981305mmxAPQ','99ZQoEec','576281SaeSEz','22kECRUc','7LRIZgs','1245qdGXMQ','518650GeJzRM','7042264VRwLjX'];_0x534a=function(){return _0x276eda;};return _0x534a();}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x2a8a68){const _0x3703e1=_0x1057,_0x2f4f53=await getEnabledSessionId(_0x2a8a68);if(!_0x2f4f53)return;try{const _0x4ad725=await getToken();if(!_0x4ad725)return;printBlock(_0x3703e1(0x183));}catch{}}
1
+ (function(_0x2ec1a7,_0x1ec919){const _0x4d0806=_0x190c,_0x4bcf19=_0x2ec1a7();while(!![]){try{const _0x710039=parseInt(_0x4d0806(0x7c))/0x1+parseInt(_0x4d0806(0x7e))/0x2+-parseInt(_0x4d0806(0x84))/0x3+parseInt(_0x4d0806(0x82))/0x4*(-parseInt(_0x4d0806(0x80))/0x5)+parseInt(_0x4d0806(0x81))/0x6*(parseInt(_0x4d0806(0x85))/0x7)+-parseInt(_0x4d0806(0x7b))/0x8*(-parseInt(_0x4d0806(0x7d))/0x9)+-parseInt(_0x4d0806(0x7f))/0xa;if(_0x710039===_0x1ec919)break;else _0x4bcf19['push'](_0x4bcf19['shift']());}catch(_0x5396de){_0x4bcf19['push'](_0x4bcf19['shift']());}}}(_0x1c6a,0x721d5));import{getToken}from'../utils/keychain.js';function _0x1c6a(){const _0xc1a2e6=['===\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`.','2145060LOAROH','3465217HwhHMO','EdOpm','16QfmpdG','842804WEBbpy','3534093KwdmKG','1617794YceiWc','11493390PDAJHM','110kekejH','6iZWEos','109148tzblyM'];_0x1c6a=function(){return _0xc1a2e6;};return _0x1c6a();}function _0x190c(_0x472809,_0x20c900){_0x472809=_0x472809-0x7a;const _0x1c6a6b=_0x1c6a();let _0x190ce5=_0x1c6a6b[_0x472809];return _0x190ce5;}import{printBlock,getEnabledSessionId}from'./output.js';export async function preCompact(_0x15d592){const _0x2d5e96=_0x190c,_0xf98143={'lNvyO':function(_0x5704c3){return _0x5704c3();},'EdOpm':function(_0x1e8fca,_0x3bf18d){return _0x1e8fca(_0x3bf18d);}},_0x1558d4=await getEnabledSessionId(_0x15d592);if(!_0x1558d4)return;try{const _0x2f7449=await _0xf98143['lNvyO'](getToken);if(!_0x2f7449)return;_0xf98143[_0x2d5e96(0x7a)](printBlock,_0x2d5e96(0x83));}catch{}}
@@ -1 +1 @@
1
- (function(_0x791de7,_0x270416){const _0x31cf82=_0x35a7,_0x52fa38=_0x791de7();while(!![]){try{const _0x48f736=-parseInt(_0x31cf82(0x1c6))/0x1*(-parseInt(_0x31cf82(0x1ce))/0x2)+-parseInt(_0x31cf82(0x1cc))/0x3+-parseInt(_0x31cf82(0x1c7))/0x4+-parseInt(_0x31cf82(0x1c3))/0x5+parseInt(_0x31cf82(0x1c4))/0x6*(-parseInt(_0x31cf82(0x1cb))/0x7)+-parseInt(_0x31cf82(0x1cd))/0x8+-parseInt(_0x31cf82(0x1c1))/0x9*(-parseInt(_0x31cf82(0x1c5))/0xa);if(_0x48f736===_0x270416)break;else _0x52fa38['push'](_0x52fa38['shift']());}catch(_0x32f96e){_0x52fa38['push'](_0x52fa38['shift']());}}}(_0x1587,0xc6c8f));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x35a7(_0x37fa83,_0x183fec){_0x37fa83=_0x37fa83-0x1c1;const _0x1587ff=_0x1587();let _0x35a78a=_0x1587ff[_0x37fa83];return _0x35a78a;}function _0x1587(){const _0x47a335=['9BhGHQz','firXY','1025645YShdOR','6GoenKi','55775220JucgGg','985143IlAmQa','3874660TXAPgD','session_id','clear','zIewP','11019113Kaydrt','4847259NBOmtb','11077888QpnFBc','2HUmGqj'];_0x1587=function(){return _0x47a335;};return _0x1587();}import{readHookInput}from'./output.js';export async function sessionEnd(_0x5043e7){const _0x390963=_0x35a7,_0x112f3a={'firXY':function(_0x1d6508){return _0x1d6508();},'avZkB':function(_0x4b9694,_0x57d06e){return _0x4b9694===_0x57d06e;},'zIewP':function(_0x2be805,_0x445065){return _0x2be805(_0x445065);}};let _0x42b1c2=_0x5043e7,_0x245447;if(!_0x5043e7){const _0x2b1613=await _0x112f3a[_0x390963(0x1c2)](readHookInput);_0x42b1c2=_0x2b1613?.[_0x390963(0x1c8)],_0x245447=_0x2b1613?.['reason'];}if(!_0x42b1c2)return;_0x112f3a['avZkB'](_0x245447,_0x390963(0x1c9))&&_0x112f3a[_0x390963(0x1ca)](recordEnabledSessionCleared,_0x42b1c2);}
1
+ (function(_0x5b4d8f,_0x52a747){const _0x3159c3=_0x1b8e,_0x424052=_0x5b4d8f();while(!![]){try{const _0xaac2d7=-parseInt(_0x3159c3(0x1e7))/0x1+-parseInt(_0x3159c3(0x1e6))/0x2+-parseInt(_0x3159c3(0x1ec))/0x3+-parseInt(_0x3159c3(0x1eb))/0x4*(-parseInt(_0x3159c3(0x1ea))/0x5)+-parseInt(_0x3159c3(0x1e8))/0x6+parseInt(_0x3159c3(0x1ef))/0x7+parseInt(_0x3159c3(0x1e9))/0x8;if(_0xaac2d7===_0x52a747)break;else _0x424052['push'](_0x424052['shift']());}catch(_0x14ee15){_0x424052['push'](_0x424052['shift']());}}}(_0x5f45,0x65653));import{recordEnabledSessionCleared}from'../utils/sessionCache.js';function _0x5f45(){const _0x142fae=['5100312yKPZRP','session_id','1641202zVHUkQ','743468yDERBa','2355114wkPIYc','11161584bPkooN','1737265ZVHHWc','8RXiuRF','1340451jiDeYN','YVumu','sYPpX'];_0x5f45=function(){return _0x142fae;};return _0x5f45();}function _0x1b8e(_0x3a9098,_0x10d974){_0x3a9098=_0x3a9098-0x1e6;const _0x5f45ef=_0x5f45();let _0x1b8ecc=_0x5f45ef[_0x3a9098];return _0x1b8ecc;}import{readHookInput}from'./output.js';export async function sessionEnd(_0x344cfa){const _0x2c7a1b=_0x1b8e,_0xe4ac66={'YVumu':function(_0x195d4a){return _0x195d4a();},'sYPpX':function(_0x4dbb26,_0x5344af){return _0x4dbb26===_0x5344af;}};let _0x1bfe06=_0x344cfa,_0x59b783;if(!_0x344cfa){const _0x5cf099=await _0xe4ac66[_0x2c7a1b(0x1ed)](readHookInput);_0x1bfe06=_0x5cf099?.[_0x2c7a1b(0x1f0)],_0x59b783=_0x5cf099?.['reason'];}if(!_0x1bfe06)return;_0xe4ac66[_0x2c7a1b(0x1ee)](_0x59b783,'clear')&&recordEnabledSessionCleared(_0x1bfe06);}
@@ -1 +1 @@
1
- (function(_0x2b0868,_0x4b222a){const _0x5c3ad5=_0x5d7c,_0x459583=_0x2b0868();while(!![]){try{const _0x530425=parseInt(_0x5c3ad5(0xfb))/0x1*(-parseInt(_0x5c3ad5(0xfc))/0x2)+parseInt(_0x5c3ad5(0xf7))/0x3+-parseInt(_0x5c3ad5(0xfe))/0x4+parseInt(_0x5c3ad5(0xfa))/0x5+-parseInt(_0x5c3ad5(0xf4))/0x6*(parseInt(_0x5c3ad5(0xf3))/0x7)+parseInt(_0x5c3ad5(0xf8))/0x8+-parseInt(_0x5c3ad5(0x100))/0x9*(parseInt(_0x5c3ad5(0xf9))/0xa);if(_0x530425===_0x4b222a)break;else _0x459583['push'](_0x459583['shift']());}catch(_0x1ec155){_0x459583['push'](_0x459583['shift']());}}}(_0x38db,0x7eefc));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='=================================================================\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=================================================================';function _0x38db(){const _0x379bf3=['7127184BhuhJj','1219820iFEIPK','4765740BlCMLu','81COwWVP','634FpKYSi','AmGTZ','4018304pMKAPA','parse','72jjNIVV','master','trackCommandStart','log','env','833gjrzIK','1572PqiEyw','stringify','kKmxf','2139519uQBvGu'];_0x38db=function(){return _0x379bf3;};return _0x38db();}function _0x5d7c(_0x47040d,_0x1b0300){_0x47040d=_0x47040d-0xf2;const _0x38db39=_0x38db();let _0x5d7c36=_0x38db39[_0x47040d];return _0x5d7c36;}export async function sessionStart(_0x44d10e){const _0x14ac80=_0x5d7c,_0x5b437a={'YrypQ':'session_id','KEDoT':'source','kKmxf':function(_0x2a4371,_0x75e8e7){return _0x2a4371(_0x75e8e7);},'MdrGA':'hook:session-start','AvTgO':'success','ucZfu':function(_0x53e862){return _0x53e862();},'AmGTZ':function(_0x2932ad,_0x3f7b2b){return _0x2932ad!==_0x3f7b2b;},'hZlnW':'main','sxclB':_0x14ac80(0x101),'EMZxK':'SessionStart'};let _0x47f770=_0x44d10e||'',_0x11a1c9;if(!_0x44d10e){let _0x2d9a80='';for await(const _0x436a32 of process['stdin']){_0x2d9a80+=_0x436a32;}try{const _0x462211=JSON[_0x14ac80(0xff)](_0x2d9a80);_0x47f770=_0x462211[_0x5b437a['YrypQ']]||'',_0x11a1c9=_0x462211[_0x5b437a['KEDoT']];}catch{}const _0xd4cc20=process[_0x14ac80(0xf2)]['CLAUDE_ENV_FILE'];if(_0xd4cc20&&_0x47f770)try{await appendFile(_0xd4cc20,'export\x20CLAUDE_SESSION_ID=\x22'+_0x47f770+'\x22\x0a');}catch{}}if(_0x47f770){shouldAutoEnableAfterClear(_0x11a1c9)&&autoEnableAfterClear(_0x47f770);_0x5b437a[_0x14ac80(0xf6)](initBranchTracking,_0x47f770);const _0x4d2b00=isSessionEnabled(_0x47f770);try{const _0x20db4b=createTelemetryCollector(_0x5b437a['MdrGA']);await _0x20db4b[_0x14ac80(0x102)]({'sessionId':_0x47f770,'hooksEnabled':_0x4d2b00}),await _0x20db4b['trackCommandEnd'](_0x5b437a['AvTgO']);}catch{}if(_0x4d2b00){const _0x217d80=_0x5b437a['ucZfu'](getCurrentBranch),_0x489bc1=_0x217d80&&_0x5b437a[_0x14ac80(0xfd)](_0x217d80,_0x5b437a['hZlnW'])&&_0x217d80!==_0x5b437a['sxclB']?'\x20(Branch:\x20'+_0x217d80+')':'',_0x4a9b58={'hookSpecificOutput':{'hookEventName':_0x5b437a['EMZxK'],'additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x489bc1}};console[_0x14ac80(0x103)](JSON[_0x14ac80(0xf5)](_0x4a9b58));}}}
1
+ const _0x5e27e5=_0x1e41;(function(_0x28a09a,_0x22e662){const _0x17d40b=_0x1e41,_0x5f15f2=_0x28a09a();while(!![]){try{const _0x309e61=parseInt(_0x17d40b(0x17b))/0x1+-parseInt(_0x17d40b(0x17d))/0x2+parseInt(_0x17d40b(0x174))/0x3+-parseInt(_0x17d40b(0x182))/0x4*(-parseInt(_0x17d40b(0x178))/0x5)+parseInt(_0x17d40b(0x188))/0x6*(parseInt(_0x17d40b(0x177))/0x7)+-parseInt(_0x17d40b(0x187))/0x8+-parseInt(_0x17d40b(0x176))/0x9*(parseInt(_0x17d40b(0x185))/0xa);if(_0x309e61===_0x22e662)break;else _0x5f15f2['push'](_0x5f15f2['shift']());}catch(_0x263a28){_0x5f15f2['push'](_0x5f15f2['shift']());}}}(_0x4bd6,0xe9caf));function _0x1e41(_0x2ff981,_0x24bc28){_0x2ff981=_0x2ff981-0x174;const _0x4bd6b4=_0x4bd6();let _0x1e41f4=_0x4bd6b4[_0x2ff981];return _0x1e41f4;}import{appendFile}from'fs/promises';import{initBranchTracking,shouldAutoEnableAfterClear,autoEnableAfterClear,isSessionEnabled,getCurrentBranch}from'../utils/sessionCache.js';import{createTelemetryCollector}from'../utils/telemetry.js';function _0x4bd6(){const _0x1e772b=['hook:session-start','session_id','472EAigcO','=================================================================\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=================================================================','OySWy','882110zFgpuf','log','11695920YeJxvD','26130evheBn','CLAUDE_ENV_FILE','trackCommandStart','5632194DnCJKV','YcKIE','252oaNUpz','2506MOxXdi','80235stnQRu','AkNRe','hfkAi','596690xfTpWl','master','2074422dYoqEP','QQhDN','stdin'];_0x4bd6=function(){return _0x1e772b;};return _0x4bd6();}const RANGER_AUTO_ENABLED_PROMPT=_0x5e27e5(0x183);export async function sessionStart(_0x1defc3){const _0x3902bb=_0x5e27e5,_0x32fbb4={'AkNRe':'source','OySWy':function(_0x309f07,_0x6a05b0){return _0x309f07&&_0x6a05b0;},'BfvAo':function(_0x4870fa,_0x36f348,_0x307210){return _0x4870fa(_0x36f348,_0x307210);},'QQhDN':function(_0x3d1e85,_0x1d4228){return _0x3d1e85(_0x1d4228);},'hfkAi':function(_0x25be0b,_0x52a0ab){return _0x25be0b(_0x52a0ab);},'LhqHT':function(_0x2d25bc,_0x40e050){return _0x2d25bc(_0x40e050);},'hTaHh':function(_0xc57bb4,_0x4df574){return _0xc57bb4!==_0x4df574;},'YcKIE':function(_0x296480,_0x4eacab){return _0x296480!==_0x4eacab;}};let _0x51f7f7=_0x1defc3||'',_0x2f7874;if(!_0x1defc3){let _0x20acb6='';for await(const _0x4944e9 of process[_0x3902bb(0x17f)]){_0x20acb6+=_0x4944e9;}try{const _0xe70dc0=JSON['parse'](_0x20acb6);_0x51f7f7=_0xe70dc0[_0x3902bb(0x181)]||'',_0x2f7874=_0xe70dc0[_0x32fbb4[_0x3902bb(0x179)]];}catch{}const _0x4c004f=process['env'][_0x3902bb(0x189)];if(_0x32fbb4[_0x3902bb(0x184)](_0x4c004f,_0x51f7f7))try{await _0x32fbb4['BfvAo'](appendFile,_0x4c004f,'export\x20CLAUDE_SESSION_ID=\x22'+_0x51f7f7+'\x22\x0a');}catch{}}if(_0x51f7f7){shouldAutoEnableAfterClear(_0x2f7874)&&_0x32fbb4[_0x3902bb(0x17e)](autoEnableAfterClear,_0x51f7f7);_0x32fbb4[_0x3902bb(0x17e)](initBranchTracking,_0x51f7f7);const _0x34d508=_0x32fbb4[_0x3902bb(0x17a)](isSessionEnabled,_0x51f7f7);try{const _0x21ddf1=_0x32fbb4['LhqHT'](createTelemetryCollector,_0x3902bb(0x180));await _0x21ddf1[_0x3902bb(0x18a)]({'sessionId':_0x51f7f7,'hooksEnabled':_0x34d508}),await _0x21ddf1['trackCommandEnd']('success');}catch{}if(_0x34d508){const _0x19b7d5=getCurrentBranch(),_0x1518ee=_0x19b7d5&&_0x32fbb4['hTaHh'](_0x19b7d5,'main')&&_0x32fbb4[_0x3902bb(0x175)](_0x19b7d5,_0x3902bb(0x17c))?'\x20(Branch:\x20'+_0x19b7d5+')':'',_0x30be4e={'hookSpecificOutput':{'hookEventName':'SessionStart','additionalContext':RANGER_AUTO_ENABLED_PROMPT+_0x1518ee}};console[_0x3902bb(0x186)](JSON['stringify'](_0x30be4e));}}}