@mcpjam/inspector 3.12.9 → 3.14.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/bin/runtime-profile.mjs +774 -0
- package/bin/start.js +138 -19
- package/dist/client/assets/OAuthDesktopReturnNotice-BZEaGzn6.css +2 -0
- package/dist/client/assets/{OAuthDesktopReturnNotice-DlTJhJwy.js → OAuthDesktopReturnNotice-D7d-faB1.js} +2 -2
- package/dist/client/assets/{app-bootstrap-BtbHLWDU.js → app-bootstrap-BtDjj9nz.js} +370 -387
- package/dist/client/assets/{button-12hqsTUk.js → button-B99pZFz_.js} +2 -2
- package/dist/client/assets/chunk-D32TOXHM-Bcyg0ZVj.js +160 -0
- package/dist/client/assets/dead-clicks-autocapture-CnUHv5CB.js +3 -0
- package/dist/client/assets/error-reporting-BohBwcQQ.js +120 -0
- package/dist/client/assets/{error-reporting-D3byeSLw.js → error-reporting-p6G1ojum.js} +1 -1
- package/dist/client/assets/{exception-autocapture-CzpTtsxv.js → exception-autocapture-Q-isBTHp.js} +4 -4
- package/dist/client/assets/{failed-request-tracker-CmHxaDPF.js → failed-request-tracker-BBJW8izb.js} +2 -2
- package/dist/client/assets/highlighted-body-KQOG7T2V-zsXWRnSM.js +3 -0
- package/dist/client/assets/{index-C0SfPmai.js → index-C9oFRqoK.js} +3 -3
- package/dist/client/assets/{jszip.min-BmAHHtmZ.js → jszip.min-C86zG41a.js} +2 -2
- package/dist/client/assets/mermaid-MCJ5UELQ-DAW4LYwz.js +1 -0
- package/dist/client/assets/posthog-recorder-trUd0BXy.js +110 -0
- package/dist/client/assets/{preload-helper-B22rzauv.js → preload-helper-Buauuydw.js} +2 -2
- package/dist/client/assets/{react-BzkNdoI5.js → react-CZb-kDOs.js} +2 -2
- package/dist/client/assets/{rolldown-runtime-BNuWddGb.js → rolldown-runtime-Bkua2_Tb.js} +1 -1
- package/dist/client/assets/surveys-BISK_WOT.js +3 -0
- package/dist/client/assets/trace-timeline-CRewsP1E.js +71 -0
- package/dist/client/assets/{trace-timeline-Bg58ukyI.js → trace-timeline-D-DWE-sO.js} +1 -1
- package/dist/client/assets/{web-vitals-D4bU8W1t.js → web-vitals-DqmZ9w02.js} +2 -2
- package/dist/client/index.html +8 -8
- package/dist/server/authorization-MA42CNYT.js +22 -0
- package/dist/server/chunk-7M3XVZCQ.js +381 -0
- package/dist/server/{chunk-SH24KJBI.js → chunk-7ZIR7SX7.js} +17 -45
- package/dist/server/chunk-C47PTIDS.js +487 -0
- package/dist/server/chunk-DHRTCKJA.js +3979 -0
- package/dist/server/chunk-HJTKF2X6.js +45 -0
- package/dist/server/{chunk-DGAFFBDM.js → chunk-KNO4KZJF.js} +728 -682
- package/dist/server/{chunk-4PYR7GMQ.js → chunk-RWFTW2EW.js} +7 -5
- package/dist/server/chunk-SDWJSPSI.js +252 -0
- package/dist/server/chunk-VFRLMHOC.js +33 -0
- package/dist/server/chunk-XSQ2GC45.js +438 -0
- package/dist/server/chunk-YQ2BTE46.js +88 -0
- package/dist/server/{consent-lifetime-M7PS6RUU.js → consent-lifetime-OXQM37RV.js} +4 -3
- package/dist/server/grants-UVE62NGN.js +37 -0
- package/dist/server/harness-install-cli.js +259 -7
- package/dist/server/index.js +14252 -12005
- package/dist/server/local-turn-XSUGEKTL.js +19 -0
- package/dist/server/runtime-health-TCF3ZEKS.js +28 -0
- package/dist/server/runtime-lifecycle-YQ3KWDLJ.js +53 -0
- package/package.json +62 -59
- package/dist/client/assets/OAuthDesktopReturnNotice-FnFv52Ym.css +0 -2
- package/dist/client/assets/chunk-YOKDWASO--Bd-6XAf.js +0 -145
- package/dist/client/assets/dead-clicks-autocapture-RCao2exY.js +0 -3
- package/dist/client/assets/error-reporting-StyhxjHz.js +0 -102
- package/dist/client/assets/highlighted-body-KPVGNVTW-BweERQbm.js +0 -3
- package/dist/client/assets/mermaid-HWGCJPDP-C6s_jIuz.js +0 -1
- package/dist/client/assets/posthog-recorder-wc41pimR.js +0 -110
- package/dist/client/assets/surveys-D-NcCeqw.js +0 -3
- package/dist/client/assets/trace-timeline-CxoCCEiW.js +0 -137
- package/dist/server/chunk-WZVZ6LQX.js +0 -2876
- package/dist/server/local-turn-ZWMMQGV3.js +0 -12
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// server/utils/local-capability.ts
|
|
2
|
+
import { createHash, randomBytes, timingSafeEqual } from "crypto";
|
|
3
|
+
import { mkdir, writeFile, rename, chmod } from "fs/promises";
|
|
4
|
+
import { dirname } from "path";
|
|
5
|
+
function mintCapabilityToken() {
|
|
6
|
+
return randomBytes(32).toString("base64url");
|
|
7
|
+
}
|
|
8
|
+
function capabilityFingerprint(token) {
|
|
9
|
+
return createHash("sha256").update(token, "utf8").digest("hex");
|
|
10
|
+
}
|
|
11
|
+
function capabilityMatches(token, hash) {
|
|
12
|
+
if (typeof token !== "string" || token.length < 16 || token.length > 256 || !/^[0-9a-f]{64}$/.test(hash))
|
|
13
|
+
return false;
|
|
14
|
+
return timingSafeEqual(
|
|
15
|
+
Buffer.from(capabilityFingerprint(token), "hex"),
|
|
16
|
+
Buffer.from(hash, "hex")
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
function createCapabilityMutationLock() {
|
|
20
|
+
let chain = Promise.resolve();
|
|
21
|
+
return function withLock(op) {
|
|
22
|
+
const run = chain.then(op, op);
|
|
23
|
+
chain = run.then(
|
|
24
|
+
() => void 0,
|
|
25
|
+
() => void 0
|
|
26
|
+
);
|
|
27
|
+
return run;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
async function persistCapabilityState(file, state) {
|
|
31
|
+
await mkdir(dirname(file), { recursive: true, mode: 448 });
|
|
32
|
+
const tmp = `${file}.tmp`;
|
|
33
|
+
await writeFile(tmp, JSON.stringify(state), { mode: 384 });
|
|
34
|
+
await chmod(tmp, 384);
|
|
35
|
+
await rename(tmp, file);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export {
|
|
39
|
+
mintCapabilityToken,
|
|
40
|
+
capabilityFingerprint,
|
|
41
|
+
capabilityMatches,
|
|
42
|
+
createCapabilityMutationLock,
|
|
43
|
+
persistCapabilityState
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=chunk-HJTKF2X6.js.map
|