Repository navigation
Read publications from a local directory during development - #6
Merged
anth-volk merged 2 commits intoOct 14, 2026
Merged
Conversation
MICROCOSM_RUNS_LOCAL_DIR points the metadata and file routes at preserved Microcosm publication directories instead of Blob storage, applying the same size, digest, JSON, Orrery and source-reference checks as publication. The viewer accepts the graph from this app's own route only for that exact path. Only inventory-listed files are served, writes still use Blob, and a production server refuses the setting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 14, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
anth-volk
marked this pull request as ready for review
October 14, 2026 21:14
This was referenced Oct 14, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5
Stacked on #1.
Summary
MICROCOSM_RUNS_LOCAL_DIR. It points at a folder holding Microcosm publication bundles: each is anorrery.upload.jsoninventory plus the files it lists, either in that folder or one subfolder down./api/runs/[id]and/runs/[id]/[filename]read from disk instead of Vercel Blob. Every file is checked for size, SHA-256, JSON, the Orrery parser and source references, the same checks publishing runs. Local responses are sent withCache-Control: no-store./runs/<id>/graph.orrery.json. Every other graph URL must still be a Vercel Blob HTTPS URL.local_publications_disabled). Uploads and publishing still go to Blob.Testing
bun test: 34 tests pass, including new tests intests/local.test.tsandtests/viewer.test.ts.🤖 Generated with Claude Code