@ouro.bot/cli 0.1.0-alpha.162 → 0.1.0-alpha.164
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,18 @@
|
|
|
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.164",
|
|
6
|
+
"changes": [
|
|
7
|
+
"fix(daemon): keep /dev/null fds open until parent exits \u2014 fixes ouro up daemon crash"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"version": "0.1.0-alpha.163",
|
|
12
|
+
"changes": [
|
|
13
|
+
"fix(daemon): redirect detached spawn stdio to /dev/null \u2014 fixes ouro up daemon crash"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
4
16
|
{
|
|
5
17
|
"version": "0.1.0-alpha.162",
|
|
6
18
|
"changes": [
|
|
@@ -1193,11 +1193,16 @@ function parseOuroCommand(args) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
function defaultStartDaemonProcess(socketPath) {
|
|
1195
1195
|
const entry = path.join((0, identity_1.getRepoRoot)(), "dist", "heart", "daemon", "daemon-entry.js");
|
|
1196
|
+
// Redirect stdio to /dev/null via file descriptors — using 'ignore' causes EPIPE
|
|
1197
|
+
// when the daemon's logging system writes to stderr after the parent exits.
|
|
1198
|
+
const outFd = fs.openSync(os.devNull, "w");
|
|
1199
|
+
const errFd = fs.openSync(os.devNull, "w");
|
|
1196
1200
|
const child = (0, child_process_1.spawn)("node", [entry, "--socket", socketPath], {
|
|
1197
1201
|
detached: true,
|
|
1198
|
-
stdio: "ignore",
|
|
1202
|
+
stdio: ["ignore", outFd, errFd],
|
|
1199
1203
|
});
|
|
1200
1204
|
child.unref();
|
|
1205
|
+
// Don't close fds — the child process needs them. They'll be cleaned up when the parent exits.
|
|
1201
1206
|
return Promise.resolve({ pid: child.pid ?? null });
|
|
1202
1207
|
}
|
|
1203
1208
|
function defaultWriteStdout(text) {
|