@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/dist/index.d.cts CHANGED
@@ -915,6 +915,15 @@ interface DefineProviderOptions {
915
915
  declare class Provider {
916
916
  private constructor();
917
917
  static create(profile: ProviderProfile, opts?: DefineProviderOptions): Plugin;
918
+ /**
919
+ * Every first-party builtin provider (anthropic, openai, openrouter, gemini, ollama, the ChatGPT/Codex
920
+ * `openai-chatgpt`, …) as model-provider plugins, ready to hand to `Agent.create({ plugins })` or any
921
+ * runtime that consumes model-provider plugins (e.g. the `theokit` agent server / `@theokit/agents`, whose
922
+ * own model resolution does NOT share this registry). Enables a consumer to route to ANY SDK builtin —
923
+ * including one added later in a single SDK file — with ZERO provider-specific code: just
924
+ * `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
925
+ */
926
+ static builtins(): Plugin[];
918
927
  }
919
928
 
920
929
  /**
package/dist/index.d.ts CHANGED
@@ -915,6 +915,15 @@ interface DefineProviderOptions {
915
915
  declare class Provider {
916
916
  private constructor();
917
917
  static create(profile: ProviderProfile, opts?: DefineProviderOptions): Plugin;
918
+ /**
919
+ * Every first-party builtin provider (anthropic, openai, openrouter, gemini, ollama, the ChatGPT/Codex
920
+ * `openai-chatgpt`, …) as model-provider plugins, ready to hand to `Agent.create({ plugins })` or any
921
+ * runtime that consumes model-provider plugins (e.g. the `theokit` agent server / `@theokit/agents`, whose
922
+ * own model resolution does NOT share this registry). Enables a consumer to route to ANY SDK builtin —
923
+ * including one added later in a single SDK file — with ZERO provider-specific code: just
924
+ * `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
925
+ */
926
+ static builtins(): Plugin[];
918
927
  }
919
928
 
920
929
  /**
package/dist/index.js CHANGED
@@ -21357,6 +21357,18 @@ var Provider = class {
21357
21357
  static create(profile, opts) {
21358
21358
  return defineProvider(profile, opts);
21359
21359
  }
21360
+ /**
21361
+ * Every first-party builtin provider (anthropic, openai, openrouter, gemini, ollama, the ChatGPT/Codex
21362
+ * `openai-chatgpt`, …) as model-provider plugins, ready to hand to `Agent.create({ plugins })` or any
21363
+ * runtime that consumes model-provider plugins (e.g. the `theokit` agent server / `@theokit/agents`, whose
21364
+ * own model resolution does NOT share this registry). Enables a consumer to route to ANY SDK builtin —
21365
+ * including one added later in a single SDK file — with ZERO provider-specific code: just
21366
+ * `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
21367
+ */
21368
+ static builtins() {
21369
+ registerBuiltins();
21370
+ return listProviders().map((profile) => defineProvider(profile));
21371
+ }
21360
21372
  };
21361
21373
 
21362
21374
  // src/define-skill-read-tool.ts