Verified-safe slice of the prune plan: only modules with ZERO importers (static
or dynamic) — confirmed by import-graph scan, not name-based categorization.
Removed (src 62,085 -> 61,280; 805 lines, 6 files):
- src/browser-operator.ts (+test) — no references anywhere
- src/tts.ts (+test) — 0 importers; ttsMode config elsewhere is
unrelated and untouched
- src/vision.ts (+test) — 0 importers (prior "vision" hits were
substrings of "provisioning")
Aligns with config.ts core profile ("no budget/TTS/STT/vision"). Post-delete
import-graph scan is clean.
NOT included from the original "delete now" list — they have real importers and
were mis-bucketed: memory-architecture/lifecycle + database-architecture (the DB
pool — core infra), outbound-images (live Telegram path), transcription/stt-guard
(Telegram voice), tenant-*/platform-*/surface-*/stripe-* (woven in). Those need
untangle-then-delete, not a blind removal.
GATE (run on a host with deps): npm run typecheck && npm run test (vitest).
No local node_modules here, so verification was the import graph.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>