Skip to main content

Module api_quickstart

Module api_quickstart 

Source
Expand description

HTTP routes for the Quickstart flow.

Thin wrapper over zeroclaw_runtime::quickstart::{validate_only, apply}. Routes:

  • GET /api/quickstart/state — current Quickstart state (completed flag + live-config slices for each step’s “Use existing” section).
  • POST /api/quickstart/validate — run validate_only against the submitted BuilderSubmission; returns { ok: true } or { ok: false, errors: [...] }.
  • POST /api/quickstart/apply — atomically apply the submission, then signal an in-place daemon reload through the existing reload_tx watch channel (same mechanism /admin/reload uses); returns the AppliedAgent summary or a structured error list.

All business logic lives in zeroclaw-runtime; this module is route plumbing only.

Structs§

DismissRequest
FieldsRequest
FieldsResult

Enums§

ApplyResult
ValidateResult

Functions§

handle_apply
handle_dismiss
handle_fields
handle_state
GET /api/quickstart/state — minimal payload the Quickstart UI needs to render every step’s “Use existing” section without pulling the entire config. Response shape is owned by zeroclaw_runtime::quickstart::QuickstartState; both transports build the body via zeroclaw_runtime::quickstart::snapshot_state so they cannot drift.
handle_validate