@ranger-testing/ranger-cli 2.5.4-alpha.a70fc60-4 → 2.5.4-alpha.b28d3b1-14

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 (81) 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 -1
  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 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  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 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/legacyWarning.js +1 -0
  52. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  53. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  54. package/build/commands/utils/mcpImageBase64.js +1 -1
  55. package/build/commands/utils/model.js +1 -1
  56. package/build/commands/utils/opencodeConfig.js +1 -1
  57. package/build/commands/utils/playwrightCli.js +1 -1
  58. package/build/commands/utils/profileMessages.js +1 -1
  59. package/build/commands/utils/profileSetupBanner.js +1 -1
  60. package/build/commands/utils/projectsConfig.js +1 -1
  61. package/build/commands/utils/rangerConfig.js +1 -1
  62. package/build/commands/utils/rangerRoot.js +1 -1
  63. package/build/commands/utils/resolveProfileContext.js +1 -1
  64. package/build/commands/utils/resolveProfileUrl.js +1 -1
  65. package/build/commands/utils/retry.js +1 -1
  66. package/build/commands/utils/sessionCache.js +1 -1
  67. package/build/commands/utils/settings.js +1 -1
  68. package/build/commands/utils/skillContent.js +1 -1
  69. package/build/commands/utils/skills.js +1 -1
  70. package/build/commands/utils/stitchWebmFiles.js +1 -1
  71. package/build/commands/utils/telemetry.js +1 -1
  72. package/build/commands/utils/tokenRefresh.js +1 -1
  73. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  74. package/build/commands/utils/userApi.js +1 -1
  75. package/build/commands/utils/version.js +1 -1
  76. package/build/commands/verifyFeature.js +1 -1
  77. package/build/commands/verifyFeatureCli.js +1 -1
  78. package/build/skills/ranger/SKILL.md +25 -5
  79. package/build/skills/ranger/create.md +19 -0
  80. package/build/skills/ranger/verify.md +34 -7
  81. package/package.json +3 -2
