refactor: rename ACP "provider" to "runtime" across the codebase (#783)

This commit is contained in:
Will Pfleger
2026-06-07 14:40:59 -04:00
committed by GitHub
parent 056b87d3da
commit 0a6067ca1b
69 changed files with 1255 additions and 747 deletions

View File

@@ -14,7 +14,7 @@ import {
KIND_USER_STATUS,
} from "@/shared/constants/kinds";
import type {
RawAcpProviderCatalogEntry,
RawAcpRuntimeCatalogEntry,
RawInstallRuntimeResult,
} from "@/shared/api/tauri";
@@ -33,7 +33,7 @@ type MockCommandAvailability = {
type E2eConfig = {
mode?: "mock" | "relay";
mock?: {
acpProvidersCatalog?: RawAcpProviderCatalogEntry[];
acpRuntimesCatalog?: RawAcpRuntimeCatalogEntry[];
installAcpRuntimeResult?: RawInstallRuntimeResult;
managedAgentPrereqs?: {
acp?: MockCommandAvailability;
@@ -3788,10 +3788,10 @@ async function handleListRelayAgents(): Promise<RawRelayAgent[]> {
return mockRelayAgents.map(cloneRelayAgent);
}
async function handleDiscoverAcpProviders(
async function handleDiscoverAcpRuntimes(
config: E2eConfig | undefined,
): Promise<RawAcpProviderCatalogEntry[]> {
const configured = config?.mock?.acpProvidersCatalog;
): Promise<RawAcpRuntimeCatalogEntry[]> {
const configured = config?.mock?.acpRuntimesCatalog;
if (configured) {
return configured;
}
@@ -3859,7 +3859,7 @@ async function handleDiscoverAcpProviders(
async function handleInstallAcpRuntime(
args: {
providerId?: string;
runtimeId?: string;
},
config: E2eConfig | undefined,
): Promise<RawInstallRuntimeResult> {
@@ -3872,7 +3872,7 @@ async function handleInstallAcpRuntime(
steps: [
{
step: "adapter",
command: `mock install ${args.providerId ?? "unknown"}`,
command: `mock install ${args.runtimeId ?? "unknown"}`,
success: true,
stdout: "mock: installed successfully",
stderr: "",
@@ -5474,10 +5474,10 @@ export function maybeInstallE2eTauriMocks() {
case "get_relay_http_url":
return getRelayHttpUrl(activeConfig);
case "discover_acp_providers":
return handleDiscoverAcpProviders(activeConfig);
return handleDiscoverAcpRuntimes(activeConfig);
case "install_acp_runtime":
return handleInstallAcpRuntime(
payload as { providerId?: string },
payload as { runtimeId?: string },
activeConfig,
);
case "discover_backend_providers":