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
36 lines
1.1 KiB
Go
36 lines
1.1 KiB
Go
//go:build windows
|
|
|
|
package agentextension
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestBuildInstallPlanUsesNativeWindowsNPMLauncher(t *testing.T) {
|
|
manifest := testManifest()
|
|
packageDir := t.TempDir()
|
|
discoveryPath := filepath.Join(packageDir, filepath.FromSlash(manifest.Profiles.Discovery))
|
|
if err := os.MkdirAll(filepath.Dir(discoveryPath), 0o700); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if err := os.WriteFile(discoveryPath, []byte(`{"schemaVersion":"tutti.agent.discovery.v1","candidates":[{"binaryNames":["gemini"],"version":{"args":["--version"],"constraint":">=0.50.0 <1.0.0"},"launchArgs":["--acp"]}]}`), 0o600); err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
installation := Installation{
|
|
ID: "gemini@1.0.0",
|
|
AgentKey: "gemini",
|
|
Version: "1.0.0",
|
|
PackageDir: packageDir,
|
|
Manifest: manifest,
|
|
}
|
|
plan, err := buildInstallPlan("extension:gemini", t.TempDir(), installation)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if got, want := filepath.Ext(plan.Executable), ".cmd"; got != want {
|
|
t.Fatalf("Windows npm executable extension = %q, want %q", got, want)
|
|
}
|
|
}
|