Skip to content

Open-source, local-first AI agent for real work.

6.0 KB
Raw Blame
export const PLUGIN_MANAGEMENT_CHANNELS = {
	LIST: "vetta:plugins:list",
	LIST_ALL: "vetta:plugins:list-all",
	INSTALL_FROM_ARCHIVE: "vetta:plugins:install-from-archive",
	INSTALL_FROM_URL: "vetta:plugins:install-from-url",
	INSTALL_FROM_PATH: "vetta:plugins:install-from-path",
	REGISTER_MODE_GATE: "vetta:plugins:register-mode-gate",
	SET_CONTRIBUTION_MODE: "vetta:plugins:set-contribution-mode",
	UNINSTALL: "vetta:plugins:uninstall",
	SET_ENABLED: "vetta:plugins:set-enabled",
	GRANT_PERMISSIONS: "vetta:plugins:grant-permissions",
	REVOKE_PERMISSIONS: "vetta:plugins:revoke-permissions",
	GRANT_COMMANDS: "vetta:plugins:grant-commands",
	REVOKE_COMMANDS: "vetta:plugins:revoke-commands",
	APPLY_SETUP: "vetta:plugins:apply-setup",
	RELOAD: "vetta:plugins:reload",
	DEV_WATCH_START: "vetta:plugins:dev-watch-start",
	DEV_WATCH_STOP: "vetta:plugins:dev-watch-stop",
} as const;

export const PLUGIN_EXECUTION_CHANNELS = {
	COMMAND_RUN: "vetta:plugins:command-run",
	APP_ICON: "vetta:plugins:app-icon",
	COMMAND_SPAWN: "vetta:plugins:command-spawn",
	COMMAND_SPAWN_STOP: "vetta:plugins:command-spawn-stop",
	COMMAND_SPAWN_STATUS: "vetta:plugins:command-spawn-status",
	COMMAND_SPAWN_EXIT: "vetta:plugins:command-spawn-exit",
	CLI_PROVIDER_STATUS_GET: "vetta:plugins:cli-provider:status-get",
	CLI_PROVIDER_STATUS: "vetta:plugins:cli-provider:status",
	CLI_PROVIDER_RETRY: "vetta:plugins:cli-provider:retry",
	CLI_PROVIDER_RUN: "vetta:plugins:cli-provider:run",
	CLI_PROVIDER_SPAWN: "vetta:plugins:cli-provider:spawn",
	CLI_PROVIDER_SPAWN_STOP: "vetta:plugins:cli-provider:spawn-stop",
	CLI_PROVIDER_SPAWN_STATUS: "vetta:plugins:cli-provider:spawn-status",
	CLI_PROVIDER_SPAWN_EXIT: "vetta:plugins:cli-provider:spawn-exit",
	SERVICE_STATUS_GET: "vetta:plugins:service:status-get",
	SERVICE_STATUS: "vetta:plugins:service:status",
	SERVICE_PLATFORM_GET: "vetta:plugins:service:platform-get",
	SERVICE_INSTALL: "vetta:plugins:service:install",
	SERVICE_START: "vetta:plugins:service:start",
	SERVICE_STOP: "vetta:plugins:service:stop",
	SERVICE_RESTART: "vetta:plugins:service:restart",
	SERVICE_CONNECTION: "vetta:plugins:service:connection",
	SERVICE_REQUEST: "vetta:plugins:service:request",
	SERVICE_DATA_READ: "vetta:plugins:service:data-read",
	SERVICE_DATA_WRITE: "vetta:plugins:service:data-write",
	SERVICE_READY_REPORT: "vetta:plugins:service:ready-report",
	OFFSCREEN_CAPTURE: "vetta:plugins:offscreen-capture",
	OFFSCREEN_RELEASE: "vetta:plugins:offscreen-release",
	NETWORK_REQUEST: "vetta:plugins:network:request",
	GATEWAY_REQUEST: "vetta:plugins:gateway:request",
	STORAGE_LIST: "vetta:plugins:storage:list",
	STORAGE_READ_FILE: "vetta:plugins:storage:read-file",
	STORAGE_READ_SNAPSHOT: "vetta:plugins:storage:read-snapshot",
	STORAGE_COMMIT: "vetta:plugins:storage:commit",
	STORAGE_PUT_BLOB: "vetta:plugins:storage:put-blob",
	STORAGE_PUT_BLOB_FROM_FILE: "vetta:plugins:storage:put-blob-from-file",
	STORAGE_READ_BLOB: "vetta:plugins:storage:read-blob",
	STORAGE_GET_BLOB_REF: "vetta:plugins:storage:get-blob-ref",
	STORAGE_DELETE_BLOB: "vetta:plugins:storage:delete-blob",
	SECRETS_GET: "vetta:plugins:secrets:get",
	SECRETS_HAS: "vetta:plugins:secrets:has",
	SECRETS_KEYS: "vetta:plugins:secrets:keys",
	SECRETS_SET: "vetta:plugins:secrets:set",
	SECRETS_DELETE: "vetta:plugins:secrets:delete",
	SECRETS_CHANGED: "vetta:plugins:secrets:changed",
} as const;

