Skip to content

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 ParameterDefault typeDescription
THandleunknownRuntime handle type of the active isolation scope.

Parameters ​

ParameterTypeDescription
nodeLocalServiceNodePassive service AST node to start.
inputServiceStartInput<THandle>Run ID, raw scope key, and active scope handle.
ctxRuntimeDriverContextRuntime driver context providing runner pools and env resolution.

Returns ​

Promise<ServiceSession<THandle>>

Active daemon service session.

Released under the MIT License.