Skip to content
1 viewer
View

Cosmos reference

0 pages, 11 routes, 16 connections and 0 CLI commands, generated from the declarations of Cosmos without reading storage or running anything.

AboutCode

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.

Calls and output
  • 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.

Cosmos.Catalog.RefreshExternal input
FieldTypeRequiredDescriptionAllowed
forceoptional
1 row
Calls and output
  • 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.

Cosmos.Catalog.RefreshNearby input
FieldTypeRequiredDescriptionAllowed
max_distance_pcoptional
limitoptional
forceoptional
3 rows
Calls and output
  • 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.

Cosmos.Catalog.RefreshStars input
FieldTypeRequiredDescriptionAllowed
max_distance_pcoptional
limitoptional
forceoptional
3 rows
Calls and output
  • 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 }`.

Cosmos.Delete input
FieldTypeRequiredDescriptionAllowed
slugrequired
1 row
Calls and output
  • 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.

Cosmos.Duplicate input
FieldTypeRequiredDescriptionAllowed
slugrequired
1 row
Calls and output
  • 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 }`.

Cosmos.FetchExoplanetTile input
FieldTypeRequiredDescriptionAllowed
ra_bandrequired
dec_bandrequired
dist_shelloptional
3 rows
Calls and output
  • 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.

Cosmos.ListBeacons input
FieldTypeRequiredDescriptionAllowed
planet_idrequired
1 row
Calls and output
  • 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 }.

Cosmos.PlaceBeacon input
FieldTypeRequiredDescriptionAllowed
kindrequired
planet_idrequired
lat_degrequired
lon_degrequired
4 rows
Calls and output
  • 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.

Cosmos.Rename input
FieldTypeRequiredDescriptionAllowed
slugrequired
labelrequired
2 rows
Calls and output
  • 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.

Cosmos.Resolve input
FieldTypeRequiredDescriptionAllowed
destinationrequired
1 row
Calls and output
  • 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 }`.

Cosmos.Save input
FieldTypeRequiredDescriptionAllowed
specrequired
1 row
Calls and output
  • 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.

Cosmos.SetActive input
FieldTypeRequiredDescriptionAllowed
destinationrequired
1 row
Calls and output
  • 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.

Cosmos.TipBeacon input
FieldTypeRequiredDescriptionAllowed
beacon_idrequired
amountrequired
from_peeroptional
3 rows
Calls and output
  • 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.

Cosmos.WalletBalance input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
1 row
Calls and output
  • 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[] }`.

Cosmos.WalletHistory input
FieldTypeRequiredDescriptionAllowed
peer_idrequired
1 row
Calls and output
  • Output keycosmos.result
  • Classificationreal

Schema and data model

Declared storage and kinds. Linked kinds open their app pages.

Declared storage
  • Authorityhyper
  • Preferred truthhyper
  • App ownerCosmos
  • SQL projectionnone · DDL declarations: 0
Hyper vertex kinds read
  • None declared.
Hyper vertex kinds written
  • VirtualComponent
  • VirtualSurfaceAsset
  • VirtualTipTransaction
  • VirtualUniverse
  • VirtualWallet
Hyper edge kinds written
  • None declared.
Asset namespaces read
  • None declared.
Asset namespaces minted
  • None declared.
Model warnings
  • No model warnings were reported.

Capabilities and dependencies

Gossip topics
TopicDescription
cosmos.surface_assetsSurface assets (beacons, flags, markers, structures) placed by peers on shared planets. Deterministic ids let peers dedup without round-trip negotiation.
cosmos.saved_planetsUser-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.
2 rows