summaryrefslogtreecommitdiffhomepage
path: root/packages/message-queue/src/index.ts
blob: 11467e185f7dbd251e642311cb3a883bd8e4f804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * @dispatch/message-queue — the per-conversation message queue for mid-turn
 * steering. Owns the queue state + a per-conversation `custom` surface; the
 * session-orchestrator drains it via `messageQueueHandle`. The queue is
 * transient (in-memory, per-conversation, only meaningful during generation);
 * the surface is the ONLY way the frontend reads queue state.
 */

export type { QueuedMessage, QueuePayload } from "@dispatch/wire";
export { extension, manifest } from "./extension.js";
export {
  buildQueueSpec,
  combine,
  drain,
  enqueue,
  getQueue,
  MESSAGE_QUEUE_RENDERER_ID,
  MESSAGE_QUEUE_SURFACE_ID,
  type MessageQueueState,
  type QueueDeps,
} from "./pure.js";
export {
  createMessageQueueService,
  type MessageQueueDeps,
  type MessageQueueService,
  messageQueueHandle,
} from "./service.js";