bash-classify 0.14.1__tar.gz → 0.15.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.14.1 → bash_classify-0.15.0}/.claude-plugin/marketplace.json +1 -1
- {bash_classify-0.14.1 → bash_classify-0.15.0}/PKG-INFO +1 -1
- {bash_classify-0.14.1 → bash_classify-0.15.0}/SPEC.md +2 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/coding-agent-plugins/claude-code/.claude-plugin/plugin.json +1 -1
- bash_classify-0.15.0/src/bash_classify/commands/ionice.yaml +22 -0
- bash_classify-0.15.0/src/bash_classify/commands/setsid.yaml +18 -0
- bash_classify-0.15.0/src/bash_classify/commands/systemd-run.yaml +61 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/uv.yaml +54 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/matcher.py +12 -2
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_classifier.py +136 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_matcher.py +14 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_real_world.py +21 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/.claude/rules/command-database.md +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/.editorconfig +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/.github/workflows/ci.yml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/.github/workflows/publish.yml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/.gitignore +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/.python-version +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/CLAUDE.md +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/LICENSE +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/README.md +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/coding-agent-plugins/claude-code/hooks/hook-permission-request.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/coding-agent-plugins/claude-code/hooks/hook-pre-tool-use.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/coding-agent-plugins/claude-code/hooks/hooks.json +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/docs/classification-guidance.md +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/pyproject.toml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/ruff.toml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/schemas/command.schema.json +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/schemas/match-rules.schema.json +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/schemas/sensitive-paths.schema.json +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/scripts/audit-missing-base.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/__init__.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/__main__.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/classifier.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/cli.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/agent-browser.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/apt.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/awk.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/basename.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/bash-classify.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/bash.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/black.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/brew.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/builtin.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/cargo.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/cat.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/chgrp.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/chmod.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/chown.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/column.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/comm.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/command.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/cp.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/curl.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/cut.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/date.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/df.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/diff.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/dig.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/dirname.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/docker.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/du.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/echo.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/env.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/eslint.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/eval.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/exec.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/expand.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/false.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/file.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/find.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/fmt.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/fold.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/free.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gawk.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gcloud.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gh.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/git.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/glab-discussion.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/glab.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/go.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gog.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gradle.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gradlew.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/grep.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/groups.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gunzip.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gws.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/gzip.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/hadolint.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/head.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/helm.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/hostname.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/id.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/install.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/isort.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/java.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/javac.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/join.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/journalctl.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/jq.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/kill.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/killall.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/kubectl.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/less.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/ln.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/ls.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/make.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/md5sum.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/mise.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/mkdir.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/more.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/mv.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/mvn.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/mvnw.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/mypy.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/netstat.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/nice.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/nl.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/node.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/nohup.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/npm.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/npx.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/nslookup.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/paste.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/ping.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pip.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pip3.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pipx.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pkill.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pnpm.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/poetry.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/prettier.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/printenv.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/printf.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/ps.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pup.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pwd.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/pytest.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/python.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/python3.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/read.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/readlink.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/realpath.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/rev.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/rg.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/rm.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/rsync.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/rtk.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/ruff.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/scp.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/sed.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/seq.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/sh.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/sha1sum.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/sha256sum.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/shellcheck.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/slack.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/sleep.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/snip.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/sort.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/ss.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/ssh.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/stat.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/stdbuf.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/strace.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/strings.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/sudo.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/systemctl.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/tac.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/tail.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/tar.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/tee.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/terraform.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/test.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/time.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/timeout.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/top.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/touch.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/tr.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/traceroute.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/true.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/tsc.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/type.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/uname.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/unexpand.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/uniq.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/unzip.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/uptime.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/wait.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/wc.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/wget.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/whereis.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/which.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/whoami.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/xargs.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/xmllint.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/yarn.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/yes.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/yq.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/zip.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/zsh.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/database.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/models.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/parser.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/py.typed +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/redirects.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/rules.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/sensitive-paths.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/sensitive.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/__init__.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/conftest.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-award-emoji.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-include-diverged.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-itself.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-pipelines-list.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/api-merge-request-update-description.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/api-project-lookup.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/ci-list.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/comment-only-mention.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/echo-mentions-api-endpoint.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/echo-mentions-command.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/git-commit-heredoc-message.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/git-commit-inline-message.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/glab-discussion-read-and-api-mr.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/glab-discussion-read.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/glab-pipeline-inspect.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/grep-pattern-mentions-command.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/grep-recursive-for-command.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/heredoc-brief-2026-09-04.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/heredoc-brief-mentions-blocked-commands.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/heredoc-report-mentions-blocked.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/heredoc-skill-custom-delimiter.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/heredoc-skill-phrase-split-across-lines.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/hook-self-test-json-payload.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/loop-over-quoted-command-strings.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-note-list-output-json.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-note-list.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-update-then-view.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-view-bare.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-view-grep-pipeline.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-view-output-equals-json.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-view-output-json.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/mr-view-output-short-flag.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/printf-mentions-command.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/python-heredoc-triple-quoted-mention.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/allow/ripgrep-pattern-args.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-absolute-binary-path.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-delete-note-nested-api.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-cd-and-prefix.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-export-host-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-for-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-heredoc-then-call.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-hostname-python-consumer.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-line-continuation.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-method-get-field.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-output-ndjson.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-paginate-before-path.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-paginate.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-per-page-query.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-quoted-paginate-jq.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-redirect-to-file.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-repo-flag-first.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-discussions-var-capture.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-edit-note-put-heredoc.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-new-diff-note-input-stdin.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-new-diff-note-position-fields.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-note-award-emoji.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-note-by-id-or-retry.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-notes-after-allowed-mr-view.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-notes-query-sort.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-notes-timeout-prefix.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-reply-method-post-after-path.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-reply-post-body-from-file.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-reply-post-heredoc-body.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-resolve-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-resolve-put-field.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/api-single-discussion-by-id.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/env-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/heredoc-then-and-chain-to-blocked.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/heredoc-then-pipe-to-blocked.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-custom-heredoc-delimiter.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-help.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-heredoc-body.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-inline-after-mr-update.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-long-message-flag.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-repo-before-message.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-second-in-pipeline.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-note-then-close.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-bare.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-no-iid.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-page-flag.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-repo-flag.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-short-cluster.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/mr-view-comments-short-flag.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/sudo-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/timeout-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/wrapper-bash-c.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/wrapper-sudo.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/block/xargs-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-discussion/rules.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-job-metadata-without-trace.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-job-metadata-xargs.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-itself.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-pipelines-list-per-page.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-pipelines-list.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-bash-c.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-ref.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-single-quoted.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/ci-lint-local-file.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/ci-list-per-page.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/ci-list.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/ci-status-compact.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/ci-status-pipeline-id.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/comment-only-mention.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/echo-mentions-ci-command.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/git-commit-heredoc-message.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/git-commit-inline-message.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/glab-discussion-read.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/glab-pipeline-inspect.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/grep-pattern-mentions-ci.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/heredoc-brief-mentions-ci-commands.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/heredoc-skill-mentions-ci.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/loop-over-quoted-command-strings.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/printf-mentions-ci-command.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/allow/ripgrep-pattern-args.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-continuation-lines.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-input-and-header.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-method-post-field.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-raw-field-cat.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-after-allowed-metadata.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-env-assignment.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-redirect-to-file.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-retry-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-job-trace-xargs.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-detail.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-env-assignment.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-hostname-after-path.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-comment-and-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-list.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-nested-loop-timeout.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-paginate-ndjson.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-python-consumer.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-scope-failed-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-status-poll-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/api-pipeline-test-report.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-get-after-allowed-status.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-get-branch-in-echo-chain.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-get-branch-ref-sleep-prefix.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-get-json-jq-sort-uniq.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-get-then-ci-trace.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-get-var-capture-poll-loop.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-get-with-job-details-repo.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-job-name-with-pipeline.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-pipeline-id-before-job-name.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-redirect-to-file.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-trace-repo-before-job-id.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-view-help.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-view-job-web-or-api.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/ci-view-pipeline-id.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/heredoc-then-pipe-to-blocked.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/pipe-get-alias.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/pipeline-view-alias.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/wrapper-bash-c.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/block/wrapper-sudo.sh +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/fixtures/match/glab-pipeline/rules.yaml +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_cli.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_cli_serialization.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_database.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_match_fixtures.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_models.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_output_paths.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_parser.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_public_api.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_rules.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_schema.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_sensitive_paths.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.0}/tests/test_smoke.py +0 -0
- {bash_classify-0.14.1 → bash_classify-0.15.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.15.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
|
|
@@ -483,6 +483,8 @@ Each positional argument is matched independently against the **same** top-level
|
|
|
483
483
|
|
|
484
484
|
Example: `mvn clean install` matches both `clean` and `install` independently against `mvn`'s subcommand dict.
|
|
485
485
|
|
|
486
|
+
The value of an option the command declares with `takes_value` under `options:` is not a positional argument, so it is never matched as a goal: in `gradle build -x test` the `test` is the task `-x` excludes, and only `build` is a goal. A value joined to its option (`-xtest`, `--exclude-task=test`) is part of the option token already. The rule does not cover `global_options:`, which are stripped only before the first goal.
|
|
487
|
+
|
|
486
488
|
**Classification/risk aggregation in `match_all` mode:**
|
|
487
489
|
|
|
488
490
|
- The final classification is the **maximum severity** across all matched goals.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# $schema: ../../../schemas/command.schema.json
|
|
2
|
+
command: ionice
|
|
3
|
+
description: "Run a command with a modified I/O scheduling class and priority"
|
|
4
|
+
# The fallback for a spelling whose command the matcher cannot read: it runs an arbitrary program.
|
|
5
|
+
classification: DANGEROUS
|
|
6
|
+
global_options:
|
|
7
|
+
--help: {overrides: READONLY}
|
|
8
|
+
-h: {overrides: READONLY}
|
|
9
|
+
--version: {overrides: READONLY}
|
|
10
|
+
-V: {overrides: READONLY}
|
|
11
|
+
delegates_to:
|
|
12
|
+
mode: rest_are_argv
|
|
13
|
+
options:
|
|
14
|
+
--class: {takes_value: true, aliases: [-c]}
|
|
15
|
+
--classdata: {takes_value: true, aliases: [-n]}
|
|
16
|
+
# With -p, -P or -u every word after the options is a process, group or user id, not a command, and ionice
|
|
17
|
+
# changes the I/O priority of those running processes, like kill acts on them. An override survives the
|
|
18
|
+
# delegation, so the id the matcher takes for a program cannot make the verdict milder.
|
|
19
|
+
--pid: {takes_value: true, overrides: DANGEROUS, aliases: [-p]}
|
|
20
|
+
--pgid: {takes_value: true, overrides: DANGEROUS, aliases: [-P]}
|
|
21
|
+
--uid: {takes_value: true, overrides: DANGEROUS, aliases: [-u]}
|
|
22
|
+
--ignore: {aliases: [-t]}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# $schema: ../../../schemas/command.schema.json
|
|
2
|
+
command: setsid
|
|
3
|
+
description: "Run a command in a new session"
|
|
4
|
+
# The fallback for a spelling whose command the matcher cannot read: it runs an arbitrary program.
|
|
5
|
+
classification: DANGEROUS
|
|
6
|
+
global_options:
|
|
7
|
+
--help: {overrides: READONLY}
|
|
8
|
+
-h: {overrides: READONLY}
|
|
9
|
+
--version: {overrides: READONLY}
|
|
10
|
+
-V: {overrides: READONLY}
|
|
11
|
+
delegates_to:
|
|
12
|
+
mode: rest_are_argv
|
|
13
|
+
# The command leaves the terminal's session, so it keeps running after the terminal closes, as under nohup.
|
|
14
|
+
min_classification: EXTERNAL_EFFECTS
|
|
15
|
+
options:
|
|
16
|
+
--ctty: {aliases: [-c]}
|
|
17
|
+
--fork: {aliases: [-f]}
|
|
18
|
+
--wait: {aliases: [-w]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# $schema: ../../../schemas/command.schema.json
|
|
2
|
+
command: systemd-run
|
|
3
|
+
description: "Run a command as a transient systemd service or scope"
|
|
4
|
+
# The fallback for a spelling whose command the matcher cannot read: it runs an arbitrary program.
|
|
5
|
+
classification: DANGEROUS
|
|
6
|
+
global_options:
|
|
7
|
+
--help: {overrides: READONLY}
|
|
8
|
+
-h: {overrides: READONLY}
|
|
9
|
+
--version: {overrides: READONLY}
|
|
10
|
+
delegates_to:
|
|
11
|
+
mode: rest_are_argv
|
|
12
|
+
# The command runs as a unit of the service manager, outside the calling shell, and without --user under the
|
|
13
|
+
# system manager.
|
|
14
|
+
min_classification: EXTERNAL_EFFECTS
|
|
15
|
+
# A unit property can run commands of its own, such as -p ExecStartPre=... or -p ExecStopPost=..., and the matcher
|
|
16
|
+
# never sees them. The floor above still keeps every invocation at EXTERNAL_EFFECTS, so it prompts.
|
|
17
|
+
options:
|
|
18
|
+
--user: {}
|
|
19
|
+
--system: {}
|
|
20
|
+
--scope: {}
|
|
21
|
+
--unit: {takes_value: true, aliases: [-u]}
|
|
22
|
+
--property: {takes_value: true, aliases: [-p]}
|
|
23
|
+
--description: {takes_value: true}
|
|
24
|
+
--slice: {takes_value: true}
|
|
25
|
+
--slice-inherit: {}
|
|
26
|
+
--remain-after-exit: {aliases: [-r]}
|
|
27
|
+
--send-sighup: {}
|
|
28
|
+
--service-type: {takes_value: true}
|
|
29
|
+
--uid: {takes_value: true}
|
|
30
|
+
--gid: {takes_value: true}
|
|
31
|
+
--nice: {takes_value: true}
|
|
32
|
+
--working-directory: {takes_value: true}
|
|
33
|
+
--same-dir: {aliases: [-d]}
|
|
34
|
+
--setenv: {takes_value: true, aliases: [-E]}
|
|
35
|
+
--expand-environment: {takes_value: true}
|
|
36
|
+
--pty: {aliases: [-t]}
|
|
37
|
+
--pty-late: {aliases: [-T]}
|
|
38
|
+
--pipe: {aliases: [-P]}
|
|
39
|
+
--shell: {aliases: [-S]}
|
|
40
|
+
--quiet: {aliases: [-q]}
|
|
41
|
+
--collect: {aliases: [-G]}
|
|
42
|
+
--wait: {}
|
|
43
|
+
--no-block: {}
|
|
44
|
+
--no-ask-password: {}
|
|
45
|
+
--ignore-failure: {}
|
|
46
|
+
--background: {takes_value: true}
|
|
47
|
+
--job-mode: {takes_value: true}
|
|
48
|
+
--host: {takes_value: true, aliases: [-H]}
|
|
49
|
+
--machine: {takes_value: true, aliases: [-M]}
|
|
50
|
+
--capsule: {takes_value: true, aliases: [-C]}
|
|
51
|
+
--on-active: {takes_value: true}
|
|
52
|
+
--on-boot: {takes_value: true}
|
|
53
|
+
--on-startup: {takes_value: true}
|
|
54
|
+
--on-unit-active: {takes_value: true}
|
|
55
|
+
--on-unit-inactive: {takes_value: true}
|
|
56
|
+
--on-calendar: {takes_value: true}
|
|
57
|
+
--on-clock-change: {}
|
|
58
|
+
--on-timezone-change: {}
|
|
59
|
+
--path-property: {takes_value: true}
|
|
60
|
+
--socket-property: {takes_value: true}
|
|
61
|
+
--timer-property: {takes_value: true}
|
|
@@ -18,6 +18,60 @@ subcommands:
|
|
|
18
18
|
delegates_to:
|
|
19
19
|
mode: rest_are_argv
|
|
20
20
|
strip_assignments: true
|
|
21
|
+
# The options of `uv run` that take a value, the ones `uv run --help` hides included. Without them the matcher
|
|
22
|
+
# reads the value as the program: uv runs `rm` in `uv run --only-group test rm -rf x`, but the matcher would
|
|
23
|
+
# classify the command as the `test` builtin.
|
|
24
|
+
# `--with`, `--with-editable` and `--with-requirements` install packages into the environment the command
|
|
25
|
+
# runs in, and their executables come first on its PATH, so the word after them is not necessarily the
|
|
26
|
+
# program that runs. Like `npx --package`, they are never delegated past.
|
|
27
|
+
options:
|
|
28
|
+
--allow-insecure-host: {takes_value: true, aliases: [--trusted-host]}
|
|
29
|
+
--cache-dir: {takes_value: true}
|
|
30
|
+
--color: {takes_value: true}
|
|
31
|
+
--config-file: {takes_value: true}
|
|
32
|
+
--config-setting: {takes_value: true, aliases: [-C, --config-settings]}
|
|
33
|
+
--config-settings-package: {takes_value: true}
|
|
34
|
+
--default-index: {takes_value: true}
|
|
35
|
+
--directory: {takes_value: true}
|
|
36
|
+
--env-file: {takes_value: true}
|
|
37
|
+
--exclude-newer: {takes_value: true}
|
|
38
|
+
--exclude-newer-package: {takes_value: true}
|
|
39
|
+
--extra: {takes_value: true}
|
|
40
|
+
--extra-index-url: {takes_value: true}
|
|
41
|
+
--find-links: {takes_value: true, aliases: [-f]}
|
|
42
|
+
--fork-strategy: {takes_value: true}
|
|
43
|
+
--group: {takes_value: true}
|
|
44
|
+
--index: {takes_value: true}
|
|
45
|
+
--index-strategy: {takes_value: true}
|
|
46
|
+
--index-url: {takes_value: true, aliases: [-i]}
|
|
47
|
+
--keyring-provider: {takes_value: true}
|
|
48
|
+
--link-mode: {takes_value: true}
|
|
49
|
+
--max-recursion-depth: {takes_value: true}
|
|
50
|
+
--no-binary-package: {takes_value: true}
|
|
51
|
+
--no-build-isolation-package: {takes_value: true}
|
|
52
|
+
--no-build-package: {takes_value: true}
|
|
53
|
+
--no-editable-package: {takes_value: true}
|
|
54
|
+
--no-extra: {takes_value: true}
|
|
55
|
+
--no-group: {takes_value: true}
|
|
56
|
+
--no-sources-package: {takes_value: true}
|
|
57
|
+
--only-group: {takes_value: true}
|
|
58
|
+
--package: {takes_value: true}
|
|
59
|
+
--prerelease: {takes_value: true}
|
|
60
|
+
--prerelease-package: {takes_value: true}
|
|
61
|
+
--preview-features: {takes_value: true, aliases: [--preview-feature]}
|
|
62
|
+
--project: {takes_value: true}
|
|
63
|
+
--python: {takes_value: true, aliases: [-p]}
|
|
64
|
+
--python-fetch: {takes_value: true}
|
|
65
|
+
--python-platform: {takes_value: true}
|
|
66
|
+
--python-preference: {takes_value: true}
|
|
67
|
+
--refresh-package: {takes_value: true}
|
|
68
|
+
--reinstall-package: {takes_value: true}
|
|
69
|
+
--resolution: {takes_value: true}
|
|
70
|
+
--upgrade-group: {takes_value: true}
|
|
71
|
+
--upgrade-package: {takes_value: true, aliases: [-P]}
|
|
72
|
+
--with: {takes_value: true, overrides: DANGEROUS, aliases: [-w]}
|
|
73
|
+
--with-editable: {takes_value: true, overrides: DANGEROUS}
|
|
74
|
+
--with-requirements: {takes_value: true, overrides: DANGEROUS}
|
|
21
75
|
subcommands:
|
|
22
76
|
pytest:
|
|
23
77
|
classification: LOCAL_EFFECTS
|
|
@@ -558,15 +558,25 @@ def _match_all_subcommands(
|
|
|
558
558
|
|
|
559
559
|
Returns (matched_names, matched_defs, remaining).
|
|
560
560
|
remaining includes both options and unrecognized positional args.
|
|
561
|
+
|
|
562
|
+
The value of an option that takes one is never a goal: in `gradlew build -x test` the `test`
|
|
563
|
+
names a task to exclude, not one to run.
|
|
561
564
|
"""
|
|
562
565
|
matched_names: list[str] = []
|
|
563
566
|
matched_defs: list[CommandDef] = []
|
|
564
567
|
remaining: list[str] = []
|
|
565
568
|
|
|
566
|
-
|
|
569
|
+
tokens = iter(argv)
|
|
570
|
+
for token in tokens:
|
|
567
571
|
if token.startswith("-"):
|
|
568
|
-
# Options pass through for _classify_options later
|
|
572
|
+
# Options pass through for _classify_options later, and so does the value of one that
|
|
573
|
+
# takes it as the next token.
|
|
569
574
|
remaining.append(token)
|
|
575
|
+
opt_def = command_def.options.get(token)
|
|
576
|
+
if opt_def is not None and opt_def.takes_value:
|
|
577
|
+
value = next(tokens, None)
|
|
578
|
+
if value is not None:
|
|
579
|
+
remaining.append(value)
|
|
570
580
|
elif token in command_def.subcommands:
|
|
571
581
|
matched = command_def.subcommands[token]
|
|
572
582
|
matched_names.append(matched.command)
|
|
@@ -1303,6 +1303,142 @@ class TestAliasOfClassification:
|
|
|
1303
1303
|
classify_expression("myalias foo", database=db)
|
|
1304
1304
|
|
|
1305
1305
|
|
|
1306
|
+
class TestProcessLaunchers:
|
|
1307
|
+
"""`systemd-run`, `setsid` and `ionice` run the command after their own options, which decides the verdict."""
|
|
1308
|
+
|
|
1309
|
+
LAUNCHED = (
|
|
1310
|
+
("systemd-run --user --scope -q -p MemoryMax=2G --unit build-1 ./gradlew test", "systemd-run", ["gradlew"]),
|
|
1311
|
+
("systemd-run --unit=build-1 -E FOO=1 --property CPUQuota=50% make", "systemd-run", ["make"]),
|
|
1312
|
+
("systemd-run --user --wait --collect -- ls", "systemd-run", ["ls"]),
|
|
1313
|
+
("setsid -f make build", "setsid", ["make"]),
|
|
1314
|
+
("setsid --wait ls", "setsid", ["ls"]),
|
|
1315
|
+
("ionice -c3 make", "ionice", ["make"]),
|
|
1316
|
+
("ionice -c 2 -n 7 make", "ionice", ["make"]),
|
|
1317
|
+
("ionice --class=idle make", "ionice", ["make"]),
|
|
1318
|
+
)
|
|
1319
|
+
|
|
1320
|
+
@pytest.mark.parametrize(("expression", "launcher", "inner"), LAUNCHED)
|
|
1321
|
+
def test_the_launched_command_is_an_invocation(
|
|
1322
|
+
self, expression: str, launcher: str, inner: list[str], database: dict[str, CommandDef]
|
|
1323
|
+
) -> None:
|
|
1324
|
+
entries = list(iter_invocations(classify_expression(expression, database)))
|
|
1325
|
+
assert [(via, inv.command[:1]) for inv, via in entries] == [([], [launcher]), ([launcher], inner)]
|
|
1326
|
+
|
|
1327
|
+
@pytest.mark.parametrize(
|
|
1328
|
+
"expression",
|
|
1329
|
+
["systemd-run --user --scope rm -rf x", "setsid rm -rf x", "ionice -c3 rm -rf x"],
|
|
1330
|
+
)
|
|
1331
|
+
def test_a_dangerous_launched_command_makes_the_expression_dangerous(
|
|
1332
|
+
self, expression: str, database: dict[str, CommandDef]
|
|
1333
|
+
) -> None:
|
|
1334
|
+
result = classify_expression(expression, database)
|
|
1335
|
+
assert (result.classification, result.risk) == (Classification.DANGEROUS, Risk.HIGH)
|
|
1336
|
+
assert result.commands[0].inner_commands[0].command == ["rm"]
|
|
1337
|
+
|
|
1338
|
+
@pytest.mark.parametrize("expression", ["systemd-run --user --scope cat /tmp/x", "setsid cat /tmp/x"])
|
|
1339
|
+
def test_a_detached_command_is_at_least_an_external_effect(
|
|
1340
|
+
self, expression: str, database: dict[str, CommandDef]
|
|
1341
|
+
) -> None:
|
|
1342
|
+
"""The command runs outside the calling shell: under the service manager, or in a session of its own."""
|
|
1343
|
+
result = classify_expression(expression, database)
|
|
1344
|
+
assert (result.classification, result.risk) == (Classification.EXTERNAL_EFFECTS, Risk.MEDIUM)
|
|
1345
|
+
|
|
1346
|
+
def test_ionice_adds_nothing_to_the_command_it_runs(self, database: dict[str, CommandDef]) -> None:
|
|
1347
|
+
result = classify_expression("ionice -c3 cat /tmp/x", database)
|
|
1348
|
+
assert (result.classification, result.risk) == (Classification.READONLY, Risk.LOW)
|
|
1349
|
+
|
|
1350
|
+
@pytest.mark.parametrize(
|
|
1351
|
+
"expression",
|
|
1352
|
+
[
|
|
1353
|
+
"systemd-run --user",
|
|
1354
|
+
"systemd-run --user --no-such-option ls",
|
|
1355
|
+
"setsid",
|
|
1356
|
+
"ionice -p 1234",
|
|
1357
|
+
],
|
|
1358
|
+
)
|
|
1359
|
+
def test_a_launcher_whose_command_cannot_be_read_is_dangerous(
|
|
1360
|
+
self, expression: str, database: dict[str, CommandDef]
|
|
1361
|
+
) -> None:
|
|
1362
|
+
"""The fallback covers a spelling that runs an arbitrary program the matcher did not resolve."""
|
|
1363
|
+
result = classify_expression(expression, database)
|
|
1364
|
+
assert (result.classification, result.risk) == (Classification.DANGEROUS, Risk.HIGH)
|
|
1365
|
+
|
|
1366
|
+
@pytest.mark.parametrize(
|
|
1367
|
+
"expression", ["ionice -c 3 -p 1234 true", "ionice -c3 -P 1234 true", "ionice --uid 1000 true"]
|
|
1368
|
+
)
|
|
1369
|
+
def test_ionice_on_running_processes_is_dangerous(self, expression: str, database: dict[str, CommandDef]) -> None:
|
|
1370
|
+
"""With -p, -P or -u the trailing words are ids of processes whose priority ionice changes, not a command."""
|
|
1371
|
+
result = classify_expression(expression, database)
|
|
1372
|
+
assert (result.classification, result.risk) == (Classification.DANGEROUS, Risk.HIGH)
|
|
1373
|
+
|
|
1374
|
+
def test_a_launched_variable_still_prompts(self, database: dict[str, CommandDef]) -> None:
|
|
1375
|
+
result = classify_expression('systemd-run --user "$CMD"', database)
|
|
1376
|
+
assert result.risk == Risk.HIGH
|
|
1377
|
+
|
|
1378
|
+
@pytest.mark.parametrize("expression", ["systemd-run --help", "setsid -V", "ionice --version"])
|
|
1379
|
+
def test_help_and_version_are_read_only(self, expression: str, database: dict[str, CommandDef]) -> None:
|
|
1380
|
+
assert classify_expression(expression, database).risk == Risk.LOW
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
class TestUvRunOptionValues:
|
|
1384
|
+
"""An option of `uv run` that takes a value is skipped with it, so the program is the word after it."""
|
|
1385
|
+
|
|
1386
|
+
@pytest.mark.parametrize(
|
|
1387
|
+
"expression",
|
|
1388
|
+
[
|
|
1389
|
+
"uv run --only-group test pytest tests/a.py",
|
|
1390
|
+
"uv run --group test --extra cli pytest tests/a.py",
|
|
1391
|
+
"uv run --with requests --with-editable ../lib pytest",
|
|
1392
|
+
"uv run -p 3.12 --directory sub --project . --package app pytest",
|
|
1393
|
+
"uv run --python=3.12 --env-file .env pytest",
|
|
1394
|
+
"uv run -w requests -C key=value pytest",
|
|
1395
|
+
],
|
|
1396
|
+
)
|
|
1397
|
+
def test_the_program_follows_the_option_values(self, expression: str, database: dict[str, CommandDef]) -> None:
|
|
1398
|
+
entries = list(iter_invocations(classify_expression(expression, database)))
|
|
1399
|
+
assert [(via, inv.command[:1]) for inv, via in entries] == [([], ["uv"]), (["uv run"], ["pytest"])]
|
|
1400
|
+
|
|
1401
|
+
@pytest.mark.parametrize(
|
|
1402
|
+
"expression",
|
|
1403
|
+
[
|
|
1404
|
+
"uv run --only-group test rm -rf x",
|
|
1405
|
+
"uv run --with ls rm -rf x",
|
|
1406
|
+
"uv run --preview-features ls rm -rf x",
|
|
1407
|
+
"uv run --preview-feature ls rm -rf x",
|
|
1408
|
+
"uv run --python-preference ls rm -rf x",
|
|
1409
|
+
"uv run --trusted-host ls rm -rf x",
|
|
1410
|
+
"uv run --config-settings ls rm -rf x",
|
|
1411
|
+
],
|
|
1412
|
+
)
|
|
1413
|
+
def test_an_option_value_does_not_stand_in_for_the_program(
|
|
1414
|
+
self, expression: str, database: dict[str, CommandDef]
|
|
1415
|
+
) -> None:
|
|
1416
|
+
"""Read as the program, the value would classify `rm -rf x` as the `test` builtin or as `ls`.
|
|
1417
|
+
|
|
1418
|
+
`uv run --help` does not list every option that takes a value: `--preview-features` and
|
|
1419
|
+
`--python-preference` are hidden, and `--trusted-host` and `--config-settings` are hidden aliases.
|
|
1420
|
+
"""
|
|
1421
|
+
result = classify_expression(expression, database)
|
|
1422
|
+
assert (result.classification, result.risk) == (Classification.DANGEROUS, Risk.HIGH)
|
|
1423
|
+
|
|
1424
|
+
@pytest.mark.parametrize(
|
|
1425
|
+
"expression",
|
|
1426
|
+
[
|
|
1427
|
+
"uv run --with evil-pkg ls",
|
|
1428
|
+
"uv run -w evil-pkg ls",
|
|
1429
|
+
"uv run --with=evil-pkg ls",
|
|
1430
|
+
"uv run --with-editable ../evil ls",
|
|
1431
|
+
"uv run --with-requirements evil.txt ls",
|
|
1432
|
+
],
|
|
1433
|
+
)
|
|
1434
|
+
def test_a_package_added_to_the_environment_is_never_delegated_past(
|
|
1435
|
+
self, expression: str, database: dict[str, CommandDef]
|
|
1436
|
+
) -> None:
|
|
1437
|
+
"""The added package's executables come first on the PATH, so `ls` may not be the program that runs."""
|
|
1438
|
+
result = classify_expression(expression, database)
|
|
1439
|
+
assert (result.classification, result.risk) == (Classification.DANGEROUS, Risk.HIGH)
|
|
1440
|
+
|
|
1441
|
+
|
|
1306
1442
|
class TestIterInvocations:
|
|
1307
1443
|
"""`iter_invocations` walks every invocation depth-first with its wrapper chain."""
|
|
1308
1444
|
|
|
@@ -992,6 +992,7 @@ class TestMatchAllSubcommandMode:
|
|
|
992
992
|
options={
|
|
993
993
|
"-B": OptionDef(),
|
|
994
994
|
"--dry-run": OptionDef(overrides=Classification.READONLY),
|
|
995
|
+
"-x": OptionDef(takes_value=True),
|
|
995
996
|
},
|
|
996
997
|
)
|
|
997
998
|
|
|
@@ -1046,6 +1047,19 @@ class TestMatchAllSubcommandMode:
|
|
|
1046
1047
|
assert result.classification == Classification.READONLY
|
|
1047
1048
|
assert result.risk == Risk.LOW
|
|
1048
1049
|
|
|
1050
|
+
def test_an_option_value_is_not_a_goal(self) -> None:
|
|
1051
|
+
"""`-x deploy` excludes the goal; the value is consumed by the option, not run."""
|
|
1052
|
+
database = {"builder": self._make_match_all_command()}
|
|
1053
|
+
result = match_command(_make_invocation(["builder", "-x", "deploy", "clean"]), database)
|
|
1054
|
+
assert result.command == ["builder", "clean"]
|
|
1055
|
+
assert (result.classification, result.risk) == (Classification.LOCAL_EFFECTS, Risk.LOW)
|
|
1056
|
+
|
|
1057
|
+
def test_a_flag_without_a_value_does_not_swallow_the_goal_after_it(self) -> None:
|
|
1058
|
+
database = {"builder": self._make_match_all_command()}
|
|
1059
|
+
result = match_command(_make_invocation(["builder", "-B", "deploy"]), database)
|
|
1060
|
+
assert result.command == ["builder", "deploy"]
|
|
1061
|
+
assert result.classification == Classification.EXTERNAL_EFFECTS
|
|
1062
|
+
|
|
1049
1063
|
|
|
1050
1064
|
class TestPresentOptionsAndPositionals:
|
|
1051
1065
|
"""`options` reports the flags an invocation carries; `positionals` what is left."""
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
"""Tests based on real-world bash patterns from Claude Code transcripts."""
|
|
2
2
|
|
|
3
|
+
import pytest
|
|
4
|
+
|
|
3
5
|
from bash_classify.classifier import classify_expression
|
|
4
6
|
from bash_classify.models import Classification
|
|
5
7
|
|
|
@@ -467,6 +469,25 @@ class TestBuildTools:
|
|
|
467
469
|
result = classify_expression("gradle --dry-run clean build", database)
|
|
468
470
|
assert result.classification == Classification.READONLY
|
|
469
471
|
|
|
472
|
+
@pytest.mark.parametrize(
|
|
473
|
+
"expression",
|
|
474
|
+
[
|
|
475
|
+
"./gradlew build -x test",
|
|
476
|
+
"./gradlew build --exclude-task test",
|
|
477
|
+
"./gradlew -x test build",
|
|
478
|
+
"./gradlew build --exclude-task=test",
|
|
479
|
+
"./gradlew build -xtest",
|
|
480
|
+
],
|
|
481
|
+
)
|
|
482
|
+
def test_gradle_excluded_task_is_not_a_task(self, expression, database):
|
|
483
|
+
result = classify_expression(expression, database)
|
|
484
|
+
assert result.commands[0].command == ["gradlew", "build"]
|
|
485
|
+
|
|
486
|
+
def test_gradle_excluding_publish_does_not_publish(self, database):
|
|
487
|
+
result = classify_expression("gradle build -x publish", database)
|
|
488
|
+
assert result.commands[0].command == ["gradle", "build"]
|
|
489
|
+
assert result.classification == Classification.LOCAL_EFFECTS
|
|
490
|
+
|
|
470
491
|
|
|
471
492
|
class TestGlabOptions:
|
|
472
493
|
"""The flags the deny-hook rules key on are modelled, so they land in `options`
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bash_classify-0.14.1 → bash_classify-0.15.0}/coding-agent-plugins/claude-code/hooks/hooks.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bash_classify-0.14.1 → bash_classify-0.15.0}/src/bash_classify/commands/glab-discussion.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|