@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.cjs CHANGED
@@ -725,6 +725,9 @@ var CODEX_CLI_PROVIDER = "codex-cli";
725
725
  function isProviderName(value) {
726
726
  return value === CLAUDE_CODE_PROVIDER || value === CODEX_CLI_PROVIDER;
727
727
  }
728
+ function coerceProviderForRunner(value) {
729
+ return isProviderName(value) ? value : CLAUDE_CODE_PROVIDER;
730
+ }
728
731
  function isProviderResumable(_provider, availabilityResumable) {
729
732
  return availabilityResumable;
730
733
  }
@@ -6459,7 +6462,7 @@ var StreamerServer = class {
6459
6462
  });
6460
6463
  const conv = conversation;
6461
6464
  const cachedConvMeta = this.cache?.getMetaById(id);
6462
- const convProvider = conv.provider ?? cachedConvMeta?.provider ?? CLAUDE_CODE_PROVIDER;
6465
+ const convProvider = coerceProviderForRunner(conv.provider ?? cachedConvMeta?.provider);
6463
6466
  const availability = classifyResumability(conv.projectPath);
6464
6467
  const body = {
6465
6468
  meta: {
@@ -6673,7 +6676,7 @@ var StreamerServer = class {
6673
6676
  return;
6674
6677
  }
6675
6678
  const cachedConvMeta = this.cache?.getMetaById(sessionId);
6676
- const provider = conv?.provider ?? cachedConvMeta?.provider ?? CLAUDE_CODE_PROVIDER;
6679
+ const provider = coerceProviderForRunner(conv?.provider ?? cachedConvMeta?.provider);
6677
6680
  const session = await this.ptyManager.start(sessionId, {
6678
6681
  provider,
6679
6682
  projectPath,