export const PLUGIN_CONTRIBUTION_CHANNELS = {
	HOST_READY: "vetta:plugins:agent-contribution-host-ready",
	BEGIN_LOAD: "vetta:plugins:agent-contributions-begin-load",
	COMMIT_LOAD: "vetta:plugins:agent-contributions-commit-load",
	TOOL_REGISTER: "vetta:plugins:agent-tool-register",
	TOOL_UNREGISTER: "vetta:plugins:agent-tool-unregister",
	TOOL_REQUEST: "vetta:plugins:agent-tool-request",
	TOOL_RESPONSE: "vetta:plugins:agent-tool-response",
	HOOK_REGISTER: "vetta:plugins:agent-hook-register",
	HOOK_UNREGISTER: "vetta:plugins:agent-hook-unregister",
	HOOK_REQUEST: "vetta:plugins:agent-hook-request",
	HOOK_RESPONSE: "vetta:plugins:agent-hook-response",
	HANDLER_RELEASE: "vetta:plugins:agent-handler-release",
	CLEAR: "vetta:plugins:agent-contributions-clear",
	APP_ACTION_REGISTER: "vetta:plugins:app-action-register",
	APP_ACTION_COMMIT: "vetta:plugins:app-action-activation-commit",
	APP_ACTION_ABORT: "vetta:plugins:app-action-activation-abort",
	APP_ACTION_UNREGISTER: "vetta:plugins:app-action-unregister",
	APP_ACTION_REQUEST: "vetta:plugins:app-action-request",
	APP_ACTION_CANCEL: "vetta:plugins:app-action-cancel",
	APP_ACTION_RESPONSE: "vetta:plugins:app-action-response",
	CONTINUATION_REGISTER: "vetta:plugins:continuation-register",
	CONTINUATION_UNREGISTER: "vetta:plugins:continuation-unregister",
	CONTINUATION_REQUEST: "vetta:plugins:continuation-request",
	CONTINUATION_RESPONSE: "vetta:plugins:continuation-response",
	SYSTEM_PROMPT_REGISTER: "vetta:plugins:system-prompt-provider-register",
	SYSTEM_PROMPT_UNREGISTER: "vetta:plugins:system-prompt-provider-unregister",
	SYSTEM_PROMPT_REQUEST: "vetta:plugins:system-prompt-request",
	SYSTEM_PROMPT_RESPONSE: "vetta:plugins:system-prompt-response",
	PLUGINS_CHANGED: "vetta:plugins:changed",
} as const;

export const PLUGIN_MEDIA_CHANNELS = {
	REGISTER: "vetta:plugins:media-provider-register",
	UNREGISTER: "vetta:plugins:media-provider-unregister",
	REQUEST: "vetta:plugins:media-provider-request",
	CHANGED: "vetta:plugins:media-providers-changed",
	RESPONSE: "vetta:plugins:media-provider-response",
	UPLOAD_INPUT: "vetta:plugins:media-provider-input-upload",
	READ_INPUT: "vetta:plugins:media-provider-input-read",
} as const;

export const PLUGIN_OCR_CHANNELS = {
	REGISTER: "vetta:plugins:ocr-provider-register",
	UNREGISTER: "vetta:plugins:ocr-provider-unregister",
	REQUEST: "vetta:plugins:ocr-provider-request",
	RESPONSE: "vetta:plugins:ocr-provider-response",
	CANCEL: "vetta:plugins:ocr-provider-cancel",
	PROGRESS: "vetta:plugins:ocr-provider-progress",
	GET_INPUT_URL: "vetta:plugins:ocr-provider-input-url",
	UPLOAD_INPUT: "vetta:plugins:ocr-provider-input-upload",
	CHANGED: "vetta:plugins:ocr-providers-changed",
} as const;