Skip to content

refactor: remove production-unused exports - #1203

Merged
thymikee merged 1 commit into
mainfrom
agent/cleanup-production-unused-exports
Jul 10, 2026
Merged

refactor: remove production-unused exports#1203
thymikee merged 1 commit into
mainfrom
agent/cleanup-production-unused-exports

Conversation

@thymikee

Copy link
Copy Markdown
Member

Summary

Remove production-unused exports that were proven dead or redundant after the native Fallow ratchet landed.

  • Delete orphaned internal request/lease schemas, a dead swipe planner, and unused Android snapshot download/XML helpers together with their dedicated tests.
  • Remove redundant Apple, Android, and runner facade re-exports; retarget production code and tests to the owning modules.
  • Preserve intentional process-state test seams with reasons beside their declarations.
  • Shrink production-unused-exports.json from 101 to 57 entries (44 removed) and clarify why test-only seams remain in the production baseline.

The three module audits found no missing production wiring in this batch. Cloud runtime constructors and the remaining core/daemon entries stay for follow-up work where tests first need migration through production interfaces.

Net result: 828 lines removed across 35 files.

Validation

  • pnpm lint
  • pnpm typecheck
  • pnpm check:layering
  • pnpm check:production-exports
  • pnpm check:mcp-metadata
  • pnpm build
  • pnpm format:check
  • pnpm check:fallow --base origin/main
  • pnpm test:unit — 385 files, 3,535 tests passed
  • pnpm test:smoke — 14 passed, 1 opt-in web E2E skipped

The aggregate scripts were executed as their exact pinned-pnpm component commands because the local Corepack shim resolves a different pnpm version for nested invocations.

@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown

Size Report

Metric Base Current Diff
JS raw 1.6 MB 1.6 MB +30 B
JS gzip 517.6 kB 516.9 kB -687 B
npm tarball 624.5 kB 624.2 kB -295 B
npm unpacked 2.2 MB 2.2 MB +30 B

Startup median (7 runs, lower is better):

Scenario Base Current Diff
CLI --version 27.3 ms 27.2 ms -0.1 ms
CLI --help 56.0 ms 56.2 ms +0.1 ms

Top changed chunks:

Chunk Raw diff Gzip diff
dist/src/internal/daemon.js +26.6 kB +7.7 kB
dist/src/server.js +14.5 kB +5.4 kB
dist/src/cli.js +28 B +83 B
dist/src/runtime.js 0 B +60 B
dist/src/tv-remote.js 0 B +50 B

@thymikee
thymikee force-pushed the agent/cleanup-production-unused-exports branch from c414ccb to 37754cf Compare July 10, 2026 15:57
@thymikee
thymikee marked this pull request as ready for review July 10, 2026 16:00
@thymikee
thymikee merged commit 6e21fed into main Jul 10, 2026
22 checks passed
@thymikee
thymikee deleted the agent/cleanup-production-unused-exports branch July 10, 2026 16:00
@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-10 16:01 UTC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant