|
| 1 | + |
| 2 | +> @telagent/node@0.1.0 pretest /Users/xiasenhai/Workspace/OpenClaw/telagent/packages/node |
| 3 | +> pnpm build |
| 4 | + |
| 5 | + |
| 6 | +> @telagent/node@0.1.0 build /Users/xiasenhai/Workspace/OpenClaw/telagent/packages/node |
| 7 | +> tsc -p tsconfig.json |
| 8 | + |
| 9 | + |
| 10 | +> @telagent/node@0.1.0 test /Users/xiasenhai/Workspace/OpenClaw/telagent/packages/node |
| 11 | +> node --test dist/*.test.js dist/**/*.test.js |
| 12 | + |
| 13 | +✔ created response returns data envelope and Location header (193.075308ms) |
| 14 | +✔ list response returns paginated envelope shape (84.709043ms) |
| 15 | +✔ validation errors use RFC7807 shape and problem+json content type (89.958675ms) |
| 16 | +✔ node audit snapshot exports de-sensitized envelope and links.self (38.350977ms) |
| 17 | +✔ node audit snapshot rejects invalid query with RFC7807 response (48.846122ms) |
| 18 | +✔ TA-P12-003 revoked DID event isolates session and rejects message send with RFC7807 (13.799364ms) |
| 19 | +✔ TA-P12-004 node metrics exposes federation DLQ replay burn-rate section (3.517423ms) |
| 20 | +✔ not found uses RFC7807 shape (2.96806ms) |
| 21 | +✔ identities and groups endpoints are accessible with expected status codes (15.003963ms) |
| 22 | +✔ messages, attachments and federation endpoints are accessible (24.993854ms) |
| 23 | +✔ routes only serve /api/v1/* prefix (283.585335ms) |
| 24 | +✔ identity endpoint responds with data envelope (27.620449ms) |
| 25 | +✔ mailbox store defaults to sqlite backend (11.563549ms) |
| 26 | +✔ mailbox store parses postgres backend config (0.844643ms) |
| 27 | +✔ postgres backend requires connection url (0.684561ms) |
| 28 | +✔ mailbox backend rejects unsupported value (0.323177ms) |
| 29 | +✔ federation protocol defaults to v1 and supports self version (2.770112ms) |
| 30 | +✔ federation supported protocols auto-include self version (0.428246ms) |
| 31 | +✔ federation replay protection defaults are applied (0.377544ms) |
| 32 | +✔ federation replay protection accepts custom values (28.017496ms) |
| 33 | +✔ federation replay protection requires positive integer values (2.171158ms) |
| 34 | +✔ domain proof config defaults to enforced mode (0.861294ms) |
| 35 | +✔ domain proof config accepts report-only mode and custom values (0.418474ms) |
| 36 | +✔ domain proof mode rejects unsupported value (0.413848ms) |
| 37 | +✔ domain proof numeric settings require positive integers (0.37303ms) |
| 38 | +✔ federation pinning defaults to disabled mode (0.385626ms) |
| 39 | +✔ federation pinning parses current/next keys and cutover timestamp (0.529049ms) |
| 40 | +✔ federation pinning rejects invalid mode (0.380009ms) |
| 41 | +✔ federation pinning enabled requires key mappings (0.364314ms) |
| 42 | +✔ federation pinning map requires domain=keys format (0.405227ms) |
| 43 | +✔ federation SLO automation config defaults are applied (0.321265ms) |
| 44 | +✔ federation SLO automation config accepts custom values (0.320538ms) |
| 45 | +✔ federation SLO burn-rate thresholds require positive values (0.314032ms) |
| 46 | +✔ finalityDepth only materializes finalized blocks (47.864606ms) |
| 47 | +✔ reorg rollback replays canonical events and restores deterministic view (17.99717ms) |
| 48 | +✔ TA-P4-009 E2E main path: create -> invite -> accept -> group chat (text/image/file) (169.58791ms) |
| 49 | +✔ TA-P4-010 E2E offline 24h pull keeps dedupe and per-conversation order (163.01412ms) |
| 50 | +✔ TA-P14-003 E2E pull cursor stays stable when cleanup happens between pages (12.19717ms) |
| 51 | +✔ TA-P4-006 init-upload sanitizes filename and emits attachment objectKey (2.303927ms) |
| 52 | +✔ TA-P4-006 complete-upload enforces manifest and checksum integrity (0.735654ms) |
| 53 | +✔ TA-P4-006 complete-upload is idempotent and rejects checksum divergence (0.44287ms) |
| 54 | +✔ TA-P4-006 expired upload sessions are cleaned and cannot be completed (0.253666ms) |
| 55 | +✔ TA-P11-003 accepts valid domain proof challenge and canonical hash (17.979588ms) |
| 56 | +✔ TA-P11-003 rejects illegal domain challenge on malformed domain (0.887872ms) |
| 57 | +✔ TA-P11-003 rejects when canonical domainProofHash mismatches payload (55.257025ms) |
| 58 | +✔ TA-P11-003 rotates challenge nonce near expiry and accepts renewed domain proof (5.704762ms) |
| 59 | +✔ TA-P11-003 report-only mode returns warning without blocking create flow (0.441505ms) |
| 60 | +✔ TA-P4-007 federation envelopes support idempotent retries (2.171735ms) |
| 61 | +✔ TA-P4-007 federation auth token is enforced when configured (0.563806ms) |
| 62 | +✔ TA-P4-007 federation rate limit rejects burst traffic (0.2998ms) |
| 63 | +✔ TA-P4-008 group-state sync enforces domain consistency (0.349322ms) |
| 64 | +✔ TA-P8-002 group-state sync rejects stale stateVersion and records resilience counters (0.762015ms) |
| 65 | +✔ TA-P8-002 group-state sync detects split-brain on same stateVersion with different state (0.342534ms) |
| 66 | +✔ TA-P9-002 federation accepts compatible protocol versions and tracks usage stats (11.902944ms) |
| 67 | +✔ TA-P9-002 federation rejects unsupported protocol versions (0.263646ms) |
| 68 | +✔ TA-P11-004 federation pinning enforces sourceKeyId with current/next rotation (0.645247ms) |
| 69 | +✔ TA-P11-004 federation pinning report-only mode allows traffic but records warnings (0.332472ms) |
| 70 | +✔ TA-P11-005 federation DLQ captures failures and replays in sequence order (8.366413ms) |
| 71 | +✔ TA-P4-008 node-info publishes domain and federation security policy (0.239805ms) |
| 72 | +✔ TA-P13-005 federation replay applies backoff and opens circuit on repeated failures (0.86748ms) |
| 73 | +✔ TA-P13-005 federation replay protection validates backoff range (0.171509ms) |
| 74 | +✔ TA-P12-004 federation SLO runOnce auto-replays DLQ and records burn-rate metrics (4.456233ms) |
| 75 | +✔ TA-P12-004 federation SLO scheduler periodically replays DLQ (1102.179825ms) |
| 76 | +✔ assertSufficient throws INSUFFICIENT_GAS_TOKEN_BALANCE when native balance is not enough (1.795618ms) |
| 77 | +✔ TA-P11-006 rotate key keeps old key usable in grace window then expires (1.865939ms) |
| 78 | +✔ TA-P11-006 revoke and recover lifecycle is verifiable (0.560927ms) |
| 79 | +✔ TA-P11-006 rejects invalid did and malformed key id (0.409711ms) |
| 80 | +✔ TA-P12-007 orchestrator supports staged key rotation with rollback recovery (2.975709ms) |
| 81 | +✔ TA-P4-002 sequence allocator keeps per-conversation monotonic order (4.021015ms) |
| 82 | +✔ TA-P4-003 dedupe keeps idempotent writes for same envelopeId (0.841859ms) |
| 83 | +✔ TA-P4-003 duplicate envelopeId with different payload is rejected (0.875514ms) |
| 84 | +✔ TA-P4-004 cleanupExpired removes expired envelopes and releases dedupe key (1.004798ms) |
| 85 | +✔ TA-P14-003 conversation pull cursor stays stable after cleanup between pages (2.544622ms) |
| 86 | +✔ TA-P14-003 global pull cursor is keyset token and survives cleanup drift (0.933764ms) |
| 87 | +✔ TA-P4-005 provisional envelopes are retracted when group is reorged back (0.929405ms) |
| 88 | +✔ TA-P4-005 send is rejected when group chain state is REORGED_BACK (0.402014ms) |
| 89 | +✔ TA-P12-002 buildAuditSnapshot exports hashed retraction samples (1.06ms) |
| 90 | +✔ TA-P12-002 buildAuditSnapshot normalizes sample and scan bounds (0.394715ms) |
| 91 | +✔ TA-P12-003 revoked DID event isolates related sessions and evicts active sessions (1.526647ms) |
| 92 | +✔ TA-P12-003 buildAuditSnapshot includes revocation isolation evidence (0.508865ms) |
| 93 | +✔ TA-P6-001 mailbox persists messages and seq after service restart (21.84485ms) |
| 94 | +✔ TA-P11-006 message send validates signal/mls key lifecycle status (2.317835ms) |
| 95 | +✔ TA-P11-007 revoked DID cannot continue sending new messages (0.53192ms) |
| 96 | +✔ TA-P5-002 monitoring snapshot normalizes dynamic route segments and records counters (2.822989ms) |
| 97 | +✔ TA-P5-002 monitoring emits warning/critical alerts when thresholds are exceeded (0.505919ms) |
| 98 | +✔ TA-P12-004 federation DLQ burn-rate alert is emitted and tracked (1.033452ms) |
| 99 | +ℹ tests 86 |
| 100 | +ℹ suites 0 |
| 101 | +ℹ pass 86 |
| 102 | +ℹ fail 0 |
| 103 | +ℹ cancelled 0 |
| 104 | +ℹ skipped 0 |
| 105 | +ℹ todo 0 |
| 106 | +ℹ duration_ms 2496.051154 |
0 commit comments