@mcpjam/inspector 3.12.8 → 3.12.9
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/{OAuthDesktopReturnNotice-DABzFg0y.js → OAuthDesktopReturnNotice-DlTJhJwy.js} +5 -5
- package/dist/client/assets/OAuthDesktopReturnNotice-FnFv52Ym.css +2 -0
- package/dist/client/assets/{app-bootstrap-C2vVITe1.js → app-bootstrap-BtbHLWDU.js} +335 -335
- package/dist/client/assets/button-12hqsTUk.js +3 -0
- package/dist/client/assets/{chunk-YOKDWASO-C2OuyPZY.js → chunk-YOKDWASO--Bd-6XAf.js} +10 -10
- package/dist/client/assets/{dead-clicks-autocapture-DuT1rKSM.js → dead-clicks-autocapture-RCao2exY.js} +2 -2
- package/dist/client/assets/error-reporting-D3byeSLw.js +1 -0
- package/dist/client/assets/{error-reporting-CpBaShLK.js → error-reporting-StyhxjHz.js} +40 -40
- package/dist/client/assets/{exception-autocapture-DDYbbF4x.js → exception-autocapture-CzpTtsxv.js} +2 -2
- package/dist/client/assets/{failed-request-tracker-DTcEBfel.js → failed-request-tracker-CmHxaDPF.js} +2 -2
- package/dist/client/assets/highlighted-body-KPVGNVTW-BweERQbm.js +3 -0
- package/dist/client/assets/index-C0SfPmai.js +4 -0
- package/dist/client/assets/{jszip.min-CUbyF_hU.js → jszip.min-BmAHHtmZ.js} +2 -2
- package/dist/client/assets/mermaid-HWGCJPDP-C6s_jIuz.js +1 -0
- package/dist/client/assets/{posthog-recorder-D05rTwSB.js → posthog-recorder-wc41pimR.js} +2 -2
- package/dist/client/assets/preload-helper-B22rzauv.js +3 -0
- package/dist/client/assets/react-BzkNdoI5.js +3 -0
- package/dist/client/assets/{rolldown-runtime-DFaaNfet.js → rolldown-runtime-BNuWddGb.js} +1 -1
- package/dist/client/assets/{surveys-C6jQxZ__.js → surveys-D-NcCeqw.js} +2 -2
- package/dist/client/assets/trace-timeline-Bg58ukyI.js +1 -0
- package/dist/client/assets/{trace-timeline-DuWo46vf.js → trace-timeline-CxoCCEiW.js} +8 -8
- package/dist/client/assets/{web-vitals-DGvwJdv7.js → web-vitals-D4bU8W1t.js} +2 -2
- package/dist/client/index.html +8 -7
- package/dist/server/{chunk-ER75CVTG.js → chunk-DGAFFBDM.js} +2 -2
- package/dist/server/{chunk-HHMYIKER.js → chunk-WZVZ6LQX.js} +2 -2
- package/dist/server/harness-install-cli.js +1 -1
- package/dist/server/index.js +215 -40
- package/dist/server/{local-turn-SXHFOZVA.js → local-turn-ZWMMQGV3.js} +3 -3
- package/package.json +2 -2
- package/dist/client/assets/OAuthDesktopReturnNotice-B_x9xTE-.css +0 -2
- package/dist/client/assets/button-CR0c6NYb.js +0 -3
- package/dist/client/assets/error-reporting-DGKAyE3H.js +0 -1
- package/dist/client/assets/highlighted-body-KPVGNVTW-BTjtAEXQ.js +0 -3
- package/dist/client/assets/index-Cp_KMvUf.js +0 -4
- package/dist/client/assets/mermaid-HWGCJPDP-CmCtP4Dv.js +0 -1
- package/dist/client/assets/preload-helper-Bbq9_x_H.js +0 -3
- package/dist/client/assets/trace-timeline-B4-o8QjE.js +0 -1
package/dist/server/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
stopLocalHarnessProject,
|
|
29
29
|
stopLocalHarnessWorkspace,
|
|
30
30
|
validateWorkspaceCandidate
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-DGAFFBDM.js";
|
|
32
32
|
import {
|
|
33
33
|
LOCAL_HARNESS_MANIFEST,
|
|
34
34
|
LOCAL_HARNESS_POLICY_VERSION,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
runtimeInstallRoot,
|
|
58
58
|
startRuntimeInstall,
|
|
59
59
|
supportsOwnershipProof
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-WZVZ6LQX.js";
|
|
61
61
|
import {
|
|
62
62
|
BROWSER_CONSENT_HEADER,
|
|
63
63
|
createBrowserConsentLifetime,
|
|
@@ -3086,18 +3086,6 @@ __export(evaluate_exports, {
|
|
|
3086
3086
|
finalMessageEndsWithQuestion: () => finalMessageEndsWithQuestion
|
|
3087
3087
|
});
|
|
3088
3088
|
|
|
3089
|
-
// ../evaluators/dist/chunk-I4CRERJV.js
|
|
3090
|
-
var PROBE = "__predicate_arg_probe__";
|
|
3091
|
-
function argMatch(matcher, actualArgs) {
|
|
3092
|
-
const argumentMatching = matcher.argumentMatching ?? "partial";
|
|
3093
|
-
const result = evaluateToolCalls(
|
|
3094
|
-
[{ toolName: PROBE, arguments: matcher.args ?? {} }],
|
|
3095
|
-
[{ toolName: PROBE, arguments: actualArgs ?? {} }],
|
|
3096
|
-
{ argumentMatching }
|
|
3097
|
-
);
|
|
3098
|
-
return result.passed;
|
|
3099
|
-
}
|
|
3100
|
-
|
|
3101
3089
|
// ../evaluators/dist/chunk-PYTZA5U2.js
|
|
3102
3090
|
import { Validator } from "@cfworker/json-schema";
|
|
3103
3091
|
var DRAFT_2020_12_URIS = /* @__PURE__ */ new Set([
|
|
@@ -3172,7 +3160,19 @@ function validateAgainstSchema(schema2, instance) {
|
|
|
3172
3160
|
}
|
|
3173
3161
|
}
|
|
3174
3162
|
|
|
3175
|
-
// ../evaluators/dist/chunk-
|
|
3163
|
+
// ../evaluators/dist/chunk-I4CRERJV.js
|
|
3164
|
+
var PROBE = "__predicate_arg_probe__";
|
|
3165
|
+
function argMatch(matcher, actualArgs) {
|
|
3166
|
+
const argumentMatching = matcher.argumentMatching ?? "partial";
|
|
3167
|
+
const result = evaluateToolCalls(
|
|
3168
|
+
[{ toolName: PROBE, arguments: matcher.args ?? {} }],
|
|
3169
|
+
[{ toolName: PROBE, arguments: actualArgs ?? {} }],
|
|
3170
|
+
{ argumentMatching }
|
|
3171
|
+
);
|
|
3172
|
+
return result.passed;
|
|
3173
|
+
}
|
|
3174
|
+
|
|
3175
|
+
// ../evaluators/dist/chunk-5MZTMUN3.js
|
|
3176
3176
|
var MAX_VALUE_CHARS = 200;
|
|
3177
3177
|
var MAX_ERROR_MSG_CHARS = 200;
|
|
3178
3178
|
var MAX_ITEMS_SHOWN = 3;
|
|
@@ -4886,7 +4886,7 @@ __export(predicate_scorer_exports, {
|
|
|
4886
4886
|
predicateScorer: () => predicateScorer
|
|
4887
4887
|
});
|
|
4888
4888
|
|
|
4889
|
-
// ../evaluators/dist/chunk-
|
|
4889
|
+
// ../evaluators/dist/chunk-HBQCMPNF.js
|
|
4890
4890
|
function assertLocallyEvaluable(predicate) {
|
|
4891
4891
|
if (!requiresRenderObservations(predicate.type)) return;
|
|
4892
4892
|
throw new Error(
|
|
@@ -4964,7 +4964,7 @@ function toEvaluatorRawOutcome(outcome) {
|
|
|
4964
4964
|
};
|
|
4965
4965
|
}
|
|
4966
4966
|
|
|
4967
|
-
// ../evaluators/dist/chunk-
|
|
4967
|
+
// ../evaluators/dist/chunk-LIHSUT4W.js
|
|
4968
4968
|
function assertLocallyEvaluable2(rule) {
|
|
4969
4969
|
if (!requiresRenderObservations(rule.type)) return;
|
|
4970
4970
|
throw new Error(
|
|
@@ -92576,7 +92576,7 @@ async function sweepLocalHarnessScratch() {
|
|
|
92576
92576
|
var startup;
|
|
92577
92577
|
function startLocalHarnessJanitor() {
|
|
92578
92578
|
startup ??= (async () => {
|
|
92579
|
-
const { localHarnessSupervisor } = await import("./local-turn-
|
|
92579
|
+
const { localHarnessSupervisor } = await import("./local-turn-ZWMMQGV3.js");
|
|
92580
92580
|
await localHarnessSupervisor().reclaimOrphans();
|
|
92581
92581
|
await sweepLocalHarnessScratch();
|
|
92582
92582
|
})().catch((error) => {
|
|
@@ -92587,6 +92587,7 @@ function startLocalHarnessJanitor() {
|
|
|
92587
92587
|
|
|
92588
92588
|
// server/middleware/request-log-context.ts
|
|
92589
92589
|
import { HTTPException } from "hono/http-exception";
|
|
92590
|
+
import { matchedRoutes } from "hono/route";
|
|
92590
92591
|
import { randomUUID as randomUUID4 } from "crypto";
|
|
92591
92592
|
|
|
92592
92593
|
// server/utils/error-classify.ts
|
|
@@ -92669,12 +92670,14 @@ async function requestLogContextMiddleware(c, next) {
|
|
|
92669
92670
|
thrown = err;
|
|
92670
92671
|
}
|
|
92671
92672
|
const route = c.req.routePath || "unmatched";
|
|
92673
|
+
const targetRoute = route.endsWith("*") ? matchedRoutes(c).slice(c.req.routeIndex + 1).find((r) => !r.path.endsWith("*"))?.path : void 0;
|
|
92672
92674
|
const status = c.res.status;
|
|
92673
92675
|
const reqLogger = getRequestLogger(c, "http");
|
|
92674
92676
|
const enriched = {
|
|
92675
92677
|
...c.var.requestLogContext,
|
|
92676
92678
|
component: "http",
|
|
92677
92679
|
route,
|
|
92680
|
+
...targetRoute ? { targetRoute } : {},
|
|
92678
92681
|
statusCode: status
|
|
92679
92682
|
};
|
|
92680
92683
|
c.set("requestLogContext", enriched);
|
|
@@ -121899,6 +121902,24 @@ async function listTools3(manager, params) {
|
|
|
121899
121902
|
tokenCountError
|
|
121900
121903
|
};
|
|
121901
121904
|
}
|
|
121905
|
+
async function listToolsMulti(manager, params) {
|
|
121906
|
+
const results = {};
|
|
121907
|
+
const failures = {};
|
|
121908
|
+
await Promise.all(
|
|
121909
|
+
params.serverIds.map(async (serverId) => {
|
|
121910
|
+
try {
|
|
121911
|
+
results[serverId] = await listTools3(manager, {
|
|
121912
|
+
serverId,
|
|
121913
|
+
modelId: params.modelId,
|
|
121914
|
+
cacheMode: params.cacheMode
|
|
121915
|
+
});
|
|
121916
|
+
} catch (error) {
|
|
121917
|
+
failures[serverId] = error;
|
|
121918
|
+
}
|
|
121919
|
+
})
|
|
121920
|
+
);
|
|
121921
|
+
return Object.keys(failures).length > 0 ? { results, failures } : { results };
|
|
121922
|
+
}
|
|
121902
121923
|
|
|
121903
121924
|
// server/routes/mcp/tools.ts
|
|
121904
121925
|
var tools = new Hono5();
|
|
@@ -194256,6 +194277,7 @@ function hasDedicatedPollBudget(method, path8) {
|
|
|
194256
194277
|
// server/middleware/guest-rate-limit.ts
|
|
194257
194278
|
var GUEST_RATE_LIMIT = 60;
|
|
194258
194279
|
var GUEST_WINDOW_MS = 6e4;
|
|
194280
|
+
var TOO_MANY_MESSAGE = "Guest rate limit exceeded. Try again later or sign in for higher limits.";
|
|
194259
194281
|
var guestWindows = /* @__PURE__ */ new Map();
|
|
194260
194282
|
setInterval(() => {
|
|
194261
194283
|
const now = Date.now();
|
|
@@ -194278,10 +194300,15 @@ async function guestRateLimitMiddleware(c, next) {
|
|
|
194278
194300
|
if (entry3) {
|
|
194279
194301
|
if (now - entry3.windowStart < GUEST_WINDOW_MS) {
|
|
194280
194302
|
if (entry3.count >= GUEST_RATE_LIMIT) {
|
|
194303
|
+
c.set("webErrorMeta", {
|
|
194304
|
+
status: 429,
|
|
194305
|
+
code: ErrorCode.RATE_LIMITED,
|
|
194306
|
+
message: TOO_MANY_MESSAGE
|
|
194307
|
+
});
|
|
194281
194308
|
return c.json(
|
|
194282
194309
|
{
|
|
194283
194310
|
code: ErrorCode.RATE_LIMITED,
|
|
194284
|
-
message:
|
|
194311
|
+
message: TOO_MANY_MESSAGE
|
|
194285
194312
|
},
|
|
194286
194313
|
429,
|
|
194287
194314
|
// This is a FIXED window, so the wait is exactly the remainder of it
|
|
@@ -194371,11 +194398,17 @@ var unattestedWindows = createFixedWindowMap(
|
|
|
194371
194398
|
function bearerKey(token) {
|
|
194372
194399
|
return createHash24("sha256").update(token).digest("hex").slice(0, 32);
|
|
194373
194400
|
}
|
|
194401
|
+
var TOO_MANY_MESSAGE2 = "Too many requests. Slow down and retry.";
|
|
194374
194402
|
function tooMany2(c, retryAfterMs) {
|
|
194403
|
+
c.set("webErrorMeta", {
|
|
194404
|
+
status: 429,
|
|
194405
|
+
code: ErrorCode.RATE_LIMITED,
|
|
194406
|
+
message: TOO_MANY_MESSAGE2
|
|
194407
|
+
});
|
|
194375
194408
|
return c.json(
|
|
194376
194409
|
{
|
|
194377
194410
|
code: ErrorCode.RATE_LIMITED,
|
|
194378
|
-
message:
|
|
194411
|
+
message: TOO_MANY_MESSAGE2
|
|
194379
194412
|
},
|
|
194380
194413
|
429,
|
|
194381
194414
|
{
|
|
@@ -197797,7 +197830,7 @@ var serverSkillsReadFileSchema = projectServerSchema.extend({
|
|
|
197797
197830
|
var promptsListSchema = projectServerSchema.extend({
|
|
197798
197831
|
cursor: z30.string().optional()
|
|
197799
197832
|
});
|
|
197800
|
-
var
|
|
197833
|
+
var projectServerBatchSchema = z30.object({
|
|
197801
197834
|
projectId: z30.string().min(1),
|
|
197802
197835
|
serverIds: z30.array(z30.string().min(1)).min(1),
|
|
197803
197836
|
serverNames: z30.array(z30.string().min(1)).optional(),
|
|
@@ -197818,6 +197851,10 @@ var promptsListMultiSchema = z30.object({
|
|
|
197818
197851
|
scenarioId: z30.string().min(1).optional(),
|
|
197819
197852
|
accessVersion: z30.number().int().nonnegative().optional()
|
|
197820
197853
|
});
|
|
197854
|
+
var promptsListMultiSchema = projectServerBatchSchema;
|
|
197855
|
+
var toolsListMultiSchema = projectServerBatchSchema.extend({
|
|
197856
|
+
modelId: z30.string().optional()
|
|
197857
|
+
});
|
|
197821
197858
|
var promptsGetSchema = projectServerSchema.extend({
|
|
197822
197859
|
promptName: z30.string().min(1),
|
|
197823
197860
|
arguments: z30.record(z30.string(), z30.union([z30.string(), z30.number(), z30.boolean()])).optional()
|
|
@@ -198311,14 +198348,16 @@ async function createAuthorizedManager(caller, bearerToken, projectId, serverIds
|
|
|
198311
198348
|
throw new WebRouteError(
|
|
198312
198349
|
500,
|
|
198313
198350
|
ErrorCode.INTERNAL_ERROR,
|
|
198314
|
-
`Authorization response is missing result for server "${serverId}"
|
|
198351
|
+
`Authorization response is missing result for server "${serverId}"`,
|
|
198352
|
+
{ serverId }
|
|
198315
198353
|
);
|
|
198316
198354
|
}
|
|
198317
198355
|
if (!auth.ok) {
|
|
198318
198356
|
throw new WebRouteError(
|
|
198319
198357
|
auth.status,
|
|
198320
198358
|
auth.code,
|
|
198321
|
-
auth.message
|
|
198359
|
+
auth.message,
|
|
198360
|
+
{ serverId, serverName: serverNamesById?.[serverId] ?? null }
|
|
198322
198361
|
);
|
|
198323
198362
|
}
|
|
198324
198363
|
const displayServerName = serverNamesById?.[serverId] ?? serverId;
|
|
@@ -199100,6 +199139,9 @@ function blockedEgressRouteError(error) {
|
|
|
199100
199139
|
}
|
|
199101
199140
|
return void 0;
|
|
199102
199141
|
}
|
|
199142
|
+
function mapEphemeralServerFailure(error) {
|
|
199143
|
+
return mapTargetServerError(blockedEgressRouteError(error) ?? error);
|
|
199144
|
+
}
|
|
199103
199145
|
async function withEphemeralConnection(c, schema2, fn, options) {
|
|
199104
199146
|
let rpcCollector;
|
|
199105
199147
|
try {
|
|
@@ -199129,7 +199171,7 @@ async function withEphemeralConnection(c, schema2, fn, options) {
|
|
|
199129
199171
|
);
|
|
199130
199172
|
} catch (error) {
|
|
199131
199173
|
const projected = projectRouteFailure(
|
|
199132
|
-
|
|
199174
|
+
mapEphemeralServerFailure(error),
|
|
199133
199175
|
error,
|
|
199134
199176
|
rpcCollector?.buildEnvelope()
|
|
199135
199177
|
);
|
|
@@ -203216,6 +203258,72 @@ function buildIterationMetadata(evaluation) {
|
|
|
203216
203258
|
return metadata;
|
|
203217
203259
|
}
|
|
203218
203260
|
|
|
203261
|
+
// server/services/evals/iteration-error-metadata.ts
|
|
203262
|
+
function buildIterationErrorMetadata(input) {
|
|
203263
|
+
const errors = /* @__PURE__ */ new Map();
|
|
203264
|
+
const add = (reason, message) => {
|
|
203265
|
+
const clean2 = redactForTelemetry2(message);
|
|
203266
|
+
if (typeof clean2 !== "string" || !clean2.trim()) return;
|
|
203267
|
+
const entry3 = { reason, message: clean2.trim() };
|
|
203268
|
+
errors.set(JSON.stringify(entry3), entry3);
|
|
203269
|
+
};
|
|
203270
|
+
const toolErrors = [
|
|
203271
|
+
...input.toolErrors ?? [],
|
|
203272
|
+
...extractToolErrors({
|
|
203273
|
+
spans: input.spans ?? [],
|
|
203274
|
+
messages: input.messages ?? []
|
|
203275
|
+
})
|
|
203276
|
+
];
|
|
203277
|
+
for (const error of toolErrors) {
|
|
203278
|
+
if (!error || typeof error !== "object") continue;
|
|
203279
|
+
const record5 = error;
|
|
203280
|
+
if (typeof record5.message !== "string") continue;
|
|
203281
|
+
add(
|
|
203282
|
+
record5.kind === "protocol-error" ? "protocolError" : "toolError",
|
|
203283
|
+
record5.message
|
|
203284
|
+
);
|
|
203285
|
+
}
|
|
203286
|
+
for (const observation of input.widgetRenderObservations ?? []) {
|
|
203287
|
+
if (observation.status === "rendered") continue;
|
|
203288
|
+
for (const message of observation.consoleErrors ?? [])
|
|
203289
|
+
add("renderFailed", message);
|
|
203290
|
+
}
|
|
203291
|
+
for (const step of input.browserInteractionSteps ?? []) {
|
|
203292
|
+
for (const call of step.widgetToolCalls ?? []) {
|
|
203293
|
+
if (call.error) add("protocolError", call.error);
|
|
203294
|
+
for (const error of extractToolErrors([
|
|
203295
|
+
{
|
|
203296
|
+
role: "tool",
|
|
203297
|
+
content: [
|
|
203298
|
+
{ type: "tool-result", toolName: call.name, result: call.result }
|
|
203299
|
+
]
|
|
203300
|
+
}
|
|
203301
|
+
])) {
|
|
203302
|
+
if (error.message)
|
|
203303
|
+
add(
|
|
203304
|
+
error.kind === "protocol-error" ? "protocolError" : "toolError",
|
|
203305
|
+
error.message
|
|
203306
|
+
);
|
|
203307
|
+
}
|
|
203308
|
+
}
|
|
203309
|
+
}
|
|
203310
|
+
const stopped = input.status !== "cancelled" && input.status !== "skipped" && (Boolean(input.error?.trim()) || ["failed", "setup_failed", "timed_out"].includes(input.status));
|
|
203311
|
+
if (input.error)
|
|
203312
|
+
add(
|
|
203313
|
+
input.stepError?.source === "model" ? "providerError" : "setupAborted",
|
|
203314
|
+
input.error
|
|
203315
|
+
);
|
|
203316
|
+
return {
|
|
203317
|
+
...errors.size ? { evalErrors: [...errors.values()] } : {},
|
|
203318
|
+
...stopped ? {
|
|
203319
|
+
evalExecutionFailure: {
|
|
203320
|
+
phase: input.status === "setup_failed" || input.stepError?.source === "setup" ? "setup" : "execution",
|
|
203321
|
+
reason: input.stepError?.code ?? (input.status === "timed_out" ? "iteration_timeout" : "execution_stopped")
|
|
203322
|
+
}
|
|
203323
|
+
} : {}
|
|
203324
|
+
};
|
|
203325
|
+
}
|
|
203326
|
+
|
|
203219
203327
|
// shared/hosted-criterion-id.ts
|
|
203220
203328
|
var HOSTED_TOOL_MATCH_SCORER_ID = "toolCalls:match";
|
|
203221
203329
|
var HOSTED_TOOL_ARGUMENTS_SCORER_ID = "toolCalls:arguments";
|
|
@@ -204345,6 +204453,16 @@ function buildIterationFinishParams(args) {
|
|
|
204345
204453
|
resultSource: "reported",
|
|
204346
204454
|
metadata: {
|
|
204347
204455
|
...iterationMetadataBase,
|
|
204456
|
+
...buildIterationErrorMetadata({
|
|
204457
|
+
messages,
|
|
204458
|
+
spans,
|
|
204459
|
+
toolErrors: stageToolErrors,
|
|
204460
|
+
browserInteractionSteps,
|
|
204461
|
+
widgetRenderObservations,
|
|
204462
|
+
status,
|
|
204463
|
+
error,
|
|
204464
|
+
stepError: args.stepError
|
|
204465
|
+
}),
|
|
204348
204466
|
...buildIterationMetadata(evaluation),
|
|
204349
204467
|
// Written for EVERY trial, from the same helper the `noEndingQuestion`
|
|
204350
204468
|
// check uses — not only when somebody authored that check.
|
|
@@ -212931,6 +213049,7 @@ async function persistSetupFailedIteration(args) {
|
|
|
212931
213049
|
resultSource: "reported",
|
|
212932
213050
|
metadata: {
|
|
212933
213051
|
...args.iterationMetadataBase,
|
|
213052
|
+
evalExecutionFailure: { phase: "setup", reason: "setup_failed" },
|
|
212934
213053
|
...buildStageMetadata({
|
|
212935
213054
|
...args.stageCase ? { stageCase: args.stageCase } : {},
|
|
212936
213055
|
// No real spans/prompts/messages: the analyzer reads that as
|
|
@@ -219453,6 +219572,12 @@ function requireConvexIdShape(value, param, options) {
|
|
|
219453
219572
|
});
|
|
219454
219573
|
throw new WebRouteError(404, ErrorCode.NOT_FOUND, options.notFoundMessage);
|
|
219455
219574
|
}
|
|
219575
|
+
function requireProjectIdArg(projectId, scope) {
|
|
219576
|
+
return requireConvexIdShape(projectId, "projectId", {
|
|
219577
|
+
scope,
|
|
219578
|
+
notFoundMessage: "Project not found"
|
|
219579
|
+
});
|
|
219580
|
+
}
|
|
219456
219581
|
function requireConvexIdParam(c, param, options) {
|
|
219457
219582
|
return requireConvexIdShape(c.req.param(param), param, options);
|
|
219458
219583
|
}
|
|
@@ -239157,7 +239282,7 @@ async function bucketKeys(c, family) {
|
|
|
239157
239282
|
}
|
|
239158
239283
|
return keys;
|
|
239159
239284
|
}
|
|
239160
|
-
var
|
|
239285
|
+
var TOO_MANY_MESSAGE3 = "Too many requests to this server. Slow down and retry.";
|
|
239161
239286
|
var TOO_MANY_DETAILS = {
|
|
239162
239287
|
reason: SERVER_REQUEST_BUDGET_REASON
|
|
239163
239288
|
};
|
|
@@ -239165,12 +239290,12 @@ function tooMany3(c, waitMs) {
|
|
|
239165
239290
|
c.set("webErrorMeta", {
|
|
239166
239291
|
status: 429,
|
|
239167
239292
|
code: ErrorCode.RATE_LIMITED,
|
|
239168
|
-
message:
|
|
239293
|
+
message: TOO_MANY_MESSAGE3
|
|
239169
239294
|
});
|
|
239170
239295
|
return c.json(
|
|
239171
239296
|
{
|
|
239172
239297
|
code: ErrorCode.RATE_LIMITED,
|
|
239173
|
-
message:
|
|
239298
|
+
message: TOO_MANY_MESSAGE3,
|
|
239174
239299
|
details: TOO_MANY_DETAILS
|
|
239175
239300
|
},
|
|
239176
239301
|
429,
|
|
@@ -239701,6 +239826,33 @@ tools3.post(
|
|
|
239701
239826
|
)
|
|
239702
239827
|
)
|
|
239703
239828
|
);
|
|
239829
|
+
function batchFailure(error) {
|
|
239830
|
+
const { routeError } = projectRouteFailure(
|
|
239831
|
+
mapEphemeralServerFailure(error),
|
|
239832
|
+
error,
|
|
239833
|
+
void 0
|
|
239834
|
+
);
|
|
239835
|
+
return {
|
|
239836
|
+
status: routeError.status,
|
|
239837
|
+
code: routeError.code,
|
|
239838
|
+
message: routeError.message
|
|
239839
|
+
};
|
|
239840
|
+
}
|
|
239841
|
+
tools3.post(
|
|
239842
|
+
"/list-multi",
|
|
239843
|
+
async (c) => withEphemeralConnection(c, toolsListMultiSchema, async (manager, body) => {
|
|
239844
|
+
const { results, failures } = await listToolsMulti(manager, {
|
|
239845
|
+
...body,
|
|
239846
|
+
cacheMode: "bypass"
|
|
239847
|
+
});
|
|
239848
|
+
if (!failures) return { results };
|
|
239849
|
+
const errors = {};
|
|
239850
|
+
for (const [serverId, failure] of Object.entries(failures)) {
|
|
239851
|
+
errors[serverId] = batchFailure(failure);
|
|
239852
|
+
}
|
|
239853
|
+
return { results, errors };
|
|
239854
|
+
})
|
|
239855
|
+
);
|
|
239704
239856
|
tools3.post(
|
|
239705
239857
|
"/execute",
|
|
239706
239858
|
async (c) => (
|
|
@@ -265407,6 +265559,7 @@ function translateConvexWriteError3(error) {
|
|
|
265407
265559
|
});
|
|
265408
265560
|
}
|
|
265409
265561
|
async function listHostRows(convexAuthToken, projectId) {
|
|
265562
|
+
requireProjectIdArg(projectId, "v1.clients");
|
|
265410
265563
|
const readClient = createConvexClient3(convexAuthToken);
|
|
265411
265564
|
try {
|
|
265412
265565
|
return await readClient.query(
|
|
@@ -266224,7 +266377,10 @@ environments2.get(
|
|
|
266224
266377
|
}
|
|
266225
266378
|
);
|
|
266226
266379
|
environments2.get("/projects/:projectId/environments", async (c) => {
|
|
266227
|
-
const projectId =
|
|
266380
|
+
const projectId = requireProjectIdArg(
|
|
266381
|
+
c.req.param("projectId"),
|
|
266382
|
+
"v1.environments"
|
|
266383
|
+
);
|
|
266228
266384
|
const includeArchived = c.req.query("includeArchived") === "true";
|
|
266229
266385
|
const readClient = createConvexClient4(await getConvexBearerForRequest(c));
|
|
266230
266386
|
let rows;
|
|
@@ -266537,7 +266693,7 @@ function translatePluginReadError(error) {
|
|
|
266537
266693
|
});
|
|
266538
266694
|
}
|
|
266539
266695
|
plugins2.get("/projects/:projectId/plugins", async (c) => {
|
|
266540
|
-
const projectId = c.req.param("projectId");
|
|
266696
|
+
const projectId = requireProjectIdArg(c.req.param("projectId"), "v1.plugins");
|
|
266541
266697
|
const readClient = createConvexClient5(await getConvexBearerForRequest(c));
|
|
266542
266698
|
let rows;
|
|
266543
266699
|
try {
|
|
@@ -266623,7 +266779,7 @@ function translateSkillReadError(error) {
|
|
|
266623
266779
|
});
|
|
266624
266780
|
}
|
|
266625
266781
|
skills4.get("/projects/:projectId/skills", async (c) => {
|
|
266626
|
-
const projectId = c.req.param("projectId");
|
|
266782
|
+
const projectId = requireProjectIdArg(c.req.param("projectId"), "v1.skills");
|
|
266627
266783
|
const readClient = createConvexClient6(await getConvexBearerForRequest(c));
|
|
266628
266784
|
let rows;
|
|
266629
266785
|
try {
|
|
@@ -266763,6 +266919,7 @@ async function parseBody(c, schema2) {
|
|
|
266763
266919
|
return parsed.data;
|
|
266764
266920
|
}
|
|
266765
266921
|
async function listPersonaRows(client3, projectId) {
|
|
266922
|
+
requireProjectIdArg(projectId, "v1.personas");
|
|
266766
266923
|
try {
|
|
266767
266924
|
return await client3.query(
|
|
266768
266925
|
"personas:listPersonas",
|
|
@@ -266786,7 +266943,7 @@ function idempotencyKeyOf(c) {
|
|
|
266786
266943
|
return key && key.length > 0 ? key : void 0;
|
|
266787
266944
|
}
|
|
266788
266945
|
personas.get("/projects/:projectId/personas", async (c) => {
|
|
266789
|
-
const projectId = c.req.param("projectId");
|
|
266946
|
+
const projectId = requireProjectIdArg(c.req.param("projectId"), "v1.personas");
|
|
266790
266947
|
const client3 = createConvexClient7(await getConvexBearerForRequest(c));
|
|
266791
266948
|
const rows = await listPersonaRows(client3, projectId);
|
|
266792
266949
|
return v1PageJson(
|
|
@@ -266987,7 +267144,7 @@ async function requireSwarmInProject(client3, projectId, swarmId) {
|
|
|
266987
267144
|
return row2;
|
|
266988
267145
|
}
|
|
266989
267146
|
swarms.get("/projects/:projectId/swarms", async (c) => {
|
|
266990
|
-
const projectId = c.req.param("projectId");
|
|
267147
|
+
const projectId = requireProjectIdArg(c.req.param("projectId"), "v1.swarms");
|
|
266991
267148
|
const client3 = createConvexClient7(await getConvexBearerForRequest(c));
|
|
266992
267149
|
let rows;
|
|
266993
267150
|
try {
|
|
@@ -267402,7 +267559,7 @@ both(
|
|
|
267402
267559
|
"/projects/:projectId/goals",
|
|
267403
267560
|
"/projects/:projectId/journeys",
|
|
267404
267561
|
async (c, surface) => {
|
|
267405
|
-
const projectId = c.req.param("projectId");
|
|
267562
|
+
const projectId = requireProjectIdArg(c.req.param("projectId"), "v1.goals");
|
|
267406
267563
|
const client3 = createConvexClient7(await getConvexBearerForRequest(c));
|
|
267407
267564
|
let rows;
|
|
267408
267565
|
try {
|
|
@@ -267869,7 +268026,7 @@ function idempotencyKeyOf2(c) {
|
|
|
267869
268026
|
return key && key.length > 0 ? key : void 0;
|
|
267870
268027
|
}
|
|
267871
268028
|
secrets.get("/projects/:projectId/secrets", async (c) => {
|
|
267872
|
-
const projectId = c.req.param("projectId");
|
|
268029
|
+
const projectId = requireProjectIdArg(c.req.param("projectId"), "v1.secrets");
|
|
267873
268030
|
const client3 = createConvexClient7(await getConvexBearerForRequest(c));
|
|
267874
268031
|
let rows;
|
|
267875
268032
|
try {
|
|
@@ -268707,6 +268864,7 @@ async function requireRunInProject2(client3, projectId, runId) {
|
|
|
268707
268864
|
}
|
|
268708
268865
|
}
|
|
268709
268866
|
async function listFindingRows(client3, projectId) {
|
|
268867
|
+
requireProjectIdArg(projectId, "v1.swarm-insights");
|
|
268710
268868
|
try {
|
|
268711
268869
|
return await client3.query(
|
|
268712
268870
|
"swarmWaveInsights:listSwarmFindings",
|
|
@@ -268737,7 +268895,10 @@ both2(
|
|
|
268737
268895
|
"/projects/:projectId/goals-overview",
|
|
268738
268896
|
"/projects/:projectId/journeys-overview",
|
|
268739
268897
|
async (c) => {
|
|
268740
|
-
const projectId =
|
|
268898
|
+
const projectId = requireProjectIdArg(
|
|
268899
|
+
c.req.param("projectId"),
|
|
268900
|
+
"v1.swarm-insights"
|
|
268901
|
+
);
|
|
268741
268902
|
const client3 = createConvexClient7(await getConvexBearerForRequest(c));
|
|
268742
268903
|
let row2;
|
|
268743
268904
|
try {
|
|
@@ -268784,7 +268945,10 @@ both2(
|
|
|
268784
268945
|
"/projects/:projectId/goal-findings",
|
|
268785
268946
|
"/projects/:projectId/journey-findings",
|
|
268786
268947
|
async (c) => {
|
|
268787
|
-
const projectId =
|
|
268948
|
+
const projectId = requireProjectIdArg(
|
|
268949
|
+
c.req.param("projectId"),
|
|
268950
|
+
"v1.swarm-insights"
|
|
268951
|
+
);
|
|
268788
268952
|
const client3 = createConvexClient7(await getConvexBearerForRequest(c));
|
|
268789
268953
|
const rows = await listFindingRows(client3, projectId);
|
|
268790
268954
|
return v1PageJson(c, rows.map(toFindingDto));
|
|
@@ -269329,6 +269493,8 @@ function isAbortError7(error) {
|
|
|
269329
269493
|
return error instanceof Error && (error.name === "AbortError" || error.code === "ABORT_ERR");
|
|
269330
269494
|
}
|
|
269331
269495
|
async function fetchConvexV1Read(c, convexPath, configure, options = {}) {
|
|
269496
|
+
const projectId = c.req.param("projectId");
|
|
269497
|
+
if (projectId !== void 0) requireProjectIdArg(projectId, "v1.catalog");
|
|
269332
269498
|
const convexUrl = process.env.CONVEX_HTTP_URL;
|
|
269333
269499
|
if (!convexUrl) {
|
|
269334
269500
|
throw new WebRouteError(
|
|
@@ -270499,7 +270665,7 @@ var validateBlueprintSchema = z81.strictObject({
|
|
|
270499
270665
|
blueprint: z81.string().min(1)
|
|
270500
270666
|
});
|
|
270501
270667
|
images.get("/projects/:projectId/images", async (c) => {
|
|
270502
|
-
const projectId = c.req.param("projectId");
|
|
270668
|
+
const projectId = requireProjectIdArg(c.req.param("projectId"), "v1.images");
|
|
270503
270669
|
const readClient = createConvexReadClient2(await getConvexBearerForRequest(c));
|
|
270504
270670
|
let rows;
|
|
270505
270671
|
try {
|
|
@@ -278725,7 +278891,10 @@ function deriveCapabilities(row2) {
|
|
|
278725
278891
|
};
|
|
278726
278892
|
}
|
|
278727
278893
|
capabilities.get("/projects/:projectId/capabilities", async (c) => {
|
|
278728
|
-
const projectId =
|
|
278894
|
+
const projectId = requireProjectIdArg(
|
|
278895
|
+
c.req.param("projectId"),
|
|
278896
|
+
"v1.capabilities"
|
|
278897
|
+
);
|
|
278729
278898
|
const client3 = createConvexClient7(await getConvexBearerForRequest(c));
|
|
278730
278899
|
let row2;
|
|
278731
278900
|
try {
|
|
@@ -280091,7 +280260,10 @@ readiness.get("/projects/:projectId/readiness-runs/:runId", async (c) => {
|
|
|
280091
280260
|
return v1Resource(c, toRunDto2(run3, projectId));
|
|
280092
280261
|
});
|
|
280093
280262
|
readiness.get("/projects/:projectId/readiness-runs", async (c) => {
|
|
280094
|
-
const projectId =
|
|
280263
|
+
const projectId = requireProjectIdArg(
|
|
280264
|
+
c.req.param("projectId"),
|
|
280265
|
+
"v1.readiness"
|
|
280266
|
+
);
|
|
280095
280267
|
const convex = createConvexClient9(await getConvexBearerForRequest(c));
|
|
280096
280268
|
const publisher = c.req.query("readinessKind");
|
|
280097
280269
|
if (publisher !== void 0 && !READINESS_PUBLISHERS.includes(publisher)) {
|
|
@@ -281062,7 +281234,10 @@ conformanceRuns.get(
|
|
|
281062
281234
|
}
|
|
281063
281235
|
);
|
|
281064
281236
|
conformanceRuns.get("/projects/:projectId/conformance-runs", async (c) => {
|
|
281065
|
-
const projectId =
|
|
281237
|
+
const projectId = requireProjectIdArg(
|
|
281238
|
+
c.req.param("projectId"),
|
|
281239
|
+
"v1.conformance-runs"
|
|
281240
|
+
);
|
|
281066
281241
|
const serverId = c.req.query("serverId");
|
|
281067
281242
|
const convex = createConvexClient10(await getConvexBearerForRequest(c));
|
|
281068
281243
|
let page3;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
localHarnessSupervisor,
|
|
3
3
|
prepareLocalHarnessTurn
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-DGAFFBDM.js";
|
|
5
|
+
import "./chunk-WZVZ6LQX.js";
|
|
6
6
|
import "./chunk-SH24KJBI.js";
|
|
7
7
|
import "./chunk-PZ5AY32C.js";
|
|
8
8
|
export {
|
|
9
9
|
localHarnessSupervisor,
|
|
10
10
|
prepareLocalHarnessTurn
|
|
11
11
|
};
|
|
12
|
-
//# sourceMappingURL=local-turn-
|
|
12
|
+
//# sourceMappingURL=local-turn-ZWMMQGV3.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcpjam/inspector",
|
|
3
3
|
"productName": "MCPJam Inspector",
|
|
4
|
-
"version": "3.12.
|
|
4
|
+
"version": "3.12.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.0.0"
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"classnames": "^2.5.1",
|
|
176
176
|
"clsx": "^2.1.1",
|
|
177
177
|
"cmdk": "^1.1.1",
|
|
178
|
-
"convex": "^1.
|
|
178
|
+
"convex": "^1.46.0",
|
|
179
179
|
"date-fns": "^4.4.0",
|
|
180
180
|
"denque": "^2.1.0",
|
|
181
181
|
"dotenv": "^16.4.5",
|