Server: storage, sync, op API, model providers and usage

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Fable 5.2 committed 2026-11-15 14:30:50 -05:00
1 parent 75c5762ae7
commit ca63e54873
9 files changed
+2087

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
/** The shapes of the structured results, shared by every server-side provider. */
import { z } from "zod";
import type { SchemaName } from "../src/llm/types";
export const schemas: Record<SchemaName, z.ZodType> = {
cascade: z.object({ levels: z.number().int(), reason: z.string() }),
resolve: z.object({ resolutions: z.array(z.object({ id: z.string(), text: z.string(), rationale: z.string() })) }),
contradictions: z.object({
contradictions: z.array(z.object({ node: z.string(), other: z.string(), explanation: z.string(), text: z.string() })),
}),
};