@procedures/peer 0.47.1 → 0.47.2

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.
@@ -95,7 +95,7 @@ export interface FaceCallRules {
95
95
  readonly narrowing?: FaceRulesOptions["narrowing"];
96
96
  /**
97
97
  * The procedures that the callers of the face reach: the patterns of `hostPolicy({ expose })`
98
- * (`programs.get`, `graphapi.*`), a tool surface or a function. The server meets this rule with
98
+ * (`programs.get`, `api.*`), a tool surface or a function. The server meets this rule with
99
99
  * the expose rule of the host, for the call of the face and for each nested call. A path outside
100
100
  * it gets `NOT_FOUND`. The rule applies to each procedure of the host, also to `host.health`,
101
101
  * `host.info`, `host.metrics` and `events.subscribe`.
@@ -116,7 +116,7 @@ export interface WsFaceOptions extends UpgradeHandlerOptions, FaceCallRules {
116
116
  * @example
117
117
  * ```typescript
118
118
  * // A read-only face of a browser next to the full face of the same host
119
- * const read = httpFace({ basePath: "/rpc/read", narrowing: { effects: { writes: [] } }, expose: ["programs.*", "graphapi.*"] });
119
+ * const read = httpFace({ basePath: "/rpc/read", narrowing: { effects: { writes: [] } }, expose: ["programs.*", "api.*"] });
120
120
  * ```
121
121
  */
122
122
  export declare function httpFace(options?: HttpFaceOptions): HostFaceFactory;
@@ -49,7 +49,7 @@ function browserOptions(browser, http) {
49
49
  * @example
50
50
  * ```typescript
51
51
  * // A read-only face of a browser next to the full face of the same host
52
- * const read = httpFace({ basePath: "/rpc/read", narrowing: { effects: { writes: [] } }, expose: ["programs.*", "graphapi.*"] });
52
+ * const read = httpFace({ basePath: "/rpc/read", narrowing: { effects: { writes: [] } }, expose: ["programs.*", "api.*"] });
53
53
  * ```
54
54
  */
55
55
  export function httpFace(options = {}) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@procedures/peer",
4
- "version": "0.47.1",
4
+ "version": "0.47.2",
5
5
  "description": "Serve procedures: createProcedureHost() gives the parts of a service, with HTTP, WebSocket and MCP faces on one listener. Also peers, server.create, server.call and server.connections, and manifests.",
6
6
  "keywords": [
7
7
  "server",
@@ -67,9 +67,9 @@
67
67
  "provenance": true
68
68
  },
69
69
  "devDependencies": {
70
- "@procedures/better-auth": "0.47.1",
71
- "@procedures/fs": "0.47.1",
72
- "@procedures/mcp-server": "0.47.1",
70
+ "@procedures/better-auth": "0.47.2",
71
+ "@procedures/fs": "0.47.2",
72
+ "@procedures/mcp-server": "0.47.2",
73
73
  "@modelcontextprotocol/sdk": "^1.32.1",
74
74
  "typescript": "^7.0.2",
75
75
  "@types/node": "^22.0.0",
@@ -81,7 +81,7 @@
81
81
  },
82
82
  "dependencies": {
83
83
  "@mark1russell7/service": "^0.6.0",
84
- "@procedures/client": "0.47.1",
84
+ "@procedures/client": "0.47.2",
85
85
  "zod": "^4.6.5"
86
86
  },
87
87
  "scripts": {
package/src/host/faces.ts CHANGED
@@ -114,7 +114,7 @@ export interface FaceCallRules {
114
114
  readonly narrowing?: FaceRulesOptions["narrowing"];
115
115
  /**
116
116
  * The procedures that the callers of the face reach: the patterns of `hostPolicy({ expose })`
117
- * (`programs.get`, `graphapi.*`), a tool surface or a function. The server meets this rule with
117
+ * (`programs.get`, `api.*`), a tool surface or a function. The server meets this rule with
118
118
  * the expose rule of the host, for the call of the face and for each nested call. A path outside
119
119
  * it gets `NOT_FOUND`. The rule applies to each procedure of the host, also to `host.health`,
120
120
  * `host.info`, `host.metrics` and `events.subscribe`.
@@ -160,7 +160,7 @@ function browserOptions(browser: BrowserGuardOptions, http: boolean): BrowserGua
160
160
  * @example
161
161
  * ```typescript
162
162
  * // A read-only face of a browser next to the full face of the same host
163
- * const read = httpFace({ basePath: "/rpc/read", narrowing: { effects: { writes: [] } }, expose: ["programs.*", "graphapi.*"] });
163
+ * const read = httpFace({ basePath: "/rpc/read", narrowing: { effects: { writes: [] } }, expose: ["programs.*", "api.*"] });
164
164
  * ```
165
165
  */
166
166
  export function httpFace(options: HttpFaceOptions = {}): HostFaceFactory {