@ranger-testing/ranger-cli 2.5.4-alpha.ed286f1-2 → 2.5.4-alpha.f6504c0-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -0
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -0
  42. package/build/commands/utils/cloudProfileSession.js +1 -0
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -0
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -0
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -0
  63. package/build/commands/utils/resolveProfileUrl.js +1 -0
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +18 -4
  78. package/build/skills/ranger/create.md +6 -0
  79. package/build/skills/ranger/verify.md +17 -3
  80. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xafd4ed,_0xd658dc){const _0x500640=_0x1a74,_0x42f699=_0xafd4ed();while(!![]){try{const _0x527aca=parseInt(_0x500640(0x120))/0x1*(-parseInt(_0x500640(0x131))/0x2)+parseInt(_0x500640(0x119))/0x3+-parseInt(_0x500640(0x12c))/0x4*(-parseInt(_0x500640(0x11b))/0x5)+-parseInt(_0x500640(0x11f))/0x6*(-parseInt(_0x500640(0x12a))/0x7)+parseInt(_0x500640(0x127))/0x8*(-parseInt(_0x500640(0x11c))/0x9)+parseInt(_0x500640(0x128))/0xa+parseInt(_0x500640(0x123))/0xb*(-parseInt(_0x500640(0x12f))/0xc);if(_0x527aca===_0xd658dc)break;else _0x42f699['push'](_0x42f699['shift']());}catch(_0x89173f){_0x42f699['push'](_0x42f699['shift']());}}}(_0x22d5,0xb43b6));function _0x22d5(){const _0x480431=['136WCHHGm','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','1260hLfnuo','log','2927314Cgjuko','2487486VQgYMU','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','187795FWVTCe','2952630BnGrFE','No\x20auth.json\x20found\x20at\x20','.enc','12eQRpaU','1fhrOSX','auth.json','.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update','43274APPZFn','uVQUV','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','8BgnnDR','7220830cIJnmX','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','401716DdXqbS','YliRI'];_0x22d5=function(){return _0x480431;};return _0x22d5();}import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';function _0x1a74(_0x58354d,_0x1f0015){_0x58354d=_0x58354d-0x119;const _0x22d5b2=_0x22d5();let _0x1a74e2=_0x22d5b2[_0x58354d];return _0x1a74e2;}import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x1bd1cf){const _0x312eb9=_0x1a74,_0x57ef58={'YliRI':function(_0x14f19e,_0x21a341){return _0x14f19e+_0x21a341;},'kXXGn':_0x312eb9(0x11e),'cooTe':'utf-8','uVQUV':function(_0xa67e04,_0x22936a,_0x4b9bb5){return _0xa67e04(_0x22936a,_0x4b9bb5);},'mlBib':_0x312eb9(0x12e)},_0x555b97=getEnvDir(_0x1bd1cf),_0x18138e=join(_0x555b97,_0x312eb9(0x121)),_0x5ea042=_0x57ef58[_0x312eb9(0x12b)](_0x18138e,_0x57ef58['kXXGn']);if(!existsSync(_0x555b97))throw new Error('Profile\x20\x22'+_0x1bd1cf+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x1bd1cf);if(!existsSync(_0x18138e))throw new Error(_0x312eb9(0x11d)+_0x18138e+_0x312eb9(0x122));const _0x3e0b12=await getToken();if(!_0x3e0b12)throw new Error(_0x312eb9(0x11a));const _0x550fe3=await readFile(_0x18138e,_0x57ef58['cooTe']),_0x32f236=_0x57ef58[_0x312eb9(0x124)](encrypt,_0x550fe3,_0x3e0b12);await writeFile(_0x5ea042,_0x32f236),console['log'](_0x312eb9(0x125)+_0x5ea042),console['log'](_0x312eb9(0x129)),console[_0x312eb9(0x130)](_0x57ef58['mlBib']),existsSync(_0x5ea042)&&(console[_0x312eb9(0x130)](_0x312eb9(0x126)),console[_0x312eb9(0x130)](_0x312eb9(0x12d)));}
