agentxchain 2.111.0 → 2.113.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/bin/agentxchain.js +86 -0
- package/dashboard/app.js +4 -0
- package/dashboard/components/mission.js +356 -0
- package/dashboard/index.html +1 -0
- package/package.json +2 -1
- package/scripts/check-release-alignment.mjs +66 -0
- package/scripts/release-bump.sh +8 -59
- package/scripts/release-preflight.sh +23 -8
- package/src/commands/mission.js +780 -0
- package/src/commands/run.js +3 -1
- package/src/lib/dashboard/bridge-server.js +17 -0
- package/src/lib/dashboard/file-watcher.js +22 -16
- package/src/lib/dashboard/mission-reader.js +14 -0
- package/src/lib/dashboard/plan-reader.js +108 -0
- package/src/lib/dashboard/state-reader.js +23 -3
- package/src/lib/mission-plans.js +520 -0
- package/src/lib/missions.js +195 -0
- package/src/lib/release-alignment.js +336 -0
- package/src/lib/run-chain.js +39 -3
|
@@ -85,7 +85,7 @@ fi
|
|
|
85
85
|
echo ""
|
|
86
86
|
|
|
87
87
|
# 1. Clean working tree
|
|
88
|
-
echo "[1/
|
|
88
|
+
echo "[1/7] Git status"
|
|
89
89
|
if git diff --quiet HEAD 2>/dev/null && [ -z "$(git ls-files --others --exclude-standard 2>/dev/null)" ]; then
|
|
90
90
|
pass "Working tree is clean"
|
|
91
91
|
else
|
|
@@ -97,7 +97,7 @@ else
|
|
|
97
97
|
fi
|
|
98
98
|
|
|
99
99
|
# 2. Dependencies
|
|
100
|
-
echo "[2/
|
|
100
|
+
echo "[2/7] Dependencies"
|
|
101
101
|
if run_and_capture NPM_CI_OUTPUT npm ci --ignore-scripts; then
|
|
102
102
|
pass "npm ci succeeded"
|
|
103
103
|
else
|
|
@@ -107,7 +107,7 @@ fi
|
|
|
107
107
|
|
|
108
108
|
# 3. Tests
|
|
109
109
|
if [[ "$PUBLISH_GATE" -eq 1 ]]; then
|
|
110
|
-
echo "[3/
|
|
110
|
+
echo "[3/7] Release-gate tests (targeted subset)"
|
|
111
111
|
# In publish-gate mode, run only release-critical tests to avoid CI hangs.
|
|
112
112
|
# The full test suite is a pre-tag responsibility, not a publish-time gate.
|
|
113
113
|
GATE_TESTS=(
|
|
@@ -142,7 +142,7 @@ if [[ "$PUBLISH_GATE" -eq 1 ]]; then
|
|
|
142
142
|
fi
|
|
143
143
|
fi
|
|
144
144
|
else
|
|
145
|
-
echo "[3/
|
|
145
|
+
echo "[3/7] Test suite"
|
|
146
146
|
# Install MCP example deps — tests start example servers as subprocesses
|
|
147
147
|
for example_dir in "${CLI_DIR}/../examples/mcp-echo-agent" "${CLI_DIR}/../examples/mcp-http-echo-agent"; do
|
|
148
148
|
if [[ -f "${example_dir}/package.json" && ! -d "${example_dir}/node_modules" ]]; then
|
|
@@ -189,7 +189,7 @@ else
|
|
|
189
189
|
fi
|
|
190
190
|
|
|
191
191
|
# 4. CHANGELOG has target version
|
|
192
|
-
echo "[4/
|
|
192
|
+
echo "[4/7] CHANGELOG"
|
|
193
193
|
if grep -Fxq "## ${TARGET_VERSION}" CHANGELOG.md 2>/dev/null; then
|
|
194
194
|
pass "CHANGELOG.md contains ${TARGET_VERSION} entry"
|
|
195
195
|
else
|
|
@@ -197,7 +197,7 @@ else
|
|
|
197
197
|
fi
|
|
198
198
|
|
|
199
199
|
# 5. Package version
|
|
200
|
-
echo "[5/
|
|
200
|
+
echo "[5/7] Package version"
|
|
201
201
|
PKG_VERSION=$(node -e "console.log(JSON.parse(require('fs').readFileSync('package.json','utf8')).version)")
|
|
202
202
|
echo " Current version: ${PKG_VERSION}"
|
|
203
203
|
if [ "$PKG_VERSION" = "${TARGET_VERSION}" ]; then
|
|
@@ -210,8 +210,23 @@ else
|
|
|
210
210
|
fi
|
|
211
211
|
fi
|
|
212
212
|
|
|
213
|
-
# 6.
|
|
214
|
-
echo "[6/
|
|
213
|
+
# 6. Release-alignment surfaces (shared manifest)
|
|
214
|
+
echo "[6/7] Release alignment (shared manifest)"
|
|
215
|
+
ALIGNMENT_SCRIPT="${SCRIPT_DIR}/check-release-alignment.mjs"
|
|
216
|
+
if [[ -f "$ALIGNMENT_SCRIPT" ]]; then
|
|
217
|
+
if run_and_capture ALIGNMENT_OUTPUT node "$ALIGNMENT_SCRIPT" --scope current --target-version "$TARGET_VERSION"; then
|
|
218
|
+
ALIGNED_COUNT="$(printf '%s\n' "$ALIGNMENT_OUTPUT" | awk -F'[,)]' '/surfaces/ { for (i=1;i<=NF;i++) if ($i ~ /[0-9]+ surfaces/) { gsub(/[^0-9]/,"",$i); print $i; exit } }')"
|
|
219
|
+
pass "Release alignment OK (${ALIGNED_COUNT:-all} surfaces)"
|
|
220
|
+
else
|
|
221
|
+
fail "Release alignment failed"
|
|
222
|
+
printf '%s\n' "$ALIGNMENT_OUTPUT" | head -20
|
|
223
|
+
fi
|
|
224
|
+
else
|
|
225
|
+
warn "check-release-alignment.mjs not found — skipping manifest validation"
|
|
226
|
+
fi
|
|
227
|
+
|
|
228
|
+
# 7. Pack dry-run
|
|
229
|
+
echo "[7/7] npm pack --dry-run"
|
|
215
230
|
if run_and_capture PACK_OUTPUT npm pack --dry-run; then
|
|
216
231
|
pass "npm pack --dry-run succeeded"
|
|
217
232
|
PACK_SIZE_LINE="$(printf '%s\n' "$PACK_OUTPUT" | awk '/total files:/ { print; found=1 } END { if (!found) exit 1 }')"
|