Repository navigation
Releases
Releases · smk762/argus-lightbox
v0.2.0
Added
- README links this UI's row in the suite's What to run for which UI matrix.
index.json1.1 adds an optionalcaption_params: the run settings recorded with every caption (prose model, prompt preset, refine model), written only when all photos agree./docsshows them under the lens version.index.json1.2 adds an optional per-photothumbs: the grid thumbnail at 240 and 360 px wide as well as the 480 px one, narrowest first. The grid serves them withsrcsetandsizesmatched to the column layout, so a phone downloads about a third of the thumbnail bytes it did.lightbox-bake thumbsadds them to an existing bake without re-captioning; the demo tape and the fixture were updated that way.
Changed
- The footer's map-demo link is now Atlas (https://atlas.dragonhound.dev/), was "Atlas Realms" on realms.dragonhound.dev. The painted-map demo moved there; realms.dragonhound.dev is kept for the Realms minigame.
- The hosted demo is re-captioned with argus-lens 0.11.0 using lens's
straightforwardprose prompt preset, not lens's default (detailed). The default wrote mood adjectives and "this is a … photograph" openers into the zero-shot captions and doubled the prose length (smk762/argus-lens#104). - The bake needs argus-lens 0.14.0 or later (was 0.11.0), and the synthetic fixture is re-baked with it. Lens 0.14's assembly keeps some setting and lighting tags that 0.13 dropped (a "sunset" in the beach scene's caption, for example). The hosted demo tape is unchanged.
- Caption-cache files for a profile (
CAPTION_CACHE_KEYset, as Compose does) are now named<sha256>.<key>-<hash>.json, with the key cut to 40 safe characters plus 16 hex of its sha256, so keys that read the same stay apart. 0.1.0's<sha256>.<key>.jsonfiles are still read, so upgrading does not re-caption the folder.
Fixed
- Choosing a caption no longer fails with 403 when the folder server sits behind a reverse proxy that rewrites
Host. ASec-Fetch-Siteheader now decides the same-origin check on its own. Without it,Originis compared withHostorX-Forwarded-Host. - A shared link with a facet group named
constructoror__proto__(?f=constructor:y) no longer stops the grid from rendering. - In a tape bake, a photo whose first record failed no longer keeps its old entry when a later record with the same bytes renders. The fresh render replaces it.
lightbox-bake tape --limit -1is a usage error, not a traceback.lightbox-bake fixture --checkignores lens's randomtrainingvariants only undercaption_variants, andgenerated_atonly at the top level, so a real difference elsewhere is no longer missed.
Security
- Next.js 16.2.4 → 16.4.6, with
eslint-config-nextto match, vitest 4.1.11 → 4.1.12, and the lockfile's transitive packages updated (postcss, sharp, js-yaml, brace-expansion, minimatch, browserslist, zod and others). This clears all 56 open Dependabot alerts, 5 of them critical, andnpm auditreports none.
v0.1.0
The first release: the standalone demo for argus-lens.
Added
- Gallery navigated by lens's structured captions. Faceted filtering by lens's category buckets: terms within a category are OR'd and categories are AND'd. There are also headcount and camera facets, free-text search over every caption and the raw output, and all state in the URL.
- Ordinary tags that miss the hint list still become facets: known gaps go under their category, the rest under
detail. Rating, sexual and minor-related tags are never added. - The facet lists are loaded from JSON (
FACET_LISTS_JSON). - Facet groups in the sidebar can be collapsed, and the choice is remembered per group.
- Ordinary tags that miss the hint list still become facets: known gaps go under their category, the rest under
- Photo detail dialog:
- Caption tab: the final caption and every variant, with copy buttons and a token count that warns when a caption is over the target backend's budget.
- How it was built tab: raw tags and prose, dropped meta tags, the category buckets, a per-variant trace, compaction notes and headcount evidence.
- Compare tab: the same raw output assembled tags-only, prose-only and hybrid.
- Metadata tab: EXIF (never GPS), provenance and licence, and the
.txtand XMP sidecar downloads. - Swipe or use the arrow keys to move between photos. The grid thumbnail morphs into the detail image with a View Transition.
- The grid and detail view show the zero-shot caption by default.
NEXT_PUBLIC_DEFAULT_CAPTIONnames another variant, orfinalfor lens's own pick. This changes the display only. - Word cloud of caption words or tags, over the current filter or the whole set, with a CSV histogram export.
/docspage and in-context lens help./docsshows the lens version the gallery was baked with and links to PyPI, the source at that version, and lens's docs sections.- Each detail tab links to the matching lens section.
- The Caption tab says which lens version, backend and refine model captioned the photo, taken from the recorded caption.
- The bake (
lightbox-bake):fixture: 12 synthetic scenes, captioned by lens's real assembly and committed asweb/public/data/.tape: the recorded pipeline run, read from the cortex lineage and blob stores.folder: captions a photo directory through a lens server, with a sha256 caption cache.purge.- Every bake re-runs lens's assembly on the raw output to explain it. The recorded caption stays what's shown, and a disagreement sets
explain.drift. A rewrite lens checked and kept is recorded ascaption.refineand is not counted as drift. - Quarry's licence and attribution are mapped onto provenance.
- Your own photos with Docker Compose.
docker compose up --buildserves a gallery of~/Pictures, orPHOTOS_DIR, captioned by argus-lens 0.10.0 (LENS_TAGoverrides). The gallery is published while captions are still being written.- Captioning is hybrid: RAM++ tags plus Florence prose, or an Ollama or ComfyUI vision model. With
OLLAMA_URLset, captions are also refined.compose.gpu.yamladds an NVIDIA GPU. CAPTION_CACHE_KEYkeeps each caption profile's cache apart.make purgestarts over.
- Choosing the final caption in folder mode, for one photo or in bulk. It rewrites
index.json, the XMP sidecar and the caption cache throughPOST /api/caption-choiceon the folder server, and is refused while captions are queued. - Hosted demo (
make pages, Cloudflare Pages on every push tomain). It holds 205 openly licensed photos captioned by argus-lens, with a demo banner, OG/Twitter metadata and a styled 404 page. - Security and privacy:
- GPS is never emitted, and renditions are re-encoded so no source metadata survives.
- The static export gets a strict hash-based CSP with Trusted Types (
web/scripts/csp.mjs). _headersadds HSTS, frame, referrer and permissions policies.- External links open in a new tab without an opener or referrer.
- Accessibility: contrast, link underlines, target sizes, tab semantics, a skip link and reduced motion.
- Docs: README,
docs/cli.md(every subcommand and flag, and running without Docker), and the Argus suite map inCLAUDE.md. - CI on
devandmain: ruff, pytest, eslint, tsc, vitest, the build, and the suite check.