Providers could not live outside apps/server: the driver contract, the helpers drivers share, and every way a driver reached the server were server-internal. This adds the packages a provider package builds on. No behavior change.
@t3tools/provider-core
./client: ProviderClientDefinition (label, settings schema, environment fields, badge, plain-data icon) and a registry. Web settings, onboarding, and usage read it instead of a web-only table.
./server/*: the driver and instance records, the V2 adapter interface, selection transitions, snapshot, auth, text-generation, and maintenance interfaces, plus the helpers drivers share that have no server dependencies (ids, failure items, MCP session and tool presentation, process groups, status probes, update ownership, usage limits, text-generation prompts).
ProviderHost: the one service a provider uses to reach the server (paths, settings reads and changes, background-work gate, attachment paths), implemented once by the server. Every driver now takes it instead of the server's BackgroundPolicy.
@t3tools/provider-testing: replay transcript decoding, the replay gate, the git checkpoint workspace, and a scoped ProviderHost for driver tests.
Server modules keep their services and re-export moved types. Effect service modules are PascalCase (ProviderAdapter, ProviderHost, IdAllocator); utility modules are camelCase. Service keys follow the new module paths (in-memory tags; nothing persists them).
Stack: #17299 → #17300 → #17302. Replaces the earlier 7-PR stack (#17282–#17288).
Done by Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline:
5809487· PR result:52fbad9· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.