holon-ui 0.0.1-dev.10 → 0.0.1-dev.12

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": "holon-ui",
3
- "version": "0.0.1-dev.10",
3
+ "version": "0.0.1-dev.12",
4
4
  "description": "Typed MCP clients for browser views: MCP Apps host bindings and WebMCP tool exposure.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,10 +31,10 @@
31
31
  "holon-sh": "^0.0.1-dev.8"
32
32
  },
33
33
  "peerDependencies": {
34
- "@modelcontextprotocol/ext-apps": ">=1.0.0"
34
+ "@modelcontextprotocol/ext-apps": "^2.0.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@modelcontextprotocol/ext-apps": "^1.7.5",
37
+ "@modelcontextprotocol/ext-apps": "^2.0.4",
38
38
  "@modelcontextprotocol/node": "2.1.1",
39
39
  "@modelcontextprotocol/server": "2.3.1",
40
40
  "@types/node": "^22.0.0",
package/runtime.d.ts CHANGED
@@ -5,7 +5,6 @@ export type { AuthProvider, CallOptions, CallMetadata, ToolResult, ToolClient }
5
5
  export { ToolCallError } from "holon-sh/runtime";
6
6
 
7
7
  export interface CreateOptions { validator?: (schema: object) => (value: unknown) => boolean }
8
- export declare function createApps(identity: Identity, contracts: Record<string, Contract | null>, bindings?: Record<string, EndpointBinding>, options?: CreateOptions): Readonly<Record<string, RuntimeClient>>;
9
8
  export declare function bindApps(identity: Identity, contracts: Record<string, Contract | null>, bindings: Record<string, EndpointBinding>, options?: CreateOptions): Readonly<Record<string, RuntimeClient>>;
10
9
  /** The ext-apps App with the app's own tools and resources typed; calls go through the host that embeds the page. */
11
10
  export type View = App & Pick<RuntimeClient, "tools" | "resources" | "callTool">;
package/runtime.mjs CHANGED
@@ -1,14 +1,7 @@
1
1
  import { App } from "@modelcontextprotocol/ext-apps";
2
- import { createApps as create, bindApps, ToolCallError } from "holon-sh/runtime";
2
+ import { bindApps, ToolCallError } from "holon-sh/runtime";
3
3
 
4
- export { ToolCallError };
5
-
6
- export { bindApps };
7
-
8
- // Browser clients have no process environment or host-wide default binding.
9
- export function createApps(identity, contracts, bindings, options) {
10
- return create(identity, contracts, bindings, { ...options, resolve: () => undefined });
11
- }
4
+ export { bindApps, ToolCallError };
12
5
 
13
6
  // appClass returns the ext-apps App with the app's own tools and resources (contracts[own]) typed.
14
7
  // Calls go through the host that embeds the page, so connect the App first, as with any App.