ghostykit 0.2.1 → 0.3.1

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.
@@ -7,7 +7,7 @@ import {
7
7
  createPostStreamTransport,
8
8
  createSseTransport,
9
9
  readSse
10
- } from "../chunks/chunk-D6JXJWYM.js";
10
+ } from "../chunks/chunk-XZHX2NZT.js";
11
11
  export {
12
12
  MIN_SILENCE_MS,
13
13
  MISSED_BEATS,
@@ -23,6 +23,11 @@ export interface PilotTransport {
23
23
  respondPermission?(id: string, optionId: string): Promise<{
24
24
  resolved: boolean;
25
25
  }>;
26
+ /**
27
+ * `"per-turn"`: no hay un stream vivo que esperar (cada turno trae el suyo, como el POST de
28
+ * EasyBits). Piloto pinta el hilo al instante y nunca enseña «conectando». Default `"live"`.
29
+ */
30
+ stream?: "live" | "per-turn";
26
31
  /** El hilo guardado, para pintarlo al montar (si la app no pasa `initialTurns`). */
27
32
  history?(): Promise<Turn[] | PilotHistory>;
28
33
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ghostykit",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "Piloto UI \u2014 the in-app copilot chat from Ghosty Studio: streaming, agent steps, attachments, voice, reconnection and human approval cards. Pure event reducer + SSE transport + React components.",
5
5
  "type": "module",
6
6
  "main": "./dist/core/index.js",