mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat(coderd/agentapi): allow inserting apps for sub agents (#18129)
Allow creating workspace apps for a sub agent when the agent is being created with `CreateSubAgent` in the agent api.
This commit is contained in:
+780
-281
File diff suppressed because it is too large
Load Diff
@@ -388,10 +388,52 @@ message CreateSubAgentRequest {
|
||||
string directory = 2;
|
||||
string architecture = 3;
|
||||
string operating_system = 4;
|
||||
|
||||
message App {
|
||||
message Healthcheck {
|
||||
int32 interval = 1;
|
||||
int32 threshold = 2;
|
||||
string url = 3;
|
||||
}
|
||||
|
||||
enum OpenIn {
|
||||
SLIM_WINDOW = 0;
|
||||
TAB = 1;
|
||||
}
|
||||
|
||||
enum Share {
|
||||
OWNER = 0;
|
||||
AUTHENTICATED = 1;
|
||||
PUBLIC = 2;
|
||||
}
|
||||
|
||||
string slug = 1;
|
||||
optional string command = 2;
|
||||
optional string display_name = 3;
|
||||
optional bool external = 4;
|
||||
optional string group = 5;
|
||||
optional Healthcheck healthcheck = 6;
|
||||
optional bool hidden = 7;
|
||||
optional string icon = 8;
|
||||
optional OpenIn open_in = 9;
|
||||
optional int32 order = 10;
|
||||
optional Share share = 11;
|
||||
optional bool subdomain = 12;
|
||||
optional string url = 13;
|
||||
}
|
||||
|
||||
repeated App apps = 5;
|
||||
}
|
||||
|
||||
message CreateSubAgentResponse {
|
||||
message AppCreationError {
|
||||
int32 index = 1;
|
||||
optional string field = 2;
|
||||
string error = 3;
|
||||
}
|
||||
|
||||
SubAgent agent = 1;
|
||||
repeated AppCreationError app_creation_errors = 2;
|
||||
}
|
||||
|
||||
message DeleteSubAgentRequest {
|
||||
|
||||
Reference in New Issue
Block a user