Commit 60621c2
feat: add protocol source-of-truth schemas (TIER-1) (#52)
Introduce a new self-contained src/protocol/ directory that mirrors the
private factory-mono-alpha protocol schemas/enums exactly (zod-only, no
internal deps). This is the first step toward making droid-sdk-typescript
the single source of truth for the wire protocol, eliminating manual drift.
Covers TIER-1 foundation only: leaf enums, the JSON-RPC envelope family,
HostId, SessionTag, TokenUsage, loop schemas, and the message content-block
stack. Not yet wired into the public API (src/index.ts); existing files are
untouched. Adds tests/protocol-dir.test.ts round-trip coverage.
Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>1 parent 36ba678 commit 60621c2
10 files changed
Lines changed: 1209 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
0 commit comments