feat: add expanded_directory to the agent for extension support (#6087)

This will enable opening the default `dir` of an agent in
the VS Code extension!
This commit is contained in:
Kyle Carberry
2023-02-07 15:35:09 -06:00
committed by GitHub
parent f6effdb63e
commit 691495d761
25 changed files with 220 additions and 59 deletions

18
coderd/apidoc/docs.go generated
View File

@ -4104,7 +4104,7 @@ const docTemplate = `{
}
}
},
"/workspaceagents/me/version": {
"/workspaceagents/me/startup": {
"post": {
"security": [
{
@ -4120,16 +4120,16 @@ const docTemplate = `{
"tags": [
"Agents"
],
"summary": "Submit workspace agent version",
"operationId": "submit-workspace-agent-version",
"summary": "Submit workspace agent startup",
"operationId": "submit-workspace-agent-startup",
"parameters": [
{
"description": "Version request",
"description": "Startup request",
"name": "request",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/agentsdk.PostVersionRequest"
"$ref": "#/definitions/agentsdk.PostStartupRequest"
}
}
],
@ -5099,9 +5099,12 @@ const docTemplate = `{
}
}
},
"agentsdk.PostVersionRequest": {
"agentsdk.PostStartupRequest": {
"type": "object",
"properties": {
"expanded_directory": {
"type": "string"
},
"version": {
"type": "string"
}
@ -7945,6 +7948,9 @@ const docTemplate = `{
"type": "string"
}
},
"expanded_directory": {
"type": "string"
},
"first_connected_at": {
"type": "string",
"format": "date-time"