Skip to content

native-session-supervisor

FieldValue
Prefixnative-session-supervisor
Namespace constantNativeSessionSupervisorNamespace
Subjects constantNativeSessionSupervisorSubjects
Kindbus
Schema recordNativeSessionSupervisorSchemas
Tierframework
Package@makaio/contracts
Defined inpackages/contracts/src/native-session-supervisor/namespace.ts
KeyWireTypeSchema
attachnative-session-supervisor.attachrpcschemas.ts
launchnative-session-supervisor.launchrpcschemas.ts
statusnative-session-supervisor.statusrpcschemas.ts
stopnative-session-supervisor.stoprpcschemas.ts

Request and response schemas for native-session-supervisor.attach.

Requests attachment to an already-supervised runtime, identified by one of the three available locators.

Subject: native-session-supervisor.attach Type: Request (RPC)

Response:

FieldTypeRequired
pidnumber | undefinedno
successbooleanyes
supervisorSessionIdstring | undefinedno
terminalAttachment{ canAttach: boolean; } | undefinedno

Request and response schemas for native-session-supervisor.launch.

Launches a new supervised native process and returns a stable supervisor session ID together with the OS process ID of the spawned process.

Subject: native-session-supervisor.launch Type: Request (RPC)

Request:

FieldTypeRequired
adapterSessionIdstring | undefinedno
argsstring[]yes
clientIdstringyes
commandstringyes
cwdstringyes
envRecord<string, string> | undefinedno
metadataRecord<string, unknown> | undefinedno
sessionIdstring | undefinedno

Response:

FieldTypeRequired
pidnumberyes
supervisorSessionIdstringyes

Request and response schemas for native-session-supervisor.status.

Queries status for one or all supervised runtimes.

The request accepts exactly zero or one locator field:

  • No locator — returns all known runtimes.
  • One locator — returns the single runtime matching that field.

Providing more than one locator is rejected by the schema so that callers cannot rely on an undocumented priority ordering between fields.

Subject: native-session-supervisor.status Type: Request (RPC)

Response:

FieldTypeRequired
runtimes{ supervisorSessionId: string; clientId: string; pid: number | null; status: "unknown" | "running" | "stopped" | "exited"; cwd: string; startedAt: number; sessionId?: string | undefined; adapterSessionId?: string | undefined; stoppedAt?: number | undefined; }[]yes

Request and response schemas for native-session-supervisor.stop.

Stops a supervised runtime process identified by its supervisor session ID.

Subject: native-session-supervisor.stop Type: Request (RPC)

Request:

FieldTypeRequired
signalstring | undefinedno
supervisorSessionIdstringyes

Response:

FieldTypeRequired
successbooleanyes

Auto-generated by yarn docs:bus. Do not edit manually.