@miller-tech/uap 1.26.3 → 1.26.4

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miller-tech/uap",
3
- "version": "1.26.3",
3
+ "version": "1.26.4",
4
4
  "description": "Autonomous AI agent memory system with CLAUDE.md protocol enforcement",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,6 +26,10 @@ MAIN_ROOT="${CHECKOUT_ROOT%%/.worktrees/*}"
26
26
  # instead of, when run from inside a worktree, resolving repo_root to the worktree
27
27
  # itself and mis-flagging a legitimate worktree edit as a root edit (false block).
28
28
  export UAP_REPO_ROOT="$MAIN_ROOT"
29
+ # git-diff enforcers (test-gate, schema-diff, iac-parity) must run git against the
30
+ # actual WORKING TREE, not the (possibly bare) MAIN_ROOT. Expose the current checkout
31
+ # so _common.worktree_root() targets the worktree when an op runs from inside one.
32
+ export UAP_WORKTREE_ROOT="$CHECKOUT_ROOT"
29
33
  cd "$MAIN_ROOT"
30
34
 
31
35
  TOOL="$(printf '%s' "$PAYLOAD" | python3 -c 'import json,sys; d=json.load(sys.stdin); print(d.get("tool_name") or d.get("tool") or "")' 2>/dev/null || true)"