bash-classify 0.14.0__tar.gz → 0.14.1__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.0 → bash_classify-0.14.1}/.claude-plugin/marketplace.json +1 -1
- {bash_classify-0.14.0 → bash_classify-0.14.1}/PKG-INFO +28 -2
- {bash_classify-0.14.0 → bash_classify-0.14.1}/README.md +27 -1
- {bash_classify-0.14.0 → bash_classify-0.14.1}/SPEC.md +17 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/coding-agent-plugins/claude-code/.claude-plugin/plugin.json +1 -1
- {bash_classify-0.14.0 → bash_classify-0.14.1}/docs/classification-guidance.md +67 -1
- {bash_classify-0.14.0 → bash_classify-0.14.1}/schemas/command.schema.json +6 -1
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/database.py +318 -16
- bash_classify-0.14.1/tests/conftest.py +50 -0
- bash_classify-0.14.1/tests/test_database.py +1189 -0
- bash_classify-0.14.0/tests/conftest.py +0 -13
- bash_classify-0.14.0/tests/test_database.py +0 -505
- {bash_classify-0.14.0 → bash_classify-0.14.1}/.claude/rules/command-database.md +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/.editorconfig +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/.github/workflows/ci.yml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/.github/workflows/publish.yml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/.gitignore +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/.python-version +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/CLAUDE.md +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/LICENSE +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/coding-agent-plugins/claude-code/hooks/hook-permission-request.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/coding-agent-plugins/claude-code/hooks/hook-pre-tool-use.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/coding-agent-plugins/claude-code/hooks/hooks.json +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/pyproject.toml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/ruff.toml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/schemas/match-rules.schema.json +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/schemas/sensitive-paths.schema.json +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/scripts/audit-missing-base.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/__init__.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/__main__.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/classifier.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/cli.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/agent-browser.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/apt.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/awk.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/basename.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/bash-classify.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/bash.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/black.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/brew.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/builtin.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/cargo.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/cat.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/chgrp.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/chmod.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/chown.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/column.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/comm.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/command.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/cp.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/curl.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/cut.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/date.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/df.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/diff.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/dig.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/dirname.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/docker.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/du.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/echo.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/env.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/eslint.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/eval.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/exec.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/expand.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/false.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/file.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/find.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/fmt.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/fold.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/free.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gawk.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gcloud.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gh.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/git.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/glab-discussion.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/glab.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/go.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gog.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gradle.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gradlew.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/grep.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/groups.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gunzip.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gws.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/gzip.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/hadolint.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/head.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/helm.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/hostname.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/id.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/install.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/isort.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/java.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/javac.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/join.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/journalctl.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/jq.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/kill.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/killall.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/kubectl.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/less.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/ln.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/ls.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/make.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/md5sum.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/mise.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/mkdir.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/more.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/mv.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/mvn.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/mvnw.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/mypy.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/netstat.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/nice.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/nl.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/node.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/nohup.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/npm.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/npx.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/nslookup.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/paste.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/ping.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pip.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pip3.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pipx.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pkill.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pnpm.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/poetry.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/prettier.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/printenv.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/printf.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/ps.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pup.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pwd.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/pytest.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/python.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/python3.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/read.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/readlink.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/realpath.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/rev.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/rg.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/rm.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/rsync.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/rtk.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/ruff.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/scp.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/sed.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/seq.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/sh.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/sha1sum.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/sha256sum.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/shellcheck.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/slack.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/sleep.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/snip.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/sort.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/ss.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/ssh.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/stat.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/stdbuf.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/strace.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/strings.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/sudo.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/systemctl.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/tac.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/tail.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/tar.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/tee.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/terraform.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/test.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/time.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/timeout.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/top.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/touch.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/tr.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/traceroute.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/true.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/tsc.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/type.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/uname.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/unexpand.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/uniq.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/unzip.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/uptime.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/uv.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/wait.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/wc.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/wget.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/whereis.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/which.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/whoami.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/xargs.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/xmllint.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/yarn.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/yes.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/yq.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/zip.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/commands/zsh.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/matcher.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/models.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/parser.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/py.typed +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/redirects.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/rules.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/sensitive-paths.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/src/bash_classify/sensitive.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/__init__.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/api-merge-request-award-emoji.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/api-merge-request-include-diverged.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/api-merge-request-itself.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/api-merge-request-pipelines-list.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/api-merge-request-update-description.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/api-project-lookup.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/ci-list.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/comment-only-mention.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/echo-mentions-api-endpoint.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/echo-mentions-command.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/git-commit-heredoc-message.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/git-commit-inline-message.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/glab-discussion-read-and-api-mr.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/glab-discussion-read.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/glab-pipeline-inspect.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/grep-pattern-mentions-command.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/grep-recursive-for-command.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/heredoc-brief-2026-09-04.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/heredoc-brief-mentions-blocked-commands.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/heredoc-report-mentions-blocked.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/heredoc-skill-custom-delimiter.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/heredoc-skill-phrase-split-across-lines.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/hook-self-test-json-payload.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/loop-over-quoted-command-strings.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-note-list-output-json.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-note-list.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-update-then-view.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-view-bare.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-view-grep-pipeline.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-view-output-equals-json.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-view-output-json.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/mr-view-output-short-flag.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/printf-mentions-command.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/python-heredoc-triple-quoted-mention.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/allow/ripgrep-pattern-args.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-absolute-binary-path.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-delete-note-nested-api.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-cd-and-prefix.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-export-host-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-for-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-heredoc-then-call.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-hostname-python-consumer.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-line-continuation.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-method-get-field.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-output-ndjson.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-paginate-before-path.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-paginate.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-per-page-query.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-quoted-paginate-jq.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-redirect-to-file.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-repo-flag-first.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-discussions-var-capture.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-edit-note-put-heredoc.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-new-diff-note-input-stdin.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-new-diff-note-position-fields.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-note-award-emoji.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-note-by-id-or-retry.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-notes-after-allowed-mr-view.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-notes-query-sort.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-notes-timeout-prefix.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-reply-method-post-after-path.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-reply-post-body-from-file.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-reply-post-heredoc-body.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-resolve-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-resolve-put-field.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/api-single-discussion-by-id.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/env-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/heredoc-then-and-chain-to-blocked.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/heredoc-then-pipe-to-blocked.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-custom-heredoc-delimiter.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-help.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-heredoc-body.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-inline-after-mr-update.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-long-message-flag.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-repo-before-message.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-second-in-pipeline.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-note-then-close.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-view-comments-bare.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-view-comments-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-view-comments-no-iid.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-view-comments-page-flag.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-view-comments-repo-flag.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-view-comments-short-cluster.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/mr-view-comments-short-flag.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/sudo-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/timeout-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/wrapper-bash-c.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/wrapper-sudo.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/block/xargs-end-of-options-mr-note.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-discussion/rules.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-job-metadata-without-trace.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-job-metadata-xargs.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-itself.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-pipelines-list-per-page.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-merge-request-pipelines-list.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-bash-c.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-ref.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/api-pipelines-list-single-quoted.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/ci-lint-local-file.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/ci-list-per-page.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/ci-list.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/ci-status-compact.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/ci-status-pipeline-id.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/comment-only-mention.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/echo-mentions-ci-command.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/git-commit-heredoc-message.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/git-commit-inline-message.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/glab-discussion-read.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/glab-pipeline-inspect.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/grep-pattern-mentions-ci.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/heredoc-brief-mentions-ci-commands.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/heredoc-skill-mentions-ci.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/loop-over-quoted-command-strings.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/printf-mentions-ci-command.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/allow/ripgrep-pattern-args.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-continuation-lines.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-input-and-header.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-method-post-field.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-ci-lint-raw-field-cat.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-job-trace-after-allowed-metadata.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-job-trace-env-assignment.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-job-trace-redirect-to-file.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-job-trace-retry-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-job-trace-xargs.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-detail.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-env-assignment.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-hostname-after-path.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-comment-and-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-list.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-nested-loop-timeout.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-paginate-ndjson.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-python-consumer.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-jobs-scope-failed-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-status-poll-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/api-pipeline-test-report.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-get-after-allowed-status.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-get-branch-in-echo-chain.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-get-branch-ref-sleep-prefix.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-get-json-jq-sort-uniq.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-get-then-ci-trace.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-get-var-capture-poll-loop.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-get-with-job-details-repo.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-trace-job-name-with-pipeline.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-trace-pipeline-id-before-job-name.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-trace-redirect-to-file.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-trace-repo-before-job-id.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-view-help.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-view-job-web-or-api.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/ci-view-pipeline-id.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/heredoc-then-pipe-to-blocked.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/pipe-get-alias.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/pipeline-view-alias.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/wrapper-bash-c.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/block/wrapper-sudo.sh +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/fixtures/match/glab-pipeline/rules.yaml +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_classifier.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_cli.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_cli_serialization.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_match_fixtures.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_matcher.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_models.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_output_paths.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_parser.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_public_api.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_real_world.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_rules.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_schema.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_sensitive_paths.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/tests/test_smoke.py +0 -0
- {bash_classify-0.14.0 → bash_classify-0.14.1}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: bash-classify
|
|
3
|
-
Version: 0.14.
|
|
3
|
+
Version: 0.14.1
|
|
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
|
|
@@ -213,7 +213,33 @@ Once installed, any Bash tool call with `risk: LOW` is auto-approved — no perm
|
|
|
213
213
|
bash-classify loads command definitions from two locations:
|
|
214
214
|
|
|
215
215
|
- **Built-in database** — 150+ command definitions bundled with the package, covering common Unix utilities, package managers, container tools, cloud CLIs, and more. Lives in `src/bash_classify/commands/*.yaml`.
|
|
216
|
-
- **User database** — your own command definitions at `~/.config/bash-classify/commands/*.yaml` (override the location with the `BASH_CLASSIFY_CONFIG_DIR` env var, which resolves to `$BASH_CLASSIFY_CONFIG_DIR/commands/`).
|
|
216
|
+
- **User database** — your own command definitions at `~/.config/bash-classify/commands/*.yaml` (override the location with the `BASH_CLASSIFY_CONFIG_DIR` env var, which resolves to `$BASH_CLASSIFY_CONFIG_DIR/commands/`). A file here lets you classify internal tools, company-specific wrappers or personal CLIs without forking the repo.
|
|
217
|
+
|
|
218
|
+
A user file that shares its name with a built-in one picks one of two things to do with it.
|
|
219
|
+
|
|
220
|
+
**Replace it** — the default, and what a file with no `extends` key has always done. The bundled definition is discarded whole: its subcommands, its options, its base classification, all of it. Use this when your binary has nothing to do with the bundled one of the same name, or when you need the bundled file's answer *gone* rather than adjusted.
|
|
221
|
+
|
|
222
|
+
**Extend it** — `extends: builtin` merges your file over the bundled one, so you declare only what you are adding or changing. Use this to teach a command the subcommands your own setup gives it, which is otherwise a fork of a file that keeps growing underneath you:
|
|
223
|
+
|
|
224
|
+
```yaml
|
|
225
|
+
# ~/.config/bash-classify/commands/git.yaml
|
|
226
|
+
command: git
|
|
227
|
+
extends: builtin
|
|
228
|
+
subcommands:
|
|
229
|
+
tally: {classification: LOCAL_EFFECTS, risk: LOW}
|
|
230
|
+
ledger: {classification: READONLY}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
Everything the bundled `git` knows is still there; `git tally` and `git ledger` are now two more subcommands it knows. Mappings merge key by key at every depth, so naming one field of a subcommand changes that field and leaves the rest of the bundled entry alone — `push: {risk: LOW}` keeps `git push` at `EXTERNAL_EFFECTS` and keeps `--force` dangerous. A scalar, a list, and a `delegates_to` block replace their bundled counterpart outright.
|
|
234
|
+
|
|
235
|
+
The guarantee is that **merging never drops a bundled subcommand or option.** It is not a blanket "cannot remove": a list is replaced rather than merged, so `aliases: []` does drop the bundled aliases, and that is the one deliberate way to take something away. A file that has to drop a bundled subcommand or option leaves `extends` off and replaces the definition instead.
|
|
236
|
+
|
|
237
|
+
Four things are load errors rather than quiet surprises, because a user database is never schema-validated at load and every one of these fails towards auto-approval:
|
|
238
|
+
|
|
239
|
+
- **`extends: builtin` on a command the bundled database does not define.** There is nothing to merge. The message names the file and the command, and no fallback to replacement happens.
|
|
240
|
+
- **Any key the loader does not recognise,** at every level of the file. `extends: bultin` is caught this way, and so is `clasification: READONLY`.
|
|
241
|
+
- **A key written with no value.** YAML reads `classification:` with nothing after it as `null`, not as an absent key, and it would replace the bundled value with the default — which is always the weaker answer. Typing half a line, or commenting a value out while you think about it, would otherwise turn `git <anything unrecognised>` from `DANGEROUS` into `READONLY` without a word. For a *subcommand or option entry* you mean to leave at its bundled settings, write `{}`; that merges as the no-op it looks like. `delegates_to: {}` is not in that class and is refused too, because an empty block parses as "does not delegate" — omit the key instead.
|
|
242
|
+
- **An option written under a name the bundled file spells as an alias of another option.** `kubectl.yaml` files `-n` only as an alias of `--namespace`, and aliases are expanded after the merge, so an entry added under `-n` shadows the bundled option rather than changing it — it loses `takes_value`, and `kubectl -n prod delete pod x` stops resolving `delete`. Write the entry under `--namespace`.
|
|
217
243
|
|
|
218
244
|
Both directories use the same YAML format. See [docs/classification-guidance.md](docs/classification-guidance.md) for how to add new commands. YAML definitions are validated against a [JSON Schema](schemas/command.schema.json) for IDE autocomplete and CI checks.
|
|
219
245
|
|
|
@@ -184,7 +184,33 @@ Once installed, any Bash tool call with `risk: LOW` is auto-approved — no perm
|
|
|
184
184
|
bash-classify loads command definitions from two locations:
|
|
185
185
|
|
|
186
186
|
- **Built-in database** — 150+ command definitions bundled with the package, covering common Unix utilities, package managers, container tools, cloud CLIs, and more. Lives in `src/bash_classify/commands/*.yaml`.
|
|
187
|
-
- **User database** — your own command definitions at `~/.config/bash-classify/commands/*.yaml` (override the location with the `BASH_CLASSIFY_CONFIG_DIR` env var, which resolves to `$BASH_CLASSIFY_CONFIG_DIR/commands/`).
|
|
187
|
+
- **User database** — your own command definitions at `~/.config/bash-classify/commands/*.yaml` (override the location with the `BASH_CLASSIFY_CONFIG_DIR` env var, which resolves to `$BASH_CLASSIFY_CONFIG_DIR/commands/`). A file here lets you classify internal tools, company-specific wrappers or personal CLIs without forking the repo.
|
|
188
|
+
|
|
189
|
+
A user file that shares its name with a built-in one picks one of two things to do with it.
|
|
190
|
+
|
|
191
|
+
**Replace it** — the default, and what a file with no `extends` key has always done. The bundled definition is discarded whole: its subcommands, its options, its base classification, all of it. Use this when your binary has nothing to do with the bundled one of the same name, or when you need the bundled file's answer *gone* rather than adjusted.
|
|
192
|
+
|
|
193
|
+
**Extend it** — `extends: builtin` merges your file over the bundled one, so you declare only what you are adding or changing. Use this to teach a command the subcommands your own setup gives it, which is otherwise a fork of a file that keeps growing underneath you:
|
|
194
|
+
|
|
195
|
+
```yaml
|
|
196
|
+
# ~/.config/bash-classify/commands/git.yaml
|
|
197
|
+
command: git
|
|
198
|
+
extends: builtin
|
|
199
|
+
subcommands:
|
|
200
|
+
tally: {classification: LOCAL_EFFECTS, risk: LOW}
|
|
201
|
+
ledger: {classification: READONLY}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
Everything the bundled `git` knows is still there; `git tally` and `git ledger` are now two more subcommands it knows. Mappings merge key by key at every depth, so naming one field of a subcommand changes that field and leaves the rest of the bundled entry alone — `push: {risk: LOW}` keeps `git push` at `EXTERNAL_EFFECTS` and keeps `--force` dangerous. A scalar, a list, and a `delegates_to` block replace their bundled counterpart outright.
|
|
205
|
+
|
|
206
|
+
The guarantee is that **merging never drops a bundled subcommand or option.** It is not a blanket "cannot remove": a list is replaced rather than merged, so `aliases: []` does drop the bundled aliases, and that is the one deliberate way to take something away. A file that has to drop a bundled subcommand or option leaves `extends` off and replaces the definition instead.
|
|
207
|
+
|
|
208
|
+
Four things are load errors rather than quiet surprises, because a user database is never schema-validated at load and every one of these fails towards auto-approval:
|
|
209
|
+
|
|
210
|
+
- **`extends: builtin` on a command the bundled database does not define.** There is nothing to merge. The message names the file and the command, and no fallback to replacement happens.
|
|
211
|
+
- **Any key the loader does not recognise,** at every level of the file. `extends: bultin` is caught this way, and so is `clasification: READONLY`.
|
|
212
|
+
- **A key written with no value.** YAML reads `classification:` with nothing after it as `null`, not as an absent key, and it would replace the bundled value with the default — which is always the weaker answer. Typing half a line, or commenting a value out while you think about it, would otherwise turn `git <anything unrecognised>` from `DANGEROUS` into `READONLY` without a word. For a *subcommand or option entry* you mean to leave at its bundled settings, write `{}`; that merges as the no-op it looks like. `delegates_to: {}` is not in that class and is refused too, because an empty block parses as "does not delegate" — omit the key instead.
|
|
213
|
+
- **An option written under a name the bundled file spells as an alias of another option.** `kubectl.yaml` files `-n` only as an alias of `--namespace`, and aliases are expanded after the merge, so an entry added under `-n` shadows the bundled option rather than changing it — it loses `takes_value`, and `kubectl -n prod delete pod x` stops resolving `delete`. Write the entry under `--namespace`.
|
|
188
214
|
|
|
189
215
|
Both directories use the same YAML format. See [docs/classification-guidance.md](docs/classification-guidance.md) for how to add new commands. YAML definitions are validated against a [JSON Schema](schemas/command.schema.json) for IDE autocomplete and CI checks.
|
|
190
216
|
|
|
@@ -513,6 +513,22 @@ Step 5: classification
|
|
|
513
513
|
|
|
514
514
|
YAML files, one per command or command family. Loaded from a `commands/` directory.
|
|
515
515
|
|
|
516
|
+
### Where files are loaded from
|
|
517
|
+
|
|
518
|
+
Two directories, in this order: the bundled `src/bash_classify/commands/`, then the user's own `~/.config/bash-classify/commands/` (or `$BASH_CLASSIFY_CONFIG_DIR/commands/` when that variable is set). A user file whose name no bundled file uses simply adds a command. A user file that shares its name with a bundled one resolves in one of two ways, and the file itself chooses:
|
|
519
|
+
|
|
520
|
+
- **Without `extends`** -- the default -- the user file *replaces* the bundled definition entirely. Nothing of the bundled file survives: not its subcommands, not its options, not its base classification.
|
|
521
|
+
- **With `extends: builtin`** the user file is *merged over* the bundled one. Mappings merge key by key at every depth, so `subcommands`, `options`, `global_options`, and the fields of a single subcommand or option present in both files, all merge. A scalar, a list and a `delegates_to` block replace their bundled counterpart outright. The guarantee is that merging never drops a bundled subcommand or option; it is not a blanket "cannot remove", because a list is replaced, so `aliases: []` does drop the bundled aliases and is the one deliberate way to take something away.
|
|
522
|
+
|
|
523
|
+
An extending file is held to four rules that a replacing file is not, because each one would otherwise resolve towards the weaker verdict:
|
|
524
|
+
|
|
525
|
+
- **Nothing to extend is an error.** `extends: builtin` in a file whose name the bundled database does not carry is a load error naming the file and the command, never a silent replacement. The lookup is keyed on the *filename*, so `zzmytool.yaml` is filed under `zzmytool` whatever its `command:` says. `extends` is likewise meaningless when an explicit commands directory is passed to `load_database`, because the file is then itself the bundled definition, and that has its own message rather than being a no-op.
|
|
526
|
+
- **A key written with no value is an error.** YAML reads `classification:` with nothing after it as the value `None`, and every parser reads `None` as "not set, use the default", so it replaces the bundled value rather than leaving it alone. The default is always the weaker answer: a blank `classification:` took `git <anything unrecognised>` from `DANGEROUS` to `READONLY`, a blank `delegates_to:` took `xargs rm -rf` the same way, and a bare `subcommands:` erased every subcommand in the file. A subcommand or option entry meant to keep its bundled settings is written `{}`, which merges as a no-op; `delegates_to: {}` is not in that class and is an error of its own, because an empty block parses as "does not delegate" and losing a delegation lowers the verdict the same way. In a replacing file a blank key deletes nothing, so `-i:` there still means "an option with all defaults", which the format has always accepted even though no bundled file uses the spelling.
|
|
527
|
+
- **An option under a bundled alias spelling is an error.** Aliases are expanded after the merge, in file order, so an entry written under a name the bundled file spells as an alias of another option is a separate definition built from defaults, not a change to the bundled one. `kubectl.yaml` files `-n` only as an alias of `--namespace`; an entry under `-n` cost it `takes_value` and dropped `kubectl -n prod delete pod x` from `DANGEROUS` to `EXTERNAL_EFFECTS`. The entry goes under the primary name.
|
|
528
|
+
- **A subcommand that collides with a bundled alias is an error,** from the same alias-collision check that applies to any file.
|
|
529
|
+
|
|
530
|
+
Only the bundled files are validated against `schemas/command.schema.json`, by `tests/test_schema.py`, which is to say wherever the suite runs and never at load time. The loader therefore enforces the schema's key allowlists itself, at all four levels the schema closes with `additionalProperties: false`: command, subcommand, option and `delegates_to`. A key the loader does not recognise is a load error naming the file, the object it sits on, the unrecognised spelling and the accepted ones. Resolution is lazy: a command is parsed when it is first asked for, and an extending command reads its two files then and not before.
|
|
531
|
+
|
|
516
532
|
### Example: `commands/kubectl.yaml`
|
|
517
533
|
|
|
518
534
|
```yaml
|
|
@@ -970,6 +986,7 @@ When command-level delegation resolves at least one inner command (and no option
|
|
|
970
986
|
| Field | Type | Description |
|
|
971
987
|
|---|---|---|
|
|
972
988
|
| `command` | `string` | Binary name |
|
|
989
|
+
| `extends` | `builtin` | User database only: merge this file over the bundled definition of the same name instead of replacing it |
|
|
973
990
|
| `classification` | `enum` | Default classification for the command (when no subcommand matched) |
|
|
974
991
|
| `global_options` | `map` | Options that appear before subcommands and are stripped before matching |
|
|
975
992
|
| `subcommands` | `map` | Nested subcommand definitions (recursive structure) |
|
|
@@ -50,7 +50,7 @@ The overall classification of a full expression (e.g. a pipeline) is the **maxim
|
|
|
50
50
|
|
|
51
51
|
## 3. Database File Format
|
|
52
52
|
|
|
53
|
-
Each YAML file defines one command (binary). Files live in `src/bash_classify/commands/` and are validated against the JSON Schema at `schemas/command.schema.json`.
|
|
53
|
+
Each YAML file defines one command (binary). Files live in `src/bash_classify/commands/` and are validated against the JSON Schema at `schemas/command.schema.json`. The same format is read from a user database at `~/.config/bash-classify/commands/` (or `$BASH_CLASSIFY_CONFIG_DIR/commands/`) -- see [Extending a bundled command](#extending-a-bundled-command) for what a user file of the same name does to the bundled one.
|
|
54
54
|
|
|
55
55
|
### Annotated Example
|
|
56
56
|
|
|
@@ -71,12 +71,15 @@ options: # options that affect classification
|
|
|
71
71
|
|
|
72
72
|
### Field Reference
|
|
73
73
|
|
|
74
|
+
Every key below is the only spelling the loader accepts at that level. A key it does not know is a load error naming the file, the command or option it sits on, the unrecognised spelling and the accepted ones. That matters most outside this repo: only the bundled files are validated against the JSON Schema in CI, so in a user database this check is the only thing standing between `clasification: READONLY` and a command that silently keeps its default classification.
|
|
75
|
+
|
|
74
76
|
#### Top-level fields
|
|
75
77
|
|
|
76
78
|
| Field | Type | Default | Description |
|
|
77
79
|
|-------|------|---------|-------------|
|
|
78
80
|
| `command` | string | *(required)* | Binary name (e.g. `kubectl`, `git`, `sed`) |
|
|
79
81
|
| `description` | string | -- | Short one-liner describing the tool |
|
|
82
|
+
| `extends` | `builtin` | -- | User database only: merge this file over the bundled definition of the same name rather than replacing it -- see [Extending a bundled command](#extending-a-bundled-command) |
|
|
80
83
|
| `classification` | enum | `READONLY` | Base classification when no subcommand matches |
|
|
81
84
|
| `strict` | boolean | `true` | If true, unrecognized options yield UNKNOWN |
|
|
82
85
|
| `global_options` | map | -- | Options that belong to the binary rather than to one subcommand. Stripped before subcommand matching, and re-checked afterwards, so an entry here **applies at every subcommand depth** -- see [Global options apply at every depth](#global-options-apply-at-every-depth) |
|
|
@@ -125,6 +128,69 @@ subcommands:
|
|
|
125
128
|
|
|
126
129
|
A consumer uses the field to tell a write to a credential from a mention of one, so a wrong mark is worse than a missing one. When in doubt, leave it off.
|
|
127
130
|
|
|
131
|
+
### Extending a bundled command
|
|
132
|
+
|
|
133
|
+
A user file with the same name as a bundled one **replaces** it by default: the bundled subcommands, options and base classification are all discarded. Adding `extends: builtin` at the top level **merges** the file over the bundled one instead.
|
|
134
|
+
|
|
135
|
+
```yaml
|
|
136
|
+
# ~/.config/bash-classify/commands/git.yaml
|
|
137
|
+
command: git
|
|
138
|
+
extends: builtin
|
|
139
|
+
subcommands:
|
|
140
|
+
tally: {classification: LOCAL_EFFECTS, risk: LOW} # a subcommand only this machine has
|
|
141
|
+
ledger: {classification: READONLY}
|
|
142
|
+
push: {risk: LOW} # one field of a bundled subcommand
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
The merge rule is one sentence: **mappings merge key by key at every depth; a scalar, a list and a `delegates_to` block replace their bundled counterpart outright.**
|
|
146
|
+
|
|
147
|
+
| In the user file | What the merge does |
|
|
148
|
+
|---|---|
|
|
149
|
+
| `classification`, `risk`, `strict`, `subcommand_mode`, `description` | Replaces the bundled value. Absent, the bundled value stands. |
|
|
150
|
+
| `subcommands`, `options`, `global_options` | Merged by name. Entries only the bundled file has survive; entries only the user file has are added. |
|
|
151
|
+
| A subcommand or option present in both | Merged field by field, recursively. `push: {risk: LOW}` keeps `push`'s bundled classification **and** its `--force` override. |
|
|
152
|
+
| `aliases`, or any other list | Replaced. Lists have no keys to merge on, and appending would make an unwanted bundled alias impossible to drop. |
|
|
153
|
+
| A key written with no value | Rejected -- see below. YAML reads it as a value, and it would replace the bundled one with the default. |
|
|
154
|
+
| `delegates_to` | Replaced whole. `mode` decides which of its other fields mean anything, so half of one block merged into half of another is not a configuration anyone wrote. |
|
|
155
|
+
| `alias_of` | Rejected. An alias file points at another command instead of defining one, so it has nothing to extend. |
|
|
156
|
+
|
|
157
|
+
Field-by-field merging of an entry present in both files is the choice worth stating, because the alternative fails in the unsafe direction. Under wholesale replacement of the named entry, `push: {risk: LOW}` would silently delete `--force: {overrides: DANGEROUS}` along with everything else `git push` carries, and the file would read as though it had only lowered a risk.
|
|
158
|
+
|
|
159
|
+
The guarantee is that **merging never drops a bundled subcommand or option.** It is not a blanket "cannot remove": a list is replaced rather than merged, so `aliases: []` does drop the bundled aliases, and that is the one deliberate way to take something away. A file that has to drop a bundled subcommand or option leaves `extends` off and replaces the definition instead -- and then owns the whole thing, including whatever the bundled file grows later.
|
|
160
|
+
|
|
161
|
+
#### What errors rather than passing quietly
|
|
162
|
+
|
|
163
|
+
A user database is never schema-validated at load, and every mistake below resolves towards auto-approval, so each one is a load error naming the file and what is wrong with it.
|
|
164
|
+
|
|
165
|
+
**A key written with no value.** This is the one worth reading twice, because it looks like nothing:
|
|
166
|
+
|
|
167
|
+
```yaml
|
|
168
|
+
command: git
|
|
169
|
+
extends: builtin
|
|
170
|
+
classification: # <- not "leave the bundled value alone"
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
YAML reads that as the value `None`, not as an absent key, and every parser below reads `None` as "not set, use the default". So it replaces the bundled value, and the default it falls back to is always the weaker answer -- here it took `git <anything unrecognised>` from `DANGEROUS` to `READONLY`, which is the exact case `git.yaml`'s own comment explains the DANGEROUS base exists for. A bare `subcommands:` erased every subcommand in the file; `delegates_to:` took `xargs rm -rf` from `DANGEROUS` to `READONLY`. Typing half a line and leaving the value for later, or commenting a value out while thinking about it, must not read as consent.
|
|
174
|
+
|
|
175
|
+
For a *subcommand or option entry* you mean to keep at its bundled settings, write `{}` -- `-delete: {}` merges as the no-op it looks like. `delegates_to` is the exception: an empty block there parses as "does not delegate", which is the same loss the blank spelling caused, so `delegates_to: {}` is refused as well and the remedy is to omit the key. The blank rule is scoped to extending files: in a file that stands alone a blank key overwrites nothing, and `-i:` meaning "an option with all defaults" is a spelling the format has always accepted -- no bundled file uses it, but files outside this repository may.
|
|
176
|
+
|
|
177
|
+
**An option written under a name the bundled file spells as an alias.** Aliases are expanded after the merge, in file order, so an entry added under an alias spelling is a separate definition built from defaults, not a change to the bundled option:
|
|
178
|
+
|
|
179
|
+
```yaml
|
|
180
|
+
command: kubectl
|
|
181
|
+
extends: builtin
|
|
182
|
+
global_options:
|
|
183
|
+
-n: {} # <- rejected: write it under --namespace
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
`kubectl.yaml` files `-n` only as `--namespace: {takes_value: true, aliases: [-n]}`. The entry above cost `-n` its `takes_value`, so `prod` filled the subcommand slot, `delete` never matched, and `kubectl -n prod delete pod x` fell from `DANGEROUS` to `EXTERNAL_EFFECTS`. Whether an option merged or shadowed used to depend on whether the bundled file happened to also list the alias as a key of its own, which is no rule at all.
|
|
187
|
+
|
|
188
|
+
**A subcommand the bundled file already lists as an alias of another subcommand.** `glab pipeline` is a bundled alias of `glab ci`, so declaring `pipeline` is caught by the existing alias-collision check. Override that subcommand's `aliases` in the same file to claim the name.
|
|
189
|
+
|
|
190
|
+
**`extends: builtin` naming a command the bundled database does not define.** There is nothing to merge. The lookup is keyed on the *filename*, so `zzmytool.yaml` is filed under `zzmytool` whatever its `command:` says, and the message names the file it looked for.
|
|
191
|
+
|
|
192
|
+
**Any key the loader does not recognise,** at any level. `extends: bultin` is caught this way, and so is `clasification: READONLY`.
|
|
193
|
+
|
|
128
194
|
### Global options apply at every depth
|
|
129
195
|
|
|
130
196
|
`global_options` is stripped ahead of subcommand matching, and the leftovers are re-checked against it afterwards so that `kubectl apply --help` works. Both halves mean the same thing: **an entry in `global_options` is claimed to be valid, and to mean the same thing, at every subcommand depth of the file.** Before adding one -- especially an `overrides` -- run it against the real binary *with a subcommand*, not just bare. Bare is the spelling that always works and it proves nothing.
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"required": ["alias_of"],
|
|
13
13
|
"not": {
|
|
14
14
|
"anyOf": [
|
|
15
|
+
{"required": ["extends"]},
|
|
15
16
|
{"required": ["classification"]},
|
|
16
17
|
{"required": ["risk"]},
|
|
17
18
|
{"required": ["subcommands"]},
|
|
@@ -37,9 +38,13 @@
|
|
|
37
38
|
"type": "string",
|
|
38
39
|
"description": "Short description of the tool"
|
|
39
40
|
},
|
|
41
|
+
"extends": {
|
|
42
|
+
"const": "builtin",
|
|
43
|
+
"description": "Only meaningful in a user database (~/.config/bash-classify/commands/ or $BASH_CLASSIFY_CONFIG_DIR/commands/). With it, this file is merged over the bundled definition of the same name instead of replacing it: mappings merge key by key at every depth, while a scalar, a list or a `delegates_to` block replaces its bundled counterpart. Without it, the file replaces the bundled definition outright. A file that names a command the bundled database does not define is a load error. Mutually exclusive with alias_of."
|
|
44
|
+
},
|
|
40
45
|
"alias_of": {
|
|
41
46
|
"type": "string",
|
|
42
|
-
"description": "Name of another command in the database whose definition should be used verbatim. Mutually exclusive with classification/risk/subcommands/options/global_options/subcommand_mode/delegates_to/strict."
|
|
47
|
+
"description": "Name of another command in the database whose definition should be used verbatim. Mutually exclusive with extends/classification/risk/subcommands/options/global_options/subcommand_mode/delegates_to/strict."
|
|
43
48
|
},
|
|
44
49
|
"classification": {
|
|
45
50
|
"$ref": "#/$defs/Classification"
|