feat(coding-agent): added streaming persistence with backpressure control

- Added streaming NDJSON writer with backpressure handling for session persistence.
- Added SessionManager.flush() method for explicit write synchronization before session operations.
- Added content truncation for oversized blocks (500K char limit) to prevent memory exhaustion.
- Replaced synchronous file appends with streaming NDJSON writer in session persistence.
This commit is contained in:
can1357
2026-01-05 02:23:36 +01:00
parent f693c285ef
commit fd67003028
6 changed files with 431 additions and 7 deletions
+1
View File
@@ -53,6 +53,7 @@
"marked": "^15.0.12",
"minimatch": "^10.1.1",
"nanoid": "^5.1.6",
"ndjson": "^2.0.0",
"node-html-parser": "^6.1.13",
"smol-toml": "^1.6.0",
"strip-ansi": "^7.1.2",