@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.
Files changed (3) hide show
  1. package/bin/adl +1 -1
  2. package/bin/reconcile +10 -1
  3. package/package.json +1 -1
package/bin/adl CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/bin/adl
3
3
  size: 63812082 bytes
4
- sha256: 6e9c3201604d28fed30794ddca8c0a50e23902b16da3a83231cc42371bf2f5a4
4
+ sha256: 48dc5bb9077ff22961d1750ce088e482420d4a9b1ccd0ad1e203b3679a865517
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
- "$script_dir/lean-ctx-observe-strip" --home "$administrator_home" --mode plan
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.4",
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": [