@phren/agent 0.3.44 → 0.3.45
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/tools/shell.js +4 -1
- package/package.json +2 -2
package/dist/tools/shell.js
CHANGED
|
@@ -168,8 +168,11 @@ class OutputCapture {
|
|
|
168
168
|
writeSpill(text) {
|
|
169
169
|
if (this.spillFd === null || this.capped)
|
|
170
170
|
return;
|
|
171
|
+
// Write only what the caps leave, so a file never overshoots by a pipe chunk.
|
|
172
|
+
const room = Math.min(MAX_SPILL_BYTES - this.spilled, sessionSpillLimit() - sessionSpilled);
|
|
173
|
+
const bytes = Buffer.from(text);
|
|
171
174
|
try {
|
|
172
|
-
const written = fs.writeSync(this.spillFd,
|
|
175
|
+
const written = fs.writeSync(this.spillFd, bytes, 0, Math.min(bytes.length, room));
|
|
173
176
|
this.spilled += written;
|
|
174
177
|
sessionSpilled += written;
|
|
175
178
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phren/agent",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.45",
|
|
4
4
|
"description": "phren's coding agent: starts every session knowing your project's memory, tasks and decisions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
],
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@modelcontextprotocol/sdk": "^1.32.0",
|
|
18
|
-
"@phren/cli": "0.3.
|
|
18
|
+
"@phren/cli": "0.3.45",
|
|
19
19
|
"ajv": "^8.20.0",
|
|
20
20
|
"ink": "^8.0.0",
|
|
21
21
|
"react": "^19.3.0"
|