Skip to content

CommandProcessorOptions

Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:6

Configuration for command queueing and Action execution.

optional actionExecutionTimeoutMs?: number

Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:18

Maximum duration for one Action handler. Defaults to 30,000 milliseconds; expiry records that Action as failed.


optional debug?: boolean

Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:8

Enables diagnostic logging. Defaults to false.


optional defaultActionWaitTimeoutMs?: number

Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:13

Wait for a missing Action runner before skipping its Actions. Defaults to 500 milliseconds.


optional initialState?: CommandProcessingState

Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:20

Initial state override. Defaults to a fresh empty tiling state.


optional resolveVessel?: (vesselId) => VesselDefinition | undefined

Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:30

Looks up a registered Vessel definition. With it, each Action of an execute_actions command resolves against its Instance’s Variant at that Action’s turn, and its transitionsTo applies after the handler succeeds. An Action declared effect: 'none' with no handler applies its transition on its own, as long as the Instance has a registered action runner. Any other Action without a handler is skipped and changes no Variant. Without it, handlers are looked up by Action name alone and no Variant changes.

VesselId

VesselDefinition | undefined