Skip to content

Interface: FsmConfig

Defined in: packages/core/src/fsm/StateMachineGate.ts:64

Configuration for a finite state machine definition.

Uses the same shape as XState v5 createMachine() config, but only the subset needed for tool gating.

Properties

id?

ts
optional id: string;

Defined in: packages/core/src/fsm/StateMachineGate.ts:66

Unique identifier for this state machine


initial

ts
initial: string;

Defined in: packages/core/src/fsm/StateMachineGate.ts:68

Initial state when a new session starts


states

ts
states: Record<string, {
  on?: Record<string, string>;
  type?: "final";
}>;

Defined in: packages/core/src/fsm/StateMachineGate.ts:70

State definitions with event transitions