@memnexus-ai/mx-agent-cli 0.1.211 → 0.1.213
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.
|
@@ -423,6 +423,26 @@ if [[ -z "$CHANGED_FILES" ]]; then
|
|
|
423
423
|
exit 0 # No changed files detected — nothing to validate
|
|
424
424
|
fi
|
|
425
425
|
|
|
426
|
+
# ── Dev-log required-sections check (advisory — warn, not block) ─────────────
|
|
427
|
+
# v2.60 (#4385): iteration dev-logs must contain Prior Art, Results, Gate
|
|
428
|
+
# reviews, and Known Issues sections. This check warns on push but does NOT
|
|
429
|
+
# block — advisory for the first iteration so teams can adapt.
|
|
430
|
+
DEVLOG_SCRIPT="$REPO_ROOT/dev-tools/scripts/validate-devlog-sections.sh"
|
|
431
|
+
if [[ -f "$DEVLOG_SCRIPT" ]]; then
|
|
432
|
+
DEVLOG_FILES=$(printf '%s\n' "$CHANGED_FILES" | grep -E '^product/dev-log/.*/v.*\.md$' || true)
|
|
433
|
+
if [[ -n "$DEVLOG_FILES" ]]; then
|
|
434
|
+
DEVLOG_PATHS=""
|
|
435
|
+
while IFS= read -r df; do
|
|
436
|
+
[[ -z "$df" ]] && continue
|
|
437
|
+
DEVLOG_PATHS="$DEVLOG_PATHS $REPO_ROOT/$df"
|
|
438
|
+
done <<< "$DEVLOG_FILES"
|
|
439
|
+
# shellcheck disable=SC2086
|
|
440
|
+
if ! bash "$DEVLOG_SCRIPT" $DEVLOG_PATHS 2>&1; then
|
|
441
|
+
echo "ci-validate: NOTE — dev-log section check found issues (advisory, not blocking push)." >&2
|
|
442
|
+
fi
|
|
443
|
+
fi
|
|
444
|
+
fi
|
|
445
|
+
|
|
426
446
|
# ── Load the package→validate-script routing table ───────────────────────────
|
|
427
447
|
# The map lives in ci-validate-routes.conf alongside this hook (portable projects
|
|
428
448
|
# ship their own). Format: <path-prefix-glob>|<validate-script>|<label>, one rule
|
|
@@ -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
|