Commit Graph
504 Commits
  • feat: add workflow console connection flow
    - Browser DTO contracts (ConnectionSuccess, ApiFailure, OperationName)
    - API client with fetch-json wrapper and typed failure responses
    - Reducer state machine with 7 connection phases and session persistence
    - ConnectionHeader component with form, status display, and aria-live region
    - 27 console tests passing (7 reducer, 7 API client, 6 component, 7 misc)
    - All typecheck clean across RPC, server, and console packages
  • feat: expose workflow console api and RPC service with @effect/rpc
    - Replace manual JSON-RPC protocol handling with @effect/rpc typed RPCs
    - Add evidence capture layer (per-call Ref, response body buffering/reconstruction)
    - Add service module with typed dispatch and layer composition via Layer.mergeAll
    - Add Hono API with /api/health, /api/connect, /api/rpc routes
    - Add browser DTO contracts, error mapping, body size limits
    - Add 13 Hono route tests and 12 target-policy tests passing
    - Delete old protocol.ts and protocol.test.ts (replaced by rpcs.ts/service.ts)
  • feat(rpc): add target policy, protocol schemas, and tagged errors
    - Add normalizeLoopbackTarget() with loopback-only URL validation
    - Add JSON-RPC response decoder with schema validation
    - Define 8 tagged errors using Data.TaggedError
    - 20 tests covering target policy and protocol decoding
    - Re-export all public types from index.ts