@rayburst/cc 1.0.23 → 1.0.24
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/commands/rb/implement.md +18 -14
- package/package.json +1 -1
package/commands/rb/implement.md
CHANGED
|
@@ -52,11 +52,14 @@ Examples:
|
|
|
52
52
|
|
|
53
53
|
Before anything else, check if a previous `rb:implement` session was interrupted:
|
|
54
54
|
|
|
55
|
-
1. Run `
|
|
56
|
-
2. If
|
|
57
|
-
- If
|
|
58
|
-
- If
|
|
59
|
-
3. If
|
|
55
|
+
1. Run `ls .claude/rb-sessions/*.md 2>/dev/null` (via Bash).
|
|
56
|
+
2. **If a `cardId` was passed as input**, check for `.claude/rb-sessions/<cardId>.md` specifically:
|
|
57
|
+
- If it exists, read it and follow the `## Resume Instructions` section exactly.
|
|
58
|
+
- If it does not exist but other session files are present, proceed normally from Step 1 (start fresh for this card).
|
|
59
|
+
3. **If no `cardId` was passed** and session files exist:
|
|
60
|
+
- If exactly one file: read it and follow its `## Resume Instructions` exactly.
|
|
61
|
+
- If multiple files: read each to get `sessionTitle` and `cardId`, list them to the user, and ask which to resume.
|
|
62
|
+
4. If no session files exist, proceed normally from Step 1.
|
|
60
63
|
|
|
61
64
|
---
|
|
62
65
|
|
|
@@ -183,7 +186,8 @@ Before entering plan mode, move the card so the board reflects active work:
|
|
|
183
186
|
Then **immediately** write an early session file so the card ID and intent survive a `/clear` or context compaction that might happen during plan approval:
|
|
184
187
|
|
|
185
188
|
```bash
|
|
186
|
-
|
|
189
|
+
mkdir -p .claude/rb-sessions
|
|
190
|
+
cat > .claude/rb-sessions/<cardId>.md << 'RBEOF'
|
|
187
191
|
# rb:implement Session
|
|
188
192
|
|
|
189
193
|
## Session Info
|
|
@@ -213,7 +217,7 @@ IMPORTANT: You are resuming an interrupted `rb:implement` session. Context was c
|
|
|
213
217
|
`<MCP_PREFIX>move_card({ cardId: "<cardId>", status: "validation" })`
|
|
214
218
|
5. Post an implementation summary comment:
|
|
215
219
|
`<MCP_PREFIX>add_comment({ cardId: "<cardId>", content: "## Implementation Complete\n\nReady for QA validation.\n\n### What was built\n<brief summary>\n\n### Files changed\n- <file>\n\n### Criteria coverage\n- <criterion>: satisfied via <explanation>" })`
|
|
216
|
-
6. Delete this session file: `rm .claude/rb-
|
|
220
|
+
6. Delete this session file: `rm .claude/rb-sessions/<cardId>.md`
|
|
217
221
|
7. Print: "## Implementation Complete: <card title>\n\nCard ID: <cardId>\nStatus: → validation\n\nRun /rb:validate-card <cardId> to run QA validation."
|
|
218
222
|
RBEOF
|
|
219
223
|
```
|
|
@@ -293,10 +297,10 @@ Keep the comment under 5000 characters. Use plain markdown prose — no raw code
|
|
|
293
297
|
|
|
294
298
|
**Immediately after posting the plan comment**, update the session file — BEFORE writing any code. The early session file from Step 4 already exists; overwrite it now with the post-approval state so the resume instructions reflect that the plan is approved:
|
|
295
299
|
|
|
296
|
-
Overwrite `.claude/rb-
|
|
300
|
+
Overwrite `.claude/rb-sessions/<cardId>.md` with the execution context:
|
|
297
301
|
|
|
298
302
|
```bash
|
|
299
|
-
cat > .claude/rb-
|
|
303
|
+
cat > .claude/rb-sessions/<cardId>.md << 'RBEOF'
|
|
300
304
|
# rb:implement Session
|
|
301
305
|
|
|
302
306
|
## Session Info
|
|
@@ -326,7 +330,7 @@ IMPORTANT: You are resuming an interrupted `rb:implement` session. The plan was
|
|
|
326
330
|
`<MCP_PREFIX>move_card({ cardId: "<cardId>", status: "validation" })`
|
|
327
331
|
5. Post an implementation summary comment:
|
|
328
332
|
`<MCP_PREFIX>add_comment({ cardId: "<cardId>", content: "## Implementation Complete\n\nReady for QA validation.\n\n### What was built\n<brief summary>\n\n### Files changed\n- <file>\n\n### Criteria coverage\n- <criterion>: satisfied via <explanation>" })`
|
|
329
|
-
6. Delete this session file: `rm .claude/rb-
|
|
333
|
+
6. Delete this session file: `rm .claude/rb-sessions/<cardId>.md`
|
|
330
334
|
7. Print: "## Implementation Complete: <card title>\n\nCard ID: <cardId>\nStatus: → validation\n\nRun /rb:validate-card <cardId> to run QA validation."
|
|
331
335
|
RBEOF
|
|
332
336
|
```
|
|
@@ -348,12 +352,12 @@ Switch to execute mode. Work through the implementation:
|
|
|
348
352
|
cd rayburst-api && npm run check
|
|
349
353
|
```
|
|
350
354
|
|
|
351
|
-
**At each major phase boundary** (e.g., after backend is complete, before starting frontend), rewrite `.claude/rb-
|
|
355
|
+
**At each major phase boundary** (e.g., after backend is complete, before starting frontend), rewrite `.claude/rb-sessions/<cardId>.md` with an updated `currentPhase` that contains the exact next action. Do NOT just sed one line — rewrite the whole file so the Resume Instructions stay complete. The `currentPhase` value should be precise enough that after compaction you know exactly what code to write next. Examples:
|
|
352
356
|
- `Frontend phase — implement /legacy route in src/routes/legacy/index.tsx`
|
|
353
357
|
- `Wrap-up — all todos done, next: move card to validation and post summary comment`
|
|
354
358
|
|
|
355
359
|
```bash
|
|
356
|
-
cat > .claude/rb-
|
|
360
|
+
cat > .claude/rb-sessions/<cardId>.md << 'RBEOF'
|
|
357
361
|
# rb:implement Session
|
|
358
362
|
|
|
359
363
|
## Session Info
|
|
@@ -382,7 +386,7 @@ IMPORTANT: You are resuming an interrupted `rb:implement` session. Context was c
|
|
|
382
386
|
`<MCP_PREFIX>move_card({ cardId: "<cardId>", status: "validation" })`
|
|
383
387
|
4. Post an implementation summary comment:
|
|
384
388
|
`<MCP_PREFIX>add_comment({ cardId: "<cardId>", content: "## Implementation Complete\n\nReady for QA validation.\n\n### What was built\n<brief summary>\n\n### Files changed\n- <file>\n\n### Criteria coverage\n- <criterion>: satisfied via <explanation>" })`
|
|
385
|
-
5. Delete this session file: `rm .claude/rb-
|
|
389
|
+
5. Delete this session file: `rm .claude/rb-sessions/<cardId>.md`
|
|
386
390
|
6. Print: "## Implementation Complete: <card title>\n\nCard ID: <cardId>\nStatus: → validation\n\nRun /rb:validate-card <cardId> to run QA validation."
|
|
387
391
|
RBEOF
|
|
388
392
|
```
|
|
@@ -409,7 +413,7 @@ Move the card to `validation` status and delete the session file:
|
|
|
409
413
|
```
|
|
410
414
|
|
|
411
415
|
```bash
|
|
412
|
-
rm -f .claude/rb-
|
|
416
|
+
rm -f .claude/rb-sessions/<cardId>.md
|
|
413
417
|
```
|
|
414
418
|
|
|
415
419
|
Post a brief implementation summary comment:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rayburst/cc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Rayburst slash commands for Claude Code — /rb:init, /rb:plan, /rb:sync, /rb:status, /rb:validate-feature, /rb:validate-card, /rb:implement, /rb:discover",
|
|
5
5
|
"bin": {
|
|
6
6
|
"rayburst-cc": "bin/install.js"
|