claude-raid 0.2.11 → 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
|
@@ -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
|
|
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
|
{
|