Repository navigation
refactor(build): generate MCP tool catalog at build time instead of committing it - #997
Conversation
…ommitting it src/generatedMcpToolCatalog.ts had zero runtime importers and churned on every contract edit, guaranteeing merge conflicts on long-lived branches. It is now gitignored and regenerated by build:unlocked; typecheck and knip depend on build via turbo. Tests consume the build output unchanged. Adds a regen-generated CI workflow that pushes tracked generated metadata (product catalog, skill frontmatter, verification manifest/ledger, package metadata, error schema) to same-repo PR branches.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5876c3770f
ℹ️ 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".
| "outputs": [ | ||
| "dist/**", | ||
| ".cache/tsconfig.build.tsbuildinfo", | ||
| "src/generatedMcpToolCatalog.ts" |
There was a problem hiding this comment.
Upload the generated catalog with the test artifact
On a clean CI checkout, the build creates src/generatedMcpToolCatalog.ts after tsc, but .github/workflows/ci.yml uploads only dist and each test shard downloads that artifact without running the build. Any shard collecting contractPresentation.test.ts, toolRegistrationOptions.test.ts, toolSchemaValidity.test.ts, or auxiliaryDeclarations.test.ts therefore fails to resolve the generated source module. Include this output in the transferred artifact or regenerate it in each shard.
AGENTS.md reference: AGENTS.md:L28-L28
Useful? React with 👍 / 👎.
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
| git add -- "${generated_paths[@]}" | ||
| git commit -m "chore: regenerate generated metadata" | ||
| git push origin "HEAD:${HEAD_REF}" |
There was a problem hiding this comment.
Retrigger CI after pushing the generated commit
Whenever regeneration changes a tracked file, this push uses the checkout action's persisted GITHUB_TOKEN and advances the PR head. GitHub documents that resulting pull_request synchronization runs are approval-required rather than automatic, so the bot-generated head will not receive automatic required CI and the PR remains blocked until a maintainer manually approves another run. Push with the repository's dedicated App/PAT credential, as the release workflow does, or explicitly dispatch verification for the new head.
AGENTS.md reference: AGENTS.md:L38-L38
Useful? React with 👍 / 👎.
Resolve generated-metadata conflicts by regenerating them on top of main. The skill references gain the inspect_signature paragraph, so the skill version moves to 29 (main already uses 28). The MCP tool catalog is now built rather than committed (#997), so it is removed here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve conflicts against main: - README.md: take main's simplified English README, which no longer has the tool-family table. - README_ja.md: take main's reworded table and count trace_dylib_resolution in the artifact graph row (5 -> 6). - Skill: the references gain the trace_dylib_resolution paragraph, so the version moves to 29 (main already uses 28). - Regenerate the product catalog, conformance manifest, skill digest and package metadata (135 tools). The MCP tool catalog is now built rather than committed (#997), so it is removed here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve conflicts against main: - Inventory moved to src/artifacts/inventory (#1032); point the xar and cpio reader imports at their new relative paths. - README.md: take main's simplified English README, which no longer lists individual package formats. PKG coverage stays documented in the skill reference and docs/testing.md. - Skill: the references gain the PKG paragraph, so the version moves to 29 (main already uses 28). - Regenerate the product catalog, conformance manifest, skill digest and package metadata. The MCP tool catalog is now built rather than committed (#997), so it is removed here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bring in #927's merge of main and resolve conflicts: - README.md: main's simplified English README has no tool-family table. - README_ja/ar/ko/zh: keep main's reworded tables and count inspect_dyld_shared_cache in application workflows (13 -> 14). - Skill: #927 now uses version 29, so this branch moves to 30. - Regenerate the product catalog, conformance manifest, skill digest and package metadata (136 tools). The MCP tool catalog is now built rather than committed (#997), so it is removed here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Resolve conflicts against main: - package.json: ship both the LLDB tracer bridge and main's process run token reader sources. - README.md: take main's simplified English README, which no longer has the tool-family table. - README_ja.md: take main's reworded table and count observe_native_calls in the macOS native row (7 -> 8). - Skill: the references gain the observe_native_calls paragraph, so the version moves to 29 (main already uses 28). - Regenerate the product catalog, conformance manifest, skill digest and package metadata (135 tools). The MCP tool catalog is now built rather than committed (#997), so it is removed here. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ommitting it (morluto#997) src/generatedMcpToolCatalog.ts had zero runtime importers and churned on every contract edit, guaranteeing merge conflicts on long-lived branches. It is now gitignored and regenerated by build:unlocked; typecheck and knip depend on build via turbo. Tests consume the build output unchanged. Adds a regen-generated CI workflow that pushes tracked generated metadata (product catalog, skill frontmatter, verification manifest/ledger, package metadata, error schema) to same-repo PR branches.
Resolve conflicts against main: - README.md: take main's simplified English README, which no longer has the tool-family table. - README_ja.md: take main's reworded table and count trace_dylib_resolution in the artifact graph row (5 -> 6). - Skill: the references gain the trace_dylib_resolution paragraph, so the version moves to 29 (main already uses 28). - Regenerate the product catalog, conformance manifest, skill digest and package metadata (135 tools). The MCP tool catalog is now built rather than committed (morluto#997), so it is removed here.
Resolve conflicts against main: - package.json: ship both the LLDB tracer bridge and main's process run token reader sources. - README.md: take main's simplified English README, which no longer has the tool-family table. - README_ja.md: take main's reworded table and count observe_native_calls in the macOS native row (7 -> 8). - Skill: the references gain the observe_native_calls paragraph, so the version moves to 29 (main already uses 28). - Regenerate the product catalog, conformance manifest, skill digest and package metadata (135 tools). The MCP tool catalog is now built rather than committed (morluto#997), so it is removed here.
Bring in morluto#927's merge of main and resolve conflicts: - README.md: main's simplified English README has no tool-family table. - README_ja/ar/ko/zh: keep main's reworded tables and count inspect_dyld_shared_cache in application workflows (13 -> 14). - Skill: morluto#927 now uses version 29, so this branch moves to 30. - Regenerate the product catalog, conformance manifest, skill digest and package metadata (136 tools). The MCP tool catalog is now built rather than committed (morluto#997), so it is removed here.
Resolve conflicts against main: - Inventory moved to src/artifacts/inventory (morluto#1032); point the xar and cpio reader imports at their new relative paths. - README.md: take main's simplified English README, which no longer lists individual package formats. PKG coverage stays documented in the skill reference and docs/testing.md. - Skill: the references gain the PKG paragraph, so the version moves to 29 (main already uses 28). - Regenerate the product catalog, conformance manifest, skill digest and package metadata. The MCP tool catalog is now built rather than committed (morluto#997), so it is removed here.
Resolve generated-metadata conflicts by regenerating them on top of main. The skill references gain the inspect_signature paragraph, so the skill version moves to 29 (main already uses 28). The MCP tool catalog is now built rather than committed (morluto#997), so it is removed here.
Summary
Un-commits
src/generatedMcpToolCatalog.ts(zero runtime importers, churned on every contract edit) and regenerates it duringbuild:unlocked. Adds a regen-generated CI workflow for the remaining tracked generated files.Changes
git rm --cachedthe catalog;build:unlockedruns the generator aftertsc(verifiedtscsucceeds without the file present); turbotypecheck/knipdepend onbuild; build inputs exclude the file, outputs include it for cache restore. Removed the now-redundant explicit catalog step fromdocs:generate:unlocked..github/workflows/regen-generated.ymlrunsdocs:generateon PRs touching generator inputs and pushes tracked generated files to same-repo branches (fork-safe no-op, bot-actor loop guard, refuses unrelated changes).Verification
npm run build:cached): regenerated byte-identicalnpm run check(typecheck/lint/format/knip/metadata),docs:check,format:check,git diff --check,jscpd,scan:todosnpm run verify:packageunder pinned Node v24.18.0 (mcpTools: 133)docs:generateno-op on tracked files (bot already-canonical path)