@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/cli.cjs +5 -2
- 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 +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -136486,6 +136486,9 @@ var CODEX_CLI_PROVIDER2 = "codex-cli";
|
|
|
136486
136486
|
function isProviderName(value) {
|
|
136487
136487
|
return value === CLAUDE_CODE_PROVIDER2 || value === CODEX_CLI_PROVIDER2;
|
|
136488
136488
|
}
|
|
136489
|
+
function coerceProviderForRunner(value) {
|
|
136490
|
+
return isProviderName(value) ? value : CLAUDE_CODE_PROVIDER2;
|
|
136491
|
+
}
|
|
136489
136492
|
function isProviderResumable(_provider, availabilityResumable) {
|
|
136490
136493
|
return availabilityResumable;
|
|
136491
136494
|
}
|
|
@@ -143522,7 +143525,7 @@ var StreamerServer = class {
|
|
|
143522
143525
|
});
|
|
143523
143526
|
const conv = conversation;
|
|
143524
143527
|
const cachedConvMeta = this.cache?.getMetaById(id);
|
|
143525
|
-
const convProvider = conv.provider ?? cachedConvMeta?.provider
|
|
143528
|
+
const convProvider = coerceProviderForRunner(conv.provider ?? cachedConvMeta?.provider);
|
|
143526
143529
|
const availability = classifyResumability(conv.projectPath);
|
|
143527
143530
|
const body = {
|
|
143528
143531
|
meta: {
|
|
@@ -143736,7 +143739,7 @@ var StreamerServer = class {
|
|
|
143736
143739
|
return;
|
|
143737
143740
|
}
|
|
143738
143741
|
const cachedConvMeta = this.cache?.getMetaById(sessionId);
|
|
143739
|
-
const provider = conv?.provider ?? cachedConvMeta?.provider
|
|
143742
|
+
const provider = coerceProviderForRunner(conv?.provider ?? cachedConvMeta?.provider);
|
|
143740
143743
|
const session = await this.ptyManager.start(sessionId, {
|
|
143741
143744
|
provider,
|
|
143742
143745
|
projectPath,
|