Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
snapdiff
command
snapdiff is a human-in-the-loop review tool for agent-driven screenshot test workflows.
|
snapdiff is a human-in-the-loop review tool for agent-driven screenshot test workflows. |
|
internal
|
|
|
apply
Package apply executes the reviewer's verdicts against the git working tree: approved items are left alone, rejected items are reverted (via `git checkout <base_ref> -- <path>` for tracked files, or `os.Remove` for untracked-added files).
|
Package apply executes the reviewer's verdicts against the git working tree: approved items are left alone, rejected items are reverted (via `git checkout <base_ref> -- <path>` for tracked files, or `os.Remove` for untracked-added files). |
|
config
Package config loads and validates the per-project snapdiff.toml.
|
Package config loads and validates the per-project snapdiff.toml. |
|
gallery
Package gallery enumerates all snapshot PNGs in a repository's working tree (subject to the configured globs).
|
Package gallery enumerates all snapshot PNGs in a repository's working tree (subject to the configured globs). |
|
gitscan
Package gitscan enumerates snapshot diffs in a git repo: files matching configured globs whose content differs between a base ref and the working tree (or which are untracked / deleted).
|
Package gitscan enumerates snapshot diffs in a git repo: files matching configured globs whose content differs between a base ref and the working tree (or which are untracked / deleted). |
|
imdiff
Package imdiff renders a per-pixel highlight overlay PNG comparing a baseline image to a current image.
|
Package imdiff renders a per-pixel highlight overlay PNG comparing a baseline image to a current image. |
|
lifecycle
Package lifecycle owns the daemon shutdown sequence: once the reviewer finalizes the session, linger briefly so the browser can render the success state, then gracefully shut down the HTTP server.
|
Package lifecycle owns the daemon shutdown sequence: once the reviewer finalizes the session, linger briefly so the browser can render the success state, then gracefully shut down the HTTP server. |
|
review
Package review holds the in-memory state for one review cycle: the list of diffed snapshots, per-file verdicts, and a "done" signal channel closed when the reviewer hits Finalize.
|
Package review holds the in-memory state for one review cycle: the list of diffed snapshots, per-file verdicts, and a "done" signal channel closed when the reviewer hits Finalize. |
|
web
Package web wires the chi router, templ views, and static assets that make up the snapdiff review UI.
|
Package web wires the chi router, templ views, and static assets that make up the snapdiff review UI. |
|
web/views
templ: version: v0.3.1020
|
templ: version: v0.3.1020 |
|
tests-screenshots
|
|
|
fixtures/build_fixture
command
Command build_fixture creates a deterministic temp git repo with a known set of snapshot diffs, used by the Playwright screenshot suite to boot a stable snapdiff session.
|
Command build_fixture creates a deterministic temp git repo with a known set of snapshot diffs, used by the Playwright screenshot suite to boot a stable snapdiff session. |
Click to show internal directories.
Click to hide internal directories.