@ouro.bot/cli 0.1.0-alpha.161 → 0.1.0-alpha.162
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/changelog.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.162",
|
|
6
|
+
"changes": [
|
|
7
|
+
"fix(daemon): handle EPIPE in detached daemon \u2014 suppress pipe errors when parent exits after ouro up"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.161",
|
|
6
12
|
"changes": [
|
|
@@ -183,8 +183,16 @@ process.on("SIGTERM", () => {
|
|
|
183
183
|
}
|
|
184
184
|
void daemon.stop().then(() => process.exit(0));
|
|
185
185
|
});
|
|
186
|
+
// Suppress EPIPE on stdout/stderr — normal when detached daemon's parent exits
|
|
187
|
+
/* v8 ignore start -- EPIPE suppression: only fires when parent process exits @preserve */
|
|
188
|
+
process.stdout?.on?.("error", () => { });
|
|
189
|
+
process.stderr?.on?.("error", () => { });
|
|
190
|
+
/* v8 ignore stop */
|
|
186
191
|
/* v8 ignore start -- global exception handlers: genuinely untestable in vitest; exercised by real daemon crashes @preserve */
|
|
187
192
|
process.on("uncaughtException", (error) => {
|
|
193
|
+
// EPIPE is normal for detached daemon processes — parent closed the pipe
|
|
194
|
+
if (error.code === "EPIPE")
|
|
195
|
+
return;
|
|
188
196
|
(0, daemon_tombstone_1.writeDaemonTombstone)("uncaughtException", error);
|
|
189
197
|
(0, runtime_1.emitNervesEvent)({
|
|
190
198
|
level: "error",
|