feat(hyperguild): tier subcommand

Adds the tier subcommand to the hyperguild CLI. Reuses
internal/tier.Detect verbatim, sources probe URLs from
ANTHROPIC_PROBE_URL (default https://api.anthropic.com) and
LITELLM_BASE_URL (no default — empty triggers airplane).

Human-readable output by default; --json emits the same Info struct
as the supervisor's tier MCP returns. Tests cover all three tier
states via httptest fakes.
This commit is contained in:
2026-05-03 21:27:33 +02:00
parent 5c88eff46f
commit 3c4e8e8bb8
4 changed files with 122 additions and 3 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ func notYet(ctx context.Context, args []string, stdin io.Reader, stdout, stderr
func subcommands() map[string]subcommand {
return map[string]subcommand{
"tier": notYet,
"tier": runTier,
"brain": notYet,
"mode": notYet,
}