perf(package): cut published package size - #500
Merged
Merged
Conversation
christso
added this pull request to stack #502
September 20, 2026 14:34
Deploying allagents with
|
| Latest commit: |
226a9fb
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://8b459ae4.allagents.pages.dev |
| Branch Preview URL: | https://perf-package-size.allagents.pages.dev |
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
Published AllAgents is now a minified, self-contained Node CLI. Installation no longer downloads a second copy of bundled runtime dependencies, while package budgets and isolated artifact smoke tests guard the result.
This is the foundation layer of a two-PR stack. #501 builds the expanded client registry on this packaging change.
Package impact
Design decisions
dist/index.js.devDependencies, so npm does not install duplicate code.THIRD_PARTY_NOTICES.txtfrom the package instances that actually enter the bundle, including nested duplicate versions.npm publish; retries that find an existing version do not repack.Validation
bun run build bun run typecheck bun run lint bun test bun run test:e2e bun run package:check bun run package:smokeObserved results:
package:smokeinstalled the packed tarball in an isolated directory, installed no runtime dependencies, and traversed 54 structured-help command nodes under Node.New concepts
Metafile-derived license notices
A bundler metafile records the concrete source files included in an artifact. Walking those inputs to their nearest package roots identifies the exact package name, version, and license that shipped, rather than guessing from top-level dependencies. This matters when two versions of one package are bundled through different dependency paths. It is not useful for packages that publish their dependency tree instead of bundling it.
Post-Deploy Monitoring & Validation
package:checkandpackage:smokepass before the npm publish step.node_modules/allagents/package.jsonhas no runtime dependencies andallagents --help --jsonsucceeds.