Skip to content

[AGE-2886] Add list artifacts API - #1441

Open
rutvij-menavlikar wants to merge 12 commits into
rutvij/age-2882_2from
rutvij/age-2886_2
Open

rutvij-menavlikar wants to merge 12 commits into
rutvij/age-2882_2from
rutvij/age-2886_2

Conversation

@rutvij-menavlikar

@rutvij-menavlikar rutvij-menavlikar commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Stacked on #1442. Adds GET /api/v1/artifacts (paginated, most recently updated first), authenticated and limited to artifacts the caller created, and wires the artifact store into the server.

Linear: AGE-2886

Changes

  • src/schemas/artifact.ts: Artifact, ListArtifactsRequestQuery, ListArtifactsResponse.
  • src/routes/artifactRoutes.ts: route definition; Fern group artifacts (list); new Artifacts tag.
  • src/apis/artifacts.ts: handler; filters by the caller; tenant_id is not exposed on the wire.
  • app.ts / main.ts / scripts/write-openapi.ts: artifactStore dependency for SQLite and Postgres.
  • Changeset .changeset/artifact-apis.md updated.

How was this tested?

  • New tests/unit/apis/artifacts.test.ts (list, pagination, other user excluded, bad token).
  • pnpm test (932 passed), pnpm typecheck, eslint, prettier.
  • pnpm openapi:write builds both paths (generated files not committed).

Checklist

  • I have read the contributing guidelines
  • pnpm test, pnpm typecheck pass locally
  • Tests added/updated where it makes sense
  • No hand-edits to generated code

Made with Cursor


Note

Low Risk
Read-only, caller-scoped list endpoint following existing auth and pagination patterns; no changes to artifact write paths.

Reviewed by Cursor Bugbot for commit 414c33d. Bugbot is set up for automated code reviews on this repo. Configure here.

Base automatically changed from rutvij/age-2886_1 to rutvij/age-2882_2 November 19, 2026 15:51
Base automatically changed from rutvij/age-2882_2 to rutvij/age-2882_1 November 19, 2026 15:51
@rutvij-menavlikar
rutvij-menavlikar changed the base branch from rutvij/age-2882_1 to rutvij/age-2882_2 November 19, 2026 15:57
@datadog-official

datadog-official Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Code Quality  Code Vulnerabilities  IaC  Library Vulnerabilities  Secrets

🎉 All green!

🛠️ No new code quality issues
🛡️ No new code vulnerabilities
📚 No new vulnerable libraries detected
🧱 No new Infrastructure as Code (IaC) issues
🔑 No new secrets detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 414c33d | Docs | Give us feedback!

@rutvij-menavlikar
rutvij-menavlikar force-pushed the rutvij/age-2886_2 branch 2 times, most recently from 632aa80 to 8d04af4 Compare November 19, 2026 16:37
@rutvij-menavlikar
rutvij-menavlikar marked this pull request as draft November 19, 2026 17:24
@rutvij-menavlikar
rutvij-menavlikar marked this pull request as ready for review November 20, 2026 07:20
export const ArtifactSchema = z
.object({
id: z.string(),
slug: z.string(),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we call this name since its unique in tenant, and that's the case for agent name, schedule name

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can rename slug to key and we can either keep title or call it dispay_name

Comment thread .github/fern/openapi/openapi.json Resolved
@rutvij-menavlikar
rutvij-menavlikar force-pushed the rutvij/age-2882_2 branch 3 times, most recently from 033d1b0 to 6186486 Compare November 20, 2026 11:14
@rutvij-menavlikar rutvij-menavlikar changed the title [AGE-2886] Add list and get artifact APIs [AGE-2886] Add list artifacts API Nov 20, 2026
@rutvij-menavlikar
rutvij-menavlikar force-pushed the rutvij/age-2882_2 branch 2 times, most recently from 8de239e to 89f34d6 Compare November 20, 2026 12:09

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

Comment thread .github/fern/openapi/openapi.json Resolved
@rutvij-menavlikar
rutvij-menavlikar force-pushed the rutvij/age-2886_2 branch 3 times, most recently from 184968f to 0db81f3 Compare November 20, 2026 14:55

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 0db81f3. Configure here.

rutvij-menavlikar and others added 12 commits November 21, 2026 14:16
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>
… created ranges

Co-authored-by: Cursor <cursoragent@cursor.com>
… description

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>
@veria-ai

veria-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

PR overview

No security issues were found in this pull request.

Reviews

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants