Skip to content

fix(pi-permission-system): ignore command prose as paths - #1099

Open
mikemikimike wants to merge 1 commit into
gotgenes:mainfrom
mikemikimike:fix-1096-command-message-paths
Open

mikemikimike wants to merge 1 commit into
gotgenes:mainfrom
mikemikimike:fix-1096-command-message-paths

Conversation

@mikemikimike

Copy link
Copy Markdown
Contributor

Fixes #1096

#1096

Treat git commit messages and jq filter programs as non-path arguments during bash path projection, while preserving file operands and path-bearing options such as git -F and jq -L.

Tests:

  • pnpm --filter @gotgenes/pi-permission-system exec vitest run test/access-intent/bash/token-collection.test.ts (192 passed)
  • pnpm --filter @gotgenes/pi-permission-system run check
  • pnpm --filter @gotgenes/pi-permission-system run test (Windows path and permission environment failures remain; focused token tests pass)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pi-permission-system: a path deny blocks commands whose message or filter argument contains a denied path shape (git commit -m, jq)

1 participant