@ranger-testing/ranger-cli 2.1.3 → 2.1.4

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 (66) 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/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/browserSessionsApi.js +1 -1
  35. package/build/commands/utils/claudeConfig.js +1 -1
  36. package/build/commands/utils/claudePlugin.js +1 -1
  37. package/build/commands/utils/crypto.js +1 -1
  38. package/build/commands/utils/desirePathLog.js +1 -1
  39. package/build/commands/utils/deviceAuth.js +1 -1
  40. package/build/commands/utils/environment.js +1 -1
  41. package/build/commands/utils/featureApi.js +1 -1
  42. package/build/commands/utils/featureReportGenerator.js +1 -1
  43. package/build/commands/utils/fixWebmDuration.js +1 -1
  44. package/build/commands/utils/git.js +1 -1
  45. package/build/commands/utils/keychain.js +1 -1
  46. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  47. package/build/commands/utils/mcpImageBase64.js +1 -1
  48. package/build/commands/utils/model.js +1 -1
  49. package/build/commands/utils/opencodeConfig.js +1 -1
  50. package/build/commands/utils/profileMessages.js +1 -1
  51. package/build/commands/utils/profileSetupBanner.js +1 -1
  52. package/build/commands/utils/rangerConfig.js +1 -1
  53. package/build/commands/utils/rangerRoot.js +1 -1
  54. package/build/commands/utils/reportGenerator.js +1 -1
  55. package/build/commands/utils/retry.js +1 -1
  56. package/build/commands/utils/sessionCache.js +1 -1
  57. package/build/commands/utils/settings.js +1 -1
  58. package/build/commands/utils/skillContent.js +1 -1
  59. package/build/commands/utils/skills.js +1 -1
  60. package/build/commands/utils/telemetry.js +1 -1
  61. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  62. package/build/commands/utils/userApi.js +1 -1
  63. package/build/commands/utils/version.js +1 -1
  64. package/build/commands/verifyFeature.js +1 -1
  65. package/build/commands/verifyInBrowser.js +1 -1
  66. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x4698fa=_0x51be;(function(_0x1d55b7,_0x32fa5f){const _0x2f84cd=_0x51be,_0x36d1c1=_0x1d55b7();while(!![]){try{const _0xb5ec6e=parseInt(_0x2f84cd(0x101))/0x1*(parseInt(_0x2f84cd(0x1b9))/0x2)+-parseInt(_0x2f84cd(0x1b0))/0x3*(-parseInt(_0x2f84cd(0x20a))/0x4)+-parseInt(_0x2f84cd(0x1b4))/0x5+parseInt(_0x2f84cd(0xf4))/0x6*(parseInt(_0x2f84cd(0x17d))/0x7)+parseInt(_0x2f84cd(0x1d3))/0x8+parseInt(_0x2f84cd(0x1c8))/0x9*(-parseInt(_0x2f84cd(0x232))/0xa)+-parseInt(_0x2f84cd(0x172))/0xb;if(_0xb5ec6e===_0x32fa5f)break;else _0x36d1c1['push'](_0x36d1c1['shift']());}catch(_0x34f925){_0x36d1c1['push'](_0x36d1c1['shift']());}}}(_0x374e,0xcb979));import _0x4e43e2 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x387933=_0x51be,_0x2cc14b={'nnqVA':function(_0x1d6f58,_0x26ff8c){return _0x1d6f58(_0x26ff8c);},'OUQJF':function(_0x9e5f03,_0x26195f,_0x460163){return _0x9e5f03(_0x26195f,_0x460163);},'YLwQC':function(_0x577511,_0xb0d6){return _0x577511(_0xb0d6);}};let _0x5148bd=process['cwd']();const _0x48a481=_0x2cc14b['nnqVA'](parse,_0x5148bd)[_0x387933(0x123)];while(_0x5148bd!==_0x48a481){if(existsSync(_0x2cc14b[_0x387933(0x1a3)](join,_0x5148bd,'.ranger'))||_0x2cc14b[_0x387933(0x1ec)](existsSync,_0x2cc14b['OUQJF'](join,_0x5148bd,_0x387933(0x184))))return _0x5148bd;_0x5148bd=dirname(_0x5148bd);}return process[_0x387933(0x183)]();}_0x4e43e2[_0x4698fa(0x23d)]({'path':join(findProjectRoot(),'.env')});import _0xf004b1 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';function _0x51be(_0x5417fb,_0x352f29){_0x5417fb=_0x5417fb-0xee;const _0x374e4c=_0x374e();let _0x51be83=_0x374e4c[_0x5417fb];return _0x51be83;}import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x4698fa(0x153),async _0x54e03e=>{const _0x44a016=getCurrentCollector();_0x44a016&&await _0x44a016['trackCommandError'](_0x54e03e),process['exitCode']=0x1;});const rawArgs=process[_0x4698fa(0x105)]['slice'](0x2),TOP_LEVEL_HELP=_0x4698fa(0x20f),PROFILE_HELP=_0x4698fa(0x1db),PROFILE_CONFIG_HELP='Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20(e.g.,\x20header.X-Test-Mode)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27';function warnRenamed(_0x3d1372,_0x84cf7f){console['error']('\x0a'+_0x3d1372+'\x20is\x20now\x20'+_0x84cf7f+'\x0a');}function argUsed(_0x2b25d4){const _0x337130=_0x4698fa;return rawArgs[_0x337130(0x148)](_0x163c01=>_0x163c01===_0x2b25d4||_0x163c01[_0x337130(0x1c0)](_0x2b25d4+'='));}function warnFlagRenamed(_0x1741f4,_0x44633a,_0x576062){const _0x4267f3=_0x4698fa,_0x4dc6c9={'ukuwm':function(_0x5ab1b9,_0x1ed89e,_0x17602d){return _0x5ab1b9(_0x1ed89e,_0x17602d);}};argUsed(_0x44633a)&&_0x4dc6c9[_0x4267f3(0x186)](warnRenamed,_0x1741f4+'\x20'+_0x44633a,_0x1741f4+'\x20'+_0x576062);}async function runGoCommand(_0x3d5036,_0xc310d0=![]){const _0xe39da3=_0x4698fa,_0x1e05f8={'EIdJc':function(_0x5cfd0b,_0x3485d5){return _0x5cfd0b+_0x3485d5;},'GYJCt':'ranger\x20go','lHljn':_0xe39da3(0x1c4),'BKylT':'--task','xPucC':_0xe39da3(0x167),'nLSqw':function(_0x725cf0){return _0x725cf0();},'RISKl':function(_0x322539,_0x7b8abf){return _0x322539??_0x7b8abf;},'hkiGJ':_0xe39da3(0x23d),'Sxgpq':'default','iRXlr':function(_0x301212,_0x1d1762){return _0x301212(_0x1d1762);},'quqIO':'debug-address-comments','IqeuF':_0xe39da3(0x19b),'wTvvs':function(_0x37cd43,_0x425ac1){return _0x37cd43===_0x425ac1;},'DxDFx':_0xe39da3(0x214),'NxBeE':'blocked','BvDVW':'\x20FAILED','MuCZo':'\x0aIssues:'};_0xc310d0&&warnRenamed(_0xe39da3(0x1b2),'ranger\x20go');warnFlagRenamed(_0x1e05f8['GYJCt'],_0xe39da3(0x13e),_0x1e05f8['lHljn']),warnFlagRenamed(_0x1e05f8[_0xe39da3(0x19f)],_0x1e05f8['BKylT'],_0x1e05f8['xPucC']),warnFlagRenamed('ranger\x20go','--item','--scenario');const _0x1516d9=await _0x1e05f8['nLSqw'](loadRangerConfig),_0x3ca331=_0x3d5036['model'],_0x3b0d00=_0x1516d9[_0xe39da3(0x1d1)],_0x56514a=_0x1e05f8[_0xe39da3(0x12d)](_0x3ca331,_0x3b0d00),_0x24006d=_0x3ca331?'flag':_0x3b0d00?_0x1e05f8[_0xe39da3(0x1a4)]:_0x1e05f8['Sxgpq'],_0x26a61f=await _0x1e05f8['iRXlr'](verifyFeature,{'profile':_0x3d5036['profile']??_0x3d5036['env'],'notes':_0x3d5036[_0xe39da3(0x139)]??_0x3d5036['task'],'scenario':_0x3d5036[_0xe39da3(0x102)]??_0x3d5036[_0xe39da3(0x1df)],'startPath':_0x3d5036['start-path'],'debugOutcome':_0x3d5036[_0xe39da3(0x223)],'debugAddressComments':_0x3d5036[_0x1e05f8['quqIO']],'verifyModel':_0x56514a,'verifyModelInput':_0x56514a,'verifyModelSource':_0x24006d});console['log']('\x0a'+'='['repeat'](0x3c)),console[_0xe39da3(0x1d8)](_0x26a61f[_0xe39da3(0x121)]===_0x1e05f8[_0xe39da3(0x239)]?'\x20VERIFIED':_0x1e05f8['wTvvs'](_0x26a61f['evaluation'],_0xe39da3(0x218))?_0xe39da3(0x127):_0x26a61f['evaluation']===_0xe39da3(0x1dc)?_0x1e05f8['DxDFx']:_0x1e05f8['wTvvs'](_0x26a61f[_0xe39da3(0x121)],_0x1e05f8[_0xe39da3(0x119)])?_0xe39da3(0x138):_0x1e05f8[_0xe39da3(0x188)]),console['log']('='['repeat'](0x3c)),console['log'](_0xe39da3(0xfb)+_0x26a61f['summary']),console['log'](_0xe39da3(0x142)+_0x26a61f[_0xe39da3(0x121)]),console['log'](_0xe39da3(0x220)+_0x26a61f[_0xe39da3(0x1e1)]),_0x26a61f['issues']?.[_0xe39da3(0x18c)]&&(console[_0xe39da3(0x1d8)](_0x1e05f8[_0xe39da3(0x168)]),_0x26a61f['issues']['forEach']((_0x3d9cdc,_0x591cb1)=>{const _0x1f2219=_0xe39da3;console[_0x1f2219(0x1d8)]('\x0a'+_0x1e05f8['EIdJc'](_0x591cb1,0x1)+_0x1f2219(0x1d7)+_0x3d9cdc['severity']+']\x20'+_0x3d9cdc[_0x1f2219(0xfc)]);})),process[_0xe39da3(0x1fa)](_0x26a61f[_0xe39da3(0x121)]==='verified'?0x0:0x1);}function _0x374e(){const _0x32dfa9=['Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','rRATj','list\x20<profile>','mFdtE','restore\x20<id>','project','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','ranger','xMktK','kwfKY','CLAIF','6RwaUXo','uiNoD','Qqchq','FzzKm','aaTNd','aAKEn','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','Summary:\x20','description','HWyTe','number','TkhZN','jTlse','791906hdgPKS','scenario','bJHnK','JeVnp','argv','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','show\x20[id]','ranger\x20profile\x20encrypt-auth','QiPcx','List\x20all\x20feature\x20reviews','Profile\x20name','rnisK','feature\x20get-feedback','HRxYk','gAYlj','EUTYB','fcsAx','XlbTc','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','hook','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','VwuQs','scriptName','NxBeE','ranger\x20use','Scenario\x20number\x20to\x20edit\x20(1-based)','env\x20update','exclude-scenario','blocked','hwVRr','skip-chromium','evaluation','limit','root','\x0aUnknown\x20command:\x20','You\x20must\x20specify\x20a\x20profile\x20subcommand','BGeYI','\x20INCOMPLETE','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','VDPlU','ranger\x20feature\x20get-feedback','Number\x20of\x20feature\x20reviews\x20to\x20skip','status','RISKl','session-id','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','map','IChBp','ocllt','qqBAB','PMwZm','VoRYi','Environment\x20name','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','\x20BLOCKED','notes','nEAwL','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','CNEmL','trackCommandError','--env','Psbut','BqSsi','error','Evaluation:\x20','obUcx','list\x20<env>','nANOw','boolean','JXqey','some','lugNP','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','base-url','Remove\x20a\x20config\x20value','ranger\x20setup','Manage\x20profiles','feature','update','start','Set\x20a\x20config\x20value','unhandledRejection','yYQTk','JdBEi','command','CIIsp','Include\x20soft-deleted\x20feature\x20reviews','Pufll','WkGbS','nncmr','current-branch','ucEvI','EyPOR','env-name','positional','skip-auth','kTPuS','AJloI','ZwzUV','ZCTjS','xfChg','--notes','MuCZo','pbShY','Xvtli','demandCommand','zTVpq','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','kgAXK','VzeEs','TMbwa','cdp-endpoint','21515065AotfNm','array','epzNU','Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','profile\x20config\x20get','dfZed','zcXIg','feature\x20add-checklist-item','slice','hexro','edit-scenario\x20<description>','9801127UuEXzy','yCfsy','opencode','update\x20<env-name>','mPXYt','LbzZZ','cwd','.env','ERDpl','ukuwm','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','BvDVW','pCvaO','ranger\x20config\x20set','usage','length','force','kDPLx','--scenario','nTCrC','RsShD','ubQBo','LwSRN','task','LuocL','bCmEz','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','key','ranger\x20delete','AOuJt','verified','Initialize\x20Ranger\x20in\x20your\x20project','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','ranger\x20config\x20unset','GYJCt','DcqrG','Manage\x20profile\x20configuration','JUJNY','OUQJF','hkiGJ','add-scenario','Config\x20key\x20to\x20remove','parse','xgFnW','eqbVs','vZtSj','PZvEO','scope','offset','cUYPK','restore','15sMHxYg','start-path','ranger\x20verify-feature','config\x20set','6799170zbdmtE','delete\x20[id]','edit-scenario','add\x20env','profile-name','2YIXzuk','hhMur','tRgle','ranger\x20feature\x20resume','ranger\x20feature\x20list','ranger\x20profile\x20config\x20set','ranger\x20create','startsWith','MBBjE','\x20\x20https://docs.ranger.net\x0a','UwVwv','--profile','Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)','HcTvM','profile\x20encrypt-auth','1710HdBCIE','profile\x20add','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ydeKF','skillup','Rkfdv','report','Skip\x20Chromium\x20browser\x20installation','CWlQa','model','failed','7734160NmiFmB','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','name','.\x20[','log','hook:enable','ULhQo','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','partial','YHVyk','VgqKb','item','include-deleted','evaluationReason','dJWek','env','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','rAsOb','ranger\x20restore','LoAGj','iowdx','token','string','setup-ci\x20<token>','YLwQC','AFAqg','url','vNRno','ranger\x20add-scenario','CBzOk','Feature\x20review\x20ID','report\x20[id]','checklist','Scenario\x20description','Config\x20key','xYIzj','feature\x20show','You\x20must\x20specify\x20a\x20config\x20subcommand','exit','AKkex','use','option','list','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','add\x20<profile-name>','resume','tAcgm','ranger\x20profile\x20add','Update\x20authentication\x20for\x20an\x20existing\x20profile','hook:disable','wdDaV','value','List\x20all\x20profiles','IFClt','897388oPtiSo','SnmmB','ispED','includes','profile','Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.','yONSk','zZluE','login','Documentation:\x0a','\x20PARTIAL','XWvTh','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','incomplete','IJYDd','ywOgH','GSpfO','ranger\x20config\x20list','dvdls','verify-feature','user','Reason:\x20','help','ranger\x20config\x20get','debug-outcome','TdQmW','tXsSF','FMvlT','dqvbF','ranger\x20get-review','GDuhK','NyPHZ','enable','Feature\x20review\x20description','ranger\x20resume','add-scenario\x20<description>','yTseU','get-feedback\x20[id]','vRHhG','6890tnKjMC','Config\x20value','wGQXP','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','Get\x20a\x20config\x20value','alias','IqeuF','OdeuT','config\x20get','jFVkS','config','swtRr'];_0x374e=function(){return _0x32dfa9;};return _0x374e();}_0xf004b1(process[_0x4698fa(0x105)][_0x4698fa(0x17a)](0x2))[_0x4698fa(0x118)](_0x4698fa(0xf0))[_0x4698fa(0x18b)](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x4698fa(0x156)]('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0xd13fbb=>{const _0x592006=_0x4698fa,_0x471c3c={'zZluE':'description','lMWOh':'scenario','FzzKm':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','XUeSp':'checklist'};return _0xd13fbb[_0x592006(0x160)](_0x592006(0x1d6),{'type':'string','description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x471c3c[_0x592006(0x211)],{'type':'string','alias':'d','description':_0x592006(0x22c)})[_0x592006(0x1fd)](_0x471c3c['lMWOh'],{'type':_0x592006(0x173),'alias':'c','description':_0x471c3c[_0x592006(0xf7)]})[_0x592006(0x1fd)](_0x471c3c['XUeSp'],{'type':'array','hidden':!![]});},async _0x1d43f0=>{const _0x1a723d=_0x4698fa,_0x2ec645={'bZcSz':'--checklist','JdBEi':_0x1a723d(0x18f),'sNazj':function(_0x24c068,_0x437b47,_0x45f470){return _0x24c068(_0x437b47,_0x45f470);},'xfChg':'create'};warnFlagRenamed(_0x1a723d(0x1bf),_0x2ec645['bZcSz'],_0x2ec645[_0x1a723d(0x155)]);const _0x117d44=_0x1d43f0['scenario']||_0x1d43f0[_0x1a723d(0x1f4)];await _0x2ec645['sNazj'](withTelemetry,_0x2ec645[_0x1a723d(0x166)],()=>featureCreate(_0x1d43f0[_0x1a723d(0x1d6)],{'description':_0x1d43f0[_0x1a723d(0xfc)],'scenarios':_0x117d44}));})[_0x4698fa(0x156)](_0x4698fa(0x1fe),_0x4698fa(0x10b),_0x36fe62=>{const _0x1e30c6=_0x4698fa,_0x814df1={'bzPdz':'boolean','YHVyk':'limit','VRUEa':_0x1e30c6(0xfe),'hwVRr':_0x1e30c6(0x158)};return _0x36fe62[_0x1e30c6(0x1fd)]('current-branch',{'type':_0x814df1['bzPdz'],'description':_0x1e30c6(0xef)})['option'](_0x814df1[_0x1e30c6(0x1dd)],{'type':'number','alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option']('offset',{'type':_0x814df1['VRUEa'],'alias':'o','description':_0x1e30c6(0x12b),'default':0x0})['option'](_0x1e30c6(0x1e0),{'type':'boolean','alias':'d','description':_0x814df1[_0x1e30c6(0x11f)],'default':![]});},async _0x4e817f=>{const _0x2417af=_0x4698fa,_0x54ffa1={'ClLOV':function(_0x55d6a5,_0x2fefaf,_0x467cfc){return _0x55d6a5(_0x2fefaf,_0x467cfc);},'yAcPD':'list'};await _0x54ffa1['ClLOV'](withTelemetry,_0x54ffa1['yAcPD'],()=>featureList({'currentBranch':_0x4e817f[_0x2417af(0x15c)],'limit':_0x4e817f['limit'],'offset':_0x4e817f['offset'],'includeDeleted':_0x4e817f[_0x2417af(0x1e0)]}));})[_0x4698fa(0x156)](_0x4698fa(0x108),_0x4698fa(0x16d),_0x27ec70=>{const _0x86a2b6=_0x4698fa;return _0x27ec70[_0x86a2b6(0x160)]('id',{'type':_0x86a2b6(0x1ea),'description':_0x86a2b6(0x1f2)});},async _0x5e72b7=>{const _0x8fb089=_0x4698fa,_0x1fac15={'tAcgm':function(_0x177bb9,_0x19c6a6,_0x355548){return _0x177bb9(_0x19c6a6,_0x355548);}};await _0x1fac15[_0x8fb089(0x202)](withTelemetry,'show',()=>featureShow(_0x5e72b7['id']));})[_0x4698fa(0x156)]('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x15fe8c=>{const _0x42b21d=_0x4698fa;return _0x15fe8c['positional']('id',{'type':_0x42b21d(0x1ea),'description':_0x42b21d(0x1ca)});},async _0x5bd291=>{const _0x3b3255=_0x4698fa,_0x5a8db0={'epzNU':function(_0x3d75f3,_0x5c2f44,_0x1ac8a1){return _0x3d75f3(_0x5c2f44,_0x1ac8a1);},'GAczu':_0x3b3255(0x201)};await _0x5a8db0[_0x3b3255(0x174)](withTelemetry,_0x5a8db0['GAczu'],()=>featureResume(_0x5bd291['id']));})[_0x4698fa(0x156)](_0x4698fa(0x22e),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x4ad331=>{const _0x345b85=_0x4698fa,_0x1a0c6a={'CirGX':_0x345b85(0x216)};return _0x4ad331['positional']('description',{'type':_0x345b85(0x1ea),'description':'Scenario\x20description','demandOption':!![]})[_0x345b85(0x1fd)]('id',{'type':_0x345b85(0x1ea),'description':_0x1a0c6a['CirGX']});},async _0x190b14=>{const _0x34d14b=_0x4698fa,_0x5cca50={'XdAtx':function(_0x474b72,_0xaab9b3,_0xe638fb){return _0x474b72(_0xaab9b3,_0xe638fb);}};await _0x5cca50['XdAtx'](withTelemetry,_0x34d14b(0x1a5),()=>featureAddScenario(_0x190b14['description'],_0x190b14['id']));})[_0x4698fa(0x156)](_0x4698fa(0x17c),_0x4698fa(0x197),_0x4d616c=>{const _0x5b4160=_0x4698fa,_0x3cff52={'VwuQs':'New\x20scenario\x20description','JSjYD':_0x5b4160(0xfe),'ocllt':_0x5b4160(0x11b)};return _0x4d616c['positional'](_0x5b4160(0xfc),{'type':_0x5b4160(0x1ea),'description':_0x3cff52[_0x5b4160(0x117)],'demandOption':!![]})[_0x5b4160(0x1fd)](_0x5b4160(0x102),{'type':_0x3cff52['JSjYD'],'description':_0x3cff52[_0x5b4160(0x132)],'demandOption':!![]})['option']('id',{'type':'string','description':_0x5b4160(0x216)});},async _0x9b0f3c=>{const _0x41ae81=_0x4698fa;await withTelemetry(_0x41ae81(0x1b6),()=>featureEditScenario(_0x9b0f3c['description'],{'id':_0x9b0f3c['id'],'scenario':_0x9b0f3c['scenario']}));})['command'](_0x4698fa(0x1f3),_0x4698fa(0x23f),_0x70ddd=>{const _0x1c996f=_0x4698fa,_0x25da82={'LnReA':'string','cERuL':_0x1c996f(0x1f2),'GSpfO':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x70ddd['positional']('id',{'type':_0x25da82['LnReA'],'description':_0x25da82['cERuL']})['option'](_0x1c996f(0x11d),{'type':'array','description':_0x25da82[_0x1c996f(0x21b)]});},async _0x436b0c=>{const _0x2a3a64=_0x4698fa,_0x4ea796=_0x436b0c[_0x2a3a64(0x11d)],_0x3fd516=_0x4ea796?_0x4ea796[_0x2a3a64(0x130)](_0x453a0f=>Number(_0x453a0f)):undefined;await withTelemetry(_0x2a3a64(0x1ce),()=>featureReportPrDescription(_0x436b0c['id'],{'excludeScenarios':_0x3fd516}));})['command']('get-review\x20[id]',_0x4698fa(0x137),_0x38d301=>{const _0x2dfa6=_0x4698fa;return _0x38d301['positional']('id',{'type':'string','description':_0x2dfa6(0x216)});},async _0x32dcd7=>{const _0x319081=_0x4698fa,_0x20412a={'kDPLx':'get-review'};await withTelemetry(_0x20412a[_0x319081(0x18e)],()=>featureGetReview(_0x32dcd7['id']));})[_0x4698fa(0x156)]('delete\x20[id]',_0x4698fa(0x116),_0x37caf4=>{const _0x5a86fe=_0x4698fa;return _0x37caf4[_0x5a86fe(0x160)]('id',{'type':_0x5a86fe(0x1ea),'description':'Feature\x20review\x20ID'});},async _0x45f468=>{const _0x2c081b=_0x4698fa,_0x29000d={'EyPOR':function(_0x467809,_0x3072b1,_0x523af0){return _0x467809(_0x3072b1,_0x523af0);}};await _0x29000d[_0x2c081b(0x15e)](withTelemetry,'delete',()=>featureDelete(_0x45f468['id']));})[_0x4698fa(0x156)](_0x4698fa(0x243),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x22aca9=>{const _0x436277=_0x4698fa,_0x41bc40={'wRIsx':_0x436277(0x1ea)};return _0x22aca9['positional']('id',{'type':_0x41bc40['wRIsx'],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x3c5d4b=>{const _0x74e45d=_0x4698fa,_0x31030b={'ULhQo':_0x74e45d(0x1af)};await withTelemetry(_0x31030b[_0x74e45d(0x1da)],()=>featureRestore(_0x3c5d4b['id']));})['command']('setup\x20[token]',_0x4698fa(0x19c),_0x2133ee=>{const _0x6994a5=_0x4698fa,_0x4b5065={'zYtPt':_0x6994a5(0x1e9),'AFAqg':_0x6994a5(0x1e4),'vzAHw':_0x6994a5(0x120),'ubQBo':'boolean','xYIzj':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','ISHFX':_0x6994a5(0x1ea),'XWvTh':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','fgUSV':'url','ZCTjS':_0x6994a5(0xfa),'jTlse':_0x6994a5(0x114),'XcGAB':'opencode','uiNoD':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)'};return _0x2133ee['positional'](_0x4b5065['zYtPt'],{'type':_0x6994a5(0x1ea),'description':_0x4b5065[_0x6994a5(0x1ed)]})['option'](_0x4b5065['vzAHw'],{'type':_0x4b5065[_0x6994a5(0x192)],'description':_0x4b5065[_0x6994a5(0x1f7)],'default':![]})['option'](_0x6994a5(0x1ac),{'type':_0x4b5065['ISHFX'],'choices':[_0x6994a5(0x21f),'project'],'description':_0x4b5065[_0x6994a5(0x215)]})['option'](_0x4b5065['fgUSV'],{'type':'string','description':_0x4b5065[_0x6994a5(0x165)]})['option']('force',{'type':_0x4b5065['ubQBo'],'description':_0x4b5065[_0x6994a5(0x100)],'default':![]})['option'](_0x4b5065['XcGAB'],{'type':_0x4b5065['ubQBo'],'description':_0x4b5065[_0x6994a5(0xf5)],'default':![]});},async _0xd2e711=>{const _0x4e2acf=_0x4698fa;await withTelemetry(_0x4e2acf(0x151),_0xff4b4b=>start(_0xd2e711[_0x4e2acf(0x1e9)],{'skipChromium':_0xd2e711[_0x4e2acf(0x120)],'scope':_0xd2e711[_0x4e2acf(0x1ac)],'url':_0xd2e711['url'],'force':_0xd2e711[_0x4e2acf(0x18d)],'opencode':_0xd2e711['opencode']},_0xff4b4b));})['command'](_0x4698fa(0x1eb),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x4db611=>{const _0x35063d=_0x4698fa,_0x290c97={'swtRr':'Ranger\x20API\x20token','EcWGb':_0x35063d(0x20e),'hCcou':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','wdDaV':_0x35063d(0x14b),'JXqey':'string','VUhOt':'skip-chromium','IEvix':'boolean'};return _0x4db611['positional']('token',{'type':'string','description':_0x290c97[_0x35063d(0x23e)],'demandOption':!![]})[_0x35063d(0x1fd)](_0x290c97['EcWGb'],{'type':'string','description':_0x290c97['hCcou']})['option'](_0x290c97[_0x35063d(0x206)],{'type':_0x290c97[_0x35063d(0x147)],'description':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)'})[_0x35063d(0x1fd)](_0x290c97['VUhOt'],{'type':_0x290c97['IEvix'],'description':_0x35063d(0x1cf),'default':![]});},async _0x28a6fe=>{const _0xf53166=_0x4698fa;await withTelemetry('setup-ci',_0x23c2ae=>setupCi(_0x28a6fe[_0xf53166(0x1e9)],{'profile':_0x28a6fe['profile'],'baseUrl':_0x28a6fe[_0xf53166(0x14b)],'skipChromium':_0x28a6fe[_0xf53166(0x120)]},_0x23c2ae));})['command'](_0x4698fa(0x212),'Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)',()=>{},async()=>{const _0x55d69b=_0x4698fa;await withTelemetry(_0x55d69b(0x212),()=>login());})['command']('skillup','Install\x20Ranger\x20skills',_0x13108f=>{const _0xc9cc41=_0x4698fa,_0x424e38={'rnisK':_0xc9cc41(0x17f),'OdeuT':'Install\x20scope\x20for\x20skills'};return _0x13108f[_0xc9cc41(0x1fd)](_0x424e38[_0xc9cc41(0x10d)],{'type':'boolean','description':'Install\x20skills\x20for\x20OpenCode','default':![]})[_0xc9cc41(0x1fd)](_0xc9cc41(0x1ac),{'type':_0xc9cc41(0x1ea),'choices':['user',_0xc9cc41(0x244)],'description':_0x424e38[_0xc9cc41(0x23a)]});},async _0xc5850a=>{const _0x251e1f=_0x4698fa,_0x4d6eb3={'lQALK':function(_0x2ea972,_0x2d7c64,_0x5db1bf){return _0x2ea972(_0x2d7c64,_0x5db1bf);},'BGeYI':_0x251e1f(0x1cc)},_0x699c12=Boolean(_0xc5850a['opencode']);await _0x4d6eb3['lQALK'](withTelemetry,_0x4d6eb3[_0x251e1f(0x126)],()=>skillup({'autoInstall':_0xc5850a[_0x251e1f(0x1ac)],'platform':_0x699c12?_0x251e1f(0x17f):'claude'}));})['command']('clean',_0x4698fa(0x1d5),()=>{},async()=>{const _0x4b1baa={'gYAPn':'clean'};await withTelemetry(_0x4b1baa['gYAPn'],()=>clean());})[_0x4698fa(0x156)](_0x4698fa(0x20e),_0x4698fa(0x14e),_0x1fa73b=>{const _0x470d9a=_0x4698fa,_0x104c29={'OjhUS':'profile-name','LoAGj':_0x470d9a(0x1ea),'fupgS':_0x470d9a(0x235),'nEAwL':_0x470d9a(0x146),'UwVwv':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','FpZLa':_0x470d9a(0x1ee),'XlbTc':'force','mFdtE':_0x470d9a(0x171),'LuocL':_0x470d9a(0x12f),'vNRno':function(_0x21a350,_0x399167,_0x575ad6,_0x2242db){return _0x21a350(_0x399167,_0x575ad6,_0x2242db);},'nDYqa':'Name\x20of\x20the\x20profile','whRvb':function(_0xdb86cb,_0x295e40,_0x33d982){return _0xdb86cb(_0x295e40,_0x33d982);},'slmYU':'profile\x20ls','SnmmB':'Name\x20of\x20the\x20profile\x20to\x20update','ZwzUV':'profile\x20update','kgAXK':'profile','Psbut':_0x470d9a(0x106),'FyBFB':'value','WkGbS':function(_0x50fdaa,_0x4fe2d7,_0x39ff4c){return _0x50fdaa(_0x4fe2d7,_0x39ff4c);},'CLAIF':'profile\x20config\x20set','qKsjg':_0x470d9a(0x198),'gSNPO':'set\x20<profile>\x20<key>\x20<value>','CRudI':'get\x20<profile>\x20<key>','esBDm':_0x470d9a(0x237),'lPuqS':'List\x20all\x20config\x20for\x20a\x20profile','gAYlj':'unset\x20<profile>\x20<key>','fCqRp':_0x470d9a(0x14c),'ToMPa':_0x470d9a(0x200),'Xvtli':'Switch\x20to\x20using\x20a\x20specific\x20profile','BqSsi':'encrypt-auth\x20<profile>','QBMTp':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','NvSRH':'update\x20<profile-name>','PMwZm':_0x470d9a(0x1a1),'ispED':_0x470d9a(0x125)};return _0x1fa73b['usage'](PROFILE_HELP)['command'](_0x104c29['ToMPa'],'Add\x20profile\x20configuration',_0x1a835a=>{const _0x372974=_0x470d9a;return _0x1a835a[_0x372974(0x160)](_0x104c29['OjhUS'],{'type':_0x104c29[_0x372974(0x1e7)],'description':_0x104c29['fupgS'],'demandOption':!![]})['option']('ci',{'type':_0x104c29['nEAwL'],'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})[_0x372974(0x1fd)](_0x372974(0x161),{'type':_0x104c29[_0x372974(0x13a)],'description':_0x104c29[_0x372974(0x1c3)],'default':![]})['option'](_0x104c29['FpZLa'],{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x104c29[_0x372974(0x113)],{'type':'boolean','description':_0x372974(0x114),'default':![]})[_0x372974(0x1fd)](_0x104c29[_0x372974(0x242)],{'type':'string','description':_0x104c29[_0x372974(0x195)]});},async _0x532899=>{const _0x124637=_0x470d9a;await _0x104c29[_0x124637(0x1ef)](withTelemetry,_0x124637(0x1c9),_0x4d376d=>addEnv(_0x532899[_0x124637(0x1b8)],{'ci':_0x532899['ci'],'skipAuth':_0x532899['skip-auth'],'url':_0x532899['url'],'force':_0x532899[_0x124637(0x18d)],'cdpEndpoint':_0x532899['cdp-endpoint']},_0x4d376d),{'isElectron':Boolean(_0x532899[_0x104c29['mFdtE']])});})[_0x470d9a(0x156)]('use\x20<profile-name>',_0x104c29[_0x470d9a(0x16a)],_0x1fe089=>{const _0x3ad44a=_0x470d9a;return _0x1fe089[_0x3ad44a(0x160)](_0x3ad44a(0x1b8),{'type':_0x3ad44a(0x1ea),'description':_0x104c29['nDYqa'],'demandOption':!![]});},async _0x482c66=>{const _0x363136=_0x470d9a;await withTelemetry('profile\x20use',()=>useEnv(_0x482c66[_0x363136(0x1b8)]));})['command'](_0x104c29[_0x470d9a(0x140)],_0x104c29['QBMTp'],_0x366704=>{const _0x4f91f8=_0x470d9a;return _0x366704['positional']('profile',{'type':_0x104c29[_0x4f91f8(0x1e7)],'description':'Profile\x20name','demandOption':!![]});},async _0x6c23fd=>{const _0x53b1bf=_0x470d9a;await _0x104c29['whRvb'](withTelemetry,_0x53b1bf(0x1c7),()=>authEncrypt(_0x6c23fd['profile']));})['command']('ls',_0x470d9a(0x208),()=>{},async()=>{await _0x104c29['whRvb'](withTelemetry,_0x104c29['slmYU'],()=>envList());})[_0x470d9a(0x156)](_0x104c29['NvSRH'],_0x470d9a(0x204),_0x562da1=>{const _0x3f988b=_0x470d9a;return _0x562da1[_0x3f988b(0x160)](_0x104c29['OjhUS'],{'type':_0x3f988b(0x1ea),'description':_0x104c29[_0x3f988b(0x20b)],'demandOption':!![]});},async _0x5d81f1=>{const _0x1afb77=_0x470d9a;await withTelemetry(_0x104c29[_0x1afb77(0x164)],_0x24d2e3=>updateEnv(_0x5d81f1['profile-name'],_0x24d2e3));})['command']('config',_0x104c29[_0x470d9a(0x134)],_0x115ac6=>{const _0x1e94f9=_0x470d9a,_0x26e197={'FPmvj':_0x104c29[_0x1e94f9(0xf3)],'wGQXP':function(_0x4120ad,_0x54b7d4,_0x779fbd){return _0x4120ad(_0x54b7d4,_0x779fbd);},'FQyDc':'string','lugNP':_0x104c29['qKsjg'],'iKDjX':'profile\x20config\x20unset'};return _0x115ac6[_0x1e94f9(0x18b)](PROFILE_CONFIG_HELP)['command'](_0x104c29['gSNPO'],_0x1e94f9(0x152),_0x35ac1c=>{const _0x329dfb=_0x1e94f9;return _0x35ac1c['positional'](_0x104c29['kgAXK'],{'type':_0x329dfb(0x1ea),'description':'Profile\x20name','demandOption':!![]})['positional'](_0x329dfb(0x198),{'type':'string','description':_0x104c29[_0x329dfb(0x13f)],'demandOption':!![]})['positional'](_0x104c29['FyBFB'],{'type':'string','description':'Config\x20value','demandOption':!![]});},async _0x11c149=>{const _0x42bf49=_0x1e94f9;await withTelemetry(_0x26e197['FPmvj'],()=>configSet(_0x11c149[_0x42bf49(0x20e)],_0x11c149['key'],_0x11c149['value']));})[_0x1e94f9(0x156)](_0x104c29['CRudI'],_0x104c29['esBDm'],_0x2636e0=>{const _0x3b4f51=_0x1e94f9;return _0x2636e0['positional']('profile',{'type':_0x3b4f51(0x1ea),'description':'Profile\x20name','demandOption':!![]})[_0x3b4f51(0x160)](_0x3b4f51(0x198),{'type':_0x3b4f51(0x1ea),'description':_0x3b4f51(0x1f6),'demandOption':!![]});},async _0x73aaa4=>{const _0x3a5ada=_0x1e94f9;await _0x26e197[_0x3a5ada(0x234)](withTelemetry,_0x3a5ada(0x176),()=>configGet(_0x73aaa4['profile'],_0x73aaa4['key']));})['command'](_0x1e94f9(0x241),_0x104c29['lPuqS'],_0x512529=>{const _0x4c3472=_0x1e94f9;return _0x512529[_0x4c3472(0x160)](_0x104c29[_0x4c3472(0x16e)],{'type':_0x104c29['LoAGj'],'description':_0x4c3472(0x10c),'demandOption':!![]});},async _0x476cae=>{const _0x368085=_0x1e94f9;await _0x104c29[_0x368085(0x15a)](withTelemetry,'profile\x20config\x20list',()=>configList(_0x476cae[_0x368085(0x20e)]));})['command'](_0x104c29[_0x1e94f9(0x110)],_0x104c29['fCqRp'],_0x2f41cc=>{const _0xd62c20=_0x1e94f9;return _0x2f41cc[_0xd62c20(0x160)](_0xd62c20(0x20e),{'type':_0x26e197['FQyDc'],'description':_0xd62c20(0x10c),'demandOption':!![]})[_0xd62c20(0x160)](_0x26e197[_0xd62c20(0x149)],{'type':_0x26e197['FQyDc'],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x1dcbf7=>{await withTelemetry(_0x26e197['iKDjX'],()=>configUnset(_0x1dcbf7['profile'],_0x1dcbf7['key']));})['demandCommand'](0x1,_0x1e94f9(0xee));})[_0x470d9a(0x16b)](0x1,_0x104c29[_0x470d9a(0x20c)]);})[_0x4698fa(0x156)](_0x4698fa(0x12c),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x474657=_0x4698fa,_0x5bc226={'CIIsp':function(_0xf9e7a9,_0x56d5c9,_0x5530eb){return _0xf9e7a9(_0x56d5c9,_0x5530eb);},'IJYDd':_0x474657(0x12c)};await _0x5bc226[_0x474657(0x157)](withTelemetry,_0x5bc226[_0x474657(0x219)],()=>status());})['command']('update',_0x4698fa(0x107),()=>{},async()=>{const _0x5034e7=_0x4698fa,_0x23c3fc={'NSFeR':function(_0x22f693,_0x49ef5e,_0x129ce0){return _0x22f693(_0x49ef5e,_0x129ce0);}};await _0x23c3fc['NSFeR'](withTelemetry,_0x5034e7(0x150),()=>update());})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x478445=>{const _0x47f682=_0x4698fa,_0xa874e9={'hexro':'string','rRATj':_0x47f682(0x1d4),'BAegT':_0x47f682(0x139),'VgqKb':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','TkhZN':'number','FmZJf':'Scenario\x20index\x20(1-based)','yTseU':_0x47f682(0x245),'YlnCL':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','qjRKs':_0x47f682(0x194)};return _0x478445['option'](_0x47f682(0x20e),{'type':_0xa874e9['hexro'],'description':_0xa874e9[_0x47f682(0x240)]})[_0x47f682(0x1fd)](_0xa874e9['BAegT'],{'type':_0xa874e9[_0x47f682(0x17b)],'description':_0xa874e9[_0x47f682(0x1de)]})[_0x47f682(0x1fd)]('scenario',{'type':_0xa874e9['TkhZN'],'description':_0xa874e9['FmZJf']})['option'](_0x47f682(0x1b1),{'type':_0xa874e9['hexro'],'description':_0xa874e9[_0x47f682(0x22f)]})['option']('model',{'type':_0xa874e9[_0x47f682(0x17b)],'description':_0xa874e9['YlnCL']})['option'](_0x47f682(0x223),{'type':_0x47f682(0x1ea),'hidden':!![],'choices':['verified',_0x47f682(0x1dc),_0x47f682(0x11e),_0x47f682(0x1d2),'incomplete']})['option']('debug-address-comments',{'type':'boolean','hidden':!![]})[_0x47f682(0x1fd)](_0x47f682(0x1e3),{'type':_0xa874e9[_0x47f682(0x17b)],'hidden':!![]})['option'](_0xa874e9['qjRKs'],{'type':_0xa874e9[_0x47f682(0x17b)],'hidden':!![]})[_0x47f682(0x1fd)]('item',{'type':_0xa874e9[_0x47f682(0xff)],'hidden':!![]});},async _0x3d54f6=>{await runGoCommand(_0x3d54f6);})[_0x4698fa(0x156)]('auth',![],_0x2f8226=>{const _0x4e8957=_0x4698fa,_0x53738b={'TMbwa':'profile','ydeKF':_0x4e8957(0x1ea),'notWH':'Profile\x20name','CBzOk':function(_0x268a47,_0x269af7,_0x5267af){return _0x268a47(_0x269af7,_0x5267af);},'bCmEz':'ranger\x20auth\x20encrypt','CWlQa':_0x4e8957(0x109),'xgFnW':'encrypt\x20<profile>','kwfKY':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x2f8226['command'](_0x53738b[_0x4e8957(0x1a8)],![],_0x11c484=>{const _0x97edbc=_0x4e8957;return _0x11c484['positional'](_0x53738b[_0x97edbc(0x170)],{'type':_0x53738b[_0x97edbc(0x1cb)],'description':_0x53738b['notWH'],'demandOption':!![]});},async _0x485e8b=>{const _0x2ba5ef=_0x4e8957;_0x53738b[_0x2ba5ef(0x1f1)](warnRenamed,_0x53738b[_0x2ba5ef(0x196)],_0x53738b[_0x2ba5ef(0x1d0)]),await authEncrypt(_0x485e8b[_0x2ba5ef(0x20e)]);})[_0x4e8957(0x16b)](0x1,_0x53738b[_0x4e8957(0xf2)]);},()=>{})['command']('start\x20[token]',![],_0x2b359e=>{const _0xedb2d5=_0x4698fa,_0x389afe={'rAsOb':'string','Qqchq':_0xedb2d5(0x1ac),'iQpNk':'project','ywOgH':_0xedb2d5(0x1ee),'pbShY':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url'};return _0x2b359e[_0xedb2d5(0x160)]('token',{'type':_0x389afe[_0xedb2d5(0x1e5)],'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0xedb2d5(0x1fd)](_0xedb2d5(0x120),{'type':'boolean','description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})['option'](_0x389afe[_0xedb2d5(0xf6)],{'type':'string','choices':[_0xedb2d5(0x21f),_0x389afe['iQpNk']],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x389afe[_0xedb2d5(0x21a)],{'type':_0x389afe['rAsOb'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0xedb2d5(0x1fd)]('force',{'type':_0xedb2d5(0x146),'description':_0x389afe[_0xedb2d5(0x169)],'default':![]});},async _0x2b1537=>{const _0x25cc7f=_0x4698fa,_0x4fe514={'zBjoR':function(_0x441ce8,_0x4b5aaf,_0xe3bc49){return _0x441ce8(_0x4b5aaf,_0xe3bc49);},'yONSk':_0x25cc7f(0x14d),'btBeC':'start'};_0x4fe514['zBjoR'](warnRenamed,'ranger\x20start',_0x4fe514[_0x25cc7f(0x210)]),await withTelemetry(_0x4fe514['btBeC'],_0x38240b=>start(_0x2b1537[_0x25cc7f(0x1e9)],{'skipChromium':_0x2b1537['skip-chromium'],'scope':_0x2b1537[_0x25cc7f(0x1ac)],'url':_0x2b1537[_0x25cc7f(0x1ee)],'force':_0x2b1537['force']},_0x38240b));})['command'](_0x4698fa(0x21e),![],_0x5bd7a9=>{const _0x1c62a8=_0x4698fa,_0x471b58={'tMoXs':_0x1c62a8(0x194),'vZtSj':_0x1c62a8(0xfe),'LwSRN':'Scenario\x20index\x20(1-based)','AKkex':_0x1c62a8(0x20e),'AOuJt':_0x1c62a8(0x1ea),'BkOSd':_0x1c62a8(0x139),'HWyTe':_0x1c62a8(0x102),'GDhOI':_0x1c62a8(0x1b1),'cUYPK':_0x1c62a8(0x245),'RsShD':_0x1c62a8(0x1d1),'qoxAe':'debug-outcome','Igxfs':_0x1c62a8(0x1d2),'QiPcx':'incomplete'};return _0x5bd7a9[_0x1c62a8(0x1fd)](_0x1c62a8(0x1e3),{'type':'string','description':_0x1c62a8(0x1d4)})['option'](_0x471b58['tMoXs'],{'type':'string','description':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)'})['option']('item',{'type':_0x471b58[_0x1c62a8(0x1aa)],'description':_0x471b58[_0x1c62a8(0x193)]})[_0x1c62a8(0x1fd)](_0x471b58[_0x1c62a8(0x1fb)],{'type':_0x471b58['AOuJt'],'hidden':!![]})['option'](_0x471b58['BkOSd'],{'type':_0x1c62a8(0x1ea),'hidden':!![]})[_0x1c62a8(0x1fd)](_0x471b58[_0x1c62a8(0xfd)],{'type':_0x471b58['vZtSj'],'hidden':!![]})[_0x1c62a8(0x1fd)](_0x471b58['GDhOI'],{'type':_0x471b58[_0x1c62a8(0x19a)],'description':_0x471b58[_0x1c62a8(0x1ae)]})['option'](_0x471b58[_0x1c62a8(0x191)],{'type':_0x1c62a8(0x1ea),'hidden':!![]})['option'](_0x471b58['qoxAe'],{'type':_0x471b58['AOuJt'],'hidden':!![],'choices':[_0x1c62a8(0x19b),'partial','blocked',_0x471b58['Igxfs'],_0x471b58[_0x1c62a8(0x10a)]]});},async _0x9032ee=>{const _0x9c6f48={'FVRZd':function(_0x414830,_0x2e5fd7,_0xe2ec80){return _0x414830(_0x2e5fd7,_0xe2ec80);}};await _0x9c6f48['FVRZd'](runGoCommand,_0x9032ee,!![]);})[_0x4698fa(0x156)]('add\x20env\x20<env-name>',![],_0x4036dc=>{const _0x1ff237=_0x4698fa,_0x1e108c={'HCoRs':_0x1ff237(0x15f),'aAKEn':'string','bJHnK':_0x1ff237(0x146),'tRgle':'Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','JUJNY':'skip-auth','gbvRV':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x4036dc['positional'](_0x1e108c['HCoRs'],{'type':_0x1e108c[_0x1ff237(0xf9)],'description':_0x1ff237(0x13b),'demandOption':!![]})[_0x1ff237(0x1fd)]('ci',{'type':_0x1e108c[_0x1ff237(0x103)],'description':_0x1e108c[_0x1ff237(0x1bb)],'default':![]})[_0x1ff237(0x1fd)](_0x1e108c[_0x1ff237(0x1a2)],{'type':_0x1e108c['bJHnK'],'description':_0x1e108c['gbvRV'],'default':![]});},async _0x44e94c=>{const _0x504283=_0x4698fa,_0x55f499={'GDuhK':function(_0x436483,_0x43cbbd,_0x4b1e0c){return _0x436483(_0x43cbbd,_0x4b1e0c);},'IFClt':_0x504283(0x203),'yYQTk':function(_0x3cddf9,_0x124031,_0x3b7cc4){return _0x3cddf9(_0x124031,_0x3b7cc4);},'nANOw':_0x504283(0x1b7)};_0x55f499[_0x504283(0x229)](warnRenamed,'ranger\x20add\x20env',_0x55f499[_0x504283(0x209)]),await _0x55f499[_0x504283(0x154)](withTelemetry,_0x55f499[_0x504283(0x145)],_0x32df35=>addEnv(_0x44e94c['env-name'],{'ci':_0x44e94c['ci'],'skipAuth':_0x44e94c[_0x504283(0x161)]},_0x32df35));})[_0x4698fa(0x156)]('use\x20<env-name>',![],_0x3f4e4c=>{const _0x49fa8e=_0x4698fa,_0x4c54f4={'TMRhb':'env-name'};return _0x3f4e4c[_0x49fa8e(0x160)](_0x4c54f4['TMRhb'],{'type':'string','description':'Name\x20of\x20the\x20environment','demandOption':!![]});},async _0x17453e=>{const _0x2ba3f5=_0x4698fa,_0x306dac={'TdQmW':function(_0x424ec4,_0x183ee7,_0x582a38){return _0x424ec4(_0x183ee7,_0x582a38);},'sxecd':_0x2ba3f5(0x11a),'xMktK':_0x2ba3f5(0x1fc)};_0x306dac[_0x2ba3f5(0x224)](warnRenamed,_0x306dac['sxecd'],'ranger\x20profile\x20use'),await withTelemetry(_0x306dac[_0x2ba3f5(0xf1)],()=>useEnv(_0x17453e['env-name']));})[_0x4698fa(0x156)](_0x4698fa(0x23d),![],_0x46e5ce=>{const _0x59e398=_0x4698fa,_0x1d79cf={'Rkfdv':_0x59e398(0x1ea),'jFVkS':'key','JDNNP':_0x59e398(0x233),'LbzZZ':function(_0x4c55d1,_0x3b6273,_0xe54525){return _0x4c55d1(_0x3b6273,_0xe54525);},'obUcx':'env','JeVnp':_0x59e398(0x136),'yCfsy':'Config\x20key','JHIdU':_0x59e398(0x222),'PZvEO':'ranger\x20profile\x20config\x20get','njoyP':_0x59e398(0x21c),'vRHhG':'config\x20list','fcsAx':function(_0x41b8a0,_0x6b4d70,_0x48f41a){return _0x41b8a0(_0x6b4d70,_0x48f41a);},'LGTkZ':_0x59e398(0x19e),'Hznzq':'config\x20unset','zcXIg':'set\x20<env>\x20<key>\x20<value>','Pufll':_0x59e398(0x144),'ucEvI':'unset\x20<env>\x20<key>','yIuvJ':_0x59e398(0x1f9)};return _0x46e5ce['command'](_0x1d79cf[_0x59e398(0x178)],![],_0x393ee8=>{const _0x5a1a38=_0x59e398;return _0x393ee8['positional']('env',{'type':_0x1d79cf['Rkfdv'],'description':'Environment\x20name','demandOption':!![]})[_0x5a1a38(0x160)](_0x1d79cf[_0x5a1a38(0x23c)],{'type':'string','description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x5a1a38(0x160)](_0x5a1a38(0x207),{'type':_0x1d79cf[_0x5a1a38(0x1cd)],'description':_0x1d79cf['JDNNP'],'demandOption':!![]});},async _0x2d58f2=>{const _0x5644d3=_0x59e398;warnRenamed(_0x5644d3(0x18a),_0x5644d3(0x1be)),await _0x1d79cf[_0x5644d3(0x182)](withTelemetry,_0x5644d3(0x1b3),()=>configSet(_0x2d58f2[_0x5644d3(0x1e3)],_0x2d58f2[_0x5644d3(0x198)],_0x2d58f2['value']));})[_0x59e398(0x156)]('get\x20<env>\x20<key>',![],_0x2e1cfd=>{const _0x5116fd=_0x59e398;return _0x2e1cfd[_0x5116fd(0x160)](_0x1d79cf['obUcx'],{'type':_0x1d79cf['Rkfdv'],'description':_0x1d79cf[_0x5116fd(0x104)],'demandOption':!![]})['positional']('key',{'type':_0x5116fd(0x1ea),'description':_0x1d79cf[_0x5116fd(0x17e)],'demandOption':!![]});},async _0x5ee92a=>{const _0x1430af=_0x59e398;warnRenamed(_0x1d79cf['JHIdU'],_0x1d79cf[_0x1430af(0x1ab)]),await withTelemetry(_0x1430af(0x23b),()=>configGet(_0x5ee92a['env'],_0x5ee92a['key']));})[_0x59e398(0x156)](_0x1d79cf[_0x59e398(0x159)],![],_0xa08c68=>{const _0x555c41=_0x59e398;return _0xa08c68['positional'](_0x1d79cf[_0x555c41(0x143)],{'type':_0x1d79cf['Rkfdv'],'description':_0x1d79cf['JeVnp'],'demandOption':!![]});},async _0x9afbc6=>{const _0xb75f5f=_0x59e398;warnRenamed(_0x1d79cf['njoyP'],'ranger\x20profile\x20config\x20list'),await withTelemetry(_0x1d79cf[_0xb75f5f(0x231)],()=>configList(_0x9afbc6['env']));})[_0x59e398(0x156)](_0x1d79cf[_0x59e398(0x15d)],![],_0x5e4b40=>{const _0x14d7d0=_0x59e398;return _0x5e4b40['positional'](_0x1d79cf['obUcx'],{'type':_0x1d79cf['Rkfdv'],'description':_0x1d79cf['JeVnp'],'demandOption':!![]})['positional']('key',{'type':_0x1d79cf['Rkfdv'],'description':_0x14d7d0(0x1a6),'demandOption':!![]});},async _0xc5655d=>{const _0x1c4ff9=_0x59e398;_0x1d79cf[_0x1c4ff9(0x112)](warnRenamed,_0x1d79cf['LGTkZ'],'ranger\x20profile\x20config\x20unset'),await withTelemetry(_0x1d79cf['Hznzq'],()=>configUnset(_0xc5655d['env'],_0xc5655d['key']));})[_0x59e398(0x16b)](0x1,_0x1d79cf['yIuvJ']);})[_0x4698fa(0x156)](_0x4698fa(0x1e3),![],_0x589ed8=>{const _0x4fba49=_0x4698fa,_0x1f91a7={'HwTvg':function(_0x55ce5c,_0x5ce7cf,_0x1ed484){return _0x55ce5c(_0x5ce7cf,_0x1ed484);},'ArOce':'ranger\x20env\x20ls','WKOII':'ranger\x20profile\x20ls','pCvaO':_0x4fba49(0x1ea)};return _0x589ed8['command']('ls',![],()=>{},async()=>{_0x1f91a7['HwTvg'](warnRenamed,_0x1f91a7['ArOce'],_0x1f91a7['WKOII']),await withTelemetry('env\x20list',()=>envList());})[_0x4fba49(0x156)](_0x4fba49(0x180),![],_0x541e94=>{const _0x201544=_0x4fba49;return _0x541e94['positional'](_0x201544(0x15f),{'type':_0x1f91a7[_0x201544(0x189)],'description':'Name\x20of\x20the\x20environment\x20to\x20update','demandOption':!![]});},async _0x14e530=>{const _0xcc21e8=_0x4fba49;warnRenamed('ranger\x20env\x20update','ranger\x20profile\x20update'),await withTelemetry(_0xcc21e8(0x11c),_0x59dee2=>updateEnv(_0x14e530[_0xcc21e8(0x15f)],_0x59dee2));})['demandCommand'](0x1,'You\x20must\x20specify\x20an\x20env\x20subcommand');})[_0x4698fa(0x156)](_0x4698fa(0x14f),![],_0x35edcf=>{const _0x3a91ac=_0x4698fa,_0x138a30={'dfZed':'string','eqbVs':'description','DcqrG':'Feature\x20review\x20description','nncmr':_0x3a91ac(0x19d),'qqBAB':_0x3a91ac(0x102),'uhltg':'array','HcTvM':function(_0x4f2bf0,_0x44e6e0,_0x3047d0){return _0x4f2bf0(_0x44e6e0,_0x3047d0);},'YYLmu':_0x3a91ac(0x1bf),'bsHgU':'feature\x20create','MBBjE':_0x3a91ac(0x15c),'EUTYB':'limit','AJloI':_0x3a91ac(0x12b),'dvdls':'boolean','dqvbF':'ranger\x20list','stdlj':function(_0x5a6a2c,_0x2a19ea,_0x31ce1b){return _0x5a6a2c(_0x2a19ea,_0x31ce1b);},'ruKAa':'feature\x20list','oKRWi':'ranger\x20feature\x20show','zTVpq':function(_0x44b0dd,_0xfdaa8a,_0x2ab78f){return _0x44b0dd(_0xfdaa8a,_0x2ab78f);},'kTPuS':_0x3a91ac(0x1f8),'lEzKi':_0x3a91ac(0x1bc),'nTCrC':function(_0x4e589a,_0x1a1572,_0x118eba){return _0x4e589a(_0x1a1572,_0x118eba);},'YPdDI':_0x3a91ac(0x1f5),'IChBp':_0x3a91ac(0x216),'VDPlU':_0x3a91ac(0x228),'NVBqo':_0x3a91ac(0x1f2),'ijeEu':_0x3a91ac(0x199),'iEHeD':'feature\x20delete','tXsSF':'ranger\x20feature\x20restore','kdNld':'show\x20[id]','FMvlT':'resume\x20[id]','HRxYk':'add-checklist-item\x20<description>','EBvZr':_0x3a91ac(0x217)};return _0x35edcf[_0x3a91ac(0x156)]('create\x20<name>',![],_0x2ca20e=>{const _0x526205=_0x3a91ac;return _0x2ca20e[_0x526205(0x160)]('name',{'type':_0x138a30[_0x526205(0x177)],'description':'Feature\x20review\x20name','demandOption':!![]})[_0x526205(0x1fd)](_0x138a30[_0x526205(0x1a9)],{'type':'string','alias':'d','description':_0x138a30[_0x526205(0x1a0)]})[_0x526205(0x1fd)]('checklist',{'type':_0x526205(0x173),'alias':'c','description':_0x138a30[_0x526205(0x15b)]})[_0x526205(0x1fd)](_0x138a30[_0x526205(0x133)],{'type':_0x138a30['uhltg'],'hidden':!![]});},async _0x1ebd57=>{const _0xa59526=_0x3a91ac;_0x138a30[_0xa59526(0x1c6)](warnRenamed,'ranger\x20feature\x20create',_0x138a30['YYLmu']),warnFlagRenamed(_0x138a30['YYLmu'],'--checklist',_0xa59526(0x18f));const _0x2b2872=_0x1ebd57['scenario']||_0x1ebd57['checklist'];await withTelemetry(_0x138a30['bsHgU'],()=>featureCreate(_0x1ebd57[_0xa59526(0x1d6)],{'description':_0x1ebd57[_0xa59526(0xfc)],'scenarios':_0x2b2872}));})[_0x3a91ac(0x156)]('list',![],_0x32816b=>{const _0x5ad271=_0x3a91ac;return _0x32816b[_0x5ad271(0x1fd)](_0x138a30[_0x5ad271(0x1c1)],{'type':'boolean','description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x5ad271(0x1fd)](_0x138a30[_0x5ad271(0x111)],{'type':'number','alias':'l','description':_0x5ad271(0x1ff),'default':0xa})[_0x5ad271(0x1fd)]('offset',{'type':'number','alias':'o','description':_0x138a30[_0x5ad271(0x163)],'default':0x0})['option'](_0x5ad271(0x1e0),{'type':_0x138a30[_0x5ad271(0x21d)],'alias':'d','description':_0x5ad271(0x158),'default':![]});},async _0x3b30c8=>{const _0x1660aa=_0x3a91ac;warnRenamed(_0x1660aa(0x1bd),_0x138a30[_0x1660aa(0x227)]),await _0x138a30['stdlj'](withTelemetry,_0x138a30['ruKAa'],()=>featureList({'currentBranch':_0x3b30c8[_0x1660aa(0x15c)],'limit':_0x3b30c8[_0x1660aa(0x122)],'offset':_0x3b30c8[_0x1660aa(0x1ad)],'includeDeleted':_0x3b30c8[_0x1660aa(0x1e0)]}));})[_0x3a91ac(0x156)](_0x138a30['kdNld'],![],_0x49ff21=>{return _0x49ff21['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x1a4103=>{const _0x4df7e2=_0x3a91ac;_0x138a30[_0x4df7e2(0x1c6)](warnRenamed,_0x138a30['oKRWi'],'ranger\x20show'),await _0x138a30[_0x4df7e2(0x16c)](withTelemetry,_0x138a30[_0x4df7e2(0x162)],()=>featureShow(_0x1a4103['id']));})['command'](_0x138a30[_0x3a91ac(0x226)],![],_0xdea220=>{const _0x15e51a=_0x3a91ac;return _0xdea220['positional']('id',{'type':_0x138a30[_0x15e51a(0x177)],'description':_0x15e51a(0x1ca)});},async _0x36bf37=>{const _0x2c5a98=_0x3a91ac;_0x138a30[_0x2c5a98(0x16c)](warnRenamed,_0x138a30['lEzKi'],_0x2c5a98(0x22d)),await _0x138a30[_0x2c5a98(0x190)](withTelemetry,'feature\x20resume',()=>featureResume(_0x36bf37['id']));})[_0x3a91ac(0x156)](_0x138a30[_0x3a91ac(0x10f)],![],_0x13ddcb=>{const _0x4f3d83=_0x3a91ac;return _0x13ddcb['positional'](_0x138a30['eqbVs'],{'type':_0x138a30[_0x4f3d83(0x177)],'description':_0x138a30['YPdDI'],'demandOption':!![]})['option']('id',{'type':_0x138a30[_0x4f3d83(0x177)],'description':_0x138a30[_0x4f3d83(0x131)]});},async _0x57fb32=>{const _0x41fe79=_0x3a91ac;_0x138a30['stdlj'](warnRenamed,'ranger\x20feature\x20add-checklist-item',_0x41fe79(0x1f0)),await withTelemetry(_0x41fe79(0x179),()=>featureAddScenario(_0x57fb32['description'],_0x57fb32['id']));})[_0x3a91ac(0x156)](_0x3a91ac(0x230),![],_0x4dddb9=>{const _0x1c74e1=_0x3a91ac;return _0x4dddb9['positional']('id',{'type':_0x138a30[_0x1c74e1(0x177)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x4f44e8=>{const _0x236e6e=_0x3a91ac;warnRenamed(_0x236e6e(0x12a),_0x138a30[_0x236e6e(0x129)]),await withTelemetry(_0x236e6e(0x10e),()=>featureGetReview(_0x4f44e8['id']));})[_0x3a91ac(0x156)](_0x3a91ac(0x1b5),![],_0x436d4c=>{const _0x2f8bcb=_0x3a91ac;return _0x436d4c[_0x2f8bcb(0x160)]('id',{'type':_0x138a30['dfZed'],'description':_0x138a30['NVBqo']});},async _0x5391e9=>{const _0x20a24e=_0x3a91ac;warnRenamed('ranger\x20feature\x20delete',_0x138a30['ijeEu']),await _0x138a30[_0x20a24e(0x1c6)](withTelemetry,_0x138a30['iEHeD'],()=>featureDelete(_0x5391e9['id']));})['command']('restore\x20<id>',![],_0x42e899=>{const _0x417c13=_0x3a91ac;return _0x42e899[_0x417c13(0x160)]('id',{'type':_0x138a30[_0x417c13(0x177)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x29dec0=>{const _0x4f75a7=_0x3a91ac;warnRenamed(_0x138a30[_0x4f75a7(0x225)],_0x4f75a7(0x1e6)),await withTelemetry('feature\x20restore',()=>featureRestore(_0x29dec0['id']));})[_0x3a91ac(0x16b)](0x1,_0x138a30['EBvZr']);})[_0x4698fa(0x156)](_0x4698fa(0x115),![],_0x5035b1=>{const _0x1d69aa=_0x4698fa,_0x2f52e6={'ERDpl':_0x1d69aa(0x236),'iowdx':'session-id','uueff':function(_0x1e7059,_0x2fdd5b,_0x3588e4){return _0x1e7059(_0x2fdd5b,_0x3588e4);},'CNEmL':_0x1d69aa(0x205),'dJWek':_0x1d69aa(0x22b),'hhMur':'disable','VoRYi':_0x1d69aa(0x128),'SpwXf':_0x1d69aa(0x1d6),'Olbxp':'string','aaTNd':_0x1d69aa(0x1c5)};return _0x5035b1[_0x1d69aa(0x156)](_0x2f52e6[_0x1d69aa(0x1e2)],_0x1d69aa(0x14a),_0x153a98=>{const _0x459ede=_0x1d69aa;return _0x153a98['option'](_0x459ede(0x12e),{'type':'string','description':_0x2f52e6[_0x459ede(0x185)]});},async _0x29ab46=>{const _0x58d407=_0x1d69aa;await withTelemetry(_0x58d407(0x1d9),()=>hook('enable',_0x29ab46[_0x58d407(0x12e)]));})['command'](_0x2f52e6[_0x1d69aa(0x1ba)],_0x2f52e6[_0x1d69aa(0x135)],_0x318aff=>{const _0x345f1b=_0x1d69aa;return _0x318aff[_0x345f1b(0x1fd)](_0x2f52e6[_0x345f1b(0x1e8)],{'type':_0x345f1b(0x1ea),'description':_0x2f52e6[_0x345f1b(0x185)]});},async _0x5d3399=>{const _0x5a9fcd=_0x1d69aa;await _0x2f52e6['uueff'](withTelemetry,_0x2f52e6[_0x5a9fcd(0x13c)],()=>hook('disable',_0x5d3399[_0x5a9fcd(0x12e)]));})[_0x1d69aa(0x1fd)](_0x2f52e6['SpwXf'],{'type':_0x2f52e6['Olbxp'],'description':_0x2f52e6[_0x1d69aa(0xf8)]})[_0x1d69aa(0x1fd)](_0x1d69aa(0x12e),{'type':_0x2f52e6['Olbxp'],'description':_0x1d69aa(0x236)});},async _0x14c8f8=>{const _0x14a529=_0x4698fa;_0x14c8f8[_0x14a529(0x1d6)]&&await hook(_0x14c8f8[_0x14a529(0x1d6)],_0x14c8f8[_0x14a529(0x12e)]);})[_0x4698fa(0x16b)](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()['fail'](async(_0x138523,_0xf1ec60,_0x128846)=>{const _0x248c61=_0x4698fa,_0x30075a={'QGjiY':function(_0x115fc0,_0x366c0d){return _0x115fc0(_0x366c0d);},'LuCLJ':function(_0x13d383,_0x11d703,_0x11cc1a){return _0x13d383(_0x11d703,_0x11cc1a);},'NyPHZ':_0x248c61(0x175),'VzeEs':function(_0xbe2367){return _0xbe2367();},'mPXYt':'Unknown\x20error'},_0x169180=_0x30075a['QGjiY'](sanitizeArgs,process[_0x248c61(0x105)]['slice'](0x2)),_0x4e9aa8=_0x30075a['LuCLJ'](getErrorType,_0x138523,_0xf1ec60);if(_0x138523&&_0x138523[_0x248c61(0x20d)]('Unknown\x20command')){const _0x152350=process['argv'][0x2];console['error'](_0x248c61(0x124)+_0x152350),console[_0x248c61(0x141)](_0x30075a[_0x248c61(0x22a)]);}else{if(_0x138523)console[_0x248c61(0x141)]('\x0a'+_0x138523+'\x0a');else _0xf1ec60&&console[_0x248c61(0x141)]('\x0aError:\x20'+_0xf1ec60['message']+'\x0a');}await logDesirePath({'rawCommand':_0x169180,'errorMessage':_0x138523||_0xf1ec60?.['message'],'errorType':_0x4e9aa8});const _0x449fdb=_0x30075a[_0x248c61(0x16f)](getCurrentCollector);_0x449fdb&&await _0x449fdb[_0x248c61(0x13d)](_0xf1ec60||new Error(_0x138523||_0x30075a[_0x248c61(0x181)])),process[_0x248c61(0x1fa)](0x1);})['epilogue'](_0x4698fa(0x213)+_0x4698fa(0x1c2)+_0x4698fa(0x187))['help']()[_0x4698fa(0x238)](_0x4698fa(0x221),'h')[_0x4698fa(0x1a7)]();
2
+ function _0x4b21(_0x43e835,_0x31c5ea){_0x43e835=_0x43e835-0x1b0;const _0xf581b=_0xf581();let _0x4b21a4=_0xf581b[_0x43e835];return _0x4b21a4;}const _0x30021c=_0x4b21;(function(_0x3e925f,_0x5369f2){const _0x4c570b=_0x4b21,_0x5e7d17=_0x3e925f();while(!![]){try{const _0x28a363=-parseInt(_0x4c570b(0x225))/0x1+parseInt(_0x4c570b(0x26f))/0x2*(parseInt(_0x4c570b(0x1eb))/0x3)+-parseInt(_0x4c570b(0x1e9))/0x4+parseInt(_0x4c570b(0x2f7))/0x5+-parseInt(_0x4c570b(0x252))/0x6*(parseInt(_0x4c570b(0x221))/0x7)+-parseInt(_0x4c570b(0x20d))/0x8+parseInt(_0x4c570b(0x280))/0x9*(parseInt(_0x4c570b(0x272))/0xa);if(_0x28a363===_0x5369f2)break;else _0x5e7d17['push'](_0x5e7d17['shift']());}catch(_0x5163aa){_0x5e7d17['push'](_0x5e7d17['shift']());}}}(_0xf581,0x5402b));import _0xa25af5 from'dotenv';function _0xf581(){const _0x390757=['enable','usage','CFGpk','--checklist','XTMZH','Install\x20skills\x20for\x20OpenCode','ranger\x20profile\x20update','UDaac','MTshV','limit','Initialize\x20Ranger\x20in\x20your\x20project','Scenario\x20description','ranger\x20delete','You\x20must\x20specify\x20a\x20config\x20subcommand','hwczf','Manage\x20profile\x20configuration','yRKyn','Name\x20of\x20the\x20environment','kOumK','update','TtRRi','feature\x20delete','eoZkQ','vpcrm','.\x20[','TRMLy','EOSIr','profile\x20use','rlaCA','failed','profile\x20add','verified','HieRP','ktaUo','--notes','cwd','ltdYc','llGZD','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','option','demandCommand','add\x20env\x20<env-name>','cQnxP','resume','xgKyw','mhARu','VnkIK','ranger\x20show','\x20FAILED','start\x20[token]','blocked','Unknown\x20command','ieBWl','ZnoGC','FDYrz','ePZeM','nDGLR','report','ranger\x20use','ibuuQ','gqbqM','LZfQa','Vwkfl','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','evaluation','MqxKA','status','NHVQK','value','DMleC','mSFhJ','token','ImgDH','Install\x20Ranger\x20skills','xNFet','add-checklist-item\x20<description>','ranger\x20resume','1684915NWwjCx','OaPXP','KbWML','Documentation:\x0a','Evaluation:\x20','edit-scenario','zStdk','incomplete','mzGsO','feature\x20get-feedback','unhandledRejection','Usage:\x20ranger\x20profile\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Profile\x20config\x20(set/get/list/unset)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20add\x20local\x0a\x20\x20ranger\x20profile\x20encrypt-auth\x20ci\x0a\x20\x20ranger\x20profile\x20config\x20set\x20local\x20headless\x20true','partial','Albdc','boolean','current-branch','setup\x20[token]','IdDfl','Include\x20soft-deleted\x20feature\x20reviews','ptsyl','EFGbB','qiGwt','opencode','uNIUi','parse','ranger\x20restore','deMaZ','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','\x0aUnknown\x20command:\x20','juakS','Scenario\x20number\x20to\x20edit\x20(1-based)','skillup','FQbTM','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','dkBIr','Usage:\x20ranger\x20profile\x20config\x20<command>\x0a\x0aCommands:\x0a\x20\x20set\x20<profile>\x20<key>\x20<value>\x20\x20\x20\x20Set\x20a\x20config\x20value\x0a\x20\x20get\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Get\x20a\x20config\x20value\x0a\x20\x20list\x20<profile>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20all\x20config\x20for\x20a\x20profile\x0a\x20\x20unset\x20<profile>\x20<key>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20a\x20config\x20value\x0a\x0aKeys:\x0a\x20\x20userAgent\x20\x20\x20\x20\x20\x20\x20\x20Browser\x20user\x20agent\x20string\x0a\x20\x20headless\x20\x20\x20\x20\x20\x20\x20\x20\x20Run\x20browser\x20in\x20headless\x20mode\x20(true/false)\x0a\x20\x20storageState\x20\x20\x20\x20\x20Path\x20to\x20auth\x20state\x20file\x20(e.g.,\x20./auth.json)\x0a\x20\x20header.<name>\x20\x20\x20\x20Custom\x20HTTP\x20header\x20(e.g.,\x20header.X-Test-Mode)\x0a\x0aExamples:\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20userAgent\x20\x22Mozilla/5.0\x20(CI\x20Bot)\x22\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20headless\x20true\x0a\x20\x20ranger\x20profile\x20config\x20set\x20ci\x20header.Authorization\x20\x27${AUTH_TOKEN}\x27','start-path','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','disable','ranger\x20feature\x20add-checklist-item','iwHal','unset\x20<env>\x20<key>','dmUeL','ranger\x20profile\x20config\x20get','QSXNd','ranger\x20feature\x20list','profile\x20config\x20list','exclude-scenario','ranger\x20go','--task','WFVVt','profile\x20config\x20unset','riThU','add\x20env','project','strictCommands','skip-auth','show\x20[id]','ranger\x20feature\x20delete','task','argv','vpfwN','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','login','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','HkXDq','Set\x20a\x20config\x20value','Feature\x20review\x20description','tUMiz','list','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','RflVW','OfNCJ','item','mxSsJ','kvOOG','You\x20must\x20specify\x20an\x20auth\x20subcommand','iNXCe','ZtfKC','pCGTg','env\x20update','add-scenario','VjnQN','profile-name','1129580CFBblL','BhDHV','6wClkcd','kKmWe','hook:enable','Feature\x20review\x20ID\x20to\x20restore','ranger','Profile\x20name','SsbiD','ranger\x20env\x20ls','issues','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','ranger\x20env\x20update','use','oHiQA','KKmXP','show','\x20INCOMPLETE','name','ranger\x20list','ranger\x20profile\x20config\x20set','feature\x20create','VsVQF','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','force','CtXoV','create\x20<name>','env','command','error','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','ranger\x20auth\x20encrypt','SGWfz','scope','help','exit','5289352YkzbMK','skip-chromium','encrypt\x20<profile>','ranger\x20verify-feature','profile\x20config\x20set','AeeYa','log','nIRwL','bbbei','uLGeB','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','notes','evaluationReason','bmXAS','Update\x20authentication\x20for\x20an\x20existing\x20profile','fcjoM','fbJLK','unXbK','pGmoX','\x20BLOCKED','4058565KHBBvH','create','icZOx','env-name','479061DAMBmb','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','XNtXr','FYIxP','url','pZjRI','config\x20get','HgMoX','description','qzyGc','ranger\x20feature\x20restore','xLgFS','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','ygQqS','pqJiT','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','string','session-id','pwZJr','config\x20set','BqhfY','mjPaU','ranger\x20start','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','jOWaG','HNLjW','rsBQt','positional','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','mOCct','checklist','EponG','trackCommandError','HGYoa','LFkwv','List\x20all\x20profiles','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','config','ogpAk','Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','config\x20list','Config\x20key\x20to\x20remove','6thBPnA','claude','PvlVr','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','delete\x20[id]','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','debug-address-comments','update\x20<env-name>','PIdOa','model','Config\x20key','scenario','RbKiF','number','OhTAO','Scenario\x20index\x20(1-based)','--scenario','Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','profile','BCWim','user','Feature\x20review\x20ID','Name\x20of\x20the\x20profile\x20to\x20update','ranger\x20profile\x20config\x20list','olakc','update\x20<profile-name>','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','ranger\x20feature\x20create','308820QZuFIL','MNEah','jvPLp','28680zhZnDL','fgxBf','restore','Number\x20of\x20feature\x20reviews\x20to\x20skip','gtrJk','ranger\x20add\x20env','sNnit','yeGzQ','List\x20all\x20config\x20for\x20a\x20profile','You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand','include-deleted','ranger\x20profile\x20ls','SFGqb','setup-ci\x20<token>','5337TnAeqB','list\x20<env>','ranger\x20setup','QYtxK','cdp-endpoint','Remove\x20a\x20config\x20value','stpXS','restore\x20<id>','get-review','ranger\x20config\x20get','XqMiG','Reason:\x20','Add\x20profile\x20configuration','use\x20<profile-name>','BfUhJ','debug-outcome','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','QwcsM','key','gWYBU','array','Ranger\x20API\x20token','egqjK','Environment\x20name','use\x20<env-name>','length','Name\x20of\x20the\x20profile','feature\x20resume','UggcZ','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','feature\x20show','FUnHT','fROrG','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','Vvxhl','JQQMD','KrDIU','Get\x20a\x20config\x20value','vXUuF','Restore\x20a\x20soft-deleted\x20feature\x20review','jRaeA','offset'];_0xf581=function(){return _0x390757;};return _0xf581();}import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x39a21b=_0x4b21,_0x5ded30={'dhesf':function(_0x3655dd,_0x43a0cc){return _0x3655dd(_0x43a0cc);},'laYps':function(_0x421380,_0x1c7b1c){return _0x421380(_0x1c7b1c);}};let _0x34ec9f=process[_0x39a21b(0x2cd)]();const _0x31e8c8=parse(_0x34ec9f)['root'];while(_0x34ec9f!==_0x31e8c8){if(_0x5ded30['dhesf'](existsSync,join(_0x34ec9f,'.ranger'))||_0x5ded30['laYps'](existsSync,join(_0x34ec9f,'.env')))return _0x34ec9f;_0x34ec9f=dirname(_0x34ec9f);}return process['cwd']();}_0xa25af5[_0x30021c(0x24d)]({'path':join(findProjectRoot(),'.env')});import _0x2b2c43 from'yargs/yargs';import{addEnv,clean,login,start,setupCi,useEnv,updateEnv,update,skillup,envList,hook}from'./commands/index.js';import{authEncrypt}from'./commands/authEncrypt.js';import{status}from'./commands/status.js';import{configSet,configGet,configList,configUnset}from'./commands/config.js';import{verifyFeature}from'./commands/verifyFeature.js';import{loadRangerConfig}from'./commands/utils/rangerConfig.js';import{featureCreate,featureList,featureShow,featureResume,featureAddScenario,featureEditScenario,featureGetReview,featureReportPrDescription,featureDelete,featureRestore}from'./commands/feature.js';import{logDesirePath,getErrorType,sanitizeArgs}from'./commands/utils/desirePathLog.js';import{getCurrentVersion}from'./commands/utils/version.js';import{withTelemetry,getCurrentCollector}from'./commands/utils/telemetry.js';process['on'](_0x30021c(0x301),async _0x5d36a4=>{const _0xe3901a=_0x30021c,_0x27553b={'riThU':function(_0x5e3551){return _0x5e3551();}},_0x4f0fc0=_0x27553b[_0xe3901a(0x1c9)](getCurrentCollector);_0x4f0fc0&&await _0x4f0fc0[_0xe3901a(0x248)](_0x5d36a4),process['exitCode']=0x1;});const rawArgs=process[_0x30021c(0x1d1)]['slice'](0x2),TOP_LEVEL_HELP='Usage:\x20ranger\x20<command>\x20[options]\x0a\x0aCommands:\x0a\x20\x20setup\x20[token]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Initialize\x20Ranger\x20in\x20your\x20project\x0a\x20\x20login\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Re-authenticate\x20without\x20full\x20setup\x0a\x20\x20skillup\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Install\x20Ranger\x20skills\x0a\x20\x20clean\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove\x20Ranger\x20artifacts\x20from\x20the\x20project\x0a\x20\x20status\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20version,\x20org,\x20skills,\x20and\x20profile\x20status\x0a\x20\x20update\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version\x0a\x0a\x20\x20profile\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Manage\x20profiles\x20(add/use/ls/update/config/encrypt-auth)\x0a\x20\x20\x20\x20add\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Add\x20profile\x20(options:\x20--ci,\x20--skip-auth)\x0a\x20\x20\x20\x20use\x20<profile-name>\x20\x20\x20\x20\x20\x20\x20\x20Switch\x20active\x20profile\x0a\x20\x20\x20\x20ls\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20profiles\x0a\x20\x20\x20\x20update\x20<profile-name>\x20\x20\x20\x20\x20Re-capture\x20auth\x20for\x20a\x20profile\x0a\x20\x20\x20\x20encrypt-auth\x20<profile>\x20\x20\x20\x20Encrypt\x20auth.json\x20for\x20safe\x20git\x20storage\x0a\x20\x20\x20\x20config\x20<command>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Set/get/list/unset\x20profile\x20config\x0a\x0a\x20\x20create\x20<name>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Create\x20a\x20feature\x20review\x20with\x20scenarios\x0a\x20\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20List\x20feature\x20reviews\x0a\x20\x20show\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20feature\x20review\x20details\x0a\x20\x20resume\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Resume\x20a\x20feature\x20review\x0a\x20\x20add-scenario\x20<description>\x20\x20Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review\x0a\x20\x20edit-scenario\x20<description>\x20Edit\x20a\x20scenario\x20description\x0a\x20\x20get-review\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20reviewer\x20feedback\x0a\x20\x20report\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Generate\x20PR\x20description\x20markdown\x0a\x20\x20delete\x20[id]\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Soft\x20delete\x20a\x20feature\x20review\x0a\x20\x20restore\x20<id>\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Restore\x20a\x20soft-deleted\x20feature\x20review\x0a\x0a\x20\x20go\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Verify\x20a\x20scenario\x20in\x20the\x20browser\x0a\x0aRun\x20`ranger\x20<command>\x20--help`\x20for\x20details.',PROFILE_HELP=_0x30021c(0x302),PROFILE_CONFIG_HELP=_0x30021c(0x1b8);function warnRenamed(_0x58d4c7,_0x4050de){console['error']('\x0a'+_0x58d4c7+'\x20is\x20now\x20'+_0x4050de+'\x0a');}function argUsed(_0xf45ae7){return rawArgs['some'](_0x11c328=>_0x11c328===_0xf45ae7||_0x11c328['startsWith'](_0xf45ae7+'='));}function warnFlagRenamed(_0x233971,_0x4910f3,_0x368f25){const _0xb61c30={'ZMUTu':function(_0x5c912e,_0x35b10){return _0x5c912e(_0x35b10);}};_0xb61c30['ZMUTu'](argUsed,_0x4910f3)&&warnRenamed(_0x233971+'\x20'+_0x4910f3,_0x233971+'\x20'+_0x368f25);}async function runGoCommand(_0x14676e,_0x4589fc=![]){const _0x4e8176=_0x30021c,_0x1e4e16={'IdDfl':function(_0x4833e0,_0x2594e7){return _0x4833e0+_0x2594e7;},'gtrJk':_0x4e8176(0x210),'mzGsO':_0x4e8176(0x1c5),'EdGst':function(_0x322c0a,_0x4416aa,_0x776c17,_0x337895){return _0x322c0a(_0x4416aa,_0x776c17,_0x337895);},'Forws':'--env','ktaUo':function(_0x39c437,_0x11bbbe,_0x372f06,_0x2748dc){return _0x39c437(_0x11bbbe,_0x372f06,_0x2748dc);},'eoZkQ':_0x4e8176(0x1c6),'gWYBU':_0x4e8176(0x2cc),'WFxIz':'--item','HGYoa':_0x4e8176(0x263),'IHDpG':function(_0x1035cd,_0x30fa42){return _0x1035cd??_0x30fa42;},'hxRjr':'flag','pDqaV':'config','Vvxhl':'default','PIdOa':_0x4e8176(0x259),'TojiK':function(_0x59067e,_0x5d6f7c){return _0x59067e+_0x5d6f7c;},'tROwk':function(_0x384c41,_0x3152fc){return _0x384c41===_0x3152fc;},'VuYeW':_0x4e8176(0x1fa),'FUnHT':'\x20PARTIAL','HNLjW':_0x4e8176(0x220),'AeeYa':_0x4e8176(0x2da),'llGZD':'verified'};_0x4589fc&&warnRenamed(_0x1e4e16[_0x4e8176(0x276)],_0x1e4e16['mzGsO']);_0x1e4e16['EdGst'](warnFlagRenamed,_0x1e4e16[_0x4e8176(0x2ff)],_0x1e4e16['Forws'],'--profile'),_0x1e4e16[_0x4e8176(0x2cb)](warnFlagRenamed,'ranger\x20go',_0x1e4e16[_0x4e8176(0x2c0)],_0x1e4e16[_0x4e8176(0x293)]),_0x1e4e16[_0x4e8176(0x2cb)](warnFlagRenamed,'ranger\x20go',_0x1e4e16['WFxIz'],_0x1e4e16[_0x4e8176(0x249)]);const _0x86edf8=await loadRangerConfig(),_0x424b6a=_0x14676e['model'],_0x5afbec=_0x86edf8['model'],_0x2f96e2=_0x1e4e16['IHDpG'](_0x424b6a,_0x5afbec),_0x1df11d=_0x424b6a?_0x1e4e16['hxRjr']:_0x5afbec?_0x1e4e16['pDqaV']:_0x1e4e16[_0x4e8176(0x2a2)],_0x36abe6=await verifyFeature({'profile':_0x14676e[_0x4e8176(0x265)]??_0x14676e['env'],'notes':_0x14676e['notes']??_0x14676e[_0x4e8176(0x1d0)],'scenario':_0x14676e['scenario']??_0x14676e[_0x4e8176(0x1de)],'startPath':_0x14676e['start-path'],'debugOutcome':_0x14676e['debug-outcome'],'debugAddressComments':_0x14676e[_0x1e4e16[_0x4e8176(0x25b)]],'verifyModel':_0x2f96e2,'verifyModelInput':_0x2f96e2,'verifyModelSource':_0x1df11d});console[_0x4e8176(0x213)](_0x1e4e16['TojiK']('\x0a','='['repeat'](0x3c))),console['log'](_0x36abe6['evaluation']==='verified'?'\x20VERIFIED':_0x1e4e16['tROwk'](_0x36abe6['evaluation'],'incomplete')?_0x1e4e16['VuYeW']:_0x36abe6[_0x4e8176(0x2ea)]==='partial'?_0x1e4e16[_0x4e8176(0x29f)]:_0x36abe6[_0x4e8176(0x2ea)]===_0x4e8176(0x2dc)?_0x1e4e16[_0x4e8176(0x241)]:_0x1e4e16[_0x4e8176(0x212)]),console[_0x4e8176(0x213)]('='['repeat'](0x3c)),console[_0x4e8176(0x213)]('Summary:\x20'+_0x36abe6['summary']),console['log'](_0x4e8176(0x2fb)+_0x36abe6[_0x4e8176(0x2ea)]),console[_0x4e8176(0x213)](_0x4e8176(0x28b)+_0x36abe6[_0x4e8176(0x219)]),_0x36abe6[_0x4e8176(0x1f3)]?.[_0x4e8176(0x299)]&&(console['log']('\x0aIssues:'),_0x36abe6[_0x4e8176(0x1f3)]['forEach']((_0x484d73,_0x1e0edf)=>{const _0x119519=_0x4e8176;console[_0x119519(0x213)]('\x0a'+_0x1e4e16[_0x119519(0x308)](_0x1e0edf,0x1)+_0x119519(0x2c2)+_0x484d73['severity']+']\x20'+_0x484d73['description']);})),process[_0x4e8176(0x20c)](_0x36abe6[_0x4e8176(0x2ea)]===_0x1e4e16[_0x4e8176(0x2cf)]?0x0:0x1);}_0x2b2c43(process['argv']['slice'](0x2))['scriptName'](_0x30021c(0x1ef))[_0x30021c(0x2ab)](TOP_LEVEL_HELP)['version'](getCurrentVersion())[_0x30021c(0x205)](_0x30021c(0x203),_0x30021c(0x232),_0x5d6958=>{const _0x5cd206=_0x30021c,_0x777ea={'TtRRi':'string','jRaeA':'Feature\x20review\x20name','OfNCJ':_0x5cd206(0x1d8),'UqxRl':'scenario','ygQqS':_0x5cd206(0x294)};return _0x5d6958[_0x5cd206(0x243)](_0x5cd206(0x1fb),{'type':_0x777ea[_0x5cd206(0x2be)],'description':_0x777ea[_0x5cd206(0x2a8)],'demandOption':!![]})[_0x5cd206(0x2d1)](_0x5cd206(0x22e),{'type':_0x5cd206(0x237),'alias':'d','description':_0x777ea[_0x5cd206(0x1dd)]})['option'](_0x777ea['UqxRl'],{'type':_0x777ea[_0x5cd206(0x234)],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option']('checklist',{'type':_0x777ea['ygQqS'],'hidden':!![]});},async _0x34ff68=>{const _0x3edf78=_0x30021c,_0x1e8e6b={'RNSGp':'ranger\x20create','CFGpk':'--scenario','mhARu':function(_0x59ac80,_0x554631,_0x2d2c65){return _0x59ac80(_0x554631,_0x2d2c65);},'vpfwN':_0x3edf78(0x222)};warnFlagRenamed(_0x1e8e6b['RNSGp'],_0x3edf78(0x2ad),_0x1e8e6b[_0x3edf78(0x2ac)]);const _0x14b460=_0x34ff68[_0x3edf78(0x25e)]||_0x34ff68[_0x3edf78(0x246)];await _0x1e8e6b[_0x3edf78(0x2d7)](withTelemetry,_0x1e8e6b[_0x3edf78(0x1d2)],()=>featureCreate(_0x34ff68['name'],{'description':_0x34ff68['description'],'scenarios':_0x14b460}));})['command']('list','List\x20all\x20feature\x20reviews',_0x2160ce=>{const _0x26eb60=_0x30021c,_0x4f14b6={'EFGbB':'current-branch','BCWim':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','Nvhiw':'limit','vXUuF':_0x26eb60(0x236),'HgMoX':_0x26eb60(0x2a9),'kKmWe':_0x26eb60(0x260),'qiGwt':_0x26eb60(0x275),'QhbPe':_0x26eb60(0x27c),'Isdui':_0x26eb60(0x305)};return _0x2160ce[_0x26eb60(0x2d1)](_0x4f14b6[_0x26eb60(0x30b)],{'type':'boolean','description':_0x4f14b6[_0x26eb60(0x266)]})['option'](_0x4f14b6['Nvhiw'],{'type':'number','alias':'l','description':_0x4f14b6[_0x26eb60(0x2a6)],'default':0xa})[_0x26eb60(0x2d1)](_0x4f14b6[_0x26eb60(0x22d)],{'type':_0x4f14b6[_0x26eb60(0x1ec)],'alias':'o','description':_0x4f14b6[_0x26eb60(0x30c)],'default':0x0})[_0x26eb60(0x2d1)](_0x4f14b6['QhbPe'],{'type':_0x4f14b6['Isdui'],'alias':'d','description':_0x26eb60(0x309),'default':![]});},async _0x4ed397=>{const _0x1ec172=_0x30021c;await withTelemetry(_0x1ec172(0x1da),()=>featureList({'currentBranch':_0x4ed397[_0x1ec172(0x306)],'limit':_0x4ed397['limit'],'offset':_0x4ed397[_0x1ec172(0x2a9)],'includeDeleted':_0x4ed397[_0x1ec172(0x27c)]}));})[_0x30021c(0x205)](_0x30021c(0x1ce),'Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x20b2e8=>{const _0x90babe=_0x30021c,_0x788ca4={'meWBd':'string','gqbqM':_0x90babe(0x268)};return _0x20b2e8[_0x90babe(0x243)]('id',{'type':_0x788ca4['meWBd'],'description':_0x788ca4[_0x90babe(0x2e6)]});},async _0x1d41c1=>{const _0x20faf2=_0x30021c;await withTelemetry(_0x20faf2(0x1f9),()=>featureShow(_0x1d41c1['id']));})['command']('resume\x20[id]','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context',_0x235019=>{const _0xa2a50d=_0x30021c,_0x32331b={'ygSxp':_0xa2a50d(0x255)};return _0x235019['positional']('id',{'type':'string','description':_0x32331b['ygSxp']});},async _0x218f74=>{const _0x265e26=_0x30021c,_0x58e975={'wAXBv':function(_0x78d1b3,_0x536f5e,_0x5f1bac){return _0x78d1b3(_0x536f5e,_0x5f1bac);}};await _0x58e975['wAXBv'](withTelemetry,_0x265e26(0x2d5),()=>featureResume(_0x218f74['id']));})['command']('add-scenario\x20<description>',_0x30021c(0x244),_0x429804=>{const _0x48a50a=_0x30021c,_0x3112a9={'PILFG':_0x48a50a(0x22e),'qbIfS':_0x48a50a(0x237),'eEWSR':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x429804['positional'](_0x3112a9['PILFG'],{'type':'string','description':_0x48a50a(0x2b5),'demandOption':!![]})[_0x48a50a(0x2d1)]('id',{'type':_0x3112a9['qbIfS'],'description':_0x3112a9['eEWSR']});},async _0xf4418d=>{const _0x36fccb=_0x30021c,_0x432d59={'dmUeL':function(_0x6ffdef,_0x857564,_0x519a9f){return _0x6ffdef(_0x857564,_0x519a9f);}};await _0x432d59[_0x36fccb(0x1bf)](withTelemetry,_0x36fccb(0x1e6),()=>featureAddScenario(_0xf4418d[_0x36fccb(0x22e)],_0xf4418d['id']));})[_0x30021c(0x205)]('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0x231674=>{const _0xaef63b=_0x30021c,_0x20abc1={'ImgDH':'string','bbbei':'New\x20scenario\x20description','BnWrI':_0xaef63b(0x25e),'leXEv':_0xaef63b(0x2e9)};return _0x231674[_0xaef63b(0x243)]('description',{'type':_0x20abc1[_0xaef63b(0x2f2)],'description':_0x20abc1[_0xaef63b(0x215)],'demandOption':!![]})[_0xaef63b(0x2d1)](_0x20abc1['BnWrI'],{'type':'number','description':_0xaef63b(0x1b3),'demandOption':!![]})[_0xaef63b(0x2d1)]('id',{'type':'string','description':_0x20abc1['leXEv']});},async _0x52e5ba=>{const _0x1362fc=_0x30021c,_0x14c2ed={'SsbiD':function(_0xce3b90,_0x597d77,_0x4f4640){return _0xce3b90(_0x597d77,_0x4f4640);}};await _0x14c2ed[_0x1362fc(0x1f1)](withTelemetry,_0x1362fc(0x2fc),()=>featureEditScenario(_0x52e5ba[_0x1362fc(0x22e)],{'id':_0x52e5ba['id'],'scenario':_0x52e5ba['scenario']}));})['command']('report\x20[id]',_0x30021c(0x290),_0x13b325=>{const _0x4e06ec=_0x30021c,_0x3b4f48={'unXbK':_0x4e06ec(0x1c4),'VsVQF':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x13b325['positional']('id',{'type':'string','description':'Feature\x20review\x20ID'})[_0x4e06ec(0x2d1)](_0x3b4f48[_0x4e06ec(0x21e)],{'type':_0x4e06ec(0x294),'description':_0x3b4f48[_0x4e06ec(0x1ff)]});},async _0xc7d5bb=>{const _0x3b24f9=_0x30021c,_0x49a072={'jjbKr':function(_0x473ef4,_0xcd7f51,_0x210b7d){return _0x473ef4(_0xcd7f51,_0x210b7d);}},_0x12e2b8=_0xc7d5bb['exclude-scenario'],_0x45b5df=_0x12e2b8?_0x12e2b8['map'](_0x3e701d=>Number(_0x3e701d)):undefined;await _0x49a072['jjbKr'](withTelemetry,_0x3b24f9(0x2e3),()=>featureReportPrDescription(_0xc7d5bb['id'],{'excludeScenarios':_0x45b5df}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x12e7a3=>{const _0x2360c8=_0x30021c,_0x58e7e9={'stpXS':_0x2360c8(0x237),'ZtfKC':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0x12e7a3[_0x2360c8(0x243)]('id',{'type':_0x58e7e9[_0x2360c8(0x286)],'description':_0x58e7e9[_0x2360c8(0x1e3)]});},async _0x1e8029=>{const _0x1bccb3=_0x30021c,_0x4ab929={'KUjXQ':function(_0x44e59c,_0x4a656e,_0x1f90c1){return _0x44e59c(_0x4a656e,_0x1f90c1);}};await _0x4ab929['KUjXQ'](withTelemetry,_0x1bccb3(0x288),()=>featureGetReview(_0x1e8029['id']));})[_0x30021c(0x205)](_0x30021c(0x256),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x4ea39b=>{const _0x50ba17=_0x30021c;return _0x4ea39b[_0x50ba17(0x243)]('id',{'type':_0x50ba17(0x237),'description':'Feature\x20review\x20ID'});},async _0x53e83a=>{const _0x5626e7={'FnhyL':function(_0x21badd,_0x2c543d,_0x59fa31){return _0x21badd(_0x2c543d,_0x59fa31);},'PRifO':'delete'};await _0x5626e7['FnhyL'](withTelemetry,_0x5626e7['PRifO'],()=>featureDelete(_0x53e83a['id']));})['command'](_0x30021c(0x287),_0x30021c(0x2a7),_0x41e91f=>{const _0x15e982=_0x30021c;return _0x41e91f[_0x15e982(0x243)]('id',{'type':'string','description':_0x15e982(0x1ee),'demandOption':!![]});},async _0x134df3=>{const _0x23c0f1=_0x30021c;await withTelemetry(_0x23c0f1(0x274),()=>featureRestore(_0x134df3['id']));})['command'](_0x30021c(0x307),_0x30021c(0x2b4),_0x14b4f8=>{const _0x469a41=_0x30021c,_0x5407c2={'VnkIK':_0x469a41(0x2f1),'EponG':_0x469a41(0x237),'OaPXP':'project','pCGTg':'url','SGWfz':_0x469a41(0x23f),'AVnBo':'boolean','cDRYb':_0x469a41(0x29d),'VCOHo':_0x469a41(0x1db)};return _0x14b4f8[_0x469a41(0x243)](_0x5407c2[_0x469a41(0x2d8)],{'type':_0x5407c2[_0x469a41(0x247)],'description':_0x469a41(0x1ba)})['option']('skip-chromium',{'type':_0x469a41(0x305),'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})['option']('scope',{'type':_0x5407c2[_0x469a41(0x247)],'choices':['user',_0x5407c2[_0x469a41(0x2f8)]],'description':_0x469a41(0x2d0)})[_0x469a41(0x2d1)](_0x5407c2[_0x469a41(0x1e4)],{'type':_0x5407c2[_0x469a41(0x247)],'description':_0x5407c2[_0x469a41(0x209)]})['option'](_0x469a41(0x201),{'type':_0x5407c2['AVnBo'],'description':_0x5407c2['cDRYb'],'default':![]})['option']('opencode',{'type':'boolean','description':_0x5407c2['VCOHo'],'default':![]});},async _0x1d45cf=>{const _0x403780=_0x30021c,_0x5c420b={'fgxBf':'start'};await withTelemetry(_0x5c420b[_0x403780(0x273)],_0x2dfefb=>start(_0x1d45cf['token'],{'skipChromium':_0x1d45cf[_0x403780(0x20e)],'scope':_0x1d45cf['scope'],'url':_0x1d45cf['url'],'force':_0x1d45cf[_0x403780(0x201)],'opencode':_0x1d45cf[_0x403780(0x30d)]},_0x2dfefb));})['command'](_0x30021c(0x27f),'Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)',_0x37f6dc=>{const _0x48c51d=_0x30021c,_0x3080dd={'hwczf':'string','aWCuM':_0x48c51d(0x265),'fmEaE':_0x48c51d(0x1d5),'VcVwN':_0x48c51d(0x305)};return _0x37f6dc[_0x48c51d(0x243)]('token',{'type':_0x3080dd[_0x48c51d(0x2b8)],'description':_0x48c51d(0x295),'demandOption':!![]})['option'](_0x3080dd['aWCuM'],{'type':_0x48c51d(0x237),'description':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)'})[_0x48c51d(0x2d1)]('base-url',{'type':_0x3080dd['hwczf'],'description':_0x3080dd['fmEaE']})[_0x48c51d(0x2d1)]('skip-chromium',{'type':_0x3080dd['VcVwN'],'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0xe5b9e6=>{const _0x2576e8=_0x30021c;await withTelemetry('setup-ci',_0x606436=>setupCi(_0xe5b9e6['token'],{'profile':_0xe5b9e6[_0x2576e8(0x265)],'baseUrl':_0xe5b9e6['base-url'],'skipChromium':_0xe5b9e6['skip-chromium']},_0x606436));})[_0x30021c(0x205)]('login',_0x30021c(0x1d3),()=>{},async()=>{const _0x46bc5f=_0x30021c,_0x1c819a={'mSFhJ':function(_0x5e0c77,_0x555ad1,_0x40643c){return _0x5e0c77(_0x555ad1,_0x40643c);},'ermSg':_0x46bc5f(0x1d4)};await _0x1c819a[_0x46bc5f(0x2f0)](withTelemetry,_0x1c819a['ermSg'],()=>login());})['command'](_0x30021c(0x1b4),_0x30021c(0x2f3),_0x2235ad=>{const _0xf2efe0=_0x30021c,_0x31001c={'kOumK':'opencode','jILpt':'boolean','kEnLS':_0xf2efe0(0x2af),'vpcrm':_0xf2efe0(0x237),'RoQXw':'project'};return _0x2235ad[_0xf2efe0(0x2d1)](_0x31001c[_0xf2efe0(0x2bc)],{'type':_0x31001c['jILpt'],'description':_0x31001c['kEnLS'],'default':![]})[_0xf2efe0(0x2d1)]('scope',{'type':_0x31001c[_0xf2efe0(0x2c1)],'choices':['user',_0x31001c['RoQXw']],'description':'Install\x20scope\x20for\x20skills'});},async _0x233d52=>{const _0x40cc9e=_0x30021c,_0x3666b2={'yeGzQ':function(_0x3ab88c,_0x5452fd){return _0x3ab88c(_0x5452fd);},'DMleC':function(_0x1acd42,_0x50940b,_0x5caff6){return _0x1acd42(_0x50940b,_0x5caff6);},'SFDHd':_0x40cc9e(0x1b4)},_0x2adeb8=_0x3666b2[_0x40cc9e(0x279)](Boolean,_0x233d52['opencode']);await _0x3666b2[_0x40cc9e(0x2ef)](withTelemetry,_0x3666b2['SFDHd'],()=>skillup({'autoInstall':_0x233d52[_0x40cc9e(0x20a)],'platform':_0x2adeb8?_0x40cc9e(0x30d):_0x40cc9e(0x253)}));})['command']('clean',_0x30021c(0x200),()=>{},async()=>{const _0x308c64=_0x30021c,_0x4c6d1f={'egqjK':function(_0x3146d6,_0x16d8ed,_0x12054e){return _0x3146d6(_0x16d8ed,_0x12054e);}};await _0x4c6d1f[_0x308c64(0x296)](withTelemetry,'clean',()=>clean());})['command']('profile','Manage\x20profiles',_0x4656a6=>{const _0x31cfa2=_0x30021c,_0x34ec56={'OFCwK':_0x31cfa2(0x1e8),'xuWzU':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','KrDIU':_0x31cfa2(0x24f),'FYIxP':_0x31cfa2(0x305),'tBuLh':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','ptsyl':_0x31cfa2(0x22a),'llSCM':_0x31cfa2(0x226),'cQnxP':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','DbXcI':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','XNtXr':_0x31cfa2(0x2c8),'fydvp':function(_0x3b94d8,_0x59b664){return _0x3b94d8(_0x59b664);},'OhTAO':_0x31cfa2(0x237),'ltdYc':_0x31cfa2(0x29a),'mSwGN':function(_0x57d035,_0x1838da,_0x469fd1){return _0x57d035(_0x1838da,_0x469fd1);},'jOWaG':_0x31cfa2(0x265),'UcMzS':function(_0x854b1e,_0xe41a95,_0x5d3515){return _0x854b1e(_0xe41a95,_0x5d3515);},'BqhfY':function(_0x1e9ebb,_0x1a9d9a,_0x47902c){return _0x1e9ebb(_0x1a9d9a,_0x47902c);},'RbKiF':'profile\x20update','xgKyw':'key','jnfBs':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','QwdmC':'value','xZfQm':'Profile\x20name','eHJhL':_0x31cfa2(0x251),'mFPcX':function(_0x8924d0,_0x26d5f3,_0x12db94){return _0x8924d0(_0x26d5f3,_0x12db94);},'rlaCA':'set\x20<profile>\x20<key>\x20<value>','bYjAr':'get\x20<profile>\x20<key>','LnUOR':_0x31cfa2(0x2a5),'BhDHV':_0x31cfa2(0x27a),'PNrqI':_0x31cfa2(0x285),'SFGqb':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','SGlLl':'add\x20<profile-name>','ibuuQ':_0x31cfa2(0x28c),'QJEdx':'Switch\x20to\x20using\x20a\x20specific\x20profile','bmVpl':'encrypt-auth\x20<profile>','rsBQt':_0x31cfa2(0x264),'QSXNd':_0x31cfa2(0x24b),'dukbb':_0x31cfa2(0x21b),'xHNks':'You\x20must\x20specify\x20a\x20profile\x20subcommand'};return _0x4656a6[_0x31cfa2(0x2ab)](PROFILE_HELP)['command'](_0x34ec56['SGlLl'],_0x34ec56[_0x31cfa2(0x2e5)],_0x559414=>{const _0x1a9067=_0x31cfa2;return _0x559414['positional'](_0x34ec56['OFCwK'],{'type':'string','description':_0x34ec56['xuWzU'],'demandOption':!![]})['option']('ci',{'type':_0x1a9067(0x305),'description':_0x34ec56[_0x1a9067(0x2a4)],'default':![]})['option']('skip-auth',{'type':_0x34ec56[_0x1a9067(0x229)],'description':_0x34ec56['tBuLh'],'default':![]})[_0x1a9067(0x2d1)](_0x34ec56[_0x1a9067(0x30a)],{'type':'string','description':_0x34ec56['llSCM']})['option'](_0x1a9067(0x201),{'type':_0x34ec56['FYIxP'],'description':_0x34ec56[_0x1a9067(0x2d4)],'default':![]})[_0x1a9067(0x2d1)]('cdp-endpoint',{'type':_0x1a9067(0x237),'description':_0x34ec56['DbXcI']});},async _0x308d94=>{const _0x5ca02f=_0x31cfa2;await withTelemetry(_0x34ec56[_0x5ca02f(0x228)],_0x41684e=>addEnv(_0x308d94[_0x5ca02f(0x1e8)],{'ci':_0x308d94['ci'],'skipAuth':_0x308d94[_0x5ca02f(0x1cd)],'url':_0x308d94[_0x5ca02f(0x22a)],'force':_0x308d94[_0x5ca02f(0x201)],'cdpEndpoint':_0x308d94[_0x5ca02f(0x284)]},_0x41684e),{'isElectron':_0x34ec56['fydvp'](Boolean,_0x308d94[_0x5ca02f(0x284)])});})['command'](_0x31cfa2(0x28d),_0x34ec56['QJEdx'],_0x354588=>{const _0x18259a=_0x31cfa2;return _0x354588[_0x18259a(0x243)]('profile-name',{'type':_0x34ec56[_0x18259a(0x261)],'description':_0x34ec56[_0x18259a(0x2ce)],'demandOption':!![]});},async _0x33b93b=>{const _0x6954ba=_0x31cfa2;await _0x34ec56['mSwGN'](withTelemetry,_0x6954ba(0x2c5),()=>useEnv(_0x33b93b[_0x6954ba(0x1e8)]));})[_0x31cfa2(0x205)](_0x34ec56['bmVpl'],_0x34ec56[_0x31cfa2(0x242)],_0x54fe65=>{const _0x579817=_0x31cfa2;return _0x54fe65[_0x579817(0x243)](_0x34ec56[_0x579817(0x240)],{'type':_0x34ec56['OhTAO'],'description':_0x579817(0x1f0),'demandOption':!![]});},async _0x9dffa0=>{await _0x34ec56['mSwGN'](withTelemetry,'profile\x20encrypt-auth',()=>authEncrypt(_0x9dffa0['profile']));})['command']('ls',_0x34ec56[_0x31cfa2(0x1c1)],()=>{},async()=>{await _0x34ec56['UcMzS'](withTelemetry,'profile\x20ls',()=>envList());})['command'](_0x31cfa2(0x26c),_0x34ec56['dukbb'],_0x38c643=>{const _0x287d5e=_0x31cfa2;return _0x38c643[_0x287d5e(0x243)](_0x287d5e(0x1e8),{'type':'string','description':_0x287d5e(0x269),'demandOption':!![]});},async _0x182805=>{const _0x15d3a4=_0x31cfa2;await _0x34ec56[_0x15d3a4(0x23b)](withTelemetry,_0x34ec56[_0x15d3a4(0x25f)],_0x7393ce=>updateEnv(_0x182805['profile-name'],_0x7393ce));})['command'](_0x31cfa2(0x24d),_0x31cfa2(0x2b9),_0x326529=>{const _0x26d872=_0x31cfa2,_0x18ff6c={'yRKyn':function(_0x1f24bc,_0x1f4ede,_0x16314e){return _0x34ec56['mFPcX'](_0x1f24bc,_0x1f4ede,_0x16314e);},'ogpAk':_0x26d872(0x211),'sSIcq':_0x34ec56[_0x26d872(0x2d6)],'EOSIr':_0x26d872(0x237),'QrsCK':_0x26d872(0x25d)};return _0x326529[_0x26d872(0x2ab)](PROFILE_CONFIG_HELP)[_0x26d872(0x205)](_0x34ec56[_0x26d872(0x2c6)],_0x26d872(0x1d7),_0x1ab219=>{const _0x54dc55=_0x26d872;return _0x1ab219[_0x54dc55(0x243)](_0x54dc55(0x265),{'type':'string','description':_0x54dc55(0x1f0),'demandOption':!![]})[_0x54dc55(0x243)](_0x34ec56[_0x54dc55(0x2d6)],{'type':_0x34ec56['OhTAO'],'description':_0x34ec56['jnfBs'],'demandOption':!![]})['positional'](_0x34ec56['QwdmC'],{'type':'string','description':'Config\x20value','demandOption':!![]});},async _0x46bc94=>{const _0x1c71ec=_0x26d872;await _0x18ff6c[_0x1c71ec(0x2ba)](withTelemetry,_0x18ff6c[_0x1c71ec(0x24e)],()=>configSet(_0x46bc94['profile'],_0x46bc94[_0x1c71ec(0x292)],_0x46bc94[_0x1c71ec(0x2ee)]));})[_0x26d872(0x205)](_0x34ec56['bYjAr'],_0x34ec56['LnUOR'],_0x23e737=>{const _0x4d4318=_0x26d872;return _0x23e737['positional'](_0x4d4318(0x265),{'type':_0x4d4318(0x237),'description':_0x4d4318(0x1f0),'demandOption':!![]})['positional'](_0x18ff6c['sSIcq'],{'type':_0x18ff6c[_0x4d4318(0x2c4)],'description':_0x18ff6c['QrsCK'],'demandOption':!![]});},async _0x120d6a=>{const _0x346726=_0x26d872;await withTelemetry('profile\x20config\x20get',()=>configGet(_0x120d6a[_0x346726(0x265)],_0x120d6a['key']));})['command']('list\x20<profile>',_0x34ec56[_0x26d872(0x1ea)],_0x3c13b7=>{const _0x40a0a1=_0x26d872;return _0x3c13b7['positional'](_0x40a0a1(0x265),{'type':_0x34ec56['OhTAO'],'description':_0x34ec56['xZfQm'],'demandOption':!![]});},async _0x409cb6=>{const _0x1fe1df=_0x26d872;await withTelemetry(_0x1fe1df(0x1c3),()=>configList(_0x409cb6['profile']));})[_0x26d872(0x205)]('unset\x20<profile>\x20<key>',_0x34ec56['PNrqI'],_0x4399aa=>{const _0x56a1c7=_0x26d872;return _0x4399aa[_0x56a1c7(0x243)]('profile',{'type':'string','description':_0x56a1c7(0x1f0),'demandOption':!![]})[_0x56a1c7(0x243)]('key',{'type':_0x34ec56['OhTAO'],'description':_0x34ec56['eHJhL'],'demandOption':!![]});},async _0x4431fc=>{const _0x2c69c8=_0x26d872;await withTelemetry(_0x2c69c8(0x1c8),()=>configUnset(_0x4431fc[_0x2c69c8(0x265)],_0x4431fc[_0x2c69c8(0x292)]));})['demandCommand'](0x1,_0x34ec56[_0x26d872(0x27e)]);})[_0x31cfa2(0x2d2)](0x1,_0x34ec56['xHNks']);})['command'](_0x30021c(0x2ec),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{await withTelemetry('status',()=>status());})[_0x30021c(0x205)](_0x30021c(0x2bd),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x507b3e=_0x30021c;await withTelemetry(_0x507b3e(0x2bd),()=>update());})['command']('go',_0x30021c(0x1b6),_0x470781=>{const _0x456e3d=_0x30021c,_0x2684a7={'cDKAl':_0x456e3d(0x218),'Albdc':_0x456e3d(0x237),'tYUVi':_0x456e3d(0x258),'XTMZH':_0x456e3d(0x260),'FQbTM':_0x456e3d(0x262),'BfUhJ':'start-path','tUMiz':'model','AFgFf':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)','uNIUi':'verified','TRMLy':_0x456e3d(0x303),'fcjoM':_0x456e3d(0x2c7),'ppUnL':_0x456e3d(0x2fe),'QYtxK':'debug-address-comments','mOCct':'boolean','juakS':_0x456e3d(0x204),'zdAAg':_0x456e3d(0x1d0)};return _0x470781['option'](_0x456e3d(0x265),{'type':_0x456e3d(0x237),'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x456e3d(0x2d1)](_0x2684a7['cDKAl'],{'type':_0x2684a7['Albdc'],'description':_0x2684a7['tYUVi']})[_0x456e3d(0x2d1)](_0x456e3d(0x25e),{'type':_0x2684a7[_0x456e3d(0x2ae)],'description':_0x2684a7[_0x456e3d(0x1b5)]})['option'](_0x2684a7[_0x456e3d(0x28e)],{'type':_0x456e3d(0x237),'description':_0x456e3d(0x257)})['option'](_0x2684a7[_0x456e3d(0x1d9)],{'type':_0x456e3d(0x237),'description':_0x2684a7['AFgFf']})[_0x456e3d(0x2d1)]('debug-outcome',{'type':'string','hidden':!![],'choices':[_0x2684a7[_0x456e3d(0x30e)],_0x2684a7[_0x456e3d(0x2c3)],_0x456e3d(0x2dc),_0x2684a7[_0x456e3d(0x21c)],_0x2684a7['ppUnL']]})[_0x456e3d(0x2d1)](_0x2684a7[_0x456e3d(0x283)],{'type':_0x2684a7[_0x456e3d(0x245)],'hidden':!![]})['option'](_0x2684a7[_0x456e3d(0x1b2)],{'type':_0x2684a7[_0x456e3d(0x304)],'hidden':!![]})[_0x456e3d(0x2d1)](_0x2684a7['zdAAg'],{'type':'string','hidden':!![]})['option'](_0x456e3d(0x1de),{'type':'number','hidden':!![]});},async _0x2d4cde=>{const _0x2b1a5b=_0x30021c,_0x4b4147={'xNFet':function(_0x273635,_0x4612fa){return _0x273635(_0x4612fa);}};await _0x4b4147[_0x2b1a5b(0x2f4)](runGoCommand,_0x2d4cde);})['command']('auth',![],_0x26f080=>{const _0x1c4672=_0x30021c,_0x4ef408={'NHVQK':'profile','ROMGN':'Profile\x20name','qbZbt':function(_0x5a22f1,_0x46c495,_0x501a91){return _0x5a22f1(_0x46c495,_0x501a91);},'xLgFS':_0x1c4672(0x208),'CtXoV':'ranger\x20profile\x20encrypt-auth'};return _0x26f080['command'](_0x1c4672(0x20f),![],_0x5b3c01=>{const _0x1014c6=_0x1c4672;return _0x5b3c01['positional'](_0x4ef408[_0x1014c6(0x2ed)],{'type':_0x1014c6(0x237),'description':_0x4ef408['ROMGN'],'demandOption':!![]});},async _0x170954=>{const _0x474fa3=_0x1c4672;_0x4ef408['qbZbt'](warnRenamed,_0x4ef408[_0x474fa3(0x231)],_0x4ef408[_0x474fa3(0x202)]),await authEncrypt(_0x170954[_0x474fa3(0x265)]);})['demandCommand'](0x1,_0x1c4672(0x1e1));},()=>{})['command'](_0x30021c(0x2db),![],_0x132339=>{const _0x60215c=_0x30021c,_0x74bfbd={'LiPLF':'string','hNoFs':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','olakc':'boolean','jvPLp':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','zOYfC':'force'};return _0x132339['positional'](_0x60215c(0x2f1),{'type':_0x74bfbd['LiPLF'],'description':_0x74bfbd['hNoFs']})[_0x60215c(0x2d1)](_0x60215c(0x20e),{'type':_0x74bfbd[_0x60215c(0x26b)],'description':_0x60215c(0x207),'default':![]})['option'](_0x60215c(0x20a),{'type':_0x74bfbd['LiPLF'],'choices':[_0x60215c(0x267),_0x60215c(0x1cb)],'description':_0x74bfbd[_0x60215c(0x271)]})[_0x60215c(0x2d1)]('url',{'type':_0x74bfbd['LiPLF'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x74bfbd['zOYfC'],{'type':_0x74bfbd[_0x60215c(0x26b)],'description':_0x60215c(0x29d),'default':![]});},async _0x4f6090=>{const _0x4ef505=_0x30021c,_0x278708={'fROrG':function(_0x3e1804,_0x38ba44,_0x10d2bf){return _0x3e1804(_0x38ba44,_0x10d2bf);},'iNXCe':_0x4ef505(0x23d),'ENKsL':_0x4ef505(0x282),'GqnKj':'start'};_0x278708[_0x4ef505(0x2a0)](warnRenamed,_0x278708[_0x4ef505(0x1e2)],_0x278708['ENKsL']),await withTelemetry(_0x278708['GqnKj'],_0xdef9c1=>start(_0x4f6090[_0x4ef505(0x2f1)],{'skipChromium':_0x4f6090[_0x4ef505(0x20e)],'scope':_0x4f6090[_0x4ef505(0x20a)],'url':_0x4f6090['url'],'force':_0x4f6090['force']},_0xdef9c1));})[_0x30021c(0x205)]('verify-feature',![],_0x555697=>{const _0x5b9167=_0x30021c,_0x47df7a={'nIRwL':_0x5b9167(0x237),'UzLJC':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','UDaac':'number','ePZeM':_0x5b9167(0x1b9),'ZnoGC':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','nDGLR':_0x5b9167(0x25c),'OGLAK':_0x5b9167(0x2c9),'PncgI':'partial'};return _0x555697[_0x5b9167(0x2d1)]('env',{'type':_0x5b9167(0x237),'description':_0x5b9167(0x1f4)})[_0x5b9167(0x2d1)](_0x5b9167(0x1d0),{'type':_0x47df7a['nIRwL'],'description':_0x47df7a['UzLJC']})[_0x5b9167(0x2d1)]('item',{'type':'number','description':'Scenario\x20index\x20(1-based)'})['option']('profile',{'type':_0x47df7a[_0x5b9167(0x214)],'hidden':!![]})[_0x5b9167(0x2d1)](_0x5b9167(0x218),{'type':_0x47df7a['nIRwL'],'hidden':!![]})['option']('scenario',{'type':_0x47df7a[_0x5b9167(0x2b1)],'hidden':!![]})[_0x5b9167(0x2d1)](_0x47df7a[_0x5b9167(0x2e1)],{'type':_0x47df7a['nIRwL'],'description':_0x47df7a[_0x5b9167(0x2df)]})[_0x5b9167(0x2d1)](_0x47df7a[_0x5b9167(0x2e2)],{'type':_0x47df7a[_0x5b9167(0x214)],'hidden':!![]})[_0x5b9167(0x2d1)](_0x5b9167(0x28f),{'type':'string','hidden':!![],'choices':[_0x47df7a['OGLAK'],_0x47df7a['PncgI'],_0x5b9167(0x2dc),_0x5b9167(0x2c7),_0x5b9167(0x2fe)]});},async _0x1922e1=>{await runGoCommand(_0x1922e1,!![]);})[_0x30021c(0x205)](_0x30021c(0x2d3),![],_0x44adf0=>{const _0x56ebcd=_0x30021c,_0x5a1dc4={'DterG':_0x56ebcd(0x224),'dkBIr':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','UggcZ':_0x56ebcd(0x305),'cfxUH':_0x56ebcd(0x2a1)};return _0x44adf0['positional'](_0x5a1dc4['DterG'],{'type':_0x56ebcd(0x237),'description':_0x5a1dc4[_0x56ebcd(0x1b7)],'demandOption':!![]})['option']('ci',{'type':'boolean','description':_0x56ebcd(0x217),'default':![]})[_0x56ebcd(0x2d1)](_0x56ebcd(0x1cd),{'type':_0x5a1dc4[_0x56ebcd(0x29c)],'description':_0x5a1dc4['cfxUH'],'default':![]});},async _0x45175d=>{const _0x2b1911=_0x30021c,_0x51b090={'lNcLU':function(_0x1046cd,_0x3d819c,_0x2c81c3){return _0x1046cd(_0x3d819c,_0x2c81c3);},'HieRP':_0x2b1911(0x277),'deMaZ':function(_0x591276,_0x57f45d,_0x26f058){return _0x591276(_0x57f45d,_0x26f058);},'icZOx':_0x2b1911(0x1ca)};_0x51b090['lNcLU'](warnRenamed,_0x51b090[_0x2b1911(0x2ca)],'ranger\x20profile\x20add'),await _0x51b090[_0x2b1911(0x311)](withTelemetry,_0x51b090[_0x2b1911(0x223)],_0x1d8f27=>addEnv(_0x45175d[_0x2b1911(0x224)],{'ci':_0x45175d['ci'],'skipAuth':_0x45175d[_0x2b1911(0x1cd)]},_0x1d8f27));})['command'](_0x30021c(0x298),![],_0xa59289=>{const _0x2da342=_0x30021c,_0xc40cc={'MNEah':_0x2da342(0x2bb)};return _0xa59289['positional']('env-name',{'type':_0x2da342(0x237),'description':_0xc40cc[_0x2da342(0x270)],'demandOption':!![]});},async _0x237d4c=>{const _0x322c5b=_0x30021c,_0x5385cb={'ftQay':_0x322c5b(0x2e4),'HxymX':function(_0x382d6d,_0x417974,_0x4b7d31){return _0x382d6d(_0x417974,_0x4b7d31);},'ieBWl':_0x322c5b(0x1f6)};warnRenamed(_0x5385cb['ftQay'],'ranger\x20profile\x20use'),await _0x5385cb['HxymX'](withTelemetry,_0x5385cb[_0x322c5b(0x2de)],()=>useEnv(_0x237d4c[_0x322c5b(0x224)]));})['command'](_0x30021c(0x24d),![],_0x12d538=>{const _0x39469d=_0x30021c,_0x25fefd={'QwcsM':'env','VjnQN':'string','pqJiT':_0x39469d(0x292),'LFkwv':_0x39469d(0x26d),'GUMas':_0x39469d(0x1fd),'kvOOG':function(_0xbbff22,_0x480837,_0x36214f){return _0xbbff22(_0x480837,_0x36214f);},'RDkvg':_0x39469d(0x297),'JQQMD':function(_0x3a6a7c,_0x54e54c,_0x3e13bf){return _0x3a6a7c(_0x54e54c,_0x3e13bf);},'AJryw':_0x39469d(0x250),'nsvFE':function(_0x316c36,_0x192db6,_0x2a0514){return _0x316c36(_0x192db6,_0x2a0514);},'uLGeB':'ranger\x20config\x20unset','KbWML':'ranger\x20profile\x20config\x20unset','MQWYh':'set\x20<env>\x20<key>\x20<value>','HkXDq':_0x39469d(0x2b7)};return _0x12d538['command'](_0x25fefd['MQWYh'],![],_0x499468=>{const _0xf324e7=_0x39469d;return _0x499468['positional'](_0x25fefd['QwcsM'],{'type':_0x25fefd[_0xf324e7(0x1e7)],'description':_0xf324e7(0x297),'demandOption':!![]})['positional'](_0x25fefd['pqJiT'],{'type':_0x25fefd[_0xf324e7(0x1e7)],'description':_0x25fefd[_0xf324e7(0x24a)],'demandOption':!![]})[_0xf324e7(0x243)]('value',{'type':_0x25fefd['VjnQN'],'description':'Config\x20value','demandOption':!![]});},async _0x3554cc=>{const _0x319446=_0x39469d;warnRenamed('ranger\x20config\x20set',_0x25fefd['GUMas']),await _0x25fefd[_0x319446(0x1e0)](withTelemetry,_0x319446(0x23a),()=>configSet(_0x3554cc[_0x319446(0x204)],_0x3554cc['key'],_0x3554cc['value']));})[_0x39469d(0x205)]('get\x20<env>\x20<key>',![],_0x5b3b8c=>{const _0x51f397=_0x39469d;return _0x5b3b8c['positional'](_0x25fefd[_0x51f397(0x291)],{'type':_0x51f397(0x237),'description':_0x25fefd['RDkvg'],'demandOption':!![]})['positional'](_0x25fefd[_0x51f397(0x235)],{'type':_0x51f397(0x237),'description':_0x51f397(0x25d),'demandOption':!![]});},async _0x3cceff=>{const _0x4bd4c4=_0x39469d;_0x25fefd[_0x4bd4c4(0x2a3)](warnRenamed,_0x4bd4c4(0x289),_0x4bd4c4(0x1c0)),await _0x25fefd['JQQMD'](withTelemetry,_0x4bd4c4(0x22c),()=>configGet(_0x3cceff['env'],_0x3cceff['key']));})[_0x39469d(0x205)](_0x39469d(0x281),![],_0xa5518=>{const _0x354c7e=_0x39469d;return _0xa5518['positional'](_0x354c7e(0x204),{'type':_0x25fefd['VjnQN'],'description':_0x354c7e(0x297),'demandOption':!![]});},async _0x3702dd=>{const _0x21cd80=_0x39469d;warnRenamed('ranger\x20config\x20list',_0x21cd80(0x26a)),await _0x25fefd['JQQMD'](withTelemetry,_0x25fefd['AJryw'],()=>configList(_0x3702dd[_0x21cd80(0x204)]));})['command'](_0x39469d(0x1be),![],_0x4fa560=>{const _0x39a01c=_0x39469d;return _0x4fa560['positional'](_0x25fefd[_0x39a01c(0x291)],{'type':_0x25fefd['VjnQN'],'description':_0x25fefd['RDkvg'],'demandOption':!![]})[_0x39a01c(0x243)](_0x39a01c(0x292),{'type':_0x25fefd[_0x39a01c(0x1e7)],'description':_0x39a01c(0x251),'demandOption':!![]});},async _0x5e33b5=>{const _0x5ad9b3=_0x39469d;_0x25fefd['nsvFE'](warnRenamed,_0x25fefd[_0x5ad9b3(0x216)],_0x25fefd[_0x5ad9b3(0x2f9)]),await _0x25fefd[_0x5ad9b3(0x2a3)](withTelemetry,'config\x20unset',()=>configUnset(_0x5e33b5['env'],_0x5e33b5['key']));})[_0x39469d(0x2d2)](0x1,_0x25fefd[_0x39469d(0x1d6)]);})[_0x30021c(0x205)](_0x30021c(0x204),![],_0x2a20ec=>{const _0x5b5b44=_0x30021c,_0x2b3308={'BdEDA':_0x5b5b44(0x1f2),'hUtwP':function(_0x1fea0d,_0x3cf8ac,_0x172d7f){return _0x1fea0d(_0x3cf8ac,_0x172d7f);},'oHiQA':'Name\x20of\x20the\x20environment\x20to\x20update','bmXAS':function(_0x467892,_0x22bf10,_0x38628d){return _0x467892(_0x22bf10,_0x38628d);},'pwZJr':_0x5b5b44(0x25a),'sNnit':'You\x20must\x20specify\x20an\x20env\x20subcommand'};return _0x2a20ec['command']('ls',![],()=>{},async()=>{const _0x41b331=_0x5b5b44;warnRenamed(_0x2b3308['BdEDA'],_0x41b331(0x27d)),await _0x2b3308['hUtwP'](withTelemetry,'env\x20list',()=>envList());})['command'](_0x2b3308[_0x5b5b44(0x239)],![],_0x31dda2=>{const _0x1417ca=_0x5b5b44;return _0x31dda2['positional'](_0x1417ca(0x224),{'type':_0x1417ca(0x237),'description':_0x2b3308[_0x1417ca(0x1f7)],'demandOption':!![]});},async _0x2b45e2=>{const _0x17ee9=_0x5b5b44;_0x2b3308[_0x17ee9(0x21a)](warnRenamed,_0x17ee9(0x1f5),_0x17ee9(0x2b0)),await withTelemetry(_0x17ee9(0x1e5),_0x256d9a=>updateEnv(_0x2b45e2['env-name'],_0x256d9a));})['demandCommand'](0x1,_0x2b3308[_0x5b5b44(0x278)]);})[_0x30021c(0x205)]('feature',![],_0xcb3b9a=>{const _0x1b3907=_0x30021c,_0x4599ac={'XqMiG':'Feature\x20review\x20name','HVLeo':_0x1b3907(0x22e),'RflVW':_0x1b3907(0x294),'gomRE':_0x1b3907(0x1b0),'CpQze':'scenario','MqxKA':'ranger\x20create','KKmXP':_0x1b3907(0x1fe),'jwhOv':_0x1b3907(0x306),'FDYrz':'limit','mxSsJ':_0x1b3907(0x2a9),'uCUex':_0x1b3907(0x260),'WFVVt':function(_0x355250,_0x189c3c,_0x2427d4){return _0x355250(_0x189c3c,_0x2427d4);},'HUplF':_0x1b3907(0x2d9),'WvAsp':function(_0x4bfd51,_0x21d5bc,_0x24a488){return _0x4bfd51(_0x21d5bc,_0x24a488);},'Vwkfl':_0x1b3907(0x237),'MTshV':function(_0x302add,_0x225c6c,_0x412887){return _0x302add(_0x225c6c,_0x412887);},'LZfQa':_0x1b3907(0x29b),'pGmoX':_0x1b3907(0x2e9),'CcSGB':'ranger\x20add-scenario','aOFVc':'feature\x20add-checklist-item','qzyGc':function(_0x243d1a,_0x192a4b,_0x2fc02a){return _0x243d1a(_0x192a4b,_0x2fc02a);},'vblFM':_0x1b3907(0x300),'mjPaU':function(_0x395ebb,_0x5a0286,_0x37f170){return _0x395ebb(_0x5a0286,_0x37f170);},'iwHal':_0x1b3907(0x2b6),'YqAAK':_0x1b3907(0x230),'pZjRI':'feature\x20restore','sNIDl':'resume\x20[id]','qOzoi':_0x1b3907(0x2f5),'oDoJI':'get-feedback\x20[id]','kXCBq':'delete\x20[id]','CoDpy':_0x1b3907(0x27b)};return _0xcb3b9a['command'](_0x1b3907(0x203),![],_0x2ef3ae=>{const _0x29d5a3=_0x1b3907;return _0x2ef3ae[_0x29d5a3(0x243)]('name',{'type':'string','description':_0x4599ac[_0x29d5a3(0x28a)],'demandOption':!![]})[_0x29d5a3(0x2d1)](_0x4599ac['HVLeo'],{'type':'string','alias':'d','description':_0x29d5a3(0x1d8)})[_0x29d5a3(0x2d1)](_0x29d5a3(0x246),{'type':_0x4599ac[_0x29d5a3(0x1dc)],'alias':'c','description':_0x4599ac['gomRE']})[_0x29d5a3(0x2d1)](_0x4599ac['CpQze'],{'type':'array','hidden':!![]});},async _0x5e81cc=>{const _0x2d94cf=_0x1b3907;warnRenamed(_0x2d94cf(0x26e),_0x4599ac[_0x2d94cf(0x2eb)]),warnFlagRenamed(_0x4599ac[_0x2d94cf(0x2eb)],_0x2d94cf(0x2ad),_0x2d94cf(0x263));const _0x1da569=_0x5e81cc[_0x2d94cf(0x25e)]||_0x5e81cc['checklist'];await withTelemetry(_0x4599ac[_0x2d94cf(0x1f8)],()=>featureCreate(_0x5e81cc[_0x2d94cf(0x1fb)],{'description':_0x5e81cc['description'],'scenarios':_0x1da569}));})['command'](_0x1b3907(0x1da),![],_0x3db584=>{const _0x3415d4=_0x1b3907;return _0x3db584[_0x3415d4(0x2d1)](_0x4599ac['jwhOv'],{'type':'boolean','description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x3415d4(0x2d1)](_0x4599ac[_0x3415d4(0x2e0)],{'type':_0x3415d4(0x260),'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})['option'](_0x4599ac[_0x3415d4(0x1df)],{'type':_0x4599ac['uCUex'],'alias':'o','description':_0x3415d4(0x275),'default':0x0})['option'](_0x3415d4(0x27c),{'type':_0x3415d4(0x305),'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x23dc97=>{const _0x2d1301=_0x1b3907;_0x4599ac[_0x2d1301(0x1c7)](warnRenamed,_0x2d1301(0x1c2),_0x2d1301(0x1fc)),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x23dc97['current-branch'],'limit':_0x23dc97[_0x2d1301(0x2b3)],'offset':_0x23dc97[_0x2d1301(0x2a9)],'includeDeleted':_0x23dc97[_0x2d1301(0x27c)]}));})[_0x1b3907(0x205)]('show\x20[id]',![],_0x5b5e84=>{const _0x298cc5=_0x1b3907;return _0x5b5e84[_0x298cc5(0x243)]('id',{'type':_0x298cc5(0x237),'description':'Feature\x20review\x20ID'});},async _0x10c565=>{const _0x29c3ea=_0x1b3907;warnRenamed('ranger\x20feature\x20show',_0x4599ac['HUplF']),await _0x4599ac['WvAsp'](withTelemetry,_0x29c3ea(0x29e),()=>featureShow(_0x10c565['id']));})[_0x1b3907(0x205)](_0x4599ac['sNIDl'],![],_0x488003=>{const _0x2c8b11=_0x1b3907;return _0x488003[_0x2c8b11(0x243)]('id',{'type':_0x4599ac[_0x2c8b11(0x2e8)],'description':_0x2c8b11(0x255)});},async _0x50dc7c=>{const _0xe3f73a=_0x1b3907;_0x4599ac['WvAsp'](warnRenamed,'ranger\x20feature\x20resume',_0xe3f73a(0x2f6)),await _0x4599ac[_0xe3f73a(0x2b2)](withTelemetry,_0x4599ac[_0xe3f73a(0x2e7)],()=>featureResume(_0x50dc7c['id']));})['command'](_0x4599ac['qOzoi'],![],_0x367911=>{const _0x42bf97=_0x1b3907;return _0x367911['positional'](_0x4599ac['HVLeo'],{'type':'string','description':_0x42bf97(0x2b5),'demandOption':!![]})[_0x42bf97(0x2d1)]('id',{'type':_0x4599ac['Vwkfl'],'description':_0x4599ac[_0x42bf97(0x21f)]});},async _0x5bba1c=>{const _0x4f8352=_0x1b3907;warnRenamed(_0x4f8352(0x1bc),_0x4599ac['CcSGB']),await withTelemetry(_0x4599ac['aOFVc'],()=>featureAddScenario(_0x5bba1c[_0x4f8352(0x22e)],_0x5bba1c['id']));})[_0x1b3907(0x205)](_0x4599ac['oDoJI'],![],_0x480ff7=>{return _0x480ff7['positional']('id',{'type':_0x4599ac['Vwkfl'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0xc5ce55=>{const _0x2ea6ae=_0x1b3907;warnRenamed('ranger\x20feature\x20get-feedback','ranger\x20get-review'),await _0x4599ac[_0x2ea6ae(0x22f)](withTelemetry,_0x4599ac['vblFM'],()=>featureGetReview(_0xc5ce55['id']));})['command'](_0x4599ac['kXCBq'],![],_0x3d38b1=>{const _0xc2e75b=_0x1b3907;return _0x3d38b1[_0xc2e75b(0x243)]('id',{'type':_0xc2e75b(0x237),'description':_0xc2e75b(0x268)});},async _0x5ef227=>{const _0x4a1b3e=_0x1b3907;_0x4599ac[_0x4a1b3e(0x23c)](warnRenamed,_0x4a1b3e(0x1cf),_0x4599ac[_0x4a1b3e(0x1bd)]),await _0x4599ac[_0x4a1b3e(0x23c)](withTelemetry,_0x4a1b3e(0x2bf),()=>featureDelete(_0x5ef227['id']));})[_0x1b3907(0x205)](_0x1b3907(0x287),![],_0x8f841a=>{const _0x1cc08f=_0x1b3907;return _0x8f841a['positional']('id',{'type':_0x4599ac[_0x1cc08f(0x2e8)],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x5d37ff=>{const _0x3dbc9b=_0x1b3907;warnRenamed(_0x4599ac['YqAAK'],_0x3dbc9b(0x310)),await withTelemetry(_0x4599ac[_0x3dbc9b(0x22b)],()=>featureRestore(_0x5d37ff['id']));})[_0x1b3907(0x2d2)](0x1,_0x4599ac['CoDpy']);})['command']('hook',![],_0x5b2c90=>{const _0x5f5bb8=_0x30021c,_0xaf5e94={'vyCWN':'session-id','alKVG':function(_0x1502a7,_0x23585c,_0x32323c){return _0x1502a7(_0x23585c,_0x32323c);},'yYyoN':_0x5f5bb8(0x2aa),'XSfoQ':_0x5f5bb8(0x227),'PvlVr':'disable','fbJLK':_0x5f5bb8(0x1fb),'KQKnx':_0x5f5bb8(0x24c)};return _0x5b2c90[_0x5f5bb8(0x205)](_0xaf5e94['yYyoN'],_0xaf5e94['XSfoQ'],_0x2e8d22=>{const _0x28428f=_0x5f5bb8;return _0x2e8d22[_0x28428f(0x2d1)](_0xaf5e94['vyCWN'],{'type':'string','description':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)'});},async _0x1de68d=>{const _0x136b1f=_0x5f5bb8;await _0xaf5e94['alKVG'](withTelemetry,_0x136b1f(0x1ed),()=>hook(_0x136b1f(0x2aa),_0x1de68d[_0x136b1f(0x238)]));})['command'](_0xaf5e94[_0x5f5bb8(0x254)],_0x5f5bb8(0x233),_0x4d0b02=>{const _0x131f4a=_0x5f5bb8;return _0x4d0b02['option'](_0x131f4a(0x238),{'type':'string','description':_0x131f4a(0x24c)});},async _0x140389=>{const _0x130d17=_0x5f5bb8;await withTelemetry('hook:disable',()=>hook(_0x130d17(0x1bb),_0x140389['session-id']));})[_0x5f5bb8(0x2d1)](_0xaf5e94[_0x5f5bb8(0x21d)],{'type':'string','description':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'})[_0x5f5bb8(0x2d1)](_0x5f5bb8(0x238),{'type':_0x5f5bb8(0x237),'description':_0xaf5e94['KQKnx']});},async _0x438f32=>{const _0x59dedc=_0x30021c;_0x438f32['name']&&await hook(_0x438f32[_0x59dedc(0x1fb)],_0x438f32['session-id']);})[_0x30021c(0x2d2)](0x1,'You\x20must\x20specify\x20a\x20command')[_0x30021c(0x1cc)]()['fail'](async(_0x5846ff,_0x31cb96,_0x1342f2)=>{const _0x10bbbe=_0x30021c,_0x2b3452={'zStdk':_0x10bbbe(0x2dd),'lYixV':function(_0x46f077){return _0x46f077();}},_0x5cf0b7=sanitizeArgs(process['argv']['slice'](0x2)),_0xe2e01c=getErrorType(_0x5846ff,_0x31cb96);if(_0x5846ff&&_0x5846ff['includes'](_0x2b3452[_0x10bbbe(0x2fd)])){const _0x16e8a4=process[_0x10bbbe(0x1d1)][0x2];console[_0x10bbbe(0x206)](_0x10bbbe(0x1b1)+_0x16e8a4),console[_0x10bbbe(0x206)]('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x5846ff)console['error']('\x0a'+_0x5846ff+'\x0a');else _0x31cb96&&console[_0x10bbbe(0x206)]('\x0aError:\x20'+_0x31cb96['message']+'\x0a');}await logDesirePath({'rawCommand':_0x5cf0b7,'errorMessage':_0x5846ff||_0x31cb96?.['message'],'errorType':_0xe2e01c});const _0x3c95e1=_0x2b3452['lYixV'](getCurrentCollector);_0x3c95e1&&await _0x3c95e1[_0x10bbbe(0x248)](_0x31cb96||new Error(_0x5846ff||'Unknown\x20error')),process['exit'](0x1);})['epilogue'](_0x30021c(0x2fa)+'\x20\x20https://docs.ranger.net\x0a'+_0x30021c(0x23e))[_0x30021c(0x20b)]()['alias'](_0x30021c(0x20b),'h')[_0x30021c(0x30f)]();
@@ -1 +1 @@
1
- function _0x16fc(_0x420074,_0x4acc6e){_0x420074=_0x420074-0x139;const _0x1b56e5=_0x1b56();let _0x16fc76=_0x1b56e5[_0x420074];return _0x16fc76;}(function(_0x34e016,_0x1c451f){const _0x7a314f=_0x16fc,_0x3f9dcd=_0x34e016();while(!![]){try{const _0x272868=parseInt(_0x7a314f(0x149))/0x1+-parseInt(_0x7a314f(0x161))/0x2*(parseInt(_0x7a314f(0x17f))/0x3)+parseInt(_0x7a314f(0x194))/0x4+parseInt(_0x7a314f(0x169))/0x5*(parseInt(_0x7a314f(0x18e))/0x6)+parseInt(_0x7a314f(0x172))/0x7+-parseInt(_0x7a314f(0x15d))/0x8*(-parseInt(_0x7a314f(0x143))/0x9)+-parseInt(_0x7a314f(0x13f))/0xa*(parseInt(_0x7a314f(0x18d))/0xb);if(_0x272868===_0x1c451f)break;else _0x3f9dcd['push'](_0x3f9dcd['shift']());}catch(_0x502e05){_0x3f9dcd['push'](_0x3f9dcd['shift']());}}}(_0x1b56,0x7a25a));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x4624e1 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';function _0x1b56(){const _0x328766=['Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','status','confirm','10aiQwxD','SrYQK','log','error','QSbKe','TOXbu','HlKIU','trim','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','5323304wUnqzF','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','catch','force','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','Invalid\x20URL','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','trackPhaseEnd','auth.json','kBiMq','LbCnG','Enter\x20a\x20different\x20URL','Delete\x20existing\x20and\x20create\x20new\x20in\x20','313548UoajaF','Use\x20','storageState','✓\x20Auth\x20state\x20saved\x20to:\x20','QKYiO','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','includes','LWusP','ugDfb','prompt','root\x20(.ranger/)','close','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','Saving\x20authentication\x20state...','11ulbAUK','671694pPSoLE','\x0a⚠️\x20\x20Profile\x20\x22','BebNN','\x0a\x20\x20Profile\x20\x22','settings.json','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','393788GfhaKE','DeRYn','ICmEP','DdEmd','gTjjF','baseUrl','HpmmW','manual','launch','OuPtC','✓\x20Created\x20settings:\x20','10125150vLSExj','config_write','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','name','9CfXAgS','\x22\x20already\x20exists.\x20Overwrite?','cdpEndpoint','now','Continue\x20anyway','\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','475091VaPrxj','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','trackPhaseStart','isElectron','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','url_setup','newPage','LvLrP','\x20(continuing\x20with\x20--force)','url','skipAuth','Could\x20not\x20reach\x20','CGxkE','iUsSa','path','use_suggestion','uPOdK','browser_auth','\x0a📋\x20Authentication\x20Setup','test','6328392Qptyun','stdout','qjLra','about:blank','16uZldUL','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','utf-8','\x20\x20Did\x20you\x20mean\x20','TypeError'];_0x1b56=function(){return _0x328766;};return _0x1b56();}async function checkUrlReachability(_0x49cba7){const _0x3b22eb=_0x16fc,_0x21df6c={'HpmmW':function(_0x5e3200,_0x310f61,_0x229269){return _0x5e3200(_0x310f61,_0x229269);},'SrYQK':_0x3b22eb(0x13b),'IaEkl':function(_0x56ff4e,_0x5382da){return _0x56ff4e<_0x5382da;},'LKipn':function(_0x14d831,_0x1717e0){return _0x14d831===_0x1717e0;},'ICmEP':_0x3b22eb(0x165)};try{const _0x100cc0=new AbortController(),_0x2eccca=_0x21df6c[_0x3b22eb(0x13a)](setTimeout,()=>_0x100cc0['abort'](),0x1388),_0x1a51a9=await fetch(_0x49cba7,{'method':'HEAD','signal':_0x100cc0['signal'],'redirect':_0x21df6c[_0x3b22eb(0x16a)]});clearTimeout(_0x2eccca);if(_0x21df6c['IaEkl'](_0x1a51a9['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x1a51a9[_0x3b22eb(0x167)]};}catch(_0x1e2a6c){const _0x63dc30=_0x1e2a6c,_0x2ce69d=_0x63dc30['message']||String(_0x1e2a6c),_0x4febc8=_0x2ce69d['includes'](_0x3b22eb(0x177))||_0x21df6c['LKipn'](_0x63dc30[_0x3b22eb(0x142)],_0x21df6c[_0x3b22eb(0x196)])||_0x2ce69d[_0x3b22eb(0x185)]('fetch\x20failed');return{'ok':![],'error':_0x2ce69d,'isProtocolError':_0x4febc8};}}export async function addEnv(_0x1cf30e,_0x5c38fc={},_0x1b847b){const _0x2a3a0d=_0x16fc,_0x18fff5={'qjLra':'close','djVav':'local','aBecB':function(_0x395612,_0x2c6ce2,_0x3d5f07,_0x53eae9){return _0x395612(_0x2c6ce2,_0x3d5f07,_0x53eae9);},'EWboH':function(_0x29a5c3){return _0x29a5c3();},'BebNN':function(_0x3f56e7,_0x34da48,_0x25b166){return _0x3f56e7(_0x34da48,_0x25b166);},'Jumrm':_0x2a3a0d(0x184),'kBiMq':function(_0x217eed,_0x3acfc0){return _0x217eed(_0x3acfc0);},'DeRYn':function(_0xbf31cb,_0x56de82){return _0xbf31cb===_0x56de82;},'QSbKe':_0x2a3a0d(0x168),'XLXFk':'Aborted.','tzhAc':_0x2a3a0d(0x189),'QKYiO':'shouldReplace','iUsSa':_0x2a3a0d(0x14e),'fQURN':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','VeuAZ':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','jCEOY':function(_0x47f232,_0x291a20){return _0x47f232(_0x291a20);},'zFRdE':'\x0a🌐\x20Profile\x20Setup\x0a','vrSvY':_0x2a3a0d(0x173),'pAfAk':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','DdEmd':_0x2a3a0d(0x14a),'wZmAx':'http://localhost:3000','Fzpoy':'list','rcgsD':'action','LbCnG':'What\x20would\x20you\x20like\x20to\x20do?','LvLrP':_0x2a3a0d(0x147),'CGxkE':function(_0x4d5b17,_0x21bbb1){return _0x4d5b17(_0x21bbb1);},'loIyu':_0x2a3a0d(0x15b),'TOXbu':function(_0xa4358d,_0x506653){return _0xa4358d(_0x506653);},'GEbQc':_0x2a3a0d(0x160),'gTjjF':_0x2a3a0d(0x163),'SLRyW':function(_0x4f403d,_0x2ee316){return _0x4f403d(_0x2ee316);},'uOIiN':function(_0x592265,_0x337f43){return _0x592265+_0x337f43;},'ugDfb':'.enc','nkNzI':_0x2a3a0d(0x193),'pNFyC':'browser_auth','LWusP':function(_0x3cb1d9,_0x24fedf,_0x441fdd){return _0x3cb1d9(_0x24fedf,_0x441fdd);},'OuPtC':function(_0x3bb592,_0x255265,_0xa756){return _0x3bb592(_0x255265,_0xa756);},'KXlXg':'settings.json','HlKIU':function(_0x33ab28,_0x10fd48,_0x17b5e7){return _0x33ab28(_0x10fd48,_0x17b5e7);},'uPOdK':function(_0x59bc57,_0x3e0b4e,_0x4a5852){return _0x59bc57(_0x3e0b4e,_0x4a5852);},'pOpiK':_0x2a3a0d(0x141)},_0x1fa9cb=_0x5c38fc['ci']??![],_0x5ec68b=_0x1fa9cb?'ci':_0x18fff5['djVav'],_0x4acb55=_0x18fff5['aBecB'](join,_0x18fff5['EWboH'](getRangerDir),_0x5ec68b,_0x1cf30e),_0x49556c=_0x18fff5['BebNN'](join,getRangerDir(),_0x5ec68b);if(_0x5c38fc[_0x2a3a0d(0x145)]!==undefined&&_0x5c38fc[_0x2a3a0d(0x145)][_0x2a3a0d(0x170)]()==='')throw new Error(_0x18fff5['Jumrm']);if(_0x5c38fc[_0x2a3a0d(0x145)]&&_0x5c38fc['url'])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');if(_0x5c38fc[_0x2a3a0d(0x145)]&&_0x5c38fc['ci'])throw new Error('--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.');const _0x506dc9=_0x18fff5[_0x2a3a0d(0x17b)](Boolean,_0x5c38fc[_0x2a3a0d(0x145)]),_0x408093=!_0x5c38fc[_0x2a3a0d(0x153)]&&!_0x506dc9,_0x177d8f=process['stdin']['isTTY']&&process[_0x2a3a0d(0x15e)]['isTTY'];if(!_0x177d8f&&!_0x5c38fc[_0x2a3a0d(0x152)]&&!_0x506dc9)throw new Error('Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000');const _0x4d1072=_0x18fff5['kBiMq'](findExistingEnv,_0x1cf30e);let _0x492e94=null;if(_0x4d1072){if(!_0x177d8f)_0x492e94=_0x4d1072;else{if(_0x18fff5[_0x2a3a0d(0x195)](_0x4d1072['location'],_0x5ec68b)){const {overwrite:_0x147077}=await _0x4624e1['prompt']([{'type':_0x18fff5[_0x2a3a0d(0x16d)],'name':'overwrite','message':'Profile\x20\x22'+_0x1cf30e+_0x2a3a0d(0x144),'default':![]}]);if(!_0x147077){console[_0x2a3a0d(0x16b)](_0x18fff5['XLXFk']);return;}_0x492e94=_0x4d1072;}else{const _0x1733f6=_0x4d1072['location']==='legacy'?_0x18fff5['tzhAc']:_0x4d1072['location'];console['error'](_0x2a3a0d(0x18f)+_0x1cf30e+'\x22\x20already\x20exists\x20in\x20'+_0x1733f6+':\x20'+_0x4d1072[_0x2a3a0d(0x157)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x5ec68b+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x295361}=await _0x4624e1[_0x2a3a0d(0x188)]([{'type':_0x2a3a0d(0x168),'name':_0x18fff5[_0x2a3a0d(0x183)],'message':_0x2a3a0d(0x17e)+_0x5ec68b+'?','default':![]}]);if(!_0x295361){console[_0x2a3a0d(0x16b)]('Aborted.');return;}_0x492e94=_0x4d1072;}}}_0x1b847b?.['trackPhaseStart'](_0x18fff5[_0x2a3a0d(0x156)]);let _0x501a8d='';if(_0x506dc9)console['log'](_0x18fff5['fQURN']),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x5c38fc['cdpEndpoint']),console['log'](_0x18fff5['VeuAZ']);else{if(_0x5c38fc[_0x2a3a0d(0x152)]){_0x501a8d=_0x5c38fc['url'];const _0x7fed30=await _0x18fff5['jCEOY'](checkUrlReachability,_0x501a8d);if(!_0x7fed30['ok']&&!_0x5c38fc[_0x2a3a0d(0x175)])throw new Error(_0x2a3a0d(0x154)+_0x501a8d+':\x20'+_0x7fed30['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x7fed30['ok']&&_0x5c38fc[_0x2a3a0d(0x175)]&&console[_0x2a3a0d(0x16b)]('⚠\x20Could\x20not\x20reach\x20'+_0x501a8d+':\x20'+_0x7fed30[_0x2a3a0d(0x16c)]+_0x2a3a0d(0x151));}else{console[_0x2a3a0d(0x16b)](_0x18fff5['zFRdE']),console['log'](_0x18fff5['vrSvY']),console[_0x2a3a0d(0x16b)](_0x18fff5['pAfAk']);let _0xb2eee9=![];while(!![]){const _0x2c91e9=await _0x4624e1['prompt']([{'type':'input','name':'baseUrl','message':_0xb2eee9?_0x2a3a0d(0x18b):_0x18fff5[_0x2a3a0d(0x197)],'default':_0x501a8d||_0x18fff5['wZmAx']}]);_0x501a8d=_0x2c91e9[_0x2a3a0d(0x139)];const _0x4f29dd=await checkUrlReachability(_0x501a8d);if(_0x4f29dd['ok'])break;const _0x1a9343=/^[a-zA-Z][\w+.-]*:\/\//[_0x2a3a0d(0x15c)](_0x501a8d),_0x4f8a9d=_0x4f29dd['isProtocolError']&&!_0x1a9343,_0x57afe4=_0x4f8a9d?'http://'+_0x501a8d:null;_0xb2eee9=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x501a8d+':\x20'+_0x4f29dd['error']);_0x57afe4&&console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x164)+_0x57afe4+'?');const {action:_0x48e53c}=await _0x4624e1[_0x2a3a0d(0x188)]([{'type':_0x18fff5['Fzpoy'],'name':_0x18fff5['rcgsD'],'message':_0x18fff5[_0x2a3a0d(0x17c)],'choices':[..._0x57afe4?[{'name':_0x2a3a0d(0x180)+_0x57afe4,'value':'use_suggestion'}]:[],{'name':_0x2a3a0d(0x17d),'value':'retry'},{'name':_0x18fff5[_0x2a3a0d(0x150)],'value':'continue'}]}]);if(_0x18fff5['DeRYn'](_0x48e53c,_0x2a3a0d(0x158))&&_0x57afe4){_0x501a8d=_0x57afe4;const _0x1ece18=await _0x18fff5[_0x2a3a0d(0x155)](checkUrlReachability,_0x501a8d);if(_0x1ece18['ok'])break;console['log'](_0x2a3a0d(0x162)+_0x501a8d+':\x20'+_0x1ece18[_0x2a3a0d(0x16c)]);}else{if(_0x48e53c==='continue')break;}}}}_0x1b847b?.['trackPhaseEnd'](_0x2a3a0d(0x14e)),await mkdir(_0x49556c,{'recursive':!![]});const _0x22e75b=await mkdtemp(join(_0x49556c,'.tmp-'+_0x1cf30e+'-')),_0x522e70=join(_0x22e75b,_0x2a3a0d(0x17a));try{if(_0x408093){_0x1b847b?.[_0x2a3a0d(0x14b)](_0x2a3a0d(0x15a)),console[_0x2a3a0d(0x16b)](_0x18fff5['loIyu']),console['log'](_0x2a3a0d(0x14d)),console[_0x2a3a0d(0x16b)]('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x177d8f?(console['log'](_0x2a3a0d(0x148)),console['log'](_0x2a3a0d(0x178))):console['log']('');await new Promise(_0x1ed742=>setTimeout(_0x1ed742,0xbb8));const _0x4c87b0=await chromium[_0x2a3a0d(0x13c)]({'headless':![]});try{const _0x35ed82=await _0x4c87b0['newContext']();await _0x18fff5[_0x2a3a0d(0x16e)](addProfileSetupBanner,_0x35ed82);const _0x517b4d=await _0x35ed82[_0x2a3a0d(0x14f)]();await _0x517b4d['goto'](_0x501a8d||_0x18fff5['GEbQc']),await new Promise(_0x3611e2=>{const _0x5446c2=_0x2a3a0d;_0x517b4d['on'](_0x18fff5[_0x5446c2(0x15f)],async()=>{const _0x145384=_0x5446c2;try{console[_0x145384(0x16b)](_0x145384(0x18c)),await _0x35ed82[_0x145384(0x181)]({'path':_0x522e70});}catch{}_0x3611e2();});});}finally{await _0x4c87b0[_0x2a3a0d(0x18a)]()[_0x2a3a0d(0x174)](()=>{});}if(_0x1fa9cb){const _0x5c949d=await _0x18fff5[_0x2a3a0d(0x190)](readFile,_0x522e70,_0x18fff5[_0x2a3a0d(0x198)]),_0x57255e=await getToken();if(!_0x57255e){console[_0x2a3a0d(0x16c)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await _0x18fff5['SLRyW'](unlink,_0x522e70)[_0x2a3a0d(0x174)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x327718=encrypt(_0x5c949d,_0x57255e);await _0x18fff5['BebNN'](writeFile,_0x18fff5['uOIiN'](_0x522e70,_0x18fff5[_0x2a3a0d(0x187)]),_0x327718),await unlink(_0x522e70),console['log'](_0x2a3a0d(0x176)+_0x522e70+'.enc'),console['log'](_0x18fff5['nkNzI']),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console['log'](_0x2a3a0d(0x182)+_0x522e70);_0x1b847b?.['trackPhaseEnd'](_0x18fff5['pNFyC']);}_0x1b847b?.[_0x2a3a0d(0x14b)]('config_write');const _0x11084d={};_0x501a8d&&(_0x11084d['baseUrl']=_0x501a8d);_0x5c38fc['cdpEndpoint']&&(_0x11084d[_0x2a3a0d(0x145)]=_0x5c38fc['cdpEndpoint'],_0x11084d[_0x2a3a0d(0x14c)]=!![]);await _0x18fff5[_0x2a3a0d(0x186)](writeFile,_0x18fff5[_0x2a3a0d(0x13d)](join,_0x22e75b,_0x2a3a0d(0x192)),JSON['stringify'](_0x11084d,null,0x2)),console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x13e)+_0x18fff5[_0x2a3a0d(0x190)](join,_0x4acb55,_0x18fff5['KXlXg']));if(_0x492e94?.['location']===_0x5ec68b){const _0x234a42=_0x492e94[_0x2a3a0d(0x157)]+'.backup-'+Date[_0x2a3a0d(0x146)]();await rename(_0x492e94[_0x2a3a0d(0x157)],_0x234a42);try{await _0x18fff5['HlKIU'](rename,_0x22e75b,_0x4acb55);}catch(_0x409ecb){await _0x18fff5[_0x2a3a0d(0x159)](rename,_0x234a42,_0x492e94[_0x2a3a0d(0x157)]);throw _0x409ecb;}try{await _0x18fff5[_0x2a3a0d(0x16f)](rm,_0x234a42,{'recursive':!![]});}catch{console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x171)+_0x234a42);}}else{await rename(_0x22e75b,_0x4acb55);if(_0x492e94)try{await rm(_0x492e94['path'],{'recursive':!![]}),console[_0x2a3a0d(0x16b)]('Removed\x20existing\x20profile\x20at\x20'+_0x492e94['path']);}catch{console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x166)+_0x492e94[_0x2a3a0d(0x157)]);}}try{await writeActiveProfileName(_0x1cf30e),console[_0x2a3a0d(0x16b)]('\x20\x20Set\x20active\x20profile:\x20'+_0x1cf30e);}catch{console[_0x2a3a0d(0x16b)](_0x18fff5['pOpiK']);}_0x1b847b?.[_0x2a3a0d(0x179)](_0x2a3a0d(0x140)),console[_0x2a3a0d(0x16b)](_0x2a3a0d(0x191)+_0x1cf30e+'\x22\x20configured');}catch(_0x535f99){await rm(_0x22e75b,{'recursive':!![],'force':!![]});throw _0x535f99;}}
1
+ function _0xa47e(){const _0x286578=['about:blank','tYKMz','msrRK','Jnvom','KIYWq','gWjMW','UueUa','catch','What\x20would\x20you\x20like\x20to\x20do?','✓\x20Auth\x20state\x20saved\x20to:\x20','XHhiW','message','1805620MdVzYz','close','SvCWi','13iUCwvs','stringify','now','browser_auth','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','JVHyr','\x20would\x20shadow\x20the\x20existing\x20profile.','JMQcZ','cdpEndpoint','url_setup','name','DiNKw','isProtocolError','.backup-','url','Ciuiy','continue','CNcXc','\x20\x20Did\x20you\x20mean\x20','\x20(continuing\x20with\x20--force)','legacy','31443756eAOlGA','qSovG','cAvlc','164NZFOXd','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','trackPhaseEnd','Aborted.','abort','local','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','isTTY','bUmzt','prompt','input','force','NJKTe','3gYPDYW','--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.','18UySNZF','skipAuth','overwrite','error','signal','uyORr','1846660nPeFxk','\x0a🌐\x20Profile\x20Setup\x0a','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','\x20\x20Set\x20active\x20profile:\x20','retry','Enter\x20a\x20different\x20URL','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','storageState','location','config_write','newContext','aJotX','.tmp-','\x22\x20already\x20exists.\x20Overwrite?','log','baseUrl','use_suggestion','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','9201xLkRrp','IiJHh','BrVan','HEAD','2288391xNxrzH','2729025QsgtuB','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','24REtwqp','JeSvw','1310hGBzWV','path','includes','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','Use\x20','51854PsbDXC'];_0xa47e=function(){return _0x286578;};return _0xa47e();}(function(_0x1c8223,_0x276283){const _0x254d7d=_0x1756,_0x125ae9=_0x1c8223();while(!![]){try{const _0x16b05b=-parseInt(_0x254d7d(0x1cf))/0x1*(parseInt(_0x254d7d(0x205))/0x2)+parseInt(_0x254d7d(0x212))/0x3*(-parseInt(_0x254d7d(0x1bc))/0x4)+parseInt(_0x254d7d(0x1ea))/0x5+parseInt(_0x254d7d(0x214))/0x6*(-parseInt(_0x254d7d(0x1d3))/0x7)+-parseInt(_0x254d7d(0x1d6))/0x8*(parseInt(_0x254d7d(0x1d4))/0x9)+parseInt(_0x254d7d(0x1d8))/0xa*(parseInt(_0x254d7d(0x1dd))/0xb)+parseInt(_0x254d7d(0x202))/0xc*(parseInt(_0x254d7d(0x1ed))/0xd);if(_0x16b05b===_0x276283)break;else _0x125ae9['push'](_0x125ae9['shift']());}catch(_0x21d89d){_0x125ae9['push'](_0x125ae9['shift']());}}}(_0xa47e,0x7837a));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x1fd844 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x596655){const _0x168e1c=_0x1756,_0x20911b={'LWAVi':'manual','NJKTe':function(_0x483463,_0x31528f){return _0x483463(_0x31528f);},'kCjiK':function(_0x383893,_0x3fd2ac){return _0x383893<_0x3fd2ac;},'hFlbH':'Invalid\x20URL','yinkp':function(_0x2df4f6,_0x362cf4){return _0x2df4f6===_0x362cf4;},'DYmCr':'fetch\x20failed'};try{const _0x316b20=new AbortController(),_0xaa5ecd=setTimeout(()=>_0x316b20[_0x168e1c(0x209)](),0x1388),_0x380c67=await fetch(_0x596655,{'method':_0x168e1c(0x1d2),'signal':_0x316b20[_0x168e1c(0x218)],'redirect':_0x20911b['LWAVi']});_0x20911b[_0x168e1c(0x211)](clearTimeout,_0xaa5ecd);if(_0x20911b['kCjiK'](_0x380c67['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x380c67['status']};}catch(_0x15e2f2){const _0x5476ec=_0x15e2f2,_0x595ba4=_0x5476ec[_0x168e1c(0x1e9)]||String(_0x15e2f2),_0x1b6ec2=_0x595ba4[_0x168e1c(0x1da)](_0x20911b['hFlbH'])||_0x20911b['yinkp'](_0x5476ec[_0x168e1c(0x1f7)],'TypeError')||_0x595ba4[_0x168e1c(0x1da)](_0x20911b['DYmCr']);return{'ok':![],'error':_0x595ba4,'isProtocolError':_0x1b6ec2};}}function _0x1756(_0x4191e9,_0x189650){_0x4191e9=_0x4191e9-0x1bb;const _0xa47e5f=_0xa47e();let _0x175620=_0xa47e5f[_0x4191e9];return _0x175620;}export async function addEnv(_0x18f5fa,_0x3e4ddb={},_0x4ae4ee){const _0x41d850=_0x1756,_0x3c328b={'JeSvw':_0x41d850(0x1eb),'cMoOu':_0x41d850(0x20a),'CNcXc':function(_0x41371c,_0x50f750){return _0x41371c!==_0x50f750;},'Jnvom':function(_0x7b54eb,_0x368e85){return _0x7b54eb===_0x368e85;},'aJotX':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','JVHyr':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','BmWqr':_0x41d850(0x213),'HTZKa':'confirm','IiJHh':'root\x20(.ranger/)','WTMIc':'shouldReplace','Ciuiy':_0x41d850(0x208),'BrVan':_0x41d850(0x1f6),'YqLMr':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','wdlUP':'http://localhost:3000','SvCWi':'list','HqntQ':_0x41d850(0x1c2),'gWjMW':_0x41d850(0x1c1),'msrRK':function(_0x424ebf,_0x26c314){return _0x424ebf(_0x26c314);},'bUmzt':'\x0a📋\x20Authentication\x20Setup','EERCL':_0x41d850(0x20b),'cCdPV':'\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','qVkZd':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','KaQaG':function(_0x15492c,_0x3da9e0){return _0x15492c(_0x3da9e0);},'uyORr':function(_0x2fd565,_0xb2b651){return _0x2fd565||_0xb2b651;},'foNGf':_0x41d850(0x1de),'XHhiW':'\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','UueUa':function(_0x5bd405,_0x1926de,_0x41eb3e){return _0x5bd405(_0x1926de,_0x41eb3e);},'DiNKw':function(_0x16edb,_0x1c9844){return _0x16edb(_0x1c9844);},'tYKMz':function(_0x4bfc0c,_0x40ef99,_0x253e49){return _0x4bfc0c(_0x40ef99,_0x253e49);},'qSovG':'settings.json','JMQcZ':function(_0x1ad77e,_0x1f5e28,_0xe1bea){return _0x1ad77e(_0x1f5e28,_0xe1bea);},'KIYWq':function(_0x4772b6,_0x319fd3,_0xb1af85){return _0x4772b6(_0x319fd3,_0xb1af85);},'cAvlc':function(_0x193d12,_0x2bdf54,_0x47571c){return _0x193d12(_0x2bdf54,_0x47571c);},'tGKPD':_0x41d850(0x1be),'zuXbT':_0x41d850(0x1c6)},_0x374cea=_0x3e4ddb['ci']??![],_0x5a5041=_0x374cea?'ci':_0x3c328b['cMoOu'],_0x5e01f4=join(getRangerDir(),_0x5a5041,_0x18f5fa),_0x263cc8=join(getRangerDir(),_0x5a5041);if(_0x3c328b[_0x41d850(0x1fe)](_0x3e4ddb[_0x41d850(0x1f5)],undefined)&&_0x3c328b['Jnvom'](_0x3e4ddb[_0x41d850(0x1f5)]['trim'](),''))throw new Error(_0x3c328b[_0x41d850(0x1c8)]);if(_0x3e4ddb[_0x41d850(0x1f5)]&&_0x3e4ddb['url'])throw new Error(_0x3c328b[_0x41d850(0x1f2)]);if(_0x3e4ddb['cdpEndpoint']&&_0x3e4ddb['ci'])throw new Error(_0x3c328b['BmWqr']);const _0x2b23da=Boolean(_0x3e4ddb['cdpEndpoint']),_0x4e8643=!_0x3e4ddb[_0x41d850(0x215)]&&!_0x2b23da,_0x307665=process['stdin'][_0x41d850(0x20c)]&&process['stdout']['isTTY'];if(!_0x307665&&!_0x3e4ddb[_0x41d850(0x1fb)]&&!_0x2b23da)throw new Error(_0x41d850(0x1bf));const _0x52935c=findExistingEnv(_0x18f5fa);let _0x5ca1da=null;if(_0x52935c){if(!_0x307665)_0x5ca1da=_0x52935c;else{if(_0x3c328b['Jnvom'](_0x52935c[_0x41d850(0x1c5)],_0x5a5041)){const {overwrite:_0xd3390}=await _0x1fd844[_0x41d850(0x20e)]([{'type':_0x3c328b['HTZKa'],'name':_0x41d850(0x216),'message':'Profile\x20\x22'+_0x18f5fa+_0x41d850(0x1ca),'default':![]}]);if(!_0xd3390){console[_0x41d850(0x1cb)]('Aborted.');return;}_0x5ca1da=_0x52935c;}else{const _0x34eb29=_0x3c328b[_0x41d850(0x1e1)](_0x52935c['location'],_0x41d850(0x201))?_0x3c328b[_0x41d850(0x1d0)]:_0x52935c['location'];console[_0x41d850(0x217)]('\x0a⚠️\x20\x20Profile\x20\x22'+_0x18f5fa+'\x22\x20already\x20exists\x20in\x20'+_0x34eb29+':\x20'+_0x52935c['path']),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x5a5041+_0x41d850(0x1f3));const {shouldReplace:_0x2abf2d}=await _0x1fd844[_0x41d850(0x20e)]([{'type':'confirm','name':_0x3c328b['WTMIc'],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x5a5041+'?','default':![]}]);if(!_0x2abf2d){console['log'](_0x3c328b[_0x41d850(0x1fc)]);return;}_0x5ca1da=_0x52935c;}}}_0x4ae4ee?.['trackPhaseStart'](_0x3c328b[_0x41d850(0x1d1)]);let _0xd0c93f='';if(_0x2b23da)console['log'](_0x41d850(0x1d5)),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x3e4ddb['cdpEndpoint']),console[_0x41d850(0x1cb)](_0x3c328b['YqLMr']);else{if(_0x3e4ddb['url']){_0xd0c93f=_0x3e4ddb['url'];const _0x1190a3=await checkUrlReachability(_0xd0c93f);if(!_0x1190a3['ok']&&!_0x3e4ddb[_0x41d850(0x210)])throw new Error('Could\x20not\x20reach\x20'+_0xd0c93f+':\x20'+_0x1190a3['error']+_0x41d850(0x1c3));!_0x1190a3['ok']&&_0x3e4ddb['force']&&console['log']('⚠\x20Could\x20not\x20reach\x20'+_0xd0c93f+':\x20'+_0x1190a3['error']+_0x41d850(0x200));}else{console[_0x41d850(0x1cb)](_0x41d850(0x1bd)),console[_0x41d850(0x1cb)](_0x41d850(0x206)),console['log']('\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a');let _0x5b4655=![];while(!![]){const _0x5d78a0=await _0x1fd844[_0x41d850(0x20e)]([{'type':_0x41d850(0x20f),'name':_0x41d850(0x1cc),'message':_0x5b4655?'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','default':_0xd0c93f||_0x3c328b['wdlUP']}]);_0xd0c93f=_0x5d78a0['baseUrl'];const _0x3cf116=await checkUrlReachability(_0xd0c93f);if(_0x3cf116['ok'])break;const _0x3fa5dd=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0xd0c93f),_0x5e374a=_0x3cf116[_0x41d850(0x1f9)]&&!_0x3fa5dd,_0x332a0d=_0x5e374a?'http://'+_0xd0c93f:null;_0x5b4655=!![],console['log']('\x0a\x20\x20Could\x20not\x20reach\x20'+_0xd0c93f+':\x20'+_0x3cf116['error']);_0x332a0d&&console['log'](_0x41d850(0x1ff)+_0x332a0d+'?');const {action:_0x184eeb}=await _0x1fd844['prompt']([{'type':_0x3c328b[_0x41d850(0x1ec)],'name':'action','message':_0x41d850(0x1e6),'choices':[..._0x332a0d?[{'name':_0x41d850(0x1dc)+_0x332a0d,'value':'use_suggestion'}]:[],{'name':_0x3c328b['HqntQ'],'value':_0x3c328b[_0x41d850(0x1e3)]},{'name':'Continue\x20anyway','value':_0x41d850(0x1fd)}]}]);if(_0x3c328b['Jnvom'](_0x184eeb,_0x41d850(0x1cd))&&_0x332a0d){_0xd0c93f=_0x332a0d;const _0x4ae839=await _0x3c328b[_0x41d850(0x1e0)](checkUrlReachability,_0xd0c93f);if(_0x4ae839['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0xd0c93f+':\x20'+_0x4ae839[_0x41d850(0x217)]);}else{if(_0x184eeb===_0x41d850(0x1fd))break;}}}}_0x4ae4ee?.['trackPhaseEnd'](_0x3c328b[_0x41d850(0x1d1)]),await mkdir(_0x263cc8,{'recursive':!![]});const _0x2889a4=await mkdtemp(join(_0x263cc8,_0x41d850(0x1c9)+_0x18f5fa+'-')),_0x703351=join(_0x2889a4,'auth.json');try{if(_0x4e8643){_0x4ae4ee?.['trackPhaseStart'](_0x41d850(0x1f0)),console['log'](_0x3c328b[_0x41d850(0x20d)]),console['log'](_0x3c328b['EERCL']),console['log'](_0x3c328b['cCdPV']);!_0x307665?(console[_0x41d850(0x1cb)]('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console[_0x41d850(0x1cb)](_0x3c328b['qVkZd'])):console['log']('');await new Promise(_0x16f878=>setTimeout(_0x16f878,0xbb8));const _0x24cec5=await chromium['launch']({'headless':![]});try{const _0x2f63e1=await _0x24cec5[_0x41d850(0x1c7)]();await _0x3c328b['KaQaG'](addProfileSetupBanner,_0x2f63e1);const _0x119fd3=await _0x2f63e1['newPage']();await _0x119fd3['goto'](_0x3c328b[_0x41d850(0x1bb)](_0xd0c93f,_0x3c328b['foNGf'])),await new Promise(_0x378d0e=>{const _0x2648a1=_0x41d850;_0x119fd3['on'](_0x3c328b[_0x2648a1(0x1d7)],async()=>{const _0x3b4791=_0x2648a1;try{console['log']('Saving\x20authentication\x20state...'),await _0x2f63e1[_0x3b4791(0x1c4)]({'path':_0x703351});}catch{}_0x378d0e();});});}finally{await _0x24cec5[_0x41d850(0x1eb)]()[_0x41d850(0x1e5)](()=>{});}if(_0x374cea){const _0x2208a1=await readFile(_0x703351,'utf-8'),_0x17e603=await getToken();if(!_0x17e603){console['error'](_0x3c328b[_0x41d850(0x1e8)]),await unlink(_0x703351)['catch'](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x31e4a6=encrypt(_0x2208a1,_0x17e603);await _0x3c328b['UueUa'](writeFile,_0x703351+'.enc',_0x31e4a6),await _0x3c328b[_0x41d850(0x1f8)](unlink,_0x703351),console[_0x41d850(0x1cb)](_0x41d850(0x1db)+_0x703351+'.enc'),console[_0x41d850(0x1cb)]('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x41d850(0x1cb)](_0x41d850(0x1ce));}}else console['log'](_0x41d850(0x1e7)+_0x703351);_0x4ae4ee?.['trackPhaseEnd']('browser_auth');}_0x4ae4ee?.['trackPhaseStart']('config_write');const _0x11a196={};_0xd0c93f&&(_0x11a196['baseUrl']=_0xd0c93f);_0x3e4ddb[_0x41d850(0x1f5)]&&(_0x11a196['cdpEndpoint']=_0x3e4ddb[_0x41d850(0x1f5)],_0x11a196['isElectron']=!![]);await _0x3c328b[_0x41d850(0x1df)](writeFile,join(_0x2889a4,_0x3c328b[_0x41d850(0x203)]),JSON[_0x41d850(0x1ee)](_0x11a196,null,0x2)),console[_0x41d850(0x1cb)]('✓\x20Created\x20settings:\x20'+_0x3c328b[_0x41d850(0x1f4)](join,_0x5e01f4,_0x3c328b[_0x41d850(0x203)]));if(_0x5ca1da?.[_0x41d850(0x1c5)]===_0x5a5041){const _0x1b9214=_0x5ca1da[_0x41d850(0x1d9)]+_0x41d850(0x1fa)+Date[_0x41d850(0x1ef)]();await _0x3c328b[_0x41d850(0x1e2)](rename,_0x5ca1da[_0x41d850(0x1d9)],_0x1b9214);try{await _0x3c328b[_0x41d850(0x204)](rename,_0x2889a4,_0x5e01f4);}catch(_0x1debf5){await _0x3c328b[_0x41d850(0x1f4)](rename,_0x1b9214,_0x5ca1da['path']);throw _0x1debf5;}try{await _0x3c328b[_0x41d850(0x1e4)](rm,_0x1b9214,{'recursive':!![]});}catch{console[_0x41d850(0x1cb)](_0x41d850(0x1f1)+_0x1b9214);}}else{await _0x3c328b[_0x41d850(0x1e2)](rename,_0x2889a4,_0x5e01f4);if(_0x5ca1da)try{await rm(_0x5ca1da[_0x41d850(0x1d9)],{'recursive':!![]}),console['log']('Removed\x20existing\x20profile\x20at\x20'+_0x5ca1da[_0x41d850(0x1d9)]);}catch{console[_0x41d850(0x1cb)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x5ca1da[_0x41d850(0x1d9)]);}}try{await writeActiveProfileName(_0x18f5fa),console['log'](_0x41d850(0x1c0)+_0x18f5fa);}catch{console[_0x41d850(0x1cb)](_0x3c328b['tGKPD']);}_0x4ae4ee?.[_0x41d850(0x207)](_0x3c328b['zuXbT']),console['log']('\x0a\x20\x20Profile\x20\x22'+_0x18f5fa+'\x22\x20configured');}catch(_0x770435){await _0x3c328b[_0x41d850(0x1e4)](rm,_0x2889a4,{'recursive':!![],'force':!![]});throw _0x770435;}}
@@ -1 +1 @@
1
- (function(_0x1de584,_0x255ba9){const _0x377a1d=_0x4038,_0x359d88=_0x1de584();while(!![]){try{const _0x1dd42e=-parseInt(_0x377a1d(0x1aa))/0x1+-parseInt(_0x377a1d(0x1a5))/0x2*(-parseInt(_0x377a1d(0x1a7))/0x3)+-parseInt(_0x377a1d(0x19e))/0x4+parseInt(_0x377a1d(0x1a8))/0x5+parseInt(_0x377a1d(0x19d))/0x6*(-parseInt(_0x377a1d(0x1a3))/0x7)+-parseInt(_0x377a1d(0x1ab))/0x8+parseInt(_0x377a1d(0x1a9))/0x9;if(_0x1dd42e===_0x255ba9)break;else _0x359d88['push'](_0x359d88['shift']());}catch(_0x53e637){_0x359d88['push'](_0x359d88['shift']());}}}(_0x5a93,0xdc692));function _0x5a93(){const _0x399aee=['1504528UaAgqK','log','No\x20auth.json\x20found\x20at\x20','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','5866Hhiwob','Profile\x20\x22','145284kHDUTi','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','39TcTjlm','6353430JXqrwI','12737664BNdflb','267130mrppbk','11974608wNKJGU','.enc','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','4206GUAbNX'];_0x5a93=function(){return _0x399aee;};return _0x5a93();}import{readFile,writeFile}from'fs/promises';import{join}from'path';function _0x4038(_0x104467,_0x1b1262){_0x104467=_0x104467-0x19c;const _0x5a9332=_0x5a93();let _0x4038f1=_0x5a9332[_0x104467];return _0x4038f1;}import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x2c80c2){const _0x4de848=_0x4038,_0x4ae6ee={'RJSlH':function(_0x3ffa12,_0x23a522){return _0x3ffa12(_0x23a522);},'yvMvg':function(_0x4a5a64){return _0x4a5a64();},'oXZca':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','WoPwm':'utf-8','MmnsP':_0x4de848(0x1a6)},_0x1b3b46=_0x4ae6ee['RJSlH'](getEnvDir,_0x2c80c2),_0x248001=join(_0x1b3b46,'auth.json'),_0x4ab6ca=_0x248001+_0x4de848(0x1ac);if(!existsSync(_0x1b3b46))throw new Error(_0x4de848(0x1a4)+_0x2c80c2+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x2c80c2);if(!existsSync(_0x248001))throw new Error(_0x4de848(0x1a0)+_0x248001+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x3fc5fc=await _0x4ae6ee['yvMvg'](getToken);if(!_0x3fc5fc)throw new Error(_0x4ae6ee['oXZca']);const _0x2c833d=await readFile(_0x248001,_0x4ae6ee['WoPwm']),_0x1808c2=encrypt(_0x2c833d,_0x3fc5fc);await writeFile(_0x4ab6ca,_0x1808c2),console['log'](_0x4de848(0x1a2)+_0x4ab6ca),console[_0x4de848(0x19f)](_0x4ae6ee['MmnsP']),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'),existsSync(_0x4ab6ca)&&(console['log'](_0x4de848(0x1a1)),console['log'](_0x4de848(0x19c)));}
1
+ function _0x201a(){const _0x5888de=['\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','3pofPNz','log','bTQMb','269753FHobnA','206606lVuBOb','2772568knYRWF','2995410Cjxydh','auth.json','1035DlQEJK','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','130730RXXczX','1273752cMvgvv','3413572AIEKhU','7SGfutM','Profile\x20\x22','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'];_0x201a=function(){return _0x5888de;};return _0x201a();}(function(_0x5368e8,_0x53f4db){const _0x5536a1=_0x1179,_0x40eba2=_0x5368e8();while(!![]){try{const _0x100e91=parseInt(_0x5536a1(0x150))/0x1+-parseInt(_0x5536a1(0x151))/0x2*(-parseInt(_0x5536a1(0x15f))/0x3)+parseInt(_0x5536a1(0x15a))/0x4+parseInt(_0x5536a1(0x153))/0x5+-parseInt(_0x5536a1(0x159))/0x6+parseInt(_0x5536a1(0x15b))/0x7*(parseInt(_0x5536a1(0x152))/0x8)+parseInt(_0x5536a1(0x155))/0x9*(-parseInt(_0x5536a1(0x158))/0xa);if(_0x100e91===_0x53f4db)break;else _0x40eba2['push'](_0x40eba2['shift']());}catch(_0x50beed){_0x40eba2['push'](_0x40eba2['shift']());}}}(_0x201a,0x6f6df));import{readFile,writeFile}from'fs/promises';function _0x1179(_0x239e80,_0x381035){_0x239e80=_0x239e80-0x150;const _0x201ab7=_0x201a();let _0x1179e4=_0x201ab7[_0x239e80];return _0x1179e4;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x4e68eb){const _0x8556f7=_0x1179,_0x852715={'aPNMw':'.enc','bTQMb':function(_0x47ee0c,_0x14fe25){return _0x47ee0c(_0x14fe25);},'LCIMz':'utf-8','aeltR':function(_0x1e70b6,_0x2893c2,_0x3f6863){return _0x1e70b6(_0x2893c2,_0x3f6863);},'GEvhz':_0x8556f7(0x15d),'SzATL':'\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.'},_0x234fcd=getEnvDir(_0x4e68eb),_0x192f3e=join(_0x234fcd,_0x8556f7(0x154)),_0x47778b=_0x192f3e+_0x852715['aPNMw'];if(!_0x852715[_0x8556f7(0x161)](existsSync,_0x234fcd))throw new Error(_0x8556f7(0x15c)+_0x4e68eb+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x4e68eb);if(!existsSync(_0x192f3e))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x192f3e+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x1e6410=await getToken();if(!_0x1e6410)throw new Error(_0x8556f7(0x157));const _0x57a1ea=await readFile(_0x192f3e,_0x852715['LCIMz']),_0x154379=_0x852715['aeltR'](encrypt,_0x57a1ea,_0x1e6410);await writeFile(_0x47778b,_0x154379),console[_0x8556f7(0x160)](_0x8556f7(0x156)+_0x47778b),console[_0x8556f7(0x160)](_0x852715['GEvhz']),console[_0x8556f7(0x160)](_0x852715['SzATL']),existsSync(_0x47778b)&&(console[_0x8556f7(0x160)]('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console['log'](_0x8556f7(0x15e)));}
@@ -1 +1 @@
1
- const _0x3cf572=_0x5b7c;(function(_0x43d314,_0x4b2274){const _0x139e2a=_0x5b7c,_0x43c78e=_0x43d314();while(!![]){try{const _0x3a11d4=-parseInt(_0x139e2a(0x1e6))/0x1*(-parseInt(_0x139e2a(0x1d6))/0x2)+parseInt(_0x139e2a(0x1db))/0x3*(parseInt(_0x139e2a(0x1b7))/0x4)+-parseInt(_0x139e2a(0x1c9))/0x5+parseInt(_0x139e2a(0x1bf))/0x6*(-parseInt(_0x139e2a(0x1d2))/0x7)+parseInt(_0x139e2a(0x1cd))/0x8*(-parseInt(_0x139e2a(0x1dc))/0x9)+parseInt(_0x139e2a(0x1ec))/0xa*(-parseInt(_0x139e2a(0x1e4))/0xb)+parseInt(_0x139e2a(0x1eb))/0xc*(parseInt(_0x139e2a(0x1ed))/0xd);if(_0x3a11d4===_0x4b2274)break;else _0x43c78e['push'](_0x43c78e['shift']());}catch(_0xf13797){_0x43c78e['push'](_0x43c78e['shift']());}}}(_0xe595,0x849fe));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';function _0xe595(){const _0x3d6c22=['✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','zDRiG','lqPLY','18599tvDxDI','pipe','remove','DvkwF','2YKTrRg','push','TzlpV','error','\x0a✅\x20Cleanup\x20complete!\x0a','1470cZIHSI','67500nDYwgY','trailhead','YLamm','tarKl','KjzYR','DanRt','feature-tracker','BrMSO','473YMqWbQ','xOQVI','25827grltZg','Cfvqb','hrVBH','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','FLvqj','5713656dzFvRp','102820NIngOz','39PPpEQW','plugin','1252PfQHvl','--scope','IurVF','plmJJ','uninstall','close','project','win32','816bXRkIz','log','✓\x20Removed\x20project\x20skill:\x20','length','ycIRe','✓\x20Removed\x20stored\x20credentials','EMZHx','claude','ranger@trailhead','ranger','929515GJriBJ','replace','hFAWC','Nothing\x20to\x20clean\x20up.\x0a','80UOZOxZ','parse'];_0xe595=function(){return _0x3d6c22;};return _0xe595();}import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';function _0x5b7c(_0xb6f35,_0x2d43e8){_0xb6f35=_0xb6f35-0x1b7;const _0xe5951b=_0xe595();let _0x5b7c00=_0xe5951b[_0xb6f35];return _0x5b7c00;}const skillsToRemove=[_0x3cf572(0x1c8),_0x3cf572(0x1e2),'bug-bash','e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x2f1059){const _0xdebdde=_0x3cf572,_0x5671a5=_0x2f1059['replace'](/\/\*[\s\S]*?\*\//g,''),_0x128471=_0x5671a5[_0xdebdde(0x1ca)](/^\s*\/\/.*$/gm,''),_0x1cfd41=_0x128471[_0xdebdde(0x1ca)](/,\s*([}\]])/g,'$1');return JSON[_0xdebdde(0x1ce)](_0x1cfd41);}async function removeOpencodePluginConfig(_0x1e0012){const _0x4cc472=_0x3cf572,_0x140202={'RPbgS':function(_0x4f83b0,_0xe2b6e1){return _0x4f83b0!==_0xe2b6e1;},'BneXf':'string','LFArK':function(_0x4cb8a8,_0x112c37){return _0x4cb8a8(_0x112c37);},'IurVF':function(_0x3c3a83,_0x3ab4f1){return _0x3c3a83===_0x3ab4f1;},'zDRiG':function(_0x416388,_0x4f7f01,_0x477888){return _0x416388(_0x4f7f01,_0x477888);}};if(!_0x140202['LFArK'](existsSync,_0x1e0012))return![];let _0x57a8b8;try{const _0x3232cd=await readFile(_0x1e0012,'utf-8');_0x57a8b8=parseJsonc(_0x3232cd);}catch{return![];}const _0x4d256f=Array['isArray'](_0x57a8b8[_0x4cc472(0x1ee)])?_0x57a8b8['plugin']:[];if(_0x4d256f['length']===0x0)return![];const _0x30c1f2=_0x4d256f['filter'](_0x1bbf2d=>{if(_0x140202['RPbgS'](typeof _0x1bbf2d,_0x140202['BneXf']))return!![];return _0x1bbf2d!==opencodePluginName;});if(_0x140202['IurVF'](_0x30c1f2[_0x4cc472(0x1c2)],_0x4d256f[_0x4cc472(0x1c2)]))return![];return _0x140202[_0x4cc472(0x1b9)](_0x30c1f2['length'],0x0)?delete _0x57a8b8['plugin']:_0x57a8b8['plugin']=_0x30c1f2,await _0x140202[_0x4cc472(0x1d0)](writeFile,_0x1e0012,JSON['stringify'](_0x57a8b8,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x56cecf){const _0xf0df91=_0x3cf572,_0x354ee9={'eMMjE':function(_0x457aa9,_0x36f89a){return _0x457aa9(_0x36f89a);},'FLvqj':_0xf0df91(0x1c7),'PofFK':_0xf0df91(0x1c6),'zVtWm':_0xf0df91(0x1d3),'hrVBH':'win32','SfpAU':_0xf0df91(0x1bc)};return new Promise(_0x2904d5=>{const _0x42c2f6=_0xf0df91,_0x1c4000=[_0x42c2f6(0x1ee),_0x42c2f6(0x1bb),_0x354ee9[_0x42c2f6(0x1ea)]];_0x56cecf&&_0x1c4000[_0x42c2f6(0x1d7)](_0x42c2f6(0x1b8),_0x56cecf);const _0x4e64a0=spawn(_0x354ee9['PofFK'],_0x1c4000,{'stdio':_0x354ee9['zVtWm'],'shell':process['platform']===_0x354ee9[_0x42c2f6(0x1e8)]});_0x4e64a0['on'](_0x354ee9['SfpAU'],_0x8845e7=>{_0x2904d5(_0x8845e7===0x0);}),_0x4e64a0['on'](_0x42c2f6(0x1d9),()=>{_0x354ee9['eMMjE'](_0x2904d5,![]);});});}async function removeMarketplace(){const _0x4da458=_0x3cf572,_0x35f3f5={'GLzxA':function(_0x14dc1c,_0x1abb68,_0x485fef,_0x2babcb){return _0x14dc1c(_0x1abb68,_0x485fef,_0x2babcb);},'zlhwx':'claude','DanRt':_0x4da458(0x1ee),'EFPpY':'marketplace','wNewC':_0x4da458(0x1d4),'PxVjx':'pipe','LdKIs':function(_0x3febf3,_0xb5aaea){return _0x3febf3===_0xb5aaea;},'ycIRe':_0x4da458(0x1be),'QrNcD':'error'};return new Promise(_0x50fff8=>{const _0x22b2ea=_0x4da458,_0x232235={'DvkwF':function(_0x154bb0,_0x390c75){return _0x154bb0(_0x390c75);},'DgEqi':function(_0x4a255e,_0x23d93c){return _0x4a255e===_0x23d93c;}},_0xf567c=_0x35f3f5['GLzxA'](spawn,_0x35f3f5['zlhwx'],[_0x35f3f5[_0x22b2ea(0x1e1)],_0x35f3f5['EFPpY'],_0x35f3f5['wNewC'],_0x22b2ea(0x1dd)],{'stdio':_0x35f3f5['PxVjx'],'shell':_0x35f3f5['LdKIs'](process['platform'],_0x35f3f5[_0x22b2ea(0x1c3)])});_0xf567c['on']('close',_0x15defc=>{const _0x69fb56=_0x22b2ea;_0x232235[_0x69fb56(0x1d5)](_0x50fff8,_0x232235['DgEqi'](_0x15defc,0x0));}),_0xf567c['on'](_0x35f3f5['QrNcD'],()=>{_0x50fff8(![]);});});}export async function clean(){const _0x2ef75c=_0x3cf572,_0x33ba02={'YLamm':function(_0x939f0c){return _0x939f0c();},'tarKl':_0x2ef75c(0x1c4),'TzlpV':function(_0x35b193,_0x223e47){return _0x35b193(_0x223e47);},'eEijo':function(_0x54d1ca){return _0x54d1ca();},'KjzYR':function(_0x28d53b,_0x561651,_0x5af9ee){return _0x28d53b(_0x561651,_0x5af9ee);},'TyxeZ':function(_0x582dfd){return _0x582dfd();},'EMZHx':function(_0x3ec2d1,_0x1a4ea2,_0x18a09c){return _0x3ec2d1(_0x1a4ea2,_0x18a09c);},'BrMSO':'user','plmJJ':function(_0x424ae,_0x28be97,_0x2243ec){return _0x424ae(_0x28be97,_0x2243ec);},'lqPLY':_0x2ef75c(0x1bd),'hFAWC':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','Cfvqb':'opencode.json','ksFSj':_0x2ef75c(0x1cf),'xOQVI':_0x2ef75c(0x1da)};console[_0x2ef75c(0x1c0)]('\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x383c7a=![];try{await _0x33ba02[_0x2ef75c(0x1de)](deleteAllCredentials),console[_0x2ef75c(0x1c0)](_0x33ba02[_0x2ef75c(0x1df)]),_0x383c7a=!![];}catch{}const _0x113199=getCacheFile();existsSync(_0x113199)&&(await _0x33ba02[_0x2ef75c(0x1d8)](rm,_0x113199),_0x383c7a=!![]);const _0x4a6a4c=_0x33ba02['eEijo'](getRangerDir);_0x33ba02['TzlpV'](existsSync,_0x4a6a4c)&&(await _0x33ba02['KjzYR'](rm,_0x4a6a4c,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x383c7a=!![]);const _0xf2711d=_0x33ba02['TyxeZ'](getProjectSkillsDir);for(const _0x4b7c76 of skillsToRemove){const _0x1274f7=join(_0xf2711d,_0x4b7c76);existsSync(_0x1274f7)&&(await rm(_0x1274f7,{'recursive':!![]}),console['log'](_0x2ef75c(0x1c1)+_0x4b7c76),_0x383c7a=!![]);}const _0x130083=getUserSkillsDir();for(const _0x5b63d6 of skillsToRemove){const _0x1880f4=_0x33ba02[_0x2ef75c(0x1e0)](join,_0x130083,_0x5b63d6);existsSync(_0x1880f4)&&(await rm(_0x1880f4,{'recursive':!![]}),console['log']('✓\x20Removed\x20user\x20skill:\x20'+_0x5b63d6),_0x383c7a=!![]);}const _0x308d0c=_0x33ba02[_0x2ef75c(0x1d8)](getOpencodeSkillsDir,'project');for(const _0x4b5320 of skillsToRemove){const _0x55891d=join(_0x308d0c,_0x4b5320);_0x33ba02['TzlpV'](existsSync,_0x55891d)&&(await _0x33ba02[_0x2ef75c(0x1c5)](rm,_0x55891d,{'recursive':!![]}),console[_0x2ef75c(0x1c0)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x4b5320),_0x383c7a=!![]);}const _0x2fba78=_0x33ba02[_0x2ef75c(0x1d8)](getOpencodeSkillsDir,_0x33ba02[_0x2ef75c(0x1e3)]);for(const _0x420126 of skillsToRemove){const _0x11f15c=_0x33ba02[_0x2ef75c(0x1ba)](join,_0x2fba78,_0x420126);existsSync(_0x11f15c)&&(await rm(_0x11f15c,{'recursive':!![]}),console[_0x2ef75c(0x1c0)](_0x2ef75c(0x1e9)+_0x420126),_0x383c7a=!![]);}const _0x2a8e03=join(getOpencodeConfigDir(_0x33ba02[_0x2ef75c(0x1d1)]),'opencode.json');await _0x33ba02['TzlpV'](removeOpencodePluginConfig,_0x2a8e03)&&(console[_0x2ef75c(0x1c0)](_0x33ba02[_0x2ef75c(0x1cb)]),_0x383c7a=!![]);const _0x1c7a54=join(getOpencodeConfigDir(_0x33ba02['BrMSO']),_0x33ba02[_0x2ef75c(0x1e7)]);await removeOpencodePluginConfig(_0x1c7a54)&&(console[_0x2ef75c(0x1c0)](_0x33ba02['ksFSj']),_0x383c7a=!![]);const _0x3f9df2=await _0x33ba02['eEijo'](uninstallClaudePlugin);_0x3f9df2&&(console[_0x2ef75c(0x1c0)]('✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)'),_0x383c7a=!![]);const _0xfc3dcb=await uninstallClaudePlugin(_0x33ba02['lqPLY']);_0xfc3dcb&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x383c7a=!![]);const _0x5aefbc=await removeMarketplace();_0x5aefbc&&(console[_0x2ef75c(0x1c0)]('✓\x20Removed\x20trailhead\x20marketplace'),_0x383c7a=!![]),_0x383c7a?console[_0x2ef75c(0x1c0)](_0x33ba02[_0x2ef75c(0x1e5)]):console['log'](_0x2ef75c(0x1cc));}
1
+ const _0x1b166c=_0x3df4;(function(_0x5bd542,_0xd6301e){const _0x5e8005=_0x3df4,_0x9bb78b=_0x5bd542();while(!![]){try{const _0x2bdbaa=-parseInt(_0x5e8005(0xc0))/0x1*(parseInt(_0x5e8005(0xcf))/0x2)+-parseInt(_0x5e8005(0xa9))/0x3+-parseInt(_0x5e8005(0xae))/0x4+-parseInt(_0x5e8005(0xdc))/0x5*(-parseInt(_0x5e8005(0xc5))/0x6)+parseInt(_0x5e8005(0xb3))/0x7+parseInt(_0x5e8005(0xd1))/0x8*(parseInt(_0x5e8005(0xb0))/0x9)+-parseInt(_0x5e8005(0xb7))/0xa*(-parseInt(_0x5e8005(0xc8))/0xb);if(_0x2bdbaa===_0xd6301e)break;else _0x9bb78b['push'](_0x9bb78b['shift']());}catch(_0xaeb925){_0x9bb78b['push'](_0x9bb78b['shift']());}}}(_0x13a8,0xf1134));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';function _0x13a8(){const _0x4ed2c8=['claude','platform','e2e-test-recommender','10UgKCng','plugin','ixXxf','Nothing\x20to\x20clean\x20up.\x0a','CnZOC','4068324hbUjjB','ctCdD','rNCDO','1485PcAzNm','ELHEO','KpJWL','LvYAN','win32','trailhead','lfROS','39892ZHoZKc','pASoQ','384200JyKMcW','filter','project','user','--scope','bug-bash','sluvP','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','YRxAr','close','YWaPP','10ryQLRe','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','1542153nLzHJZ','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','IKsXq','zCWnO','isArray','7132508UwFlyk','replace','63vwfLXz','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','length','5493838nyHMef','utf-8','string','fWjjP','74590NqUsnC','log','✓\x20Removed\x20user\x20skill:\x20','IyGvm','ranger@trailhead','pipe'];_0x13a8=function(){return _0x4ed2c8;};return _0x13a8();}import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';function _0x3df4(_0x239fae,_0x1a41b6){_0x239fae=_0x239fae-0xa8;const _0x13a8a0=_0x13a8();let _0x3df422=_0x13a8a0[_0x239fae];return _0x3df422;}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',_0x1b166c(0xd6),_0x1b166c(0xbf)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x459632){const _0x39e476=_0x1b166c,_0x2d5750=_0x459632['replace'](/\/\*[\s\S]*?\*\//g,''),_0x365736=_0x2d5750['replace'](/^\s*\/\/.*$/gm,''),_0x4ca2b9=_0x365736[_0x39e476(0xaf)](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x4ca2b9);}async function removeOpencodePluginConfig(_0x191c9a){const _0x43c63d=_0x1b166c,_0x3860b7={'YWaPP':function(_0x5c5c2c,_0x36b864){return _0x5c5c2c!==_0x36b864;},'iSCxv':_0x43c63d(0xb5),'KpJWL':function(_0x3f3cda,_0x5c3461){return _0x3f3cda===_0x5c3461;},'CnZOC':function(_0x5e1c6b,_0x3a2adf,_0x640a41){return _0x5e1c6b(_0x3a2adf,_0x640a41);},'ixXxf':function(_0x33de5a,_0x16ba21){return _0x33de5a+_0x16ba21;}};if(!existsSync(_0x191c9a))return![];let _0xcac010;try{const _0x28af1b=await readFile(_0x191c9a,_0x43c63d(0xb4));_0xcac010=parseJsonc(_0x28af1b);}catch{return![];}const _0x2d5e41=Array[_0x43c63d(0xad)](_0xcac010['plugin'])?_0xcac010[_0x43c63d(0xc1)]:[];if(_0x2d5e41[_0x43c63d(0xb2)]===0x0)return![];const _0x2d46ce=_0x2d5e41[_0x43c63d(0xd2)](_0x40bf7c=>{const _0x573ac9=_0x43c63d;if(_0x3860b7[_0x573ac9(0xdb)](typeof _0x40bf7c,_0x3860b7['iSCxv']))return!![];return _0x40bf7c!==opencodePluginName;});if(_0x3860b7[_0x43c63d(0xca)](_0x2d46ce['length'],_0x2d5e41['length']))return![];return _0x2d46ce['length']===0x0?delete _0xcac010['plugin']:_0xcac010[_0x43c63d(0xc1)]=_0x2d46ce,await _0x3860b7[_0x43c63d(0xc4)](writeFile,_0x191c9a,_0x3860b7[_0x43c63d(0xc2)](JSON['stringify'](_0xcac010,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x4529e1){const _0x3a9933=_0x1b166c,_0x36d1e9={'IyGvm':function(_0x4dd4d8,_0x13d904){return _0x4dd4d8(_0x13d904);},'lfROS':_0x3a9933(0xc1),'gguZW':'uninstall','eGqmy':_0x3a9933(0xbb),'WBOHK':_0x3a9933(0xd5),'NmLnc':function(_0x8661c1,_0x34aa7a,_0x5a5c22,_0x2bf5be){return _0x8661c1(_0x34aa7a,_0x5a5c22,_0x2bf5be);},'kTMaQ':'claude','hYKlS':function(_0xd3c047,_0x5cd94){return _0xd3c047===_0x5cd94;},'GFDgu':_0x3a9933(0xcc),'pASoQ':'error'};return new Promise(_0x3a899e=>{const _0x487c23=_0x3a9933,_0x45bad8={'lTPXL':function(_0x2e84c6,_0x382f14){const _0x3ab039=_0x3df4;return _0x36d1e9[_0x3ab039(0xba)](_0x2e84c6,_0x382f14);}},_0x2b8146=[_0x36d1e9[_0x487c23(0xce)],_0x36d1e9['gguZW'],_0x36d1e9['eGqmy']];_0x4529e1&&_0x2b8146['push'](_0x36d1e9['WBOHK'],_0x4529e1);const _0x5acc5a=_0x36d1e9['NmLnc'](spawn,_0x36d1e9['kTMaQ'],_0x2b8146,{'stdio':_0x487c23(0xbc),'shell':_0x36d1e9['hYKlS'](process[_0x487c23(0xbe)],_0x36d1e9['GFDgu'])});_0x5acc5a['on'](_0x487c23(0xda),_0x5b22b3=>{_0x3a899e(_0x5b22b3===0x0);}),_0x5acc5a['on'](_0x36d1e9[_0x487c23(0xd0)],()=>{_0x45bad8['lTPXL'](_0x3a899e,![]);});});}async function removeMarketplace(){const _0x3f2433=_0x1b166c,_0x42ef7d={'rNCDO':function(_0x4135c6,_0x1386bc){return _0x4135c6(_0x1386bc);},'VeqZB':_0x3f2433(0xbd),'nOcyG':'remove','fWjjP':_0x3f2433(0xcc),'zCWnO':'close'};return new Promise(_0x2e2343=>{const _0x279555=_0x3f2433,_0x19b6ef={'ctCdD':function(_0x45ef47,_0x21bf40){const _0x84f539=_0x3df4;return _0x42ef7d[_0x84f539(0xc7)](_0x45ef47,_0x21bf40);}},_0x375161=spawn(_0x42ef7d['VeqZB'],[_0x279555(0xc1),'marketplace',_0x42ef7d['nOcyG'],_0x279555(0xcd)],{'stdio':'pipe','shell':process['platform']===_0x42ef7d[_0x279555(0xb6)]});_0x375161['on'](_0x42ef7d[_0x279555(0xac)],_0x182646=>{const _0x5db552=_0x279555;_0x19b6ef[_0x5db552(0xc6)](_0x2e2343,_0x182646===0x0);}),_0x375161['on']('error',()=>{_0x2e2343(![]);});});}export async function clean(){const _0x2631a6=_0x1b166c,_0x3713a9={'ELHEO':function(_0x4dce78,_0x485664){return _0x4dce78(_0x485664);},'YRxAr':'✓\x20Removed\x20.ranger/\x20directory','IKsXq':function(_0x33a455){return _0x33a455();},'lteHd':function(_0x321d1d,_0x3eaef6,_0x1e2730){return _0x321d1d(_0x3eaef6,_0x1e2730);},'LvYAN':function(_0x2998cb){return _0x2998cb();},'yrGmG':function(_0x3c39d5,_0x4b6c11,_0xce35c){return _0x3c39d5(_0x4b6c11,_0xce35c);},'duoxU':function(_0x21ccf0,_0x194caa,_0x42ff35){return _0x21ccf0(_0x194caa,_0x42ff35);},'eqMFC':function(_0x543012,_0x1f998c){return _0x543012(_0x1f998c);},'VLcGF':function(_0x3a065a,_0x78c94e,_0x28c187){return _0x3a065a(_0x78c94e,_0x28c187);},'xMWJM':function(_0x431543,_0x5399ed){return _0x431543(_0x5399ed);},'sluvP':_0x2631a6(0xd8),'payoC':function(_0x8531e1,_0x4369df,_0x284715){return _0x8531e1(_0x4369df,_0x284715);},'tfovz':'opencode.json','rJQby':_0x2631a6(0xa8),'smtNM':'✓\x20Removed\x20trailhead\x20marketplace'};console[_0x2631a6(0xb8)](_0x2631a6(0xb1));let _0x21a741=![];try{await deleteAllCredentials(),console[_0x2631a6(0xb8)]('✓\x20Removed\x20stored\x20credentials'),_0x21a741=!![];}catch{}const _0x3a165c=getCacheFile();existsSync(_0x3a165c)&&(await _0x3713a9[_0x2631a6(0xc9)](rm,_0x3a165c),_0x21a741=!![]);const _0x4dc712=getRangerDir();_0x3713a9[_0x2631a6(0xc9)](existsSync,_0x4dc712)&&(await rm(_0x4dc712,{'recursive':!![]}),console[_0x2631a6(0xb8)](_0x3713a9[_0x2631a6(0xd9)]),_0x21a741=!![]);const _0x1b721f=_0x3713a9[_0x2631a6(0xab)](getProjectSkillsDir);for(const _0xa32479 of skillsToRemove){const _0x1ba04c=_0x3713a9['lteHd'](join,_0x1b721f,_0xa32479);existsSync(_0x1ba04c)&&(await _0x3713a9['lteHd'](rm,_0x1ba04c,{'recursive':!![]}),console[_0x2631a6(0xb8)]('✓\x20Removed\x20project\x20skill:\x20'+_0xa32479),_0x21a741=!![]);}const _0x2f2305=_0x3713a9[_0x2631a6(0xcb)](getUserSkillsDir);for(const _0x5c348a of skillsToRemove){const _0x425a48=_0x3713a9['yrGmG'](join,_0x2f2305,_0x5c348a);existsSync(_0x425a48)&&(await rm(_0x425a48,{'recursive':!![]}),console['log'](_0x2631a6(0xb9)+_0x5c348a),_0x21a741=!![]);}const _0x4b38aa=_0x3713a9['ELHEO'](getOpencodeSkillsDir,'project');for(const _0x4ee1c9 of skillsToRemove){const _0x10e9e9=join(_0x4b38aa,_0x4ee1c9);_0x3713a9['ELHEO'](existsSync,_0x10e9e9)&&(await _0x3713a9['duoxU'](rm,_0x10e9e9,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x4ee1c9),_0x21a741=!![]);}const _0x10f8bb=_0x3713a9['eqMFC'](getOpencodeSkillsDir,_0x2631a6(0xd4));for(const _0x1841be of skillsToRemove){const _0x3a6f27=join(_0x10f8bb,_0x1841be);existsSync(_0x3a6f27)&&(await rm(_0x3a6f27,{'recursive':!![]}),console['log']('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x1841be),_0x21a741=!![]);}const _0x430084=_0x3713a9['VLcGF'](join,_0x3713a9['ELHEO'](getOpencodeConfigDir,_0x2631a6(0xd3)),'opencode.json');await _0x3713a9['xMWJM'](removeOpencodePluginConfig,_0x430084)&&(console[_0x2631a6(0xb8)](_0x3713a9[_0x2631a6(0xd7)]),_0x21a741=!![]);const _0x3b15ba=_0x3713a9['payoC'](join,getOpencodeConfigDir(_0x2631a6(0xd4)),_0x3713a9['tfovz']);await removeOpencodePluginConfig(_0x3b15ba)&&(console['log']('✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)'),_0x21a741=!![]);const _0x407c5c=await uninstallClaudePlugin();_0x407c5c&&(console['log'](_0x2631a6(0xaa)),_0x21a741=!![]);const _0x163a9e=await uninstallClaudePlugin('project');_0x163a9e&&(console['log'](_0x3713a9['rJQby']),_0x21a741=!![]);const _0x1ea8b7=await _0x3713a9['LvYAN'](removeMarketplace);_0x1ea8b7&&(console[_0x2631a6(0xb8)](_0x3713a9['smtNM']),_0x21a741=!![]),_0x21a741?console[_0x2631a6(0xb8)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console['log'](_0x2631a6(0xc3));}
@@ -1 +1 @@
1
- const _0x3c2f48=_0x4aa9;(function(_0x5b6f44,_0x101301){const _0x28101e=_0x4aa9,_0x17fd32=_0x5b6f44();while(!![]){try{const _0x562f33=parseInt(_0x28101e(0xe2))/0x1+parseInt(_0x28101e(0xd6))/0x2*(parseInt(_0x28101e(0xcf))/0x3)+-parseInt(_0x28101e(0xd2))/0x4+-parseInt(_0x28101e(0xc8))/0x5*(-parseInt(_0x28101e(0xce))/0x6)+parseInt(_0x28101e(0xd8))/0x7+parseInt(_0x28101e(0xe3))/0x8*(parseInt(_0x28101e(0xd9))/0x9)+-parseInt(_0x28101e(0xd5))/0xa*(parseInt(_0x28101e(0xcc))/0xb);if(_0x562f33===_0x101301)break;else _0x17fd32['push'](_0x17fd32['shift']());}catch(_0x10f516){_0x17fd32['push'](_0x17fd32['shift']());}}}(_0x71f0,0x4aaff));function _0x71f0(){const _0x3e3d90=[':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','3060690acjQos','291PDUYIF','(not\x20set)','EAULm','2351688wDvRpC','\x20=\x20','headless','10qpJTJH','7588nTWJuP','Key\x20\x22','3023034bfBiHc','288sdYJyB','Profile\x20\x22','log','\x22\x20does\x20not\x20exist.','object','Invalid\x20value\x20for\x20','CYcLt','false','hxAaW','72727JZMRtK','4680SGTuqQ','true','5QZcYDj','QLwMw','NwACf','hCXzi','5583611wRrIxt'];_0x71f0=function(){return _0x3e3d90;};return _0x71f0();}import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x3c2f48(0xd4)];function parseValue(_0x4aa075,_0x15f349){const _0x281ea5=_0x3c2f48,_0x12e389={'CJLsn':function(_0x40120d,_0x615e34){return _0x40120d===_0x615e34;}};if(BOOLEAN_KEYS['includes'](_0x4aa075)){if(_0x12e389['CJLsn'](_0x15f349,_0x281ea5(0xe4)))return!![];if(_0x15f349===_0x281ea5(0xe0))return![];throw new Error(_0x281ea5(0xde)+_0x4aa075+_0x281ea5(0xcd));}return _0x15f349;}export async function configSet(_0x3d821b,_0x371e13,_0x130826){const _0x27996a=_0x3c2f48,_0x318a51={'NwACf':function(_0x9636bf,_0x1b1617){return _0x9636bf(_0x1b1617);},'QLwMw':function(_0x5c15a4,_0x243a30,_0x5e7c57){return _0x5c15a4(_0x243a30,_0x5e7c57);}},_0x259e0d=_0x318a51[_0x27996a(0xca)](getEnvDir,_0x3d821b);if(!existsSync(_0x259e0d))throw new Error(_0x27996a(0xda)+_0x3d821b+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3d821b);const _0x53ddcf=await loadSettings(_0x3d821b),_0xed9bf7=parseValue(_0x371e13,_0x130826);setNestedValue(_0x53ddcf,_0x371e13,_0xed9bf7),await _0x318a51[_0x27996a(0xc9)](saveSettings,_0x3d821b,_0x53ddcf),console[_0x27996a(0xdb)]('Set\x20'+_0x371e13+_0x27996a(0xd3)+_0xed9bf7);}export async function configGet(_0x5bcbab,_0x5425cf){const _0x323108=_0x3c2f48,_0x406fdd={'CYcLt':function(_0x129ddb,_0x2fd506,_0x3c536f){return _0x129ddb(_0x2fd506,_0x3c536f);},'hxAaW':function(_0x271c15,_0x52a8cf){return _0x271c15===_0x52a8cf;},'pyZLn':_0x323108(0xdd)},_0x2ddb9b=getEnvDir(_0x5bcbab);if(!existsSync(_0x2ddb9b))throw new Error(_0x323108(0xda)+_0x5bcbab+_0x323108(0xdc));const _0x52571c=await loadSettings(_0x5bcbab),_0x12c832=_0x406fdd[_0x323108(0xdf)](getNestedValue,_0x52571c,_0x5425cf);if(_0x406fdd[_0x323108(0xe1)](_0x12c832,undefined))console['log'](_0x323108(0xd0));else typeof _0x12c832===_0x406fdd['pyZLn']?console[_0x323108(0xdb)](JSON['stringify'](_0x12c832,null,0x2)):console[_0x323108(0xdb)](_0x12c832);}function _0x4aa9(_0x3507c2,_0x2d2f0b){_0x3507c2=_0x3507c2-0xc8;const _0x71f022=_0x71f0();let _0x4aa970=_0x71f022[_0x3507c2];return _0x4aa970;}export async function configList(_0x2382b0){const _0x54a7b4=_0x3c2f48,_0x45bf36={'hCXzi':function(_0x55b3eb,_0x588956){return _0x55b3eb(_0x588956);},'EAULm':function(_0x2c8875,_0x2f80ec){return _0x2c8875(_0x2f80ec);}},_0x483392=getSettingsPath(_0x2382b0);if(!_0x45bf36[_0x54a7b4(0xcb)](existsSync,_0x483392)){const _0x4c0f4e=getEnvDir(_0x2382b0);if(!_0x45bf36[_0x54a7b4(0xd1)](existsSync,_0x4c0f4e))throw new Error(_0x54a7b4(0xda)+_0x2382b0+'\x22\x20does\x20not\x20exist.');console[_0x54a7b4(0xdb)]('No\x20configuration\x20set\x20for\x20\x22'+_0x2382b0+'\x22');return;}const _0x247793=await loadSettings(_0x2382b0),_0x3aa774=formatSettings(_0x247793);!_0x3aa774?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x2382b0+'\x22'):console['log'](_0x3aa774);}export async function configUnset(_0x2b3227,_0x46010c){const _0x52380b=_0x3c2f48,_0x2be069={'vwknG':function(_0x5a1819,_0x336b96){return _0x5a1819(_0x336b96);},'MKaEe':function(_0x516b5f,_0x1cbe16,_0x138b23){return _0x516b5f(_0x1cbe16,_0x138b23);}},_0x1635fd=_0x2be069['vwknG'](getEnvDir,_0x2b3227);if(!existsSync(_0x1635fd))throw new Error(_0x52380b(0xda)+_0x2b3227+_0x52380b(0xdc));const _0x11cd3a=await loadSettings(_0x2b3227),_0x121487=deleteNestedValue(_0x11cd3a,_0x46010c);_0x121487?(await _0x2be069['MKaEe'](saveSettings,_0x2b3227,_0x11cd3a),console[_0x52380b(0xdb)]('Removed\x20'+_0x46010c)):console[_0x52380b(0xdb)](_0x52380b(0xd7)+_0x46010c+'\x22\x20not\x20found');}
1
+ const _0x1408d2=_0xa9f1;function _0x482e(){const _0x27922f=['SjpiG','1852544FqyRtV','2514625xTisto','ZExih','true','No\x20configuration\x20set\x20for\x20\x22','bffyg','2SwGYAx','object','headless','GRalg','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','32591710aaYYkP','\x22\x20does\x20not\x20exist.','Kagjd','log','4745532FvPCfd','(not\x20set)','zLYwR','Removed\x20','5269544qIwTZd','329379EuyBHi','448506VFjhEK','false','7CXBmBu','Profile\x20\x22','18DfRAaf'];_0x482e=function(){return _0x27922f;};return _0x482e();}(function(_0x18c300,_0xa3c35b){const _0x200668=_0xa9f1,_0x30fa30=_0x18c300();while(!![]){try{const _0x48fe74=-parseInt(_0x200668(0x151))/0x1*(parseInt(_0x200668(0x143))/0x2)+-parseInt(_0x200668(0x152))/0x3+-parseInt(_0x200668(0x150))/0x4+parseInt(_0x200668(0x159))/0x5+parseInt(_0x200668(0x14c))/0x6*(-parseInt(_0x200668(0x154))/0x7)+parseInt(_0x200668(0x158))/0x8*(-parseInt(_0x200668(0x156))/0x9)+parseInt(_0x200668(0x148))/0xa;if(_0x48fe74===_0xa3c35b)break;else _0x30fa30['push'](_0x30fa30['shift']());}catch(_0x43f695){_0x30fa30['push'](_0x30fa30['shift']());}}}(_0x482e,0xadc5b));import{existsSync}from'fs';function _0xa9f1(_0x11cf03,_0x43c716){_0x11cf03=_0x11cf03-0x142;const _0x482e06=_0x482e();let _0xa9f14d=_0x482e06[_0x11cf03];return _0xa9f14d;}import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=[_0x1408d2(0x145)];function parseValue(_0x4224f4,_0x3ed08a){const _0x17fe22=_0x1408d2,_0x1afb00={'lwoNp':_0x17fe22(0x15b),'QgDuF':function(_0x19cdb6,_0x11457b){return _0x19cdb6===_0x11457b;}};if(BOOLEAN_KEYS['includes'](_0x4224f4)){if(_0x3ed08a===_0x1afb00['lwoNp'])return!![];if(_0x1afb00['QgDuF'](_0x3ed08a,_0x17fe22(0x153)))return![];throw new Error('Invalid\x20value\x20for\x20'+_0x4224f4+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x3ed08a;}export async function configSet(_0x33b51e,_0xdc8dcb,_0xb71611){const _0x570a33=_0x1408d2,_0x26d51c={'BCcaP':function(_0x42f89e,_0x1c5a58){return _0x42f89e(_0x1c5a58);},'bffyg':function(_0x343067,_0x2997a4){return _0x343067(_0x2997a4);},'SjpiG':function(_0x68e439,_0x13bac8,_0x1fd395,_0x5d16e6){return _0x68e439(_0x13bac8,_0x1fd395,_0x5d16e6);},'XoJfR':function(_0x126db1,_0x28fad7,_0x480fc0){return _0x126db1(_0x28fad7,_0x480fc0);}},_0x126734=_0x26d51c['BCcaP'](getEnvDir,_0x33b51e);if(!_0x26d51c[_0x570a33(0x142)](existsSync,_0x126734))throw new Error(_0x570a33(0x155)+_0x33b51e+_0x570a33(0x147)+_0x33b51e);const _0x27b00b=await loadSettings(_0x33b51e),_0x5a0ef5=parseValue(_0xdc8dcb,_0xb71611);_0x26d51c[_0x570a33(0x157)](setNestedValue,_0x27b00b,_0xdc8dcb,_0x5a0ef5),await _0x26d51c['XoJfR'](saveSettings,_0x33b51e,_0x27b00b),console['log']('Set\x20'+_0xdc8dcb+'\x20=\x20'+_0x5a0ef5);}export async function configGet(_0x4bf9a1,_0x5b9512){const _0x5922df=_0x1408d2,_0x2a52e2={'Kagjd':function(_0x96cab,_0x2838c8){return _0x96cab(_0x2838c8);},'ZExih':function(_0x26fedc,_0x28945c){return _0x26fedc===_0x28945c;}},_0x270355=_0x2a52e2[_0x5922df(0x14a)](getEnvDir,_0x4bf9a1);if(!_0x2a52e2[_0x5922df(0x14a)](existsSync,_0x270355))throw new Error('Profile\x20\x22'+_0x4bf9a1+'\x22\x20does\x20not\x20exist.');const _0x582bf5=await loadSettings(_0x4bf9a1),_0xd6bf51=getNestedValue(_0x582bf5,_0x5b9512);if(_0x2a52e2['ZExih'](_0xd6bf51,undefined))console[_0x5922df(0x14b)](_0x5922df(0x14d));else _0x2a52e2[_0x5922df(0x15a)](typeof _0xd6bf51,_0x5922df(0x144))?console['log'](JSON['stringify'](_0xd6bf51,null,0x2)):console['log'](_0xd6bf51);}export async function configList(_0x27bf24){const _0x338f38=_0x1408d2,_0xe74b67={'GRalg':function(_0x5c21d8,_0x4ed6ab){return _0x5c21d8(_0x4ed6ab);},'vaoVZ':function(_0x252fec,_0xe607bf){return _0x252fec(_0xe607bf);}},_0xad8e22=getSettingsPath(_0x27bf24);if(!existsSync(_0xad8e22)){const _0x24c91a=_0xe74b67[_0x338f38(0x146)](getEnvDir,_0x27bf24);if(!existsSync(_0x24c91a))throw new Error('Profile\x20\x22'+_0x27bf24+_0x338f38(0x149));console['log'](_0x338f38(0x15c)+_0x27bf24+'\x22');return;}const _0x3f9471=await _0xe74b67[_0x338f38(0x146)](loadSettings,_0x27bf24),_0x32ef69=_0xe74b67['vaoVZ'](formatSettings,_0x3f9471);!_0x32ef69?console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x27bf24+'\x22'):console['log'](_0x32ef69);}export async function configUnset(_0x46bbc0,_0x2547ba){const _0x4de0b7=_0x1408d2,_0x2d302a={'LkbMl':function(_0x4f0024,_0x35d306){return _0x4f0024(_0x35d306);},'zLYwR':function(_0x33eaa1,_0x4a6b4d){return _0x33eaa1(_0x4a6b4d);},'gNWRx':function(_0x301e83,_0x3c0a78,_0x4c2555){return _0x301e83(_0x3c0a78,_0x4c2555);}},_0x1173d8=_0x2d302a['LkbMl'](getEnvDir,_0x46bbc0);if(!_0x2d302a[_0x4de0b7(0x14e)](existsSync,_0x1173d8))throw new Error('Profile\x20\x22'+_0x46bbc0+'\x22\x20does\x20not\x20exist.');const _0x1abb7b=await _0x2d302a['LkbMl'](loadSettings,_0x46bbc0),_0x4e1f91=_0x2d302a['gNWRx'](deleteNestedValue,_0x1abb7b,_0x2547ba);_0x4e1f91?(await saveSettings(_0x46bbc0,_0x1abb7b),console[_0x4de0b7(0x14b)](_0x4de0b7(0x14f)+_0x2547ba)):console['log']('Key\x20\x22'+_0x2547ba+'\x22\x20not\x20found');}