@amsterdamdatalabs/adl-agent-control-linux-x64 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: 82875872 bytes
4
- sha256: c10a85363ea56fe7046d29f64f3b2d7be95964f8c4014a8b05f274c2e0272218
4
+ sha256: 0718722d7710f0a5b08b96a2b6bf8802dc91097a36195ee20f1817e3cbd12487
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-linux-x64",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "adl CLI binary for linux/x64 (agent identity + Azure DevOps front door — see docs/architecture/cli-design.md)",
5
5
  "license": "UNLICENSED",
6
6
  "os": [