feat(cli): add b2 write — edit a note's body from stdin#72
Conversation
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
|
Warning Review limit reached
Next review available in: 32 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
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 = projectionstays live without a reindex.Model-free like
rmand the desktop save. Refuses an interactive terminal so itnever 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