@chenmk/superflow 0.5.19 → 0.5.20

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.
@@ -78,14 +78,14 @@ if [ "$SDD_ACTIVE" -eq 0 ]; then
78
78
  if [ "$archived" != "true" ] && { [ "$phase" = "implement" ] || [ "$phase" = "verify" ]; }; then
79
79
  printf '%s\n' "$state"
80
80
  fi
81
- done | head -n 1)
81
+ done | sed -n '1p')
82
82
  if [ -n "$ACTIVE_STATE" ]; then
83
83
  SDD_ACTIVE=1
84
84
  fi
85
85
  fi
86
86
 
87
- RUNTIME_CHANGED=$(printf '%s\n' "$CHANGED" | grep -E \
88
- '(^|/)src/main/.*\.(java|xml|yml|yaml|properties)$|(^|/)mapper/.*\.xml$|(^|/)sql/.*\.sql$' || true)
87
+ SQL_RUNTIME_CHANGED=$(printf '%s\n' "$CHANGED" | grep -E \
88
+ '(^|/)sql/.*\.sql$' || true)
89
89
 
90
90
  CODE_RUNTIME_CHANGED=$(printf '%s\n' "$CHANGED" | grep -E \
91
91
  '(^|/)src/main/.*\.(java|xml|yml|yaml|properties)$|(^|/)mapper/.*\.xml$' || true)
@@ -245,7 +245,9 @@ for report in $REPORTS; do
245
245
  fi
246
246
  done
247
247
 
248
- if [ -n "$RUNTIME_CHANGED" ] && [ -z "$REPORTS" ]; then
248
+ if { [ -n "$CODE_RUNTIME_CHANGED" ] \
249
+ || { [ -n "$SQL_RUNTIME_CHANGED" ] && [ -n "$SDD_DOCS_CHANGED" ]; }; } \
250
+ && [ -z "$REPORTS" ]; then
249
251
  fail "检测到运行时代码/SQL 变更,但本次提交没有 staged 当前任务的 test-report.md"
250
252
  fi
251
253
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chenmk/superflow",
3
- "version": "0.5.19",
3
+ "version": "0.5.20",
4
4
  "description": "SuperBridge Flow workflow CLI for Claude Code and Codex",
5
5
  "license": "MIT",
6
6
  "type": "module",