feat(codersdk): add nats pubsub experiment

This commit is contained in:
Jon Ayers
2026-05-26 19:41:14 +00:00
parent 8ce888ce2c
commit 647cb92d0e
5 changed files with 23 additions and 9 deletions
+7 -3
View File
@@ -19093,12 +19093,14 @@ const docTemplate = `{
"workspace-usage",
"oauth2",
"mcp-server-http",
"workspace-build-updates"
"workspace-build-updates",
"nats_pubsub"
],
"x-enum-comments": {
"ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.",
"ExperimentExample": "This isn't used for anything.",
"ExperimentMCPServerHTTP": "Enables the MCP HTTP server functionality.",
"ExperimentNATSPubsub": "Enables embedded NATS pubsub.",
"ExperimentNotifications": "Sends notifications via SMTP and webhooks following certain events.",
"ExperimentOAuth2": "Enables OAuth2 provider functionality.",
"ExperimentWorkspaceBuildUpdates": "Enables publishing workspace build updates to the all builds pubsub channel.",
@@ -19111,7 +19113,8 @@ const docTemplate = `{
"Enables the new workspace usage tracking.",
"Enables OAuth2 provider functionality.",
"Enables the MCP HTTP server functionality.",
"Enables publishing workspace build updates to the all builds pubsub channel."
"Enables publishing workspace build updates to the all builds pubsub channel.",
"Enables embedded NATS pubsub."
],
"x-enum-varnames": [
"ExperimentExample",
@@ -19120,7 +19123,8 @@ const docTemplate = `{
"ExperimentWorkspaceUsage",
"ExperimentOAuth2",
"ExperimentMCPServerHTTP",
"ExperimentWorkspaceBuildUpdates"
"ExperimentWorkspaceBuildUpdates",
"ExperimentNATSPubsub"
]
},
"codersdk.ExternalAPIKeyScopes": {
+7 -3
View File
@@ -17345,12 +17345,14 @@
"workspace-usage",
"oauth2",
"mcp-server-http",
"workspace-build-updates"
"workspace-build-updates",
"nats_pubsub"
],
"x-enum-comments": {
"ExperimentAutoFillParameters": "This should not be taken out of experiments until we have redesigned the feature.",
"ExperimentExample": "This isn't used for anything.",
"ExperimentMCPServerHTTP": "Enables the MCP HTTP server functionality.",
"ExperimentNATSPubsub": "Enables embedded NATS pubsub.",
"ExperimentNotifications": "Sends notifications via SMTP and webhooks following certain events.",
"ExperimentOAuth2": "Enables OAuth2 provider functionality.",
"ExperimentWorkspaceBuildUpdates": "Enables publishing workspace build updates to the all builds pubsub channel.",
@@ -17363,7 +17365,8 @@
"Enables the new workspace usage tracking.",
"Enables OAuth2 provider functionality.",
"Enables the MCP HTTP server functionality.",
"Enables publishing workspace build updates to the all builds pubsub channel."
"Enables publishing workspace build updates to the all builds pubsub channel.",
"Enables embedded NATS pubsub."
],
"x-enum-varnames": [
"ExperimentExample",
@@ -17372,7 +17375,8 @@
"ExperimentWorkspaceUsage",
"ExperimentOAuth2",
"ExperimentMCPServerHTTP",
"ExperimentWorkspaceBuildUpdates"
"ExperimentWorkspaceBuildUpdates",
"ExperimentNATSPubsub"
]
},
"codersdk.ExternalAPIKeyScopes": {
+4
View File
@@ -5004,6 +5004,7 @@ const (
ExperimentOAuth2 Experiment = "oauth2" // Enables OAuth2 provider functionality.
ExperimentMCPServerHTTP Experiment = "mcp-server-http" // Enables the MCP HTTP server functionality.
ExperimentWorkspaceBuildUpdates Experiment = "workspace-build-updates" // Enables publishing workspace build updates to the all builds pubsub channel.
ExperimentNATSPubsub Experiment = "nats_pubsub" // Enables embedded NATS pubsub.
)
func (e Experiment) DisplayName() string {
@@ -5022,6 +5023,8 @@ func (e Experiment) DisplayName() string {
return "MCP HTTP Server Functionality"
case ExperimentWorkspaceBuildUpdates:
return "Workspace Build Updates Channel"
case ExperimentNATSPubsub:
return "NATS Pubsub"
default:
// Split on hyphen and convert to title case
// e.g. "mcp-server-http" -> "Mcp Server Http"
@@ -5038,6 +5041,7 @@ var ExperimentsKnown = Experiments{
ExperimentWorkspaceUsage,
ExperimentOAuth2,
ExperimentMCPServerHTTP,
ExperimentNATSPubsub,
ExperimentWorkspaceBuildUpdates,
}
+3 -3
View File
@@ -7161,9 +7161,9 @@ CreateWorkspaceRequest provides options for creating a new workspace. Only one o
#### Enumerated Values
| Value(s) |
|-------------------------------------------------------------------------------------------------------------------------------|
| `auto-fill-parameters`, `example`, `mcp-server-http`, `notifications`, `oauth2`, `workspace-build-updates`, `workspace-usage` |
| Value(s) |
|----------------------------------------------------------------------------------------------------------------------------------------------|
| `auto-fill-parameters`, `example`, `mcp-server-http`, `nats_pubsub`, `notifications`, `oauth2`, `workspace-build-updates`, `workspace-usage` |
## codersdk.ExternalAPIKeyScopes
+2
View File
@@ -4349,6 +4349,7 @@ export type Experiment =
| "auto-fill-parameters"
| "example"
| "mcp-server-http"
| "nats_pubsub"
| "notifications"
| "oauth2"
| "workspace-build-updates"
@@ -4358,6 +4359,7 @@ export const Experiments: Experiment[] = [
"auto-fill-parameters",
"example",
"mcp-server-http",
"nats_pubsub",
"notifications",
"oauth2",
"workspace-build-updates",