@nyte-ai/host 0.0.21 → 0.0.23

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.
@@ -3,7 +3,7 @@ import {
3
3
  } from "./canvas-preview-2zdyh9ny.js";
4
4
  import {
5
5
  package_default
6
- } from "./canvas-preview-8hr08aeh.js";
6
+ } from "./canvas-preview-dsb5829c.js";
7
7
 
8
8
  // src/deploy/vercel/server/utils/host.ts
9
9
  import process from "node:process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createHandler2
3
- } from "./canvas-preview-aq5j4p25.js";
3
+ } from "./canvas-preview-d97wvref.js";
4
4
 
5
5
  // src/listen-fetch.ts
6
6
  import { SdkError } from "@nyte-ai/schema";
@@ -21,7 +21,7 @@ import {
21
21
  } from "./canvas-preview-4e0pxa32.js";
22
22
  import {
23
23
  listen2
24
- } from "./canvas-preview-ycepb05s.js";
24
+ } from "./canvas-preview-whfdhma6.js";
25
25
  import {
26
26
  nodeImages2
27
27
  } from "./canvas-preview-y5y6ghaw.js";
@@ -41,7 +41,7 @@ import {
41
41
  } from "./canvas-preview-mstbvwz3.js";
42
42
  import {
43
43
  package_default
44
- } from "./canvas-preview-8hr08aeh.js";
44
+ } from "./canvas-preview-dsb5829c.js";
45
45
 
46
46
  // src/open.ts
47
47
  import { watch } from "node:fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  bindConnection2
3
- } from "./canvas-preview-55s0y68g.js";
3
+ } from "./canvas-preview-gm0frf4b.js";
4
4
  import {
5
5
  createStreamChannels2
6
6
  } from "./canvas-preview-rp4x6y1h.js";
@@ -1,7 +1,7 @@
1
1
  // package.json
