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,711 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Direct, DI-based unit tests for DeliveryEngine -- the busiest collaborator in mesh-store.ts's own split (see its file header), previously exercised only indirectly through end-to-end room-send/state-sync integration tests, leaving many individual branches (version-gate boundaries, subscribedRooms union-vs-replace, dedup caps, timer-scheduled auto-mark-read, replay's per-type fire rules) unobserved. DeliveryEngineDeps is a narrow, injectable surface built exactly for this: every Map/Set is a real instance so effects are asserted by inspecting them directly, and every collaborator boundary (transport, sendRoomRequestToMember, onDelivery/onPatch callbacks, isShutDown) is a vi.fn() this file controls per test. loadRoomTokens is a free function reading a real identity file, not part of the injectable deps -- mocked here since markRead only ever forwards its return value opaquely, never inspects or verifies it. Split from delivery-engine-delivery.test.ts to satisfy the repo's max-lines cap: this file covers presence/queueing/membership-merge/state-sync/patch-application plus the top-level deliver/drainDelivery entry points (the latter two moved here from delivery-engine-delivery.test.ts to rebalance both files under the cap after a later round of survivor-closing tests grew it past 800 lines); delivery-engine-delivery.test.ts covers broadcast/fireLocalDelivery/notification/markRead. Both files share an identical preamble (helpers, fakes, makeHarness) by necessity of the split.
|
|
3
|
-
*/
|
|
4
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
5
|
-
import { loadRoomTokens } from "../core/identity-store.js";
|
|
6
|
-
import { randomId } from "../core/random-id.js";
|
|
7
|
-
import { DeliveryEngine, } from "../core/delivery-engine.js";
|
|
8
|
-
import { bytesToHex } from "wire-mesh-core/domain/device-id";
|
|
9
|
-
vi.mock("../core/identity-store.js", () => ({
|
|
10
|
-
loadRoomTokens: vi.fn(),
|
|
11
|
-
}));
|
|
12
|
-
// Opaque placeholder: markRead never inspects a token's own COSE_Sign1 structure, only forwards whatever loadRoomTokens returns to sendRoomRequestToMember.
|
|
13
|
-
const FAKE_TOKEN = "fake-token";
|
|
14
|
-
/** A device-id is a 64-character lowercase hex SHA-256 digest; room-path.ts's assertDeviceIdHex rejects anything shorter. */
|
|
15
|
-
const DEVICE_ID_HEX_LENGTH = 64;
|
|
16
|
-
const PEER_ID = "a".repeat(DEVICE_ID_HEX_LENGTH);
|
|
17
|
-
const OTHER_ID = "b".repeat(DEVICE_ID_HEX_LENGTH);
|
|
18
|
-
const THIRD_ID = "c".repeat(DEVICE_ID_HEX_LENGTH);
|
|
19
|
-
const NOW_MS = 1_700_000_000_000;
|
|
20
|
-
/** Mirrors delivery-engine.ts's own private MAX_LOCAL_DELIVERY_DEDUP_KEYS -- not exported, so re-derived here as the literal the source comment documents rather than imported. */
|
|
21
|
-
const MAX_LOCAL_DELIVERY_DEDUP_KEYS = 50;
|
|
22
|
-
/** delivery-engine.ts imports this from mesh-store-shared.ts; re-imported here directly so the queueDelivery boundary tests stay pinned to the real value rather than a re-typed guess. */
|
|
23
|
-
const MAX_QUEUED_DELIVERIES_PER_AGENT = 100;
|
|
24
|
-
/** A fresh, distinct, real device-id-shaped hex id -- avoids the no-magic-numbers problem a per-test literal byte value would run into (matching room-protocol.test.ts's own precedent), using the same randomId() utility production code already uses for the identical purpose. */
|
|
25
|
-
function messageId() {
|
|
26
|
-
return bytesToHex(randomId());
|
|
27
|
-
}
|
|
28
|
-
function room(overrides = {}) {
|
|
29
|
-
return {
|
|
30
|
-
id: "room-1",
|
|
31
|
-
version: 1,
|
|
32
|
-
name: "room-name",
|
|
33
|
-
type: "public",
|
|
34
|
-
owner: PEER_ID,
|
|
35
|
-
createdAt: "2026-01-01T00:00:00.000Z",
|
|
36
|
-
description: "",
|
|
37
|
-
members: [PEER_ID],
|
|
38
|
-
invited: [],
|
|
39
|
-
memberJoins: {},
|
|
40
|
-
memberLeaves: {},
|
|
41
|
-
invitedJoins: {},
|
|
42
|
-
invitedLeaves: {},
|
|
43
|
-
...overrides,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function agent(overrides = {}) {
|
|
47
|
-
return {
|
|
48
|
-
id: OTHER_ID,
|
|
49
|
-
version: 1,
|
|
50
|
-
name: "recipient",
|
|
51
|
-
harness: "pi",
|
|
52
|
-
cwd: "/tmp",
|
|
53
|
-
pid: 111,
|
|
54
|
-
startedAt: "2026-01-01T00:00:00.000Z",
|
|
55
|
-
visibility: "visible",
|
|
56
|
-
status: "active",
|
|
57
|
-
tags: [],
|
|
58
|
-
subscribedRooms: [],
|
|
59
|
-
...overrides,
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
function roomMessage(overrides = {}) {
|
|
63
|
-
return {
|
|
64
|
-
id: messageId(),
|
|
65
|
-
from: PEER_ID,
|
|
66
|
-
room: "room-1",
|
|
67
|
-
content: "hi",
|
|
68
|
-
timestamp: "2026-01-01T00:00:00.000Z",
|
|
69
|
-
readBy: [],
|
|
70
|
-
...overrides,
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
function dmMessage(overrides = {}) {
|
|
74
|
-
return {
|
|
75
|
-
id: messageId(),
|
|
76
|
-
from: PEER_ID,
|
|
77
|
-
to: OTHER_ID,
|
|
78
|
-
content: "hi",
|
|
79
|
-
timestamp: "2026-01-01T00:00:00.000Z",
|
|
80
|
-
readBy: [],
|
|
81
|
-
...overrides,
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
function fakeTransport() {
|
|
85
|
-
return {
|
|
86
|
-
dataPort: 4000,
|
|
87
|
-
isCoordinator: false,
|
|
88
|
-
hasCoordinatorConnection: false,
|
|
89
|
-
coordinatorPeerId: undefined,
|
|
90
|
-
startDataServer: vi.fn().mockResolvedValue(undefined),
|
|
91
|
-
connectToCoordinator: vi.fn().mockResolvedValue(undefined),
|
|
92
|
-
becomeCoordinator: vi.fn().mockResolvedValue(undefined),
|
|
93
|
-
connectToPeer: vi.fn().mockResolvedValue(undefined),
|
|
94
|
-
send: vi.fn().mockResolvedValue(undefined),
|
|
95
|
-
acceptConnection: vi.fn().mockResolvedValue(undefined),
|
|
96
|
-
rejectConnection: vi.fn().mockResolvedValue(undefined),
|
|
97
|
-
connectToRemote: vi.fn().mockResolvedValue(undefined),
|
|
98
|
-
broadcast: vi.fn().mockResolvedValue(undefined),
|
|
99
|
-
broadcastRevocation: vi.fn().mockResolvedValue(undefined),
|
|
100
|
-
broadcastCoordinatorClaim: vi.fn().mockResolvedValue(undefined),
|
|
101
|
-
sendCoordinatorClaim: vi.fn().mockResolvedValue(undefined),
|
|
102
|
-
electionPeerIds: () => new Set(),
|
|
103
|
-
sendRoomRequest: vi
|
|
104
|
-
.fn()
|
|
105
|
-
.mockResolvedValue({ result: "error", code: "not_connected" }),
|
|
106
|
-
addListener: vi.fn().mockResolvedValue("listener-1"),
|
|
107
|
-
removeListener: vi.fn().mockResolvedValue(undefined),
|
|
108
|
-
listListeners: vi.fn().mockReturnValue([]),
|
|
109
|
-
shutdown: vi.fn().mockResolvedValue(undefined),
|
|
110
|
-
unref: vi.fn(),
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
function makeHarness() {
|
|
114
|
-
let onDelivery;
|
|
115
|
-
let onPatch;
|
|
116
|
-
let shutDown = false;
|
|
117
|
-
const transport = fakeTransport();
|
|
118
|
-
const sendRoomRequestToMember = vi.fn().mockResolvedValue(undefined);
|
|
119
|
-
const revocationRecord = vi.fn().mockResolvedValue(undefined);
|
|
120
|
-
const deps = {
|
|
121
|
-
agents: new Map(),
|
|
122
|
-
rooms: new Map(),
|
|
123
|
-
messages: new Map(),
|
|
124
|
-
dms: new Map(),
|
|
125
|
-
deliveryQueues: new Map(),
|
|
126
|
-
localDeliveryKeys: new Set(),
|
|
127
|
-
pendingMarkReadTimers: [],
|
|
128
|
-
getPeerId: () => PEER_ID,
|
|
129
|
-
requireIdentity: () => ({
|
|
130
|
-
slot: { harness: "pi", cwd: "/tmp" },
|
|
131
|
-
clock: { now: () => NOW_MS },
|
|
132
|
-
identity: {},
|
|
133
|
-
revocation: { record: revocationRecord },
|
|
134
|
-
dataStorage: {},
|
|
135
|
-
userIdentity: {},
|
|
136
|
-
machineIdentity: {},
|
|
137
|
-
machineIdentityOptions: {},
|
|
138
|
-
accountLedger: {},
|
|
139
|
-
userIdentityOptions: {},
|
|
140
|
-
}),
|
|
141
|
-
requireTransport: () => transport,
|
|
142
|
-
getOnDelivery: () => onDelivery,
|
|
143
|
-
getOnPatch: () => onPatch,
|
|
144
|
-
isShutDown: () => shutDown,
|
|
145
|
-
sendRoomRequestToMember,
|
|
146
|
-
};
|
|
147
|
-
return {
|
|
148
|
-
deps,
|
|
149
|
-
engine: new DeliveryEngine(deps),
|
|
150
|
-
transport,
|
|
151
|
-
sendRoomRequestToMember,
|
|
152
|
-
revocationRecord,
|
|
153
|
-
setOnDelivery(fn) {
|
|
154
|
-
onDelivery = fn;
|
|
155
|
-
},
|
|
156
|
-
setOnPatch(fn) {
|
|
157
|
-
onPatch = fn;
|
|
158
|
-
},
|
|
159
|
-
setShutDown(v) {
|
|
160
|
-
shutDown = v;
|
|
161
|
-
},
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
beforeEach(() => {
|
|
165
|
-
vi.mocked(loadRoomTokens).mockReset();
|
|
166
|
-
vi.mocked(loadRoomTokens).mockReturnValue({ "room-1": FAKE_TOKEN });
|
|
167
|
-
});
|
|
168
|
-
// ---------------------------------------------------------------------------
|
|
169
|
-
// Gossip callbacks
|
|
170
|
-
// ---------------------------------------------------------------------------
|
|
171
|
-
describe("DeliveryEngine — handlePresenceAdvert", () => {
|
|
172
|
-
it("does nothing for a device with no known agent record", () => {
|
|
173
|
-
const h = makeHarness();
|
|
174
|
-
h.engine.handlePresenceAdvert(OTHER_ID, "idle");
|
|
175
|
-
expect(h.deps.agents.size).toBe(0);
|
|
176
|
-
});
|
|
177
|
-
it("does nothing when the gossiped status matches the current one", () => {
|
|
178
|
-
const h = makeHarness();
|
|
179
|
-
h.deps.agents.set(OTHER_ID, agent({ status: "active", version: 1 }));
|
|
180
|
-
h.engine.handlePresenceAdvert(OTHER_ID, "active");
|
|
181
|
-
expect(h.deps.agents.get(OTHER_ID)?.version).toBe(1);
|
|
182
|
-
});
|
|
183
|
-
it("applies a genuine status change and bumps the agent's version", () => {
|
|
184
|
-
const h = makeHarness();
|
|
185
|
-
h.deps.agents.set(OTHER_ID, agent({ status: "active", version: 1 }));
|
|
186
|
-
h.engine.handlePresenceAdvert(OTHER_ID, "busy");
|
|
187
|
-
const updated = h.deps.agents.get(OTHER_ID);
|
|
188
|
-
expect(updated?.status).toBe("busy");
|
|
189
|
-
expect(updated?.version).toBe(2);
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
describe("DeliveryEngine — handleRevocationAnnounce", () => {
|
|
193
|
-
it("records a gossiped revocation entry against this store's own identity", async () => {
|
|
194
|
-
const h = makeHarness();
|
|
195
|
-
const entry = { tokenId: "tok" };
|
|
196
|
-
await h.engine.handleRevocationAnnounce(entry);
|
|
197
|
-
expect(h.revocationRecord).toHaveBeenCalledWith(entry, {
|
|
198
|
-
identity: {},
|
|
199
|
-
});
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
// ---------------------------------------------------------------------------
|
|
203
|
-
// Queueing
|
|
204
|
-
// ---------------------------------------------------------------------------
|
|
205
|
-
describe("DeliveryEngine — queueDelivery", () => {
|
|
206
|
-
it("appends events under the target agent's queue", () => {
|
|
207
|
-
const h = makeHarness();
|
|
208
|
-
h.engine.queueDelivery(OTHER_ID, {
|
|
209
|
-
type: "member_left",
|
|
210
|
-
room: "r",
|
|
211
|
-
agent: OTHER_ID,
|
|
212
|
-
});
|
|
213
|
-
h.engine.queueDelivery(OTHER_ID, {
|
|
214
|
-
type: "member_left",
|
|
215
|
-
room: "r2",
|
|
216
|
-
agent: OTHER_ID,
|
|
217
|
-
});
|
|
218
|
-
expect(h.deps.deliveryQueues.get(OTHER_ID)).toHaveLength(2);
|
|
219
|
-
});
|
|
220
|
-
// Two mutants Stryker raises against queueDelivery's own `arr.length > MAX_QUEUED_DELIVERIES_PER_AGENT` guard are provably equivalent, not gaps: one replaces the whole condition with `true`, the other replaces `>` with `>=`. Both are unobservable because of `splice`'s own semantics, not because of a weak test -- the splice call's own deleteCount is computed as `arr.length - MAX_QUEUED_DELIVERIES_PER_AGENT`, which is <= 0 in exactly the cases these mutants would newly enter the branch for (at or below the cap), and `Array.prototype.splice` with a non-positive deleteCount is a documented no-op. So whether the branch itself fires is invisible: the guard's only effect is gating a call that already does nothing when the guard would have been false. Matches the identical reasoning already applied to room-protocol.ts's own `>` vs `>=` retry-queue boundary.
|
|
221
|
-
it("keeps exactly MAX_QUEUED_DELIVERIES_PER_AGENT entries with no eviction at the boundary", () => {
|
|
222
|
-
const h = makeHarness();
|
|
223
|
-
for (let i = 0; i < MAX_QUEUED_DELIVERIES_PER_AGENT; i++) {
|
|
224
|
-
h.engine.queueDelivery(OTHER_ID, {
|
|
225
|
-
type: "member_left",
|
|
226
|
-
room: `r${i}`,
|
|
227
|
-
agent: OTHER_ID,
|
|
228
|
-
});
|
|
229
|
-
}
|
|
230
|
-
const arr = h.deps.deliveryQueues.get(OTHER_ID);
|
|
231
|
-
expect(arr).toHaveLength(MAX_QUEUED_DELIVERIES_PER_AGENT);
|
|
232
|
-
expect(arr?.[0]).toMatchObject({ room: "r0" });
|
|
233
|
-
});
|
|
234
|
-
it("evicts the oldest entry, and only the oldest, once the bound is exceeded", () => {
|
|
235
|
-
const h = makeHarness();
|
|
236
|
-
for (let i = 0; i < MAX_QUEUED_DELIVERIES_PER_AGENT + 1; i++) {
|
|
237
|
-
h.engine.queueDelivery(OTHER_ID, {
|
|
238
|
-
type: "member_left",
|
|
239
|
-
room: `r${i}`,
|
|
240
|
-
agent: OTHER_ID,
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
const arr = h.deps.deliveryQueues.get(OTHER_ID);
|
|
244
|
-
expect(arr).toHaveLength(MAX_QUEUED_DELIVERIES_PER_AGENT);
|
|
245
|
-
expect(arr?.[0]).toMatchObject({ room: "r1" });
|
|
246
|
-
expect(arr?.at(-1)).toMatchObject({
|
|
247
|
-
room: `r${MAX_QUEUED_DELIVERIES_PER_AGENT}`,
|
|
248
|
-
});
|
|
249
|
-
});
|
|
250
|
-
});
|
|
251
|
-
// ---------------------------------------------------------------------------
|
|
252
|
-
// Membership merge (mergeRoom / refreshMembership / mergeMemberOps, reached via applyPatch/applyStateSync)
|
|
253
|
-
// ---------------------------------------------------------------------------
|
|
254
|
-
describe("DeliveryEngine — mergeRoom via applyPatch(room_upsert)", () => {
|
|
255
|
-
it("inserts a brand-new room and derives its membership views", async () => {
|
|
256
|
-
const h = makeHarness();
|
|
257
|
-
const incoming = room({
|
|
258
|
-
id: "new-room",
|
|
259
|
-
memberJoins: { [OTHER_ID]: 1 },
|
|
260
|
-
memberLeaves: {},
|
|
261
|
-
});
|
|
262
|
-
await h.engine.applyPatch({ type: "room_upsert", room: incoming });
|
|
263
|
-
const stored = h.deps.rooms.get("new-room");
|
|
264
|
-
expect(stored?.members).toEqual([OTHER_ID]);
|
|
265
|
-
});
|
|
266
|
-
it("drops a stale room_upsert patch whose version is strictly behind the local copy", async () => {
|
|
267
|
-
const h = makeHarness();
|
|
268
|
-
h.deps.rooms.set("room-1", room({ version: 5, name: "current" }));
|
|
269
|
-
await h.engine.applyPatch({
|
|
270
|
-
type: "room_upsert",
|
|
271
|
-
room: room({ version: 3, name: "stale" }),
|
|
272
|
-
});
|
|
273
|
-
expect(h.deps.rooms.get("room-1")?.name).toBe("current");
|
|
274
|
-
});
|
|
275
|
-
it("takes the strictly higher of the two versions, never the lower, on a genuine merge", async () => {
|
|
276
|
-
const h = makeHarness();
|
|
277
|
-
h.deps.rooms.set("room-1", room({ version: 1 }));
|
|
278
|
-
await h.engine.applyPatch({
|
|
279
|
-
type: "room_upsert",
|
|
280
|
-
room: room({ version: 2 }),
|
|
281
|
-
});
|
|
282
|
-
expect(h.deps.rooms.get("room-1")?.version).toBe(2);
|
|
283
|
-
});
|
|
284
|
-
it("merges rather than dropping a room_upsert patch at exactly the same version as the local copy", async () => {
|
|
285
|
-
const h = makeHarness();
|
|
286
|
-
h.deps.rooms.set("room-1", room({ version: 2, name: "old-name" }));
|
|
287
|
-
await h.engine.applyPatch({
|
|
288
|
-
type: "room_upsert",
|
|
289
|
-
room: room({ version: 2, name: "new-name" }),
|
|
290
|
-
});
|
|
291
|
-
expect(h.deps.rooms.get("room-1")?.name).toBe("new-name");
|
|
292
|
-
});
|
|
293
|
-
it("merges concurrent memberJoins by keeping the higher revision per agent, never overwriting with a lower one", async () => {
|
|
294
|
-
const h = makeHarness();
|
|
295
|
-
h.deps.rooms.set("room-1", room({ version: 1, memberJoins: { [OTHER_ID]: 2 } }));
|
|
296
|
-
await h.engine.applyPatch({
|
|
297
|
-
type: "room_upsert",
|
|
298
|
-
room: room({ version: 2, memberJoins: { [OTHER_ID]: 1, [THIRD_ID]: 1 } }),
|
|
299
|
-
});
|
|
300
|
-
const stored = h.deps.rooms.get("room-1");
|
|
301
|
-
expect(stored?.memberJoins[OTHER_ID]).toBe(2);
|
|
302
|
-
expect(stored?.memberJoins[THIRD_ID]).toBe(1);
|
|
303
|
-
});
|
|
304
|
-
// mergeMemberOps' own `stamp > (merged[id] ?? 0)` boundary check has one provably equivalent mutant Stryker still raises here: replacing `>` with `>=`. It's unobservable because the two operators only disagree when `stamp === merged[id]` -- and at that exact point, `merged[id] = stamp` assigns the map entry its own current value, which produces no difference any assertion could detect. The test above already proves the operator's real job (a strictly lower incoming stamp never overwrites a higher local one, and a strictly higher one does); the equal-stamp case has nothing further to distinguish.
|
|
305
|
-
});
|
|
306
|
-
describe("DeliveryEngine — refreshMembership", () => {
|
|
307
|
-
it("derives members as exactly those whose latest join outranks their latest leave", () => {
|
|
308
|
-
const h = makeHarness();
|
|
309
|
-
const r = room({
|
|
310
|
-
memberJoins: { [OTHER_ID]: 2, [THIRD_ID]: 3 },
|
|
311
|
-
memberLeaves: { [OTHER_ID]: 2, [THIRD_ID]: 1 },
|
|
312
|
-
});
|
|
313
|
-
h.engine.refreshMembership(r);
|
|
314
|
-
expect(r.members).toEqual([THIRD_ID]);
|
|
315
|
-
});
|
|
316
|
-
it("derives invited as exactly those whose latest invite-join outranks their latest invite-leave", () => {
|
|
317
|
-
const h = makeHarness();
|
|
318
|
-
const r = room({
|
|
319
|
-
invitedJoins: { [OTHER_ID]: 4, [THIRD_ID]: 2 },
|
|
320
|
-
invitedLeaves: { [OTHER_ID]: 1, [THIRD_ID]: 2 },
|
|
321
|
-
});
|
|
322
|
-
h.engine.refreshMembership(r);
|
|
323
|
-
expect(r.invited).toEqual([OTHER_ID]);
|
|
324
|
-
});
|
|
325
|
-
});
|
|
326
|
-
// ---------------------------------------------------------------------------
|
|
327
|
-
// bump
|
|
328
|
-
// ---------------------------------------------------------------------------
|
|
329
|
-
describe("DeliveryEngine — bump", () => {
|
|
330
|
-
it("increments the entity's version and returns the same reference", () => {
|
|
331
|
-
const h = makeHarness();
|
|
332
|
-
const r = room({ version: 1 });
|
|
333
|
-
const result = h.engine.bump(r);
|
|
334
|
-
expect(result).toBe(r);
|
|
335
|
-
expect(r.version).toBe(2);
|
|
336
|
-
});
|
|
337
|
-
});
|
|
338
|
-
// ---------------------------------------------------------------------------
|
|
339
|
-
// applyStateSync
|
|
340
|
-
// ---------------------------------------------------------------------------
|
|
341
|
-
function emptyState(overrides = {}) {
|
|
342
|
-
return {
|
|
343
|
-
agents: {},
|
|
344
|
-
rooms: {},
|
|
345
|
-
messages: {},
|
|
346
|
-
dms: {},
|
|
347
|
-
deliveryQueues: {},
|
|
348
|
-
...overrides,
|
|
349
|
-
};
|
|
350
|
-
}
|
|
351
|
-
describe("DeliveryEngine — applyStateSync agents", () => {
|
|
352
|
-
it("skips an incoming agent strictly behind the local version, keeping the local copy", () => {
|
|
353
|
-
const h = makeHarness();
|
|
354
|
-
h.deps.agents.set(OTHER_ID, agent({ version: 5, name: "local" }));
|
|
355
|
-
h.engine.applyStateSync(emptyState({
|
|
356
|
-
agents: { [OTHER_ID]: agent({ version: 3, name: "stale" }) },
|
|
357
|
-
}));
|
|
358
|
-
expect(h.deps.agents.get(OTHER_ID)?.name).toBe("local");
|
|
359
|
-
});
|
|
360
|
-
it("unions subscribedRooms without duplication when the incoming agent is at the exact same version", () => {
|
|
361
|
-
const h = makeHarness();
|
|
362
|
-
h.deps.agents.set(OTHER_ID, agent({ version: 5, subscribedRooms: ["local-room", "shared-room"] }));
|
|
363
|
-
h.engine.applyStateSync(emptyState({
|
|
364
|
-
agents: {
|
|
365
|
-
[OTHER_ID]: agent({
|
|
366
|
-
version: 5,
|
|
367
|
-
subscribedRooms: ["incoming-room", "shared-room"],
|
|
368
|
-
}),
|
|
369
|
-
},
|
|
370
|
-
}));
|
|
371
|
-
const merged = h.deps.agents.get(OTHER_ID);
|
|
372
|
-
expect(merged?.subscribedRooms.sort()).toEqual(["incoming-room", "local-room", "shared-room"].sort());
|
|
373
|
-
});
|
|
374
|
-
it("replaces wholesale, with no union, when the incoming agent is at a strictly higher version", () => {
|
|
375
|
-
const h = makeHarness();
|
|
376
|
-
h.deps.agents.set(OTHER_ID, agent({ version: 5, subscribedRooms: ["local-only"] }));
|
|
377
|
-
h.engine.applyStateSync(emptyState({
|
|
378
|
-
agents: {
|
|
379
|
-
[OTHER_ID]: agent({ version: 9, subscribedRooms: ["incoming-only"] }),
|
|
380
|
-
},
|
|
381
|
-
}));
|
|
382
|
-
expect(h.deps.agents.get(OTHER_ID)?.subscribedRooms).toEqual([
|
|
383
|
-
"incoming-only",
|
|
384
|
-
]);
|
|
385
|
-
});
|
|
386
|
-
it("inserts a brand-new agent this store has never seen", () => {
|
|
387
|
-
const h = makeHarness();
|
|
388
|
-
h.engine.applyStateSync(emptyState({ agents: { [OTHER_ID]: agent({ version: 1 }) } }));
|
|
389
|
-
expect(h.deps.agents.has(OTHER_ID)).toBe(true);
|
|
390
|
-
});
|
|
391
|
-
});
|
|
392
|
-
describe("DeliveryEngine — applyStateSync rooms", () => {
|
|
393
|
-
it("skips an incoming room strictly behind the local version", () => {
|
|
394
|
-
const h = makeHarness();
|
|
395
|
-
h.deps.rooms.set("room-1", room({ version: 5, name: "current" }));
|
|
396
|
-
h.engine.applyStateSync(emptyState({ rooms: { "room-1": room({ version: 2, name: "stale" }) } }));
|
|
397
|
-
expect(h.deps.rooms.get("room-1")?.name).toBe("current");
|
|
398
|
-
});
|
|
399
|
-
it("merges an incoming room at or above the local version", () => {
|
|
400
|
-
const h = makeHarness();
|
|
401
|
-
h.deps.rooms.set("room-1", room({ version: 5 }));
|
|
402
|
-
h.engine.applyStateSync(emptyState({
|
|
403
|
-
rooms: { "room-1": room({ version: 5, name: "renamed" }) },
|
|
404
|
-
}));
|
|
405
|
-
expect(h.deps.rooms.get("room-1")?.name).toBe("renamed");
|
|
406
|
-
});
|
|
407
|
-
});
|
|
408
|
-
describe("DeliveryEngine — applyStateSync message/dm histories", () => {
|
|
409
|
-
it("adopts the incoming history unmodified when this room has no local messages yet", () => {
|
|
410
|
-
const h = makeHarness();
|
|
411
|
-
const msgs = [roomMessage({ id: messageId() })];
|
|
412
|
-
h.engine.applyStateSync(emptyState({ messages: { "room-1": msgs } }));
|
|
413
|
-
expect(h.deps.messages.get("room-1")).toEqual(msgs);
|
|
414
|
-
});
|
|
415
|
-
it("merges the incoming history with the local one when both already have messages", () => {
|
|
416
|
-
const h = makeHarness();
|
|
417
|
-
const localId = messageId();
|
|
418
|
-
const incomingId = messageId();
|
|
419
|
-
h.deps.messages.set("room-1", [roomMessage({ id: localId })]);
|
|
420
|
-
h.engine.applyStateSync(emptyState({
|
|
421
|
-
messages: { "room-1": [roomMessage({ id: incomingId })] },
|
|
422
|
-
}));
|
|
423
|
-
expect(h.deps.messages
|
|
424
|
-
.get("room-1")
|
|
425
|
-
?.map((m) => m.id)
|
|
426
|
-
.sort()).toEqual([localId, incomingId].sort());
|
|
427
|
-
});
|
|
428
|
-
it("adopts the incoming dm history unmodified when there is no local copy yet", () => {
|
|
429
|
-
const h = makeHarness();
|
|
430
|
-
const msgs = [dmMessage({ id: messageId() })];
|
|
431
|
-
h.engine.applyStateSync(emptyState({ dms: { "dm-key": msgs } }));
|
|
432
|
-
expect(h.deps.dms.get("dm-key")).toEqual(msgs);
|
|
433
|
-
});
|
|
434
|
-
it("merges the incoming dm history with the local one when both already have entries", () => {
|
|
435
|
-
const h = makeHarness();
|
|
436
|
-
const localId = messageId();
|
|
437
|
-
const incomingId = messageId();
|
|
438
|
-
h.deps.dms.set("dm-key", [dmMessage({ id: localId })]);
|
|
439
|
-
h.engine.applyStateSync(emptyState({ dms: { "dm-key": [dmMessage({ id: incomingId })] } }));
|
|
440
|
-
expect(h.deps.dms
|
|
441
|
-
.get("dm-key")
|
|
442
|
-
?.map((m) => m.id)
|
|
443
|
-
.sort()).toEqual([localId, incomingId].sort());
|
|
444
|
-
});
|
|
445
|
-
});
|
|
446
|
-
// One mutant Stryker still raises in this block is a provable equivalent, not a gap: the `(this.deps.deliveryQueues.get(agentId) ?? []).map((e) => JSON.stringify(e))` line building the dedup "seen" set has its own `?? []` fallback replaced with `?? ["Stryker was here"]`. That fallback only runs when the local queue for agentId is undefined, and mapping it into `JSON.stringify("Stryker was here")` produces a garbage string no real DeliveryEvent's own JSON serialisation will ever collide with -- so the seen set ends up functionally empty either way, and the dedup test below (which already proves a genuinely-repeated event is skipped and a genuinely-new one isn't) can't distinguish an empty seen set from one seeded with an unreachable placeholder string.
|
|
447
|
-
describe("DeliveryEngine — applyStateSync deliveryQueues replay", () => {
|
|
448
|
-
it("queues every incoming event, even ones with no replay-eligible type", () => {
|
|
449
|
-
const h = makeHarness();
|
|
450
|
-
h.engine.applyStateSync(emptyState({
|
|
451
|
-
deliveryQueues: {
|
|
452
|
-
[PEER_ID]: [
|
|
453
|
-
{
|
|
454
|
-
type: "member_status",
|
|
455
|
-
room: "room-1",
|
|
456
|
-
agent: OTHER_ID,
|
|
457
|
-
status: "idle",
|
|
458
|
-
},
|
|
459
|
-
],
|
|
460
|
-
},
|
|
461
|
-
}));
|
|
462
|
-
expect(h.deps.deliveryQueues.get(PEER_ID)).toHaveLength(1);
|
|
463
|
-
});
|
|
464
|
-
it("does not duplicate an event already present in the local queue", () => {
|
|
465
|
-
const h = makeHarness();
|
|
466
|
-
const event = {
|
|
467
|
-
type: "member_left",
|
|
468
|
-
room: "room-1",
|
|
469
|
-
agent: OTHER_ID,
|
|
470
|
-
};
|
|
471
|
-
h.deps.deliveryQueues.set(PEER_ID, [event]);
|
|
472
|
-
h.engine.applyStateSync(emptyState({ deliveryQueues: { [PEER_ID]: [event] } }));
|
|
473
|
-
expect(h.deps.deliveryQueues.get(PEER_ID)).toHaveLength(1);
|
|
474
|
-
});
|
|
475
|
-
it("fires onDelivery for a replayed room_message targeting this peer's own agent", () => {
|
|
476
|
-
const h = makeHarness();
|
|
477
|
-
const delivered = vi.fn();
|
|
478
|
-
h.setOnDelivery(delivered);
|
|
479
|
-
const event = {
|
|
480
|
-
type: "room_message",
|
|
481
|
-
message: roomMessage(),
|
|
482
|
-
};
|
|
483
|
-
h.engine.applyStateSync(emptyState({ deliveryQueues: { [PEER_ID]: [event] } }));
|
|
484
|
-
expect(delivered).toHaveBeenCalledWith(PEER_ID, event);
|
|
485
|
-
});
|
|
486
|
-
it("fires onDelivery for a replayed dm targeting this peer's own agent", () => {
|
|
487
|
-
const h = makeHarness();
|
|
488
|
-
const delivered = vi.fn();
|
|
489
|
-
h.setOnDelivery(delivered);
|
|
490
|
-
const event = { type: "dm", message: dmMessage() };
|
|
491
|
-
h.engine.applyStateSync(emptyState({ deliveryQueues: { [PEER_ID]: [event] } }));
|
|
492
|
-
expect(delivered).toHaveBeenCalledWith(PEER_ID, event);
|
|
493
|
-
});
|
|
494
|
-
it("does not fire onDelivery for a replayed transient event even though it is still queued", () => {
|
|
495
|
-
const h = makeHarness();
|
|
496
|
-
const delivered = vi.fn();
|
|
497
|
-
h.setOnDelivery(delivered);
|
|
498
|
-
const event = {
|
|
499
|
-
type: "member_status",
|
|
500
|
-
room: "room-1",
|
|
501
|
-
agent: OTHER_ID,
|
|
502
|
-
status: "idle",
|
|
503
|
-
};
|
|
504
|
-
h.engine.applyStateSync(emptyState({ deliveryQueues: { [PEER_ID]: [event] } }));
|
|
505
|
-
expect(delivered).not.toHaveBeenCalled();
|
|
506
|
-
expect(h.deps.deliveryQueues.get(PEER_ID)).toHaveLength(1);
|
|
507
|
-
});
|
|
508
|
-
it("fires onDelivery for a room_invite still reflected in the room's own invited list", () => {
|
|
509
|
-
const h = makeHarness();
|
|
510
|
-
h.deps.rooms.set("room-1", room({ invited: [PEER_ID] }));
|
|
511
|
-
const delivered = vi.fn();
|
|
512
|
-
h.setOnDelivery(delivered);
|
|
513
|
-
const event = {
|
|
514
|
-
type: "room_invite",
|
|
515
|
-
room: "room-1",
|
|
516
|
-
roomDescription: "",
|
|
517
|
-
from: OTHER_ID,
|
|
518
|
-
fromName: "other",
|
|
519
|
-
fromCwd: "/tmp",
|
|
520
|
-
};
|
|
521
|
-
h.engine.applyStateSync(emptyState({ deliveryQueues: { [PEER_ID]: [event] } }));
|
|
522
|
-
expect(delivered).toHaveBeenCalledWith(PEER_ID, event);
|
|
523
|
-
});
|
|
524
|
-
it("does not fire onDelivery for a room_invite no longer reflected in the room's invited list, though it stays queued", () => {
|
|
525
|
-
const h = makeHarness();
|
|
526
|
-
h.deps.rooms.set("room-1", room({ invited: [] }));
|
|
527
|
-
const delivered = vi.fn();
|
|
528
|
-
h.setOnDelivery(delivered);
|
|
529
|
-
const event = {
|
|
530
|
-
type: "room_invite",
|
|
531
|
-
room: "room-1",
|
|
532
|
-
roomDescription: "",
|
|
533
|
-
from: OTHER_ID,
|
|
534
|
-
fromName: "other",
|
|
535
|
-
fromCwd: "/tmp",
|
|
536
|
-
};
|
|
537
|
-
h.engine.applyStateSync(emptyState({ deliveryQueues: { [PEER_ID]: [event] } }));
|
|
538
|
-
expect(delivered).not.toHaveBeenCalled();
|
|
539
|
-
expect(h.deps.deliveryQueues.get(PEER_ID)).toHaveLength(1);
|
|
540
|
-
});
|
|
541
|
-
});
|
|
542
|
-
// ---------------------------------------------------------------------------
|
|
543
|
-
// applyPatch — non-delivery cases (agent_upsert / room_delete / message_add / dm_add) -- the delivery case, and everything after it, lives in delivery-engine-delivery.test.ts
|
|
544
|
-
// ---------------------------------------------------------------------------
|
|
545
|
-
describe("DeliveryEngine — applyPatch(agent_upsert)", () => {
|
|
546
|
-
it("drops a stale patch whose version is strictly behind the local copy", async () => {
|
|
547
|
-
const h = makeHarness();
|
|
548
|
-
h.deps.agents.set(OTHER_ID, agent({ version: 5, name: "current" }));
|
|
549
|
-
await h.engine.applyPatch({
|
|
550
|
-
type: "agent_upsert",
|
|
551
|
-
agent: agent({ version: 3, name: "stale" }),
|
|
552
|
-
});
|
|
553
|
-
expect(h.deps.agents.get(OTHER_ID)?.name).toBe("current");
|
|
554
|
-
});
|
|
555
|
-
it("inserts a brand-new agent with no prior local record", async () => {
|
|
556
|
-
const h = makeHarness();
|
|
557
|
-
await h.engine.applyPatch({
|
|
558
|
-
type: "agent_upsert",
|
|
559
|
-
agent: agent({ version: 1 }),
|
|
560
|
-
});
|
|
561
|
-
expect(h.deps.agents.has(OTHER_ID)).toBe(true);
|
|
562
|
-
});
|
|
563
|
-
it("unions subscribedRooms without duplication at the exact same version", async () => {
|
|
564
|
-
const h = makeHarness();
|
|
565
|
-
h.deps.agents.set(OTHER_ID, agent({ version: 4, subscribedRooms: ["local-only", "shared"] }));
|
|
566
|
-
await h.engine.applyPatch({
|
|
567
|
-
type: "agent_upsert",
|
|
568
|
-
agent: agent({
|
|
569
|
-
version: 4,
|
|
570
|
-
subscribedRooms: ["incoming-only", "shared"],
|
|
571
|
-
}),
|
|
572
|
-
});
|
|
573
|
-
const merged = h.deps.agents.get(OTHER_ID);
|
|
574
|
-
expect(merged?.subscribedRooms.sort()).toEqual(["incoming-only", "local-only", "shared"].sort());
|
|
575
|
-
});
|
|
576
|
-
});
|
|
577
|
-
// The `this.deps.agents.set(patch.agentId, agent)` call at the end of this branch has one provable equivalent mutant Stryker still raises: removing it entirely. `agent` here is fetched via `this.deps.agents.get(patch.agentId)`, the exact same object reference already stored in the Map, and `agent.status = "offline"` mutates that object in place -- so re-setting the map entry to the identical reference it already holds is a genuine no-op, the same Map.set-same-reference pattern already documented elsewhere in this codebase (agent-registry.ts's setAgentOffline). The test below already proves the real, observable effect (status flips to "offline").
|
|
578
|
-
describe("DeliveryEngine — applyPatch(agent_offline)", () => {
|
|
579
|
-
it("marks an existing agent as offline", async () => {
|
|
580
|
-
const h = makeHarness();
|
|
581
|
-
h.deps.agents.set(OTHER_ID, agent({ status: "active" }));
|
|
582
|
-
await h.engine.applyPatch({ type: "agent_offline", agentId: OTHER_ID });
|
|
583
|
-
expect(h.deps.agents.get(OTHER_ID)?.status).toBe("offline");
|
|
584
|
-
});
|
|
585
|
-
it("raises the record's revision, so a snapshot taken while the agent was running cannot turn it back on", async () => {
|
|
586
|
-
const h = makeHarness();
|
|
587
|
-
const running = agent({ status: "active" });
|
|
588
|
-
h.deps.agents.set(OTHER_ID, structuredClone(running));
|
|
589
|
-
await h.engine.applyPatch({ type: "agent_offline", agentId: OTHER_ID });
|
|
590
|
-
h.engine.applyStateSync(emptyState({ agents: { [OTHER_ID]: running } }));
|
|
591
|
-
expect(h.deps.agents.get(OTHER_ID)?.status).toBe("offline");
|
|
592
|
-
expect(h.deps.agents.get(OTHER_ID)?.version).toBe(running.version + 1);
|
|
593
|
-
});
|
|
594
|
-
it("does nothing when the agent has no local record", async () => {
|
|
595
|
-
const h = makeHarness();
|
|
596
|
-
await expect(h.engine.applyPatch({ type: "agent_offline", agentId: OTHER_ID })).resolves.toBeUndefined();
|
|
597
|
-
expect(h.deps.agents.has(OTHER_ID)).toBe(false);
|
|
598
|
-
});
|
|
599
|
-
it("contradicts a report that this store's own running agent is offline, re-announcing it active at a higher revision", async () => {
|
|
600
|
-
const h = makeHarness();
|
|
601
|
-
h.deps.agents.set(PEER_ID, agent({ id: PEER_ID, status: "active" }));
|
|
602
|
-
await h.engine.applyPatch({ type: "agent_offline", agentId: PEER_ID });
|
|
603
|
-
const own = h.deps.agents.get(PEER_ID);
|
|
604
|
-
expect(own?.status).toBe("active");
|
|
605
|
-
expect(own?.version).toBe(2);
|
|
606
|
-
expect(h.transport.broadcast).toHaveBeenCalledWith({
|
|
607
|
-
method: "state_update",
|
|
608
|
-
patch: { type: "agent_upsert", agent: own },
|
|
609
|
-
});
|
|
610
|
-
});
|
|
611
|
-
it("accepts this store's own agent going offline once it has itself set it offline, without re-announcing it", async () => {
|
|
612
|
-
const h = makeHarness();
|
|
613
|
-
h.deps.agents.set(PEER_ID, agent({ id: PEER_ID, status: "offline" }));
|
|
614
|
-
await h.engine.applyPatch({ type: "agent_offline", agentId: PEER_ID });
|
|
615
|
-
expect(h.deps.agents.get(PEER_ID)?.status).toBe("offline");
|
|
616
|
-
expect(h.transport.broadcast).not.toHaveBeenCalled();
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
describe("DeliveryEngine — applyPatch(room_delete/message_add/dm_add)", () => {
|
|
620
|
-
it("removes the room from the local map", async () => {
|
|
621
|
-
const h = makeHarness();
|
|
622
|
-
h.deps.rooms.set("room-1", room());
|
|
623
|
-
await h.engine.applyPatch({ type: "room_delete", roomId: "room-1" });
|
|
624
|
-
expect(h.deps.rooms.has("room-1")).toBe(false);
|
|
625
|
-
});
|
|
626
|
-
it("appends a message_add patch's message onto the room's history", async () => {
|
|
627
|
-
const h = makeHarness();
|
|
628
|
-
const msg = roomMessage({ id: messageId() });
|
|
629
|
-
await h.engine.applyPatch({
|
|
630
|
-
type: "message_add",
|
|
631
|
-
roomId: "room-1",
|
|
632
|
-
message: msg,
|
|
633
|
-
});
|
|
634
|
-
expect(h.deps.messages.get("room-1")).toEqual([msg]);
|
|
635
|
-
});
|
|
636
|
-
it("appends a dm_add patch's message onto the dm history keyed by its key", async () => {
|
|
637
|
-
const h = makeHarness();
|
|
638
|
-
const msg = dmMessage({ id: messageId() });
|
|
639
|
-
await h.engine.applyPatch({ type: "dm_add", key: "dm-key", message: msg });
|
|
640
|
-
expect(h.deps.dms.get("dm-key")).toEqual([msg]);
|
|
641
|
-
});
|
|
642
|
-
});
|
|
643
|
-
describe("DeliveryEngine — applyPatch onPatch callback", () => {
|
|
644
|
-
it("invokes onPatch with the exact patch after applying it, when one is set", async () => {
|
|
645
|
-
const h = makeHarness();
|
|
646
|
-
const onPatch = vi.fn();
|
|
647
|
-
h.setOnPatch(onPatch);
|
|
648
|
-
const patch = { type: "room_delete", roomId: "room-1" };
|
|
649
|
-
await h.engine.applyPatch(patch);
|
|
650
|
-
expect(onPatch).toHaveBeenCalledWith(patch);
|
|
651
|
-
});
|
|
652
|
-
it("does not throw when no onPatch callback is set", async () => {
|
|
653
|
-
const h = makeHarness();
|
|
654
|
-
await expect(h.engine.applyPatch({ type: "room_delete", roomId: "room-1" })).resolves.toBeUndefined();
|
|
655
|
-
});
|
|
656
|
-
});
|
|
657
|
-
describe("DeliveryEngine — deliver", () => {
|
|
658
|
-
it("delegates to deliverLocallyAndBroadcast, queueing and broadcasting the event", async () => {
|
|
659
|
-
const h = makeHarness();
|
|
660
|
-
await h.engine.deliver(OTHER_ID, {
|
|
661
|
-
type: "member_left",
|
|
662
|
-
room: "room-1",
|
|
663
|
-
agent: OTHER_ID,
|
|
664
|
-
});
|
|
665
|
-
expect(h.deps.deliveryQueues.get(OTHER_ID)).toHaveLength(1);
|
|
666
|
-
expect(h.transport.broadcast).toHaveBeenCalledTimes(1);
|
|
667
|
-
});
|
|
668
|
-
});
|
|
669
|
-
describe("DeliveryEngine — drainDelivery", () => {
|
|
670
|
-
it("returns the queued events and empties the queue", async () => {
|
|
671
|
-
const h = makeHarness();
|
|
672
|
-
const event = {
|
|
673
|
-
type: "member_left",
|
|
674
|
-
room: "room-1",
|
|
675
|
-
agent: OTHER_ID,
|
|
676
|
-
};
|
|
677
|
-
h.deps.deliveryQueues.set(PEER_ID, [event]);
|
|
678
|
-
const drained = await h.engine.drainDelivery(PEER_ID);
|
|
679
|
-
expect(drained).toEqual([event]);
|
|
680
|
-
expect(h.deps.deliveryQueues.get(PEER_ID)).toEqual([]);
|
|
681
|
-
});
|
|
682
|
-
it("returns an empty array for an agent with no queued events", async () => {
|
|
683
|
-
const h = makeHarness();
|
|
684
|
-
const drained = await h.engine.drainDelivery(OTHER_ID);
|
|
685
|
-
expect(drained).toEqual([]);
|
|
686
|
-
});
|
|
687
|
-
it("marks a drained dm as read via markRead, mirroring the room_message case", async () => {
|
|
688
|
-
const h = makeHarness();
|
|
689
|
-
const msg = dmMessage({ id: messageId(), from: OTHER_ID, readBy: [] });
|
|
690
|
-
h.deps.dms.set("self:z", [msg]);
|
|
691
|
-
vi.mocked(loadRoomTokens).mockReturnValue({ "self:z": FAKE_TOKEN });
|
|
692
|
-
h.deps.deliveryQueues.set(PEER_ID, [{ type: "dm", message: msg }]);
|
|
693
|
-
await h.engine.drainDelivery(PEER_ID);
|
|
694
|
-
expect(msg.readBy).toEqual([PEER_ID]);
|
|
695
|
-
expect(h.sendRoomRequestToMember).toHaveBeenCalledWith(OTHER_ID, "self:z", FAKE_TOKEN, expect.objectContaining({ verb: "room.read" }));
|
|
696
|
-
});
|
|
697
|
-
it("does not attempt to mark read a transient event with no message of its own", async () => {
|
|
698
|
-
const h = makeHarness();
|
|
699
|
-
h.deps.deliveryQueues.set(PEER_ID, [
|
|
700
|
-
{
|
|
701
|
-
type: "member_status",
|
|
702
|
-
room: "room-1",
|
|
703
|
-
agent: OTHER_ID,
|
|
704
|
-
status: "idle",
|
|
705
|
-
},
|
|
706
|
-
]);
|
|
707
|
-
await expect(h.engine.drainDelivery(PEER_ID)).resolves.toHaveLength(1);
|
|
708
|
-
expect(h.sendRoomRequestToMember).not.toHaveBeenCalled();
|
|
709
|
-
});
|
|
710
|
-
});
|
|
711
|
-
//# sourceMappingURL=delivery-engine.unit.test.js.map
|