@threadbase-sh/streamer 1.27.0 → 1.27.2
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/cli.cjs +938 -712
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/migrations/008_fix_legacy_threadbase_provider.sql +7 -0
- package/package.json +3 -3
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
|
|
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
|
|
6640
|
+
const provider = coerceProviderForRunner(conv?.provider ?? cachedConvMeta?.provider);
|
|
6638
6641
|
const session = await this.ptyManager.start(sessionId, {
|
|
6639
6642
|
provider,
|
|
6640
6643
|
projectPath,
|