Repository navigation
[1] Compile catalog.json for agent composition - #26
Conversation
Add a build-time compiler over the component registry, plan stages, npm pins, enrichment edges, and recipe backlog; prerender /catalog.json and point llms.txt at it so agents can fetch dated package facts without inventing versions.
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
|
@codex review |
There was a problem hiding this comment.
Pull request overview
This PR implements Phase 1 of the agent assembly plan by compiling and publishing a machine-readable composition catalog (/catalog.json) at site build time, so agents can fetch authoritative component/package metadata (including publishability and pins) instead of inventing package sets.
Changes:
- Adds a prerendered
src/pages/catalog.json.tsendpoint that emits the compiled catalog athttps://pegma.dev/catalog.json. - Introduces a build-time catalog compiler (
compileCompositionCatalog) that merges the component registry, plan stage aggregation, npm “latest” version resolution, enrichment, and a synthetic recipe backlog. - Adds schema-driven enrichment and tests to validate unpublished/partial publish states and recipe intent inclusion.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pages/catalog.json.ts | New prerendered JSON endpoint for the compiled composition catalog. |
| src/data/recipe-backlog.ts | Adds prioritized synthetic recipe intents (fixtures pending) for catalog output. |
| src/data/compile-catalog.ts | Implements the build-time compiler: registry + stage aggregation + npm pins + enrichment + recipes. |
| src/data/compile-catalog.test.ts | Adds unit tests for schema emission, publishability flags, recipe intent inclusion, and enrichment. |
| src/data/catalog-enrichment.ts | Defines curated component enrichment (deps, adapters, host responsibilities, capability tags). |
| public/llms.txt | Links agents to catalog.json without inlining it; documents unpublished-package flags. |
| docs/AGENT_ASSEMBLY_PLAN.md | Updates plan status to Phase 1 complete and documents new artifacts/endpoint. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2a49e51dc9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Resolve package pins concurrently across components so a slow or flaky registry cannot serialize the static catalog prerender.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1ab3d3510f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
storage-audit-mail-outbox needs durable inventory, audit, and outbox rows; leave adapter selection to the host rather than recommending memory.
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Plan
docs/AGENT_ASSEMBLY_PLAN.md— Phase 1 (compiled catalog artifact).What
compileCompositionCatalog: registry + plan stage + npm latest pins + enrichment + recipe backlogsrc/pages/catalog.json.ts→https://pegma.dev/catalog.jsonsrc/data/recipe-backlog.ts(synthetic intents; fixtures pending)llms.txtlinks the catalog without inlining itExit criteria
published: false/publishUsability)Test evidence
npm run test:node— 125 passed (includes compile-catalog tests with mocked npm/stages)npm run check— cleannpm run build— emitsdist/catalog.json(12 components, 8 recipes; support-desk + webhooks unpublished)Residual risk