|
| 1 | +. | WARN Unsupported engine: wanted: {"node":">=22 <25"} (current: {"node":"v25.6.1","pnpm":"10.18.1"}) |
| 2 | + |
| 3 | +> @telagent/node@0.1.0 pretest /Users/xiasenhai/workspace/private-repo/Bots/telagent/packages/node |
| 4 | +> pnpm build |
| 5 | + |
| 6 | + |
| 7 | +> @telagent/node@0.1.0 build /Users/xiasenhai/workspace/private-repo/Bots/telagent/packages/node |
| 8 | +> tsc -p tsconfig.json |
| 9 | + |
| 10 | + |
| 11 | +> @telagent/node@0.1.0 test /Users/xiasenhai/workspace/private-repo/Bots/telagent/packages/node |
| 12 | +> node --test dist/*.test.js dist/**/*.test.js |
| 13 | + |
| 14 | +✔ created response returns data envelope and Location header (50.304458ms) |
| 15 | +✔ list response returns paginated envelope shape (13.339875ms) |
| 16 | +✔ validation errors use RFC7807 shape and problem+json content type (4.178792ms) |
| 17 | +✔ node audit snapshot exports de-sensitized envelope and links.self (39.91ms) |
| 18 | +✔ node audit snapshot rejects invalid query with RFC7807 response (15.015792ms) |
| 19 | +✔ not found uses RFC7807 shape (1.502167ms) |
| 20 | +✔ identities and groups endpoints are accessible with expected status codes (23.708791ms) |
| 21 | +✔ messages, attachments and federation endpoints are accessible (16.825417ms) |
| 22 | +✔ routes only serve /api/v1/* prefix (42.870042ms) |
| 23 | +✔ identity endpoint responds with data envelope (9.884125ms) |
| 24 | +✔ mailbox store defaults to sqlite backend (4.899417ms) |
| 25 | +✔ mailbox store parses postgres backend config (0.857625ms) |
| 26 | +✔ postgres backend requires connection url (1.268083ms) |
| 27 | +✔ mailbox backend rejects unsupported value (0.214125ms) |
| 28 | +✔ federation protocol defaults to v1 and supports self version (0.936208ms) |
| 29 | +✔ federation supported protocols auto-include self version (0.243875ms) |
| 30 | +✔ domain proof config defaults to enforced mode (0.195541ms) |
| 31 | +✔ domain proof config accepts report-only mode and custom values (0.594042ms) |
| 32 | +✔ domain proof mode rejects unsupported value (3.087209ms) |
| 33 | +✔ domain proof numeric settings require positive integers (1.580625ms) |
| 34 | +✔ federation pinning defaults to disabled mode (2.964083ms) |
| 35 | +✔ federation pinning parses current/next keys and cutover timestamp (1.039375ms) |
| 36 | +✔ federation pinning rejects invalid mode (6.185084ms) |
| 37 | +✔ federation pinning enabled requires key mappings (2.566458ms) |
| 38 | +✔ federation pinning map requires domain=keys format (2.445417ms) |
| 39 | +✔ finalityDepth only materializes finalized blocks (49.929083ms) |
| 40 | +✔ reorg rollback replays canonical events and restores deterministic view (19.065042ms) |
| 41 | +✔ TA-P4-009 E2E main path: create -> invite -> accept -> group chat (text/image/file) (130.770292ms) |
| 42 | +✔ TA-P4-010 E2E offline 24h pull keeps dedupe and per-conversation order (23.104916ms) |
| 43 | +✔ TA-P4-006 init-upload sanitizes filename and emits attachment objectKey (1.189584ms) |
| 44 | +✔ TA-P4-006 complete-upload enforces manifest and checksum integrity (0.433667ms) |
| 45 | +✔ TA-P4-006 complete-upload is idempotent and rejects checksum divergence (0.140208ms) |
| 46 | +✔ TA-P4-006 expired upload sessions are cleaned and cannot be completed (0.125458ms) |
| 47 | +✔ TA-P11-003 accepts valid domain proof challenge and canonical hash (35.579667ms) |
| 48 | +✔ TA-P11-003 rejects illegal domain challenge on malformed domain (0.384125ms) |
| 49 | +✔ TA-P11-003 rejects when canonical domainProofHash mismatches payload (0.382916ms) |
| 50 | +✔ TA-P11-003 rotates challenge nonce near expiry and accepts renewed domain proof (1.718834ms) |
| 51 | +✔ TA-P11-003 report-only mode returns warning without blocking create flow (0.633875ms) |
| 52 | +✔ TA-P4-007 federation envelopes support idempotent retries (2.049416ms) |
| 53 | +✔ TA-P4-007 federation auth token is enforced when configured (1.371708ms) |
| 54 | +✔ TA-P4-007 federation rate limit rejects burst traffic (0.415625ms) |
| 55 | +✔ TA-P4-008 group-state sync enforces domain consistency (0.639083ms) |
| 56 | +✔ TA-P8-002 group-state sync rejects stale stateVersion and records resilience counters (2.672042ms) |
| 57 | +✔ TA-P8-002 group-state sync detects split-brain on same stateVersion with different state (0.527125ms) |
| 58 | +✔ TA-P9-002 federation accepts compatible protocol versions and tracks usage stats (18.027625ms) |
| 59 | +✔ TA-P9-002 federation rejects unsupported protocol versions (0.169ms) |
| 60 | +✔ TA-P11-004 federation pinning enforces sourceKeyId with current/next rotation (9.559709ms) |
| 61 | +✔ TA-P11-004 federation pinning report-only mode allows traffic but records warnings (0.294375ms) |
| 62 | +✔ TA-P11-005 federation DLQ captures failures and replays in sequence order (0.502375ms) |
| 63 | +✔ TA-P4-008 node-info publishes domain and federation security policy (0.686167ms) |
| 64 | +✔ assertSufficient throws INSUFFICIENT_GAS_TOKEN_BALANCE when native balance is not enough (0.856542ms) |
| 65 | +✔ TA-P11-006 rotate key keeps old key usable in grace window then expires (1.042834ms) |
| 66 | +✔ TA-P11-006 revoke and recover lifecycle is verifiable (0.250833ms) |
| 67 | +✔ TA-P11-006 rejects invalid did and malformed key id (0.108666ms) |
| 68 | +✔ TA-P4-002 sequence allocator keeps per-conversation monotonic order (1.6975ms) |
| 69 | +✔ TA-P4-003 dedupe keeps idempotent writes for same envelopeId (0.285375ms) |
| 70 | +✔ TA-P4-003 duplicate envelopeId with different payload is rejected (0.417292ms) |
| 71 | +✔ TA-P4-004 cleanupExpired removes expired envelopes and releases dedupe key (0.267834ms) |
| 72 | +✔ TA-P4-005 provisional envelopes are retracted when group is reorged back (1.369959ms) |
| 73 | +✔ TA-P4-005 send is rejected when group chain state is REORGED_BACK (0.527333ms) |
| 74 | +✔ TA-P12-002 buildAuditSnapshot exports hashed retraction samples (1.018667ms) |
| 75 | +✔ TA-P12-002 buildAuditSnapshot normalizes sample and scan bounds (0.09025ms) |
| 76 | +✔ TA-P6-001 mailbox persists messages and seq after service restart (21.868917ms) |
| 77 | +✔ TA-P11-006 message send validates signal/mls key lifecycle status (0.793417ms) |
| 78 | +✔ TA-P11-007 revoked DID cannot continue sending new messages (0.168541ms) |
| 79 | +✔ TA-P5-002 monitoring snapshot normalizes dynamic route segments and records counters (2.0685ms) |
| 80 | +✔ TA-P5-002 monitoring emits warning/critical alerts when thresholds are exceeded (0.284208ms) |
| 81 | +ℹ tests 67 |
| 82 | +ℹ suites 0 |
| 83 | +ℹ pass 67 |
| 84 | +ℹ fail 0 |
| 85 | +ℹ cancelled 0 |
| 86 | +ℹ skipped 0 |
| 87 | +ℹ todo 0 |
| 88 | +ℹ duration_ms 600.135042 |
0 commit comments