Skip to content

feat(mapgen-studio): standalone Bun daemon owns the server surface — vite is frontend-only; legacy /api retired outright#1652

Merged
mateicanavra merged 2 commits into
mainfrom
design/bun-server-daemon
Jun 12, 2026
Merged

feat(mapgen-studio): standalone Bun daemon owns the server surface — vite is frontend-only; legacy /api retired outright#1652
mateicanavra merged 2 commits into
mainfrom
design/bun-server-daemon

Conversation

@mateicanavra

Copy link
Copy Markdown
Owner

Daemon (src/server/daemon/daemon.ts, :5174, Bun.serve): one engines
instance + /healthz + the three oRPC mounts (/rpc, /api/civ7/rpc,
/api/recipe-dag/rpc — both fetch handlers statically imported; the
ssrLoadModule mount is gone, Bun loads effect-orpc TS natively) + optional
--assets-root static dist. bun run dev = dev-live runner (daemon → healthz
→ vite); vite.config proxies /rpc + /api and imports zero server modules.

Legacy /api/* REST handlers RETIRED per user directive 2026-06-12 (no
legacy, no fallbacks, forward only): unknown /api → 404; the parity
script's status poll moved to oRPC runInGame.status.

Gates: tsc, studio 201 (8 new daemon/dev-live pins), mod 471, build +
worker bundle, strict OpenSpec; live-verified on fresh processes (run
loop + pipeline view through the proxy, retired paths 404).

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

This was referenced Jun 12, 2026
@github-actions

Copy link
Copy Markdown

Railway preview (MapGen Studio): not provisioned for this PR.

Policy (Graphite stacks): previews are created only for the top-of-stack PR by default.

  • To force a preview for this PR: add label railway-preview
  • To suppress a preview: add label no-railway-preview

Debug: {"isClosed":false,"isFork":false,"suppress":false,"force":false,"isTopOfStack":false,"hasToken":true,"draft":false}

This was referenced Jun 12, 2026

mateicanavra commented Jun 12, 2026

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

mateicanavra commented Jun 12, 2026

Copy link
Copy Markdown
Owner Author

Merge activity

  • Jun 12, 8:50 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • Jun 12, 10:28 PM UTC: Graphite rebased this pull request as part of a merge.
  • Jun 12, 10:28 PM UTC: @mateicanavra merged this pull request with Graphite.

@mateicanavra
mateicanavra changed the base branch from design/bun-control-fetch to graphite-base/1652 June 12, 2026 22:25
@mateicanavra
mateicanavra changed the base branch from graphite-base/1652 to main June 12, 2026 22:26
mateicanavra and others added 2 commits June 12, 2026 22:27
…hared tuner session (strict valid)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…vite is frontend-only; legacy /api retired outright

Daemon (src/server/daemon/daemon.ts, :5174, Bun.serve): one engines
instance + /healthz + the three oRPC mounts (/rpc, /api/civ7/rpc,
/api/recipe-dag/rpc — both fetch handlers statically imported; the
ssrLoadModule mount is gone, Bun loads effect-orpc TS natively) + optional
--assets-root static dist. bun run dev = dev-live runner (daemon → healthz
→ vite); vite.config proxies /rpc + /api and imports zero server modules.

Legacy /api/* REST handlers RETIRED per user directive 2026-06-12 (no
legacy, no fallbacks, forward only): unknown /api → 404; the parity
script's status poll moved to oRPC runInGame.status.

Gates: tsc, studio 201 (8 new daemon/dev-live pins), mod 471, build +
worker bundle, strict OpenSpec; live-verified on fresh processes (run
loop + pipeline view through the proxy, retired paths 404).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mateicanavra
mateicanavra force-pushed the design/bun-server-daemon branch from 13b52fd to da69032 Compare June 12, 2026 22:27
@mateicanavra
mateicanavra merged commit 7afc682 into main Jun 12, 2026
This was referenced Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant