bash-classify 0.11.0__tar.gz → 0.13.0__tar.gz
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.
- {bash_classify-0.11.0 → bash_classify-0.13.0}/.claude-plugin/marketplace.json +1 -1
- {bash_classify-0.11.0 → bash_classify-0.13.0}/PKG-INFO +75 -10
- {bash_classify-0.11.0 → bash_classify-0.13.0}/README.md +74 -9
- {bash_classify-0.11.0 → bash_classify-0.13.0}/SPEC.md +216 -31
- {bash_classify-0.11.0 → bash_classify-0.13.0}/coding-agent-plugins/claude-code/.claude-plugin/plugin.json +1 -1
- {bash_classify-0.11.0 → bash_classify-0.13.0}/docs/classification-guidance.md +38 -4
- {bash_classify-0.11.0 → bash_classify-0.13.0}/schemas/command.schema.json +5 -1
- {bash_classify-0.11.0 → bash_classify-0.13.0}/schemas/match-rules.schema.json +12 -1
- bash_classify-0.13.0/schemas/sensitive-paths.schema.json +49 -0
- bash_classify-0.13.0/src/bash_classify/__init__.py +60 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/classifier.py +78 -11
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/cli.py +21 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/cp.yaml +3 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/curl.yaml +2 -2
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/git.yaml +2 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/mv.yaml +3 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/sort.yaml +2 -2
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/unzip.yaml +1 -0
- bash_classify-0.13.0/src/bash_classify/commands/wget.yaml +12 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/database.py +1 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/matcher.py +59 -9
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/models.py +82 -3
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/parser.py +63 -38
- bash_classify-0.13.0/src/bash_classify/redirects.py +50 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/rules.py +36 -13
- bash_classify-0.13.0/src/bash_classify/sensitive-paths.yaml +112 -0
- bash_classify-0.13.0/src/bash_classify/sensitive.py +506 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_classifier.py +228 -0
- bash_classify-0.13.0/tests/test_cli.py +558 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_cli_serialization.py +51 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_database.py +48 -0
- bash_classify-0.13.0/tests/test_output_paths.py +218 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_parser.py +370 -0
- bash_classify-0.13.0/tests/test_public_api.py +77 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_rules.py +75 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_schema.py +28 -0
- bash_classify-0.13.0/tests/test_sensitive_paths.py +638 -0
- bash_classify-0.11.0/src/bash_classify/__init__.py +0 -23
- bash_classify-0.11.0/src/bash_classify/commands/wget.yaml +0 -7
- bash_classify-0.11.0/tests/test_cli.py +0 -255
- {bash_classify-0.11.0 → bash_classify-0.13.0}/.claude/rules/command-database.md +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/.editorconfig +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/.github/workflows/ci.yml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/.github/workflows/publish.yml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/.gitignore +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/.python-version +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/CLAUDE.md +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/LICENSE +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/coding-agent-plugins/claude-code/hooks/hook-permission-request.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/coding-agent-plugins/claude-code/hooks/hook-pre-tool-use.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/coding-agent-plugins/claude-code/hooks/hooks.json +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/pyproject.toml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/ruff.toml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/__main__.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/agent-browser.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/apt.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/awk.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/basename.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/bash-classify.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/bash.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/black.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/brew.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/builtin.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/cargo.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/cat.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/chgrp.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/chmod.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/chown.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/column.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/comm.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/command.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/cut.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/date.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/df.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/diff.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/dig.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/dirname.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/docker.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/du.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/echo.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/env.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/eslint.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/eval.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/exec.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/expand.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/false.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/file.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/find.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/fmt.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/fold.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/free.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gawk.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gcloud.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gh.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/glab-discussion.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/glab.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/go.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gog.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gradle.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gradlew.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/grep.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/groups.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gunzip.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gws.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/gzip.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/hadolint.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/head.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/helm.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/hostname.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/id.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/install.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/isort.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/java.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/javac.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/join.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/journalctl.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/jq.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/kill.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/killall.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/kubectl.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/less.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/ln.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/ls.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/make.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/md5sum.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/mise.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/mkdir.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/more.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/mvn.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/mvnw.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/mypy.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/netstat.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/nice.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/nl.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/node.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/nohup.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/npm.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/npx.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/nslookup.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/paste.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/ping.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pip.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pip3.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pipx.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pkill.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pnpm.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/poetry.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/prettier.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/printenv.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/printf.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/ps.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pup.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pwd.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/pytest.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/python.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/python3.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/read.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/readlink.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/realpath.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/rev.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/rg.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/rm.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/rsync.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/rtk.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/ruff.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/scp.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/sed.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/seq.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/sh.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/sha1sum.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/sha256sum.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/shellcheck.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/slack.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/sleep.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/snip.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/ss.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/ssh.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/stat.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/stdbuf.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/strace.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/strings.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/sudo.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/systemctl.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/tac.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/tail.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/tar.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/tee.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/terraform.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/test.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/time.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/timeout.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/top.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/touch.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/tr.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/traceroute.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/true.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/tsc.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/type.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/uname.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/unexpand.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/uniq.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/uptime.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/uv.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/wait.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/wc.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/whereis.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/which.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/whoami.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/xargs.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/xmllint.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/yarn.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/yes.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/yq.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/zip.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/commands/zsh.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/src/bash_classify/py.typed +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/__init__.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/conftest.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-award-emoji.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-include-diverged.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-itself.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-pipelines-list.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-update-description.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/api-project-lookup.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/ci-list.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/comment-only-mention.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/echo-mentions-api-endpoint.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/echo-mentions-command.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/git-commit-heredoc-message.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/git-commit-inline-message.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/glab-discussion-read-and-api-mr.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/glab-discussion-read.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/glab-pipeline-inspect.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/grep-pattern-mentions-command.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/grep-recursive-for-command.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/heredoc-brief-2026-09-04.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/heredoc-brief-mentions-blocked-commands.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/heredoc-report-mentions-blocked.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/heredoc-skill-custom-delimiter.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/heredoc-skill-phrase-split-across-lines.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/hook-self-test-json-payload.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/loop-over-quoted-command-strings.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-note-list-output-json.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-note-list.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-update-then-view.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-view-bare.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-view-grep-pipeline.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-view-output-equals-json.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-view-output-json.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/mr-view-output-short-flag.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/printf-mentions-command.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/python-heredoc-triple-quoted-mention.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/allow/ripgrep-pattern-args.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-absolute-binary-path.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-delete-note-nested-api.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-cd-and-prefix.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-export-host-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-for-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-heredoc-then-call.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-hostname-python-consumer.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-line-continuation.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-method-get-field.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-output-ndjson.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-paginate-before-path.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-paginate.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-per-page-query.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-quoted-paginate-jq.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-redirect-to-file.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-repo-flag-first.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-discussions-var-capture.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-edit-note-put-heredoc.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-new-diff-note-input-stdin.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-new-diff-note-position-fields.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-note-award-emoji.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-note-by-id-or-retry.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-notes-after-allowed-mr-view.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-notes-query-sort.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-notes-timeout-prefix.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-reply-method-post-after-path.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-reply-post-body-from-file.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-reply-post-heredoc-body.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-resolve-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-resolve-put-field.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/api-single-discussion-by-id.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/heredoc-then-and-chain-to-blocked.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/heredoc-then-pipe-to-blocked.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-custom-heredoc-delimiter.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-help.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-heredoc-body.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-inline-after-mr-update.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-long-message-flag.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-repo-before-message.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-second-in-pipeline.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-note-then-close.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-bare.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-no-iid.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-page-flag.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-repo-flag.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-short-cluster.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-short-flag.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/wrapper-bash-c.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/block/wrapper-sudo.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-discussion/rules.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-job-metadata-without-trace.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-job-metadata-xargs.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-itself.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-pipelines-list-per-page.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-pipelines-list.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-bash-c.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-ref.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-single-quoted.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/ci-lint-local-file.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/ci-list-per-page.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/ci-list.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/ci-status-compact.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/ci-status-pipeline-id.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/comment-only-mention.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/echo-mentions-ci-command.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/git-commit-heredoc-message.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/git-commit-inline-message.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/glab-discussion-read.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/glab-pipeline-inspect.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/grep-pattern-mentions-ci.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/heredoc-brief-mentions-ci-commands.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/heredoc-skill-mentions-ci.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/loop-over-quoted-command-strings.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/printf-mentions-ci-command.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/allow/ripgrep-pattern-args.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-continuation-lines.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-input-and-header.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-method-post-field.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-raw-field-cat.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-after-allowed-metadata.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-env-assignment.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-redirect-to-file.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-retry-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-xargs.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-detail.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-env-assignment.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-hostname-after-path.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-comment-and-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-list.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-nested-loop-timeout.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-paginate-ndjson.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-python-consumer.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-scope-failed-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-status-poll-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-test-report.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-get-after-allowed-status.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-get-branch-in-echo-chain.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-get-branch-ref-sleep-prefix.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-get-json-jq-sort-uniq.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-get-then-ci-trace.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-get-var-capture-poll-loop.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-get-with-job-details-repo.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-job-name-with-pipeline.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-pipeline-id-before-job-name.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-redirect-to-file.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-repo-before-job-id.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-view-help.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-view-job-web-or-api.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/ci-view-pipeline-id.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/heredoc-then-pipe-to-blocked.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/pipe-get-alias.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/pipeline-view-alias.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/wrapper-bash-c.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/block/wrapper-sudo.sh +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/fixtures/match/glab-pipeline/rules.yaml +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_match_fixtures.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_matcher.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_models.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_real_world.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/tests/test_smoke.py +0 -0
- {bash_classify-0.11.0 → bash_classify-0.13.0}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bash-classify
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.13.0
|
|
4
4
|
Summary: Classify bash commands as READONLY, WRITE, DANGEROUS, or UNKNOWN
|
|
5
5
|
Project-URL: Homepage, https://github.com/fprochazka/bash-classify
|
|
6
6
|
Project-URL: Repository, https://github.com/fprochazka/bash-classify
|
|
@@ -45,6 +45,14 @@ uv tool install bash-classify
|
|
|
45
45
|
pip install bash-classify
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
To track a commit rather than a release — worth doing if you want to test a change before it ships — pin it directly:
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
bash-classify @ git+https://github.com/fprochazka/bash-classify@<commit>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
The version is derived from the last tag, so a commit past it resolves to a pre-release such as `0.12.1.dev3+g8699357`. An ordinary constraint still admits that: `>=0.12,<0.13` contains it, because a specifier set only excludes pre-releases when its `prereleases` flag is explicitly false, and it is not by default. Writing the floor as `>=0.12.1.dev0,<0.13` is worth doing anyway — it says out loud that the pinned thing is a pre-release, and it sets that flag — but it is a marker for whoever reads the file next, not something the resolver needs.
|
|
55
|
+
|
|
48
56
|
## Quick start
|
|
49
57
|
|
|
50
58
|
```bash
|
|
@@ -83,6 +91,10 @@ rules:
|
|
|
83
91
|
- name: mr-note
|
|
84
92
|
command: [glab, mr, note]
|
|
85
93
|
except: [[glab, mr, note, list]]
|
|
94
|
+
|
|
95
|
+
- name: python-script
|
|
96
|
+
command: [python3]
|
|
97
|
+
except_option: [-c]
|
|
86
98
|
```
|
|
87
99
|
|
|
88
100
|
```bash
|
|
@@ -100,13 +112,9 @@ $ echo 'sudo glab mr note 42 -m hi' | bash-classify match --rules blocked-comman
|
|
|
100
112
|
}
|
|
101
113
|
```
|
|
102
114
|
|
|
103
|
-
Within one rule every condition given must hold; rules are independent of each other, and
|
|
104
|
-
|
|
105
|
-
command
|
|
106
|
-
`any_option` looks at the options actually present, with values stripped and declared
|
|
107
|
-
clusters expanded (`-wc` carries `-c`). `any_arg_matches` is a Python `re.search` over
|
|
108
|
-
every argument token — a pattern written for `grep -E` needs `\S` rather than
|
|
109
|
-
`[^[:space:]]`. `via` lists the enclosing wrappers, outermost first.
|
|
115
|
+
Within one rule every condition given must hold; rules are independent of each other, and one invocation can match several. `command` is a prefix match against the *resolved* command path, so `/usr/bin/glab --repo x mr note` still resolves to `glab mr note`. A command path — in `command` and in every `except` entry alike — holds the binary and its subcommands only. An option never resolves into one, so a path that contains one is rejected when the rules file loads, rather than loading clean and matching nothing.
|
|
116
|
+
|
|
117
|
+
`any_option` and `except_option` are mirrors of each other: `any_option` requires at least one of the listed options to be present, `except_option` requires that none of them is. Both look at the options actually present, with values stripped (`--comments=true` counts as `--comments`) and declared clusters expanded (`-wc` carries `-c`); tokens after `--` are positionals and count as absent. An option the command database does not declare still counts, so `except_option: [-c]` separates `python3 script.py` from `python3 -c '...'`. `any_arg_matches` is a Python `re.search` over every argument token — a pattern written for `grep -E` needs `\S` rather than `[^[:space:]]`. `via` lists the enclosing wrappers, outermost first.
|
|
110
118
|
|
|
111
119
|
**Two things a caller has to check.** First, `parse_warnings` is always present: when it
|
|
112
120
|
is non-empty the expression could not be fully parsed, so an empty `matches` proves nothing
|
|
@@ -121,6 +129,62 @@ Exit codes are `0` whether or not anything matched, `1` for empty input or no in
|
|
|
121
129
|
5 seconds, and `2` for bad arguments, an unreadable or invalid rules file, or an internal
|
|
122
130
|
error.
|
|
123
131
|
|
|
132
|
+
## Sensitive paths
|
|
133
|
+
|
|
134
|
+
Classification says what a command does to the system. It says nothing about what the command touches. Reading a private key really is read-only, so `cat ~/.ssh/id_rsa` is `READONLY`, and anything that auto-approves on `risk: LOW` auto-approves it.
|
|
135
|
+
|
|
136
|
+
So every argv token and every redirect target is checked against a denylist of paths that hold credentials. A hit leaves classification alone and floors `risk` at `HIGH`.
|
|
137
|
+
|
|
138
|
+
The list covers SSH and GPG keys, cloud and cluster credentials, `.env` files, `.netrc` and `.npmrc`, `.git-credentials`, `.pgpass` and `.my.cnf`, and the token stores of command-line tools: `~/.claude.json`, `~/.config/gh/hosts.yml` and `~/.config/glab-cli/config.yml`. Settings files are not on it. `~/.aws/config`, `.git/config`, `~/.gitconfig` and `~/.config/gh/config.yml` are routine debugging and stay `LOW`.
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
$ echo 'cat ~/.ssh/id_rsa' | bash-classify | jq '{classification, risk, sensitive_paths}'
|
|
142
|
+
{
|
|
143
|
+
"classification": "READONLY",
|
|
144
|
+
"risk": "HIGH",
|
|
145
|
+
"sensitive_paths": [
|
|
146
|
+
{
|
|
147
|
+
"token": "~/.ssh/id_rsa",
|
|
148
|
+
"rule": "ssh",
|
|
149
|
+
"source": "argv",
|
|
150
|
+
"spelling": "literal"
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
`sensitive_paths` is always present, on the expression and on every command and inner command, so a caller that wants a different policy reads the detail instead of the verdict. A hit found inside `sudo`, `xargs`, `sh -c` or `find -exec` is reported at that depth and again on every level above it, up to the expression.
|
|
157
|
+
|
|
158
|
+
`source` says where the token came from: `argv`, `argv_write`, `redirect_read`, `redirect_write` or `env_dump`. `argv` is vague on purpose. `cat X` reads and `tee X` writes, and telling those apart needs per-command knowledge the database does not carry for a positional. Two sources do know the direction. A redirect knows it because the operator says so, and `argv_write` is the value of an option the tool documents as naming a file it writes, such as `curl -o` — so `curl -o ~/.ssh/authorized_keys https://x` reports a write while `cat ~/.ssh/authorized_keys` reports an argument of unknown direction.
|
|
159
|
+
|
|
160
|
+
A marked option's value is reported *only* as `argv_write`, so selecting `source == "argv"` no longer sees it — `curl -o ~/.ssh/authorized_keys` has one hit and it is not an `argv` one. And `argv_write` never covers a destination written as a plain positional (`cp a b`, `tee out.txt`), an operand that is not an option (`dd of=X`), or an option whose direction depends on another option (`tar -f`, `tar -C`). Read it as an extra signal, never as the definition of "this writes" — `source != "argv_write"` does not mean nothing is written. [SPEC.md](SPEC.md) has the full list.
|
|
161
|
+
|
|
162
|
+
Paths match on whole segments and are never anchored, so `~/.ssh/id_rsa`, `/home/me/.ssh/id_rsa` and `../.ssh/id_rsa` all hit the `ssh` rule, while `.gitignore` and `.github` are not `.git`. A `.` segment is dropped and a `..` is resolved against the one before it, so `/etc/./shadow` and `~/.aws/x/../credentials` hit while `.ssh/../notes` does not. Each token is read three ways — as written, with `\` as a Windows separator, and with `\x` read as the POSIX escape `x` — so `~/.s\sh/id_rsa` is caught. A glob segment is matched backwards, the denylisted name against the token as the pattern, so `~/.ss?/id_rsa`, `~/.[^x]sh/id_rsa` and `.e*` are caught too. `spelling` reports which reading matched: `literal`, `posix_escape`, `windows` or `glob`.
|
|
163
|
+
|
|
164
|
+
Nothing here reads the environment of the process doing the classifying. `~` and `$HOME` stay unresolved segments, so the verdict depends on the expression alone and a hook gives the same answer whatever `HOME` it runs under.
|
|
165
|
+
|
|
166
|
+
A rule can exempt specific files. The bundled `dotenv` rule exempts the template names projects commit on purpose — `.env.example`, `.env.sample`, `.env.template`, `.env.dist`, `.env.defaults` — while `.env`, `.env.local` and `.env.production` stay hits.
|
|
167
|
+
|
|
168
|
+
Bare `env` and `printenv` are reported with `source: "env_dump"`. They print every variable, which is where an agent's API keys live. An argument that names a secret-bearing variable is reported as well: `$GITHUB_TOKEN` and `${ANTHROPIC_API_KEY}` under any command, and a bare `ANTHROPIC_API_KEY` only under `env`, `printenv`, `export` and `unset`. Everywhere else a bare all-caps word is a search string, so `grep -rn TOKEN src` is not a hit.
|
|
169
|
+
|
|
170
|
+
**This is a speed bump against an agent being careless, not a control against one being evaded.** It raises the cost of an accident. Anyone who knows the rule can walk around it, and [SPEC.md](SPEC.md) lists how. The short version: a path computed at runtime is invisible to a static matcher, and a glob with fewer than two literal characters is ignored on purpose, so `cat .*` is not reported — a rule that fires on `ls *` is a rule people switch off.
|
|
171
|
+
|
|
172
|
+
It also over-reports in one direction. A token that only *mentions* a path is a hit, so `git commit -m "document ~/.ssh/config setup"` and `grep -rn "\.ssh/config" docs/` are both reported. This is the opposite of what `match` mode does, where a `grep` pattern that names a command is not an invocation. The two are not alike: telling a path a command opens from one it merely carries needs per-command argument knowledge that the database does not have.
|
|
173
|
+
|
|
174
|
+
Extend the denylist at `~/.config/bash-classify/sensitive-paths.yaml`, or at `$BASH_CLASSIFY_CONFIG_DIR/sensitive-paths.yaml`. It uses the same format as the bundled `src/bash_classify/sensitive-paths.yaml`, validated against a [JSON Schema](schemas/sensitive-paths.schema.json):
|
|
175
|
+
|
|
176
|
+
```yaml
|
|
177
|
+
rules:
|
|
178
|
+
- name: company-vault
|
|
179
|
+
paths:
|
|
180
|
+
- .acme/vault
|
|
181
|
+
- .config/acme/token
|
|
182
|
+
except_paths:
|
|
183
|
+
- .acme/vault/README
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
A rule there is added to the bundled set. A rule that reuses a bundled name replaces it, which is how you narrow or drop one.
|
|
187
|
+
|
|
124
188
|
## Claude Code plugin
|
|
125
189
|
|
|
126
190
|
The repo includes a Claude Code plugin that auto-allows low-risk bash commands via a `PreToolUse` hook.
|
|
@@ -142,7 +206,7 @@ claude plugin marketplace update fprochazka-bash-classify
|
|
|
142
206
|
claude plugin update bash-classify-hook@fprochazka-bash-classify
|
|
143
207
|
```
|
|
144
208
|
|
|
145
|
-
Once installed, any Bash tool call with `risk: LOW` is auto-approved — no permission prompt. This includes all `READONLY` commands plus safe routine operations like `git add`, `git commit`, `mkdir`, package installs, code formatters, and more. Commands with `MEDIUM` or `HIGH` risk still require confirmation.
|
|
209
|
+
Once installed, any Bash tool call with `risk: LOW` is auto-approved — no permission prompt. This includes all `READONLY` commands plus safe routine operations like `git add`, `git commit`, `mkdir`, package installs, code formatters, and more. Commands with `MEDIUM` or `HIGH` risk still require confirmation. A command that names a sensitive path is never `LOW`, so the hook prompts for it even when the command itself is read-only.
|
|
146
210
|
|
|
147
211
|
## Command database
|
|
148
212
|
|
|
@@ -183,7 +247,8 @@ Risk defaults are derived from classification (`READONLY`→LOW, `LOCAL_EFFECTS`
|
|
|
183
247
|
- **Subcommand aliases** -- a subcommand can declare other names for itself, so `glab pipeline view` resolves to `glab ci view` and any rule written for the canonical name catches the aliased spelling
|
|
184
248
|
- **Multi-goal build tools** -- `subcommand_mode: match_all` handles commands like `mvn clean install` and `gradle clean build test` where multiple goals can be combined in any order
|
|
185
249
|
- **Delegation for wrappers** -- commands like `xargs`, `sudo`, and `env` delegate classification to the inner command
|
|
186
|
-
- **File path detection** -- redirect
|
|
250
|
+
- **File path detection** -- `write_paths` holds redirect targets and the values of options the database marks as naming an output (`curl -o`, `wget -O`, `cp -t`, `sort -o`), `read_paths` holds input redirect targets; a write is `>` or `>>` with the optional file descriptor and `|` no-clobber override bash allows (`1>`, `2>>`, `>|`), plus `&>`, `&>>` and `>&`; writes to `/tmp` and `/var/tmp` stay at LOW risk. A destination named by a plain positional (`cp a b`, `tee out.txt`) is in neither field
|
|
251
|
+
- **Sensitive path detection** -- argv tokens and redirect targets are matched against a denylist of credential paths; a hit floors risk at HIGH and is reported in `sensitive_paths`
|
|
187
252
|
|
|
188
253
|
## Python API
|
|
189
254
|
|
|
@@ -16,6 +16,14 @@ uv tool install bash-classify
|
|
|
16
16
|
pip install bash-classify
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
To track a commit rather than a release — worth doing if you want to test a change before it ships — pin it directly:
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
bash-classify @ git+https://github.com/fprochazka/bash-classify@<commit>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The version is derived from the last tag, so a commit past it resolves to a pre-release such as `0.12.1.dev3+g8699357`. An ordinary constraint still admits that: `>=0.12,<0.13` contains it, because a specifier set only excludes pre-releases when its `prereleases` flag is explicitly false, and it is not by default. Writing the floor as `>=0.12.1.dev0,<0.13` is worth doing anyway — it says out loud that the pinned thing is a pre-release, and it sets that flag — but it is a marker for whoever reads the file next, not something the resolver needs.
|
|
26
|
+
|
|
19
27
|
## Quick start
|
|
20
28
|
|
|
21
29
|
```bash
|
|
@@ -54,6 +62,10 @@ rules:
|
|
|
54
62
|
- name: mr-note
|
|
55
63
|
command: [glab, mr, note]
|
|
56
64
|
except: [[glab, mr, note, list]]
|
|
65
|
+
|
|
66
|
+
- name: python-script
|
|
67
|
+
command: [python3]
|
|
68
|
+
except_option: [-c]
|
|
57
69
|
```
|
|
58
70
|
|
|
59
71
|
```bash
|
|
@@ -71,13 +83,9 @@ $ echo 'sudo glab mr note 42 -m hi' | bash-classify match --rules blocked-comman
|
|
|
71
83
|
}
|
|
72
84
|
```
|
|
73
85
|
|
|
74
|
-
Within one rule every condition given must hold; rules are independent of each other, and
|
|
75
|
-
|
|
76
|
-
command
|
|
77
|
-
`any_option` looks at the options actually present, with values stripped and declared
|
|
78
|
-
clusters expanded (`-wc` carries `-c`). `any_arg_matches` is a Python `re.search` over
|
|
79
|
-
every argument token — a pattern written for `grep -E` needs `\S` rather than
|
|
80
|
-
`[^[:space:]]`. `via` lists the enclosing wrappers, outermost first.
|
|
86
|
+
Within one rule every condition given must hold; rules are independent of each other, and one invocation can match several. `command` is a prefix match against the *resolved* command path, so `/usr/bin/glab --repo x mr note` still resolves to `glab mr note`. A command path — in `command` and in every `except` entry alike — holds the binary and its subcommands only. An option never resolves into one, so a path that contains one is rejected when the rules file loads, rather than loading clean and matching nothing.
|
|
87
|
+
|
|
88
|
+
`any_option` and `except_option` are mirrors of each other: `any_option` requires at least one of the listed options to be present, `except_option` requires that none of them is. Both look at the options actually present, with values stripped (`--comments=true` counts as `--comments`) and declared clusters expanded (`-wc` carries `-c`); tokens after `--` are positionals and count as absent. An option the command database does not declare still counts, so `except_option: [-c]` separates `python3 script.py` from `python3 -c '...'`. `any_arg_matches` is a Python `re.search` over every argument token — a pattern written for `grep -E` needs `\S` rather than `[^[:space:]]`. `via` lists the enclosing wrappers, outermost first.
|
|
81
89
|
|
|
82
90
|
**Two things a caller has to check.** First, `parse_warnings` is always present: when it
|
|
83
91
|
is non-empty the expression could not be fully parsed, so an empty `matches` proves nothing
|
|
@@ -92,6 +100,62 @@ Exit codes are `0` whether or not anything matched, `1` for empty input or no in
|
|
|
92
100
|
5 seconds, and `2` for bad arguments, an unreadable or invalid rules file, or an internal
|
|
93
101
|
error.
|
|
94
102
|
|
|
103
|
+
## Sensitive paths
|
|
104
|
+
|
|
105
|
+
Classification says what a command does to the system. It says nothing about what the command touches. Reading a private key really is read-only, so `cat ~/.ssh/id_rsa` is `READONLY`, and anything that auto-approves on `risk: LOW` auto-approves it.
|
|
106
|
+
|
|
107
|
+
So every argv token and every redirect target is checked against a denylist of paths that hold credentials. A hit leaves classification alone and floors `risk` at `HIGH`.
|
|
108
|
+
|
|
109
|
+
The list covers SSH and GPG keys, cloud and cluster credentials, `.env` files, `.netrc` and `.npmrc`, `.git-credentials`, `.pgpass` and `.my.cnf`, and the token stores of command-line tools: `~/.claude.json`, `~/.config/gh/hosts.yml` and `~/.config/glab-cli/config.yml`. Settings files are not on it. `~/.aws/config`, `.git/config`, `~/.gitconfig` and `~/.config/gh/config.yml` are routine debugging and stay `LOW`.
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
$ echo 'cat ~/.ssh/id_rsa' | bash-classify | jq '{classification, risk, sensitive_paths}'
|
|
113
|
+
{
|
|
114
|
+
"classification": "READONLY",
|
|
115
|
+
"risk": "HIGH",
|
|
116
|
+
"sensitive_paths": [
|
|
117
|
+
{
|
|
118
|
+
"token": "~/.ssh/id_rsa",
|
|
119
|
+
"rule": "ssh",
|
|
120
|
+
"source": "argv",
|
|
121
|
+
"spelling": "literal"
|
|
122
|
+
}
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
`sensitive_paths` is always present, on the expression and on every command and inner command, so a caller that wants a different policy reads the detail instead of the verdict. A hit found inside `sudo`, `xargs`, `sh -c` or `find -exec` is reported at that depth and again on every level above it, up to the expression.
|
|
128
|
+
|
|
129
|
+
`source` says where the token came from: `argv`, `argv_write`, `redirect_read`, `redirect_write` or `env_dump`. `argv` is vague on purpose. `cat X` reads and `tee X` writes, and telling those apart needs per-command knowledge the database does not carry for a positional. Two sources do know the direction. A redirect knows it because the operator says so, and `argv_write` is the value of an option the tool documents as naming a file it writes, such as `curl -o` — so `curl -o ~/.ssh/authorized_keys https://x` reports a write while `cat ~/.ssh/authorized_keys` reports an argument of unknown direction.
|
|
130
|
+
|
|
131
|
+
A marked option's value is reported *only* as `argv_write`, so selecting `source == "argv"` no longer sees it — `curl -o ~/.ssh/authorized_keys` has one hit and it is not an `argv` one. And `argv_write` never covers a destination written as a plain positional (`cp a b`, `tee out.txt`), an operand that is not an option (`dd of=X`), or an option whose direction depends on another option (`tar -f`, `tar -C`). Read it as an extra signal, never as the definition of "this writes" — `source != "argv_write"` does not mean nothing is written. [SPEC.md](SPEC.md) has the full list.
|
|
132
|
+
|
|
133
|
+
Paths match on whole segments and are never anchored, so `~/.ssh/id_rsa`, `/home/me/.ssh/id_rsa` and `../.ssh/id_rsa` all hit the `ssh` rule, while `.gitignore` and `.github` are not `.git`. A `.` segment is dropped and a `..` is resolved against the one before it, so `/etc/./shadow` and `~/.aws/x/../credentials` hit while `.ssh/../notes` does not. Each token is read three ways — as written, with `\` as a Windows separator, and with `\x` read as the POSIX escape `x` — so `~/.s\sh/id_rsa` is caught. A glob segment is matched backwards, the denylisted name against the token as the pattern, so `~/.ss?/id_rsa`, `~/.[^x]sh/id_rsa` and `.e*` are caught too. `spelling` reports which reading matched: `literal`, `posix_escape`, `windows` or `glob`.
|
|
134
|
+
|
|
135
|
+
Nothing here reads the environment of the process doing the classifying. `~` and `$HOME` stay unresolved segments, so the verdict depends on the expression alone and a hook gives the same answer whatever `HOME` it runs under.
|
|
136
|
+
|
|
137
|
+
A rule can exempt specific files. The bundled `dotenv` rule exempts the template names projects commit on purpose — `.env.example`, `.env.sample`, `.env.template`, `.env.dist`, `.env.defaults` — while `.env`, `.env.local` and `.env.production` stay hits.
|
|
138
|
+
|
|
139
|
+
Bare `env` and `printenv` are reported with `source: "env_dump"`. They print every variable, which is where an agent's API keys live. An argument that names a secret-bearing variable is reported as well: `$GITHUB_TOKEN` and `${ANTHROPIC_API_KEY}` under any command, and a bare `ANTHROPIC_API_KEY` only under `env`, `printenv`, `export` and `unset`. Everywhere else a bare all-caps word is a search string, so `grep -rn TOKEN src` is not a hit.
|
|
140
|
+
|
|
141
|
+
**This is a speed bump against an agent being careless, not a control against one being evaded.** It raises the cost of an accident. Anyone who knows the rule can walk around it, and [SPEC.md](SPEC.md) lists how. The short version: a path computed at runtime is invisible to a static matcher, and a glob with fewer than two literal characters is ignored on purpose, so `cat .*` is not reported — a rule that fires on `ls *` is a rule people switch off.
|
|
142
|
+
|
|
143
|
+
It also over-reports in one direction. A token that only *mentions* a path is a hit, so `git commit -m "document ~/.ssh/config setup"` and `grep -rn "\.ssh/config" docs/` are both reported. This is the opposite of what `match` mode does, where a `grep` pattern that names a command is not an invocation. The two are not alike: telling a path a command opens from one it merely carries needs per-command argument knowledge that the database does not have.
|
|
144
|
+
|
|
145
|
+
Extend the denylist at `~/.config/bash-classify/sensitive-paths.yaml`, or at `$BASH_CLASSIFY_CONFIG_DIR/sensitive-paths.yaml`. It uses the same format as the bundled `src/bash_classify/sensitive-paths.yaml`, validated against a [JSON Schema](schemas/sensitive-paths.schema.json):
|
|
146
|
+
|
|
147
|
+
```yaml
|
|
148
|
+
rules:
|
|
149
|
+
- name: company-vault
|
|
150
|
+
paths:
|
|
151
|
+
- .acme/vault
|
|
152
|
+
- .config/acme/token
|
|
153
|
+
except_paths:
|
|
154
|
+
- .acme/vault/README
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
A rule there is added to the bundled set. A rule that reuses a bundled name replaces it, which is how you narrow or drop one.
|
|
158
|
+
|
|
95
159
|
## Claude Code plugin
|
|
96
160
|
|
|
97
161
|
The repo includes a Claude Code plugin that auto-allows low-risk bash commands via a `PreToolUse` hook.
|
|
@@ -113,7 +177,7 @@ claude plugin marketplace update fprochazka-bash-classify
|
|
|
113
177
|
claude plugin update bash-classify-hook@fprochazka-bash-classify
|
|
114
178
|
```
|
|
115
179
|
|
|
116
|
-
Once installed, any Bash tool call with `risk: LOW` is auto-approved — no permission prompt. This includes all `READONLY` commands plus safe routine operations like `git add`, `git commit`, `mkdir`, package installs, code formatters, and more. Commands with `MEDIUM` or `HIGH` risk still require confirmation.
|
|
180
|
+
Once installed, any Bash tool call with `risk: LOW` is auto-approved — no permission prompt. This includes all `READONLY` commands plus safe routine operations like `git add`, `git commit`, `mkdir`, package installs, code formatters, and more. Commands with `MEDIUM` or `HIGH` risk still require confirmation. A command that names a sensitive path is never `LOW`, so the hook prompts for it even when the command itself is read-only.
|
|
117
181
|
|
|
118
182
|
## Command database
|
|
119
183
|
|
|
@@ -154,7 +218,8 @@ Risk defaults are derived from classification (`READONLY`→LOW, `LOCAL_EFFECTS`
|
|
|
154
218
|
- **Subcommand aliases** -- a subcommand can declare other names for itself, so `glab pipeline view` resolves to `glab ci view` and any rule written for the canonical name catches the aliased spelling
|
|
155
219
|
- **Multi-goal build tools** -- `subcommand_mode: match_all` handles commands like `mvn clean install` and `gradle clean build test` where multiple goals can be combined in any order
|
|
156
220
|
- **Delegation for wrappers** -- commands like `xargs`, `sudo`, and `env` delegate classification to the inner command
|
|
157
|
-
- **File path detection** -- redirect
|
|
221
|
+
- **File path detection** -- `write_paths` holds redirect targets and the values of options the database marks as naming an output (`curl -o`, `wget -O`, `cp -t`, `sort -o`), `read_paths` holds input redirect targets; a write is `>` or `>>` with the optional file descriptor and `|` no-clobber override bash allows (`1>`, `2>>`, `>|`), plus `&>`, `&>>` and `>&`; writes to `/tmp` and `/var/tmp` stay at LOW risk. A destination named by a plain positional (`cp a b`, `tee out.txt`) is in neither field
|
|
222
|
+
- **Sensitive path detection** -- argv tokens and redirect targets are matched against a denylist of credential paths; a hit floors risk at HIGH and is reported in `sensitive_paths`
|
|
158
223
|
|
|
159
224
|
## Python API
|
|
160
225
|
|