mirror of
https://github.com/block/buzz.git
synced 2026-11-12 20:31:12 +00:00
refactor: rename ACP "provider" to "runtime" across the codebase (#783)
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user