Skip to content

BrowserRuntimeConfig

Defined in: packages/runtime/src/platform/browser.ts:28

RuntimeConfig specialization for browser hosts.

Extends RuntimeConfig with browser-specific knobs. Today only prompt, passed through to the xterm / TTY harness at .boot() time.

browserRuntime

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/browser.ts:33

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