Files
RAG/frontend/scripts/generate-openapi.mjs
YoVinchen ecdb10c37a
Some checks failed
verify / verify (push) Has been cancelled
Make the governed RAG evidence path executable end to end
Separate local parsing from model indexing, bind review decisions to immutable manifests, persist vectors behind active profiles, and expose retrieval, chat, evaluation, and document workflows through the React workbench.

Constraint: Live Bailian authentication currently fails for all three configured capabilities

Rejected: Direct upload-to-embedding flow | bypasses local review and manifest binding

Confidence: high

Scope-risk: broad

Directive: Keep private-data deployment blocked until authentication, RBAC, and separate database roles land

Tested: make verify; fresh and replay Docker document smoke; worker recovery smoke; frozen synthetic evaluation; migration 0003-0004 roundtrip

Not-tested: Successful live Bailian calls, OCR, real multi-user authorization
2026-07-13 05:58:11 +08:00

11 lines
424 B
JavaScript

import { writeFile } from "node:fs/promises";
import { resolve } from "node:path";
import { loadOpenApiSchema, renderOpenApiTypes } from "./openapi-contract.mjs";
const outputPath = resolve("src/api/schema.generated.ts");
const schema = await loadOpenApiSchema();
await writeFile(outputPath, await renderOpenApiTypes(schema), "utf8");
console.log(`Generated ${outputPath} from the offline FastAPI application contract`);