Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(provider-core): add the provider client contract package #17282

Closedjuliusmarmingewants to merge 1 commit intomain fromt3/provider-coreopened View on GitHub

juliusmarmingecommented

Provider client metadata (label, settings schema, environment fields, badge) lived in a web-only table, so there was no shared interface a provider package could export its client half against.

This adds @t3tools/provider-core with a ./client entry: ProviderClientDefinition, plus a small registry that looks definitions up by driver kind (and returns undefined for drivers a client does not ship, such as a fork's). The web settings, onboarding, and usage code now read that registry. The definitions themselves stay in web until each provider moves into its own package.

No behavior change.


Part of the provider-packages stack: #17282 → #17283 → #17284 → #17285 → #17286 → #17287 → #17288.

Done by Claude Opus 5.5 in Claude Code.

🤖 Generated with Claude Code

    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    2. juliusmarminge changed the title

    3. juliusmarminge added labelsmacroscope-review

    4. Thread transfer impact

      ✅ Thread transfer remains within every enforced ceiling.

      ℹ️ The exact PR base did not have a successful artifact. Baseline uses the latest successful main measurement shown below.

      ProviderMetricMain baselineThis PRImpactPR ceiling
      CodexTotal thread wire5.0 KiB5.0 KiB0 B (0.0%)6.8 KiB✅
      CodexThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      CodexLive turn WebSocket wire1.2 KiB1.2 KiB0 B (0.0%)2.0 KiB✅
      CodexLive turn WebSocket decoded20.9 KiB20.9 KiB0 B (0.0%)29.3 KiB✅
      CodexLive turn messages220 (0.0%)8✅
      ClaudeTotal thread wire5.0 KiB5.0 KiB+24 B (+0.5%)6.8 KiB✅
      ClaudeThread snapshot wire3.8 KiB3.8 KiB0 B (0.0%)4.9 KiB✅
      ClaudeLive turn WebSocket wire1.2 KiB1.2 KiB+24 B (+2.0%)2.0 KiB✅
      ClaudeLive turn WebSocket decoded21.2 KiB21.2 KiB+41 B (+0.2%)29.3 KiB✅
      ClaudeLive turn messages12+1 (+100.0%)8✅

      Baseline: fd25c42 · PR result: 800f320 · Source CI: failure

      Scenario 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.

      • Codex decoded thread snapshot: 108.5 KiB
      • Claude decoded thread snapshot: 108.8 KiB

      Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

    5. Superseded by the squashed 3-PR stack #17299 → #17300 → #17302 (same changes, regrouped; Effect service modules renamed to PascalCase).

    6. juliusmarminge closed this

Sign in to join this conversation.