Skip to content

chore: prune public package exports#961

Merged
thymikee merged 4 commits into
mainfrom
codex/prune-public-exports
Jun 30, 2026
Merged

chore: prune public package exports#961
thymikee merged 4 commits into
mainfrom
codex/prune-public-exports

Conversation

@thymikee

@thymikee thymikee commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

Prunes unused public package export surface for cloud consumers and moves supported subpaths behind smaller facade entries.

Removes the android-snapshot-helper package export, narrows root and helper subpath type exports, updates Rslib entrypoints, public API tests, and docs. Also drops the extra cloud-confirmed facade exports: buildIosRuntimeHints, buildAndroidRuntimeHints, and public contract parser schemas. A second-order pass removed now-dead Metro wrapper helpers, stale Android helper barrel exports, and internal export modifiers left over from the narrowed facades.

After rebasing onto origin/main (189b06251), pnpm build emits 1389.0 kB total. npm pack --dry-run --json reports 572,013 B packed, 1,965,029 B unpacked, and 152 entries.

Validation

Ran pnpm format, node_modules/.bin/tsc -p tsconfig.json, the focused public API vitest suite, pnpm check:quick, pnpm build, node_modules/.bin/fallow audit --base origin/main --format compact, and npm pack --dry-run --json. Double-checked /Users/thymikee/Developer/agent-device-cloud production imports against the pruned symbols; remaining production imports are still covered by the retained facades. Also scanned README/docs/website/help source for removed public names and patched the Typed Client docs to avoid stale BatchRequest and Metro helper signatures. Broad fallow dead-code still reports one unrelated residual: src/core/command-descriptor/types.ts defineCommandDescriptor.

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-06-30 13:51 UTC

@github-actions

github-actions Bot commented Jun 30, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.4 MB 1.4 MB -11.2 kB
JS gzip 456.3 kB 450.1 kB -6.2 kB
npm tarball 558.1 kB 549.0 kB -9.1 kB
npm unpacked 2.0 MB 1.9 MB -38.4 kB

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 26.8 ms 26.7 ms -0.1 ms
CLI --help 48.8 ms 46.9 ms -1.9 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/9722.js +25.6 kB +7.7 kB
dist/src/generic.js +9.0 kB +3.5 kB
dist/src/internal/companion-tunnel.js +8.6 kB +3.3 kB
dist/src/495.js +10.8 kB +3.3 kB
dist/src/3340.js +4.0 kB +1.3 kB

@thymikee

Copy link
Copy Markdown
Member Author

Reviewed the package export pruning against the export map, Rslib entrypoints, facade modules, public/installed-package tests, and client API docs. The remaining public subpaths are backed by build entries, the new contracts/metro/remote-config facades match the documented supported surface, and the removed helpers are no longer advertised as public Node APIs. Checks are green. No blockers; marking ready-for-human.

@thymikee thymikee added the ready-for-human Valid work that needs human implementation, judgment, or maintainer merge label Jun 30, 2026
@thymikee thymikee force-pushed the codex/prune-public-exports branch from 2447eb7 to 6674d89 Compare June 30, 2026 13:02
@thymikee thymikee merged commit 1cbe446 into main Jun 30, 2026
22 checks passed
@thymikee thymikee deleted the codex/prune-public-exports branch June 30, 2026 13:51
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