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 EXECUTE_ACTION: &str = "plugin/execute_action";
23 pub const INIT: &str = "plugin/init";
25 pub const INTERACTION_POLICY: &str = "plugin/interaction_policy";
28 pub const GET_DEFAULT_ENABLED: &str = "plugin/get_default_enabled";
30 pub const FETCH_CANDIDATES: &str = "plugin/fetch_candidates";
32 pub const SUPPORTED_TARGET_TYPES: &str = "plugin/supported_target_types";
34 pub const SUPPORTED_ACTIONS: &str = "plugin/supported_actions";
36 pub const EXECUTOR_EXECUTE: &str = "plugin/executor_execute";
38 pub const CALCULATE_SCORES: &str = "plugin/calculate_scores";
40 pub const BOOSTER_BOOST: &str = "plugin/booster_boost";
42 pub const BOOSTER_RECORD: &str = "plugin/booster_record";
44 pub const KEYWORD_OPTIMIZER_INFO: &str = "plugin/keyword_optimizer_info";
46 pub const KEYWORD_OPTIMIZE: &str = "plugin/keyword_optimize";
48 pub const KEYWORD_INJECT: &str = "plugin/keyword_inject";
50}
51
52pub mod host {
54 pub const LOG: &str = "host/log";
56 pub const NOTIFY: &str = "host/notify";
58 pub const SHELL_OPEN: &str = "host/shell.open";
60 pub const SHELL_OPEN_FOLDER: &str = "host/shell.open_folder";
62 pub const SHELL_EXECUTE_ELEVATION: &str = "host/shell.execute_elevation";
64 pub const SHELL_EXECUTE_COMMAND: &str = "host/shell.execute_command";
66 pub const WINDOW_ACTIVATE_BY_PROCESS: &str = "host/window.activate_by_process";
68 pub const ICON_GET: &str = "host/icon.get";
70 pub const APP_ENUMERATE: &str = "host/app.enumerate";
72 pub const PATH_RESOLVE: &str = "host/path.resolve";
74 pub const RESOURCE_UPLOAD: &str = "host/resource.upload";
76 pub const RESOURCE_PUT: &str = "host/resource.put";
78 pub const RESOURCE_GET: &str = "host/resource.get";
80 pub const RESOURCE_DELETE: &str = "host/resource.delete";
82 pub const RESOURCE_LIST: &str = "host/resource.list";
84 pub const PARAMETER_RESOLVE: &str = "host/parameter.resolve";
86 pub const GET_LOCALE: &str = "host/i18n.get_locale";
88 pub const GET_THEME: &str = "host/theme.get";
90 pub const MODEL_LIST: &str = "host/model.list";
92 pub const MODEL_CHAT: &str = "host/model.chat";
94 pub const MODEL_EMBEDDING: &str = "host/model.embedding";
96 pub const MODEL_SIMILARITY: &str = "host/model.similarity";
98}
99
100pub mod notify {
102 pub const PLUGIN_READY: &str = "plugin/ready";
104 pub const PLUGIN_CRASHED: &str = "plugin/crashed";
106}