summaryrefslogtreecommitdiffhomepage
path: root/packages/cli/src/index.ts
blob: 6f1654722e548bf54c0383cd314edf4a3f2b4352 (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
/**
 * Barrel export — the public surface of @dispatch/cli.
 *
 * Pure functions + http functions for consumers and tests.
 */

export { type ParsedCommand, parseArgs } from "./args.js";
export { formatCatalog } from "./catalog.js";
export {
	type ConversationIdResolution,
	enqueueMessage,
	fetchConversations,
	fetchLastMessage,
	fetchModels,
	openConversation,
	resolveConversationId,
	streamChat,
} from "./http.js";
export { buildChatRequest, composeMessage } from "./message.js";
export { type SplitResult, splitNdjsonLines } from "./ndjson.js";
export {
	extractLastText,
	formatConversationList,
	formatRelativeTime,
	renderEvent,
} from "./render.js";