claude-raid 0.2.2 → 0.2.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-raid",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "type": "commonjs",
5
5
  "description": "Adversarial multi-agent development system for Claude Code",
6
6
  "author": "Pedro Picardi",
@@ -128,14 +128,10 @@ while IFS= read -r line; do
128
128
  fi
129
129
  fi
130
130
 
131
- # Layer 3: Phase consistency
132
- if [ "$entry_type" = "TASK" ]; then
133
- case "${RAID_PHASE:-}" in
134
- design|implementation|review|prd|wrap-up)
135
- issues="${issues}
131
+ # Layer 3: Phase consistency — TASK entries belong in plan or wrap-up phases
132
+ if [ "$entry_type" = "TASK" ] && [ -n "${RAID_PHASE:-}" ] && [ "${RAID_PHASE}" != "plan" ] && [ "${RAID_PHASE}" != "wrap-up" ] && [ "${RAID_PHASE}" != "finishing" ]; then
133
+ issues="${issues}
136
134
  - TASK entries belong in Plan phase, not ${RAID_PHASE}."
137
- ;;
138
- esac
139
135
  fi
140
136
 
141
137
  done < "$RAID_FILE_PATH"
@@ -53,6 +53,12 @@ digraph session {
53
53
  | Review | 3 independent + fighting | 1 review + Wizard | Wizard only |
54
54
  | TDD | **Enforced** | **Enforced** | **Enforced** |
55
55
 
56
+ ## Plan Mode
57
+
58
+ Claude Code's plan mode is incompatible with the Raid. The Raid has its own permission model — `teammateMode` controls agent write access, and hooks enforce phase-based restrictions. Plan mode would block the quest workflow.
59
+
60
+ The Wizard detects plan mode at session start (Step 0 in `raid-init`) and asks the human to exit it before proceeding.
61
+
56
62
  ## Round-Based Interaction
57
63
 
58
64
  Think turn-based RPG, not real-time:
@@ -33,6 +33,16 @@ digraph init {
33
33
  }
34
34
  ```
35
35
 
36
+ ## Step 0: Detect Plan Mode
37
+
38
+ Before anything else, check if you are running in Claude Code's **plan mode**.
39
+
40
+ If plan mode is active, ask the human to exit it before proceeding:
41
+
42
+ > "It looks like we're in **plan mode**. The Raid has its own safety gates — no teammate writes any file without permission, and hooks enforce phase-based restrictions. Plan mode would block the quest from working properly. Please exit plan mode (`/plan` or press Escape) and we'll get started."
43
+
44
+ Do NOT proceed with the quest until plan mode is exited.
45
+
36
46
  ## Step 1: Check for In-Progress Quests
37
47
 
38
48
  Look in `.claude/dungeon/` for existing quest directories. If any exist: