@theoremjs/web 0.3.5-next.907.g49f9ef9 → 0.3.5-next.911.g193d75c

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/web",
3
- "version": "0.3.5-next.907.g49f9ef9",
3
+ "version": "0.3.5-next.911.g193d75c",
4
4
  "description": "Theorem on the web platform, with no UI framework: Web-standard server handlers that serve a profile, and the browser client that talks to them.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -25,6 +25,6 @@
25
25
  },
26
26
  "peerDependencies": {
27
27
  "zod": "^4.6.5",
28
- "@theoremjs/agents": "^0.3.5-next.907.g49f9ef9"
28
+ "@theoremjs/agents": "^0.3.5-next.911.g193d75c"
29
29
  }
30
30
  }
@@ -215,9 +215,11 @@ export function createTheoremMcpHandler(options) {
215
215
  throw new RpcError(200, INVALID_PARAMS, `Unknown tool: ${String(name)}`);
216
216
  const inputSchema = hostTool(name)?.inputSchema;
217
217
  const hostFields = inputSchema ? markedFieldsIn(inputSchema, params.arguments) : [];
218
- if (hostFields.length > 0)
219
- // labels-exempt: protocol diagnostic for the MCP client, not end-user copy
220
- throw new RpcError(200, INVALID_PARAMS, `Not inputs of ${name}: ${hostFields.join(', ')}`);
218
+ if (hostFields.length > 0) {
219
+ const fields = hostFields.join(', ');
220
+ const message = labelText('tool.input_host_fields', { tool: name, fields }, host.labels);
221
+ throw new RpcError(200, INVALID_PARAMS, message);
222
+ }
221
223
  const events = [];
222
224
  for await (const event of invokeTool({
223
225
  profile: host.id,