implement plugin command execution

- change .proto file for plugins
- add global usage guide for all commands
- handle commands not included in the built-in set
This commit is contained in:
2026-05-10 23:00:33 +03:00
parent 21564dda30
commit b3239823d0
9 changed files with 431 additions and 40 deletions
+8 -3
View File
@@ -18,6 +18,7 @@ message PluginCommandListRequest {}
message PluginExecuteRequest {
string command_id = 1;
string issuer_id = 2;
repeated string arg_vector = 5;
}
@@ -26,7 +27,7 @@ message Response {
oneof res {
PluginInitializeResponse initialize_res = 10;
PluginCommandListResponse command_list_res = 11;
PluginExecuteResponse execute_res = 12;
CommandReply cmd_reply = 12;
}
}
@@ -48,6 +49,10 @@ message CommandSpec {
string description = 4;
}
message PluginExecuteResponse {
message CommandReply {
bool edit = 1;
oneof reply {
string text = 2;
bool end = 8;
}
}