@theokit/sdk 4.12.0 → 4.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - `Provider.builtins()` (agent-builder M43): returns every first-party builtin provider — including the `openai-chatgpt` Codex builtin — as model-provider plugins. A runtime that does NOT share the SDK's provider registry (the `theokit` agent server / `@theokit/agents`, which resolve models via their own `buildModelSelection`) can now route to any SDK builtin with ZERO provider-specific code: `Agent.create({ plugins: Provider.builtins() })` (or the agents `.plugins(Provider.builtins())`), then pick a `provider/model` id. Adding a provider stays one SDK file — it is auto-included. The full ProviderProfile (transport + the auth `transform`) rides along into the consuming runtime.
8
+
3
9
  ## 4.12.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -21360,6 +21360,18 @@ var Provider = class {
21360
21360
  static create(profile, opts) {
21361
21361
  return defineProvider(profile, opts);
21362
21362
  }
21363
+ /**
21364
+ * Every first-party builtin provider (anthropic, openai, openrouter, gemini, ollama, the ChatGPT/Codex
21365
+ * `openai-chatgpt`, …) as model-provider plugins, ready to hand to `Agent.create({ plugins })` or any
21366
+ * runtime that consumes model-provider plugins (e.g. the `theokit` agent server / `@theokit/agents`, whose
21367
+ * own model resolution does NOT share this registry). Enables a consumer to route to ANY SDK builtin —
21368
+ * including one added later in a single SDK file — with ZERO provider-specific code: just
21369
+ * `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
21370
+ */
21371
+ static builtins() {
21372
+ registerBuiltins();
21373
+ return listProviders().map((profile) => defineProvider(profile));
21374
+ }
21363
21375
  };
21364
21376
 
21365
21377
  // src/define-skill-read-tool.ts