feat: make cli and nodejs packages public#875
Merged
Conversation
Rename packages/cli -> packages/kernel-cli (@ocap/cli -> @metamask/kernel-cli) and packages/nodejs -> packages/kernel-node-runtime (@ocap/nodejs -> @metamask/kernel-node-runtime), adding all required public package fields (license, keywords, publishConfig, module/main/types, changelog scripts, README, LICENSE files). Move bundle-vats vite plugins from @ocap/repo-tools into @metamask/kernel-utils under a new ./vite-plugins export subpath, so kernel-cli can depend on a public package for that functionality. Update all monorepo-wide references: kernel-test, nodejs-test-workers, extension, omnium-gatherum, root tsconfig/eslint config, yarn.config.cjs (add kernel-cli to exportsExceptions and buildExceptions; rename noBuild -> buildExceptions). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
7500c9a to
eb9660e
Compare
eb9660e to
3b2b0d1
Compare
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||
matrix.package values are scoped package names (e.g. @metamask/kernel-node-runtime) but the artifact path needs the directory name (kernel-node-runtime). Add matrix include entries to map each package to its directory, and use matrix.directory for artifact name and path. Also adds the missing packages/kernel-cli/CHANGELOG.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Update docs/usage.md references from @ocap/cli and @ocap/nodejs to new @metamask/ package names - Restore CLI commands and known limitations in kernel-cli README - Add CHANGELOG entries for kernel-cli, kernel-node-runtime, kernel-utils - Move acorn from production to dev + optional peer dep in kernel-utils (only used by vite-plugins subpath) - Add peerDependenciesMeta to kernel-utils marking acorn and vite as optional Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…onstraints Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
sirtimid
approved these changes
Mar 11, 2026
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.
packages/cli→packages/kernel-cli(@ocap/cli→@metamask/kernel-cli) and make it publicpackages/nodejs→packages/kernel-node-runtime(@ocap/nodejs→@metamask/kernel-node-runtime) and make it publicbundle-vatsvite plugins from@ocap/repo-toolsinto@metamask/kernel-utils/vite-pluginssokernel-clican depend on a public package for that functionalitynoBuild→buildExceptionsinyarn.config.cjs; addkernel-clitoexportsExceptionsandbuildExceptionsNote
Medium Risk
Moderate risk due to broad workspace/package renames and publishing configuration changes that can break builds, CI, or downstream imports if any reference is missed; core runtime logic appears largely unchanged.
Overview
This PR renames and makes public the monorepo’s CLI and Node.js runtime packages (
@ocap/cli→@metamask/kernel-cli,@ocap/nodejs→@metamask/kernel-node-runtime), updating docs, tests, TS project references, lint config, depcheck ignores, Lavamoat allowlists, and Yarn constraints accordingly.Vat-bundling utilities (
bundleVat/bundleVats) are moved out of@ocap/repo-toolsinto a new@metamask/kernel-utils/vite-pluginsexport, and consumers (CLI, extension, omnium-gatherum) are switched to the new import path;repo-toolsdrops those exports and related deps. CI E2E workflow matrix is updated to run against the renamed workspaces and upload artifacts from the correct package directories, and the new public packages gain metadata (license, publishConfig, README/changelog).Written by Cursor Bugbot for commit 80e5d1d. This will update automatically on new commits. Configure here.