Repository navigation
feat(nexus): author @gbg/nexus as Cosmo home - #118
Merged
creatifcoding merged 2 commits intoAug 30, 2026
Merged
Conversation
creatifcoding
marked this pull request as ready for review
August 30, 2026 01:57
Complete Cosmo/WunderGraph home at packages/nexus: official graph.yaml compose input, Federation v2 fixture SDL, config.yaml with execution config + helm NATS EDFS, wgc@0.130.1, and tests that run `wgc router compose -i graph.yaml -o router.json`. tmnl consumes via tsconfig path. Leftover Pepr operator stays in packages/tmnl/src/infra/graph. Not on the cluster draft. No deploy. Co-authored-by: digicoder <creatifcoding@users.noreply.github.com>
Rebased onto feat/mantis-biomemetics-lab after PR 109. Keep both @gbg/cluster and @gbg/nexus. Replace hold-merge/hold-deploy README guardrails with ship-on-green and a hard stop only for paid cloud, off-machine deploy, a second NATS, a second catalog SoT, or a second API group. Co-authored-by: digicoder <creatifcoding@users.noreply.github.com>
cursor
Bot
force-pushed
the
cursor/nexus-cosmo-home-9d0f
branch
from
August 30, 2026 02:00
ea720fc to
ac11373
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Complete Cosmo home. tmnl consumes. Not a stub. Cluster is
@gbg/cluster; Cosmo home is@gbg/nexus. Rebased ontofeat/mantis-biomemetics-labafter PR 109. Same PR. Mergeable for the operator.What this is
graph.yaml(version: 1,subgraphs[]),config.yaml(execution_config.file+events.providers.nats), Federation v2 SDL atfixtures/fixture-demo.graphql, compose scriptwgc router compose -i graph.yaml -o router.json.wgc@0.130.1is a real, pinned dependency (tmnl already haswgc; current npm is0.130.1).npm install,npm run typecheck, andnpm testfrompackages/nexus..github/workflows/nexus-ci.ymlruns those three. No deploy job."type": "module", vitest,tsc --noEmit,project.json, own lock. Excluded from the root workspace (!packages/nexus) alongside!packages/cluster.src/index.tsexports compose helpers and types.Router image:
ghcr.io/wundergraph/cosmo/router. Default listen:3002. Execution file name isrouter.jsoneverywhere.What compose actually emits
Command:
CLI:
router.jsonkeys fromwgc@0.130.1/@wundergraph/composition@0.63.3:compatibilityVersion"1:0.63.3"engineConfig.graphqlSchemaQuery.fixtureHealth,FixtureDemo { id, label }engineConfig.datasourceConfigurationsserviceSdlis the fixture fileengineConfig.stringStoragesubgraphs[{ id, name: "fixture-demo", routingUrl: "http://localhost:4001/graphql" }]featureFlagConfigs{}version00000000-0000-0000-0000-000000000000) — no control planeThe fixture subgraph is named
fixture-demoon purpose. No catalog, specimen, procurement, GPS, or taxon types.tmnl consumes. Leftover Pepr stays in tmnl.
@gbg/nexusis mapped intsconfig.base.jsonandpackages/tmnl/tsconfig.json.cosmo-operatorstays atpackages/tmnl/src/infra/graph. Not copied.INFRA_DIRis not peeled this cut.packages/tmnl/nix/modules/k8s.nixremains a helper path, not Cosmo's home.After PR 109
Root
package.jsonworkspaces exclude both!packages/clusterand!packages/nexus.tsconfig.base.jsonmaps both@gbg/clusterand@gbg/nexus. Nexus is not a second home inside cluster files.Ship
Ship when CI is green on the lab branch. User corrects after the fact.
Stop is only: paid cloud, deploy that leaves this machine, a second NATS, a second catalog source of truth, a second API group. Wallet still stops paid cloud and alchemy deploy that leaves this machine.
Catalog stays Postgres off-cluster. One NATS:
packages/tmnl/nix/modules/nats/values.yaml.Docs opened
graph.localhost.yaml+wgc router compose+ghcr.io/wundergraph/cosmo/router)events.providers.nats)3002, execution file/config/router.json