@ranger-testing/ranger-cli 2.1.6 → 2.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/build/skills/ranger/SKILL.md +25 -7
- package/build/skills/ranger/claude.md +7 -0
- package/build/skills/ranger/start.md +2 -2
- package/build/skills/ranger/verify.md +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -89,7 +89,7 @@ Ask Claude to build a UI feature. Ranger handles the rest: creating a feature re
|
|
|
89
89
|
| ------------ | ------------------------------------ |
|
|
90
90
|
| `ranger go` | Verify a scenario in the browser |
|
|
91
91
|
|
|
92
|
-
Options: `--scenario <N>` (scenario index), `--notes "<desc>"` (override notes), `--start-path /path` (start URL), `--profile <name>`, `--model <model
|
|
92
|
+
Options: `--scenario <N>` (scenario index), `--notes "<desc>"` (override notes), `--start-path /path` (start URL), `--profile <name>`, `--model <model>`, `--headed` (force headed browser for this run only).
|
|
93
93
|
|
|
94
94
|
You can set a default verify model in `.ranger/config.json`:
|
|
95
95
|
|
package/build/cli.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const _0x11ef01=_0x4000;(function(_0x5222e0,_0x40f069){const _0x3bd5e9=_0x4000,_0xcc43ed=_0x5222e0();while(!![]){try{const _0x12979=-parseInt(_0x3bd5e9(0xe5))/0x1+-parseInt(_0x3bd5e9(0x9c))/0x2+parseInt(_0x3bd5e9(0x136))/0x3*(-parseInt(_0x3bd5e9(0x174))/0x4)+-parseInt(_0x3bd5e9(0x170))/0x5+parseInt(_0x3bd5e9(0x12b))/0x6+parseInt(_0x3bd5e9(0x86))/0x7*(parseInt(_0x3bd5e9(0x14b))/0x8)+parseInt(_0x3bd5e9(0x159))/0x9;if(_0x12979===_0x40f069)break;else _0xcc43ed['push'](_0xcc43ed['shift']());}catch(_0x36d86d){_0xcc43ed['push'](_0xcc43ed['shift']());}}}(_0x2b2c,0xc9413));import _0x3a8342 from'dotenv';import{dirname,join,parse}from'path';function _0x4000(_0x51385c,_0xba9a04){_0x51385c=_0x51385c-0x7b;const _0x2b2c17=_0x2b2c();let _0x4000f3=_0x2b2c17[_0x51385c];return _0x4000f3;}import{existsSync}from'fs';function findProjectRoot(){const _0x3eef23=_0x4000,_0x525fb2={'rZYOp':function(_0x484a3e,_0x2ea2e6){return _0x484a3e(_0x2ea2e6);},'Rmeiz':function(_0x451804,_0x31ad5b,_0x2123ed){return _0x451804(_0x31ad5b,_0x2123ed);},'gwKeR':'.env'};let _0x4db99b=process['cwd']();const _0x51cab0=_0x525fb2['rZYOp'](parse,_0x4db99b)['root'];while(_0x4db99b!==_0x51cab0){if(_0x525fb2['rZYOp'](existsSync,_0x525fb2['Rmeiz'](join,_0x4db99b,_0x3eef23(0xfd)))||existsSync(join(_0x4db99b,_0x525fb2[_0x3eef23(0x17c)])))return _0x4db99b;_0x4db99b=dirname(_0x4db99b);}return process[_0x3eef23(0x12e)]();}_0x3a8342[_0x11ef01(0x131)]({'path':join(findProjectRoot(),'.env')});import _0x2bb460 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'](_0x11ef01(0x108),async _0x361c0e=>{const _0x431ee3=_0x11ef01,_0xb4261={'hSCxi':function(_0xfa4ce8){return _0xfa4ce8();}},_0x4c0c7b=_0xb4261['hSCxi'](getCurrentCollector);_0x4c0c7b&&await _0x4c0c7b['trackCommandError'](_0x361c0e),process[_0x431ee3(0xb7)]=0x1;});const rawArgs=process[_0x11ef01(0x109)][_0x11ef01(0xa4)](0x2),TOP_LEVEL_HELP=_0x11ef01(0xc6),PROFILE_HELP=_0x11ef01(0xed),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(_0x5b8a62,_0x931c45){const _0x2c1151=_0x11ef01;console[_0x2c1151(0x96)]('\x0a'+_0x5b8a62+_0x2c1151(0x80)+_0x931c45+'\x0a');}function argUsed(_0xfc902){const _0x226590=_0x11ef01;return rawArgs[_0x226590(0xf0)](_0x3cc135=>_0x3cc135===_0xfc902||_0x3cc135['startsWith'](_0xfc902+'='));}function warnFlagRenamed(_0x575373,_0x198b5a,_0x2a7fc7){const _0xd92c57={'EDJxN':function(_0x3d9681,_0x23c5a8){return _0x3d9681(_0x23c5a8);}};_0xd92c57['EDJxN'](argUsed,_0x198b5a)&&warnRenamed(_0x575373+'\x20'+_0x198b5a,_0x575373+'\x20'+_0x2a7fc7);}async function runGoCommand(_0x33e166,_0x6fc1c=![]){const _0x45bde5=_0x11ef01,_0x227a3b={'tHJPz':'ranger\x20go','xtRRf':function(_0x1da0a3,_0x992d54,_0x3b213b,_0xde4216){return _0x1da0a3(_0x992d54,_0x3b213b,_0xde4216);},'COZkK':function(_0x26651d,_0xb278da,_0x1ecaed,_0x217d2f){return _0x26651d(_0xb278da,_0x1ecaed,_0x217d2f);},'JNljh':_0x45bde5(0x125),'FfaUG':'--notes','hpYUt':function(_0x39ce76,_0x45e423,_0x5f2539,_0x136a3c){return _0x39ce76(_0x45e423,_0x5f2539,_0x136a3c);},'mDEEz':'--item','MuwDI':function(_0xbd31bf){return _0xbd31bf();},'HGLHO':function(_0x1b37fc,_0x58f7fd){return _0x1b37fc??_0x58f7fd;},'frRfy':'config','FUnUj':function(_0x479c8c,_0x574b97){return _0x479c8c(_0x574b97);},'SesRD':'start-path','ryokA':function(_0x244314,_0x16c127){return _0x244314===_0x16c127;},'IeOoU':_0x45bde5(0x1a6),'WfTlc':_0x45bde5(0xa6),'woZfX':function(_0x5a6bee,_0x227906){return _0x5a6bee===_0x227906;},'mevGl':_0x45bde5(0x161),'JRoPE':'\x20INCOMPLETE','agebl':'\x20PARTIAL','eqBFY':'\x20BLOCKED','xSvDe':'\x20FAILED'};_0x6fc1c&&warnRenamed('ranger\x20verify-feature',_0x227a3b[_0x45bde5(0x107)]);_0x227a3b['xtRRf'](warnFlagRenamed,_0x227a3b['tHJPz'],'--env','--profile'),_0x227a3b['COZkK'](warnFlagRenamed,'ranger\x20go',_0x227a3b[_0x45bde5(0xd4)],_0x227a3b[_0x45bde5(0x1a2)]),_0x227a3b['hpYUt'](warnFlagRenamed,_0x227a3b[_0x45bde5(0x107)],_0x227a3b[_0x45bde5(0xc4)],'--scenario');const _0xa6742=await _0x227a3b['MuwDI'](loadRangerConfig),_0xd75d0d=_0x33e166[_0x45bde5(0xb1)],_0x185cbf=_0xa6742[_0x45bde5(0xb1)],_0x19814a=_0x227a3b['HGLHO'](_0xd75d0d,_0x185cbf),_0x5eadb7=_0xd75d0d?'flag':_0x185cbf?_0x227a3b['frRfy']:_0x45bde5(0xf8),_0x2cd7f2=await _0x227a3b['FUnUj'](verifyFeature,{'profile':_0x33e166[_0x45bde5(0x88)]??_0x33e166['env'],'notes':_0x33e166['notes']??_0x33e166['task'],'scenario':_0x33e166[_0x45bde5(0x19a)]??_0x33e166[_0x45bde5(0xbd)],'startPath':_0x33e166[_0x227a3b['SesRD']],'debugOutcome':_0x33e166[_0x45bde5(0x11c)],'debugAddressComments':_0x33e166[_0x45bde5(0x19d)],'verifyModel':_0x19814a,'verifyModelInput':_0x19814a,'verifyModelSource':_0x5eadb7});console['log']('\x0a'+'='['repeat'](0x3c)),console[_0x45bde5(0x124)](_0x227a3b[_0x45bde5(0x179)](_0x2cd7f2[_0x45bde5(0x16c)],_0x227a3b['IeOoU'])?_0x227a3b['WfTlc']:_0x227a3b[_0x45bde5(0x18a)](_0x2cd7f2[_0x45bde5(0x16c)],_0x227a3b[_0x45bde5(0x13d)])?_0x227a3b['JRoPE']:_0x2cd7f2['evaluation']==='partial'?_0x227a3b['agebl']:_0x2cd7f2[_0x45bde5(0x16c)]===_0x45bde5(0xc9)?_0x227a3b['eqBFY']:_0x227a3b['xSvDe']),console[_0x45bde5(0x124)]('='['repeat'](0x3c)),console[_0x45bde5(0x124)]('Summary:\x20'+_0x2cd7f2['summary']),console[_0x45bde5(0x124)]('Evaluation:\x20'+_0x2cd7f2['evaluation']),console[_0x45bde5(0x124)](_0x45bde5(0x195)+_0x2cd7f2[_0x45bde5(0xb8)]),_0x2cd7f2['issues']?.['length']&&(console['log']('\x0aIssues:'),_0x2cd7f2['issues']['forEach']((_0xa935c3,_0x509fe9)=>{const _0xd34382=_0x45bde5;console[_0xd34382(0x124)]('\x0a'+(_0x509fe9+0x1)+_0xd34382(0x132)+_0xa935c3[_0xd34382(0x12d)]+']\x20'+_0xa935c3[_0xd34382(0x138)]);})),process[_0x45bde5(0x164)](_0x2cd7f2['evaluation']===_0x227a3b['IeOoU']?0x0:0x1);}_0x2bb460(process['argv']['slice'](0x2))['scriptName']('ranger')[_0x11ef01(0x140)](TOP_LEVEL_HELP)[_0x11ef01(0x199)](getCurrentVersion())[_0x11ef01(0x156)]('create\x20<name>','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios',_0x286e84=>{const _0x334ed2=_0x11ef01,_0x2b96ef={'POnKE':'string','nnFsO':_0x334ed2(0x1a1),'pokEg':'scenario','npdCg':_0x334ed2(0x16b),'GRpcw':'checklist'};return _0x286e84[_0x334ed2(0x13e)]('name',{'type':_0x2b96ef['POnKE'],'description':'Feature\x20review\x20name','demandOption':!![]})['option']('description',{'type':'string','alias':'d','description':_0x2b96ef[_0x334ed2(0xce)]})[_0x334ed2(0x180)](_0x2b96ef['pokEg'],{'type':_0x2b96ef[_0x334ed2(0xb9)],'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})['option'](_0x2b96ef['GRpcw'],{'type':_0x2b96ef[_0x334ed2(0xb9)],'hidden':!![]});},async _0x5554a8=>{const _0x32d41a=_0x11ef01,_0x58e1da={'EHQyD':function(_0x5ce752,_0x21d0e5,_0x1dc3c7,_0x480bed){return _0x5ce752(_0x21d0e5,_0x1dc3c7,_0x480bed);},'EdYIf':'--scenario','jcGjQ':_0x32d41a(0x103)};_0x58e1da['EHQyD'](warnFlagRenamed,_0x32d41a(0xef),'--checklist',_0x58e1da[_0x32d41a(0x9f)]);const _0x141d7e=_0x5554a8[_0x32d41a(0x19a)]||_0x5554a8[_0x32d41a(0x153)];await withTelemetry(_0x58e1da['jcGjQ'],()=>featureCreate(_0x5554a8[_0x32d41a(0x119)],{'description':_0x5554a8['description'],'scenarios':_0x141d7e}));})[_0x11ef01(0x156)]('list','List\x20all\x20feature\x20reviews',_0x575ecb=>{const _0x250cfa=_0x11ef01,_0x5017aa={'EEmRp':_0x250cfa(0x152),'fhoSg':_0x250cfa(0xc5),'TfJmS':'limit','yrOch':_0x250cfa(0xd5),'pjpdO':_0x250cfa(0xab),'QBAXv':'include-deleted','ZqAJs':'Include\x20soft-deleted\x20feature\x20reviews'};return _0x575ecb[_0x250cfa(0x180)](_0x5017aa['EEmRp'],{'type':_0x5017aa[_0x250cfa(0xa2)],'description':_0x250cfa(0xfc)})[_0x250cfa(0x180)](_0x5017aa[_0x250cfa(0xe2)],{'type':_0x250cfa(0xab),'alias':'l','description':_0x5017aa[_0x250cfa(0x1a0)],'default':0xa})['option']('offset',{'type':_0x5017aa[_0x250cfa(0x184)],'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})['option'](_0x5017aa['QBAXv'],{'type':_0x5017aa['fhoSg'],'alias':'d','description':_0x5017aa[_0x250cfa(0x173)],'default':![]});},async _0x47cbe9=>{const _0x4a3220=_0x11ef01,_0x4459a1={'NZDMR':'list'};await withTelemetry(_0x4459a1['NZDMR'],()=>featureList({'currentBranch':_0x47cbe9['current-branch'],'limit':_0x47cbe9['limit'],'offset':_0x47cbe9[_0x4a3220(0x99)],'includeDeleted':_0x47cbe9['include-deleted']}));})[_0x11ef01(0x156)]('show\x20[id]',_0x11ef01(0xe1),_0x4bbf20=>{const _0x19baad=_0x11ef01,_0x443f63={'ARnvC':'string'};return _0x4bbf20[_0x19baad(0x13e)]('id',{'type':_0x443f63['ARnvC'],'description':'Feature\x20review\x20ID'});},async _0x48e04b=>{const _0x1554f2=_0x11ef01,_0x577f19={'ZpEgf':function(_0x5f117e,_0x4f5f46,_0x3a07c6){return _0x5f117e(_0x4f5f46,_0x3a07c6);}};await _0x577f19['ZpEgf'](withTelemetry,_0x1554f2(0xdb),()=>featureShow(_0x48e04b['id']));})['command'](_0x11ef01(0x130),_0x11ef01(0xff),_0x3135e5=>{const _0x47780c=_0x11ef01;return _0x3135e5['positional']('id',{'type':'string','description':_0x47780c(0x172)});},async _0x14ee10=>{await withTelemetry('resume',()=>featureResume(_0x14ee10['id']));})[_0x11ef01(0x156)](_0x11ef01(0x189),'Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review',_0x538e34=>{const _0xe495e5=_0x11ef01,_0x3703f2={'dHkeT':_0xe495e5(0x138),'eGvzx':'string','TPPbs':_0xe495e5(0x134)};return _0x538e34['positional'](_0x3703f2['dHkeT'],{'type':_0x3703f2[_0xe495e5(0x93)],'description':_0x3703f2[_0xe495e5(0x13a)],'demandOption':!![]})['option']('id',{'type':_0x3703f2['eGvzx'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x4a86e8=>{const _0x25db82=_0x11ef01,_0x3738d9={'InAwu':function(_0x1df84f,_0x1f0ed6,_0x37b1f6){return _0x1df84f(_0x1f0ed6,_0x37b1f6);},'KmPcV':_0x25db82(0x7d)};await _0x3738d9[_0x25db82(0xea)](withTelemetry,_0x3738d9[_0x25db82(0x116)],()=>featureAddScenario(_0x4a86e8[_0x25db82(0x138)],_0x4a86e8['id']));})[_0x11ef01(0x156)]('edit-scenario\x20<description>','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review',_0xe3b728=>{const _0xcf2b85=_0x11ef01,_0x3d5526={'CfjuB':'New\x20scenario\x20description','geQIl':_0xcf2b85(0x19a),'memQU':'number','vppQh':'string','ajLpu':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'};return _0xe3b728['positional'](_0xcf2b85(0x138),{'type':_0xcf2b85(0x7e),'description':_0x3d5526[_0xcf2b85(0xa1)],'demandOption':!![]})[_0xcf2b85(0x180)](_0x3d5526[_0xcf2b85(0xbe)],{'type':_0x3d5526[_0xcf2b85(0x181)],'description':_0xcf2b85(0x148),'demandOption':!![]})['option']('id',{'type':_0x3d5526['vppQh'],'description':_0x3d5526['ajLpu']});},async _0x496d8e=>{const _0x2dc4aa=_0x11ef01,_0x1756eb={'iFoKL':function(_0x193a8e,_0x54e90e,_0x3cf0a0){return _0x193a8e(_0x54e90e,_0x3cf0a0);},'CXdBA':_0x2dc4aa(0xa0)};await _0x1756eb[_0x2dc4aa(0xdd)](withTelemetry,_0x1756eb[_0x2dc4aa(0xc0)],()=>featureEditScenario(_0x496d8e[_0x2dc4aa(0x138)],{'id':_0x496d8e['id'],'scenario':_0x496d8e[_0x2dc4aa(0x19a)]}));})['command'](_0x11ef01(0x92),_0x11ef01(0x15e),_0x1a8adb=>{const _0x48c1a6=_0x11ef01,_0x439b76={'AGrRE':'string','yNgdE':'exclude-scenario'};return _0x1a8adb['positional']('id',{'type':_0x439b76['AGrRE'],'description':_0x48c1a6(0x17a)})[_0x48c1a6(0x180)](_0x439b76[_0x48c1a6(0x105)],{'type':_0x48c1a6(0x16b),'description':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'});},async _0x3ced32=>{const _0x24e5e3=_0x11ef01,_0xa09892={'cLuVx':function(_0x5b4274,_0xf5e058,_0x2869ce){return _0x5b4274(_0xf5e058,_0x2869ce);}},_0x5bab23=_0x3ced32['exclude-scenario'],_0xeb243b=_0x5bab23?_0x5bab23[_0x24e5e3(0x100)](_0x62dfc8=>Number(_0x62dfc8)):undefined;await _0xa09892[_0x24e5e3(0x171)](withTelemetry,'report',()=>featureReportPrDescription(_0x3ced32['id'],{'excludeScenarios':_0xeb243b}));})['command']('get-review\x20[id]','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios',_0x40ba58=>{const _0x2c9d3b=_0x11ef01;return _0x40ba58[_0x2c9d3b(0x13e)]('id',{'type':'string','description':_0x2c9d3b(0x1b7)});},async _0x1c1fc0=>{const _0x25a510=_0x11ef01,_0x1e0b62={'BkUIN':_0x25a510(0xf4)};await withTelemetry(_0x1e0b62[_0x25a510(0x15b)],()=>featureGetReview(_0x1c1fc0['id']));})[_0x11ef01(0x156)](_0x11ef01(0x1b8),'Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x141b0e=>{const _0x384f82=_0x11ef01,_0x12fe94={'BFflu':'string'};return _0x141b0e[_0x384f82(0x13e)]('id',{'type':_0x12fe94['BFflu'],'description':'Feature\x20review\x20ID'});},async _0x2d43b0=>{const _0x2a50cf=_0x11ef01,_0x553623={'rvxSM':function(_0x16c415,_0x4d319e,_0x45e920){return _0x16c415(_0x4d319e,_0x45e920);},'mCnRj':'delete'};await _0x553623[_0x2a50cf(0x18e)](withTelemetry,_0x553623[_0x2a50cf(0x185)],()=>featureDelete(_0x2d43b0['id']));})['command']('restore\x20<id>','Restore\x20a\x20soft-deleted\x20feature\x20review',_0x161426=>{const _0x1a4107=_0x11ef01,_0x41d061={'yhiFi':_0x1a4107(0x144)};return _0x161426['positional']('id',{'type':'string','description':_0x41d061[_0x1a4107(0x112)],'demandOption':!![]});},async _0x1765c5=>{await withTelemetry('restore',()=>featureRestore(_0x1765c5['id']));})[_0x11ef01(0x156)](_0x11ef01(0xfb),_0x11ef01(0xa5),_0x41fdc2=>{const _0x4487ef=_0x11ef01,_0x12babd={'rkEgw':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','rlogz':'boolean','KGuJv':_0x4487ef(0x7f),'gPeBm':_0x4487ef(0x14c),'kZNoy':'url','NKDtR':_0x4487ef(0xbb),'daTUv':'Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)'};return _0x41fdc2['positional']('token',{'type':'string','description':_0x12babd[_0x4487ef(0xf3)]})['option']('skip-chromium',{'type':_0x12babd['rlogz'],'description':_0x4487ef(0x8c),'default':![]})['option'](_0x12babd['KGuJv'],{'type':_0x4487ef(0x7e),'choices':[_0x4487ef(0x17f),_0x4487ef(0x197)],'description':_0x12babd[_0x4487ef(0x1bb)]})[_0x4487ef(0x180)](_0x12babd['kZNoy'],{'type':'string','description':_0x12babd[_0x4487ef(0xb0)]})[_0x4487ef(0x180)](_0x4487ef(0x12a),{'type':_0x4487ef(0xc5),'description':_0x4487ef(0x1b5),'default':![]})[_0x4487ef(0x180)](_0x4487ef(0xde),{'type':_0x4487ef(0xc5),'description':_0x12babd[_0x4487ef(0x120)],'default':![]});},async _0x155ee4=>{const _0x3fcf42=_0x11ef01,_0x1251bf={'pzVsf':function(_0x1e21e2,_0x5ee640,_0x1dbb38){return _0x1e21e2(_0x5ee640,_0x1dbb38);}};await _0x1251bf['pzVsf'](withTelemetry,'start',_0x5cecac=>start(_0x155ee4['token'],{'skipChromium':_0x155ee4['skip-chromium'],'scope':_0x155ee4[_0x3fcf42(0x7f)],'url':_0x155ee4['url'],'force':_0x155ee4['force'],'opencode':_0x155ee4[_0x3fcf42(0xde)]},_0x5cecac));})[_0x11ef01(0x156)]('setup-ci\x20<token>',_0x11ef01(0x1b3),_0x2026d3=>{const _0x4ef88f=_0x11ef01,_0x1f3e54={'AAYHj':'Ranger\x20API\x20token','cgQvc':_0x4ef88f(0x88),'Kxkub':'string','fqGfF':'skip-chromium'};return _0x2026d3['positional'](_0x4ef88f(0x18f),{'type':'string','description':_0x1f3e54[_0x4ef88f(0x143)],'demandOption':!![]})['option'](_0x1f3e54[_0x4ef88f(0xd6)],{'type':'string','description':'CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)'})['option']('base-url',{'type':_0x1f3e54[_0x4ef88f(0x183)],'description':_0x4ef88f(0x1b4)})['option'](_0x1f3e54[_0x4ef88f(0x81)],{'type':_0x4ef88f(0xc5),'description':'Skip\x20Chromium\x20browser\x20installation','default':![]});},async _0x1cfda6=>{const _0x37f8e5=_0x11ef01,_0x3d2f52={'QkrMr':function(_0x233abc,_0x38ea9c,_0x1b049c){return _0x233abc(_0x38ea9c,_0x1b049c);}};await _0x3d2f52['QkrMr'](withTelemetry,'setup-ci',_0x4ad68c=>setupCi(_0x1cfda6[_0x37f8e5(0x18f)],{'profile':_0x1cfda6[_0x37f8e5(0x88)],'baseUrl':_0x1cfda6[_0x37f8e5(0x85)],'skipChromium':_0x1cfda6['skip-chromium']},_0x4ad68c));})['command']('login',_0x11ef01(0xe7),()=>{},async()=>{const _0x7652a9={'XjLDA':function(_0xd48caa,_0x93b587,_0x24ea87){return _0xd48caa(_0x93b587,_0x24ea87);},'EllXA':'login'};await _0x7652a9['XjLDA'](withTelemetry,_0x7652a9['EllXA'],()=>login());})['command']('skillup',_0x11ef01(0x194),_0x10c886=>{const _0x5bb860=_0x11ef01,_0x391f99={'uZxpc':'user'};return _0x10c886['option']('opencode',{'type':'boolean','description':_0x5bb860(0xcb),'default':![]})['option']('scope',{'type':'string','choices':[_0x391f99[_0x5bb860(0xd1)],'project'],'description':_0x5bb860(0x16a)});},async _0x3ed272=>{const _0x5275ba=_0x11ef01,_0x44a139={'eTCMN':function(_0x404c5f,_0x203271){return _0x404c5f(_0x203271);},'NdYQg':_0x5275ba(0x162)},_0x5c9b3c=_0x44a139['eTCMN'](Boolean,_0x3ed272['opencode']);await withTelemetry(_0x44a139[_0x5275ba(0xe9)],()=>skillup({'autoInstall':_0x3ed272['scope'],'platform':_0x5c9b3c?'opencode':_0x5275ba(0x17b)}));})[_0x11ef01(0x156)](_0x11ef01(0xeb),_0x11ef01(0x167),()=>{},async()=>{const _0x1c6d49=_0x11ef01,_0x73558e={'XpXvY':function(_0x5e1a62,_0x532f14,_0x584cb1){return _0x5e1a62(_0x532f14,_0x584cb1);},'iujnv':_0x1c6d49(0xeb)};await _0x73558e['XpXvY'](withTelemetry,_0x73558e[_0x1c6d49(0x8b)],()=>clean());})[_0x11ef01(0x156)](_0x11ef01(0x88),'Manage\x20profiles',_0x556e84=>{const _0x4de61f=_0x11ef01,_0x59c626={'QQsZd':_0x4de61f(0x7e),'WMoKQ':'skip-auth','eRniv':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','SiKSs':'force','LoZiG':_0x4de61f(0x19e),'URwtM':function(_0x42357a,_0x880011,_0xf20eb2,_0x544597){return _0x42357a(_0x880011,_0xf20eb2,_0x544597);},'Gvjsp':'profile\x20add','pBuAr':function(_0x3fa6b2,_0x2f2d7f){return _0x3fa6b2(_0x2f2d7f);},'BGNjL':_0x4de61f(0xe8),'YqQby':_0x4de61f(0x91),'bPSZg':'Name\x20of\x20the\x20profile','kzeVA':'profile','zfJQa':'Profile\x20name','FCkWV':function(_0x89b3ab,_0x25f33a,_0x188a47){return _0x89b3ab(_0x25f33a,_0x188a47);},'PQtGP':'profile\x20ls','CsYxu':_0x4de61f(0xf7),'yXMYC':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','vWrVo':'value','kDgzF':_0x4de61f(0x9d),'RWwAw':_0x4de61f(0xb4),'yqKCk':'profile\x20config\x20list','MhEAM':'Config\x20key\x20to\x20remove','mFnjG':_0x4de61f(0xa9),'HMswi':'Get\x20a\x20config\x20value','WyxVb':'unset\x20<profile>\x20<key>','sEPze':'You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','lPSzN':'Switch\x20to\x20using\x20a\x20specific\x20profile','AvgnC':_0x4de61f(0x83),'fBXvf':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','iLGkl':'List\x20all\x20profiles','KtYwK':_0x4de61f(0x11e),'NvkdS':_0x4de61f(0xdf),'jFEFV':_0x4de61f(0xca)};return _0x556e84[_0x4de61f(0x140)](PROFILE_HELP)['command'](_0x4de61f(0x10a),_0x4de61f(0x15a),_0x49c1d9=>{const _0x251eab=_0x4de61f;return _0x49c1d9[_0x251eab(0x13e)]('profile-name',{'type':_0x59c626['QQsZd'],'description':'Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x251eab(0x180)]('ci',{'type':_0x251eab(0xc5),'description':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','default':![]})['option'](_0x59c626[_0x251eab(0x106)],{'type':'boolean','description':_0x59c626['eRniv'],'default':![]})['option']('url',{'type':_0x251eab(0x7e),'description':_0x251eab(0x102)})[_0x251eab(0x180)](_0x59c626[_0x251eab(0xc2)],{'type':_0x251eab(0xc5),'description':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','default':![]})['option']('cdp-endpoint',{'type':_0x251eab(0x7e),'description':_0x59c626['LoZiG']});},async _0x1e5b90=>{const _0x1ef249=_0x4de61f;await _0x59c626['URwtM'](withTelemetry,_0x59c626[_0x1ef249(0x10e)],_0xd98fb0=>addEnv(_0x1e5b90[_0x1ef249(0x91)],{'ci':_0x1e5b90['ci'],'skipAuth':_0x1e5b90['skip-auth'],'url':_0x1e5b90[_0x1ef249(0x142)],'force':_0x1e5b90['force'],'cdpEndpoint':_0x1e5b90['cdp-endpoint']},_0xd98fb0),{'isElectron':_0x59c626[_0x1ef249(0x192)](Boolean,_0x1e5b90[_0x59c626[_0x1ef249(0xc3)]])});})['command']('use\x20<profile-name>',_0x59c626['lPSzN'],_0x1ff801=>{const _0x3dc8da=_0x4de61f;return _0x1ff801[_0x3dc8da(0x13e)](_0x59c626[_0x3dc8da(0x1a7)],{'type':_0x3dc8da(0x7e),'description':_0x59c626[_0x3dc8da(0x19b)],'demandOption':!![]});},async _0x170132=>{await withTelemetry('profile\x20use',()=>useEnv(_0x170132['profile-name']));})['command'](_0x59c626[_0x4de61f(0x123)],_0x59c626[_0x4de61f(0x158)],_0x2b2aed=>{const _0x51b3b2=_0x4de61f;return _0x2b2aed[_0x51b3b2(0x13e)](_0x59c626['kzeVA'],{'type':_0x59c626[_0x51b3b2(0x139)],'description':_0x59c626['zfJQa'],'demandOption':!![]});},async _0x4b335d=>{const _0x2f3904=_0x4de61f;await withTelemetry('profile\x20encrypt-auth',()=>authEncrypt(_0x4b335d[_0x2f3904(0x88)]));})['command']('ls',_0x59c626[_0x4de61f(0x94)],()=>{},async()=>{await _0x59c626['FCkWV'](withTelemetry,_0x59c626['PQtGP'],()=>envList());})['command'](_0x4de61f(0x8f),_0x59c626['KtYwK'],_0x2842ed=>{const _0x3c5183=_0x4de61f;return _0x2842ed[_0x3c5183(0x13e)](_0x59c626['YqQby'],{'type':_0x3c5183(0x7e),'description':_0x3c5183(0xcd),'demandOption':!![]});},async _0x3d6ca4=>{const _0x36e690=_0x4de61f;await withTelemetry(_0x59c626[_0x36e690(0x1a4)],_0x1e7230=>updateEnv(_0x3d6ca4[_0x36e690(0x91)],_0x1e7230));})[_0x4de61f(0x156)]('config',_0x59c626['NvkdS'],_0x7587b6=>{const _0x2c6e34=_0x4de61f,_0x3ad9a9={'ntJia':function(_0x591400,_0x4f8faa,_0x5ba74a){return _0x59c626['FCkWV'](_0x591400,_0x4f8faa,_0x5ba74a);},'XfJpP':function(_0x338ffb,_0x1fe801,_0x2da27f){return _0x338ffb(_0x1fe801,_0x2da27f);},'TJBIx':'profile\x20config\x20get','sEPnh':_0x59c626['yqKCk'],'BQOAJ':_0x59c626[_0x2c6e34(0x114)],'aVyjI':_0x59c626['QQsZd'],'MlZNL':_0x59c626[_0x2c6e34(0xe3)],'DbAdH':_0x59c626[_0x2c6e34(0x118)]};return _0x7587b6[_0x2c6e34(0x140)](PROFILE_CONFIG_HELP)['command'](_0x59c626['mFnjG'],_0x2c6e34(0x127),_0x3699ce=>{const _0x3c94ff=_0x2c6e34;return _0x3699ce[_0x3c94ff(0x13e)]('profile',{'type':_0x59c626['QQsZd'],'description':_0x3c94ff(0x11f),'demandOption':!![]})[_0x3c94ff(0x13e)](_0x3c94ff(0xb4),{'type':_0x59c626[_0x3c94ff(0x139)],'description':_0x59c626[_0x3c94ff(0xa7)],'demandOption':!![]})[_0x3c94ff(0x13e)](_0x59c626['vWrVo'],{'type':_0x59c626['QQsZd'],'description':_0x59c626[_0x3c94ff(0x115)],'demandOption':!![]});},async _0x443e96=>{const _0xfa5041=_0x2c6e34;await _0x3ad9a9['ntJia'](withTelemetry,'profile\x20config\x20set',()=>configSet(_0x443e96[_0xfa5041(0x88)],_0x443e96[_0xfa5041(0xb4)],_0x443e96[_0xfa5041(0x10f)]));})['command']('get\x20<profile>\x20<key>',_0x59c626['HMswi'],_0x131da9=>{const _0x68cb3f=_0x2c6e34;return _0x131da9[_0x68cb3f(0x13e)](_0x59c626['kzeVA'],{'type':_0x68cb3f(0x7e),'description':_0x68cb3f(0x11f),'demandOption':!![]})['positional'](_0x59c626[_0x68cb3f(0xe3)],{'type':_0x59c626[_0x68cb3f(0x139)],'description':'Config\x20key','demandOption':!![]});},async _0x24ab81=>{const _0x3ca91f=_0x2c6e34;await _0x3ad9a9[_0x3ca91f(0x187)](withTelemetry,_0x3ad9a9[_0x3ca91f(0x9a)],()=>configGet(_0x24ab81[_0x3ca91f(0x88)],_0x24ab81['key']));})['command'](_0x2c6e34(0x95),_0x2c6e34(0x7c),_0x110c70=>{const _0x2d5447=_0x2c6e34;return _0x110c70[_0x2d5447(0x13e)](_0x59c626[_0x2d5447(0x114)],{'type':'string','description':'Profile\x20name','demandOption':!![]});},async _0x2bce83=>{const _0x5fadb=_0x2c6e34;await withTelemetry(_0x3ad9a9[_0x5fadb(0xda)],()=>configList(_0x2bce83[_0x5fadb(0x88)]));})[_0x2c6e34(0x156)](_0x59c626[_0x2c6e34(0x1ab)],'Remove\x20a\x20config\x20value',_0x32fb2e=>{const _0x1d375d=_0x2c6e34;return _0x32fb2e[_0x1d375d(0x13e)](_0x3ad9a9['BQOAJ'],{'type':_0x3ad9a9[_0x1d375d(0xae)],'description':_0x1d375d(0x11f),'demandOption':!![]})[_0x1d375d(0x13e)](_0x3ad9a9['MlZNL'],{'type':_0x3ad9a9[_0x1d375d(0xae)],'description':_0x3ad9a9['DbAdH'],'demandOption':!![]});},async _0x311002=>{const _0x24a5d4=_0x2c6e34;await withTelemetry('profile\x20config\x20unset',()=>configUnset(_0x311002[_0x24a5d4(0x88)],_0x311002[_0x24a5d4(0xb4)]));})['demandCommand'](0x1,_0x59c626[_0x2c6e34(0x1a3)]);})[_0x4de61f(0x9e)](0x1,_0x59c626[_0x4de61f(0xc1)]);})[_0x11ef01(0x156)](_0x11ef01(0x9b),'Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)',()=>{},async()=>{const _0x5ee264={'PBbZS':'status'};await withTelemetry(_0x5ee264['PBbZS'],()=>status());})[_0x11ef01(0x156)](_0x11ef01(0x168),'Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version',()=>{},async()=>{const _0x428b4b=_0x11ef01;await withTelemetry(_0x428b4b(0x168),()=>update());})['command']('go','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)',_0x3b8f68=>{const _0x2375dc=_0x11ef01,_0x534e5e={'qlTxg':'string','bnjqN':_0x2375dc(0x182),'OZNZy':_0x2375dc(0x19a),'kAILZ':_0x2375dc(0x150),'usMvH':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','LKcJK':'partial','ivUvE':_0x2375dc(0xc9),'hnmWN':_0x2375dc(0x19d),'hyrfc':'boolean','MPJdP':_0x2375dc(0x188),'mpwxP':'number'};return _0x3b8f68['option'](_0x2375dc(0x88),{'type':_0x534e5e['qlTxg'],'description':_0x534e5e['bnjqN']})[_0x2375dc(0x180)](_0x2375dc(0x1a5),{'type':_0x2375dc(0x7e),'description':'Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)'})['option'](_0x534e5e[_0x2375dc(0x1bc)],{'type':'number','description':_0x534e5e['kAILZ']})['option'](_0x2375dc(0x16f),{'type':_0x534e5e[_0x2375dc(0x12c)],'description':_0x534e5e[_0x2375dc(0xd9)]})[_0x2375dc(0x180)](_0x2375dc(0xb1),{'type':'string','description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)'})['option'](_0x2375dc(0x11c),{'type':_0x534e5e['qlTxg'],'hidden':!![],'choices':['verified',_0x534e5e['LKcJK'],_0x534e5e[_0x2375dc(0x10c)],'failed',_0x2375dc(0x161)]})['option'](_0x534e5e[_0x2375dc(0xbf)],{'type':_0x534e5e[_0x2375dc(0x19c)],'hidden':!![]})['option'](_0x534e5e[_0x2375dc(0xb2)],{'type':_0x534e5e[_0x2375dc(0x12c)],'hidden':!![]})[_0x2375dc(0x180)](_0x2375dc(0x122),{'type':_0x2375dc(0x7e),'hidden':!![]})[_0x2375dc(0x180)]('item',{'type':_0x534e5e['mpwxP'],'hidden':!![]});},async _0xdc2730=>{await runGoCommand(_0xdc2730);})[_0x11ef01(0x156)](_0x11ef01(0xcf),![],_0x45b028=>{const _0x4a7b21=_0x11ef01,_0xff4bda={'QOmoB':_0x4a7b21(0x88),'fazix':function(_0x294029,_0x4c2c8c,_0x5953a6){return _0x294029(_0x4c2c8c,_0x5953a6);},'CeOsv':'ranger\x20profile\x20encrypt-auth','ZKOwk':'encrypt\x20<profile>','TdPiM':'You\x20must\x20specify\x20an\x20auth\x20subcommand'};return _0x45b028[_0x4a7b21(0x156)](_0xff4bda[_0x4a7b21(0x166)],![],_0x2c5cda=>{const _0x40f9bb=_0x4a7b21;return _0x2c5cda[_0x40f9bb(0x13e)](_0xff4bda['QOmoB'],{'type':'string','description':'Profile\x20name','demandOption':!![]});},async _0x555f8a=>{const _0x58c385=_0x4a7b21;_0xff4bda['fazix'](warnRenamed,'ranger\x20auth\x20encrypt',_0xff4bda[_0x58c385(0xe4)]),await authEncrypt(_0x555f8a[_0x58c385(0x88)]);})['demandCommand'](0x1,_0xff4bda[_0x4a7b21(0x10d)]);},()=>{})['command'](_0x11ef01(0x1b1),![],_0x384361=>{const _0x37b176=_0x11ef01,_0x492c9f={'eGpgv':'token','mfafD':_0x37b176(0x7e),'KiInS':_0x37b176(0x17f),'cwgxm':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','nxfVQ':'url','CHXYG':'force','jdclo':_0x37b176(0xc5),'omIlD':_0x37b176(0x1b5)};return _0x384361['positional'](_0x492c9f['eGpgv'],{'type':_0x492c9f['mfafD'],'description':_0x37b176(0x104)})[_0x37b176(0x180)](_0x37b176(0xfe),{'type':'boolean','description':_0x37b176(0x8c),'default':![]})['option']('scope',{'type':'string','choices':[_0x492c9f['KiInS'],'project'],'description':_0x492c9f[_0x37b176(0xbc)]})['option'](_0x492c9f['nxfVQ'],{'type':'string','description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})['option'](_0x492c9f[_0x37b176(0x84)],{'type':_0x492c9f[_0x37b176(0x1ae)],'description':_0x492c9f[_0x37b176(0x8d)],'default':![]});},async _0x50c0d8=>{const _0x2536a8=_0x11ef01,_0x5036ce={'KwkIy':'ranger\x20start','IQKDn':_0x2536a8(0xd2)};warnRenamed(_0x5036ce['KwkIy'],_0x5036ce['IQKDn']),await withTelemetry('start',_0x844ad8=>start(_0x50c0d8['token'],{'skipChromium':_0x50c0d8['skip-chromium'],'scope':_0x50c0d8[_0x2536a8(0x7f)],'url':_0x50c0d8[_0x2536a8(0x142)],'force':_0x50c0d8[_0x2536a8(0x12a)]},_0x844ad8));})['command']('verify-feature',![],_0x31e07f=>{const _0x5be40e=_0x11ef01,_0x2b3f4d={'friKh':'env','ytohd':'string','OgXoy':_0x5be40e(0x122),'JKINd':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','VYdpp':_0x5be40e(0xab),'AQwdH':'profile','VqAPQ':_0x5be40e(0x1a5),'Soroa':'start-path','LmhVw':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','pDpgm':'failed','oxoGB':'incomplete'};return _0x31e07f[_0x5be40e(0x180)](_0x2b3f4d[_0x5be40e(0x141)],{'type':_0x2b3f4d['ytohd'],'description':'Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)'})[_0x5be40e(0x180)](_0x2b3f4d[_0x5be40e(0x149)],{'type':_0x2b3f4d['ytohd'],'description':_0x2b3f4d[_0x5be40e(0xac)]})['option']('item',{'type':_0x2b3f4d['VYdpp'],'description':_0x5be40e(0x150)})['option'](_0x2b3f4d['AQwdH'],{'type':_0x2b3f4d['ytohd'],'hidden':!![]})['option'](_0x2b3f4d[_0x5be40e(0x7b)],{'type':'string','hidden':!![]})[_0x5be40e(0x180)]('scenario',{'type':_0x2b3f4d['VYdpp'],'hidden':!![]})['option'](_0x2b3f4d['Soroa'],{'type':'string','description':_0x2b3f4d[_0x5be40e(0xe6)]})['option']('model',{'type':_0x5be40e(0x7e),'hidden':!![]})['option'](_0x5be40e(0x11c),{'type':_0x2b3f4d[_0x5be40e(0x8a)],'hidden':!![],'choices':['verified',_0x5be40e(0xba),'blocked',_0x2b3f4d['pDpgm'],_0x2b3f4d['oxoGB']]});},async _0x288d6b=>{await runGoCommand(_0x288d6b,!![]);})['command'](_0x11ef01(0x190),![],_0x443e46=>{const _0x57d208=_0x11ef01,_0x43fc6d={'ivdYg':'env-name','hRytf':_0x57d208(0xe0),'MAknB':'Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)'};return _0x443e46['positional'](_0x43fc6d['ivdYg'],{'type':_0x57d208(0x7e),'description':'Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','demandOption':!![]})[_0x57d208(0x180)]('ci',{'type':_0x57d208(0xc5),'description':_0x57d208(0x1b2),'default':![]})[_0x57d208(0x180)](_0x43fc6d[_0x57d208(0x154)],{'type':'boolean','description':_0x43fc6d['MAknB'],'default':![]});},async _0x8e4249=>{const _0x8336e4=_0x11ef01,_0x1b134a={'sPUdg':'ranger\x20add\x20env'};warnRenamed(_0x1b134a[_0x8336e4(0x8e)],_0x8336e4(0x126)),await withTelemetry('add\x20env',_0x2f5bf5=>addEnv(_0x8e4249[_0x8336e4(0x11b)],{'ci':_0x8e4249['ci'],'skipAuth':_0x8e4249['skip-auth']},_0x2f5bf5));})['command']('use\x20<env-name>',![],_0x764855=>{const _0x437246=_0x11ef01,_0x38effc={'Edxju':_0x437246(0x7e),'vSLGM':'Name\x20of\x20the\x20environment'};return _0x764855[_0x437246(0x13e)]('env-name',{'type':_0x38effc['Edxju'],'description':_0x38effc['vSLGM'],'demandOption':!![]});},async _0x4b30c6=>{const _0x44aede=_0x11ef01,_0x297bc7={'wKhxI':function(_0x30ae56,_0x1c5141,_0x1760af){return _0x30ae56(_0x1c5141,_0x1760af);},'wZxkw':_0x44aede(0x147),'rmufB':_0x44aede(0x15f)};_0x297bc7['wKhxI'](warnRenamed,_0x44aede(0x113),_0x297bc7[_0x44aede(0x1ac)]),await withTelemetry(_0x297bc7[_0x44aede(0xd0)],()=>useEnv(_0x4b30c6['env-name']));})['command']('config',![],_0x4bb0c6=>{const _0x3439d8=_0x11ef01,_0x5bf922={'XNnfL':_0x3439d8(0x188),'jCUzz':'value','AUKoq':_0x3439d8(0x9d),'thNKs':function(_0x3a9480,_0x128b44,_0x2db7c2){return _0x3a9480(_0x128b44,_0x2db7c2);},'OCteu':function(_0x50b7cb,_0x556189,_0x58ec29){return _0x50b7cb(_0x556189,_0x58ec29);},'QmsVl':'string','WYvbB':_0x3439d8(0xb4),'icrWv':_0x3439d8(0xee),'QAaak':'ranger\x20config\x20get','vUuZk':_0x3439d8(0x133),'QlfUJ':function(_0x337d63,_0x4d12dd,_0x31d966){return _0x337d63(_0x4d12dd,_0x31d966);},'yHwAs':'ranger\x20config\x20list','gMLGp':'ranger\x20profile\x20config\x20list','sSwkr':_0x3439d8(0x16e),'IwVCj':'Environment\x20name','whUmS':function(_0x2a738d,_0x29b74a,_0x5b4939){return _0x2a738d(_0x29b74a,_0x5b4939);},'TErWg':'config\x20unset','ihktv':_0x3439d8(0x146),'YYAZL':_0x3439d8(0x18b)};return _0x4bb0c6[_0x3439d8(0x156)](_0x3439d8(0xfa),![],_0x3e26f2=>{const _0x2d12e9=_0x3439d8;return _0x3e26f2['positional'](_0x5bf922['XNnfL'],{'type':'string','description':'Environment\x20name','demandOption':!![]})['positional']('key',{'type':_0x2d12e9(0x7e),'description':_0x2d12e9(0x101),'demandOption':!![]})['positional'](_0x5bf922['jCUzz'],{'type':'string','description':_0x5bf922['AUKoq'],'demandOption':!![]});},async _0x491fb9=>{const _0x851a1f=_0x3439d8;_0x5bf922[_0x851a1f(0x13f)](warnRenamed,'ranger\x20config\x20set',_0x851a1f(0x1ba)),await _0x5bf922[_0x851a1f(0xc7)](withTelemetry,_0x851a1f(0x98),()=>configSet(_0x491fb9[_0x851a1f(0x188)],_0x491fb9['key'],_0x491fb9['value']));})['command'](_0x3439d8(0x12f),![],_0x340825=>{const _0x480d57=_0x3439d8;return _0x340825['positional'](_0x5bf922[_0x480d57(0x10b)],{'type':_0x5bf922['QmsVl'],'description':'Environment\x20name','demandOption':!![]})['positional'](_0x5bf922['WYvbB'],{'type':_0x5bf922['QmsVl'],'description':_0x5bf922['icrWv'],'demandOption':!![]});},async _0x3d2750=>{const _0x115245=_0x3439d8;warnRenamed(_0x5bf922[_0x115245(0xf9)],_0x5bf922[_0x115245(0x89)]),await _0x5bf922['QlfUJ'](withTelemetry,'config\x20get',()=>configGet(_0x3d2750[_0x115245(0x188)],_0x3d2750['key']));})['command'](_0x3439d8(0x97),![],_0x1b110a=>{const _0x2e5460=_0x3439d8;return _0x1b110a[_0x2e5460(0x13e)](_0x5bf922[_0x2e5460(0x10b)],{'type':_0x5bf922[_0x2e5460(0x15c)],'description':_0x2e5460(0x17e),'demandOption':!![]});},async _0x22b5d9=>{const _0x4da7c9=_0x3439d8;warnRenamed(_0x5bf922['yHwAs'],_0x5bf922[_0x4da7c9(0xa3)]),await withTelemetry(_0x5bf922['sSwkr'],()=>configList(_0x22b5d9['env']));})['command'](_0x5bf922[_0x3439d8(0x17d)],![],_0x7eb124=>{const _0x2a0c1e=_0x3439d8;return _0x7eb124['positional']('env',{'type':_0x5bf922[_0x2a0c1e(0x15c)],'description':_0x5bf922['IwVCj'],'demandOption':!![]})['positional'](_0x2a0c1e(0xb4),{'type':_0x5bf922['QmsVl'],'description':'Config\x20key\x20to\x20remove','demandOption':!![]});},async _0x3ae942=>{const _0xa27e99=_0x3439d8;_0x5bf922['whUmS'](warnRenamed,'ranger\x20config\x20unset','ranger\x20profile\x20config\x20unset'),await withTelemetry(_0x5bf922['TErWg'],()=>configUnset(_0x3ae942[_0xa27e99(0x188)],_0x3ae942[_0xa27e99(0xb4)]));})['demandCommand'](0x1,_0x5bf922['YYAZL']);})['command'](_0x11ef01(0x188),![],_0xd0b59c=>{const _0x45863d=_0x11ef01,_0x986f3f={'aacwe':function(_0x5ba2a3,_0x41e5da,_0x4c7597){return _0x5ba2a3(_0x41e5da,_0x4c7597);},'KCgYp':'ranger\x20env\x20ls','CoUHe':'ranger\x20profile\x20ls','InFRt':'env-name','ydprZ':'ranger\x20env\x20update','zSWks':'env\x20update'};return _0xd0b59c[_0x45863d(0x156)]('ls',![],()=>{},async()=>{const _0x153bf5=_0x45863d;_0x986f3f[_0x153bf5(0x90)](warnRenamed,_0x986f3f['KCgYp'],_0x986f3f['CoUHe']),await withTelemetry(_0x153bf5(0x129),()=>envList());})['command']('update\x20<env-name>',![],_0x206b58=>{const _0x400fae=_0x45863d;return _0x206b58['positional'](_0x986f3f[_0x400fae(0x175)],{'type':_0x400fae(0x7e),'description':_0x400fae(0xb6),'demandOption':!![]});},async _0x404d0c=>{const _0x42d755=_0x45863d;_0x986f3f[_0x42d755(0x90)](warnRenamed,_0x986f3f[_0x42d755(0xa8)],'ranger\x20profile\x20update'),await withTelemetry(_0x986f3f[_0x42d755(0x178)],_0x384730=>updateEnv(_0x404d0c[_0x42d755(0x11b)],_0x384730));})['demandCommand'](0x1,_0x45863d(0x14f));})['command']('feature',![],_0xfd2ccc=>{const _0xb870eb=_0x11ef01,_0x391558={'kvjXS':_0xb870eb(0x119),'WYiIl':'string','SbcsW':_0xb870eb(0x1a1),'iiqSu':_0xb870eb(0x19a),'aWMvp':_0xb870eb(0xaa),'bncqt':'ranger\x20create','nNaUG':'--checklist','CyGOo':function(_0x5b7fff,_0x36c042,_0x578d87){return _0x5b7fff(_0x36c042,_0x578d87);},'bBRqs':_0xb870eb(0x152),'QXMrz':_0xb870eb(0x191),'vAVOw':'include-deleted','VZdMg':'ranger\x20list','TzpgO':'Feature\x20review\x20ID','VobUP':'ranger\x20show','cOSNr':function(_0xec9763,_0x104e6e,_0x12605f){return _0xec9763(_0x104e6e,_0x12605f);},'amnlo':'feature\x20show','GpeiA':_0xb870eb(0x172),'bbBMv':'ranger\x20feature\x20resume','CcNCc':'feature\x20resume','AQbCv':'Scenario\x20description','MhTZX':'ranger\x20add-scenario','reiZo':function(_0x3bc65f,_0x1e270e,_0x56c412){return _0x3bc65f(_0x1e270e,_0x56c412);},'ZaHRP':function(_0x1c6877,_0xca1410,_0x502587){return _0x1c6877(_0xca1410,_0x502587);},'elGDb':function(_0x584082,_0x4a94af,_0x310e31){return _0x584082(_0x4a94af,_0x310e31);},'sNePr':_0xb870eb(0x160),'vXaCt':_0xb870eb(0xf6),'wjLFE':_0xb870eb(0x130),'vCDGy':'add-checklist-item\x20<description>','WGqwD':_0xb870eb(0x13b),'ZLpbV':'delete\x20[id]'};return _0xfd2ccc['command'](_0xb870eb(0x11a),![],_0x5b64fe=>{const _0x572efd=_0xb870eb;return _0x5b64fe['positional'](_0x391558[_0x572efd(0x151)],{'type':_0x572efd(0x7e),'description':_0x572efd(0x111),'demandOption':!![]})[_0x572efd(0x180)](_0x572efd(0x138),{'type':_0x391558[_0x572efd(0x1a8)],'alias':'d','description':_0x391558['SbcsW']})[_0x572efd(0x180)](_0x572efd(0x153),{'type':_0x572efd(0x16b),'alias':'c','description':'Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)'})[_0x572efd(0x180)](_0x391558['iiqSu'],{'type':'array','hidden':!![]});},async _0xfe9fe6=>{const _0x53d8a2=_0xb870eb;warnRenamed(_0x391558[_0x53d8a2(0x11d)],_0x53d8a2(0xef)),warnFlagRenamed(_0x391558[_0x53d8a2(0x121)],_0x391558[_0x53d8a2(0x137)],'--scenario');const _0x53418e=_0xfe9fe6[_0x53d8a2(0x19a)]||_0xfe9fe6['checklist'];await _0x391558['CyGOo'](withTelemetry,_0x53d8a2(0x186),()=>featureCreate(_0xfe9fe6[_0x53d8a2(0x119)],{'description':_0xfe9fe6['description'],'scenarios':_0x53418e}));})[_0xb870eb(0x156)]('list',![],_0x599d00=>{const _0x15c29b=_0xb870eb;return _0x599d00['option'](_0x391558['bBRqs'],{'type':'boolean','description':'Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch'})[_0x15c29b(0x180)](_0x391558['QXMrz'],{'type':_0x15c29b(0xab),'alias':'l','description':_0x15c29b(0xd5),'default':0xa})['option']('offset',{'type':'number','alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x15c29b(0x180)](_0x391558[_0x15c29b(0x16d)],{'type':'boolean','alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0x56f976=>{const _0x5ba19d=_0xb870eb;_0x391558[_0x5ba19d(0x18c)](warnRenamed,_0x5ba19d(0xad),_0x391558[_0x5ba19d(0xd8)]),await withTelemetry('feature\x20list',()=>featureList({'currentBranch':_0x56f976['current-branch'],'limit':_0x56f976['limit'],'offset':_0x56f976[_0x5ba19d(0x99)],'includeDeleted':_0x56f976['include-deleted']}));})['command']('show\x20[id]',![],_0x486139=>{const _0x42ff96=_0xb870eb;return _0x486139[_0x42ff96(0x13e)]('id',{'type':_0x391558['WYiIl'],'description':_0x391558['TzpgO']});},async _0x55c734=>{const _0x47ecf7=_0xb870eb;warnRenamed(_0x47ecf7(0xec),_0x391558['VobUP']),await _0x391558['cOSNr'](withTelemetry,_0x391558['amnlo'],()=>featureShow(_0x55c734['id']));})['command'](_0x391558[_0xb870eb(0xf2)],![],_0x24f7fd=>{return _0x24f7fd['positional']('id',{'type':_0x391558['WYiIl'],'description':_0x391558['GpeiA']});},async _0x19d4ae=>{const _0x316017=_0xb870eb;warnRenamed(_0x391558[_0x316017(0x19f)],_0x316017(0x1b0)),await withTelemetry(_0x391558[_0x316017(0x110)],()=>featureResume(_0x19d4ae['id']));})['command'](_0x391558[_0xb870eb(0x169)],![],_0x4dace1=>{const _0x1e5d7d=_0xb870eb;return _0x4dace1['positional'](_0x1e5d7d(0x138),{'type':_0x391558['WYiIl'],'description':_0x391558['AQbCv'],'demandOption':!![]})[_0x1e5d7d(0x180)]('id',{'type':_0x391558[_0x1e5d7d(0x1a8)],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0x497c92=>{const _0x5b848f=_0xb870eb;warnRenamed(_0x5b848f(0x1aa),_0x391558[_0x5b848f(0x13c)]),await withTelemetry('feature\x20add-checklist-item',()=>featureAddScenario(_0x497c92['description'],_0x497c92['id']));})[_0xb870eb(0x156)](_0x391558[_0xb870eb(0x1ad)],![],_0x451121=>{const _0x36ed42=_0xb870eb;return _0x451121['positional']('id',{'type':'string','description':_0x36ed42(0x1b7)});},async _0xc48c5c=>{const _0x20ff5d=_0xb870eb;_0x391558[_0x20ff5d(0x135)](warnRenamed,_0x20ff5d(0x1b9),'ranger\x20get-review'),await withTelemetry(_0x20ff5d(0xb5),()=>featureGetReview(_0xc48c5c['id']));})[_0xb870eb(0x156)](_0x391558[_0xb870eb(0x177)],![],_0x3f00c5=>{const _0x2eb471=_0xb870eb;return _0x3f00c5['positional']('id',{'type':_0x2eb471(0x7e),'description':_0x391558[_0x2eb471(0xdc)]});},async _0x3fac41=>{const _0x1c50c6=_0xb870eb;_0x391558[_0x1c50c6(0xd3)](warnRenamed,_0x1c50c6(0x198),'ranger\x20delete'),await _0x391558['elGDb'](withTelemetry,_0x391558['sNePr'],()=>featureDelete(_0x3fac41['id']));})[_0xb870eb(0x156)]('restore\x20<id>',![],_0x31a775=>{return _0x31a775['positional']('id',{'type':_0x391558['WYiIl'],'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0x998889=>{const _0x2a882b=_0xb870eb;_0x391558['ZaHRP'](warnRenamed,_0x2a882b(0x165),'ranger\x20restore'),await _0x391558[_0x2a882b(0x18c)](withTelemetry,_0x391558['vXaCt'],()=>featureRestore(_0x998889['id']));})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand');})['command']('hook',![],_0x4b2e4a=>{const _0x13f802=_0x11ef01,_0x52e1f0={'lDIED':'string','YCbbC':'Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','kXbJH':function(_0xe450aa,_0x375bd0,_0x266ee9){return _0xe450aa(_0x375bd0,_0x266ee9);},'GCHgE':_0x13f802(0x176),'TdNMs':_0x13f802(0x193),'QixmM':'Enable\x20Ranger\x20hooks\x20for\x20this\x20session','YduxR':_0x13f802(0xcc),'mDzPq':'name'};return _0x4b2e4a[_0x13f802(0x156)](_0x52e1f0[_0x13f802(0x145)],_0x52e1f0[_0x13f802(0x163)],_0x405c6d=>{const _0x423a05=_0x13f802;return _0x405c6d['option']('session-id',{'type':_0x52e1f0['lDIED'],'description':_0x52e1f0[_0x423a05(0xc8)]});},async _0x55c358=>{const _0x348581=_0x13f802;await _0x52e1f0[_0x348581(0x14a)](withTelemetry,_0x52e1f0[_0x348581(0x1a9)],()=>hook('enable',_0x55c358['session-id']));})['command']('disable',_0x52e1f0[_0x13f802(0x128)],_0x158768=>{const _0x28c14f=_0x13f802;return _0x158768[_0x28c14f(0x180)](_0x28c14f(0x155),{'type':'string','description':_0x52e1f0['YCbbC']});},async _0x165b2b=>{const _0x127935=_0x13f802;await _0x52e1f0[_0x127935(0x14a)](withTelemetry,_0x127935(0x117),()=>hook(_0x127935(0xf5),_0x165b2b['session-id']));})[_0x13f802(0x180)](_0x52e1f0[_0x13f802(0x1af)],{'type':'string','description':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'})['option']('session-id',{'type':_0x13f802(0x7e),'description':_0x52e1f0['YCbbC']});},async _0x190b6b=>{const _0x589e86=_0x11ef01,_0x214045={'EvQew':function(_0x1fe673,_0x5b096a,_0x214f1d){return _0x1fe673(_0x5b096a,_0x214f1d);}};_0x190b6b['name']&&await _0x214045[_0x589e86(0x196)](hook,_0x190b6b[_0x589e86(0x119)],_0x190b6b['session-id']);})['demandCommand'](0x1,'You\x20must\x20specify\x20a\x20command')['strictCommands']()['fail'](async(_0x37495d,_0xeb8481,_0x558604)=>{const _0x183a65=_0x11ef01,_0x2de59b={'QkATW':function(_0x23840e,_0x38c7eb,_0xeb31d1){return _0x23840e(_0x38c7eb,_0xeb31d1);},'hGpmS':'Unknown\x20command','vhoVg':'Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a','YWATS':function(_0xe3df2,_0x2acb68){return _0xe3df2||_0x2acb68;}},_0x2f4879=sanitizeArgs(process[_0x183a65(0x109)]['slice'](0x2)),_0x3598a6=_0x2de59b[_0x183a65(0x87)](getErrorType,_0x37495d,_0xeb8481);if(_0x37495d&&_0x37495d[_0x183a65(0x15d)](_0x2de59b[_0x183a65(0x14e)])){const _0x132636=process[_0x183a65(0x109)][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x132636),console[_0x183a65(0x96)](_0x2de59b['vhoVg']);}else{if(_0x37495d)console['error']('\x0a'+_0x37495d+'\x0a');else _0xeb8481&&console[_0x183a65(0x96)](_0x183a65(0x82)+_0xeb8481['message']+'\x0a');}await logDesirePath({'rawCommand':_0x2f4879,'errorMessage':_0x37495d||_0xeb8481?.[_0x183a65(0x157)],'errorType':_0x3598a6});const _0x18cbe9=getCurrentCollector();_0x18cbe9&&await _0x18cbe9[_0x183a65(0xf1)](_0xeb8481||new Error(_0x2de59b['YWATS'](_0x37495d,_0x183a65(0x18d)))),process['exit'](0x1);})[_0x11ef01(0x1b6)](_0x11ef01(0xd7)+_0x11ef01(0x14d)+'\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)')[_0x11ef01(0xb3)]()[_0x11ef01(0xaf)]('help','h')['parse']();function _0x2b2c(){const _0x7e88e4=['ranger\x20feature\x20restore','ZKOwk','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','update','vCDGy','Install\x20scope\x20for\x20skills','array','evaluation','vAVOw','config\x20list','start-path','5993275DitNyo','cLuVx','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','ZqAJs','28ddaejG','InFRt','hook:enable','ZLpbV','zSWks','ryokA','Feature\x20review\x20ID','claude','gwKeR','ihktv','Environment\x20name','user','option','memQU','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','Kxkub','pjpdO','mCnRj','feature\x20create','XfJpP','env','add-scenario\x20<description>','woZfX','You\x20must\x20specify\x20a\x20config\x20subcommand','CyGOo','Unknown\x20error','rvxSM','token','add\x20env\x20<env-name>','limit','pBuAr','enable','Install\x20Ranger\x20skills','Reason:\x20','EvQew','project','ranger\x20feature\x20delete','version','scenario','bPSZg','hyrfc','debug-address-comments','CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.','bbBMv','yrOch','Feature\x20review\x20description','FfaUG','sEPze','CsYxu','notes','verified','YqQby','WYiIl','GCHgE','ranger\x20feature\x20add-checklist-item','WyxVb','wZxkw','WGqwD','jdclo','mDzPq','ranger\x20resume','start\x20[token]','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','epilogue','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','delete\x20[id]','ranger\x20feature\x20get-feedback','ranger\x20profile\x20config\x20set','gPeBm','OZNZy','VqAPQ','List\x20all\x20config\x20for\x20a\x20profile','add-scenario','string','scope','\x20is\x20now\x20','fqGfF','\x0aError:\x20','encrypt-auth\x20<profile>','CHXYG','base-url','16961VEzIux','QkATW','profile','vUuZk','ytohd','iujnv','Skip\x20Chromium\x20browser\x20check\x20and\x20installation','omIlD','sPUdg','update\x20<profile-name>','aacwe','profile-name','report\x20[id]','eGvzx','iLGkl','list\x20<profile>','error','list\x20<env>','config\x20set','offset','TJBIx','status','2987686yoycTw','Config\x20value','demandCommand','EdYIf','edit-scenario','CfjuB','fhoSg','gMLGp','slice','Initialize\x20Ranger\x20in\x20your\x20project','\x20VERIFIED','yXMYC','ydprZ','set\x20<profile>\x20<key>\x20<value>','ranger\x20feature\x20create','number','JKINd','ranger\x20feature\x20list','aVyjI','alias','NKDtR','model','MPJdP','help','key','feature\x20get-feedback','Name\x20of\x20the\x20environment\x20to\x20update','exitCode','evaluationReason','npdCg','partial','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','cwgxm','item','geQIl','hnmWN','CXdBA','jFEFV','SiKSs','BGNjL','mDEEz','boolean','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.','OCteu','YCbbC','blocked','You\x20must\x20specify\x20a\x20profile\x20subcommand','Install\x20skills\x20for\x20OpenCode','Disable\x20Ranger\x20hooks\x20for\x20this\x20session','Name\x20of\x20the\x20profile\x20to\x20update','nnFsO','auth','rmufB','uZxpc','ranger\x20setup','ZaHRP','JNljh','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','cgQvc','Documentation:\x0a','VZdMg','usMvH','sEPnh','show','TzpgO','iFoKL','opencode','Manage\x20profile\x20configuration','skip-auth','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','TfJmS','RWwAw','CeOsv','1310394aYNBWM','LmhVw','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','cdp-endpoint','NdYQg','InAwu','clean','ranger\x20feature\x20show','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','Config\x20key','ranger\x20create','some','trackCommandError','wjLFE','rkEgw','get-review','disable','feature\x20restore','profile\x20update','default','QAaak','set\x20<env>\x20<key>\x20<value>','setup\x20[token]','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','.ranger','skip-chromium','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','map','Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','create','Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)','yNgdE','WMoKQ','tHJPz','unhandledRejection','argv','add\x20<profile-name>','XNnfL','ivUvE','TdPiM','Gvjsp','value','CcNCc','Feature\x20review\x20name','yhiFi','ranger\x20use','kzeVA','kDgzF','KmPcV','hook:disable','MhEAM','name','create\x20<name>','env-name','debug-outcome','aWMvp','Update\x20authentication\x20for\x20an\x20existing\x20profile','Profile\x20name','daTUv','bncqt','task','AvgnC','log','--task','ranger\x20profile\x20add','Set\x20a\x20config\x20value','YduxR','env\x20list','force','953442RSYbnu','qlTxg','severity','cwd','get\x20<env>\x20<key>','resume\x20[id]','config','.\x20[','ranger\x20profile\x20config\x20get','Scenario\x20description','reiZo','260427acQilX','nNaUG','description','QQsZd','TPPbs','get-feedback\x20[id]','MhTZX','mevGl','positional','thNKs','usage','friKh','url','AAYHj','Feature\x20review\x20ID\x20to\x20restore','TdNMs','unset\x20<env>\x20<key>','ranger\x20profile\x20use','Scenario\x20number\x20to\x20edit\x20(1-based)','OgXoy','kXbJH','2952BhWbsa','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','\x20\x20https://docs.ranger.net\x0a','hGpmS','You\x20must\x20specify\x20an\x20env\x20subcommand','Scenario\x20index\x20(1-based)','kvjXS','current-branch','checklist','hRytf','session-id','command','message','fBXvf','39437100HXFEYK','Add\x20profile\x20configuration','BkUIN','QmsVl','includes','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','use','feature\x20delete','incomplete','skillup','QixmM','exit'];_0x2b2c=function(){return _0x7e88e4;};return _0x2b2c();}
|
|
2
|
+
function _0x170c(_0x1873b4,_0x114776){_0x1873b4=_0x1873b4-0x14b;const _0x23d088=_0x23d0();let _0x170c71=_0x23d088[_0x1873b4];return _0x170c71;}const _0x238674=_0x170c;(function(_0x2289de,_0x50a40f){const _0x3ccf35=_0x170c,_0x5e85ee=_0x2289de();while(!![]){try{const _0x2983d1=parseInt(_0x3ccf35(0x217))/0x1*(-parseInt(_0x3ccf35(0x28f))/0x2)+parseInt(_0x3ccf35(0x211))/0x3+parseInt(_0x3ccf35(0x226))/0x4+parseInt(_0x3ccf35(0x1f9))/0x5+parseInt(_0x3ccf35(0x1a3))/0x6*(-parseInt(_0x3ccf35(0x1ba))/0x7)+parseInt(_0x3ccf35(0x150))/0x8*(parseInt(_0x3ccf35(0x23a))/0x9)+parseInt(_0x3ccf35(0x186))/0xa;if(_0x2983d1===_0x50a40f)break;else _0x5e85ee['push'](_0x5e85ee['shift']());}catch(_0x571df6){_0x5e85ee['push'](_0x5e85ee['shift']());}}}(_0x23d0,0x1aa76));import _0x44b601 from'dotenv';import{dirname,join,parse}from'path';import{existsSync}from'fs';function findProjectRoot(){const _0x302a5e=_0x170c,_0x348019={'pasET':function(_0x53e3b2,_0x422c61){return _0x53e3b2(_0x422c61);},'cdxCc':function(_0x5078de,_0x59ec37){return _0x5078de!==_0x59ec37;},'vztvO':'.ranger','xqqnW':_0x302a5e(0x1b2)};let _0x1c87c5=process[_0x302a5e(0x1f0)]();const _0x908fd=_0x348019[_0x302a5e(0x19b)](parse,_0x1c87c5)[_0x302a5e(0x1ee)];while(_0x348019[_0x302a5e(0x1c3)](_0x1c87c5,_0x908fd)){if(_0x348019['pasET'](existsSync,join(_0x1c87c5,_0x348019[_0x302a5e(0x238)]))||existsSync(join(_0x1c87c5,_0x348019['xqqnW'])))return _0x1c87c5;_0x1c87c5=dirname(_0x1c87c5);}return process['cwd']();}_0x44b601[_0x238674(0x289)]({'path':join(findProjectRoot(),'.env')});import _0x3e181a 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';function _0x23d0(){const _0x1caefc=['Skip\x20Chromium\x20browser\x20check\x20and\x20installation','resume\x20[id]','You\x20must\x20specify\x20an\x20env\x20subcommand','Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)','vztvO','XOFFO','635391aZoUpJ','create','get\x20<profile>\x20<key>','--checklist','feature\x20list','profile','NZafW','vWCqK','XxwBk','zjyGw','Session\x20ID\x20(for\x20non-Claude\x20integrations\x20like\x20OpenCode)','lRnIL','message','opencode','limit','env-name','Create\x20CI\x20environment\x20(encrypted\x20auth,\x20committed\x20to\x20git)','cavrP','baKBJ','Get\x20a\x20config\x20value','ZtnzX','Skip\x20browser\x20authentication\x20(just\x20save\x20URL\x20and\x20settings)','Generate\x20PR\x20description\x20markdown\x20(defaults\x20to\x20active\x20feature\x20review)','ranger\x20config\x20list','YvGaM','verified','blocked','zVbZC','Config\x20key','jKAbH','RreCa','Show\x20Ranger\x20status\x20(version,\x20skills,\x20profiles)','ranger\x20show','task','DgnJl','Dllnj','erezd','Create\x20a\x20new\x20feature\x20review\x20with\x20scenarios','Update\x20Ranger\x20CLI\x20to\x20the\x20latest\x20version','config\x20unset','Skip\x20Chromium\x20browser\x20installation','env','usage','Unknown\x20error','Initialize\x20Ranger\x20in\x20your\x20project','HSENs','bueNV','List\x20all\x20profiles','Filter\x20to\x20feature\x20reviews\x20for\x20current\x20git\x20branch','nHrXt','tgZWT','--profile','ruPmy','nrsQi','\x20BLOCKED','option','Verify\x20a\x20scenario\x20in\x20the\x20browser\x20(requires\x20active\x20feature\x20review)','otrfu','resume','jxEWQ','ranger\x20profile\x20encrypt-auth','xCSWn','nkYAG','Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)','feature\x20delete','Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','string','Unskc','start','TVbPR','get-feedback\x20[id]','offset','Show\x20feature\x20review\x20details\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)','hYrvj','Scenarios\x20(use\x20multiple\x20-c\x20flags\x20for\x20multiple\x20scenarios)','Enable\x20Ranger\x20hooks\x20for\x20this\x20session','LJwhF','env\x20update','zcsBi','config','LlVZi','GWjdj','use','Feature\x20review\x20description','SzDrp','329162glQaCw','pBcjF','encrypt\x20<profile>','ranger\x20profile\x20config\x20list','CKnSQ','iiolN','dEgDB','SWsFm','hook','error','Profile\x20name','headed','Feature\x20review\x20ID','JGjIv','xnXQI','Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)','ranger\x20go','argv','start\x20[token]','unhandledRejection','includes','RjkWc','Nwnoz','get-review\x20[id]','key','url','vUSVd','ranger\x20profile\x20use','--scenario','8WOlqEJ','model','ranger\x20profile\x20config\x20unset','verify-feature','add-scenario\x20<description>','bANvA','skip-auth','You\x20must\x20specify\x20a\x20command','lmkOE','Ranger\x20API\x20token','profile\x20update','KSpMi','ydcIm','help','Name\x20of\x20the\x20environment\x20(e.g.,\x20local,\x20staging,\x20prod)','setup\x20[token]','get-review','mjHsH','You\x20must\x20specify\x20a\x20profile\x20subcommand','gyCWy','Scenario\x20number\x20to\x20edit\x20(1-based)','Update\x20authentication\x20for\x20an\x20existing\x20profile','EWWWg','PeFFq','profile\x20add','ZQoPO','feature','OiEFj','Show\x20reviewer\x20feedback\x20(comments)\x20for\x20all\x20scenarios','dsytr','PzmpO','session-id','scope','LgpSq','WDKId','add-scenario','VCFIz','tjiIK','GSfMK','exit','iesDB','GLlvu','user','positional','VIahn','array','List\x20all\x20feature\x20reviews','ranger\x20create','ranger\x20restore','summary','koavS','feature\x20get-feedback','EUpre','Scenario\x20description','77300VPFSHd','base-url','IVXpt','QlZpB','Install\x20Ranger\x20skills','cdp-endpoint','tvTtf','Feature\x20review\x20name','QQbgz','some','eUSye','Scenario\x20index\x20(1-based)','Skip\x20Claude\x20Code\x20plugin\x20+\x20skills\x20install\x20(for\x20OpenCode\x20users)','ovPVX','\x20\x20https://docs.ranger.net/llms.txt\x20(for\x20LLMs)','HMJUT','log','Profile\x20to\x20use\x20(defaults\x20to\x20active\x20profile)','UtlEt','wZgDQ','SqrIv','pasET','efuKZ','Manage\x20profiles','HovqA','rBIof','BOZYA','profile\x20config\x20set','MKeWZ','402XMAdYS','INAyE','FZZjS','delete\x20[id]','edit-scenario','flag','add-checklist-item\x20<description>','JLwpZ','LtwRH','Find\x20and\x20use\x20feature\x20review\x20matching\x20current\x20git\x20context','You\x20must\x20specify\x20a\x20profile\x20config\x20subcommand','VYQob','dVBsN','forEach','hmaFE','.env','value','start-path','Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','yDPAf','\x0aError:\x20','profile\x20config\x20get','update','13930AzJpwt','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','GXBgA','mDMXM','TuIWw','current-branch','show\x20[id]','FyxCV','sXoFe','cdxCc','restore\x20<id>','cLjMG','MlYHX','ugkzk','Mwnwt','TSLHr','number','enable','demandCommand','WaHcn','MIMWO','scriptName','GMcdS','ggaDL','skip-chromium','boolean','ZFbiV','ranger\x20env\x20ls','FRVfB','scenario','ranger\x20use','incomplete','vdQgx','list','ojCnt','Force\x20headed\x20browser\x20for\x20this\x20run\x20only\x20(does\x20not\x20change\x20profile\x20config)','partial','KjSlE','Install\x20skills\x20for\x20OpenCode','ranger\x20feature\x20add-checklist-item','--notes','TchbB','Name\x20of\x20the\x20environment\x20to\x20update','KJlBF','Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','issues','UyFom','trackCommandError','OiGci','yBFFT','Config\x20value','zQQJX','root','status','cwd','Gbhwo','Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','xDXaf','FwQKh','QYAft','uLLTq','evaluation','DDAtV','356970gzTYrO','project','--env','CI\x20profile\x20name\x20(auto-detected\x20if\x20only\x20one\x20exists)','Add\x20a\x20scenario\x20to\x20the\x20active\x20feature\x20review','skillup','You\x20must\x20specify\x20an\x20auth\x20subcommand','ranger','command','clean','Name\x20of\x20the\x20environment','XHfKu','Set\x20up\x20Ranger\x20for\x20CI\x20(non-interactive)','item','TjnFp','Remove\x20a\x20config\x20value','mYjya','FZLzr','Remove\x20all\x20Ranger\x20artifacts\x20from\x20the\x20project','Edit\x20a\x20scenario\x20description\x20on\x20the\x20active\x20feature\x20review','FmCLY','dWapZ','ILsna','hMEix','606213dfTxMJ','Add\x20profile\x20configuration','spwGg','Name\x20of\x20the\x20profile\x20(e.g.,\x20local,\x20staging,\x20prod)','ZQeCg','ranger\x20profile\x20config\x20get','1ZlZytO','Rhqxs','BtfPT','show','Vbuak','LzAij','disable','HPTLU','name','Log\x20in\x20to\x20Ranger\x20via\x20browser\x20(re-authenticate\x20without\x20full\x20setup)','encrypt-auth\x20<profile>','debug-address-comments','include-deleted','token','notes','221164GFxejX','description','slice','Notes\x20for\x20verification\x20(defaults\x20to\x20scenario\x20description)','rAiNG','\x20is\x20now\x20','repeat','profile-name','feature\x20create','ranger\x20feature\x20show','SFnza','QQuMw','exclude-scenario','add\x20env\x20<env-name>'];_0x23d0=function(){return _0x1caefc;};return _0x23d0();}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'](_0x238674(0x2a2),async _0x4e765d=>{const _0x242656=_0x238674,_0x1eed04=getCurrentCollector();_0x1eed04&&await _0x1eed04[_0x242656(0x1e9)](_0x4e765d),process['exitCode']=0x1;});const rawArgs=process['argv'][_0x238674(0x228)](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=_0x238674(0x1bb),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(_0x144874,_0x217776){const _0x1dc600=_0x238674;console['error']('\x0a'+_0x144874+_0x1dc600(0x22b)+_0x217776+'\x0a');}function argUsed(_0x38001a){const _0x3d1833=_0x238674;return rawArgs[_0x3d1833(0x18f)](_0x10c027=>_0x10c027===_0x38001a||_0x10c027['startsWith'](_0x38001a+'='));}function warnFlagRenamed(_0x49c4a0,_0x38a7c0,_0xc95a3){argUsed(_0x38a7c0)&&warnRenamed(_0x49c4a0+'\x20'+_0x38a7c0,_0x49c4a0+'\x20'+_0xc95a3);}async function runGoCommand(_0x151b28,_0x52ba51=![]){const _0x3bf613=_0x238674,_0x5c21f7={'hYrvj':function(_0x5e57a4,_0x178cfa){return _0x5e57a4+_0x178cfa;},'dWapZ':'ranger\x20verify-feature','vWCqK':_0x3bf613(0x29f),'Ihcbf':_0x3bf613(0x1fb),'TchbB':function(_0x2d49ef,_0x438899,_0x555dd4,_0xedcd3d){return _0x2d49ef(_0x438899,_0x555dd4,_0xedcd3d);},'HKJIB':'--task','TuIWw':function(_0x338bff,_0x10ea9f,_0x317dc4,_0x5189f4){return _0x338bff(_0x10ea9f,_0x317dc4,_0x5189f4);},'iiolN':function(_0x19cc39){return _0x19cc39();},'pYUxB':function(_0x53372a,_0x3bd6cc){return _0x53372a??_0x3bd6cc;},'rAiNG':_0x3bf613(0x1a8),'Epsij':function(_0x39564a,_0x1ec4b0){return _0x39564a(_0x1ec4b0);},'ruPmy':_0x3bf613(0x222),'Ysqwo':'\x20VERIFIED','HGISW':_0x3bf613(0x1de),'BZzsG':'\x20PARTIAL','LguuP':'\x20FAILED','BVueE':_0x3bf613(0x253)};_0x52ba51&&warnRenamed(_0x5c21f7[_0x3bf613(0x20e)],_0x5c21f7[_0x3bf613(0x241)]);warnFlagRenamed('ranger\x20go',_0x5c21f7['Ihcbf'],_0x3bf613(0x26d)),_0x5c21f7[_0x3bf613(0x1e3)](warnFlagRenamed,_0x5c21f7['vWCqK'],_0x5c21f7['HKJIB'],_0x3bf613(0x1e2)),_0x5c21f7[_0x3bf613(0x1be)](warnFlagRenamed,_0x5c21f7[_0x3bf613(0x241)],'--item','--scenario');const _0xf2cff3=await _0x5c21f7[_0x3bf613(0x294)](loadRangerConfig),_0x28be86=_0x151b28['model'],_0xeb944f=_0xf2cff3['model'],_0x581c5a=_0x5c21f7['pYUxB'](_0x28be86,_0xeb944f),_0x2df042=_0x28be86?_0x5c21f7[_0x3bf613(0x22a)]:_0xeb944f?'config':'default',_0x12c7a1=await _0x5c21f7['Epsij'](verifyFeature,{'profile':_0x151b28[_0x3bf613(0x23f)]??_0x151b28['env'],'notes':_0x151b28[_0x3bf613(0x225)]??_0x151b28[_0x3bf613(0x25b)],'scenario':_0x151b28['scenario']??_0x151b28[_0x3bf613(0x206)],'startPath':_0x151b28['start-path'],'debugOutcome':_0x151b28['debug-outcome'],'debugAddressComments':_0x151b28[_0x5c21f7[_0x3bf613(0x26e)]],'headed':_0x151b28['headed'],'verifyModel':_0x581c5a,'verifyModelInput':_0x581c5a,'verifyModelSource':_0x2df042});console[_0x3bf613(0x196)]('\x0a'+'='[_0x3bf613(0x22c)](0x3c)),console[_0x3bf613(0x196)](_0x12c7a1[_0x3bf613(0x1f7)]===_0x3bf613(0x253)?_0x5c21f7['Ysqwo']:_0x12c7a1['evaluation']===_0x3bf613(0x1d9)?'\x20INCOMPLETE':_0x12c7a1['evaluation']===_0x5c21f7['HGISW']?_0x5c21f7['BZzsG']:_0x12c7a1['evaluation']===_0x3bf613(0x254)?_0x3bf613(0x270):_0x5c21f7['LguuP']),console['log']('='[_0x3bf613(0x22c)](0x3c)),console['log']('Summary:\x20'+_0x12c7a1[_0x3bf613(0x181)]),console['log']('Evaluation:\x20'+_0x12c7a1[_0x3bf613(0x1f7)]),console[_0x3bf613(0x196)]('Reason:\x20'+_0x12c7a1['evaluationReason']),_0x12c7a1[_0x3bf613(0x1e7)]?.['length']&&(console['log']('\x0aIssues:'),_0x12c7a1['issues'][_0x3bf613(0x1b0)]((_0x2478e1,_0x2977c6)=>{const _0x3d8845=_0x3bf613;console[_0x3d8845(0x196)]('\x0a'+_0x5c21f7[_0x3d8845(0x283)](_0x2977c6,0x1)+'.\x20['+_0x2478e1['severity']+']\x20'+_0x2478e1[_0x3d8845(0x227)]);})),process[_0x3bf613(0x177)](_0x12c7a1['evaluation']===_0x5c21f7['BVueE']?0x0:0x1);}_0x3e181a(process['argv'][_0x238674(0x228)](0x2))[_0x238674(0x1cf)](_0x238674(0x200))[_0x238674(0x264)](TOP_LEVEL_HELP)['version'](getCurrentVersion())['command']('create\x20<name>',_0x238674(0x25f),_0xed307d=>{const _0x4c60ba=_0x238674,_0x18d869={'TjnFp':'string','rbbHW':_0x4c60ba(0x284),'VIahn':'checklist'};return _0xed307d['positional']('name',{'type':_0x18d869['TjnFp'],'description':'Feature\x20review\x20name','demandOption':!![]})['option'](_0x4c60ba(0x227),{'type':_0x18d869[_0x4c60ba(0x207)],'alias':'d','description':'Feature\x20review\x20description'})[_0x4c60ba(0x271)](_0x4c60ba(0x1d7),{'type':_0x4c60ba(0x17d),'alias':'c','description':_0x18d869['rbbHW']})[_0x4c60ba(0x271)](_0x18d869[_0x4c60ba(0x17c)],{'type':_0x4c60ba(0x17d),'hidden':!![]});},async _0x349c87=>{const _0x17dd25=_0x238674,_0x40ed07={'ggaDL':function(_0xc9606,_0x3ded06,_0x3ffd49){return _0xc9606(_0x3ded06,_0x3ffd49);},'zcsBi':_0x17dd25(0x23b)};warnFlagRenamed(_0x17dd25(0x17f),'--checklist',_0x17dd25(0x14f));const _0x120031=_0x349c87['scenario']||_0x349c87['checklist'];await _0x40ed07[_0x17dd25(0x1d1)](withTelemetry,_0x40ed07[_0x17dd25(0x288)],()=>featureCreate(_0x349c87['name'],{'description':_0x349c87[_0x17dd25(0x227)],'scenarios':_0x120031}));})[_0x238674(0x201)](_0x238674(0x1db),_0x238674(0x17e),_0xb08ec2=>{const _0x1d1964=_0x238674,_0x47e550={'baKBJ':_0x1d1964(0x1ca),'yDPAf':_0x1d1964(0x1f2),'SejfY':'boolean'};return _0xb08ec2['option']('current-branch',{'type':_0x1d1964(0x1d3),'description':_0x1d1964(0x26a)})['option']('limit',{'type':_0x47e550[_0x1d1964(0x24c)],'alias':'l','description':_0x47e550[_0x1d1964(0x1b6)],'default':0xa})['option'](_0x1d1964(0x281),{'type':_0x1d1964(0x1ca),'alias':'o','description':'Number\x20of\x20feature\x20reviews\x20to\x20skip','default':0x0})[_0x1d1964(0x271)](_0x1d1964(0x223),{'type':_0x47e550['SejfY'],'alias':'d','description':'Include\x20soft-deleted\x20feature\x20reviews','default':![]});},async _0xa4b7d6=>{const _0x748bd5=_0x238674;await withTelemetry(_0x748bd5(0x1db),()=>featureList({'currentBranch':_0xa4b7d6[_0x748bd5(0x1bf)],'limit':_0xa4b7d6[_0x748bd5(0x248)],'offset':_0xa4b7d6['offset'],'includeDeleted':_0xa4b7d6[_0x748bd5(0x223)]}));})[_0x238674(0x201)](_0x238674(0x1c0),_0x238674(0x282),_0x36728b=>{const _0x5074dc=_0x238674,_0x512f77={'JLwpZ':_0x5074dc(0x29b)};return _0x36728b['positional']('id',{'type':'string','description':_0x512f77[_0x5074dc(0x1aa)]});},async _0x493b1d=>{const _0x43d041=_0x238674,_0x58fef0={'tvTtf':_0x43d041(0x21a)};await withTelemetry(_0x58fef0[_0x43d041(0x18c)],()=>featureShow(_0x493b1d['id']));})['command'](_0x238674(0x235),_0x238674(0x1ac),_0x443fda=>{const _0x58bd48=_0x238674,_0x10480f={'VYQob':_0x58bd48(0x27b)};return _0x443fda[_0x58bd48(0x17b)]('id',{'type':'string','description':_0x10480f[_0x58bd48(0x1ae)]});},async _0x41616e=>{const _0x300f4e=_0x238674,_0x65b0af={'QQuMw':_0x300f4e(0x274)};await withTelemetry(_0x65b0af[_0x300f4e(0x231)],()=>featureResume(_0x41616e['id']));})[_0x238674(0x201)](_0x238674(0x154),_0x238674(0x1fd),_0xd5b295=>{const _0x4b5f3e=_0x238674,_0x6b8daf={'jJnGd':_0x4b5f3e(0x227),'EtWvb':'string','KjSlE':_0x4b5f3e(0x279)};return _0xd5b295[_0x4b5f3e(0x17b)](_0x6b8daf['jJnGd'],{'type':_0x6b8daf['EtWvb'],'description':_0x4b5f3e(0x185),'demandOption':!![]})['option']('id',{'type':_0x4b5f3e(0x27c),'description':_0x6b8daf[_0x4b5f3e(0x1df)]});},async _0x3fccd7=>{const _0x115c8f=_0x238674,_0x4bdf28={'MlYHX':_0x115c8f(0x173)};await withTelemetry(_0x4bdf28[_0x115c8f(0x1c6)],()=>featureAddScenario(_0x3fccd7[_0x115c8f(0x227)],_0x3fccd7['id']));})[_0x238674(0x201)]('edit-scenario\x20<description>',_0x238674(0x20c),_0x319dcb=>{const _0x5a5e61=_0x238674,_0x329f7e={'hmaFE':'string','GXBgA':'New\x20scenario\x20description','Lcgqm':'scenario','jKAbH':_0x5a5e61(0x164),'RPchQ':_0x5a5e61(0x279)};return _0x319dcb['positional'](_0x5a5e61(0x227),{'type':_0x329f7e[_0x5a5e61(0x1b1)],'description':_0x329f7e[_0x5a5e61(0x1bc)],'demandOption':!![]})[_0x5a5e61(0x271)](_0x329f7e['Lcgqm'],{'type':'number','description':_0x329f7e[_0x5a5e61(0x257)],'demandOption':!![]})['option']('id',{'type':_0x5a5e61(0x27c),'description':_0x329f7e['RPchQ']});},async _0x40bb01=>{const _0x1c4899=_0x238674,_0x4ef1de={'Mwnwt':_0x1c4899(0x1a7)};await withTelemetry(_0x4ef1de[_0x1c4899(0x1c8)],()=>featureEditScenario(_0x40bb01[_0x1c4899(0x227)],{'id':_0x40bb01['id'],'scenario':_0x40bb01['scenario']}));})[_0x238674(0x201)]('report\x20[id]',_0x238674(0x250),_0x3ae220=>{const _0x3f2814=_0x238674,_0x328f02={'XHfKu':'Scenario\x20numbers\x20to\x20exclude\x20(use\x20multiple\x20values)'};return _0x3ae220[_0x3f2814(0x17b)]('id',{'type':'string','description':'Feature\x20review\x20ID'})['option'](_0x3f2814(0x232),{'type':'array','description':_0x328f02[_0x3f2814(0x204)]});},async _0x1954bf=>{const _0x66e852=_0x238674,_0x3540c0={'ZQoPO':function(_0x28be5a,_0x3f4a49,_0x38c174){return _0x28be5a(_0x3f4a49,_0x38c174);},'IVXpt':'report'},_0x42b419=_0x1954bf['exclude-scenario'],_0x2493dc=_0x42b419?_0x42b419['map'](_0x2fb48f=>Number(_0x2fb48f)):undefined;await _0x3540c0[_0x66e852(0x169)](withTelemetry,_0x3540c0[_0x66e852(0x188)],()=>featureReportPrDescription(_0x1954bf['id'],{'excludeScenarios':_0x2493dc}));})['command'](_0x238674(0x2a6),_0x238674(0x16c),_0x387984=>{const _0x234530=_0x238674,_0x446bbb={'rnuBe':'string'};return _0x387984[_0x234530(0x17b)]('id',{'type':_0x446bbb['rnuBe'],'description':'Feature\x20review\x20ID\x20(uses\x20active\x20feature\x20review\x20if\x20not\x20provided)'});},async _0xc9046b=>{const _0x363d54=_0x238674,_0x5aca7b={'vUSVd':_0x363d54(0x160)};await withTelemetry(_0x5aca7b[_0x363d54(0x14d)],()=>featureGetReview(_0xc9046b['id']));})['command']('delete\x20[id]','Soft\x20delete\x20a\x20feature\x20review\x20(uses\x20active\x20feature\x20review\x20if\x20no\x20id)',_0x4d94ad=>{const _0x54148c=_0x238674,_0x5cfb26={'FwQKh':'string'};return _0x4d94ad[_0x54148c(0x17b)]('id',{'type':_0x5cfb26[_0x54148c(0x1f4)],'description':'Feature\x20review\x20ID'});},async _0x5f1006=>{const _0x402b7b=_0x238674,_0x42ce8a={'PeFFq':function(_0xf3376e,_0x1be0b1,_0x4f42bb){return _0xf3376e(_0x1be0b1,_0x4f42bb);},'iesDB':'delete'};await _0x42ce8a[_0x402b7b(0x167)](withTelemetry,_0x42ce8a[_0x402b7b(0x178)],()=>featureDelete(_0x5f1006['id']));})['command'](_0x238674(0x1c4),'Restore\x20a\x20soft-deleted\x20feature\x20review',_0x248c53=>{const _0x4a17eb=_0x238674,_0x2a48f6={'NZafW':'string','LJwhF':'Feature\x20review\x20ID\x20to\x20restore'};return _0x248c53[_0x4a17eb(0x17b)]('id',{'type':_0x2a48f6[_0x4a17eb(0x240)],'description':_0x2a48f6[_0x4a17eb(0x286)],'demandOption':!![]});},async _0x517a8f=>{await withTelemetry('restore',()=>featureRestore(_0x517a8f['id']));})['command'](_0x238674(0x15f),_0x238674(0x266),_0x4aa6eb=>{const _0x1c372e=_0x238674,_0x51748f={'dEgDB':'boolean','EWWWg':_0x1c372e(0x170),'qLojQ':'string','nrsQi':_0x1c372e(0x14c),'Vbuak':_0x1c372e(0x1e6),'xCSWn':_0x1c372e(0x247)};return _0x4aa6eb['positional']('token',{'type':_0x1c372e(0x27c),'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})[_0x1c372e(0x271)]('skip-chromium',{'type':_0x51748f[_0x1c372e(0x295)],'description':'Skip\x20Chromium\x20browser\x20check\x20and\x20installation','default':![]})[_0x1c372e(0x271)](_0x51748f[_0x1c372e(0x166)],{'type':_0x51748f['qLojQ'],'choices':['user','project'],'description':'Install\x20scope\x20for\x20plugin\x20and\x20skills\x20(defaults\x20to\x20user\x20in\x20non-interactive\x20mode)'})['option'](_0x51748f[_0x1c372e(0x26f)],{'type':'string','description':_0x1c372e(0x237)})['option']('force',{'type':_0x51748f['dEgDB'],'description':_0x51748f[_0x1c372e(0x21b)],'default':![]})['option'](_0x51748f[_0x1c372e(0x277)],{'type':_0x51748f['dEgDB'],'description':_0x1c372e(0x192),'default':![]});},async _0x3b040a=>{const _0x452299=_0x238674,_0x4f79cb={'LzAij':function(_0x4a04d7,_0x230dd1,_0x24ee03){return _0x4a04d7(_0x230dd1,_0x24ee03);},'ZtnzX':'start'};await _0x4f79cb[_0x452299(0x21c)](withTelemetry,_0x4f79cb[_0x452299(0x24e)],_0x55091a=>start(_0x3b040a[_0x452299(0x224)],{'skipChromium':_0x3b040a['skip-chromium'],'scope':_0x3b040a['scope'],'url':_0x3b040a[_0x452299(0x14c)],'force':_0x3b040a['force'],'opencode':_0x3b040a[_0x452299(0x247)]},_0x55091a));})['command']('setup-ci\x20<token>',_0x238674(0x205),_0x42b254=>{const _0x35be2f=_0x238674,_0x11c372={'TVbPR':_0x35be2f(0x27c),'SqrIv':_0x35be2f(0x1fc),'vdQgx':'Base\x20URL\x20for\x20the\x20app\x20(creates/updates\x20profile\x20settings)','NpScG':_0x35be2f(0x1d3)};return _0x42b254['positional']('token',{'type':_0x11c372['TVbPR'],'description':_0x35be2f(0x159),'demandOption':!![]})[_0x35be2f(0x271)](_0x35be2f(0x23f),{'type':_0x11c372[_0x35be2f(0x27f)],'description':_0x11c372[_0x35be2f(0x19a)]})[_0x35be2f(0x271)]('base-url',{'type':_0x11c372[_0x35be2f(0x27f)],'description':_0x11c372[_0x35be2f(0x1da)]})[_0x35be2f(0x271)](_0x35be2f(0x1d2),{'type':_0x11c372['NpScG'],'description':_0x35be2f(0x262),'default':![]});},async _0x338172=>{const _0x3d9ad6=_0x238674,_0x34efa4={'ygMOE':'setup-ci'};await withTelemetry(_0x34efa4['ygMOE'],_0x7b67f6=>setupCi(_0x338172['token'],{'profile':_0x338172[_0x3d9ad6(0x23f)],'baseUrl':_0x338172[_0x3d9ad6(0x187)],'skipChromium':_0x338172['skip-chromium']},_0x7b67f6));})[_0x238674(0x201)]('login',_0x238674(0x220),()=>{},async()=>{await withTelemetry('login',()=>login());})[_0x238674(0x201)](_0x238674(0x1fe),_0x238674(0x18a),_0x184421=>{const _0x34c858=_0x238674,_0x185ef0={'zVbZC':_0x34c858(0x1d3),'PIkOy':_0x34c858(0x1e0),'tjiIK':_0x34c858(0x170),'jxEWQ':_0x34c858(0x1fa)};return _0x184421['option']('opencode',{'type':_0x185ef0[_0x34c858(0x255)],'description':_0x185ef0['PIkOy'],'default':![]})[_0x34c858(0x271)](_0x185ef0[_0x34c858(0x175)],{'type':'string','choices':[_0x34c858(0x17a),_0x185ef0[_0x34c858(0x275)]],'description':'Install\x20scope\x20for\x20skills'});},async _0x524d20=>{const _0x57fa7d=_0x238674,_0x9ec141=Boolean(_0x524d20['opencode']);await withTelemetry(_0x57fa7d(0x1fe),()=>skillup({'autoInstall':_0x524d20['scope'],'platform':_0x9ec141?'opencode':'claude'}));})[_0x238674(0x201)](_0x238674(0x202),_0x238674(0x20b),()=>{},async()=>{const _0x538826=_0x238674,_0x27e863={'nktdh':function(_0x53dc2b,_0x55fc4c,_0x4f6517){return _0x53dc2b(_0x55fc4c,_0x4f6517);},'hURXs':_0x538826(0x202)};await _0x27e863['nktdh'](withTelemetry,_0x27e863['hURXs'],()=>clean());})['command'](_0x238674(0x23f),_0x238674(0x19d),_0x101489=>{const _0x2daef6=_0x238674,_0x3dab90={'QlZpB':_0x2daef6(0x22d),'zjyGw':_0x2daef6(0x214),'CKnSQ':'Create\x20CI\x20profile\x20(encrypted\x20auth,\x20committed\x20to\x20git)','tgZWT':_0x2daef6(0x156),'DDAtV':'boolean','yzcUo':'Base\x20URL\x20of\x20the\x20running\x20app\x20(required\x20in\x20non-interactive\x20mode)','yzeOm':'Skip\x20URL\x20reachability\x20check\x20when\x20using\x20--url','MIMWO':_0x2daef6(0x27c),'uUvAo':function(_0x52abae,_0x57f942,_0x4b17f3,_0x1d0be7){return _0x52abae(_0x57f942,_0x4b17f3,_0x1d0be7);},'zaVBZ':function(_0x65ed50,_0x498673){return _0x65ed50(_0x498673);},'VCFIz':_0x2daef6(0x18b),'ZcVwF':'Name\x20of\x20the\x20profile','erezd':'profile\x20use','niTRg':_0x2daef6(0x23f),'nkYAG':'Profile\x20name','gpYhU':function(_0x634802,_0xad58b8,_0x349920){return _0x634802(_0xad58b8,_0x349920);},'GMcdS':'profile\x20encrypt-auth','sXoFe':'profile\x20ls','uMXZq':'Name\x20of\x20the\x20profile\x20to\x20update','lRnIL':_0x2daef6(0x15a),'FZZjS':_0x2daef6(0x14b),'Rhqxs':'value','WDKId':'profile\x20config\x20list','pBcjF':'Config\x20key\x20to\x20remove','HovqA':'profile\x20config\x20unset','ISsIk':'Set\x20a\x20config\x20value','gyCWy':_0x2daef6(0x24d),'qejqd':'List\x20all\x20config\x20for\x20a\x20profile','Yvczt':'unset\x20<profile>\x20<key>','SWsFm':_0x2daef6(0x208),'zherq':_0x2daef6(0x1ad),'NSUbx':'use\x20<profile-name>','XxwBk':_0x2daef6(0x221),'MFlcP':'Encrypt\x20auth.json\x20for\x20a\x20profile\x20(allows\x20committing\x20to\x20git)','BOZYA':_0x2daef6(0x269),'mjHsH':'update\x20<profile-name>','koavS':_0x2daef6(0x165)};return _0x101489['usage'](PROFILE_HELP)[_0x2daef6(0x201)]('add\x20<profile-name>',_0x2daef6(0x212),_0x4d5850=>{const _0x49bb33=_0x2daef6;return _0x4d5850['positional'](_0x3dab90[_0x49bb33(0x189)],{'type':_0x49bb33(0x27c),'description':_0x3dab90[_0x49bb33(0x243)],'demandOption':!![]})[_0x49bb33(0x271)]('ci',{'type':'boolean','description':_0x3dab90[_0x49bb33(0x293)],'default':![]})['option'](_0x3dab90[_0x49bb33(0x26c)],{'type':_0x3dab90[_0x49bb33(0x1f8)],'description':_0x49bb33(0x24f),'default':![]})['option']('url',{'type':_0x49bb33(0x27c),'description':_0x3dab90['yzcUo']})[_0x49bb33(0x271)]('force',{'type':_0x3dab90[_0x49bb33(0x1f8)],'description':_0x3dab90['yzeOm'],'default':![]})['option']('cdp-endpoint',{'type':_0x3dab90['MIMWO'],'description':'CDP\x20endpoint\x20for\x20an\x20Electron\x20app\x20or\x20existing\x20browser\x20(e.g.\x20http://localhost:9222).\x20Skips\x20URL\x20and\x20browser\x20auth\x20setup.'});},async _0x248c8e=>{const _0x5d5cd6=_0x2daef6;await _0x3dab90['uUvAo'](withTelemetry,_0x5d5cd6(0x168),_0x5ce5ba=>addEnv(_0x248c8e['profile-name'],{'ci':_0x248c8e['ci'],'skipAuth':_0x248c8e[_0x5d5cd6(0x156)],'url':_0x248c8e['url'],'force':_0x248c8e['force'],'cdpEndpoint':_0x248c8e['cdp-endpoint']},_0x5ce5ba),{'isElectron':_0x3dab90['zaVBZ'](Boolean,_0x248c8e[_0x3dab90[_0x5d5cd6(0x174)]])});})['command'](_0x3dab90['NSUbx'],'Switch\x20to\x20using\x20a\x20specific\x20profile',_0x1c9ad2=>{const _0x107a57=_0x2daef6;return _0x1c9ad2[_0x107a57(0x17b)](_0x3dab90['QlZpB'],{'type':_0x3dab90[_0x107a57(0x1ce)],'description':_0x3dab90['ZcVwF'],'demandOption':!![]});},async _0xd5b0dc=>{const _0x27270f=_0x2daef6;await withTelemetry(_0x3dab90[_0x27270f(0x25e)],()=>useEnv(_0xd5b0dc[_0x27270f(0x22d)]));})['command'](_0x3dab90[_0x2daef6(0x242)],_0x3dab90['MFlcP'],_0x39bfd5=>{const _0x412c06=_0x2daef6;return _0x39bfd5['positional'](_0x3dab90['niTRg'],{'type':_0x3dab90[_0x412c06(0x1ce)],'description':_0x3dab90['nkYAG'],'demandOption':!![]});},async _0x48e58c=>{const _0x4d1bfd=_0x2daef6;await _0x3dab90['gpYhU'](withTelemetry,_0x3dab90[_0x4d1bfd(0x1d0)],()=>authEncrypt(_0x48e58c[_0x4d1bfd(0x23f)]));})['command']('ls',_0x3dab90[_0x2daef6(0x1a0)],()=>{},async()=>{const _0xa5c16e=_0x2daef6;await withTelemetry(_0x3dab90[_0xa5c16e(0x1c2)],()=>envList());})['command'](_0x3dab90[_0x2daef6(0x161)],_0x3dab90[_0x2daef6(0x182)],_0x335863=>{const _0x471edd=_0x2daef6;return _0x335863[_0x471edd(0x17b)]('profile-name',{'type':_0x3dab90[_0x471edd(0x1ce)],'description':_0x3dab90['uMXZq'],'demandOption':!![]});},async _0x254ce0=>{const _0x4e9f9b=_0x2daef6;await withTelemetry(_0x3dab90[_0x4e9f9b(0x245)],_0x3ebca0=>updateEnv(_0x254ce0['profile-name'],_0x3ebca0));})['command']('config','Manage\x20profile\x20configuration',_0x2efb3b=>{const _0x18ecc8=_0x2daef6,_0x5034a2={'UyFom':'string','ZXtfe':_0x3dab90[_0x18ecc8(0x278)],'GrhBA':_0x3dab90[_0x18ecc8(0x218)],'strjR':function(_0xc294d9,_0x21e771,_0x403e9f){return _0xc294d9(_0x21e771,_0x403e9f);},'nHrXt':_0x3dab90['niTRg'],'zUPjz':_0x3dab90[_0x18ecc8(0x172)],'THKZT':_0x3dab90['FZZjS'],'DKEYm':_0x3dab90[_0x18ecc8(0x290)],'qxpmt':_0x3dab90[_0x18ecc8(0x19e)]};return _0x2efb3b['usage'](PROFILE_CONFIG_HELP)['command']('set\x20<profile>\x20<key>\x20<value>',_0x3dab90['ISsIk'],_0x58fafe=>{const _0x43c4f1=_0x18ecc8;return _0x58fafe['positional'](_0x43c4f1(0x23f),{'type':_0x5034a2[_0x43c4f1(0x1e8)],'description':_0x5034a2['ZXtfe'],'demandOption':!![]})['positional']('key',{'type':_0x43c4f1(0x27c),'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x43c4f1(0x17b)](_0x5034a2['GrhBA'],{'type':_0x43c4f1(0x27c),'description':_0x43c4f1(0x1ec),'demandOption':!![]});},async _0x5b61c7=>{const _0x50fa04=_0x18ecc8;await _0x5034a2['strjR'](withTelemetry,_0x50fa04(0x1a1),()=>configSet(_0x5b61c7[_0x50fa04(0x23f)],_0x5b61c7[_0x50fa04(0x14b)],_0x5b61c7['value']));})[_0x18ecc8(0x201)](_0x18ecc8(0x23c),_0x3dab90[_0x18ecc8(0x163)],_0x4726c7=>{const _0x21e838=_0x18ecc8;return _0x4726c7['positional'](_0x3dab90['niTRg'],{'type':_0x21e838(0x27c),'description':'Profile\x20name','demandOption':!![]})[_0x21e838(0x17b)](_0x3dab90[_0x21e838(0x1a5)],{'type':_0x3dab90[_0x21e838(0x1ce)],'description':_0x21e838(0x256),'demandOption':!![]});},async _0x3da29a=>{const _0x139f61=_0x18ecc8;await _0x5034a2['strjR'](withTelemetry,_0x139f61(0x1b8),()=>configGet(_0x3da29a[_0x139f61(0x23f)],_0x3da29a[_0x139f61(0x14b)]));})['command']('list\x20<profile>',_0x3dab90['qejqd'],_0x39636b=>{const _0x2c5aef=_0x18ecc8;return _0x39636b['positional'](_0x5034a2[_0x2c5aef(0x26b)],{'type':_0x2c5aef(0x27c),'description':_0x5034a2['ZXtfe'],'demandOption':!![]});},async _0x4eb482=>{await withTelemetry(_0x5034a2['zUPjz'],()=>configList(_0x4eb482['profile']));})[_0x18ecc8(0x201)](_0x3dab90['Yvczt'],_0x3dab90[_0x18ecc8(0x296)],_0x124d8c=>{const _0x3b485d=_0x18ecc8;return _0x124d8c[_0x3b485d(0x17b)](_0x3b485d(0x23f),{'type':_0x3b485d(0x27c),'description':_0x3b485d(0x299),'demandOption':!![]})['positional'](_0x5034a2['THKZT'],{'type':'string','description':_0x5034a2['DKEYm'],'demandOption':!![]});},async _0x36bf93=>{const _0x46bf5a=_0x18ecc8;await withTelemetry(_0x5034a2['qxpmt'],()=>configUnset(_0x36bf93[_0x46bf5a(0x23f)],_0x36bf93[_0x46bf5a(0x14b)]));})['demandCommand'](0x1,_0x3dab90['zherq']);})[_0x2daef6(0x1cc)](0x1,_0x2daef6(0x162));})['command']('status',_0x238674(0x259),()=>{},async()=>{const _0x40b00b=_0x238674,_0x4e45b1={'MKeWZ':function(_0x1eb7a4,_0xe76a18,_0x2ee944){return _0x1eb7a4(_0xe76a18,_0x2ee944);},'rBIof':_0x40b00b(0x1ef)};await _0x4e45b1[_0x40b00b(0x1a2)](withTelemetry,_0x4e45b1[_0x40b00b(0x19f)],()=>status());})[_0x238674(0x201)]('update',_0x238674(0x260),()=>{},async()=>{const _0x5d158b=_0x238674,_0x117cb7={'OiGci':function(_0x3811e9,_0xb4a5d,_0x3ea91d){return _0x3811e9(_0xb4a5d,_0x3ea91d);},'duEVM':_0x5d158b(0x1b9)};await _0x117cb7[_0x5d158b(0x1ea)](withTelemetry,_0x117cb7['duEVM'],()=>update());})[_0x238674(0x201)]('go',_0x238674(0x272),_0x25290f=>{const _0x2fc1b5=_0x238674,_0x560e1e={'spwGg':'profile','XPRFF':'string','YRMUe':_0x2fc1b5(0x225),'WxvIE':_0x2fc1b5(0x1ca),'vyGlh':_0x2fc1b5(0x191),'HSENs':'Path\x20to\x20start\x20on\x20(appended\x20to\x20base\x20URL,\x20e.g.,\x20/dashboard)','KeupB':_0x2fc1b5(0x151),'xnXQI':'boolean','uhwvI':_0x2fc1b5(0x1dd),'XmGuB':'debug-outcome','AcAek':_0x2fc1b5(0x253),'qMnCa':'partial','UDlTM':_0x2fc1b5(0x254),'eUSye':'task','JGjIv':'item'};return _0x25290f[_0x2fc1b5(0x271)](_0x560e1e[_0x2fc1b5(0x213)],{'type':_0x560e1e['XPRFF'],'description':_0x2fc1b5(0x197)})['option'](_0x560e1e['YRMUe'],{'type':_0x2fc1b5(0x27c),'description':_0x2fc1b5(0x229)})[_0x2fc1b5(0x271)]('scenario',{'type':_0x560e1e['WxvIE'],'description':_0x560e1e['vyGlh']})[_0x2fc1b5(0x271)]('start-path',{'type':_0x560e1e['XPRFF'],'description':_0x560e1e[_0x2fc1b5(0x267)]})['option'](_0x560e1e['KeupB'],{'type':'string','description':'Model\x20to\x20use\x20for\x20verification\x20(e.g.,\x20opus,\x20sonnet,\x20claude-opus-4-6,\x20anthropic.claude-opus-4-6-v1)'})['option']('headed',{'type':_0x560e1e[_0x2fc1b5(0x29d)],'description':_0x560e1e['uhwvI'],'default':![]})['option'](_0x560e1e['XmGuB'],{'type':_0x2fc1b5(0x27c),'hidden':!![],'choices':[_0x560e1e['AcAek'],_0x560e1e['qMnCa'],_0x560e1e['UDlTM'],'failed','incomplete']})['option']('debug-address-comments',{'type':_0x560e1e['xnXQI'],'hidden':!![]})[_0x2fc1b5(0x271)](_0x2fc1b5(0x263),{'type':_0x2fc1b5(0x27c),'hidden':!![]})[_0x2fc1b5(0x271)](_0x560e1e[_0x2fc1b5(0x190)],{'type':_0x560e1e['XPRFF'],'hidden':!![]})[_0x2fc1b5(0x271)](_0x560e1e[_0x2fc1b5(0x29c)],{'type':'number','hidden':!![]});},async _0x31ddd8=>{const _0x4e7926={'laTjk':function(_0x2da285,_0x42b5ce){return _0x2da285(_0x42b5ce);}};await _0x4e7926['laTjk'](runGoCommand,_0x31ddd8);})['command']('auth',![],_0x30e58d=>{const _0x34df69=_0x238674,_0x156eab={'CzuOw':_0x34df69(0x27c),'Unskc':_0x34df69(0x299),'PelRZ':'ranger\x20auth\x20encrypt','QYAft':_0x34df69(0x276),'LibDq':function(_0x51304c,_0x498dda){return _0x51304c(_0x498dda);},'OVqMx':_0x34df69(0x291),'ojCnt':_0x34df69(0x1ff)};return _0x30e58d['command'](_0x156eab['OVqMx'],![],_0x45ede6=>{const _0x39d874=_0x34df69;return _0x45ede6[_0x39d874(0x17b)]('profile',{'type':_0x156eab['CzuOw'],'description':_0x156eab[_0x39d874(0x27d)],'demandOption':!![]});},async _0x104898=>{const _0xc5fc08=_0x34df69;warnRenamed(_0x156eab['PelRZ'],_0x156eab[_0xc5fc08(0x1f5)]),await _0x156eab['LibDq'](authEncrypt,_0x104898[_0xc5fc08(0x23f)]);})[_0x34df69(0x1cc)](0x1,_0x156eab[_0x34df69(0x1dc)]);},()=>{})['command'](_0x238674(0x2a1),![],_0x547815=>{const _0x1b5808=_0x238674,_0x524fbf={'XOFFO':'token','SrCXK':'boolean','XCGwV':'string','Nwnoz':'project','FyxCV':_0x1b5808(0x1e6)};return _0x547815['positional'](_0x524fbf[_0x1b5808(0x239)],{'type':_0x1b5808(0x27c),'description':'Ranger\x20API\x20token\x20(omit\x20to\x20log\x20in\x20via\x20browser)'})['option'](_0x1b5808(0x1d2),{'type':_0x524fbf['SrCXK'],'description':_0x1b5808(0x234),'default':![]})[_0x1b5808(0x271)]('scope',{'type':_0x524fbf['XCGwV'],'choices':[_0x1b5808(0x17a),_0x524fbf[_0x1b5808(0x2a5)]],'description':_0x1b5808(0x29e)})['option'](_0x1b5808(0x14c),{'type':_0x524fbf['XCGwV'],'description':'Base\x20URL\x20of\x20the\x20running\x20app\x20for\x20profile\x20setup\x20(required\x20in\x20non-interactive\x20mode)'})[_0x1b5808(0x271)]('force',{'type':_0x1b5808(0x1d3),'description':_0x524fbf[_0x1b5808(0x1c1)],'default':![]});},async _0x4c51fb=>{const _0x503302=_0x238674,_0x4f072b={'GWTsA':'ranger\x20start','WaHcn':'ranger\x20setup','TSLHr':function(_0x18cb5a,_0x34d036,_0x2e5b69){return _0x18cb5a(_0x34d036,_0x2e5b69);},'kjqzv':_0x503302(0x27e)};warnRenamed(_0x4f072b['GWTsA'],_0x4f072b[_0x503302(0x1cd)]),await _0x4f072b[_0x503302(0x1c9)](withTelemetry,_0x4f072b['kjqzv'],_0x231656=>start(_0x4c51fb['token'],{'skipChromium':_0x4c51fb[_0x503302(0x1d2)],'scope':_0x4c51fb[_0x503302(0x170)],'url':_0x4c51fb['url'],'force':_0x4c51fb['force']},_0x231656));})[_0x238674(0x201)](_0x238674(0x153),![],_0xaf67ca=>{const _0x1026a9=_0x238674,_0x18086f={'cLFja':'env','TXPWR':_0x1026a9(0x197),'EUpre':'Task\x20description\x20(defaults\x20to\x20scenario\x20description)','dsytr':_0x1026a9(0x206),'dkIwK':'Scenario\x20index\x20(1-based)','otrfu':'string','LtwRH':'scenario','bueNV':_0x1026a9(0x29a),'HvZCv':'boolean','eeaWW':'debug-outcome','ovPVX':'verified','ydcIm':'partial','qUCrt':'failed'};return _0xaf67ca['option'](_0x18086f['cLFja'],{'type':_0x1026a9(0x27c),'description':_0x18086f['TXPWR']})[_0x1026a9(0x271)]('task',{'type':'string','description':_0x18086f[_0x1026a9(0x184)]})['option'](_0x18086f[_0x1026a9(0x16d)],{'type':_0x1026a9(0x1ca),'description':_0x18086f['dkIwK']})['option']('profile',{'type':_0x18086f[_0x1026a9(0x273)],'hidden':!![]})[_0x1026a9(0x271)](_0x1026a9(0x225),{'type':_0x18086f['otrfu'],'hidden':!![]})[_0x1026a9(0x271)](_0x18086f[_0x1026a9(0x1ab)],{'type':'number','hidden':!![]})[_0x1026a9(0x271)](_0x1026a9(0x1b4),{'type':_0x1026a9(0x27c),'description':_0x1026a9(0x1b5)})['option']('model',{'type':'string','hidden':!![]})['option'](_0x18086f[_0x1026a9(0x268)],{'type':_0x18086f['HvZCv'],'hidden':!![],'default':![]})['option'](_0x18086f['eeaWW'],{'type':_0x18086f[_0x1026a9(0x273)],'hidden':!![],'choices':[_0x18086f[_0x1026a9(0x193)],_0x18086f[_0x1026a9(0x15c)],_0x1026a9(0x254),_0x18086f['qUCrt'],_0x1026a9(0x1d9)]});},async _0x41cd62=>{await runGoCommand(_0x41cd62,!![]);})['command'](_0x238674(0x233),![],_0x19447f=>{const _0x22c1f9=_0x238674,_0xe707a5={'hloSv':_0x22c1f9(0x249),'Tgqiw':'boolean','HeELD':_0x22c1f9(0x24a),'xDXaf':'skip-auth','ubEJl':_0x22c1f9(0x24f)};return _0x19447f[_0x22c1f9(0x17b)](_0xe707a5['hloSv'],{'type':'string','description':_0x22c1f9(0x15e),'demandOption':!![]})['option']('ci',{'type':_0xe707a5['Tgqiw'],'description':_0xe707a5['HeELD'],'default':![]})[_0x22c1f9(0x271)](_0xe707a5[_0x22c1f9(0x1f3)],{'type':_0xe707a5['Tgqiw'],'description':_0xe707a5['ubEJl'],'default':![]});},async _0x1e55bd=>{const _0x204f21=_0x238674,_0x1bd78b={'awtnl':'ranger\x20add\x20env','lmkOE':'add\x20env'};warnRenamed(_0x1bd78b['awtnl'],'ranger\x20profile\x20add'),await withTelemetry(_0x1bd78b[_0x204f21(0x158)],_0x468313=>addEnv(_0x1e55bd[_0x204f21(0x249)],{'ci':_0x1e55bd['ci'],'skipAuth':_0x1e55bd['skip-auth']},_0x468313));})['command']('use\x20<env-name>',![],_0x3a4050=>{const _0x3f62e7=_0x238674,_0x3868d1={'dVBsN':'string'};return _0x3a4050['positional'](_0x3f62e7(0x249),{'type':_0x3868d1[_0x3f62e7(0x1af)],'description':_0x3f62e7(0x203),'demandOption':!![]});},async _0x72ef7b=>{const _0x1f8e06=_0x238674,_0x23e0cf={'KJlBF':_0x1f8e06(0x1d8)};warnRenamed(_0x23e0cf[_0x1f8e06(0x1e5)],_0x1f8e06(0x14e)),await withTelemetry(_0x1f8e06(0x28c),()=>useEnv(_0x72ef7b[_0x1f8e06(0x249)]));})[_0x238674(0x201)](_0x238674(0x289),![],_0x342b45=>{const _0x323832=_0x238674,_0x143b29={'LgpSq':_0x323832(0x263),'SFnza':_0x323832(0x27c),'awBQz':'key','KNcvd':'ranger\x20config\x20set','PZmIW':'config\x20set','FmCLY':'Environment\x20name','Coakw':'Config\x20key','cLjMG':function(_0x3c3f89,_0x2c3780,_0x30f7b3){return _0x3c3f89(_0x2c3780,_0x30f7b3);},'mVuoS':function(_0x173e9f,_0x43c5df,_0x5d3fb4){return _0x173e9f(_0x43c5df,_0x5d3fb4);},'HMJUT':_0x323832(0x251),'mYjya':'Config\x20key\x20to\x20remove','Dllnj':'ranger\x20config\x20unset','fHVFg':_0x323832(0x261),'pWACR':'set\x20<env>\x20<key>\x20<value>','QQlKX':'You\x20must\x20specify\x20a\x20config\x20subcommand'};return _0x342b45['command'](_0x143b29['pWACR'],![],_0x1c8d3b=>{const _0x33da6f=_0x323832;return _0x1c8d3b[_0x33da6f(0x17b)](_0x143b29[_0x33da6f(0x171)],{'type':_0x143b29[_0x33da6f(0x230)],'description':'Environment\x20name','demandOption':!![]})[_0x33da6f(0x17b)](_0x143b29['awBQz'],{'type':_0x143b29['SFnza'],'description':'Config\x20key\x20(e.g.,\x20userAgent,\x20header.X-Custom)','demandOption':!![]})[_0x33da6f(0x17b)]('value',{'type':_0x143b29[_0x33da6f(0x230)],'description':_0x33da6f(0x1ec),'demandOption':!![]});},async _0x2ff3df=>{const _0x10b10d=_0x323832;warnRenamed(_0x143b29['KNcvd'],'ranger\x20profile\x20config\x20set'),await withTelemetry(_0x143b29['PZmIW'],()=>configSet(_0x2ff3df['env'],_0x2ff3df['key'],_0x2ff3df[_0x10b10d(0x1b3)]));})['command']('get\x20<env>\x20<key>',![],_0x111306=>{const _0x268023=_0x323832;return _0x111306['positional'](_0x268023(0x263),{'type':_0x143b29['SFnza'],'description':_0x143b29[_0x268023(0x20d)],'demandOption':!![]})['positional']('key',{'type':_0x143b29['SFnza'],'description':_0x143b29['Coakw'],'demandOption':!![]});},async _0x5ea9d1=>{const _0x204267=_0x323832;_0x143b29['cLjMG'](warnRenamed,'ranger\x20config\x20get',_0x204267(0x216)),await _0x143b29['mVuoS'](withTelemetry,'config\x20get',()=>configGet(_0x5ea9d1['env'],_0x5ea9d1['key']));})['command']('list\x20<env>',![],_0xb03c88=>{const _0x131fda=_0x323832;return _0xb03c88[_0x131fda(0x17b)](_0x131fda(0x263),{'type':'string','description':_0x143b29['FmCLY'],'demandOption':!![]});},async _0x2b63bc=>{const _0x57341e=_0x323832;warnRenamed(_0x143b29[_0x57341e(0x195)],_0x57341e(0x292)),await _0x143b29[_0x57341e(0x1c5)](withTelemetry,'config\x20list',()=>configList(_0x2b63bc[_0x57341e(0x263)]));})['command']('unset\x20<env>\x20<key>',![],_0x2fa019=>{const _0x3ef5f3=_0x323832;return _0x2fa019[_0x3ef5f3(0x17b)]('env',{'type':_0x3ef5f3(0x27c),'description':_0x143b29['FmCLY'],'demandOption':!![]})['positional'](_0x143b29['awBQz'],{'type':'string','description':_0x143b29[_0x3ef5f3(0x209)],'demandOption':!![]});},async _0x93bbda=>{const _0x41140d=_0x323832;_0x143b29[_0x41140d(0x1c5)](warnRenamed,_0x143b29[_0x41140d(0x25d)],_0x41140d(0x152)),await withTelemetry(_0x143b29['fHVFg'],()=>configUnset(_0x93bbda[_0x41140d(0x263)],_0x93bbda[_0x41140d(0x14b)]));})['demandCommand'](0x1,_0x143b29['QQlKX']);})['command']('env',![],_0x213050=>{const _0x254367=_0x238674,_0x3355d8={'LTnxQ':function(_0x1c6d5f,_0x6da297,_0x3b85cb){return _0x1c6d5f(_0x6da297,_0x3b85cb);},'GSfMK':'ranger\x20profile\x20ls','yBFFT':_0x254367(0x249),'AEQVv':_0x254367(0x1e4),'ecTYD':'ranger\x20env\x20update','GKMxj':function(_0xe07db4,_0x4f7977,_0x4b6425){return _0xe07db4(_0x4f7977,_0x4b6425);},'NkBIf':_0x254367(0x236)};return _0x213050[_0x254367(0x201)]('ls',![],()=>{},async()=>{const _0x337500=_0x254367;_0x3355d8['LTnxQ'](warnRenamed,_0x337500(0x1d5),_0x3355d8[_0x337500(0x176)]),await withTelemetry('env\x20list',()=>envList());})[_0x254367(0x201)]('update\x20<env-name>',![],_0x1b171f=>{const _0x1da441=_0x254367;return _0x1b171f['positional'](_0x3355d8[_0x1da441(0x1eb)],{'type':_0x1da441(0x27c),'description':_0x3355d8['AEQVv'],'demandOption':!![]});},async _0x215d3f=>{const _0x15d12d=_0x254367;warnRenamed(_0x3355d8['ecTYD'],'ranger\x20profile\x20update'),await _0x3355d8['GKMxj'](withTelemetry,_0x15d12d(0x287),_0x22d482=>updateEnv(_0x215d3f['env-name'],_0x22d482));})['demandCommand'](0x1,_0x3355d8['NkBIf']);})['command'](_0x238674(0x16a),![],_0x1b3505=>{const _0x719ed6=_0x238674,_0x3b50fd={'fKhBD':_0x719ed6(0x21f),'UpfTI':_0x719ed6(0x18d),'FNNTA':_0x719ed6(0x27c),'Gbhwo':_0x719ed6(0x28d),'DgnJl':_0x719ed6(0x17d),'INAyE':_0x719ed6(0x1d7),'QQbgz':function(_0x69e86b,_0x49c0b4,_0x5e3aea,_0x4eb012){return _0x69e86b(_0x49c0b4,_0x5e3aea,_0x4eb012);},'HMHGQ':'ranger\x20create','efuKZ':_0x719ed6(0x23d),'mhrDg':_0x719ed6(0x14f),'BtfPT':_0x719ed6(0x22e),'ezMri':'number','bANvA':'offset','gKKMA':'Number\x20of\x20feature\x20reviews\x20to\x20skip','hBqXN':_0x719ed6(0x223),'GWjdj':'Include\x20soft-deleted\x20feature\x20reviews','PzmpO':'ranger\x20feature\x20list','QPGQX':_0x719ed6(0x23e),'UtlEt':function(_0x29084b,_0x53c5f9,_0x5458b5){return _0x29084b(_0x53c5f9,_0x5458b5);},'uLLTq':_0x719ed6(0x22f),'HPTLU':'feature\x20show','mDMXM':'Feature\x20review\x20ID\x20(optional\x20-\x20bypasses\x20search/prompt)','EFcpc':'ranger\x20feature\x20resume','LlVZi':function(_0x25837c,_0x4597ba,_0x104f58){return _0x25837c(_0x4597ba,_0x104f58);},'cavrP':'description','RjkWc':'Scenario\x20description','ZQeCg':_0x719ed6(0x279),'SzDrp':_0x719ed6(0x1e1),'WOCpY':'ranger\x20feature\x20get-feedback','ybinZ':function(_0x46b40d,_0x435c4c,_0x344d52){return _0x46b40d(_0x435c4c,_0x344d52);},'cdUam':_0x719ed6(0x183),'hMoti':function(_0x2d11dc,_0x18d4d0,_0x21eb2b){return _0x2d11dc(_0x18d4d0,_0x21eb2b);},'fYfrv':'ranger\x20delete','hHgSq':'feature\x20restore','GLlvu':_0x719ed6(0x1db),'hMEix':_0x719ed6(0x1c0),'Lguyh':'resume\x20[id]','zQQJX':'You\x20must\x20specify\x20a\x20feature\x20review\x20subcommand'};return _0x1b3505[_0x719ed6(0x201)]('create\x20<name>',![],_0x52ab2b=>{const _0x371320=_0x719ed6;return _0x52ab2b[_0x371320(0x17b)](_0x3b50fd['fKhBD'],{'type':'string','description':_0x3b50fd['UpfTI'],'demandOption':!![]})[_0x371320(0x271)](_0x371320(0x227),{'type':_0x3b50fd['FNNTA'],'alias':'d','description':_0x3b50fd[_0x371320(0x1f1)]})['option']('checklist',{'type':_0x3b50fd[_0x371320(0x25c)],'alias':'c','description':_0x371320(0x284)})['option'](_0x3b50fd[_0x371320(0x1a4)],{'type':_0x371320(0x17d),'hidden':!![]});},async _0x31aecd=>{const _0x3e4c22=_0x719ed6;warnRenamed('ranger\x20feature\x20create','ranger\x20create'),_0x3b50fd[_0x3e4c22(0x18e)](warnFlagRenamed,_0x3b50fd['HMHGQ'],_0x3b50fd[_0x3e4c22(0x19c)],_0x3b50fd['mhrDg']);const _0x2b6714=_0x31aecd['scenario']||_0x31aecd['checklist'];await withTelemetry(_0x3b50fd[_0x3e4c22(0x219)],()=>featureCreate(_0x31aecd['name'],{'description':_0x31aecd['description'],'scenarios':_0x2b6714}));})['command'](_0x3b50fd[_0x719ed6(0x179)],![],_0x35a595=>{const _0xe5a2dd=_0x719ed6;return _0x35a595['option']('current-branch',{'type':'boolean','description':_0xe5a2dd(0x26a)})['option']('limit',{'type':_0x3b50fd['ezMri'],'alias':'l','description':'Maximum\x20number\x20of\x20feature\x20reviews\x20to\x20return','default':0xa})[_0xe5a2dd(0x271)](_0x3b50fd[_0xe5a2dd(0x155)],{'type':_0xe5a2dd(0x1ca),'alias':'o','description':_0x3b50fd['gKKMA'],'default':0x0})['option'](_0x3b50fd['hBqXN'],{'type':_0xe5a2dd(0x1d3),'alias':'d','description':_0x3b50fd[_0xe5a2dd(0x28b)],'default':![]});},async _0x535b3b=>{const _0x10ef3b=_0x719ed6;warnRenamed(_0x3b50fd[_0x10ef3b(0x16e)],'ranger\x20list'),await withTelemetry(_0x3b50fd['QPGQX'],()=>featureList({'currentBranch':_0x535b3b[_0x10ef3b(0x1bf)],'limit':_0x535b3b[_0x10ef3b(0x248)],'offset':_0x535b3b[_0x10ef3b(0x281)],'includeDeleted':_0x535b3b[_0x10ef3b(0x223)]}));})['command'](_0x3b50fd[_0x719ed6(0x210)],![],_0x6349e8=>{const _0x4deee1=_0x719ed6;return _0x6349e8['positional']('id',{'type':_0x3b50fd['FNNTA'],'description':_0x4deee1(0x29b)});},async _0x112011=>{const _0x404700=_0x719ed6;_0x3b50fd[_0x404700(0x198)](warnRenamed,_0x3b50fd[_0x404700(0x1f6)],_0x404700(0x25a)),await _0x3b50fd[_0x404700(0x198)](withTelemetry,_0x3b50fd[_0x404700(0x21e)],()=>featureShow(_0x112011['id']));})[_0x719ed6(0x201)](_0x3b50fd['Lguyh'],![],_0x2986a9=>{const _0x49854b=_0x719ed6;return _0x2986a9[_0x49854b(0x17b)]('id',{'type':'string','description':_0x3b50fd[_0x49854b(0x1bd)]});},async _0x32b624=>{const _0xc6d48d=_0x719ed6;warnRenamed(_0x3b50fd['EFcpc'],'ranger\x20resume'),await _0x3b50fd[_0xc6d48d(0x28a)](withTelemetry,'feature\x20resume',()=>featureResume(_0x32b624['id']));})['command'](_0x719ed6(0x1a9),![],_0x58ee38=>{const _0x1a8c15=_0x719ed6;return _0x58ee38[_0x1a8c15(0x17b)](_0x3b50fd[_0x1a8c15(0x24b)],{'type':'string','description':_0x3b50fd[_0x1a8c15(0x2a4)],'demandOption':!![]})['option']('id',{'type':_0x1a8c15(0x27c),'description':_0x3b50fd['ZQeCg']});},async _0x1bdfdc=>{const _0x561455=_0x719ed6;warnRenamed(_0x3b50fd[_0x561455(0x28e)],'ranger\x20add-scenario'),await withTelemetry('feature\x20add-checklist-item',()=>featureAddScenario(_0x1bdfdc[_0x561455(0x227)],_0x1bdfdc['id']));})[_0x719ed6(0x201)](_0x719ed6(0x280),![],_0x24c726=>{const _0x2beb85=_0x719ed6;return _0x24c726['positional']('id',{'type':'string','description':_0x3b50fd[_0x2beb85(0x215)]});},async _0x166815=>{warnRenamed(_0x3b50fd['WOCpY'],'ranger\x20get-review'),await _0x3b50fd['ybinZ'](withTelemetry,_0x3b50fd['cdUam'],()=>featureGetReview(_0x166815['id']));})['command'](_0x719ed6(0x1a6),![],_0x519a3e=>{const _0x2c063d=_0x719ed6;return _0x519a3e[_0x2c063d(0x17b)]('id',{'type':'string','description':'Feature\x20review\x20ID'});},async _0x33a19f=>{const _0x2a0411=_0x719ed6;_0x3b50fd['hMoti'](warnRenamed,'ranger\x20feature\x20delete',_0x3b50fd['fYfrv']),await withTelemetry(_0x2a0411(0x27a),()=>featureDelete(_0x33a19f['id']));})['command']('restore\x20<id>',![],_0x39e142=>{const _0x19ebf9=_0x719ed6;return _0x39e142[_0x19ebf9(0x17b)]('id',{'type':_0x19ebf9(0x27c),'description':'Feature\x20review\x20ID\x20to\x20restore','demandOption':!![]});},async _0xcc945d=>{const _0x38697e=_0x719ed6;warnRenamed('ranger\x20feature\x20restore',_0x38697e(0x180)),await withTelemetry(_0x3b50fd['hHgSq'],()=>featureRestore(_0xcc945d['id']));})[_0x719ed6(0x1cc)](0x1,_0x3b50fd[_0x719ed6(0x1ed)]);})['command'](_0x238674(0x297),![],_0x2922f4=>{const _0x476ce8=_0x238674,_0xbe294e={'ugkzk':_0x476ce8(0x16f),'wZgDQ':_0x476ce8(0x244),'KSpMi':'hook:enable','FRVfB':_0x476ce8(0x27c),'CrUir':function(_0x1072ba,_0x3348f3,_0x388d10){return _0x1072ba(_0x3348f3,_0x388d10);},'ILsna':_0x476ce8(0x1cb),'lfQQh':'disable','vBMbY':'Disable\x20Ranger\x20hooks\x20for\x20this\x20session','OiEFj':_0x476ce8(0x21f)};return _0x2922f4[_0x476ce8(0x201)](_0xbe294e[_0x476ce8(0x20f)],_0x476ce8(0x285),_0x31ea71=>{const _0x5ce5eb=_0x476ce8;return _0x31ea71['option'](_0xbe294e[_0x5ce5eb(0x1c7)],{'type':'string','description':_0xbe294e[_0x5ce5eb(0x199)]});},async _0x2286e2=>{const _0x246939=_0x476ce8;await withTelemetry(_0xbe294e[_0x246939(0x15b)],()=>hook(_0x246939(0x1cb),_0x2286e2['session-id']));})[_0x476ce8(0x201)](_0xbe294e['lfQQh'],_0xbe294e['vBMbY'],_0x497d5c=>{const _0x47755b=_0x476ce8;return _0x497d5c[_0x47755b(0x271)](_0xbe294e[_0x47755b(0x1c7)],{'type':_0xbe294e[_0x47755b(0x1d6)],'description':_0xbe294e['wZgDQ']});},async _0x4c7f0a=>{const _0x2bdef8=_0x476ce8;await _0xbe294e['CrUir'](withTelemetry,'hook:disable',()=>hook(_0x2bdef8(0x21d),_0x4c7f0a['session-id']));})['option'](_0xbe294e[_0x476ce8(0x16b)],{'type':_0xbe294e['FRVfB'],'description':'Hook\x20name\x20(session-start,\x20pre-compact,\x20post-edit,\x20etc.)'})[_0x476ce8(0x271)](_0xbe294e['ugkzk'],{'type':_0x476ce8(0x27c),'description':_0xbe294e['wZgDQ']});},async _0x2663a5=>{const _0x9cc684=_0x238674,_0x1c847d={'RreCa':function(_0x4de7c8,_0x187670,_0x3b360f){return _0x4de7c8(_0x187670,_0x3b360f);},'YvGaM':_0x9cc684(0x16f)};_0x2663a5['name']&&await _0x1c847d[_0x9cc684(0x258)](hook,_0x2663a5['name'],_0x2663a5[_0x1c847d[_0x9cc684(0x252)]]);})['demandCommand'](0x1,_0x238674(0x157))['strictCommands']()['fail'](async(_0x3fcec9,_0x17b5d4,_0x3f8ddf)=>{const _0x5a9751=_0x238674,_0x48f1b2={'ZFbiV':function(_0x47fc31,_0x5c0448){return _0x47fc31(_0x5c0448);},'FZLzr':'Unknown\x20command','ahqUL':function(_0x3fdd9f,_0x13df6d){return _0x3fdd9f(_0x13df6d);},'plgQp':function(_0x171391,_0x576dd3){return _0x171391||_0x576dd3;}},_0x2a866e=_0x48f1b2[_0x5a9751(0x1d4)](sanitizeArgs,process[_0x5a9751(0x2a0)][_0x5a9751(0x228)](0x2)),_0x529ef1=getErrorType(_0x3fcec9,_0x17b5d4);if(_0x3fcec9&&_0x3fcec9[_0x5a9751(0x2a3)](_0x48f1b2[_0x5a9751(0x20a)])){const _0x9f9202=process['argv'][0x2];console['error']('\x0aUnknown\x20command:\x20'+_0x9f9202),console[_0x5a9751(0x298)]('Run\x20\x22ranger\x20--help\x22\x20to\x20see\x20available\x20commands.\x0a');}else{if(_0x3fcec9)console[_0x5a9751(0x298)]('\x0a'+_0x3fcec9+'\x0a');else _0x17b5d4&&console['error'](_0x5a9751(0x1b7)+_0x17b5d4[_0x5a9751(0x246)]+'\x0a');}await _0x48f1b2['ahqUL'](logDesirePath,{'rawCommand':_0x2a866e,'errorMessage':_0x3fcec9||_0x17b5d4?.['message'],'errorType':_0x529ef1});const _0x3c6566=getCurrentCollector();_0x3c6566&&await _0x3c6566['trackCommandError'](_0x17b5d4||new Error(_0x48f1b2['plgQp'](_0x3fcec9,_0x5a9751(0x265)))),process[_0x5a9751(0x177)](0x1);})['epilogue']('Documentation:\x0a'+'\x20\x20https://docs.ranger.net\x0a'+_0x238674(0x194))[_0x238674(0x15d)]()['alias']('help','h')['parse']();
|
package/build/commands/addEnv.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xa268(){const _0x522b71=['Invalid\x20URL','mUNpH','continue','5128186wdxgfb','--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.','WfPXI','3726MPJLYN','HCqBS','McHMG','rzURa','launch','Continue\x20anyway','local','--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','KBpad','RvtXo','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','1510362QHOMat','5410msIFps','stdin','\x22\x20already\x20exists.\x20Overwrite?','Enter\x20a\x20different\x20URL','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','\x0a📋\x20Authentication\x20Setup','uwVQn','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','50xMebEd','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','Uqouk','TypeError','prompt','message','baseUrl','trackPhaseEnd','Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.','Could\x20not\x20reach\x20','HRKJL','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','catch','\x0a\x20\x20Could\x20not\x20reach\x20','tJebU','kOIdT','browser_auth','✓\x20Auth\x20state\x20saved\x20to:\x20','location','retry','\x22\x20configured','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','mgdfU','NoFcp','\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','494877kmZKJS','Use\x20','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','path','Saving\x20authentication\x20state...','What\x20would\x20you\x20like\x20to\x20do?','930645eaVouj','✓\x20Created\x20settings:\x20','trackPhaseStart','3138496AAzmxk','url','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','HaLcO','.backup-','config_write','SxSUi','\x20would\x20shadow\x20the\x20existing\x20profile.','force','Aborted.','log','error','manual','183402WSMysB','url_setup','\x20(continuing\x20with\x20--force)','12MotrUe','newPage','yYjpl','ixKcc','.enc','piBzz','stdout','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','NCcfS','confirm','OyFXN','status','VcqpP','close','qNDiP','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','wUoSA','cdpEndpoint','isProtocolError','WFJBG','vfsbc','ikdbS','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'];_0xa268=function(){return _0x522b71;};return _0xa268();}(function(_0x9adc7a,_0x23c3f8){const _0x1445d3=_0x20e1,_0x3b22cc=_0x9adc7a();while(!![]){try{const _0x57c651=parseInt(_0x1445d3(0x1fe))/0x1+parseInt(_0x1445d3(0x22a))/0x2+parseInt(_0x1445d3(0x24e))/0x3*(-parseInt(_0x1445d3(0x201))/0x4)+parseInt(_0x1445d3(0x22b))/0x5*(-parseInt(_0x1445d3(0x21e))/0x6)+parseInt(_0x1445d3(0x21b))/0x7+parseInt(_0x1445d3(0x1f1))/0x8+-parseInt(_0x1445d3(0x254))/0x9*(parseInt(_0x1445d3(0x234))/0xa);if(_0x57c651===_0x23c3f8)break;else _0x3b22cc['push'](_0x3b22cc['shift']());}catch(_0x488eac){_0x3b22cc['push'](_0x3b22cc['shift']());}}}(_0xa268,0x5cb15));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x56d22c 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(_0x3149c0){const _0x53ce32=_0x20e1,_0x387f2d={'RvtXo':function(_0x556230,_0x24dbbd,_0x327a55){return _0x556230(_0x24dbbd,_0x327a55);},'VuMFL':_0x53ce32(0x1fd),'RxJCj':function(_0x462555,_0x25baf3){return _0x462555(_0x25baf3);},'HCqBS':function(_0x3fa889,_0xcf8196){return _0x3fa889<_0xcf8196;},'HcePm':function(_0x4fa975,_0x439e00){return _0x4fa975(_0x439e00);},'WfPXI':_0x53ce32(0x218),'vfsbc':function(_0x469239,_0x6d150c){return _0x469239===_0x6d150c;},'oRoct':'fetch\x20failed'};try{const _0x32f1cb=new AbortController(),_0x2ce009=_0x387f2d['RvtXo'](setTimeout,()=>_0x32f1cb['abort'](),0x1388),_0x1045f4=await _0x387f2d[_0x53ce32(0x227)](fetch,_0x3149c0,{'method':'HEAD','signal':_0x32f1cb['signal'],'redirect':_0x387f2d['VuMFL']});_0x387f2d['RxJCj'](clearTimeout,_0x2ce009);if(_0x387f2d[_0x53ce32(0x21f)](_0x1045f4[_0x53ce32(0x20c)],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x1045f4[_0x53ce32(0x20c)]};}catch(_0x506d1f){const _0xda77fd=_0x506d1f,_0x1c34e7=_0xda77fd[_0x53ce32(0x239)]||_0x387f2d['HcePm'](String,_0x506d1f),_0x698da7=_0x1c34e7['includes'](_0x387f2d[_0x53ce32(0x21d)])||_0x387f2d[_0x53ce32(0x215)](_0xda77fd['name'],_0x53ce32(0x237))||_0x1c34e7['includes'](_0x387f2d['oRoct']);return{'ok':![],'error':_0x1c34e7,'isProtocolError':_0x698da7};}}function _0x20e1(_0x43d4dd,_0x50bea9){_0x43d4dd=_0x43d4dd-0x1ef;const _0xa26890=_0xa268();let _0x20e118=_0xa26890[_0x43d4dd];return _0x20e118;}export async function addEnv(_0x10671a,_0x3ffea6={},_0x367bf1){const _0x2f33b3=_0x20e1,_0x508a61={'GZagd':_0x2f33b3(0x252),'ixKcc':function(_0x3883db){return _0x3883db();},'OyFXN':'close','LaIxW':function(_0x40ab0e,_0x34db8a){return _0x40ab0e===_0x34db8a;},'rzURa':_0x2f33b3(0x24a),'mCAyT':_0x2f33b3(0x225),'nCmGt':function(_0x4ff3b,_0x1d5a45){return _0x4ff3b===_0x1d5a45;},'WFJBG':_0x2f33b3(0x20a),'wUoSA':'overwrite','AAJml':'Aborted.','ikdbS':'root\x20(.ranger/)','HRKJL':_0x2f33b3(0x1ff),'mUNpH':'\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','kOIdT':_0x2f33b3(0x235),'VcqpP':'input','McHMG':_0x2f33b3(0x23a),'yYjpl':_0x2f33b3(0x233),'SxjfC':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','mgdfU':'http://localhost:3000','MArZO':'list','WftXR':_0x2f33b3(0x253),'ECHhc':_0x2f33b3(0x22e),'gvfHT':function(_0x5decba,_0x4bc190){return _0x5decba(_0x4bc190);},'uzTZR':function(_0x5545fa,_0x174ce8,_0x35a027){return _0x5545fa(_0x174ce8,_0x35a027);},'NoFcp':'auth.json','GYvBQ':_0x2f33b3(0x231),'UvLsE':function(_0x88bc1f,_0x1b3bef){return _0x88bc1f(_0x1b3bef);},'GWIwp':function(_0x43cfe7,_0x460540){return _0x43cfe7||_0x460540;},'uwVQn':'about:blank','KBpad':'utf-8','SipXG':_0x2f33b3(0x217),'piBzz':function(_0x17bfe0,_0x3a313a){return _0x17bfe0(_0x3a313a);},'qNDiP':_0x2f33b3(0x23c),'SxSUi':function(_0xbffce5,_0x3065b4,_0x2b572b){return _0xbffce5(_0x3065b4,_0x2b572b);},'NCcfS':function(_0x548d45,_0x11ce49){return _0x548d45+_0x11ce49;},'QEndH':_0x2f33b3(0x250),'HaLcO':_0x2f33b3(0x208),'tJebU':_0x2f33b3(0x244),'UVdaw':'settings.json','Uqouk':function(_0x5eecd2,_0xf99845,_0x2187c6){return _0x5eecd2(_0xf99845,_0x2187c6);},'CwNrE':_0x2f33b3(0x23f),'AvnCu':_0x2f33b3(0x1f6),'qxdEs':function(_0x816e29,_0x509d7d,_0x3381bd){return _0x816e29(_0x509d7d,_0x3381bd);}},_0x387c56=_0x3ffea6['ci']??![],_0x1993a3=_0x387c56?'ci':_0x2f33b3(0x224),_0x416323=join(getRangerDir(),_0x1993a3,_0x10671a),_0x5e06f8=join(_0x508a61[_0x2f33b3(0x204)](getRangerDir),_0x1993a3);if(_0x3ffea6['cdpEndpoint']!==undefined&&_0x508a61['LaIxW'](_0x3ffea6['cdpEndpoint']['trim'](),''))throw new Error(_0x508a61[_0x2f33b3(0x221)]);if(_0x3ffea6[_0x2f33b3(0x212)]&&_0x3ffea6[_0x2f33b3(0x1f2)])throw new Error(_0x508a61['mCAyT']);if(_0x3ffea6['cdpEndpoint']&&_0x3ffea6['ci'])throw new Error(_0x2f33b3(0x21c));const _0x13301d=Boolean(_0x3ffea6[_0x2f33b3(0x212)]),_0x367598=!_0x3ffea6['skipAuth']&&!_0x13301d,_0x532250=process[_0x2f33b3(0x22c)]['isTTY']&&process[_0x2f33b3(0x207)]['isTTY'];if(!_0x532250&&!_0x3ffea6[_0x2f33b3(0x1f2)]&&!_0x13301d)throw new Error(_0x2f33b3(0x228));const _0x524e41=findExistingEnv(_0x10671a);let _0x52b3b0=null;if(_0x524e41){if(!_0x532250)_0x52b3b0=_0x524e41;else{if(_0x508a61['nCmGt'](_0x524e41[_0x2f33b3(0x246)],_0x1993a3)){const {overwrite:_0x5584cf}=await _0x56d22c['prompt']([{'type':_0x508a61[_0x2f33b3(0x214)],'name':_0x508a61[_0x2f33b3(0x211)],'message':'Profile\x20\x22'+_0x10671a+_0x2f33b3(0x22d),'default':![]}]);if(!_0x5584cf){console['log'](_0x508a61['AAJml']);return;}_0x52b3b0=_0x524e41;}else{const _0x2f3793=_0x524e41[_0x2f33b3(0x246)]==='legacy'?_0x508a61[_0x2f33b3(0x216)]:_0x524e41[_0x2f33b3(0x246)];console['error']('\x0a⚠️\x20\x20Profile\x20\x22'+_0x10671a+'\x22\x20already\x20exists\x20in\x20'+_0x2f3793+':\x20'+_0x524e41[_0x2f33b3(0x251)]),console['error']('\x20\x20\x20Creating\x20it\x20in\x20'+_0x1993a3+_0x2f33b3(0x1f8));const {shouldReplace:_0x23cfc3}=await _0x56d22c[_0x2f33b3(0x238)]([{'type':_0x2f33b3(0x20a),'name':'shouldReplace','message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x1993a3+'?','default':![]}]);if(!_0x23cfc3){console[_0x2f33b3(0x1fb)](_0x2f33b3(0x1fa));return;}_0x52b3b0=_0x524e41;}}}_0x367bf1?.['trackPhaseStart'](_0x508a61[_0x2f33b3(0x23e)]);let _0x58671d='';if(_0x13301d)console[_0x2f33b3(0x1fb)](_0x2f33b3(0x230)),console['log'](_0x2f33b3(0x1f3)+_0x3ffea6[_0x2f33b3(0x212)]),console['log'](_0x508a61[_0x2f33b3(0x219)]);else{if(_0x3ffea6[_0x2f33b3(0x1f2)]){_0x58671d=_0x3ffea6['url'];const _0x6fbc43=await checkUrlReachability(_0x58671d);if(!_0x6fbc43['ok']&&!_0x3ffea6['force'])throw new Error(_0x2f33b3(0x23d)+_0x58671d+':\x20'+_0x6fbc43[_0x2f33b3(0x1fc)]+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x6fbc43['ok']&&_0x3ffea6[_0x2f33b3(0x1f9)]&&console[_0x2f33b3(0x1fb)]('⚠\x20Could\x20not\x20reach\x20'+_0x58671d+':\x20'+_0x6fbc43[_0x2f33b3(0x1fc)]+_0x2f33b3(0x200));}else{console[_0x2f33b3(0x1fb)]('\x0a🌐\x20Profile\x20Setup\x0a'),console[_0x2f33b3(0x1fb)](_0x2f33b3(0x22f)),console['log'](_0x508a61[_0x2f33b3(0x243)]);let _0x593ac2=![];while(!![]){const _0x5b3787=await _0x56d22c[_0x2f33b3(0x238)]([{'type':_0x508a61[_0x2f33b3(0x20d)],'name':_0x508a61[_0x2f33b3(0x220)],'message':_0x593ac2?_0x508a61[_0x2f33b3(0x203)]:_0x508a61['SxjfC'],'default':_0x58671d||_0x508a61[_0x2f33b3(0x24b)]}]);_0x58671d=_0x5b3787['baseUrl'];const _0x46477b=await checkUrlReachability(_0x58671d);if(_0x46477b['ok'])break;const _0x5bd5ef=/^[a-zA-Z][\w+.-]*:\/\//['test'](_0x58671d),_0x4ff905=_0x46477b[_0x2f33b3(0x213)]&&!_0x5bd5ef,_0x5fc0f2=_0x4ff905?'http://'+_0x58671d:null;_0x593ac2=!![],console['log'](_0x2f33b3(0x241)+_0x58671d+':\x20'+_0x46477b[_0x2f33b3(0x1fc)]);_0x5fc0f2&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x5fc0f2+'?');const {action:_0x5af2de}=await _0x56d22c[_0x2f33b3(0x238)]([{'type':_0x508a61['MArZO'],'name':'action','message':_0x508a61['WftXR'],'choices':[..._0x5fc0f2?[{'name':_0x2f33b3(0x24f)+_0x5fc0f2,'value':'use_suggestion'}]:[],{'name':_0x508a61['ECHhc'],'value':_0x2f33b3(0x247)},{'name':_0x2f33b3(0x223),'value':'continue'}]}]);if(_0x5af2de==='use_suggestion'&&_0x5fc0f2){_0x58671d=_0x5fc0f2;const _0x2119f8=await _0x508a61['gvfHT'](checkUrlReachability,_0x58671d);if(_0x2119f8['ok'])break;console[_0x2f33b3(0x1fb)](_0x2f33b3(0x249)+_0x58671d+':\x20'+_0x2119f8[_0x2f33b3(0x1fc)]);}else{if(_0x508a61['nCmGt'](_0x5af2de,_0x2f33b3(0x21a)))break;}}}}_0x367bf1?.[_0x2f33b3(0x23b)]('url_setup'),await mkdir(_0x5e06f8,{'recursive':!![]});const _0x2e511c=await mkdtemp(_0x508a61['uzTZR'](join,_0x5e06f8,'.tmp-'+_0x10671a+'-')),_0xbbea5=_0x508a61['uzTZR'](join,_0x2e511c,_0x508a61[_0x2f33b3(0x24c)]);try{if(_0x367598){_0x367bf1?.['trackPhaseStart'](_0x2f33b3(0x244)),console[_0x2f33b3(0x1fb)](_0x508a61['GYvBQ']),console[_0x2f33b3(0x1fb)](_0x2f33b3(0x24d)),console['log'](_0x2f33b3(0x210));!_0x532250?(console['log']('\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log']('\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a')):console[_0x2f33b3(0x1fb)]('');await new Promise(_0x1787cc=>setTimeout(_0x1787cc,0xbb8));const _0x3ccf77=await chromium[_0x2f33b3(0x222)]({'headless':![]});try{const _0x23c7de=await _0x3ccf77['newContext']();await _0x508a61['UvLsE'](addProfileSetupBanner,_0x23c7de);const _0x3a133d=await _0x23c7de[_0x2f33b3(0x202)]();await _0x3a133d['goto'](_0x508a61['GWIwp'](_0x58671d,_0x508a61[_0x2f33b3(0x232)])),await new Promise(_0x4ae5d7=>{const _0x4d88e2=_0x2f33b3;_0x3a133d['on'](_0x508a61[_0x4d88e2(0x20b)],async()=>{const _0x54e895=_0x4d88e2;try{console['log'](_0x508a61['GZagd']),await _0x23c7de['storageState']({'path':_0xbbea5});}catch{}_0x508a61[_0x54e895(0x204)](_0x4ae5d7);});});}finally{await _0x3ccf77[_0x2f33b3(0x20e)]()[_0x2f33b3(0x240)](()=>{});}if(_0x387c56){const _0x416727=await readFile(_0xbbea5,_0x508a61[_0x2f33b3(0x226)]),_0x252694=await getToken();if(!_0x252694){console[_0x2f33b3(0x1fc)](_0x508a61['SipXG']),await _0x508a61[_0x2f33b3(0x206)](unlink,_0xbbea5)[_0x2f33b3(0x240)](()=>{});throw new Error(_0x508a61[_0x2f33b3(0x20f)]);}else{const _0x44b2f5=encrypt(_0x416727,_0x252694);await _0x508a61[_0x2f33b3(0x1f7)](writeFile,_0x508a61[_0x2f33b3(0x209)](_0xbbea5,'.enc'),_0x44b2f5),await _0x508a61['piBzz'](unlink,_0xbbea5),console['log']('✓\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0xbbea5+_0x2f33b3(0x205)),console['log'](_0x508a61['QEndH']),console[_0x2f33b3(0x1fb)](_0x508a61[_0x2f33b3(0x1f4)]);}}else console['log'](_0x2f33b3(0x245)+_0xbbea5);_0x367bf1?.[_0x2f33b3(0x23b)](_0x508a61[_0x2f33b3(0x242)]);}_0x367bf1?.[_0x2f33b3(0x1f0)]('config_write');const _0x11245a={};_0x58671d&&(_0x11245a[_0x2f33b3(0x23a)]=_0x58671d);_0x3ffea6['cdpEndpoint']&&(_0x11245a[_0x2f33b3(0x212)]=_0x3ffea6['cdpEndpoint'],_0x11245a['isElectron']=!![]);await writeFile(_0x508a61['SxSUi'](join,_0x2e511c,'settings.json'),JSON['stringify'](_0x11245a,null,0x2)),console[_0x2f33b3(0x1fb)](_0x2f33b3(0x1ef)+join(_0x416323,_0x508a61['UVdaw']));if(_0x52b3b0?.[_0x2f33b3(0x246)]===_0x1993a3){const _0x21084d=_0x52b3b0[_0x2f33b3(0x251)]+_0x2f33b3(0x1f5)+Date['now']();await rename(_0x52b3b0['path'],_0x21084d);try{await _0x508a61[_0x2f33b3(0x1f7)](rename,_0x2e511c,_0x416323);}catch(_0x3f9ab){await rename(_0x21084d,_0x52b3b0['path']);throw _0x3f9ab;}try{await _0x508a61[_0x2f33b3(0x1f7)](rm,_0x21084d,{'recursive':!![]});}catch{console[_0x2f33b3(0x1fb)]('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20'+_0x21084d);}}else{await rename(_0x2e511c,_0x416323);if(_0x52b3b0)try{await _0x508a61[_0x2f33b3(0x236)](rm,_0x52b3b0[_0x2f33b3(0x251)],{'recursive':!![]}),console[_0x2f33b3(0x1fb)]('Removed\x20existing\x20profile\x20at\x20'+_0x52b3b0[_0x2f33b3(0x251)]);}catch{console['log']('Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20'+_0x52b3b0['path']);}}try{await writeActiveProfileName(_0x10671a),console['log'](_0x2f33b3(0x229)+_0x10671a);}catch{console[_0x2f33b3(0x1fb)](_0x508a61['CwNrE']);}_0x367bf1?.[_0x2f33b3(0x23b)](_0x508a61['AvnCu']),console[_0x2f33b3(0x1fb)]('\x0a\x20\x20Profile\x20\x22'+_0x10671a+_0x2f33b3(0x248));}catch(_0xf3a399){await _0x508a61['qxdEs'](rm,_0x2e511c,{'recursive':!![],'force':!![]});throw _0xf3a399;}}
|
|
1
|
+
(function(_0x1cb8d7,_0x401a93){const _0x5dee93=_0x5b03,_0x5d8638=_0x1cb8d7();while(!![]){try{const _0x6e074f=-parseInt(_0x5dee93(0x113))/0x1*(-parseInt(_0x5dee93(0xeb))/0x2)+parseInt(_0x5dee93(0xc6))/0x3+-parseInt(_0x5dee93(0xe4))/0x4+parseInt(_0x5dee93(0xd7))/0x5*(parseInt(_0x5dee93(0x10d))/0x6)+parseInt(_0x5dee93(0xe6))/0x7*(parseInt(_0x5dee93(0xc4))/0x8)+parseInt(_0x5dee93(0xe3))/0x9*(parseInt(_0x5dee93(0xb7))/0xa)+parseInt(_0x5dee93(0xce))/0xb*(-parseInt(_0x5dee93(0xc2))/0xc);if(_0x6e074f===_0x401a93)break;else _0x5d8638['push'](_0x5d8638['shift']());}catch(_0x38010d){_0x5d8638['push'](_0x5d8638['shift']());}}}(_0x34ad,0x70dac));import{mkdir,writeFile,readFile,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import _0x2e8c39 from'inquirer';import{chromium}from'playwright';import{findExistingEnv}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';function _0x5b03(_0x15194c,_0x29371d){_0x15194c=_0x15194c-0xb5;const _0x34adfb=_0x34ad();let _0x5b0349=_0x34adfb[_0x15194c];return _0x5b0349;}function _0x34ad(){const _0xde10b6=['settings.json','launch','trackPhaseStart','ZhFdd','48RsCNjo','BltUS','1878664JGpVac','local','166839qsSTiE','fHPia','baseUrl','isProtocolError','HkTUD','close','continue','✓\x20Auth\x20state\x20saved\x20to:\x20','1336852ZjwBtN','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','HpGil','Invalid\x20URL','YTjHJ','Enter\x20a\x20different\x20URL','\x0a\x20\x20Profile\x20\x22','✓\x20Encrypted\x20auth\x20saved\x20to:\x20','log','5rHLxqD','\x0a📋\x20Authentication\x20Setup','force','status','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','manual','newContext','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x22\x20already\x20exists.\x20Overwrite?','input','hCbeJ','gDOAO','10917NUqfgG','464308CjCRAc','\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.','7NncSCV','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','confirm','\x0a⚠️\x20\x20Profile\x20\x22','1924MWeJXJ','browser_auth','WtlfH','trackPhaseEnd','stdout','Removed\x20existing\x20profile\x20at\x20','message','cdpEndpoint','bSHeS','path','zUAnY','iJOHW','http://localhost:3000','pNfPP','newPage','\x20\x20Did\x20you\x20mean\x20','prompt','RYBKF','signal','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','catch','lNvBq','ygbVg','test','⚠\x20Could\x20not\x20reach\x20','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','name','What\x20would\x20you\x20like\x20to\x20do?','tyQLz','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','includes','OQeYf','about:blank','130080PYNBzy','isTTY','XHCla','fetch\x20failed','.tmp-','Aborted.','632ZqoSwm','Profile\x20\x22','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','1190TboQOp','CgYKW','AQirH','gFUxB','hcyUN','error','PqnKS'];_0x34ad=function(){return _0xde10b6;};return _0x34ad();}import{getRangerDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';async function checkUrlReachability(_0x4b5399){const _0x4ca59c=_0x5b03,_0x2b1388={'tvYHI':function(_0x4eb15a,_0x4a456b,_0x53ea54){return _0x4eb15a(_0x4a456b,_0x53ea54);},'gDOAO':_0x4ca59c(0xdc),'PvxIJ':function(_0x54d3f8,_0x5c03e3){return _0x54d3f8(_0x5c03e3);},'VQydb':function(_0x537a43,_0x5e3884){return _0x537a43<_0x5e3884;},'PEttp':'TypeError'};try{const _0x2d21fa=new AbortController(),_0x4fd545=_0x2b1388['tvYHI'](setTimeout,()=>_0x2d21fa['abort'](),0x1388),_0x498785=await fetch(_0x4b5399,{'method':'HEAD','signal':_0x2d21fa[_0x4ca59c(0xfd)],'redirect':_0x2b1388[_0x4ca59c(0xe2)]});_0x2b1388['PvxIJ'](clearTimeout,_0x4fd545);if(_0x2b1388['VQydb'](_0x498785[_0x4ca59c(0xda)],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x498785[_0x4ca59c(0xda)]};}catch(_0x38381d){const _0x2176ea=_0x38381d,_0x3e412e=_0x2176ea[_0x4ca59c(0xf1)]||String(_0x38381d),_0x2f2b54=_0x3e412e[_0x4ca59c(0x10a)](_0x4ca59c(0xd1))||_0x2176ea[_0x4ca59c(0x106)]===_0x2b1388['PEttp']||_0x3e412e[_0x4ca59c(0x10a)](_0x4ca59c(0x110));return{'ok':![],'error':_0x3e412e,'isProtocolError':_0x2f2b54};}}export async function addEnv(_0x543265,_0x18a4f8={},_0x396361){const _0x38c9ee=_0x5b03,_0x6c4d13={'ygbVg':function(_0x5c4b9b){return _0x5c4b9b();},'WtlfH':'close','RYBKF':function(_0x1ffc71,_0x27f974,_0x5026b2,_0x373ee6){return _0x1ffc71(_0x27f974,_0x5026b2,_0x373ee6);},'bSHeS':function(_0x3edc49){return _0x3edc49();},'nDrYK':function(_0x413130,_0x31fab4){return _0x413130!==_0x31fab4;},'iJOHW':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','hcyUN':'--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.','tyQLz':_0x38c9ee(0xfe),'gFUxB':function(_0x4474b3,_0x4a95cc){return _0x4474b3(_0x4a95cc);},'CgYKW':_0x38c9ee(0xe9),'VXZHA':_0x38c9ee(0x112),'PXWDI':function(_0x337ea1,_0x2b8bdf){return _0x337ea1===_0x2b8bdf;},'HpGil':'legacy','DafZR':'shouldReplace','YTjHJ':'url_setup','XmQzu':'\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','NMTiT':'\x0a🌐\x20Profile\x20Setup\x0a','tMVdm':'\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','kbRma':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','AQirH':_0x38c9ee(0xc8),'NLqZY':_0x38c9ee(0x109),'Zlcse':_0x38c9ee(0xf7),'OQeYf':'action','RMIVc':_0x38c9ee(0x107),'zUAnY':'use_suggestion','fHPia':_0x38c9ee(0xd3),'RhKkm':_0x38c9ee(0xcc),'XHCla':function(_0x5a1556,_0x256a44){return _0x5a1556===_0x256a44;},'pNfPP':function(_0x53468b,_0x33b454){return _0x53468b(_0x33b454);},'PqnKS':function(_0x43b377,_0xad2beb,_0x21418c){return _0x43b377(_0xad2beb,_0x21418c);},'HkTUD':_0x38c9ee(0xec),'hCbeJ':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','MEbvx':_0x38c9ee(0xe5),'lNvBq':'\x0a\x20\x20\x20⚠\x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','DvETc':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','BltUS':_0x38c9ee(0xdb),'ZhFdd':'config_write'},_0x4eb4a5=_0x18a4f8['ci']??![],_0x5581ee=_0x4eb4a5?'ci':_0x38c9ee(0xc5),_0x4cfce9=_0x6c4d13[_0x38c9ee(0xfc)](join,_0x6c4d13[_0x38c9ee(0xf3)](getRangerDir),_0x5581ee,_0x543265),_0x480553=join(_0x6c4d13[_0x38c9ee(0xf3)](getRangerDir),_0x5581ee);if(_0x6c4d13['nDrYK'](_0x18a4f8[_0x38c9ee(0xf2)],undefined)&&_0x18a4f8[_0x38c9ee(0xf2)]['trim']()==='')throw new Error(_0x38c9ee(0xcf));if(_0x18a4f8[_0x38c9ee(0xf2)]&&_0x18a4f8['url'])throw new Error(_0x6c4d13[_0x38c9ee(0xf6)]);if(_0x18a4f8['cdpEndpoint']&&_0x18a4f8['ci'])throw new Error(_0x6c4d13[_0x38c9ee(0xbb)]);const _0x8424aa=Boolean(_0x18a4f8['cdpEndpoint']),_0x2c5afe=!_0x18a4f8['skipAuth']&&!_0x8424aa,_0xa5adce=process['stdin'][_0x38c9ee(0x10e)]&&process[_0x38c9ee(0xef)][_0x38c9ee(0x10e)];if(!_0xa5adce&&!_0x18a4f8['url']&&!_0x8424aa)throw new Error(_0x6c4d13[_0x38c9ee(0x108)]);const _0x5b6992=_0x6c4d13['gFUxB'](findExistingEnv,_0x543265);let _0x423c27=null;if(_0x5b6992){if(!_0xa5adce)_0x423c27=_0x5b6992;else{if(_0x5b6992['location']===_0x5581ee){const {overwrite:_0x1db4c8}=await _0x2e8c39['prompt']([{'type':_0x6c4d13[_0x38c9ee(0xb8)],'name':'overwrite','message':_0x38c9ee(0xb5)+_0x543265+_0x38c9ee(0xdf),'default':![]}]);if(!_0x1db4c8){console[_0x38c9ee(0xd6)](_0x6c4d13['VXZHA']);return;}_0x423c27=_0x5b6992;}else{const _0x47d94a=_0x6c4d13['PXWDI'](_0x5b6992['location'],_0x6c4d13[_0x38c9ee(0xd0)])?'root\x20(.ranger/)':_0x5b6992['location'];console[_0x38c9ee(0xbc)](_0x38c9ee(0xea)+_0x543265+'\x22\x20already\x20exists\x20in\x20'+_0x47d94a+':\x20'+_0x5b6992['path']),console[_0x38c9ee(0xbc)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x5581ee+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x58de91}=await _0x2e8c39[_0x38c9ee(0xfb)]([{'type':'confirm','name':_0x6c4d13['DafZR'],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x5581ee+'?','default':![]}]);if(!_0x58de91){console['log']('Aborted.');return;}_0x423c27=_0x5b6992;}}}_0x396361?.[_0x38c9ee(0xc0)](_0x6c4d13[_0x38c9ee(0xd2)]);let _0x598d64='';if(_0x8424aa)console['log'](_0x6c4d13['XmQzu']),console[_0x38c9ee(0xd6)](_0x38c9ee(0x105)+_0x18a4f8['cdpEndpoint']),console[_0x38c9ee(0xd6)]('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0x18a4f8['url']){_0x598d64=_0x18a4f8['url'];const _0x53e9cb=await checkUrlReachability(_0x598d64);if(!_0x53e9cb['ok']&&!_0x18a4f8[_0x38c9ee(0xd9)])throw new Error('Could\x20not\x20reach\x20'+_0x598d64+':\x20'+_0x53e9cb[_0x38c9ee(0xbc)]+_0x38c9ee(0xb6));!_0x53e9cb['ok']&&_0x18a4f8[_0x38c9ee(0xd9)]&&console['log'](_0x38c9ee(0x103)+_0x598d64+':\x20'+_0x53e9cb[_0x38c9ee(0xbc)]+'\x20(continuing\x20with\x20--force)');}else{console['log'](_0x6c4d13['NMTiT']),console['log'](_0x6c4d13['tMVdm']),console[_0x38c9ee(0xd6)](_0x6c4d13['kbRma']);let _0x2dbb1f=![];while(!![]){const _0x10888a=await _0x2e8c39[_0x38c9ee(0xfb)]([{'type':_0x38c9ee(0xe0),'name':_0x6c4d13[_0x38c9ee(0xb9)],'message':_0x2dbb1f?_0x6c4d13['NLqZY']:_0x38c9ee(0xe7),'default':_0x598d64||_0x6c4d13['Zlcse']}]);_0x598d64=_0x10888a['baseUrl'];const _0x3eb0b2=await checkUrlReachability(_0x598d64);if(_0x3eb0b2['ok'])break;const _0x4ea619=/^[a-zA-Z][\w+.-]*:\/\//[_0x38c9ee(0x102)](_0x598d64),_0xa707b0=_0x3eb0b2[_0x38c9ee(0xc9)]&&!_0x4ea619,_0xcc4831=_0xa707b0?'http://'+_0x598d64:null;_0x2dbb1f=!![],console[_0x38c9ee(0xd6)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x598d64+':\x20'+_0x3eb0b2[_0x38c9ee(0xbc)]);_0xcc4831&&console[_0x38c9ee(0xd6)](_0x38c9ee(0xfa)+_0xcc4831+'?');const {action:_0x52eed3}=await _0x2e8c39['prompt']([{'type':'list','name':_0x6c4d13[_0x38c9ee(0x10b)],'message':_0x6c4d13['RMIVc'],'choices':[..._0xcc4831?[{'name':'Use\x20'+_0xcc4831,'value':_0x6c4d13[_0x38c9ee(0xf5)]}]:[],{'name':_0x6c4d13[_0x38c9ee(0xc7)],'value':'retry'},{'name':'Continue\x20anyway','value':_0x6c4d13['RhKkm']}]}]);if(_0x52eed3===_0x6c4d13[_0x38c9ee(0xf5)]&&_0xcc4831){_0x598d64=_0xcc4831;const _0x3a8f60=await _0x6c4d13['gFUxB'](checkUrlReachability,_0x598d64);if(_0x3a8f60['ok'])break;console['log']('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0x598d64+':\x20'+_0x3a8f60['error']);}else{if(_0x6c4d13[_0x38c9ee(0x10f)](_0x52eed3,_0x6c4d13['RhKkm']))break;}}}}_0x396361?.[_0x38c9ee(0xee)](_0x6c4d13['YTjHJ']),await mkdir(_0x480553,{'recursive':!![]});const _0x117691=await _0x6c4d13[_0x38c9ee(0xf8)](mkdtemp,join(_0x480553,_0x38c9ee(0x111)+_0x543265+'-')),_0x1757d1=_0x6c4d13['PqnKS'](join,_0x117691,'auth.json');try{if(_0x2c5afe){_0x396361?.[_0x38c9ee(0xc0)](_0x6c4d13[_0x38c9ee(0xca)]),console['log'](_0x38c9ee(0xd8)),console['log'](_0x6c4d13[_0x38c9ee(0xe1)]),console['log'](_0x6c4d13['MEbvx']);!_0xa5adce?(console[_0x38c9ee(0xd6)](_0x6c4d13[_0x38c9ee(0x100)]),console[_0x38c9ee(0xd6)](_0x38c9ee(0x104))):console['log']('');await new Promise(_0x2e5534=>setTimeout(_0x2e5534,0xbb8));const _0x17da48=await chromium[_0x38c9ee(0xbf)]({'headless':![]});try{const _0x17206d=await _0x17da48[_0x38c9ee(0xdd)]();await _0x6c4d13['gFUxB'](addProfileSetupBanner,_0x17206d);const _0x2bca5f=await _0x17206d[_0x38c9ee(0xf9)]();await _0x2bca5f['goto'](_0x598d64||_0x38c9ee(0x10c)),await new Promise(_0x13b002=>{const _0x3e8a25=_0x38c9ee;_0x2bca5f['on'](_0x6c4d13[_0x3e8a25(0xed)],async()=>{const _0x3a7ac4=_0x3e8a25;try{console['log']('Saving\x20authentication\x20state...'),await _0x17206d['storageState']({'path':_0x1757d1});}catch{}_0x6c4d13[_0x3a7ac4(0x101)](_0x13b002);});});}finally{await _0x17da48[_0x38c9ee(0xcb)]()[_0x38c9ee(0xff)](()=>{});}if(_0x4eb4a5){const _0x1db725=await _0x6c4d13['PqnKS'](readFile,_0x1757d1,'utf-8'),_0x16f6a5=await getToken();if(!_0x16f6a5){console[_0x38c9ee(0xbc)]('\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]'),await _0x6c4d13[_0x38c9ee(0xba)](unlink,_0x1757d1)[_0x38c9ee(0xff)](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x43912d=_0x6c4d13['PqnKS'](encrypt,_0x1db725,_0x16f6a5);await writeFile(_0x1757d1+'.enc',_0x43912d),await unlink(_0x1757d1),console['log'](_0x38c9ee(0xd5)+_0x1757d1+'.enc'),console['log'](_0x6c4d13['DvETc']),console['log'](_0x6c4d13[_0x38c9ee(0xc3)]);}}else console['log'](_0x38c9ee(0xcd)+_0x1757d1);_0x396361?.['trackPhaseEnd']('browser_auth');}_0x396361?.['trackPhaseStart'](_0x6c4d13[_0x38c9ee(0xc1)]);const _0x5b48cc={};_0x598d64&&(_0x5b48cc['baseUrl']=_0x598d64);_0x18a4f8[_0x38c9ee(0xf2)]&&(_0x5b48cc['cdpEndpoint']=_0x18a4f8['cdpEndpoint'],_0x5b48cc['isElectron']=!![]);await writeFile(_0x6c4d13[_0x38c9ee(0xbd)](join,_0x117691,_0x38c9ee(0xbe)),JSON['stringify'](_0x5b48cc,null,0x2)),console[_0x38c9ee(0xd6)]('✓\x20Created\x20settings:\x20'+join(_0x4cfce9,_0x38c9ee(0xbe)));if(_0x423c27?.['location']===_0x5581ee){const _0x4634ac=_0x423c27[_0x38c9ee(0xf4)]+'.backup-'+Date['now']();await _0x6c4d13['PqnKS'](rename,_0x423c27['path'],_0x4634ac);try{await rename(_0x117691,_0x4cfce9);}catch(_0x1b0baa){await rename(_0x4634ac,_0x423c27['path']);throw _0x1b0baa;}try{await _0x6c4d13[_0x38c9ee(0xbd)](rm,_0x4634ac,{'recursive':!![]});}catch{console['log'](_0x38c9ee(0xde)+_0x4634ac);}}else{await rename(_0x117691,_0x4cfce9);if(_0x423c27)try{await rm(_0x423c27[_0x38c9ee(0xf4)],{'recursive':!![]}),console[_0x38c9ee(0xd6)](_0x38c9ee(0xf0)+_0x423c27[_0x38c9ee(0xf4)]);}catch{console['log'](_0x38c9ee(0xe8)+_0x423c27[_0x38c9ee(0xf4)]);}}try{await writeActiveProfileName(_0x543265),console[_0x38c9ee(0xd6)]('\x20\x20Set\x20active\x20profile:\x20'+_0x543265);}catch{console['log']('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x396361?.[_0x38c9ee(0xee)](_0x6c4d13['ZhFdd']),console[_0x38c9ee(0xd6)](_0x38c9ee(0xd4)+_0x543265+'\x22\x20configured');}catch(_0x50b203){await _0x6c4d13['PqnKS'](rm,_0x117691,{'recursive':!![],'force':!![]});throw _0x50b203;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x44da53,_0x10b71c){const _0x527d83=_0x1b52,_0x2c8e39=_0x44da53();while(!![]){try{const _0x2794b9=parseInt(_0x527d83(0x1a1))/0x1+parseInt(_0x527d83(0x1a9))/0x2*(parseInt(_0x527d83(0x1b1))/0x3)+parseInt(_0x527d83(0x1b2))/0x4*(-parseInt(_0x527d83(0x1b4))/0x5)+parseInt(_0x527d83(0x1a6))/0x6+parseInt(_0x527d83(0x1a5))/0x7*(-parseInt(_0x527d83(0x1ab))/0x8)+-parseInt(_0x527d83(0x1af))/0x9+parseInt(_0x527d83(0x1a7))/0xa*(parseInt(_0x527d83(0x1a3))/0xb);if(_0x2794b9===_0x10b71c)break;else _0x2c8e39['push'](_0x2c8e39['shift']());}catch(_0x233d20){_0x2c8e39['push'](_0x2c8e39['shift']());}}}(_0x225c,0xb3eec));function _0x225c(){const _0x136da5=['No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','3294956eVwBAc','4024698luGHYj','27820uAnRhh','.enc','948IYMDwW','\x0a✓\x20Encrypted\x20auth\x20saved\x20to:\x20','8htgKzl','DvfJJ','Xcatj','etPvn','47745aBdiLV','auth.json','6879guxVTF','252IlIorZ','log','66120qPjWgX','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','utf-8','\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.','77032ylIQOe','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','836gGMbRo'];_0x225c=function(){return _0x136da5;};return _0x225c();}import{readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';function _0x1b52(_0x2f52aa,_0x3d8803){_0x2f52aa=_0x2f52aa-0x1a1;const _0x225c1f=_0x225c();let _0x1b52d7=_0x225c1f[_0x2f52aa];return _0x1b52d7;}export async function authEncrypt(_0x2b3ec0){const _0x5f2247=_0x1b52,_0x4f2b91={'VQkRS':function(_0x56b6eb,_0x4a2e8f){return _0x56b6eb(_0x4a2e8f);},'etPvn':function(_0x593e34,_0x30e2a9,_0xf8a857){return _0x593e34(_0x30e2a9,_0xf8a857);},'VQOPm':function(_0xfb2443,_0xb6325d){return _0xfb2443+_0xb6325d;},'DGwTc':_0x5f2247(0x1a8),'KHumt':function(_0x28b922){return _0x28b922();},'Xcatj':_0x5f2247(0x1b6),'DvfJJ':function(_0x449d5a,_0x4a05ef,_0x5c9bec){return _0x449d5a(_0x4a05ef,_0x5c9bec);},'vsXYk':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','yKoWh':function(_0x5570d0,_0x3cde7c){return _0x5570d0(_0x3cde7c);}},_0x239479=_0x4f2b91['VQkRS'](getEnvDir,_0x2b3ec0),_0x16db2d=_0x4f2b91[_0x5f2247(0x1ae)](join,_0x239479,_0x5f2247(0x1b0)),_0x3b5fc6=_0x4f2b91['VQOPm'](_0x16db2d,_0x4f2b91['DGwTc']);if(!existsSync(_0x239479))throw new Error('Profile\x20\x22'+_0x2b3ec0+'\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20'+_0x2b3ec0);if(!_0x4f2b91['VQkRS'](existsSync,_0x16db2d))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x16db2d+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x3a2045=await _0x4f2b91['KHumt'](getToken);if(!_0x3a2045)throw new Error(_0x5f2247(0x1a4));const _0x35527d=await readFile(_0x16db2d,_0x4f2b91[_0x5f2247(0x1ad)]),_0x3a66b5=encrypt(_0x35527d,_0x3a2045);await _0x4f2b91[_0x5f2247(0x1ac)](writeFile,_0x3b5fc6,_0x3a66b5),console[_0x5f2247(0x1b3)](_0x5f2247(0x1aa)+_0x3b5fc6),console['log'](_0x4f2b91['vsXYk']),console['log'](_0x5f2247(0x1a2)),_0x4f2b91['yKoWh'](existsSync,_0x3b5fc6)&&(console[_0x5f2247(0x1b3)](_0x5f2247(0x1b5)),console['log'](_0x5f2247(0x1b7)));}
|
package/build/commands/clean.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x19ff(_0x31710b,_0x27ba08){_0x31710b=_0x31710b-0x83;const _0x5be02e=_0x5be0();let _0x19ffa4=_0x5be02e[_0x31710b];return _0x19ffa4;}const _0x2b8049=_0x19ff;(function(_0x3c818b,_0x1f29b9){const _0x832e9e=_0x19ff,_0x3b8881=_0x3c818b();while(!![]){try{const _0x5e4189=parseInt(_0x832e9e(0x9f))/0x1*(-parseInt(_0x832e9e(0x8a))/0x2)+parseInt(_0x832e9e(0xa2))/0x3*(parseInt(_0x832e9e(0xa1))/0x4)+parseInt(_0x832e9e(0x99))/0x5*(-parseInt(_0x832e9e(0x9d))/0x6)+parseInt(_0x832e9e(0xa7))/0x7+parseInt(_0x832e9e(0xab))/0x8+-parseInt(_0x832e9e(0xa9))/0x9*(-parseInt(_0x832e9e(0xa4))/0xa)+-parseInt(_0x832e9e(0x8e))/0xb;if(_0x5e4189===_0x1f29b9)break;else _0x3b8881['push'](_0x3b8881['shift']());}catch(_0x249cbf){_0x3b8881['push'](_0x3b8881['shift']());}}}(_0x5be0,0xa3330));import{rm,readFile,writeFile}from'fs/promises';function _0x5be0(){const _0x36652f=['16csaZwv','@ranger-testing/opencode-plugin','\x0a✅\x20Cleanup\x20complete!\x0a','ranger','21282228nbFwmP','opoaI','plugin','uninstall','EhjAy','user','Bpcmq','RocBM','Erswg','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','bsvfi','2345aUEEii','✓\x20Removed\x20OpenCode\x20user\x20skill:\x20','ltfzJ','feature-tracker','1074LlIuWO','utf-8','143281TAUwIz','opencode.json','4110644iDzXPv','3uPHyYd','platform','4945350TipzVz','replace','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','9310875GQzZsL','vwpDk','9IDBUKO','length','7848720NxlCGU','isArray','CuXiV','Xpltz','pipe','QSTPg','✓\x20Removed\x20trailhead\x20marketplace','remove','trailhead','emqMA','kBABF','UcLhF','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','✓\x20Removed\x20user\x20skill:\x20','e2e-test-recommender','win32','log','Fdmgs','claude','bQwOr','mXxEr','✓\x20Removed\x20project\x20skill:\x20'];_0x5be0=function(){return _0x36652f;};return _0x5be0();}import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=[_0x2b8049(0x8d),_0x2b8049(0x9c),'bug-bash',_0x2b8049(0xb9)],opencodePluginName=_0x2b8049(0x8b);function parseJsonc(_0x24244b){const _0x4fe9e0=_0x2b8049,_0x32a850=_0x24244b[_0x4fe9e0(0xa5)](/\/\*[\s\S]*?\*\//g,''),_0x16c659=_0x32a850['replace'](/^\s*\/\/.*$/gm,''),_0x37de0e=_0x16c659['replace'](/,\s*([}\]])/g,'$1');return JSON['parse'](_0x37de0e);}async function removeOpencodePluginConfig(_0x59a186){const _0x1266aa=_0x2b8049,_0x3aa9ba={'BHsTg':function(_0xb9f79c,_0x5d4ff2){return _0xb9f79c!==_0x5d4ff2;},'Fdmgs':function(_0x4d9e1f,_0x117f87){return _0x4d9e1f(_0x117f87);},'irStN':_0x1266aa(0x9e),'ltfzJ':function(_0xda1ad,_0x2cd96a){return _0xda1ad===_0x2cd96a;},'gmbSw':function(_0x46ea13,_0x184f94,_0xa410e3){return _0x46ea13(_0x184f94,_0xa410e3);}};if(!_0x3aa9ba['Fdmgs'](existsSync,_0x59a186))return![];let _0x10b456;try{const _0x218ecd=await readFile(_0x59a186,_0x3aa9ba['irStN']);_0x10b456=_0x3aa9ba[_0x1266aa(0x85)](parseJsonc,_0x218ecd);}catch{return![];}const _0x517549=Array[_0x1266aa(0xac)](_0x10b456[_0x1266aa(0x90)])?_0x10b456['plugin']:[];if(_0x517549['length']===0x0)return![];const _0x4d536a=_0x517549['filter'](_0x533622=>{if(_0x3aa9ba['BHsTg'](typeof _0x533622,'string'))return!![];return _0x3aa9ba['BHsTg'](_0x533622,opencodePluginName);});if(_0x3aa9ba['ltfzJ'](_0x4d536a['length'],_0x517549[_0x1266aa(0xaa)]))return![];return _0x3aa9ba[_0x1266aa(0x9b)](_0x4d536a['length'],0x0)?delete _0x10b456[_0x1266aa(0x90)]:_0x10b456[_0x1266aa(0x90)]=_0x4d536a,await _0x3aa9ba['gmbSw'](writeFile,_0x59a186,JSON['stringify'](_0x10b456,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x39826b){const _0xc8a89e=_0x2b8049,_0x3fcf66={'eKIFU':function(_0x209e8e,_0xc9fc22){return _0x209e8e(_0xc9fc22);},'mymjz':function(_0x58cf5a,_0x5949cd){return _0x58cf5a===_0x5949cd;},'QSTPg':_0xc8a89e(0x91),'HmtyZ':'--scope','EAwPp':_0xc8a89e(0x86)};return new Promise(_0x554f57=>{const _0x42df3f=_0xc8a89e,_0x3da933=['plugin',_0x3fcf66[_0x42df3f(0xb0)],'ranger@trailhead'];_0x39826b&&_0x3da933['push'](_0x3fcf66['HmtyZ'],_0x39826b);const _0x1f1f5d=spawn(_0x3fcf66['EAwPp'],_0x3da933,{'stdio':'pipe','shell':process[_0x42df3f(0xa3)]===_0x42df3f(0x83)});_0x1f1f5d['on']('close',_0x30c41e=>{_0x3fcf66['eKIFU'](_0x554f57,_0x3fcf66['mymjz'](_0x30c41e,0x0));}),_0x1f1f5d['on']('error',()=>{_0x554f57(![]);});});}async function removeMarketplace(){const _0x538bc4=_0x2b8049,_0x2bab0e={'RocBM':function(_0x963900,_0x2fa0b0){return _0x963900===_0x2fa0b0;},'RuFjt':function(_0xfe183f,_0x51ca24){return _0xfe183f(_0x51ca24);},'Xpltz':'marketplace','AHkdp':_0x538bc4(0xaf),'emqMA':'win32','hJBFA':'close','opoaI':'error'};return new Promise(_0x1e19b5=>{const _0x3f1f5d=_0x538bc4,_0x8d4426={'CuXiV':function(_0x25a20f,_0x34fd57){return _0x2bab0e['RuFjt'](_0x25a20f,_0x34fd57);}},_0x3c5d51=spawn(_0x3f1f5d(0x86),[_0x3f1f5d(0x90),_0x2bab0e[_0x3f1f5d(0xae)],_0x3f1f5d(0xb2),_0x3f1f5d(0xb3)],{'stdio':_0x2bab0e['AHkdp'],'shell':_0x2bab0e[_0x3f1f5d(0x95)](process[_0x3f1f5d(0xa3)],_0x2bab0e[_0x3f1f5d(0xb4)])});_0x3c5d51['on'](_0x2bab0e['hJBFA'],_0x56095b=>{const _0x549595=_0x3f1f5d;_0x1e19b5(_0x2bab0e[_0x549595(0x95)](_0x56095b,0x0));}),_0x3c5d51['on'](_0x2bab0e[_0x3f1f5d(0x8f)],()=>{const _0x37b44e=_0x3f1f5d;_0x8d4426[_0x37b44e(0xad)](_0x1e19b5,![]);});});}export async function clean(){const _0x398329=_0x2b8049,_0x1580e9={'vwpDk':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','EhjAy':function(_0x486b35){return _0x486b35();},'UcLhF':function(_0x2681bd,_0x15d693){return _0x2681bd(_0x15d693);},'gdMvs':function(_0x44d936,_0x4bee9f){return _0x44d936(_0x4bee9f);},'Erswg':function(_0xca53d4,_0x37e998,_0x4adc30){return _0xca53d4(_0x37e998,_0x4adc30);},'bsvfi':function(_0x5eb097,_0x4f9389,_0x16a070){return _0x5eb097(_0x4f9389,_0x16a070);},'mXxEr':'project','ZfqDk':_0x398329(0x93),'kBABF':function(_0x54c726,_0x224bf0,_0x3979ed){return _0x54c726(_0x224bf0,_0x3979ed);},'wRimr':_0x398329(0xa0),'lhmGz':function(_0x52b91a,_0x8728b){return _0x52b91a(_0x8728b);},'Bpcmq':_0x398329(0xb7),'bQwOr':'✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','jkhch':'✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','kQwom':function(_0x4e1f81){return _0x4e1f81();},'INZdy':_0x398329(0xb1)};console['log'](_0x1580e9[_0x398329(0xa8)]);let _0x5ded65=![];try{await deleteAllCredentials(),console['log']('✓\x20Removed\x20stored\x20credentials'),_0x5ded65=!![];}catch{}const _0x682b6d=_0x1580e9[_0x398329(0x92)](getCacheFile);_0x1580e9['UcLhF'](existsSync,_0x682b6d)&&(await rm(_0x682b6d),_0x5ded65=!![]);const _0x4e06a0=getRangerDir();_0x1580e9['gdMvs'](existsSync,_0x4e06a0)&&(await _0x1580e9['Erswg'](rm,_0x4e06a0,{'recursive':!![]}),console[_0x398329(0x84)]('✓\x20Removed\x20.ranger/\x20directory'),_0x5ded65=!![]);const _0x6fabe5=getProjectSkillsDir();for(const _0x443d1b of skillsToRemove){const _0x4ddb04=join(_0x6fabe5,_0x443d1b);_0x1580e9[_0x398329(0xb6)](existsSync,_0x4ddb04)&&(await _0x1580e9['bsvfi'](rm,_0x4ddb04,{'recursive':!![]}),console['log'](_0x398329(0x89)+_0x443d1b),_0x5ded65=!![]);}const _0xe2daec=_0x1580e9[_0x398329(0x92)](getUserSkillsDir);for(const _0x1b114e of skillsToRemove){const _0x588bae=_0x1580e9[_0x398329(0x98)](join,_0xe2daec,_0x1b114e);_0x1580e9['gdMvs'](existsSync,_0x588bae)&&(await _0x1580e9['bsvfi'](rm,_0x588bae,{'recursive':!![]}),console['log'](_0x398329(0xb8)+_0x1b114e),_0x5ded65=!![]);}const _0x22dfa2=getOpencodeSkillsDir(_0x1580e9['mXxEr']);for(const _0x349634 of skillsToRemove){const _0x54170d=join(_0x22dfa2,_0x349634);existsSync(_0x54170d)&&(await _0x1580e9['bsvfi'](rm,_0x54170d,{'recursive':!![]}),console['log'](_0x398329(0x97)+_0x349634),_0x5ded65=!![]);}const _0x36a5a5=getOpencodeSkillsDir(_0x1580e9['ZfqDk']);for(const _0x20f0d7 of skillsToRemove){const _0xf3addb=_0x1580e9[_0x398329(0xb5)](join,_0x36a5a5,_0x20f0d7);existsSync(_0xf3addb)&&(await _0x1580e9[_0x398329(0x96)](rm,_0xf3addb,{'recursive':!![]}),console['log'](_0x398329(0x9a)+_0x20f0d7),_0x5ded65=!![]);}const _0x3d8754=join(getOpencodeConfigDir(_0x1580e9[_0x398329(0x88)]),_0x1580e9['wRimr']);await removeOpencodePluginConfig(_0x3d8754)&&(console['log'](_0x398329(0xa6)),_0x5ded65=!![]);const _0x28248b=join(_0x1580e9['lhmGz'](getOpencodeConfigDir,'user'),_0x398329(0xa0));await removeOpencodePluginConfig(_0x28248b)&&(console['log'](_0x1580e9[_0x398329(0x94)]),_0x5ded65=!![]);const _0x265792=await uninstallClaudePlugin();_0x265792&&(console['log'](_0x1580e9[_0x398329(0x87)]),_0x5ded65=!![]);const _0x4336e3=await uninstallClaudePlugin(_0x1580e9[_0x398329(0x88)]);_0x4336e3&&(console['log'](_0x1580e9['jkhch']),_0x5ded65=!![]);const _0x380e03=await _0x1580e9['kQwom'](removeMarketplace);_0x380e03&&(console['log'](_0x1580e9['INZdy']),_0x5ded65=!![]),_0x5ded65?console['log'](_0x398329(0x8c)):console[_0x398329(0x84)]('Nothing\x20to\x20clean\x20up.\x0a');}
|
package/build/commands/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x298e8c,_0x4d02b1){const _0x278afa=_0x3399,_0x4e8130=_0x298e8c();while(!![]){try{const _0x407f23=parseInt(_0x278afa(0xdd))/0x1*(parseInt(_0x278afa(0xd5))/0x2)+-parseInt(_0x278afa(0xd0))/0x3+-parseInt(_0x278afa(0xea))/0x4+parseInt(_0x278afa(0xe9))/0x5+parseInt(_0x278afa(0xe3))/0x6*(-parseInt(_0x278afa(0xdb))/0x7)+parseInt(_0x278afa(0xdc))/0x8*(parseInt(_0x278afa(0xd9))/0x9)+parseInt(_0x278afa(0xd7))/0xa*(parseInt(_0x278afa(0xe7))/0xb);if(_0x407f23===_0x4d02b1)break;else _0x4e8130['push'](_0x4e8130['shift']());}catch(_0x3ac24e){_0x4e8130['push'](_0x4e8130['shift']());}}}(_0x308d,0xeabf6));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';const BOOLEAN_KEYS=['headless'];function parseValue(_0x349b83,_0x4613c6){const _0x579b90=_0x3399,_0x2774f1={'tZWdZ':function(_0xe04722,_0xbcdfbd){return _0xe04722===_0xbcdfbd;},'xMhsn':_0x579b90(0xe6)};if(BOOLEAN_KEYS[_0x579b90(0xe2)](_0x349b83)){if(_0x2774f1['tZWdZ'](_0x4613c6,_0x2774f1[_0x579b90(0xd1)]))return!![];if(_0x4613c6==='false')return![];throw new Error('Invalid\x20value\x20for\x20'+_0x349b83+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x4613c6;}export async function configSet(_0x4fa30b,_0x2a65d6,_0x537714){const _0x3c3e65=_0x3399,_0x4837aa={'epQbK':function(_0x39fe2f,_0xea529f){return _0x39fe2f(_0xea529f);},'Nlxns':function(_0x494048,_0x3fcb06,_0x2faf05){return _0x494048(_0x3fcb06,_0x2faf05);}},_0x5d1816=_0x4837aa['epQbK'](getEnvDir,_0x4fa30b);if(!existsSync(_0x5d1816))throw new Error(_0x3c3e65(0xd6)+_0x4fa30b+_0x3c3e65(0xe8)+_0x4fa30b);const _0x296deb=await _0x4837aa['epQbK'](loadSettings,_0x4fa30b),_0x4f98b0=_0x4837aa['Nlxns'](parseValue,_0x2a65d6,_0x537714);setNestedValue(_0x296deb,_0x2a65d6,_0x4f98b0),await saveSettings(_0x4fa30b,_0x296deb),console[_0x3c3e65(0xe5)](_0x3c3e65(0xe1)+_0x2a65d6+_0x3c3e65(0xd3)+_0x4f98b0);}export async function configGet(_0x2d079f,_0x1b6572){const _0x201443=_0x3399,_0x29fcfe={'bMSSR':function(_0x3dccf1,_0x1b137e){return _0x3dccf1(_0x1b137e);},'MKHqz':function(_0x5b300e,_0x1d6456){return _0x5b300e===_0x1d6456;},'lZBxy':_0x201443(0xd2)},_0x3a61b5=getEnvDir(_0x2d079f);if(!existsSync(_0x3a61b5))throw new Error(_0x201443(0xd6)+_0x2d079f+'\x22\x20does\x20not\x20exist.');const _0x3cdc52=await _0x29fcfe['bMSSR'](loadSettings,_0x2d079f),_0x4521fe=getNestedValue(_0x3cdc52,_0x1b6572);if(_0x29fcfe['MKHqz'](_0x4521fe,undefined))console['log']('(not\x20set)');else _0x29fcfe[_0x201443(0xde)](typeof _0x4521fe,_0x29fcfe['lZBxy'])?console[_0x201443(0xe5)](JSON['stringify'](_0x4521fe,null,0x2)):console[_0x201443(0xe5)](_0x4521fe);}export async function configList(_0x18639a){const _0x311d0f=_0x3399,_0x50d8c4={'Gosvf':function(_0x1cad40,_0x472286){return _0x1cad40(_0x472286);}},_0x32a409=getSettingsPath(_0x18639a);if(!existsSync(_0x32a409)){const _0x5f1089=_0x50d8c4[_0x311d0f(0xd8)](getEnvDir,_0x18639a);if(!existsSync(_0x5f1089))throw new Error('Profile\x20\x22'+_0x18639a+'\x22\x20does\x20not\x20exist.');console['log'](_0x311d0f(0xdf)+_0x18639a+'\x22');return;}const _0x22b8ce=await _0x50d8c4['Gosvf'](loadSettings,_0x18639a),_0x15ae24=_0x50d8c4['Gosvf'](formatSettings,_0x22b8ce);!_0x15ae24?console['log'](_0x311d0f(0xdf)+_0x18639a+'\x22'):console['log'](_0x15ae24);}export async function configUnset(_0x29a8fe,_0x35572f){const _0x359b4a=_0x3399,_0x28b945={'gomdI':function(_0x114fb5,_0x39a7a1){return _0x114fb5(_0x39a7a1);},'idtlU':function(_0x39b693,_0x5df234,_0x1d6aca){return _0x39b693(_0x5df234,_0x1d6aca);},'gLuDF':function(_0x4123c4,_0xa6d20,_0x5d279c){return _0x4123c4(_0xa6d20,_0x5d279c);}},_0x15e0ab=_0x28b945['gomdI'](getEnvDir,_0x29a8fe);if(!existsSync(_0x15e0ab))throw new Error(_0x359b4a(0xd6)+_0x29a8fe+'\x22\x20does\x20not\x20exist.');const _0x5d4cdd=await _0x28b945[_0x359b4a(0xe0)](loadSettings,_0x29a8fe),_0x53d9d0=_0x28b945[_0x359b4a(0xd4)](deleteNestedValue,_0x5d4cdd,_0x35572f);_0x53d9d0?(await _0x28b945[_0x359b4a(0xda)](saveSettings,_0x29a8fe,_0x5d4cdd),console['log'](_0x359b4a(0xe4)+_0x35572f)):console['log']('Key\x20\x22'+_0x35572f+'\x22\x20not\x20found');}function _0x3399(_0x55f345,_0x457c3){_0x55f345=_0x55f345-0xd0;const _0x308d25=_0x308d();let _0x33997b=_0x308d25[_0x55f345];return _0x33997b;}function _0x308d(){const _0x2b0805=['Set\x20','includes','36804YqtoYG','Removed\x20','log','true','40455206aKIsNz','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','2869000zbboGS','6693612AazHBL','4296987WaAoaY','xMhsn','object','\x20=\x20','idtlU','56232hQfyVr','Profile\x20\x22','10pppbWD','Gosvf','18YnbRWv','gLuDF','2044PWpkcL','2041264DfqNOh','39VxUwWo','MKHqz','No\x20configuration\x20set\x20for\x20\x22','gomdI'];_0x308d=function(){return _0x2b0805;};return _0x308d();}
|