actions.svelte.ts

Declarations
#

6 declarations

view source

Actions
#

actions.svelte.ts view source

Stores the action history.

inheritance

extends:
  • Cell<typeof ActionsJson>

items

type IndexedCollection<Action>

readonly

history_limit

type number

constructor

type new (options: ActionsOptions): Actions

options

set_json

Override to populate the indexed collection after parsing JSON.

type (value?: { id?: string | undefined; created?: string | undefined; updated?: string | undefined; items?: { method: "completion_create" | "completion_progress" | "directory_create" | "diskfile_delete" | ... 15 more ... | "toggle_main_menu"; id?: string | undefined; created?: string | undefined; updated?: string | undefined; action_event_data?: { ...; } | undefined; }[] | undefined; } | undefined): void

value?
type { id?: string | undefined; created?: string | undefined; updated?: string | undefined; items?: { method: "completion_create" | "completion_progress" | "directory_create" | "diskfile_delete" | ... 15 more ... | "toggle_main_menu"; id?: string | undefined; created?: string | undefined; updated?: string | undefined; ac...
optional
returns void

add

type (action: Action): void

action
type Action
returns void

add_from_json

type (action_json: { 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_event_data?: { ...; } | undefined; }): Action

action_json
type { 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...
returns Action

ActionsJson
#

actions.svelte.ts view source

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

ActionsJsonInput
#

actions.svelte.ts view source

{ id?: string | undefined; created?: string | undefined; updated?: string | undefined; items?: { method: "completion_create" | "completion_progress" | "directory_create" | "diskfile_delete" | ... 15 more ... | "toggle_main_menu"; id?: string | undefined; created?: string | undefined; updated?: string | undefined; ac...

ActionsOptions
#

HISTORY_LIMIT_DEFAULT
#

PONG_DISPLAY_LIMIT
#

Depends on
#

Imported by
#