|
| 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 (161.50085ms) |
| 14 | +✔ list response returns paginated envelope shape (11.942374ms) |
| 15 | +✔ validation errors use RFC7807 shape and problem+json content type (130.679224ms) |
| 16 | +✔ node audit snapshot exports de-sensitized envelope and links.self (24.92499ms) |
| 17 | +✔ node audit snapshot rejects invalid query with RFC7807 response (5.157949ms) |
| 18 | +✔ TA-P12-003 revoked DID event isolates session and rejects message send with RFC7807 (92.823102ms) |
| 19 | +✔ TA-P12-004 node metrics exposes federation DLQ replay burn-rate section (3.881643ms) |
| 20 | +✔ not found uses RFC7807 shape (2.970381ms) |
| 21 | +✔ identities and groups endpoints are accessible with expected status codes (54.472131ms) |
| 22 | +✔ messages, attachments and federation endpoints are accessible (133.149516ms) |
| 23 | +✔ routes only serve /api/v1/* prefix (210.070355ms) |
| 24 | +✔ identity endpoint responds with data envelope (74.657903ms) |
| 25 | +✔ mailbox store defaults to sqlite backend (5.248956ms) |
| 26 | +✔ mailbox store parses postgres backend config (0.567987ms) |
| 27 | +✔ postgres backend requires connection url (0.685423ms) |
| 28 | +✔ mailbox backend rejects unsupported value (0.333396ms) |
| 29 | +✔ federation protocol defaults to v1 and supports self version (0.970538ms) |
| 30 | +✔ federation supported protocols auto-include self version (0.411163ms) |
| 31 | +✔ federation replay protection defaults are applied (0.378238ms) |
| 32 | +✔ federation replay protection accepts custom values (0.353366ms) |
| 33 | +✔ federation replay protection requires positive integer values (0.421965ms) |
| 34 | +✔ domain proof config defaults to enforced mode (0.614512ms) |
| 35 | +✔ domain proof config accepts report-only mode and custom values (0.380265ms) |
| 36 | +✔ domain proof mode rejects unsupported value (0.340855ms) |
| 37 | +✔ domain proof numeric settings require positive integers (0.349485ms) |
| 38 | +✔ federation pinning defaults to disabled mode (0.380957ms) |
| 39 | +✔ federation pinning parses current/next keys and cutover timestamp (0.528972ms) |
| 40 | +✔ federation pinning rejects invalid mode (0.324286ms) |
| 41 | +✔ federation pinning enabled requires key mappings (0.291012ms) |
| 42 | +✔ federation pinning map requires domain=keys format (0.275401ms) |
| 43 | +✔ federation SLO automation config defaults are applied (0.305818ms) |
| 44 | +✔ federation SLO automation config accepts custom values (0.301441ms) |
| 45 | +✔ federation SLO burn-rate thresholds require positive values (0.309591ms) |
| 46 | +✔ finalityDepth only materializes finalized blocks (145.062016ms) |
| 47 | +✔ reorg rollback replays canonical events and restores deterministic view (19.53323ms) |
| 48 | +✔ TA-P4-009 E2E main path: create -> invite -> accept -> group chat (text/image/file) (320.5064ms) |
| 49 | +✔ TA-P4-010 E2E offline 24h pull keeps dedupe and per-conversation order (112.368815ms) |
| 50 | +✔ TA-P14-003 E2E pull cursor stays stable when cleanup happens between pages (15.934795ms) |
| 51 | +✔ TA-P14-004 E2E direct conversation blocks non-participant sender with RFC7807 (36.117665ms) |
| 52 | +✔ TA-P4-006 init-upload sanitizes filename and emits attachment objectKey (1.470236ms) |
| 53 | +✔ TA-P4-006 complete-upload enforces manifest and checksum integrity (0.753002ms) |
| 54 | +✔ TA-P4-006 complete-upload is idempotent and rejects checksum divergence (0.28007ms) |
| 55 | +✔ TA-P4-006 expired upload sessions are cleaned and cannot be completed (0.240272ms) |
| 56 | +✔ TA-P11-003 accepts valid domain proof challenge and canonical hash (22.877707ms) |
| 57 | +✔ TA-P11-003 rejects illegal domain challenge on malformed domain (0.795935ms) |
| 58 | +✔ TA-P11-003 rejects when canonical domainProofHash mismatches payload (0.65495ms) |
| 59 | +✔ TA-P11-003 rotates challenge nonce near expiry and accepts renewed domain proof (3.71913ms) |
| 60 | +✔ TA-P11-003 report-only mode returns warning without blocking create flow (0.460473ms) |
| 61 | +✔ TA-P4-007 federation envelopes support idempotent retries (2.087047ms) |
| 62 | +✔ TA-P4-007 federation auth token is enforced when configured (0.955306ms) |
| 63 | +✔ TA-P4-007 federation rate limit rejects burst traffic (0.322013ms) |
| 64 | +✔ TA-P4-008 group-state sync enforces domain consistency (1.326029ms) |
| 65 | +✔ TA-P8-002 group-state sync rejects stale stateVersion and records resilience counters (2.786288ms) |
| 66 | +✔ TA-P8-002 group-state sync detects split-brain on same stateVersion with different state (0.423622ms) |
| 67 | +✔ TA-P9-002 federation accepts compatible protocol versions and tracks usage stats (17.309509ms) |
| 68 | +✔ TA-P9-002 federation rejects unsupported protocol versions (0.278664ms) |
| 69 | +✔ TA-P11-004 federation pinning enforces sourceKeyId with current/next rotation (0.859859ms) |
| 70 | +✔ TA-P11-004 federation pinning report-only mode allows traffic but records warnings (0.447871ms) |
| 71 | +✔ TA-P11-005 federation DLQ captures failures and replays in sequence order (0.982506ms) |
| 72 | +✔ TA-P4-008 node-info publishes domain and federation security policy (0.205303ms) |
| 73 | +✔ TA-P13-005 federation replay applies backoff and opens circuit on repeated failures (0.701694ms) |
| 74 | +✔ TA-P13-005 federation replay protection validates backoff range (0.185465ms) |
| 75 | +✔ TA-P12-004 federation SLO runOnce auto-replays DLQ and records burn-rate metrics (11.672052ms) |
| 76 | +✔ TA-P12-004 federation SLO scheduler periodically replays DLQ (1102.148254ms) |
| 77 | +✔ assertSufficient throws INSUFFICIENT_GAS_TOKEN_BALANCE when native balance is not enough (1.802037ms) |
| 78 | +✔ TA-P11-006 rotate key keeps old key usable in grace window then expires (2.774869ms) |
| 79 | +✔ TA-P11-006 revoke and recover lifecycle is verifiable (0.525125ms) |
| 80 | +✔ TA-P11-006 rejects invalid did and malformed key id (0.255674ms) |
| 81 | +✔ TA-P12-007 orchestrator supports staged key rotation with rollback recovery (2.332172ms) |
| 82 | +✔ TA-P4-002 sequence allocator keeps per-conversation monotonic order (4.266036ms) |
| 83 | +✔ TA-P4-003 dedupe keeps idempotent writes for same envelopeId (0.640277ms) |
| 84 | +✔ TA-P4-003 duplicate envelopeId with different payload is rejected (0.837883ms) |
| 85 | +✔ TA-P14-004 direct conversation rejects non-participant writer after two participants are established (0.932564ms) |
| 86 | +✔ TA-P14-004 direct conversation ACL remains effective after repository-backed restart (21.098108ms) |
| 87 | +✔ TA-P4-004 cleanupExpired removes expired envelopes and releases dedupe key (0.862138ms) |
| 88 | +✔ TA-P14-003 conversation pull cursor stays stable after cleanup between pages (1.588247ms) |
| 89 | +✔ TA-P14-003 global pull cursor is keyset token and survives cleanup drift (0.914445ms) |
| 90 | +✔ TA-P4-005 provisional envelopes are retracted when group is reorged back (1.026793ms) |
| 91 | +✔ TA-P4-005 send is rejected when group chain state is REORGED_BACK (0.659667ms) |
| 92 | +✔ TA-P12-002 buildAuditSnapshot exports hashed retraction samples (1.358252ms) |
| 93 | +✔ TA-P12-002 buildAuditSnapshot normalizes sample and scan bounds (0.189877ms) |
| 94 | +✔ TA-P12-003 revoked DID event isolates related sessions and evicts active sessions (1.600015ms) |
| 95 | +✔ TA-P12-003 buildAuditSnapshot includes revocation isolation evidence (0.560175ms) |
| 96 | +✔ TA-P6-001 mailbox persists messages and seq after service restart (14.148375ms) |
| 97 | +✔ TA-P11-006 message send validates signal/mls key lifecycle status (1.554907ms) |
| 98 | +✔ TA-P11-007 revoked DID cannot continue sending new messages (0.423646ms) |
| 99 | +✔ TA-P5-002 monitoring snapshot normalizes dynamic route segments and records counters (2.63566ms) |
| 100 | +✔ TA-P5-002 monitoring emits warning/critical alerts when thresholds are exceeded (0.493418ms) |
| 101 | +✔ TA-P12-004 federation DLQ burn-rate alert is emitted and tracked (1.004406ms) |
| 102 | +ℹ tests 89 |
| 103 | +ℹ suites 0 |
| 104 | +ℹ pass 89 |
| 105 | +ℹ fail 0 |
| 106 | +ℹ cancelled 0 |
| 107 | +ℹ skipped 0 |
| 108 | +ℹ todo 0 |
| 109 | +ℹ duration_ms 2488.709025 |
0 commit comments