@@ -1 +1 @@
1
- function _0x17b6(_0x2716a6,_0x26e4aa){_0x2716a6=_0x2716a6-0x18a;const _0x108db0=_0x108d();let _0x17b6f0=_0x108db0[_0x2716a6];return _0x17b6f0;}(function(_0xb3523,_0x2a41d5){const _0x2056f3=_0x17b6,_0x2d421a=_0xb3523();while(!![]){try{const _0x4aca13=parseInt(_0x2056f3(0x193))/0x1*(parseInt(_0x2056f3(0x19b))/0x2)+-parseInt(_0x2056f3(0x19c))/0x3*(parseInt(_0x2056f3(0x18b))/0x4)+parseInt(_0x2056f3(0x19d))/0x5+parseInt(_0x2056f3(0x197))/0x6*(parseInt(_0x2056f3(0x194))/0x7)+-parseInt(_0x2056f3(0x18c))/0x8+parseInt(_0x2056f3(0x18d))/0x9*(parseInt(_0x2056f3(0x18f))/0xa)+-parseInt(_0x2056f3(0x192))/0xb;if(_0x4aca13===_0x2a41d5)break;else _0x2d421a['push'](_0x2d421a['shift']());}catch(_0x80de34){_0x2d421a['push'](_0x2d421a['shift']());}}}(_0x108d,0x884b1));import{readFile,writeFile}from'fs/promises';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 _0x108d(){const _0x2b7900=['.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','2286oJRcFu','TvNjw','TLdHr','utf-8','199294InHUoE','1233219gedGyO','1973075bAafhG','auth.json','4ZUxEbd','8513672KbEQRf','9UYOiVO','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','9234530HwLCIC','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','5825787sMcUhG','11TkyiNP','2737BmjHoZ','log'];_0x108d=function(){return _0x2b7900;};return _0x108d();}export async function authEncrypt(_0x2a5ea0){const _0x1a05ab=_0x17b6,_0x3898eb={'TvNjw':function(_0x5b6fb0,_0xbb8caa,_0x1b3e04){return _0x5b6fb0(_0xbb8caa,_0x1b3e04);},'XyBNq':_0x1a05ab(0x18a),'TLdHr':function(_0x585275,_0x402048){return _0x585275(_0x402048);},'SOWPk':_0x1a05ab(0x18e),'YCsAM':function(_0x114bf9,_0x54fcd5){return _0x114bf9(_0x54fcd5);}},_0x432770=getEnvDir(_0x2a5ea0),_0x54ae9c=_0x3898eb[_0x1a05ab(0x198)](join,_0x432770,_0x3898eb['XyBNq']),_0x19628a=_0x54ae9c+'.enc';if(!existsSync(_0x432770))throw new Error('Profile\x20\x22'+_0x2a5ea0+_0x1a05ab(0x191)+_0x2a5ea0);if(!_0x3898eb[_0x1a05ab(0x199)](existsSync,_0x54ae9c))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x54ae9c+_0x1a05ab(0x196));const _0x3d0785=await getToken();if(!_0x3d0785)throw new Error(_0x1a05ab(0x190));const _0x46111d=await _0x3898eb['TvNjw'](readFile,_0x54ae9c,_0x1a05ab(0x19a)),_0xbb2e75=encrypt(_0x46111d,_0x3d0785);await writeFile(_0x19628a,_0xbb2e75),console['log']('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x19628a),console[_0x1a05ab(0x195)]('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x1a05ab(0x195)](_0x3898eb['SOWPk']),_0x3898eb['YCsAM'](existsSync,_0x19628a)&&(console['log']('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
1
+ function _0x12cb(_0x242691,_0x556460){_0x242691=_0x242691-0x1ca;var _0x17e23d=_0x17e2();var _0x12cb88=_0x17e23d[_0x242691];return _0x12cb88;}(function(_0x272052,_0x3036c0){var _0x1c03f6=_0x12cb,_0xba0678=_0x272052();while(!![]){try{var _0x113014=-parseInt(_0x1c03f6(0x1d3))/0x1*(-parseInt(_0x1c03f6(0x1d6))/0x2)+-parseInt(_0x1c03f6(0x1d8))/0x3*(parseInt(_0x1c03f6(0x1d9))/0x4)+parseInt(_0x1c03f6(0x1cc))/0x5*(-parseInt(_0x1c03f6(0x1cd))/0x6)+-parseInt(_0x1c03f6(0x1d4))/0x7+-parseInt(_0x1c03f6(0x1d1))/0x8*(-parseInt(_0x1c03f6(0x1ca))/0x9)+-parseInt(_0x1c03f6(0x1da))/0xa+parseInt(_0x1c03f6(0x1d7))/0xb;if(_0x113014===_0x3036c0)break;else _0xba0678['push'](_0xba0678['shift']());}catch(_0x63962){_0xba0678['push'](_0xba0678['shift']());}}}(_0x17e2,0xba1e4));function _0x17e2(){var _0x2120d8=['gcMwy','XaVrJ','8vkTpNB','Cloud\x20profiles\x20store\x20session\x20state\x20server-side;\x20encrypted\x20on-disk\x20auth\x20is\x20gone.\x0a','26Lauhsb','8465184Eatcpe','NWtvu','58564tFJmdw','24634698uKDyVR','148641PNsEon','4SdpcJz','3175110GzRMjP','4253589IACZcq','For\x20SSO/headed\x20login:\x20ranger\x20profile\x20add\x20<account-email>\x0a','5Ulgkwh','6808566UgVElC','\x20\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--base-url\x20<url>\x0a'];_0x17e2=function(){return _0x2120d8;};return _0x17e2();}export async function authEncrypt(_0x481478){var _0x2170e6=_0x12cb,_0x349791={'NWtvu':function(_0x5d2dd9,_0x4ab767){return _0x5d2dd9+_0x4ab767;},'gcMwy':function(_0x1d0e66,_0x4b2461){return _0x1d0e66+_0x4b2461;},'XaVrJ':'ranger\x20profile\x20encrypt-auth\x20writes\x20to\x20the\x20legacy\x20.ranger/ci/\x20tree\x20which\x20is\x20no\x20longer\x20supported.\x0a'};console['error'](_0x349791[_0x2170e6(0x1d5)](_0x349791[_0x2170e6(0x1d5)](_0x349791[_0x2170e6(0x1cf)](_0x349791[_0x2170e6(0x1d0)]+_0x2170e6(0x1d2),'Use\x20the\x20new\x20flow:\x0a'),_0x2170e6(0x1ce))+_0x2170e6(0x1cb),'See:\x20docs/feature/cloud-profiles-old-vs-new-structure.md')),process['exit'](0x1);}
@@ -1 +1 @@
1
- const _0x249cc1=_0x56d7;(function(_0x5740ad,_0x382294){const _0x133dc0=_0x56d7,_0x351552=_0x5740ad();while(!![]){try{const _0xbfd404=parseInt(_0x133dc0(0x1f0))/0x1*(parseInt(_0x133dc0(0x1ff))/0x2)+-parseInt(_0x133dc0(0x20e))/0x3+parseInt(_0x133dc0(0x1e2))/0x4+-parseInt(_0x133dc0(0x1f7))/0x5+parseInt(_0x133dc0(0x1de))/0x6+parseInt(_0x133dc0(0x1dc))/0x7*(parseInt(_0x133dc0(0x205))/0x8)+-parseInt(_0x133dc0(0x1f5))/0x9;if(_0xbfd404===_0x382294)break;else _0x351552['push'](_0x351552['shift']());}catch(_0xb0a315){_0x351552['push'](_0x351552['shift']());}}}(_0xb793,0x9435c));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';function _0x56d7(_0x66205e,_0xb9d310){_0x66205e=_0x66205e-0x1d7;const _0xb793dc=_0xb793();let _0x56d76c=_0xb793dc[_0x66205e];return _0x56d76c;}import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x249cc1(0x1fe),_0x249cc1(0x207),'bug-bash',_0x249cc1(0x1e5)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x2e1263){const _0x2b49ea=_0x249cc1,_0xb7fd46=_0x2e1263[_0x2b49ea(0x1f3)](/\/\*[\s\S]*?\*\//g,''),_0x3b937b=_0xb7fd46[_0x2b49ea(0x1f3)](/^\s*\/\/.*$/gm,''),_0x176ea6=_0x3b937b['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x176ea6);}async function removeOpencodePluginConfig(_0x4b91f7){const _0x1ebc36=_0x249cc1,_0xe0119d={'SqScJ':function(_0x2666ea,_0x262d4b){return _0x2666ea(_0x262d4b);},'GpSns':function(_0x374d7c,_0x2a836e,_0x25715b){return _0x374d7c(_0x2a836e,_0x25715b);},'ejTJQ':function(_0xaf65ff,_0x538568){return _0xaf65ff===_0x538568;}};if(!_0xe0119d[_0x1ebc36(0x1db)](existsSync,_0x4b91f7))return![];let _0x43d091;try{const _0x24c631=await _0xe0119d[_0x1ebc36(0x204)](readFile,_0x4b91f7,_0x1ebc36(0x1ee));_0x43d091=parseJsonc(_0x24c631);}catch{return![];}const _0x28801a=Array['isArray'](_0x43d091['plugin'])?_0x43d091[_0x1ebc36(0x1d8)]:[];if(_0xe0119d['ejTJQ'](_0x28801a[_0x1ebc36(0x1e8)],0x0))return![];const _0x45dffc=_0x28801a['filter'](_0x29d203=>{if(typeof _0x29d203!=='string')return!![];return _0x29d203!==opencodePluginName;});if(_0x45dffc['length']===_0x28801a[_0x1ebc36(0x1e8)])return![];return _0x45dffc['length']===0x0?delete _0x43d091[_0x1ebc36(0x1d8)]:_0x43d091['plugin']=_0x45dffc,await writeFile(_0x4b91f7,JSON[_0x1ebc36(0x1d9)](_0x43d091,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x33613b){const _0x50c74b=_0x249cc1,_0x3fbf5c={'SavWC':function(_0x57681b,_0x131525){return _0x57681b===_0x131525;},'EJxwH':function(_0x38c7db,_0x26cb05){return _0x38c7db(_0x26cb05);},'TqbNd':'plugin','VDZbL':'--scope','fwatL':function(_0x389395,_0x4b4d37,_0x2b9239,_0x1d7ca4){return _0x389395(_0x4b4d37,_0x2b9239,_0x1d7ca4);},'whYLM':_0x50c74b(0x1fc),'SkgBL':_0x50c74b(0x202)};return new Promise(_0x5318a8=>{const _0x1a1e97=_0x50c74b,_0x2fabd7=[_0x3fbf5c['TqbNd'],_0x1a1e97(0x208),'ranger@trailhead'];_0x33613b&&_0x2fabd7[_0x1a1e97(0x1ed)](_0x3fbf5c[_0x1a1e97(0x1dd)],_0x33613b);const _0x515938=_0x3fbf5c['fwatL'](spawn,'claude',_0x2fabd7,{'stdio':_0x3fbf5c['whYLM'],'shell':process[_0x1a1e97(0x1ef)]===_0x1a1e97(0x1ec)});_0x515938['on'](_0x3fbf5c['SkgBL'],_0x1e7cb2=>{_0x5318a8(_0x3fbf5c['SavWC'](_0x1e7cb2,0x0));}),_0x515938['on'](_0x1a1e97(0x1e4),()=>{const _0x2f5b4a=_0x1a1e97;_0x3fbf5c[_0x2f5b4a(0x20a)](_0x5318a8,![]);});});}async function removeMarketplace(){const _0x5af955=_0x249cc1,_0x1bbff9={'QLTDE':function(_0x5b173a,_0x17fc02){return _0x5b173a(_0x17fc02);},'KiIcS':function(_0x3ec9ff,_0x3784da,_0x1756be,_0x4da686){return _0x3ec9ff(_0x3784da,_0x1756be,_0x4da686);},'jCvNR':'claude','rdufh':_0x5af955(0x1d8),'RQrZK':_0x5af955(0x1fa),'bXMmu':_0x5af955(0x202),'fvdWq':'error'};return new Promise(_0x30f547=>{const _0x482143=_0x5af955,_0x1d8f8b=_0x1bbff9['KiIcS'](spawn,_0x1bbff9['jCvNR'],[_0x1bbff9[_0x482143(0x200)],_0x482143(0x1e1),'remove',_0x1bbff9[_0x482143(0x1e3)]],{'stdio':_0x482143(0x1fc),'shell':process['platform']==='win32'});_0x1d8f8b['on'](_0x1bbff9[_0x482143(0x203)],_0x40c9eb=>{const _0x28ba19=_0x482143;_0x1bbff9[_0x28ba19(0x1df)](_0x30f547,_0x40c9eb===0x0);}),_0x1d8f8b['on'](_0x1bbff9[_0x482143(0x210)],()=>{_0x30f547(![]);});});}function _0xb793(){const _0x1e5102=['odqvj','length','brxtB','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','HoHaP','win32','push','utf-8','platform','1xUVNwK','mHUPK','✓\x20Removed\x20.ranger/\x20directory','replace','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','3389220YGzZVY','bicth','1878285PmpWJY','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','trailhead','DMhmA','pipe','XdDiE','ranger','322226JbjVmL','rdufh','project','close','bXMmu','GpSns','96PfgkKd','ivCOp','feature-tracker','uninstall','VVasK','EJxwH','rHbrt','✓\x20Removed\x20user\x20skill:\x20','\x0a✅\x20Cleanup\x20complete!\x0a','1823733BbuBQA','✓\x20Removed\x20trailhead\x20marketplace','fvdWq','opencode.json','✓\x20Removed\x20project\x20skill:\x20','user','plugin','stringify','log','SqScJ','535927ItnFYd','VDZbL','537348gmJYGl','QLTDE','fnCMf','marketplace','3191252lHxNJr','RQrZK','error','e2e-test-recommender','✓\x20Removed\x20stored\x20credentials'];_0xb793=function(){return _0x1e5102;};return _0xb793();}export async function clean(){const _0x127743=_0x249cc1,_0x370f19={'OlOPl':_0x127743(0x1f9),'mHUPK':function(_0xb8e0b5){return _0xb8e0b5();},'HHjnq':function(_0x5dbbea,_0x13a405){return _0x5dbbea(_0x13a405);},'VVasK':function(_0x333411,_0x142089){return _0x333411(_0x142089);},'brxtB':function(_0x21a20a,_0x13d29e,_0x4cad02){return _0x21a20a(_0x13d29e,_0x4cad02);},'fnCMf':function(_0x537fe0,_0x39a8df,_0x4cf3bb){return _0x537fe0(_0x39a8df,_0x4cf3bb);},'HrgRW':function(_0x4766fd,_0xb259cc){return _0x4766fd(_0xb259cc);},'HoHaP':function(_0x34d4c5,_0x2e5362,_0x2593da){return _0x34d4c5(_0x2e5362,_0x2593da);},'UmkbX':function(_0x196d03,_0x2cc86b,_0xd375ba){return _0x196d03(_0x2cc86b,_0xd375ba);},'DMhmA':function(_0x32c80d,_0x475cf2,_0xaaf82d){return _0x32c80d(_0x475cf2,_0xaaf82d);},'rHbrt':function(_0xf0ff50,_0x5654f7){return _0xf0ff50(_0x5654f7);},'sSrcY':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','XdDiE':'user','ivCOp':_0x127743(0x1f4),'RsVeW':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','odqvj':function(_0x2f2865){return _0x2f2865();},'bicth':_0x127743(0x20f)};console[_0x127743(0x1da)](_0x370f19['OlOPl']);let _0x22e0c9=![];try{await _0x370f19['mHUPK'](deleteAllCredentials),console[_0x127743(0x1da)](_0x127743(0x1e6)),_0x22e0c9=!![];}catch{}const _0x36e33b=_0x370f19[_0x127743(0x1f1)](getCacheFile);_0x370f19['HHjnq'](existsSync,_0x36e33b)&&(await _0x370f19[_0x127743(0x209)](rm,_0x36e33b),_0x22e0c9=!![]);const _0x12de9d=getRangerDir();existsSync(_0x12de9d)&&(await _0x370f19['brxtB'](rm,_0x12de9d,{'recursive':!![]}),console[_0x127743(0x1da)](_0x127743(0x1f2)),_0x22e0c9=!![]);const _0x3d5630=_0x370f19['mHUPK'](getProjectSkillsDir);for(const _0x16e267 of skillsToRemove){const _0x101307=join(_0x3d5630,_0x16e267);existsSync(_0x101307)&&(await _0x370f19[_0x127743(0x1e9)](rm,_0x101307,{'recursive':!![]}),console['log'](_0x127743(0x212)+_0x16e267),_0x22e0c9=!![]);}const _0x17e8f4=_0x370f19[_0x127743(0x1f1)](getUserSkillsDir);for(const _0x619cd of skillsToRemove){const _0x58158a=_0x370f19[_0x127743(0x1e0)](join,_0x17e8f4,_0x619cd);existsSync(_0x58158a)&&(await _0x370f19['brxtB'](rm,_0x58158a,{'recursive':!![]}),console['log'](_0x127743(0x20c)+_0x619cd),_0x22e0c9=!![]);}const _0x5b2048=_0x370f19['HrgRW'](getOpencodeSkillsDir,_0x127743(0x201));for(const _0x165231 of skillsToRemove){const _0x1dcf2a=_0x370f19[_0x127743(0x1eb)](join,_0x5b2048,_0x165231);existsSync(_0x1dcf2a)&&(await _0x370f19['UmkbX'](rm,_0x1dcf2a,{'recursive':!![]}),console[_0x127743(0x1da)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x165231),_0x22e0c9=!![]);}const _0x1c0f69=getOpencodeSkillsDir(_0x127743(0x1d7));for(const _0x2c5703 of skillsToRemove){const _0xc3ee17=_0x370f19[_0x127743(0x1e9)](join,_0x1c0f69,_0x2c5703);existsSync(_0xc3ee17)&&(await _0x370f19[_0x127743(0x1fb)](rm,_0xc3ee17,{'recursive':!![]}),console[_0x127743(0x1da)](_0x127743(0x1f8)+_0x2c5703),_0x22e0c9=!![]);}const _0x37eb63=join(getOpencodeConfigDir('project'),_0x127743(0x211));await _0x370f19[_0x127743(0x20b)](removeOpencodePluginConfig,_0x37eb63)&&(console[_0x127743(0x1da)](_0x370f19['sSrcY']),_0x22e0c9=!![]);const _0x481901=join(getOpencodeConfigDir(_0x370f19[_0x127743(0x1fd)]),_0x127743(0x211));await removeOpencodePluginConfig(_0x481901)&&(console[_0x127743(0x1da)](_0x370f19[_0x127743(0x206)]),_0x22e0c9=!![]);const _0x1e1ec9=await uninstallClaudePlugin();_0x1e1ec9&&(console['log'](_0x370f19['RsVeW']),_0x22e0c9=!![]);const _0x5b5a41=await uninstallClaudePlugin('project');_0x5b5a41&&(console['log'](_0x127743(0x1ea)),_0x22e0c9=!![]);const _0x301b2e=await _0x370f19[_0x127743(0x1e7)](removeMarketplace);_0x301b2e&&(console[_0x127743(0x1da)](_0x370f19[_0x127743(0x1f6)]),_0x22e0c9=!![]),_0x22e0c9?console[_0x127743(0x1da)](_0x127743(0x20d)):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}
1
+ const _0x51f476=_0x1694;(function(_0x262133,_0x3b4dde){const _0x194ddd=_0x1694,_0x2100a0=_0x262133();while(!![]){try{const _0x5ea123=parseInt(_0x194ddd(0xfa))/0x1*(parseInt(_0x194ddd(0x102))/0x2)+-parseInt(_0x194ddd(0xe9))/0x3*(parseInt(_0x194ddd(0x115))/0x4)+parseInt(_0x194ddd(0xf3))/0x5+-parseInt(_0x194ddd(0xfe))/0x6+-parseInt(_0x194ddd(0x105))/0x7*(parseInt(_0x194ddd(0xf8))/0x8)+parseInt(_0x194ddd(0x104))/0x9+-parseInt(_0x194ddd(0x116))/0xa*(-parseInt(_0x194ddd(0x120))/0xb);if(_0x5ea123===_0x3b4dde)break;else _0x2100a0['push'](_0x2100a0['shift']());}catch(_0x79da41){_0x2100a0['push'](_0x2100a0['shift']());}}}(_0x2d05,0xd8170));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{getProjectRoot,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','feature-tracker','bug-bash',_0x51f476(0xfb)],opencodePluginName=_0x51f476(0x111);function _0x2d05(){const _0x4d3a7a=['WDndd','cGAnk','iFgyG','Xwcwq','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','3729CYURDp','stringify','isArray','1093644tfMsQy','CwsYe','afeAu','project','ignore','plugin','win32','qPrRp','Vvbyv','claude','7543805DAFOEL','QbuRG','✓\x20Removed\x20stored\x20credentials','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','length','2539912FOHbQy','tNkuH','127433nGSQiC','e2e-test-recommender','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','platform','5177484BpMjRW','string','✓\x20Removed\x20trailhead\x20marketplace','oitEZ','2srgzvg','filter','11085255rMZzkP','35RTcnHl','trailhead','opencode.json','bLiuG','error','log','wvrPr','replace','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','KvfHV','--scope','MRxkm','@ranger-testing/opencode-plugin','moBAt','hLdog','✓\x20Removed\x20project\x20skill:\x20','8ZSqHOH','35300pbUNRt','\x0a✅\x20Cleanup\x20complete!\x0a','qxoqW','aBjtF','dtPLI'];_0x2d05=function(){return _0x4d3a7a;};return _0x2d05();}function _0x1694(_0x571b4f,_0x2e7df1){_0x571b4f=_0x571b4f-0xe7;const _0x2d051d=_0x2d05();let _0x16948f=_0x2d051d[_0x571b4f];return _0x16948f;}function parseJsonc(_0x26ae19){const _0x340a49=_0x51f476,_0x10bfb9=_0x26ae19[_0x340a49(0x10c)](/\/\*[\s\S]*?\*\//g,''),_0x58408d=_0x10bfb9[_0x340a49(0x10c)](/^\s*\/\/.*$/gm,''),_0x5c0081=_0x58408d[_0x340a49(0x10c)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x5c0081);}async function removeOpencodePluginConfig(_0x364004){const _0x41f930=_0x51f476,_0x1efb90={'WDndd':_0x41f930(0xff),'tNkuH':function(_0x9f1d88,_0x100ea3){return _0x9f1d88(_0x100ea3);},'Vvbyv':function(_0x342937,_0x2da2d7,_0x546452){return _0x342937(_0x2da2d7,_0x546452);},'QbuRG':'utf-8','NnHUP':function(_0x19ae49,_0x9af746){return _0x19ae49(_0x9af746);},'KvfHV':function(_0x35cb7f,_0x5998df){return _0x35cb7f===_0x5998df;},'VmuQl':function(_0x468bc7,_0x5a2f42){return _0x468bc7===_0x5a2f42;}};if(!_0x1efb90[_0x41f930(0xf9)](existsSync,_0x364004))return![];let _0x5e610f;try{const _0x56f4d5=await _0x1efb90[_0x41f930(0xf1)](readFile,_0x364004,_0x1efb90[_0x41f930(0xf4)]);_0x5e610f=_0x1efb90['NnHUP'](parseJsonc,_0x56f4d5);}catch{return![];}const _0x3cb883=Array[_0x41f930(0xe8)](_0x5e610f[_0x41f930(0xee)])?_0x5e610f['plugin']:[];if(_0x1efb90['KvfHV'](_0x3cb883['length'],0x0))return![];const _0x16f312=_0x3cb883[_0x41f930(0x103)](_0x56de3a=>{const _0xe338d8=_0x41f930;if(typeof _0x56de3a!==_0x1efb90[_0xe338d8(0x11b)])return!![];return _0x56de3a!==opencodePluginName;});if(_0x1efb90[_0x41f930(0x10e)](_0x16f312['length'],_0x3cb883[_0x41f930(0xf7)]))return![];return _0x1efb90['VmuQl'](_0x16f312[_0x41f930(0xf7)],0x0)?delete _0x5e610f[_0x41f930(0xee)]:_0x5e610f[_0x41f930(0xee)]=_0x16f312,await _0x1efb90['Vvbyv'](writeFile,_0x364004,JSON[_0x41f930(0xe7)](_0x5e610f,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x512d10){const _0x33d8cf=_0x51f476,_0x440feb={'yixvM':function(_0x18e565,_0x22315c){return _0x18e565(_0x22315c);},'qxoqW':'ranger@trailhead','kEtyQ':_0x33d8cf(0x10f),'kjPhs':_0x33d8cf(0xf2),'aBjtF':'ignore'};return new Promise(_0x13e28a=>{const _0x343a1e=_0x33d8cf,_0x41229f=[_0x343a1e(0xee),'uninstall',_0x440feb[_0x343a1e(0x118)]];_0x512d10&&_0x41229f['push'](_0x440feb['kEtyQ'],_0x512d10);const _0x45e596=spawn(_0x440feb['kjPhs'],_0x41229f,{'stdio':[_0x440feb[_0x343a1e(0x119)],_0x343a1e(0xed),'ignore'],'cwd':_0x512d10?getProjectRoot():undefined,'shell':process[_0x343a1e(0xfd)]===_0x343a1e(0xef)});_0x45e596['on']('close',_0x25a34c=>{_0x440feb['yixvM'](_0x13e28a,_0x25a34c===0x0);}),_0x45e596['on'](_0x343a1e(0x109),()=>{_0x13e28a(![]);});});}async function removeMarketplace(){const _0x313b55=_0x51f476,_0x33e72e={'afeAu':function(_0x62b16a,_0x35d06d){return _0x62b16a===_0x35d06d;},'qPrRp':'plugin','wvrPr':'remove','meGEN':_0x313b55(0x106),'oitEZ':'ignore','moBAt':function(_0x260960,_0x287bf9){return _0x260960===_0x287bf9;},'yvbsv':'close','jNUff':_0x313b55(0x109)};return new Promise(_0x186588=>{const _0x10e9b7=_0x313b55,_0x118264=spawn('claude',[_0x33e72e[_0x10e9b7(0xf0)],'marketplace',_0x33e72e[_0x10e9b7(0x10b)],_0x33e72e['meGEN']],{'stdio':[_0x33e72e[_0x10e9b7(0x101)],_0x33e72e[_0x10e9b7(0x101)],_0x33e72e['oitEZ']],'shell':_0x33e72e[_0x10e9b7(0x112)](process[_0x10e9b7(0xfd)],_0x10e9b7(0xef))});_0x118264['on'](_0x33e72e['yvbsv'],_0xcbe7c9=>{const _0x1ed387=_0x10e9b7;_0x186588(_0x33e72e[_0x1ed387(0xeb)](_0xcbe7c9,0x0));}),_0x118264['on'](_0x33e72e['jNUff'],()=>{_0x186588(![]);});});}export async function clean(){const _0x24e1e6=_0x51f476,_0x334a64={'NLTHd':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','wkcmV':function(_0x5133bb){return _0x5133bb();},'rzyrN':_0x24e1e6(0xf5),'dtPLI':function(_0x56a0bf,_0x538a93){return _0x56a0bf(_0x538a93);},'cEITL':function(_0x509614){return _0x509614();},'hLdog':function(_0x1c06f5,_0x1df421,_0x3940fc){return _0x1c06f5(_0x1df421,_0x3940fc);},'ndZTT':function(_0x463865,_0x2b2878,_0x3119ec){return _0x463865(_0x2b2878,_0x3119ec);},'CwsYe':function(_0x1b8f54,_0x3ac11d){return _0x1b8f54(_0x3ac11d);},'MRxkm':'user','VtImY':_0x24e1e6(0xf6),'bLiuG':function(_0x1294b9,_0x3445fe,_0xbd6834){return _0x1294b9(_0x3445fe,_0xbd6834);},'rUvjN':_0x24e1e6(0x107),'qZNdN':function(_0x443ff3,_0x26bed3){return _0x443ff3(_0x26bed3);},'Xwcwq':_0x24e1e6(0x10d),'cGAnk':_0x24e1e6(0xec),'uvJeM':function(_0xd759dc){return _0xd759dc();},'UkMzx':_0x24e1e6(0x117),'iFgyG':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x334a64['NLTHd']);let _0x4123ae=![];try{await _0x334a64['wkcmV'](deleteAllCredentials),console[_0x24e1e6(0x10a)](_0x334a64['rzyrN']),_0x4123ae=!![];}catch{}const _0x2c4947=getCacheFile();existsSync(_0x2c4947)&&(await _0x334a64['dtPLI'](rm,_0x2c4947),_0x4123ae=!![]);const _0x30d8d2=_0x334a64['cEITL'](getRangerDir);existsSync(_0x30d8d2)&&(await rm(_0x30d8d2,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x4123ae=!![]);const _0xebd0ff=getProjectSkillsDir();for(const _0x42d10e of skillsToRemove){const _0x75f46f=join(_0xebd0ff,_0x42d10e);existsSync(_0x75f46f)&&(await rm(_0x75f46f,{'recursive':!![]}),console[_0x24e1e6(0x10a)](_0x24e1e6(0x114)+_0x42d10e),_0x4123ae=!![]);}const _0x5c1bc1=getUserSkillsDir();for(const _0x3f7573 of skillsToRemove){const _0x8a3d10=_0x334a64[_0x24e1e6(0x113)](join,_0x5c1bc1,_0x3f7573);_0x334a64[_0x24e1e6(0x11a)](existsSync,_0x8a3d10)&&(await rm(_0x8a3d10,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x3f7573),_0x4123ae=!![]);}const _0x30fc5b=_0x334a64['dtPLI'](getOpencodeSkillsDir,'project');for(const _0x63a091 of skillsToRemove){const _0x59af2c=_0x334a64['ndZTT'](join,_0x30fc5b,_0x63a091);_0x334a64['dtPLI'](existsSync,_0x59af2c)&&(await rm(_0x59af2c,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x63a091),_0x4123ae=!![]);}const _0x10ec15=_0x334a64[_0x24e1e6(0xea)](getOpencodeSkillsDir,_0x334a64[_0x24e1e6(0x110)]);for(const _0x260518 of skillsToRemove){const _0x199282=join(_0x10ec15,_0x260518);_0x334a64['CwsYe'](existsSync,_0x199282)&&(await rm(_0x199282,{'recursive':!![]}),console[_0x24e1e6(0x10a)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x260518),_0x4123ae=!![]);}const _0x325028=join(getOpencodeConfigDir(_0x24e1e6(0xec)),_0x24e1e6(0x107));await removeOpencodePluginConfig(_0x325028)&&(console['log'](_0x334a64['VtImY']),_0x4123ae=!![]);const _0x57789c=_0x334a64[_0x24e1e6(0x108)](join,_0x334a64[_0x24e1e6(0x11a)](getOpencodeConfigDir,_0x334a64[_0x24e1e6(0x110)]),_0x334a64['rUvjN']);await _0x334a64['qZNdN'](removeOpencodePluginConfig,_0x57789c)&&(console['log'](_0x334a64[_0x24e1e6(0x11e)]),_0x4123ae=!![]);const _0x25b703=await _0x334a64['cEITL'](uninstallClaudePlugin);_0x25b703&&(console['log'](_0x24e1e6(0xfc)),_0x4123ae=!![]);const _0x2a3733=await uninstallClaudePlugin(_0x334a64[_0x24e1e6(0x11c)]);_0x2a3733&&(console[_0x24e1e6(0x10a)](_0x24e1e6(0x11f)),_0x4123ae=!![]);const _0x4f3681=await _0x334a64['uvJeM'](removeMarketplace);_0x4f3681&&(console['log'](_0x24e1e6(0x100)),_0x4123ae=!![]),_0x4123ae?console[_0x24e1e6(0x10a)](_0x334a64['UkMzx']):console['log'](_0x334a64[_0x24e1e6(0x11d)]);}
@@ -1 +1 @@
1
- const _0x31d297=_0x43b2;(function(_0x5367d7,_0x4809ae){const _0x1ada3d=_0x43b2,_0x177f83=_0x5367d7();while(!![]){try{const _0x251c35=-parseInt(_0x1ada3d(0xb0))/0x1+parseInt(_0x1ada3d(0xc1))/0x2+parseInt(_0x1ada3d(0xb4))/0x3+-parseInt(_0x1ada3d(0x9e))/0x4+parseInt(_0x1ada3d(0xb1))/0x5*(-parseInt(_0x1ada3d(0xbb))/0x6)+parseInt(_0x1ada3d(0x9f))/0x7*(-parseInt(_0x1ada3d(0xc5))/0x8)+parseInt(_0x1ada3d(0xa8))/0x9;if(_0x251c35===_0x4809ae)break;else _0x177f83['push'](_0x177f83['shift']());}catch(_0x236ea8){_0x177f83['push'](_0x177f83['shift']());}}}(_0x1e78,0xcc00b));import{existsSync}from'fs';function _0x1e78(){const _0xa77e4c=['854618HKRCiJ','175zEoOTe','kuwBZ','EUcOS','3531468hyBABk','wqWqR','cGhnM','isNaN','WElqQ','log','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','62838WWyAnh','Invalid\x20value\x20for\x20','keys','test','OgxFV','fZTUG','692070IQCMmt','Fyvur','headless','endsWith','645896uXnYIo','\x20for\x20\x22','No\x20configuration\x20set\x20for\x20\x22','allowInsecureLocalhost','Hfpfp','BLuMJ','Cleared\x20local\x20overrides\x20for\x20\x22','trim','LObfw','cloud','alsoExistsElsewhere','1805632jcMbTp','105freWrj','local','true','kind','startsWith','settings','object','stringify','uOmYQ','19764360RegMUl','fbAwk','parse','(not\x20set)','\x20\x20Note:\x20\x22','Removed\x20','\x20=\x20','FSuNJ'];_0x1e78=function(){return _0xa77e4c;};return _0x1e78();}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=[_0x31d297(0xc3),_0x31d297(0xc8)];function parseLocalValue(_0x190094,_0x1abed6){const _0x4a46ee=_0x31d297,_0x1c4535={'VYovc':function(_0x362399,_0x1f9f9a){return _0x362399===_0x1f9f9a;},'BLuMJ':_0x4a46ee(0xa1),'wqWqR':function(_0x284b5c,_0x5ceaeb){return _0x284b5c===_0x5ceaeb;},'WvGHr':'false'};if(BOOLEAN_KEYS['includes'](_0x190094)){if(_0x1c4535['VYovc'](_0x1abed6,_0x1c4535[_0x4a46ee(0xca)]))return!![];if(_0x1c4535[_0x4a46ee(0xb5)](_0x1abed6,_0x1c4535['WvGHr']))return![];throw new Error(_0x4a46ee(0xbc)+_0x190094+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x1abed6;}function parseOverrideValue(_0x23078f){const _0x1e6be6=_0x31d297,_0x6032ad={'kuwBZ':function(_0x343e62,_0x21e8e0){return _0x343e62===_0x21e8e0;},'iHDod':'false','kXVfa':'null','ijvdN':function(_0x4eabac,_0xc4b9ae){return _0x4eabac===_0xc4b9ae;},'XwUQW':'undefined','uLcgd':function(_0x5886ed,_0x5a1cac){return _0x5886ed(_0x5a1cac);},'iQAUg':function(_0x56bd16,_0x2d0eb0){return _0x56bd16(_0x2d0eb0);}};if(_0x6032ad[_0x1e6be6(0xb2)](_0x23078f,'true'))return!![];if(_0x23078f===_0x6032ad['iHDod'])return![];if(_0x6032ad[_0x1e6be6(0xb2)](_0x23078f,_0x6032ad['kXVfa']))return null;if(_0x6032ad['ijvdN'](_0x23078f,_0x6032ad['XwUQW']))return undefined;if(/^-?\d+$/['test'](_0x23078f)){const _0x188f70=_0x6032ad['uLcgd'](Number,_0x23078f);if(Number['isSafeInteger'](_0x188f70))return _0x188f70;}if(/^-?\d+\.\d+$/[_0x1e6be6(0xbe)](_0x23078f)){const _0x45a022=_0x6032ad['iQAUg'](Number,_0x23078f);if(!Number[_0x1e6be6(0xb7)](_0x45a022))return _0x45a022;}const _0x1963e3=_0x23078f[_0x1e6be6(0xcc)]();if(_0x1963e3['startsWith']('{')&&_0x1963e3[_0x1e6be6(0xc4)]('}')||_0x1963e3[_0x1e6be6(0xa3)]('[')&&_0x1963e3[_0x1e6be6(0xc4)](']'))try{return JSON[_0x1e6be6(0xaa)](_0x1963e3);}catch{}return _0x23078f;}async function resolveProfileTarget(_0x33e501){const _0x39a6fd=_0x31d297,_0x4dda4c={'ICoxi':function(_0x3ae0bc,_0x5dc947){return _0x3ae0bc(_0x5dc947);},'Fyvur':function(_0x2e617a,_0x219d1a){return _0x2e617a(_0x219d1a);},'oZNut':function(_0x22796c,_0x59e7a0){return _0x22796c(_0x59e7a0);},'VhWZC':_0x39a6fd(0xa0)},_0x1e56e4=_0x4dda4c['ICoxi'](existsSync,_0x4dda4c[_0x39a6fd(0xc2)](getEnvDir,_0x33e501));let _0x5cdb07=![];try{const _0xfd4239=await fetchCloudProfile(_0x33e501);_0x5cdb07=_0x4dda4c['oZNut'](Boolean,_0xfd4239);}catch{}if(_0x5cdb07)return{'kind':'cloud','alsoExistsElsewhere':_0x1e56e4};if(_0x1e56e4)return{'kind':_0x4dda4c['VhWZC'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x33e501+_0x39a6fd(0xba)+_0x33e501);}function _0x43b2(_0x37da2e,_0x409a31){_0x37da2e=_0x37da2e-0x9e;const _0x1e7897=_0x1e78();let _0x43b2f2=_0x1e7897[_0x37da2e];return _0x43b2f2;}function printDualExistsHint(_0x409beb){const _0x92096b=_0x31d297;console['log'](_0x92096b(0xac)+_0x409beb+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x423e01){const _0x59b465=_0x31d297,_0x1b2256={'pNuQr':function(_0x1dfba6,_0x3fd712){return _0x1dfba6(_0x3fd712);},'fZTUG':function(_0x1d93a9,_0x36cf8a,_0x315b80){return _0x1d93a9(_0x36cf8a,_0x315b80);},'fbAwk':function(_0x4513b0){return _0x4513b0();}},_0x508618=await _0x1b2256['pNuQr'](fetchCloudProfile,_0x423e01),_0x6a6255=_0x1b2256[_0x59b465(0xc0)](readProfileOverrides,_0x1b2256[_0x59b465(0xa9)](getProjectPath),_0x423e01);return _0x1b2256['fZTUG'](mergeCloudProfileSettings,_0x508618?.[_0x59b465(0xa4)]??{},_0x6a6255??undefined);}export async function configSet(_0x5c8fa4,_0x20116b,_0x39fdce){const _0x35ad96=_0x31d297,_0x1bd163={'ouQaF':function(_0x2781c9,_0x302342){return _0x2781c9(_0x302342);},'UOxWC':'cloud','WElqQ':function(_0x54716e,_0x5170fc,_0x1b6f18,_0x39e7d7,_0x4e5851){return _0x54716e(_0x5170fc,_0x1b6f18,_0x39e7d7,_0x4e5851);},'OgxFV':function(_0x45042e){return _0x45042e();},'uOmYQ':function(_0x17776b,_0x2fdde7,_0xf06a6){return _0x17776b(_0x2fdde7,_0xf06a6);}},_0x2f94a4=await _0x1bd163['ouQaF'](resolveProfileTarget,_0x5c8fa4);if(_0x2f94a4['kind']===_0x1bd163['UOxWC']){if(_0x2f94a4[_0x35ad96(0xcf)])printDualExistsHint(_0x5c8fa4);const _0x6665c4=parseOverrideValue(_0x39fdce);_0x1bd163[_0x35ad96(0xb8)](setProfileOverride,_0x1bd163[_0x35ad96(0xbf)](getProjectPath),_0x5c8fa4,_0x20116b,_0x6665c4),console[_0x35ad96(0xb9)]('Set\x20'+_0x20116b+_0x35ad96(0xae)+JSON['stringify'](_0x6665c4)+'\x20for\x20\x22'+_0x5c8fa4+'\x22');return;}const _0x4ce4a9=await loadSettings(_0x5c8fa4),_0x4244a6=parseLocalValue(_0x20116b,_0x39fdce);setNestedValue(_0x4ce4a9,_0x20116b,_0x4244a6),await _0x1bd163[_0x35ad96(0xa7)](saveSettings,_0x5c8fa4,_0x4ce4a9),console[_0x35ad96(0xb9)]('Set\x20'+_0x20116b+'\x20=\x20'+_0x4244a6+_0x35ad96(0xc6)+_0x5c8fa4+'\x22');}export async function configGet(_0x53812d,_0x2e309d){const _0x56dee3=_0x31d297,_0x2b65c8={'QyQqG':function(_0x2aa62f,_0x2db3b5){return _0x2aa62f===_0x2db3b5;},'iereK':'cloud','FtSEe':function(_0x53d801,_0x5c1e1f){return _0x53d801===_0x5c1e1f;},'dlNyA':function(_0x458bf0,_0x387248,_0x17f7a3){return _0x458bf0(_0x387248,_0x17f7a3);},'rQFJj':function(_0x35b435,_0x53629f){return _0x35b435===_0x53629f;},'cGhnM':_0x56dee3(0xa5)},_0x547365=await resolveProfileTarget(_0x53812d);if(_0x2b65c8['QyQqG'](_0x547365['kind'],_0x2b65c8['iereK'])){const _0x3d0dca=await loadEffectiveCloudSettings(_0x53812d),_0x5dd8e7=getNestedValue(_0x3d0dca,_0x2e309d);if(_0x2b65c8['FtSEe'](_0x5dd8e7,undefined))console['log'](_0x56dee3(0xab));else _0x2b65c8['FtSEe'](typeof _0x5dd8e7,_0x56dee3(0xa5))?console['log'](JSON[_0x56dee3(0xa6)](_0x5dd8e7,null,0x2)):console['log'](_0x5dd8e7);return;}const _0xde9398=await loadSettings(_0x53812d),_0x53b506=_0x2b65c8['dlNyA'](getNestedValue,_0xde9398,_0x2e309d);if(_0x2b65c8['rQFJj'](_0x53b506,undefined))console[_0x56dee3(0xb9)](_0x56dee3(0xab));else typeof _0x53b506===_0x2b65c8[_0x56dee3(0xb6)]?console['log'](JSON[_0x56dee3(0xa6)](_0x53b506,null,0x2)):console['log'](_0x53b506);}export async function configList(_0x2f00ef){const _0x588728=_0x31d297,_0x44c4fa={'FSuNJ':function(_0x391b41,_0x46326c){return _0x391b41(_0x46326c);},'tZAmg':'cloud','KYDil':function(_0x491ae2,_0x382363){return _0x491ae2(_0x382363);},'aFeeh':function(_0x21723b,_0x40669a){return _0x21723b(_0x40669a);}},_0x15cc60=await _0x44c4fa[_0x588728(0xaf)](resolveProfileTarget,_0x2f00ef);if(_0x15cc60[_0x588728(0xa2)]===_0x44c4fa['tZAmg']){const _0x281540=await _0x44c4fa['KYDil'](loadEffectiveCloudSettings,_0x2f00ef);if(!_0x281540||Object[_0x588728(0xbd)](_0x281540)['length']===0x0){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x2f00ef+'\x22');return;}console['log'](JSON['stringify'](_0x281540,null,0x2));return;}const _0x330684=_0x44c4fa['FSuNJ'](getSettingsPath,_0x2f00ef);if(!_0x44c4fa[_0x588728(0xaf)](existsSync,_0x330684)){console[_0x588728(0xb9)](_0x588728(0xc7)+_0x2f00ef+'\x22');return;}const _0x48c362=await loadSettings(_0x2f00ef),_0x34b210=_0x44c4fa['aFeeh'](formatSettings,_0x48c362);!_0x34b210?console[_0x588728(0xb9)](_0x588728(0xc7)+_0x2f00ef+'\x22'):console[_0x588728(0xb9)](_0x34b210);}export async function configUnset(_0x3c63c4,_0x5cbcf6){const _0x9ee4b=_0x31d297,_0x5d1523={'Hfpfp':function(_0x1df866,_0x3bad5f){return _0x1df866(_0x3bad5f);},'EUcOS':'cloud','kgvKe':function(_0xfe9199,_0x5ad5f5,_0x550e80,_0x3bfe31){return _0xfe9199(_0x5ad5f5,_0x550e80,_0x3bfe31);},'tSmYr':function(_0x3cded7){return _0x3cded7();}},_0x36f957=await _0x5d1523[_0x9ee4b(0xc9)](resolveProfileTarget,_0x3c63c4);if(_0x36f957['kind']===_0x5d1523[_0x9ee4b(0xb3)]){if(_0x36f957['alsoExistsElsewhere'])printDualExistsHint(_0x3c63c4);const _0x476187=_0x5d1523['kgvKe'](unsetProfileOverride,_0x5d1523['tSmYr'](getProjectPath),_0x3c63c4,_0x5cbcf6);_0x476187?console[_0x9ee4b(0xb9)]('Removed\x20'+_0x5cbcf6+_0x9ee4b(0xc6)+_0x3c63c4+'\x22'):console['log']('Key\x20\x22'+_0x5cbcf6+'\x22\x20not\x20found');return;}const _0x17d22c=await loadSettings(_0x3c63c4),_0x815f85=deleteNestedValue(_0x17d22c,_0x5cbcf6);_0x815f85?(await saveSettings(_0x3c63c4,_0x17d22c),console[_0x9ee4b(0xb9)](_0x9ee4b(0xad)+_0x5cbcf6)):console['log']('Key\x20\x22'+_0x5cbcf6+'\x22\x20not\x20found');}export async function configReset(_0x1e36b6){const _0x4c0e8f=_0x31d297,_0x4c3307={'KhvVJ':function(_0x131a22,_0x9f25a3){return _0x131a22(_0x9f25a3);},'LObfw':function(_0x57da6d){return _0x57da6d();}},_0x203914=await _0x4c3307['KhvVJ'](resolveProfileTarget,_0x1e36b6);if(_0x203914['kind']===_0x4c0e8f(0xce)){resetProfileOverrides(_0x4c3307[_0x4c0e8f(0xcd)](getProjectPath),_0x1e36b6),console['log'](_0x4c0e8f(0xcb)+_0x1e36b6+'\x22');return;}console[_0x4c0e8f(0xb9)]('\x22'+_0x1e36b6+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x1e36b6+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
1
+ (function(_0x38b42a,_0x3386a9){const _0x2edff9=_0x3a63,_0x460947=_0x38b42a();while(!![]){try{const _0x5aa21a=parseInt(_0x2edff9(0x204))/0x1*(-parseInt(_0x2edff9(0x227))/0x2)+parseInt(_0x2edff9(0x21c))/0x3+-parseInt(_0x2edff9(0x219))/0x4+-parseInt(_0x2edff9(0x1eb))/0x5+-parseInt(_0x2edff9(0x1fc))/0x6+-parseInt(_0x2edff9(0x200))/0x7*(-parseInt(_0x2edff9(0x203))/0x8)+parseInt(_0x2edff9(0x218))/0x9;if(_0x5aa21a===_0x3386a9)break;else _0x460947['push'](_0x460947['shift']());}catch(_0x11ed3f){_0x460947['push'](_0x460947['shift']());}}}(_0x4926,0xc008e));function _0x4926(){const _0x458170=['Profile\x20\x22','undefined','bWJxk','dCJlJ','UgwnP','BaPbO','\x20\x20Note:\x20\x22','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','64yGvPtt','ypzWS','6648420iFBjBV','\x20=\x20','bHzEP','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22','(not\x20set)','object','isNaN','yyCtY','cloud','htPDw','gMQYB','\x20for\x20\x22','LoUUZ','Removed\x20','RuFNL','YvXFp','5323416JhvXog','parse',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','Cleared\x20local\x20overrides\x20for\x20\x22','35OwXnWH','nEEYq','kind','1231368IqrdjY','12511xYuXIm','gAcAJ','Invalid\x20value\x20for\x20','Key\x20\x22','log','local','GFxyP','false','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','trim','vmazP','hTTFt','stringify','test','cwd','vkRRm','bopvH','tARVc','startsWith','No\x20configuration\x20set\x20for\x20\x22','22018635Fhrouf','4470736YXChBB','alsoExistsElsewhere','TtriJ','3916230WYTQev','Set\x20','includes'];_0x4926=function(){return _0x458170;};return _0x4926();}import{existsSync}from'fs';import{loadSettings,getNestedValue,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=['headless','allowInsecureLocalhost'];function parseLocalValue(_0x5a4e4b,_0x4c9d78){const _0x2a252a=_0x3a63,_0x3de940={'bopvH':'true','nEEYq':function(_0x1e6eb9,_0x5dc358){return _0x1e6eb9===_0x5dc358;},'RuFNL':_0x2a252a(0x20b)};if(BOOLEAN_KEYS[_0x2a252a(0x21e)](_0x5a4e4b)){if(_0x4c9d78===_0x3de940[_0x2a252a(0x214)])return!![];if(_0x3de940[_0x2a252a(0x201)](_0x4c9d78,_0x3de940[_0x2a252a(0x1fa)]))return![];throw new Error(_0x2a252a(0x206)+_0x5a4e4b+_0x2a252a(0x1fe));}return _0x4c9d78;}function _0x3a63(_0x3c2b75,_0x49c286){_0x3c2b75=_0x3c2b75-0x1eb;const _0x4926d1=_0x4926();let _0x3a63c8=_0x4926d1[_0x3c2b75];return _0x3a63c8;}function parseOverrideValue(_0x2d0185){const _0x5884c4=_0x3a63,_0x59d2ac={'UgwnP':function(_0x5683a5,_0x288e4e){return _0x5683a5===_0x288e4e;},'YPhkw':'true','bWJxk':_0x5884c4(0x20b),'yISYR':'null','YqTcZ':_0x5884c4(0x220),'xnSIv':function(_0x235cb0,_0x551b83){return _0x235cb0(_0x551b83);}};if(_0x59d2ac[_0x5884c4(0x223)](_0x2d0185,_0x59d2ac['YPhkw']))return!![];if(_0x59d2ac[_0x5884c4(0x223)](_0x2d0185,_0x59d2ac[_0x5884c4(0x221)]))return![];if(_0x59d2ac['UgwnP'](_0x2d0185,_0x59d2ac['yISYR']))return null;if(_0x2d0185===_0x59d2ac['YqTcZ'])return undefined;if(/^-?\d+$/[_0x5884c4(0x211)](_0x2d0185)){const _0xa6a622=Number(_0x2d0185);if(Number['isSafeInteger'](_0xa6a622))return _0xa6a622;}if(/^-?\d+\.\d+$/['test'](_0x2d0185)){const _0x1d0f82=_0x59d2ac['xnSIv'](Number,_0x2d0185);if(!Number[_0x5884c4(0x1f2)](_0x1d0f82))return _0x1d0f82;}const _0x4a085b=_0x2d0185[_0x5884c4(0x20d)]();if(_0x4a085b[_0x5884c4(0x216)]('{')&&_0x4a085b['endsWith']('}')||_0x4a085b[_0x5884c4(0x216)]('[')&&_0x4a085b['endsWith'](']'))try{return JSON[_0x5884c4(0x1fd)](_0x4a085b);}catch{}return _0x2d0185;}async function resolveProfileTarget(_0x1291ff){const _0x178762=_0x3a63,_0x2dfc29={'hTTFt':function(_0x3b644e,_0x3883a8){return _0x3b644e(_0x3883a8);},'yEEyf':_0x178762(0x209)},_0x2113e9=existsSync(_0x2dfc29[_0x178762(0x20f)](getEnvDir,_0x1291ff));let _0x3e910e=![];try{const _0xd5cd4f=await fetchCloudProfile(_0x1291ff);_0x3e910e=Boolean(_0xd5cd4f);}catch{}if(_0x3e910e)return{'kind':_0x178762(0x1f4),'alsoExistsElsewhere':_0x2113e9};if(_0x2113e9)return{'kind':_0x2dfc29['yEEyf'],'alsoExistsElsewhere':![]};throw new Error(_0x178762(0x21f)+_0x1291ff+_0x178762(0x226)+_0x1291ff);}function printDualExistsHint(_0x234885){const _0x5007ce=_0x3a63;console['log'](_0x5007ce(0x225)+_0x234885+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){const _0x58fa38=_0x3a63;return process[_0x58fa38(0x212)]();}async function loadEffectiveCloudSettings(_0x2f806c){const _0x12ee0f=_0x3a63,_0x124d8d={'jlWpa':function(_0x4b9da2){return _0x4b9da2();},'BaPbO':function(_0x255313,_0x558385,_0x1280ad){return _0x255313(_0x558385,_0x1280ad);},'rJMxF':function(_0x15c189,_0x4587ea){return _0x15c189??_0x4587ea;}},_0x1da1dd=await fetchCloudProfile(_0x2f806c),_0x4d9788=readProfileOverrides(_0x124d8d['jlWpa'](getProjectPath),_0x2f806c);return _0x124d8d[_0x12ee0f(0x224)](mergeCloudProfileSettings,_0x1da1dd?.['settings']??{},_0x124d8d['rJMxF'](_0x4d9788,undefined));}export async function configSet(_0x1ee03f,_0x4cd88e,_0x4665a5){const _0x848ccd=_0x3a63,_0x1a6c25={'xxfvl':function(_0x21d0bc,_0x374498){return _0x21d0bc(_0x374498);},'HRrdZ':function(_0x135b26,_0x1dc1aa){return _0x135b26===_0x1dc1aa;},'XiCWB':'cloud','vkRRm':function(_0x5c489f,_0x26ac99){return _0x5c489f(_0x26ac99);},'yyCtY':function(_0x2a9b0d,_0x4d5ce0){return _0x2a9b0d(_0x4d5ce0);},'vPOHh':function(_0x18e048){return _0x18e048();},'fpxkl':function(_0x3a8d50,_0xe3483e,_0x418d4c){return _0x3a8d50(_0xe3483e,_0x418d4c);},'FIHwe':function(_0x319fc9,_0x287a60,_0x19494b,_0x50c659,_0x2b45f3){return _0x319fc9(_0x287a60,_0x19494b,_0x50c659,_0x2b45f3);}},_0x920056=await _0x1a6c25['xxfvl'](resolveProfileTarget,_0x1ee03f);if(_0x1a6c25['HRrdZ'](_0x920056['kind'],_0x1a6c25['XiCWB'])){if(_0x920056[_0x848ccd(0x21a)])_0x1a6c25[_0x848ccd(0x213)](printDualExistsHint,_0x1ee03f);const _0x31c63f=_0x1a6c25[_0x848ccd(0x1f3)](parseOverrideValue,_0x4665a5);setProfileOverride(_0x1a6c25['vPOHh'](getProjectPath),_0x1ee03f,_0x4cd88e,_0x31c63f),console['log'](_0x848ccd(0x21d)+_0x4cd88e+_0x848ccd(0x1ec)+JSON[_0x848ccd(0x210)](_0x31c63f)+_0x848ccd(0x1f7)+_0x1ee03f+'\x22');return;}const _0x188a95=_0x1a6c25['fpxkl'](parseLocalValue,_0x4cd88e,_0x4665a5);_0x1a6c25['FIHwe'](setProfileOverride,getProjectPath(),_0x1ee03f,_0x4cd88e,_0x188a95),console[_0x848ccd(0x208)]('Set\x20'+_0x4cd88e+'\x20=\x20'+_0x188a95+'\x20for\x20\x22'+_0x1ee03f+'\x22');}export async function configGet(_0x21bf89,_0x58597b){const _0x1b5ec0=_0x3a63,_0x207d16={'tARVc':function(_0x5cd581,_0x234bba){return _0x5cd581===_0x234bba;},'gAcAJ':'cloud','XfVml':function(_0x2a9186,_0x4cca7e){return _0x2a9186(_0x4cca7e);},'FQWbY':function(_0x46fc92,_0x4cb70e){return _0x46fc92===_0x4cb70e;},'GFxyP':'object','tlTzt':function(_0x3fd9a2,_0x32d9b8,_0x4c1161){return _0x3fd9a2(_0x32d9b8,_0x4c1161);}},_0x2ce3f6=await resolveProfileTarget(_0x21bf89);if(_0x207d16['tARVc'](_0x2ce3f6[_0x1b5ec0(0x202)],_0x207d16[_0x1b5ec0(0x205)])){const _0x2ea9fd=await _0x207d16['XfVml'](loadEffectiveCloudSettings,_0x21bf89),_0x16b60e=getNestedValue(_0x2ea9fd,_0x58597b);if(_0x207d16['FQWbY'](_0x16b60e,undefined))console['log'](_0x1b5ec0(0x1f0));else _0x207d16[_0x1b5ec0(0x215)](typeof _0x16b60e,_0x207d16[_0x1b5ec0(0x20a)])?console[_0x1b5ec0(0x208)](JSON['stringify'](_0x16b60e,null,0x2)):console['log'](_0x16b60e);return;}const _0x162e90=await loadSettings(_0x21bf89),_0x41f4df=_0x207d16['tlTzt'](getNestedValue,_0x162e90,_0x58597b);if(_0x41f4df===undefined)console['log'](_0x1b5ec0(0x1f0));else _0x207d16['tARVc'](typeof _0x41f4df,_0x1b5ec0(0x1f1))?console[_0x1b5ec0(0x208)](JSON['stringify'](_0x41f4df,null,0x2)):console[_0x1b5ec0(0x208)](_0x41f4df);}export async function configList(_0x4b97d3){const _0x4f7f23=_0x3a63,_0x4053d4={'TtriJ':function(_0x14142f,_0x2be4ac){return _0x14142f(_0x2be4ac);},'ypzWS':function(_0x2e2cc7,_0x1e633c){return _0x2e2cc7===_0x1e633c;},'htPDw':_0x4f7f23(0x1f4),'BfrKL':function(_0x21b0f6,_0x22a539){return _0x21b0f6===_0x22a539;},'LoUUZ':function(_0x59c4b0,_0x3618fc){return _0x59c4b0(_0x3618fc);}},_0x28b3c1=await _0x4053d4[_0x4f7f23(0x21b)](resolveProfileTarget,_0x4b97d3);if(_0x4053d4[_0x4f7f23(0x228)](_0x28b3c1['kind'],_0x4053d4[_0x4f7f23(0x1f5)])){const _0x1265b7=await _0x4053d4['TtriJ'](loadEffectiveCloudSettings,_0x4b97d3);if(!_0x1265b7||_0x4053d4['BfrKL'](Object['keys'](_0x1265b7)['length'],0x0)){console['log'](_0x4f7f23(0x217)+_0x4b97d3+'\x22');return;}console[_0x4f7f23(0x208)](JSON[_0x4f7f23(0x210)](_0x1265b7,null,0x2));return;}const _0x1400e7=_0x4053d4[_0x4f7f23(0x1f8)](getSettingsPath,_0x4b97d3);if(!_0x4053d4['LoUUZ'](existsSync,_0x1400e7)){console[_0x4f7f23(0x208)](_0x4f7f23(0x217)+_0x4b97d3+'\x22');return;}const _0x1baf93=await loadSettings(_0x4b97d3),_0x22679b=formatSettings(_0x1baf93);!_0x22679b?console[_0x4f7f23(0x208)](_0x4f7f23(0x217)+_0x4b97d3+'\x22'):console['log'](_0x22679b);}export async function configUnset(_0x30608f,_0x358ca4){const _0x21ad1a=_0x3a63,_0x77879e={'vmazP':function(_0x35dd27,_0x18ba2f){return _0x35dd27(_0x18ba2f);},'PULRO':function(_0x1fa4c6,_0x530176){return _0x1fa4c6===_0x530176;},'Aqrtu':function(_0x1f859c,_0x4b236f,_0x3f7164,_0x365942){return _0x1f859c(_0x4b236f,_0x3f7164,_0x365942);},'gMQYB':function(_0x3bcd5e){return _0x3bcd5e();},'bHzEP':function(_0x1bd385,_0x377b23){return _0x1bd385(_0x377b23);}},_0x387701=await _0x77879e['vmazP'](resolveProfileTarget,_0x30608f);if(_0x77879e['PULRO'](_0x387701['kind'],_0x21ad1a(0x1f4))){if(_0x387701[_0x21ad1a(0x21a)])_0x77879e[_0x21ad1a(0x20e)](printDualExistsHint,_0x30608f);const _0x11fb8b=unsetProfileOverride(getProjectPath(),_0x30608f,_0x358ca4);_0x11fb8b?console['log'](_0x21ad1a(0x1f9)+_0x358ca4+_0x21ad1a(0x1f7)+_0x30608f+'\x22'):console[_0x21ad1a(0x208)](_0x21ad1a(0x207)+_0x358ca4+'\x22\x20not\x20found');return;}const _0x344e86=_0x77879e['Aqrtu'](unsetProfileOverride,_0x77879e[_0x21ad1a(0x1f6)](getProjectPath),_0x30608f,_0x358ca4);if(_0x344e86){console['log']('Removed\x20'+_0x358ca4);return;}const _0x2cc99e=await _0x77879e[_0x21ad1a(0x1ed)](loadSettings,_0x30608f),_0x2f1e37=deleteNestedValue(_0x2cc99e,_0x358ca4);_0x2f1e37?console[_0x21ad1a(0x208)]('Key\x20\x22'+_0x358ca4+_0x21ad1a(0x1ef)+_0x30608f+_0x21ad1a(0x1ee)):console[_0x21ad1a(0x208)]('Key\x20\x22'+_0x358ca4+'\x22\x20not\x20found');}export async function configReset(_0x1d1782){const _0x32128f=_0x3a63,_0x2a09c1={'YvXFp':function(_0x410771,_0xab6876){return _0x410771===_0xab6876;},'BMIPv':_0x32128f(0x1f4),'dCJlJ':function(_0x285386,_0x556ff4,_0x1a0183){return _0x285386(_0x556ff4,_0x1a0183);}},_0x439214=await resolveProfileTarget(_0x1d1782);if(_0x2a09c1[_0x32128f(0x1fb)](_0x439214[_0x32128f(0x202)],_0x2a09c1['BMIPv'])){_0x2a09c1[_0x32128f(0x222)](resetProfileOverrides,getProjectPath(),_0x1d1782),console[_0x32128f(0x208)](_0x32128f(0x1ff)+_0x1d1782+'\x22');return;}console[_0x32128f(0x208)]('\x22'+_0x1d1782+_0x32128f(0x20c)+_0x1d1782+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- function _0x2b1d(_0x1ce298,_0x563934){_0x1ce298=_0x1ce298-0xa5;const _0x5b1a5b=_0x5b1a();let _0x2b1d27=_0x5b1a5b[_0x1ce298];return _0x2b1d27;}const _0x37b275=_0x2b1d;function _0x5b1a(){const _0xd34595=['mHaSk','24329853MKIHeL','\x0a*\x20=\x20active\x20profile','length','environmentDetails','environmentKey','local','NMcpY','xPHUX','legacy','pXSqM','cached\x20(updated\x20','9416838qqysoC','map','\x20[cloud]','UIEzc','isDirectory','324437ETxUJY','sort','bug-bashes','includes','Run:\x20ranger\x20profile\x20add\x20<profile-name>','4943450HyRaXX','wIcTO','DkRkA','WqCBm','2117732fMzqiE','vNWBj','baseUrl','4ZWKmVb','1040fekhTb','YcDRo','reports','name','no\x20session','klTUu','endsWith','\x20\x20\x20\x20\x20\x20URL:\x20','3262179NtIcST','sessionUpdatedAt','log','push','\x0aLocal\x20Profiles:','13909EIUDOb'];_0x5b1a=function(){return _0xd34595;};return _0x5b1a();}(function(_0x377691,_0x20cae0){const _0x32fdb6=_0x2b1d,_0x4e403b=_0x377691();while(!![]){try{const _0x59d8c7=-parseInt(_0x32fdb6(0xb8))/0x1*(-parseInt(_0x32fdb6(0xc4))/0x2)+parseInt(_0x32fdb6(0xcd))/0x3+-parseInt(_0x32fdb6(0xc1))/0x4+parseInt(_0x32fdb6(0xbd))/0x5+parseInt(_0x32fdb6(0xb3))/0x6+-parseInt(_0x32fdb6(0xa6))/0x7*(parseInt(_0x32fdb6(0xc5))/0x8)+-parseInt(_0x32fdb6(0xa8))/0x9;if(_0x59d8c7===_0x20cae0)break;else _0x4e403b['push'](_0x4e403b['shift']());}catch(_0x3523eb){_0x4e403b['push'](_0x4e403b['shift']());}}}(_0x5b1a,0xc422a));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions',_0x37b275(0xba),_0x37b275(0xc7),'local','ci'];export async function getEnvNames(){const _0x2ffa51=_0x37b275,_0x17893f={'YcDRo':function(_0x101ea9){return _0x101ea9();},'wIcTO':function(_0x3f8409,_0x9c3fc2){return _0x3f8409(_0x9c3fc2);},'NMcpY':_0x2ffa51(0xad),'vNWBj':function(_0x369f7e,_0x204991,_0x12bced){return _0x369f7e(_0x204991,_0x12bced);},'DkRkA':function(_0xeec562,_0x23e09e){return _0xeec562(_0x23e09e);},'pXSqM':'.txt','mHaSk':function(_0x26e1d9,_0x405f8b,_0x393436){return _0x26e1d9(_0x405f8b,_0x393436);},'WqCBm':_0x2ffa51(0xb0)},_0x3a3082=_0x17893f['YcDRo'](getRangerDir);if(!_0x17893f['wIcTO'](existsSync,_0x3a3082))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x1d28b4=await _0x17893f[_0x2ffa51(0xc6)](readActiveProfileName),_0x579eaf=[],_0x57d4a7={},_0x112bc4=join(_0x3a3082,_0x17893f['NMcpY']);if(_0x17893f['wIcTO'](existsSync,_0x112bc4)){const _0x27fe94=await readdir(_0x112bc4);for(const _0x25b065 of _0x27fe94){const _0x303d83=join(_0x112bc4,_0x25b065),_0x3a003f=await _0x17893f[_0x2ffa51(0xbe)](stat,_0x303d83);_0x3a003f['isDirectory']()&&(_0x579eaf[_0x2ffa51(0xd0)](_0x25b065),_0x57d4a7[_0x25b065]=_0x17893f[_0x2ffa51(0xae)]);}}const _0x2a068a=join(_0x3a3082,'ci');if(existsSync(_0x2a068a)){const _0x4da7d6=await readdir(_0x2a068a);for(const _0x43104f of _0x4da7d6){const _0x1c9f7b=_0x17893f[_0x2ffa51(0xc2)](join,_0x2a068a,_0x43104f),_0x21dacb=await _0x17893f[_0x2ffa51(0xbf)](stat,_0x1c9f7b);_0x21dacb[_0x2ffa51(0xb7)]()&&(_0x579eaf['push'](_0x43104f),_0x57d4a7[_0x43104f]='ci');}}const _0x18492a=await readdir(_0x3a3082);for(const _0x5896aa of _0x18492a){if(NON_ENV_DIRS[_0x2ffa51(0xbb)](_0x5896aa))continue;if(_0x5896aa['startsWith']('.'))continue;if(_0x5896aa[_0x2ffa51(0xcb)](_0x17893f[_0x2ffa51(0xb1)]))continue;const _0x4bb4fb=join(_0x3a3082,_0x5896aa),_0x335c9d=await stat(_0x4bb4fb);_0x335c9d[_0x2ffa51(0xb7)]()&&existsSync(_0x17893f[_0x2ffa51(0xa7)](join,_0x4bb4fb,'settings.json'))&&(!_0x579eaf[_0x2ffa51(0xbb)](_0x5896aa)&&(_0x579eaf['push'](_0x5896aa),_0x57d4a7[_0x5896aa]=_0x17893f[_0x2ffa51(0xc0)]));}return{'envNames':_0x579eaf,'activeEnv':_0x1d28b4,'envTypes':_0x57d4a7};}export async function envList(){const _0x360e82=_0x37b275,_0x4796ef={'qeyUo':function(_0x18aab8){return _0x18aab8();},'klTUu':function(_0x1077f6,_0x26f117){return _0x1077f6===_0x26f117;},'TmZoA':function(_0x4466bd,_0x461c2f){return _0x4466bd===_0x461c2f;},'nbHST':function(_0x2924b3,_0x2c65f7){return _0x2924b3>_0x2c65f7;},'xPHUX':_0x360e82(0xa5),'UIEzc':'local','TLtJZ':function(_0x58940a,_0x23400b){return _0x58940a(_0x23400b);}},{envNames:_0x399052,activeEnv:_0x359da5,envTypes:_0x8dc338}=await getEnvNames();let _0x376708=[];try{_0x376708=await _0x4796ef['qeyUo'](listCloudProfiles);}catch{}if(_0x4796ef[_0x360e82(0xca)](_0x399052['length'],0x0)&&_0x4796ef['TmZoA'](_0x376708['length'],0x0)){console['log']('\x0aNo\x20profiles\x20found.'),console['log'](_0x360e82(0xbc));return;}const _0x5e3ce6=new Set(_0x376708[_0x360e82(0xb4)](_0x37ff1e=>_0x37ff1e[_0x360e82(0xc8)]));if(_0x4796ef['nbHST'](_0x399052[_0x360e82(0xaa)],0x0)){console['log'](_0x4796ef[_0x360e82(0xaf)]);for(const _0xbb1ef7 of _0x399052[_0x360e82(0xb9)]()){const _0x5237f8=_0xbb1ef7===_0x359da5&&!_0x5e3ce6['has'](_0xbb1ef7),_0x19e58a=_0x8dc338[_0xbb1ef7]||_0x4796ef[_0x360e82(0xb6)],_0x1f35ca=await _0x4796ef['TLtJZ'](loadSettings,_0xbb1ef7),_0xa32c99=_0x19e58a===_0x360e82(0xb0)?'':'\x20['+_0x19e58a+']';console['log']('\x20\x20'+(_0x5237f8?'*\x20':'\x20\x20')+_0xbb1ef7+_0xa32c99),_0x1f35ca[_0x360e82(0xc3)]&&console['log'](_0x360e82(0xcc)+_0x1f35ca[_0x360e82(0xc3)]),_0x1f35ca['environmentDetails']&&console[_0x360e82(0xcf)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x1f35ca[_0x360e82(0xab)]);}}if(_0x4796ef['nbHST'](_0x376708['length'],0x0)){console[_0x360e82(0xcf)]('\x0aCloud\x20Profiles:');for(const _0x32a8d1 of _0x376708['sort']((_0x4a3465,_0x16883b)=>_0x4a3465[_0x360e82(0xc8)]['localeCompare'](_0x16883b[_0x360e82(0xc8)]))){const _0x4abc45=_0x32a8d1[_0x360e82(0xc8)]===_0x359da5,_0x1ef50c=_0x32a8d1['environmentKey']?'\x20('+_0x32a8d1[_0x360e82(0xac)]+')':'',_0x367007=_0x32a8d1[_0x360e82(0xce)]?_0x360e82(0xb2)+_0x32a8d1[_0x360e82(0xce)]+')':_0x360e82(0xc9);console['log']('\x20\x20'+(_0x4abc45?'*\x20':'\x20\x20')+_0x32a8d1[_0x360e82(0xc8)]+_0x360e82(0xb5)+_0x1ef50c),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x367007);}}_0x359da5&&console[_0x360e82(0xcf)](_0x360e82(0xa9));}
1
+ const _0x1f4b20=_0x1434;function _0x447d(){const _0x488389=['\x0aCloud\x20Profiles:','9OHaUwU','\x20\x20\x20\x20\x20\x20URL:\x20','7oLvQIs','sort','sessionUpdatedAt','isDirectory','name','has','8544486WOcrBm','includes','Run:\x20ranger\x20profile\x20add\x20<profile-name>','nuBVp','length','210294nNAlWL','1960306xeiSaP','legacy','log','reports','6433040CrDRbt','5407140CpgKuQ','1073096czHvaF','vEGrJ','\x0aNo\x20profiles\x20found.','push','TykFA','bug-bashes','.txt','environmentKey','mQSBC','1kRlWgt','34282440OKQXvw','\x20\x20\x20\x20\x20\x20Details:\x20'];_0x447d=function(){return _0x488389;};return _0x447d();}(function(_0x151f7c,_0x31945c){const _0x16a188=_0x1434,_0x2e78b1=_0x151f7c();while(!![]){try{const _0x2b3c2a=-parseInt(_0x16a188(0x8b))/0x1*(-parseInt(_0x16a188(0x9d))/0x2)+-parseInt(_0x16a188(0x9c))/0x3+-parseInt(_0x16a188(0x82))/0x4+-parseInt(_0x16a188(0x81))/0x5+-parseInt(_0x16a188(0x97))/0x6+parseInt(_0x16a188(0x91))/0x7*(-parseInt(_0x16a188(0x80))/0x8)+parseInt(_0x16a188(0x8f))/0x9*(parseInt(_0x16a188(0x8c))/0xa);if(_0x2b3c2a===_0x31945c)break;else _0x2e78b1['push'](_0x2e78b1['shift']());}catch(_0x4b42e8){_0x2e78b1['push'](_0x2e78b1['shift']());}}}(_0x447d,0xb9a42));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';function _0x1434(_0x2082c8,_0x2cacab){_0x2082c8=_0x2082c8-0x80;const _0x447dbc=_0x447d();let _0x143450=_0x447dbc[_0x2082c8];return _0x143450;}import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions',_0x1f4b20(0x87),_0x1f4b20(0xa0),'local','ci'];export async function getEnvNames(){const _0x2ef36d=_0x1f4b20,_0xbe6381={'WvOTz':'local','mQSBC':function(_0x1ff99a,_0x47d6a2){return _0x1ff99a(_0x47d6a2);},'vEGrJ':function(_0x5e3b97,_0x246bf9,_0x3509ee){return _0x5e3b97(_0x246bf9,_0x3509ee);},'TykFA':'settings.json'},_0x1a0bfa=getRangerDir();if(!existsSync(_0x1a0bfa))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x556fe5=await readActiveProfileName(),_0x3aef1d=[],_0x397237={},_0x1ae99e=join(_0x1a0bfa,_0xbe6381['WvOTz']);if(existsSync(_0x1ae99e)){const _0x559145=await _0xbe6381[_0x2ef36d(0x8a)](readdir,_0x1ae99e);for(const _0x80443b of _0x559145){const _0x95b010=join(_0x1ae99e,_0x80443b),_0x566428=await stat(_0x95b010);_0x566428[_0x2ef36d(0x94)]()&&(_0x3aef1d['push'](_0x80443b),_0x397237[_0x80443b]='local');}}const _0x17ae7f=join(_0x1a0bfa,'ci');if(existsSync(_0x17ae7f)){const _0x4bc9bb=await _0xbe6381[_0x2ef36d(0x8a)](readdir,_0x17ae7f);for(const _0x75f8b2 of _0x4bc9bb){const _0xf8c213=join(_0x17ae7f,_0x75f8b2),_0x4deb7e=await stat(_0xf8c213);_0x4deb7e[_0x2ef36d(0x94)]()&&(_0x3aef1d[_0x2ef36d(0x85)](_0x75f8b2),_0x397237[_0x75f8b2]='ci');}}const _0x4c8bf5=await readdir(_0x1a0bfa);for(const _0xd0df64 of _0x4c8bf5){if(NON_ENV_DIRS[_0x2ef36d(0x98)](_0xd0df64))continue;if(_0xd0df64['startsWith']('.'))continue;if(_0xd0df64['endsWith'](_0x2ef36d(0x88)))continue;const _0x39c582=join(_0x1a0bfa,_0xd0df64),_0x20b344=await stat(_0x39c582);_0x20b344[_0x2ef36d(0x94)]()&&existsSync(_0xbe6381[_0x2ef36d(0x83)](join,_0x39c582,_0xbe6381[_0x2ef36d(0x86)]))&&(!_0x3aef1d['includes'](_0xd0df64)&&(_0x3aef1d[_0x2ef36d(0x85)](_0xd0df64),_0x397237[_0xd0df64]=_0x2ef36d(0x9e)));}return{'envNames':_0x3aef1d,'activeEnv':_0x556fe5,'envTypes':_0x397237};}export async function envList(){const _0x2f596d=_0x1f4b20,_0x3f9c02={'HNGKN':function(_0x4037b9,_0x3c1099){return _0x4037b9===_0x3c1099;},'zOECt':_0x2f596d(0x84),'nuBVp':_0x2f596d(0x99),'qIwCx':'\x0aLocal\x20Profiles:','kMthu':function(_0x386589,_0x42049f){return _0x386589(_0x42049f);},'BkyfV':function(_0x312472,_0x139799){return _0x312472>_0x139799;},'qcrZq':function(_0x11ae32,_0x3d1e9c){return _0x11ae32===_0x3d1e9c;}},{envNames:_0xc4e7ca,activeEnv:_0x2b4ab6,envTypes:_0x42355d}=await getEnvNames();let _0x315db1=[];try{_0x315db1=await listCloudProfiles();}catch{}if(_0xc4e7ca[_0x2f596d(0x9b)]===0x0&&_0x3f9c02['HNGKN'](_0x315db1[_0x2f596d(0x9b)],0x0)){console[_0x2f596d(0x9f)](_0x3f9c02['zOECt']),console['log'](_0x3f9c02[_0x2f596d(0x9a)]);return;}const _0x1890f1=new Set(_0x315db1['map'](_0x3dda2f=>_0x3dda2f[_0x2f596d(0x95)]));if(_0xc4e7ca['length']>0x0){console[_0x2f596d(0x9f)](_0x3f9c02['qIwCx']);for(const _0xd583f5 of _0xc4e7ca[_0x2f596d(0x92)]()){const _0x514b6c=_0x3f9c02['HNGKN'](_0xd583f5,_0x2b4ab6)&&!_0x1890f1[_0x2f596d(0x96)](_0xd583f5),_0x3c255d=_0x42355d[_0xd583f5]||'local',_0x14a623=await _0x3f9c02['kMthu'](loadSettings,_0xd583f5),_0x4e5edc=_0x3c255d===_0x2f596d(0x9e)?'':'\x20['+_0x3c255d+']';console['log']('\x20\x20'+(_0x514b6c?'*\x20':'\x20\x20')+_0xd583f5+_0x4e5edc),_0x14a623['baseUrl']&&console['log'](_0x2f596d(0x90)+_0x14a623['baseUrl']),_0x14a623['environmentDetails']&&console[_0x2f596d(0x9f)](_0x2f596d(0x8d)+_0x14a623['environmentDetails']);}}if(_0x3f9c02['BkyfV'](_0x315db1[_0x2f596d(0x9b)],0x0)){console[_0x2f596d(0x9f)](_0x2f596d(0x8e));for(const _0x2b9234 of _0x315db1[_0x2f596d(0x92)]((_0x3455c7,_0x2d3430)=>_0x3455c7['name']['localeCompare'](_0x2d3430[_0x2f596d(0x95)]))){const _0x3636b3=_0x3f9c02['qcrZq'](_0x2b9234[_0x2f596d(0x95)],_0x2b4ab6),_0x14b622=_0x2b9234[_0x2f596d(0x89)]?'\x20('+_0x2b9234['environmentKey']+')':'',_0x48a2c8=_0x2b9234[_0x2f596d(0x93)]?'cached\x20(updated\x20'+_0x2b9234['sessionUpdatedAt']+')':'no\x20session';console['log']('\x20\x20'+(_0x3636b3?'*\x20':'\x20\x20')+_0x2b9234['name']+'\x20[cloud]'+_0x14b622),console[_0x2f596d(0x9f)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x48a2c8);}}_0x2b4ab6&&console[_0x2f596d(0x9f)]('\x0a*\x20=\x20active\x20profile');}
@@ -1 +1 @@
1
- const _0x5334bd=_0xe614;(function(_0x37aedf,_0x2fb690){const _0x1bc0fa=_0xe614,_0x36982e=_0x37aedf();while(!![]){try{const _0x493cc4=-parseInt(_0x1bc0fa(0x2a5))/0x1*(-parseInt(_0x1bc0fa(0x26c))/0x2)+parseInt(_0x1bc0fa(0x281))/0x3+-parseInt(_0x1bc0fa(0x21d))/0x4+-parseInt(_0x1bc0fa(0x1fe))/0x5*(parseInt(_0x1bc0fa(0x1e2))/0x6)+parseInt(_0x1bc0fa(0x224))/0x7*(parseInt(_0x1bc0fa(0x1ee))/0x8)+-parseInt(_0x1bc0fa(0x1f8))/0x9+-parseInt(_0x1bc0fa(0x21e))/0xa;if(_0x493cc4===_0x2fb690)break;else _0x36982e['push'](_0x36982e['shift']());}catch(_0x45eec5){_0x36982e['push'](_0x36982e['shift']());}}}(_0x55a9,0xd1aef));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x422fc2 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';function _0x55a9(){const _0x5d2199=['split','KiCCE','currentSessionId','sASEp','blockedItems','timing','scenario','Step\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','content','uPZbb','canceledReason','wpiEo','Dwmki','Not\x20in\x20a\x20git\x20repository.','YqaBK','json','scenarios','vZwOe','env','\x20scenario(s).','ready','TcBAE','qIBmI','list','utf-8','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x20\x20\x20Status:\x20','name','textContent','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','EtWVC','incomplete','stdin','22867ddaqTo','GBuiM','style','toLocaleDateString','HrGZa','version','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','approved','domRef','Please\x20finish\x20your\x20review\x20first:','latestReview','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','dVYIE','slice','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:',':\x20\x22','xIhgV','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','CAoww','\x20scenarios.','36gfiplG','en-US','TqoIi','comment_','\x20at\x20[','ylZcR','linkedSession','DkwoY','assetType','yfnMM','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','\x20\x20\x20ID:\x20','7444072pFnPkT','oDHwN','verifiedItems','):\x20\x22','GRHkO','length','screenshot','checklistItems','\x20\x20\x20\x20\x20ID:\x20','blockedReason','5847642MDgdfO','wYOAE','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x1b[1m','fQPvo','iteration','377345veGkHw','pop','\x20\x20\x20Created:\x20','cpTgr','\x20Session\x20','vZaCH','mZhnn','NXzFR','UaPYh','\x0a✅\x20Resumed\x20feature\x20review:\x20','filter','short','HZJAO','any','RONWV','xIyTs','verified','\x20--include-deleted','YSfta','lyrJp','\x0a✅\x20Scenario\x20updated','closed','xzplv','gitBranch','MibnW','yoOVP','trim','...','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','BHdju','status','5897600YVLBld','2174100hMmQHy','notes','verification_in_progress','UNtLN','tqSSw','offset','7xgPNQg','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','sessionId','description','\x20\x20\x20\x20\x20Progress:\x20','selector','numeric','currentBranch','IUGhY','position','jpXPj','push','EZxyg','from','\x20--limit\x20','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','pipe','oaWGF','find','\x20\x20\x20Progress:\x20','items','dashboardUrl','type','exit','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','has','Showing\x20','stdout','Fetnc','jjwCP','zWmKf','gitRepoUrl','\x20>\x20','gfeGK','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','hmrMq','SBdEZ','assetUrl','\x20\x20💬\x20','parentItemId','BoDTo','spatial','browserSessionId','createdAt','git\x20remote\x20get-url\x20origin','arrayBuffer','\x20unaddressed\x20comment(s)','\x20\x20\x20\x20\x20Branch:\x20','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0aConcluding\x20session...','\x0a✅\x20Feature\x20review\x20created:\x20','canonicalFlow','BkTfe','yvQOu','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','limit','yVzlG','submittedAt','NcbKr','CLAUDE_SESSION_ID','stats','error','\x20\x20\x20Completed:\x20','toLocaleString','map','vRcdy','blocked','completedAt','iopyK','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','VOjCO','SiKWZ','94qdcIPE','isKeyStep','\x20--current-branch','\x0aAvailable\x20scenarios:','ECJan','\x20(v','unaddressedComments','incompleteReason','MjcAe','includeDeleted','TRlcz','log','assets','replace','terminalReason','No\x20active\x20session\x20for\x20this\x20feature\x20review.','No\x20scenarios\x20found.','selected','Scenario\x20','BDKJd','Qoidt','4943901SuaOrl','NAXSp'];_0x55a9=function(){return _0x5d2199;};return _0x55a9();}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';function _0xe614(_0x45f2ca,_0x14d86a){_0x45f2ca=_0x45f2ca-0x1e2;const _0x55a94d=_0x55a9();let _0xe614f5=_0x55a94d[_0x45f2ca];return _0xe614f5;}const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x3ac399=>_0x5334bd(0x1fb)+_0x3ac399+'\x1b[0m';function getGitRepoUrl(){const _0x10b134=_0x5334bd,_0x3f9a42={'fVVmq':function(_0x809cc2,_0x448793,_0x5b9889){return _0x809cc2(_0x448793,_0x5b9889);},'wpiEo':_0x10b134(0x29c),'SBdEZ':'pipe'};try{const _0x4d937e=_0x3f9a42['fVVmq'](execSync,_0x10b134(0x250),{'encoding':_0x3f9a42[_0x10b134(0x28f)],'stdio':[_0x3f9a42['SBdEZ'],'pipe',_0x3f9a42[_0x10b134(0x248)]]})[_0x10b134(0x218)]();return _0x4d937e['replace'](/\.git$/,'')[_0x10b134(0x279)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x5d77a5=_0x5334bd,_0x501809={'BHdju':function(_0xd479dc,_0x3006bc,_0x8fa7ce){return _0xd479dc(_0x3006bc,_0x8fa7ce);},'lvhHt':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','UaPYh':'pipe'};try{return _0x501809[_0x5d77a5(0x21b)](execSync,_0x501809['lvhHt'],{'encoding':_0x5d77a5(0x29c),'stdio':[_0x5d77a5(0x234),'pipe',_0x501809[_0x5d77a5(0x206)]]})[_0x5d77a5(0x218)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x3457a3=_0x5334bd,_0x3a32d7={'NAXSp':function(_0x45ee18,_0x5447ae,_0xe538bd){return _0x45ee18(_0x5447ae,_0xe538bd);},'XpkJh':function(_0x12375d){return _0x12375d();},'hmrMq':function(_0x298b23,_0x3a58eb){return _0x298b23(_0x3a58eb);}},_0x34aa56=_0x3a32d7[_0x3457a3(0x282)](join,_0x3a32d7['XpkJh'](getRangerDir),ACTIVE_FEATURE_FILE);if(!_0x3a32d7[_0x3457a3(0x247)](existsSync,_0x34aa56))return null;try{const _0x488e8b=await readFile(_0x34aa56,_0x3457a3(0x29c));return _0x488e8b[_0x3457a3(0x218)]()||null;}catch{return null;}}async function setActiveFeatureId(_0xbc7e76){const _0x10b71b=_0x5334bd,_0x492848={'wEysN':function(_0x44f1f0){return _0x44f1f0();},'KiCCE':function(_0x50e097,_0x57c2da){return _0x50e097(_0x57c2da);},'UNtLN':function(_0x190a4c,_0x46271f,_0x25ef64){return _0x190a4c(_0x46271f,_0x25ef64);},'AEXEj':'utf-8'},_0x4602b3=_0x492848['wEysN'](getRangerDir),_0x5aa5d3=join(_0x4602b3,ACTIVE_FEATURE_FILE);!_0x492848[_0x10b71b(0x284)](existsSync,_0x4602b3)&&await _0x492848[_0x10b71b(0x221)](mkdir,_0x4602b3,{'recursive':!![]}),await writeFile(_0x5aa5d3,_0xbc7e76,_0x492848['AEXEj']);}function getProgressDisplay(_0xc2ae70){const _0x3de48e=_0x5334bd,_0x30b747={'EtWVC':function(_0xe0cc33,_0x49a8e9){return _0xe0cc33+_0x49a8e9;},'tRXgt':function(_0x1e792d,_0x7ea957){return _0x1e792d*_0x7ea957;},'xIhgV':function(_0x548ba7,_0x10053d){return _0x548ba7-_0x10053d;},'MjcAe':function(_0x3059ee,_0x1cb923){return _0x3059ee>_0x1cb923;}},_0x4b50aa=_0xc2ae70[_0x3de48e(0x1f0)]||0x0,_0x2c6dea=_0xc2ae70['verificationInProgressItems']||0x0,_0x2ada26=_0xc2ae70[_0x3de48e(0x287)]||0x0,_0x56ce11=_0xc2ae70['incompleteItems']||0x0,_0x1fb75a=_0xc2ae70['pendingItems']||0x0,_0x498013=_0x30b747[_0x3de48e(0x2a2)](_0x4b50aa+_0x2c6dea,_0x2ada26)+_0x56ce11+_0x1fb75a;if(_0x498013===0x0)return'-';const _0x5ccfb2=0xa,_0x4d996d=Math['round'](_0x30b747['tRXgt'](_0x4b50aa/_0x498013,_0x5ccfb2)),_0x2bcd34=_0x30b747['EtWVC']('█'['repeat'](_0x4d996d),'░'['repeat'](_0x30b747[_0x3de48e(0x2b5)](_0x5ccfb2,_0x4d996d))),_0x36e7c9=[];if(_0x30b747[_0x3de48e(0x274)](_0x2ada26,0x0))_0x36e7c9['push'](_0x2ada26+'\x20blocked');if(_0x56ce11>0x0)_0x36e7c9['push'](_0x56ce11+'\x20incomplete');if(_0x30b747['MjcAe'](_0x2c6dea,0x0))_0x36e7c9[_0x3de48e(0x22f)](_0x2c6dea+'\x20in\x20progress');const _0x5a4e7f=_0x30b747['MjcAe'](_0x36e7c9['length'],0x0)?'\x20('+_0x36e7c9['join'](',\x20')+')':'';return _0x2bcd34+'\x20'+_0x4b50aa+'/'+_0x498013+'\x20verified'+_0x5a4e7f;}function getCurrentSessionItems(_0x31bf0f,_0x4e6af6){const _0x38bc47=_0x5334bd;if(!_0x31bf0f['currentSessionId'])return _0x4e6af6[_0x38bc47(0x208)](_0x421788=>!_0x421788[_0x38bc47(0x226)]);return _0x4e6af6['filter'](_0x589cf7=>_0x589cf7[_0x38bc47(0x226)]===_0x31bf0f[_0x38bc47(0x285)]||!_0x589cf7[_0x38bc47(0x226)]);}function displayFeature(_0x6fd4ff,_0x2ea341){const _0x4a9f76=_0x5334bd,_0x289dec={'VOjCO':function(_0x23569e,_0x3fcc0d){return _0x23569e(_0x3fcc0d);},'vRcdy':'\x0a\x20\x20\x20Scenarios:','vZaCH':function(_0x418f81,_0x54fdb7){return _0x418f81===_0x54fdb7;},'IqlsH':_0x4a9f76(0x213),'NXzFR':'approved','sfZFL':_0x4a9f76(0x20e),'BXCCx':'blocked','IUGhY':function(_0x332b4a,_0x558987){return _0x332b4a===_0x558987;},'TRlcz':_0x4a9f76(0x220),'JmTcG':function(_0x142511,_0x40294b){return _0x142511>_0x40294b;},'wYOAE':function(_0x3cddc6,_0x2d07c4){return _0x3cddc6!==_0x2d07c4;},'uwSzn':'\x20[has\x20reviewer\x20feedback]','zqXel':function(_0x4441b1,_0x147ada){return _0x4441b1+_0x147ada;},'ECJan':function(_0x509df5,_0x539536){return _0x509df5===_0x539536;},'oxeTF':_0x4a9f76(0x2a3),'dVYIE':function(_0x21a975,_0x192bb4){return _0x21a975===_0x192bb4;},'kRcHo':function(_0x1633b1,_0x42e9b1){return _0x1633b1===_0x42e9b1;},'GBuiM':function(_0x5c244f,_0x740ed8){return _0x5c244f===_0x740ed8;}};console['log']('\x0a'+_0x6fd4ff[_0x4a9f76(0x29f)]+'\x20('+_0x6fd4ff[_0x4a9f76(0x239)]+')');_0x6fd4ff['stats']&&console[_0x4a9f76(0x277)]('\x20\x20\x20Progress:\x20'+_0x289dec[_0x4a9f76(0x26a)](getProgressDisplay,_0x6fd4ff[_0x4a9f76(0x260)]));_0x6fd4ff['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x6fd4ff[_0x4a9f76(0x227)]);_0x6fd4ff[_0x4a9f76(0x243)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20Repository:\x20'+_0x6fd4ff['gitRepoUrl']);_0x6fd4ff[_0x4a9f76(0x215)]&&console['log']('\x20\x20\x20Branch:\x20'+_0x6fd4ff[_0x4a9f76(0x215)]);console['log'](_0x4a9f76(0x200)+new Date(_0x6fd4ff['createdAt'])[_0x4a9f76(0x263)]());_0x6fd4ff['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x6fd4ff[_0x4a9f76(0x267)])['toLocaleString']());if(_0x2ea341&&_0x2ea341[_0x4a9f76(0x1f3)]>0x0){console['log'](_0x289dec[_0x4a9f76(0x265)]);for(let _0x5a0c3e=0x0;_0x5a0c3e<_0x2ea341[_0x4a9f76(0x1f3)];_0x5a0c3e++){const _0x4563c8=_0x2ea341[_0x5a0c3e];let _0x452d01;if(_0x289dec['vZaCH'](_0x4563c8['status'],_0x289dec['IqlsH'])&&_0x4563c8['terminalReason']===_0x289dec[_0x4a9f76(0x205)])_0x452d01='✅';else{if(_0x289dec[_0x4a9f76(0x203)](_0x4563c8[_0x4a9f76(0x21c)],_0x289dec['sfZFL']))_0x452d01='🟢';else{if(_0x289dec[_0x4a9f76(0x203)](_0x4563c8[_0x4a9f76(0x21c)],'incomplete'))_0x452d01='🟠';else{if(_0x4563c8['status']===_0x289dec['BXCCx'])_0x452d01='🛑';else{if(_0x4563c8['status']==='closed')_0x452d01='⛔';else _0x289dec[_0x4a9f76(0x22c)](_0x4563c8['status'],_0x289dec[_0x4a9f76(0x276)])?_0x452d01='⏳':_0x452d01='⬜';}}}}const _0x55104b=_0x289dec['JmTcG'](_0x4563c8[_0x4a9f76(0x2aa)],0x1)?_0x4a9f76(0x271)+_0x4563c8['version']+')':'',_0x27ae34=_0x289dec['JmTcG'](_0x4563c8['version'],0x1)&&_0x4563c8[_0x4a9f76(0x24b)]&&_0x4563c8['status']!=='closed'&&_0x289dec[_0x4a9f76(0x1f9)](_0x4563c8['status'],_0x289dec['sfZFL'])?_0x289dec['uwSzn']:'';console[_0x4a9f76(0x277)]('\x20\x20\x20'+_0x289dec['zqXel'](_0x5a0c3e,0x1)+'.\x20'+_0x452d01+'\x20'+_0x4563c8['description']+_0x55104b+_0x27ae34);_0x4563c8['status']===_0x4a9f76(0x266)&&_0x4563c8[_0x4a9f76(0x1f7)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x4563c8['blockedReason']);_0x289dec[_0x4a9f76(0x270)](_0x4563c8['status'],_0x289dec['oxeTF'])&&_0x4563c8[_0x4a9f76(0x273)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x4563c8[_0x4a9f76(0x273)]);if(_0x289dec[_0x4a9f76(0x2b1)](_0x4563c8[_0x4a9f76(0x21c)],_0x4a9f76(0x213))&&_0x289dec['kRcHo'](_0x4563c8[_0x4a9f76(0x27a)],_0x4a9f76(0x2ac)))console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Approved');else _0x289dec[_0x4a9f76(0x2a6)](_0x4563c8['status'],_0x289dec['IqlsH'])&&_0x4563c8[_0x4a9f76(0x28e)]&&console[_0x4a9f76(0x277)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x4563c8['canceledReason']);}}}export async function featureCreate(_0x39ce08,_0x57b84d){const _0x11e5c1=_0x5334bd,_0x5605f8={'CdEUj':function(_0x35a816){return _0x35a816();},'mZhnn':function(_0x47a93f,_0x300647){return _0x47a93f(_0x300647);},'UfkdQ':'\x0aCreating\x20feature\x20review...','feWdK':function(_0x78a6ee,_0x1dfb16){return _0x78a6ee(_0x1dfb16);},'gfeGK':function(_0x394b82,_0xce9515,_0x5aa928){return _0x394b82(_0xce9515,_0x5aa928);}},{envNames:_0x50defd}=await _0x5605f8['CdEUj'](getEnvNames);_0x50defd['length']===0x0&&console['warn']('\x0a'+_0x5605f8[_0x11e5c1(0x204)](formatProfileRequiredMessage,_0x5d357f=>bold(_0x5d357f)));const _0x48758e=_0x57b84d[_0x11e5c1(0x294)]?_0x57b84d[_0x11e5c1(0x294)][_0x11e5c1(0x264)](_0x41ed53=>_0x41ed53[_0x11e5c1(0x218)]()):[],_0x5705dc=getGitRepoUrl(),_0x5349d8=getGitBranch();console['log'](_0x5605f8['UfkdQ']);const _0x37ff93=await _0x5605f8['mZhnn'](createFeature,{'name':_0x39ce08,'description':_0x57b84d[_0x11e5c1(0x227)],'checklist':_0x48758e,'gitRepoUrl':_0x5705dc,'gitBranch':_0x5349d8});await setActiveFeatureId(_0x37ff93['id']),await _0x5605f8['feWdK'](tryStartCurrentSession,_0x37ff93['id']);const _0x31486f=process['env'][_0x11e5c1(0x25f)];_0x31486f&&registerSession(_0x31486f,_0x37ff93['id']),console[_0x11e5c1(0x277)](_0x11e5c1(0x256)+_0x37ff93['id']),_0x5605f8[_0x11e5c1(0x245)](displayFeature,_0x37ff93,_0x37ff93[_0x11e5c1(0x1f5)]),console['log'](_0x11e5c1(0x2b6));}export async function featureList(_0x54ec21){const _0x21ff3f=_0x5334bd,_0x5d7fb9={'EyfzP':function(_0x9894d7){return _0x9894d7();},'YqaBK':function(_0x488cf7,_0x18f9f1){return _0x488cf7(_0x18f9f1);},'FXFjl':function(_0x233a55,_0x4eff00){return _0x233a55===_0x4eff00;},'yVzlG':'\x0aNo\x20feature\x20reviews\x20found.','Drmvz':function(_0xf8c94c,_0x1ac251){return _0xf8c94c>_0x1ac251;},'aIuxO':function(_0x22e838,_0x837140){return _0x22e838!==_0x837140;}},_0x18c252={'limit':_0x54ec21[_0x21ff3f(0x25b)]??0xa,'offset':_0x54ec21[_0x21ff3f(0x223)]??0x0,'includeDeleted':_0x54ec21['includeDeleted']};_0x54ec21[_0x21ff3f(0x22b)]&&(_0x18c252[_0x21ff3f(0x243)]=getGitRepoUrl(),_0x18c252['gitBranch']=_0x5d7fb9['EyfzP'](getGitBranch));const _0x357bd4=await _0x5d7fb9[_0x21ff3f(0x292)](listFeatures,_0x18c252);if(_0x5d7fb9['FXFjl'](_0x357bd4['items']['length'],0x0)){console['log'](_0x5d7fb9[_0x21ff3f(0x25c)]);return;}const _0x2ebb98=_0x5d7fb9['Drmvz'](_0x357bd4['totalCount'],_0x357bd4[_0x21ff3f(0x238)][_0x21ff3f(0x1f3)])?_0x21ff3f(0x23e)+_0x357bd4[_0x21ff3f(0x238)]['length']+'\x20of\x20'+_0x357bd4['totalCount']:_0x357bd4['totalCount']+'\x20feature\x20review(s)\x20found';console[_0x21ff3f(0x277)]('\x0a'+_0x2ebb98+':\x0a');for(const _0xb43f5f of _0x357bd4['items']){console['log'](''+_0xb43f5f[_0x21ff3f(0x29f)]),console['log'](_0x21ff3f(0x1ed)+_0xb43f5f['id']),_0xb43f5f['stats']&&console[_0x21ff3f(0x277)](_0x21ff3f(0x237)+getProgressDisplay(_0xb43f5f['stats'])),_0xb43f5f[_0x21ff3f(0x215)]&&console[_0x21ff3f(0x277)]('\x20\x20\x20Branch:\x20'+_0xb43f5f['gitBranch']),console[_0x21ff3f(0x277)](_0x21ff3f(0x200)+new Date(_0xb43f5f[_0x21ff3f(0x24f)])[_0x21ff3f(0x2a8)]()),console[_0x21ff3f(0x277)]('');}const _0x4eeb77=_0x18c252['limit']??0xa,_0x45bd29=(_0x18c252[_0x21ff3f(0x223)]??0x0)+_0x357bd4[_0x21ff3f(0x238)][_0x21ff3f(0x1f3)];if(_0x45bd29<_0x357bd4['totalCount']){const _0x302235=_0x5d7fb9['aIuxO'](_0x4eeb77,0xa)?_0x21ff3f(0x232)+_0x4eeb77:'',_0x57321d=_0x54ec21['currentBranch']?_0x21ff3f(0x26e):'',_0x17b2cf=_0x54ec21[_0x21ff3f(0x275)]?_0x21ff3f(0x20f):'';console['log']('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x45bd29+_0x302235+_0x57321d+_0x17b2cf);}}export async function featureShow(_0x564751){const _0x436183=_0x5334bd,_0x120fc4={'oDHwN':_0x436183(0x1fa)},_0x4f3629=_0x564751||await getActiveFeatureId();if(!_0x4f3629)throw new Error(_0x120fc4[_0x436183(0x1ef)]);const _0xc5af13=await getFeature(_0x4f3629);displayFeature(_0xc5af13,_0xc5af13[_0x436183(0x1f5)]);}export async function featureResume(_0x2e1739){const _0x2a3dc6=_0x5334bd,_0x393a1a={'yfnMM':function(_0x38c736,_0x26efab){return _0x38c736(_0x26efab);},'WmtdN':function(_0x52f3ba){return _0x52f3ba();},'BkTfe':function(_0x32ee21,_0x2bffc0){return _0x32ee21(_0x2bffc0);},'sASEp':function(_0x39183c,_0x20915e,_0x4a608c){return _0x39183c(_0x20915e,_0x4a608c);},'SiKWZ':function(_0x363c45){return _0x363c45();},'JXcLw':function(_0x307cae){return _0x307cae();},'jjwCP':function(_0x300e6f,_0x2252e2){return _0x300e6f&&_0x2252e2;},'MibnW':_0x2a3dc6(0x291),'rOEZN':function(_0x5d311d,_0x10219a){return _0x5d311d||_0x10219a;},'uPZbb':function(_0x59fa73,_0x31bbbb){return _0x59fa73===_0x31bbbb;},'KJlCa':_0x2a3dc6(0x2a1),'GRHkO':_0x2a3dc6(0x27d),'yhwsY':_0x2a3dc6(0x2b3),'yyKSF':function(_0x451968,_0x45d407){return _0x451968(_0x45d407);},'kLVfX':function(_0x564e8c,_0x2b6107){return _0x564e8c!==_0x2b6107;},'Fetnc':function(_0x4c8111,_0xadc97b,_0x339111){return _0x4c8111(_0xadc97b,_0x339111);}};if(_0x2e1739){const _0x4d9904=await _0x393a1a['yfnMM'](getFeature,_0x2e1739);await setActiveFeatureId(_0x4d9904['id']);const _0x2b75cc=_0x393a1a['WmtdN'](getGitBranch);_0x2b75cc&&_0x2b75cc!==_0x4d9904['gitBranch']&&(await updateFeature(_0x4d9904['id'],{'gitBranch':_0x2b75cc}),console['log'](_0x2a3dc6(0x28b)+_0x2b75cc));console['log'](_0x2a3dc6(0x207)+_0x4d9904['name']+'\x20('+_0x4d9904['id']+')'),await _0x393a1a[_0x2a3dc6(0x258)](tryStartCurrentSession,_0x4d9904['id']);const _0x7d8480=process[_0x2a3dc6(0x296)]['CLAUDE_SESSION_ID'];_0x7d8480&&registerSession(_0x7d8480,_0x4d9904['id']);_0x393a1a[_0x2a3dc6(0x286)](displayFeature,_0x4d9904,_0x4d9904['checklistItems']),await _0x393a1a['yfnMM'](printFeedbackNudge,_0x4d9904['id']);return;}const _0xf4119c=_0x393a1a[_0x2a3dc6(0x26b)](getGitRepoUrl),_0x354bd6=_0x393a1a['JXcLw'](getGitBranch);if(_0x393a1a[_0x2a3dc6(0x241)](!_0xf4119c,!_0x354bd6))throw new Error(_0x393a1a[_0x2a3dc6(0x216)]);console[_0x2a3dc6(0x277)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+(_0xf4119c||_0x2a3dc6(0x20b))+'\x20/\x20'+_0x393a1a['rOEZN'](_0x354bd6,'any')+_0x2a3dc6(0x219));const _0x26f082=await listFeatures({'gitRepoUrl':_0xf4119c,'gitBranch':_0x354bd6}),_0x5c9cfb=_0x26f082[_0x2a3dc6(0x238)]['filter'](_0x32b476=>_0x32b476['status']?_0x32b476['status']!==_0x2a3dc6(0x20e):!_0x32b476[_0x2a3dc6(0x267)]);if(_0x393a1a[_0x2a3dc6(0x28d)](_0x5c9cfb[_0x2a3dc6(0x1f3)],0x0)){console['log'](_0x393a1a['KJlCa']),console[_0x2a3dc6(0x277)](_0x2a3dc6(0x25a));return;}let _0x58733c;if(_0x393a1a['uPZbb'](_0x5c9cfb['length'],0x1))_0x58733c=_0x5c9cfb[0x0];else{const _0x1dd8f1=process[_0x2a3dc6(0x2a4)]['isTTY']&&process['stdout']['isTTY'];if(!_0x1dd8f1){console[_0x2a3dc6(0x277)](_0x2a3dc6(0x2ab));for(const _0x10318e of _0x5c9cfb){console[_0x2a3dc6(0x277)]('\x20\x20'+_0x10318e[_0x2a3dc6(0x29f)]),console['log'](_0x2a3dc6(0x1f6)+_0x10318e['id']),_0x10318e['stats']&&console[_0x2a3dc6(0x277)](_0x2a3dc6(0x228)+_0x393a1a[_0x2a3dc6(0x258)](getProgressDisplay,_0x10318e[_0x2a3dc6(0x260)])),_0x10318e[_0x2a3dc6(0x215)]&&console[_0x2a3dc6(0x277)](_0x2a3dc6(0x253)+_0x10318e[_0x2a3dc6(0x215)]);}throw new Error('Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>');}const {selected:_0x43e97}=await _0x422fc2['prompt']([{'type':_0x2a3dc6(0x29b),'name':_0x393a1a[_0x2a3dc6(0x1f2)],'message':_0x393a1a['yhwsY'],'choices':_0x5c9cfb[_0x2a3dc6(0x264)](_0x5a3ae0=>({'name':_0x5a3ae0[_0x2a3dc6(0x29f)]+'\x20('+_0x5a3ae0['id']+')','value':_0x5a3ae0['id']}))}]);_0x58733c=_0x5c9cfb['find'](_0x27d6ee=>_0x27d6ee['id']===_0x43e97);}await _0x393a1a['yyKSF'](setActiveFeatureId,_0x58733c['id']);_0x354bd6&&_0x393a1a['kLVfX'](_0x354bd6,_0x58733c[_0x2a3dc6(0x215)])&&(await _0x393a1a[_0x2a3dc6(0x240)](updateFeature,_0x58733c['id'],{'gitBranch':_0x354bd6}),console[_0x2a3dc6(0x277)](_0x2a3dc6(0x28b)+_0x354bd6));console[_0x2a3dc6(0x277)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x58733c[_0x2a3dc6(0x29f)]+'\x20('+_0x58733c['id']+')'),await _0x393a1a[_0x2a3dc6(0x1eb)](tryStartCurrentSession,_0x58733c['id']);const _0x1ce0c8=await getFeature(_0x58733c['id']),_0x4d3236=process['env'][_0x2a3dc6(0x25f)];_0x4d3236&&registerSession(_0x4d3236,_0x1ce0c8['id']),displayFeature(_0x1ce0c8,_0x1ce0c8[_0x2a3dc6(0x1f5)]),await printFeedbackNudge(_0x1ce0c8['id']);}async function printFeedbackNudge(_0x378587){const _0xe01faf=_0x5334bd,_0x543fb7={'HrGZa':function(_0x709b9,_0xc2afa0,_0x7944d1){return _0x709b9(_0xc2afa0,_0x7944d1);}};try{const {items:_0x290051}=await getActionItems(_0x378587);let _0x34d16e=0x0,_0x1f3bc4=0x0;for(const _0x3048f7 of _0x290051){const _0x543985=await _0x543fb7[_0xe01faf(0x2a9)](getItemFeedback,_0x378587,_0x3048f7['id']);_0x543985['unaddressedComments']['length']>0x0&&(_0x34d16e+=_0x543985['unaddressedComments'][_0xe01faf(0x1f3)],_0x1f3bc4++);}_0x34d16e>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x34d16e+_0xe01faf(0x23c)+_0x1f3bc4+_0xe01faf(0x297)),console[_0xe01faf(0x277)]('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x255e25){const _0x6865fd=_0x5334bd;try{const {sessions:_0x59b9e9}=await listFeatureSessions(_0x255e25),_0x516592=_0x59b9e9['find'](_0x3ae5c7=>_0x3ae5c7[_0x6865fd(0x21c)]===_0x6865fd(0x298));_0x516592&&(await startSession(_0x255e25,_0x516592['id']),console[_0x6865fd(0x277)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x516592[_0x6865fd(0x1fd)]));}catch{}}export async function featureReport(_0xf4da7f,_0x1a1711){const _0x1efce0=_0x5334bd,_0x4f5581={'Odamf':function(_0x59a31a,_0x1b54db,_0xe1b859){return _0x59a31a(_0x1b54db,_0xe1b859);},'krFYs':function(_0x2abb70,_0xe57065,_0x31dafe,_0x3a56a6){return _0x2abb70(_0xe57065,_0x31dafe,_0x3a56a6);},'iopyK':'reports','oqdIY':function(_0x14e93e,_0x47f8f8,_0xb86447){return _0x14e93e(_0x47f8f8,_0xb86447);},'KRaFL':function(_0x4e62fa,_0x5856e6){return _0x4e62fa(_0x5856e6);},'tqSSw':function(_0x59504f,_0x4af9b1,_0xfee4c1){return _0x59504f(_0x4af9b1,_0xfee4c1);}},_0x288569=_0xf4da7f||await getActiveFeatureId();if(!_0x288569)throw new Error(_0x1efce0(0x254));console['log']('\x0aGenerating\x20report...');const _0x5df8fd=await _0x4f5581['Odamf'](getFeatureReportMarkdown,_0x288569,{'style':_0x1a1711[_0x1efce0(0x2a7)]}),_0x75776=_0x1a1711['output']||_0x4f5581['krFYs'](join,getRangerDir(),_0x4f5581[_0x1efce0(0x268)],_0x288569+'.md'),_0x5a3435=_0x4f5581['oqdIY'](join,_0x75776,'..');!_0x4f5581['KRaFL'](existsSync,_0x5a3435)&&await _0x4f5581[_0x1efce0(0x222)](mkdir,_0x5a3435,{'recursive':!![]}),await writeFile(_0x75776,_0x5df8fd,'utf-8'),console[_0x1efce0(0x277)]('\x0a✅\x20Report\x20generated:\x20'+_0x75776);}function getScenarioResult(_0x170ba9){const _0x37949a=_0x5334bd,_0x5f7f3={'HUdug':function(_0x37a621,_0x2f0247){return _0x37a621===_0x2f0247;},'SwNFq':'closed','xzplv':_0x37949a(0x220),'TqoIi':'in_progress'};if(_0x5f7f3['HUdug'](_0x170ba9['status'],_0x5f7f3['SwNFq']))return _0x170ba9[_0x37949a(0x27a)]??'closed';if(_0x170ba9[_0x37949a(0x21c)]===_0x5f7f3[_0x37949a(0x214)])return _0x5f7f3[_0x37949a(0x1e4)];return _0x170ba9['status'];}function getScenarioRationale(_0x5bc3ae,_0x4d0b64){const _0x2cd6f5=_0x5334bd;if(_0x4d0b64)return _0x4d0b64;if(_0x5bc3ae[_0x2cd6f5(0x1f7)])return _0x5bc3ae[_0x2cd6f5(0x1f7)];if(_0x5bc3ae[_0x2cd6f5(0x273)])return _0x5bc3ae[_0x2cd6f5(0x273)];if(_0x5bc3ae[_0x2cd6f5(0x28e)])return _0x5bc3ae[_0x2cd6f5(0x28e)];if(_0x5bc3ae['notes'])return _0x5bc3ae[_0x2cd6f5(0x21f)];return null;}export async function featureReportPrDescription(_0x4f3f62,_0x21e2a6){const _0x1f505b=_0x5334bd,_0x353861={'RdfYD':function(_0x3cdc02,_0x4fa472){return _0x3cdc02(_0x4fa472);},'SPUqy':function(_0x339e44,_0x191f0e,_0x4648d3){return _0x339e44(_0x191f0e,_0x4648d3);},'QQVdM':function(_0x24ab72,_0x15814f){return _0x24ab72===_0x15814f;},'HZJAO':function(_0x3f77d2,_0x2548cc){return _0x3f77d2+_0x2548cc;},'fQPvo':function(_0x1b1cbb,_0x59f05a,_0x4eb9cf){return _0x1b1cbb(_0x59f05a,_0x4eb9cf);}},_0x173147=_0x4f3f62||await getActiveFeatureId();if(!_0x173147)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x15814c=await _0x353861['RdfYD'](getFeature,_0x173147),_0x94cbc7=_0x15814c[_0x1f505b(0x1f5)]||[],_0x4c4943=_0x353861['SPUqy'](getCurrentSessionItems,_0x15814c,_0x94cbc7);_0x353861['QQVdM'](_0x4c4943[_0x1f505b(0x1f3)],0x0)&&(console[_0x1f505b(0x261)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x2d38e3=_0x21e2a6['excludeScenarios']??[],_0x45c2b2=_0x2d38e3[_0x1f505b(0x208)](_0x9b9353=>!Number['isInteger'](_0x9b9353)||_0x9b9353<0x1||_0x9b9353>_0x4c4943['length']);if(_0x45c2b2[_0x1f505b(0x1f3)]>0x0){console[_0x1f505b(0x261)](_0x1f505b(0x2b0)+_0x45c2b2['join'](',\x20')),console['log'](_0x1f505b(0x26f));for(let _0x3d4810=0x0;_0x3d4810<_0x4c4943[_0x1f505b(0x1f3)];_0x3d4810++){console[_0x1f505b(0x277)]('\x20\x20'+_0x353861[_0x1f505b(0x20a)](_0x3d4810,0x1)+'.\x20'+_0x4c4943[_0x3d4810][_0x1f505b(0x227)]);}process['exit'](0x1);}const _0xa6ca7e=new Set(_0x2d38e3['map'](_0x181ab6=>_0x181ab6-0x1)),_0xfd7bd3=_0x4c4943[_0x1f505b(0x208)]((_0x5e8201,_0xab0ae)=>!_0xa6ca7e[_0x1f505b(0x23d)](_0xab0ae));_0xfd7bd3[_0x1f505b(0x1f3)]===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x21e2a6[_0x1f505b(0x293)])await outputJsonReport(_0x173147,_0x15814c,_0xfd7bd3);else{const _0x37a020=await _0x353861[_0x1f505b(0x1fc)](getFeatureReportMarkdown,_0x173147,{'itemIds':_0xfd7bd3[_0x1f505b(0x264)](_0x25416b=>_0x25416b['id'])});process[_0x1f505b(0x23f)]['write'](_0x37a020['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x30bf3b,_0x149204,_0x195864){const _0x1a0084=_0x5334bd,_0x420b8d={'zWmKf':function(_0x59d96e,_0x564c44){return _0x59d96e(_0x564c44);},'CAoww':function(_0xffd8e3,_0x31f6b3){return _0xffd8e3>_0x31f6b3;},'BoDTo':function(_0x56d071,_0x50e762){return _0x56d071===_0x50e762;},'TVcNX':function(_0xf4b617,_0x270ade){return _0xf4b617(_0x270ade);},'pGCji':function(_0x563a7b,_0x4704c6,_0x133b66){return _0x563a7b(_0x4704c6,_0x133b66);},'VjKdP':function(_0x520883){return _0x520883();},'ZHvCv':function(_0x36052d,_0x3dbae0){return _0x36052d+_0x3dbae0;}},_0x237056=_0x420b8d['VjKdP'](getApiBaseUrl),_0x2d2b17=await getFeatureReport(_0x30bf3b),_0x57084a=new Map(_0x2d2b17[_0x1a0084(0x1f5)]['map'](_0x48ad3e=>[_0x48ad3e['id'],_0x48ad3e])),_0x1d92c2=await Promise['all'](_0x195864['map'](async _0x147ee4=>{const _0x60c49=_0x1a0084,_0x4b2913=_0x57084a['get'](_0x147ee4['id']),_0x583006=_0x4b2913?.[_0x60c49(0x1e8)]??null;let _0x2c3bec=[];if(_0x147ee4[_0x60c49(0x24e)])try{const {steps:_0x2a4a7b}=await _0x420b8d[_0x60c49(0x242)](getBrowserSessionSteps,_0x147ee4[_0x60c49(0x24e)]);_0x420b8d[_0x60c49(0x2b7)](_0x2a4a7b[_0x60c49(0x1f3)],0x0)&&(_0x2c3bec=_0x2a4a7b[_0x60c49(0x264)](_0x2ef4f8=>{const _0x25043c=_0x60c49,_0x45d173=_0x2ef4f8[_0x25043c(0x278)]['find'](_0x594eb6=>_0x594eb6[_0x25043c(0x1ea)]===_0x25043c(0x1f4)&&_0x594eb6[_0x25043c(0x288)]==='after')??_0x2ef4f8[_0x25043c(0x278)]['find'](_0x38afcc=>_0x38afcc['assetType']==='screenshot');let _0x25e2a0=null,_0x395b2d=null;if(_0x45d173){const _0x3c7d6b=_0x45d173['storage']['location'][_0x25043c(0x283)]('/')['pop']();_0x25e2a0=_0x237056+'/api/v1/mcp/browser-sessions/'+_0x147ee4[_0x25043c(0x24e)]+'/artifacts/'+_0x3c7d6b,_0x3c7d6b&&(_0x395b2d=_0x3c7d6b['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x395b2d||_0x2ef4f8['description']||_0x2ef4f8['stepName']||_0x25043c(0x28a)+_0x2ef4f8[_0x25043c(0x22d)],'screenshot':_0x25e2a0,'is_key_step':_0x2ef4f8[_0x25043c(0x26d)]};}));}catch{}return _0x420b8d[_0x60c49(0x24c)](_0x2c3bec['length'],0x0)&&_0x583006?.['screenshotUrls']&&(_0x2c3bec=_0x583006['screenshotUrls']['map']((_0x1f0034,_0x20ce65)=>({'description':'Screenshot\x20'+(_0x20ce65+0x1),'screenshot':_0x1f0034,'is_key_step':![]}))),{'description':_0x147ee4['description'],'result':_0x420b8d['TVcNX'](getScenarioResult,_0x147ee4),'rationale':_0x420b8d['pGCji'](getScenarioRationale,_0x147ee4,_0x583006?.['agentResponse']),'steps':_0x2c3bec};})),_0x343ede={'url':_0x149204['dashboardUrl'],'scenarios':_0x1d92c2};process['stdout']['write'](_0x420b8d['ZHvCv'](JSON['stringify'](_0x343ede,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x4b95eb){const _0x33bf57=_0x5334bd,_0xc3476d={'aiqyD':_0x33bf57(0x1fa),'EZxyg':function(_0x2f7583,_0x427ff2){return _0x2f7583(_0x427ff2);},'pSoNs':_0x33bf57(0x27b),'AlCBf':function(_0x10815e,_0x3a8446){return _0x10815e(_0x3a8446);},'oaWGF':'Current\x20session\x20not\x20found.','Qoidt':'completed','rcaSY':'\x0a✅\x20Session\x20is\x20already\x20completed.','PWMzV':'in_progress'},_0x285b31=_0x4b95eb||await getActiveFeatureId();if(!_0x285b31)throw new Error(_0xc3476d['aiqyD']);const _0x3fafa8=await _0xc3476d[_0x33bf57(0x230)](getFeature,_0x285b31);if(!_0x3fafa8['currentSessionId'])throw new Error(_0xc3476d['pSoNs']);const {sessions:_0x4fbbbc}=await _0xc3476d['AlCBf'](listFeatureSessions,_0x285b31),_0x3df7a4=_0x4fbbbc[_0x33bf57(0x236)](_0x56fa6e=>_0x56fa6e['id']===_0x3fafa8[_0x33bf57(0x285)]);if(!_0x3df7a4)throw new Error(_0xc3476d[_0x33bf57(0x235)]);if(_0x3df7a4['status']===_0xc3476d[_0x33bf57(0x280)]){console['log'](_0xc3476d['rcaSY']);return;}if(_0x3df7a4['status']!==_0xc3476d['PWMzV'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x3df7a4[_0x33bf57(0x21c)]);console['log'](_0x33bf57(0x255)),await concludeSession(_0x285b31,_0x3fafa8[_0x33bf57(0x285)]),console['log']('\x0a✅\x20Session\x20'+_0x3df7a4['iteration']+'\x20concluded.'),console['log'](_0x33bf57(0x269));}export async function featureSessions(_0x4bd3a3){const _0x3e0e47=_0x5334bd,_0x408b8c={'ZuGzs':function(_0x5a5bb0){return _0x5a5bb0();},'lyrJp':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','DkwoY':function(_0xa72351,_0x4838f9){return _0xa72351(_0x4838f9);},'jpXPj':function(_0x12b998,_0x8fc17d){return _0x12b998===_0x8fc17d;},'frCgl':function(_0x27c4ee,_0x430cf5){return _0x27c4ee===_0x430cf5;},'yUpsB':'completed','yoOVP':function(_0x985420,_0x3f6b3a){return _0x985420===_0x3f6b3a;},'zpUNt':'in_progress'},_0x1ef760=_0x4bd3a3||await _0x408b8c['ZuGzs'](getActiveFeatureId);if(!_0x1ef760)throw new Error(_0x408b8c[_0x3e0e47(0x211)]);const _0x5addc5=await _0x408b8c['DkwoY'](getFeature,_0x1ef760);console[_0x3e0e47(0x277)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x5addc5['name']+'\x0a');const {sessions:_0x47f1c9}=await _0x408b8c[_0x3e0e47(0x1e9)](listFeatureSessions,_0x1ef760);if(_0x408b8c[_0x3e0e47(0x22e)](_0x47f1c9['length'],0x0)){console[_0x3e0e47(0x277)]('No\x20sessions\x20found.');return;}for(const _0x4a5197 of _0x47f1c9){const _0x1d5e77=_0x408b8c['frCgl'](_0x4a5197[_0x3e0e47(0x21c)],_0x408b8c['yUpsB'])?'✅':_0x408b8c[_0x3e0e47(0x217)](_0x4a5197[_0x3e0e47(0x21c)],_0x408b8c['zpUNt'])?'🔄':'▶️';console['log'](_0x1d5e77+_0x3e0e47(0x202)+_0x4a5197['iteration']+'\x20('+_0x4a5197['id']+')'),console['log'](_0x3e0e47(0x29e)+_0x4a5197['status']),console[_0x3e0e47(0x277)]('\x20\x20\x20Created:\x20'+new Date(_0x4a5197['createdAt'])[_0x3e0e47(0x263)]()),_0x4a5197[_0x3e0e47(0x267)]&&console['log'](_0x3e0e47(0x262)+new Date(_0x4a5197[_0x3e0e47(0x267)])[_0x3e0e47(0x263)]()),console[_0x3e0e47(0x277)]('');}}export async function featureAddScenario(_0x2b03dd,_0x3a42f8){const _0xf9c77c=_0x5334bd,_0x39bbad={'BfSvf':_0xf9c77c(0x1fa),'YSfta':function(_0x4c1a8f,_0x4bf612,_0x47450a){return _0x4c1a8f(_0x4bf612,_0x47450a);}},_0x3e130d=_0x3a42f8||await getActiveFeatureId();if(!_0x3e130d)throw new Error(_0x39bbad['BfSvf']);const _0x51df52=await getFeature(_0x3e130d);if(_0x51df52[_0xf9c77c(0x2af)]&&!_0x51df52[_0xf9c77c(0x2af)][_0xf9c77c(0x25d)])throw new Error(_0xf9c77c(0x246)+_0x51df52['dashboardUrl']);await _0x39bbad[_0xf9c77c(0x210)](createChecklistItem,_0x3e130d,_0x2b03dd);const _0x25be85=await getFeature(_0x3e130d);console[_0xf9c77c(0x277)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x25be85,_0x25be85[_0xf9c77c(0x1f5)]);}export async function featureEditScenario(_0xe053e1,_0x32eeb9){const _0x4164a6=_0x5334bd,_0x112f5a={'BDKJd':function(_0x650e3b){return _0x650e3b();},'hPnDu':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','FFXNe':function(_0x4397a3,_0x5c77c8){return _0x4397a3(_0x5c77c8);},'RONWV':function(_0x3dc823,_0x32c44a){return _0x3dc823===_0x32c44a;},'ylZcR':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','oBEDK':'\x0aAvailable\x20scenarios:','CxWfz':function(_0x3bb8a1,_0xb2724f){return _0x3bb8a1<_0xb2724f;},'Dwmki':function(_0x2d078c,_0x34e027){return _0x2d078c+_0x34e027;},'FKTKN':function(_0x103b5b,_0x683968){return _0x103b5b-_0x683968;},'TcBAE':function(_0x15db95,_0x53dbf8){return _0x15db95(_0x53dbf8);},'zfEEG':function(_0x424ae7,_0x14029b,_0x1172ef){return _0x424ae7(_0x14029b,_0x1172ef);}},_0x3322fa=_0x32eeb9['id']||await _0x112f5a[_0x4164a6(0x27f)](getActiveFeatureId);!_0x3322fa&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x4164a6(0x261)](_0x112f5a['hPnDu']),process['exit'](0x1));const _0x264719=await _0x112f5a['FFXNe'](getFeature,_0x3322fa);_0x264719[_0x4164a6(0x2af)]&&!_0x264719['latestReview'][_0x4164a6(0x25d)]&&(console[_0x4164a6(0x261)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x4164a6(0x261)](_0x4164a6(0x2ae)),console['error']('\x20\x20'+_0x264719['dashboardUrl']),process['exit'](0x1));const _0x416927=_0x264719[_0x4164a6(0x1f5)]||[];_0x416927['length']===0x0&&(console[_0x4164a6(0x261)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process[_0x4164a6(0x23b)](0x1));if(_0x112f5a[_0x4164a6(0x20c)](_0x32eeb9[_0x4164a6(0x289)],undefined)){console['error'](_0x112f5a[_0x4164a6(0x1e7)]),console['log'](_0x112f5a['oBEDK']);for(let _0x16f1b5=0x0;_0x112f5a['CxWfz'](_0x16f1b5,_0x416927['length']);_0x16f1b5++){console['log']('\x20\x20'+_0x112f5a[_0x4164a6(0x290)](_0x16f1b5,0x1)+'.\x20'+_0x416927[_0x16f1b5][_0x4164a6(0x227)]);}process[_0x4164a6(0x23b)](0x1);}const _0x5e9917=_0x112f5a['FKTKN'](_0x32eeb9[_0x4164a6(0x289)],0x1);if(_0x112f5a['CxWfz'](_0x5e9917,0x0)||_0x5e9917>=_0x416927[_0x4164a6(0x1f3)]){console[_0x4164a6(0x261)](_0x4164a6(0x29d)+_0x32eeb9['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x416927['length']+_0x4164a6(0x2b8)),console[_0x4164a6(0x277)](_0x4164a6(0x26f));for(let _0x5284f2=0x0;_0x5284f2<_0x416927[_0x4164a6(0x1f3)];_0x5284f2++){console[_0x4164a6(0x277)]('\x20\x20'+_0x112f5a['Dwmki'](_0x5284f2,0x1)+'.\x20'+_0x416927[_0x5284f2][_0x4164a6(0x227)]);}process[_0x4164a6(0x23b)](0x1);}const _0xdabcbf=_0x416927[_0x5e9917];await updateChecklistItem(_0x3322fa,_0xdabcbf['id'],{'description':_0xe053e1});const _0x14c2a7=await _0x112f5a[_0x4164a6(0x299)](getFeature,_0x3322fa);console[_0x4164a6(0x277)](_0x4164a6(0x212)),_0x112f5a['zfEEG'](displayFeature,_0x14c2a7,_0x14c2a7['checklistItems']);}async function downloadFeedbackImage(_0x47f28c,_0x2cdb5a){const _0x4ebbe3=_0x5334bd,_0x1f4881={'MFeQm':function(_0x3691b1,_0x20a073,_0x1aa240){return _0x3691b1(_0x20a073,_0x1aa240);},'dVFZr':'feedback-images','cpTgr':function(_0x21c7a4,_0x40579e,_0x3ba238){return _0x21c7a4(_0x40579e,_0x3ba238);},'fpppr':function(_0x248dea,_0x574e48){return _0x248dea(_0x574e48);}};try{const _0x4d295b=_0x1f4881['MFeQm'](join,getRangerDir(),_0x1f4881['dVFZr']);await _0x1f4881[_0x4ebbe3(0x201)](mkdir,_0x4d295b,{'recursive':!![]});const _0xe8aa69=_0x1f4881['MFeQm'](join,_0x4d295b,_0x4ebbe3(0x1e5)+_0x2cdb5a+'.png'),_0x433016=await _0x1f4881['fpppr'](fetch,_0x47f28c);if(!_0x433016['ok'])return null;const _0x1f5737=Buffer[_0x4ebbe3(0x231)](await _0x433016[_0x4ebbe3(0x251)]());return await _0x1f4881['cpTgr'](writeFile,_0xe8aa69,_0x1f5737),_0xe8aa69;}catch{return null;}}export async function featureGetReview(_0x582342){const _0x5a0346=_0x5334bd,_0x2150ca={'MUyyY':function(_0x45f724,_0x2e5db5){return _0x45f724===_0x2e5db5;},'AOhwA':function(_0x16cd8c,_0x36af6c){return _0x16cd8c<_0x36af6c;},'PoxqY':_0x5a0346(0x1e3),'HNbuJ':_0x5a0346(0x22a),'uXKeq':'Unknown','qItif':'point','FJMFm':function(_0x41542f,_0x1ffd30){return _0x41542f+_0x1ffd30;}},_0x274aa3=_0x582342||await getActiveFeatureId();if(!_0x274aa3)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 _0x2cbbac=await getFeature(_0x274aa3),{items:_0x9cbd50}=await getActionItems(_0x274aa3);console[_0x5a0346(0x277)]('\x0a📋\x20Feedback\x20for:\x20'+_0x2cbbac[_0x5a0346(0x29f)]+'\x20('+_0x2cbbac['id']+')\x0a');if(_0x2150ca['MUyyY'](_0x9cbd50['length'],0x0)){console['log'](_0x5a0346(0x27c));return;}for(let _0x5a9f57=0x0;_0x2150ca['AOhwA'](_0x5a9f57,_0x9cbd50[_0x5a0346(0x1f3)]);_0x5a9f57++){const _0x17dc20=_0x9cbd50[_0x5a9f57],_0xf0200e=_0x17dc20[_0x5a0346(0x2aa)]>0x1?'\x20(v'+_0x17dc20['version']+')':'',_0x4829a9=await getItemFeedback(_0x274aa3,_0x17dc20['id']);if(_0x4829a9[_0x5a0346(0x272)]['length']>0x0){console[_0x5a0346(0x277)](_0x5a0346(0x27e)+(_0x5a9f57+0x1)+_0x5a0346(0x2b4)+_0x17dc20[_0x5a0346(0x227)]+'\x22'+_0xf0200e+'\x20—\x20'+_0x4829a9[_0x5a0346(0x272)]['length']+_0x5a0346(0x252));for(const _0x397196 of _0x4829a9['unaddressedComments']){const _0x35f0ca=new Date(_0x397196['createdAt'])['toLocaleDateString'](_0x2150ca['PoxqY'],{'month':_0x5a0346(0x209),'day':_0x2150ca['HNbuJ']}),_0x104e24=_0x397196['authorName']||_0x397196['authorEmail']||_0x2150ca['uXKeq'];console['log'](_0x5a0346(0x24a)+_0x104e24+'\x20('+_0x35f0ca+_0x5a0346(0x1f1)+_0x397196[_0x5a0346(0x28c)]+'\x22');if(_0x397196['assetUrl']){const _0x3323c5=await downloadFeedbackImage(_0x397196[_0x5a0346(0x249)],_0x397196['id']);_0x3323c5&&console[_0x5a0346(0x277)](_0x5a0346(0x21a)+_0x3323c5);}if(_0x397196[_0x5a0346(0x2ad)]){const _0x48649e=_0x397196['domRef'][_0x5a0346(0x229)][_0x5a0346(0x283)](_0x5a0346(0x244))[_0x5a0346(0x1ff)]()?.['split'](':')[0x0]||'element',_0x9bdd63=_0x397196[_0x5a0346(0x2ad)][_0x5a0346(0x2a0)]?'\x20\x22'+_0x397196['domRef']['textContent'][_0x5a0346(0x2b2)](0x0,0x3c)+'\x22':'';console[_0x5a0346(0x277)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x48649e+'>'+_0x9bdd63),console['log']('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x397196[_0x5a0346(0x2ad)][_0x5a0346(0x229)]);}else{if(_0x397196[_0x5a0346(0x24d)]){const _0x3ecb98=_0x397196[_0x5a0346(0x24d)]['coordinates'];_0x397196['spatial'][_0x5a0346(0x23a)]===_0x2150ca['qItif']&&_0x3ecb98[_0x5a0346(0x1f3)]>=0x2?console['log'](_0x5a0346(0x1ec)+_0x3ecb98[0x0]['toFixed'](0x2)+',\x20'+_0x3ecb98[0x1]['toFixed'](0x2)+')'):console[_0x5a0346(0x277)](_0x5a0346(0x233)+_0x397196['spatial']['type']+_0x5a0346(0x1e6)+_0x3ecb98['map'](_0x1164c4=>_0x1164c4['toFixed'](0x2))['join'](',\x20')+']');}}}if(_0x4829a9[_0x5a0346(0x257)]){console[_0x5a0346(0x277)]('\x20\x20Expected\x20flow:');for(const _0x2a4c73 of _0x4829a9[_0x5a0346(0x257)]['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x2a4c73);}}}else console['log'](_0x5a0346(0x27e)+_0x2150ca['FJMFm'](_0x5a9f57,0x1)+_0x5a0346(0x2b4)+_0x17dc20[_0x5a0346(0x227)]+'\x22'+_0xf0200e+'\x20—\x20no\x20comments'),console[_0x5a0346(0x277)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console['log']('');}}export async function featureDelete(_0x39385b){const _0x41a183=_0x5334bd,_0x58dc49={'xIyTs':function(_0x383313){return _0x383313();},'vZwOe':_0x41a183(0x1fa),'qIBmI':function(_0x57ec59,_0x1a9578){return _0x57ec59(_0x1a9578);},'yvQOu':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x243f3d=_0x39385b||await _0x58dc49[_0x41a183(0x20d)](getActiveFeatureId);if(!_0x243f3d)throw new Error(_0x58dc49[_0x41a183(0x295)]);const _0x282144=await _0x58dc49[_0x41a183(0x29a)](getFeature,_0x243f3d);await softDeleteFeature(_0x243f3d),console[_0x41a183(0x277)](_0x41a183(0x225)+_0x282144[_0x41a183(0x29f)]+'\x20('+_0x243f3d+')'),console['log'](_0x58dc49[_0x41a183(0x259)]+_0x243f3d);}export async function featureRestore(_0x433a57){const _0x1aaf2c=_0x5334bd,_0x4e388f={'NcbKr':function(_0x4b2b2a,_0x40141,_0x1aa347){return _0x4b2b2a(_0x40141,_0x1aa347);}};await restoreFeature(_0x433a57);const _0x20657f=await getFeature(_0x433a57);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x20657f[_0x1aaf2c(0x29f)]+'\x20('+_0x433a57+')'),_0x4e388f[_0x1aaf2c(0x25e)](displayFeature,_0x20657f,_0x20657f[_0x1aaf2c(0x1f5)]);}
1
+ const _0x1f563c=_0x19b7;function _0x47ce(){const _0x83861f=['YwdTp','ipIpc','LUgvn','createdAt','No\x20scenarios\x20found.','offset','scenarios','toFixed','stepName','comment_','\x20\x20\x20Branch:\x20','\x20\x20\x20\x20\x20\x20Incomplete:\x20','style','kIbkv','.md','terminalReason','SxzOK','name','incompleteItems','\x0aConcluding\x20session...','stdout','checklistItems','361784KQPdUm','completedAt','mcqZZ','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','blockedItems','OGJxk','gitRepoUrl','\x0a✅\x20Scenario\x20added','FRune','round','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','pipe','nqzpZ','bDEon','\x20\x20✅\x20No\x20feedback\x20to\x20address','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20\x20\x20Completed:\x20','\x0a✅\x20Scenario\x20updated','trim','16292ngrGfc','\x0a✅\x20Resumed\x20feature\x20review:\x20','isKeyStep','status','MKMXP','1NfAftf','\x20\x20\x20\x20\x20📋\x20Selector:\x20','xsDgn','PWLaG','\x0a⚠️\x20\x20','canonicalFlow','sessionId','from','56322ZULBfA','element','UXHte','\x20\x20\x20\x20\x20\x20Cancelled:\x20','version','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','type','closed','description','reports','canceledReason','noIJa','pvXCe','length','assetType','env','NnaXn','\x20\x20\x20\x20\x20\x20Blocked:\x20','92411DZuJKt','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','git\x20remote\x20get-url\x20origin','BpBQR','OQPPM','dLwCo','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','447957EjjxmG','\x20\x20\x20Progress:\x20','dFQyb','find','includeDeleted','authorName','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','storage','OoygP','105bQSMsa','\x0aCreating\x20feature\x20review...','\x20concluded.','ySzKl','map','qRRoD','en-US','push','EQefm','aBGjT','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','\x20\x20\x20\x20\x20Branch:\x20','filter','\x0aAvailable\x20scenarios:','\x20\x20\x20Created:\x20','GEoHf','get','jLPri','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','XSjjS','gitBranch','incompleteReason','\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.','linkedSession','screenshot','\x20of\x20','YeYgP','content','\x0aNo\x20feature\x20reviews\x20found.','MwudO','ErxPD','219778KwzAIN','pmbhc','Zvayl','889250YeKrWG','incomplete','DFYro','bRywo','lZpeD','Ksszx','yzevW','currentSessionId','fTKhK','kEJjN','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','14nVpvgn','excludeScenarios','\x20blocked','browserSessionId','scenario','warn','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','spatial','LaHRF','Showing\x20','bipVF','latestReview','\x0a✅\x20Feature\x20review\x20created:\x20','RANGER_TEST_USERNAME','point','feedback-images','HdYMg','No\x20active\x20session\x20for\x20this\x20feature\x20review.','ubtji','exit','\x20\x20\x20Repository:\x20','.png','\x0a✅\x20Session\x20','parentItemId','KTIqC','\x1b[1m','trimEnd','currentBranch','location','57XRQCHa','\x20—\x20no\x20comments','isTTY','in_progress','Fmjzd','short','\x20unaddressed\x20comment(s)','split','Ksbno','replace','CLAUDE_SESSION_ID','error','\x20scenario(s).','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','numeric','position','notes','XZMRd','VpUzs','\x0a✅\x20Restored\x20feature\x20review:\x20','HkWDY','coordinates','\x20(v','domRef','vsIja','submittedAt','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','items','unaddressedComments','toLocaleString','totalCount','LkcAA','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','FsKGe','toLocaleDateString','timing','giHVh','Current\x20session\x20not\x20found.','nQcXq','pop',':\x20\x22','iteration','assetUrl','MXuJW','github.com/','Screenshot\x20','log','YGMXm','\x20\x20\x20Updated\x20branch\x20to:\x20','vQaLZ','VYStQ','hyseE','utf-8','\x20>\x20','\x20feature\x20review(s)\x20found','Please\x20finish\x20your\x20review\x20first:','approved','assets','limit','join','kjEqg','qLEdE','Not\x20in\x20a\x20git\x20repository.','0|4|3|5|2|1'];_0x47ce=function(){return _0x83861f;};return _0x47ce();}(function(_0x1a5d28,_0x5d5285){const _0x1617a6=_0x19b7,_0x43c937=_0x1a5d28();while(!![]){try{const _0x2227fb=parseInt(_0x1617a6(0x1c4))/0x1*(parseInt(_0x1617a6(0x210))/0x2)+parseInt(_0x1617a6(0x23b))/0x3*(parseInt(_0x1617a6(0x1bf))/0x4)+parseInt(_0x1617a6(0x1f0))/0x5*(-parseInt(_0x1617a6(0x1cc))/0x6)+-parseInt(_0x1617a6(0x21e))/0x7*(-parseInt(_0x1617a6(0x1ac))/0x8)+-parseInt(_0x1617a6(0x1e7))/0x9+parseInt(_0x1617a6(0x213))/0xa+-parseInt(_0x1617a6(0x1de))/0xb;if(_0x2227fb===_0x5d5285)break;else _0x43c937['push'](_0x43c937['shift']());}catch(_0x1edad7){_0x43c937['push'](_0x43c937['shift']());}}}(_0x47ce,0x1b2f2));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x5b4a2e 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=_0x258a49=>_0x1f563c(0x237)+_0x258a49+'\x1b[0m';function _0x19b7(_0x417e5d,_0x25f808){_0x417e5d=_0x417e5d-0x174;const _0x47ce53=_0x47ce();let _0x19b7ac=_0x47ce53[_0x417e5d];return _0x19b7ac;}function getGitRepoUrl(){const _0x1afdc8=_0x1f563c,_0x26173a={'UjPYx':_0x1afdc8(0x1e2),'GEoHf':_0x1afdc8(0x18a),'BpBQR':'pipe'};try{const _0x282c5f=execSync(_0x26173a['UjPYx'],{'encoding':_0x26173a[_0x1afdc8(0x200)],'stdio':[_0x26173a['BpBQR'],_0x26173a[_0x1afdc8(0x1e3)],_0x26173a[_0x1afdc8(0x1e3)]]})['trim']();return _0x282c5f[_0x1afdc8(0x244)](/\.git$/,'')[_0x1afdc8(0x244)](/^git@github\.com:/,_0x1afdc8(0x182))['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xd196f2=_0x1f563c,_0x23a639={'raWQs':function(_0x4765f3,_0x51ae8d,_0x5b4895){return _0x4765f3(_0x51ae8d,_0x5b4895);},'VwZzq':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','qLEdE':_0xd196f2(0x1b7)};try{return _0x23a639['raWQs'](execSync,_0x23a639['VwZzq'],{'encoding':'utf-8','stdio':[_0x23a639[_0xd196f2(0x193)],_0x23a639[_0xd196f2(0x193)],_0xd196f2(0x1b7)]})[_0xd196f2(0x1be)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x216966={'GEGKJ':function(_0x547109,_0x1ccba4,_0xfb38ab){return _0x547109(_0x1ccba4,_0xfb38ab);},'hNMkm':function(_0x211748,_0xc32490){return _0x211748(_0xc32490);},'YOSuF':function(_0x5121f4,_0x358dd0,_0x50c70b){return _0x5121f4(_0x358dd0,_0x50c70b);}},_0x582cba=_0x216966['GEGKJ'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x216966['hNMkm'](existsSync,_0x582cba))return null;try{const _0x53b592=await _0x216966['YOSuF'](readFile,_0x582cba,'utf-8');return _0x53b592['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x260dcb){const _0x3f142e={'MbOrp':function(_0x555f95,_0x1f1cfb,_0x22d752){return _0x555f95(_0x1f1cfb,_0x22d752);}},_0x426c09=getRangerDir(),_0x209069=_0x3f142e['MbOrp'](join,_0x426c09,ACTIVE_FEATURE_FILE);!existsSync(_0x426c09)&&await mkdir(_0x426c09,{'recursive':!![]}),await writeFile(_0x209069,_0x260dcb,'utf-8');}function getProgressDisplay(_0x400aca){const _0x4e2b3f=_0x1f563c,_0x4dfdfb={'YeYgP':function(_0x12179f,_0x852ea0){return _0x12179f+_0x852ea0;},'aBGjT':function(_0xdf2b85,_0x494023){return _0xdf2b85*_0x494023;}},_0x2728bc=_0x400aca['verifiedItems']||0x0,_0x44420e=_0x400aca['verificationInProgressItems']||0x0,_0x52f34a=_0x400aca[_0x4e2b3f(0x1b0)]||0x0,_0x1b57b3=_0x400aca[_0x4e2b3f(0x1a8)]||0x0,_0x2245f8=_0x400aca['pendingItems']||0x0,_0x4a50d8=_0x4dfdfb[_0x4e2b3f(0x20b)](_0x4dfdfb[_0x4e2b3f(0x20b)](_0x2728bc,_0x44420e)+_0x52f34a+_0x1b57b3,_0x2245f8);if(_0x4a50d8===0x0)return'-';const _0x37ab15=0xa,_0x5b6f0f=Math[_0x4e2b3f(0x1b5)](_0x4dfdfb[_0x4e2b3f(0x1f9)](_0x2728bc/_0x4a50d8,_0x37ab15)),_0x31283f=_0x4dfdfb[_0x4e2b3f(0x20b)]('█'['repeat'](_0x5b6f0f),'░'['repeat'](_0x37ab15-_0x5b6f0f)),_0x5469b8=[];if(_0x52f34a>0x0)_0x5469b8[_0x4e2b3f(0x1f7)](_0x52f34a+_0x4e2b3f(0x220));if(_0x1b57b3>0x0)_0x5469b8['push'](_0x1b57b3+'\x20incomplete');if(_0x44420e>0x0)_0x5469b8['push'](_0x44420e+'\x20in\x20progress');const _0x1c78c7=_0x5469b8['length']>0x0?'\x20('+_0x5469b8[_0x4e2b3f(0x191)](',\x20')+')':'';return _0x31283f+'\x20'+_0x2728bc+'/'+_0x4a50d8+'\x20verified'+_0x1c78c7;}function getCurrentSessionItems(_0x5221ca,_0x1a5a59){const _0x561a42=_0x1f563c;if(!_0x5221ca[_0x561a42(0x21a)])return _0x1a5a59[_0x561a42(0x1fd)](_0x292969=>!_0x292969['sessionId']);return _0x1a5a59[_0x561a42(0x1fd)](_0x2321c9=>_0x2321c9[_0x561a42(0x1ca)]===_0x5221ca[_0x561a42(0x21a)]||!_0x2321c9[_0x561a42(0x1ca)]);}function displayFeature(_0x4ec1af,_0x3c175d){const _0x3a4351=_0x1f563c,_0x4f8115={'RcVwO':function(_0x431d77,_0x36d1e){return _0x431d77<_0x36d1e;},'bRywo':function(_0x387612,_0xabe230){return _0x387612===_0xabe230;},'NnaXn':_0x3a4351(0x1d3),'KdVWg':'verified','qRRoD':_0x3a4351(0x214),'noIJa':'blocked','hyseE':function(_0x5de9e8,_0x2dbb95){return _0x5de9e8>_0x2dbb95;},'EQefm':function(_0x46d7c2,_0x185fc7){return _0x46d7c2!==_0x185fc7;},'qZnGv':'\x20[has\x20reviewer\x20feedback]','fTKhK':'approved'};console[_0x3a4351(0x184)]('\x0a'+_0x4ec1af['name']+'\x20('+_0x4ec1af['dashboardUrl']+')');_0x4ec1af['stats']&&console['log'](_0x3a4351(0x1e8)+getProgressDisplay(_0x4ec1af['stats']));_0x4ec1af['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x4ec1af['description']);_0x4ec1af[_0x3a4351(0x1b2)]&&console['log'](_0x3a4351(0x232)+_0x4ec1af['gitRepoUrl']);_0x4ec1af['gitBranch']&&console[_0x3a4351(0x184)](_0x3a4351(0x1a0)+_0x4ec1af[_0x3a4351(0x205)]);console[_0x3a4351(0x184)](_0x3a4351(0x1ff)+new Date(_0x4ec1af['createdAt'])[_0x3a4351(0x258)]());_0x4ec1af['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x4ec1af[_0x3a4351(0x1ad)])['toLocaleString']());if(_0x3c175d&&_0x3c175d['length']>0x0){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x27f3dc=0x0;_0x4f8115['RcVwO'](_0x27f3dc,_0x3c175d['length']);_0x27f3dc++){const _0x4e7cc7=_0x3c175d[_0x27f3dc];let _0x17c04a;if(_0x4f8115['bRywo'](_0x4e7cc7[_0x3a4351(0x1c2)],_0x4f8115[_0x3a4351(0x1dc)])&&_0x4e7cc7['terminalReason']===_0x3a4351(0x18e))_0x17c04a='✅';else{if(_0x4e7cc7[_0x3a4351(0x1c2)]===_0x4f8115['KdVWg'])_0x17c04a='🟢';else{if(_0x4f8115['bRywo'](_0x4e7cc7['status'],_0x4f8115['qRRoD']))_0x17c04a='🟠';else{if(_0x4e7cc7['status']===_0x4f8115[_0x3a4351(0x1d7)])_0x17c04a='🛑';else{if(_0x4e7cc7[_0x3a4351(0x1c2)]===_0x3a4351(0x1d3))_0x17c04a='⛔';else _0x4e7cc7[_0x3a4351(0x1c2)]==='verification_in_progress'?_0x17c04a='⏳':_0x17c04a='⬜';}}}}const _0x5c01cc=_0x4e7cc7[_0x3a4351(0x1d0)]>0x1?_0x3a4351(0x251)+_0x4e7cc7[_0x3a4351(0x1d0)]+')':'',_0x393e67=_0x4f8115[_0x3a4351(0x189)](_0x4e7cc7[_0x3a4351(0x1d0)],0x1)&&_0x4e7cc7[_0x3a4351(0x235)]&&_0x4e7cc7[_0x3a4351(0x1c2)]!==_0x3a4351(0x1d3)&&_0x4f8115[_0x3a4351(0x1f8)](_0x4e7cc7['status'],'verified')?_0x4f8115['qZnGv']:'';console[_0x3a4351(0x184)]('\x20\x20\x20'+(_0x27f3dc+0x1)+'.\x20'+_0x17c04a+'\x20'+_0x4e7cc7[_0x3a4351(0x1d4)]+_0x5c01cc+_0x393e67);_0x4f8115[_0x3a4351(0x216)](_0x4e7cc7[_0x3a4351(0x1c2)],_0x4f8115[_0x3a4351(0x1d7)])&&_0x4e7cc7['blockedReason']&&console['log'](_0x3a4351(0x1dd)+_0x4e7cc7['blockedReason']);_0x4e7cc7[_0x3a4351(0x1c2)]===_0x4f8115[_0x3a4351(0x1f5)]&&_0x4e7cc7['incompleteReason']&&console[_0x3a4351(0x184)](_0x3a4351(0x1a1)+_0x4e7cc7['incompleteReason']);if(_0x4e7cc7['status']===_0x4f8115['NnaXn']&&_0x4f8115['bRywo'](_0x4e7cc7[_0x3a4351(0x1a5)],_0x4f8115[_0x3a4351(0x21b)]))console[_0x3a4351(0x184)]('\x20\x20\x20\x20\x20\x20Approved');else _0x4e7cc7['status']==='closed'&&_0x4e7cc7['canceledReason']&&console['log'](_0x3a4351(0x1cf)+_0x4e7cc7[_0x3a4351(0x1d6)]);}}}export async function featureCreate(_0x379a0b,_0x12edbb){const _0x3756f3=_0x1f563c,_0x21d74f={'dfjnE':function(_0x33de19,_0x54f7cb){return _0x33de19===_0x54f7cb;},'ntVgf':function(_0x5c6b2c){return _0x5c6b2c();},'Pbjvm':function(_0x7cb6c3,_0x4ff0f5){return _0x7cb6c3(_0x4ff0f5);},'NTxCA':function(_0x7513c9){return _0x7513c9();},'YGgmd':_0x3756f3(0x1f1),'MwudO':function(_0x5681a3,_0x3a857a){return _0x5681a3(_0x3a857a);},'RTbRY':function(_0x577ddb,_0x3f2261){return _0x577ddb(_0x3f2261);},'OQPPM':function(_0x5b5953,_0x39b9d0,_0x202fef){return _0x5b5953(_0x39b9d0,_0x202fef);}},{envNames:_0x521403}=await getEnvNames();if(_0x21d74f['dfjnE'](_0x521403[_0x3756f3(0x1d9)],0x0)&&!process[_0x3756f3(0x1db)][_0x3756f3(0x22b)]){let _0x3cb2c0=0x0;try{_0x3cb2c0=(await _0x21d74f['ntVgf'](listCloudProfiles))[_0x3756f3(0x1d9)];}catch{_0x3cb2c0=0x1;}_0x3cb2c0===0x0&&console[_0x3756f3(0x223)]('\x0a'+_0x21d74f['Pbjvm'](formatProfileRequiredMessage,_0x57c8c3=>bold(_0x57c8c3)));}const _0x5af926=_0x12edbb[_0x3756f3(0x19c)]?_0x12edbb['scenarios'][_0x3756f3(0x1f4)](_0x16223b=>_0x16223b[_0x3756f3(0x1be)]()):[],_0x2da7d2=getGitRepoUrl(),_0x1ab108=_0x21d74f['NTxCA'](getGitBranch);console[_0x3756f3(0x184)](_0x21d74f['YGgmd']);const _0x29945e=await createFeature({'name':_0x379a0b,'description':_0x12edbb[_0x3756f3(0x1d4)],'checklist':_0x5af926,'gitRepoUrl':_0x2da7d2,'gitBranch':_0x1ab108});await _0x21d74f[_0x3756f3(0x20e)](setActiveFeatureId,_0x29945e['id']),await _0x21d74f['RTbRY'](tryStartCurrentSession,_0x29945e['id']);const _0x471620=process[_0x3756f3(0x1db)]['CLAUDE_SESSION_ID'];_0x471620&&registerSession(_0x471620,_0x29945e['id']),console[_0x3756f3(0x184)](_0x3756f3(0x22a)+_0x29945e['id']),_0x21d74f[_0x3756f3(0x1e4)](displayFeature,_0x29945e,_0x29945e[_0x3756f3(0x1ab)]),console['log'](_0x3756f3(0x1fa));}export async function featureList(_0x1fe376){const _0x65ff3f=_0x1f563c,_0x3dcc2a={'kEJjN':function(_0x29828f){return _0x29828f();},'XZMRd':function(_0x605ca8,_0x3db377){return _0x605ca8(_0x3db377);},'bipVF':function(_0x146593,_0x816bf0){return _0x146593===_0x816bf0;},'ySzKl':_0x65ff3f(0x20d),'Jonzb':function(_0x4b29e2,_0x4df706){return _0x4b29e2>_0x4df706;},'FRune':_0x65ff3f(0x195),'bDzVa':function(_0x80c709,_0x1ce216){return _0x80c709<_0x1ce216;},'kturd':function(_0x12b357,_0x6b24cb){return _0x12b357!==_0x6b24cb;},'XSjjS':'\x20--current-branch','vQaLZ':'\x20--include-deleted'},_0x207be8={'limit':_0x1fe376[_0x65ff3f(0x190)]??0xa,'offset':_0x1fe376[_0x65ff3f(0x19b)]??0x0,'includeDeleted':_0x1fe376[_0x65ff3f(0x1eb)]};_0x1fe376[_0x65ff3f(0x239)]&&(_0x207be8[_0x65ff3f(0x1b2)]=_0x3dcc2a[_0x65ff3f(0x21c)](getGitRepoUrl),_0x207be8['gitBranch']=_0x3dcc2a[_0x65ff3f(0x21c)](getGitBranch));const _0x836e00=await _0x3dcc2a[_0x65ff3f(0x24c)](listFeatures,_0x207be8);if(_0x3dcc2a[_0x65ff3f(0x228)](_0x836e00[_0x65ff3f(0x256)][_0x65ff3f(0x1d9)],0x0)){console['log'](_0x3dcc2a[_0x65ff3f(0x1f3)]);return;}const _0x26fde4=_0x3dcc2a['Jonzb'](_0x836e00[_0x65ff3f(0x174)],_0x836e00['items'][_0x65ff3f(0x1d9)])?_0x65ff3f(0x227)+_0x836e00[_0x65ff3f(0x256)]['length']+_0x65ff3f(0x20a)+_0x836e00['totalCount']:_0x836e00[_0x65ff3f(0x174)]+_0x65ff3f(0x18c);console[_0x65ff3f(0x184)]('\x0a'+_0x26fde4+':\x0a');for(const _0x3c4cf1 of _0x836e00['items']){const _0x5ca6bf=_0x3dcc2a[_0x65ff3f(0x1b4)]['split']('|');let _0x4c461e=0x0;while(!![]){switch(_0x5ca6bf[_0x4c461e++]){case'0':console[_0x65ff3f(0x184)](''+_0x3c4cf1[_0x65ff3f(0x1a7)]);continue;case'1':console['log']('');continue;case'2':console[_0x65ff3f(0x184)](_0x65ff3f(0x1ff)+new Date(_0x3c4cf1['createdAt'])['toLocaleDateString']());continue;case'3':_0x3c4cf1['stats']&&console[_0x65ff3f(0x184)]('\x20\x20\x20Progress:\x20'+_0x3dcc2a['XZMRd'](getProgressDisplay,_0x3c4cf1['stats']));continue;case'4':console[_0x65ff3f(0x184)]('\x20\x20\x20ID:\x20'+_0x3c4cf1['id']);continue;case'5':_0x3c4cf1['gitBranch']&&console['log'](_0x65ff3f(0x1a0)+_0x3c4cf1[_0x65ff3f(0x205)]);continue;}break;}}const _0xe73fca=_0x207be8['limit']??0xa,_0x50f464=(_0x207be8[_0x65ff3f(0x19b)]??0x0)+_0x836e00[_0x65ff3f(0x256)][_0x65ff3f(0x1d9)];if(_0x3dcc2a['bDzVa'](_0x50f464,_0x836e00['totalCount'])){const _0x969fae=_0x3dcc2a['kturd'](_0xe73fca,0xa)?'\x20--limit\x20'+_0xe73fca:'',_0x19b3bb=_0x1fe376[_0x65ff3f(0x239)]?_0x3dcc2a[_0x65ff3f(0x204)]:'',_0x3176fe=_0x1fe376['includeDeleted']?_0x3dcc2a[_0x65ff3f(0x187)]:'';console['log'](_0x65ff3f(0x1e0)+_0x50f464+_0x969fae+_0x19b3bb+_0x3176fe);}}export async function featureShow(_0x5825ad){const _0x27c455=_0x1f563c,_0x3bbd54={'Fmjzd':function(_0x2529fb){return _0x2529fb();}},_0x3283d0=_0x5825ad||await _0x3bbd54[_0x27c455(0x23f)](getActiveFeatureId);if(!_0x3283d0)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 _0x5ec2aa=await getFeature(_0x3283d0);displayFeature(_0x5ec2aa,_0x5ec2aa['checklistItems']);}export async function featureResume(_0xc50843){const _0x51a7ef=_0x1f563c,_0x2cd445={'kIbkv':function(_0x443da9,_0x182ad6){return _0x443da9(_0x182ad6);},'ubtji':function(_0x4e622e){return _0x4e622e();},'tEwYV':function(_0x49521d){return _0x49521d();},'bDEon':_0x51a7ef(0x194),'Ksszx':function(_0x307a34,_0x47e1ac){return _0x307a34||_0x47e1ac;},'qcXcL':'any','MKMXP':function(_0x19aabd,_0x43e8c3){return _0x19aabd||_0x43e8c3;},'OGJxk':function(_0x40d951,_0x536db8){return _0x40d951===_0x536db8;},'dFQyb':function(_0x284365,_0x3e2178){return _0x284365===_0x3e2178;},'obmHu':'Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','jLPri':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','FxYvp':function(_0x2bf564,_0x9d91de){return _0x2bf564(_0x9d91de);},'lzxpy':function(_0x429aff,_0x4cb1ef,_0x473140){return _0x429aff(_0x4cb1ef,_0x473140);},'lWkmG':function(_0x29c054,_0x538b5d){return _0x29c054(_0x538b5d);}};if(_0xc50843){const _0x4f217b=await _0x2cd445[_0x51a7ef(0x1a3)](getFeature,_0xc50843);await setActiveFeatureId(_0x4f217b['id']);const _0xa1072a=_0x2cd445[_0x51a7ef(0x230)](getGitBranch);_0xa1072a&&_0xa1072a!==_0x4f217b['gitBranch']&&(await updateFeature(_0x4f217b['id'],{'gitBranch':_0xa1072a}),console['log'](_0x51a7ef(0x186)+_0xa1072a));console['log'](_0x51a7ef(0x1c0)+_0x4f217b[_0x51a7ef(0x1a7)]+'\x20('+_0x4f217b['id']+')'),await tryStartCurrentSession(_0x4f217b['id']);const _0x4b1376=process[_0x51a7ef(0x1db)][_0x51a7ef(0x245)];_0x4b1376&&registerSession(_0x4b1376,_0x4f217b['id']);displayFeature(_0x4f217b,_0x4f217b['checklistItems']),await printFeedbackNudge(_0x4f217b['id']);return;}const _0xa8693d=getGitRepoUrl(),_0x221c88=_0x2cd445['tEwYV'](getGitBranch);if(!_0xa8693d&&!_0x221c88)throw new Error(_0x2cd445[_0x51a7ef(0x1b9)]);console[_0x51a7ef(0x184)](_0x51a7ef(0x248)+_0x2cd445[_0x51a7ef(0x218)](_0xa8693d,_0x2cd445['qcXcL'])+'\x20/\x20'+_0x2cd445[_0x51a7ef(0x1c3)](_0x221c88,_0x2cd445['qcXcL'])+'...');const _0x18af25=await listFeatures({'gitRepoUrl':_0xa8693d,'gitBranch':_0x221c88}),_0x3fc814=_0x18af25[_0x51a7ef(0x256)][_0x51a7ef(0x1fd)](_0x4c3f38=>_0x4c3f38['status']?_0x4c3f38['status']!=='verified':!_0x4c3f38[_0x51a7ef(0x1ad)]);if(_0x2cd445[_0x51a7ef(0x1b1)](_0x3fc814['length'],0x0)){console['log'](_0x51a7ef(0x203)),console[_0x51a7ef(0x184)](_0x51a7ef(0x1bb));return;}let _0x4f120d;if(_0x2cd445[_0x51a7ef(0x1e9)](_0x3fc814[_0x51a7ef(0x1d9)],0x1))_0x4f120d=_0x3fc814[0x0];else{const _0x398acb=process['stdin']['isTTY']&&process[_0x51a7ef(0x1aa)][_0x51a7ef(0x23d)];if(!_0x398acb){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x5b3187 of _0x3fc814){console[_0x51a7ef(0x184)]('\x20\x20'+_0x5b3187['name']),console[_0x51a7ef(0x184)]('\x20\x20\x20\x20\x20ID:\x20'+_0x5b3187['id']),_0x5b3187['stats']&&console[_0x51a7ef(0x184)]('\x20\x20\x20\x20\x20Progress:\x20'+_0x2cd445['kIbkv'](getProgressDisplay,_0x5b3187['stats'])),_0x5b3187['gitBranch']&&console[_0x51a7ef(0x184)](_0x51a7ef(0x1fc)+_0x5b3187[_0x51a7ef(0x205)]);}throw new Error(_0x2cd445['obmHu']);}const {selected:_0x58c810}=await _0x5b4a2e['prompt']([{'type':'list','name':'selected','message':_0x2cd445[_0x51a7ef(0x202)],'choices':_0x3fc814[_0x51a7ef(0x1f4)](_0x1e5931=>({'name':_0x1e5931['name']+'\x20('+_0x1e5931['id']+')','value':_0x1e5931['id']}))}]);_0x4f120d=_0x3fc814['find'](_0x40e4b3=>_0x40e4b3['id']===_0x58c810);}await _0x2cd445['FxYvp'](setActiveFeatureId,_0x4f120d['id']);_0x221c88&&_0x221c88!==_0x4f120d[_0x51a7ef(0x205)]&&(await updateFeature(_0x4f120d['id'],{'gitBranch':_0x221c88}),console[_0x51a7ef(0x184)](_0x51a7ef(0x186)+_0x221c88));console[_0x51a7ef(0x184)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x4f120d['name']+'\x20('+_0x4f120d['id']+')'),await _0x2cd445['kIbkv'](tryStartCurrentSession,_0x4f120d['id']);const _0x16fa75=await _0x2cd445[_0x51a7ef(0x1a3)](getFeature,_0x4f120d['id']),_0x398693=process[_0x51a7ef(0x1db)]['CLAUDE_SESSION_ID'];_0x398693&&registerSession(_0x398693,_0x16fa75['id']),_0x2cd445['lzxpy'](displayFeature,_0x16fa75,_0x16fa75[_0x51a7ef(0x1ab)]),await _0x2cd445['lWkmG'](printFeedbackNudge,_0x16fa75['id']);}async function printFeedbackNudge(_0x4aec6f){const _0x45486b=_0x1f563c,_0x445a0f={'sOCar':function(_0x31602e,_0x255cdf,_0x217fd3){return _0x31602e(_0x255cdf,_0x217fd3);},'nqzpZ':function(_0x4715ac,_0x5d0a1b){return _0x4715ac>_0x5d0a1b;},'LUgvn':_0x45486b(0x1e6)};try{const {items:_0x5484d6}=await getActionItems(_0x4aec6f);let _0x40ada5=0x0,_0x1662b4=0x0;for(const _0xeae85e of _0x5484d6){const _0x354778=await _0x445a0f['sOCar'](getItemFeedback,_0x4aec6f,_0xeae85e['id']);_0x445a0f[_0x45486b(0x1b8)](_0x354778['unaddressedComments']['length'],0x0)&&(_0x40ada5+=_0x354778[_0x45486b(0x257)]['length'],_0x1662b4++);}_0x445a0f[_0x45486b(0x1b8)](_0x40ada5,0x0)&&(console['log'](_0x45486b(0x1c8)+_0x40ada5+_0x45486b(0x21d)+_0x1662b4+_0x45486b(0x247)),console['log'](_0x445a0f[_0x45486b(0x198)]));}catch{}}async function tryStartCurrentSession(_0x51932e){const _0x41a6cb=_0x1f563c,_0x45bf2a={'SxzOK':function(_0x22e058,_0x1034e3){return _0x22e058(_0x1034e3);},'pDRZs':function(_0x1faf8d,_0x48c61d,_0x5e9783){return _0x1faf8d(_0x48c61d,_0x5e9783);}};try{const {sessions:_0x5feaa6}=await _0x45bf2a[_0x41a6cb(0x1a6)](listFeatureSessions,_0x51932e),_0x320a17=_0x5feaa6['find'](_0x53f8f5=>_0x53f8f5[_0x41a6cb(0x1c2)]==='ready');_0x320a17&&(await _0x45bf2a['pDRZs'](startSession,_0x51932e,_0x320a17['id']),console['log']('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x320a17[_0x41a6cb(0x17f)]));}catch{}}export async function featureReport(_0x5741f0,_0x4d376c){const _0x408b76=_0x1f563c,_0x47f8fa={'IzACw':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','BhooJ':'\x0aGenerating\x20report...','ipIpc':function(_0x1fc763,_0x3f4db0,_0x456ba7){return _0x1fc763(_0x3f4db0,_0x456ba7);},'kSkwy':function(_0x182425){return _0x182425();},'xwuuG':_0x408b76(0x1d5),'UXHte':function(_0x2f91d1,_0xf5d9c0,_0x2e0dab){return _0x2f91d1(_0xf5d9c0,_0x2e0dab);}},_0x47e49c=_0x5741f0||await getActiveFeatureId();if(!_0x47e49c)throw new Error(_0x47f8fa['IzACw']);console['log'](_0x47f8fa['BhooJ']);const _0x1b06ec=await _0x47f8fa[_0x408b76(0x197)](getFeatureReportMarkdown,_0x47e49c,{'style':_0x4d376c[_0x408b76(0x1a2)]}),_0x242ab5=_0x4d376c['output']||join(_0x47f8fa['kSkwy'](getRangerDir),_0x47f8fa['xwuuG'],_0x47e49c+_0x408b76(0x1a4)),_0x5f294c=_0x47f8fa[_0x408b76(0x1ce)](join,_0x242ab5,'..');!existsSync(_0x5f294c)&&await mkdir(_0x5f294c,{'recursive':!![]}),await writeFile(_0x242ab5,_0x1b06ec,'utf-8'),console[_0x408b76(0x184)]('\x0a✅\x20Report\x20generated:\x20'+_0x242ab5);}function getScenarioResult(_0x3ef920){const _0x54a9a6=_0x1f563c,_0x4867eb={'XNMQw':function(_0x71a8f9,_0x1896f5){return _0x71a8f9===_0x1896f5;},'VYStQ':_0x54a9a6(0x1d3),'YGMXm':'verification_in_progress'};if(_0x4867eb['XNMQw'](_0x3ef920[_0x54a9a6(0x1c2)],_0x4867eb[_0x54a9a6(0x188)]))return _0x3ef920['terminalReason']??_0x4867eb['VYStQ'];if(_0x3ef920['status']===_0x4867eb[_0x54a9a6(0x185)])return _0x54a9a6(0x23e);return _0x3ef920['status'];}function getScenarioRationale(_0x6568ee,_0x350059){const _0xbbf8c1=_0x1f563c;if(_0x350059)return _0x350059;if(_0x6568ee['blockedReason'])return _0x6568ee['blockedReason'];if(_0x6568ee['incompleteReason'])return _0x6568ee[_0xbbf8c1(0x206)];if(_0x6568ee[_0xbbf8c1(0x1d6)])return _0x6568ee[_0xbbf8c1(0x1d6)];if(_0x6568ee[_0xbbf8c1(0x24b)])return _0x6568ee['notes'];return null;}export async function featureReportPrDescription(_0x2ffd55,_0x5731a3){const _0x4d2e25=_0x1f563c,_0x21eb01={'IKbTh':function(_0x50b46b,_0x495304){return _0x50b46b>_0x495304;},'uaTTx':function(_0x52e35b,_0x47b519){return _0x52e35b<_0x47b519;},'nQcXq':function(_0x123b34,_0x5bb45f){return _0x123b34===_0x5bb45f;},'iSmJh':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.','HdYMg':function(_0x5e0fff,_0x53732b,_0x436234,_0x1ab677){return _0x5e0fff(_0x53732b,_0x436234,_0x1ab677);},'clNau':function(_0x5d04b7,_0x32f8ad,_0x3a3899){return _0x5d04b7(_0x32f8ad,_0x3a3899);}},_0x1d2ba9=_0x2ffd55||await getActiveFeatureId();if(!_0x1d2ba9)throw new Error(_0x4d2e25(0x1b6));const _0x4ff927=await getFeature(_0x1d2ba9),_0x34f21d=_0x4ff927['checklistItems']||[],_0x5ec462=getCurrentSessionItems(_0x4ff927,_0x34f21d);_0x5ec462[_0x4d2e25(0x1d9)]===0x0&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process[_0x4d2e25(0x231)](0x1));const _0x497e5c=_0x5731a3[_0x4d2e25(0x21f)]??[],_0x449e28=_0x497e5c['filter'](_0x1dc447=>!Number['isInteger'](_0x1dc447)||_0x1dc447<0x1||_0x1dc447>_0x5ec462['length']);if(_0x21eb01['IKbTh'](_0x449e28[_0x4d2e25(0x1d9)],0x0)){console['error'](_0x4d2e25(0x1d1)+_0x449e28[_0x4d2e25(0x191)](',\x20')),console['log']('\x0aAvailable\x20scenarios:');for(let _0x422dfb=0x0;_0x21eb01['uaTTx'](_0x422dfb,_0x5ec462[_0x4d2e25(0x1d9)]);_0x422dfb++){console['log']('\x20\x20'+(_0x422dfb+0x1)+'.\x20'+_0x5ec462[_0x422dfb]['description']);}process[_0x4d2e25(0x231)](0x1);}const _0x431aff=new Set(_0x497e5c[_0x4d2e25(0x1f4)](_0x707bb5=>_0x707bb5-0x1)),_0xfecc62=_0x5ec462['filter']((_0x559347,_0x30a88d)=>!_0x431aff['has'](_0x30a88d));_0x21eb01[_0x4d2e25(0x17c)](_0xfecc62[_0x4d2e25(0x1d9)],0x0)&&(console[_0x4d2e25(0x246)](_0x21eb01['iSmJh']),process[_0x4d2e25(0x231)](0x1));if(_0x5731a3['json'])await _0x21eb01[_0x4d2e25(0x22e)](outputJsonReport,_0x1d2ba9,_0x4ff927,_0xfecc62);else{const _0x466259=await _0x21eb01['clNau'](getFeatureReportMarkdown,_0x1d2ba9,{'itemIds':_0xfecc62[_0x4d2e25(0x1f4)](_0x74eeff=>_0x74eeff['id'])});process[_0x4d2e25(0x1aa)]['write'](_0x466259[_0x4d2e25(0x238)]()+'\x0a');}}async function outputJsonReport(_0x51716e,_0x82f952,_0x1a1fa0){const _0x452f58=_0x1f563c,_0x26ac09={'xsDgn':function(_0x15d450){return _0x15d450();},'mcqZZ':function(_0x570d6c,_0x314be5){return _0x570d6c(_0x314be5);},'umOzR':function(_0x3bf48c,_0x438ed7){return _0x3bf48c+_0x438ed7;}},_0x20e455=_0x26ac09[_0x452f58(0x1c6)](getApiBaseUrl),_0xd74c9f=await _0x26ac09[_0x452f58(0x1ae)](getFeatureReport,_0x51716e),_0x13b08d=new Map(_0xd74c9f[_0x452f58(0x1ab)][_0x452f58(0x1f4)](_0x4bb6ca=>[_0x4bb6ca['id'],_0x4bb6ca])),_0x1d2952=await Promise['all'](_0x1a1fa0[_0x452f58(0x1f4)](async _0x4049ba=>{const _0x42d466=_0x452f58,_0x485fb4=_0x13b08d[_0x42d466(0x201)](_0x4049ba['id']),_0x13a4fa=_0x485fb4?.[_0x42d466(0x208)]??null;let _0x5ba6a4=[];if(_0x4049ba[_0x42d466(0x221)])try{const {steps:_0x24c91e}=await getBrowserSessionSteps(_0x4049ba['browserSessionId']);_0x24c91e['length']>0x0&&(_0x5ba6a4=_0x24c91e[_0x42d466(0x1f4)](_0x147ad7=>{const _0x342d63=_0x42d466,_0x197698=_0x147ad7[_0x342d63(0x18f)][_0x342d63(0x1ea)](_0x5a70d9=>_0x5a70d9[_0x342d63(0x1da)]===_0x342d63(0x209)&&_0x5a70d9[_0x342d63(0x179)]==='after')??_0x147ad7[_0x342d63(0x18f)]['find'](_0x426360=>_0x426360['assetType']==='screenshot');let _0x4e7bf6=null,_0x59b75a=null;if(_0x197698){const _0x248df4=_0x197698[_0x342d63(0x1ee)][_0x342d63(0x23a)]['split']('/')[_0x342d63(0x17d)]();_0x4e7bf6=_0x20e455+'/api/v1/mcp/browser-sessions/'+_0x4049ba['browserSessionId']+'/artifacts/'+_0x248df4,_0x248df4&&(_0x59b75a=_0x248df4[_0x342d63(0x244)](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x342d63(0x244)](/[-_]/g,'\x20'));}return{'description':_0x59b75a||_0x147ad7[_0x342d63(0x1d4)]||_0x147ad7[_0x342d63(0x19e)]||'Step\x20'+_0x147ad7[_0x342d63(0x24a)],'screenshot':_0x4e7bf6,'is_key_step':_0x147ad7[_0x342d63(0x1c1)]};}));}catch{}return _0x5ba6a4['length']===0x0&&_0x13a4fa?.['screenshotUrls']&&(_0x5ba6a4=_0x13a4fa['screenshotUrls'][_0x42d466(0x1f4)]((_0x47e73e,_0x2b0422)=>({'description':_0x42d466(0x183)+(_0x2b0422+0x1),'screenshot':_0x47e73e,'is_key_step':![]}))),{'description':_0x4049ba['description'],'result':getScenarioResult(_0x4049ba),'rationale':getScenarioRationale(_0x4049ba,_0x13a4fa?.['agentResponse']),'steps':_0x5ba6a4};})),_0x24303c={'url':_0x82f952['dashboardUrl'],'scenarios':_0x1d2952};process[_0x452f58(0x1aa)]['write'](_0x26ac09['umOzR'](JSON['stringify'](_0x24303c,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x1f6734){const _0xe458eb=_0x1f563c,_0x181c74={'ErxPD':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','XIUGO':function(_0x1d03a3,_0x51b9d3){return _0x1d03a3(_0x51b9d3);},'IHgqt':_0xe458eb(0x17b),'lZpeD':function(_0x469079,_0x1053aa){return _0x469079!==_0x1053aa;},'nrFsK':_0xe458eb(0x23e),'EHOfn':_0xe458eb(0x1a9)},_0x14dd56=_0x1f6734||await getActiveFeatureId();if(!_0x14dd56)throw new Error(_0x181c74[_0xe458eb(0x20f)]);const _0x229674=await getFeature(_0x14dd56);if(!_0x229674['currentSessionId'])throw new Error(_0xe458eb(0x22f));const {sessions:_0x4a66d4}=await _0x181c74['XIUGO'](listFeatureSessions,_0x14dd56),_0x3921f9=_0x4a66d4['find'](_0x1f8001=>_0x1f8001['id']===_0x229674[_0xe458eb(0x21a)]);if(!_0x3921f9)throw new Error(_0x181c74['IHgqt']);if(_0x3921f9[_0xe458eb(0x1c2)]==='completed'){console[_0xe458eb(0x184)]('\x0a✅\x20Session\x20is\x20already\x20completed.');return;}if(_0x181c74[_0xe458eb(0x217)](_0x3921f9[_0xe458eb(0x1c2)],_0x181c74['nrFsK']))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x3921f9[_0xe458eb(0x1c2)]);console['log'](_0x181c74['EHOfn']),await concludeSession(_0x14dd56,_0x229674[_0xe458eb(0x21a)]),console['log'](_0xe458eb(0x234)+_0x3921f9['iteration']+_0xe458eb(0x1f2)),console[_0xe458eb(0x184)](_0xe458eb(0x207));}export async function featureSessions(_0x474f1e){const _0x4fafa0=_0x1f563c,_0x2cb87a={'aXTWN':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','dLwCo':function(_0x1b2fa1,_0x520797){return _0x1b2fa1(_0x520797);},'LaHRF':function(_0x288e63,_0x17acc9){return _0x288e63===_0x17acc9;},'eLLIc':function(_0x438edf,_0x16b0ae){return _0x438edf===_0x16b0ae;},'DjIDl':'completed'},_0x15574e=_0x474f1e||await getActiveFeatureId();if(!_0x15574e)throw new Error(_0x2cb87a['aXTWN']);const _0x563455=await _0x2cb87a[_0x4fafa0(0x1e5)](getFeature,_0x15574e);console['log'](_0x4fafa0(0x1e1)+_0x563455[_0x4fafa0(0x1a7)]+'\x0a');const {sessions:_0x3ffc62}=await listFeatureSessions(_0x15574e);if(_0x2cb87a[_0x4fafa0(0x226)](_0x3ffc62[_0x4fafa0(0x1d9)],0x0)){console['log']('No\x20sessions\x20found.');return;}for(const _0x44aa34 of _0x3ffc62){const _0x52b2df=_0x2cb87a['eLLIc'](_0x44aa34[_0x4fafa0(0x1c2)],_0x2cb87a['DjIDl'])?'✅':_0x44aa34[_0x4fafa0(0x1c2)]==='in_progress'?'🔄':'▶️';console['log'](_0x52b2df+'\x20Session\x20'+_0x44aa34['iteration']+'\x20('+_0x44aa34['id']+')'),console[_0x4fafa0(0x184)]('\x20\x20\x20Status:\x20'+_0x44aa34['status']),console[_0x4fafa0(0x184)](_0x4fafa0(0x1ff)+new Date(_0x44aa34[_0x4fafa0(0x199)])[_0x4fafa0(0x258)]()),_0x44aa34[_0x4fafa0(0x1ad)]&&console[_0x4fafa0(0x184)](_0x4fafa0(0x1bc)+new Date(_0x44aa34[_0x4fafa0(0x1ad)])['toLocaleString']()),console['log']('');}}export async function featureAddScenario(_0x27b6bb,_0x1210a8){const _0x1c5717=_0x1f563c,_0x50c13c={'mZHkp':function(_0xf9f646){return _0xf9f646();},'Ksbno':_0x1c5717(0x255),'kjEqg':function(_0x1b07e8,_0x130e56){return _0x1b07e8(_0x130e56);}},_0x89c7f5=_0x1210a8||await _0x50c13c['mZHkp'](getActiveFeatureId);if(!_0x89c7f5)throw new Error(_0x50c13c[_0x1c5717(0x243)]);const _0x281f98=await _0x50c13c[_0x1c5717(0x192)](getFeature,_0x89c7f5);if(_0x281f98[_0x1c5717(0x229)]&&!_0x281f98['latestReview'][_0x1c5717(0x254)])throw new Error(_0x1c5717(0x1ed)+_0x281f98['dashboardUrl']);await createChecklistItem(_0x89c7f5,_0x27b6bb);const _0x5ba2ba=await getFeature(_0x89c7f5);console['log'](_0x1c5717(0x1b3)),displayFeature(_0x5ba2ba,_0x5ba2ba[_0x1c5717(0x1ab)]);}export async function featureEditScenario(_0x1e1e38,_0x195268){const _0x16c718=_0x1f563c,_0x1247ed={'DPGBa':function(_0x1f40d8){return _0x1f40d8();},'eImsy':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','LEkxo':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','LkcAA':function(_0x4cb6a7,_0x2be149){return _0x4cb6a7(_0x2be149);},'KTIqC':_0x16c718(0x18d),'vsIja':function(_0x352a1d,_0x71e1c3){return _0x352a1d===_0x71e1c3;},'giHVh':_0x16c718(0x1fe),'YwdTp':function(_0x3014dd,_0x13692e){return _0x3014dd<_0x13692e;},'KECPU':function(_0x4865c1,_0x9455d9){return _0x4865c1-_0x9455d9;},'qZJzK':function(_0x261e70,_0x2b590f){return _0x261e70(_0x2b590f);},'WWuCM':function(_0x30d532,_0x373450,_0x5c5d6a){return _0x30d532(_0x373450,_0x5c5d6a);}},_0x55a2a3=_0x195268['id']||await _0x1247ed['DPGBa'](getActiveFeatureId);!_0x55a2a3&&(console[_0x16c718(0x246)](_0x1247ed['eImsy']),console[_0x16c718(0x246)](_0x1247ed['LEkxo']),process[_0x16c718(0x231)](0x1));const _0x17a137=await _0x1247ed[_0x16c718(0x175)](getFeature,_0x55a2a3);_0x17a137['latestReview']&&!_0x17a137[_0x16c718(0x229)]['submittedAt']&&(console['error'](_0x16c718(0x1df)),console[_0x16c718(0x246)](_0x1247ed[_0x16c718(0x236)]),console[_0x16c718(0x246)]('\x20\x20'+_0x17a137['dashboardUrl']),process[_0x16c718(0x231)](0x1));const _0x40eca0=_0x17a137['checklistItems']||[];_0x40eca0['length']===0x0&&(console[_0x16c718(0x246)]('\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.'),process['exit'](0x1));if(_0x1247ed[_0x16c718(0x253)](_0x195268[_0x16c718(0x222)],undefined)){console[_0x16c718(0x246)]('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console['log'](_0x1247ed[_0x16c718(0x17a)]);for(let _0x154049=0x0;_0x1247ed[_0x16c718(0x196)](_0x154049,_0x40eca0[_0x16c718(0x1d9)]);_0x154049++){console['log']('\x20\x20'+(_0x154049+0x1)+'.\x20'+_0x40eca0[_0x154049][_0x16c718(0x1d4)]);}process['exit'](0x1);}const _0xfb3a9c=_0x1247ed['KECPU'](_0x195268['scenario'],0x1);if(_0x1247ed['YwdTp'](_0xfb3a9c,0x0)||_0xfb3a9c>=_0x40eca0[_0x16c718(0x1d9)]){console['error']('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x195268[_0x16c718(0x222)]+'.\x20Feature\x20review\x20has\x20'+_0x40eca0[_0x16c718(0x1d9)]+'\x20scenarios.'),console[_0x16c718(0x184)](_0x16c718(0x1fe));for(let _0x231fc8=0x0;_0x231fc8<_0x40eca0[_0x16c718(0x1d9)];_0x231fc8++){console['log']('\x20\x20'+(_0x231fc8+0x1)+'.\x20'+_0x40eca0[_0x231fc8][_0x16c718(0x1d4)]);}process['exit'](0x1);}const _0xd592b3=_0x40eca0[_0xfb3a9c];await updateChecklistItem(_0x55a2a3,_0xd592b3['id'],{'description':_0x1e1e38});const _0x31e889=await _0x1247ed['qZJzK'](getFeature,_0x55a2a3);console['log'](_0x16c718(0x1bd)),_0x1247ed['WWuCM'](displayFeature,_0x31e889,_0x31e889[_0x16c718(0x1ab)]);}async function downloadFeedbackImage(_0xef45ce,_0x1c0a28){const _0x3caef9=_0x1f563c,_0xa7a2bd={'VZWiO':function(_0x3715b3,_0x215be2,_0x56b10f){return _0x3715b3(_0x215be2,_0x56b10f);},'TeohU':function(_0x5daa98,_0x2b0d50,_0x3916c3){return _0x5daa98(_0x2b0d50,_0x3916c3);}};try{const _0x46cc71=_0xa7a2bd['VZWiO'](join,getRangerDir(),_0x3caef9(0x22d));await _0xa7a2bd['TeohU'](mkdir,_0x46cc71,{'recursive':!![]});const _0xd0b75f=join(_0x46cc71,_0x3caef9(0x19f)+_0x1c0a28+_0x3caef9(0x233)),_0x5e7572=await fetch(_0xef45ce);if(!_0x5e7572['ok'])return null;const _0x50d9bd=Buffer[_0x3caef9(0x1cb)](await _0x5e7572['arrayBuffer']());return await _0xa7a2bd['VZWiO'](writeFile,_0xd0b75f,_0x50d9bd),_0xd0b75f;}catch{return null;}}export async function featureGetReview(_0x2dd371){const _0x1edd76=_0x1f563c,_0x168f9f={'HFRbp':function(_0x39722a){return _0x39722a();},'EHyrP':_0x1edd76(0x255),'VpUzs':function(_0x218f99,_0x5f2db3){return _0x218f99(_0x5f2db3);},'yzevW':_0x1edd76(0x19a),'PQIrM':function(_0x55181f,_0x46754a){return _0x55181f<_0x46754a;},'rWvzD':function(_0x2ffb74,_0x423112){return _0x2ffb74>_0x423112;},'Zvayl':function(_0x40c0f1,_0x1c77cf){return _0x40c0f1>_0x1c77cf;},'pvXCe':function(_0x13c5f0,_0x18fbfc){return _0x13c5f0+_0x18fbfc;},'MXuJW':_0x1edd76(0x240),'uWjtY':'Unknown','jiTdz':function(_0x14b111,_0x5c2768,_0x3da90f){return _0x14b111(_0x5c2768,_0x3da90f);},'FsKGe':_0x1edd76(0x18b),'pmbhc':_0x1edd76(0x1cd),'DmenW':_0x1edd76(0x22c)},_0x18ecd9=_0x2dd371||await _0x168f9f['HFRbp'](getActiveFeatureId);if(!_0x18ecd9)throw new Error(_0x168f9f['EHyrP']);const _0x2b2308=await getFeature(_0x18ecd9),{items:_0x2fce91}=await _0x168f9f[_0x1edd76(0x24d)](getActionItems,_0x18ecd9);console[_0x1edd76(0x184)]('\x0a📋\x20Feedback\x20for:\x20'+_0x2b2308['name']+'\x20('+_0x2b2308['id']+')\x0a');if(_0x2fce91['length']===0x0){console[_0x1edd76(0x184)](_0x168f9f[_0x1edd76(0x219)]);return;}for(let _0x2a23a0=0x0;_0x168f9f['PQIrM'](_0x2a23a0,_0x2fce91[_0x1edd76(0x1d9)]);_0x2a23a0++){const _0x21f3e8=_0x2fce91[_0x2a23a0],_0x4fba27=_0x168f9f['rWvzD'](_0x21f3e8['version'],0x1)?_0x1edd76(0x251)+_0x21f3e8['version']+')':'',_0x314526=await getItemFeedback(_0x18ecd9,_0x21f3e8['id']);if(_0x168f9f[_0x1edd76(0x212)](_0x314526['unaddressedComments']['length'],0x0)){console[_0x1edd76(0x184)]('Scenario\x20'+_0x168f9f[_0x1edd76(0x1d8)](_0x2a23a0,0x1)+_0x1edd76(0x17e)+_0x21f3e8['description']+'\x22'+_0x4fba27+'\x20—\x20'+_0x314526[_0x1edd76(0x257)]['length']+_0x1edd76(0x241));for(const _0x2e4f01 of _0x314526['unaddressedComments']){const _0x11e167=new Date(_0x2e4f01[_0x1edd76(0x199)])[_0x1edd76(0x178)](_0x1edd76(0x1f6),{'month':_0x168f9f[_0x1edd76(0x181)],'day':_0x1edd76(0x249)}),_0x82056e=_0x2e4f01[_0x1edd76(0x1ec)]||_0x2e4f01['authorEmail']||_0x168f9f['uWjtY'];console['log']('\x20\x20💬\x20'+_0x82056e+'\x20('+_0x11e167+'):\x20\x22'+_0x2e4f01[_0x1edd76(0x20c)]+'\x22');if(_0x2e4f01[_0x1edd76(0x180)]){const _0x53ff25=await _0x168f9f['jiTdz'](downloadFeedbackImage,_0x2e4f01['assetUrl'],_0x2e4f01['id']);_0x53ff25&&console['log']('\x20\x20\x20\x20\x20📷\x20Screenshot:\x20'+_0x53ff25);}if(_0x2e4f01[_0x1edd76(0x252)]){const _0x4b84eb=_0x2e4f01['domRef']['selector'][_0x1edd76(0x242)](_0x168f9f[_0x1edd76(0x177)])['pop']()?.[_0x1edd76(0x242)](':')[0x0]||_0x168f9f[_0x1edd76(0x211)],_0x277e7b=_0x2e4f01['domRef']['textContent']?'\x20\x22'+_0x2e4f01['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console[_0x1edd76(0x184)]('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x4b84eb+'>'+_0x277e7b),console['log'](_0x1edd76(0x1c5)+_0x2e4f01['domRef']['selector']);}else{if(_0x2e4f01['spatial']){const _0x4d57d8=_0x2e4f01[_0x1edd76(0x225)][_0x1edd76(0x250)];_0x2e4f01['spatial'][_0x1edd76(0x1d2)]===_0x168f9f['DmenW']&&_0x4d57d8[_0x1edd76(0x1d9)]>=0x2?console[_0x1edd76(0x184)](_0x1edd76(0x1af)+_0x4d57d8[0x0]['toFixed'](0x2)+',\x20'+_0x4d57d8[0x1][_0x1edd76(0x19d)](0x2)+')'):console['log'](_0x1edd76(0x224)+_0x2e4f01['spatial']['type']+'\x20at\x20['+_0x4d57d8['map'](_0x166126=>_0x166126[_0x1edd76(0x19d)](0x2))['join'](',\x20')+']');}}}if(_0x314526[_0x1edd76(0x1c9)]){console[_0x1edd76(0x184)]('\x20\x20Expected\x20flow:');for(const _0x482ec2 of _0x314526[_0x1edd76(0x1c9)]['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x482ec2);}}}else console[_0x1edd76(0x184)]('Scenario\x20'+(_0x2a23a0+0x1)+':\x20\x22'+_0x21f3e8[_0x1edd76(0x1d4)]+'\x22'+_0x4fba27+_0x1edd76(0x23c)),console[_0x1edd76(0x184)](_0x1edd76(0x1ba));console[_0x1edd76(0x184)]('');}}export async function featureDelete(_0x174f5b){const _0x86439f=_0x1f563c,_0x2bebea={'HkWDY':function(_0x2d0729){return _0x2d0729();},'DFYro':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','OoygP':function(_0x42ab6f,_0x37d0f6){return _0x42ab6f(_0x37d0f6);},'PWLaG':function(_0x4dd2e3,_0x4ef326){return _0x4dd2e3(_0x4ef326);},'wsIPV':function(_0x422024,_0x10ca91){return _0x422024+_0x10ca91;}},_0x190b3c=_0x174f5b||await _0x2bebea[_0x86439f(0x24f)](getActiveFeatureId);if(!_0x190b3c)throw new Error(_0x2bebea[_0x86439f(0x215)]);const _0xdf53b=await _0x2bebea[_0x86439f(0x1ef)](getFeature,_0x190b3c);await _0x2bebea[_0x86439f(0x1c7)](softDeleteFeature,_0x190b3c),console[_0x86439f(0x184)](_0x86439f(0x1fb)+_0xdf53b[_0x86439f(0x1a7)]+'\x20('+_0x190b3c+')'),console['log'](_0x2bebea['wsIPV'](_0x86439f(0x176),_0x190b3c));}export async function featureRestore(_0x2c8871){const _0x4477eb=_0x1f563c,_0x2d2ec9={'evMJu':function(_0x1bb782,_0x31af90,_0x4fe1da){return _0x1bb782(_0x31af90,_0x4fe1da);}};await restoreFeature(_0x2c8871);const _0x25caa0=await getFeature(_0x2c8871);console[_0x4477eb(0x184)](_0x4477eb(0x24e)+_0x25caa0[_0x4477eb(0x1a7)]+'\x20('+_0x2c8871+')'),_0x2d2ec9['evMJu'](displayFeature,_0x25caa0,_0x25caa0['checklistItems']);}
@@ -1 +1 @@
1
- function _0x37cc(){const _0x1bd641=['2068UysMXC','Unknown\x20hook:\x20','join','keys','18RzirGp','SIGTERM','160778ZvbXGz','110222zksmIc','4798990kzqoJD','4814952WelTGr','11OhCKur','4413VSmsZX','exit','edsKx','19JmOrvb','error','2293284sYBmhx','5113780HVWrad','NCbCo','AnVHv'];_0x37cc=function(){return _0x1bd641;};return _0x37cc();}(function(_0xc21f1c,_0x33d65f){const _0xe60611=_0x3ce7,_0x399f66=_0xc21f1c();while(!![]){try{const _0x3af029=-parseInt(_0xe60611(0x1ad))/0x1*(parseInt(_0xe60611(0x1b9))/0x2)+-parseInt(_0xe60611(0x1aa))/0x3*(parseInt(_0xe60611(0x1b3))/0x4)+parseInt(_0xe60611(0x1b0))/0x5+parseInt(_0xe60611(0x1af))/0x6+parseInt(_0xe60611(0x1ba))/0x7+-parseInt(_0xe60611(0x1bc))/0x8*(-parseInt(_0xe60611(0x1b7))/0x9)+parseInt(_0xe60611(0x1bb))/0xa*(parseInt(_0xe60611(0x1a9))/0xb);if(_0x3af029===_0x33d65f)break;else _0x399f66['push'](_0x399f66['shift']());}catch(_0x1427aa){_0x399f66['push'](_0x399f66['shift']());}}}(_0x37cc,0xc7547));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 _0x3ce7(_0x46b142,_0x5b28d1){_0x46b142=_0x46b142-0x1a9;const _0x37cc66=_0x37cc();let _0x3ce70e=_0x37cc66[_0x46b142];return _0x3ce70e;}function installCancellationHandlers(){const _0x526f1a=_0x3ce7,_0x5dbf5f={'AnVHv':'SIGINT','edsKx':_0x526f1a(0x1b8),'WDXpc':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x53c54c=()=>{const _0x55067a=_0x526f1a;process[_0x55067a(0x1ab)](0x0);};process['once'](_0x5dbf5f[_0x526f1a(0x1b2)],_0x53c54c),process['once'](_0x5dbf5f[_0x526f1a(0x1ac)],_0x53c54c),process['once'](_0x5dbf5f['WDXpc'],_0x53c54c),cancellationHandlersInstalled=!![];}export async function hook(_0x569178,_0x157226){const _0x6e5147=_0x3ce7,_0x57b7ec={'NCbCo':function(_0x30a88d){return _0x30a88d();},'YdboJ':function(_0x1e558d,_0x3a7a3e){return _0x1e558d(_0x3a7a3e);}};_0x57b7ec[_0x6e5147(0x1b1)](installCancellationHandlers);const _0x578d1b=HOOKS[_0x569178];if(!_0x578d1b){const _0x26df6d=Object[_0x6e5147(0x1b6)](HOOKS)[_0x6e5147(0x1b5)](',\x20');console[_0x6e5147(0x1ae)](_0x6e5147(0x1b4)+_0x569178),console[_0x6e5147(0x1ae)]('Valid\x20hooks:\x20'+_0x26df6d),process[_0x6e5147(0x1ab)](0x1);}await _0x57b7ec['YdboJ'](_0x578d1b,_0x157226);}
1
+ function _0x302a(_0x3b069d,_0x23835b){_0x3b069d=_0x3b069d-0x135;const _0x2fa9f8=_0x2fa9();let _0x302aa0=_0x2fa9f8[_0x3b069d];return _0x302aa0;}(function(_0x3e3467,_0x574abd){const _0x2b0f84=_0x302a,_0x521791=_0x3e3467();while(!![]){try{const _0x5c344a=parseInt(_0x2b0f84(0x143))/0x1+parseInt(_0x2b0f84(0x144))/0x2*(-parseInt(_0x2b0f84(0x135))/0x3)+-parseInt(_0x2b0f84(0x141))/0x4+parseInt(_0x2b0f84(0x13b))/0x5*(-parseInt(_0x2b0f84(0x138))/0x6)+parseInt(_0x2b0f84(0x13d))/0x7*(-parseInt(_0x2b0f84(0x13e))/0x8)+-parseInt(_0x2b0f84(0x142))/0x9+parseInt(_0x2b0f84(0x139))/0xa;if(_0x5c344a===_0x574abd)break;else _0x521791['push'](_0x521791['shift']());}catch(_0x2e2ed9){_0x521791['push'](_0x521791['shift']());}}}(_0x2fa9,0x1ed73));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x2fa9(){const _0x56631c=['165778RlCHhg','3rVkLyy','error','Unknown\x20hook:\x20','546uhvmaV','6145230iNhTVG','exit','8015zEiCni','SIGTERM','350987oWQWlV','8auUbKD','SIGHUP','once','746052lWaNOp','291645OlRVSd','9621FSrFPy'];_0x2fa9=function(){return _0x56631c;};return _0x2fa9();}const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x5c6fc8=_0x302a;if(cancellationHandlersInstalled)return;const _0x37cf6e=()=>{const _0x1528af=_0x302a;process[_0x1528af(0x13a)](0x0);};process[_0x5c6fc8(0x140)]('SIGINT',_0x37cf6e),process['once'](_0x5c6fc8(0x13c),_0x37cf6e),process['once'](_0x5c6fc8(0x13f),_0x37cf6e),cancellationHandlersInstalled=!![];}export async function hook(_0x38e455,_0x3b059f){const _0xc1c61f=_0x302a;installCancellationHandlers();const _0xdace9e=HOOKS[_0x38e455];if(!_0xdace9e){const _0x5eed8a=Object['keys'](HOOKS)['join'](',\x20');console['error'](_0xc1c61f(0x137)+_0x38e455),console[_0xc1c61f(0x136)]('Valid\x20hooks:\x20'+_0x5eed8a),process['exit'](0x1);}await _0xdace9e(_0x3b059f);}
@@ -1 +1 @@
1
- (function(_0x1904b2,_0x22600b){const _0x16daec=_0xbd62,_0x3526a7=_0x1904b2();while(!![]){try{const _0x2c7be7=-parseInt(_0x16daec(0x170))/0x1*(-parseInt(_0x16daec(0x169))/0x2)+parseInt(_0x16daec(0x16f))/0x3*(-parseInt(_0x16daec(0x171))/0x4)+-parseInt(_0x16daec(0x16c))/0x5+parseInt(_0x16daec(0x168))/0x6*(-parseInt(_0x16daec(0x16e))/0x7)+parseInt(_0x16daec(0x16d))/0x8+parseInt(_0x16daec(0x16a))/0x9+parseInt(_0x16daec(0x172))/0xa;if(_0x2c7be7===_0x22600b)break;else _0x3526a7['push'](_0x3526a7['shift']());}catch(_0x551897){_0x3526a7['push'](_0x3526a7['shift']());}}}(_0x4669,0x39de4));import{readHookInput}from'./output.js';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 _0xbd62(_0x1d4c29,_0x314c9d){_0x1d4c29=_0x1d4c29-0x167;const _0x466949=_0x4669();let _0xbd62a6=_0x466949[_0x1d4c29];return _0xbd62a6;}function _0x4669(){const _0x2ceaab=['4OdXSVM','307647VHaaMB','session_id','1604505zhbzJe','213136HjmNoI','7WWhIto','373473QVpEye','87473sUaJOF','12AELNOf','7510240Haqkrx','sGbaT','332358KRClfy'];_0x4669=function(){return _0x2ceaab;};return _0x4669();}export async function autoPrompt(){const _0x450eb1=_0xbd62,_0x569ae5={'sGbaT':function(_0x55e54d,_0x559ffa){return _0x55e54d(_0x559ffa);}},_0x4c5c34=await readHookInput(),_0x301e2d=_0x4c5c34?.[_0x450eb1(0x16b)];if(!_0x301e2d)return;if(_0x569ae5[_0x450eb1(0x167)](isSessionEnabled,_0x301e2d)||hasSessionBeenPrompted(_0x301e2d))return;markSessionPrompted(_0x301e2d),console['log'](AUTO_PROMPT_TEXT);}
1
+ const _0x1b5ffd=_0x33be;(function(_0x29064b,_0x25957a){const _0x38fc08=_0x33be,_0x239619=_0x29064b();while(!![]){try{const _0x7a5fe9=-parseInt(_0x38fc08(0x1df))/0x1*(parseInt(_0x38fc08(0x1e1))/0x2)+parseInt(_0x38fc08(0x1dd))/0x3+-parseInt(_0x38fc08(0x1db))/0x4*(-parseInt(_0x38fc08(0x1d8))/0x5)+parseInt(_0x38fc08(0x1d7))/0x6+-parseInt(_0x38fc08(0x1da))/0x7+parseInt(_0x38fc08(0x1de))/0x8*(-parseInt(_0x38fc08(0x1d6))/0x9)+parseInt(_0x38fc08(0x1e0))/0xa;if(_0x7a5fe9===_0x25957a)break;else _0x239619['push'](_0x239619['shift']());}catch(_0x4eac63){_0x239619['push'](_0x239619['shift']());}}}(_0x2c8f,0x2624b));function _0x33be(_0x54d6fc,_0x578437){_0x54d6fc=_0x54d6fc-0x1d6;const _0x2c8fa4=_0x2c8f();let _0x33be59=_0x2c8fa4[_0x54d6fc];return _0x33be59;}import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x1b5ffd(0x1d9);export async function autoPrompt(){const _0x2f89b1=_0x1b5ffd,_0xfcb2b0={'PrJwj':function(_0x2314cf,_0x4d6aa){return _0x2314cf(_0x4d6aa);}},_0x2659a6=await readHookInput(),_0x10b71a=_0x2659a6?.['session_id'];if(!_0x10b71a)return;if(_0xfcb2b0['PrJwj'](isSessionEnabled,_0x10b71a)||hasSessionBeenPrompted(_0x10b71a))return;markSessionPrompted(_0x10b71a),console[_0x2f89b1(0x1dc)](AUTO_PROMPT_TEXT);}function _0x2c8f(){const _0x37ece5=['1105GkYwXe','\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.','1655955SUPmEJ','292OoBKki','log','555366YKsMQz','16iipeMz','65939vrQGSw','2819080WPyRBP','6RyYYkn','412713imqvIM','1195008OZWvFf'];_0x2c8f=function(){return _0x37ece5;};return _0x2c8f();}
@@ -1 +1 @@
1
- function _0x20ce(){const _0x4bf295=['19775CpsLgY','.\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`.','4855128aicLFr','14aRvGRZ','13uGLOlQ','8jfECSP','master','10CxPecH','jzdVN','main','1555638jpCTYq','PoGVJ','9066kMNZCQ','24796zyZOqA','2927496BeXtja','189JaBUwC','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','125yYGNyP','\x20and\x20branch\x20\x27','459063zofgvk'];_0x20ce=function(){return _0x4bf295;};return _0x20ce();}(function(_0x545f9f,_0x17905f){const _0xfb4ff2=_0x32b8,_0x48359e=_0x545f9f();while(!![]){try{const _0x337e49=parseInt(_0xfb4ff2(0x1b6))/0x1*(-parseInt(_0xfb4ff2(0x1b9))/0x2)+parseInt(_0xfb4ff2(0x1b1))/0x3*(-parseInt(_0xfb4ff2(0x1af))/0x4)+-parseInt(_0xfb4ff2(0x1b3))/0x5*(parseInt(_0xfb4ff2(0x1ae))/0x6)+parseInt(_0xfb4ff2(0x1ac))/0x7*(parseInt(_0xfb4ff2(0x1bb))/0x8)+parseInt(_0xfb4ff2(0x1b5))/0x9*(-parseInt(_0xfb4ff2(0x1a9))/0xa)+parseInt(_0xfb4ff2(0x1b0))/0xb+parseInt(_0xfb4ff2(0x1b8))/0xc*(parseInt(_0xfb4ff2(0x1ba))/0xd);if(_0x337e49===_0x17905f)break;else _0x48359e['push'](_0x48359e['shift']());}catch(_0x2da004){_0x48359e['push'](_0x48359e['shift']());}}}(_0x20ce,0x43314));function _0x32b8(_0x54230d,_0x22d920){_0x54230d=_0x54230d-0x1a9;const _0x20cedc=_0x20ce();let _0x32b8a5=_0x20cedc[_0x54230d];return _0x32b8a5;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x2ddd6a){const _0x3f7d3e=_0x32b8,_0x2c502e={'PoGVJ':function(_0x260043){return _0x260043();},'jzdVN':function(_0x29e14f,_0x2bebad){return _0x29e14f!==_0x2bebad;},'suEgC':function(_0x5e4ac2,_0x3c193a){return _0x5e4ac2!==_0x3c193a;},'SlwHC':function(_0xda6a87,_0x2d7ee6){return _0xda6a87(_0x2d7ee6);},'blEDq':_0x3f7d3e(0x1ab),'dgLCR':'master'},_0x9f8705=_0x2ddd6a||process['env']['CLAUDE_SESSION_ID']||'';_0x9f8705&&disableSession(_0x9f8705);const _0x12e583=_0x2c502e[_0x3f7d3e(0x1ad)](getCurrentBranch);_0x12e583&&_0x2c502e[_0x3f7d3e(0x1aa)](_0x12e583,'main')&&_0x2c502e['suEgC'](_0x12e583,_0x3f7d3e(0x1bc))&&_0x2c502e['SlwHC'](disableBranch,_0x12e583),printBlock(_0x3f7d3e(0x1b2)+(_0x12e583&&_0x12e583!==_0x2c502e['blEDq']&&_0x12e583!==_0x2c502e['dgLCR']?_0x3f7d3e(0x1b4)+_0x12e583+'\x27':'')+_0x3f7d3e(0x1b7));}
1
+ (function(_0x10c88a,_0x32bebb){const _0x2b3b41=_0x14ff,_0x532be5=_0x10c88a();while(!![]){try{const _0x343d12=-parseInt(_0x2b3b41(0xef))/0x1*(parseInt(_0x2b3b41(0xea))/0x2)+-parseInt(_0x2b3b41(0xf0))/0x3+parseInt(_0x2b3b41(0xee))/0x4+parseInt(_0x2b3b41(0xe9))/0x5*(-parseInt(_0x2b3b41(0xe8))/0x6)+parseInt(_0x2b3b41(0xed))/0x7*(parseInt(_0x2b3b41(0xf3))/0x8)+-parseInt(_0x2b3b41(0xf1))/0x9*(-parseInt(_0x2b3b41(0xe7))/0xa)+parseInt(_0x2b3b41(0xeb))/0xb;if(_0x343d12===_0x32bebb)break;else _0x532be5['push'](_0x532be5['shift']());}catch(_0x31e536){_0x532be5['push'](_0x532be5['shift']());}}}(_0x13de,0x4f52d));function _0x14ff(_0x310bf6,_0x5a98fc){_0x310bf6=_0x310bf6-0xe4;const _0x13de81=_0x13de();let _0x14ffa7=_0x13de81[_0x310bf6];return _0x14ffa7;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x13de(){const _0x38ad66=['env','24kSxcWb','TtlNl','FXSpD','master','346170GYzzVe','30WMbrfs','189790yKFLFu','601708zMfnOe','7394145YVSRBT','QQzau','1259846MlQcgK','221648tKdVXv','1SBhYeb','1771368VqpZBx','36sCvnXX'];_0x13de=function(){return _0x38ad66;};return _0x13de();}export async function disable(_0xf3b821){const _0x5c9fd3=_0x14ff,_0x3c0689={'TtlNl':function(_0x20aac3,_0x1c29c1){return _0x20aac3!==_0x1c29c1;},'sOtDY':function(_0x12bbc5,_0x361b7c){return _0x12bbc5(_0x361b7c);},'QQzau':function(_0x378b51,_0x5c926a){return _0x378b51!==_0x5c926a;},'FXSpD':_0x5c9fd3(0xe6)},_0x5eb148=_0xf3b821||process[_0x5c9fd3(0xf2)]['CLAUDE_SESSION_ID']||'';_0x5eb148&&disableSession(_0x5eb148);const _0x275ca1=getCurrentBranch();_0x275ca1&&_0x275ca1!=='main'&&_0x3c0689['TtlNl'](_0x275ca1,_0x5c9fd3(0xe6))&&disableBranch(_0x275ca1),_0x3c0689['sOtDY'](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x275ca1&&_0x3c0689[_0x5c9fd3(0xe4)](_0x275ca1,'main')&&_0x3c0689[_0x5c9fd3(0xec)](_0x275ca1,_0x3c0689[_0x5c9fd3(0xe5)])?'\x20and\x20branch\x20\x27'+_0x275ca1+'\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(_0x121879,_0x57c9d2){const _0x288720=_0x1826,_0x199c4b=_0x121879();while(!![]){try{const _0xdb9b60=-parseInt(_0x288720(0x1ae))/0x1+parseInt(_0x288720(0x1af))/0x2+-parseInt(_0x288720(0x1a6))/0x3*(-parseInt(_0x288720(0x19f))/0x4)+-parseInt(_0x288720(0x1a7))/0x5+parseInt(_0x288720(0x1aa))/0x6*(parseInt(_0x288720(0x1ad))/0x7)+parseInt(_0x288720(0x1a8))/0x8+-parseInt(_0x288720(0x1ab))/0x9*(parseInt(_0x288720(0x1a5))/0xa);if(_0xdb9b60===_0x57c9d2)break;else _0x199c4b['push'](_0x199c4b['shift']());}catch(_0x1cb08a){_0x199c4b['push'](_0x199c4b['shift']());}}}(_0x531a,0x3b466));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x1826(_0x1ee2da,_0x344813){_0x1ee2da=_0x1ee2da-0x19f;const _0x531a36=_0x531a();let _0x1826f4=_0x531a36[_0x1ee2da];return _0x1826f4;}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x1f4d52){const _0x4d92e0=_0x1826,_0x4f6399={'ywdwE':function(_0x264a01,_0x3d6927){return _0x264a01(_0x3d6927);},'sZOaK':_0x4d92e0(0x1a9),'gXaOJ':_0x4d92e0(0x1a3),'BwzuG':'master'},_0xac651b=_0x1f4d52||process['env'][_0x4d92e0(0x1ac)]||'',_0x35752f=_0x4f6399[_0x4d92e0(0x1a4)](Boolean,_0x1f4d52),_0x654233=await getToken();if(!_0x654233){const _0x4c159c=_0x35752f?'ranger\x20setup\x20--opencode':'ranger\x20setup',_0xabd47a=_0x35752f?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x4f6399[_0x4d92e0(0x1b0)];printBlock(_0x4d92e0(0x1a1)+_0x4c159c+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0xabd47a);return;}try{await update();}catch{}_0xac651b&&enableSession(_0xac651b);const _0x20e9ca=getCurrentBranch(),_0x43e535=_0x20e9ca&&_0x20e9ca!==_0x4f6399[_0x4d92e0(0x1a2)]&&_0x20e9ca!==_0x4f6399[_0x4d92e0(0x1a0)]?'\x0a\x0a**Branch\x20\x27'+_0x20e9ca+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x4e02cf=getRangerSkillContent();_0x4f6399['ywdwE'](printBlock,'#\x20RANGER\x20ENABLED'+_0x43e535+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x4e02cf+'\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`.');}function _0x531a(){const _0x3e1924=['36tiEcMq','27yZbQoy','CLAUDE_SESSION_ID','549668XlKmzG','26398jcdQPE','406202rXDBme','sZOaK','312PjzFAs','BwzuG','#\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`','gXaOJ','main','ywdwE','2554030AnqtIp','3426tqbMWH','851320lVmynC','3538720ktUDOJ','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.'];_0x531a=function(){return _0x3e1924;};return _0x531a();}
1
+ (function(_0x2ff419,_0xe445d0){const _0x392023=_0x5548,_0x1cf10a=_0x2ff419();while(!![]){try{const _0x3a43ed=-parseInt(_0x392023(0x15d))/0x1+-parseInt(_0x392023(0x161))/0x2+parseInt(_0x392023(0x15a))/0x3*(-parseInt(_0x392023(0x167))/0x4)+-parseInt(_0x392023(0x169))/0x5+-parseInt(_0x392023(0x163))/0x6+parseInt(_0x392023(0x16b))/0x7+-parseInt(_0x392023(0x15e))/0x8*(-parseInt(_0x392023(0x16a))/0x9);if(_0x3a43ed===_0xe445d0)break;else _0x1cf10a['push'](_0x1cf10a['shift']());}catch(_0x52cdbc){_0x1cf10a['push'](_0x1cf10a['shift']());}}}(_0x54b8,0x9ef22));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x5548(_0x4e50fd,_0xe83e52){_0x4e50fd=_0x4e50fd-0x159;const _0x54b819=_0x54b8();let _0x5548a5=_0x54b819[_0x4e50fd];return _0x5548a5;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x54b8(){const _0x199b14=['6696666HrzVOw','master','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','lOJFr','67936GIUQmQ','ewOFT','4662960pjmGUn','148347MlVsLz','7896644FKDydW','`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','3aEAUDi','LfnOC','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','886718mWxyiS','1672vJRYzn','\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`.','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','1939184qwRQpr','xHxok'];_0x54b8=function(){return _0x199b14;};return _0x54b8();}export async function enable(_0x238035){const _0x5864df=_0x5548,_0x4064e6={'EHHlZ':function(_0x2ab1b3,_0x2c6531){return _0x2ab1b3(_0x2c6531);},'xHxok':function(_0x2d19a5){return _0x2d19a5();},'jAVSg':'ranger\x20setup\x20--opencode','tdXOS':'ranger\x20setup','ewOFT':_0x5864df(0x159),'lOJFr':function(_0x49c2ed){return _0x49c2ed();},'LfnOC':'main','JwumL':function(_0x35ea63,_0x811be4){return _0x35ea63!==_0x811be4;}},_0x40ff68=_0x238035||process['env']['CLAUDE_SESSION_ID']||'',_0xd16908=_0x4064e6['EHHlZ'](Boolean,_0x238035),_0x432689=await _0x4064e6[_0x5864df(0x162)](getToken);if(!_0x432689){const _0x21c8b8=_0xd16908?_0x4064e6['jAVSg']:_0x4064e6['tdXOS'],_0x25a8be=_0xd16908?_0x4064e6[_0x5864df(0x168)]:_0x5864df(0x15c);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`'+_0x21c8b8+_0x5864df(0x16c)+_0x25a8be);return;}try{await _0x4064e6['xHxok'](update);}catch{}_0x40ff68&&enableSession(_0x40ff68);const _0x103c3e=_0x4064e6[_0x5864df(0x166)](getCurrentBranch),_0xa44c04=_0x103c3e&&_0x103c3e!==_0x4064e6[_0x5864df(0x15b)]&&_0x4064e6['JwumL'](_0x103c3e,_0x5864df(0x164))?'\x0a\x0a**Branch\x20\x27'+_0x103c3e+_0x5864df(0x165):'',_0x181fdc=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0xa44c04+_0x5864df(0x160)+_0x181fdc+_0x5864df(0x15f));}
@@ -1 +1 @@
1
- function _0x42ce(){const _0x190086=['===\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===','292000NkGJQc','185156aKjQnl','639iLbyoH','8494ukiskv','357132BuxtxT','3883656vKtflk','38750whXBsF','44DUGBjp','2480340YYCjOI','27JDphFs','148jWXCdD','14uIFXrS'];_0x42ce=function(){return _0x190086;};return _0x42ce();}(function(_0x4ac74b,_0x911984){const _0x444a6a=_0xb94a,_0x191678=_0x4ac74b();while(!![]){try{const _0x41e94f=-parseInt(_0x444a6a(0x112))/0x1*(-parseInt(_0x444a6a(0x118))/0x2)+parseInt(_0x444a6a(0x111))/0x3*(-parseInt(_0x444a6a(0x116))/0x4)+parseInt(_0x444a6a(0x115))/0x5+parseInt(_0x444a6a(0x10c))/0x6*(parseInt(_0x444a6a(0x113))/0x7)+parseInt(_0x444a6a(0x10d))/0x8+-parseInt(_0x444a6a(0x117))/0x9*(-parseInt(_0x444a6a(0x10e))/0xa)+parseInt(_0x444a6a(0x10f))/0xb*(-parseInt(_0x444a6a(0x110))/0xc);if(_0x41e94f===_0x911984)break;else _0x191678['push'](_0x191678['shift']());}catch(_0x4d3896){_0x191678['push'](_0x191678['shift']());}}}(_0x42ce,0x4ee81));function _0xb94a(_0x57e094,_0x7b7876){_0x57e094=_0x57e094-0x10c;const _0x42cec7=_0x42ce();let _0xb94aea=_0x42cec7[_0x57e094];return _0xb94aea;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x4a8924){const _0x588e51=_0xb94a,_0x3cd82e=await getEnabledSessionId(_0x4a8924);if(!_0x3cd82e)return;printBlock(_0x588e51(0x114));}
1
+ (function(_0x204ce2,_0x5641ca){const _0x2dc75e=_0xaab5,_0x279b9e=_0x204ce2();while(!![]){try{const _0xe60c0b=-parseInt(_0x2dc75e(0x13d))/0x1*(-parseInt(_0x2dc75e(0x13b))/0x2)+-parseInt(_0x2dc75e(0x140))/0x3*(parseInt(_0x2dc75e(0x141))/0x4)+-parseInt(_0x2dc75e(0x13a))/0x5+parseInt(_0x2dc75e(0x142))/0x6+parseInt(_0x2dc75e(0x13c))/0x7*(parseInt(_0x2dc75e(0x139))/0x8)+parseInt(_0x2dc75e(0x13f))/0x9+-parseInt(_0x2dc75e(0x13e))/0xa;if(_0xe60c0b===_0x5641ca)break;else _0x279b9e['push'](_0x279b9e['shift']());}catch(_0x1a05ed){_0x279b9e['push'](_0x279b9e['shift']());}}}(_0x1e5f,0x7e33f));function _0xaab5(_0x5434f9,_0x5df8b0){_0x5434f9=_0x5434f9-0x138;const _0x1e5f2c=_0x1e5f();let _0xaab547=_0x1e5f2c[_0x5434f9];return _0xaab547;}function _0x1e5f(){const _0x55f44f=['2664iXzvct','7000bgytbe','613lGeLxV','14727100fnAsBC','7265502JasDdI','46683YQJkig','184kwpfNg','6180294eWJpqu','wdILe','8072DUuSqe','4787000SjnjTz'];_0x1e5f=function(){return _0x55f44f;};return _0x1e5f();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x11276d){const _0x4aae48=_0xaab5,_0xd9c9b6={'wdILe':function(_0x53e3dc,_0x2fed66){return _0x53e3dc(_0x2fed66);}},_0x569e41=await getEnabledSessionId(_0x11276d);if(!_0x569e41)return;_0xd9c9b6[_0x4aae48(0x138)](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}
@@ -1 +1 @@
1
- (function(_0x4cc4ad,_0x5ec7d5){var _0x22ae5a=_0x1e5d,_0x1d7011=_0x4cc4ad();while(!![]){try{var _0x54d386=-parseInt(_0x22ae5a(0x14a))/0x1+-parseInt(_0x22ae5a(0x148))/0x2*(parseInt(_0x22ae5a(0x146))/0x3)+parseInt(_0x22ae5a(0x145))/0x4*(parseInt(_0x22ae5a(0x143))/0x5)+-parseInt(_0x22ae5a(0x142))/0x6+-parseInt(_0x22ae5a(0x144))/0x7+parseInt(_0x22ae5a(0x149))/0x8*(-parseInt(_0x22ae5a(0x14b))/0x9)+parseInt(_0x22ae5a(0x147))/0xa;if(_0x54d386===_0x5ec7d5)break;else _0x1d7011['push'](_0x1d7011['shift']());}catch(_0x4793f2){_0x1d7011['push'](_0x1d7011['shift']());}}}(_0x5ad9,0x1e73d));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x1e5d(_0x369aa5,_0x2bfe3f){_0x369aa5=_0x369aa5-0x142;var _0x5ad9a4=_0x5ad9();var _0x1e5db=_0x5ad9a4[_0x369aa5];return _0x1e5db;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';function _0x5ad9(){var _0x4530c8=['6372850TAedrK','2hIxzyP','737816URMXXa','167557ZBlhwo','9sGvYAn','841926IJpLyd','66310tfVBDj','329721IRbxGG','20BVnJYt','394962GtgjiO'];_0x5ad9=function(){return _0x4530c8;};return _0x5ad9();}export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0x4efff4,_0x233a9a){var _0x1f064e=_0xec53,_0x4a1254=_0x4efff4();while(!![]){try{var _0x6290f8=-parseInt(_0x1f064e(0xeb))/0x1+-parseInt(_0x1f064e(0xea))/0x2*(parseInt(_0x1f064e(0xe9))/0x3)+-parseInt(_0x1f064e(0xee))/0x4+-parseInt(_0x1f064e(0xec))/0x5+-parseInt(_0x1f064e(0xef))/0x6+-parseInt(_0x1f064e(0xf0))/0x7+parseInt(_0x1f064e(0xed))/0x8;if(_0x6290f8===_0x233a9a)break;else _0x4a1254['push'](_0x4a1254['shift']());}catch(_0x2e2c3e){_0x4a1254['push'](_0x4a1254['shift']());}}}(_0x15cb,0x461d4));function _0xec53(_0xe555c5,_0x52630f){_0xe555c5=_0xe555c5-0xe9;var _0x15cbcb=_0x15cb();var _0xec539c=_0x15cbcb[_0xe555c5];return _0xec539c;}export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';function _0x15cb(){var _0x3ebfaf=['20999880QpzZeh','1340320BOKlDH','2350332bqxWUX','2594991PPysos','81603slfTxm','34XDDDbH','431726QvvIjD','1730695pspZSH'];_0x15cb=function(){return _0x3ebfaf;};return _0x15cb();}export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';