action.svelte.ts

Declarations
#

5 declarations

view source

Action
#

action.svelte.ts view source

Represents a single action in the system, tracking its full lifecycle through action events.

inheritance

extends:
  • Cell<typeof ActionJson>

method

type ActionMethod

action_event_data

type ActionEventData | undefined

spec

type ActionSpecUnion

readonly

kind

type ActionKind

readonly

has_error

readonly

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).

readonly

failed

readonly

success

Returns true if the action completed successfully. Success means: action is complete (terminal phase + step), step is 'handled', and no error.

readonly

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
type 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...
returns () => void

dispose

type (): void

returns void

ActionJson
#

action.svelte.ts view source

ZodObject<{ id: ZodDefault<$ZodBranded<ZodUUID, "Uuid">>; created: ZodDefault<$ZodBranded<ZodISODateTime, "Datetime">>; updated: ZodDefault<...>; method: ZodEnum<...>; action_event_data: ZodOptional<...>; }, $strict>

ActionJsonInput
#

action.svelte.ts view source

{ method: "completion_create" | "completion_progress" | "directory_create" | "diskfile_delete" | "diskfile_update" | "filer_change" | "ollama_copy" | "ollama_create" | "ollama_delete" | ... 10 more ... | "toggle_main_menu"; id?: string | undefined; created?: string | undefined; updated?: string | undefined; action_e...

ActionOptions
#

ActionSchema
#

Depends on
#

Imported by
#