2
2
  var package_default = {
3
3
  name: "@nyte-ai/host",
4
- version: "0.0.21",
4
+ version: "0.0.23",
5
5
  private: false,
6
6
  license: "MIT",
7
7
  repository: {
@@ -122,33 +122,33 @@ var package_default = {
122
122
  "build:package": "bun ../../scripts/sdk-packages.mjs build host"
123
123
  },
124
124
  dependencies: {
125
- "@earendil-works/pi-mcp": "1.3.0",
126
- "@lydell/node-pty": "1.2.0-beta.15",
125
+ "@earendil-works/pi-mcp": "^1.3.0",
126
+ "@lydell/node-pty": "^1.2.0-beta.15",
127
127
  "@nyte-ai/ai": "workspace:*",
128
128
  "@nyte-ai/core": "workspace:*",
129
129
  "@nyte-ai/plugin": "workspace:*",
130
130
  "@nyte-ai/protocol": "workspace:*",
131
131
  "@nyte-ai/schema": "workspace:*",
132
- "@silvia-odwyer/photon": "0.3.3",
133
- fflate: "0.8.3",
134
- ignore: "7.0.9",
135
- pg: "8.23.0",
136
- typebox: "1.3.36"
132
+ "@silvia-odwyer/photon": "^0.3.3",
133
+ fflate: "^0.8.3",
134
+ ignore: "^7.0.13",
135
+ pg: "^8.23.1",
136
+ typebox: "^1.4.2"
137
137
  },
138
138
  devDependencies: {
139
- "@electric-sql/pglite": "0.5.8",
139
+ "@electric-sql/pglite": "^0.5.11",
140
140
  "@nyte-ai/canvas": "workspace:*",
141
141
  "@types/node": "^26.6.5",
142
- "@types/pg": "8.23.1",
143
- "fast-check": "4.10.2",
144
- nitro: "3.0.260903-beta",
142
+ "@types/pg": "^8.23.1",
143
+ "fast-check": "^4.10.2",
144
+ nitro: "^3.0.260903-beta",
145
145
  typescript: "6.0.3",
146
146
  vitest: "^5.0.5",
147
- workflow: "4.8.8"
147
+ workflow: "^5.2.3"
148
148
  },
149
149
  peerDependencies: {
150
- nitro: "3.0.260903-beta",
151
- workflow: "4.8.8"
150
+ nitro: "^3.0.260903-beta",
151
+ workflow: "^5.2.3"
152
152
  },
153
153
  peerDependenciesMeta: {
154
154
  nitro: {
@@ -1,6 +1,6 @@
1
1
  // src/serve/binding.ts
2
2
  import { isJson, SdkError } from "@nyte-ai/schema";
3
- import { mapped, viewFrames } from "@nyte-ai/protocol";
3
+ import { mapped, sessionsFrames, viewFrames } from "@nyte-ai/protocol";
4
4
  var LOGIN_LIFETIME = 10 * 60 * 1000;
5
5
  var attempts = new WeakMap;
6
6
  var holds = new WeakMap;
@@ -116,7 +116,7 @@ function bindConnection2(connection, options) {
116
116
  "workspaces.inspect": ({ target }) => connection.workspaces.inspect(target),
117
117
  "workspaces.add": ({ target, options }) => connection.workspaces.add(target, options),
118
118
  "workspaces.forget": ({ id }) => connection.workspaces.forget(id),
119
- "sessions.watch": async (input) => connection.sessions.watch(input),
119
+ "sessions.watch": async (input) => sessionsFrames(connection.sessions.watch(input)),
120
120
  "sessions.start": async (input) => {
121
121
  const { session, receipt } = await connection.sessions.start(input);
122
122
  return { session: session.id, receipt: receipt.id, message: receipt.message };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  vercelHost2
3
- } from "./canvas-preview-b3r1tna2.js";
3
+ } from "./canvas-preview-1f8h0he1.js";
4
4
  import {
5
5
  stepFrom2
6
6
  } from "./canvas-preview-65xqjw7f.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listenFetch2
3
- } from "./canvas-preview-w54ymtb3.js";
3
+ } from "./canvas-preview-9e15hp6q.js";
4
4
 
5
5
  // src/listen.ts
6
6
  import { createServer } from "node:http";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  package_default
3
- } from "../../../chunks/canvas-preview-8hr08aeh.js";
3
+ } from "../../../chunks/canvas-preview-dsb5829c.js";
4
4
 
5
5
  // src/deploy/cloudflare/worker.ts
6
6
  import { asId, SdkError } from "@nyte-ai/schema";
@@ -1,11 +1,11 @@
1
1
  import"../../../../../chunks/canvas-preview-2zdyh9ny.js";
2
2
  import {
3
3
  vercelHost2
4
- } from "../../../../../chunks/canvas-preview-b3r1tna2.js";
4
+ } from "../../../../../chunks/canvas-preview-1f8h0he1.js";
5
5
  import"../../../../../chunks/canvas-preview-65xqjw7f.js";
6
6
  import {
7
7
  dispatchHead2
8
- } from "../../../../../chunks/canvas-preview-3a6tst4d.js";
8
+ } from "../../../../../chunks/canvas-preview-kzmp015w.js";
9
9
 
10
10
  // src/deploy/vercel/server/routes/[...].ts
11
11
  import { defineHandler } from "nitro/h3";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  vercelHost2
3
- } from "../../../../../chunks/canvas-preview-b3r1tna2.js";
3
+ } from "../../../../../chunks/canvas-preview-1f8h0he1.js";
4
4
  import"../../../../../chunks/canvas-preview-2zdyh9ny.js";
5
5
  export {
6
6
  vercelHost2 as vercelHost
@@ -2,8 +2,8 @@ import {
2
2
  dispatchHead2,
3
3
  driveHead2,
4
4
  advanceHead2
5
- } from "../../../../../chunks/canvas-preview-3a6tst4d.js";
6
- import"../../../../../chunks/canvas-preview-b3r1tna2.js";
5
+ } from "../../../../../chunks/canvas-preview-kzmp015w.js";
6
+ import"../../../../../chunks/canvas-preview-1f8h0he1.js";
7
7
  import"../../../../../chunks/canvas-preview-2zdyh9ny.js";
