Bring the new backend to `vod import` and @vod/manager, insulating them from SQL and database implementation knowledge.9a1b6c8
Migrate remaining ingestion gaps to use the new backend interface.66503f0
Extract a maintenance backend, matching recent ingestion work.7809173
Finished extracting ingestion behind the new backend interface.6064eda
Next phase of backend extraction: atomic registration, policy updates, asset publication, and archive checkpoint/finalization commands.f48c963
Next phase of new backend abstraction: added backend.recordings.observe() with a coherent metadata snapshot, removed SQL and libSQL types from recording observation.c68dbb8
New backend contract abstracting database for vod CLI.2cf9342
Crucial maintenance database read optimization: discourage selection of source_bucket index when querying for recordings overlapping a given day, which was causing bucket-wide scans.0e5080c
New StaticVodPlayer component, a React client island rendered on camera-day routes that plays the video using static build-time playlist data (zero @vod/api or database queries). Requires @astrojs/react integration and a revised export format.dde6b18
More maintenance-related database optimizations, this time for timestamp work. When finding batches to claim, the query changes from `WHERE state!='published'` to `WHERE state IN ('prepared','pending','complete')` to utilize the existing index instead of scanning all batches. Also when `vod maintain` polls each minute, it logs cached 'published' totals that refresh hourly (instead of recomputing on every run). In testing, idle scans dropped from 10,000 visits per query to zero.c7bc4f1
Database optimizations galore for day previews (primarily affecting the maintenance loop). The recording interval-overlap query, formerly `WHERE r.start_utc_ms<day_end AND r.end_utc_ms>day_start`, now uses a fixed 24-hour lookback (`AND r.start_utc_ms>day_start - 24h`) so that the start-time index alone narrows the query to 2 days of recordings (instead of all previous recordings). The 24h is conservative, but if ever a recording covers more than 24h wall time, it will need special treatment. In testing, a synthetic physical-preview scan dropped from 50,000 visits to zero.46d0ae3
Another database read optimization: schema checks (triggered repeatedly by publish) are cached per database client, including concurrent requests. Migrations clear the cache.73e795d
Publishing unconditionally invalidates calendars once per process per published day. This brings the number of calendar fetches during publishing to zero (from a lot). The result should be occasional, as-needed invalidation of historical months, and regular but not constant invalidation of the current month, which is about right. The occasional unnecessary invalidation should cost a lot less than the repeated calendar queries that power conditional invalidation.3a21424
Merge branch 'batch-review'c93c1d2
Make validation errors, batch run errors, and overall review progress more prominent in the batch review UI.1cb88fe
Increase caching in @vod/api and run diagnostics on API requests, query counts, returned rows, and cache outcomes. The goal is to reduce row reads in Turso by 75% (they are currently a bit out of hand at ~100 million/day).463faf3
Make the batch review workspace a full-page route at /review in the @vod/manager UI. The review interface itself is now a React component, instead of an iframe embedding script output. The dependency is now inverted: ring-review.ts (the aforementioned script) now embeds the React component and produced a standalone, offline bundle.2773516
Add batch import review workspace to @vod/manager. It uses the new decisions.json workflow to generate a supplemental review batch. The whole process--review, import, and publish--can now be completed in the UI.8f80bc3
Batch-wide review discovery and importer adapter interface. Creates versioned decision bundles with stale-evidence validation, per-day decision files, and a supplemental batch-plan export.9c7919e
Use original output location of an import's report.json when computing relative paths within it. The new behavior applies to both the HTML generator and vod import --review. Allows, e.g., collision sources to be found after the import bundle is moved.8790a06
Add a ring-review.ts script that generates a standalone HTML page for making Ring import review decisions (camera labels, timestamps, selecting from key collision alternatives). Also create a unified decisions schema that incorporates each of those types of decisions (instead of requiring separate files for --labels and --timestamps).36675d1
Make sprite generation more robust: if only the final sample is unavailable, sprite generation succeeds with one fewer tile. Sheet counts and sample metadata reflect the actual frames.671d514
vod import --review only selects and hashes unresolved recordings (those needing review), and re-evaluates only the selected OCR records.f8106bb
New import reports include sha256 for issues tied to known source files, making it easier to create review JSON to supply import with corrections to the run in the report.235cb9e
Make distant paths absolute in the shared manifest writer (used by `vod import` workflows). Specifically, when the relative path climbs all the way to $HOME or above (or to / from anywhere), use the absolute path instead of the relative path.591405c
Add corrections.md with steps for reviewing batch or import runs and supplying corrections.c7d5a14
Merge branch 'batch-manager'506bf50
Grab bag of batch- and import-related improvements:19bae4f
Merge branch 'batch-manager'cddb398
Batch improvements: run and status now show readable summaries, with failed jobs first and repeated at the end. Import issues include source paths and exclusion reasons. Publication failures retain recording keys, pipeline steps, and stderr logs. --json provides structured output.491dafa
Use shared theme/branding from @vod/ui in @vod/inventory.b80264f
Remove `bun_run` from helpers.sh. Better to be explicit about --env-file=.env.local or --env-file=.env.prod-db3262c7c
New `vod batch` command for managing batch jobs defined in a JSON file. Handles the manifest handoff from an import adapter to publish, handles partial success and allows resuming jobs.78769c8
Refine sprite sampling intervals: 5s for clips up to 2m long, 10s for clips 2-5m long, and 20s for clips longer than 5m.6d3d231
For clips under 60s, make preview sprites at 5s intervals (instead of the default 20s).4f12fd8
Make full/portrait driver inset 20% larger when generating dash-composite videos.3066f40
Phase 3 of import refactor. Implemented across all four adapters:952cf8c
Phase 2 of import refactor. Extract @vod/wyze, @vod/insta360-run, and @vod/dashcam. Move Ring orchestration into @vod/ring. Also:d4c0532
Phase 1 of major import adapter refactor. wyze, dashcam, insta360-run, and ring will all be packaged separately, will all implement a shared contract defined in new packages @vod/import, and will all share media handling utilities extracted into new package @vod/media.b030ce8
Re-organize environments in @vod/api. Use .env.local instead of .dev.vars; override with `vite -m prod-db` (or `bun run dev -m prod-db`) to use env.prod-db.8739478
Add ring cameras to default preset.f2ee3b8
Merge branch 'vod-ring'887a81e
vod-player-astro now starts scrubbing day previews at the first available recording instead of midnight, avoiding long stretches of "(no data)". (It already aligned the end of the scrub axis to the last available recording.)ff1f1fa
Add all four Ring cameras to vod.config.json. Add cross-crop OCR consensus and hash-bound timestamp confirmations. Installed reference datasets—including their images—under ~/.local/share/vod/ring. Simplified workflow:d4581fb
Implement `vod import --preset ring`, producing a manifest with camera names (doorbell, backyard, pond, driveway) and OCR-derived authoritative timestamps. The default policy is to permanently store full-quality playback assets on R2 (copies of originals here).41b27dd
Merge branch 'main' into vod-ringf4e56a9
Seasonal (winter) labelled references increase accuracy on the winter samples to 53/53.aed48e1
New `vod import --preset insta36-run` command to process running footage for ingestion. Playback renditions are transcoded from originals (a vod first). This reduces the >1440p 40 Mbps HEVC exports to 1080p H.264 targeting 8 Mbps. Audio is filtered through 150 Hz high-pass (road noise can be overpowering otherwise) and, for actual running clips, reduced by about 11 dB overall (a courtesy to viewers since the clips are mostly heavy breathing).f257a08
Phase 2 of Ring OCR and frame classification pipeline. MobileNet on CPU correctly predicted 76/76 camera locations in evaluation, averaging 19 ms/frame. MacOS OCR correctly read 59/59 burned-in timestamps from the confirmed set.69d0830
Phase 1 of a frame classification and OCR pipeline to preprocess and sort Ring footage prior to ingestion.3341d7c
Finish rebasing social-preview-v2 onto main after major API refactor.ac333d0
Add script to capture per-preset OpenGraph preview screenshots via og-snap. Also use direct og-snap manifest integration for meta tag injection. Currently, og-snap is provided via global `bun link`. We may vendor it using release tarballs once things stabilize.c9caeda
Include audioSource transcripts in view transcript responses, deduplicated within each response. Segments retain source IDs and link to the requested view.7087a6e
Based on feedback from attempted migration of days-next:bbc8c90
Migrate @vod/web to use new /api/views route for listings, playback, and calendars.90034f3
Refactor config and API so that 'views' (formerly 'locations') and 'sources' (formerly 'cameras') are no longer mixed in the API. To keep configuration relatively simple, sources can be promoted to views with `publish: true`. Most consumers will only care about views. Sources also now include `name` and `mediaType` properties. `name` gives them a published display name without requiring a separate view definition, while `mediaType` makes 'audio', 'video', or 'audio/video' (default) explicit.69f53e0