Variable: CliSchemas
Makaio Framework / kernel/cli/schemas / CliSchemas
Variable: CliSchemas
Section titled “Variable: CliSchemas”
constCliSchemas: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.
Type Declaration
Section titled “Type Declaration”execute
Section titled “execute”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.
execute.request
Section titled “execute.request”request:
ZodObject<{args:ZodOptional<ZodRecord<ZodString,ZodUnknown>>;command:ZodString;subcommand:ZodString; },$strip>
execute.response
Section titled “execute.response”response:
ZodObject<{exitCode:ZodNumber;stderr:ZodArray<ZodString>;stdout:ZodArray<ZodString>; },$strip>
listContributions
Section titled “listContributions”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.
listContributions.request
Section titled “listContributions.request”request:
ZodObject<{ },$strip>
listContributions.response
Section titled “listContributions.response”response:
ZodObject<{contributions:ZodArray<ZodObject<{description:ZodString;hasInteractive:ZodOptional<ZodBoolean>;name:ZodString;subcommands:ZodOptional<ZodReadonly<ZodArray<ZodObject<…, …>>>>; },$strip>>; },$strip>