@ranger-testing/ranger-cli 2.5.4-alpha.071b7bd-1 โ†’ 2.5.4-alpha.ed286f1-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 (69) 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/mcpBootstrap.js +1 -1
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/agentEnv.js +1 -1
  36. package/build/commands/utils/browserSessionsApi.js +1 -1
  37. package/build/commands/utils/claudeConfig.js +1 -1
  38. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  39. package/build/commands/utils/claudePlugin.js +1 -1
  40. package/build/commands/utils/crypto.js +1 -1
  41. package/build/commands/utils/desirePathLog.js +1 -1
  42. package/build/commands/utils/deviceAuth.js +1 -1
  43. package/build/commands/utils/environment.js +1 -1
  44. package/build/commands/utils/featureApi.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/tokenRefresh.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/package.json +6 -2
@@ -1 +1 @@
1
- const _0x50f442=_0xf532;(function(_0x281094,_0x234084){const _0x303859=_0xf532,_0x4f4bcd=_0x281094();while(!![]){try{const _0x5993fd=parseInt(_0x303859(0x71))/0x1*(-parseInt(_0x303859(0x93))/0x2)+-parseInt(_0x303859(0x7a))/0x3*(parseInt(_0x303859(0x91))/0x4)+-parseInt(_0x303859(0x9f))/0x5+parseInt(_0x303859(0x8a))/0x6*(-parseInt(_0x303859(0x96))/0x7)+parseInt(_0x303859(0x8c))/0x8*(parseInt(_0x303859(0x88))/0x9)+-parseInt(_0x303859(0x98))/0xa+-parseInt(_0x303859(0x6c))/0xb*(-parseInt(_0x303859(0x7d))/0xc);if(_0x5993fd===_0x234084)break;else _0x4f4bcd['push'](_0x4f4bcd['shift']());}catch(_0x58d674){_0x4f4bcd['push'](_0x4f4bcd['shift']());}}}(_0x3962,0xb33b6));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x50f442(0x9c),_0x50f442(0xa3),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x13f608){const _0x25e230=_0x50f442,_0x2a4df7=_0x13f608['replace'](/\/\*[\s\S]*?\*\//g,''),_0x241e24=_0x2a4df7[_0x25e230(0x80)](/^\s*\/\/.*$/gm,''),_0x5deb2a=_0x241e24['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x25e230(0x9e)](_0x5deb2a);}async function removeOpencodePluginConfig(_0xbddc47){const _0x15090e=_0x50f442,_0x3c5c68={'pUrWZ':function(_0xef401f,_0x227dbc){return _0xef401f!==_0x227dbc;},'hNesw':function(_0xb1dfab,_0x3d1eac){return _0xb1dfab(_0x3d1eac);},'PUeHb':function(_0x28bb2b,_0x2e3e92,_0xfc6b08){return _0x28bb2b(_0x2e3e92,_0xfc6b08);},'bbnMB':function(_0x424849,_0x5ea8fa){return _0x424849===_0x5ea8fa;},'jXtPd':function(_0x2101ec,_0x57de99){return _0x2101ec+_0x57de99;}};if(!_0x3c5c68['hNesw'](existsSync,_0xbddc47))return![];let _0x410694;try{const _0x4e68ed=await _0x3c5c68['PUeHb'](readFile,_0xbddc47,_0x15090e(0x70));_0x410694=parseJsonc(_0x4e68ed);}catch{return![];}const _0x57d46b=Array['isArray'](_0x410694['plugin'])?_0x410694['plugin']:[];if(_0x57d46b[_0x15090e(0xa1)]===0x0)return![];const _0x207aa2=_0x57d46b[_0x15090e(0x6f)](_0x5ecdb7=>{if(typeof _0x5ecdb7!=='string')return!![];return _0x3c5c68['pUrWZ'](_0x5ecdb7,opencodePluginName);});if(_0x3c5c68['bbnMB'](_0x207aa2[_0x15090e(0xa1)],_0x57d46b[_0x15090e(0xa1)]))return![];return _0x3c5c68['bbnMB'](_0x207aa2['length'],0x0)?delete _0x410694[_0x15090e(0x81)]:_0x410694['plugin']=_0x207aa2,await writeFile(_0xbddc47,_0x3c5c68[_0x15090e(0x7f)](JSON[_0x15090e(0x79)](_0x410694,null,0x2),'\x0a')),!![];}function _0x3962(){const _0x3ae22b=['platform','user','\x0a๐Ÿงน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','fTKOB','dxcLj','stringify','73134NFZsXe','push','kVgqz','5232YVAhTh','ranger@trailhead','jXtPd','replace','plugin','cnRnw','uRkeR','error','VqzhE','โœ“\x20Removed\x20OpenCode\x20project\x20skill:\x20','RPxKL','114111DswFnU','โœ“\x20Removed\x20OpenCode\x20user\x20skill:\x20','88278WFiwuC','close','96auQODD','โœ“\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','GKNzK','โœ“\x20Removed\x20project\x20skill:\x20','win32','72utgWtr','yJpFa','4RGchBo','pjkpk','EpMvR','98wSakUF','MmcYJ','10584740CFaDmE','log','VrQbY','oRAJO','feature-tracker','QntoF','parse','1097600ANBIDL','โœ“\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','length','SHeAE','bug-bash','pipe','bGwuD','project','73513IrnbIs','dbRWd','โœ“\x20Removed\x20.ranger/\x20directory','filter','utf-8','204511owOQHr','trailhead','OiWvS'];_0x3962=function(){return _0x3ae22b;};return _0x3962();}async function uninstallClaudePlugin(_0x17de73){const _0x19a278=_0x50f442,_0xdfe17e={'VrQbY':'uninstall','GKNzK':_0x19a278(0x7e),'VpmDY':'pipe','oRAJO':function(_0x54b5d4,_0x54529f){return _0x54b5d4===_0x54529f;},'OiWvS':'win32','dxcLj':_0x19a278(0x8b),'Szduf':_0x19a278(0x84)};return new Promise(_0x2ed9d7=>{const _0x2515ff=_0x19a278,_0x2c0372=[_0x2515ff(0x81),_0xdfe17e[_0x2515ff(0x9a)],_0xdfe17e[_0x2515ff(0x8e)]];_0x17de73&&_0x2c0372[_0x2515ff(0x7b)]('--scope',_0x17de73);const _0x518b5f=spawn('claude',_0x2c0372,{'stdio':_0xdfe17e['VpmDY'],'shell':_0xdfe17e[_0x2515ff(0x9b)](process[_0x2515ff(0x74)],_0xdfe17e[_0x2515ff(0x73)])});_0x518b5f['on'](_0xdfe17e[_0x2515ff(0x78)],_0x283b27=>{_0x2ed9d7(_0x283b27===0x0);}),_0x518b5f['on'](_0xdfe17e['Szduf'],()=>{_0x2ed9d7(![]);});});}async function removeMarketplace(){const _0x933b48=_0x50f442,_0x5300ae={'VKGPS':'claude','QntoF':'marketplace','qCCvG':_0x933b48(0xa4),'VqzhE':function(_0x5807d4,_0x1db918){return _0x5807d4===_0x1db918;}};return new Promise(_0x18b0b6=>{const _0x273e06=_0x933b48,_0x1ce8dc={'ACJgW':function(_0x204639,_0x30f25d){return _0x204639(_0x30f25d);}},_0x1d45e1=spawn(_0x5300ae['VKGPS'],[_0x273e06(0x81),_0x5300ae[_0x273e06(0x9d)],'remove',_0x273e06(0x72)],{'stdio':_0x5300ae['qCCvG'],'shell':_0x5300ae[_0x273e06(0x85)](process[_0x273e06(0x74)],_0x273e06(0x90))});_0x1d45e1['on'](_0x273e06(0x8b),_0xede181=>{_0x1ce8dc['ACJgW'](_0x18b0b6,_0xede181===0x0);}),_0x1d45e1['on'](_0x273e06(0x84),()=>{_0x18b0b6(![]);});});}function _0xf532(_0x4d6273,_0x2fb113){_0x4d6273=_0x4d6273-0x6a;const _0x3962f6=_0x3962();let _0xf5322d=_0x3962f6[_0x4d6273];return _0xf5322d;}export async function clean(){const _0x50d16c=_0x50f442,_0x5c9d37={'cnRnw':_0x50d16c(0x76),'skFka':function(_0x18a299){return _0x18a299();},'EpMvR':function(_0x4a5337,_0x368aa7){return _0x4a5337(_0x368aa7);},'SHeAE':function(_0x261ea4,_0x5992bb){return _0x261ea4(_0x5992bb);},'Gtefd':function(_0x156303,_0x5e9108){return _0x156303(_0x5e9108);},'fTKOB':function(_0x65da7d,_0x14378d,_0x4922fe){return _0x65da7d(_0x14378d,_0x4922fe);},'BbcfO':function(_0x5e8895,_0x5d6ded){return _0x5e8895(_0x5d6ded);},'uRkeR':function(_0x5add62,_0x32b32a,_0x376468){return _0x5add62(_0x32b32a,_0x376468);},'bGwuD':function(_0x433eb3,_0x41afd5,_0x2acf00){return _0x433eb3(_0x41afd5,_0x2acf00);},'MmcYJ':function(_0x1b69a8,_0x2990cd){return _0x1b69a8(_0x2990cd);},'yJpFa':_0x50d16c(0x6b),'IWabx':function(_0x5b11e7,_0x507bdd,_0x2ecf0a){return _0x5b11e7(_0x507bdd,_0x2ecf0a);},'PlOuw':function(_0x3b5b01,_0x42885a){return _0x3b5b01(_0x42885a);},'kcfhc':_0x50d16c(0x75),'bEImK':function(_0x397abd,_0x86ceff,_0x2d3565){return _0x397abd(_0x86ceff,_0x2d3565);},'pjkpk':function(_0x132b28,_0x52931f){return _0x132b28(_0x52931f);},'eLHZv':'opencode.json','SLxfd':'โœ“\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','dbRWd':function(_0x36cb80,_0x2c72b1,_0x38474b){return _0x36cb80(_0x2c72b1,_0x38474b);},'RPxKL':function(_0x1cd0d9){return _0x1cd0d9();},'kVgqz':'โœ“\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'};console[_0x50d16c(0x99)](_0x5c9d37[_0x50d16c(0x82)]);let _0xe326fe=![];try{await _0x5c9d37['skFka'](deleteAllCredentials),console['log']('โœ“\x20Removed\x20stored\x20credentials'),_0xe326fe=!![];}catch{}const _0x1b88d7=_0x5c9d37['skFka'](getCacheFile);_0x5c9d37[_0x50d16c(0x95)](existsSync,_0x1b88d7)&&(await _0x5c9d37[_0x50d16c(0xa2)](rm,_0x1b88d7),_0xe326fe=!![]);const _0x599757=_0x5c9d37['skFka'](getRangerDir);_0x5c9d37['Gtefd'](existsSync,_0x599757)&&(await rm(_0x599757,{'recursive':!![]}),console['log'](_0x50d16c(0x6e)),_0xe326fe=!![]);const _0x25eb1b=_0x5c9d37['skFka'](getProjectSkillsDir);for(const _0x53a5c9 of skillsToRemove){const _0x435df4=_0x5c9d37[_0x50d16c(0x77)](join,_0x25eb1b,_0x53a5c9);_0x5c9d37['BbcfO'](existsSync,_0x435df4)&&(await _0x5c9d37['uRkeR'](rm,_0x435df4,{'recursive':!![]}),console[_0x50d16c(0x99)](_0x50d16c(0x8f)+_0x53a5c9),_0xe326fe=!![]);}const _0x1b2de0=getUserSkillsDir();for(const _0x4eb355 of skillsToRemove){const _0x2a04e2=_0x5c9d37[_0x50d16c(0x6a)](join,_0x1b2de0,_0x4eb355);existsSync(_0x2a04e2)&&(await _0x5c9d37[_0x50d16c(0x83)](rm,_0x2a04e2,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20user\x20skill:\x20'+_0x4eb355),_0xe326fe=!![]);}const _0x1b4a31=_0x5c9d37[_0x50d16c(0x97)](getOpencodeSkillsDir,_0x5c9d37['yJpFa']);for(const _0x3803d7 of skillsToRemove){const _0xbc434f=join(_0x1b4a31,_0x3803d7);_0x5c9d37[_0x50d16c(0x95)](existsSync,_0xbc434f)&&(await _0x5c9d37['IWabx'](rm,_0xbc434f,{'recursive':!![]}),console[_0x50d16c(0x99)](_0x50d16c(0x86)+_0x3803d7),_0xe326fe=!![]);}const _0x47d2be=_0x5c9d37['PlOuw'](getOpencodeSkillsDir,_0x5c9d37['kcfhc']);for(const _0x5d9a8c of skillsToRemove){const _0x1d9f51=_0x5c9d37['uRkeR'](join,_0x47d2be,_0x5d9a8c);existsSync(_0x1d9f51)&&(await _0x5c9d37['bEImK'](rm,_0x1d9f51,{'recursive':!![]}),console['log'](_0x50d16c(0x89)+_0x5d9a8c),_0xe326fe=!![]);}const _0x256763=join(_0x5c9d37[_0x50d16c(0x94)](getOpencodeConfigDir,_0x5c9d37[_0x50d16c(0x92)]),_0x5c9d37['eLHZv']);await _0x5c9d37[_0x50d16c(0x95)](removeOpencodePluginConfig,_0x256763)&&(console[_0x50d16c(0x99)](_0x5c9d37['SLxfd']),_0xe326fe=!![]);const _0x32dba0=_0x5c9d37[_0x50d16c(0x6d)](join,getOpencodeConfigDir(_0x5c9d37['kcfhc']),_0x5c9d37['eLHZv']);await removeOpencodePluginConfig(_0x32dba0)&&(console['log'](_0x50d16c(0xa0)),_0xe326fe=!![]);const _0x48fd85=await _0x5c9d37[_0x50d16c(0x87)](uninstallClaudePlugin);_0x48fd85&&(console[_0x50d16c(0x99)](_0x5c9d37[_0x50d16c(0x7c)]),_0xe326fe=!![]);const _0x49f928=await uninstallClaudePlugin(_0x5c9d37[_0x50d16c(0x92)]);_0x49f928&&(console['log'](_0x50d16c(0x8d)),_0xe326fe=!![]);const _0x486ba9=await _0x5c9d37['skFka'](removeMarketplace);_0x486ba9&&(console[_0x50d16c(0x99)]('โœ“\x20Removed\x20trailhead\x20marketplace'),_0xe326fe=!![]),_0xe326fe?console[_0x50d16c(0x99)]('\x0aโœ…\x20Cleanup\x20complete!\x0a'):console[_0x50d16c(0x99)]('Nothing\x20to\x20clean\x20up.\x0a');}
1
+ const _0x126fee=_0xf149;(function(_0x36402c,_0x47680d){const _0x4090e9=_0xf149,_0x53f9ed=_0x36402c();while(!![]){try{const _0x538063=-parseInt(_0x4090e9(0x21e))/0x1+parseInt(_0x4090e9(0x1f5))/0x2+parseInt(_0x4090e9(0x1ed))/0x3*(-parseInt(_0x4090e9(0x20b))/0x4)+parseInt(_0x4090e9(0x204))/0x5*(parseInt(_0x4090e9(0x1e6))/0x6)+parseInt(_0x4090e9(0x1e1))/0x7*(-parseInt(_0x4090e9(0x1f9))/0x8)+-parseInt(_0x4090e9(0x1ff))/0x9*(-parseInt(_0x4090e9(0x213))/0xa)+parseInt(_0x4090e9(0x1e0))/0xb;if(_0x538063===_0x47680d)break;else _0x53f9ed['push'](_0x53f9ed['shift']());}catch(_0xc4d810){_0x53f9ed['push'](_0x53f9ed['shift']());}}}(_0x3705,0xe18d4));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x126fee(0x21b),_0x126fee(0x20e),'bug-bash',_0x126fee(0x208)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x182fe4){const _0x1433c5=_0x126fee,_0x59b10a=_0x182fe4[_0x1433c5(0x206)](/\/\*[\s\S]*?\*\//g,''),_0xe151f5=_0x59b10a['replace'](/^\s*\/\/.*$/gm,''),_0xf06846=_0xe151f5['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x1433c5(0x203)](_0xf06846);}async function removeOpencodePluginConfig(_0x5c7a94){const _0x4f24ed=_0x126fee,_0x454fff={'jdHZF':'string','qsVqF':function(_0x4b37ba,_0x580fcc){return _0x4b37ba!==_0x580fcc;},'ZjQvg':function(_0x4cb34a,_0x5a6231,_0x496b0a){return _0x4cb34a(_0x5a6231,_0x496b0a);},'ioVyc':_0x4f24ed(0x1e7),'kUzkw':function(_0x4f392c,_0xc53dd6){return _0x4f392c===_0xc53dd6;}};if(!existsSync(_0x5c7a94))return![];let _0x5a2d3a;try{const _0x558c79=await _0x454fff[_0x4f24ed(0x1f0)](readFile,_0x5c7a94,_0x454fff[_0x4f24ed(0x220)]);_0x5a2d3a=parseJsonc(_0x558c79);}catch{return![];}const _0x4629ec=Array['isArray'](_0x5a2d3a[_0x4f24ed(0x1e2)])?_0x5a2d3a['plugin']:[];if(_0x454fff[_0x4f24ed(0x1e8)](_0x4629ec[_0x4f24ed(0x1fe)],0x0))return![];const _0x2ae767=_0x4629ec['filter'](_0xbcdb2d=>{if(typeof _0xbcdb2d!==_0x454fff['jdHZF'])return!![];return _0x454fff['qsVqF'](_0xbcdb2d,opencodePluginName);});if(_0x454fff['kUzkw'](_0x2ae767['length'],_0x4629ec[_0x4f24ed(0x1fe)]))return![];return _0x454fff[_0x4f24ed(0x1e8)](_0x2ae767[_0x4f24ed(0x1fe)],0x0)?delete _0x5a2d3a[_0x4f24ed(0x1e2)]:_0x5a2d3a[_0x4f24ed(0x1e2)]=_0x2ae767,await writeFile(_0x5c7a94,JSON[_0x4f24ed(0x201)](_0x5a2d3a,null,0x2)+'\x0a'),!![];}function _0x3705(){const _0x43e95b=['utf-8','kUzkw','ranger@trailhead','pipe','FJKzE','NgPxP','4773cMaOLJ','claude','platform','ZjQvg','โœ“\x20Removed\x20stored\x20credentials','FIcmY','SpRKa','marketplace','3403834peGHAE','JyVKt','โœ“\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','yogvU','8yZKUhU','win32','wlnCH','trailhead','error','length','45tvHBpB','FiOhY','stringify','โœ“\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','parse','11725IqHffR','OWiFf','replace','pjkWA','e2e-test-recommender','NTxzE','uninstall','1580dnmjjN','Xmrlc','fbGvA','feature-tracker','โœ“\x20Removed\x20OpenCode\x20user\x20skill:\x20','log','user','bzxKE','1642740KFajYQ','opencode.json','โœ“\x20Removed\x20user\x20skill:\x20','push','RYSJg','project','close','\x0aโœ…\x20Cleanup\x20complete!\x0a','ranger','HCWvZ','โœ“\x20Removed\x20trailhead\x20marketplace','1255995lNHMXc','HUoAA','ioVyc','2280146QBBQod','2131556VnPDYv','plugin','RlqAj','โœ“\x20Removed\x20.ranger/\x20directory','KngYk','978ouiSXh'];_0x3705=function(){return _0x43e95b;};return _0x3705();}async function uninstallClaudePlugin(_0x5a33e6){const _0x5a88e8=_0x126fee,_0x1f0301={'qbNZn':_0x5a88e8(0x1e2),'RYSJg':_0x5a88e8(0x20a),'aYtIj':function(_0x573c74,_0x3a2c0d,_0x57033e,_0x385619){return _0x573c74(_0x3a2c0d,_0x57033e,_0x385619);},'OWiFf':_0x5a88e8(0x1ee),'HUoAA':_0x5a88e8(0x1ea),'HCWvZ':function(_0x37c15c,_0x59a72b){return _0x37c15c===_0x59a72b;},'uuOuG':'win32','KngYk':'close'};return new Promise(_0x485036=>{const _0x30b0ba=_0x5a88e8,_0x25477a={'YIajB':function(_0x3881d9,_0x3196b4){return _0x3881d9(_0x3196b4);}},_0x30ea4b=[_0x1f0301['qbNZn'],_0x1f0301[_0x30b0ba(0x217)],_0x30b0ba(0x1e9)];_0x5a33e6&&_0x30ea4b[_0x30b0ba(0x216)]('--scope',_0x5a33e6);const _0x1ade2f=_0x1f0301['aYtIj'](spawn,_0x1f0301[_0x30b0ba(0x205)],_0x30ea4b,{'stdio':_0x1f0301[_0x30b0ba(0x21f)],'shell':_0x1f0301[_0x30b0ba(0x21c)](process['platform'],_0x1f0301['uuOuG'])});_0x1ade2f['on'](_0x1f0301[_0x30b0ba(0x1e5)],_0x4c7e9c=>{_0x25477a['YIajB'](_0x485036,_0x4c7e9c===0x0);}),_0x1ade2f['on'](_0x30b0ba(0x1fd),()=>{_0x485036(![]);});});}function _0xf149(_0x5774bc,_0x1a0cdb){_0x5774bc=_0x5774bc-0x1e0;const _0x370567=_0x3705();let _0xf149ac=_0x370567[_0x5774bc];return _0xf149ac;}async function removeMarketplace(){const _0x471cdb=_0x126fee,_0x1cb12f={'NgPxP':'claude','zRZFm':_0x471cdb(0x1f4),'xnyCE':function(_0x659cd1,_0x13ac48){return _0x659cd1===_0x13ac48;},'hvyYP':_0x471cdb(0x1fa),'FJKzE':_0x471cdb(0x219)};return new Promise(_0x94ffd2=>{const _0x4da973=_0x471cdb,_0x20bc0d=spawn(_0x1cb12f[_0x4da973(0x1ec)],['plugin',_0x1cb12f['zRZFm'],'remove',_0x4da973(0x1fc)],{'stdio':_0x4da973(0x1ea),'shell':_0x1cb12f['xnyCE'](process[_0x4da973(0x1ef)],_0x1cb12f['hvyYP'])});_0x20bc0d['on'](_0x1cb12f[_0x4da973(0x1eb)],_0x948a0c=>{_0x94ffd2(_0x948a0c===0x0);}),_0x20bc0d['on']('error',()=>{_0x94ffd2(![]);});});}export async function clean(){const _0x2eac6a=_0x126fee,_0x41285b={'SpRKa':function(_0x2045a1){return _0x2045a1();},'pjkWA':function(_0x56c552,_0x3bf96b){return _0x56c552(_0x3bf96b);},'fbGvA':function(_0x25ade4){return _0x25ade4();},'NTxzE':function(_0xdca23d,_0x5c5dcd){return _0xdca23d(_0x5c5dcd);},'Xmrlc':function(_0x36c590){return _0x36c590();},'yogvU':function(_0x441cbb,_0x1827c2,_0x19f6c3){return _0x441cbb(_0x1827c2,_0x19f6c3);},'FiOhY':_0x2eac6a(0x211),'wlnCH':function(_0x3094a4,_0x405ec1){return _0x3094a4(_0x405ec1);},'PRbJA':function(_0xf0382b,_0x29edc4){return _0xf0382b(_0x29edc4);},'bzxKE':'project','JyVKt':'opencode.json','RlqAj':_0x2eac6a(0x1f7),'FIcmY':function(_0x3426fe,_0x28db35,_0x1ea339){return _0x3426fe(_0x28db35,_0x1ea339);},'cFDFG':function(_0x15b76e,_0x32bff9){return _0x15b76e(_0x32bff9);},'oWtxs':'โœ“\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','xaLUU':function(_0x293869){return _0x293869();}};console[_0x2eac6a(0x210)]('\x0a๐Ÿงน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2d3671=![];try{await deleteAllCredentials(),console[_0x2eac6a(0x210)](_0x2eac6a(0x1f1)),_0x2d3671=!![];}catch{}const _0x56589a=getCacheFile();existsSync(_0x56589a)&&(await rm(_0x56589a),_0x2d3671=!![]);const _0x23508d=_0x41285b[_0x2eac6a(0x1f3)](getRangerDir);_0x41285b[_0x2eac6a(0x207)](existsSync,_0x23508d)&&(await rm(_0x23508d,{'recursive':!![]}),console[_0x2eac6a(0x210)](_0x2eac6a(0x1e4)),_0x2d3671=!![]);const _0x4e5030=_0x41285b[_0x2eac6a(0x20d)](getProjectSkillsDir);for(const _0x32a602 of skillsToRemove){const _0x5d5a06=join(_0x4e5030,_0x32a602);_0x41285b['NTxzE'](existsSync,_0x5d5a06)&&(await rm(_0x5d5a06,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20project\x20skill:\x20'+_0x32a602),_0x2d3671=!![]);}const _0x27ad4d=_0x41285b[_0x2eac6a(0x20c)](getUserSkillsDir);for(const _0x2e46db of skillsToRemove){const _0x54a7b5=_0x41285b[_0x2eac6a(0x1f8)](join,_0x27ad4d,_0x2e46db);existsSync(_0x54a7b5)&&(await _0x41285b[_0x2eac6a(0x1f8)](rm,_0x54a7b5,{'recursive':!![]}),console[_0x2eac6a(0x210)](_0x2eac6a(0x215)+_0x2e46db),_0x2d3671=!![]);}const _0x1f0193=getOpencodeSkillsDir(_0x2eac6a(0x218));for(const _0x33a2d1 of skillsToRemove){const _0x5ecbc0=join(_0x1f0193,_0x33a2d1);existsSync(_0x5ecbc0)&&(await _0x41285b['yogvU'](rm,_0x5ecbc0,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x33a2d1),_0x2d3671=!![]);}const _0x3b484c=getOpencodeSkillsDir(_0x41285b[_0x2eac6a(0x200)]);for(const _0x4f7780 of skillsToRemove){const _0x36bc41=join(_0x3b484c,_0x4f7780);_0x41285b[_0x2eac6a(0x1fb)](existsSync,_0x36bc41)&&(await rm(_0x36bc41,{'recursive':!![]}),console['log'](_0x2eac6a(0x20f)+_0x4f7780),_0x2d3671=!![]);}const _0x56188c=join(_0x41285b['PRbJA'](getOpencodeConfigDir,_0x41285b[_0x2eac6a(0x212)]),_0x41285b[_0x2eac6a(0x1f6)]);await _0x41285b['pjkWA'](removeOpencodePluginConfig,_0x56188c)&&(console[_0x2eac6a(0x210)](_0x41285b[_0x2eac6a(0x1e3)]),_0x2d3671=!![]);const _0x5bf0fb=_0x41285b[_0x2eac6a(0x1f2)](join,_0x41285b['cFDFG'](getOpencodeConfigDir,_0x2eac6a(0x211)),_0x2eac6a(0x214));await _0x41285b[_0x2eac6a(0x209)](removeOpencodePluginConfig,_0x5bf0fb)&&(console['log'](_0x41285b['oWtxs']),_0x2d3671=!![]);const _0x1efb06=await _0x41285b['xaLUU'](uninstallClaudePlugin);_0x1efb06&&(console[_0x2eac6a(0x210)]('โœ“\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x2d3671=!![]);const _0x17a276=await uninstallClaudePlugin(_0x41285b[_0x2eac6a(0x212)]);_0x17a276&&(console[_0x2eac6a(0x210)](_0x2eac6a(0x202)),_0x2d3671=!![]);const _0x13e201=await _0x41285b[_0x2eac6a(0x20d)](removeMarketplace);_0x13e201&&(console[_0x2eac6a(0x210)](_0x2eac6a(0x21d)),_0x2d3671=!![]),_0x2d3671?console['log'](_0x2eac6a(0x21a)):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}
@@ -1 +1 @@
1
- const _0x164f0d=_0x2c78;(function(_0x5639db,_0x5a255e){const _0x41b730=_0x2c78,_0x21e93b=_0x5639db();while(!![]){try{const _0x1a9059=-parseInt(_0x41b730(0xb4))/0x1+-parseInt(_0x41b730(0xb9))/0x2+-parseInt(_0x41b730(0xba))/0x3*(parseInt(_0x41b730(0xc5))/0x4)+-parseInt(_0x41b730(0xb8))/0x5+parseInt(_0x41b730(0xc2))/0x6*(-parseInt(_0x41b730(0xc6))/0x7)+parseInt(_0x41b730(0xbe))/0x8*(-parseInt(_0x41b730(0xcc))/0x9)+parseInt(_0x41b730(0xb6))/0xa;if(_0x1a9059===_0x5a255e)break;else _0x21e93b['push'](_0x21e93b['shift']());}catch(_0x3947f5){_0x21e93b['push'](_0x21e93b['shift']());}}}(_0x536b,0xe2ef0));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless',_0x164f0d(0xbb)];function parseValue(_0x29e788,_0x17df21){const _0x600c93=_0x164f0d,_0x21247e={'shTFV':function(_0x1e3f10,_0x5ef88a){return _0x1e3f10===_0x5ef88a;},'GjnFV':_0x600c93(0xce)};if(BOOLEAN_KEYS[_0x600c93(0xbd)](_0x29e788)){if(_0x21247e['shTFV'](_0x17df21,_0x21247e['GjnFV']))return!![];if(_0x21247e['shTFV'](_0x17df21,_0x600c93(0xc8)))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x29e788+_0x600c93(0xc0));}return _0x17df21;}function _0x536b(){const _0x1a3705=['includes','1658744pnfffU','iBsRB',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','Epqwu','973374yLqABC','aUOLo','mgvhG','435980ObZvGU','7qDIFXj','\x22\x20not\x20found','false','wpFvP','IgVkJ','sills','45zKRdeC','pzZoU','true','log','383108icSXTK','\x22\x20does\x20not\x20exist.','51830060upoamA','Profile\x20\x22','1638910kXwyGj','3161374oGLGdB','21aFkgoK','allowInsecureLocalhost','stringify'];_0x536b=function(){return _0x1a3705;};return _0x536b();}export async function configSet(_0x368604,_0x452c78,_0x169095){const _0x5c1b55=_0x164f0d,_0x48df52={'uLDhn':function(_0xd7d6db,_0x3780a5){return _0xd7d6db(_0x3780a5);},'sills':function(_0x3eeb88,_0x539e0b,_0x4af94d){return _0x3eeb88(_0x539e0b,_0x4af94d);}},_0x119d15=_0x48df52['uLDhn'](getEnvDir,_0x368604);if(!_0x48df52['uLDhn'](existsSync,_0x119d15))throw new Error('Profile\x20\x22'+_0x368604+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x368604);const _0x47b066=await loadSettings(_0x368604),_0x1ddcda=parseValue(_0x452c78,_0x169095);setNestedValue(_0x47b066,_0x452c78,_0x1ddcda),await _0x48df52[_0x5c1b55(0xcb)](saveSettings,_0x368604,_0x47b066),console['log']('Set\x20'+_0x452c78+'\x20=\x20'+_0x1ddcda);}function _0x2c78(_0x5b595a,_0x3f3a2e){_0x5b595a=_0x5b595a-0xb4;const _0x536b1a=_0x536b();let _0x2c7814=_0x536b1a[_0x5b595a];return _0x2c7814;}export async function configGet(_0x12be01,_0x323b60){const _0x1cb8b0=_0x164f0d,_0x195d19={'fHNVm':function(_0x2a07f8,_0x4df760){return _0x2a07f8(_0x4df760);},'aUOLo':function(_0x3a7cbf,_0x48a9ef,_0x5bb8bf){return _0x3a7cbf(_0x48a9ef,_0x5bb8bf);},'OaFpV':function(_0x2d01eb,_0x344688){return _0x2d01eb===_0x344688;},'pzZoU':'object'},_0xcc09a=getEnvDir(_0x12be01);if(!_0x195d19['fHNVm'](existsSync,_0xcc09a))throw new Error(_0x1cb8b0(0xb7)+_0x12be01+'\x22\x20does\x20not\x20exist.');const _0x2bb471=await _0x195d19['fHNVm'](loadSettings,_0x12be01),_0x5ddace=_0x195d19[_0x1cb8b0(0xc3)](getNestedValue,_0x2bb471,_0x323b60);if(_0x5ddace===undefined)console[_0x1cb8b0(0xcf)]('(not\x20set)');else _0x195d19['OaFpV'](typeof _0x5ddace,_0x195d19[_0x1cb8b0(0xcd)])?console[_0x1cb8b0(0xcf)](JSON[_0x1cb8b0(0xbc)](_0x5ddace,null,0x2)):console[_0x1cb8b0(0xcf)](_0x5ddace);}export async function configList(_0x4e77de){const _0x4eca49=_0x164f0d,_0x2dc5a2={'IgVkJ':function(_0x385ec0,_0x7afed9){return _0x385ec0(_0x7afed9);},'mgvhG':function(_0x59c0d5,_0x9b51b){return _0x59c0d5(_0x9b51b);},'wpFvP':function(_0x2b2af2,_0x959b4c){return _0x2b2af2(_0x959b4c);}},_0x2f92a7=getSettingsPath(_0x4e77de);if(!_0x2dc5a2[_0x4eca49(0xca)](existsSync,_0x2f92a7)){const _0x32805d=_0x2dc5a2['IgVkJ'](getEnvDir,_0x4e77de);if(!_0x2dc5a2[_0x4eca49(0xc4)](existsSync,_0x32805d))throw new Error(_0x4eca49(0xb7)+_0x4e77de+_0x4eca49(0xb5));console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4e77de+'\x22');return;}const _0x2e060c=await loadSettings(_0x4e77de),_0x341052=_0x2dc5a2[_0x4eca49(0xc9)](formatSettings,_0x2e060c);!_0x341052?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4e77de+'\x22'):console['log'](_0x341052);}export async function configUnset(_0x21095b,_0x3804cd){const _0x1f65b2=_0x164f0d,_0x25bede={'SPTPV':function(_0x4034d3,_0x258016){return _0x4034d3(_0x258016);},'iBsRB':function(_0x331ee8,_0x13fa6f){return _0x331ee8(_0x13fa6f);},'Epqwu':function(_0x5648db,_0x379b9c,_0x19a6ae){return _0x5648db(_0x379b9c,_0x19a6ae);}},_0x2610a0=_0x25bede['SPTPV'](getEnvDir,_0x21095b);if(!existsSync(_0x2610a0))throw new Error(_0x1f65b2(0xb7)+_0x21095b+_0x1f65b2(0xb5));const _0x3ea6d8=await _0x25bede[_0x1f65b2(0xbf)](loadSettings,_0x21095b),_0x45229f=_0x25bede[_0x1f65b2(0xc1)](deleteNestedValue,_0x3ea6d8,_0x3804cd);_0x45229f?(await _0x25bede['Epqwu'](saveSettings,_0x21095b,_0x3ea6d8),console[_0x1f65b2(0xcf)]('Removed\x20'+_0x3804cd)):console[_0x1f65b2(0xcf)]('Key\x20\x22'+_0x3804cd+_0x1f65b2(0xc7));}
1
+ (function(_0x2af2bd,_0x2f1de2){const _0x2c7463=_0x35ed,_0x37121d=_0x2af2bd();while(!![]){try{const _0x222518=parseInt(_0x2c7463(0x1d7))/0x1*(parseInt(_0x2c7463(0x1da))/0x2)+-parseInt(_0x2c7463(0x1d9))/0x3*(-parseInt(_0x2c7463(0x1e4))/0x4)+-parseInt(_0x2c7463(0x1d5))/0x5+-parseInt(_0x2c7463(0x1e6))/0x6+parseInt(_0x2c7463(0x1e8))/0x7*(-parseInt(_0x2c7463(0x1df))/0x8)+-parseInt(_0x2c7463(0x1d2))/0x9*(-parseInt(_0x2c7463(0x1e2))/0xa)+-parseInt(_0x2c7463(0x1d4))/0xb*(parseInt(_0x2c7463(0x1de))/0xc);if(_0x222518===_0x2f1de2)break;else _0x37121d['push'](_0x37121d['shift']());}catch(_0xaa0f12){_0x37121d['push'](_0x37121d['shift']());}}}(_0x20a4,0xe82c6));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function _0x20a4(){const _0x271346=['\x22\x20does\x20not\x20exist.','64HQaQtn','AHkyw','3XvAbst','34436mlZncY','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','pyEKc','Profile\x20\x22','10056XLSDZt','3401864vKPRNH','(not\x20set)','fuaRd','5661940WMWigA','Removed\x20','3946772hUYbYK','KFhPX','4402170ogAkwk','log','7HSWhgc','LWpDP','18OyFaIE','MmfXn','440PLAZnG','5388015OelGrJ'];_0x20a4=function(){return _0x271346;};return _0x20a4();}function parseValue(_0x23b027,_0x5bf6ce){const _0x1a958c={'iLemD':function(_0x12a36b,_0x500416){return _0x12a36b===_0x500416;},'rgwDp':'false'};if(BOOLEAN_KEYS['includes'](_0x23b027)){if(_0x1a958c['iLemD'](_0x5bf6ce,'true'))return!![];if(_0x5bf6ce===_0x1a958c['rgwDp'])return![];throw new Error('Invalid\x20value\x20for\x20'+_0x23b027+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x5bf6ce;}export async function configSet(_0x4d438b,_0x27dc45,_0x5d9ed4){const _0x3927dc=_0x35ed,_0x1f7b4c={'AHkyw':function(_0x265f15,_0xd28349){return _0x265f15(_0xd28349);},'NjmUy':function(_0x10a36c,_0x3162a0,_0xd38029){return _0x10a36c(_0x3162a0,_0xd38029);},'LWpDP':function(_0x581683,_0x2699cf,_0xdc9edb,_0x5459a8){return _0x581683(_0x2699cf,_0xdc9edb,_0x5459a8);}},_0x450846=_0x1f7b4c['AHkyw'](getEnvDir,_0x4d438b);if(!_0x1f7b4c['AHkyw'](existsSync,_0x450846))throw new Error(_0x3927dc(0x1dd)+_0x4d438b+_0x3927dc(0x1db)+_0x4d438b);const _0x322df0=await _0x1f7b4c[_0x3927dc(0x1d8)](loadSettings,_0x4d438b),_0x12a114=_0x1f7b4c['NjmUy'](parseValue,_0x27dc45,_0x5d9ed4);_0x1f7b4c[_0x3927dc(0x1e9)](setNestedValue,_0x322df0,_0x27dc45,_0x12a114),await saveSettings(_0x4d438b,_0x322df0),console['log']('Set\x20'+_0x27dc45+'\x20=\x20'+_0x12a114);}function _0x35ed(_0x22749d,_0x480141){_0x22749d=_0x22749d-0x1d2;const _0x20a46e=_0x20a4();let _0x35edf4=_0x20a46e[_0x22749d];return _0x35edf4;}export async function configGet(_0xfee9cc,_0x201a1d){const _0x4281f5=_0x35ed,_0x25d411={'Wgwia':function(_0x21eecd,_0x4b4d41){return _0x21eecd(_0x4b4d41);},'fuaRd':function(_0x480178,_0x2468c2,_0x3dcf75){return _0x480178(_0x2468c2,_0x3dcf75);},'MmfXn':function(_0x3fff23,_0x1ae074){return _0x3fff23===_0x1ae074;},'pyEKc':'object'},_0x2474f2=_0x25d411['Wgwia'](getEnvDir,_0xfee9cc);if(!existsSync(_0x2474f2))throw new Error(_0x4281f5(0x1dd)+_0xfee9cc+_0x4281f5(0x1d6));const _0x371c3d=await loadSettings(_0xfee9cc),_0x2ed446=_0x25d411[_0x4281f5(0x1e1)](getNestedValue,_0x371c3d,_0x201a1d);if(_0x25d411[_0x4281f5(0x1d3)](_0x2ed446,undefined))console[_0x4281f5(0x1e7)](_0x4281f5(0x1e0));else typeof _0x2ed446===_0x25d411[_0x4281f5(0x1dc)]?console[_0x4281f5(0x1e7)](JSON['stringify'](_0x2ed446,null,0x2)):console[_0x4281f5(0x1e7)](_0x2ed446);}export async function configList(_0x39e2f6){const _0x33b2d0=_0x35ed,_0x582b5a={'KFhPX':function(_0x20a2e3,_0x448142){return _0x20a2e3(_0x448142);}},_0x4bbf33=_0x582b5a['KFhPX'](getSettingsPath,_0x39e2f6);if(!existsSync(_0x4bbf33)){const _0x538789=getEnvDir(_0x39e2f6);if(!_0x582b5a[_0x33b2d0(0x1e5)](existsSync,_0x538789))throw new Error(_0x33b2d0(0x1dd)+_0x39e2f6+_0x33b2d0(0x1d6));console[_0x33b2d0(0x1e7)]('No\x20configuration\x20set\x20for\x20\x22'+_0x39e2f6+'\x22');return;}const _0x3b1ce1=await loadSettings(_0x39e2f6),_0x2787e1=formatSettings(_0x3b1ce1);!_0x2787e1?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x39e2f6+'\x22'):console['log'](_0x2787e1);}export async function configUnset(_0x5cc09b,_0x19ba77){const _0x48d151=_0x35ed,_0x5222fd={'XwMel':function(_0xfbd601,_0x47e7c7){return _0xfbd601(_0x47e7c7);},'VtvqF':function(_0xf7526,_0x2e2a53,_0x2ad309){return _0xf7526(_0x2e2a53,_0x2ad309);}},_0x180c2c=getEnvDir(_0x5cc09b);if(!_0x5222fd['XwMel'](existsSync,_0x180c2c))throw new Error(_0x48d151(0x1dd)+_0x5cc09b+_0x48d151(0x1d6));const _0x539f5f=await loadSettings(_0x5cc09b),_0x233750=_0x5222fd['VtvqF'](deleteNestedValue,_0x539f5f,_0x19ba77);_0x233750?(await saveSettings(_0x5cc09b,_0x539f5f),console['log'](_0x48d151(0x1e3)+_0x19ba77)):console[_0x48d151(0x1e7)]('Key\x20\x22'+_0x19ba77+'\x22\x20not\x20found');}
@@ -1 +1 @@
1
- function _0x54e0(){const _0x283e2f=['\x0aNo\x20profiles\x20found.','push','environmentDetails','dsurG','828YmaEAO','sort','includes','1250908EyVBcj','2907884PKUOqn','1036917BBkLXD','442SmcZBr','1384645IftQYH','gcjjz','tvSaL','679653DBrQGy','LQOfc','endsWith','legacy','1992528SiyDSD','log','UdEzO','isDirectory','sKODS','local','\x20\x20\x20\x20\x20\x20Details:\x20','startsWith','136kWpxgW','lqaOb'];_0x54e0=function(){return _0x283e2f;};return _0x54e0();}(function(_0x73ad11,_0x568c3b){const _0x57968c=_0x36ee,_0x519cbe=_0x73ad11();while(!![]){try{const _0x19d73b=-parseInt(_0x57968c(0x118))/0x1*(parseInt(_0x57968c(0x102))/0x2)+parseInt(_0x57968c(0x101))/0x3+parseInt(_0x57968c(0xff))/0x4+parseInt(_0x57968c(0x103))/0x5+parseInt(_0x57968c(0x10a))/0x6+parseInt(_0x57968c(0x100))/0x7+-parseInt(_0x57968c(0x112))/0x8*(parseInt(_0x57968c(0x106))/0x9);if(_0x19d73b===_0x568c3b)break;else _0x519cbe['push'](_0x519cbe['shift']());}catch(_0x334c2a){_0x519cbe['push'](_0x519cbe['shift']());}}}(_0x54e0,0x34bd2));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';function _0x36ee(_0x338b7d,_0xb51fee){_0x338b7d=_0x338b7d-0xfe;const _0x54e01f=_0x54e0();let _0x36ee43=_0x54e01f[_0x338b7d];return _0x36ee43;}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x3cc883=_0x36ee,_0x140e96={'UdEzO':function(_0x365ceb,_0x57b81c){return _0x365ceb(_0x57b81c);},'sKODS':function(_0x472c31,_0x132a59,_0x1b9d14){return _0x472c31(_0x132a59,_0x1b9d14);},'LQOfc':function(_0x303330,_0x40d6dc,_0x433d01){return _0x303330(_0x40d6dc,_0x433d01);},'RcdPE':function(_0x40affa,_0x143559){return _0x40affa(_0x143559);},'tvSaL':function(_0xa6545e,_0x31d9e3){return _0xa6545e(_0x31d9e3);},'neSNy':'.txt','dsurG':_0x3cc883(0x109)},_0x5c7912=getRangerDir();if(!existsSync(_0x5c7912))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x335a55=await readActiveProfileName(),_0x33132c=[],_0x6dc533={},_0x2c4f96=join(_0x5c7912,_0x3cc883(0x10f));if(_0x140e96[_0x3cc883(0x10c)](existsSync,_0x2c4f96)){const _0x1705fb=await _0x140e96[_0x3cc883(0x10c)](readdir,_0x2c4f96);for(const _0x4a467c of _0x1705fb){const _0xe63c00=_0x140e96[_0x3cc883(0x10e)](join,_0x2c4f96,_0x4a467c),_0x582449=await _0x140e96['UdEzO'](stat,_0xe63c00);_0x582449[_0x3cc883(0x10d)]()&&(_0x33132c[_0x3cc883(0x115)](_0x4a467c),_0x6dc533[_0x4a467c]=_0x3cc883(0x10f));}}const _0x111882=_0x140e96[_0x3cc883(0x10e)](join,_0x5c7912,'ci');if(existsSync(_0x111882)){const _0x12aa30=await readdir(_0x111882);for(const _0x45372b of _0x12aa30){const _0x30b7cf=_0x140e96[_0x3cc883(0x107)](join,_0x111882,_0x45372b),_0x388912=await _0x140e96['RcdPE'](stat,_0x30b7cf);_0x388912[_0x3cc883(0x10d)]()&&(_0x33132c['push'](_0x45372b),_0x6dc533[_0x45372b]='ci');}}const _0x2ea542=await _0x140e96[_0x3cc883(0x105)](readdir,_0x5c7912);for(const _0xe7f11e of _0x2ea542){if(NON_ENV_DIRS['includes'](_0xe7f11e))continue;if(_0xe7f11e[_0x3cc883(0x111)]('.'))continue;if(_0xe7f11e[_0x3cc883(0x108)](_0x140e96['neSNy']))continue;const _0x52c424=_0x140e96[_0x3cc883(0x107)](join,_0x5c7912,_0xe7f11e),_0x206981=await stat(_0x52c424);_0x206981[_0x3cc883(0x10d)]()&&existsSync(join(_0x52c424,'settings.json'))&&(!_0x33132c[_0x3cc883(0xfe)](_0xe7f11e)&&(_0x33132c[_0x3cc883(0x115)](_0xe7f11e),_0x6dc533[_0xe7f11e]=_0x140e96[_0x3cc883(0x117)]));}return{'envNames':_0x33132c,'activeEnv':_0x335a55,'envTypes':_0x6dc533};}export async function envList(){const _0x5adc93=_0x36ee,_0x52febe={'gnMkE':function(_0x5ee696,_0x362552){return _0x5ee696===_0x362552;},'Ooeul':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','VMoWP':function(_0x55628e,_0x59757d){return _0x55628e===_0x59757d;},'gcjjz':_0x5adc93(0x10f),'lqaOb':function(_0x19886a,_0x174e74){return _0x19886a(_0x174e74);}},{envNames:_0x5a0874,activeEnv:_0x51fc8d,envTypes:_0x1f50fa}=await getEnvNames();if(_0x52febe['gnMkE'](_0x5a0874['length'],0x0)){console[_0x5adc93(0x10b)](_0x5adc93(0x114)),console[_0x5adc93(0x10b)](_0x52febe['Ooeul']);return;}console['log']('\x0aProfiles:');for(const _0x8c0428 of _0x5a0874[_0x5adc93(0x119)]()){const _0x589c7c=_0x52febe['VMoWP'](_0x8c0428,_0x51fc8d),_0x3eae2a=_0x1f50fa[_0x8c0428]||_0x52febe[_0x5adc93(0x104)],_0x173078=await _0x52febe[_0x5adc93(0x113)](loadSettings,_0x8c0428),_0x479ad7=_0x3eae2a===_0x5adc93(0x109)?'':'\x20['+_0x3eae2a+']';console['log']('\x20\x20'+(_0x589c7c?'*\x20':'\x20\x20')+_0x8c0428+_0x479ad7),_0x173078['baseUrl']&&console[_0x5adc93(0x10b)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x173078['baseUrl']),_0x173078['environmentDetails']&&console[_0x5adc93(0x10b)](_0x5adc93(0x110)+_0x173078[_0x5adc93(0x116)]);}_0x51fc8d&&console[_0x5adc93(0x10b)]('\x0a*\x20=\x20active\x20profile');}
1
+ const _0x21e460=_0x5598;(function(_0x490c18,_0x84de8d){const _0x201223=_0x5598,_0x47980c=_0x490c18();while(!![]){try{const _0xd2b87e=parseInt(_0x201223(0x168))/0x1*(parseInt(_0x201223(0x164))/0x2)+-parseInt(_0x201223(0x152))/0x3+-parseInt(_0x201223(0x150))/0x4+-parseInt(_0x201223(0x151))/0x5*(parseInt(_0x201223(0x155))/0x6)+-parseInt(_0x201223(0x153))/0x7*(-parseInt(_0x201223(0x157))/0x8)+-parseInt(_0x201223(0x154))/0x9+-parseInt(_0x201223(0x16d))/0xa*(-parseInt(_0x201223(0x158))/0xb);if(_0xd2b87e===_0x84de8d)break;else _0x47980c['push'](_0x47980c['shift']());}catch(_0x20a6e3){_0x47980c['push'](_0x47980c['shift']());}}}(_0x4675,0xf37b5));import{readdir,stat}from'fs/promises';import{join}from'path';function _0x4675(){const _0x495a82=['startsWith','5584968LkUyHL','484PSmEGy','zpTPo','baseUrl','length','settings.json','iCrpF','\x0a*\x20=\x20active\x20profile','dbCqd','\x20\x20\x20\x20\x20\x20URL:\x20','environmentDetails','log','reports','110pGZLWp','bug-bashes','endsWith','AuaWl','28559igBuwA','includes','ulUbW','push','local','1006930PCvtVJ','uVFTS','.txt','isDirectory','7471896dShbFf','4583155zXQxra','4108956Pcpohq','7iLbFkD','13930200cGLgkS','6ddvbIU'];_0x4675=function(){return _0x495a82;};return _0x4675();}import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions',_0x21e460(0x165),_0x21e460(0x163),_0x21e460(0x16c),'ci'];export async function getEnvNames(){const _0x3637f1=_0x21e460,_0x266c4e={'zpTPo':function(_0x85931a,_0x26615a){return _0x85931a(_0x26615a);},'uVFTS':function(_0x1e4111){return _0x1e4111();},'dbCqd':function(_0x67d95e,_0x21e811,_0x5a54f8){return _0x67d95e(_0x21e811,_0x5a54f8);},'AuaWl':'local','sMEsi':function(_0x572131,_0x241018,_0xf8cf8c){return _0x572131(_0x241018,_0xf8cf8c);},'ulUbW':function(_0x49e396,_0x459f99){return _0x49e396(_0x459f99);},'eqMfN':function(_0x25dae1,_0x11fcd8){return _0x25dae1(_0x11fcd8);},'DPBGL':'legacy'},_0x16950a=getRangerDir();if(!_0x266c4e['zpTPo'](existsSync,_0x16950a))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2ad1f6=await _0x266c4e[_0x3637f1(0x16e)](readActiveProfileName),_0x2b1004=[],_0x81e187={},_0x5264e9=join(_0x16950a,'local');if(existsSync(_0x5264e9)){const _0x23ca5d=await _0x266c4e['zpTPo'](readdir,_0x5264e9);for(const _0x36bada of _0x23ca5d){const _0x42b7b3=_0x266c4e[_0x3637f1(0x15f)](join,_0x5264e9,_0x36bada),_0x3e61c3=await stat(_0x42b7b3);_0x3e61c3[_0x3637f1(0x14f)]()&&(_0x2b1004['push'](_0x36bada),_0x81e187[_0x36bada]=_0x266c4e[_0x3637f1(0x167)]);}}const _0x3d8f65=_0x266c4e['sMEsi'](join,_0x16950a,'ci');if(_0x266c4e[_0x3637f1(0x159)](existsSync,_0x3d8f65)){const _0x36d745=await readdir(_0x3d8f65);for(const _0x36021e of _0x36d745){const _0x32c2a2=join(_0x3d8f65,_0x36021e),_0x2a4778=await stat(_0x32c2a2);_0x2a4778[_0x3637f1(0x14f)]()&&(_0x2b1004[_0x3637f1(0x16b)](_0x36021e),_0x81e187[_0x36021e]='ci');}}const _0x49d8a7=await _0x266c4e[_0x3637f1(0x16a)](readdir,_0x16950a);for(const _0x351b25 of _0x49d8a7){if(NON_ENV_DIRS['includes'](_0x351b25))continue;if(_0x351b25[_0x3637f1(0x156)]('.'))continue;if(_0x351b25[_0x3637f1(0x166)](_0x3637f1(0x16f)))continue;const _0x465060=join(_0x16950a,_0x351b25),_0x5ec5c5=await stat(_0x465060);_0x5ec5c5['isDirectory']()&&_0x266c4e['eqMfN'](existsSync,join(_0x465060,_0x3637f1(0x15c)))&&(!_0x2b1004[_0x3637f1(0x169)](_0x351b25)&&(_0x2b1004['push'](_0x351b25),_0x81e187[_0x351b25]=_0x266c4e['DPBGL']));}return{'envNames':_0x2b1004,'activeEnv':_0x2ad1f6,'envTypes':_0x81e187};}function _0x5598(_0x204a91,_0x3462a8){_0x204a91=_0x204a91-0x14f;const _0x467595=_0x4675();let _0x5598e5=_0x467595[_0x204a91];return _0x5598e5;}export async function envList(){const _0x3a1173=_0x21e460,_0x20a6e0={'BwYyA':function(_0x41331e){return _0x41331e();},'iCrpF':function(_0x361711,_0x1ae3b6){return _0x361711===_0x1ae3b6;},'ABlKl':'\x0aNo\x20profiles\x20found.','aMDHT':function(_0x6aa62a,_0x1e98dc){return _0x6aa62a===_0x1e98dc;}},{envNames:_0x2fae30,activeEnv:_0x13c8e4,envTypes:_0x33522c}=await _0x20a6e0['BwYyA'](getEnvNames);if(_0x20a6e0[_0x3a1173(0x15d)](_0x2fae30[_0x3a1173(0x15b)],0x0)){console[_0x3a1173(0x162)](_0x20a6e0['ABlKl']),console['log']('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}console['log']('\x0aProfiles:');for(const _0x21a129 of _0x2fae30['sort']()){const _0x48db39=_0x20a6e0[_0x3a1173(0x15d)](_0x21a129,_0x13c8e4),_0x3018e4=_0x33522c[_0x21a129]||'local',_0x518121=await loadSettings(_0x21a129),_0x35eac0=_0x20a6e0['aMDHT'](_0x3018e4,'legacy')?'':'\x20['+_0x3018e4+']';console[_0x3a1173(0x162)]('\x20\x20'+(_0x48db39?'*\x20':'\x20\x20')+_0x21a129+_0x35eac0),_0x518121[_0x3a1173(0x15a)]&&console[_0x3a1173(0x162)](_0x3a1173(0x160)+_0x518121[_0x3a1173(0x15a)]),_0x518121[_0x3a1173(0x161)]&&console[_0x3a1173(0x162)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x518121[_0x3a1173(0x161)]);}_0x13c8e4&&console[_0x3a1173(0x162)](_0x3a1173(0x15e));}
@@ -1 +1 @@
1
- const _0x2869d5=_0x55af;(function(_0x3fbd5f,_0x1a2413){const _0x432a1e=_0x55af,_0x71d089=_0x3fbd5f();while(!![]){try{const _0x4c18c2=-parseInt(_0x432a1e(0x18a))/0x1*(parseInt(_0x432a1e(0x19c))/0x2)+-parseInt(_0x432a1e(0x18e))/0x3*(parseInt(_0x432a1e(0x116))/0x4)+-parseInt(_0x432a1e(0x10b))/0x5*(parseInt(_0x432a1e(0x10d))/0x6)+parseInt(_0x432a1e(0x11b))/0x7+-parseInt(_0x432a1e(0x143))/0x8*(-parseInt(_0x432a1e(0x1cb))/0x9)+-parseInt(_0x432a1e(0x159))/0xa*(parseInt(_0x432a1e(0x148))/0xb)+parseInt(_0x432a1e(0x16b))/0xc;if(_0x4c18c2===_0x1a2413)break;else _0x71d089['push'](_0x71d089['shift']());}catch(_0x3a9c45){_0x71d089['push'](_0x71d089['shift']());}}}(_0x3e43,0xd57b9));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5d8f24 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=_0x41ed8e=>_0x2869d5(0x1c1)+_0x41ed8e+_0x2869d5(0x187);function getGitRepoUrl(){const _0x4df65e=_0x2869d5,_0x3e29da={'HFksl':'pipe'};try{const _0xac7d03=execSync(_0x4df65e(0x12e),{'encoding':'utf-8','stdio':[_0x3e29da['HFksl'],'pipe',_0x3e29da[_0x4df65e(0xfd)]]})[_0x4df65e(0x138)]();return _0xac7d03[_0x4df65e(0x166)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x12b4ba=_0x2869d5,_0x2e9479={'wTHTg':'utf-8','JbkrB':_0x12b4ba(0x1a0)};try{return execSync(_0x12b4ba(0x140),{'encoding':_0x2e9479['wTHTg'],'stdio':[_0x2e9479[_0x12b4ba(0x17b)],_0x2e9479['JbkrB'],_0x12b4ba(0x1a0)]})[_0x12b4ba(0x138)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x223af6=_0x2869d5,_0x1c70b7={'CjRou':function(_0x10a0d8,_0x22ddbd,_0x10eec8){return _0x10a0d8(_0x22ddbd,_0x10eec8);},'JWmRo':function(_0x2f8278,_0x5ce917){return _0x2f8278(_0x5ce917);}},_0xaaed0a=_0x1c70b7[_0x223af6(0x118)](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x1c70b7['JWmRo'](existsSync,_0xaaed0a))return null;try{const _0x1a7888=await readFile(_0xaaed0a,'utf-8');return _0x1a7888['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x251168){const _0x5a1302={'JVqRx':function(_0x1dbb86){return _0x1dbb86();},'eMfka':function(_0x398591,_0x203bcb){return _0x398591(_0x203bcb);}},_0x37312f=_0x5a1302['JVqRx'](getRangerDir),_0x2b87a8=join(_0x37312f,ACTIVE_FEATURE_FILE);!_0x5a1302['eMfka'](existsSync,_0x37312f)&&await mkdir(_0x37312f,{'recursive':!![]}),await writeFile(_0x2b87a8,_0x251168,'utf-8');}function getProgressDisplay(_0x4de442){const _0x21b62e=_0x2869d5,_0x1e589e={'GVdDq':function(_0x27fb94,_0x1328f9){return _0x27fb94===_0x1328f9;},'wNYOR':function(_0x2058bc,_0x2ee45c){return _0x2058bc*_0x2ee45c;},'Ngajw':function(_0x359a2c,_0x2e5af7){return _0x359a2c-_0x2e5af7;},'hLqxM':function(_0x2e6010,_0x1b651d){return _0x2e6010>_0x1b651d;}},_0x2366e0=_0x4de442['verifiedItems']||0x0,_0x279b25=_0x4de442['verificationInProgressItems']||0x0,_0x14e33d=_0x4de442['blockedItems']||0x0,_0x168903=_0x4de442['incompleteItems']||0x0,_0x2ae696=_0x4de442[_0x21b62e(0x182)]||0x0,_0x593b34=_0x2366e0+_0x279b25+_0x14e33d+_0x168903+_0x2ae696;if(_0x1e589e['GVdDq'](_0x593b34,0x0))return'-';const _0x23bdf9=0xa,_0x250975=Math[_0x21b62e(0x1c5)](_0x1e589e['wNYOR'](_0x2366e0/_0x593b34,_0x23bdf9)),_0x5d4931='โ–ˆ'[_0x21b62e(0x1ae)](_0x250975)+'โ–‘'[_0x21b62e(0x1ae)](_0x1e589e[_0x21b62e(0x15c)](_0x23bdf9,_0x250975)),_0xf0fdd2=[];if(_0x1e589e[_0x21b62e(0x129)](_0x14e33d,0x0))_0xf0fdd2[_0x21b62e(0x1b9)](_0x14e33d+'\x20blocked');if(_0x168903>0x0)_0xf0fdd2['push'](_0x168903+_0x21b62e(0x15b));if(_0x279b25>0x0)_0xf0fdd2[_0x21b62e(0x1b9)](_0x279b25+_0x21b62e(0x109));const _0xba038b=_0xf0fdd2[_0x21b62e(0x131)]>0x0?'\x20('+_0xf0fdd2[_0x21b62e(0x1a3)](',\x20')+')':'';return _0x5d4931+'\x20'+_0x2366e0+'/'+_0x593b34+_0x21b62e(0x105)+_0xba038b;}function _0x55af(_0x42b2c2,_0x503947){_0x42b2c2=_0x42b2c2-0xf9;const _0x3e435f=_0x3e43();let _0x55afe4=_0x3e435f[_0x42b2c2];return _0x55afe4;}function getCurrentSessionItems(_0x233504,_0x27a58c){const _0x3abf88=_0x2869d5;if(!_0x233504['currentSessionId'])return _0x27a58c[_0x3abf88(0x13b)](_0x3b859f=>!_0x3b859f['sessionId']);return _0x27a58c[_0x3abf88(0x13b)](_0x5c6dde=>_0x5c6dde[_0x3abf88(0x19f)]===_0x233504[_0x3abf88(0x181)]||!_0x5c6dde[_0x3abf88(0x19f)]);}function displayFeature(_0x9f1a01,_0x4db77a){const _0x562d44=_0x2869d5,_0x311e95={'VMRQY':function(_0x3d13c1,_0x4319b6){return _0x3d13c1>_0x4319b6;},'qwaJH':_0x562d44(0x119),'VtKlu':'approved','yChqE':function(_0x488fbd,_0x2c6e14){return _0x488fbd===_0x2c6e14;},'lzZBn':_0x562d44(0x192),'rXfaG':'closed','iqDxg':function(_0x2b036a,_0x45e22c){return _0x2b036a===_0x45e22c;},'RVMzV':function(_0x35a40a,_0x1988c3){return _0x35a40a>_0x1988c3;},'zIMWO':function(_0x20c184,_0x39a512){return _0x20c184!==_0x39a512;},'IhnYP':_0x562d44(0x111),'plheQ':function(_0x25c281,_0x20371b){return _0x25c281+_0x20371b;},'zFNVx':'blocked','CTkcW':function(_0x64a478,_0x540398){return _0x64a478===_0x540398;}};console['log']('\x0a'+_0x9f1a01['name']+'\x20('+_0x9f1a01[_0x562d44(0x126)]+')');_0x9f1a01[_0x562d44(0x178)]&&console[_0x562d44(0x17a)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x9f1a01[_0x562d44(0x178)]));_0x9f1a01[_0x562d44(0x191)]&&console[_0x562d44(0x17a)]('\x20\x20\x20Description:\x20'+_0x9f1a01['description']);_0x9f1a01['gitRepoUrl']&&console['log'](_0x562d44(0x1ac)+_0x9f1a01['gitRepoUrl']);_0x9f1a01['gitBranch']&&console[_0x562d44(0x17a)](_0x562d44(0x1a1)+_0x9f1a01['gitBranch']);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x9f1a01[_0x562d44(0x196)])[_0x562d44(0x11d)]());_0x9f1a01[_0x562d44(0x1a2)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x9f1a01['completedAt'])[_0x562d44(0x11d)]());if(_0x4db77a&&_0x311e95[_0x562d44(0x12d)](_0x4db77a['length'],0x0)){console['log'](_0x311e95['qwaJH']);for(let _0x4c256e=0x0;_0x4c256e<_0x4db77a['length'];_0x4c256e++){const _0x18e966=_0x4db77a[_0x4c256e];let _0x57bb34;if(_0x18e966[_0x562d44(0x176)]===_0x562d44(0x189)&&_0x18e966[_0x562d44(0x163)]===_0x311e95['VtKlu'])_0x57bb34='โœ…';else{if(_0x311e95['yChqE'](_0x18e966['status'],'verified'))_0x57bb34='๐ŸŸข';else{if(_0x18e966['status']===_0x311e95[_0x562d44(0x139)])_0x57bb34='๐ŸŸ ';else{if(_0x18e966[_0x562d44(0x176)]==='blocked')_0x57bb34='๐Ÿ›‘';else{if(_0x18e966[_0x562d44(0x176)]===_0x311e95[_0x562d44(0x125)])_0x57bb34='โ›”';else _0x311e95[_0x562d44(0x12f)](_0x18e966[_0x562d44(0x176)],'verification_in_progress')?_0x57bb34='โณ':_0x57bb34='โฌœ';}}}}const _0x25c628=_0x311e95['RVMzV'](_0x18e966[_0x562d44(0x1ce)],0x1)?_0x562d44(0x1c3)+_0x18e966['version']+')':'',_0x29dd96=_0x311e95[_0x562d44(0x12d)](_0x18e966['version'],0x1)&&_0x18e966[_0x562d44(0x132)]&&_0x311e95[_0x562d44(0x10e)](_0x18e966['status'],_0x311e95['rXfaG'])&&_0x311e95[_0x562d44(0x10e)](_0x18e966['status'],_0x311e95['IhnYP'])?_0x562d44(0x198):'';console[_0x562d44(0x17a)](_0x562d44(0x19b)+_0x311e95[_0x562d44(0x110)](_0x4c256e,0x1)+'.\x20'+_0x57bb34+'\x20'+_0x18e966[_0x562d44(0x191)]+_0x25c628+_0x29dd96);_0x18e966[_0x562d44(0x176)]===_0x311e95['zFNVx']&&_0x18e966[_0x562d44(0x193)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x18e966['blockedReason']);_0x18e966[_0x562d44(0x176)]==='incomplete'&&_0x18e966[_0x562d44(0x1b8)]&&console[_0x562d44(0x17a)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x18e966[_0x562d44(0x1b8)]);if(_0x18e966['status']==='closed'&&_0x311e95['CTkcW'](_0x18e966['terminalReason'],_0x311e95['VtKlu']))console[_0x562d44(0x17a)](_0x562d44(0x101));else _0x18e966['status']==='closed'&&_0x18e966[_0x562d44(0x173)]&&console[_0x562d44(0x17a)](_0x562d44(0x1b4)+_0x18e966[_0x562d44(0x173)]);}}}export async function featureCreate(_0x5e9ffb,_0x28ffa1){const _0x18f247=_0x2869d5,_0x2a2162={'YEqaT':function(_0x147275,_0x4fdb54){return _0x147275===_0x4fdb54;},'jwAjI':function(_0x166875){return _0x166875();},'LcOFS':function(_0x1d8826,_0x238f9c){return _0x1d8826(_0x238f9c);},'yhjAL':function(_0x42682a,_0x4ffc34){return _0x42682a(_0x4ffc34);},'SQZsr':function(_0x32978e,_0x4fbd85,_0xd77b8a){return _0x32978e(_0x4fbd85,_0xd77b8a);}},{envNames:_0x10e16c}=await getEnvNames();_0x2a2162['YEqaT'](_0x10e16c['length'],0x0)&&console[_0x18f247(0x14a)]('\x0a'+formatProfileRequiredMessage(_0x1b53eb=>bold(_0x1b53eb)));const _0x34ea4d=_0x28ffa1['scenarios']?_0x28ffa1['scenarios']['map'](_0x21640d=>_0x21640d[_0x18f247(0x138)]()):[],_0x2ef83f=_0x2a2162[_0x18f247(0xfe)](getGitRepoUrl),_0x3f0140=getGitBranch();console[_0x18f247(0x17a)]('\x0aCreating\x20feature\x20review...');const _0x319481=await createFeature({'name':_0x5e9ffb,'description':_0x28ffa1[_0x18f247(0x191)],'checklist':_0x34ea4d,'gitRepoUrl':_0x2ef83f,'gitBranch':_0x3f0140});await _0x2a2162[_0x18f247(0x10a)](setActiveFeatureId,_0x319481['id']),await _0x2a2162['yhjAL'](tryStartCurrentSession,_0x319481['id']);const _0x126264=process['env']['CLAUDE_SESSION_ID'];_0x126264&&_0x2a2162[_0x18f247(0x16d)](registerSession,_0x126264,_0x319481['id']),console['log']('\x0aโœ…\x20Feature\x20review\x20created:\x20'+_0x319481['id']),displayFeature(_0x319481,_0x319481[_0x18f247(0x17f)]),console[_0x18f247(0x17a)](_0x18f247(0x18d));}export async function featureList(_0x364034){const _0x1cd867=_0x2869d5,_0x173b9a={'AJrph':function(_0xb7b8d1){return _0xb7b8d1();},'UeuoN':function(_0x1121c7,_0x66f297){return _0x1121c7(_0x66f297);},'scRaY':function(_0x40343f,_0x171025){return _0x40343f(_0x171025);},'mMLkw':function(_0x1b5a2f,_0xaff0f5){return _0x1b5a2f+_0xaff0f5;},'mCewH':_0x1cd867(0x188),'KMHSd':'\x20--include-deleted'},_0x281aaf={'limit':_0x364034['limit']??0xa,'offset':_0x364034['offset']??0x0,'includeDeleted':_0x364034['includeDeleted']};_0x364034[_0x1cd867(0x1bb)]&&(_0x281aaf[_0x1cd867(0x12b)]=_0x173b9a['AJrph'](getGitRepoUrl),_0x281aaf[_0x1cd867(0x199)]=getGitBranch());const _0x461a9e=await _0x173b9a['UeuoN'](listFeatures,_0x281aaf);if(_0x461a9e[_0x1cd867(0x1c8)][_0x1cd867(0x131)]===0x0){console[_0x1cd867(0x17a)](_0x1cd867(0x1b6));return;}const _0xb10365=_0x461a9e['totalCount']>_0x461a9e['items'][_0x1cd867(0x131)]?'Showing\x20'+_0x461a9e[_0x1cd867(0x1c8)][_0x1cd867(0x131)]+_0x1cd867(0x1b0)+_0x461a9e['totalCount']:_0x461a9e[_0x1cd867(0x122)]+'\x20feature\x20review(s)\x20found';console[_0x1cd867(0x17a)]('\x0a'+_0xb10365+':\x0a');for(const _0x12df7d of _0x461a9e['items']){console['log'](''+_0x12df7d['name']),console[_0x1cd867(0x17a)](_0x1cd867(0x1c9)+_0x12df7d['id']),_0x12df7d[_0x1cd867(0x178)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x173b9a[_0x1cd867(0x150)](getProgressDisplay,_0x12df7d[_0x1cd867(0x178)])),_0x12df7d['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0x12df7d[_0x1cd867(0x199)]),console[_0x1cd867(0x17a)]('\x20\x20\x20Created:\x20'+new Date(_0x12df7d[_0x1cd867(0x196)])['toLocaleDateString']()),console['log']('');}const _0x785ccb=_0x281aaf[_0x1cd867(0x11f)]??0xa,_0x44ac77=_0x173b9a['mMLkw'](_0x281aaf['offset']??0x0,_0x461a9e['items']['length']);if(_0x44ac77<_0x461a9e['totalCount']){const _0x57aec9=_0x785ccb!==0xa?'\x20--limit\x20'+_0x785ccb:'',_0x7dbed4=_0x364034['currentBranch']?_0x173b9a[_0x1cd867(0x19d)]:'',_0x26ec17=_0x364034['includeDeleted']?_0x173b9a['KMHSd']:'';console[_0x1cd867(0x17a)](_0x1cd867(0x155)+_0x44ac77+_0x57aec9+_0x7dbed4+_0x26ec17);}}function _0x3e43(){const _0xd0c246=['\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','scRaY','\x0aโŒ\x20No\x20scenarios\x20found\x20to\x20edit.','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20\x20\x20\x20\x20Progress:\x20','NKznY','Next\x20page:\x20ranger\x20list\x20--offset\x20','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','json','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','2824560dUTKyz','\x0aโŒ\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20incomplete','Ngajw','peihP','\x20\x20โœ…\x20No\x20feedback\x20to\x20address','completed','No\x20scenarios\x20found.','content','\x20โ€”\x20','terminalReason','Screenshot\x20','lQalh','replace','stepName','isTTY','stdout','4|5|0|1|3|2','35759064IujGFF','name','SQZsr','TWLDZ','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a๐Ÿ“\x20Sessions\x20for\x20feature\x20review:\x20','\x0aAvailable\x20scenarios:','linkedSession','canceledReason','gBJZE','textContent','status','style','stats','isInteger','log','JbkrB','Rmkvf','numeric','PcxFg','checklistItems','exit','currentSessionId','pendingItems','tEgeD','/api/v1/mcp/browser-sessions/','IVgZD','\x0aโœ…\x20Restored\x20feature\x20review:\x20','\x1b[0m','\x20--current-branch','closed','4177TKZmGQ','\x20\x20\x20\x20\x20๐ŸŽฏ\x20Element:\x20<','assetUrl','\x0aโžก๏ธ\x20\x20Set\x20as\x20active\x20feature\x20review','11499HsrmiE','FXLNJ','toFixed','description','incomplete','blockedReason','ready','list','createdAt','in_progress','\x20[has\x20reviewer\x20feedback]','gitBranch','lRdGl','\x20\x20\x20','184pNPKxw','mCewH','CLAUDE_SESSION_ID','sessionId','pipe','\x20\x20\x20Branch:\x20','completedAt','join','KaLbF','latestReview','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x0aโŒ\x20All\x20scenarios\x20were\x20excluded.','\x0aโŒ\x20Invalid\x20scenario\x20number(s):\x20','env','all','DXEHn','\x20\x20\x20Repository:\x20','unaddressedComments','repeat','prompt','\x20of\x20','spatial','coordinates','npxkA','\x20\x20\x20\x20\x20\x20Cancelled:\x20','iteration','\x0aNo\x20feature\x20reviews\x20found.','timing','incompleteReason','push','\x0aโœ…\x20Session\x20is\x20already\x20completed.','currentBranch','submittedAt','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20Session\x20','mWkRH','ruOyX','\x1b[1m','\x0aโœ…\x20Scenario\x20updated','\x20(v','\x20at\x20[','round','MWUXw','\x20\x20\x20\x20\x20๐Ÿ“ท\x20Screenshot:\x20','items','\x20\x20\x20ID:\x20','split','11652714hXvuOd','Unknown','DCCDo','version','map','TbpQS','screenshotUrls','browserSessionId','\x0aโœ…\x20Resumed\x20feature\x20review:\x20','ZXwon','\x20concluded.','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','HFksl','jwAjI','\x0a๐Ÿ—‘๏ธ\x20\x20Deleted\x20feature\x20review:\x20','iAIqc','\x20\x20\x20\x20\x20\x20Approved','cTWqN','\x20>\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','\x20verified','AROtU','isKeyStep','\x20unaddressed\x20comment(s)','\x20in\x20progress','LcOFS','5760yxRLAe','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','7794mXGhLf','zIMWO',':\x20\x22','plheQ','verified','assets','frmPU','canonicalFlow','has','1352PQTeUT','IcHpD','CjRou','\x0a\x20\x20\x20Scenarios:','verification_in_progress','4363877xJVuLz','QKMuS','toLocaleString','find','limit','fDULb','\x20\x20\x20\x20\x20๐Ÿ“\x20Annotation:\x20','totalCount','GBodT','screenshot','rXfaG','dashboardUrl','AIChm','agentResponse','hLqxM','HWaKb','gitRepoUrl','JqAGs','VMRQY','git\x20remote\x20get-url\x20origin','iqDxg','selected','length','parentItemId','.\x20Feature\x20review\x20has\x20','.png','error','domRef','HOUJD','trim','lzZBn','snMtb','filter','POuRF','pop','write','feedback-images','git\x20rev-parse\x20--abbrev-ref\x20HEAD','reports','type','8HWGNap','scenario','assetType','\x20\x20\x20\x20\x20Branch:\x20','hOyEA','33mfhgVT','WXQQa','warn','excludeScenarios','\x20scenario(s).','\x20\x20\x20Created:\x20','UProH'];_0x3e43=function(){return _0xd0c246;};return _0x3e43();}export async function featureShow(_0x233ecb){const _0x1b606a=_0x2869d5,_0x3d89d2={'ccLlK':function(_0x33a678){return _0x33a678();},'bBfUC':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','iAIqc':function(_0x16c16b,_0x2ac89e,_0xabe666){return _0x16c16b(_0x2ac89e,_0xabe666);}},_0x2434eb=_0x233ecb||await _0x3d89d2['ccLlK'](getActiveFeatureId);if(!_0x2434eb)throw new Error(_0x3d89d2['bBfUC']);const _0x4ac840=await getFeature(_0x2434eb);_0x3d89d2[_0x1b606a(0x100)](displayFeature,_0x4ac840,_0x4ac840[_0x1b606a(0x17f)]);}export async function featureResume(_0x59fda9){const _0x31197c=_0x2869d5,_0x275a88={'DCCDo':function(_0x4fc529,_0x9d9c16){return _0x4fc529(_0x9d9c16);},'FXLNJ':function(_0x199856,_0x390192,_0x38e51a){return _0x199856(_0x390192,_0x38e51a);},'NKznY':function(_0x313c10,_0x5ae81e){return _0x313c10&&_0x5ae81e;},'mWkRH':'any','KOVjo':function(_0x576907,_0x4a1098){return _0x576907===_0x4a1098;},'ruOyX':_0x31197c(0x152),'SFQcc':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','MagCK':_0x31197c(0x158),'AilSl':_0x31197c(0x195),'BTzBB':_0x31197c(0x10c),'QKMuS':function(_0x4afb37,_0x133da5){return _0x4afb37(_0x133da5);}};if(_0x59fda9){const _0x35050c=await getFeature(_0x59fda9);await _0x275a88['DCCDo'](setActiveFeatureId,_0x35050c['id']);const _0x4d1cdc=getGitBranch();_0x4d1cdc&&_0x4d1cdc!==_0x35050c['gitBranch']&&(await updateFeature(_0x35050c['id'],{'gitBranch':_0x4d1cdc}),console[_0x31197c(0x17a)](_0x31197c(0x104)+_0x4d1cdc));console['log'](_0x31197c(0xf9)+_0x35050c[_0x31197c(0x16c)]+'\x20('+_0x35050c['id']+')'),await tryStartCurrentSession(_0x35050c['id']);const _0xb1935d=process[_0x31197c(0x1a9)][_0x31197c(0x19e)];_0xb1935d&&registerSession(_0xb1935d,_0x35050c['id']);_0x275a88[_0x31197c(0x18f)](displayFeature,_0x35050c,_0x35050c[_0x31197c(0x17f)]),await printFeedbackNudge(_0x35050c['id']);return;}const _0x5507db=getGitRepoUrl(),_0x51c0fa=getGitBranch();if(_0x275a88[_0x31197c(0x154)](!_0x5507db,!_0x51c0fa))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0x5507db||_0x275a88[_0x31197c(0x1bf)])+'\x20/\x20'+(_0x51c0fa||_0x275a88['mWkRH'])+'...');const _0x1073ef=await listFeatures({'gitRepoUrl':_0x5507db,'gitBranch':_0x51c0fa}),_0x1a069f=_0x1073ef[_0x31197c(0x1c8)][_0x31197c(0x13b)](_0x47a33f=>_0x47a33f['status']?_0x47a33f['status']!=='verified':!_0x47a33f[_0x31197c(0x1a2)]);if(_0x275a88['KOVjo'](_0x1a069f[_0x31197c(0x131)],0x0)){console['log'](_0x31197c(0xfc)),console['log'](_0x275a88[_0x31197c(0x1c0)]);return;}let _0x519cbe;if(_0x275a88['KOVjo'](_0x1a069f['length'],0x1))_0x519cbe=_0x1a069f[0x0];else{const _0x25f8df=process['stdin'][_0x31197c(0x168)]&&process['stdout']['isTTY'];if(!_0x25f8df){console['log'](_0x275a88['SFQcc']);for(const _0x2615f4 of _0x1a069f){console['log']('\x20\x20'+_0x2615f4['name']),console[_0x31197c(0x17a)]('\x20\x20\x20\x20\x20ID:\x20'+_0x2615f4['id']),_0x2615f4[_0x31197c(0x178)]&&console[_0x31197c(0x17a)](_0x31197c(0x153)+_0x275a88[_0x31197c(0x1cd)](getProgressDisplay,_0x2615f4['stats'])),_0x2615f4[_0x31197c(0x199)]&&console['log'](_0x31197c(0x146)+_0x2615f4['gitBranch']);}throw new Error(_0x275a88['MagCK']);}const {selected:_0x4691f3}=await _0x5d8f24[_0x31197c(0x1af)]([{'type':_0x275a88['AilSl'],'name':_0x31197c(0x130),'message':_0x275a88['BTzBB'],'choices':_0x1a069f[_0x31197c(0x1cf)](_0x5f4360=>({'name':_0x5f4360['name']+'\x20('+_0x5f4360['id']+')','value':_0x5f4360['id']}))}]);_0x519cbe=_0x1a069f['find'](_0x2711d6=>_0x2711d6['id']===_0x4691f3);}await setActiveFeatureId(_0x519cbe['id']);_0x51c0fa&&_0x51c0fa!==_0x519cbe['gitBranch']&&(await _0x275a88['FXLNJ'](updateFeature,_0x519cbe['id'],{'gitBranch':_0x51c0fa}),console[_0x31197c(0x17a)](_0x31197c(0x104)+_0x51c0fa));console['log'](_0x31197c(0xf9)+_0x519cbe['name']+'\x20('+_0x519cbe['id']+')'),await _0x275a88[_0x31197c(0x11c)](tryStartCurrentSession,_0x519cbe['id']);const _0x3d29f9=await _0x275a88[_0x31197c(0x1cd)](getFeature,_0x519cbe['id']),_0x1b86da=process[_0x31197c(0x1a9)]['CLAUDE_SESSION_ID'];_0x1b86da&&_0x275a88[_0x31197c(0x18f)](registerSession,_0x1b86da,_0x3d29f9['id']),displayFeature(_0x3d29f9,_0x3d29f9[_0x31197c(0x17f)]),await _0x275a88[_0x31197c(0x1cd)](printFeedbackNudge,_0x3d29f9['id']);}async function printFeedbackNudge(_0x3063ee){const _0x3cadb2=_0x2869d5,_0x7a8ce9={'MWUXw':function(_0x435c48,_0x3d1de5,_0x5e5ac1){return _0x435c48(_0x3d1de5,_0x5e5ac1);},'tZtrU':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0x51c435}=await getActionItems(_0x3063ee);let _0x3d689f=0x0,_0xc7a149=0x0;for(const _0x50809f of _0x51c435){const _0x316f56=await _0x7a8ce9[_0x3cadb2(0x1c6)](getItemFeedback,_0x3063ee,_0x50809f['id']);_0x316f56[_0x3cadb2(0x1ad)][_0x3cadb2(0x131)]>0x0&&(_0x3d689f+=_0x316f56[_0x3cadb2(0x1ad)][_0x3cadb2(0x131)],_0xc7a149++);}_0x3d689f>0x0&&(console[_0x3cadb2(0x17a)]('\x0aโš ๏ธ\x20\x20'+_0x3d689f+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0xc7a149+_0x3cadb2(0x14c)),console['log'](_0x7a8ce9['tZtrU']));}catch{}}async function tryStartCurrentSession(_0x1cba69){const _0x257caf=_0x2869d5,_0x31c9a3={'IcHpD':function(_0x205205,_0x3e8370){return _0x205205(_0x3e8370);}};try{const {sessions:_0x5e556d}=await _0x31c9a3[_0x257caf(0x117)](listFeatureSessions,_0x1cba69),_0x11928c=_0x5e556d['find'](_0xbdd681=>_0xbdd681['status']===_0x257caf(0x194));_0x11928c&&(await startSession(_0x1cba69,_0x11928c['id']),console[_0x257caf(0x17a)]('\x20\x20\x20โ–ถ๏ธ\x20Started\x20session\x20'+_0x11928c[_0x257caf(0x1b5)]));}catch{}}export async function featureReport(_0x59d711,_0x5dd53b){const _0x93de16=_0x2869d5,_0x35979c={'VQekv':function(_0x39b1b5){return _0x39b1b5();},'ZXwon':function(_0x258455,_0x1a57db,_0x338790){return _0x258455(_0x1a57db,_0x338790);},'RHPRl':function(_0x47abfa,_0x3de2ef,_0x576d88,_0x2cd1cd){return _0x47abfa(_0x3de2ef,_0x576d88,_0x2cd1cd);},'NFBhT':function(_0x223931,_0xb57ed3){return _0x223931(_0xb57ed3);},'gBJZE':function(_0x46534a,_0x19f08f,_0xa6378a,_0x47d6c1){return _0x46534a(_0x19f08f,_0xa6378a,_0x47d6c1);},'Ewslj':'utf-8'},_0x3069de=_0x59d711||await _0x35979c['VQekv'](getActiveFeatureId);if(!_0x3069de)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console['log']('\x0aGenerating\x20report...');const _0x59eb6c=await _0x35979c[_0x93de16(0xfa)](getFeatureReportMarkdown,_0x3069de,{'style':_0x5dd53b[_0x93de16(0x177)]}),_0x5f22db=_0x5dd53b['output']||_0x35979c['RHPRl'](join,getRangerDir(),_0x93de16(0x141),_0x3069de+'.md'),_0x451b6a=_0x35979c['ZXwon'](join,_0x5f22db,'..');!_0x35979c['NFBhT'](existsSync,_0x451b6a)&&await mkdir(_0x451b6a,{'recursive':!![]}),await _0x35979c[_0x93de16(0x174)](writeFile,_0x5f22db,_0x59eb6c,_0x35979c['Ewslj']),console[_0x93de16(0x17a)]('\x0aโœ…\x20Report\x20generated:\x20'+_0x5f22db);}function getScenarioResult(_0x53d478){const _0x387c52=_0x2869d5,_0x34156b={'IVgZD':_0x387c52(0x189),'HOUJD':_0x387c52(0x11a)};if(_0x53d478['status']===_0x34156b[_0x387c52(0x185)])return _0x53d478['terminalReason']??_0x34156b[_0x387c52(0x185)];if(_0x53d478[_0x387c52(0x176)]===_0x34156b[_0x387c52(0x137)])return _0x387c52(0x197);return _0x53d478[_0x387c52(0x176)];}function getScenarioRationale(_0xf211f4,_0x269d57){const _0x551352=_0x2869d5,_0x435c13={'TbpQS':_0x551352(0x16a)},_0x31a9b3=_0x435c13[_0x551352(0x1d0)]['split']('|');let _0x234252=0x0;while(!![]){switch(_0x31a9b3[_0x234252++]){case'0':if(_0xf211f4[_0x551352(0x1b8)])return _0xf211f4[_0x551352(0x1b8)];continue;case'1':if(_0xf211f4[_0x551352(0x173)])return _0xf211f4['canceledReason'];continue;case'2':return null;case'3':if(_0xf211f4['notes'])return _0xf211f4['notes'];continue;case'4':if(_0x269d57)return _0x269d57;continue;case'5':if(_0xf211f4['blockedReason'])return _0xf211f4[_0x551352(0x193)];continue;}break;}}export async function featureReportPrDescription(_0x185889,_0x10cbc4){const _0x57e4cc=_0x2869d5,_0x59bda9={'xvNbP':_0x57e4cc(0x16f),'Rmkvf':'\x0aโŒ\x20No\x20scenarios\x20found\x20to\x20include.','lRdGl':function(_0x29987a,_0x4e117f,_0x2f151a,_0x5c12e1){return _0x29987a(_0x4e117f,_0x2f151a,_0x5c12e1);},'cTWqN':function(_0x3e4102,_0x223f61,_0xf4da6a){return _0x3e4102(_0x223f61,_0xf4da6a);}},_0x59bfec=_0x185889||await getActiveFeatureId();if(!_0x59bfec)throw new Error(_0x59bda9['xvNbP']);const _0x33689f=await getFeature(_0x59bfec),_0x3b7c23=_0x33689f['checklistItems']||[],_0x409188=getCurrentSessionItems(_0x33689f,_0x3b7c23);_0x409188[_0x57e4cc(0x131)]===0x0&&(console[_0x57e4cc(0x135)](_0x59bda9[_0x57e4cc(0x17c)]),process[_0x57e4cc(0x180)](0x1));const _0x5cddfd=_0x10cbc4[_0x57e4cc(0x14b)]??[],_0x8df020=_0x5cddfd[_0x57e4cc(0x13b)](_0xd10010=>!Number[_0x57e4cc(0x179)](_0xd10010)||_0xd10010<0x1||_0xd10010>_0x409188['length']);if(_0x8df020['length']>0x0){console['error'](_0x57e4cc(0x1a8)+_0x8df020['join'](',\x20')),console['log'](_0x57e4cc(0x171));for(let _0x7e6fd4=0x0;_0x7e6fd4<_0x409188[_0x57e4cc(0x131)];_0x7e6fd4++){console[_0x57e4cc(0x17a)]('\x20\x20'+(_0x7e6fd4+0x1)+'.\x20'+_0x409188[_0x7e6fd4]['description']);}process[_0x57e4cc(0x180)](0x1);}const _0x53f696=new Set(_0x5cddfd['map'](_0x4cbeea=>_0x4cbeea-0x1)),_0x3d8101=_0x409188['filter']((_0x3e1346,_0x5e7be6)=>!_0x53f696[_0x57e4cc(0x115)](_0x5e7be6));_0x3d8101['length']===0x0&&(console[_0x57e4cc(0x135)](_0x57e4cc(0x1a7)),process[_0x57e4cc(0x180)](0x1));if(_0x10cbc4[_0x57e4cc(0x157)])await _0x59bda9[_0x57e4cc(0x19a)](outputJsonReport,_0x59bfec,_0x33689f,_0x3d8101);else{const _0x41fdb1=await _0x59bda9[_0x57e4cc(0x102)](getFeatureReportMarkdown,_0x59bfec,{'itemIds':_0x3d8101[_0x57e4cc(0x1cf)](_0x5fe2b3=>_0x5fe2b3['id'])});process[_0x57e4cc(0x169)]['write'](_0x41fdb1['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x52aa30,_0x2aa4b2,_0x50377b){const _0x21637f=_0x2869d5,_0x81058c={'MTOoa':function(_0x456f48,_0x4190e8){return _0x456f48(_0x4190e8);},'aXaZl':function(_0x530d66){return _0x530d66();}},_0x5df406=_0x81058c['aXaZl'](getApiBaseUrl),_0x3113f9=await getFeatureReport(_0x52aa30),_0x22f0c4=new Map(_0x3113f9['checklistItems'][_0x21637f(0x1cf)](_0x5bc489=>[_0x5bc489['id'],_0x5bc489])),_0x440837=await Promise[_0x21637f(0x1aa)](_0x50377b['map'](async _0x14f7fb=>{const _0x4b962f=_0x21637f,_0xdc5f30=_0x22f0c4['get'](_0x14f7fb['id']),_0xd7692a=_0xdc5f30?.[_0x4b962f(0x172)]??null;let _0x356b73=[];if(_0x14f7fb['browserSessionId'])try{const {steps:_0x34aa9c}=await _0x81058c['MTOoa'](getBrowserSessionSteps,_0x14f7fb[_0x4b962f(0x1d2)]);_0x34aa9c[_0x4b962f(0x131)]>0x0&&(_0x356b73=_0x34aa9c[_0x4b962f(0x1cf)](_0x2892d0=>{const _0x2f9ca2=_0x4b962f,_0x45aaf4=_0x2892d0[_0x2f9ca2(0x112)]['find'](_0x35d35a=>_0x35d35a['assetType']===_0x2f9ca2(0x124)&&_0x35d35a[_0x2f9ca2(0x1b7)]==='after')??_0x2892d0[_0x2f9ca2(0x112)]['find'](_0x3ee229=>_0x3ee229[_0x2f9ca2(0x145)]==='screenshot');let _0xa5a808=null,_0xee45c1=null;if(_0x45aaf4){const _0x9087e6=_0x45aaf4['storage']['location'][_0x2f9ca2(0x1ca)]('/')[_0x2f9ca2(0x13d)]();_0xa5a808=_0x5df406+_0x2f9ca2(0x184)+_0x14f7fb['browserSessionId']+'/artifacts/'+_0x9087e6,_0x9087e6&&(_0xee45c1=_0x9087e6['replace'](/\.\w+$/,'')[_0x2f9ca2(0x166)](/^(key_)?\d+_/,'')[_0x2f9ca2(0x166)](/[-_]/g,'\x20'));}return{'description':_0xee45c1||_0x2892d0[_0x2f9ca2(0x191)]||_0x2892d0[_0x2f9ca2(0x167)]||'Step\x20'+_0x2892d0['position'],'screenshot':_0xa5a808,'is_key_step':_0x2892d0[_0x2f9ca2(0x107)]};}));}catch{}return _0x356b73[_0x4b962f(0x131)]===0x0&&_0xd7692a?.['screenshotUrls']&&(_0x356b73=_0xd7692a[_0x4b962f(0x1d1)]['map']((_0x4a8a70,_0xda45fa)=>({'description':_0x4b962f(0x164)+(_0xda45fa+0x1),'screenshot':_0x4a8a70,'is_key_step':![]}))),{'description':_0x14f7fb[_0x4b962f(0x191)],'result':getScenarioResult(_0x14f7fb),'rationale':getScenarioRationale(_0x14f7fb,_0xd7692a?.[_0x4b962f(0x128)]),'steps':_0x356b73};})),_0x5a0ce7={'url':_0x2aa4b2[_0x21637f(0x126)],'scenarios':_0x440837};process['stdout'][_0x21637f(0x13e)](JSON['stringify'](_0x5a0ce7,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x33c43c){const _0x43c955=_0x2869d5,_0x3b3ce3={'tEgeD':function(_0x4ad32e){return _0x4ad32e();},'frmPU':_0x43c955(0x1bd),'kDFAi':function(_0x308a95,_0x1f8eb1){return _0x308a95(_0x1f8eb1);},'Ogcej':'Current\x20session\x20not\x20found.','YdcFI':_0x43c955(0x1ba),'wiEus':function(_0x183bc4,_0x62df8f){return _0x183bc4!==_0x62df8f;},'IjiAH':'\x0aConcluding\x20session...','QgYuF':function(_0x82c5f,_0x20e9c7,_0xfdfb2a){return _0x82c5f(_0x20e9c7,_0xfdfb2a);}},_0x4be9c0=_0x33c43c||await _0x3b3ce3[_0x43c955(0x183)](getActiveFeatureId);if(!_0x4be9c0)throw new Error(_0x3b3ce3[_0x43c955(0x113)]);const _0x2caab2=await getFeature(_0x4be9c0);if(!_0x2caab2[_0x43c955(0x181)])throw new Error('No\x20active\x20session\x20for\x20this\x20feature\x20review.');const {sessions:_0x20e1a6}=await _0x3b3ce3['kDFAi'](listFeatureSessions,_0x4be9c0),_0x586516=_0x20e1a6[_0x43c955(0x11e)](_0x36b953=>_0x36b953['id']===_0x2caab2[_0x43c955(0x181)]);if(!_0x586516)throw new Error(_0x3b3ce3['Ogcej']);if(_0x586516[_0x43c955(0x176)]==='completed'){console['log'](_0x3b3ce3['YdcFI']);return;}if(_0x3b3ce3['wiEus'](_0x586516['status'],_0x43c955(0x197)))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x586516[_0x43c955(0x176)]);console['log'](_0x3b3ce3['IjiAH']),await _0x3b3ce3['QgYuF'](concludeSession,_0x4be9c0,_0x2caab2['currentSessionId']),console[_0x43c955(0x17a)]('\x0aโœ…\x20Session\x20'+_0x586516[_0x43c955(0x1b5)]+_0x43c955(0xfb)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4b4a3c){const _0x2e8724=_0x2869d5,_0x259a8e={'nFwmJ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','DXEHn':function(_0x120bb7,_0x479041){return _0x120bb7(_0x479041);},'UProH':function(_0x4a5074,_0x5b6e53){return _0x4a5074===_0x5b6e53;},'GBodT':'No\x20sessions\x20found.','rThup':_0x2e8724(0x15f)},_0x2adf65=_0x4b4a3c||await getActiveFeatureId();if(!_0x2adf65)throw new Error(_0x259a8e['nFwmJ']);const _0x585d57=await _0x259a8e[_0x2e8724(0x1ab)](getFeature,_0x2adf65);console['log'](_0x2e8724(0x170)+_0x585d57['name']+'\x0a');const {sessions:_0x21900f}=await listFeatureSessions(_0x2adf65);if(_0x259a8e[_0x2e8724(0x14e)](_0x21900f[_0x2e8724(0x131)],0x0)){console['log'](_0x259a8e[_0x2e8724(0x123)]);return;}for(const _0x2c950d of _0x21900f){const _0x570daa=_0x259a8e['UProH'](_0x2c950d['status'],_0x259a8e['rThup'])?'โœ…':_0x259a8e[_0x2e8724(0x14e)](_0x2c950d[_0x2e8724(0x176)],_0x2e8724(0x197))?'๐Ÿ”„':'โ–ถ๏ธ';console[_0x2e8724(0x17a)](_0x570daa+_0x2e8724(0x1be)+_0x2c950d[_0x2e8724(0x1b5)]+'\x20('+_0x2c950d['id']+')'),console[_0x2e8724(0x17a)]('\x20\x20\x20Status:\x20'+_0x2c950d[_0x2e8724(0x176)]),console[_0x2e8724(0x17a)](_0x2e8724(0x14d)+new Date(_0x2c950d[_0x2e8724(0x196)])[_0x2e8724(0x11d)]()),_0x2c950d['completedAt']&&console[_0x2e8724(0x17a)]('\x20\x20\x20Completed:\x20'+new Date(_0x2c950d['completedAt'])['toLocaleString']()),console[_0x2e8724(0x17a)]('');}}export async function featureAddScenario(_0x4e7823,_0x12045f){const _0x4c74fd=_0x2869d5,_0x4c359a={'VCZXB':function(_0x590ef4,_0x6297ce,_0x87a802){return _0x590ef4(_0x6297ce,_0x87a802);}},_0x529d4a=_0x12045f||await getActiveFeatureId();if(!_0x529d4a)throw new Error(_0x4c74fd(0x1bd));const _0xd0cd4c=await getFeature(_0x529d4a);if(_0xd0cd4c['latestReview']&&!_0xd0cd4c[_0x4c74fd(0x1a5)][_0x4c74fd(0x1bc)])throw new Error(_0x4c74fd(0x1a6)+_0xd0cd4c['dashboardUrl']);await _0x4c359a['VCZXB'](createChecklistItem,_0x529d4a,_0x4e7823);const _0x59d74e=await getFeature(_0x529d4a);console['log']('\x0aโœ…\x20Scenario\x20added'),_0x4c359a['VCZXB'](displayFeature,_0x59d74e,_0x59d74e[_0x4c74fd(0x17f)]);}export async function featureEditScenario(_0x21ca2d,_0x88532a){const _0x353b00=_0x2869d5,_0x1ad142={'sVqWn':function(_0x88117a,_0x23b5a9){return _0x88117a===_0x23b5a9;},'TWLDZ':'\x0aAvailable\x20scenarios:','kmjUI':function(_0x4b4dcf,_0x174996){return _0x4b4dcf<_0x174996;},'hOyEA':function(_0x4f1c0d,_0x4d4fae){return _0x4f1c0d-_0x4d4fae;},'PcxFg':function(_0x686766,_0x5563a2){return _0x686766>=_0x5563a2;},'HWaKb':function(_0x3b8ff6,_0x4336ac){return _0x3b8ff6+_0x4336ac;}},_0x52179c=_0x88532a['id']||await getActiveFeatureId();!_0x52179c&&(console[_0x353b00(0x135)](_0x353b00(0x15a)),console['error'](_0x353b00(0x156)),process['exit'](0x1));const _0xd079ab=await getFeature(_0x52179c);_0xd079ab[_0x353b00(0x1a5)]&&!_0xd079ab['latestReview'][_0x353b00(0x1bc)]&&(console[_0x353b00(0x135)]('\x0aโŒ\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console[_0x353b00(0x135)]('\x20\x20'+_0xd079ab['dashboardUrl']),process[_0x353b00(0x180)](0x1));const _0x432500=_0xd079ab['checklistItems']||[];_0x1ad142['sVqWn'](_0x432500[_0x353b00(0x131)],0x0)&&(console[_0x353b00(0x135)](_0x353b00(0x151)),process[_0x353b00(0x180)](0x1));if(_0x88532a[_0x353b00(0x144)]===undefined){console[_0x353b00(0x135)]('\x0aโŒ\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x353b00(0x17a)](_0x1ad142[_0x353b00(0x16e)]);for(let _0xf2843e=0x0;_0x1ad142['kmjUI'](_0xf2843e,_0x432500['length']);_0xf2843e++){console[_0x353b00(0x17a)]('\x20\x20'+(_0xf2843e+0x1)+'.\x20'+_0x432500[_0xf2843e]['description']);}process[_0x353b00(0x180)](0x1);}const _0x139b98=_0x1ad142[_0x353b00(0x147)](_0x88532a[_0x353b00(0x144)],0x1);if(_0x139b98<0x0||_0x1ad142[_0x353b00(0x17e)](_0x139b98,_0x432500[_0x353b00(0x131)])){console['error']('\x0aโŒ\x20Invalid\x20scenario\x20index:\x20'+_0x88532a[_0x353b00(0x144)]+_0x353b00(0x133)+_0x432500['length']+'\x20scenarios.'),console['log'](_0x1ad142[_0x353b00(0x16e)]);for(let _0x5809f9=0x0;_0x5809f9<_0x432500[_0x353b00(0x131)];_0x5809f9++){console[_0x353b00(0x17a)]('\x20\x20'+_0x1ad142[_0x353b00(0x12a)](_0x5809f9,0x1)+'.\x20'+_0x432500[_0x5809f9]['description']);}process['exit'](0x1);}const _0x11f69c=_0x432500[_0x139b98];await updateChecklistItem(_0x52179c,_0x11f69c['id'],{'description':_0x21ca2d});const _0xa39039=await getFeature(_0x52179c);console['log'](_0x353b00(0x1c2)),displayFeature(_0xa39039,_0xa39039[_0x353b00(0x17f)]);}async function downloadFeedbackImage(_0x438687,_0x4a5d39){const _0x29820e=_0x2869d5,_0xb2ad99={'npxkA':function(_0x474f1c){return _0x474f1c();},'KaLbF':_0x29820e(0x13f),'lQalh':function(_0x27cfb7,_0x593339){return _0x27cfb7(_0x593339);},'JqAGs':function(_0x50e6e8,_0x20a6f0,_0x1b996b){return _0x50e6e8(_0x20a6f0,_0x1b996b);}};try{const _0x3f611b=join(_0xb2ad99[_0x29820e(0x1b3)](getRangerDir),_0xb2ad99[_0x29820e(0x1a4)]);await mkdir(_0x3f611b,{'recursive':!![]});const _0x1a6cb4=join(_0x3f611b,'comment_'+_0x4a5d39+_0x29820e(0x134)),_0xcea68d=await _0xb2ad99[_0x29820e(0x165)](fetch,_0x438687);if(!_0xcea68d['ok'])return null;const _0x2fc004=Buffer['from'](await _0xcea68d['arrayBuffer']());return await _0xb2ad99[_0x29820e(0x12c)](writeFile,_0x1a6cb4,_0x2fc004),_0x1a6cb4;}catch{return null;}}export async function featureGetReview(_0x54840a){const _0x3d11f2=_0x2869d5,_0x11ce79={'AIChm':_0x3d11f2(0x1bd),'PzHsm':function(_0x340944,_0x393eef){return _0x340944(_0x393eef);},'bszlY':_0x3d11f2(0x160),'FqSIr':function(_0x3176c5,_0x3f657a){return _0x3176c5+_0x3f657a;},'peihP':'en-US','Qguzh':_0x3d11f2(0x17d),'fDULb':function(_0x2f25a2,_0x4cdcca,_0x2947ea){return _0x2f25a2(_0x4cdcca,_0x2947ea);},'Rrwuh':'element','AROtU':function(_0x19b5ed,_0x4a2b13){return _0x19b5ed>=_0x4a2b13;}},_0x1b6c8a=_0x54840a||await getActiveFeatureId();if(!_0x1b6c8a)throw new Error(_0x11ce79[_0x3d11f2(0x127)]);const _0x400e1f=await _0x11ce79['PzHsm'](getFeature,_0x1b6c8a),{items:_0x5f508a}=await getActionItems(_0x1b6c8a);console['log']('\x0a๐Ÿ“‹\x20Feedback\x20for:\x20'+_0x400e1f[_0x3d11f2(0x16c)]+'\x20('+_0x400e1f['id']+')\x0a');if(_0x5f508a[_0x3d11f2(0x131)]===0x0){console['log'](_0x11ce79['bszlY']);return;}for(let _0x51eba9=0x0;_0x51eba9<_0x5f508a[_0x3d11f2(0x131)];_0x51eba9++){const _0x1ca688=_0x5f508a[_0x51eba9],_0x5d1279=_0x1ca688['version']>0x1?'\x20(v'+_0x1ca688[_0x3d11f2(0x1ce)]+')':'',_0x1fc4ab=await getItemFeedback(_0x1b6c8a,_0x1ca688['id']);if(_0x1fc4ab['unaddressedComments'][_0x3d11f2(0x131)]>0x0){console['log']('Scenario\x20'+_0x11ce79['FqSIr'](_0x51eba9,0x1)+_0x3d11f2(0x10f)+_0x1ca688[_0x3d11f2(0x191)]+'\x22'+_0x5d1279+_0x3d11f2(0x162)+_0x1fc4ab['unaddressedComments']['length']+_0x3d11f2(0x108));for(const _0x27aa05 of _0x1fc4ab['unaddressedComments']){const _0x4ebf99=new Date(_0x27aa05[_0x3d11f2(0x196)])['toLocaleDateString'](_0x11ce79[_0x3d11f2(0x15d)],{'month':'short','day':_0x11ce79['Qguzh']}),_0x5305ed=_0x27aa05['authorName']||_0x27aa05['authorEmail']||_0x3d11f2(0x1cc);console['log']('\x20\x20๐Ÿ’ฌ\x20'+_0x5305ed+'\x20('+_0x4ebf99+'):\x20\x22'+_0x27aa05[_0x3d11f2(0x161)]+'\x22');if(_0x27aa05['assetUrl']){const _0xba6203=await _0x11ce79[_0x3d11f2(0x120)](downloadFeedbackImage,_0x27aa05[_0x3d11f2(0x18c)],_0x27aa05['id']);_0xba6203&&console[_0x3d11f2(0x17a)](_0x3d11f2(0x1c7)+_0xba6203);}if(_0x27aa05['domRef']){const _0x21580a=_0x27aa05[_0x3d11f2(0x136)]['selector']['split'](_0x3d11f2(0x103))['pop']()?.['split'](':')[0x0]||_0x11ce79['Rrwuh'],_0x58545d=_0x27aa05[_0x3d11f2(0x136)][_0x3d11f2(0x175)]?'\x20\x22'+_0x27aa05[_0x3d11f2(0x136)][_0x3d11f2(0x175)]['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x3d11f2(0x18b)+_0x21580a+'>'+_0x58545d),console['log']('\x20\x20\x20\x20\x20๐Ÿ“‹\x20Selector:\x20'+_0x27aa05['domRef']['selector']);}else{if(_0x27aa05['spatial']){const _0x23a806=_0x27aa05[_0x3d11f2(0x1b1)][_0x3d11f2(0x1b2)];_0x27aa05[_0x3d11f2(0x1b1)][_0x3d11f2(0x142)]==='point'&&_0x11ce79[_0x3d11f2(0x106)](_0x23a806[_0x3d11f2(0x131)],0x2)?console['log']('\x20\x20\x20\x20\x20๐Ÿ“\x20Annotation:\x20point\x20at\x20('+_0x23a806[0x0]['toFixed'](0x2)+',\x20'+_0x23a806[0x1][_0x3d11f2(0x190)](0x2)+')'):console['log'](_0x3d11f2(0x121)+_0x27aa05['spatial'][_0x3d11f2(0x142)]+_0x3d11f2(0x1c4)+_0x23a806[_0x3d11f2(0x1cf)](_0x4d1927=>_0x4d1927[_0x3d11f2(0x190)](0x2))[_0x3d11f2(0x1a3)](',\x20')+']');}}}if(_0x1fc4ab[_0x3d11f2(0x114)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x2427b6 of _0x1fc4ab[_0x3d11f2(0x114)]['split']('\x0a')){console[_0x3d11f2(0x17a)]('\x20\x20\x20\x20'+_0x2427b6);}}}else console['log']('Scenario\x20'+(_0x51eba9+0x1)+':\x20\x22'+_0x1ca688[_0x3d11f2(0x191)]+'\x22'+_0x5d1279+'\x20โ€”\x20no\x20comments'),console[_0x3d11f2(0x17a)](_0x3d11f2(0x15e));console['log']('');}}export async function featureDelete(_0x5a9917){const _0x31fc45=_0x2869d5,_0x2e1536={'POuRF':function(_0x162700){return _0x162700();},'jhtbu':function(_0x391070,_0x1e046a){return _0x391070(_0x1e046a);},'WXQQa':_0x31fc45(0x14f)},_0x28f4ce=_0x5a9917||await _0x2e1536[_0x31fc45(0x13c)](getActiveFeatureId);if(!_0x28f4ce)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 _0x4179ce=await getFeature(_0x28f4ce);await _0x2e1536['jhtbu'](softDeleteFeature,_0x28f4ce),console[_0x31fc45(0x17a)](_0x31fc45(0xff)+_0x4179ce['name']+'\x20('+_0x28f4ce+')'),console['log'](_0x2e1536[_0x31fc45(0x149)]+_0x28f4ce);}export async function featureRestore(_0xd0fb30){const _0x4b0f9e=_0x2869d5,_0x4a1095={'iSNRT':function(_0x2b9789,_0x2166e2){return _0x2b9789(_0x2166e2);},'snMtb':function(_0xb00d92,_0x2c537e){return _0xb00d92(_0x2c537e);}};await _0x4a1095['iSNRT'](restoreFeature,_0xd0fb30);const _0x1e2eb6=await _0x4a1095[_0x4b0f9e(0x13a)](getFeature,_0xd0fb30);console[_0x4b0f9e(0x17a)](_0x4b0f9e(0x186)+_0x1e2eb6[_0x4b0f9e(0x16c)]+'\x20('+_0xd0fb30+')'),displayFeature(_0x1e2eb6,_0x1e2eb6[_0x4b0f9e(0x17f)]);}
1
+ const _0x4ced5c=_0x5176;function _0x5176(_0x1875cf,_0x1d6f90){_0x1875cf=_0x1875cf-0x1ca;const _0x39749f=_0x3974();let _0x5176a0=_0x39749f[_0x1875cf];return _0x5176a0;}(function(_0x2c7701,_0x44b77b){const _0x35b264=_0x5176,_0x1a49cc=_0x2c7701();while(!![]){try{const _0x52d77e=-parseInt(_0x35b264(0x24c))/0x1+parseInt(_0x35b264(0x1fe))/0x2*(parseInt(_0x35b264(0x202))/0x3)+-parseInt(_0x35b264(0x1eb))/0x4*(-parseInt(_0x35b264(0x1da))/0x5)+-parseInt(_0x35b264(0x240))/0x6*(-parseInt(_0x35b264(0x216))/0x7)+-parseInt(_0x35b264(0x1f7))/0x8+parseInt(_0x35b264(0x2a3))/0x9*(parseInt(_0x35b264(0x20e))/0xa)+-parseInt(_0x35b264(0x28b))/0xb;if(_0x52d77e===_0x44b77b)break;else _0x1a49cc['push'](_0x1a49cc['shift']());}catch(_0x527aa7){_0x1a49cc['push'](_0x1a49cc['shift']());}}}(_0x3974,0x5c739));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3493bd 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=_0x4ced5c(0x1ec),bold=_0x21e25e=>_0x4ced5c(0x295)+_0x21e25e+'\x1b[0m';function getGitRepoUrl(){const _0x477465=_0x4ced5c,_0x57ede0={'ABYsv':function(_0x386a94,_0x2b73fe,_0x2d6fcc){return _0x386a94(_0x2b73fe,_0x2d6fcc);},'ajSHg':_0x477465(0x201),'sPUPH':'pipe'};try{const _0x36be57=_0x57ede0['ABYsv'](execSync,_0x57ede0['ajSHg'],{'encoding':'utf-8','stdio':[_0x477465(0x28f),_0x57ede0[_0x477465(0x248)],_0x57ede0['sPUPH']]})['trim']();return _0x36be57[_0x477465(0x26a)](/\.git$/,'')[_0x477465(0x26a)](/^git@github\.com:/,_0x477465(0x1de))[_0x477465(0x26a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x54b4bf=_0x4ced5c,_0x31e91a={'pmnhR':_0x54b4bf(0x293),'SjqAS':'utf-8','gtLun':'pipe'};try{return execSync(_0x31e91a[_0x54b4bf(0x20f)],{'encoding':_0x31e91a[_0x54b4bf(0x209)],'stdio':[_0x31e91a['gtLun'],_0x31e91a[_0x54b4bf(0x253)],_0x31e91a['gtLun']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4eee8b=_0x4ced5c,_0x573ef5={'DOTlS':function(_0x1cb8f7,_0x1785da,_0x24ddcb){return _0x1cb8f7(_0x1785da,_0x24ddcb);},'KFEUy':function(_0x2a5129){return _0x2a5129();}},_0x4038f0=_0x573ef5[_0x4eee8b(0x2ae)](join,_0x573ef5['KFEUy'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4038f0))return null;try{const _0xae0415=await readFile(_0x4038f0,_0x4eee8b(0x1d2));return _0xae0415['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x494e9a){const _0x478f49=_0x4ced5c,_0x186f7b={'WQYaU':function(_0x43b2b1,_0x23915b,_0x8f963f,_0xe099d0){return _0x43b2b1(_0x23915b,_0x8f963f,_0xe099d0);},'ytOzH':_0x478f49(0x1d2)},_0x47351b=getRangerDir(),_0x5a195e=join(_0x47351b,ACTIVE_FEATURE_FILE);!existsSync(_0x47351b)&&await mkdir(_0x47351b,{'recursive':!![]}),await _0x186f7b[_0x478f49(0x20a)](writeFile,_0x5a195e,_0x494e9a,_0x186f7b['ytOzH']);}function getProgressDisplay(_0x31b9b9){const _0x220320=_0x4ced5c,_0x4f7263={'MsNHO':function(_0x4ba88b,_0x5bb6ba){return _0x4ba88b+_0x5bb6ba;},'cOaqp':function(_0x15b283,_0x6e84fe){return _0x15b283+_0x6e84fe;},'jWmYY':function(_0x10843b,_0x35227f){return _0x10843b/_0x35227f;},'ePmVu':function(_0xb588c3,_0x446850){return _0xb588c3>_0x446850;}},_0x50b6b7=_0x31b9b9[_0x220320(0x2a4)]||0x0,_0x3330fd=_0x31b9b9['verificationInProgressItems']||0x0,_0x48ad59=_0x31b9b9['blockedItems']||0x0,_0x20c525=_0x31b9b9[_0x220320(0x27e)]||0x0,_0x569932=_0x31b9b9['pendingItems']||0x0,_0x21eb35=_0x4f7263['MsNHO'](_0x4f7263['cOaqp'](_0x50b6b7+_0x3330fd,_0x48ad59),_0x20c525)+_0x569932;if(_0x21eb35===0x0)return'-';const _0x3357ee=0xa,_0x5ee37b=Math['round'](_0x4f7263[_0x220320(0x266)](_0x50b6b7,_0x21eb35)*_0x3357ee),_0x15106a='โ–ˆ'[_0x220320(0x255)](_0x5ee37b)+'โ–‘'[_0x220320(0x255)](_0x3357ee-_0x5ee37b),_0x49ddec=[];if(_0x4f7263['ePmVu'](_0x48ad59,0x0))_0x49ddec[_0x220320(0x232)](_0x48ad59+_0x220320(0x261));if(_0x20c525>0x0)_0x49ddec[_0x220320(0x232)](_0x20c525+'\x20incomplete');if(_0x3330fd>0x0)_0x49ddec[_0x220320(0x232)](_0x3330fd+_0x220320(0x281));const _0xfe2201=_0x49ddec['length']>0x0?'\x20('+_0x49ddec[_0x220320(0x1d5)](',\x20')+')':'';return _0x15106a+'\x20'+_0x50b6b7+'/'+_0x21eb35+_0x220320(0x208)+_0xfe2201;}function getCurrentSessionItems(_0x20927c,_0x4f3c3e){const _0x507f02=_0x4ced5c;if(!_0x20927c['currentSessionId'])return _0x4f3c3e['filter'](_0xd48bb3=>!_0xd48bb3['sessionId']);return _0x4f3c3e[_0x507f02(0x24e)](_0x48dbe5=>_0x48dbe5['sessionId']===_0x20927c[_0x507f02(0x1ed)]||!_0x48dbe5['sessionId']);}function displayFeature(_0x35ffce,_0x2d11c9){const _0x2a5590=_0x4ced5c,_0x178fc2={'BxHBp':'\x0a\x20\x20\x20Scenarios:','qxkmd':function(_0x4bb7ec,_0x34b2ed){return _0x4bb7ec<_0x34b2ed;},'xmzTt':_0x2a5590(0x234),'wuhxT':function(_0x3be74f,_0x538204){return _0x3be74f===_0x538204;},'HJORe':_0x2a5590(0x27a),'dUFXg':function(_0x5d89bd,_0x316863){return _0x5d89bd===_0x316863;},'GtIdm':function(_0x4dec94,_0x1bedfb){return _0x4dec94>_0x1bedfb;},'DoVrn':function(_0x58a17e,_0xc395ae){return _0x58a17e!==_0xc395ae;},'CgZmy':'\x20[has\x20reviewer\x20feedback]','qkFdg':function(_0x11861a,_0xd11fb9){return _0x11861a===_0xd11fb9;},'etnVw':_0x2a5590(0x210)};console['log']('\x0a'+_0x35ffce['name']+'\x20('+_0x35ffce['dashboardUrl']+')');_0x35ffce[_0x2a5590(0x26c)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x35ffce['stats']));_0x35ffce['description']&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Description:\x20'+_0x35ffce[_0x2a5590(0x264)]);_0x35ffce[_0x2a5590(0x251)]&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Repository:\x20'+_0x35ffce['gitRepoUrl']);_0x35ffce['gitBranch']&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Branch:\x20'+_0x35ffce[_0x2a5590(0x2ab)]);console[_0x2a5590(0x1e0)]('\x20\x20\x20Created:\x20'+new Date(_0x35ffce[_0x2a5590(0x1fd)])['toLocaleString']());_0x35ffce['completedAt']&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Completed:\x20'+new Date(_0x35ffce['completedAt'])['toLocaleString']());if(_0x2d11c9&&_0x2d11c9['length']>0x0){console[_0x2a5590(0x1e0)](_0x178fc2[_0x2a5590(0x1d3)]);for(let _0x2818b5=0x0;_0x178fc2[_0x2a5590(0x1db)](_0x2818b5,_0x2d11c9[_0x2a5590(0x20b)]);_0x2818b5++){const _0x29c766=_0x2d11c9[_0x2818b5];let _0x3bd1d6;if(_0x29c766[_0x2a5590(0x22d)]===_0x178fc2['xmzTt']&&_0x29c766[_0x2a5590(0x1f1)]===_0x2a5590(0x23a))_0x3bd1d6='โœ…';else{if(_0x178fc2['wuhxT'](_0x29c766['status'],_0x178fc2['HJORe']))_0x3bd1d6='๐ŸŸข';else{if(_0x178fc2[_0x2a5590(0x20d)](_0x29c766[_0x2a5590(0x22d)],'incomplete'))_0x3bd1d6='๐ŸŸ ';else{if(_0x178fc2[_0x2a5590(0x20d)](_0x29c766[_0x2a5590(0x22d)],_0x2a5590(0x254)))_0x3bd1d6='๐Ÿ›‘';else{if(_0x29c766['status']==='closed')_0x3bd1d6='โ›”';else _0x29c766['status']==='verification_in_progress'?_0x3bd1d6='โณ':_0x3bd1d6='โฌœ';}}}}const _0x11c76d=_0x29c766['version']>0x1?'\x20(v'+_0x29c766['version']+')':'',_0x99e2a=_0x178fc2['GtIdm'](_0x29c766[_0x2a5590(0x1f9)],0x1)&&_0x29c766['parentItemId']&&_0x178fc2['DoVrn'](_0x29c766[_0x2a5590(0x22d)],_0x178fc2[_0x2a5590(0x22b)])&&_0x178fc2[_0x2a5590(0x273)](_0x29c766['status'],_0x178fc2['HJORe'])?_0x178fc2['CgZmy']:'';console[_0x2a5590(0x1e0)]('\x20\x20\x20'+(_0x2818b5+0x1)+'.\x20'+_0x3bd1d6+'\x20'+_0x29c766['description']+_0x11c76d+_0x99e2a);_0x178fc2[_0x2a5590(0x20d)](_0x29c766[_0x2a5590(0x22d)],_0x2a5590(0x254))&&_0x29c766['blockedReason']&&console['log'](_0x2a5590(0x287)+_0x29c766[_0x2a5590(0x272)]);_0x178fc2['qkFdg'](_0x29c766[_0x2a5590(0x22d)],_0x178fc2['etnVw'])&&_0x29c766['incompleteReason']&&console[_0x2a5590(0x1e0)](_0x2a5590(0x1d8)+_0x29c766['incompleteReason']);if(_0x29c766['status']===_0x178fc2[_0x2a5590(0x22b)]&&_0x178fc2[_0x2a5590(0x200)](_0x29c766['terminalReason'],'approved'))console[_0x2a5590(0x1e0)](_0x2a5590(0x214));else _0x29c766[_0x2a5590(0x22d)]===_0x178fc2[_0x2a5590(0x22b)]&&_0x29c766[_0x2a5590(0x226)]&&console['log'](_0x2a5590(0x21d)+_0x29c766['canceledReason']);}}}export async function featureCreate(_0x1c6d4a,_0x2ca45c){const _0x9b3a08=_0x4ced5c,_0xab485d={'GCHMb':function(_0x3e9ba4){return _0x3e9ba4();},'HhFNw':function(_0x960862,_0x492666){return _0x960862(_0x492666);},'RjFSO':function(_0x2b763d,_0x40c852){return _0x2b763d(_0x40c852);},'pDwTB':function(_0x452b6f,_0x44c8a6){return _0x452b6f(_0x44c8a6);},'SvpCW':function(_0x1df0e3,_0x2b972a,_0x5d214c){return _0x1df0e3(_0x2b972a,_0x5d214c);},'yGoFp':function(_0x6bf8d6,_0x3821fc,_0x467f5d){return _0x6bf8d6(_0x3821fc,_0x467f5d);}},{envNames:_0x54b3d3}=await _0xab485d[_0x9b3a08(0x1cf)](getEnvNames);_0x54b3d3[_0x9b3a08(0x20b)]===0x0&&console[_0x9b3a08(0x277)]('\x0a'+_0xab485d[_0x9b3a08(0x2a9)](formatProfileRequiredMessage,_0x2f24b7=>bold(_0x2f24b7)));const _0x5f1a7c=_0x2ca45c['scenarios']?_0x2ca45c[_0x9b3a08(0x256)]['map'](_0x4cc073=>_0x4cc073['trim']()):[],_0x1a7e11=getGitRepoUrl(),_0x11cda7=_0xab485d['GCHMb'](getGitBranch);console['log'](_0x9b3a08(0x28c));const _0x57a1e7=await _0xab485d[_0x9b3a08(0x2a9)](createFeature,{'name':_0x1c6d4a,'description':_0x2ca45c[_0x9b3a08(0x264)],'checklist':_0x5f1a7c,'gitRepoUrl':_0x1a7e11,'gitBranch':_0x11cda7});await _0xab485d[_0x9b3a08(0x1e6)](setActiveFeatureId,_0x57a1e7['id']),await _0xab485d['pDwTB'](tryStartCurrentSession,_0x57a1e7['id']);const _0x287f96=process[_0x9b3a08(0x24f)][_0x9b3a08(0x1d9)];_0x287f96&&_0xab485d['SvpCW'](registerSession,_0x287f96,_0x57a1e7['id']),console[_0x9b3a08(0x1e0)](_0x9b3a08(0x250)+_0x57a1e7['id']),_0xab485d[_0x9b3a08(0x1e9)](displayFeature,_0x57a1e7,_0x57a1e7['checklistItems']),console['log'](_0x9b3a08(0x21f));}export async function featureList(_0x46973b){const _0x3d5c46=_0x4ced5c,_0x31a0e8={'WyUxX':function(_0x11fb01){return _0x11fb01();},'aaber':function(_0x5ef171,_0x4ae08c){return _0x5ef171===_0x4ae08c;},'gLbyA':_0x3d5c46(0x29e),'heGbj':function(_0x37ab34,_0x4f41f5){return _0x37ab34>_0x4f41f5;},'VackJ':function(_0x498e1c,_0x28ce85){return _0x498e1c(_0x28ce85);},'QgmAF':function(_0x100d2f,_0x5ad70d){return _0x100d2f+_0x5ad70d;},'ZWWrn':function(_0x686bb2,_0x34e010){return _0x686bb2!==_0x34e010;},'wDCLu':_0x3d5c46(0x267)},_0x5a5a62={'limit':_0x46973b['limit']??0xa,'offset':_0x46973b[_0x3d5c46(0x1d7)]??0x0,'includeDeleted':_0x46973b['includeDeleted']};_0x46973b[_0x3d5c46(0x263)]&&(_0x5a5a62['gitRepoUrl']=_0x31a0e8[_0x3d5c46(0x27f)](getGitRepoUrl),_0x5a5a62[_0x3d5c46(0x2ab)]=getGitBranch());const _0x378862=await listFeatures(_0x5a5a62);if(_0x31a0e8[_0x3d5c46(0x211)](_0x378862[_0x3d5c46(0x294)]['length'],0x0)){console['log'](_0x31a0e8['gLbyA']);return;}const _0x165f95=_0x31a0e8[_0x3d5c46(0x29d)](_0x378862[_0x3d5c46(0x21e)],_0x378862[_0x3d5c46(0x294)]['length'])?'Showing\x20'+_0x378862[_0x3d5c46(0x294)][_0x3d5c46(0x20b)]+'\x20of\x20'+_0x378862['totalCount']:_0x378862['totalCount']+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x165f95+':\x0a');for(const _0x399f4e of _0x378862['items']){const _0x5b1e2d=_0x3d5c46(0x26d)['split']('|');let _0x61abc2=0x0;while(!![]){switch(_0x5b1e2d[_0x61abc2++]){case'0':console['log'](_0x3d5c46(0x1ca)+new Date(_0x399f4e[_0x3d5c46(0x1fd)])['toLocaleDateString']());continue;case'1':console[_0x3d5c46(0x1e0)]('');continue;case'2':_0x399f4e[_0x3d5c46(0x2ab)]&&console['log'](_0x3d5c46(0x278)+_0x399f4e[_0x3d5c46(0x2ab)]);continue;case'3':_0x399f4e[_0x3d5c46(0x26c)]&&console[_0x3d5c46(0x1e0)](_0x3d5c46(0x230)+_0x31a0e8['VackJ'](getProgressDisplay,_0x399f4e[_0x3d5c46(0x26c)]));continue;case'4':console[_0x3d5c46(0x1e0)](''+_0x399f4e['name']);continue;case'5':console['log'](_0x3d5c46(0x29b)+_0x399f4e['id']);continue;}break;}}const _0x1195fa=_0x5a5a62[_0x3d5c46(0x26e)]??0xa,_0x196e16=_0x31a0e8['QgmAF'](_0x5a5a62['offset']??0x0,_0x378862['items']['length']);if(_0x196e16<_0x378862['totalCount']){const _0x463fc1=_0x31a0e8['ZWWrn'](_0x1195fa,0xa)?'\x20--limit\x20'+_0x1195fa:'',_0xa5c82d=_0x46973b[_0x3d5c46(0x263)]?'\x20--current-branch':'',_0x4a26c3=_0x46973b[_0x3d5c46(0x228)]?_0x31a0e8[_0x3d5c46(0x237)]:'';console['log'](_0x3d5c46(0x241)+_0x196e16+_0x463fc1+_0xa5c82d+_0x4a26c3);}}function _0x3974(){const _0x104cb9=['name','1158784oznymT','\x0aCreating\x20feature\x20review...','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','uOWxj','pipe','KRDsM','\x20\x20\x20\x20','en-US','git\x20rev-parse\x20--abbrev-ref\x20HEAD','items','\x1b[1m','textContent','ready','\x0aAvailable\x20scenarios:','storage','linkedSession','\x20\x20\x20ID:\x20','any','heGbj','\x0aNo\x20feature\x20reviews\x20found.','browserSessionId','HEsHI','dashboardUrl','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','9aAZidX','verifiedItems','element','toFixed','\x20>\x20','latestReview','HhFNw','iteration','gitBranch','No\x20sessions\x20found.','pop','DOTlS','qaZxb','\x20\x20\x20Updated\x20branch\x20to:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','\x0aโŒ\x20Invalid\x20scenario\x20index:\x20','unaddressedComments','\x20\x20\x20Created:\x20','UNDEz','\x20โ€”\x20','nrRtH','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','GCHMb','Oecki','UCywK','utf-8','BxHBp','No\x20scenarios\x20found.','join','.\x20Feature\x20review\x20has\x20','offset','\x20\x20\x20\x20\x20\x20Incomplete:\x20','CLAUDE_SESSION_ID','906020XMBCek','qxkmd','map','):\x20\x22','github.com/','\x20\x20\x20\x20\x20๐Ÿ“\x20Annotation:\x20','log','canonicalFlow','0|2|5|3|4|1','selector','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','ejUrS','RjFSO','\x0aโœ…\x20Session\x20is\x20already\x20completed.','Scenario\x20','yGoFp','\x20concluded.','16TQrAfk','active-feature.txt','currentSessionId','domRef','comment_','\x20\x20\x20\x20\x20๐Ÿ“\x20Annotation:\x20point\x20at\x20(','terminalReason','in_progress','eNaYN','UdziB','from','find','3728168NtIdyq','mENRm','version','checklistItems','Unknown','QNWnt','createdAt','551810KgHYsw','LADeM','wuhxT','git\x20remote\x20get-url\x20origin','3qlGeeV','hBjpo','scenario','type','json','IjDLI','\x20verified','SjqAS','WQYaU','length','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','dUFXg','2773450vxfaCx','pmnhR','incomplete','aaber','VsCTu','\x20\x20\x20\x20\x20ID:\x20','\x20\x20\x20\x20\x20\x20Approved','stringify','14FtdkKr','IcFrG','IBPOp','.png','\x20\x20\x20\x20\x20๐Ÿ“ท\x20Screenshot:\x20','gakqM','assetType','\x20\x20\x20\x20\x20\x20Cancelled:\x20','totalCount','\x0aโžก๏ธ\x20\x20Set\x20as\x20active\x20feature\x20review','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','MImtA','Step\x20','\x0aโœ…\x20Resumed\x20feature\x20review:\x20','yoWlO','/artifacts/','canceledReason','LBWKp','includeDeleted','feedback-images','qOUPJ','xmzTt','exit','status','toLocaleString','split','\x20\x20\x20Progress:\x20','JRYEw','push','has','closed','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','bzokB','wDCLu','nUgWm','completedAt','approved','\x20\x20\x20\x20\x20Branch:\x20','RFfwi','\x20\x20๐Ÿ’ฌ\x20','\x20unaddressed\x20comment(s)','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','365730evmUoQ','Next\x20page:\x20ranger\x20list\x20--offset\x20','gpLen','\x20\x20\x20\x20\x20๐ŸŽฏ\x20Element:\x20<','reports','location','list','all','sPUPH','slice','\x0aโš ๏ธ\x20\x20','Screenshot\x20','449930teTmvY','screenshot','filter','env','\x0aโœ…\x20Feature\x20review\x20created:\x20','gitRepoUrl','error','gtLun','blocked','repeat','scenarios','\x0aโŒ\x20No\x20scenarios\x20found\x20to\x20include.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Ntbmt','output','nmfar','RAWLU','agentResponse','authorName','assetUrl','completed','\x20blocked','ztyBm','currentBranch','description','Current\x20session\x20not\x20found.','jWmYY','\x20--include-deleted','assets','\x0aโœ…\x20Session\x20','replace','incompleteReason','stats','4|5|3|2|0|1','limit','Wjwjx','stdin','wbBVE','blockedReason','DoVrn','stdout','spatial','isTTY','warn','\x20\x20\x20Branch:\x20','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','verified','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','\x20\x20โœ…\x20No\x20feedback\x20to\x20address','ALDvz','incompleteItems','WyUxX','AFWeE','\x20in\x20progress','OjomI','\x20\x20\x20\x20\x20๐Ÿ“‹\x20Selector:\x20','screenshotUrls','\x0aโœ…\x20Scenario\x20added','\x20\x20\x20โ–ถ๏ธ\x20Started\x20session\x20','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','isInteger'];_0x3974=function(){return _0x104cb9;};return _0x3974();}export async function featureShow(_0x2e1ea3){const _0x477b89=_0x4ced5c,_0x16644f={'wbBVE':function(_0x32d14d){return _0x32d14d();},'rIoBf':_0x477b89(0x258),'nFEdX':function(_0x1ff9b5,_0x531209){return _0x1ff9b5(_0x531209);}},_0x515e89=_0x2e1ea3||await _0x16644f[_0x477b89(0x271)](getActiveFeatureId);if(!_0x515e89)throw new Error(_0x16644f['rIoBf']);const _0x540870=await _0x16644f['nFEdX'](getFeature,_0x515e89);displayFeature(_0x540870,_0x540870[_0x477b89(0x1fa)]);}export async function featureResume(_0x531206){const _0x477ef5=_0x4ced5c,_0x7ee59e={'RFfwi':function(_0x440222,_0x2bb643){return _0x440222(_0x2bb643);},'gpLen':function(_0x55b092,_0x396a53){return _0x55b092!==_0x396a53;},'UCywK':function(_0x34b4e6,_0x214e3e,_0x4b822e){return _0x34b4e6(_0x214e3e,_0x4b822e);},'LADeM':function(_0x44aaf1,_0x1a54a8,_0x575157){return _0x44aaf1(_0x1a54a8,_0x575157);},'LBWKp':function(_0x21277b,_0x45f554){return _0x21277b(_0x45f554);},'MImtA':function(_0x29ba12,_0x557912){return _0x29ba12||_0x557912;},'pgymh':function(_0x5bfc91,_0x27e72e){return _0x5bfc91||_0x27e72e;},'gzjUd':'any','bzokB':function(_0x542c40,_0x41be07){return _0x542c40(_0x41be07);},'IBPOp':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','FKrpg':'selected','RAWLU':function(_0x258e15,_0x1b6e98,_0x22d76f){return _0x258e15(_0x1b6e98,_0x22d76f);}};if(_0x531206){const _0x16a288=await getFeature(_0x531206);await _0x7ee59e[_0x477ef5(0x23c)](setActiveFeatureId,_0x16a288['id']);const _0x39e215=getGitBranch();_0x39e215&&_0x7ee59e[_0x477ef5(0x242)](_0x39e215,_0x16a288['gitBranch'])&&(await _0x7ee59e['UCywK'](updateFeature,_0x16a288['id'],{'gitBranch':_0x39e215}),console[_0x477ef5(0x1e0)](_0x477ef5(0x2b0)+_0x39e215));console['log'](_0x477ef5(0x223)+_0x16a288['name']+'\x20('+_0x16a288['id']+')'),await _0x7ee59e[_0x477ef5(0x23c)](tryStartCurrentSession,_0x16a288['id']);const _0x103eaa=process[_0x477ef5(0x24f)]['CLAUDE_SESSION_ID'];_0x103eaa&&_0x7ee59e[_0x477ef5(0x1ff)](registerSession,_0x103eaa,_0x16a288['id']);_0x7ee59e[_0x477ef5(0x1ff)](displayFeature,_0x16a288,_0x16a288[_0x477ef5(0x1fa)]),await _0x7ee59e[_0x477ef5(0x227)](printFeedbackNudge,_0x16a288['id']);return;}const _0x4ec964=getGitRepoUrl(),_0x560f23=getGitBranch();if(!_0x4ec964&&!_0x560f23)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x477ef5(0x1e0)](_0x477ef5(0x27b)+_0x7ee59e[_0x477ef5(0x221)](_0x4ec964,_0x477ef5(0x29c))+'\x20/\x20'+_0x7ee59e['pgymh'](_0x560f23,_0x7ee59e['gzjUd'])+'...');const _0x10f3f6=await _0x7ee59e['bzokB'](listFeatures,{'gitRepoUrl':_0x4ec964,'gitBranch':_0x560f23}),_0x50a98a=_0x10f3f6['items']['filter'](_0x4bf999=>_0x4bf999[_0x477ef5(0x22d)]?_0x4bf999['status']!=='verified':!_0x4bf999[_0x477ef5(0x239)]);if(_0x50a98a['length']===0x0){console['log'](_0x477ef5(0x235)),console['log'](_0x7ee59e[_0x477ef5(0x218)]);return;}let _0x3a41c4;if(_0x50a98a[_0x477ef5(0x20b)]===0x1)_0x3a41c4=_0x50a98a[0x0];else{const _0xde0051=process[_0x477ef5(0x270)]['isTTY']&&process[_0x477ef5(0x274)][_0x477ef5(0x276)];if(!_0xde0051){console['log'](_0x477ef5(0x288));for(const _0x437996 of _0x50a98a){console[_0x477ef5(0x1e0)]('\x20\x20'+_0x437996['name']),console[_0x477ef5(0x1e0)](_0x477ef5(0x213)+_0x437996['id']),_0x437996['stats']&&console[_0x477ef5(0x1e0)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x437996['stats'])),_0x437996[_0x477ef5(0x2ab)]&&console['log'](_0x477ef5(0x23b)+_0x437996[_0x477ef5(0x2ab)]);}throw new Error(_0x477ef5(0x20c));}const {selected:_0x3514e6}=await _0x3493bd['prompt']([{'type':_0x477ef5(0x246),'name':_0x7ee59e['FKrpg'],'message':_0x477ef5(0x2a2),'choices':_0x50a98a['map'](_0x1a3ac6=>({'name':_0x1a3ac6['name']+'\x20('+_0x1a3ac6['id']+')','value':_0x1a3ac6['id']}))}]);_0x3a41c4=_0x50a98a[_0x477ef5(0x1f6)](_0x36514f=>_0x36514f['id']===_0x3514e6);}await setActiveFeatureId(_0x3a41c4['id']);_0x560f23&&_0x7ee59e['gpLen'](_0x560f23,_0x3a41c4[_0x477ef5(0x2ab)])&&(await _0x7ee59e[_0x477ef5(0x1d1)](updateFeature,_0x3a41c4['id'],{'gitBranch':_0x560f23}),console[_0x477ef5(0x1e0)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x560f23));console['log']('\x0aโœ…\x20Resumed\x20feature\x20review:\x20'+_0x3a41c4[_0x477ef5(0x28a)]+'\x20('+_0x3a41c4['id']+')'),await tryStartCurrentSession(_0x3a41c4['id']);const _0x17b548=await _0x7ee59e[_0x477ef5(0x23c)](getFeature,_0x3a41c4['id']),_0x102d93=process['env'][_0x477ef5(0x1d9)];_0x102d93&&_0x7ee59e['LADeM'](registerSession,_0x102d93,_0x17b548['id']),_0x7ee59e[_0x477ef5(0x25c)](displayFeature,_0x17b548,_0x17b548['checklistItems']),await _0x7ee59e[_0x477ef5(0x236)](printFeedbackNudge,_0x17b548['id']);}async function printFeedbackNudge(_0x2cc82a){const _0x331686=_0x4ced5c,_0x38cea5={'uOWxj':function(_0x4bf256,_0x189f24){return _0x4bf256(_0x189f24);},'dXPwR':function(_0xd159ba,_0x16986a,_0x3e445){return _0xd159ba(_0x16986a,_0x3e445);},'fdBRu':function(_0x5d4a85,_0x533719){return _0x5d4a85>_0x533719;},'UNDEz':_0x331686(0x1ce)};try{const {items:_0x807b3}=await _0x38cea5[_0x331686(0x28e)](getActionItems,_0x2cc82a);let _0x2e783f=0x0,_0x258d1d=0x0;for(const _0x387f4b of _0x807b3){const _0x305ccf=await _0x38cea5['dXPwR'](getItemFeedback,_0x2cc82a,_0x387f4b['id']);_0x38cea5['fdBRu'](_0x305ccf[_0x331686(0x2b3)][_0x331686(0x20b)],0x0)&&(_0x2e783f+=_0x305ccf[_0x331686(0x2b3)]['length'],_0x258d1d++);}_0x2e783f>0x0&&(console[_0x331686(0x1e0)](_0x331686(0x24a)+_0x2e783f+_0x331686(0x28d)+_0x258d1d+'\x20scenario(s).'),console['log'](_0x38cea5[_0x331686(0x1cb)]));}catch{}}async function tryStartCurrentSession(_0x1f3f35){const _0xf86ee0=_0x4ced5c,_0x4e491d={'Qdkei':function(_0x114fbf,_0x421c7a){return _0x114fbf(_0x421c7a);},'LWExF':function(_0x16cb80,_0x5132db,_0x35b9ed){return _0x16cb80(_0x5132db,_0x35b9ed);}};try{const {sessions:_0x3b5c0a}=await _0x4e491d['Qdkei'](listFeatureSessions,_0x1f3f35),_0x2ea736=_0x3b5c0a['find'](_0x5d6074=>_0x5d6074['status']===_0xf86ee0(0x297));_0x2ea736&&(await _0x4e491d['LWExF'](startSession,_0x1f3f35,_0x2ea736['id']),console['log'](_0xf86ee0(0x286)+_0x2ea736['iteration']));}catch{}}export async function featureReport(_0x32edec,_0x4261e0){const _0x1b59ca=_0x4ced5c,_0x52474b={'NvLyU':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','qOUPJ':function(_0x30dfb7,_0x3ece8d,_0x5411b7){return _0x30dfb7(_0x3ece8d,_0x5411b7);},'Oecki':function(_0x23c747){return _0x23c747();},'ztyBm':_0x1b59ca(0x244),'VQTBm':function(_0x21e34b,_0x2a867c,_0x2e34f2){return _0x21e34b(_0x2a867c,_0x2e34f2);},'dJWPD':'utf-8'},_0x46a868=_0x32edec||await getActiveFeatureId();if(!_0x46a868)throw new Error(_0x52474b['NvLyU']);console['log']('\x0aGenerating\x20report...');const _0x46fbef=await _0x52474b[_0x1b59ca(0x22a)](getFeatureReportMarkdown,_0x46a868,{'style':_0x4261e0['style']}),_0x2f2d88=_0x4261e0[_0x1b59ca(0x25a)]||join(_0x52474b[_0x1b59ca(0x1d0)](getRangerDir),_0x52474b[_0x1b59ca(0x262)],_0x46a868+'.md'),_0x1c4ab0=_0x52474b['VQTBm'](join,_0x2f2d88,'..');!existsSync(_0x1c4ab0)&&await mkdir(_0x1c4ab0,{'recursive':!![]}),await writeFile(_0x2f2d88,_0x46fbef,_0x52474b['dJWPD']),console['log']('\x0aโœ…\x20Report\x20generated:\x20'+_0x2f2d88);}function getScenarioResult(_0x360a9d){const _0x24093a=_0x4ced5c,_0x2c5e33={'Ntbmt':function(_0x2177c5,_0x523558){return _0x2177c5===_0x523558;},'eNaYN':_0x24093a(0x234),'rxoue':_0x24093a(0x1f2)};if(_0x2c5e33[_0x24093a(0x259)](_0x360a9d['status'],_0x2c5e33[_0x24093a(0x1f3)]))return _0x360a9d[_0x24093a(0x1f1)]??_0x24093a(0x234);if(_0x360a9d[_0x24093a(0x22d)]==='verification_in_progress')return _0x2c5e33['rxoue'];return _0x360a9d['status'];}function getScenarioRationale(_0x10aee6,_0xb3b8d5){const _0x4c6d74=_0x4ced5c,_0x2a27c9={'QjYrh':_0x4c6d74(0x1e2)},_0x4d7811=_0x2a27c9['QjYrh'][_0x4c6d74(0x22f)]('|');let _0x3215ed=0x0;while(!![]){switch(_0x4d7811[_0x3215ed++]){case'0':if(_0xb3b8d5)return _0xb3b8d5;continue;case'1':return null;case'2':if(_0x10aee6['blockedReason'])return _0x10aee6[_0x4c6d74(0x272)];continue;case'3':if(_0x10aee6['canceledReason'])return _0x10aee6['canceledReason'];continue;case'4':if(_0x10aee6['notes'])return _0x10aee6['notes'];continue;case'5':if(_0x10aee6[_0x4c6d74(0x26b)])return _0x10aee6[_0x4c6d74(0x26b)];continue;}break;}}export async function featureReportPrDescription(_0x44d4da,_0x424c40){const _0x215c00=_0x4ced5c,_0x14438a={'qaZxb':function(_0x7c7c3b){return _0x7c7c3b();},'kBVze':_0x215c00(0x220),'mENRm':function(_0x2ee82e,_0x2910cb,_0x16cb15){return _0x2ee82e(_0x2910cb,_0x16cb15);},'GHFqz':_0x215c00(0x257),'yoWlO':function(_0x4c7b63,_0x36ea72){return _0x4c7b63>_0x36ea72;},'kgZVN':function(_0x624b7d,_0x427a38){return _0x624b7d<_0x427a38;},'bDyKb':function(_0x5ad155,_0x2cc04b){return _0x5ad155+_0x2cc04b;}},_0x4ea341=_0x44d4da||await _0x14438a[_0x215c00(0x2af)](getActiveFeatureId);if(!_0x4ea341)throw new Error(_0x14438a['kBVze']);const _0xebcdc2=await getFeature(_0x4ea341),_0x20c560=_0xebcdc2[_0x215c00(0x1fa)]||[],_0x53ae96=_0x14438a['mENRm'](getCurrentSessionItems,_0xebcdc2,_0x20c560);_0x53ae96['length']===0x0&&(console[_0x215c00(0x252)](_0x14438a['GHFqz']),process[_0x215c00(0x22c)](0x1));const _0x5cda92=_0x424c40['excludeScenarios']??[],_0x59c340=_0x5cda92['filter'](_0x12e091=>!Number[_0x215c00(0x289)](_0x12e091)||_0x12e091<0x1||_0x12e091>_0x53ae96[_0x215c00(0x20b)]);if(_0x14438a[_0x215c00(0x224)](_0x59c340['length'],0x0)){console['error']('\x0aโŒ\x20Invalid\x20scenario\x20number(s):\x20'+_0x59c340['join'](',\x20')),console[_0x215c00(0x1e0)]('\x0aAvailable\x20scenarios:');for(let _0x5c5ee9=0x0;_0x14438a['kgZVN'](_0x5c5ee9,_0x53ae96['length']);_0x5c5ee9++){console['log']('\x20\x20'+_0x14438a['bDyKb'](_0x5c5ee9,0x1)+'.\x20'+_0x53ae96[_0x5c5ee9]['description']);}process['exit'](0x1);}const _0x557cba=new Set(_0x5cda92[_0x215c00(0x1dc)](_0x592850=>_0x592850-0x1)),_0x2f7b43=_0x53ae96['filter']((_0x16cf19,_0x401f6c)=>!_0x557cba[_0x215c00(0x233)](_0x401f6c));_0x2f7b43[_0x215c00(0x20b)]===0x0&&(console['error']('\x0aโŒ\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x424c40[_0x215c00(0x206)])await outputJsonReport(_0x4ea341,_0xebcdc2,_0x2f7b43);else{const _0x4e91cd=await _0x14438a[_0x215c00(0x1f8)](getFeatureReportMarkdown,_0x4ea341,{'itemIds':_0x2f7b43[_0x215c00(0x1dc)](_0x26f757=>_0x26f757['id'])});process['stdout']['write'](_0x4e91cd['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x43b8be,_0x4fa56c,_0x2b5549){const _0x37d5a3=_0x4ced5c,_0x24fdd9={'ulttk':function(_0xda90d8,_0x8dc40){return _0xda90d8===_0x8dc40;},'KRDsM':function(_0x2e9149,_0x1e76f3,_0x4fa028){return _0x2e9149(_0x1e76f3,_0x4fa028);},'HEsHI':function(_0x69e913){return _0x69e913();}},_0x40ad53=_0x24fdd9[_0x37d5a3(0x2a0)](getApiBaseUrl),_0x225c59=await getFeatureReport(_0x43b8be),_0xcbdab7=new Map(_0x225c59[_0x37d5a3(0x1fa)][_0x37d5a3(0x1dc)](_0x303f00=>[_0x303f00['id'],_0x303f00])),_0x188a80=await Promise[_0x37d5a3(0x247)](_0x2b5549[_0x37d5a3(0x1dc)](async _0x9ba000=>{const _0x4820ae=_0x37d5a3,_0x15f06a=_0xcbdab7['get'](_0x9ba000['id']),_0x4fbdcb=_0x15f06a?.[_0x4820ae(0x29a)]??null;let _0x172941=[];if(_0x9ba000[_0x4820ae(0x29f)])try{const {steps:_0x16dd38}=await getBrowserSessionSteps(_0x9ba000[_0x4820ae(0x29f)]);_0x16dd38[_0x4820ae(0x20b)]>0x0&&(_0x172941=_0x16dd38['map'](_0x46aea9=>{const _0x392c1e=_0x4820ae,_0x575b00=_0x46aea9[_0x392c1e(0x268)]['find'](_0x3ebd13=>_0x3ebd13[_0x392c1e(0x21c)]===_0x392c1e(0x24d)&&_0x3ebd13['timing']==='after')??_0x46aea9['assets']['find'](_0x331bf3=>_0x331bf3[_0x392c1e(0x21c)]==='screenshot');let _0x1db3c9=null,_0x1c5d62=null;if(_0x575b00){const _0x6f3e22=_0x575b00[_0x392c1e(0x299)][_0x392c1e(0x245)][_0x392c1e(0x22f)]('/')[_0x392c1e(0x2ad)]();_0x1db3c9=_0x40ad53+'/api/v1/mcp/browser-sessions/'+_0x9ba000[_0x392c1e(0x29f)]+_0x392c1e(0x225)+_0x6f3e22,_0x6f3e22&&(_0x1c5d62=_0x6f3e22['replace'](/\.\w+$/,'')[_0x392c1e(0x26a)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x1c5d62||_0x46aea9[_0x392c1e(0x264)]||_0x46aea9['stepName']||_0x392c1e(0x222)+_0x46aea9['position'],'screenshot':_0x1db3c9,'is_key_step':_0x46aea9['isKeyStep']};}));}catch{}return _0x24fdd9['ulttk'](_0x172941[_0x4820ae(0x20b)],0x0)&&_0x4fbdcb?.['screenshotUrls']&&(_0x172941=_0x4fbdcb[_0x4820ae(0x284)][_0x4820ae(0x1dc)]((_0x2a163f,_0x17158a)=>({'description':_0x4820ae(0x24b)+(_0x17158a+0x1),'screenshot':_0x2a163f,'is_key_step':![]}))),{'description':_0x9ba000[_0x4820ae(0x264)],'result':getScenarioResult(_0x9ba000),'rationale':_0x24fdd9[_0x4820ae(0x290)](getScenarioRationale,_0x9ba000,_0x4fbdcb?.[_0x4820ae(0x25d)]),'steps':_0x172941};})),_0x113d1c={'url':_0x4fa56c['dashboardUrl'],'scenarios':_0x188a80};process[_0x37d5a3(0x274)]['write'](JSON[_0x37d5a3(0x215)](_0x113d1c,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x50654e){const _0x584195=_0x4ced5c,_0x496a5f={'hqMUB':function(_0x106cde,_0x43251a){return _0x106cde(_0x43251a);},'hBjpo':_0x584195(0x1e7),'MaeFn':'in_progress','MKPOb':function(_0x1e11fe,_0x22dbfa,_0x3ea28f){return _0x1e11fe(_0x22dbfa,_0x3ea28f);}},_0xa2a495=_0x50654e||await getActiveFeatureId();if(!_0xa2a495)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 _0x22d61d=await getFeature(_0xa2a495);if(!_0x22d61d['currentSessionId'])throw new Error(_0x584195(0x2b1));const {sessions:_0xea0138}=await _0x496a5f['hqMUB'](listFeatureSessions,_0xa2a495),_0x1f78ff=_0xea0138['find'](_0x3191e1=>_0x3191e1['id']===_0x22d61d[_0x584195(0x1ed)]);if(!_0x1f78ff)throw new Error(_0x584195(0x265));if(_0x1f78ff[_0x584195(0x22d)]==='completed'){console['log'](_0x496a5f[_0x584195(0x203)]);return;}if(_0x1f78ff['status']!==_0x496a5f['MaeFn'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x1f78ff[_0x584195(0x22d)]);console['log']('\x0aConcluding\x20session...'),await _0x496a5f['MKPOb'](concludeSession,_0xa2a495,_0x22d61d[_0x584195(0x1ed)]),console[_0x584195(0x1e0)](_0x584195(0x269)+_0x1f78ff[_0x584195(0x2aa)]+_0x584195(0x1ea)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x1b8d84){const _0x5874d5=_0x4ced5c,_0x1afdda={'JaXLJ':function(_0x2b3477){return _0x2b3477();},'OcLfP':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Wjwjx':function(_0x243ed5,_0x4e6346){return _0x243ed5===_0x4e6346;},'MkeHR':_0x5874d5(0x2ac),'QNWnt':_0x5874d5(0x260),'NZBSi':function(_0x4b85ac,_0x70141){return _0x4b85ac===_0x70141;}},_0x1153b2=_0x1b8d84||await _0x1afdda['JaXLJ'](getActiveFeatureId);if(!_0x1153b2)throw new Error(_0x1afdda['OcLfP']);const _0x547276=await getFeature(_0x1153b2);console[_0x5874d5(0x1e0)]('\x0a๐Ÿ“\x20Sessions\x20for\x20feature\x20review:\x20'+_0x547276[_0x5874d5(0x28a)]+'\x0a');const {sessions:_0x1b329f}=await listFeatureSessions(_0x1153b2);if(_0x1afdda['Wjwjx'](_0x1b329f['length'],0x0)){console['log'](_0x1afdda['MkeHR']);return;}for(const _0x4f335c of _0x1b329f){const _0x9d2b61=_0x1afdda[_0x5874d5(0x26f)](_0x4f335c['status'],_0x1afdda[_0x5874d5(0x1fc)])?'โœ…':_0x1afdda['NZBSi'](_0x4f335c['status'],'in_progress')?'๐Ÿ”„':'โ–ถ๏ธ';console['log'](_0x9d2b61+'\x20Session\x20'+_0x4f335c['iteration']+'\x20('+_0x4f335c['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x4f335c[_0x5874d5(0x22d)]),console[_0x5874d5(0x1e0)]('\x20\x20\x20Created:\x20'+new Date(_0x4f335c['createdAt'])[_0x5874d5(0x22e)]()),_0x4f335c[_0x5874d5(0x239)]&&console[_0x5874d5(0x1e0)]('\x20\x20\x20Completed:\x20'+new Date(_0x4f335c['completedAt'])['toLocaleString']()),console[_0x5874d5(0x1e0)]('');}}export async function featureAddScenario(_0x2c039b,_0x1694bb){const _0x1a1715=_0x4ced5c,_0x3d66c6={'GGYga':function(_0x45a929){return _0x45a929();},'dpCOM':function(_0x772e81,_0x51784a){return _0x772e81(_0x51784a);},'fnUmt':function(_0x65da9,_0x9fac0a,_0x4fd9a0){return _0x65da9(_0x9fac0a,_0x4fd9a0);}},_0x5d50a3=_0x1694bb||await _0x3d66c6['GGYga'](getActiveFeatureId);if(!_0x5d50a3)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 _0x9c9e7d=await _0x3d66c6['dpCOM'](getFeature,_0x5d50a3);if(_0x9c9e7d[_0x1a1715(0x2a8)]&&!_0x9c9e7d[_0x1a1715(0x2a8)]['submittedAt'])throw new Error(_0x1a1715(0x23f)+_0x9c9e7d[_0x1a1715(0x2a1)]);await _0x3d66c6['fnUmt'](createChecklistItem,_0x5d50a3,_0x2c039b);const _0x3fb90a=await getFeature(_0x5d50a3);console[_0x1a1715(0x1e0)](_0x1a1715(0x285)),displayFeature(_0x3fb90a,_0x3fb90a[_0x1a1715(0x1fa)]);}export async function featureEditScenario(_0x11e79a,_0x25ab53){const _0x3f9e4c=_0x4ced5c,_0x3467e5={'FHVkW':'\x0aโŒ\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','MIlgo':_0x3f9e4c(0x279),'hjroI':'\x0aโŒ\x20No\x20scenarios\x20found\x20to\x20edit.','nrRtH':function(_0x1c7fba,_0x537172){return _0x1c7fba===_0x537172;},'nUgWm':function(_0x1547b7,_0x23957d){return _0x1547b7<_0x23957d;},'IcFrG':function(_0x4c94a8,_0x1ac540){return _0x4c94a8+_0x1ac540;},'yExIx':function(_0x30ac76,_0x469d39){return _0x30ac76-_0x469d39;},'qElPJ':function(_0x2d4cb0,_0x1b26f6){return _0x2d4cb0<_0x1b26f6;},'uRhmb':function(_0x310578,_0x5629b4){return _0x310578>=_0x5629b4;},'VsCTu':function(_0x46ac1b,_0x2e7bb3){return _0x46ac1b<_0x2e7bb3;},'gakqM':function(_0x166a49,_0x21e310,_0xfa0a50,_0x1723b7){return _0x166a49(_0x21e310,_0xfa0a50,_0x1723b7);},'ejUrS':function(_0x232b41,_0x433126,_0x138abd){return _0x232b41(_0x433126,_0x138abd);}},_0x251971=_0x25ab53['id']||await getActiveFeatureId();!_0x251971&&(console[_0x3f9e4c(0x252)](_0x3467e5['FHVkW']),console[_0x3f9e4c(0x252)](_0x3467e5['MIlgo']),process[_0x3f9e4c(0x22c)](0x1));const _0x19c08a=await getFeature(_0x251971);_0x19c08a[_0x3f9e4c(0x2a8)]&&!_0x19c08a['latestReview']['submittedAt']&&(console['error']('\x0aโŒ\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console[_0x3f9e4c(0x252)]('\x20\x20'+_0x19c08a[_0x3f9e4c(0x2a1)]),process[_0x3f9e4c(0x22c)](0x1));const _0x49c880=_0x19c08a[_0x3f9e4c(0x1fa)]||[];_0x49c880['length']===0x0&&(console[_0x3f9e4c(0x252)](_0x3467e5['hjroI']),process['exit'](0x1));if(_0x3467e5[_0x3f9e4c(0x1cd)](_0x25ab53['scenario'],undefined)){console['error']('\x0aโŒ\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x3f9e4c(0x1e0)](_0x3f9e4c(0x298));for(let _0x3ae600=0x0;_0x3467e5[_0x3f9e4c(0x238)](_0x3ae600,_0x49c880[_0x3f9e4c(0x20b)]);_0x3ae600++){console[_0x3f9e4c(0x1e0)]('\x20\x20'+_0x3467e5[_0x3f9e4c(0x217)](_0x3ae600,0x1)+'.\x20'+_0x49c880[_0x3ae600]['description']);}process[_0x3f9e4c(0x22c)](0x1);}const _0x388651=_0x3467e5['yExIx'](_0x25ab53[_0x3f9e4c(0x204)],0x1);if(_0x3467e5['qElPJ'](_0x388651,0x0)||_0x3467e5['uRhmb'](_0x388651,_0x49c880[_0x3f9e4c(0x20b)])){console['error'](_0x3f9e4c(0x2b2)+_0x25ab53[_0x3f9e4c(0x204)]+_0x3f9e4c(0x1d6)+_0x49c880[_0x3f9e4c(0x20b)]+'\x20scenarios.'),console['log']('\x0aAvailable\x20scenarios:');for(let _0x3cf402=0x0;_0x3467e5[_0x3f9e4c(0x212)](_0x3cf402,_0x49c880['length']);_0x3cf402++){console['log']('\x20\x20'+_0x3467e5['IcFrG'](_0x3cf402,0x1)+'.\x20'+_0x49c880[_0x3cf402]['description']);}process[_0x3f9e4c(0x22c)](0x1);}const _0x33f144=_0x49c880[_0x388651];await _0x3467e5[_0x3f9e4c(0x21b)](updateChecklistItem,_0x251971,_0x33f144['id'],{'description':_0x11e79a});const _0x44c1b6=await getFeature(_0x251971);console[_0x3f9e4c(0x1e0)]('\x0aโœ…\x20Scenario\x20updated'),_0x3467e5[_0x3f9e4c(0x1e5)](displayFeature,_0x44c1b6,_0x44c1b6['checklistItems']);}async function downloadFeedbackImage(_0xb7e6b0,_0x23853d){const _0x4a7460=_0x4ced5c,_0x578303={'NpTtz':function(_0x519e1f,_0x2218cf,_0x303f7f){return _0x519e1f(_0x2218cf,_0x303f7f);},'sAOug':function(_0x88e945,_0x53bf9e){return _0x88e945(_0x53bf9e);},'ElXSM':function(_0x244df4,_0xbc1c9,_0x2f32bc){return _0x244df4(_0xbc1c9,_0x2f32bc);}};try{const _0x69ace9=join(getRangerDir(),_0x4a7460(0x229));await _0x578303['NpTtz'](mkdir,_0x69ace9,{'recursive':!![]});const _0x15b351=join(_0x69ace9,_0x4a7460(0x1ef)+_0x23853d+_0x4a7460(0x219)),_0x48672c=await _0x578303['sAOug'](fetch,_0xb7e6b0);if(!_0x48672c['ok'])return null;const _0x3e2ecc=Buffer[_0x4a7460(0x1f5)](await _0x48672c['arrayBuffer']());return await _0x578303['ElXSM'](writeFile,_0x15b351,_0x3e2ecc),_0x15b351;}catch{return null;}}export async function featureGetReview(_0x348b9b){const _0x101a54=_0x4ced5c,_0x44efb6={'IjDLI':function(_0x5aedd2){return _0x5aedd2();},'AFWeE':_0x101a54(0x258),'XCXFP':function(_0x455352,_0x1bafa5){return _0x455352<_0x1bafa5;},'MrRhO':function(_0x327933,_0x4a63bd){return _0x327933>_0x4a63bd;},'nmfar':_0x101a54(0x292),'MVPvr':_0x101a54(0x1fb),'OjomI':_0x101a54(0x2a7),'ALDvz':_0x101a54(0x2a5),'JRYEw':function(_0x1c1084,_0x2c34e1){return _0x1c1084===_0x2c34e1;},'KRvXU':function(_0x1c8a0e,_0x4f68be){return _0x1c8a0e>=_0x4f68be;}},_0x3cacf1=_0x348b9b||await _0x44efb6[_0x101a54(0x207)](getActiveFeatureId);if(!_0x3cacf1)throw new Error(_0x44efb6[_0x101a54(0x280)]);const _0x194b72=await getFeature(_0x3cacf1),{items:_0xc275e5}=await getActionItems(_0x3cacf1);console[_0x101a54(0x1e0)]('\x0a๐Ÿ“‹\x20Feedback\x20for:\x20'+_0x194b72[_0x101a54(0x28a)]+'\x20('+_0x194b72['id']+')\x0a');if(_0xc275e5[_0x101a54(0x20b)]===0x0){console[_0x101a54(0x1e0)](_0x101a54(0x1d4));return;}for(let _0x1c0e38=0x0;_0x44efb6['XCXFP'](_0x1c0e38,_0xc275e5['length']);_0x1c0e38++){const _0x311ef0=_0xc275e5[_0x1c0e38],_0x50b49e=_0x44efb6['MrRhO'](_0x311ef0[_0x101a54(0x1f9)],0x1)?'\x20(v'+_0x311ef0[_0x101a54(0x1f9)]+')':'',_0x42a5cf=await getItemFeedback(_0x3cacf1,_0x311ef0['id']);if(_0x42a5cf['unaddressedComments'][_0x101a54(0x20b)]>0x0){console['log'](_0x101a54(0x1e8)+(_0x1c0e38+0x1)+':\x20\x22'+_0x311ef0['description']+'\x22'+_0x50b49e+_0x101a54(0x1cc)+_0x42a5cf['unaddressedComments']['length']+_0x101a54(0x23e));for(const _0x52502b of _0x42a5cf[_0x101a54(0x2b3)]){const _0x5f42f0=new Date(_0x52502b[_0x101a54(0x1fd)])['toLocaleDateString'](_0x44efb6[_0x101a54(0x25b)],{'month':'short','day':'numeric'}),_0x263e9f=_0x52502b[_0x101a54(0x25e)]||_0x52502b['authorEmail']||_0x44efb6['MVPvr'];console[_0x101a54(0x1e0)](_0x101a54(0x23d)+_0x263e9f+'\x20('+_0x5f42f0+_0x101a54(0x1dd)+_0x52502b['content']+'\x22');if(_0x52502b[_0x101a54(0x25f)]){const _0xf0043c=await downloadFeedbackImage(_0x52502b['assetUrl'],_0x52502b['id']);_0xf0043c&&console['log'](_0x101a54(0x21a)+_0xf0043c);}if(_0x52502b[_0x101a54(0x1ee)]){const _0x8f2746=_0x52502b[_0x101a54(0x1ee)][_0x101a54(0x1e3)]['split'](_0x44efb6[_0x101a54(0x282)])[_0x101a54(0x2ad)]()?.['split'](':')[0x0]||_0x44efb6[_0x101a54(0x27d)],_0x48e332=_0x52502b[_0x101a54(0x1ee)][_0x101a54(0x296)]?'\x20\x22'+_0x52502b[_0x101a54(0x1ee)]['textContent'][_0x101a54(0x249)](0x0,0x3c)+'\x22':'';console[_0x101a54(0x1e0)](_0x101a54(0x243)+_0x8f2746+'>'+_0x48e332),console[_0x101a54(0x1e0)](_0x101a54(0x283)+_0x52502b[_0x101a54(0x1ee)]['selector']);}else{if(_0x52502b[_0x101a54(0x275)]){const _0x38e249=_0x52502b[_0x101a54(0x275)]['coordinates'];_0x44efb6[_0x101a54(0x231)](_0x52502b['spatial'][_0x101a54(0x205)],'point')&&_0x44efb6['KRvXU'](_0x38e249['length'],0x2)?console['log'](_0x101a54(0x1f0)+_0x38e249[0x0][_0x101a54(0x2a6)](0x2)+',\x20'+_0x38e249[0x1]['toFixed'](0x2)+')'):console[_0x101a54(0x1e0)](_0x101a54(0x1df)+_0x52502b[_0x101a54(0x275)][_0x101a54(0x205)]+'\x20at\x20['+_0x38e249[_0x101a54(0x1dc)](_0x336e5e=>_0x336e5e[_0x101a54(0x2a6)](0x2))[_0x101a54(0x1d5)](',\x20')+']');}}}if(_0x42a5cf[_0x101a54(0x1e1)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x102872 of _0x42a5cf[_0x101a54(0x1e1)][_0x101a54(0x22f)]('\x0a')){console[_0x101a54(0x1e0)](_0x101a54(0x291)+_0x102872);}}}else console[_0x101a54(0x1e0)]('Scenario\x20'+(_0x1c0e38+0x1)+':\x20\x22'+_0x311ef0[_0x101a54(0x264)]+'\x22'+_0x50b49e+'\x20โ€”\x20no\x20comments'),console['log'](_0x101a54(0x27c));console[_0x101a54(0x1e0)]('');}}export async function featureDelete(_0x3024e3){const _0x4babb1=_0x4ced5c,_0x46568a={'UdziB':function(_0x232f18,_0x43e7c8){return _0x232f18(_0x43e7c8);}},_0x24176e=_0x3024e3||await getActiveFeatureId();if(!_0x24176e)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 _0x1c3b76=await getFeature(_0x24176e);await _0x46568a[_0x4babb1(0x1f4)](softDeleteFeature,_0x24176e),console[_0x4babb1(0x1e0)]('\x0a๐Ÿ—‘๏ธ\x20\x20Deleted\x20feature\x20review:\x20'+_0x1c3b76[_0x4babb1(0x28a)]+'\x20('+_0x24176e+')'),console[_0x4babb1(0x1e0)](_0x4babb1(0x1e4)+_0x24176e);}export async function featureRestore(_0x1003f4){const _0x4c4fab=_0x4ced5c;await restoreFeature(_0x1003f4);const _0x10e146=await getFeature(_0x1003f4);console[_0x4c4fab(0x1e0)]('\x0aโœ…\x20Restored\x20feature\x20review:\x20'+_0x10e146['name']+'\x20('+_0x1003f4+')'),displayFeature(_0x10e146,_0x10e146[_0x4c4fab(0x1fa)]);}
@@ -1 +1 @@
1
- (function(_0x1a8278,_0xc37b34){const _0x9ef686=_0x33a6,_0x5970ba=_0x1a8278();while(!![]){try{const _0x132257=-parseInt(_0x9ef686(0x118))/0x1+parseInt(_0x9ef686(0x116))/0x2*(-parseInt(_0x9ef686(0x119))/0x3)+-parseInt(_0x9ef686(0x114))/0x4+parseInt(_0x9ef686(0x113))/0x5*(-parseInt(_0x9ef686(0x117))/0x6)+parseInt(_0x9ef686(0x11b))/0x7*(parseInt(_0x9ef686(0x110))/0x8)+parseInt(_0x9ef686(0x11a))/0x9+parseInt(_0x9ef686(0x112))/0xa;if(_0x132257===_0xc37b34)break;else _0x5970ba['push'](_0x5970ba['shift']());}catch(_0x324ecf){_0x5970ba['push'](_0x5970ba['shift']());}}}(_0x5742,0x271c1));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0x33a6(_0x577aef,_0x360742){_0x577aef=_0x577aef-0x10e;const _0x57422c=_0x5742();let _0x33a6f8=_0x57422c[_0x577aef];return _0x33a6f8;}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x26b25a=_0x33a6,_0x49fe9e={'TMkei':_0x26b25a(0x10e),'FkiJd':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x1f0247=()=>{const _0x3ca1ba=_0x26b25a;process[_0x3ca1ba(0x111)](0x0);};process['once'](_0x26b25a(0x115),_0x1f0247),process[_0x26b25a(0x11c)](_0x49fe9e['TMkei'],_0x1f0247),process[_0x26b25a(0x11c)](_0x49fe9e['FkiJd'],_0x1f0247),cancellationHandlersInstalled=!![];}function _0x5742(){const _0x3da40e=['2699450grspON','4670jlXyBf','510988vNlUwk','SIGINT','169734JQazPs','222SJoviX','265938wjsaBJ','6JGhCza','1701513xBZApY','224kKafzb','once','error','Valid\x20hooks:\x20','SIGTERM','keys','74792hdxYHv','exit'];_0x5742=function(){return _0x3da40e;};return _0x5742();}export async function hook(_0x4cad5d,_0x15fb77){const _0xa9e2e=_0x33a6;installCancellationHandlers();const _0x7b7d06=HOOKS[_0x4cad5d];if(!_0x7b7d06){const _0x1ac4eb=Object[_0xa9e2e(0x10f)](HOOKS)['join'](',\x20');console[_0xa9e2e(0x11d)]('Unknown\x20hook:\x20'+_0x4cad5d),console['error'](_0xa9e2e(0x11e)+_0x1ac4eb),process[_0xa9e2e(0x111)](0x1);}await _0x7b7d06(_0x15fb77);}
1
+ (function(_0x42d6af,_0x2af47c){const _0x5f352b=_0x5c4e,_0x35b830=_0x42d6af();while(!![]){try{const _0x299899=parseInt(_0x5f352b(0x10b))/0x1*(-parseInt(_0x5f352b(0x114))/0x2)+-parseInt(_0x5f352b(0x10d))/0x3*(-parseInt(_0x5f352b(0x112))/0x4)+parseInt(_0x5f352b(0x117))/0x5*(-parseInt(_0x5f352b(0x115))/0x6)+-parseInt(_0x5f352b(0x110))/0x7*(parseInt(_0x5f352b(0x10c))/0x8)+-parseInt(_0x5f352b(0x10e))/0x9*(parseInt(_0x5f352b(0x118))/0xa)+parseInt(_0x5f352b(0x116))/0xb+parseInt(_0x5f352b(0x10a))/0xc;if(_0x299899===_0x2af47c)break;else _0x35b830['push'](_0x35b830['shift']());}catch(_0x56c53b){_0x35b830['push'](_0x35b830['shift']());}}}(_0x31fa,0x2c691));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x350e54=_0x5c4e;if(cancellationHandlersInstalled)return;const _0x380d37=()=>{process['exit'](0x0);};process[_0x350e54(0x113)]('SIGINT',_0x380d37),process[_0x350e54(0x113)](_0x350e54(0x119),_0x380d37),process[_0x350e54(0x113)]('SIGHUP',_0x380d37),cancellationHandlersInstalled=!![];}function _0x31fa(){const _0x5a1572=['exit','keys','error','1006488LrXtZK','197pIoVUF','8RJnZIC','3XJfopX','9OgibVZ','Valid\x20hooks:\x20','100723NQTZfQ','join','662932JCHKML','once','1772mJyzPE','124962lQbNSs','3381356WDZZFv','10XYdswa','1445130FHkUxE','SIGTERM'];_0x31fa=function(){return _0x5a1572;};return _0x31fa();}function _0x5c4e(_0x8b9290,_0x47c4f2){_0x8b9290=_0x8b9290-0x107;const _0x31fae5=_0x31fa();let _0x5c4ef5=_0x31fae5[_0x8b9290];return _0x5c4ef5;}export async function hook(_0x3d47c6,_0x111a06){const _0x5cce8e=_0x5c4e;installCancellationHandlers();const _0x1c822d=HOOKS[_0x3d47c6];if(!_0x1c822d){const _0x40ff00=Object[_0x5cce8e(0x108)](HOOKS)[_0x5cce8e(0x111)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x3d47c6),console[_0x5cce8e(0x109)](_0x5cce8e(0x10f)+_0x40ff00),process[_0x5cce8e(0x107)](0x1);}await _0x1c822d(_0x111a06);}
@@ -1 +1 @@
1
- const _0x59a041=_0x4588;function _0x4588(_0x39fbf5,_0x4c4070){_0x39fbf5=_0x39fbf5-0x10b;const _0x35460f=_0x3546();let _0x458807=_0x35460f[_0x39fbf5];return _0x458807;}(function(_0x5d9d97,_0xd0d963){const _0x394c1b=_0x4588,_0xf12218=_0x5d9d97();while(!![]){try{const _0x15bdc8=-parseInt(_0x394c1b(0x110))/0x1+parseInt(_0x394c1b(0x10e))/0x2+-parseInt(_0x394c1b(0x112))/0x3+-parseInt(_0x394c1b(0x10f))/0x4+parseInt(_0x394c1b(0x114))/0x5+-parseInt(_0x394c1b(0x113))/0x6*(parseInt(_0x394c1b(0x115))/0x7)+-parseInt(_0x394c1b(0x10c))/0x8*(-parseInt(_0x394c1b(0x111))/0x9);if(_0x15bdc8===_0xd0d963)break;else _0xf12218['push'](_0xf12218['shift']());}catch(_0x488567){_0xf12218['push'](_0xf12218['shift']());}}}(_0x3546,0x73993));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x59a041(0x10b);function _0x3546(){const _0x807c8e=['99MJfJmW','2123178SkezHC','36nWLeib','4127660zMlydM','852299GSLfHf','\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.','1354536memmYj','session_id','1402960RLLAPY','3274616rheueT','659086eEaBqU'];_0x3546=function(){return _0x807c8e;};return _0x3546();}export async function autoPrompt(){const _0x2cde27=_0x59a041,_0x51dffd={'ZtQVw':function(_0x23036d){return _0x23036d();},'eWden':function(_0x45dffa,_0xef7334){return _0x45dffa(_0xef7334);}},_0x287342=await _0x51dffd['ZtQVw'](readHookInput),_0x3e8e77=_0x287342?.[_0x2cde27(0x10d)];if(!_0x3e8e77)return;if(isSessionEnabled(_0x3e8e77)||hasSessionBeenPrompted(_0x3e8e77))return;_0x51dffd['eWden'](markSessionPrompted,_0x3e8e77),console['log'](AUTO_PROMPT_TEXT);}
1
+ (function(_0x285481,_0x2449cf){const _0x450a10=_0x3fcc,_0x159572=_0x285481();while(!![]){try{const _0x5371f0=parseInt(_0x450a10(0x9c))/0x1*(parseInt(_0x450a10(0xa3))/0x2)+parseInt(_0x450a10(0xa1))/0x3+parseInt(_0x450a10(0x9e))/0x4*(parseInt(_0x450a10(0xa2))/0x5)+parseInt(_0x450a10(0xa5))/0x6*(-parseInt(_0x450a10(0xa9))/0x7)+parseInt(_0x450a10(0xa7))/0x8*(-parseInt(_0x450a10(0xaa))/0x9)+-parseInt(_0x450a10(0xa4))/0xa*(parseInt(_0x450a10(0xa8))/0xb)+parseInt(_0x450a10(0x9f))/0xc*(-parseInt(_0x450a10(0xa6))/0xd);if(_0x5371f0===_0x2449cf)break;else _0x159572['push'](_0x159572['shift']());}catch(_0x1cea8d){_0x159572['push'](_0x159572['shift']());}}}(_0x12ce,0x4d0ed));function _0x3fcc(_0x6e6d6b,_0x548600){_0x6e6d6b=_0x6e6d6b-0x9c;const _0x12ce4f=_0x12ce();let _0x3fcc4e=_0x12ce4f[_0x6e6d6b];return _0x3fcc4e;}import{readHookInput}from'./output.js';function _0x12ce(){const _0x1e2305=['90KpdEmI','552kVlXrz','322387vVyXfp','8hYSnnO','31009bBUxYN','35756eQymWG','2601009uyBcxz','1iiShvX','log','121228YEHtgB','24BHWIPY','ambzw','1317798UlfBVM','60WpWrtj','693170YNqzKi'];_0x12ce=function(){return _0x1e2305;};return _0x12ce();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';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.';export async function autoPrompt(){const _0x49c16d=_0x3fcc,_0x27c912={'ambzw':function(_0x2eafc1,_0x4d0b3b){return _0x2eafc1(_0x4d0b3b);}},_0xea6e75=await readHookInput(),_0x4581e4=_0xea6e75?.['session_id'];if(!_0x4581e4)return;if(isSessionEnabled(_0x4581e4)||hasSessionBeenPrompted(_0x4581e4))return;_0x27c912[_0x49c16d(0xa0)](markSessionPrompted,_0x4581e4),console[_0x49c16d(0x9d)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x1ad846,_0x1919d6){const _0x4165ca=_0x254f,_0xbd63a5=_0x1ad846();while(!![]){try{const _0x1ec0c4=-parseInt(_0x4165ca(0x1c0))/0x1*(parseInt(_0x4165ca(0x1c1))/0x2)+-parseInt(_0x4165ca(0x1b8))/0x3+parseInt(_0x4165ca(0x1c3))/0x4+parseInt(_0x4165ca(0x1be))/0x5*(parseInt(_0x4165ca(0x1bb))/0x6)+-parseInt(_0x4165ca(0x1b6))/0x7+parseInt(_0x4165ca(0x1b4))/0x8*(parseInt(_0x4165ca(0x1bc))/0x9)+-parseInt(_0x4165ca(0x1c6))/0xa*(-parseInt(_0x4165ca(0x1ba))/0xb);if(_0x1ec0c4===_0x1919d6)break;else _0xbd63a5['push'](_0xbd63a5['shift']());}catch(_0x497657){_0xbd63a5['push'](_0xbd63a5['shift']());}}}(_0x24a6,0xb7136));function _0x24a6(){const _0x3e69f8=['12ChyoKN','7324722UrGahB','sqiev','749130YhDFUz','main','2591CEoQAH','932NBBRWo','qZUuR','2783396xgGxpg','env','JlgkN','96380DXGiWs','8fJocYL','\x20and\x20branch\x20\x27','1452024uXyWxQ','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','3936051OtvzCw','master','1903LyHtys'];_0x24a6=function(){return _0x3e69f8;};return _0x24a6();}function _0x254f(_0x3a1a2d,_0x249d98){_0x3a1a2d=_0x3a1a2d-0x1b4;const _0x24a64f=_0x24a6();let _0x254fe6=_0x24a64f[_0x3a1a2d];return _0x254fe6;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x2da92f){const _0x1c95ac=_0x254f,_0x50073e={'iDzhP':function(_0x1ccfc7){return _0x1ccfc7();},'sqiev':function(_0x892db3,_0x259886){return _0x892db3!==_0x259886;},'pYNCt':function(_0x56c27d,_0x2fd9d7){return _0x56c27d!==_0x2fd9d7;},'qZUuR':_0x1c95ac(0x1b9),'NsHgv':function(_0x40e970,_0x460bf5){return _0x40e970(_0x460bf5);},'JlgkN':_0x1c95ac(0x1bf)},_0x4dde3b=_0x2da92f||process[_0x1c95ac(0x1c4)]['CLAUDE_SESSION_ID']||'';_0x4dde3b&&disableSession(_0x4dde3b);const _0xcfbc93=_0x50073e['iDzhP'](getCurrentBranch);_0xcfbc93&&_0x50073e[_0x1c95ac(0x1bd)](_0xcfbc93,_0x1c95ac(0x1bf))&&_0x50073e['pYNCt'](_0xcfbc93,_0x50073e[_0x1c95ac(0x1c2)])&&disableBranch(_0xcfbc93),_0x50073e['NsHgv'](printBlock,_0x1c95ac(0x1b7)+(_0xcfbc93&&_0xcfbc93!==_0x50073e[_0x1c95ac(0x1c5)]&&_0xcfbc93!==_0x50073e['qZUuR']?_0x1c95ac(0x1b5)+_0xcfbc93+'\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(_0x6503cb,_0xb6ce94){const _0xb4dc57=_0x3c43,_0xb40e3c=_0x6503cb();while(!![]){try{const _0x50a131=parseInt(_0xb4dc57(0x17e))/0x1+-parseInt(_0xb4dc57(0x180))/0x2*(-parseInt(_0xb4dc57(0x184))/0x3)+-parseInt(_0xb4dc57(0x17a))/0x4+parseInt(_0xb4dc57(0x185))/0x5*(-parseInt(_0xb4dc57(0x183))/0x6)+parseInt(_0xb4dc57(0x181))/0x7*(-parseInt(_0xb4dc57(0x17d))/0x8)+-parseInt(_0xb4dc57(0x18b))/0x9*(-parseInt(_0xb4dc57(0x17c))/0xa)+parseInt(_0xb4dc57(0x179))/0xb*(-parseInt(_0xb4dc57(0x17f))/0xc);if(_0x50a131===_0xb6ce94)break;else _0xb40e3c['push'](_0xb40e3c['shift']());}catch(_0x3f6f3e){_0xb40e3c['push'](_0xb40e3c['shift']());}}}(_0x5b6a,0x2b5f2));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x3c43(_0x403ee1,_0x39477e){_0x403ee1=_0x403ee1-0x179;const _0x5b6aca=_0x5b6a();let _0x3c43e6=_0x5b6aca[_0x403ee1];return _0x3c43e6;}function _0x5b6a(){const _0xc73dbe=['143OwaAsJ','183628hnxgmq','PwBpI','93700Fafowl','40ISfefU','288641WbqUjF','107220MLsTmK','2yOQAjn','49553DfpxHv','\x20and\x20branch\x20\x27','185100YsGXcm','373158rjnUXr','35PsfgTP','main','xIBkn','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','CLAUDE_SESSION_ID','.\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`.','171KkCqjF'];_0x5b6a=function(){return _0xc73dbe;};return _0x5b6a();}import{printBlock}from'./output.js';export async function disable(_0x375403){const _0x1b6ac8=_0x3c43,_0x20a1fc={'PwBpI':function(_0x5b7ce0,_0x335a34){return _0x5b7ce0!==_0x335a34;},'xIBkn':_0x1b6ac8(0x186),'noLPf':'master','HNjEo':function(_0x21a242,_0x6134a4){return _0x21a242(_0x6134a4);}},_0x2ae780=_0x375403||process['env'][_0x1b6ac8(0x189)]||'';_0x2ae780&&disableSession(_0x2ae780);const _0x157735=getCurrentBranch();_0x157735&&_0x20a1fc[_0x1b6ac8(0x17b)](_0x157735,_0x20a1fc[_0x1b6ac8(0x187)])&&_0x157735!==_0x20a1fc['noLPf']&&_0x20a1fc['HNjEo'](disableBranch,_0x157735),_0x20a1fc['HNjEo'](printBlock,_0x1b6ac8(0x188)+(_0x157735&&_0x157735!==_0x1b6ac8(0x186)&&_0x20a1fc[_0x1b6ac8(0x17b)](_0x157735,'master')?_0x1b6ac8(0x182)+_0x157735+'\x27':'')+_0x1b6ac8(0x18a));}
@@ -1 +1 @@
1
- (function(_0x544585,_0x32e4a9){const _0x2bb572=_0x175f,_0x1fa424=_0x544585();while(!![]){try{const _0x3b4845=-parseInt(_0x2bb572(0x16e))/0x1*(-parseInt(_0x2bb572(0x16d))/0x2)+-parseInt(_0x2bb572(0x16c))/0x3+-parseInt(_0x2bb572(0x176))/0x4+-parseInt(_0x2bb572(0x168))/0x5*(parseInt(_0x2bb572(0x167))/0x6)+parseInt(_0x2bb572(0x16a))/0x7+-parseInt(_0x2bb572(0x17b))/0x8*(-parseInt(_0x2bb572(0x16b))/0x9)+parseInt(_0x2bb572(0x174))/0xa*(parseInt(_0x2bb572(0x179))/0xb);if(_0x3b4845===_0x32e4a9)break;else _0x1fa424['push'](_0x1fa424['shift']());}catch(_0x2ed0af){_0x1fa424['push'](_0x1fa424['shift']());}}}(_0x1a88,0xa2903));function _0x175f(_0x598c97,_0xa07396){_0x598c97=_0x598c97-0x165;const _0x1a88bf=_0x1a88();let _0x175f2d=_0x1a88bf[_0x598c97];return _0x175f2d;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x1a88(){const _0x193fe3=['CLAUDE_SESSION_ID','8089935LCzDOL','45KSFsiF','2169501vTkJcB','6joCkih','31909hNBLmJ','main','\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`.','lRKnY','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','22730PrRbqs','\x0a\x0a**Branch\x20\x27','2587864pMTxHN','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','Odsid','3421sySedZ','#\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`','890336IjZNcS','ranger\x20setup\x20--opencode','NjGBx','18HvonVN','798005Yswwmw'];_0x1a88=function(){return _0x193fe3;};return _0x1a88();}export async function enable(_0xcc6003){const _0x1d74e2=_0x175f,_0x3fe20d={'lRKnY':function(_0x2ddb14){return _0x2ddb14();},'Odsid':'ranger\x20setup','nzQPr':_0x1d74e2(0x172),'Uqszf':function(_0x237d0c,_0x53b858){return _0x237d0c(_0x53b858);},'EIyJY':function(_0x1cc689,_0x2506c0){return _0x1cc689(_0x2506c0);},'NjGBx':function(_0x2d06b3,_0x2ac72a){return _0x2d06b3!==_0x2ac72a;},'tWApr':'master'},_0x155ef9=_0xcc6003||process['env'][_0x1d74e2(0x169)]||'',_0x1e1e09=Boolean(_0xcc6003),_0x457fdd=await _0x3fe20d[_0x1d74e2(0x171)](getToken);if(!_0x457fdd){const _0x452865=_0x1e1e09?_0x1d74e2(0x165):_0x3fe20d[_0x1d74e2(0x178)],_0x458df0=_0x1e1e09?_0x3fe20d['nzQPr']:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x3fe20d['Uqszf'](printBlock,_0x1d74e2(0x17a)+_0x452865+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x458df0);return;}try{await update();}catch{}_0x155ef9&&_0x3fe20d['EIyJY'](enableSession,_0x155ef9);const _0x179c54=_0x3fe20d[_0x1d74e2(0x171)](getCurrentBranch),_0x59ae49=_0x179c54&&_0x179c54!==_0x1d74e2(0x16f)&&_0x3fe20d[_0x1d74e2(0x166)](_0x179c54,_0x3fe20d['tWApr'])?_0x1d74e2(0x175)+_0x179c54+_0x1d74e2(0x173):'',_0x50396a=_0x3fe20d['lRKnY'](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x59ae49+_0x1d74e2(0x177)+_0x50396a+_0x1d74e2(0x170));}
1
+ (function(_0x3e0a72,_0xa9f1e3){const _0x12d018=_0x3186,_0x59c102=_0x3e0a72();while(!![]){try{const _0x39c309=parseInt(_0x12d018(0xf0))/0x1*(parseInt(_0x12d018(0xeb))/0x2)+-parseInt(_0x12d018(0xfa))/0x3*(-parseInt(_0x12d018(0xe7))/0x4)+-parseInt(_0x12d018(0xf8))/0x5*(-parseInt(_0x12d018(0xf4))/0x6)+-parseInt(_0x12d018(0xf2))/0x7+-parseInt(_0x12d018(0xf7))/0x8*(parseInt(_0x12d018(0xf5))/0x9)+parseInt(_0x12d018(0xf3))/0xa*(parseInt(_0x12d018(0xec))/0xb)+-parseInt(_0x12d018(0xe8))/0xc;if(_0x39c309===_0xa9f1e3)break;else _0x59c102['push'](_0x59c102['shift']());}catch(_0x44abc7){_0x59c102['push'](_0x59c102['shift']());}}}(_0xf39d,0x22b6d));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x3186(_0x175e00,_0x85f8a9){_0x175e00=_0x175e00-0xe3;const _0xf39d5b=_0xf39d();let _0x318675=_0xf39d5b[_0x175e00];return _0x318675;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0xf39d(){const _0x402f69=['56177WOvfKi','rNLmh','main','#\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`','13svnJmg','VJLoF','1456245hpIFgm','70HBeVac','36OjcWOd','2934ZrznOn','ranger\x20setup','184wthpzK','150895gPrnLd','FWOcx','3780zuJXzD','ranger\x20setup\x20--opencode','CLAUDE_SESSION_ID','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','BDvlR','96wdjWOM','398700ESZCff','FIKRO','#\x20RANGER\x20ENABLED','22136ePgJkm'];_0xf39d=function(){return _0x402f69;};return _0xf39d();}import{update}from'../update.js';export async function enable(_0x5da216){const _0xa1eddb=_0x3186,_0x32a2e3={'rNLmh':_0xa1eddb(0xe3),'FIKRO':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','VJLoF':function(_0x2313ec,_0x59e2f6){return _0x2313ec(_0x59e2f6);},'FWOcx':function(_0x446fe5){return _0x446fe5();},'ZQwZp':_0xa1eddb(0xee),'PFgOk':'master','BDvlR':function(_0x27bb01){return _0x27bb01();}},_0x3b9a6e=_0x5da216||process['env'][_0xa1eddb(0xe4)]||'',_0xdd16c7=Boolean(_0x5da216),_0x46c00f=await getToken();if(!_0x46c00f){const _0x73cbd3=_0xdd16c7?_0x32a2e3[_0xa1eddb(0xed)]:_0xa1eddb(0xf6),_0x4beb6d=_0xdd16c7?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x32a2e3[_0xa1eddb(0xe9)];printBlock(_0xa1eddb(0xef)+_0x73cbd3+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x4beb6d);return;}try{await update();}catch{}_0x3b9a6e&&_0x32a2e3[_0xa1eddb(0xf1)](enableSession,_0x3b9a6e);const _0x1fa935=_0x32a2e3[_0xa1eddb(0xf9)](getCurrentBranch),_0x4a68d4=_0x1fa935&&_0x1fa935!==_0x32a2e3['ZQwZp']&&_0x1fa935!==_0x32a2e3['PFgOk']?'\x0a\x0a**Branch\x20\x27'+_0x1fa935+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x5b5765=_0x32a2e3[_0xa1eddb(0xe6)](getRangerSkillContent);printBlock(_0xa1eddb(0xea)+_0x4a68d4+_0xa1eddb(0xe5)+_0x5b5765+'\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 _0x18e7(){const _0xec08d5=['633595IkDFVs','7OWhQcL','8BDUBsA','12CfgZWy','75772wCmOwg','272661IRusGu','881130adEDNr','108396MqxJJN','594KznfVl','2VNvGxs','1400394ZngsEh','628839iMlvUV'];_0x18e7=function(){return _0xec08d5;};return _0x18e7();}(function(_0x248f29,_0x4672ec){const _0x4e47dd=_0x1092,_0x352235=_0x248f29();while(!![]){try{const _0x459e11=parseInt(_0x4e47dd(0x15f))/0x1*(parseInt(_0x4e47dd(0x166))/0x2)+parseInt(_0x4e47dd(0x167))/0x3*(-parseInt(_0x4e47dd(0x165))/0x4)+parseInt(_0x4e47dd(0x162))/0x5+parseInt(_0x4e47dd(0x160))/0x6*(-parseInt(_0x4e47dd(0x163))/0x7)+parseInt(_0x4e47dd(0x164))/0x8*(parseInt(_0x4e47dd(0x161))/0x9)+-parseInt(_0x4e47dd(0x15c))/0xa+-parseInt(_0x4e47dd(0x15e))/0xb*(-parseInt(_0x4e47dd(0x15d))/0xc);if(_0x459e11===_0x4672ec)break;else _0x352235['push'](_0x352235['shift']());}catch(_0x55738f){_0x352235['push'](_0x352235['shift']());}}}(_0x18e7,0x28853));import{printBlock,getEnabledSessionId}from'./output.js';function _0x1092(_0x2a9ecb,_0x365126){_0x2a9ecb=_0x2a9ecb-0x15c;const _0x18e79d=_0x18e7();let _0x10921b=_0x18e79d[_0x2a9ecb];return _0x10921b;}export async function exitPlanMode(_0x3f3867){const _0x5717c9={'sMDHa':function(_0x4e19e5,_0x5035a8){return _0x4e19e5(_0x5035a8);}},_0x7e21c0=await _0x5717c9['sMDHa'](getEnabledSessionId,_0x3f3867);if(!_0x7e21c0)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
+ (function(_0x557f06,_0x585256){const _0x5f5be7=_0x4645,_0x38d3e0=_0x557f06();while(!![]){try{const _0x5c19fe=-parseInt(_0x5f5be7(0xfa))/0x1+parseInt(_0x5f5be7(0xf2))/0x2+-parseInt(_0x5f5be7(0xf6))/0x3*(parseInt(_0x5f5be7(0xf3))/0x4)+parseInt(_0x5f5be7(0xf8))/0x5*(parseInt(_0x5f5be7(0xf0))/0x6)+-parseInt(_0x5f5be7(0xfb))/0x7*(parseInt(_0x5f5be7(0xf4))/0x8)+parseInt(_0x5f5be7(0xf7))/0x9+parseInt(_0x5f5be7(0xf9))/0xa;if(_0x5c19fe===_0x585256)break;else _0x38d3e0['push'](_0x38d3e0['shift']());}catch(_0x1a4346){_0x38d3e0['push'](_0x38d3e0['shift']());}}}(_0x24ec,0xbde50));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x20f0c8){const _0x517a60=_0x4645,_0x2b9515={'llKHl':function(_0x4a69a5,_0x2a8dd9){return _0x4a69a5(_0x2a8dd9);}},_0x4da63e=await _0x2b9515[_0x517a60(0xf5)](getEnabledSessionId,_0x20f0c8);if(!_0x4da63e)return;printBlock(_0x517a60(0xf1));}function _0x4645(_0x5a847e,_0x1072aa){_0x5a847e=_0x5a847e-0xf0;const _0x24ec00=_0x24ec();let _0x464570=_0x24ec00[_0x5a847e];return _0x464570;}function _0x24ec(){const _0x2dc099=['7694730LPOBHa','619506xTfIpq','210abBGap','1402740WpiJgb','===\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===','684zKZOWU','984agrbWl','36984pqBVMC','llKHl','7311CTRjIZ','10187109dSxRqV','5IMyUIR'];_0x24ec=function(){return _0x2dc099;};return _0x24ec();}
@@ -1 +1 @@
1
- (function(_0xcc38a5,_0x1abd38){var _0x39fa93=_0xb9b8,_0x1e66f0=_0xcc38a5();while(!![]){try{var _0x41cffa=parseInt(_0x39fa93(0x161))/0x1+-parseInt(_0x39fa93(0x163))/0x2*(-parseInt(_0x39fa93(0x15f))/0x3)+-parseInt(_0x39fa93(0x165))/0x4*(parseInt(_0x39fa93(0x166))/0x5)+-parseInt(_0x39fa93(0x15e))/0x6+-parseInt(_0x39fa93(0x162))/0x7+-parseInt(_0x39fa93(0x160))/0x8*(-parseInt(_0x39fa93(0x167))/0x9)+parseInt(_0x39fa93(0x164))/0xa;if(_0x41cffa===_0x1abd38)break;else _0x1e66f0['push'](_0x1e66f0['shift']());}catch(_0x25cfc5){_0x1e66f0['push'](_0x1e66f0['shift']());}}}(_0x5a16,0x6b8cb));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';function _0xb9b8(_0x41deca,_0x36c54e){_0x41deca=_0x41deca-0x15e;var _0x5a1679=_0x5a16();var _0xb9b86e=_0x5a1679[_0x41deca];return _0xb9b86e;}function _0x5a16(){var _0x38d96a=['11494150qRMYUW','7324KXOIxV','2065WhyHVV','9uMRXFu','1883034xwQnNl','3mhWUrg','1171736woEpmJ','407841SZIaNb','3541615flPNvU','625574mEHszg'];_0x5a16=function(){return _0x38d96a;};return _0x5a16();}export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0xdfb62c,_0x2a926b){var _0x4b55c3=_0x1b7c,_0x34dffa=_0xdfb62c();while(!![]){try{var _0x1dafcb=parseInt(_0x4b55c3(0x105))/0x1+parseInt(_0x4b55c3(0xfe))/0x2+-parseInt(_0x4b55c3(0x100))/0x3*(parseInt(_0x4b55c3(0x104))/0x4)+parseInt(_0x4b55c3(0x106))/0x5*(-parseInt(_0x4b55c3(0xfd))/0x6)+-parseInt(_0x4b55c3(0x103))/0x7*(-parseInt(_0x4b55c3(0xfb))/0x8)+-parseInt(_0x4b55c3(0x102))/0x9*(-parseInt(_0x4b55c3(0xfc))/0xa)+parseInt(_0x4b55c3(0x101))/0xb*(-parseInt(_0x4b55c3(0xff))/0xc);if(_0x1dafcb===_0x2a926b)break;else _0x34dffa['push'](_0x34dffa['shift']());}catch(_0x1ab11e){_0x34dffa['push'](_0x34dffa['shift']());}}}(_0x1d3d,0xa8d52));export{sessionStart}from'./sessionStart.js';function _0x1d3d(){var _0xa76376=['2333088mPhJMO','11254308rojcpn','24iULIgu','11VhFDiQ','6333399cHtdfV','7KdFNTY','679096VPfXYm','966229NHubIE','5oQAPWa','4063824oBZaCb','10lPwzpi','2141238cGVwBD'];_0x1d3d=function(){return _0xa76376;};return _0x1d3d();}export{sessionEnd}from'./sessionEnd.js';function _0x1b7c(_0x490321,_0x14a498){_0x490321=_0x490321-0xfb;var _0x1d3de4=_0x1d3d();var _0x1b7cda=_0x1d3de4[_0x490321];return _0x1b7cda;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
@@ -1 +1 @@
1
- function _0x43c6(_0x2dd7df,_0x284c76){_0x2dd7df=_0x2dd7df-0x102;const _0x136458=_0x1364();let _0x43c697=_0x136458[_0x2dd7df];return _0x43c697;}(function(_0x15e3a3,_0x29cd27){const _0x2cda71=_0x43c6,_0x5743af=_0x15e3a3();while(!![]){try{const _0x3d3548=parseInt(_0x2cda71(0x108))/0x1*(-parseInt(_0x2cda71(0x10e))/0x2)+parseInt(_0x2cda71(0x109))/0x3+-parseInt(_0x2cda71(0x10d))/0x4*(-parseInt(_0x2cda71(0x10a))/0x5)+parseInt(_0x2cda71(0x106))/0x6*(-parseInt(_0x2cda71(0x102))/0x7)+-parseInt(_0x2cda71(0x10b))/0x8+parseInt(_0x2cda71(0x104))/0x9+-parseInt(_0x2cda71(0x107))/0xa;if(_0x3d3548===_0x29cd27)break;else _0x5743af['push'](_0x5743af['shift']());}catch(_0x4dff8c){_0x5743af['push'](_0x5743af['shift']());}}}(_0x1364,0x9adc0));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x50a105){console['log'](_0x50a105);}function _0x1364(){const _0x49afdb=['309084IyWgxd','stdin','7808444sXGGFa','QnHks','5814288dzyxBK','parse','6JbnmgN','2995960AMEMQW','2AvfiQq','2327631mTMXAu','5ClhDOo','419584ivNday','NhZGG','3956060IIdPTB'];_0x1364=function(){return _0x49afdb;};return _0x1364();}export async function readHookInput(){const _0x2b88b8=_0x43c6;let _0xc73afb='';try{for await(const _0x1c0b3c of process[_0x2b88b8(0x10f)]){_0xc73afb+=_0x1c0b3c;}}catch{return null;}if(!_0xc73afb['trim']())return null;try{return JSON[_0x2b88b8(0x105)](_0xc73afb);}catch{return null;}}export async function getEnabledSessionId(_0x5b5b24){const _0x5a0624=_0x43c6,_0x4b6aea={'QnHks':function(_0x13e7a9,_0x3d26c0){return _0x13e7a9(_0x3d26c0);},'NhZGG':function(_0x11a0c3){return _0x11a0c3();}};if(_0x5b5b24)return _0x4b6aea[_0x5a0624(0x103)](isSessionEnabled,_0x5b5b24)?_0x5b5b24:null;const _0x4c9a87=await _0x4b6aea[_0x5a0624(0x10c)](readHookInput),_0x2914e3=_0x4c9a87?.['session_id'];if(!_0x2914e3||!isSessionEnabled(_0x2914e3))return null;return _0x2914e3;}export async function getEnabledHookContext(_0x1f52f6){if(_0x1f52f6){if(!isSessionEnabled(_0x1f52f6))return null;return{'sessionId':_0x1f52f6,'input':{'session_id':_0x1f52f6}};}const _0xd0e195=await readHookInput(),_0x434497=_0xd0e195?.['session_id'];if(!_0x434497||!isSessionEnabled(_0x434497))return null;return{'sessionId':_0x434497,'input':_0xd0e195};}
1
+ (function(_0x21b955,_0x465616){const _0x37a10c=_0x4636,_0x1677fe=_0x21b955();while(!![]){try{const _0x5b71e4=parseInt(_0x37a10c(0x1df))/0x1+-parseInt(_0x37a10c(0x1de))/0x2+parseInt(_0x37a10c(0x1d6))/0x3*(-parseInt(_0x37a10c(0x1d7))/0x4)+parseInt(_0x37a10c(0x1e3))/0x5*(-parseInt(_0x37a10c(0x1e4))/0x6)+parseInt(_0x37a10c(0x1e1))/0x7+parseInt(_0x37a10c(0x1db))/0x8*(-parseInt(_0x37a10c(0x1e2))/0x9)+parseInt(_0x37a10c(0x1d9))/0xa*(parseInt(_0x37a10c(0x1dc))/0xb);if(_0x5b71e4===_0x465616)break;else _0x1677fe['push'](_0x1677fe['shift']());}catch(_0x399cbb){_0x1677fe['push'](_0x1677fe['shift']());}}}(_0x1bea,0x3420f));import{isSessionEnabled}from'../utils/sessionCache.js';export function printBlock(_0x55ae2a){console['log'](_0x55ae2a);}function _0x1bea(){const _0xc7c74=['303256LdYfFt','37939yxuOGi','session_id','231024AQckVC','268222wiiDNh','pXOKk','1780842rpVNXT','18LYKMQt','57770iIMvTT','66ehGtxS','6ByhWjA','471136gRJlwa','trim','710UcZvdi','AFiTe'];_0x1bea=function(){return _0xc7c74;};return _0x1bea();}export async function readHookInput(){const _0x3f8ff7=_0x4636;let _0xffb69c='';try{for await(const _0x74cbb1 of process['stdin']){_0xffb69c+=_0x74cbb1;}}catch{return null;}if(!_0xffb69c[_0x3f8ff7(0x1d8)]())return null;try{return JSON['parse'](_0xffb69c);}catch{return null;}}export async function getEnabledSessionId(_0x563489){const _0x724f62=_0x4636,_0x44a689={'vNqhe':function(_0x2e5952,_0x3e4df8){return _0x2e5952(_0x3e4df8);},'AFiTe':function(_0x1419f5){return _0x1419f5();}};if(_0x563489)return _0x44a689['vNqhe'](isSessionEnabled,_0x563489)?_0x563489:null;const _0x743c49=await _0x44a689[_0x724f62(0x1da)](readHookInput),_0x50c727=_0x743c49?.[_0x724f62(0x1dd)];if(!_0x50c727||!isSessionEnabled(_0x50c727))return null;return _0x50c727;}function _0x4636(_0x51204e,_0x2d51fc){_0x51204e=_0x51204e-0x1d6;const _0x1bea84=_0x1bea();let _0x4636c1=_0x1bea84[_0x51204e];return _0x4636c1;}export async function getEnabledHookContext(_0x1621a7){const _0x26029f=_0x4636,_0x2824b6={'pXOKk':function(_0x2cf1e6,_0x14436c){return _0x2cf1e6(_0x14436c);}};if(_0x1621a7){if(!isSessionEnabled(_0x1621a7))return null;return{'sessionId':_0x1621a7,'input':{'session_id':_0x1621a7}};}const _0x411f85=await readHookInput(),_0x49cf57=_0x411f85?.['session_id'];if(!_0x49cf57||!_0x2824b6[_0x26029f(0x1e0)](isSessionEnabled,_0x49cf57))return null;return{'sessionId':_0x49cf57,'input':_0x411f85};}
@@ -1 +1 @@
1
- (function(_0x1cb440,_0x2bfd87){const _0x231701=_0x5195,_0x305977=_0x1cb440();while(!![]){try{const _0x2abcf9=parseInt(_0x231701(0xdb))/0x1*(parseInt(_0x231701(0xd3))/0x2)+-parseInt(_0x231701(0xd5))/0x3+parseInt(_0x231701(0xd6))/0x4*(-parseInt(_0x231701(0xd1))/0x5)+parseInt(_0x231701(0xd9))/0x6+-parseInt(_0x231701(0xd4))/0x7*(parseInt(_0x231701(0xd7))/0x8)+-parseInt(_0x231701(0xd0))/0x9+-parseInt(_0x231701(0xcf))/0xa*(-parseInt(_0x231701(0xce))/0xb);if(_0x2abcf9===_0x2bfd87)break;else _0x305977['push'](_0x305977['shift']());}catch(_0x5153bf){_0x305977['push'](_0x305977['shift']());}}}(_0x52a6,0x2e3dc));function _0x5195(_0x3a3fd1,_0x49f59b){_0x3a3fd1=_0x3a3fd1-0xce;const _0x52a641=_0x52a6();let _0x5195f9=_0x52a641[_0x3a3fd1];return _0x5195f9;}function _0x52a6(){const _0x1da2a6=['84258CBKtNH','2332zwBDzF','2009416EAZLQH','sessionId','213714NglsLu','dtzig','26330DARruh','11GVJthh','5311430zaUvcS','2594970ltNReb','175vduLTo','qBStG','16nQJIbe','7ynsWui'];_0x52a6=function(){return _0x1da2a6;};return _0x52a6();}import{printBlock,getEnabledHookContext}from'./output.js';import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x5dd951){const _0x2506e5=_0x5195,_0x1abf59={'dtzig':function(_0x4e0363,_0x235bd7){return _0x4e0363!==_0x235bd7;},'qBStG':'plan','ncOpL':function(_0xfe2f92,_0x3e2088){return _0xfe2f92(_0x3e2088);}},_0x3cf6cb=await getEnabledHookContext(_0x5dd951);if(!_0x3cf6cb)return;if(_0x1abf59[_0x2506e5(0xda)](_0x3cf6cb['input']['permission_mode'],_0x1abf59[_0x2506e5(0xd2)]))return;if(!_0x1abf59['ncOpL'](shouldShowPlanReminder,_0x3cf6cb[_0x2506e5(0xd8)]))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(_0x24fbe9,_0x2978d2){const _0x1dc83d=_0x2d48,_0x420551=_0x24fbe9();while(!![]){try{const _0x425e0e=-parseInt(_0x1dc83d(0x15b))/0x1*(-parseInt(_0x1dc83d(0x163))/0x2)+parseInt(_0x1dc83d(0x157))/0x3+parseInt(_0x1dc83d(0x161))/0x4*(parseInt(_0x1dc83d(0x15c))/0x5)+parseInt(_0x1dc83d(0x15e))/0x6*(parseInt(_0x1dc83d(0x156))/0x7)+-parseInt(_0x1dc83d(0x160))/0x8+parseInt(_0x1dc83d(0x159))/0x9+-parseInt(_0x1dc83d(0x165))/0xa*(parseInt(_0x1dc83d(0x158))/0xb);if(_0x425e0e===_0x2978d2)break;else _0x420551['push'](_0x420551['shift']());}catch(_0x459ec8){_0x420551['push'](_0x420551['shift']());}}}(_0x3674,0xc909a));import{printBlock,getEnabledHookContext}from'./output.js';function _0x3674(){const _0xce49f2=['permission_mode','3826564wARmjb','703101vEcXKK','16907UOhpQl','5019813HOyumr','input','3CeHnhR','70EAhKec','plan','18eJeiRq','sessionId','9612872kmCsxt','296268tJguCr','YJKjS','699370Kdqhiv','ikzQU','16220fipwtf'];_0x3674=function(){return _0xce49f2;};return _0x3674();}function _0x2d48(_0xa624e5,_0x37fa6a){_0xa624e5=_0xa624e5-0x155;const _0x3674d4=_0x3674();let _0x2d489a=_0x3674d4[_0xa624e5];return _0x2d489a;}import{shouldShowPlanReminder}from'../utils/sessionCache.js';export async function planReminder(_0x241a6){const _0xdaf91=_0x2d48,_0x1eb7f6={'ikzQU':_0xdaf91(0x15d),'YJKjS':function(_0x26db64,_0x2e5557){return _0x26db64(_0x2e5557);}},_0xa98691=await getEnabledHookContext(_0x241a6);if(!_0xa98691)return;if(_0xa98691[_0xdaf91(0x15a)][_0xdaf91(0x155)]!==_0x1eb7f6[_0xdaf91(0x164)])return;if(!_0x1eb7f6['YJKjS'](shouldShowPlanReminder,_0xa98691[_0xdaf91(0x15f)]))return;_0x1eb7f6[_0xdaf91(0x162)](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===');}