kernel:cli
kernel:cli
Section titled “kernel:cli”| Field | Value |
|---|---|
| Prefix | kernel:cli |
| Namespace constant | CliNamespace |
| Subjects constant | CliRpcSubjects |
| Kind | bus |
| Schema record | CliSchemas |
| Tier | framework |
| Package | @makaio/kernel |
| Defined in | packages/kernel/src/bus/cli/namespace.ts |
Subjects
Section titled “Subjects”| Key | Wire | Type | Schema |
|---|---|---|---|
execute | kernel:cli.execute | rpc | schemas.ts |
listContributions | kernel:cli.listContributions | rpc | schemas.ts |
Subject Details
Section titled “Subject Details”kernel:cli.execute (rpc)
Section titled “kernel:cli.execute (rpc)”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.
Subject: kernel:cli.execute
Type: Request (RPC)
Request:
| Field | Type | Required |
|---|---|---|
args | Record<string, unknown> | undefined | no |
command | string | yes |
subcommand | string | yes |
Response:
| Field | Type | Required |
|---|---|---|
exitCode | number | yes |
stderr | string[] | yes |
stdout | string[] | yes |
kernel:cli.listContributions (rpc)
Section titled “kernel:cli.listContributions (rpc)”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.
Subject: kernel:cli.listContributions
Type: Request (RPC)
Request:
Empty object.
Response:
| Field | Type | Required |
|---|---|---|
contributions | { name: string; description: string; subcommands?: readonly { name: string; description: string; args?: readonly { name: string; description: string; required?: boolean | undefined; positional?: boolean | undefined; short?: string | undefined; type?: "string" | "number" | "boolean" | undefined; }[] | undefined; }[] | undefined; hasInteractive?: boolean | undefined; }[] | yes |
Auto-generated by yarn docs:bus. Do not edit manually.