chore: add enterprise feature for aibridge (#19976)

Adds enterprise feature "aibridge" and gates the aibridge CRUD and LLM API endpoints behind it.
This commit is contained in:
Dean Sheather
2025-09-27 01:13:06 +10:00
committed by GitHub
parent 65f2895c0d
commit 43415f0144
7 changed files with 86 additions and 1 deletions
+4
View File
@@ -90,6 +90,7 @@ const (
// enterprise/coderd/license/license.go for the license format.
FeatureManagedAgentLimit FeatureName = "managed_agent_limit"
FeatureWorkspaceExternalAgent FeatureName = "workspace_external_agent"
FeatureAIBridge FeatureName = "aibridge"
)
var (
@@ -117,6 +118,7 @@ var (
FeatureWorkspacePrebuilds,
FeatureManagedAgentLimit,
FeatureWorkspaceExternalAgent,
FeatureAIBridge,
}
// FeatureNamesMap is a map of all feature names for quick lookups.
@@ -136,6 +138,8 @@ func (n FeatureName) Humanize() string {
return "Template RBAC"
case FeatureSCIM:
return "SCIM"
case FeatureAIBridge:
return "AI Bridge"
default:
return strings.Title(strings.ReplaceAll(string(n), "_", " "))
}