@jkwd/inbase 0.1.5 → 0.1.7
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 +4 -1
- package/apps/explorer/scripts/patch-lib.d.ts +13 -0
- package/apps/explorer/scripts/patch-lib.mjs +162 -25
- package/apps/explorer/scripts/session-store.d.ts +18 -1
- package/apps/explorer/scripts/session-store.mjs +102 -26
- package/apps/explorer/src/App.tsx +153 -3
- package/apps/explorer/src/agentIntent.ts +9 -0
- package/apps/explorer/src/index.css +103 -11
- package/apps/explorer/src/layout.ts +65 -1
- package/apps/explorer/src/scene/Bridge.tsx +23 -5
- package/apps/explorer/src/scene/FileBlock.tsx +13 -9
- package/apps/explorer/src/scene/FolderArea.tsx +18 -12
- package/apps/explorer/src/scene/MapView.tsx +69 -12
- package/apps/explorer/src/scene/Player.tsx +9 -1
- package/apps/explorer/src/scene/SelectionController.tsx +36 -13
- package/apps/explorer/src/scene/SelectionThumbnail.tsx +477 -33
- package/apps/explorer/src/scene/World.tsx +27 -10
- package/apps/explorer/src/theme.ts +10 -3
- package/apps/explorer/src/types.ts +5 -0
- package/apps/explorer/src/ui/HUD.tsx +294 -37
- package/apps/explorer/vite.config.ts +11 -1
- package/bin/session.mjs +18 -6
- package/package.json +1 -1
- package/skill/inbase/SKILL.md +13 -8
package/skill/inbase/SKILL.md
CHANGED
|
@@ -14,10 +14,13 @@ Skip it for git, lockfiles, `.inbase`, `.cursor`, or questions with no code
|
|
|
14
14
|
changes.
|
|
15
15
|
|
|
16
16
|
The LLM uses a plan-first loop. It reports the complete plan before writing a
|
|
17
|
-
patch, waits for the user to invoke the
|
|
18
|
-
step's diff, then waits for **Run step**
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
patch. When **Step by step** is on, it waits for the user to invoke the
|
|
18
|
+
highlighted step, publishes only that step's diff, then waits for **Run step**
|
|
19
|
+
on the following step or an alternative instruction. When **Step by step** is
|
|
20
|
+
off, `inbase wait-for-approval` returns `VISUAL_CODER_EXECUTE` for every
|
|
21
|
+
remaining step without the user clicking Run step; after the last patch, wait
|
|
22
|
+
for the user to **Complete**. They can still walk Previous/Next over the diffs.
|
|
23
|
+
Always work via patch files. Do not Write, StrReplace, or Delete project files.
|
|
21
24
|
|
|
22
25
|
Every Cursor chat has an explicit session ID. Pass that same ID to every
|
|
23
26
|
command. The visualizer stores immutable diffs under `.inbase/diff-sessions/<session-id>/diffs/`.
|
|
@@ -88,7 +91,8 @@ npx inbase report-plan \
|
|
|
88
91
|
npx inbase wait-for-approval --session "<current-cursor-chat-id>"
|
|
89
92
|
```
|
|
90
93
|
|
|
91
|
-
Do not write a patch until this prints `VISUAL_CODER_EXECUTE`.
|
|
94
|
+
Do not write a patch until this prints `VISUAL_CODER_EXECUTE`. If Step by
|
|
95
|
+
step is off, this returns immediately for each remaining step.
|
|
92
96
|
9. Implement only the invoked step as a unified diff. Paths are relative to the
|
|
93
97
|
project root (same ids as `codebase.json`):
|
|
94
98
|
|
|
@@ -121,8 +125,9 @@ npx inbase propose-patch \
|
|
|
121
125
|
stored in the session folder.
|
|
122
126
|
|
|
123
127
|
10. **Stop.** Do not apply the patch and do not edit project files directly.
|
|
124
|
-
11. Wait until the user clicks **Run step** on the next step,
|
|
125
|
-
|
|
128
|
+
11. Wait until the user clicks **Run step** on the next step (or, when Step by
|
|
129
|
+
step is off, until the next step is auto-invoked), sends an alternative
|
|
130
|
+
instruction, clicks **Complete** on the last step, or stops the workflow:
|
|
126
131
|
|
|
127
132
|
```bash
|
|
128
133
|
npx inbase wait-for-approval --session "<current-cursor-chat-id>"
|
|
@@ -169,7 +174,7 @@ npx inbase propose-patch --session "<current-cursor-chat-id>" --clear
|
|
|
169
174
|
- Write, edit, create, or delete project files directly
|
|
170
175
|
- Announce file lists instead of a patch
|
|
171
176
|
- Write a patch before its plan step is invoked
|
|
172
|
-
- Propose the next step before
|
|
177
|
+
- Propose the next step before `inbase wait-for-approval` returns `VISUAL_CODER_EXECUTE`
|
|
173
178
|
- Propose another patch after `VISUAL_CODER_FINISHED`
|
|
174
179
|
- Reuse, overwrite, or expand an existing session diff
|
|
175
180
|
- Use this flow for git, lockfiles, or other non-source work
|