@oona/vlo / host / ServeOptions
Interface: ServeOptions
Defined in: sdk/ts/sdk/src/host/roles.ts:273
CreateHostOptions plus where to listen.
Extends
Properties
activities?
optionalactivities?: readonlyActivityRegistration[]
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.
Inherited from
auth?
optionalauth?: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.
Inherited from
basePath?
optionalbasePath?: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.
Inherited from
blob?
optionalblob?: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.
Inherited from
dispatcher?
optionaldispatcher?:DispatcherOptions
Defined in: sdk/ts/sdk/src/host/roles.ts:89
Outbox dispatcher tuning. Only read when this host holds the orchestrator role.
Inherited from
domains?
optionaldomains?: readonlyDomain[]
Defined in: sdk/ts/sdk/src/host/roles.ts:56
Domains from defineDomain; their registries are flattened onto the four arrays below.
Inherited from
hostname?
optionalhostname?:string
Defined in: sdk/ts/sdk/src/host/roles.ts:277
Interface to bind. Default 127.0.0.1.
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).
Inherited from
kernel?
optionalkernel?:Kernel
Defined in: sdk/ts/sdk/src/host/roles.ts:87
Injected for tests; otherwise the wasm kernel is loaded on start.
Inherited from
namespace?
optionalnamespace?:string
Defined in: sdk/ts/sdk/src/host/roles.ts:73
Namespace new runs are created in and listRuns filters by. Default "default".
Inherited from
now?
optionalnow?: () =>number
Defined in: sdk/ts/sdk/src/host/roles.ts:85
Clock for every journaled timestamp, in epoch milliseconds. Default Date.now.
Returns
number
Inherited from
port?
optionalport?:number
Defined in: sdk/ts/sdk/src/host/roles.ts:275
TCP port to bind. Default DEFAULT_PORT; 0 picks a free one.
publicUrl?
optionalpublicUrl?: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.
Inherited from
queues?
optionalqueues?: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.
Inherited from
roles?
optionalroles?: readonlyRole[]
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.
Inherited from
signals?
optionalsignals?: readonlySignalRegistration[]
Defined in: sdk/ts/sdk/src/host/roles.ts:65
Signals whose payload the host validates before delivery. Unregistered signals pass through as-is.
Inherited from
streamPollMs?
optionalstreamPollMs?: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.
Inherited from
CreateHostOptions.streamPollMs
workers?
optionalworkers?: readonlyWorker[]
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.
Inherited from
workflows?
optionalworkflows?: readonlyWorkflow<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.