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
42 lines
1.5 KiB
TypeScript
42 lines
1.5 KiB
TypeScript
import { describe, expect, it } from "vitest";
|
|
import {
|
|
agentGuiWorkbenchEarlyAccessProviders,
|
|
agentGuiWorkbenchProviderLabels,
|
|
isAgentGuiWorkbenchEarlyAccessProvider,
|
|
isAgentGuiWorkbenchProviderVisibleWithEarlyAccess,
|
|
resolveAgentGuiWorkbenchProviderLabel
|
|
} from "./providerCatalog.ts";
|
|
|
|
describe("workbench provider catalog", () => {
|
|
it("provides labels for every provider identity accepted by workbench state", () => {
|
|
expect(resolveAgentGuiWorkbenchProviderLabel("nexight")).toBe("Nexight");
|
|
expect(Object.values(agentGuiWorkbenchProviderLabels)).not.toContain(
|
|
undefined
|
|
);
|
|
});
|
|
|
|
it("marks early-access integrations and not stable ones", () => {
|
|
expect(agentGuiWorkbenchEarlyAccessProviders).toContain("openclaw");
|
|
expect(isAgentGuiWorkbenchEarlyAccessProvider("openclaw")).toBe(true);
|
|
expect(isAgentGuiWorkbenchEarlyAccessProvider("codex")).toBe(false);
|
|
expect(isAgentGuiWorkbenchEarlyAccessProvider("claude-code")).toBe(false);
|
|
});
|
|
|
|
it("hides early-access providers only while the switch is off; stable ones stay visible", () => {
|
|
// early access off
|
|
expect(
|
|
isAgentGuiWorkbenchProviderVisibleWithEarlyAccess("openclaw", false)
|
|
).toBe(false);
|
|
expect(
|
|
isAgentGuiWorkbenchProviderVisibleWithEarlyAccess("codex", false)
|
|
).toBe(true);
|
|
// early access on
|
|
expect(
|
|
isAgentGuiWorkbenchProviderVisibleWithEarlyAccess("openclaw", true)
|
|
).toBe(true);
|
|
expect(
|
|
isAgentGuiWorkbenchProviderVisibleWithEarlyAccess("codex", true)
|
|
).toBe(true);
|
|
});
|
|
});
|