macroclaw 0.33.0 → 0.34.0
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/package.json
CHANGED
|
@@ -24,6 +24,6 @@ Update macroclaw to the latest version.
|
|
|
24
24
|
|
|
25
25
|
## Important
|
|
26
26
|
|
|
27
|
-
- The `macroclaw service update` command stops the service, installs the latest version, and starts it again. Stopping the service kills all processes in the cgroup — including this Claude Code session.
|
|
27
|
+
- The `macroclaw service update` command stops the user service, installs the latest version, and starts it again. Stopping the service kills all processes in the cgroup — including this Claude Code session.
|
|
28
28
|
- Do NOT use a background agent — it gets killed along with the main process.
|
|
29
29
|
- Always run step 4 LAST — everything after it may not execute.
|
|
@@ -10,16 +10,15 @@ LOG_FILE="$1"
|
|
|
10
10
|
|
|
11
11
|
case "$(uname -s)" in
|
|
12
12
|
Linux)
|
|
13
|
-
|
|
13
|
+
systemd-run --user \
|
|
14
14
|
--unit="macroclaw-update-$(date -u +%Y%m%dT%H%M%SZ)" \
|
|
15
15
|
--collect \
|
|
16
16
|
--no-block \
|
|
17
|
-
--property="User=$(id -un)" \
|
|
18
|
-
--property="Group=$(id -gn)" \
|
|
19
|
-
--setenv="HOME=$HOME" \
|
|
20
17
|
--setenv="PATH=$PATH" \
|
|
21
18
|
/bin/bash -lc "exec macroclaw service update > \"$LOG_FILE\" 2>&1"
|
|
22
19
|
|
|
20
|
+
# --user: run in user service manager (not system), so the transient unit
|
|
21
|
+
# has access to the user D-Bus session bus and can restart user services.
|
|
23
22
|
# --collect: automatically remove the transient unit after it finishes.
|
|
24
23
|
# --no-block: return immediately instead of waiting for the started job.
|
|
25
24
|
;;
|