claude-raid 0.2.10 → 0.2.12

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.10",
3
+ "version": "0.2.12",
4
4
  "type": "commonjs",
5
5
  "description": "Adversarial multi-agent development system for Claude Code",
6
6
  "author": "Pedro Picardi",
@@ -11,15 +11,14 @@ const RAID_PERMISSIONS = [
11
11
  'Read',
12
12
  'Glob',
13
13
  'Grep',
14
- 'Bash',
15
- 'Write',
16
- 'Edit',
17
- 'Write(.claude/**)',
18
- 'Edit(.claude/**)',
19
- 'Bash(mkdir -p */.claude/*)',
20
- 'Bash(mkdir -p .claude/*)',
21
- 'Bash(mv .claude/*)',
22
- 'Bash(jq * .claude/raid-session *)',
14
+ 'Bash(*)',
15
+ 'Write(*)',
16
+ 'Edit(*)',
17
+ 'Agent',
18
+ 'SendMessage',
19
+ 'TaskCreate',
20
+ 'TaskUpdate',
21
+ 'TeamCreate',
23
22
  ];
24
23
 
25
24
  const RAID_HOOK_MARKER = '#claude-raid';
@@ -15,6 +15,11 @@ if [ "$RAID_LIFECYCLE_SESSION" != "true" ]; then
15
15
  exit 0
16
16
  fi
17
17
 
18
+ # Guard: only run if the session has a quest ID (not a stale or partial session)
19
+ if [ -z "$RAID_QUEST_ID" ]; then
20
+ exit 0
21
+ fi
22
+
18
23
  # Determine quest directory
19
24
  QUEST_DIR=$(raid_quest_dir)
20
25
 
@@ -102,17 +107,14 @@ if [ -d "$RAID_PLANS_PATH" ]; then
102
107
  fi
103
108
  fi
104
109
 
105
- # --- Cleanup session artifacts ---
110
+ # --- Cleanup session file only ---
111
+ # The quest dungeon is preserved (archived to vault draft above).
112
+ # The Wizard handles full dungeon cleanup during Phase 6 (wrap-up).
113
+ # Never delete the quest directory here — a non-Wizard session ending
114
+ # (heal, update, or a regular claude session) must not destroy quest work.
106
115
  rm -f .claude/raid-session
107
- rm -rf "$QUEST_DIR"
108
116
  rm -f .claude/raid-last-test-run
109
117
 
110
- # Backward compat: clean up old flat dungeon files if they exist
111
- rm -f .claude/raid-dungeon.md
112
- rm -f .claude/raid-dungeon-phase-*.md
113
- rm -f .claude/raid-dungeon-backup.md
114
- rm -f .claude/raid-dungeon-phase-*-backup.md
115
-
116
118
  # --- Output additionalContext ---
117
119
  cat <<ENDJSON
118
120
  {