feat(shared): expose pi-mono connector catalog to renderer
Add @shared/connector-catalog.ts mirroring the 26-entry pi-mono catalog from src/main/connector-definitions so renderer can drive provider UI without importing main-process modules. Widen connectorInputSchema to accept the new ConnectorId union (5 OAuth + 18 API key + 3 cloud).
This commit is contained in:
1 parent
ea78c09615
commit
6a25379995
2 files changed
+327
-1
No files matched your search
@@ -11,8 +11,40 @@ export const companyInputSchema = z.object({
|
||||
executionMode: z.enum(["ai_ceo", "ai_cofounder"]).default("ai_ceo"),
|
||||
});
|
||||
|
||||
export const connectorIdEnum = z.enum([
|
||||
// OAuth (5)
|
||||
"claude-pro",
|
||||
"openai-codex",
|
||||
"github-copilot",
|
||||
"gemini-cli",
|
||||
"antigravity",
|
||||
// API key (18)
|
||||
"anthropic",
|
||||
"openai",
|
||||
"google",
|
||||
"mistral",
|
||||
"groq",
|
||||
"cerebras",
|
||||
"xai",
|
||||
"openrouter",
|
||||
"vercel-ai-gateway",
|
||||
"zai",
|
||||
"opencode",
|
||||
"opencode-go",
|
||||
"huggingface",
|
||||
"kimi-coding",
|
||||
"minimax",
|
||||
"minimax-cn",
|
||||
"fireworks",
|
||||
"fireworks-firepass",
|
||||
// Cloud (3)
|
||||
"amazon-bedrock",
|
||||
"azure-openai",
|
||||
"google-vertex",
|
||||
]);
|
||||
|
||||
export const connectorInputSchema = z.object({
|
||||
id: z.enum(["codex_local", "claude_local", "claude_compatible", "claude_compat_2", "claude_compat_3", "claude_compat_4", "claude_compat_5", "claude_compat_6", "claude_compat_7", "claude_compat_8", "claude_compat_9", "claude_compat_10", "gemini_local"]),
|
||||
id: connectorIdEnum,
|
||||
command: z.string().min(1),
|
||||
model: z.string().nullable().optional(),
|
||||
envBindingText: z.string().default(""),
|
||||
|
||||
Reference in new issue
Block a user