Lines 1390-1430javascript
1390 /** Rejected with a migration hint: zod would otherwise strip the key and silently drop the old timeout. */
1391 timeoutMs: z6.never("`timeoutMs` was replaced by `readyTimeoutMs`, `commandTimeoutMs`, and per-agent `agents.<agent>.timeout` ({ globalMs, inactivityMs }); see the README's Timeouts section").optional(),
1392 /** Max time for browser preflight and the app-ready wait, in milliseconds. */
1393 readyTimeoutMs: z6.number().int().positive().default(12e4),
1394 /** Max runtime for each install/setup/stop shell command, in milliseconds. */
1395 commandTimeoutMs: z6.number().int().positive().default(10 * 6e4),
1396 /** Verify the review browser can launch before spending any agent time. */
1397 preflight: z6.boolean().default(true),
1398 diff: diffConfigSchema.default(defaultDiffConfig),
1399 agents: agentsSchema.prefault({}),
1400 comment: commentConfigSchema.prefault({}),
1401 suggestions: suggestionsConfigSchema.prefault({}),
1402 /** Review only commits since the last completed review, carrying previous findings forward. Falls back to a full-PR review when no previous state exists or history was rewritten. */
1403 incremental: z6.boolean().default(true)
1405function defineConfig(config) {
1408async function loadConfig(cwd, configPath) {
1409 const absolutePath = path5.resolve(cwd, configPath ?? "revuiw.config.ts");
1410 const jiti = createJiti(pathToFileURL(import.meta.url).href);
1411 const loaded = await jiti.import(absolutePath, { default: true });
1412 return uiReviewConfigSchema.parse(loaded);
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/chunk-454MQ2HC.jsView on unpkg · L1410 1416var log6 = logger.child("merge");
1417function reconcileVerification(verification, previousOpen) {
1418 const previousIds = new Set(previousOpen.map((finding) => finding.id));
1420 for (const finding of verification?.findings ?? []) {
1421 if (previousIds.has(finding.id)) {
1422 kept.push({ ...finding, suggestedFix: null });
1424 log6.warn(`Verification pass reported unknown finding ${finding.id}; dropping it (the discovery pass owns new findings)`);
1427 const keptIds = new Set(kept.map((finding) => finding.id));
1428 for (const stored of previousOpen) {
1429 if (keptIds.has(stored.id)) continue;
1430 log6.warn(`Previous finding ${stored.id} missing from the verification output; carrying it forward as open`);