@mcpjam/inspector 1.0.11 → 1.0.13

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.
@@ -5,8 +5,8 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/mcp_jam.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>MCPJam Inspector</title>
8
- <script type="module" crossorigin src="/assets/index-D2JZI6zU.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-rt9IYzHW.css">
8
+ <script type="module" crossorigin src="/assets/index-D_hdUnat.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-BWXFPQgx.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
@@ -966,7 +966,8 @@ var RpcLogBus = class {
966
966
  if (filter.size > 0 && !filter.has(serverId)) continue;
967
967
  all.push(...buf);
968
968
  }
969
- if (!Number.isFinite(limit) || limit <= 0) return all;
969
+ if (limit === 0) return [];
970
+ if (!Number.isFinite(limit) || limit < 0) return all;
970
971
  return all.slice(Math.max(0, all.length - limit));
971
972
  }
972
973
  };
@@ -1105,7 +1106,7 @@ servers.post("/reconnect", async (c) => {
1105
1106
  servers.get("/rpc/stream", async (c) => {
1106
1107
  const serverIds = c.mcpClientManager.listServers();
1107
1108
  const url = new URL(c.req.url);
1108
- const replay = parseInt(url.searchParams.get("replay") || "200", 10);
1109
+ const replay = parseInt(url.searchParams.get("replay") || "0", 10);
1109
1110
  const encoder = new TextEncoder();
1110
1111
  const stream = new ReadableStream({
1111
1112
  start(controller) {
@@ -2206,7 +2207,6 @@ var handleAgentStepFinish = (streamingContext, text, toolCalls, toolResults, emi
2206
2207
  toolResult: {
2207
2208
  id: currentToolCallId,
2208
2209
  toolCallId: currentToolCallId,
2209
- // Preserve full result which may include _meta for OpenAI Apps SDK
2210
2210
  result: result.result || result,
2211
2211
  error: result.error,
2212
2212
  timestamp: (/* @__PURE__ */ new Date()).toISOString()