You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: --json on every command with shared Effect Schema wire types and docs/API.md #35
Effect v4 port requirement — the wire types are Effect Schema from the start so the port does not redo this.
Problem
Request/response shapes live implicitly in apps/server/src/app.ts and are re-typed by hand in the CLI and its test stubs. Only status has --json (and it is required, not optional). There is no API reference.
"makes a ton of sense, we should for sure do that to get better consistency." — t3code 1.6
Given the port: "The API contract item should be done with Effect Schema from the start rather than plain TS interfaces, so the port doesn't redo it."
Do
Request/response shapes for every route in the shared kernel (packages/core) as Effect Schema; server decodes/encodes through them, CLI reads through them, tests stub through them. No hand-written duplicates.
--json on every command (auth set, whoami, status, validate, upload, and delete when it lands) printing exactly the shared shape.
docs/API.md generated from or pinned by a test so it cannot rot.
The status --json contract test reads its keys from a real CLI run, not a literal array (omarchy PR 2).
Done when
One schema per wire shape, used by server, CLI and docs; every command has --json; the doc-pinning test fails on drift.
Filed from the foundation map task File the DX backlog from the decisions doc. Allison's reasoning is quoted from her agent-DX decision log (t3code and omarchy surveys, reviewed 2026-08-26).
Activity
allisonmahmood commentedon Aug 28, 2026
Superseded by #71 on the Effect v4 port spec (#68):
packages/apiwith the wire schemas, the HttpApi and--jsonon every command.