Commit
document cli and expanded test coverage in readme
commit
f8791df
1 changed file with +11 and −1
modified README.md +11 −1
| @@ -163,7 +163,17 @@pnpm lint # ESLint | ||
| 163 | 163 | pnpm build # production build |
| 164 | 164 | ``` |
| 165 | 165 | |
| 166 | -The orchestrator suite drives full debates through the mock client and asserts on the emitted event stream: happy path, early convergence, max-rounds, model drop-out (and the ≥2-healthy floor), JSON-repair recovery, chairman provider-conflict detection, and cancellation. | |
| 166 | +The orchestrator suite drives full debates through the mock client and asserts on the emitted event stream: happy path, early convergence, max-rounds, model drop-out (and the ≥2-healthy floor), JSON-repair recovery, chairman provider-conflict detection, and cancellation. Around 100 unit tests cover the engine plus the lib layer (crypto, rate limiting, cost estimation, the event reducer, Markdown export, and the demo fixtures). CI also runs a schema + seed smoke test against a real Postgres. | |
| 167 | + | |
| 168 | +## ⌨️ Run the engine from the terminal | |
| 169 | + | |
| 170 | +Because `src/core` is framework-agnostic, the same orchestrator the web app drives over SSE also runs as a CLI - no Next.js, database, or network required: | |
| 171 | + | |
| 172 | +```bash | |
| 173 | +pnpm debate "Is a modular monolith better than microservices for a small team?" | |
| 174 | +``` | |
| 175 | + | |
| 176 | +It streams each stage to stdout and prints the chairman's final answer, dissent, and cost, all on the deterministic mock client. | |
| 167 | 177 | |
| 168 | 178 | ## 🚢 Deployment (Linux VPS + Caddy) |
| 169 | 179 |