@theokit/sdk 4.16.1 → 4.16.3
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 +7 -3
- package/dist/cron.cjs.map +1 -1
- package/dist/cron.js +7 -3
- package/dist/cron.js.map +1 -1
- package/dist/eval.cjs +7 -3
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +7 -3
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cron.js
CHANGED
|
@@ -5960,9 +5960,9 @@ function buildDefaultSummarizer(opts) {
|
|
|
5960
5960
|
const { inferProviderFromApiKey: inferProviderFromApiKey2, detectPrimaryProvider: detectPrimaryProvider2 } = await Promise.resolve().then(() => (init_real_local_run_provider(), real_local_run_provider_exports));
|
|
5961
5961
|
const keyProvider = inferProviderFromApiKey2(opts.apiKey);
|
|
5962
5962
|
const modelPrefix = opts.agentModel.includes("/") ? opts.agentModel.slice(0, opts.agentModel.indexOf("/")) : void 0;
|
|
5963
|
-
const provider = keyProvider ??
|
|
5963
|
+
const provider = keyProvider ?? detectPrimaryProvider2();
|
|
5964
5964
|
let model;
|
|
5965
|
-
if (
|
|
5965
|
+
if (provider !== modelPrefix) {
|
|
5966
5966
|
model = opts.agentModel;
|
|
5967
5967
|
} else {
|
|
5968
5968
|
try {
|
|
@@ -19883,7 +19883,11 @@ var Agent = class _Agent {
|
|
|
19883
19883
|
* @public
|
|
19884
19884
|
*/
|
|
19885
19885
|
static async compact(agentId, options = {}) {
|
|
19886
|
-
|
|
19886
|
+
let reg = getRegisteredAgent(agentId);
|
|
19887
|
+
if (reg === void 0) {
|
|
19888
|
+
await hydrateRegistryFromDisk(process.cwd());
|
|
19889
|
+
reg = getRegisteredAgent(agentId);
|
|
19890
|
+
}
|
|
19887
19891
|
if (reg === void 0 || reg.runtime !== "local") {
|
|
19888
19892
|
throw new UnknownAgentError(`No local agent "${agentId}" registered \u2014 compact targets local sessions.`);
|
|
19889
19893
|
}
|