server/backend_action_types.ts view source
BackendActionHandlers Backend action handlers organized by method and phase. Generated using spec.initiator to determine valid phases: - initiator: 'backend' → send/execute phases - initiator: 'frontend' → receive phases - initiator: 'both' → all valid phases
completion_create
type
{
receive_request?: (
action_event: ActionEvent<'completion_create', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['completion_create'] | Promise<ActionOutputs['completion_create']>;
send_response?: (
action_event: ActionEvent<'completion_create', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'completion_create', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}completion_progress
type
{
send?: (
action_event: ActionEvent<'completion_progress', Backend, 'send', 'handling'>,
) => void | Promise<void>;
}directory_create
type
{
receive_request?: (
action_event: ActionEvent<'directory_create', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['directory_create'] | Promise<ActionOutputs['directory_create']>;
send_response?: (
action_event: ActionEvent<'directory_create', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'directory_create', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}diskfile_delete
type
{
receive_request?: (
action_event: ActionEvent<'diskfile_delete', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['diskfile_delete'] | Promise<ActionOutputs['diskfile_delete']>;
send_response?: (
action_event: ActionEvent<'diskfile_delete', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'diskfile_delete', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}diskfile_update
type
{
receive_request?: (
action_event: ActionEvent<'diskfile_update', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['diskfile_update'] | Promise<ActionOutputs['diskfile_update']>;
send_response?: (
action_event: ActionEvent<'diskfile_update', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'diskfile_update', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}filer_change
type
{
send?: (
action_event: ActionEvent<'filer_change', Backend, 'send', 'handling'>,
) => void | Promise<void>;
}ollama_copy
type
{
receive_request?: (
action_event: ActionEvent<'ollama_copy', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_copy'] | Promise<ActionOutputs['ollama_copy']>;
send_response?: (
action_event: ActionEvent<'ollama_copy', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_copy', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ollama_create
type
{
receive_request?: (
action_event: ActionEvent<'ollama_create', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_create'] | Promise<ActionOutputs['ollama_create']>;
send_response?: (
action_event: ActionEvent<'ollama_create', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_create', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ollama_delete
type
{
receive_request?: (
action_event: ActionEvent<'ollama_delete', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_delete'] | Promise<ActionOutputs['ollama_delete']>;
send_response?: (
action_event: ActionEvent<'ollama_delete', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_delete', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ollama_list
type
{
receive_request?: (
action_event: ActionEvent<'ollama_list', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_list'] | Promise<ActionOutputs['ollama_list']>;
send_response?: (
action_event: ActionEvent<'ollama_list', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_list', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ollama_progress
type
{
send?: (
action_event: ActionEvent<'ollama_progress', Backend, 'send', 'handling'>,
) => void | Promise<void>;
}ollama_ps
type
{
receive_request?: (
action_event: ActionEvent<'ollama_ps', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_ps'] | Promise<ActionOutputs['ollama_ps']>;
send_response?: (
action_event: ActionEvent<'ollama_ps', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_ps', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ollama_pull
type
{
receive_request?: (
action_event: ActionEvent<'ollama_pull', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_pull'] | Promise<ActionOutputs['ollama_pull']>;
send_response?: (
action_event: ActionEvent<'ollama_pull', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_pull', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ollama_show
type
{
receive_request?: (
action_event: ActionEvent<'ollama_show', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_show'] | Promise<ActionOutputs['ollama_show']>;
send_response?: (
action_event: ActionEvent<'ollama_show', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_show', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ollama_unload
type
{
receive_request?: (
action_event: ActionEvent<'ollama_unload', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ollama_unload'] | Promise<ActionOutputs['ollama_unload']>;
send_response?: (
action_event: ActionEvent<'ollama_unload', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ollama_unload', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}ping
type
{
send_request?: (
action_event: ActionEvent<'ping', Backend, 'send_request', 'handling'>,
) => void | Promise<void>;
receive_response?: (
action_event: ActionEvent<'ping', Backend, 'receive_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'ping', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
receive_error?: (
action_event: ActionEvent<'ping', Backend, 'receive_error', 'handling'>,
) => void | Promise<void>;
receive_request?: (
action_event: ActionEvent<'ping', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['ping'] | Promise<ActionOutputs['ping']>;
send_response?: (
action_event: ActionEvent<'ping', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
}provider_load_status
type
{
receive_request?: (
action_event: ActionEvent<'provider_load_status', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['provider_load_status'] | Promise<ActionOutputs['provider_load_status']>;
send_response?: (
action_event: ActionEvent<'provider_load_status', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'provider_load_status', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}provider_update_api_key
type
{
receive_request?: (
action_event: ActionEvent<'provider_update_api_key', Backend, 'receive_request', 'handling'>,
) =>
| ActionOutputs['provider_update_api_key']
| Promise<ActionOutputs['provider_update_api_key']>;
send_response?: (
action_event: ActionEvent<'provider_update_api_key', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'provider_update_api_key', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}session_load
type
{
receive_request?: (
action_event: ActionEvent<'session_load', Backend, 'receive_request', 'handling'>,
) => ActionOutputs['session_load'] | Promise<ActionOutputs['session_load']>;
send_response?: (
action_event: ActionEvent<'session_load', Backend, 'send_response', 'handling'>,
) => void | Promise<void>;
send_error?: (
action_event: ActionEvent<'session_load', Backend, 'send_error', 'handling'>,
) => void | Promise<void>;
}toggle_main_menu
type
never