Function: startLocalDaemonService()
ts
function startLocalDaemonService<THandle>(
node,
input,
ctx
): Promise<ServiceSession<THandle>>;Defined in: node/src/executors/local-daemon-service.ts:29
Starts a LocalServiceNode (type: 'node:service') inside a long-lived runner daemon slot.
Sanitizes input.scopeKey with an 8-character SHA-256 suffix, runs .stopCommand pre-start cleanup, allocates conflict-free TCP ports, verifies .readyWhenStdout and TCP port listeners, and returns a ServiceSession with framed PTY interaction tools.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
THandle | unknown | Runtime handle type of the active isolation scope. |
Parameters
| Parameter | Type | Description |
|---|---|---|
node | LocalServiceNode | Passive service AST node to start. |
input | ServiceStartInput<THandle> | Run ID, raw scope key, and active scope handle. |
ctx | RuntimeDriverContext | Runtime driver context providing runner pools and env resolution. |
Returns
Promise<ServiceSession<THandle>>
Active daemon service session.