8
8
  import"../../../../../chunks/canvas-preview-65xqjw7f.js";
9
9
  export {
package/dist/src/index.js CHANGED
@@ -11,15 +11,15 @@ import"../chunks/canvas-preview-wg80rbc2.js";
11
11
  import {
12
12
  identitySigner2
13
13
  } from "../chunks/canvas-preview-5mex725c.js";
14
- import"../chunks/canvas-preview-55s0y68g.js";
14
+ import"../chunks/canvas-preview-gm0frf4b.js";
15
15
  import"../chunks/canvas-preview-rp4x6y1h.js";
16
- import"../chunks/canvas-preview-aq5j4p25.js";
16
+ import"../chunks/canvas-preview-d97wvref.js";
17
17
  import {
18
18
  listenFetch2
19
- } from "../chunks/canvas-preview-w54ymtb3.js";
19
+ } from "../chunks/canvas-preview-9e15hp6q.js";
20
20
  import {
21
21
  listen2
22
- } from "../chunks/canvas-preview-ycepb05s.js";
22
+ } from "../chunks/canvas-preview-whfdhma6.js";
23
23
  import"../chunks/canvas-preview-0nq75h9k.js";
24
24
  import"../chunks/canvas-preview-bxnqt8cd.js";
25
25
  import"../chunks/canvas-preview-yjz0f7n4.js";
@@ -84,7 +84,7 @@ import {
84
84
  } from "../chunks/canvas-preview-mstbvwz3.js";
85
85
  import {
86
86
  openHost2
87
- } from "../chunks/canvas-preview-y7kq0c8q.js";
87
+ } from "../chunks/canvas-preview-ayayyd43.js";
88
88
  import {
89
89
  postgresStore2
90
90
  } from "../chunks/canvas-preview-4b6sayhg.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  listenFetch2
3
- } from "../chunks/canvas-preview-w54ymtb3.js";
4
- import"../chunks/canvas-preview-aq5j4p25.js";
5
- import"../chunks/canvas-preview-55s0y68g.js";
3
+ } from "../chunks/canvas-preview-9e15hp6q.js";
4
+ import"../chunks/canvas-preview-d97wvref.js";
5
+ import"../chunks/canvas-preview-gm0frf4b.js";
6
6
  import"../chunks/canvas-preview-rp4x6y1h.js";
7
7
  export {
8
8
  listenFetch2 as listenFetch
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  listen2
3
- } from "../chunks/canvas-preview-ycepb05s.js";
4
- import"../chunks/canvas-preview-w54ymtb3.js";
5
- import"../chunks/canvas-preview-aq5j4p25.js";
6
- import"../chunks/canvas-preview-55s0y68g.js";
3
+ } from "../chunks/canvas-preview-whfdhma6.js";
4
+ import"../chunks/canvas-preview-9e15hp6q.js";
5
+ import"../chunks/canvas-preview-d97wvref.js";
6
+ import"../chunks/canvas-preview-gm0frf4b.js";
7
7
  import"../chunks/canvas-preview-rp4x6y1h.js";
8
8
  export {
9
9
  listen2 as listen
package/dist/src/open.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  openHost2
3
- } from "../chunks/canvas-preview-y7kq0c8q.js";
3
+ } from "../chunks/canvas-preview-ayayyd43.js";
4
4
  import"../chunks/canvas-preview-4e0pxa32.js";
5
5
  import"../chunks/canvas-preview-y5y6ghaw.js";
6
6
  import"../chunks/canvas-preview-ec2mt7es.js";
@@ -26,10 +26,10 @@ import"../chunks/canvas-preview-s94ebwf5.js";
26
26
  import"../chunks/canvas-preview-kdqgrstc.js";
27
27
  import"../chunks/canvas-preview-mstbvwz3.js";
