Lines 480-520javascript
480 * Review only the commits since the last completed review, carrying that
481 * review's findings forward: a verification pass re-checks them against
482 * the fix diff, then a discovery pass reviews the full PR fresh. Falls
483 * back to a full-PR review when no previous state exists, history was
484 * rewritten, or the run repeats an already-reviewed commit.
488 incremental: z.boolean().default(true)
492import path from "path";
493import { pathToFileURL } from "url";
494import { createJiti } from "jiti";
495function defineConfig(config) {
498async function loadConfig(cwd, configPath) {
499 const absolutePath = path.resolve(cwd, configPath ?? "revuiw.config.ts");
500 const jiti = createJiti(pathToFileURL(import.meta.url).href);
501 const loaded = await jiti.import(absolutePath, { default: true });
502 return uiReviewConfigSchema.parse(loaded);
MediumDynamic Require
Package source references dynamic require/import behavior.
dist/chunk-EXHMUZJP.jsView on unpkg · L500 505// src/review/suggestions.ts
506import { createHash } from "crypto";
507import { z as z2 } from "zod";
508var suggestionMarkerPrefix = "<!-- revuiw:suggestion ";
509var suggestionPayloadSchema = z2.object({
510 path: z2.string().min(1),
511 line: z2.number().int().positive(),
512 start_line: z2.number().int().positive().optional(),
513 side: z2.literal("RIGHT"),
514 start_side: z2.literal("RIGHT").optional(),
515 body: z2.string().min(1),
516 fingerprint: z2.string().min(1)
518function parseChangedLines(unifiedZeroDiff) {
519 const lines = /* @__PURE__ */ new Map();
520 for (const chunk of splitDiffByFile(unifiedZeroDiff)) {