Repository navigation
[AGE-2882] Add artifact DB stores - #1442
Open
rutvij-menavlikar wants to merge 10 commits into
Open
rutvij-menavlikar wants to merge 10 commits into
rutvij-menavlikar wants to merge 10 commits into
Conversation
rutvij-menavlikar
requested review from
chiragjn,
debajyoti-truefoundry,
heerambavi1998 and
thesujai
as code owners
November 19, 2026 15:57
4 tasks done
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
rutvij-menavlikar
force-pushed
the
rutvij/age-2882_2
branch
from
November 19, 2026 16:36
fbfe74f to
c5a3c83
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
This branch has not been 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.
Summary
Stacked on #1435. Adds
IArtifactStorewith Postgres and SQLite implementations. Not wired intomain.tsyet; the list/get APIs PR does that.Linear: AGE-2882
Changes
src/db/artifactStore.ts: records, inputs,ArtifactSlugConflictError,IArtifactStore.createArtifact/getArtifact(by tenant + slug).listArtifacts: creator-scoped, most recently updated first, offset page tokens; served byartifact_list_idxfrom [AGE-2882] Add artifact metadata tables #1435.createVersion: allocates the next version aspending. Storage keys include the version number, so file rows are written at commit.commitVersion: records uploaded files, flipspending→committed, advanceslatest_versionmonotonically, in one transaction.failVersion: flipspending→failed.getVersion: version + files; checks the artifact is in the tenant first..changeset/artifact-store-tables.mdis shared with [AGE-2882] Add artifact metadata tables #1435.How was this tested?
tests/db/artifactStoreContractSuite.ts), 5 tests: SQLite and Postgres (local container) pass.tsc --noEmit(src + tests/db), eslint, prettier on changed files.Checklist
Made with Cursor
Note
Low Risk
New isolated persistence layer with contract tests; no runtime wiring or API surface changes in this PR.
Reviewed by Cursor Bugbot for commit 161a607. Bugbot is set up for automated code reviews on this repo. Configure here.