@amsterdamdatalabs/adl-agent-control-darwin-arm64 0.1.4 → 0.1.5
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/bin/adl +1 -1
- package/bin/reconcile +10 -1
- package/package.json +1 -1
package/bin/adl
CHANGED
package/bin/reconcile
CHANGED
|
@@ -2519,7 +2519,16 @@ fi
|
|
|
2519
2519
|
# in unnoticed.
|
|
2520
2520
|
if [[ "$mode" != apply ]]; then
|
|
2521
2521
|
echo "global-tools: lean-ctx observe/raw-hook strip mode=plan home=$administrator_home"
|
|
2522
|
-
|
|
2522
|
+
# Plan runs either unprivileged (the administrator's own shell) or under
|
|
2523
|
+
# sudo (fleet-cutover.sh's plan). As root it must drop to the administrator
|
|
2524
|
+
# exactly like apply: lean-ctx-observe-strip refuses root against a
|
|
2525
|
+
# non-root home (m5 cutover plan, 2026-09-29).
|
|
2526
|
+
if [[ "$EUID" -eq 0 && "$administrator" != root ]]; then
|
|
2527
|
+
(cd /tmp && sudo -u "$administrator" -H env PATH="${brew_bin%/*}:/usr/bin:/bin" \
|
|
2528
|
+
"$script_dir/lean-ctx-observe-strip" --home "$administrator_home" --mode plan)
|
|
2529
|
+
else
|
|
2530
|
+
"$script_dir/lean-ctx-observe-strip" --home "$administrator_home" --mode plan
|
|
2531
|
+
fi
|
|
2523
2532
|
else
|
|
2524
2533
|
echo "global-tools: lean-ctx observe/raw-hook strip mode=apply home=$administrator_home (as $administrator)"
|
|
2525
2534
|
# stdout captured (then re-printed) so its own "backed up previous config
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@amsterdamdatalabs/adl-agent-control-darwin-arm64",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "adl CLI binary for darwin/arm64 (agent identity + Azure DevOps front door — see docs/architecture/cli-design.md)",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"os": [
|