zerolaunch_plugin_protocol/
methods.rs1pub mod plugin {
3 pub const INITIALIZE: &str = "plugin/initialize";
5 pub const GET_METADATA: &str = "plugin/get_metadata";
7 pub const GET_COMPONENTS: &str = "plugin/get_components";
9 pub const GET_SETTINGS_SCHEMA: &str = "plugin/get_settings_schema";
11 pub const GET_SETTINGS: &str = "plugin/get_settings";
13 pub const APPLY_SETTINGS: &str = "plugin/apply_settings";
15 pub const VALIDATE_SETTINGS: &str = "plugin/validate_settings";
17 pub const CONFIG_ACTIONS: &str = "plugin/config_actions";
19 pub const EXECUTE_CONFIG_ACTION: &str = "plugin/execute_config_action";
21 pub const QUERY: &str = "plugin/query";
23 pub const EXECUTE_ACTION: &str = "plugin/execute_action";
25 pub const INIT: &str = "plugin/init";
27 pub const INTERACTION_POLICY: &str = "plugin/interaction_policy";
30 pub const GET_DEFAULT_ENABLED: &str = "plugin/get_default_enabled";
32 pub const FETCH_CANDIDATES: &str = "plugin/fetch_candidates";
34 pub const SUPPORTED_TARGET_TYPES: &str = "plugin/supported_target_types";
36 pub const SUPPORTED_ACTIONS: &str = "plugin/supported_actions";
38 pub const EXECUTOR_EXECUTE: &str = "plugin/executor_execute";
40 pub const CALCULATE_SCORES: &str = "plugin/calculate_scores";
42 pub const BOOSTER_BOOST: &str = "plugin/booster_boost";
44 pub const BOOSTER_RECORD: &str = "plugin/booster_record";
46 pub const KEYWORD_OPTIMIZER_INFO: &str = "plugin/keyword_optimizer_info";
48 pub const KEYWORD_OPTIMIZE: &str = "plugin/keyword_optimize";
50 pub const KEYWORD_INJECT: &str = "plugin/keyword_inject";
52}
53
54pub mod host {
56 pub const LOG: &str = "host/log";
58 pub const NOTIFY: &str = "host/notify";
60 pub const SHELL_OPEN: &str = "host/shell.open";
62 pub const SHELL_OPEN_FOLDER: &str = "host/shell.open_folder";
64 pub const SHELL_EXECUTE_ELEVATION: &str = "host/shell.execute_elevation";
66 pub const SHELL_EXECUTE_COMMAND: &str = "host/shell.execute_command";
68 pub const WINDOW_ACTIVATE_BY_PROCESS: &str = "host/window.activate_by_process";
70 pub const ICON_GET: &str = "host/icon.get";
72 pub const APP_ENUMERATE: &str = "host/app.enumerate";
74 pub const PATH_RESOLVE: &str = "host/path.resolve";
76 pub const RESOURCE_UPLOAD: &str = "host/resource.upload";
78 pub const RESOURCE_PUT: &str = "host/resource.put";
80 pub const RESOURCE_GET: &str = "host/resource.get";
82 pub const RESOURCE_DELETE: &str = "host/resource.delete";
84 pub const RESOURCE_LIST: &str = "host/resource.list";
86 pub const PARAMETER_RESOLVE: &str = "host/parameter.resolve";
88 pub const GET_LOCALE: &str = "host/i18n.get_locale";
90 pub const GET_THEME: &str = "host/theme.get";
92 pub const MODEL_LIST: &str = "host/model.list";
94 pub const MODEL_CHAT: &str = "host/model.chat";
96 pub const MODEL_EMBEDDING: &str = "host/model.embedding";
98 pub const MODEL_SIMILARITY: &str = "host/model.similarity";
100}
101
102pub mod notify {
104 pub const PLUGIN_READY: &str = "plugin/ready";
106 pub const PLUGIN_CRASHED: &str = "plugin/crashed";
108}