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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -0
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -0
  42. package/build/commands/utils/cloudProfileSession.js +1 -0
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -0
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -0
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -0
  63. package/build/commands/utils/resolveProfileUrl.js +1 -0
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +18 -4
  78. package/build/skills/ranger/create.md +6 -0
  79. package/build/skills/ranger/verify.md +23 -3
  80. package/package.json +6 -2
@@ -1 +1 @@
1
- const _0x54fb5a=_0x116c;function _0x5e60(){const _0x5b20bb=['bug-bash','filter','opencode.json','TUBdk','15TGBQAA','WxJUe','win32','replace','2548593mTRXIi','AKunS','luudd','Vfuam','2353274nvnoEm','BDFmS','log','plugin','ranger@trailhead','--scope','xNraF','length','marketplace','gKDhx','✓\x20Removed\x20stored\x20credentials','BfdRZ','@ranger-testing/opencode-plugin','gYqNq','1066656aGLbWz','stringify','TACez','mAtLm','Nothing\x20to\x20clean\x20up.\x0a','GZlfr','claude','udGdh','blXfD','✓\x20Removed\x20.ranger/\x20directory','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','600804aKzLxY','SWhoT','ACGRI','70418RKMZuU','user','950020KLAeTC','string','15CWUJdv','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','GSEqG','iLaKP','eOHsu','isArray','mBwgt','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','1792552VCAbPO','pipe','✓\x20Removed\x20project\x20skill:\x20','mnukP','ECwsD'];_0x5e60=function(){return _0x5b20bb;};return _0x5e60();}(function(_0x121749,_0x3969ba){const _0x9f721=_0x116c,_0xab6387=_0x121749();while(!![]){try{const _0x31674d=parseInt(_0x9f721(0x1e9))/0x1*(parseInt(_0x9f721(0x1e5))/0x2)+parseInt(_0x9f721(0x1e2))/0x3+parseInt(_0x9f721(0x1e7))/0x4*(-parseInt(_0x9f721(0x1c1))/0x5)+parseInt(_0x9f721(0x1d7))/0x6+-parseInt(_0x9f721(0x1c9))/0x7+parseInt(_0x9f721(0x1b8))/0x8+parseInt(_0x9f721(0x1c5))/0x9;if(_0x31674d===_0x3969ba)break;else _0xab6387['push'](_0xab6387['shift']());}catch(_0x4f2be2){_0xab6387['push'](_0xab6387['shift']());}}}(_0x5e60,0x590b8));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker',_0x54fb5a(0x1bd),'e2e-test-recommender'],opencodePluginName=_0x54fb5a(0x1d5);function parseJsonc(_0x36c0d8){const _0x1b7a28=_0x54fb5a,_0x21d3ab=_0x36c0d8['replace'](/\/\*[\s\S]*?\*\//g,''),_0x387ecf=_0x21d3ab['replace'](/^\s*\/\/.*$/gm,''),_0x41d537=_0x387ecf[_0x1b7a28(0x1c4)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x41d537);}async function removeOpencodePluginConfig(_0x4ca356){const _0x22fd4b=_0x54fb5a,_0x31642f={'oDXKQ':function(_0x766697,_0x1bb0e1){return _0x766697!==_0x1bb0e1;},'gKDhx':_0x22fd4b(0x1e8),'AmuNZ':function(_0x4375ca,_0x44bbfc){return _0x4375ca(_0x44bbfc);},'YGsFI':function(_0x18a464,_0x2c7c07,_0x27a528){return _0x18a464(_0x2c7c07,_0x27a528);},'HaAeQ':'utf-8','GZlfr':function(_0x2125d2,_0x568623){return _0x2125d2(_0x568623);},'GSEqG':function(_0x1be86d,_0x4c10ff){return _0x1be86d+_0x4c10ff;}};if(!_0x31642f['AmuNZ'](existsSync,_0x4ca356))return![];let _0x54c55b;try{const _0xf771ea=await _0x31642f['YGsFI'](readFile,_0x4ca356,_0x31642f['HaAeQ']);_0x54c55b=_0x31642f[_0x22fd4b(0x1dc)](parseJsonc,_0xf771ea);}catch{return![];}const _0x21a34c=Array[_0x22fd4b(0x1b5)](_0x54c55b['plugin'])?_0x54c55b['plugin']:[];if(_0x21a34c[_0x22fd4b(0x1d0)]===0x0)return![];const _0x2c0f64=_0x21a34c[_0x22fd4b(0x1be)](_0x2cf57a=>{const _0x3f80e6=_0x22fd4b;if(_0x31642f['oDXKQ'](typeof _0x2cf57a,_0x31642f[_0x3f80e6(0x1d2)]))return!![];return _0x2cf57a!==opencodePluginName;});if(_0x2c0f64['length']===_0x21a34c['length'])return![];return _0x2c0f64[_0x22fd4b(0x1d0)]===0x0?delete _0x54c55b['plugin']:_0x54c55b['plugin']=_0x2c0f64,await writeFile(_0x4ca356,_0x31642f[_0x22fd4b(0x1eb)](JSON[_0x22fd4b(0x1d8)](_0x54c55b,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x27db39){const _0x558cda=_0x54fb5a,_0xdda422={'iWrBC':function(_0x1053df,_0x40aeb2){return _0x1053df(_0x40aeb2);},'mBwgt':'plugin','TUBdk':_0x558cda(0x1ce),'ZNQtq':'claude','eOHsu':_0x558cda(0x1b9),'Ryhrl':function(_0x2054f4,_0x3ba8b1){return _0x2054f4===_0x3ba8b1;},'TACez':_0x558cda(0x1c3),'BDFmS':'error'};return new Promise(_0x31124e=>{const _0x56638f=_0x558cda,_0x94056f={'znrnl':function(_0x1e28ad,_0x28e501){return _0xdda422['iWrBC'](_0x1e28ad,_0x28e501);},'mAtLm':function(_0x174ea5,_0x555519){return _0x174ea5===_0x555519;}},_0x53465c=[_0xdda422[_0x56638f(0x1b6)],'uninstall',_0x56638f(0x1cd)];_0x27db39&&_0x53465c['push'](_0xdda422[_0x56638f(0x1c0)],_0x27db39);const _0x59684b=spawn(_0xdda422['ZNQtq'],_0x53465c,{'stdio':_0xdda422[_0x56638f(0x1ed)],'shell':_0xdda422['Ryhrl'](process['platform'],_0xdda422[_0x56638f(0x1d9)])});_0x59684b['on']('close',_0x55229a=>{const _0x5ef2ff=_0x56638f;_0x94056f['znrnl'](_0x31124e,_0x94056f[_0x5ef2ff(0x1da)](_0x55229a,0x0));}),_0x59684b['on'](_0xdda422[_0x56638f(0x1ca)],()=>{_0x31124e(![]);});});}function _0x116c(_0x5d5eb1,_0x312967){_0x5d5eb1=_0x5d5eb1-0x1b5;const _0x5e6016=_0x5e60();let _0x116cf4=_0x5e6016[_0x5d5eb1];return _0x116cf4;}async function removeMarketplace(){const _0x370f67=_0x54fb5a,_0x288108={'AKunS':function(_0x589ac1,_0x29bf71){return _0x589ac1(_0x29bf71);},'Vfuam':function(_0x4d9d89,_0x3b1be2){return _0x4d9d89===_0x3b1be2;},'cPNgC':_0x370f67(0x1dd),'yXLye':'remove','WxJUe':_0x370f67(0x1b9),'blXfD':'close'};return new Promise(_0x1ce1ca=>{const _0x135c4f=_0x370f67,_0x5fc5f5=spawn(_0x288108['cPNgC'],[_0x135c4f(0x1cc),_0x135c4f(0x1d1),_0x288108['yXLye'],'trailhead'],{'stdio':_0x288108[_0x135c4f(0x1c2)],'shell':process['platform']==='win32'});_0x5fc5f5['on'](_0x288108[_0x135c4f(0x1df)],_0x42e60b=>{const _0x39809c=_0x135c4f;_0x288108[_0x39809c(0x1c6)](_0x1ce1ca,_0x288108[_0x39809c(0x1c8)](_0x42e60b,0x0));}),_0x5fc5f5['on']('error',()=>{_0x1ce1ca(![]);});});}export async function clean(){const _0x14d80b=_0x54fb5a,_0x29e8de={'MEmft':_0x14d80b(0x1d3),'xNraF':function(_0xc4ade5,_0x4dc14f){return _0xc4ade5(_0x4dc14f);},'SWhoT':function(_0x4b4c89){return _0x4b4c89();},'iLaKP':function(_0x1341b5,_0x472bd5,_0x4350ec){return _0x1341b5(_0x472bd5,_0x4350ec);},'aYGUc':_0x14d80b(0x1e0),'qJjTz':function(_0x552fea,_0x5aa8eb){return _0x552fea(_0x5aa8eb);},'xBrhx':function(_0x49897f,_0x1eb877){return _0x49897f(_0x1eb877);},'gYqNq':function(_0x35a675,_0x364bcb,_0x1a643b){return _0x35a675(_0x364bcb,_0x1a643b);},'BfdRZ':function(_0x5ce89d,_0x3d3ebf,_0x133ef8){return _0x5ce89d(_0x3d3ebf,_0x133ef8);},'zmucl':function(_0x190bbf,_0x411dd5,_0x13920c){return _0x190bbf(_0x411dd5,_0x13920c);},'udGdh':function(_0x59e029,_0xe96cae,_0x38aef4){return _0x59e029(_0xe96cae,_0x38aef4);},'ECwsD':function(_0x25c5dc,_0x51eb31){return _0x25c5dc(_0x51eb31);},'luudd':'project','LCGbw':function(_0x288d81,_0x403323){return _0x288d81(_0x403323);},'ACGRI':function(_0x34a87c,_0x4b7a2b,_0x17c39e){return _0x34a87c(_0x4b7a2b,_0x17c39e);},'mnukP':_0x14d80b(0x1e6),'fFSyB':_0x14d80b(0x1b7),'NHhkC':'\x0a✅\x20Cleanup\x20complete!\x0a'};console[_0x14d80b(0x1cb)](_0x14d80b(0x1ea));let _0x2c7bd7=![];try{await deleteAllCredentials(),console[_0x14d80b(0x1cb)](_0x29e8de['MEmft']),_0x2c7bd7=!![];}catch{}const _0x33a29c=getCacheFile();existsSync(_0x33a29c)&&(await _0x29e8de['xNraF'](rm,_0x33a29c),_0x2c7bd7=!![]);const _0x5e1479=_0x29e8de['SWhoT'](getRangerDir);_0x29e8de[_0x14d80b(0x1cf)](existsSync,_0x5e1479)&&(await _0x29e8de['iLaKP'](rm,_0x5e1479,{'recursive':!![]}),console['log'](_0x29e8de['aYGUc']),_0x2c7bd7=!![]);const _0x4ff251=getProjectSkillsDir();for(const _0x327973 of skillsToRemove){const _0x28604a=_0x29e8de[_0x14d80b(0x1ec)](join,_0x4ff251,_0x327973);_0x29e8de['qJjTz'](existsSync,_0x28604a)&&(await rm(_0x28604a,{'recursive':!![]}),console[_0x14d80b(0x1cb)](_0x14d80b(0x1ba)+_0x327973),_0x2c7bd7=!![]);}const _0x28c6e0=getUserSkillsDir();for(const _0x2541ba of skillsToRemove){const _0x12ae63=join(_0x28c6e0,_0x2541ba);_0x29e8de['xBrhx'](existsSync,_0x12ae63)&&(await rm(_0x12ae63,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x2541ba),_0x2c7bd7=!![]);}const _0x289ba1=getOpencodeSkillsDir('project');for(const _0x43f483 of skillsToRemove){const _0x1b8c44=_0x29e8de[_0x14d80b(0x1d6)](join,_0x289ba1,_0x43f483);existsSync(_0x1b8c44)&&(await _0x29e8de[_0x14d80b(0x1d4)](rm,_0x1b8c44,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x43f483),_0x2c7bd7=!![]);}const _0x231f4b=_0x29e8de[_0x14d80b(0x1cf)](getOpencodeSkillsDir,'user');for(const _0x39195b of skillsToRemove){const _0x3c06a0=join(_0x231f4b,_0x39195b);existsSync(_0x3c06a0)&&(await _0x29e8de['zmucl'](rm,_0x3c06a0,{'recursive':!![]}),console[_0x14d80b(0x1cb)](_0x14d80b(0x1e1)+_0x39195b),_0x2c7bd7=!![]);}const _0x1245b5=_0x29e8de[_0x14d80b(0x1de)](join,_0x29e8de[_0x14d80b(0x1bc)](getOpencodeConfigDir,_0x29e8de[_0x14d80b(0x1c7)]),_0x14d80b(0x1bf));await _0x29e8de['LCGbw'](removeOpencodePluginConfig,_0x1245b5)&&(console['log']('✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'),_0x2c7bd7=!![]);const _0x210646=_0x29e8de[_0x14d80b(0x1e4)](join,getOpencodeConfigDir(_0x29e8de[_0x14d80b(0x1bb)]),'opencode.json');await removeOpencodePluginConfig(_0x210646)&&(console['log'](_0x29e8de['fFSyB']),_0x2c7bd7=!![]);const _0x378c27=await _0x29e8de[_0x14d80b(0x1e3)](uninstallClaudePlugin);_0x378c27&&(console[_0x14d80b(0x1cb)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x2c7bd7=!![]);const _0x460b1a=await _0x29e8de['qJjTz'](uninstallClaudePlugin,_0x29e8de['luudd']);_0x460b1a&&(console[_0x14d80b(0x1cb)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x2c7bd7=!![]);const _0x19858f=await removeMarketplace();_0x19858f&&(console[_0x14d80b(0x1cb)]('✓\x20Removed\x20trailhead\x20marketplace'),_0x2c7bd7=!![]),_0x2c7bd7?console[_0x14d80b(0x1cb)](_0x29e8de['NHhkC']):console[_0x14d80b(0x1cb)](_0x14d80b(0x1db));}
1
+ const _0x43775c=_0x4a05;(function(_0xa38371,_0x4adcc1){const _0x1777e1=_0x4a05,_0x273ef5=_0xa38371();while(!![]){try{const _0x5ca3a2=-parseInt(_0x1777e1(0x1c5))/0x1*(parseInt(_0x1777e1(0x1db))/0x2)+-parseInt(_0x1777e1(0x1e4))/0x3+parseInt(_0x1777e1(0x1d1))/0x4+-parseInt(_0x1777e1(0x1ba))/0x5*(parseInt(_0x1777e1(0x1b8))/0x6)+-parseInt(_0x1777e1(0x1dc))/0x7*(parseInt(_0x1777e1(0x1bf))/0x8)+parseInt(_0x1777e1(0x1c0))/0x9*(parseInt(_0x1777e1(0x1b9))/0xa)+-parseInt(_0x1777e1(0x1e7))/0xb*(-parseInt(_0x1777e1(0x1bd))/0xc);if(_0x5ca3a2===_0x4adcc1)break;else _0x273ef5['push'](_0x273ef5['shift']());}catch(_0x29da87){_0x273ef5['push'](_0x273ef5['shift']());}}}(_0x1949,0xe9e17));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x1949(){const _0x4e1f25=['29196uNTOnl','bug-bash','close','SVFYY','Qooze','845057jbvoWi','plugin','error','QalXm','abXRG','OeblK','raUtA','Pwgih','win32','trailhead','parse','rAuuQ','7478236fjqXWR','EkoPo','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','dsgkI','pipe','--scope','qyvmm','✓\x20Removed\x20trailhead\x20marketplace','user','2kffvYA','742fbIPSs','platform','Mtkbg','feature-tracker','utf-8','GrERa','length','sHYIa','174603GWqNTh','claude','log','26803579MMXuZB','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','SbKJR','RGRpq','opencode.json','ranger@trailhead','zphtG','marketplace','Nothing\x20to\x20clean\x20up.\x0a','QXRfn','3449046yUgfQn','130QJtyWv','5AduWHS','uninstall','push','12jcurMS','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','144328BSDPIF'];_0x1949=function(){return _0x4e1f25;};return _0x1949();}function _0x4a05(_0x32e513,_0x269d5a){_0x32e513=_0x32e513-0x1b3;const _0x19497c=_0x1949();let _0x4a05f1=_0x19497c[_0x32e513];return _0x4a05f1;}import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x43775c(0x1df),_0x43775c(0x1c1),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x338aab){const _0x547fb7=_0x43775c,_0x105fd0=_0x338aab['replace'](/\/\*[\s\S]*?\*\//g,''),_0xc9877e=_0x105fd0['replace'](/^\s*\/\/.*$/gm,''),_0x7cca5=_0xc9877e['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x547fb7(0x1cf)](_0x7cca5);}async function removeOpencodePluginConfig(_0xfc4c2){const _0x5cd75a=_0x43775c,_0xe0e476={'CtQER':function(_0xb3753,_0x1e1100){return _0xb3753(_0x1e1100);},'Qooze':function(_0x570c78,_0x420221){return _0x570c78===_0x420221;},'abXRG':function(_0x34db50,_0x5b4fed,_0x34ea30){return _0x34db50(_0x5b4fed,_0x34ea30);}};if(!existsSync(_0xfc4c2))return![];let _0x3250af;try{const _0x2896b6=await readFile(_0xfc4c2,_0x5cd75a(0x1e0));_0x3250af=_0xe0e476['CtQER'](parseJsonc,_0x2896b6);}catch{return![];}const _0x7aed05=Array['isArray'](_0x3250af['plugin'])?_0x3250af[_0x5cd75a(0x1c6)]:[];if(_0x7aed05[_0x5cd75a(0x1e2)]===0x0)return![];const _0x2ea75a=_0x7aed05['filter'](_0x407cb=>{if(typeof _0x407cb!=='string')return!![];return _0x407cb!==opencodePluginName;});if(_0xe0e476['Qooze'](_0x2ea75a[_0x5cd75a(0x1e2)],_0x7aed05[_0x5cd75a(0x1e2)]))return![];return _0xe0e476[_0x5cd75a(0x1c4)](_0x2ea75a['length'],0x0)?delete _0x3250af['plugin']:_0x3250af[_0x5cd75a(0x1c6)]=_0x2ea75a,await _0xe0e476[_0x5cd75a(0x1c9)](writeFile,_0xfc4c2,JSON['stringify'](_0x3250af,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x217c6e){const _0x20fb7e=_0x43775c,_0x22e8b6={'SVFYY':function(_0x2c823c,_0x5d59f8){return _0x2c823c===_0x5d59f8;},'pkxog':_0x20fb7e(0x1bb),'SbKJR':_0x20fb7e(0x1b3),'dsgkI':function(_0x1e0a43,_0x1d294b,_0x2f4e3d,_0x36d870){return _0x1e0a43(_0x1d294b,_0x2f4e3d,_0x36d870);},'sHYIa':_0x20fb7e(0x1d6),'QalXm':'win32'};return new Promise(_0x4d39c1=>{const _0x49cd71=_0x20fb7e,_0x32630e=['plugin',_0x22e8b6['pkxog'],_0x22e8b6[_0x49cd71(0x1e9)]];_0x217c6e&&_0x32630e[_0x49cd71(0x1bc)](_0x49cd71(0x1d7),_0x217c6e);const _0xb316ca=_0x22e8b6[_0x49cd71(0x1d5)](spawn,_0x49cd71(0x1e5),_0x32630e,{'stdio':_0x22e8b6[_0x49cd71(0x1e3)],'shell':process[_0x49cd71(0x1dd)]===_0x22e8b6[_0x49cd71(0x1c8)]});_0xb316ca['on'](_0x49cd71(0x1c2),_0x114072=>{const _0xe6a049=_0x49cd71;_0x4d39c1(_0x22e8b6[_0xe6a049(0x1c3)](_0x114072,0x0));}),_0xb316ca['on']('error',()=>{_0x4d39c1(![]);});});}async function removeMarketplace(){const _0x13359f=_0x43775c,_0x4eec3c={'VyhhL':function(_0x1ff4c2,_0x1b165f){return _0x1ff4c2===_0x1b165f;},'GrERa':function(_0x547283,_0xf74584){return _0x547283(_0xf74584);},'CFYPD':'claude','gLMUg':'plugin','iqbBR':_0x13359f(0x1b5),'RGRpq':'remove','BKDuy':_0x13359f(0x1ce),'zphtG':_0x13359f(0x1cd)};return new Promise(_0x542b5e=>{const _0x2a9c72=_0x13359f,_0x54e32f={'QcuJH':function(_0x141537,_0x6cc1c){const _0x401182=_0x4a05;return _0x4eec3c[_0x401182(0x1e1)](_0x141537,_0x6cc1c);}},_0xf764a2=spawn(_0x4eec3c['CFYPD'],[_0x4eec3c['gLMUg'],_0x4eec3c['iqbBR'],_0x4eec3c[_0x2a9c72(0x1ea)],_0x4eec3c['BKDuy']],{'stdio':_0x2a9c72(0x1d6),'shell':process[_0x2a9c72(0x1dd)]===_0x4eec3c[_0x2a9c72(0x1b4)]});_0xf764a2['on']('close',_0x2f32cf=>{_0x542b5e(_0x4eec3c['VyhhL'](_0x2f32cf,0x0));}),_0xf764a2['on'](_0x2a9c72(0x1c7),()=>{_0x54e32f['QcuJH'](_0x542b5e,![]);});});}export async function clean(){const _0x4f0916=_0x43775c,_0x11af69={'Pwgih':'✓\x20Removed\x20stored\x20credentials','OeblK':function(_0xe81219,_0x1f77d2){return _0xe81219(_0x1f77d2);},'JgDhj':function(_0x3f6152){return _0x3f6152();},'QXRfn':function(_0x443faa,_0x4b94fe,_0x2c4714){return _0x443faa(_0x4b94fe,_0x2c4714);},'Mtkbg':function(_0x2080bd,_0x23e196){return _0x2080bd(_0x23e196);},'raUtA':'project','ufRLt':function(_0x404984,_0x365a4b,_0x2511a0){return _0x404984(_0x365a4b,_0x2511a0);},'elACL':function(_0x36cc57,_0x3fa118,_0x1f232a){return _0x36cc57(_0x3fa118,_0x1f232a);},'KIhHw':function(_0x3125fc,_0x388484,_0x2542f8){return _0x3125fc(_0x388484,_0x2542f8);},'EkoPo':_0x4f0916(0x1d4),'qyvmm':function(_0x26d2be,_0x49bbdf,_0x59db2e){return _0x26d2be(_0x49bbdf,_0x59db2e);},'wDpLD':'opencode.json','rAuuQ':_0x4f0916(0x1be),'qJzLW':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','YMick':_0x4f0916(0x1b6)};console[_0x4f0916(0x1e6)]('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2786d6=![];try{await deleteAllCredentials(),console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1cc)]),_0x2786d6=!![];}catch{}const _0x4e13ce=getCacheFile();existsSync(_0x4e13ce)&&(await _0x11af69[_0x4f0916(0x1ca)](rm,_0x4e13ce),_0x2786d6=!![]);const _0x181024=getRangerDir();existsSync(_0x181024)&&(await rm(_0x181024,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x2786d6=!![]);const _0xe1e2a8=getProjectSkillsDir();for(const _0x3e757b of skillsToRemove){const _0x1a9247=join(_0xe1e2a8,_0x3e757b);existsSync(_0x1a9247)&&(await rm(_0x1a9247,{'recursive':!![]}),console[_0x4f0916(0x1e6)]('✓\x20Removed\x20project\x20skill:\x20'+_0x3e757b),_0x2786d6=!![]);}const _0xd5ad49=_0x11af69['JgDhj'](getUserSkillsDir);for(const _0xdb381c of skillsToRemove){const _0x13dc4c=_0x11af69[_0x4f0916(0x1b7)](join,_0xd5ad49,_0xdb381c);_0x11af69[_0x4f0916(0x1ca)](existsSync,_0x13dc4c)&&(await rm(_0x13dc4c,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0xdb381c),_0x2786d6=!![]);}const _0x10d7f8=_0x11af69['Mtkbg'](getOpencodeSkillsDir,_0x11af69[_0x4f0916(0x1cb)]);for(const _0x3c9a4d of skillsToRemove){const _0x5b87ea=_0x11af69['ufRLt'](join,_0x10d7f8,_0x3c9a4d);existsSync(_0x5b87ea)&&(await _0x11af69['elACL'](rm,_0x5b87ea,{'recursive':!![]}),console[_0x4f0916(0x1e6)](_0x4f0916(0x1e8)+_0x3c9a4d),_0x2786d6=!![]);}const _0xdf3b7e=_0x11af69[_0x4f0916(0x1de)](getOpencodeSkillsDir,_0x4f0916(0x1da));for(const _0x1e993e of skillsToRemove){const _0x2c47fb=join(_0xdf3b7e,_0x1e993e);existsSync(_0x2c47fb)&&(await rm(_0x2c47fb,{'recursive':!![]}),console[_0x4f0916(0x1e6)](_0x4f0916(0x1d3)+_0x1e993e),_0x2786d6=!![]);}const _0x2db0c0=_0x11af69['KIhHw'](join,_0x11af69['OeblK'](getOpencodeConfigDir,_0x11af69['raUtA']),_0x4f0916(0x1eb));await removeOpencodePluginConfig(_0x2db0c0)&&(console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1d2)]),_0x2786d6=!![]);const _0x534dce=_0x11af69[_0x4f0916(0x1d8)](join,getOpencodeConfigDir('user'),_0x11af69['wDpLD']);await removeOpencodePluginConfig(_0x534dce)&&(console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1d0)]),_0x2786d6=!![]);const _0x56711c=await uninstallClaudePlugin();_0x56711c&&(console['log'](_0x11af69['qJzLW']),_0x2786d6=!![]);const _0x4012d2=await uninstallClaudePlugin(_0x11af69[_0x4f0916(0x1cb)]);_0x4012d2&&(console[_0x4f0916(0x1e6)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x2786d6=!![]);const _0x3ab74e=await _0x11af69['JgDhj'](removeMarketplace);_0x3ab74e&&(console['log'](_0x4f0916(0x1d9)),_0x2786d6=!![]),_0x2786d6?console[_0x4f0916(0x1e6)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log'](_0x11af69['YMick']);}
@@ -1 +1 @@
1
- const _0x56a18b=_0xe495;(function(_0x2dedc0,_0x70baa4){const _0x19fe02=_0xe495,_0x1005c3=_0x2dedc0();while(!![]){try{const _0x5a44e9=parseInt(_0x19fe02(0xd1))/0x1*(-parseInt(_0x19fe02(0xc1))/0x2)+parseInt(_0x19fe02(0xbe))/0x3*(parseInt(_0x19fe02(0xcd))/0x4)+parseInt(_0x19fe02(0xc6))/0x5+-parseInt(_0x19fe02(0xc8))/0x6*(-parseInt(_0x19fe02(0xcb))/0x7)+parseInt(_0x19fe02(0xbf))/0x8+-parseInt(_0x19fe02(0xd5))/0x9*(parseInt(_0x19fe02(0xc7))/0xa)+-parseInt(_0x19fe02(0xd6))/0xb*(parseInt(_0x19fe02(0xc2))/0xc);if(_0x5a44e9===_0x70baa4)break;else _0x1005c3['push'](_0x1005c3['shift']());}catch(_0x29444a){_0x1005c3['push'](_0x1005c3['shift']());}}}(_0x4b8f,0x6073e));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x56a18b(0xd0),'allowInsecureLocalhost'];function parseValue(_0x40a434,_0x53ea9c){const _0x131e6f=_0x56a18b,_0x322e65={'ZraPV':'false'};if(BOOLEAN_KEYS[_0x131e6f(0xca)](_0x40a434)){if(_0x53ea9c==='true')return!![];if(_0x53ea9c===_0x322e65['ZraPV'])return![];throw new Error(_0x131e6f(0xd9)+_0x40a434+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x53ea9c;}function _0x4b8f(){const _0x227abe=['Key\x20\x22','DpTQi','Hvdnh','2626120GmEVst','10vmrsHJ','12slFFsG','mPDSy','includes','1660631jDDHCL','\x22\x20not\x20found','2052egERxC','Removed\x20','log','headless','210439qOLXhP','AiRIA','\x20=\x20','Set\x20','945549sLTjdk','5735389kuQlqh','Profile\x20\x22','MMLnW','Invalid\x20value\x20for\x20','\x22\x20does\x20not\x20exist.','stringify','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','1623GNAddU','5492672DEbfFO','No\x20configuration\x20set\x20for\x20\x22','4qpBwDl','24EoWWAv'];_0x4b8f=function(){return _0x227abe;};return _0x4b8f();}function _0xe495(_0x5d40bd,_0x3643d1){_0x5d40bd=_0x5d40bd-0xbe;const _0x4b8f92=_0x4b8f();let _0xe4957d=_0x4b8f92[_0x5d40bd];return _0xe4957d;}export async function configSet(_0x2dc0a1,_0x1f33cb,_0x41ca31){const _0x4d869a=_0x56a18b,_0x24eb67={'AiRIA':function(_0x3e3a9f,_0x3595c2,_0x511812){return _0x3e3a9f(_0x3595c2,_0x511812);},'mPDSy':function(_0x78b6c4,_0x5edecc,_0x87410b,_0x1e032c){return _0x78b6c4(_0x5edecc,_0x87410b,_0x1e032c);},'oWjDl':function(_0x367e31,_0x378888,_0x5a6a02){return _0x367e31(_0x378888,_0x5a6a02);}},_0x367631=getEnvDir(_0x2dc0a1);if(!existsSync(_0x367631))throw new Error('Profile\x20\x22'+_0x2dc0a1+_0x4d869a(0xdc)+_0x2dc0a1);const _0x189fa9=await loadSettings(_0x2dc0a1),_0xfc1480=_0x24eb67[_0x4d869a(0xd2)](parseValue,_0x1f33cb,_0x41ca31);_0x24eb67[_0x4d869a(0xc9)](setNestedValue,_0x189fa9,_0x1f33cb,_0xfc1480),await _0x24eb67['oWjDl'](saveSettings,_0x2dc0a1,_0x189fa9),console[_0x4d869a(0xcf)](_0x4d869a(0xd4)+_0x1f33cb+_0x4d869a(0xd3)+_0xfc1480);}export async function configGet(_0x541c0d,_0x585276){const _0x302b41=_0x56a18b,_0xb3ce8d={'gNMsG':function(_0x1b2b06,_0x456239){return _0x1b2b06(_0x456239);},'zUtMU':function(_0xe80880,_0x4fab82){return _0xe80880===_0x4fab82;}},_0x443f7e=_0xb3ce8d['gNMsG'](getEnvDir,_0x541c0d);if(!existsSync(_0x443f7e))throw new Error(_0x302b41(0xd7)+_0x541c0d+'\x22\x20does\x20not\x20exist.');const _0x2b70cf=await _0xb3ce8d['gNMsG'](loadSettings,_0x541c0d),_0x18fb19=getNestedValue(_0x2b70cf,_0x585276);if(_0xb3ce8d['zUtMU'](_0x18fb19,undefined))console['log']('(not\x20set)');else typeof _0x18fb19==='object'?console[_0x302b41(0xcf)](JSON[_0x302b41(0xdb)](_0x18fb19,null,0x2)):console['log'](_0x18fb19);}export async function configList(_0x902769){const _0x23075f=_0x56a18b,_0x946d87={'Hvdnh':function(_0x529deb,_0x14c7ad){return _0x529deb(_0x14c7ad);},'cMuKZ':function(_0x1665f7,_0x291d7d){return _0x1665f7(_0x291d7d);},'DpTQi':function(_0x4bcb58,_0x1706d5){return _0x4bcb58(_0x1706d5);},'MMLnW':function(_0x1e2c57,_0x425319){return _0x1e2c57(_0x425319);}},_0x5ae9b4=_0x946d87[_0x23075f(0xc5)](getSettingsPath,_0x902769);if(!_0x946d87['cMuKZ'](existsSync,_0x5ae9b4)){const _0x1920a3=_0x946d87['cMuKZ'](getEnvDir,_0x902769);if(!_0x946d87[_0x23075f(0xc4)](existsSync,_0x1920a3))throw new Error(_0x23075f(0xd7)+_0x902769+'\x22\x20does\x20not\x20exist.');console['log'](_0x23075f(0xc0)+_0x902769+'\x22');return;}const _0x3103a0=await _0x946d87[_0x23075f(0xd8)](loadSettings,_0x902769),_0x1484d2=formatSettings(_0x3103a0);!_0x1484d2?console[_0x23075f(0xcf)](_0x23075f(0xc0)+_0x902769+'\x22'):console[_0x23075f(0xcf)](_0x1484d2);}export async function configUnset(_0x2e608c,_0x4d73a7){const _0x5e2479=_0x56a18b,_0xc9986c={'bPpzn':function(_0x5b29f0,_0x2f3d6d){return _0x5b29f0(_0x2f3d6d);},'XEtCo':function(_0x2111de,_0x5efc96){return _0x2111de(_0x5efc96);},'CBTTI':function(_0x18b2ee,_0x467128,_0x386918){return _0x18b2ee(_0x467128,_0x386918);}},_0x138e15=getEnvDir(_0x2e608c);if(!_0xc9986c['bPpzn'](existsSync,_0x138e15))throw new Error('Profile\x20\x22'+_0x2e608c+_0x5e2479(0xda));const _0x4d37bd=await _0xc9986c['XEtCo'](loadSettings,_0x2e608c),_0x8ec01d=deleteNestedValue(_0x4d37bd,_0x4d73a7);_0x8ec01d?(await _0xc9986c['CBTTI'](saveSettings,_0x2e608c,_0x4d37bd),console['log'](_0x5e2479(0xce)+_0x4d73a7)):console[_0x5e2479(0xcf)](_0x5e2479(0xc3)+_0x4d73a7+_0x5e2479(0xcc));}
1
+ const _0x168740=_0x510c;(function(_0x17978a,_0x10a61c){const _0x2eab11=_0x510c,_0x24e3b3=_0x17978a();while(!![]){try{const _0x50db33=parseInt(_0x2eab11(0xa5))/0x1*(parseInt(_0x2eab11(0xaa))/0x2)+-parseInt(_0x2eab11(0x9b))/0x3+-parseInt(_0x2eab11(0xb6))/0x4+parseInt(_0x2eab11(0x9c))/0x5+-parseInt(_0x2eab11(0xb2))/0x6*(-parseInt(_0x2eab11(0xa8))/0x7)+parseInt(_0x2eab11(0xad))/0x8*(parseInt(_0x2eab11(0xa2))/0x9)+parseInt(_0x2eab11(0x99))/0xa*(-parseInt(_0x2eab11(0xa7))/0xb);if(_0x50db33===_0x10a61c)break;else _0x24e3b3['push'](_0x24e3b3['shift']());}catch(_0x498d8e){_0x24e3b3['push'](_0x24e3b3['shift']());}}}(_0x2217,0x50591));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=[_0x168740(0xb9),'allowInsecureLocalhost'];function _0x2217(){const _0x208192=['Cleared\x20local\x20overrides\x20for\x20\x22','KrKpU','isSafeInteger','10BZwqlT','\x20\x20Note:\x20\x22','61998mkNDpr','2861125CEhqgX','No\x20configuration\x20set\x20for\x20\x22','parse','endsWith','kind','startsWith','4184514eTiNeD','true','ZjCbt','6229xMMNNo','includes','15178581jBBxRG','20552ptxziT','LmvoR','118jqPbJH','\x20for\x20\x22','stringify','8lDRVHZ','local','Key\x20\x22','test','alsoExistsElsewhere','1164hpAuUt','length','UwFTh','false','978496zvaiIV','axvyp','\x20=\x20','headless','object','eVRaz','cloud','dOfnJ','log','Removed\x20','VXmwB','nhXxV','wTcnr','trim','qjgSo'];_0x2217=function(){return _0x208192;};return _0x2217();}function parseLocalValue(_0xdd19eb,_0x5a125d){const _0xcff5f6=_0x168740,_0x518831={'oaUdx':function(_0x3d397a,_0x46d89b){return _0x3d397a===_0x46d89b;},'dOfnJ':_0xcff5f6(0xa3),'WedLC':_0xcff5f6(0xb5)};if(BOOLEAN_KEYS[_0xcff5f6(0xa6)](_0xdd19eb)){if(_0x518831['oaUdx'](_0x5a125d,_0x518831[_0xcff5f6(0x8e)]))return!![];if(_0x5a125d===_0x518831['WedLC'])return![];throw new Error('Invalid\x20value\x20for\x20'+_0xdd19eb+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x5a125d;}function parseOverrideValue(_0x43a12c){const _0x2c1153=_0x168740,_0x56c00c={'wTcnr':_0x2c1153(0xa3),'hFpAq':function(_0x2f501e,_0x245ccc){return _0x2f501e===_0x245ccc;},'RHhcE':function(_0xf86a42,_0x2b01e5){return _0xf86a42===_0x2b01e5;},'axvyp':function(_0x40a635,_0x2a62a4){return _0x40a635(_0x2a62a4);}};if(_0x43a12c===_0x56c00c[_0x2c1153(0x93)])return!![];if(_0x56c00c['hFpAq'](_0x43a12c,'false'))return![];if(_0x56c00c['RHhcE'](_0x43a12c,'null'))return null;if(_0x56c00c['RHhcE'](_0x43a12c,'undefined'))return undefined;if(/^-?\d+$/[_0x2c1153(0xb0)](_0x43a12c)){const _0x5031b9=_0x56c00c[_0x2c1153(0xb7)](Number,_0x43a12c);if(Number[_0x2c1153(0x98)](_0x5031b9))return _0x5031b9;}if(/^-?\d+\.\d+$/['test'](_0x43a12c)){const _0x4882fe=Number(_0x43a12c);if(!Number['isNaN'](_0x4882fe))return _0x4882fe;}const _0xa5618d=_0x43a12c[_0x2c1153(0x94)]();if(_0xa5618d[_0x2c1153(0xa1)]('{')&&_0xa5618d[_0x2c1153(0x9f)]('}')||_0xa5618d[_0x2c1153(0xa1)]('[')&&_0xa5618d[_0x2c1153(0x9f)](']'))try{return JSON[_0x2c1153(0x9e)](_0xa5618d);}catch{}return _0x43a12c;}function _0x510c(_0x575810,_0x2e728e){_0x575810=_0x575810-0x8d;const _0x2217f6=_0x2217();let _0x510ce3=_0x2217f6[_0x575810];return _0x510ce3;}async function resolveProfileTarget(_0x2b786a){const _0x5ef43a=_0x168740,_0x107674={'UqQyo':function(_0x283fb1,_0x5bfa0c){return _0x283fb1(_0x5bfa0c);},'HenNc':function(_0x29f4e9,_0xce5b5a){return _0x29f4e9(_0xce5b5a);},'OqcEa':_0x5ef43a(0xae)},_0x24c4f8=existsSync(_0x107674['UqQyo'](getEnvDir,_0x2b786a));let _0x1715a3=![];try{const _0x51b9f5=await fetchCloudProfile(_0x2b786a);_0x1715a3=_0x107674['HenNc'](Boolean,_0x51b9f5);}catch{}if(_0x1715a3)return{'kind':_0x5ef43a(0x8d),'alsoExistsElsewhere':_0x24c4f8};if(_0x24c4f8)return{'kind':_0x107674['OqcEa'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x2b786a+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x2b786a);}function printDualExistsHint(_0xb9f4eb){const _0x2b8deb=_0x168740;console['log'](_0x2b8deb(0x9a)+_0xb9f4eb+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x80ed0){const _0x4d00df={'bAcbW':function(_0x295f24,_0x5a4acd){return _0x295f24??_0x5a4acd;}},_0x402d26=await fetchCloudProfile(_0x80ed0),_0x501d31=readProfileOverrides(getProjectPath(),_0x80ed0);return mergeCloudProfileSettings(_0x402d26?.['settings']??{},_0x4d00df['bAcbW'](_0x501d31,undefined));}export async function configSet(_0x1e16af,_0x47d16c,_0x2de9f4){const _0x4a3d11=_0x168740,_0x26337a={'UwFTh':function(_0x449af1,_0x3118f2){return _0x449af1(_0x3118f2);},'ynZmE':function(_0x5bb25a,_0x2bb0c4){return _0x5bb25a===_0x2bb0c4;},'VXmwB':_0x4a3d11(0x8d),'LmvoR':function(_0x2f67a1,_0x4a6629){return _0x2f67a1(_0x4a6629);},'tciXz':function(_0x28a0e9){return _0x28a0e9();}},_0x3b94b7=await _0x26337a[_0x4a3d11(0xb4)](resolveProfileTarget,_0x1e16af);if(_0x26337a['ynZmE'](_0x3b94b7['kind'],_0x26337a[_0x4a3d11(0x91)])){if(_0x3b94b7[_0x4a3d11(0xb1)])_0x26337a[_0x4a3d11(0xb4)](printDualExistsHint,_0x1e16af);const _0x46610a=_0x26337a[_0x4a3d11(0xa9)](parseOverrideValue,_0x2de9f4);setProfileOverride(_0x26337a['tciXz'](getProjectPath),_0x1e16af,_0x47d16c,_0x46610a),console[_0x4a3d11(0x8f)]('Set\x20'+_0x47d16c+'\x20=\x20'+JSON[_0x4a3d11(0xac)](_0x46610a)+_0x4a3d11(0xab)+_0x1e16af+'\x22');return;}const _0x30d924=await loadSettings(_0x1e16af),_0x3b95a3=parseLocalValue(_0x47d16c,_0x2de9f4);setNestedValue(_0x30d924,_0x47d16c,_0x3b95a3),await saveSettings(_0x1e16af,_0x30d924),console['log']('Set\x20'+_0x47d16c+_0x4a3d11(0xb8)+_0x3b95a3+'\x20for\x20\x22'+_0x1e16af+'\x22');}export async function configGet(_0x15be3e,_0x49fad1){const _0x299018=_0x168740,_0x57aaba={'KrKpU':function(_0x403933,_0x29a003){return _0x403933(_0x29a003);},'nhXxV':function(_0x7a7497,_0x310943){return _0x7a7497===_0x310943;},'eVRaz':function(_0x2312e6,_0x925a9d){return _0x2312e6===_0x925a9d;}},_0x560efc=await resolveProfileTarget(_0x15be3e);if(_0x560efc['kind']===_0x299018(0x8d)){const _0x269681=await _0x57aaba[_0x299018(0x97)](loadEffectiveCloudSettings,_0x15be3e),_0x5df510=getNestedValue(_0x269681,_0x49fad1);if(_0x57aaba['nhXxV'](_0x5df510,undefined))console['log']('(not\x20set)');else _0x57aaba['nhXxV'](typeof _0x5df510,_0x299018(0xba))?console[_0x299018(0x8f)](JSON[_0x299018(0xac)](_0x5df510,null,0x2)):console[_0x299018(0x8f)](_0x5df510);return;}const _0x572030=await loadSettings(_0x15be3e),_0x5d8ee8=getNestedValue(_0x572030,_0x49fad1);if(_0x57aaba[_0x299018(0xbb)](_0x5d8ee8,undefined))console['log']('(not\x20set)');else _0x57aaba[_0x299018(0x92)](typeof _0x5d8ee8,_0x299018(0xba))?console['log'](JSON['stringify'](_0x5d8ee8,null,0x2)):console[_0x299018(0x8f)](_0x5d8ee8);}export async function configList(_0x1b8442){const _0x5bcd76=_0x168740,_0x5b6894={'watHg':'cloud','JTpBD':function(_0x34574a,_0x369ee9){return _0x34574a(_0x369ee9);},'GOBad':function(_0x1125b2,_0x7b7843){return _0x1125b2===_0x7b7843;}},_0x52bcc5=await resolveProfileTarget(_0x1b8442);if(_0x52bcc5[_0x5bcd76(0xa0)]===_0x5b6894['watHg']){const _0x438527=await _0x5b6894['JTpBD'](loadEffectiveCloudSettings,_0x1b8442);if(!_0x438527||_0x5b6894['GOBad'](Object['keys'](_0x438527)[_0x5bcd76(0xb3)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x1b8442+'\x22');return;}console[_0x5bcd76(0x8f)](JSON[_0x5bcd76(0xac)](_0x438527,null,0x2));return;}const _0x386e1b=getSettingsPath(_0x1b8442);if(!_0x5b6894['JTpBD'](existsSync,_0x386e1b)){console['log'](_0x5bcd76(0x9d)+_0x1b8442+'\x22');return;}const _0x4e77f9=await _0x5b6894['JTpBD'](loadSettings,_0x1b8442),_0x4cf706=_0x5b6894['JTpBD'](formatSettings,_0x4e77f9);!_0x4cf706?console[_0x5bcd76(0x8f)](_0x5bcd76(0x9d)+_0x1b8442+'\x22'):console['log'](_0x4cf706);}export async function configUnset(_0x492ac4,_0x2d8885){const _0x593087=_0x168740,_0x5e292b={'CgliY':function(_0x5ba11f,_0x5b1194){return _0x5ba11f(_0x5b1194);},'qjgSo':function(_0x10588a,_0x510fc7){return _0x10588a===_0x510fc7;},'QpzBU':'cloud','HiXEt':function(_0x520121,_0x4ca71f){return _0x520121(_0x4ca71f);},'ZjCbt':function(_0x3c4f33,_0x521183){return _0x3c4f33(_0x521183);}},_0x46628d=await _0x5e292b['CgliY'](resolveProfileTarget,_0x492ac4);if(_0x5e292b[_0x593087(0x95)](_0x46628d[_0x593087(0xa0)],_0x5e292b['QpzBU'])){if(_0x46628d['alsoExistsElsewhere'])_0x5e292b['HiXEt'](printDualExistsHint,_0x492ac4);const _0x16322a=unsetProfileOverride(getProjectPath(),_0x492ac4,_0x2d8885);_0x16322a?console['log'](_0x593087(0x90)+_0x2d8885+_0x593087(0xab)+_0x492ac4+'\x22'):console['log']('Key\x20\x22'+_0x2d8885+'\x22\x20not\x20found');return;}const _0x310b17=await _0x5e292b[_0x593087(0xa4)](loadSettings,_0x492ac4),_0x355c14=deleteNestedValue(_0x310b17,_0x2d8885);_0x355c14?(await saveSettings(_0x492ac4,_0x310b17),console[_0x593087(0x8f)]('Removed\x20'+_0x2d8885)):console[_0x593087(0x8f)](_0x593087(0xaf)+_0x2d8885+'\x22\x20not\x20found');}export async function configReset(_0x5ed315){const _0x484a40=_0x168740,_0x35cd2a={'DXFMV':function(_0x4b8420,_0x1c6987){return _0x4b8420(_0x1c6987);},'vpuuq':function(_0x4cf8ee,_0x361ce8,_0x16bea4){return _0x4cf8ee(_0x361ce8,_0x16bea4);},'MhhpK':function(_0x342c2a){return _0x342c2a();}},_0x5c1833=await _0x35cd2a['DXFMV'](resolveProfileTarget,_0x5ed315);if(_0x5c1833[_0x484a40(0xa0)]==='cloud'){_0x35cd2a['vpuuq'](resetProfileOverrides,_0x35cd2a['MhhpK'](getProjectPath),_0x5ed315),console[_0x484a40(0x8f)](_0x484a40(0x96)+_0x5ed315+'\x22');return;}console[_0x484a40(0x8f)]('\x22'+_0x5ed315+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x5ed315+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- const _0x45dba4=_0x25a8;(function(_0xc10428,_0x53d7e9){const _0x36e3c0=_0x25a8,_0x259c54=_0xc10428();while(!![]){try{const _0x5b18c6=-parseInt(_0x36e3c0(0x1ef))/0x1*(-parseInt(_0x36e3c0(0x1f1))/0x2)+-parseInt(_0x36e3c0(0x1ea))/0x3*(parseInt(_0x36e3c0(0x1d0))/0x4)+-parseInt(_0x36e3c0(0x1da))/0x5*(-parseInt(_0x36e3c0(0x1ed))/0x6)+-parseInt(_0x36e3c0(0x1d5))/0x7+-parseInt(_0x36e3c0(0x1d6))/0x8*(-parseInt(_0x36e3c0(0x1f0))/0x9)+-parseInt(_0x36e3c0(0x1e4))/0xa+parseInt(_0x36e3c0(0x1e5))/0xb*(-parseInt(_0x36e3c0(0x1e7))/0xc);if(_0x5b18c6===_0x53d7e9)break;else _0x259c54['push'](_0x259c54['shift']());}catch(_0x17152e){_0x259c54['push'](_0x259c54['shift']());}}}(_0x3c4d,0x77d39));import{readdir,stat}from'fs/promises';function _0x3c4d(){const _0x48d4e9=['zMmNa','environmentDetails','15354Aunqmd','kSTtv','Run:\x20ranger\x20profile\x20add\x20<profile-name>','3714TnYnwZ','local','5iRvlrP','153DpJowl','228448leZIGq','sessions','length','\x0aProfiles:','548SaxKDS','startsWith','\x0aNo\x20profiles\x20found.','TYxeh','\x0a*\x20=\x20active\x20profile','207935byLVRW','337760byFMcq','RannQ','includes','log','6315StfAdH','push','vAnbL','sort','.txt','baseUrl','isDirectory','settings.json','JGnuN','\x20\x20\x20\x20\x20\x20URL:\x20','6312630KScPgC','1197427diSZpF','WzagK','24pdOlEU'];_0x3c4d=function(){return _0x48d4e9;};return _0x3c4d();}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';function _0x25a8(_0x2cc088,_0x2d79b6){_0x2cc088=_0x2cc088-0x1cf;const _0x3c4d07=_0x3c4d();let _0x25a851=_0x3c4d07[_0x2cc088];return _0x25a851;}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';const NON_ENV_DIRS=[_0x45dba4(0x1f2),'bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x13c0f6=_0x45dba4,_0x1c1384={'WzagK':function(_0x5f3a98){return _0x5f3a98();},'dRghC':function(_0x6768a1,_0x1d0de8){return _0x6768a1(_0x1d0de8);},'BQpDC':function(_0x2ed5f2){return _0x2ed5f2();},'JGnuN':_0x13c0f6(0x1ee),'TYxeh':function(_0x576f4c,_0xe7d18c){return _0x576f4c(_0xe7d18c);},'McfuY':function(_0x47e994,_0x5bd79f,_0x32ce53){return _0x47e994(_0x5bd79f,_0x32ce53);},'kSTtv':function(_0x55bcc1,_0x4c214f){return _0x55bcc1(_0x4c214f);},'RannQ':function(_0x399846,_0x388f28,_0x1b6f90){return _0x399846(_0x388f28,_0x1b6f90);},'PGnyp':function(_0x230fd4,_0x397072){return _0x230fd4(_0x397072);},'CUIHQ':'legacy'},_0xd82235=_0x1c1384[_0x13c0f6(0x1e6)](getRangerDir);if(!_0x1c1384['dRghC'](existsSync,_0xd82235))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x42ca8d=await _0x1c1384['BQpDC'](readActiveProfileName),_0x91fdf8=[],_0x324e21={},_0x1c96eb=join(_0xd82235,_0x1c1384[_0x13c0f6(0x1e2)]);if(existsSync(_0x1c96eb)){const _0x1cc223=await _0x1c1384['TYxeh'](readdir,_0x1c96eb);for(const _0x13f1d6 of _0x1cc223){const _0x10041f=_0x1c1384['McfuY'](join,_0x1c96eb,_0x13f1d6),_0x1072c9=await _0x1c1384[_0x13c0f6(0x1eb)](stat,_0x10041f);_0x1072c9['isDirectory']()&&(_0x91fdf8['push'](_0x13f1d6),_0x324e21[_0x13f1d6]='local');}}const _0x2a2332=join(_0xd82235,'ci');if(existsSync(_0x2a2332)){const _0x5c4996=await _0x1c1384[_0x13c0f6(0x1d3)](readdir,_0x2a2332);for(const _0x4deb81 of _0x5c4996){const _0x2aba32=_0x1c1384[_0x13c0f6(0x1d7)](join,_0x2a2332,_0x4deb81),_0x4bc824=await stat(_0x2aba32);_0x4bc824[_0x13c0f6(0x1e0)]()&&(_0x91fdf8['push'](_0x4deb81),_0x324e21[_0x4deb81]='ci');}}const _0x414d5c=await readdir(_0xd82235);for(const _0x32d1da of _0x414d5c){if(NON_ENV_DIRS[_0x13c0f6(0x1d8)](_0x32d1da))continue;if(_0x32d1da[_0x13c0f6(0x1d1)]('.'))continue;if(_0x32d1da['endsWith'](_0x13c0f6(0x1de)))continue;const _0x3cf16d=join(_0xd82235,_0x32d1da),_0x542bf4=await _0x1c1384['TYxeh'](stat,_0x3cf16d);_0x542bf4[_0x13c0f6(0x1e0)]()&&_0x1c1384['PGnyp'](existsSync,join(_0x3cf16d,_0x13c0f6(0x1e1)))&&(!_0x91fdf8[_0x13c0f6(0x1d8)](_0x32d1da)&&(_0x91fdf8[_0x13c0f6(0x1db)](_0x32d1da),_0x324e21[_0x32d1da]=_0x1c1384['CUIHQ']));}return{'envNames':_0x91fdf8,'activeEnv':_0x42ca8d,'envTypes':_0x324e21};}export async function envList(){const _0xd3b009=_0x45dba4,_0x36836b={'zMmNa':function(_0x283336,_0x38bcbd){return _0x283336===_0x38bcbd;},'zIgVc':function(_0x1b896b,_0x29010c){return _0x1b896b(_0x29010c);},'vAnbL':'legacy'},{envNames:_0x2c7ae4,activeEnv:_0xc5a596,envTypes:_0x44f48c}=await getEnvNames();if(_0x36836b['zMmNa'](_0x2c7ae4[_0xd3b009(0x1f3)],0x0)){console[_0xd3b009(0x1d9)](_0xd3b009(0x1d2)),console[_0xd3b009(0x1d9)](_0xd3b009(0x1ec));return;}console[_0xd3b009(0x1d9)](_0xd3b009(0x1cf));for(const _0x37e452 of _0x2c7ae4[_0xd3b009(0x1dd)]()){const _0x4f9dc3=_0x36836b[_0xd3b009(0x1e8)](_0x37e452,_0xc5a596),_0x53cec7=_0x44f48c[_0x37e452]||_0xd3b009(0x1ee),_0x437653=await _0x36836b['zIgVc'](loadSettings,_0x37e452),_0x2ed2a6=_0x53cec7===_0x36836b[_0xd3b009(0x1dc)]?'':'\x20['+_0x53cec7+']';console[_0xd3b009(0x1d9)]('\x20\x20'+(_0x4f9dc3?'*\x20':'\x20\x20')+_0x37e452+_0x2ed2a6),_0x437653['baseUrl']&&console[_0xd3b009(0x1d9)](_0xd3b009(0x1e3)+_0x437653[_0xd3b009(0x1df)]),_0x437653[_0xd3b009(0x1e9)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x437653['environmentDetails']);}_0xc5a596&&console['log'](_0xd3b009(0x1d4));}
1
+ (function(_0x2a07bd,_0x18f29b){const _0x511361=_0x5cfe,_0x5c3cfc=_0x2a07bd();while(!![]){try{const _0x3bf31c=-parseInt(_0x511361(0x8a))/0x1*(parseInt(_0x511361(0x87))/0x2)+-parseInt(_0x511361(0x92))/0x3*(-parseInt(_0x511361(0x8c))/0x4)+parseInt(_0x511361(0x8f))/0x5+-parseInt(_0x511361(0x72))/0x6*(parseInt(_0x511361(0x83))/0x7)+-parseInt(_0x511361(0x6b))/0x8*(parseInt(_0x511361(0x86))/0x9)+-parseInt(_0x511361(0x6e))/0xa+parseInt(_0x511361(0x66))/0xb*(parseInt(_0x511361(0x7a))/0xc);if(_0x3bf31c===_0x18f29b)break;else _0x5c3cfc['push'](_0x5c3cfc['shift']());}catch(_0x37ea56){_0x5c3cfc['push'](_0x5c3cfc['shift']());}}}(_0x559e,0x9ef23));import{readdir,stat}from'fs/promises';function _0x5cfe(_0x7db9a0,_0x1020ba){_0x7db9a0=_0x7db9a0-0x66;const _0x559e5c=_0x559e();let _0x5cfe67=_0x559e5c[_0x7db9a0];return _0x5cfe67;}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x4e4c04=_0x5cfe,_0x11f6f6={'BvkEz':function(_0x4f0080){return _0x4f0080();},'oVxdy':function(_0x4ac49e,_0x121748){return _0x4ac49e(_0x121748);},'goVYb':function(_0x2143b4){return _0x2143b4();},'UlXAE':function(_0x5e09c0,_0x3e92f1,_0x5cfe2d){return _0x5e09c0(_0x3e92f1,_0x5cfe2d);},'TeLYy':_0x4e4c04(0x7f),'lvhUK':function(_0x4347da,_0x4b4b31){return _0x4347da(_0x4b4b31);},'uWBpN':function(_0x425d6f,_0x259f9c){return _0x425d6f(_0x259f9c);},'TxtvR':_0x4e4c04(0x69)},_0x3b250e=_0x11f6f6[_0x4e4c04(0x8d)](getRangerDir);if(!_0x11f6f6[_0x4e4c04(0x80)](existsSync,_0x3b250e))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5c00a0=await _0x11f6f6[_0x4e4c04(0x6a)](readActiveProfileName),_0x12e81a=[],_0x5696d6={},_0x15050e=join(_0x3b250e,'local');if(existsSync(_0x15050e)){const _0x579670=await _0x11f6f6['oVxdy'](readdir,_0x15050e);for(const _0x70b42e of _0x579670){const _0x5a914a=_0x11f6f6[_0x4e4c04(0x70)](join,_0x15050e,_0x70b42e),_0x2bbdb4=await _0x11f6f6['oVxdy'](stat,_0x5a914a);_0x2bbdb4['isDirectory']()&&(_0x12e81a[_0x4e4c04(0x74)](_0x70b42e),_0x5696d6[_0x70b42e]=_0x11f6f6['TeLYy']);}}const _0x4cc142=join(_0x3b250e,'ci');if(_0x11f6f6[_0x4e4c04(0x80)](existsSync,_0x4cc142)){const _0x43ecf0=await _0x11f6f6[_0x4e4c04(0x80)](readdir,_0x4cc142);for(const _0x42a4c1 of _0x43ecf0){const _0x32746f=_0x11f6f6[_0x4e4c04(0x70)](join,_0x4cc142,_0x42a4c1),_0x37a8ce=await stat(_0x32746f);_0x37a8ce[_0x4e4c04(0x88)]()&&(_0x12e81a['push'](_0x42a4c1),_0x5696d6[_0x42a4c1]='ci');}}const _0x46c1c1=await _0x11f6f6[_0x4e4c04(0x68)](readdir,_0x3b250e);for(const _0x46254d of _0x46c1c1){if(NON_ENV_DIRS['includes'](_0x46254d))continue;if(_0x46254d[_0x4e4c04(0x82)]('.'))continue;if(_0x46254d['endsWith']('.txt'))continue;const _0x3519b7=join(_0x3b250e,_0x46254d),_0xe95812=await stat(_0x3519b7);_0xe95812['isDirectory']()&&_0x11f6f6['uWBpN'](existsSync,join(_0x3519b7,_0x11f6f6['TxtvR']))&&(!_0x12e81a[_0x4e4c04(0x91)](_0x46254d)&&(_0x12e81a['push'](_0x46254d),_0x5696d6[_0x46254d]='legacy'));}return{'envNames':_0x12e81a,'activeEnv':_0x5c00a0,'envTypes':_0x5696d6};}export async function envList(){const _0x2cf19c=_0x5cfe,_0x3edee7={'lPAen':function(_0x599677){return _0x599677();},'POPNA':function(_0x2fb3d2,_0xd22fd){return _0x2fb3d2===_0xd22fd;},'UpgBU':function(_0x4badc6,_0x5ba0ce){return _0x4badc6===_0x5ba0ce;},'dDXsE':'\x0aNo\x20profiles\x20found.','HPpXx':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','mKedV':function(_0xa370ca,_0x8925ff){return _0xa370ca>_0x8925ff;},'jdXpG':function(_0x4075b3,_0x5f3b9c){return _0x4075b3===_0x5f3b9c;},'AHojr':_0x2cf19c(0x7f),'SMmdP':function(_0x1e626e,_0x3e1c7f){return _0x1e626e(_0x3e1c7f);},'ULfYK':_0x2cf19c(0x76),'CdnZV':function(_0x25c163,_0x6902d4){return _0x25c163>_0x6902d4;}},{envNames:_0x18bcff,activeEnv:_0x1abf61,envTypes:_0x19fbaa}=await getEnvNames();let _0x42d5d2=[];try{_0x42d5d2=await _0x3edee7['lPAen'](listCloudProfiles);}catch{}if(_0x3edee7['POPNA'](_0x18bcff[_0x2cf19c(0x81)],0x0)&&_0x3edee7[_0x2cf19c(0x75)](_0x42d5d2[_0x2cf19c(0x81)],0x0)){console['log'](_0x3edee7[_0x2cf19c(0x77)]),console[_0x2cf19c(0x84)](_0x3edee7['HPpXx']);return;}const _0x29c740=new Set(_0x42d5d2[_0x2cf19c(0x7c)](_0x27a033=>_0x27a033[_0x2cf19c(0x93)]));if(_0x3edee7[_0x2cf19c(0x79)](_0x18bcff[_0x2cf19c(0x81)],0x0)){console[_0x2cf19c(0x84)]('\x0aLocal\x20Profiles:');for(const _0x32f960 of _0x18bcff[_0x2cf19c(0x90)]()){const _0x440943=_0x3edee7[_0x2cf19c(0x7d)](_0x32f960,_0x1abf61)&&!_0x29c740[_0x2cf19c(0x7e)](_0x32f960),_0x1a14cb=_0x19fbaa[_0x32f960]||_0x3edee7[_0x2cf19c(0x71)],_0xea0a5d=await _0x3edee7['SMmdP'](loadSettings,_0x32f960),_0x3fb73f=_0x1a14cb===_0x3edee7[_0x2cf19c(0x6d)]?'':'\x20['+_0x1a14cb+']';console['log']('\x20\x20'+(_0x440943?'*\x20':'\x20\x20')+_0x32f960+_0x3fb73f),_0xea0a5d[_0x2cf19c(0x78)]&&console[_0x2cf19c(0x84)](_0x2cf19c(0x85)+_0xea0a5d['baseUrl']),_0xea0a5d[_0x2cf19c(0x6f)]&&console[_0x2cf19c(0x84)](_0x2cf19c(0x6c)+_0xea0a5d['environmentDetails']);}}if(_0x3edee7[_0x2cf19c(0x89)](_0x42d5d2['length'],0x0)){console['log'](_0x2cf19c(0x8e));for(const _0x3241e8 of _0x42d5d2['sort']((_0x397eb0,_0x2818af)=>_0x397eb0['name']['localeCompare'](_0x2818af[_0x2cf19c(0x93)]))){const _0x5c7423=_0x3241e8[_0x2cf19c(0x93)]===_0x1abf61,_0x405468=_0x3241e8['environmentKey']?'\x20('+_0x3241e8[_0x2cf19c(0x73)]+')':'',_0x1db28d=_0x3241e8[_0x2cf19c(0x8b)]?'cached\x20(updated\x20'+_0x3241e8['sessionUpdatedAt']+')':'no\x20session';console['log']('\x20\x20'+(_0x5c7423?'*\x20':'\x20\x20')+_0x3241e8[_0x2cf19c(0x93)]+_0x2cf19c(0x7b)+_0x405468),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x1db28d);}}_0x1abf61&&console[_0x2cf19c(0x84)](_0x2cf19c(0x67));}function _0x559e(){const _0x47e5e2=['oVxdy','length','startsWith','44639phscLT','log','\x20\x20\x20\x20\x20\x20URL:\x20','1323JzKlHu','298138fwmTyT','isDirectory','CdnZV','3uiJhap','sessionUpdatedAt','24cluxag','BvkEz','\x0aCloud\x20Profiles:','488275FkWwJv','sort','includes','391431pSeXnw','name','572737mnlXcO','\x0a*\x20=\x20active\x20profile','lvhUK','settings.json','goVYb','38760WqPllT','\x20\x20\x20\x20\x20\x20Details:\x20','ULfYK','9071820KDEpAE','environmentDetails','UlXAE','AHojr','378LdeHEI','environmentKey','push','UpgBU','legacy','dDXsE','baseUrl','mKedV','516PniQzX','\x20[cloud]','map','jdXpG','has','local'];_0x559e=function(){return _0x47e5e2;};return _0x559e();}
@@ -1 +1 @@
1
- const _0x37c00c=_0x29f6;(function(_0x17a2b0,_0x313864){const _0x213c23=_0x29f6,_0x4976a1=_0x17a2b0();while(!![]){try{const _0x11cccb=-parseInt(_0x213c23(0x104))/0x1+parseInt(_0x213c23(0x11a))/0x2*(-parseInt(_0x213c23(0x106))/0x3)+-parseInt(_0x213c23(0xe8))/0x4*(parseInt(_0x213c23(0x180))/0x5)+-parseInt(_0x213c23(0x15c))/0x6*(-parseInt(_0x213c23(0x147))/0x7)+-parseInt(_0x213c23(0x173))/0x8+-parseInt(_0x213c23(0xeb))/0x9*(-parseInt(_0x213c23(0x151))/0xa)+parseInt(_0x213c23(0x140))/0xb;if(_0x11cccb===_0x313864)break;else _0x4976a1['push'](_0x4976a1['shift']());}catch(_0x22d203){_0x4976a1['push'](_0x4976a1['shift']());}}}(_0xaadc,0xf3db8));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0x42d7c4 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x3a6f64=>'\x1b[1m'+_0x3a6f64+_0x37c00c(0x123);function getGitRepoUrl(){const _0x316cc0=_0x37c00c,_0x206ed2={'ncuWV':function(_0x2443b9,_0x224dcb,_0x3a9abe){return _0x2443b9(_0x224dcb,_0x3a9abe);},'YojLS':'git\x20remote\x20get-url\x20origin','amAgh':_0x316cc0(0x145),'KYoqS':_0x316cc0(0x129),'AWitw':_0x316cc0(0x10e)};try{const _0x568715=_0x206ed2['ncuWV'](execSync,_0x206ed2['YojLS'],{'encoding':_0x206ed2['amAgh'],'stdio':[_0x206ed2['KYoqS'],_0x206ed2[_0x316cc0(0x154)],_0x206ed2[_0x316cc0(0x154)]]})[_0x316cc0(0x16e)]();return _0x568715['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x206ed2['AWitw'])['replace'](/^https?:\/\//,'');}catch{return undefined;}}function getGitBranch(){const _0x31d899=_0x37c00c,_0x2253ed={'tHVPx':function(_0x284fd7,_0x10d0c6,_0x19fbd1){return _0x284fd7(_0x10d0c6,_0x19fbd1);},'GqYAd':_0x31d899(0x129)};try{return _0x2253ed[_0x31d899(0x198)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':'utf-8','stdio':['pipe','pipe',_0x2253ed['GqYAd']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x5b733e=_0x37c00c,_0x3ba63f={'yyFCt':function(_0x2bd0ff,_0x5a2ca8){return _0x2bd0ff(_0x5a2ca8);},'Menxc':function(_0x2c7f11,_0x30ae59,_0x4a9fb4){return _0x2c7f11(_0x30ae59,_0x4a9fb4);},'csASg':'utf-8'},_0x481544=join(getRangerDir(),ACTIVE_FEATURE_FILE);if(!_0x3ba63f[_0x5b733e(0x122)](existsSync,_0x481544))return null;try{const _0x37a6a5=await _0x3ba63f[_0x5b733e(0xfc)](readFile,_0x481544,_0x3ba63f['csASg']);return _0x37a6a5['trim']()||null;}catch{return null;}}async function setActiveFeatureId(_0x32dc68){const _0x178595={'UyHmF':function(_0x3e6bcc,_0x2e2cd6){return _0x3e6bcc(_0x2e2cd6);}},_0x5b9463=getRangerDir(),_0x2846d8=join(_0x5b9463,ACTIVE_FEATURE_FILE);!_0x178595['UyHmF'](existsSync,_0x5b9463)&&await mkdir(_0x5b9463,{'recursive':!![]}),await writeFile(_0x2846d8,_0x32dc68,'utf-8');}function getProgressDisplay(_0x113347){const _0x37b9d8=_0x37c00c,_0x5ef0fa={'pnagD':function(_0x3588fa,_0x5bc123){return _0x3588fa+_0x5bc123;},'PWmbs':function(_0x1dfede,_0x1d954b){return _0x1dfede+_0x1d954b;},'dDent':function(_0x456b20,_0x311ece){return _0x456b20-_0x311ece;},'ZsMzs':function(_0x4db1ec,_0x279e86){return _0x4db1ec>_0x279e86;},'vjwMW':function(_0x1ac178,_0x1633e5){return _0x1ac178>_0x1633e5;}},_0x476984=_0x113347['verifiedItems']||0x0,_0xdc6a7a=_0x113347['verificationInProgressItems']||0x0,_0x4ec87a=_0x113347['blockedItems']||0x0,_0x251776=_0x113347[_0x37b9d8(0x131)]||0x0,_0x2ea1c6=_0x113347[_0x37b9d8(0x164)]||0x0,_0x2fa7cf=_0x5ef0fa[_0x37b9d8(0x1b6)](_0x5ef0fa[_0x37b9d8(0x1b6)](_0x476984,_0xdc6a7a),_0x4ec87a)+_0x251776+_0x2ea1c6;if(_0x2fa7cf===0x0)return'-';const _0x4b2200=0xa,_0x3cf6ed=Math[_0x37b9d8(0x135)](_0x476984/_0x2fa7cf*_0x4b2200),_0x5ee1d1=_0x5ef0fa['PWmbs']('█'['repeat'](_0x3cf6ed),'░'['repeat'](_0x5ef0fa[_0x37b9d8(0x1a4)](_0x4b2200,_0x3cf6ed))),_0x45a898=[];if(_0x4ec87a>0x0)_0x45a898[_0x37b9d8(0x19e)](_0x4ec87a+'\x20blocked');if(_0x5ef0fa[_0x37b9d8(0x17e)](_0x251776,0x0))_0x45a898[_0x37b9d8(0x19e)](_0x251776+_0x37b9d8(0x13b));if(_0xdc6a7a>0x0)_0x45a898['push'](_0xdc6a7a+_0x37b9d8(0xec));const _0x48810f=_0x5ef0fa[_0x37b9d8(0xf3)](_0x45a898['length'],0x0)?'\x20('+_0x45a898['join'](',\x20')+')':'';return _0x5ee1d1+'\x20'+_0x476984+'/'+_0x2fa7cf+'\x20verified'+_0x48810f;}function getCurrentSessionItems(_0x2b4871,_0x3077c2){const _0x1db1d1=_0x37c00c;if(!_0x2b4871['currentSessionId'])return _0x3077c2['filter'](_0x1e517a=>!_0x1e517a[_0x1db1d1(0x143)]);return _0x3077c2[_0x1db1d1(0x120)](_0x4576ec=>_0x4576ec['sessionId']===_0x2b4871[_0x1db1d1(0x103)]||!_0x4576ec['sessionId']);}function _0x29f6(_0x1b512e,_0x97b746){_0x1b512e=_0x1b512e-0xe3;const _0xaadc5b=_0xaadc();let _0x29f6d1=_0xaadc5b[_0x1b512e];return _0x29f6d1;}function displayFeature(_0x1b5cb7,_0x59fc69){const _0x1eb095=_0x37c00c,_0xa26f5a={'wnUEX':function(_0x5ec715,_0x5952ac){return _0x5ec715(_0x5952ac);},'VTJYd':_0x1eb095(0x10f),'bSNgc':function(_0x5cae14,_0x5a7395){return _0x5cae14===_0x5a7395;},'MfIZK':function(_0x5e526b,_0x175c71){return _0x5e526b===_0x175c71;},'LjhLz':_0x1eb095(0x132),'SuRCo':function(_0x390801,_0x2a1bc6){return _0x390801===_0x2a1bc6;},'XexFz':function(_0x21932c,_0xb381d0){return _0x21932c===_0xb381d0;},'zhuEE':'blocked','bykpD':function(_0x131239,_0x52bef8){return _0x131239===_0x52bef8;},'OaHCL':function(_0x1a7e46,_0x1bbaa9){return _0x1a7e46>_0x1bbaa9;},'yboqV':function(_0x53cb70,_0x19088d){return _0x53cb70!==_0x19088d;},'nQoEV':function(_0x5aa423,_0x11ec2e){return _0x5aa423!==_0x11ec2e;},'GXPxl':function(_0x36f4da,_0x45d836){return _0x36f4da+_0x45d836;},'ebyCj':_0x1eb095(0x1b5),'GGwml':function(_0x3284e0,_0x50ceb3){return _0x3284e0===_0x50ceb3;},'rqNBB':_0x1eb095(0x134)};console['log']('\x0a'+_0x1b5cb7['name']+'\x20('+_0x1b5cb7[_0x1eb095(0x12a)]+')');_0x1b5cb7['stats']&&console[_0x1eb095(0xef)](_0x1eb095(0x19a)+_0xa26f5a[_0x1eb095(0x107)](getProgressDisplay,_0x1b5cb7[_0x1eb095(0xe9)]));_0x1b5cb7['description']&&console['log'](_0x1eb095(0xf1)+_0x1b5cb7[_0x1eb095(0x16b)]);_0x1b5cb7['gitRepoUrl']&&console['log'](_0x1eb095(0x114)+_0x1b5cb7[_0x1eb095(0x187)]);_0x1b5cb7['gitBranch']&&console['log'](_0x1eb095(0x14c)+_0x1b5cb7[_0x1eb095(0x109)]);console[_0x1eb095(0xef)](_0x1eb095(0xf5)+new Date(_0x1b5cb7['createdAt'])[_0x1eb095(0x18d)]());_0x1b5cb7[_0x1eb095(0x156)]&&console['log'](_0x1eb095(0x167)+new Date(_0x1b5cb7[_0x1eb095(0x156)])['toLocaleString']());if(_0x59fc69&&_0x59fc69[_0x1eb095(0x130)]>0x0){console[_0x1eb095(0xef)](_0xa26f5a[_0x1eb095(0xea)]);for(let _0x3a5738=0x0;_0x3a5738<_0x59fc69['length'];_0x3a5738++){const _0x1de759=_0x59fc69[_0x3a5738];let _0x547bbb;if(_0x1de759[_0x1eb095(0x183)]===_0x1eb095(0x134)&&_0xa26f5a[_0x1eb095(0x100)](_0x1de759[_0x1eb095(0xf8)],_0x1eb095(0x148)))_0x547bbb='✅';else{if(_0xa26f5a[_0x1eb095(0x16f)](_0x1de759[_0x1eb095(0x183)],_0xa26f5a['LjhLz']))_0x547bbb='🟢';else{if(_0xa26f5a[_0x1eb095(0x174)](_0x1de759[_0x1eb095(0x183)],'incomplete'))_0x547bbb='🟠';else{if(_0xa26f5a['XexFz'](_0x1de759[_0x1eb095(0x183)],_0xa26f5a['zhuEE']))_0x547bbb='🛑';else{if(_0xa26f5a['bykpD'](_0x1de759['status'],_0x1eb095(0x134)))_0x547bbb='⛔';else _0x1de759['status']===_0x1eb095(0x1a1)?_0x547bbb='⏳':_0x547bbb='⬜';}}}}const _0x3d5a27=_0xa26f5a[_0x1eb095(0x16c)](_0x1de759['version'],0x1)?_0x1eb095(0x11d)+_0x1de759[_0x1eb095(0x15a)]+')':'',_0x33536f=_0x1de759['version']>0x1&&_0x1de759[_0x1eb095(0x146)]&&_0xa26f5a[_0x1eb095(0x18e)](_0x1de759[_0x1eb095(0x183)],_0x1eb095(0x134))&&_0xa26f5a['nQoEV'](_0x1de759['status'],_0xa26f5a['LjhLz'])?'\x20[has\x20reviewer\x20feedback]':'';console['log']('\x20\x20\x20'+_0xa26f5a[_0x1eb095(0x1a3)](_0x3a5738,0x1)+'.\x20'+_0x547bbb+'\x20'+_0x1de759['description']+_0x3d5a27+_0x33536f);_0xa26f5a[_0x1eb095(0x165)](_0x1de759['status'],'blocked')&&_0x1de759[_0x1eb095(0x189)]&&console[_0x1eb095(0xef)]('\x20\x20\x20\x20\x20\x20Blocked:\x20'+_0x1de759['blockedReason']);_0x1de759[_0x1eb095(0x183)]===_0xa26f5a['ebyCj']&&_0x1de759[_0x1eb095(0x12d)]&&console[_0x1eb095(0xef)]('\x20\x20\x20\x20\x20\x20Incomplete:\x20'+_0x1de759['incompleteReason']);if(_0xa26f5a[_0x1eb095(0x193)](_0x1de759['status'],_0xa26f5a['rqNBB'])&&_0x1de759['terminalReason']===_0x1eb095(0x148))console['log']('\x20\x20\x20\x20\x20\x20Approved');else _0x1de759[_0x1eb095(0x183)]===_0x1eb095(0x134)&&_0x1de759[_0x1eb095(0x139)]&&console[_0x1eb095(0xef)](_0x1eb095(0x191)+_0x1de759['canceledReason']);}}}export async function featureCreate(_0x204a0e,_0x28e83f){const _0x672296=_0x37c00c,_0xccf524={'fOKzP':function(_0x5b46d8,_0x4bf99b){return _0x5b46d8(_0x4bf99b);},'tLkJL':function(_0x1f9eb6){return _0x1f9eb6();},'XZokF':_0x672296(0xfd)},{envNames:_0x41001d}=await getEnvNames();_0x41001d['length']===0x0&&console[_0x672296(0x14d)]('\x0a'+_0xccf524['fOKzP'](formatProfileRequiredMessage,_0x16ed76=>bold(_0x16ed76)));const _0xcbdc59=_0x28e83f['scenarios']?_0x28e83f[_0x672296(0x121)][_0x672296(0x1b9)](_0x44e171=>_0x44e171[_0x672296(0x16e)]()):[],_0x41759e=_0xccf524[_0x672296(0x1a6)](getGitRepoUrl),_0x14aeb2=getGitBranch();console[_0x672296(0xef)](_0xccf524[_0x672296(0x14f)]);const _0x195a48=await _0xccf524[_0x672296(0x182)](createFeature,{'name':_0x204a0e,'description':_0x28e83f[_0x672296(0x16b)],'checklist':_0xcbdc59,'gitRepoUrl':_0x41759e,'gitBranch':_0x14aeb2});await setActiveFeatureId(_0x195a48['id']),await tryStartCurrentSession(_0x195a48['id']);const _0x27cf88=process[_0x672296(0x108)]['CLAUDE_SESSION_ID'];_0x27cf88&&registerSession(_0x27cf88,_0x195a48['id']),console['log']('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x195a48['id']),displayFeature(_0x195a48,_0x195a48[_0x672296(0x136)]),console[_0x672296(0xef)](_0x672296(0x17b));}export async function featureList(_0x431a81){const _0x11c25b=_0x37c00c,_0x1f271b={'YGEDa':function(_0x25b7ee,_0x3ae76a){return _0x25b7ee>_0x3ae76a;},'IFNrW':function(_0x44474a,_0x4c2d49){return _0x44474a<_0x4c2d49;},'WjzPb':function(_0x1e9be2,_0x41d7b0){return _0x1e9be2!==_0x41d7b0;},'fIEgv':'\x20--current-branch','cDksP':'\x20--include-deleted'},_0x2b503b={'limit':_0x431a81['limit']??0xa,'offset':_0x431a81['offset']??0x0,'includeDeleted':_0x431a81['includeDeleted']};_0x431a81[_0x11c25b(0x160)]&&(_0x2b503b[_0x11c25b(0x187)]=getGitRepoUrl(),_0x2b503b[_0x11c25b(0x109)]=getGitBranch());const _0x1145f5=await listFeatures(_0x2b503b);if(_0x1145f5['items']['length']===0x0){console[_0x11c25b(0xef)]('\x0aNo\x20feature\x20reviews\x20found.');return;}const _0x57768e=_0x1f271b[_0x11c25b(0x11b)](_0x1145f5[_0x11c25b(0xe5)],_0x1145f5[_0x11c25b(0x17c)][_0x11c25b(0x130)])?_0x11c25b(0x102)+_0x1145f5['items'][_0x11c25b(0x130)]+_0x11c25b(0xfa)+_0x1145f5['totalCount']:_0x1145f5['totalCount']+_0x11c25b(0xe6);console['log']('\x0a'+_0x57768e+':\x0a');for(const _0x15eaea of _0x1145f5[_0x11c25b(0x17c)]){console[_0x11c25b(0xef)](''+_0x15eaea['name']),console[_0x11c25b(0xef)](_0x11c25b(0x1b1)+_0x15eaea['id']),_0x15eaea[_0x11c25b(0xe9)]&&console[_0x11c25b(0xef)]('\x20\x20\x20Progress:\x20'+getProgressDisplay(_0x15eaea[_0x11c25b(0xe9)])),_0x15eaea[_0x11c25b(0x109)]&&console[_0x11c25b(0xef)](_0x11c25b(0x14c)+_0x15eaea['gitBranch']),console[_0x11c25b(0xef)](_0x11c25b(0xf5)+new Date(_0x15eaea[_0x11c25b(0x14e)])['toLocaleDateString']()),console['log']('');}const _0x27df70=_0x2b503b[_0x11c25b(0x172)]??0xa,_0x9de134=(_0x2b503b['offset']??0x0)+_0x1145f5['items']['length'];if(_0x1f271b[_0x11c25b(0x12b)](_0x9de134,_0x1145f5[_0x11c25b(0xe5)])){const _0x369bc5=_0x1f271b[_0x11c25b(0xe4)](_0x27df70,0xa)?'\x20--limit\x20'+_0x27df70:'',_0x3b82ea=_0x431a81[_0x11c25b(0x160)]?_0x1f271b[_0x11c25b(0x11e)]:'',_0x86ee3d=_0x431a81[_0x11c25b(0x1a5)]?_0x1f271b['cDksP']:'';console['log'](_0x11c25b(0xf9)+_0x9de134+_0x369bc5+_0x3b82ea+_0x86ee3d);}}export async function featureShow(_0x556546){const _0x4b5f94=_0x37c00c,_0x2f36c3={'PlevU':function(_0x4ca582){return _0x4ca582();},'akzMd':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','uXqHT':function(_0x258d28,_0x43bb6a,_0x19dbbf){return _0x258d28(_0x43bb6a,_0x19dbbf);}},_0x58e9a1=_0x556546||await _0x2f36c3[_0x4b5f94(0x177)](getActiveFeatureId);if(!_0x58e9a1)throw new Error(_0x2f36c3['akzMd']);const _0x55ca65=await getFeature(_0x58e9a1);_0x2f36c3[_0x4b5f94(0x14a)](displayFeature,_0x55ca65,_0x55ca65[_0x4b5f94(0x136)]);}export async function featureResume(_0x3ba514){const _0x1619e7=_0x37c00c,_0x1338db={'YYuuP':function(_0x23ad89,_0x5856e7){return _0x23ad89(_0x5856e7);},'pxiJT':function(_0x4f02b6){return _0x4f02b6();},'XMDWx':function(_0x1ab2fe,_0x29204f){return _0x1ab2fe!==_0x29204f;},'DnjZT':function(_0x3c47e3){return _0x3c47e3();},'HTKjl':function(_0x1659c0){return _0x1659c0();},'fFhGO':_0x1619e7(0x125),'LGccl':function(_0x3209fa,_0x519264){return _0x3209fa===_0x519264;},'kpHkM':_0x1619e7(0x111),'xrDDO':function(_0x310492,_0x3754f4){return _0x310492===_0x3754f4;},'WkrJy':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','zwmep':function(_0x255a5f,_0x176237){return _0x255a5f(_0x176237);},'VHMqS':'list','isDjW':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:'};if(_0x3ba514){const _0x2b3e26=await _0x1338db[_0x1619e7(0x10c)](getFeature,_0x3ba514);await setActiveFeatureId(_0x2b3e26['id']);const _0x1474b4=_0x1338db['pxiJT'](getGitBranch);_0x1474b4&&_0x1338db[_0x1619e7(0x184)](_0x1474b4,_0x2b3e26['gitBranch'])&&(await updateFeature(_0x2b3e26['id'],{'gitBranch':_0x1474b4}),console[_0x1619e7(0xef)](_0x1619e7(0x133)+_0x1474b4));console[_0x1619e7(0xef)]('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x2b3e26[_0x1619e7(0x1a0)]+'\x20('+_0x2b3e26['id']+')'),await tryStartCurrentSession(_0x2b3e26['id']);const _0x105d92=process['env']['CLAUDE_SESSION_ID'];_0x105d92&&registerSession(_0x105d92,_0x2b3e26['id']);displayFeature(_0x2b3e26,_0x2b3e26[_0x1619e7(0x136)]),await printFeedbackNudge(_0x2b3e26['id']);return;}const _0x143f06=_0x1338db['DnjZT'](getGitRepoUrl),_0x17106e=_0x1338db[_0x1619e7(0xee)](getGitBranch);if(!_0x143f06&&!_0x17106e)throw new Error(_0x1619e7(0x10b));console['log'](_0x1619e7(0x12e)+(_0x143f06||'any')+'\x20/\x20'+(_0x17106e||_0x1338db['fFhGO'])+'...');const _0x658906=await listFeatures({'gitRepoUrl':_0x143f06,'gitBranch':_0x17106e}),_0x5d43a0=_0x658906[_0x1619e7(0x17c)]['filter'](_0x474ef6=>_0x474ef6['status']?_0x474ef6['status']!==_0x1619e7(0x132):!_0x474ef6[_0x1619e7(0x156)]);if(_0x1338db[_0x1619e7(0x1b8)](_0x5d43a0[_0x1619e7(0x130)],0x0)){console[_0x1619e7(0xef)](_0x1338db[_0x1619e7(0x112)]),console[_0x1619e7(0xef)](_0x1619e7(0x168));return;}let _0x6ae279;if(_0x1338db[_0x1619e7(0x126)](_0x5d43a0['length'],0x1))_0x6ae279=_0x5d43a0[0x0];else{const _0x6920c9=process[_0x1619e7(0x13a)][_0x1619e7(0x15b)]&&process['stdout']['isTTY'];if(!_0x6920c9){console['log'](_0x1338db['WkrJy']);for(const _0x414589 of _0x5d43a0){console['log']('\x20\x20'+_0x414589['name']),console[_0x1619e7(0xef)](_0x1619e7(0x128)+_0x414589['id']),_0x414589['stats']&&console['log'](_0x1619e7(0xff)+_0x1338db[_0x1619e7(0x17a)](getProgressDisplay,_0x414589['stats'])),_0x414589['gitBranch']&&console[_0x1619e7(0xef)](_0x1619e7(0x169)+_0x414589[_0x1619e7(0x109)]);}throw new Error(_0x1619e7(0x196));}const {selected:_0x36fa41}=await _0x42d7c4[_0x1619e7(0x113)]([{'type':_0x1338db['VHMqS'],'name':_0x1619e7(0x19d),'message':_0x1338db['isDjW'],'choices':_0x5d43a0[_0x1619e7(0x1b9)](_0x79f50f=>({'name':_0x79f50f[_0x1619e7(0x1a0)]+'\x20('+_0x79f50f['id']+')','value':_0x79f50f['id']}))}]);_0x6ae279=_0x5d43a0['find'](_0x26b0fd=>_0x26b0fd['id']===_0x36fa41);}await setActiveFeatureId(_0x6ae279['id']);_0x17106e&&_0x1338db['XMDWx'](_0x17106e,_0x6ae279['gitBranch'])&&(await updateFeature(_0x6ae279['id'],{'gitBranch':_0x17106e}),console['log'](_0x1619e7(0x133)+_0x17106e));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x6ae279[_0x1619e7(0x1a0)]+'\x20('+_0x6ae279['id']+')'),await _0x1338db['YYuuP'](tryStartCurrentSession,_0x6ae279['id']);const _0x560b90=await getFeature(_0x6ae279['id']),_0x5195ac=process['env'][_0x1619e7(0x161)];_0x5195ac&&registerSession(_0x5195ac,_0x560b90['id']),displayFeature(_0x560b90,_0x560b90['checklistItems']),await printFeedbackNudge(_0x560b90['id']);}function _0xaadc(){const _0x17059e=['fOKzP','status','XMDWx','bXYly','isInteger','gitRepoUrl','exit','blockedReason','ttGrA','rMpoW','FhSlB','toLocaleString','yboqV','fdwdR','replace','\x20\x20\x20\x20\x20\x20Cancelled:\x20','xVLly','GGwml','beDsZ','notes','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','timing','tHVPx','IvNxg','\x20\x20\x20Progress:\x20','Step\x20','ready','selected','push','all','name','verification_in_progress','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','GXPxl','dDent','includeDeleted','tLkJL','tQgPI','hvhox','\x0a❌\x20Invalid\x20scenario\x20index:\x20','\x20\x20\x20Status:\x20','.\x20Feature\x20review\x20has\x20','):\x20\x22','ozrkB','spatial','SrmKn','\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.','\x20\x20\x20ID:\x20','xJJZA','xraFV','authorName','incomplete','pnagD','selector','LGccl','map','PTCso','kYnMQ','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','WjzPb','totalCount','\x20feature\x20review(s)\x20found','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','13204SmzfHZ','stats','VTJYd','8253gdEkBc','\x20in\x20progress','shBBs','HTKjl','log','rSwdv','\x20\x20\x20Description:\x20','\x20unaddressed\x20comment(s)','vjwMW','SuecD','\x20\x20\x20Created:\x20','Current\x20session\x20not\x20found.','submittedAt','terminalReason','Next\x20page:\x20ranger\x20list\x20--offset\x20','\x20of\x20','RDmUo','Menxc','\x0aCreating\x20feature\x20review...','find','\x20\x20\x20\x20\x20Progress:\x20','bSNgc','unaddressedComments','Showing\x20','currentSessionId','726487NoEIoS','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','5731833uaGWpr','wnUEX','env','gitBranch','\x0a⚠️\x20\x20','Not\x20in\x20a\x20git\x20repository.','YYuuP','from','github.com/','\x0a\x20\x20\x20Scenarios:','short','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','kpHkM','prompt','\x20\x20\x20Repository:\x20','\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','\x0a✅\x20Scenario\x20added','\x20concluded.','assetUrl','assets','2ozHMmC','YGEDa','reports','\x20(v','fIEgv','\x20\x20\x20\x20\x20📋\x20Selector:\x20','filter','scenarios','yyFCt','\x1b[0m','after','any','xrDDO','.png','\x20\x20\x20\x20\x20ID:\x20','pipe','dashboardUrl','IFNrW','\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.','incompleteReason','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','linkedSession','length','incompleteItems','verified','\x20\x20\x20Updated\x20branch\x20to:\x20','closed','round','checklistItems','\x20\x20\x20\x20','point','canceledReason','stdin','\x20incomplete','iteration','completed','JJWac','\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20','46511751SPNtnI','json','\x20—\x20','sessionId','toLocaleDateString','utf-8','parentItemId','83713gCcctP','approved','\x20scenario(s).','uXqHT','screenshot','\x20\x20\x20Branch:\x20','warn','createdAt','XZokF','No\x20scenarios\x20found.','14710eRDVGh','output','join','KYoqS','type','completedAt','oXltN','toFixed','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','version','isTTY','564dzUXUa','error','\x20\x20\x20▶️\x20Started\x20session\x20','in_progress','currentBranch','CLAUDE_SESSION_ID','stringify','split','pendingItems','bykpD','\x0aConcluding\x20session...','\x20\x20\x20Completed:\x20','Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review','\x20\x20\x20\x20\x20Branch:\x20','\x0aAvailable\x20scenarios:','description','OaHCL','\x20\x20💬\x20','trim','MfIZK','\x0a✅\x20Session\x20is\x20already\x20completed.','YewMx','limit','8863704sTmMVT','SuRCo','browserSessionId','domRef','PlevU','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','canonicalFlow','zwmep','\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review','items','/api/v1/mcp/browser-sessions/','ZsMzs','\x20—\x20no\x20comments','2965lzGWgU','\x20\x20\x20\x20\x20🎯\x20Element:\x20<'];_0xaadc=function(){return _0x17059e;};return _0xaadc();}async function printFeedbackNudge(_0x1f0e5b){const _0xc7e4e7=_0x37c00c,_0x3e8f6f={'SHQZU':function(_0x4ce16c,_0x479907){return _0x4ce16c(_0x479907);},'GIoId':function(_0x354140,_0x14d9b4,_0x13064d){return _0x354140(_0x14d9b4,_0x13064d);},'rSwdv':function(_0x4b1464,_0x31bcea){return _0x4b1464>_0x31bcea;},'SxKFE':function(_0xb299ff,_0x40b9be){return _0xb299ff>_0x40b9be;},'mnBAs':_0xc7e4e7(0x1b0)};try{const {items:_0xda4cbd}=await _0x3e8f6f['SHQZU'](getActionItems,_0x1f0e5b);let _0x591cd7=0x0,_0x76135b=0x0;for(const _0x1df2b2 of _0xda4cbd){const _0x2077ff=await _0x3e8f6f['GIoId'](getItemFeedback,_0x1f0e5b,_0x1df2b2['id']);_0x3e8f6f[_0xc7e4e7(0xf0)](_0x2077ff['unaddressedComments']['length'],0x0)&&(_0x591cd7+=_0x2077ff[_0xc7e4e7(0x101)]['length'],_0x76135b++);}_0x3e8f6f['SxKFE'](_0x591cd7,0x0)&&(console[_0xc7e4e7(0xef)](_0xc7e4e7(0x10a)+_0x591cd7+'\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20'+_0x76135b+_0xc7e4e7(0x149)),console['log'](_0x3e8f6f['mnBAs']));}catch{}}async function tryStartCurrentSession(_0x1de6ee){const _0x455c77=_0x37c00c;try{const {sessions:_0x3f7732}=await listFeatureSessions(_0x1de6ee),_0x13263b=_0x3f7732[_0x455c77(0xfe)](_0x16b142=>_0x16b142[_0x455c77(0x183)]===_0x455c77(0x19c));_0x13263b&&(await startSession(_0x1de6ee,_0x13263b['id']),console['log'](_0x455c77(0x15e)+_0x13263b[_0x455c77(0x13c)]));}catch{}}export async function featureReport(_0x341a77,_0x1a5d19){const _0x5a8b10=_0x37c00c,_0x52d72f={'tQgPI':function(_0x8f6181){return _0x8f6181();},'pIYJg':function(_0x1ca746,_0x1d3c13){return _0x1ca746(_0x1d3c13);},'EmOqL':'utf-8'},_0x45b4b3=_0x341a77||await _0x52d72f[_0x5a8b10(0x1a7)](getActiveFeatureId);if(!_0x45b4b3)throw new Error(_0x5a8b10(0x1a2));console[_0x5a8b10(0xef)]('\x0aGenerating\x20report...');const _0x2e7613=await getFeatureReportMarkdown(_0x45b4b3,{'style':_0x1a5d19['style']}),_0x4c1288=_0x1a5d19[_0x5a8b10(0x152)]||join(_0x52d72f[_0x5a8b10(0x1a7)](getRangerDir),_0x5a8b10(0x11c),_0x45b4b3+'.md'),_0x50bdf9=join(_0x4c1288,'..');!_0x52d72f['pIYJg'](existsSync,_0x50bdf9)&&await mkdir(_0x50bdf9,{'recursive':!![]}),await writeFile(_0x4c1288,_0x2e7613,_0x52d72f['EmOqL']),console[_0x5a8b10(0xef)]('\x0a✅\x20Report\x20generated:\x20'+_0x4c1288);}function getScenarioResult(_0x100af0){const _0x217f3e=_0x37c00c,_0x3595f0={'NGCrh':_0x217f3e(0x134),'xraFV':function(_0x133e2d,_0x5ddfe3){return _0x133e2d===_0x5ddfe3;},'rMpoW':'in_progress'};if(_0x100af0['status']===_0x3595f0['NGCrh'])return _0x100af0[_0x217f3e(0xf8)]??_0x3595f0['NGCrh'];if(_0x3595f0[_0x217f3e(0x1b3)](_0x100af0['status'],_0x217f3e(0x1a1)))return _0x3595f0[_0x217f3e(0x18b)];return _0x100af0['status'];}function getScenarioRationale(_0x294ae0,_0x35414c){const _0x7b9044=_0x37c00c;if(_0x35414c)return _0x35414c;if(_0x294ae0['blockedReason'])return _0x294ae0['blockedReason'];if(_0x294ae0[_0x7b9044(0x12d)])return _0x294ae0[_0x7b9044(0x12d)];if(_0x294ae0['canceledReason'])return _0x294ae0['canceledReason'];if(_0x294ae0[_0x7b9044(0x195)])return _0x294ae0[_0x7b9044(0x195)];return null;}export async function featureReportPrDescription(_0x286e4b,_0x62abc3){const _0x166355=_0x37c00c,_0x4122ae={'IvTdc':function(_0x2ffc68){return _0x2ffc68();},'TLHme':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','LLARn':function(_0x5dd067,_0x12213d,_0xa5e8b9){return _0x5dd067(_0x12213d,_0xa5e8b9);},'DoVen':'\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','dhGtZ':'\x0aAvailable\x20scenarios:'},_0x3f8d44=_0x286e4b||await _0x4122ae['IvTdc'](getActiveFeatureId);if(!_0x3f8d44)throw new Error(_0x4122ae['TLHme']);const _0x38624d=await getFeature(_0x3f8d44),_0x4f4292=_0x38624d['checklistItems']||[],_0x478dd1=_0x4122ae['LLARn'](getCurrentSessionItems,_0x38624d,_0x4f4292);_0x478dd1['length']===0x0&&(console['error'](_0x4122ae['DoVen']),process['exit'](0x1));const _0x4ee0e5=_0x62abc3['excludeScenarios']??[],_0x359a3f=_0x4ee0e5['filter'](_0x2c30e2=>!Number[_0x166355(0x186)](_0x2c30e2)||_0x2c30e2<0x1||_0x2c30e2>_0x478dd1['length']);if(_0x359a3f['length']>0x0){console['error']('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x359a3f[_0x166355(0x153)](',\x20')),console['log'](_0x4122ae['dhGtZ']);for(let _0x562716=0x0;_0x562716<_0x478dd1['length'];_0x562716++){console[_0x166355(0xef)]('\x20\x20'+(_0x562716+0x1)+'.\x20'+_0x478dd1[_0x562716]['description']);}process[_0x166355(0x188)](0x1);}const _0x1e4b62=new Set(_0x4ee0e5[_0x166355(0x1b9)](_0x33264a=>_0x33264a-0x1)),_0x3ca703=_0x478dd1['filter']((_0xe9c2cf,_0x53d86c)=>!_0x1e4b62['has'](_0x53d86c));_0x3ca703[_0x166355(0x130)]===0x0&&(console[_0x166355(0x15d)](_0x166355(0x178)),process[_0x166355(0x188)](0x1));if(_0x62abc3[_0x166355(0x141)])await outputJsonReport(_0x3f8d44,_0x38624d,_0x3ca703);else{const _0x14cd54=await getFeatureReportMarkdown(_0x3f8d44,{'itemIds':_0x3ca703['map'](_0x5aba4a=>_0x5aba4a['id'])});process['stdout']['write'](_0x14cd54['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x14907b,_0x539a07,_0x561845){const _0x143328=_0x37c00c,_0x4572a2={'gggIj':function(_0x439234,_0x4a35f4){return _0x439234>_0x4a35f4;},'VwZlb':function(_0x290cc3){return _0x290cc3();},'Wbcdg':function(_0x2d71e2,_0x4d52eb){return _0x2d71e2(_0x4d52eb);}},_0x5117f7=_0x4572a2['VwZlb'](getApiBaseUrl),_0x3bfe66=await _0x4572a2['Wbcdg'](getFeatureReport,_0x14907b),_0x38eedd=new Map(_0x3bfe66[_0x143328(0x136)][_0x143328(0x1b9)](_0x25111e=>[_0x25111e['id'],_0x25111e])),_0x288312=await Promise[_0x143328(0x19f)](_0x561845['map'](async _0x46853c=>{const _0xf5c209=_0x143328,_0x3300ff=_0x38eedd['get'](_0x46853c['id']),_0x276598=_0x3300ff?.[_0xf5c209(0x12f)]??null;let _0x3dc208=[];if(_0x46853c['browserSessionId'])try{const {steps:_0x21cd67}=await getBrowserSessionSteps(_0x46853c['browserSessionId']);_0x4572a2['gggIj'](_0x21cd67['length'],0x0)&&(_0x3dc208=_0x21cd67[_0xf5c209(0x1b9)](_0x7d9737=>{const _0x12e5b6=_0xf5c209,_0x244e6a=_0x7d9737['assets']['find'](_0x517539=>_0x517539['assetType']===_0x12e5b6(0x14b)&&_0x517539[_0x12e5b6(0x197)]===_0x12e5b6(0x124))??_0x7d9737[_0x12e5b6(0x119)]['find'](_0x4bb051=>_0x4bb051['assetType']==='screenshot');let _0x57496a=null,_0x217981=null;if(_0x244e6a){const _0x2efc99=_0x244e6a['storage']['location'][_0x12e5b6(0x163)]('/')['pop']();_0x57496a=_0x5117f7+_0x12e5b6(0x17d)+_0x46853c[_0x12e5b6(0x175)]+'/artifacts/'+_0x2efc99,_0x2efc99&&(_0x217981=_0x2efc99[_0x12e5b6(0x190)](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')['replace'](/[-_]/g,'\x20'));}return{'description':_0x217981||_0x7d9737['description']||_0x7d9737['stepName']||_0x12e5b6(0x19b)+_0x7d9737['position'],'screenshot':_0x57496a,'is_key_step':_0x7d9737['isKeyStep']};}));}catch{}return _0x3dc208[_0xf5c209(0x130)]===0x0&&_0x276598?.['screenshotUrls']&&(_0x3dc208=_0x276598['screenshotUrls']['map']((_0x2d912d,_0x982ac2)=>({'description':'Screenshot\x20'+(_0x982ac2+0x1),'screenshot':_0x2d912d,'is_key_step':![]}))),{'description':_0x46853c['description'],'result':getScenarioResult(_0x46853c),'rationale':getScenarioRationale(_0x46853c,_0x276598?.['agentResponse']),'steps':_0x3dc208};})),_0x15fe74={'url':_0x539a07[_0x143328(0x12a)],'scenarios':_0x288312};process['stdout']['write'](JSON[_0x143328(0x162)](_0x15fe74,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x2a6abd){const _0x397f20=_0x37c00c,_0x3376de={'MsShk':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','RDmUo':function(_0x2e881e,_0x167a15){return _0x2e881e(_0x167a15);},'ttGrA':'No\x20active\x20session\x20for\x20this\x20feature\x20review.','yIByR':_0x397f20(0x13d),'ozrkB':_0x397f20(0x170),'IvNxg':function(_0x173ed7,_0x22435d){return _0x173ed7!==_0x22435d;},'zgntw':'in_progress'},_0x2bf53e=_0x2a6abd||await getActiveFeatureId();if(!_0x2bf53e)throw new Error(_0x3376de['MsShk']);const _0x3be856=await _0x3376de[_0x397f20(0xfb)](getFeature,_0x2bf53e);if(!_0x3be856[_0x397f20(0x103)])throw new Error(_0x3376de[_0x397f20(0x18a)]);const {sessions:_0x94f8be}=await listFeatureSessions(_0x2bf53e),_0x9f5148=_0x94f8be['find'](_0x4e4041=>_0x4e4041['id']===_0x3be856['currentSessionId']);if(!_0x9f5148)throw new Error(_0x397f20(0xf6));if(_0x9f5148['status']===_0x3376de['yIByR']){console['log'](_0x3376de[_0x397f20(0x1ad)]);return;}if(_0x3376de[_0x397f20(0x199)](_0x9f5148['status'],_0x3376de['zgntw']))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x9f5148[_0x397f20(0x183)]);console[_0x397f20(0xef)](_0x397f20(0x166)),await concludeSession(_0x2bf53e,_0x3be856[_0x397f20(0x103)]),console[_0x397f20(0xef)]('\x0a✅\x20Session\x20'+_0x9f5148[_0x397f20(0x13c)]+_0x397f20(0x117)),console[_0x397f20(0xef)]('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0xc20360){const _0x52719c=_0x37c00c,_0x42a665={'CoUKy':function(_0x8bf2f){return _0x8bf2f();},'kYnMQ':_0x52719c(0x1a2),'oXltN':function(_0x5d8b0c,_0x4c9616){return _0x5d8b0c(_0x4c9616);},'ogPDJ':function(_0x138b26,_0x37f6b3){return _0x138b26(_0x37f6b3);},'ETzVg':function(_0x60a872,_0x1fd0e6){return _0x60a872===_0x1fd0e6;},'Lylyf':function(_0x2fd1c9,_0x3e1cd9){return _0x2fd1c9===_0x3e1cd9;},'SuecD':_0x52719c(0x15f)},_0x5c2775=_0xc20360||await _0x42a665['CoUKy'](getActiveFeatureId);if(!_0x5c2775)throw new Error(_0x42a665[_0x52719c(0x1bb)]);const _0x317c7c=await _0x42a665[_0x52719c(0x157)](getFeature,_0x5c2775);console[_0x52719c(0xef)]('\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20'+_0x317c7c[_0x52719c(0x1a0)]+'\x0a');const {sessions:_0x1acad1}=await _0x42a665['ogPDJ'](listFeatureSessions,_0x5c2775);if(_0x42a665['ETzVg'](_0x1acad1[_0x52719c(0x130)],0x0)){console[_0x52719c(0xef)]('No\x20sessions\x20found.');return;}for(const _0x1b24c2 of _0x1acad1){const _0x34921d=_0x1b24c2['status']===_0x52719c(0x13d)?'✅':_0x42a665['Lylyf'](_0x1b24c2[_0x52719c(0x183)],_0x42a665[_0x52719c(0xf4)])?'🔄':'▶️';console['log'](_0x34921d+'\x20Session\x20'+_0x1b24c2[_0x52719c(0x13c)]+'\x20('+_0x1b24c2['id']+')'),console['log'](_0x52719c(0x1aa)+_0x1b24c2['status']),console[_0x52719c(0xef)](_0x52719c(0xf5)+new Date(_0x1b24c2['createdAt'])['toLocaleString']()),_0x1b24c2['completedAt']&&console['log']('\x20\x20\x20Completed:\x20'+new Date(_0x1b24c2[_0x52719c(0x156)])[_0x52719c(0x18d)]()),console['log']('');}}export async function featureAddScenario(_0x361fd7,_0x28a460){const _0x10b31d=_0x37c00c,_0x237fe7={'Ykavm':function(_0x245e5a){return _0x245e5a();},'UaGOv':function(_0xa4538,_0x5a2c2c){return _0xa4538(_0x5a2c2c);}},_0x2078f3=_0x28a460||await _0x237fe7['Ykavm'](getActiveFeatureId);if(!_0x2078f3)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 _0x28b297=await _0x237fe7['UaGOv'](getFeature,_0x2078f3);if(_0x28b297['latestReview']&&!_0x28b297['latestReview'][_0x10b31d(0xf7)])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x28b297['dashboardUrl']);await createChecklistItem(_0x2078f3,_0x361fd7);const _0x5ed682=await _0x237fe7['UaGOv'](getFeature,_0x2078f3);console['log'](_0x10b31d(0x116)),displayFeature(_0x5ed682,_0x5ed682['checklistItems']);}export async function featureEditScenario(_0xf196f6,_0x16240a){const _0x19ab9b=_0x37c00c,_0x42e08e={'fyjtx':_0x19ab9b(0xe3),'hqbZQ':'Please\x20finish\x20your\x20review\x20first:','pwHFw':function(_0x5330d0,_0x1a036c){return _0x5330d0===_0x1a036c;},'UopVD':_0x19ab9b(0x159),'YMtBe':_0x19ab9b(0x12c),'spTBZ':function(_0x40bc52,_0x35d08a){return _0x40bc52+_0x35d08a;},'XpuBK':function(_0x18a4f1,_0xbf2e37){return _0x18a4f1-_0xbf2e37;},'BMntp':function(_0x4f1a2c,_0x553169){return _0x4f1a2c>=_0x553169;},'xJJZA':'\x0aAvailable\x20scenarios:','YwyBU':function(_0x40a39e,_0x51c361){return _0x40a39e<_0x51c361;},'YewMx':function(_0x58557d,_0x3fe401,_0x26deb3){return _0x58557d(_0x3fe401,_0x26deb3);}},_0x36f303=_0x16240a['id']||await getActiveFeatureId();!_0x36f303&&(console[_0x19ab9b(0x15d)](_0x19ab9b(0x115)),console[_0x19ab9b(0x15d)]('Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review'),process['exit'](0x1));const _0x13dc33=await getFeature(_0x36f303);_0x13dc33['latestReview']&&!_0x13dc33['latestReview'][_0x19ab9b(0xf7)]&&(console[_0x19ab9b(0x15d)](_0x42e08e['fyjtx']),console['error'](_0x42e08e['hqbZQ']),console['error']('\x20\x20'+_0x13dc33[_0x19ab9b(0x12a)]),process[_0x19ab9b(0x188)](0x1));const _0x2a132f=_0x13dc33[_0x19ab9b(0x136)]||[];_0x42e08e['pwHFw'](_0x2a132f['length'],0x0)&&(console[_0x19ab9b(0x15d)](_0x42e08e['UopVD']),process[_0x19ab9b(0x188)](0x1));if(_0x16240a['scenario']===undefined){console[_0x19ab9b(0x15d)](_0x42e08e['YMtBe']),console['log'](_0x19ab9b(0x16a));for(let _0x483fd5=0x0;_0x483fd5<_0x2a132f[_0x19ab9b(0x130)];_0x483fd5++){console[_0x19ab9b(0xef)]('\x20\x20'+_0x42e08e['spTBZ'](_0x483fd5,0x1)+'.\x20'+_0x2a132f[_0x483fd5]['description']);}process[_0x19ab9b(0x188)](0x1);}const _0x58c795=_0x42e08e['XpuBK'](_0x16240a['scenario'],0x1);if(_0x58c795<0x0||_0x42e08e['BMntp'](_0x58c795,_0x2a132f['length'])){console['error'](_0x19ab9b(0x1a9)+_0x16240a['scenario']+_0x19ab9b(0x1ab)+_0x2a132f[_0x19ab9b(0x130)]+'\x20scenarios.'),console[_0x19ab9b(0xef)](_0x42e08e[_0x19ab9b(0x1b2)]);for(let _0x1fbaa4=0x0;_0x42e08e['YwyBU'](_0x1fbaa4,_0x2a132f[_0x19ab9b(0x130)]);_0x1fbaa4++){console[_0x19ab9b(0xef)]('\x20\x20'+(_0x1fbaa4+0x1)+'.\x20'+_0x2a132f[_0x1fbaa4]['description']);}process['exit'](0x1);}const _0x32967d=_0x2a132f[_0x58c795];await updateChecklistItem(_0x36f303,_0x32967d['id'],{'description':_0xf196f6});const _0x13c6b1=await getFeature(_0x36f303);console['log']('\x0a✅\x20Scenario\x20updated'),_0x42e08e[_0x19ab9b(0x171)](displayFeature,_0x13c6b1,_0x13c6b1[_0x19ab9b(0x136)]);}async function downloadFeedbackImage(_0x39a520,_0xb0a233){const _0x57e50b=_0x37c00c,_0x30a6e2={'PTCso':function(_0x259900,_0x466eb5,_0x595674){return _0x259900(_0x466eb5,_0x595674);},'wPNnu':function(_0x5ae65b){return _0x5ae65b();},'bzrDJ':'feedback-images'};try{const _0x411868=_0x30a6e2[_0x57e50b(0x1ba)](join,_0x30a6e2['wPNnu'](getRangerDir),_0x30a6e2['bzrDJ']);await _0x30a6e2['PTCso'](mkdir,_0x411868,{'recursive':!![]});const _0x438fe8=_0x30a6e2[_0x57e50b(0x1ba)](join,_0x411868,'comment_'+_0xb0a233+_0x57e50b(0x127)),_0x1f7962=await fetch(_0x39a520);if(!_0x1f7962['ok'])return null;const _0x556bca=Buffer[_0x57e50b(0x10d)](await _0x1f7962['arrayBuffer']());return await writeFile(_0x438fe8,_0x556bca),_0x438fe8;}catch{return null;}}export async function featureGetReview(_0x55e06f){const _0x262a22=_0x37c00c,_0x4b20b3={'aVIhO':function(_0x3a404b,_0x22cc01){return _0x3a404b(_0x22cc01);},'hvhox':function(_0x58b7d7,_0x4ebe87){return _0x58b7d7===_0x4ebe87;},'eJcQE':_0x262a22(0x150),'uJkyM':function(_0x4bc4ac,_0x3cba57){return _0x4bc4ac<_0x3cba57;},'uvNgZ':function(_0x14208b,_0x2e0c93){return _0x14208b>_0x2e0c93;},'JJWac':_0x262a22(0x110),'xVLly':'Unknown','bXYly':'\x20>\x20','fdwdR':'element','RMrcD':function(_0x58210d,_0x204975){return _0x58210d>=_0x204975;}},_0x169c74=_0x55e06f||await getActiveFeatureId();if(!_0x169c74)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 _0x396dc1=await _0x4b20b3['aVIhO'](getFeature,_0x169c74),{items:_0x2ed97a}=await _0x4b20b3['aVIhO'](getActionItems,_0x169c74);console[_0x262a22(0xef)]('\x0a📋\x20Feedback\x20for:\x20'+_0x396dc1[_0x262a22(0x1a0)]+'\x20('+_0x396dc1['id']+')\x0a');if(_0x4b20b3[_0x262a22(0x1a8)](_0x2ed97a['length'],0x0)){console['log'](_0x4b20b3['eJcQE']);return;}for(let _0x3bab98=0x0;_0x4b20b3['uJkyM'](_0x3bab98,_0x2ed97a['length']);_0x3bab98++){const _0x221932=_0x2ed97a[_0x3bab98],_0x342b67=_0x4b20b3['uvNgZ'](_0x221932['version'],0x1)?_0x262a22(0x11d)+_0x221932[_0x262a22(0x15a)]+')':'',_0x2b0b1f=await getItemFeedback(_0x169c74,_0x221932['id']);if(_0x2b0b1f[_0x262a22(0x101)][_0x262a22(0x130)]>0x0){console['log']('Scenario\x20'+(_0x3bab98+0x1)+':\x20\x22'+_0x221932['description']+'\x22'+_0x342b67+_0x262a22(0x142)+_0x2b0b1f['unaddressedComments']['length']+_0x262a22(0xf2));for(const _0x2d9939 of _0x2b0b1f['unaddressedComments']){const _0x1da967=new Date(_0x2d9939[_0x262a22(0x14e)])[_0x262a22(0x144)]('en-US',{'month':_0x4b20b3[_0x262a22(0x13e)],'day':'numeric'}),_0x2ccb5a=_0x2d9939[_0x262a22(0x1b4)]||_0x2d9939['authorEmail']||_0x4b20b3[_0x262a22(0x192)];console['log'](_0x262a22(0x16d)+_0x2ccb5a+'\x20('+_0x1da967+_0x262a22(0x1ac)+_0x2d9939['content']+'\x22');if(_0x2d9939[_0x262a22(0x118)]){const _0x458b0d=await downloadFeedbackImage(_0x2d9939[_0x262a22(0x118)],_0x2d9939['id']);_0x458b0d&&console['log'](_0x262a22(0xe7)+_0x458b0d);}if(_0x2d9939[_0x262a22(0x176)]){const _0x49d32f=_0x2d9939[_0x262a22(0x176)][_0x262a22(0x1b7)][_0x262a22(0x163)](_0x4b20b3[_0x262a22(0x185)])['pop']()?.['split'](':')[0x0]||_0x4b20b3[_0x262a22(0x18f)],_0x1ad31f=_0x2d9939['domRef']['textContent']?'\x20\x22'+_0x2d9939['domRef']['textContent']['slice'](0x0,0x3c)+'\x22':'';console['log'](_0x262a22(0x181)+_0x49d32f+'>'+_0x1ad31f),console['log'](_0x262a22(0x11f)+_0x2d9939[_0x262a22(0x176)][_0x262a22(0x1b7)]);}else{if(_0x2d9939['spatial']){const _0x4313d0=_0x2d9939['spatial']['coordinates'];_0x4b20b3[_0x262a22(0x1a8)](_0x2d9939['spatial'][_0x262a22(0x155)],_0x262a22(0x138))&&_0x4b20b3['RMrcD'](_0x4313d0['length'],0x2)?console['log']('\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20('+_0x4313d0[0x0][_0x262a22(0x158)](0x2)+',\x20'+_0x4313d0[0x1]['toFixed'](0x2)+')'):console[_0x262a22(0xef)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x2d9939[_0x262a22(0x1ae)][_0x262a22(0x155)]+'\x20at\x20['+_0x4313d0[_0x262a22(0x1b9)](_0x4261ee=>_0x4261ee[_0x262a22(0x158)](0x2))['join'](',\x20')+']');}}}if(_0x2b0b1f[_0x262a22(0x179)]){console['log']('\x20\x20Expected\x20flow:');for(const _0x5dcc97 of _0x2b0b1f['canonicalFlow'][_0x262a22(0x163)]('\x0a')){console['log'](_0x262a22(0x137)+_0x5dcc97);}}}else console['log']('Scenario\x20'+(_0x3bab98+0x1)+':\x20\x22'+_0x221932['description']+'\x22'+_0x342b67+_0x262a22(0x17f)),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x262a22(0xef)]('');}}export async function featureDelete(_0x239a03){const _0x4e59ef=_0x37c00c,_0x4759af={'SrmKn':function(_0x2bbc7e,_0x20c88f){return _0x2bbc7e+_0x20c88f;},'FhSlB':'\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20'},_0x2f6a8b=_0x239a03||await getActiveFeatureId();if(!_0x2f6a8b)throw new Error(_0x4e59ef(0x105));const _0xb17e9a=await getFeature(_0x2f6a8b);await softDeleteFeature(_0x2f6a8b),console['log'](_0x4e59ef(0x13f)+_0xb17e9a['name']+'\x20('+_0x2f6a8b+')'),console[_0x4e59ef(0xef)](_0x4759af[_0x4e59ef(0x1af)](_0x4759af[_0x4e59ef(0x18c)],_0x2f6a8b));}export async function featureRestore(_0x390112){const _0x4111b6=_0x37c00c,_0x1c1b4a={'beDsZ':function(_0x57c616,_0x347a52){return _0x57c616(_0x347a52);},'shBBs':function(_0x1947ba,_0x54fd97,_0x236c34){return _0x1947ba(_0x54fd97,_0x236c34);}};await restoreFeature(_0x390112);const _0x35e41c=await _0x1c1b4a[_0x4111b6(0x194)](getFeature,_0x390112);console[_0x4111b6(0xef)]('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x35e41c['name']+'\x20('+_0x390112+')'),_0x1c1b4a[_0x4111b6(0xed)](displayFeature,_0x35e41c,_0x35e41c['checklistItems']);}
1
+ (function(_0x12a781,_0x3e2309){const _0x366dbb=_0x4a9d,_0x351540=_0x12a781();while(!![]){try{const _0x30c2b6=parseInt(_0x366dbb(0x1bf))/0x1*(parseInt(_0x366dbb(0x175))/0x2)+parseInt(_0x366dbb(0x201))/0x3+-parseInt(_0x366dbb(0x1a0))/0x4+-parseInt(_0x366dbb(0x1e1))/0x5*(parseInt(_0x366dbb(0x166))/0x6)+parseInt(_0x366dbb(0x14e))/0x7*(-parseInt(_0x366dbb(0x1bc))/0x8)+-parseInt(_0x366dbb(0x1a4))/0x9*(-parseInt(_0x366dbb(0x1c6))/0xa)+parseInt(_0x366dbb(0x16d))/0xb;if(_0x30c2b6===_0x3e2309)break;else _0x351540['push'](_0x351540['shift']());}catch(_0x10e5d3){_0x351540['push'](_0x351540['shift']());}}}(_0x4e4b,0x5b9a6));import{readFile,writeFile,mkdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{execSync}from'child_process';import _0xc796d3 from'inquirer';import{createFeature,listFeatures,getFeature,updateFeature,getFeatureReport,getFeatureReportMarkdown,listFeatureSessions,startSession,concludeSession,createChecklistItem,getActionItems,getItemFeedback,softDeleteFeature,restoreFeature,updateChecklistItem}from'./utils/featureApi.js';import{getBrowserSessionSteps}from'./utils/browserSessionsApi.js';import{getApiBaseUrl}from'./utils/environment.js';import{getRangerDir}from'./utils/rangerRoot.js';import{registerSession}from'./utils/sessionCache.js';import{getEnvNames}from'./env.js';import{formatProfileRequiredMessage}from'./utils/profileMessages.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const ACTIVE_FEATURE_FILE='active-feature.txt',bold=_0x14dea1=>'\x1b[1m'+_0x14dea1+'\x1b[0m';function getGitRepoUrl(){const _0x3e1fbe=_0x4a9d,_0x223517={'oELAQ':'git\x20remote\x20get-url\x20origin','bYJRF':'pipe'};try{const _0x364256=execSync(_0x223517[_0x3e1fbe(0x1cc)],{'encoding':_0x3e1fbe(0x16e),'stdio':['pipe',_0x223517[_0x3e1fbe(0x13a)],_0x223517[_0x3e1fbe(0x13a)]]})[_0x3e1fbe(0x1be)]();return _0x364256['replace'](/\.git$/,'')[_0x3e1fbe(0x16a)](/^git@github\.com:/,'github.com/')['replace'](/^https?:\/\//,'');}catch{return undefined;}}function _0x4e4b(){const _0x4e89d9=['join','scenario','verificationInProgressItems','No\x20scenarios\x20found.','nwQBh','canonicalFlow','filter','Please\x20specify\x20the\x20feature\x20review\x20ID:\x20ranger\x20resume\x20<id>','KbZKs','\x20\x20\x20To\x20restore\x20it,\x20run:\x20ranger\x20restore\x20','verification_in_progress','fYlVu','location','\x0a✅\x20Resumed\x20feature\x20review:\x20','gJAZY','wdsuv','.\x20Feature\x20review\x20has\x20','No\x20active\x20session\x20for\x20this\x20feature\x20review.','toLocaleDateString','\x20--include-deleted','\x20\x20\x20\x20\x20\x20Approved','JqoOi','\x0aSearching\x20for\x20feature\x20reviews\x20matching:\x20','\x20\x20\x20\x20\x20Branch:\x20','CLAUDE_SESSION_ID','push','\x20\x20\x20Created:\x20','bEnLW','rroOX','\x20feature\x20review(s)\x20found','\x0a❌\x20No\x20scenarios\x20found\x20to\x20include.','2243382YpTOBU','currentSessionId','FADwy','toLocaleString','\x20in\x20progress','ONCqV','ScfmE','eQwJs','WgaiB','completedAt','.png','authorEmail','FCTSe','.md','sessionId','qYjdh','blockedItems','status','...','\x20\x20\x20\x20\x20Progress:\x20','isTTY','bYJRF','bYtjt','lPkUo','MPlQX','spatial','Current\x20session\x20not\x20found.','VbXth','isKeyStep','\x0aNo\x20feature\x20reviews\x20found.','incompleteReason','/api/v1/mcp/browser-sessions/','approved','split','pipe','\x0a📁\x20Sessions\x20for\x20feature\x20review:\x20','ChrWC','canceledReason','zKIpj','blocked','mAPYI','7OzyAcF','error','yogoY','kVcSh','AsFnw','log','NTaUL','Scenario\x20','style','zFHAR','\x0aCreating\x20feature\x20review...','assetUrl','fAUsi','rkqWq','numeric','all','HxiJK','KsRvU','en-US','No\x20sessions\x20found.','offset','YpQdt','verified','bQyMA','6Difdif','\x20incomplete','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x20\x20\x20\x20\x20\x20Incomplete:\x20','replace','coordinates','warn','3397163aFhAcY','utf-8','output','Next\x20page:\x20ranger\x20list\x20--offset\x20','oJdvN','\x20verified','includeDeleted','\x20--current-branch','24hipJKu','Qxktk','\x20\x20\x20ID:\x20','Showing\x20','FbEvw','gitRepoUrl','\x20(v','MeKOo','find','\x20\x20\x20\x20\x20📍\x20Annotation:\x20point\x20at\x20(','iHoGK','\x0aConcluding\x20session...','\x0a❌\x20Cannot\x20edit\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.','selected','write','IUAAG','env','sQXGZ','hJsfW','domRef','list','\x20\x20\x20Completed:\x20','\x20at\x20[','\x20blocked','QvzFh','items','CwsHr','Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','\x0a❌\x20All\x20scenarios\x20were\x20excluded.','gitBranch','oreja','\x0aAvailable\x20scenarios:','checklistItems','\x20\x20\x20Description:\x20','\x20\x20\x20\x20\x20📷\x20Screenshot:\x20','saiZP','nGaZF','\x0a✅\x20Session\x20is\x20already\x20completed.','uSRjc','has','FrANy','totalCount','pendingItems','2179944hSuhWZ','huCSS','\x20\x20\x20','get','117JPqaNT','screenshotUrls','type','\x0a❌\x20No\x20scenarios\x20found\x20to\x20edit.','storage','createdAt','any','KOZgj','xweHg','\x20unaddressed\x20reviewer\x20comment(s)\x20across\x20','gKdCU','IxdZE','description','XecHG','unaddressedComments','\x20\x20\x20\x20\x20📋\x20Selector:\x20','\x20\x20\x20Repository:\x20','latestReview','\x20—\x20no\x20comments','FFBRg','QgPXK','closed','\x0a✅\x20Scenario\x20updated','assets','4077592NLCsyX','scenarios','trim','24891VbhLlJ','git\x20rev-parse\x20--abbrev-ref\x20HEAD','map','\x20\x20\x20\x20\x20\x20Blocked:\x20','\x0aNo\x20matching\x20active\x20feature\x20reviews\x20found.','blockedReason','qDdSs','341370ABtBvY','UxGNR','No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','element','version','OuxVQ','oELAQ','\x20/\x20','verifiedItems','iXHua','stdout','textContent','exit','terminalReason','currentBranch','repeat','\x20>\x20','stats','\x0a✅\x20Session\x20','iteration','incompleteItems','/artifacts/','length','excludeScenarios','dashboardUrl','name','dfSGo','1846045CbSbnV'];_0x4e4b=function(){return _0x4e89d9;};return _0x4e4b();}function getGitBranch(){const _0x43b6fc=_0x4a9d,_0x23d73f={'Qxktk':function(_0x2d974b,_0x1d9100,_0x394016){return _0x2d974b(_0x1d9100,_0x394016);},'SOgpw':_0x43b6fc(0x1c0),'zKIpj':_0x43b6fc(0x147)};try{return _0x23d73f[_0x43b6fc(0x176)](execSync,_0x23d73f['SOgpw'],{'encoding':'utf-8','stdio':[_0x23d73f['zKIpj'],_0x23d73f[_0x43b6fc(0x14b)],_0x23d73f['zKIpj']]})['trim']();}catch{return undefined;}}export async function getActiveFeatureId(){const _0x1e736b=_0x4a9d,_0x535e5a={'gJAZY':function(_0x324913){return _0x324913();},'hJsfW':function(_0x2f82cb,_0x1bf7c9,_0x6660b6){return _0x2f82cb(_0x1bf7c9,_0x6660b6);}},_0x5e4d31=join(_0x535e5a[_0x1e736b(0x1f0)](getRangerDir),ACTIVE_FEATURE_FILE);if(!existsSync(_0x5e4d31))return null;try{const _0x3ef4e4=await _0x535e5a[_0x1e736b(0x187)](readFile,_0x5e4d31,_0x1e736b(0x16e));return _0x3ef4e4[_0x1e736b(0x1be)]()||null;}catch{return null;}}async function setActiveFeatureId(_0x4de6b7){const _0x44fa88=_0x4a9d,_0x29a08b={'FrANy':function(_0x90d565,_0xbc11b7,_0x202ab5){return _0x90d565(_0xbc11b7,_0x202ab5);},'PphhH':function(_0x246a8f,_0x173472){return _0x246a8f(_0x173472);},'mcfbc':function(_0x10d17e,_0x4839a6,_0x252156,_0x5a4b4c){return _0x10d17e(_0x4839a6,_0x252156,_0x5a4b4c);},'uSRjc':'utf-8'},_0x1bc98c=getRangerDir(),_0x5ab571=_0x29a08b['FrANy'](join,_0x1bc98c,ACTIVE_FEATURE_FILE);!_0x29a08b['PphhH'](existsSync,_0x1bc98c)&&await _0x29a08b[_0x44fa88(0x19d)](mkdir,_0x1bc98c,{'recursive':!![]}),await _0x29a08b['mcfbc'](writeFile,_0x5ab571,_0x4de6b7,_0x29a08b[_0x44fa88(0x19b)]);}function getProgressDisplay(_0x240d77){const _0x3d67a5=_0x4a9d,_0x4452a1={'JRjMq':function(_0xf0b390,_0x1c4edb){return _0xf0b390+_0x1c4edb;},'SRtQs':function(_0x1aabf0,_0xadc953){return _0x1aabf0===_0xadc953;},'qcjSy':function(_0x8cc56c,_0x4794f5){return _0x8cc56c*_0x4794f5;},'ZMgsZ':function(_0x1fa036,_0x11d2f2){return _0x1fa036/_0x11d2f2;},'ChrWC':function(_0x211126,_0x483e67){return _0x211126-_0x483e67;},'KbZKs':function(_0x501e7c,_0x3829b9){return _0x501e7c>_0x3829b9;}},_0x1d5570=_0x240d77[_0x3d67a5(0x1ce)]||0x0,_0x47e5d3=_0x240d77[_0x3d67a5(0x1e4)]||0x0,_0x4bd4d0=_0x240d77[_0x3d67a5(0x135)]||0x0,_0x3d1829=_0x240d77[_0x3d67a5(0x1da)]||0x0,_0x37631c=_0x240d77[_0x3d67a5(0x19f)]||0x0,_0x279fea=_0x4452a1['JRjMq'](_0x1d5570+_0x47e5d3,_0x4bd4d0)+_0x3d1829+_0x37631c;if(_0x4452a1['SRtQs'](_0x279fea,0x0))return'-';const _0x32f51b=0xa,_0x47f394=Math['round'](_0x4452a1['qcjSy'](_0x4452a1['ZMgsZ'](_0x1d5570,_0x279fea),_0x32f51b)),_0x6bbabb='█'['repeat'](_0x47f394)+'░'[_0x3d67a5(0x1d5)](_0x4452a1[_0x3d67a5(0x149)](_0x32f51b,_0x47f394)),_0x326099=[];if(_0x4452a1['KbZKs'](_0x4bd4d0,0x0))_0x326099['push'](_0x4bd4d0+_0x3d67a5(0x18c));if(_0x4452a1[_0x3d67a5(0x1ea)](_0x3d1829,0x0))_0x326099[_0x3d67a5(0x1fb)](_0x3d1829+_0x3d67a5(0x167));if(_0x4452a1['KbZKs'](_0x47e5d3,0x0))_0x326099[_0x3d67a5(0x1fb)](_0x47e5d3+_0x3d67a5(0x205));const _0x262805=_0x326099['length']>0x0?'\x20('+_0x326099['join'](',\x20')+')':'';return _0x6bbabb+'\x20'+_0x1d5570+'/'+_0x279fea+_0x3d67a5(0x172)+_0x262805;}function getCurrentSessionItems(_0x1ee37d,_0x23d2ad){const _0x3c5f30=_0x4a9d;if(!_0x1ee37d[_0x3c5f30(0x202)])return _0x23d2ad[_0x3c5f30(0x1e8)](_0x107f65=>!_0x107f65['sessionId']);return _0x23d2ad[_0x3c5f30(0x1e8)](_0x3bdcac=>_0x3bdcac[_0x3c5f30(0x133)]===_0x1ee37d[_0x3c5f30(0x202)]||!_0x3bdcac[_0x3c5f30(0x133)]);}function displayFeature(_0x5c2d43,_0x1c129f){const _0x24991f=_0x4a9d,_0x4f06de={'rkqWq':function(_0x9b7abd,_0x4a41af){return _0x9b7abd(_0x4a41af);},'FbEvw':function(_0x149e2a,_0x35df9c){return _0x149e2a===_0x35df9c;},'ONCqV':_0x24991f(0x1b9),'kVcSh':function(_0x1971fb,_0x39445e){return _0x1971fb===_0x39445e;},'iHoGK':_0x24991f(0x164),'ScfmE':function(_0x2f48f2,_0x555b7b){return _0x2f48f2===_0x555b7b;},'xweHg':function(_0x13714d,_0x4b53ab){return _0x13714d!==_0x4b53ab;},'ykQmP':function(_0x1f56af,_0xf99dc9){return _0x1f56af===_0xf99dc9;},'vKKKn':_0x24991f(0x14c),'rroOX':_0x24991f(0x145)};console['log']('\x0a'+_0x5c2d43[_0x24991f(0x1df)]+'\x20('+_0x5c2d43[_0x24991f(0x1de)]+')');_0x5c2d43[_0x24991f(0x1d7)]&&console['log']('\x20\x20\x20Progress:\x20'+_0x4f06de[_0x24991f(0x15b)](getProgressDisplay,_0x5c2d43['stats']));_0x5c2d43['description']&&console['log'](_0x24991f(0x196)+_0x5c2d43[_0x24991f(0x1b0)]);_0x5c2d43['gitRepoUrl']&&console['log'](_0x24991f(0x1b4)+_0x5c2d43[_0x24991f(0x17a)]);_0x5c2d43['gitBranch']&&console[_0x24991f(0x153)]('\x20\x20\x20Branch:\x20'+_0x5c2d43['gitBranch']);console[_0x24991f(0x153)](_0x24991f(0x1fc)+new Date(_0x5c2d43[_0x24991f(0x1a9)])[_0x24991f(0x204)]());_0x5c2d43[_0x24991f(0x20a)]&&console[_0x24991f(0x153)](_0x24991f(0x18a)+new Date(_0x5c2d43[_0x24991f(0x20a)])[_0x24991f(0x204)]());if(_0x1c129f&&_0x1c129f[_0x24991f(0x1dc)]>0x0){console['log']('\x0a\x20\x20\x20Scenarios:');for(let _0x3a83c8=0x0;_0x3a83c8<_0x1c129f[_0x24991f(0x1dc)];_0x3a83c8++){const _0x26fcb1=_0x1c129f[_0x3a83c8];let _0x353b3e;if(_0x4f06de[_0x24991f(0x179)](_0x26fcb1['status'],_0x4f06de[_0x24991f(0x206)])&&_0x4f06de['kVcSh'](_0x26fcb1[_0x24991f(0x1d3)],'approved'))_0x353b3e='✅';else{if(_0x4f06de['kVcSh'](_0x26fcb1['status'],_0x4f06de['iHoGK']))_0x353b3e='🟢';else{if(_0x26fcb1[_0x24991f(0x136)]==='incomplete')_0x353b3e='🟠';else{if(_0x4f06de[_0x24991f(0x207)](_0x26fcb1['status'],'blocked'))_0x353b3e='🛑';else{if(_0x4f06de[_0x24991f(0x151)](_0x26fcb1[_0x24991f(0x136)],_0x24991f(0x1b9)))_0x353b3e='⛔';else _0x4f06de[_0x24991f(0x151)](_0x26fcb1['status'],_0x24991f(0x1ec))?_0x353b3e='⏳':_0x353b3e='⬜';}}}}const _0x1b5acb=_0x26fcb1['version']>0x1?_0x24991f(0x17b)+_0x26fcb1[_0x24991f(0x1ca)]+')':'',_0x17aab5=_0x26fcb1['version']>0x1&&_0x26fcb1['parentItemId']&&_0x4f06de[_0x24991f(0x1ac)](_0x26fcb1['status'],'closed')&&_0x4f06de['xweHg'](_0x26fcb1['status'],_0x4f06de[_0x24991f(0x17f)])?'\x20[has\x20reviewer\x20feedback]':'';console[_0x24991f(0x153)](_0x24991f(0x1a2)+(_0x3a83c8+0x1)+'.\x20'+_0x353b3e+'\x20'+_0x26fcb1[_0x24991f(0x1b0)]+_0x1b5acb+_0x17aab5);_0x4f06de['ykQmP'](_0x26fcb1[_0x24991f(0x136)],_0x4f06de['vKKKn'])&&_0x26fcb1[_0x24991f(0x1c4)]&&console['log'](_0x24991f(0x1c2)+_0x26fcb1[_0x24991f(0x1c4)]);_0x26fcb1['status']==='incomplete'&&_0x26fcb1['incompleteReason']&&console['log'](_0x24991f(0x169)+_0x26fcb1['incompleteReason']);if(_0x26fcb1[_0x24991f(0x136)]==='closed'&&_0x26fcb1['terminalReason']===_0x4f06de[_0x24991f(0x1fe)])console[_0x24991f(0x153)](_0x24991f(0x1f6));else _0x26fcb1['status']==='closed'&&_0x26fcb1['canceledReason']&&console['log']('\x20\x20\x20\x20\x20\x20Cancelled:\x20'+_0x26fcb1[_0x24991f(0x14a)]);}}}export async function featureCreate(_0x3024b4,_0x25402f){const _0x3190e8=_0x4a9d,_0x386c9b={'oreja':function(_0x482f6f,_0x21941f){return _0x482f6f===_0x21941f;},'DHIoO':function(_0x37e94f){return _0x37e94f();},'mVjPM':_0x3190e8(0x158),'UONGv':function(_0x1a8b0f,_0x1e7a16){return _0x1a8b0f(_0x1e7a16);},'NzStT':function(_0x304ad0,_0x25a2e1,_0x3b698d){return _0x304ad0(_0x25a2e1,_0x3b698d);}},{envNames:_0x3685d1}=await getEnvNames();if(_0x3685d1[_0x3190e8(0x1dc)]===0x0&&!process[_0x3190e8(0x185)]['RANGER_TEST_USERNAME']){let _0x24801d=0x0;try{_0x24801d=(await listCloudProfiles())['length'];}catch{_0x24801d=0x1;}_0x386c9b[_0x3190e8(0x193)](_0x24801d,0x0)&&console[_0x3190e8(0x16c)]('\x0a'+formatProfileRequiredMessage(_0x1422a9=>bold(_0x1422a9)));}const _0x1722bb=_0x25402f['scenarios']?_0x25402f[_0x3190e8(0x1bd)][_0x3190e8(0x1c1)](_0x238057=>_0x238057['trim']()):[],_0x5756a6=_0x386c9b['DHIoO'](getGitRepoUrl),_0x157ad4=getGitBranch();console[_0x3190e8(0x153)](_0x386c9b['mVjPM']);const _0x22dbfd=await createFeature({'name':_0x3024b4,'description':_0x25402f[_0x3190e8(0x1b0)],'checklist':_0x1722bb,'gitRepoUrl':_0x5756a6,'gitBranch':_0x157ad4});await _0x386c9b['UONGv'](setActiveFeatureId,_0x22dbfd['id']),await tryStartCurrentSession(_0x22dbfd['id']);const _0x537cb9=process[_0x3190e8(0x185)][_0x3190e8(0x1fa)];_0x537cb9&&registerSession(_0x537cb9,_0x22dbfd['id']),console[_0x3190e8(0x153)]('\x0a✅\x20Feature\x20review\x20created:\x20'+_0x22dbfd['id']),_0x386c9b['NzStT'](displayFeature,_0x22dbfd,_0x22dbfd[_0x3190e8(0x195)]),console[_0x3190e8(0x153)]('\x0a➡️\x20\x20Set\x20as\x20active\x20feature\x20review');}export async function featureList(_0x49cb22){const _0x331e03=_0x4a9d,_0x2f339a={'eQwJs':function(_0x2143e8){return _0x2143e8();},'sQXGZ':function(_0x293990,_0x1facf5){return _0x293990(_0x1facf5);},'BTXhY':function(_0x307e8c,_0x4a6bce){return _0x307e8c!==_0x4a6bce;},'cRjnd':_0x331e03(0x174),'fyGFq':_0x331e03(0x1f5)},_0x6c2d8c={'limit':_0x49cb22['limit']??0xa,'offset':_0x49cb22['offset']??0x0,'includeDeleted':_0x49cb22['includeDeleted']};_0x49cb22['currentBranch']&&(_0x6c2d8c['gitRepoUrl']=_0x2f339a[_0x331e03(0x208)](getGitRepoUrl),_0x6c2d8c[_0x331e03(0x192)]=getGitBranch());const _0x38adae=await _0x2f339a['sQXGZ'](listFeatures,_0x6c2d8c);if(_0x38adae['items'][_0x331e03(0x1dc)]===0x0){console['log'](_0x331e03(0x142));return;}const _0x3a173a=_0x38adae['totalCount']>_0x38adae['items'][_0x331e03(0x1dc)]?_0x331e03(0x178)+_0x38adae['items']['length']+'\x20of\x20'+_0x38adae[_0x331e03(0x19e)]:_0x38adae['totalCount']+_0x331e03(0x1ff);console['log']('\x0a'+_0x3a173a+':\x0a');for(const _0x1aef0a of _0x38adae[_0x331e03(0x18e)]){const _0x46ce25='2|1|4|0|3|5'['split']('|');let _0x2d4327=0x0;while(!![]){switch(_0x46ce25[_0x2d4327++]){case'0':_0x1aef0a['gitBranch']&&console[_0x331e03(0x153)]('\x20\x20\x20Branch:\x20'+_0x1aef0a['gitBranch']);continue;case'1':console['log'](_0x331e03(0x177)+_0x1aef0a['id']);continue;case'2':console['log'](''+_0x1aef0a[_0x331e03(0x1df)]);continue;case'3':console['log'](_0x331e03(0x1fc)+new Date(_0x1aef0a['createdAt'])['toLocaleDateString']());continue;case'4':_0x1aef0a[_0x331e03(0x1d7)]&&console[_0x331e03(0x153)]('\x20\x20\x20Progress:\x20'+_0x2f339a[_0x331e03(0x186)](getProgressDisplay,_0x1aef0a[_0x331e03(0x1d7)]));continue;case'5':console['log']('');continue;}break;}}const _0x601359=_0x6c2d8c['limit']??0xa,_0x4c7442=(_0x6c2d8c[_0x331e03(0x162)]??0x0)+_0x38adae['items'][_0x331e03(0x1dc)];if(_0x4c7442<_0x38adae[_0x331e03(0x19e)]){const _0x225151=_0x2f339a['BTXhY'](_0x601359,0xa)?'\x20--limit\x20'+_0x601359:'',_0x536e5b=_0x49cb22[_0x331e03(0x1d4)]?_0x2f339a['cRjnd']:'',_0x586149=_0x49cb22[_0x331e03(0x173)]?_0x2f339a['fyGFq']:'';console[_0x331e03(0x153)](_0x331e03(0x170)+_0x4c7442+_0x225151+_0x536e5b+_0x586149);}}export async function featureShow(_0x25c571){const _0x2dacd0=_0x4a9d,_0x2f19c3={'JqoOi':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','kSjSw':function(_0x4b47f5,_0x5661e9){return _0x4b47f5(_0x5661e9);}},_0x176f42=_0x25c571||await getActiveFeatureId();if(!_0x176f42)throw new Error(_0x2f19c3[_0x2dacd0(0x1f7)]);const _0x32a413=await _0x2f19c3['kSjSw'](getFeature,_0x176f42);displayFeature(_0x32a413,_0x32a413['checklistItems']);}export async function featureResume(_0x482435){const _0x21c906=_0x4a9d,_0x40756c={'CwsHr':function(_0x584e37,_0x276ef1){return _0x584e37(_0x276ef1);},'hqFsd':function(_0x33b7fe,_0x3985d2){return _0x33b7fe!==_0x3985d2;},'jkdpB':function(_0x49466f,_0x272b93,_0x263af0){return _0x49466f(_0x272b93,_0x263af0);},'MahNw':function(_0x206172){return _0x206172();},'nwQBh':function(_0x5e97c5,_0xfb0f20){return _0x5e97c5&&_0xfb0f20;},'iXHua':_0x21c906(0x1aa),'MPlQX':function(_0x55ed1a,_0x234b3e){return _0x55ed1a(_0x234b3e);},'IxdZE':function(_0xa2e476,_0x7994a1){return _0xa2e476===_0x7994a1;},'qDdSs':_0x21c906(0x1c3),'JAmFX':function(_0x34615e,_0x162839){return _0x34615e===_0x162839;},'YbYYX':'\x0aNon-interactive\x20mode\x20detected.\x20Multiple\x20feature\x20reviews\x20found:','WgaiB':_0x21c906(0x182),'KsRvU':function(_0x5d8a88,_0xd836a1,_0x26fcbc){return _0x5d8a88(_0xd836a1,_0x26fcbc);}};if(_0x482435){const _0x194283=await getFeature(_0x482435);await _0x40756c[_0x21c906(0x18f)](setActiveFeatureId,_0x194283['id']);const _0x4e19cb=getGitBranch();_0x4e19cb&&_0x40756c['hqFsd'](_0x4e19cb,_0x194283[_0x21c906(0x192)])&&(await updateFeature(_0x194283['id'],{'gitBranch':_0x4e19cb}),console['log']('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x4e19cb));console[_0x21c906(0x153)](_0x21c906(0x1ef)+_0x194283[_0x21c906(0x1df)]+'\x20('+_0x194283['id']+')'),await tryStartCurrentSession(_0x194283['id']);const _0x52417b=process['env'][_0x21c906(0x1fa)];_0x52417b&&registerSession(_0x52417b,_0x194283['id']);_0x40756c['jkdpB'](displayFeature,_0x194283,_0x194283['checklistItems']),await printFeedbackNudge(_0x194283['id']);return;}const _0x5657d1=getGitRepoUrl(),_0x532e0d=_0x40756c['MahNw'](getGitBranch);if(_0x40756c[_0x21c906(0x1e6)](!_0x5657d1,!_0x532e0d))throw new Error('Not\x20in\x20a\x20git\x20repository.');console['log'](_0x21c906(0x1f8)+(_0x5657d1||'any')+_0x21c906(0x1cd)+(_0x532e0d||_0x40756c[_0x21c906(0x1cf)])+_0x21c906(0x137));const _0x800deb=await _0x40756c['MPlQX'](listFeatures,{'gitRepoUrl':_0x5657d1,'gitBranch':_0x532e0d}),_0x4e31a1=_0x800deb['items'][_0x21c906(0x1e8)](_0x42136f=>_0x42136f['status']?_0x42136f['status']!=='verified':!_0x42136f['completedAt']);if(_0x40756c[_0x21c906(0x1af)](_0x4e31a1[_0x21c906(0x1dc)],0x0)){console[_0x21c906(0x153)](_0x40756c[_0x21c906(0x1c5)]),console['log']('Run:\x20ranger\x20create\x20\x22<name>\x22\x20to\x20create\x20a\x20new\x20feature\x20review');return;}let _0x538e03;if(_0x40756c['JAmFX'](_0x4e31a1[_0x21c906(0x1dc)],0x1))_0x538e03=_0x4e31a1[0x0];else{const _0x4d6b8e=process['stdin'][_0x21c906(0x139)]&&process['stdout']['isTTY'];if(!_0x4d6b8e){console[_0x21c906(0x153)](_0x40756c['YbYYX']);for(const _0x5e860f of _0x4e31a1){console[_0x21c906(0x153)]('\x20\x20'+_0x5e860f[_0x21c906(0x1df)]),console[_0x21c906(0x153)]('\x20\x20\x20\x20\x20ID:\x20'+_0x5e860f['id']),_0x5e860f['stats']&&console[_0x21c906(0x153)](_0x21c906(0x138)+getProgressDisplay(_0x5e860f[_0x21c906(0x1d7)])),_0x5e860f[_0x21c906(0x192)]&&console['log'](_0x21c906(0x1f9)+_0x5e860f['gitBranch']);}throw new Error(_0x21c906(0x1e9));}const {selected:_0x1b8e21}=await _0xc796d3['prompt']([{'type':_0x21c906(0x189),'name':_0x40756c[_0x21c906(0x209)],'message':'Multiple\x20feature\x20reviews\x20found.\x20Select\x20one:','choices':_0x4e31a1['map'](_0x1e297a=>({'name':_0x1e297a[_0x21c906(0x1df)]+'\x20('+_0x1e297a['id']+')','value':_0x1e297a['id']}))}]);_0x538e03=_0x4e31a1[_0x21c906(0x17d)](_0x816de=>_0x816de['id']===_0x1b8e21);}await _0x40756c['CwsHr'](setActiveFeatureId,_0x538e03['id']);_0x532e0d&&_0x532e0d!==_0x538e03['gitBranch']&&(await _0x40756c[_0x21c906(0x15f)](updateFeature,_0x538e03['id'],{'gitBranch':_0x532e0d}),console[_0x21c906(0x153)]('\x20\x20\x20Updated\x20branch\x20to:\x20'+_0x532e0d));console['log']('\x0a✅\x20Resumed\x20feature\x20review:\x20'+_0x538e03[_0x21c906(0x1df)]+'\x20('+_0x538e03['id']+')'),await tryStartCurrentSession(_0x538e03['id']);const _0xd6686c=await _0x40756c[_0x21c906(0x18f)](getFeature,_0x538e03['id']),_0x6af3c8=process['env'][_0x21c906(0x1fa)];_0x6af3c8&&_0x40756c['jkdpB'](registerSession,_0x6af3c8,_0xd6686c['id']),_0x40756c['jkdpB'](displayFeature,_0xd6686c,_0xd6686c['checklistItems']),await _0x40756c[_0x21c906(0x13d)](printFeedbackNudge,_0xd6686c['id']);}async function printFeedbackNudge(_0x4afb38){const _0x197379=_0x4a9d,_0x1bd24c={'YpQdt':function(_0x43a4c0,_0x2a896d){return _0x43a4c0(_0x2a896d);},'jNuEc':function(_0x3ad5ba,_0x54cff5,_0x4f0c48){return _0x3ad5ba(_0x54cff5,_0x4f0c48);},'WsftM':'\x20\x20\x20Run\x20`ranger\x20get-review`\x20to\x20see\x20what\x20needs\x20to\x20be\x20fixed.'};try{const {items:_0xe28723}=await _0x1bd24c[_0x197379(0x163)](getActionItems,_0x4afb38);let _0x20ba9a=0x0,_0x19d1fe=0x0;for(const _0x24f078 of _0xe28723){const _0x4e77e1=await _0x1bd24c['jNuEc'](getItemFeedback,_0x4afb38,_0x24f078['id']);_0x4e77e1['unaddressedComments'][_0x197379(0x1dc)]>0x0&&(_0x20ba9a+=_0x4e77e1[_0x197379(0x1b2)][_0x197379(0x1dc)],_0x19d1fe++);}_0x20ba9a>0x0&&(console[_0x197379(0x153)]('\x0a⚠️\x20\x20'+_0x20ba9a+_0x197379(0x1ad)+_0x19d1fe+'\x20scenario(s).'),console['log'](_0x1bd24c['WsftM']));}catch{}}async function tryStartCurrentSession(_0x30d8c6){const _0x5221e1=_0x4a9d,_0xc4a8a3={'JZHgW':function(_0x10b9fa,_0x2a7513){return _0x10b9fa(_0x2a7513);}};try{const {sessions:_0x3dd2ba}=await _0xc4a8a3['JZHgW'](listFeatureSessions,_0x30d8c6),_0x586046=_0x3dd2ba['find'](_0x1a1a59=>_0x1a1a59[_0x5221e1(0x136)]==='ready');_0x586046&&(await startSession(_0x30d8c6,_0x586046['id']),console[_0x5221e1(0x153)]('\x20\x20\x20▶️\x20Started\x20session\x20'+_0x586046['iteration']));}catch{}}export async function featureReport(_0x29bfef,_0x2c1fe8){const _0x3c66de=_0x4a9d,_0x1f2954={'nlCIt':function(_0x2fc26f){return _0x2fc26f();},'FCTSe':_0x3c66de(0x1c8),'wFpuQ':'\x0aGenerating\x20report...','MeKOo':function(_0x419269,_0x4da75f,_0x386039){return _0x419269(_0x4da75f,_0x386039);},'CPfvF':function(_0x4adf42,_0x18a06c,_0xb388d3,_0x395e06){return _0x4adf42(_0x18a06c,_0xb388d3,_0x395e06);},'mAPYI':'utf-8'},_0x4720be=_0x29bfef||await _0x1f2954['nlCIt'](getActiveFeatureId);if(!_0x4720be)throw new Error(_0x1f2954[_0x3c66de(0x20d)]);console['log'](_0x1f2954['wFpuQ']);const _0x34cea1=await _0x1f2954[_0x3c66de(0x17c)](getFeatureReportMarkdown,_0x4720be,{'style':_0x2c1fe8[_0x3c66de(0x156)]}),_0x21e80e=_0x2c1fe8[_0x3c66de(0x16f)]||_0x1f2954['CPfvF'](join,_0x1f2954['nlCIt'](getRangerDir),'reports',_0x4720be+_0x3c66de(0x20e)),_0x525960=_0x1f2954['MeKOo'](join,_0x21e80e,'..');!existsSync(_0x525960)&&await _0x1f2954[_0x3c66de(0x17c)](mkdir,_0x525960,{'recursive':!![]}),await writeFile(_0x21e80e,_0x34cea1,_0x1f2954[_0x3c66de(0x14d)]),console['log']('\x0a✅\x20Report\x20generated:\x20'+_0x21e80e);}function getScenarioResult(_0x319e3f){const _0x3986fc=_0x4a9d,_0x26efd0={'zLsTE':'closed','xgpEB':function(_0x50c68e,_0x133ee6){return _0x50c68e===_0x133ee6;},'fYlVu':_0x3986fc(0x1ec)};if(_0x319e3f[_0x3986fc(0x136)]===_0x26efd0['zLsTE'])return _0x319e3f['terminalReason']??_0x26efd0['zLsTE'];if(_0x26efd0['xgpEB'](_0x319e3f[_0x3986fc(0x136)],_0x26efd0[_0x3986fc(0x1ed)]))return'in_progress';return _0x319e3f[_0x3986fc(0x136)];}function getScenarioRationale(_0x19e5ed,_0x5c98a4){const _0x148ce4=_0x4a9d;if(_0x5c98a4)return _0x5c98a4;if(_0x19e5ed['blockedReason'])return _0x19e5ed['blockedReason'];if(_0x19e5ed['incompleteReason'])return _0x19e5ed[_0x148ce4(0x143)];if(_0x19e5ed['canceledReason'])return _0x19e5ed['canceledReason'];if(_0x19e5ed['notes'])return _0x19e5ed['notes'];return null;}export async function featureReportPrDescription(_0x16b01f,_0x365498){const _0x10683d=_0x4a9d,_0x373674={'gKdCU':function(_0x3d67d7){return _0x3d67d7();},'puPzM':_0x10683d(0x1c8),'NFcMt':function(_0x49bff6,_0xae3998,_0x102032){return _0x49bff6(_0xae3998,_0x102032);},'KOZgj':_0x10683d(0x200),'XZDGO':_0x10683d(0x194),'QvzFh':function(_0x2e45bb,_0x1dc3f1){return _0x2e45bb<_0x1dc3f1;},'RLBvA':_0x10683d(0x191),'bYtjt':function(_0x1a3157,_0x39742a,_0x5747bc,_0xc8d18e){return _0x1a3157(_0x39742a,_0x5747bc,_0xc8d18e);}},_0x3377c3=_0x16b01f||await _0x373674[_0x10683d(0x1ae)](getActiveFeatureId);if(!_0x3377c3)throw new Error(_0x373674['puPzM']);const _0x3f25fe=await getFeature(_0x3377c3),_0x5d0195=_0x3f25fe['checklistItems']||[],_0x234bbd=_0x373674['NFcMt'](getCurrentSessionItems,_0x3f25fe,_0x5d0195);_0x234bbd['length']===0x0&&(console[_0x10683d(0x14f)](_0x373674[_0x10683d(0x1ab)]),process[_0x10683d(0x1d2)](0x1));const _0x11efe4=_0x365498[_0x10683d(0x1dd)]??[],_0x4d1c96=_0x11efe4[_0x10683d(0x1e8)](_0x18db26=>!Number['isInteger'](_0x18db26)||_0x18db26<0x1||_0x18db26>_0x234bbd[_0x10683d(0x1dc)]);if(_0x4d1c96[_0x10683d(0x1dc)]>0x0){console[_0x10683d(0x14f)]('\x0a❌\x20Invalid\x20scenario\x20number(s):\x20'+_0x4d1c96['join'](',\x20')),console[_0x10683d(0x153)](_0x373674['XZDGO']);for(let _0x16c946=0x0;_0x373674[_0x10683d(0x18d)](_0x16c946,_0x234bbd['length']);_0x16c946++){console['log']('\x20\x20'+(_0x16c946+0x1)+'.\x20'+_0x234bbd[_0x16c946][_0x10683d(0x1b0)]);}process['exit'](0x1);}const _0xa7a16b=new Set(_0x11efe4[_0x10683d(0x1c1)](_0x537a02=>_0x537a02-0x1)),_0x585ca9=_0x234bbd[_0x10683d(0x1e8)]((_0x3c76ac,_0x469698)=>!_0xa7a16b[_0x10683d(0x19c)](_0x469698));_0x585ca9['length']===0x0&&(console['error'](_0x373674['RLBvA']),process['exit'](0x1));if(_0x365498['json'])await _0x373674[_0x10683d(0x13b)](outputJsonReport,_0x3377c3,_0x3f25fe,_0x585ca9);else{const _0xb79ced=await getFeatureReportMarkdown(_0x3377c3,{'itemIds':_0x585ca9[_0x10683d(0x1c1)](_0x59e37d=>_0x59e37d['id'])});process['stdout']['write'](_0xb79ced['trimEnd']()+'\x0a');}}async function outputJsonReport(_0x13b4d3,_0x5d4bd4,_0x1c5565){const _0x529614=_0x4a9d,_0x327291={'oJdvN':function(_0x16e32a,_0x5006e5,_0x4873fe){return _0x16e32a(_0x5006e5,_0x4873fe);},'bQyMA':function(_0x22786e){return _0x22786e();},'dJyBl':function(_0x3cff8d,_0xac316){return _0x3cff8d(_0xac316);}},_0x2718bf=_0x327291[_0x529614(0x165)](getApiBaseUrl),_0x279321=await _0x327291['dJyBl'](getFeatureReport,_0x13b4d3),_0x156ddc=new Map(_0x279321[_0x529614(0x195)]['map'](_0x1583d9=>[_0x1583d9['id'],_0x1583d9])),_0x11adcf=await Promise[_0x529614(0x15d)](_0x1c5565[_0x529614(0x1c1)](async _0x28ac17=>{const _0x3d33ce=_0x529614,_0x383327=_0x156ddc[_0x3d33ce(0x1a3)](_0x28ac17['id']),_0x2a926c=_0x383327?.['linkedSession']??null;let _0x50433a=[];if(_0x28ac17['browserSessionId'])try{const {steps:_0x2f09e2}=await getBrowserSessionSteps(_0x28ac17['browserSessionId']);_0x2f09e2[_0x3d33ce(0x1dc)]>0x0&&(_0x50433a=_0x2f09e2['map'](_0x121d3c=>{const _0x59d680=_0x3d33ce,_0x2eccae=_0x121d3c[_0x59d680(0x1bb)]['find'](_0x3c6856=>_0x3c6856['assetType']==='screenshot'&&_0x3c6856['timing']==='after')??_0x121d3c[_0x59d680(0x1bb)][_0x59d680(0x17d)](_0x30b4ec=>_0x30b4ec['assetType']==='screenshot');let _0x53e4f3=null,_0x303cd7=null;if(_0x2eccae){const _0x48d3a4=_0x2eccae[_0x59d680(0x1a8)][_0x59d680(0x1ee)][_0x59d680(0x146)]('/')['pop']();_0x53e4f3=_0x2718bf+_0x59d680(0x144)+_0x28ac17['browserSessionId']+_0x59d680(0x1db)+_0x48d3a4,_0x48d3a4&&(_0x303cd7=_0x48d3a4['replace'](/\.\w+$/,'')['replace'](/^(key_)?\d+_/,'')[_0x59d680(0x16a)](/[-_]/g,'\x20'));}return{'description':_0x303cd7||_0x121d3c[_0x59d680(0x1b0)]||_0x121d3c['stepName']||'Step\x20'+_0x121d3c['position'],'screenshot':_0x53e4f3,'is_key_step':_0x121d3c[_0x59d680(0x141)]};}));}catch{}return _0x50433a[_0x3d33ce(0x1dc)]===0x0&&_0x2a926c?.['screenshotUrls']&&(_0x50433a=_0x2a926c[_0x3d33ce(0x1a5)]['map']((_0x22fdd6,_0x175f66)=>({'description':'Screenshot\x20'+(_0x175f66+0x1),'screenshot':_0x22fdd6,'is_key_step':![]}))),{'description':_0x28ac17['description'],'result':getScenarioResult(_0x28ac17),'rationale':_0x327291[_0x3d33ce(0x171)](getScenarioRationale,_0x28ac17,_0x2a926c?.['agentResponse']),'steps':_0x50433a};})),_0x56d111={'url':_0x5d4bd4['dashboardUrl'],'scenarios':_0x11adcf};process[_0x529614(0x1d0)][_0x529614(0x183)](JSON['stringify'](_0x56d111,null,0x2)+'\x0a');}export async function featureConcludeSession(_0x2f2665){const _0x596aef=_0x4a9d,_0x1e26ca={'JfVFu':function(_0x3c45ad){return _0x3c45ad();},'hpIIa':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review','HxiJK':function(_0x4e0de8,_0xf063e6){return _0x4e0de8(_0xf063e6);},'yogoY':_0x596aef(0x13f),'eJDKQ':function(_0x568eb1,_0x190ffd){return _0x568eb1===_0x190ffd;},'QgPXK':'completed','oHlrP':_0x596aef(0x19a),'OuxVQ':function(_0x6c37d7,_0x4569ea){return _0x6c37d7!==_0x4569ea;},'nGaZF':'in_progress','bEnLW':_0x596aef(0x180),'UaTOo':function(_0x2ef064,_0x4d6dfe,_0x6b86ba){return _0x2ef064(_0x4d6dfe,_0x6b86ba);}},_0x293d83=_0x2f2665||await _0x1e26ca['JfVFu'](getActiveFeatureId);if(!_0x293d83)throw new Error(_0x1e26ca['hpIIa']);const _0x1343cd=await _0x1e26ca[_0x596aef(0x15e)](getFeature,_0x293d83);if(!_0x1343cd[_0x596aef(0x202)])throw new Error(_0x596aef(0x1f3));const {sessions:_0x1875cf}=await listFeatureSessions(_0x293d83),_0x4c57e6=_0x1875cf[_0x596aef(0x17d)](_0x272b6d=>_0x272b6d['id']===_0x1343cd[_0x596aef(0x202)]);if(!_0x4c57e6)throw new Error(_0x1e26ca[_0x596aef(0x150)]);if(_0x1e26ca['eJDKQ'](_0x4c57e6[_0x596aef(0x136)],_0x1e26ca[_0x596aef(0x1b8)])){console['log'](_0x1e26ca['oHlrP']);return;}if(_0x1e26ca[_0x596aef(0x1cb)](_0x4c57e6['status'],_0x1e26ca[_0x596aef(0x199)]))throw new Error('Cannot\x20conclude\x20session\x20with\x20status:\x20'+_0x4c57e6['status']);console['log'](_0x1e26ca[_0x596aef(0x1fd)]),await _0x1e26ca['UaTOo'](concludeSession,_0x293d83,_0x1343cd['currentSessionId']),console['log'](_0x596aef(0x1d8)+_0x4c57e6[_0x596aef(0x1d9)]+'\x20concluded.'),console['log']('\x20\x20\x20The\x20feature\x20review\x20is\x20now\x20ready\x20for\x20human\x20review\x20on\x20the\x20Ranger\x20dashboard.');}export async function featureSessions(_0x4f25f0){const _0x56f2a3=_0x4a9d,_0x383c05={'QEjbZ':'No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.','UxGNR':function(_0x1af4ee,_0x371e1c){return _0x1af4ee(_0x371e1c);},'lPkUo':function(_0xc3d2b,_0x26919e){return _0xc3d2b(_0x26919e);},'qyulc':function(_0x259d9a,_0x3b5538){return _0x259d9a===_0x3b5538;},'bGSTa':_0x56f2a3(0x161),'jnweH':function(_0x14ed87,_0x52cd44){return _0x14ed87===_0x52cd44;}},_0x2c77a7=_0x4f25f0||await getActiveFeatureId();if(!_0x2c77a7)throw new Error(_0x383c05['QEjbZ']);const _0x3a2479=await _0x383c05[_0x56f2a3(0x1c7)](getFeature,_0x2c77a7);console[_0x56f2a3(0x153)](_0x56f2a3(0x148)+_0x3a2479['name']+'\x0a');const {sessions:_0xdb4f56}=await _0x383c05[_0x56f2a3(0x13c)](listFeatureSessions,_0x2c77a7);if(_0x383c05['qyulc'](_0xdb4f56[_0x56f2a3(0x1dc)],0x0)){console[_0x56f2a3(0x153)](_0x383c05['bGSTa']);return;}for(const _0x390ba0 of _0xdb4f56){const _0x16b002=_0x383c05['jnweH'](_0x390ba0['status'],'completed')?'✅':_0x390ba0[_0x56f2a3(0x136)]==='in_progress'?'🔄':'▶️';console[_0x56f2a3(0x153)](_0x16b002+'\x20Session\x20'+_0x390ba0['iteration']+'\x20('+_0x390ba0['id']+')'),console['log']('\x20\x20\x20Status:\x20'+_0x390ba0[_0x56f2a3(0x136)]),console['log'](_0x56f2a3(0x1fc)+new Date(_0x390ba0[_0x56f2a3(0x1a9)])['toLocaleString']()),_0x390ba0['completedAt']&&console[_0x56f2a3(0x153)](_0x56f2a3(0x18a)+new Date(_0x390ba0['completedAt'])[_0x56f2a3(0x204)]()),console[_0x56f2a3(0x153)]('');}}function _0x4a9d(_0x1d3707,_0x28572f){_0x1d3707=_0x1d3707-0x133;const _0x4e4b1b=_0x4e4b();let _0x4a9dde=_0x4e4b1b[_0x1d3707];return _0x4a9dde;}export async function featureAddScenario(_0x6f7955,_0x5d749e){const _0x299e1a=_0x4a9d,_0x3cf5e7={'ufYOh':function(_0x2fd4e2){return _0x2fd4e2();},'TAVlP':_0x299e1a(0x168),'aAoZM':function(_0x285bd9,_0x42fd5a){return _0x285bd9(_0x42fd5a);},'zFHAR':function(_0x4e3dfc,_0x3afcdd,_0x4f59ed){return _0x4e3dfc(_0x3afcdd,_0x4f59ed);}},_0x42903a=_0x5d749e||await _0x3cf5e7['ufYOh'](getActiveFeatureId);if(!_0x42903a)throw new Error(_0x3cf5e7['TAVlP']);const _0x260c02=await _0x3cf5e7['aAoZM'](getFeature,_0x42903a);if(_0x260c02[_0x299e1a(0x1b5)]&&!_0x260c02[_0x299e1a(0x1b5)]['submittedAt'])throw new Error('Cannot\x20add\x20scenario:\x20feature\x20review\x20has\x20an\x20active\x20review.\x20Please\x20finish\x20your\x20review\x20first:\x20'+_0x260c02['dashboardUrl']);await createChecklistItem(_0x42903a,_0x6f7955);const _0x32af0e=await _0x3cf5e7['aAoZM'](getFeature,_0x42903a);console[_0x299e1a(0x153)]('\x0a✅\x20Scenario\x20added'),_0x3cf5e7[_0x299e1a(0x157)](displayFeature,_0x32af0e,_0x32af0e[_0x299e1a(0x195)]);}export async function featureEditScenario(_0x8cd6e2,_0x37b7f3){const _0x57184b=_0x4a9d,_0x468c0b={'qyCwQ':function(_0x203d2c){return _0x203d2c();},'ocMDF':function(_0x1863bb,_0x5d63f3){return _0x1863bb(_0x5d63f3);},'NTaUL':_0x57184b(0x181),'yNgGI':function(_0x2565ea,_0x3312d4){return _0x2565ea===_0x3312d4;},'aMIho':_0x57184b(0x1a7),'NZGPf':function(_0x2e5a46,_0x6ba5a5){return _0x2e5a46<_0x6ba5a5;},'IUAAG':function(_0x33b29b,_0xb3e37f){return _0x33b29b+_0xb3e37f;},'dfSGo':function(_0x501687,_0x4e9919){return _0x501687+_0x4e9919;},'eruzq':function(_0x2dcb80,_0x1cfd5f,_0x56aa7c,_0x5adc23){return _0x2dcb80(_0x1cfd5f,_0x56aa7c,_0x5adc23);}},_0x5100e7=_0x37b7f3['id']||await _0x468c0b['qyCwQ'](getActiveFeatureId);!_0x5100e7&&(console['error']('\x0a❌\x20No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.'),console['error'](_0x57184b(0x190)),process[_0x57184b(0x1d2)](0x1));const _0x1a803a=await _0x468c0b['ocMDF'](getFeature,_0x5100e7);_0x1a803a[_0x57184b(0x1b5)]&&!_0x1a803a[_0x57184b(0x1b5)]['submittedAt']&&(console['error'](_0x468c0b[_0x57184b(0x154)]),console['error']('Please\x20finish\x20your\x20review\x20first:'),console['error']('\x20\x20'+_0x1a803a['dashboardUrl']),process['exit'](0x1));const _0x4fdad6=_0x1a803a[_0x57184b(0x195)]||[];_0x468c0b['yNgGI'](_0x4fdad6[_0x57184b(0x1dc)],0x0)&&(console['error'](_0x468c0b['aMIho']),process['exit'](0x1));if(_0x37b7f3['scenario']===undefined){console['error']('\x0a❌\x20No\x20scenario\x20number\x20provided.\x20Use\x20--scenario\x20<number>.'),console[_0x57184b(0x153)]('\x0aAvailable\x20scenarios:');for(let _0x3d0eda=0x0;_0x468c0b['NZGPf'](_0x3d0eda,_0x4fdad6[_0x57184b(0x1dc)]);_0x3d0eda++){console[_0x57184b(0x153)]('\x20\x20'+_0x468c0b[_0x57184b(0x184)](_0x3d0eda,0x1)+'.\x20'+_0x4fdad6[_0x3d0eda]['description']);}process['exit'](0x1);}const _0x202fb6=_0x37b7f3[_0x57184b(0x1e3)]-0x1;if(_0x202fb6<0x0||_0x202fb6>=_0x4fdad6[_0x57184b(0x1dc)]){console[_0x57184b(0x14f)]('\x0a❌\x20Invalid\x20scenario\x20index:\x20'+_0x37b7f3['scenario']+_0x57184b(0x1f2)+_0x4fdad6['length']+'\x20scenarios.'),console['log'](_0x57184b(0x194));for(let _0x425873=0x0;_0x425873<_0x4fdad6['length'];_0x425873++){console['log']('\x20\x20'+_0x468c0b[_0x57184b(0x1e0)](_0x425873,0x1)+'.\x20'+_0x4fdad6[_0x425873]['description']);}process[_0x57184b(0x1d2)](0x1);}const _0x39f165=_0x4fdad6[_0x202fb6];await _0x468c0b['eruzq'](updateChecklistItem,_0x5100e7,_0x39f165['id'],{'description':_0x8cd6e2});const _0x27cf58=await _0x468c0b['ocMDF'](getFeature,_0x5100e7);console[_0x57184b(0x153)](_0x57184b(0x1ba)),displayFeature(_0x27cf58,_0x27cf58[_0x57184b(0x195)]);}async function downloadFeedbackImage(_0x4523b4,_0x3cbb6f){const _0x5e658f=_0x4a9d,_0x59769e={'FADwy':function(_0x3fea25,_0x1ee634,_0x602055){return _0x3fea25(_0x1ee634,_0x602055);},'BDVVJ':function(_0x33097e){return _0x33097e();},'saiZP':function(_0x43e90e,_0x2c7950,_0x64c471){return _0x43e90e(_0x2c7950,_0x64c471);},'DOwHg':function(_0x119726,_0x2ebc06){return _0x119726(_0x2ebc06);}};try{const _0x10d25d=_0x59769e[_0x5e658f(0x203)](join,_0x59769e['BDVVJ'](getRangerDir),'feedback-images');await _0x59769e[_0x5e658f(0x198)](mkdir,_0x10d25d,{'recursive':!![]});const _0x4a867a=join(_0x10d25d,'comment_'+_0x3cbb6f+_0x5e658f(0x20b)),_0x295a4a=await _0x59769e['DOwHg'](fetch,_0x4523b4);if(!_0x295a4a['ok'])return null;const _0x390fb5=Buffer['from'](await _0x295a4a['arrayBuffer']());return await writeFile(_0x4a867a,_0x390fb5),_0x4a867a;}catch{return null;}}export async function featureGetReview(_0x290efc){const _0x543d3e=_0x4a9d,_0x43ac5f={'XecHG':function(_0x8e6fb0,_0xf832ce){return _0x8e6fb0(_0xf832ce);},'fAUsi':function(_0x590bb4,_0x513849){return _0x590bb4===_0x513849;},'qYjdh':function(_0x59278d,_0x3e6ecc){return _0x59278d>_0x3e6ecc;},'KbHtQ':function(_0x4ed241,_0x4ba37f){return _0x4ed241>_0x4ba37f;},'FFBRg':function(_0x52be06,_0x3fbbe1){return _0x52be06+_0x3fbbe1;},'AsFnw':_0x543d3e(0x15c),'XRRiA':_0x543d3e(0x1c9),'huCSS':function(_0x3243f4,_0x33bed4){return _0x3243f4+_0x33bed4;}},_0x58f3d9=_0x290efc||await getActiveFeatureId();if(!_0x58f3d9)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0x37fc0f=await _0x43ac5f[_0x543d3e(0x1b1)](getFeature,_0x58f3d9),{items:_0x4fd692}=await getActionItems(_0x58f3d9);console['log']('\x0a📋\x20Feedback\x20for:\x20'+_0x37fc0f[_0x543d3e(0x1df)]+'\x20('+_0x37fc0f['id']+')\x0a');if(_0x43ac5f[_0x543d3e(0x15a)](_0x4fd692['length'],0x0)){console[_0x543d3e(0x153)](_0x543d3e(0x1e5));return;}for(let _0x561469=0x0;_0x561469<_0x4fd692['length'];_0x561469++){const _0x19b22a=_0x4fd692[_0x561469],_0x7479a2=_0x43ac5f[_0x543d3e(0x134)](_0x19b22a['version'],0x1)?'\x20(v'+_0x19b22a[_0x543d3e(0x1ca)]+')':'',_0x4f71c1=await getItemFeedback(_0x58f3d9,_0x19b22a['id']);if(_0x43ac5f['KbHtQ'](_0x4f71c1['unaddressedComments'][_0x543d3e(0x1dc)],0x0)){console['log']('Scenario\x20'+_0x43ac5f[_0x543d3e(0x1b7)](_0x561469,0x1)+':\x20\x22'+_0x19b22a['description']+'\x22'+_0x7479a2+'\x20—\x20'+_0x4f71c1[_0x543d3e(0x1b2)][_0x543d3e(0x1dc)]+'\x20unaddressed\x20comment(s)');for(const _0x4381fc of _0x4f71c1[_0x543d3e(0x1b2)]){const _0x19de8d=new Date(_0x4381fc['createdAt'])[_0x543d3e(0x1f4)](_0x543d3e(0x160),{'month':'short','day':_0x43ac5f[_0x543d3e(0x152)]}),_0x191bb4=_0x4381fc['authorName']||_0x4381fc[_0x543d3e(0x20c)]||'Unknown';console[_0x543d3e(0x153)]('\x20\x20💬\x20'+_0x191bb4+'\x20('+_0x19de8d+'):\x20\x22'+_0x4381fc['content']+'\x22');if(_0x4381fc[_0x543d3e(0x159)]){const _0x2cd4dc=await downloadFeedbackImage(_0x4381fc[_0x543d3e(0x159)],_0x4381fc['id']);_0x2cd4dc&&console[_0x543d3e(0x153)](_0x543d3e(0x197)+_0x2cd4dc);}if(_0x4381fc[_0x543d3e(0x188)]){const _0x3be26c=_0x4381fc['domRef']['selector']['split'](_0x543d3e(0x1d6))['pop']()?.[_0x543d3e(0x146)](':')[0x0]||_0x43ac5f['XRRiA'],_0x5a8651=_0x4381fc[_0x543d3e(0x188)][_0x543d3e(0x1d1)]?'\x20\x22'+_0x4381fc[_0x543d3e(0x188)]['textContent']['slice'](0x0,0x3c)+'\x22':'';console['log']('\x20\x20\x20\x20\x20🎯\x20Element:\x20<'+_0x3be26c+'>'+_0x5a8651),console['log'](_0x543d3e(0x1b3)+_0x4381fc[_0x543d3e(0x188)]['selector']);}else{if(_0x4381fc['spatial']){const _0x214f3c=_0x4381fc[_0x543d3e(0x13e)][_0x543d3e(0x16b)];_0x4381fc['spatial']['type']==='point'&&_0x214f3c[_0x543d3e(0x1dc)]>=0x2?console['log'](_0x543d3e(0x17e)+_0x214f3c[0x0]['toFixed'](0x2)+',\x20'+_0x214f3c[0x1]['toFixed'](0x2)+')'):console[_0x543d3e(0x153)]('\x20\x20\x20\x20\x20📍\x20Annotation:\x20'+_0x4381fc[_0x543d3e(0x13e)][_0x543d3e(0x1a6)]+_0x543d3e(0x18b)+_0x214f3c['map'](_0x202d41=>_0x202d41['toFixed'](0x2))[_0x543d3e(0x1e2)](',\x20')+']');}}}if(_0x4f71c1[_0x543d3e(0x1e7)]){console[_0x543d3e(0x153)]('\x20\x20Expected\x20flow:');for(const _0x33737f of _0x4f71c1['canonicalFlow']['split']('\x0a')){console['log']('\x20\x20\x20\x20'+_0x33737f);}}}else console['log'](_0x543d3e(0x155)+_0x43ac5f[_0x543d3e(0x1a1)](_0x561469,0x1)+':\x20\x22'+_0x19b22a['description']+'\x22'+_0x7479a2+_0x543d3e(0x1b6)),console['log']('\x20\x20✅\x20No\x20feedback\x20to\x20address');console[_0x543d3e(0x153)]('');}}export async function featureDelete(_0x2c08d3){const _0x5b4aad=_0x4a9d,_0x59def4={'wdsuv':function(_0x5e91ae,_0x4202b4){return _0x5e91ae(_0x4202b4);},'VbXth':function(_0x2152e1,_0xeb906a){return _0x2152e1+_0xeb906a;}},_0x5df667=_0x2c08d3||await getActiveFeatureId();if(!_0x5df667)throw new Error('No\x20feature\x20review\x20ID\x20provided\x20and\x20no\x20active\x20feature\x20review\x20set.\x20Run:\x20ranger\x20resume\x20<id>\x20to\x20set\x20an\x20active\x20feature\x20review');const _0xb6a738=await _0x59def4[_0x5b4aad(0x1f1)](getFeature,_0x5df667);await _0x59def4['wdsuv'](softDeleteFeature,_0x5df667),console[_0x5b4aad(0x153)]('\x0a🗑️\x20\x20Deleted\x20feature\x20review:\x20'+_0xb6a738[_0x5b4aad(0x1df)]+'\x20('+_0x5df667+')'),console['log'](_0x59def4[_0x5b4aad(0x140)](_0x5b4aad(0x1eb),_0x5df667));}export async function featureRestore(_0x144e20){const _0x49c451=_0x4a9d,_0x285f17={'WCGwh':function(_0x453092,_0x15c70a){return _0x453092(_0x15c70a);},'takkK':function(_0x3e3966,_0x5b309f,_0x30bcf6){return _0x3e3966(_0x5b309f,_0x30bcf6);}};await restoreFeature(_0x144e20);const _0x4e980c=await _0x285f17['WCGwh'](getFeature,_0x144e20);console['log']('\x0a✅\x20Restored\x20feature\x20review:\x20'+_0x4e980c[_0x49c451(0x1df)]+'\x20('+_0x144e20+')'),_0x285f17['takkK'](displayFeature,_0x4e980c,_0x4e980c[_0x49c451(0x195)]);}
@@ -1 +1 @@
1
- (function(_0x37f15c,_0x48bbb4){const _0x4a17dc=_0x2529,_0x314c8d=_0x37f15c();while(!![]){try{const _0x485cf7=parseInt(_0x4a17dc(0x10c))/0x1+-parseInt(_0x4a17dc(0x10e))/0x2+parseInt(_0x4a17dc(0x11b))/0x3+-parseInt(_0x4a17dc(0x118))/0x4+parseInt(_0x4a17dc(0x116))/0x5+-parseInt(_0x4a17dc(0x115))/0x6*(parseInt(_0x4a17dc(0x10f))/0x7)+parseInt(_0x4a17dc(0x112))/0x8*(parseInt(_0x4a17dc(0x110))/0x9);if(_0x485cf7===_0x48bbb4)break;else _0x314c8d['push'](_0x314c8d['shift']());}catch(_0x3924e4){_0x314c8d['push'](_0x314c8d['shift']());}}}(_0x2517,0x9cff0));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';function _0x2529(_0x1b857d,_0x14d583){_0x1b857d=_0x1b857d-0x10c;const _0x251705=_0x2517();let _0x25291c=_0x251705[_0x1b857d];return _0x25291c;}function _0x2517(){const _0x3e20fc=['Unknown\x20hook:\x20','534766WRGYAL','3923129dneWYW','253719SJScsS','Valid\x20hooks:\x20','296RoTivG','exit','error','12dIxcym','3296790hoKRha','SIGTERM','3952916sssBvi','SIGHUP','once','2791686vDnhvN','386575GnzxQI'];_0x2517=function(){return _0x3e20fc;};return _0x2517();}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 _0x58a1ca=_0x2529,_0x3ad6ed={'cPZTp':_0x58a1ca(0x119)};if(cancellationHandlersInstalled)return;const _0xa47548=()=>{const _0x1ac24c=_0x58a1ca;process[_0x1ac24c(0x113)](0x0);};process['once']('SIGINT',_0xa47548),process['once'](_0x58a1ca(0x117),_0xa47548),process[_0x58a1ca(0x11a)](_0x3ad6ed['cPZTp'],_0xa47548),cancellationHandlersInstalled=!![];}export async function hook(_0x433932,_0x5ba2e5){const _0x28f58a=_0x2529;installCancellationHandlers();const _0x4e8587=HOOKS[_0x433932];if(!_0x4e8587){const _0x1b211c=Object['keys'](HOOKS)['join'](',\x20');console['error'](_0x28f58a(0x10d)+_0x433932),console[_0x28f58a(0x114)](_0x28f58a(0x111)+_0x1b211c),process[_0x28f58a(0x113)](0x1);}await _0x4e8587(_0x5ba2e5);}
1
+ (function(_0x1e4a3d,_0x3cfcea){const _0x61c3a3=_0x2a50,_0x42e269=_0x1e4a3d();while(!![]){try{const _0x1b7fd2=parseInt(_0x61c3a3(0xf5))/0x1*(parseInt(_0x61c3a3(0xea))/0x2)+-parseInt(_0x61c3a3(0xf3))/0x3+parseInt(_0x61c3a3(0xeb))/0x4*(-parseInt(_0x61c3a3(0xf0))/0x5)+-parseInt(_0x61c3a3(0xf6))/0x6*(-parseInt(_0x61c3a3(0xf2))/0x7)+parseInt(_0x61c3a3(0xe8))/0x8*(-parseInt(_0x61c3a3(0xf7))/0x9)+parseInt(_0x61c3a3(0xf4))/0xa+-parseInt(_0x61c3a3(0xe6))/0xb*(parseInt(_0x61c3a3(0xe5))/0xc);if(_0x1b7fd2===_0x3cfcea)break;else _0x42e269['push'](_0x42e269['shift']());}catch(_0x5163cf){_0x42e269['push'](_0x42e269['shift']());}}}(_0x3487,0x6c588));import{sessionStart,sessionEnd,preCompact,postEdit,planStart,planReminder,exitPlanMode,stopHook,enable,disable,autoPrompt}from'./hooks/index.js';const HOOKS={'session-start':sessionStart,'session-end':sessionEnd,'pre-compact':preCompact,'post-edit':postEdit,'plan-start':planStart,'plan-reminder':planReminder,'exit-plan-mode':exitPlanMode,'stop':stopHook,'enable':enable,'disable':disable,'auto-prompt':autoPrompt};let cancellationHandlersInstalled=![];function _0x2a50(_0x46bede,_0x613572){_0x46bede=_0x46bede-0xe5;const _0x348795=_0x3487();let _0x2a50a8=_0x348795[_0x46bede];return _0x2a50a8;}function installCancellationHandlers(){const _0x2265cc=_0x2a50,_0x6240d9={'sOQML':'SIGINT','lvQeh':'SIGTERM','BjkYH':'SIGHUP'};if(cancellationHandlersInstalled)return;const _0x3eda62=()=>{const _0x1bb06f=_0x2a50;process[_0x1bb06f(0xe9)](0x0);};process['once'](_0x6240d9['sOQML'],_0x3eda62),process[_0x2265cc(0xee)](_0x6240d9[_0x2265cc(0xe7)],_0x3eda62),process[_0x2265cc(0xee)](_0x6240d9[_0x2265cc(0xf8)],_0x3eda62),cancellationHandlersInstalled=!![];}export async function hook(_0x2ff947,_0xe4e196){const _0x4de47a=_0x2a50,_0x51fbde={'WUBqF':function(_0x29a830){return _0x29a830();},'fkItd':function(_0x1af1d7,_0x474e04){return _0x1af1d7(_0x474e04);}};_0x51fbde[_0x4de47a(0xf1)](installCancellationHandlers);const _0x17525a=HOOKS[_0x2ff947];if(!_0x17525a){const _0x2a1f2c=Object[_0x4de47a(0xec)](HOOKS)['join'](',\x20');console['error'](_0x4de47a(0xed)+_0x2ff947),console[_0x4de47a(0xef)]('Valid\x20hooks:\x20'+_0x2a1f2c),process['exit'](0x1);}await _0x51fbde['fkItd'](_0x17525a,_0xe4e196);}function _0x3487(){const _0x286a8c=['Unknown\x20hook:\x20','once','error','505ExlNHI','WUBqF','14sclNOe','758472vucZSB','6447280aNrWvy','202eyInvS','2069850jvMgPh','9VAqOAL','BjkYH','44124XXHfen','682SXQjkC','lvQeh','3297736AQiewW','exit','194jEvVjD','692PwqHDy','keys'];_0x3487=function(){return _0x286a8c;};return _0x3487();}
@@ -1 +1 @@
1
- (function(_0x25e3a3,_0x581612){const _0x3deffd=_0x3e23,_0x5c55d3=_0x25e3a3();while(!![]){try{const _0x439658=parseInt(_0x3deffd(0x147))/0x1+parseInt(_0x3deffd(0x14b))/0x2*(-parseInt(_0x3deffd(0x146))/0x3)+parseInt(_0x3deffd(0x14f))/0x4+-parseInt(_0x3deffd(0x14e))/0x5+-parseInt(_0x3deffd(0x148))/0x6+parseInt(_0x3deffd(0x150))/0x7+parseInt(_0x3deffd(0x145))/0x8*(-parseInt(_0x3deffd(0x14d))/0x9);if(_0x439658===_0x581612)break;else _0x5c55d3['push'](_0x5c55d3['shift']());}catch(_0x2db212){_0x5c55d3['push'](_0x5c55d3['shift']());}}}(_0x373e,0xbc032));import{readHookInput}from'./output.js';import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';function _0x3e23(_0x4b5a18,_0x4ecbb9){_0x4b5a18=_0x4b5a18-0x145;const _0x373e0b=_0x373e();let _0x3e2372=_0x373e0b[_0x4b5a18];return _0x3e2372;}const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';function _0x373e(){const _0x5a800f=['session_id','3123027kqwIOW','376385XVqtUK','2090296wrRDMi','2418640dcYeiF','8NnGGbd','177UHNduq','1525104yvUcrb','6738702lySLPU','log','TvRDQ','2634fwYTAl'];_0x373e=function(){return _0x5a800f;};return _0x373e();}export async function autoPrompt(){const _0x1d9cb7=_0x3e23,_0x177cfa={'TvRDQ':function(_0x581e95,_0x2a554f){return _0x581e95(_0x2a554f);}},_0x91bca3=await readHookInput(),_0xeaa04c=_0x91bca3?.[_0x1d9cb7(0x14c)];if(!_0xeaa04c)return;if(isSessionEnabled(_0xeaa04c)||_0x177cfa[_0x1d9cb7(0x14a)](hasSessionBeenPrompted,_0xeaa04c))return;markSessionPrompted(_0xeaa04c),console[_0x1d9cb7(0x149)](AUTO_PROMPT_TEXT);}
1
+ (function(_0x414ff4,_0x49be0a){const _0x54d831=_0x2125,_0x53ba18=_0x414ff4();while(!![]){try{const _0xf165de=parseInt(_0x54d831(0x1a2))/0x1*(-parseInt(_0x54d831(0x1a4))/0x2)+parseInt(_0x54d831(0x1a1))/0x3+-parseInt(_0x54d831(0x1a3))/0x4*(-parseInt(_0x54d831(0x19b))/0x5)+-parseInt(_0x54d831(0x19d))/0x6+-parseInt(_0x54d831(0x1a8))/0x7+-parseInt(_0x54d831(0x1a7))/0x8*(-parseInt(_0x54d831(0x1a6))/0x9)+parseInt(_0x54d831(0x1a5))/0xa*(-parseInt(_0x54d831(0x19e))/0xb);if(_0xf165de===_0x49be0a)break;else _0x53ba18['push'](_0x53ba18['shift']());}catch(_0x4470b4){_0x53ba18['push'](_0x53ba18['shift']());}}}(_0x393c,0x597d2));import{readHookInput}from'./output.js';function _0x393c(){const _0x4cfac7=['97rRqNFs','1400396tsCWxQ','2194HwmIdF','286790USTvyS','99SoIOxn','164856yvQKjS','577654RdZDuj','5nqxjyF','dSsiU','1192854WlUWCy','22XpvnoD','log','oBwdh','704604EVTucK'];_0x393c=function(){return _0x4cfac7;};return _0x393c();}import{isSessionEnabled,hasSessionBeenPrompted,markSessionPrompted}from'../utils/sessionCache.js';const AUTO_PROMPT_TEXT='\x0a🚨\x20🚨\x20[ACTION\x20REQUIRED]\x20🚨\x20🚨\x0aBefore\x20responding\x20to\x20the\x20user\x27s\x20message,\x20consider\x20whether\x20this\x20task\x20will\x20involve\x20ANY\x20frontend,\x20UI,\x20or\x20browser\x20work.\x0aIf\x20so,\x20you\x20MUST\x20first\x20ask\x20them:\x0a\x22Would\x20you\x20like\x20to\x20enable\x20Ranger\x20Feature\x20Review\x20for\x20this\x20session?\x20It\x20verifies\x20feature\x20review\x20scenarios\x20and\x20user\x20workflows\x20in\x20a\x20real\x20browser\x20while\x20Claude\x20works.\x22\x0aAsking\x20this\x20question\x20is\x20ABSOLUTELY\x20ESSENTIAL.\x20DO\x20NOT\x20SKIP\x20THIS\x20STEP.\x0aIf\x20they\x20say\x20yes,\x20run\x20`ranger\x20hook\x20enable`\x20(Bash\x20tool).\x0aIf\x20they\x20say\x20no,\x20say\x20\x22Sounds\x20good.\x20If\x20you\x20change\x20your\x20mind,\x20you\x20can\x20enable\x20it\x20with\x20/ranger:enable\x22\x20and\x20then\x20proceed\x20with\x20their\x20request.\x0aThis\x20is\x20mandatory\x20—\x20do\x20not\x20skip\x20this\x20step.';function _0x2125(_0x533534,_0x431ada){_0x533534=_0x533534-0x19b;const _0x393c10=_0x393c();let _0x21259e=_0x393c10[_0x533534];return _0x21259e;}export async function autoPrompt(){const _0x49e19b=_0x2125,_0x3be4e6={'dSsiU':function(_0x297036){return _0x297036();},'oBwdh':function(_0x3c9678,_0x3b5c4a){return _0x3c9678(_0x3b5c4a);},'zSSlh':function(_0x39134d,_0x4a50da){return _0x39134d(_0x4a50da);},'hBzGS':function(_0x35eb1e,_0x57d77f){return _0x35eb1e(_0x57d77f);}},_0x4b3b42=await _0x3be4e6[_0x49e19b(0x19c)](readHookInput),_0x3e0b21=_0x4b3b42?.['session_id'];if(!_0x3e0b21)return;if(_0x3be4e6[_0x49e19b(0x1a0)](isSessionEnabled,_0x3e0b21)||_0x3be4e6['zSSlh'](hasSessionBeenPrompted,_0x3e0b21))return;_0x3be4e6['hBzGS'](markSessionPrompted,_0x3e0b21),console[_0x49e19b(0x19f)](AUTO_PROMPT_TEXT);}
@@ -1 +1 @@
1
- (function(_0x1b65dd,_0x17bb2a){const _0x59568a=_0x2f4f,_0x4af520=_0x1b65dd();while(!![]){try{const _0xddfcf2=parseInt(_0x59568a(0x10e))/0x1*(parseInt(_0x59568a(0x10b))/0x2)+parseInt(_0x59568a(0x10f))/0x3*(parseInt(_0x59568a(0x110))/0x4)+parseInt(_0x59568a(0x11a))/0x5*(parseInt(_0x59568a(0x11b))/0x6)+-parseInt(_0x59568a(0x116))/0x7+-parseInt(_0x59568a(0x10d))/0x8*(parseInt(_0x59568a(0x118))/0x9)+-parseInt(_0x59568a(0x115))/0xa+-parseInt(_0x59568a(0x117))/0xb;if(_0xddfcf2===_0x17bb2a)break;else _0x4af520['push'](_0x4af520['shift']());}catch(_0x470bec){_0x4af520['push'](_0x4af520['shift']());}}}(_0x5c98,0x7cb1e));function _0x5c98(){const _0x2b1328=['492915Rknkgo','20VWoEWe','tlyTC','CLAUDE_SESSION_ID','JCMLJ','.\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`.','2307750Xrrcgg','2167655OOuIZh','267135pVwNhu','7988211fsiZWf','main','704315LBtGyv','42jztjOT','344JXnkay','oUQLD','8QbUzuv','904nXKPqy'];_0x5c98=function(){return _0x2b1328;};return _0x5c98();}function _0x2f4f(_0x393411,_0x5617ee){_0x393411=_0x393411-0x10b;const _0x5c983e=_0x5c98();let _0x2f4f58=_0x5c983e[_0x393411];return _0x2f4f58;}import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';import{printBlock}from'./output.js';export async function disable(_0x1bc4ed){const _0x198177=_0x2f4f,_0x34c35c={'JCMLJ':function(_0x33a640){return _0x33a640();},'tlyTC':'master','oUQLD':function(_0x41a27f,_0x1f9de1){return _0x41a27f(_0x1f9de1);},'MRSus':function(_0x2e4f1c,_0x2cc5cd){return _0x2e4f1c!==_0x2cc5cd;},'smrcU':_0x198177(0x119)},_0x3519bc=_0x1bc4ed||process['env'][_0x198177(0x112)]||'';_0x3519bc&&disableSession(_0x3519bc);const _0x2e91b0=_0x34c35c[_0x198177(0x113)](getCurrentBranch);_0x2e91b0&&_0x2e91b0!=='main'&&_0x2e91b0!==_0x34c35c[_0x198177(0x111)]&&_0x34c35c[_0x198177(0x10c)](disableBranch,_0x2e91b0),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x2e91b0&&_0x34c35c['MRSus'](_0x2e91b0,_0x34c35c['smrcU'])&&_0x2e91b0!==_0x34c35c[_0x198177(0x111)]?'\x20and\x20branch\x20\x27'+_0x2e91b0+'\x27':'')+_0x198177(0x114));}
1
+ (function(_0x4c80fa,_0x58e707){const _0x5db322=_0x21b2,_0x43dff3=_0x4c80fa();while(!![]){try{const _0x123b9c=-parseInt(_0x5db322(0xc6))/0x1*(-parseInt(_0x5db322(0xc0))/0x2)+-parseInt(_0x5db322(0xbb))/0x3+-parseInt(_0x5db322(0xc1))/0x4+-parseInt(_0x5db322(0xc2))/0x5+-parseInt(_0x5db322(0xbc))/0x6+-parseInt(_0x5db322(0xbf))/0x7+parseInt(_0x5db322(0xc5))/0x8;if(_0x123b9c===_0x58e707)break;else _0x43dff3['push'](_0x43dff3['shift']());}catch(_0x3f0084){_0x43dff3['push'](_0x43dff3['shift']());}}}(_0x5d83,0x3d8a4));import{disableSession,disableBranch,getCurrentBranch}from'../utils/sessionCache.js';function _0x21b2(_0x148ff7,_0x89081a){_0x148ff7=_0x148ff7-0xbb;const _0x5d83fb=_0x5d83();let _0x21b22a=_0x5d83fb[_0x148ff7];return _0x21b22a;}import{printBlock}from'./output.js';function _0x5d83(){const _0x55b866=['438364gzdCvs','380210lPfOVc','lbBdg','RKCwA','9622824yXFjYf','52414wCTnZw','main','582045IdonrN','2750088wxnsRP','env','\x20and\x20branch\x20\x27','2624013njrwlo','10sNPScb'];_0x5d83=function(){return _0x55b866;};return _0x5d83();}export async function disable(_0x34275f){const _0x458c3f=_0x21b2,_0x47020b={'RKCwA':function(_0x2ed167,_0x4d226f){return _0x2ed167(_0x4d226f);},'ubeqT':function(_0x33f3a8){return _0x33f3a8();},'lbBdg':_0x458c3f(0xc7)},_0x5a35ac=_0x34275f||process[_0x458c3f(0xbd)]['CLAUDE_SESSION_ID']||'';_0x5a35ac&&_0x47020b[_0x458c3f(0xc4)](disableSession,_0x5a35ac);const _0x54151d=_0x47020b['ubeqT'](getCurrentBranch);_0x54151d&&_0x54151d!==_0x47020b[_0x458c3f(0xc3)]&&_0x54151d!=='master'&&disableBranch(_0x54151d),printBlock('#\x20RANGER\x20DISABLED\x0a\x0aThe\x20user\x20has\x20expressly\x20disabled\x20Ranger\x20hooks\x20for\x20this\x20session'+(_0x54151d&&_0x54151d!==_0x458c3f(0xc7)&&_0x54151d!=='master'?_0x458c3f(0xbe)+_0x54151d+'\x27':'')+'.\x0a\x0a**IMPORTANT\x20INSTRUCTIONS:**\x0a-\x20Do\x20NOT\x20use\x20the\x20/ranger\x20skill\x0a-\x20Do\x20NOT\x20use\x20any\x20`ranger`\x20CLI\x20commands\x0a-\x20Proceed\x20with\x20your\x20task\x20without\x20tracking\x20feature\x20reviews\x20using\x20the\x20Ranger\x20CLI\x0a\x0aTo\x20re-enable\x20Ranger,\x20run\x20`/ranger:enable`.');}
@@ -1 +1 @@
1
- function _0x2760(_0x8cf6ab,_0x57832b){_0x8cf6ab=_0x8cf6ab-0xb0;const _0x2afd9a=_0x2afd();let _0x276080=_0x2afd9a[_0x8cf6ab];return _0x276080;}function _0x2afd(){const _0x22d83a=['2460696BLXqZZ','OOlBr','rrfWZ','\x0a\x0a**Branch\x20\x27','XrQgD','715274LRhmPx','master','rwJOz','309895qWCVGz','1211wQgIXe','\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`.','13918560QZqveX','571683aGBLgG','rakRt','9102gizDfp','132975ExHbmd','CLAUDE_SESSION_ID','ranger\x20setup\x20--opencode','IMlXA'];_0x2afd=function(){return _0x22d83a;};return _0x2afd();}(function(_0x5e6899,_0x598f96){const _0x549f55=_0x2760,_0x40ca9c=_0x5e6899();while(!![]){try{const _0x3b4b58=-parseInt(_0x549f55(0xc2))/0x1+-parseInt(_0x549f55(0xbb))/0x2+-parseInt(_0x549f55(0xb2))/0x3+-parseInt(_0x549f55(0xb6))/0x4+-parseInt(_0x549f55(0xbe))/0x5+-parseInt(_0x549f55(0xb1))/0x6*(-parseInt(_0x549f55(0xbf))/0x7)+parseInt(_0x549f55(0xc1))/0x8;if(_0x3b4b58===_0x598f96)break;else _0x40ca9c['push'](_0x40ca9c['shift']());}catch(_0x3b1557){_0x40ca9c['push'](_0x40ca9c['shift']());}}}(_0x2afd,0x55ce7));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';import{update}from'../update.js';export async function enable(_0x4a383c){const _0x31244e=_0x2760,_0x16c9cd={'OOlBr':function(_0x594f08,_0x28cdd6){return _0x594f08(_0x28cdd6);},'rakRt':_0x31244e(0xb4),'XrQgD':'ranger\x20setup','rrfWZ':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.','rwJOz':function(_0x3ed1ad){return _0x3ed1ad();},'jQZha':function(_0x246a13){return _0x246a13();},'IMlXA':function(_0x212442,_0x32e3ce){return _0x212442(_0x32e3ce);}},_0x43c323=_0x4a383c||process['env'][_0x31244e(0xb3)]||'',_0xf1f8ff=_0x16c9cd[_0x31244e(0xb7)](Boolean,_0x4a383c),_0x37511f=await getToken();if(!_0x37511f){const _0x2217da=_0xf1f8ff?_0x16c9cd[_0x31244e(0xb0)]:_0x16c9cd[_0x31244e(0xba)],_0x1a9f54=_0xf1f8ff?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':_0x16c9cd[_0x31244e(0xb8)];printBlock('#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x2217da+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x1a9f54);return;}try{await _0x16c9cd[_0x31244e(0xbd)](update);}catch{}_0x43c323&&enableSession(_0x43c323);const _0x1efa75=getCurrentBranch(),_0x3124f7=_0x1efa75&&_0x1efa75!=='main'&&_0x1efa75!==_0x31244e(0xbc)?_0x31244e(0xb9)+_0x1efa75+'\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.':'',_0x50adf4=_0x16c9cd['jQZha'](getRangerSkillContent);_0x16c9cd[_0x31244e(0xb5)](printBlock,'#\x20RANGER\x20ENABLED'+_0x3124f7+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x50adf4+_0x31244e(0xc0));}
1
+ (function(_0x610912,_0x467594){const _0x4c5188=_0x60f6,_0x7b2927=_0x610912();while(!![]){try{const _0x1579ab=parseInt(_0x4c5188(0x1c5))/0x1*(parseInt(_0x4c5188(0x1c7))/0x2)+parseInt(_0x4c5188(0x1c0))/0x3+parseInt(_0x4c5188(0x1bd))/0x4*(parseInt(_0x4c5188(0x1bc))/0x5)+parseInt(_0x4c5188(0x1c9))/0x6*(parseInt(_0x4c5188(0x1cb))/0x7)+parseInt(_0x4c5188(0x1c6))/0x8+parseInt(_0x4c5188(0x1cc))/0x9*(parseInt(_0x4c5188(0x1c2))/0xa)+parseInt(_0x4c5188(0x1c8))/0xb*(-parseInt(_0x4c5188(0x1ca))/0xc);if(_0x1579ab===_0x467594)break;else _0x7b2927['push'](_0x7b2927['shift']());}catch(_0x46e127){_0x7b2927['push'](_0x7b2927['shift']());}}}(_0x3339,0x7b0a7));import{enableSession,getCurrentBranch}from'../utils/sessionCache.js';function _0x3339(){const _0x3ccb7e=['7817048fAjEMv','631252WdCwTa','82214ckRmoJ','5298852INuBfK','5460gHvEJo','7dWKMcg','1744731RpvESJ','master','25eANQVo','422940DtEzde','\x27\x20is\x20now\x20enabled**\x20-\x20Ranger\x20will\x20stay\x20active\x20on\x20this\x20branch\x20across\x20sessions.','\x0a\x0a**Branch\x20\x27','543303wrTyRY','\x0a\x0a##\x20Quick\x20Reference\x0a\x0a**In\x20plan\x20mode:**\x20Include\x20Ranger\x20Feature\x20Review\x20Specification\x20at\x20end\x20of\x20plan.\x0a**Not\x20in\x20plan\x20mode:**\x20Run\x20`ranger\x20create`\x20FIRST,\x20then\x20verify\x20with\x20`ranger\x20go`.','20AdTPiw','aGwFU','dqYbJ','3sGWQkG'];_0x3339=function(){return _0x3ccb7e;};return _0x3339();}import{getToken}from'../utils/keychain.js';import{getRangerSkillContent}from'../utils/skillContent.js';import{printBlock}from'./output.js';function _0x60f6(_0x54333b,_0x20c1f2){_0x54333b=_0x54333b-0x1bc;const _0x33399f=_0x3339();let _0x60f664=_0x33399f[_0x54333b];return _0x60f664;}import{update}from'../update.js';export async function enable(_0x438c88){const _0x140d03=_0x60f6,_0x318242={'tjQMP':'ranger\x20setup\x20--opencode','aGwFU':function(_0x3764fa){return _0x3764fa();},'dqYbJ':function(_0x330d3,_0x5bc2f1){return _0x330d3(_0x5bc2f1);},'iIWHj':function(_0x7c6a01,_0x205d08){return _0x7c6a01!==_0x205d08;},'bWVjS':_0x140d03(0x1cd)},_0x8004f7=_0x438c88||process['env']['CLAUDE_SESSION_ID']||'',_0x365050=Boolean(_0x438c88),_0x449987=await getToken();if(!_0x449987){const _0x45ac8b=_0x365050?_0x318242['tjQMP']:'ranger\x20setup',_0x38771a=_0x365050?'Restart\x20your\x20OpenCode\x20session\x20after\x20setup.':'Restart\x20your\x20Claude\x20Code\x20session\x20after\x20setup.';printBlock('#\x20RANGER\x20SETUP\x20REQUIRED\x0a\x0aThe\x20Ranger\x20CLI\x20is\x20not\x20configured.\x20To\x20get\x20started:\x0a\x0a1.\x20Install:\x20`npm\x20install\x20-g\x20@ranger-testing/ranger-cli`\x0a2.\x20Run:\x20`'+_0x45ac8b+'`\x0a\x0aA\x20browser\x20will\x20open\x20for\x20authentication.\x20A\x20human\x20needs\x20to\x20complete\x20the\x20login.\x0a'+_0x38771a);return;}try{await _0x318242[_0x140d03(0x1c3)](update);}catch{}_0x8004f7&&_0x318242[_0x140d03(0x1c4)](enableSession,_0x8004f7);const _0x5af3ae=_0x318242[_0x140d03(0x1c3)](getCurrentBranch),_0x5dfd03=_0x5af3ae&&_0x5af3ae!=='main'&&_0x318242['iIWHj'](_0x5af3ae,_0x318242['bWVjS'])?_0x140d03(0x1bf)+_0x5af3ae+_0x140d03(0x1be):'',_0x15fc6d=_0x318242[_0x140d03(0x1c3)](getRangerSkillContent);printBlock('#\x20RANGER\x20ENABLED'+_0x5dfd03+'\x0a\x0a**For\x20ANY\x20UI\x20work,\x20you\x20MUST\x20use\x20the\x20/ranger\x20skill.**\x0a\x0a'+_0x15fc6d+_0x140d03(0x1c1));}
@@ -1 +1 @@
1
- (function(_0x38c2aa,_0x39bedf){const _0x3b6e29=_0x168b,_0x23e79a=_0x38c2aa();while(!![]){try{const _0x5e3450=-parseInt(_0x3b6e29(0x160))/0x1+parseInt(_0x3b6e29(0x161))/0x2*(parseInt(_0x3b6e29(0x165))/0x3)+parseInt(_0x3b6e29(0x15b))/0x4*(parseInt(_0x3b6e29(0x167))/0x5)+-parseInt(_0x3b6e29(0x15c))/0x6*(-parseInt(_0x3b6e29(0x15d))/0x7)+-parseInt(_0x3b6e29(0x164))/0x8*(-parseInt(_0x3b6e29(0x166))/0x9)+-parseInt(_0x3b6e29(0x15e))/0xa+-parseInt(_0x3b6e29(0x15f))/0xb*(parseInt(_0x3b6e29(0x162))/0xc);if(_0x5e3450===_0x39bedf)break;else _0x23e79a['push'](_0x23e79a['shift']());}catch(_0x9ea463){_0x23e79a['push'](_0x23e79a['shift']());}}}(_0x1b8c,0xa9ea4));function _0x168b(_0x3eede5,_0x374d90){_0x3eede5=_0x3eede5-0x15a;const _0x1b8c9b=_0x1b8c();let _0x168bf6=_0x1b8c9b[_0x3eede5];return _0x168bf6;}import{printBlock,getEnabledSessionId}from'./output.js';function _0x1b8c(){const _0x4165af=['539NTuSSs','329767aQpaku','6jRPLcj','353676dToFZF','===\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===','64QYWfGK','1183590DHwUaI','907587QevOWT','142845sjHDiT','VBsCw','12YjqwTL','1686bKgBvf','27202squSFz','6980910LyhHyk'];_0x1b8c=function(){return _0x4165af;};return _0x1b8c();}export async function exitPlanMode(_0x2608f4){const _0x449609=_0x168b,_0x2811b2={'VBsCw':function(_0xbfb7a0,_0x59a000){return _0xbfb7a0(_0x59a000);}},_0x36d663=await _0x2811b2[_0x449609(0x15a)](getEnabledSessionId,_0x2608f4);if(!_0x36d663)return;printBlock(_0x449609(0x163));}
1
+ (function(_0x5add8c,_0x3fdc98){const _0x50650a=_0x4a2e,_0x50abb1=_0x5add8c();while(!![]){try{const _0x598f8a=parseInt(_0x50650a(0x18f))/0x1+parseInt(_0x50650a(0x18d))/0x2*(parseInt(_0x50650a(0x191))/0x3)+parseInt(_0x50650a(0x18e))/0x4+-parseInt(_0x50650a(0x190))/0x5+-parseInt(_0x50650a(0x18b))/0x6+-parseInt(_0x50650a(0x18c))/0x7+parseInt(_0x50650a(0x18a))/0x8*(parseInt(_0x50650a(0x189))/0x9);if(_0x598f8a===_0x3fdc98)break;else _0x50abb1['push'](_0x50abb1['shift']());}catch(_0x4c2f3a){_0x50abb1['push'](_0x50abb1['shift']());}}}(_0x744d,0xd3cd1));import{printBlock,getEnabledSessionId}from'./output.js';function _0x4a2e(_0x2855e3,_0x464977){_0x2855e3=_0x2855e3-0x189;const _0x744df3=_0x744d();let _0x4a2ec8=_0x744df3[_0x2855e3];return _0x4a2ec8;}export async function exitPlanMode(_0x58be44){const _0x30cbfd=_0x4a2e,_0xa7abbe={'PWwqM':function(_0x26cf62,_0xafec4){return _0x26cf62(_0xafec4);}},_0x2503b1=await _0xa7abbe[_0x30cbfd(0x192)](getEnabledSessionId,_0x58be44);if(!_0x2503b1)return;_0xa7abbe['PWwqM'](printBlock,'===\x20RANGER:\x20CREATE\x20FEATURE\x20REVIEW\x20NOW\x20===\x0a\x0aYou\x20are\x20about\x20to\x20exit\x20plan\x20mode.\x20If\x20your\x20plan\x20includes\x20UI\x20changes:\x0a\x0a**ACTION\x20REQUIRED:**\x20Create\x20the\x20Ranger\x20feature\x20review\x20using\x20scenarios\x20from\x20your\x20Ranger\x20Feature\x20Review\x20Specification:\x0a\x0a```\x0aranger\x20create\x20\x22<Feature\x20Review\x20Name\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-d\x20\x22<Description\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x201\x20from\x20plan>\x22\x20\x5c\x0a\x20\x20-c\x20\x22<Scenario\x202\x20from\x20plan>\x22\x0a```\x0a\x0a**REMINDER:**\x20Scenarios\x20must\x20be\x20E2E\x20user\x20flows,\x20NOT\x20implementation\x20tasks.\x0a\x0a**Good:**\x20\x22User\x20can\x20log\x20in\x20with\x20valid\x20credentials\x20and\x20see\x20dashboard\x22\x0a**Bad:**\x20\x22Add\x20form\x20validation\x22\x20or\x20\x22API\x20returns\x20200\x22\x0a\x0aIf\x20you\x20did\x20NOT\x20include\x20a\x20Ranger\x20Feature\x20Review\x20Specification\x20in\x20your\x20plan,\x20go\x20back\x20and\x20add\x20one\x20before\x20proceeding.\x20See\x20/ranger\x20and\x20create.md\x20for\x20guidance.\x0a\x0a===\x20END\x20===');}function _0x744d(){const _0x199b6c=['743015GpeoYs','3151895fWALSW','104352ejZiVd','PWwqM','13977nQKqLy','6176fMgUtS','6928584oLSVSy','4884803txxrJG','2FCMjKs','5495176dmfqAU'];_0x744d=function(){return _0x199b6c;};return _0x744d();}
@@ -1 +1 @@
1
- (function(_0xa13a30,_0x88cdfe){var _0x1d4b49=_0x4f2a,_0x506de5=_0xa13a30();while(!![]){try{var _0x35e566=-parseInt(_0x1d4b49(0x1ab))/0x1*(parseInt(_0x1d4b49(0x1ad))/0x2)+parseInt(_0x1d4b49(0x1ac))/0x3+parseInt(_0x1d4b49(0x1b0))/0x4+parseInt(_0x1d4b49(0x1b2))/0x5*(parseInt(_0x1d4b49(0x1a9))/0x6)+parseInt(_0x1d4b49(0x1a8))/0x7*(parseInt(_0x1d4b49(0x1aa))/0x8)+-parseInt(_0x1d4b49(0x1ae))/0x9*(-parseInt(_0x1d4b49(0x1af))/0xa)+-parseInt(_0x1d4b49(0x1b1))/0xb;if(_0x35e566===_0x88cdfe)break;else _0x506de5['push'](_0x506de5['shift']());}catch(_0x5050d8){_0x506de5['push'](_0x506de5['shift']());}}}(_0x2cf6,0x3a6dc));function _0x2cf6(){var _0x2e05f4=['10793dUaQUl','191622yoQtzP','46lhwJVT','2097qiUIac','14890PBSsOy','962648hGFrLp','8912387yLjbZs','25FzviiK','4312JDLYtD','556026kCdJGI','2376zElHzZ'];_0x2cf6=function(){return _0x2e05f4;};return _0x2cf6();}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 _0x4f2a(_0x48c376,_0x526077){_0x48c376=_0x48c376-0x1a8;var _0x2cf62d=_0x2cf6();var _0x4f2a5f=_0x2cf62d[_0x48c376];return _0x4f2a5f;}export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
1
+ (function(_0x573372,_0x4288b6){var _0x41ba2b=_0x22b5,_0x4803b0=_0x573372();while(!![]){try{var _0x3f6bfa=-parseInt(_0x41ba2b(0x1e5))/0x1+-parseInt(_0x41ba2b(0x1e2))/0x2*(-parseInt(_0x41ba2b(0x1e7))/0x3)+parseInt(_0x41ba2b(0x1ea))/0x4*(parseInt(_0x41ba2b(0x1e4))/0x5)+parseInt(_0x41ba2b(0x1e6))/0x6*(-parseInt(_0x41ba2b(0x1e1))/0x7)+parseInt(_0x41ba2b(0x1e9))/0x8*(parseInt(_0x41ba2b(0x1e3))/0x9)+parseInt(_0x41ba2b(0x1ec))/0xa+-parseInt(_0x41ba2b(0x1e8))/0xb*(parseInt(_0x41ba2b(0x1eb))/0xc);if(_0x3f6bfa===_0x4288b6)break;else _0x4803b0['push'](_0x4803b0['shift']());}catch(_0x49cd71){_0x4803b0['push'](_0x4803b0['shift']());}}}(_0x190d,0x57cc7));export{sessionStart}from'./sessionStart.js';export{sessionEnd}from'./sessionEnd.js';export{preCompact}from'./preCompact.js';export{postEdit}from'./postEdit.js';export{planStart}from'./planStart.js';export{planReminder}from'./planReminder.js';export{exitPlanMode}from'./exitPlanMode.js';function _0x190d(){var _0x5dc564=['187nuAqxf','569816xMXLwW','4liITrq','1065804PhdzUF','5900890AycsJR','145187AjOhFk','6WYznfT','63KJiHEd','2298570GvEKxe','112306GvyUIs','78yelKHL','703059IWPyjD'];_0x190d=function(){return _0x5dc564;};return _0x190d();}function _0x22b5(_0x358099,_0x1c625a){_0x358099=_0x358099-0x1e1;var _0x190d10=_0x190d();var _0x22b563=_0x190d10[_0x358099];return _0x22b563;}export{stopHook}from'./stopHook.js';export{enable}from'./enable.js';export{disable}from'./disable.js';export{autoPrompt}from'./autoPrompt.js';
@@ -1 +1 @@
1
- (function(_0x205cc8,_0x65ae3c){const _0x46942f=_0x170d,_0x65af2e=_0x205cc8();while(!![]){try{const _0x2a2dd3=-parseInt(_0x46942f(0xad))/0x1*(-parseInt(_0x46942f(0xab))/0x2)+parseInt(_0x46942f(0xae))/0x3+parseInt(_0x46942f(0xb8))/0x4*(-parseInt(_0x46942f(0xb1))/0x5)+-parseInt(_0x46942f(0xb3))/0x6+-parseInt(_0x46942f(0xb5))/0x7*(parseInt(_0x46942f(0xb4))/0x8)+-parseInt(_0x46942f(0xac))/0x9*(parseInt(_0x46942f(0xb2))/0xa)+parseInt(_0x46942f(0xb0))/0xb;if(_0x2a2dd3===_0x65ae3c)break;else _0x65af2e['push'](_0x65af2e['shift']());}catch(_0x4f9a7d){_0x65af2e['push'](_0x65af2e['shift']());}}}(_0x3879,0xb7701));import{isSessionEnabled}from'../utils/sessionCache.js';function _0x170d(_0x245dd3,_0x3918d0){_0x245dd3=_0x245dd3-0xab;const _0x387918=_0x3879();let _0x170de7=_0x387918[_0x245dd3];return _0x170de7;}export function printBlock(_0x5f171a){console['log'](_0x5f171a);}function _0x3879(){const _0x3720a8=['session_id','6508bTrBBc','6551991VbOQYs','292xgpxJC','1866951WHhHXi','trim','27907737MYGZhT','5025030VOsifO','20VYfMoa','720270bopLwq','16HSeXOf','2719997JvvMzs','parse','gvgRM','4GfNbel'];_0x3879=function(){return _0x3720a8;};return _0x3879();}export async function readHookInput(){const _0x5537dd=_0x170d;let _0xbc36bc='';try{for await(const _0x6b8d0d of process['stdin']){_0xbc36bc+=_0x6b8d0d;}}catch{return null;}if(!_0xbc36bc[_0x5537dd(0xaf)]())return null;try{return JSON[_0x5537dd(0xb6)](_0xbc36bc);}catch{return null;}}export async function getEnabledSessionId(_0x38083a){const _0x1b3632=_0x170d,_0x159e7d={'STbui':function(_0x2f1bb7,_0x525dfa){return _0x2f1bb7(_0x525dfa);}};if(_0x38083a)return _0x159e7d['STbui'](isSessionEnabled,_0x38083a)?_0x38083a:null;const _0x2127ce=await readHookInput(),_0x15309d=_0x2127ce?.[_0x1b3632(0xb9)];if(!_0x15309d||!isSessionEnabled(_0x15309d))return null;return _0x15309d;}export async function getEnabledHookContext(_0xa9862a){const _0x5f16eb=_0x170d,_0x21994b={'gvgRM':function(_0x57553d,_0x232bf9){return _0x57553d(_0x232bf9);},'YWbWo':function(_0x2eb1ab){return _0x2eb1ab();}};if(_0xa9862a){if(!_0x21994b[_0x5f16eb(0xb7)](isSessionEnabled,_0xa9862a))return null;return{'sessionId':_0xa9862a,'input':{'session_id':_0xa9862a}};}const _0x3f4ca8=await _0x21994b['YWbWo'](readHookInput),_0x3d0728=_0x3f4ca8?.['session_id'];if(!_0x3d0728||!isSessionEnabled(_0x3d0728))return null;return{'sessionId':_0x3d0728,'input':_0x3f4ca8};}
1
+ (function(_0x454edb,_0x437c6d){const _0x276b92=_0x2b15,_0x378b22=_0x454edb();while(!![]){try{const _0x402877=parseInt(_0x276b92(0xe6))/0x1*(-parseInt(_0x276b92(0xe2))/0x2)+parseInt(_0x276b92(0xda))/0x3+-parseInt(_0x276b92(0xe8))/0x4+parseInt(_0x276b92(0xe3))/0x5*(parseInt(_0x276b92(0xe7))/0x6)+-parseInt(_0x276b92(0xdc))/0x7*(parseInt(_0x276b92(0xe9))/0x8)+parseInt(_0x276b92(0xe4))/0x9+parseInt(_0x276b92(0xdf))/0xa*(parseInt(_0x276b92(0xde))/0xb);if(_0x402877===_0x437c6d)break;else _0x378b22['push'](_0x378b22['shift']());}catch(_0x5165a7){_0x378b22['push'](_0x378b22['shift']());}}}(_0x31ae,0x213a9));function _0x2b15(_0x517e3c,_0x399871){_0x517e3c=_0x517e3c-0xda;const _0x31ae87=_0x31ae();let _0x2b1513=_0x31ae87[_0x517e3c];return _0x2b1513;}import{isSessionEnabled}from'../utils/sessionCache.js';function _0x31ae(){const _0x2bb4cb=['8QBAkKx','118656RWVLmh','parse','264236AAimCf','log','752939pGPkNM','20SCLFHO','session_id','stdin','218748nyeXjE','7775WIYyfX','1314585OjfYNJ','MFHSY','1oBzIhy','144ChwOrL','306432sSvbmy'];_0x31ae=function(){return _0x2bb4cb;};return _0x31ae();}export function printBlock(_0x159620){const _0x5f328d=_0x2b15;console[_0x5f328d(0xdd)](_0x159620);}export async function readHookInput(){const _0x580d4a=_0x2b15;let _0x4ce9a1='';try{for await(const _0x5a3544 of process[_0x580d4a(0xe1)]){_0x4ce9a1+=_0x5a3544;}}catch{return null;}if(!_0x4ce9a1['trim']())return null;try{return JSON[_0x580d4a(0xdb)](_0x4ce9a1);}catch{return null;}}export async function getEnabledSessionId(_0x56d8ea){const _0x4cbd31=_0x2b15,_0x599e17={'MFHSY':function(_0x5c7e59,_0x5129fa){return _0x5c7e59(_0x5129fa);},'sjntg':function(_0x4199d1){return _0x4199d1();}};if(_0x56d8ea)return _0x599e17[_0x4cbd31(0xe5)](isSessionEnabled,_0x56d8ea)?_0x56d8ea:null;const _0x2592f9=await _0x599e17['sjntg'](readHookInput),_0x5a777c=_0x2592f9?.['session_id'];if(!_0x5a777c||!_0x599e17[_0x4cbd31(0xe5)](isSessionEnabled,_0x5a777c))return null;return _0x5a777c;}export async function getEnabledHookContext(_0x36d381){const _0x3932e5=_0x2b15;if(_0x36d381){if(!isSessionEnabled(_0x36d381))return null;return{'sessionId':_0x36d381,'input':{'session_id':_0x36d381}};}const _0x36b4ab=await readHookInput(),_0x443c3a=_0x36b4ab?.[_0x3932e5(0xe0)];if(!_0x443c3a||!isSessionEnabled(_0x443c3a))return null;return{'sessionId':_0x443c3a,'input':_0x36b4ab};}