@mcpjam/inspector 3.10.0 → 3.11.0
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/{dead-clicks-autocapture-CRfVBzS6.js → dead-clicks-autocapture-ApmbuFvM.js} +2 -2
- package/dist/client/assets/error-reporting-C8so6E8C.js +92 -0
- package/dist/client/assets/{exception-autocapture-BHLBDsVF.js → exception-autocapture-BqHgtpgn.js} +2 -2
- package/dist/client/assets/highlighted-body-OFNGDK62-Lg-8-zC8.js +2 -0
- package/dist/client/assets/index-BYEarR7W.css +1 -0
- package/dist/client/assets/index-BireMI1y.js +11 -0
- package/dist/client/assets/{jszip.min-CVpITk9L.js → jszip.min-DkflbHVD.js} +2 -2
- package/dist/client/assets/{index-xYfOy8Uh.js → mermaid-GHXKKRXX-DooOqFNN.js} +433 -530
- package/dist/client/assets/mermaid-GHXKKRXX-zqdNpMJm.css +1 -0
- package/dist/client/assets/{posthog-recorder-DhYgVDjH.js → posthog-recorder-Cqdsd7mu.js} +2 -2
- package/dist/client/assets/{surveys-BsMQ8K0Z.js → surveys-Bn96AwyI.js} +2 -2
- package/dist/client/assets/{web-vitals-C8iPulDK.js → web-vitals-D6VtlfDg.js} +2 -2
- package/dist/client/index.html +2 -2
- package/dist/server/{chunk-SPXMROZ2.js → chunk-3I6NEQHV.js} +2 -2
- package/dist/server/harness-install-cli.js +1 -1
- package/dist/server/index.js +483 -244
- package/package.json +2 -2
- package/dist/client/assets/highlighted-body-OFNGDK62-DcDJX6Ir.js +0 -2
- package/dist/client/assets/index-ODvQMTLQ.css +0 -1
package/dist/client/assets/{exception-autocapture-BHLBDsVF.js → exception-autocapture-BqHgtpgn.js}
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};l.SENTRY_RELEASE={id:"3.
|
|
1
|
+
(function(){try{var l=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};l.SENTRY_RELEASE={id:"3.11.0"};var v=new l.Error().stack;v&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[v]="2e072337-07db-4205-8556-aa26e994bf3e",l._sentryDebugIdIdentifier="sentry-dbid-2e072337-07db-4205-8556-aa26e994bf3e")}catch{}})();(function(){var l=typeof window<"u"?window:void 0,v=typeof globalThis<"u"?globalThis:l;typeof self>"u"&&(v.self=v),typeof File>"u"&&(v.File=function(){}),v!=null&&v.XMLHttpRequest&&new v.XMLHttpRequest;var d=l??{};function S(e,r,n,t,a,i,o){try{var s=e[i](o),c=s.value}catch(u){return void n(u)}s.done?r(c):Promise.resolve(c).then(t,a)}function P(e){return function(){var r=this,n=arguments;return new Promise((function(t,a){var i=e.apply(r,n);function o(c){S(i,t,a,o,s,"next",c)}function s(c){S(i,t,a,o,s,"throw",c)}o(void 0)}))}}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var r=1;arguments.length>r;r++){var n=arguments[r];for(var t in n)({}).hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},f.apply(null,arguments)}var g,M,m,D={}.toString,G=Array.isArray||function(e){return D.call(e)==="[object Array]"},E=e=>e===void 0,k=e=>D.call(e)=="[object String]";function R(e){return e===null||typeof e!="object"}function y(e,r){return{}.toString.call(e)==="[object "+r+"]"}function b(e){return typeof Event<"u"&&(function(r,n){try{return r instanceof n}catch{return!1}})(e,Event)}function $(e){var r=globalThis._posthogChunkIds;if(r){var n=Object.keys(r);return m&&n.length===M?m:(M=n.length,m=n.reduce(((t,a)=>{g||(g={});var i=g[a];if(i)t[i[0]]=i[1];else for(var o=e(a),s=o.length-1;s>=0;s--){var c=o[s],u=c?.filename,p=r[a];if(u&&p){t[u]=p,g[a]=[u,p];break}}return t}),{}))}}var h="?";function _(e,r,n,t,a){var i={platform:e,filename:r,function:n==="<anonymous>"?h:n,in_app:!0};return E(t)||(i.lineno=t),E(a)||(i.colno=a),i}var C=(e,r)=>{var n=e.indexOf("safari-extension")!==-1,t=e.indexOf("safari-web-extension")!==-1;return n||t?[e.indexOf("@")!==-1?e.split("@")[0]:h,n?"safari-extension:"+r:"safari-web-extension:"+r]:[e,r]},W=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,z=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,V=/\((\S*)(?::(\d+))(?::(\d+))\)/,q=(e,r)=>{var n=W.exec(e);if(n){var[,t,a,i]=n;return _(r,t,h,+a,+i)}var o=z.exec(e);if(o){if(o[2]&&o[2].indexOf("eval")===0){var s=V.exec(o[2]);s&&(o[2]=s[1],o[3]=s[2],o[4]=s[3])}var[c,u]=C(o[1]||h,o[2]);return _(r,u,c,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}},X=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Y=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,B=(e,r)=>{var n=X.exec(e);if(n){if(n[3]&&n[3].indexOf(" > eval")>-1){var t=Y.exec(n[3]);t&&(n[1]=n[1]||"eval",n[3]=t[1],n[4]=t[2],n[5]="")}var a=n[3],i=n[1]||h;return[i,a]=C(i,a),_(r,a,i,n[4]?+n[4]:void 0,n[5]?+n[5]:void 0)}},I=/\(error: (.*)\)/,J=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i,K=["fatal","error","warning","log","info","debug"];function U(e,r){r===void 0&&(r=40);var n=Object.keys(e);if(n.sort(),!n.length)return"[object has no keys]";for(var t=n.length;t>0;t--){var a=n.slice(0,t).join(", ");if(r>=a.length)return t===n.length?a:a.length>r?a.slice(0,r)+"...":a}return""}var F=function(e,r){var{debugEnabled:n}=r===void 0?{}:r,t={C(a){if(l&&(d.POSTHOG_DEBUG||n)&&!E(l.console)&&l.console){for(var i=("__rrweb_original__"in l.console[a])?l.console[a].__rrweb_original__:l.console[a],o=arguments.length,s=new Array(o>1?o-1:0),c=1;o>c;c++)s[c-1]=arguments[c];i(e,...s)}},info(){for(var a=arguments.length,i=new Array(a),o=0;a>o;o++)i[o]=arguments[o];t.C("log",...i)},warn(){for(var a=arguments.length,i=new Array(a),o=0;a>o;o++)i[o]=arguments[o];t.C("warn",...i)},error(){for(var a=arguments.length,i=new Array(a),o=0;a>o;o++)i[o]=arguments[o];t.C("error",...i)},critical(){for(var a=arguments.length,i=new Array(a),o=0;a>o;o++)i[o]=arguments[o];console.error(e,...i)},uninitializedWarning(a){t.error("You must initialize PostHog before calling "+a)},createLogger:(a,i)=>F(e+" "+a,i)};return t},N=F("[PostHog.js]").createLogger;N("[Error tracking]");var w=N("[ExceptionAutocapture]"),x=new class{constructor(e,r,n){n===void 0&&(n=[]),this.coercers=e,this.stackParser=r,this.modifiers=n}buildFromUnknown(e,r){r===void 0&&(r={});var n=r&&r.mechanism||{handled:!0,type:"generic"},t=this.buildCoercingContext(n,r,0).apply(e),a=this.buildParsingContext(r),i=this.parseStacktrace(t,a);return{$exception_list:this.convertToExceptionList(i,n),$exception_level:"error"}}modifyFrames(e){var r=this;return P((function*(){for(var n of e)n.stacktrace&&n.stacktrace.frames&&G(n.stacktrace.frames)&&(n.stacktrace.frames=yield r.applyModifiers(n.stacktrace.frames));return e}))()}coerceFallback(e){var r;return{type:"Error",value:"Unknown error",stack:(r=e.syntheticException)==null?void 0:r.stack,synthetic:!0}}parseStacktrace(e,r){var n,t;return e.cause!=null&&(n=this.parseStacktrace(e.cause,r)),e.stack!=""&&e.stack!=null&&(t=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?r.skipFirstLines:0),r.chunkIdMap)),f({},e,{cause:n,stack:t})}applyChunkIds(e,r){return e.map((n=>(n.filename&&r&&(n.chunk_id=r[n.filename]),n)))}applyCoercers(e,r){for(var n of this.coercers)if(n.match(e))return n.coerce(e,r);return this.coerceFallback(r)}applyModifiers(e){var r=this;return P((function*(){var n=e;for(var t of r.modifiers)n=yield t(n);return n}))()}convertToExceptionList(e,r){var n,t,a,i={type:e.type,value:e.value,mechanism:{type:(n=r.type)!==null&&n!==void 0?n:"generic",handled:(t=r.handled)===null||t===void 0||t,synthetic:(a=e.synthetic)!==null&&a!==void 0&&a}};e.stack&&(i.stacktrace={type:"raw",frames:e.stack});var o=[i];return e.cause!=null&&o.push(...this.convertToExceptionList(e.cause,f({},r,{handled:!0}))),o}buildParsingContext(e){var r;return{chunkIdMap:$(this.stackParser),skipFirstLines:(r=e.skipFirstLines)!==null&&r!==void 0?r:1}}buildCoercingContext(e,r,n){n===void 0&&(n=0);var t=(a,i)=>{if(4>=i){var o=this.buildCoercingContext(e,r,i);return this.applyCoercers(a,o)}};return f({},r,{syntheticException:n==0?r.syntheticException:void 0,mechanism:e,apply:a=>t(a,n),next:a=>t(a,n+1)})}}([new class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,r){var n=k(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:n?e.stack:void 0,cause:e.cause?r.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var r=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?r+": "+e.message:r}isDOMException(e){return y(e,"DOMException")}isDOMError(e){return y(e,"DOMError")}},new class{match(e){return y(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!b(e))return!1;try{var r=e.detail;return r!=null&&typeof r=="object"&&"reason"in r}catch{return!1}}coerce(e,r){var n,t=this.getUnhandledRejectionReason(e);return R(t)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(t),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}:r.apply(t)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}},new class{constructor(){}match(e){return y(e,"ErrorEvent")&&e.error!=null}coerce(e,r){var n;return r.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}},new class{match(e){return e instanceof Error}coerce(e,r){return{type:this.getType(e),value:this.getMessage(e,r),stack:this.getStack(e),cause:e.cause?r.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,r){var n=e.message;return String(n.error&&typeof n.error.message=="string"?n.error.message:n)}getStack(e){return e.stacktrace||e.stack||void 0}},new class{match(e){return b(e)}coerce(e,r){var n,t=e.constructor.name;return{type:t,value:t+" captured as exception with keys: "+U(e),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}},new class{match(e){return typeof e=="object"&&e!==null}coerce(e,r){var n,t=this.getErrorPropertyFromObject(e);return t?r.apply(t):{type:this.getType(e),value:this.getValue(e),stack:(n=r.syntheticException)==null?void 0:n.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return b(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var r="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(r+=" with message: '"+e.message+"'"),r}if("message"in e&&typeof e.message=="string")return e.message;var n=this.getObjectClassName(e);return(n&&n!=="Object"?"'"+n+"'":"Object")+" captured as exception with keys: "+U(e)}isSeverityLevel(e){return k(e)&&!(r=>k(r)&&r.trim().length===0)(e)&&K.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var r in e)if({}.hasOwnProperty.call(e,r)){var n=e[r];if(n instanceof Error)return n}}getObjectClassName(e){try{var r=Object.getPrototypeOf(e);return r?r.constructor.name:void 0}catch{return}}},new class{match(e){return typeof e=="string"}coerce(e,r){var n,[t,a]=this.getInfos(e);return{type:t??"Error",value:a??e,stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}getInfos(e){var r="Error",n=e,t=e.match(J);return t&&(r=t[1],n=t[2]),[r,n]}},new class{match(e){return R(e)}coerce(e,r){var n;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(n=r.syntheticException)==null?void 0:n.stack,synthetic:!0}}}],(function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),t=1;r>t;t++)n[t-1]=arguments[t];return function(a,i){i===void 0&&(i=0);for(var o=[],s=a.split(`
|
|
2
2
|
`),c=i;s.length>c;c++){var u=s[c];if(1024>=u.length){var p=I.test(u)?u.replace(I,"$1"):u;if(!p.match(/\S*Error: /)){for(var Q of n){var L=Q(p,e);if(L){o.push(L);break}}if(o.length>=50)break}}}return(function(H){if(!H.length)return[];var O=Array.from(H);return O.reverse(),O.slice(0,50).map((j=>{return f({},j,{filename:j.filename||(T=O,T[T.length-1]||{}).filename,function:j.function||h});var T}))})(o)}})("web:javascript",q,B)),A={wrapOnError(e){var r=l;r||w.info("window not available, cannot wrap onerror");var n=r.onerror;return r.onerror=function(){for(var t,a=arguments.length,i=new Array(a),o=0;a>o;o++)i[o]=arguments[o];var s=x.buildFromUnknown(i[4]||i[0],{mechanism:{handled:!1}});return e(s),(t=n?.(...i))!==null&&t!==void 0&&t},r.onerror.__POSTHOG_INSTRUMENTED__=!0,()=>{var t;(t=r.onerror)==null||delete t.__POSTHOG_INSTRUMENTED__,r.onerror=n}},wrapUnhandledRejection(e){var r=l;r||w.info("window not available, cannot wrap onUnhandledRejection");var n=r.onunhandledrejection;return r.onunhandledrejection=function(t){var a,i=x.buildFromUnknown(t,{mechanism:{handled:!1}});return e(i),(a=n?.apply(r,[t]))!==null&&a!==void 0&&a},r.onunhandledrejection.__POSTHOG_INSTRUMENTED__=!0,()=>{var t;(t=r.onunhandledrejection)==null||delete t.__POSTHOG_INSTRUMENTED__,r.onunhandledrejection=n}},wrapConsoleError(e){var r=console;r||w.info("console not available, cannot wrap console.error");var n=r.error;return r.error=function(){for(var t,a=arguments.length,i=new Array(a),o=0;a>o;o++)i[o]=arguments[o];t=i.length==1?i[0]:i.join(" ");var s=i.find((u=>u instanceof Error)),c=x.buildFromUnknown(s||t,{mechanism:{handled:!1},syntheticException:new Error("PostHog syntheticException"),skipFirstLines:2});return e(c),n?.(...i)},r.error.__POSTHOG_INSTRUMENTED__=!0,()=>{var t;(t=r.error)==null||delete t.__POSTHOG_INSTRUMENTED__,r.error=n}}};d.__PosthogExtensions__=d.__PosthogExtensions__||{},d.__PosthogExtensions__.errorWrappingFunctions=A,d.posthogErrorWrappingFunctions=A})();
|
|
3
|
-
//# sourceMappingURL=exception-autocapture-
|
|
3
|
+
//# sourceMappingURL=exception-autocapture-BqHgtpgn.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{R as c,L as m,A as h}from"./mermaid-GHXKKRXX-DooOqFNN.js";import{r as i,j as y}from"./index-BireMI1y.js";import"./error-reporting-C8so6E8C.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"3.11.0"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e667ce92-ba46-43a2-bf61-74c4349ae9b8",e._sentryDebugIdIdentifier="sentry-dbid-e667ce92-ba46-43a2-bf61-74c4349ae9b8")}catch{}})();var x=({code:e,language:t,raw:a,className:l,startLine:d,lineNumbers:u,...f})=>{let{shikiTheme:n}=i.useContext(c),s=m(),[g,r]=i.useState(a);return i.useEffect(()=>{if(!s){r(a);return}let o=s.highlight({code:e,language:t,themes:n},b=>{r(b)});o&&r(o)},[e,t,n,s,a]),y.jsx(h,{className:l,language:t,lineNumbers:u,result:g,startLine:d,...f})};export{x as HighlightedCodeBlockBody};
|
|
2
|
+
//# sourceMappingURL=highlighted-body-OFNGDK62-Lg-8-zC8.js.map
|