Skip to content

Variable: ComponentStateSchema

Makaio Framework


Makaio Framework / kernel / ComponentStateSchema

const ComponentStateSchema: ZodEnum<{ active: "active"; discovered: "discovered"; failed: "failed"; initializing: "initializing"; skipped: "skipped"; stopped: "stopped"; }>

Defined in: ../../../packages/kernel/src/observability/shared-schemas.ts:25

Lifecycle states shared across all managed components (services and extensions).

State machine:

  • discovered — component is registered but not yet started
  • initializing — component startup is in progress
  • active — component is running normally
  • failed — component encountered a fatal error during startup or operation
  • skipped — component was intentionally bypassed (e.g. feature-gated)
  • stopped — component has been cleanly shut down

Note: importing is intentionally absent — it is an internal coordinator detail, not an externally observable state.