@threadbase-sh/streamer 1.27.0 → 1.27.1

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/dist/index.js CHANGED
@@ -673,6 +673,9 @@ var CODEX_CLI_PROVIDER = "codex-cli";
673
673
  function isProviderName(value) {
674
674
  return value === CLAUDE_CODE_PROVIDER || value === CODEX_CLI_PROVIDER;
675
675
  }
676
+ function coerceProviderForRunner(value) {
677
+ return isProviderName(value) ? value : CLAUDE_CODE_PROVIDER;
678
+ }
676
679
  function isProviderResumable(_provider, availabilityResumable) {
677
680
  return availabilityResumable;
678
681
  }
@@ -6420,7 +6423,7 @@ var StreamerServer = class {
6420
6423
  });
6421
6424
  const conv = conversation;
6422
6425
  const cachedConvMeta = this.cache?.getMetaById(id);
6423
- const convProvider = conv.provider ?? cachedConvMeta?.provider ?? CLAUDE_CODE_PROVIDER;
6426
+ const convProvider = coerceProviderForRunner(conv.provider ?? cachedConvMeta?.provider);
6424
6427
  const availability = classifyResumability(conv.projectPath);
6425
6428
  const body = {
6426
6429
  meta: {
@@ -6634,7 +6637,7 @@ var StreamerServer = class {
6634
6637
  return;
6635
6638
  }
6636
6639
  const cachedConvMeta = this.cache?.getMetaById(sessionId);
6637
- const provider = conv?.provider ?? cachedConvMeta?.provider ?? CLAUDE_CODE_PROVIDER;
6640
+ const provider = coerceProviderForRunner(conv?.provider ?? cachedConvMeta?.provider);
6638
6641
  const session = await this.ptyManager.start(sessionId, {
6639
6642
  provider,
6640
6643
  projectPath,