Skip to content

perf: bundle runtime dependencies and report full install size - #2310

Merged
thymikee merged 2 commits into
mainfrom
perf/bundle-runtime-dependencies
Sep 5, 2026
Merged

perf: bundle runtime dependencies and report full install size#2310
thymikee merged 2 commits into
mainfrom
perf/bundle-runtime-dependencies

Conversation

@thymikee

@thymikee thymikee commented Sep 5, 2026

Copy link
Copy Markdown
Member

Summary

Bundle the remaining runtime dependencies (Limrun SDK, Undici, ipaddr.js, YAML, and yauzl) and move them to development dependencies in their owning manifests. Node builtins and the optional ai peer remain external.

Clean-install comparison:

Metric Before After
Installed, including dependencies 9.89 MB 4.44 MB
Package unpacked 3.56 MB 4.44 MB
Package download 1.05 MB 1.32 MB

The larger package replaces separately installed dependencies, saving 5.45 MB overall. Keep these three rows and startup timings in the size comment; preserve detailed JSON as a workflow artifact and existing benchmark fields. Remove unused component classification, chunk ranking, duplicate totals, and breakdown formatting. Independent review passed.

14 files; packaging and report tooling only. Docs and skills unchanged.

Validation

Bundling validated at 3f0f07256f; cleanup validated at head b4e2898bdf1328d71147c57f84f88e74e64a1ba0:

  • Build, lint/typecheck, layering, and bundle-owner checks passed.
  • 9 remaining size/workflow tests and lint pass at head. Full size run preserves bundle totals, installed size, and per-file sizes. Earlier 42 runtime/package tests passed; new report/install tests observed red before green.
  • Published-package checks passed: publint, attw, 13 entry points, CLI smoke checks, dependency closure.
  • Clean installed-bundle probe passed ZIP extraction, YAML parsing, IP policy, HTTP transport, and Limrun SDK construction without external dependencies.
  • Full affected check skipped at user request. CI pending; no live provider/device verification needed for this packaging change.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-05 19:39 UTC

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
Installed (including dependencies) 9.89 MB 4.44 MB -5.45 MB
Package (unpacked) 3.56 MB 4.44 MB +882.5 kB
Package (download) 1.05 MB 1.32 MB +266.3 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 27.4 ms 27.4 ms +0.0 ms
CLI --help 81.8 ms 80.7 ms -1.1 ms

@thymikee

thymikee commented Sep 5, 2026

Copy link
Copy Markdown
Member Author

Sentinel review at b4e2898: code clean, including independent size/design and cleanup review. Existing bundler ownership is reused; package growth (+882.5 kB unpacked) replaces external dependencies and reduces total installed size by 5.45 MB. Cleanup preserves packed per-file entries, package/install totals, startup and benchmark bundled fields; removed summaries have no remaining repository consumers. Published-package and installed-bundle validation are recorded; no additional live-device acceptance is required for this packaging-only change. iOS CI is still pending, so this is code readiness, not unconditional merge readiness.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Sep 5, 2026
@thymikee
thymikee merged commit 7a2d48d into main Sep 5, 2026
21 checks passed
@thymikee
thymikee deleted the perf/bundle-runtime-dependencies branch September 5, 2026 19:38
thymikee added a commit that referenced this pull request Sep 5, 2026
* origin/main:
  perf: bundle runtime dependencies and report full install size (#2310)
  ci: avoid unrelated Apple runner cache invalidation (#2303)
  fix(web): preserve the backend ref so snapshot refs match actionable refs (#2283)
  test(daemon): session-open-url-prewarm through the request seam (#2304)
  test(daemon): session-devices-batch-runtime through the request seam (#2305)
  chore(gates): layering baselines ratchet against merge-base (#2299)
  test(daemon): one typed conformance helper for the daemon runtime suites (#2298)
  chore(layering): derive the contracts export inventory from package.json (#2297)
  perf: bundle tar-stream to reduce install footprint (#2286)
  docs: simplify agent context and resolve conflicting guidance (#2287)
  refactor(cli): let help resolve command aliases itself and retire R12 (#2293)
thymikee added a commit that referenced this pull request Sep 5, 2026
* origin/main:
  perf: bundle runtime dependencies and report full install size (#2310)
thymikee added a commit that referenced this pull request Sep 5, 2026
* origin/main:
  perf: bundle runtime dependencies and report full install size (#2310)
  ci: avoid unrelated Apple runner cache invalidation (#2303)
  fix(web): preserve the backend ref so snapshot refs match actionable refs (#2283)
  test(daemon): session-open-url-prewarm through the request seam (#2304)
  test(daemon): session-devices-batch-runtime through the request seam (#2305)
  chore(gates): layering baselines ratchet against merge-base (#2299)
  test(daemon): one typed conformance helper for the daemon runtime suites (#2298)
  chore(layering): derive the contracts export inventory from package.json (#2297)
  perf: bundle tar-stream to reduce install footprint (#2286)
  docs: simplify agent context and resolve conflicting guidance (#2287)
  refactor(cli): let help resolve command aliases itself and retire R12 (#2293)
  refactor(commands): retire the navigation-only type projection (#2294)
  feat(runtime): route managed leases through contained transports (#2285)
  refactor(contracts): build unavailable runtime facts once (#2291)
  refactor(cli): derive the common flag readers from the common-field table (#2292)
  feat(daemon): add managed allocation operation journal (#2284)
thymikee added a commit that referenced this pull request Sep 5, 2026
* origin/main:
  perf: bundle runtime dependencies and report full install size (#2310)
  ci: avoid unrelated Apple runner cache invalidation (#2303)
  fix(web): preserve the backend ref so snapshot refs match actionable refs (#2283)
  test(daemon): session-open-url-prewarm through the request seam (#2304)
  test(daemon): session-devices-batch-runtime through the request seam (#2305)
  chore(gates): layering baselines ratchet against merge-base (#2299)
  test(daemon): one typed conformance helper for the daemon runtime suites (#2298)
  chore(layering): derive the contracts export inventory from package.json (#2297)
  perf: bundle tar-stream to reduce install footprint (#2286)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Valid work that needs human implementation, judgment, or maintainer merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant