@ranger-testing/ranger-cli 2.5.4-alpha.071b7bd-1 → 2.5.4-alpha.1f7a251-7

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 (80) 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/migrateProfile.js +1 -0
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -0
  42. package/build/commands/utils/cloudProfileSession.js +1 -0
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -0
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -0
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -0
  63. package/build/commands/utils/resolveProfileUrl.js +1 -0
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +18 -4
  78. package/build/skills/ranger/create.md +6 -0
  79. package/build/skills/ranger/verify.md +23 -3
  80. package/package.json +6 -2
@@ -1 +1 @@
1
- (function(_0x322e35,_0x599afc){const _0x12eac5=_0x5afb,_0x31df4e=_0x322e35();while(!![]){try{const _0x52a74a=-parseInt(_0x12eac5(0x1a7))/0x1*(-parseInt(_0x12eac5(0x1a4))/0x2)+-parseInt(_0x12eac5(0x1a1))/0x3*(-parseInt(_0x12eac5(0x19a))/0x4)+parseInt(_0x12eac5(0x193))/0x5*(-parseInt(_0x12eac5(0x199))/0x6)+-parseInt(_0x12eac5(0x19c))/0x7*(parseInt(_0x12eac5(0x194))/0x8)+parseInt(_0x12eac5(0x1a8))/0x9+-parseInt(_0x12eac5(0x198))/0xa*(-parseInt(_0x12eac5(0x197))/0xb)+-parseInt(_0x12eac5(0x195))/0xc*(parseInt(_0x12eac5(0x1a2))/0xd);if(_0x52a74a===_0x599afc)break;else _0x31df4e['push'](_0x31df4e['shift']());}catch(_0xf00018){_0x31df4e['push'](_0x31df4e['shift']());}}}(_0x5e38,0x43ec3));import{readFile,writeFile}from'fs/promises';function _0x5afb(_0x5bbc3c,_0x4a15a7){_0x5bbc3c=_0x5bbc3c-0x191;const _0x5e384a=_0x5e38();let _0x5afb6e=_0x5e384a[_0x5bbc3c];return _0x5afb6e;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x5e38(){const _0x58cbe7=['sCuEM','5xsvkwg','2238030zfvYOI','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','13790XzlNhq','8LKDIBz','2603676BMxUDt','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','5489gbfnvM','2170zTKNQT','222UhUzrz','164puSieZ','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','986629ZmFIRE','Profile\x20\x22','utf-8','log','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','6657zwrXxa','13jCCqNJ','Vczcy','116098zCBMCt','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'];_0x5e38=function(){return _0x58cbe7;};return _0x5e38();}export async function authEncrypt(_0x1bb03f){const _0x5ac09c=_0x5afb,_0x3854e1={'PcQyd':'auth.json','nwUnF':function(_0x6a60a8,_0x421935){return _0x6a60a8+_0x421935;},'Vczcy':function(_0x42c832){return _0x42c832();},'KBiCR':_0x5ac09c(0x196),'sCuEM':_0x5ac09c(0x1a5),'UXVSw':function(_0x44fc02,_0x494e8){return _0x44fc02(_0x494e8);}},_0x1684d2=getEnvDir(_0x1bb03f),_0x1846ad=join(_0x1684d2,_0x3854e1['PcQyd']),_0x12a232=_0x3854e1['nwUnF'](_0x1846ad,'.enc');if(!existsSync(_0x1684d2))throw new Error(_0x5ac09c(0x19d)+_0x1bb03f+_0x5ac09c(0x191)+_0x1bb03f);if(!existsSync(_0x1846ad))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x1846ad+_0x5ac09c(0x192));const _0x112bcb=await _0x3854e1[_0x5ac09c(0x1a3)](getToken);if(!_0x112bcb)throw new Error(_0x3854e1['KBiCR']);const _0x1bf800=await readFile(_0x1846ad,_0x5ac09c(0x19e)),_0x57be97=encrypt(_0x1bf800,_0x112bcb);await writeFile(_0x12a232,_0x57be97),console['log'](_0x5ac09c(0x19b)+_0x12a232),console['log']('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x5ac09c(0x19f)](_0x3854e1[_0x5ac09c(0x1a6)]),_0x3854e1['UXVSw'](existsSync,_0x12a232)&&(console[_0x5ac09c(0x19f)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log'](_0x5ac09c(0x1a0)));}
1
+ (function(_0x352136,_0x124232){const _0x4555cd=_0x3f2a,_0x2173e4=_0x352136();while(!![]){try{const _0x1538c8=-parseInt(_0x4555cd(0xcd))/0x1+-parseInt(_0x4555cd(0xd7))/0x2+-parseInt(_0x4555cd(0xd3))/0x3*(-parseInt(_0x4555cd(0xc7))/0x4)+parseInt(_0x4555cd(0xcc))/0x5+parseInt(_0x4555cd(0xc8))/0x6+parseInt(_0x4555cd(0xc9))/0x7+-parseInt(_0x4555cd(0xd2))/0x8;if(_0x1538c8===_0x124232)break;else _0x2173e4['push'](_0x2173e4['shift']());}catch(_0x5003c2){_0x2173e4['push'](_0x2173e4['shift']());}}}(_0x5d4d,0x61d9d));import{readFile,writeFile}from'fs/promises';function _0x3f2a(_0x3b47fe,_0x367e7c){_0x3b47fe=_0x3b47fe-0xc4;const _0x5d4d74=_0x5d4d();let _0x3f2a7e=_0x5d4d74[_0x3b47fe];return _0x3f2a7e;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x2f59aa){const _0x4f59f3=_0x3f2a,_0x57fa7e={'xiQiK':function(_0x4ae12e,_0x26a03c,_0x14957b){return _0x4ae12e(_0x26a03c,_0x14957b);},'xtFPX':function(_0x356801,_0x1a717b){return _0x356801(_0x1a717b);},'vTXgr':function(_0x4a5b31){return _0x4a5b31();},'haQpS':_0x4f59f3(0xd4),'znfgm':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','SywLR':_0x4f59f3(0xd5),'hvvBI':function(_0x4e3044,_0x133f6d){return _0x4e3044(_0x133f6d);}},_0x375e5e=getEnvDir(_0x2f59aa),_0x4aff23=_0x57fa7e[_0x4f59f3(0xcf)](join,_0x375e5e,'auth.json'),_0x2cd57f=_0x4aff23+'.enc';if(!_0x57fa7e[_0x4f59f3(0xce)](existsSync,_0x375e5e))throw new Error('Profile\x20\x22'+_0x2f59aa+_0x4f59f3(0xcb)+_0x2f59aa);if(!_0x57fa7e[_0x4f59f3(0xce)](existsSync,_0x4aff23))throw new Error(_0x4f59f3(0xd0)+_0x4aff23+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x1f4b0c=await _0x57fa7e[_0x4f59f3(0xd6)](getToken);if(!_0x1f4b0c)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0xe3ffeb=await readFile(_0x4aff23,_0x57fa7e['haQpS']),_0x24507b=_0x57fa7e['xiQiK'](encrypt,_0xe3ffeb,_0x1f4b0c);await writeFile(_0x2cd57f,_0x24507b),console['log'](_0x4f59f3(0xc5)+_0x2cd57f),console[_0x4f59f3(0xc4)](_0x57fa7e[_0x4f59f3(0xc6)]),console[_0x4f59f3(0xc4)](_0x57fa7e['SywLR']),_0x57fa7e[_0x4f59f3(0xca)](existsSync,_0x2cd57f)&&(console[_0x4f59f3(0xc4)](_0x4f59f3(0xd1)),console[_0x4f59f3(0xc4)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}function _0x5d4d(){const _0x2447c1=['4509402RLQogp','5008360iGNoIl','hvvBI','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','2782425mozfOT','614837vBvtuq','xtFPX','xiQiK','No\x20auth.json\x20found\x20at\x20','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','6521384Fszors','1447263rwAtxn','utf-8','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','vTXgr','1350292mWMoWQ','log','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','znfgm','4CyTAfw'];_0x5d4d=function(){return _0x2447c1;};return _0x5d4d();}
@@ -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 _0x43775c=_0x4a05;(function(_0xa38371,_0x4adcc1){const _0x1777e1=_0x4a05,_0x273ef5=_0xa38371();while(!![]){try{const _0x5ca3a2=-parseInt(_0x1777e1(0x1c5))/0x1*(parseInt(_0x1777e1(0x1db))/0x2)+-parseInt(_0x1777e1(0x1e4))/0x3+parseInt(_0x1777e1(0x1d1))/0x4+-parseInt(_0x1777e1(0x1ba))/0x5*(parseInt(_0x1777e1(0x1b8))/0x6)+-parseInt(_0x1777e1(0x1dc))/0x7*(parseInt(_0x1777e1(0x1bf))/0x8)+parseInt(_0x1777e1(0x1c0))/0x9*(parseInt(_0x1777e1(0x1b9))/0xa)+-parseInt(_0x1777e1(0x1e7))/0xb*(-parseInt(_0x1777e1(0x1bd))/0xc);if(_0x5ca3a2===_0x4adcc1)break;else _0x273ef5['push'](_0x273ef5['shift']());}catch(_0x29da87){_0x273ef5['push'](_0x273ef5['shift']());}}}(_0x1949,0xe9e17));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x1949(){const _0x4e1f25=['29196uNTOnl','bug-bash','close','SVFYY','Qooze','845057jbvoWi','plugin','error','QalXm','abXRG','OeblK','raUtA','Pwgih','win32','trailhead','parse','rAuuQ','7478236fjqXWR','EkoPo','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','dsgkI','pipe','--scope','qyvmm','✓\x20Removed\x20trailhead\x20marketplace','user','2kffvYA','742fbIPSs','platform','Mtkbg','feature-tracker','utf-8','GrERa','length','sHYIa','174603GWqNTh','claude','log','26803579MMXuZB','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','SbKJR','RGRpq','opencode.json','ranger@trailhead','zphtG','marketplace','Nothing\x20to\x20clean\x20up.\x0a','QXRfn','3449046yUgfQn','130QJtyWv','5AduWHS','uninstall','push','12jcurMS','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','144328BSDPIF'];_0x1949=function(){return _0x4e1f25;};return _0x1949();}function _0x4a05(_0x32e513,_0x269d5a){_0x32e513=_0x32e513-0x1b3;const _0x19497c=_0x1949();let _0x4a05f1=_0x19497c[_0x32e513];return _0x4a05f1;}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',_0x43775c(0x1df),_0x43775c(0x1c1),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x338aab){const _0x547fb7=_0x43775c,_0x105fd0=_0x338aab['replace'](/\/\*[\s\S]*?\*\//g,''),_0xc9877e=_0x105fd0['replace'](/^\s*\/\/.*$/gm,''),_0x7cca5=_0xc9877e['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x547fb7(0x1cf)](_0x7cca5);}async function removeOpencodePluginConfig(_0xfc4c2){const _0x5cd75a=_0x43775c,_0xe0e476={'CtQER':function(_0xb3753,_0x1e1100){return _0xb3753(_0x1e1100);},'Qooze':function(_0x570c78,_0x420221){return _0x570c78===_0x420221;},'abXRG':function(_0x34db50,_0x5b4fed,_0x34ea30){return _0x34db50(_0x5b4fed,_0x34ea30);}};if(!existsSync(_0xfc4c2))return![];let _0x3250af;try{const _0x2896b6=await readFile(_0xfc4c2,_0x5cd75a(0x1e0));_0x3250af=_0xe0e476['CtQER'](parseJsonc,_0x2896b6);}catch{return![];}const _0x7aed05=Array['isArray'](_0x3250af['plugin'])?_0x3250af[_0x5cd75a(0x1c6)]:[];if(_0x7aed05[_0x5cd75a(0x1e2)]===0x0)return![];const _0x2ea75a=_0x7aed05['filter'](_0x407cb=>{if(typeof _0x407cb!=='string')return!![];return _0x407cb!==opencodePluginName;});if(_0xe0e476['Qooze'](_0x2ea75a[_0x5cd75a(0x1e2)],_0x7aed05[_0x5cd75a(0x1e2)]))return![];return _0xe0e476[_0x5cd75a(0x1c4)](_0x2ea75a['length'],0x0)?delete _0x3250af['plugin']:_0x3250af[_0x5cd75a(0x1c6)]=_0x2ea75a,await _0xe0e476[_0x5cd75a(0x1c9)](writeFile,_0xfc4c2,JSON['stringify'](_0x3250af,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x217c6e){const _0x20fb7e=_0x43775c,_0x22e8b6={'SVFYY':function(_0x2c823c,_0x5d59f8){return _0x2c823c===_0x5d59f8;},'pkxog':_0x20fb7e(0x1bb),'SbKJR':_0x20fb7e(0x1b3),'dsgkI':function(_0x1e0a43,_0x1d294b,_0x2f4e3d,_0x36d870){return _0x1e0a43(_0x1d294b,_0x2f4e3d,_0x36d870);},'sHYIa':_0x20fb7e(0x1d6),'QalXm':'win32'};return new Promise(_0x4d39c1=>{const _0x49cd71=_0x20fb7e,_0x32630e=['plugin',_0x22e8b6['pkxog'],_0x22e8b6[_0x49cd71(0x1e9)]];_0x217c6e&&_0x32630e[_0x49cd71(0x1bc)](_0x49cd71(0x1d7),_0x217c6e);const _0xb316ca=_0x22e8b6[_0x49cd71(0x1d5)](spawn,_0x49cd71(0x1e5),_0x32630e,{'stdio':_0x22e8b6[_0x49cd71(0x1e3)],'shell':process[_0x49cd71(0x1dd)]===_0x22e8b6[_0x49cd71(0x1c8)]});_0xb316ca['on'](_0x49cd71(0x1c2),_0x114072=>{const _0xe6a049=_0x49cd71;_0x4d39c1(_0x22e8b6[_0xe6a049(0x1c3)](_0x114072,0x0));}),_0xb316ca['on']('error',()=>{_0x4d39c1(![]);});});}async function removeMarketplace(){const _0x13359f=_0x43775c,_0x4eec3c={'VyhhL':function(_0x1ff4c2,_0x1b165f){return _0x1ff4c2===_0x1b165f;},'GrERa':function(_0x547283,_0xf74584){return _0x547283(_0xf74584);},'CFYPD':'claude','gLMUg':'plugin','iqbBR':_0x13359f(0x1b5),'RGRpq':'remove','BKDuy':_0x13359f(0x1ce),'zphtG':_0x13359f(0x1cd)};return new Promise(_0x542b5e=>{const _0x2a9c72=_0x13359f,_0x54e32f={'QcuJH':function(_0x141537,_0x6cc1c){const _0x401182=_0x4a05;return _0x4eec3c[_0x401182(0x1e1)](_0x141537,_0x6cc1c);}},_0xf764a2=spawn(_0x4eec3c['CFYPD'],[_0x4eec3c['gLMUg'],_0x4eec3c['iqbBR'],_0x4eec3c[_0x2a9c72(0x1ea)],_0x4eec3c['BKDuy']],{'stdio':_0x2a9c72(0x1d6),'shell':process[_0x2a9c72(0x1dd)]===_0x4eec3c[_0x2a9c72(0x1b4)]});_0xf764a2['on']('close',_0x2f32cf=>{_0x542b5e(_0x4eec3c['VyhhL'](_0x2f32cf,0x0));}),_0xf764a2['on'](_0x2a9c72(0x1c7),()=>{_0x54e32f['QcuJH'](_0x542b5e,![]);});});}export async function clean(){const _0x4f0916=_0x43775c,_0x11af69={'Pwgih':'✓\x20Removed\x20stored\x20credentials','OeblK':function(_0xe81219,_0x1f77d2){return _0xe81219(_0x1f77d2);},'JgDhj':function(_0x3f6152){return _0x3f6152();},'QXRfn':function(_0x443faa,_0x4b94fe,_0x2c4714){return _0x443faa(_0x4b94fe,_0x2c4714);},'Mtkbg':function(_0x2080bd,_0x23e196){return _0x2080bd(_0x23e196);},'raUtA':'project','ufRLt':function(_0x404984,_0x365a4b,_0x2511a0){return _0x404984(_0x365a4b,_0x2511a0);},'elACL':function(_0x36cc57,_0x3fa118,_0x1f232a){return _0x36cc57(_0x3fa118,_0x1f232a);},'KIhHw':function(_0x3125fc,_0x388484,_0x2542f8){return _0x3125fc(_0x388484,_0x2542f8);},'EkoPo':_0x4f0916(0x1d4),'qyvmm':function(_0x26d2be,_0x49bbdf,_0x59db2e){return _0x26d2be(_0x49bbdf,_0x59db2e);},'wDpLD':'opencode.json','rAuuQ':_0x4f0916(0x1be),'qJzLW':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','YMick':_0x4f0916(0x1b6)};console[_0x4f0916(0x1e6)]('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2786d6=![];try{await deleteAllCredentials(),console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1cc)]),_0x2786d6=!![];}catch{}const _0x4e13ce=getCacheFile();existsSync(_0x4e13ce)&&(await _0x11af69[_0x4f0916(0x1ca)](rm,_0x4e13ce),_0x2786d6=!![]);const _0x181024=getRangerDir();existsSync(_0x181024)&&(await rm(_0x181024,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x2786d6=!![]);const _0xe1e2a8=getProjectSkillsDir();for(const _0x3e757b of skillsToRemove){const _0x1a9247=join(_0xe1e2a8,_0x3e757b);existsSync(_0x1a9247)&&(await rm(_0x1a9247,{'recursive':!![]}),console[_0x4f0916(0x1e6)]('✓\x20Removed\x20project\x20skill:\x20'+_0x3e757b),_0x2786d6=!![]);}const _0xd5ad49=_0x11af69['JgDhj'](getUserSkillsDir);for(const _0xdb381c of skillsToRemove){const _0x13dc4c=_0x11af69[_0x4f0916(0x1b7)](join,_0xd5ad49,_0xdb381c);_0x11af69[_0x4f0916(0x1ca)](existsSync,_0x13dc4c)&&(await rm(_0x13dc4c,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0xdb381c),_0x2786d6=!![]);}const _0x10d7f8=_0x11af69['Mtkbg'](getOpencodeSkillsDir,_0x11af69[_0x4f0916(0x1cb)]);for(const _0x3c9a4d of skillsToRemove){const _0x5b87ea=_0x11af69['ufRLt'](join,_0x10d7f8,_0x3c9a4d);existsSync(_0x5b87ea)&&(await _0x11af69['elACL'](rm,_0x5b87ea,{'recursive':!![]}),console[_0x4f0916(0x1e6)](_0x4f0916(0x1e8)+_0x3c9a4d),_0x2786d6=!![]);}const _0xdf3b7e=_0x11af69[_0x4f0916(0x1de)](getOpencodeSkillsDir,_0x4f0916(0x1da));for(const _0x1e993e of skillsToRemove){const _0x2c47fb=join(_0xdf3b7e,_0x1e993e);existsSync(_0x2c47fb)&&(await rm(_0x2c47fb,{'recursive':!![]}),console[_0x4f0916(0x1e6)](_0x4f0916(0x1d3)+_0x1e993e),_0x2786d6=!![]);}const _0x2db0c0=_0x11af69['KIhHw'](join,_0x11af69['OeblK'](getOpencodeConfigDir,_0x11af69['raUtA']),_0x4f0916(0x1eb));await removeOpencodePluginConfig(_0x2db0c0)&&(console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1d2)]),_0x2786d6=!![]);const _0x534dce=_0x11af69[_0x4f0916(0x1d8)](join,getOpencodeConfigDir('user'),_0x11af69['wDpLD']);await removeOpencodePluginConfig(_0x534dce)&&(console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1d0)]),_0x2786d6=!![]);const _0x56711c=await uninstallClaudePlugin();_0x56711c&&(console['log'](_0x11af69['qJzLW']),_0x2786d6=!![]);const _0x4012d2=await uninstallClaudePlugin(_0x11af69[_0x4f0916(0x1cb)]);_0x4012d2&&(console[_0x4f0916(0x1e6)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x2786d6=!![]);const _0x3ab74e=await _0x11af69['JgDhj'](removeMarketplace);_0x3ab74e&&(console['log'](_0x4f0916(0x1d9)),_0x2786d6=!![]),_0x2786d6?console[_0x4f0916(0x1e6)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log'](_0x11af69['YMick']);}
@@ -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
+ const _0x168740=_0x510c;(function(_0x17978a,_0x10a61c){const _0x2eab11=_0x510c,_0x24e3b3=_0x17978a();while(!![]){try{const _0x50db33=parseInt(_0x2eab11(0xa5))/0x1*(parseInt(_0x2eab11(0xaa))/0x2)+-parseInt(_0x2eab11(0x9b))/0x3+-parseInt(_0x2eab11(0xb6))/0x4+parseInt(_0x2eab11(0x9c))/0x5+-parseInt(_0x2eab11(0xb2))/0x6*(-parseInt(_0x2eab11(0xa8))/0x7)+parseInt(_0x2eab11(0xad))/0x8*(parseInt(_0x2eab11(0xa2))/0x9)+parseInt(_0x2eab11(0x99))/0xa*(-parseInt(_0x2eab11(0xa7))/0xb);if(_0x50db33===_0x10a61c)break;else _0x24e3b3['push'](_0x24e3b3['shift']());}catch(_0x498d8e){_0x24e3b3['push'](_0x24e3b3['shift']());}}}(_0x2217,0x50591));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=[_0x168740(0xb9),'allowInsecureLocalhost'];function _0x2217(){const _0x208192=['Cleared\x20local\x20overrides\x20for\x20\x22','KrKpU','isSafeInteger','10BZwqlT','\x20\x20Note:\x20\x22','61998mkNDpr','2861125CEhqgX','No\x20configuration\x20set\x20for\x20\x22','parse','endsWith','kind','startsWith','4184514eTiNeD','true','ZjCbt','6229xMMNNo','includes','15178581jBBxRG','20552ptxziT','LmvoR','118jqPbJH','\x20for\x20\x22','stringify','8lDRVHZ','local','Key\x20\x22','test','alsoExistsElsewhere','1164hpAuUt','length','UwFTh','false','978496zvaiIV','axvyp','\x20=\x20','headless','object','eVRaz','cloud','dOfnJ','log','Removed\x20','VXmwB','nhXxV','wTcnr','trim','qjgSo'];_0x2217=function(){return _0x208192;};return _0x2217();}function parseLocalValue(_0xdd19eb,_0x5a125d){const _0xcff5f6=_0x168740,_0x518831={'oaUdx':function(_0x3d397a,_0x46d89b){return _0x3d397a===_0x46d89b;},'dOfnJ':_0xcff5f6(0xa3),'WedLC':_0xcff5f6(0xb5)};if(BOOLEAN_KEYS[_0xcff5f6(0xa6)](_0xdd19eb)){if(_0x518831['oaUdx'](_0x5a125d,_0x518831[_0xcff5f6(0x8e)]))return!![];if(_0x5a125d===_0x518831['WedLC'])return![];throw new Error('Invalid\x20value\x20for\x20'+_0xdd19eb+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x5a125d;}function parseOverrideValue(_0x43a12c){const _0x2c1153=_0x168740,_0x56c00c={'wTcnr':_0x2c1153(0xa3),'hFpAq':function(_0x2f501e,_0x245ccc){return _0x2f501e===_0x245ccc;},'RHhcE':function(_0xf86a42,_0x2b01e5){return _0xf86a42===_0x2b01e5;},'axvyp':function(_0x40a635,_0x2a62a4){return _0x40a635(_0x2a62a4);}};if(_0x43a12c===_0x56c00c[_0x2c1153(0x93)])return!![];if(_0x56c00c['hFpAq'](_0x43a12c,'false'))return![];if(_0x56c00c['RHhcE'](_0x43a12c,'null'))return null;if(_0x56c00c['RHhcE'](_0x43a12c,'undefined'))return undefined;if(/^-?\d+$/[_0x2c1153(0xb0)](_0x43a12c)){const _0x5031b9=_0x56c00c[_0x2c1153(0xb7)](Number,_0x43a12c);if(Number[_0x2c1153(0x98)](_0x5031b9))return _0x5031b9;}if(/^-?\d+\.\d+$/['test'](_0x43a12c)){const _0x4882fe=Number(_0x43a12c);if(!Number['isNaN'](_0x4882fe))return _0x4882fe;}const _0xa5618d=_0x43a12c[_0x2c1153(0x94)]();if(_0xa5618d[_0x2c1153(0xa1)]('{')&&_0xa5618d[_0x2c1153(0x9f)]('}')||_0xa5618d[_0x2c1153(0xa1)]('[')&&_0xa5618d[_0x2c1153(0x9f)](']'))try{return JSON[_0x2c1153(0x9e)](_0xa5618d);}catch{}return _0x43a12c;}function _0x510c(_0x575810,_0x2e728e){_0x575810=_0x575810-0x8d;const _0x2217f6=_0x2217();let _0x510ce3=_0x2217f6[_0x575810];return _0x510ce3;}async function resolveProfileTarget(_0x2b786a){const _0x5ef43a=_0x168740,_0x107674={'UqQyo':function(_0x283fb1,_0x5bfa0c){return _0x283fb1(_0x5bfa0c);},'HenNc':function(_0x29f4e9,_0xce5b5a){return _0x29f4e9(_0xce5b5a);},'OqcEa':_0x5ef43a(0xae)},_0x24c4f8=existsSync(_0x107674['UqQyo'](getEnvDir,_0x2b786a));let _0x1715a3=![];try{const _0x51b9f5=await fetchCloudProfile(_0x2b786a);_0x1715a3=_0x107674['HenNc'](Boolean,_0x51b9f5);}catch{}if(_0x1715a3)return{'kind':_0x5ef43a(0x8d),'alsoExistsElsewhere':_0x24c4f8};if(_0x24c4f8)return{'kind':_0x107674['OqcEa'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x2b786a+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x2b786a);}function printDualExistsHint(_0xb9f4eb){const _0x2b8deb=_0x168740;console['log'](_0x2b8deb(0x9a)+_0xb9f4eb+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x80ed0){const _0x4d00df={'bAcbW':function(_0x295f24,_0x5a4acd){return _0x295f24??_0x5a4acd;}},_0x402d26=await fetchCloudProfile(_0x80ed0),_0x501d31=readProfileOverrides(getProjectPath(),_0x80ed0);return mergeCloudProfileSettings(_0x402d26?.['settings']??{},_0x4d00df['bAcbW'](_0x501d31,undefined));}export async function configSet(_0x1e16af,_0x47d16c,_0x2de9f4){const _0x4a3d11=_0x168740,_0x26337a={'UwFTh':function(_0x449af1,_0x3118f2){return _0x449af1(_0x3118f2);},'ynZmE':function(_0x5bb25a,_0x2bb0c4){return _0x5bb25a===_0x2bb0c4;},'VXmwB':_0x4a3d11(0x8d),'LmvoR':function(_0x2f67a1,_0x4a6629){return _0x2f67a1(_0x4a6629);},'tciXz':function(_0x28a0e9){return _0x28a0e9();}},_0x3b94b7=await _0x26337a[_0x4a3d11(0xb4)](resolveProfileTarget,_0x1e16af);if(_0x26337a['ynZmE'](_0x3b94b7['kind'],_0x26337a[_0x4a3d11(0x91)])){if(_0x3b94b7[_0x4a3d11(0xb1)])_0x26337a[_0x4a3d11(0xb4)](printDualExistsHint,_0x1e16af);const _0x46610a=_0x26337a[_0x4a3d11(0xa9)](parseOverrideValue,_0x2de9f4);setProfileOverride(_0x26337a['tciXz'](getProjectPath),_0x1e16af,_0x47d16c,_0x46610a),console[_0x4a3d11(0x8f)]('Set\x20'+_0x47d16c+'\x20=\x20'+JSON[_0x4a3d11(0xac)](_0x46610a)+_0x4a3d11(0xab)+_0x1e16af+'\x22');return;}const _0x30d924=await loadSettings(_0x1e16af),_0x3b95a3=parseLocalValue(_0x47d16c,_0x2de9f4);setNestedValue(_0x30d924,_0x47d16c,_0x3b95a3),await saveSettings(_0x1e16af,_0x30d924),console['log']('Set\x20'+_0x47d16c+_0x4a3d11(0xb8)+_0x3b95a3+'\x20for\x20\x22'+_0x1e16af+'\x22');}export async function configGet(_0x15be3e,_0x49fad1){const _0x299018=_0x168740,_0x57aaba={'KrKpU':function(_0x403933,_0x29a003){return _0x403933(_0x29a003);},'nhXxV':function(_0x7a7497,_0x310943){return _0x7a7497===_0x310943;},'eVRaz':function(_0x2312e6,_0x925a9d){return _0x2312e6===_0x925a9d;}},_0x560efc=await resolveProfileTarget(_0x15be3e);if(_0x560efc['kind']===_0x299018(0x8d)){const _0x269681=await _0x57aaba[_0x299018(0x97)](loadEffectiveCloudSettings,_0x15be3e),_0x5df510=getNestedValue(_0x269681,_0x49fad1);if(_0x57aaba['nhXxV'](_0x5df510,undefined))console['log']('(not\x20set)');else _0x57aaba['nhXxV'](typeof _0x5df510,_0x299018(0xba))?console[_0x299018(0x8f)](JSON[_0x299018(0xac)](_0x5df510,null,0x2)):console[_0x299018(0x8f)](_0x5df510);return;}const _0x572030=await loadSettings(_0x15be3e),_0x5d8ee8=getNestedValue(_0x572030,_0x49fad1);if(_0x57aaba[_0x299018(0xbb)](_0x5d8ee8,undefined))console['log']('(not\x20set)');else _0x57aaba[_0x299018(0x92)](typeof _0x5d8ee8,_0x299018(0xba))?console['log'](JSON['stringify'](_0x5d8ee8,null,0x2)):console[_0x299018(0x8f)](_0x5d8ee8);}export async function configList(_0x1b8442){const _0x5bcd76=_0x168740,_0x5b6894={'watHg':'cloud','JTpBD':function(_0x34574a,_0x369ee9){return _0x34574a(_0x369ee9);},'GOBad':function(_0x1125b2,_0x7b7843){return _0x1125b2===_0x7b7843;}},_0x52bcc5=await resolveProfileTarget(_0x1b8442);if(_0x52bcc5[_0x5bcd76(0xa0)]===_0x5b6894['watHg']){const _0x438527=await _0x5b6894['JTpBD'](loadEffectiveCloudSettings,_0x1b8442);if(!_0x438527||_0x5b6894['GOBad'](Object['keys'](_0x438527)[_0x5bcd76(0xb3)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x1b8442+'\x22');return;}console[_0x5bcd76(0x8f)](JSON[_0x5bcd76(0xac)](_0x438527,null,0x2));return;}const _0x386e1b=getSettingsPath(_0x1b8442);if(!_0x5b6894['JTpBD'](existsSync,_0x386e1b)){console['log'](_0x5bcd76(0x9d)+_0x1b8442+'\x22');return;}const _0x4e77f9=await _0x5b6894['JTpBD'](loadSettings,_0x1b8442),_0x4cf706=_0x5b6894['JTpBD'](formatSettings,_0x4e77f9);!_0x4cf706?console[_0x5bcd76(0x8f)](_0x5bcd76(0x9d)+_0x1b8442+'\x22'):console['log'](_0x4cf706);}export async function configUnset(_0x492ac4,_0x2d8885){const _0x593087=_0x168740,_0x5e292b={'CgliY':function(_0x5ba11f,_0x5b1194){return _0x5ba11f(_0x5b1194);},'qjgSo':function(_0x10588a,_0x510fc7){return _0x10588a===_0x510fc7;},'QpzBU':'cloud','HiXEt':function(_0x520121,_0x4ca71f){return _0x520121(_0x4ca71f);},'ZjCbt':function(_0x3c4f33,_0x521183){return _0x3c4f33(_0x521183);}},_0x46628d=await _0x5e292b['CgliY'](resolveProfileTarget,_0x492ac4);if(_0x5e292b[_0x593087(0x95)](_0x46628d[_0x593087(0xa0)],_0x5e292b['QpzBU'])){if(_0x46628d['alsoExistsElsewhere'])_0x5e292b['HiXEt'](printDualExistsHint,_0x492ac4);const _0x16322a=unsetProfileOverride(getProjectPath(),_0x492ac4,_0x2d8885);_0x16322a?console['log'](_0x593087(0x90)+_0x2d8885+_0x593087(0xab)+_0x492ac4+'\x22'):console['log']('Key\x20\x22'+_0x2d8885+'\x22\x20not\x20found');return;}const _0x310b17=await _0x5e292b[_0x593087(0xa4)](loadSettings,_0x492ac4),_0x355c14=deleteNestedValue(_0x310b17,_0x2d8885);_0x355c14?(await saveSettings(_0x492ac4,_0x310b17),console[_0x593087(0x8f)]('Removed\x20'+_0x2d8885)):console[_0x593087(0x8f)](_0x593087(0xaf)+_0x2d8885+'\x22\x20not\x20found');}export async function configReset(_0x5ed315){const _0x484a40=_0x168740,_0x35cd2a={'DXFMV':function(_0x4b8420,_0x1c6987){return _0x4b8420(_0x1c6987);},'vpuuq':function(_0x4cf8ee,_0x361ce8,_0x16bea4){return _0x4cf8ee(_0x361ce8,_0x16bea4);},'MhhpK':function(_0x342c2a){return _0x342c2a();}},_0x5c1833=await _0x35cd2a['DXFMV'](resolveProfileTarget,_0x5ed315);if(_0x5c1833[_0x484a40(0xa0)]==='cloud'){_0x35cd2a['vpuuq'](resetProfileOverrides,_0x35cd2a['MhhpK'](getProjectPath),_0x5ed315),console[_0x484a40(0x8f)](_0x484a40(0x96)+_0x5ed315+'\x22');return;}console[_0x484a40(0x8f)]('\x22'+_0x5ed315+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x5ed315+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -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
+ (function(_0x2a07bd,_0x18f29b){const _0x511361=_0x5cfe,_0x5c3cfc=_0x2a07bd();while(!![]){try{const _0x3bf31c=-parseInt(_0x511361(0x8a))/0x1*(parseInt(_0x511361(0x87))/0x2)+-parseInt(_0x511361(0x92))/0x3*(-parseInt(_0x511361(0x8c))/0x4)+parseInt(_0x511361(0x8f))/0x5+-parseInt(_0x511361(0x72))/0x6*(parseInt(_0x511361(0x83))/0x7)+-parseInt(_0x511361(0x6b))/0x8*(parseInt(_0x511361(0x86))/0x9)+-parseInt(_0x511361(0x6e))/0xa+parseInt(_0x511361(0x66))/0xb*(parseInt(_0x511361(0x7a))/0xc);if(_0x3bf31c===_0x18f29b)break;else _0x5c3cfc['push'](_0x5c3cfc['shift']());}catch(_0x37ea56){_0x5c3cfc['push'](_0x5c3cfc['shift']());}}}(_0x559e,0x9ef23));import{readdir,stat}from'fs/promises';function _0x5cfe(_0x7db9a0,_0x1020ba){_0x7db9a0=_0x7db9a0-0x66;const _0x559e5c=_0x559e();let _0x5cfe67=_0x559e5c[_0x7db9a0];return _0x5cfe67;}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x4e4c04=_0x5cfe,_0x11f6f6={'BvkEz':function(_0x4f0080){return _0x4f0080();},'oVxdy':function(_0x4ac49e,_0x121748){return _0x4ac49e(_0x121748);},'goVYb':function(_0x2143b4){return _0x2143b4();},'UlXAE':function(_0x5e09c0,_0x3e92f1,_0x5cfe2d){return _0x5e09c0(_0x3e92f1,_0x5cfe2d);},'TeLYy':_0x4e4c04(0x7f),'lvhUK':function(_0x4347da,_0x4b4b31){return _0x4347da(_0x4b4b31);},'uWBpN':function(_0x425d6f,_0x259f9c){return _0x425d6f(_0x259f9c);},'TxtvR':_0x4e4c04(0x69)},_0x3b250e=_0x11f6f6[_0x4e4c04(0x8d)](getRangerDir);if(!_0x11f6f6[_0x4e4c04(0x80)](existsSync,_0x3b250e))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5c00a0=await _0x11f6f6[_0x4e4c04(0x6a)](readActiveProfileName),_0x12e81a=[],_0x5696d6={},_0x15050e=join(_0x3b250e,'local');if(existsSync(_0x15050e)){const _0x579670=await _0x11f6f6['oVxdy'](readdir,_0x15050e);for(const _0x70b42e of _0x579670){const _0x5a914a=_0x11f6f6[_0x4e4c04(0x70)](join,_0x15050e,_0x70b42e),_0x2bbdb4=await _0x11f6f6['oVxdy'](stat,_0x5a914a);_0x2bbdb4['isDirectory']()&&(_0x12e81a[_0x4e4c04(0x74)](_0x70b42e),_0x5696d6[_0x70b42e]=_0x11f6f6['TeLYy']);}}const _0x4cc142=join(_0x3b250e,'ci');if(_0x11f6f6[_0x4e4c04(0x80)](existsSync,_0x4cc142)){const _0x43ecf0=await _0x11f6f6[_0x4e4c04(0x80)](readdir,_0x4cc142);for(const _0x42a4c1 of _0x43ecf0){const _0x32746f=_0x11f6f6[_0x4e4c04(0x70)](join,_0x4cc142,_0x42a4c1),_0x37a8ce=await stat(_0x32746f);_0x37a8ce[_0x4e4c04(0x88)]()&&(_0x12e81a['push'](_0x42a4c1),_0x5696d6[_0x42a4c1]='ci');}}const _0x46c1c1=await _0x11f6f6[_0x4e4c04(0x68)](readdir,_0x3b250e);for(const _0x46254d of _0x46c1c1){if(NON_ENV_DIRS['includes'](_0x46254d))continue;if(_0x46254d[_0x4e4c04(0x82)]('.'))continue;if(_0x46254d['endsWith']('.txt'))continue;const _0x3519b7=join(_0x3b250e,_0x46254d),_0xe95812=await stat(_0x3519b7);_0xe95812['isDirectory']()&&_0x11f6f6['uWBpN'](existsSync,join(_0x3519b7,_0x11f6f6['TxtvR']))&&(!_0x12e81a[_0x4e4c04(0x91)](_0x46254d)&&(_0x12e81a['push'](_0x46254d),_0x5696d6[_0x46254d]='legacy'));}return{'envNames':_0x12e81a,'activeEnv':_0x5c00a0,'envTypes':_0x5696d6};}export async function envList(){const _0x2cf19c=_0x5cfe,_0x3edee7={'lPAen':function(_0x599677){return _0x599677();},'POPNA':function(_0x2fb3d2,_0xd22fd){return _0x2fb3d2===_0xd22fd;},'UpgBU':function(_0x4badc6,_0x5ba0ce){return _0x4badc6===_0x5ba0ce;},'dDXsE':'\x0aNo\x20profiles\x20found.','HPpXx':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','mKedV':function(_0xa370ca,_0x8925ff){return _0xa370ca>_0x8925ff;},'jdXpG':function(_0x4075b3,_0x5f3b9c){return _0x4075b3===_0x5f3b9c;},'AHojr':_0x2cf19c(0x7f),'SMmdP':function(_0x1e626e,_0x3e1c7f){return _0x1e626e(_0x3e1c7f);},'ULfYK':_0x2cf19c(0x76),'CdnZV':function(_0x25c163,_0x6902d4){return _0x25c163>_0x6902d4;}},{envNames:_0x18bcff,activeEnv:_0x1abf61,envTypes:_0x19fbaa}=await getEnvNames();let _0x42d5d2=[];try{_0x42d5d2=await _0x3edee7['lPAen'](listCloudProfiles);}catch{}if(_0x3edee7['POPNA'](_0x18bcff[_0x2cf19c(0x81)],0x0)&&_0x3edee7[_0x2cf19c(0x75)](_0x42d5d2[_0x2cf19c(0x81)],0x0)){console['log'](_0x3edee7[_0x2cf19c(0x77)]),console[_0x2cf19c(0x84)](_0x3edee7['HPpXx']);return;}const _0x29c740=new Set(_0x42d5d2[_0x2cf19c(0x7c)](_0x27a033=>_0x27a033[_0x2cf19c(0x93)]));if(_0x3edee7[_0x2cf19c(0x79)](_0x18bcff[_0x2cf19c(0x81)],0x0)){console[_0x2cf19c(0x84)]('\x0aLocal\x20Profiles:');for(const _0x32f960 of _0x18bcff[_0x2cf19c(0x90)]()){const _0x440943=_0x3edee7[_0x2cf19c(0x7d)](_0x32f960,_0x1abf61)&&!_0x29c740[_0x2cf19c(0x7e)](_0x32f960),_0x1a14cb=_0x19fbaa[_0x32f960]||_0x3edee7[_0x2cf19c(0x71)],_0xea0a5d=await _0x3edee7['SMmdP'](loadSettings,_0x32f960),_0x3fb73f=_0x1a14cb===_0x3edee7[_0x2cf19c(0x6d)]?'':'\x20['+_0x1a14cb+']';console['log']('\x20\x20'+(_0x440943?'*\x20':'\x20\x20')+_0x32f960+_0x3fb73f),_0xea0a5d[_0x2cf19c(0x78)]&&console[_0x2cf19c(0x84)](_0x2cf19c(0x85)+_0xea0a5d['baseUrl']),_0xea0a5d[_0x2cf19c(0x6f)]&&console[_0x2cf19c(0x84)](_0x2cf19c(0x6c)+_0xea0a5d['environmentDetails']);}}if(_0x3edee7[_0x2cf19c(0x89)](_0x42d5d2['length'],0x0)){console['log'](_0x2cf19c(0x8e));for(const _0x3241e8 of _0x42d5d2['sort']((_0x397eb0,_0x2818af)=>_0x397eb0['name']['localeCompare'](_0x2818af[_0x2cf19c(0x93)]))){const _0x5c7423=_0x3241e8[_0x2cf19c(0x93)]===_0x1abf61,_0x405468=_0x3241e8['environmentKey']?'\x20('+_0x3241e8[_0x2cf19c(0x73)]+')':'',_0x1db28d=_0x3241e8[_0x2cf19c(0x8b)]?'cached\x20(updated\x20'+_0x3241e8['sessionUpdatedAt']+')':'no\x20session';console['log']('\x20\x20'+(_0x5c7423?'*\x20':'\x20\x20')+_0x3241e8[_0x2cf19c(0x93)]+_0x2cf19c(0x7b)+_0x405468),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x1db28d);}}_0x1abf61&&console[_0x2cf19c(0x84)](_0x2cf19c(0x67));}function _0x559e(){const _0x47e5e2=['oVxdy','length','startsWith','44639phscLT','log','\x20\x20\x20\x20\x20\x20URL:\x20','1323JzKlHu','298138fwmTyT','isDirectory','CdnZV','3uiJhap','sessionUpdatedAt','24cluxag','BvkEz','\x0aCloud\x20Profiles:','488275FkWwJv','sort','includes','391431pSeXnw','name','572737mnlXcO','\x0a*\x20=\x20active\x20profile','lvhUK','settings.json','goVYb','38760WqPllT','\x20\x20\x20\x20\x20\x20Details:\x20','ULfYK','9071820KDEpAE','environmentDetails','UlXAE','AHojr','378LdeHEI','environmentKey','push','UpgBU','legacy','dDXsE','baseUrl','mKedV','516PniQzX','\x20[cloud]','map','jdXpG','has','local'];_0x559e=function(){return _0x47e5e2;};return _0x559e();}
@@ -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
+ (function(_0x12a781,_0x3e2309){const _0x366dbb=_0x4a9d,_0x351540=_0x12a781();while(!![]){try{const _0x30c2b6=parseInt(_0x366dbb(0x1bf))/0x1*(parseInt(_0x366dbb(0x175))/0x2)+parseInt(_0x366dbb(0x201))/0x3+-parseInt(_0x366dbb(0x1a0))/0x4+-parseInt(_0x366dbb(0x1e1))/0x5*(parseInt(_0x366dbb(0x166))/0x6)+parseInt(_0x366dbb(0x14e))/0x7*(-parseInt(_0x366dbb(0x1bc))/0x8)+-parseInt(_0x366dbb(0x1a4))/0x9*(-parseInt(_0x366dbb(0x1c6))/0xa)+parseInt(_0x366dbb(0x16d))/0xb;if(_0x30c2b6===_0x3e2309)break;else _0x351540['push'](_0x351540['shift']());}catch(_0x10e5d3){_0x351540['push'](_0x351540['shift']());}}}(_0x4e4b,0x5b9a6));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0xc796d3 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';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x14dea1=>'\x1b[1m'+_0x14dea1+'\x1b[0m';function getGitRepoUrl(){const _0x3e1fbe=_0x4a9d,_0x223517={'oELAQ':'git\x20remote\x20get-url\x20origin','bYJRF':'pipe'};try{const _0x364256=execSync(_0x223517[_0x3e1fbe(0x1cc)],{'encoding':_0x3e1fbe(0x16e),'stdio':['pipe',_0x223517[_0x3e1fbe(0x13a)],_0x223517[_0x3e1fbe(0x13a)]]})[_0x3e1fbe(0x1be)]();return _0x364256['replace'](/\.git$/,'')[_0x3e1fbe(0x16a)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function _0x4e4b(){const _0x4e89d9=['join','scenario','verificationInProgressItems','No\x20scenarios\x20found.','nwQBh','canonicalFlow','filter','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','KbZKs','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','verification_in_progress','fYlVu','location','\x0a✅\x20Resumed\x20feature\x20review:\x20','gJAZY','wdsuv','.\x20Feature\x20review\x20has\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','toLocaleDateString','\x20--include-deleted','\x20\x20\x20\x20\x20\x20Approved','JqoOi','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','\x20\x20\x20\x20\x20Branch:\x20','CLAUDE_SESSION_ID','push','\x20\x20\x20Created:\x20','bEnLW','rroOX','\x20feature\x20review(s)\x20found','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','2243382YpTOBU','currentSessionId','FADwy','toLocaleString','\x20in\x20progress','ONCqV','ScfmE','eQwJs','WgaiB','completedAt','.png','authorEmail','FCTSe','.md','sessionId','qYjdh','blockedItems','status','...','\x20\x20\x20\x20\x20Progress:\x20','isTTY','bYJRF','bYtjt','lPkUo','MPlQX','spatial','Current\x20session\x20not\x20found.','VbXth','isKeyStep','\x0aNo\x20feature\x20reviews\x20found.','incompleteReason','/api/v1/mcp/browser-sessions/','approved','split','pipe','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','ChrWC','canceledReason','zKIpj','blocked','mAPYI','7OzyAcF','error','yogoY','kVcSh','AsFnw','log','NTaUL','Scenario\x20','style','zFHAR','\x0aCreating\x20feature\x20review...','assetUrl','fAUsi','rkqWq','numeric','all','HxiJK','KsRvU','en-US','No\x20sessions\x20found.','offset','YpQdt','verified','bQyMA','6Difdif','\x20incomplete','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20\x20\x20Incomplete:\x20','replace','coordinates','warn','3397163aFhAcY','utf-8','output','Next\x20page:\x20ranger\x20list\x20--offset\x20','oJdvN','\x20verified','includeDeleted','\x20--current-branch','24hipJKu','Qxktk','\x20\x20\x20ID:\x20','Showing\x20','FbEvw','gitRepoUrl','\x20(v','MeKOo','find','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','iHoGK','\x0aConcluding\x20session...','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','selected','write','IUAAG','env','sQXGZ','hJsfW','domRef','list','\x20\x20\x20Completed:\x20','\x20at\x20[','\x20blocked','QvzFh','items','CwsHr','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','gitBranch','oreja','\x0aAvailable\x20scenarios:','checklistItems','\x20\x20\x20Description:\x20','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','saiZP','nGaZF','\x0a✅\x20Session\x20is\x20already\x20completed.','uSRjc','has','FrANy','totalCount','pendingItems','2179944hSuhWZ','huCSS','\x20\x20\x20','get','117JPqaNT','screenshotUrls','type','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','storage','createdAt','any','KOZgj','xweHg','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','gKdCU','IxdZE','description','XecHG','unaddressedComments','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20\x20\x20Repository:\x20','latestReview','\x20—\x20no\x20comments','FFBRg','QgPXK','closed','\x0a✅\x20Scenario\x20updated','assets','4077592NLCsyX','scenarios','trim','24891VbhLlJ','git\x20rev-parse\x20--abbrev-ref\x20HEAD','map','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','blockedReason','qDdSs','341370ABtBvY','UxGNR','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','element','version','OuxVQ','oELAQ','\x20/\x20','verifiedItems','iXHua','stdout','textContent','exit','terminalReason','currentBranch','repeat','\x20>\x20','stats','\x0a✅\x20Session\x20','iteration','incompleteItems','/artifacts/','length','excludeScenarios','dashboardUrl','name','dfSGo','1846045CbSbnV'];_0x4e4b=function(){return _0x4e89d9;};return _0x4e4b();}function getGitBranch(){const _0x43b6fc=_0x4a9d,_0x23d73f={'Qxktk':function(_0x2d974b,_0x1d9100,_0x394016){return _0x2d974b(_0x1d9100,_0x394016);},'SOgpw':_0x43b6fc(0x1c0),'zKIpj':_0x43b6fc(0x147)};try{return _0x23d73f[_0x43b6fc(0x176)](execSync,_0x23d73f['SOgpw'],{'encoding':'utf-8','stdio':[_0x23d73f['zKIpj'],_0x23d73f[_0x43b6fc(0x14b)],_0x23d73f['zKIpj']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x1e736b=_0x4a9d,_0x535e5a={'gJAZY':function(_0x324913){return _0x324913();},'hJsfW':function(_0x2f82cb,_0x1bf7c9,_0x6660b6){return _0x2f82cb(_0x1bf7c9,_0x6660b6);}},_0x5e4d31=join(_0x535e5a[_0x1e736b(0x1f0)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x5e4d31))return null;try{const _0x3ef4e4=await _0x535e5a[_0x1e736b(0x187)](readFile,_0x5e4d31,_0x1e736b(0x16e));return _0x3ef4e4[_0x1e736b(0x1be)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x4de6b7){const _0x44fa88=_0x4a9d,_0x29a08b={'FrANy':function(_0x90d565,_0xbc11b7,_0x202ab5){return _0x90d565(_0xbc11b7,_0x202ab5);},'PphhH':function(_0x246a8f,_0x173472){return _0x246a8f(_0x173472);},'mcfbc':function(_0x10d17e,_0x4839a6,_0x252156,_0x5a4b4c){return _0x10d17e(_0x4839a6,_0x252156,_0x5a4b4c);},'uSRjc':'utf-8'},_0x1bc98c=getRangerDir(),_0x5ab571=_0x29a08b['FrANy'](join,_0x1bc98c,ACTIVE_FEATURE_FILE);!_0x29a08b['PphhH'](existsSync,_0x1bc98c)&&await _0x29a08b[_0x44fa88(0x19d)](mkdir,_0x1bc98c,{'recursive':!![]}),await _0x29a08b['mcfbc'](writeFile,_0x5ab571,_0x4de6b7,_0x29a08b[_0x44fa88(0x19b)]);}function getProgressDisplay(_0x240d77){const _0x3d67a5=_0x4a9d,_0x4452a1={'JRjMq':function(_0xf0b390,_0x1c4edb){return _0xf0b390+_0x1c4edb;},'SRtQs':function(_0x1aabf0,_0xadc953){return _0x1aabf0===_0xadc953;},'qcjSy':function(_0x8cc56c,_0x4794f5){return _0x8cc56c*_0x4794f5;},'ZMgsZ':function(_0x1fa036,_0x11d2f2){return _0x1fa036/_0x11d2f2;},'ChrWC':function(_0x211126,_0x483e67){return _0x211126-_0x483e67;},'KbZKs':function(_0x501e7c,_0x3829b9){return _0x501e7c>_0x3829b9;}},_0x1d5570=_0x240d77[_0x3d67a5(0x1ce)]||0x0,_0x47e5d3=_0x240d77[_0x3d67a5(0x1e4)]||0x0,_0x4bd4d0=_0x240d77[_0x3d67a5(0x135)]||0x0,_0x3d1829=_0x240d77[_0x3d67a5(0x1da)]||0x0,_0x37631c=_0x240d77[_0x3d67a5(0x19f)]||0x0,_0x279fea=_0x4452a1['JRjMq'](_0x1d5570+_0x47e5d3,_0x4bd4d0)+_0x3d1829+_0x37631c;if(_0x4452a1['SRtQs'](_0x279fea,0x0))return'-';const _0x32f51b=0xa,_0x47f394=Math['round'](_0x4452a1['qcjSy'](_0x4452a1['ZMgsZ'](_0x1d5570,_0x279fea),_0x32f51b)),_0x6bbabb='█'['repeat'](_0x47f394)+'░'[_0x3d67a5(0x1d5)](_0x4452a1[_0x3d67a5(0x149)](_0x32f51b,_0x47f394)),_0x326099=[];if(_0x4452a1['KbZKs'](_0x4bd4d0,0x0))_0x326099['push'](_0x4bd4d0+_0x3d67a5(0x18c));if(_0x4452a1[_0x3d67a5(0x1ea)](_0x3d1829,0x0))_0x326099[_0x3d67a5(0x1fb)](_0x3d1829+_0x3d67a5(0x167));if(_0x4452a1['KbZKs'](_0x47e5d3,0x0))_0x326099[_0x3d67a5(0x1fb)](_0x47e5d3+_0x3d67a5(0x205));const _0x262805=_0x326099['length']>0x0?'\x20('+_0x326099['join'](',\x20')+')':'';return _0x6bbabb+'\x20'+_0x1d5570+'/'+_0x279fea+_0x3d67a5(0x172)+_0x262805;}function getCurrentSessionItems(_0x1ee37d,_0x23d2ad){const _0x3c5f30=_0x4a9d;if(!_0x1ee37d[_0x3c5f30(0x202)])return _0x23d2ad[_0x3c5f30(0x1e8)](_0x107f65=>!_0x107f65['sessionId']);return _0x23d2ad[_0x3c5f30(0x1e8)](_0x3bdcac=>_0x3bdcac[_0x3c5f30(0x133)]===_0x1ee37d[_0x3c5f30(0x202)]||!_0x3bdcac[_0x3c5f30(0x133)]);}function displayFeature(_0x5c2d43,_0x1c129f){const _0x24991f=_0x4a9d,_0x4f06de={'rkqWq':function(_0x9b7abd,_0x4a41af){return _0x9b7abd(_0x4a41af);},'FbEvw':function(_0x149e2a,_0x35df9c){return _0x149e2a===_0x35df9c;},'ONCqV':_0x24991f(0x1b9),'kVcSh':function(_0x1971fb,_0x39445e){return _0x1971fb===_0x39445e;},'iHoGK':_0x24991f(0x164),'ScfmE':function(_0x2f48f2,_0x555b7b){return _0x2f48f2===_0x555b7b;},'xweHg':function(_0x13714d,_0x4b53ab){return _0x13714d!==_0x4b53ab;},'ykQmP':function(_0x1f56af,_0xf99dc9){return _0x1f56af===_0xf99dc9;},'vKKKn':_0x24991f(0x14c),'rroOX':_0x24991f(0x145)};console['log']('\x0a'+_0x5c2d43[_0x24991f(0x1df)]+'\x20('+_0x5c2d43[_0x24991f(0x1de)]+')');_0x5c2d43[_0x24991f(0x1d7)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x4f06de[_0x24991f(0x15b)](getProgressDisplay,_0x5c2d43['stats']));_0x5c2d43['description']&&console['log'](_0x24991f(0x196)+_0x5c2d43[_0x24991f(0x1b0)]);_0x5c2d43['gitRepoUrl']&&console['log'](_0x24991f(0x1b4)+_0x5c2d43[_0x24991f(0x17a)]);_0x5c2d43['gitBranch']&&console[_0x24991f(0x153)]('\x20\x20\x20Branch:\x20'+_0x5c2d43['gitBranch']);console[_0x24991f(0x153)](_0x24991f(0x1fc)+new Date(_0x5c2d43[_0x24991f(0x1a9)])[_0x24991f(0x204)]());_0x5c2d43[_0x24991f(0x20a)]&&console[_0x24991f(0x153)](_0x24991f(0x18a)+new Date(_0x5c2d43[_0x24991f(0x20a)])[_0x24991f(0x204)]());if(_0x1c129f&&_0x1c129f[_0x24991f(0x1dc)]>0x0){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x3a83c8=0x0;_0x3a83c8<_0x1c129f[_0x24991f(0x1dc)];_0x3a83c8++){const _0x26fcb1=_0x1c129f[_0x3a83c8];let _0x353b3e;if(_0x4f06de[_0x24991f(0x179)](_0x26fcb1['status'],_0x4f06de[_0x24991f(0x206)])&&_0x4f06de['kVcSh'](_0x26fcb1[_0x24991f(0x1d3)],'approved'))_0x353b3e='✅';else{if(_0x4f06de['kVcSh'](_0x26fcb1['status'],_0x4f06de['iHoGK']))_0x353b3e='🟢';else{if(_0x26fcb1[_0x24991f(0x136)]==='incomplete')_0x353b3e='🟠';else{if(_0x4f06de[_0x24991f(0x207)](_0x26fcb1['status'],'blocked'))_0x353b3e='🛑';else{if(_0x4f06de[_0x24991f(0x151)](_0x26fcb1[_0x24991f(0x136)],_0x24991f(0x1b9)))_0x353b3e='⛔';else _0x4f06de[_0x24991f(0x151)](_0x26fcb1['status'],_0x24991f(0x1ec))?_0x353b3e='⏳':_0x353b3e='⬜';}}}}const _0x1b5acb=_0x26fcb1['version']>0x1?_0x24991f(0x17b)+_0x26fcb1[_0x24991f(0x1ca)]+')':'',_0x17aab5=_0x26fcb1['version']>0x1&&_0x26fcb1['parentItemId']&&_0x4f06de[_0x24991f(0x1ac)](_0x26fcb1['status'],'closed')&&_0x4f06de['xweHg'](_0x26fcb1['status'],_0x4f06de[_0x24991f(0x17f)])?'\x20[has\x20reviewer\x20feedback]':'';console[_0x24991f(0x153)](_0x24991f(0x1a2)+(_0x3a83c8+0x1)+'.\x20'+_0x353b3e+'\x20'+_0x26fcb1[_0x24991f(0x1b0)]+_0x1b5acb+_0x17aab5);_0x4f06de['ykQmP'](_0x26fcb1[_0x24991f(0x136)],_0x4f06de['vKKKn'])&&_0x26fcb1[_0x24991f(0x1c4)]&&console['log'](_0x24991f(0x1c2)+_0x26fcb1[_0x24991f(0x1c4)]);_0x26fcb1['status']==='incomplete'&&_0x26fcb1['incompleteReason']&&console['log'](_0x24991f(0x169)+_0x26fcb1['incompleteReason']);if(_0x26fcb1[_0x24991f(0x136)]==='closed'&&_0x26fcb1['terminalReason']===_0x4f06de[_0x24991f(0x1fe)])console[_0x24991f(0x153)](_0x24991f(0x1f6));else _0x26fcb1['status']==='closed'&&_0x26fcb1['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x26fcb1[_0x24991f(0x14a)]);}}}export async function featureCreate(_0x3024b4,_0x25402f){const _0x3190e8=_0x4a9d,_0x386c9b={'oreja':function(_0x482f6f,_0x21941f){return _0x482f6f===_0x21941f;},'DHIoO':function(_0x37e94f){return _0x37e94f();},'mVjPM':_0x3190e8(0x158),'UONGv':function(_0x1a8b0f,_0x1e7a16){return _0x1a8b0f(_0x1e7a16);},'NzStT':function(_0x304ad0,_0x25a2e1,_0x3b698d){return _0x304ad0(_0x25a2e1,_0x3b698d);}},{envNames:_0x3685d1}=await getEnvNames();if(_0x3685d1[_0x3190e8(0x1dc)]===0x0&&!process[_0x3190e8(0x185)]['RANGER_TEST_USERNAME']){let _0x24801d=0x0;try{_0x24801d=(await listCloudProfiles())['length'];}catch{_0x24801d=0x1;}_0x386c9b[_0x3190e8(0x193)](_0x24801d,0x0)&&console[_0x3190e8(0x16c)]('\x0a'+formatProfileRequiredMessage(_0x1422a9=>bold(_0x1422a9)));}const _0x1722bb=_0x25402f['scenarios']?_0x25402f[_0x3190e8(0x1bd)][_0x3190e8(0x1c1)](_0x238057=>_0x238057['trim']()):[],_0x5756a6=_0x386c9b['DHIoO'](getGitRepoUrl),_0x157ad4=getGitBranch();console[_0x3190e8(0x153)](_0x386c9b['mVjPM']);const _0x22dbfd=await createFeature({'name':_0x3024b4,'description':_0x25402f[_0x3190e8(0x1b0)],'checklist':_0x1722bb,'gitRepoUrl':_0x5756a6,'gitBranch':_0x157ad4});await _0x386c9b['UONGv'](setActiveFeatureId,_0x22dbfd['id']),await tryStartCurrentSession(_0x22dbfd['id']);const _0x537cb9=process[_0x3190e8(0x185)][_0x3190e8(0x1fa)];_0x537cb9&&registerSession(_0x537cb9,_0x22dbfd['id']),console[_0x3190e8(0x153)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x22dbfd['id']),_0x386c9b['NzStT'](displayFeature,_0x22dbfd,_0x22dbfd[_0x3190e8(0x195)]),console[_0x3190e8(0x153)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x49cb22){const _0x331e03=_0x4a9d,_0x2f339a={'eQwJs':function(_0x2143e8){return _0x2143e8();},'sQXGZ':function(_0x293990,_0x1facf5){return _0x293990(_0x1facf5);},'BTXhY':function(_0x307e8c,_0x4a6bce){return _0x307e8c!==_0x4a6bce;},'cRjnd':_0x331e03(0x174),'fyGFq':_0x331e03(0x1f5)},_0x6c2d8c={'limit':_0x49cb22['limit']??0xa,'offset':_0x49cb22['offset']??0x0,'includeDeleted':_0x49cb22['includeDeleted']};_0x49cb22['currentBranch']&&(_0x6c2d8c['gitRepoUrl']=_0x2f339a[_0x331e03(0x208)](getGitRepoUrl),_0x6c2d8c[_0x331e03(0x192)]=getGitBranch());const _0x38adae=await _0x2f339a['sQXGZ'](listFeatures,_0x6c2d8c);if(_0x38adae['items'][_0x331e03(0x1dc)]===0x0){console['log'](_0x331e03(0x142));return;}const _0x3a173a=_0x38adae['totalCount']>_0x38adae['items'][_0x331e03(0x1dc)]?_0x331e03(0x178)+_0x38adae['items']['length']+'\x20of\x20'+_0x38adae[_0x331e03(0x19e)]:_0x38adae['totalCount']+_0x331e03(0x1ff);console['log']('\x0a'+_0x3a173a+':\x0a');for(const _0x1aef0a of _0x38adae[_0x331e03(0x18e)]){const _0x46ce25='2|1|4|0|3|5'['split']('|');let _0x2d4327=0x0;while(!![]){switch(_0x46ce25[_0x2d4327++]){case'0':_0x1aef0a['gitBranch']&&console[_0x331e03(0x153)]('\x20\x20\x20Branch:\x20'+_0x1aef0a['gitBranch']);continue;case'1':console['log'](_0x331e03(0x177)+_0x1aef0a['id']);continue;case'2':console['log'](''+_0x1aef0a[_0x331e03(0x1df)]);continue;case'3':console['log'](_0x331e03(0x1fc)+new Date(_0x1aef0a['createdAt'])['toLocaleDateString']());continue;case'4':_0x1aef0a[_0x331e03(0x1d7)]&&console[_0x331e03(0x153)]('\x20\x20\x20Progress:\x20'+_0x2f339a[_0x331e03(0x186)](getProgressDisplay,_0x1aef0a[_0x331e03(0x1d7)]));continue;case'5':console['log']('');continue;}break;}}const _0x601359=_0x6c2d8c['limit']??0xa,_0x4c7442=(_0x6c2d8c[_0x331e03(0x162)]??0x0)+_0x38adae['items'][_0x331e03(0x1dc)];if(_0x4c7442<_0x38adae[_0x331e03(0x19e)]){const _0x225151=_0x2f339a['BTXhY'](_0x601359,0xa)?'\x20--limit\x20'+_0x601359:'',_0x536e5b=_0x49cb22[_0x331e03(0x1d4)]?_0x2f339a['cRjnd']:'',_0x586149=_0x49cb22[_0x331e03(0x173)]?_0x2f339a['fyGFq']:'';console[_0x331e03(0x153)](_0x331e03(0x170)+_0x4c7442+_0x225151+_0x536e5b+_0x586149);}}export async function featureShow(_0x25c571){const _0x2dacd0=_0x4a9d,_0x2f19c3={'JqoOi':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','kSjSw':function(_0x4b47f5,_0x5661e9){return _0x4b47f5(_0x5661e9);}},_0x176f42=_0x25c571||await getActiveFeatureId();if(!_0x176f42)throw new Error(_0x2f19c3[_0x2dacd0(0x1f7)]);const _0x32a413=await _0x2f19c3['kSjSw'](getFeature,_0x176f42);displayFeature(_0x32a413,_0x32a413['checklistItems']);}export async function featureResume(_0x482435){const _0x21c906=_0x4a9d,_0x40756c={'CwsHr':function(_0x584e37,_0x276ef1){return _0x584e37(_0x276ef1);},'hqFsd':function(_0x33b7fe,_0x3985d2){return _0x33b7fe!==_0x3985d2;},'jkdpB':function(_0x49466f,_0x272b93,_0x263af0){return _0x49466f(_0x272b93,_0x263af0);},'MahNw':function(_0x206172){return _0x206172();},'nwQBh':function(_0x5e97c5,_0xfb0f20){return _0x5e97c5&&_0xfb0f20;},'iXHua':_0x21c906(0x1aa),'MPlQX':function(_0x55ed1a,_0x234b3e){return _0x55ed1a(_0x234b3e);},'IxdZE':function(_0xa2e476,_0x7994a1){return _0xa2e476===_0x7994a1;},'qDdSs':_0x21c906(0x1c3),'JAmFX':function(_0x34615e,_0x162839){return _0x34615e===_0x162839;},'YbYYX':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','WgaiB':_0x21c906(0x182),'KsRvU':function(_0x5d8a88,_0xd836a1,_0x26fcbc){return _0x5d8a88(_0xd836a1,_0x26fcbc);}};if(_0x482435){const _0x194283=await getFeature(_0x482435);await _0x40756c[_0x21c906(0x18f)](setActiveFeatureId,_0x194283['id']);const _0x4e19cb=getGitBranch();_0x4e19cb&&_0x40756c['hqFsd'](_0x4e19cb,_0x194283[_0x21c906(0x192)])&&(await updateFeature(_0x194283['id'],{'gitBranch':_0x4e19cb}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4e19cb));console[_0x21c906(0x153)](_0x21c906(0x1ef)+_0x194283[_0x21c906(0x1df)]+'\x20('+_0x194283['id']+')'),await tryStartCurrentSession(_0x194283['id']);const _0x52417b=process['env'][_0x21c906(0x1fa)];_0x52417b&&registerSession(_0x52417b,_0x194283['id']);_0x40756c['jkdpB'](displayFeature,_0x194283,_0x194283['checklistItems']),await printFeedbackNudge(_0x194283['id']);return;}const _0x5657d1=getGitRepoUrl(),_0x532e0d=_0x40756c['MahNw'](getGitBranch);if(_0x40756c[_0x21c906(0x1e6)](!_0x5657d1,!_0x532e0d))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log'](_0x21c906(0x1f8)+(_0x5657d1||'any')+_0x21c906(0x1cd)+(_0x532e0d||_0x40756c[_0x21c906(0x1cf)])+_0x21c906(0x137));const _0x800deb=await _0x40756c['MPlQX'](listFeatures,{'gitRepoUrl':_0x5657d1,'gitBranch':_0x532e0d}),_0x4e31a1=_0x800deb['items'][_0x21c906(0x1e8)](_0x42136f=>_0x42136f['status']?_0x42136f['status']!=='verified':!_0x42136f['completedAt']);if(_0x40756c[_0x21c906(0x1af)](_0x4e31a1[_0x21c906(0x1dc)],0x0)){console[_0x21c906(0x153)](_0x40756c[_0x21c906(0x1c5)]),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x538e03;if(_0x40756c['JAmFX'](_0x4e31a1[_0x21c906(0x1dc)],0x1))_0x538e03=_0x4e31a1[0x0];else{const _0x4d6b8e=process['stdin'][_0x21c906(0x139)]&&process['stdout']['isTTY'];if(!_0x4d6b8e){console[_0x21c906(0x153)](_0x40756c['YbYYX']);for(const _0x5e860f of _0x4e31a1){console[_0x21c906(0x153)]('\x20\x20'+_0x5e860f[_0x21c906(0x1df)]),console[_0x21c906(0x153)]('\x20\x20\x20\x20\x20ID:\x20'+_0x5e860f['id']),_0x5e860f['stats']&&console[_0x21c906(0x153)](_0x21c906(0x138)+getProgressDisplay(_0x5e860f[_0x21c906(0x1d7)])),_0x5e860f[_0x21c906(0x192)]&&console['log'](_0x21c906(0x1f9)+_0x5e860f['gitBranch']);}throw new Error(_0x21c906(0x1e9));}const {selected:_0x1b8e21}=await _0xc796d3['prompt']([{'type':_0x21c906(0x189),'name':_0x40756c[_0x21c906(0x209)],'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x4e31a1['map'](_0x1e297a=>({'name':_0x1e297a[_0x21c906(0x1df)]+'\x20('+_0x1e297a['id']+')','value':_0x1e297a['id']}))}]);_0x538e03=_0x4e31a1[_0x21c906(0x17d)](_0x816de=>_0x816de['id']===_0x1b8e21);}await _0x40756c['CwsHr'](setActiveFeatureId,_0x538e03['id']);_0x532e0d&&_0x532e0d!==_0x538e03['gitBranch']&&(await _0x40756c[_0x21c906(0x15f)](updateFeature,_0x538e03['id'],{'gitBranch':_0x532e0d}),console[_0x21c906(0x153)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x532e0d));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x538e03[_0x21c906(0x1df)]+'\x20('+_0x538e03['id']+')'),await tryStartCurrentSession(_0x538e03['id']);const _0xd6686c=await _0x40756c[_0x21c906(0x18f)](getFeature,_0x538e03['id']),_0x6af3c8=process['env'][_0x21c906(0x1fa)];_0x6af3c8&&_0x40756c['jkdpB'](registerSession,_0x6af3c8,_0xd6686c['id']),_0x40756c['jkdpB'](displayFeature,_0xd6686c,_0xd6686c['checklistItems']),await _0x40756c[_0x21c906(0x13d)](printFeedbackNudge,_0xd6686c['id']);}async function printFeedbackNudge(_0x4afb38){const _0x197379=_0x4a9d,_0x1bd24c={'YpQdt':function(_0x43a4c0,_0x2a896d){return _0x43a4c0(_0x2a896d);},'jNuEc':function(_0x3ad5ba,_0x54cff5,_0x4f0c48){return _0x3ad5ba(_0x54cff5,_0x4f0c48);},'WsftM':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0xe28723}=await _0x1bd24c[_0x197379(0x163)](getActionItems,_0x4afb38);let _0x20ba9a=0x0,_0x19d1fe=0x0;for(const _0x24f078 of _0xe28723){const _0x4e77e1=await _0x1bd24c['jNuEc'](getItemFeedback,_0x4afb38,_0x24f078['id']);_0x4e77e1['unaddressedComments'][_0x197379(0x1dc)]>0x0&&(_0x20ba9a+=_0x4e77e1[_0x197379(0x1b2)][_0x197379(0x1dc)],_0x19d1fe++);}_0x20ba9a>0x0&&(console[_0x197379(0x153)]('\x0a⚠️\x20\x20'+_0x20ba9a+_0x197379(0x1ad)+_0x19d1fe+'\x20scenario(s).'),console['log'](_0x1bd24c['WsftM']));}catch{}}async function tryStartCurrentSession(_0x30d8c6){const _0x5221e1=_0x4a9d,_0xc4a8a3={'JZHgW':function(_0x10b9fa,_0x2a7513){return _0x10b9fa(_0x2a7513);}};try{const {sessions:_0x3dd2ba}=await _0xc4a8a3['JZHgW'](listFeatureSessions,_0x30d8c6),_0x586046=_0x3dd2ba['find'](_0x1a1a59=>_0x1a1a59[_0x5221e1(0x136)]==='ready');_0x586046&&(await startSession(_0x30d8c6,_0x586046['id']),console[_0x5221e1(0x153)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x586046['iteration']));}catch{}}export async function featureReport(_0x29bfef,_0x2c1fe8){const _0x3c66de=_0x4a9d,_0x1f2954={'nlCIt':function(_0x2fc26f){return _0x2fc26f();},'FCTSe':_0x3c66de(0x1c8),'wFpuQ':'\x0aGenerating\x20report...','MeKOo':function(_0x419269,_0x4da75f,_0x386039){return _0x419269(_0x4da75f,_0x386039);},'CPfvF':function(_0x4adf42,_0x18a06c,_0xb388d3,_0x395e06){return _0x4adf42(_0x18a06c,_0xb388d3,_0x395e06);},'mAPYI':'utf-8'},_0x4720be=_0x29bfef||await _0x1f2954['nlCIt'](getActiveFeatureId);if(!_0x4720be)throw new Error(_0x1f2954[_0x3c66de(0x20d)]);console['log'](_0x1f2954['wFpuQ']);const _0x34cea1=await _0x1f2954[_0x3c66de(0x17c)](getFeatureReportMarkdown,_0x4720be,{'style':_0x2c1fe8[_0x3c66de(0x156)]}),_0x21e80e=_0x2c1fe8[_0x3c66de(0x16f)]||_0x1f2954['CPfvF'](join,_0x1f2954['nlCIt'](getRangerDir),'reports',_0x4720be+_0x3c66de(0x20e)),_0x525960=_0x1f2954['MeKOo'](join,_0x21e80e,'..');!existsSync(_0x525960)&&await _0x1f2954[_0x3c66de(0x17c)](mkdir,_0x525960,{'recursive':!![]}),await writeFile(_0x21e80e,_0x34cea1,_0x1f2954[_0x3c66de(0x14d)]),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x21e80e);}function getScenarioResult(_0x319e3f){const _0x3986fc=_0x4a9d,_0x26efd0={'zLsTE':'closed','xgpEB':function(_0x50c68e,_0x133ee6){return _0x50c68e===_0x133ee6;},'fYlVu':_0x3986fc(0x1ec)};if(_0x319e3f[_0x3986fc(0x136)]===_0x26efd0['zLsTE'])return _0x319e3f['terminalReason']??_0x26efd0['zLsTE'];if(_0x26efd0['xgpEB'](_0x319e3f[_0x3986fc(0x136)],_0x26efd0[_0x3986fc(0x1ed)]))return'in_progress';return _0x319e3f[_0x3986fc(0x136)];}function getScenarioRationale(_0x19e5ed,_0x5c98a4){const _0x148ce4=_0x4a9d;if(_0x5c98a4)return _0x5c98a4;if(_0x19e5ed['blockedReason'])return _0x19e5ed['blockedReason'];if(_0x19e5ed['incompleteReason'])return _0x19e5ed[_0x148ce4(0x143)];if(_0x19e5ed['canceledReason'])return _0x19e5ed['canceledReason'];if(_0x19e5ed['notes'])return _0x19e5ed['notes'];return null;}export async function featureReportPrDescription(_0x16b01f,_0x365498){const _0x10683d=_0x4a9d,_0x373674={'gKdCU':function(_0x3d67d7){return _0x3d67d7();},'puPzM':_0x10683d(0x1c8),'NFcMt':function(_0x49bff6,_0xae3998,_0x102032){return _0x49bff6(_0xae3998,_0x102032);},'KOZgj':_0x10683d(0x200),'XZDGO':_0x10683d(0x194),'QvzFh':function(_0x2e45bb,_0x1dc3f1){return _0x2e45bb<_0x1dc3f1;},'RLBvA':_0x10683d(0x191),'bYtjt':function(_0x1a3157,_0x39742a,_0x5747bc,_0xc8d18e){return _0x1a3157(_0x39742a,_0x5747bc,_0xc8d18e);}},_0x3377c3=_0x16b01f||await _0x373674[_0x10683d(0x1ae)](getActiveFeatureId);if(!_0x3377c3)throw new Error(_0x373674['puPzM']);const _0x3f25fe=await getFeature(_0x3377c3),_0x5d0195=_0x3f25fe['checklistItems']||[],_0x234bbd=_0x373674['NFcMt'](getCurrentSessionItems,_0x3f25fe,_0x5d0195);_0x234bbd['length']===0x0&&(console[_0x10683d(0x14f)](_0x373674[_0x10683d(0x1ab)]),process[_0x10683d(0x1d2)](0x1));const _0x11efe4=_0x365498[_0x10683d(0x1dd)]??[],_0x4d1c96=_0x11efe4[_0x10683d(0x1e8)](_0x18db26=>!Number['isInteger'](_0x18db26)||_0x18db26<0x1||_0x18db26>_0x234bbd[_0x10683d(0x1dc)]);if(_0x4d1c96[_0x10683d(0x1dc)]>0x0){console[_0x10683d(0x14f)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x4d1c96['join'](',\x20')),console[_0x10683d(0x153)](_0x373674['XZDGO']);for(let _0x16c946=0x0;_0x373674[_0x10683d(0x18d)](_0x16c946,_0x234bbd['length']);_0x16c946++){console['log']('\x20\x20'+(_0x16c946+0x1)+'.\x20'+_0x234bbd[_0x16c946][_0x10683d(0x1b0)]);}process['exit'](0x1);}const _0xa7a16b=new Set(_0x11efe4[_0x10683d(0x1c1)](_0x537a02=>_0x537a02-0x1)),_0x585ca9=_0x234bbd[_0x10683d(0x1e8)]((_0x3c76ac,_0x469698)=>!_0xa7a16b[_0x10683d(0x19c)](_0x469698));_0x585ca9['length']===0x0&&(console['error'](_0x373674['RLBvA']),process['exit'](0x1));if(_0x365498['json'])await _0x373674[_0x10683d(0x13b)](outputJsonReport,_0x3377c3,_0x3f25fe,_0x585ca9);else{const _0xb79ced=await getFeatureReportMarkdown(_0x3377c3,{'itemIds':_0x585ca9[_0x10683d(0x1c1)](_0x59e37d=>_0x59e37d['id'])});process['stdout']['write'](_0xb79ced['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x13b4d3,_0x5d4bd4,_0x1c5565){const _0x529614=_0x4a9d,_0x327291={'oJdvN':function(_0x16e32a,_0x5006e5,_0x4873fe){return _0x16e32a(_0x5006e5,_0x4873fe);},'bQyMA':function(_0x22786e){return _0x22786e();},'dJyBl':function(_0x3cff8d,_0xac316){return _0x3cff8d(_0xac316);}},_0x2718bf=_0x327291[_0x529614(0x165)](getApiBaseUrl),_0x279321=await _0x327291['dJyBl'](getFeatureReport,_0x13b4d3),_0x156ddc=new Map(_0x279321[_0x529614(0x195)]['map'](_0x1583d9=>[_0x1583d9['id'],_0x1583d9])),_0x11adcf=await Promise[_0x529614(0x15d)](_0x1c5565[_0x529614(0x1c1)](async _0x28ac17=>{const _0x3d33ce=_0x529614,_0x383327=_0x156ddc[_0x3d33ce(0x1a3)](_0x28ac17['id']),_0x2a926c=_0x383327?.['linkedSession']??null;let _0x50433a=[];if(_0x28ac17['browserSessionId'])try{const {steps:_0x2f09e2}=await getBrowserSessionSteps(_0x28ac17['browserSessionId']);_0x2f09e2[_0x3d33ce(0x1dc)]>0x0&&(_0x50433a=_0x2f09e2['map'](_0x121d3c=>{const _0x59d680=_0x3d33ce,_0x2eccae=_0x121d3c[_0x59d680(0x1bb)]['find'](_0x3c6856=>_0x3c6856['assetType']==='screenshot'&&_0x3c6856['timing']==='after')??_0x121d3c[_0x59d680(0x1bb)][_0x59d680(0x17d)](_0x30b4ec=>_0x30b4ec['assetType']==='screenshot');let _0x53e4f3=null,_0x303cd7=null;if(_0x2eccae){const _0x48d3a4=_0x2eccae[_0x59d680(0x1a8)][_0x59d680(0x1ee)][_0x59d680(0x146)]('/')['pop']();_0x53e4f3=_0x2718bf+_0x59d680(0x144)+_0x28ac17['browserSessionId']+_0x59d680(0x1db)+_0x48d3a4,_0x48d3a4&&(_0x303cd7=_0x48d3a4['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x59d680(0x16a)](/[-_]/g,'\x20'));}return{'description':_0x303cd7||_0x121d3c[_0x59d680(0x1b0)]||_0x121d3c['stepName']||'Step\x20'+_0x121d3c['position'],'screenshot':_0x53e4f3,'is_key_step':_0x121d3c[_0x59d680(0x141)]};}));}catch{}return _0x50433a[_0x3d33ce(0x1dc)]===0x0&&_0x2a926c?.['screenshotUrls']&&(_0x50433a=_0x2a926c[_0x3d33ce(0x1a5)]['map']((_0x22fdd6,_0x175f66)=>({'description':'Screenshot\x20'+(_0x175f66+0x1),'screenshot':_0x22fdd6,'is_key_step':![]}))),{'description':_0x28ac17['description'],'result':getScenarioResult(_0x28ac17),'rationale':_0x327291[_0x3d33ce(0x171)](getScenarioRationale,_0x28ac17,_0x2a926c?.['agentResponse']),'steps':_0x50433a};})),_0x56d111={'url':_0x5d4bd4['dashboardUrl'],'scenarios':_0x11adcf};process[_0x529614(0x1d0)][_0x529614(0x183)](JSON['stringify'](_0x56d111,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x2f2665){const _0x596aef=_0x4a9d,_0x1e26ca={'JfVFu':function(_0x3c45ad){return _0x3c45ad();},'hpIIa':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','HxiJK':function(_0x4e0de8,_0xf063e6){return _0x4e0de8(_0xf063e6);},'yogoY':_0x596aef(0x13f),'eJDKQ':function(_0x568eb1,_0x190ffd){return _0x568eb1===_0x190ffd;},'QgPXK':'completed','oHlrP':_0x596aef(0x19a),'OuxVQ':function(_0x6c37d7,_0x4569ea){return _0x6c37d7!==_0x4569ea;},'nGaZF':'in_progress','bEnLW':_0x596aef(0x180),'UaTOo':function(_0x2ef064,_0x4d6dfe,_0x6b86ba){return _0x2ef064(_0x4d6dfe,_0x6b86ba);}},_0x293d83=_0x2f2665||await _0x1e26ca['JfVFu'](getActiveFeatureId);if(!_0x293d83)throw new Error(_0x1e26ca['hpIIa']);const _0x1343cd=await _0x1e26ca[_0x596aef(0x15e)](getFeature,_0x293d83);if(!_0x1343cd[_0x596aef(0x202)])throw new Error(_0x596aef(0x1f3));const {sessions:_0x1875cf}=await listFeatureSessions(_0x293d83),_0x4c57e6=_0x1875cf[_0x596aef(0x17d)](_0x272b6d=>_0x272b6d['id']===_0x1343cd[_0x596aef(0x202)]);if(!_0x4c57e6)throw new Error(_0x1e26ca[_0x596aef(0x150)]);if(_0x1e26ca['eJDKQ'](_0x4c57e6[_0x596aef(0x136)],_0x1e26ca[_0x596aef(0x1b8)])){console['log'](_0x1e26ca['oHlrP']);return;}if(_0x1e26ca[_0x596aef(0x1cb)](_0x4c57e6['status'],_0x1e26ca[_0x596aef(0x199)]))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x4c57e6['status']);console['log'](_0x1e26ca[_0x596aef(0x1fd)]),await _0x1e26ca['UaTOo'](concludeSession,_0x293d83,_0x1343cd['currentSessionId']),console['log'](_0x596aef(0x1d8)+_0x4c57e6[_0x596aef(0x1d9)]+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4f25f0){const _0x56f2a3=_0x4a9d,_0x383c05={'QEjbZ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','UxGNR':function(_0x1af4ee,_0x371e1c){return _0x1af4ee(_0x371e1c);},'lPkUo':function(_0xc3d2b,_0x26919e){return _0xc3d2b(_0x26919e);},'qyulc':function(_0x259d9a,_0x3b5538){return _0x259d9a===_0x3b5538;},'bGSTa':_0x56f2a3(0x161),'jnweH':function(_0x14ed87,_0x52cd44){return _0x14ed87===_0x52cd44;}},_0x2c77a7=_0x4f25f0||await getActiveFeatureId();if(!_0x2c77a7)throw new Error(_0x383c05['QEjbZ']);const _0x3a2479=await _0x383c05[_0x56f2a3(0x1c7)](getFeature,_0x2c77a7);console[_0x56f2a3(0x153)](_0x56f2a3(0x148)+_0x3a2479['name']+'\x0a');const {sessions:_0xdb4f56}=await _0x383c05[_0x56f2a3(0x13c)](listFeatureSessions,_0x2c77a7);if(_0x383c05['qyulc'](_0xdb4f56[_0x56f2a3(0x1dc)],0x0)){console[_0x56f2a3(0x153)](_0x383c05['bGSTa']);return;}for(const _0x390ba0 of _0xdb4f56){const _0x16b002=_0x383c05['jnweH'](_0x390ba0['status'],'completed')?'✅':_0x390ba0[_0x56f2a3(0x136)]==='in_progress'?'🔄':'▶️';console[_0x56f2a3(0x153)](_0x16b002+'\x20Session\x20'+_0x390ba0['iteration']+'\x20('+_0x390ba0['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x390ba0[_0x56f2a3(0x136)]),console['log'](_0x56f2a3(0x1fc)+new Date(_0x390ba0[_0x56f2a3(0x1a9)])['toLocaleString']()),_0x390ba0['completedAt']&&console[_0x56f2a3(0x153)](_0x56f2a3(0x18a)+new Date(_0x390ba0['completedAt'])[_0x56f2a3(0x204)]()),console[_0x56f2a3(0x153)]('');}}function _0x4a9d(_0x1d3707,_0x28572f){_0x1d3707=_0x1d3707-0x133;const _0x4e4b1b=_0x4e4b();let _0x4a9dde=_0x4e4b1b[_0x1d3707];return _0x4a9dde;}export async function featureAddScenario(_0x6f7955,_0x5d749e){const _0x299e1a=_0x4a9d,_0x3cf5e7={'ufYOh':function(_0x2fd4e2){return _0x2fd4e2();},'TAVlP':_0x299e1a(0x168),'aAoZM':function(_0x285bd9,_0x42fd5a){return _0x285bd9(_0x42fd5a);},'zFHAR':function(_0x4e3dfc,_0x3afcdd,_0x4f59ed){return _0x4e3dfc(_0x3afcdd,_0x4f59ed);}},_0x42903a=_0x5d749e||await _0x3cf5e7['ufYOh'](getActiveFeatureId);if(!_0x42903a)throw new Error(_0x3cf5e7['TAVlP']);const _0x260c02=await _0x3cf5e7['aAoZM'](getFeature,_0x42903a);if(_0x260c02[_0x299e1a(0x1b5)]&&!_0x260c02[_0x299e1a(0x1b5)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x260c02['dashboardUrl']);await createChecklistItem(_0x42903a,_0x6f7955);const _0x32af0e=await _0x3cf5e7['aAoZM'](getFeature,_0x42903a);console[_0x299e1a(0x153)]('\x0a✅\x20Scenario\x20added'),_0x3cf5e7[_0x299e1a(0x157)](displayFeature,_0x32af0e,_0x32af0e[_0x299e1a(0x195)]);}export async function featureEditScenario(_0x8cd6e2,_0x37b7f3){const _0x57184b=_0x4a9d,_0x468c0b={'qyCwQ':function(_0x203d2c){return _0x203d2c();},'ocMDF':function(_0x1863bb,_0x5d63f3){return _0x1863bb(_0x5d63f3);},'NTaUL':_0x57184b(0x181),'yNgGI':function(_0x2565ea,_0x3312d4){return _0x2565ea===_0x3312d4;},'aMIho':_0x57184b(0x1a7),'NZGPf':function(_0x2e5a46,_0x6ba5a5){return _0x2e5a46<_0x6ba5a5;},'IUAAG':function(_0x33b29b,_0xb3e37f){return _0x33b29b+_0xb3e37f;},'dfSGo':function(_0x501687,_0x4e9919){return _0x501687+_0x4e9919;},'eruzq':function(_0x2dcb80,_0x1cfd5f,_0x56aa7c,_0x5adc23){return _0x2dcb80(_0x1cfd5f,_0x56aa7c,_0x5adc23);}},_0x5100e7=_0x37b7f3['id']||await _0x468c0b['qyCwQ'](getActiveFeatureId);!_0x5100e7&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x57184b(0x190)),process[_0x57184b(0x1d2)](0x1));const _0x1a803a=await _0x468c0b['ocMDF'](getFeature,_0x5100e7);_0x1a803a[_0x57184b(0x1b5)]&&!_0x1a803a[_0x57184b(0x1b5)]['submittedAt']&&(console['error'](_0x468c0b[_0x57184b(0x154)]),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x1a803a['dashboardUrl']),process['exit'](0x1));const _0x4fdad6=_0x1a803a[_0x57184b(0x195)]||[];_0x468c0b['yNgGI'](_0x4fdad6[_0x57184b(0x1dc)],0x0)&&(console['error'](_0x468c0b['aMIho']),process['exit'](0x1));if(_0x37b7f3['scenario']===undefined){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x57184b(0x153)]('\x0aAvailable\x20scenarios:');for(let _0x3d0eda=0x0;_0x468c0b['NZGPf'](_0x3d0eda,_0x4fdad6[_0x57184b(0x1dc)]);_0x3d0eda++){console[_0x57184b(0x153)]('\x20\x20'+_0x468c0b[_0x57184b(0x184)](_0x3d0eda,0x1)+'.\x20'+_0x4fdad6[_0x3d0eda]['description']);}process['exit'](0x1);}const _0x202fb6=_0x37b7f3[_0x57184b(0x1e3)]-0x1;if(_0x202fb6<0x0||_0x202fb6>=_0x4fdad6[_0x57184b(0x1dc)]){console[_0x57184b(0x14f)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x37b7f3['scenario']+_0x57184b(0x1f2)+_0x4fdad6['length']+'\x20scenarios.'),console['log'](_0x57184b(0x194));for(let _0x425873=0x0;_0x425873<_0x4fdad6['length'];_0x425873++){console['log']('\x20\x20'+_0x468c0b[_0x57184b(0x1e0)](_0x425873,0x1)+'.\x20'+_0x4fdad6[_0x425873]['description']);}process[_0x57184b(0x1d2)](0x1);}const _0x39f165=_0x4fdad6[_0x202fb6];await _0x468c0b['eruzq'](updateChecklistItem,_0x5100e7,_0x39f165['id'],{'description':_0x8cd6e2});const _0x27cf58=await _0x468c0b['ocMDF'](getFeature,_0x5100e7);console[_0x57184b(0x153)](_0x57184b(0x1ba)),displayFeature(_0x27cf58,_0x27cf58[_0x57184b(0x195)]);}async function downloadFeedbackImage(_0x4523b4,_0x3cbb6f){const _0x5e658f=_0x4a9d,_0x59769e={'FADwy':function(_0x3fea25,_0x1ee634,_0x602055){return _0x3fea25(_0x1ee634,_0x602055);},'BDVVJ':function(_0x33097e){return _0x33097e();},'saiZP':function(_0x43e90e,_0x2c7950,_0x64c471){return _0x43e90e(_0x2c7950,_0x64c471);},'DOwHg':function(_0x119726,_0x2ebc06){return _0x119726(_0x2ebc06);}};try{const _0x10d25d=_0x59769e[_0x5e658f(0x203)](join,_0x59769e['BDVVJ'](getRangerDir),'feedback-images');await _0x59769e[_0x5e658f(0x198)](mkdir,_0x10d25d,{'recursive':!![]});const _0x4a867a=join(_0x10d25d,'comment_'+_0x3cbb6f+_0x5e658f(0x20b)),_0x295a4a=await _0x59769e['DOwHg'](fetch,_0x4523b4);if(!_0x295a4a['ok'])return null;const _0x390fb5=Buffer['from'](await _0x295a4a['arrayBuffer']());return await writeFile(_0x4a867a,_0x390fb5),_0x4a867a;}catch{return null;}}export async function featureGetReview(_0x290efc){const _0x543d3e=_0x4a9d,_0x43ac5f={'XecHG':function(_0x8e6fb0,_0xf832ce){return _0x8e6fb0(_0xf832ce);},'fAUsi':function(_0x590bb4,_0x513849){return _0x590bb4===_0x513849;},'qYjdh':function(_0x59278d,_0x3e6ecc){return _0x59278d>_0x3e6ecc;},'KbHtQ':function(_0x4ed241,_0x4ba37f){return _0x4ed241>_0x4ba37f;},'FFBRg':function(_0x52be06,_0x3fbbe1){return _0x52be06+_0x3fbbe1;},'AsFnw':_0x543d3e(0x15c),'XRRiA':_0x543d3e(0x1c9),'huCSS':function(_0x3243f4,_0x33bed4){return _0x3243f4+_0x33bed4;}},_0x58f3d9=_0x290efc||await getActiveFeatureId();if(!_0x58f3d9)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 _0x37fc0f=await _0x43ac5f[_0x543d3e(0x1b1)](getFeature,_0x58f3d9),{items:_0x4fd692}=await getActionItems(_0x58f3d9);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x37fc0f[_0x543d3e(0x1df)]+'\x20('+_0x37fc0f['id']+')\x0a');if(_0x43ac5f[_0x543d3e(0x15a)](_0x4fd692['length'],0x0)){console[_0x543d3e(0x153)](_0x543d3e(0x1e5));return;}for(let _0x561469=0x0;_0x561469<_0x4fd692['length'];_0x561469++){const _0x19b22a=_0x4fd692[_0x561469],_0x7479a2=_0x43ac5f[_0x543d3e(0x134)](_0x19b22a['version'],0x1)?'\x20(v'+_0x19b22a[_0x543d3e(0x1ca)]+')':'',_0x4f71c1=await getItemFeedback(_0x58f3d9,_0x19b22a['id']);if(_0x43ac5f['KbHtQ'](_0x4f71c1['unaddressedComments'][_0x543d3e(0x1dc)],0x0)){console['log']('Scenario\x20'+_0x43ac5f[_0x543d3e(0x1b7)](_0x561469,0x1)+':\x20\x22'+_0x19b22a['description']+'\x22'+_0x7479a2+'\x20—\x20'+_0x4f71c1[_0x543d3e(0x1b2)][_0x543d3e(0x1dc)]+'\x20unaddressed\x20comment(s)');for(const _0x4381fc of _0x4f71c1[_0x543d3e(0x1b2)]){const _0x19de8d=new Date(_0x4381fc['createdAt'])[_0x543d3e(0x1f4)](_0x543d3e(0x160),{'month':'short','day':_0x43ac5f[_0x543d3e(0x152)]}),_0x191bb4=_0x4381fc['authorName']||_0x4381fc[_0x543d3e(0x20c)]||'Unknown';console[_0x543d3e(0x153)]('\x20\x20💬\x20'+_0x191bb4+'\x20('+_0x19de8d+'):\x20\x22'+_0x4381fc['content']+'\x22');if(_0x4381fc[_0x543d3e(0x159)]){const _0x2cd4dc=await downloadFeedbackImage(_0x4381fc[_0x543d3e(0x159)],_0x4381fc['id']);_0x2cd4dc&&console[_0x543d3e(0x153)](_0x543d3e(0x197)+_0x2cd4dc);}if(_0x4381fc[_0x543d3e(0x188)]){const _0x3be26c=_0x4381fc['domRef']['selector']['split'](_0x543d3e(0x1d6))['pop']()?.[_0x543d3e(0x146)](':')[0x0]||_0x43ac5f['XRRiA'],_0x5a8651=_0x4381fc[_0x543d3e(0x188)][_0x543d3e(0x1d1)]?'\x20\x22'+_0x4381fc[_0x543d3e(0x188)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x3be26c+'>'+_0x5a8651),console['log'](_0x543d3e(0x1b3)+_0x4381fc[_0x543d3e(0x188)]['selector']);}else{if(_0x4381fc['spatial']){const _0x214f3c=_0x4381fc[_0x543d3e(0x13e)][_0x543d3e(0x16b)];_0x4381fc['spatial']['type']==='point'&&_0x214f3c[_0x543d3e(0x1dc)]>=0x2?console['log'](_0x543d3e(0x17e)+_0x214f3c[0x0]['toFixed'](0x2)+',\x20'+_0x214f3c[0x1]['toFixed'](0x2)+')'):console[_0x543d3e(0x153)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x4381fc[_0x543d3e(0x13e)][_0x543d3e(0x1a6)]+_0x543d3e(0x18b)+_0x214f3c['map'](_0x202d41=>_0x202d41['toFixed'](0x2))[_0x543d3e(0x1e2)](',\x20')+']');}}}if(_0x4f71c1[_0x543d3e(0x1e7)]){console[_0x543d3e(0x153)]('\x20\x20Expected\x20flow:');for(const _0x33737f of _0x4f71c1['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x33737f);}}}else console['log'](_0x543d3e(0x155)+_0x43ac5f[_0x543d3e(0x1a1)](_0x561469,0x1)+':\x20\x22'+_0x19b22a['description']+'\x22'+_0x7479a2+_0x543d3e(0x1b6)),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x543d3e(0x153)]('');}}export async function featureDelete(_0x2c08d3){const _0x5b4aad=_0x4a9d,_0x59def4={'wdsuv':function(_0x5e91ae,_0x4202b4){return _0x5e91ae(_0x4202b4);},'VbXth':function(_0x2152e1,_0xeb906a){return _0x2152e1+_0xeb906a;}},_0x5df667=_0x2c08d3||await getActiveFeatureId();if(!_0x5df667)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 _0xb6a738=await _0x59def4[_0x5b4aad(0x1f1)](getFeature,_0x5df667);await _0x59def4['wdsuv'](softDeleteFeature,_0x5df667),console[_0x5b4aad(0x153)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0xb6a738[_0x5b4aad(0x1df)]+'\x20('+_0x5df667+')'),console['log'](_0x59def4[_0x5b4aad(0x140)](_0x5b4aad(0x1eb),_0x5df667));}export async function featureRestore(_0x144e20){const _0x49c451=_0x4a9d,_0x285f17={'WCGwh':function(_0x453092,_0x15c70a){return _0x453092(_0x15c70a);},'takkK':function(_0x3e3966,_0x5b309f,_0x30bcf6){return _0x3e3966(_0x5b309f,_0x30bcf6);}};await restoreFeature(_0x144e20);const _0x4e980c=await _0x285f17['WCGwh'](getFeature,_0x144e20);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x4e980c[_0x49c451(0x1df)]+'\x20('+_0x144e20+')'),_0x285f17['takkK'](displayFeature,_0x4e980c,_0x4e980c[_0x49c451(0x195)]);}
@@ -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(_0x1e4a3d,_0x3cfcea){const _0x61c3a3=_0x2a50,_0x42e269=_0x1e4a3d();while(!![]){try{const _0x1b7fd2=parseInt(_0x61c3a3(0xf5))/0x1*(parseInt(_0x61c3a3(0xea))/0x2)+-parseInt(_0x61c3a3(0xf3))/0x3+parseInt(_0x61c3a3(0xeb))/0x4*(-parseInt(_0x61c3a3(0xf0))/0x5)+-parseInt(_0x61c3a3(0xf6))/0x6*(-parseInt(_0x61c3a3(0xf2))/0x7)+parseInt(_0x61c3a3(0xe8))/0x8*(-parseInt(_0x61c3a3(0xf7))/0x9)+parseInt(_0x61c3a3(0xf4))/0xa+-parseInt(_0x61c3a3(0xe6))/0xb*(parseInt(_0x61c3a3(0xe5))/0xc);if(_0x1b7fd2===_0x3cfcea)break;else _0x42e269['push'](_0x42e269['shift']());}catch(_0x5163cf){_0x42e269['push'](_0x42e269['shift']());}}}(_0x3487,0x6c588));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 _0x2a50(_0x46bede,_0x613572){_0x46bede=_0x46bede-0xe5;const _0x348795=_0x3487();let _0x2a50a8=_0x348795[_0x46bede];return _0x2a50a8;}function installCancellationHandlers(){const _0x2265cc=_0x2a50,_0x6240d9={'sOQML':'SIGINT','lvQeh':'SIGTERM','BjkYH':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x3eda62=()=>{const _0x1bb06f=_0x2a50;process[_0x1bb06f(0xe9)](0x0);};process['once'](_0x6240d9['sOQML'],_0x3eda62),process[_0x2265cc(0xee)](_0x6240d9[_0x2265cc(0xe7)],_0x3eda62),process[_0x2265cc(0xee)](_0x6240d9[_0x2265cc(0xf8)],_0x3eda62),cancellationHandlersInstalled=!![];}export async function hook(_0x2ff947,_0xe4e196){const _0x4de47a=_0x2a50,_0x51fbde={'WUBqF':function(_0x29a830){return _0x29a830();},'fkItd':function(_0x1af1d7,_0x474e04){return _0x1af1d7(_0x474e04);}};_0x51fbde[_0x4de47a(0xf1)](installCancellationHandlers);const _0x17525a=HOOKS[_0x2ff947];if(!_0x17525a){const _0x2a1f2c=Object[_0x4de47a(0xec)](HOOKS)['join'](',\x20');console['error'](_0x4de47a(0xed)+_0x2ff947),console[_0x4de47a(0xef)]('Valid\x20hooks:\x20'+_0x2a1f2c),process['exit'](0x1);}await _0x51fbde['fkItd'](_0x17525a,_0xe4e196);}function _0x3487(){const _0x286a8c=['Unknown\x20hook:\x20','once','error','505ExlNHI','WUBqF','14sclNOe','758472vucZSB','6447280aNrWvy','202eyInvS','2069850jvMgPh','9VAqOAL','BjkYH','44124XXHfen','682SXQjkC','lvQeh','3297736AQiewW','exit','194jEvVjD','692PwqHDy','keys'];_0x3487=function(){return _0x286a8c;};return _0x3487();}
@@ -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(_0x414ff4,_0x49be0a){const _0x54d831=_0x2125,_0x53ba18=_0x414ff4();while(!![]){try{const _0xf165de=parseInt(_0x54d831(0x1a2))/0x1*(-parseInt(_0x54d831(0x1a4))/0x2)+parseInt(_0x54d831(0x1a1))/0x3+-parseInt(_0x54d831(0x1a3))/0x4*(-parseInt(_0x54d831(0x19b))/0x5)+-parseInt(_0x54d831(0x19d))/0x6+-parseInt(_0x54d831(0x1a8))/0x7+-parseInt(_0x54d831(0x1a7))/0x8*(-parseInt(_0x54d831(0x1a6))/0x9)+parseInt(_0x54d831(0x1a5))/0xa*(-parseInt(_0x54d831(0x19e))/0xb);if(_0xf165de===_0x49be0a)break;else _0x53ba18['push'](_0x53ba18['shift']());}catch(_0x4470b4){_0x53ba18['push'](_0x53ba18['shift']());}}}(_0x393c,0x597d2));import{readHookInput}from'./output.js';function _0x393c(){const _0x4cfac7=['97rRqNFs','1400396tsCWxQ','2194HwmIdF','286790USTvyS','99SoIOxn','164856yvQKjS','577654RdZDuj','5nqxjyF','dSsiU','1192854WlUWCy','22XpvnoD','log','oBwdh','704604EVTucK'];_0x393c=function(){return _0x4cfac7;};return _0x393c();}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.';function _0x2125(_0x533534,_0x431ada){_0x533534=_0x533534-0x19b;const _0x393c10=_0x393c();let _0x21259e=_0x393c10[_0x533534];return _0x21259e;}export async function autoPrompt(){const _0x49e19b=_0x2125,_0x3be4e6={'dSsiU':function(_0x297036){return _0x297036();},'oBwdh':function(_0x3c9678,_0x3b5c4a){return _0x3c9678(_0x3b5c4a);},'zSSlh':function(_0x39134d,_0x4a50da){return _0x39134d(_0x4a50da);},'hBzGS':function(_0x35eb1e,_0x57d77f){return _0x35eb1e(_0x57d77f);}},_0x4b3b42=await _0x3be4e6[_0x49e19b(0x19c)](readHookInput),_0x3e0b21=_0x4b3b42?.['session_id'];if(!_0x3e0b21)return;if(_0x3be4e6[_0x49e19b(0x1a0)](isSessionEnabled,_0x3e0b21)||_0x3be4e6['zSSlh'](hasSessionBeenPrompted,_0x3e0b21))return;_0x3be4e6['hBzGS'](markSessionPrompted,_0x3e0b21),console[_0x49e19b(0x19f)](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(_0x4c80fa,_0x58e707){const _0x5db322=_0x21b2,_0x43dff3=_0x4c80fa();while(!![]){try{const _0x123b9c=-parseInt(_0x5db322(0xc6))/0x1*(-parseInt(_0x5db322(0xc0))/0x2)+-parseInt(_0x5db322(0xbb))/0x3+-parseInt(_0x5db322(0xc1))/0x4+-parseInt(_0x5db322(0xc2))/0x5+-parseInt(_0x5db322(0xbc))/0x6+-parseInt(_0x5db322(0xbf))/0x7+parseInt(_0x5db322(0xc5))/0x8;if(_0x123b9c===_0x58e707)break;else _0x43dff3['push'](_0x43dff3['shift']());}catch(_0x3f0084){_0x43dff3['push'](_0x43dff3['shift']());}}}(_0x5d83,0x3d8a4));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x21b2(_0x148ff7,_0x89081a){_0x148ff7=_0x148ff7-0xbb;const _0x5d83fb=_0x5d83();let _0x21b22a=_0x5d83fb[_0x148ff7];return _0x21b22a;}import{printBlock}from'./output.js';function _0x5d83(){const _0x55b866=['438364gzdCvs','380210lPfOVc','lbBdg','RKCwA','9622824yXFjYf','52414wCTnZw','main','582045IdonrN','2750088wxnsRP','env','\x20and\x20branch\x20\x27','2624013njrwlo','10sNPScb'];_0x5d83=function(){return _0x55b866;};return _0x5d83();}export async function disable(_0x34275f){const _0x458c3f=_0x21b2,_0x47020b={'RKCwA':function(_0x2ed167,_0x4d226f){return _0x2ed167(_0x4d226f);},'ubeqT':function(_0x33f3a8){return _0x33f3a8();},'lbBdg':_0x458c3f(0xc7)},_0x5a35ac=_0x34275f||process[_0x458c3f(0xbd)]['CLAUDE_SESSION_ID']||'';_0x5a35ac&&_0x47020b[_0x458c3f(0xc4)](disableSession,_0x5a35ac);const _0x54151d=_0x47020b['ubeqT'](getCurrentBranch);_0x54151d&&_0x54151d!==_0x47020b[_0x458c3f(0xc3)]&&_0x54151d!=='master'&&disableBranch(_0x54151d),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x54151d&&_0x54151d!==_0x458c3f(0xc7)&&_0x54151d!=='master'?_0x458c3f(0xbe)+_0x54151d+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
@@ -1 +1 @@
1
- (function(_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(_0x610912,_0x467594){const _0x4c5188=_0x60f6,_0x7b2927=_0x610912();while(!![]){try{const _0x1579ab=parseInt(_0x4c5188(0x1c5))/0x1*(parseInt(_0x4c5188(0x1c7))/0x2)+parseInt(_0x4c5188(0x1c0))/0x3+parseInt(_0x4c5188(0x1bd))/0x4*(parseInt(_0x4c5188(0x1bc))/0x5)+parseInt(_0x4c5188(0x1c9))/0x6*(parseInt(_0x4c5188(0x1cb))/0x7)+parseInt(_0x4c5188(0x1c6))/0x8+parseInt(_0x4c5188(0x1cc))/0x9*(parseInt(_0x4c5188(0x1c2))/0xa)+parseInt(_0x4c5188(0x1c8))/0xb*(-parseInt(_0x4c5188(0x1ca))/0xc);if(_0x1579ab===_0x467594)break;else _0x7b2927['push'](_0x7b2927['shift']());}catch(_0x46e127){_0x7b2927['push'](_0x7b2927['shift']());}}}(_0x3339,0x7b0a7));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x3339(){const _0x3ccb7e=['7817048fAjEMv','631252WdCwTa','82214ckRmoJ','5298852INuBfK','5460gHvEJo','7dWKMcg','1744731RpvESJ','master','25eANQVo','422940DtEzde','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','\x0a\x0a**Branch\x20\x27','543303wrTyRY','\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`.','20AdTPiw','aGwFU','dqYbJ','3sGWQkG'];_0x3339=function(){return _0x3ccb7e;};return _0x3339();}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x60f6(_0x54333b,_0x20c1f2){_0x54333b=_0x54333b-0x1bc;const _0x33399f=_0x3339();let _0x60f664=_0x33399f[_0x54333b];return _0x60f664;}import{update}from'../update.js';export async function enable(_0x438c88){const _0x140d03=_0x60f6,_0x318242={'tjQMP':'ranger\x20setup\x20--opencode','aGwFU':function(_0x3764fa){return _0x3764fa();},'dqYbJ':function(_0x330d3,_0x5bc2f1){return _0x330d3(_0x5bc2f1);},'iIWHj':function(_0x7c6a01,_0x205d08){return _0x7c6a01!==_0x205d08;},'bWVjS':_0x140d03(0x1cd)},_0x8004f7=_0x438c88||process['env']['CLAUDE_SESSION_ID']||'',_0x365050=Boolean(_0x438c88),_0x449987=await getToken();if(!_0x449987){const _0x45ac8b=_0x365050?_0x318242['tjQMP']:'ranger\x20setup',_0x38771a=_0x365050?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock('#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x45ac8b+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x38771a);return;}try{await _0x318242[_0x140d03(0x1c3)](update);}catch{}_0x8004f7&&_0x318242[_0x140d03(0x1c4)](enableSession,_0x8004f7);const _0x5af3ae=_0x318242[_0x140d03(0x1c3)](getCurrentBranch),_0x5dfd03=_0x5af3ae&&_0x5af3ae!=='main'&&_0x318242['iIWHj'](_0x5af3ae,_0x318242['bWVjS'])?_0x140d03(0x1bf)+_0x5af3ae+_0x140d03(0x1be):'',_0x15fc6d=_0x318242[_0x140d03(0x1c3)](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x5dfd03+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x15fc6d+_0x140d03(0x1c1));}
@@ -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(_0x5add8c,_0x3fdc98){const _0x50650a=_0x4a2e,_0x50abb1=_0x5add8c();while(!![]){try{const _0x598f8a=parseInt(_0x50650a(0x18f))/0x1+parseInt(_0x50650a(0x18d))/0x2*(parseInt(_0x50650a(0x191))/0x3)+parseInt(_0x50650a(0x18e))/0x4+-parseInt(_0x50650a(0x190))/0x5+-parseInt(_0x50650a(0x18b))/0x6+-parseInt(_0x50650a(0x18c))/0x7+parseInt(_0x50650a(0x18a))/0x8*(parseInt(_0x50650a(0x189))/0x9);if(_0x598f8a===_0x3fdc98)break;else _0x50abb1['push'](_0x50abb1['shift']());}catch(_0x4c2f3a){_0x50abb1['push'](_0x50abb1['shift']());}}}(_0x744d,0xd3cd1));import{printBlock,getEnabledSessionId}from'./output.js';function _0x4a2e(_0x2855e3,_0x464977){_0x2855e3=_0x2855e3-0x189;const _0x744df3=_0x744d();let _0x4a2ec8=_0x744df3[_0x2855e3];return _0x4a2ec8;}export async function exitPlanMode(_0x58be44){const _0x30cbfd=_0x4a2e,_0xa7abbe={'PWwqM':function(_0x26cf62,_0xafec4){return _0x26cf62(_0xafec4);}},_0x2503b1=await _0xa7abbe[_0x30cbfd(0x192)](getEnabledSessionId,_0x58be44);if(!_0x2503b1)return;_0xa7abbe['PWwqM'](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===');}function _0x744d(){const _0x199b6c=['743015GpeoYs','3151895fWALSW','104352ejZiVd','PWwqM','13977nQKqLy','6176fMgUtS','6928584oLSVSy','4884803txxrJG','2FCMjKs','5495176dmfqAU'];_0x744d=function(){return _0x199b6c;};return _0x744d();}
@@ -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(_0x573372,_0x4288b6){var _0x41ba2b=_0x22b5,_0x4803b0=_0x573372();while(!![]){try{var _0x3f6bfa=-parseInt(_0x41ba2b(0x1e5))/0x1+-parseInt(_0x41ba2b(0x1e2))/0x2*(-parseInt(_0x41ba2b(0x1e7))/0x3)+parseInt(_0x41ba2b(0x1ea))/0x4*(parseInt(_0x41ba2b(0x1e4))/0x5)+parseInt(_0x41ba2b(0x1e6))/0x6*(-parseInt(_0x41ba2b(0x1e1))/0x7)+parseInt(_0x41ba2b(0x1e9))/0x8*(parseInt(_0x41ba2b(0x1e3))/0x9)+parseInt(_0x41ba2b(0x1ec))/0xa+-parseInt(_0x41ba2b(0x1e8))/0xb*(parseInt(_0x41ba2b(0x1eb))/0xc);if(_0x3f6bfa===_0x4288b6)break;else _0x4803b0['push'](_0x4803b0['shift']());}catch(_0x49cd71){_0x4803b0['push'](_0x4803b0['shift']());}}}(_0x190d,0x57cc7));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';function _0x190d(){var _0x5dc564=['187nuAqxf','569816xMXLwW','4liITrq','1065804PhdzUF','5900890AycsJR','145187AjOhFk','6WYznfT','63KJiHEd','2298570GvEKxe','112306GvyUIs','78yelKHL','703059IWPyjD'];_0x190d=function(){return _0x5dc564;};return _0x190d();}function _0x22b5(_0x358099,_0x1c625a){_0x358099=_0x358099-0x1e1;var _0x190d10=_0x190d();var _0x22b563=_0x190d10[_0x358099];return _0x22b563;}export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';