@ranger-testing/ranger-cli 2.3.2 → 2.4.1
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/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/agentEnv.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/playwrightCli.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/stitchWebmFiles.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/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2a8ffa=_0x1e4d;(function(_0x1657e9,_0x4d40e6){const _0x53ee96=_0x1e4d,_0x3bc59c=_0x1657e9();while(!![]){try{const _0x53c826=-parseInt(_0x53ee96(0x1ec))/0x1*(-parseInt(_0x53ee96(0x221))/0x2)+-parseInt(_0x53ee96(0x1e4))/0x3*(-parseInt(_0x53ee96(0x1fe))/0x4)+parseInt(_0x53ee96(0x213))/0x5*(-parseInt(_0x53ee96(0x1eb))/0x6)+-parseInt(_0x53ee96(0x1fa))/0x7+-parseInt(_0x53ee96(0x200))/0x8*(-parseInt(_0x53ee96(0x1f5))/0x9)+parseInt(_0x53ee96(0x207))/0xa*(-parseInt(_0x53ee96(0x205))/0xb)+-parseInt(_0x53ee96(0x225))/0xc;if(_0x53c826===_0x4d40e6)break;else _0x3bc59c['push'](_0x3bc59c['shift']());}catch(_0x31f246){_0x3bc59c['push'](_0x3bc59c['shift']());}}}(_0xda94,0x3ee13));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x38960e=_0x1e4d,_0x564ea5={'Rxenh':function(_0x270b4a,_0x59f748,_0x57b947){return _0x270b4a(_0x59f748,_0x57b947);},'GwIjw':'.ranger','wcoxO':function(_0x551b16,_0x323a6d,_0x32e200){return _0x551b16(_0x323a6d,_0x32e200);},'gtFJQ':_0x38960e(0x206),'RccpC':'utf-8','wiKHT':function(_0x4961a5,_0x20589e,_0x44d0ec){return _0x4961a5(_0x20589e,_0x44d0ec);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x3a1c8c=_0x564ea5[_0x38960e(0x1fc)](join,homedir(),_0x564ea5[_0x38960e(0x21d)]),_0x2a720d=_0x564ea5[_0x38960e(0x204)](join,_0x3a1c8c,_0x564ea5['gtFJQ']);if(existsSync(_0x2a720d)){cachedDeviceId=readFileSync(_0x2a720d,_0x564ea5[_0x38960e(0x20b)])[_0x38960e(0x1f0)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x3a1c8c,{'recursive':!![]}),_0x564ea5[_0x38960e(0x1f9)](writeFileSync,_0x2a720d,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x2a8ffa(0x22b)];['command'];[_0x2a8ffa(0x226)];['phaseCounter']=0x0;[_0x2a8ffa(0x1e0)]=new Map();[_0x2a8ffa(0x20f)]=null;['deviceId'];['cliVersion'];[_0x2a8ffa(0x21f)];[_0x2a8ffa(0x20c)];['isTty'];[_0x2a8ffa(0x229)];['featureId'];[_0x2a8ffa(0x1fb)];['browserSessionId'];['transport'];constructor(_0x2e465c){const _0x49f2ac=_0x2a8ffa,_0x365e1c={'lKToT':function(_0x796a44){return _0x796a44();}};this[_0x49f2ac(0x22b)]=randomUUID(),this[_0x49f2ac(0x1ee)]=_0x2e465c,this['commandStartTime']=Date[_0x49f2ac(0x219)](),this[_0x49f2ac(0x22e)]=_0x365e1c[_0x49f2ac(0x1f4)](getDeviceId),this['cliVersion']=getCurrentVersion(),this['nodeVersion']=process[_0x49f2ac(0x1ea)],this['platform']=process['platform'],this['isTty']=process[_0x49f2ac(0x21e)][_0x49f2ac(0x214)]??![],this['isCI']=!!(process[_0x49f2ac(0x208)]['CI']||process[_0x49f2ac(0x208)]['GITHUB_ACTIONS']);}['setContext'](_0x26aadc){const _0x32004e=_0x2a8ffa;if(_0x26aadc[_0x32004e(0x1ef)])this[_0x32004e(0x1ef)]=_0x26aadc['featureId'];if(_0x26aadc['checklistItemId'])this[_0x32004e(0x1fb)]=_0x26aadc[_0x32004e(0x1fb)];if(_0x26aadc['browserSessionId'])this['browserSessionId']=_0x26aadc['browserSessionId'];if(_0x26aadc['transport'])this['transport']=_0x26aadc['transport'];}async[_0x2a8ffa(0x218)](_0x31cb78){const _0x1fc99a=_0x2a8ffa,_0x34035a={'fslIL':'command_start'},_0x2b2ef=this[_0x1fc99a(0x1f2)]({'eventType':_0x34035a['fslIL'],'metadata':_0x31cb78});await this[_0x1fc99a(0x1e5)](_0x2b2ef);}async[_0x2a8ffa(0x22c)](_0x8937e3,_0x2a9ea3){const _0x29fabf=_0x2a8ffa,_0x4ff24e={'AVcXY':'command_end','XXYVc':function(_0x50866d,_0x44dfd2){return _0x50866d-_0x44dfd2;}},_0x2a7327=this['buildEvent']({'eventType':_0x4ff24e[_0x29fabf(0x22d)],'outcome':_0x8937e3,'durationMs':_0x4ff24e[_0x29fabf(0x20a)](Date['now'](),this[_0x29fabf(0x226)]),'metadata':_0x2a9ea3});await this[_0x29fabf(0x1e5)](_0x2a7327),await this['flush']();}async[_0x2a8ffa(0x1ff)](_0x1fb31f,_0x289623){const _0x2175ae=_0x2a8ffa,_0x192fd6={'LSXbZ':function(_0x41dadd,_0xe2ffa0){return _0x41dadd(_0xe2ffa0);},'ESOxg':_0x2175ae(0x1ed)},_0x37f216=this['buildEvent']({'eventType':_0x2175ae(0x1f1),'errorMessage':truncate(_0x1fb31f instanceof Error?_0x1fb31f[_0x2175ae(0x220)]:_0x192fd6['LSXbZ'](String,_0x1fb31f),0x1f4),'errorType':_0x1fb31f instanceof Error?_0x1fb31f[_0x2175ae(0x20e)][_0x2175ae(0x1e3)]:_0x192fd6[_0x2175ae(0x1e8)],'durationMs':Date[_0x2175ae(0x219)]()-this['commandStartTime'],'metadata':_0x289623});await this['sendImmediate'](_0x37f216),await this['flush']();}[_0x2a8ffa(0x1e2)](_0x58b0f1,_0x4e1a7f){const _0xd7a05b=_0x2a8ffa,_0x241447={'xzenu':_0xd7a05b(0x212)};this['phaseCounter']++,this['phaseStartTimes'][_0xd7a05b(0x20d)](_0x58b0f1,Date['now']());const _0x5184dc=this['buildEvent']({'eventType':_0x241447['xzenu'],'phase':_0x58b0f1,'phaseIndex':this['phaseCounter'],'metadata':_0x4e1a7f});this['buffer']['push'](_0x5184dc);}['trackPhaseEnd'](_0x59ee6b,_0x4b8b7c){const _0x5dfb61=_0x2a8ffa,_0x1a5596={'nUEsZ':function(_0x2fb040,_0x577645){return _0x2fb040-_0x577645;},'blSWC':_0x5dfb61(0x21c)},_0x438411=this['phaseStartTimes'][_0x5dfb61(0x203)](_0x59ee6b),_0x58bd2c=_0x438411?_0x1a5596['nUEsZ'](Date[_0x5dfb61(0x219)](),_0x438411):undefined;this['phaseStartTimes'][_0x5dfb61(0x1fd)](_0x59ee6b);const _0x7f88e1=this['buildEvent']({'eventType':_0x1a5596[_0x5dfb61(0x201)],'phase':_0x59ee6b,'durationMs':_0x58bd2c,'metadata':_0x4b8b7c});this[_0x5dfb61(0x21b)][_0x5dfb61(0x228)](_0x7f88e1),this['buffer']['length']>=0xa&&this['flushAsync']();}async[_0x2a8ffa(0x210)](_0x281b1a,_0x2f4aa8,_0x2f64bc){const _0x3c80f0=_0x2a8ffa,_0x545426={'MsTgc':function(_0x1166d2,_0x2ee41d){return _0x1166d2-_0x2ee41d;},'pHHSZ':'phase_error','GUMKb':function(_0x1f8dd7,_0x1df438,_0x1ce7d8){return _0x1f8dd7(_0x1df438,_0x1ce7d8);},'Cobww':function(_0x17f948,_0x2468b0){return _0x17f948 instanceof _0x2468b0;},'ppeWR':'Unknown'},_0x27f8ba=this['phaseStartTimes']['get'](_0x281b1a),_0x3b7119=_0x27f8ba?_0x545426[_0x3c80f0(0x227)](Date[_0x3c80f0(0x219)](),_0x27f8ba):undefined;this[_0x3c80f0(0x1e0)]['delete'](_0x281b1a);const _0x32d1f2=this['buildEvent']({'eventType':_0x545426['pHHSZ'],'phase':_0x281b1a,'durationMs':_0x3b7119,'errorMessage':_0x545426[_0x3c80f0(0x222)](truncate,_0x545426['Cobww'](_0x2f4aa8,Error)?_0x2f4aa8[_0x3c80f0(0x220)]:String(_0x2f4aa8),0x1f4),'errorType':_0x2f4aa8 instanceof Error?_0x2f4aa8[_0x3c80f0(0x20e)]['name']:_0x545426['ppeWR'],'metadata':_0x2f64bc});await this[_0x3c80f0(0x1e5)](_0x32d1f2);}async['flush'](){const _0x477bf7=_0x2a8ffa;if(this[_0x477bf7(0x21b)][_0x477bf7(0x1e1)]===0x0)return;const _0x392d72=this[_0x477bf7(0x21b)]['splice'](0x0);try{await this[_0x477bf7(0x202)](_0x392d72);}catch{}}['buildEvent'](_0x4d1642){const _0x1643c1=_0x2a8ffa;return{'eventType':_0x4d1642['eventType'],'command':this['command'],'commandId':this[_0x1643c1(0x22b)],'deviceId':this[_0x1643c1(0x22e)],'timestamp':new Date()[_0x1643c1(0x1f3)](),'durationMs':_0x4d1642[_0x1643c1(0x211)],'phase':_0x4d1642['phase'],'phaseIndex':_0x4d1642['phaseIndex'],'outcome':_0x4d1642[_0x1643c1(0x223)],'errorMessage':_0x4d1642[_0x1643c1(0x217)],'errorType':_0x4d1642['errorType'],'featureId':this[_0x1643c1(0x1ef)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x1643c1(0x1e9)],'transport':this['transport'],'evaluation':_0x4d1642['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x1643c1(0x21f)],'platform':this[_0x1643c1(0x20c)],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this[_0x1643c1(0x229)],'metadata':_0x4d1642[_0x1643c1(0x1f8)]};}async['sendImmediate'](_0x1f5ecb){const _0x337f80=_0x2a8ffa;try{await this[_0x337f80(0x202)]([_0x1f5ecb]);}catch{}}[_0x2a8ffa(0x215)](){const _0x3e8b5a=_0x2a8ffa;if(this[_0x3e8b5a(0x20f)])return;this['flushing']=this['flush']()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x4604b9){const _0x1e74e6=_0x2a8ffa,_0x434cd4={'uMqzD':function(_0x4de946,_0x16e7ec,_0x30ad40){return _0x4de946(_0x16e7ec,_0x30ad40);},'yUwFo':function(_0x3598a7,_0x401b0e){return _0x3598a7(_0x401b0e);}},_0x336229=await getToken()[_0x1e74e6(0x216)](()=>null),_0x27ff48=getApiBaseUrl(),_0x28cebd={'Content-Type':_0x1e74e6(0x1e6)};_0x336229&&(_0x28cebd['Authorization']='Bearer\x20'+_0x336229);const _0x35d976={'events':_0x4604b9};process[_0x1e74e6(0x208)]['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x4604b9['length']+_0x1e74e6(0x22a)+_0x27ff48+'/api/v1/mcp/cli-telemetry');const _0x13a6b8=new AbortController(),_0x5c92f0=setTimeout(()=>_0x13a6b8['abort'](),0x1388);try{await _0x434cd4[_0x1e74e6(0x1f7)](fetch,_0x27ff48+_0x1e74e6(0x209),{'method':'POST','headers':_0x28cebd,'body':JSON[_0x1e74e6(0x21a)](_0x35d976),'signal':_0x13a6b8[_0x1e74e6(0x224)]});}finally{_0x434cd4[_0x1e74e6(0x1f6)](clearTimeout,_0x5c92f0);}}}let currentCollector=null;function _0xda94(){const _0x331eb9=['message','916738CAPLPA','GUMKb','outcome','signal','2082960YJPvPf','commandStartTime','MsTgc','push','isCI','\x20event(s)\x20to\x20','commandId','trackCommandEnd','AVcXY','deviceId','phaseStartTimes','length','trackPhaseStart','name','12756ijoJhc','sendImmediate','application/json','slice','ESOxg','browserSessionId','version','18EErkxv','1BJTbqi','Unknown','command','featureId','trim','command_error','buildEvent','toISOString','lKToT','354033HlcHAh','yUwFo','uMqzD','metadata','wiKHT','1523305BlBQRu','checklistItemId','Rxenh','delete','52miVTQL','trackCommandError','80MDGQzi','blSWC','sendBatch','get','wcoxO','113366rXjqbl','.session','250OWcwRD','env','/api/v1/mcp/cli-telemetry','XXYVc','RccpC','platform','set','constructor','flushing','trackPhaseError','durationMs','phase_start','1025bMieYe','isTTY','flushAsync','catch','errorMessage','trackCommandStart','now','stringify','buffer','phase_end','GwIjw','stdout','nodeVersion'];_0xda94=function(){return _0x331eb9;};return _0xda94();}export function createTelemetryCollector(_0x364204){return currentCollector=new TelemetryCollector(_0x364204),currentCollector;}export function getCurrentCollector(){return currentCollector;}function _0x1e4d(_0x2bd6d2,_0x543c35){_0x2bd6d2=_0x2bd6d2-0x1e0;const _0xda946f=_0xda94();let _0x1e4dc1=_0xda946f[_0x2bd6d2];return _0x1e4dc1;}export async function withTelemetry(_0x21b3d3,_0x4c5f27,_0x1589bd){const _0x4c33c8=_0x2a8ffa,_0x47ce57={'jdCIO':function(_0x12175f,_0x1e8d32){return _0x12175f(_0x1e8d32);},'RRYEc':'success'},_0x4e7901=_0x47ce57['jdCIO'](createTelemetryCollector,_0x21b3d3);await _0x4e7901['trackCommandStart'](_0x1589bd);try{const _0x685e3f=await _0x47ce57['jdCIO'](_0x4c5f27,_0x4e7901);return await _0x4e7901[_0x4c33c8(0x22c)](_0x47ce57['RRYEc']),_0x685e3f;}catch(_0x30717d){await _0x4e7901[_0x4c33c8(0x1ff)](_0x30717d);throw _0x30717d;}finally{await _0x4e7901['flush']();}}function truncate(_0x17c9e7,_0x3bd9be){const _0x590107=_0x2a8ffa,_0x556f73={'aAWep':function(_0x200243,_0x2415ba){return _0x200243>_0x2415ba;}};return _0x556f73['aAWep'](_0x17c9e7[_0x590107(0x1e1)],_0x3bd9be)?_0x17c9e7[_0x590107(0x1e7)](0x0,_0x3bd9be)+'...':_0x17c9e7;}
|
|
1
|
+
const _0x443264=_0x44ed;function _0x22fa(){const _0x2be631=['phaseCounter','bxZEf','16pckWCG','POST','INJwb','slice','cwd','NCdbb','2458936WNrhOv','trackPhaseError','cliVersion','...','sendBatch','sendImmediate','checklistItemId','command','142761mvfYWo','stdout','650556NmjlCa','RxLsU','commandStartTime','platform','phase_end','deviceId','outcome','DEBUG','eventType','tRXAo','trackPhaseStart','name','utf-8','browserSessionId','WAIIG','Authorization','push','43440edEzFg','command_start','message','wMLuI','Unknown','nodeVersion','buildEvent','now','trackPhaseEnd','phase_start','trim','get','PmbQF','945801hXsvoD','command_error','trackCommandEnd','command_end','BhyhI','errorType','version','buffer','4035934sbFVgE','GITHUB_ACTIONS','aynIO','iUhhp','success','delete','toISOString','phaseStartTimes','errorMessage','/api/v1/mcp/cli-telemetry','constructor','set','flush','phase_error','isTty','[telemetry]\x20Sending\x20','\x20event(s)\x20to\x20','env','LMCAY','splice','transport','featureId','phaseIndex','flushing','trackCommandStart','395CQFdKm','abort','pilPm','isCI','length','riuBv','eAUGx','commandId','8iyMmlS','CtWEy','3565330SonGHN','signal'];_0x22fa=function(){return _0x2be631;};return _0x22fa();}(function(_0x1a65aa,_0x5540cf){const _0x1fdb99=_0x44ed,_0x5c0bbc=_0x1a65aa();while(!![]){try{const _0x44afa0=parseInt(_0x1fdb99(0x1f5))/0x1+parseInt(_0x1fdb99(0x23c))/0x2*(parseInt(_0x1fdb99(0x1f3))/0x3)+parseInt(_0x1fdb99(0x1eb))/0x4+parseInt(_0x1fdb99(0x234))/0x5*(-parseInt(_0x1fdb99(0x206))/0x6)+-parseInt(_0x1fdb99(0x21b))/0x7+-parseInt(_0x1fdb99(0x1e5))/0x8*(parseInt(_0x1fdb99(0x213))/0x9)+parseInt(_0x1fdb99(0x23e))/0xa;if(_0x44afa0===_0x5540cf)break;else _0x5c0bbc['push'](_0x5c0bbc['shift']());}catch(_0x3bc9e7){_0x5c0bbc['push'](_0x5c0bbc['shift']());}}}(_0x22fa,0x6eb5f));function _0x44ed(_0x2183fc,_0x2bf93e){_0x2183fc=_0x2183fc-0x1e4;const _0x22fac2=_0x22fa();let _0x44edcc=_0x22fac2[_0x2183fc];return _0x44edcc;}import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x236461=_0x44ed,_0x4a7675={'bxZEf':'.session','RxLsU':function(_0xec51dc,_0x36c038){return _0xec51dc(_0x36c038);},'udLVR':_0x236461(0x201),'aynIO':function(_0x3de419,_0x46dcf5,_0x5a29e2){return _0x3de419(_0x46dcf5,_0x5a29e2);},'lfZRx':function(_0x4f6e24,_0x2951a4,_0x2a2bdb){return _0x4f6e24(_0x2951a4,_0x2a2bdb);},'CtWEy':function(_0x3cd3fc){return _0x3cd3fc();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x1c0333=join(homedir(),'.ranger'),_0x320ec0=join(_0x1c0333,_0x4a7675[_0x236461(0x1e4)]);if(_0x4a7675[_0x236461(0x1f6)](existsSync,_0x320ec0)){cachedDeviceId=readFileSync(_0x320ec0,_0x4a7675['udLVR'])[_0x236461(0x210)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),_0x4a7675[_0x236461(0x21d)](mkdirSync,_0x1c0333,{'recursive':!![]}),_0x4a7675['lfZRx'](writeFileSync,_0x320ec0,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x4a7675[_0x236461(0x23d)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x443264(0x23b)];[_0x443264(0x1f2)];[_0x443264(0x1f7)];[_0x443264(0x240)]=0x0;[_0x443264(0x222)]=new Map();['flushing']=null;[_0x443264(0x1fa)];[_0x443264(0x1ed)];[_0x443264(0x20b)];['platform'];[_0x443264(0x229)];[_0x443264(0x237)];['featureId'];['checklistItemId'];[_0x443264(0x202)];[_0x443264(0x22f)];constructor(_0x1c1d9e){const _0x95084d=_0x443264,_0x1cfe65={'SNQlL':'1|5|4|2|7|6|8|0|3','eTIkq':function(_0x3fc578){return _0x3fc578();},'riuBv':function(_0x4e2883){return _0x4e2883();}},_0x135df0=_0x1cfe65['SNQlL']['split']('|');let _0x243286=0x0;while(!![]){switch(_0x135df0[_0x243286++]){case'0':this[_0x95084d(0x229)]=process[_0x95084d(0x1f4)]['isTTY']??![];continue;case'1':this['commandId']=randomUUID();continue;case'2':this[_0x95084d(0x1fa)]=_0x1cfe65['eTIkq'](getDeviceId);continue;case'3':this[_0x95084d(0x237)]=!!(process['env']['CI']||process[_0x95084d(0x22c)][_0x95084d(0x21c)]);continue;case'4':this['commandStartTime']=Date[_0x95084d(0x20d)]();continue;case'5':this['command']=_0x1c1d9e;continue;case'6':this['nodeVersion']=process[_0x95084d(0x219)];continue;case'7':this[_0x95084d(0x1ed)]=_0x1cfe65[_0x95084d(0x239)](getCurrentVersion);continue;case'8':this['platform']=process['platform'];continue;}break;}}['setContext'](_0x4143ad){const _0x37fb87=_0x443264;if(_0x4143ad['featureId'])this['featureId']=_0x4143ad[_0x37fb87(0x230)];if(_0x4143ad['checklistItemId'])this['checklistItemId']=_0x4143ad[_0x37fb87(0x1f1)];if(_0x4143ad['browserSessionId'])this[_0x37fb87(0x202)]=_0x4143ad[_0x37fb87(0x202)];if(_0x4143ad['transport'])this[_0x37fb87(0x22f)]=_0x4143ad[_0x37fb87(0x22f)];}async[_0x443264(0x233)](_0x38a2bb){const _0x55da43=_0x443264,_0x49e0cc={'NCdbb':_0x55da43(0x207)},_0x124f2d=this[_0x55da43(0x20c)]({'eventType':_0x49e0cc[_0x55da43(0x1ea)],'metadata':_0x38a2bb});await this['sendImmediate'](_0x124f2d);}async[_0x443264(0x215)](_0x21980e,_0x207d20){const _0x1868fc=_0x443264,_0x4b6f19={'BhyhI':_0x1868fc(0x216),'JXjAQ':function(_0x3eb6b8,_0x171b34){return _0x3eb6b8-_0x171b34;}},_0x5c08d8=this[_0x1868fc(0x20c)]({'eventType':_0x4b6f19[_0x1868fc(0x217)],'outcome':_0x21980e,'durationMs':_0x4b6f19['JXjAQ'](Date[_0x1868fc(0x20d)](),this[_0x1868fc(0x1f7)]),'metadata':_0x207d20});await this['sendImmediate'](_0x5c08d8),await this[_0x1868fc(0x227)]();}async['trackCommandError'](_0x556897,_0x5d6922){const _0x1fec07=_0x443264,_0x46857a={'aHXMu':function(_0x81beb1,_0x1514ed,_0xec20e9){return _0x81beb1(_0x1514ed,_0xec20e9);},'WAIIG':function(_0x1f6f98,_0x128ef8){return _0x1f6f98(_0x128ef8);},'pilPm':_0x1fec07(0x20a)},_0x13f042=this['buildEvent']({'eventType':_0x1fec07(0x214),'errorMessage':_0x46857a['aHXMu'](truncate,_0x556897 instanceof Error?_0x556897[_0x1fec07(0x208)]:_0x46857a[_0x1fec07(0x203)](String,_0x556897),0x1f4),'errorType':_0x556897 instanceof Error?_0x556897[_0x1fec07(0x225)][_0x1fec07(0x200)]:_0x46857a[_0x1fec07(0x236)],'durationMs':Date['now']()-this[_0x1fec07(0x1f7)],'metadata':_0x5d6922});await this['sendImmediate'](_0x13f042),await this['flush']();}[_0x443264(0x1ff)](_0x3c4240,_0x2af014){const _0x3ab550=_0x443264,_0x27c70a={'LMCAY':_0x3ab550(0x20f)};this[_0x3ab550(0x240)]++,this[_0x3ab550(0x222)][_0x3ab550(0x226)](_0x3c4240,Date['now']());const _0x2a3cac=this[_0x3ab550(0x20c)]({'eventType':_0x27c70a[_0x3ab550(0x22d)],'phase':_0x3c4240,'phaseIndex':this['phaseCounter'],'metadata':_0x2af014});this[_0x3ab550(0x21a)]['push'](_0x2a3cac);}[_0x443264(0x20e)](_0xb947af,_0x5b7c50){const _0x5e87f4=_0x443264,_0x4132c3={'HiLza':function(_0x4c14ab,_0x1279d9){return _0x4c14ab-_0x1279d9;},'INJwb':_0x5e87f4(0x1f9)},_0x1ecb53=this[_0x5e87f4(0x222)][_0x5e87f4(0x211)](_0xb947af),_0x33553e=_0x1ecb53?_0x4132c3['HiLza'](Date['now'](),_0x1ecb53):undefined;this[_0x5e87f4(0x222)][_0x5e87f4(0x220)](_0xb947af);const _0x2fecba=this['buildEvent']({'eventType':_0x4132c3[_0x5e87f4(0x1e7)],'phase':_0xb947af,'durationMs':_0x33553e,'metadata':_0x5b7c50});this[_0x5e87f4(0x21a)][_0x5e87f4(0x205)](_0x2fecba),this['buffer'][_0x5e87f4(0x238)]>=0xa&&this['flushAsync']();}async[_0x443264(0x1ec)](_0xb90057,_0x227818,_0x14cc83){const _0x20f199=_0x443264,_0x901538={'UsYty':function(_0x44fd4a,_0x33e8b7){return _0x44fd4a-_0x33e8b7;},'iUhhp':function(_0x100cbe,_0x184cf3){return _0x100cbe instanceof _0x184cf3;},'IDPfp':function(_0x19322e,_0x356105){return _0x19322e(_0x356105);},'tRXAo':'Unknown'},_0x227aab=this[_0x20f199(0x222)][_0x20f199(0x211)](_0xb90057),_0x1840e2=_0x227aab?_0x901538['UsYty'](Date[_0x20f199(0x20d)](),_0x227aab):undefined;this['phaseStartTimes']['delete'](_0xb90057);const _0x1f5725=this[_0x20f199(0x20c)]({'eventType':_0x20f199(0x228),'phase':_0xb90057,'durationMs':_0x1840e2,'errorMessage':truncate(_0x901538[_0x20f199(0x21e)](_0x227818,Error)?_0x227818[_0x20f199(0x208)]:_0x901538['IDPfp'](String,_0x227818),0x1f4),'errorType':_0x901538['iUhhp'](_0x227818,Error)?_0x227818['constructor']['name']:_0x901538[_0x20f199(0x1fe)],'metadata':_0x14cc83});await this['sendImmediate'](_0x1f5725);}async[_0x443264(0x227)](){const _0x17cec9=_0x443264,_0x413dc2={'wMLuI':function(_0x485990,_0x2c15fc){return _0x485990===_0x2c15fc;}};if(_0x413dc2[_0x17cec9(0x209)](this['buffer']['length'],0x0))return;const _0x148ec5=this[_0x17cec9(0x21a)][_0x17cec9(0x22e)](0x0);try{await this['sendBatch'](_0x148ec5);}catch{}}[_0x443264(0x20c)](_0x107dff){const _0x420be2=_0x443264;return{'eventType':_0x107dff[_0x420be2(0x1fd)],'command':this['command'],'commandId':this[_0x420be2(0x23b)],'deviceId':this[_0x420be2(0x1fa)],'timestamp':new Date()[_0x420be2(0x221)](),'durationMs':_0x107dff['durationMs'],'phase':_0x107dff['phase'],'phaseIndex':_0x107dff[_0x420be2(0x231)],'outcome':_0x107dff[_0x420be2(0x1fb)],'errorMessage':_0x107dff[_0x420be2(0x223)],'errorType':_0x107dff[_0x420be2(0x218)],'featureId':this[_0x420be2(0x230)],'checklistItemId':this[_0x420be2(0x1f1)],'browserSessionId':this['browserSessionId'],'transport':this['transport'],'evaluation':_0x107dff['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0x420be2(0x1f8)],'cwd':process[_0x420be2(0x1e9)](),'isTty':this[_0x420be2(0x229)],'isCI':this['isCI'],'metadata':_0x107dff['metadata']};}async[_0x443264(0x1f0)](_0x91c0e5){const _0x59fb7f=_0x443264;try{await this[_0x59fb7f(0x1ef)]([_0x91c0e5]);}catch{}}['flushAsync'](){const _0x476985=_0x443264;if(this['flushing'])return;this['flushing']=this[_0x476985(0x227)]()['finally'](()=>{const _0xcbf2=_0x476985;this[_0xcbf2(0x232)]=null;});}async['sendBatch'](_0x5249a9){const _0x3863c8=_0x443264,_0x1d7660={'eAUGx':function(_0x4953f0){return _0x4953f0();},'sZskw':'application/json','xWwVq':_0x3863c8(0x204)},_0x30c6b0=await _0x1d7660[_0x3863c8(0x23a)](getToken)['catch'](()=>null),_0x38dd18=_0x1d7660['eAUGx'](getApiBaseUrl),_0x6b4821={'Content-Type':_0x1d7660['sZskw']};_0x30c6b0&&(_0x6b4821[_0x1d7660['xWwVq']]='Bearer\x20'+_0x30c6b0);const _0x3b0d8b={'events':_0x5249a9};process[_0x3863c8(0x22c)][_0x3863c8(0x1fc)]&&console['error'](_0x3863c8(0x22a)+_0x5249a9[_0x3863c8(0x238)]+_0x3863c8(0x22b)+_0x38dd18+'/api/v1/mcp/cli-telemetry');const _0x53911f=new AbortController(),_0x11d2a3=setTimeout(()=>_0x53911f[_0x3863c8(0x235)](),0x1388);try{await fetch(_0x38dd18+_0x3863c8(0x224),{'method':_0x3863c8(0x1e6),'headers':_0x6b4821,'body':JSON['stringify'](_0x3b0d8b),'signal':_0x53911f[_0x3863c8(0x23f)]});}finally{clearTimeout(_0x11d2a3);}}}let currentCollector=null;export function createTelemetryCollector(_0x3fa490){return currentCollector=new TelemetryCollector(_0x3fa490),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x59229d,_0x1b8c2a,_0x1210c7){const _0x4600c0=_0x443264,_0x43a827=createTelemetryCollector(_0x59229d);await _0x43a827['trackCommandStart'](_0x1210c7);try{const _0x47be9f=await _0x1b8c2a(_0x43a827);return await _0x43a827['trackCommandEnd'](_0x4600c0(0x21f)),_0x47be9f;}catch(_0x443778){await _0x43a827['trackCommandError'](_0x443778);throw _0x443778;}finally{await _0x43a827[_0x4600c0(0x227)]();}}function truncate(_0x26dbfc,_0x3e7bb8){const _0x53ec0e=_0x443264,_0x2b7e5d={'DWRxw':function(_0x19503d,_0x4d1e6f){return _0x19503d>_0x4d1e6f;},'PmbQF':function(_0x4e0e28,_0x570fba){return _0x4e0e28+_0x570fba;}};return _0x2b7e5d['DWRxw'](_0x26dbfc['length'],_0x3e7bb8)?_0x2b7e5d[_0x53ec0e(0x212)](_0x26dbfc[_0x53ec0e(0x1e8)](0x0,_0x3e7bb8),_0x53ec0e(0x1ee)):_0x26dbfc;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0xb9919f,_0x2bc926){const _0x3fa86f=_0x3b2b,_0x5984e0=_0xb9919f();while(!![]){try{const _0x35d900=parseInt(_0x3fa86f(0x13e))/0x1+-parseInt(_0x3fa86f(0x149))/0x2*(parseInt(_0x3fa86f(0x12f))/0x3)+parseInt(_0x3fa86f(0x13b))/0x4+-parseInt(_0x3fa86f(0x132))/0x5+-parseInt(_0x3fa86f(0x14a))/0x6*(parseInt(_0x3fa86f(0x14f))/0x7)+parseInt(_0x3fa86f(0x15e))/0x8*(-parseInt(_0x3fa86f(0x154))/0x9)+-parseInt(_0x3fa86f(0x12e))/0xa*(-parseInt(_0x3fa86f(0x14b))/0xb);if(_0x35d900===_0x2bc926)break;else _0x5984e0['push'](_0x5984e0['shift']());}catch(_0x86b2ef){_0x5984e0['push'](_0x5984e0['shift']());}}}(_0x4b12,0xd219d));function _0x4b12(){const _0x100f41=['SEuyQ','27mKyHaJ','eduuH','afterSnapshot','IXKOz','XyIcj','point','pageId','abs','utf-8','monotonicTime','190160GgBJUq','hxUrV','1740GeMeJU','493203JWxySm','FqtRM','getTime','2918895UwPrVS','get','push','name','apiName','callId','frame-snapshot','url','goto','1989580jXUCqu','inputSnapshot','string','1040814PnQiPR','startTime','params','filter','ghGrQ','context-options','bOEBM','type','set','EDcPd','values','10uhBOZN','126gHjuTp','71896ccjjZd','beforeSnapshot','mtnvS','frameUrl','112602klvGOP','input','method','length'];_0x4b12=function(){return _0x100f41;};return _0x4b12();}import{readdir,readFile}from'fs/promises';function _0x3b2b(_0x339a1a,_0x1eac39){_0x339a1a=_0x339a1a-0x12e;const _0x4b1216=_0x4b12();let _0x3b2bee=_0x4b1216[_0x339a1a];return _0x3b2bee;}import{join}from'path';export async function mapStepsToTraceSnapshots(_0x137202,_0x137f30){const _0x1bf89f=_0x3b2b,_0x254e0b={'SEuyQ':function(_0x8e2dc2,_0x47dcc0,_0x978843){return _0x8e2dc2(_0x47dcc0,_0x978843);},'FqtRM':function(_0x340eea,_0x399ee9){return _0x340eea(_0x399ee9);},'ghGrQ':function(_0x309861,_0x597033){return _0x309861===_0x597033;},'hxUrV':function(_0x575222,_0x43a1ce){return _0x575222===_0x43a1ce;},'mtnvS':function(_0xd60731,_0x4f06c8){return _0xd60731===_0x4f06c8;},'vddiS':function(_0xdd11fa,_0x5cbd3f){return _0xdd11fa-_0x5cbd3f;},'XyIcj':'before','CmeNZ':_0x1bf89f(0x150),'GcizL':'after','KjgUQ':function(_0x4970b9,_0x5142ca){return _0x4970b9===_0x5142ca;},'eduuH':_0x1bf89f(0x13d),'IXKOz':function(_0x5e863f,_0x118efd){return _0x5e863f===_0x118efd;},'XlgGl':function(_0x54ef68,_0x21f180){return _0x54ef68-_0x21f180;},'EDcPd':function(_0x56352f,_0x3dd1bc){return _0x56352f<_0x3dd1bc;},'bOEBM':function(_0x13832c,_0x31b60c){return _0x13832c<_0x31b60c;}},_0x1f845c=new Map();if(_0x254e0b[_0x1bf89f(0x142)](_0x137f30[_0x1bf89f(0x152)],0x0))return _0x1f845c;const _0x3c02a4=[],_0x3bb5f5=async _0x356f5e=>{const _0x1ed261=_0x1bf89f,_0x3cbf5e=await readdir(_0x356f5e,{'withFileTypes':!![]});for(const _0x5534ed of _0x3cbf5e){const _0x4f2a5a=_0x254e0b[_0x1ed261(0x153)](join,_0x356f5e,_0x5534ed[_0x1ed261(0x135)]);if(_0x5534ed['isDirectory']())await _0x254e0b[_0x1ed261(0x130)](_0x3bb5f5,_0x4f2a5a);else _0x5534ed['name']['endsWith']('.trace')&&_0x3c02a4['push'](_0x4f2a5a);}};await _0x254e0b[_0x1bf89f(0x130)](_0x3bb5f5,_0x137202);if(_0x254e0b[_0x1bf89f(0x15f)](_0x3c02a4['length'],0x0))return _0x1f845c;const _0x3498e=[];for(const _0x43c9d3 of _0x3c02a4){const _0x593bcd=await readFile(_0x43c9d3,_0x1bf89f(0x15c)),_0x14b05b=_0x593bcd['split']('\x0a')[_0x1bf89f(0x141)](_0x10b4a2=>_0x10b4a2['trim']());for(const _0x485b86 of _0x14b05b){try{_0x3498e[_0x1bf89f(0x134)](JSON['parse'](_0x485b86));}catch{}}}if(_0x254e0b[_0x1bf89f(0x14d)](_0x3498e[_0x1bf89f(0x152)],0x0))return _0x1f845c;const _0x39dc97=_0x3498e['find'](_0xe09c8f=>_0xe09c8f['type']===_0x1bf89f(0x143));if(!_0x39dc97)return _0x1f845c;const _0x3232ca=_0x254e0b['vddiS'](_0x39dc97['wallTime'],_0x39dc97[_0x1bf89f(0x15d)]),_0x176f38=new Map();for(const _0x3c3884 of _0x3498e){switch(_0x3c3884['type']){case _0x254e0b[_0x1bf89f(0x158)]:{const _0x2a8014=_0x3c3884;_0x176f38[_0x1bf89f(0x146)](_0x2a8014[_0x1bf89f(0x137)],{'callId':_0x2a8014['callId'],'startTime':_0x2a8014[_0x1bf89f(0x13f)],'endTime':0x0,'method':_0x2a8014[_0x1bf89f(0x151)],'apiName':_0x2a8014[_0x1bf89f(0x136)],'params':_0x2a8014[_0x1bf89f(0x140)],'pageId':_0x2a8014[_0x1bf89f(0x15a)],'beforeSnapshot':_0x2a8014[_0x1bf89f(0x14c)]});break;}case _0x254e0b['CmeNZ']:{const _0x392fbc=_0x3c3884,_0x179ec5=_0x176f38[_0x1bf89f(0x133)](_0x392fbc['callId']);if(_0x179ec5){if(_0x392fbc[_0x1bf89f(0x13c)])_0x179ec5[_0x1bf89f(0x13c)]=_0x392fbc[_0x1bf89f(0x13c)];if(_0x392fbc['point'])_0x179ec5[_0x1bf89f(0x159)]=_0x392fbc['point'];}break;}case _0x254e0b['GcizL']:{const _0x3572f5=_0x3c3884,_0x4d76a2=_0x176f38['get'](_0x3572f5[_0x1bf89f(0x137)]);if(_0x4d76a2){_0x4d76a2['endTime']=_0x3572f5['endTime'];if(_0x3572f5[_0x1bf89f(0x156)])_0x4d76a2['afterSnapshot']=_0x3572f5[_0x1bf89f(0x156)];}break;}}}const _0x2d98fc=Array['from'](_0x176f38[_0x1bf89f(0x148)]())[_0x1bf89f(0x141)](_0x4cd1f6=>_0x4cd1f6['endTime']>0x0&&(_0x4cd1f6[_0x1bf89f(0x156)]||_0x4cd1f6[_0x1bf89f(0x14c)]))['sort']((_0x449027,_0x7b9923)=>_0x449027['startTime']-_0x7b9923[_0x1bf89f(0x13f)]);if(_0x2d98fc['length']===0x0)return _0x1f845c;const _0xd63fab=new Map();for(const _0x27be01 of _0x3498e){if(_0x27be01['type']===_0x1bf89f(0x138)){const _0x5f5823=_0x27be01['snapshot'];_0x5f5823?.['snapshotName']&&_0x5f5823?.['frameUrl']&&_0xd63fab['set'](_0x5f5823['snapshotName'],_0x5f5823[_0x1bf89f(0x14e)]);}}const _0x7f4696=new Map();for(const _0x24939e of _0x2d98fc){const _0x1851f4=_0x24939e[_0x1bf89f(0x140)]?.[_0x1bf89f(0x139)];_0x24939e['method']===_0x1bf89f(0x13a)&&typeof _0x1851f4==='string'&&_0x24939e['pageId']&&_0x7f4696['set'](_0x24939e['pageId'],_0x1851f4);}for(const _0x43493e of _0x3498e){const _0x5b6343=_0x43493e,_0xf8824f=_0x5b6343['params'],_0x3ebd8e=_0xf8824f?.[_0x1bf89f(0x139)];_0x5b6343[_0x1bf89f(0x145)]==='event'&&_0x254e0b['KjgUQ'](_0x5b6343[_0x1bf89f(0x151)],'navigated')&&_0x254e0b[_0x1bf89f(0x14d)](typeof _0x3ebd8e,_0x254e0b[_0x1bf89f(0x155)])&&_0x254e0b[_0x1bf89f(0x157)](typeof _0x5b6343['pageId'],_0x254e0b['eduuH'])&&_0x7f4696[_0x1bf89f(0x146)](_0x5b6343[_0x1bf89f(0x15a)],_0x3ebd8e);}for(const _0x184f13 of _0x137f30){const _0x268144=new Date(_0x184f13['capturedAt'])[_0x1bf89f(0x131)](),_0x2b9e2d=_0x254e0b['XlgGl'](_0x268144,_0x3232ca);let _0x14b19c=null,_0x577396=Infinity;for(const _0x536c9b of _0x2d98fc){const _0x2179c4=Math[_0x1bf89f(0x15b)](_0x254e0b['XlgGl'](_0x536c9b['endTime'],_0x2b9e2d));_0x254e0b[_0x1bf89f(0x147)](_0x2179c4,_0x577396)&&(_0x577396=_0x2179c4,_0x14b19c=_0x536c9b);}if(!_0x14b19c)continue;const _0x41dd4c=_0x14b19c['afterSnapshot']||_0x14b19c['beforeSnapshot'];if(!_0x41dd4c)continue;const _0x501aba=_0x14b19c[_0x1bf89f(0x15a)]||'page@0';let _0x108f86=_0xd63fab['get'](_0x41dd4c)||_0x7f4696[_0x1bf89f(0x133)](_0x501aba)||'';if(!_0x108f86)for(let _0x18aa15=_0x2d98fc['indexOf'](_0x14b19c);_0x18aa15>=0x0;_0x18aa15--){const _0x539af4=_0x2d98fc[_0x18aa15][_0x1bf89f(0x140)]?.['url'];if(_0x2d98fc[_0x18aa15][_0x1bf89f(0x151)]===_0x1bf89f(0x13a)&&typeof _0x539af4===_0x254e0b['eduuH']){_0x108f86=_0x539af4;break;}}let _0x23d0b9,_0x32787c;const _0x94f7ec=_0x2d98fc['indexOf'](_0x14b19c);if(_0x94f7ec>=0x0&&_0x254e0b[_0x1bf89f(0x144)](_0x94f7ec,_0x254e0b['vddiS'](_0x2d98fc['length'],0x1))){const _0x3d71f0=_0x2d98fc[_0x94f7ec+0x1];_0x3d71f0['point']&&_0x3d71f0['inputSnapshot']&&(_0x23d0b9=_0x3d71f0[_0x1bf89f(0x159)],_0x32787c=_0x3d71f0['inputSnapshot']);}_0x1f845c[_0x1bf89f(0x146)](_0x184f13['stepId'],{'snapshotName':_0x41dd4c,'inputSnapshotName':_0x32787c,'pageId':_0x501aba,'pageUrl':_0x108f86,'callId':_0x14b19c['callId'],'point':_0x23d0b9});}return _0x1f845c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x7724(_0x550961,_0x3e02fc){_0x550961=_0x550961-0x1d8;const _0x4c4db4=_0x4c4d();let _0x772417=_0x4c4db4[_0x550961];return _0x772417;}(function(_0x227cbf,_0x1f59e3){const _0x1f1279=_0x7724,_0x1f63e2=_0x227cbf();while(!![]){try{const _0x38e4e9=-parseInt(_0x1f1279(0x1df))/0x1*(-parseInt(_0x1f1279(0x1e3))/0x2)+parseInt(_0x1f1279(0x1e7))/0x3+-parseInt(_0x1f1279(0x1d8))/0x4+-parseInt(_0x1f1279(0x1dc))/0x5*(parseInt(_0x1f1279(0x1de))/0x6)+parseInt(_0x1f1279(0x1e1))/0x7+-parseInt(_0x1f1279(0x1d9))/0x8+parseInt(_0x1f1279(0x1e4))/0x9;if(_0x38e4e9===_0x1f59e3)break;else _0x1f63e2['push'](_0x1f63e2['shift']());}catch(_0x30dcca){_0x1f63e2['push'](_0x1f63e2['shift']());}}}(_0x4c4d,0xd56be));function _0x4c4d(){const _0x37d55c=['Bearer\x20','1325562tNQifP','1523qLduaP','statusText','622664SGIvLM','/api/v1/mcp/me','2246qVQGMM','26532657bKPxTZ','nWYsk','json','1529520akYJzn','GET','6149112ZRDgmG','12161440cCeRIG','message','status','30eBCCSJ'];_0x4c4d=function(){return _0x37d55c;};return _0x4c4d();}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x5db0fa){const _0x1f9258=_0x7724,_0x3c909d={'FOXqg':function(_0x11d3a7,_0x1fa0a2,_0x41d503){return _0x11d3a7(_0x1fa0a2,_0x41d503);},'nWYsk':function(_0xf4db2e,_0x321974){return _0xf4db2e instanceof _0x321974;}},_0x4d66be=getApiBaseUrl();try{const _0x5f0e87=await _0x3c909d['FOXqg'](fetch,_0x4d66be+_0x1f9258(0x1e2),{'method':_0x1f9258(0x1e8),'headers':{'Authorization':_0x1f9258(0x1dd)+_0x5db0fa}});if(!_0x5f0e87['ok'])return{'success':![],'error':_0x5f0e87['status']+'\x20'+_0x5f0e87[_0x1f9258(0x1e0)],'status':_0x5f0e87[_0x1f9258(0x1db)]};const _0x47b243=await _0x5f0e87[_0x1f9258(0x1e6)]();return{'success':!![],'user':_0x47b243};}catch(_0x330c9b){return{'success':![],'error':_0x3c909d[_0x1f9258(0x1e5)](_0x330c9b,Error)?_0x330c9b[_0x1f9258(0x1da)]:String(_0x330c9b)};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x34bb6c,_0x386bdf){const _0x5e7332=_0x1e08,_0x35004a=_0x34bb6c();while(!![]){try{const _0x1cd233=parseInt(_0x5e7332(0x194))/0x1+parseInt(_0x5e7332(0x1a0))/0x2+-parseInt(_0x5e7332(0x191))/0x3+parseInt(_0x5e7332(0x19a))/0x4+-parseInt(_0x5e7332(0x1a3))/0x5+-parseInt(_0x5e7332(0x198))/0x6+-parseInt(_0x5e7332(0x19c))/0x7;if(_0x1cd233===_0x386bdf)break;else _0x35004a['push'](_0x35004a['shift']());}catch(_0x1dc812){_0x35004a['push'](_0x35004a['shift']());}}}(_0x46e2,0xb0232));import{readFileSync}from'fs';function _0x46e2(){const _0x41b31c=['veYBJ','142972uUEAUj','map','package.json','tcDRe','1978806TMzSTx','split','5723912XIGevy','gDMgC','4987500cFBRGT','version','lSTMC','EFwUW','1562794GThhkF','QbjdX','\x20version','838150sJBztY','iDnLx','1271874eYHySL','mmRWa'];_0x46e2=function(){return _0x41b31c;};return _0x46e2();}import{existsSync}from'fs';import{execSync}from'child_process';function _0x1e08(_0x970957,_0x33b427){_0x970957=_0x970957-0x191;const _0x46e28c=_0x46e2();let _0x1e0863=_0x46e28c[_0x970957];return _0x1e0863;}import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x5333d7=_0x1e08,_0xa659b8={'veYBJ':function(_0x25fdf9,_0x1276ad,_0x1246e8,_0x17b76d,_0x53329d){return _0x25fdf9(_0x1276ad,_0x1246e8,_0x17b76d,_0x53329d);},'FfAsY':'package.json','QbjdX':function(_0x256a31,_0x16cf2e){return _0x256a31(_0x16cf2e);},'EFwUW':function(_0x799c71,_0x4d956e,_0x1be2b4){return _0x799c71(_0x4d956e,_0x1be2b4);},'uFBTM':'utf-8','wBTlH':'unknown'},_0x348f89=[_0xa659b8[_0x5333d7(0x193)](join,__dirname,'..','..',_0xa659b8['FfAsY']),join(__dirname,'..','..','..',_0x5333d7(0x196))];for(const _0x585d86 of _0x348f89){if(_0xa659b8[_0x5333d7(0x1a1)](existsSync,_0x585d86))try{const _0x14da49=JSON['parse'](_0xa659b8[_0x5333d7(0x19f)](readFileSync,_0x585d86,_0xa659b8['uFBTM']));return _0x14da49[_0x5333d7(0x19d)]||_0xa659b8['wBTlH'];}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x26b5cc=_0x1e08,_0x41ef8e={'iDnLx':function(_0x15541e,_0x371626,_0xa1f8e){return _0x15541e(_0x371626,_0xa1f8e);},'lSTMC':'pipe','gDMgC':function(_0x47c533,_0x3bfd9b){return _0x47c533(_0x3bfd9b);}};try{const _0x3d8583=_0x41ef8e[_0x26b5cc(0x1a4)](execSync,'npm\x20view\x20'+PACKAGE_NAME+_0x26b5cc(0x1a2),{'encoding':'utf-8','timeout':0x2710,'stdio':[_0x41ef8e['lSTMC'],_0x41ef8e[_0x26b5cc(0x19e)],_0x41ef8e['lSTMC']]});return{'version':_0x3d8583['trim']()};}catch(_0x2163c0){const _0x3aabdc=_0x2163c0 instanceof Error?_0x2163c0['message']:_0x41ef8e[_0x26b5cc(0x19b)](String,_0x2163c0);return{'error':_0x3aabdc};}}export function compareVersions(_0x4d82b8,_0x453fbd){const _0x4df7c5=_0x1e08,_0x15e2c0={'mmRWa':function(_0x42528f,_0x46e38b){return _0x42528f<_0x46e38b;},'tcDRe':function(_0x435d52,_0x4ba36c){return _0x435d52>_0x4ba36c;},'dgpfb':function(_0x1960d8,_0x2a3871){return _0x1960d8<_0x2a3871;}},_0x797d10=_0x4d82b8[_0x4df7c5(0x199)]('.')[_0x4df7c5(0x195)](Number),_0x4efa69=_0x453fbd['split']('.')[_0x4df7c5(0x195)](Number);for(let _0x5d02df=0x0;_0x15e2c0[_0x4df7c5(0x192)](_0x5d02df,0x3);_0x5d02df++){const _0x53e426=_0x797d10[_0x5d02df]||0x0,_0x2e30fa=_0x4efa69[_0x5d02df]||0x0;if(_0x15e2c0[_0x4df7c5(0x197)](_0x2e30fa,_0x53e426))return 0x1;if(_0x15e2c0['dgpfb'](_0x2e30fa,_0x53e426))return-0x1;}return 0x0;}
|