@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.cjs
CHANGED
|
@@ -14279,7 +14279,7 @@ var DEFAULT_STORE = {
|
|
|
14279
14279
|
home: os.homedir(),
|
|
14280
14280
|
dirName: ".theokit",
|
|
14281
14281
|
fileName: "auth.json",
|
|
14282
|
-
homeEnvVar: "
|
|
14282
|
+
homeEnvVar: "THEOKIT_AUTH_HOME"
|
|
14283
14283
|
};
|
|
14284
14284
|
var OPENAI_OAUTH_CONFIG = {
|
|
14285
14285
|
provider: "openai",
|
|
@@ -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
|