zerolaunch_plugin_protocol/
methods.rs1pub mod plugin {
3 pub const INITIALIZE: &str = "plugin/initialize";
5 pub const GET_COMPONENTS: &str = "plugin/get_components";
7 pub const GET_SETTINGS_SCHEMA: &str = "plugin/get_settings_schema";
9 pub const GET_SETTINGS: &str = "plugin/get_settings";
11 pub const APPLY_SETTINGS: &str = "plugin/apply_settings";
13 pub const VALIDATE_SETTINGS: &str = "plugin/validate_settings";
15 pub const CONFIG_ACTIONS: &str = "plugin/config_actions";
17 pub const EXECUTE_CONFIG_ACTION: &str = "plugin/execute_config_action";
19 pub const QUERY: &str = "plugin/query";
21 pub const MATCH_QUERY: &str = "plugin/match_query";
25 pub const EXECUTE_ACTION: &str = "plugin/execute_action";
27 pub const INIT: &str = "plugin/init";
29 pub const SHUTDOWN: &str = "plugin/shutdown";
32 pub const INTERACTION_POLICY: &str = "plugin/interaction_policy";
35 pub const GET_DEFAULT_ENABLED: &str = "plugin/get_default_enabled";
37 pub const FETCH_CANDIDATES: &str = "plugin/fetch_candidates";
39 pub const SUPPORTED_TARGET_TYPES: &str = "plugin/supported_target_types";
41 pub const SUPPORTED_ACTIONS: &str = "plugin/supported_actions";
43 pub const EXECUTOR_EXECUTE: &str = "plugin/executor_execute";
45 pub const CALCULATE_SCORES: &str = "plugin/calculate_scores";
47 pub const BOOSTER_BOOST: &str = "plugin/booster_boost";
49 pub const BOOSTER_RECORD: &str = "plugin/booster_record";
51 pub const KEYWORD_OPTIMIZER_INFO: &str = "plugin/keyword_optimizer_info";
53 pub const KEYWORD_OPTIMIZE: &str = "plugin/keyword_optimize";
55 pub const KEYWORD_INJECT: &str = "plugin/keyword_inject";
57}
58
59pub mod host {
61 pub const LOG: &str = "host/log";
63 pub const NOTIFY: &str = "host/notify";
65 pub const SHELL_OPEN: &str = "host/shell.open";
67 pub const SHELL_OPEN_FOLDER: &str = "host/shell.open_folder";
69 pub const SHELL_EXECUTE_ELEVATION: &str = "host/shell.execute_elevation";
71 pub const SHELL_EXECUTE_COMMAND: &str = "host/shell.execute_command";
73 pub const WINDOW_ACTIVATE_BY_PROCESS: &str = "host/window.activate_by_process";
75 pub const ICON_GET: &str = "host/icon.get";
77 pub const APP_ENUMERATE: &str = "host/app.enumerate";
79 pub const PATH_RESOLVE: &str = "host/path.resolve";
81 pub const RESOURCE_UPLOAD: &str = "host/resource.upload";
83 pub const RESOURCE_PUT: &str = "host/resource.put";
85 pub const RESOURCE_GET: &str = "host/resource.get";
87 pub const RESOURCE_DELETE: &str = "host/resource.delete";
89 pub const RESOURCE_LIST: &str = "host/resource.list";
91 pub const PARAMETER_RESOLVE: &str = "host/parameter.resolve";
93 pub const GET_LOCALE: &str = "host/i18n.get_locale";
95 pub const GET_THEME: &str = "host/theme.get";
97 pub const MODEL_LIST: &str = "host/model.list";
99 pub const MODEL_CHAT: &str = "host/model.chat";
101 pub const MODEL_EMBEDDING: &str = "host/model.embedding";
103 pub const MODEL_SIMILARITY: &str = "host/model.similarity";
105 pub const PLATFORM_CAPABILITIES: &str = "host/platform.capabilities";
107 pub const SDK_CONFIG_UPDATE: &str = "host/sdk_config.update";
109 pub const ICON_EXTRACT: &str = "host/icon.extract";
111 pub const ICON_REFRESH: &str = "host/icon.refresh";
113 pub const ICON_OVERRIDE_CACHE: &str = "host/icon.override_cache";
115 pub const WINDOW_ACTIVATE_BY_PID: &str = "host/window.activate_by_pid";
117 pub const WINDOW_ACTIVATE_BY_TITLE: &str = "host/window.activate_by_title";
119 pub const CLIPBOARD_SET_TEXT: &str = "host/clipboard.set_text";
121 pub const APP_LAUNCH: &str = "host/app.launch";
123 pub const APP_ICON_PATH: &str = "host/app.icon_path";
125 pub const PATH_RESOLVE_LNK: &str = "host/path.resolve_lnk";
127 pub const PATH_LOCALIZED_NAMES: &str = "host/path.localized_names";
129 pub const THEME_GET_SYSTEM: &str = "host/theme.get_system";
131 pub const PARAMETER_COUNT_USER: &str = "host/parameter.count_user";
133 pub const PARAMETER_HAS_SYSTEM: &str = "host/parameter.has_system";
135 pub const CACHE_PUT: &str = "host/cache.put";
137 pub const CACHE_GET: &str = "host/cache.get";
139 pub const CACHE_DELETE: &str = "host/cache.delete";
141 pub const CACHE_CLEANUP: &str = "host/cache.cleanup";
143 pub const TIMER_SET_TIMEOUT: &str = "host/timer.set_timeout";
145 pub const TIMER_SET_INTERVAL: &str = "host/timer.set_interval";
147 pub const TIMER_CANCEL: &str = "host/timer.cancel";
149 pub const TIMER_CANCEL_ALL: &str = "host/timer.cancel_all";
151 pub const HOTKEY_SUBSCRIBE: &str = "host/hotkey.subscribe";
153 pub const HOTKEY_UNSUBSCRIBE: &str = "host/hotkey.unsubscribe";
155 pub const INSTALLATION_SUBSCRIBE: &str = "host/installation.subscribe";
157 pub const INSTALLATION_UNSUBSCRIBE: &str = "host/installation.unsubscribe";
159 pub const FOCUS_SUBSCRIBE: &str = "host/focus.subscribe";
161 pub const FOCUS_UNSUBSCRIBE: &str = "host/focus.unsubscribe";
163}
164
165pub mod event {
170 pub const TIMER_FIRED: &str = "plugin/timer.fired";
172 pub const HOTKEY_EVENT: &str = "plugin/hotkey.event";
174 pub const INSTALLATION_EVENT: &str = "plugin/installation.event";
176 pub const FOCUS_EVENT: &str = "plugin/focus.event";
178}