| Age | Commit message (Collapse) | Author |
|
|
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
|
|
|
feat(discord): add list_emojis tool
|
|
security-guidance: commit and push reviews no longer hold a large diff in memory
|
|
|
|
feat(discord): add create_thread tool
|
|
Windows can release a killed process's file lock a moment after the
process ended, so the wait that follows may see it held once more.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Co-authored-by: mhegazy <mhegazy@anthropic.com>
# Conflicts:
# plugins/security-guidance/hooks/security_reminder_hook.py
|
|
security-guidance: keep a review's result and time on full metric rows
|
|
security-guidance: review text files renamed to code names
|
|
security-guidance: tell the commit reviewer its text is not read
|
|
security-guidance: review a commit-and-push again when the commit review gave no verdict
|
|
|
|
|
|
security-guidance: use the CA file macOS ships when Python has none
|
|
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
|
|
|
A python.org Python on macOS has no CA certificates until its "Install
Certificates" command is run, so every review from it failed to verify
the API's certificate. Where Python's default TLS context holds no
certificate at all, the plugin now adds /etc/ssl/cert.pem, the file
Apple's own Python uses. Verification is unchanged.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
The commit and push reviews captured, decoded and split the whole
`git show -p` / `git diff` before looking at the number of files. An
import of 5,800 files and 4.6 M lines took 6.4 GB, and the review was
then skipped for its file count.
Read git's output as it arrives and keep what the review uses: the
characters of each file the prompt takes, a count of the added lines
after them, and past the file cut-off only the file names.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
With findings, the critical and high counts could be cut from a full row. They now come with the result. commit_review_on and push_sweep_on, which are always true on a reviewed row, go last instead.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
security-guidance: fewer false edit warnings on ordinary JavaScript
|
|
security-guidance: edit hook no longer waits on App Installer's python alias
|
|
security-guidance: match git commit and push continued on the next line
|
|
security-guidance: custom rule globs can use braces
|
|
A text file whose name or folder says it holds secrets (api_keys.txt,
tokens.txt, secrets/prod.md) was read whole when it was renamed to a code
name. It now stays out of the review, and so does a file that recent commits
renamed from such a name.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
report a failure the push review did not
A message-only amend made while the first review was running counted as
reviewed at once. When that review then failed, a later push reviewed
nothing. The amend now waits for that review.
A failed commit review stayed quiet for the push review of its own command,
which can itself end quietly (a cap, no network, killed). It now waits for
the push review, and reports unless that one got a verdict or told of its
own failure.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
plugins-coding-agents/fiori @ 08afc41d (#7120)
|
|
ANTHROPIC_DEFAULT_OPUS_MODEL is set
The reviewer then runs on the model that variable names, as it does with
SG_AGENTIC_MODEL, so the rule is left out there too.
The tests clear the variables the rule depends on in their shared fixture,
check that the stages ran, and no longer look models up.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
bump(blackrock-advisor-center-plugin): 591c7589 → 736344f8
|
|
Squash merge of 1 commit
|
|
|
|
bump(crowdstrike-falcon-fusion): 38527dc5 → d4e2abf9
|
|
bump(qodo): b8c21854 → 588e413a
|
|
Close every pull request opened by a non-member
|
|
bump(crowdstrike-falcon-foundry): 61572f38 → 90082f82
|
|
Four edit rules matched their word without looking at what stands next to it:
- eval: Playwright's and Puppeteer's page.$eval('selector', function) and
$$eval got the eval() warning. They run the function they are given. Left
out only when the selector is a plain string and the function is written
out in the call. AngularJS scope.$eval(expr) and every other $eval( still
warn.
- new Function: the whole word is needed, so new FunctionRegistry() is quiet.
- innerHTML and outerHTML: an assignment is needed, so == and === are quiet.
Nothing warns that did not warn before.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
git shows no content for a renamed file, so a text or document file renamed
to a code name (notes.txt to payload.py) was never read by the commit and
push reviews. They now read it whole, behind the files they already review
and within a small share of the prompt. Other renames are reviewed as before.
Part of #4852
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
`git \` with `commit` or `push` on the next line started the hook, but the
command patterns only allowed whitespace between the words, so nothing was
reviewed. They now also allow a line continued with a backslash (Bash) or a
backtick (PowerShell).
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
gave no verdict
When one command commits and pushes, the push review left the new commit to
the commit review and ended at once. A commit review that then failed, was
killed or skipped the commit left it pushed and unreviewed, and no later push
covers it.
The push review now waits for the commit review's process to end, and reviews
the pushed range itself when there is no verdict. Both choose the commit
through one helper, so they cannot pick differently.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Only the first 20 keys of a hook's metrics are kept. Commit reviews with findings, and failed reviews that used tokens, often have more, so their time and sometimes their result were lost. The result, kind and time of a review now come first.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
security-guidance: bump version to 2.0.20
|
|
security-guidance: only run git in ordinary checkouts
|
|
On Windows without a packaged Python, python3 under WindowsApps is App
Installer's alias, which is not a Python. The launcher started it on every
hook. Starting it waits for Windows' package services, so while those are
stuck every hook in every session waits with them, and the edit hook had no
time limit of its own: each Edit or Write then took 600 seconds.
- The launcher tells that alias by where its link leads and does not start
it. Which interpreter runs the hook is unchanged. Aliases of a packaged
Python are still probed.
- The edit hook gets a 60 second limit.
Refs #6348, #3870, #6315
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
The reviewer returns its findings through a tool call, and nothing reads
what it writes beside it. With only the file-reading tools it spends much
of the review writing prose before that call.
The investigate stages now get a rule that says so, kept out of the shared
prompt in review_api and left out when thinking is off or the user names
the model, where the text is the reasoning.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
`*.{ts,tsx}` in paths or exclude_paths means either. The number of
combinations is bounded, per glob and over all rules. The README lists
MAX_COMMIT_REVIEWS_PER_HOUR.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
Git before 2.38 has no safe.bareRepository. Check before the prompt and
Stop hooks run git, following the same search git uses to find a
repository, and let a work tree kept elsewhere through core.worktree
through.
Co-authored-by: mhegazy <mhegazy@anthropic.com>
|
|
security-guidance: open the review records and markers through one helper
|
|
|