Skip to content

Commit 9432bc6

Browse files
committed
Publish thv llm commands and regenerate CLI reference docs
Remove Hidden: true from the thv llm command group and thv llm token subcommand, making them visible in help output and CLI reference. Update the command description to reflect that both proxy and token-helper modes are now supported (not planned). Regenerate docs/cli/ to include the full thv llm subcommand tree.
1 parent 9cc163a commit 9432bc6

13 files changed

Lines changed: 462 additions & 10 deletions

cmd/thv-operator/controllers/mcpserver_resource_overrides_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,8 @@ func TestDeploymentForMCPServer_PodTemplateOverridesPreserveRunConfigChecksum(t
647647
},
648648
}
649649

650-
deployment := r.deploymentForMCPServer(t.Context(), mcpServer, "C1")
650+
deployment, err := r.deploymentForMCPServer(t.Context(), mcpServer, "C1")
651+
require.NoError(t, err)
651652
require.NotNil(t, deployment)
652653

653654
assert.Equal(t, "C1",
@@ -688,7 +689,8 @@ func TestDeploymentNeedsUpdate_StableAfterBuildWithPodTemplateOverrides(t *testi
688689
}
689690

690691
const runConfigChecksum = "stable-checksum"
691-
built := r.deploymentForMCPServer(t.Context(), mcpServer, runConfigChecksum)
692+
built, err := r.deploymentForMCPServer(t.Context(), mcpServer, runConfigChecksum)
693+
require.NoError(t, err)
692694
require.NotNil(t, built)
693695

694696
// Constructor and comparator must agree on the same input — otherwise the

cmd/thv/app/llm.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ import (
2424

2525
func newLLMCommand() *cobra.Command {
2626
cmd := &cobra.Command{
27-
Use: "llm",
28-
Hidden: true,
29-
Short: "Manage LLM gateway authentication",
27+
Use: "llm",
28+
Short: "Manage LLM gateway authentication",
3029
Long: `Configure and manage authentication for OIDC-protected LLM gateways.
3130
3231
The llm command bridges AI coding tools to LLM gateways by handling OIDC
33-
authentication transparently. Two modes are planned:
32+
authentication transparently. Two modes are supported:
3433
3534
Proxy mode — a localhost reverse proxy injects fresh tokens for tools
3635
that only accept static API keys (e.g. Cursor).
@@ -476,13 +475,12 @@ func runLLMProxyForeground(ctx context.Context, llmCfg *llm.Config) error {
476475
return p.Start(ctx)
477476
}
478477

479-
// ── token helper (hidden) ─────────────────────────────────────────────────────
478+
// ── token helper ──────────────────────────────────────────────────────────────
480479

481480
func newLLMTokenCommand() *cobra.Command {
482481
cmd := &cobra.Command{
483-
Use: "token",
484-
Hidden: true,
485-
Short: "Print a fresh LLM gateway access token to stdout",
482+
Use: "token",
483+
Short: "Print a fresh LLM gateway access token to stdout",
486484
Long: `Print a fresh OIDC access token to stdout (all other output on stderr).
487485
Intended for use as apiKeyHelper or auth.command in OIDC-capable AI tools.
488486
Runs non-interactively — will not launch a browser flow.`,

docs/cli/thv.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.

docs/cli/thv_llm.md

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

docs/cli/thv_llm_config.md

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

docs/cli/thv_llm_config_reset.md

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

docs/cli/thv_llm_config_set.md

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

docs/cli/thv_llm_config_show.md

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

docs/cli/thv_llm_proxy.md

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

docs/cli/thv_llm_proxy_start.md

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

0 commit comments

Comments
 (0)