summaryrefslogtreecommitdiff
path: root/plugins/security-guidance/hooks/reporesolve.py
AgeCommit message (Collapse)Author
2026-09-09Adjust SubagentStop handling and repository precedenceOctavian Guzu
- SubagentStop reviews without consuming or advancing the session's Stop state; an identical diff is not reviewed twice. - SubagentStop from a different working tree than the project is skipped. - An explicit `git -C <dir>` / `cd <dir>` naming another repository takes precedence over the hook cwd. - Narrows the `git -C … commit` matcher; keeps Windows path separators when tokenizing; adds `--no-textconv` to diff/show invocations. - Adds tests. :house: Remote-Dev: homespace
2026-09-09security-guidance: resolve repository from command and edited paths (2.0.7 ↵Octavian Guzu
→ 2.0.8) - Adds repository resolution from `git -C <dir>` / `cd <dir>` in the hook command, from the commit SHA, and from edited file paths when the hook cwd is not a git repository. - Adds PostToolUse matchers for `git -C … commit|push`. - Registers SubagentStop. - Adds `repo_resolution` / `cwd_is_repo` metric fields. - Adds tests. :house: Remote-Dev: homespace