Skip to content

Commit dcfd6d6

Browse files
authored
chore: graduate aibridge cli out of experimental (#20524)
<!-- If you have used AI to produce some or all of this PR, please ensure you have read our [AI Contribution guidelines](https://coder.com/docs/about/contributing/AI_CONTRIBUTING) before submitting. -->
1 parent b20fd6f commit dcfd6d6

12 files changed

+183
-9
lines changed

docs/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,21 @@
11801180
"path": "./reference/cli/index.md",
11811181
"icon_path": "./images/icons/terminal.svg",
11821182
"children": [
1183+
{
1184+
"title": "aibridge",
1185+
"description": "Manage AIBridge.",
1186+
"path": "reference/cli/aibridge.md"
1187+
},
1188+
{
1189+
"title": "aibridge interceptions",
1190+
"description": "Manage AIBridge interceptions.",
1191+
"path": "reference/cli/aibridge_interceptions.md"
1192+
},
1193+
{
1194+
"title": "aibridge interceptions list",
1195+
"description": "List AIBridge interceptions as JSON.",
1196+
"path": "reference/cli/aibridge_interceptions_list.md"
1197+
},
11831198
{
11841199
"title": "autoupdate",
11851200
"description": "Toggle auto-update policy for a workspace",

docs/reference/cli/aibridge.md

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/cli/aibridge_interceptions.md

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/cli/aibridge_interceptions_list.md

Lines changed: 69 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/cli/index.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ func (r *RootCmd) aibridgeInterceptionsList() *serpent.Command {
134134
return xerrors.Errorf("limit value must be between 1 and %d", maxInterceptionsLimit)
135135
}
136136

137-
expCli := codersdk.NewExperimentalClient(client)
138-
resp, err := expCli.AIBridgeListInterceptions(inv.Context(), codersdk.AIBridgeListInterceptionsFilter{
137+
resp, err := client.AIBridgeListInterceptions(inv.Context(), codersdk.AIBridgeListInterceptionsFilter{
139138
Pagination: codersdk.Pagination{
140139
AfterID: afterID,
141140
// #nosec G115 - Checked above.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ func TestAIBridgeListInterceptions(t *testing.T) {
5454
}, nil)
5555

5656
args := []string{
57-
"exp",
5857
"aibridge",
5958
"interceptions",
6059
"list",
@@ -135,7 +134,6 @@ func TestAIBridgeListInterceptions(t *testing.T) {
135134
}, nil)
136135

137136
args := []string{
138-
"exp",
139137
"aibridge",
140138
"interceptions",
141139
"list",
@@ -189,7 +187,6 @@ func TestAIBridgeListInterceptions(t *testing.T) {
189187
}, nil)
190188

191189
args := []string{
192-
"exp",
193190
"aibridge",
194191
"interceptions",
195192
"list",

enterprise/cli/root.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ func (r *RootCmd) enterpriseOnly() []*serpent.Command {
2525
r.prebuilds(),
2626
r.provisionerd(),
2727
r.externalWorkspaces(),
28+
r.aibridge(),
2829
}
2930
}
3031

31-
func (r *RootCmd) enterpriseExperimental() []*serpent.Command {
32-
return []*serpent.Command{
33-
r.aibridge(),
34-
}
32+
func (*RootCmd) enterpriseExperimental() []*serpent.Command {
33+
return []*serpent.Command{}
3534
}
3635

3736
func (r *RootCmd) EnterpriseSubcommands() []*serpent.Command {

enterprise/cli/testdata/coder_--help.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ USAGE:
1414
$ coder templates init
1515

1616
SUBCOMMANDS:
17+
aibridge Manage AIBridge.
1718
external-workspaces Create or manage external workspaces
1819
features List Enterprise features
1920
groups Manage groups
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
coder v0.0.0-devel
2+
3+
USAGE:
4+
coder aibridge
5+
6+
Manage AIBridge.
7+
8+
SUBCOMMANDS:
9+
interceptions Manage AIBridge interceptions.
10+
11+
———
12+
Run `coder --help` for a list of global options.

0 commit comments

Comments
 (0)