- Notifications
You must be signed in to change notification settings - Fork928
feat: support devcontainer agents in ui and unify backend#18332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
765c2cf
4019358
452dbc9
6a23998
ee3ed36
fc1a90a
88ce78f
b1431a3
2c2bf28
18e1593
df28ff9
9f69f69
ecfe483
71c61b6
2e1c31f
7e41c15
79e1844
8ce0aec
d3bda05
d4f208b
7e5ede0
7a3674a
c0607b1
e1ea4bf
f150bad
2b22ee2
4b9d218
e021c8d
0c44de8
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Uh oh!
There was an error while loading.Please reload this page.
Large diffs are not rendered by default.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -393,12 +393,6 @@ func (c *Client) WorkspaceAgentListeningPorts(ctx context.Context, agentID uuid. | ||
return listeningPorts, json.NewDecoder(res.Body).Decode(&listeningPorts) | ||
} | ||
// WorkspaceAgentDevcontainerStatus is the status of a devcontainer. | ||
type WorkspaceAgentDevcontainerStatus string | ||
@@ -422,6 +416,15 @@ type WorkspaceAgentDevcontainer struct { | ||
Status WorkspaceAgentDevcontainerStatus `json:"status"` | ||
Dirty bool `json:"dirty"` | ||
Container *WorkspaceAgentContainer `json:"container,omitempty"` | ||
Agent *WorkspaceAgentDevcontainerAgent `json:"agent,omitempty"` | ||
} | ||
// WorkspaceAgentDevcontainerAgent represents the sub agent for a | ||
// devcontainer. | ||
type WorkspaceAgentDevcontainerAgent struct { | ||
ID uuid.UUID `json:"id" format:"uuid"` | ||
Name string `json:"name"` | ||
Directory string `json:"directory"` | ||
} | ||
// WorkspaceAgentContainer describes a devcontainer of some sort | ||
@@ -450,14 +453,6 @@ type WorkspaceAgentContainer struct { | ||
// Volumes is a map of "things" mounted into the container. Again, this | ||
// is somewhat implementation-dependent. | ||
Volumes map[string]string `json:"volumes"` | ||
mafredri marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
} | ||
func (c *WorkspaceAgentContainer) Match(idOrName string) bool { | ||
@@ -486,6 +481,8 @@ type WorkspaceAgentContainerPort struct { | ||
// WorkspaceAgentListContainersResponse is the response to the list containers | ||
// request. | ||
type WorkspaceAgentListContainersResponse struct { | ||
// Devcontainers is a list of devcontainers visible to the workspace agent. | ||
Devcontainers []WorkspaceAgentDevcontainer `json:"devcontainers"` | ||
johnstcn marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
// Containers is a list of containers visible to the workspace agent. | ||
Containers []WorkspaceAgentContainer `json:"containers"` | ||
// Warnings is a list of warnings that may have occurred during the | ||
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.