@technomoron/agent-run 0.99.38 → 0.99.39
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/CHANGES +7 -0
- package/README.md +6 -0
- package/package.json +1 -1
- package/scripts/update-ai-tools.sh +6 -9
package/CHANGES
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
CHANGES
|
|
2
2
|
=======
|
|
3
3
|
|
|
4
|
+
Version 0.99.39 (2026-09-11)
|
|
5
|
+
----------------------------
|
|
6
|
+
* Fix the AI tools updater failing under sudo or a root shell with inherited
|
|
7
|
+
SUDO_USER when configuring root-owned pnpm paths.
|
|
8
|
+
* Allow Claude, Grok, and esbuild install hooks during global npm updates,
|
|
9
|
+
and remove the duplicate manual Claude install step.
|
|
10
|
+
|
|
4
11
|
Version 0.99.38 (2026-09-11)
|
|
5
12
|
----------------------------
|
|
6
13
|
* Add agent-brain pull, push, and save commands without --confirmed. Save
|
package/README.md
CHANGED
|
@@ -1070,6 +1070,12 @@ npm, pnpm, corepack, fallow, ripgrep, pm2, tsx, typescript,
|
|
|
1070
1070
|
@xai-official/grok, and @technomoron/agent-run
|
|
1071
1071
|
```
|
|
1072
1072
|
|
|
1073
|
+
The updater clears inherited `SUDO_USER` for its root-owned pnpm configuration
|
|
1074
|
+
writes, so it works both under sudo and from a root shell. It explicitly allows
|
|
1075
|
+
the Claude, Grok, esbuild, and pnpm install hooks. Optional native build hooks
|
|
1076
|
+
such as keytar and node-pty remain subject to npm's script policy; the updater
|
|
1077
|
+
does not enable native compilation or require a working node-gyp installation.
|
|
1078
|
+
|
|
1073
1079
|
The optional apt package list still defaults to `gh` and can be changed with
|
|
1074
1080
|
`AI_TOOLS_APT_PACKAGES`.
|
|
1075
1081
|
|
package/package.json
CHANGED
|
@@ -51,22 +51,19 @@ if [ "${1:-}" = --agent-brain ]; then
|
|
|
51
51
|
exit 0
|
|
52
52
|
fi
|
|
53
53
|
|
|
54
|
-
"$NPM_BIN" install -g --force "${packages[@]}"
|
|
54
|
+
"$NPM_BIN" install -g --force "${packages[@]}" --allow-scripts=@anthropic-ai/claude-code,@xai-official/grok,esbuild
|
|
55
55
|
ensure_brain
|
|
56
56
|
|
|
57
57
|
# corepack and pnpm both own the pnpm/pnpx shims; install pnpm last so npm's
|
|
58
58
|
# current pnpm package remains the command users execute.
|
|
59
59
|
"$NPM_BIN" install -g --force pnpm@latest --allow-scripts=pnpm
|
|
60
60
|
|
|
61
|
+
# This updater deliberately manages root-owned tooling. pnpm rejects inherited
|
|
62
|
+
# sudo identity even in a root shell; clear it only for these configuration writes.
|
|
61
63
|
install -d -o root -g root -m 0755 /usr/local/share/pnpm/global /usr/local/share/pnpm/store /usr/local/bin
|
|
62
|
-
"$PNPM_BIN" config set --global global-dir /usr/local/share/pnpm/global
|
|
63
|
-
"$PNPM_BIN" config set --global global-bin-dir /usr/local/bin
|
|
64
|
-
"$PNPM_BIN" config set --global store-dir /usr/local/share/pnpm/store
|
|
65
|
-
|
|
66
|
-
CLAUDE_INSTALL="$("$NPM_BIN" root -g)/@anthropic-ai/claude-code/install.cjs"
|
|
67
|
-
if [ -f "$CLAUDE_INSTALL" ]; then
|
|
68
|
-
"$NODE_BIN" "$CLAUDE_INSTALL"
|
|
69
|
-
fi
|
|
64
|
+
env -u SUDO_USER "$PNPM_BIN" config set --global global-dir /usr/local/share/pnpm/global
|
|
65
|
+
env -u SUDO_USER "$PNPM_BIN" config set --global global-bin-dir /usr/local/bin
|
|
66
|
+
env -u SUDO_USER "$PNPM_BIN" config set --global store-dir /usr/local/share/pnpm/store
|
|
70
67
|
|
|
71
68
|
if [ -n "$AI_TOOLS_APT_PACKAGES" ] && command -v "$APT_GET_BIN" >/dev/null 2>&1; then
|
|
72
69
|
read -r -a apt_packages <<<"$AI_TOOLS_APT_PACKAGES"
|