@ranger-testing/ranger-cli 2.4.6 → 2.4.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/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/claudeOverrideSettings.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/tokenRefresh.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/build/skills/ranger/SKILL.md +38 -41
- package/build/skills/ranger/create.md +5 -13
- package/build/skills/ranger/feedback.md +3 -3
- package/build/skills/ranger/start.md +13 -13
- package/build/skills/ranger/verify.md +15 -28
- package/package.json +5 -3
- package/scripts/postinstall.js +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x17d01c=_0x427c;(function(_0x15a05f,_0x3bfdc2){const _0x535765=_0x427c,_0x45443c=_0x15a05f();while(!![]){try{const _0x2448a2=-parseInt(_0x535765(0xa7))/0x1+-parseInt(_0x535765(0xe1))/0x2*(parseInt(_0x535765(0xb4))/0x3)+parseInt(_0x535765(0xc3))/0x4*(parseInt(_0x535765(0xdb))/0x5)+parseInt(_0x535765(0xad))/0x6*(parseInt(_0x535765(0xcd))/0x7)+-parseInt(_0x535765(0xb5))/0x8+parseInt(_0x535765(0xdc))/0x9*(parseInt(_0x535765(0x96))/0xa)+parseInt(_0x535765(0xd4))/0xb;if(_0x2448a2===_0x3bfdc2)break;else _0x45443c['push'](_0x45443c['shift']());}catch(_0x5e9e9b){_0x45443c['push'](_0x45443c['shift']());}}}(_0x3c08,0x4c4d8));import{randomUUID}from'crypto';function _0x427c(_0x5ebab9,_0x156368){_0x5ebab9=_0x5ebab9-0x95;const _0x3c08d7=_0x3c08();let _0x427cf2=_0x3c08d7[_0x5ebab9];return _0x427cf2;}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 _0x5b7b7d=_0x427c,_0x5a74fc={'eekbb':function(_0x402354,_0xad3938){return _0x402354(_0xad3938);},'IsLba':function(_0x4cb1de){return _0x4cb1de();},'dHHWp':function(_0x243be0,_0x547e25,_0xf3123c){return _0x243be0(_0x547e25,_0xf3123c);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x179e07=join(homedir(),_0x5b7b7d(0xe2)),_0x3b2dca=join(_0x179e07,'.session');if(_0x5a74fc['eekbb'](existsSync,_0x3b2dca)){cachedDeviceId=readFileSync(_0x3b2dca,_0x5b7b7d(0xa9))[_0x5b7b7d(0xba)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x5a74fc[_0x5b7b7d(0xbf)](randomUUID),mkdirSync(_0x179e07,{'recursive':!![]}),_0x5a74fc['dHHWp'](writeFileSync,_0x3b2dca,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x17d01c(0xc6)];['command'];[_0x17d01c(0xaa)];[_0x17d01c(0xc0)]=0x0;[_0x17d01c(0x9d)]=new Map();['flushing']=null;[_0x17d01c(0xab)];[_0x17d01c(0xc4)];[_0x17d01c(0xce)];['platform'];[_0x17d01c(0xa1)];[_0x17d01c(0x9b)];[_0x17d01c(0xde)];['checklistItemId'];['browserSessionId'];[_0x17d01c(0xb9)];constructor(_0x385720){const _0xd29568=_0x17d01c,_0x229b5d={'HoPDA':function(_0x4191db){return _0x4191db();},'MFXbQ':function(_0x40a381){return _0x40a381();}};this[_0xd29568(0xc6)]=_0x229b5d['HoPDA'](randomUUID),this[_0xd29568(0xb2)]=_0x385720,this[_0xd29568(0xaa)]=Date[_0xd29568(0xb0)](),this['deviceId']=_0x229b5d[_0xd29568(0xa6)](getDeviceId),this[_0xd29568(0xc4)]=_0x229b5d[_0xd29568(0xac)](getCurrentVersion),this[_0xd29568(0xce)]=process['version'],this[_0xd29568(0xbc)]=process['platform'],this['isTty']=process[_0xd29568(0xc7)][_0xd29568(0xca)]??![],this['isCI']=!!(process[_0xd29568(0xd0)]['CI']||process[_0xd29568(0xd0)]['GITHUB_ACTIONS']);}['setContext'](_0x226b9e){const _0x22c0d1=_0x17d01c;if(_0x226b9e[_0x22c0d1(0xde)])this['featureId']=_0x226b9e['featureId'];if(_0x226b9e[_0x22c0d1(0xdf)])this[_0x22c0d1(0xdf)]=_0x226b9e['checklistItemId'];if(_0x226b9e[_0x22c0d1(0x97)])this[_0x22c0d1(0x97)]=_0x226b9e[_0x22c0d1(0x97)];if(_0x226b9e[_0x22c0d1(0xb9)])this['transport']=_0x226b9e['transport'];}async[_0x17d01c(0xd6)](_0x4d0070){const _0x2720a4={'DSZco':'command_start'},_0x2f65d2=this['buildEvent']({'eventType':_0x2720a4['DSZco'],'metadata':_0x4d0070});await this['sendImmediate'](_0x2f65d2);}async['trackCommandEnd'](_0x55736e,_0x560ffb){const _0x4c4cf5=_0x17d01c,_0x15e61e={'iunNJ':'command_end','FRaZb':function(_0x16c7d4,_0x37deb2){return _0x16c7d4-_0x37deb2;}},_0x2127f6=this['buildEvent']({'eventType':_0x15e61e['iunNJ'],'outcome':_0x55736e,'durationMs':_0x15e61e[_0x4c4cf5(0xa8)](Date['now'](),this[_0x4c4cf5(0xaa)]),'metadata':_0x560ffb});await this['sendImmediate'](_0x2127f6),await this['flush']();}async['trackCommandError'](_0x314808,_0x5a0845){const _0xb05ea1=_0x17d01c,_0x537076={'UoBso':function(_0x104481,_0x2a3282,_0xba04be){return _0x104481(_0x2a3282,_0xba04be);},'SpcKn':function(_0x2591bf,_0x32339b){return _0x2591bf instanceof _0x32339b;},'VKQPf':function(_0x3b2fca,_0x5e24b7){return _0x3b2fca(_0x5e24b7);},'nAEek':'Unknown'},_0x277cbe=this[_0xb05ea1(0xcb)]({'eventType':'command_error','errorMessage':_0x537076[_0xb05ea1(0xd9)](truncate,_0x537076[_0xb05ea1(0xc9)](_0x314808,Error)?_0x314808['message']:_0x537076[_0xb05ea1(0xb7)](String,_0x314808),0x1f4),'errorType':_0x537076[_0xb05ea1(0xc9)](_0x314808,Error)?_0x314808[_0xb05ea1(0xd2)][_0xb05ea1(0x9a)]:_0x537076[_0xb05ea1(0xc8)],'durationMs':Date['now']()-this[_0xb05ea1(0xaa)],'metadata':_0x5a0845});await this['sendImmediate'](_0x277cbe),await this[_0xb05ea1(0xd8)]();}['trackPhaseStart'](_0x1b888d,_0x3ec438){const _0x2e7535=_0x17d01c;this['phaseCounter']++,this['phaseStartTimes'][_0x2e7535(0xe0)](_0x1b888d,Date[_0x2e7535(0xb0)]());const _0x1cf09a=this[_0x2e7535(0xcb)]({'eventType':_0x2e7535(0xbe),'phase':_0x1b888d,'phaseIndex':this['phaseCounter'],'metadata':_0x3ec438});this['buffer']['push'](_0x1cf09a);}[_0x17d01c(0xd5)](_0x450ddb,_0x1b7153){const _0x19c176=_0x17d01c,_0x8b759f=this[_0x19c176(0x9d)][_0x19c176(0xb1)](_0x450ddb),_0xac8d2a=_0x8b759f?Date['now']()-_0x8b759f:undefined;this['phaseStartTimes'][_0x19c176(0xd1)](_0x450ddb);const _0x1a6f73=this[_0x19c176(0xcb)]({'eventType':_0x19c176(0x9f),'phase':_0x450ddb,'durationMs':_0xac8d2a,'metadata':_0x1b7153});this[_0x19c176(0x99)]['push'](_0x1a6f73),this['buffer']['length']>=0xa&&this['flushAsync']();}async[_0x17d01c(0xaf)](_0x29cf4d,_0x37fd7d,_0x159f89){const _0x59f960=_0x17d01c,_0x57f1e3={'DMglZ':function(_0x359c70,_0xf306ae){return _0x359c70-_0xf306ae;},'kEsIb':function(_0x55efcb,_0x47190a){return _0x55efcb(_0x47190a);},'DprKG':function(_0x5103ca,_0x1564c0){return _0x5103ca instanceof _0x1564c0;}},_0x1ac6ae=this['phaseStartTimes'][_0x59f960(0xb1)](_0x29cf4d),_0x3e1376=_0x1ac6ae?_0x57f1e3[_0x59f960(0xda)](Date[_0x59f960(0xb0)](),_0x1ac6ae):undefined;this['phaseStartTimes']['delete'](_0x29cf4d);const _0x6bec8d=this[_0x59f960(0xcb)]({'eventType':_0x59f960(0xa0),'phase':_0x29cf4d,'durationMs':_0x3e1376,'errorMessage':truncate(_0x37fd7d instanceof Error?_0x37fd7d[_0x59f960(0xbb)]:_0x57f1e3['kEsIb'](String,_0x37fd7d),0x1f4),'errorType':_0x57f1e3['DprKG'](_0x37fd7d,Error)?_0x37fd7d[_0x59f960(0xd2)][_0x59f960(0x9a)]:'Unknown','metadata':_0x159f89});await this[_0x59f960(0xd7)](_0x6bec8d);}async['flush'](){const _0x5dffad=_0x17d01c;if(this[_0x5dffad(0x99)]['length']===0x0)return;const _0x5ecb73=this['buffer'][_0x5dffad(0xc1)](0x0);try{await this[_0x5dffad(0xbd)](_0x5ecb73);}catch{}}['buildEvent'](_0x270580){const _0x3261f8=_0x17d01c;return{'eventType':_0x270580['eventType'],'command':this['command'],'commandId':this['commandId'],'deviceId':this[_0x3261f8(0xab)],'timestamp':new Date()[_0x3261f8(0xb8)](),'durationMs':_0x270580[_0x3261f8(0x9c)],'phase':_0x270580['phase'],'phaseIndex':_0x270580['phaseIndex'],'outcome':_0x270580[_0x3261f8(0xa5)],'errorMessage':_0x270580['errorMessage'],'errorType':_0x270580['errorType'],'featureId':this[_0x3261f8(0xde)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x3261f8(0x97)],'transport':this['transport'],'evaluation':_0x270580['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this['platform'],'cwd':process[_0x3261f8(0xb6)](),'isTty':this['isTty'],'isCI':this['isCI'],'metadata':_0x270580[_0x3261f8(0x9e)]};}async['sendImmediate'](_0x55befa){const _0x3a88a3=_0x17d01c;try{await this[_0x3a88a3(0xbd)]([_0x55befa]);}catch{}}['flushAsync'](){const _0x14ed9f=_0x17d01c;if(this['flushing'])return;this[_0x14ed9f(0xa3)]=this['flush']()[_0x14ed9f(0xcf)](()=>{const _0x304cba=_0x14ed9f;this[_0x304cba(0xa3)]=null;});}async['sendBatch'](_0x657016){const _0x391f15=_0x17d01c,_0x41d8ce={'EhrMA':_0x391f15(0xb3),'ZLBAf':function(_0x4dc2a3,_0x2495ab,_0x131a8e){return _0x4dc2a3(_0x2495ab,_0x131a8e);},'MuSWc':function(_0x4949f5,_0x105c67,_0x293647){return _0x4949f5(_0x105c67,_0x293647);},'sBvzI':function(_0x528baa,_0x8811eb){return _0x528baa(_0x8811eb);}},_0x2a59f3=await getToken()['catch'](()=>null),_0x225db9=getApiBaseUrl(),_0x364d26={'Content-Type':_0x41d8ce['EhrMA']};_0x2a59f3&&(_0x364d26[_0x391f15(0xa2)]=_0x391f15(0x95)+_0x2a59f3);const _0x1104cf={'events':_0x657016};process[_0x391f15(0xd0)]['DEBUG']&&console[_0x391f15(0xcc)]('[telemetry]\x20Sending\x20'+_0x657016['length']+'\x20event(s)\x20to\x20'+_0x225db9+_0x391f15(0xd3));const _0x37b323=new AbortController(),_0x201c41=_0x41d8ce['ZLBAf'](setTimeout,()=>_0x37b323['abort'](),0x1388);try{await _0x41d8ce[_0x391f15(0xc2)](fetch,_0x225db9+_0x391f15(0xd3),{'method':'POST','headers':_0x364d26,'body':JSON['stringify'](_0x1104cf),'signal':_0x37b323['signal']});}finally{_0x41d8ce[_0x391f15(0x98)](clearTimeout,_0x201c41);}}}let currentCollector=null;export function createTelemetryCollector(_0x295ca2){return currentCollector=new TelemetryCollector(_0x295ca2),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x678df8,_0x57ccae,_0x4f6f2e){const _0x24316b=_0x17d01c,_0x1e3a48={'HNYCY':function(_0x5350ce,_0x2e1da2){return _0x5350ce(_0x2e1da2);}},_0x248a2d=createTelemetryCollector(_0x678df8);await _0x248a2d[_0x24316b(0xd6)](_0x4f6f2e);try{const _0x1f1535=await _0x1e3a48['HNYCY'](_0x57ccae,_0x248a2d);return await _0x248a2d[_0x24316b(0xc5)](_0x24316b(0xa4)),_0x1f1535;}catch(_0x13e0a0){await _0x248a2d[_0x24316b(0xae)](_0x13e0a0);throw _0x13e0a0;}finally{await _0x248a2d['flush']();}}function _0x3c08(){const _0x364a74=['nAEek','SpcKn','isTTY','buildEvent','error','4241454ZGOWEH','nodeVersion','finally','env','delete','constructor','/api/v1/mcp/cli-telemetry','3965709zYDOwR','trackPhaseEnd','trackCommandStart','sendImmediate','flush','UoBso','DMglZ','17910SlRrYV','126GnEseX','length','featureId','checklistItemId','set','4CicdXG','.ranger','Bearer\x20','115590tstJMN','browserSessionId','sBvzI','buffer','name','isCI','durationMs','phaseStartTimes','metadata','phase_end','phase_error','isTty','Authorization','flushing','success','outcome','HoPDA','244182zmLdyp','FRaZb','utf-8','commandStartTime','deviceId','MFXbQ','6bZDFbh','trackCommandError','trackPhaseError','now','get','command','application/json','827724vEhatY','2249752sDMxTn','cwd','VKQPf','toISOString','transport','trim','message','platform','sendBatch','phase_start','IsLba','phaseCounter','splice','MuSWc','292uyyfBb','cliVersion','trackCommandEnd','commandId','stdout'];_0x3c08=function(){return _0x364a74;};return _0x3c08();}function truncate(_0xd53a6b,_0x2b540c){const _0x171e3c=_0x17d01c,_0x1c2ece={'uVHaW':function(_0x355489,_0x2ce821){return _0x355489>_0x2ce821;},'bRpKk':function(_0x4b1f8b,_0x45d238){return _0x4b1f8b+_0x45d238;}};return _0x1c2ece['uVHaW'](_0xd53a6b[_0x171e3c(0xdd)],_0x2b540c)?_0x1c2ece['bRpKk'](_0xd53a6b['slice'](0x0,_0x2b540c),'...'):_0xd53a6b;}
|
|
1
|
+
const _0x23a414=_0x5d9d;(function(_0x2b60a8,_0x4be3d9){const _0x45c0bc=_0x5d9d,_0x5cd7d3=_0x2b60a8();while(!![]){try{const _0x3592ca=parseInt(_0x45c0bc(0x1ff))/0x1+-parseInt(_0x45c0bc(0x1f0))/0x2+parseInt(_0x45c0bc(0x1d8))/0x3*(parseInt(_0x45c0bc(0x1f2))/0x4)+-parseInt(_0x45c0bc(0x1f9))/0x5*(parseInt(_0x45c0bc(0x1dc))/0x6)+parseInt(_0x45c0bc(0x227))/0x7+-parseInt(_0x45c0bc(0x222))/0x8*(-parseInt(_0x45c0bc(0x1fa))/0x9)+-parseInt(_0x45c0bc(0x1e8))/0xa;if(_0x3592ca===_0x4be3d9)break;else _0x5cd7d3['push'](_0x5cd7d3['shift']());}catch(_0x23bda1){_0x5cd7d3['push'](_0x5cd7d3['shift']());}}}(_0x2ef9,0x7d588));function _0x2ef9(){const _0x53ccaa=['env','trackCommandStart','trim','12SYeNge','signal','isTty','outcome','1008666BnNMmp','command_start','QAJSw','flushing','splice','get','zcWoI','error','gRxfz','phase_start','.ranger','bjHRL','8046780bGGsRt','commandStartTime','transport','HdriT','trackPhaseEnd','browserSessionId','success','stringify','1397810CvvKDI','platform','786668tQxOIL','buffer','phaseStartTimes','POST','Bearer\x20','/api/v1/mcp/cli-telemetry','trackCommandEnd','15nNCHdI','9ocQgUC','trackCommandError','featureId','sendBatch','delete','712440twSvXI','buildEvent','cwd','now','\x20event(s)\x20to\x20','abort','HqERv','phase','phaseCounter','utf-8','oMosm','cliVersion','eventType','QULxg','errorMessage','length','flushAsync','checklistItemId','isCI','Unknown','ZRReR','JMnrt','...','trackPhaseError','kQlzY','nodeVersion','finally','dNHWJ','sendImmediate','1|4|8|0|2|6|7|5|3','set','flush','push','DEBUG','durationMs','7206584BwQYmz','AyMJO','deviceId','command','[telemetry]\x20Sending\x20','849807nARxIs'];_0x2ef9=function(){return _0x53ccaa;};return _0x2ef9();}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 _0x57fef3=_0x5d9d,_0x95703f={'zcWoI':function(_0x3672f9){return _0x3672f9();},'kQlzY':_0x57fef3(0x1e6),'wzOKT':'.session','HqERv':function(_0x222169,_0x48e90b,_0x2c66c4){return _0x222169(_0x48e90b,_0x2c66c4);},'TZnqp':_0x57fef3(0x208)};if(cachedDeviceId)return cachedDeviceId;try{const _0x25d6af=join(_0x95703f[_0x57fef3(0x1e2)](homedir),_0x95703f[_0x57fef3(0x217)]),_0x218c09=join(_0x25d6af,_0x95703f['wzOKT']);if(existsSync(_0x218c09)){cachedDeviceId=_0x95703f[_0x57fef3(0x205)](readFileSync,_0x218c09,_0x95703f['TZnqp'])[_0x57fef3(0x1d7)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x95703f[_0x57fef3(0x1e2)](randomUUID),mkdirSync(_0x25d6af,{'recursive':!![]}),writeFileSync(_0x218c09,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];['commandId'];['command'];[_0x23a414(0x1e9)];['phaseCounter']=0x0;[_0x23a414(0x1f4)]=new Map();[_0x23a414(0x1df)]=null;['deviceId'];[_0x23a414(0x20a)];['nodeVersion'];['platform'];['isTty'];[_0x23a414(0x211)];['featureId'];[_0x23a414(0x210)];['browserSessionId'];['transport'];constructor(_0x40edca){const _0x275d64=_0x23a414,_0x48d613={'DOKCn':function(_0x5be66b){return _0x5be66b();}},_0x5af2f7=_0x275d64(0x21c)['split']('|');let _0x27b81b=0x0;while(!![]){switch(_0x5af2f7[_0x27b81b++]){case'0':this[_0x275d64(0x224)]=_0x48d613['DOKCn'](getDeviceId);continue;case'1':this['commandId']=randomUUID();continue;case'2':this['cliVersion']=getCurrentVersion();continue;case'3':this['isCI']=!!(process['env']['CI']||process['env']['GITHUB_ACTIONS']);continue;case'4':this[_0x275d64(0x225)]=_0x40edca;continue;case'5':this[_0x275d64(0x1da)]=process['stdout']['isTTY']??![];continue;case'6':this[_0x275d64(0x218)]=process['version'];continue;case'7':this['platform']=process[_0x275d64(0x1f1)];continue;case'8':this[_0x275d64(0x1e9)]=Date['now']();continue;}break;}}['setContext'](_0x5b9f8f){const _0x1d97b7=_0x23a414;if(_0x5b9f8f[_0x1d97b7(0x1fc)])this[_0x1d97b7(0x1fc)]=_0x5b9f8f['featureId'];if(_0x5b9f8f[_0x1d97b7(0x210)])this['checklistItemId']=_0x5b9f8f['checklistItemId'];if(_0x5b9f8f[_0x1d97b7(0x1ed)])this['browserSessionId']=_0x5b9f8f['browserSessionId'];if(_0x5b9f8f['transport'])this[_0x1d97b7(0x1ea)]=_0x5b9f8f[_0x1d97b7(0x1ea)];}async[_0x23a414(0x1d6)](_0x429607){const _0x3a892d=_0x23a414,_0x435eaf=this['buildEvent']({'eventType':_0x3a892d(0x1dd),'metadata':_0x429607});await this[_0x3a892d(0x21b)](_0x435eaf);}async[_0x23a414(0x1f8)](_0x275150,_0x2a9efc){const _0x4e61ab=_0x23a414,_0x5514a9={'HdriT':function(_0x395431,_0x3ca9cb){return _0x395431-_0x3ca9cb;}},_0x38f9b7=this[_0x4e61ab(0x200)]({'eventType':'command_end','outcome':_0x275150,'durationMs':_0x5514a9[_0x4e61ab(0x1eb)](Date[_0x4e61ab(0x202)](),this['commandStartTime']),'metadata':_0x2a9efc});await this['sendImmediate'](_0x38f9b7),await this[_0x4e61ab(0x21e)]();}async[_0x23a414(0x1fb)](_0xdf0ccc,_0x362190){const _0x362ce6=_0x23a414,_0x362beb={'oMosm':'command_error','QULxg':function(_0x4566ce,_0x4f3faf){return _0x4566ce instanceof _0x4f3faf;},'AyMJO':'Unknown','XJETF':function(_0x1eb27d,_0x521217){return _0x1eb27d-_0x521217;}},_0x4ab0f2=this['buildEvent']({'eventType':_0x362beb[_0x362ce6(0x209)],'errorMessage':truncate(_0xdf0ccc instanceof Error?_0xdf0ccc['message']:String(_0xdf0ccc),0x1f4),'errorType':_0x362beb[_0x362ce6(0x20c)](_0xdf0ccc,Error)?_0xdf0ccc['constructor']['name']:_0x362beb[_0x362ce6(0x223)],'durationMs':_0x362beb['XJETF'](Date['now'](),this[_0x362ce6(0x1e9)]),'metadata':_0x362190});await this['sendImmediate'](_0x4ab0f2),await this['flush']();}['trackPhaseStart'](_0x2a6939,_0x521fc5){const _0x52850d=_0x23a414;this[_0x52850d(0x207)]++,this['phaseStartTimes'][_0x52850d(0x21d)](_0x2a6939,Date['now']());const _0xa28b5d=this[_0x52850d(0x200)]({'eventType':_0x52850d(0x1e5),'phase':_0x2a6939,'phaseIndex':this[_0x52850d(0x207)],'metadata':_0x521fc5});this['buffer']['push'](_0xa28b5d);}[_0x23a414(0x1ec)](_0x3669f3,_0x55eae9){const _0x1f6483=_0x23a414,_0x129d05={'mcDge':function(_0x2edfe9,_0xf59297){return _0x2edfe9-_0xf59297;},'RmhKa':function(_0x5bd225,_0x593fd2){return _0x5bd225>=_0x593fd2;}},_0x12ed59=this[_0x1f6483(0x1f4)][_0x1f6483(0x1e1)](_0x3669f3),_0x4ba984=_0x12ed59?_0x129d05['mcDge'](Date[_0x1f6483(0x202)](),_0x12ed59):undefined;this['phaseStartTimes'][_0x1f6483(0x1fe)](_0x3669f3);const _0x548154=this[_0x1f6483(0x200)]({'eventType':'phase_end','phase':_0x3669f3,'durationMs':_0x4ba984,'metadata':_0x55eae9});this[_0x1f6483(0x1f3)][_0x1f6483(0x21f)](_0x548154),_0x129d05['RmhKa'](this[_0x1f6483(0x1f3)][_0x1f6483(0x20e)],0xa)&&this[_0x1f6483(0x20f)]();}async[_0x23a414(0x216)](_0x28a6a3,_0x491701,_0x181a2b){const _0x3a1934=_0x23a414,_0x38a36f={'yqIjz':function(_0x3d2a3f,_0x38a07c){return _0x3d2a3f-_0x38a07c;},'QAJSw':'phase_error','JMnrt':function(_0x487af1,_0x4a52ad){return _0x487af1 instanceof _0x4a52ad;}},_0x120075=this[_0x3a1934(0x1f4)][_0x3a1934(0x1e1)](_0x28a6a3),_0x22a116=_0x120075?_0x38a36f['yqIjz'](Date[_0x3a1934(0x202)](),_0x120075):undefined;this['phaseStartTimes']['delete'](_0x28a6a3);const _0x4f3803=this['buildEvent']({'eventType':_0x38a36f[_0x3a1934(0x1de)],'phase':_0x28a6a3,'durationMs':_0x22a116,'errorMessage':truncate(_0x38a36f[_0x3a1934(0x214)](_0x491701,Error)?_0x491701['message']:String(_0x491701),0x1f4),'errorType':_0x491701 instanceof Error?_0x491701['constructor']['name']:_0x3a1934(0x212),'metadata':_0x181a2b});await this['sendImmediate'](_0x4f3803);}async[_0x23a414(0x21e)](){const _0x55f8a4=_0x23a414;if(this['buffer'][_0x55f8a4(0x20e)]===0x0)return;const _0x266e3d=this['buffer'][_0x55f8a4(0x1e0)](0x0);try{await this['sendBatch'](_0x266e3d);}catch{}}[_0x23a414(0x200)](_0x5c78fc){const _0x20a95d=_0x23a414;return{'eventType':_0x5c78fc[_0x20a95d(0x20b)],'command':this['command'],'commandId':this['commandId'],'deviceId':this[_0x20a95d(0x224)],'timestamp':new Date()['toISOString'](),'durationMs':_0x5c78fc[_0x20a95d(0x221)],'phase':_0x5c78fc[_0x20a95d(0x206)],'phaseIndex':_0x5c78fc['phaseIndex'],'outcome':_0x5c78fc[_0x20a95d(0x1db)],'errorMessage':_0x5c78fc[_0x20a95d(0x20d)],'errorType':_0x5c78fc['errorType'],'featureId':this[_0x20a95d(0x1fc)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x20a95d(0x1ed)],'transport':this['transport'],'evaluation':_0x5c78fc['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this['platform'],'cwd':process[_0x20a95d(0x201)](),'isTty':this['isTty'],'isCI':this['isCI'],'metadata':_0x5c78fc['metadata']};}async['sendImmediate'](_0x24d24f){const _0x2906fd=_0x23a414;try{await this[_0x2906fd(0x1fd)]([_0x24d24f]);}catch{}}['flushAsync'](){const _0x319c3b=_0x23a414;if(this['flushing'])return;this[_0x319c3b(0x1df)]=this['flush']()[_0x319c3b(0x219)](()=>{const _0x43c788=_0x319c3b;this[_0x43c788(0x1df)]=null;});}async[_0x23a414(0x1fd)](_0x5290ba){const _0x9e85e1=_0x23a414,_0x839312={'dNHWJ':function(_0x254321){return _0x254321();},'VaIio':function(_0x5364af,_0x74f2ad,_0x26a309){return _0x5364af(_0x74f2ad,_0x26a309);},'rZaGX':_0x9e85e1(0x1f5)},_0x4d873c=await _0x839312[_0x9e85e1(0x21a)](getToken)['catch'](()=>null),_0x43aa1d=getApiBaseUrl(),_0x5a4200={'Content-Type':'application/json'};_0x4d873c&&(_0x5a4200['Authorization']=_0x9e85e1(0x1f6)+_0x4d873c);const _0x571991={'events':_0x5290ba};process[_0x9e85e1(0x228)][_0x9e85e1(0x220)]&&console[_0x9e85e1(0x1e3)](_0x9e85e1(0x226)+_0x5290ba['length']+_0x9e85e1(0x203)+_0x43aa1d+'/api/v1/mcp/cli-telemetry');const _0x12a32e=new AbortController(),_0x11b7c6=setTimeout(()=>_0x12a32e[_0x9e85e1(0x204)](),0x1388);try{await _0x839312['VaIio'](fetch,_0x43aa1d+_0x9e85e1(0x1f7),{'method':_0x839312['rZaGX'],'headers':_0x5a4200,'body':JSON[_0x9e85e1(0x1ef)](_0x571991),'signal':_0x12a32e[_0x9e85e1(0x1d9)]});}finally{clearTimeout(_0x11b7c6);}}}function _0x5d9d(_0x4933a4,_0x5f08a5){_0x4933a4=_0x4933a4-0x1d6;const _0x2ef9d7=_0x2ef9();let _0x5d9da6=_0x2ef9d7[_0x4933a4];return _0x5d9da6;}let currentCollector=null;export function createTelemetryCollector(_0x3d7084){return currentCollector=new TelemetryCollector(_0x3d7084),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x37ada8,_0x10a317,_0x24efbb){const _0x596471=_0x23a414,_0x2c3256={'ZRReR':function(_0x1a71a1,_0x16637f){return _0x1a71a1(_0x16637f);},'bjHRL':_0x596471(0x1ee)},_0x50dc76=_0x2c3256[_0x596471(0x213)](createTelemetryCollector,_0x37ada8);await _0x50dc76[_0x596471(0x1d6)](_0x24efbb);try{const _0x30c4a4=await _0x10a317(_0x50dc76);return await _0x50dc76[_0x596471(0x1f8)](_0x2c3256[_0x596471(0x1e7)]),_0x30c4a4;}catch(_0xe3be77){await _0x50dc76[_0x596471(0x1fb)](_0xe3be77);throw _0xe3be77;}finally{await _0x50dc76['flush']();}}function truncate(_0xc35e41,_0x37132a){const _0x17095d=_0x23a414,_0x5cf0be={'gRxfz':function(_0x5c9fca,_0x38a788){return _0x5c9fca>_0x38a788;},'Venmc':_0x17095d(0x215)};return _0x5cf0be[_0x17095d(0x1e4)](_0xc35e41[_0x17095d(0x20e)],_0x37132a)?_0xc35e41['slice'](0x0,_0x37132a)+_0x5cf0be['Venmc']:_0xc35e41;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2c94fd,_0x175c4c){const _0x2842be=_0x5edd,_0x4c160e=_0x2c94fd();while(!![]){try{const _0x4e5d2f=parseInt(_0x2842be(0x19a))/0x1+parseInt(_0x2842be(0x192))/0x2*(-parseInt(_0x2842be(0x18e))/0x3)+parseInt(_0x2842be(0x197))/0x4+parseInt(_0x2842be(0x18d))/0x5+parseInt(_0x2842be(0x18c))/0x6*(parseInt(_0x2842be(0x18b))/0x7)+-parseInt(_0x2842be(0x196))/0x8+parseInt(_0x2842be(0x198))/0x9;if(_0x4e5d2f===_0x175c4c)break;else _0x4c160e['push'](_0x4c160e['shift']());}catch(_0x27931e){_0x4c160e['push'](_0x4c160e['shift']());}}}(_0x2a87,0xc8c3b));import{getApiBaseUrl}from'./environment.js';function _0x2a87(){const _0xd5b314=['1577269CUutcw','4286163mgGcmQ','6WhusvU','704540Hajywz','129ojcPTf','application/json','POST','MWpPh','45718StgFpN','json','token','/cli-auth/refresh','11440432TkqynC','1463756IMFORG','4850073enABBa','refreshToken'];_0x2a87=function(){return _0xd5b314;};return _0x2a87();}function _0x5edd(_0x333e2c,_0x16e8b0){_0x333e2c=_0x333e2c-0x18b;const _0x2a8743=_0x2a87();let _0x5eddf6=_0x2a8743[_0x333e2c];return _0x5eddf6;}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0xcd0083=_0x5edd,_0x2675ea={'CCtJy':function(_0x1f652d){return _0x1f652d();},'ePfae':function(_0x241c51,_0x3fd6f1,_0x4b5a5d){return _0x241c51(_0x3fd6f1,_0x4b5a5d);},'KNOXa':_0xcd0083(0x190),'MWpPh':function(_0x11e0b6,_0x4e6cf9){return _0x11e0b6(_0x4e6cf9);}},_0x523279=await _0x2675ea['CCtJy'](getRefreshToken);if(!_0x523279)return null;const _0x4b0c05=getApiBaseUrl();try{const _0x350ca7=await _0x2675ea['ePfae'](fetch,_0x4b0c05+_0xcd0083(0x195),{'method':_0x2675ea['KNOXa'],'headers':{'Content-Type':_0xcd0083(0x18f)},'body':JSON['stringify']({'refreshToken':_0x523279}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x350ca7['ok'])return null;const _0x178d5c=await _0x350ca7[_0xcd0083(0x193)]();return await _0x2675ea[_0xcd0083(0x191)](storeToken,_0x178d5c[_0xcd0083(0x194)]),await storeRefreshToken(_0x178d5c[_0xcd0083(0x199)]),_0x178d5c[_0xcd0083(0x194)];}catch{return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x1e85(_0x382835,_0x2c5f76){_0x382835=_0x382835-0xc4;const _0x17344b=_0x1734();let _0x1e850d=_0x17344b[_0x382835];return _0x1e850d;}(function(_0x365a17,_0x92b9fc){const _0x1f00aa=_0x1e85,_0x5cf5a7=_0x365a17();while(!![]){try{const _0x3120e0=-parseInt(_0x1f00aa(0xd7))/0x1*(-parseInt(_0x1f00aa(0xe4))/0x2)+-parseInt(_0x1f00aa(0xd3))/0x3*(parseInt(_0x1f00aa(0xed))/0x4)+parseInt(_0x1f00aa(0xe0))/0x5+-parseInt(_0x1f00aa(0xda))/0x6+-parseInt(_0x1f00aa(0xe9))/0x7*(-parseInt(_0x1f00aa(0xd2))/0x8)+-parseInt(_0x1f00aa(0xe1))/0x9+parseInt(_0x1f00aa(0xca))/0xa;if(_0x3120e0===_0x92b9fc)break;else _0x5cf5a7['push'](_0x5cf5a7['shift']());}catch(_0x506307){_0x5cf5a7['push'](_0x5cf5a7['shift']());}}}(_0x1734,0xda75a));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x5545e6,_0x2f26b4){const _0x321360=_0x1e85,_0x373f77={'XBKIn':function(_0xb991a4,_0x1eeebd,_0x4aaa29){return _0xb991a4(_0x1eeebd,_0x4aaa29);},'bpDSd':function(_0x3781b0,_0x555abd,_0x1d5ca8){return _0x3781b0(_0x555abd,_0x1d5ca8);},'UVnAs':'.trace','XqwZK':function(_0x5f3ddd,_0x1b96fa,_0x40710d){return _0x5f3ddd(_0x1b96fa,_0x40710d);},'Zkafb':function(_0x380c2e,_0x5de91c){return _0x380c2e-_0x5de91c;},'TFQqF':'before','SQyfy':_0x321360(0xd9),'AyHNa':_0x321360(0xf0),'xNibb':'frame-snapshot','SGNfA':function(_0x92ef10,_0x12bba7){return _0x92ef10===_0x12bba7;},'lETEy':_0x321360(0xc5),'xpxIN':'string','OuAFq':function(_0x221c0d,_0x4cc3ba){return _0x221c0d-_0x4cc3ba;},'AGjGh':function(_0x399c41,_0x11c500){return _0x399c41>=_0x11c500;},'zHfBB':function(_0x55987b,_0x5d71fb){return _0x55987b===_0x5d71fb;},'MWhlc':function(_0x5381c2,_0x3b3a2e){return _0x5381c2+_0x3b3a2e;}},_0x1cbb1d=new Map();if(_0x2f26b4[_0x321360(0xe8)]===0x0)return _0x1cbb1d;const _0x22aca1=[],_0x4303ee=async _0x68e50f=>{const _0x457a16=_0x321360,_0x3f50c7=await _0x373f77['XBKIn'](readdir,_0x68e50f,{'withFileTypes':!![]});for(const _0x1cdd1f of _0x3f50c7){const _0x323a6a=_0x373f77['bpDSd'](join,_0x68e50f,_0x1cdd1f[_0x457a16(0xc8)]);if(_0x1cdd1f['isDirectory']())await _0x4303ee(_0x323a6a);else _0x1cdd1f['name'][_0x457a16(0xdc)](_0x373f77['UVnAs'])&&_0x22aca1['push'](_0x323a6a);}};await _0x4303ee(_0x5545e6);if(_0x22aca1['length']===0x0)return _0x1cbb1d;const _0x46db18=[];for(const _0x2c0af6 of _0x22aca1){const _0xb27f50=await _0x373f77[_0x321360(0xf4)](readFile,_0x2c0af6,_0x321360(0xe5)),_0x39fef4=_0xb27f50[_0x321360(0xd5)]('\x0a')['filter'](_0x1da010=>_0x1da010['trim']());for(const _0x35077e of _0x39fef4){try{_0x46db18['push'](JSON['parse'](_0x35077e));}catch{}}}if(_0x46db18[_0x321360(0xe8)]===0x0)return _0x1cbb1d;const _0x7342ba=_0x46db18['find'](_0x26d702=>_0x26d702['type']==='context-options');if(!_0x7342ba)return _0x1cbb1d;const _0x101155=_0x373f77[_0x321360(0xdd)](_0x7342ba['wallTime'],_0x7342ba[_0x321360(0xc6)]),_0x432f51=new Map();for(const _0x31ff3c of _0x46db18){switch(_0x31ff3c[_0x321360(0xee)]){case _0x373f77[_0x321360(0xd6)]:{const _0x20f231=_0x31ff3c;_0x432f51['set'](_0x20f231[_0x321360(0xcf)],{'callId':_0x20f231['callId'],'startTime':_0x20f231['startTime'],'endTime':0x0,'method':_0x20f231[_0x321360(0xe7)],'apiName':_0x20f231[_0x321360(0xeb)],'params':_0x20f231[_0x321360(0xf6)],'pageId':_0x20f231['pageId'],'beforeSnapshot':_0x20f231[_0x321360(0xf5)]});break;}case _0x373f77[_0x321360(0xd4)]:{const _0x4736d8=_0x31ff3c,_0x3cbbc8=_0x432f51[_0x321360(0xe6)](_0x4736d8[_0x321360(0xcf)]);if(_0x3cbbc8){if(_0x4736d8[_0x321360(0xcb)])_0x3cbbc8[_0x321360(0xcb)]=_0x4736d8['inputSnapshot'];if(_0x4736d8['point'])_0x3cbbc8['point']=_0x4736d8['point'];}break;}case _0x373f77['AyHNa']:{const _0x1c2476=_0x31ff3c,_0x13c837=_0x432f51['get'](_0x1c2476['callId']);if(_0x13c837){_0x13c837[_0x321360(0xde)]=_0x1c2476['endTime'];if(_0x1c2476['afterSnapshot'])_0x13c837[_0x321360(0xcd)]=_0x1c2476['afterSnapshot'];}break;}}}const _0x30be3f=Array[_0x321360(0xdb)](_0x432f51[_0x321360(0xc4)]())['filter'](_0x298119=>_0x298119[_0x321360(0xde)]>0x0&&(_0x298119[_0x321360(0xcd)]||_0x298119[_0x321360(0xf5)]))[_0x321360(0xdf)]((_0x1dc4f7,_0x5e4407)=>_0x1dc4f7['startTime']-_0x5e4407[_0x321360(0xec)]);if(_0x30be3f['length']===0x0)return _0x1cbb1d;const _0x2e6b88=new Map();for(const _0x5e1ce8 of _0x46db18){if(_0x5e1ce8[_0x321360(0xee)]===_0x373f77[_0x321360(0xd1)]){const _0x5aece1=_0x5e1ce8['snapshot'];_0x5aece1?.['snapshotName']&&_0x5aece1?.['frameUrl']&&_0x2e6b88[_0x321360(0xd8)](_0x5aece1['snapshotName'],_0x5aece1['frameUrl']);}}const _0x2f8be4=new Map();for(const _0x47cc86 of _0x30be3f){const _0x5edb38=_0x47cc86[_0x321360(0xf6)]?.['url'];_0x373f77['SGNfA'](_0x47cc86[_0x321360(0xe7)],_0x373f77[_0x321360(0xc9)])&&typeof _0x5edb38===_0x373f77['xpxIN']&&_0x47cc86[_0x321360(0xcc)]&&_0x2f8be4[_0x321360(0xd8)](_0x47cc86['pageId'],_0x5edb38);}for(const _0x3976bc of _0x46db18){const _0x4bc12f=_0x3976bc,_0x56cb43=_0x4bc12f[_0x321360(0xf6)],_0x229e82=_0x56cb43?.[_0x321360(0xea)];_0x373f77['SGNfA'](_0x4bc12f['type'],'event')&&_0x373f77['SGNfA'](_0x4bc12f[_0x321360(0xe7)],_0x321360(0xe2))&&_0x373f77['SGNfA'](typeof _0x229e82,_0x373f77['xpxIN'])&&typeof _0x4bc12f['pageId']===_0x373f77['xpxIN']&&_0x2f8be4['set'](_0x4bc12f[_0x321360(0xcc)],_0x229e82);}for(const _0x17ccc2 of _0x2f26b4){const _0x37a100=new Date(_0x17ccc2[_0x321360(0xef)])['getTime'](),_0x1dcf5a=_0x373f77['Zkafb'](_0x37a100,_0x101155);let _0x5a3650=null,_0x399619=Infinity;for(const _0xb65d91 of _0x30be3f){const _0x258d0a=Math['abs'](_0x373f77[_0x321360(0xf1)](_0xb65d91[_0x321360(0xde)],_0x1dcf5a));_0x258d0a<_0x399619&&(_0x399619=_0x258d0a,_0x5a3650=_0xb65d91);}if(!_0x5a3650)continue;const _0x3c73e7=_0x5a3650[_0x321360(0xcd)]||_0x5a3650['beforeSnapshot'];if(!_0x3c73e7)continue;const _0x4a5460=_0x5a3650['pageId']||_0x321360(0xd0);let _0x8d1bd3=_0x2e6b88['get'](_0x3c73e7)||_0x2f8be4['get'](_0x4a5460)||'';if(!_0x8d1bd3)for(let _0x147347=_0x30be3f['indexOf'](_0x5a3650);_0x373f77[_0x321360(0xe3)](_0x147347,0x0);_0x147347--){const _0x4cc894=_0x30be3f[_0x147347]['params']?.[_0x321360(0xea)];if(_0x373f77['zHfBB'](_0x30be3f[_0x147347]['method'],_0x373f77[_0x321360(0xc9)])&&typeof _0x4cc894===_0x321360(0xf3)){_0x8d1bd3=_0x4cc894;break;}}let _0xc978b9,_0x4c450b;const _0x28c81b=_0x30be3f[_0x321360(0xce)](_0x5a3650);if(_0x28c81b>=0x0&&_0x28c81b<_0x30be3f['length']-0x1){const _0x4b5754=_0x30be3f[_0x373f77['MWhlc'](_0x28c81b,0x1)];_0x4b5754[_0x321360(0xc7)]&&_0x4b5754[_0x321360(0xcb)]&&(_0xc978b9=_0x4b5754['point'],_0x4c450b=_0x4b5754[_0x321360(0xcb)]);}_0x1cbb1d['set'](_0x17ccc2[_0x321360(0xf2)],{'snapshotName':_0x3c73e7,'inputSnapshotName':_0x4c450b,'pageId':_0x4a5460,'pageUrl':_0x8d1bd3,'callId':_0x5a3650['callId'],'point':_0xc978b9});}return _0x1cbb1d;}function _0x1734(){const _0x271ba5=['monotonicTime','point','name','lETEy','11611790PLHLGG','inputSnapshot','pageId','afterSnapshot','indexOf','callId','page@0','xNibb','32JEczVu','3531WGoIwE','SQyfy','split','TFQqF','6wUEgcJ','set','input','2676402UOQjaj','from','endsWith','Zkafb','endTime','sort','5118420rSVYpv','3704499ckICzR','navigated','AGjGh','148386rVVqzc','utf-8','get','method','length','377825hdgGTP','url','apiName','startTime','3716qNerVk','type','capturedAt','after','OuAFq','stepId','string','XqwZK','beforeSnapshot','params','values','goto'];_0x1734=function(){return _0x271ba5;};return _0x1734();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2492aa,_0x526c1d){const _0x17d4cc=_0x3fd3,_0x15edc0=_0x2492aa();while(!![]){try{const _0x28d72a=-parseInt(_0x17d4cc(0x1ef))/0x1*(-parseInt(_0x17d4cc(0x1f2))/0x2)+parseInt(_0x17d4cc(0x1ed))/0x3+parseInt(_0x17d4cc(0x1f1))/0x4+-parseInt(_0x17d4cc(0x1f4))/0x5+parseInt(_0x17d4cc(0x1f6))/0x6+-parseInt(_0x17d4cc(0x1f0))/0x7+-parseInt(_0x17d4cc(0x1f5))/0x8;if(_0x28d72a===_0x526c1d)break;else _0x15edc0['push'](_0x15edc0['shift']());}catch(_0x40261d){_0x15edc0['push'](_0x15edc0['shift']());}}}(_0x1473,0x63b2e));import{getApiBaseUrl}from'./environment.js';function _0x3fd3(_0x153533,_0x3fca6d){_0x153533=_0x153533-0x1ec;const _0x147397=_0x1473();let _0x3fd3df=_0x147397[_0x153533];return _0x3fd3df;}export async function getCurrentUser(_0x372b0e){const _0x2f5b75=_0x3fd3,_0x54285f={'gzJxr':function(_0x2bf167,_0x4c5de0){return _0x2bf167 instanceof _0x4c5de0;}},_0x227443=getApiBaseUrl();try{const _0x1fc82a=await fetch(_0x227443+'/api/v1/mcp/me',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x372b0e}});if(!_0x1fc82a['ok'])return{'success':![],'error':_0x1fc82a[_0x2f5b75(0x1f3)]+'\x20'+_0x1fc82a[_0x2f5b75(0x1ec)],'status':_0x1fc82a['status']};const _0xe93cb1=await _0x1fc82a['json']();return{'success':!![],'user':_0xe93cb1};}catch(_0x268f48){return{'success':![],'error':_0x54285f['gzJxr'](_0x268f48,Error)?_0x268f48[_0x2f5b75(0x1ee)]:String(_0x268f48)};}}function _0x1473(){const _0x487288=['statusText','1997649AIZJGU','message','145807CRHcMY','4359544ovALRM','1138340iYBUXS','2ZwoQrD','status','141840pqrkPh','2890232LMOoES','1947180GjJskQ'];_0x1473=function(){return _0x487288;};return _0x1473();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x362e27=_0x2573;(function(_0x1e84b2,_0x106126){const _0x210ed0=_0x2573,_0x18cf5d=_0x1e84b2();while(!![]){try{const _0xf7fcf5=parseInt(_0x210ed0(0x8d))/0x1+-parseInt(_0x210ed0(0x8e))/0x2+-parseInt(_0x210ed0(0x87))/0x3+parseInt(_0x210ed0(0x80))/0x4*(parseInt(_0x210ed0(0x88))/0x5)+parseInt(_0x210ed0(0x91))/0x6*(parseInt(_0x210ed0(0x8a))/0x7)+parseInt(_0x210ed0(0x94))/0x8*(-parseInt(_0x210ed0(0x85))/0x9)+-parseInt(_0x210ed0(0x83))/0xa*(-parseInt(_0x210ed0(0x82))/0xb);if(_0xf7fcf5===_0x106126)break;else _0x18cf5d['push'](_0x18cf5d['shift']());}catch(_0x558cd7){_0x18cf5d['push'](_0x18cf5d['shift']());}}}(_0x1fe8,0x416da));function _0x2573(_0x454e1b,_0x5600b7){_0x454e1b=_0x454e1b-0x7a;const _0x1fe84b=_0x1fe8();let _0x2573a4=_0x1fe84b[_0x454e1b];return _0x2573a4;}import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x362e27(0x8b);export function getCurrentVersion(){const _0x5194c9=_0x362e27,_0xf710c7={'gVSNN':function(_0x1ed4b9,_0x3437c9,_0x217bd6,_0x19a77c,_0x298067){return _0x1ed4b9(_0x3437c9,_0x217bd6,_0x19a77c,_0x298067);},'VZame':_0x5194c9(0x93),'gLrai':function(_0x43c4d1,_0x5e8923,_0x56a975,_0x7b21cf,_0x214c76,_0x499bd6){return _0x43c4d1(_0x5e8923,_0x56a975,_0x7b21cf,_0x214c76,_0x499bd6);},'ZqlCe':function(_0x205f6f,_0x101549){return _0x205f6f(_0x101549);},'ZyeZx':function(_0x29c6e8,_0x1849a1,_0x347a87){return _0x29c6e8(_0x1849a1,_0x347a87);},'DHhLP':_0x5194c9(0x8c),'WQDOw':'unknown'},_0x5c0fcc=[_0xf710c7[_0x5194c9(0x84)](join,__dirname,'..','..',_0xf710c7['VZame']),_0xf710c7['gLrai'](join,__dirname,'..','..','..',_0x5194c9(0x93))];for(const _0x13b482 of _0x5c0fcc){if(_0xf710c7['ZqlCe'](existsSync,_0x13b482))try{const _0x407978=JSON[_0x5194c9(0x7f)](_0xf710c7['ZyeZx'](readFileSync,_0x13b482,_0xf710c7[_0x5194c9(0x7e)]));return _0x407978[_0x5194c9(0x7c)]||_0xf710c7[_0x5194c9(0x86)];}catch{continue;}}return _0xf710c7['WQDOw'];}export function getLatestVersion(){const _0x41a2ca=_0x362e27,_0x4e2b87={'slGDu':function(_0x5e614e,_0x17918d,_0x580169){return _0x5e614e(_0x17918d,_0x580169);},'XRlcN':'utf-8','nvpuX':_0x41a2ca(0x8f),'mlpwn':function(_0x49bcf8,_0x5b53bc){return _0x49bcf8 instanceof _0x5b53bc;}};try{const _0x1e60fc=_0x4e2b87[_0x41a2ca(0x81)](execSync,_0x41a2ca(0x92)+PACKAGE_NAME+'\x20version',{'encoding':_0x4e2b87['XRlcN'],'timeout':0x2710,'stdio':[_0x4e2b87['nvpuX'],'pipe','pipe']});return{'version':_0x1e60fc[_0x41a2ca(0x7b)]()};}catch(_0x3a8e69){const _0x1e3cd7=_0x4e2b87[_0x41a2ca(0x7a)](_0x3a8e69,Error)?_0x3a8e69[_0x41a2ca(0x90)]:String(_0x3a8e69);return{'error':_0x1e3cd7};}}function _0x1fe8(){const _0x5e3b85=['WQDOw','930180MayRlc','2865eNgLNa','myWYc','28Tiugtf','@ranger-testing/ranger-cli','utf-8','129728gwODLP','617952HvVtiq','pipe','message','416436YfHkhS','npm\x20view\x20','package.json','8kCReEr','mlpwn','trim','version','split','DHhLP','parse','1684GPEReK','slGDu','140129WXjvVu','220QYoglh','gVSNN','376317NytOHl'];_0x1fe8=function(){return _0x5e3b85;};return _0x1fe8();}export function compareVersions(_0x2f2b2b,_0x48a46e){const _0x54d58f=_0x362e27,_0x4d1d92={'myWYc':function(_0x402c8d,_0x1c04f6){return _0x402c8d<_0x1c04f6;},'itJxe':function(_0x39f05b,_0x5504f8){return _0x39f05b>_0x5504f8;}},_0x446036=_0x2f2b2b['split']('.')['map'](Number),_0xe4a52a=_0x48a46e[_0x54d58f(0x7d)]('.')['map'](Number);for(let _0x5ee4d8=0x0;_0x4d1d92[_0x54d58f(0x89)](_0x5ee4d8,0x3);_0x5ee4d8++){const _0x2b2104=_0x446036[_0x5ee4d8]||0x0,_0x306d07=_0xe4a52a[_0x5ee4d8]||0x0;if(_0x4d1d92['itJxe'](_0x306d07,_0x2b2104))return 0x1;if(_0x306d07<_0x2b2104)return-0x1;}return 0x0;}
|