@ouro.bot/cli 0.1.0-alpha.162 → 0.1.0-alpha.163
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.163",
|
|
6
|
+
"changes": [
|
|
7
|
+
"fix(daemon): redirect detached spawn stdio to /dev/null \u2014 fixes ouro up daemon crash"
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.162",
|
|
6
12
|
"changes": [
|
|
@@ -1193,11 +1193,15 @@ 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 devNull = fs.openSync(os.devNull, "w");
|
|
1196
1199
|
const child = (0, child_process_1.spawn)("node", [entry, "--socket", socketPath], {
|
|
1197
1200
|
detached: true,
|
|
1198
|
-
stdio: "ignore",
|
|
1201
|
+
stdio: ["ignore", devNull, devNull],
|
|
1199
1202
|
});
|
|
1200
1203
|
child.unref();
|
|
1204
|
+
fs.closeSync(devNull);
|
|
1201
1205
|
return Promise.resolve({ pid: child.pid ?? null });
|
|
1202
1206
|
}
|
|
1203
1207
|
function defaultWriteStdout(text) {
|