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:
Danielle Maywood
2025-06-05 11:57:02 +01:00
committed by GitHub
parent 277c2c7ea7
commit b5fd3dd855
5 changed files with 1617 additions and 293 deletions
+780 -281
View File
File diff suppressed because it is too large Load Diff
+42
View File
@@ -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 {