Skip to content

Variable: CliSchemas

Makaio Framework


Makaio Framework / kernel/cli/schemas / CliSchemas

const CliSchemas: object

Defined in: ../../../packages/kernel/src/bus/cli/schemas.ts:18

CLI namespace schema definitions.

Both subjects are request/response RPCs — no fire-and-forget events.

execute: object

Execute a CLI subcommand on the server.

The server validates args through the subcommand’s Zod schema, runs the handler with a buffering output writer, and returns captured output.

request: ZodObject<{ args: ZodOptional<ZodRecord<ZodString, ZodUnknown>>; command: ZodString; subcommand: ZodString; }, $strip>

response: ZodObject<{ exitCode: ZodNumber; stderr: ZodArray<ZodString>; stdout: ZodArray<ZodString>; }, $strip>

listContributions: object

List all CLI contributions from loaded extensions.

Returns CLI manifest objects (serializable metadata only, no handler code). The CLI uses this to register remote commands and generate --help output.

request: ZodObject<{ }, $strip>

response: ZodObject<{ contributions: ZodArray<ZodObject<{ description: ZodString; hasInteractive: ZodOptional<ZodBoolean>; name: ZodString; subcommands: ZodOptional<ZodReadonly<ZodArray<ZodObject<…, …>>>>; }, $strip>>; }, $strip>