@memnexus-ai/mx-agent-cli 0.1.211 → 0.1.212
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.
|
@@ -39,6 +39,14 @@ fi
|
|
|
39
39
|
git fetch origin main
|
|
40
40
|
GIT_EXPERT=1 git reset --hard origin/main
|
|
41
41
|
|
|
42
|
+
# Phase 4 guard: if .claude/settings.json vanished after reset (first rebase
|
|
43
|
+
# across the Phase 4 flip that untracked .claude/), regenerate it now so the
|
|
44
|
+
# session keeps working. This is a one-time migration per worktree.
|
|
45
|
+
if [ ! -f ".claude/settings.json" ]; then
|
|
46
|
+
echo "Phase 4 migration: .claude/ missing after rebase — regenerating from agent-config source..."
|
|
47
|
+
node mx-agent-system/cli/scripts/generate-claude.mjs --repo-root "$PWD" 2>&1 || echo "WARN: generator failed — run 'mx-agent start' to recover."
|
|
48
|
+
fi
|
|
49
|
+
|
|
42
50
|
# Restore ONLY our own stash, addressed by SHA — never a positional pop.
|
|
43
51
|
if [ -n "$STASH_SHA" ]; then
|
|
44
52
|
if GIT_EXPERT=1 git stash apply "$STASH_SHA"; then
|