Repository navigation
release: autter 3.14.0 + VS Code extension 0.2.0 — autter findings, autter review, findings in the editor - #110
Merged
Merged
Conversation
… in VS Code
`autter findings` reads GET /api/cli/orgs/:slug/findings for the current
branch's open pull request (or --branch / --pr) with the sign-in and org
choice of `autter ask`, and prints the findings most severe first.
Findings are anchored to the commit the review ran on. The command runs
`git diff -U0 --no-renames <reviewed sha>` against the working tree and
moves each line by the lines added or removed above it; a finding whose
own line changed since the review is reported as `changed` with no line,
so nothing points at code the review never saw. A missing reviewed commit
is fetched from refs/pull/<n>/head without credential prompts (30 s cap,
--no-fetch skips it); otherwise findings are `unverified`.
--write keeps .autter/findings.md (summary, location, next steps, link,
grouped into in-your-code / changed-since-review / about-the-PR) and adds
/.autter/ to .git/info/exclude. The file carries no run time, so it only
changes when the findings do. --json adds `local: {status, line}` per
finding.
VS Code extension: a FindingsManager runs `autter findings --json --write`
on startup, on save (debounced), on branch change, on focus and every
5 minutes, and shows findings as diagnostics (Problems + squiggles) with
an optional after-line annotation (autter.findings.display). Placements
follow edits until the next save; editing a finding's line drops it.
Quick fixes copy a fix prompt, open the finding in the dashboard or
dismiss it. The status bar shows the count, or "Sign in", which runs
`autter login` in a terminal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TtUpr8sH39LAcxNTh4QreC
`autter review [<path>...] [--base <ref> | --uncommitted] [--write] [--json]` sends what a PR from this branch would contain — the diff from the merge base with the default branch (origin/HEAD, else main/master) to the working tree, untracked files included — to POST /api/cli/orgs/:slug/review, and reads the streamed JSON lines for the result. Up to 60 files / 3 MB; files over 200 KB go as a patch only. Each reviewed file is written to the object DB first (`git hash-object -w --stdin-paths`) and its content read back from that blob, so the review and later line mapping see the same bytes. The result and the blob ids are kept in .autter/local-review.json. `autter findings` now attaches it as `localReview` for the branch it was made on, placing each finding by diffing the reviewed blob against the file now (moved / changed / file_deleted), the same rule as PR findings: nothing is shown on a line the review didn't see. findings.md now has a "Pull request review" and a "Local review" section; items are separated by one blank line; a no-PR branch points to `autter review`. VS Code: "Autter: Review My Changes" saves all files, runs `autter review --json --write` under a cancellable progress notification, then refreshes; local findings are placed with the PR's, labelled "local review" in the Problems code and the inline annotation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TtUpr8sH39LAcxNTh4QreC
Cargo.toml / Cargo.lock 3.12.0 → 3.13.0 so tag-release tags v3.13.0 on merge. CHANGELOG entry for `autter findings` and `autter review`. VS Code extension 0.1.25 → 0.2.0 with a CHANGELOG entry. Its package-lock.json was out of sync with package.json (dependency bumps since 0.1.25 never reached it), which fails `npm ci` in the publish workflow; refreshed with `npm install --package-lock-only`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TtUpr8sH39LAcxNTh4QreC
… 3.14.0 main released 3.13.0 (autter tests, #111), so this branch's release is 3.14.0: Cargo.toml / Cargo.lock bumped, the findings/review entries moved into a new [3.14.0] CHANGELOG section, and the VS Code extension 0.2.0 now names autter 3.14.0 as its minimum. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TtUpr8sH39LAcxNTh4QreC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CLI and VS Code half of "Findings in the editor": developers had to switch to the dashboard to see findings, and only learned of issues once a PR existed. Needs the backend from Autter-dev/autter-monorepo#774 deployed first.
Release: bumps
Cargo.toml/Cargo.lockto 3.14.0 (main already shipped 3.13.0 withautter tests), with a[3.14.0]CHANGELOG section. On merge,tag-release.ymltagsv3.14.0andrelease.ymlpublishes. The VS Code extension goes to 0.2.0; publishing it needs avscode-v0.2.0tag on the merge commit.autter findings(Phase 1)Prints the findings of the current branch's open PR, from
GET /api/cli/orgs/:slug/findings, usingautter ask's sign-in and org choice.--branchand--prpick another PR.Line numbers follow the developer's edits:
git diff -U0 --no-renames <reviewed sha>against the working tree and moves each line by the lines added or removed above it.changed, with no line, so nothing points at code the review never saw.refs/pull/<n>/head, never prompting for credentials and capped at 30 s.--no-fetchskips this. If it's still missing, findings are reported asunverified.Output:
--writekeeps.autter/findings.mdup to date: a summary, location, next steps and link for each finding. It adds/.autter/to.git/info/exclude, and the file only changes when the findings do.--jsonaddslocal: {status, line}to each finding.autter review(Phase 2)Reviews what a PR from this branch would contain before one exists: the diff from the merge base with the default branch, committed or not, untracked files included. Also accepts
--uncommitted,--base <ref>or paths.POST /api/cli/orgs/:slug/review, which streams JSON lines. Up to 60 files and 3 MB; files over 200 KB go as a patch only..autter/local-review.jsonkeeps the result and the blob ids.autter findingsattaches the saved review aslocalReviewfor the branch it was made on, and places each finding by diffing the reviewed blob against the file as it is now. Same rule as PR findings.VS Code extension 0.2.0
autter.findings.display:inline,problemsoroff.autter loginin a terminal.autter review --json --writeunder a cancellable progress notification. Local findings are labelled "local review".package-lock.jsonwas out of sync withpackage.json(dependency bumps since 0.1.25), which would failnpm ciin the publish workflow. Refreshed withnpm install --package-lock-only.Testing
--line and C-quoted pathsgit diffoutputhelp_flag_safetyintegration tests pass with the new commands, before and after mergingmain. Clippy with--all-targets -D warningsis clean for these changes; this toolchain (1.97) also reports lints in files this PR doesn't touch.rustfmt --checkpasses on the changed files..autter/excluded from gitmoved,changed,file_deleted)tscandeslintare clean, and 6 mocha tests cover the model: output parsing, placement, edit tracking and status text.🤖 Generated with Claude Code
https://claude.ai/code/session_01TtUpr8sH39LAcxNTh4QreC