|
| 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 (242.813184ms) |
| 14 | +✔ list response returns paginated envelope shape (39.9615ms) |
| 15 | +✔ validation errors use RFC7807 shape and problem+json content type (15.434415ms) |
| 16 | +✔ node audit snapshot exports de-sensitized envelope and links.self (105.857061ms) |
| 17 | +✔ node audit snapshot rejects invalid query with RFC7807 response (4.608889ms) |
| 18 | +✔ TA-P12-003 revoked DID event isolates session and rejects message send with RFC7807 (11.766103ms) |
| 19 | +✔ TA-P12-004 node metrics exposes federation DLQ replay burn-rate section (3.618223ms) |
| 20 | +✔ not found uses RFC7807 shape (2.940089ms) |
| 21 | +✔ identities and groups endpoints are accessible with expected status codes (99.16139ms) |
| 22 | +✔ messages, attachments and federation endpoints are accessible (86.211749ms) |
| 23 | +✔ routes only serve /api/v1/* prefix (318.562169ms) |
| 24 | +✔ identity endpoint responds with data envelope (59.790735ms) |
| 25 | +✔ mailbox store defaults to sqlite backend (5.842809ms) |
| 26 | +✔ mailbox store parses postgres backend config (1.653589ms) |
| 27 | +✔ postgres backend requires connection url (0.831064ms) |
| 28 | +✔ mailbox backend rejects unsupported value (0.340939ms) |
| 29 | +✔ federation protocol defaults to v1 and supports self version (1.003673ms) |
| 30 | +✔ federation supported protocols auto-include self version (0.419913ms) |
| 31 | +✔ federation replay protection defaults are applied (0.518466ms) |
| 32 | +✔ federation replay protection accepts custom values (0.367184ms) |
| 33 | +✔ federation replay protection requires positive integer values (0.859582ms) |
| 34 | +✔ domain proof config defaults to enforced mode (1.623461ms) |
| 35 | +✔ domain proof config accepts report-only mode and custom values (0.414138ms) |
| 36 | +✔ domain proof mode rejects unsupported value (0.343733ms) |
| 37 | +✔ domain proof numeric settings require positive integers (0.471725ms) |
| 38 | +✔ federation pinning defaults to disabled mode (0.350699ms) |
| 39 | +✔ federation pinning parses current/next keys and cutover timestamp (0.500471ms) |
| 40 | +✔ federation pinning rejects invalid mode (0.458381ms) |
| 41 | +✔ federation pinning enabled requires key mappings (0.294758ms) |
| 42 | +✔ federation pinning map requires domain=keys format (0.271174ms) |
| 43 | +✔ federation SLO automation config defaults are applied (0.295374ms) |
| 44 | +✔ federation SLO automation config accepts custom values (0.297757ms) |
| 45 | +✔ federation SLO burn-rate thresholds require positive values (0.293347ms) |
| 46 | +✔ finalityDepth only materializes finalized blocks (104.666562ms) |
| 47 | +✔ reorg rollback replays canonical events and restores deterministic view (133.846173ms) |
| 48 | +✔ TA-P4-009 E2E main path: create -> invite -> accept -> group chat (text/image/file) (425.232084ms) |
| 49 | +✔ TA-P4-010 E2E offline 24h pull keeps dedupe and per-conversation order (79.988948ms) |
| 50 | +✔ TA-P14-003 E2E pull cursor stays stable when cleanup happens between pages (16.156278ms) |
| 51 | +✔ TA-P14-004 E2E direct conversation blocks non-participant sender with RFC7807 (7.586321ms) |
| 52 | +✔ TA-P4-006 init-upload sanitizes filename and emits attachment objectKey (2.228593ms) |
| 53 | +✔ TA-P4-006 complete-upload enforces manifest and checksum integrity (0.767476ms) |
| 54 | +✔ TA-P4-006 complete-upload is idempotent and rejects checksum divergence (0.265414ms) |
| 55 | +✔ TA-P4-006 expired upload sessions are cleaned and cannot be completed (0.234747ms) |
| 56 | +✔ TA-P11-003 accepts valid domain proof challenge and canonical hash (144.154963ms) |
| 57 | +✔ TA-P11-003 rejects illegal domain challenge on malformed domain (1.091204ms) |
| 58 | +✔ TA-P11-003 rejects when canonical domainProofHash mismatches payload (2.194631ms) |
| 59 | +✔ TA-P11-003 rotates challenge nonce near expiry and accepts renewed domain proof (2.960786ms) |
| 60 | +✔ TA-P11-003 report-only mode returns warning without blocking create flow (1.025951ms) |
| 61 | +✔ TA-P4-007 federation envelopes support idempotent retries (2.08516ms) |
| 62 | +✔ TA-P4-007 federation auth token is enforced when configured (0.59134ms) |
| 63 | +✔ TA-P4-007 federation rate limit rejects burst traffic (0.317469ms) |
| 64 | +✔ TA-P4-008 group-state sync enforces domain consistency (0.852936ms) |
| 65 | +✔ TA-P8-002 group-state sync rejects stale stateVersion and records resilience counters (0.762754ms) |
| 66 | +✔ TA-P8-002 group-state sync detects split-brain on same stateVersion with different state (0.31755ms) |
| 67 | +✔ TA-P9-002 federation accepts compatible protocol versions and tracks usage stats (90.309735ms) |
| 68 | +✔ TA-P9-002 federation rejects unsupported protocol versions (0.525636ms) |
| 69 | +✔ TA-P11-004 federation pinning enforces sourceKeyId with current/next rotation (1.576277ms) |
| 70 | +✔ TA-P11-004 federation pinning report-only mode allows traffic but records warnings (0.381931ms) |
| 71 | +✔ TA-P11-005 federation DLQ captures failures and replays in sequence order (3.196861ms) |
| 72 | +✔ TA-P4-008 node-info publishes domain and federation security policy (0.310182ms) |
| 73 | +✔ TA-P13-005 federation replay applies backoff and opens circuit on repeated failures (2.019657ms) |
| 74 | +✔ TA-P13-005 federation replay protection validates backoff range (0.213324ms) |
| 75 | +✔ TA-P12-004 federation SLO runOnce auto-replays DLQ and records burn-rate metrics (7.803725ms) |
| 76 | +✔ TA-P12-004 federation SLO scheduler periodically replays DLQ (1102.311298ms) |
| 77 | +✔ assertSufficient throws INSUFFICIENT_GAS_TOKEN_BALANCE when native balance is not enough (2.029296ms) |
| 78 | +✔ TA-P11-006 rotate key keeps old key usable in grace window then expires (3.517979ms) |
| 79 | +✔ TA-P11-006 revoke and recover lifecycle is verifiable (0.491ms) |
| 80 | +✔ TA-P11-006 rejects invalid did and malformed key id (0.423718ms) |
| 81 | +✔ TA-P12-007 orchestrator supports staged key rotation with rollback recovery (2.753973ms) |
| 82 | +✔ TA-P4-002 sequence allocator keeps per-conversation monotonic order (4.888052ms) |
| 83 | +✔ TA-P4-003 dedupe keeps idempotent writes for same envelopeId (0.767725ms) |
| 84 | +✔ TA-P4-003 duplicate envelopeId with different payload is rejected (1.039166ms) |
| 85 | +✔ TA-P14-004 direct conversation rejects non-participant writer after two participants are established (1.052266ms) |
| 86 | +✔ TA-P14-004 direct conversation ACL remains effective after repository-backed restart (20.612998ms) |
| 87 | +✔ TA-P4-004 cleanupExpired removes expired envelopes and releases dedupe key (1.444885ms) |
| 88 | +✔ TA-P14-003 conversation pull cursor stays stable after cleanup between pages (1.848464ms) |
| 89 | +✔ TA-P14-003 global pull cursor is keyset token and survives cleanup drift (1.009106ms) |
| 90 | +✔ TA-P4-005 provisional envelopes are retracted when group is reorged back (1.177371ms) |
| 91 | +✔ TA-P4-005 send is rejected when group chain state is REORGED_BACK (0.535927ms) |
| 92 | +✔ TA-P12-002 buildAuditSnapshot exports hashed retraction samples (1.104457ms) |
| 93 | +✔ TA-P12-002 buildAuditSnapshot normalizes sample and scan bounds (0.24018ms) |
| 94 | +✔ TA-P12-003 revoked DID event isolates related sessions and evicts active sessions (1.988008ms) |
| 95 | +✔ TA-P12-003 buildAuditSnapshot includes revocation isolation evidence (1.072063ms) |
| 96 | +✔ TA-P6-001 mailbox persists messages and seq after service restart (22.308847ms) |
| 97 | +✔ TA-P11-006 message send validates signal/mls key lifecycle status (1.720719ms) |
| 98 | +✔ TA-P11-007 revoked DID cannot continue sending new messages (0.491ms) |
| 99 | +✔ TA-P5-002 monitoring snapshot normalizes dynamic route segments and records counters (16.900544ms) |
| 100 | +✔ TA-P5-002 monitoring emits warning/critical alerts when thresholds are exceeded (0.515895ms) |
| 101 | +✔ TA-P12-004 federation DLQ burn-rate alert is emitted and tracked (2.698996ms) |
| 102 | +ℹ tests 89 |
| 103 | +ℹ suites 0 |
| 104 | +ℹ pass 89 |
| 105 | +ℹ fail 0 |
| 106 | +ℹ cancelled 0 |
| 107 | +ℹ skipped 0 |
| 108 | +ℹ todo 0 |
| 109 | +ℹ duration_ms 2590.368983 |
0 commit comments