@jkwd/inbase 0.1.19 → 0.1.21

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.
@@ -43,8 +43,8 @@ over the recorded diffs.
43
43
  live project files with Write, StrReplace, and Delete for that step only. Then
44
44
  run `inbase propose-patch` with no patch file. Inbase diffs the working tree
45
45
  against the snapshot taken at invoke and stores that patch. A later instruction
46
- replaces the withdrawn step; edit from the accepted live files, not from the
47
- withdrawn proposal. Do not write a unified diff yourself.
46
+ updates that live proposal; edit those files, then propose-patch again. Wait
47
+ for **Accept proposal** before the next step. Do not write a unified diff yourself.
48
48
 
49
49
  The visualizer stores immutable diffs under
50
50
  `.inbase/diff-sessions/<session-id>/diffs/`. Inbase must already be running
@@ -180,11 +180,15 @@ npx inbase wait-for-approval --session "<session-id>"
180
180
  12. Read the wait command output. Reply in chat with the `VISUAL_CODER_ACK`
181
181
  line first, then:
182
182
 
183
- - Exit `0` (`VISUAL_CODER_ACK execute` / `VISUAL_CODER_EXECUTE`): the
184
- highlighted step was invoked. If this is a later step, implement it now —
185
- do not explore, re-plan, or run `wait-for-blueprint`. Re-read the shared
186
- `blueprint.json` if you need placed files. Edit live files for that step
187
- only, record with `inbase propose-patch` (no patch file), then wait again.
183
+ - Exit `0` (`VISUAL_CODER_ACK execute` / `VISUAL_CODER_EXECUTE`): follow
184
+ the printed `VISUAL_CODER_EXECUTE` line. If it says **Update the current
185
+ proposal**, edit those live files, record with `inbase propose-patch` (no
186
+ patch file), then wait again for **Accept proposal**. Do not start the
187
+ next step and do not report a new plan. Otherwise the highlighted step
188
+ was invoked: implement that step now — do not explore, re-plan, or run
189
+ `wait-for-blueprint`. Re-read the shared `blueprint.json` if you need
190
+ placed files. Edit live files for that step only, record with
191
+ `inbase propose-patch` (no patch file), then wait again.
188
192
  - Exit `6` (`VISUAL_CODER_ACK blueprint` / `VISUAL_CODER_BLUEPRINT`): the
189
193
  shared blueprint changed. Follow the latest files, islands, functions,
190
194
  variables, and imports. Do not omit, rename, relocate, or replace them.
@@ -195,19 +199,12 @@ npx inbase wait-for-approval --session "<session-id>"
195
199
  stored session diffs. The shared blueprint remains. Optionally run
196
200
  `--clear` if anything remains, tell the user the feature is done, and
197
201
  **stop**. Do not propose another patch.
198
- - Exit `4` (`VISUAL_CODER_ACK replan` / `VISUAL_CODER_REPLAN`): do **not**
199
- edit project files and do not rewrite an earlier accepted patch. The
200
- withdrawn proposal is no longer live; disk is baseline + accepted patch
201
- files. Follow the text between `VISUAL_CODER_INSTRUCTION_START` and
202
- `VISUAL_CODER_INSTRUCTION_END`, read the shared `blueprint.json` when
203
- it is enabled (files, islands, `addedFunctions`, `addedVariables`,
204
- `addedImports`). The blueprint stays leading. If the new instruction would
205
- differ from it, ask the user before replacing the plan. Read
206
- `user-context.json` (follow the viewpoint only if `followLook` is true),
207
- replace the plan from the current step onward using `inbase report-plan`,
208
- then wait for the next `VISUAL_CODER_EXECUTE` before editing again. The
209
- replacement edits must sit on the accepted live files, not the withdrawn
210
- proposal.
202
+ - Exit `4` (`VISUAL_CODER_ACK replan` / `VISUAL_CODER_REPLAN`): live files
203
+ still contain the current proposal. Do not reset them and do not report a
204
+ new plan. Follow the text between `VISUAL_CODER_INSTRUCTION_START` and
205
+ `VISUAL_CODER_INSTRUCTION_END`, edit those live files, then
206
+ `inbase propose-patch`. Wait for **Accept proposal**. Do not start the
207
+ next step.
211
208
  - Exit `2` (`VISUAL_CODER_ACK stopped` / `VISUAL_CODER_STOPPED`) or `3`
212
209
  (`VISUAL_CODER_ACK timeout`): make no further project changes.
213
210