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,376 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unit tests for persistent bridge identity (core/identity-store).
|
|
3
|
-
*/
|
|
4
|
-
import * as fs from "node:fs";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { spawn } from "node:child_process";
|
|
7
|
-
import { test, expect } from "vitest";
|
|
8
|
-
import { mintCapabilityToken } from "wire-mesh-core/domain/tokens";
|
|
9
|
-
import { createSystemClock } from "wire-mesh-core/adapters/system-clock";
|
|
10
|
-
import { generateIdentity } from "../core/identity.js";
|
|
11
|
-
import { toIdentityPort } from "../core/wire-mesh-identity.js";
|
|
12
|
-
import { deleteGroupToken, gatewayTrustStamp, loadGatewayTrust, loadGroupTokens, loadOrCreateIdentity, loadIdentityForFront, probeSlotOwner, oplogDirFor, releaseIdentityLock, saveGatewayTrust, saveGroupToken, } from "../core/identity-store.js";
|
|
13
|
-
import { scratchDirectory } from "./scratch-directory.helper.js";
|
|
14
|
-
const TOKEN_TTL_MS = 60_000;
|
|
15
|
-
/** A real, minted group:member token -- not an opaque placeholder -- so these tests exercise the actual (de)serialization round trip a real CapabilityToken tuple needs. groupPath is purely a storage key from this test's own point of view, distinct from the bearer device the fixture token happens to name. */
|
|
16
|
-
async function mintGroupToken(groupPath) {
|
|
17
|
-
const issuer = await toIdentityPort(generateIdentity());
|
|
18
|
-
const bearer = await toIdentityPort(generateIdentity());
|
|
19
|
-
const clock = createSystemClock();
|
|
20
|
-
const verdict = await mintCapabilityToken({
|
|
21
|
-
identity: issuer,
|
|
22
|
-
clock,
|
|
23
|
-
tokenId: Uint8Array.from([1]),
|
|
24
|
-
bearer: bearer.deviceId,
|
|
25
|
-
capability: "group:member",
|
|
26
|
-
scope: { kind: "group", path: groupPath },
|
|
27
|
-
expires: clock.now() + TOKEN_TTL_MS,
|
|
28
|
-
delegationsRemaining: 0,
|
|
29
|
-
});
|
|
30
|
-
if (!verdict.ok)
|
|
31
|
-
throw new Error("expected the fixture token to mint successfully");
|
|
32
|
-
return verdict.token;
|
|
33
|
-
}
|
|
34
|
-
function tempSlot(harness) {
|
|
35
|
-
const dir = scratchDirectory("agent-comms-identity-test-");
|
|
36
|
-
return { slot: { harness, cwd: "/tmp/project", dir }, dir };
|
|
37
|
-
}
|
|
38
|
-
function slotFile(dir, suffix) {
|
|
39
|
-
const found = fs.readdirSync(dir).find((f) => f.endsWith(suffix));
|
|
40
|
-
expect(found, `expected a ${suffix} file in ${dir}`).toBeDefined();
|
|
41
|
-
if (found === undefined)
|
|
42
|
-
throw new Error(`expected a ${suffix} file in ${dir}`);
|
|
43
|
-
return path.join(dir, found);
|
|
44
|
-
}
|
|
45
|
-
function lockPid(lockFile) {
|
|
46
|
-
return Number.parseInt(fs.readFileSync(lockFile, "utf-8").trim(), 10);
|
|
47
|
-
}
|
|
48
|
-
/** A child process that stays alive until killed, for live-PID lock tests. */
|
|
49
|
-
function spawnLiveProcess() {
|
|
50
|
-
const child = spawn(process.execPath, ["-e", "setInterval(() => {}, 60000)"], { stdio: "ignore" });
|
|
51
|
-
expect(child.pid).toBeDefined();
|
|
52
|
-
if (child.pid === undefined)
|
|
53
|
-
throw new Error("expected the spawned child to have a pid");
|
|
54
|
-
return {
|
|
55
|
-
pid: child.pid,
|
|
56
|
-
exit: async () => new Promise((resolve) => {
|
|
57
|
-
child.kill("SIGKILL");
|
|
58
|
-
child.on("exit", () => {
|
|
59
|
-
resolve();
|
|
60
|
-
});
|
|
61
|
-
}),
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
test("loadOrCreateIdentity persists and reloads the same key material", () => {
|
|
65
|
-
const { slot, dir } = tempSlot("pi");
|
|
66
|
-
const first = loadOrCreateIdentity(slot);
|
|
67
|
-
const lockFile = slotFile(dir, ".lock");
|
|
68
|
-
expect(lockPid(lockFile)).toBe(process.pid);
|
|
69
|
-
const reloaded = loadOrCreateIdentity(slot);
|
|
70
|
-
expect(reloaded.fingerprint).toBe(first.fingerprint);
|
|
71
|
-
expect(reloaded.privateKey).toBe(first.privateKey);
|
|
72
|
-
expect(reloaded.certificate).toBe(first.certificate);
|
|
73
|
-
releaseIdentityLock(slot);
|
|
74
|
-
expect(fs.existsSync(lockFile)).toBe(false);
|
|
75
|
-
});
|
|
76
|
-
// Offset (in milliseconds) from now used to write a stored identity's expiresAt just inside the renewal window, without it having already expired outright.
|
|
77
|
-
const NEAR_EXPIRY_OFFSET_MS = 1000;
|
|
78
|
-
// Mask isolating the permission bits from a stat mode's file-type bits.
|
|
79
|
-
const PERMISSION_BITS_MASK = 0o777;
|
|
80
|
-
// Expected owner-only read/write permission bits for a persisted identity file.
|
|
81
|
-
const OWNER_ONLY_RW_PERMISSIONS = 0o600;
|
|
82
|
-
/** The one file every slot in an identity directory shares its gateway trust through. */
|
|
83
|
-
const GATEWAY_TRUST_FILE = "gateway-trust.json";
|
|
84
|
-
test("identity file is created with owner-only permissions", () => {
|
|
85
|
-
const { slot, dir } = tempSlot("claude-code");
|
|
86
|
-
loadOrCreateIdentity(slot);
|
|
87
|
-
const mode = fs.statSync(slotFile(dir, ".json")).mode & PERMISSION_BITS_MASK;
|
|
88
|
-
expect(mode).toBe(OWNER_ONLY_RW_PERMISSIONS);
|
|
89
|
-
releaseIdentityLock(slot);
|
|
90
|
-
});
|
|
91
|
-
test("a slot held by a live process yields an ephemeral identity", () => {
|
|
92
|
-
const { slot, dir } = tempSlot("mcp");
|
|
93
|
-
const owner = loadOrCreateIdentity(slot);
|
|
94
|
-
const lockFile = slotFile(dir, ".lock");
|
|
95
|
-
const holder = spawnLiveProcess();
|
|
96
|
-
fs.writeFileSync(lockFile, `${String(holder.pid)}\n`);
|
|
97
|
-
const loser = loadOrCreateIdentity(slot);
|
|
98
|
-
expect(loser.fingerprint).not.toBe(owner.fingerprint);
|
|
99
|
-
// The live holder's lock must not be clobbered by the ephemeral loser.
|
|
100
|
-
expect(lockPid(lockFile)).toBe(holder.pid);
|
|
101
|
-
void holder.exit();
|
|
102
|
-
releaseIdentityLock(slot);
|
|
103
|
-
});
|
|
104
|
-
test("a stale lock from a dead process is taken over", async () => {
|
|
105
|
-
const { slot, dir } = tempSlot("codex");
|
|
106
|
-
const owner = loadOrCreateIdentity(slot);
|
|
107
|
-
const lockFile = slotFile(dir, ".lock");
|
|
108
|
-
const holder = spawnLiveProcess();
|
|
109
|
-
fs.writeFileSync(lockFile, `${String(holder.pid)}\n`);
|
|
110
|
-
await holder.exit();
|
|
111
|
-
const successor = loadOrCreateIdentity(slot);
|
|
112
|
-
expect(successor.fingerprint).toBe(owner.fingerprint);
|
|
113
|
-
releaseIdentityLock(slot);
|
|
114
|
-
});
|
|
115
|
-
test("a near-expiry identity is renewed", () => {
|
|
116
|
-
const { slot, dir } = tempSlot("opencode");
|
|
117
|
-
const original = loadOrCreateIdentity(slot);
|
|
118
|
-
const identityFile = slotFile(dir, ".json");
|
|
119
|
-
const stored = JSON.parse(fs.readFileSync(identityFile, "utf-8"));
|
|
120
|
-
stored.expiresAt = new Date(Date.now() + NEAR_EXPIRY_OFFSET_MS).toISOString();
|
|
121
|
-
fs.writeFileSync(identityFile, JSON.stringify(stored));
|
|
122
|
-
const renewed = loadOrCreateIdentity(slot);
|
|
123
|
-
expect(renewed.fingerprint).not.toBe(original.fingerprint);
|
|
124
|
-
releaseIdentityLock(slot);
|
|
125
|
-
});
|
|
126
|
-
test("a near-expiry identity is renewed without rotating the device-id", () => {
|
|
127
|
-
const { slot, dir } = tempSlot("gemini");
|
|
128
|
-
const original = loadOrCreateIdentity(slot);
|
|
129
|
-
const identityFile = slotFile(dir, ".json");
|
|
130
|
-
const stored = JSON.parse(fs.readFileSync(identityFile, "utf-8"));
|
|
131
|
-
stored.expiresAt = new Date(Date.now() + NEAR_EXPIRY_OFFSET_MS).toISOString();
|
|
132
|
-
fs.writeFileSync(identityFile, JSON.stringify(stored));
|
|
133
|
-
const renewed = loadOrCreateIdentity(slot);
|
|
134
|
-
expect(renewed.deviceId).toEqual(original.deviceId);
|
|
135
|
-
expect(renewed.privateKey).toBe(original.privateKey);
|
|
136
|
-
releaseIdentityLock(slot);
|
|
137
|
-
});
|
|
138
|
-
test("a corrupt identity file is regenerated", () => {
|
|
139
|
-
const { slot, dir } = tempSlot("user");
|
|
140
|
-
loadOrCreateIdentity(slot);
|
|
141
|
-
fs.writeFileSync(slotFile(dir, ".json"), "{not json");
|
|
142
|
-
const regenerated = loadOrCreateIdentity(slot);
|
|
143
|
-
expect(regenerated.fingerprint).toMatch(/^[0-9A-F]{2}(:[0-9A-F]{2})+$/);
|
|
144
|
-
releaseIdentityLock(slot);
|
|
145
|
-
});
|
|
146
|
-
test("probeSlotOwner reports undefined for a never-touched slot", () => {
|
|
147
|
-
const { slot } = tempSlot("claude-code");
|
|
148
|
-
expect(probeSlotOwner(slot)).toBeUndefined();
|
|
149
|
-
});
|
|
150
|
-
test("probeSlotOwner reports the live PID holding a slot's lock", () => {
|
|
151
|
-
const { slot } = tempSlot("claude-code");
|
|
152
|
-
loadOrCreateIdentity(slot);
|
|
153
|
-
expect(probeSlotOwner(slot)).toBe(process.pid);
|
|
154
|
-
releaseIdentityLock(slot);
|
|
155
|
-
});
|
|
156
|
-
test("probeSlotOwner reports undefined once the lock is released", () => {
|
|
157
|
-
const { slot } = tempSlot("claude-code");
|
|
158
|
-
loadOrCreateIdentity(slot);
|
|
159
|
-
releaseIdentityLock(slot);
|
|
160
|
-
expect(probeSlotOwner(slot)).toBeUndefined();
|
|
161
|
-
});
|
|
162
|
-
test("probeSlotOwner reports undefined for a lock left by a dead process", () => {
|
|
163
|
-
const { slot, dir } = tempSlot("claude-code");
|
|
164
|
-
loadOrCreateIdentity(slot);
|
|
165
|
-
const lockFile = slotFile(dir, ".lock");
|
|
166
|
-
releaseIdentityLock(slot);
|
|
167
|
-
// A pid that is exceedingly unlikely to be alive on any real machine, standing in for a crashed process's stale lock file (matching the "a stale lock from a dead process" test above, which relies on the same never-recycled-in-practice assumption).
|
|
168
|
-
const deadPid = 999_999;
|
|
169
|
-
fs.writeFileSync(lockFile, `${String(deadPid)}\n`);
|
|
170
|
-
expect(probeSlotOwner(slot)).toBeUndefined();
|
|
171
|
-
});
|
|
172
|
-
test("loadIdentityForFront creates and persists an identity without taking the slot's lock", () => {
|
|
173
|
-
const { slot, dir } = tempSlot("claude-code");
|
|
174
|
-
const identity = loadIdentityForFront(slot);
|
|
175
|
-
expect(fs.existsSync(slotFile(dir, ".json"))).toBe(true);
|
|
176
|
-
expect(fs.existsSync(path.join(dir, "identity-claude-code--_tmp_project.lock"))).toBe(false);
|
|
177
|
-
expect(probeSlotOwner(slot)).toBeUndefined();
|
|
178
|
-
const reloaded = loadIdentityForFront(slot);
|
|
179
|
-
expect(reloaded.fingerprint).toBe(identity.fingerprint);
|
|
180
|
-
expect(reloaded.deviceId).toEqual(identity.deviceId);
|
|
181
|
-
});
|
|
182
|
-
test("loadIdentityForFront's identity matches what loadOrCreateIdentity would later assume for the same slot", () => {
|
|
183
|
-
const { slot } = tempSlot("claude-code");
|
|
184
|
-
const front = loadIdentityForFront(slot);
|
|
185
|
-
const owned = loadOrCreateIdentity(slot);
|
|
186
|
-
expect(owned.fingerprint).toBe(front.fingerprint);
|
|
187
|
-
expect(owned.deviceId).toEqual(front.deviceId);
|
|
188
|
-
releaseIdentityLock(slot);
|
|
189
|
-
});
|
|
190
|
-
test("oplogDirFor is a sibling directory of the identity file, distinct per (harness, cwd)", () => {
|
|
191
|
-
const { slot, dir } = tempSlot("pi");
|
|
192
|
-
const oplogDir = oplogDirFor(slot);
|
|
193
|
-
expect(path.dirname(oplogDir)).toBe(dir);
|
|
194
|
-
expect(oplogDir).not.toBe(dir);
|
|
195
|
-
expect(oplogDirFor({ ...slot, cwd: "/tmp/other-project" })).not.toBe(oplogDir);
|
|
196
|
-
expect(oplogDirFor({ ...slot, harness: "claude-code" })).not.toBe(oplogDir);
|
|
197
|
-
});
|
|
198
|
-
test("loadGroupTokens is empty for a slot that has never saved one", () => {
|
|
199
|
-
const { slot } = tempSlot("pi");
|
|
200
|
-
loadOrCreateIdentity(slot);
|
|
201
|
-
expect(loadGroupTokens(slot)).toEqual({});
|
|
202
|
-
releaseIdentityLock(slot);
|
|
203
|
-
});
|
|
204
|
-
test("saveGroupToken persists a token, loadGroupTokens reloads it keyed by group path", async () => {
|
|
205
|
-
const { slot } = tempSlot("pi");
|
|
206
|
-
loadOrCreateIdentity(slot);
|
|
207
|
-
const token = await mintGroupToken("group-path-1");
|
|
208
|
-
saveGroupToken(slot, "group-path-1", token);
|
|
209
|
-
expect(loadGroupTokens(slot)).toEqual({ "group-path-1": token });
|
|
210
|
-
releaseIdentityLock(slot);
|
|
211
|
-
});
|
|
212
|
-
test("saveGroupToken overwrites only the given group path, leaving others and the identity's own key material untouched", async () => {
|
|
213
|
-
const { slot } = tempSlot("pi");
|
|
214
|
-
const identity = loadOrCreateIdentity(slot);
|
|
215
|
-
const tokenA = await mintGroupToken("group-a");
|
|
216
|
-
const tokenB = await mintGroupToken("group-b");
|
|
217
|
-
saveGroupToken(slot, "group-a", tokenA);
|
|
218
|
-
saveGroupToken(slot, "group-b", tokenB);
|
|
219
|
-
const tokenAReplacement = await mintGroupToken("group-a");
|
|
220
|
-
saveGroupToken(slot, "group-a", tokenAReplacement);
|
|
221
|
-
expect(loadGroupTokens(slot)).toEqual({
|
|
222
|
-
"group-a": tokenAReplacement,
|
|
223
|
-
"group-b": tokenB,
|
|
224
|
-
});
|
|
225
|
-
const reloaded = loadOrCreateIdentity(slot);
|
|
226
|
-
expect(reloaded.privateKey).toBe(identity.privateKey);
|
|
227
|
-
releaseIdentityLock(slot);
|
|
228
|
-
});
|
|
229
|
-
test("deleteGroupToken removes one group path's token, leaving others in place", async () => {
|
|
230
|
-
const { slot } = tempSlot("pi");
|
|
231
|
-
loadOrCreateIdentity(slot);
|
|
232
|
-
const tokenA = await mintGroupToken("group-a");
|
|
233
|
-
const tokenB = await mintGroupToken("group-b");
|
|
234
|
-
saveGroupToken(slot, "group-a", tokenA);
|
|
235
|
-
saveGroupToken(slot, "group-b", tokenB);
|
|
236
|
-
deleteGroupToken(slot, "group-a");
|
|
237
|
-
expect(loadGroupTokens(slot)).toEqual({ "group-b": tokenB });
|
|
238
|
-
releaseIdentityLock(slot);
|
|
239
|
-
});
|
|
240
|
-
test("deleteGroupToken is a no-op when nothing was saved for that group path", () => {
|
|
241
|
-
const { slot } = tempSlot("pi");
|
|
242
|
-
loadOrCreateIdentity(slot);
|
|
243
|
-
expect(() => {
|
|
244
|
-
deleteGroupToken(slot, "never-saved");
|
|
245
|
-
}).not.toThrow();
|
|
246
|
-
expect(loadGroupTokens(slot)).toEqual({});
|
|
247
|
-
releaseIdentityLock(slot);
|
|
248
|
-
});
|
|
249
|
-
test("loadGatewayTrust is empty for a slot that has never saved a trusted set", () => {
|
|
250
|
-
const { slot } = tempSlot("pi");
|
|
251
|
-
expect(loadGatewayTrust(slot)).toEqual({
|
|
252
|
-
devices: [],
|
|
253
|
-
principals: [],
|
|
254
|
-
machines: [],
|
|
255
|
-
});
|
|
256
|
-
});
|
|
257
|
-
test("loadGatewayTrust does not require an identity to have been created first, unlike loadRoomTokens/loadGroupTokens", () => {
|
|
258
|
-
const { slot } = tempSlot("pi");
|
|
259
|
-
expect(() => {
|
|
260
|
-
saveGatewayTrust(slot, {
|
|
261
|
-
devices: ["aabbcc"],
|
|
262
|
-
principals: [],
|
|
263
|
-
machines: [],
|
|
264
|
-
});
|
|
265
|
-
}).not.toThrow();
|
|
266
|
-
expect(loadGatewayTrust(slot)).toEqual({
|
|
267
|
-
devices: ["aabbcc"],
|
|
268
|
-
principals: [],
|
|
269
|
-
machines: [],
|
|
270
|
-
});
|
|
271
|
-
});
|
|
272
|
-
test("saveGatewayTrust persists the trusted device and principal sets, loadGatewayTrust reloads the same lists", () => {
|
|
273
|
-
const { slot } = tempSlot("pi");
|
|
274
|
-
saveGatewayTrust(slot, {
|
|
275
|
-
devices: ["aabbcc", "ddeeff"],
|
|
276
|
-
principals: ["112233"],
|
|
277
|
-
machines: [],
|
|
278
|
-
});
|
|
279
|
-
expect(loadGatewayTrust(slot)).toEqual({
|
|
280
|
-
devices: ["aabbcc", "ddeeff"],
|
|
281
|
-
principals: ["112233"],
|
|
282
|
-
machines: [],
|
|
283
|
-
});
|
|
284
|
-
});
|
|
285
|
-
test("saveGatewayTrust overwrites the previously saved sets rather than merging with them", () => {
|
|
286
|
-
const { slot } = tempSlot("pi");
|
|
287
|
-
saveGatewayTrust(slot, {
|
|
288
|
-
devices: ["aabbcc", "ddeeff"],
|
|
289
|
-
principals: ["112233"],
|
|
290
|
-
machines: [],
|
|
291
|
-
});
|
|
292
|
-
saveGatewayTrust(slot, {
|
|
293
|
-
devices: ["112233"],
|
|
294
|
-
principals: ["445566"],
|
|
295
|
-
machines: [],
|
|
296
|
-
});
|
|
297
|
-
expect(loadGatewayTrust(slot)).toEqual({
|
|
298
|
-
devices: ["112233"],
|
|
299
|
-
principals: ["445566"],
|
|
300
|
-
machines: [],
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
test("saveGatewayTrust persists the trusted machine set, and a file with no machines list loads with an empty one", () => {
|
|
304
|
-
const { slot, dir } = tempSlot("pi");
|
|
305
|
-
saveGatewayTrust(slot, {
|
|
306
|
-
devices: [],
|
|
307
|
-
principals: [],
|
|
308
|
-
machines: ["778899"],
|
|
309
|
-
});
|
|
310
|
-
expect(loadGatewayTrust(slot).machines).toEqual(["778899"]);
|
|
311
|
-
fs.writeFileSync(path.join(dir, GATEWAY_TRUST_FILE), JSON.stringify({ devices: ["aabbcc"], principals: [] }));
|
|
312
|
-
expect(loadGatewayTrust(slot)).toEqual({
|
|
313
|
-
devices: ["aabbcc"],
|
|
314
|
-
principals: [],
|
|
315
|
-
machines: [],
|
|
316
|
-
});
|
|
317
|
-
});
|
|
318
|
-
test("saveGatewayTrust persists empty sets, clearing whatever was saved before", () => {
|
|
319
|
-
const { slot } = tempSlot("pi");
|
|
320
|
-
saveGatewayTrust(slot, {
|
|
321
|
-
devices: ["aabbcc"],
|
|
322
|
-
principals: ["112233"],
|
|
323
|
-
machines: [],
|
|
324
|
-
});
|
|
325
|
-
saveGatewayTrust(slot, { devices: [], principals: [], machines: [] });
|
|
326
|
-
expect(loadGatewayTrust(slot)).toEqual({
|
|
327
|
-
devices: [],
|
|
328
|
-
principals: [],
|
|
329
|
-
machines: [],
|
|
330
|
-
});
|
|
331
|
-
});
|
|
332
|
-
test("the gateway trust file is written with owner-only permissions", () => {
|
|
333
|
-
const { slot, dir } = tempSlot("pi");
|
|
334
|
-
saveGatewayTrust(slot, { devices: ["aabbcc"], principals: [], machines: [] });
|
|
335
|
-
const file = fs.readdirSync(dir).find((f) => f === GATEWAY_TRUST_FILE);
|
|
336
|
-
expect(file, `expected ${GATEWAY_TRUST_FILE} in ${dir}`).toBeDefined();
|
|
337
|
-
if (file === undefined)
|
|
338
|
-
throw new Error("expected a gateway-trust file");
|
|
339
|
-
const mode = fs.statSync(path.join(dir, file)).mode & PERMISSION_BITS_MASK;
|
|
340
|
-
expect(mode).toBe(OWNER_ONLY_RW_PERMISSIONS);
|
|
341
|
-
});
|
|
342
|
-
test("the gateway trust file is shared by every slot in an identity directory", () => {
|
|
343
|
-
const { slot, dir } = tempSlot("pi");
|
|
344
|
-
saveGatewayTrust(slot, { devices: ["aabbcc"], principals: [], machines: [] });
|
|
345
|
-
const otherHarness = { ...slot, harness: "claude-code" };
|
|
346
|
-
const otherCwd = { ...slot, cwd: "/somewhere/else" };
|
|
347
|
-
expect(loadGatewayTrust(otherHarness).devices).toEqual(["aabbcc"]);
|
|
348
|
-
expect(loadGatewayTrust(otherCwd).devices).toEqual(["aabbcc"]);
|
|
349
|
-
expect(fs.readdirSync(dir).filter((f) => f.startsWith("gateway-trust"))).toEqual([GATEWAY_TRUST_FILE]);
|
|
350
|
-
});
|
|
351
|
-
test("gatewayTrustStamp changes when the trust file is created, rewritten, or removed", () => {
|
|
352
|
-
const { slot, dir } = tempSlot("pi");
|
|
353
|
-
const absent = gatewayTrustStamp(slot);
|
|
354
|
-
saveGatewayTrust(slot, { devices: ["aabbcc"], principals: [], machines: [] });
|
|
355
|
-
const created = gatewayTrustStamp(slot);
|
|
356
|
-
saveGatewayTrust(slot, { devices: ["aabbcc"], principals: [], machines: [] });
|
|
357
|
-
const rewritten = gatewayTrustStamp(slot);
|
|
358
|
-
fs.rmSync(path.join(dir, GATEWAY_TRUST_FILE));
|
|
359
|
-
const stamps = [absent, created, rewritten];
|
|
360
|
-
expect(new Set(stamps).size).toBe(stamps.length);
|
|
361
|
-
expect(gatewayTrustStamp(slot)).toBe(absent);
|
|
362
|
-
});
|
|
363
|
-
test("loadGatewayTrust returns empty for a slot whose gateway trust file is corrupt", () => {
|
|
364
|
-
const { slot, dir } = tempSlot("pi");
|
|
365
|
-
saveGatewayTrust(slot, { devices: ["aabbcc"], principals: [], machines: [] });
|
|
366
|
-
const file = fs.readdirSync(dir).find((f) => f === GATEWAY_TRUST_FILE);
|
|
367
|
-
if (file === undefined)
|
|
368
|
-
throw new Error("expected a gateway-trust file");
|
|
369
|
-
fs.writeFileSync(path.join(dir, file), "not valid json{{{");
|
|
370
|
-
expect(loadGatewayTrust(slot)).toEqual({
|
|
371
|
-
devices: [],
|
|
372
|
-
principals: [],
|
|
373
|
-
machines: [],
|
|
374
|
-
});
|
|
375
|
-
});
|
|
376
|
-
//# sourceMappingURL=identity-store.integration.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identity-store.integration.test.js","sourceRoot":"","sources":["../../src/test/identity-store.integration.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,O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AAE,UAAU,EAAE,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;IAC9E,MAAM,IAAI,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,kBAAkB,CAAC,CAAC;IACvE,IAAI,IAAI,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACzE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,mBAAmB,CAAC,CAAC;IAC5D,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;QACrC,OAAO,EAAE,EAAE;QACX,UAAU,EAAE,EAAE;QACd,QAAQ,EAAE,EAAE;KACb,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issuer-grouping.unit.test.d.ts","sourceRoot":"","sources":["../../src/test/issuer-grouping.unit.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Unit tests for list_agents' issuer placement (issuer-grouping.ts). The identify step is a stub, so what is under test is which devices get placed and how a failure to identify one is contained, not the cryptography (membership-proof.unit.test.ts).
|
|
3
|
-
*/
|
|
4
|
-
import { createHash } from "node:crypto";
|
|
5
|
-
import { describe, expect, it, vi } from "vitest";
|
|
6
|
-
import { IssuerGrouping } from "../core/issuer-grouping.js";
|
|
7
|
-
const ONE_HOUR_MS = 3_600_000;
|
|
8
|
-
/** A stable, valid device id for a label, so each test names its devices instead of numbering them. */
|
|
9
|
-
function hex(label) {
|
|
10
|
-
return createHash("sha256").update(label).digest("hex");
|
|
11
|
-
}
|
|
12
|
-
/** A known device whose agent/self advert carries the given machine proof. */
|
|
13
|
-
function known(label, machineProof) {
|
|
14
|
-
return {
|
|
15
|
-
deviceId: hex(label),
|
|
16
|
-
advert: { "agent/self": { machine: machineProof } },
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
/** The naming deps for adverts that carry no name claim: verifying one would mean the test's fixtures are not what it says, so it fails loudly. */
|
|
20
|
-
const noNames = {
|
|
21
|
-
field: "machine",
|
|
22
|
-
readNameClaim: () => undefined,
|
|
23
|
-
verifyName: async () => Promise.reject(new Error("these adverts carry no name claim")),
|
|
24
|
-
getOwnName: () => undefined,
|
|
25
|
-
};
|
|
26
|
-
describe("IssuerGrouping", () => {
|
|
27
|
-
it("reports a proof it cannot identify, leaves that device unplaced, and still places the others", async () => {
|
|
28
|
-
const onError = vi.fn();
|
|
29
|
-
const identify = vi.fn(async (claim) => claim.proof === "broken"
|
|
30
|
-
? Promise.reject(new Error("revocation view unavailable"))
|
|
31
|
-
: Promise.resolve({
|
|
32
|
-
ok: true,
|
|
33
|
-
issuerHex: hex("remote-machine"),
|
|
34
|
-
expires: Date.now() + ONE_HOUR_MS,
|
|
35
|
-
}));
|
|
36
|
-
const grouping = new IssuerGrouping({
|
|
37
|
-
listKnownDevices: () => [
|
|
38
|
-
known("unidentifiable", "broken"),
|
|
39
|
-
known("placed", "good"),
|
|
40
|
-
],
|
|
41
|
-
identify,
|
|
42
|
-
getPeerId: () => hex("self"),
|
|
43
|
-
getOwnIssuerId: () => hex("own-machine"),
|
|
44
|
-
onError,
|
|
45
|
-
...noNames,
|
|
46
|
-
});
|
|
47
|
-
const machines = await grouping.issuersByDevice();
|
|
48
|
-
expect(machines).toEqual(new Map([
|
|
49
|
-
[hex("self"), hex("own-machine")],
|
|
50
|
-
[hex("placed"), hex("remote-machine")],
|
|
51
|
-
]));
|
|
52
|
-
expect(onError).toHaveBeenCalledTimes(1);
|
|
53
|
-
expect(onError.mock.calls[0]?.[0].message).toContain(hex("unidentifiable"));
|
|
54
|
-
});
|
|
55
|
-
it("tries a proof it could not identify again on the next listing, since the failure was not a verdict on the proof", async () => {
|
|
56
|
-
const identify = vi.fn(async () => Promise.reject(new Error("revocation view unavailable")));
|
|
57
|
-
const grouping = new IssuerGrouping({
|
|
58
|
-
listKnownDevices: () => [known("retried", "proof")],
|
|
59
|
-
identify,
|
|
60
|
-
getPeerId: () => hex("self"),
|
|
61
|
-
getOwnIssuerId: () => hex("own-machine"),
|
|
62
|
-
onError: () => undefined,
|
|
63
|
-
...noNames,
|
|
64
|
-
});
|
|
65
|
-
await grouping.issuersByDevice();
|
|
66
|
-
await grouping.issuersByDevice();
|
|
67
|
-
expect(identify).toHaveBeenCalledTimes(2);
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
describe("IssuerGrouping names", () => {
|
|
71
|
-
const principal = hex("principal");
|
|
72
|
-
/** A known device whose advert carries a principal proof and the given principal name claim. */
|
|
73
|
-
function principalDevice(label, claim) {
|
|
74
|
-
return {
|
|
75
|
-
deviceId: hex(label),
|
|
76
|
-
advert: { "agent/self": { membership: "proof", principalName: claim } },
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
function grouping(devices, verdict, ownName) {
|
|
80
|
-
return new IssuerGrouping({
|
|
81
|
-
field: "membership",
|
|
82
|
-
readNameClaim: (advert) => {
|
|
83
|
-
const self = advert["agent/self"];
|
|
84
|
-
return typeof self === "object" &&
|
|
85
|
-
self !== null &&
|
|
86
|
-
"principalName" in self &&
|
|
87
|
-
typeof self.principalName === "string"
|
|
88
|
-
? self.principalName
|
|
89
|
-
: undefined;
|
|
90
|
-
},
|
|
91
|
-
listKnownDevices: () => devices,
|
|
92
|
-
identify: async () => Promise.resolve({
|
|
93
|
-
ok: true,
|
|
94
|
-
issuerHex: principal,
|
|
95
|
-
expires: Date.now() + ONE_HOUR_MS,
|
|
96
|
-
}),
|
|
97
|
-
getPeerId: () => hex("self"),
|
|
98
|
-
getOwnIssuerId: () => hex("own-principal"),
|
|
99
|
-
onError: () => undefined,
|
|
100
|
-
verifyName: async ({ claim, subject }) => Promise.resolve(verdict(claim, subject)
|
|
101
|
-
? { ok: true, name: claim, expires: Date.now() + ONE_HOUR_MS }
|
|
102
|
-
: { ok: false, reason: "bad_signature" }),
|
|
103
|
-
getOwnName: () => ownName,
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
it("keeps a name only when its claim verifies against the principal the device's proof names", async () => {
|
|
107
|
-
const names = await grouping([
|
|
108
|
-
principalDevice("signed", "alice"),
|
|
109
|
-
principalDevice("forged", "mallory"),
|
|
110
|
-
], (claim, subject) => claim === "alice" && subject === principal).issuerNames();
|
|
111
|
-
expect(names).toEqual(new Map([[principal, "alice"]]));
|
|
112
|
-
});
|
|
113
|
-
it("names this device's own principal from its own file, ahead of any gossiped claim", async () => {
|
|
114
|
-
const names = await grouping([], () => true, "own account").issuerNames();
|
|
115
|
-
expect(names).toEqual(new Map([[hex("own-principal"), "own account"]]));
|
|
116
|
-
});
|
|
117
|
-
it("does not look at a name claim for a device whose proof is not valid", async () => {
|
|
118
|
-
const verify = vi.fn(() => true);
|
|
119
|
-
const refusing = new IssuerGrouping({
|
|
120
|
-
field: "membership",
|
|
121
|
-
readNameClaim: () => "alice",
|
|
122
|
-
listKnownDevices: () => [principalDevice("unproven", "alice")],
|
|
123
|
-
identify: async () => Promise.resolve({ ok: false, reason: "expired" }),
|
|
124
|
-
getPeerId: () => hex("self"),
|
|
125
|
-
getOwnIssuerId: () => hex("own-principal"),
|
|
126
|
-
onError: () => undefined,
|
|
127
|
-
verifyName: async () => {
|
|
128
|
-
verify();
|
|
129
|
-
return Promise.resolve({ ok: false, reason: "unreachable" });
|
|
130
|
-
},
|
|
131
|
-
getOwnName: () => undefined,
|
|
132
|
-
});
|
|
133
|
-
expect(await refusing.issuerNames()).toEqual(new Map());
|
|
134
|
-
expect(verify).not.toHaveBeenCalled();
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
//# sourceMappingURL=issuer-grouping.unit.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"issuer-grouping.unit.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;gBACrB,MAAM,EAAE,CAAC;gBACT,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;YAC/D,CAAC;YACD,UAAU,EAAE,GAAG,EAAE,CAAC,SAAS;SAC5B,CAAC,CAAC;QAEH,MAAM,CAAC,MAAM,QAAQ,CAAC,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;QACxD,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;IACxC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lan-web-uis.unit.test.d.ts","sourceRoot":"","sources":["../../src/test/lan-web-uis.unit.test.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LanWebUis (agent-comms#353): the bounded, expiring table of LAN web UIs heard as web beacons, and the lan_web_uis action's formatting over it.
|
|
3
|
-
*/
|
|
4
|
-
import { describe, expect, it } from "vitest";
|
|
5
|
-
import { LanWebUis } from "../core/lan-web-uis.js";
|
|
6
|
-
import { lanWebUisAction } from "../core/lan-web-actions.js";
|
|
7
|
-
import { plainNamer } from "../core/naming.js";
|
|
8
|
-
import { FIRST_CONTACT_INTERVAL_MS } from "../core/first-contact.js";
|
|
9
|
-
/** Two web ports a beacon could announce, distinct from each other and from a restart's new port so every replacement is visible. */
|
|
10
|
-
const WEB_PORT_ONE = 55213;
|
|
11
|
-
const WEB_PORT_TWO = 55214;
|
|
12
|
-
const WEB_PORT_RESTARTED = 55299;
|
|
13
|
-
/** Tick spacing between two records, so a later record visibly refreshes heardAtMs. */
|
|
14
|
-
const TICKS_BETWEEN_RECORDS = 10_000;
|
|
15
|
-
/** The clock's starting tick; any value would do, fixed so heardAtMs is predictable. */
|
|
16
|
-
const CLOCK_START_MS = 1_000;
|
|
17
|
-
/** Enough missed beacon intervals that an entry must be stale: comfortably past the expiry the table derives from three. */
|
|
18
|
-
const STALE_MISSED_BEACONS = 10;
|
|
19
|
-
const STALE_AFTER_TICKS = STALE_MISSED_BEACONS * FIRST_CONTACT_INTERVAL_MS;
|
|
20
|
-
const PEER_B = "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb";
|
|
21
|
-
const PEER_C = "cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc";
|
|
22
|
-
describe("LanWebUis", () => {
|
|
23
|
-
it("lists entries ordered by peer id", () => {
|
|
24
|
-
const table = new LanWebUis(() => CLOCK_START_MS);
|
|
25
|
-
table.record(PEER_C, "192.168.1.6", WEB_PORT_ONE);
|
|
26
|
-
table.record(PEER_B, "192.168.1.5", WEB_PORT_TWO);
|
|
27
|
-
expect(table.list().map((entry) => entry.peerId)).toEqual([PEER_B, PEER_C]);
|
|
28
|
-
});
|
|
29
|
-
it("replaces a peer's entry when its bridge restarts on a new port", () => {
|
|
30
|
-
let now = CLOCK_START_MS;
|
|
31
|
-
const table = new LanWebUis(() => now);
|
|
32
|
-
table.record(PEER_B, "192.168.1.5", WEB_PORT_ONE);
|
|
33
|
-
now += TICKS_BETWEEN_RECORDS;
|
|
34
|
-
table.record(PEER_B, "192.168.1.5", WEB_PORT_RESTARTED);
|
|
35
|
-
expect(table.list()).toEqual([
|
|
36
|
-
{
|
|
37
|
-
peerId: PEER_B,
|
|
38
|
-
host: "192.168.1.5",
|
|
39
|
-
webPort: WEB_PORT_RESTARTED,
|
|
40
|
-
heardAtMs: CLOCK_START_MS + TICKS_BETWEEN_RECORDS,
|
|
41
|
-
},
|
|
42
|
-
]);
|
|
43
|
-
});
|
|
44
|
-
it("drops an entry once its bridge has missed a few beacon intervals", () => {
|
|
45
|
-
let now = CLOCK_START_MS;
|
|
46
|
-
const table = new LanWebUis(() => now);
|
|
47
|
-
table.record(PEER_B, "192.168.1.5", WEB_PORT_ONE);
|
|
48
|
-
table.record(PEER_C, "192.168.1.6", WEB_PORT_TWO);
|
|
49
|
-
// Peer B goes quiet while peer C keeps beaconing: only B's entry is stale.
|
|
50
|
-
now += STALE_AFTER_TICKS;
|
|
51
|
-
table.record(PEER_C, "192.168.1.6", WEB_PORT_TWO);
|
|
52
|
-
expect(table.list().map((entry) => entry.peerId)).toEqual([PEER_C]);
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
describe("lanWebUisAction", () => {
|
|
56
|
-
it("formats each entry as its URL beside the full peer id and its names", () => {
|
|
57
|
-
const table = new LanWebUis(() => CLOCK_START_MS);
|
|
58
|
-
table.record(PEER_B, "192.168.1.5", WEB_PORT_ONE);
|
|
59
|
-
const result = lanWebUisAction({ lanWebUis: table }, plainNamer);
|
|
60
|
-
expect(result.isError).toBe(false);
|
|
61
|
-
expect(result.content).toBe(`LAN web UIs:\nhttp://192.168.1.5:${WEB_PORT_ONE.toString()} ${PEER_B}`);
|
|
62
|
-
});
|
|
63
|
-
it("says what absence means rather than an empty list", () => {
|
|
64
|
-
const result = lanWebUisAction({ lanWebUis: new LanWebUis() }, plainNamer);
|
|
65
|
-
expect(result.content).toContain("No LAN web UIs heard");
|
|
66
|
-
});
|
|
67
|
-
it("answers not-mesh-backed when the store has no lanWebUis at all", () => {
|
|
68
|
-
const result = lanWebUisAction({}, plainNamer);
|
|
69
|
-
expect(result.content).toContain("requires a mesh-backed store");
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
//# sourceMappingURL=lan-web-uis.unit.test.js.map
|