4 Commits
Author SHA1 Message Date
fraujulianandClaude Opus 5.5 d4f76fb132 fix(credentials): prompt for client when -Client is omitted
CI / CI configuration security checks (push) Successful in 4s
CI / Capabilities and shell quality (push) Successful in 12s
CI / Python tests and compilation (push) Successful in 31s
CI / QMD unit tests (push) Successful in 7s
CI / Build and inspect generated packages (push) Successful in 25s
CI / PowerShell tests on Ubuntu (push) Successful in 1m41s
CI / Installed client configuration smoke tests (push) Successful in 1m8s
CI / Bash integration and installation guards (push) Successful in 1m39s
add-credentials.ps1 and remove-credentials.ps1 saved $Client and $Key
before dot-sourcing with-credential.ps1 and assigned them back
afterwards. Without -Client, that assignment put an empty string into
a ValidateSet variable, and the script stopped with ValidateSetFailure
before it could ask which client to use. with-credential.ps1 now uses
its own variable names, so the save-and-restore is no longer needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 09:15:17 +01:00
Julian LechnerandClaude Opus 5.5 63a36d90e0 fix(hooks): close command-safety bypasses and credential helper output loss
The command-safety hook only checked the first word of each segment, so
destructive commands inside if/for/while blocks, subshells, braces,
PowerShell script blocks, or behind wrapper options (xargs -0, sudo -E,
timeout 30) ran unchecked. A comment with an apostrophe, an escaped quote,
or a line continuation also hid the following command. Skip shell
keywords, split on braces, drop comments, honor backslash escapes, join
continued lines, and check every suffix after a wrapper. CLI mode also
strips the byte order mark that Windows PowerShell 5.1 adds to piped
stdin, which let every command pass there.

with-credential.ps1 returned the child's exit code from a function, so
the child's stdout was captured and the exit code became 0. Run the child
as a statement and exit with its code. add-credentials now refreshes the
installed helper on every run so fixes reach existing machines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 08:00:18 +01:00
Julian LechnerandClaude Opus 5.5 79694fbaa2 fix(config): resolve Python reliably, add command-safety hook, harden CI
- Resolve Python 3.11+ through shared Resolve-Python.ps1/resolve-python.sh,
  which probe python, python3 and py -3 and skip the Windows Store alias.
  Build and capability checks fail early with an actionable message; doctor
  reports missing Python and the skipped hooks.
- Fix check-capabilities.sh comparing only the major version.
- Register Validate-CommandSafety as a PreToolUse hook for Claude and Codex;
  shared logic in command-safety.py catches rm -rf variants, git reset --hard,
  git clean -f, Remove-Item -Recurse, del/rd /s /q and nested shells.
- Replace duplicated placeholder chains in both builds with
  adapters/placeholders.tsv.
- Restore shell parity: add test-capabilities.sh, rename credentials.ps1 to
  with-credential.ps1 and qmd-warm.sh to start-qmd-warm.sh.
- CI: build once and pass generated/ as an artifact, lint Python with ruff
  and JavaScript modules with node --check, require SHA pins for all actions.
- Add evals for all own skills and update documentation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 09:34:54 +01:00
fraujulian d808026eec feat(credentials): add scoped credential helpers 2026-09-18 17:25:17 +02:00