Lines 901-941javascript
901 maxFileChangedLines: z4.number().int().positive().default(defaultDiffLimits.maxFileChangedLines),
902 maxTotalBytes: z4.number().int().positive().default(defaultDiffLimits.maxTotalBytes)
904var uiReviewConfigSchema = z4.object({
905 install: commandSchema.optional(),
906 setup: commandSchema.optional(),
907 start: z4.string().min(1),
908 ready: z4.string().url(),
909 stop: commandSchema.optional(),
910 timeoutMs: z4.number().int().positive().default(12e4),
911 /** Verify the review browser can launch before spending any agent time. */
912 preflight: z4.boolean().default(true),
913 diff: diffConfigSchema.default(defaultDiffConfig),
914 agents: agentsSchema.default({ reviewer: { adapter: "claude-code" } })
916function defineConfig(config) {
919async function loadConfig(cwd, configPath) {
920 const absolutePath = path5.resolve(cwd, configPath ?? "revuiw.config.ts");
921 const jiti = createJiti(pathToFileURL(import.meta.url).href);
922 const loaded = await jiti.import(absolutePath, { default: true });
923 return uiReviewConfigSchema.parse(loaded);
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/chunk-GHUZSYI7.jsView on unpkg · L921 927import { readdir, readFile as readFile3, stat, writeFile as writeFile5 } from "fs/promises";
928import path6 from "path";
929var log6 = logger.child("report");
930var DEFAULT_MAX_IMAGE_BYTES = 5 * 1024 * 1024;
931var DEFAULT_MAX_TOTAL_BYTES = 50 * 1024 * 1024;
932var MIME_BY_EXTENSION = {
934 ".jpg": "image/jpeg",
935 ".jpeg": "image/jpeg",
936 ".webp": "image/webp",
939async function writeHtmlReport(options) {
940 const maxImageBytes = options.maxImageBytes ?? DEFAULT_MAX_IMAGE_BYTES;
941 const maxTotalBytes = options.maxTotalBytes ?? DEFAULT_MAX_TOTAL_BYTES;