/** * XStateConnector — full state machine resource via XState v5. * Not mountable. Provides guarded transitions, entry/exit actions, * context, and serializable snapshots. * * Requires `xstate` (v5+) as an optional peer dependency. * * `options.definitionPath` is declaration-supplied, so a machine file under the * workspace is plausible configuration — which puts it on the rclone FUSE mount * inside the agent container. The load is therefore async and deadline-bounded: * a synchronous read against a wedged mount parks the whole event loop in an * uninterruptible kernel wait (issue #454). */ import type { ConnectContext, ConnectorDeclaration, ConnectorHandle, ToolFace } from "@skaile/workspaces/connectors"; import { AbstractConnector } from "@skaile/workspaces/connectors"; /** * Connector for XState v5 state machines — drives guarded transitions, tracks history, and exposes * the current state and context to agents. Machine definitions can be provided inline or loaded * from a JSON/YAML file. Requires the `xstate` optional peer dependency. * @docLink packages/factory-assets/concepts#xstate-connector */ export declare class XStateConnector extends AbstractConnector { readonly name = "xstate"; tools: ToolFace; constructor(); connect(declaration: ConnectorDeclaration, _ctx: ConnectContext): Promise; disconnect(handle: ConnectorHandle): Promise; private s; /** * Register action implementations. Call after connect(). */ registerActions(handle: ConnectorHandle, actions: Record void>): void; /** * Register guard implementations. Call after connect(). */ registerGuards(handle: ConnectorHandle, guards: Record boolean>): void; /** * Register a callback fired on every state change. */ onStateChange(handle: ConnectorHandle, cb: (snapshot: { value: any; context: any; }) => void): void; private _read; private _list; private _search; private _describeOperations; private _executeOp; private getAvailableEvents; /** Collect all named actions or guards from a machine definition tree. */ private collectNames; } /** * Creates a new XStateConnector instance. * @returns Configured XStateConnector ready to be registered in the connector registry. * @docLink packages/factory-assets/api-reference#xstate-connector-factory */ export declare function createConnector(): XStateConnector; //# sourceMappingURL=adapter.d.ts.map