test(issue722): add CLI integration scripts for terminal vs streaming trace rows

- dev-issue-722-trace-integration.mjs: drives hwlab-cli agent trace --render web
  with a 4151-char final response and asserts the rendered terminal row body
  equals the full text without any 内容已截断 marker
- dev-issue-722-streaming-integration.mjs: drives the same path with a long
  non-terminal streaming message and asserts the CLI preview cap still fires
  at 1200 chars + the ... marker, while the terminal row in the same trace
  keeps the full text
- package.json: expose the two scripts as dev:issue-722:* for repeatable
  CLI verification on the v0.2 runtime

Refs: pikasTech/HWLAB#722
This commit is contained in:
Codex
2026-06-03 13:43:21 +08:00
parent d39e322bf0
commit 4221760a29
3 changed files with 71 additions and 0 deletions
+2
View File
@@ -15,6 +15,8 @@
"l2:smoke": "node scripts/l2-runtime-contract-smoke.mjs",
"dev:evidence": "node scripts/dev-evidence-blocker-aggregator.mjs --pretty",
"dev:evidence:check": "node scripts/dev-evidence-blocker-aggregator.mjs --check",
"dev:issue-722:trace-integration": "node scripts/run-bun.mjs scripts/dev-issue-722-trace-integration.mjs",
"dev:issue-722:streaming-integration": "node scripts/run-bun.mjs scripts/dev-issue-722-streaming-integration.mjs",
"report:lifecycle": "node scripts/report-lifecycle.mjs",
"dev-edge:smoke": "node scripts/dev-edge-health-smoke.mjs",
"deploy:contract:plan": "node scripts/run-bun.mjs scripts/deploy-contract-plan.mjs --pretty",