@theoremjs/web 0.3.5-next.952.gac12130 → 0.3.5-next.958.gc25a02b

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.
@@ -43,6 +43,8 @@ export type HostToolSource = {
43
43
  description: string;
44
44
  access: ToolAccess;
45
45
  permission: ToolPermission;
46
+ /** Whether the kernel added the model's `after` field to `inputSchema`. */
47
+ after?: boolean;
46
48
  inputSchema: Record<string, unknown>;
47
49
  outputSchema: Record<string, unknown>;
48
50
  };
@@ -6,6 +6,7 @@
6
6
  * @module
7
7
  */
8
8
  import { resolveObservabilityPolicy, TOOL_ACCESS, TOOL_PERMISSION, TURN_EVENT_SCHEMAS, z, } from '@theoremjs/agents';
9
+ import { declaredInputSchema } from '@theoremjs/agents/kernel';
9
10
  import { fetchJson, postJson, postNdjson, } from "./transport.js";
10
11
  import { checkWire } from "./wire-line.js";
11
12
  /**
@@ -33,7 +34,8 @@ export function hostInterface(profile, tools) {
33
34
  kind: tool.type,
34
35
  access: tool.access,
35
36
  permission: tool.permission,
36
- inputSchema: tool.inputSchema,
37
+ // why: A call from the page is one call in no step, so the model's `after` field has nothing to order.
38
+ inputSchema: declaredInputSchema(tool),
37
39
  outputSchema: tool.outputSchema,
38
40
  },
39
41
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/web",
3
- "version": "0.3.5-next.952.gac12130",
3
+ "version": "0.3.5-next.958.gc25a02b",
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.952.gac12130"
28
+ "@theoremjs/agents": "^0.3.5-next.958.gc25a02b"
29
29
  }
30
30
  }