mirror of
https://github.com/backnotprop/plannotator.git
synced 2026-09-14 14:17:26 +08:00
afac44b940
Replaces the all-files renderer with Pierre's virtualized CodeView (one scroller, identical look, scales to huge diffs); deletes the legacy AllFilesDiffView/LazyFileDiff and their flag; single-file panels stay on FileDiff. @pierre/diffs pinned exact 1.2.8 (1.2.9's tree is broken on npm — see #880). Also ships: diff staleness detection ('Diff out of date · Refresh' toolbar notice backed by shared per-VCS fingerprints + GET /api/diff/fresh on both Bun and Pi servers), a stale-content guard so files edited mid-review degrade to raw-patch view instead of breaking virtualization, the Ask AI wrong-file fix (pre-existing), and toolbar/header UI polish (global settings cog, aligned sem badges, no all-files split dragger). Hardened through five review waves; tested with 1384 passing tests incl. real-git fingerprint and patch-consistency suites. Known minor gaps documented in the PR.
46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
/**
|
|
* Node-compatible servers for Plannotator Pi extension.
|
|
*
|
|
* Pi loads extensions via jiti (Node.js), so we can't use Bun.serve().
|
|
* These are lightweight node:http servers implementing just the routes
|
|
* each UI needs — plan review, code review, and markdown annotation.
|
|
*/
|
|
|
|
export type {
|
|
DiffOption,
|
|
DiffType,
|
|
GitContext,
|
|
} from "./generated/review-core.js";
|
|
export type { WorkspaceDiffType } from "./generated/review-workspace.js";
|
|
export type { VcsSelection } from "./server/vcs.js";
|
|
export {
|
|
type AnnotateServerResult,
|
|
startAnnotateServer,
|
|
} from "./server/serverAnnotate.js";
|
|
export {
|
|
type PlanServerResult,
|
|
startPlanReviewServer,
|
|
} from "./server/serverPlan.js";
|
|
export {
|
|
type ReviewServerResult,
|
|
startReviewServer,
|
|
} from "./server/serverReview.js";
|
|
export {
|
|
canStageFiles,
|
|
detectManagedVcs,
|
|
detectRemoteDefaultCompareTarget,
|
|
detectVcs,
|
|
getGitContext,
|
|
getVcsContext,
|
|
getVcsDiffFingerprint,
|
|
getVcsFileContentsForDiff,
|
|
prepareLocalReviewDiff,
|
|
resolveInitialDiffType,
|
|
resolveVcsCwd,
|
|
reviewRuntime,
|
|
runGitDiff,
|
|
runVcsDiff,
|
|
stageFile,
|
|
unstageFile,
|
|
} from "./server/vcs.js";
|