@hanzo/build 0.2.2 → 0.2.3

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.
@@ -5,7 +5,8 @@
5
5
  * GET /v1/agent/sessions/{id} + the 50 most recent events
6
6
  * POST /v1/agent/sessions/{id}/message {message} steer a running run
7
7
  * POST /v1/agent/sessions/{id}/stop {message} end it, work kept
8
- * GET /v1/agent/sessions/stream?root={id} SSE: `session` and `event` frames
8
+ * GET /v1/agent/sessions/stream?root={id} SSE: `session` and `event` frames,
9
+ * each wrapped: {"session":{…}}, {"event":{…}}
9
10
  *
10
11
  * The stream is best-effort by the platform's own statement: a subscriber that
11
12
  * falls 256 frames behind is dropped. So `watch` reconnects, and every
@@ -5,7 +5,8 @@
5
5
  * GET /v1/agent/sessions/{id} + the 50 most recent events
6
6
  * POST /v1/agent/sessions/{id}/message {message} steer a running run
7
7
  * POST /v1/agent/sessions/{id}/stop {message} end it, work kept
8
- * GET /v1/agent/sessions/stream?root={id} SSE: `session` and `event` frames
8
+ * GET /v1/agent/sessions/stream?root={id} SSE: `session` and `event` frames,
9
+ * each wrapped: {"session":{…}}, {"event":{…}}
9
10
  *
10
11
  * The stream is best-effort by the platform's own statement: a subscriber that
11
12
  * falls 256 frames behind is dropped. So `watch` reconnects, and every
@@ -99,9 +100,9 @@ export async function watch(t, root, on, signal) {
99
100
  return;
100
101
  }
101
102
  if (f.event === 'session')
102
- on.session?.(session(data));
103
+ on.session?.(session(obj(data).session));
103
104
  else if (f.event === 'event')
104
- on.event?.(event(data));
105
+ on.event?.(event(obj(data).event));
105
106
  }, signal);
106
107
  }
107
108
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hanzo/build",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0 OR MIT",
6
6
  "description": "Hanzo Build — say what you want, watch it built, deployed and running. The builder as a page (hanzo.build) and as a component (hanzo.ai/dev).",