@memnexus-ai/mx-agent-cli 0.1.212 → 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
|