Skip to content

core/quests/sources/index.ts ​

Generated from the exports of core/quests/sources/index.ts · npm run docs:gen

Generated quests (lot Q2): pure functions that turn the map, the server's probes and the owner's tasks into generated branches ("_repair", "_system", "_personal"). The client registers them as quest sources (client/features/generated); the core plays them like any other branch.

Standards that cite this file: No standard page cites this file yet.

Exports ​

export … re-export ​

ts
export * from "./common";

export … re-export ​

ts
export * from "./repair";

export … re-export ​

ts
export * from "./system";

export … re-export ​

ts
export * from "./personal";

ServerSources interface ​

What the server sends for the sources (GET /api/game, sources).

ts
interface ServerSources { probes?: Probe[]; tasks?: TaskSource }

generatedBranches function ​

Every generated branch for one evaluation (tests and tools; the client registers each source on its own).

ts
function generatedBranches(ctx: { world: WorldState; save: Save; now: number; server: ServerSources }, say: Say): Branch[]

The standard, the SDK and the CLI are Apache-2.0; Alta System OS and Alta World are FSL-1.1-ALv2.