Skip to content

NodeRuntimeConfig

Defined in: packages/runtime/src/platform/node.ts:27

RuntimeConfig specialization for the Node.js host.

Extends RuntimeConfig with Node-specific knobs. Today only prompt — passed through to the TTY / readline harness at .boot() time.

nodeRuntime

optional capabilities?: Partial<PlatformCapabilities>

Defined in: packages/runtime/src/platform/types.ts:233

Selectively override individual PlatformCapabilities methods.

Merged over the platform defaults via { ...defaults, ...overrides } — any method you supply replaces the default. Useful for tests that want to spy on fetch without reimplementing the others, or for hosts that have a stricter importEsm (e.g. a sandboxed iframe).

RuntimeConfig.capabilities


optional prompt?: string

Defined in: packages/runtime/src/platform/node.ts:32

Shell prompt string passed to the Node TTY adapter. When omitted, the shell’s own default is used.