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 INTERACTION_POLICY: &str = "plugin/interaction_policy";
32 pub const GET_DEFAULT_ENABLED: &str = "plugin/get_default_enabled";
34 pub const FETCH_CANDIDATES: &str = "plugin/fetch_candidates";
36 pub const SUPPORTED_TARGET_TYPES: &str = "plugin/supported_target_types";
38 pub const SUPPORTED_ACTIONS: &str = "plugin/supported_actions";
40 pub const EXECUTOR_EXECUTE: &str = "plugin/executor_execute";
42 pub const CALCULATE_SCORES: &str = "plugin/calculate_scores";
44 pub const BOOSTER_BOOST: &str = "plugin/booster_boost";
46 pub const BOOSTER_RECORD: &str = "plugin/booster_record";
48 pub const KEYWORD_OPTIMIZER_INFO: &str = "plugin/keyword_optimizer_info";
50 pub const KEYWORD_OPTIMIZE: &str = "plugin/keyword_optimize";
52 pub const KEYWORD_INJECT: &str = "plugin/keyword_inject";
54}
55
56pub mod host {
58 pub const LOG: &str = "host/log";
60 pub const NOTIFY: &str = "host/notify";
62 pub const SHELL_OPEN: &str = "host/shell.open";
64 pub const SHELL_OPEN_FOLDER: &str = "host/shell.open_folder";
66 pub const SHELL_EXECUTE_ELEVATION: &str = "host/shell.execute_elevation";
68 pub const SHELL_EXECUTE_COMMAND: &str = "host/shell.execute_command";
70 pub const WINDOW_ACTIVATE_BY_PROCESS: &str = "host/window.activate_by_process";
72 pub const ICON_GET: &str = "host/icon.get";
74 pub const APP_ENUMERATE: &str = "host/app.enumerate";
76 pub const PATH_RESOLVE: &str = "host/path.resolve";
78 pub const RESOURCE_UPLOAD: &str = "host/resource.upload";
80 pub const RESOURCE_PUT: &str = "host/resource.put";
82 pub const RESOURCE_GET: &str = "host/resource.get";
84 pub const RESOURCE_DELETE: &str = "host/resource.delete";
86 pub const RESOURCE_LIST: &str = "host/resource.list";
88 pub const PARAMETER_RESOLVE: &str = "host/parameter.resolve";
90 pub const GET_LOCALE: &str = "host/i18n.get_locale";
92 pub const GET_THEME: &str = "host/theme.get";
94 pub const MODEL_LIST: &str = "host/model.list";
96 pub const MODEL_CHAT: &str = "host/model.chat";
98 pub const MODEL_EMBEDDING: &str = "host/model.embedding";
100 pub const MODEL_SIMILARITY: &str = "host/model.similarity";
102 pub const PLATFORM_CAPABILITIES: &str = "host/platform.capabilities";
104 pub const SDK_CONFIG_UPDATE: &str = "host/sdk_config.update";
106 pub const ICON_EXTRACT: &str = "host/icon.extract";
108 pub const ICON_REFRESH: &str = "host/icon.refresh";
110 pub const ICON_OVERRIDE_CACHE: &str = "host/icon.override_cache";
112 pub const WINDOW_ACTIVATE_BY_PID: &str = "host/window.activate_by_pid";
114 pub const WINDOW_ACTIVATE_BY_TITLE: &str = "host/window.activate_by_title";
116 pub const CLIPBOARD_SET_TEXT: &str = "host/clipboard.set_text";
118 pub const APP_LAUNCH: &str = "host/app.launch";
120 pub const APP_ICON_PATH: &str = "host/app.icon_path";
122 pub const PATH_RESOLVE_LNK: &str = "host/path.resolve_lnk";
124 pub const PATH_LOCALIZED_NAMES: &str = "host/path.localized_names";
126 pub const THEME_GET_SYSTEM: &str = "host/theme.get_system";
128 pub const PARAMETER_COUNT_USER: &str = "host/parameter.count_user";
130 pub const PARAMETER_HAS_SYSTEM: &str = "host/parameter.has_system";
132 pub const CACHE_PUT: &str = "host/cache.put";
134 pub const CACHE_GET: &str = "host/cache.get";
136 pub const CACHE_DELETE: &str = "host/cache.delete";
138 pub const CACHE_CLEANUP: &str = "host/cache.cleanup";
140 pub const TIMER_SET_TIMEOUT: &str = "host/timer.set_timeout";
142 pub const TIMER_SET_INTERVAL: &str = "host/timer.set_interval";
144 pub const TIMER_CANCEL: &str = "host/timer.cancel";
146 pub const TIMER_CANCEL_ALL: &str = "host/timer.cancel_all";
148 pub const HOTKEY_SUBSCRIBE: &str = "host/hotkey.subscribe";
150 pub const HOTKEY_UNSUBSCRIBE: &str = "host/hotkey.unsubscribe";
152 pub const INSTALLATION_SUBSCRIBE: &str = "host/installation.subscribe";
154 pub const INSTALLATION_UNSUBSCRIBE: &str = "host/installation.unsubscribe";
156 pub const FOCUS_SUBSCRIBE: &str = "host/focus.subscribe";
158 pub const FOCUS_UNSUBSCRIBE: &str = "host/focus.unsubscribe";
160}
161
162pub mod event {
167 pub const TIMER_FIRED: &str = "plugin/timer.fired";
169 pub const HOTKEY_EVENT: &str = "plugin/hotkey.event";
171 pub const INSTALLATION_EVENT: &str = "plugin/installation.event";
173 pub const FOCUS_EVENT: &str = "plugin/focus.event";
175}
176
177pub mod notify {
179 pub const PLUGIN_READY: &str = "plugin/ready";
181 pub const PLUGIN_CRASHED: &str = "plugin/crashed";
183}