pi-guardrails: v0.22.0
Minor Changes
- 82a314d: Approval prompts report
blockedprogram status. The permission-gate confirmation and the path-access prompt now report pi as blocked on user input (OSC 7501, kindpermission) through theblockedoption ofctx.ui.custom()(pi >= 1.5.0), so terminals that support program status, such as Rex, show blocked instead of working while an approval waits.
Patch Changes
- add9316: Ship
CHANGELOG.mdin the npm tarball so pi can show the changelog when the extension updates. - 35fc154: Stop treating
git grepsearch patterns andgit log -L/git blame -Lline ranges as paths.git grep -n "/transition" -- srcandgit log -L '/def foo/,/^def bar/:backend/x.py'no longer prompt for (or get blocked on) a path at the top of the filesystem. The file named in agit log -Lrange, and every other argument, is still checked. - e15ab4f: Follow
cdinside( ... )subshells and{ ...; }groups when resolving relative paths in bash commands.(cd packages/dashboard && bun dev > ../../.pi/tmp/dev.log 2>&1 &)now resolves the log path againstpackages/dashboard, so it no longer prompts for (or gets blocked on) a path outside the workspace. Acdinside a subshell still does not change the directory for commands after it; acdinside a{ ...; }group does, as in bash. - 7ade1b8: Apply project settings only in trusted folders. Disable project-scoped persistent grants and preset destinations until trust is granted, while retaining global protections and session grants.