CommandProcessorOptions
Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:6
Configuration for command queueing and Action execution.
Properties
Section titled “Properties”actionExecutionTimeoutMs?
Section titled “actionExecutionTimeoutMs?”
optionalactionExecutionTimeoutMs?: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.
debug?
Section titled “debug?”
optionaldebug?:boolean
Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:8
Enables diagnostic logging. Defaults to false.
defaultActionWaitTimeoutMs?
Section titled “defaultActionWaitTimeoutMs?”
optionaldefaultActionWaitTimeoutMs?: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.
initialState?
Section titled “initialState?”
optionalinitialState?:CommandProcessingState
Defined in: packages/client/src/lib/command-processor/command-processor.types.ts:20
Initial state override. Defaults to a fresh empty tiling state.
resolveVessel?
Section titled “resolveVessel?”
optionalresolveVessel?: (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.
Parameters
Section titled “Parameters”vesselId
Section titled “vesselId”VesselId
Returns
Section titled “Returns”VesselDefinition | undefined