Skip to content

feat(cli): add b2 write — edit a note's body from stdin#72

Merged
samkeen merged 1 commit into
mainfrom
claude/github-issues-review-d6vify
Jul 22, 2026
Merged

feat(cli): add b2 write — edit a note's body from stdin#72
samkeen merged 1 commit into
mainfrom
claude/github-issues-review-d6vify

Conversation

@samkeen

@samkeen samkeen commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

A thin adapter over the existing Vault::write (byte-honest body splice +
re-projection), the CLI/agent counterpart to the desktop editor's save. Reads
the new body from stdin, leaves the frontmatter (b2id, b2_relations:) untouched,
and re-projects the note so index = projection stays live without a reindex.

Model-free like rm and the desktop save. Refuses an interactive terminal so it
never hangs waiting for hand-typed input; a stateless one-shot reads the current
on-disk revision and chains the write on it (no external-edit window to guard —
the content-hash guard is there for the desktop's long-lived buffer).

Closes item 3 of #69 (CLI b2 write).

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_018soWgUw3jvLDH6YYE3HXQA

A thin adapter over the existing `Vault::write` (byte-honest body splice +
re-projection), the CLI/agent counterpart to the desktop editor's save. Reads
the new body from stdin, leaves the frontmatter (b2id, b2_relations:) untouched,
and re-projects the note so `index = projection` stays live without a reindex.

Model-free like `rm` and the desktop save. Refuses an interactive terminal so it
never hangs waiting for hand-typed input; a stateless one-shot reads the current
on-disk revision and chains the write on it (no external-edit window to guard —
the content-hash guard is there for the desktop's long-lived buffer).

Closes item 3 of #69 (CLI `b2 write`).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018soWgUw3jvLDH6YYE3HXQA
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@samkeen, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 32 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 67affb43-510c-4278-b117-da2547655093

📥 Commits

Reviewing files that changed from the base of the PR and between 8e5637b and b2d771a.

📒 Files selected for processing (2)
  • crates/b2-cli/src/main.rs
  • crates/b2-cli/tests/cli.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/github-issues-review-d6vify

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@samkeen
samkeen merged commit b69986b into main Jul 22, 2026
1 check passed
@samkeen
samkeen deleted the claude/github-issues-review-d6vify branch July 22, 2026 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants