summaryrefslogtreecommitdiffhomepage
path: root/packages/cli/src/index.ts
blob: 23d9c9d32e0cbe11cc4aeb9fea0b51161056012f (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";