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