@theokit/sdk 4.12.0 → 4.12.2
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 +12 -0
- package/dist/cron.cjs +1 -1
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +1 -1
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +1 -1
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +1 -1
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +13 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
@@ -14276,7 +14276,7 @@ var DEFAULT_STORE = {
|
|
|
14276
14276
|
home: homedir(),
|
|
14277
14277
|
dirName: ".theokit",
|
|
14278
14278
|
fileName: "auth.json",
|
|
14279
|
-
homeEnvVar: "
|
|
14279
|
+
homeEnvVar: "THEOKIT_AUTH_HOME"
|
|
14280
14280
|
};
|
|
14281
14281
|
var OPENAI_OAUTH_CONFIG = {
|
|
14282
14282
|
provider: "openai",
|
|
@@ -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
|