Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
38 lines
1.1 KiB
Go
38 lines
1.1 KiB
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"errors"
|
|
"testing"
|
|
|
|
cliservice "github.com/tutti-os/tutti/services/tuttid/service/cli"
|
|
appclicli "github.com/tutti-os/tutti/services/tuttid/service/cli/appcli"
|
|
)
|
|
|
|
func TestBuildDaemonCLIRegistryOmitsAgentTuttiModeMutation(t *testing.T) {
|
|
t.Parallel()
|
|
ctx := context.Background()
|
|
registry, err := buildDaemonCLIRegistry(daemonCLIRegistryInput{
|
|
AppCommands: appclicli.NewRegistry(nil, nil),
|
|
})
|
|
if err != nil {
|
|
t.Fatalf("buildDaemonCLIRegistry() error = %v", err)
|
|
}
|
|
for _, capability := range registry.Capabilities(
|
|
ctx,
|
|
cliservice.InvokeContext{Source: "cli"},
|
|
) {
|
|
if capability.ID == "tutti-mode.mode.set" {
|
|
t.Fatalf("Agent Tutti Mode mutation remains registered: %#v", capability)
|
|
}
|
|
}
|
|
_, err = registry.Invoke(ctx, cliservice.InvokeRequest{
|
|
CommandID: "tutti-mode.mode.set",
|
|
Input: map[string]any{"state": "active"},
|
|
Context: cliservice.InvokeContext{Source: "cli"},
|
|
})
|
|
if !errors.Is(err, cliservice.ErrCommandNotFound) {
|
|
t.Fatalf("Invoke(tutti-mode.mode.set) error = %v, want ErrCommandNotFound", err)
|
|
}
|
|
}
|