@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/cli.cjs
CHANGED
|
@@ -157030,23 +157030,16 @@ var StreamerServer = class {
|
|
|
157030
157030
|
* it.
|
|
157031
157031
|
*/
|
|
157032
157032
|
async resolveConversationTarget(sessionId) {
|
|
157033
|
-
|
|
157034
|
-
|
|
157035
|
-
|
|
157036
|
-
|
|
157037
|
-
|
|
157038
|
-
|
|
157039
|
-
|
|
157040
|
-
if (boundId != null && boundId !== sessionId) {
|
|
157041
|
-
historyId = boundId;
|
|
157042
|
-
registryProvider = row?.provider;
|
|
157043
|
-
jsonlPath = this.conversationHandlers.findJsonlPath(boundId);
|
|
157044
|
-
conv = await this.conversationHandlers.findConversationByUuid(boundId);
|
|
157045
|
-
}
|
|
157046
|
-
}
|
|
157033
|
+
const row = this.managedSessionsRepo?.get(sessionId) ?? null;
|
|
157034
|
+
const liveSession = this.sessionStore.getManaged(sessionId);
|
|
157035
|
+
const resumeId = (row ? resumeIdForRow(row) : null) ?? (liveSession?.provider === CODEX_CLI_PROVIDER ? liveSession.boundConversationId ?? null : null);
|
|
157036
|
+
const historyId = resumeId ?? sessionId;
|
|
157037
|
+
const managedProvider = row?.provider ?? liveSession?.provider;
|
|
157038
|
+
const jsonlPath = this.conversationHandlers.findJsonlPath(historyId);
|
|
157039
|
+
const conv = await this.conversationHandlers.findConversationByUuid(historyId);
|
|
157047
157040
|
const cachedConvMeta = this.cache?.getMetaById(historyId);
|
|
157048
157041
|
const cachedPath = cachedConvMeta?.filePath ? toNativeFilePath(cachedConvMeta.filePath) : null;
|
|
157049
|
-
const cachedCodexPath = (
|
|
157042
|
+
const cachedCodexPath = (managedProvider === CODEX_CLI_PROVIDER || cachedConvMeta?.provider === CODEX_CLI_PROVIDER) && cachedPath != null && (0, import_fs39.existsSync)(cachedPath) ? cachedPath : null;
|
|
157050
157043
|
const jsonlCwd = jsonlPath ? await this.conversationHandlers.readCwdFromJsonl(jsonlPath) : null;
|
|
157051
157044
|
const projectPath = jsonlCwd ?? conv?.projectPath ?? (cachedCodexPath ? cachedConvMeta?.projectPath : null);
|
|
157052
157045
|
if (!projectPath) {
|
|
@@ -157056,7 +157049,7 @@ var StreamerServer = class {
|
|
|
157056
157049
|
return { ok: false, reason: "no_project_path" };
|
|
157057
157050
|
}
|
|
157058
157051
|
const provider = coerceProviderForRunner(
|
|
157059
|
-
conv?.provider ?? cachedConvMeta?.provider ??
|
|
157052
|
+
conv?.provider ?? cachedConvMeta?.provider ?? managedProvider
|
|
157060
157053
|
);
|
|
157061
157054
|
return {
|
|
157062
157055
|
ok: true,
|