@theokit/sdk 4.16.2 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 4.16.2
4
10
 
5
11
  ### 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 ?? modelPrefix ?? detectPrimaryProvider2();
5966
+ const provider = keyProvider ?? detectPrimaryProvider2();
5967
5967
  let model;
5968
- if (keyProvider !== void 0 && keyProvider !== modelPrefix) {
5968
+ if (provider !== modelPrefix) {
5969
5969
  model = opts.agentModel;
5970
5970
  } else {
5971
5971
  try {