feat: wire paseo agent provider catalog

This commit is contained in:
Mohamed Boudra
2026-07-02 11:07:49 +02:00
parent fce3d14a83
commit 4e5737169f
20 changed files with 1226 additions and 83 deletions
+3 -3
View File
@@ -12,7 +12,7 @@ type PaseoAgentDaemonClient = Pick<
| "connect"
| "removePaseoAgentProvider"
| "setPaseoAgentProvider"
| "storePaseoAgentChatGptCredential"
| "storePaseoAgentOAuthCredential"
>;
interface OpenRouterProviderInput {
@@ -82,8 +82,8 @@ export async function seedChatGptProvider(providerName: string): Promise<void> {
models: [{ id: "gpt-5.3-codex", reasoning: true }],
},
});
await client.storePaseoAgentChatGptCredential({
providerName,
await client.storePaseoAgentOAuthCredential({
name: providerName,
credential: {
type: "oauth",
access: "fake-access-token",
@@ -2,6 +2,9 @@ import type { RedactedPaseoAgentProviderConfig } from "@getpaseo/protocol/messag
import type { PaseoAgentSetProviderInput } from "@/hooks/use-paseo-agent-providers";
export function paseoAgentAuthLabel(auth: RedactedPaseoAgentProviderConfig["auth"]): string {
if (!auth) {
return "Auth state unavailable";
}
if (auth.kind === "oauth") {
return auth.configured ? "ChatGPT login stored" : "Login required";
}