pikiloom 0.4.18 → 0.4.19
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/agent/stream.js +7 -0
- package/package.json +1 -1
package/dist/agent/stream.js
CHANGED
|
@@ -242,6 +242,13 @@ export async function run(cmd, opts, parseLine, parseStderrLine) {
|
|
|
242
242
|
detached: process.platform !== 'win32',
|
|
243
243
|
});
|
|
244
244
|
agentLog(`[spawn] pid=${proc.pid}`);
|
|
245
|
+
proc.stdin?.on('error', (e) => {
|
|
246
|
+
// Some CLIs can exit after producing all output before we finish writing
|
|
247
|
+
// stdin. Treat EPIPE as a normal early-close race; the exit code/stdout
|
|
248
|
+
// still determine the stream result.
|
|
249
|
+
if (e?.code !== 'EPIPE')
|
|
250
|
+
agentWarn(`[stdin] write failed: ${e?.message || e}`);
|
|
251
|
+
});
|
|
245
252
|
const abortStream = () => {
|
|
246
253
|
if (interrupted || proc.killed)
|
|
247
254
|
return;
|
package/package.json
CHANGED