Represents a single action in the system, tracking its full lifecycle through action events.
inheritance
Cell<typeof ActionJson>
method
type ActionMethod
action_event_data
type ActionEventData | undefined
spec
type ActionSpecUnion
kind
type ActionKind
has_error
pending
Returns true if the action is still pending (not in a terminal state). An action is complete when it reaches a terminal phase (where next phase is null) AND the step is terminal (handled or failed).
failed
success
Returns true if the action completed successfully. Success means: action is complete (terminal phase + step), step is 'handled', and no error.
constructor
type new (options: ActionOptions): Action
options
unlisten_to_action_event
type (() => void) | undefined
action_event
type ActionEvent | undefined
listen_to_action_event
type (action_event: ActionEvent<"ping" | "session_load" | "filer_change" | "diskfile_update" | "diskfile_delete" | "directory_create" | "completion_create" | "completion_progress" | "ollama_progress" | ... 15 more ... | "terminal_close", ActionEventEnvironment, "send_request" | ... 7 more ... | "receive", "initial" | ... 3 more ... | "failed">): () => void
action_event
ActionEvent<"ping" | "session_load" | "filer_change" | "diskfile_update" | "diskfile_delete" | "directory_create" | "completion_create" | "completion_progress" | "ollama_progress" | ... 15 more ... | "terminal_close", ActionEventEnvironment, "send_request" | ... 7 more ... | "receive", "initial" | ... 3 more ... | "...() => voiddispose
type (): void
void