@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/cli.cjs
CHANGED
|
@@ -139420,6 +139420,16 @@ var StreamerServer = class {
|
|
|
139420
139420
|
cleanup();
|
|
139421
139421
|
this.sessionFileMap.set(sessionId, resolvedFilePath);
|
|
139422
139422
|
this.fileWatcher.watch(resolvedFilePath);
|
|
139423
|
+
try {
|
|
139424
|
+
const existing = (0, import_fs14.readFileSync)(resolvedFilePath, "utf8").split("\n").filter(Boolean);
|
|
139425
|
+
if (existing.length > 0) {
|
|
139426
|
+
this.wsHub.broadcast({ type: "conversation_events", sessionId, lines: existing });
|
|
139427
|
+
for (const line of existing) {
|
|
139428
|
+
this.wsHub.broadcast({ type: "conversation_event", sessionId, line });
|
|
139429
|
+
}
|
|
139430
|
+
}
|
|
139431
|
+
} catch {
|
|
139432
|
+
}
|
|
139423
139433
|
if (this.scannerReady) {
|
|
139424
139434
|
this.scannerStale = true;
|
|
139425
139435
|
} else {
|