You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[refactor] tcloud client.ts is 1,840 lines — split by service group, zero API change #72
The SDK client accumulates every service in one class: core chat/streaming, keys/projects, media (images/video/audio/fine-tuning), search/research/RAG, and now the decision surfaces. Public API is fine (index.ts re-exports); the file is the problem — 1,840 lines where every service PR reads all services.
Cut plan (internal modules, client.ts becomes composition + shared helpers, ZERO public-API change):
src/client-keys.ts — key/project management + the budget-derived mint
client.ts keeps: config, _doFetch/_request/_fetch/_requestWithResponse, chat/ask/models — and mixes the groups in (trait-style partials or delegation), with index.ts re-exporting exactly today's surface
Gate: the 297-test suite + prepublishOnly cohort check; consumers see nothing.
Activity