@dxos/plugin-client 0.8.4-main.422d1c7879 → 0.8.4-main.4668b7de9b
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/AccountContainer-FZ3IC6H4.mjs +182 -0
- package/dist/lib/neutral/AccountContainer-FZ3IC6H4.mjs.map +7 -0
- package/dist/lib/neutral/ClientPlugin.mjs +72 -0
- package/dist/lib/neutral/ClientPlugin.mjs.map +7 -0
- package/dist/lib/{browser/cli/index.mjs → neutral/ClientPlugin.node.mjs} +83 -93
- package/dist/lib/neutral/ClientPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/ClientPlugin.workerd.mjs +16 -0
- package/dist/lib/neutral/ClientPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs +262 -0
- package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs.map +7 -0
- package/dist/lib/neutral/InvitationsContainer-ME722VKS.mjs +132 -0
- package/dist/lib/neutral/InvitationsContainer-ME722VKS.mjs.map +7 -0
- package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs +53 -0
- package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs.map +7 -0
- package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs +168 -0
- package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs.map +7 -0
- package/dist/lib/neutral/RecoveryCodeDialog-GBRH6ZSA.mjs +59 -0
- package/dist/lib/neutral/RecoveryCodeDialog-GBRH6ZSA.mjs.map +7 -0
- package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs +51 -0
- package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs.map +7 -0
- package/dist/lib/neutral/ResetDialog-HZ5OKKG4.mjs +57 -0
- package/dist/lib/neutral/ResetDialog-HZ5OKKG4.mjs.map +7 -0
- package/dist/lib/neutral/account-cache-4EKGEUJI.mjs +43 -0
- package/dist/lib/neutral/account-cache-4EKGEUJI.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-A74W7C36.mjs +145 -0
- package/dist/lib/neutral/app-graph-builder-A74W7C36.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +34 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/node.mjs +21 -0
- package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
- package/dist/lib/{browser/chunk-M43LJQ5U.mjs → neutral/chunk-D6HPCLTS.mjs} +36 -26
- package/dist/lib/neutral/chunk-D6HPCLTS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-FVESSI4C.mjs +8 -0
- package/dist/lib/neutral/chunk-FVESSI4C.mjs.map +7 -0
- package/dist/lib/neutral/chunk-JEF2FQGB.mjs +27 -0
- package/dist/lib/neutral/chunk-JEF2FQGB.mjs.map +7 -0
- package/dist/lib/neutral/chunk-JOCCVODY.mjs +21 -0
- package/dist/lib/neutral/chunk-JOCCVODY.mjs.map +7 -0
- package/dist/lib/{browser/chunk-WNJRYPGG.mjs → neutral/chunk-TUK3ELUU.mjs} +8 -4
- package/dist/lib/neutral/chunk-TUK3ELUU.mjs.map +7 -0
- package/dist/lib/neutral/chunk-WWCVZG3K.mjs +13 -0
- package/dist/lib/neutral/chunk-WWCVZG3K.mjs.map +7 -0
- package/dist/lib/neutral/client-MCFHLJEA.mjs +62 -0
- package/dist/lib/neutral/client-MCFHLJEA.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +1 -0
- package/dist/lib/neutral/containers/index.mjs +23 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/{browser/create-agent-SS5SE35J.mjs → neutral/create-agent-6HLW4D3A.mjs} +5 -13
- package/dist/lib/neutral/create-agent-6HLW4D3A.mjs.map +7 -0
- package/dist/lib/{browser/create-identity-PBEUEIPN.mjs → neutral/create-identity-WV2CVZBS.mjs} +18 -6
- package/dist/lib/neutral/create-identity-WV2CVZBS.mjs.map +7 -0
- package/dist/lib/{browser/create-passkey-JN6I5WMM.mjs → neutral/create-passkey-FOXEMXGF.mjs} +7 -31
- package/dist/lib/neutral/create-passkey-FOXEMXGF.mjs.map +7 -0
- package/dist/lib/{browser/create-recovery-code-32I6IWZC.mjs → neutral/create-recovery-code-ZWDKLPH4.mjs} +6 -14
- package/dist/lib/neutral/create-recovery-code-ZWDKLPH4.mjs.map +7 -0
- package/dist/lib/neutral/hub-http-client-WOJUCDKV.mjs +19 -0
- package/dist/lib/neutral/hub-http-client-WOJUCDKV.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +23 -0
- package/dist/lib/{browser/join-identity-2BP4G2SD.mjs → neutral/join-identity-QEQFAE2S.mjs} +4 -4
- package/dist/lib/{browser/join-identity-2BP4G2SD.mjs.map → neutral/join-identity-QEQFAE2S.mjs.map} +1 -1
- package/dist/lib/neutral/layer-specs-FLXR263J.mjs +61 -0
- package/dist/lib/neutral/layer-specs-FLXR263J.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/migrations-7FTW55ER.mjs +23 -0
- package/dist/lib/neutral/migrations-7FTW55ER.mjs.map +7 -0
- package/dist/lib/neutral/navigation-handler-FWSGOXGG.mjs +46 -0
- package/dist/lib/neutral/navigation-handler-FWSGOXGG.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs +13 -0
- package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +12 -0
- package/dist/lib/neutral/operations/index.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +17 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-context-B5LXMHVM.mjs +23 -0
- package/dist/lib/neutral/react-context-B5LXMHVM.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-DEKGWTCD.mjs +70 -0
- package/dist/lib/neutral/react-surface-DEKGWTCD.mjs.map +7 -0
- package/dist/lib/{browser/recover-identity-LS6B5INB.mjs → neutral/recover-identity-JNFKLCUD.mjs} +4 -4
- package/dist/lib/{browser/recover-identity-LS6B5INB.mjs.map → neutral/recover-identity-JNFKLCUD.mjs.map} +1 -1
- package/dist/lib/{browser/redeem-passkey-OCIV6VCK.mjs → neutral/redeem-passkey-4SBAI4AG.mjs} +6 -22
- package/dist/lib/neutral/redeem-passkey-4SBAI4AG.mjs.map +7 -0
- package/dist/lib/{browser/redeem-token-6BCRGKV6.mjs → neutral/redeem-token-POBD6TMN.mjs} +5 -13
- package/dist/lib/neutral/redeem-token-POBD6TMN.mjs.map +7 -0
- package/dist/lib/{browser/reset-storage-QJLTL7J3.mjs → neutral/reset-storage-LQKUV5RA.mjs} +4 -4
- package/dist/lib/{browser/reset-storage-QJLTL7J3.mjs.map → neutral/reset-storage-LQKUV5RA.mjs.map} +1 -1
- package/dist/lib/neutral/schema-defs-IHBCKTMM.mjs +51 -0
- package/dist/lib/neutral/schema-defs-IHBCKTMM.mjs.map +7 -0
- package/dist/lib/{browser/share-identity-YJEBJTPA.mjs → neutral/share-identity-KNQ2XNXV.mjs} +5 -5
- package/dist/lib/{browser/share-identity-YJEBJTPA.mjs.map → neutral/share-identity-KNQ2XNXV.mjs.map} +1 -1
- package/dist/lib/{browser → neutral}/testing/index.mjs +3 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/{browser/index.mjs → neutral/translations.mjs} +31 -73
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/types/index.mjs +1 -1
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/ClientPlugin.d.ts +1 -0
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/{cli/plugin.d.ts → ClientPlugin.node.d.ts} +2 -1
- package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ClientPlugin.test.d.ts +2 -0
- package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
- package/dist/types/src/ClientPlugin.workerd.d.ts +4 -0
- package/dist/types/src/ClientPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/account-cache.d.ts +35 -0
- package/dist/types/src/capabilities/account-cache.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/client.d.ts +1 -1
- package/dist/types/src/capabilities/client.d.ts.map +1 -1
- package/dist/types/src/capabilities/hub-http-client.d.ts +6 -0
- package/dist/types/src/capabilities/hub-http-client.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +47 -14
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/layer-specs.d.ts +6 -0
- package/dist/types/src/capabilities/layer-specs.d.ts.map +1 -0
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +18 -13
- package/dist/types/src/capabilities/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
- package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
- package/dist/types/src/commands/config/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
- package/dist/types/src/commands/config/view.d.ts.map +1 -0
- package/dist/types/src/commands/device/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
- package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
- package/dist/types/src/commands/device/util.d.ts.map +1 -0
- package/dist/types/src/commands/edge/index.d.ts.map +1 -0
- package/dist/types/src/commands/edge/status.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/create/create.d.ts +2 -2
- package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
- package/dist/types/src/commands/halo/create/create.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +2 -2
- package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
- package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +1 -4
- package/dist/types/src/commands/halo/util.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
- package/dist/types/src/commands/profile/create.d.ts.map +1 -0
- package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
- package/dist/types/src/commands/profile/import.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
- package/dist/types/src/commands/profile/index.d.ts.map +1 -0
- package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
- package/dist/types/src/commands/profile/list.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
- package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
- package/dist/types/src/commands/profile/util.d.ts.map +1 -0
- package/dist/types/src/constants.d.ts +4 -3
- package/dist/types/src/constants.d.ts.map +1 -1
- package/dist/types/src/containers/AccountContainer/AccountContainer.d.ts +3 -0
- package/dist/types/src/containers/AccountContainer/AccountContainer.d.ts.map +1 -0
- package/dist/types/src/containers/AccountContainer/index.d.ts +2 -0
- package/dist/types/src/containers/AccountContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -165
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/InvitationsContainer/InvitationsContainer.d.ts +3 -0
- package/dist/types/src/containers/InvitationsContainer/InvitationsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/InvitationsContainer/index.d.ts +2 -0
- package/dist/types/src/containers/InvitationsContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts +6 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +2 -2
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +2 -0
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create-agent.d.ts +1 -1
- package/dist/types/src/operations/create-agent.d.ts.map +1 -1
- package/dist/types/src/operations/create-identity.d.ts +1 -1
- package/dist/types/src/operations/create-identity.d.ts.map +1 -1
- package/dist/types/src/operations/create-passkey.d.ts +1 -1
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
- package/dist/types/src/operations/create-recovery-code.d.ts +1 -1
- package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +4 -4
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/join-identity.d.ts +1 -1
- package/dist/types/src/operations/join-identity.d.ts.map +1 -1
- package/dist/types/src/operations/recover-identity.d.ts +1 -1
- package/dist/types/src/operations/recover-identity.d.ts.map +1 -1
- package/dist/types/src/operations/redeem-passkey.d.ts +1 -1
- package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -1
- package/dist/types/src/operations/redeem-token.d.ts +1 -1
- package/dist/types/src/operations/redeem-token.d.ts.map +1 -1
- package/dist/types/src/operations/reset-storage.d.ts +1 -1
- package/dist/types/src/operations/reset-storage.d.ts.map +1 -1
- package/dist/types/src/operations/share-identity.d.ts +1 -1
- package/dist/types/src/operations/share-identity.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/state/account-cache.d.ts +42 -0
- package/dist/types/src/state/account-cache.d.ts.map +1 -0
- package/dist/types/src/state/use-hub-http.d.ts +8 -0
- package/dist/types/src/state/use-hub-http.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/initializeIdentity.d.ts +5 -4
- package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +34 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +20 -3
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +105 -62
- package/src/{cli/plugin.ts → ClientPlugin.node.ts} +12 -1
- package/src/ClientPlugin.test.ts +29 -0
- package/src/ClientPlugin.ts +18 -2
- package/src/ClientPlugin.workerd.ts +16 -0
- package/src/capabilities/account-cache.ts +25 -0
- package/src/capabilities/app-graph-builder.ts +20 -2
- package/src/capabilities/client.ts +1 -0
- package/src/capabilities/hub-http-client.ts +21 -0
- package/src/capabilities/index.ts +4 -1
- package/src/capabilities/layer-specs.ts +92 -0
- package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
- package/src/capabilities/node.ts +9 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +12 -0
- package/src/capabilities/schema-defs.ts +29 -9
- package/src/{cli/commands → commands}/halo/create/create.test.ts +11 -9
- package/src/{cli/commands → commands}/halo/create/create.ts +1 -1
- package/src/{cli/commands → commands}/halo/identity/identity.test.ts +4 -4
- package/src/{cli/commands → commands}/halo/identity/identity.ts +2 -2
- package/src/{cli/commands → commands}/halo/join/join.ts +2 -2
- package/src/{cli/commands → commands}/halo/recover/recover.ts +2 -2
- package/src/{cli/commands → commands}/halo/update/update.test.ts +5 -5
- package/src/{cli/commands → commands}/halo/update/update.ts +2 -2
- package/src/{cli/commands → commands}/halo/util.ts +2 -5
- package/src/constants.ts +5 -3
- package/src/containers/AccountContainer/AccountContainer.tsx +179 -0
- package/src/containers/AccountContainer/index.ts +5 -0
- package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +3 -4
- package/src/containers/DevicesContainer/DevicesContainer.tsx +1 -1
- package/src/containers/InvitationsContainer/InvitationsContainer.tsx +137 -0
- package/src/containers/InvitationsContainer/index.ts +5 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
- package/src/containers/JoinDialog/JoinDialog.tsx +1 -1
- package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +2 -1
- package/src/containers/ProfileContainer/ProfileContainer.tsx +1 -1
- package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +2 -1
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +3 -4
- package/src/containers/ResetDialog/ResetDialog.stories.tsx +4 -3
- package/src/containers/ResetDialog/ResetDialog.tsx +9 -1
- package/src/containers/index.ts +2 -0
- package/src/index.ts +2 -1
- package/src/meta.ts +7 -4
- package/src/operations/create-agent.ts +1 -1
- package/src/operations/create-identity.ts +11 -3
- package/src/operations/create-passkey.ts +1 -1
- package/src/operations/create-recovery-code.ts +1 -1
- package/src/operations/definitions.ts +23 -15
- package/src/operations/index.ts +1 -1
- package/src/operations/join-identity.ts +1 -1
- package/src/operations/recover-identity.ts +2 -2
- package/src/operations/redeem-passkey.ts +1 -1
- package/src/operations/redeem-token.ts +1 -1
- package/src/operations/reset-storage.ts +1 -1
- package/src/operations/share-identity.ts +2 -2
- package/src/plugin.ts +11 -0
- package/src/state/account-cache.ts +33 -0
- package/src/state/use-hub-http.ts +32 -0
- package/src/testing/index.ts +1 -0
- package/src/testing/initializeIdentity.ts +10 -4
- package/src/translations.ts +34 -3
- package/src/types/capabilities.ts +7 -0
- package/src/types/schema.ts +6 -3
- package/dist/lib/browser/chunk-ELAYKIQU.mjs +0 -12
- package/dist/lib/browser/chunk-ELAYKIQU.mjs.map +0 -7
- package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +0 -7
- package/dist/lib/browser/chunk-WNJRYPGG.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +0 -7
- package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +0 -7
- package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +0 -7
- package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +0 -7
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operations/index.mjs +0 -13
- package/dist/lib/browser/operations/index.mjs.map +0 -7
- package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +0 -7
- package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +0 -7
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs +0 -133
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +0 -14
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +0 -176
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -1060
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs +0 -35
- package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +0 -7
- package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs +0 -31
- package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +0 -7
- package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs +0 -106
- package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +0 -7
- package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs +0 -45
- package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -144
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/join-identity-75JCKQHM.mjs +0 -28
- package/dist/lib/node-esm/join-identity-75JCKQHM.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/operations/index.mjs +0 -14
- package/dist/lib/node-esm/operations/index.mjs.map +0 -7
- package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs +0 -27
- package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs.map +0 -7
- package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs +0 -83
- package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +0 -7
- package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs +0 -38
- package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +0 -7
- package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs +0 -27
- package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs.map +0 -7
- package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs +0 -32
- package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs.map +0 -7
- package/dist/lib/node-esm/testing/index.mjs +0 -23
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -15
- package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
- package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
- package/dist/types/src/cli/commands/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
- package/dist/types/src/cli/index.d.ts +0 -2
- package/dist/types/src/cli/index.d.ts.map +0 -1
- package/dist/types/src/cli/plugin.d.ts.map +0 -1
- package/dist/types/src/cli/testing/test-console.d.ts +0 -37
- package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
- package/src/cli/index.ts +0 -5
- package/src/cli/testing/test-console.ts +0 -87
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/lib/{browser/types → neutral/components}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/types → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/meta.mjs.map} +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
- /package/src/{cli/commands → commands}/config/index.ts +0 -0
- /package/src/{cli/commands → commands}/config/view.ts +0 -0
- /package/src/{cli/commands → commands}/device/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/info.test.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/info.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/list.test.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/list.ts +0 -0
- /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/update/update.ts +0 -0
- /package/src/{cli/commands → commands}/device/util.ts +0 -0
- /package/src/{cli/commands → commands}/edge/index.ts +0 -0
- /package/src/{cli/commands → commands}/edge/status.ts +0 -0
- /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/list.ts +0 -0
- /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -0
- /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
- /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
- /package/src/{cli/commands → commands}/index.ts +0 -0
- /package/src/{cli/commands → commands}/profile/create.ts +0 -0
- /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
- /package/src/{cli/commands → commands}/profile/import.ts +0 -0
- /package/src/{cli/commands → commands}/profile/index.ts +0 -0
- /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
- /package/src/{cli/commands → commands}/profile/list.ts +0 -0
- /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
- /package/src/{cli/commands → commands}/profile/util.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-client",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.4668b7de9b",
|
|
4
4
|
"description": "DXOS Surface plugin for DXOS Client",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,53 +8,92 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
16
|
"#capabilities": {
|
|
17
|
-
"source":
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
"source": {
|
|
18
|
+
"node": "./src/capabilities/node.ts",
|
|
19
|
+
"default": "./src/capabilities/index.ts"
|
|
20
|
+
},
|
|
21
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
22
|
+
"node": "./dist/lib/neutral/capabilities/node.mjs",
|
|
23
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
21
24
|
},
|
|
22
|
-
"#
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"#testing": "./src/testing/index.ts",
|
|
27
|
-
"#types": "./src/types/index.ts"
|
|
28
|
-
},
|
|
29
|
-
"exports": {
|
|
30
|
-
".": {
|
|
31
|
-
"source": "./src/index.ts",
|
|
32
|
-
"types": "./dist/types/src/index.d.ts",
|
|
33
|
-
"browser": "./dist/lib/browser/index.mjs",
|
|
34
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
25
|
+
"#capabilities/node": {
|
|
26
|
+
"source": "./src/capabilities/node.ts",
|
|
27
|
+
"types": "./dist/types/src/capabilities/node.d.ts",
|
|
28
|
+
"default": "./dist/lib/neutral/capabilities/node.mjs"
|
|
35
29
|
},
|
|
36
|
-
"
|
|
37
|
-
"source": "./src/
|
|
38
|
-
"types": "./dist/types/src/
|
|
39
|
-
"
|
|
30
|
+
"#components": {
|
|
31
|
+
"source": "./src/components/index.ts",
|
|
32
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
33
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
40
34
|
},
|
|
41
|
-
"
|
|
35
|
+
"#containers": {
|
|
36
|
+
"source": "./src/containers/index.ts",
|
|
37
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
38
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
39
|
+
},
|
|
40
|
+
"#meta": {
|
|
41
|
+
"source": "./src/meta.ts",
|
|
42
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
43
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
44
|
+
},
|
|
45
|
+
"#operations": {
|
|
42
46
|
"source": "./src/operations/index.ts",
|
|
43
47
|
"types": "./dist/types/src/operations/index.d.ts",
|
|
44
|
-
"
|
|
45
|
-
|
|
48
|
+
"default": "./dist/lib/neutral/operations/index.mjs"
|
|
49
|
+
},
|
|
50
|
+
"#plugin": {
|
|
51
|
+
"source": {
|
|
52
|
+
"workerd": "./src/ClientPlugin.workerd.ts",
|
|
53
|
+
"node": "./src/ClientPlugin.node.ts",
|
|
54
|
+
"default": "./src/ClientPlugin.ts"
|
|
55
|
+
},
|
|
56
|
+
"types": "./dist/types/src/ClientPlugin.d.ts",
|
|
57
|
+
"workerd": "./dist/lib/neutral/ClientPlugin.workerd.mjs",
|
|
58
|
+
"node": "./dist/lib/neutral/ClientPlugin.node.mjs",
|
|
59
|
+
"default": "./dist/lib/neutral/ClientPlugin.mjs"
|
|
60
|
+
},
|
|
61
|
+
"#testing": {
|
|
62
|
+
"source": "./src/testing/index.ts",
|
|
63
|
+
"types": "./dist/types/src/testing/index.d.ts",
|
|
64
|
+
"default": "./dist/lib/neutral/testing/index.mjs"
|
|
65
|
+
},
|
|
66
|
+
"#translations": {
|
|
67
|
+
"source": "./src/translations.ts",
|
|
68
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
69
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
46
70
|
},
|
|
47
|
-
"
|
|
71
|
+
"#types": {
|
|
48
72
|
"source": "./src/types/index.ts",
|
|
49
73
|
"types": "./dist/types/src/types/index.d.ts",
|
|
50
|
-
"
|
|
51
|
-
|
|
74
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"exports": {
|
|
78
|
+
".": {
|
|
79
|
+
"source": "./src/index.ts",
|
|
80
|
+
"types": "./dist/types/src/index.d.ts",
|
|
81
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
82
|
+
},
|
|
83
|
+
"./plugin": {
|
|
84
|
+
"source": "./src/plugin.ts",
|
|
85
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
86
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
52
87
|
},
|
|
53
88
|
"./testing": {
|
|
54
89
|
"source": "./src/testing/index.ts",
|
|
55
90
|
"types": "./dist/types/src/testing/index.d.ts",
|
|
56
|
-
"
|
|
57
|
-
|
|
91
|
+
"default": "./dist/lib/neutral/testing/index.mjs"
|
|
92
|
+
},
|
|
93
|
+
"./translations": {
|
|
94
|
+
"source": "./src/translations.ts",
|
|
95
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
96
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
58
97
|
}
|
|
59
98
|
},
|
|
60
99
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -65,33 +104,37 @@
|
|
|
65
104
|
"dependencies": {
|
|
66
105
|
"@effect/cli": "0.73.2",
|
|
67
106
|
"@effect/platform": "0.94.4",
|
|
68
|
-
"@tauri-apps/api": "^2.8.0",
|
|
69
107
|
"effect": "3.20.0",
|
|
70
108
|
"react-qr-rounded": "^1.0.0",
|
|
71
109
|
"yaml": "^2.8.2",
|
|
72
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/client": "0.8.4-main.
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/
|
|
110
|
+
"@dxos/app-framework": "0.8.4-main.4668b7de9b",
|
|
111
|
+
"@dxos/cli-util": "0.8.4-main.4668b7de9b",
|
|
112
|
+
"@dxos/app-toolkit": "0.8.4-main.4668b7de9b",
|
|
113
|
+
"@dxos/client": "0.8.4-main.4668b7de9b",
|
|
114
|
+
"@dxos/client-protocol": "0.8.4-main.4668b7de9b",
|
|
115
|
+
"@dxos/async": "0.8.4-main.4668b7de9b",
|
|
116
|
+
"@dxos/compute": "0.8.4-main.4668b7de9b",
|
|
117
|
+
"@dxos/client-services": "0.8.4-main.4668b7de9b",
|
|
118
|
+
"@dxos/config": "0.8.4-main.4668b7de9b",
|
|
119
|
+
"@dxos/context": "0.8.4-main.4668b7de9b",
|
|
120
|
+
"@dxos/credentials": "0.8.4-main.4668b7de9b",
|
|
121
|
+
"@dxos/echo-db": "0.8.4-main.4668b7de9b",
|
|
122
|
+
"@dxos/echo": "0.8.4-main.4668b7de9b",
|
|
123
|
+
"@dxos/echo-protocol": "0.8.4-main.4668b7de9b",
|
|
124
|
+
"@dxos/edge-client": "0.8.4-main.4668b7de9b",
|
|
125
|
+
"@dxos/effect": "0.8.4-main.4668b7de9b",
|
|
126
|
+
"@dxos/functions": "0.8.4-main.4668b7de9b",
|
|
127
|
+
"@dxos/invariant": "0.8.4-main.4668b7de9b",
|
|
128
|
+
"@dxos/plugin-graph": "0.8.4-main.4668b7de9b",
|
|
129
|
+
"@dxos/log": "0.8.4-main.4668b7de9b",
|
|
130
|
+
"@dxos/plugin-observability": "0.8.4-main.4668b7de9b",
|
|
131
|
+
"@dxos/keys": "0.8.4-main.4668b7de9b",
|
|
132
|
+
"@dxos/react-client": "0.8.4-main.4668b7de9b",
|
|
133
|
+
"@dxos/protocols": "0.8.4-main.4668b7de9b",
|
|
134
|
+
"@dxos/react-ui-form": "0.8.4-main.4668b7de9b",
|
|
135
|
+
"@dxos/react-ui-pickers": "0.8.4-main.4668b7de9b",
|
|
136
|
+
"@dxos/util": "0.8.4-main.4668b7de9b",
|
|
137
|
+
"@dxos/shell": "0.8.4-main.4668b7de9b"
|
|
95
138
|
},
|
|
96
139
|
"devDependencies": {
|
|
97
140
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -101,11 +144,11 @@
|
|
|
101
144
|
"@types/react-dom": "~19.2.3",
|
|
102
145
|
"react": "~19.2.3",
|
|
103
146
|
"react-dom": "~19.2.3",
|
|
104
|
-
"vite": "^
|
|
105
|
-
"@dxos/plugin-testing": "0.8.4-main.
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/ui
|
|
147
|
+
"vite": "^8.0.14",
|
|
148
|
+
"@dxos/plugin-testing": "0.8.4-main.4668b7de9b",
|
|
149
|
+
"@dxos/storybook-utils": "0.8.4-main.4668b7de9b",
|
|
150
|
+
"@dxos/ui-theme": "0.8.4-main.4668b7de9b",
|
|
151
|
+
"@dxos/react-ui": "0.8.4-main.4668b7de9b"
|
|
109
152
|
},
|
|
110
153
|
"peerDependencies": {
|
|
111
154
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -113,8 +156,8 @@
|
|
|
113
156
|
"effect": "3.20.0",
|
|
114
157
|
"react": "~19.2.3",
|
|
115
158
|
"react-dom": "~19.2.3",
|
|
116
|
-
"@dxos/ui
|
|
117
|
-
"@dxos/
|
|
159
|
+
"@dxos/react-ui": "0.8.4-main.4668b7de9b",
|
|
160
|
+
"@dxos/ui-theme": "0.8.4-main.4668b7de9b"
|
|
118
161
|
},
|
|
119
162
|
"publishConfig": {
|
|
120
163
|
"access": "public"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
6
6
|
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
7
7
|
|
|
8
|
-
import { Client, OperationHandler, SchemaDefs } from '#capabilities';
|
|
8
|
+
import { Client, LayerSpecs, Migrations, OperationHandler, SchemaDefs } from '#capabilities';
|
|
9
9
|
import { meta } from '#meta';
|
|
10
10
|
import { ClientEvents } from '#types';
|
|
11
11
|
import { type ClientPluginOptions } from '#types';
|
|
@@ -27,5 +27,16 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
|
27
27
|
firesBeforeActivation: [AppActivationEvents.SetupSchema],
|
|
28
28
|
activate: SchemaDefs,
|
|
29
29
|
}),
|
|
30
|
+
Plugin.addModule({
|
|
31
|
+
activatesOn: ClientEvents.ClientReady,
|
|
32
|
+
firesBeforeActivation: [ClientEvents.SetupMigration],
|
|
33
|
+
activate: Migrations,
|
|
34
|
+
}),
|
|
35
|
+
Plugin.addModule({
|
|
36
|
+
activatesOn: ActivationEvents.SetupProcessManager,
|
|
37
|
+
activate: LayerSpecs,
|
|
38
|
+
}),
|
|
30
39
|
Plugin.make,
|
|
31
40
|
);
|
|
41
|
+
|
|
42
|
+
export default ClientPlugin;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, test } from 'vitest';
|
|
6
|
+
|
|
7
|
+
import { ActivationEvents } from '@dxos/app-framework';
|
|
8
|
+
// #plugin resolves to ClientPlugin.node.ts under the source condition used by vitest.
|
|
9
|
+
import { ClientPlugin } from '@dxos/plugin-client/plugin';
|
|
10
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
11
|
+
|
|
12
|
+
import { meta } from './meta';
|
|
13
|
+
|
|
14
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
15
|
+
|
|
16
|
+
describe('ClientPlugin', () => {
|
|
17
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
18
|
+
await using harness = await createComposerTestApp({
|
|
19
|
+
plugins: [ClientPlugin({})],
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
// The CLI variant activates Client and SchemaDefs on startup.
|
|
23
|
+
expect(harness.manager.getActive()).toEqual(expect.arrayContaining([moduleId('Client'), moduleId('SchemaDefs')]));
|
|
24
|
+
|
|
25
|
+
// Operation handlers are not loaded on startup — SetupProcessManager fires lazily when an operation is invoked.
|
|
26
|
+
await harness.fire(ActivationEvents.SetupProcessManager);
|
|
27
|
+
expect(harness.manager.getActive()).toContain(moduleId('OperationHandler'));
|
|
28
|
+
});
|
|
29
|
+
});
|
package/src/ClientPlugin.ts
CHANGED
|
@@ -6,8 +6,11 @@ import { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app
|
|
|
6
6
|
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
|
+
AccountCache,
|
|
9
10
|
AppGraphBuilder,
|
|
10
11
|
Client,
|
|
12
|
+
HubHttpClient,
|
|
13
|
+
LayerSpecs,
|
|
11
14
|
Migrations,
|
|
12
15
|
NavigationHandler,
|
|
13
16
|
OperationHandler,
|
|
@@ -16,11 +19,10 @@ import {
|
|
|
16
19
|
SchemaDefs,
|
|
17
20
|
} from '#capabilities';
|
|
18
21
|
import { meta } from '#meta';
|
|
22
|
+
import { translations } from '#translations';
|
|
19
23
|
import { ClientEvents } from '#types';
|
|
20
24
|
import { type ClientPluginOptions } from '#types';
|
|
21
25
|
|
|
22
|
-
import { translations } from './translations';
|
|
23
|
-
|
|
24
26
|
export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
25
27
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
26
28
|
AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
|
|
@@ -37,6 +39,14 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
|
37
39
|
activate: () => Client(options),
|
|
38
40
|
};
|
|
39
41
|
}),
|
|
42
|
+
Plugin.addModule({
|
|
43
|
+
activatesOn: ClientEvents.ClientReady,
|
|
44
|
+
activate: AccountCache,
|
|
45
|
+
}),
|
|
46
|
+
Plugin.addModule({
|
|
47
|
+
activatesOn: ClientEvents.ClientReady,
|
|
48
|
+
activate: HubHttpClient,
|
|
49
|
+
}),
|
|
40
50
|
Plugin.addModule({
|
|
41
51
|
activatesOn: ClientEvents.ClientReady,
|
|
42
52
|
firesBeforeActivation: [AppActivationEvents.SetupSchema],
|
|
@@ -47,6 +57,10 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
|
47
57
|
firesBeforeActivation: [ClientEvents.SetupMigration],
|
|
48
58
|
activate: Migrations,
|
|
49
59
|
}),
|
|
60
|
+
Plugin.addModule({
|
|
61
|
+
activatesOn: ActivationEvents.SetupProcessManager,
|
|
62
|
+
activate: LayerSpecs,
|
|
63
|
+
}),
|
|
50
64
|
Plugin.addModule(
|
|
51
65
|
({
|
|
52
66
|
shareableLinkOrigin = typeof window !== 'undefined' ? window.location.origin : 'http://localhost',
|
|
@@ -69,3 +83,5 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
|
69
83
|
),
|
|
70
84
|
Plugin.make,
|
|
71
85
|
);
|
|
86
|
+
|
|
87
|
+
export default ClientPlugin;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
|
|
8
|
+
import { OperationHandler } from '#capabilities';
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
|
|
11
|
+
export const ClientPlugin = Plugin.define(meta).pipe(
|
|
12
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
13
|
+
Plugin.make,
|
|
14
|
+
);
|
|
15
|
+
|
|
16
|
+
export default ClientPlugin;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { createKvsStore } from '@dxos/effect';
|
|
9
|
+
|
|
10
|
+
import { ClientCapabilities } from '#types';
|
|
11
|
+
|
|
12
|
+
import { AccountCache } from '../state/account-cache';
|
|
13
|
+
|
|
14
|
+
export default Capability.makeModule(() =>
|
|
15
|
+
Effect.succeed(
|
|
16
|
+
Capability.contributes(
|
|
17
|
+
ClientCapabilities.AccountCache,
|
|
18
|
+
createKvsStore<AccountCache>({
|
|
19
|
+
key: 'composer.account',
|
|
20
|
+
schema: AccountCache,
|
|
21
|
+
defaultValue: () => ({}),
|
|
22
|
+
}),
|
|
23
|
+
),
|
|
24
|
+
),
|
|
25
|
+
);
|
|
@@ -6,7 +6,7 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
-
import { Operation } from '@dxos/
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
10
10
|
import { CreateAtom, GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
11
|
import { ConnectionState } from '@dxos/react-client/mesh';
|
|
12
12
|
|
|
@@ -22,7 +22,7 @@ export default Capability.makeModule(
|
|
|
22
22
|
actions: () =>
|
|
23
23
|
Effect.succeed([
|
|
24
24
|
{
|
|
25
|
-
id: '
|
|
25
|
+
id: 'openUserAccount',
|
|
26
26
|
data: () => Operation.invoke(ClientOperation.ShareIdentity),
|
|
27
27
|
properties: {
|
|
28
28
|
label: ['open-user-account.label', { ns: meta.id }],
|
|
@@ -67,6 +67,15 @@ export default Capability.makeModule(
|
|
|
67
67
|
icon: 'ph--user--regular',
|
|
68
68
|
},
|
|
69
69
|
}),
|
|
70
|
+
Node.make({
|
|
71
|
+
id: Account.Account,
|
|
72
|
+
data: Account.Account,
|
|
73
|
+
type: meta.id,
|
|
74
|
+
properties: {
|
|
75
|
+
label: ['account-panel.label', { ns: meta.id }],
|
|
76
|
+
icon: 'ph--identification-card--regular',
|
|
77
|
+
},
|
|
78
|
+
}),
|
|
70
79
|
Node.make({
|
|
71
80
|
id: Account.Devices,
|
|
72
81
|
data: Account.Devices,
|
|
@@ -86,6 +95,15 @@ export default Capability.makeModule(
|
|
|
86
95
|
icon: 'ph--key--regular',
|
|
87
96
|
},
|
|
88
97
|
}),
|
|
98
|
+
Node.make({
|
|
99
|
+
id: Account.Invitations,
|
|
100
|
+
data: Account.Invitations,
|
|
101
|
+
type: meta.id,
|
|
102
|
+
properties: {
|
|
103
|
+
label: ['invitations-panel.label', { ns: meta.id }],
|
|
104
|
+
icon: 'ph--ticket--regular',
|
|
105
|
+
},
|
|
106
|
+
}),
|
|
89
107
|
],
|
|
90
108
|
}),
|
|
91
109
|
];
|
|
@@ -69,6 +69,7 @@ export default Capability.makeModule(
|
|
|
69
69
|
Capability.contributes(ClientCapabilities.Client, client, () =>
|
|
70
70
|
Effect.gen(function* () {
|
|
71
71
|
log.info('client capability: destroying client');
|
|
72
|
+
// TODO(dmaretskyi): use scope for destroy.
|
|
72
73
|
subscription.unsubscribe();
|
|
73
74
|
yield* Effect.tryPromise(() => client.destroy());
|
|
74
75
|
}),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { HubHttpClient } from '@dxos/edge-client';
|
|
9
|
+
|
|
10
|
+
import { ClientCapabilities } from '#types';
|
|
11
|
+
|
|
12
|
+
export default Capability.makeModule(
|
|
13
|
+
Effect.fnUntraced(function* () {
|
|
14
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
15
|
+
const hubUrl = client.config.values?.runtime?.app?.env?.DX_HUB_URL;
|
|
16
|
+
if (!hubUrl) {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
return Capability.contributes(ClientCapabilities.HubHttpClient, new HubHttpClient(hubUrl));
|
|
20
|
+
}),
|
|
21
|
+
);
|
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
|
+
export const AccountCache = Capability.lazy('AccountCache', () => import('./account-cache'));
|
|
8
9
|
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
10
|
+
export const HubHttpClient = Capability.lazy('HubHttpClient', () => import('./hub-http-client'));
|
|
9
11
|
export const Client = Capability.lazy('Client', () => import('./client'));
|
|
12
|
+
export const LayerSpecs = Capability.lazy<void, Capability.Any[]>('LayerSpecs', () => import('./layer-specs'));
|
|
10
13
|
export const Migrations = Capability.lazy('Migrations', () => import('./migrations'));
|
|
11
14
|
export { NavigationHandler } from './navigation-handler';
|
|
12
15
|
export type { NavigationHandlerOptions } from './navigation-handler';
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Layer from 'effect/Layer';
|
|
7
|
+
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { ClientService } from '@dxos/client';
|
|
10
|
+
import { Credential, LayerSpec } from '@dxos/compute';
|
|
11
|
+
import { Database, Feed } from '@dxos/echo';
|
|
12
|
+
import { createFeedServiceLayer } from '@dxos/echo-db';
|
|
13
|
+
import { credentialsLayerFromDatabase } from '@dxos/functions';
|
|
14
|
+
import { invariant } from '@dxos/invariant';
|
|
15
|
+
|
|
16
|
+
import { ClientCapabilities } from '#types';
|
|
17
|
+
|
|
18
|
+
//
|
|
19
|
+
// Capability Module
|
|
20
|
+
//
|
|
21
|
+
// Contributes the core client/space service layer specs:
|
|
22
|
+
// - {@link ClientService} (application affinity).
|
|
23
|
+
// - {@link Database.Service}, {@link Feed.FeedService},
|
|
24
|
+
// {@link Credential.CredentialsService} (space affinity).
|
|
25
|
+
//
|
|
26
|
+
// Specs are declared at module level and resolve the underlying
|
|
27
|
+
// {@link ClientCapabilities.Client} through the Effect layer graph (via
|
|
28
|
+
// {@link Capability.Service}) rather than capturing it from an outer scope.
|
|
29
|
+
//
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Provides the Effect-level {@link ClientService} backed by the
|
|
33
|
+
* {@link ClientCapabilities.Client} capability contributed by the plugin
|
|
34
|
+
* runtime.
|
|
35
|
+
*/
|
|
36
|
+
const ClientLayerSpec = LayerSpec.make(
|
|
37
|
+
{
|
|
38
|
+
affinity: 'application',
|
|
39
|
+
requires: [Capability.Service],
|
|
40
|
+
provides: [ClientService],
|
|
41
|
+
},
|
|
42
|
+
() =>
|
|
43
|
+
Layer.unwrapEffect(
|
|
44
|
+
Effect.gen(function* () {
|
|
45
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
46
|
+
return ClientService.fromClient(client);
|
|
47
|
+
}).pipe(Effect.orDie),
|
|
48
|
+
),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Space-scoped database/feed services resolved from the `Client`'s space
|
|
53
|
+
* registry. One spec for both so the `client.spaces.get` / `waitUntilReady`
|
|
54
|
+
* round-trip only happens once per space slice. Fails hard if the context is
|
|
55
|
+
* missing a `space` id or the client cannot resolve it — both indicate a
|
|
56
|
+
* configuration bug in the layer graph.
|
|
57
|
+
*/
|
|
58
|
+
const DatabaseLayerSpec = LayerSpec.make(
|
|
59
|
+
{
|
|
60
|
+
affinity: 'space',
|
|
61
|
+
requires: [ClientService],
|
|
62
|
+
provides: [Database.Service, Feed.FeedService],
|
|
63
|
+
},
|
|
64
|
+
(context) =>
|
|
65
|
+
Layer.unwrapEffect(
|
|
66
|
+
Effect.gen(function* () {
|
|
67
|
+
invariant(context.space, 'space context required for Database layer');
|
|
68
|
+
const client = yield* ClientService;
|
|
69
|
+
const space = client.spaces.get(context.space);
|
|
70
|
+
invariant(space, `space not found on client: ${context.space}`);
|
|
71
|
+
yield* Effect.promise(() => space.waitUntilReady());
|
|
72
|
+
return Layer.mergeAll(Database.layer(space.db), createFeedServiceLayer(space.queues));
|
|
73
|
+
}),
|
|
74
|
+
),
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
const CredentialsLayerSpec = LayerSpec.make(
|
|
78
|
+
{
|
|
79
|
+
affinity: 'space',
|
|
80
|
+
requires: [Database.Service],
|
|
81
|
+
provides: [Credential.CredentialsService],
|
|
82
|
+
},
|
|
83
|
+
() => credentialsLayerFromDatabase(),
|
|
84
|
+
);
|
|
85
|
+
|
|
86
|
+
export default Capability.makeModule(() =>
|
|
87
|
+
Effect.succeed([
|
|
88
|
+
Capability.contributes(Capabilities.LayerSpec, ClientLayerSpec),
|
|
89
|
+
Capability.contributes(Capabilities.LayerSpec, DatabaseLayerSpec),
|
|
90
|
+
Capability.contributes(Capabilities.LayerSpec, CredentialsLayerSpec),
|
|
91
|
+
]),
|
|
92
|
+
);
|
|
@@ -6,8 +6,8 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
9
10
|
import { log } from '@dxos/log';
|
|
10
|
-
import { Operation } from '@dxos/operation';
|
|
11
11
|
|
|
12
12
|
import { ClientOperation } from '../../operations';
|
|
13
13
|
|
package/src/capabilities/node.ts
CHANGED
|
@@ -3,9 +3,17 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
|
+
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
8
9
|
export const Client = Capability.lazy('Client', () => import('./client'));
|
|
10
|
+
export const LayerSpecs = Capability.lazy<void, Capability.Any[]>('LayerSpecs', () => import('./layer-specs'));
|
|
11
|
+
export const Migrations = Capability.lazy('Migrations', () => import('./migrations'));
|
|
12
|
+
export const NavigationHandler = Capability.lazy(
|
|
13
|
+
'NavigationHandler',
|
|
14
|
+
() => import('./navigation-handler/navigation-handler'),
|
|
15
|
+
);
|
|
16
|
+
export type { NavigationHandlerOptions } from './navigation-handler';
|
|
9
17
|
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
10
18
|
'OperationHandler',
|
|
11
19
|
() => import('./operation-handler'),
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
-
import type { OperationHandlerSet } from '@dxos/
|
|
8
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
9
9
|
|
|
10
10
|
import { ClientOperationHandlerSet } from '#operations';
|
|
11
11
|
|
|
@@ -10,7 +10,9 @@ import { Surface } from '@dxos/app-framework/ui';
|
|
|
10
10
|
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
11
11
|
|
|
12
12
|
import {
|
|
13
|
+
AccountContainer,
|
|
13
14
|
DevicesContainer,
|
|
15
|
+
InvitationsContainer,
|
|
14
16
|
JoinDialog,
|
|
15
17
|
ProfileContainer,
|
|
16
18
|
RecoveryCodeDialog,
|
|
@@ -45,6 +47,16 @@ export default Capability.makeModule(
|
|
|
45
47
|
filter: AppSurface.literal(AppSurface.Article, Account.Security),
|
|
46
48
|
component: () => <RecoveryCredentialsContainer />,
|
|
47
49
|
}),
|
|
50
|
+
Surface.create({
|
|
51
|
+
id: Account.Account,
|
|
52
|
+
filter: AppSurface.literal(AppSurface.Article, Account.Account),
|
|
53
|
+
component: () => <AccountContainer />,
|
|
54
|
+
}),
|
|
55
|
+
Surface.create({
|
|
56
|
+
id: Account.Invitations,
|
|
57
|
+
filter: AppSurface.literal(AppSurface.Article, Account.Invitations),
|
|
58
|
+
component: () => <InvitationsContainer />,
|
|
59
|
+
}),
|
|
48
60
|
Surface.create({
|
|
49
61
|
id: JOIN_DIALOG,
|
|
50
62
|
filter: AppSurface.component<ComponentProps<typeof JoinDialog>>(AppSurface.Dialog, JOIN_DIALOG),
|