Skip to content

Variable: ConfigSchema

Makaio Framework


Makaio Framework / contracts / ConfigSchema

const ConfigSchema: ZodObject<{ $schema: ZodDefault<ZodLiteral<"makaio/config/v1">>; bus: ZodOptional<ZodObject<{ remote: ZodOptional<ZodObject<{ secret: ZodOptional<ZodString>; url: ZodOptional<ZodString>; }, $strip>>; }, $strip>>; features: ZodOptional<ZodObject<{ voiceBridge: ZodDefault<ZodBoolean>; }, $strip>>; fileWatcher: ZodOptional<ZodObject<{ backend: ZodDefault<ZodEnum<{ auto: "auto"; chokidar: "chokidar"; parcel: "parcel"; watchman: "watchman"; }>>; }, $strip>>; mode: ZodDefault<ZodEnum<{ hybrid: "hybrid"; local: "local"; remote: "remote"; }>>; relay: ZodOptional<ZodObject<{ autoReconnect: ZodDefault<ZodOptional<ZodBoolean>>; heartbeatInterval: ZodDefault<ZodOptional<ZodNumber>>; maxReconnectAttempts: ZodDefault<ZodOptional<ZodNumber>>; token: ZodOptional<ZodString>; url: ZodOptional<ZodString>; }, $strip>>; role: ZodDefault<ZodEnum<{ main-dev-machine: "main-dev-machine"; server: "server"; }>>; }, $strip>

Defined in: ../../../packages/contracts/src/config/config-schema.ts:19

Bootstrap config schema for Makaio runtime configuration.

This is the minimal config needed to bootstrap the system - stored in ~/.makaio/config.json. It controls:

  • Runtime mode (local/remote/hybrid)
  • Bus connectivity for remote/hybrid modes
  • Relay connection settings
{
"$schema": "makaio/config/v1",
"mode": "local"
}