@threadbase-sh/streamer 1.70.2 → 1.70.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/dist/cli.cjs +9 -16
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +9 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -16
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18550,23 +18550,16 @@ var StreamerServer = class {
|
|
|
18550
18550
|
* it.
|
|
18551
18551
|
*/
|
|
18552
18552
|
async resolveConversationTarget(sessionId) {
|
|
18553
|
-
|
|
18554
|
-
|
|
18555
|
-
|
|
18556
|
-
|
|
18557
|
-
|
|
18558
|
-
|
|
18559
|
-
|
|
18560
|
-
if (boundId != null && boundId !== sessionId) {
|
|
18561
|
-
historyId = boundId;
|
|
18562
|
-
registryProvider = row?.provider;
|
|
18563
|
-
jsonlPath = this.conversationHandlers.findJsonlPath(boundId);
|
|
18564
|
-
conv = await this.conversationHandlers.findConversationByUuid(boundId);
|
|
18565
|
-
}
|
|
18566
|
-
}
|
|
18553
|
+
const row = this.managedSessionsRepo?.get(sessionId) ?? null;
|
|
18554
|
+
const liveSession = this.sessionStore.getManaged(sessionId);
|
|
18555
|
+
const resumeId = (row ? resumeIdForRow(row) : null) ?? (liveSession?.provider === CODEX_CLI_PROVIDER ? liveSession.boundConversationId ?? null : null);
|
|
18556
|
+
const historyId = resumeId ?? sessionId;
|
|
18557
|
+
const managedProvider = row?.provider ?? liveSession?.provider;
|
|
18558
|
+
const jsonlPath = this.conversationHandlers.findJsonlPath(historyId);
|
|
18559
|
+
const conv = await this.conversationHandlers.findConversationByUuid(historyId);
|
|
18567
18560
|
const cachedConvMeta = this.cache?.getMetaById(historyId);
|
|
18568
18561
|
const cachedPath = cachedConvMeta?.filePath ? toNativeFilePath(cachedConvMeta.filePath) : null;
|
|
18569
|
-
const cachedCodexPath = (
|
|
18562
|
+
const cachedCodexPath = (managedProvider === CODEX_CLI_PROVIDER || cachedConvMeta?.provider === CODEX_CLI_PROVIDER) && cachedPath != null && (0, import_fs28.existsSync)(cachedPath) ? cachedPath : null;
|
|
18570
18563
|
const jsonlCwd = jsonlPath ? await this.conversationHandlers.readCwdFromJsonl(jsonlPath) : null;
|
|
18571
18564
|
const projectPath = jsonlCwd ?? conv?.projectPath ?? (cachedCodexPath ? cachedConvMeta?.projectPath : null);
|
|
18572
18565
|
if (!projectPath) {
|
|
@@ -18576,7 +18569,7 @@ var StreamerServer = class {
|
|
|
18576
18569
|
return { ok: false, reason: "no_project_path" };
|
|
18577
18570
|
}
|
|
18578
18571
|
const provider = coerceProviderForRunner(
|
|
18579
|
-
conv?.provider ?? cachedConvMeta?.provider ??
|
|
18572
|
+
conv?.provider ?? cachedConvMeta?.provider ?? managedProvider
|
|
18580
18573
|
);
|
|
18581
18574
|
return {
|
|
18582
18575
|
ok: true,
|