Skip to content
TypeScript

feat(web): Add provider leads with first-class providers (#25753)

Julius Marminge3425671a9539
diff --git a/apps/web/src/components/settings/AcpRegistrySearchStep.browser.test.tsx b/apps/web/src/components/settings/AcpRegistrySearchStep.browser.test.tsx
index c6f48b8380a..dc8ec5ccc2c 100644
--- a/apps/web/src/components/settings/AcpRegistrySearchStep.browser.test.tsx
+++ b/apps/web/src/components/settings/AcpRegistrySearchStep.browser.test.tsx
@@ -116,3 +116,12 @@ it("rechecks the grant before preparing an agent", async () => {
expect(state.prepare).not.toHaveBeenCalled();
expect(onPrepared).not.toHaveBeenCalled();
});
+
+it("leaves out Registry agents that T3 Code supports as their own providers", async () => {
+ setup();
+ state.result = { agents: [gemini, { ...gemini, id: "codex-acp", name: "Codex" }] };
+ await using _screen = await render(<Step />);
+
+ expect(page.getByRole("button", { name: "Add Gemini CLI" }).query()).not.toBeNull();
+ expect(page.getByRole("button", { name: "Add Codex" }).query()).toBeNull();
+});
diff --git a/apps/web/src/components/settings/AcpRegistrySearchStep.tsx b/apps/web/src/components/settings/AcpRegistrySearchStep.tsx
index 19b9a0f61f2..50967ab2026 100644
--- a/apps/web/src/components/settings/AcpRegistrySearchStep.tsx
+++ b/apps/web/src/components/settings/AcpRegistrySearchStep.tsx
@@ -25,6 +25,7 @@ import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
import { isConfiguredAcpRegistryAgent } from "./AddProviderInstanceDialog.logic";
import { ProviderDriverKind } from "@t3tools/contracts";
import { ProviderInstanceIcon } from "../chat/ProviderInstanceIcon";
+import { providerClients } from "./providerDriverMeta";
function errorMessage(error: unknown): string {
return error instanceof Error && error.message.trim()
@@ -33,6 +34,9 @@ function errorMessage(error: unknown): string {
}
const ACP_REGISTRY_SEARCH_DEBOUNCE_MS = 300;
+const FIRST_CLASS_REGISTRY_AGENT_IDS = new Set(
+ providerClients.definitions.flatMap((definition) => definition.acpRegistryAgentIds ?? []),
+);
function applyAcpRegistryPrepareResult(
agent: AcpRegistrySearchAgent,
@@ -144,7 +148,8 @@ export function AcpRegistrySearchStep({
void registry.prepare(agent, onPrepared);
};
- const results = search.data?.agents ?? null;
+ const results =
+ search.data?.agents.filter((agent) => !FIRST_CLASS_REGISTRY_AGENT_IDS.has(agent.id)) ?? null;
const isInitialSearch = search.isPending && results === null;
const isRefreshing = search.isPending && results !== null;
const resultCount = results?.length ?? 0;
diff --git a/apps/web/src/components/settings/AddProviderInstanceDialog.environment.browser.test.tsx b/apps/web/src/components/settings/AddProviderInstanceDialog.environment.browser.test.tsx
index e3ff5bb8d02..2f3414683e0 100644
--- a/apps/web/src/components/settings/AddProviderInstanceDialog.environment.browser.test.tsx
+++ b/apps/web/src/components/settings/AddProviderInstanceDialog.environment.browser.test.tsx
@@ -114,6 +114,10 @@ function button(label: string) {
return found!;
}
const click = (label: string) => act(async () => button(label).click());
+const radio = (label: string) =>
+ [...document.querySelectorAll<HTMLElement>('[role="radio"]')].find(
+ (element) => element.textContent?.trim() === label,
+ );
const input = (selector: string) => {
const found = document.querySelector<HTMLInputElement>(selector);
expect(found, selector).not.toBeNull();
@@ -166,11 +170,32 @@ describe("AddProviderInstanceDialog environment routing", () => {
});
});
+ it("keeps fx and the ACP Registry under Show more", async () => {
+ setup();
+ await using _screen = await render(dialog());
+ expect(radio("Codex")).toBeDefined();
+ expect(radio("fx")).toBeUndefined();
+ expect(document.body.textContent).not.toContain("Use Kilo Code");
+
+ await click("Show more");
+ button("Use Kilo Code");
+ await act(async () => radio("fx")!.click());
+ await click("Next");
+ await click("Next");
+ await click("Add instance");
+ expect(settingsHooks.mutate).toHaveBeenCalledWith({
+ operation: "create",
+ instanceId: "fx",
+ instance: { driver: "fx", enabled: true, displayName: "fx" },
+ });
+ });
+
it("awaits an atomic create before closing and retains prepared ACP metadata", async () => {
setup();
const mutation = deferred<{ readonly _tag: "Success"; readonly value: unknown }>();
settingsHooks.mutate.mockReturnValueOnce(mutation.promise);
await using _screen = await render(dialog());
+ await click("Show more");
await click("Use Kilo Code");
expect(document.body.textContent).toContain("v4.2.0 · binary");
@@ -202,6 +227,7 @@ describe("AddProviderInstanceDialog environment routing", () => {
it("creates a local command in the selected environment without a sign-in step", async () => {
setup();
await using _screen = await render(dialog());
+ await click("Show more");
await click("Use local command");
await click("Next");
expect(document.body.textContent).toContain("Executable is required.");
diff --git a/apps/web/src/components/settings/AddProviderInstanceDialog.tsx b/apps/web/src/components/settings/AddProviderInstanceDialog.tsx
index 5dabd9ff40f..6e245af143d 100644
--- a/apps/web/src/components/settings/AddProviderInstanceDialog.tsx
+++ b/apps/web/src/components/settings/AddProviderInstanceDialog.tsx
@@ -1,9 +1,10 @@
import { ProviderInstanceIcon } from "../chat/ProviderInstanceIcon";
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
-import { CheckIcon } from "lucide-react";
+import { CheckIcon, ChevronDownIcon } from "lucide-react";
import { useState } from "react";
import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
+import type { ProviderClientDefinition } from "@t3tools/provider-core/client";
import {
type AcpRegistrySearchAgent,
AuthProvidersManageScope,
@@ -26,6 +27,7 @@ import { Button } from "../ui/button";
import { ChatGptConnectionButton } from "./ChatGptConnectionButton";
import { Dialog } from "../ui/dialog";
import { Badge } from "../ui/badge";
+import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible";
import { Input } from "../ui/input";
import { RadioGroup } from "../ui/radio-group";
import { toastManager } from "../ui/toast";
@@ -73,6 +75,11 @@ const INSTANCE_ID_PATTERN = /^[a-zA-Z][a-zA-Z0-9_-]*$/;
const DEFAULT_DRIVER_KIND = ProviderDriverKind.make("codex");
const ACP_REGISTRY_DRIVER_KIND = ProviderDriverKind.make("acpRegistry");
const DEFAULT_DRIVER_OPTION = providerClients.definitions[0]!;
+const DRIVER_OPTIONS = providerClients.definitions.filter(
+ (option) => option.driverKind !== ACP_REGISTRY_DRIVER_KIND,
+);
+const FEATURED_DRIVER_OPTIONS = DRIVER_OPTIONS.filter((option) => option.featured !== false);
+const MORE_DRIVER_OPTIONS = DRIVER_OPTIONS.filter((option) => option.featured === false);
const EMPTY_CONFIG_DRAFT: Record<string, unknown> = {};
function validateInstanceId(id: string, existing: ReadonlySet<string>): string | null {
if (id.length === 0) return "Instance ID is required.";
@@ -84,6 +91,59 @@ function validateInstanceId(id: string, existing: ReadonlySet<string>): string |
return null;
}
+function ProviderOptionGrid({
+ options,
+ value,
+ disabled,
+ onValueChange,
+ ...labelProps
+}: {
+ readonly options: ReadonlyArray<ProviderClientDefinition>;
+ readonly value: ProviderDriverKind;
+ readonly disabled: boolean;
+ readonly onValueChange: (value: string) => void;
+ readonly "aria-label"?: string;
+ readonly "aria-labelledby"?: string;
+}) {
+ return (
+ <RadioGroup
+ {...labelProps}
+ disabled={disabled}
+ value={value}
+ onValueChange={onValueChange}
+ className="grid grid-cols-1 sm:grid-cols-2"
+ >
+ {options.map((option) => (
+ <RadioPrimitive.Root
+ key={option.driverKind}
+ value={option.driverKind}
+ className="relative flex cursor-pointer items-center gap-3 rounded-lg bg-card px-3 py-3 text-left text-muted-foreground outline-none ring-1 ring-black/5 hover:bg-muted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring data-checked:bg-primary/8 data-checked:text-foreground data-checked:ring-2 data-checked:ring-inset data-checked:ring-primary data-checked:hover:bg-primary/8 dark:bg-white/3 dark:ring-white/5 dark:hover:bg-white/5 dark:data-checked:bg-primary/15 dark:data-checked:ring-primary dark:data-checked:hover:bg-primary/15"
+ >
+ <ProviderInstanceIcon
+ driverKind={option.driverKind}
+ displayName={option.label}
+ iconClassName="size-4"
+ />
+ <span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
+ {option.label}
+ </span>
+ <RadioPrimitive.Indicator
+ className="grid size-5 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground"
+ aria-hidden
+ >
+ <CheckIcon className="size-3.5 shrink-0" />
+ </RadioPrimitive.Indicator>
+ {option.badgeLabel ? (
+ <Badge variant="warning" size="sm">
+ {option.badgeLabel}
+ </Badge>
+ ) : null}
+ </RadioPrimitive.Root>
+ ))}
+ </RadioGroup>
+ );
+}
+
interface AddProviderInstanceDialogProps {
readonly open: boolean;
readonly environmentId: EnvironmentId;
@@ -114,6 +174,7 @@ export function AddProviderInstanceDialog({
ReadonlyArray<ProviderInstanceEnvironmentVariable>
>([]);
const [isManualAcpConfiguration, setIsManualAcpConfiguration] = useState(false);
+ const [showMoreProviders, setShowMoreProviders] = useState(false);
const [configByDriver, setConfigByDriver] = useState<Record<string, Record<string, unknown>>>({});
const [hasAttemptedSubmit, setHasAttemptedSubmit] = useState(false);
const [isSaving, setIsSaving] = useState(false);
@@ -134,6 +195,7 @@ export function AddProviderInstanceDialog({
!addingChatGptAccount &&
wizardStep === 0 &&
!(isAcpRegistry && isManualAcpConfiguration);
+ // Searches while Show more is closed, so the fold opens on results.
const registry = useAcpRegistrySearch(environmentId, showRegistrySearch);
const isPreparingRegistryAgent = registry.preparingId !== null;
const defaultIdentity: ProviderIdentityDraft = {
@@ -190,6 +252,11 @@ export function AddProviderInstanceDialog({
return next;
});
};
+ const selectDriver = (value: string) => {
+ setDriver(ProviderDriverKind.make(value));
+ setIsManualAcpConfiguration(false);
+ setHasAttemptedSubmit(false);
+ };
const setIdentityDraft = (update: Partial<ProviderIdentityDraft>) => {
setIdentityByDriver((existing) => ({
...existing,
@@ -392,126 +459,108 @@ export function AddProviderInstanceDialog({
/>
) : (
<>
- <WizardPanel
- className={cn(isAcpRegistry && wizardStep === identityStep && "min-h-72")}
- holdHeight={showRegistrySearch && registry.search.isPending}
- >
+ <WizardPanel className={cn(isAcpRegistry && wizardStep === identityStep && "min-h-72")}>
<div className={cn("grid gap-2", wizardStep !== 0 && "hidden")}>
<div id="add-instance-driver-label" className="text-sm font-medium text-foreground">
Provider
</div>
- <RadioGroup
- disabled={isPreparingRegistryAgent}
+ <ProviderOptionGrid
+ options={FEATURED_DRIVER_OPTIONS}
value={driver}
- onValueChange={(value) => {
- setDriver(ProviderDriverKind.make(value));
- setIsManualAcpConfiguration(false);
- setHasAttemptedSubmit(false);
- }}
+ disabled={isPreparingRegistryAgent}
+ onValueChange={selectDriver}
aria-labelledby="add-instance-driver-label"
- className="grid grid-cols-1 sm:grid-cols-2"
- >
- {providerClients.definitions
- .filter((option) => option.driverKind !== ACP_REGISTRY_DRIVER_KIND)
- .map((option) => {
- return (
- <RadioPrimitive.Root
- key={option.driverKind}
- value={option.driverKind}
- className="relative flex cursor-pointer items-center gap-3 rounded-lg bg-card px-3 py-3 text-left text-muted-foreground outline-none ring-1 ring-black/5 hover:bg-muted focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring data-checked:bg-primary/8 data-checked:text-foreground data-checked:ring-2 data-checked:ring-inset data-checked:ring-primary data-checked:hover:bg-primary/8 dark:bg-white/3 dark:ring-white/5 dark:hover:bg-white/5 dark:data-checked:bg-primary/15 dark:data-checked:ring-primary dark:data-checked:hover:bg-primary/15"
- >
- <ProviderInstanceIcon
- driverKind={option.driverKind}
- displayName={option.label}
- iconClassName="size-4"
- />
- <span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
- {option.label}
- </span>
- <RadioPrimitive.Indicator
- className="grid size-5 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground"
- aria-hidden
- >
- <CheckIcon className="size-3.5 shrink-0" />
- </RadioPrimitive.Indicator>
- {option.badgeLabel ? (
- <Badge variant="warning" size="sm">
- {option.badgeLabel}
- </Badge>
- ) : null}
- </RadioPrimitive.Root>
- );
- })}
- </RadioGroup>
+ />
<MultipleAccountsNote environmentId={environmentId} driver={driver} />
</div>
{wizardStep === 0 ? (
- <div className="space-y-4 pt-4">
- <div className="flex items-center gap-3 text-xs text-muted-foreground">
- <div aria-hidden className="flex-1 border-t border-border/70" />
- <span>Or choose from ACP Registry</span>
- <div aria-hidden className="flex-1 border-t border-border/70" />
+ <Collapsible open={showMoreProviders} onOpenChange={setShowMoreProviders}>
+ <div className="flex pt-2">
+ <CollapsibleTrigger render={<Button variant="ghost-muted" size="xs" />}>
+ {showMoreProviders ? "Show less" : "Show more"}
+ <ChevronDownIcon
+ aria-hidden
+ className={cn("transition-transform", showMoreProviders && "rotate-180")}
+ />
+ </CollapsibleTrigger>
</div>
- {isAcpRegistry && isManualAcpConfiguration ? (
- <div className="grid gap-4">
- <div className="flex items-start justify-between gap-3">
- <div>
- <h3 className="text-sm font-medium text-foreground">
- {isLocalAcp ? "Local ACP command" : "Enter manually"}
- </h3>
- <p className="mt-0.5 text-xs text-muted-foreground">
- {isLocalAcp
- ? `Run an installed ACP executable on ${environmentLabel}.`
- : "Enter an official registry ID and any local executable or auth override."}
- </p>
- </div>
- <Button
- onClick={() => {
- setIsManualAcpConfiguration(false);
- setHasAttemptedSubmit(false);
- }}
- size="xs"
- variant="ghost"
- >
- Search registry
- </Button>
+ {/* WizardPanel already animates its height, so the fold opens without its own. */}
+ <CollapsiblePanel animate={false}>
+ <div className="space-y-4 pt-4">
+ <ProviderOptionGrid
+ options={MORE_DRIVER_OPTIONS}
+ value={driver}
+ disabled={isPreparingRegistryAgent}
+ onValueChange={selectDriver}
+ aria-label="More providers"
+ />
+ <div className="flex items-center gap-3 text-xs text-muted-foreground">
+ <div aria-hidden className="flex-1 border-t border-border/70" />
+ <span>Or choose from ACP Registry</span>
+ <div aria-hidden className="flex-1 border-t border-border/70" />
</div>
- <SettingsGroup variant="plain">
- <ProviderSettingsForm
- definition={driverOption}
- value={configDraft}
- idPrefix="add-provider-acpRegistry-manual"
- variant="settings"
- onChange={setConfigDraft}
- />
- {isLocalAcp ? (
- <ProviderEnvironmentSection
- environment={localEnvironment}
- onChange={setLocalEnvironment}
+ {isAcpRegistry && isManualAcpConfiguration ? (
+ <div className="grid gap-4">
+ <div className="flex items-start justify-between gap-3">
+ <div>
+ <h3 className="text-sm font-medium text-foreground">
+ {isLocalAcp ? "Local ACP command" : "Enter manually"}
+ </h3>
+ <p className="mt-0.5 text-xs text-muted-foreground">
+ {isLocalAcp
+ ? `Run an installed ACP executable on ${environmentLabel}.`
+ : "Enter an official registry ID and any local executable or auth override."}
+ </p>
+ </div>
+ <Button
+ onClick={() => {
+ setIsManualAcpConfiguration(false);
+ setHasAttemptedSubmit(false);
+ }}
+ size="xs"
+ variant="ghost"
+ >
+ Search registry
+ </Button>
+ </div>
+ <SettingsGroup variant="plain">
+ <ProviderSettingsForm
+ definition={driverOption}
+ value={configDraft}
+ idPrefix="add-provider-acpRegistry-manual"
+ variant="settings"
+ onChange={setConfigDraft}
+ />
+ {isLocalAcp ? (
+ <ProviderEnvironmentSection
+ environment={localEnvironment}
+ onChange={setLocalEnvironment}
+ />
+ ) : null}
+ </SettingsGroup>
+ {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
+ <p className="text-2xs text-destructive">{acpSelectionError}</p>
+ ) : null}
+ </div>
+ ) : (
+ <>
+ <AcpRegistrySearchStep
+ environmentId={environmentId}
+ registry={registry}
+ providerInstances={settings.providerInstances}
+ onPrepared={handleAcpPrepared}
+ onManualConfiguration={handleManualAcpConfiguration}
+ onLocalConfiguration={handleLocalAcpConfiguration}
/>
- ) : null}
- </SettingsGroup>
- {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
- <p className="text-2xs text-destructive">{acpSelectionError}</p>
- ) : null}
+ {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
+ <p className="mt-2 text-2xs text-destructive">{acpSelectionError}</p>
+ ) : null}
+ </>
+ )}
</div>
- ) : (
- <>
- <AcpRegistrySearchStep
- environmentId={environmentId}
- registry={registry}
- providerInstances={settings.providerInstances}
- onPrepared={handleAcpPrepared}
- onManualConfiguration={handleManualAcpConfiguration}
- onLocalConfiguration={handleLocalAcpConfiguration}
- />
- {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
- <p className="mt-2 text-2xs text-destructive">{acpSelectionError}</p>
- ) : null}
- </>
- )}
- </div>
+ </CollapsiblePanel>
+ </Collapsible>
) : null}
{isAcpRegistry && wizardStep === 1 && selectedAcp ? (
diff --git a/apps/web/src/components/settings/providerDriverMeta.ts b/apps/web/src/components/settings/providerDriverMeta.ts
index b6ec6bb902e..552fc0d2867 100644
--- a/apps/web/src/components/settings/providerDriverMeta.ts
+++ b/apps/web/src/components/settings/providerDriverMeta.ts
@@ -17,11 +17,13 @@ export const providerClients = makeProviderClientRegistry([
{
driverKind: ProviderDriverKind.make("codex"),
label: "Codex",
+ acpRegistryAgentIds: ["codex-acp"],
settingsSchema: CodexSettings,
},
{
driverKind: ProviderDriverKind.make("claudeAgent"),
label: "Claude",
+ acpRegistryAgentIds: ["claude-acp"],
settingsSchema: ClaudeSettings,
},
cursorClient,
@@ -31,6 +33,7 @@ export const providerClients = makeProviderClientRegistry([
{
driverKind: ProviderDriverKind.make("antigravity"),
label: "Antigravity",
+ acpRegistryAgentIds: ["antigravity-acp"],
settingsSchema: AntigravitySettings,
},
museClient,
diff --git a/docs/user/providers-acp.md b/docs/user/providers-acp.md
index c40d2e0fec6..cf7872d8c96 100644
--- a/docs/user/providers-acp.md
+++ b/docs/user/providers-acp.md
@@ -5,13 +5,14 @@ T3 Code can run installed ACP commands or coding agents from the official
own models, tools, and sign-in, while T3 Code provides projects, threads, checkpoints, and task
delegation.
-Google Antigravity is available through its official `antigravity-acp` Registry entry. Add it like
-any other Registry agent; it does not need an Antigravity-specific T3 Code provider.
+Agents that T3 Code supports as their own providers, such as Codex, Claude, Cursor, Grok, OpenCode,
+Pi, and [Antigravity](./providers-antigravity.md), don't appear in the Registry list. Enable them in
+**Settings → Providers** instead.
T3 Code prefers the current ACP v2 preview protocol and uses its richer messages, usage, plans,
configuration, compaction, and agent-terminal updates when the agent supports them. It also
-negotiates ACP v1 for Registry agents that have not migrated yet, so agents such as Pi continue to
-work through the same generic integration.
+negotiates ACP v1 for Registry agents that have not migrated yet, so they continue to work through
+the same generic integration.
Claude Agent uses the ACP v2 preview by default for Registry and local `claude-agent-acp`
commands. If you encounter preview issues, set `CLAUDE_AGENT_ACP_EXPERIMENTAL_V2=0` in the
@@ -20,8 +21,8 @@ provider instance's environment overrides to use ACP v1.
## Add an agent
1. Open **Settings → Providers**.
-2. Select **Add provider** and search the ACP Registry.
-3. Search for the agent and select **Add** on its result.
+2. Select **Add provider**, then **Show more**.
+3. Search the ACP Registry for the agent and select **Add** on its result.
4. Confirm the name and instance ID, then complete the agent's sign-in step.
Search only shows agents that can run on the connected server. Registry agents are third-party
@@ -29,7 +30,7 @@ code; review an agent's source and license before adding it.
## Add a local command
-In **Settings → Providers → Add provider**, select **Local ACP command**. Enter the executable
+In **Settings → Providers → Add provider**, select **Show more**, then **Local ACP command**. Enter the executable
name or path on the selected environment, add one literal argument per row, and choose a display
name. For DeepSeek Harness, use `dsh` with arguments `--profile` and `acp`.
diff --git a/docs/user/providers-muse.md b/docs/user/providers-muse.md
index 9013e97dfa9..2a58eed9c59 100644
--- a/docs/user/providers-muse.md
+++ b/docs/user/providers-muse.md
@@ -1,6 +1,6 @@
# Muse Code
-Muse Code is a beta integration and is disabled by default. Install
+Muse Code is disabled by default. Install
[Muse Code](https://dev.meta.ai/docs/muse-code) on the machine hosting your
environment, then run `muse login` as the account that runs T3 Code.
diff --git a/packages/client-runtime/src/state/server.ts b/packages/client-runtime/src/state/server.ts
index f1c8d3c19e8..f9f1f914070 100644
--- a/packages/client-runtime/src/state/server.ts
+++ b/packages/client-runtime/src/state/server.ts
@@ -1305,8 +1305,8 @@ export function createServerEnvironmentAtoms<R, E>(
searchAcpRegistry: createEnvironmentRpcQueryAtomFamily(runtime, {
label: "environment-data:server:acp-registry:search",
tag: WS_METHODS.serverSearchAcpRegistry,
- staleTimeMs: 0,
- idleTtlMs: 0,
+ // Reopening Add provider reuses recent results; submitting the same search refreshes it.
+ staleTimeMs: 5 * 60_000,
}),
configProjection,
welcome,
diff --git a/packages/provider-core/src/client.ts b/packages/provider-core/src/client.ts
index b2974dce467..cba77d33a6a 100644
--- a/packages/provider-core/src/client.ts
+++ b/packages/provider-core/src/client.ts
@@ -40,6 +40,10 @@ export interface ProviderClientDefinition {
readonly environmentFields?: ReadonlyArray<ProviderEnvironmentField>;
readonly hasDefaultInstance?: boolean;
readonly badgeLabel?: string;
+ /** `false` lists the provider under Add provider's "Show more" instead of up front. */
+ readonly featured?: boolean;
+ /** ACP Registry entries for this same agent, left out of Add provider's Registry list. */
+ readonly acpRegistryAgentIds?: ReadonlyArray<string>;
}
export function defineProviderClient<const Definition extends ProviderClientDefinition>(
diff --git a/packages/provider-cursor/src/client.ts b/packages/provider-cursor/src/client.ts
index a701023a916..158133d54c8 100644
--- a/packages/provider-cursor/src/client.ts
+++ b/packages/provider-cursor/src/client.ts
@@ -6,6 +6,7 @@ import { CursorSettings } from "./settings.ts";
export const cursorClient = defineProviderClient({
driverKind: ProviderDriverKind.make("cursor"),
label: "Cursor",
+ acpRegistryAgentIds: ["cursor"],
settingsSchema: CursorSettings,
environmentFields: [
{
diff --git a/packages/provider-fx/src/client.ts b/packages/provider-fx/src/client.ts
index 2357dd39088..772dc93250f 100644
--- a/packages/provider-fx/src/client.ts
+++ b/packages/provider-fx/src/client.ts
@@ -12,6 +12,7 @@ import { FxSettings } from "./settings.ts";
export const fxClient = defineProviderClient({
driverKind: ProviderDriverKind.make("fx"),
label: "fx",
+ featured: false,
settingsSchema: FxSettings,
icon: {
viewBox: "166.241 0 155.861 156",
diff --git a/packages/provider-grok/src/client.ts b/packages/provider-grok/src/client.ts
index e227d8a4a6e..42a4e7fbc17 100644
--- a/packages/provider-grok/src/client.ts
+++ b/packages/provider-grok/src/client.ts
@@ -6,6 +6,7 @@ import { GrokSettings } from "./settings.ts";
export const grokClient = defineProviderClient({
driverKind: ProviderDriverKind.make("grok"),
label: "Grok",
+ acpRegistryAgentIds: ["grok-build"],
settingsSchema: GrokSettings,
icon: {
viewBox: "0 0 24 24",
diff --git a/packages/provider-muse/src/client.ts b/packages/provider-muse/src/client.ts
index b26e7458d0c..2d35baf20a9 100644
--- a/packages/provider-muse/src/client.ts
+++ b/packages/provider-muse/src/client.ts
@@ -7,7 +7,6 @@ export const museClient = defineProviderClient({
driverKind: ProviderDriverKind.make("muse"),
label: "Muse Code",
settingsSchema: MuseSettings,
- badgeLabel: "Beta",
icon: {
viewBox: "0 0 287.56 191",
fill: { light: "#0081fb", dark: "#0081fb" },
diff --git a/packages/provider-opencode/src/client.ts b/packages/provider-opencode/src/client.ts
index bac5cadb754..8ead1f1bd3d 100644
--- a/packages/provider-opencode/src/client.ts
+++ b/packages/provider-opencode/src/client.ts
@@ -6,6 +6,7 @@ import { OpenCodeSettings } from "./settings.ts";
export const openCodeClient = defineProviderClient({
driverKind: ProviderDriverKind.make("opencode"),
label: "OpenCode",
+ acpRegistryAgentIds: ["opencode", "opencode-v2"],
settingsSchema: OpenCodeSettings,
icon: {
viewBox: "0 0 32 40",
diff --git a/packages/provider-pi/src/client.ts b/packages/provider-pi/src/client.ts
index 44095bec0c6..6d5ac4f3078 100644
--- a/packages/provider-pi/src/client.ts
+++ b/packages/provider-pi/src/client.ts
@@ -6,6 +6,7 @@ import { PiSettings } from "./settings.ts";
export const piClient = defineProviderClient({
driverKind: ProviderDriverKind.make("pi"),
label: "Pi",
+ acpRegistryAgentIds: ["pi-acp"],
settingsSchema: PiSettings,
icon: {
viewBox: "165.29 165.29 469.43 469.43",