summaryrefslogtreecommitdiffhomepage
path: root/packages/message-queue/src/index.ts
blob: 79bbb2575870a9632f2e08ea640055f009faaf55 (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";