chore(seed): project first-party apps into Installable collection (closes #445)#446
Closed
samxu01 wants to merge 1 commit into
Closed
chore(seed): project first-party apps into Installable collection (closes #445)#446samxu01 wants to merge 1 commit into
samxu01 wants to merge 1 commit into
Conversation
Extends `seed-native-agents.ts` so each FIRST_PARTY_APPS entry also upserts an Installable row alongside its AgentRegistry row. Marketplace detail page (PR #439) reads from this collection — without the projection, no first-party app could be resolved by direct URL. Source set to `builtin`, kind `app`, scope `instance`. Browse continues to filter `source: 'marketplace'` (the marketplace page is for community-published items only by design); detail page reads any source. Idempotent: subsequent boots refresh display metadata via $set without touching stats. Closes #445. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
samxu01
added a commit
that referenced
this pull request
May 24, 2026
…, closes #445) Extends seed-native-agents.ts so each FIRST_PARTY_APPS entry also upserts an Installable row (source='builtin', kind='app', scope='instance') alongside its existing AgentRegistry row. Unblocks PR #439 v2 marketplace detail page — without the projection, /v2/marketplace/:installableId could never resolve a first-party app like pod-welcomer / task-clerk / pod-summarizer by direct URL. Browse continues to filter source='marketplace' (community-published items only); detail page reads any source. Idempotent — subsequent boots refresh display metadata via \$set without touching stats. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Squash-merged to main as 24a5fe8 per feedback-pr-merge-pattern. |
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
backend/scripts/seed-native-agents.tsso each FIRST_PARTY_APPS entry also upserts anInstallablerow alongside its existingAgentRegistryrow./v2/marketplace/:installableId) for first-party apps likepod-welcomer/task-clerk/pod-summarizer. Before this, theinstallablescollection was empty on dev and the detail page only ever showed the not-found state.Shape
source: 'builtin'is intentional —/api/marketplace/browsefilterssource: 'marketplace'only (community-published items). First-party apps appear via the Agent Hub or direct URL, not the marketplace browse page.Test plan
AgentRegistryupsert pattern in the same function, idempotent on every server boot.kubectl exec -n commonly-dev deploy/backend -- node -e 'mongo query installables count'shows 3 rows;GET /api/marketplace/manifests/pod-welcomerreturns a populated body;/v2/marketplace/pod-welcomerrenders identity/description onapp-dev.commonly.me.Closes #445.
🤖 Generated with Claude Code