Skip to content

PlanBefore v0.7.0

Latest

Choose a tag to compare

@kevincoder91 kevincoder91 released this 14 Oct 20:30

Highlights

  • Edit part of a planning document without rewriting it. A new
    spec.patch call lets your planner change one section of an existing
    Markdown spec (requirement, tasks, progress, review) inside your project's
    spec directory, instead of sending the whole file back. It can append to the
    end of the document, insert before or after a section, or replace a
    section's body while keeping its heading. Sections are picked by their exact
    heading, optionally with its level and parent headings. If no section or
    more than one matches, the edit fails; the Node never guesses.
  • No lost edits. Every spec.patch carries the version of the file the
    planner read. If the file changed since then, for example because another
    conversation edited it, nothing is written and the planner is told to read
    it again. All the changes in one call are applied together or not at all.
  • Large documents stay intact. file.read and file.read_batch now
    return a sha256 of the whole file, even when only a few lines were read or
    the read was cut short. A planner can read just the section it needs and
    patch it, and the parts it never read are left byte for byte as they were.
  • Same limits as before. spec.patch only edits existing .md files in
    the project's spec directory, never follows symlinks, respects your excluded
    paths and the spec size limit, and writes atomically, exactly like
    spec.write. It never creates files; spec.write still creates and fully
    replaces documents.

Fixes

  • A request the Node rejects on purpose (for example reading a file that does
    not exist) is no longer logged as an internal error; the log shows its
    reason code instead.

Upgrade notes

Run the install command again, then restart the Node:
pbnode stop && pbnode serve --background.

Until a Node is updated, spec.patch on its projects fails with
unknown_method; everything else keeps working. Reconnect or refresh
PlanBefore in your planner app so it picks up the new tool.


Install

macOS / Linux:

curl -fsSL https://planbefore.kvnlabs.xyz/install.sh | REPOFLOW_VERSION=v0.7.0 sh

Windows (PowerShell):

$env:REPOFLOW_VERSION = 'v0.7.0'; irm https://planbefore.kvnlabs.xyz/install.ps1 | iex

Both installers verify the SHA-256 of the download against checksums.txt.
Manual installation, requirements (git, rg) and first steps:
https://planbefore.kvnlabs.xyz/install

The binaries are not code-signed yet; macOS and Windows may show a warning
for files downloaded with a browser. See the installation guide.