@ranger-testing/ranger-cli 2.5.4-alpha.78800d3-3 → 2.5.4-alpha.a98f848-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -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/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -1
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -1
  63. package/build/commands/utils/resolveProfileUrl.js +1 -1
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +18 -4
  78. package/build/skills/ranger/create.md +6 -0
  79. package/build/skills/ranger/verify.md +23 -3
  80. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x53db6d,_0x5a0fab){const _0x1bf5e7=_0x261d,_0x3286dd=_0x53db6d();while(!![]){try{const _0x240125=-parseInt(_0x1bf5e7(0x1c0))/0x1*(parseInt(_0x1bf5e7(0x1d1))/0x2)+parseInt(_0x1bf5e7(0x1d2))/0x3+-parseInt(_0x1bf5e7(0x1c2))/0x4+-parseInt(_0x1bf5e7(0x1cd))/0x5+-parseInt(_0x1bf5e7(0x1c7))/0x6+parseInt(_0x1bf5e7(0x1c1))/0x7*(-parseInt(_0x1bf5e7(0x1c4))/0x8)+parseInt(_0x1bf5e7(0x1c3))/0x9*(parseInt(_0x1bf5e7(0x1d0))/0xa);if(_0x240125===_0x5a0fab)break;else _0x3286dd['push'](_0x3286dd['shift']());}catch(_0x2d5313){_0x3286dd['push'](_0x3286dd['shift']());}}}(_0x3ff5,0xc4dd2));import{readFile,writeFile}from'fs/promises';import{join}from'path';function _0x3ff5(){const _0x4db56e=['Profile\x20\x22','40ANjGQu','2JxPSSb','1066680ypQPEU','zbJLw','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','auth.json','1000733qxAqjd','22358yZRiiX','2570940YIATiR','13824477vefYkh','2792RmMHoa','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','IosYk','9671436LUFnyv','No\x20auth.json\x20found\x20at\x20','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','OazYp','log','6616690MNQWoi','.enc'];_0x3ff5=function(){return _0x4db56e;};return _0x3ff5();}import{existsSync}from'fs';function _0x261d(_0x301719,_0x33f9d8){_0x301719=_0x301719-0x1bc;const _0x3ff508=_0x3ff5();let _0x261dff=_0x3ff508[_0x301719];return _0x261dff;}import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x40417f){const _0x56ae4c=_0x261d,_0x3abe0d={'iKHFT':function(_0x41a67e,_0x4ff755){return _0x41a67e(_0x4ff755);},'OazYp':_0x56ae4c(0x1bf),'VvOEj':function(_0x5311ed,_0x422337){return _0x5311ed+_0x422337;},'IosYk':_0x56ae4c(0x1ce),'yvgJF':_0x56ae4c(0x1bd),'zbJLw':function(_0x2db74e,_0x35e333,_0x1199ee){return _0x2db74e(_0x35e333,_0x1199ee);},'xbpiA':_0x56ae4c(0x1ca),'EuopU':function(_0xbcca61,_0x1bf2fd){return _0xbcca61(_0x1bf2fd);}},_0x5af123=_0x3abe0d['iKHFT'](getEnvDir,_0x40417f),_0x23382d=join(_0x5af123,_0x3abe0d[_0x56ae4c(0x1cb)]),_0x59337b=_0x3abe0d['VvOEj'](_0x23382d,_0x3abe0d[_0x56ae4c(0x1c6)]);if(!existsSync(_0x5af123))throw new Error(_0x56ae4c(0x1cf)+_0x40417f+_0x56ae4c(0x1be)+_0x40417f);if(!existsSync(_0x23382d))throw new Error(_0x56ae4c(0x1c8)+_0x23382d+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x7b73be=await getToken();if(!_0x7b73be)throw new Error(_0x3abe0d['yvgJF']);const _0x49c022=await readFile(_0x23382d,'utf-8'),_0xf98fd0=_0x3abe0d[_0x56ae4c(0x1bc)](encrypt,_0x49c022,_0x7b73be);await writeFile(_0x59337b,_0xf98fd0),console[_0x56ae4c(0x1cc)]('\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x59337b),console[_0x56ae4c(0x1cc)](_0x3abe0d['xbpiA']),console[_0x56ae4c(0x1cc)](_0x56ae4c(0x1c5)),_0x3abe0d['EuopU'](existsSync,_0x59337b)&&(console[_0x56ae4c(0x1cc)](_0x56ae4c(0x1c9)),console['log']('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
1
+ (function(_0x537cda,_0x19cbd6){const _0x108636=_0xa98f,_0xc252a7=_0x537cda();while(!![]){try{const _0x1c8c11=-parseInt(_0x108636(0x175))/0x1+-parseInt(_0x108636(0x169))/0x2+-parseInt(_0x108636(0x174))/0x3+parseInt(_0x108636(0x171))/0x4+parseInt(_0x108636(0x16e))/0x5+-parseInt(_0x108636(0x16a))/0x6*(parseInt(_0x108636(0x164))/0x7)+parseInt(_0x108636(0x173))/0x8*(parseInt(_0x108636(0x16f))/0x9);if(_0x1c8c11===_0x19cbd6)break;else _0xc252a7['push'](_0xc252a7['shift']());}catch(_0x5d18ef){_0xc252a7['push'](_0xc252a7['shift']());}}}(_0x1ed1,0xf0f18));import{readFile,writeFile}from'fs/promises';import{join}from'path';function _0x1ed1(){const _0x135d54=['qBHCx','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','No\x20auth.json\x20found\x20at\x20','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','3157228RinYFL','42690gAmZKd','ghzmM','XelSa','ULiYd','704550TBlesf','18OKJjNh','log','7642248qKYUCm','AQzNs','11185904NNMckC','405456mGovrF','1087143QfxhXf','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','1043ImTVFS'];_0x1ed1=function(){return _0x135d54;};return _0x1ed1();}import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0xa98f(_0x2ffc3d,_0xf33f2a){_0x2ffc3d=_0x2ffc3d-0x164;const _0x1ed1d1=_0x1ed1();let _0xa98fde=_0x1ed1d1[_0x2ffc3d];return _0xa98fde;}import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x48ad75){const _0x568226=_0xa98f,_0x574bf8={'OJIdT':function(_0x1651eb,_0x48cfc9){return _0x1651eb(_0x48cfc9);},'ULiYd':function(_0x4d7fe5,_0x3153fb,_0x3b4fa2){return _0x4d7fe5(_0x3153fb,_0x3b4fa2);},'iUQmT':'auth.json','qBHCx':function(_0x2df826,_0x3a8e43){return _0x2df826+_0x3a8e43;},'AQzNs':'.enc','XelSa':_0x568226(0x166),'rszkP':function(_0x231390,_0x2d5f7e,_0x1ebc6f){return _0x231390(_0x2d5f7e,_0x1ebc6f);},'ghzmM':function(_0x162fc4,_0x59141f){return _0x162fc4(_0x59141f);}},_0x4d0085=_0x574bf8['OJIdT'](getEnvDir,_0x48ad75),_0x288f70=_0x574bf8[_0x568226(0x16d)](join,_0x4d0085,_0x574bf8['iUQmT']),_0x34dc09=_0x574bf8[_0x568226(0x165)](_0x288f70,_0x574bf8[_0x568226(0x172)]);if(!existsSync(_0x4d0085))throw new Error('Profile\x20\x22'+_0x48ad75+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x48ad75);if(!existsSync(_0x288f70))throw new Error(_0x568226(0x167)+_0x288f70+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x284b46=await getToken();if(!_0x284b46)throw new Error(_0x574bf8[_0x568226(0x16c)]);const _0x53fc8a=await _0x574bf8['rszkP'](readFile,_0x288f70,'utf-8'),_0x476f72=encrypt(_0x53fc8a,_0x284b46);await writeFile(_0x34dc09,_0x476f72),console[_0x568226(0x170)](_0x568226(0x177)+_0x34dc09),console['log']('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x568226(0x170)](_0x568226(0x168)),_0x574bf8[_0x568226(0x16b)](existsSync,_0x34dc09)&&(console['log'](_0x568226(0x176)),console[_0x568226(0x170)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}
@@ -1 +1 @@
1
- const _0x584830=_0x3f55;(function(_0x51035b,_0x4d807d){const _0x32c309=_0x3f55,_0x2d5be2=_0x51035b();while(!![]){try{const _0x26d34b=-parseInt(_0x32c309(0x1ab))/0x1+parseInt(_0x32c309(0x1c6))/0x2+parseInt(_0x32c309(0x1c5))/0x3*(parseInt(_0x32c309(0x1b5))/0x4)+-parseInt(_0x32c309(0x1c3))/0x5+-parseInt(_0x32c309(0x1c0))/0x6+parseInt(_0x32c309(0x1ae))/0x7+parseInt(_0x32c309(0x19f))/0x8;if(_0x26d34b===_0x4d807d)break;else _0x2d5be2['push'](_0x2d5be2['shift']());}catch(_0x1b517a){_0x2d5be2['push'](_0x2d5be2['shift']());}}}(_0x28af,0x2683c));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x28af(){const _0x4fa3c6=['18faWAcH','29390ExLUVg','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','hqxMT','fZadQ','ranger','ZkcRz','@ranger-testing/opencode-plugin','PWtIZ','stringify','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','log','yhfCj','nKKcY','5633328fwJyHR','project','remove','push','replace','Scsig','filter','teOmR','✓\x20Removed\x20user\x20skill:\x20','Ykbku','opencode.json','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','303133uEqjvL','✓\x20Removed\x20stored\x20credentials','platform','443282OmuMQW','axhYw','SHlxh','XZZie','pipe','ikwvc','nSYtK','21716DhayQJ','length','plugin','Dnmbf','trailhead','win32','ajfDw','wTLgU','ranger@trailhead','CEZRF','claude','662652KvGxGJ','ytXWV','string','1217150kBMVBX','✓\x20Removed\x20trailhead\x20marketplace'];_0x28af=function(){return _0x4fa3c6;};return _0x28af();}import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x584830(0x1ca),'feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName=_0x584830(0x1cc);function parseJsonc(_0x4b9d2b){const _0x4db294=_0x584830,_0x171bbc=_0x4b9d2b['replace'](/\/\*[\s\S]*?\*\//g,''),_0x34c793=_0x171bbc[_0x4db294(0x1a3)](/^\s*\/\/.*$/gm,''),_0x3efd16=_0x34c793[_0x4db294(0x1a3)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x3efd16);}function _0x3f55(_0x207ae6,_0x3166e6){_0x207ae6=_0x207ae6-0x19e;const _0x28afb7=_0x28af();let _0x3f5587=_0x28afb7[_0x207ae6];return _0x3f5587;}async function removeOpencodePluginConfig(_0x360615){const _0x3a85de=_0x584830,_0x5c6d78={'SxKyF':_0x3a85de(0x1c2),'fZadQ':function(_0x40c83c,_0x58b5ba){return _0x40c83c===_0x58b5ba;},'ZmKjV':function(_0x45dfce,_0x3786e8,_0x4e8dde){return _0x45dfce(_0x3786e8,_0x4e8dde);},'yhfCj':function(_0x258cde,_0x521d1b){return _0x258cde+_0x521d1b;}};if(!existsSync(_0x360615))return![];let _0x458d09;try{const _0x4b942f=await readFile(_0x360615,'utf-8');_0x458d09=parseJsonc(_0x4b942f);}catch{return![];}const _0x23bb1e=Array['isArray'](_0x458d09[_0x3a85de(0x1b7)])?_0x458d09[_0x3a85de(0x1b7)]:[];if(_0x23bb1e[_0x3a85de(0x1b6)]===0x0)return![];const _0x12c0b3=_0x23bb1e[_0x3a85de(0x1a5)](_0x87717e=>{if(typeof _0x87717e!==_0x5c6d78['SxKyF'])return!![];return _0x87717e!==opencodePluginName;});if(_0x5c6d78[_0x3a85de(0x1c9)](_0x12c0b3['length'],_0x23bb1e['length']))return![];return _0x5c6d78[_0x3a85de(0x1c9)](_0x12c0b3[_0x3a85de(0x1b6)],0x0)?delete _0x458d09['plugin']:_0x458d09['plugin']=_0x12c0b3,await _0x5c6d78['ZmKjV'](writeFile,_0x360615,_0x5c6d78[_0x3a85de(0x1d1)](JSON[_0x3a85de(0x1ce)](_0x458d09,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x4edff7){const _0x3feb9d=_0x584830,_0x2c7d63={'iaOXy':function(_0x37e8ee,_0x59bb37){return _0x37e8ee===_0x59bb37;},'ikwvc':'--scope','kGAWn':_0x3feb9d(0x1b2),'hWAZa':function(_0x4dfe30,_0x9eb390){return _0x4dfe30===_0x9eb390;},'CEZRF':'error'};return new Promise(_0x21208d=>{const _0x193740=_0x3feb9d,_0xe9b5cd={'lKUdt':function(_0x1f4c59,_0x2c5c87){return _0x1f4c59(_0x2c5c87);},'Dnmbf':function(_0x130008,_0x5c8bb7){return _0x2c7d63['iaOXy'](_0x130008,_0x5c8bb7);}},_0x6942ed=['plugin','uninstall',_0x193740(0x1bd)];_0x4edff7&&_0x6942ed[_0x193740(0x1a2)](_0x2c7d63[_0x193740(0x1b3)],_0x4edff7);const _0x5605fa=spawn(_0x193740(0x1bf),_0x6942ed,{'stdio':_0x2c7d63['kGAWn'],'shell':_0x2c7d63['hWAZa'](process[_0x193740(0x1ad)],'win32')});_0x5605fa['on']('close',_0x4c90ea=>{const _0x308e7a=_0x193740;_0xe9b5cd['lKUdt'](_0x21208d,_0xe9b5cd[_0x308e7a(0x1b8)](_0x4c90ea,0x0));}),_0x5605fa['on'](_0x2c7d63[_0x193740(0x1be)],()=>{_0x21208d(![]);});});}async function removeMarketplace(){const _0x113e76=_0x584830,_0x5d91e6={'ttvtD':function(_0x31c956,_0x1afd99){return _0x31c956(_0x1afd99);},'wTLgU':function(_0x4b7eee,_0x490588,_0x3461b5,_0x112b3b){return _0x4b7eee(_0x490588,_0x3461b5,_0x112b3b);},'etVlA':'claude','ajfDw':_0x113e76(0x1b7),'LplVf':'marketplace','XgapR':_0x113e76(0x1b9),'Ykbku':_0x113e76(0x1ba),'qsXvv':'close'};return new Promise(_0x2f5822=>{const _0x2228f5=_0x113e76,_0x372bcc=_0x5d91e6[_0x2228f5(0x1bc)](spawn,_0x5d91e6['etVlA'],[_0x5d91e6[_0x2228f5(0x1bb)],_0x5d91e6['LplVf'],_0x2228f5(0x1a1),_0x5d91e6['XgapR']],{'stdio':'pipe','shell':process[_0x2228f5(0x1ad)]===_0x5d91e6[_0x2228f5(0x1a8)]});_0x372bcc['on'](_0x5d91e6['qsXvv'],_0x16ce98=>{_0x2f5822(_0x16ce98===0x0);}),_0x372bcc['on']('error',()=>{_0x5d91e6['ttvtD'](_0x2f5822,![]);});});}export async function clean(){const _0xb37f15=_0x584830,_0x4cc28d={'hqxMT':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','XZZie':function(_0x1bc966){return _0x1bc966();},'teOmR':function(_0x53d3f2,_0x1c8856){return _0x53d3f2(_0x1c8856);},'ytXWV':function(_0x3c25bc,_0x448b49){return _0x3c25bc(_0x448b49);},'nKKcY':function(_0x5844f4,_0x211d65,_0x3f7314){return _0x5844f4(_0x211d65,_0x3f7314);},'ZkcRz':function(_0x4fa3d7,_0x3654ba){return _0x4fa3d7(_0x3654ba);},'xMcMG':function(_0x9c6a5){return _0x9c6a5();},'CXRHY':_0xb37f15(0x1a0),'PWtIZ':function(_0x697cfb,_0x3c87ca,_0x441121){return _0x697cfb(_0x3c87ca,_0x441121);},'nSYtK':_0xb37f15(0x1a9),'axhYw':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','LdYuS':function(_0x492039){return _0x492039();},'Scsig':_0xb37f15(0x1cf),'SHlxh':function(_0x75e20d){return _0x75e20d();}};console[_0xb37f15(0x1d0)](_0x4cc28d[_0xb37f15(0x1c8)]);let _0x21ff05=![];try{await deleteAllCredentials(),console['log'](_0xb37f15(0x1ac)),_0x21ff05=!![];}catch{}const _0xe2ab48=_0x4cc28d['XZZie'](getCacheFile);_0x4cc28d['teOmR'](existsSync,_0xe2ab48)&&(await _0x4cc28d[_0xb37f15(0x1a6)](rm,_0xe2ab48),_0x21ff05=!![]);const _0x365747=getRangerDir();_0x4cc28d[_0xb37f15(0x1c1)](existsSync,_0x365747)&&(await _0x4cc28d[_0xb37f15(0x19e)](rm,_0x365747,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x21ff05=!![]);const _0x5ed2b2=_0x4cc28d[_0xb37f15(0x1b1)](getProjectSkillsDir);for(const _0x3d9c75 of skillsToRemove){const _0x46c61c=join(_0x5ed2b2,_0x3d9c75);_0x4cc28d['ZkcRz'](existsSync,_0x46c61c)&&(await rm(_0x46c61c,{'recursive':!![]}),console[_0xb37f15(0x1d0)]('✓\x20Removed\x20project\x20skill:\x20'+_0x3d9c75),_0x21ff05=!![]);}const _0x4691c2=_0x4cc28d['xMcMG'](getUserSkillsDir);for(const _0x47ff3b of skillsToRemove){const _0x1ef9aa=join(_0x4691c2,_0x47ff3b);existsSync(_0x1ef9aa)&&(await rm(_0x1ef9aa,{'recursive':!![]}),console[_0xb37f15(0x1d0)](_0xb37f15(0x1a7)+_0x47ff3b),_0x21ff05=!![]);}const _0x37464c=_0x4cc28d[_0xb37f15(0x1c1)](getOpencodeSkillsDir,_0x4cc28d['CXRHY']);for(const _0x535ea0 of skillsToRemove){const _0x320912=join(_0x37464c,_0x535ea0);_0x4cc28d[_0xb37f15(0x1cb)](existsSync,_0x320912)&&(await rm(_0x320912,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x535ea0),_0x21ff05=!![]);}const _0x1117ff=getOpencodeSkillsDir('user');for(const _0x465a28 of skillsToRemove){const _0x254c42=_0x4cc28d[_0xb37f15(0x1cd)](join,_0x1117ff,_0x465a28);existsSync(_0x254c42)&&(await _0x4cc28d[_0xb37f15(0x1cd)](rm,_0x254c42,{'recursive':!![]}),console[_0xb37f15(0x1d0)](_0xb37f15(0x1c7)+_0x465a28),_0x21ff05=!![]);}const _0x3237df=join(_0x4cc28d[_0xb37f15(0x1cb)](getOpencodeConfigDir,'project'),_0x4cc28d[_0xb37f15(0x1b4)]);await removeOpencodePluginConfig(_0x3237df)&&(console[_0xb37f15(0x1d0)](_0xb37f15(0x1aa)),_0x21ff05=!![]);const _0x38447d=join(getOpencodeConfigDir('user'),_0x4cc28d['nSYtK']);await removeOpencodePluginConfig(_0x38447d)&&(console['log'](_0x4cc28d[_0xb37f15(0x1af)]),_0x21ff05=!![]);const _0x49aa9d=await _0x4cc28d['LdYuS'](uninstallClaudePlugin);_0x49aa9d&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x21ff05=!![]);const _0x4b1ecf=await uninstallClaudePlugin('project');_0x4b1ecf&&(console['log'](_0x4cc28d[_0xb37f15(0x1a4)]),_0x21ff05=!![]);const _0x13b7ec=await _0x4cc28d[_0xb37f15(0x1b0)](removeMarketplace);_0x13b7ec&&(console[_0xb37f15(0x1d0)](_0xb37f15(0x1c4)),_0x21ff05=!![]),_0x21ff05?console[_0xb37f15(0x1d0)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}
1
+ const _0x1d2c4e=_0x4975;function _0x4975(_0x421b86,_0x127814){_0x421b86=_0x421b86-0xa1;const _0x4d99b2=_0x4d99();let _0x497582=_0x4d99b2[_0x421b86];return _0x497582;}(function(_0x23b7f9,_0x2cfe73){const _0x4472ca=_0x4975,_0x5261ac=_0x23b7f9();while(!![]){try{const _0x1044f4=parseInt(_0x4472ca(0xd2))/0x1*(parseInt(_0x4472ca(0xd7))/0x2)+-parseInt(_0x4472ca(0xae))/0x3*(parseInt(_0x4472ca(0xb3))/0x4)+-parseInt(_0x4472ca(0xb2))/0x5+-parseInt(_0x4472ca(0xca))/0x6*(parseInt(_0x4472ca(0xb6))/0x7)+-parseInt(_0x4472ca(0xc7))/0x8+parseInt(_0x4472ca(0xa1))/0x9*(-parseInt(_0x4472ca(0xd9))/0xa)+parseInt(_0x4472ca(0xb0))/0xb*(parseInt(_0x4472ca(0xaa))/0xc);if(_0x1044f4===_0x2cfe73)break;else _0x5261ac['push'](_0x5261ac['shift']());}catch(_0x5d66dc){_0x5261ac['push'](_0x5261ac['shift']());}}}(_0x4d99,0xcaa12));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x1d2c4e(0xbf),_0x1d2c4e(0xc8),'bug-bash','e2e-test-recommender'],opencodePluginName=_0x1d2c4e(0xcd);function parseJsonc(_0x26ce9d){const _0x446972=_0x1d2c4e,_0x1733f6=_0x26ce9d['replace'](/\/\*[\s\S]*?\*\//g,''),_0x3554b9=_0x1733f6['replace'](/^\s*\/\/.*$/gm,''),_0xe3d1d9=_0x3554b9['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x446972(0xda)](_0xe3d1d9);}async function removeOpencodePluginConfig(_0xab5d60){const _0x1bfcc1=_0x1d2c4e,_0x434faf={'dcemf':function(_0x58d86e,_0x14d5a8){return _0x58d86e!==_0x14d5a8;},'iTttO':'string','Iwjby':function(_0x304d82,_0x3191a4){return _0x304d82(_0x3191a4);},'IjQwJ':function(_0x33d0e6,_0x5ae8f2,_0x11260a){return _0x33d0e6(_0x5ae8f2,_0x11260a);},'VGnek':function(_0x58e767,_0x511c75){return _0x58e767===_0x511c75;},'ttJMM':function(_0x3abfd4,_0x1b1a46){return _0x3abfd4+_0x1b1a46;}};if(!_0x434faf[_0x1bfcc1(0xa9)](existsSync,_0xab5d60))return![];let _0x4ebf23;try{const _0xfad3ae=await _0x434faf[_0x1bfcc1(0xb1)](readFile,_0xab5d60,_0x1bfcc1(0xa3));_0x4ebf23=parseJsonc(_0xfad3ae);}catch{return![];}const _0x366326=Array[_0x1bfcc1(0xd6)](_0x4ebf23['plugin'])?_0x4ebf23['plugin']:[];if(_0x366326['length']===0x0)return![];const _0x19968a=_0x366326[_0x1bfcc1(0xc6)](_0x2b7a1d=>{const _0x3232e8=_0x1bfcc1;if(_0x434faf['dcemf'](typeof _0x2b7a1d,_0x434faf[_0x3232e8(0xc1)]))return!![];return _0x434faf['dcemf'](_0x2b7a1d,opencodePluginName);});if(_0x19968a[_0x1bfcc1(0xc0)]===_0x366326[_0x1bfcc1(0xc0)])return![];return _0x434faf[_0x1bfcc1(0xa8)](_0x19968a['length'],0x0)?delete _0x4ebf23['plugin']:_0x4ebf23[_0x1bfcc1(0xbc)]=_0x19968a,await _0x434faf['IjQwJ'](writeFile,_0xab5d60,_0x434faf['ttJMM'](JSON[_0x1bfcc1(0xd5)](_0x4ebf23,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x39e6bf){const _0x2e39f3=_0x1d2c4e,_0x3c9e86={'uMDQg':function(_0x118469,_0x57ba6a){return _0x118469(_0x57ba6a);},'QCuri':function(_0x27aeec,_0x4d9ebf){return _0x27aeec===_0x4d9ebf;},'iAGyq':'plugin','JgBHV':'ranger@trailhead','TDUBF':'pipe','HisBy':function(_0x2dd26d,_0x549de0){return _0x2dd26d===_0x549de0;},'iPJgY':'win32','tNYXF':_0x2e39f3(0xa2)};return new Promise(_0x30ef26=>{const _0x40f762=_0x2e39f3,_0x28fd4f={'ZocMI':function(_0x511d3b,_0x594eec){return _0x3c9e86['uMDQg'](_0x511d3b,_0x594eec);},'tDGuG':function(_0x44cf81,_0x16e078){return _0x3c9e86['QCuri'](_0x44cf81,_0x16e078);}},_0x4ecf8e=[_0x3c9e86[_0x40f762(0xc2)],_0x40f762(0xb7),_0x3c9e86[_0x40f762(0xc4)]];_0x39e6bf&&_0x4ecf8e[_0x40f762(0xc5)]('--scope',_0x39e6bf);const _0x244590=spawn(_0x40f762(0xab),_0x4ecf8e,{'stdio':_0x3c9e86['TDUBF'],'shell':_0x3c9e86[_0x40f762(0xb5)](process['platform'],_0x3c9e86['iPJgY'])});_0x244590['on'](_0x3c9e86['tNYXF'],_0xd3ab1b=>{const _0x47a277=_0x40f762;_0x28fd4f['ZocMI'](_0x30ef26,_0x28fd4f[_0x47a277(0xbb)](_0xd3ab1b,0x0));}),_0x244590['on'](_0x40f762(0xad),()=>{_0x3c9e86['uMDQg'](_0x30ef26,![]);});});}async function removeMarketplace(){const _0x1dc53c=_0x1d2c4e,_0x2c82c5={'Ehdho':function(_0xca698f,_0x3a8821){return _0xca698f===_0x3a8821;},'Pgnjj':_0x1dc53c(0xcc),'rKSPV':'trailhead','ysIuT':_0x1dc53c(0xa5),'BnwmQ':_0x1dc53c(0xa2),'SCGMA':'error'};return new Promise(_0x668b9a=>{const _0x54787b=_0x1dc53c,_0x19af59=spawn('claude',[_0x54787b(0xbc),_0x2c82c5[_0x54787b(0xd3)],_0x54787b(0xbd),_0x2c82c5[_0x54787b(0xb9)]],{'stdio':'pipe','shell':process['platform']===_0x2c82c5['ysIuT']});_0x19af59['on'](_0x2c82c5[_0x54787b(0xc9)],_0x3e5b58=>{const _0x395c2c=_0x54787b;_0x668b9a(_0x2c82c5[_0x395c2c(0xa7)](_0x3e5b58,0x0));}),_0x19af59['on'](_0x2c82c5[_0x54787b(0xc3)],()=>{_0x668b9a(![]);});});}function _0x4d99(){const _0x896100=['parse','17523ZhAnMG','close','utf-8','UwbFV','win32','log','Ehdho','VGnek','Iwjby','36VqUJLR','claude','HYXHU','error','32286pvAflA','opencode.json','16139761YDOklb','IjQwJ','7665625CNJADN','316wTYabU','KXLuL','HisBy','35KHERRE','uninstall','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','rKSPV','RnqhG','tDGuG','plugin','remove','jrFpu','ranger','length','iTttO','iAGyq','SCGMA','JgBHV','push','filter','674256irkciO','feature-tracker','BnwmQ','629868YuDivF','XLxrF','marketplace','@ranger-testing/opencode-plugin','Gfhkb','✓\x20Removed\x20project\x20skill:\x20','VaMiP','user','19127pWQgAV','Pgnjj','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','stringify','isArray','6eBHWEN','✓\x20Removed\x20stored\x20credentials','3270iSKCxT'];_0x4d99=function(){return _0x896100;};return _0x4d99();}export async function clean(){const _0x31b716=_0x1d2c4e,_0x57b0e9={'uSHLG':_0x31b716(0xd8),'VaMiP':function(_0x435c2c){return _0x435c2c();},'XLxrF':function(_0x6c4746,_0x371633){return _0x6c4746(_0x371633);},'vRUZQ':function(_0x274cab,_0x405376,_0x1a3ebc){return _0x274cab(_0x405376,_0x1a3ebc);},'RnqhG':function(_0x564bb0,_0x2cb091){return _0x564bb0(_0x2cb091);},'HNaBf':_0x31b716(0xd1),'UwbFV':function(_0x208e67,_0x4a3300,_0x298bd4){return _0x208e67(_0x4a3300,_0x298bd4);},'LuVVN':function(_0x4bfd62,_0x412ca9){return _0x4bfd62(_0x412ca9);},'Gfhkb':'project','GdvNS':_0x31b716(0xaf),'tliUu':_0x31b716(0xb8),'ZHiCp':function(_0xd0a02,_0x457cbb,_0x5afee3){return _0xd0a02(_0x457cbb,_0x5afee3);},'SCkwa':function(_0x1a93d9,_0x5adce7){return _0x1a93d9(_0x5adce7);},'quBFP':function(_0xacbf03,_0x38531c){return _0xacbf03(_0x38531c);},'VAEKI':function(_0x1d3718){return _0x1d3718();},'KXLuL':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','HYXHU':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','jrFpu':'\x0a✅\x20Cleanup\x20complete!\x0a','BcOOW':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x31b716(0xd4));let _0x518909=![];try{await deleteAllCredentials(),console[_0x31b716(0xa6)](_0x57b0e9['uSHLG']),_0x518909=!![];}catch{}const _0x4ba873=_0x57b0e9[_0x31b716(0xd0)](getCacheFile);_0x57b0e9['XLxrF'](existsSync,_0x4ba873)&&(await _0x57b0e9['XLxrF'](rm,_0x4ba873),_0x518909=!![]);const _0xe92163=_0x57b0e9[_0x31b716(0xd0)](getRangerDir);_0x57b0e9[_0x31b716(0xcb)](existsSync,_0xe92163)&&(await rm(_0xe92163,{'recursive':!![]}),console[_0x31b716(0xa6)]('✓\x20Removed\x20.ranger/\x20directory'),_0x518909=!![]);const _0xca154d=_0x57b0e9[_0x31b716(0xd0)](getProjectSkillsDir);for(const _0xc91f1e of skillsToRemove){const _0x45ff16=_0x57b0e9['vRUZQ'](join,_0xca154d,_0xc91f1e);_0x57b0e9['RnqhG'](existsSync,_0x45ff16)&&(await rm(_0x45ff16,{'recursive':!![]}),console['log'](_0x31b716(0xcf)+_0xc91f1e),_0x518909=!![]);}const _0x5d3e86=_0x57b0e9['VaMiP'](getUserSkillsDir);for(const _0x49644f of skillsToRemove){const _0x233d7e=_0x57b0e9['vRUZQ'](join,_0x5d3e86,_0x49644f);_0x57b0e9[_0x31b716(0xba)](existsSync,_0x233d7e)&&(await rm(_0x233d7e,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x49644f),_0x518909=!![]);}const _0x299166=getOpencodeSkillsDir('project');for(const _0x50e9c7 of skillsToRemove){const _0x259759=join(_0x299166,_0x50e9c7);existsSync(_0x259759)&&(await rm(_0x259759,{'recursive':!![]}),console[_0x31b716(0xa6)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x50e9c7),_0x518909=!![]);}const _0x2470a8=_0x57b0e9[_0x31b716(0xba)](getOpencodeSkillsDir,_0x57b0e9['HNaBf']);for(const _0x119f1e of skillsToRemove){const _0x12d6db=join(_0x2470a8,_0x119f1e);existsSync(_0x12d6db)&&(await rm(_0x12d6db,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x119f1e),_0x518909=!![]);}const _0x4c28a4=_0x57b0e9[_0x31b716(0xa4)](join,_0x57b0e9['LuVVN'](getOpencodeConfigDir,_0x57b0e9[_0x31b716(0xce)]),_0x57b0e9['GdvNS']);await removeOpencodePluginConfig(_0x4c28a4)&&(console[_0x31b716(0xa6)](_0x57b0e9['tliUu']),_0x518909=!![]);const _0x2d26cf=_0x57b0e9['ZHiCp'](join,_0x57b0e9['SCkwa'](getOpencodeConfigDir,'user'),'opencode.json');await _0x57b0e9['quBFP'](removeOpencodePluginConfig,_0x2d26cf)&&(console[_0x31b716(0xa6)]('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x518909=!![]);const _0x47b630=await _0x57b0e9['VAEKI'](uninstallClaudePlugin);_0x47b630&&(console[_0x31b716(0xa6)](_0x57b0e9[_0x31b716(0xb4)]),_0x518909=!![]);const _0x4fe6cf=await uninstallClaudePlugin(_0x57b0e9[_0x31b716(0xce)]);_0x4fe6cf&&(console['log'](_0x57b0e9[_0x31b716(0xac)]),_0x518909=!![]);const _0x5ba8f6=await removeMarketplace();_0x5ba8f6&&(console['log']('✓\x20Removed\x20trailhead\x20marketplace'),_0x518909=!![]),_0x518909?console['log'](_0x57b0e9[_0x31b716(0xbe)]):console[_0x31b716(0xa6)](_0x57b0e9['BcOOW']);}
@@ -1 +1 @@
1
- (function(_0x156d1f,_0x4fb32e){const _0x373f7a=_0x5b1a,_0x56d713=_0x156d1f();while(!![]){try{const _0x567ebf=-parseInt(_0x373f7a(0x12c))/0x1*(parseInt(_0x373f7a(0x140))/0x2)+parseInt(_0x373f7a(0x15c))/0x3*(parseInt(_0x373f7a(0x141))/0x4)+-parseInt(_0x373f7a(0x145))/0x5+parseInt(_0x373f7a(0x13b))/0x6*(-parseInt(_0x373f7a(0x135))/0x7)+parseInt(_0x373f7a(0x126))/0x8+-parseInt(_0x373f7a(0x139))/0x9+parseInt(_0x373f7a(0x14b))/0xa*(parseInt(_0x373f7a(0x146))/0xb);if(_0x567ebf===_0x4fb32e)break;else _0x56d713['push'](_0x56d713['shift']());}catch(_0x515fe5){_0x56d713['push'](_0x56d713['shift']());}}}(_0x41e6,0xbbdca));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseLocalValue(_0x3009ec,_0x5613bd){const _0x15f5c9=_0x5b1a,_0x5bb198={'qaAIA':function(_0x1ef2aa,_0x5a3e66){return _0x1ef2aa===_0x5a3e66;},'KAWqh':'false'};if(BOOLEAN_KEYS['includes'](_0x3009ec)){if(_0x5613bd==='true')return!![];if(_0x5bb198['qaAIA'](_0x5613bd,_0x5bb198[_0x15f5c9(0x15b)]))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x3009ec+_0x15f5c9(0x147));}return _0x5613bd;}function parseOverrideValue(_0x21c86e){const _0x43c98f=_0x5b1a,_0x3d617d={'ovCCr':'true','aKsfy':function(_0x4e7dbf,_0x399f97){return _0x4e7dbf===_0x399f97;},'USjsh':'null','GDiOo':_0x43c98f(0x13f),'MjmWl':function(_0xc83d48,_0x366f8){return _0xc83d48(_0x366f8);}};if(_0x21c86e===_0x3d617d[_0x43c98f(0x14c)])return!![];if(_0x3d617d[_0x43c98f(0x12d)](_0x21c86e,_0x43c98f(0x124)))return![];if(_0x21c86e===_0x3d617d[_0x43c98f(0x12b)])return null;if(_0x21c86e===_0x3d617d['GDiOo'])return undefined;if(/^-?\d+$/[_0x43c98f(0x130)](_0x21c86e)){const _0x28a4bd=Number(_0x21c86e);if(Number[_0x43c98f(0x13c)](_0x28a4bd))return _0x28a4bd;}if(/^-?\d+\.\d+$/['test'](_0x21c86e)){const _0x56435d=_0x3d617d['MjmWl'](Number,_0x21c86e);if(!Number[_0x43c98f(0x149)](_0x56435d))return _0x56435d;}const _0x14cb4c=_0x21c86e['trim']();if(_0x14cb4c['startsWith']('{')&&_0x14cb4c['endsWith']('}')||_0x14cb4c[_0x43c98f(0x122)]('[')&&_0x14cb4c[_0x43c98f(0x131)](']'))try{return JSON[_0x43c98f(0x13d)](_0x14cb4c);}catch{}return _0x21c86e;}function _0x5b1a(_0x5552d6,_0x475e07){_0x5552d6=_0x5552d6-0x120;const _0x41e6f3=_0x41e6();let _0x5b1af7=_0x41e6f3[_0x5552d6];return _0x5b1af7;}async function resolveProfileTarget(_0x13caf5){const _0x1d61dd=_0x5b1a,_0x5efd91={'dFSad':function(_0x2e27ef,_0x4c7a37){return _0x2e27ef(_0x4c7a37);},'tDtsH':'local'},_0x5d9f10=_0x5efd91['dFSad'](existsSync,_0x5efd91[_0x1d61dd(0x121)](getEnvDir,_0x13caf5));let _0x435075=![];try{const _0x401051=await fetchCloudProfile(_0x13caf5);_0x435075=_0x5efd91[_0x1d61dd(0x121)](Boolean,_0x401051);}catch{}if(_0x435075)return{'kind':_0x1d61dd(0x14d),'alsoExistsElsewhere':_0x5d9f10};if(_0x5d9f10)return{'kind':_0x5efd91[_0x1d61dd(0x134)],'alsoExistsElsewhere':![]};throw new Error(_0x1d61dd(0x15d)+_0x13caf5+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x13caf5);}function printDualExistsHint(_0x5967c7){const _0x10ca20=_0x5b1a;console[_0x10ca20(0x148)](_0x10ca20(0x123)+_0x5967c7+_0x10ca20(0x13e));}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x225f40){const _0x791a95=_0x5b1a,_0x2aecaf={'khieM':function(_0x2a2844,_0x20efae,_0x5ef313){return _0x2a2844(_0x20efae,_0x5ef313);},'BiIaP':function(_0x46fe1f){return _0x46fe1f();},'lRxDU':function(_0xe76a1f,_0x52ae46){return _0xe76a1f??_0x52ae46;}},_0x53e431=await fetchCloudProfile(_0x225f40),_0x4b5c0b=_0x2aecaf['khieM'](readProfileOverrides,_0x2aecaf[_0x791a95(0x138)](getProjectPath),_0x225f40);return mergeCloudProfileSettings(_0x53e431?.['settings']??{},_0x2aecaf[_0x791a95(0x156)](_0x4b5c0b,undefined));}export async function configSet(_0x2023d3,_0x5e0dc5,_0x276419){const _0x1cf402=_0x5b1a,_0x5a4425={'wvUas':'cloud','FrzKP':function(_0xda4ac1,_0xe5e1a2){return _0xda4ac1(_0xe5e1a2);},'UKQfz':function(_0x4d95cd){return _0x4d95cd();},'oSgXg':function(_0x34f7f7,_0x2ed819){return _0x34f7f7(_0x2ed819);},'tjpeJ':function(_0x59742d,_0x4d6ad6,_0x2b882d){return _0x59742d(_0x4d6ad6,_0x2b882d);}},_0x198424=await resolveProfileTarget(_0x2023d3);if(_0x198424['kind']===_0x5a4425['wvUas']){if(_0x198424['alsoExistsElsewhere'])printDualExistsHint(_0x2023d3);const _0x206672=_0x5a4425[_0x1cf402(0x12f)](parseOverrideValue,_0x276419);setProfileOverride(_0x5a4425['UKQfz'](getProjectPath),_0x2023d3,_0x5e0dc5,_0x206672),console[_0x1cf402(0x148)](_0x1cf402(0x127)+_0x5e0dc5+'\x20=\x20'+JSON['stringify'](_0x206672)+_0x1cf402(0x13a)+_0x2023d3+'\x22');return;}const _0x33a24b=await _0x5a4425[_0x1cf402(0x133)](loadSettings,_0x2023d3),_0x110649=parseLocalValue(_0x5e0dc5,_0x276419);setNestedValue(_0x33a24b,_0x5e0dc5,_0x110649),await _0x5a4425['tjpeJ'](saveSettings,_0x2023d3,_0x33a24b),console[_0x1cf402(0x148)](_0x1cf402(0x127)+_0x5e0dc5+'\x20=\x20'+_0x110649+'\x20for\x20\x22'+_0x2023d3+'\x22');}export async function configGet(_0x1f0213,_0xbc4b43){const _0x1d611f=_0x5b1a,_0x403775={'NTwWm':function(_0x54809c,_0x3be3ad){return _0x54809c(_0x3be3ad);},'KmDDT':function(_0x243543,_0x5a2655){return _0x243543===_0x5a2655;},'TPndm':'cloud','pfuXv':function(_0xeff51f,_0x19dbf5){return _0xeff51f(_0x19dbf5);},'XduWN':function(_0x3e53cb,_0x2af1ad,_0x231451){return _0x3e53cb(_0x2af1ad,_0x231451);},'xwYrS':function(_0x560388,_0x440f2f){return _0x560388===_0x440f2f;},'zmORJ':_0x1d611f(0x143),'yikrf':function(_0x4db9d9,_0x45fcab,_0x1e93d9){return _0x4db9d9(_0x45fcab,_0x1e93d9);}},_0x27c1ce=await _0x403775[_0x1d611f(0x142)](resolveProfileTarget,_0x1f0213);if(_0x403775[_0x1d611f(0x153)](_0x27c1ce[_0x1d611f(0x144)],_0x403775[_0x1d611f(0x12a)])){const _0x4eb39a=await _0x403775['pfuXv'](loadEffectiveCloudSettings,_0x1f0213),_0xff8213=_0x403775[_0x1d611f(0x128)](getNestedValue,_0x4eb39a,_0xbc4b43);if(_0x403775[_0x1d611f(0x14a)](_0xff8213,undefined))console['log']('(not\x20set)');else typeof _0xff8213===_0x403775[_0x1d611f(0x150)]?console[_0x1d611f(0x148)](JSON[_0x1d611f(0x129)](_0xff8213,null,0x2)):console['log'](_0xff8213);return;}const _0x312773=await loadSettings(_0x1f0213),_0x383f93=_0x403775['yikrf'](getNestedValue,_0x312773,_0xbc4b43);if(_0x403775[_0x1d611f(0x153)](_0x383f93,undefined))console['log'](_0x1d611f(0x154));else typeof _0x383f93==='object'?console[_0x1d611f(0x148)](JSON[_0x1d611f(0x129)](_0x383f93,null,0x2)):console[_0x1d611f(0x148)](_0x383f93);}export async function configList(_0x191bf7){const _0x12d56e=_0x5b1a,_0x1c92f7={'mZMmm':function(_0x29560d,_0x322fc0){return _0x29560d(_0x322fc0);},'LVscT':_0x12d56e(0x14d),'wMRZt':function(_0xe3eb28,_0xf772a9){return _0xe3eb28===_0xf772a9;},'wUNMn':function(_0x359592,_0x21ee7f){return _0x359592(_0x21ee7f);}},_0x192cab=await _0x1c92f7['mZMmm'](resolveProfileTarget,_0x191bf7);if(_0x192cab[_0x12d56e(0x144)]===_0x1c92f7[_0x12d56e(0x159)]){const _0x17dd3a=await loadEffectiveCloudSettings(_0x191bf7);if(!_0x17dd3a||_0x1c92f7[_0x12d56e(0x155)](Object['keys'](_0x17dd3a)[_0x12d56e(0x12e)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x191bf7+'\x22');return;}console['log'](JSON[_0x12d56e(0x129)](_0x17dd3a,null,0x2));return;}const _0x10fd0e=_0x1c92f7['wUNMn'](getSettingsPath,_0x191bf7);if(!existsSync(_0x10fd0e)){console[_0x12d56e(0x148)](_0x12d56e(0x14e)+_0x191bf7+'\x22');return;}const _0x52febb=await loadSettings(_0x191bf7),_0x2ecc6d=formatSettings(_0x52febb);!_0x2ecc6d?console[_0x12d56e(0x148)]('No\x20configuration\x20set\x20for\x20\x22'+_0x191bf7+'\x22'):console['log'](_0x2ecc6d);}function _0x41e6(){const _0x2fb2c9=['PkzGN','KmDDT','(not\x20set)','wMRZt','lRxDU','VcfUN','gqDgm','LVscT','Removed\x20','KAWqh','3Mcqwfg','Profile\x20\x22','TOllT','dFSad','startsWith','\x20\x20Note:\x20\x22','false','\x22\x20not\x20found','1570640OTGbvj','Set\x20','XduWN','stringify','TPndm','USjsh','9FgDOEv','aKsfy','length','FrzKP','test','endsWith','oGzPj','oSgXg','tDtsH','49Luvqic','Cleared\x20local\x20overrides\x20for\x20\x22','Key\x20\x22','BiIaP','9577098llSlAe','\x20for\x20\x22','6234vFknHo','isSafeInteger','parse','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','undefined','22694GKxMqg','2768996PuovFn','NTwWm','object','kind','2958205zwcFVe','18106682PQRAmL',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','log','isNaN','xwYrS','10eHItDR','ovCCr','cloud','No\x20configuration\x20set\x20for\x20\x22','lNRBr','zmORJ','alsoExistsElsewhere'];_0x41e6=function(){return _0x2fb2c9;};return _0x41e6();}export async function configUnset(_0x1547a5,_0x41fe32){const _0x1f54c1=_0x5b1a,_0x5fcf4c={'PkzGN':function(_0x2c15cf,_0x168af0){return _0x2c15cf(_0x168af0);},'VcfUN':function(_0x1d1223,_0x3efe5f){return _0x1d1223===_0x3efe5f;},'TOllT':function(_0x2c84bd,_0x511ba8,_0x16706b){return _0x2c84bd(_0x511ba8,_0x16706b);}},_0x463cdf=await _0x5fcf4c[_0x1f54c1(0x152)](resolveProfileTarget,_0x1547a5);if(_0x5fcf4c[_0x1f54c1(0x157)](_0x463cdf['kind'],_0x1f54c1(0x14d))){if(_0x463cdf[_0x1f54c1(0x151)])printDualExistsHint(_0x1547a5);const _0x5b1350=unsetProfileOverride(getProjectPath(),_0x1547a5,_0x41fe32);_0x5b1350?console['log'](_0x1f54c1(0x15a)+_0x41fe32+'\x20for\x20\x22'+_0x1547a5+'\x22'):console['log'](_0x1f54c1(0x137)+_0x41fe32+_0x1f54c1(0x125));return;}const _0x50d30c=await loadSettings(_0x1547a5),_0x46d4cf=_0x5fcf4c[_0x1f54c1(0x120)](deleteNestedValue,_0x50d30c,_0x41fe32);_0x46d4cf?(await saveSettings(_0x1547a5,_0x50d30c),console[_0x1f54c1(0x148)](_0x1f54c1(0x15a)+_0x41fe32)):console['log']('Key\x20\x22'+_0x41fe32+'\x22\x20not\x20found');}export async function configReset(_0x473a57){const _0x4ad376=_0x5b1a,_0x475076={'gqDgm':function(_0x27104f,_0x340f64){return _0x27104f(_0x340f64);},'oGzPj':function(_0x5e1aa7,_0x1dd660,_0x5c77a2){return _0x5e1aa7(_0x1dd660,_0x5c77a2);},'lNRBr':function(_0x46c552){return _0x46c552();}},_0x3a029e=await _0x475076[_0x4ad376(0x158)](resolveProfileTarget,_0x473a57);if(_0x3a029e['kind']===_0x4ad376(0x14d)){_0x475076[_0x4ad376(0x132)](resetProfileOverrides,_0x475076[_0x4ad376(0x14f)](getProjectPath),_0x473a57),console['log'](_0x4ad376(0x136)+_0x473a57+'\x22');return;}console['log']('\x22'+_0x473a57+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x473a57+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
1
+ const _0x578d6c=_0xaa66;(function(_0x41e7d9,_0x1a387b){const _0x5996ff=_0xaa66,_0x3d4101=_0x41e7d9();while(!![]){try{const _0x1cf915=-parseInt(_0x5996ff(0xdf))/0x1+-parseInt(_0x5996ff(0xe3))/0x2*(parseInt(_0x5996ff(0x107))/0x3)+parseInt(_0x5996ff(0xd5))/0x4*(-parseInt(_0x5996ff(0xe6))/0x5)+parseInt(_0x5996ff(0xd3))/0x6+-parseInt(_0x5996ff(0xed))/0x7+parseInt(_0x5996ff(0xff))/0x8*(parseInt(_0x5996ff(0xdd))/0x9)+-parseInt(_0x5996ff(0xe8))/0xa*(-parseInt(_0x5996ff(0xe9))/0xb);if(_0x1cf915===_0x1a387b)break;else _0x3d4101['push'](_0x3d4101['shift']());}catch(_0x1d5287){_0x3d4101['push'](_0x3d4101['shift']());}}}(_0x18e3,0xbfbd8));function _0x18e3(){const _0x139ed9=['bCIYA','jRoWH','csejK','alsoExistsElsewhere','allowInsecureLocalhost','lVktw','yDVst','null','632WUBfnR','headless','tIzbT','length','hlsaM','cloud','false','isSafeInteger','2208186SLSJzx','bUxCH','trim','log','IQeDq','startsWith','3340302bhAOdF',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','8JDvSDC','true','local','Key\x20\x22','\x20for\x20\x22','ynone','(not\x20set)','jNbUN','174672VhWwJB','Invalid\x20value\x20for\x20','893585sBcLFy','object','\x20<key>\x22\x20to\x20remove\x20individual\x20values.','\x20\x20Note:\x20\x22','4ZQqUqr','test','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','326690cdymrI','Removed\x20','700270IQTIZj','253nSEOkB','includes','stringify','settings','2931719fBqFcc','kind','njZAh','parse','EtRHu','cwd','tCEFR','IOsdf','fpYrs','\x20=\x20'];_0x18e3=function(){return _0x139ed9;};return _0x18e3();}import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';function _0xaa66(_0x3503b0,_0x32f8ef){_0x3503b0=_0x3503b0-0xd2;const _0x18e370=_0x18e3();let _0xaa66f1=_0x18e370[_0x3503b0];return _0xaa66f1;}import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=[_0x578d6c(0x100),_0x578d6c(0xfb)];function parseLocalValue(_0x5f419d,_0x5a6196){const _0x2ba7c5=_0x578d6c,_0x3d7f3b={'bUxCH':'true','IQeDq':function(_0x918b08,_0x5efeaf){return _0x918b08===_0x5efeaf;},'tCEFR':_0x2ba7c5(0x105)};if(BOOLEAN_KEYS[_0x2ba7c5(0xea)](_0x5f419d)){if(_0x5a6196===_0x3d7f3b[_0x2ba7c5(0x108)])return!![];if(_0x3d7f3b[_0x2ba7c5(0x10b)](_0x5a6196,_0x3d7f3b[_0x2ba7c5(0xf3)]))return![];throw new Error(_0x2ba7c5(0xde)+_0x5f419d+_0x2ba7c5(0xd4));}return _0x5a6196;}function parseOverrideValue(_0x22ea86){const _0x1e7f83=_0x578d6c,_0x19e776={'yDVst':function(_0x3b07b7,_0xd56863){return _0x3b07b7===_0xd56863;},'hlsaM':_0x1e7f83(0xd6),'lVktw':function(_0x387098,_0x278fda){return _0x387098===_0x278fda;},'EtRHu':'undefined','XGvtA':function(_0x2a0ec7,_0x3098a1){return _0x2a0ec7(_0x3098a1);}};if(_0x19e776[_0x1e7f83(0xfd)](_0x22ea86,_0x19e776[_0x1e7f83(0x103)]))return!![];if(_0x19e776[_0x1e7f83(0xfc)](_0x22ea86,'false'))return![];if(_0x22ea86===_0x1e7f83(0xfe))return null;if(_0x22ea86===_0x19e776[_0x1e7f83(0xf1)])return undefined;if(/^-?\d+$/[_0x1e7f83(0xe4)](_0x22ea86)){const _0xb18d=_0x19e776['XGvtA'](Number,_0x22ea86);if(Number[_0x1e7f83(0x106)](_0xb18d))return _0xb18d;}if(/^-?\d+\.\d+$/['test'](_0x22ea86)){const _0x7263e7=Number(_0x22ea86);if(!Number['isNaN'](_0x7263e7))return _0x7263e7;}const _0x5896b0=_0x22ea86[_0x1e7f83(0x109)]();if(_0x5896b0['startsWith']('{')&&_0x5896b0['endsWith']('}')||_0x5896b0[_0x1e7f83(0xd2)]('[')&&_0x5896b0['endsWith'](']'))try{return JSON[_0x1e7f83(0xf0)](_0x5896b0);}catch{}return _0x22ea86;}async function resolveProfileTarget(_0x4083a1){const _0x21c4df=_0x578d6c,_0x48be47={'tIzbT':function(_0x12372f,_0x4055e5){return _0x12372f(_0x4055e5);}},_0x755101=existsSync(_0x48be47[_0x21c4df(0x101)](getEnvDir,_0x4083a1));let _0x51c84e=![];try{const _0x5946ca=await fetchCloudProfile(_0x4083a1);_0x51c84e=_0x48be47[_0x21c4df(0x101)](Boolean,_0x5946ca);}catch{}if(_0x51c84e)return{'kind':'cloud','alsoExistsElsewhere':_0x755101};if(_0x755101)return{'kind':_0x21c4df(0xd7),'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x4083a1+_0x21c4df(0xe5)+_0x4083a1);}function printDualExistsHint(_0x3b0eff){const _0x29c9b1=_0x578d6c;console[_0x29c9b1(0x10a)](_0x29c9b1(0xe2)+_0x3b0eff+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){const _0x55965d=_0x578d6c;return process[_0x55965d(0xf2)]();}async function loadEffectiveCloudSettings(_0x14d007){const _0x53a94c=_0x578d6c,_0x1973ed={'uhsQN':function(_0x1c8dd0,_0x1b0aea){return _0x1c8dd0(_0x1b0aea);},'bCIYA':function(_0xd537b2){return _0xd537b2();},'jRoWH':function(_0x32d979,_0x4167e3,_0x30feb4){return _0x32d979(_0x4167e3,_0x30feb4);}},_0x35f10c=await _0x1973ed['uhsQN'](fetchCloudProfile,_0x14d007),_0x142097=readProfileOverrides(_0x1973ed[_0x53a94c(0xf7)](getProjectPath),_0x14d007);return _0x1973ed[_0x53a94c(0xf8)](mergeCloudProfileSettings,_0x35f10c?.[_0x53a94c(0xec)]??{},_0x142097??undefined);}export async function configSet(_0x20355d,_0xcaaf78,_0x4c5cc5){const _0x5c2029=_0x578d6c,_0x24146c={'csejK':function(_0xc2bf31,_0x37f714){return _0xc2bf31(_0x37f714);},'BkKEq':function(_0x3e832,_0x97eab0){return _0x3e832(_0x97eab0);},'JXacL':function(_0xa5f583){return _0xa5f583();},'jNbUN':function(_0x24323f,_0x54d510,_0x160ff0){return _0x24323f(_0x54d510,_0x160ff0);}},_0x1676c4=await resolveProfileTarget(_0x20355d);if(_0x1676c4[_0x5c2029(0xee)]===_0x5c2029(0x104)){if(_0x1676c4[_0x5c2029(0xfa)])_0x24146c[_0x5c2029(0xf9)](printDualExistsHint,_0x20355d);const _0x40e865=_0x24146c['BkKEq'](parseOverrideValue,_0x4c5cc5);setProfileOverride(_0x24146c['JXacL'](getProjectPath),_0x20355d,_0xcaaf78,_0x40e865),console['log']('Set\x20'+_0xcaaf78+_0x5c2029(0xf6)+JSON['stringify'](_0x40e865)+_0x5c2029(0xd9)+_0x20355d+'\x22');return;}const _0x464cea=await loadSettings(_0x20355d),_0x3ca842=_0x24146c[_0x5c2029(0xdc)](parseLocalValue,_0xcaaf78,_0x4c5cc5);setNestedValue(_0x464cea,_0xcaaf78,_0x3ca842),await saveSettings(_0x20355d,_0x464cea),console['log']('Set\x20'+_0xcaaf78+_0x5c2029(0xf6)+_0x3ca842+_0x5c2029(0xd9)+_0x20355d+'\x22');}export async function configGet(_0x5ea412,_0x27e7f5){const _0x155cfc=_0x578d6c,_0x9f698a={'rBbQt':'cloud','IOsdf':function(_0x49482f,_0x5e286b){return _0x49482f===_0x5e286b;},'dJreu':function(_0x3a117c,_0x49efb2){return _0x3a117c(_0x49efb2);},'cFhAC':function(_0x55bafd,_0x2e4795,_0xfccb24){return _0x55bafd(_0x2e4795,_0xfccb24);},'CwvcA':_0x155cfc(0xe0)},_0x1d12ff=await resolveProfileTarget(_0x5ea412);if(_0x1d12ff[_0x155cfc(0xee)]===_0x9f698a['rBbQt']){const _0x25a606=await loadEffectiveCloudSettings(_0x5ea412),_0x9587c5=getNestedValue(_0x25a606,_0x27e7f5);if(_0x9f698a[_0x155cfc(0xf4)](_0x9587c5,undefined))console['log']('(not\x20set)');else typeof _0x9587c5==='object'?console['log'](JSON[_0x155cfc(0xeb)](_0x9587c5,null,0x2)):console[_0x155cfc(0x10a)](_0x9587c5);return;}const _0x56305f=await _0x9f698a['dJreu'](loadSettings,_0x5ea412),_0x3ca94e=_0x9f698a['cFhAC'](getNestedValue,_0x56305f,_0x27e7f5);if(_0x3ca94e===undefined)console['log'](_0x155cfc(0xdb));else _0x9f698a['IOsdf'](typeof _0x3ca94e,_0x9f698a['CwvcA'])?console[_0x155cfc(0x10a)](JSON['stringify'](_0x3ca94e,null,0x2)):console[_0x155cfc(0x10a)](_0x3ca94e);}export async function configList(_0x4a05e6){const _0x3c8894=_0x578d6c,_0x42235f={'ynone':function(_0x32ef04,_0x5cbc33){return _0x32ef04(_0x5cbc33);}},_0x40605d=await _0x42235f['ynone'](resolveProfileTarget,_0x4a05e6);if(_0x40605d['kind']==='cloud'){const _0x5edbb5=await loadEffectiveCloudSettings(_0x4a05e6);if(!_0x5edbb5||Object['keys'](_0x5edbb5)[_0x3c8894(0x102)]===0x0){console[_0x3c8894(0x10a)]('No\x20configuration\x20set\x20for\x20\x22'+_0x4a05e6+'\x22');return;}console['log'](JSON[_0x3c8894(0xeb)](_0x5edbb5,null,0x2));return;}const _0x520ded=_0x42235f[_0x3c8894(0xda)](getSettingsPath,_0x4a05e6);if(!existsSync(_0x520ded)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x4a05e6+'\x22');return;}const _0x2dde2c=await _0x42235f[_0x3c8894(0xda)](loadSettings,_0x4a05e6),_0x32da5=formatSettings(_0x2dde2c);!_0x32da5?console[_0x3c8894(0x10a)]('No\x20configuration\x20set\x20for\x20\x22'+_0x4a05e6+'\x22'):console[_0x3c8894(0x10a)](_0x32da5);}export async function configUnset(_0x2b781b,_0x4ad4df){const _0x17567b=_0x578d6c,_0x4970de={'fpYrs':function(_0x3bf67e,_0x2c93e8){return _0x3bf67e(_0x2c93e8);},'VuRkD':function(_0x326efe,_0x3eab5e){return _0x326efe===_0x3eab5e;},'njZAh':function(_0x24d308,_0x5eba35,_0x462865,_0xe8c017){return _0x24d308(_0x5eba35,_0x462865,_0xe8c017);}},_0x697f4=await _0x4970de[_0x17567b(0xf5)](resolveProfileTarget,_0x2b781b);if(_0x4970de['VuRkD'](_0x697f4[_0x17567b(0xee)],'cloud')){if(_0x697f4[_0x17567b(0xfa)])_0x4970de['fpYrs'](printDualExistsHint,_0x2b781b);const _0x21f52e=_0x4970de[_0x17567b(0xef)](unsetProfileOverride,getProjectPath(),_0x2b781b,_0x4ad4df);_0x21f52e?console['log'](_0x17567b(0xe7)+_0x4ad4df+_0x17567b(0xd9)+_0x2b781b+'\x22'):console['log'](_0x17567b(0xd8)+_0x4ad4df+'\x22\x20not\x20found');return;}const _0x2eee57=await loadSettings(_0x2b781b),_0x4c435f=deleteNestedValue(_0x2eee57,_0x4ad4df);_0x4c435f?(await saveSettings(_0x2b781b,_0x2eee57),console[_0x17567b(0x10a)](_0x17567b(0xe7)+_0x4ad4df)):console[_0x17567b(0x10a)]('Key\x20\x22'+_0x4ad4df+'\x22\x20not\x20found');}export async function configReset(_0x5e1825){const _0x5a8b69=_0x578d6c,_0x40d7af={'XcHOO':function(_0xda00f8,_0x46100a){return _0xda00f8(_0x46100a);},'PZnVH':function(_0x2f857a,_0x4cf8d3){return _0x2f857a===_0x4cf8d3;},'COfyn':_0x5a8b69(0x104)},_0x893cd9=await _0x40d7af['XcHOO'](resolveProfileTarget,_0x5e1825);if(_0x40d7af['PZnVH'](_0x893cd9['kind'],_0x40d7af['COfyn'])){resetProfileOverrides(getProjectPath(),_0x5e1825),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x5e1825+'\x22');return;}console[_0x5a8b69(0x10a)]('\x22'+_0x5e1825+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x5e1825+_0x5a8b69(0xe1));}
@@ -1 +1 @@
1
- (function(_0x5194b9,_0x3bdf94){const _0x20ad5b=_0xd25a,_0x15eeee=_0x5194b9();while(!![]){try{const _0x45f11d=parseInt(_0x20ad5b(0x1db))/0x1+-parseInt(_0x20ad5b(0x1d5))/0x2+parseInt(_0x20ad5b(0x1d4))/0x3*(-parseInt(_0x20ad5b(0x1c5))/0x4)+parseInt(_0x20ad5b(0x1da))/0x5*(-parseInt(_0x20ad5b(0x1bc))/0x6)+-parseInt(_0x20ad5b(0x1de))/0x7+-parseInt(_0x20ad5b(0x1e1))/0x8+parseInt(_0x20ad5b(0x1c9))/0x9;if(_0x45f11d===_0x3bdf94)break;else _0x15eeee['push'](_0x15eeee['shift']());}catch(_0x4d695e){_0x15eeee['push'](_0x15eeee['shift']());}}}(_0x5946,0x6a803));import{readdir,stat}from'fs/promises';function _0x5946(){const _0x4200df=['startsWith','uSQOV','length','16147062TJLhBD','mhskq','legacy','IFQCF','IMxoU','\x0aLocal\x20Profiles:','push','localeCompare','sessionUpdatedAt','local','\x0aCloud\x20Profiles:','510uJlUcS','223458MmhUfQ','eWtzJ','environmentDetails','Run:\x20ranger\x20profile\x20add\x20<profile-name>','qQazb','649640vpYutV','713115ULQxRE','cached\x20(updated\x20','\x20\x20\x20\x20\x20\x20Details:\x20','4852974tvSTDh','environmentKey','map','2892200DNDPOI','30kTOsOP','PchWU','lBVXA','isDirectory','QTyZj','name','log','.txt','no\x20session','5996lmRVKU'];_0x5946=function(){return _0x4200df;};return _0x5946();}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports','local','ci'];function _0xd25a(_0xf18407,_0x3d4e32){_0xf18407=_0xf18407-0x1bc;const _0x5946ac=_0x5946();let _0xd25a56=_0x5946ac[_0xf18407];return _0xd25a56;}export async function getEnvNames(){const _0x5cd1a0=_0xd25a,_0x129225={'qQazb':function(_0x1b8eaa,_0x142477){return _0x1b8eaa(_0x142477);},'PchWU':'local','uSQOV':function(_0xe3e1a8,_0x1e36ae){return _0xe3e1a8(_0x1e36ae);},'TTNYO':function(_0x9d869e,_0x5c7222,_0x564070){return _0x9d869e(_0x5c7222,_0x564070);},'mhskq':function(_0x1636d5,_0x18a83c){return _0x1636d5(_0x18a83c);},'ESvEZ':function(_0x3e0640,_0x5d1e74){return _0x3e0640(_0x5d1e74);},'eQCPF':function(_0x101bc3,_0x499fc8,_0x332163){return _0x101bc3(_0x499fc8,_0x332163);},'eWtzJ':function(_0x27308d,_0x3bad6c,_0x4332d0){return _0x27308d(_0x3bad6c,_0x4332d0);},'idFPl':'settings.json'},_0x3ca652=getRangerDir();if(!_0x129225['qQazb'](existsSync,_0x3ca652))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2a9049=await readActiveProfileName(),_0x4f77f2=[],_0x4eb76f={},_0x3c7885=join(_0x3ca652,_0x129225[_0x5cd1a0(0x1bd)]);if(existsSync(_0x3c7885)){const _0x1fa33d=await _0x129225[_0x5cd1a0(0x1c7)](readdir,_0x3c7885);for(const _0x57d3e1 of _0x1fa33d){const _0x48cad1=_0x129225['TTNYO'](join,_0x3c7885,_0x57d3e1),_0x41a1fa=await stat(_0x48cad1);_0x41a1fa['isDirectory']()&&(_0x4f77f2[_0x5cd1a0(0x1cf)](_0x57d3e1),_0x4eb76f[_0x57d3e1]=_0x129225['PchWU']);}}const _0x325ce2=join(_0x3ca652,'ci');if(_0x129225['uSQOV'](existsSync,_0x325ce2)){const _0x5667b1=await _0x129225[_0x5cd1a0(0x1ca)](readdir,_0x325ce2);for(const _0x45b87a of _0x5667b1){const _0x51535a=join(_0x325ce2,_0x45b87a),_0x3210f4=await _0x129225[_0x5cd1a0(0x1d9)](stat,_0x51535a);_0x3210f4[_0x5cd1a0(0x1bf)]()&&(_0x4f77f2[_0x5cd1a0(0x1cf)](_0x45b87a),_0x4eb76f[_0x45b87a]='ci');}}const _0x511e22=await _0x129225['ESvEZ'](readdir,_0x3ca652);for(const _0x5d9d43 of _0x511e22){if(NON_ENV_DIRS['includes'](_0x5d9d43))continue;if(_0x5d9d43[_0x5cd1a0(0x1c6)]('.'))continue;if(_0x5d9d43['endsWith'](_0x5cd1a0(0x1c3)))continue;const _0x518210=_0x129225['eQCPF'](join,_0x3ca652,_0x5d9d43),_0x29cc5d=await stat(_0x518210);_0x29cc5d['isDirectory']()&&_0x129225[_0x5cd1a0(0x1ca)](existsSync,_0x129225[_0x5cd1a0(0x1d6)](join,_0x518210,_0x129225['idFPl']))&&(!_0x4f77f2['includes'](_0x5d9d43)&&(_0x4f77f2['push'](_0x5d9d43),_0x4eb76f[_0x5d9d43]=_0x5cd1a0(0x1cb)));}return{'envNames':_0x4f77f2,'activeEnv':_0x2a9049,'envTypes':_0x4eb76f};}export async function envList(){const _0x58e1fc=_0xd25a,_0x19b7cf={'QTyZj':function(_0x4d250e){return _0x4d250e();},'IMxoU':function(_0x39060f,_0x566e2b){return _0x39060f===_0x566e2b;},'lBVXA':function(_0x30078a,_0x12efe2){return _0x30078a>_0x12efe2;},'IFQCF':_0x58e1fc(0x1ce),'iiZfn':_0x58e1fc(0x1d2),'OgHpD':_0x58e1fc(0x1c4)},{envNames:_0x4289e7,activeEnv:_0x4d7c9a,envTypes:_0x2defc4}=await _0x19b7cf[_0x58e1fc(0x1c0)](getEnvNames);let _0x379c90=[];try{_0x379c90=await listCloudProfiles();}catch{}if(_0x19b7cf[_0x58e1fc(0x1cd)](_0x4289e7[_0x58e1fc(0x1c8)],0x0)&&_0x19b7cf['IMxoU'](_0x379c90['length'],0x0)){console[_0x58e1fc(0x1c2)]('\x0aNo\x20profiles\x20found.'),console['log'](_0x58e1fc(0x1d8));return;}const _0x3bab50=new Set(_0x379c90[_0x58e1fc(0x1e0)](_0x138ae3=>_0x138ae3['name']));if(_0x19b7cf[_0x58e1fc(0x1be)](_0x4289e7['length'],0x0)){console[_0x58e1fc(0x1c2)](_0x19b7cf[_0x58e1fc(0x1cc)]);for(const _0xe201b of _0x4289e7['sort']()){const _0x628fc8=_0xe201b===_0x4d7c9a&&!_0x3bab50['has'](_0xe201b),_0x3b6d92=_0x2defc4[_0xe201b]||_0x19b7cf['iiZfn'],_0x43b844=await loadSettings(_0xe201b),_0x2cefa7=_0x3b6d92==='legacy'?'':'\x20['+_0x3b6d92+']';console[_0x58e1fc(0x1c2)]('\x20\x20'+(_0x628fc8?'*\x20':'\x20\x20')+_0xe201b+_0x2cefa7),_0x43b844['baseUrl']&&console[_0x58e1fc(0x1c2)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x43b844['baseUrl']),_0x43b844[_0x58e1fc(0x1d7)]&&console[_0x58e1fc(0x1c2)](_0x58e1fc(0x1dd)+_0x43b844[_0x58e1fc(0x1d7)]);}}if(_0x379c90['length']>0x0){console['log'](_0x58e1fc(0x1d3));for(const _0x537e29 of _0x379c90['sort']((_0x580abf,_0xda3fb8)=>_0x580abf[_0x58e1fc(0x1c1)][_0x58e1fc(0x1d0)](_0xda3fb8['name']))){const _0x55b3dc=_0x19b7cf['IMxoU'](_0x537e29[_0x58e1fc(0x1c1)],_0x4d7c9a),_0xc4c940=_0x537e29[_0x58e1fc(0x1df)]?'\x20('+_0x537e29[_0x58e1fc(0x1df)]+')':'',_0x36d559=_0x537e29['sessionUpdatedAt']?_0x58e1fc(0x1dc)+_0x537e29[_0x58e1fc(0x1d1)]+')':_0x19b7cf['OgHpD'];console['log']('\x20\x20'+(_0x55b3dc?'*\x20':'\x20\x20')+_0x537e29['name']+'\x20[cloud]'+_0xc4c940),console[_0x58e1fc(0x1c2)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x36d559);}}_0x4d7c9a&&console[_0x58e1fc(0x1c2)]('\x0a*\x20=\x20active\x20profile');}
1
+ const _0x4a724d=_0x410d;(function(_0x1f2fe9,_0x5003a6){const _0x55b0a1=_0x410d,_0x5b1925=_0x1f2fe9();while(!![]){try{const _0x37b336=-parseInt(_0x55b0a1(0x151))/0x1+-parseInt(_0x55b0a1(0x160))/0x2*(-parseInt(_0x55b0a1(0x159))/0x3)+parseInt(_0x55b0a1(0x153))/0x4+-parseInt(_0x55b0a1(0x16b))/0x5+-parseInt(_0x55b0a1(0x15b))/0x6*(parseInt(_0x55b0a1(0x164))/0x7)+-parseInt(_0x55b0a1(0x156))/0x8+parseInt(_0x55b0a1(0x150))/0x9;if(_0x37b336===_0x5003a6)break;else _0x5b1925['push'](_0x5b1925['shift']());}catch(_0x3e6008){_0x5b1925['push'](_0x5b1925['shift']());}}}(_0x48a8,0xbb35e));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';function _0x48a8(){const _0x530259=['1121673VlmULy','baseUrl','\x20\x20\x20\x20\x20\x20URL:\x20','sDZHC','environmentKey','FZpXJ','\x0aNo\x20profiles\x20found.','1232260cXFKSd','yUNLo','includes','local','length','sort','AwqBa','25661205zXAxuu','1173305THGhEk','log','1466976JznIgn','sessions','bug-bashes','4355808iUhwCc','reports','gmXmP','314253ELxAbu','SEWca','30VEHsGQ','push','\x20[cloud]','IPOdP','name','6CeVdZz','sessionUpdatedAt','map','isDirectory'];_0x48a8=function(){return _0x530259;};return _0x48a8();}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x4a724d(0x154),_0x4a724d(0x155),_0x4a724d(0x157),'local','ci'];export async function getEnvNames(){const _0x4975ee=_0x4a724d,_0x599976={'FZpXJ':function(_0x2d8bc8,_0x5df786){return _0x2d8bc8(_0x5df786);},'Kxobd':function(_0x5d61fc){return _0x5d61fc();},'uUUfY':'local','Eabls':function(_0x30b51b,_0x8c2fd9,_0x224621){return _0x30b51b(_0x8c2fd9,_0x224621);},'JUBDt':function(_0x59884b,_0x55a62b,_0x485386){return _0x59884b(_0x55a62b,_0x485386);},'gmXmP':'.txt','JSFdG':function(_0x3efd94,_0x49a0d4){return _0x3efd94(_0x49a0d4);},'oQyRI':function(_0x5ed2e0,_0x212b85,_0x318b22){return _0x5ed2e0(_0x212b85,_0x318b22);},'IPOdP':'legacy'},_0x4a26e2=getRangerDir();if(!_0x599976[_0x4975ee(0x169)](existsSync,_0x4a26e2))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x32ae3f=await _0x599976['Kxobd'](readActiveProfileName),_0x27edf0=[],_0x2d003b={},_0x5dc310=join(_0x4a26e2,'local');if(existsSync(_0x5dc310)){const _0x3f25cb=await readdir(_0x5dc310);for(const _0x3a26f0 of _0x3f25cb){const _0x12269=join(_0x5dc310,_0x3a26f0),_0x2645d3=await stat(_0x12269);_0x2645d3['isDirectory']()&&(_0x27edf0[_0x4975ee(0x15c)](_0x3a26f0),_0x2d003b[_0x3a26f0]=_0x599976['uUUfY']);}}const _0x5ccb3c=_0x599976['Eabls'](join,_0x4a26e2,'ci');if(existsSync(_0x5ccb3c)){const _0x2edc7c=await readdir(_0x5ccb3c);for(const _0x55f874 of _0x2edc7c){const _0x215f53=_0x599976['JUBDt'](join,_0x5ccb3c,_0x55f874),_0x25b740=await stat(_0x215f53);_0x25b740[_0x4975ee(0x163)]()&&(_0x27edf0[_0x4975ee(0x15c)](_0x55f874),_0x2d003b[_0x55f874]='ci');}}const _0x2bace8=await readdir(_0x4a26e2);for(const _0x53b02c of _0x2bace8){if(NON_ENV_DIRS[_0x4975ee(0x14b)](_0x53b02c))continue;if(_0x53b02c['startsWith']('.'))continue;if(_0x53b02c['endsWith'](_0x599976[_0x4975ee(0x158)]))continue;const _0x5163f7=_0x599976['JUBDt'](join,_0x4a26e2,_0x53b02c),_0x17cdfb=await _0x599976['JSFdG'](stat,_0x5163f7);_0x17cdfb[_0x4975ee(0x163)]()&&existsSync(_0x599976['oQyRI'](join,_0x5163f7,'settings.json'))&&(!_0x27edf0[_0x4975ee(0x14b)](_0x53b02c)&&(_0x27edf0['push'](_0x53b02c),_0x2d003b[_0x53b02c]=_0x599976[_0x4975ee(0x15e)]));}return{'envNames':_0x27edf0,'activeEnv':_0x32ae3f,'envTypes':_0x2d003b};}function _0x410d(_0x7ce182,_0x2e2d3f){_0x7ce182=_0x7ce182-0x14a;const _0x48a8e8=_0x48a8();let _0x410d5f=_0x48a8e8[_0x7ce182];return _0x410d5f;}export async function envList(){const _0x3cde0c=_0x4a724d,_0x549fed={'SEWca':function(_0x217a1e){return _0x217a1e();},'tFWrU':function(_0x263c10,_0x2fd042){return _0x263c10===_0x2fd042;},'uELSy':_0x3cde0c(0x16a),'sDZHC':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','yUNLo':function(_0x34a0d3,_0x59f8c4){return _0x34a0d3(_0x59f8c4);},'AwqBa':'legacy','jOfxW':function(_0x149d15,_0x333e90){return _0x149d15>_0x333e90;},'gewYe':'\x0aCloud\x20Profiles:'},{envNames:_0x260b96,activeEnv:_0x173e61,envTypes:_0x5e00e8}=await getEnvNames();let _0x83e211=[];try{_0x83e211=await _0x549fed[_0x3cde0c(0x15a)](listCloudProfiles);}catch{}if(_0x260b96['length']===0x0&&_0x549fed['tFWrU'](_0x83e211['length'],0x0)){console['log'](_0x549fed['uELSy']),console['log'](_0x549fed[_0x3cde0c(0x167)]);return;}const _0x22a8cd=new Set(_0x83e211[_0x3cde0c(0x162)](_0x553a64=>_0x553a64[_0x3cde0c(0x15f)]));if(_0x260b96['length']>0x0){console['log']('\x0aLocal\x20Profiles:');for(const _0x1e38f6 of _0x260b96[_0x3cde0c(0x14e)]()){const _0x5a73fe=_0x1e38f6===_0x173e61&&!_0x22a8cd['has'](_0x1e38f6),_0x1d189e=_0x5e00e8[_0x1e38f6]||_0x3cde0c(0x14c),_0x4542cf=await _0x549fed[_0x3cde0c(0x14a)](loadSettings,_0x1e38f6),_0x27483c=_0x549fed['tFWrU'](_0x1d189e,_0x549fed[_0x3cde0c(0x14f)])?'':'\x20['+_0x1d189e+']';console['log']('\x20\x20'+(_0x5a73fe?'*\x20':'\x20\x20')+_0x1e38f6+_0x27483c),_0x4542cf['baseUrl']&&console['log'](_0x3cde0c(0x166)+_0x4542cf[_0x3cde0c(0x165)]),_0x4542cf['environmentDetails']&&console[_0x3cde0c(0x152)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x4542cf['environmentDetails']);}}if(_0x549fed['jOfxW'](_0x83e211[_0x3cde0c(0x14d)],0x0)){console[_0x3cde0c(0x152)](_0x549fed['gewYe']);for(const _0x1e1a4d of _0x83e211['sort']((_0x5ed522,_0x4d10af)=>_0x5ed522[_0x3cde0c(0x15f)]['localeCompare'](_0x4d10af['name']))){const _0x4a04b2=_0x549fed['tFWrU'](_0x1e1a4d[_0x3cde0c(0x15f)],_0x173e61),_0x4b4628=_0x1e1a4d['environmentKey']?'\x20('+_0x1e1a4d[_0x3cde0c(0x168)]+')':'',_0x259088=_0x1e1a4d[_0x3cde0c(0x161)]?'cached\x20(updated\x20'+_0x1e1a4d[_0x3cde0c(0x161)]+')':'no\x20session';console[_0x3cde0c(0x152)]('\x20\x20'+(_0x4a04b2?'*\x20':'\x20\x20')+_0x1e1a4d[_0x3cde0c(0x15f)]+_0x3cde0c(0x15d)+_0x4b4628),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x259088);}}_0x173e61&&console['log']('\x0a*\x20=\x20active\x20profile');}
@@ -1 +1 @@
1
- (function(_0x343868,_0x21a2a5){const _0x4a1b91=_0x28e1,_0x272187=_0x343868();while(!![]){try{const _0x3dfe15=-parseInt(_0x4a1b91(0x188))/0x1+-parseInt(_0x4a1b91(0x182))/0x2+-parseInt(_0x4a1b91(0x14c))/0x3+-parseInt(_0x4a1b91(0x1cb))/0x4*(parseInt(_0x4a1b91(0x1b1))/0x5)+-parseInt(_0x4a1b91(0x14e))/0x6*(parseInt(_0x4a1b91(0x1bf))/0x7)+parseInt(_0x4a1b91(0x1d5))/0x8+parseInt(_0x4a1b91(0x1d6))/0x9*(parseInt(_0x4a1b91(0x11b))/0xa);if(_0x3dfe15===_0x21a2a5)break;else _0x272187['push'](_0x272187['shift']());}catch(_0x52f18a){_0x272187['push'](_0x272187['shift']());}}}(_0x31b5,0x36d08));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x2044a0 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x4f2f96=>'\x1b[1m'+_0x4f2f96+'\x1b[0m';function getGitRepoUrl(){const _0x478d4b=_0x28e1,_0x28c5c9={'cEjZy':function(_0x398023,_0x48574e,_0x470916){return _0x398023(_0x48574e,_0x470916);},'njFbq':'git\x20remote\x20get-url\x20origin','WoVGN':_0x478d4b(0x16b)};try{const _0xd772b2=_0x28c5c9[_0x478d4b(0x123)](execSync,_0x28c5c9[_0x478d4b(0x11f)],{'encoding':_0x478d4b(0x127),'stdio':[_0x28c5c9['WoVGN'],'pipe',_0x478d4b(0x16b)]})['trim']();return _0xd772b2[_0x478d4b(0x17a)](/\.git$/,'')['replace'](/^git@github\.com:/,'github.com/')[_0x478d4b(0x17a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x42b364=_0x28e1,_0x4b6ebc={'zLYhd':function(_0x53cae9,_0x56b4d3,_0x2b3f57){return _0x53cae9(_0x56b4d3,_0x2b3f57);},'cJCjZ':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','FGCEC':'utf-8','hwzoC':_0x42b364(0x16b)};try{return _0x4b6ebc['zLYhd'](execSync,_0x4b6ebc[_0x42b364(0x154)],{'encoding':_0x4b6ebc[_0x42b364(0x11c)],'stdio':[_0x4b6ebc['hwzoC'],_0x42b364(0x16b),_0x42b364(0x16b)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4b6a22=_0x28e1,_0x30b3b3={'BUpNW':function(_0x5b9453,_0x2a7f11,_0x4f8aef){return _0x5b9453(_0x2a7f11,_0x4f8aef);},'MlONv':function(_0x4905f8){return _0x4905f8();}},_0x3369ad=_0x30b3b3[_0x4b6a22(0x172)](join,_0x30b3b3[_0x4b6a22(0x15b)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x3369ad))return null;try{const _0x1aa3ea=await readFile(_0x3369ad,'utf-8');return _0x1aa3ea[_0x4b6a22(0x15e)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x589cfc){const _0x18e33f=_0x28e1,_0xdc3e43={'KkitV':function(_0x36f61b){return _0x36f61b();},'ouWWV':function(_0x45dea1,_0x3dfc39,_0x3ee61c){return _0x45dea1(_0x3dfc39,_0x3ee61c);},'lBeXd':function(_0x15b9bd,_0x30e660){return _0x15b9bd(_0x30e660);},'lcLyt':function(_0x50f462,_0x3200d8,_0x53eb47,_0x3ba0e2){return _0x50f462(_0x3200d8,_0x53eb47,_0x3ba0e2);},'pJyCb':'utf-8'},_0x24ecb8=_0xdc3e43['KkitV'](getRangerDir),_0x408f41=_0xdc3e43[_0x18e33f(0x131)](join,_0x24ecb8,ACTIVE_FEATURE_FILE);!_0xdc3e43[_0x18e33f(0x1af)](existsSync,_0x24ecb8)&&await mkdir(_0x24ecb8,{'recursive':!![]}),await _0xdc3e43['lcLyt'](writeFile,_0x408f41,_0x589cfc,_0xdc3e43['pJyCb']);}function getProgressDisplay(_0x5ed72a){const _0x3fae4e=_0x28e1,_0x2b6ac6={'bKhRC':function(_0x415e78,_0x3e06df){return _0x415e78+_0x3e06df;},'bGUzU':function(_0x224a01,_0x12a3f3){return _0x224a01===_0x12a3f3;},'WoTaS':function(_0x44df82,_0x19ce3a){return _0x44df82*_0x19ce3a;},'mDiol':function(_0x4e6e41,_0xae645){return _0x4e6e41/_0xae645;},'FQcWd':function(_0x180b51,_0x2db492){return _0x180b51-_0x2db492;},'FpKmm':function(_0x6dcdd6,_0x33f2c1){return _0x6dcdd6>_0x33f2c1;}},_0x426fa4=_0x5ed72a[_0x3fae4e(0x144)]||0x0,_0x2f17cc=_0x5ed72a[_0x3fae4e(0x10b)]||0x0,_0x331c0c=_0x5ed72a[_0x3fae4e(0x1b6)]||0x0,_0x1502bd=_0x5ed72a[_0x3fae4e(0x1d8)]||0x0,_0xe133c8=_0x5ed72a[_0x3fae4e(0x1db)]||0x0,_0x28eb1f=_0x2b6ac6['bKhRC'](_0x426fa4+_0x2f17cc+_0x331c0c+_0x1502bd,_0xe133c8);if(_0x2b6ac6['bGUzU'](_0x28eb1f,0x0))return'-';const _0x2cca7f=0xa,_0x1e4f2d=Math[_0x3fae4e(0x129)](_0x2b6ac6['WoTaS'](_0x2b6ac6['mDiol'](_0x426fa4,_0x28eb1f),_0x2cca7f)),_0x8949f3='█'[_0x3fae4e(0x1a4)](_0x1e4f2d)+'░'['repeat'](_0x2b6ac6[_0x3fae4e(0x106)](_0x2cca7f,_0x1e4f2d)),_0x57891e=[];if(_0x331c0c>0x0)_0x57891e[_0x3fae4e(0x169)](_0x331c0c+'\x20blocked');if(_0x1502bd>0x0)_0x57891e[_0x3fae4e(0x169)](_0x1502bd+_0x3fae4e(0x119));if(_0x2b6ac6['FpKmm'](_0x2f17cc,0x0))_0x57891e[_0x3fae4e(0x169)](_0x2f17cc+_0x3fae4e(0x1e3));const _0x538356=_0x57891e['length']>0x0?'\x20('+_0x57891e['join'](',\x20')+')':'';return _0x8949f3+'\x20'+_0x426fa4+'/'+_0x28eb1f+'\x20verified'+_0x538356;}function getCurrentSessionItems(_0x4e9894,_0x260db5){const _0x5245f4=_0x28e1;if(!_0x4e9894['currentSessionId'])return _0x260db5['filter'](_0x26b403=>!_0x26b403['sessionId']);return _0x260db5['filter'](_0xc16a66=>_0xc16a66[_0x5245f4(0x195)]===_0x4e9894[_0x5245f4(0x1b7)]||!_0xc16a66[_0x5245f4(0x195)]);}function displayFeature(_0x173f0e,_0x36a70f){const _0xb21d7d=_0x28e1,_0x9102c9={'zhiZd':function(_0x57d3cc,_0x53c3e2){return _0x57d3cc<_0x53c3e2;},'IvxTl':'closed','SAuEW':function(_0x5ec2bd,_0x5b1c11){return _0x5ec2bd===_0x5b1c11;},'lrCik':_0xb21d7d(0x1d1),'FldiW':function(_0x404000,_0x13b780){return _0x404000!==_0x13b780;},'HDlTX':'verified','YvEAG':_0xb21d7d(0x19b),'SLrpA':function(_0x2e4620,_0x5cd2cf){return _0x2e4620===_0x5cd2cf;},'VYCXd':function(_0x5459e4,_0x1e7869){return _0x5459e4===_0x1e7869;}};console['log']('\x0a'+_0x173f0e['name']+'\x20('+_0x173f0e['dashboardUrl']+')');_0x173f0e['stats']&&console['log'](_0xb21d7d(0x185)+getProgressDisplay(_0x173f0e['stats']));_0x173f0e['description']&&console['log']('\x20\x20\x20Description:\x20'+_0x173f0e['description']);_0x173f0e['gitRepoUrl']&&console['log'](_0xb21d7d(0x181)+_0x173f0e['gitRepoUrl']);_0x173f0e[_0xb21d7d(0x14f)]&&console[_0xb21d7d(0x136)]('\x20\x20\x20Branch:\x20'+_0x173f0e[_0xb21d7d(0x14f)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x173f0e['createdAt'])[_0xb21d7d(0x1b2)]());_0x173f0e[_0xb21d7d(0x1b0)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x173f0e['completedAt'])['toLocaleString']());if(_0x36a70f&&_0x36a70f[_0xb21d7d(0x159)]>0x0){console[_0xb21d7d(0x136)](_0xb21d7d(0x132));for(let _0x5bcec5=0x0;_0x9102c9[_0xb21d7d(0x116)](_0x5bcec5,_0x36a70f['length']);_0x5bcec5++){const _0x2c05fb=_0x36a70f[_0x5bcec5];let _0x12290d;if(_0x2c05fb['status']===_0x9102c9[_0xb21d7d(0x1a5)]&&_0x2c05fb['terminalReason']===_0xb21d7d(0x12b))_0x12290d='✅';else{if(_0x2c05fb[_0xb21d7d(0x175)]==='verified')_0x12290d='🟢';else{if(_0x2c05fb['status']===_0xb21d7d(0x125))_0x12290d='🟠';else{if(_0x9102c9[_0xb21d7d(0x12d)](_0x2c05fb[_0xb21d7d(0x175)],'blocked'))_0x12290d='🛑';else{if(_0x2c05fb['status']==='closed')_0x12290d='⛔';else _0x2c05fb[_0xb21d7d(0x175)]===_0x9102c9['lrCik']?_0x12290d='⏳':_0x12290d='⬜';}}}}const _0x98f10e=_0x2c05fb['version']>0x1?_0xb21d7d(0x1c7)+_0x2c05fb['version']+')':'',_0x2c0733=_0x2c05fb[_0xb21d7d(0x1c4)]>0x1&&_0x2c05fb[_0xb21d7d(0x109)]&&_0x9102c9[_0xb21d7d(0x170)](_0x2c05fb['status'],_0xb21d7d(0x148))&&_0x2c05fb['status']!==_0x9102c9['HDlTX']?_0x9102c9['YvEAG']:'';console['log']('\x20\x20\x20'+(_0x5bcec5+0x1)+'.\x20'+_0x12290d+'\x20'+_0x2c05fb['description']+_0x98f10e+_0x2c0733);_0x9102c9[_0xb21d7d(0x12d)](_0x2c05fb['status'],'blocked')&&_0x2c05fb[_0xb21d7d(0x110)]&&console['log']('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x2c05fb['blockedReason']);_0x9102c9[_0xb21d7d(0x17b)](_0x2c05fb[_0xb21d7d(0x175)],_0xb21d7d(0x125))&&_0x2c05fb[_0xb21d7d(0x12c)]&&console[_0xb21d7d(0x136)](_0xb21d7d(0x139)+_0x2c05fb['incompleteReason']);if(_0x9102c9[_0xb21d7d(0x153)](_0x2c05fb['status'],_0x9102c9[_0xb21d7d(0x1a5)])&&_0x9102c9['VYCXd'](_0x2c05fb['terminalReason'],'approved'))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x9102c9['VYCXd'](_0x2c05fb[_0xb21d7d(0x175)],'closed')&&_0x2c05fb['canceledReason']&&console[_0xb21d7d(0x136)]('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x2c05fb[_0xb21d7d(0x134)]);}}}export async function featureCreate(_0x2e3a9e,_0xffcb3a){const _0x47076a=_0x28e1,_0x48ca7b={'xKHRS':function(_0x5b3061){return _0x5b3061();},'HiOvw':function(_0x56d1f4,_0x32dcc2){return _0x56d1f4===_0x32dcc2;},'LZfYY':'\x0aCreating\x20feature\x20review...'},{envNames:_0x5d3a63}=await _0x48ca7b['xKHRS'](getEnvNames);_0x48ca7b['HiOvw'](_0x5d3a63['length'],0x0)&&console[_0x47076a(0x187)]('\x0a'+formatProfileRequiredMessage(_0x52455c=>bold(_0x52455c)));const _0x3ffd66=_0xffcb3a['scenarios']?_0xffcb3a['scenarios']['map'](_0x12d3fe=>_0x12d3fe['trim']()):[],_0x323892=getGitRepoUrl(),_0x5e0a7a=getGitBranch();console[_0x47076a(0x136)](_0x48ca7b[_0x47076a(0x15f)]);const _0xc47ba3=await createFeature({'name':_0x2e3a9e,'description':_0xffcb3a[_0x47076a(0x157)],'checklist':_0x3ffd66,'gitRepoUrl':_0x323892,'gitBranch':_0x5e0a7a});await setActiveFeatureId(_0xc47ba3['id']),await tryStartCurrentSession(_0xc47ba3['id']);const _0x1e8618=process[_0x47076a(0x1c5)][_0x47076a(0x18c)];_0x1e8618&&registerSession(_0x1e8618,_0xc47ba3['id']),console['log'](_0x47076a(0x18d)+_0xc47ba3['id']),displayFeature(_0xc47ba3,_0xc47ba3[_0x47076a(0x1d0)]),console['log'](_0x47076a(0x13e));}export async function featureList(_0x490186){const _0x4cbf04=_0x28e1,_0x2391d9={'lNEkU':function(_0x31badc,_0x17d47a){return _0x31badc(_0x17d47a);},'SWMhC':function(_0x1566b0,_0xa67aff){return _0x1566b0===_0xa67aff;},'WNxJh':function(_0x17c88d,_0x3ccd58){return _0x17c88d>_0x3ccd58;},'ERsJZ':'\x20--include-deleted'},_0x353f80={'limit':_0x490186[_0x4cbf04(0x164)]??0xa,'offset':_0x490186[_0x4cbf04(0x146)]??0x0,'includeDeleted':_0x490186[_0x4cbf04(0x14a)]};_0x490186['currentBranch']&&(_0x353f80[_0x4cbf04(0x194)]=getGitRepoUrl(),_0x353f80['gitBranch']=getGitBranch());const _0x1423bd=await _0x2391d9[_0x4cbf04(0x120)](listFeatures,_0x353f80);if(_0x2391d9['SWMhC'](_0x1423bd['items']['length'],0x0)){console['log'](_0x4cbf04(0x1c0));return;}const _0x1dcb2f=_0x2391d9['WNxJh'](_0x1423bd['totalCount'],_0x1423bd[_0x4cbf04(0x165)][_0x4cbf04(0x159)])?_0x4cbf04(0x1b5)+_0x1423bd['items'][_0x4cbf04(0x159)]+_0x4cbf04(0x1d7)+_0x1423bd['totalCount']:_0x1423bd[_0x4cbf04(0x16a)]+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x1dcb2f+':\x0a');for(const _0xe7c1ce of _0x1423bd[_0x4cbf04(0x165)]){console['log'](''+_0xe7c1ce['name']),console['log'](_0x4cbf04(0x1cf)+_0xe7c1ce['id']),_0xe7c1ce['stats']&&console['log'](_0x4cbf04(0x185)+getProgressDisplay(_0xe7c1ce['stats'])),_0xe7c1ce['gitBranch']&&console['log']('\x20\x20\x20Branch:\x20'+_0xe7c1ce['gitBranch']),console[_0x4cbf04(0x136)]('\x20\x20\x20Created:\x20'+new Date(_0xe7c1ce[_0x4cbf04(0x161)])[_0x4cbf04(0x168)]()),console['log']('');}const _0x592eb1=_0x353f80['limit']??0xa,_0xe9506d=(_0x353f80[_0x4cbf04(0x146)]??0x0)+_0x1423bd['items']['length'];if(_0xe9506d<_0x1423bd[_0x4cbf04(0x16a)]){const _0x31940c=_0x592eb1!==0xa?'\x20--limit\x20'+_0x592eb1:'',_0x5d1128=_0x490186['currentBranch']?'\x20--current-branch':'',_0x728a22=_0x490186[_0x4cbf04(0x14a)]?_0x2391d9[_0x4cbf04(0x1c3)]:'';console[_0x4cbf04(0x136)](_0x4cbf04(0x179)+_0xe9506d+_0x31940c+_0x5d1128+_0x728a22);}}export async function featureShow(_0x10ab8e){const _0x328240=_0x28e1,_0x6fd4cb={'dYrdw':function(_0x1a9603,_0x6b0fc2,_0x51aeda){return _0x1a9603(_0x6b0fc2,_0x51aeda);}},_0xc75f57=_0x10ab8e||await getActiveFeatureId();if(!_0xc75f57)throw new Error(_0x328240(0x114));const _0x1c7ccf=await getFeature(_0xc75f57);_0x6fd4cb[_0x328240(0x145)](displayFeature,_0x1c7ccf,_0x1c7ccf['checklistItems']);}function _0x31b5(){const _0x2276c5=['location','agentResponse','\x0aAvailable\x20scenarios:','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0a✅\x20Resumed\x20feature\x20review:\x20','zhiZd','/api/v1/mcp/browser-sessions/','WuTMv','\x20incomplete','filter','12195010iwamRC','FGCEC','submittedAt','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','njFbq','lNEkU','after','Step\x20','cEjZy','ready','incomplete','oVRUW','utf-8','stepName','round','split','approved','incompleteReason','SAuEW','Screenshot\x20','NSXIl','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','ouWWV','\x0a\x20\x20\x20Scenarios:','aTpPM','canceledReason','verified','log','authorName','coordinates','\x20\x20\x20\x20\x20\x20Incomplete:\x20','exit','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','browserSessionId','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','content','write','stringify','\x20scenarios.','.md','verifiedItems','dYrdw','offset','RVVqd','closed','Kvwpt','includeDeleted','stats','1024560dOSbHw','lnSrY','18gzimsk','gitBranch','find','GNxmU','CBwHz','VYCXd','cJCjZ','scenario','\x20\x20\x20Updated\x20branch\x20to:\x20','description','bxVSZ','length','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','MlONv','stdin','No\x20sessions\x20found.','trim','LZfYY','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','createdAt','terminalReason','in_progress','limit','items','\x0a✅\x20Report\x20generated:\x20','unaddressedComments','toLocaleDateString','push','totalCount','pipe','\x0a✅\x20Scenario\x20updated','EpYeB','HAqIe','isTTY','FldiW','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','BUpNW','tItCV','slice','status','\x20Session\x20','tVpWR','\x20unaddressed\x20comment(s)','Next\x20page:\x20ranger\x20list\x20--offset\x20','replace','SLrpA','xUDmO','numeric','BzSaS','stdout','QtGCm','\x20\x20\x20Repository:\x20','310714KtOaQr','any','assetUrl','\x20\x20\x20Progress:\x20','join','warn','305074xKNOXb','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','IgCie','CLAUDE_SESSION_ID','\x0a✅\x20Feature\x20review\x20created:\x20','lnOVW','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','canonicalFlow','json','rxJvd','iteration','gitRepoUrl','sessionId','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','JYMUH','spatial','\x20\x20\x20▶️\x20Started\x20session\x20','pop','\x20[has\x20reviewer\x20feedback]','KkUzb','map','Hkxyd',':\x20\x22','\x0aConcluding\x20session...','position','\x20\x20\x20Completed:\x20','biYvb','repeat','IvxTl','No\x20active\x20session\x20for\x20this\x20feature\x20review.','element','short','\x20—\x20no\x20comments','selected','uajFH','name','\x20\x20\x20\x20','Unknown','lBeXd','completedAt','15AjcgZM','toLocaleString','Please\x20finish\x20your\x20review\x20first:','\x20/\x20','Showing\x20','blockedItems','currentSessionId','error','arrayBuffer','from','ymVXH','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','dashboardUrl','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','606396JKUUya','\x0aNo\x20feature\x20reviews\x20found.','OrNDH','LEdjN','ERsJZ','version','env','textContent','\x20(v','assetType','domRef','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','5288DnKuRW','\x20\x20\x20\x20\x20📋\x20Selector:\x20','lEfUO','timing','\x20\x20\x20ID:\x20','checklistItems','verification_in_progress','POWfN','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','\x0a✅\x20Session\x20is\x20already\x20completed.','566560EFExWw','9KRDQII','\x20of\x20','incompleteItems','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','MANYN','pendingItems','screenshotUrls','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','\x20concluded.','vIzEq','jmQHw','latestReview','\x20in\x20progress','FQcWd','NNOmI','cLnMh','parentItemId','DnQnN','verificationInProgressItems','notes','isInteger','toFixed','Scenario\x20','blockedReason'];_0x31b5=function(){return _0x2276c5;};return _0x31b5();}export async function featureResume(_0xc5c1b0){const _0x416e3b=_0x28e1,_0x48756c={'DnQnN':function(_0x47ba60,_0x472ec2){return _0x47ba60(_0x472ec2);},'OrNDH':function(_0x4bde6d){return _0x4bde6d();},'QtGCm':function(_0x3727c4,_0x1592ab){return _0x3727c4&&_0x1592ab;},'pVvVk':'Not\x20in\x20a\x20git\x20repository.','prYYa':function(_0x329555,_0x3d2b65){return _0x329555||_0x3d2b65;},'ViHdk':function(_0x335a15,_0xae9b51){return _0x335a15===_0xae9b51;},'IgCie':_0x416e3b(0x13d),'SnNiu':_0x416e3b(0x18a),'NNOmI':_0x416e3b(0x160),'akaWN':_0x416e3b(0x189),'mEuAz':function(_0x6cd839,_0x5ba11a,_0x54ae2d){return _0x6cd839(_0x5ba11a,_0x54ae2d);},'oVRUW':function(_0x414158,_0x1f5ad1,_0x3fec61){return _0x414158(_0x1f5ad1,_0x3fec61);}};if(_0xc5c1b0){const _0x158caa=await getFeature(_0xc5c1b0);await setActiveFeatureId(_0x158caa['id']);const _0x16227d=getGitBranch();_0x16227d&&_0x16227d!==_0x158caa[_0x416e3b(0x14f)]&&(await updateFeature(_0x158caa['id'],{'gitBranch':_0x16227d}),console[_0x416e3b(0x136)](_0x416e3b(0x156)+_0x16227d));console[_0x416e3b(0x136)](_0x416e3b(0x115)+_0x158caa['name']+'\x20('+_0x158caa['id']+')'),await tryStartCurrentSession(_0x158caa['id']);const _0x869495=process[_0x416e3b(0x1c5)]['CLAUDE_SESSION_ID'];_0x869495&&registerSession(_0x869495,_0x158caa['id']);displayFeature(_0x158caa,_0x158caa['checklistItems']),await _0x48756c[_0x416e3b(0x10a)](printFeedbackNudge,_0x158caa['id']);return;}const _0x4144c1=getGitRepoUrl(),_0x4dd8fc=_0x48756c[_0x416e3b(0x1c1)](getGitBranch);if(_0x48756c[_0x416e3b(0x180)](!_0x4144c1,!_0x4dd8fc))throw new Error(_0x48756c['pVvVk']);console[_0x416e3b(0x136)]('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x48756c['prYYa'](_0x4144c1,'any')+_0x416e3b(0x1b4)+(_0x4dd8fc||_0x416e3b(0x183))+'...');const _0x1d30c8=await listFeatures({'gitRepoUrl':_0x4144c1,'gitBranch':_0x4dd8fc}),_0x3f948a=_0x1d30c8[_0x416e3b(0x165)][_0x416e3b(0x11a)](_0x23d8d4=>_0x23d8d4[_0x416e3b(0x175)]?_0x23d8d4['status']!==_0x416e3b(0x135):!_0x23d8d4['completedAt']);if(_0x48756c['ViHdk'](_0x3f948a[_0x416e3b(0x159)],0x0)){console[_0x416e3b(0x136)](_0x416e3b(0x171)),console[_0x416e3b(0x136)](_0x48756c[_0x416e3b(0x18b)]);return;}let _0xbea936;if(_0x3f948a['length']===0x1)_0xbea936=_0x3f948a[0x0];else{const _0x1e0e30=process[_0x416e3b(0x15c)][_0x416e3b(0x16f)]&&process[_0x416e3b(0x17f)]['isTTY'];if(!_0x1e0e30){console['log'](_0x48756c['SnNiu']);for(const _0x45f980 of _0x3f948a){console[_0x416e3b(0x136)]('\x20\x20'+_0x45f980['name']),console[_0x416e3b(0x136)]('\x20\x20\x20\x20\x20ID:\x20'+_0x45f980['id']),_0x45f980['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+_0x48756c[_0x416e3b(0x10a)](getProgressDisplay,_0x45f980[_0x416e3b(0x14b)])),_0x45f980['gitBranch']&&console['log']('\x20\x20\x20\x20\x20Branch:\x20'+_0x45f980['gitBranch']);}throw new Error(_0x48756c[_0x416e3b(0x107)]);}const {selected:_0x190cc2}=await _0x2044a0['prompt']([{'type':'list','name':_0x416e3b(0x1aa),'message':_0x48756c['akaWN'],'choices':_0x3f948a['map'](_0x4871e5=>({'name':_0x4871e5['name']+'\x20('+_0x4871e5['id']+')','value':_0x4871e5['id']}))}]);_0xbea936=_0x3f948a[_0x416e3b(0x150)](_0x4c37d6=>_0x4c37d6['id']===_0x190cc2);}await _0x48756c['DnQnN'](setActiveFeatureId,_0xbea936['id']);_0x4dd8fc&&_0x4dd8fc!==_0xbea936['gitBranch']&&(await _0x48756c['mEuAz'](updateFeature,_0xbea936['id'],{'gitBranch':_0x4dd8fc}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4dd8fc));console[_0x416e3b(0x136)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0xbea936['name']+'\x20('+_0xbea936['id']+')'),await tryStartCurrentSession(_0xbea936['id']);const _0x37a717=await getFeature(_0xbea936['id']),_0x566090=process[_0x416e3b(0x1c5)][_0x416e3b(0x18c)];_0x566090&&registerSession(_0x566090,_0x37a717['id']),_0x48756c[_0x416e3b(0x126)](displayFeature,_0x37a717,_0x37a717[_0x416e3b(0x1d0)]),await printFeedbackNudge(_0x37a717['id']);}async function printFeedbackNudge(_0x4c6c6a){const _0x17310f=_0x28e1,_0x5f446c={'Kvwpt':function(_0x5464d0,_0x2996c3,_0x4bee3b){return _0x5464d0(_0x2996c3,_0x4bee3b);},'QvXsL':_0x17310f(0x1bc)};try{const {items:_0x221d7a}=await getActionItems(_0x4c6c6a);let _0x2dea2b=0x0,_0x4c887f=0x0;for(const _0x113ac6 of _0x221d7a){const _0x34614e=await _0x5f446c[_0x17310f(0x149)](getItemFeedback,_0x4c6c6a,_0x113ac6['id']);_0x34614e[_0x17310f(0x167)][_0x17310f(0x159)]>0x0&&(_0x2dea2b+=_0x34614e[_0x17310f(0x167)][_0x17310f(0x159)],_0x4c887f++);}_0x2dea2b>0x0&&(console['log']('\x0a⚠️\x20\x20'+_0x2dea2b+_0x17310f(0x130)+_0x4c887f+'\x20scenario(s).'),console[_0x17310f(0x136)](_0x5f446c['QvXsL']));}catch{}}function _0x28e1(_0x5fdeae,_0x29ce18){_0x5fdeae=_0x5fdeae-0x106;const _0x31b5b9=_0x31b5();let _0x28e143=_0x31b5b9[_0x5fdeae];return _0x28e143;}async function tryStartCurrentSession(_0x22e6e1){const _0x1cb6a6=_0x28e1,_0x568b28={'JYMUH':function(_0x575581,_0x55e0f2){return _0x575581(_0x55e0f2);}};try{const {sessions:_0x57a9e2}=await _0x568b28[_0x1cb6a6(0x197)](listFeatureSessions,_0x22e6e1),_0x31a29c=_0x57a9e2[_0x1cb6a6(0x150)](_0x124861=>_0x124861['status']===_0x1cb6a6(0x124));_0x31a29c&&(await startSession(_0x22e6e1,_0x31a29c['id']),console[_0x1cb6a6(0x136)](_0x1cb6a6(0x199)+_0x31a29c['iteration']));}catch{}}export async function featureReport(_0x8d032a,_0x2d893e){const _0x3435a8=_0x28e1,_0x472775={'bxVSZ':'\x0aGenerating\x20report...','GNxmU':function(_0x45315f,_0x1de3b0,_0x559306){return _0x45315f(_0x1de3b0,_0x559306);},'vIzEq':function(_0x2f5944,_0x2647a0,_0x2ecfe0,_0x2d0296){return _0x2f5944(_0x2647a0,_0x2ecfe0,_0x2d0296);},'xUDmO':function(_0x427be2,_0x58fe24,_0x3ac5fd){return _0x427be2(_0x58fe24,_0x3ac5fd);},'CBwHz':function(_0x97db79,_0x550d8e){return _0x97db79(_0x550d8e);}},_0x3ffa7f=_0x8d032a||await getActiveFeatureId();if(!_0x3ffa7f)throw new Error(_0x3435a8(0x18f));console['log'](_0x472775[_0x3435a8(0x158)]);const _0x526111=await _0x472775['GNxmU'](getFeatureReportMarkdown,_0x3ffa7f,{'style':_0x2d893e['style']}),_0x165d45=_0x2d893e['output']||_0x472775[_0x3435a8(0x1e0)](join,getRangerDir(),'reports',_0x3ffa7f+_0x3435a8(0x143)),_0x12a786=_0x472775[_0x3435a8(0x17c)](join,_0x165d45,'..');!_0x472775[_0x3435a8(0x152)](existsSync,_0x12a786)&&await _0x472775[_0x3435a8(0x151)](mkdir,_0x12a786,{'recursive':!![]}),await writeFile(_0x165d45,_0x526111,'utf-8'),console['log'](_0x3435a8(0x166)+_0x165d45);}function getScenarioResult(_0x13b06c){const _0x29e2ae=_0x28e1,_0x4bfb43={'nDNGM':function(_0x17427a,_0x162c7a){return _0x17427a===_0x162c7a;},'RojnW':_0x29e2ae(0x1d1)};if(_0x13b06c[_0x29e2ae(0x175)]==='closed')return _0x13b06c[_0x29e2ae(0x162)]??'closed';if(_0x4bfb43['nDNGM'](_0x13b06c[_0x29e2ae(0x175)],_0x4bfb43['RojnW']))return _0x29e2ae(0x163);return _0x13b06c['status'];}function getScenarioRationale(_0x44c8c7,_0x4766ce){const _0x1ed3cf=_0x28e1;if(_0x4766ce)return _0x4766ce;if(_0x44c8c7['blockedReason'])return _0x44c8c7[_0x1ed3cf(0x110)];if(_0x44c8c7['incompleteReason'])return _0x44c8c7['incompleteReason'];if(_0x44c8c7[_0x1ed3cf(0x134)])return _0x44c8c7[_0x1ed3cf(0x134)];if(_0x44c8c7[_0x1ed3cf(0x10c)])return _0x44c8c7['notes'];return null;}export async function featureReportPrDescription(_0x2785e9,_0x13ae0f){const _0x133354=_0x28e1,_0x2b1e39={'fcEJI':_0x133354(0x18f),'rxJvd':function(_0x3f923c,_0x58cb37,_0x299d34){return _0x3f923c(_0x58cb37,_0x299d34);},'kumZH':_0x133354(0x1ca),'biYvb':function(_0x18d3a3,_0x1f6f45){return _0x18d3a3>_0x1f6f45;},'WuTMv':'\x0aAvailable\x20scenarios:','HAqIe':function(_0x230f13,_0x22445b){return _0x230f13+_0x22445b;},'kqUPQ':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0x1e8d97=_0x2785e9||await getActiveFeatureId();if(!_0x1e8d97)throw new Error(_0x2b1e39['fcEJI']);const _0x3e114e=await getFeature(_0x1e8d97),_0x4ee251=_0x3e114e[_0x133354(0x1d0)]||[],_0x3819cd=_0x2b1e39[_0x133354(0x192)](getCurrentSessionItems,_0x3e114e,_0x4ee251);_0x3819cd[_0x133354(0x159)]===0x0&&(console[_0x133354(0x1b8)](_0x2b1e39['kumZH']),process[_0x133354(0x13a)](0x1));const _0xe41d12=_0x13ae0f['excludeScenarios']??[],_0xee9daa=_0xe41d12['filter'](_0x8bfcc6=>!Number[_0x133354(0x10d)](_0x8bfcc6)||_0x8bfcc6<0x1||_0x8bfcc6>_0x3819cd['length']);if(_0x2b1e39[_0x133354(0x1a3)](_0xee9daa['length'],0x0)){console[_0x133354(0x1b8)](_0x133354(0x1be)+_0xee9daa[_0x133354(0x186)](',\x20')),console[_0x133354(0x136)](_0x2b1e39[_0x133354(0x118)]);for(let _0x4c15ac=0x0;_0x4c15ac<_0x3819cd[_0x133354(0x159)];_0x4c15ac++){console['log']('\x20\x20'+_0x2b1e39[_0x133354(0x16e)](_0x4c15ac,0x1)+'.\x20'+_0x3819cd[_0x4c15ac]['description']);}process[_0x133354(0x13a)](0x1);}const _0x55a7ef=new Set(_0xe41d12['map'](_0x255bab=>_0x255bab-0x1)),_0x14c621=_0x3819cd[_0x133354(0x11a)]((_0x160950,_0x415d7b)=>!_0x55a7ef['has'](_0x415d7b));_0x14c621['length']===0x0&&(console[_0x133354(0x1b8)](_0x2b1e39['kqUPQ']),process['exit'](0x1));if(_0x13ae0f[_0x133354(0x191)])await outputJsonReport(_0x1e8d97,_0x3e114e,_0x14c621);else{const _0x6c5fcb=await getFeatureReportMarkdown(_0x1e8d97,{'itemIds':_0x14c621['map'](_0x21bf6f=>_0x21bf6f['id'])});process['stdout'][_0x133354(0x140)](_0x6c5fcb['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x37449a,_0x9f8131,_0x5706a5){const _0x1e3956=_0x28e1,_0x5dffb5={'qdugT':function(_0x35b272,_0xe00c66){return _0x35b272(_0xe00c66);},'lDGTL':function(_0x1c10ff,_0xaf5251){return _0x1c10ff===_0xaf5251;},'VPjiP':function(_0x5ea5f4,_0x4359c3){return _0x5ea5f4(_0x4359c3);}},_0x227065=getApiBaseUrl(),_0x26589d=await getFeatureReport(_0x37449a),_0x8c9885=new Map(_0x26589d[_0x1e3956(0x1d0)]['map'](_0x525318=>[_0x525318['id'],_0x525318])),_0x897bc3=await Promise['all'](_0x5706a5[_0x1e3956(0x19d)](async _0x555669=>{const _0x4bc901=_0x1e3956,_0x4705f4=_0x8c9885['get'](_0x555669['id']),_0x436ead=_0x4705f4?.['linkedSession']??null;let _0x29fba7=[];if(_0x555669[_0x4bc901(0x13c)])try{const {steps:_0xd869f8}=await _0x5dffb5['qdugT'](getBrowserSessionSteps,_0x555669['browserSessionId']);_0xd869f8['length']>0x0&&(_0x29fba7=_0xd869f8['map'](_0x3a9fd6=>{const _0x1a03c0=_0x4bc901,_0x3e9219=_0x3a9fd6['assets'][_0x1a03c0(0x150)](_0x2fddd9=>_0x2fddd9[_0x1a03c0(0x1c8)]==='screenshot'&&_0x2fddd9[_0x1a03c0(0x1ce)]===_0x1a03c0(0x121))??_0x3a9fd6['assets'][_0x1a03c0(0x150)](_0x3d6f6b=>_0x3d6f6b[_0x1a03c0(0x1c8)]==='screenshot');let _0x5adeb3=null,_0x1bfcb3=null;if(_0x3e9219){const _0x303cb5=_0x3e9219['storage'][_0x1a03c0(0x111)][_0x1a03c0(0x12a)]('/')['pop']();_0x5adeb3=_0x227065+_0x1a03c0(0x117)+_0x555669[_0x1a03c0(0x13c)]+'/artifacts/'+_0x303cb5,_0x303cb5&&(_0x1bfcb3=_0x303cb5[_0x1a03c0(0x17a)](/\.\w+$/,'')[_0x1a03c0(0x17a)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x1bfcb3||_0x3a9fd6['description']||_0x3a9fd6[_0x1a03c0(0x128)]||_0x1a03c0(0x122)+_0x3a9fd6[_0x1a03c0(0x1a1)],'screenshot':_0x5adeb3,'is_key_step':_0x3a9fd6['isKeyStep']};}));}catch{}return _0x5dffb5['lDGTL'](_0x29fba7[_0x4bc901(0x159)],0x0)&&_0x436ead?.[_0x4bc901(0x1dc)]&&(_0x29fba7=_0x436ead['screenshotUrls'][_0x4bc901(0x19d)]((_0x1dd598,_0x2461fa)=>({'description':_0x4bc901(0x12e)+(_0x2461fa+0x1),'screenshot':_0x1dd598,'is_key_step':![]}))),{'description':_0x555669[_0x4bc901(0x157)],'result':_0x5dffb5['VPjiP'](getScenarioResult,_0x555669),'rationale':getScenarioRationale(_0x555669,_0x436ead?.[_0x4bc901(0x112)]),'steps':_0x29fba7};})),_0xdb05ce={'url':_0x9f8131['dashboardUrl'],'scenarios':_0x897bc3};process[_0x1e3956(0x17f)][_0x1e3956(0x140)](JSON[_0x1e3956(0x141)](_0xdb05ce,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x135229){const _0x1180a2=_0x28e1,_0x3c2c1b={'JyoIG':function(_0x3ce6e4,_0x16a1bc){return _0x3ce6e4(_0x16a1bc);},'NIwrG':'Current\x20session\x20not\x20found.','cLnMh':'completed'},_0x1d9b7b=_0x135229||await getActiveFeatureId();if(!_0x1d9b7b)throw new Error(_0x1180a2(0x114));const _0x57233a=await _0x3c2c1b['JyoIG'](getFeature,_0x1d9b7b);if(!_0x57233a['currentSessionId'])throw new Error(_0x1180a2(0x1a6));const {sessions:_0x6b407d}=await listFeatureSessions(_0x1d9b7b),_0x25998f=_0x6b407d['find'](_0x2a095d=>_0x2a095d['id']===_0x57233a['currentSessionId']);if(!_0x25998f)throw new Error(_0x3c2c1b['NIwrG']);if(_0x25998f['status']===_0x3c2c1b[_0x1180a2(0x108)]){console['log'](_0x1180a2(0x1d4));return;}if(_0x25998f['status']!=='in_progress')throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x25998f['status']);console['log'](_0x1180a2(0x1a0)),await concludeSession(_0x1d9b7b,_0x57233a['currentSessionId']),console['log']('\x0a✅\x20Session\x20'+_0x25998f[_0x1180a2(0x193)]+_0x1180a2(0x1df)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x5c200a){const _0x1af885=_0x28e1,_0xf72697={'lnOVW':function(_0x37d98f,_0x28c0b8){return _0x37d98f(_0x28c0b8);},'jmQHw':'completed','POWfN':'in_progress'},_0x1c8681=_0x5c200a||await getActiveFeatureId();if(!_0x1c8681)throw new Error(_0x1af885(0x18f));const _0x16b318=await _0xf72697[_0x1af885(0x18e)](getFeature,_0x1c8681);console['log'](_0x1af885(0x11e)+_0x16b318[_0x1af885(0x1ac)]+'\x0a');const {sessions:_0x4d806b}=await listFeatureSessions(_0x1c8681);if(_0x4d806b[_0x1af885(0x159)]===0x0){console[_0x1af885(0x136)](_0x1af885(0x15d));return;}for(const _0x30101e of _0x4d806b){const _0x157376=_0x30101e[_0x1af885(0x175)]===_0xf72697[_0x1af885(0x1e1)]?'✅':_0x30101e[_0x1af885(0x175)]===_0xf72697[_0x1af885(0x1d2)]?'🔄':'▶️';console['log'](_0x157376+_0x1af885(0x176)+_0x30101e[_0x1af885(0x193)]+'\x20('+_0x30101e['id']+')'),console[_0x1af885(0x136)]('\x20\x20\x20Status:\x20'+_0x30101e['status']),console['log']('\x20\x20\x20Created:\x20'+new Date(_0x30101e['createdAt'])[_0x1af885(0x1b2)]()),_0x30101e['completedAt']&&console['log'](_0x1af885(0x1a2)+new Date(_0x30101e['completedAt'])[_0x1af885(0x1b2)]()),console['log']('');}}export async function featureAddScenario(_0x4736ec,_0x38f652){const _0x2bdce0=_0x28e1,_0x3d869e={'RVVqd':function(_0x93bc2d){return _0x93bc2d();},'NSXIl':_0x2bdce0(0x114),'uajFH':function(_0x5422aa,_0x49b7f3){return _0x5422aa(_0x49b7f3);},'aTpPM':function(_0x1cb05c,_0x175c20,_0x2e2d51){return _0x1cb05c(_0x175c20,_0x2e2d51);},'QjNzV':function(_0x51b625,_0x1301de,_0xefac0c){return _0x51b625(_0x1301de,_0xefac0c);}},_0x3c4997=_0x38f652||await _0x3d869e[_0x2bdce0(0x147)](getActiveFeatureId);if(!_0x3c4997)throw new Error(_0x3d869e[_0x2bdce0(0x12f)]);const _0x152397=await _0x3d869e[_0x2bdce0(0x1ab)](getFeature,_0x3c4997);if(_0x152397['latestReview']&&!_0x152397['latestReview']['submittedAt'])throw new Error(_0x2bdce0(0x1d9)+_0x152397['dashboardUrl']);await _0x3d869e[_0x2bdce0(0x133)](createChecklistItem,_0x3c4997,_0x4736ec);const _0x3e3a3d=await _0x3d869e['uajFH'](getFeature,_0x3c4997);console[_0x2bdce0(0x136)]('\x0a✅\x20Scenario\x20added'),_0x3d869e['QjNzV'](displayFeature,_0x3e3a3d,_0x3e3a3d[_0x2bdce0(0x1d0)]);}export async function featureEditScenario(_0x26110e,_0x2a0723){const _0x12a8ae=_0x28e1,_0x298baf={'BzSaS':function(_0x1e2a9a){return _0x1e2a9a();},'kyfta':_0x12a8ae(0x1b3),'CltcT':_0x12a8ae(0x15a),'TtgeG':function(_0x326a0b,_0x44121f){return _0x326a0b===_0x44121f;},'KkUzb':_0x12a8ae(0x1de),'tItCV':function(_0x18a014,_0x48e373){return _0x18a014>=_0x48e373;},'ddqmc':'\x0aAvailable\x20scenarios:','lEfUO':function(_0x488d33,_0x14ebcb){return _0x488d33+_0x14ebcb;},'zXxvJ':function(_0x18a82a,_0x1eec53,_0x283d03,_0x59c416){return _0x18a82a(_0x1eec53,_0x283d03,_0x59c416);},'ymVXH':function(_0x4e8da6,_0x2778cc,_0x51157f){return _0x4e8da6(_0x2778cc,_0x51157f);}},_0xebdaa4=_0x2a0723['id']||await _0x298baf[_0x12a8ae(0x17e)](getActiveFeatureId);!_0xebdaa4&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x12a8ae(0x1b8)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process[_0x12a8ae(0x13a)](0x1));const _0x2f436c=await getFeature(_0xebdaa4);_0x2f436c['latestReview']&&!_0x2f436c[_0x12a8ae(0x1e2)][_0x12a8ae(0x11d)]&&(console[_0x12a8ae(0x1b8)]('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console[_0x12a8ae(0x1b8)](_0x298baf['kyfta']),console[_0x12a8ae(0x1b8)]('\x20\x20'+_0x2f436c[_0x12a8ae(0x1bd)]),process['exit'](0x1));const _0x624252=_0x2f436c['checklistItems']||[];_0x624252['length']===0x0&&(console[_0x12a8ae(0x1b8)](_0x298baf['CltcT']),process['exit'](0x1));if(_0x298baf['TtgeG'](_0x2a0723[_0x12a8ae(0x155)],undefined)){console[_0x12a8ae(0x1b8)](_0x298baf[_0x12a8ae(0x19c)]),console[_0x12a8ae(0x136)](_0x12a8ae(0x113));for(let _0x5e62cd=0x0;_0x5e62cd<_0x624252['length'];_0x5e62cd++){console[_0x12a8ae(0x136)]('\x20\x20'+(_0x5e62cd+0x1)+'.\x20'+_0x624252[_0x5e62cd]['description']);}process[_0x12a8ae(0x13a)](0x1);}const _0x388165=_0x2a0723[_0x12a8ae(0x155)]-0x1;if(_0x388165<0x0||_0x298baf[_0x12a8ae(0x173)](_0x388165,_0x624252['length'])){console[_0x12a8ae(0x1b8)](_0x12a8ae(0x1dd)+_0x2a0723['scenario']+'.\x20Feature\x20review\x20has\x20'+_0x624252[_0x12a8ae(0x159)]+_0x12a8ae(0x142)),console['log'](_0x298baf['ddqmc']);for(let _0x36cbc1=0x0;_0x36cbc1<_0x624252[_0x12a8ae(0x159)];_0x36cbc1++){console[_0x12a8ae(0x136)]('\x20\x20'+_0x298baf[_0x12a8ae(0x1cd)](_0x36cbc1,0x1)+'.\x20'+_0x624252[_0x36cbc1]['description']);}process[_0x12a8ae(0x13a)](0x1);}const _0x4edb0a=_0x624252[_0x388165];await _0x298baf['zXxvJ'](updateChecklistItem,_0xebdaa4,_0x4edb0a['id'],{'description':_0x26110e});const _0x2b5aad=await getFeature(_0xebdaa4);console[_0x12a8ae(0x136)](_0x12a8ae(0x16c)),_0x298baf[_0x12a8ae(0x1bb)](displayFeature,_0x2b5aad,_0x2b5aad['checklistItems']);}async function downloadFeedbackImage(_0x2023e3,_0x5d14e2){const _0x1b3129=_0x28e1,_0x4e6af6={'tVpWR':function(_0x5a5cf9){return _0x5a5cf9();},'EpYeB':function(_0x7603f1,_0x4ce63e,_0x161b7d){return _0x7603f1(_0x4ce63e,_0x161b7d);},'svKBd':function(_0x18cbb9,_0x128a13){return _0x18cbb9(_0x128a13);},'jxoXd':function(_0x466005,_0x36ded8,_0x454f50){return _0x466005(_0x36ded8,_0x454f50);}};try{const _0x5cae09=join(_0x4e6af6[_0x1b3129(0x177)](getRangerDir),'feedback-images');await _0x4e6af6[_0x1b3129(0x16d)](mkdir,_0x5cae09,{'recursive':!![]});const _0x224f54=_0x4e6af6[_0x1b3129(0x16d)](join,_0x5cae09,'comment_'+_0x5d14e2+'.png'),_0x3467e2=await _0x4e6af6['svKBd'](fetch,_0x2023e3);if(!_0x3467e2['ok'])return null;const _0x5cd941=Buffer[_0x1b3129(0x1ba)](await _0x3467e2[_0x1b3129(0x1b9)]());return await _0x4e6af6['jxoXd'](writeFile,_0x224f54,_0x5cd941),_0x224f54;}catch{return null;}}export async function featureGetReview(_0x562e4d){const _0x191daf=_0x28e1,_0x2ac757={'cztEV':function(_0x98d98,_0xf21680){return _0x98d98<_0xf21680;},'dLwZa':function(_0x495a36,_0x80918c){return _0x495a36>_0x80918c;},'MANYN':function(_0x5dd028,_0x281322){return _0x5dd028+_0x281322;},'tCfmS':'en-US','lnSrY':_0x191daf(0x17d),'BtAzm':'point'},_0x4dfaf6=_0x562e4d||await getActiveFeatureId();if(!_0x4dfaf6)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 _0x293eb5=await getFeature(_0x4dfaf6),{items:_0x3513e0}=await getActionItems(_0x4dfaf6);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x293eb5['name']+'\x20('+_0x293eb5['id']+')\x0a');if(_0x3513e0[_0x191daf(0x159)]===0x0){console['log']('No\x20scenarios\x20found.');return;}for(let _0x17d897=0x0;_0x2ac757['cztEV'](_0x17d897,_0x3513e0[_0x191daf(0x159)]);_0x17d897++){const _0x37f9d1=_0x3513e0[_0x17d897],_0x237bc2=_0x2ac757['dLwZa'](_0x37f9d1[_0x191daf(0x1c4)],0x1)?_0x191daf(0x1c7)+_0x37f9d1['version']+')':'',_0x850289=await getItemFeedback(_0x4dfaf6,_0x37f9d1['id']);if(_0x850289['unaddressedComments'][_0x191daf(0x159)]>0x0){console['log'](_0x191daf(0x10f)+_0x2ac757[_0x191daf(0x1da)](_0x17d897,0x1)+':\x20\x22'+_0x37f9d1['description']+'\x22'+_0x237bc2+'\x20—\x20'+_0x850289['unaddressedComments'][_0x191daf(0x159)]+_0x191daf(0x178));for(const _0x1ced93 of _0x850289['unaddressedComments']){const _0xeeb216=new Date(_0x1ced93[_0x191daf(0x161)])['toLocaleDateString'](_0x2ac757['tCfmS'],{'month':_0x191daf(0x1a8),'day':_0x2ac757[_0x191daf(0x14d)]}),_0x184294=_0x1ced93[_0x191daf(0x137)]||_0x1ced93['authorEmail']||_0x191daf(0x1ae);console[_0x191daf(0x136)]('\x20\x20💬\x20'+_0x184294+'\x20('+_0xeeb216+'):\x20\x22'+_0x1ced93[_0x191daf(0x13f)]+'\x22');if(_0x1ced93[_0x191daf(0x184)]){const _0x2f953b=await downloadFeedbackImage(_0x1ced93['assetUrl'],_0x1ced93['id']);_0x2f953b&&console[_0x191daf(0x136)](_0x191daf(0x196)+_0x2f953b);}if(_0x1ced93['domRef']){const _0x352625=_0x1ced93['domRef']['selector'][_0x191daf(0x12a)]('\x20>\x20')[_0x191daf(0x19a)]()?.[_0x191daf(0x12a)](':')[0x0]||_0x191daf(0x1a7),_0xf9ed5b=_0x1ced93[_0x191daf(0x1c9)][_0x191daf(0x1c6)]?'\x20\x22'+_0x1ced93[_0x191daf(0x1c9)][_0x191daf(0x1c6)][_0x191daf(0x174)](0x0,0x3c)+'\x22':'';console[_0x191daf(0x136)](_0x191daf(0x13b)+_0x352625+'>'+_0xf9ed5b),console['log'](_0x191daf(0x1cc)+_0x1ced93[_0x191daf(0x1c9)]['selector']);}else{if(_0x1ced93[_0x191daf(0x198)]){const _0x3c2577=_0x1ced93[_0x191daf(0x198)][_0x191daf(0x138)];_0x1ced93['spatial']['type']===_0x2ac757['BtAzm']&&_0x3c2577[_0x191daf(0x159)]>=0x2?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x3c2577[0x0][_0x191daf(0x10e)](0x2)+',\x20'+_0x3c2577[0x1]['toFixed'](0x2)+')'):console['log'](_0x191daf(0x1d3)+_0x1ced93['spatial']['type']+'\x20at\x20['+_0x3c2577['map'](_0x5ca7a3=>_0x5ca7a3[_0x191daf(0x10e)](0x2))[_0x191daf(0x186)](',\x20')+']');}}}if(_0x850289['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x130f71 of _0x850289[_0x191daf(0x190)]['split']('\x0a')){console[_0x191daf(0x136)](_0x191daf(0x1ad)+_0x130f71);}}}else console[_0x191daf(0x136)](_0x191daf(0x10f)+(_0x17d897+0x1)+_0x191daf(0x19f)+_0x37f9d1['description']+'\x22'+_0x237bc2+_0x191daf(0x1a9)),console[_0x191daf(0x136)]('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x191daf(0x136)]('');}}export async function featureDelete(_0x47c10d){const _0xecb9d0=_0x28e1,_0x28ff8f={'ZBloH':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Hkxyd':function(_0x29b8dd,_0x8f5a21){return _0x29b8dd(_0x8f5a21);},'Ajzcd':function(_0x5cb6d8,_0x236850){return _0x5cb6d8+_0x236850;},'LEdjN':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x5659e3=_0x47c10d||await getActiveFeatureId();if(!_0x5659e3)throw new Error(_0x28ff8f['ZBloH']);const _0x335ff5=await _0x28ff8f[_0xecb9d0(0x19e)](getFeature,_0x5659e3);await softDeleteFeature(_0x5659e3),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x335ff5[_0xecb9d0(0x1ac)]+'\x20('+_0x5659e3+')'),console['log'](_0x28ff8f['Ajzcd'](_0x28ff8f[_0xecb9d0(0x1c2)],_0x5659e3));}export async function featureRestore(_0xe0b495){const _0x238096=_0x28e1,_0x8101b4={'AaCkQ':function(_0xa7fb58,_0x2d7e54,_0xa6f21e){return _0xa7fb58(_0x2d7e54,_0xa6f21e);}};await restoreFeature(_0xe0b495);const _0x41252f=await getFeature(_0xe0b495);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x41252f['name']+'\x20('+_0xe0b495+')'),_0x8101b4['AaCkQ'](displayFeature,_0x41252f,_0x41252f[_0x238096(0x1d0)]);}
1
+ const _0x24dcdd=_0x31ff;(function(_0xece8db,_0x52a0b0){const _0x194af8=_0x31ff,_0x383ce3=_0xece8db();while(!![]){try{const _0x5ca270=parseInt(_0x194af8(0xd6))/0x1*(-parseInt(_0x194af8(0x97))/0x2)+parseInt(_0x194af8(0xa9))/0x3+parseInt(_0x194af8(0x154))/0x4+parseInt(_0x194af8(0x147))/0x5*(parseInt(_0x194af8(0xf3))/0x6)+parseInt(_0x194af8(0x13d))/0x7+parseInt(_0x194af8(0xbe))/0x8*(-parseInt(_0x194af8(0x126))/0x9)+-parseInt(_0x194af8(0x98))/0xa*(parseInt(_0x194af8(0x82))/0xb);if(_0x5ca270===_0x52a0b0)break;else _0x383ce3['push'](_0x383ce3['shift']());}catch(_0x203187){_0x383ce3['push'](_0x383ce3['shift']());}}}(_0x5202,0xaa79d));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x5202(){const _0x425791=['BaEFi','hlykk','items','OwMve','assetUrl','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','blockedItems','warn','1|5|2|0|3|4','yCwlM','stats','tIhGi','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','dashboardUrl','DQmra','verification_in_progress','SMUtc','\x20\x20\x20\x20\x20\x20Approved','BgXSt','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','textContent','env','timing','Next\x20page:\x20ranger\x20list\x20--offset\x20','github.com/','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','map','scenarios','wsjHR','sessionId','canceledReason','authorEmail','SgTtO','153cemxne','position','checklistItems','sAdDq','\x0a✅\x20Scenario\x20added','RJtzK','\x20[has\x20reviewer\x20feedback]','createdAt','element','CLAUDE_SESSION_ID','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20\x20\x20\x20\x20ID:\x20','style','yQHgK','unaddressedComments','\x20—\x20no\x20comments','length','ztWUg','afmul','Step\x20','lMFDI','iteration','ZZZjP','6835374zciZbI','currentSessionId','QDDQA','vSrFu','onIMr','closed','\x20>\x20','RANGER_TEST_USERNAME','status','\x20--limit\x20','2125UNUbzL','\x20(v','\x20\x20✅\x20No\x20feedback\x20to\x20address','toLocaleString','\x20\x20\x20ID:\x20','.md','trim','HIWbc','canonicalFlow','\x0aAvailable\x20scenarios:','latestReview','aLQAw','\x20\x20\x20Description:\x20','2238632YVlDxq','\x0a✅\x20Resumed\x20feature\x20review:\x20','\x0a❌\x20Invalid\x20scenario\x20index:\x20','kInUg','pWxvk','active-feature.txt','verified','ready','\x20\x20\x20','ulwBY','en-US','\x20\x20\x20Created:\x20','EPfSb','MBAbo','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','\x0a📋\x20Feedback\x20for:\x20','\x20\x20\x20Status:\x20','domRef','.\x20Feature\x20review\x20has\x20','repeat','WKxle','totalCount','dHgzs','type','toFixed','\x20\x20\x20\x20\x20\x20Incomplete:\x20','push','blocked','gitRepoUrl','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','21992091FfZoor','storage','EoUwA','ujkRm','selector','Scenario\x20','json','offset','\x0a✅\x20Feature\x20review\x20created:\x20',':\x20\x22','VxRoC','version','get','ncTGn','\x20\x20\x20Completed:\x20','replace','EhhcR','authorName','\x20of\x20','excludeScenarios','join','2zKTEvO','10Sjwink','name','SswyM','content','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','completed','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','in_progress','\x0a✅\x20Session\x20','QBCQl','\x20verified','spatial','isInteger','LUENb','find','npJMx','bAqOU','1818003MldciP','qnOjJ','browserSessionId','pendingItems','coordinates','\x20--current-branch','includeDeleted','xdOMB','agentResponse','split','zsoyv','PsPTw','stepName','\x20scenarios.','isTTY','screenshotUrls','iChog','pop','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','\x20\x20\x20Updated\x20branch\x20to:\x20','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','362504GFpDzf','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','location','exit','VMFgB','OitDC','\x20\x20\x20\x20\x20\x20Blocked:\x20','description','incompleteReason','completedAt','VUfIN','\x20Session\x20','PwIpk','kDaRC','...','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','screenshot','lZZJP','stdout','Cannot\x20conclude\x20session\x20with\x20status:\x20','filter','utf-8','assets','66145YRzPnZ','\x20\x20\x20\x20\x20\x20Cancelled:\x20','\x0aNo\x20feature\x20reviews\x20found.','No\x20sessions\x20found.','write','\x20--include-deleted','daWEJ','oAqXd','scenario','Please\x20finish\x20your\x20review\x20first:','lkdGz','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x20\x20\x20\x20\x20📋\x20Selector:\x20','stdin','tbDiU','arrayBuffer','log','FceAE','round','\x20\x20\x20\x20','slAtW','selected','feedback-images','\x0a✅\x20Scenario\x20updated','\x20\x20\x20Branch:\x20','submittedAt','piDDO','hoyjm','BDnOf','19650rCLkdI','lVaUJ','notes','verifiedItems','error','gitBranch','incomplete','Screenshot\x20','\x20scenario(s).','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','pipe','approved','FPvyt','assetType','WJZRS','limit','blockedReason','\x20concluded.'];_0x5202=function(){return _0x425791;};return _0x5202();}import{execSync}from'child_process';import _0x148d44 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';function _0x31ff(_0xec2dc1,_0x3fe610){_0xec2dc1=_0xec2dc1-0x81;const _0x5202c4=_0x5202();let _0x31ff90=_0x5202c4[_0xec2dc1];return _0x31ff90;}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=_0x24dcdd(0x159),bold=_0x51802d=>'\x1b[1m'+_0x51802d+'\x1b[0m';function getGitRepoUrl(){const _0x5f0143=_0x24dcdd,_0x3c6a2e={'SMUtc':function(_0x133617,_0x537fd4,_0x5231f5){return _0x133617(_0x537fd4,_0x5231f5);},'SZQNU':'git\x20remote\x20get-url\x20origin','afmul':_0x5f0143(0xfd)};try{const _0x3b40fe=_0x3c6a2e[_0x5f0143(0x115)](execSync,_0x3c6a2e['SZQNU'],{'encoding':_0x5f0143(0xd4),'stdio':[_0x5f0143(0xfd),_0x3c6a2e[_0x5f0143(0x138)],'pipe']})[_0x5f0143(0x14d)]();return _0x3b40fe[_0x5f0143(0x91)](/\.git$/,'')['replace'](/^git@github\.com:/,_0x5f0143(0x11d))[_0x5f0143(0x91)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0xdca80b=_0x24dcdd,_0x2a5054={'WJZRS':_0xdca80b(0xfd)};try{return execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0xdca80b(0xd4),'stdio':['pipe',_0x2a5054[_0xdca80b(0x101)],_0xdca80b(0xfd)]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4a831e=_0x24dcdd,_0x2cebe4={'WGweY':function(_0xc18d6b){return _0xc18d6b();}},_0x12bee0=join(_0x2cebe4['WGweY'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x12bee0))return null;try{const _0x19c844=await readFile(_0x12bee0,_0x4a831e(0xd4));return _0x19c844['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x1ac24d){const _0x4656ad=_0x24dcdd,_0x370c6a={'EPfSb':function(_0x19d36d,_0x1c6eb2,_0x17a1f3){return _0x19d36d(_0x1c6eb2,_0x17a1f3);},'QDDQA':function(_0x4bbf50,_0x1c2d7c){return _0x4bbf50(_0x1c2d7c);},'qdJnm':function(_0x44341f,_0x748550,_0x3ca433,_0x58bccf){return _0x44341f(_0x748550,_0x3ca433,_0x58bccf);}},_0x2f1f45=getRangerDir(),_0x4d78d8=_0x370c6a[_0x4656ad(0x160)](join,_0x2f1f45,ACTIVE_FEATURE_FILE);!_0x370c6a[_0x4656ad(0x13f)](existsSync,_0x2f1f45)&&await mkdir(_0x2f1f45,{'recursive':!![]}),await _0x370c6a['qdJnm'](writeFile,_0x4d78d8,_0x1ac24d,'utf-8');}function getProgressDisplay(_0x8af4bc){const _0x216eb6=_0x24dcdd,_0x452260={'hlykk':function(_0x35d2fb,_0x98db4e){return _0x35d2fb+_0x98db4e;},'BJkaz':function(_0x5b239c,_0x6008d3){return _0x5b239c+_0x6008d3;},'lZZJP':function(_0x4fef85,_0x3876a7){return _0x4fef85-_0x3876a7;},'piDDO':function(_0x1d48c2,_0x4804b2){return _0x1d48c2>_0x4804b2;},'FPvyt':function(_0x45c160,_0x51c6ce){return _0x45c160>_0x51c6ce;}},_0x4d97d1=_0x8af4bc[_0x216eb6(0xf6)]||0x0,_0xbbd094=_0x8af4bc['verificationInProgressItems']||0x0,_0x26a18b=_0x8af4bc[_0x216eb6(0x10b)]||0x0,_0x21f469=_0x8af4bc['incompleteItems']||0x0,_0x4634f5=_0x8af4bc[_0x216eb6(0xac)]||0x0,_0x478c1a=_0x452260[_0x216eb6(0x106)](_0x452260[_0x216eb6(0x106)](_0x4d97d1,_0xbbd094)+_0x26a18b+_0x21f469,_0x4634f5);if(_0x478c1a===0x0)return'-';const _0x2776c6=0xa,_0x2b1cc5=Math[_0x216eb6(0xe8)](_0x4d97d1/_0x478c1a*_0x2776c6),_0x61b2bd=_0x452260['BJkaz']('█'['repeat'](_0x2b1cc5),'░'[_0x216eb6(0x167)](_0x452260[_0x216eb6(0xd0)](_0x2776c6,_0x2b1cc5))),_0x2e3761=[];if(_0x452260['piDDO'](_0x26a18b,0x0))_0x2e3761[_0x216eb6(0x16e)](_0x26a18b+'\x20blocked');if(_0x452260[_0x216eb6(0xf0)](_0x21f469,0x0))_0x2e3761['push'](_0x21f469+'\x20incomplete');if(_0xbbd094>0x0)_0x2e3761[_0x216eb6(0x16e)](_0xbbd094+'\x20in\x20progress');const _0x2c17dd=_0x452260[_0x216eb6(0xff)](_0x2e3761['length'],0x0)?'\x20('+_0x2e3761['join'](',\x20')+')':'';return _0x61b2bd+'\x20'+_0x4d97d1+'/'+_0x478c1a+_0x216eb6(0xa2)+_0x2c17dd;}function getCurrentSessionItems(_0x37985d,_0x493209){const _0x11bc6e=_0x24dcdd;if(!_0x37985d['currentSessionId'])return _0x493209[_0x11bc6e(0xd3)](_0x4cdc6b=>!_0x4cdc6b[_0x11bc6e(0x122)]);return _0x493209['filter'](_0x3b27fb=>_0x3b27fb[_0x11bc6e(0x122)]===_0x37985d['currentSessionId']||!_0x3b27fb[_0x11bc6e(0x122)]);}function displayFeature(_0x7ccdeb,_0x38e956){const _0x2d86d9=_0x24dcdd,_0x4dee53={'ekcqg':function(_0x5de072,_0x4ddaee){return _0x5de072(_0x4ddaee);},'MBAbo':'\x0a\x20\x20\x20Scenarios:','ncTGn':function(_0x2c3d5f,_0xe5b553){return _0x2c3d5f<_0xe5b553;},'ztWUg':_0x2d86d9(0xfe),'aLQAw':function(_0x26ab3c,_0x4c7a23){return _0x26ab3c===_0x4c7a23;},'ebXGf':function(_0x25d0b4,_0x4f6007){return _0x25d0b4===_0x4f6007;},'SswyM':_0x2d86d9(0x114),'JWPRY':function(_0x5cf6af,_0x1a1afc){return _0x5cf6af>_0x1a1afc;},'FWHmD':function(_0x26760a,_0x34138a){return _0x26760a!==_0x34138a;},'EoUwA':_0x2d86d9(0x15a),'kaXIg':_0x2d86d9(0x12c),'PwIpk':function(_0x69cc8e,_0x1892cc){return _0x69cc8e+_0x1892cc;},'dHgzs':'blocked','LGwxd':function(_0x5123fb,_0x2559f2){return _0x5123fb===_0x2559f2;},'qnOjJ':_0x2d86d9(0xf9),'pWxvk':_0x2d86d9(0x142)};console['log']('\x0a'+_0x7ccdeb[_0x2d86d9(0x99)]+'\x20('+_0x7ccdeb['dashboardUrl']+')');_0x7ccdeb[_0x2d86d9(0x10f)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x4dee53['ekcqg'](getProgressDisplay,_0x7ccdeb[_0x2d86d9(0x10f)]));_0x7ccdeb['description']&&console[_0x2d86d9(0xe6)](_0x2d86d9(0x153)+_0x7ccdeb[_0x2d86d9(0xc5)]);_0x7ccdeb[_0x2d86d9(0x170)]&&console['log']('\x20\x20\x20Repository:\x20'+_0x7ccdeb['gitRepoUrl']);_0x7ccdeb[_0x2d86d9(0xf8)]&&console[_0x2d86d9(0xe6)](_0x2d86d9(0xee)+_0x7ccdeb[_0x2d86d9(0xf8)]);console['log']('\x20\x20\x20Created:\x20'+new Date(_0x7ccdeb['createdAt'])[_0x2d86d9(0x14a)]());_0x7ccdeb[_0x2d86d9(0xc7)]&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x7ccdeb[_0x2d86d9(0xc7)])[_0x2d86d9(0x14a)]());if(_0x38e956&&_0x38e956['length']>0x0){console[_0x2d86d9(0xe6)](_0x4dee53[_0x2d86d9(0x161)]);for(let _0x10a599=0x0;_0x4dee53[_0x2d86d9(0x8f)](_0x10a599,_0x38e956[_0x2d86d9(0x136)]);_0x10a599++){const _0x1a80c4=_0x38e956[_0x10a599];let _0x348ae6;if(_0x1a80c4['status']===_0x2d86d9(0x142)&&_0x1a80c4['terminalReason']===_0x4dee53['ztWUg'])_0x348ae6='✅';else{if(_0x4dee53[_0x2d86d9(0x152)](_0x1a80c4['status'],_0x2d86d9(0x15a)))_0x348ae6='🟢';else{if(_0x1a80c4['status']===_0x2d86d9(0xf9))_0x348ae6='🟠';else{if(_0x4dee53['aLQAw'](_0x1a80c4['status'],_0x2d86d9(0x16f)))_0x348ae6='🛑';else{if(_0x4dee53['ebXGf'](_0x1a80c4[_0x2d86d9(0x145)],'closed'))_0x348ae6='⛔';else _0x1a80c4[_0x2d86d9(0x145)]===_0x4dee53[_0x2d86d9(0x9a)]?_0x348ae6='⏳':_0x348ae6='⬜';}}}}const _0x45b607=_0x1a80c4['version']>0x1?'\x20(v'+_0x1a80c4[_0x2d86d9(0x8d)]+')':'',_0x323cc9=_0x4dee53['JWPRY'](_0x1a80c4['version'],0x1)&&_0x1a80c4['parentItemId']&&_0x1a80c4[_0x2d86d9(0x145)]!=='closed'&&_0x4dee53['FWHmD'](_0x1a80c4['status'],_0x4dee53[_0x2d86d9(0x84)])?_0x4dee53['kaXIg']:'';console['log'](_0x2d86d9(0x15c)+_0x4dee53[_0x2d86d9(0xca)](_0x10a599,0x1)+'.\x20'+_0x348ae6+'\x20'+_0x1a80c4['description']+_0x45b607+_0x323cc9);_0x1a80c4['status']===_0x4dee53[_0x2d86d9(0x16a)]&&_0x1a80c4[_0x2d86d9(0x103)]&&console[_0x2d86d9(0xe6)](_0x2d86d9(0xc4)+_0x1a80c4['blockedReason']);_0x4dee53['LGwxd'](_0x1a80c4['status'],_0x4dee53[_0x2d86d9(0xaa)])&&_0x1a80c4['incompleteReason']&&console['log'](_0x2d86d9(0x16d)+_0x1a80c4[_0x2d86d9(0xc6)]);if(_0x4dee53['LGwxd'](_0x1a80c4[_0x2d86d9(0x145)],_0x4dee53[_0x2d86d9(0x158)])&&_0x4dee53['aLQAw'](_0x1a80c4['terminalReason'],_0x4dee53[_0x2d86d9(0x137)]))console['log'](_0x2d86d9(0x116));else _0x4dee53['aLQAw'](_0x1a80c4[_0x2d86d9(0x145)],_0x4dee53[_0x2d86d9(0x158)])&&_0x1a80c4[_0x2d86d9(0x123)]&&console[_0x2d86d9(0xe6)](_0x2d86d9(0xd7)+_0x1a80c4[_0x2d86d9(0x123)]);}}}export async function featureCreate(_0x36debc,_0x153d88){const _0x5eebbe=_0x24dcdd,_0xfa8509={'npJMx':function(_0xd69db,_0x526d70){return _0xd69db===_0x526d70;},'bOjfU':function(_0x2ecb0b,_0x3091d6){return _0x2ecb0b(_0x3091d6);},'BaEFi':function(_0x410812){return _0x410812();},'lMFDI':function(_0x2d814c){return _0x2d814c();}},{envNames:_0x50ba60}=await getEnvNames();if(_0xfa8509[_0x5eebbe(0xa7)](_0x50ba60[_0x5eebbe(0x136)],0x0)&&!process[_0x5eebbe(0x11a)][_0x5eebbe(0x144)]){let _0x5985bb=0x0;try{_0x5985bb=(await listCloudProfiles())[_0x5eebbe(0x136)];}catch{_0x5985bb=0x1;}_0xfa8509[_0x5eebbe(0xa7)](_0x5985bb,0x0)&&console[_0x5eebbe(0x10c)]('\x0a'+_0xfa8509['bOjfU'](formatProfileRequiredMessage,_0x54412b=>bold(_0x54412b)));}const _0xea6abf=_0x153d88[_0x5eebbe(0x120)]?_0x153d88[_0x5eebbe(0x120)][_0x5eebbe(0x11f)](_0xdd1155=>_0xdd1155['trim']()):[],_0x1d722d=_0xfa8509[_0x5eebbe(0x105)](getGitRepoUrl),_0x5b4c07=_0xfa8509[_0x5eebbe(0x13a)](getGitBranch);console[_0x5eebbe(0xe6)]('\x0aCreating\x20feature\x20review...');const _0x21f60e=await createFeature({'name':_0x36debc,'description':_0x153d88[_0x5eebbe(0xc5)],'checklist':_0xea6abf,'gitRepoUrl':_0x1d722d,'gitBranch':_0x5b4c07});await setActiveFeatureId(_0x21f60e['id']),await tryStartCurrentSession(_0x21f60e['id']);const _0x55049b=process['env']['CLAUDE_SESSION_ID'];_0x55049b&&registerSession(_0x55049b,_0x21f60e['id']),console['log'](_0x5eebbe(0x8a)+_0x21f60e['id']),displayFeature(_0x21f60e,_0x21f60e['checklistItems']),console[_0x5eebbe(0xe6)](_0x5eebbe(0xbd));}export async function featureList(_0x2c9e6b){const _0xc249be=_0x24dcdd,_0x47edf1={'DQmra':function(_0x44360e){return _0x44360e();},'GRSaI':function(_0x1090fb,_0xb3bd24){return _0x1090fb(_0xb3bd24);},'OHIHN':function(_0x439ef7,_0x390feb){return _0x439ef7===_0x390feb;},'zsoyv':_0xc249be(0xd8),'VxRoC':function(_0x3074d,_0x3f9de4){return _0x3074d>_0x3f9de4;},'yCwlM':function(_0x7aaf16,_0x70d1f7){return _0x7aaf16+_0x70d1f7;},'Ndror':function(_0xa8913c,_0x2fd960){return _0xa8913c<_0x2fd960;}},_0x3b478f={'limit':_0x2c9e6b['limit']??0xa,'offset':_0x2c9e6b['offset']??0x0,'includeDeleted':_0x2c9e6b[_0xc249be(0xaf)]};_0x2c9e6b['currentBranch']&&(_0x3b478f['gitRepoUrl']=_0x47edf1['DQmra'](getGitRepoUrl),_0x3b478f[_0xc249be(0xf8)]=_0x47edf1[_0xc249be(0x113)](getGitBranch));const _0xf38442=await _0x47edf1['GRSaI'](listFeatures,_0x3b478f);if(_0x47edf1['OHIHN'](_0xf38442['items'][_0xc249be(0x136)],0x0)){console['log'](_0x47edf1[_0xc249be(0xb3)]);return;}const _0x1ac0e0=_0x47edf1[_0xc249be(0x8c)](_0xf38442['totalCount'],_0xf38442[_0xc249be(0x107)]['length'])?'Showing\x20'+_0xf38442['items'][_0xc249be(0x136)]+_0xc249be(0x94)+_0xf38442[_0xc249be(0x169)]:_0xf38442[_0xc249be(0x169)]+'\x20feature\x20review(s)\x20found';console[_0xc249be(0xe6)]('\x0a'+_0x1ac0e0+':\x0a');for(const _0x507f73 of _0xf38442['items']){const _0x260b8c='3|2|0|4|5|1'[_0xc249be(0xb2)]('|');let _0x230feb=0x0;while(!![]){switch(_0x260b8c[_0x230feb++]){case'0':_0x507f73[_0xc249be(0x10f)]&&console[_0xc249be(0xe6)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x507f73['stats']));continue;case'1':console[_0xc249be(0xe6)]('');continue;case'2':console['log'](_0xc249be(0x14b)+_0x507f73['id']);continue;case'3':console['log'](''+_0x507f73[_0xc249be(0x99)]);continue;case'4':_0x507f73[_0xc249be(0xf8)]&&console[_0xc249be(0xe6)]('\x20\x20\x20Branch:\x20'+_0x507f73[_0xc249be(0xf8)]);continue;case'5':console['log'](_0xc249be(0x15f)+new Date(_0x507f73['createdAt'])['toLocaleDateString']());continue;}break;}}const _0x176b55=_0x3b478f[_0xc249be(0x102)]??0xa,_0x6373f2=_0x47edf1[_0xc249be(0x10e)](_0x3b478f[_0xc249be(0x89)]??0x0,_0xf38442[_0xc249be(0x107)][_0xc249be(0x136)]);if(_0x47edf1['Ndror'](_0x6373f2,_0xf38442[_0xc249be(0x169)])){const _0x321c6f=_0x176b55!==0xa?_0xc249be(0x146)+_0x176b55:'',_0x14fc20=_0x2c9e6b['currentBranch']?_0xc249be(0xae):'',_0x4b6d1b=_0x2c9e6b[_0xc249be(0xaf)]?_0xc249be(0xdb):'';console[_0xc249be(0xe6)](_0xc249be(0x11c)+_0x6373f2+_0x321c6f+_0x14fc20+_0x4b6d1b);}}export async function featureShow(_0x5f03d){const _0x3a7f96=_0x24dcdd,_0x5159ad={'CDHUp':function(_0x294b91){return _0x294b91();},'eHEuI':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Xxbci':function(_0x1436e3,_0xbc98f4){return _0x1436e3(_0xbc98f4);}},_0xe9ab05=_0x5f03d||await _0x5159ad['CDHUp'](getActiveFeatureId);if(!_0xe9ab05)throw new Error(_0x5159ad['eHEuI']);const _0x5f1e69=await _0x5159ad['Xxbci'](getFeature,_0xe9ab05);displayFeature(_0x5f1e69,_0x5f1e69[_0x3a7f96(0x128)]);}export async function featureResume(_0x53ad01){const _0x46b26b=_0x24dcdd,_0x295b0d={'nOJzQ':function(_0x4ecf94,_0x47afd3){return _0x4ecf94(_0x47afd3);},'slizv':function(_0x2f8c0a){return _0x2f8c0a();},'WOkcO':function(_0x3eb9a3,_0xb2324d,_0x2b99b4){return _0x3eb9a3(_0xb2324d,_0x2b99b4);},'sAdDq':function(_0x5c5665,_0x4e1a51){return _0x5c5665(_0x4e1a51);},'FxsGp':function(_0x198480){return _0x198480();},'AMOLI':'Not\x20in\x20a\x20git\x20repository.','BgXSt':function(_0x4e45e9,_0x1f45c4){return _0x4e45e9||_0x1f45c4;},'FceAE':'any','MpeRQ':_0x46b26b(0x118),'TzyAL':'list','CWxFt':function(_0x1f4d9e,_0x3d462b){return _0x1f4d9e!==_0x3d462b;}};if(_0x53ad01){const _0xed8c50=await _0x295b0d['nOJzQ'](getFeature,_0x53ad01);await setActiveFeatureId(_0xed8c50['id']);const _0x528ef3=_0x295b0d['slizv'](getGitBranch);_0x528ef3&&_0x528ef3!==_0xed8c50[_0x46b26b(0xf8)]&&(await updateFeature(_0xed8c50['id'],{'gitBranch':_0x528ef3}),console['log'](_0x46b26b(0xbc)+_0x528ef3));console['log'](_0x46b26b(0x155)+_0xed8c50['name']+'\x20('+_0xed8c50['id']+')'),await tryStartCurrentSession(_0xed8c50['id']);const _0x2469f9=process[_0x46b26b(0x11a)]['CLAUDE_SESSION_ID'];_0x2469f9&&registerSession(_0x2469f9,_0xed8c50['id']);_0x295b0d['WOkcO'](displayFeature,_0xed8c50,_0xed8c50[_0x46b26b(0x128)]),await _0x295b0d[_0x46b26b(0x129)](printFeedbackNudge,_0xed8c50['id']);return;}const _0x4975b4=getGitRepoUrl(),_0x220981=_0x295b0d['FxsGp'](getGitBranch);if(!_0x4975b4&&!_0x220981)throw new Error(_0x295b0d['AMOLI']);console['log'](_0x46b26b(0xfc)+_0x295b0d[_0x46b26b(0x117)](_0x4975b4,_0x295b0d[_0x46b26b(0xe7)])+'\x20/\x20'+(_0x220981||_0x295b0d[_0x46b26b(0xe7)])+_0x46b26b(0xcc));const _0x285d76=await listFeatures({'gitRepoUrl':_0x4975b4,'gitBranch':_0x220981}),_0x455045=_0x285d76[_0x46b26b(0x107)][_0x46b26b(0xd3)](_0xd7a1b5=>_0xd7a1b5['status']?_0xd7a1b5[_0x46b26b(0x145)]!==_0x46b26b(0x15a):!_0xd7a1b5['completedAt']);if(_0x455045['length']===0x0){console[_0x46b26b(0xe6)](_0x46b26b(0x9e)),console['log'](_0x46b26b(0x130));return;}let _0x38ade1;if(_0x455045['length']===0x1)_0x38ade1=_0x455045[0x0];else{const _0x171c8f=process[_0x46b26b(0xe3)][_0x46b26b(0xb7)]&&process[_0x46b26b(0xd1)]['isTTY'];if(!_0x171c8f){console['log']('\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:');for(const _0x569a55 of _0x455045){console[_0x46b26b(0xe6)]('\x20\x20'+_0x569a55[_0x46b26b(0x99)]),console['log'](_0x46b26b(0x131)+_0x569a55['id']),_0x569a55['stats']&&console['log']('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x569a55[_0x46b26b(0x10f)])),_0x569a55['gitBranch']&&console[_0x46b26b(0xe6)]('\x20\x20\x20\x20\x20Branch:\x20'+_0x569a55['gitBranch']);}throw new Error(_0x295b0d['MpeRQ']);}const {selected:_0x39e913}=await _0x148d44['prompt']([{'type':_0x295b0d['TzyAL'],'name':_0x46b26b(0xeb),'message':_0x46b26b(0xcd),'choices':_0x455045[_0x46b26b(0x11f)](_0x3449ea=>({'name':_0x3449ea['name']+'\x20('+_0x3449ea['id']+')','value':_0x3449ea['id']}))}]);_0x38ade1=_0x455045[_0x46b26b(0xa6)](_0x3a96a5=>_0x3a96a5['id']===_0x39e913);}await _0x295b0d['nOJzQ'](setActiveFeatureId,_0x38ade1['id']);_0x220981&&_0x295b0d['CWxFt'](_0x220981,_0x38ade1['gitBranch'])&&(await updateFeature(_0x38ade1['id'],{'gitBranch':_0x220981}),console[_0x46b26b(0xe6)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x220981));console['log'](_0x46b26b(0x155)+_0x38ade1[_0x46b26b(0x99)]+'\x20('+_0x38ade1['id']+')'),await tryStartCurrentSession(_0x38ade1['id']);const _0x412e15=await getFeature(_0x38ade1['id']),_0x3f0111=process['env'][_0x46b26b(0x12f)];_0x3f0111&&registerSession(_0x3f0111,_0x412e15['id']),displayFeature(_0x412e15,_0x412e15[_0x46b26b(0x128)]),await printFeedbackNudge(_0x412e15['id']);}async function printFeedbackNudge(_0x4ecd35){const _0x333557=_0x24dcdd,_0xfb62cc={'CZoXh':function(_0x35e931,_0x4109df){return _0x35e931(_0x4109df);},'RJtzK':function(_0x26daed,_0x355383,_0xf4569d){return _0x26daed(_0x355383,_0xf4569d);},'WKxle':function(_0x463e68,_0x7db708){return _0x463e68>_0x7db708;}};try{const {items:_0x3c409b}=await _0xfb62cc['CZoXh'](getActionItems,_0x4ecd35);let _0x26b853=0x0,_0x4345bf=0x0;for(const _0x54c578 of _0x3c409b){const _0x11c16a=await _0xfb62cc[_0x333557(0x12b)](getItemFeedback,_0x4ecd35,_0x54c578['id']);_0xfb62cc[_0x333557(0x168)](_0x11c16a['unaddressedComments']['length'],0x0)&&(_0x26b853+=_0x11c16a['unaddressedComments']['length'],_0x4345bf++);}_0x26b853>0x0&&(console[_0x333557(0xe6)]('\x0a⚠️\x20\x20'+_0x26b853+_0x333557(0xbf)+_0x4345bf+_0x333557(0xfb)),console['log'](_0x333557(0x10a)));}catch{}}async function tryStartCurrentSession(_0x1006d6){const _0x372da0=_0x24dcdd;try{const {sessions:_0x54375d}=await listFeatureSessions(_0x1006d6),_0xaad3b2=_0x54375d['find'](_0x385e29=>_0x385e29['status']===_0x372da0(0x15b));_0xaad3b2&&(await startSession(_0x1006d6,_0xaad3b2['id']),console[_0x372da0(0xe6)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0xaad3b2[_0x372da0(0x13b)]));}catch{}}export async function featureReport(_0x324ee1,_0x4dbd7f){const _0x74bc03=_0x24dcdd,_0x4ab2bb={'OwMve':function(_0x36bd81){return _0x36bd81();},'RIyUC':function(_0x579e44){return _0x579e44();},'kInUg':'reports','lVHEI':function(_0xb68131,_0x5e3634,_0x518f4f){return _0xb68131(_0x5e3634,_0x518f4f);},'onInw':'utf-8'},_0x4f7c60=_0x324ee1||await _0x4ab2bb[_0x74bc03(0x108)](getActiveFeatureId);if(!_0x4f7c60)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console[_0x74bc03(0xe6)]('\x0aGenerating\x20report...');const _0x35600c=await getFeatureReportMarkdown(_0x4f7c60,{'style':_0x4dbd7f[_0x74bc03(0x132)]}),_0x1479a2=_0x4dbd7f['output']||join(_0x4ab2bb['RIyUC'](getRangerDir),_0x4ab2bb[_0x74bc03(0x157)],_0x4f7c60+_0x74bc03(0x14c)),_0x38e4ef=join(_0x1479a2,'..');!existsSync(_0x38e4ef)&&await _0x4ab2bb['lVHEI'](mkdir,_0x38e4ef,{'recursive':!![]}),await writeFile(_0x1479a2,_0x35600c,_0x4ab2bb['onInw']),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x1479a2);}function getScenarioResult(_0x4a3f19){const _0x4ee7b5=_0x24dcdd,_0x514c7c={'xdOMB':function(_0x5ed76b,_0x48d54c){return _0x5ed76b===_0x48d54c;},'HenNd':_0x4ee7b5(0x114)};if(_0x514c7c[_0x4ee7b5(0xb0)](_0x4a3f19[_0x4ee7b5(0x145)],_0x4ee7b5(0x142)))return _0x4a3f19['terminalReason']??_0x4ee7b5(0x142);if(_0x4a3f19[_0x4ee7b5(0x145)]===_0x514c7c['HenNd'])return _0x4ee7b5(0x9f);return _0x4a3f19['status'];}function getScenarioRationale(_0xb0e6c8,_0x4f78bb){const _0x158915=_0x24dcdd,_0x2dfd6e=_0x158915(0x10d)[_0x158915(0xb2)]('|');let _0xca3456=0x0;while(!![]){switch(_0x2dfd6e[_0xca3456++]){case'0':if(_0xb0e6c8['canceledReason'])return _0xb0e6c8['canceledReason'];continue;case'1':if(_0x4f78bb)return _0x4f78bb;continue;case'2':if(_0xb0e6c8[_0x158915(0xc6)])return _0xb0e6c8['incompleteReason'];continue;case'3':if(_0xb0e6c8[_0x158915(0xf5)])return _0xb0e6c8['notes'];continue;case'4':return null;case'5':if(_0xb0e6c8['blockedReason'])return _0xb0e6c8[_0x158915(0x103)];continue;}break;}}export async function featureReportPrDescription(_0x239005,_0xe322db){const _0x27f743=_0x24dcdd,_0x5c5d7d={'Hbzig':_0x27f743(0xe1),'BDnOf':function(_0x368e5c,_0x25a1ec){return _0x368e5c(_0x25a1ec);},'LUENb':function(_0x33b0e5,_0x16014c){return _0x33b0e5+_0x16014c;},'EhhcR':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0x522fda=_0x239005||await getActiveFeatureId();if(!_0x522fda)throw new Error(_0x5c5d7d['Hbzig']);const _0x54eba7=await _0x5c5d7d[_0x27f743(0xf2)](getFeature,_0x522fda),_0x315583=_0x54eba7['checklistItems']||[],_0x379d43=getCurrentSessionItems(_0x54eba7,_0x315583);_0x379d43[_0x27f743(0x136)]===0x0&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0x5bf227=_0xe322db[_0x27f743(0x95)]??[],_0x374eeb=_0x5bf227[_0x27f743(0xd3)](_0x46be5b=>!Number[_0x27f743(0xa4)](_0x46be5b)||_0x46be5b<0x1||_0x46be5b>_0x379d43[_0x27f743(0x136)]);if(_0x374eeb['length']>0x0){console['error'](_0x27f743(0x81)+_0x374eeb[_0x27f743(0x96)](',\x20')),console[_0x27f743(0xe6)]('\x0aAvailable\x20scenarios:');for(let _0xba5848=0x0;_0xba5848<_0x379d43['length'];_0xba5848++){console['log']('\x20\x20'+_0x5c5d7d[_0x27f743(0xa5)](_0xba5848,0x1)+'.\x20'+_0x379d43[_0xba5848][_0x27f743(0xc5)]);}process['exit'](0x1);}const _0x55ece3=new Set(_0x5bf227[_0x27f743(0x11f)](_0xd31fb8=>_0xd31fb8-0x1)),_0x5267b9=_0x379d43[_0x27f743(0xd3)]((_0x1e8a48,_0x3b6585)=>!_0x55ece3['has'](_0x3b6585));_0x5267b9['length']===0x0&&(console['error'](_0x5c5d7d[_0x27f743(0x92)]),process['exit'](0x1));if(_0xe322db[_0x27f743(0x88)])await outputJsonReport(_0x522fda,_0x54eba7,_0x5267b9);else{const _0x3df7b0=await getFeatureReportMarkdown(_0x522fda,{'itemIds':_0x5267b9[_0x27f743(0x11f)](_0x59eaa0=>_0x59eaa0['id'])});process[_0x27f743(0xd1)][_0x27f743(0xda)](_0x3df7b0['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x1de496,_0x54d1bd,_0x3fef54){const _0x542763=_0x24dcdd,_0x7c7f03={'VMFgB':function(_0x4eaa0a,_0x3a3f31){return _0x4eaa0a(_0x3a3f31);},'TcLRg':function(_0x7e0419,_0x3dcaa5,_0x4a41e1){return _0x7e0419(_0x3dcaa5,_0x4a41e1);},'PsPTw':function(_0x459aa2){return _0x459aa2();},'bAqOU':function(_0x322372,_0x37df44){return _0x322372(_0x37df44);},'HIWbc':function(_0x55d468,_0x1b2f91){return _0x55d468+_0x1b2f91;}},_0xdbf7d8=_0x7c7f03[_0x542763(0xb4)](getApiBaseUrl),_0x2de9e0=await _0x7c7f03[_0x542763(0xa8)](getFeatureReport,_0x1de496),_0x2a0148=new Map(_0x2de9e0[_0x542763(0x128)]['map'](_0x180acd=>[_0x180acd['id'],_0x180acd])),_0x524006=await Promise['all'](_0x3fef54[_0x542763(0x11f)](async _0x1cedf8=>{const _0x27216b=_0x542763,_0x20c21e=_0x2a0148[_0x27216b(0x8e)](_0x1cedf8['id']),_0x1051a3=_0x20c21e?.['linkedSession']??null;let _0x1c8ef0=[];if(_0x1cedf8[_0x27216b(0xab)])try{const {steps:_0x311be1}=await _0x7c7f03[_0x27216b(0xc2)](getBrowserSessionSteps,_0x1cedf8['browserSessionId']);_0x311be1['length']>0x0&&(_0x1c8ef0=_0x311be1['map'](_0x29a0ff=>{const _0x4b9319=_0x27216b,_0x196d63=_0x29a0ff[_0x4b9319(0xd5)]['find'](_0x2f382b=>_0x2f382b[_0x4b9319(0x100)]===_0x4b9319(0xcf)&&_0x2f382b[_0x4b9319(0x11b)]==='after')??_0x29a0ff[_0x4b9319(0xd5)][_0x4b9319(0xa6)](_0x5828e9=>_0x5828e9['assetType']==='screenshot');let _0x215c33=null,_0x4d444a=null;if(_0x196d63){const _0x52201b=_0x196d63[_0x4b9319(0x83)][_0x4b9319(0xc0)]['split']('/')['pop']();_0x215c33=_0xdbf7d8+'/api/v1/mcp/browser-sessions/'+_0x1cedf8['browserSessionId']+'/artifacts/'+_0x52201b,_0x52201b&&(_0x4d444a=_0x52201b['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x4b9319(0x91)](/[-_]/g,'\x20'));}return{'description':_0x4d444a||_0x29a0ff['description']||_0x29a0ff[_0x4b9319(0xb5)]||_0x4b9319(0x139)+_0x29a0ff[_0x4b9319(0x127)],'screenshot':_0x215c33,'is_key_step':_0x29a0ff['isKeyStep']};}));}catch{}return _0x1c8ef0[_0x27216b(0x136)]===0x0&&_0x1051a3?.[_0x27216b(0xb8)]&&(_0x1c8ef0=_0x1051a3[_0x27216b(0xb8)][_0x27216b(0x11f)]((_0x2f98e1,_0x2519d0)=>({'description':_0x27216b(0xfa)+(_0x2519d0+0x1),'screenshot':_0x2f98e1,'is_key_step':![]}))),{'description':_0x1cedf8[_0x27216b(0xc5)],'result':getScenarioResult(_0x1cedf8),'rationale':_0x7c7f03['TcLRg'](getScenarioRationale,_0x1cedf8,_0x1051a3?.[_0x27216b(0xb1)]),'steps':_0x1c8ef0};})),_0x166ffc={'url':_0x54d1bd['dashboardUrl'],'scenarios':_0x524006};process[_0x542763(0xd1)][_0x542763(0xda)](_0x7c7f03[_0x542763(0x14e)](JSON['stringify'](_0x166ffc,null,0x2),'\x0a'));}export async function featureConcludeSession(_0x4459c0){const _0x148154=_0x24dcdd,_0x214f79={'VhNmK':function(_0x55e246){return _0x55e246();},'wsjHR':_0x148154(0x9c),'tbDiU':function(_0x4eb659,_0x396aec){return _0x4eb659(_0x396aec);},'oAqXd':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','PYsZn':function(_0x38c63a,_0x368a3e){return _0x38c63a===_0x368a3e;},'ulwBY':'completed','ZZZjP':'\x0a✅\x20Session\x20is\x20already\x20completed.'},_0x40fda6=_0x4459c0||await _0x214f79['VhNmK'](getActiveFeatureId);if(!_0x40fda6)throw new Error(_0x214f79[_0x148154(0x121)]);const _0x1cb1fd=await _0x214f79[_0x148154(0xe4)](getFeature,_0x40fda6);if(!_0x1cb1fd[_0x148154(0x13e)])throw new Error(_0x214f79[_0x148154(0xdd)]);const {sessions:_0x1fc0c9}=await listFeatureSessions(_0x40fda6),_0x3af666=_0x1fc0c9[_0x148154(0xa6)](_0x556461=>_0x556461['id']===_0x1cb1fd[_0x148154(0x13e)]);if(!_0x3af666)throw new Error('Current\x20session\x20not\x20found.');if(_0x214f79['PYsZn'](_0x3af666['status'],_0x214f79[_0x148154(0x15d)])){console[_0x148154(0xe6)](_0x214f79[_0x148154(0x13c)]);return;}if(_0x3af666['status']!=='in_progress')throw new Error(_0x148154(0xd2)+_0x3af666[_0x148154(0x145)]);console[_0x148154(0xe6)]('\x0aConcluding\x20session...'),await concludeSession(_0x40fda6,_0x1cb1fd['currentSessionId']),console[_0x148154(0xe6)](_0x148154(0xa0)+_0x3af666[_0x148154(0x13b)]+_0x148154(0x104)),console[_0x148154(0xe6)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x30c119){const _0x2de708=_0x24dcdd,_0x1e50a1={'OitDC':function(_0x2e99da){return _0x2e99da();},'hoyjm':function(_0x74fde4,_0xc00f3e){return _0x74fde4===_0xc00f3e;}},_0x307dfd=_0x30c119||await _0x1e50a1[_0x2de708(0xc3)](getActiveFeatureId);if(!_0x307dfd)throw new Error(_0x2de708(0xe1));const _0x351b82=await getFeature(_0x307dfd);console[_0x2de708(0xe6)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x351b82[_0x2de708(0x99)]+'\x0a');const {sessions:_0x301522}=await listFeatureSessions(_0x307dfd);if(_0x301522[_0x2de708(0x136)]===0x0){console[_0x2de708(0xe6)](_0x2de708(0xd9));return;}for(const _0x1dfc12 of _0x301522){const _0x5c5dbf=_0x1dfc12['status']===_0x2de708(0x9d)?'✅':_0x1e50a1[_0x2de708(0xf1)](_0x1dfc12['status'],_0x2de708(0x9f))?'🔄':'▶️';console['log'](_0x5c5dbf+_0x2de708(0xc9)+_0x1dfc12['iteration']+'\x20('+_0x1dfc12['id']+')'),console['log'](_0x2de708(0x164)+_0x1dfc12['status']),console['log'](_0x2de708(0x15f)+new Date(_0x1dfc12[_0x2de708(0x12d)])['toLocaleString']()),_0x1dfc12['completedAt']&&console['log'](_0x2de708(0x90)+new Date(_0x1dfc12['completedAt'])['toLocaleString']()),console[_0x2de708(0xe6)]('');}}export async function featureAddScenario(_0xa6be61,_0x2c20ad){const _0x1194d1=_0x24dcdd,_0x163a75={'slAtW':function(_0x48eb9a,_0x285bd3){return _0x48eb9a(_0x285bd3);}},_0xe20d5a=_0x2c20ad||await getActiveFeatureId();if(!_0xe20d5a)throw new Error(_0x1194d1(0x9c));const _0x2cb5a3=await _0x163a75[_0x1194d1(0xea)](getFeature,_0xe20d5a);if(_0x2cb5a3[_0x1194d1(0x151)]&&!_0x2cb5a3[_0x1194d1(0x151)][_0x1194d1(0xef)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x2cb5a3['dashboardUrl']);await createChecklistItem(_0xe20d5a,_0xa6be61);const _0x26989c=await getFeature(_0xe20d5a);console[_0x1194d1(0xe6)](_0x1194d1(0x12a)),displayFeature(_0x26989c,_0x26989c[_0x1194d1(0x128)]);}export async function featureEditScenario(_0x33ceef,_0x2a1d29){const _0x5dab0d=_0x24dcdd,_0x5e6675={'pWxwP':function(_0x2c4639){return _0x2c4639();},'SgTtO':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','yQHgK':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','ruLLS':'\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','QBCQl':_0x5dab0d(0xdf),'kDaRC':function(_0x19b074,_0x4534ae){return _0x19b074===_0x4534ae;},'iChog':function(_0x5a50bb,_0x2d8795){return _0x5a50bb===_0x2d8795;},'lVaUJ':'\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','gHYXm':_0x5dab0d(0x150),'VeWxn':function(_0x275074,_0x65504b){return _0x275074<_0x65504b;},'VUfIN':function(_0x5126bc,_0x3515d6){return _0x5126bc-_0x3515d6;},'ZueFJ':function(_0x302cd1,_0xb34942){return _0x302cd1>=_0xb34942;},'lkdGz':function(_0x56499b,_0x295682,_0x8d802e,_0x3f39cc){return _0x56499b(_0x295682,_0x8d802e,_0x3f39cc);}},_0x5ea266=_0x2a1d29['id']||await _0x5e6675['pWxwP'](getActiveFeatureId);!_0x5ea266&&(console['error'](_0x5e6675[_0x5dab0d(0x125)]),console[_0x5dab0d(0xf7)](_0x5e6675[_0x5dab0d(0x133)]),process[_0x5dab0d(0xc1)](0x1));const _0x39e54f=await getFeature(_0x5ea266);_0x39e54f['latestReview']&&!_0x39e54f[_0x5dab0d(0x151)][_0x5dab0d(0xef)]&&(console['error'](_0x5e6675['ruLLS']),console[_0x5dab0d(0xf7)](_0x5e6675[_0x5dab0d(0xa1)]),console[_0x5dab0d(0xf7)]('\x20\x20'+_0x39e54f[_0x5dab0d(0x112)]),process['exit'](0x1));const _0x295584=_0x39e54f[_0x5dab0d(0x128)]||[];_0x5e6675[_0x5dab0d(0xcb)](_0x295584[_0x5dab0d(0x136)],0x0)&&(console[_0x5dab0d(0xf7)](_0x5dab0d(0x111)),process[_0x5dab0d(0xc1)](0x1));if(_0x5e6675[_0x5dab0d(0xb9)](_0x2a1d29['scenario'],undefined)){console[_0x5dab0d(0xf7)](_0x5e6675[_0x5dab0d(0xf4)]),console['log'](_0x5e6675['gHYXm']);for(let _0x107b9d=0x0;_0x5e6675['VeWxn'](_0x107b9d,_0x295584[_0x5dab0d(0x136)]);_0x107b9d++){console['log']('\x20\x20'+(_0x107b9d+0x1)+'.\x20'+_0x295584[_0x107b9d]['description']);}process['exit'](0x1);}const _0x1fe136=_0x5e6675[_0x5dab0d(0xc8)](_0x2a1d29['scenario'],0x1);if(_0x1fe136<0x0||_0x5e6675['ZueFJ'](_0x1fe136,_0x295584['length'])){console['error'](_0x5dab0d(0x156)+_0x2a1d29[_0x5dab0d(0xde)]+_0x5dab0d(0x166)+_0x295584[_0x5dab0d(0x136)]+_0x5dab0d(0xb6)),console['log']('\x0aAvailable\x20scenarios:');for(let _0x32ec73=0x0;_0x32ec73<_0x295584['length'];_0x32ec73++){console['log']('\x20\x20'+(_0x32ec73+0x1)+'.\x20'+_0x295584[_0x32ec73]['description']);}process['exit'](0x1);}const _0x2e72b1=_0x295584[_0x1fe136];await _0x5e6675[_0x5dab0d(0xe0)](updateChecklistItem,_0x5ea266,_0x2e72b1['id'],{'description':_0x33ceef});const _0x3be4a0=await getFeature(_0x5ea266);console['log'](_0x5dab0d(0xed)),displayFeature(_0x3be4a0,_0x3be4a0[_0x5dab0d(0x128)]);}async function downloadFeedbackImage(_0x20358f,_0x11a5c5){const _0x2b7d88=_0x24dcdd,_0x435391={'tIhGi':function(_0x22eeed,_0x3a96ea,_0x5c1007){return _0x22eeed(_0x3a96ea,_0x5c1007);},'pufkA':function(_0x3debc7,_0x2f9b5a){return _0x3debc7(_0x2f9b5a);}};try{const _0x1ad6d3=_0x435391[_0x2b7d88(0x110)](join,getRangerDir(),_0x2b7d88(0xec));await mkdir(_0x1ad6d3,{'recursive':!![]});const _0x3d59b3=_0x435391[_0x2b7d88(0x110)](join,_0x1ad6d3,'comment_'+_0x11a5c5+'.png'),_0x2aa887=await _0x435391['pufkA'](fetch,_0x20358f);if(!_0x2aa887['ok'])return null;const _0x48da6f=Buffer['from'](await _0x2aa887[_0x2b7d88(0xe5)]());return await writeFile(_0x3d59b3,_0x48da6f),_0x3d59b3;}catch{return null;}}export async function featureGetReview(_0x58b2e6){const _0x13a1c0=_0x24dcdd,_0x2b75a0={'ujkRm':function(_0x8c4c9d){return _0x8c4c9d();},'RwZPN':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','eMBMM':function(_0x2eeb5f,_0x52254b){return _0x2eeb5f(_0x52254b);},'eFQRQ':function(_0x50f028,_0x1f771e){return _0x50f028(_0x1f771e);},'onIMr':function(_0x4acd2d,_0x2dc34d){return _0x4acd2d===_0x2dc34d;},'iGqGL':'No\x20scenarios\x20found.','daWEJ':function(_0x3b58ca,_0x53dac5){return _0x3b58ca<_0x53dac5;},'tkcuc':'numeric','OwrmP':_0x13a1c0(0x12e)},_0x40d90b=_0x58b2e6||await _0x2b75a0[_0x13a1c0(0x85)](getActiveFeatureId);if(!_0x40d90b)throw new Error(_0x2b75a0['RwZPN']);const _0x4c13a5=await _0x2b75a0['eMBMM'](getFeature,_0x40d90b),{items:_0x26b442}=await _0x2b75a0['eFQRQ'](getActionItems,_0x40d90b);console['log'](_0x13a1c0(0x163)+_0x4c13a5[_0x13a1c0(0x99)]+'\x20('+_0x4c13a5['id']+')\x0a');if(_0x2b75a0[_0x13a1c0(0x141)](_0x26b442['length'],0x0)){console['log'](_0x2b75a0['iGqGL']);return;}for(let _0x784037=0x0;_0x2b75a0[_0x13a1c0(0xdc)](_0x784037,_0x26b442[_0x13a1c0(0x136)]);_0x784037++){const _0xa04b17=_0x26b442[_0x784037],_0x2b832e=_0xa04b17['version']>0x1?_0x13a1c0(0x148)+_0xa04b17[_0x13a1c0(0x8d)]+')':'',_0xb0952e=await getItemFeedback(_0x40d90b,_0xa04b17['id']);if(_0xb0952e[_0x13a1c0(0x134)]['length']>0x0){console[_0x13a1c0(0xe6)](_0x13a1c0(0x87)+(_0x784037+0x1)+_0x13a1c0(0x8b)+_0xa04b17['description']+'\x22'+_0x2b832e+'\x20—\x20'+_0xb0952e['unaddressedComments']['length']+'\x20unaddressed\x20comment(s)');for(const _0x277b28 of _0xb0952e[_0x13a1c0(0x134)]){const _0x373701=new Date(_0x277b28[_0x13a1c0(0x12d)])['toLocaleDateString'](_0x13a1c0(0x15e),{'month':'short','day':_0x2b75a0['tkcuc']}),_0x405983=_0x277b28[_0x13a1c0(0x93)]||_0x277b28[_0x13a1c0(0x124)]||'Unknown';console[_0x13a1c0(0xe6)]('\x20\x20💬\x20'+_0x405983+'\x20('+_0x373701+'):\x20\x22'+_0x277b28[_0x13a1c0(0x9b)]+'\x22');if(_0x277b28[_0x13a1c0(0x109)]){const _0x98a9de=await downloadFeedbackImage(_0x277b28['assetUrl'],_0x277b28['id']);_0x98a9de&&console[_0x13a1c0(0xe6)](_0x13a1c0(0xbb)+_0x98a9de);}if(_0x277b28['domRef']){const _0x4f73b2=_0x277b28['domRef'][_0x13a1c0(0x86)]['split'](_0x13a1c0(0x143))[_0x13a1c0(0xba)]()?.[_0x13a1c0(0xb2)](':')[0x0]||_0x2b75a0['OwrmP'],_0x16e81e=_0x277b28[_0x13a1c0(0x165)][_0x13a1c0(0x119)]?'\x20\x22'+_0x277b28['domRef'][_0x13a1c0(0x119)]['slice'](0x0,0x3c)+'\x22':'';console[_0x13a1c0(0xe6)](_0x13a1c0(0xce)+_0x4f73b2+'>'+_0x16e81e),console[_0x13a1c0(0xe6)](_0x13a1c0(0xe2)+_0x277b28[_0x13a1c0(0x165)]['selector']);}else{if(_0x277b28['spatial']){const _0xf12c24=_0x277b28[_0x13a1c0(0xa3)][_0x13a1c0(0xad)];_0x2b75a0[_0x13a1c0(0x141)](_0x277b28['spatial'][_0x13a1c0(0x16b)],'point')&&_0xf12c24[_0x13a1c0(0x136)]>=0x2?console[_0x13a1c0(0xe6)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0xf12c24[0x0][_0x13a1c0(0x16c)](0x2)+',\x20'+_0xf12c24[0x1]['toFixed'](0x2)+')'):console['log'](_0x13a1c0(0x11e)+_0x277b28[_0x13a1c0(0xa3)][_0x13a1c0(0x16b)]+'\x20at\x20['+_0xf12c24['map'](_0x4b9ba9=>_0x4b9ba9['toFixed'](0x2))[_0x13a1c0(0x96)](',\x20')+']');}}}if(_0xb0952e['canonicalFlow']){console['log']('\x20\x20Expected\x20flow:');for(const _0x11488b of _0xb0952e[_0x13a1c0(0x14f)][_0x13a1c0(0xb2)]('\x0a')){console[_0x13a1c0(0xe6)](_0x13a1c0(0xe9)+_0x11488b);}}}else console[_0x13a1c0(0xe6)](_0x13a1c0(0x87)+(_0x784037+0x1)+_0x13a1c0(0x8b)+_0xa04b17['description']+'\x22'+_0x2b832e+_0x13a1c0(0x135)),console[_0x13a1c0(0xe6)](_0x13a1c0(0x149));console[_0x13a1c0(0xe6)]('');}}export async function featureDelete(_0x2eb7ac){const _0x35549f=_0x24dcdd,_0x244025={'Qbwyv':_0x35549f(0x9c),'BOelf':function(_0x1a2389,_0x37a4b6){return _0x1a2389(_0x37a4b6);},'caKvG':function(_0x5b0347,_0x529f8f){return _0x5b0347+_0x529f8f;},'qCIwa':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x5cb0d2=_0x2eb7ac||await getActiveFeatureId();if(!_0x5cb0d2)throw new Error(_0x244025['Qbwyv']);const _0x43d430=await _0x244025['BOelf'](getFeature,_0x5cb0d2);await softDeleteFeature(_0x5cb0d2),console[_0x35549f(0xe6)](_0x35549f(0x162)+_0x43d430[_0x35549f(0x99)]+'\x20('+_0x5cb0d2+')'),console['log'](_0x244025['caKvG'](_0x244025['qCIwa'],_0x5cb0d2));}export async function featureRestore(_0x27daf9){const _0x31f2f6=_0x24dcdd,_0x39a65a={'vSrFu':function(_0x249ee1,_0x2bbb55){return _0x249ee1(_0x2bbb55);},'IXyuM':function(_0x292ca8,_0x5e83cf){return _0x292ca8(_0x5e83cf);}};await _0x39a65a[_0x31f2f6(0x140)](restoreFeature,_0x27daf9);const _0x176473=await _0x39a65a['IXyuM'](getFeature,_0x27daf9);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x176473['name']+'\x20('+_0x27daf9+')'),displayFeature(_0x176473,_0x176473[_0x31f2f6(0x128)]);}
@@ -1 +1 @@
1
- (function(_0x460b8a,_0x16c6d8){const _0x484704=_0x2c79,_0x618378=_0x460b8a();while(!![]){try{const _0x3252a6=-parseInt(_0x484704(0x7e))/0x1*(-parseInt(_0x484704(0x7c))/0x2)+parseInt(_0x484704(0x78))/0x3*(parseInt(_0x484704(0x75))/0x4)+parseInt(_0x484704(0x7b))/0x5*(-parseInt(_0x484704(0x79))/0x6)+parseInt(_0x484704(0x7a))/0x7+-parseInt(_0x484704(0x6d))/0x8+parseInt(_0x484704(0x7f))/0x9+-parseInt(_0x484704(0x74))/0xa;if(_0x3252a6===_0x16c6d8)break;else _0x618378['push'](_0x618378['shift']());}catch(_0x4d80ca){_0x618378['push'](_0x618378['shift']());}}}(_0x4700,0x1e26f));function _0x2c79(_0x2b45b2,_0x5170d3){_0x2b45b2=_0x2b45b2-0x6d;const _0x4700cb=_0x4700();let _0x2c79c9=_0x4700cb[_0x2b45b2];return _0x2c79c9;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x4700(){const _0x48c848=['Unknown\x20hook:\x20','SIGTERM','103053MJDCdt','6WmLnVu','138957wwMqzk','405215lxLSaT','596PNMIFn','SIGHUP','359ZxPBAZ','838638fHYSnI','189576XsGsrP','Valid\x20hooks:\x20','eWLaR','error','exit','once','keys','261230yKmVYG','4tPyXhx'];_0x4700=function(){return _0x48c848;};return _0x4700();}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 _0x2a6fae=_0x2c79;if(cancellationHandlersInstalled)return;const _0x3590e4=()=>{const _0x21cbc7=_0x2c79;process[_0x21cbc7(0x71)](0x0);};process[_0x2a6fae(0x72)]('SIGINT',_0x3590e4),process['once'](_0x2a6fae(0x77),_0x3590e4),process['once'](_0x2a6fae(0x7d),_0x3590e4),cancellationHandlersInstalled=!![];}export async function hook(_0x45bc4c,_0x28b1bb){const _0x2bb0a4=_0x2c79,_0x412877={'eWLaR':function(_0x4082a0){return _0x4082a0();},'LgaXW':function(_0x5468e8,_0x1b8228){return _0x5468e8(_0x1b8228);}};_0x412877[_0x2bb0a4(0x6f)](installCancellationHandlers);const _0x5dd08f=HOOKS[_0x45bc4c];if(!_0x5dd08f){const _0x560ea1=Object[_0x2bb0a4(0x73)](HOOKS)['join'](',\x20');console['error'](_0x2bb0a4(0x76)+_0x45bc4c),console[_0x2bb0a4(0x70)](_0x2bb0a4(0x6e)+_0x560ea1),process[_0x2bb0a4(0x71)](0x1);}await _0x412877['LgaXW'](_0x5dd08f,_0x28b1bb);}
1
+ (function(_0x5e04e9,_0x24f778){const _0x3cc586=_0x1d80,_0x261d28=_0x5e04e9();while(!![]){try{const _0x5ca10a=parseInt(_0x3cc586(0x173))/0x1+-parseInt(_0x3cc586(0x179))/0x2+-parseInt(_0x3cc586(0x176))/0x3+-parseInt(_0x3cc586(0x174))/0x4*(parseInt(_0x3cc586(0x17c))/0x5)+parseInt(_0x3cc586(0x178))/0x6*(-parseInt(_0x3cc586(0x17e))/0x7)+-parseInt(_0x3cc586(0x17b))/0x8+parseInt(_0x3cc586(0x17d))/0x9;if(_0x5ca10a===_0x24f778)break;else _0x261d28['push'](_0x261d28['shift']());}catch(_0x6ac46d){_0x261d28['push'](_0x261d28['shift']());}}}(_0x33e0,0x71f87));function _0x1d80(_0x2f4a7a,_0xab3102){_0x2f4a7a=_0x2f4a7a-0x173;const _0x33e096=_0x33e0();let _0x1d80b9=_0x33e096[_0x2f4a7a];return _0x1d80b9;}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x2c0858=_0x1d80,_0x27ecad={'KdHMb':'SIGINT','vhHJa':_0x2c0858(0x175)};if(cancellationHandlersInstalled)return;const _0x13e54f=()=>{const _0x54d061=_0x2c0858;process[_0x54d061(0x17f)](0x0);};process['once'](_0x27ecad['KdHMb'],_0x13e54f),process[_0x2c0858(0x17a)](_0x27ecad['vhHJa'],_0x13e54f),process[_0x2c0858(0x17a)]('SIGHUP',_0x13e54f),cancellationHandlersInstalled=!![];}function _0x33e0(){const _0x2533f8=['92165LIudNm','34600185dUzLvw','3941Wfxohj','exit','28660joXQmt','144rvhAhs','SIGTERM','1588848BLMxgy','join','8478QJlrQX','1519812xPnnyz','once','5261384qWfiKE'];_0x33e0=function(){return _0x2533f8;};return _0x33e0();}export async function hook(_0x19cf2d,_0x54f1cb){const _0x40ae22=_0x1d80,_0xe72cfa={'UGDiC':function(_0x5c35bd,_0x36e89b){return _0x5c35bd(_0x36e89b);}};installCancellationHandlers();const _0x5b810a=HOOKS[_0x19cf2d];if(!_0x5b810a){const _0x4d9389=Object['keys'](HOOKS)[_0x40ae22(0x177)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x19cf2d),console['error']('Valid\x20hooks:\x20'+_0x4d9389),process['exit'](0x1);}await _0xe72cfa['UGDiC'](_0x5b810a,_0x54f1cb);}
@@ -1 +1 @@
1
- function _0x2fe4(_0x437a95,_0x423d23){_0x437a95=_0x437a95-0xf3;const _0x35119b=_0x3511();let _0x2fe4f9=_0x35119b[_0x437a95];return _0x2fe4f9;}(function(_0x494ba6,_0x23f453){const _0x30917c=_0x2fe4,_0x34c55b=_0x494ba6();while(!![]){try{const _0x27f07b=parseInt(_0x30917c(0xf6))/0x1*(parseInt(_0x30917c(0xfe))/0x2)+parseInt(_0x30917c(0xfa))/0x3*(-parseInt(_0x30917c(0xf8))/0x4)+-parseInt(_0x30917c(0xf7))/0x5*(-parseInt(_0x30917c(0xff))/0x6)+-parseInt(_0x30917c(0xf4))/0x7*(-parseInt(_0x30917c(0xf5))/0x8)+parseInt(_0x30917c(0xf3))/0x9+-parseInt(_0x30917c(0xf9))/0xa+-parseInt(_0x30917c(0xfd))/0xb;if(_0x27f07b===_0x23f453)break;else _0x34c55b['push'](_0x34c55b['shift']());}catch(_0x53d267){_0x34c55b['push'](_0x34c55b['shift']());}}}(_0x3511,0x93804));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x3511(){const _0x3b602d=['3451734qsDfUZ','15169RHZPNI','3960BqGjEn','436901qOZFTM','10edaOcg','11408tFxkad','6226030SoXUsz','1005gCqmHO','log','IXzga','5582390RxOpxw','4aPLxQj','1079052umjMZJ'];_0x3511=function(){return _0x3b602d;};return _0x3511();}const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';export async function autoPrompt(){const _0x2d4e01=_0x2fe4,_0x15f9aa={'IXzga':function(_0x2803bd){return _0x2803bd();},'ooRcf':function(_0x58a1dc,_0x32882d){return _0x58a1dc(_0x32882d);}},_0x3ab40c=await _0x15f9aa[_0x2d4e01(0xfc)](readHookInput),_0x1c4685=_0x3ab40c?.['session_id'];if(!_0x1c4685)return;if(_0x15f9aa['ooRcf'](isSessionEnabled,_0x1c4685)||_0x15f9aa['ooRcf'](hasSessionBeenPrompted,_0x1c4685))return;_0x15f9aa['ooRcf'](markSessionPrompted,_0x1c4685),console[_0x2d4e01(0xfb)](AUTO_PROMPT_TEXT);}
1
+ (function(_0x474451,_0x135017){const _0x18d65b=_0x19a0,_0x3504ef=_0x474451();while(!![]){try{const _0xb26538=parseInt(_0x18d65b(0xc9))/0x1+parseInt(_0x18d65b(0xcf))/0x2+-parseInt(_0x18d65b(0xd1))/0x3*(-parseInt(_0x18d65b(0xcd))/0x4)+parseInt(_0x18d65b(0xd2))/0x5*(parseInt(_0x18d65b(0xcb))/0x6)+parseInt(_0x18d65b(0xce))/0x7+parseInt(_0x18d65b(0xc7))/0x8+-parseInt(_0x18d65b(0xd0))/0x9;if(_0xb26538===_0x135017)break;else _0x3504ef['push'](_0x3504ef['shift']());}catch(_0x126c70){_0x3504ef['push'](_0x3504ef['shift']());}}}(_0xac61,0x76701));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 _0x19a0(_0x244ee3,_0x120d44){_0x244ee3=_0x244ee3-0xc7;const _0xac6117=_0xac61();let _0x19a06e=_0xac6117[_0x244ee3];return _0x19a06e;}function _0xac61(){const _0xd4f73c=['1750315deqMtJ','76018zvzLeD','15592284mmZPNo','21zpqIFc','725675ppvOkV','2929368ztBTae','session_id','47715zmprrI','log','36rswSmT','lvLkW','368484oKqrnB'];_0xac61=function(){return _0xd4f73c;};return _0xac61();}export async function autoPrompt(){const _0x4ff389=_0x19a0,_0x23b0d0={'FkADr':function(_0x545346){return _0x545346();},'lvLkW':function(_0x28fbcc,_0xfc548c){return _0x28fbcc(_0xfc548c);},'ArWZQ':function(_0x4048a6,_0x2db2fb){return _0x4048a6(_0x2db2fb);}},_0x13d9e3=await _0x23b0d0['FkADr'](readHookInput),_0x21b2c3=_0x13d9e3?.[_0x4ff389(0xc8)];if(!_0x21b2c3)return;if(_0x23b0d0[_0x4ff389(0xcc)](isSessionEnabled,_0x21b2c3)||hasSessionBeenPrompted(_0x21b2c3))return;_0x23b0d0['ArWZQ'](markSessionPrompted,_0x21b2c3),console[_0x4ff389(0xca)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x107d95,_0x224869){const _0x563110=_0x15ee,_0x4d4776=_0x107d95();while(!![]){try{const _0x112ab5=-parseInt(_0x563110(0x96))/0x1*(parseInt(_0x563110(0x8b))/0x2)+-parseInt(_0x563110(0x90))/0x3+-parseInt(_0x563110(0x95))/0x4*(-parseInt(_0x563110(0x91))/0x5)+parseInt(_0x563110(0x8d))/0x6+parseInt(_0x563110(0x8f))/0x7+parseInt(_0x563110(0x97))/0x8*(-parseInt(_0x563110(0x9a))/0x9)+parseInt(_0x563110(0x93))/0xa;if(_0x112ab5===_0x224869)break;else _0x4d4776['push'](_0x4d4776['shift']());}catch(_0x51faa9){_0x4d4776['push'](_0x4d4776['shift']());}}}(_0x44fb,0x4d269));function _0x15ee(_0x2da93f,_0x46c383){_0x2da93f=_0x2da93f-0x8b;const _0x44fb97=_0x44fb();let _0x15ee4e=_0x44fb97[_0x2da93f];return _0x15ee4e;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';function _0x44fb(){const _0x44eac3=['134mbTvHy','13368NOmNgQ','master','fEItm','1179KAbmSu','8774pGGsVv','\x20and\x20branch\x20\x27','1492242XBhWBE','crnUq','2762788XBtxyY','1837371vxTxAy','834395pIbBpT','SaYvJ','5911970CthhoR','CLAUDE_SESSION_ID','12XFyxOu'];_0x44fb=function(){return _0x44eac3;};return _0x44fb();}export async function disable(_0x42ea89){const _0x442d7e=_0x15ee,_0x45703d={'crnUq':function(_0x313188,_0x1b4d02){return _0x313188(_0x1b4d02);},'fEItm':function(_0x3057fd,_0x532c7e){return _0x3057fd!==_0x532c7e;},'LcIfl':function(_0x16bab7,_0x219ad0){return _0x16bab7!==_0x219ad0;},'Medcb':function(_0x428fe6,_0x205167){return _0x428fe6(_0x205167);},'SaYvJ':function(_0x52a351,_0x165d77){return _0x52a351(_0x165d77);}},_0x397c95=_0x42ea89||process['env'][_0x442d7e(0x94)]||'';_0x397c95&&_0x45703d[_0x442d7e(0x8e)](disableSession,_0x397c95);const _0x289485=getCurrentBranch();_0x289485&&_0x45703d[_0x442d7e(0x99)](_0x289485,'main')&&_0x45703d['LcIfl'](_0x289485,'master')&&_0x45703d['Medcb'](disableBranch,_0x289485),_0x45703d[_0x442d7e(0x92)](printBlock,'#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x289485&&_0x289485!=='main'&&_0x289485!==_0x442d7e(0x98)?_0x442d7e(0x8c)+_0x289485+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
1
+ (function(_0x34a831,_0x12c2f9){const _0x51ebb8=_0x3eaa,_0x3b055c=_0x34a831();while(!![]){try{const _0x548220=-parseInt(_0x51ebb8(0x1cf))/0x1*(parseInt(_0x51ebb8(0x1cb))/0x2)+parseInt(_0x51ebb8(0x1c8))/0x3+parseInt(_0x51ebb8(0x1c9))/0x4+-parseInt(_0x51ebb8(0x1d0))/0x5+-parseInt(_0x51ebb8(0x1c7))/0x6+-parseInt(_0x51ebb8(0x1c2))/0x7*(parseInt(_0x51ebb8(0x1cc))/0x8)+parseInt(_0x51ebb8(0x1c5))/0x9;if(_0x548220===_0x12c2f9)break;else _0x3b055c['push'](_0x3b055c['shift']());}catch(_0x2762c3){_0x3b055c['push'](_0x3b055c['shift']());}}}(_0x28f8,0x33457));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x28f8(){const _0x1cb8d4=['176kiIBsR','1890945CNBoad','1178975jQuXnQ','\x20and\x20branch\x20\x27','PMwtG','9739548EjBsnC','main','1248882YmuhaF','164262NvEbtF','80840iaIMmd','DfvQx','2186gTSRft','8UoKSvt','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','CxzSP'];_0x28f8=function(){return _0x1cb8d4;};return _0x28f8();}function _0x3eaa(_0x1182c7,_0x4bb339){_0x1182c7=_0x1182c7-0x1c2;const _0x28f801=_0x28f8();let _0x3eaa59=_0x28f801[_0x1182c7];return _0x3eaa59;}import{printBlock}from'./output.js';export async function disable(_0x33eef0){const _0x281610=_0x3eaa,_0x14f995={'ZJMUb':function(_0x12d8e7){return _0x12d8e7();},'DfvQx':'master','PMwtG':function(_0x54fe63,_0xed757c){return _0x54fe63(_0xed757c);},'IcLMq':function(_0x406992,_0x129907){return _0x406992!==_0x129907;},'CxzSP':_0x281610(0x1c6)},_0x5943e0=_0x33eef0||process['env']['CLAUDE_SESSION_ID']||'';_0x5943e0&&disableSession(_0x5943e0);const _0x372059=_0x14f995['ZJMUb'](getCurrentBranch);_0x372059&&_0x372059!==_0x281610(0x1c6)&&_0x372059!==_0x14f995[_0x281610(0x1ca)]&&_0x14f995[_0x281610(0x1c4)](disableBranch,_0x372059),_0x14f995['PMwtG'](printBlock,_0x281610(0x1cd)+(_0x372059&&_0x14f995['IcLMq'](_0x372059,_0x14f995[_0x281610(0x1ce)])&&_0x372059!==_0x14f995['DfvQx']?_0x281610(0x1c3)+_0x372059+'\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(_0x25ba38,_0xbeb832){const _0x2b5969=_0x462e,_0x18b1c4=_0x25ba38();while(!![]){try{const _0xf7ac2c=parseInt(_0x2b5969(0xc1))/0x1*(-parseInt(_0x2b5969(0xb6))/0x2)+parseInt(_0x2b5969(0xc5))/0x3+-parseInt(_0x2b5969(0xb8))/0x4+-parseInt(_0x2b5969(0xba))/0x5*(-parseInt(_0x2b5969(0xc3))/0x6)+parseInt(_0x2b5969(0xbe))/0x7*(-parseInt(_0x2b5969(0xc7))/0x8)+-parseInt(_0x2b5969(0xbb))/0x9+parseInt(_0x2b5969(0xc2))/0xa;if(_0xf7ac2c===_0xbeb832)break;else _0x18b1c4['push'](_0x18b1c4['shift']());}catch(_0x292ec){_0x18b1c4['push'](_0x18b1c4['shift']());}}}(_0x59d0,0x2b9df));function _0x59d0(){const _0x58ea5d=['#\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`','env','DikIU','339054lTTmII','CLAUDE_SESSION_ID','686956IBWNyg','jUILl','610WKXCCM','1670976CBJJjg','kBFrE','Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','182nkZwTr','tAvzq','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','2mAHkMJ','8191290LsmFJX','9516iapmgj','hmUuR','216075Cmucyh','ktheU','64472NjbzCw','ranger\x20setup','master','ranger\x20setup\x20--opencode','rfaHO','\x0a\x0a**Branch\x20\x27'];_0x59d0=function(){return _0x58ea5d;};return _0x59d0();}function _0x462e(_0x2d259f,_0x1878af){_0x2d259f=_0x2d259f-0xb4;const _0x59d0e0=_0x59d0();let _0x462e53=_0x59d0e0[_0x2d259f];return _0x462e53;}import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x4a3188){const _0xe7adf=_0x462e,_0x58170c={'ktheU':function(_0x5571db,_0x277ddf){return _0x5571db(_0x277ddf);},'hmUuR':_0xe7adf(0xc8),'DikIU':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','rfaHO':_0xe7adf(0xbd),'kBFrE':function(_0x321873){return _0x321873();},'tAvzq':function(_0x5da31b,_0x2d55e7){return _0x5da31b!==_0x2d55e7;},'jUILl':function(_0x1eff21,_0x4145ea){return _0x1eff21!==_0x4145ea;},'IPYZy':_0xe7adf(0xc9)},_0x166d16=_0x4a3188||process[_0xe7adf(0xb4)][_0xe7adf(0xb7)]||'',_0x52be46=_0x58170c[_0xe7adf(0xc6)](Boolean,_0x4a3188),_0x4c125c=await getToken();if(!_0x4c125c){const _0x599ad5=_0x52be46?_0xe7adf(0xca):_0x58170c[_0xe7adf(0xc4)],_0x4e9496=_0x52be46?_0x58170c[_0xe7adf(0xb5)]:_0x58170c[_0xe7adf(0xcb)];_0x58170c[_0xe7adf(0xc6)](printBlock,_0xe7adf(0xcd)+_0x599ad5+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x4e9496);return;}try{await _0x58170c[_0xe7adf(0xbc)](update);}catch{}_0x166d16&&_0x58170c[_0xe7adf(0xc6)](enableSession,_0x166d16);const _0x5ec241=_0x58170c[_0xe7adf(0xbc)](getCurrentBranch),_0x52985c=_0x5ec241&&_0x58170c[_0xe7adf(0xbf)](_0x5ec241,'main')&&_0x58170c[_0xe7adf(0xb9)](_0x5ec241,_0x58170c['IPYZy'])?_0xe7adf(0xcc)+_0x5ec241+_0xe7adf(0xc0):'',_0x17a2de=getRangerSkillContent();printBlock('#\x20RANGER\x20ENABLED'+_0x52985c+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x17a2de+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
1
+ (function(_0x54fb61,_0x473c41){const _0x1ff7c8=_0x6516,_0x23ab94=_0x54fb61();while(!![]){try{const _0x591e4b=-parseInt(_0x1ff7c8(0x17f))/0x1*(parseInt(_0x1ff7c8(0x180))/0x2)+-parseInt(_0x1ff7c8(0x185))/0x3+-parseInt(_0x1ff7c8(0x17c))/0x4*(-parseInt(_0x1ff7c8(0x17e))/0x5)+parseInt(_0x1ff7c8(0x187))/0x6*(-parseInt(_0x1ff7c8(0x182))/0x7)+-parseInt(_0x1ff7c8(0x184))/0x8+parseInt(_0x1ff7c8(0x189))/0x9+parseInt(_0x1ff7c8(0x18b))/0xa;if(_0x591e4b===_0x473c41)break;else _0x23ab94['push'](_0x23ab94['shift']());}catch(_0x348790){_0x23ab94['push'](_0x23ab94['shift']());}}}(_0x7b13,0xc36ab));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x6516(_0x4c06b8,_0x4498ea){_0x4c06b8=_0x4c06b8-0x17c;const _0x7b1354=_0x7b13();let _0x65163e=_0x7b1354[_0x4c06b8];return _0x65163e;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';function _0x7b13(){const _0x349e31=['1447938OxNAbb','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','2148ewiqai','dbuKP','13119723QNltFn','ufdxl','10016320dnfEUi','ranger\x20setup','44CVJVpX','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','49930zxrlfW','1UkPPDk','302924rriZOL','ranger\x20setup\x20--opencode','9156yyDjSN','Eeypv','5331408EakZBl'];_0x7b13=function(){return _0x349e31;};return _0x7b13();}export async function enable(_0x58f387){const _0x18bd32=_0x6516,_0x561cc4={'dbuKP':function(_0x1c589a,_0x35d59c){return _0x1c589a(_0x35d59c);},'Yjqfj':function(_0x1f5937){return _0x1f5937();},'admCx':'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','ufdxl':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','ohAJM':function(_0x47dc8c,_0x29358c){return _0x47dc8c(_0x29358c);},'Eeypv':function(_0x27e712){return _0x27e712();},'NMjIF':function(_0x13e7ca){return _0x13e7ca();}},_0x298f4b=_0x58f387||process['env']['CLAUDE_SESSION_ID']||'',_0x826d9=_0x561cc4[_0x18bd32(0x188)](Boolean,_0x58f387),_0x5939a6=await _0x561cc4['Yjqfj'](getToken);if(!_0x5939a6){const _0xba4519=_0x826d9?_0x18bd32(0x181):_0x18bd32(0x18c),_0x169da8=_0x826d9?_0x561cc4['admCx']:_0x561cc4[_0x18bd32(0x18a)];_0x561cc4['ohAJM'](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`'+_0xba4519+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x169da8);return;}try{await _0x561cc4[_0x18bd32(0x183)](update);}catch{}_0x298f4b&&enableSession(_0x298f4b);const _0x27a294=_0x561cc4['Eeypv'](getCurrentBranch),_0x3b8b07=_0x27a294&&_0x27a294!=='main'&&_0x27a294!=='master'?'\x0a\x0a**Branch\x20\x27'+_0x27a294+_0x18bd32(0x186):'',_0x57f697=_0x561cc4['NMjIF'](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x3b8b07+_0x18bd32(0x17d)+_0x57f697+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
@@ -1 +1 @@
1
- (function(_0x5168f9,_0x4640c6){const _0x42bcbc=_0x2226,_0x1aab34=_0x5168f9();while(!![]){try{const _0x1d12c1=-parseInt(_0x42bcbc(0x123))/0x1*(-parseInt(_0x42bcbc(0x125))/0x2)+-parseInt(_0x42bcbc(0x124))/0x3*(parseInt(_0x42bcbc(0x11e))/0x4)+-parseInt(_0x42bcbc(0x122))/0x5+parseInt(_0x42bcbc(0x121))/0x6*(-parseInt(_0x42bcbc(0x120))/0x7)+-parseInt(_0x42bcbc(0x11b))/0x8+parseInt(_0x42bcbc(0x11c))/0x9*(-parseInt(_0x42bcbc(0x11f))/0xa)+-parseInt(_0x42bcbc(0x127))/0xb*(-parseInt(_0x42bcbc(0x11d))/0xc);if(_0x1d12c1===_0x4640c6)break;else _0x1aab34['push'](_0x1aab34['shift']());}catch(_0x48b757){_0x1aab34['push'](_0x1aab34['shift']());}}}(_0x1552,0x49730));function _0x2226(_0xdea6b6,_0x417d5d){_0xdea6b6=_0xdea6b6-0x11b;const _0x155288=_0x1552();let _0x222668=_0x155288[_0xdea6b6];return _0x222668;}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x1b8c35){const _0x1d21d2=_0x2226,_0x66500a=await getEnabledSessionId(_0x1b8c35);if(!_0x66500a)return;printBlock(_0x1d21d2(0x126));}function _0x1552(){const _0x471d63=['===\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===','20475103jyuKor','2072984qtqtYk','549lpivye','12pdnmOe','12ZZXSYx','86590ITdcxa','14TLmlAh','294114MJxXmN','1922860PgWCmV','11BdTBvj','457287lsfKso','30308nRRyaU'];_0x1552=function(){return _0x471d63;};return _0x1552();}
1
+ (function(_0x39dd11,_0x3c4c7c){const _0x3bb880=_0x3199,_0x126c9f=_0x39dd11();while(!![]){try{const _0x229965=-parseInt(_0x3bb880(0xde))/0x1+-parseInt(_0x3bb880(0xe1))/0x2+parseInt(_0x3bb880(0xe3))/0x3*(-parseInt(_0x3bb880(0xdc))/0x4)+parseInt(_0x3bb880(0xdf))/0x5+parseInt(_0x3bb880(0xe0))/0x6+-parseInt(_0x3bb880(0xe2))/0x7*(parseInt(_0x3bb880(0xdb))/0x8)+parseInt(_0x3bb880(0xdd))/0x9;if(_0x229965===_0x3c4c7c)break;else _0x126c9f['push'](_0x126c9f['shift']());}catch(_0x1c5d03){_0x126c9f['push'](_0x126c9f['shift']());}}}(_0x32e4,0xe0907));function _0x3199(_0x3e5ee5,_0xf1203d){_0x3e5ee5=_0x3e5ee5-0xdb;const _0x32e4c2=_0x32e4();let _0x319937=_0x32e4c2[_0x3e5ee5];return _0x319937;}function _0x32e4(){const _0x53c3a0=['55743tItoHW','31256TznhIW','136vxkCoL','32301846XKhYrN','610465iLVLqe','7706535KXhASL','2000076Cjhcrr','2962102hWnUQb','3262OhLmiP'];_0x32e4=function(){return _0x53c3a0;};return _0x32e4();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0xfcacc1){const _0x2c3acf={'LRyjS':function(_0x54c9f1,_0x5e023f){return _0x54c9f1(_0x5e023f);}},_0x509be7=await getEnabledSessionId(_0xfcacc1);if(!_0x509be7)return;_0x2c3acf['LRyjS'](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 _0x53e2(){var _0x1c7fa0=['16494GOOUwt','1225224tasiYf','1519737ywHSko','345410VLthAf','140VdzhWJ','73962gVrmXq','6074040QgPUpK','128320OzGoJp'];_0x53e2=function(){return _0x1c7fa0;};return _0x53e2();}(function(_0x1903f6,_0x31da85){var _0x5b3038=_0x4211,_0x428218=_0x1903f6();while(!![]){try{var _0x3a1b5a=parseInt(_0x5b3038(0x192))/0x1+parseInt(_0x5b3038(0x194))/0x2+-parseInt(_0x5b3038(0x191))/0x3+-parseInt(_0x5b3038(0x198))/0x4+parseInt(_0x5b3038(0x193))/0x5*(parseInt(_0x5b3038(0x197))/0x6)+parseInt(_0x5b3038(0x195))/0x7+-parseInt(_0x5b3038(0x196))/0x8;if(_0x3a1b5a===_0x31da85)break;else _0x428218['push'](_0x428218['shift']());}catch(_0x28f2ed){_0x428218['push'](_0x428218['shift']());}}}(_0x53e2,0x799ee));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';function _0x4211(_0x402ca9,_0x136934){_0x402ca9=_0x402ca9-0x191;var _0x53e2f9=_0x53e2();var _0x42119c=_0x53e2f9[_0x402ca9];return _0x42119c;}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(_0x21a39e,_0x6bcecb){var _0x3cf201=_0x1934,_0x3010aa=_0x21a39e();while(!![]){try{var _0x10e932=-parseInt(_0x3cf201(0x94))/0x1*(-parseInt(_0x3cf201(0x97))/0x2)+-parseInt(_0x3cf201(0x98))/0x3*(-parseInt(_0x3cf201(0x9b))/0x4)+-parseInt(_0x3cf201(0x9e))/0x5*(parseInt(_0x3cf201(0x93))/0x6)+-parseInt(_0x3cf201(0x95))/0x7*(-parseInt(_0x3cf201(0x9d))/0x8)+parseInt(_0x3cf201(0x99))/0x9+parseInt(_0x3cf201(0x96))/0xa+-parseInt(_0x3cf201(0x9c))/0xb*(parseInt(_0x3cf201(0x9a))/0xc);if(_0x10e932===_0x6bcecb)break;else _0x3010aa['push'](_0x3010aa['shift']());}catch(_0x3a87ad){_0x3010aa['push'](_0x3010aa['shift']());}}}(_0x362c,0x30081));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';function _0x1934(_0x3de8f9,_0x3ad844){_0x3de8f9=_0x3de8f9-0x93;var _0x362cda=_0x362c();var _0x1934a4=_0x362cda[_0x3de8f9];return _0x1934a4;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';function _0x362c(){var _0x923b39=['34vNOWBG','183wfyREJ','1934874beYBHt','5163816uDWQPh','19484zcApiH','22NAahIM','8104KDTXdN','5ymgzQi','929274HuucTX','19172hgcCxO','2380dVWLVQ','297910lWPSRB'];_0x362c=function(){return _0x923b39;};return _0x362c();}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';