Cosmos reference
0 pages, 11 routes, 16 connections and 0 CLI commands, generated from the declarations of Cosmos without reading storage or running anything.
Code · 0 files
No ingested source sits in a crate named for this app. Either its crate has not been ingested, or the app's name does not match its crate.
Connections · 16
Cosmos.Catalog.List
Enumerate destinations across providers (real_body / exoplanet / procedural / user_saved). Optional `provider` selects one; absent merges all. Optional `filter` carries provenance / host / temperate_only / limit constraints. Returns `{ ok, rows[], row_count }` where each row carries a `destination` handle the caller passes back to Cosmos.Resolve / Cosmos.SetActive.
- Output keycosmos.result
- Classificationreal
- POST /cosmos/catalog/listHTTP route
Cosmos.Catalog.RefreshExternal
Refresh every Runtime-owned external astronomy source behind one provider-agnostic boundary. Runtime selects bounded NASA Exoplanet Archive and ESA Gaia DR3 policies, normalizes their records, and persists them in HyperDB. One source may fail without discarding the other; returns per-source receipts plus complete/refreshed counts.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| force | optional |
- Output keycosmos.result
- Classificationreal
Cosmos.Catalog.RefreshNearby
Fetch a bounded nearby-system snapshot from NASA Exoplanet Archive pscomppars through the runtime HTTP facade, normalize real ICRS astrometry and stellar properties, and cache the rows in hyperdb. Optional max_distance_pc defaults to 50; limit defaults to 512. A scoped six-hour HyperDB receipt avoids repeated network fetches; force=true bypasses it. Returns provenance plus host/planet counts.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| max_distance_pc | optional | |||
| limit | optional | |||
| force | optional |
- Output keycosmos.result
- Classificationreal
Cosmos.Catalog.RefreshStars
Fetch a bounded nearest-star snapshot from ESA Gaia DR3 through Runtime's shared HTTP facade, normalize ICRS coordinates and physical star fields, and cache them in HyperDB. Optional max_distance_pc defaults to 25; limit defaults to 256. A scoped six-hour receipt avoids repeated TAP requests; force=true bypasses it.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| max_distance_pc | optional | |||
| limit | optional | |||
| force | optional |
- Output keycosmos.result
- Classificationreal
Cosmos.Delete
Remove a user-saved planet by slug. Drops both the VirtualUniverse vertex and its attached planet_spec Component. Idempotent on absent slugs — returns `existed: false`. Real-body / exoplanet / procedural destinations are not deletable through this Connection (they're seed-owned). Returns `{ ok, slug, existed }`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/deleteHTTP route
Cosmos.Duplicate
Clone a user-saved planet to a new slug. Reads the source's planet_spec Component, then runs Cosmos.Save semantics on the copy under `new_slug` (defaults to `{slug}-copy` when caller doesn't pass one). Source remains untouched. Returns the same shape as Cosmos.Save. Errors if the source slug is unknown OR new_slug equals the source.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/duplicateHTTP route
Cosmos.FetchExoplanetTile
Fetch live NASA Exoplanet Archive rows for one celestial cell (`ra_band` 0..24 x `dec_band` -9..9, optional `dist_shell`) via TAP and seed them into hyperdb alongside the curated catalog. Idempotent — already-seeded realms count as no-ops. HTTP failures surface as errors; an empty cell is success. Returns `{ ok, cell, ra_range, dec_range, fetched, newly_seeded }`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| ra_band | required | |||
| dec_band | required | |||
| dist_shell | optional |
- Output keycosmos.result
- Classificationreal
Cosmos.ListBeacons
List every VirtualSurfaceAsset vertex whose planet_id matches the query. Sorted by placed_at_ms ascending. Returns { ok, planet_id, count, beacons[] }. View-client calls this on landing to repopulate the engine's in-memory store with persisted beacons.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| planet_id | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/list-beaconsHTTP route
Cosmos.PlaceBeacon
Place a surface asset (beacon / flag / marker / structure) on a planet at the given lat/lon. Persists a VirtualSurfaceAsset vertex keyed by FNV-1a of (lat, lon, kind, placed_at_ms) so the same id is computable from the engine side — federated peers can dedup by id without round-tripping. Returns { ok, id, beacon_count }.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| kind | required | |||
| planet_id | required | |||
| lat_deg | required | |||
| lon_deg | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/place-beaconHTTP route
Cosmos.Rename
Change a user-saved planet's display label. Slug stays stable so links / saved destinations / catalog references keep working. The planet_spec Component is untouched (pure metadata edit). Returns `{ ok, slug, label }`. Errors if the slug doesn't exist or the new label is empty after trim.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| slug | required | |||
| label | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/renameHTTP route
Cosmos.Resolve
Resolve a destination handle to a PlanetSpec. Returns `{ ok, destination, spec, spec_hash, provenance }`. Pure derivation — no hyperdb writes. The caller (typically the view-client or a higher-level app) decides whether to persist the result.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| destination | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/resolveHTTP route
Cosmos.Save
Persist a PlanetSpec under this peer's user_saved namespace. Inputs: `spec` (a PlanetSpec) and an optional `slug` (kebab-normalized). Writes a VirtualUniverse vertex (kind=user_saved) plus an attached `planet_spec` Component carrying the serialized spec. Idempotent on the slug — re-saving with the same slug replaces the spec but keeps the realm. Returns `{ ok, slug, spec_hash, destination, component_was_new }`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| spec | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/saveHTTP route
Cosmos.SetActive
Resolve a destination AND return an `engine_calls` envelope listing the cre8VirtualApp* wasm calls the view-client should issue to install the world on the engine. RealBody destinations route through `SetTerrainSource(earth_srtm|mars_mola|moon_lola, lat, lon)`; everything else routes through `SetPlanetSpec` + `SetTerrainSource("planet", ...)`. Full server-side Bridge wiring (so the runtime can SetActive without the view-client roundtrip) is a follow-up.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| destination | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/set-activeHTTP route
Cosmos.TipBeacon
Transfer CRE8 from the caller's wallet (the signed-in account; `from_peer` counts only off the gateway on a runtime that requires no sign-in) to the beacon owner's wallet. Writes a VirtualTipTransaction audit row. Errors on insufficient balance OR self-tip. New peers auto-seed at 10 CRE8 on first interaction. F.3 will attach a STARK proof to the tx; F.4 will verify before applying credits on peer ingest.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| beacon_id | required | |||
| amount | required | |||
| from_peer | optional |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/tip-beaconHTTP route
Cosmos.WalletBalance
Read a peer's current wallet (balance + lifetime received/spent). Lazy-seeds 10 CRE8 on first read so the UI always shows a number.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required |
- Output keycosmos.result
- Classificationreal
- POST /cosmos/wallet-balanceHTTP route
Cosmos.WalletHistory
List tip transactions touching a peer (sent or received), newest first. `limit` defaults to 50 (max 500). Pure read over VirtualTipTransaction rows — no writes, no lazy wallet seeding. Returns `{ ok, peer_id, count, transactions[] }`.
| Field | Type | Required | Description | Allowed |
|---|---|---|---|---|
| peer_id | required |
- Output keycosmos.result
- Classificationreal
Schema and data model
Declared storage and kinds. Linked kinds open their app pages.
- Authorityhyper
- Preferred truthhyper
- App ownerCosmos
- SQL projectionnone · DDL declarations: 0
- None declared.
- VirtualComponent
- VirtualSurfaceAsset
- VirtualTipTransaction
- VirtualUniverse
- VirtualWallet
- None declared.
- None declared.
- None declared.
- No model warnings were reported.
Capabilities and dependencies
| Topic | Description |
|---|---|
| cosmos.surface_assets | Surface assets (beacons, flags, markers, structures) placed by peers on shared planets. Deterministic ids let peers dedup without round-trip negotiation. |
| cosmos.saved_planets | User-saved planets (custom PlanetSpec variants) shared between peers. Bob's cosmos catalog picks up Alice's saved planets through this topic — the user_saved provider already projects VirtualUniverse + VirtualComponent vertices, so gossip just writes into the same vertex shape. |