Work with AxonMundi's composed client schema and self-hosted Cosmo registry
@prepared911/data-gql vendors the composed client schema so code generation and
mocks do not depend on a running router. Use this path only for a frontend
participating in the AxonMundi prototype. The normal refresh fetches the latest
valid schema from axonmundi/default:
.env.wgc.example to the untracked .env.wgc file and load it:
pnpm schema:login uses an individual Keycloak device-flow session. Do not
attempt it for another person or substitute a CI API key. CI uses separately
managed COSMO_API_URL and COSMO_API_KEY; neither belongs in a local file,
repository variable, or log.
When an AxonMundi change is not yet in the registry, point the schema sync at a
local composed router configuration:
just compose creates the untracked execution configuration that contains the
composed client schema. This is a local development path only; do not commit
execution configuration or composed-SDL artifacts. See the
AxonMundi getting-started guide
for local static composition and registry-backed Studio development.
app=axonmundi label, deployed
routing URL, and authorization requirements with the graph owner.
COSMO_API_URL and COSMO_API_KEY through the
approved CI secret path. Never use the router's GRAPH_API_TOKEN for this
work.
The first integration still needs an AxonMundi handoff for local-composition
coverage and any router policy or header-forwarding changes. That work belongs
to the graph owner; it is separate from publishing and does not require every
subgraph contributor to clone AxonMundi.
For generated-code requirements, Connect services, CI credential setup, and
rollback details, use the
subgraph CI and registry publication runbook.
Do not mint a GRAPH_API_TOKEN, modify router runtime Secrets, or run an
environment cutover as part of normal frontend or producer work. Those actions
belong to Platform and are covered by the
registry cutover runbook.