mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
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:
18
coderd/apidoc/docs.go
generated
18
coderd/apidoc/docs.go
generated
@ -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"
|
||||
|
Reference in New Issue
Block a user