The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 15:45 UTC
feat(web): Add provider leads with first-class providers (#25753)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Julius Marminge committed
Oct 26, 2026 at 21:07 UTC
3425671a9539418d2ea404526120c6c872e3c435
15 files changed
+220
-119
apps/web/src/components/settings/AcpRegistrySearchStep.browser.test.tsx
+9
@@ -116,3 +116,12 @@ it("rechecks the grant before preparing an agent", async () => {
116
expect(state.prepare).not.toHaveBeenCalled();
117
expect(onPrepared).not.toHaveBeenCalled();
118
});
119
+
120
+it("leaves out Registry agents that T3 Code supports as their own providers", async () => {
121
+ setup();
122
+ state.result = { agents: [gemini, { ...gemini, id: "codex-acp", name: "Codex" }] };
123
+ await using _screen = await render(<Step />);
124
+
125
+ expect(page.getByRole("button", { name: "Add Gemini CLI" }).query()).not.toBeNull();
126
+ expect(page.getByRole("button", { name: "Add Codex" }).query()).toBeNull();
127
+});
apps/web/src/components/settings/AcpRegistrySearchStep.tsx
+6
-1
@@ -25,6 +25,7 @@ import { Tooltip, TooltipPopup, TooltipTrigger } from "../ui/tooltip";
25
import { isConfiguredAcpRegistryAgent } from "./AddProviderInstanceDialog.logic";
26
import { ProviderDriverKind } from "@t3tools/contracts";
27
import { ProviderInstanceIcon } from "../chat/ProviderInstanceIcon";
28
+import { providerClients } from "./providerDriverMeta";
29
30
function errorMessage(error: unknown): string {
31
return error instanceof Error && error.message.trim()
@@ -33,6 +34,9 @@ function errorMessage(error: unknown): string {
34
}
35
36
const ACP_REGISTRY_SEARCH_DEBOUNCE_MS = 300;
37
+const FIRST_CLASS_REGISTRY_AGENT_IDS = new Set(
38
+ providerClients.definitions.flatMap((definition) => definition.acpRegistryAgentIds ?? []),
39
+);
40
41
function applyAcpRegistryPrepareResult(
42
agent: AcpRegistrySearchAgent,
@@ -144,7 +148,8 @@ export function AcpRegistrySearchStep({
148
void registry.prepare(agent, onPrepared);
149
};
150
147
- const results = search.data?.agents ?? null;
151
+ const results =
152
+ search.data?.agents.filter((agent) => !FIRST_CLASS_REGISTRY_AGENT_IDS.has(agent.id)) ?? null;
153
const isInitialSearch = search.isPending && results === null;
154
const isRefreshing = search.isPending && results !== null;
155
const resultCount = results?.length ?? 0;
apps/web/src/components/settings/AddProviderInstanceDialog.environment.browser.test.tsx
+26
@@ -114,6 +114,10 @@ function button(label: string) {
114
return found!;
115
}
116
const click = (label: string) => act(async () => button(label).click());
117
+const radio = (label: string) =>
118
+ [...document.querySelectorAll<HTMLElement>('[role="radio"]')].find(
119
+ (element) => element.textContent?.trim() === label,
120
+ );
121
const input = (selector: string) => {
122
const found = document.querySelector<HTMLInputElement>(selector);
123
expect(found, selector).not.toBeNull();
@@ -166,11 +170,32 @@ describe("AddProviderInstanceDialog environment routing", () => {
170
});
171
});
172
173
+ it("keeps fx and the ACP Registry under Show more", async () => {
174
+ setup();
175
+ await using _screen = await render(dialog());
176
+ expect(radio("Codex")).toBeDefined();
177
+ expect(radio("fx")).toBeUndefined();
178
+ expect(document.body.textContent).not.toContain("Use Kilo Code");
179
+
180
+ await click("Show more");
181
+ button("Use Kilo Code");
182
+ await act(async () => radio("fx")!.click());
183
+ await click("Next");
184
+ await click("Next");
185
+ await click("Add instance");
186
+ expect(settingsHooks.mutate).toHaveBeenCalledWith({
187
+ operation: "create",
188
+ instanceId: "fx",
189
+ instance: { driver: "fx", enabled: true, displayName: "fx" },
190
+ });
191
+ });
192
+
193
it("awaits an atomic create before closing and retains prepared ACP metadata", async () => {
194
setup();
195
const mutation = deferred<{ readonly _tag: "Success"; readonly value: unknown }>();
196
settingsHooks.mutate.mockReturnValueOnce(mutation.promise);
197
await using _screen = await render(dialog());
198
+ await click("Show more");
199
await click("Use Kilo Code");
200
201
expect(document.body.textContent).toContain("v4.2.0 · binary");
@@ -202,6 +227,7 @@ describe("AddProviderInstanceDialog environment routing", () => {
227
it("creates a local command in the selected environment without a sign-in step", async () => {
228
setup();
229
await using _screen = await render(dialog());
230
+ await click("Show more");
231
await click("Use local command");
232
await click("Next");
233
expect(document.body.textContent).toContain("Executable is required.");
apps/web/src/components/settings/AddProviderInstanceDialog.tsx
+156
-107
@@ -1,9 +1,10 @@
1
import { ProviderInstanceIcon } from "../chat/ProviderInstanceIcon";
2
3
import { Radio as RadioPrimitive } from "@base-ui/react/radio";
4
-import { CheckIcon } from "lucide-react";
4
+import { CheckIcon, ChevronDownIcon } from "lucide-react";
5
import { useState } from "react";
6
import { squashAtomCommandFailure } from "@t3tools/client-runtime/state/runtime";
7
+import type { ProviderClientDefinition } from "@t3tools/provider-core/client";
8
import {
9
type AcpRegistrySearchAgent,
10
AuthProvidersManageScope,
@@ -26,6 +27,7 @@ import { Button } from "../ui/button";
27
import { ChatGptConnectionButton } from "./ChatGptConnectionButton";
28
import { Dialog } from "../ui/dialog";
29
import { Badge } from "../ui/badge";
30
+import { Collapsible, CollapsiblePanel, CollapsibleTrigger } from "../ui/collapsible";
31
import { Input } from "../ui/input";
32
import { RadioGroup } from "../ui/radio-group";
33
import { toastManager } from "../ui/toast";
@@ -73,6 +75,11 @@ const INSTANCE_ID_PATTERN = /^[a-zA-Z][a-zA-Z0-9_-]*$/;
75
const DEFAULT_DRIVER_KIND = ProviderDriverKind.make("codex");
76
const ACP_REGISTRY_DRIVER_KIND = ProviderDriverKind.make("acpRegistry");
77
const DEFAULT_DRIVER_OPTION = providerClients.definitions[0]!;
78
+const DRIVER_OPTIONS = providerClients.definitions.filter(
79
+ (option) => option.driverKind !== ACP_REGISTRY_DRIVER_KIND,
80
+);
81
+const FEATURED_DRIVER_OPTIONS = DRIVER_OPTIONS.filter((option) => option.featured !== false);
82
+const MORE_DRIVER_OPTIONS = DRIVER_OPTIONS.filter((option) => option.featured === false);
83
const EMPTY_CONFIG_DRAFT: Record<string, unknown> = {};
84
function validateInstanceId(id: string, existing: ReadonlySet<string>): string | null {
85
if (id.length === 0) return "Instance ID is required.";
@@ -84,6 +91,59 @@ function validateInstanceId(id: string, existing: ReadonlySet<string>): string |
91
return null;
92
}
93
94
+function ProviderOptionGrid({
95
+ options,
96
+ value,
97
+ disabled,
98
+ onValueChange,
99
+ ...labelProps
100
+}: {
101
+ readonly options: ReadonlyArray<ProviderClientDefinition>;
102
+ readonly value: ProviderDriverKind;
103
+ readonly disabled: boolean;
104
+ readonly onValueChange: (value: string) => void;
105
+ readonly "aria-label"?: string;
106
+ readonly "aria-labelledby"?: string;
107
+}) {
108
+ return (
109
+ <RadioGroup
110
+ {...labelProps}
111
+ disabled={disabled}
112
+ value={value}
113
+ onValueChange={onValueChange}
114
+ className="grid grid-cols-1 sm:grid-cols-2"
115
+ >
116
+ {options.map((option) => (
117
+ <RadioPrimitive.Root
118
+ key={option.driverKind}
119
+ value={option.driverKind}
120
+ 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"
121
+ >
122
+ <ProviderInstanceIcon
123
+ driverKind={option.driverKind}
124
+ displayName={option.label}
125
+ iconClassName="size-4"
126
+ />
127
+ <span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
128
+ {option.label}
129
+ </span>
130
+ <RadioPrimitive.Indicator
131
+ className="grid size-5 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground"
132
+ aria-hidden
133
+ >
134
+ <CheckIcon className="size-3.5 shrink-0" />
135
+ </RadioPrimitive.Indicator>
136
+ {option.badgeLabel ? (
137
+ <Badge variant="warning" size="sm">
138
+ {option.badgeLabel}
139
+ </Badge>
140
+ ) : null}
141
+ </RadioPrimitive.Root>
142
+ ))}
143
+ </RadioGroup>
144
+ );
145
+}
146
+
147
interface AddProviderInstanceDialogProps {
148
readonly open: boolean;
149
readonly environmentId: EnvironmentId;
@@ -114,6 +174,7 @@ export function AddProviderInstanceDialog({
174
ReadonlyArray<ProviderInstanceEnvironmentVariable>
175
>([]);
176
const [isManualAcpConfiguration, setIsManualAcpConfiguration] = useState(false);
177
+ const [showMoreProviders, setShowMoreProviders] = useState(false);
178
const [configByDriver, setConfigByDriver] = useState<Record<string, Record<string, unknown>>>({});
179
const [hasAttemptedSubmit, setHasAttemptedSubmit] = useState(false);
180
const [isSaving, setIsSaving] = useState(false);
@@ -134,6 +195,7 @@ export function AddProviderInstanceDialog({
195
!addingChatGptAccount &&
196
wizardStep === 0 &&
197
!(isAcpRegistry && isManualAcpConfiguration);
198
+ // Searches while Show more is closed, so the fold opens on results.
199
const registry = useAcpRegistrySearch(environmentId, showRegistrySearch);
200
const isPreparingRegistryAgent = registry.preparingId !== null;
201
const defaultIdentity: ProviderIdentityDraft = {
@@ -190,6 +252,11 @@ export function AddProviderInstanceDialog({
252
return next;
253
});
254
};
255
+ const selectDriver = (value: string) => {
256
+ setDriver(ProviderDriverKind.make(value));
257
+ setIsManualAcpConfiguration(false);
258
+ setHasAttemptedSubmit(false);
259
+ };
260
const setIdentityDraft = (update: Partial<ProviderIdentityDraft>) => {
261
setIdentityByDriver((existing) => ({
262
...existing,
@@ -392,126 +459,108 @@ export function AddProviderInstanceDialog({
459
/>
460
) : (
461
<>
395
- <WizardPanel
396
- className={cn(isAcpRegistry && wizardStep === identityStep && "min-h-72")}
397
- holdHeight={showRegistrySearch && registry.search.isPending}
398
- >
462
+ <WizardPanel className={cn(isAcpRegistry && wizardStep === identityStep && "min-h-72")}>
463
<div className={cn("grid gap-2", wizardStep !== 0 && "hidden")}>
464
<div id="add-instance-driver-label" className="text-sm font-medium text-foreground">
465
Provider
466
</div>
403
- <RadioGroup
404
- disabled={isPreparingRegistryAgent}
467
+ <ProviderOptionGrid
468
+ options={FEATURED_DRIVER_OPTIONS}
469
value={driver}
406
- onValueChange={(value) => {
407
- setDriver(ProviderDriverKind.make(value));
408
- setIsManualAcpConfiguration(false);
409
- setHasAttemptedSubmit(false);
410
- }}
470
+ disabled={isPreparingRegistryAgent}
471
+ onValueChange={selectDriver}
472
aria-labelledby="add-instance-driver-label"
412
- className="grid grid-cols-1 sm:grid-cols-2"
413
- >
414
- {providerClients.definitions
415
- .filter((option) => option.driverKind !== ACP_REGISTRY_DRIVER_KIND)
416
- .map((option) => {
417
- return (
418
- <RadioPrimitive.Root
419
- key={option.driverKind}
420
- value={option.driverKind}
421
- 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"
422
- >
423
- <ProviderInstanceIcon
424
- driverKind={option.driverKind}
425
- displayName={option.label}
426
- iconClassName="size-4"
427
- />
428
- <span className="min-w-0 flex-1 truncate text-sm font-medium text-foreground">
429
- {option.label}
430
- </span>
431
- <RadioPrimitive.Indicator
432
- className="grid size-5 shrink-0 place-items-center rounded-full bg-primary text-primary-foreground"
433
- aria-hidden
434
- >
435
- <CheckIcon className="size-3.5 shrink-0" />
436
- </RadioPrimitive.Indicator>
437
- {option.badgeLabel ? (
438
- <Badge variant="warning" size="sm">
439
- {option.badgeLabel}
440
- </Badge>
441
- ) : null}
442
- </RadioPrimitive.Root>
443
- );
444
- })}
445
- </RadioGroup>
473
+ />
474
<MultipleAccountsNote environmentId={environmentId} driver={driver} />
475
</div>
476
477
{wizardStep === 0 ? (
450
- <div className="space-y-4 pt-4">
451
- <div className="flex items-center gap-3 text-xs text-muted-foreground">
452
- <div aria-hidden className="flex-1 border-t border-border/70" />
453
- <span>Or choose from ACP Registry</span>
454
- <div aria-hidden className="flex-1 border-t border-border/70" />
478
+ <Collapsible open={showMoreProviders} onOpenChange={setShowMoreProviders}>
479
+ <div className="flex pt-2">
480
+ <CollapsibleTrigger render={<Button variant="ghost-muted" size="xs" />}>
481
+ {showMoreProviders ? "Show less" : "Show more"}
482
+ <ChevronDownIcon
483
+ aria-hidden
484
+ className={cn("transition-transform", showMoreProviders && "rotate-180")}
485
+ />
486
+ </CollapsibleTrigger>
487
</div>
456
- {isAcpRegistry && isManualAcpConfiguration ? (
457
- <div className="grid gap-4">
458
- <div className="flex items-start justify-between gap-3">
459
- <div>
460
- <h3 className="text-sm font-medium text-foreground">
461
- {isLocalAcp ? "Local ACP command" : "Enter manually"}
462
- </h3>
463
- <p className="mt-0.5 text-xs text-muted-foreground">
464
- {isLocalAcp
465
- ? `Run an installed ACP executable on ${environmentLabel}.`
466
- : "Enter an official registry ID and any local executable or auth override."}
467
- </p>
468
- </div>
469
- <Button
470
- onClick={() => {
471
- setIsManualAcpConfiguration(false);
472
- setHasAttemptedSubmit(false);
473
- }}
474
- size="xs"
475
- variant="ghost"
476
- >
477
- Search registry
478
- </Button>
488
+ {/* WizardPanel already animates its height, so the fold opens without its own. */}
489
+ <CollapsiblePanel animate={false}>
490
+ <div className="space-y-4 pt-4">
491
+ <ProviderOptionGrid
492
+ options={MORE_DRIVER_OPTIONS}
493
+ value={driver}
494
+ disabled={isPreparingRegistryAgent}
495
+ onValueChange={selectDriver}
496
+ aria-label="More providers"
497
+ />
498
+ <div className="flex items-center gap-3 text-xs text-muted-foreground">
499
+ <div aria-hidden className="flex-1 border-t border-border/70" />
500
+ <span>Or choose from ACP Registry</span>
501
+ <div aria-hidden className="flex-1 border-t border-border/70" />
502
</div>
480
- <SettingsGroup variant="plain">
481
- <ProviderSettingsForm
482
- definition={driverOption}
483
- value={configDraft}
484
- idPrefix="add-provider-acpRegistry-manual"
485
- variant="settings"
486
- onChange={setConfigDraft}
487
- />
488
- {isLocalAcp ? (
489
- <ProviderEnvironmentSection
490
- environment={localEnvironment}
491
- onChange={setLocalEnvironment}
503
+ {isAcpRegistry && isManualAcpConfiguration ? (
504
+ <div className="grid gap-4">
505
+ <div className="flex items-start justify-between gap-3">
506
+ <div>
507
+ <h3 className="text-sm font-medium text-foreground">
508
+ {isLocalAcp ? "Local ACP command" : "Enter manually"}
509
+ </h3>
510
+ <p className="mt-0.5 text-xs text-muted-foreground">
511
+ {isLocalAcp
512
+ ? `Run an installed ACP executable on ${environmentLabel}.`
513
+ : "Enter an official registry ID and any local executable or auth override."}
514
+ </p>
515
+ </div>
516
+ <Button
517
+ onClick={() => {
518
+ setIsManualAcpConfiguration(false);
519
+ setHasAttemptedSubmit(false);
520
+ }}
521
+ size="xs"
522
+ variant="ghost"
523
+ >
524
+ Search registry
525
+ </Button>
526
+ </div>
527
+ <SettingsGroup variant="plain">
528
+ <ProviderSettingsForm
529
+ definition={driverOption}
530
+ value={configDraft}
531
+ idPrefix="add-provider-acpRegistry-manual"
532
+ variant="settings"
533
+ onChange={setConfigDraft}
534
+ />
535
+ {isLocalAcp ? (
536
+ <ProviderEnvironmentSection
537
+ environment={localEnvironment}
538
+ onChange={setLocalEnvironment}
539
+ />
540
+ ) : null}
541
+ </SettingsGroup>
542
+ {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
543
+ <p className="text-2xs text-destructive">{acpSelectionError}</p>
544
+ ) : null}
545
+ </div>
546
+ ) : (
547
+ <>
548
+ <AcpRegistrySearchStep
549
+ environmentId={environmentId}
550
+ registry={registry}
551
+ providerInstances={settings.providerInstances}
552
+ onPrepared={handleAcpPrepared}
553
+ onManualConfiguration={handleManualAcpConfiguration}
554
+ onLocalConfiguration={handleLocalAcpConfiguration}
555
/>
493
- ) : null}
494
- </SettingsGroup>
495
- {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
496
- <p className="text-2xs text-destructive">{acpSelectionError}</p>
497
- ) : null}
556
+ {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
557
+ <p className="mt-2 text-2xs text-destructive">{acpSelectionError}</p>
558
+ ) : null}
559
+ </>
560
+ )}
561
</div>
499
- ) : (
500
- <>
501
- <AcpRegistrySearchStep
502
- environmentId={environmentId}
503
- registry={registry}
504
- providerInstances={settings.providerInstances}
505
- onPrepared={handleAcpPrepared}
506
- onManualConfiguration={handleManualAcpConfiguration}
507
- onLocalConfiguration={handleLocalAcpConfiguration}
508
- />
509
- {isAcpRegistry && hasAttemptedSubmit && acpSelectionError ? (
510
- <p className="mt-2 text-2xs text-destructive">{acpSelectionError}</p>
511
- ) : null}
512
- </>
513
- )}
514
- </div>
562
+ </CollapsiblePanel>
563
+ </Collapsible>
564
) : null}
565
566
{isAcpRegistry && wizardStep === 1 && selectedAcp ? (
apps/web/src/components/settings/providerDriverMeta.ts
+3
@@ -17,11 +17,13 @@ export const providerClients = makeProviderClientRegistry([
17
{
18
driverKind: ProviderDriverKind.make("codex"),
19
label: "Codex",
20
+ acpRegistryAgentIds: ["codex-acp"],
21
settingsSchema: CodexSettings,
22
},
23
{
24
driverKind: ProviderDriverKind.make("claudeAgent"),
25
label: "Claude",
26
+ acpRegistryAgentIds: ["claude-acp"],
27
settingsSchema: ClaudeSettings,
28
},
29
cursorClient,
@@ -31,6 +33,7 @@ export const providerClients = makeProviderClientRegistry([
33
{
34
driverKind: ProviderDriverKind.make("antigravity"),
35
label: "Antigravity",
36
+ acpRegistryAgentIds: ["antigravity-acp"],
37
settingsSchema: AntigravitySettings,
38
},
39
museClient,
docs/user/providers-acp.md
+8
-7
@@ -5,13 +5,14 @@ T3 Code can run installed ACP commands or coding agents from the official
5
own models, tools, and sign-in, while T3 Code provides projects, threads, checkpoints, and task
6
delegation.
7
8
-Google Antigravity is available through its official `antigravity-acp` Registry entry. Add it like
9
-any other Registry agent; it does not need an Antigravity-specific T3 Code provider.
8
+Agents that T3 Code supports as their own providers, such as Codex, Claude, Cursor, Grok, OpenCode,
9
+Pi, and [Antigravity](./providers-antigravity.md), don't appear in the Registry list. Enable them in
10
+**Settings → Providers** instead.
11
12
T3 Code prefers the current ACP v2 preview protocol and uses its richer messages, usage, plans,
13
configuration, compaction, and agent-terminal updates when the agent supports them. It also
13
-negotiates ACP v1 for Registry agents that have not migrated yet, so agents such as Pi continue to
14
-work through the same generic integration.
14
+negotiates ACP v1 for Registry agents that have not migrated yet, so they continue to work through
15
+the same generic integration.
16
17
Claude Agent uses the ACP v2 preview by default for Registry and local `claude-agent-acp`
18
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.
21
## Add an agent
22
23
1. Open **Settings → Providers**.
23
-2. Select **Add provider** and search the ACP Registry.
24
-3. Search for the agent and select **Add** on its result.
24
+2. Select **Add provider**, then **Show more**.
25
+3. Search the ACP Registry for the agent and select **Add** on its result.
26
4. Confirm the name and instance ID, then complete the agent's sign-in step.
27
28
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.
30
31
## Add a local command
32
32
-In **Settings → Providers → Add provider**, select **Local ACP command**. Enter the executable
33
+In **Settings → Providers → Add provider**, select **Show more**, then **Local ACP command**. Enter the executable
34
name or path on the selected environment, add one literal argument per row, and choose a display
35
name. For DeepSeek Harness, use `dsh` with arguments `--profile` and `acp`.
36
docs/user/providers-muse.md
+1
-1
@@ -1,6 +1,6 @@
1
# Muse Code
2
3
-Muse Code is a beta integration and is disabled by default. Install
3
+Muse Code is disabled by default. Install
4
[Muse Code](https://dev.meta.ai/docs/muse-code) on the machine hosting your
5
environment, then run `muse login` as the account that runs T3 Code.
6
packages/client-runtime/src/state/server.ts
+2
-2
@@ -1305,8 +1305,8 @@ export function createServerEnvironmentAtoms<R, E>(
1305
searchAcpRegistry: createEnvironmentRpcQueryAtomFamily(runtime, {
1306
label: "environment-data:server:acp-registry:search",
1307
tag: WS_METHODS.serverSearchAcpRegistry,
1308
- staleTimeMs: 0,
1309
- idleTtlMs: 0,
1308
+ // Reopening Add provider reuses recent results; submitting the same search refreshes it.
1309
+ staleTimeMs: 5 * 60_000,
1310
}),
1311
configProjection,
1312
welcome,
packages/provider-core/src/client.ts
+4
@@ -40,6 +40,10 @@ export interface ProviderClientDefinition {
40
readonly environmentFields?: ReadonlyArray<ProviderEnvironmentField>;
41
readonly hasDefaultInstance?: boolean;
42
readonly badgeLabel?: string;
43
+ /** `false` lists the provider under Add provider's "Show more" instead of up front. */
44
+ readonly featured?: boolean;
45
+ /** ACP Registry entries for this same agent, left out of Add provider's Registry list. */
46
+ readonly acpRegistryAgentIds?: ReadonlyArray<string>;
47
}
48
49
export function defineProviderClient<const Definition extends ProviderClientDefinition>(
packages/provider-cursor/src/client.ts
+1
@@ -6,6 +6,7 @@ import { CursorSettings } from "./settings.ts";
6
export const cursorClient = defineProviderClient({
7
driverKind: ProviderDriverKind.make("cursor"),
8
label: "Cursor",
9
+ acpRegistryAgentIds: ["cursor"],
10
settingsSchema: CursorSettings,
11
environmentFields: [
12
{
packages/provider-fx/src/client.ts
+1
@@ -12,6 +12,7 @@ import { FxSettings } from "./settings.ts";
12
export const fxClient = defineProviderClient({
13
driverKind: ProviderDriverKind.make("fx"),
14
label: "fx",
15
+ featured: false,
16
settingsSchema: FxSettings,
17
icon: {
18
viewBox: "166.241 0 155.861 156",
packages/provider-grok/src/client.ts
+1
@@ -6,6 +6,7 @@ import { GrokSettings } from "./settings.ts";
6
export const grokClient = defineProviderClient({
7
driverKind: ProviderDriverKind.make("grok"),
8
label: "Grok",
9
+ acpRegistryAgentIds: ["grok-build"],
10
settingsSchema: GrokSettings,
11
icon: {
12
viewBox: "0 0 24 24",
packages/provider-muse/src/client.ts
-1
@@ -7,7 +7,6 @@ export const museClient = defineProviderClient({
7
driverKind: ProviderDriverKind.make("muse"),
8
label: "Muse Code",
9
settingsSchema: MuseSettings,
10
- badgeLabel: "Beta",
10
icon: {
11
viewBox: "0 0 287.56 191",
12
fill: { light: "#0081fb", dark: "#0081fb" },
packages/provider-opencode/src/client.ts
+1
@@ -6,6 +6,7 @@ import { OpenCodeSettings } from "./settings.ts";
6
export const openCodeClient = defineProviderClient({
7
driverKind: ProviderDriverKind.make("opencode"),
8
label: "OpenCode",
9
+ acpRegistryAgentIds: ["opencode", "opencode-v2"],
10
settingsSchema: OpenCodeSettings,
11
icon: {
12
viewBox: "0 0 32 40",
packages/provider-pi/src/client.ts
+1
@@ -6,6 +6,7 @@ import { PiSettings } from "./settings.ts";
6
export const piClient = defineProviderClient({
7
driverKind: ProviderDriverKind.make("pi"),
8
label: "Pi",
9
+ acpRegistryAgentIds: ["pi-acp"],
10
settingsSchema: PiSettings,
11
icon: {
12
viewBox: "165.29 165.29 469.43 469.43",