@mcpjam/inspector 3.26.0 → 3.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{app-bootstrap-DH9V5ruc.js → app-bootstrap-DJVdECiP.js} +429 -338
- package/dist/client/assets/{app-navigation-DR1HvySV.js → app-navigation-C1fmIwWx.js} +6 -6
- package/dist/client/assets/{chunk-D32TOXHM-CyuI5mIj.js → chunk-D32TOXHM-BuwUbJde.js} +5 -5
- package/dist/client/assets/{dead-clicks-autocapture-DPDniRFT.js → dead-clicks-autocapture-BfVQ5VOW.js} +2 -2
- package/dist/client/assets/{error-reporting-B3uD72Mm.js → error-reporting-63LRZi7K.js} +1 -1
- package/dist/client/assets/{error-reporting-B45ic1xn.js → error-reporting-BhRc6Gma.js} +16 -16
- package/dist/client/assets/{exception-autocapture-DfmiXL7P.js → exception-autocapture-BIWlGpLs.js} +2 -2
- package/dist/client/assets/first-run-oauth-return-CQwiwOKd.css +2 -0
- package/dist/client/assets/{first-run-oauth-return-D9QTp0pi.js → first-run-oauth-return-__GiXMoC.js} +4 -4
- package/dist/client/assets/{highlighted-body-KQOG7T2V-BJHVzwuE.js → highlighted-body-KQOG7T2V-DOSL8MJM.js} +2 -2
- package/dist/client/assets/{index-COoa-n8G.js → index-CeytPr1a.js} +3 -3
- package/dist/client/assets/{jszip.min-mcFGNyxN.js → jszip.min-DncqjL0Q.js} +2 -2
- package/dist/client/assets/{mermaid-MCJ5UELQ-C7LKilvg.js → mermaid-MCJ5UELQ-wD11QKLw.js} +1 -1
- package/dist/client/assets/{posthog-recorder-CPrlbyxV.js → posthog-recorder-BKC9Osof.js} +2 -2
- package/dist/client/assets/{preload-helper-DSOvb5Vt.js → preload-helper-CEUuZLTj.js} +2 -2
- package/dist/client/assets/{project-route-Nif61zEo.js → project-route-DNrtuUI8.js} +3 -3
- package/dist/client/assets/{react-dom-DYqNESIg.js → react-dom-3ylgkoRI.js} +2 -2
- package/dist/client/assets/{rolldown-runtime-B8IK0bAc.js → rolldown-runtime-CNhBNX9h.js} +1 -1
- package/dist/client/assets/{surveys-P2oB9RB7.js → surveys-BJQBUJJI.js} +2 -2
- package/dist/client/assets/telemetry-files-c167c4e2b38f8ea7.js +1 -0
- package/dist/client/assets/{trace-timeline-CKpfuLys.js → trace-timeline-CYO2Iirq.js} +1 -1
- package/dist/client/assets/{trace-timeline-BZb0fhoh.js → trace-timeline-Dn4BLNrQ.js} +46 -43
- package/dist/client/assets/{web-vitals-D0Dvhg3H.js → web-vitals-DHv25aJU.js} +2 -2
- package/dist/client/index.html +9 -9
- package/dist/lib/launcher/index.js +10 -10
- package/dist/lib/vite/index.js +10 -10
- package/dist/server/harness-install-cli.js +115 -4
- package/dist/server/index.js +2 -2
- package/package.json +2 -2
- package/dist/client/assets/first-run-oauth-return-CNNqEZ9t.css +0 -2
- package/dist/client/assets/telemetry-files-c187231a8c0529f6.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};g.SENTRY_RELEASE={id:"3.26.0"};var w=new g.Error().stack;w&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[w]="3a73e22f-747b-4425-ad4a-15abe56be946",g._sentryDebugIdIdentifier="sentry-dbid-3a73e22f-747b-4425-ad4a-15abe56be946")}catch{}})();(function(){typeof[].at!="function"&&Object.defineProperty(Array.prototype,"at",{value(e){const t=this.length;let n=Math.trunc(e)||0;return 0>n&&(n+=t),0>n||n>=t?void 0:this[n]},writable:!0,enumerable:!1,configurable:!0});const g="u">typeof window?window:void 0,w="u">typeof globalThis?globalThis:g;w!=null&&w.XMLHttpRequest&&new w.XMLHttpRequest;const C=typeof globalThis<"u"?globalThis:g;C&&typeof self>"u"&&(C.self=C),C&&typeof File>"u"&&(C.File=function(){});const T=g??{};function S(e){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(e)}function at(e,t,n){return(t=(function(i){var o=(function(r){if(S(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var c=a.call(r,"string");if(S(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(i);return S(o)=="symbol"?o:o+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;arguments.length>t;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(i){at(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}let X=-1;const L=()=>X,k=e=>{addEventListener("pageshow",t=>{t.persisted&&(X=t.timeStamp,e(t))},!0)},p=(e,t,n,i)=>{let o,r;return a=>{var c;t.value>=0&&(a||i)&&(r=t.value-((c=o)!==null&&c!==void 0?c:0),(r||o===void 0)&&(o=t.value,t.delta=r,t.rating=((u,l)=>u>l[1]?"poor":u>l[0]?"needs-improvement":"good")(t.value,n),e(t)))}},R=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},$=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},M=()=>{var e,t;return(e=(t=$())===null||t===void 0?void 0:t.activationStart)!==null&&e!==void 0?e:0};let P=-1;const Y=new Set,G=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,D=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const t of Y)t();isFinite(P)||(P=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",D,!0))}},O=(e=!1)=>{if(e&&(P=1/0),0>P){var t;const n=M(),i=document.prerendering||(t=globalThis.performance.getEntriesByType("visibility-state").find(o=>o.name==="hidden"&&o.startTime>=n))===null||t===void 0?void 0:t.startTime;P=i??G(),addEventListener("visibilitychange",D,!0),addEventListener("prerenderingchange",D,!0),k(()=>{setTimeout(()=>{P=G()})})}return{get firstHiddenTime(){return P},onHidden(n){Y.add(n)}}},b=(e,t=-1,n,i=0,o,r,a)=>{const c=$(),u=c?.navigationId||0;let l="navigate";return n?l=n:0>L()?c&&(document.prerendering||M()>0?l="prerender":document.wasDiscarded?l="restore":c.type&&(l=c.type.replace(/_/g,"-"))):l="back-forward-cache",{name:e,value:t,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:l,navigationId:i||u,navigationInteractionId:o,navigationURL:r||c?.name,navigationStartTime:a||0}},J=new WeakMap;function j(e,t){let n=J.get(t);return n||(n=new WeakMap,J.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var rt=class{constructor(){this.t=void 0,this.i=0,this.o=[]}h(e){var t;if(e.hadRecentInput)return;const n=this.o[0],i=this.o.at(-1);this.i&&n&&i&&1e3>e.startTime-i.startTime&&5e3>e.startTime-n.startTime?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),(t=this.t)===null||t===void 0||t.call(this,e)}};const _=(e,t,n={})=>{try{const i=e.filter(o=>PerformanceObserver.supportedEntryTypes.includes(o));if(i.length>0){const o=new PerformanceObserver(r=>{queueMicrotask(()=>{const a=r.getEntries();i.length>1&&a.sort((c,u)=>c.startTime+c.duration-(u.startTime+u.duration)),t(a)})});for(const r of i)o.observe(F({type:r,buffered:!0},n));return o}}catch{}},A=e=>{var t,n;return((t=globalThis.PerformanceObserver)===null||t===void 0||(t=t.supportedEntryTypes)===null||t===void 0?void 0:t.includes("soft-navigation"))&&typeof((n=globalThis.PerformanceSoftNavigation)===null||n===void 0||(n=n.prototype)===null||n===void 0?void 0:n.getLargestInteractionContentfulPaint)=="function"&&e&&e.reportSoftNavs},K=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){const n=e.keys().next().value;n!==void 0&&e.delete(n)}},Q=e=>{let t=!1;return()=>{t||(e(),t=!0)}};var st=class{constructor(){this.l=void 0}};const W=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},q=[1800,3e3],Z=(e,t={})=>{const n=A(t);W(()=>{const i=j(t,st),o=O();let r,a=b("FCP");const c=_(["paint"],u=>{for(const l of u)l.name==="first-contentful-paint"&&(c.disconnect(),o.firstHiddenTime>l.startTime&&(a.value=Math.max(l.startTime-M(),0),a.entries.push(l),a.navigationId=l.navigationId||a.navigationId,r(!0)))});c&&(r=p(e,a,q,t.reportAllChanges),k(u=>{a=b("FCP",-1,"back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,L()),r=p(e,a,q,t.reportAllChanges),R(()=>{a.value=performance.now()-u.timeStamp,r(!0)})})),n&&_(["soft-navigation"],u=>{u.forEach(l=>{i.l&&l.navigationId&&K(i.l,l);const m=Math.max((l.presentationTime||l.paintTime||0)-l.startTime,0);a=b("FCP",m,"soft-navigation",l.navigationId,l.interactionId,l.name,l.startTime),r=p(e,a,q,t.reportAllChanges),r(!0)})},t)})},tt=[.1,.25];let et=0,N=1/0,x=0;const lt=e=>{for(const t of e)t.interactionId&&(N=Math.min(N,t.interactionId),x=Math.max(x,t.interactionId),et=x?(x-N)/7+1:0)};let B;const nt=()=>{var e;return B?et:(e=performance.interactionCount)!==null&&e!==void 0?e:0};var ct=class{constructor(){this.u=0,this.v=[],this.m=new Map,this.p=void 0,this.T=void 0}_(){return nt()-this.u}M(){this.u=nt(),this.v.length=0,this.m.clear()}L(e){const t=this._(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||n!==-1||e!=="soft-navigation"&&e!=="back-forward-cache"?this.v[n]:{P:8,id:-1,entries:[]}}h(e){var t;if((t=this.p)===null||t===void 0||t.call(this,e),!e.interactionId)return;const n=this.v.at(-1);let i=this.m.get(e.interactionId);if(i||10>this.v.length||e.duration>n.P){var o;if(i?e.duration>i.P?(i.entries=[e],i.P=e.duration):e.duration===i.P&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],P:e.duration},this.m.set(i.id,i),this.v.push(i)),this.v.sort((r,a)=>a.P-r.P),this.v.length>10){const r=this.v.splice(10);for(const a of r)this.m.delete(a.id)}(o=this.T)===null||o===void 0||o.call(this,i)}}};const it=e=>{const t="requestIdleCallback"in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,i=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{const o=Q(e);let r=-1;const a=()=>{i(r),o()};addEventListener("visibilitychange",a,{once:!0,capture:!0}),r=n(()=>{removeEventListener("visibilitychange",a,{capture:!0}),o()},{timeout:t})}},ot=[200,500];var dt=class{constructor(){this.p=void 0,this.l=void 0}h(e){var t;(t=this.p)===null||t===void 0||t.call(this,e)}};const U=[2500,4e3],H={onLCP(e,t={}){let n=!1;const i=A(t);W(()=>{let o,r=O(),a=b("LCP");const c=j(t,dt),u=(s,v,d,h,y)=>{a=b("LCP",-1,s,v,d,h,y),o=p(e,a,U,t.reportAllChanges),n=!1,s==="soft-navigation"&&(r=O(!0))},l=s=>{var v;c.l&&s.navigationId&&K(c.l,s),n||o(!0),u("soft-navigation",s.navigationId,s.interactionId,s.name,s.startTime);const d=(v=s.getLargestInteractionContentfulPaint)===null||v===void 0?void 0:v.call(s);d&&m([d])},m=s=>{t.reportAllChanges||i||(s=s.slice(-1));for(const d of s){if(!d)continue;if(d.entryType==="soft-navigation"){l(d);continue}let h=0,y=[],V=d.startTime;if(d.entryType==="largest-contentful-paint")h=Math.max(d.startTime-M(),0),c.h(d),y=[d];else if(d.entryType==="interaction-contentful-paint"){var v;const E=d;if(!a.navigationId||"interactionId"in E&&E.interactionId!=a.navigationInteractionId)continue;V=((v=E.largestContentfulPaint)===null||v===void 0?void 0:v.renderTime)||0,h=Math.max(V-d.startTime,0),E.largestContentfulPaint&&(c.h(E.largestContentfulPaint),y=[E.largestContentfulPaint])}r.firstHiddenTime>V&&(a.value=h,a.entries=y,o())}},I=["largest-contentful-paint"];i&&I.push("interaction-contentful-paint","soft-navigation");const f=_(I,m);if(f){o=p(e,a,U,t.reportAllChanges);const s=["keydown","click","visibilitychange"],v=d=>{if(d.isTrusted&&!n){const h=a.id;it(()=>{if(!n){if(!i){f.disconnect();for(const y of s)removeEventListener(y,v,{capture:!0})}h===a.id&&(n=!0,o(!0))}})}};for(const d of s)addEventListener(d,v,{capture:!0});k(d=>{u("back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,L()),o=p(e,a,U,t.reportAllChanges),R(()=>{a.value=performance.now()-d.timeStamp,n=!0,o(!0)})})}})},onCLS(e,t={}){const n=O();Z(Q(()=>{let i,o=b("CLS",0);const r=j(t,rt),a=(f,s,v,d,h)=>{o=b("CLS",0,f,s,v,d,h),r.i=0,i=p(e,o,tt,t.reportAllChanges)},c=(f=!1)=>{r.i>o.value&&(o.value=r.i,o.entries=r.o),i(f)},u=f=>{c(!0),a("soft-navigation",f.navigationId,f.interactionId,f.name,f.startTime)},l=f=>{for(const s of f)s.entryType!=="soft-navigation"?r.h(s):u(s);c()},m=["layout-shift"];A(t)&&m.push("soft-navigation");const I=_(m,l);I&&(i=p(e,o,tt,t.reportAllChanges),n.onHidden(()=>{l(I.takeRecords()),i(!0)}),k(()=>{a("back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,L()),R(i)}),setTimeout(i))}))},onFCP:Z,onINP(e,t={}){if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=O();W(()=>{var i;"interactionCount"in performance||B||(B=_(["event"],lt,{durationThreshold:0}));let o,r=b("INP");const a=j(t,ct),c=(s,v,d,h,y)=>{a.M(),r=b("INP",-1,s,v,d,h,y),o=p(e,r,ot,t.reportAllChanges)},u=()=>{const s=a.L(r.navigationType);s&&s.P!==r.value&&(r.value=s.P,r.entries=s.entries,o())},l=s=>{u(),o(!0),c("soft-navigation",s.navigationId,s.interactionId,s.name,s.startTime)},m=(s,v=!1)=>{it(()=>{for(const d of s)d.entryType!=="soft-navigation"?a.h(d):l(d);u(),v&&o(!0)})},I=["event","first-input"];A(t)&&I.push("soft-navigation");const f=_(I,m,F(F({},t),{},{durationThreshold:(i=t.durationThreshold)!==null&&i!==void 0?i:40}));o=p(e,r,ot,t.reportAllChanges),f&&(n.onHidden(()=>{m(f.takeRecords(),!0)}),k(()=>{c("back-forward-cache",r.navigationId,r.navigationInteractionId,r.navigationURL,L())}))})}};T.__PosthogExtensions__=T.__PosthogExtensions__||{},T.__PosthogExtensions__.postHogWebVitalsCallbacksByFlavor=T.__PosthogExtensions__.postHogWebVitalsCallbacksByFlavor||{},T.__PosthogExtensions__.postHogWebVitalsCallbacksByFlavor["web-vitals"]=H,T.__PosthogExtensions__.postHogWebVitalsCallbacks=H,T.postHogWebVitalsCallbacks=H,T.__PosthogExtensions__.loadWebVitalsCallbacks=()=>H})();
|
|
1
|
+
(function(){try{var g=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};g.SENTRY_RELEASE={id:"3.26.1"};var w=new g.Error().stack;w&&(g._sentryDebugIds=g._sentryDebugIds||{},g._sentryDebugIds[w]="3a73e22f-747b-4425-ad4a-15abe56be946",g._sentryDebugIdIdentifier="sentry-dbid-3a73e22f-747b-4425-ad4a-15abe56be946")}catch{}})();(function(){typeof[].at!="function"&&Object.defineProperty(Array.prototype,"at",{value(e){const t=this.length;let n=Math.trunc(e)||0;return 0>n&&(n+=t),0>n||n>=t?void 0:this[n]},writable:!0,enumerable:!1,configurable:!0});const g="u">typeof window?window:void 0,w="u">typeof globalThis?globalThis:g;w!=null&&w.XMLHttpRequest&&new w.XMLHttpRequest;const C=typeof globalThis<"u"?globalThis:g;C&&typeof self>"u"&&(C.self=C),C&&typeof File>"u"&&(C.File=function(){});const T=g??{};function S(e){return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},S(e)}function at(e,t,n){return(t=(function(i){var o=(function(r){if(S(r)!="object"||!r)return r;var a=r[Symbol.toPrimitive];if(a!==void 0){var c=a.call(r,"string");if(S(c)!="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)})(i);return S(o)=="symbol"?o:o+""})(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;arguments.length>t;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z(Object(n),!0).forEach(function(i){at(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}let X=-1;const L=()=>X,k=e=>{addEventListener("pageshow",t=>{t.persisted&&(X=t.timeStamp,e(t))},!0)},p=(e,t,n,i)=>{let o,r;return a=>{var c;t.value>=0&&(a||i)&&(r=t.value-((c=o)!==null&&c!==void 0?c:0),(r||o===void 0)&&(o=t.value,t.delta=r,t.rating=((u,l)=>u>l[1]?"poor":u>l[0]?"needs-improvement":"good")(t.value,n),e(t)))}},R=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},$=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},M=()=>{var e,t;return(e=(t=$())===null||t===void 0?void 0:t.activationStart)!==null&&e!==void 0?e:0};let P=-1;const Y=new Set,G=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,D=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const t of Y)t();isFinite(P)||(P=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",D,!0))}},O=(e=!1)=>{if(e&&(P=1/0),0>P){var t;const n=M(),i=document.prerendering||(t=globalThis.performance.getEntriesByType("visibility-state").find(o=>o.name==="hidden"&&o.startTime>=n))===null||t===void 0?void 0:t.startTime;P=i??G(),addEventListener("visibilitychange",D,!0),addEventListener("prerenderingchange",D,!0),k(()=>{setTimeout(()=>{P=G()})})}return{get firstHiddenTime(){return P},onHidden(n){Y.add(n)}}},b=(e,t=-1,n,i=0,o,r,a)=>{const c=$(),u=c?.navigationId||0;let l="navigate";return n?l=n:0>L()?c&&(document.prerendering||M()>0?l="prerender":document.wasDiscarded?l="restore":c.type&&(l=c.type.replace(/_/g,"-"))):l="back-forward-cache",{name:e,value:t,rating:"good",delta:0,entries:[],id:`v6-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:l,navigationId:i||u,navigationInteractionId:o,navigationURL:r||c?.name,navigationStartTime:a||0}},J=new WeakMap;function j(e,t){let n=J.get(t);return n||(n=new WeakMap,J.set(t,n)),n.get(e)||n.set(e,new t),n.get(e)}var rt=class{constructor(){this.t=void 0,this.i=0,this.o=[]}h(e){var t;if(e.hadRecentInput)return;const n=this.o[0],i=this.o.at(-1);this.i&&n&&i&&1e3>e.startTime-i.startTime&&5e3>e.startTime-n.startTime?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),(t=this.t)===null||t===void 0||t.call(this,e)}};const _=(e,t,n={})=>{try{const i=e.filter(o=>PerformanceObserver.supportedEntryTypes.includes(o));if(i.length>0){const o=new PerformanceObserver(r=>{queueMicrotask(()=>{const a=r.getEntries();i.length>1&&a.sort((c,u)=>c.startTime+c.duration-(u.startTime+u.duration)),t(a)})});for(const r of i)o.observe(F({type:r,buffered:!0},n));return o}}catch{}},A=e=>{var t,n;return((t=globalThis.PerformanceObserver)===null||t===void 0||(t=t.supportedEntryTypes)===null||t===void 0?void 0:t.includes("soft-navigation"))&&typeof((n=globalThis.PerformanceSoftNavigation)===null||n===void 0||(n=n.prototype)===null||n===void 0?void 0:n.getLargestInteractionContentfulPaint)=="function"&&e&&e.reportSoftNavs},K=(e,t)=>{if(e.set(t.navigationId,t),e.size>2){const n=e.keys().next().value;n!==void 0&&e.delete(n)}},Q=e=>{let t=!1;return()=>{t||(e(),t=!0)}};var st=class{constructor(){this.l=void 0}};const W=e=>{document.prerendering?addEventListener("prerenderingchange",e,!0):e()},q=[1800,3e3],Z=(e,t={})=>{const n=A(t);W(()=>{const i=j(t,st),o=O();let r,a=b("FCP");const c=_(["paint"],u=>{for(const l of u)l.name==="first-contentful-paint"&&(c.disconnect(),o.firstHiddenTime>l.startTime&&(a.value=Math.max(l.startTime-M(),0),a.entries.push(l),a.navigationId=l.navigationId||a.navigationId,r(!0)))});c&&(r=p(e,a,q,t.reportAllChanges),k(u=>{a=b("FCP",-1,"back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,L()),r=p(e,a,q,t.reportAllChanges),R(()=>{a.value=performance.now()-u.timeStamp,r(!0)})})),n&&_(["soft-navigation"],u=>{u.forEach(l=>{i.l&&l.navigationId&&K(i.l,l);const m=Math.max((l.presentationTime||l.paintTime||0)-l.startTime,0);a=b("FCP",m,"soft-navigation",l.navigationId,l.interactionId,l.name,l.startTime),r=p(e,a,q,t.reportAllChanges),r(!0)})},t)})},tt=[.1,.25];let et=0,N=1/0,x=0;const lt=e=>{for(const t of e)t.interactionId&&(N=Math.min(N,t.interactionId),x=Math.max(x,t.interactionId),et=x?(x-N)/7+1:0)};let B;const nt=()=>{var e;return B?et:(e=performance.interactionCount)!==null&&e!==void 0?e:0};var ct=class{constructor(){this.u=0,this.v=[],this.m=new Map,this.p=void 0,this.T=void 0}_(){return nt()-this.u}M(){this.u=nt(),this.v.length=0,this.m.clear()}L(e){const t=this._(),n=Math.min(this.v.length-1,Math.floor(t/50));return!t||n!==-1||e!=="soft-navigation"&&e!=="back-forward-cache"?this.v[n]:{P:8,id:-1,entries:[]}}h(e){var t;if((t=this.p)===null||t===void 0||t.call(this,e),!e.interactionId)return;const n=this.v.at(-1);let i=this.m.get(e.interactionId);if(i||10>this.v.length||e.duration>n.P){var o;if(i?e.duration>i.P?(i.entries=[e],i.P=e.duration):e.duration===i.P&&e.startTime===i.entries[0].startTime&&i.entries.push(e):(i={id:e.interactionId,entries:[e],P:e.duration},this.m.set(i.id,i),this.v.push(i)),this.v.sort((r,a)=>a.P-r.P),this.v.length>10){const r=this.v.splice(10);for(const a of r)this.m.delete(a.id)}(o=this.T)===null||o===void 0||o.call(this,i)}}};const it=e=>{const t="requestIdleCallback"in globalThis?1e3:0,n=globalThis.requestIdleCallback||setTimeout,i=globalThis.cancelIdleCallback||clearTimeout;if(document.visibilityState==="hidden")e();else{const o=Q(e);let r=-1;const a=()=>{i(r),o()};addEventListener("visibilitychange",a,{once:!0,capture:!0}),r=n(()=>{removeEventListener("visibilitychange",a,{capture:!0}),o()},{timeout:t})}},ot=[200,500];var dt=class{constructor(){this.p=void 0,this.l=void 0}h(e){var t;(t=this.p)===null||t===void 0||t.call(this,e)}};const U=[2500,4e3],H={onLCP(e,t={}){let n=!1;const i=A(t);W(()=>{let o,r=O(),a=b("LCP");const c=j(t,dt),u=(s,v,d,h,y)=>{a=b("LCP",-1,s,v,d,h,y),o=p(e,a,U,t.reportAllChanges),n=!1,s==="soft-navigation"&&(r=O(!0))},l=s=>{var v;c.l&&s.navigationId&&K(c.l,s),n||o(!0),u("soft-navigation",s.navigationId,s.interactionId,s.name,s.startTime);const d=(v=s.getLargestInteractionContentfulPaint)===null||v===void 0?void 0:v.call(s);d&&m([d])},m=s=>{t.reportAllChanges||i||(s=s.slice(-1));for(const d of s){if(!d)continue;if(d.entryType==="soft-navigation"){l(d);continue}let h=0,y=[],V=d.startTime;if(d.entryType==="largest-contentful-paint")h=Math.max(d.startTime-M(),0),c.h(d),y=[d];else if(d.entryType==="interaction-contentful-paint"){var v;const E=d;if(!a.navigationId||"interactionId"in E&&E.interactionId!=a.navigationInteractionId)continue;V=((v=E.largestContentfulPaint)===null||v===void 0?void 0:v.renderTime)||0,h=Math.max(V-d.startTime,0),E.largestContentfulPaint&&(c.h(E.largestContentfulPaint),y=[E.largestContentfulPaint])}r.firstHiddenTime>V&&(a.value=h,a.entries=y,o())}},I=["largest-contentful-paint"];i&&I.push("interaction-contentful-paint","soft-navigation");const f=_(I,m);if(f){o=p(e,a,U,t.reportAllChanges);const s=["keydown","click","visibilitychange"],v=d=>{if(d.isTrusted&&!n){const h=a.id;it(()=>{if(!n){if(!i){f.disconnect();for(const y of s)removeEventListener(y,v,{capture:!0})}h===a.id&&(n=!0,o(!0))}})}};for(const d of s)addEventListener(d,v,{capture:!0});k(d=>{u("back-forward-cache",a.navigationId,a.navigationInteractionId,a.navigationURL,L()),o=p(e,a,U,t.reportAllChanges),R(()=>{a.value=performance.now()-d.timeStamp,n=!0,o(!0)})})}})},onCLS(e,t={}){const n=O();Z(Q(()=>{let i,o=b("CLS",0);const r=j(t,rt),a=(f,s,v,d,h)=>{o=b("CLS",0,f,s,v,d,h),r.i=0,i=p(e,o,tt,t.reportAllChanges)},c=(f=!1)=>{r.i>o.value&&(o.value=r.i,o.entries=r.o),i(f)},u=f=>{c(!0),a("soft-navigation",f.navigationId,f.interactionId,f.name,f.startTime)},l=f=>{for(const s of f)s.entryType!=="soft-navigation"?r.h(s):u(s);c()},m=["layout-shift"];A(t)&&m.push("soft-navigation");const I=_(m,l);I&&(i=p(e,o,tt,t.reportAllChanges),n.onHidden(()=>{l(I.takeRecords()),i(!0)}),k(()=>{a("back-forward-cache",o.navigationId,o.navigationInteractionId,o.navigationURL,L()),R(i)}),setTimeout(i))}))},onFCP:Z,onINP(e,t={}){if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=O();W(()=>{var i;"interactionCount"in performance||B||(B=_(["event"],lt,{durationThreshold:0}));let o,r=b("INP");const a=j(t,ct),c=(s,v,d,h,y)=>{a.M(),r=b("INP",-1,s,v,d,h,y),o=p(e,r,ot,t.reportAllChanges)},u=()=>{const s=a.L(r.navigationType);s&&s.P!==r.value&&(r.value=s.P,r.entries=s.entries,o())},l=s=>{u(),o(!0),c("soft-navigation",s.navigationId,s.interactionId,s.name,s.startTime)},m=(s,v=!1)=>{it(()=>{for(const d of s)d.entryType!=="soft-navigation"?a.h(d):l(d);u(),v&&o(!0)})},I=["event","first-input"];A(t)&&I.push("soft-navigation");const f=_(I,m,F(F({},t),{},{durationThreshold:(i=t.durationThreshold)!==null&&i!==void 0?i:40}));o=p(e,r,ot,t.reportAllChanges),f&&(n.onHidden(()=>{m(f.takeRecords(),!0)}),k(()=>{c("back-forward-cache",r.navigationId,r.navigationInteractionId,r.navigationURL,L())}))})}};T.__PosthogExtensions__=T.__PosthogExtensions__||{},T.__PosthogExtensions__.postHogWebVitalsCallbacksByFlavor=T.__PosthogExtensions__.postHogWebVitalsCallbacksByFlavor||{},T.__PosthogExtensions__.postHogWebVitalsCallbacksByFlavor["web-vitals"]=H,T.__PosthogExtensions__.postHogWebVitalsCallbacks=H,T.postHogWebVitalsCallbacks=H,T.__PosthogExtensions__.loadWebVitalsCallbacks=()=>H})();
|
|
2
2
|
|
|
3
|
-
//# sourceMappingURL=web-vitals-
|
|
3
|
+
//# sourceMappingURL=web-vitals-DHv25aJU.js.map
|
package/dist/client/index.html
CHANGED
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
<link rel="icon" type="image/svg+xml" href="/mcp_jam.svg" />
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
8
|
<title>MCPJam Inspector</title>
|
|
9
|
-
<script type="module" crossorigin src="/assets/index-
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/assets/project-route-
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/assets/react-dom-
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/assets/preload-helper-
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/assets/app-navigation-
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/assets/first-run-oauth-return-
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/assets/first-run-oauth-return-
|
|
9
|
+
<script type="module" crossorigin src="/assets/index-CeytPr1a.js"></script>
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-CNhBNX9h.js">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/assets/project-route-DNrtuUI8.js">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/assets/react-dom-3ylgkoRI.js">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/assets/preload-helper-CEUuZLTj.js">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/assets/app-navigation-C1fmIwWx.js">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/assets/first-run-oauth-return-__GiXMoC.js">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/assets/first-run-oauth-return-CQwiwOKd.css">
|
|
17
17
|
<link rel="stylesheet" crossorigin href="/assets/index-D0cvXzYt.css">
|
|
18
|
-
<script src="/assets/telemetry-files-
|
|
18
|
+
<script src="/assets/telemetry-files-c167c4e2b38f8ea7.js"></script></head>
|
|
19
19
|
<body>
|
|
20
20
|
<div id="root"></div>
|
|
21
21
|
</body>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// lib/launcher/index.ts
|
|
2
2
|
import { createRequire } from "module";
|
|
3
|
-
import
|
|
3
|
+
import path2 from "path";
|
|
4
4
|
|
|
5
5
|
// ../sdk/dist/internal/inspector.js
|
|
6
6
|
import { createHash, randomBytes } from "crypto";
|
|
7
|
-
import { lstatSync, readFileSync, mkdirSync, chmodSync, writeFileSync, unlinkSync, closeSync, statSync, renameSync, openSync,
|
|
7
|
+
import { existsSync, lstatSync, readFileSync, mkdirSync, chmodSync, writeFileSync, unlinkSync, closeSync, statSync, renameSync, openSync, readdirSync } from "fs";
|
|
8
8
|
import { spawn } from "child_process";
|
|
9
9
|
import os from "os";
|
|
10
|
-
import
|
|
10
|
+
import path from "path";
|
|
11
11
|
import { stripVTControlCharacters } from "util";
|
|
12
12
|
import { createServer } from "net";
|
|
13
13
|
var SdkError = class extends Error {
|
|
@@ -109,7 +109,7 @@ async function fetchFreshInspectorSessionToken(normalizedBaseUrl) {
|
|
|
109
109
|
throw operationalError("Inspector attachment requires a local address.");
|
|
110
110
|
let token;
|
|
111
111
|
try {
|
|
112
|
-
const file =
|
|
112
|
+
const file = path.join(
|
|
113
113
|
os.homedir(),
|
|
114
114
|
".mcpjam",
|
|
115
115
|
"inspector",
|
|
@@ -238,7 +238,7 @@ async function waitForInspectorReleases(baseUrl, token, attachIds, timeoutMs) {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function inspectorHoldersDir(port, home = os.homedir()) {
|
|
241
|
-
return
|
|
241
|
+
return path.join(home, ".mcpjam", "inspector", `${port}.holders`);
|
|
242
242
|
}
|
|
243
243
|
var holdsByPort = /* @__PURE__ */ new Map();
|
|
244
244
|
function isPidAlive(pid) {
|
|
@@ -265,7 +265,7 @@ function pruneDeadHolders(dir, isAlive) {
|
|
|
265
265
|
continue;
|
|
266
266
|
}
|
|
267
267
|
try {
|
|
268
|
-
unlinkSync(
|
|
268
|
+
unlinkSync(path.join(dir, name));
|
|
269
269
|
} catch {
|
|
270
270
|
}
|
|
271
271
|
}
|
|
@@ -274,7 +274,7 @@ function pruneDeadHolders(dir, isAlive) {
|
|
|
274
274
|
function holdInspector(port, options = {}) {
|
|
275
275
|
const pid = options.pid ?? process.pid;
|
|
276
276
|
const dir = inspectorHoldersDir(port, options.home);
|
|
277
|
-
const file =
|
|
277
|
+
const file = path.join(dir, `${pid}.json`);
|
|
278
278
|
try {
|
|
279
279
|
mkdirSync(dir, { recursive: true, mode: 448 });
|
|
280
280
|
chmodSync(dir, 448);
|
|
@@ -487,8 +487,8 @@ async function startAndWait(args) {
|
|
|
487
487
|
env.MCPJAM_INSPECTOR_HOLDERS_DIR = inspectorHoldersDir(port);
|
|
488
488
|
env.MCPJAM_INSPECTOR_DISABLE_ORPHAN_CHECK = "1";
|
|
489
489
|
env.MCPJAM_INSPECTOR_SUPPRESS_AUTO_OPEN = "1";
|
|
490
|
-
logFile =
|
|
491
|
-
mkdirSync(
|
|
490
|
+
logFile = path.join(os.homedir(), ".mcpjam", "inspector", `${port}.log`);
|
|
491
|
+
mkdirSync(path.dirname(logFile), { recursive: true, mode: 448 });
|
|
492
492
|
logFd = openStartupLog(logFile);
|
|
493
493
|
}
|
|
494
494
|
const child = spawn(
|
|
@@ -714,7 +714,7 @@ async function launchInspector(options = {}) {
|
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
716
|
const packageJsonPath = require2.resolve("@mcpjam/inspector/package.json");
|
|
717
|
-
const binPath =
|
|
717
|
+
const binPath = path2.resolve(path2.dirname(packageJsonPath), "bin/start.js");
|
|
718
718
|
const shouldOpen = options.open !== false && !process.env.CI && Boolean(process.stdout.isTTY);
|
|
719
719
|
const inspector = await embedInspector({
|
|
720
720
|
start: { command: "node", args: [binPath] },
|
package/dist/lib/vite/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// lib/launcher/index.ts
|
|
2
2
|
import { createRequire } from "module";
|
|
3
|
-
import
|
|
3
|
+
import path2 from "path";
|
|
4
4
|
|
|
5
5
|
// ../sdk/dist/internal/inspector.js
|
|
6
6
|
import { createHash, randomBytes } from "crypto";
|
|
7
|
-
import { lstatSync, readFileSync, mkdirSync, chmodSync, writeFileSync, unlinkSync, closeSync, statSync, renameSync, openSync,
|
|
7
|
+
import { existsSync, lstatSync, readFileSync, mkdirSync, chmodSync, writeFileSync, unlinkSync, closeSync, statSync, renameSync, openSync, readdirSync } from "fs";
|
|
8
8
|
import { spawn } from "child_process";
|
|
9
9
|
import os from "os";
|
|
10
|
-
import
|
|
10
|
+
import path from "path";
|
|
11
11
|
import { stripVTControlCharacters } from "util";
|
|
12
12
|
import { createServer } from "net";
|
|
13
13
|
var SdkError = class extends Error {
|
|
@@ -109,7 +109,7 @@ async function fetchFreshInspectorSessionToken(normalizedBaseUrl) {
|
|
|
109
109
|
throw operationalError("Inspector attachment requires a local address.");
|
|
110
110
|
let token;
|
|
111
111
|
try {
|
|
112
|
-
const file =
|
|
112
|
+
const file = path.join(
|
|
113
113
|
os.homedir(),
|
|
114
114
|
".mcpjam",
|
|
115
115
|
"inspector",
|
|
@@ -238,7 +238,7 @@ async function waitForInspectorReleases(baseUrl, token, attachIds, timeoutMs) {
|
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function inspectorHoldersDir(port, home = os.homedir()) {
|
|
241
|
-
return
|
|
241
|
+
return path.join(home, ".mcpjam", "inspector", `${port}.holders`);
|
|
242
242
|
}
|
|
243
243
|
var holdsByPort = /* @__PURE__ */ new Map();
|
|
244
244
|
function isPidAlive(pid) {
|
|
@@ -265,7 +265,7 @@ function pruneDeadHolders(dir, isAlive) {
|
|
|
265
265
|
continue;
|
|
266
266
|
}
|
|
267
267
|
try {
|
|
268
|
-
unlinkSync(
|
|
268
|
+
unlinkSync(path.join(dir, name));
|
|
269
269
|
} catch {
|
|
270
270
|
}
|
|
271
271
|
}
|
|
@@ -274,7 +274,7 @@ function pruneDeadHolders(dir, isAlive) {
|
|
|
274
274
|
function holdInspector(port, options = {}) {
|
|
275
275
|
const pid = options.pid ?? process.pid;
|
|
276
276
|
const dir = inspectorHoldersDir(port, options.home);
|
|
277
|
-
const file =
|
|
277
|
+
const file = path.join(dir, `${pid}.json`);
|
|
278
278
|
try {
|
|
279
279
|
mkdirSync(dir, { recursive: true, mode: 448 });
|
|
280
280
|
chmodSync(dir, 448);
|
|
@@ -487,8 +487,8 @@ async function startAndWait(args) {
|
|
|
487
487
|
env.MCPJAM_INSPECTOR_HOLDERS_DIR = inspectorHoldersDir(port);
|
|
488
488
|
env.MCPJAM_INSPECTOR_DISABLE_ORPHAN_CHECK = "1";
|
|
489
489
|
env.MCPJAM_INSPECTOR_SUPPRESS_AUTO_OPEN = "1";
|
|
490
|
-
logFile =
|
|
491
|
-
mkdirSync(
|
|
490
|
+
logFile = path.join(os.homedir(), ".mcpjam", "inspector", `${port}.log`);
|
|
491
|
+
mkdirSync(path.dirname(logFile), { recursive: true, mode: 448 });
|
|
492
492
|
logFd = openStartupLog(logFile);
|
|
493
493
|
}
|
|
494
494
|
const child = spawn(
|
|
@@ -714,7 +714,7 @@ async function launchInspector(options = {}) {
|
|
|
714
714
|
);
|
|
715
715
|
}
|
|
716
716
|
const packageJsonPath = require2.resolve("@mcpjam/inspector/package.json");
|
|
717
|
-
const binPath =
|
|
717
|
+
const binPath = path2.resolve(path2.dirname(packageJsonPath), "bin/start.js");
|
|
718
718
|
const shouldOpen = options.open !== false && !process.env.CI && Boolean(process.stdout.isTTY);
|
|
719
719
|
const inspector = await embedInspector({
|
|
720
720
|
start: { command: "node", args: [binPath] },
|