Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions tests/contract/cli_contract_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -707,23 +707,11 @@ func TestGenerateIntentCommand(t *testing.T) {

// Root help shows the declared tier-1 sections and line-up
root := runCLI(t, t.TempDir(), nil, "--help")
for _, want := range []string{"Create:", "Understand:", "Manage:", "Advanced:", "generate", "image", "tts", "tokens", "docs"} {
for _, want := range []string{"Create:", "Understand:", "Manage:", "Advanced:", "generate", "image", "tts"} {
if !strings.Contains(root.stdout, want) {
t.Errorf("root help missing declared surface %q:\n%s", want, root.stdout)
}
}

// Planned placeholders still in the tree fail with the declared note.
// ("docs" and "tokens" remain planned; tts/analyze/transcribe are claimed
// by the custom porcelain — covered in porcelain_test.go; embed and batch
// are cut from this interactions-only build.)
planned := runCLI(t, t.TempDir(), nil, "docs")
if planned.err == nil {
t.Error("planned placeholder command unexpectedly succeeded")
}
if !strings.Contains(planned.stderr, "not part of this build") {
t.Errorf("placeholder error lacks the declared note:\n%s", planned.stderr)
}
}

func TestGenerateDryRunStreamingDefaults(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion tests/contract/exitcodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ func TestExitCodeContract(t *testing.T) {
{name: "usage: unknown nested subcommand", args: []string{"agent", "nosuch"}, want: 2},
{name: "usage: unknown flag", args: []string{"agent", "list", "--no-such-flag"}, want: 2},
{name: "usage: malformed --body", args: append(baseArgs(refusedURL), "agent", "run", "--body", "{"), want: 2},
{name: "runtime: planned docs placeholder", args: []string{"docs"}, want: 1},
{name: "runtime: connection refused", args: append(baseArgs(refusedURL), "agent", "list"), want: 1},
{name: "runtime: HTTP 404", args: append(baseArgs(notFound.URL), "agent", "get", "--id", "agent-1"), want: 1},
{name: "auth: HTTP 401", args: append(baseArgs(unauthorized.URL), "agent", "list"), want: 3},
Expand Down
2 changes: 1 addition & 1 deletion tests/contract/help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func helpLines(s string) int {
func TestHelpBudgetAndFooter(t *testing.T) {
commands := [][]string{
{"generate"}, {"image"}, {"video"}, {"music"},
{"tts"}, {"tokens"}, {"analyze"}, {"transcribe"},
{"tts"}, {"analyze"}, {"transcribe"},
{"agent"}, {"agent", "run"}, {"agent", "status"},
{"models"}, {"models", "list"}, {"files"}, {"files", "upload"},
}
Expand Down
Loading