@plainconceptsplatform/workflows 1.21.3 → 1.21.4

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.
@@ -1946,6 +1946,11 @@ fi
1946
1946
  if worker_installed implement && ! grep -qF 'cannot run as a subagent' "$IMPLEMENT_WORKER_MD"; then
1947
1947
  LEAD_OK=0; echo "FAIL: the implement prompt must stop at a planner-sub spawn error instead of retrying other agents" >&2
1948
1948
  fi
1949
+ # gh-aw strips HTML comments from safe-output comments, so the refine marker never reaches GitHub: the
1950
+ # router's auto-accept found no questions anywhere until it matched refine's visible prefix as well.
1951
+ if ! grep -qF 'contains($prefix)' "$ROUTER_YML" || ! grep -qF 'REFINE_PREFIX: "Refinement update"' "$ROUTER_YML"; then
1952
+ LEAD_OK=0; echo "FAIL: the refine auto-accept must find the questions by refine's visible prefix, not only the stripped marker" >&2
1953
+ fi
1949
1954
  if [ "$LEAD_OK" -eq 1 ]; then PASS=$((PASS + 1)); else FAIL=$((FAIL + 1)); fi
1950
1955
  # The harness plugins only load with .opencode/node_modules installed; without it every CI run
1951
1956
  # spawned untiered workers on the session's model. And the tier model a worker pins has to be one
@@ -1718,6 +1718,10 @@ jobs:
1718
1718
  GH_TOKEN: ${{ steps.app-token.outputs.token }}
1719
1719
  REPO: ${{ github.repository }}
1720
1720
  REFINE_MARKER: "<!-- agent-refine -->"
1721
+ # gh-aw strips HTML comments from safe-output comments, so the marker above never reaches
1722
+ # GitHub and this step found no questions in any repository. The visible prefix refine
1723
+ # puts first (agent-refine's SAFE_OUTPUT_COMMENT_PREFIX) identifies them instead.
1724
+ REFINE_PREFIX: "Refinement update"
1721
1725
  QUESTIONS_LINE: "I have some questions about this issue"
1722
1726
  PROPOSED_TAG: "**Proposed:**"
1723
1727
  DECISION_TAG: "**Your decision needed:**"
@@ -1744,8 +1748,10 @@ jobs:
1744
1748
  while IFS=$'\t' read -r issue people; do
1745
1749
  [ -n "$issue" ] || continue
1746
1750
  comments=$(gh api --paginate "repos/$REPO/issues/$issue/comments?per_page=100" | jq -s 'add // []')
1747
- asked=$(jq -c --arg marker "$REFINE_MARKER" --arg line "$QUESTIONS_LINE" '
1748
- [.[] | select(.user.type == "Bot" and (.body | contains($marker)) and (.body | contains($line)))]
1751
+ asked=$(jq -c --arg marker "$REFINE_MARKER" --arg prefix "$REFINE_PREFIX" --arg line "$QUESTIONS_LINE" '
1752
+ [.[] | select(.user.type == "Bot"
1753
+ and ((.body | contains($marker)) or (.body | contains($prefix)))
1754
+ and (.body | contains($line)))]
1749
1755
  | last // empty | {id, created_at, body}' <<<"$comments")
1750
1756
  [ -n "$asked" ] || continue
1751
1757
  asked_at=$(jq -r '.created_at' <<<"$asked")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plainconceptsplatform/workflows",
3
- "version": "1.21.3",
3
+ "version": "1.21.4",
4
4
  "description": "Install and update Platform GitHub agentic workflows.",
5
5
  "keywords": [
6
6
  "github-actions",