@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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.16.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(session): compaction summarizer falls back to the ENV-detected provider when no explicit key exists (the persisted registry never carries credentials) — a fresh-process `/compact` with only OPENROUTER_API_KEY in the environment now routes via OpenRouter instead of failing on the model-prefix provider.
|
|
8
|
+
|
|
9
|
+
## 4.16.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(session): `Agent.compact` hydrates the per-cwd registry from disk on a miss (same D21 path as `Agent.resume`) — a fresh process compacting a persisted session no longer fails with UnknownAgentError. Found live in the M50 probe.
|
|
14
|
+
|
|
3
15
|
## 4.16.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cron.cjs
CHANGED
|
@@ -5963,9 +5963,9 @@ function buildDefaultSummarizer(opts) {
|
|
|
5963
5963
|
const { inferProviderFromApiKey: inferProviderFromApiKey2, detectPrimaryProvider: detectPrimaryProvider2 } = await Promise.resolve().then(() => (init_real_local_run_provider(), real_local_run_provider_exports));
|
|
5964
5964
|
const keyProvider = inferProviderFromApiKey2(opts.apiKey);
|
|
5965
5965
|
const modelPrefix = opts.agentModel.includes("/") ? opts.agentModel.slice(0, opts.agentModel.indexOf("/")) : void 0;
|
|
5966
|
-
const provider = keyProvider ??
|
|
5966
|
+
const provider = keyProvider ?? detectPrimaryProvider2();
|
|
5967
5967
|
let model;
|
|
5968
|
-
if (
|
|
5968
|
+
if (provider !== modelPrefix) {
|
|
5969
5969
|
model = opts.agentModel;
|
|
5970
5970
|
} else {
|
|
5971
5971
|
try {
|
|
@@ -19886,7 +19886,11 @@ var Agent = class _Agent {
|
|
|
19886
19886
|
* @public
|
|
19887
19887
|
*/
|
|
19888
19888
|
static async compact(agentId, options = {}) {
|
|
19889
|
-
|
|
19889
|
+
let reg = getRegisteredAgent(agentId);
|
|
19890
|
+
if (reg === void 0) {
|
|
19891
|
+
await hydrateRegistryFromDisk(process.cwd());
|
|
19892
|
+
reg = getRegisteredAgent(agentId);
|
|
19893
|
+
}
|
|
19890
19894
|
if (reg === void 0 || reg.runtime !== "local") {
|
|
19891
19895
|
throw new UnknownAgentError(`No local agent "${agentId}" registered \u2014 compact targets local sessions.`);
|
|
19892
19896
|
}
|