Skip to content

feat: --json on every command with shared Effect Schema wire types and docs/API.md #35

Closed

Description

@allisonmahmood

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

  1. added
    ready-for-agent
    area:server
    area:cli
    area:core
    area:docs
    port-requirement
    on Aug 26, 2026
  2. allisonmahmood commented on Aug 28, 2026

    @allisonmahmood
    OwnerAuthor

    Superseded by #71 on the Effect v4 port spec (#68): packages/api with the wire schemas, the HttpApi and --json on every command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:corearea:docsarea:serverport-requirementready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions