@cxi-lmai/ci-agent-platform 3.2.0 → 3.2.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cxi-lmai/ci-agent-platform",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Autonomous dev pipeline on plain GitLab CI or GitHub Actions, driven by Claude Code. A labeled issue goes in, an open merge request comes out.",
5
5
  "keywords": [
6
6
  "claude",
@@ -80,20 +80,20 @@ else
80
80
  fi
81
81
  platform_post_comment_file "$REVIEW_COMMENT_FILE"
82
82
 
83
- # 6. Emit metrics.
84
- pipe_metric_event code-reviewer review_findings \
85
- "$(jq -n --argjson t "${FINDINGS_TOTAL:-0}" --arg s "$REVIEW_STATUS" \
86
- --argjson b "$([ "$REVIEW_HAS_BUGS" = "true" ] && echo true || echo false)" \
87
- --argjson inc "$([ "${PIPE_IS_INCREMENTAL:-false}" = "true" ] && echo true || echo false)" \
88
- '{findings_total: $t, status: $s, has_fixable_bugs: $b, is_incremental: $inc}')"
89
-
90
- # 7. Fail the job when no review was produced. The comment above already told
83
+ # 6. Fail the job when no review was produced. The comment above already told
91
84
  # the humans; this tells the pipeline. PIPE_NO_GATE does not apply: it turns
92
85
  # off the verdict gate, and this is a broken run, not a verdict. Without it a
93
86
  # review that never ran (crashed agent, missing ANTHROPIC_API_KEY) reads as a
94
87
  # review that ran and found nothing, and the MR goes green unreviewed.
95
88
  pipe_require_agent_ran "$PIPE_RESULT_REVIEW" "The review agent" || exit 1
96
89
 
90
+ # 7. Emit metrics.
91
+ pipe_metric_event code-reviewer review_findings \
92
+ "$(jq -n --argjson t "${FINDINGS_TOTAL:-0}" --arg s "$REVIEW_STATUS" \
93
+ --argjson b "$([ "$REVIEW_HAS_BUGS" = "true" ] && echo true || echo false)" \
94
+ --argjson inc "$([ "${PIPE_IS_INCREMENTAL:-false}" = "true" ] && echo true || echo false)" \
95
+ '{findings_total: $t, status: $s, has_fixable_bugs: $b, is_incremental: $inc}')"
96
+
97
97
  # 8. Gate. review.env is exported so the fix job can read REVIEW_HAS_BUGS at
98
98
  # runtime. On GitLab the job exits non-zero to block the pipeline. On GitHub
99
99
  # the workflow step owns the gate (it reads the output first), so it sets