mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: allow multiple agent subsystems, add exectrace (#8933)
This commit is contained in:
Generated
+7
-3
@@ -1340,7 +1340,7 @@ export interface WorkspaceAgent {
|
||||
readonly login_before_ready: boolean
|
||||
readonly shutdown_script?: string
|
||||
readonly shutdown_script_timeout_seconds: number
|
||||
readonly subsystem: AgentSubsystem
|
||||
readonly subsystems: AgentSubsystem[]
|
||||
readonly health: WorkspaceAgentHealth
|
||||
}
|
||||
|
||||
@@ -1545,8 +1545,12 @@ export type APIKeyScope = "all" | "application_connect"
|
||||
export const APIKeyScopes: APIKeyScope[] = ["all", "application_connect"]
|
||||
|
||||
// From codersdk/workspaceagents.go
|
||||
export type AgentSubsystem = "envbox"
|
||||
export const AgentSubsystems: AgentSubsystem[] = ["envbox"]
|
||||
export type AgentSubsystem = "envbox" | "envbuilder" | "exectrace"
|
||||
export const AgentSubsystems: AgentSubsystem[] = [
|
||||
"envbox",
|
||||
"envbuilder",
|
||||
"exectrace",
|
||||
]
|
||||
|
||||
// From codersdk/audit.go
|
||||
export type AuditAction =
|
||||
|
||||
@@ -563,7 +563,7 @@ export const MockWorkspaceAgent: TypesGen.WorkspaceAgent = {
|
||||
logs_overflowed: false,
|
||||
startup_script_timeout_seconds: 120,
|
||||
shutdown_script_timeout_seconds: 120,
|
||||
subsystem: "envbox",
|
||||
subsystems: ["envbox", "exectrace"],
|
||||
health: {
|
||||
healthy: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user