feat(paseo-agent): add browser OAuth start mode

Default daemon-run OAuth to browser mode while keeping device-code explicit for remote-safe setup.
This commit is contained in:
Mohamed Boudra
2026-07-02 14:51:26 +02:00
parent 269aa53c27
commit 6a2b5ea5ea
15 changed files with 575 additions and 120 deletions
@@ -127,6 +127,7 @@ describe("Paseo Agent config RPC schemas", () => {
type: "config.paseo_agent.oauth.start.request",
requestId: "req-oauth-start",
name: "subscription",
mode: "device_code",
});
const response = SessionOutboundMessageSchema.parse({
type: "config.paseo_agent.oauth.start.response",
@@ -147,6 +148,7 @@ describe("Paseo Agent config RPC schemas", () => {
});
expect(request.name).toBe("subscription");
expect(request.mode).toBe("device_code");
expect(response.payload.authorization?.kind).toBe("device_code");
expect(response.payload.authorization?.futureField).toBe("kept");
});
+1
View File
@@ -2042,6 +2042,7 @@ export const PaseoAgentOAuthStartRequestSchema = z.object({
type: z.literal("config.paseo_agent.oauth.start.request"),
requestId: z.string(),
name: z.string().trim().min(1),
mode: z.string().min(1).optional(),
});
export const PaseoAgentOAuthCompleteRequestSchema = z.object({