@dxos/plugin-client 0.8.4-main.b97322e → 0.8.4-main.bcb3aa67d6
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/dist/lib/browser/chunk-ELAYKIQU.mjs +12 -0
- package/dist/lib/browser/chunk-ELAYKIQU.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs +175 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +7 -0
- package/dist/lib/browser/{chunk-RMHBOY3Y.mjs → chunk-WNJRYPGG.mjs} +37 -16
- package/dist/lib/browser/chunk-WNJRYPGG.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +1060 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/create-agent-WXBNGUBQ.mjs +34 -0
- package/dist/lib/browser/create-agent-WXBNGUBQ.mjs.map +7 -0
- package/dist/lib/browser/create-identity-LIE4RCXJ.mjs +30 -0
- package/dist/lib/browser/create-identity-LIE4RCXJ.mjs.map +7 -0
- package/dist/lib/browser/create-passkey-PYZ47DJT.mjs +105 -0
- package/dist/lib/browser/create-passkey-PYZ47DJT.mjs.map +7 -0
- package/dist/lib/browser/create-recovery-code-NSRU3QDJ.mjs +44 -0
- package/dist/lib/browser/create-recovery-code-NSRU3QDJ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +119 -128
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/join-identity-B6DC2VW7.mjs +27 -0
- package/dist/lib/browser/join-identity-B6DC2VW7.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/recover-identity-Z3H4GJ3L.mjs +26 -0
- package/dist/lib/browser/recover-identity-Z3H4GJ3L.mjs.map +7 -0
- package/dist/lib/browser/redeem-passkey-ODK47PIR.mjs +82 -0
- package/dist/lib/browser/redeem-passkey-ODK47PIR.mjs.map +7 -0
- package/dist/lib/browser/redeem-token-OYXEFDM3.mjs +37 -0
- package/dist/lib/browser/redeem-token-OYXEFDM3.mjs.map +7 -0
- package/dist/lib/browser/reset-storage-JAU4CS2U.mjs +26 -0
- package/dist/lib/browser/reset-storage-JAU4CS2U.mjs.map +7 -0
- package/dist/lib/browser/share-identity-H2JNYYCP.mjs +31 -0
- package/dist/lib/browser/share-identity-H2JNYYCP.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +22 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +8 -4
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-5V3RCXZV.mjs → chunk-IT5LAIV3.mjs} +38 -16
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +14 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +176 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +1061 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/create-agent-I7VGTH7O.mjs +35 -0
- package/dist/lib/node-esm/create-agent-I7VGTH7O.mjs.map +7 -0
- package/dist/lib/node-esm/create-identity-NWY3YT5C.mjs +31 -0
- package/dist/lib/node-esm/create-identity-NWY3YT5C.mjs.map +7 -0
- package/dist/lib/node-esm/create-passkey-2LQEEIAN.mjs +106 -0
- package/dist/lib/node-esm/create-passkey-2LQEEIAN.mjs.map +7 -0
- package/dist/lib/node-esm/create-recovery-code-2MVK5CVE.mjs +45 -0
- package/dist/lib/node-esm/create-recovery-code-2MVK5CVE.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +119 -128
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/join-identity-6NT75FSO.mjs +28 -0
- package/dist/lib/node-esm/join-identity-6NT75FSO.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/recover-identity-3UKCQ2M4.mjs +27 -0
- package/dist/lib/node-esm/recover-identity-3UKCQ2M4.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-passkey-TDNEMVJJ.mjs +83 -0
- package/dist/lib/node-esm/redeem-passkey-TDNEMVJJ.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-token-ZBYMFFKM.mjs +38 -0
- package/dist/lib/node-esm/redeem-token-ZBYMFFKM.mjs.map +7 -0
- package/dist/lib/node-esm/reset-storage-NY3ALG72.mjs +27 -0
- package/dist/lib/node-esm/reset-storage-NY3ALG72.mjs.map +7 -0
- package/dist/lib/node-esm/share-identity-FDIZWTDG.mjs +32 -0
- package/dist/lib/node-esm/share-identity-FDIZWTDG.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +23 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +8 -4
- package/dist/types/src/ClientPlugin.d.ts +3 -2
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/client.d.ts +6 -7
- package/dist/types/src/capabilities/client.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +28 -15
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +3 -2
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +15 -0
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/node.d.ts +21 -0
- package/dist/types/src/capabilities/node.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context.d.ts +4 -2
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +4 -3
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/schema-defs.d.ts +3 -2
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
- package/dist/types/src/cli/commands/config/index.d.ts +5 -0
- package/dist/types/src/cli/commands/config/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/view.d.ts +5 -0
- package/dist/types/src/cli/commands/config/view.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/index.d.ts +7 -0
- package/dist/types/src/cli/commands/device/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/info/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/info.d.ts +7 -0
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/info.test.d.ts +2 -0
- package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/list.d.ts +7 -0
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/update/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/update/update.d.ts +11 -0
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/util.d.ts +16 -0
- package/dist/types/src/cli/commands/device/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/edge/index.d.ts +5 -0
- package/dist/types/src/cli/commands/edge/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/edge/status.d.ts +7 -0
- package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/create.d.ts +15 -0
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/create/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts +13 -0
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/index.d.ts +12 -0
- package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +19 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/index.d.ts +3 -0
- package/dist/types/src/cli/commands/halo/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/join/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/join.d.ts +8 -0
- package/dist/types/src/cli/commands/halo/join/join.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/seed/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/share/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/share/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/share/share.d.ts +15 -0
- package/dist/types/src/cli/commands/halo/share/share.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/update.d.ts +11 -0
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/util.d.ts +13 -0
- package/dist/types/src/cli/commands/halo/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/index.d.ts +6 -0
- package/dist/types/src/cli/commands/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/create.d.ts +10 -0
- package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/delete.d.ts +8 -0
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/import.d.ts +17 -0
- package/dist/types/src/cli/commands/profile/import.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/index.d.ts +19 -0
- package/dist/types/src/cli/commands/profile/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/inspect.d.ts +13 -0
- package/dist/types/src/cli/commands/profile/inspect.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/list.d.ts +6 -0
- package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/reset.d.ts +8 -0
- package/dist/types/src/cli/commands/profile/reset.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/util.d.ts +24 -0
- package/dist/types/src/cli/commands/profile/util.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +4 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/cli/testing/test-console.d.ts +37 -0
- package/dist/types/src/cli/testing/test-console.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -6
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +4 -0
- package/dist/types/src/constants.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +184 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/index.d.ts +3 -0
- package/dist/types/src/containers/DevicesContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/JoinDialog}/JoinDialog.d.ts +0 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +15 -0
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/JoinDialog/index.d.ts +3 -0
- package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts +14 -0
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ProfileContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ProfileContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.d.ts +0 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts +16 -0
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts +4 -0
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts +4 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts +14 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts +3 -0
- package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts +9 -0
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -0
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +19 -0
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts +4 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +10 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create-agent.d.ts +5 -0
- package/dist/types/src/operations/create-agent.d.ts.map +1 -0
- package/dist/types/src/operations/create-identity.d.ts +5 -0
- package/dist/types/src/operations/create-identity.d.ts.map +1 -0
- package/dist/types/src/operations/create-passkey.d.ts +5 -0
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
- package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +36 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/join-identity.d.ts +5 -0
- package/dist/types/src/operations/join-identity.d.ts.map +1 -0
- package/dist/types/src/operations/recover-identity.d.ts +5 -0
- package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
- package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-token.d.ts +5 -0
- package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
- package/dist/types/src/operations/reset-storage.d.ts +5 -0
- package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
- package/dist/types/src/operations/share-identity.d.ts +5 -0
- package/dist/types/src/operations/share-identity.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/initializeIdentity.d.ts +13 -0
- package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +2 -48
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +10 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +9 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +41 -30
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +91 -39
- package/src/ClientPlugin.ts +58 -65
- package/src/capabilities/app-graph-builder.ts +87 -103
- package/src/capabilities/client.ts +71 -33
- package/src/capabilities/index.ts +14 -10
- package/src/capabilities/migrations.ts +22 -17
- package/src/capabilities/navigation-handler/index.ts +9 -0
- package/src/capabilities/navigation-handler/navigation-handler.ts +64 -0
- package/src/capabilities/node.ts +13 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-context.tsx +17 -12
- package/src/capabilities/react-surface.tsx +53 -46
- package/src/capabilities/schema-defs.ts +27 -20
- package/src/cli/commands/config/index.ts +12 -0
- package/src/cli/commands/config/view.ts +29 -0
- package/src/cli/commands/device/index.ts +14 -0
- package/src/cli/commands/device/info/index.ts +5 -0
- package/src/cli/commands/device/info/info.test.ts +28 -0
- package/src/cli/commands/device/info/info.ts +48 -0
- package/src/cli/commands/device/list/index.ts +5 -0
- package/src/cli/commands/device/list/list.test.ts +30 -0
- package/src/cli/commands/device/list/list.ts +28 -0
- package/src/cli/commands/device/update/index.ts +5 -0
- package/src/cli/commands/device/update/update.ts +68 -0
- package/src/cli/commands/device/util.ts +55 -0
- package/src/cli/commands/edge/index.ts +12 -0
- package/src/cli/commands/edge/status.ts +46 -0
- package/src/cli/commands/halo/create/create.test.ts +52 -0
- package/src/cli/commands/halo/create/create.ts +82 -0
- package/src/cli/commands/halo/create/index.ts +5 -0
- package/src/cli/commands/halo/credential/add/add.ts +97 -0
- package/src/cli/commands/halo/credential/add/index.ts +5 -0
- package/src/cli/commands/halo/credential/index.ts +13 -0
- package/src/cli/commands/halo/credential/list/index.ts +5 -0
- package/src/cli/commands/halo/credential/list/list.test.ts +27 -0
- package/src/cli/commands/halo/credential/list/list.ts +115 -0
- package/src/cli/commands/halo/identity/identity.test.ts +40 -0
- package/src/cli/commands/halo/identity/identity.ts +45 -0
- package/src/cli/commands/halo/identity/index.ts +5 -0
- package/src/cli/commands/halo/index.ts +21 -0
- package/src/cli/commands/halo/join/index.ts +5 -0
- package/src/cli/commands/halo/join/join.test.ts +10 -0
- package/src/cli/commands/halo/join/join.ts +87 -0
- package/src/cli/commands/halo/keys/index.ts +5 -0
- package/src/cli/commands/halo/keys/keys.test.ts +29 -0
- package/src/cli/commands/halo/keys/keys.ts +40 -0
- package/src/cli/commands/halo/recover/index.ts +5 -0
- package/src/cli/commands/halo/recover/recover.test.ts +10 -0
- package/src/cli/commands/halo/recover/recover.ts +44 -0
- package/src/cli/commands/halo/seed/index.ts +5 -0
- package/src/cli/commands/halo/seed/seed.ts +36 -0
- package/src/cli/commands/halo/share/index.ts +5 -0
- package/src/cli/commands/halo/share/share.ts +97 -0
- package/src/cli/commands/halo/update/index.ts +5 -0
- package/src/cli/commands/halo/update/update.test.ts +28 -0
- package/src/cli/commands/halo/update/update.ts +67 -0
- package/src/cli/commands/halo/util.ts +18 -0
- package/src/cli/commands/index.ts +9 -0
- package/src/cli/commands/profile/create.ts +90 -0
- package/src/cli/commands/profile/delete.ts +36 -0
- package/src/cli/commands/profile/import.ts +101 -0
- package/src/cli/commands/profile/index.ts +17 -0
- package/src/cli/commands/profile/inspect.ts +64 -0
- package/src/cli/commands/profile/list.ts +55 -0
- package/src/cli/commands/profile/reset.ts +45 -0
- package/src/cli/commands/profile/util.ts +48 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +32 -0
- package/src/cli/testing/test-console.ts +88 -0
- package/src/components/index.ts +0 -7
- package/src/constants.ts +9 -0
- package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +52 -0
- package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +93 -112
- package/src/containers/DevicesContainer/index.ts +7 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
- package/src/containers/JoinDialog/JoinDialog.tsx +56 -0
- package/src/containers/JoinDialog/index.ts +7 -0
- package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +28 -0
- package/src/{components → containers/ProfileContainer}/ProfileContainer.tsx +69 -66
- package/src/containers/ProfileContainer/index.ts +7 -0
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.tsx +11 -12
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.tsx +29 -28
- package/src/containers/RecoveryCodeDialog/index.ts +8 -0
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +47 -0
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +66 -0
- package/src/containers/RecoveryCredentialsContainer/index.ts +7 -0
- package/src/containers/ResetDialog/ResetDialog.stories.tsx +73 -0
- package/src/containers/ResetDialog/ResetDialog.tsx +50 -0
- package/src/containers/ResetDialog/index.ts +8 -0
- package/src/containers/index.ts +15 -0
- package/src/index.ts +2 -5
- package/src/meta.ts +8 -5
- package/src/operations/create-agent.ts +27 -0
- package/src/operations/create-identity.ts +30 -0
- package/src/operations/create-passkey.ts +89 -0
- package/src/operations/create-recovery-code.ts +35 -0
- package/src/operations/definitions.ts +107 -0
- package/src/operations/index.ts +20 -0
- package/src/operations/join-identity.ts +29 -0
- package/src/operations/recover-identity.ts +29 -0
- package/src/operations/redeem-passkey.ts +86 -0
- package/src/operations/redeem-token.ts +32 -0
- package/src/operations/reset-storage.ts +28 -0
- package/src/operations/share-identity.ts +27 -0
- package/src/testing/index.ts +5 -0
- package/src/testing/initializeIdentity.ts +24 -0
- package/src/translations.ts +57 -43
- package/src/types/capabilities.ts +16 -0
- package/src/types/events.ts +15 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +29 -21
- package/dist/lib/browser/app-graph-builder-JNIES5L4.mjs +0 -123
- package/dist/lib/browser/app-graph-builder-JNIES5L4.mjs.map +0 -7
- package/dist/lib/browser/chunk-3F2Q2RKC.mjs +0 -18
- package/dist/lib/browser/chunk-3F2Q2RKC.mjs.map +0 -7
- package/dist/lib/browser/chunk-CAF2COXW.mjs +0 -19
- package/dist/lib/browser/chunk-CAF2COXW.mjs.map +0 -7
- package/dist/lib/browser/chunk-GS3LDHYD.mjs +0 -12
- package/dist/lib/browser/chunk-GS3LDHYD.mjs.map +0 -7
- package/dist/lib/browser/chunk-RMHBOY3Y.mjs.map +0 -7
- package/dist/lib/browser/chunk-SV3MHIKI.mjs +0 -695
- package/dist/lib/browser/chunk-SV3MHIKI.mjs.map +0 -7
- package/dist/lib/browser/client-SKVKXPLY.mjs +0 -37
- package/dist/lib/browser/client-SKVKXPLY.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-LNPLD5CA.mjs +0 -305
- package/dist/lib/browser/intent-resolver-LNPLD5CA.mjs.map +0 -7
- package/dist/lib/browser/migrations-D76RCG72.mjs +0 -23
- package/dist/lib/browser/migrations-D76RCG72.mjs.map +0 -7
- package/dist/lib/browser/react-context-YWVPZUMU.mjs +0 -24
- package/dist/lib/browser/react-context-YWVPZUMU.mjs.map +0 -7
- package/dist/lib/browser/react-surface-QFZTDNLS.mjs +0 -66
- package/dist/lib/browser/react-surface-QFZTDNLS.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-HKW6VNZB.mjs +0 -25
- package/dist/lib/browser/schema-defs-HKW6VNZB.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-SWFB4FID.mjs +0 -124
- package/dist/lib/node-esm/app-graph-builder-SWFB4FID.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-5V3RCXZV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-FBYODKEL.mjs +0 -696
- package/dist/lib/node-esm/chunk-FBYODKEL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-IOGTQFLM.mjs +0 -19
- package/dist/lib/node-esm/chunk-IOGTQFLM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SZLX4BVJ.mjs +0 -14
- package/dist/lib/node-esm/chunk-SZLX4BVJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UMO3ETDV.mjs +0 -20
- package/dist/lib/node-esm/chunk-UMO3ETDV.mjs.map +0 -7
- package/dist/lib/node-esm/client-SLL6GDC2.mjs +0 -38
- package/dist/lib/node-esm/client-SLL6GDC2.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-L7C6YRWV.mjs +0 -306
- package/dist/lib/node-esm/intent-resolver-L7C6YRWV.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-YISDI7LF.mjs +0 -24
- package/dist/lib/node-esm/migrations-YISDI7LF.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-EEHS4S3L.mjs +0 -25
- package/dist/lib/node-esm/react-context-EEHS4S3L.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-2K6W37R4.mjs +0 -67
- package/dist/lib/node-esm/react-surface-2K6W37R4.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-5ZNI63RW.mjs +0 -26
- package/dist/lib/node-esm/schema-defs-5ZNI63RW.mjs.map +0 -7
- package/dist/types/src/capabilities/capabilities.d.ts +0 -9
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -8
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/DevicesContainer.d.ts.map +0 -1
- package/dist/types/src/components/DevicesContainer.stories.d.ts +0 -8
- package/dist/types/src/components/DevicesContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +0 -1
- package/dist/types/src/components/ProfileContainer.d.ts.map +0 -1
- package/dist/types/src/components/ProfileContainer.stories.d.ts +0 -8
- package/dist/types/src/components/ProfileContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts +0 -8
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts +0 -4
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts +0 -8
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.d.ts +0 -7
- package/dist/types/src/components/ResetDialog.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.stories.d.ts +0 -10
- package/dist/types/src/components/ResetDialog.stories.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -8
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -18
- package/src/capabilities/intent-resolver.ts +0 -250
- package/src/components/DevicesContainer.stories.tsx +0 -49
- package/src/components/JoinDialog.tsx +0 -53
- package/src/components/ProfileContainer.stories.tsx +0 -29
- package/src/components/RecoveryCredentialsContainer.stories.tsx +0 -44
- package/src/components/RecoveryCredentialsContainer.tsx +0 -73
- package/src/components/ResetDialog.stories.tsx +0 -53
- package/src/components/ResetDialog.tsx +0 -49
- package/src/events.ts +0 -15
- /package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,30 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-client",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.bcb3aa67d6",
|
|
4
4
|
"description": "DXOS Surface plugin for DXOS Client",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"sideEffects": true,
|
|
10
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#capabilities": {
|
|
17
|
+
"source": "./src/capabilities/index.ts",
|
|
18
|
+
"types": "./src/capabilities/index.ts",
|
|
19
|
+
"browser": "./src/capabilities/index.ts",
|
|
20
|
+
"node": "./src/capabilities/node.ts"
|
|
21
|
+
},
|
|
22
|
+
"#components": "./src/components/index.ts",
|
|
23
|
+
"#containers": "./src/containers/index.ts",
|
|
24
|
+
"#meta": "./src/meta.ts",
|
|
25
|
+
"#operations": "./src/operations/index.ts",
|
|
26
|
+
"#testing": "./src/testing/index.ts",
|
|
27
|
+
"#types": "./src/types/index.ts"
|
|
28
|
+
},
|
|
11
29
|
"exports": {
|
|
12
30
|
".": {
|
|
31
|
+
"source": "./src/index.ts",
|
|
13
32
|
"types": "./dist/types/src/index.d.ts",
|
|
14
33
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
34
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
35
|
},
|
|
36
|
+
"./cli": {
|
|
37
|
+
"source": "./src/cli/index.ts",
|
|
38
|
+
"types": "./dist/types/src/cli/index.d.ts",
|
|
39
|
+
"node": "./dist/lib/node-esm/cli/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"./operations": {
|
|
42
|
+
"source": "./src/operations/index.ts",
|
|
43
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
44
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
45
|
+
"node": "./dist/lib/node-esm/operations/index.mjs"
|
|
46
|
+
},
|
|
17
47
|
"./types": {
|
|
48
|
+
"source": "./src/types/index.ts",
|
|
18
49
|
"types": "./dist/types/src/types/index.d.ts",
|
|
19
50
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
20
51
|
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./testing": {
|
|
54
|
+
"source": "./src/testing/index.ts",
|
|
55
|
+
"types": "./dist/types/src/testing/index.d.ts",
|
|
56
|
+
"browser": "./dist/lib/browser/testing/index.mjs",
|
|
57
|
+
"node": "./dist/lib/node-esm/testing/index.mjs"
|
|
21
58
|
}
|
|
22
59
|
},
|
|
23
60
|
"types": "dist/types/src/index.d.ts",
|
|
24
61
|
"typesVersions": {
|
|
25
62
|
"*": {
|
|
63
|
+
"operations": [
|
|
64
|
+
"dist/types/src/operations/index.d.ts"
|
|
65
|
+
],
|
|
26
66
|
"types": [
|
|
27
67
|
"dist/types/src/types/index.d.ts"
|
|
68
|
+
],
|
|
69
|
+
"testing": [
|
|
70
|
+
"dist/types/src/testing/index.d.ts"
|
|
28
71
|
]
|
|
29
72
|
}
|
|
30
73
|
},
|
|
@@ -33,49 +76,58 @@
|
|
|
33
76
|
"src"
|
|
34
77
|
],
|
|
35
78
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
79
|
+
"@effect/cli": "0.73.2",
|
|
80
|
+
"@effect/platform": "0.94.4",
|
|
81
|
+
"@tauri-apps/api": "^2.8.0",
|
|
82
|
+
"effect": "3.20.0",
|
|
38
83
|
"react-qr-rounded": "^1.0.0",
|
|
39
|
-
"
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
84
|
+
"yaml": "^2.8.2",
|
|
85
|
+
"@dxos/app-framework": "0.8.4-main.bcb3aa67d6",
|
|
86
|
+
"@dxos/app-toolkit": "0.8.4-main.bcb3aa67d6",
|
|
87
|
+
"@dxos/async": "0.8.4-main.bcb3aa67d6",
|
|
88
|
+
"@dxos/cli-util": "0.8.4-main.bcb3aa67d6",
|
|
89
|
+
"@dxos/client-protocol": "0.8.4-main.bcb3aa67d6",
|
|
90
|
+
"@dxos/client": "0.8.4-main.bcb3aa67d6",
|
|
91
|
+
"@dxos/client-services": "0.8.4-main.bcb3aa67d6",
|
|
92
|
+
"@dxos/context": "0.8.4-main.bcb3aa67d6",
|
|
93
|
+
"@dxos/config": "0.8.4-main.bcb3aa67d6",
|
|
94
|
+
"@dxos/echo": "0.8.4-main.bcb3aa67d6",
|
|
95
|
+
"@dxos/effect": "0.8.4-main.bcb3aa67d6",
|
|
96
|
+
"@dxos/log": "0.8.4-main.bcb3aa67d6",
|
|
97
|
+
"@dxos/invariant": "0.8.4-main.bcb3aa67d6",
|
|
98
|
+
"@dxos/operation": "0.8.4-main.bcb3aa67d6",
|
|
99
|
+
"@dxos/plugin-graph": "0.8.4-main.bcb3aa67d6",
|
|
100
|
+
"@dxos/protocols": "0.8.4-main.bcb3aa67d6",
|
|
101
|
+
"@dxos/react-client": "0.8.4-main.bcb3aa67d6",
|
|
102
|
+
"@dxos/plugin-observability": "0.8.4-main.bcb3aa67d6",
|
|
103
|
+
"@dxos/react-ui-form": "0.8.4-main.bcb3aa67d6",
|
|
104
|
+
"@dxos/react-ui-stack": "0.8.4-main.bcb3aa67d6",
|
|
105
|
+
"@dxos/react-ui-pickers": "0.8.4-main.bcb3aa67d6",
|
|
106
|
+
"@dxos/shell": "0.8.4-main.bcb3aa67d6",
|
|
107
|
+
"@dxos/util": "0.8.4-main.bcb3aa67d6"
|
|
56
108
|
},
|
|
57
109
|
"devDependencies": {
|
|
58
|
-
"@effect-
|
|
59
|
-
"@effect/
|
|
60
|
-
"@
|
|
61
|
-
"@types/react
|
|
62
|
-
"
|
|
63
|
-
"react": "~
|
|
64
|
-
"react-dom": "~
|
|
65
|
-
"vite": "
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/react-ui
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
110
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
111
|
+
"@effect/printer": "0.47.0",
|
|
112
|
+
"@effect/printer-ansi": "0.47.0",
|
|
113
|
+
"@types/react": "~19.2.7",
|
|
114
|
+
"@types/react-dom": "~19.2.3",
|
|
115
|
+
"react": "~19.2.3",
|
|
116
|
+
"react-dom": "~19.2.3",
|
|
117
|
+
"vite": "^7.1.11",
|
|
118
|
+
"@dxos/plugin-testing": "0.8.4-main.bcb3aa67d6",
|
|
119
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
|
|
120
|
+
"@dxos/storybook-utils": "0.8.4-main.bcb3aa67d6",
|
|
121
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
|
|
70
122
|
},
|
|
71
123
|
"peerDependencies": {
|
|
72
|
-
"@effect-
|
|
73
|
-
"@effect/platform": "
|
|
74
|
-
"effect": "
|
|
75
|
-
"react": "~
|
|
76
|
-
"react-dom": "~
|
|
77
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
78
|
-
"@dxos/
|
|
124
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
125
|
+
"@effect/platform": "0.94.4",
|
|
126
|
+
"effect": "3.20.0",
|
|
127
|
+
"react": "~19.2.3",
|
|
128
|
+
"react-dom": "~19.2.3",
|
|
129
|
+
"@dxos/react-ui": "0.8.4-main.bcb3aa67d6",
|
|
130
|
+
"@dxos/ui-theme": "0.8.4-main.bcb3aa67d6"
|
|
79
131
|
},
|
|
80
132
|
"publishConfig": {
|
|
81
133
|
"access": "public"
|
package/src/ClientPlugin.ts
CHANGED
|
@@ -2,77 +2,70 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
|
|
8
|
+
import { meta } from '#meta';
|
|
9
|
+
import { translations } from './translations';
|
|
10
|
+
import { ClientEvents } from '#types';
|
|
11
|
+
import { type ClientPluginOptions } from '#types';
|
|
6
12
|
|
|
7
13
|
import {
|
|
8
|
-
Client,
|
|
9
14
|
AppGraphBuilder,
|
|
10
|
-
|
|
15
|
+
Client,
|
|
11
16
|
Migrations,
|
|
17
|
+
NavigationHandler,
|
|
18
|
+
OperationHandler,
|
|
12
19
|
ReactContext,
|
|
13
20
|
ReactSurface,
|
|
14
21
|
SchemaDefs,
|
|
15
|
-
} from '
|
|
16
|
-
import { ClientEvents } from './events';
|
|
17
|
-
import { meta } from './meta';
|
|
18
|
-
import { translations } from './translations';
|
|
19
|
-
import { type ClientPluginOptions } from './types';
|
|
20
|
-
|
|
21
|
-
export const ClientPlugin = ({
|
|
22
|
-
invitationUrl = window.location.origin,
|
|
23
|
-
invitationParam = 'deviceInvitationCode',
|
|
24
|
-
onReset,
|
|
25
|
-
...options
|
|
26
|
-
}: ClientPluginOptions) => {
|
|
27
|
-
const createInvitationUrl = (invitationCode: string) => {
|
|
28
|
-
const baseUrl = new URL(invitationUrl);
|
|
29
|
-
baseUrl.searchParams.set(invitationParam, invitationCode);
|
|
30
|
-
return baseUrl.toString();
|
|
31
|
-
};
|
|
22
|
+
} from '#capabilities';
|
|
32
23
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
25
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
26
|
+
AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
|
|
27
|
+
activate: () => NavigationHandler({ invitationProp }),
|
|
28
|
+
})),
|
|
29
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
30
|
+
AppPlugin.addReactContextModule({ activate: ReactContext }),
|
|
31
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
32
|
+
Plugin.addModule((options) => {
|
|
33
|
+
return {
|
|
34
|
+
id: Capability.getModuleTag(Client),
|
|
35
|
+
activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),
|
|
37
36
|
activatesAfter: [ClientEvents.ClientReady],
|
|
38
|
-
activate: (
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
id: `${meta.id}/module/translations`,
|
|
74
|
-
activatesOn: Events.SetupTranslations,
|
|
75
|
-
activate: () => contributes(Capabilities.Translations, translations),
|
|
76
|
-
}),
|
|
77
|
-
]);
|
|
78
|
-
};
|
|
37
|
+
activate: () => Client(options),
|
|
38
|
+
};
|
|
39
|
+
}),
|
|
40
|
+
Plugin.addModule({
|
|
41
|
+
activatesOn: ClientEvents.ClientReady,
|
|
42
|
+
activatesBefore: [AppActivationEvents.SetupSchema],
|
|
43
|
+
activate: SchemaDefs,
|
|
44
|
+
}),
|
|
45
|
+
Plugin.addModule({
|
|
46
|
+
activatesOn: ClientEvents.ClientReady,
|
|
47
|
+
activatesBefore: [ClientEvents.SetupMigration],
|
|
48
|
+
activate: Migrations,
|
|
49
|
+
}),
|
|
50
|
+
Plugin.addModule(
|
|
51
|
+
({
|
|
52
|
+
shareableLinkOrigin = typeof window !== 'undefined' ? window.location.origin : 'http://localhost',
|
|
53
|
+
invitationPath = '/',
|
|
54
|
+
invitationProp = 'deviceInvitationCode',
|
|
55
|
+
onReset,
|
|
56
|
+
}) => {
|
|
57
|
+
const createInvitationUrl = (invitationCode: string) => {
|
|
58
|
+
const baseUrl = new URL(invitationPath || '/', shareableLinkOrigin);
|
|
59
|
+
baseUrl.searchParams.set(invitationProp, invitationCode);
|
|
60
|
+
return baseUrl.toString();
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
id: Capability.getModuleTag(ReactSurface),
|
|
65
|
+
activatesOn: ActivationEvents.SetupReactSurface,
|
|
66
|
+
activate: () => ReactSurface({ createInvitationUrl, onReset }),
|
|
67
|
+
};
|
|
68
|
+
},
|
|
69
|
+
),
|
|
70
|
+
Plugin.make,
|
|
71
|
+
);
|
|
@@ -2,112 +2,96 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
import { Option, pipe } from 'effect';
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
7
6
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/operation';
|
|
10
|
+
import { CreateAtom, GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
11
|
import { ConnectionState } from '@dxos/react-client/mesh';
|
|
12
12
|
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
13
|
+
import { meta } from '#meta';
|
|
14
|
+
import { Account, ClientCapabilities } from '#types';
|
|
15
|
+
import { ClientOperation } from '#operations';
|
|
16
16
|
|
|
17
|
-
export default (
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
actions: (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
];
|
|
48
|
-
}),
|
|
49
|
-
Option.getOrElse(() => []),
|
|
50
|
-
),
|
|
51
|
-
),
|
|
52
|
-
connector: (node) =>
|
|
53
|
-
Rx.make((get) =>
|
|
54
|
-
pipe(
|
|
55
|
-
get(node),
|
|
56
|
-
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
57
|
-
Option.map(() => {
|
|
58
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
59
|
-
const identity = get(rxFromObservable(client.halo.identity));
|
|
60
|
-
const status = get(rxFromObservable(client.mesh.networkStatus));
|
|
17
|
+
export default Capability.makeModule(
|
|
18
|
+
Effect.fnUntraced(function* () {
|
|
19
|
+
const extensions = yield* GraphBuilder.createExtension({
|
|
20
|
+
id: meta.id,
|
|
21
|
+
match: NodeMatcher.whenRoot,
|
|
22
|
+
actions: () =>
|
|
23
|
+
Effect.succeed([
|
|
24
|
+
{
|
|
25
|
+
id: `${meta.id}.open-user-account`,
|
|
26
|
+
data: () => Operation.invoke(ClientOperation.ShareIdentity),
|
|
27
|
+
properties: {
|
|
28
|
+
label: ['open-user-account.label', { ns: meta.id }],
|
|
29
|
+
icon: 'ph--user--regular',
|
|
30
|
+
disposition: 'menu',
|
|
31
|
+
keyBinding: {
|
|
32
|
+
macos: 'meta+shift+.',
|
|
33
|
+
// TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
|
|
34
|
+
windows: 'alt+shift+.',
|
|
35
|
+
linux: 'alt+shift+>',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
]),
|
|
40
|
+
connector: Effect.fnUntraced(function* (node, get) {
|
|
41
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
42
|
+
const identity = get(CreateAtom.fromObservable(client.halo.identity));
|
|
43
|
+
const status = get(CreateAtom.fromObservable(client.mesh.networkStatus));
|
|
61
44
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
id: Account.Security,
|
|
98
|
-
data: Account.Security,
|
|
99
|
-
type: CLIENT_PLUGIN,
|
|
100
|
-
properties: {
|
|
101
|
-
label: ['security label', { ns: CLIENT_PLUGIN }],
|
|
102
|
-
icon: 'ph--key--regular',
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
],
|
|
45
|
+
return [
|
|
46
|
+
Node.make({
|
|
47
|
+
id: Account.id,
|
|
48
|
+
type: meta.id,
|
|
49
|
+
properties: {
|
|
50
|
+
label: ['account.label', { ns: meta.id }],
|
|
51
|
+
icon: 'ph--user--regular',
|
|
52
|
+
disposition: 'user-account',
|
|
53
|
+
testId: 'clientPlugin.account',
|
|
54
|
+
// NOTE: This currently needs to be the identity key because the fallback is generated from hex.
|
|
55
|
+
userId: identity?.identityKey.toHex(),
|
|
56
|
+
hue: identity?.profile?.data?.hue,
|
|
57
|
+
emoji: identity?.profile?.data?.emoji,
|
|
58
|
+
status: status.swarm === ConnectionState.OFFLINE ? 'error' : 'active',
|
|
59
|
+
},
|
|
60
|
+
nodes: [
|
|
61
|
+
Node.make({
|
|
62
|
+
id: Account.Profile,
|
|
63
|
+
data: Account.Profile,
|
|
64
|
+
type: meta.id,
|
|
65
|
+
properties: {
|
|
66
|
+
label: ['profile.label', { ns: meta.id }],
|
|
67
|
+
icon: 'ph--user--regular',
|
|
68
|
+
},
|
|
69
|
+
}),
|
|
70
|
+
Node.make({
|
|
71
|
+
id: Account.Devices,
|
|
72
|
+
data: Account.Devices,
|
|
73
|
+
type: meta.id,
|
|
74
|
+
properties: {
|
|
75
|
+
label: ['devices.label', { ns: meta.id }],
|
|
76
|
+
icon: 'ph--devices--regular',
|
|
77
|
+
testId: 'clientPlugin.devices',
|
|
106
78
|
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
79
|
+
}),
|
|
80
|
+
Node.make({
|
|
81
|
+
id: Account.Security,
|
|
82
|
+
data: Account.Security,
|
|
83
|
+
type: meta.id,
|
|
84
|
+
properties: {
|
|
85
|
+
label: ['security.label', { ns: meta.id }],
|
|
86
|
+
icon: 'ph--key--regular',
|
|
87
|
+
},
|
|
88
|
+
}),
|
|
89
|
+
],
|
|
90
|
+
}),
|
|
91
|
+
];
|
|
92
|
+
}),
|
|
93
|
+
});
|
|
94
|
+
|
|
95
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
96
|
+
}),
|
|
97
|
+
);
|
|
@@ -2,40 +2,78 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capabilities, Capability, Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { Client, ClientService } from '@dxos/client';
|
|
9
|
+
import { runAndForwardErrors } from '@dxos/effect';
|
|
10
|
+
import { log } from '@dxos/log';
|
|
11
|
+
|
|
12
|
+
import { ClientEvents } from '#types';
|
|
13
|
+
import { ClientCapabilities, type ClientPluginOptions } from '#types';
|
|
14
|
+
|
|
15
|
+
type ClientCapabilityOptions = Omit<
|
|
16
|
+
ClientPluginOptions,
|
|
17
|
+
'appKey' | 'shareableLinkOrigin' | 'invitationPath' | 'invitationParam' | 'onReset'
|
|
18
|
+
>;
|
|
19
|
+
|
|
20
|
+
export default Capability.makeModule(
|
|
21
|
+
Effect.fnUntraced(function* ({ onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) {
|
|
22
|
+
const capabilityManager = yield* Capability.Service;
|
|
23
|
+
const pluginManager = yield* Plugin.Service;
|
|
24
|
+
|
|
25
|
+
log('creating client');
|
|
26
|
+
const client = new Client(options);
|
|
27
|
+
log('initializing client (calling client.initialize())...');
|
|
28
|
+
yield* Effect.tryPromise(() => client.initialize());
|
|
29
|
+
log('client.initialize() returned successfully');
|
|
30
|
+
if (onClientInitialized) {
|
|
31
|
+
yield* onClientInitialized({ client }).pipe(
|
|
32
|
+
Effect.provideService(Capability.Service, capabilityManager),
|
|
33
|
+
Effect.provideService(Plugin.Service, pluginManager),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
log('called client initialized callback');
|
|
37
|
+
|
|
38
|
+
// TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.
|
|
39
|
+
client.reloaded.on(() => {
|
|
40
|
+
client.halo.identity.subscribe(async (identity) => {
|
|
41
|
+
if (identity) {
|
|
42
|
+
window.location.href = window.location.origin;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
let spacesReadyFired = false;
|
|
48
|
+
const subscription = client.spaces.subscribe(async () => {
|
|
49
|
+
if (!spacesReadyFired) {
|
|
50
|
+
spacesReadyFired = true;
|
|
51
|
+
await Effect.gen(function* () {
|
|
52
|
+
yield* Plugin.activate(ClientEvents.SpacesReady);
|
|
53
|
+
if (onSpacesReady) {
|
|
54
|
+
yield* onSpacesReady({ client });
|
|
55
|
+
}
|
|
56
|
+
}).pipe(
|
|
57
|
+
Effect.provideService(Capability.Service, capabilityManager),
|
|
58
|
+
Effect.provideService(Plugin.Service, pluginManager),
|
|
59
|
+
runAndForwardErrors,
|
|
60
|
+
);
|
|
26
61
|
}
|
|
27
62
|
});
|
|
28
|
-
});
|
|
29
63
|
|
|
30
|
-
|
|
31
|
-
if (ready) {
|
|
32
|
-
await context.activatePromise(ClientEvents.SpacesReady);
|
|
33
|
-
await onSpacesReady?.(context, client);
|
|
34
|
-
}
|
|
35
|
-
});
|
|
64
|
+
log('client capability ready');
|
|
36
65
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
66
|
+
return [
|
|
67
|
+
// TODO(wittjosiah): Try to remove and prefer layer?
|
|
68
|
+
// Perhaps move to using layer has source of truth and add a getter capability for the client.
|
|
69
|
+
Capability.contributes(ClientCapabilities.Client, client, () =>
|
|
70
|
+
Effect.gen(function* () {
|
|
71
|
+
log.info('client capability: destroying client');
|
|
72
|
+
subscription.unsubscribe();
|
|
73
|
+
yield* Effect.tryPromise(() => client.destroy());
|
|
74
|
+
}),
|
|
75
|
+
),
|
|
76
|
+
Capability.contributes(Capabilities.Layer, ClientService.fromClient(client)),
|
|
77
|
+
];
|
|
78
|
+
}),
|
|
79
|
+
);
|