@ranger-testing/ranger-cli 2.4.5 → 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.
Files changed (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -1
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/build/skills/ranger/SKILL.md +38 -41
  73. package/build/skills/ranger/create.md +5 -13
  74. package/build/skills/ranger/feedback.md +3 -3
  75. package/build/skills/ranger/start.md +13 -13
  76. package/build/skills/ranger/verify.md +15 -28
  77. package/package.json +5 -3
  78. package/scripts/postinstall.js +4 -1
@@ -1 +1 @@
1
- const _0x58ace2=_0x58a9;(function(_0x366139,_0x4180b4){const _0x380fe4=_0x58a9,_0xfd92c2=_0x366139();while(!![]){try{const _0x2e838f=-parseInt(_0x380fe4(0x15e))/0x1*(parseInt(_0x380fe4(0x1a2))/0x2)+-parseInt(_0x380fe4(0x17b))/0x3+-parseInt(_0x380fe4(0x187))/0x4+parseInt(_0x380fe4(0x164))/0x5+-parseInt(_0x380fe4(0x186))/0x6+parseInt(_0x380fe4(0x157))/0x7+parseInt(_0x380fe4(0x16d))/0x8*(parseInt(_0x380fe4(0x16e))/0x9);if(_0x2e838f===_0x4180b4)break;else _0xfd92c2['push'](_0xfd92c2['shift']());}catch(_0xf749db){_0xfd92c2['push'](_0xfd92c2['shift']());}}}(_0x2e4b,0x6dc99));function _0x58a9(_0x37a364,_0x1c7c63){_0x37a364=_0x37a364-0x157;const _0x2e4b5d=_0x2e4b();let _0x58a932=_0x2e4b5d[_0x37a364];return _0x58a932;}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 _0xe1536d=_0x58a9,_0x1e03f6={'MATit':function(_0x3c0b32,_0x351128,_0x489b02){return _0x3c0b32(_0x351128,_0x489b02);},'OgGRu':'.session','tPjtX':_0xe1536d(0x16f),'TnLtJ':function(_0x2e9414){return _0x2e9414();},'PoFsy':function(_0x8da087,_0x18fcee,_0x303b86){return _0x8da087(_0x18fcee,_0x303b86);},'viGKo':function(_0x252013,_0x240c32,_0x34054e){return _0x252013(_0x240c32,_0x34054e);}};if(cachedDeviceId)return cachedDeviceId;try{const _0xea117c=_0x1e03f6[_0xe1536d(0x158)](join,homedir(),'.ranger'),_0x146ea5=join(_0xea117c,_0x1e03f6['OgGRu']);if(existsSync(_0x146ea5)){cachedDeviceId=readFileSync(_0x146ea5,_0x1e03f6['tPjtX'])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x1e03f6[_0xe1536d(0x1a3)](randomUUID),_0x1e03f6[_0xe1536d(0x18b)](mkdirSync,_0xea117c,{'recursive':!![]}),_0x1e03f6[_0xe1536d(0x174)](writeFileSync,_0x146ea5,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x58ace2(0x15f)];['command'];[_0x58ace2(0x173)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();[_0x58ace2(0x15a)]=null;[_0x58ace2(0x197)];['cliVersion'];[_0x58ace2(0x19f)];[_0x58ace2(0x160)];['isTty'];['isCI'];[_0x58ace2(0x170)];['checklistItemId'];[_0x58ace2(0x172)];[_0x58ace2(0x198)];constructor(_0x12a0b0){const _0x479cb7=_0x58ace2,_0x5630b0={'zJtVR':function(_0x53608b){return _0x53608b();}},_0x1e392d='0|1|6|5|4|2|7|8|3'['split']('|');let _0x4d5f80=0x0;while(!![]){switch(_0x1e392d[_0x4d5f80++]){case'0':this[_0x479cb7(0x15f)]=_0x5630b0['zJtVR'](randomUUID);continue;case'1':this[_0x479cb7(0x178)]=_0x12a0b0;continue;case'2':this[_0x479cb7(0x19f)]=process['version'];continue;case'3':this[_0x479cb7(0x185)]=!!(process[_0x479cb7(0x19a)]['CI']||process['env'][_0x479cb7(0x177)]);continue;case'4':this[_0x479cb7(0x16b)]=getCurrentVersion();continue;case'5':this['deviceId']=getDeviceId();continue;case'6':this['commandStartTime']=Date['now']();continue;case'7':this[_0x479cb7(0x160)]=process['platform'];continue;case'8':this['isTty']=process[_0x479cb7(0x1a7)]['isTTY']??![];continue;}break;}}[_0x58ace2(0x15d)](_0x45bf05){const _0x532b6e=_0x58ace2;if(_0x45bf05[_0x532b6e(0x170)])this[_0x532b6e(0x170)]=_0x45bf05['featureId'];if(_0x45bf05['checklistItemId'])this[_0x532b6e(0x194)]=_0x45bf05[_0x532b6e(0x194)];if(_0x45bf05[_0x532b6e(0x172)])this['browserSessionId']=_0x45bf05['browserSessionId'];if(_0x45bf05['transport'])this['transport']=_0x45bf05[_0x532b6e(0x198)];}async['trackCommandStart'](_0x503dfa){const _0x210a71=_0x58ace2,_0x5f43f5=this[_0x210a71(0x165)]({'eventType':'command_start','metadata':_0x503dfa});await this['sendImmediate'](_0x5f43f5);}async[_0x58ace2(0x171)](_0x150512,_0x381cbc){const _0x168f6b=_0x58ace2,_0x75f502={'FCtRR':function(_0x499b5e,_0x58ddd6){return _0x499b5e-_0x58ddd6;}},_0x5def36=this[_0x168f6b(0x165)]({'eventType':'command_end','outcome':_0x150512,'durationMs':_0x75f502['FCtRR'](Date['now'](),this[_0x168f6b(0x173)]),'metadata':_0x381cbc});await this[_0x168f6b(0x15b)](_0x5def36),await this['flush']();}async['trackCommandError'](_0x179320,_0x2577a6){const _0x251cc8=_0x58ace2,_0x5556ef={'sWYKx':function(_0x2d188d,_0x1ab2a7){return _0x2d188d instanceof _0x1ab2a7;},'hlHVC':function(_0x12ccc0,_0x134f46){return _0x12ccc0 instanceof _0x134f46;},'qSuBu':function(_0x20693f,_0xf4b741){return _0x20693f-_0xf4b741;}},_0x1de09c=this['buildEvent']({'eventType':_0x251cc8(0x159),'errorMessage':truncate(_0x5556ef[_0x251cc8(0x191)](_0x179320,Error)?_0x179320['message']:String(_0x179320),0x1f4),'errorType':_0x5556ef[_0x251cc8(0x18f)](_0x179320,Error)?_0x179320['constructor']['name']:'Unknown','durationMs':_0x5556ef[_0x251cc8(0x161)](Date[_0x251cc8(0x193)](),this[_0x251cc8(0x173)]),'metadata':_0x2577a6});await this['sendImmediate'](_0x1de09c),await this['flush']();}['trackPhaseStart'](_0xef4cc3,_0x319c96){const _0x433ce9=_0x58ace2,_0x4b02fd={'LRcMa':'phase_start'};this['phaseCounter']++,this['phaseStartTimes'][_0x433ce9(0x196)](_0xef4cc3,Date['now']());const _0x409f26=this[_0x433ce9(0x165)]({'eventType':_0x4b02fd['LRcMa'],'phase':_0xef4cc3,'phaseIndex':this['phaseCounter'],'metadata':_0x319c96});this[_0x433ce9(0x16c)][_0x433ce9(0x18c)](_0x409f26);}[_0x58ace2(0x17c)](_0x13cc53,_0x1ff24d){const _0x29950f=_0x58ace2,_0xa9f67b={'hLPWN':function(_0xc0bd24,_0x38aa60){return _0xc0bd24-_0x38aa60;},'FUNYy':function(_0x3e750e,_0x2cf5dc){return _0x3e750e>=_0x2cf5dc;}},_0x4a46a5=this[_0x29950f(0x1a5)]['get'](_0x13cc53),_0x2931b9=_0x4a46a5?_0xa9f67b[_0x29950f(0x16a)](Date['now'](),_0x4a46a5):undefined;this[_0x29950f(0x1a5)][_0x29950f(0x18e)](_0x13cc53);const _0x112d07=this['buildEvent']({'eventType':_0x29950f(0x17a),'phase':_0x13cc53,'durationMs':_0x2931b9,'metadata':_0x1ff24d});this[_0x29950f(0x16c)][_0x29950f(0x18c)](_0x112d07),_0xa9f67b['FUNYy'](this['buffer'][_0x29950f(0x199)],0xa)&&this['flushAsync']();}async[_0x58ace2(0x17d)](_0x4d3c39,_0x3ea8c1,_0x1169f0){const _0x4cf928=_0x58ace2,_0xcd9c94=this[_0x4cf928(0x1a5)]['get'](_0x4d3c39),_0x2568e5=_0xcd9c94?Date[_0x4cf928(0x193)]()-_0xcd9c94:undefined;this['phaseStartTimes']['delete'](_0x4d3c39);const _0x13ac79=this[_0x4cf928(0x165)]({'eventType':_0x4cf928(0x19e),'phase':_0x4d3c39,'durationMs':_0x2568e5,'errorMessage':truncate(_0x3ea8c1 instanceof Error?_0x3ea8c1[_0x4cf928(0x19c)]:String(_0x3ea8c1),0x1f4),'errorType':_0x3ea8c1 instanceof Error?_0x3ea8c1['constructor'][_0x4cf928(0x168)]:_0x4cf928(0x1a6),'metadata':_0x1169f0});await this['sendImmediate'](_0x13ac79);}async[_0x58ace2(0x15c)](){const _0x27e1b2=_0x58ace2,_0x24c7b1={'TUuUd':function(_0x547b35,_0x9ae02e){return _0x547b35===_0x9ae02e;}};if(_0x24c7b1[_0x27e1b2(0x175)](this[_0x27e1b2(0x16c)]['length'],0x0))return;const _0x26fac=this['buffer'][_0x27e1b2(0x190)](0x0);try{await this['sendBatch'](_0x26fac);}catch{}}['buildEvent'](_0x84f4d0){const _0x22ee5f=_0x58ace2;return{'eventType':_0x84f4d0[_0x22ee5f(0x17f)],'command':this['command'],'commandId':this[_0x22ee5f(0x15f)],'deviceId':this[_0x22ee5f(0x197)],'timestamp':new Date()[_0x22ee5f(0x195)](),'durationMs':_0x84f4d0[_0x22ee5f(0x1a4)],'phase':_0x84f4d0['phase'],'phaseIndex':_0x84f4d0[_0x22ee5f(0x18a)],'outcome':_0x84f4d0[_0x22ee5f(0x189)],'errorMessage':_0x84f4d0['errorMessage'],'errorType':_0x84f4d0['errorType'],'featureId':this[_0x22ee5f(0x170)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x22ee5f(0x172)],'transport':this['transport'],'evaluation':_0x84f4d0[_0x22ee5f(0x181)],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x22ee5f(0x19f)],'platform':this[_0x22ee5f(0x160)],'cwd':process[_0x22ee5f(0x18d)](),'isTty':this[_0x22ee5f(0x180)],'isCI':this[_0x22ee5f(0x185)],'metadata':_0x84f4d0['metadata']};}async[_0x58ace2(0x15b)](_0x33a955){const _0x47e43d=_0x58ace2;try{await this[_0x47e43d(0x179)]([_0x33a955]);}catch{}}['flushAsync'](){const _0x2a7de8=_0x58ace2;if(this[_0x2a7de8(0x15a)])return;this[_0x2a7de8(0x15a)]=this[_0x2a7de8(0x15c)]()['finally'](()=>{const _0x357674=_0x2a7de8;this[_0x357674(0x15a)]=null;});}async[_0x58ace2(0x179)](_0x5f3f0c){const _0x4119c0=_0x58ace2,_0x47db43={'atnkn':function(_0x400290){return _0x400290();},'zVBhM':function(_0x2bf3fc,_0xeef32b,_0x2b5a1d){return _0x2bf3fc(_0xeef32b,_0x2b5a1d);},'lKaQu':function(_0x344dc2,_0x4cb489){return _0x344dc2(_0x4cb489);}},_0x2d17ab=await _0x47db43[_0x4119c0(0x188)](getToken)['catch'](()=>null),_0x51fdec=_0x47db43['atnkn'](getApiBaseUrl),_0x35e87e={'Content-Type':_0x4119c0(0x182)};_0x2d17ab&&(_0x35e87e['Authorization']=_0x4119c0(0x19b)+_0x2d17ab);const _0x47d6fe={'events':_0x5f3f0c};process[_0x4119c0(0x19a)]['DEBUG']&&console['error'](_0x4119c0(0x19d)+_0x5f3f0c['length']+_0x4119c0(0x176)+_0x51fdec+'/api/v1/mcp/cli-telemetry');const _0x2dabaf=new AbortController(),_0x1fc1f7=_0x47db43[_0x4119c0(0x183)](setTimeout,()=>_0x2dabaf['abort'](),0x1388);try{await fetch(_0x51fdec+_0x4119c0(0x1a1),{'method':_0x4119c0(0x17e),'headers':_0x35e87e,'body':JSON[_0x4119c0(0x169)](_0x47d6fe),'signal':_0x2dabaf['signal']});}finally{_0x47db43['lKaQu'](clearTimeout,_0x1fc1f7);}}}let currentCollector=null;export function createTelemetryCollector(_0x2c154f){return currentCollector=new TelemetryCollector(_0x2c154f),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0xb05710,_0x3ed7c9,_0x53ff92){const _0xfe4859=_0x58ace2,_0x43f791={'nkBXB':function(_0x5c84b2,_0x21f3c9){return _0x5c84b2(_0x21f3c9);},'vUjFm':_0xfe4859(0x184)},_0x3fd695=_0x43f791['nkBXB'](createTelemetryCollector,_0xb05710);await _0x3fd695[_0xfe4859(0x166)](_0x53ff92);try{const _0x91c38c=await _0x3ed7c9(_0x3fd695);return await _0x3fd695[_0xfe4859(0x171)](_0x43f791['vUjFm']),_0x91c38c;}catch(_0x219a1b){await _0x3fd695['trackCommandError'](_0x219a1b);throw _0x219a1b;}finally{await _0x3fd695[_0xfe4859(0x15c)]();}}function truncate(_0x2af803,_0x11b1f7){const _0x39df6e=_0x58ace2,_0x537c1a={'CsngH':function(_0x38fd37,_0x161240){return _0x38fd37>_0x161240;},'ZMqYl':function(_0x1aa51d,_0x3acb6f){return _0x1aa51d+_0x3acb6f;},'djsUw':_0x39df6e(0x162)};return _0x537c1a[_0x39df6e(0x163)](_0x2af803['length'],_0x11b1f7)?_0x537c1a[_0x39df6e(0x167)](_0x2af803[_0x39df6e(0x1a0)](0x0,_0x11b1f7),_0x537c1a[_0x39df6e(0x192)]):_0x2af803;}function _0x2e4b(){const _0xbafca3=['sWYKx','djsUw','now','checklistItemId','toISOString','set','deviceId','transport','length','env','Bearer\x20','message','[telemetry]\x20Sending\x20','phase_error','nodeVersion','slice','/api/v1/mcp/cli-telemetry','2394YYKNrB','TnLtJ','durationMs','phaseStartTimes','Unknown','stdout','5199691ffQecF','MATit','command_error','flushing','sendImmediate','flush','setContext','590DwywQI','commandId','platform','qSuBu','...','CsngH','3131895VjXFCT','buildEvent','trackCommandStart','ZMqYl','name','stringify','hLPWN','cliVersion','buffer','6385584fLfhVj','9cVwnHL','utf-8','featureId','trackCommandEnd','browserSessionId','commandStartTime','viGKo','TUuUd','\x20event(s)\x20to\x20','GITHUB_ACTIONS','command','sendBatch','phase_end','1123788sNzJaL','trackPhaseEnd','trackPhaseError','POST','eventType','isTty','evaluation','application/json','zVBhM','success','isCI','1436472wYGLiJ','1589852OKuqqV','atnkn','outcome','phaseIndex','PoFsy','push','cwd','delete','hlHVC','splice'];_0x2e4b=function(){return _0xbafca3;};return _0x2e4b();}
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(_0x3d8e09,_0x7f0acd){const _0x3254d2=_0x1e82,_0xab7ff4=_0x3d8e09();while(!![]){try{const _0x8c4fb5=-parseInt(_0x3254d2(0x1a9))/0x1+parseInt(_0x3254d2(0x1a7))/0x2*(parseInt(_0x3254d2(0x19c))/0x3)+parseInt(_0x3254d2(0x199))/0x4*(-parseInt(_0x3254d2(0x1a8))/0x5)+-parseInt(_0x3254d2(0x1aa))/0x6+parseInt(_0x3254d2(0x1a3))/0x7*(-parseInt(_0x3254d2(0x1a1))/0x8)+-parseInt(_0x3254d2(0x19f))/0x9+parseInt(_0x3254d2(0x19e))/0xa;if(_0x8c4fb5===_0x7f0acd)break;else _0xab7ff4['push'](_0xab7ff4['shift']());}catch(_0x6212f9){_0xab7ff4['push'](_0xab7ff4['shift']());}}}(_0x281d,0x428e8));function _0x1e82(_0x1e5f0b,_0x267f04){_0x1e5f0b=_0x1e5f0b-0x199;const _0x281d70=_0x281d();let _0x1e829d=_0x281d70[_0x1e5f0b];return _0x1e829d;}function _0x281d(){const _0x58e20c=['16zpdvCn','DbAVd','166033JASxcV','application/json','token','/cli-auth/refresh','4xxvLra','6425NiiynP','152468SccShy','1130886XhDfeB','888ozoaQm','refreshToken','xBEgN','14199uxodVU','timeout','9409930AAZBhS','37674UbWXca','sHiHU'];_0x281d=function(){return _0x58e20c;};return _0x281d();}import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x110c6b=_0x1e82,_0x28ba56={'sHiHU':function(_0x5f0dd0){return _0x5f0dd0();},'DbAVd':function(_0x393fcd,_0x26a723,_0x5c59e6){return _0x393fcd(_0x26a723,_0x5c59e6);},'hYbBA':_0x110c6b(0x1a4),'xBEgN':function(_0xd734c2,_0x1f7159){return _0xd734c2(_0x1f7159);}},_0x269cbf=await _0x28ba56[_0x110c6b(0x1a0)](getRefreshToken);if(!_0x269cbf)return null;const _0x225736=getApiBaseUrl();try{const _0x32b630=await _0x28ba56[_0x110c6b(0x1a2)](fetch,_0x225736+_0x110c6b(0x1a6),{'method':'POST','headers':{'Content-Type':_0x28ba56['hYbBA']},'body':JSON['stringify']({'refreshToken':_0x269cbf}),'signal':AbortSignal[_0x110c6b(0x19d)](0x2710)});if(!_0x32b630['ok'])return null;const _0x357037=await _0x32b630['json']();return await _0x28ba56[_0x110c6b(0x19b)](storeToken,_0x357037['token']),await storeRefreshToken(_0x357037[_0x110c6b(0x19a)]),_0x357037[_0x110c6b(0x1a5)];}catch{return null;}}
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 _0x5de6(_0x4fc34a,_0x36b845){_0x4fc34a=_0x4fc34a-0x166;const _0x3db872=_0x3db8();let _0x5de6b0=_0x3db872[_0x4fc34a];return _0x5de6b0;}(function(_0x5816eb,_0x5cfb44){const _0x31fdf2=_0x5de6,_0x294216=_0x5816eb();while(!![]){try{const _0x5b3c22=-parseInt(_0x31fdf2(0x167))/0x1*(-parseInt(_0x31fdf2(0x166))/0x2)+-parseInt(_0x31fdf2(0x17f))/0x3*(parseInt(_0x31fdf2(0x16e))/0x4)+-parseInt(_0x31fdf2(0x18d))/0x5*(-parseInt(_0x31fdf2(0x168))/0x6)+-parseInt(_0x31fdf2(0x18a))/0x7*(parseInt(_0x31fdf2(0x186))/0x8)+parseInt(_0x31fdf2(0x17e))/0x9*(-parseInt(_0x31fdf2(0x183))/0xa)+parseInt(_0x31fdf2(0x16c))/0xb*(parseInt(_0x31fdf2(0x185))/0xc)+parseInt(_0x31fdf2(0x17b))/0xd;if(_0x5b3c22===_0x5cfb44)break;else _0x294216['push'](_0x294216['shift']());}catch(_0x1b5014){_0x294216['push'](_0x294216['shift']());}}}(_0x3db8,0xbe093));function _0x3db8(){const _0xdda93d=['8703006LbLMTT','string','push','6651ZMkcKc','468FHkRVk','isDirectory','capturedAt','split','9560GzZlbN','before','12FVzNLc','2161088vXAupV','pageId','xXbbU','hXaYU','14tjpawt','navigated','type','6740DCKFnu','startTime','dkIzf','values','endTime','callId','length','frame-snapshot','indexOf','frameUrl','params','sort','2779934vTzrnB','1LenIcX','1632WDzTyG','goto','DRDXS','afterSnapshot','10028062CxQoTM','get','33656iJCmjI','.trace','find','filter','url','point','beforeSnapshot','kwnSj','GOOeu','method','snapshotName','inputSnapshot','NMgkS'];_0x3db8=function(){return _0xdda93d;};return _0x3db8();}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x5d6718,_0x5e9484){const _0x12bf83=_0x5de6,_0x395f69={'mAOQZ':function(_0x4368eb,_0x229bbc,_0x313edc){return _0x4368eb(_0x229bbc,_0x313edc);},'uMzCj':function(_0x598549,_0x98051f){return _0x598549(_0x98051f);},'nODkU':_0x12bf83(0x16f),'DRDXS':function(_0x27b5dc,_0x45730b){return _0x27b5dc===_0x45730b;},'kwnSj':'utf-8','NMgkS':_0x12bf83(0x184),'MXvem':'after','GOOeu':function(_0x2cc1e0,_0x585f4a){return _0x2cc1e0===_0x585f4a;},'hXaYU':function(_0x52479f,_0x5b1f67){return _0x52479f===_0x5b1f67;},'MIxyA':_0x12bf83(0x18b),'dkIzf':function(_0x37c99f,_0x34946c){return _0x37c99f-_0x34946c;},'xXbbU':function(_0x4c821c,_0x115783){return _0x4c821c>=_0x115783;},'AfMci':function(_0x3b026f,_0x480325){return _0x3b026f+_0x480325;}},_0x1333a8=new Map();if(_0x5e9484[_0x12bf83(0x193)]===0x0)return _0x1333a8;const _0x3c4a62=[],_0x277e7b=async _0x150857=>{const _0x1614d8=_0x12bf83,_0x4d50c2=await _0x395f69['mAOQZ'](readdir,_0x150857,{'withFileTypes':!![]});for(const _0x125f83 of _0x4d50c2){const _0x81e367=join(_0x150857,_0x125f83['name']);if(_0x125f83[_0x1614d8(0x180)]())await _0x395f69['uMzCj'](_0x277e7b,_0x81e367);else _0x125f83['name']['endsWith'](_0x395f69['nODkU'])&&_0x3c4a62['push'](_0x81e367);}};await _0x277e7b(_0x5d6718);if(_0x395f69[_0x12bf83(0x16a)](_0x3c4a62[_0x12bf83(0x193)],0x0))return _0x1333a8;const _0x4f446c=[];for(const _0x1a44bc of _0x3c4a62){const _0x1f7981=await readFile(_0x1a44bc,_0x395f69[_0x12bf83(0x175)]),_0x465d1e=_0x1f7981[_0x12bf83(0x182)]('\x0a')[_0x12bf83(0x171)](_0x34c1a6=>_0x34c1a6['trim']());for(const _0x551aa9 of _0x465d1e){try{_0x4f446c[_0x12bf83(0x17d)](JSON['parse'](_0x551aa9));}catch{}}}if(_0x4f446c[_0x12bf83(0x193)]===0x0)return _0x1333a8;const _0xd742d9=_0x4f446c[_0x12bf83(0x170)](_0x36930a=>_0x36930a[_0x12bf83(0x18c)]==='context-options');if(!_0xd742d9)return _0x1333a8;const _0x169fe1=_0xd742d9['wallTime']-_0xd742d9['monotonicTime'],_0x1a22f3=new Map();for(const _0x437f85 of _0x4f446c){switch(_0x437f85[_0x12bf83(0x18c)]){case _0x395f69[_0x12bf83(0x17a)]:{const _0x5bb210=_0x437f85;_0x1a22f3['set'](_0x5bb210[_0x12bf83(0x192)],{'callId':_0x5bb210['callId'],'startTime':_0x5bb210[_0x12bf83(0x18e)],'endTime':0x0,'method':_0x5bb210[_0x12bf83(0x177)],'apiName':_0x5bb210['apiName'],'params':_0x5bb210[_0x12bf83(0x197)],'pageId':_0x5bb210[_0x12bf83(0x187)],'beforeSnapshot':_0x5bb210['beforeSnapshot']});break;}case'input':{const _0x14b108=_0x437f85,_0xc21fd5=_0x1a22f3['get'](_0x14b108[_0x12bf83(0x192)]);if(_0xc21fd5){if(_0x14b108[_0x12bf83(0x179)])_0xc21fd5[_0x12bf83(0x179)]=_0x14b108[_0x12bf83(0x179)];if(_0x14b108[_0x12bf83(0x173)])_0xc21fd5[_0x12bf83(0x173)]=_0x14b108[_0x12bf83(0x173)];}break;}case _0x395f69['MXvem']:{const _0x1c70e6=_0x437f85,_0x181814=_0x1a22f3['get'](_0x1c70e6[_0x12bf83(0x192)]);if(_0x181814){_0x181814['endTime']=_0x1c70e6[_0x12bf83(0x191)];if(_0x1c70e6[_0x12bf83(0x16b)])_0x181814['afterSnapshot']=_0x1c70e6[_0x12bf83(0x16b)];}break;}}}const _0x2a8673=Array['from'](_0x1a22f3[_0x12bf83(0x190)]())['filter'](_0x40b3f4=>_0x40b3f4['endTime']>0x0&&(_0x40b3f4[_0x12bf83(0x16b)]||_0x40b3f4[_0x12bf83(0x174)]))[_0x12bf83(0x198)]((_0xd5b647,_0xbbff1f)=>_0xd5b647['startTime']-_0xbbff1f['startTime']);if(_0x395f69[_0x12bf83(0x176)](_0x2a8673['length'],0x0))return _0x1333a8;const _0xb3c734=new Map();for(const _0x102cf5 of _0x4f446c){if(_0x102cf5[_0x12bf83(0x18c)]===_0x12bf83(0x194)){const _0x38b070=_0x102cf5['snapshot'];_0x38b070?.[_0x12bf83(0x178)]&&_0x38b070?.['frameUrl']&&_0xb3c734['set'](_0x38b070[_0x12bf83(0x178)],_0x38b070[_0x12bf83(0x196)]);}}const _0x8c6f76=new Map();for(const _0x3c9d5c of _0x2a8673){const _0x4c9b1e=_0x3c9d5c['params']?.['url'];_0x3c9d5c[_0x12bf83(0x177)]===_0x12bf83(0x169)&&typeof _0x4c9b1e==='string'&&_0x3c9d5c[_0x12bf83(0x187)]&&_0x8c6f76['set'](_0x3c9d5c[_0x12bf83(0x187)],_0x4c9b1e);}for(const _0x3c3bb6 of _0x4f446c){const _0x5113ba=_0x3c3bb6,_0x4f2aa9=_0x5113ba['params'],_0x105957=_0x4f2aa9?.[_0x12bf83(0x172)];_0x5113ba['type']==='event'&&_0x395f69['hXaYU'](_0x5113ba['method'],_0x395f69['MIxyA'])&&typeof _0x105957==='string'&&_0x395f69[_0x12bf83(0x16a)](typeof _0x5113ba[_0x12bf83(0x187)],_0x12bf83(0x17c))&&_0x8c6f76['set'](_0x5113ba[_0x12bf83(0x187)],_0x105957);}for(const _0x2242ed of _0x5e9484){const _0x5ed836=new Date(_0x2242ed[_0x12bf83(0x181)])['getTime'](),_0x1319c7=_0x5ed836-_0x169fe1;let _0x1f7eb6=null,_0x3ef126=Infinity;for(const _0x55ebe2 of _0x2a8673){const _0xdc738c=Math['abs'](_0x395f69[_0x12bf83(0x18f)](_0x55ebe2['endTime'],_0x1319c7));_0xdc738c<_0x3ef126&&(_0x3ef126=_0xdc738c,_0x1f7eb6=_0x55ebe2);}if(!_0x1f7eb6)continue;const _0x29f3da=_0x1f7eb6[_0x12bf83(0x16b)]||_0x1f7eb6[_0x12bf83(0x174)];if(!_0x29f3da)continue;const _0x472263=_0x1f7eb6[_0x12bf83(0x187)]||'page@0';let _0x58de8b=_0xb3c734[_0x12bf83(0x16d)](_0x29f3da)||_0x8c6f76['get'](_0x472263)||'';if(!_0x58de8b)for(let _0x346bb3=_0x2a8673[_0x12bf83(0x195)](_0x1f7eb6);_0x395f69['xXbbU'](_0x346bb3,0x0);_0x346bb3--){const _0x59cfb7=_0x2a8673[_0x346bb3][_0x12bf83(0x197)]?.[_0x12bf83(0x172)];if(_0x2a8673[_0x346bb3][_0x12bf83(0x177)]==='goto'&&_0x395f69[_0x12bf83(0x189)](typeof _0x59cfb7,_0x12bf83(0x17c))){_0x58de8b=_0x59cfb7;break;}}let _0x343232,_0x486bb6;const _0x44d5b7=_0x2a8673[_0x12bf83(0x195)](_0x1f7eb6);if(_0x395f69[_0x12bf83(0x188)](_0x44d5b7,0x0)&&_0x44d5b7<_0x2a8673['length']-0x1){const _0x2cf599=_0x2a8673[_0x395f69['AfMci'](_0x44d5b7,0x1)];_0x2cf599[_0x12bf83(0x173)]&&_0x2cf599['inputSnapshot']&&(_0x343232=_0x2cf599[_0x12bf83(0x173)],_0x486bb6=_0x2cf599[_0x12bf83(0x179)]);}_0x1333a8['set'](_0x2242ed['stepId'],{'snapshotName':_0x29f3da,'inputSnapshotName':_0x486bb6,'pageId':_0x472263,'pageUrl':_0x58de8b,'callId':_0x1f7eb6[_0x12bf83(0x192)],'point':_0x343232});}return _0x1333a8;}
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
- (function(_0x5d4433,_0x2acc28){const _0x81101f=_0x12f5,_0x2adb32=_0x5d4433();while(!![]){try{const _0x178822=parseInt(_0x81101f(0x90))/0x1*(parseInt(_0x81101f(0x97))/0x2)+-parseInt(_0x81101f(0x92))/0x3*(-parseInt(_0x81101f(0x8c))/0x4)+parseInt(_0x81101f(0x91))/0x5*(parseInt(_0x81101f(0x95))/0x6)+parseInt(_0x81101f(0x8f))/0x7*(parseInt(_0x81101f(0x96))/0x8)+parseInt(_0x81101f(0x8b))/0x9+-parseInt(_0x81101f(0x99))/0xa+parseInt(_0x81101f(0x93))/0xb*(-parseInt(_0x81101f(0x94))/0xc);if(_0x178822===_0x2acc28)break;else _0x2adb32['push'](_0x2adb32['shift']());}catch(_0x57f44a){_0x2adb32['push'](_0x2adb32['shift']());}}}(_0x1cbb,0x425ec));function _0x1cbb(){const _0x119dec=['51963aQgrwf','1645897zEncdk','36wOYFYm','1902UPeKfb','8PNKOLM','88904bhllrh','json','4718630iQXqtK','1505079bqWgCc','104GZxvMC','status','GET','1093736dkepWw','9dmXoOw','295qjdNnM'];_0x1cbb=function(){return _0x119dec;};return _0x1cbb();}function _0x12f5(_0x13bf2a,_0x3d44c8){_0x13bf2a=_0x13bf2a-0x8b;const _0x1cbbd0=_0x1cbb();let _0x12f574=_0x1cbbd0[_0x13bf2a];return _0x12f574;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x1ae4b8){const _0x3eae2e=_0x12f5,_0x4dd005=getApiBaseUrl();try{const _0x5c4df3=await fetch(_0x4dd005+'/api/v1/mcp/me',{'method':_0x3eae2e(0x8e),'headers':{'Authorization':'Bearer\x20'+_0x1ae4b8}});if(!_0x5c4df3['ok'])return{'success':![],'error':_0x5c4df3[_0x3eae2e(0x8d)]+'\x20'+_0x5c4df3['statusText'],'status':_0x5c4df3[_0x3eae2e(0x8d)]};const _0x223268=await _0x5c4df3[_0x3eae2e(0x98)]();return{'success':!![],'user':_0x223268};}catch(_0x16adc6){return{'success':![],'error':_0x16adc6 instanceof Error?_0x16adc6['message']:String(_0x16adc6)};}}
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
- const _0x3e8607=_0x5ce8;(function(_0x1fc2b8,_0x3030da){const _0x441f80=_0x5ce8,_0x2b9146=_0x1fc2b8();while(!![]){try{const _0x2cfcac=parseInt(_0x441f80(0x177))/0x1*(parseInt(_0x441f80(0x171))/0x2)+-parseInt(_0x441f80(0x182))/0x3*(parseInt(_0x441f80(0x180))/0x4)+parseInt(_0x441f80(0x17f))/0x5*(-parseInt(_0x441f80(0x186))/0x6)+-parseInt(_0x441f80(0x179))/0x7+parseInt(_0x441f80(0x172))/0x8*(parseInt(_0x441f80(0x17e))/0x9)+-parseInt(_0x441f80(0x184))/0xa*(-parseInt(_0x441f80(0x175))/0xb)+-parseInt(_0x441f80(0x185))/0xc*(-parseInt(_0x441f80(0x17b))/0xd);if(_0x2cfcac===_0x3030da)break;else _0x2b9146['push'](_0x2b9146['shift']());}catch(_0x72e60a){_0x2b9146['push'](_0x2b9146['shift']());}}}(_0x120a,0xb8381));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);function _0x5ce8(_0x2fd0fe,_0x161440){_0x2fd0fe=_0x2fd0fe-0x171;const _0x120a36=_0x120a();let _0x5ce82a=_0x120a36[_0x2fd0fe];return _0x5ce82a;}export const PACKAGE_NAME=_0x3e8607(0x178);export function getCurrentVersion(){const _0x3a963e=_0x3e8607,_0x5b2027={'CTedX':'package.json','XOuIp':_0x3a963e(0x176)},_0x3a34be=[join(__dirname,'..','..',_0x3a963e(0x183)),join(__dirname,'..','..','..',_0x5b2027[_0x3a963e(0x17d)])];for(const _0xb1538c of _0x3a34be){if(existsSync(_0xb1538c))try{const _0x99f4b1=JSON['parse'](readFileSync(_0xb1538c,_0x5b2027['XOuIp']));return _0x99f4b1[_0x3a963e(0x174)]||_0x3a963e(0x181);}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x14c3dd=_0x3e8607,_0x4491db={'bkedn':function(_0x1b169a,_0x2021d3){return _0x1b169a instanceof _0x2021d3;}};try{const _0x46cd59=execSync(_0x14c3dd(0x187)+PACKAGE_NAME+'\x20version',{'encoding':_0x14c3dd(0x176),'timeout':0x2710,'stdio':[_0x14c3dd(0x17a),_0x14c3dd(0x17a),'pipe']});return{'version':_0x46cd59[_0x14c3dd(0x17c)]()};}catch(_0x9a3c32){const _0x4df5ce=_0x4491db['bkedn'](_0x9a3c32,Error)?_0x9a3c32['message']:String(_0x9a3c32);return{'error':_0x4df5ce};}}export function compareVersions(_0x367687,_0x242576){const _0x23bc1c=_0x3e8607,_0x232f0a=_0x367687['split']('.')[_0x23bc1c(0x173)](Number),_0x404ece=_0x242576['split']('.')[_0x23bc1c(0x173)](Number);for(let _0x517c35=0x0;_0x517c35<0x3;_0x517c35++){const _0x598310=_0x232f0a[_0x517c35]||0x0,_0x21f5b0=_0x404ece[_0x517c35]||0x0;if(_0x21f5b0>_0x598310)return 0x1;if(_0x21f5b0<_0x598310)return-0x1;}return 0x0;}function _0x120a(){const _0x519a93=['1960428XgKcUz','276sURdpa','npm\x20view\x20','560314mzXJdb','152CKawLd','map','version','1222716KSkoSL','utf-8','1ubMTxt','@ranger-testing/ranger-cli','1652882rUDCzi','pipe','91PoTySb','trim','CTedX','616617dkuzOP','117940CQVBWu','4822128SonhSM','unknown','3HrSRKt','package.json','50rQDmor'];_0x120a=function(){return _0x519a93;};return _0x120a();}
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;}