perf(daemon): stop eagerly loading the CLI schema layer and screenshot surface
Summary
The daemon's eager closure carried two edges that did not match what their callers needed.
Plugin discovery imported the CLI config loader for one path helper, resolveUserConfigPath, pulling option schemas and every command family into daemon startup. The helper needs only env and the home expansions it already sat beside, so it now lives in @agent-device/host-kit/file, which both callers already imported. That plugins -> commands value edge was the zone graph's only one between those zones; it is gone.
The generic dispatcher imported the screenshot runtime statically while awaiting it on a request-only branch, beneath which the leaf owns an in-process command surface. It now loads at the branch.
8 files, no scope beyond these two edges.
Validation
| files | loc | |
|---|---|---|
merge-base 6eef69a9f8 | 651 | 103,666 |
head 37b22baf99 | 468 | 76,230 |
pnpm depgraph, over value edges from src/daemon.ts; both cuts are needed for the full number. Rebased onto current main, which added eagerly-imported platform files; the cut holds.
pnpm check:affected --run on 37b22baf99: all runnable checks passed, plus layering, format, lint, typecheck and the eager-closure budget gate, no stale approval row.
The new completeness test enters the screenshot arm, which no existing test did, and fails on a typo'd specifier. The shipped bundle resolves the specifier relative to the awaiting chunk, and the Linux replay lane captured real screenshots through the changed arm.
loc is a proxy, not a timing claim: the distribution bundles packages, so no startup-latency number is asserted.