@invariant.guru/cli 0.6.3 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -166,15 +166,20 @@ invariant plan:complete <session-id> --summary "Booking command + tests"
166
166
  Composes a *review session*: a second session whose job is to review the branch
167
167
  and write the result into `doc/review/<branch>.xml`.
168
168
 
169
- A review is a verdict **on** something, so it always names the session whose
170
- work is under review `--session` is required. Without it the command refuses
171
- and lists the sessions it could have reviewed.
169
+ A review says what it is about, and one of the two forms is required. Without
170
+ either the command refuses and lists the sessions it could have reviewed —
171
+ which is what stops a review ending up attached to nothing by accident.
172
172
 
173
173
  ```bash
174
174
  invariant review --session <session-id> # review the work that session produced
175
- invariant review --session <id> --base origin/develop # diff against something else
175
+ invariant review --standalone # review this branch on its own
176
+ invariant review --standalone --base origin/develop # diff against something else
176
177
  ```
177
178
 
179
+ `--standalone` is for work no session of yours covers: pull a colleague's
180
+ branch, review it, and get the same triage flow with nothing of your own behind
181
+ it.
182
+
178
183
  Paste its execute line into a **new** agent conversation. That is the point: a
179
184
  fresh one has not seen the plan, so it reads the diff as evidence rather than as
180
185
  confirmation. It reviews exactly `git diff --cached $(git merge-base <base> HEAD)`
@@ -453,7 +458,8 @@ waits for you to rule on every comment, and then implements the ones you
453
458
  accepted — one file, one conversation.
454
459
 
455
460
  ```bash
456
- invariant review --session <session-id> # the session whose work is reviewed (required)
461
+ invariant review --session <session-id> # the session whose work is reviewed
462
+ invariant review --standalone # a branch tied to no session
457
463
  invariant review --session <id> --base origin/develop # diff against another ref
458
464
  invariant review list # every review document
459
465
  invariant review show <branch> --open # what still needs a decision
@@ -469,7 +475,8 @@ invariant review plan-changes <branch> # accepted comments → the sessi
469
475
 
470
476
  | Option | Description |
471
477
  |--------|-------------|
472
- | `-s, --session <session>` | The plan session whose work is under review (**required**) |
478
+ | `-s, --session <session>` | The plan session whose work is under review |
479
+ | `--standalone` | Review this branch on its own, tied to no session |
473
480
  | `-b, --base <ref>` | Ref to diff against (default: `origin/main`, then `origin/master`, `main`, `master`) |
474
481
 
475
482
  Reviews land in `doc/review/<branch>.xml`, one file per branch, appended to on