28
28
  import"../chunks/canvas-preview-zaaj99wd.js";
29
- import"../chunks/canvas-preview-ycepb05s.js";
30
- import"../chunks/canvas-preview-w54ymtb3.js";
31
- import"../chunks/canvas-preview-aq5j4p25.js";
32
- import"../chunks/canvas-preview-55s0y68g.js";
29
+ import"../chunks/canvas-preview-whfdhma6.js";
30
+ import"../chunks/canvas-preview-9e15hp6q.js";
31
+ import"../chunks/canvas-preview-d97wvref.js";
32
+ import"../chunks/canvas-preview-gm0frf4b.js";
33
33
  import"../chunks/canvas-preview-rp4x6y1h.js";
34
34
  import"../chunks/canvas-preview-skzwvw4d.js";
35
35
  import"../chunks/canvas-preview-bxnqt8cd.js";
@@ -34,6 +34,6 @@ export type Binding = CallBinding & FrameBinding & ByteBinding & OutputBinding;
34
34
  export type BindingOptions = {
35
35
  readonly server: ServerHost;
36
36
  };
37
- /** Returns each row bound to the call it names: ids bind handles on the connection, handles returned become ids, `Set`s and `Map`s become their wire forms; `head.move`, `files.batch` and `browser.open` go through the server port's wire operations with their wire id (§40o, §40x). `head.watch` sends the head's view from the host's fold whole, then each later view as its changes (`viewFrames`), the core watch marking the principal's seen tip (§40a, §54a). Authority is the caller's gate: the server checks each row's before binding. */
37
+ /** Returns each row bound to the call it names: ids bind handles on the connection, handles returned become ids, `Set`s and `Map`s become their wire forms; `head.move`, `files.batch` and `browser.open` go through the server port's wire operations with their wire id (§40o, §40x). `head.watch` sends the head's view from the host's fold whole, then each later view as its changes (`viewFrames`), the core watch marking the principal's seen tip (§40a, §54a); `sessions.watch` sends the list whole, then each later list as its order and changed rows (`sessionsFrames`). Authority is the caller's gate: the server checks each row's before binding. */
38
38
  export declare function bindConnection(connection: Connection, options: BindingOptions): Binding;
39
39
  export {};
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  bindConnection2
3
- } from "../../chunks/canvas-preview-55s0y68g.js";
3
+ } from "../../chunks/canvas-preview-gm0frf4b.js";
4
4
  export {
5
5
  bindConnection2 as bindConnection
6
6
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createHandler2
3
- } from "../../chunks/canvas-preview-aq5j4p25.js";
4
- import"../../chunks/canvas-preview-55s0y68g.js";
3
+ } from "../../chunks/canvas-preview-d97wvref.js";
4
+ import"../../chunks/canvas-preview-gm0frf4b.js";
5
5
  import"../../chunks/canvas-preview-rp4x6y1h.js";
6
6
  export {
7
7
  createHandler2 as createHandler
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nyte-ai/host",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -94,33 +94,33 @@
94
94
  "provenance": true
95
95
  },
96
96
  "dependencies": {
97
- "@earendil-works/pi-mcp": "1.3.0",
98
- "@lydell/node-pty": "1.2.0-beta.15",
99
- "@nyte-ai/ai": "0.0.21",
100
- "@nyte-ai/core": "0.0.21",
101
- "@nyte-ai/plugin": "0.0.21",
102
- "@nyte-ai/protocol": "0.0.21",
103
- "@nyte-ai/schema": "0.0.21",
104
- "@silvia-odwyer/photon": "0.3.3",
105
- "fflate": "0.8.3",
106
- "ignore": "7.0.9",
107
- "pg": "8.23.0",
108
- "typebox": "1.3.36"
97
+ "@earendil-works/pi-mcp": "^1.3.0",
98
+ "@lydell/node-pty": "^1.2.0-beta.15",
99
+ "@nyte-ai/ai": "0.0.23",
100
+ "@nyte-ai/core": "0.0.23",
101
+ "@nyte-ai/plugin": "0.0.23",
102
+ "@nyte-ai/protocol": "0.0.23",
103
+ "@nyte-ai/schema": "0.0.23",
104
+ "@silvia-odwyer/photon": "^0.3.3",
105
+ "fflate": "^0.8.3",
106
+ "ignore": "^7.0.13",
107
+ "pg": "^8.23.1",
108
+ "typebox": "^1.4.2"
109
109
  },
