@ouro.bot/cli 0.1.0-alpha.1078 → 0.1.0-alpha.1079

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.1079",
6
+ "changes": [
7
+ "ouro up restarts a SysV service instead of starting it, so updates on the Comet stop rolling back"
8
+ ]
9
+ },
4
10
  {
5
11
  "version": "0.1.0-alpha.1078",
6
12
  "changes": [
@@ -1,5 +1,5 @@
1
1
  {
2
- "runtimeVersion": "0.1.0-alpha.1078",
2
+ "runtimeVersion": "0.1.0-alpha.1079",
3
3
  "bundleSchemaVersion": 3,
4
4
  "lastUpdated": "2026-09-03T00:00:00.000Z"
5
5
  }
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0"?>
2
2
  <Container version="2">
3
3
  <Name>ouro-butler</Name>
4
- <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1078</Repository>
4
+ <Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1079</Repository>
5
5
  <Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
6
6
  <Network>host</Network>
7
7
  <Shell>sh</Shell>
@@ -193,7 +193,9 @@ function generateSysvInitScript(options) {
193
193
  " start)",
194
194
  " if running; then echo \"ouro: already running\"; exit 0; fi",
195
195
  " mkdir -p \"$LOG_DIR\"",
196
- " supervise </dev/null >/dev/null 2>&1 &",
196
+ " # A subshell, not a bare function: dash keeps a backgrounded function on the caller's",
197
+ " # stdout, so whoever ran `start` would wait on it for the supervisor's whole life.",
198
+ " ( supervise ) </dev/null >/dev/null 2>&1 &",
197
199
  " echo $! >\"$PIDFILE\"",
198
200
  " echo \"ouro: started\"",
199
201
  " ;;",
@@ -336,8 +338,13 @@ function startLinuxService(deps, ouroCliHome, socketPath) {
336
338
  try {
337
339
  if (record.init === "systemd")
338
340
  deps.run("systemctl", systemctl(record, ["start", path.basename(record.path)]));
341
+ // SysV: `restart`, not `start`. This runs only when the daemon's socket is dead, for
342
+ // example right after `ouro up` stopped an older daemon to replace it. That daemon
343
+ // exits 0, so its supervisor is on its way out too; `start` in that moment sees it
344
+ // still running, says "already running", and nothing brings a daemon back. `restart`
345
+ // waits for the old supervisor to finish and starts a fresh one.
339
346
  else
340
- deps.run(record.path, ["start"]);
347
+ deps.run(record.path, ["restart"]);
341
348
  }
342
349
  catch (error) {
343
350
  (0, runtime_1.emitNervesEvent)({
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1078",
3
+ "version": "0.1.0-alpha.1079",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@ouro.bot/cli",
9
- "version": "0.1.0-alpha.1078",
9
+ "version": "0.1.0-alpha.1079",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.78.0",
12
12
  "@ouro.bot/friends": "0.1.0-alpha.18",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.1078",
3
+ "version": "0.1.0-alpha.1079",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },