Mario Zechner
ba93da9a93
feat(ai): move API implementations to src/api with lazy wrappers (phase 2)
...
Stream implementations move from src/providers/ to src/api/, renamed by
API id (anthropic.ts -> anthropic-messages.ts, google.ts ->
google-generative-ai.ts, mistral.ts -> mistral-conversations.ts,
amazon-bedrock.ts -> bedrock-converse-stream.ts). Every module now
exports exactly stream/streamSimple; shared helpers move alongside.
New ProviderStreams dispatch contract in types.ts, lazyApi() wrapper in
api/lazy.ts, and one .lazy.ts wrapper per API. Bedrock's wrapper keeps
the node-only variable-specifier import and setBedrockProviderModule()
(now taking ProviderStreams).
providers/register-builtins.ts deleted; interim until the compat
entrypoint lands, builtin api-registry registration lives in stream.ts
and lazy wrappers are exported from the root barrel. Old per-API lazy
exports (streamAnthropic, ...) are gone; package.json subpaths retarget
to dist/api/.
History
..
2026-04-22 21:12:20 +02:00
2026-05-30 21:21:42 +02:00
2026-06-09 13:41:08 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-28 15:52:38 +10:00
2026-05-20 12:46:17 +02:00
2026-05-28 11:03:25 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-06-05 10:51:43 +02:00
2026-05-20 12:46:17 +02:00
2026-05-28 11:58:38 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-06-08 20:31:20 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-23 10:47:35 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-06-09 13:14:24 +02:00
2026-05-27 00:59:09 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-06-09 13:23:07 +02:00
2026-05-06 18:06:37 +02:00
2026-05-20 12:46:17 +02:00
2026-06-02 16:32:18 +02:00
2026-05-22 11:25:15 +02:00
2026-05-28 15:52:38 +10:00
2026-06-09 13:03:59 +02:00
2026-05-23 09:50:03 +02:00
2026-06-10 12:11:49 +02:00
2026-05-20 12:46:17 +02:00
2026-06-05 10:51:43 +02:00
2026-05-29 15:56:42 +08:00
2026-05-20 12:46:17 +02:00
2026-05-28 18:27:39 +10:00
2026-06-02 18:20:35 +02:00
2026-06-03 00:44:21 +02:00
2026-05-23 09:50:03 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-28 15:52:38 +10:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-29 23:03:03 +08:00
2026-06-09 14:15:39 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-28 11:58:38 +02:00
2026-06-10 02:01:35 +08:00
2026-05-20 12:46:17 +02:00
2026-06-09 13:25:54 +02:00
2026-05-20 12:46:17 +02:00
2026-06-03 00:44:21 +02:00
2026-05-22 11:25:15 +02:00
2026-05-22 11:25:15 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-06-09 15:12:07 +03:00
2026-06-09 13:25:54 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-25 00:40:07 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-24 22:59:35 +02:00
2026-05-20 12:46:17 +02:00
2026-06-10 20:08:59 +02:00
2026-06-02 15:09:36 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-06-02 15:53:37 +02:00
2026-05-20 12:46:17 +02:00
2026-05-27 21:32:10 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-06-09 13:25:54 +02:00
2026-05-20 12:46:17 +02:00
2026-05-29 11:40:58 +02:00
2026-06-09 13:43:54 +02:00
2026-05-20 12:46:17 +02:00
2026-05-28 00:49:27 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-21 00:10:50 +04:00
2026-06-02 15:25:27 +02:00
2026-05-21 16:55:22 +02:00
2026-05-20 12:46:17 +02:00
2026-06-09 13:03:59 +02:00
2026-05-07 15:59:42 +02:00
2026-06-09 13:25:54 +02:00
2026-06-09 13:25:54 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00
2026-05-20 12:46:17 +02:00