fix(connectors): guard pi provider resolution

This commit is contained in:
ZacharyZhang-NY committed 2026-04-22 18:58:30 -04:00
1 parent 0d9f4f15eb
commit 7793f2da35
6 files changed
+107 -17

No files matched your search

+5 -1
View File
@@ -23,6 +23,7 @@
* - `connector-definitions/cloud.ts` — 3 Cloud providers
*/
import type { KnownProvider } from "@mariozechner/pi-ai";
import type { ConnectorId } from "@shared/types";
import { OAUTH_CONNECTORS, API_KEY_CONNECTORS, CLOUD_CONNECTORS } from "./connector-definitions/index";
@@ -67,11 +68,14 @@ export type ConnectorAuth =
| ConnectorAuthAzure
| ConnectorAuthGcpAdc;
export type LocalModelResolverProvider = "fireworks" | "fireworks-firepass";
export type ConnectorProvider = KnownProvider | LocalModelResolverProvider;
export interface ConnectorDefinition {
/** Stable AgentCompany id; the `connectors` table primary key. */
id: ConnectorId;
/** pi-ai `KnownProvider` id (or a locally-resolved provider for Fireworks). */
provider: string;
provider: ConnectorProvider;
/** Human-readable label for the Settings panel and onboarding rail. */
label: string;
/** One-line explanation shown under the label. */