110
110
  "devDependencies": {
111
- "@electric-sql/pglite": "0.5.8",
111
+ "@electric-sql/pglite": "^0.5.11",
112
112
  "@nyte-ai/canvas": "0.0.0",
113
113
  "@types/node": "^26.6.5",
114
- "@types/pg": "8.23.1",
115
- "fast-check": "4.10.2",
116
- "nitro": "3.0.260903-beta",
114
+ "@types/pg": "^8.23.1",
115
+ "fast-check": "^4.10.2",
116
+ "nitro": "^3.0.260903-beta",
117
117
  "typescript": "6.0.3",
118
118
  "vitest": "^5.0.5",
119
- "workflow": "4.8.8"
119
+ "workflow": "^5.2.3"
120
120
  },
121
121
  "peerDependencies": {
122
- "nitro": "3.0.260903-beta",
123
- "workflow": "4.8.8"
122
+ "nitro": "^3.0.260903-beta",
123
+ "workflow": "^5.2.3"
124
124
  },
125
125
  "peerDependenciesMeta": {
126
126
  "nitro": {
@@ -30,7 +30,7 @@ import type {
30
30
  Receipt,
31
31
  } from "@nyte-ai/core";
32
32
  import type { ServerHost } from "@nyte-ai/core/server";
33
- import { mapped, viewFrames } from "@nyte-ai/protocol";
33
+ import { mapped, sessionsFrames, viewFrames } from "@nyte-ai/protocol";
34
34
  import type {
35
35
  ByteName,
36
36
  CallName,
@@ -103,7 +103,7 @@ const attempts = new WeakMap<ServerHost, Map<string, Attempt>>();
103
103
 
104
104
  const holds = new WeakMap<ServerHost, Map<string, Page[]>>();
105
105
 
106
- /** Returns each row bound to the call it names: ids bind handles on the connection, handles returned become ids, `Set`s and `Map`s become their wire forms; `head.move`, `files.batch` and `browser.open` go through the server port's wire operations with their wire id (§40o, §40x). `head.watch` sends the head's view from the host's fold whole, then each later view as its changes (`viewFrames`), the core watch marking the principal's seen tip (§40a, §54a). Authority is the caller's gate: the server checks each row's before binding. */
106
+ /** Returns each row bound to the call it names: ids bind handles on the connection, handles returned become ids, `Set`s and `Map`s become their wire forms; `head.move`, `files.batch` and `browser.open` go through the server port's wire operations with their wire id (§40o, §40x). `head.watch` sends the head's view from the host's fold whole, then each later view as its changes (`viewFrames`), the core watch marking the principal's seen tip (§40a, §54a); `sessions.watch` sends the list whole, then each later list as its order and changed rows (`sessionsFrames`). Authority is the caller's gate: the server checks each row's before binding. */
107
107
  export function bindConnection(connection: Connection, options: BindingOptions): Binding {
108
108
  const { wire } = options.server;
109
109
  const { principal } = connection;
@@ -257,7 +257,7 @@ export function bindConnection(connection: Connection, options: BindingOptions):
257
257
  "workspaces.add": ({ target, options }) => connection.workspaces.add(target, options),
258
258
  "workspaces.forget": ({ id }) => connection.workspaces.forget(id),
259
259
 
260
- "sessions.watch": async (input) => connection.sessions.watch(input),
260
+ "sessions.watch": async (input) => sessionsFrames(connection.sessions.watch(input)),
261
261
  "sessions.start": async (input) => {
262
262
  const { session, receipt } = await connection.sessions.start(input);
263
263