@metasession.co/devaudit-cli 0.1.16 → 0.1.18
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/sdlc/files/ci/ci.yml.template +44 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metasession.co/devaudit-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "DevAudit CLI — installs, syncs, and operates the Metasession SDLC across consumer projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@clack/prompts": "^0.8.2",
|
|
36
|
-
"@metasession.co/devaudit-plugin-sdk": "^0.1.
|
|
36
|
+
"@metasession.co/devaudit-plugin-sdk": "^0.1.18",
|
|
37
37
|
"commander": "^12.1.0",
|
|
38
38
|
"consola": "^3.2.3",
|
|
39
39
|
"env-paths": "^3.0.0",
|
|
@@ -162,6 +162,7 @@ jobs:
|
|
|
162
162
|
e2e-auth-results.json
|
|
163
163
|
playwright-report/
|
|
164
164
|
coverage/coverage-summary.json
|
|
165
|
+
compliance/evidence/*/screenshots/*.png
|
|
165
166
|
retention-days: 90
|
|
166
167
|
|
|
167
168
|
# ──────────────────────────────────────────────
|
|
@@ -329,6 +330,49 @@ jobs:
|
|
|
329
330
|
--category test_report ${FLAGS}
|
|
330
331
|
fi
|
|
331
332
|
|
|
333
|
+
# Upload per-AC e2e evidence screenshots, scoped to each in-scope
|
|
334
|
+
# requirement so they render under "Evidence by requirement" in the
|
|
335
|
+
# portal. These are the per-assertion `evidenceShot(page, REQ, 'ACn-…')`
|
|
336
|
+
# captures (compliance/evidence/<reqId>/screenshots/*.png) — taken at the
|
|
337
|
+
# moment each acceptance criterion is demonstrated, NOT the Playwright
|
|
338
|
+
# report's trailing/failure capture. evidenceType `screenshot` →
|
|
339
|
+
# image/png renders inline. Only when a pending release ticket defines
|
|
340
|
+
# the in-scope REQ(s); skipped on ordinary dev pushes. Best-effort: a
|
|
341
|
+
# screenshot upload failure warns but never blocks the gate.
|
|
342
|
+
SHOT_REQS=()
|
|
343
|
+
if [ -d compliance/pending-releases ]; then
|
|
344
|
+
for TICKET in compliance/pending-releases/RELEASE-TICKET-REQ-*.md; do
|
|
345
|
+
[ -f "$TICKET" ] || continue
|
|
346
|
+
SHOT_REQS+=("$(basename "$TICKET" .md | sed 's/^RELEASE-TICKET-//')")
|
|
347
|
+
done
|
|
348
|
+
fi
|
|
349
|
+
shopt -s nullglob
|
|
350
|
+
# Only this run's freshly-generated screenshots (from the ci-results
|
|
351
|
+
# artifact). The full pack regenerates them every run, so the committed
|
|
352
|
+
# copies under compliance/evidence/ are redundant here — globbing both
|
|
353
|
+
# uploaded every image twice (deduped on display, but wasteful + rate-limit
|
|
354
|
+
# pressure) and swept in legacy screenshots from unrelated past releases.
|
|
355
|
+
SHOTS=(ci-evidence/compliance/evidence/*/screenshots/*.png)
|
|
356
|
+
if [ "${#SHOT_REQS[@]}" -gt 0 ] && [ "${#SHOTS[@]}" -gt 0 ]; then
|
|
357
|
+
echo "Uploading ${#SHOTS[@]} evidence screenshot(s) for: ${SHOT_REQS[*]}"
|
|
358
|
+
SHOT_TMP="$(mktemp -d)"
|
|
359
|
+
for REQ in "${SHOT_REQS[@]}"; do
|
|
360
|
+
for PNG in "${SHOTS[@]}"; do
|
|
361
|
+
# The folder is the (SRS) requirement id, the basename is the AC
|
|
362
|
+
# slug (ACn-…). Upload as <srs-req>-<slug>.png so the reviewer can
|
|
363
|
+
# see which requirement/AC each image proves and names don't collide.
|
|
364
|
+
SRS_REQ="$(basename "$(dirname "$(dirname "$PNG")")")"
|
|
365
|
+
NAMED="${SHOT_TMP}/${SRS_REQ}-$(basename "$PNG")"
|
|
366
|
+
cp "$PNG" "$NAMED" 2>/dev/null || continue
|
|
367
|
+
bash scripts/upload-evidence.sh \
|
|
368
|
+
{{PROJECT_SLUG}} "$REQ" screenshot "$NAMED" \
|
|
369
|
+
--category test_report ${FLAGS} --release "$REQ" \
|
|
370
|
+
|| echo "::warning::evidence screenshot upload failed: ${PNG} -> ${REQ}"
|
|
371
|
+
done
|
|
372
|
+
done
|
|
373
|
+
fi
|
|
374
|
+
shopt -u nullglob
|
|
375
|
+
|
|
332
376
|
# NOTE: committed compliance docs (planning category: RTM/test-plan/
|
|
333
377
|
# test-cases, release tickets, and per-requirement
|
|
334
378
|
# compliance/evidence/REQ-*/ folders) are intentionally NOT uploaded
|