Skip to content

@oona/vlo / host / CreateHostOptions

Interface: CreateHostOptions ​

Defined in: sdk/ts/sdk/src/host/roles.ts:48

What createHost needs: durable stores, the registries, and which roles this process plays.

Extended by ​

Properties ​

activities? ​

optional activities?: readonly ActivityRegistration[]

Defined in: sdk/ts/sdk/src/host/roles.ts:61

Activities whose output schema the host enforces before folding a result. Unregistered activities still run; their output is folded as opaque JSON.


auth? ​

optional auth?: AuthConfig

Defined in: sdk/ts/sdk/src/host/roles.ts:71

Credentials for the control plane, inbound pushes, callbacks and signed links. Absent ⇒ open host.


basePath? ​

optional basePath?: string

Defined in: sdk/ts/sdk/src/host/roles.ts:81

Path prefix this host is mounted under, e.g. "/api/vlo" for a Next route file at app/api/vlo/[[...path]]/route.ts. The router strips it before matching and every URL built from publicUrl carries it.


blob? ​

optional blob?: string | BlobStore

Defined in: sdk/ts/sdk/src/host/roles.ts:52

A BlobStore, or a file:// / gcs:// URL to open. Default DEFAULT_BLOB_URL.


dispatcher? ​

optional dispatcher?: DispatcherOptions

Defined in: sdk/ts/sdk/src/host/roles.ts:89

Outbox dispatcher tuning. Only read when this host holds the orchestrator role.


domains? ​

optional domains?: readonly Domain[]

Defined in: sdk/ts/sdk/src/host/roles.ts:56

Domains from defineDomain; their registries are flattened onto the four arrays below.


journal ​

journal: string | Journal

Defined in: sdk/ts/sdk/src/host/roles.ts:50

A Journal, or a URL the host opens (and closes on stop).


kernel? ​

optional kernel?: Kernel

Defined in: sdk/ts/sdk/src/host/roles.ts:87

Injected for tests; otherwise the wasm kernel is loaded on start.


namespace? ​

optional namespace?: string

Defined in: sdk/ts/sdk/src/host/roles.ts:73

Namespace new runs are created in and listRuns filters by. Default "default".


now? ​

optional now?: () => number

Defined in: sdk/ts/sdk/src/host/roles.ts:85

Clock for every journaled timestamp, in epoch milliseconds. Default Date.now.

Returns ​

number


publicUrl? ​

optional publicUrl?: string

Defined in: sdk/ts/sdk/src/host/roles.ts:75

Base URL peers reach this host on; fills complete_url on an outbound push.


queues? ​

optional queues?: Record<string, QueueConfig>

Defined in: sdk/ts/sdk/src/host/roles.ts:69

Per-queue delivery: a push URL and secret, or mode: "pull". Queues not listed are in-process only.


roles? ​

optional roles?: readonly Role[]

Defined in: sdk/ts/sdk/src/host/roles.ts:67

Roles this process holds. Default: orchestrator, api, plus one worker:<queue> per queue of every worker.


signals? ​

optional signals?: readonly SignalRegistration[]

Defined in: sdk/ts/sdk/src/host/roles.ts:65

Signals whose payload the host validates before delivery. Unregistered signals pass through as-is.


streamPollMs? ​

optional streamPollMs?: number

Defined in: sdk/ts/sdk/src/host/roles.ts:83

How often an open SSE stream looks for new journal events. Default 500 ms.


workers? ​

optional workers?: readonly Worker[]

Defined in: sdk/ts/sdk/src/host/roles.ts:63

Workers run in this process. Each adds a worker:<queue> role when roles is absent.


workflows? ​

optional workflows?: readonly Workflow<unknown, unknown>[]

Defined in: sdk/ts/sdk/src/host/roles.ts:54

Workflows this host can run, by name. Starting an unregistered one is refused. Optional when domains supplies them.