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,662 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Direct unit tests for MeshStore's own orchestration logic -- requireTransport/requireIdentity's guard errors, the connected getter, init()'s connect-vs-becomeCoordinator-vs-EADDRINUSE branching, the events getter's dispatch table, listener/room-join-approval passthroughs, and shutdown() -- as opposed to the collaborator-owned behaviour wireTestTransport-based integration tests already cover end-to-end. MeshStore's constructor takes no injectable deps (unlike its collaborators), so these tests use a hand-built fake MeshTransport passed to the real setTransport(), and reach the private roomProtocol/connectionApproval/peerLifecycle/deliveryEngine/agentRegistry collaborators via a narrow, explicitly-justified cast -- TypeScript's `private` is compile-time only, and asserting a delegating wrapper actually calls through to the collaborator that owns the real implementation is exactly the kind of whitebox check no public-API-only test can express for a one-line pass-through.
|
|
3
|
-
*/
|
|
4
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
5
|
-
import { MeshStore } from "../core/mesh-store.js";
|
|
6
|
-
/** A device-id is a 64-character lowercase hex SHA-256 digest; room-path.ts's assertDeviceIdHex rejects anything shorter. */
|
|
7
|
-
const DEVICE_ID_HEX_LENGTH = 64;
|
|
8
|
-
const VALID_DEVICE_ID = "a".repeat(DEVICE_ID_HEX_LENGTH);
|
|
9
|
-
/** Arbitrary, distinctive remote port for a connectToRemote test fixture -- no significance beyond "a real-looking port number". */
|
|
10
|
-
const REMOTE_PORT = 4242;
|
|
11
|
-
function fakeTransport(overrides = {}) {
|
|
12
|
-
return {
|
|
13
|
-
dataPort: 4000,
|
|
14
|
-
isCoordinator: overrides.isCoordinator ?? false,
|
|
15
|
-
hasCoordinatorConnection: false,
|
|
16
|
-
coordinatorPeerId: undefined,
|
|
17
|
-
startDataServer: vi.fn().mockResolvedValue(undefined),
|
|
18
|
-
connectToCoordinator: vi.fn().mockResolvedValue(undefined),
|
|
19
|
-
becomeCoordinator: vi.fn().mockResolvedValue(undefined),
|
|
20
|
-
connectToPeer: vi.fn().mockResolvedValue(undefined),
|
|
21
|
-
send: vi.fn().mockResolvedValue(undefined),
|
|
22
|
-
acceptConnection: vi.fn().mockResolvedValue(undefined),
|
|
23
|
-
rejectConnection: vi.fn().mockResolvedValue(undefined),
|
|
24
|
-
connectToRemote: vi.fn().mockResolvedValue(undefined),
|
|
25
|
-
broadcast: vi.fn().mockResolvedValue(undefined),
|
|
26
|
-
broadcastRevocation: vi.fn().mockResolvedValue(undefined),
|
|
27
|
-
broadcastCoordinatorClaim: vi.fn().mockResolvedValue(undefined),
|
|
28
|
-
sendCoordinatorClaim: vi.fn().mockResolvedValue(undefined),
|
|
29
|
-
electionPeerIds: () => new Set(),
|
|
30
|
-
sendRoomRequest: vi.fn().mockResolvedValue({
|
|
31
|
-
result: "error",
|
|
32
|
-
code: "not_connected",
|
|
33
|
-
}),
|
|
34
|
-
addListener: vi.fn().mockResolvedValue("listener-1"),
|
|
35
|
-
removeListener: vi.fn().mockResolvedValue(undefined),
|
|
36
|
-
listListeners: vi.fn().mockReturnValue([]),
|
|
37
|
-
shutdown: vi.fn().mockResolvedValue(undefined),
|
|
38
|
-
unref: vi.fn(),
|
|
39
|
-
joinHub: vi.fn(),
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
/** Reaches a private collaborator for a whitebox delegation check -- see the file header for why this cast is justified rather than avoided. Returns `unknown`; each call site casts to the narrow method slice it actually needs. */
|
|
43
|
-
function collaborator(store, name) {
|
|
44
|
-
return store[name];
|
|
45
|
-
}
|
|
46
|
-
describe("MeshStore — requireTransport/requireIdentity guards", () => {
|
|
47
|
-
it("throws a specific error when a transport-using method is called before setTransport()", () => {
|
|
48
|
-
const store = new MeshStore();
|
|
49
|
-
expect(() => store.listListeners()).toThrow("MeshStore: no transport set; call setTransport() before using the store");
|
|
50
|
-
});
|
|
51
|
-
it("throws a specific error when an identity-using method is called before setIdentity()", async () => {
|
|
52
|
-
const store = new MeshStore();
|
|
53
|
-
store.setTransport(fakeTransport());
|
|
54
|
-
await expect(store.createRoom({
|
|
55
|
-
name: "r",
|
|
56
|
-
type: "public",
|
|
57
|
-
owner: VALID_DEVICE_ID,
|
|
58
|
-
description: "",
|
|
59
|
-
})).rejects.toThrow("MeshStore: no identity set; call setIdentity() before using the store");
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
describe("MeshStore — connected getter", () => {
|
|
63
|
-
it("is true when the transport is the coordinator", () => {
|
|
64
|
-
const store = new MeshStore();
|
|
65
|
-
const transport = fakeTransport();
|
|
66
|
-
transport.isCoordinator = true;
|
|
67
|
-
store.setTransport(transport);
|
|
68
|
-
expect(store.connected).toBe(true);
|
|
69
|
-
});
|
|
70
|
-
it("is true when the transport has a live coordinator connection", () => {
|
|
71
|
-
const store = new MeshStore();
|
|
72
|
-
const transport = fakeTransport();
|
|
73
|
-
transport.hasCoordinatorConnection = true;
|
|
74
|
-
store.setTransport(transport);
|
|
75
|
-
expect(store.connected).toBe(true);
|
|
76
|
-
});
|
|
77
|
-
it("is false when neither is true", () => {
|
|
78
|
-
const store = new MeshStore();
|
|
79
|
-
store.setTransport(fakeTransport());
|
|
80
|
-
expect(store.connected).toBe(false);
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
describe("MeshStore — hostedRooms getter", () => {
|
|
84
|
-
function room(overrides = {}) {
|
|
85
|
-
return {
|
|
86
|
-
id: "owner-device/general",
|
|
87
|
-
version: 1,
|
|
88
|
-
name: "general",
|
|
89
|
-
type: "public",
|
|
90
|
-
owner: "owner-device",
|
|
91
|
-
createdAt: "2026-01-01T00:00:00.000Z",
|
|
92
|
-
description: "chat",
|
|
93
|
-
members: ["owner-device"],
|
|
94
|
-
invited: [],
|
|
95
|
-
memberJoins: { "owner-device": 1 },
|
|
96
|
-
memberLeaves: {},
|
|
97
|
-
invitedJoins: {},
|
|
98
|
-
invitedLeaves: {},
|
|
99
|
-
...overrides,
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
it("includes only this store's own public/private rooms, mapped to the gossip-safe shape", () => {
|
|
103
|
-
const store = new MeshStore();
|
|
104
|
-
store.peerId = "owner-device";
|
|
105
|
-
const rooms = collaborator(store, "rooms");
|
|
106
|
-
rooms.set("owner-device/general", room({ id: "owner-device/general", name: "general", type: "public" }));
|
|
107
|
-
rooms.set("owner-device/team", room({
|
|
108
|
-
id: "owner-device/team",
|
|
109
|
-
name: "team",
|
|
110
|
-
type: "private",
|
|
111
|
-
description: "private chat",
|
|
112
|
-
}));
|
|
113
|
-
expect(store.hostedRooms).toEqual([
|
|
114
|
-
{
|
|
115
|
-
path: "owner-device/general",
|
|
116
|
-
name: "general",
|
|
117
|
-
type: "public",
|
|
118
|
-
description: "chat",
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
path: "owner-device/team",
|
|
122
|
-
name: "team",
|
|
123
|
-
type: "private",
|
|
124
|
-
description: "private chat",
|
|
125
|
-
},
|
|
126
|
-
]);
|
|
127
|
-
});
|
|
128
|
-
it("excludes secret rooms, even when owned by this store", () => {
|
|
129
|
-
const store = new MeshStore();
|
|
130
|
-
store.peerId = "owner-device";
|
|
131
|
-
const rooms = collaborator(store, "rooms");
|
|
132
|
-
rooms.set("owner-device/_hidden", room({ id: "owner-device/_hidden", name: "_hidden", type: "secret" }));
|
|
133
|
-
expect(store.hostedRooms).toEqual([]);
|
|
134
|
-
});
|
|
135
|
-
it("excludes rooms owned by a different device, even public/private ones this store has replicated", () => {
|
|
136
|
-
const store = new MeshStore();
|
|
137
|
-
store.peerId = "owner-device";
|
|
138
|
-
const rooms = collaborator(store, "rooms");
|
|
139
|
-
rooms.set("other-device/general", room({
|
|
140
|
-
id: "other-device/general",
|
|
141
|
-
owner: "other-device",
|
|
142
|
-
name: "general",
|
|
143
|
-
type: "public",
|
|
144
|
-
}));
|
|
145
|
-
expect(store.hostedRooms).toEqual([]);
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
describe("MeshStore — init()", () => {
|
|
149
|
-
it("starts the data server, records its own peer info, connects to an existing coordinator, and unrefs -- without becoming coordinator", async () => {
|
|
150
|
-
const store = new MeshStore();
|
|
151
|
-
const transport = fakeTransport();
|
|
152
|
-
store.setTransport(transport);
|
|
153
|
-
await store.init();
|
|
154
|
-
expect(transport.startDataServer).toHaveBeenCalledTimes(1);
|
|
155
|
-
expect(transport.connectToCoordinator).toHaveBeenCalledTimes(1);
|
|
156
|
-
expect(transport.becomeCoordinator).not.toHaveBeenCalled();
|
|
157
|
-
expect(transport.unref).toHaveBeenCalledTimes(1);
|
|
158
|
-
});
|
|
159
|
-
it("falls back to becoming coordinator when no existing coordinator is reachable", async () => {
|
|
160
|
-
const store = new MeshStore();
|
|
161
|
-
const transport = fakeTransport();
|
|
162
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
163
|
-
store.setTransport(transport);
|
|
164
|
-
const staleAgentChecker = collaborator(store, "staleAgentChecker");
|
|
165
|
-
const startSpy = vi.spyOn(staleAgentChecker, "start");
|
|
166
|
-
await store.init();
|
|
167
|
-
expect(transport.becomeCoordinator).toHaveBeenCalledTimes(1);
|
|
168
|
-
expect(startSpy).toHaveBeenCalledTimes(1);
|
|
169
|
-
expect(transport.unref).toHaveBeenCalledTimes(1);
|
|
170
|
-
});
|
|
171
|
-
it("fires onCoordinatorRoleChanged(true) once this store becomes coordinator on a fresh bind", async () => {
|
|
172
|
-
const store = new MeshStore();
|
|
173
|
-
const transport = fakeTransport();
|
|
174
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
175
|
-
store.setTransport(transport);
|
|
176
|
-
const onCoordinatorRoleChanged = vi.fn();
|
|
177
|
-
store.onCoordinatorRoleChanged = onCoordinatorRoleChanged;
|
|
178
|
-
await store.init();
|
|
179
|
-
expect(onCoordinatorRoleChanged).toHaveBeenCalledTimes(1);
|
|
180
|
-
expect(onCoordinatorRoleChanged).toHaveBeenCalledWith(true);
|
|
181
|
-
});
|
|
182
|
-
it("never fires onCoordinatorRoleChanged when joining an existing coordinator rather than becoming one", async () => {
|
|
183
|
-
const store = new MeshStore();
|
|
184
|
-
const transport = fakeTransport();
|
|
185
|
-
store.setTransport(transport);
|
|
186
|
-
const onCoordinatorRoleChanged = vi.fn();
|
|
187
|
-
store.onCoordinatorRoleChanged = onCoordinatorRoleChanged;
|
|
188
|
-
await store.init();
|
|
189
|
-
expect(onCoordinatorRoleChanged).not.toHaveBeenCalled();
|
|
190
|
-
});
|
|
191
|
-
it("carries on without the port (no throw, onError fires, still unrefs and holds the elected role) when becomeCoordinator fails with EADDRINUSE", async () => {
|
|
192
|
-
const store = new MeshStore();
|
|
193
|
-
const transport = fakeTransport();
|
|
194
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
195
|
-
vi.mocked(transport.becomeCoordinator).mockRejectedValue(new Error("listen EADDRINUSE: address already in use"));
|
|
196
|
-
store.setTransport(transport);
|
|
197
|
-
const onError = vi.fn();
|
|
198
|
-
store.onError = onError;
|
|
199
|
-
await expect(store.init()).resolves.toBeUndefined();
|
|
200
|
-
expect(onError).toHaveBeenCalledTimes(1);
|
|
201
|
-
const message = onError.mock.calls[0]?.[0]?.message ?? "";
|
|
202
|
-
expect(message).toContain("could not join or create a mesh");
|
|
203
|
-
// The message must name the actual mismatch, not just say the mesh is unavailable: something already holds the port but never answered as a reachable coordinator (connectToCoordinator already failed first), which is a stale process or an incompatible agent-comms version -- not a generic catch-all.
|
|
204
|
-
expect(message).toContain("port 19876 is already in use by something that never answered as a reachable coordinator");
|
|
205
|
-
expect(message).toContain("stale process");
|
|
206
|
-
expect(message).toContain("incompatible agent-comms version");
|
|
207
|
-
expect(message).toContain("listen EADDRINUSE: address already in use");
|
|
208
|
-
// Nothing answered on the port, so the store is alone as far as it can tell: it keeps running for first contact and holds the coordinator role itself (agent-comms#341) rather than running without a mesh.
|
|
209
|
-
expect(transport.unref).toHaveBeenCalledTimes(1);
|
|
210
|
-
expect(store.holdsCoordinatorRole).toBe(true);
|
|
211
|
-
expect(transport.broadcastCoordinatorClaim).toHaveBeenCalledTimes(1);
|
|
212
|
-
});
|
|
213
|
-
it("rethrows a becomeCoordinator failure that isn't EADDRINUSE", async () => {
|
|
214
|
-
const store = new MeshStore();
|
|
215
|
-
const transport = fakeTransport();
|
|
216
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
217
|
-
vi.mocked(transport.becomeCoordinator).mockRejectedValue(new Error("EPERM: permission denied"));
|
|
218
|
-
store.setTransport(transport);
|
|
219
|
-
await expect(store.init()).rejects.toThrow("EPERM");
|
|
220
|
-
});
|
|
221
|
-
it("is idempotent -- a second call does nothing", async () => {
|
|
222
|
-
const store = new MeshStore();
|
|
223
|
-
const transport = fakeTransport();
|
|
224
|
-
store.setTransport(transport);
|
|
225
|
-
await store.init();
|
|
226
|
-
await store.init();
|
|
227
|
-
expect(transport.startDataServer).toHaveBeenCalledTimes(1);
|
|
228
|
-
});
|
|
229
|
-
it("joins the hub it was given when it becomes coordinator on a fresh bind", async () => {
|
|
230
|
-
const store = new MeshStore({ hubUrl: "wss://hub.example.test/" });
|
|
231
|
-
const transport = fakeTransport();
|
|
232
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
233
|
-
store.setTransport(transport);
|
|
234
|
-
await store.init();
|
|
235
|
-
expect(transport.joinHub).toHaveBeenCalledWith("wss://hub.example.test/", expect.any(Function));
|
|
236
|
-
expect(transport.joinHub).toHaveBeenCalledTimes(1);
|
|
237
|
-
});
|
|
238
|
-
it("joins the hub it was given when it joins an existing coordinator rather than becoming one, since reachability from other machines does not depend on the local role", async () => {
|
|
239
|
-
const store = new MeshStore({ hubUrl: "wss://hub.example.test/" });
|
|
240
|
-
const transport = fakeTransport();
|
|
241
|
-
store.setTransport(transport);
|
|
242
|
-
await store.init();
|
|
243
|
-
expect(transport.connectToCoordinator).toHaveBeenCalledTimes(1);
|
|
244
|
-
expect(transport.joinHub).toHaveBeenCalledWith("wss://hub.example.test/", expect.any(Function));
|
|
245
|
-
expect(transport.joinHub).toHaveBeenCalledTimes(1);
|
|
246
|
-
});
|
|
247
|
-
it("never contacts a hub when it was given none, and does not fall back to the production hub", async () => {
|
|
248
|
-
const store = new MeshStore();
|
|
249
|
-
const transport = fakeTransport();
|
|
250
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
251
|
-
store.setTransport(transport);
|
|
252
|
-
await store.init();
|
|
253
|
-
expect(transport.joinHub).not.toHaveBeenCalled();
|
|
254
|
-
});
|
|
255
|
-
});
|
|
256
|
-
describe("MeshStore — events getter dispatch table", () => {
|
|
257
|
-
it("dispatches every transport event to the collaborator method that owns it", () => {
|
|
258
|
-
const store = new MeshStore();
|
|
259
|
-
store.setTransport(fakeTransport());
|
|
260
|
-
const peerLifecycle = collaborator(store, "peerLifecycle");
|
|
261
|
-
const connectionApproval = collaborator(store, "connectionApproval");
|
|
262
|
-
const deliveryEngine = collaborator(store, "deliveryEngine");
|
|
263
|
-
const spies = {
|
|
264
|
-
handleDataMessage: vi
|
|
265
|
-
.spyOn(peerLifecycle, "handleDataMessage")
|
|
266
|
-
.mockResolvedValue(undefined),
|
|
267
|
-
handlePeerConnected: vi
|
|
268
|
-
.spyOn(peerLifecycle, "handlePeerConnected")
|
|
269
|
-
.mockResolvedValue(undefined),
|
|
270
|
-
handlePeerDisconnected: vi
|
|
271
|
-
.spyOn(peerLifecycle, "handlePeerDisconnected")
|
|
272
|
-
.mockReturnValue(undefined),
|
|
273
|
-
handleIntroduction: vi
|
|
274
|
-
.spyOn(peerLifecycle, "handleIntroduction")
|
|
275
|
-
.mockResolvedValue(undefined),
|
|
276
|
-
handlePeerList: vi
|
|
277
|
-
.spyOn(peerLifecycle, "handlePeerList")
|
|
278
|
-
.mockReturnValue(undefined),
|
|
279
|
-
handlePeerJoined: vi
|
|
280
|
-
.spyOn(peerLifecycle, "handlePeerJoined")
|
|
281
|
-
.mockReturnValue(undefined),
|
|
282
|
-
handleBecomeCoordinator: vi
|
|
283
|
-
.spyOn(peerLifecycle, "handleBecomeCoordinator")
|
|
284
|
-
.mockResolvedValue(undefined),
|
|
285
|
-
handleConnectionRequest: vi
|
|
286
|
-
.spyOn(connectionApproval, "handleConnectionRequest")
|
|
287
|
-
.mockReturnValue(undefined),
|
|
288
|
-
handleRevocationAnnounce: vi
|
|
289
|
-
.spyOn(deliveryEngine, "handleRevocationAnnounce")
|
|
290
|
-
.mockResolvedValue(undefined),
|
|
291
|
-
handlePresenceAdvert: vi
|
|
292
|
-
.spyOn(deliveryEngine, "handlePresenceAdvert")
|
|
293
|
-
.mockReturnValue(undefined),
|
|
294
|
-
};
|
|
295
|
-
const handle = { id: "conn-1" };
|
|
296
|
-
const peer = {
|
|
297
|
-
id: "peer-1",
|
|
298
|
-
port: 1,
|
|
299
|
-
startedAt: "2026-01-01T00:00:00.000Z",
|
|
300
|
-
};
|
|
301
|
-
store.events.onMessage(handle, {
|
|
302
|
-
method: "state_update",
|
|
303
|
-
patch: { type: "room_delete", roomId: "r" },
|
|
304
|
-
});
|
|
305
|
-
expect(spies.handleDataMessage).toHaveBeenCalledWith(handle, {
|
|
306
|
-
method: "state_update",
|
|
307
|
-
patch: { type: "room_delete", roomId: "r" },
|
|
308
|
-
});
|
|
309
|
-
store.events.onPeerConnected(handle, peer);
|
|
310
|
-
expect(spies.handlePeerConnected).toHaveBeenCalledWith(handle, peer);
|
|
311
|
-
store.events.onPeerDisconnected(handle);
|
|
312
|
-
expect(spies.handlePeerDisconnected).toHaveBeenCalledWith(handle);
|
|
313
|
-
store.events.onIntroduction(handle, { peerId: "p", dataPort: 1 });
|
|
314
|
-
expect(spies.handleIntroduction).toHaveBeenCalledWith(handle, {
|
|
315
|
-
peerId: "p",
|
|
316
|
-
dataPort: 1,
|
|
317
|
-
});
|
|
318
|
-
store.events.onPeerList([peer]);
|
|
319
|
-
expect(spies.handlePeerList).toHaveBeenCalledWith([peer]);
|
|
320
|
-
store.events.onPeerJoined(peer);
|
|
321
|
-
expect(spies.handlePeerJoined).toHaveBeenCalledWith(peer);
|
|
322
|
-
store.events.onBecomeCoordinator([peer]);
|
|
323
|
-
expect(spies.handleBecomeCoordinator).toHaveBeenCalledWith([peer]);
|
|
324
|
-
store.events.onConnectionRequest(handle, {
|
|
325
|
-
peerId: "p",
|
|
326
|
-
dataPort: 1,
|
|
327
|
-
name: "n",
|
|
328
|
-
fingerprint: "fp",
|
|
329
|
-
});
|
|
330
|
-
expect(spies.handleConnectionRequest).toHaveBeenCalledWith(handle, {
|
|
331
|
-
peerId: "p",
|
|
332
|
-
dataPort: 1,
|
|
333
|
-
name: "n",
|
|
334
|
-
fingerprint: "fp",
|
|
335
|
-
});
|
|
336
|
-
const revocationEntry = {
|
|
337
|
-
tokenId: new Uint8Array(),
|
|
338
|
-
issuer: new Uint8Array(),
|
|
339
|
-
revokedAt: 0,
|
|
340
|
-
};
|
|
341
|
-
store.events.onRevocationAnnounce(revocationEntry);
|
|
342
|
-
expect(spies.handleRevocationAnnounce).toHaveBeenCalledWith(revocationEntry);
|
|
343
|
-
store.events.onPresenceAdvert(handle, "active");
|
|
344
|
-
expect(spies.handlePresenceAdvert).toHaveBeenCalledWith("conn-1", "active");
|
|
345
|
-
});
|
|
346
|
-
it("forwards a transport-level error to this store's own onError, when one is set", () => {
|
|
347
|
-
const store = new MeshStore();
|
|
348
|
-
store.setTransport(fakeTransport());
|
|
349
|
-
const onError = vi.fn();
|
|
350
|
-
store.onError = onError;
|
|
351
|
-
const error = new Error("transport failure");
|
|
352
|
-
store.events.onError?.(error);
|
|
353
|
-
expect(onError).toHaveBeenCalledWith(error);
|
|
354
|
-
});
|
|
355
|
-
});
|
|
356
|
-
describe("MeshStore — constructor wiring", () => {
|
|
357
|
-
it("registers both the mdns and tailscale discovery backends", async () => {
|
|
358
|
-
const store = new MeshStore();
|
|
359
|
-
await expect(store.discovery.advertise("not-a-real-backend", { name: "x", port: 1 })).rejects.toThrow("Available: mdns, tailscale");
|
|
360
|
-
});
|
|
361
|
-
it("fires onPatch when a broadcasted patch reaches it, via the getOnPatch closure passed to DeliveryEngine", async () => {
|
|
362
|
-
const store = new MeshStore();
|
|
363
|
-
store.setTransport(fakeTransport());
|
|
364
|
-
const onPatch = vi.fn();
|
|
365
|
-
store.onPatch = onPatch;
|
|
366
|
-
await store.registerAgent({
|
|
367
|
-
name: "a",
|
|
368
|
-
harness: "pi",
|
|
369
|
-
cwd: "/tmp",
|
|
370
|
-
pid: 1,
|
|
371
|
-
visibility: "visible",
|
|
372
|
-
tags: [],
|
|
373
|
-
});
|
|
374
|
-
expect(onPatch).toHaveBeenCalledWith(expect.objectContaining({ type: "agent_upsert" }));
|
|
375
|
-
});
|
|
376
|
-
it("wires ConnectionApproval's queueDelivery closure to the real DeliveryEngine, observable via drainDelivery", async () => {
|
|
377
|
-
const store = new MeshStore();
|
|
378
|
-
store.setTransport(fakeTransport());
|
|
379
|
-
store.events.onConnectionRequest({ id: "conn-1" }, { peerId: "remote", dataPort: 1, name: "n", fingerprint: "fp" });
|
|
380
|
-
const drained = await store.drainDelivery(store.peerId);
|
|
381
|
-
expect(drained).toContainEqual(expect.objectContaining({
|
|
382
|
-
type: "connection_request",
|
|
383
|
-
connectionId: "conn-1",
|
|
384
|
-
}));
|
|
385
|
-
});
|
|
386
|
-
it("deliver() actually reaches the real DeliveryEngine, observable via drainDelivery", async () => {
|
|
387
|
-
const store = new MeshStore();
|
|
388
|
-
store.setTransport(fakeTransport());
|
|
389
|
-
const event = {
|
|
390
|
-
type: "connection_request",
|
|
391
|
-
connectionId: "c",
|
|
392
|
-
peerId: "p",
|
|
393
|
-
dataPort: 1,
|
|
394
|
-
name: "n",
|
|
395
|
-
fingerprint: "fp",
|
|
396
|
-
};
|
|
397
|
-
await store.deliver(store.peerId, event);
|
|
398
|
-
const drained = await store.drainDelivery(store.peerId);
|
|
399
|
-
expect(drained).toContainEqual(event);
|
|
400
|
-
});
|
|
401
|
-
});
|
|
402
|
-
describe("MeshStore — identity delegation", () => {
|
|
403
|
-
it("writeIdentity actually persists to the identity cache, readable back by readIdentity", async () => {
|
|
404
|
-
const store = new MeshStore();
|
|
405
|
-
await store.writeIdentity("pi", "/tmp", "written-id");
|
|
406
|
-
await expect(store.readIdentity("pi", "/tmp")).resolves.toEqual({
|
|
407
|
-
id: "written-id",
|
|
408
|
-
});
|
|
409
|
-
});
|
|
410
|
-
});
|
|
411
|
-
describe("MeshStore — agent lifecycle delegation", () => {
|
|
412
|
-
it("setAgentOffline actually marks the agent offline in listAgents' own view", async () => {
|
|
413
|
-
const store = new MeshStore();
|
|
414
|
-
store.setTransport(fakeTransport());
|
|
415
|
-
const agent = await store.registerAgent({
|
|
416
|
-
name: "a",
|
|
417
|
-
harness: "pi",
|
|
418
|
-
cwd: "/tmp",
|
|
419
|
-
pid: 1,
|
|
420
|
-
visibility: "visible",
|
|
421
|
-
tags: [],
|
|
422
|
-
});
|
|
423
|
-
await store.setAgentOffline(agent.id);
|
|
424
|
-
const listed = await store.listAgents(agent.id);
|
|
425
|
-
expect(listed.find((a) => a.id === agent.id)?.status).toBe("offline");
|
|
426
|
-
});
|
|
427
|
-
});
|
|
428
|
-
describe("MeshStore — addListener policy validation", () => {
|
|
429
|
-
it("rejects an invalid policy naming the exact bad value, without ever touching the transport", async () => {
|
|
430
|
-
const store = new MeshStore();
|
|
431
|
-
const transport = fakeTransport();
|
|
432
|
-
store.setTransport(transport);
|
|
433
|
-
await expect(store.addListener("127.0.0.1", 0, "not-a-real-policy")).rejects.toMatchObject({
|
|
434
|
-
message: 'Invalid policy "not-a-real-policy"',
|
|
435
|
-
code: "INVALID_POLICY",
|
|
436
|
-
});
|
|
437
|
-
expect(transport.addListener).not.toHaveBeenCalled();
|
|
438
|
-
});
|
|
439
|
-
it.each(["full", "observe", "rooms-only", "gateway"])("accepts the valid policy %s and forwards it to the transport", async (policy) => {
|
|
440
|
-
const store = new MeshStore();
|
|
441
|
-
const transport = fakeTransport();
|
|
442
|
-
store.setTransport(transport);
|
|
443
|
-
await store.addListener("127.0.0.1", 0, policy);
|
|
444
|
-
expect(transport.addListener).toHaveBeenCalledWith("127.0.0.1", 0, policy);
|
|
445
|
-
});
|
|
446
|
-
});
|
|
447
|
-
describe("MeshStore — room-join approval passthroughs", () => {
|
|
448
|
-
it("acceptRoomJoin/rejectRoomJoin/listPendingRoomJoins all reach the real RoomProtocol collaborator", () => {
|
|
449
|
-
const store = new MeshStore();
|
|
450
|
-
store.setTransport(fakeTransport());
|
|
451
|
-
const roomProtocol = collaborator(store, "roomProtocol");
|
|
452
|
-
const acceptSpy = vi
|
|
453
|
-
.spyOn(roomProtocol, "acceptRoomJoin")
|
|
454
|
-
.mockReturnValue(undefined);
|
|
455
|
-
const rejectSpy = vi
|
|
456
|
-
.spyOn(roomProtocol, "rejectRoomJoin")
|
|
457
|
-
.mockReturnValue(undefined);
|
|
458
|
-
const listSpy = vi
|
|
459
|
-
.spyOn(roomProtocol, "listPendingRoomJoins")
|
|
460
|
-
.mockReturnValue([]);
|
|
461
|
-
store.acceptRoomJoin("room-path", "requester");
|
|
462
|
-
expect(acceptSpy).toHaveBeenCalledWith("room-path", "requester");
|
|
463
|
-
store.rejectRoomJoin("room-path", "requester", "no thanks");
|
|
464
|
-
expect(rejectSpy).toHaveBeenCalledWith("room-path", "requester", "no thanks");
|
|
465
|
-
store.listPendingRoomJoins();
|
|
466
|
-
expect(listSpy).toHaveBeenCalledTimes(1);
|
|
467
|
-
});
|
|
468
|
-
it("connectToRemote reaches the real ConnectionApproval collaborator", async () => {
|
|
469
|
-
const store = new MeshStore();
|
|
470
|
-
store.setTransport(fakeTransport());
|
|
471
|
-
const connectionApproval = collaborator(store, "connectionApproval");
|
|
472
|
-
const spy = vi
|
|
473
|
-
.spyOn(connectionApproval, "connectToRemote")
|
|
474
|
-
.mockResolvedValue(undefined);
|
|
475
|
-
await store.connectToRemote("example.test", REMOTE_PORT);
|
|
476
|
-
expect(spy).toHaveBeenCalledWith("example.test", REMOTE_PORT);
|
|
477
|
-
});
|
|
478
|
-
});
|
|
479
|
-
describe("MeshStore — shutdown()", () => {
|
|
480
|
-
let store;
|
|
481
|
-
let transport;
|
|
482
|
-
beforeEach(() => {
|
|
483
|
-
store = new MeshStore();
|
|
484
|
-
transport = fakeTransport();
|
|
485
|
-
store.setTransport(transport);
|
|
486
|
-
});
|
|
487
|
-
it("stops the stale-agent checker the elected role started and shuts down the transport", async () => {
|
|
488
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
489
|
-
await store.init();
|
|
490
|
-
const staleAgentChecker = collaborator(store, "staleAgentChecker");
|
|
491
|
-
const stopSpy = vi.spyOn(staleAgentChecker, "stop");
|
|
492
|
-
await store.shutdown();
|
|
493
|
-
expect(stopSpy).toHaveBeenCalledTimes(1);
|
|
494
|
-
expect(transport.shutdown).toHaveBeenCalledTimes(1);
|
|
495
|
-
});
|
|
496
|
-
it("stops every discovery backend, so an advertisement's beacon socket does not outlive the store", async () => {
|
|
497
|
-
const stop = vi.fn(async () => Promise.resolve());
|
|
498
|
-
store.discovery.registerBackend({
|
|
499
|
-
name: "recording",
|
|
500
|
-
startAdvertising: async () => Promise.resolve("recording-1"),
|
|
501
|
-
stopAdvertising: async () => Promise.resolve(),
|
|
502
|
-
discover: async () => Promise.resolve([]),
|
|
503
|
-
stop,
|
|
504
|
-
});
|
|
505
|
-
await store.shutdown();
|
|
506
|
-
expect(stop).toHaveBeenCalledTimes(1);
|
|
507
|
-
});
|
|
508
|
-
it("does not wait on a peer that never answers its farewell: the notice goes out first, and closing the transport is what ends the wait", async () => {
|
|
509
|
-
const agents = collaborator(store, "agents");
|
|
510
|
-
agents.set(store.peerId, {
|
|
511
|
-
id: store.peerId,
|
|
512
|
-
version: 1,
|
|
513
|
-
name: "agent",
|
|
514
|
-
harness: "test",
|
|
515
|
-
cwd: "/test",
|
|
516
|
-
pid: 1,
|
|
517
|
-
startedAt: "2026-01-01T00:00:00.000Z",
|
|
518
|
-
visibility: "visible",
|
|
519
|
-
status: "active",
|
|
520
|
-
tags: [],
|
|
521
|
-
subscribedRooms: [],
|
|
522
|
-
});
|
|
523
|
-
const order = [];
|
|
524
|
-
let endFarewell = () => undefined;
|
|
525
|
-
vi.mocked(transport.broadcast).mockImplementation(async () => {
|
|
526
|
-
order.push("farewell sent");
|
|
527
|
-
return new Promise((resolve) => {
|
|
528
|
-
endFarewell = resolve;
|
|
529
|
-
});
|
|
530
|
-
});
|
|
531
|
-
vi.mocked(transport.shutdown).mockImplementation(async () => {
|
|
532
|
-
order.push("transport shut down");
|
|
533
|
-
endFarewell();
|
|
534
|
-
return Promise.resolve();
|
|
535
|
-
});
|
|
536
|
-
await store.shutdown();
|
|
537
|
-
expect(order).toEqual(["farewell sent", "transport shut down"]);
|
|
538
|
-
});
|
|
539
|
-
it("fires onCoordinatorRoleChanged(false) on shutdown when this store holds the elected role", async () => {
|
|
540
|
-
vi.mocked(transport.connectToCoordinator).mockRejectedValue(new Error("ECONNREFUSED"));
|
|
541
|
-
const onCoordinatorRoleChanged = vi.fn();
|
|
542
|
-
store.onCoordinatorRoleChanged = onCoordinatorRoleChanged;
|
|
543
|
-
await store.init();
|
|
544
|
-
await store.shutdown();
|
|
545
|
-
expect(onCoordinatorRoleChanged.mock.calls).toEqual([[true], [false]]);
|
|
546
|
-
expect(store.holdsCoordinatorRole).toBe(false);
|
|
547
|
-
});
|
|
548
|
-
it("fires no onCoordinatorRoleChanged on shutdown for a store that never held the elected role", async () => {
|
|
549
|
-
const onCoordinatorRoleChanged = vi.fn();
|
|
550
|
-
store.onCoordinatorRoleChanged = onCoordinatorRoleChanged;
|
|
551
|
-
await store.init();
|
|
552
|
-
await store.shutdown();
|
|
553
|
-
expect(onCoordinatorRoleChanged).not.toHaveBeenCalled();
|
|
554
|
-
});
|
|
555
|
-
it("hands the coordinator role to the longest-running remaining peer before shutting down the transport (agent-comms#170)", async () => {
|
|
556
|
-
const coordinatorStore = new MeshStore();
|
|
557
|
-
const coordinatorTransport = fakeTransport({ isCoordinator: true });
|
|
558
|
-
coordinatorStore.setTransport(coordinatorTransport);
|
|
559
|
-
const peerInfo = collaborator(coordinatorStore, "peerInfo");
|
|
560
|
-
peerInfo.set(coordinatorStore.peerId, {
|
|
561
|
-
id: coordinatorStore.peerId,
|
|
562
|
-
port: 1,
|
|
563
|
-
startedAt: "2026-01-03T00:00:00.000Z",
|
|
564
|
-
});
|
|
565
|
-
const oldest = {
|
|
566
|
-
id: "oldest-peer",
|
|
567
|
-
port: 2,
|
|
568
|
-
startedAt: "2026-01-01T00:00:00.000Z",
|
|
569
|
-
};
|
|
570
|
-
const newest = {
|
|
571
|
-
id: "newest-peer",
|
|
572
|
-
port: 3,
|
|
573
|
-
startedAt: "2026-01-02T00:00:00.000Z",
|
|
574
|
-
};
|
|
575
|
-
peerInfo.set(oldest.id, oldest);
|
|
576
|
-
peerInfo.set(newest.id, newest);
|
|
577
|
-
await coordinatorStore.shutdown();
|
|
578
|
-
expect(coordinatorTransport.send).toHaveBeenCalledWith({ id: oldest.id }, { method: "become_coordinator", peerList: [newest] });
|
|
579
|
-
const sendOrder = coordinatorTransport.send
|
|
580
|
-
.mock.invocationCallOrder[0];
|
|
581
|
-
const shutdownOrder = coordinatorTransport.shutdown.mock.invocationCallOrder[0];
|
|
582
|
-
expect(sendOrder).toBeLessThan(shutdownOrder);
|
|
583
|
-
});
|
|
584
|
-
it("sends no coordinator handoff when this side isn't the coordinator", async () => {
|
|
585
|
-
const peerInfo = collaborator(store, "peerInfo");
|
|
586
|
-
peerInfo.set(store.peerId, {
|
|
587
|
-
id: store.peerId,
|
|
588
|
-
port: 1,
|
|
589
|
-
startedAt: "2026-01-01T00:00:00.000Z",
|
|
590
|
-
});
|
|
591
|
-
peerInfo.set("other-peer", {
|
|
592
|
-
id: "other-peer",
|
|
593
|
-
port: 2,
|
|
594
|
-
startedAt: "2026-01-02T00:00:00.000Z",
|
|
595
|
-
});
|
|
596
|
-
await store.shutdown();
|
|
597
|
-
expect(transport.send).not.toHaveBeenCalled();
|
|
598
|
-
});
|
|
599
|
-
it("broadcasts agent_offline for its own self agent when one is registered", async () => {
|
|
600
|
-
const agent = await store.registerAgent({
|
|
601
|
-
name: "self",
|
|
602
|
-
harness: "pi",
|
|
603
|
-
cwd: "/tmp",
|
|
604
|
-
pid: 1,
|
|
605
|
-
visibility: "visible",
|
|
606
|
-
tags: [],
|
|
607
|
-
});
|
|
608
|
-
store.peerId = agent.id;
|
|
609
|
-
const deliveryEngine = collaborator(store, "deliveryEngine");
|
|
610
|
-
const broadcastSpy = vi
|
|
611
|
-
.spyOn(deliveryEngine, "broadcastPatch")
|
|
612
|
-
.mockResolvedValue(undefined);
|
|
613
|
-
await store.shutdown();
|
|
614
|
-
expect(broadcastSpy).toHaveBeenCalledWith({
|
|
615
|
-
type: "agent_offline",
|
|
616
|
-
agentId: agent.id,
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
it("clears every pending markRead timer", async () => {
|
|
620
|
-
const pending = collaborator(store, "pendingMarkReadTimers");
|
|
621
|
-
// Long enough to guarantee it's still pending (never fires) for the duration of this test.
|
|
622
|
-
const FAR_FUTURE_DELAY_MS = 1_000_000;
|
|
623
|
-
const timer = setTimeout(() => undefined, FAR_FUTURE_DELAY_MS);
|
|
624
|
-
pending.push(timer);
|
|
625
|
-
const clearTimeoutSpy = vi.spyOn(global, "clearTimeout");
|
|
626
|
-
try {
|
|
627
|
-
await store.shutdown();
|
|
628
|
-
expect(clearTimeoutSpy).toHaveBeenCalledWith(timer);
|
|
629
|
-
expect(pending).toHaveLength(0);
|
|
630
|
-
}
|
|
631
|
-
finally {
|
|
632
|
-
clearTimeoutSpy.mockRestore();
|
|
633
|
-
}
|
|
634
|
-
});
|
|
635
|
-
it("actually sets isShutDown, observable via DeliveryEngine no longer scheduling markRead timers afterward", async () => {
|
|
636
|
-
// fireLocalDelivery returns before ever reaching the isShutDown-guarded push unless onDelivery is set -- without this, the test would pass for both real code and a mutant, since it never reaches the line under test.
|
|
637
|
-
store.onDelivery = vi.fn();
|
|
638
|
-
await store.shutdown();
|
|
639
|
-
const pending = collaborator(store, "pendingMarkReadTimers");
|
|
640
|
-
await store.deliver(store.peerId, {
|
|
641
|
-
type: "room_message",
|
|
642
|
-
message: {
|
|
643
|
-
id: "m",
|
|
644
|
-
from: "a",
|
|
645
|
-
room: "r",
|
|
646
|
-
content: "hi",
|
|
647
|
-
timestamp: "2026-01-01T00:00:00.000Z",
|
|
648
|
-
readBy: [],
|
|
649
|
-
},
|
|
650
|
-
});
|
|
651
|
-
expect(pending).toHaveLength(0);
|
|
652
|
-
});
|
|
653
|
-
it("does not broadcast agent_offline when no self agent was ever registered", async () => {
|
|
654
|
-
const deliveryEngine = collaborator(store, "deliveryEngine");
|
|
655
|
-
const broadcastSpy = vi
|
|
656
|
-
.spyOn(deliveryEngine, "broadcastPatch")
|
|
657
|
-
.mockResolvedValue(undefined);
|
|
658
|
-
await store.shutdown();
|
|
659
|
-
expect(broadcastSpy).not.toHaveBeenCalled();
|
|
660
|
-
});
|
|
661
|
-
});
|
|
662
|
-
//# sourceMappingURL=mesh-store-orchestration.unit.test.js.map
|