summaryrefslogtreecommitdiffhomepage
path: root/packages/cli/src/index.ts
diff options
context:
space:
mode:
authorAdam Malczewski <[email protected]>2026-06-05 21:20:34 +0900
committerAdam Malczewski <[email protected]>2026-06-05 21:20:34 +0900
commit552c22d74e5df915088d9e9ff4a286c96c2a54d6 (patch)
tree7d9db1052bab91ef994446d80efc3bfc38026cad /packages/cli/src/index.ts
parent7fb3269c698ae583ea7997ce206c4ae252fd3218 (diff)
downloaddispatch-552c22d74e5df915088d9e9ff4a286c96c2a54d6.tar.gz
dispatch-552c22d74e5df915088d9e9ff4a286c96c2a54d6.zip
feat(cli): one-shot terminal client (models, chat, --text/--file/--cwd/--conversation)
HTTP client of transport-contract; pure-core arg/render/ndjson + injected fetch/fs shell. Docs: GLOSSARY (credential/key/model name/model catalog), tasks.md milestone, ORCHESTRATOR geography.
Diffstat (limited to 'packages/cli/src/index.ts')
-rw-r--r--packages/cli/src/index.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/cli/src/index.ts b/packages/cli/src/index.ts
new file mode 100644
index 0000000..82e0b21
--- /dev/null
+++ b/packages/cli/src/index.ts
@@ -0,0 +1,12 @@
+/**
+ * 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 { fetchModels, streamChat } from "./http.js";
+export { buildChatRequest, composeMessage } from "./message.js";
+export { type SplitResult, splitNdjsonLines } from "./ndjson.js";
+export { renderEvent } from "./render.js";