1
+ (function(_0x443c05,_0x2bd29f){const _0x8dbad8=_0x4c54,_0x5219c8=_0x443c05();while(!![]){try{const _0x498856=-parseInt(_0x8dbad8(0x1f5))/0x1+-parseInt(_0x8dbad8(0x1f4))/0x2*(-parseInt(_0x8dbad8(0x1fd))/0x3)+parseInt(_0x8dbad8(0x204))/0x4*(-parseInt(_0x8dbad8(0x1fa))/0x5)+-parseInt(_0x8dbad8(0x1fc))/0x6+-parseInt(_0x8dbad8(0x205))/0x7*(parseInt(_0x8dbad8(0x202))/0x8)+-parseInt(_0x8dbad8(0x206))/0x9*(parseInt(_0x8dbad8(0x1ff))/0xa)+parseInt(_0x8dbad8(0x1f2))/0xb;if(_0x498856===_0x2bd29f)break;else _0x5219c8['push'](_0x5219c8['shift']());}catch(_0xa188b1){_0x5219c8['push'](_0x5219c8['shift']());}}}(_0xb74b,0xe3b8d));import{readFile,writeFile}from'fs/promises';function _0x4c54(_0x8f01ff,_0x32b949){_0x8f01ff=_0x8f01ff-0x1f2;const _0xb74bd9=_0xb74b();let _0x4c54e3=_0xb74bd9[_0x8f01ff];return _0x4c54e3;}function _0xb74b(){const _0x244e48=['.enc','log','dliYe','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','4497865QJCrDy','nWvKz','5100030wbXZTc','213bBRfbx','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','39410jAGdRc','No\x20auth.json\x20found\x20at\x20','auth.json','4958952kVkGjm','OdjSG','4fjmcdW','7Hgsxji','738HNuwCI','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','xMOUf','41475577dVKzbE','utf-8','22298obteJk','936728TPraVT'];_0xb74b=function(){return _0x244e48;};return _0xb74b();}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x4443dc){const _0x386304=_0x4c54,_0x52ec52={'OdjSG':function(_0x1ae796,_0x382993){return _0x1ae796(_0x382993);},'kFXcK':_0x386304(0x201),'dliYe':function(_0x4d898b,_0x18071d){return _0x4d898b+_0x18071d;},'xMOUf':_0x386304(0x1f3),'nWvKz':function(_0x48db81,_0x533e06,_0x4564b7){return _0x48db81(_0x533e06,_0x4564b7);},'lIGUB':_0x386304(0x208)},_0x64a281=_0x52ec52[_0x386304(0x203)](getEnvDir,_0x4443dc),_0x5b8d5a=join(_0x64a281,_0x52ec52['kFXcK']),_0x3a7ec4=_0x52ec52[_0x386304(0x1f8)](_0x5b8d5a,_0x386304(0x1f6));if(!existsSync(_0x64a281))throw new Error('Profile\x20\x22'+_0x4443dc+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x4443dc);if(!_0x52ec52['OdjSG'](existsSync,_0x5b8d5a))throw new Error(_0x386304(0x200)+_0x5b8d5a+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x4a5d98=await getToken();if(!_0x4a5d98)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x10c035=await readFile(_0x5b8d5a,_0x52ec52[_0x386304(0x209)]),_0x32e91a=_0x52ec52[_0x386304(0x1fb)](encrypt,_0x10c035,_0x4a5d98);await writeFile(_0x3a7ec4,_0x32e91a),console[_0x386304(0x1f7)](_0x386304(0x1f9)+_0x3a7ec4),console[_0x386304(0x1f7)](_0x52ec52['lIGUB']),console[_0x386304(0x1f7)]('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'),_0x52ec52[_0x386304(0x203)](existsSync,_0x3a7ec4)&&(console[_0x386304(0x1f7)](_0x386304(0x207)),console[_0x386304(0x1f7)](_0x386304(0x1fe)));}
@@ -1 +1 @@
1
- const _0x126fee=_0xf149;(function(_0x36402c,_0x47680d){const _0x4090e9=_0xf149,_0x53f9ed=_0x36402c();while(!![]){try{const _0x538063=-parseInt(_0x4090e9(0x21e))/0x1+parseInt(_0x4090e9(0x1f5))/0x2+parseInt(_0x4090e9(0x1ed))/0x3*(-parseInt(_0x4090e9(0x20b))/0x4)+parseInt(_0x4090e9(0x204))/0x5*(parseInt(_0x4090e9(0x1e6))/0x6)+parseInt(_0x4090e9(0x1e1))/0x7*(-parseInt(_0x4090e9(0x1f9))/0x8)+-parseInt(_0x4090e9(0x1ff))/0x9*(-parseInt(_0x4090e9(0x213))/0xa)+parseInt(_0x4090e9(0x1e0))/0xb;if(_0x538063===_0x47680d)break;else _0x53f9ed['push'](_0x53f9ed['shift']());}catch(_0xc4d810){_0x53f9ed['push'](_0x53f9ed['shift']());}}}(_0x3705,0xe18d4));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x126fee(0x21b),_0x126fee(0x20e),'bug-bash',_0x126fee(0x208)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x182fe4){const _0x1433c5=_0x126fee,_0x59b10a=_0x182fe4[_0x1433c5(0x206)](/\/\*[\s\S]*?\*\//g,''),_0xe151f5=_0x59b10a['replace'](/^\s*\/\/.*$/gm,''),_0xf06846=_0xe151f5['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x1433c5(0x203)](_0xf06846);}async function removeOpencodePluginConfig(_0x5c7a94){const _0x4f24ed=_0x126fee,_0x454fff={'jdHZF':'string','qsVqF':function(_0x4b37ba,_0x580fcc){return _0x4b37ba!==_0x580fcc;},'ZjQvg':function(_0x4cb34a,_0x5a6231,_0x496b0a){return _0x4cb34a(_0x5a6231,_0x496b0a);},'ioVyc':_0x4f24ed(0x1e7),'kUzkw':function(_0x4f392c,_0xc53dd6){return _0x4f392c===_0xc53dd6;}};if(!existsSync(_0x5c7a94))return![];let _0x5a2d3a;try{const _0x558c79=await _0x454fff[_0x4f24ed(0x1f0)](readFile,_0x5c7a94,_0x454fff[_0x4f24ed(0x220)]);_0x5a2d3a=parseJsonc(_0x558c79);}catch{return![];}const _0x4629ec=Array['isArray'](_0x5a2d3a[_0x4f24ed(0x1e2)])?_0x5a2d3a['plugin']:[];if(_0x454fff[_0x4f24ed(0x1e8)](_0x4629ec[_0x4f24ed(0x1fe)],0x0))return![];const _0x2ae767=_0x4629ec['filter'](_0xbcdb2d=>{if(typeof _0xbcdb2d!==_0x454fff['jdHZF'])return!![];return _0x454fff['qsVqF'](_0xbcdb2d,opencodePluginName);});if(_0x454fff['kUzkw'](_0x2ae767['length'],_0x4629ec[_0x4f24ed(0x1fe)]))return![];return _0x454fff[_0x4f24ed(0x1e8)](_0x2ae767[_0x4f24ed(0x1fe)],0x0)?delete _0x5a2d3a[_0x4f24ed(0x1e2)]:_0x5a2d3a[_0x4f24ed(0x1e2)]=_0x2ae767,await writeFile(_0x5c7a94,JSON[_0x4f24ed(0x201)](_0x5a2d3a,null,0x2)+'\x0a'),!![];}function _0x3705(){const _0x43e95b=['utf-8','kUzkw','ranger@trailhead','pipe','FJKzE','NgPxP','4773cMaOLJ','claude','platform','ZjQvg','✓\x20Removed\x20stored\x20credentials','FIcmY','SpRKa','marketplace','3403834peGHAE','JyVKt','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','yogvU','8yZKUhU','win32','wlnCH','trailhead','error','length','45tvHBpB','FiOhY','stringify','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','parse','11725IqHffR','OWiFf','replace','pjkWA','e2e-test-recommender','NTxzE','uninstall','1580dnmjjN','Xmrlc','fbGvA','feature-tracker','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','log','user','bzxKE','1642740KFajYQ','opencode.json','✓\x20Removed\x20user\x20skill:\x20','push','RYSJg','project','close','\x0a✅\x20Cleanup\x20complete!\x0a','ranger','HCWvZ','✓\x20Removed\x20trailhead\x20marketplace','1255995lNHMXc','HUoAA','ioVyc','2280146QBBQod','2131556VnPDYv','plugin','RlqAj','✓\x20Removed\x20.ranger/\x20directory','KngYk','978ouiSXh'];_0x3705=function(){return _0x43e95b;};return _0x3705();}async function uninstallClaudePlugin(_0x5a33e6){const _0x5a88e8=_0x126fee,_0x1f0301={'qbNZn':_0x5a88e8(0x1e2),'RYSJg':_0x5a88e8(0x20a),'aYtIj':function(_0x573c74,_0x3a2c0d,_0x57033e,_0x385619){return _0x573c74(_0x3a2c0d,_0x57033e,_0x385619);},'OWiFf':_0x5a88e8(0x1ee),'HUoAA':_0x5a88e8(0x1ea),'HCWvZ':function(_0x37c15c,_0x59a72b){return _0x37c15c===_0x59a72b;},'uuOuG':'win32','KngYk':'close'};return new Promise(_0x485036=>{const _0x30b0ba=_0x5a88e8,_0x25477a={'YIajB':function(_0x3881d9,_0x3196b4){return _0x3881d9(_0x3196b4);}},_0x30ea4b=[_0x1f0301['qbNZn'],_0x1f0301[_0x30b0ba(0x217)],_0x30b0ba(0x1e9)];_0x5a33e6&&_0x30ea4b[_0x30b0ba(0x216)]('--scope',_0x5a33e6);const _0x1ade2f=_0x1f0301['aYtIj'](spawn,_0x1f0301[_0x30b0ba(0x205)],_0x30ea4b,{'stdio':_0x1f0301[_0x30b0ba(0x21f)],'shell':_0x1f0301[_0x30b0ba(0x21c)](process['platform'],_0x1f0301['uuOuG'])});_0x1ade2f['on'](_0x1f0301[_0x30b0ba(0x1e5)],_0x4c7e9c=>{_0x25477a['YIajB'](_0x485036,_0x4c7e9c===0x0);}),_0x1ade2f['on'](_0x30b0ba(0x1fd),()=>{_0x485036(![]);});});}function _0xf149(_0x5774bc,_0x1a0cdb){_0x5774bc=_0x5774bc-0x1e0;const _0x370567=_0x3705();let _0xf149ac=_0x370567[_0x5774bc];return _0xf149ac;}async function removeMarketplace(){const _0x471cdb=_0x126fee,_0x1cb12f={'NgPxP':'claude','zRZFm':_0x471cdb(0x1f4),'xnyCE':function(_0x659cd1,_0x13ac48){return _0x659cd1===_0x13ac48;},'hvyYP':_0x471cdb(0x1fa),'FJKzE':_0x471cdb(0x219)};return new Promise(_0x94ffd2=>{const _0x4da973=_0x471cdb,_0x20bc0d=spawn(_0x1cb12f[_0x4da973(0x1ec)],['plugin',_0x1cb12f['zRZFm'],'remove',_0x4da973(0x1fc)],{'stdio':_0x4da973(0x1ea),'shell':_0x1cb12f['xnyCE'](process[_0x4da973(0x1ef)],_0x1cb12f['hvyYP'])});_0x20bc0d['on'](_0x1cb12f[_0x4da973(0x1eb)],_0x948a0c=>{_0x94ffd2(_0x948a0c===0x0);}),_0x20bc0d['on']('error',()=>{_0x94ffd2(![]);});});}export async function clean(){const _0x2eac6a=_0x126fee,_0x41285b={'SpRKa':function(_0x2045a1){return _0x2045a1();},'pjkWA':function(_0x56c552,_0x3bf96b){return _0x56c552(_0x3bf96b);},'fbGvA':function(_0x25ade4){return _0x25ade4();},'NTxzE':function(_0xdca23d,_0x5c5dcd){return _0xdca23d(_0x5c5dcd);},'Xmrlc':function(_0x36c590){return _0x36c590();},'yogvU':function(_0x441cbb,_0x1827c2,_0x19f6c3){return _0x441cbb(_0x1827c2,_0x19f6c3);},'FiOhY':_0x2eac6a(0x211),'wlnCH':function(_0x3094a4,_0x405ec1){return _0x3094a4(_0x405ec1);},'PRbJA':function(_0xf0382b,_0x29edc4){return _0xf0382b(_0x29edc4);},'bzxKE':'project','JyVKt':'opencode.json','RlqAj':_0x2eac6a(0x1f7),'FIcmY':function(_0x3426fe,_0x28db35,_0x1ea339){return _0x3426fe(_0x28db35,_0x1ea339);},'cFDFG':function(_0x15b76e,_0x32bff9){return _0x15b76e(_0x32bff9);},'oWtxs':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','xaLUU':function(_0x293869){return _0x293869();}};console[_0x2eac6a(0x210)]('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2d3671=![];try{await deleteAllCredentials(),console[_0x2eac6a(0x210)](_0x2eac6a(0x1f1)),_0x2d3671=!![];}catch{}const _0x56589a=getCacheFile();existsSync(_0x56589a)&&(await rm(_0x56589a),_0x2d3671=!![]);const _0x23508d=_0x41285b[_0x2eac6a(0x1f3)](getRangerDir);_0x41285b[_0x2eac6a(0x207)](existsSync,_0x23508d)&&(await rm(_0x23508d,{'recursive':!![]}),console[_0x2eac6a(0x210)](_0x2eac6a(0x1e4)),_0x2d3671=!![]);const _0x4e5030=_0x41285b[_0x2eac6a(0x20d)](getProjectSkillsDir);for(const _0x32a602 of skillsToRemove){const _0x5d5a06=join(_0x4e5030,_0x32a602);_0x41285b['NTxzE'](existsSync,_0x5d5a06)&&(await rm(_0x5d5a06,{'recursive':!![]}),console['log']('✓\x20Removed\x20project\x20skill:\x20'+_0x32a602),_0x2d3671=!![]);}const _0x27ad4d=_0x41285b[_0x2eac6a(0x20c)](getUserSkillsDir);for(const _0x2e46db of skillsToRemove){const _0x54a7b5=_0x41285b[_0x2eac6a(0x1f8)](join,_0x27ad4d,_0x2e46db);existsSync(_0x54a7b5)&&(await _0x41285b[_0x2eac6a(0x1f8)](rm,_0x54a7b5,{'recursive':!![]}),console[_0x2eac6a(0x210)](_0x2eac6a(0x215)+_0x2e46db),_0x2d3671=!![]);}const _0x1f0193=getOpencodeSkillsDir(_0x2eac6a(0x218));for(const _0x33a2d1 of skillsToRemove){const _0x5ecbc0=join(_0x1f0193,_0x33a2d1);existsSync(_0x5ecbc0)&&(await _0x41285b['yogvU'](rm,_0x5ecbc0,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x33a2d1),_0x2d3671=!![]);}const _0x3b484c=getOpencodeSkillsDir(_0x41285b[_0x2eac6a(0x200)]);for(const _0x4f7780 of skillsToRemove){const _0x36bc41=join(_0x3b484c,_0x4f7780);_0x41285b[_0x2eac6a(0x1fb)](existsSync,_0x36bc41)&&(await rm(_0x36bc41,{'recursive':!![]}),console['log'](_0x2eac6a(0x20f)+_0x4f7780),_0x2d3671=!![]);}const _0x56188c=join(_0x41285b['PRbJA'](getOpencodeConfigDir,_0x41285b[_0x2eac6a(0x212)]),_0x41285b[_0x2eac6a(0x1f6)]);await _0x41285b['pjkWA'](removeOpencodePluginConfig,_0x56188c)&&(console[_0x2eac6a(0x210)](_0x41285b[_0x2eac6a(0x1e3)]),_0x2d3671=!![]);const _0x5bf0fb=_0x41285b[_0x2eac6a(0x1f2)](join,_0x41285b['cFDFG'](getOpencodeConfigDir,_0x2eac6a(0x211)),_0x2eac6a(0x214));await _0x41285b[_0x2eac6a(0x209)](removeOpencodePluginConfig,_0x5bf0fb)&&(console['log'](_0x41285b['oWtxs']),_0x2d3671=!![]);const _0x1efb06=await _0x41285b['xaLUU'](uninstallClaudePlugin);_0x1efb06&&(console[_0x2eac6a(0x210)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x2d3671=!![]);const _0x17a276=await uninstallClaudePlugin(_0x41285b[_0x2eac6a(0x212)]);_0x17a276&&(console[_0x2eac6a(0x210)](_0x2eac6a(0x202)),_0x2d3671=!![]);const _0x13e201=await _0x41285b[_0x2eac6a(0x20d)](removeMarketplace);_0x13e201&&(console[_0x2eac6a(0x210)](_0x2eac6a(0x21d)),_0x2d3671=!![]),_0x2d3671?console['log'](_0x2eac6a(0x21a)):console['log']('Nothing\x20to\x20clean\x20up.\x0a');}
1
+ const _0x29b917=_0x4109;(function(_0x151fae,_0x1099ef){const _0x517398=_0x4109,_0x25ec16=_0x151fae();while(!![]){try{const _0x166b3b=parseInt(_0x517398(0x9d))/0x1+parseInt(_0x517398(0x95))/0x2*(-parseInt(_0x517398(0x84))/0x3)+-parseInt(_0x517398(0xb5))/0x4+parseInt(_0x517398(0xb7))/0x5+parseInt(_0x517398(0x88))/0x6+-parseInt(_0x517398(0xb9))/0x7+parseInt(_0x517398(0x9f))/0x8;if(_0x166b3b===_0x1099ef)break;else _0x25ec16['push'](_0x25ec16['shift']());}catch(_0x29441f){_0x25ec16['push'](_0x25ec16['shift']());}}}(_0x25cd,0xe98be));import{rm,readFile,writeFile}from'fs/promises';function _0x4109(_0x49106b,_0xacbc1b){_0x49106b=_0x49106b-0x80;const _0x25cd27=_0x25cd();let _0x41097e=_0x25cd27[_0x49106b];return _0x41097e;}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';function _0x25cd(){const _0x1675b5=['✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','8446085OucOwp','hQiEn','5645822PLOngx','filter','zEIYM','✓\x20Removed\x20trailhead\x20marketplace','log','ScQsO','pipe','✓\x20Removed\x20project\x20skill:\x20','341745JsLmrt','stringify','UpfnD','XLTSQ','4489272egzOEt','vaQfN','DBYDZ','plugin','marketplace','SwRNL','error','push','win32','platform','DARiq','user','xENpY','18zscyjV','string','vkxdB','LmVVo','✓\x20Removed\x20stored\x20credentials','project','WJIka','length','396770nritOl','isArray','5819776UwSBiM','EkVdJ','Ihatv','parse','uninstall','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','fQblx','nIaNA','ZwdPB','✓\x20Removed\x20.ranger/\x20directory','Sgqei','jOmJs','nGaun','WVfAH','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','claude','eHYHL','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','VCrnp','@ranger-testing/opencode-plugin','zcnwY','e2e-test-recommender','3093136iPllqj'];_0x25cd=function(){return _0x1675b5;};return _0x25cd();}const skillsToRemove=['ranger','feature-tracker','bug-bash',_0x29b917(0xb4)],opencodePluginName=_0x29b917(0xb2);function parseJsonc(_0x3abe06){const _0x22fd39=_0x29b917,_0x1867b7=_0x3abe06['replace'](/\/\*[\s\S]*?\*\//g,''),_0x8625d8=_0x1867b7['replace'](/^\s*\/\/.*$/gm,''),_0x1a27d8=_0x8625d8['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x22fd39(0xa2)](_0x1a27d8);}async function removeOpencodePluginConfig(_0x247787){const _0xf9750a=_0x29b917,_0x5ed65f={'LmVVo':function(_0x5212f7,_0x3b8ce1){return _0x5212f7!==_0x3b8ce1;},'eHYHL':function(_0x49e32e,_0x279002){return _0x49e32e!==_0x279002;},'vxuGj':function(_0x1911e8,_0x9d29f7,_0x5f1d35){return _0x1911e8(_0x9d29f7,_0x5f1d35);},'egxam':'utf-8','XLTSQ':function(_0x27efb6,_0x737765){return _0x27efb6===_0x737765;}};if(!existsSync(_0x247787))return![];let _0x1548fc;try{const _0x5e144c=await _0x5ed65f['vxuGj'](readFile,_0x247787,_0x5ed65f['egxam']);_0x1548fc=parseJsonc(_0x5e144c);}catch{return![];}const _0x48b53f=Array[_0xf9750a(0x9e)](_0x1548fc[_0xf9750a(0x8b)])?_0x1548fc[_0xf9750a(0x8b)]:[];if(_0x5ed65f['XLTSQ'](_0x48b53f['length'],0x0))return![];const _0x3c81f4=_0x48b53f[_0xf9750a(0xba)](_0x299117=>{const _0x2781a9=_0xf9750a;if(_0x5ed65f[_0x2781a9(0x98)](typeof _0x299117,_0x2781a9(0x96)))return!![];return _0x5ed65f[_0x2781a9(0xaf)](_0x299117,opencodePluginName);});if(_0x5ed65f['XLTSQ'](_0x3c81f4['length'],_0x48b53f['length']))return![];return _0x5ed65f[_0xf9750a(0x87)](_0x3c81f4[_0xf9750a(0x9c)],0x0)?delete _0x1548fc['plugin']:_0x1548fc[_0xf9750a(0x8b)]=_0x3c81f4,await writeFile(_0x247787,JSON[_0xf9750a(0x85)](_0x1548fc,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x24c8cb){const _0x3a4514=_0x29b917,_0x1b95f4={'ScQsO':'plugin','DARiq':'--scope','vkxdB':'claude','WJIka':'pipe','ZwdPB':function(_0x1fc858,_0x302893){return _0x1fc858===_0x302893;},'fbyQP':_0x3a4514(0x90)};return new Promise(_0x147bb7=>{const _0x560d63=_0x3a4514,_0x23650e={'Sgqei':function(_0x26833a,_0x2f586f){return _0x26833a===_0x2f586f;}},_0x225121=[_0x1b95f4[_0x560d63(0x81)],_0x560d63(0xa3),'ranger@trailhead'];_0x24c8cb&&_0x225121[_0x560d63(0x8f)](_0x1b95f4[_0x560d63(0x92)],_0x24c8cb);const _0x2b5886=spawn(_0x1b95f4[_0x560d63(0x97)],_0x225121,{'stdio':_0x1b95f4[_0x560d63(0x9b)],'shell':_0x1b95f4[_0x560d63(0xa7)](process['platform'],_0x1b95f4['fbyQP'])});_0x2b5886['on']('close',_0x2fab4f=>{const _0x45b13f=_0x560d63;_0x147bb7(_0x23650e[_0x45b13f(0xa9)](_0x2fab4f,0x0));}),_0x2b5886['on'](_0x560d63(0x8e),()=>{_0x147bb7(![]);});});}async function removeMarketplace(){const _0x3522b9=_0x29b917,_0x2d8354={'jPdJT':function(_0x394768,_0x540901){return _0x394768(_0x540901);},'xENpY':function(_0x2cabd1,_0x23cdcf,_0x49d26f,_0x3e198d){return _0x2cabd1(_0x23cdcf,_0x49d26f,_0x3e198d);},'EkVdJ':_0x3522b9(0x8b),'IqzwO':'remove','fZYoB':_0x3522b9(0x90)};return new Promise(_0x549d9e=>{const _0xed36ca=_0x3522b9,_0x268889={'jOmJs':function(_0x456045,_0x500132){return _0x2d8354['jPdJT'](_0x456045,_0x500132);}},_0x3eb3f8=_0x2d8354[_0xed36ca(0x94)](spawn,_0xed36ca(0xae),[_0x2d8354[_0xed36ca(0xa0)],_0xed36ca(0x8c),_0x2d8354['IqzwO'],'trailhead'],{'stdio':_0xed36ca(0x82),'shell':process[_0xed36ca(0x91)]===_0x2d8354['fZYoB']});_0x3eb3f8['on']('close',_0x2a0540=>{_0x549d9e(_0x2a0540===0x0);}),_0x3eb3f8['on']('error',()=>{const _0x45749f=_0xed36ca;_0x268889[_0x45749f(0xaa)](_0x549d9e,![]);});});}export async function clean(){const _0x31ca2b=_0x29b917,_0x9a7c09={'vaQfN':function(_0x1014a4){return _0x1014a4();},'Ihatv':function(_0x11fb26){return _0x11fb26();},'fQblx':function(_0x3cb99f,_0x461d64){return _0x3cb99f(_0x461d64);},'SwRNL':function(_0xffbdb7,_0x41e390,_0xa39e95){return _0xffbdb7(_0x41e390,_0xa39e95);},'VCrnp':_0x31ca2b(0xa8),'hQiEn':function(_0x2e6570){return _0x2e6570();},'UpfnD':function(_0x5b3492,_0x1ae7cf){return _0x5b3492(_0x1ae7cf);},'nGaun':function(_0x50b2a9,_0x308602){return _0x50b2a9(_0x308602);},'yYmbw':function(_0x36f25a,_0x2d1d87){return _0x36f25a(_0x2d1d87);},'xFyJO':_0x31ca2b(0x93),'zEIYM':function(_0x3b9089,_0x2efae7,_0x403102){return _0x3b9089(_0x2efae7,_0x403102);},'zcnwY':'opencode.json','nIaNA':_0x31ca2b(0xb6),'tifea':'✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','fDVkj':_0x31ca2b(0xad),'XnXLw':function(_0x256e63,_0xb319b3){return _0x256e63(_0xb319b3);},'WVfAH':'project','DBYDZ':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','DrFXz':function(_0x66e298){return _0x66e298();},'ZPJsF':'\x0a✅\x20Cleanup\x20complete!\x0a'};console['log']('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x5c3e58=![];try{await _0x9a7c09[_0x31ca2b(0x89)](deleteAllCredentials),console[_0x31ca2b(0x80)](_0x31ca2b(0x99)),_0x5c3e58=!![];}catch{}const _0xc54dd4=_0x9a7c09[_0x31ca2b(0xa1)](getCacheFile);_0x9a7c09['fQblx'](existsSync,_0xc54dd4)&&(await rm(_0xc54dd4),_0x5c3e58=!![]);const _0x42dd65=getRangerDir();_0x9a7c09[_0x31ca2b(0xa5)](existsSync,_0x42dd65)&&(await _0x9a7c09[_0x31ca2b(0x8d)](rm,_0x42dd65,{'recursive':!![]}),console[_0x31ca2b(0x80)](_0x9a7c09[_0x31ca2b(0xb1)]),_0x5c3e58=!![]);const _0x49e17b=_0x9a7c09[_0x31ca2b(0xb8)](getProjectSkillsDir);for(const _0x599028 of skillsToRemove){const _0x2d45c4=join(_0x49e17b,_0x599028);existsSync(_0x2d45c4)&&(await rm(_0x2d45c4,{'recursive':!![]}),console[_0x31ca2b(0x80)](_0x31ca2b(0x83)+_0x599028),_0x5c3e58=!![]);}const _0x24b6dc=getUserSkillsDir();for(const _0x5adc43 of skillsToRemove){const _0x55faeb=_0x9a7c09[_0x31ca2b(0x8d)](join,_0x24b6dc,_0x5adc43);_0x9a7c09[_0x31ca2b(0x86)](existsSync,_0x55faeb)&&(await _0x9a7c09[_0x31ca2b(0x8d)](rm,_0x55faeb,{'recursive':!![]}),console[_0x31ca2b(0x80)]('✓\x20Removed\x20user\x20skill:\x20'+_0x5adc43),_0x5c3e58=!![]);}const _0xe8a32e=_0x9a7c09['nGaun'](getOpencodeSkillsDir,'project');for(const _0x233931 of skillsToRemove){const _0x51e243=join(_0xe8a32e,_0x233931);_0x9a7c09['yYmbw'](existsSync,_0x51e243)&&(await _0x9a7c09['SwRNL'](rm,_0x51e243,{'recursive':!![]}),console['log'](_0x31ca2b(0xa4)+_0x233931),_0x5c3e58=!![]);}const _0x492510=getOpencodeSkillsDir(_0x9a7c09['xFyJO']);for(const _0xbdfdd6 of skillsToRemove){const _0x10bb40=_0x9a7c09[_0x31ca2b(0xbb)](join,_0x492510,_0xbdfdd6);_0x9a7c09[_0x31ca2b(0xab)](existsSync,_0x10bb40)&&(await rm(_0x10bb40,{'recursive':!![]}),console[_0x31ca2b(0x80)](_0x31ca2b(0xb0)+_0xbdfdd6),_0x5c3e58=!![]);}const _0x452550=join(getOpencodeConfigDir(_0x31ca2b(0x9a)),_0x9a7c09[_0x31ca2b(0xb3)]);await removeOpencodePluginConfig(_0x452550)&&(console[_0x31ca2b(0x80)](_0x9a7c09[_0x31ca2b(0xa6)]),_0x5c3e58=!![]);const _0x4411e3=_0x9a7c09[_0x31ca2b(0xbb)](join,getOpencodeConfigDir('user'),_0x9a7c09['zcnwY']);await _0x9a7c09['fQblx'](removeOpencodePluginConfig,_0x4411e3)&&(console[_0x31ca2b(0x80)](_0x9a7c09['tifea']),_0x5c3e58=!![]);const _0x376055=await uninstallClaudePlugin();_0x376055&&(console['log'](_0x9a7c09['fDVkj']),_0x5c3e58=!![]);const _0x4cd3f0=await _0x9a7c09['XnXLw'](uninstallClaudePlugin,_0x9a7c09[_0x31ca2b(0xac)]);_0x4cd3f0&&(console['log'](_0x9a7c09[_0x31ca2b(0x8a)]),_0x5c3e58=!![]);const _0x4d2bc4=await _0x9a7c09['DrFXz'](removeMarketplace);_0x4d2bc4&&(console['log'](_0x31ca2b(0xbc)),_0x5c3e58=!![]),_0x5c3e58?console[_0x31ca2b(0x80)](_0x9a7c09['ZPJsF']):console[_0x31ca2b(0x80)]('Nothing\x20to\x20clean\x20up.\x0a');}
@@ -1 +1 @@
1
- (function(_0x2af2bd,_0x2f1de2){const _0x2c7463=_0x35ed,_0x37121d=_0x2af2bd();while(!![]){try{const _0x222518=parseInt(_0x2c7463(0x1d7))/0x1*(parseInt(_0x2c7463(0x1da))/0x2)+-parseInt(_0x2c7463(0x1d9))/0x3*(-parseInt(_0x2c7463(0x1e4))/0x4)+-parseInt(_0x2c7463(0x1d5))/0x5+-parseInt(_0x2c7463(0x1e6))/0x6+parseInt(_0x2c7463(0x1e8))/0x7*(-parseInt(_0x2c7463(0x1df))/0x8)+-parseInt(_0x2c7463(0x1d2))/0x9*(-parseInt(_0x2c7463(0x1e2))/0xa)+-parseInt(_0x2c7463(0x1d4))/0xb*(parseInt(_0x2c7463(0x1de))/0xc);if(_0x222518===_0x2f1de2)break;else _0x37121d['push'](_0x37121d['shift']());}catch(_0xaa0f12){_0x37121d['push'](_0x37121d['shift']());}}}(_0x20a4,0xe82c6));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function _0x20a4(){const _0x271346=['\x22\x20does\x20not\x20exist.','64HQaQtn','AHkyw','3XvAbst','34436mlZncY','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','pyEKc','Profile\x20\x22','10056XLSDZt','3401864vKPRNH','(not\x20set)','fuaRd','5661940WMWigA','Removed\x20','3946772hUYbYK','KFhPX','4402170ogAkwk','log','7HSWhgc','LWpDP','18OyFaIE','MmfXn','440PLAZnG','5388015OelGrJ'];_0x20a4=function(){return _0x271346;};return _0x20a4();}function parseValue(_0x23b027,_0x5bf6ce){const _0x1a958c={'iLemD':function(_0x12a36b,_0x500416){return _0x12a36b===_0x500416;},'rgwDp':'false'};if(BOOLEAN_KEYS['includes'](_0x23b027)){if(_0x1a958c['iLemD'](_0x5bf6ce,'true'))return!![];if(_0x5bf6ce===_0x1a958c['rgwDp'])return![];throw new Error('Invalid\x20value\x20for\x20'+_0x23b027+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x5bf6ce;}export async function configSet(_0x4d438b,_0x27dc45,_0x5d9ed4){const _0x3927dc=_0x35ed,_0x1f7b4c={'AHkyw':function(_0x265f15,_0xd28349){return _0x265f15(_0xd28349);},'NjmUy':function(_0x10a36c,_0x3162a0,_0xd38029){return _0x10a36c(_0x3162a0,_0xd38029);},'LWpDP':function(_0x581683,_0x2699cf,_0xdc9edb,_0x5459a8){return _0x581683(_0x2699cf,_0xdc9edb,_0x5459a8);}},_0x450846=_0x1f7b4c['AHkyw'](getEnvDir,_0x4d438b);if(!_0x1f7b4c['AHkyw'](existsSync,_0x450846))throw new Error(_0x3927dc(0x1dd)+_0x4d438b+_0x3927dc(0x1db)+_0x4d438b);const _0x322df0=await _0x1f7b4c[_0x3927dc(0x1d8)](loadSettings,_0x4d438b),_0x12a114=_0x1f7b4c['NjmUy'](parseValue,_0x27dc45,_0x5d9ed4);_0x1f7b4c[_0x3927dc(0x1e9)](setNestedValue,_0x322df0,_0x27dc45,_0x12a114),await saveSettings(_0x4d438b,_0x322df0),console['log']('Set\x20'+_0x27dc45+'\x20=\x20'+_0x12a114);}function _0x35ed(_0x22749d,_0x480141){_0x22749d=_0x22749d-0x1d2;const _0x20a46e=_0x20a4();let _0x35edf4=_0x20a46e[_0x22749d];return _0x35edf4;}export async function configGet(_0xfee9cc,_0x201a1d){const _0x4281f5=_0x35ed,_0x25d411={'Wgwia':function(_0x21eecd,_0x4b4d41){return _0x21eecd(_0x4b4d41);},'fuaRd':function(_0x480178,_0x2468c2,_0x3dcf75){return _0x480178(_0x2468c2,_0x3dcf75);},'MmfXn':function(_0x3fff23,_0x1ae074){return _0x3fff23===_0x1ae074;},'pyEKc':'object'},_0x2474f2=_0x25d411['Wgwia'](getEnvDir,_0xfee9cc);if(!existsSync(_0x2474f2))throw new Error(_0x4281f5(0x1dd)+_0xfee9cc+_0x4281f5(0x1d6));const _0x371c3d=await loadSettings(_0xfee9cc),_0x2ed446=_0x25d411[_0x4281f5(0x1e1)](getNestedValue,_0x371c3d,_0x201a1d);if(_0x25d411[_0x4281f5(0x1d3)](_0x2ed446,undefined))console[_0x4281f5(0x1e7)](_0x4281f5(0x1e0));else typeof _0x2ed446===_0x25d411[_0x4281f5(0x1dc)]?console[_0x4281f5(0x1e7)](JSON['stringify'](_0x2ed446,null,0x2)):console[_0x4281f5(0x1e7)](_0x2ed446);}export async function configList(_0x39e2f6){const _0x33b2d0=_0x35ed,_0x582b5a={'KFhPX':function(_0x20a2e3,_0x448142){return _0x20a2e3(_0x448142);}},_0x4bbf33=_0x582b5a['KFhPX'](getSettingsPath,_0x39e2f6);if(!existsSync(_0x4bbf33)){const _0x538789=getEnvDir(_0x39e2f6);if(!_0x582b5a[_0x33b2d0(0x1e5)](existsSync,_0x538789))throw new Error(_0x33b2d0(0x1dd)+_0x39e2f6+_0x33b2d0(0x1d6));console[_0x33b2d0(0x1e7)]('No\x20configuration\x20set\x20for\x20\x22'+_0x39e2f6+'\x22');return;}const _0x3b1ce1=await loadSettings(_0x39e2f6),_0x2787e1=formatSettings(_0x3b1ce1);!_0x2787e1?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x39e2f6+'\x22'):console['log'](_0x2787e1);}export async function configUnset(_0x5cc09b,_0x19ba77){const _0x48d151=_0x35ed,_0x5222fd={'XwMel':function(_0xfbd601,_0x47e7c7){return _0xfbd601(_0x47e7c7);},'VtvqF':function(_0xf7526,_0x2e2a53,_0x2ad309){return _0xf7526(_0x2e2a53,_0x2ad309);}},_0x180c2c=getEnvDir(_0x5cc09b);if(!_0x5222fd['XwMel'](existsSync,_0x180c2c))throw new Error(_0x48d151(0x1dd)+_0x5cc09b+_0x48d151(0x1d6));const _0x539f5f=await loadSettings(_0x5cc09b),_0x233750=_0x5222fd['VtvqF'](deleteNestedValue,_0x539f5f,_0x19ba77);_0x233750?(await saveSettings(_0x5cc09b,_0x539f5f),console['log'](_0x48d151(0x1e3)+_0x19ba77)):console[_0x48d151(0x1e7)]('Key\x20\x22'+_0x19ba77+'\x22\x20not\x20found');}
1
+ function _0x46ed(_0x5a02d1,_0x3c6b42){_0x5a02d1=_0x5a02d1-0xf3;const _0x16e1a6=_0x16e1();let _0x46ed3b=_0x16e1a6[_0x5a02d1];return _0x46ed3b;}const _0xfe1c9=_0x46ed;(function(_0x31787e,_0x8ef39b){const _0x48254f=_0x46ed,_0x2aa9af=_0x31787e();while(!![]){try{const _0x5dcc2e=-parseInt(_0x48254f(0x11c))/0x1+-parseInt(_0x48254f(0x11f))/0x2*(-parseInt(_0x48254f(0x10e))/0x3)+-parseInt(_0x48254f(0x11d))/0x4+-parseInt(_0x48254f(0xfa))/0x5*(-parseInt(_0x48254f(0x123))/0x6)+parseInt(_0x48254f(0x112))/0x7+parseInt(_0x48254f(0x109))/0x8*(-parseInt(_0x48254f(0x108))/0x9)+-parseInt(_0x48254f(0x104))/0xa*(parseInt(_0x48254f(0x124))/0xb);if(_0x5dcc2e===_0x8ef39b)break;else _0x2aa9af['push'](_0x2aa9af['shift']());}catch(_0x3c5e88){_0x2aa9af['push'](_0x2aa9af['shift']());}}}(_0x16e1,0x83541));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',_0xfe1c9(0x117)];function parseLocalValue(_0x5733e6,_0xf2111d){const _0x71dc4b=_0xfe1c9,_0x96d022={'UMWkU':function(_0x248c5b,_0x2a255a){return _0x248c5b===_0x2a255a;},'gdVqb':'true'};if(BOOLEAN_KEYS[_0x71dc4b(0x11b)](_0x5733e6)){if(_0x96d022['UMWkU'](_0xf2111d,_0x96d022['gdVqb']))return!![];if(_0xf2111d==='false')return![];throw new Error(_0x71dc4b(0xf3)+_0x5733e6+_0x71dc4b(0xff));}return _0xf2111d;}function parseOverrideValue(_0x22e7de){const _0x50d216=_0xfe1c9,_0x1bdf3b={'bYWoR':'true','rBgCw':function(_0x16c689,_0x3af897){return _0x16c689===_0x3af897;},'XRrQu':function(_0x1dcff4,_0x3c6c79){return _0x1dcff4(_0x3c6c79);}};if(_0x22e7de===_0x1bdf3b[_0x50d216(0x107)])return!![];if(_0x1bdf3b[_0x50d216(0x10f)](_0x22e7de,'false'))return![];if(_0x22e7de==='null')return null;if(_0x22e7de===_0x50d216(0x105))return undefined;if(/^-?\d+$/[_0x50d216(0x115)](_0x22e7de)){const _0x409463=Number(_0x22e7de);if(Number['isSafeInteger'](_0x409463))return _0x409463;}if(/^-?\d+\.\d+$/['test'](_0x22e7de)){const _0x43420d=_0x1bdf3b['XRrQu'](Number,_0x22e7de);if(!Number['isNaN'](_0x43420d))return _0x43420d;}const _0x4c910b=_0x22e7de['trim']();if(_0x4c910b['startsWith']('{')&&_0x4c910b['endsWith']('}')||_0x4c910b['startsWith']('[')&&_0x4c910b['endsWith'](']'))try{return JSON[_0x50d216(0xf7)](_0x4c910b);}catch{}return _0x22e7de;}async function resolveProfileTarget(_0x3ba8a1){const _0x146468=_0xfe1c9,_0x123eee={'RPXUT':function(_0x26130c,_0x56537e){return _0x26130c(_0x56537e);},'RUcSD':function(_0x5a3950,_0x5543e9){return _0x5a3950(_0x5543e9);},'QklNB':'cloud'},_0x25a777=_0x123eee['RPXUT'](existsSync,_0x123eee['RUcSD'](getEnvDir,_0x3ba8a1));let _0x1579f8=![];try{const _0x5a5869=await _0x123eee['RUcSD'](fetchCloudProfile,_0x3ba8a1);_0x1579f8=_0x123eee['RPXUT'](Boolean,_0x5a5869);}catch{}if(_0x1579f8)return{'kind':_0x123eee['QklNB'],'alsoExistsElsewhere':_0x25a777};if(_0x25a777)return{'kind':'local','alsoExistsElsewhere':![]};throw new Error(_0x146468(0x118)+_0x3ba8a1+_0x146468(0xfb)+_0x3ba8a1);}function printDualExistsHint(_0x954e73){const _0x3e2677=_0xfe1c9;console[_0x3e2677(0x10a)](_0x3e2677(0x120)+_0x954e73+_0x3e2677(0x10b));}function _0x16e1(){const _0xc1d792=['(not\x20set)','tCsfS','stringify','parse','YzTOe','cJVQq','27860xNIkfO','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','No\x20configuration\x20set\x20for\x20\x22','BvSaQ','bhvPh',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','\x20=\x20','eBVeQ','settings','qIvPB','40rZlYhJ','undefined','Cleared\x20local\x20overrides\x20for\x20\x22','bYWoR','194490VIIHXZ','88tWiJbw','log','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','\x20for\x20\x22','116553dTFNus','rBgCw','TzGqV','alsoExistsElsewhere','3955798SaRmQI','length','\x22\x20not\x20found','test','Set\x20','allowInsecureLocalhost','Profile\x20\x22','kind','object','includes','649042LWoPZf','659000uJCiKU','npLbf','14hHNwJJ','\x20\x20Note:\x20\x22','PhxKJ','cloud','1098cCgaWs','735141CYLVel','Invalid\x20value\x20for\x20'];_0x16e1=function(){return _0xc1d792;};return _0x16e1();}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x57ae02){const _0x196a2a=_0xfe1c9,_0x8a34fb={'bhvPh':function(_0x15fc30,_0x383df9,_0x380694){return _0x15fc30(_0x383df9,_0x380694);},'iDnqd':function(_0x9a8e61){return _0x9a8e61();},'BvSaQ':function(_0x5b274e,_0xec4423,_0x12dd05){return _0x5b274e(_0xec4423,_0x12dd05);},'npLbf':function(_0x1db2f8,_0x1cd440){return _0x1db2f8??_0x1cd440;}},_0xb586f7=await fetchCloudProfile(_0x57ae02),_0x19ef04=_0x8a34fb[_0x196a2a(0xfe)](readProfileOverrides,_0x8a34fb['iDnqd'](getProjectPath),_0x57ae02);return _0x8a34fb[_0x196a2a(0xfd)](mergeCloudProfileSettings,_0xb586f7?.[_0x196a2a(0x102)]??{},_0x8a34fb[_0x196a2a(0x11e)](_0x19ef04,undefined));}export async function configSet(_0x342b4e,_0x3f6739,_0x676217){const _0x3e0dbb=_0xfe1c9,_0x128678={'eBVeQ':'cloud','TzGqV':function(_0x58b2b2,_0x1ed52d){return _0x58b2b2(_0x1ed52d);},'cJVQq':function(_0x3ce307){return _0x3ce307();},'Nvhou':function(_0x95b50b,_0xabe834,_0x50825b,_0x22e6f8){return _0x95b50b(_0xabe834,_0x50825b,_0x22e6f8);},'rAlBl':function(_0x3f8705,_0x34aebe,_0x3da41b){return _0x3f8705(_0x34aebe,_0x3da41b);}},_0xba5330=await resolveProfileTarget(_0x342b4e);if(_0xba5330[_0x3e0dbb(0x119)]===_0x128678[_0x3e0dbb(0x101)]){if(_0xba5330[_0x3e0dbb(0x111)])printDualExistsHint(_0x342b4e);const _0x204f13=_0x128678['TzGqV'](parseOverrideValue,_0x676217);setProfileOverride(_0x128678[_0x3e0dbb(0xf9)](getProjectPath),_0x342b4e,_0x3f6739,_0x204f13),console[_0x3e0dbb(0x10a)]('Set\x20'+_0x3f6739+'\x20=\x20'+JSON[_0x3e0dbb(0xf6)](_0x204f13)+_0x3e0dbb(0x10d)+_0x342b4e+'\x22');return;}const _0x5aa18b=await _0x128678[_0x3e0dbb(0x110)](loadSettings,_0x342b4e),_0x125d99=parseLocalValue(_0x3f6739,_0x676217);_0x128678['Nvhou'](setNestedValue,_0x5aa18b,_0x3f6739,_0x125d99),await _0x128678['rAlBl'](saveSettings,_0x342b4e,_0x5aa18b),console[_0x3e0dbb(0x10a)](_0x3e0dbb(0x116)+_0x3f6739+_0x3e0dbb(0x100)+_0x125d99+'\x20for\x20\x22'+_0x342b4e+'\x22');}export async function configGet(_0x21c9b3,_0x519ce3){const _0x26e125=_0xfe1c9,_0x45be54={'SZLrr':function(_0x5b3d5f,_0x354f20){return _0x5b3d5f===_0x354f20;},'QGStj':_0x26e125(0x11a)},_0x3b75de=await resolveProfileTarget(_0x21c9b3);if(_0x45be54['SZLrr'](_0x3b75de['kind'],'cloud')){const _0x30ea4e=await loadEffectiveCloudSettings(_0x21c9b3),_0x4c1d07=getNestedValue(_0x30ea4e,_0x519ce3);if(_0x45be54['SZLrr'](_0x4c1d07,undefined))console['log'](_0x26e125(0xf4));else typeof _0x4c1d07===_0x45be54['QGStj']?console[_0x26e125(0x10a)](JSON[_0x26e125(0xf6)](_0x4c1d07,null,0x2)):console[_0x26e125(0x10a)](_0x4c1d07);return;}const _0x55c646=await loadSettings(_0x21c9b3),_0x14b661=getNestedValue(_0x55c646,_0x519ce3);if(_0x45be54['SZLrr'](_0x14b661,undefined))console[_0x26e125(0x10a)]('(not\x20set)');else typeof _0x14b661==='object'?console[_0x26e125(0x10a)](JSON[_0x26e125(0xf6)](_0x14b661,null,0x2)):console[_0x26e125(0x10a)](_0x14b661);}export async function configList(_0x583e2d){const _0x32c243=_0xfe1c9,_0x4262df={'bFrCi':function(_0x318eb5,_0x266350){return _0x318eb5(_0x266350);},'olgZX':function(_0x2bb195,_0x5c3453){return _0x2bb195(_0x5c3453);},'KKAMA':function(_0xa035ce,_0x1ecddb){return _0xa035ce===_0x1ecddb;},'wqQil':function(_0x25b8f7,_0x5057dc){return _0x25b8f7(_0x5057dc);}},_0x3cda34=await _0x4262df['bFrCi'](resolveProfileTarget,_0x583e2d);if(_0x3cda34['kind']===_0x32c243(0x122)){const _0x582eaf=await _0x4262df['olgZX'](loadEffectiveCloudSettings,_0x583e2d);if(!_0x582eaf||_0x4262df['KKAMA'](Object['keys'](_0x582eaf)[_0x32c243(0x113)],0x0)){console[_0x32c243(0x10a)]('No\x20configuration\x20set\x20for\x20\x22'+_0x583e2d+'\x22');return;}console[_0x32c243(0x10a)](JSON['stringify'](_0x582eaf,null,0x2));return;}const _0x4200e0=getSettingsPath(_0x583e2d);if(!existsSync(_0x4200e0)){console[_0x32c243(0x10a)](_0x32c243(0xfc)+_0x583e2d+'\x22');return;}const _0x278ca7=await loadSettings(_0x583e2d),_0xf79d5=_0x4262df['wqQil'](formatSettings,_0x278ca7);!_0xf79d5?console['log'](_0x32c243(0xfc)+_0x583e2d+'\x22'):console[_0x32c243(0x10a)](_0xf79d5);}export async function configUnset(_0x29c173,_0x3d40fd){const _0x5bc41f=_0xfe1c9,_0x5ee9e7={'YzTOe':function(_0x248ead,_0x2d9a21){return _0x248ead(_0x2d9a21);},'qIvPB':function(_0x3ca3d2,_0x132e13){return _0x3ca3d2(_0x132e13);}},_0x3e36e7=await resolveProfileTarget(_0x29c173);if(_0x3e36e7[_0x5bc41f(0x119)]==='cloud'){if(_0x3e36e7[_0x5bc41f(0x111)])_0x5ee9e7[_0x5bc41f(0xf8)](printDualExistsHint,_0x29c173);const _0x2b7a0c=unsetProfileOverride(getProjectPath(),_0x29c173,_0x3d40fd);_0x2b7a0c?console[_0x5bc41f(0x10a)]('Removed\x20'+_0x3d40fd+_0x5bc41f(0x10d)+_0x29c173+'\x22'):console['log']('Key\x20\x22'+_0x3d40fd+_0x5bc41f(0x114));return;}const _0x38d000=await _0x5ee9e7[_0x5bc41f(0x103)](loadSettings,_0x29c173),_0xcffe1c=deleteNestedValue(_0x38d000,_0x3d40fd);_0xcffe1c?(await saveSettings(_0x29c173,_0x38d000),console[_0x5bc41f(0x10a)]('Removed\x20'+_0x3d40fd)):console['log']('Key\x20\x22'+_0x3d40fd+'\x22\x20not\x20found');}export async function configReset(_0x2ad5cf){const _0x46e2ef=_0xfe1c9,_0x4100af={'tCsfS':function(_0x1c9a44,_0xe214be){return _0x1c9a44(_0xe214be);},'PhxKJ':function(_0x47226e,_0x242c07){return _0x47226e===_0x242c07;},'IIGlV':'cloud'},_0x2a9edf=await _0x4100af[_0x46e2ef(0xf5)](resolveProfileTarget,_0x2ad5cf);if(_0x4100af[_0x46e2ef(0x121)](_0x2a9edf['kind'],_0x4100af['IIGlV'])){resetProfileOverrides(getProjectPath(),_0x2ad5cf),console['log'](_0x46e2ef(0x106)+_0x2ad5cf+'\x22');return;}console['log']('\x22'+_0x2ad5cf+_0x46e2ef(0x10c)+_0x2ad5cf+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- const _0x21e460=_0x5598;(function(_0x490c18,_0x84de8d){const _0x201223=_0x5598,_0x47980c=_0x490c18();while(!![]){try{const _0xd2b87e=parseInt(_0x201223(0x168))/0x1*(parseInt(_0x201223(0x164))/0x2)+-parseInt(_0x201223(0x152))/0x3+-parseInt(_0x201223(0x150))/0x4+-parseInt(_0x201223(0x151))/0x5*(parseInt(_0x201223(0x155))/0x6)+-parseInt(_0x201223(0x153))/0x7*(-parseInt(_0x201223(0x157))/0x8)+-parseInt(_0x201223(0x154))/0x9+-parseInt(_0x201223(0x16d))/0xa*(-parseInt(_0x201223(0x158))/0xb);if(_0xd2b87e===_0x84de8d)break;else _0x47980c['push'](_0x47980c['shift']());}catch(_0x20a6e3){_0x47980c['push'](_0x47980c['shift']());}}}(_0x4675,0xf37b5));import{readdir,stat}from'fs/promises';import{join}from'path';function _0x4675(){const _0x495a82=['startsWith','5584968LkUyHL','484PSmEGy','zpTPo','baseUrl','length','settings.json','iCrpF','\x0a*\x20=\x20active\x20profile','dbCqd','\x20\x20\x20\x20\x20\x20URL:\x20','environmentDetails','log','reports','110pGZLWp','bug-bashes','endsWith','AuaWl','28559igBuwA','includes','ulUbW','push','local','1006930PCvtVJ','uVFTS','.txt','isDirectory','7471896dShbFf','4583155zXQxra','4108956Pcpohq','7iLbFkD','13930200cGLgkS','6ddvbIU'];_0x4675=function(){return _0x495a82;};return _0x4675();}import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=['sessions',_0x21e460(0x165),_0x21e460(0x163),_0x21e460(0x16c),'ci'];export async function getEnvNames(){const _0x3637f1=_0x21e460,_0x266c4e={'zpTPo':function(_0x85931a,_0x26615a){return _0x85931a(_0x26615a);},'uVFTS':function(_0x1e4111){return _0x1e4111();},'dbCqd':function(_0x67d95e,_0x21e811,_0x5a54f8){return _0x67d95e(_0x21e811,_0x5a54f8);},'AuaWl':'local','sMEsi':function(_0x572131,_0x241018,_0xf8cf8c){return _0x572131(_0x241018,_0xf8cf8c);},'ulUbW':function(_0x49e396,_0x459f99){return _0x49e396(_0x459f99);},'eqMfN':function(_0x25dae1,_0x11fcd8){return _0x25dae1(_0x11fcd8);},'DPBGL':'legacy'},_0x16950a=getRangerDir();if(!_0x266c4e['zpTPo'](existsSync,_0x16950a))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2ad1f6=await _0x266c4e[_0x3637f1(0x16e)](readActiveProfileName),_0x2b1004=[],_0x81e187={},_0x5264e9=join(_0x16950a,'local');if(existsSync(_0x5264e9)){const _0x23ca5d=await _0x266c4e['zpTPo'](readdir,_0x5264e9);for(const _0x36bada of _0x23ca5d){const _0x42b7b3=_0x266c4e[_0x3637f1(0x15f)](join,_0x5264e9,_0x36bada),_0x3e61c3=await stat(_0x42b7b3);_0x3e61c3[_0x3637f1(0x14f)]()&&(_0x2b1004['push'](_0x36bada),_0x81e187[_0x36bada]=_0x266c4e[_0x3637f1(0x167)]);}}const _0x3d8f65=_0x266c4e['sMEsi'](join,_0x16950a,'ci');if(_0x266c4e[_0x3637f1(0x159)](existsSync,_0x3d8f65)){const _0x36d745=await readdir(_0x3d8f65);for(const _0x36021e of _0x36d745){const _0x32c2a2=join(_0x3d8f65,_0x36021e),_0x2a4778=await stat(_0x32c2a2);_0x2a4778[_0x3637f1(0x14f)]()&&(_0x2b1004[_0x3637f1(0x16b)](_0x36021e),_0x81e187[_0x36021e]='ci');}}const _0x49d8a7=await _0x266c4e[_0x3637f1(0x16a)](readdir,_0x16950a);for(const _0x351b25 of _0x49d8a7){if(NON_ENV_DIRS['includes'](_0x351b25))continue;if(_0x351b25[_0x3637f1(0x156)]('.'))continue;if(_0x351b25[_0x3637f1(0x166)](_0x3637f1(0x16f)))continue;const _0x465060=join(_0x16950a,_0x351b25),_0x5ec5c5=await stat(_0x465060);_0x5ec5c5['isDirectory']()&&_0x266c4e['eqMfN'](existsSync,join(_0x465060,_0x3637f1(0x15c)))&&(!_0x2b1004[_0x3637f1(0x169)](_0x351b25)&&(_0x2b1004['push'](_0x351b25),_0x81e187[_0x351b25]=_0x266c4e['DPBGL']));}return{'envNames':_0x2b1004,'activeEnv':_0x2ad1f6,'envTypes':_0x81e187};}function _0x5598(_0x204a91,_0x3462a8){_0x204a91=_0x204a91-0x14f;const _0x467595=_0x4675();let _0x5598e5=_0x467595[_0x204a91];return _0x5598e5;}export async function envList(){const _0x3a1173=_0x21e460,_0x20a6e0={'BwYyA':function(_0x41331e){return _0x41331e();},'iCrpF':function(_0x361711,_0x1ae3b6){return _0x361711===_0x1ae3b6;},'ABlKl':'\x0aNo\x20profiles\x20found.','aMDHT':function(_0x6aa62a,_0x1e98dc){return _0x6aa62a===_0x1e98dc;}},{envNames:_0x2fae30,activeEnv:_0x13c8e4,envTypes:_0x33522c}=await _0x20a6e0['BwYyA'](getEnvNames);if(_0x20a6e0[_0x3a1173(0x15d)](_0x2fae30[_0x3a1173(0x15b)],0x0)){console[_0x3a1173(0x162)](_0x20a6e0['ABlKl']),console['log']('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}console['log']('\x0aProfiles:');for(const _0x21a129 of _0x2fae30['sort']()){const _0x48db39=_0x20a6e0[_0x3a1173(0x15d)](_0x21a129,_0x13c8e4),_0x3018e4=_0x33522c[_0x21a129]||'local',_0x518121=await loadSettings(_0x21a129),_0x35eac0=_0x20a6e0['aMDHT'](_0x3018e4,'legacy')?'':'\x20['+_0x3018e4+']';console[_0x3a1173(0x162)]('\x20\x20'+(_0x48db39?'*\x20':'\x20\x20')+_0x21a129+_0x35eac0),_0x518121[_0x3a1173(0x15a)]&&console[_0x3a1173(0x162)](_0x3a1173(0x160)+_0x518121[_0x3a1173(0x15a)]),_0x518121[_0x3a1173(0x161)]&&console[_0x3a1173(0x162)]('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x518121[_0x3a1173(0x161)]);}_0x13c8e4&&console[_0x3a1173(0x162)](_0x3a1173(0x15e));}
1
+ const _0xd10e3d=_0x4534;(function(_0x5e406b,_0x2d2379){const _0x2d028e=_0x4534,_0x4c7c3e=_0x5e406b();while(!![]){try{const _0x34070e=-parseInt(_0x2d028e(0x19e))/0x1*(parseInt(_0x2d028e(0x1a2))/0x2)+-parseInt(_0x2d028e(0x1a6))/0x3+-parseInt(_0x2d028e(0x1b0))/0x4*(parseInt(_0x2d028e(0x1ac))/0x5)+parseInt(_0x2d028e(0x1a1))/0x6+parseInt(_0x2d028e(0x1a8))/0x7*(parseInt(_0x2d028e(0x1ae))/0x8)+parseInt(_0x2d028e(0x1a4))/0x9*(parseInt(_0x2d028e(0x1a5))/0xa)+parseInt(_0x2d028e(0x1c1))/0xb;if(_0x34070e===_0x2d2379)break;else _0x4c7c3e['push'](_0x4c7c3e['shift']());}catch(_0x11afd7){_0x4c7c3e['push'](_0x4c7c3e['shift']());}}}(_0x1fab,0x5893a));import{readdir,stat}from'fs/promises';function _0x4534(_0x9e75a8,_0x3535f3){_0x9e75a8=_0x9e75a8-0x19b;const _0x1fab0d=_0x1fab();let _0x4534a0=_0x1fab0d[_0x9e75a8];return _0x4534a0;}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';function _0x1fab(){const _0x318167=['CDWGS','.txt','settings.json','sessions','localeCompare','has','\x20\x20\x20\x20\x20\x20Session:\x20','\x20\x20\x20\x20\x20\x20Details:\x20','IDTOy','sessionUpdatedAt','name','13051863CVLofG','QFmos','environmentDetails','push','29fjlrQk','length','CPHCt','1122876QnkQwb','33414jYoPgF','\x0a*\x20=\x20active\x20profile','9RvbNvp','3974330SVzdkC','1349418BVWtxi','local','216517OlOiaI','sort','includes','map','5chxmrB','quoRg','24IqYzQv','isDirectory','2267144sjzGur','\x20[cloud]','startsWith','environmentKey','endsWith','log'];_0x1fab=function(){return _0x318167;};return _0x1fab();}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0xd10e3d(0x1b9),'bug-bashes','reports',_0xd10e3d(0x1a7),'ci'];export async function getEnvNames(){const _0x22b085=_0xd10e3d,_0x20af88={'uMKwa':function(_0x5d86d4){return _0x5d86d4();},'pLsgl':function(_0x5e00f7,_0x59f16a,_0x29c31e){return _0x5e00f7(_0x59f16a,_0x29c31e);},'mipRM':function(_0x43244b,_0x2e4cca){return _0x43244b(_0x2e4cca);},'quoRg':function(_0x43ce41,_0x867ab5){return _0x43ce41(_0x867ab5);},'IDTOy':function(_0x28b033,_0x52e75a){return _0x28b033(_0x52e75a);},'zCcZb':function(_0x501f03,_0x4a99f0){return _0x501f03(_0x4a99f0);},'CPHCt':function(_0x5af94f,_0x918d13){return _0x5af94f(_0x918d13);},'CDWGS':function(_0x2f52d1,_0x4aca93){return _0x2f52d1(_0x4aca93);},'mGHwH':'legacy'},_0x4549b9=_0x20af88['uMKwa'](getRangerDir);if(!existsSync(_0x4549b9))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x17041a=await readActiveProfileName(),_0x40abdc=[],_0x3d0964={},_0x21f42b=_0x20af88['pLsgl'](join,_0x4549b9,'local');if(_0x20af88['mipRM'](existsSync,_0x21f42b)){const _0x4e3f84=await _0x20af88['quoRg'](readdir,_0x21f42b);for(const _0x1400b2 of _0x4e3f84){const _0xf0ad5e=join(_0x21f42b,_0x1400b2),_0x56c9c3=await _0x20af88[_0x22b085(0x1ad)](stat,_0xf0ad5e);_0x56c9c3[_0x22b085(0x1af)]()&&(_0x40abdc[_0x22b085(0x19d)](_0x1400b2),_0x3d0964[_0x1400b2]=_0x22b085(0x1a7));}}const _0x500b4c=join(_0x4549b9,'ci');if(_0x20af88['IDTOy'](existsSync,_0x500b4c)){const _0x28663d=await _0x20af88['IDTOy'](readdir,_0x500b4c);for(const _0x497495 of _0x28663d){const _0x376831=_0x20af88['pLsgl'](join,_0x500b4c,_0x497495),_0x402db0=await _0x20af88['zCcZb'](stat,_0x376831);_0x402db0[_0x22b085(0x1af)]()&&(_0x40abdc['push'](_0x497495),_0x3d0964[_0x497495]='ci');}}const _0x361234=await _0x20af88[_0x22b085(0x1a0)](readdir,_0x4549b9);for(const _0xc72163 of _0x361234){if(NON_ENV_DIRS[_0x22b085(0x1aa)](_0xc72163))continue;if(_0xc72163[_0x22b085(0x1b2)]('.'))continue;if(_0xc72163[_0x22b085(0x1b4)](_0x22b085(0x1b7)))continue;const _0x218abc=_0x20af88['pLsgl'](join,_0x4549b9,_0xc72163),_0x5362da=await _0x20af88[_0x22b085(0x1be)](stat,_0x218abc);_0x5362da[_0x22b085(0x1af)]()&&_0x20af88[_0x22b085(0x1b6)](existsSync,_0x20af88['pLsgl'](join,_0x218abc,_0x22b085(0x1b8)))&&(!_0x40abdc['includes'](_0xc72163)&&(_0x40abdc[_0x22b085(0x19d)](_0xc72163),_0x3d0964[_0xc72163]=_0x20af88['mGHwH']));}return{'envNames':_0x40abdc,'activeEnv':_0x17041a,'envTypes':_0x3d0964};}export async function envList(){const _0x14cdbf=_0xd10e3d,_0x3e4cb8={'kgqYK':function(_0x40d1bf,_0x416027){return _0x40d1bf===_0x416027;},'fOZRk':'\x0aNo\x20profiles\x20found.','GrEmC':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','UMbME':'\x0aLocal\x20Profiles:','dNBLa':function(_0x4ee1e7,_0x12709a){return _0x4ee1e7>_0x12709a;},'QFmos':'\x0aCloud\x20Profiles:','ZSMCn':'no\x20session'},{envNames:_0x47ad71,activeEnv:_0x56d66b,envTypes:_0x39c349}=await getEnvNames();let _0x654b8e=[];try{_0x654b8e=await listCloudProfiles();}catch{}if(_0x3e4cb8['kgqYK'](_0x47ad71[_0x14cdbf(0x19f)],0x0)&&_0x654b8e[_0x14cdbf(0x19f)]===0x0){console['log'](_0x3e4cb8['fOZRk']),console['log'](_0x3e4cb8['GrEmC']);return;}const _0x14b988=new Set(_0x654b8e[_0x14cdbf(0x1ab)](_0x452ed7=>_0x452ed7['name']));if(_0x47ad71[_0x14cdbf(0x19f)]>0x0){console[_0x14cdbf(0x1b5)](_0x3e4cb8['UMbME']);for(const _0x11f6d4 of _0x47ad71['sort']()){const _0x4543e8=_0x11f6d4===_0x56d66b&&!_0x14b988[_0x14cdbf(0x1bb)](_0x11f6d4),_0x28ef23=_0x39c349[_0x11f6d4]||'local',_0x253fb9=await loadSettings(_0x11f6d4),_0x2956fb=_0x28ef23==='legacy'?'':'\x20['+_0x28ef23+']';console[_0x14cdbf(0x1b5)]('\x20\x20'+(_0x4543e8?'*\x20':'\x20\x20')+_0x11f6d4+_0x2956fb),_0x253fb9['baseUrl']&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x253fb9['baseUrl']),_0x253fb9[_0x14cdbf(0x19c)]&&console[_0x14cdbf(0x1b5)](_0x14cdbf(0x1bd)+_0x253fb9['environmentDetails']);}}if(_0x3e4cb8['dNBLa'](_0x654b8e['length'],0x0)){console['log'](_0x3e4cb8[_0x14cdbf(0x19b)]);for(const _0x46e8c6 of _0x654b8e[_0x14cdbf(0x1a9)]((_0x20c521,_0x9eebf8)=>_0x20c521[_0x14cdbf(0x1c0)][_0x14cdbf(0x1ba)](_0x9eebf8[_0x14cdbf(0x1c0)]))){const _0x1d7c88=_0x3e4cb8['kgqYK'](_0x46e8c6[_0x14cdbf(0x1c0)],_0x56d66b),_0x5f9166=_0x46e8c6['environmentKey']?'\x20('+_0x46e8c6[_0x14cdbf(0x1b3)]+')':'',_0x5a7642=_0x46e8c6['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x46e8c6[_0x14cdbf(0x1bf)]+')':_0x3e4cb8['ZSMCn'];console['log']('\x20\x20'+(_0x1d7c88?'*\x20':'\x20\x20')+_0x46e8c6[_0x14cdbf(0x1c0)]+_0x14cdbf(0x1b1)+_0x5f9166),console['log'](_0x14cdbf(0x1bc)+_0x5a7642);}}_0x56d66b&&console[_0x14cdbf(0x1b5)](_0x14cdbf(0x1a3));}
@@ -1 +1 @@
1
- const _0x4ced5c=_0x5176;function _0x5176(_0x1875cf,_0x1d6f90){_0x1875cf=_0x1875cf-0x1ca;const _0x39749f=_0x3974();let _0x5176a0=_0x39749f[_0x1875cf];return _0x5176a0;}(function(_0x2c7701,_0x44b77b){const _0x35b264=_0x5176,_0x1a49cc=_0x2c7701();while(!![]){try{const _0x52d77e=-parseInt(_0x35b264(0x24c))/0x1+parseInt(_0x35b264(0x1fe))/0x2*(parseInt(_0x35b264(0x202))/0x3)+-parseInt(_0x35b264(0x1eb))/0x4*(-parseInt(_0x35b264(0x1da))/0x5)+-parseInt(_0x35b264(0x240))/0x6*(-parseInt(_0x35b264(0x216))/0x7)+-parseInt(_0x35b264(0x1f7))/0x8+parseInt(_0x35b264(0x2a3))/0x9*(parseInt(_0x35b264(0x20e))/0xa)+-parseInt(_0x35b264(0x28b))/0xb;if(_0x52d77e===_0x44b77b)break;else _0x1a49cc['push'](_0x1a49cc['shift']());}catch(_0x527aa7){_0x1a49cc['push'](_0x1a49cc['shift']());}}}(_0x3974,0x5c739));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3493bd from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE=_0x4ced5c(0x1ec),bold=_0x21e25e=>_0x4ced5c(0x295)+_0x21e25e+'\x1b[0m';function getGitRepoUrl(){const _0x477465=_0x4ced5c,_0x57ede0={'ABYsv':function(_0x386a94,_0x2b73fe,_0x2d6fcc){return _0x386a94(_0x2b73fe,_0x2d6fcc);},'ajSHg':_0x477465(0x201),'sPUPH':'pipe'};try{const _0x36be57=_0x57ede0['ABYsv'](execSync,_0x57ede0['ajSHg'],{'encoding':'utf-8','stdio':[_0x477465(0x28f),_0x57ede0[_0x477465(0x248)],_0x57ede0['sPUPH']]})['trim']();return _0x36be57[_0x477465(0x26a)](/\.git$/,'')[_0x477465(0x26a)](/^git@github\.com:/,_0x477465(0x1de))[_0x477465(0x26a)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x54b4bf=_0x4ced5c,_0x31e91a={'pmnhR':_0x54b4bf(0x293),'SjqAS':'utf-8','gtLun':'pipe'};try{return execSync(_0x31e91a[_0x54b4bf(0x20f)],{'encoding':_0x31e91a[_0x54b4bf(0x209)],'stdio':[_0x31e91a['gtLun'],_0x31e91a[_0x54b4bf(0x253)],_0x31e91a['gtLun']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x4eee8b=_0x4ced5c,_0x573ef5={'DOTlS':function(_0x1cb8f7,_0x1785da,_0x24ddcb){return _0x1cb8f7(_0x1785da,_0x24ddcb);},'KFEUy':function(_0x2a5129){return _0x2a5129();}},_0x4038f0=_0x573ef5[_0x4eee8b(0x2ae)](join,_0x573ef5['KFEUy'](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x4038f0))return null;try{const _0xae0415=await readFile(_0x4038f0,_0x4eee8b(0x1d2));return _0xae0415['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x494e9a){const _0x478f49=_0x4ced5c,_0x186f7b={'WQYaU':function(_0x43b2b1,_0x23915b,_0x8f963f,_0xe099d0){return _0x43b2b1(_0x23915b,_0x8f963f,_0xe099d0);},'ytOzH':_0x478f49(0x1d2)},_0x47351b=getRangerDir(),_0x5a195e=join(_0x47351b,ACTIVE_FEATURE_FILE);!existsSync(_0x47351b)&&await mkdir(_0x47351b,{'recursive':!![]}),await _0x186f7b[_0x478f49(0x20a)](writeFile,_0x5a195e,_0x494e9a,_0x186f7b['ytOzH']);}function getProgressDisplay(_0x31b9b9){const _0x220320=_0x4ced5c,_0x4f7263={'MsNHO':function(_0x4ba88b,_0x5bb6ba){return _0x4ba88b+_0x5bb6ba;},'cOaqp':function(_0x15b283,_0x6e84fe){return _0x15b283+_0x6e84fe;},'jWmYY':function(_0x10843b,_0x35227f){return _0x10843b/_0x35227f;},'ePmVu':function(_0xb588c3,_0x446850){return _0xb588c3>_0x446850;}},_0x50b6b7=_0x31b9b9[_0x220320(0x2a4)]||0x0,_0x3330fd=_0x31b9b9['verificationInProgressItems']||0x0,_0x48ad59=_0x31b9b9['blockedItems']||0x0,_0x20c525=_0x31b9b9[_0x220320(0x27e)]||0x0,_0x569932=_0x31b9b9['pendingItems']||0x0,_0x21eb35=_0x4f7263['MsNHO'](_0x4f7263['cOaqp'](_0x50b6b7+_0x3330fd,_0x48ad59),_0x20c525)+_0x569932;if(_0x21eb35===0x0)return'-';const _0x3357ee=0xa,_0x5ee37b=Math['round'](_0x4f7263[_0x220320(0x266)](_0x50b6b7,_0x21eb35)*_0x3357ee),_0x15106a='█'[_0x220320(0x255)](_0x5ee37b)+'░'[_0x220320(0x255)](_0x3357ee-_0x5ee37b),_0x49ddec=[];if(_0x4f7263['ePmVu'](_0x48ad59,0x0))_0x49ddec[_0x220320(0x232)](_0x48ad59+_0x220320(0x261));if(_0x20c525>0x0)_0x49ddec[_0x220320(0x232)](_0x20c525+'\x20incomplete');if(_0x3330fd>0x0)_0x49ddec[_0x220320(0x232)](_0x3330fd+_0x220320(0x281));const _0xfe2201=_0x49ddec['length']>0x0?'\x20('+_0x49ddec[_0x220320(0x1d5)](',\x20')+')':'';return _0x15106a+'\x20'+_0x50b6b7+'/'+_0x21eb35+_0x220320(0x208)+_0xfe2201;}function getCurrentSessionItems(_0x20927c,_0x4f3c3e){const _0x507f02=_0x4ced5c;if(!_0x20927c['currentSessionId'])return _0x4f3c3e['filter'](_0xd48bb3=>!_0xd48bb3['sessionId']);return _0x4f3c3e[_0x507f02(0x24e)](_0x48dbe5=>_0x48dbe5['sessionId']===_0x20927c[_0x507f02(0x1ed)]||!_0x48dbe5['sessionId']);}function displayFeature(_0x35ffce,_0x2d11c9){const _0x2a5590=_0x4ced5c,_0x178fc2={'BxHBp':'\x0a\x20\x20\x20Scenarios:','qxkmd':function(_0x4bb7ec,_0x34b2ed){return _0x4bb7ec<_0x34b2ed;},'xmzTt':_0x2a5590(0x234),'wuhxT':function(_0x3be74f,_0x538204){return _0x3be74f===_0x538204;},'HJORe':_0x2a5590(0x27a),'dUFXg':function(_0x5d89bd,_0x316863){return _0x5d89bd===_0x316863;},'GtIdm':function(_0x4dec94,_0x1bedfb){return _0x4dec94>_0x1bedfb;},'DoVrn':function(_0x58a17e,_0xc395ae){return _0x58a17e!==_0xc395ae;},'CgZmy':'\x20[has\x20reviewer\x20feedback]','qkFdg':function(_0x11861a,_0xd11fb9){return _0x11861a===_0xd11fb9;},'etnVw':_0x2a5590(0x210)};console['log']('\x0a'+_0x35ffce['name']+'\x20('+_0x35ffce['dashboardUrl']+')');_0x35ffce[_0x2a5590(0x26c)]&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x35ffce['stats']));_0x35ffce['description']&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Description:\x20'+_0x35ffce[_0x2a5590(0x264)]);_0x35ffce[_0x2a5590(0x251)]&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Repository:\x20'+_0x35ffce['gitRepoUrl']);_0x35ffce['gitBranch']&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Branch:\x20'+_0x35ffce[_0x2a5590(0x2ab)]);console[_0x2a5590(0x1e0)]('\x20\x20\x20Created:\x20'+new Date(_0x35ffce[_0x2a5590(0x1fd)])['toLocaleString']());_0x35ffce['completedAt']&&console[_0x2a5590(0x1e0)]('\x20\x20\x20Completed:\x20'+new Date(_0x35ffce['completedAt'])['toLocaleString']());if(_0x2d11c9&&_0x2d11c9['length']>0x0){console[_0x2a5590(0x1e0)](_0x178fc2[_0x2a5590(0x1d3)]);for(let _0x2818b5=0x0;_0x178fc2[_0x2a5590(0x1db)](_0x2818b5,_0x2d11c9[_0x2a5590(0x20b)]);_0x2818b5++){const _0x29c766=_0x2d11c9[_0x2818b5];let _0x3bd1d6;if(_0x29c766[_0x2a5590(0x22d)]===_0x178fc2['xmzTt']&&_0x29c766[_0x2a5590(0x1f1)]===_0x2a5590(0x23a))_0x3bd1d6='✅';else{if(_0x178fc2['wuhxT'](_0x29c766['status'],_0x178fc2['HJORe']))_0x3bd1d6='🟢';else{if(_0x178fc2[_0x2a5590(0x20d)](_0x29c766[_0x2a5590(0x22d)],'incomplete'))_0x3bd1d6='🟠';else{if(_0x178fc2[_0x2a5590(0x20d)](_0x29c766[_0x2a5590(0x22d)],_0x2a5590(0x254)))_0x3bd1d6='🛑';else{if(_0x29c766['status']==='closed')_0x3bd1d6='⛔';else _0x29c766['status']==='verification_in_progress'?_0x3bd1d6='⏳':_0x3bd1d6='⬜';}}}}const _0x11c76d=_0x29c766['version']>0x1?'\x20(v'+_0x29c766['version']+')':'',_0x99e2a=_0x178fc2['GtIdm'](_0x29c766[_0x2a5590(0x1f9)],0x1)&&_0x29c766['parentItemId']&&_0x178fc2['DoVrn'](_0x29c766[_0x2a5590(0x22d)],_0x178fc2[_0x2a5590(0x22b)])&&_0x178fc2[_0x2a5590(0x273)](_0x29c766['status'],_0x178fc2['HJORe'])?_0x178fc2['CgZmy']:'';console[_0x2a5590(0x1e0)]('\x20\x20\x20'+(_0x2818b5+0x1)+'.\x20'+_0x3bd1d6+'\x20'+_0x29c766['description']+_0x11c76d+_0x99e2a);_0x178fc2[_0x2a5590(0x20d)](_0x29c766[_0x2a5590(0x22d)],_0x2a5590(0x254))&&_0x29c766['blockedReason']&&console['log'](_0x2a5590(0x287)+_0x29c766[_0x2a5590(0x272)]);_0x178fc2['qkFdg'](_0x29c766[_0x2a5590(0x22d)],_0x178fc2['etnVw'])&&_0x29c766['incompleteReason']&&console[_0x2a5590(0x1e0)](_0x2a5590(0x1d8)+_0x29c766['incompleteReason']);if(_0x29c766['status']===_0x178fc2[_0x2a5590(0x22b)]&&_0x178fc2[_0x2a5590(0x200)](_0x29c766['terminalReason'],'approved'))console[_0x2a5590(0x1e0)](_0x2a5590(0x214));else _0x29c766[_0x2a5590(0x22d)]===_0x178fc2[_0x2a5590(0x22b)]&&_0x29c766[_0x2a5590(0x226)]&&console['log'](_0x2a5590(0x21d)+_0x29c766['canceledReason']);}}}export async function featureCreate(_0x1c6d4a,_0x2ca45c){const _0x9b3a08=_0x4ced5c,_0xab485d={'GCHMb':function(_0x3e9ba4){return _0x3e9ba4();},'HhFNw':function(_0x960862,_0x492666){return _0x960862(_0x492666);},'RjFSO':function(_0x2b763d,_0x40c852){return _0x2b763d(_0x40c852);},'pDwTB':function(_0x452b6f,_0x44c8a6){return _0x452b6f(_0x44c8a6);},'SvpCW':function(_0x1df0e3,_0x2b972a,_0x5d214c){return _0x1df0e3(_0x2b972a,_0x5d214c);},'yGoFp':function(_0x6bf8d6,_0x3821fc,_0x467f5d){return _0x6bf8d6(_0x3821fc,_0x467f5d);}},{envNames:_0x54b3d3}=await _0xab485d[_0x9b3a08(0x1cf)](getEnvNames);_0x54b3d3[_0x9b3a08(0x20b)]===0x0&&console[_0x9b3a08(0x277)]('\x0a'+_0xab485d[_0x9b3a08(0x2a9)](formatProfileRequiredMessage,_0x2f24b7=>bold(_0x2f24b7)));const _0x5f1a7c=_0x2ca45c['scenarios']?_0x2ca45c[_0x9b3a08(0x256)]['map'](_0x4cc073=>_0x4cc073['trim']()):[],_0x1a7e11=getGitRepoUrl(),_0x11cda7=_0xab485d['GCHMb'](getGitBranch);console['log'](_0x9b3a08(0x28c));const _0x57a1e7=await _0xab485d[_0x9b3a08(0x2a9)](createFeature,{'name':_0x1c6d4a,'description':_0x2ca45c[_0x9b3a08(0x264)],'checklist':_0x5f1a7c,'gitRepoUrl':_0x1a7e11,'gitBranch':_0x11cda7});await _0xab485d[_0x9b3a08(0x1e6)](setActiveFeatureId,_0x57a1e7['id']),await _0xab485d['pDwTB'](tryStartCurrentSession,_0x57a1e7['id']);const _0x287f96=process[_0x9b3a08(0x24f)][_0x9b3a08(0x1d9)];_0x287f96&&_0xab485d['SvpCW'](registerSession,_0x287f96,_0x57a1e7['id']),console[_0x9b3a08(0x1e0)](_0x9b3a08(0x250)+_0x57a1e7['id']),_0xab485d[_0x9b3a08(0x1e9)](displayFeature,_0x57a1e7,_0x57a1e7['checklistItems']),console['log'](_0x9b3a08(0x21f));}export async function featureList(_0x46973b){const _0x3d5c46=_0x4ced5c,_0x31a0e8={'WyUxX':function(_0x11fb01){return _0x11fb01();},'aaber':function(_0x5ef171,_0x4ae08c){return _0x5ef171===_0x4ae08c;},'gLbyA':_0x3d5c46(0x29e),'heGbj':function(_0x37ab34,_0x4f41f5){return _0x37ab34>_0x4f41f5;},'VackJ':function(_0x498e1c,_0x28ce85){return _0x498e1c(_0x28ce85);},'QgmAF':function(_0x100d2f,_0x5ad70d){return _0x100d2f+_0x5ad70d;},'ZWWrn':function(_0x686bb2,_0x34e010){return _0x686bb2!==_0x34e010;},'wDCLu':_0x3d5c46(0x267)},_0x5a5a62={'limit':_0x46973b['limit']??0xa,'offset':_0x46973b[_0x3d5c46(0x1d7)]??0x0,'includeDeleted':_0x46973b['includeDeleted']};_0x46973b[_0x3d5c46(0x263)]&&(_0x5a5a62['gitRepoUrl']=_0x31a0e8[_0x3d5c46(0x27f)](getGitRepoUrl),_0x5a5a62[_0x3d5c46(0x2ab)]=getGitBranch());const _0x378862=await listFeatures(_0x5a5a62);if(_0x31a0e8[_0x3d5c46(0x211)](_0x378862[_0x3d5c46(0x294)]['length'],0x0)){console['log'](_0x31a0e8['gLbyA']);return;}const _0x165f95=_0x31a0e8[_0x3d5c46(0x29d)](_0x378862[_0x3d5c46(0x21e)],_0x378862[_0x3d5c46(0x294)]['length'])?'Showing\x20'+_0x378862[_0x3d5c46(0x294)][_0x3d5c46(0x20b)]+'\x20of\x20'+_0x378862['totalCount']:_0x378862['totalCount']+'\x20feature\x20review(s)\x20found';console['log']('\x0a'+_0x165f95+':\x0a');for(const _0x399f4e of _0x378862['items']){const _0x5b1e2d=_0x3d5c46(0x26d)['split']('|');let _0x61abc2=0x0;while(!![]){switch(_0x5b1e2d[_0x61abc2++]){case'0':console['log'](_0x3d5c46(0x1ca)+new Date(_0x399f4e[_0x3d5c46(0x1fd)])['toLocaleDateString']());continue;case'1':console[_0x3d5c46(0x1e0)]('');continue;case'2':_0x399f4e[_0x3d5c46(0x2ab)]&&console['log'](_0x3d5c46(0x278)+_0x399f4e[_0x3d5c46(0x2ab)]);continue;case'3':_0x399f4e[_0x3d5c46(0x26c)]&&console[_0x3d5c46(0x1e0)](_0x3d5c46(0x230)+_0x31a0e8['VackJ'](getProgressDisplay,_0x399f4e[_0x3d5c46(0x26c)]));continue;case'4':console[_0x3d5c46(0x1e0)](''+_0x399f4e['name']);continue;case'5':console['log'](_0x3d5c46(0x29b)+_0x399f4e['id']);continue;}break;}}const _0x1195fa=_0x5a5a62[_0x3d5c46(0x26e)]??0xa,_0x196e16=_0x31a0e8['QgmAF'](_0x5a5a62['offset']??0x0,_0x378862['items']['length']);if(_0x196e16<_0x378862['totalCount']){const _0x463fc1=_0x31a0e8['ZWWrn'](_0x1195fa,0xa)?'\x20--limit\x20'+_0x1195fa:'',_0xa5c82d=_0x46973b[_0x3d5c46(0x263)]?'\x20--current-branch':'',_0x4a26c3=_0x46973b[_0x3d5c46(0x228)]?_0x31a0e8[_0x3d5c46(0x237)]:'';console['log'](_0x3d5c46(0x241)+_0x196e16+_0x463fc1+_0xa5c82d+_0x4a26c3);}}function _0x3974(){const _0x104cb9=['name','1158784oznymT','\x0aCreating\x20feature\x20review...','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','uOWxj','pipe','KRDsM','\x20\x20\x20\x20','en-US','git\x20rev-parse\x20--abbrev-ref\x20HEAD','items','\x1b[1m','textContent','ready','\x0aAvailable\x20scenarios:','storage','linkedSession','\x20\x20\x20ID:\x20','any','heGbj','\x0aNo\x20feature\x20reviews\x20found.','browserSessionId','HEsHI','dashboardUrl','Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','9aAZidX','verifiedItems','element','toFixed','\x20>\x20','latestReview','HhFNw','iteration','gitBranch','No\x20sessions\x20found.','pop','DOTlS','qaZxb','\x20\x20\x20Updated\x20branch\x20to:\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','\x0a❌\x20Invalid\x20scenario\x20index:\x20','unaddressedComments','\x20\x20\x20Created:\x20','UNDEz','\x20—\x20','nrRtH','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','GCHMb','Oecki','UCywK','utf-8','BxHBp','No\x20scenarios\x20found.','join','.\x20Feature\x20review\x20has\x20','offset','\x20\x20\x20\x20\x20\x20Incomplete:\x20','CLAUDE_SESSION_ID','906020XMBCek','qxkmd','map','):\x20\x22','github.com/','\x20\x20\x20\x20\x20📍\x20Annotation:\x20','log','canonicalFlow','0|2|5|3|4|1','selector','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','ejUrS','RjFSO','\x0a✅\x20Session\x20is\x20already\x20completed.','Scenario\x20','yGoFp','\x20concluded.','16TQrAfk','active-feature.txt','currentSessionId','domRef','comment_','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','terminalReason','in_progress','eNaYN','UdziB','from','find','3728168NtIdyq','mENRm','version','checklistItems','Unknown','QNWnt','createdAt','551810KgHYsw','LADeM','wuhxT','git\x20remote\x20get-url\x20origin','3qlGeeV','hBjpo','scenario','type','json','IjDLI','\x20verified','SjqAS','WQYaU','length','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','dUFXg','2773450vxfaCx','pmnhR','incomplete','aaber','VsCTu','\x20\x20\x20\x20\x20ID:\x20','\x20\x20\x20\x20\x20\x20Approved','stringify','14FtdkKr','IcFrG','IBPOp','.png','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','gakqM','assetType','\x20\x20\x20\x20\x20\x20Cancelled:\x20','totalCount','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','MImtA','Step\x20','\x0a✅\x20Resumed\x20feature\x20review:\x20','yoWlO','/artifacts/','canceledReason','LBWKp','includeDeleted','feedback-images','qOUPJ','xmzTt','exit','status','toLocaleString','split','\x20\x20\x20Progress:\x20','JRYEw','push','has','closed','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','bzokB','wDCLu','nUgWm','completedAt','approved','\x20\x20\x20\x20\x20Branch:\x20','RFfwi','\x20\x20💬\x20','\x20unaddressed\x20comment(s)','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','365730evmUoQ','Next\x20page:\x20ranger\x20list\x20--offset\x20','gpLen','\x20\x20\x20\x20\x20🎯\x20Element:\x20<','reports','location','list','all','sPUPH','slice','\x0a⚠️\x20\x20','Screenshot\x20','449930teTmvY','screenshot','filter','env','\x0a✅\x20Feature\x20review\x20created:\x20','gitRepoUrl','error','gtLun','blocked','repeat','scenarios','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','Ntbmt','output','nmfar','RAWLU','agentResponse','authorName','assetUrl','completed','\x20blocked','ztyBm','currentBranch','description','Current\x20session\x20not\x20found.','jWmYY','\x20--include-deleted','assets','\x0a✅\x20Session\x20','replace','incompleteReason','stats','4|5|3|2|0|1','limit','Wjwjx','stdin','wbBVE','blockedReason','DoVrn','stdout','spatial','isTTY','warn','\x20\x20\x20Branch:\x20','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','verified','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','\x20\x20✅\x20No\x20feedback\x20to\x20address','ALDvz','incompleteItems','WyUxX','AFWeE','\x20in\x20progress','OjomI','\x20\x20\x20\x20\x20📋\x20Selector:\x20','screenshotUrls','\x0a✅\x20Scenario\x20added','\x20\x20\x20▶️\x20Started\x20session\x20','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','isInteger'];_0x3974=function(){return _0x104cb9;};return _0x3974();}export async function featureShow(_0x2e1ea3){const _0x477b89=_0x4ced5c,_0x16644f={'wbBVE':function(_0x32d14d){return _0x32d14d();},'rIoBf':_0x477b89(0x258),'nFEdX':function(_0x1ff9b5,_0x531209){return _0x1ff9b5(_0x531209);}},_0x515e89=_0x2e1ea3||await _0x16644f[_0x477b89(0x271)](getActiveFeatureId);if(!_0x515e89)throw new Error(_0x16644f['rIoBf']);const _0x540870=await _0x16644f['nFEdX'](getFeature,_0x515e89);displayFeature(_0x540870,_0x540870[_0x477b89(0x1fa)]);}export async function featureResume(_0x531206){const _0x477ef5=_0x4ced5c,_0x7ee59e={'RFfwi':function(_0x440222,_0x2bb643){return _0x440222(_0x2bb643);},'gpLen':function(_0x55b092,_0x396a53){return _0x55b092!==_0x396a53;},'UCywK':function(_0x34b4e6,_0x214e3e,_0x4b822e){return _0x34b4e6(_0x214e3e,_0x4b822e);},'LADeM':function(_0x44aaf1,_0x1a54a8,_0x575157){return _0x44aaf1(_0x1a54a8,_0x575157);},'LBWKp':function(_0x21277b,_0x45f554){return _0x21277b(_0x45f554);},'MImtA':function(_0x29ba12,_0x557912){return _0x29ba12||_0x557912;},'pgymh':function(_0x5bfc91,_0x27e72e){return _0x5bfc91||_0x27e72e;},'gzjUd':'any','bzokB':function(_0x542c40,_0x41be07){return _0x542c40(_0x41be07);},'IBPOp':'Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','FKrpg':'selected','RAWLU':function(_0x258e15,_0x1b6e98,_0x22d76f){return _0x258e15(_0x1b6e98,_0x22d76f);}};if(_0x531206){const _0x16a288=await getFeature(_0x531206);await _0x7ee59e[_0x477ef5(0x23c)](setActiveFeatureId,_0x16a288['id']);const _0x39e215=getGitBranch();_0x39e215&&_0x7ee59e[_0x477ef5(0x242)](_0x39e215,_0x16a288['gitBranch'])&&(await _0x7ee59e['UCywK'](updateFeature,_0x16a288['id'],{'gitBranch':_0x39e215}),console[_0x477ef5(0x1e0)](_0x477ef5(0x2b0)+_0x39e215));console['log'](_0x477ef5(0x223)+_0x16a288['name']+'\x20('+_0x16a288['id']+')'),await _0x7ee59e[_0x477ef5(0x23c)](tryStartCurrentSession,_0x16a288['id']);const _0x103eaa=process[_0x477ef5(0x24f)]['CLAUDE_SESSION_ID'];_0x103eaa&&_0x7ee59e[_0x477ef5(0x1ff)](registerSession,_0x103eaa,_0x16a288['id']);_0x7ee59e[_0x477ef5(0x1ff)](displayFeature,_0x16a288,_0x16a288[_0x477ef5(0x1fa)]),await _0x7ee59e[_0x477ef5(0x227)](printFeedbackNudge,_0x16a288['id']);return;}const _0x4ec964=getGitRepoUrl(),_0x560f23=getGitBranch();if(!_0x4ec964&&!_0x560f23)throw new Error('Not\x20in\x20a\x20git\x20repository.');console[_0x477ef5(0x1e0)](_0x477ef5(0x27b)+_0x7ee59e[_0x477ef5(0x221)](_0x4ec964,_0x477ef5(0x29c))+'\x20/\x20'+_0x7ee59e['pgymh'](_0x560f23,_0x7ee59e['gzjUd'])+'...');const _0x10f3f6=await _0x7ee59e['bzokB'](listFeatures,{'gitRepoUrl':_0x4ec964,'gitBranch':_0x560f23}),_0x50a98a=_0x10f3f6['items']['filter'](_0x4bf999=>_0x4bf999[_0x477ef5(0x22d)]?_0x4bf999['status']!=='verified':!_0x4bf999[_0x477ef5(0x239)]);if(_0x50a98a['length']===0x0){console['log'](_0x477ef5(0x235)),console['log'](_0x7ee59e[_0x477ef5(0x218)]);return;}let _0x3a41c4;if(_0x50a98a[_0x477ef5(0x20b)]===0x1)_0x3a41c4=_0x50a98a[0x0];else{const _0xde0051=process[_0x477ef5(0x270)]['isTTY']&&process[_0x477ef5(0x274)][_0x477ef5(0x276)];if(!_0xde0051){console['log'](_0x477ef5(0x288));for(const _0x437996 of _0x50a98a){console[_0x477ef5(0x1e0)]('\x20\x20'+_0x437996['name']),console[_0x477ef5(0x1e0)](_0x477ef5(0x213)+_0x437996['id']),_0x437996['stats']&&console[_0x477ef5(0x1e0)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x437996['stats'])),_0x437996[_0x477ef5(0x2ab)]&&console['log'](_0x477ef5(0x23b)+_0x437996[_0x477ef5(0x2ab)]);}throw new Error(_0x477ef5(0x20c));}const {selected:_0x3514e6}=await _0x3493bd['prompt']([{'type':_0x477ef5(0x246),'name':_0x7ee59e['FKrpg'],'message':_0x477ef5(0x2a2),'choices':_0x50a98a['map'](_0x1a3ac6=>({'name':_0x1a3ac6['name']+'\x20('+_0x1a3ac6['id']+')','value':_0x1a3ac6['id']}))}]);_0x3a41c4=_0x50a98a[_0x477ef5(0x1f6)](_0x36514f=>_0x36514f['id']===_0x3514e6);}await setActiveFeatureId(_0x3a41c4['id']);_0x560f23&&_0x7ee59e['gpLen'](_0x560f23,_0x3a41c4[_0x477ef5(0x2ab)])&&(await _0x7ee59e[_0x477ef5(0x1d1)](updateFeature,_0x3a41c4['id'],{'gitBranch':_0x560f23}),console[_0x477ef5(0x1e0)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x560f23));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x3a41c4[_0x477ef5(0x28a)]+'\x20('+_0x3a41c4['id']+')'),await tryStartCurrentSession(_0x3a41c4['id']);const _0x17b548=await _0x7ee59e[_0x477ef5(0x23c)](getFeature,_0x3a41c4['id']),_0x102d93=process['env'][_0x477ef5(0x1d9)];_0x102d93&&_0x7ee59e['LADeM'](registerSession,_0x102d93,_0x17b548['id']),_0x7ee59e[_0x477ef5(0x25c)](displayFeature,_0x17b548,_0x17b548['checklistItems']),await _0x7ee59e[_0x477ef5(0x236)](printFeedbackNudge,_0x17b548['id']);}async function printFeedbackNudge(_0x2cc82a){const _0x331686=_0x4ced5c,_0x38cea5={'uOWxj':function(_0x4bf256,_0x189f24){return _0x4bf256(_0x189f24);},'dXPwR':function(_0xd159ba,_0x16986a,_0x3e445){return _0xd159ba(_0x16986a,_0x3e445);},'fdBRu':function(_0x5d4a85,_0x533719){return _0x5d4a85>_0x533719;},'UNDEz':_0x331686(0x1ce)};try{const {items:_0x807b3}=await _0x38cea5[_0x331686(0x28e)](getActionItems,_0x2cc82a);let _0x2e783f=0x0,_0x258d1d=0x0;for(const _0x387f4b of _0x807b3){const _0x305ccf=await _0x38cea5['dXPwR'](getItemFeedback,_0x2cc82a,_0x387f4b['id']);_0x38cea5['fdBRu'](_0x305ccf[_0x331686(0x2b3)][_0x331686(0x20b)],0x0)&&(_0x2e783f+=_0x305ccf[_0x331686(0x2b3)]['length'],_0x258d1d++);}_0x2e783f>0x0&&(console[_0x331686(0x1e0)](_0x331686(0x24a)+_0x2e783f+_0x331686(0x28d)+_0x258d1d+'\x20scenario(s).'),console['log'](_0x38cea5[_0x331686(0x1cb)]));}catch{}}async function tryStartCurrentSession(_0x1f3f35){const _0xf86ee0=_0x4ced5c,_0x4e491d={'Qdkei':function(_0x114fbf,_0x421c7a){return _0x114fbf(_0x421c7a);},'LWExF':function(_0x16cb80,_0x5132db,_0x35b9ed){return _0x16cb80(_0x5132db,_0x35b9ed);}};try{const {sessions:_0x3b5c0a}=await _0x4e491d['Qdkei'](listFeatureSessions,_0x1f3f35),_0x2ea736=_0x3b5c0a['find'](_0x5d6074=>_0x5d6074['status']===_0xf86ee0(0x297));_0x2ea736&&(await _0x4e491d['LWExF'](startSession,_0x1f3f35,_0x2ea736['id']),console['log'](_0xf86ee0(0x286)+_0x2ea736['iteration']));}catch{}}export async function featureReport(_0x32edec,_0x4261e0){const _0x1b59ca=_0x4ced5c,_0x52474b={'NvLyU':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','qOUPJ':function(_0x30dfb7,_0x3ece8d,_0x5411b7){return _0x30dfb7(_0x3ece8d,_0x5411b7);},'Oecki':function(_0x23c747){return _0x23c747();},'ztyBm':_0x1b59ca(0x244),'VQTBm':function(_0x21e34b,_0x2a867c,_0x2e34f2){return _0x21e34b(_0x2a867c,_0x2e34f2);},'dJWPD':'utf-8'},_0x46a868=_0x32edec||await getActiveFeatureId();if(!_0x46a868)throw new Error(_0x52474b['NvLyU']);console['log']('\x0aGenerating\x20report...');const _0x46fbef=await _0x52474b[_0x1b59ca(0x22a)](getFeatureReportMarkdown,_0x46a868,{'style':_0x4261e0['style']}),_0x2f2d88=_0x4261e0[_0x1b59ca(0x25a)]||join(_0x52474b[_0x1b59ca(0x1d0)](getRangerDir),_0x52474b[_0x1b59ca(0x262)],_0x46a868+'.md'),_0x1c4ab0=_0x52474b['VQTBm'](join,_0x2f2d88,'..');!existsSync(_0x1c4ab0)&&await mkdir(_0x1c4ab0,{'recursive':!![]}),await writeFile(_0x2f2d88,_0x46fbef,_0x52474b['dJWPD']),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x2f2d88);}function getScenarioResult(_0x360a9d){const _0x24093a=_0x4ced5c,_0x2c5e33={'Ntbmt':function(_0x2177c5,_0x523558){return _0x2177c5===_0x523558;},'eNaYN':_0x24093a(0x234),'rxoue':_0x24093a(0x1f2)};if(_0x2c5e33[_0x24093a(0x259)](_0x360a9d['status'],_0x2c5e33[_0x24093a(0x1f3)]))return _0x360a9d[_0x24093a(0x1f1)]??_0x24093a(0x234);if(_0x360a9d[_0x24093a(0x22d)]==='verification_in_progress')return _0x2c5e33['rxoue'];return _0x360a9d['status'];}function getScenarioRationale(_0x10aee6,_0xb3b8d5){const _0x4c6d74=_0x4ced5c,_0x2a27c9={'QjYrh':_0x4c6d74(0x1e2)},_0x4d7811=_0x2a27c9['QjYrh'][_0x4c6d74(0x22f)]('|');let _0x3215ed=0x0;while(!![]){switch(_0x4d7811[_0x3215ed++]){case'0':if(_0xb3b8d5)return _0xb3b8d5;continue;case'1':return null;case'2':if(_0x10aee6['blockedReason'])return _0x10aee6[_0x4c6d74(0x272)];continue;case'3':if(_0x10aee6['canceledReason'])return _0x10aee6['canceledReason'];continue;case'4':if(_0x10aee6['notes'])return _0x10aee6['notes'];continue;case'5':if(_0x10aee6[_0x4c6d74(0x26b)])return _0x10aee6[_0x4c6d74(0x26b)];continue;}break;}}export async function featureReportPrDescription(_0x44d4da,_0x424c40){const _0x215c00=_0x4ced5c,_0x14438a={'qaZxb':function(_0x7c7c3b){return _0x7c7c3b();},'kBVze':_0x215c00(0x220),'mENRm':function(_0x2ee82e,_0x2910cb,_0x16cb15){return _0x2ee82e(_0x2910cb,_0x16cb15);},'GHFqz':_0x215c00(0x257),'yoWlO':function(_0x4c7b63,_0x36ea72){return _0x4c7b63>_0x36ea72;},'kgZVN':function(_0x624b7d,_0x427a38){return _0x624b7d<_0x427a38;},'bDyKb':function(_0x5ad155,_0x2cc04b){return _0x5ad155+_0x2cc04b;}},_0x4ea341=_0x44d4da||await _0x14438a[_0x215c00(0x2af)](getActiveFeatureId);if(!_0x4ea341)throw new Error(_0x14438a['kBVze']);const _0xebcdc2=await getFeature(_0x4ea341),_0x20c560=_0xebcdc2[_0x215c00(0x1fa)]||[],_0x53ae96=_0x14438a['mENRm'](getCurrentSessionItems,_0xebcdc2,_0x20c560);_0x53ae96['length']===0x0&&(console[_0x215c00(0x252)](_0x14438a['GHFqz']),process[_0x215c00(0x22c)](0x1));const _0x5cda92=_0x424c40['excludeScenarios']??[],_0x59c340=_0x5cda92['filter'](_0x12e091=>!Number[_0x215c00(0x289)](_0x12e091)||_0x12e091<0x1||_0x12e091>_0x53ae96[_0x215c00(0x20b)]);if(_0x14438a[_0x215c00(0x224)](_0x59c340['length'],0x0)){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x59c340['join'](',\x20')),console[_0x215c00(0x1e0)]('\x0aAvailable\x20scenarios:');for(let _0x5c5ee9=0x0;_0x14438a['kgZVN'](_0x5c5ee9,_0x53ae96['length']);_0x5c5ee9++){console['log']('\x20\x20'+_0x14438a['bDyKb'](_0x5c5ee9,0x1)+'.\x20'+_0x53ae96[_0x5c5ee9]['description']);}process['exit'](0x1);}const _0x557cba=new Set(_0x5cda92[_0x215c00(0x1dc)](_0x592850=>_0x592850-0x1)),_0x2f7b43=_0x53ae96['filter']((_0x16cf19,_0x401f6c)=>!_0x557cba[_0x215c00(0x233)](_0x401f6c));_0x2f7b43[_0x215c00(0x20b)]===0x0&&(console['error']('\x0a❌\x20All\x20scenarios\x20were\x20excluded.'),process['exit'](0x1));if(_0x424c40[_0x215c00(0x206)])await outputJsonReport(_0x4ea341,_0xebcdc2,_0x2f7b43);else{const _0x4e91cd=await _0x14438a[_0x215c00(0x1f8)](getFeatureReportMarkdown,_0x4ea341,{'itemIds':_0x2f7b43[_0x215c00(0x1dc)](_0x26f757=>_0x26f757['id'])});process['stdout']['write'](_0x4e91cd['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x43b8be,_0x4fa56c,_0x2b5549){const _0x37d5a3=_0x4ced5c,_0x24fdd9={'ulttk':function(_0xda90d8,_0x8dc40){return _0xda90d8===_0x8dc40;},'KRDsM':function(_0x2e9149,_0x1e76f3,_0x4fa028){return _0x2e9149(_0x1e76f3,_0x4fa028);},'HEsHI':function(_0x69e913){return _0x69e913();}},_0x40ad53=_0x24fdd9[_0x37d5a3(0x2a0)](getApiBaseUrl),_0x225c59=await getFeatureReport(_0x43b8be),_0xcbdab7=new Map(_0x225c59[_0x37d5a3(0x1fa)][_0x37d5a3(0x1dc)](_0x303f00=>[_0x303f00['id'],_0x303f00])),_0x188a80=await Promise[_0x37d5a3(0x247)](_0x2b5549[_0x37d5a3(0x1dc)](async _0x9ba000=>{const _0x4820ae=_0x37d5a3,_0x15f06a=_0xcbdab7['get'](_0x9ba000['id']),_0x4fbdcb=_0x15f06a?.[_0x4820ae(0x29a)]??null;let _0x172941=[];if(_0x9ba000[_0x4820ae(0x29f)])try{const {steps:_0x16dd38}=await getBrowserSessionSteps(_0x9ba000[_0x4820ae(0x29f)]);_0x16dd38[_0x4820ae(0x20b)]>0x0&&(_0x172941=_0x16dd38['map'](_0x46aea9=>{const _0x392c1e=_0x4820ae,_0x575b00=_0x46aea9[_0x392c1e(0x268)]['find'](_0x3ebd13=>_0x3ebd13[_0x392c1e(0x21c)]===_0x392c1e(0x24d)&&_0x3ebd13['timing']==='after')??_0x46aea9['assets']['find'](_0x331bf3=>_0x331bf3[_0x392c1e(0x21c)]==='screenshot');let _0x1db3c9=null,_0x1c5d62=null;if(_0x575b00){const _0x6f3e22=_0x575b00[_0x392c1e(0x299)][_0x392c1e(0x245)][_0x392c1e(0x22f)]('/')[_0x392c1e(0x2ad)]();_0x1db3c9=_0x40ad53+'/api/v1/mcp/browser-sessions/'+_0x9ba000[_0x392c1e(0x29f)]+_0x392c1e(0x225)+_0x6f3e22,_0x6f3e22&&(_0x1c5d62=_0x6f3e22['replace'](/\.\w+$/,'')[_0x392c1e(0x26a)](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x1c5d62||_0x46aea9[_0x392c1e(0x264)]||_0x46aea9['stepName']||_0x392c1e(0x222)+_0x46aea9['position'],'screenshot':_0x1db3c9,'is_key_step':_0x46aea9['isKeyStep']};}));}catch{}return _0x24fdd9['ulttk'](_0x172941[_0x4820ae(0x20b)],0x0)&&_0x4fbdcb?.['screenshotUrls']&&(_0x172941=_0x4fbdcb[_0x4820ae(0x284)][_0x4820ae(0x1dc)]((_0x2a163f,_0x17158a)=>({'description':_0x4820ae(0x24b)+(_0x17158a+0x1),'screenshot':_0x2a163f,'is_key_step':![]}))),{'description':_0x9ba000[_0x4820ae(0x264)],'result':getScenarioResult(_0x9ba000),'rationale':_0x24fdd9[_0x4820ae(0x290)](getScenarioRationale,_0x9ba000,_0x4fbdcb?.[_0x4820ae(0x25d)]),'steps':_0x172941};})),_0x113d1c={'url':_0x4fa56c['dashboardUrl'],'scenarios':_0x188a80};process[_0x37d5a3(0x274)]['write'](JSON[_0x37d5a3(0x215)](_0x113d1c,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x50654e){const _0x584195=_0x4ced5c,_0x496a5f={'hqMUB':function(_0x106cde,_0x43251a){return _0x106cde(_0x43251a);},'hBjpo':_0x584195(0x1e7),'MaeFn':'in_progress','MKPOb':function(_0x1e11fe,_0x22dbfa,_0x3ea28f){return _0x1e11fe(_0x22dbfa,_0x3ea28f);}},_0xa2a495=_0x50654e||await getActiveFeatureId();if(!_0xa2a495)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x22d61d=await getFeature(_0xa2a495);if(!_0x22d61d['currentSessionId'])throw new Error(_0x584195(0x2b1));const {sessions:_0xea0138}=await _0x496a5f['hqMUB'](listFeatureSessions,_0xa2a495),_0x1f78ff=_0xea0138['find'](_0x3191e1=>_0x3191e1['id']===_0x22d61d[_0x584195(0x1ed)]);if(!_0x1f78ff)throw new Error(_0x584195(0x265));if(_0x1f78ff[_0x584195(0x22d)]==='completed'){console['log'](_0x496a5f[_0x584195(0x203)]);return;}if(_0x1f78ff['status']!==_0x496a5f['MaeFn'])throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x1f78ff[_0x584195(0x22d)]);console['log']('\x0aConcluding\x20session...'),await _0x496a5f['MKPOb'](concludeSession,_0xa2a495,_0x22d61d[_0x584195(0x1ed)]),console[_0x584195(0x1e0)](_0x584195(0x269)+_0x1f78ff[_0x584195(0x2aa)]+_0x584195(0x1ea)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x1b8d84){const _0x5874d5=_0x4ced5c,_0x1afdda={'JaXLJ':function(_0x2b3477){return _0x2b3477();},'OcLfP':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','Wjwjx':function(_0x243ed5,_0x4e6346){return _0x243ed5===_0x4e6346;},'MkeHR':_0x5874d5(0x2ac),'QNWnt':_0x5874d5(0x260),'NZBSi':function(_0x4b85ac,_0x70141){return _0x4b85ac===_0x70141;}},_0x1153b2=_0x1b8d84||await _0x1afdda['JaXLJ'](getActiveFeatureId);if(!_0x1153b2)throw new Error(_0x1afdda['OcLfP']);const _0x547276=await getFeature(_0x1153b2);console[_0x5874d5(0x1e0)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x547276[_0x5874d5(0x28a)]+'\x0a');const {sessions:_0x1b329f}=await listFeatureSessions(_0x1153b2);if(_0x1afdda['Wjwjx'](_0x1b329f['length'],0x0)){console['log'](_0x1afdda['MkeHR']);return;}for(const _0x4f335c of _0x1b329f){const _0x9d2b61=_0x1afdda[_0x5874d5(0x26f)](_0x4f335c['status'],_0x1afdda[_0x5874d5(0x1fc)])?'✅':_0x1afdda['NZBSi'](_0x4f335c['status'],'in_progress')?'🔄':'▶️';console['log'](_0x9d2b61+'\x20Session\x20'+_0x4f335c['iteration']+'\x20('+_0x4f335c['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x4f335c[_0x5874d5(0x22d)]),console[_0x5874d5(0x1e0)]('\x20\x20\x20Created:\x20'+new Date(_0x4f335c['createdAt'])[_0x5874d5(0x22e)]()),_0x4f335c[_0x5874d5(0x239)]&&console[_0x5874d5(0x1e0)]('\x20\x20\x20Completed:\x20'+new Date(_0x4f335c['completedAt'])['toLocaleString']()),console[_0x5874d5(0x1e0)]('');}}export async function featureAddScenario(_0x2c039b,_0x1694bb){const _0x1a1715=_0x4ced5c,_0x3d66c6={'GGYga':function(_0x45a929){return _0x45a929();},'dpCOM':function(_0x772e81,_0x51784a){return _0x772e81(_0x51784a);},'fnUmt':function(_0x65da9,_0x9fac0a,_0x4fd9a0){return _0x65da9(_0x9fac0a,_0x4fd9a0);}},_0x5d50a3=_0x1694bb||await _0x3d66c6['GGYga'](getActiveFeatureId);if(!_0x5d50a3)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x9c9e7d=await _0x3d66c6['dpCOM'](getFeature,_0x5d50a3);if(_0x9c9e7d[_0x1a1715(0x2a8)]&&!_0x9c9e7d[_0x1a1715(0x2a8)]['submittedAt'])throw new Error(_0x1a1715(0x23f)+_0x9c9e7d[_0x1a1715(0x2a1)]);await _0x3d66c6['fnUmt'](createChecklistItem,_0x5d50a3,_0x2c039b);const _0x3fb90a=await getFeature(_0x5d50a3);console[_0x1a1715(0x1e0)](_0x1a1715(0x285)),displayFeature(_0x3fb90a,_0x3fb90a[_0x1a1715(0x1fa)]);}export async function featureEditScenario(_0x11e79a,_0x25ab53){const _0x3f9e4c=_0x4ced5c,_0x3467e5={'FHVkW':'\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','MIlgo':_0x3f9e4c(0x279),'hjroI':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','nrRtH':function(_0x1c7fba,_0x537172){return _0x1c7fba===_0x537172;},'nUgWm':function(_0x1547b7,_0x23957d){return _0x1547b7<_0x23957d;},'IcFrG':function(_0x4c94a8,_0x1ac540){return _0x4c94a8+_0x1ac540;},'yExIx':function(_0x30ac76,_0x469d39){return _0x30ac76-_0x469d39;},'qElPJ':function(_0x2d4cb0,_0x1b26f6){return _0x2d4cb0<_0x1b26f6;},'uRhmb':function(_0x310578,_0x5629b4){return _0x310578>=_0x5629b4;},'VsCTu':function(_0x46ac1b,_0x2e7bb3){return _0x46ac1b<_0x2e7bb3;},'gakqM':function(_0x166a49,_0x21e310,_0xfa0a50,_0x1723b7){return _0x166a49(_0x21e310,_0xfa0a50,_0x1723b7);},'ejUrS':function(_0x232b41,_0x433126,_0x138abd){return _0x232b41(_0x433126,_0x138abd);}},_0x251971=_0x25ab53['id']||await getActiveFeatureId();!_0x251971&&(console[_0x3f9e4c(0x252)](_0x3467e5['FHVkW']),console[_0x3f9e4c(0x252)](_0x3467e5['MIlgo']),process[_0x3f9e4c(0x22c)](0x1));const _0x19c08a=await getFeature(_0x251971);_0x19c08a[_0x3f9e4c(0x2a8)]&&!_0x19c08a['latestReview']['submittedAt']&&(console['error']('\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.'),console['error']('Please\x20finish\x20your\x20review\x20first:'),console[_0x3f9e4c(0x252)]('\x20\x20'+_0x19c08a[_0x3f9e4c(0x2a1)]),process[_0x3f9e4c(0x22c)](0x1));const _0x49c880=_0x19c08a[_0x3f9e4c(0x1fa)]||[];_0x49c880['length']===0x0&&(console[_0x3f9e4c(0x252)](_0x3467e5['hjroI']),process['exit'](0x1));if(_0x3467e5[_0x3f9e4c(0x1cd)](_0x25ab53['scenario'],undefined)){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x3f9e4c(0x1e0)](_0x3f9e4c(0x298));for(let _0x3ae600=0x0;_0x3467e5[_0x3f9e4c(0x238)](_0x3ae600,_0x49c880[_0x3f9e4c(0x20b)]);_0x3ae600++){console[_0x3f9e4c(0x1e0)]('\x20\x20'+_0x3467e5[_0x3f9e4c(0x217)](_0x3ae600,0x1)+'.\x20'+_0x49c880[_0x3ae600]['description']);}process[_0x3f9e4c(0x22c)](0x1);}const _0x388651=_0x3467e5['yExIx'](_0x25ab53[_0x3f9e4c(0x204)],0x1);if(_0x3467e5['qElPJ'](_0x388651,0x0)||_0x3467e5['uRhmb'](_0x388651,_0x49c880[_0x3f9e4c(0x20b)])){console['error'](_0x3f9e4c(0x2b2)+_0x25ab53[_0x3f9e4c(0x204)]+_0x3f9e4c(0x1d6)+_0x49c880[_0x3f9e4c(0x20b)]+'\x20scenarios.'),console['log']('\x0aAvailable\x20scenarios:');for(let _0x3cf402=0x0;_0x3467e5[_0x3f9e4c(0x212)](_0x3cf402,_0x49c880['length']);_0x3cf402++){console['log']('\x20\x20'+_0x3467e5['IcFrG'](_0x3cf402,0x1)+'.\x20'+_0x49c880[_0x3cf402]['description']);}process[_0x3f9e4c(0x22c)](0x1);}const _0x33f144=_0x49c880[_0x388651];await _0x3467e5[_0x3f9e4c(0x21b)](updateChecklistItem,_0x251971,_0x33f144['id'],{'description':_0x11e79a});const _0x44c1b6=await getFeature(_0x251971);console[_0x3f9e4c(0x1e0)]('\x0a✅\x20Scenario\x20updated'),_0x3467e5[_0x3f9e4c(0x1e5)](displayFeature,_0x44c1b6,_0x44c1b6['checklistItems']);}async function downloadFeedbackImage(_0xb7e6b0,_0x23853d){const _0x4a7460=_0x4ced5c,_0x578303={'NpTtz':function(_0x519e1f,_0x2218cf,_0x303f7f){return _0x519e1f(_0x2218cf,_0x303f7f);},'sAOug':function(_0x88e945,_0x53bf9e){return _0x88e945(_0x53bf9e);},'ElXSM':function(_0x244df4,_0xbc1c9,_0x2f32bc){return _0x244df4(_0xbc1c9,_0x2f32bc);}};try{const _0x69ace9=join(getRangerDir(),_0x4a7460(0x229));await _0x578303['NpTtz'](mkdir,_0x69ace9,{'recursive':!![]});const _0x15b351=join(_0x69ace9,_0x4a7460(0x1ef)+_0x23853d+_0x4a7460(0x219)),_0x48672c=await _0x578303['sAOug'](fetch,_0xb7e6b0);if(!_0x48672c['ok'])return null;const _0x3e2ecc=Buffer[_0x4a7460(0x1f5)](await _0x48672c['arrayBuffer']());return await _0x578303['ElXSM'](writeFile,_0x15b351,_0x3e2ecc),_0x15b351;}catch{return null;}}export async function featureGetReview(_0x348b9b){const _0x101a54=_0x4ced5c,_0x44efb6={'IjDLI':function(_0x5aedd2){return _0x5aedd2();},'AFWeE':_0x101a54(0x258),'XCXFP':function(_0x455352,_0x1bafa5){return _0x455352<_0x1bafa5;},'MrRhO':function(_0x327933,_0x4a63bd){return _0x327933>_0x4a63bd;},'nmfar':_0x101a54(0x292),'MVPvr':_0x101a54(0x1fb),'OjomI':_0x101a54(0x2a7),'ALDvz':_0x101a54(0x2a5),'JRYEw':function(_0x1c1084,_0x2c34e1){return _0x1c1084===_0x2c34e1;},'KRvXU':function(_0x1c8a0e,_0x4f68be){return _0x1c8a0e>=_0x4f68be;}},_0x3cacf1=_0x348b9b||await _0x44efb6[_0x101a54(0x207)](getActiveFeatureId);if(!_0x3cacf1)throw new Error(_0x44efb6[_0x101a54(0x280)]);const _0x194b72=await getFeature(_0x3cacf1),{items:_0xc275e5}=await getActionItems(_0x3cacf1);console[_0x101a54(0x1e0)]('\x0a📋\x20Feedback\x20for:\x20'+_0x194b72[_0x101a54(0x28a)]+'\x20('+_0x194b72['id']+')\x0a');if(_0xc275e5[_0x101a54(0x20b)]===0x0){console[_0x101a54(0x1e0)](_0x101a54(0x1d4));return;}for(let _0x1c0e38=0x0;_0x44efb6['XCXFP'](_0x1c0e38,_0xc275e5['length']);_0x1c0e38++){const _0x311ef0=_0xc275e5[_0x1c0e38],_0x50b49e=_0x44efb6['MrRhO'](_0x311ef0[_0x101a54(0x1f9)],0x1)?'\x20(v'+_0x311ef0[_0x101a54(0x1f9)]+')':'',_0x42a5cf=await getItemFeedback(_0x3cacf1,_0x311ef0['id']);if(_0x42a5cf['unaddressedComments'][_0x101a54(0x20b)]>0x0){console['log'](_0x101a54(0x1e8)+(_0x1c0e38+0x1)+':\x20\x22'+_0x311ef0['description']+'\x22'+_0x50b49e+_0x101a54(0x1cc)+_0x42a5cf['unaddressedComments']['length']+_0x101a54(0x23e));for(const _0x52502b of _0x42a5cf[_0x101a54(0x2b3)]){const _0x5f42f0=new Date(_0x52502b[_0x101a54(0x1fd)])['toLocaleDateString'](_0x44efb6[_0x101a54(0x25b)],{'month':'short','day':'numeric'}),_0x263e9f=_0x52502b[_0x101a54(0x25e)]||_0x52502b['authorEmail']||_0x44efb6['MVPvr'];console[_0x101a54(0x1e0)](_0x101a54(0x23d)+_0x263e9f+'\x20('+_0x5f42f0+_0x101a54(0x1dd)+_0x52502b['content']+'\x22');if(_0x52502b[_0x101a54(0x25f)]){const _0xf0043c=await downloadFeedbackImage(_0x52502b['assetUrl'],_0x52502b['id']);_0xf0043c&&console['log'](_0x101a54(0x21a)+_0xf0043c);}if(_0x52502b[_0x101a54(0x1ee)]){const _0x8f2746=_0x52502b[_0x101a54(0x1ee)][_0x101a54(0x1e3)]['split'](_0x44efb6[_0x101a54(0x282)])[_0x101a54(0x2ad)]()?.['split'](':')[0x0]||_0x44efb6[_0x101a54(0x27d)],_0x48e332=_0x52502b[_0x101a54(0x1ee)][_0x101a54(0x296)]?'\x20\x22'+_0x52502b[_0x101a54(0x1ee)]['textContent'][_0x101a54(0x249)](0x0,0x3c)+'\x22':'';console[_0x101a54(0x1e0)](_0x101a54(0x243)+_0x8f2746+'>'+_0x48e332),console[_0x101a54(0x1e0)](_0x101a54(0x283)+_0x52502b[_0x101a54(0x1ee)]['selector']);}else{if(_0x52502b[_0x101a54(0x275)]){const _0x38e249=_0x52502b[_0x101a54(0x275)]['coordinates'];_0x44efb6[_0x101a54(0x231)](_0x52502b['spatial'][_0x101a54(0x205)],'point')&&_0x44efb6['KRvXU'](_0x38e249['length'],0x2)?console['log'](_0x101a54(0x1f0)+_0x38e249[0x0][_0x101a54(0x2a6)](0x2)+',\x20'+_0x38e249[0x1]['toFixed'](0x2)+')'):console[_0x101a54(0x1e0)](_0x101a54(0x1df)+_0x52502b[_0x101a54(0x275)][_0x101a54(0x205)]+'\x20at\x20['+_0x38e249[_0x101a54(0x1dc)](_0x336e5e=>_0x336e5e[_0x101a54(0x2a6)](0x2))[_0x101a54(0x1d5)](',\x20')+']');}}}if(_0x42a5cf[_0x101a54(0x1e1)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x102872 of _0x42a5cf[_0x101a54(0x1e1)][_0x101a54(0x22f)]('\x0a')){console[_0x101a54(0x1e0)](_0x101a54(0x291)+_0x102872);}}}else console[_0x101a54(0x1e0)]('Scenario\x20'+(_0x1c0e38+0x1)+':\x20\x22'+_0x311ef0[_0x101a54(0x264)]+'\x22'+_0x50b49e+'\x20—\x20no\x20comments'),console['log'](_0x101a54(0x27c));console[_0x101a54(0x1e0)]('');}}export async function featureDelete(_0x3024e3){const _0x4babb1=_0x4ced5c,_0x46568a={'UdziB':function(_0x232f18,_0x43e7c8){return _0x232f18(_0x43e7c8);}},_0x24176e=_0x3024e3||await getActiveFeatureId();if(!_0x24176e)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x1c3b76=await getFeature(_0x24176e);await _0x46568a[_0x4babb1(0x1f4)](softDeleteFeature,_0x24176e),console[_0x4babb1(0x1e0)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x1c3b76[_0x4babb1(0x28a)]+'\x20('+_0x24176e+')'),console[_0x4babb1(0x1e0)](_0x4babb1(0x1e4)+_0x24176e);}export async function featureRestore(_0x1003f4){const _0x4c4fab=_0x4ced5c;await restoreFeature(_0x1003f4);const _0x10e146=await getFeature(_0x1003f4);console[_0x4c4fab(0x1e0)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x10e146['name']+'\x20('+_0x1003f4+')'),displayFeature(_0x10e146,_0x10e146[_0x4c4fab(0x1fa)]);}
1
+ const _0x3dcc19=_0x131a;(function(_0x34a7d3,_0x4f5350){const _0x2cae36=_0x131a,_0x189997=_0x34a7d3();while(!![]){try{const _0x534088=parseInt(_0x2cae36(0xf5))/0x1+-parseInt(_0x2cae36(0x1a5))/0x2+parseInt(_0x2cae36(0x176))/0x3+-parseInt(_0x2cae36(0xe0))/0x4+parseInt(_0x2cae36(0xf9))/0x5*(-parseInt(_0x2cae36(0x18a))/0x6)+-parseInt(_0x2cae36(0x14c))/0x7+parseInt(_0x2cae36(0xf1))/0x8;if(_0x534088===_0x4f5350)break;else _0x189997['push'](_0x189997['shift']());}catch(_0x531435){_0x189997['push'](_0x189997['shift']());}}}(_0xa8e7,0x24b58));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x3700c3 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x4153a6=>'\x1b[1m'+_0x4153a6+_0x3dcc19(0x115);function getGitRepoUrl(){const _0x1e71bf=_0x3dcc19,_0x55647c={'noJCk':_0x1e71bf(0x19f),'LAMgy':'pipe','btcMq':_0x1e71bf(0x119)};try{const _0x282b1e=execSync(_0x55647c['noJCk'],{'encoding':_0x1e71bf(0x168),'stdio':[_0x55647c['LAMgy'],_0x55647c[_0x1e71bf(0xc7)],'pipe']})[_0x1e71bf(0x11f)]();return _0x282b1e[_0x1e71bf(0x138)](/\.git$/,'')[_0x1e71bf(0x138)](/^git@github\.com:/,_0x55647c[_0x1e71bf(0xec)])[_0x1e71bf(0x138)](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x8db22a=_0x3dcc19,_0x5b28d1={'drWQm':function(_0x3e743c,_0x30ae10,_0x20514a){return _0x3e743c(_0x30ae10,_0x20514a);},'dNrUD':_0x8db22a(0x168),'EHyar':_0x8db22a(0x13b)};try{return _0x5b28d1['drWQm'](execSync,_0x8db22a(0x15c),{'encoding':_0x5b28d1[_0x8db22a(0x16d)],'stdio':[_0x5b28d1[_0x8db22a(0x10e)],_0x5b28d1[_0x8db22a(0x10e)],'pipe']})[_0x8db22a(0x11f)]();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x19456b=_0x3dcc19,_0x4122d9={'vxjqe':function(_0x217d03,_0x44c93d,_0x6eede8){return _0x217d03(_0x44c93d,_0x6eede8);}},_0x42f89d=_0x4122d9['vxjqe'](join,getRangerDir(),ACTIVE_FEATURE_FILE);if(!existsSync(_0x42f89d))return null;try{const _0x1d28bd=await readFile(_0x42f89d,_0x19456b(0x168));return _0x1d28bd[_0x19456b(0x11f)]()||null;}catch{return null;}}async function setActiveFeatureId(_0xcd7509){const _0x39cd6a={'jhign':function(_0x1a55aa,_0x11cb68){return _0x1a55aa(_0x11cb68);},'ZdrfO':'utf-8'},_0x28c5fb=getRangerDir(),_0x1e2f39=join(_0x28c5fb,ACTIVE_FEATURE_FILE);!_0x39cd6a['jhign'](existsSync,_0x28c5fb)&&await mkdir(_0x28c5fb,{'recursive':!![]}),await writeFile(_0x1e2f39,_0xcd7509,_0x39cd6a['ZdrfO']);}function getProgressDisplay(_0x4eeb7f){const _0x3b746d=_0x3dcc19,_0x9a20f={'QksJy':function(_0x3b1f41,_0x465f46){return _0x3b1f41===_0x465f46;},'JmvUw':function(_0x5223ce,_0x23faf5){return _0x5223ce*_0x23faf5;},'zQpKI':function(_0x4d9e9e,_0x9c85c2){return _0x4d9e9e/_0x9c85c2;},'LsfRi':function(_0x38537c,_0x3d1093){return _0x38537c+_0x3d1093;},'pMSDg':function(_0x2d07cc,_0x260071){return _0x2d07cc-_0x260071;},'DPfAE':function(_0x3be334,_0xbbc4be){return _0x3be334>_0xbbc4be;},'lRCgt':function(_0xb0aecc,_0x23e887){return _0xb0aecc>_0x23e887;}},_0x2d5cbb=_0x4eeb7f[_0x3b746d(0x133)]||0x0,_0x3ffe3f=_0x4eeb7f[_0x3b746d(0x199)]||0x0,_0x7ca17e=_0x4eeb7f['blockedItems']||0x0,_0x4e4849=_0x4eeb7f['incompleteItems']||0x0,_0x309952=_0x4eeb7f['pendingItems']||0x0,_0x81e7e=_0x2d5cbb+_0x3ffe3f+_0x7ca17e+_0x4e4849+_0x309952;if(_0x9a20f[_0x3b746d(0x143)](_0x81e7e,0x0))return'-';const _0x47be35=0xa,_0xb40333=Math['round'](_0x9a20f['JmvUw'](_0x9a20f['zQpKI'](_0x2d5cbb,_0x81e7e),_0x47be35)),_0x4eff1a=_0x9a20f['LsfRi']('█'[_0x3b746d(0x179)](_0xb40333),'░'[_0x3b746d(0x179)](_0x9a20f['pMSDg'](_0x47be35,_0xb40333))),_0x4bd112=[];if(_0x7ca17e>0x0)_0x4bd112['push'](_0x7ca17e+'\x20blocked');if(_0x4e4849>0x0)_0x4bd112['push'](_0x4e4849+_0x3b746d(0x163));if(_0x9a20f['DPfAE'](_0x3ffe3f,0x0))_0x4bd112[_0x3b746d(0xd0)](_0x3ffe3f+'\x20in\x20progress');const _0x4f50de=_0x9a20f[_0x3b746d(0x16c)](_0x4bd112[_0x3b746d(0xdb)],0x0)?'\x20('+_0x4bd112['join'](',\x20')+')':'';return _0x4eff1a+'\x20'+_0x2d5cbb+'/'+_0x81e7e+'\x20verified'+_0x4f50de;}function getCurrentSessionItems(_0x3e2afc,_0x17dd76){const _0x3b8329=_0x3dcc19;if(!_0x3e2afc[_0x3b8329(0xe1)])return _0x17dd76['filter'](_0x33122b=>!_0x33122b['sessionId']);return _0x17dd76['filter'](_0x43c3ab=>_0x43c3ab[_0x3b8329(0x18b)]===_0x3e2afc['currentSessionId']||!_0x43c3ab[_0x3b8329(0x18b)]);}function displayFeature(_0x328913,_0x4d5c9d){const _0x1a7713=_0x3dcc19,_0x401644={'DBQcb':_0x1a7713(0x17f),'cAtqN':function(_0x3659af,_0x650f84){return _0x3659af===_0x650f84;},'grSaC':_0x1a7713(0xfb),'pHdAn':'verified','tLBdG':_0x1a7713(0x13d),'oWtlu':function(_0x2e7812,_0x5aaa3e){return _0x2e7812===_0x5aaa3e;},'VTqxV':'verification_in_progress','vmbkb':function(_0x5045f3,_0x1beaee){return _0x5045f3>_0x1beaee;},'pqFzz':function(_0x584c0a,_0x3c3c3f){return _0x584c0a!==_0x3c3c3f;},'iZSEB':_0x1a7713(0x118),'ZPQvx':function(_0x2464a5,_0x4f049e){return _0x2464a5===_0x4f049e;},'ezpCw':function(_0x584dfb,_0x1e0ce6){return _0x584dfb===_0x1e0ce6;},'EoWOL':'approved','vafHN':function(_0x12c21f,_0xc5d89c){return _0x12c21f===_0xc5d89c;}};console['log']('\x0a'+_0x328913[_0x1a7713(0x140)]+'\x20('+_0x328913['dashboardUrl']+')');_0x328913['stats']&&console['log']('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x328913[_0x1a7713(0x130)]));_0x328913['description']&&console['log'](_0x1a7713(0x122)+_0x328913[_0x1a7713(0xd7)]);_0x328913['gitRepoUrl']&&console[_0x1a7713(0x173)]('\x20\x20\x20Repository:\x20'+_0x328913[_0x1a7713(0x17e)]);_0x328913[_0x1a7713(0x147)]&&console[_0x1a7713(0x173)](_0x1a7713(0x1a4)+_0x328913[_0x1a7713(0x147)]);console['log'](_0x1a7713(0x156)+new Date(_0x328913['createdAt'])['toLocaleString']());_0x328913[_0x1a7713(0x114)]&&console['log'](_0x1a7713(0x196)+new Date(_0x328913[_0x1a7713(0x114)])['toLocaleString']());if(_0x4d5c9d&&_0x4d5c9d[_0x1a7713(0xdb)]>0x0){console[_0x1a7713(0x173)](_0x401644[_0x1a7713(0x190)]);for(let _0x56935a=0x0;_0x56935a<_0x4d5c9d['length'];_0x56935a++){const _0x2844d3=_0x4d5c9d[_0x56935a];let _0x2a84cf;if(_0x401644[_0x1a7713(0x137)](_0x2844d3['status'],_0x401644['grSaC'])&&_0x2844d3['terminalReason']===_0x1a7713(0xf0))_0x2a84cf='✅';else{if(_0x401644['cAtqN'](_0x2844d3['status'],_0x401644['pHdAn']))_0x2a84cf='🟢';else{if(_0x2844d3['status']===_0x401644['tLBdG'])_0x2a84cf='🟠';else{if(_0x401644['cAtqN'](_0x2844d3['status'],'blocked'))_0x2a84cf='🛑';else{if(_0x401644['cAtqN'](_0x2844d3['status'],'closed'))_0x2a84cf='⛔';else _0x401644[_0x1a7713(0x14a)](_0x2844d3[_0x1a7713(0xe2)],_0x401644[_0x1a7713(0x17d)])?_0x2a84cf='⏳':_0x2a84cf='⬜';}}}}const _0x3b8a8c=_0x401644[_0x1a7713(0x109)](_0x2844d3[_0x1a7713(0x14e)],0x1)?_0x1a7713(0x181)+_0x2844d3['version']+')':'',_0x457b87=_0x2844d3[_0x1a7713(0x14e)]>0x1&&_0x2844d3[_0x1a7713(0x117)]&&_0x401644['pqFzz'](_0x2844d3[_0x1a7713(0xe2)],_0x1a7713(0xfb))&&_0x401644[_0x1a7713(0x10c)](_0x2844d3['status'],_0x401644['pHdAn'])?'\x20[has\x20reviewer\x20feedback]':'';console['log'](_0x1a7713(0xe3)+(_0x56935a+0x1)+'.\x20'+_0x2a84cf+'\x20'+_0x2844d3['description']+_0x3b8a8c+_0x457b87);_0x401644['cAtqN'](_0x2844d3['status'],_0x401644[_0x1a7713(0xf6)])&&_0x2844d3[_0x1a7713(0xfe)]&&console[_0x1a7713(0x173)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x2844d3[_0x1a7713(0xfe)]);_0x2844d3[_0x1a7713(0xe2)]===_0x1a7713(0x13d)&&_0x2844d3[_0x1a7713(0xd6)]&&console['log']('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x2844d3['incompleteReason']);if(_0x401644['ZPQvx'](_0x2844d3[_0x1a7713(0xe2)],_0x1a7713(0xfb))&&_0x401644['ezpCw'](_0x2844d3[_0x1a7713(0x127)],_0x401644['EoWOL']))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x401644['vafHN'](_0x2844d3[_0x1a7713(0xe2)],_0x401644['grSaC'])&&_0x2844d3[_0x1a7713(0xef)]&&console['log'](_0x1a7713(0x18d)+_0x2844d3['canceledReason']);}}}export async function featureCreate(_0x241465,_0x342006){const _0x12e965=_0x3dcc19,_0x270408={'alQyS':function(_0x2d7148){return _0x2d7148();},'OGyIG':_0x12e965(0x178),'sWCtW':function(_0x21e20b,_0x469e0a){return _0x21e20b(_0x469e0a);},'koEFa':function(_0x4a34a9,_0xad23c3){return _0x4a34a9(_0xad23c3);}},{envNames:_0x58cbbf}=await _0x270408['alQyS'](getEnvNames);if(_0x58cbbf['length']===0x0&&!process[_0x12e965(0x15e)][_0x12e965(0xc8)]){let _0x3b0926=0x0;try{_0x3b0926=(await listCloudProfiles())[_0x12e965(0xdb)];}catch{_0x3b0926=0x1;}_0x3b0926===0x0&&console[_0x12e965(0x167)]('\x0a'+formatProfileRequiredMessage(_0x1f5049=>bold(_0x1f5049)));}const _0x1354e7=_0x342006['scenarios']?_0x342006[_0x12e965(0x132)][_0x12e965(0x177)](_0x2092a5=>_0x2092a5['trim']()):[],_0x1fb890=_0x270408['alQyS'](getGitRepoUrl),_0x400b75=getGitBranch();console['log'](_0x270408[_0x12e965(0x1a0)]);const _0x276060=await createFeature({'name':_0x241465,'description':_0x342006[_0x12e965(0xd7)],'checklist':_0x1354e7,'gitRepoUrl':_0x1fb890,'gitBranch':_0x400b75});await _0x270408['sWCtW'](setActiveFeatureId,_0x276060['id']),await _0x270408['koEFa'](tryStartCurrentSession,_0x276060['id']);const _0x55a468=process['env'][_0x12e965(0x158)];_0x55a468&&registerSession(_0x55a468,_0x276060['id']),console['log'](_0x12e965(0xca)+_0x276060['id']),displayFeature(_0x276060,_0x276060['checklistItems']),console['log']('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x44d2f9){const _0x1c8063=_0x3dcc19,_0x54fdeb={'pInNb':function(_0x18523c){return _0x18523c();},'DedmT':'\x0aNo\x20feature\x20reviews\x20found.','sDhLB':function(_0x182d87,_0x5f008c){return _0x182d87>_0x5f008c;},'ucOyG':function(_0x58f6dd,_0x1b154c){return _0x58f6dd+_0x1b154c;},'UunaW':function(_0x472059,_0x90b19a){return _0x472059<_0x90b19a;},'wBWIQ':function(_0x251be7,_0x54ceb0){return _0x251be7!==_0x54ceb0;}},_0x4eb459={'limit':_0x44d2f9[_0x1c8063(0xd4)]??0xa,'offset':_0x44d2f9['offset']??0x0,'includeDeleted':_0x44d2f9[_0x1c8063(0xed)]};_0x44d2f9['currentBranch']&&(_0x4eb459['gitRepoUrl']=_0x54fdeb[_0x1c8063(0x13f)](getGitRepoUrl),_0x4eb459['gitBranch']=_0x54fdeb[_0x1c8063(0x13f)](getGitBranch));const _0x3c19dc=await listFeatures(_0x4eb459);if(_0x3c19dc[_0x1c8063(0x136)][_0x1c8063(0xdb)]===0x0){console[_0x1c8063(0x173)](_0x54fdeb[_0x1c8063(0x120)]);return;}const _0x1b3152=_0x54fdeb[_0x1c8063(0x183)](_0x3c19dc['totalCount'],_0x3c19dc[_0x1c8063(0x136)]['length'])?_0x1c8063(0x11b)+_0x3c19dc[_0x1c8063(0x136)][_0x1c8063(0xdb)]+_0x1c8063(0x175)+_0x3c19dc['totalCount']:_0x3c19dc[_0x1c8063(0x164)]+_0x1c8063(0x170);console['log']('\x0a'+_0x1b3152+':\x0a');for(const _0x5caab1 of _0x3c19dc[_0x1c8063(0x136)]){console[_0x1c8063(0x173)](''+_0x5caab1['name']),console['log']('\x20\x20\x20ID:\x20'+_0x5caab1['id']),_0x5caab1[_0x1c8063(0x130)]&&console[_0x1c8063(0x173)](_0x1c8063(0xe8)+getProgressDisplay(_0x5caab1['stats'])),_0x5caab1['gitBranch']&&console[_0x1c8063(0x173)]('\x20\x20\x20Branch:\x20'+_0x5caab1['gitBranch']),console['log'](_0x1c8063(0x156)+new Date(_0x5caab1['createdAt'])[_0x1c8063(0x104)]()),console[_0x1c8063(0x173)]('');}const _0x4caf8a=_0x4eb459['limit']??0xa,_0x12dd84=_0x54fdeb['ucOyG'](_0x4eb459[_0x1c8063(0x18e)]??0x0,_0x3c19dc['items']['length']);if(_0x54fdeb['UunaW'](_0x12dd84,_0x3c19dc[_0x1c8063(0x164)])){const _0x2e85f6=_0x54fdeb[_0x1c8063(0x184)](_0x4caf8a,0xa)?_0x1c8063(0x141)+_0x4caf8a:'',_0xc3d65d=_0x44d2f9['currentBranch']?_0x1c8063(0x106):'',_0x1e34ab=_0x44d2f9[_0x1c8063(0xed)]?'\x20--include-deleted':'';console[_0x1c8063(0x173)]('Next\x20page:\x20ranger\x20list\x20--offset\x20'+_0x12dd84+_0x2e85f6+_0xc3d65d+_0x1e34ab);}}export async function featureShow(_0x4f4bb5){const _0x1570a8=_0x3dcc19,_0x3f6b8c={'PHxdx':function(_0xee27f0,_0x176bad){return _0xee27f0(_0x176bad);}},_0x233e34=_0x4f4bb5||await getActiveFeatureId();if(!_0x233e34)throw new Error(_0x1570a8(0xea));const _0x553bc8=await _0x3f6b8c[_0x1570a8(0x16b)](getFeature,_0x233e34);displayFeature(_0x553bc8,_0x553bc8['checklistItems']);}export async function featureResume(_0xf55936){const _0x45d2f9=_0x3dcc19,_0x477b4c={'fZpqe':function(_0x5c4cf0,_0x3aedb2){return _0x5c4cf0(_0x3aedb2);},'vNDmu':function(_0x38566d,_0x48fa9b,_0x48cbcc){return _0x38566d(_0x48fa9b,_0x48cbcc);},'MuPOf':function(_0x163c73,_0x405d91,_0x13d642){return _0x163c73(_0x405d91,_0x13d642);},'HGBIF':function(_0x7a920b,_0x4d672b){return _0x7a920b(_0x4d672b);},'HvOuV':function(_0x4e31f3){return _0x4e31f3();},'JYYrI':function(_0x2d38e1){return _0x2d38e1();},'MtRDN':_0x45d2f9(0x12c),'tXjpA':function(_0x5288fc,_0x36cb04){return _0x5288fc||_0x36cb04;},'AUNvY':'\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','kiVOF':_0x45d2f9(0x16f),'zSnIr':function(_0x26f27c,_0xeb045a){return _0x26f27c===_0xeb045a;},'wokdQ':_0x45d2f9(0x11a),'oFxZl':_0x45d2f9(0xdf),'hohMa':'list','cohrh':function(_0x5d5cd7,_0xa14428){return _0x5d5cd7!==_0xa14428;},'WaSFl':function(_0x37b70d,_0x57061d){return _0x37b70d(_0x57061d);}};if(_0xf55936){const _0x31ae62=await _0x477b4c['fZpqe'](getFeature,_0xf55936);await setActiveFeatureId(_0x31ae62['id']);const _0x4280f2=getGitBranch();_0x4280f2&&_0x4280f2!==_0x31ae62[_0x45d2f9(0x147)]&&(await _0x477b4c['vNDmu'](updateFeature,_0x31ae62['id'],{'gitBranch':_0x4280f2}),console[_0x45d2f9(0x173)](_0x45d2f9(0xd9)+_0x4280f2));console['log'](_0x45d2f9(0x10b)+_0x31ae62['name']+'\x20('+_0x31ae62['id']+')'),await _0x477b4c[_0x45d2f9(0x19e)](tryStartCurrentSession,_0x31ae62['id']);const _0xafd0d0=process['env']['CLAUDE_SESSION_ID'];_0xafd0d0&&registerSession(_0xafd0d0,_0x31ae62['id']);_0x477b4c['MuPOf'](displayFeature,_0x31ae62,_0x31ae62[_0x45d2f9(0x1a1)]),await _0x477b4c[_0x45d2f9(0x135)](printFeedbackNudge,_0x31ae62['id']);return;}const _0x41e768=_0x477b4c['HvOuV'](getGitRepoUrl),_0x2ec4a9=_0x477b4c['JYYrI'](getGitBranch);if(!_0x41e768&&!_0x2ec4a9)throw new Error(_0x477b4c['MtRDN']);console['log']('\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20'+_0x477b4c[_0x45d2f9(0xf4)](_0x41e768,'any')+'\x20/\x20'+(_0x2ec4a9||_0x45d2f9(0x15a))+_0x45d2f9(0xe7));const _0x3c24ae=await listFeatures({'gitRepoUrl':_0x41e768,'gitBranch':_0x2ec4a9}),_0x340ef8=_0x3c24ae[_0x45d2f9(0x136)]['filter'](_0x185e10=>_0x185e10['status']?_0x185e10['status']!==_0x45d2f9(0x107):!_0x185e10[_0x45d2f9(0x114)]);if(_0x340ef8[_0x45d2f9(0xdb)]===0x0){console['log'](_0x477b4c[_0x45d2f9(0xff)]),console[_0x45d2f9(0x173)](_0x477b4c[_0x45d2f9(0x193)]);return;}let _0x557afb;if(_0x477b4c[_0x45d2f9(0x197)](_0x340ef8[_0x45d2f9(0xdb)],0x1))_0x557afb=_0x340ef8[0x0];else{const _0xe2cdf3=process[_0x45d2f9(0x139)][_0x45d2f9(0x18f)]&&process[_0x45d2f9(0x149)]['isTTY'];if(!_0xe2cdf3){console[_0x45d2f9(0x173)](_0x477b4c[_0x45d2f9(0x159)]);for(const _0x1c65c7 of _0x340ef8){console['log']('\x20\x20'+_0x1c65c7['name']),console[_0x45d2f9(0x173)]('\x20\x20\x20\x20\x20ID:\x20'+_0x1c65c7['id']),_0x1c65c7['stats']&&console[_0x45d2f9(0x173)]('\x20\x20\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x1c65c7[_0x45d2f9(0x130)])),_0x1c65c7['gitBranch']&&console[_0x45d2f9(0x173)](_0x45d2f9(0x12f)+_0x1c65c7['gitBranch']);}throw new Error(_0x477b4c['oFxZl']);}const {selected:_0xd9a586}=await _0x3700c3['prompt']([{'type':_0x477b4c['hohMa'],'name':_0x45d2f9(0xd8),'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x340ef8['map'](_0xf31569=>({'name':_0xf31569['name']+'\x20('+_0xf31569['id']+')','value':_0xf31569['id']}))}]);_0x557afb=_0x340ef8[_0x45d2f9(0x116)](_0x142b79=>_0x142b79['id']===_0xd9a586);}await _0x477b4c[_0x45d2f9(0x135)](setActiveFeatureId,_0x557afb['id']);_0x2ec4a9&&_0x477b4c[_0x45d2f9(0x131)](_0x2ec4a9,_0x557afb[_0x45d2f9(0x147)])&&(await updateFeature(_0x557afb['id'],{'gitBranch':_0x2ec4a9}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x2ec4a9));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x557afb['name']+'\x20('+_0x557afb['id']+')'),await tryStartCurrentSession(_0x557afb['id']);const _0x12fe89=await _0x477b4c[_0x45d2f9(0x19e)](getFeature,_0x557afb['id']),_0x15cef2=process['env'][_0x45d2f9(0x158)];_0x15cef2&&registerSession(_0x15cef2,_0x12fe89['id']),displayFeature(_0x12fe89,_0x12fe89['checklistItems']),await _0x477b4c['WaSFl'](printFeedbackNudge,_0x12fe89['id']);}async function printFeedbackNudge(_0x9c7c34){const _0x3dce34=_0x3dcc19,_0x4dfc65={'vPjlE':function(_0x22d2f1,_0x99d754){return _0x22d2f1(_0x99d754);},'OgvBr':function(_0x3682fb,_0x380b9e){return _0x3682fb>_0x380b9e;}};try{const {items:_0x408b16}=await _0x4dfc65['vPjlE'](getActionItems,_0x9c7c34);let _0x2ab626=0x0,_0x2a0dc6=0x0;for(const _0x1cd58a of _0x408b16){const _0x40c61d=await getItemFeedback(_0x9c7c34,_0x1cd58a['id']);_0x4dfc65[_0x3dce34(0x166)](_0x40c61d['unaddressedComments'][_0x3dce34(0xdb)],0x0)&&(_0x2ab626+=_0x40c61d['unaddressedComments'][_0x3dce34(0xdb)],_0x2a0dc6++);}_0x4dfc65[_0x3dce34(0x166)](_0x2ab626,0x0)&&(console['log'](_0x3dce34(0x12d)+_0x2ab626+_0x3dce34(0xf7)+_0x2a0dc6+_0x3dce34(0xdc)),console['log']('\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'));}catch{}}async function tryStartCurrentSession(_0x26395a){const _0x7dae0c=_0x3dcc19;try{const {sessions:_0x3d94de}=await listFeatureSessions(_0x26395a),_0x3714cf=_0x3d94de['find'](_0x3a7358=>_0x3a7358[_0x7dae0c(0xe2)]===_0x7dae0c(0x13e));_0x3714cf&&(await startSession(_0x26395a,_0x3714cf['id']),console['log'](_0x7dae0c(0x171)+_0x3714cf[_0x7dae0c(0x105)]));}catch{}}export async function featureReport(_0x37f2b4,_0x285a25){const _0x1ef8cd=_0x3dcc19,_0x192872={'GcXNO':function(_0x1466a6){return _0x1466a6();},'dIoAl':_0x1ef8cd(0x112),'TTTdY':function(_0x8b196,_0x2fc263,_0x15bffb){return _0x8b196(_0x2fc263,_0x15bffb);},'epLTz':function(_0x1ba909,_0x1359e0,_0x28ead1,_0x372ed4){return _0x1ba909(_0x1359e0,_0x28ead1,_0x372ed4);},'mGlJO':function(_0xa5267d){return _0xa5267d();},'BWcOK':_0x1ef8cd(0xda),'QJqmw':function(_0x4e6a35,_0x195cc6){return _0x4e6a35(_0x195cc6);}},_0x26693c=_0x37f2b4||await _0x192872[_0x1ef8cd(0xc9)](getActiveFeatureId);if(!_0x26693c)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');console[_0x1ef8cd(0x173)](_0x192872['dIoAl']);const _0xabee46=await _0x192872['TTTdY'](getFeatureReportMarkdown,_0x26693c,{'style':_0x285a25['style']}),_0xaebf60=_0x285a25['output']||_0x192872['epLTz'](join,_0x192872['mGlJO'](getRangerDir),_0x192872['BWcOK'],_0x26693c+_0x1ef8cd(0x11c)),_0x347f1e=join(_0xaebf60,'..');!_0x192872['QJqmw'](existsSync,_0x347f1e)&&await mkdir(_0x347f1e,{'recursive':!![]}),await _0x192872['epLTz'](writeFile,_0xaebf60,_0xabee46,'utf-8'),console[_0x1ef8cd(0x173)](_0x1ef8cd(0x1a3)+_0xaebf60);}function getScenarioResult(_0x5cc532){const _0x1ecaa4=_0x3dcc19,_0x1f5a8b={'PQEjy':function(_0x2dd91e,_0x298260){return _0x2dd91e===_0x298260;},'HOyrS':'closed','OfvoR':function(_0x36e0f4,_0x19b232){return _0x36e0f4===_0x19b232;},'stqkg':'verification_in_progress','LqoGE':_0x1ecaa4(0xde)};if(_0x1f5a8b[_0x1ecaa4(0x185)](_0x5cc532[_0x1ecaa4(0xe2)],'closed'))return _0x5cc532['terminalReason']??_0x1f5a8b['HOyrS'];if(_0x1f5a8b[_0x1ecaa4(0x198)](_0x5cc532['status'],_0x1f5a8b[_0x1ecaa4(0x1a7)]))return _0x1f5a8b[_0x1ecaa4(0xe4)];return _0x5cc532[_0x1ecaa4(0xe2)];}function getScenarioRationale(_0x1fcf15,_0x50106c){const _0x36f7ca=_0x3dcc19,_0x2fc52d={'igHTH':'3|4|5|1|2|0'},_0x6de8f4=_0x2fc52d['igHTH'][_0x36f7ca(0x128)]('|');let _0x34b4e8=0x0;while(!![]){switch(_0x6de8f4[_0x34b4e8++]){case'0':return null;case'1':if(_0x1fcf15[_0x36f7ca(0xef)])return _0x1fcf15[_0x36f7ca(0xef)];continue;case'2':if(_0x1fcf15['notes'])return _0x1fcf15['notes'];continue;case'3':if(_0x50106c)return _0x50106c;continue;case'4':if(_0x1fcf15['blockedReason'])return _0x1fcf15['blockedReason'];continue;case'5':if(_0x1fcf15['incompleteReason'])return _0x1fcf15[_0x36f7ca(0xd6)];continue;}break;}}function _0x131a(_0x20c407,_0xc6d20e){_0x20c407=_0x20c407-0xc7;const _0xa8e758=_0xa8e7();let _0x131a3b=_0xa8e758[_0x20c407];return _0x131a3b;}export async function featureReportPrDescription(_0x3339fa,_0x5ccc39){const _0x12aee2=_0x3dcc19,_0x39a94d={'fMnkU':function(_0x4cddb0){return _0x4cddb0();},'owYVA':function(_0x27d6bb,_0xfbe1cc){return _0x27d6bb(_0xfbe1cc);},'SEpAI':function(_0xc094a9,_0x2b7578){return _0xc094a9===_0x2b7578;},'XBdFU':function(_0x2e0c8b,_0x939812){return _0x2e0c8b>_0x939812;},'WYARW':'\x0aAvailable\x20scenarios:','bIdfl':function(_0x39290a,_0x1a86e7){return _0x39290a+_0x1a86e7;},'Squyg':'\x0a❌\x20All\x20scenarios\x20were\x20excluded.'},_0x28c6f2=_0x3339fa||await _0x39a94d['fMnkU'](getActiveFeatureId);if(!_0x28c6f2)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.');const _0x2c64eb=await _0x39a94d['owYVA'](getFeature,_0x28c6f2),_0x122ea6=_0x2c64eb[_0x12aee2(0x1a1)]||[],_0xf062bc=getCurrentSessionItems(_0x2c64eb,_0x122ea6);_0x39a94d[_0x12aee2(0x102)](_0xf062bc[_0x12aee2(0xdb)],0x0)&&(console['error']('\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.'),process['exit'](0x1));const _0xf2672e=_0x5ccc39[_0x12aee2(0x125)]??[],_0x1d15f1=_0xf2672e[_0x12aee2(0x121)](_0x289c97=>!Number[_0x12aee2(0x154)](_0x289c97)||_0x289c97<0x1||_0x289c97>_0xf062bc[_0x12aee2(0xdb)]);if(_0x39a94d['XBdFU'](_0x1d15f1['length'],0x0)){console[_0x12aee2(0x12e)](_0x12aee2(0x11e)+_0x1d15f1['join'](',\x20')),console['log'](_0x39a94d['WYARW']);for(let _0xb0c541=0x0;_0xb0c541<_0xf062bc['length'];_0xb0c541++){console['log']('\x20\x20'+_0x39a94d[_0x12aee2(0x111)](_0xb0c541,0x1)+'.\x20'+_0xf062bc[_0xb0c541]['description']);}process['exit'](0x1);}const _0x5e6091=new Set(_0xf2672e['map'](_0x195e8c=>_0x195e8c-0x1)),_0x1cc515=_0xf062bc[_0x12aee2(0x121)]((_0x332f1f,_0x41ee6b)=>!_0x5e6091[_0x12aee2(0x160)](_0x41ee6b));_0x39a94d[_0x12aee2(0x102)](_0x1cc515['length'],0x0)&&(console['error'](_0x39a94d['Squyg']),process[_0x12aee2(0x15d)](0x1));if(_0x5ccc39[_0x12aee2(0x14f)])await outputJsonReport(_0x28c6f2,_0x2c64eb,_0x1cc515);else{const _0x366b95=await getFeatureReportMarkdown(_0x28c6f2,{'itemIds':_0x1cc515['map'](_0xddd76c=>_0xddd76c['id'])});process[_0x12aee2(0x149)]['write'](_0x366b95[_0x12aee2(0x150)]()+'\x0a');}}async function outputJsonReport(_0x580462,_0x36c3a0,_0x5c87f2){const _0x3e6124=_0x3dcc19,_0x241c0d={'BtIey':function(_0x1ba93f,_0xce746f){return _0x1ba93f>_0xce746f;},'NWwMV':function(_0x3fb214,_0x239da1){return _0x3fb214(_0x239da1);},'MHwVx':function(_0x2bfd5b,_0x4d5561,_0x300ea0){return _0x2bfd5b(_0x4d5561,_0x300ea0);}},_0x1149b5=getApiBaseUrl(),_0x4c8f3f=await getFeatureReport(_0x580462),_0x3109a8=new Map(_0x4c8f3f['checklistItems'][_0x3e6124(0x177)](_0x3e391a=>[_0x3e391a['id'],_0x3e391a])),_0x2a876e=await Promise['all'](_0x5c87f2['map'](async _0x16f275=>{const _0x19fa62=_0x3e6124,_0x1bab8e=_0x3109a8['get'](_0x16f275['id']),_0x363697=_0x1bab8e?.[_0x19fa62(0x14d)]??null;let _0x14ecb5=[];if(_0x16f275['browserSessionId'])try{const {steps:_0x25cb92}=await getBrowserSessionSteps(_0x16f275['browserSessionId']);_0x241c0d['BtIey'](_0x25cb92[_0x19fa62(0xdb)],0x0)&&(_0x14ecb5=_0x25cb92[_0x19fa62(0x177)](_0x3e7b7d=>{const _0x5836dd=_0x19fa62,_0x4b8715=_0x3e7b7d[_0x5836dd(0x145)]['find'](_0x191dbe=>_0x191dbe['assetType']===_0x5836dd(0x19d)&&_0x191dbe['timing']===_0x5836dd(0x152))??_0x3e7b7d[_0x5836dd(0x145)]['find'](_0x385e39=>_0x385e39[_0x5836dd(0xee)]===_0x5836dd(0x19d));let _0x6d7ceb=null,_0x255d77=null;if(_0x4b8715){const _0x482cdc=_0x4b8715['storage'][_0x5836dd(0xcc)]['split']('/')['pop']();_0x6d7ceb=_0x1149b5+_0x5836dd(0x182)+_0x16f275['browserSessionId']+'/artifacts/'+_0x482cdc,_0x482cdc&&(_0x255d77=_0x482cdc[_0x5836dd(0x138)](/\.\w+$/,'')[_0x5836dd(0x138)](/^(key_)?\d+_/,'')[_0x5836dd(0x138)](/[-_]/g,'\x20'));}return{'description':_0x255d77||_0x3e7b7d[_0x5836dd(0xd7)]||_0x3e7b7d['stepName']||_0x5836dd(0x108)+_0x3e7b7d['position'],'screenshot':_0x6d7ceb,'is_key_step':_0x3e7b7d['isKeyStep']};}));}catch{}return _0x14ecb5[_0x19fa62(0xdb)]===0x0&&_0x363697?.[_0x19fa62(0x161)]&&(_0x14ecb5=_0x363697['screenshotUrls'][_0x19fa62(0x177)]((_0x36eec7,_0x39394d)=>({'description':'Screenshot\x20'+(_0x39394d+0x1),'screenshot':_0x36eec7,'is_key_step':![]}))),{'description':_0x16f275[_0x19fa62(0xd7)],'result':_0x241c0d['NWwMV'](getScenarioResult,_0x16f275),'rationale':_0x241c0d[_0x19fa62(0x18c)](getScenarioRationale,_0x16f275,_0x363697?.[_0x19fa62(0x16e)]),'steps':_0x14ecb5};})),_0x45b3d8={'url':_0x36c3a0[_0x3e6124(0x13c)],'scenarios':_0x2a876e};process['stdout'][_0x3e6124(0xfa)](JSON['stringify'](_0x45b3d8,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x296b6c){const _0x48fca9=_0x3dcc19,_0x28fe06={'MuGha':function(_0x116c92){return _0x116c92();},'RwJwZ':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','GXZqo':'Current\x20session\x20not\x20found.','HTEWP':function(_0x2f7fa9,_0x3c232d){return _0x2f7fa9===_0x3c232d;},'DDQCr':_0x48fca9(0x10a),'LCITk':_0x48fca9(0x123),'Iscuv':function(_0x3feb91,_0x485d9c){return _0x3feb91!==_0x485d9c;},'EWXcj':_0x48fca9(0xde),'acQby':'\x0aConcluding\x20session...'},_0x503e08=_0x296b6c||await _0x28fe06['MuGha'](getActiveFeatureId);if(!_0x503e08)throw new Error(_0x48fca9(0xea));const _0x90a7ec=await getFeature(_0x503e08);if(!_0x90a7ec[_0x48fca9(0xe1)])throw new Error(_0x28fe06[_0x48fca9(0x19a)]);const {sessions:_0xb75129}=await listFeatureSessions(_0x503e08),_0x8b9197=_0xb75129['find'](_0x4688e7=>_0x4688e7['id']===_0x90a7ec['currentSessionId']);if(!_0x8b9197)throw new Error(_0x28fe06[_0x48fca9(0xfc)]);if(_0x28fe06[_0x48fca9(0x1a6)](_0x8b9197['status'],_0x28fe06[_0x48fca9(0x113)])){console['log'](_0x28fe06['LCITk']);return;}if(_0x28fe06['Iscuv'](_0x8b9197[_0x48fca9(0xe2)],_0x28fe06['EWXcj']))throw new Error(_0x48fca9(0x191)+_0x8b9197['status']);console['log'](_0x28fe06[_0x48fca9(0x194)]),await concludeSession(_0x503e08,_0x90a7ec[_0x48fca9(0xe1)]),console[_0x48fca9(0x173)]('\x0a✅\x20Session\x20'+_0x8b9197[_0x48fca9(0x105)]+_0x48fca9(0x17b)),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x56c8c1){const _0x340ed1=_0x3dcc19,_0x502ff4={'aXlXm':function(_0x2a95ac){return _0x2a95ac();},'yMpKd':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','VRSjl':function(_0x4f5ef7,_0x48439d){return _0x4f5ef7===_0x48439d;},'RhwRz':_0x340ed1(0x15f),'DkFFk':function(_0x17a19c,_0x3358fa){return _0x17a19c===_0x3358fa;},'iNFNe':'completed','LevFC':'in_progress'},_0x58b304=_0x56c8c1||await _0x502ff4[_0x340ed1(0x188)](getActiveFeatureId);if(!_0x58b304)throw new Error(_0x502ff4['yMpKd']);const _0x3ffd7c=await getFeature(_0x58b304);console[_0x340ed1(0x173)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x3ffd7c[_0x340ed1(0x140)]+'\x0a');const {sessions:_0xdbcce8}=await listFeatureSessions(_0x58b304);if(_0x502ff4[_0x340ed1(0x134)](_0xdbcce8[_0x340ed1(0xdb)],0x0)){console['log'](_0x502ff4[_0x340ed1(0x187)]);return;}for(const _0x3e2212 of _0xdbcce8){const _0x273c6f=_0x502ff4[_0x340ed1(0x172)](_0x3e2212['status'],_0x502ff4['iNFNe'])?'✅':_0x3e2212['status']===_0x502ff4['LevFC']?'🔄':'▶️';console['log'](_0x273c6f+_0x340ed1(0xe5)+_0x3e2212[_0x340ed1(0x105)]+'\x20('+_0x3e2212['id']+')'),console['log'](_0x340ed1(0x103)+_0x3e2212[_0x340ed1(0xe2)]),console[_0x340ed1(0x173)]('\x20\x20\x20Created:\x20'+new Date(_0x3e2212['createdAt'])['toLocaleString']()),_0x3e2212[_0x340ed1(0x114)]&&console['log'](_0x340ed1(0x196)+new Date(_0x3e2212['completedAt'])[_0x340ed1(0x151)]()),console['log']('');}}export async function featureAddScenario(_0x3fcbfc,_0x44179b){const _0x34fe0f=_0x3dcc19,_0x2e898a={'OmsMs':_0x34fe0f(0xea),'vvdTD':function(_0x24c25f,_0x2e6e4d){return _0x24c25f(_0x2e6e4d);},'MubnL':function(_0x48461e,_0x3cf2ea,_0x2c9d4a){return _0x48461e(_0x3cf2ea,_0x2c9d4a);}},_0x1735ff=_0x44179b||await getActiveFeatureId();if(!_0x1735ff)throw new Error(_0x2e898a['OmsMs']);const _0xb9705e=await _0x2e898a[_0x34fe0f(0x186)](getFeature,_0x1735ff);if(_0xb9705e[_0x34fe0f(0x15b)]&&!_0xb9705e['latestReview']['submittedAt'])throw new Error(_0x34fe0f(0x195)+_0xb9705e['dashboardUrl']);await _0x2e898a['MubnL'](createChecklistItem,_0x1735ff,_0x3fcbfc);const _0x50f16f=await getFeature(_0x1735ff);console[_0x34fe0f(0x173)]('\x0a✅\x20Scenario\x20added'),displayFeature(_0x50f16f,_0x50f16f[_0x34fe0f(0x1a1)]);}export async function featureEditScenario(_0x4345c0,_0x49c6f2){const _0x4503f3=_0x3dcc19,_0x3eb63a={'oVNQj':'Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','kBeYj':'Please\x20finish\x20your\x20review\x20first:','xIxZs':function(_0x1020a7,_0x3a3c78){return _0x1020a7===_0x3a3c78;},'zdLqq':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','uwxOe':'\x0aAvailable\x20scenarios:','BSvVu':function(_0xa79c5e,_0x35fd25){return _0xa79c5e<_0x35fd25;},'pmxkc':function(_0x174c9a,_0x5cfd80){return _0x174c9a+_0x5cfd80;},'vxZwJ':function(_0x5dd648,_0x2ea47d){return _0x5dd648-_0x2ea47d;},'NpRQW':function(_0x16246b,_0x3116ab){return _0x16246b<_0x3116ab;},'DOKkI':function(_0x4975b2,_0x2491fd){return _0x4975b2>=_0x2491fd;}},_0x271b26=_0x49c6f2['id']||await getActiveFeatureId();!_0x271b26&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console[_0x4503f3(0x12e)](_0x3eb63a['oVNQj']),process['exit'](0x1));const _0x10a68c=await getFeature(_0x271b26);_0x10a68c['latestReview']&&!_0x10a68c[_0x4503f3(0x15b)][_0x4503f3(0x17a)]&&(console[_0x4503f3(0x12e)](_0x4503f3(0x192)),console[_0x4503f3(0x12e)](_0x3eb63a[_0x4503f3(0x153)]),console[_0x4503f3(0x12e)]('\x20\x20'+_0x10a68c['dashboardUrl']),process['exit'](0x1));const _0x167de7=_0x10a68c['checklistItems']||[];_0x3eb63a['xIxZs'](_0x167de7[_0x4503f3(0xdb)],0x0)&&(console[_0x4503f3(0x12e)](_0x3eb63a['zdLqq']),process[_0x4503f3(0x15d)](0x1));if(_0x49c6f2['scenario']===undefined){console['error'](_0x4503f3(0x129)),console['log'](_0x3eb63a['uwxOe']);for(let _0x3594c5=0x0;_0x3eb63a[_0x4503f3(0x174)](_0x3594c5,_0x167de7[_0x4503f3(0xdb)]);_0x3594c5++){console[_0x4503f3(0x173)]('\x20\x20'+_0x3eb63a[_0x4503f3(0xe6)](_0x3594c5,0x1)+'.\x20'+_0x167de7[_0x3594c5][_0x4503f3(0xd7)]);}process[_0x4503f3(0x15d)](0x1);}const _0x542dad=_0x3eb63a['vxZwJ'](_0x49c6f2[_0x4503f3(0x124)],0x1);if(_0x3eb63a[_0x4503f3(0x169)](_0x542dad,0x0)||_0x3eb63a[_0x4503f3(0x189)](_0x542dad,_0x167de7[_0x4503f3(0xdb)])){console[_0x4503f3(0x12e)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x49c6f2[_0x4503f3(0x124)]+_0x4503f3(0x100)+_0x167de7[_0x4503f3(0xdb)]+'\x20scenarios.'),console['log']('\x0aAvailable\x20scenarios:');for(let _0x2bf81f=0x0;_0x2bf81f<_0x167de7[_0x4503f3(0xdb)];_0x2bf81f++){console['log']('\x20\x20'+_0x3eb63a['pmxkc'](_0x2bf81f,0x1)+'.\x20'+_0x167de7[_0x2bf81f]['description']);}process[_0x4503f3(0x15d)](0x1);}const _0x5d515b=_0x167de7[_0x542dad];await updateChecklistItem(_0x271b26,_0x5d515b['id'],{'description':_0x4345c0});const _0x49b55e=await getFeature(_0x271b26);console['log']('\x0a✅\x20Scenario\x20updated'),displayFeature(_0x49b55e,_0x49b55e[_0x4503f3(0x1a1)]);}async function downloadFeedbackImage(_0x56865d,_0x5f1b49){const _0x580b17=_0x3dcc19,_0x585076={'JLVoO':_0x580b17(0x13a),'VFsaj':function(_0x153e34,_0xd4abad,_0x510341){return _0x153e34(_0xd4abad,_0x510341);}};try{const _0xd4674e=join(getRangerDir(),_0x585076[_0x580b17(0x180)]);await _0x585076['VFsaj'](mkdir,_0xd4674e,{'recursive':!![]});const _0x3bb87c=_0x585076['VFsaj'](join,_0xd4674e,_0x580b17(0x1a2)+_0x5f1b49+'.png'),_0x54303c=await fetch(_0x56865d);if(!_0x54303c['ok'])return null;const _0x27a0cc=Buffer['from'](await _0x54303c[_0x580b17(0x142)]());return await writeFile(_0x3bb87c,_0x27a0cc),_0x3bb87c;}catch{return null;}}export async function featureGetReview(_0x449435){const _0x237ec9=_0x3dcc19,_0x17d0dd={'bIpcT':function(_0x2110c2){return _0x2110c2();},'uutqs':_0x237ec9(0xea),'vJFfp':function(_0x549b8f,_0x4da0c8){return _0x549b8f(_0x4da0c8);},'LRbAC':function(_0x1f86b9,_0xb57359){return _0x1f86b9===_0xb57359;},'VWPiJ':_0x237ec9(0xd5),'SFLgy':function(_0x168729,_0x1f206b){return _0x168729>_0x1f206b;},'sORbJ':function(_0x4c6fef,_0x1a45b1,_0x33964a){return _0x4c6fef(_0x1a45b1,_0x33964a);},'UlJMd':'en-US','MvJdl':_0x237ec9(0xdd),'gtYlJ':'numeric','cSOGB':'\x20>\x20','FaKUH':function(_0x2b05da,_0x6620af){return _0x2b05da>=_0x6620af;},'JuzkX':function(_0x1a6dbf,_0x4ebf29){return _0x1a6dbf+_0x4ebf29;}},_0xdf8908=_0x449435||await _0x17d0dd[_0x237ec9(0xd2)](getActiveFeatureId);if(!_0xdf8908)throw new Error(_0x17d0dd[_0x237ec9(0x165)]);const _0x22218f=await getFeature(_0xdf8908),{items:_0x358069}=await _0x17d0dd['vJFfp'](getActionItems,_0xdf8908);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x22218f['name']+'\x20('+_0x22218f['id']+')\x0a');if(_0x17d0dd['LRbAC'](_0x358069['length'],0x0)){console['log'](_0x17d0dd['VWPiJ']);return;}for(let _0x3480e4=0x0;_0x3480e4<_0x358069[_0x237ec9(0xdb)];_0x3480e4++){const _0x12cb81=_0x358069[_0x3480e4],_0x1e5100=_0x17d0dd['SFLgy'](_0x12cb81[_0x237ec9(0x14e)],0x1)?'\x20(v'+_0x12cb81['version']+')':'',_0x3a483e=await _0x17d0dd[_0x237ec9(0x11d)](getItemFeedback,_0xdf8908,_0x12cb81['id']);if(_0x17d0dd[_0x237ec9(0x155)](_0x3a483e[_0x237ec9(0xf3)][_0x237ec9(0xdb)],0x0)){console[_0x237ec9(0x173)]('Scenario\x20'+(_0x3480e4+0x1)+':\x20\x22'+_0x12cb81['description']+'\x22'+_0x1e5100+_0x237ec9(0x126)+_0x3a483e['unaddressedComments'][_0x237ec9(0xdb)]+'\x20unaddressed\x20comment(s)');for(const _0x588228 of _0x3a483e['unaddressedComments']){const _0x272f36=new Date(_0x588228[_0x237ec9(0x144)])['toLocaleDateString'](_0x17d0dd[_0x237ec9(0x14b)],{'month':_0x17d0dd[_0x237ec9(0xd3)],'day':_0x17d0dd['gtYlJ']}),_0x4bbc43=_0x588228['authorName']||_0x588228['authorEmail']||'Unknown';console[_0x237ec9(0x173)](_0x237ec9(0x16a)+_0x4bbc43+'\x20('+_0x272f36+'):\x20\x22'+_0x588228[_0x237ec9(0x110)]+'\x22');if(_0x588228[_0x237ec9(0xeb)]){const _0x279cfd=await downloadFeedbackImage(_0x588228['assetUrl'],_0x588228['id']);_0x279cfd&&console[_0x237ec9(0x173)](_0x237ec9(0xd1)+_0x279cfd);}if(_0x588228['domRef']){const _0x1b3509=_0x588228['domRef'][_0x237ec9(0x12b)]['split'](_0x17d0dd['cSOGB'])['pop']()?.['split'](':')[0x0]||_0x237ec9(0x148),_0x39626d=_0x588228['domRef']['textContent']?'\x20\x22'+_0x588228[_0x237ec9(0xcb)][_0x237ec9(0xf8)][_0x237ec9(0x146)](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x1b3509+'>'+_0x39626d),console[_0x237ec9(0x173)]('\x20\x20\x20\x20\x20📋\x20Selector:\x20'+_0x588228['domRef']['selector']);}else{if(_0x588228['spatial']){const _0x518fba=_0x588228['spatial'][_0x237ec9(0xf2)];_0x588228[_0x237ec9(0xe9)]['type']===_0x237ec9(0x19c)&&_0x17d0dd['FaKUH'](_0x518fba['length'],0x2)?console[_0x237ec9(0x173)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x518fba[0x0][_0x237ec9(0x19b)](0x2)+',\x20'+_0x518fba[0x1][_0x237ec9(0x19b)](0x2)+')'):console[_0x237ec9(0x173)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x588228[_0x237ec9(0xe9)]['type']+_0x237ec9(0xfd)+_0x518fba['map'](_0x2759a9=>_0x2759a9[_0x237ec9(0x19b)](0x2))[_0x237ec9(0xcf)](',\x20')+']');}}}if(_0x3a483e[_0x237ec9(0x10f)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x142db9 of _0x3a483e[_0x237ec9(0x10f)][_0x237ec9(0x128)]('\x0a')){console['log'](_0x237ec9(0xcd)+_0x142db9);}}}else console['log'](_0x237ec9(0x101)+_0x17d0dd[_0x237ec9(0xce)](_0x3480e4,0x1)+_0x237ec9(0x12a)+_0x12cb81[_0x237ec9(0xd7)]+'\x22'+_0x1e5100+_0x237ec9(0x17c)),console[_0x237ec9(0x173)](_0x237ec9(0x162));console[_0x237ec9(0x173)]('');}}export async function featureDelete(_0x2b98c5){const _0x2ed8fe=_0x3dcc19,_0x408143={'FpZGF':function(_0x1f6fd6,_0x136236){return _0x1f6fd6+_0x136236;}},_0x22123b=_0x2b98c5||await getActiveFeatureId();if(!_0x22123b)throw new Error(_0x2ed8fe(0xea));const _0x321c23=await getFeature(_0x22123b);await softDeleteFeature(_0x22123b),console['log']('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0x321c23['name']+'\x20('+_0x22123b+')'),console[_0x2ed8fe(0x173)](_0x408143[_0x2ed8fe(0x10d)](_0x2ed8fe(0x157),_0x22123b));}export async function featureRestore(_0xfa5ad5){await restoreFeature(_0xfa5ad5);const _0x4833ce=await getFeature(_0xfa5ad5);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x4833ce['name']+'\x20('+_0xfa5ad5+')'),displayFeature(_0x4833ce,_0x4833ce['checklistItems']);}function _0xa8e7(){const _0x50f5b4=['coordinates','unaddressedComments','tXjpA','258256FiFPDn','iZSEB','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','textContent','223595cesVCx','write','closed','GXZqo','\x20at\x20[','blockedReason','AUNvY','.\x20Feature\x20review\x20has\x20','Scenario\x20','SEpAI','\x20\x20\x20Status:\x20','toLocaleDateString','iteration','\x20--current-branch','verified','Step\x20','vmbkb','completed','\x0a✅\x20Resumed\x20feature\x20review:\x20','pqFzz','FpZGF','EHyar','canonicalFlow','content','bIdfl','\x0aGenerating\x20report...','DDQCr','completedAt','\x1b[0m','find','parentItemId','blocked','github.com/','\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','Showing\x20','.md','sORbJ','\x0a❌\x20Invalid\x20scenario\x20number(s):\x20','trim','DedmT','filter','\x20\x20\x20Description:\x20','\x0a✅\x20Session\x20is\x20already\x20completed.','scenario','excludeScenarios','\x20—\x20','terminalReason','split','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.',':\x20\x22','selector','Not\x20in\x20a\x20git\x20repository.','\x0a⚠️\x20\x20','error','\x20\x20\x20\x20\x20Branch:\x20','stats','cohrh','scenarios','verifiedItems','VRSjl','HGBIF','items','cAtqN','replace','stdin','feedback-images','pipe','dashboardUrl','incomplete','ready','pInNb','name','\x20--limit\x20','arrayBuffer','QksJy','createdAt','assets','slice','gitBranch','element','stdout','oWtlu','UlJMd','2042362muqZQB','linkedSession','version','json','trimEnd','toLocaleString','after','kBeYj','isInteger','SFLgy','\x20\x20\x20Created:\x20','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','CLAUDE_SESSION_ID','wokdQ','any','latestReview','git\x20rev-parse\x20--abbrev-ref\x20HEAD','exit','env','No\x20sessions\x20found.','has','screenshotUrls','\x20\x20✅\x20No\x20feedback\x20to\x20address','\x20incomplete','totalCount','uutqs','OgvBr','warn','utf-8','NpRQW','\x20\x20💬\x20','PHxdx','lRCgt','dNrUD','agentResponse','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20feature\x20review(s)\x20found','\x20\x20\x20▶️\x20Started\x20session\x20','DkFFk','log','BSvVu','\x20of\x20','134124WMSSfM','map','\x0aCreating\x20feature\x20review...','repeat','submittedAt','\x20concluded.','\x20—\x20no\x20comments','VTqxV','gitRepoUrl','\x0a\x20\x20\x20Scenarios:','JLVoO','\x20(v','/api/v1/mcp/browser-sessions/','sDhLB','wBWIQ','PQEjy','vvdTD','RhwRz','aXlXm','DOKkI','24sqTdxl','sessionId','MHwVx','\x20\x20\x20\x20\x20\x20Cancelled:\x20','offset','isTTY','DBQcb','Cannot\x20conclude\x20session\x20with\x20status:\x20','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','kiVOF','acQby','Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20','\x20\x20\x20Completed:\x20','zSnIr','OfvoR','verificationInProgressItems','RwJwZ','toFixed','point','screenshot','fZpqe','git\x20remote\x20get-url\x20origin','OGyIG','checklistItems','comment_','\x0a✅\x20Report\x20generated:\x20','\x20\x20\x20Branch:\x20','416946qxMooY','HTEWP','stqkg','LAMgy','RANGER_TEST_USERNAME','GcXNO','\x0a✅\x20Feature\x20review\x20created:\x20','domRef','location','\x20\x20\x20\x20','JuzkX','join','push','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','bIpcT','MvJdl','limit','No\x20scenarios\x20found.','incompleteReason','description','selected','\x20\x20\x20Updated\x20branch\x20to:\x20','reports','length','\x20scenario(s).','short','in_progress','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','893692zUcohl','currentSessionId','status','\x20\x20\x20','LqoGE','\x20Session\x20','pmxkc','...','\x20\x20\x20Progress:\x20','spatial','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','assetUrl','btcMq','includeDeleted','assetType','canceledReason','approved','5999472kXQKuB'];_0xa8e7=function(){return _0x50f5b4;};return _0xa8e7();}
@@ -1 +1 @@
1
- (function(_0x42d6af,_0x2af47c){const _0x5f352b=_0x5c4e,_0x35b830=_0x42d6af();while(!![]){try{const _0x299899=parseInt(_0x5f352b(0x10b))/0x1*(-parseInt(_0x5f352b(0x114))/0x2)+-parseInt(_0x5f352b(0x10d))/0x3*(-parseInt(_0x5f352b(0x112))/0x4)+parseInt(_0x5f352b(0x117))/0x5*(-parseInt(_0x5f352b(0x115))/0x6)+-parseInt(_0x5f352b(0x110))/0x7*(parseInt(_0x5f352b(0x10c))/0x8)+-parseInt(_0x5f352b(0x10e))/0x9*(parseInt(_0x5f352b(0x118))/0xa)+parseInt(_0x5f352b(0x116))/0xb+parseInt(_0x5f352b(0x10a))/0xc;if(_0x299899===_0x2af47c)break;else _0x35b830['push'](_0x35b830['shift']());}catch(_0x56c53b){_0x35b830['push'](_0x35b830['shift']());}}}(_0x31fa,0x2c691));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x350e54=_0x5c4e;if(cancellationHandlersInstalled)return;const _0x380d37=()=>{process['exit'](0x0);};process[_0x350e54(0x113)]('SIGINT',_0x380d37),process[_0x350e54(0x113)](_0x350e54(0x119),_0x380d37),process[_0x350e54(0x113)]('SIGHUP',_0x380d37),cancellationHandlersInstalled=!![];}function _0x31fa(){const _0x5a1572=['exit','keys','error','1006488LrXtZK','197pIoVUF','8RJnZIC','3XJfopX','9OgibVZ','Valid\x20hooks:\x20','100723NQTZfQ','join','662932JCHKML','once','1772mJyzPE','124962lQbNSs','3381356WDZZFv','10XYdswa','1445130FHkUxE','SIGTERM'];_0x31fa=function(){return _0x5a1572;};return _0x31fa();}function _0x5c4e(_0x8b9290,_0x47c4f2){_0x8b9290=_0x8b9290-0x107;const _0x31fae5=_0x31fa();let _0x5c4ef5=_0x31fae5[_0x8b9290];return _0x5c4ef5;}export async function hook(_0x3d47c6,_0x111a06){const _0x5cce8e=_0x5c4e;installCancellationHandlers();const _0x1c822d=HOOKS[_0x3d47c6];if(!_0x1c822d){const _0x40ff00=Object[_0x5cce8e(0x108)](HOOKS)[_0x5cce8e(0x111)](',\x20');console['error']('Unknown\x20hook:\x20'+_0x3d47c6),console[_0x5cce8e(0x109)](_0x5cce8e(0x10f)+_0x40ff00),process[_0x5cce8e(0x107)](0x1);}await _0x1c822d(_0x111a06);}
1
+ (function(_0x59397b,_0xa071d3){const _0x2d7c90=_0xbe3e,_0x37e130=_0x59397b();while(!![]){try{const _0x43495e=-parseInt(_0x2d7c90(0x1d3))/0x1+-parseInt(_0x2d7c90(0x1db))/0x2+-parseInt(_0x2d7c90(0x1dc))/0x3*(parseInt(_0x2d7c90(0x1d7))/0x4)+-parseInt(_0x2d7c90(0x1cf))/0x5*(parseInt(_0x2d7c90(0x1d4))/0x6)+-parseInt(_0x2d7c90(0x1d0))/0x7*(parseInt(_0x2d7c90(0x1de))/0x8)+parseInt(_0x2d7c90(0x1dd))/0x9+parseInt(_0x2d7c90(0x1da))/0xa*(parseInt(_0x2d7c90(0x1d6))/0xb);if(_0x43495e===_0xa071d3)break;else _0x37e130['push'](_0x37e130['shift']());}catch(_0x55a554){_0x37e130['push'](_0x37e130['shift']());}}}(_0x3f9d,0x739f2));function _0x3f9d(){const _0x422ba1=['CjEla','13885MXGymY','7KiJrhE','error','exit','66572PlnGAf','342XbrjMz','once','5229565vWybMB','4AKeUaL','Valid\x20hooks:\x20','SIGINT','20FntsnO','635972MOMUeC','25893skkwcp','5068251hOcImF','3911240pSzWfR'];_0x3f9d=function(){return _0x422ba1;};return _0x3f9d();}import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};function _0xbe3e(_0x3ea7dd,_0x30d1bd){_0x3ea7dd=_0x3ea7dd-0x1ce;const _0x3f9db5=_0x3f9d();let _0xbe3edd=_0x3f9db5[_0x3ea7dd];return _0xbe3edd;}let cancellationHandlersInstalled=![];function installCancellationHandlers(){const _0x1bd38b=_0xbe3e,_0x3913a9={'CjEla':'SIGTERM'};if(cancellationHandlersInstalled)return;const _0x101c4c=()=>{process['exit'](0x0);};process[_0x1bd38b(0x1d5)](_0x1bd38b(0x1d9),_0x101c4c),process[_0x1bd38b(0x1d5)](_0x3913a9[_0x1bd38b(0x1ce)],_0x101c4c),process[_0x1bd38b(0x1d5)]('SIGHUP',_0x101c4c),cancellationHandlersInstalled=!![];}export async function hook(_0x59d5d5,_0x427794){const _0x52125b=_0xbe3e;installCancellationHandlers();const _0x5156d7=HOOKS[_0x59d5d5];if(!_0x5156d7){const _0x2a1f96=Object['keys'](HOOKS)['join'](',\x20');console[_0x52125b(0x1d1)]('Unknown\x20hook:\x20'+_0x59d5d5),console['error'](_0x52125b(0x1d8)+_0x2a1f96),process[_0x52125b(0x1d2)](0x1);}await _0x5156d7(_0x427794);}
@@ -1 +1 @@
1
- (function(_0x285481,_0x2449cf){const _0x450a10=_0x3fcc,_0x159572=_0x285481();while(!![]){try{const _0x5371f0=parseInt(_0x450a10(0x9c))/0x1*(parseInt(_0x450a10(0xa3))/0x2)+parseInt(_0x450a10(0xa1))/0x3+parseInt(_0x450a10(0x9e))/0x4*(parseInt(_0x450a10(0xa2))/0x5)+parseInt(_0x450a10(0xa5))/0x6*(-parseInt(_0x450a10(0xa9))/0x7)+parseInt(_0x450a10(0xa7))/0x8*(-parseInt(_0x450a10(0xaa))/0x9)+-parseInt(_0x450a10(0xa4))/0xa*(parseInt(_0x450a10(0xa8))/0xb)+parseInt(_0x450a10(0x9f))/0xc*(-parseInt(_0x450a10(0xa6))/0xd);if(_0x5371f0===_0x2449cf)break;else _0x159572['push'](_0x159572['shift']());}catch(_0x1cea8d){_0x159572['push'](_0x159572['shift']());}}}(_0x12ce,0x4d0ed));function _0x3fcc(_0x6e6d6b,_0x548600){_0x6e6d6b=_0x6e6d6b-0x9c;const _0x12ce4f=_0x12ce();let _0x3fcc4e=_0x12ce4f[_0x6e6d6b];return _0x3fcc4e;}import{readHookInput}from'./output.js';function _0x12ce(){const _0x1e2305=['90KpdEmI','552kVlXrz','322387vVyXfp','8hYSnnO','31009bBUxYN','35756eQymWG','2601009uyBcxz','1iiShvX','log','121228YEHtgB','24BHWIPY','ambzw','1317798UlfBVM','60WpWrtj','693170YNqzKi'];_0x12ce=function(){return _0x1e2305;};return _0x12ce();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';export async function autoPrompt(){const _0x49c16d=_0x3fcc,_0x27c912={'ambzw':function(_0x2eafc1,_0x4d0b3b){return _0x2eafc1(_0x4d0b3b);}},_0xea6e75=await readHookInput(),_0x4581e4=_0xea6e75?.['session_id'];if(!_0x4581e4)return;if(isSessionEnabled(_0x4581e4)||hasSessionBeenPrompted(_0x4581e4))return;_0x27c912[_0x49c16d(0xa0)](markSessionPrompted,_0x4581e4),console[_0x49c16d(0x9d)](AUTO_PROMPT_TEXT);}
1
+ const _0x5a86f9=_0x1988;(function(_0x3c1b0c,_0x2f79aa){const _0x6792d4=_0x1988,_0xf2047=_0x3c1b0c();while(!![]){try{const _0x44a3e7=-parseInt(_0x6792d4(0x1dc))/0x1+parseInt(_0x6792d4(0x1d6))/0x2*(parseInt(_0x6792d4(0x1d3))/0x3)+parseInt(_0x6792d4(0x1d2))/0x4*(-parseInt(_0x6792d4(0x1de))/0x5)+parseInt(_0x6792d4(0x1da))/0x6*(-parseInt(_0x6792d4(0x1dd))/0x7)+-parseInt(_0x6792d4(0x1d5))/0x8*(parseInt(_0x6792d4(0x1d8))/0x9)+-parseInt(_0x6792d4(0x1d1))/0xa*(parseInt(_0x6792d4(0x1d9))/0xb)+parseInt(_0x6792d4(0x1d7))/0xc;if(_0x44a3e7===_0x2f79aa)break;else _0xf2047['push'](_0xf2047['shift']());}catch(_0x16ebaa){_0xf2047['push'](_0xf2047['shift']());}}}(_0x4222,0x315ae));function _0x4222(){const _0x48f600=['7wYJscC','249455eZBbSY','Ybape','10kAsXPO','4IuXliZ','33CZKLls','\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.','243424SImdFu','44708xsqpZM','6100032hUCaMF','18TDMQUT','42361IwMbap','976686gsqsoP','log','274693voakRt'];_0x4222=function(){return _0x48f600;};return _0x4222();}import{readHookInput}from'./output.js';function _0x1988(_0x2d6149,_0x3e8d96){_0x2d6149=_0x2d6149-0x1d0;const _0x4222a8=_0x4222();let _0x198837=_0x4222a8[_0x2d6149];return _0x198837;}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT=_0x5a86f9(0x1d4);export async function autoPrompt(){const _0x4f57fb=_0x5a86f9,_0x536217={'Ybape':function(_0x253a97,_0x41099d){return _0x253a97(_0x41099d);}},_0x3ea268=await readHookInput(),_0x307e81=_0x3ea268?.['session_id'];if(!_0x307e81)return;if(_0x536217['Ybape'](isSessionEnabled,_0x307e81)||_0x536217[_0x4f57fb(0x1d0)](hasSessionBeenPrompted,_0x307e81))return;markSessionPrompted(_0x307e81),console[_0x4f57fb(0x1db)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x6503cb,_0xb6ce94){const _0xb4dc57=_0x3c43,_0xb40e3c=_0x6503cb();while(!![]){try{const _0x50a131=parseInt(_0xb4dc57(0x17e))/0x1+-parseInt(_0xb4dc57(0x180))/0x2*(-parseInt(_0xb4dc57(0x184))/0x3)+-parseInt(_0xb4dc57(0x17a))/0x4+parseInt(_0xb4dc57(0x185))/0x5*(-parseInt(_0xb4dc57(0x183))/0x6)+parseInt(_0xb4dc57(0x181))/0x7*(-parseInt(_0xb4dc57(0x17d))/0x8)+-parseInt(_0xb4dc57(0x18b))/0x9*(-parseInt(_0xb4dc57(0x17c))/0xa)+parseInt(_0xb4dc57(0x179))/0xb*(-parseInt(_0xb4dc57(0x17f))/0xc);if(_0x50a131===_0xb6ce94)break;else _0xb40e3c['push'](_0xb40e3c['shift']());}catch(_0x3f6f3e){_0xb40e3c['push'](_0xb40e3c['shift']());}}}(_0x5b6a,0x2b5f2));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x3c43(_0x403ee1,_0x39477e){_0x403ee1=_0x403ee1-0x179;const _0x5b6aca=_0x5b6a();let _0x3c43e6=_0x5b6aca[_0x403ee1];return _0x3c43e6;}function _0x5b6a(){const _0xc73dbe=['143OwaAsJ','183628hnxgmq','PwBpI','93700Fafowl','40ISfefU','288641WbqUjF','107220MLsTmK','2yOQAjn','49553DfpxHv','\x20and\x20branch\x20\x27','185100YsGXcm','373158rjnUXr','35PsfgTP','main','xIBkn','#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','CLAUDE_SESSION_ID','.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.','171KkCqjF'];_0x5b6a=function(){return _0xc73dbe;};return _0x5b6a();}import{printBlock}from'./output.js';export async function disable(_0x375403){const _0x1b6ac8=_0x3c43,_0x20a1fc={'PwBpI':function(_0x5b7ce0,_0x335a34){return _0x5b7ce0!==_0x335a34;},'xIBkn':_0x1b6ac8(0x186),'noLPf':'master','HNjEo':function(_0x21a242,_0x6134a4){return _0x21a242(_0x6134a4);}},_0x2ae780=_0x375403||process['env'][_0x1b6ac8(0x189)]||'';_0x2ae780&&disableSession(_0x2ae780);const _0x157735=getCurrentBranch();_0x157735&&_0x20a1fc[_0x1b6ac8(0x17b)](_0x157735,_0x20a1fc[_0x1b6ac8(0x187)])&&_0x157735!==_0x20a1fc['noLPf']&&_0x20a1fc['HNjEo'](disableBranch,_0x157735),_0x20a1fc['HNjEo'](printBlock,_0x1b6ac8(0x188)+(_0x157735&&_0x157735!==_0x1b6ac8(0x186)&&_0x20a1fc[_0x1b6ac8(0x17b)](_0x157735,'master')?_0x1b6ac8(0x182)+_0x157735+'\x27':'')+_0x1b6ac8(0x18a));}
1
+ (function(_0xa2b275,_0x3d1de6){const _0xc6696d=_0x5e4e,_0x3407fb=_0xa2b275();while(!![]){try{const _0x43f358=parseInt(_0xc6696d(0x130))/0x1*(-parseInt(_0xc6696d(0x134))/0x2)+-parseInt(_0xc6696d(0x128))/0x3*(-parseInt(_0xc6696d(0x12b))/0x4)+-parseInt(_0xc6696d(0x12a))/0x5+-parseInt(_0xc6696d(0x12d))/0x6+parseInt(_0xc6696d(0x136))/0x7*(parseInt(_0xc6696d(0x132))/0x8)+-parseInt(_0xc6696d(0x12f))/0x9+parseInt(_0xc6696d(0x135))/0xa;if(_0x43f358===_0x3d1de6)break;else _0x3407fb['push'](_0x3407fb['shift']());}catch(_0x425faf){_0x3407fb['push'](_0x3407fb['shift']());}}}(_0x1abc,0xc7076));function _0x1abc(){const _0x43382b=['#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session','2PpsJkE','14547170ogEmyc','7rJafnN','main','.\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`.','3YHMfLM','kfGSW','2027185hnGDIz','5143456vuKCtR','HnkTh','7253382rdIsup','master','2195343XSyaxI','203911HeMgFI','env','1094504NcAuQM'];_0x1abc=function(){return _0x43382b;};return _0x1abc();}function _0x5e4e(_0x41b337,_0x5d9175){_0x41b337=_0x41b337-0x127;const _0x1abcfb=_0x1abc();let _0x5e4e88=_0x1abcfb[_0x41b337];return _0x5e4e88;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x510df5){const _0x4bd64c=_0x5e4e,_0x4890ac={'kfGSW':function(_0x2645da,_0x517498){return _0x2645da(_0x517498);},'HnkTh':function(_0x327dc9,_0x5c1507){return _0x327dc9!==_0x5c1507;},'RFrWv':function(_0x40ed1a,_0x2f9398){return _0x40ed1a(_0x2f9398);},'JsYUk':_0x4bd64c(0x137),'uoANA':function(_0x35944f,_0x279c18){return _0x35944f!==_0x279c18;}},_0x337350=_0x510df5||process[_0x4bd64c(0x131)]['CLAUDE_SESSION_ID']||'';_0x337350&&_0x4890ac[_0x4bd64c(0x129)](disableSession,_0x337350);const _0x2eb81b=getCurrentBranch();_0x2eb81b&&_0x4890ac[_0x4bd64c(0x12c)](_0x2eb81b,'main')&&_0x2eb81b!==_0x4bd64c(0x12e)&&disableBranch(_0x2eb81b),_0x4890ac['RFrWv'](printBlock,_0x4bd64c(0x133)+(_0x2eb81b&&_0x4890ac[_0x4bd64c(0x12c)](_0x2eb81b,_0x4890ac['JsYUk'])&&_0x4890ac['uoANA'](_0x2eb81b,'master')?'\x20and\x20branch\x20\x27'+_0x2eb81b+'\x27':'')+_0x4bd64c(0x127));}
@@ -1 +1 @@
1
- (function(_0x3e0a72,_0xa9f1e3){const _0x12d018=_0x3186,_0x59c102=_0x3e0a72();while(!![]){try{const _0x39c309=parseInt(_0x12d018(0xf0))/0x1*(parseInt(_0x12d018(0xeb))/0x2)+-parseInt(_0x12d018(0xfa))/0x3*(-parseInt(_0x12d018(0xe7))/0x4)+-parseInt(_0x12d018(0xf8))/0x5*(-parseInt(_0x12d018(0xf4))/0x6)+-parseInt(_0x12d018(0xf2))/0x7+-parseInt(_0x12d018(0xf7))/0x8*(parseInt(_0x12d018(0xf5))/0x9)+parseInt(_0x12d018(0xf3))/0xa*(parseInt(_0x12d018(0xec))/0xb)+-parseInt(_0x12d018(0xe8))/0xc;if(_0x39c309===_0xa9f1e3)break;else _0x59c102['push'](_0x59c102['shift']());}catch(_0x44abc7){_0x59c102['push'](_0x59c102['shift']());}}}(_0xf39d,0x22b6d));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x3186(_0x175e00,_0x85f8a9){_0x175e00=_0x175e00-0xe3;const _0xf39d5b=_0xf39d();let _0x318675=_0xf39d5b[_0x175e00];return _0x318675;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0xf39d(){const _0x402f69=['56177WOvfKi','rNLmh','main','#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`','13svnJmg','VJLoF','1456245hpIFgm','70HBeVac','36OjcWOd','2934ZrznOn','ranger\x20setup','184wthpzK','150895gPrnLd','FWOcx','3780zuJXzD','ranger\x20setup\x20--opencode','CLAUDE_SESSION_ID','\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a','BDvlR','96wdjWOM','398700ESZCff','FIKRO','#\x20RANGER\x20ENABLED','22136ePgJkm'];_0xf39d=function(){return _0x402f69;};return _0xf39d();}import{update}from'../update.js';export async function enable(_0x5da216){const _0xa1eddb=_0x3186,_0x32a2e3={'rNLmh':_0xa1eddb(0xe3),'FIKRO':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','VJLoF':function(_0x2313ec,_0x59e2f6){return _0x2313ec(_0x59e2f6);},'FWOcx':function(_0x446fe5){return _0x446fe5();},'ZQwZp':_0xa1eddb(0xee),'PFgOk':'master','BDvlR':function(_0x27bb01){return _0x27bb01();}},_0x3b9a6e=_0x5da216||process['env'][_0xa1eddb(0xe4)]||'',_0xdd16c7=Boolean(_0x5da216),_0x46c00f=await getToken();if(!_0x46c00f){const _0x73cbd3=_0xdd16c7?_0x32a2e3[_0xa1eddb(0xed)]:_0xa1eddb(0xf6),_0x4beb6d=_0xdd16c7?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x32a2e3[_0xa1eddb(0xe9)];printBlock(_0xa1eddb(0xef)+_0x73cbd3+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x4beb6d);return;}try{await update();}catch{}_0x3b9a6e&&_0x32a2e3[_0xa1eddb(0xf1)](enableSession,_0x3b9a6e);const _0x1fa935=_0x32a2e3[_0xa1eddb(0xf9)](getCurrentBranch),_0x4a68d4=_0x1fa935&&_0x1fa935!==_0x32a2e3['ZQwZp']&&_0x1fa935!==_0x32a2e3['PFgOk']?'\x0a\x0a**Branch\x20\x27'+_0x1fa935+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x5b5765=_0x32a2e3[_0xa1eddb(0xe6)](getRangerSkillContent);printBlock(_0xa1eddb(0xea)+_0x4a68d4+_0xa1eddb(0xe5)+_0x5b5765+'\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.');}
1
+ (function(_0x27e757,_0x3aad27){const _0x46ab32=_0x5330,_0x4d21f5=_0x27e757();while(!![]){try{const _0x6b9ca4=-parseInt(_0x46ab32(0x198))/0x1*(-parseInt(_0x46ab32(0x193))/0x2)+-parseInt(_0x46ab32(0x19d))/0x3*(-parseInt(_0x46ab32(0x190))/0x4)+parseInt(_0x46ab32(0x197))/0x5+parseInt(_0x46ab32(0x192))/0x6+-parseInt(_0x46ab32(0x18d))/0x7*(-parseInt(_0x46ab32(0x194))/0x8)+parseInt(_0x46ab32(0x1a1))/0x9+-parseInt(_0x46ab32(0x191))/0xa;if(_0x6b9ca4===_0x3aad27)break;else _0x4d21f5['push'](_0x4d21f5['shift']());}catch(_0x5dd31d){_0x4d21f5['push'](_0x4d21f5['shift']());}}}(_0x1803,0x7073e));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x5330(_0x4addfd,_0x487245){_0x4addfd=_0x4addfd-0x18d;const _0x1803b2=_0x1803();let _0x5330a5=_0x1803b2[_0x4addfd];return _0x5330a5;}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';function _0x1803(){const _0x57c834=['uIPRT','ranger\x20setup\x20--opencode','968DRHNtS','19963730OcGtPX','1781616FTsZad','160462lLxRjD','16wbtMeU','#\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`','\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`.','1598915MvEMUO','7JMiuge','cDBeL','ranger\x20setup','oGejx','pWKRU','10284QzepGN','Restart\x20your\x20OpenCode\x20session\x20after\x20setup.','Uhjsi','main','1345671XvDWQj','1048418FSxMdM'];_0x1803=function(){return _0x57c834;};return _0x1803();}import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x206b7b){const _0x1f4232=_0x5330,_0x31af42={'cDBeL':function(_0x2f22ac,_0x2f16d8){return _0x2f22ac(_0x2f16d8);},'Uhjsi':_0x1f4232(0x19a),'pWKRU':_0x1f4232(0x19e),'GMWKG':function(_0xc98e1d,_0x422158){return _0xc98e1d(_0x422158);},'oGejx':function(_0x479b53){return _0x479b53();},'kTQPt':function(_0x81d2b6,_0xd054b9){return _0x81d2b6(_0xd054b9);},'CiuRl':_0x1f4232(0x1a0),'uIPRT':function(_0x1912ac,_0x4d1c64){return _0x1912ac!==_0x4d1c64;},'tpqaL':function(_0x335a06){return _0x335a06();}},_0x582e83=_0x206b7b||process['env']['CLAUDE_SESSION_ID']||'',_0x51211f=_0x31af42[_0x1f4232(0x199)](Boolean,_0x206b7b),_0x5e9c4c=await getToken();if(!_0x5e9c4c){const _0x547e87=_0x51211f?_0x1f4232(0x18f):_0x31af42[_0x1f4232(0x19f)],_0x2fb93a=_0x51211f?_0x31af42[_0x1f4232(0x19c)]:'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';_0x31af42['GMWKG'](printBlock,_0x1f4232(0x195)+_0x547e87+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x2fb93a);return;}try{await _0x31af42[_0x1f4232(0x19b)](update);}catch{}_0x582e83&&_0x31af42['kTQPt'](enableSession,_0x582e83);const _0x4f7e85=getCurrentBranch(),_0x4da7f9=_0x4f7e85&&_0x4f7e85!==_0x31af42['CiuRl']&&_0x31af42[_0x1f4232(0x18e)](_0x4f7e85,'master')?'\x0a\x0a**Branch\x20\x27'+_0x4f7e85+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x5b2707=_0x31af42['tpqaL'](getRangerSkillContent);_0x31af42['GMWKG'](printBlock,'#\x20RANGER\x20ENABLED'+_0x4da7f9+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x5b2707+_0x1f4232(0x196));}
@@ -1 +1 @@
1
- (function(_0x557f06,_0x585256){const _0x5f5be7=_0x4645,_0x38d3e0=_0x557f06();while(!![]){try{const _0x5c19fe=-parseInt(_0x5f5be7(0xfa))/0x1+parseInt(_0x5f5be7(0xf2))/0x2+-parseInt(_0x5f5be7(0xf6))/0x3*(parseInt(_0x5f5be7(0xf3))/0x4)+parseInt(_0x5f5be7(0xf8))/0x5*(parseInt(_0x5f5be7(0xf0))/0x6)+-parseInt(_0x5f5be7(0xfb))/0x7*(parseInt(_0x5f5be7(0xf4))/0x8)+parseInt(_0x5f5be7(0xf7))/0x9+parseInt(_0x5f5be7(0xf9))/0xa;if(_0x5c19fe===_0x585256)break;else _0x38d3e0['push'](_0x38d3e0['shift']());}catch(_0x1a4346){_0x38d3e0['push'](_0x38d3e0['shift']());}}}(_0x24ec,0xbde50));import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x20f0c8){const _0x517a60=_0x4645,_0x2b9515={'llKHl':function(_0x4a69a5,_0x2a8dd9){return _0x4a69a5(_0x2a8dd9);}},_0x4da63e=await _0x2b9515[_0x517a60(0xf5)](getEnabledSessionId,_0x20f0c8);if(!_0x4da63e)return;printBlock(_0x517a60(0xf1));}function _0x4645(_0x5a847e,_0x1072aa){_0x5a847e=_0x5a847e-0xf0;const _0x24ec00=_0x24ec();let _0x464570=_0x24ec00[_0x5a847e];return _0x464570;}function _0x24ec(){const _0x2dc099=['7694730LPOBHa','619506xTfIpq','210abBGap','1402740WpiJgb','===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===','684zKZOWU','984agrbWl','36984pqBVMC','llKHl','7311CTRjIZ','10187109dSxRqV','5IMyUIR'];_0x24ec=function(){return _0x2dc099;};return _0x24ec();}
1
+ function _0x2b1f(_0x111211,_0x23e90c){_0x111211=_0x111211-0x12c;const _0x3c46c7=_0x3c46();let _0x2b1f4a=_0x3c46c7[_0x111211];return _0x2b1f4a;}(function(_0x1f0d87,_0x432325){const _0x488ad7=_0x2b1f,_0x2bc334=_0x1f0d87();while(!![]){try{const _0x53b18c=parseInt(_0x488ad7(0x132))/0x1+-parseInt(_0x488ad7(0x130))/0x2*(parseInt(_0x488ad7(0x135))/0x3)+-parseInt(_0x488ad7(0x131))/0x4+-parseInt(_0x488ad7(0x134))/0x5*(-parseInt(_0x488ad7(0x133))/0x6)+parseInt(_0x488ad7(0x12f))/0x7+-parseInt(_0x488ad7(0x12c))/0x8*(-parseInt(_0x488ad7(0x136))/0x9)+-parseInt(_0x488ad7(0x12e))/0xa;if(_0x53b18c===_0x432325)break;else _0x2bc334['push'](_0x2bc334['shift']());}catch(_0xc3a118){_0x2bc334['push'](_0x2bc334['shift']());}}}(_0x3c46,0x6468d));function _0x3c46(){const _0x3c20ab=['1043616OEXlnL','742753wKyDDo','1847556lqayFk','10iJNdOP','1116066fnWDGG','16974MyqfJJ','744koLxWg','===\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===','11187580ctXpux','4402706qztuIb','2kMfnNr'];_0x3c46=function(){return _0x3c20ab;};return _0x3c46();}import{printBlock,getEnabledSessionId}from'./output.js';export async function exitPlanMode(_0x427a9d){const _0xfa7336=_0x2b1f,_0x4160db={'EZqvq':function(_0x56e04d,_0x5bbcce){return _0x56e04d(_0x5bbcce);}},_0x24e0cd=await getEnabledSessionId(_0x427a9d);if(!_0x24e0cd)return;_0x4160db['EZqvq'](printBlock,_0xfa7336(0x12d));}
@@ -1 +1 @@
1
- (function(_0xdfb62c,_0x2a926b){var _0x4b55c3=_0x1b7c,_0x34dffa=_0xdfb62c();while(!![]){try{var _0x1dafcb=parseInt(_0x4b55c3(0x105))/0x1+parseInt(_0x4b55c3(0xfe))/0x2+-parseInt(_0x4b55c3(0x100))/0x3*(parseInt(_0x4b55c3(0x104))/0x4)+parseInt(_0x4b55c3(0x106))/0x5*(-parseInt(_0x4b55c3(0xfd))/0x6)+-parseInt(_0x4b55c3(0x103))/0x7*(-parseInt(_0x4b55c3(0xfb))/0x8)+-parseInt(_0x4b55c3(0x102))/0x9*(-parseInt(_0x4b55c3(0xfc))/0xa)+parseInt(_0x4b55c3(0x101))/0xb*(-parseInt(_0x4b55c3(0xff))/0xc);if(_0x1dafcb===_0x2a926b)break;else _0x34dffa['push'](_0x34dffa['shift']());}catch(_0x1ab11e){_0x34dffa['push'](_0x34dffa['shift']());}}}(_0x1d3d,0xa8d52));export{sessionStart}from'./sessionStart.js';function _0x1d3d(){var _0xa76376=['2333088mPhJMO','11254308rojcpn','24iULIgu','11VhFDiQ','6333399cHtdfV','7KdFNTY','679096VPfXYm','966229NHubIE','5oQAPWa','4063824oBZaCb','10lPwzpi','2141238cGVwBD'];_0x1d3d=function(){return _0xa76376;};return _0x1d3d();}export{sessionEnd}from'./sessionEnd.js';function _0x1b7c(_0x490321,_0x14a498){_0x490321=_0x490321-0xfb;var _0x1d3de4=_0x1d3d();var _0x1b7cda=_0x1d3de4[_0x490321];return _0x1b7cda;}export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0x17c823,_0x430ee2){var _0x69312=_0x15fc,_0x3c7d13=_0x17c823();while(!![]){try{var _0x58e6c6=-parseInt(_0x69312(0x95))/0x1*(-parseInt(_0x69312(0x96))/0x2)+parseInt(_0x69312(0x9b))/0x3+-parseInt(_0x69312(0x9d))/0x4*(parseInt(_0x69312(0x9e))/0x5)+-parseInt(_0x69312(0x98))/0x6*(-parseInt(_0x69312(0x9c))/0x7)+-parseInt(_0x69312(0x94))/0x8+parseInt(_0x69312(0x9a))/0x9*(-parseInt(_0x69312(0x99))/0xa)+-parseInt(_0x69312(0x97))/0xb;if(_0x58e6c6===_0x430ee2)break;else _0x3c7d13['push'](_0x3c7d13['shift']());}catch(_0x143e5d){_0x3c7d13['push'](_0x3c7d13['shift']());}}}(_0x4609,0x982bb));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';function _0x15fc(_0x16f154,_0x79cb1b){_0x16f154=_0x16f154-0x94;var _0x4609ba=_0x4609();var _0x15fc01=_0x4609ba[_0x16f154];return _0x15fc01;}export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';function _0x4609(){var _0x2f2eb7=['8324DBrmzm','5087720teQPKY','570ZNFiaw','959430tvXBQe','9JGMGzy','1760910SEDtLe','54523bEMrXp','1569532TSLKXQ','5gvuWmt','7245296eXvOnm','277wzuIjs'];_0x4609=function(){return _0x2f2eb7;};return _0x4609();}export{autoPrompt}from'./autoPrompt.js';