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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room-messaging.unit.test.js","sourceRoot":"","sources":["../../src/test/room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AAG,CACd,QAAQ,EACR,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,cAAc,EAAE,YAAY,EAAE,eAAe,CAAC,EAAE,CAAC,CACnE,CAAC;QACF,CAAC,CAAC,uBAAuB;aACtB,qBAAqB,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;aAChE,qBAAqB,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;QAEhD,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,SAAS,CAAC,eAAe,CAC5C,QAAQ,EACR,cAAc,EACd,IAAI,CACL,CAAC;QAEF,MAAM,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;QAC3D,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;YACjC,MAAM,EAAE,eAAe;YACvB,QAAQ,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE;SAClC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* recordRoomSendNotice: mints a room-notice for a real room-send and appends it to the sender's own oplog. The critical correctness property is round-trip fidelity -- what gets CBOR-encoded and appended must decode back into exactly the same verifiable RoomNotice createRoomNotice produced, since appendOwnEntry only ever stores opaque bytes and has no idea a RoomNotice is inside them.
|
|
3
|
-
*/
|
|
4
|
-
export {};
|
|
5
|
-
//# sourceMappingURL=room-notice-log.unit.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room-notice-log.unit.test.d.ts","sourceRoot":"","sources":["../../src/test/room-notice-log.unit.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* recordRoomSendNotice: mints a room-notice for a real room-send and appends it to the sender's own oplog. The critical correctness property is round-trip fidelity -- what gets CBOR-encoded and appended must decode back into exactly the same verifiable RoomNotice createRoomNotice produced, since appendOwnEntry only ever stores opaque bytes and has no idea a RoomNotice is inside them.
|
|
3
|
-
*/
|
|
4
|
-
import { describe, expect, it } from "vitest";
|
|
5
|
-
import { decode as cborDecode, cdeDecodeOptions } from "cbor2";
|
|
6
|
-
import { deviceIdToHex } from "wire-mesh-core/domain/device-id";
|
|
7
|
-
import { createSystemClock } from "wire-mesh-core/adapters/system-clock";
|
|
8
|
-
import { createMemoryStorage } from "wire-mesh-core/adapters/memory-storage";
|
|
9
|
-
import { mintCapabilityToken } from "wire-mesh-core/domain/tokens";
|
|
10
|
-
import { ownerNamedRoomPath } from "wire-mesh-core/domain/room-path";
|
|
11
|
-
import { verifyRoomNotice } from "wire-mesh-core/domain/room";
|
|
12
|
-
import { createRevocationView } from "wire-mesh-core/domain/revocation-view";
|
|
13
|
-
import { readEntries, headSeqFor } from "wire-mesh-core/domain/data-sync";
|
|
14
|
-
import { generateIdentity } from "../core/identity.js";
|
|
15
|
-
import { toIdentityPort } from "../core/wire-mesh-identity.js";
|
|
16
|
-
import { recordRoomSendNotice } from "../core/room-notice-log.js";
|
|
17
|
-
import { randomId } from "../core/random-id.js";
|
|
18
|
-
const NO_DELEGATIONS_REMAINING = 0;
|
|
19
|
-
const MINUTES_PER_HOUR = 60;
|
|
20
|
-
const SECONDS_PER_MINUTE = 60;
|
|
21
|
-
const MS_PER_SECOND = 1000;
|
|
22
|
-
const ONE_HOUR_MS = MINUTES_PER_HOUR * SECONDS_PER_MINUTE * MS_PER_SECOND;
|
|
23
|
-
async function mintRoomMemberToken(issuer, bearer, roomPath) {
|
|
24
|
-
const verdict = await mintCapabilityToken({
|
|
25
|
-
identity: issuer,
|
|
26
|
-
clock: createSystemClock(),
|
|
27
|
-
tokenId: randomId(),
|
|
28
|
-
bearer: bearer.deviceId,
|
|
29
|
-
capability: "room:member",
|
|
30
|
-
scope: { kind: "room", path: roomPath },
|
|
31
|
-
expires: Date.now() + ONE_HOUR_MS,
|
|
32
|
-
delegationsRemaining: NO_DELEGATIONS_REMAINING,
|
|
33
|
-
});
|
|
34
|
-
if (!verdict.ok)
|
|
35
|
-
throw new Error(`mint failed: ${verdict.reason}`);
|
|
36
|
-
return verdict.token;
|
|
37
|
-
}
|
|
38
|
-
describe("recordRoomSendNotice", () => {
|
|
39
|
-
it("appends a notice that decodes back into exactly what verifyRoomNotice accepts", async () => {
|
|
40
|
-
const ownerIdentity = await toIdentityPort(generateIdentity());
|
|
41
|
-
const posterIdentity = await toIdentityPort(generateIdentity());
|
|
42
|
-
const roomPath = ownerNamedRoomPath(deviceIdToHex(ownerIdentity.deviceId), "general");
|
|
43
|
-
const token = await mintRoomMemberToken(ownerIdentity, posterIdentity, roomPath);
|
|
44
|
-
const storage = createMemoryStorage();
|
|
45
|
-
const clock = createSystemClock();
|
|
46
|
-
const { seq, haveFrame } = await recordRoomSendNotice({ identity: posterIdentity, clock, storage }, {
|
|
47
|
-
room: roomPath,
|
|
48
|
-
token,
|
|
49
|
-
contentType: "text/plain",
|
|
50
|
-
content: new TextEncoder().encode("hello room"),
|
|
51
|
-
});
|
|
52
|
-
expect(seq).toBe(1);
|
|
53
|
-
expect(haveFrame).toEqual({
|
|
54
|
-
type: "data-have",
|
|
55
|
-
peer: posterIdentity.deviceId,
|
|
56
|
-
"head-seq": 1,
|
|
57
|
-
});
|
|
58
|
-
expect(await headSeqFor(storage, posterIdentity.deviceId)).toBe(1);
|
|
59
|
-
const [storedBytes] = await readEntries(storage, posterIdentity.deviceId, 0);
|
|
60
|
-
expect(storedBytes).toBeDefined();
|
|
61
|
-
if (storedBytes === undefined)
|
|
62
|
-
return;
|
|
63
|
-
const decoded = cborDecode(storedBytes, cdeDecodeOptions);
|
|
64
|
-
const verdict = await verifyRoomNotice(decoded, {
|
|
65
|
-
identity: posterIdentity,
|
|
66
|
-
clock,
|
|
67
|
-
revocation: createRevocationView(),
|
|
68
|
-
});
|
|
69
|
-
expect(verdict.ok, `expected the round-tripped notice to verify, got ${JSON.stringify(verdict)}`).toBeTruthy();
|
|
70
|
-
if (!verdict.ok)
|
|
71
|
-
return;
|
|
72
|
-
expect(verdict.claims.room).toBe(roomPath);
|
|
73
|
-
expect(new TextDecoder().decode(verdict.claims.content)).toBe("hello room");
|
|
74
|
-
});
|
|
75
|
-
it("increments the sequence across successive sends in the same room", async () => {
|
|
76
|
-
const ownerIdentity = await toIdentityPort(generateIdentity());
|
|
77
|
-
const posterIdentity = await toIdentityPort(generateIdentity());
|
|
78
|
-
const roomPath = ownerNamedRoomPath(deviceIdToHex(ownerIdentity.deviceId), "general");
|
|
79
|
-
const token = await mintRoomMemberToken(ownerIdentity, posterIdentity, roomPath);
|
|
80
|
-
const storage = createMemoryStorage();
|
|
81
|
-
const clock = createSystemClock();
|
|
82
|
-
const deps = { identity: posterIdentity, clock, storage };
|
|
83
|
-
const options = {
|
|
84
|
-
room: roomPath,
|
|
85
|
-
token,
|
|
86
|
-
contentType: "text/plain",
|
|
87
|
-
};
|
|
88
|
-
const first = await recordRoomSendNotice(deps, {
|
|
89
|
-
...options,
|
|
90
|
-
content: new TextEncoder().encode("first"),
|
|
91
|
-
});
|
|
92
|
-
const second = await recordRoomSendNotice(deps, {
|
|
93
|
-
...options,
|
|
94
|
-
content: new TextEncoder().encode("second"),
|
|
95
|
-
});
|
|
96
|
-
expect(first.seq).toBe(1);
|
|
97
|
-
expect(second.seq).toBe(2);
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
//# sourceMappingURL=room-notice-log.unit.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room-notice-log.unit.test.js","sourceRoot":"","sources":["../../src/test/room-notice-log.unit.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,MAAM,IAAI,UA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AAa,CAAC,QAAQ,CAAC,EACrC,SAAS,CACV,CAAC;QACF,MAAM,KAAK,GAAG,MAAM,mBAAmB,CACrC,aAAa,EACb,cAAc,EACd,QAAQ,CACT,CAAC;QACF,MAAM,OAAO,GAAG,mBAAmB,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;QAClC,MAAM,IAAI,GAAG,EAAE,QAAQ,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAC1D,MAAM,OAAO,GAAG;YACd,IAAI,EAAE,QAAQ;YACd,KAAK;YACL,WAAW,EAAE,YAAY;SAC1B,CAAC;QAEF,MAAM,KAAK,GAAG,MAAM,oBAAoB,CAAC,IAAI,EAAE;YAC7C,GAAG,OAAO;YACV,OAAO,EAAE,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC;SAC3C,CAAC,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,oBAAoB,CAAC,IAAI,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;SAC5C,CAAC,CAAC;QAEH,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"room-protocol-admission.unit.test.d.ts","sourceRoot":"","sources":["../../src/test/room-protocol-admission.unit.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,432 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Direct, DI-based unit tests for RoomProtocol -- the receiving/responding half of the room wire protocol, previously exercised only through real two-peer TCP/TLS integration tests (room-send-directed, room-read-directed, dm-admission, room-join-admission, etc.), which cover the happy path end-to-end but not most individual error codes, optional-field spreads, and edge branches. RoomProtocolDeps is a narrow, injectable surface built exactly for direct testing, but token verification here is genuinely cryptographic (verifyRoomToken), so tests use real identities (generateIdentity/toIdentityPort) and real minted tokens (mintCapabilityToken) rather than opaque placeholders -- unlike room-messaging.ts's sending side, which never inspects a token's own structure.
|
|
3
|
-
*
|
|
4
|
-
* Split across two files to stay under this repo's max-lines cap: this file covers sendRoomRequestToMember/flushPendingRoomRequests, handleRoomJoin/admitRoomJoin, acceptRoomJoin/rejectRoomJoin, handleRoomInvite, and handleRoomLeave. See room-protocol.test.ts for handleRoomSend, handleRoomRead, handleRoomMembers, and sendRoomMessageDirected.
|
|
5
|
-
*/
|
|
6
|
-
import { beforeEach, describe, expect, it } from "vitest";
|
|
7
|
-
import { bytesToHex, deviceIdFromHex } from "wire-mesh-core/domain/device-id";
|
|
8
|
-
import { loadRoomTokens, saveRoomToken } from "../core/identity-store.js";
|
|
9
|
-
import { dmRoomPath, ownerNamedRoomPath } from "../core/room-path.js";
|
|
10
|
-
import { generateIdentity } from "../core/identity.js";
|
|
11
|
-
import { toIdentityPort } from "../core/wire-mesh-identity.js";
|
|
12
|
-
import { MAX_PENDING_ROOM_REQUESTS_PER_MEMBER } from "../core/mesh-store-shared.js";
|
|
13
|
-
import { DEVICE_ID_HEX_LENGTH, agent, handle, makeHarness, manageRequest, mintRoomToken, room, } from "./room-protocol.helper.js";
|
|
14
|
-
describe("RoomProtocol — sendRoomRequestToMember / flushPendingRoomRequests", () => {
|
|
15
|
-
/** flushPendingRoomRequests drops (rather than retries) any queued entry whose room this store holds no persisted token for -- so every test that expects a real retry needs one. The token's own cryptographic validity for the specific path doesn't matter here: flushPendingRoomRequests only checks presence via loadRoomTokens, never re-verifies it (that happens receiver-side). */
|
|
16
|
-
async function persistToken(h, roomPath) {
|
|
17
|
-
const token = await mintRoomToken(h.ids.ownerPort, h.ids.ownerId, roomPath);
|
|
18
|
-
saveRoomToken({ harness: "test", cwd: "room-protocol", dir: h.slotDir }, roomPath, token);
|
|
19
|
-
}
|
|
20
|
-
it("queues for retry when the transport throws outright", async () => {
|
|
21
|
-
const h = await makeHarness();
|
|
22
|
-
await persistToken(h, "room-1");
|
|
23
|
-
h.sendRoomRequest.mockRejectedValue(new Error("connection dropped"));
|
|
24
|
-
await h.protocol.sendRoomRequestToMember(h.ids.memberId, "room-1", "fake-token", { verb: "room.send" });
|
|
25
|
-
// Observable only via flushPendingRoomRequests actually retrying it once reachable.
|
|
26
|
-
h.sendRoomRequest.mockResolvedValue({ result: "ok" });
|
|
27
|
-
await h.protocol.flushPendingRoomRequests(h.ids.memberId);
|
|
28
|
-
expect(h.sendRoomRequest).toHaveBeenCalledTimes(2);
|
|
29
|
-
});
|
|
30
|
-
it("queues for retry when the transport resolves with a non-ok outcome", async () => {
|
|
31
|
-
const h = await makeHarness();
|
|
32
|
-
await persistToken(h, "room-1");
|
|
33
|
-
h.sendRoomRequest.mockResolvedValueOnce({
|
|
34
|
-
result: "error",
|
|
35
|
-
code: "not_connected",
|
|
36
|
-
});
|
|
37
|
-
await h.protocol.sendRoomRequestToMember(h.ids.memberId, "room-1", "fake-token", { verb: "room.send" });
|
|
38
|
-
h.sendRoomRequest.mockResolvedValue({ result: "ok" });
|
|
39
|
-
await h.protocol.flushPendingRoomRequests(h.ids.memberId);
|
|
40
|
-
expect(h.sendRoomRequest).toHaveBeenCalledTimes(2);
|
|
41
|
-
});
|
|
42
|
-
it("does not queue anything when the transport succeeds", async () => {
|
|
43
|
-
const h = await makeHarness();
|
|
44
|
-
await persistToken(h, "room-1");
|
|
45
|
-
h.sendRoomRequest.mockResolvedValue({ result: "ok" });
|
|
46
|
-
await h.protocol.sendRoomRequestToMember(h.ids.memberId, "room-1", "fake-token", { verb: "room.send" });
|
|
47
|
-
await h.protocol.flushPendingRoomRequests(h.ids.memberId);
|
|
48
|
-
expect(h.sendRoomRequest).toHaveBeenCalledTimes(1);
|
|
49
|
-
});
|
|
50
|
-
it("bounds the retry queue oldest-first at exactly MAX_PENDING_ROOM_REQUESTS_PER_MEMBER", async () => {
|
|
51
|
-
const h = await makeHarness();
|
|
52
|
-
for (let i = 0; i < MAX_PENDING_ROOM_REQUESTS_PER_MEMBER + 1; i++) {
|
|
53
|
-
await persistToken(h, `room-${String(i)}`);
|
|
54
|
-
}
|
|
55
|
-
h.sendRoomRequest.mockResolvedValue({
|
|
56
|
-
result: "error",
|
|
57
|
-
code: "not_connected",
|
|
58
|
-
});
|
|
59
|
-
for (let i = 0; i < MAX_PENDING_ROOM_REQUESTS_PER_MEMBER + 1; i++) {
|
|
60
|
-
await h.protocol.sendRoomRequestToMember(h.ids.memberId, `room-${String(i)}`, "fake-token", { verb: "room.send" });
|
|
61
|
-
}
|
|
62
|
-
h.sendRoomRequest.mockClear();
|
|
63
|
-
h.sendRoomRequest.mockResolvedValue({ result: "ok" });
|
|
64
|
-
await h.protocol.flushPendingRoomRequests(h.ids.memberId);
|
|
65
|
-
// The oldest entry (room-0) must have been dropped; exactly the cap's worth of retries fire.
|
|
66
|
-
expect(h.sendRoomRequest).toHaveBeenCalledTimes(MAX_PENDING_ROOM_REQUESTS_PER_MEMBER);
|
|
67
|
-
const paths = h.sendRoomRequest.mock.calls.map((c) => c[2].path);
|
|
68
|
-
expect(paths).not.toContain("room-0");
|
|
69
|
-
expect(paths).toContain("room-1");
|
|
70
|
-
});
|
|
71
|
-
it("flushPendingRoomRequests is a no-op for a member with nothing queued", async () => {
|
|
72
|
-
const h = await makeHarness();
|
|
73
|
-
await expect(h.protocol.flushPendingRoomRequests(h.ids.memberId)).resolves.toBeUndefined();
|
|
74
|
-
expect(h.sendRoomRequest).not.toHaveBeenCalled();
|
|
75
|
-
});
|
|
76
|
-
it("drops (not re-queues) a flush entry whose room this store no longer holds a token for", async () => {
|
|
77
|
-
const h = await makeHarness();
|
|
78
|
-
h.sendRoomRequest.mockResolvedValueOnce({
|
|
79
|
-
result: "error",
|
|
80
|
-
code: "not_connected",
|
|
81
|
-
});
|
|
82
|
-
await h.protocol.sendRoomRequestToMember(h.ids.memberId, "no-token-room", "fake-token", { verb: "room.send" });
|
|
83
|
-
h.sendRoomRequest.mockClear();
|
|
84
|
-
await h.protocol.flushPendingRoomRequests(h.ids.memberId);
|
|
85
|
-
expect(h.sendRoomRequest).not.toHaveBeenCalled();
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
describe("RoomProtocol — handleRoomJoin / admitRoomJoin", () => {
|
|
89
|
-
it("returns not_owner when an owner-named room's path names a different owner", async () => {
|
|
90
|
-
const h = await makeHarness();
|
|
91
|
-
const otherOwnerRoom = ownerNamedRoomPath(h.ids.memberId, "general");
|
|
92
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.join"];
|
|
93
|
-
if (handlerFn === undefined)
|
|
94
|
-
throw new Error("expected room.join handler");
|
|
95
|
-
const outcome = await handlerFn(manageRequest({ scope: { kind: "room", path: otherOwnerRoom } }), handle(h.ids.memberId));
|
|
96
|
-
expect(outcome).toEqual({ result: "error", code: "not_owner" });
|
|
97
|
-
});
|
|
98
|
-
it("returns not_participant when a dm path doesn't include this store's own peer id", async () => {
|
|
99
|
-
const h = await makeHarness();
|
|
100
|
-
const strangerA = "a".repeat(DEVICE_ID_HEX_LENGTH);
|
|
101
|
-
const strangerB = "b".repeat(DEVICE_ID_HEX_LENGTH);
|
|
102
|
-
const foreignDm = dmRoomPath(strangerA, strangerB);
|
|
103
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.join"];
|
|
104
|
-
if (handlerFn === undefined)
|
|
105
|
-
throw new Error("expected room.join handler");
|
|
106
|
-
const outcome = await handlerFn(manageRequest({ scope: { kind: "room", path: foreignDm } }), handle(strangerA));
|
|
107
|
-
expect(outcome).toEqual({ result: "error", code: "not_participant" });
|
|
108
|
-
});
|
|
109
|
-
it("auto-approves a dm join reply when this store already initiated the same dm path itself", async () => {
|
|
110
|
-
const h = await makeHarness();
|
|
111
|
-
const dmPath = dmRoomPath(h.ids.ownerId, h.ids.memberId);
|
|
112
|
-
h.deps.dmRequestsInitiatedByMe.add(dmPath);
|
|
113
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.join"];
|
|
114
|
-
if (handlerFn === undefined)
|
|
115
|
-
throw new Error("expected room.join handler");
|
|
116
|
-
const outcome = await handlerFn(manageRequest({ scope: { kind: "room", path: dmPath } }), handle(h.ids.memberId));
|
|
117
|
-
expect(outcome).toMatchObject({ result: "ok" });
|
|
118
|
-
});
|
|
119
|
-
it("holds an owner-named join open until acceptRoomJoin resolves it, then mints and returns a granted token", async () => {
|
|
120
|
-
const h = await makeHarness();
|
|
121
|
-
const roomPath = ownerNamedRoomPath(h.ids.ownerId, "general");
|
|
122
|
-
h.deps.rooms.set(roomPath, room({ id: roomPath, owner: h.ids.ownerId, members: [h.ids.ownerId] }));
|
|
123
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.join"];
|
|
124
|
-
if (handlerFn === undefined)
|
|
125
|
-
throw new Error("expected room.join handler");
|
|
126
|
-
const pending = handlerFn(manageRequest({ scope: { kind: "room", path: roomPath } }), handle(h.ids.memberId));
|
|
127
|
-
await Promise.resolve();
|
|
128
|
-
expect(h.protocol.listPendingRoomJoins()).toEqual([
|
|
129
|
-
{ roomPath, requesterId: h.ids.memberId },
|
|
130
|
-
]);
|
|
131
|
-
h.protocol.acceptRoomJoin(roomPath, h.ids.memberId);
|
|
132
|
-
const outcome = await pending;
|
|
133
|
-
expect(outcome).toMatchObject({ result: "ok" });
|
|
134
|
-
if (outcome.result !== "ok")
|
|
135
|
-
return;
|
|
136
|
-
expect(outcome).toHaveProperty("granted-token");
|
|
137
|
-
expect(h.protocol.listPendingRoomJoins()).toEqual([]);
|
|
138
|
-
expect(h.bump).toHaveBeenCalledWith(expect.objectContaining({ id: roomPath }));
|
|
139
|
-
expect(h.recordMemberOp).toHaveBeenCalledWith(expect.anything(), "member", "join", h.ids.memberId);
|
|
140
|
-
});
|
|
141
|
-
it("returns a denied error, with the reason when given, once rejectRoomJoin resolves it", async () => {
|
|
142
|
-
const h = await makeHarness();
|
|
143
|
-
const roomPath = ownerNamedRoomPath(h.ids.ownerId, "general");
|
|
144
|
-
h.deps.rooms.set(roomPath, room({ id: roomPath, owner: h.ids.ownerId }));
|
|
145
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.join"];
|
|
146
|
-
if (handlerFn === undefined)
|
|
147
|
-
throw new Error("expected room.join handler");
|
|
148
|
-
const pending = handlerFn(manageRequest({ scope: { kind: "room", path: roomPath } }), handle(h.ids.memberId));
|
|
149
|
-
await Promise.resolve();
|
|
150
|
-
h.protocol.rejectRoomJoin(roomPath, h.ids.memberId, "not right now");
|
|
151
|
-
const outcome = await pending;
|
|
152
|
-
expect(outcome).toEqual({
|
|
153
|
-
result: "error",
|
|
154
|
-
code: "denied",
|
|
155
|
-
message: "not right now",
|
|
156
|
-
});
|
|
157
|
-
});
|
|
158
|
-
it("mints a fresh, independent root grant when no local Room record exists (a dm join)", async () => {
|
|
159
|
-
const h = await makeHarness();
|
|
160
|
-
const dmPath = dmRoomPath(h.ids.ownerId, h.ids.memberId);
|
|
161
|
-
h.deps.dmRequestsInitiatedByMe.add(dmPath);
|
|
162
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.join"];
|
|
163
|
-
if (handlerFn === undefined)
|
|
164
|
-
throw new Error("expected room.join handler");
|
|
165
|
-
const outcome = await handlerFn(manageRequest({ scope: { kind: "room", path: dmPath } }), handle(h.ids.memberId));
|
|
166
|
-
expect(outcome).toMatchObject({
|
|
167
|
-
result: "ok",
|
|
168
|
-
members: [
|
|
169
|
-
{ device: deviceIdFromHex(h.ids.ownerId) },
|
|
170
|
-
{ device: deviceIdFromHex(h.ids.memberId) },
|
|
171
|
-
],
|
|
172
|
-
});
|
|
173
|
-
expect(h.bump).not.toHaveBeenCalled();
|
|
174
|
-
});
|
|
175
|
-
});
|
|
176
|
-
describe("RoomProtocol — acceptRoomJoin / rejectRoomJoin without a pending request", () => {
|
|
177
|
-
it("acceptRoomJoin throws NOT_PENDING naming the requester and room", async () => {
|
|
178
|
-
const h = await makeHarness();
|
|
179
|
-
expect(() => h.protocol.acceptRoomJoin("room-1", "nobody")).toThrow(expect.objectContaining({
|
|
180
|
-
message: "No pending room.join for nobody on room-1",
|
|
181
|
-
code: "NOT_PENDING",
|
|
182
|
-
}));
|
|
183
|
-
});
|
|
184
|
-
it("rejectRoomJoin throws NOT_PENDING naming the requester and room", async () => {
|
|
185
|
-
const h = await makeHarness();
|
|
186
|
-
expect(() => h.protocol.rejectRoomJoin("room-1", "nobody")).toThrow(expect.objectContaining({
|
|
187
|
-
message: "No pending room.join for nobody on room-1",
|
|
188
|
-
code: "NOT_PENDING",
|
|
189
|
-
}));
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
describe("RoomProtocol — handleRoomInvite", () => {
|
|
193
|
-
it("returns missing_scope_path when the request carries no room path", async () => {
|
|
194
|
-
const h = await makeHarness();
|
|
195
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.invite"];
|
|
196
|
-
if (handlerFn === undefined)
|
|
197
|
-
throw new Error("expected room.invite handler");
|
|
198
|
-
const outcome = await handlerFn(manageRequest({ scope: { kind: "room" } }), handle(h.ids.memberId));
|
|
199
|
-
expect(outcome).toEqual({ result: "error", code: "missing_scope_path" });
|
|
200
|
-
});
|
|
201
|
-
it("returns malformed_params for params that don't satisfy the room.invite schema", async () => {
|
|
202
|
-
const h = await makeHarness();
|
|
203
|
-
const roomPath = ownerNamedRoomPath(h.ids.memberId, "general");
|
|
204
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.invite"];
|
|
205
|
-
if (handlerFn === undefined)
|
|
206
|
-
throw new Error("expected room.invite handler");
|
|
207
|
-
const outcome = await handlerFn(manageRequest({
|
|
208
|
-
scope: { kind: "room", path: roomPath },
|
|
209
|
-
params: { verb: "room.invite" },
|
|
210
|
-
}), handle(h.ids.memberId));
|
|
211
|
-
expect(outcome).toEqual({ result: "error", code: "malformed_params" });
|
|
212
|
-
});
|
|
213
|
-
it("returns unauthorized for an embedded token that fails verification", async () => {
|
|
214
|
-
const h = await makeHarness();
|
|
215
|
-
const roomPath = ownerNamedRoomPath(h.ids.memberId, "general");
|
|
216
|
-
const wrongBearerToken = await mintRoomToken(h.ids.ownerPort, h.ids.ownerId, roomPath);
|
|
217
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.invite"];
|
|
218
|
-
if (handlerFn === undefined)
|
|
219
|
-
throw new Error("expected room.invite handler");
|
|
220
|
-
const outcome = await handlerFn(manageRequest({
|
|
221
|
-
scope: { kind: "room", path: roomPath },
|
|
222
|
-
params: {
|
|
223
|
-
verb: "room.invite",
|
|
224
|
-
invitee: deviceIdFromHex(h.ids.ownerId),
|
|
225
|
-
token: wrongBearerToken,
|
|
226
|
-
},
|
|
227
|
-
}), handle(h.ids.memberId));
|
|
228
|
-
expect(outcome).toEqual({ result: "error", code: "unauthorized" });
|
|
229
|
-
});
|
|
230
|
-
it("persists a verified invite token and fires a room_invite event, with real inviter/room-state when given, falling back to bare device-id/room-path otherwise", async () => {
|
|
231
|
-
const h = await makeHarness();
|
|
232
|
-
// The invite's own token must be bearer=this store's own peer id, root=the room's real owner.
|
|
233
|
-
const owningMemberIdentity = generateIdentity();
|
|
234
|
-
const owningMemberHex = bytesToHex(Uint8Array.from(owningMemberIdentity.deviceId));
|
|
235
|
-
const owningMemberPort = await toIdentityPort(owningMemberIdentity);
|
|
236
|
-
const ownedRoomPath = ownerNamedRoomPath(owningMemberHex, "general");
|
|
237
|
-
const inviteToken = await mintRoomToken(owningMemberPort, h.ids.ownerId, ownedRoomPath);
|
|
238
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.invite"];
|
|
239
|
-
if (handlerFn === undefined)
|
|
240
|
-
throw new Error("expected room.invite handler");
|
|
241
|
-
const outcome = await handlerFn(manageRequest({
|
|
242
|
-
scope: { kind: "room", path: ownedRoomPath },
|
|
243
|
-
params: {
|
|
244
|
-
verb: "room.invite",
|
|
245
|
-
invitee: deviceIdFromHex(h.ids.ownerId),
|
|
246
|
-
token: inviteToken,
|
|
247
|
-
"room-state": {
|
|
248
|
-
name: "General",
|
|
249
|
-
description: "a real room",
|
|
250
|
-
type: "public",
|
|
251
|
-
},
|
|
252
|
-
"inviter-agent": { name: "Owning Member", cwd: "/tmp/owner" },
|
|
253
|
-
},
|
|
254
|
-
}), handle(h.ids.memberId));
|
|
255
|
-
expect(outcome).toEqual({ result: "ok" });
|
|
256
|
-
expect(loadRoomTokens({ harness: "test", cwd: "room-protocol", dir: h.slotDir })[ownedRoomPath]).toBeDefined();
|
|
257
|
-
expect(h.queueDelivery).toHaveBeenCalledWith(h.ids.ownerId, expect.objectContaining({
|
|
258
|
-
type: "room_invite",
|
|
259
|
-
room: ownedRoomPath,
|
|
260
|
-
roomDescription: "a real room",
|
|
261
|
-
from: owningMemberHex,
|
|
262
|
-
fromName: "Owning Member",
|
|
263
|
-
fromCwd: "/tmp/owner",
|
|
264
|
-
}));
|
|
265
|
-
});
|
|
266
|
-
it("falls back to bare device-id and empty description/cwd when room-state/inviter-agent are absent", async () => {
|
|
267
|
-
const h = await makeHarness();
|
|
268
|
-
const owningMemberIdentity = generateIdentity();
|
|
269
|
-
const owningMemberHex = bytesToHex(Uint8Array.from(owningMemberIdentity.deviceId));
|
|
270
|
-
const owningMemberPort = await toIdentityPort(owningMemberIdentity);
|
|
271
|
-
const ownedRoomPath = ownerNamedRoomPath(owningMemberHex, "general");
|
|
272
|
-
const inviteToken = await mintRoomToken(owningMemberPort, h.ids.ownerId, ownedRoomPath);
|
|
273
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.invite"];
|
|
274
|
-
if (handlerFn === undefined)
|
|
275
|
-
throw new Error("expected room.invite handler");
|
|
276
|
-
await handlerFn(manageRequest({
|
|
277
|
-
scope: { kind: "room", path: ownedRoomPath },
|
|
278
|
-
params: {
|
|
279
|
-
verb: "room.invite",
|
|
280
|
-
invitee: deviceIdFromHex(h.ids.ownerId),
|
|
281
|
-
token: inviteToken,
|
|
282
|
-
},
|
|
283
|
-
}), handle(h.ids.memberId));
|
|
284
|
-
expect(h.queueDelivery).toHaveBeenCalledWith(h.ids.ownerId, expect.objectContaining({
|
|
285
|
-
roomDescription: "",
|
|
286
|
-
from: owningMemberHex,
|
|
287
|
-
fromName: owningMemberHex,
|
|
288
|
-
fromCwd: "",
|
|
289
|
-
}));
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
describe("RoomProtocol — handleRoomLeave", () => {
|
|
293
|
-
let h;
|
|
294
|
-
let ownerNamedRoom;
|
|
295
|
-
beforeEach(async () => {
|
|
296
|
-
h = await makeHarness();
|
|
297
|
-
ownerNamedRoom = ownerNamedRoomPath(h.ids.ownerId, "general");
|
|
298
|
-
});
|
|
299
|
-
it("returns missing_scope_path when the request carries no room path", async () => {
|
|
300
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
301
|
-
if (handlerFn === undefined)
|
|
302
|
-
throw new Error("expected room.leave handler");
|
|
303
|
-
const outcome = await handlerFn(manageRequest({ scope: { kind: "room" } }), handle(h.ids.memberId));
|
|
304
|
-
expect(outcome).toEqual({ result: "error", code: "missing_scope_path" });
|
|
305
|
-
});
|
|
306
|
-
it("returns unauthorized when no token is presented", async () => {
|
|
307
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
308
|
-
if (handlerFn === undefined)
|
|
309
|
-
throw new Error("expected room.leave handler");
|
|
310
|
-
const outcome = await handlerFn(manageRequest({ scope: { kind: "room", path: ownerNamedRoom } }), handle(h.ids.memberId));
|
|
311
|
-
expect(outcome).toEqual({ result: "error", code: "unauthorized" });
|
|
312
|
-
});
|
|
313
|
-
it("returns malformed_params for params that don't satisfy the room.leave schema", async () => {
|
|
314
|
-
h.deps.rooms.set(ownerNamedRoom, room({
|
|
315
|
-
id: ownerNamedRoom,
|
|
316
|
-
owner: h.ids.ownerId,
|
|
317
|
-
members: [h.ids.memberId],
|
|
318
|
-
}));
|
|
319
|
-
const token = await mintRoomToken(h.ids.ownerPort, h.ids.memberId, ownerNamedRoom);
|
|
320
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
321
|
-
if (handlerFn === undefined)
|
|
322
|
-
throw new Error("expected room.leave handler");
|
|
323
|
-
const outcome = await handlerFn(manageRequest({
|
|
324
|
-
scope: { kind: "room", path: ownerNamedRoom },
|
|
325
|
-
token,
|
|
326
|
-
params: { verb: "wrong" },
|
|
327
|
-
}), handle(h.ids.memberId));
|
|
328
|
-
expect(outcome).toEqual({ result: "error", code: "malformed_params" });
|
|
329
|
-
});
|
|
330
|
-
it("returns room_not_found when this store holds no Room record at all", async () => {
|
|
331
|
-
const token = await mintRoomToken(h.ids.ownerPort, h.ids.memberId, ownerNamedRoom);
|
|
332
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
333
|
-
if (handlerFn === undefined)
|
|
334
|
-
throw new Error("expected room.leave handler");
|
|
335
|
-
const outcome = await handlerFn(manageRequest({
|
|
336
|
-
scope: { kind: "room", path: ownerNamedRoom },
|
|
337
|
-
token,
|
|
338
|
-
params: { verb: "room.leave" },
|
|
339
|
-
}), handle(h.ids.memberId));
|
|
340
|
-
expect(outcome).toEqual({ result: "error", code: "room_not_found" });
|
|
341
|
-
});
|
|
342
|
-
it("is a no-op ok when the sender was neither a member nor invited", async () => {
|
|
343
|
-
h.deps.rooms.set(ownerNamedRoom, room({
|
|
344
|
-
id: ownerNamedRoom,
|
|
345
|
-
owner: h.ids.ownerId,
|
|
346
|
-
members: [h.ids.ownerId],
|
|
347
|
-
}));
|
|
348
|
-
const token = await mintRoomToken(h.ids.ownerPort, h.ids.memberId, ownerNamedRoom);
|
|
349
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
350
|
-
if (handlerFn === undefined)
|
|
351
|
-
throw new Error("expected room.leave handler");
|
|
352
|
-
const outcome = await handlerFn(manageRequest({
|
|
353
|
-
scope: { kind: "room", path: ownerNamedRoom },
|
|
354
|
-
token,
|
|
355
|
-
params: { verb: "room.leave" },
|
|
356
|
-
}), handle(h.ids.memberId));
|
|
357
|
-
expect(outcome).toEqual({ result: "ok" });
|
|
358
|
-
expect(h.revokeMemberGrant).not.toHaveBeenCalled();
|
|
359
|
-
});
|
|
360
|
-
it("a real member leaving revokes their grant, records a member leave, and broadcasts member_left to the room", async () => {
|
|
361
|
-
h.deps.rooms.set(ownerNamedRoom, room({
|
|
362
|
-
id: ownerNamedRoom,
|
|
363
|
-
owner: h.ids.ownerId,
|
|
364
|
-
members: [h.ids.ownerId, h.ids.memberId],
|
|
365
|
-
}));
|
|
366
|
-
const token = await mintRoomToken(h.ids.ownerPort, h.ids.memberId, ownerNamedRoom);
|
|
367
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
368
|
-
if (handlerFn === undefined)
|
|
369
|
-
throw new Error("expected room.leave handler");
|
|
370
|
-
const outcome = await handlerFn(manageRequest({
|
|
371
|
-
scope: { kind: "room", path: ownerNamedRoom },
|
|
372
|
-
token,
|
|
373
|
-
params: { verb: "room.leave" },
|
|
374
|
-
}), handle(h.ids.memberId));
|
|
375
|
-
expect(outcome).toEqual({ result: "ok" });
|
|
376
|
-
expect(h.revokeMemberGrant).toHaveBeenCalledWith(ownerNamedRoom, h.ids.memberId);
|
|
377
|
-
expect(h.recordMemberOp).toHaveBeenCalledWith(expect.anything(), "member", "leave", h.ids.memberId);
|
|
378
|
-
expect(h.broadcastPatch).toHaveBeenCalledWith({
|
|
379
|
-
type: "room_upsert",
|
|
380
|
-
room: expect.anything(),
|
|
381
|
-
});
|
|
382
|
-
expect(h.deliverToRoom).toHaveBeenCalledWith(ownerNamedRoom, { type: "member_left", room: ownerNamedRoom, agent: h.ids.memberId }, h.ids.memberId);
|
|
383
|
-
});
|
|
384
|
-
it("declining a never-accepted invite records an invited leave and fires a local invite_declined event instead of broadcasting", async () => {
|
|
385
|
-
h.deps.rooms.set(ownerNamedRoom, room({
|
|
386
|
-
id: ownerNamedRoom,
|
|
387
|
-
owner: h.ids.ownerId,
|
|
388
|
-
members: [h.ids.ownerId],
|
|
389
|
-
invited: [h.ids.memberId],
|
|
390
|
-
}));
|
|
391
|
-
h.deps.agents.set(h.ids.memberId, agent({ id: h.ids.memberId, name: "Declining Member" }));
|
|
392
|
-
const token = await mintRoomToken(h.ids.ownerPort, h.ids.memberId, ownerNamedRoom);
|
|
393
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
394
|
-
if (handlerFn === undefined)
|
|
395
|
-
throw new Error("expected room.leave handler");
|
|
396
|
-
const outcome = await handlerFn(manageRequest({
|
|
397
|
-
scope: { kind: "room", path: ownerNamedRoom },
|
|
398
|
-
token,
|
|
399
|
-
params: { verb: "room.leave", reason: "changed my mind" },
|
|
400
|
-
}), handle(h.ids.memberId));
|
|
401
|
-
expect(outcome).toEqual({ result: "ok" });
|
|
402
|
-
expect(h.recordMemberOp).toHaveBeenCalledWith(expect.anything(), "invited", "leave", h.ids.memberId);
|
|
403
|
-
expect(h.deliverToRoom).not.toHaveBeenCalled();
|
|
404
|
-
expect(h.queueDelivery).toHaveBeenCalledWith(h.ids.ownerId, expect.objectContaining({
|
|
405
|
-
type: "invite_declined",
|
|
406
|
-
agentName: "Declining Member",
|
|
407
|
-
reason: "changed my mind",
|
|
408
|
-
}));
|
|
409
|
-
});
|
|
410
|
-
it("falls back to the bare device-id and empty reason when the decliner isn't a known agent or gives no reason", async () => {
|
|
411
|
-
h.deps.rooms.set(ownerNamedRoom, room({
|
|
412
|
-
id: ownerNamedRoom,
|
|
413
|
-
owner: h.ids.ownerId,
|
|
414
|
-
members: [h.ids.ownerId],
|
|
415
|
-
invited: [h.ids.memberId],
|
|
416
|
-
}));
|
|
417
|
-
const token = await mintRoomToken(h.ids.ownerPort, h.ids.memberId, ownerNamedRoom);
|
|
418
|
-
const handlerFn = h.protocol.roomVerbHandlers["room.leave"];
|
|
419
|
-
if (handlerFn === undefined)
|
|
420
|
-
throw new Error("expected room.leave handler");
|
|
421
|
-
await handlerFn(manageRequest({
|
|
422
|
-
scope: { kind: "room", path: ownerNamedRoom },
|
|
423
|
-
token,
|
|
424
|
-
params: { verb: "room.leave" },
|
|
425
|
-
}), handle(h.ids.memberId));
|
|
426
|
-
expect(h.queueDelivery).toHaveBeenCalledWith(h.ids.ownerId, expect.objectContaining({
|
|
427
|
-
agentName: h.ids.memberId,
|
|
428
|
-
reason: "",
|
|
429
|
-
}));
|
|
430
|
-
});
|
|
431
|
-
});
|
|
432
|
-
//# sourceMappingURL=room-protocol-admission.unit.test.js.map
|