@threadbase-sh/streamer 1.15.2 → 1.15.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 +10 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +10 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5464,6 +5464,16 @@ var StreamerServer = class {
|
|
|
5464
5464
|
cleanup();
|
|
5465
5465
|
this.sessionFileMap.set(sessionId, resolvedFilePath);
|
|
5466
5466
|
this.fileWatcher.watch(resolvedFilePath);
|
|
5467
|
+
try {
|
|
5468
|
+
const existing = (0, import_fs11.readFileSync)(resolvedFilePath, "utf8").split("\n").filter(Boolean);
|
|
5469
|
+
if (existing.length > 0) {
|
|
5470
|
+
this.wsHub.broadcast({ type: "conversation_events", sessionId, lines: existing });
|
|
5471
|
+
for (const line of existing) {
|
|
5472
|
+
this.wsHub.broadcast({ type: "conversation_event", sessionId, line });
|
|
5473
|
+
}
|
|
5474
|
+
}
|
|
5475
|
+
} catch {
|
|
5476
|
+
}
|
|
5467
5477
|
if (this.scannerReady) {
|
|
5468
5478
|
this.scannerStale = true;
|
|
5469
5479
|
} else {
|