agentxchain 2.20.0 → 2.21.0

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": "agentxchain",
3
- "version": "2.20.0",
3
+ "version": "2.21.0",
4
4
  "description": "CLI for AgentXchain — governed multi-agent software delivery",
5
5
  "type": "module",
6
6
  "bin": {
@@ -114,8 +114,31 @@ else
114
114
  fi
115
115
  TEST_PASS="$(printf '%s\n' "$TEST_OUTPUT" | awk '/^# pass / { print $3 }')"
116
116
  TEST_FAIL="$(printf '%s\n' "$TEST_OUTPUT" | awk '/^# fail / { print $3 }')"
117
+ if [ -z "${TEST_PASS:-}" ]; then
118
+ VITEST_PASS="$(printf '%s\n' "$TEST_OUTPUT" | awk '/^[[:space:]]*Tests[[:space:]]+[0-9]+[[:space:]]+passed/ { for (i = 1; i <= NF; i++) if ($i ~ /^[0-9]+$/) { print $i; exit } }')"
119
+ NODE_PASS="$(printf '%s\n' "$TEST_OUTPUT" | awk '/^ℹ tests / { print $3; exit }')"
120
+ if [ -n "${VITEST_PASS:-}" ] && [ -n "${NODE_PASS:-}" ]; then
121
+ TEST_PASS="$((VITEST_PASS + NODE_PASS))"
122
+ elif [ -n "${NODE_PASS:-}" ]; then
123
+ TEST_PASS="${NODE_PASS}"
124
+ elif [ -n "${VITEST_PASS:-}" ]; then
125
+ TEST_PASS="${VITEST_PASS}"
126
+ fi
127
+ fi
128
+ if [ -z "${TEST_FAIL:-}" ]; then
129
+ NODE_FAIL="$(printf '%s\n' "$TEST_OUTPUT" | awk '/^ℹ fail / { print $3; exit }')"
130
+ if [ -n "${NODE_FAIL:-}" ]; then
131
+ TEST_FAIL="${NODE_FAIL}"
132
+ elif printf '%s\n' "$TEST_OUTPUT" | grep -Eq '^[[:space:]]*Tests[[:space:]]+[0-9]+[[:space:]]+passed'; then
133
+ TEST_FAIL=0
134
+ fi
135
+ fi
117
136
  if [ "$TEST_STATUS" -eq 0 ] && [ "${TEST_FAIL:-0}" = "0" ]; then
118
- pass "${TEST_PASS} tests passed, 0 failures"
137
+ if [ -n "${TEST_PASS:-}" ]; then
138
+ pass "${TEST_PASS} tests passed, 0 failures"
139
+ else
140
+ pass "npm test passed, 0 failures"
141
+ fi
119
142
  else
120
143
  fail "npm test failed"
121
144
  printf '%s\n' "$TEST_OUTPUT" | tail -20
@@ -605,6 +605,7 @@ All acceptance criteria met. OBJ-002 (clock skew) noted for follow-up. OBJ-003 (
605
605
  console.log(chalk.dim(' ─'.repeat(26)));
606
606
  console.log('');
607
607
  console.log(` ${chalk.bold('Try it for real:')} agentxchain init --governed`);
608
+ console.log(` ${chalk.bold('Step by step:')} https://agentxchain.dev/docs/first-turn`);
608
609
  console.log(` ${chalk.bold('Read more:')} https://agentxchain.dev/docs/quickstart`);
609
610
  console.log('');
610
611
  }