# Core API

Every exported type, constant and function of `core/**`, with its comment. The code is the reference.

| Files | Exports | |
|---|---|---|
| [`core/charts/attest.ts`](./charts-attest) | 21 | Attestations of a chart (alta.attestation/0.1, docs/standards/alta-attestation-0.1.md): |
| [`core/charts/bindings.ts`](./charts-bindings) | 5 | A chart with its needs bound (docs/standards/alta-chart-0.1.md, "Needs"): |
| [`core/charts/catalog.ts`](./charts-catalog) | 20 | The catalog the game reads (alta.catalog/0.2), the right of use of a paid chart (alta.license/0.2) and the pinned git source of a community chart (docs/standards/alta-chart-0.1.md §16). |
| [`core/charts/chart.ts`](./charts-chart) | 50 | The Agent Chart (alta.chart/0.1, docs/standards/alta-chart-0.1.md): |
| [`core/charts/conditions.ts`](./charts-conditions) | 13 |  |
| [`core/charts/external.ts`](./charts-external) | 37 | What a chart needs outside the machine (docs/standards/alta-chart-0.1.md §8, "External services and locality"): |
| [`core/charts/index-format.ts`](./charts-index-format) | 37 | The index of a chart repository (alta.index/0.1, docs/standards/alta-index-0.1.md): |
| [`core/charts/needs.ts`](./charts-needs) | 33 | Needs of alta.chart/0.1 (docs/standards/alta-chart-0.1.md, "Needs"): |
| [`core/charts/quests.ts`](./charts-quests) | 6 |  |
| [`core/charts/repairs.ts`](./charts-repairs) | 22 | Repairs of alta.chart/0.1 (docs/standards/alta-chart-0.1.md §13): |
| [`core/charts/repos.ts`](./charts-repos) | 12 | The repositories a machine reads charts from (alta.repos/0.1, docs/standards/alta-index-0.1.md §7): |
| [`core/charts/risk.ts`](./charts-risk) | 10 | The risk level of a chart (docs/standards/alta-chart-0.1.md §8, "Risk level"): |
| [`core/charts/semver.ts`](./charts-semver) | 10 | Versions and ranges of alta.chart/0.1 (docs/standards/alta-chart-0.1.md §7). |
| [`core/charts/values.ts`](./charts-values) | 18 | Values of alta.chart/0.1 (docs/standards/alta-chart-0.1.md §4): |
| [`core/cinematics/cinematics.ts`](./cinematics-cinematics) | 10 | The cinematics standard (alta.cinematics/0.1, PLAN-V2 §2.3): |
| [`core/install/alta-os.ts`](./install-alta-os) | 15 | The contract of the single Alta OS install script (`alta.install/0.1`), shared by the Mac (native, no Docker) and the cloud image (its Dockerfile runs the same script): |
| [`core/layout/layout.ts`](./layout-layout) | 5 | Places the neutral entities in a 2D world, deterministically: |
| [`core/missions/missions.ts`](./missions-missions) | 12 | Missions (PLAN-V2 §3.3, lot M): |
| [`core/onboarding/onboarding.ts`](./onboarding-onboarding) | 15 | The onboarding standard (alta.onboarding/0.2, reads 0.1): |
| [`core/platform/platform.ts`](./platform-platform) | 28 | Compatibility by operating system (PLAN-V2 §2.6): |
| [`core/platform/resources.ts`](./platform-resources) | 13 | What a step, a choice or an executor needs of the machine, written like Kubernetes resources (docs/standards/ resources.md): |
| [`core/quests/sources/common.ts`](./quests-sources-common) | 8 | Shared by the quest sources (lot Q2): |
| [`core/quests/sources/index.ts`](./quests-sources-index) | 6 | Generated quests (lot Q2): |
| [`core/quests/sources/personal.ts`](./quests-sources-personal) | 8 | Personal quests generated from the owner's tasks (PLAN-V2 P7, P8; lot Q2). |
| [`core/quests/sources/repair.ts`](./quests-sources-repair) | 9 | Repair quests generated from the map (PLAN-V2 §2.1, lot Q2): |
| [`core/quests/sources/system.ts`](./quests-sources-system) | 6 | System quests generated from the server's probes (lot Q2): |
| [`core/quests/standard.ts`](./quests-standard) | 78 | Quests in the Alta Quest Standard (schema alta.game/0.3, reads 0.1 and 0.2): |
| [`core/runs/card.ts`](./runs-card) | 15 | The plan card an executor's `plan` returns (POST /api/runs/plan → `card`), as the page reads it, and the words of a run's report lines. |
| [`core/runs/executors.ts`](./runs-executors) | 22 | The closed list of executors (PLAN-V2 §3.3), as the core knows it: |
| [`core/runs/inputs.ts`](./runs-inputs) | 27 | What a step asks the player before its executor runs (alta.game/0.3, `Step.inputs`), and how the answers become the executor's arguments. |
| [`core/runs/signin.ts`](./runs-signin) | 19 | Sign-in with a program's own command line, as the standard declares it (docs/standards/runs-routes-checks.md, "Sign-in"). |
| [`core/telemetry/telemetry.ts`](./telemetry-telemetry) | 24 | Telemetry (docs/oss/TELEMETRY.md): |
| [`core/universe/contract.ts`](./universe-contract) | 12 | The universe contract: |
| [`core/universe/pack.ts`](./universe-pack) | 15 | The universe pack (alta.universe/0.1, PLAN-V2 §2.4): |
| [`core/worldmodel/normalize.ts`](./worldmodel-normalize) | 2 | Reads a system map (schema alta.map/1, written by alta-map) into the neutral WorldState. |
| [`core/worldmodel/types.ts`](./worldmodel-types) | 11 | The neutral world model: |
