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<"completion_create" | "completion_progress" | "directory_create" | "diskfile_delete" | "diskfile_update" | "filer_change" | "ollama_copy" | "ollama_create" | "ollama_delete" | ... 10 more ... | "toggle_main_menu", ActionEventEnvironment, "send_request" | ... 7 more ... | "execute", "initial" | ... 3 more ... | "failed">): () => void
action_event
ActionEvent<"completion_create" | "completion_progress" | "directory_create" | "diskfile_delete" | "diskfile_update" | "filer_change" | "ollama_copy" | "ollama_create" | "ollama_delete" | ... 10 more ... | "toggle_main_menu", ActionEventEnvironment, "send_request" | ... 7 more ... | "execute", "initial" | ... 3 more...() => voiddispose
type (): void
void