Skip to content

feat(client): add generated cache and stream metadata - #109

Merged
juicycleff merged 1 commit into
mainfrom
feat/client-stream-adapters
Sep 22, 2026
Merged

juicycleff merged 1 commit into
mainfrom
feat/client-stream-adapters

Conversation

@juicycleff

Copy link
Copy Markdown
Contributor

Generated clients could lose cache behavior at several boundaries. A declared
snake_case tag stopped resolving after field renaming, stream payloads skipped
the generated codec, multiplexed WebSocket operations became duplicate clients,
and WebTransport message metadata never reached the generated stream table.

This change carries route metadata through OpenAPI and AsyncAPI into the client
IR, then emits typed stream bindings for WebSocket, SSE, and WebTransport. The
runtime now adapts open WebSocket and EventSource sessions, decodes entity
frames before normalization, resolves collection tags for every returned
record, and honors per-call mutation clients in React, Vue, and Angular.

The streaming extension also gets a served /capabilities test. It boots the
real dashboard and streaming extensions, then checks that every declared
streaming intent survived contributor registration.

Verification

  • go test . ./internal/client/... ./internal/router/...
  • GOWORK=off go test ./... from extensions/streaming
  • go vet . ./internal/client/... ./internal/router/...
  • GOWORK=off go vet ./... from extensions/streaming
  • npm test -- --run and npm run typecheck in client-core, client-react,
    client-vue, and client-angular
  • npm run size in client-core
  • golangci-lint run --new-from-rev=origin/main --timeout=5m
  • GOWORK=off golangci-lint run ./... --new-from-rev=origin/main --timeout=5m

make ci does not complete in this checkout. Its fmt-check target calls
go fmt -l, which this Go toolchain does not support. Running the wrapper with
GOWORK=off also makes cmd/forge resolve the released Forge module, whose
logger API does not match this checkout. The scoped checks above pass, and both
new-change lint runs report zero issues.

Carry route metadata through OpenAPI and AsyncAPI into generated operations,
entities, and stream bindings. This covers declared tag renames, multiplexed
WebSockets, and WebTransport messages.

Add WebSocket and EventSource adapters, decode stream payloads before
normalization, and keep mutation cache overrides and invalidation behavior
consistent across the three framework bindings.
@vercel

vercel Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
forge Ready Ready Preview Sep 22, 2026 2:25pm UTC

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

Conventional Commits Validation

PR Title: valid
Commits: all 1 follow conventional format

@juicycleff
juicycleff merged commit 745441d into main Sep 22, 2026
35 checks passed

This branch was successfully deployed

1 active deployment
Preview — 69b95acc Deployed Sep 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant