@theoremjs/web 0.3.5-next.915.ge040f25 → 0.3.5-next.917.g6cb0b91

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.
@@ -9,8 +9,11 @@ import { type Profile, type ToolAccess, type ToolPermission, z } from '@theoremj
9
9
  import type { PageDispatchResult } from './page-dispatch.ts';
10
10
  import type { TraceFeed } from './trace-feed.ts';
11
11
  import { type HttpOptions, type TheoremInvokeRequest, type TurnEventSink } from './transport.ts';
12
- /** How a tool reaches its work: a function on the host, an HTTP endpoint, or an MCP server. */
13
- export declare const HOST_TOOL_KINDS: readonly ["function", "http", "mcp"];
12
+ /**
13
+ * How a tool reaches its work: a function on the host, an HTTP endpoint, an MCP server, or
14
+ * another agent. Every tool type the host defines; only the provider's own tools are left out.
15
+ */
16
+ export declare const HOST_TOOL_KINDS: readonly ["function", "http", "mcp", "agent"];
14
17
  export type HostToolKind = (typeof HOST_TOOL_KINDS)[number];
15
18
  /** One tool as the page sees it. Its endpoint, headers, and credentials stay on the host. */
16
19
  export type HostToolView = {
@@ -8,8 +8,12 @@
8
8
  import { resolveObservabilityPolicy, TOOL_ACCESS, TOOL_PERMISSION, TURN_EVENT_SCHEMAS, z, } from '@theoremjs/agents';
9
9
  import { fetchJson, postJson, postNdjson, } from "./transport.js";
10
10
  import { checkWire } from "./wire-line.js";
11
- /** How a tool reaches its work: a function on the host, an HTTP endpoint, or an MCP server. */
12
- export const HOST_TOOL_KINDS = ['function', 'http', 'mcp'];
11
+ /**
12
+ * How a tool reaches its work: a function on the host, an HTTP endpoint, an MCP server, or
13
+ * another agent. Every tool type the host defines; only the provider's own tools are left out.
14
+ */
15
+ export const HOST_TOOL_KINDS = ['function', 'http', 'mcp', 'agent'];
16
+ true;
13
17
  function isHostToolKind(type) {
14
18
  return HOST_TOOL_KINDS.includes(type);
15
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theoremjs/web",
3
- "version": "0.3.5-next.915.ge040f25",
3
+ "version": "0.3.5-next.917.g6cb0b91",
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.915.ge040f25"
28
+ "@theoremjs/agents": "^0.3.5-next.917.g6cb0b91"
29
29
  }
30
30
  }