agent-comms 9.0.10 → 9.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +10 -6
- package/dist/account-cli.d.ts.map +1 -1
- package/dist/account-cli.js +4 -1
- package/dist/account-cli.js.map +1 -1
- package/dist/bridges/user/web/dist/mesh-worker.js +4 -4
- package/dist/bridges/user/web/dist/sw.js +1 -1
- package/dist/cli-main.d.ts.map +1 -1
- package/dist/cli-main.js +9 -12
- package/dist/cli-main.js.map +1 -1
- package/dist/core/account-bundle.d.ts +1 -1
- package/dist/core/account-bundle.d.ts.map +1 -1
- package/dist/core/account-bundle.js +26 -19
- package/dist/core/account-bundle.js.map +1 -1
- package/dist/core/account-join.d.ts.map +1 -1
- package/dist/core/account-join.js +5 -2
- package/dist/core/account-join.js.map +1 -1
- package/dist/core/account-ledger-crypto.d.ts.map +1 -1
- package/dist/core/account-ledger-crypto.js +4 -1
- package/dist/core/account-ledger-crypto.js.map +1 -1
- package/dist/core/account-ledger-store.d.ts +3 -1
- package/dist/core/account-ledger-store.d.ts.map +1 -1
- package/dist/core/account-ledger-store.js +6 -3
- package/dist/core/account-ledger-store.js.map +1 -1
- package/dist/core/account-ledger.d.ts +51 -4
- package/dist/core/account-ledger.d.ts.map +1 -1
- package/dist/core/account-ledger.js +102 -15
- package/dist/core/account-ledger.js.map +1 -1
- package/dist/core/bridge-mesh.d.ts.map +1 -1
- package/dist/core/bridge-mesh.js +3 -0
- package/dist/core/bridge-mesh.js.map +1 -1
- package/dist/core/bridge.d.ts.map +1 -1
- package/dist/core/bridge.js +16 -4
- package/dist/core/bridge.js.map +1 -1
- package/dist/core/capability-ask.d.ts.map +1 -1
- package/dist/core/capability-ask.js +10 -2
- package/dist/core/capability-ask.js.map +1 -1
- package/dist/core/connection-code-tool.d.ts +1 -1
- package/dist/core/connection-code-tool.js +2 -2
- package/dist/core/connection-code-tool.js.map +1 -1
- package/dist/core/connection-code.d.ts +5 -5
- package/dist/core/connection-code.d.ts.map +1 -1
- package/dist/core/connection-code.js +22 -6
- package/dist/core/connection-code.js.map +1 -1
- package/dist/core/device-membership.d.ts +8 -3
- package/dist/core/device-membership.d.ts.map +1 -1
- package/dist/core/device-membership.js +4 -4
- package/dist/core/device-membership.js.map +1 -1
- package/dist/core/dm-grant-actions.d.ts.map +1 -1
- package/dist/core/dm-grant-actions.js +7 -1
- package/dist/core/dm-grant-actions.js.map +1 -1
- package/dist/core/error-reporting.d.ts.map +1 -1
- package/dist/core/error-reporting.js +5 -0
- package/dist/core/error-reporting.js.map +1 -1
- package/dist/core/gateway-trust.d.ts +1 -1
- package/dist/core/gateway-trust.d.ts.map +1 -1
- package/dist/core/gateway-trust.js +4 -4
- package/dist/core/gateway-trust.js.map +1 -1
- package/dist/core/group-proofs.d.ts.map +1 -1
- package/dist/core/group-proofs.js +2 -2
- package/dist/core/group-proofs.js.map +1 -1
- package/dist/core/identity-store.d.ts +13 -9
- package/dist/core/identity-store.d.ts.map +1 -1
- package/dist/core/identity-store.js +122 -147
- package/dist/core/identity-store.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/iso-timestamp.d.ts +10 -0
- package/dist/core/iso-timestamp.d.ts.map +1 -0
- package/dist/core/iso-timestamp.js +19 -0
- package/dist/core/iso-timestamp.js.map +1 -0
- package/dist/core/issuer-identity-file.d.ts +15 -0
- package/dist/core/issuer-identity-file.d.ts.map +1 -1
- package/dist/core/issuer-identity-file.js +69 -20
- package/dist/core/issuer-identity-file.js.map +1 -1
- package/dist/core/machine-identity.d.ts +1 -1
- package/dist/core/machine-identity.d.ts.map +1 -1
- package/dist/core/machine-identity.js +14 -11
- package/dist/core/machine-identity.js.map +1 -1
- package/dist/core/mesh-store.d.ts +2 -2
- package/dist/core/mesh-store.d.ts.map +1 -1
- package/dist/core/mesh-store.js.map +1 -1
- package/dist/core/peer-lifecycle.d.ts.map +1 -1
- package/dist/core/peer-lifecycle.js +8 -2
- package/dist/core/peer-lifecycle.js.map +1 -1
- package/dist/core/pid-lock-file.d.ts +27 -4
- package/dist/core/pid-lock-file.d.ts.map +1 -1
- package/dist/core/pid-lock-file.js +120 -11
- package/dist/core/pid-lock-file.js.map +1 -1
- package/dist/core/process-start.d.ts +10 -0
- package/dist/core/process-start.d.ts.map +1 -0
- package/dist/core/process-start.js +43 -0
- package/dist/core/process-start.js.map +1 -0
- package/dist/core/room-lifecycle.d.ts +3 -2
- package/dist/core/room-lifecycle.d.ts.map +1 -1
- package/dist/core/room-lifecycle.js +9 -8
- package/dist/core/room-lifecycle.js.map +1 -1
- package/dist/core/room-protocol.d.ts.map +1 -1
- package/dist/core/room-protocol.js +25 -3
- package/dist/core/room-protocol.js.map +1 -1
- package/dist/core/stale-agent-checker.d.ts.map +1 -1
- package/dist/core/stale-agent-checker.js +3 -1
- package/dist/core/stale-agent-checker.js.map +1 -1
- package/dist/core/store.d.ts +3 -0
- package/dist/core/store.d.ts.map +1 -1
- package/dist/core/store.js +42 -20
- package/dist/core/store.js.map +1 -1
- package/dist/core/tool.d.ts +5 -1
- package/dist/core/tool.d.ts.map +1 -1
- package/dist/core/tool.js +7 -1
- package/dist/core/tool.js.map +1 -1
- package/dist/core/types.d.ts +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/core/types.js +8 -3
- package/dist/core/types.js.map +1 -1
- package/dist/core/user-identity.d.ts +5 -5
- package/dist/core/user-identity.d.ts.map +1 -1
- package/dist/core/user-identity.js +59 -45
- package/dist/core/user-identity.js.map +1 -1
- package/package.json +9 -4
- package/src/account-cli.ts +4 -1
- package/src/bridges/user/web/dist/mesh-worker.js +4 -4
- package/src/bridges/user/web/dist/sw.js +1 -1
- package/src/cli-main.ts +10 -12
- package/src/core/account-bundle.ts +36 -25
- package/src/core/account-join.ts +5 -2
- package/src/core/account-ledger-crypto.ts +4 -1
- package/src/core/account-ledger-store.ts +11 -3
- package/src/core/account-ledger.ts +142 -20
- package/src/core/bridge-mesh.ts +4 -0
- package/src/core/bridge.ts +24 -4
- package/src/core/capability-ask.ts +16 -1
- package/src/core/connection-code-tool.ts +2 -2
- package/src/core/connection-code.ts +34 -8
- package/src/core/device-membership.ts +12 -8
- package/src/core/dm-grant-actions.ts +7 -1
- package/src/core/error-reporting.ts +5 -0
- package/src/core/gateway-trust.ts +4 -4
- package/src/core/group-proofs.ts +5 -2
- package/src/core/identity-store.ts +182 -191
- package/src/core/index.ts +1 -0
- package/src/core/iso-timestamp.ts +21 -0
- package/src/core/issuer-identity-file.ts +87 -23
- package/src/core/machine-identity.ts +15 -12
- package/src/core/mesh-store.ts +2 -1
- package/src/core/peer-lifecycle.ts +9 -4
- package/src/core/pid-lock-file.ts +139 -11
- package/src/core/process-start.ts +45 -0
- package/src/core/room-lifecycle.ts +12 -9
- package/src/core/room-protocol.ts +23 -3
- package/src/core/stale-agent-checker.ts +3 -1
- package/src/core/store.ts +48 -23
- package/src/core/tool.ts +14 -1
- package/src/core/types.ts +9 -3
- package/src/core/user-identity.ts +65 -51
- package/dist/bridges/user/web/frontend/boot-logic.d.ts +0 -18
- package/dist/bridges/user/web/frontend/boot-logic.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/boot-logic.js +0 -20
- package/dist/bridges/user/web/frontend/boot-logic.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/App.d.ts +0 -26
- package/dist/bridges/user/web/frontend/components/App.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/App.js +0 -25
- package/dist/bridges/user/web/frontend/components/App.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/ChatArea.d.ts +0 -19
- package/dist/bridges/user/web/frontend/components/ChatArea.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/ChatArea.js +0 -32
- package/dist/bridges/user/web/frontend/components/ChatArea.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/CreateRoomForm.d.ts +0 -11
- package/dist/bridges/user/web/frontend/components/CreateRoomForm.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/CreateRoomForm.js +0 -39
- package/dist/bridges/user/web/frontend/components/CreateRoomForm.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/JoinForm.d.ts +0 -11
- package/dist/bridges/user/web/frontend/components/JoinForm.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/JoinForm.js +0 -12
- package/dist/bridges/user/web/frontend/components/JoinForm.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/MeshGraphView.d.ts +0 -16
- package/dist/bridges/user/web/frontend/components/MeshGraphView.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/MeshGraphView.js +0 -56
- package/dist/bridges/user/web/frontend/components/MeshGraphView.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/MeshPanel.d.ts +0 -13
- package/dist/bridges/user/web/frontend/components/MeshPanel.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/MeshPanel.js +0 -36
- package/dist/bridges/user/web/frontend/components/MeshPanel.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/MeshTraceView.d.ts +0 -20
- package/dist/bridges/user/web/frontend/components/MeshTraceView.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/MeshTraceView.js +0 -27
- package/dist/bridges/user/web/frontend/components/MeshTraceView.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/Message.d.ts +0 -8
- package/dist/bridges/user/web/frontend/components/Message.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/Message.js +0 -19
- package/dist/bridges/user/web/frontend/components/Message.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/MessageList.d.ts +0 -8
- package/dist/bridges/user/web/frontend/components/MessageList.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/MessageList.js +0 -18
- package/dist/bridges/user/web/frontend/components/MessageList.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/ProjectTree.d.ts +0 -16
- package/dist/bridges/user/web/frontend/components/ProjectTree.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/ProjectTree.js +0 -78
- package/dist/bridges/user/web/frontend/components/ProjectTree.js.map +0 -1
- package/dist/bridges/user/web/frontend/components/Sidebar.d.ts +0 -19
- package/dist/bridges/user/web/frontend/components/Sidebar.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/components/Sidebar.js +0 -39
- package/dist/bridges/user/web/frontend/components/Sidebar.js.map +0 -1
- package/dist/bridges/user/web/frontend/dispatch-action.d.ts +0 -10
- package/dist/bridges/user/web/frontend/dispatch-action.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/dispatch-action.js +0 -62
- package/dist/bridges/user/web/frontend/dispatch-action.js.map +0 -1
- package/dist/bridges/user/web/frontend/event-pump.d.ts +0 -24
- package/dist/bridges/user/web/frontend/event-pump.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/event-pump.js +0 -91
- package/dist/bridges/user/web/frontend/event-pump.js.map +0 -1
- package/dist/bridges/user/web/frontend/input.d.ts +0 -37
- package/dist/bridges/user/web/frontend/input.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/input.js +0 -173
- package/dist/bridges/user/web/frontend/input.js.map +0 -1
- package/dist/bridges/user/web/frontend/main.d.ts +0 -7
- package/dist/bridges/user/web/frontend/main.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/main.js +0 -203
- package/dist/bridges/user/web/frontend/main.js.map +0 -1
- package/dist/bridges/user/web/frontend/mesh-client.d.ts +0 -86
- package/dist/bridges/user/web/frontend/mesh-client.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/mesh-client.js +0 -274
- package/dist/bridges/user/web/frontend/mesh-client.js.map +0 -1
- package/dist/bridges/user/web/frontend/mesh-invalidation.d.ts +0 -11
- package/dist/bridges/user/web/frontend/mesh-invalidation.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/mesh-invalidation.js +0 -26
- package/dist/bridges/user/web/frontend/mesh-invalidation.js.map +0 -1
- package/dist/bridges/user/web/frontend/mesh-worker.d.ts +0 -129
- package/dist/bridges/user/web/frontend/mesh-worker.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/mesh-worker.js +0 -344
- package/dist/bridges/user/web/frontend/mesh-worker.js.map +0 -1
- package/dist/bridges/user/web/frontend/messages.d.ts +0 -18
- package/dist/bridges/user/web/frontend/messages.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/messages.js +0 -91
- package/dist/bridges/user/web/frontend/messages.js.map +0 -1
- package/dist/bridges/user/web/frontend/project-tree.d.ts +0 -9
- package/dist/bridges/user/web/frontend/project-tree.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/project-tree.js +0 -174
- package/dist/bridges/user/web/frontend/project-tree.js.map +0 -1
- package/dist/bridges/user/web/frontend/served-by-bridge.d.ts +0 -10
- package/dist/bridges/user/web/frontend/served-by-bridge.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/served-by-bridge.js +0 -10
- package/dist/bridges/user/web/frontend/served-by-bridge.js.map +0 -1
- package/dist/bridges/user/web/frontend/state.d.ts +0 -39
- package/dist/bridges/user/web/frontend/state.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/state.js +0 -82
- package/dist/bridges/user/web/frontend/state.js.map +0 -1
- package/dist/bridges/user/web/frontend/sw.d.ts +0 -13
- package/dist/bridges/user/web/frontend/sw.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/sw.js +0 -91
- package/dist/bridges/user/web/frontend/sw.js.map +0 -1
- package/dist/bridges/user/web/frontend/tab-contract.d.ts +0 -802
- package/dist/bridges/user/web/frontend/tab-contract.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/tab-contract.js +0 -13
- package/dist/bridges/user/web/frontend/tab-contract.js.map +0 -1
- package/dist/bridges/user/web/frontend/theme.d.ts +0 -154
- package/dist/bridges/user/web/frontend/theme.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/theme.js +0 -36
- package/dist/bridges/user/web/frontend/theme.js.map +0 -1
- package/dist/bridges/user/web/frontend/types.d.ts +0 -189
- package/dist/bridges/user/web/frontend/types.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/types.js +0 -7
- package/dist/bridges/user/web/frontend/types.js.map +0 -1
- package/dist/bridges/user/web/frontend/url-sync.d.ts +0 -48
- package/dist/bridges/user/web/frontend/url-sync.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/url-sync.js +0 -76
- package/dist/bridges/user/web/frontend/url-sync.js.map +0 -1
- package/dist/bridges/user/web/frontend/use-client-state.d.ts +0 -6
- package/dist/bridges/user/web/frontend/use-client-state.d.ts.map +0 -1
- package/dist/bridges/user/web/frontend/use-client-state.js +0 -8
- package/dist/bridges/user/web/frontend/use-client-state.js.map +0 -1
- package/dist/bridges/user/web/test/bridge-port-range.integration.test.d.ts +0 -2
- package/dist/bridges/user/web/test/bridge-port-range.integration.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/bridge-port-range.integration.test.js +0 -281
- package/dist/bridges/user/web/test/bridge-port-range.integration.test.js.map +0 -1
- package/dist/bridges/user/web/test/bridge-web-server.helper.d.ts +0 -13
- package/dist/bridges/user/web/test/bridge-web-server.helper.d.ts.map +0 -1
- package/dist/bridges/user/web/test/bridge-web-server.helper.js +0 -46
- package/dist/bridges/user/web/test/bridge-web-server.helper.js.map +0 -1
- package/dist/bridges/user/web/test/bridge-web-server.integration.test.d.ts +0 -2
- package/dist/bridges/user/web/test/bridge-web-server.integration.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/bridge-web-server.integration.test.js +0 -49
- package/dist/bridges/user/web/test/bridge-web-server.integration.test.js.map +0 -1
- package/dist/bridges/user/web/test/contract.unit.test.d.ts +0 -2
- package/dist/bridges/user/web/test/contract.unit.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/contract.unit.test.js +0 -56
- package/dist/bridges/user/web/test/contract.unit.test.js.map +0 -1
- package/dist/bridges/user/web/test/event-publisher.unit.test.d.ts +0 -2
- package/dist/bridges/user/web/test/event-publisher.unit.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/event-publisher.unit.test.js +0 -245
- package/dist/bridges/user/web/test/event-publisher.unit.test.js.map +0 -1
- package/dist/bridges/user/web/test/lan-web-server.integration.test.d.ts +0 -7
- package/dist/bridges/user/web/test/lan-web-server.integration.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/lan-web-server.integration.test.js +0 -275
- package/dist/bridges/user/web/test/lan-web-server.integration.test.js.map +0 -1
- package/dist/bridges/user/web/test/orpc-router.integration.test.d.ts +0 -7
- package/dist/bridges/user/web/test/orpc-router.integration.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/orpc-router.integration.test.js +0 -264
- package/dist/bridges/user/web/test/orpc-router.integration.test.js.map +0 -1
- package/dist/bridges/user/web/test/web-access.unit.test.d.ts +0 -5
- package/dist/bridges/user/web/test/web-access.unit.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/web-access.unit.test.js +0 -40
- package/dist/bridges/user/web/test/web-access.unit.test.js.map +0 -1
- package/dist/bridges/user/web/test/web-assets.unit.test.d.ts +0 -5
- package/dist/bridges/user/web/test/web-assets.unit.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/web-assets.unit.test.js +0 -90
- package/dist/bridges/user/web/test/web-assets.unit.test.js.map +0 -1
- package/dist/bridges/user/web/test/web-beacon.unit.test.d.ts +0 -5
- package/dist/bridges/user/web/test/web-beacon.unit.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/web-beacon.unit.test.js +0 -40
- package/dist/bridges/user/web/test/web-beacon.unit.test.js.map +0 -1
- package/dist/bridges/user/web/test/web-console-route.integration.test.d.ts +0 -5
- package/dist/bridges/user/web/test/web-console-route.integration.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/web-console-route.integration.test.js +0 -112
- package/dist/bridges/user/web/test/web-console-route.integration.test.js.map +0 -1
- package/dist/bridges/user/web/test/web-console-static.unit.test.d.ts +0 -5
- package/dist/bridges/user/web/test/web-console-static.unit.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/web-console-static.unit.test.js +0 -135
- package/dist/bridges/user/web/test/web-console-static.unit.test.js.map +0 -1
- package/dist/bridges/user/web/test/web-server-unbuilt-frontend.integration.test.d.ts +0 -2
- package/dist/bridges/user/web/test/web-server-unbuilt-frontend.integration.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/web-server-unbuilt-frontend.integration.test.js +0 -77
- package/dist/bridges/user/web/test/web-server-unbuilt-frontend.integration.test.js.map +0 -1
- package/dist/bridges/user/web/test/web-server.integration.test.d.ts +0 -7
- package/dist/bridges/user/web/test/web-server.integration.test.d.ts.map +0 -1
- package/dist/bridges/user/web/test/web-server.integration.test.js +0 -266
- package/dist/bridges/user/web/test/web-server.integration.test.js.map +0 -1
- package/dist/bridges/user/web/vite.config.d.ts +0 -10
- package/dist/bridges/user/web/vite.config.d.ts.map +0 -1
- package/dist/bridges/user/web/vite.config.js +0 -68
- package/dist/bridges/user/web/vite.config.js.map +0 -1
- package/dist/core/test/build-action.unit.test.d.ts +0 -2
- package/dist/core/test/build-action.unit.test.d.ts.map +0 -1
- package/dist/core/test/build-action.unit.test.js +0 -26
- package/dist/core/test/build-action.unit.test.js.map +0 -1
- package/dist/core/test/identity.unit.test.d.ts +0 -5
- package/dist/core/test/identity.unit.test.d.ts.map +0 -1
- package/dist/core/test/identity.unit.test.js +0 -168
- package/dist/core/test/identity.unit.test.js.map +0 -1
- package/dist/core/test/package-version.unit.test.d.ts +0 -5
- package/dist/core/test/package-version.unit.test.d.ts.map +0 -1
- package/dist/core/test/package-version.unit.test.js +0 -30
- package/dist/core/test/package-version.unit.test.js.map +0 -1
- package/dist/core/test/version-check.unit.test.d.ts +0 -5
- package/dist/core/test/version-check.unit.test.d.ts.map +0 -1
- package/dist/core/test/version-check.unit.test.js +0 -191
- package/dist/core/test/version-check.unit.test.js.map +0 -1
- package/dist/test/account-join.integration.test.d.ts +0 -5
- package/dist/test/account-join.integration.test.d.ts.map +0 -1
- package/dist/test/account-join.integration.test.js +0 -279
- package/dist/test/account-join.integration.test.js.map +0 -1
- package/dist/test/account-ledger-helpers.d.ts +0 -35
- package/dist/test/account-ledger-helpers.d.ts.map +0 -1
- package/dist/test/account-ledger-helpers.js +0 -81
- package/dist/test/account-ledger-helpers.js.map +0 -1
- package/dist/test/account-ledger-hub-replication.integration.test.d.ts +0 -5
- package/dist/test/account-ledger-hub-replication.integration.test.d.ts.map +0 -1
- package/dist/test/account-ledger-hub-replication.integration.test.js +0 -100
- package/dist/test/account-ledger-hub-replication.integration.test.js.map +0 -1
- package/dist/test/account-ledger-lock-worker.d.ts +0 -9
- package/dist/test/account-ledger-lock-worker.d.ts.map +0 -1
- package/dist/test/account-ledger-lock-worker.js +0 -34
- package/dist/test/account-ledger-lock-worker.js.map +0 -1
- package/dist/test/account-ledger-lock.integration.test.d.ts +0 -5
- package/dist/test/account-ledger-lock.integration.test.d.ts.map +0 -1
- package/dist/test/account-ledger-lock.integration.test.js +0 -71
- package/dist/test/account-ledger-lock.integration.test.js.map +0 -1
- package/dist/test/account-ledger-replication.integration.test.d.ts +0 -5
- package/dist/test/account-ledger-replication.integration.test.d.ts.map +0 -1
- package/dist/test/account-ledger-replication.integration.test.js +0 -83
- package/dist/test/account-ledger-replication.integration.test.js.map +0 -1
- package/dist/test/account-ledger.unit.test.d.ts +0 -5
- package/dist/test/account-ledger.unit.test.d.ts.map +0 -1
- package/dist/test/account-ledger.unit.test.js +0 -317
- package/dist/test/account-ledger.unit.test.js.map +0 -1
- package/dist/test/account-transfer.unit.test.d.ts +0 -5
- package/dist/test/account-transfer.unit.test.d.ts.map +0 -1
- package/dist/test/account-transfer.unit.test.js +0 -232
- package/dist/test/account-transfer.unit.test.js.map +0 -1
- package/dist/test/agent-comms-version-gossip.integration.test.d.ts +0 -5
- package/dist/test/agent-comms-version-gossip.integration.test.d.ts.map +0 -1
- package/dist/test/agent-comms-version-gossip.integration.test.js +0 -112
- package/dist/test/agent-comms-version-gossip.integration.test.js.map +0 -1
- package/dist/test/agent-details-hub.integration.test.d.ts +0 -2
- package/dist/test/agent-details-hub.integration.test.d.ts.map +0 -1
- package/dist/test/agent-details-hub.integration.test.js +0 -64
- package/dist/test/agent-details-hub.integration.test.js.map +0 -1
- package/dist/test/agent-details-refresh.unit.test.d.ts +0 -5
- package/dist/test/agent-details-refresh.unit.test.d.ts.map +0 -1
- package/dist/test/agent-details-refresh.unit.test.js +0 -108
- package/dist/test/agent-details-refresh.unit.test.js.map +0 -1
- package/dist/test/agent-details.unit.test.d.ts +0 -5
- package/dist/test/agent-details.unit.test.d.ts.map +0 -1
- package/dist/test/agent-details.unit.test.js +0 -86
- package/dist/test/agent-details.unit.test.js.map +0 -1
- package/dist/test/agent-registry.unit.test.d.ts +0 -2
- package/dist/test/agent-registry.unit.test.d.ts.map +0 -1
- package/dist/test/agent-registry.unit.test.js +0 -507
- package/dist/test/agent-registry.unit.test.js.map +0 -1
- package/dist/test/agent-self-gossip.integration.test.d.ts +0 -5
- package/dist/test/agent-self-gossip.integration.test.d.ts.map +0 -1
- package/dist/test/agent-self-gossip.integration.test.js +0 -102
- package/dist/test/agent-self-gossip.integration.test.js.map +0 -1
- package/dist/test/approval.integration.test.d.ts +0 -9
- package/dist/test/approval.integration.test.d.ts.map +0 -1
- package/dist/test/approval.integration.test.js +0 -516
- package/dist/test/approval.integration.test.js.map +0 -1
- package/dist/test/become-coordinator-actual-port.integration.test.d.ts +0 -5
- package/dist/test/become-coordinator-actual-port.integration.test.d.ts.map +0 -1
- package/dist/test/become-coordinator-actual-port.integration.test.js +0 -74
- package/dist/test/become-coordinator-actual-port.integration.test.js.map +0 -1
- package/dist/test/bridge-mesh-data-directory.integration.test.d.ts +0 -2
- package/dist/test/bridge-mesh-data-directory.integration.test.d.ts.map +0 -1
- package/dist/test/bridge-mesh-data-directory.integration.test.js +0 -234
- package/dist/test/bridge-mesh-data-directory.integration.test.js.map +0 -1
- package/dist/test/bridge-mesh-version-drift.integration.test.d.ts +0 -7
- package/dist/test/bridge-mesh-version-drift.integration.test.d.ts.map +0 -1
- package/dist/test/bridge-mesh-version-drift.integration.test.js +0 -98
- package/dist/test/bridge-mesh-version-drift.integration.test.js.map +0 -1
- package/dist/test/bridge-mesh.integration.test.d.ts +0 -5
- package/dist/test/bridge-mesh.integration.test.d.ts.map +0 -1
- package/dist/test/bridge-mesh.integration.test.js +0 -206
- package/dist/test/bridge-mesh.integration.test.js.map +0 -1
- package/dist/test/bridge-stdout.runner.d.ts +0 -5
- package/dist/test/bridge-stdout.runner.d.ts.map +0 -1
- package/dist/test/bridge-stdout.runner.js +0 -54
- package/dist/test/bridge-stdout.runner.js.map +0 -1
- package/dist/test/broadcast-window.integration.test.d.ts +0 -7
- package/dist/test/broadcast-window.integration.test.d.ts.map +0 -1
- package/dist/test/broadcast-window.integration.test.js +0 -74
- package/dist/test/broadcast-window.integration.test.js.map +0 -1
- package/dist/test/capability-admission-tool-actions.integration.test.d.ts +0 -5
- package/dist/test/capability-admission-tool-actions.integration.test.d.ts.map +0 -1
- package/dist/test/capability-admission-tool-actions.integration.test.js +0 -198
- package/dist/test/capability-admission-tool-actions.integration.test.js.map +0 -1
- package/dist/test/capability-ask.unit.test.d.ts +0 -2
- package/dist/test/capability-ask.unit.test.d.ts.map +0 -1
- package/dist/test/capability-ask.unit.test.js +0 -300
- package/dist/test/capability-ask.unit.test.js.map +0 -1
- package/dist/test/capability-bubble-up.unit.test.d.ts +0 -2
- package/dist/test/capability-bubble-up.unit.test.d.ts.map +0 -1
- package/dist/test/capability-bubble-up.unit.test.js +0 -350
- package/dist/test/capability-bubble-up.unit.test.js.map +0 -1
- package/dist/test/cc-peer-alias-reply-routing.integration.test.d.ts +0 -5
- package/dist/test/cc-peer-alias-reply-routing.integration.test.d.ts.map +0 -1
- package/dist/test/cc-peer-alias-reply-routing.integration.test.js +0 -149
- package/dist/test/cc-peer-alias-reply-routing.integration.test.js.map +0 -1
- package/dist/test/cc-peer-approval-commands.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-approval-commands.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-approval-commands.unit.test.js +0 -110
- package/dist/test/cc-peer-approval-commands.unit.test.js.map +0 -1
- package/dist/test/cc-peer-bridge.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-bridge.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-bridge.unit.test.js +0 -361
- package/dist/test/cc-peer-bridge.unit.test.js.map +0 -1
- package/dist/test/cc-peer-default-front.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-default-front.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-default-front.unit.test.js +0 -83
- package/dist/test/cc-peer-default-front.unit.test.js.map +0 -1
- package/dist/test/cc-peer-front-controller.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-front-controller.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-front-controller.unit.test.js +0 -398
- package/dist/test/cc-peer-front-controller.unit.test.js.map +0 -1
- package/dist/test/cc-peer-front-relay.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-front-relay.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-front-relay.unit.test.js +0 -725
- package/dist/test/cc-peer-front-relay.unit.test.js.map +0 -1
- package/dist/test/cc-peer-front-runtime-mesh.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-front-runtime-mesh.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-front-runtime-mesh.unit.test.js +0 -57
- package/dist/test/cc-peer-front-runtime-mesh.unit.test.js.map +0 -1
- package/dist/test/cc-peer-front-runtime.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-front-runtime.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-front-runtime.unit.test.js +0 -72
- package/dist/test/cc-peer-front-runtime.unit.test.js.map +0 -1
- package/dist/test/cc-peer-front.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-front.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-front.unit.test.js +0 -109
- package/dist/test/cc-peer-front.unit.test.js.map +0 -1
- package/dist/test/cc-peer-fronted-approval.integration.test.d.ts +0 -5
- package/dist/test/cc-peer-fronted-approval.integration.test.d.ts.map +0 -1
- package/dist/test/cc-peer-fronted-approval.integration.test.js +0 -138
- package/dist/test/cc-peer-fronted-approval.integration.test.js.map +0 -1
- package/dist/test/cc-peer-reply-aliases.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-reply-aliases.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-reply-aliases.unit.test.js +0 -142
- package/dist/test/cc-peer-reply-aliases.unit.test.js.map +0 -1
- package/dist/test/cc-peer-shared-peer.unit.test.d.ts +0 -2
- package/dist/test/cc-peer-shared-peer.unit.test.d.ts.map +0 -1
- package/dist/test/cc-peer-shared-peer.unit.test.js +0 -48
- package/dist/test/cc-peer-shared-peer.unit.test.js.map +0 -1
- package/dist/test/chat-controller-mesh-errors.integration.test.d.ts +0 -2
- package/dist/test/chat-controller-mesh-errors.integration.test.d.ts.map +0 -1
- package/dist/test/chat-controller-mesh-errors.integration.test.js +0 -50
- package/dist/test/chat-controller-mesh-errors.integration.test.js.map +0 -1
- package/dist/test/ci-required-checks.unit.test.d.ts +0 -2
- package/dist/test/ci-required-checks.unit.test.d.ts.map +0 -1
- package/dist/test/ci-required-checks.unit.test.js +0 -137
- package/dist/test/ci-required-checks.unit.test.js.map +0 -1
- package/dist/test/claude-command.unit.test.d.ts +0 -2
- package/dist/test/claude-command.unit.test.d.ts.map +0 -1
- package/dist/test/claude-command.unit.test.js +0 -11
- package/dist/test/claude-command.unit.test.js.map +0 -1
- package/dist/test/conformance/corpus-files.d.ts +0 -11
- package/dist/test/conformance/corpus-files.d.ts.map +0 -1
- package/dist/test/conformance/corpus-files.js +0 -71
- package/dist/test/conformance/corpus-files.js.map +0 -1
- package/dist/test/conformance/corpus-types.d.ts +0 -62
- package/dist/test/conformance/corpus-types.d.ts.map +0 -1
- package/dist/test/conformance/corpus-types.js +0 -8
- package/dist/test/conformance/corpus-types.js.map +0 -1
- package/dist/test/conformance/corpus.d.ts +0 -34
- package/dist/test/conformance/corpus.d.ts.map +0 -1
- package/dist/test/conformance/corpus.js +0 -134
- package/dist/test/conformance/corpus.js.map +0 -1
- package/dist/test/conformance/read-json.d.ts +0 -4
- package/dist/test/conformance/read-json.d.ts.map +0 -1
- package/dist/test/conformance/read-json.js +0 -11
- package/dist/test/conformance/read-json.js.map +0 -1
- package/dist/test/conformance/test-titles.d.ts +0 -4
- package/dist/test/conformance/test-titles.d.ts.map +0 -1
- package/dist/test/conformance/test-titles.js +0 -86
- package/dist/test/conformance/test-titles.js.map +0 -1
- package/dist/test/conformance/text.d.ts +0 -10
- package/dist/test/conformance/text.d.ts.map +0 -1
- package/dist/test/conformance/text.js +0 -64
- package/dist/test/conformance/text.js.map +0 -1
- package/dist/test/conformance/validate.d.ts +0 -24
- package/dist/test/conformance/validate.d.ts.map +0 -1
- package/dist/test/conformance/validate.js +0 -153
- package/dist/test/conformance/validate.js.map +0 -1
- package/dist/test/conformance-functions.helper.d.ts +0 -19
- package/dist/test/conformance-functions.helper.d.ts.map +0 -1
- package/dist/test/conformance-functions.helper.js +0 -586
- package/dist/test/conformance-functions.helper.js.map +0 -1
- package/dist/test/conformance-kept-tests.unit.test.d.ts +0 -2
- package/dist/test/conformance-kept-tests.unit.test.d.ts.map +0 -1
- package/dist/test/conformance-kept-tests.unit.test.js +0 -220
- package/dist/test/conformance-kept-tests.unit.test.js.map +0 -1
- package/dist/test/conformance.unit.test.d.ts +0 -2
- package/dist/test/conformance.unit.test.d.ts.map +0 -1
- package/dist/test/conformance.unit.test.js +0 -371
- package/dist/test/conformance.unit.test.js.map +0 -1
- package/dist/test/connection-approval.unit.test.d.ts +0 -2
- package/dist/test/connection-approval.unit.test.d.ts.map +0 -1
- package/dist/test/connection-approval.unit.test.js +0 -194
- package/dist/test/connection-approval.unit.test.js.map +0 -1
- package/dist/test/connection-code-ledger-persistence.unit.test.d.ts +0 -5
- package/dist/test/connection-code-ledger-persistence.unit.test.d.ts.map +0 -1
- package/dist/test/connection-code-ledger-persistence.unit.test.js +0 -84
- package/dist/test/connection-code-ledger-persistence.unit.test.js.map +0 -1
- package/dist/test/connection-code-tool.e2e.test.d.ts +0 -2
- package/dist/test/connection-code-tool.e2e.test.d.ts.map +0 -1
- package/dist/test/connection-code-tool.e2e.test.js +0 -300
- package/dist/test/connection-code-tool.e2e.test.js.map +0 -1
- package/dist/test/connection-code.unit.test.d.ts +0 -5
- package/dist/test/connection-code.unit.test.d.ts.map +0 -1
- package/dist/test/connection-code.unit.test.js +0 -234
- package/dist/test/connection-code.unit.test.js.map +0 -1
- package/dist/test/coordinator-claim-sessions.integration.test.d.ts +0 -5
- package/dist/test/coordinator-claim-sessions.integration.test.d.ts.map +0 -1
- package/dist/test/coordinator-claim-sessions.integration.test.js +0 -276
- package/dist/test/coordinator-claim-sessions.integration.test.js.map +0 -1
- package/dist/test/coordinator-election.integration.test.d.ts +0 -5
- package/dist/test/coordinator-election.integration.test.d.ts.map +0 -1
- package/dist/test/coordinator-election.integration.test.js +0 -182
- package/dist/test/coordinator-election.integration.test.js.map +0 -1
- package/dist/test/coordinator-failover-hub.integration.test.d.ts +0 -5
- package/dist/test/coordinator-failover-hub.integration.test.d.ts.map +0 -1
- package/dist/test/coordinator-failover-hub.integration.test.js +0 -84
- package/dist/test/coordinator-failover-hub.integration.test.js.map +0 -1
- package/dist/test/coordinator-failover.integration.test.d.ts +0 -5
- package/dist/test/coordinator-failover.integration.test.d.ts.map +0 -1
- package/dist/test/coordinator-failover.integration.test.js +0 -150
- package/dist/test/coordinator-failover.integration.test.js.map +0 -1
- package/dist/test/coordinator-failover.unit.test.d.ts +0 -5
- package/dist/test/coordinator-failover.unit.test.d.ts.map +0 -1
- package/dist/test/coordinator-failover.unit.test.js +0 -377
- package/dist/test/coordinator-failover.unit.test.js.map +0 -1
- package/dist/test/coordinator-role.unit.test.d.ts +0 -5
- package/dist/test/coordinator-role.unit.test.d.ts.map +0 -1
- package/dist/test/coordinator-role.unit.test.js +0 -410
- package/dist/test/coordinator-role.unit.test.js.map +0 -1
- package/dist/test/coordinator-socket-error.integration.test.d.ts +0 -8
- package/dist/test/coordinator-socket-error.integration.test.d.ts.map +0 -1
- package/dist/test/coordinator-socket-error.integration.test.js +0 -47
- package/dist/test/coordinator-socket-error.integration.test.js.map +0 -1
- package/dist/test/create-room-mints-owner-grant.integration.test.d.ts +0 -5
- package/dist/test/create-room-mints-owner-grant.integration.test.d.ts.map +0 -1
- package/dist/test/create-room-mints-owner-grant.integration.test.js +0 -54
- package/dist/test/create-room-mints-owner-grant.integration.test.js.map +0 -1
- package/dist/test/create-room-name-sanitisation.integration.test.d.ts +0 -5
- package/dist/test/create-room-name-sanitisation.integration.test.d.ts.map +0 -1
- package/dist/test/create-room-name-sanitisation.integration.test.js +0 -51
- package/dist/test/create-room-name-sanitisation.integration.test.js.map +0 -1
- package/dist/test/data-directory.unit.test.d.ts +0 -2
- package/dist/test/data-directory.unit.test.d.ts.map +0 -1
- package/dist/test/data-directory.unit.test.js +0 -27
- package/dist/test/data-directory.unit.test.js.map +0 -1
- package/dist/test/data-frame-routing.unit.test.d.ts +0 -5
- package/dist/test/data-frame-routing.unit.test.d.ts.map +0 -1
- package/dist/test/data-frame-routing.unit.test.js +0 -79
- package/dist/test/data-frame-routing.unit.test.js.map +0 -1
- package/dist/test/data-sync-frame-handling.integration.test.d.ts +0 -5
- package/dist/test/data-sync-frame-handling.integration.test.d.ts.map +0 -1
- package/dist/test/data-sync-frame-handling.integration.test.js +0 -118
- package/dist/test/data-sync-frame-handling.integration.test.js.map +0 -1
- package/dist/test/delivery-engine-delivery.unit.test.d.ts +0 -2
- package/dist/test/delivery-engine-delivery.unit.test.d.ts.map +0 -1
- package/dist/test/delivery-engine-delivery.unit.test.js +0 -729
- package/dist/test/delivery-engine-delivery.unit.test.js.map +0 -1
- package/dist/test/delivery-engine-directed-notify.unit.test.d.ts +0 -2
- package/dist/test/delivery-engine-directed-notify.unit.test.d.ts.map +0 -1
- package/dist/test/delivery-engine-directed-notify.unit.test.js +0 -319
- package/dist/test/delivery-engine-directed-notify.unit.test.js.map +0 -1
- package/dist/test/delivery-engine-own-agent.unit.test.d.ts +0 -2
- package/dist/test/delivery-engine-own-agent.unit.test.d.ts.map +0 -1
- package/dist/test/delivery-engine-own-agent.unit.test.js +0 -144
- package/dist/test/delivery-engine-own-agent.unit.test.js.map +0 -1
- package/dist/test/delivery-engine.unit.test.d.ts +0 -2
- package/dist/test/delivery-engine.unit.test.d.ts.map +0 -1
- package/dist/test/delivery-engine.unit.test.js +0 -711
- package/dist/test/delivery-engine.unit.test.js.map +0 -1
- package/dist/test/delivery-receipt.helper.d.ts +0 -16
- package/dist/test/delivery-receipt.helper.d.ts.map +0 -1
- package/dist/test/delivery-receipt.helper.js +0 -480
- package/dist/test/delivery-receipt.helper.js.map +0 -1
- package/dist/test/delivery-receipt.runner.d.ts +0 -8
- package/dist/test/delivery-receipt.runner.d.ts.map +0 -1
- package/dist/test/delivery-receipt.runner.js +0 -46
- package/dist/test/delivery-receipt.runner.js.map +0 -1
- package/dist/test/device-membership-verification.unit.test.d.ts +0 -2
- package/dist/test/device-membership-verification.unit.test.d.ts.map +0 -1
- package/dist/test/device-membership-verification.unit.test.js +0 -214
- package/dist/test/device-membership-verification.unit.test.js.map +0 -1
- package/dist/test/device-membership.unit.test.d.ts +0 -2
- package/dist/test/device-membership.unit.test.d.ts.map +0 -1
- package/dist/test/device-membership.unit.test.js +0 -250
- package/dist/test/device-membership.unit.test.js.map +0 -1
- package/dist/test/directory-admission.unit.test.d.ts +0 -2
- package/dist/test/directory-admission.unit.test.d.ts.map +0 -1
- package/dist/test/directory-admission.unit.test.js +0 -300
- package/dist/test/directory-admission.unit.test.js.map +0 -1
- package/dist/test/discovery-mdns.unit.test.d.ts +0 -2
- package/dist/test/discovery-mdns.unit.test.d.ts.map +0 -1
- package/dist/test/discovery-mdns.unit.test.js +0 -123
- package/dist/test/discovery-mdns.unit.test.js.map +0 -1
- package/dist/test/dm-admission.integration.test.d.ts +0 -7
- package/dist/test/dm-admission.integration.test.d.ts.map +0 -1
- package/dist/test/dm-admission.integration.test.js +0 -90
- package/dist/test/dm-admission.integration.test.js.map +0 -1
- package/dist/test/dm-delivery-status.integration.test.d.ts +0 -5
- package/dist/test/dm-delivery-status.integration.test.d.ts.map +0 -1
- package/dist/test/dm-delivery-status.integration.test.js +0 -72
- package/dist/test/dm-delivery-status.integration.test.js.map +0 -1
- package/dist/test/dm-first-contact.integration.test.d.ts +0 -5
- package/dist/test/dm-first-contact.integration.test.d.ts.map +0 -1
- package/dist/test/dm-first-contact.integration.test.js +0 -100
- package/dist/test/dm-first-contact.integration.test.js.map +0 -1
- package/dist/test/dm-grant-actions.unit.test.d.ts +0 -2
- package/dist/test/dm-grant-actions.unit.test.d.ts.map +0 -1
- package/dist/test/dm-grant-actions.unit.test.js +0 -78
- package/dist/test/dm-grant-actions.unit.test.js.map +0 -1
- package/dist/test/dm-grant-tool.integration.test.d.ts +0 -5
- package/dist/test/dm-grant-tool.integration.test.d.ts.map +0 -1
- package/dist/test/dm-grant-tool.integration.test.js +0 -253
- package/dist/test/dm-grant-tool.integration.test.js.map +0 -1
- package/dist/test/dm-send-capability-admission.integration.test.d.ts +0 -5
- package/dist/test/dm-send-capability-admission.integration.test.d.ts.map +0 -1
- package/dist/test/dm-send-capability-admission.integration.test.js +0 -165
- package/dist/test/dm-send-capability-admission.integration.test.js.map +0 -1
- package/dist/test/dm-send-delegation.unit.test.d.ts +0 -2
- package/dist/test/dm-send-delegation.unit.test.d.ts.map +0 -1
- package/dist/test/dm-send-delegation.unit.test.js +0 -180
- package/dist/test/dm-send-delegation.unit.test.js.map +0 -1
- package/dist/test/dm-send-principal-delegation.integration.test.d.ts +0 -2
- package/dist/test/dm-send-principal-delegation.integration.test.d.ts.map +0 -1
- package/dist/test/dm-send-principal-delegation.integration.test.js +0 -90
- package/dist/test/dm-send-principal-delegation.integration.test.js.map +0 -1
- package/dist/test/dm-token-verification.unit.test.d.ts +0 -5
- package/dist/test/dm-token-verification.unit.test.d.ts.map +0 -1
- package/dist/test/dm-token-verification.unit.test.js +0 -164
- package/dist/test/dm-token-verification.unit.test.js.map +0 -1
- package/dist/test/election-sessions.unit.test.d.ts +0 -5
- package/dist/test/election-sessions.unit.test.d.ts.map +0 -1
- package/dist/test/election-sessions.unit.test.js +0 -104
- package/dist/test/election-sessions.unit.test.js.map +0 -1
- package/dist/test/error-reporting.unit.test.d.ts +0 -2
- package/dist/test/error-reporting.unit.test.d.ts.map +0 -1
- package/dist/test/error-reporting.unit.test.js +0 -20
- package/dist/test/error-reporting.unit.test.js.map +0 -1
- package/dist/test/filestore.unit.test.d.ts +0 -5
- package/dist/test/filestore.unit.test.d.ts.map +0 -1
- package/dist/test/filestore.unit.test.js +0 -175
- package/dist/test/filestore.unit.test.js.map +0 -1
- package/dist/test/first-contact.unit.test.d.ts +0 -2
- package/dist/test/first-contact.unit.test.d.ts.map +0 -1
- package/dist/test/first-contact.unit.test.js +0 -209
- package/dist/test/first-contact.unit.test.js.map +0 -1
- package/dist/test/front-real-bridge-identity-overlap.integration.test.d.ts +0 -7
- package/dist/test/front-real-bridge-identity-overlap.integration.test.d.ts.map +0 -1
- package/dist/test/front-real-bridge-identity-overlap.integration.test.js +0 -95
- package/dist/test/front-real-bridge-identity-overlap.integration.test.js.map +0 -1
- package/dist/test/gateway-trust-recheck.unit.test.d.ts +0 -2
- package/dist/test/gateway-trust-recheck.unit.test.d.ts.map +0 -1
- package/dist/test/gateway-trust-recheck.unit.test.js +0 -75
- package/dist/test/gateway-trust-recheck.unit.test.js.map +0 -1
- package/dist/test/gateway-trust-tool.integration.test.d.ts +0 -2
- package/dist/test/gateway-trust-tool.integration.test.d.ts.map +0 -1
- package/dist/test/gateway-trust-tool.integration.test.js +0 -352
- package/dist/test/gateway-trust-tool.integration.test.js.map +0 -1
- package/dist/test/gateway-trust.integration.test.d.ts +0 -5
- package/dist/test/gateway-trust.integration.test.d.ts.map +0 -1
- package/dist/test/gateway-trust.integration.test.js +0 -200
- package/dist/test/gateway-trust.integration.test.js.map +0 -1
- package/dist/test/gateway-trust.unit.test.d.ts +0 -2
- package/dist/test/gateway-trust.unit.test.d.ts.map +0 -1
- package/dist/test/gateway-trust.unit.test.js +0 -387
- package/dist/test/gateway-trust.unit.test.js.map +0 -1
- package/dist/test/gossip-directory-aggregation.integration.test.d.ts +0 -5
- package/dist/test/gossip-directory-aggregation.integration.test.d.ts.map +0 -1
- package/dist/test/gossip-directory-aggregation.integration.test.js +0 -98
- package/dist/test/gossip-directory-aggregation.integration.test.js.map +0 -1
- package/dist/test/gossip-directory.unit.test.d.ts +0 -2
- package/dist/test/gossip-directory.unit.test.d.ts.map +0 -1
- package/dist/test/gossip-directory.unit.test.js +0 -192
- package/dist/test/gossip-directory.unit.test.js.map +0 -1
- package/dist/test/gossip-listener-addresses.integration.test.d.ts +0 -5
- package/dist/test/gossip-listener-addresses.integration.test.d.ts.map +0 -1
- package/dist/test/gossip-listener-addresses.integration.test.js +0 -90
- package/dist/test/gossip-listener-addresses.integration.test.js.map +0 -1
- package/dist/test/handshake.integration.test.d.ts +0 -5
- package/dist/test/handshake.integration.test.d.ts.map +0 -1
- package/dist/test/handshake.integration.test.js +0 -211
- package/dist/test/handshake.integration.test.js.map +0 -1
- package/dist/test/hidden-line.unit.test.d.ts +0 -5
- package/dist/test/hidden-line.unit.test.d.ts.map +0 -1
- package/dist/test/hidden-line.unit.test.js +0 -40
- package/dist/test/hidden-line.unit.test.js.map +0 -1
- package/dist/test/hosted-rooms-gossip.integration.test.d.ts +0 -5
- package/dist/test/hosted-rooms-gossip.integration.test.d.ts.map +0 -1
- package/dist/test/hosted-rooms-gossip.integration.test.js +0 -103
- package/dist/test/hosted-rooms-gossip.integration.test.js.map +0 -1
- package/dist/test/hub-exposure.integration.test.d.ts +0 -5
- package/dist/test/hub-exposure.integration.test.d.ts.map +0 -1
- package/dist/test/hub-exposure.integration.test.js +0 -165
- package/dist/test/hub-exposure.integration.test.js.map +0 -1
- package/dist/test/hub-helpers.d.ts +0 -45
- package/dist/test/hub-helpers.d.ts.map +0 -1
- package/dist/test/hub-helpers.js +0 -245
- package/dist/test/hub-helpers.js.map +0 -1
- package/dist/test/hub-link.unit.test.d.ts +0 -2
- package/dist/test/hub-link.unit.test.d.ts.map +0 -1
- package/dist/test/hub-link.unit.test.js +0 -256
- package/dist/test/hub-link.unit.test.js.map +0 -1
- package/dist/test/hub-mode-session.integration.test.d.ts +0 -2
- package/dist/test/hub-mode-session.integration.test.d.ts.map +0 -1
- package/dist/test/hub-mode-session.integration.test.js +0 -173
- package/dist/test/hub-mode-session.integration.test.js.map +0 -1
- package/dist/test/hub-peer-per-store.integration.test.d.ts +0 -9
- package/dist/test/hub-peer-per-store.integration.test.d.ts.map +0 -1
- package/dist/test/hub-peer-per-store.integration.test.js +0 -218
- package/dist/test/hub-peer-per-store.integration.test.js.map +0 -1
- package/dist/test/hub-room-domain-verb-trust-bypass.integration.test.d.ts +0 -7
- package/dist/test/hub-room-domain-verb-trust-bypass.integration.test.d.ts.map +0 -1
- package/dist/test/hub-room-domain-verb-trust-bypass.integration.test.js +0 -93
- package/dist/test/hub-room-domain-verb-trust-bypass.integration.test.js.map +0 -1
- package/dist/test/hub-session-close.integration.test.d.ts +0 -5
- package/dist/test/hub-session-close.integration.test.d.ts.map +0 -1
- package/dist/test/hub-session-close.integration.test.js +0 -38
- package/dist/test/hub-session-close.integration.test.js.map +0 -1
- package/dist/test/hub-session-dispatch.unit.test.d.ts +0 -5
- package/dist/test/hub-session-dispatch.unit.test.d.ts.map +0 -1
- package/dist/test/hub-session-dispatch.unit.test.js +0 -192
- package/dist/test/hub-session-dispatch.unit.test.js.map +0 -1
- package/dist/test/identity-cert.unit.test.d.ts +0 -7
- package/dist/test/identity-cert.unit.test.d.ts.map +0 -1
- package/dist/test/identity-cert.unit.test.js +0 -19
- package/dist/test/identity-cert.unit.test.js.map +0 -1
- package/dist/test/identity-device-id.unit.test.d.ts +0 -5
- package/dist/test/identity-device-id.unit.test.d.ts.map +0 -1
- package/dist/test/identity-device-id.unit.test.js +0 -34
- package/dist/test/identity-device-id.unit.test.js.map +0 -1
- package/dist/test/identity-restart.integration.test.d.ts +0 -7
- package/dist/test/identity-restart.integration.test.d.ts.map +0 -1
- package/dist/test/identity-restart.integration.test.js +0 -173
- package/dist/test/identity-restart.integration.test.js.map +0 -1
- package/dist/test/identity-store-race-worker.d.ts +0 -7
- package/dist/test/identity-store-race-worker.d.ts.map +0 -1
- package/dist/test/identity-store-race-worker.js +0 -33
- package/dist/test/identity-store-race-worker.js.map +0 -1
- package/dist/test/identity-store-race.integration.test.d.ts +0 -5
- package/dist/test/identity-store-race.integration.test.d.ts.map +0 -1
- package/dist/test/identity-store-race.integration.test.js +0 -47
- package/dist/test/identity-store-race.integration.test.js.map +0 -1
- package/dist/test/identity-store-wait.unit.test.d.ts +0 -2
- package/dist/test/identity-store-wait.unit.test.d.ts.map +0 -1
- package/dist/test/identity-store-wait.unit.test.js +0 -75
- package/dist/test/identity-store-wait.unit.test.js.map +0 -1
- package/dist/test/identity-store.integration.test.d.ts +0 -5
- package/dist/test/identity-store.integration.test.d.ts.map +0 -1
- package/dist/test/identity-store.integration.test.js +0 -376
- package/dist/test/identity-store.integration.test.js.map +0 -1
- package/dist/test/issuer-grouping.unit.test.d.ts +0 -2
- package/dist/test/issuer-grouping.unit.test.d.ts.map +0 -1
- package/dist/test/issuer-grouping.unit.test.js +0 -137
- package/dist/test/issuer-grouping.unit.test.js.map +0 -1
- package/dist/test/lan-web-uis.unit.test.d.ts +0 -5
- package/dist/test/lan-web-uis.unit.test.d.ts.map +0 -1
- package/dist/test/lan-web-uis.unit.test.js +0 -72
- package/dist/test/lan-web-uis.unit.test.js.map +0 -1
- package/dist/test/listener-policy.integration.test.d.ts +0 -9
- package/dist/test/listener-policy.integration.test.d.ts.map +0 -1
- package/dist/test/listener-policy.integration.test.js +0 -310
- package/dist/test/listener-policy.integration.test.js.map +0 -1
- package/dist/test/loopback-address.unit.test.d.ts +0 -5
- package/dist/test/loopback-address.unit.test.d.ts.map +0 -1
- package/dist/test/loopback-address.unit.test.js +0 -28
- package/dist/test/loopback-address.unit.test.js.map +0 -1
- package/dist/test/machine-identity.unit.test.d.ts +0 -5
- package/dist/test/machine-identity.unit.test.d.ts.map +0 -1
- package/dist/test/machine-identity.unit.test.js +0 -80
- package/dist/test/machine-identity.unit.test.js.map +0 -1
- package/dist/test/machine-membership-trust.integration.test.d.ts +0 -5
- package/dist/test/machine-membership-trust.integration.test.d.ts.map +0 -1
- package/dist/test/machine-membership-trust.integration.test.js +0 -151
- package/dist/test/machine-membership-trust.integration.test.js.map +0 -1
- package/dist/test/manual-clock.d.ts +0 -7
- package/dist/test/manual-clock.d.ts.map +0 -1
- package/dist/test/manual-clock.js +0 -10
- package/dist/test/manual-clock.js.map +0 -1
- package/dist/test/mcp-stdout-channel.integration.test.d.ts +0 -5
- package/dist/test/mcp-stdout-channel.integration.test.d.ts.map +0 -1
- package/dist/test/mcp-stdout-channel.integration.test.js +0 -123
- package/dist/test/mcp-stdout-channel.integration.test.js.map +0 -1
- package/dist/test/mcp-tool-action-enum.unit.test.d.ts +0 -2
- package/dist/test/mcp-tool-action-enum.unit.test.d.ts.map +0 -1
- package/dist/test/mcp-tool-action-enum.unit.test.js +0 -12
- package/dist/test/mcp-tool-action-enum.unit.test.js.map +0 -1
- package/dist/test/membership-proof.unit.test.d.ts +0 -2
- package/dist/test/membership-proof.unit.test.d.ts.map +0 -1
- package/dist/test/membership-proof.unit.test.js +0 -238
- package/dist/test/membership-proof.unit.test.js.map +0 -1
- package/dist/test/mesh-e2e.integration.test.d.ts +0 -8
- package/dist/test/mesh-e2e.integration.test.d.ts.map +0 -1
- package/dist/test/mesh-e2e.integration.test.js +0 -177
- package/dist/test/mesh-e2e.integration.test.js.map +0 -1
- package/dist/test/mesh-graph-trace-tool.e2e.test.d.ts +0 -2
- package/dist/test/mesh-graph-trace-tool.e2e.test.d.ts.map +0 -1
- package/dist/test/mesh-graph-trace-tool.e2e.test.js +0 -99
- package/dist/test/mesh-graph-trace-tool.e2e.test.js.map +0 -1
- package/dist/test/mesh-graph-trace.integration.test.d.ts +0 -5
- package/dist/test/mesh-graph-trace.integration.test.d.ts.map +0 -1
- package/dist/test/mesh-graph-trace.integration.test.js +0 -153
- package/dist/test/mesh-graph-trace.integration.test.js.map +0 -1
- package/dist/test/mesh-graph.unit.test.d.ts +0 -5
- package/dist/test/mesh-graph.unit.test.d.ts.map +0 -1
- package/dist/test/mesh-graph.unit.test.js +0 -121
- package/dist/test/mesh-graph.unit.test.js.map +0 -1
- package/dist/test/mesh-smoke.runner.d.ts +0 -9
- package/dist/test/mesh-smoke.runner.d.ts.map +0 -1
- package/dist/test/mesh-smoke.runner.js +0 -262
- package/dist/test/mesh-smoke.runner.js.map +0 -1
- package/dist/test/mesh-store-delivery-listeners.integration.test.d.ts +0 -2
- package/dist/test/mesh-store-delivery-listeners.integration.test.d.ts.map +0 -1
- package/dist/test/mesh-store-delivery-listeners.integration.test.js +0 -160
- package/dist/test/mesh-store-delivery-listeners.integration.test.js.map +0 -1
- package/dist/test/mesh-store-durable-send.integration.test.d.ts +0 -2
- package/dist/test/mesh-store-durable-send.integration.test.d.ts.map +0 -1
- package/dist/test/mesh-store-durable-send.integration.test.js +0 -55
- package/dist/test/mesh-store-durable-send.integration.test.js.map +0 -1
- package/dist/test/mesh-store-orchestration.unit.test.d.ts +0 -2
- package/dist/test/mesh-store-orchestration.unit.test.d.ts.map +0 -1
- package/dist/test/mesh-store-orchestration.unit.test.js +0 -662
- package/dist/test/mesh-store-orchestration.unit.test.js.map +0 -1
- package/dist/test/mesh-store-shared.unit.test.d.ts +0 -2
- package/dist/test/mesh-store-shared.unit.test.d.ts.map +0 -1
- package/dist/test/mesh-store-shared.unit.test.js +0 -107
- package/dist/test/mesh-store-shared.unit.test.js.map +0 -1
- package/dist/test/name-claim.unit.test.d.ts +0 -5
- package/dist/test/name-claim.unit.test.d.ts.map +0 -1
- package/dist/test/name-claim.unit.test.js +0 -135
- package/dist/test/name-claim.unit.test.js.map +0 -1
- package/dist/test/naming.integration.test.d.ts +0 -5
- package/dist/test/naming.integration.test.d.ts.map +0 -1
- package/dist/test/naming.integration.test.js +0 -231
- package/dist/test/naming.integration.test.js.map +0 -1
- package/dist/test/peer-lifecycle.unit.test.d.ts +0 -2
- package/dist/test/peer-lifecycle.unit.test.d.ts.map +0 -1
- package/dist/test/peer-lifecycle.unit.test.js +0 -252
- package/dist/test/peer-lifecycle.unit.test.js.map +0 -1
- package/dist/test/peer-link-error.integration.test.d.ts +0 -2
- package/dist/test/peer-link-error.integration.test.d.ts.map +0 -1
- package/dist/test/peer-link-error.integration.test.js +0 -33
- package/dist/test/peer-link-error.integration.test.js.map +0 -1
- package/dist/test/peer-versions.unit.test.d.ts +0 -5
- package/dist/test/peer-versions.unit.test.d.ts.map +0 -1
- package/dist/test/peer-versions.unit.test.js +0 -68
- package/dist/test/peer-versions.unit.test.js.map +0 -1
- package/dist/test/petnames.unit.test.d.ts +0 -5
- package/dist/test/petnames.unit.test.d.ts.map +0 -1
- package/dist/test/petnames.unit.test.js +0 -94
- package/dist/test/petnames.unit.test.js.map +0 -1
- package/dist/test/pgp-keyserver.unit.test.d.ts +0 -5
- package/dist/test/pgp-keyserver.unit.test.d.ts.map +0 -1
- package/dist/test/pgp-keyserver.unit.test.js +0 -24
- package/dist/test/pgp-keyserver.unit.test.js.map +0 -1
- package/dist/test/pi-manifest-packed.integration.test.d.ts +0 -2
- package/dist/test/pi-manifest-packed.integration.test.d.ts.map +0 -1
- package/dist/test/pi-manifest-packed.integration.test.js +0 -68
- package/dist/test/pi-manifest-packed.integration.test.js.map +0 -1
- package/dist/test/plugin-hooks.unit.test.d.ts +0 -2
- package/dist/test/plugin-hooks.unit.test.d.ts.map +0 -1
- package/dist/test/plugin-hooks.unit.test.js +0 -99
- package/dist/test/plugin-hooks.unit.test.js.map +0 -1
- package/dist/test/presence-readvertise.integration.test.d.ts +0 -5
- package/dist/test/presence-readvertise.integration.test.d.ts.map +0 -1
- package/dist/test/presence-readvertise.integration.test.js +0 -139
- package/dist/test/presence-readvertise.integration.test.js.map +0 -1
- package/dist/test/principal-membership-trust.integration.test.d.ts +0 -5
- package/dist/test/principal-membership-trust.integration.test.d.ts.map +0 -1
- package/dist/test/principal-membership-trust.integration.test.js +0 -169
- package/dist/test/principal-membership-trust.integration.test.js.map +0 -1
- package/dist/test/query-version.integration.test.d.ts +0 -5
- package/dist/test/query-version.integration.test.d.ts.map +0 -1
- package/dist/test/query-version.integration.test.js +0 -68
- package/dist/test/query-version.integration.test.js.map +0 -1
- package/dist/test/random-id.unit.test.d.ts +0 -2
- package/dist/test/random-id.unit.test.d.ts.map +0 -1
- package/dist/test/random-id.unit.test.js +0 -16
- package/dist/test/random-id.unit.test.js.map +0 -1
- package/dist/test/relay-role.integration.test.d.ts +0 -5
- package/dist/test/relay-role.integration.test.d.ts.map +0 -1
- package/dist/test/relay-role.integration.test.js +0 -134
- package/dist/test/relay-role.integration.test.js.map +0 -1
- package/dist/test/room-admission-tool-actions.integration.test.d.ts +0 -5
- package/dist/test/room-admission-tool-actions.integration.test.d.ts.map +0 -1
- package/dist/test/room-admission-tool-actions.integration.test.js +0 -166
- package/dist/test/room-admission-tool-actions.integration.test.js.map +0 -1
- package/dist/test/room-destroy-revocation.integration.test.d.ts +0 -5
- package/dist/test/room-destroy-revocation.integration.test.d.ts.map +0 -1
- package/dist/test/room-destroy-revocation.integration.test.js +0 -62
- package/dist/test/room-destroy-revocation.integration.test.js.map +0 -1
- package/dist/test/room-invite-directed.integration.test.d.ts +0 -5
- package/dist/test/room-invite-directed.integration.test.d.ts.map +0 -1
- package/dist/test/room-invite-directed.integration.test.js +0 -94
- package/dist/test/room-invite-directed.integration.test.js.map +0 -1
- package/dist/test/room-join-admission.integration.test.d.ts +0 -7
- package/dist/test/room-join-admission.integration.test.d.ts.map +0 -1
- package/dist/test/room-join-admission.integration.test.js +0 -228
- package/dist/test/room-join-admission.integration.test.js.map +0 -1
- package/dist/test/room-join-approval-timeout.integration.test.d.ts +0 -5
- package/dist/test/room-join-approval-timeout.integration.test.d.ts.map +0 -1
- package/dist/test/room-join-approval-timeout.integration.test.js +0 -77
- package/dist/test/room-join-approval-timeout.integration.test.js.map +0 -1
- package/dist/test/room-join-by-bare-name.integration.test.d.ts +0 -5
- package/dist/test/room-join-by-bare-name.integration.test.d.ts.map +0 -1
- package/dist/test/room-join-by-bare-name.integration.test.js +0 -128
- package/dist/test/room-join-by-bare-name.integration.test.js.map +0 -1
- package/dist/test/room-kick-revocation.integration.test.d.ts +0 -7
- package/dist/test/room-kick-revocation.integration.test.d.ts.map +0 -1
- package/dist/test/room-kick-revocation.integration.test.js +0 -78
- package/dist/test/room-kick-revocation.integration.test.js.map +0 -1
- package/dist/test/room-leave-revocation.integration.test.d.ts +0 -5
- package/dist/test/room-leave-revocation.integration.test.d.ts.map +0 -1
- package/dist/test/room-leave-revocation.integration.test.js +0 -95
- package/dist/test/room-leave-revocation.integration.test.js.map +0 -1
- package/dist/test/room-lifecycle-bare-name.unit.test.d.ts +0 -2
- package/dist/test/room-lifecycle-bare-name.unit.test.d.ts.map +0 -1
- package/dist/test/room-lifecycle-bare-name.unit.test.js +0 -181
- package/dist/test/room-lifecycle-bare-name.unit.test.js.map +0 -1
- package/dist/test/room-lifecycle-membership.unit.test.d.ts +0 -2
- package/dist/test/room-lifecycle-membership.unit.test.d.ts.map +0 -1
- package/dist/test/room-lifecycle-membership.unit.test.js +0 -551
- package/dist/test/room-lifecycle-membership.unit.test.js.map +0 -1
- package/dist/test/room-lifecycle-remote.unit.test.d.ts +0 -2
- package/dist/test/room-lifecycle-remote.unit.test.d.ts.map +0 -1
- package/dist/test/room-lifecycle-remote.unit.test.js +0 -388
- package/dist/test/room-lifecycle-remote.unit.test.js.map +0 -1
- package/dist/test/room-lifecycle.unit.test.d.ts +0 -2
- package/dist/test/room-lifecycle.unit.test.d.ts.map +0 -1
- package/dist/test/room-lifecycle.unit.test.js +0 -561
- package/dist/test/room-lifecycle.unit.test.js.map +0 -1
- package/dist/test/room-messaging-durable-send.unit.test.d.ts +0 -2
- package/dist/test/room-messaging-durable-send.unit.test.d.ts.map +0 -1
- package/dist/test/room-messaging-durable-send.unit.test.js +0 -122
- package/dist/test/room-messaging-durable-send.unit.test.js.map +0 -1
- package/dist/test/room-messaging.unit.test.d.ts +0 -2
- package/dist/test/room-messaging.unit.test.d.ts.map +0 -1
- package/dist/test/room-messaging.unit.test.js +0 -495
- package/dist/test/room-messaging.unit.test.js.map +0 -1
- package/dist/test/room-notice-log.unit.test.d.ts +0 -5
- package/dist/test/room-notice-log.unit.test.d.ts.map +0 -1
- package/dist/test/room-notice-log.unit.test.js +0 -100
- package/dist/test/room-notice-log.unit.test.js.map +0 -1
- package/dist/test/room-protocol-admission.unit.test.d.ts +0 -2
- package/dist/test/room-protocol-admission.unit.test.d.ts.map +0 -1
- package/dist/test/room-protocol-admission.unit.test.js +0 -432
- package/dist/test/room-protocol-admission.unit.test.js.map +0 -1
- package/dist/test/room-protocol-notify.unit.test.d.ts +0 -2
- package/dist/test/room-protocol-notify.unit.test.d.ts.map +0 -1
- package/dist/test/room-protocol-notify.unit.test.js +0 -184
- package/dist/test/room-protocol-notify.unit.test.js.map +0 -1
- package/dist/test/room-protocol-retry-queue.unit.test.d.ts +0 -2
- package/dist/test/room-protocol-retry-queue.unit.test.d.ts.map +0 -1
- package/dist/test/room-protocol-retry-queue.unit.test.js +0 -275
- package/dist/test/room-protocol-retry-queue.unit.test.js.map +0 -1
- package/dist/test/room-protocol.helper.d.ts +0 -60
- package/dist/test/room-protocol.helper.d.ts.map +0 -1
- package/dist/test/room-protocol.helper.js +0 -169
- package/dist/test/room-protocol.helper.js.map +0 -1
- package/dist/test/room-protocol.unit.test.d.ts +0 -2
- package/dist/test/room-protocol.unit.test.d.ts.map +0 -1
- package/dist/test/room-protocol.unit.test.js +0 -431
- package/dist/test/room-protocol.unit.test.js.map +0 -1
- package/dist/test/room-read-directed.integration.test.d.ts +0 -7
- package/dist/test/room-read-directed.integration.test.d.ts.map +0 -1
- package/dist/test/room-read-directed.integration.test.js +0 -136
- package/dist/test/room-read-directed.integration.test.js.map +0 -1
- package/dist/test/room-router.unit.test.d.ts +0 -2
- package/dist/test/room-router.unit.test.d.ts.map +0 -1
- package/dist/test/room-router.unit.test.js +0 -235
- package/dist/test/room-router.unit.test.js.map +0 -1
- package/dist/test/room-send-directed.integration.test.d.ts +0 -7
- package/dist/test/room-send-directed.integration.test.d.ts.map +0 -1
- package/dist/test/room-send-directed.integration.test.js +0 -129
- package/dist/test/room-send-directed.integration.test.js.map +0 -1
- package/dist/test/room-send-retry-queue.integration.test.d.ts +0 -5
- package/dist/test/room-send-retry-queue.integration.test.d.ts.map +0 -1
- package/dist/test/room-send-retry-queue.integration.test.js +0 -152
- package/dist/test/room-send-retry-queue.integration.test.js.map +0 -1
- package/dist/test/room-send-retry.integration.test.d.ts +0 -5
- package/dist/test/room-send-retry.integration.test.d.ts.map +0 -1
- package/dist/test/room-send-retry.integration.test.js +0 -154
- package/dist/test/room-send-retry.integration.test.js.map +0 -1
- package/dist/test/room-state-sync.integration.test.d.ts +0 -5
- package/dist/test/room-state-sync.integration.test.d.ts.map +0 -1
- package/dist/test/room-state-sync.integration.test.js +0 -105
- package/dist/test/room-state-sync.integration.test.js.map +0 -1
- package/dist/test/room-token-store.unit.test.d.ts +0 -5
- package/dist/test/room-token-store.unit.test.d.ts.map +0 -1
- package/dist/test/room-token-store.unit.test.js +0 -124
- package/dist/test/room-token-store.unit.test.js.map +0 -1
- package/dist/test/room-token-verification.unit.test.d.ts +0 -2
- package/dist/test/room-token-verification.unit.test.d.ts.map +0 -1
- package/dist/test/room-token-verification.unit.test.js +0 -238
- package/dist/test/room-token-verification.unit.test.js.map +0 -1
- package/dist/test/scratch-directory.helper.d.ts +0 -18
- package/dist/test/scratch-directory.helper.d.ts.map +0 -1
- package/dist/test/scratch-directory.helper.js +0 -35
- package/dist/test/scratch-directory.helper.js.map +0 -1
- package/dist/test/scratch-directory.setup.d.ts +0 -2
- package/dist/test/scratch-directory.setup.d.ts.map +0 -1
- package/dist/test/scratch-directory.setup.js +0 -7
- package/dist/test/scratch-directory.setup.js.map +0 -1
- package/dist/test/scratch-directory.unit.test.d.ts +0 -2
- package/dist/test/scratch-directory.unit.test.d.ts.map +0 -1
- package/dist/test/scratch-directory.unit.test.js +0 -78
- package/dist/test/scratch-directory.unit.test.js.map +0 -1
- package/dist/test/send-by-room-name.integration.test.d.ts +0 -5
- package/dist/test/send-by-room-name.integration.test.d.ts.map +0 -1
- package/dist/test/send-by-room-name.integration.test.js +0 -77
- package/dist/test/send-by-room-name.integration.test.js.map +0 -1
- package/dist/test/shutdown-signals.unit.test.d.ts +0 -5
- package/dist/test/shutdown-signals.unit.test.d.ts.map +0 -1
- package/dist/test/shutdown-signals.unit.test.js +0 -110
- package/dist/test/shutdown-signals.unit.test.js.map +0 -1
- package/dist/test/stale-agent-checker.unit.test.d.ts +0 -2
- package/dist/test/stale-agent-checker.unit.test.d.ts.map +0 -1
- package/dist/test/stale-agent-checker.unit.test.js +0 -267
- package/dist/test/stale-agent-checker.unit.test.js.map +0 -1
- package/dist/test/state-sync-convergence.integration.test.d.ts +0 -7
- package/dist/test/state-sync-convergence.integration.test.d.ts.map +0 -1
- package/dist/test/state-sync-convergence.integration.test.js +0 -263
- package/dist/test/state-sync-convergence.integration.test.js.map +0 -1
- package/dist/test/synthetic-advert.d.ts +0 -8
- package/dist/test/synthetic-advert.d.ts.map +0 -1
- package/dist/test/synthetic-advert.js +0 -16
- package/dist/test/synthetic-advert.js.map +0 -1
- package/dist/test/test-transport.d.ts +0 -43
- package/dist/test/test-transport.d.ts.map +0 -1
- package/dist/test/test-transport.js +0 -122
- package/dist/test/test-transport.js.map +0 -1
- package/dist/test/token-text.unit.test.d.ts +0 -2
- package/dist/test/token-text.unit.test.d.ts.map +0 -1
- package/dist/test/token-text.unit.test.js +0 -46
- package/dist/test/token-text.unit.test.js.map +0 -1
- package/dist/test/tool-version-reporting.integration.test.d.ts +0 -5
- package/dist/test/tool-version-reporting.integration.test.d.ts.map +0 -1
- package/dist/test/tool-version-reporting.integration.test.js +0 -105
- package/dist/test/tool-version-reporting.integration.test.js.map +0 -1
- package/dist/test/user-identity.unit.test.d.ts +0 -5
- package/dist/test/user-identity.unit.test.d.ts.map +0 -1
- package/dist/test/user-identity.unit.test.js +0 -224
- package/dist/test/user-identity.unit.test.js.map +0 -1
- package/dist/test/user-principal-mints-device-grant.unit.test.d.ts +0 -7
- package/dist/test/user-principal-mints-device-grant.unit.test.d.ts.map +0 -1
- package/dist/test/user-principal-mints-device-grant.unit.test.js +0 -62
- package/dist/test/user-principal-mints-device-grant.unit.test.js.map +0 -1
- package/dist/test/version-report-actions.unit.test.d.ts +0 -5
- package/dist/test/version-report-actions.unit.test.d.ts.map +0 -1
- package/dist/test/version-report-actions.unit.test.js +0 -35
- package/dist/test/version-report-actions.unit.test.js.map +0 -1
- package/dist/test/visibility.integration.test.d.ts +0 -12
- package/dist/test/visibility.integration.test.d.ts.map +0 -1
- package/dist/test/visibility.integration.test.js +0 -259
- package/dist/test/visibility.integration.test.js.map +0 -1
- package/dist/test/web-url-tool-action.integration.test.d.ts +0 -2
- package/dist/test/web-url-tool-action.integration.test.d.ts.map +0 -1
- package/dist/test/web-url-tool-action.integration.test.js +0 -69
- package/dist/test/web-url-tool-action.integration.test.js.map +0 -1
- package/dist/test/wire-mesh-core-version.unit.test.d.ts +0 -5
- package/dist/test/wire-mesh-core-version.unit.test.d.ts.map +0 -1
- package/dist/test/wire-mesh-core-version.unit.test.js +0 -14
- package/dist/test/wire-mesh-core-version.unit.test.js.map +0 -1
- package/dist/test/wire-mesh-identity.unit.test.d.ts +0 -5
- package/dist/test/wire-mesh-identity.unit.test.d.ts.map +0 -1
- package/dist/test/wire-mesh-identity.unit.test.js +0 -26
- package/dist/test/wire-mesh-identity.unit.test.js.map +0 -1
- package/dist/test/wire-mesh-transport-gateway-trust.integration.test.d.ts +0 -2
- package/dist/test/wire-mesh-transport-gateway-trust.integration.test.d.ts.map +0 -1
- package/dist/test/wire-mesh-transport-gateway-trust.integration.test.js +0 -56
- package/dist/test/wire-mesh-transport-gateway-trust.integration.test.js.map +0 -1
- package/dist/test/wire-mesh-transport-hub.integration.test.d.ts +0 -5
- package/dist/test/wire-mesh-transport-hub.integration.test.d.ts.map +0 -1
- package/dist/test/wire-mesh-transport-hub.integration.test.js +0 -140
- package/dist/test/wire-mesh-transport-hub.integration.test.js.map +0 -1
- package/dist/test/wire-mesh-transport-shutdown-unref.integration.test.d.ts +0 -5
- package/dist/test/wire-mesh-transport-shutdown-unref.integration.test.d.ts.map +0 -1
- package/dist/test/wire-mesh-transport-shutdown-unref.integration.test.js +0 -316
- package/dist/test/wire-mesh-transport-shutdown-unref.integration.test.js.map +0 -1
- package/dist/test/wire-mesh-transport.integration.test.d.ts +0 -5
- package/dist/test/wire-mesh-transport.integration.test.d.ts.map +0 -1
- package/dist/test/wire-mesh-transport.integration.test.js +0 -659
- package/dist/test/wire-mesh-transport.integration.test.js.map +0 -1
- package/dist/test/ws-dial.integration.test.d.ts +0 -2
- package/dist/test/ws-dial.integration.test.d.ts.map +0 -1
- package/dist/test/ws-dial.integration.test.js +0 -112
- package/dist/test/ws-dial.integration.test.js.map +0 -1
- package/dist/test/wss-remote-connect.integration.test.d.ts +0 -2
- package/dist/test/wss-remote-connect.integration.test.d.ts.map +0 -1
- package/dist/test/wss-remote-connect.integration.test.js +0 -122
- package/dist/test/wss-remote-connect.integration.test.js.map +0 -1
- package/src/bridges/user/web/test/bridge-web-server.helper.ts +0 -54
- package/src/bridges/user/web/vite.config.ts +0 -71
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* sendRoomMessage's opt-in durable flag (P5's mint-and-append half, agent-comms#50, wired via recordRoomSendNotice from #135): a caller that passes durable: true also gets the message recorded as a room-notice in the sender's own oplog, verifiable end to end via a real verifyRoomNotice, not just an opaque append. Real identities and a real minted token throughout, matching room-lifecycle.test.ts's own established convention for this class of test -- recordRoomSendNotice genuinely mints and signs, so an opaque placeholder token would fail the mint outright.
|
|
3
|
-
*/
|
|
4
|
-
import { describe, expect, it } from "vitest";
|
|
5
|
-
import { decode as cborDecode, cdeDecodeOptions } from "cbor2";
|
|
6
|
-
import { deviceIdToHex } from "wire-mesh-core/domain/device-id";
|
|
7
|
-
import { mintCapabilityToken } from "wire-mesh-core/domain/tokens";
|
|
8
|
-
import { createSystemClock } from "wire-mesh-core/adapters/system-clock";
|
|
9
|
-
import { createMemoryStorage } from "wire-mesh-core/adapters/memory-storage";
|
|
10
|
-
import { ownerNamedRoomPath } from "wire-mesh-core/domain/room-path";
|
|
11
|
-
import { verifyRoomNotice } from "wire-mesh-core/domain/room";
|
|
12
|
-
import { createRevocationView } from "wire-mesh-core/domain/revocation-view";
|
|
13
|
-
import { readEntries } from "wire-mesh-core/domain/data-sync";
|
|
14
|
-
import { generateIdentity } from "../core/identity.js";
|
|
15
|
-
import { toIdentityPort } from "../core/wire-mesh-identity.js";
|
|
16
|
-
import { loadOrCreateIdentity, saveRoomToken } from "../core/identity-store.js";
|
|
17
|
-
import { randomId } from "../core/random-id.js";
|
|
18
|
-
import { RoomMessaging, } from "../core/room-messaging.js";
|
|
19
|
-
import { scratchDirectory } from "./scratch-directory.helper.js";
|
|
20
|
-
const NO_DELEGATIONS_REMAINING = 0;
|
|
21
|
-
const MINUTES_PER_HOUR = 60;
|
|
22
|
-
const SECONDS_PER_MINUTE = 60;
|
|
23
|
-
const MS_PER_SECOND = 1000;
|
|
24
|
-
const ONE_HOUR_MS = MINUTES_PER_HOUR * SECONDS_PER_MINUTE * MS_PER_SECOND;
|
|
25
|
-
async function makeHarness() {
|
|
26
|
-
const ownerIdentity = await toIdentityPort(generateIdentity());
|
|
27
|
-
const roomPath = ownerNamedRoomPath(deviceIdToHex(ownerIdentity.deviceId), "general");
|
|
28
|
-
const clock = createSystemClock();
|
|
29
|
-
const verdict = await mintCapabilityToken({
|
|
30
|
-
identity: ownerIdentity,
|
|
31
|
-
clock,
|
|
32
|
-
tokenId: randomId(),
|
|
33
|
-
bearer: ownerIdentity.deviceId,
|
|
34
|
-
capability: "room:member",
|
|
35
|
-
scope: { kind: "room", path: roomPath },
|
|
36
|
-
expires: Date.now() + ONE_HOUR_MS,
|
|
37
|
-
delegationsRemaining: NO_DELEGATIONS_REMAINING,
|
|
38
|
-
});
|
|
39
|
-
if (!verdict.ok)
|
|
40
|
-
throw new Error(`mint failed: ${verdict.reason}`);
|
|
41
|
-
// saveRoomToken writes into this slot's own persisted identity file, which must already exist on disk -- unrelated to which crypto identity requireIdentity() uses for minting/verifying (room-lifecycle.test.ts's own established convention for this exact precondition).
|
|
42
|
-
const slotDir = scratchDirectory("room-messaging-durable-send-test-");
|
|
43
|
-
const slot = { harness: "test", cwd: "room-messaging", dir: slotDir };
|
|
44
|
-
loadOrCreateIdentity(slot);
|
|
45
|
-
saveRoomToken(slot, roomPath, verdict.token);
|
|
46
|
-
const dataStorage = createMemoryStorage();
|
|
47
|
-
const room = {
|
|
48
|
-
id: roomPath,
|
|
49
|
-
version: 1,
|
|
50
|
-
name: "general",
|
|
51
|
-
type: "public",
|
|
52
|
-
owner: deviceIdToHex(ownerIdentity.deviceId),
|
|
53
|
-
createdAt: "2026-01-01T00:00:00.000Z",
|
|
54
|
-
description: "",
|
|
55
|
-
members: [deviceIdToHex(ownerIdentity.deviceId)],
|
|
56
|
-
invited: [],
|
|
57
|
-
memberJoins: {},
|
|
58
|
-
memberLeaves: {},
|
|
59
|
-
invitedJoins: {},
|
|
60
|
-
invitedLeaves: {},
|
|
61
|
-
};
|
|
62
|
-
const deps = {
|
|
63
|
-
rooms: new Map([[roomPath, room]]),
|
|
64
|
-
messages: new Map(),
|
|
65
|
-
dms: new Map(),
|
|
66
|
-
requireIdentity: () => ({
|
|
67
|
-
slot,
|
|
68
|
-
clock,
|
|
69
|
-
identity: ownerIdentity,
|
|
70
|
-
revocation: createRevocationView(),
|
|
71
|
-
dataStorage,
|
|
72
|
-
userIdentity: ownerIdentity,
|
|
73
|
-
accountLedger: {},
|
|
74
|
-
userIdentityOptions: {},
|
|
75
|
-
machineIdentity: ownerIdentity,
|
|
76
|
-
machineIdentityOptions: {},
|
|
77
|
-
}),
|
|
78
|
-
roomProtocol: {
|
|
79
|
-
sendRoomRequestToMember: async () => ({ kind: "delivered" }),
|
|
80
|
-
},
|
|
81
|
-
// This harness only sends room messages, never DMs, so DM admission is never reached.
|
|
82
|
-
requestDmAccess: async () => undefined,
|
|
83
|
-
resolveAgent: async () => undefined,
|
|
84
|
-
// Every send here already names the room by its real path.
|
|
85
|
-
resolveRoomId: (roomIdOrName) => roomIdOrName,
|
|
86
|
-
};
|
|
87
|
-
return {
|
|
88
|
-
messaging: new RoomMessaging(deps),
|
|
89
|
-
ownerIdentity,
|
|
90
|
-
roomPath,
|
|
91
|
-
dataStorage,
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
describe("RoomMessaging — sendRoomMessage durable flag", () => {
|
|
95
|
-
it("records nothing in the oplog when durable is omitted", async () => {
|
|
96
|
-
const h = await makeHarness();
|
|
97
|
-
const ownerDeviceHex = deviceIdToHex(h.ownerIdentity.deviceId);
|
|
98
|
-
await h.messaging.sendRoomMessage(h.roomPath, ownerDeviceHex, "hello");
|
|
99
|
-
expect(await readEntries(h.dataStorage, h.ownerIdentity.deviceId, 0)).toEqual([]);
|
|
100
|
-
});
|
|
101
|
-
it("appends a verifiable room-notice to the sender's own oplog when durable is true", async () => {
|
|
102
|
-
const h = await makeHarness();
|
|
103
|
-
const ownerDeviceHex = deviceIdToHex(h.ownerIdentity.deviceId);
|
|
104
|
-
await h.messaging.sendRoomMessage(h.roomPath, ownerDeviceHex, "hello, durably", { durable: true });
|
|
105
|
-
const [entry] = await readEntries(h.dataStorage, h.ownerIdentity.deviceId, 0);
|
|
106
|
-
expect(entry).toBeDefined();
|
|
107
|
-
if (entry === undefined)
|
|
108
|
-
return;
|
|
109
|
-
const decoded = cborDecode(entry, cdeDecodeOptions);
|
|
110
|
-
const verdict = await verifyRoomNotice(decoded, {
|
|
111
|
-
identity: h.ownerIdentity,
|
|
112
|
-
clock: createSystemClock(),
|
|
113
|
-
revocation: createRevocationView(),
|
|
114
|
-
});
|
|
115
|
-
expect(verdict.ok, `expected the durably-recorded notice to verify, got ${JSON.stringify(verdict)}`).toBeTruthy();
|
|
116
|
-
if (!verdict.ok)
|
|
117
|
-
return;
|
|
118
|
-
expect(verdict.claims.room).toBe(h.roomPath);
|
|
119
|
-
expect(new TextDecoder().decode(verdict.claims.content)).toBe("hello, durably");
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
//# sourceMappingURL=room-messaging-durable-send.unit.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room-messaging-durable-send.unit.test.js","sourceRoot":"","sources":["../../src/test/room-messaging-durable-send.unit.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAE9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EACL,aAAa,GAEd,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAEjE,MAAM,wBAAwB,GAAG,CAAC,CAAC;AACnC,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAC5B,MAAM,kBAAkB,GAAG,EAAE,CAAC;AAC9B,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,WAAW,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,aAAa,CAAC;AAE1E,KAAK,UAAU,WAAW;IACxB,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAC/D,MAAM,QAAQ,GAAG,kBAAkB,CACjC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,EACrC,SAAS,CACV,CAAC;IACF,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,OAAO,GAAG,MAAM,mBAAmB,CAAC;QACxC,QAAQ,EAAE,aAAa;QACvB,KAAK;QACL,OAAO,EAAE,QAAQ,EAAE;QACnB,MAAM,EAAE,aAAa,CAAC,QAAQ;QAC9B,UAAU,EAAE,aAAa;QACzB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvC,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,WAAW;QACjC,oBAAoB,EAAE,wBAAwB;KAC/C,CAAC,CAAC;IACH,IAAI,CAAC,OAAO,CAAC,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,gBAAgB,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEnE,4QAA4Q;IAC5Q,MAAM,OAAO,GAAG,gBAAgB,CAAC,mCAAmC,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC;IACtE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAC3B,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IAE7C,MAAM,WAAW,GAAG,mBAAmB,EAAE,CAAC;IAC1C,MAAM,IAAI,GAAS;QACjB,EAAE,EAAE,QAAQ;QACZ,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC;QAC5C,SAAS,EAAE,0BAA0B;QACrC,WAAW,EAAE,EAAE;QACf,OAAO,EAAE,CAAC,aAAa,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAChD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,EAAE;QACf,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;QAChB,aAAa,EAAE,EAAE;KAClB,CAAC;IAEF,MAAM,IAAI,GAAsB;QAC9B,KAAK,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC;QAClC,QAAQ,EAAE,IAAI,GAAG,EAAE;QACnB,GAAG,EAAE,IAAI,GAAG,EAAE;QACd,eAAe,EAAE,GAAG,EAAE,CAAC,CAAC;YACtB,IAAI;YACJ,KAAK;YACL,QAAQ,EAAE,aAAa;YACvB,UAAU,EAAE,oBAAoB,EAAE;YAClC,WAAW;YACX,YAAY,EAAE,aAAa;YAC3B,aAAa,EAAE,EAAW;YAC1B,mBAAmB,EAAE,EAAE;YACvB,eAAe,EAAE,aAAa;YAC9B,sBAAsB,EAAE,EAAE;SAC3B,CAAC;QACF,YAAY,EAAE;YACZ,uBAAuB,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAU;SACtE;QACD,sFAAsF;QACtF,eAAe,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS;QACtC,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS;QACnC,2DAA2D;QAC3D,aAAa,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY;KAC9C,CAAC;IAEF,OAAO;QACL,SAAS,EAAE,IAAI,aAAa,CAAC,IAAI,CAAC;QAClC,aAAa;QACb,QAAQ;QACR,WAAW;KACZ,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,8CAA8C,EAAE,GAAG,EAAE;IAC5D,EAAE,CAAC,sDAAsD,EAAE,KAAK,IAAI,EAAE;QACpE,MAAM,CAAC,GAAG,MAAM,WAAW,EAAE,CAAC;QAC9B,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAC/D,MAAM,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;QAEvE,MAAM,CACJ,MAAM,WAAW,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC,CAC9D,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iFAAiF,EAAE,KAAK,IAAI,EAAE;QAC/F,MAAM,CAAC,GAAG,MAAM,WAAW,EAAE,CAAC;QAC9B,MAAM,cAAc,GAAG,aAAa,CAAC,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QAE/D,MAAM,CAAC,CAAC,SAAS,CAAC,eAAe,CAC/B,CAAC,CAAC,QAAQ,EACV,cAAc,EACd,gBAAgB,EAChB,EAAE,OAAO,EAAE,IAAI,EAAE,CAClB,CAAC;QAEF,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,WAAW,CAC/B,CAAC,CAAC,WAAW,EACb,CAAC,CAAC,aAAa,CAAC,QAAQ,EACxB,CAAC,CACF,CAAC;QACF,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,CAAC;QAC5B,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO;QAEhC,MAAM,OAAO,GAAG,UAAU,CAAa,KAAK,EAAE,gBAAgB,CAAC,CAAC;QAChE,MAAM,OAAO,GAAG,MAAM,gBAAgB,CAAC,OAAO,EAAE;YAC9C,QAAQ,EAAE,CAAC,CAAC,aAAa;YACzB,KAAK,EAAE,iBAAiB,EAAE;YAC1B,UAAU,EAAE,oBAAoB,EAAE;SACnC,CAAC,CAAC;QAEH,MAAM,CACJ,OAAO,CAAC,EAAE,EACV,uDAAuD,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CACjF,CAAC,UAAU,EAAE,CAAC;QACf,IAAI,CAAC,OAAO,CAAC,EAAE;YAAE,OAAO;QACxB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAC7C,MAAM,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAC3D,gBAAgB,CACjB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room-messaging.unit.test.d.ts","sourceRoot":"","sources":["../../src/test/room-messaging.unit.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,495 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Direct, DI-based unit tests for RoomMessaging -- it was previously exercised only indirectly through end-to-end room-send integration tests, leaving many individual branches (optional-field spreads, error message text, since-filtering boundaries, self-DM vs cross-DM key derivation) unobserved. RoomMessagingDeps is a narrow, injectable surface built exactly for this. loadRoomTokens is a free function reading a real identity file, not part of the injectable deps -- mocked here since RoomMessaging only ever forwards its return value opaquely, never inspects or verifies it.
|
|
3
|
-
*
|
|
4
|
-
* Two mutants Stryker raises against readRoomMessages' `since === undefined || since === ""` check are practical equivalents, not gaps -- documented here rather than chased with a contrived test. Both replace the `since === ""` comparison (one with the literal `false`, one with `since === "Stryker was here!"`) and both share the identical root cause: whenever the real code's early-return branch would fire on `since === ""`, the mutant instead falls through to `arr.filter(m => m.timestamp > since)` with `since` still `""` -- and every RoomMessage in this codebase is constructed with `new Date().toISOString()`, never an empty string, so `m.timestamp > ""` is true for every real message regardless of which branch runs. The early-return and the filter produce identical output for any timestamp this codebase can actually produce; only a RoomMessage with an empty-string timestamp (violating that invariant) would distinguish them, and fabricating one would be exactly the kind of contrived test this repo's own convention (see stale-agent-checker.test.ts) says to document instead of force.
|
|
5
|
-
*/
|
|
6
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
7
|
-
import { dmRoomPath } from "../core/room-path.js";
|
|
8
|
-
import { resolveRoomId } from "../core/room-lookup.js";
|
|
9
|
-
import { loadRoomTokens } from "../core/identity-store.js";
|
|
10
|
-
import { RoomMessaging, } from "../core/room-messaging.js";
|
|
11
|
-
import { CommsError } from "../core/store.js";
|
|
12
|
-
vi.mock("../core/identity-store.js", () => ({
|
|
13
|
-
loadRoomTokens: vi.fn(),
|
|
14
|
-
}));
|
|
15
|
-
// Opaque placeholder: RoomMessaging never inspects a token's own COSE_Sign1 structure, only forwards whatever loadRoomTokens returns to sendRoomRequestToMember -- so any distinguishable value stands in for a real one in these tests.
|
|
16
|
-
const FAKE_TOKEN = "fake-token";
|
|
17
|
-
/** A device-id is a 64-character lowercase hex SHA-256 digest; room-path.ts's assertDeviceIdHex rejects anything shorter. */
|
|
18
|
-
const DEVICE_ID_HEX_LENGTH = 64;
|
|
19
|
-
/** A message/token id is 16 random bytes, hex-encoded to 32 characters -- randomId()'s own convention, matched here so bytesFromHex doesn't reject the fixture. */
|
|
20
|
-
const MESSAGE_ID_BYTE_LENGTH = 16;
|
|
21
|
-
const FROM_DEVICE_ID = "a".repeat(DEVICE_ID_HEX_LENGTH);
|
|
22
|
-
const TO_DEVICE_ID = "b".repeat(DEVICE_ID_HEX_LENGTH);
|
|
23
|
-
/** A third room member, so a fan-out test can show one member's outcome not affecting another's. */
|
|
24
|
-
const OTHER_DEVICE_ID = "c".repeat(DEVICE_ID_HEX_LENGTH);
|
|
25
|
-
const NOW_MS = 1_700_000_000_000;
|
|
26
|
-
function room(overrides = {}) {
|
|
27
|
-
return {
|
|
28
|
-
id: "room-1",
|
|
29
|
-
version: 1,
|
|
30
|
-
name: "room-name",
|
|
31
|
-
type: "public",
|
|
32
|
-
owner: FROM_DEVICE_ID,
|
|
33
|
-
createdAt: "2026-01-01T00:00:00.000Z",
|
|
34
|
-
description: "",
|
|
35
|
-
members: [FROM_DEVICE_ID],
|
|
36
|
-
invited: [],
|
|
37
|
-
memberJoins: {},
|
|
38
|
-
memberLeaves: {},
|
|
39
|
-
invitedJoins: {},
|
|
40
|
-
invitedLeaves: {},
|
|
41
|
-
...overrides,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function agent(overrides = {}) {
|
|
45
|
-
return {
|
|
46
|
-
id: TO_DEVICE_ID,
|
|
47
|
-
version: 1,
|
|
48
|
-
name: "recipient",
|
|
49
|
-
harness: "pi",
|
|
50
|
-
cwd: "/tmp",
|
|
51
|
-
pid: 111,
|
|
52
|
-
startedAt: "2026-01-01T00:00:00.000Z",
|
|
53
|
-
visibility: "visible",
|
|
54
|
-
status: "active",
|
|
55
|
-
tags: [],
|
|
56
|
-
subscribedRooms: [],
|
|
57
|
-
...overrides,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function makeHarness() {
|
|
61
|
-
const sendRoomRequestToMember = vi
|
|
62
|
-
.fn()
|
|
63
|
-
.mockResolvedValue({ kind: "delivered" });
|
|
64
|
-
const requestDmAccess = vi.fn().mockResolvedValue(undefined);
|
|
65
|
-
// Backs the default resolveAgent mock below -- a plain lookup Map standing in for AgentRegistry.getAgent's own real "known, else gossip-discovered" resolution, which RoomMessaging itself never sees; it only calls resolveAgent opaquely.
|
|
66
|
-
const agents = new Map();
|
|
67
|
-
const resolveAgent = vi
|
|
68
|
-
.fn()
|
|
69
|
-
.mockImplementation(async (id) => agents.get(id));
|
|
70
|
-
const rooms = new Map();
|
|
71
|
-
// Stands in for RoomLifecycle.resolveRoomId, which RoomMessaging only reaches through this dependency: resolves against the harness's own rooms, the same way the real one does for rooms this store holds.
|
|
72
|
-
const resolveRoomIdMock = vi
|
|
73
|
-
.fn()
|
|
74
|
-
.mockImplementation((roomIdOrName) => resolveRoomId(rooms.values(), roomIdOrName));
|
|
75
|
-
const deps = {
|
|
76
|
-
rooms,
|
|
77
|
-
messages: new Map(),
|
|
78
|
-
dms: new Map(),
|
|
79
|
-
requireIdentity: () => ({
|
|
80
|
-
slot: { harness: "pi", cwd: "/tmp" },
|
|
81
|
-
clock: { now: () => NOW_MS },
|
|
82
|
-
identity: {},
|
|
83
|
-
revocation: {},
|
|
84
|
-
dataStorage: {},
|
|
85
|
-
userIdentity: {},
|
|
86
|
-
machineIdentity: {},
|
|
87
|
-
machineIdentityOptions: {},
|
|
88
|
-
accountLedger: {},
|
|
89
|
-
userIdentityOptions: {},
|
|
90
|
-
}),
|
|
91
|
-
roomProtocol: { sendRoomRequestToMember },
|
|
92
|
-
requestDmAccess,
|
|
93
|
-
resolveAgent,
|
|
94
|
-
resolveRoomId: resolveRoomIdMock,
|
|
95
|
-
};
|
|
96
|
-
return {
|
|
97
|
-
resolveRoomId: resolveRoomIdMock,
|
|
98
|
-
agents,
|
|
99
|
-
resolveAgent,
|
|
100
|
-
deps,
|
|
101
|
-
messaging: new RoomMessaging(deps),
|
|
102
|
-
sendRoomRequestToMember,
|
|
103
|
-
requestDmAccess,
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
beforeEach(() => {
|
|
107
|
-
vi.mocked(loadRoomTokens).mockReset();
|
|
108
|
-
vi.mocked(loadRoomTokens).mockReturnValue({ "room-1": FAKE_TOKEN });
|
|
109
|
-
});
|
|
110
|
-
describe("RoomMessaging — sendRoomMessage", () => {
|
|
111
|
-
it("throws ROOM_NOT_FOUND naming the exact room id when the room doesn't exist", async () => {
|
|
112
|
-
const h = makeHarness();
|
|
113
|
-
await expect(h.messaging.sendRoomMessage("no-such-room", FROM_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
114
|
-
message: "Room no-such-room not found",
|
|
115
|
-
code: "ROOM_NOT_FOUND",
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
it("looks the room up by the id its bare name resolves to", async () => {
|
|
119
|
-
const h = makeHarness();
|
|
120
|
-
const roomPath = `${TO_DEVICE_ID}/general`;
|
|
121
|
-
h.deps.rooms.set(roomPath, room({ id: roomPath, name: "general", members: [FROM_DEVICE_ID] }));
|
|
122
|
-
vi.mocked(loadRoomTokens).mockReturnValue({ [roomPath]: FAKE_TOKEN });
|
|
123
|
-
const { message } = await h.messaging.sendRoomMessage("general", FROM_DEVICE_ID, "hi");
|
|
124
|
-
expect(h.resolveRoomId).toHaveBeenCalledWith("general");
|
|
125
|
-
expect(message.room).toBe(roomPath);
|
|
126
|
-
});
|
|
127
|
-
it("propagates the resolver's ambiguity error instead of picking a room", async () => {
|
|
128
|
-
const h = makeHarness();
|
|
129
|
-
h.deps.rooms.set(`${FROM_DEVICE_ID}/general`, room({ id: `${FROM_DEVICE_ID}/general`, name: "general" }));
|
|
130
|
-
h.deps.rooms.set(`${TO_DEVICE_ID}/general`, room({ id: `${TO_DEVICE_ID}/general`, name: "general" }));
|
|
131
|
-
await expect(h.messaging.sendRoomMessage("general", FROM_DEVICE_ID, "hi")).rejects.toMatchObject({ code: "AMBIGUOUS_ROOM_NAME" });
|
|
132
|
-
});
|
|
133
|
-
it("throws NOT_MEMBER naming the exact room id when the sender isn't a member", async () => {
|
|
134
|
-
const h = makeHarness();
|
|
135
|
-
h.deps.rooms.set("room-1", room({ members: [] }));
|
|
136
|
-
await expect(h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
137
|
-
message: "Not a member of room-1",
|
|
138
|
-
code: "NOT_MEMBER",
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
it("throws NOT_MEMBER naming the exact room id when no room:member token is persisted", async () => {
|
|
142
|
-
const h = makeHarness();
|
|
143
|
-
h.deps.rooms.set("room-1", room());
|
|
144
|
-
vi.mocked(loadRoomTokens).mockReturnValue({});
|
|
145
|
-
await expect(h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
146
|
-
message: "No room:member token for room-1",
|
|
147
|
-
code: "NOT_MEMBER",
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
it("stores the message and records it in the room's history", async () => {
|
|
151
|
-
const h = makeHarness();
|
|
152
|
-
h.deps.rooms.set("room-1", room());
|
|
153
|
-
const { message } = await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hello");
|
|
154
|
-
expect(h.deps.messages.get("room-1")).toEqual([message]);
|
|
155
|
-
expect(message.content).toBe("hello");
|
|
156
|
-
expect(message.readBy).toEqual([FROM_DEVICE_ID]);
|
|
157
|
-
});
|
|
158
|
-
it("includes replyTo only when explicitly given", async () => {
|
|
159
|
-
const h = makeHarness();
|
|
160
|
-
h.deps.rooms.set("room-1", room());
|
|
161
|
-
const replyToId = "aa".repeat(MESSAGE_ID_BYTE_LENGTH);
|
|
162
|
-
const { message: withReply } = await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi", { replyTo: replyToId });
|
|
163
|
-
expect(withReply.replyTo).toBe(replyToId);
|
|
164
|
-
const { message: withoutReply } = await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi");
|
|
165
|
-
expect(withoutReply).not.toHaveProperty("replyTo");
|
|
166
|
-
});
|
|
167
|
-
it("includes streamingBehavior on the stored message only when given", async () => {
|
|
168
|
-
const h = makeHarness();
|
|
169
|
-
h.deps.rooms.set("room-1", room());
|
|
170
|
-
const { message: withBehavior } = await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi", { streamingBehavior: "steer" });
|
|
171
|
-
expect(withBehavior.streamingBehavior).toBe("steer");
|
|
172
|
-
const { message: withoutBehavior } = await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi");
|
|
173
|
-
expect(withoutBehavior).not.toHaveProperty("streamingBehavior");
|
|
174
|
-
});
|
|
175
|
-
it("sends a directed request to every other member, never to the sender itself", async () => {
|
|
176
|
-
const h = makeHarness();
|
|
177
|
-
h.deps.rooms.set("room-1", room({ members: [FROM_DEVICE_ID, "member-b", "member-c"] }));
|
|
178
|
-
await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi");
|
|
179
|
-
expect(h.sendRoomRequestToMember).toHaveBeenCalledTimes(2);
|
|
180
|
-
expect(h.sendRoomRequestToMember).toHaveBeenCalledWith("member-b", "room-1", FAKE_TOKEN, expect.anything());
|
|
181
|
-
expect(h.sendRoomRequestToMember).toHaveBeenCalledWith("member-c", "room-1", FAKE_TOKEN, expect.anything());
|
|
182
|
-
});
|
|
183
|
-
it('includes a refs entry with relation "reply" in the wire params only when replyTo is given', async () => {
|
|
184
|
-
const h = makeHarness();
|
|
185
|
-
h.deps.rooms.set("room-1", room({ members: [FROM_DEVICE_ID, "member-b"] }));
|
|
186
|
-
const replyToId = "aa".repeat(MESSAGE_ID_BYTE_LENGTH);
|
|
187
|
-
await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi", {
|
|
188
|
-
replyTo: replyToId,
|
|
189
|
-
});
|
|
190
|
-
const params = h.sendRoomRequestToMember.mock.calls[0]?.[3];
|
|
191
|
-
expect(params.refs).toEqual([
|
|
192
|
-
{ id: expect.any(Uint8Array), relation: "reply" },
|
|
193
|
-
]);
|
|
194
|
-
});
|
|
195
|
-
it("omits refs from the wire params when no replyTo is given", async () => {
|
|
196
|
-
const h = makeHarness();
|
|
197
|
-
h.deps.rooms.set("room-1", room({ members: [FROM_DEVICE_ID, "member-b"] }));
|
|
198
|
-
await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi");
|
|
199
|
-
const params = h.sendRoomRequestToMember.mock.calls[0]?.[3];
|
|
200
|
-
expect(params).not.toHaveProperty("refs");
|
|
201
|
-
});
|
|
202
|
-
it("includes streaming-behavior in the wire params only when given", async () => {
|
|
203
|
-
const h = makeHarness();
|
|
204
|
-
h.deps.rooms.set("room-1", room({ members: [FROM_DEVICE_ID, "member-b"] }));
|
|
205
|
-
await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi", {
|
|
206
|
-
streamingBehavior: "steer",
|
|
207
|
-
});
|
|
208
|
-
const params = h.sendRoomRequestToMember.mock.calls[0]?.[3];
|
|
209
|
-
expect(params["streaming-behavior"]).toBe("steer");
|
|
210
|
-
});
|
|
211
|
-
it("omits streaming-behavior from the wire params when not given", async () => {
|
|
212
|
-
const h = makeHarness();
|
|
213
|
-
h.deps.rooms.set("room-1", room({ members: [FROM_DEVICE_ID, "member-b"] }));
|
|
214
|
-
await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi");
|
|
215
|
-
const params = h.sendRoomRequestToMember.mock.calls[0]?.[3];
|
|
216
|
-
expect(params).not.toHaveProperty("streaming-behavior");
|
|
217
|
-
});
|
|
218
|
-
});
|
|
219
|
-
describe("RoomMessaging — readRoomMessages", () => {
|
|
220
|
-
const OLDER = "2026-01-01T00:00:00.000Z";
|
|
221
|
-
const MIDDLE = "2026-01-01T00:05:00.000Z";
|
|
222
|
-
const NEWER = "2026-01-01T00:10:00.000Z";
|
|
223
|
-
function seeded(h) {
|
|
224
|
-
h.deps.messages.set("room-1", [
|
|
225
|
-
{
|
|
226
|
-
id: "m1",
|
|
227
|
-
from: "a",
|
|
228
|
-
room: "room-1",
|
|
229
|
-
content: "old",
|
|
230
|
-
timestamp: OLDER,
|
|
231
|
-
readBy: [],
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
id: "m2",
|
|
235
|
-
from: "a",
|
|
236
|
-
room: "room-1",
|
|
237
|
-
content: "mid",
|
|
238
|
-
timestamp: MIDDLE,
|
|
239
|
-
readBy: [],
|
|
240
|
-
},
|
|
241
|
-
{
|
|
242
|
-
id: "m3",
|
|
243
|
-
from: "a",
|
|
244
|
-
room: "room-1",
|
|
245
|
-
content: "new",
|
|
246
|
-
timestamp: NEWER,
|
|
247
|
-
readBy: [],
|
|
248
|
-
},
|
|
249
|
-
]);
|
|
250
|
-
}
|
|
251
|
-
it("returns the full history when since is omitted", async () => {
|
|
252
|
-
const h = makeHarness();
|
|
253
|
-
seeded(h);
|
|
254
|
-
const result = await h.messaging.readRoomMessages("room-1");
|
|
255
|
-
expect(result.map((m) => m.id)).toEqual(["m1", "m2", "m3"]);
|
|
256
|
-
});
|
|
257
|
-
it("returns the full history when since is an empty string", async () => {
|
|
258
|
-
const h = makeHarness();
|
|
259
|
-
seeded(h);
|
|
260
|
-
const result = await h.messaging.readRoomMessages("room-1", "");
|
|
261
|
-
expect(result.map((m) => m.id)).toEqual(["m1", "m2", "m3"]);
|
|
262
|
-
});
|
|
263
|
-
it("returns only messages strictly newer than a real since timestamp", async () => {
|
|
264
|
-
const h = makeHarness();
|
|
265
|
-
seeded(h);
|
|
266
|
-
const result = await h.messaging.readRoomMessages("room-1", MIDDLE);
|
|
267
|
-
expect(result.map((m) => m.id)).toEqual(["m3"]);
|
|
268
|
-
});
|
|
269
|
-
it("returns an empty array for a room with no history", async () => {
|
|
270
|
-
const h = makeHarness();
|
|
271
|
-
const result = await h.messaging.readRoomMessages("no-such-room");
|
|
272
|
-
expect(result).toEqual([]);
|
|
273
|
-
});
|
|
274
|
-
it("filters out every message for an arbitrary since lexically greater than any real timestamp", async () => {
|
|
275
|
-
const h = makeHarness();
|
|
276
|
-
seeded(h);
|
|
277
|
-
// Lexically greater than any real ISO timestamp (which starts with a digit) -- proves filtering genuinely runs and genuinely excludes messages for a since value that isn't "" or undefined, distinct from the empty-string shortcut covered (and its equivalent mutants documented) above.
|
|
278
|
-
const result = await h.messaging.readRoomMessages("room-1", "not-a-real-timestamp");
|
|
279
|
-
expect(result).toEqual([]);
|
|
280
|
-
});
|
|
281
|
-
});
|
|
282
|
-
describe("RoomMessaging — sendDm", () => {
|
|
283
|
-
it("throws AGENT_NOT_FOUND naming the exact recipient id when the recipient doesn't exist", async () => {
|
|
284
|
-
const h = makeHarness();
|
|
285
|
-
await expect(h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
286
|
-
message: `Agent ${TO_DEVICE_ID} not found`,
|
|
287
|
-
code: "AGENT_NOT_FOUND",
|
|
288
|
-
});
|
|
289
|
-
});
|
|
290
|
-
it("throws AGENT_NOT_FOUND naming the exact recipient id when the recipient has ghost visibility", async () => {
|
|
291
|
-
const h = makeHarness();
|
|
292
|
-
h.agents.set(TO_DEVICE_ID, agent({ visibility: "ghost" }));
|
|
293
|
-
await expect(h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
294
|
-
message: `Cannot DM agent ${TO_DEVICE_ID}`,
|
|
295
|
-
code: "AGENT_NOT_FOUND",
|
|
296
|
-
});
|
|
297
|
-
});
|
|
298
|
-
it("resolves the recipient via resolveAgent, not a direct agents-map lookup -- so a remote, gossip-discovered recipient (agent-comms#155) is a valid DM target", async () => {
|
|
299
|
-
const h = makeHarness();
|
|
300
|
-
h.resolveAgent.mockResolvedValue(agent({ visibility: "visible" }));
|
|
301
|
-
vi.mocked(loadRoomTokens).mockReturnValue({
|
|
302
|
-
[dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID)]: FAKE_TOKEN,
|
|
303
|
-
});
|
|
304
|
-
const { message } = await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi");
|
|
305
|
-
expect(h.resolveAgent).toHaveBeenCalledWith(TO_DEVICE_ID);
|
|
306
|
-
expect(message.content).toBe("hi");
|
|
307
|
-
});
|
|
308
|
-
it("skips recipient validation entirely for a self-DM", async () => {
|
|
309
|
-
const h = makeHarness();
|
|
310
|
-
const { message } = await h.messaging.sendDm(FROM_DEVICE_ID, FROM_DEVICE_ID, "note to self");
|
|
311
|
-
expect(message.content).toBe("note to self");
|
|
312
|
-
});
|
|
313
|
-
it("stores a self-DM under a self:<id> key and never dials out", async () => {
|
|
314
|
-
const h = makeHarness();
|
|
315
|
-
const { message } = await h.messaging.sendDm(FROM_DEVICE_ID, FROM_DEVICE_ID, "note to self");
|
|
316
|
-
expect(h.deps.dms.get(`self:${FROM_DEVICE_ID}`)).toEqual([message]);
|
|
317
|
-
expect(h.sendRoomRequestToMember).not.toHaveBeenCalled();
|
|
318
|
-
});
|
|
319
|
-
it("stores a cross-agent DM under the sorted dmRoomPath key and dials the recipient", async () => {
|
|
320
|
-
const h = makeHarness();
|
|
321
|
-
h.agents.set(TO_DEVICE_ID, agent());
|
|
322
|
-
vi.mocked(loadRoomTokens).mockReturnValue({
|
|
323
|
-
[dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID)]: FAKE_TOKEN,
|
|
324
|
-
});
|
|
325
|
-
const { message } = await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi");
|
|
326
|
-
const key = dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID);
|
|
327
|
-
expect(h.deps.dms.get(key)).toEqual([message]);
|
|
328
|
-
expect(h.sendRoomRequestToMember).toHaveBeenCalledWith(TO_DEVICE_ID, key, FAKE_TOKEN, expect.anything());
|
|
329
|
-
});
|
|
330
|
-
it("sets readBy to exactly the sender on a new DM", async () => {
|
|
331
|
-
const h = makeHarness();
|
|
332
|
-
const { message } = await h.messaging.sendDm(FROM_DEVICE_ID, FROM_DEVICE_ID, "hi");
|
|
333
|
-
expect(message.readBy).toEqual([FROM_DEVICE_ID]);
|
|
334
|
-
});
|
|
335
|
-
it("includes streamingBehavior on the stored message only when given", async () => {
|
|
336
|
-
const h = makeHarness();
|
|
337
|
-
const { message: withBehavior } = await h.messaging.sendDm(FROM_DEVICE_ID, FROM_DEVICE_ID, "hi", "followUp");
|
|
338
|
-
expect(withBehavior.streamingBehavior).toBe("followUp");
|
|
339
|
-
const { message: withoutBehavior } = await h.messaging.sendDm(FROM_DEVICE_ID, FROM_DEVICE_ID, "hi");
|
|
340
|
-
expect(withoutBehavior).not.toHaveProperty("streamingBehavior");
|
|
341
|
-
});
|
|
342
|
-
it("requests DM access from the recipient when no room:member token is persisted, then sends with the token that request granted", async () => {
|
|
343
|
-
const h = makeHarness();
|
|
344
|
-
h.agents.set(TO_DEVICE_ID, agent());
|
|
345
|
-
const key = dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID);
|
|
346
|
-
vi.mocked(loadRoomTokens)
|
|
347
|
-
.mockReturnValueOnce({})
|
|
348
|
-
.mockReturnValue({ [key]: FAKE_TOKEN });
|
|
349
|
-
const { message } = await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi");
|
|
350
|
-
expect(h.requestDmAccess).toHaveBeenCalledExactlyOnceWith(TO_DEVICE_ID);
|
|
351
|
-
expect(h.sendRoomRequestToMember).toHaveBeenCalledWith(TO_DEVICE_ID, key, FAKE_TOKEN, expect.anything());
|
|
352
|
-
expect(h.deps.dms.get(key)).toEqual([message]);
|
|
353
|
-
});
|
|
354
|
-
it("does not request DM access when a room:member token is already persisted", async () => {
|
|
355
|
-
const h = makeHarness();
|
|
356
|
-
h.agents.set(TO_DEVICE_ID, agent());
|
|
357
|
-
vi.mocked(loadRoomTokens).mockReturnValue({
|
|
358
|
-
[dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID)]: FAKE_TOKEN,
|
|
359
|
-
});
|
|
360
|
-
await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi");
|
|
361
|
-
expect(h.requestDmAccess).not.toHaveBeenCalled();
|
|
362
|
-
});
|
|
363
|
-
it("never requests DM access for a self-DM", async () => {
|
|
364
|
-
const h = makeHarness();
|
|
365
|
-
await h.messaging.sendDm(FROM_DEVICE_ID, FROM_DEVICE_ID, "note");
|
|
366
|
-
expect(h.requestDmAccess).not.toHaveBeenCalled();
|
|
367
|
-
});
|
|
368
|
-
it("surfaces a refused DM access request and records nothing locally or on the wire", async () => {
|
|
369
|
-
const h = makeHarness();
|
|
370
|
-
h.agents.set(TO_DEVICE_ID, agent());
|
|
371
|
-
vi.mocked(loadRoomTokens).mockReturnValue({});
|
|
372
|
-
h.requestDmAccess.mockRejectedValue(new CommsError("DM access request was refused (denied)", "JOIN_REFUSED"));
|
|
373
|
-
await expect(h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi")).rejects.toMatchObject({ code: "JOIN_REFUSED" });
|
|
374
|
-
expect(h.deps.dms.get(dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID))).toBe(undefined);
|
|
375
|
-
expect(h.sendRoomRequestToMember).not.toHaveBeenCalled();
|
|
376
|
-
});
|
|
377
|
-
it("throws NOT_MEMBER naming the exact dm key when access was granted but no token was persisted", async () => {
|
|
378
|
-
const h = makeHarness();
|
|
379
|
-
h.agents.set(TO_DEVICE_ID, agent());
|
|
380
|
-
vi.mocked(loadRoomTokens).mockReturnValue({});
|
|
381
|
-
const key = dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID);
|
|
382
|
-
await expect(h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
383
|
-
message: `No room:member token for ${key}`,
|
|
384
|
-
code: "NOT_MEMBER",
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
it("includes streaming-behavior in the wire params only when given, for a cross-agent DM", async () => {
|
|
388
|
-
const h = makeHarness();
|
|
389
|
-
h.agents.set(TO_DEVICE_ID, agent());
|
|
390
|
-
vi.mocked(loadRoomTokens).mockReturnValue({
|
|
391
|
-
[dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID)]: FAKE_TOKEN,
|
|
392
|
-
});
|
|
393
|
-
await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi", "info");
|
|
394
|
-
const params = h.sendRoomRequestToMember.mock.calls[0]?.[3];
|
|
395
|
-
expect(params["streaming-behavior"]).toBe("info");
|
|
396
|
-
});
|
|
397
|
-
it("omits streaming-behavior from the wire params when not given, for a cross-agent DM", async () => {
|
|
398
|
-
const h = makeHarness();
|
|
399
|
-
h.agents.set(TO_DEVICE_ID, agent());
|
|
400
|
-
vi.mocked(loadRoomTokens).mockReturnValue({
|
|
401
|
-
[dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID)]: FAKE_TOKEN,
|
|
402
|
-
});
|
|
403
|
-
await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi");
|
|
404
|
-
const params = h.sendRoomRequestToMember.mock.calls[0]?.[3];
|
|
405
|
-
expect(params).not.toHaveProperty("streaming-behavior");
|
|
406
|
-
});
|
|
407
|
-
});
|
|
408
|
-
describe("RoomMessaging — reporting what became of a send", () => {
|
|
409
|
-
/** Makes the DM path's own token already present, so sendDm goes straight to the wire rather than running the consent flow first. */
|
|
410
|
-
function withDmToken(h) {
|
|
411
|
-
h.resolveAgent.mockResolvedValue(agent({ visibility: "visible" }));
|
|
412
|
-
vi.mocked(loadRoomTokens).mockReturnValue({
|
|
413
|
-
[dmRoomPath(FROM_DEVICE_ID, TO_DEVICE_ID)]: FAKE_TOKEN,
|
|
414
|
-
});
|
|
415
|
-
}
|
|
416
|
-
it("reports a delivered DM as delivered", async () => {
|
|
417
|
-
const h = makeHarness();
|
|
418
|
-
withDmToken(h);
|
|
419
|
-
h.sendRoomRequestToMember.mockResolvedValue({ kind: "delivered" });
|
|
420
|
-
const sent = await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi");
|
|
421
|
-
expect(sent.delivery).toEqual({ status: "delivered" });
|
|
422
|
-
});
|
|
423
|
-
it("reports a DM nobody answered as queued, naming why", async () => {
|
|
424
|
-
const h = makeHarness();
|
|
425
|
-
withDmToken(h);
|
|
426
|
-
h.sendRoomRequestToMember.mockResolvedValue({
|
|
427
|
-
kind: "undelivered",
|
|
428
|
-
reason: "timeout",
|
|
429
|
-
});
|
|
430
|
-
const sent = await h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi");
|
|
431
|
-
expect(sent.delivery).toEqual({ status: "queued", reason: "timeout" });
|
|
432
|
-
});
|
|
433
|
-
it("raises SEND_REFUSED when the recipient refuses a DM, naming its own code", async () => {
|
|
434
|
-
const h = makeHarness();
|
|
435
|
-
withDmToken(h);
|
|
436
|
-
h.sendRoomRequestToMember.mockResolvedValue({
|
|
437
|
-
kind: "refused",
|
|
438
|
-
code: "unauthorized",
|
|
439
|
-
});
|
|
440
|
-
await expect(h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
441
|
-
message: `DM to ${TO_DEVICE_ID} refused (unauthorized)`,
|
|
442
|
-
code: "SEND_REFUSED",
|
|
443
|
-
});
|
|
444
|
-
});
|
|
445
|
-
it("includes the refuser's own message in a refusal, when it sent one", async () => {
|
|
446
|
-
const h = makeHarness();
|
|
447
|
-
withDmToken(h);
|
|
448
|
-
h.sendRoomRequestToMember.mockResolvedValue({
|
|
449
|
-
kind: "refused",
|
|
450
|
-
code: "denied",
|
|
451
|
-
message: "not right now",
|
|
452
|
-
});
|
|
453
|
-
await expect(h.messaging.sendDm(FROM_DEVICE_ID, TO_DEVICE_ID, "hi")).rejects.toMatchObject({
|
|
454
|
-
message: `DM to ${TO_DEVICE_ID} refused (denied: not right now)`,
|
|
455
|
-
});
|
|
456
|
-
});
|
|
457
|
-
it("reports a self-DM as delivered without touching the wire", async () => {
|
|
458
|
-
const h = makeHarness();
|
|
459
|
-
const sent = await h.messaging.sendDm(FROM_DEVICE_ID, FROM_DEVICE_ID, "note to self");
|
|
460
|
-
expect(sent.delivery).toEqual({ status: "delivered" });
|
|
461
|
-
expect(h.sendRoomRequestToMember).not.toHaveBeenCalled();
|
|
462
|
-
});
|
|
463
|
-
it("reports a room send's outcome per member, including a refusal", async () => {
|
|
464
|
-
const h = makeHarness();
|
|
465
|
-
h.deps.rooms.set("room-1", room({ members: [FROM_DEVICE_ID, TO_DEVICE_ID, OTHER_DEVICE_ID] }));
|
|
466
|
-
h.sendRoomRequestToMember
|
|
467
|
-
.mockResolvedValueOnce({ kind: "undelivered", reason: "not_connected" })
|
|
468
|
-
.mockResolvedValueOnce({ kind: "refused", code: "unauthorized" });
|
|
469
|
-
const sent = await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi");
|
|
470
|
-
expect(sent.deliveries).toEqual([
|
|
471
|
-
{
|
|
472
|
-
member: TO_DEVICE_ID,
|
|
473
|
-
delivery: { status: "queued", reason: "not_connected" },
|
|
474
|
-
},
|
|
475
|
-
{
|
|
476
|
-
member: OTHER_DEVICE_ID,
|
|
477
|
-
delivery: { status: "refused", code: "unauthorized" },
|
|
478
|
-
},
|
|
479
|
-
]);
|
|
480
|
-
});
|
|
481
|
-
it("keeps sending to the rest of a room after one member refuses", async () => {
|
|
482
|
-
const h = makeHarness();
|
|
483
|
-
h.deps.rooms.set("room-1", room({ members: [FROM_DEVICE_ID, TO_DEVICE_ID, OTHER_DEVICE_ID] }));
|
|
484
|
-
h.sendRoomRequestToMember
|
|
485
|
-
.mockResolvedValueOnce({ kind: "refused", code: "unauthorized" })
|
|
486
|
-
.mockResolvedValueOnce({ kind: "delivered" });
|
|
487
|
-
const sent = await h.messaging.sendRoomMessage("room-1", FROM_DEVICE_ID, "hi");
|
|
488
|
-
expect(h.sendRoomRequestToMember).toHaveBeenCalledTimes(2);
|
|
489
|
-
expect(sent.deliveries[1]).toEqual({
|
|
490
|
-
member: OTHER_DEVICE_ID,
|
|
491
|
-
delivery: { status: "delivered" },
|
|
492
|
-
});
|
|
493
|
-
});
|
|
494
|
-
});
|
|
495
|
-
//# sourceMappingURL=room-messaging.unit.test.js.map
|