Skip to content

Function: sanitizeDaemonScopeKey() ​

ts
function sanitizeDaemonScopeKey(rawScopeKey): string;

Defined in: node/src/executors/internal/daemon-ports-and-scope-key.ts:19

Sanitizes a raw isolation scopeKey into a collision-free daemon container/resource identifier.

Replaces characters outside [a-zA-Z0-9_.-] with _ and appends a deterministic 8-hex-character SHA-256 suffix of the raw unsanitized scopeKey (${sanitizedPrefix}-${sha256(rawScopeKey).slice(0, 8)}).

Parameters ​

ParameterTypeDescription
rawScopeKeystringUnsanitized scope key (${runId}:${forkId ?? 'root'}).

Returns ​

string

Collision-free sanitized scope key.

Released under the MIT License.