- Notifications
You must be signed in to change notification settings - Fork1.1k
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 from26 commits
765c2cf4019358452dbc96a23998ee3ed36fc1a90a88ce78fb1431a32c2bf2818e1593df28ff99f69f69ecfe48371c61b62e1c31f7e41c1579e18448ce0aecd3bda05d4f208b7e5ede07a3674ac0607b1e1ea4bff150bad2b22ee24b9d218e021c8d0c44de8File 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.