@dxos/plugin-client 0.8.4-main.b97322e → 0.8.4-main.bc2380dfbc
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/ClientPlugin.mjs +10 -0
- package/dist/lib/neutral/ClientPlugin.node.mjs +1029 -0
- 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/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-VXOIHJXP.mjs +54 -0
- package/dist/lib/neutral/ResetDialog-VXOIHJXP.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-IK34U2RQ.mjs +117 -0
- package/dist/lib/neutral/app-graph-builder-IK34U2RQ.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +28 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/node.mjs +13 -0
- package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
- package/dist/lib/neutral/chunk-IYPUD3DP.mjs +62 -0
- package/dist/lib/neutral/chunk-IYPUD3DP.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-JVKCYW5O.mjs +8 -0
- package/dist/lib/neutral/chunk-JVKCYW5O.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KJGNSH3K.mjs +18 -0
- package/dist/lib/neutral/chunk-KJGNSH3K.mjs.map +7 -0
- package/dist/lib/{node-esm/chunk-5V3RCXZV.mjs → neutral/chunk-M37DHX5L.mjs} +37 -17
- package/dist/lib/neutral/chunk-M37DHX5L.mjs.map +7 -0
- package/dist/lib/neutral/chunk-RPMM5NKJ.mjs +175 -0
- package/dist/lib/neutral/chunk-RPMM5NKJ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VAIJSQYA.mjs +12 -0
- package/dist/lib/neutral/chunk-VAIJSQYA.mjs.map +7 -0
- package/dist/lib/neutral/client-7JBIGMTX.mjs +62 -0
- package/dist/lib/neutral/client-7JBIGMTX.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +1 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +19 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-agent-JV3EM3TV.mjs +26 -0
- package/dist/lib/neutral/create-agent-JV3EM3TV.mjs.map +7 -0
- package/dist/lib/neutral/create-identity-GNGOTH6D.mjs +30 -0
- package/dist/lib/neutral/create-identity-GNGOTH6D.mjs.map +7 -0
- package/dist/lib/neutral/create-passkey-NCP4XA7C.mjs +81 -0
- package/dist/lib/neutral/create-passkey-NCP4XA7C.mjs.map +7 -0
- package/dist/lib/neutral/create-recovery-code-L5LA3GAP.mjs +36 -0
- package/dist/lib/neutral/create-recovery-code-L5LA3GAP.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +23 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/join-identity-3W6PJLKN.mjs +27 -0
- package/dist/lib/neutral/join-identity-3W6PJLKN.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -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-TA4S74CF.mjs +46 -0
- package/dist/lib/neutral/navigation-handler-TA4S74CF.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-VSBYVQL7.mjs +60 -0
- package/dist/lib/neutral/react-surface-VSBYVQL7.mjs.map +7 -0
- package/dist/lib/neutral/recover-identity-KL6QY4GI.mjs +26 -0
- package/dist/lib/neutral/recover-identity-KL6QY4GI.mjs.map +7 -0
- package/dist/lib/neutral/redeem-passkey-NDEWSJTM.mjs +66 -0
- package/dist/lib/neutral/redeem-passkey-NDEWSJTM.mjs.map +7 -0
- package/dist/lib/neutral/redeem-token-YLWAVFXD.mjs +29 -0
- package/dist/lib/neutral/redeem-token-YLWAVFXD.mjs.map +7 -0
- package/dist/lib/neutral/reset-storage-OBHEGA6Z.mjs +26 -0
- package/dist/lib/neutral/reset-storage-OBHEGA6Z.mjs.map +7 -0
- package/dist/lib/neutral/schema-defs-6XJAJAQT.mjs +51 -0
- package/dist/lib/neutral/schema-defs-6XJAJAQT.mjs.map +7 -0
- package/dist/lib/neutral/share-identity-JQ5SL3J2.mjs +31 -0
- package/dist/lib/neutral/share-identity-JQ5SL3J2.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +26 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +74 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +14 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/ClientPlugin.d.ts +4 -2
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/ClientPlugin.node.d.ts +5 -0
- 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/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/commands/config/index.d.ts +5 -0
- package/dist/types/src/commands/config/index.d.ts.map +1 -0
- package/dist/types/src/commands/config/view.d.ts +5 -0
- package/dist/types/src/commands/config/view.d.ts.map +1 -0
- package/dist/types/src/commands/device/index.d.ts +7 -0
- package/dist/types/src/commands/device/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/index.d.ts +2 -0
- package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/info.d.ts +7 -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 +2 -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 +2 -0
- package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/list.d.ts +7 -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 +2 -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 +2 -0
- package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/update/update.d.ts +11 -0
- package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
- package/dist/types/src/commands/device/util.d.ts +16 -0
- package/dist/types/src/commands/device/util.d.ts.map +1 -0
- package/dist/types/src/commands/edge/index.d.ts +5 -0
- package/dist/types/src/commands/edge/index.d.ts.map +1 -0
- package/dist/types/src/commands/edge/status.d.ts +7 -0
- package/dist/types/src/commands/edge/status.d.ts.map +1 -0
- package/dist/types/src/commands/halo/create/create.d.ts +15 -0
- package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
- package/dist/types/src/commands/halo/create/create.test.d.ts +2 -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 +2 -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 +13 -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 +2 -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 +12 -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 +2 -0
- package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/list/list.d.ts +19 -0
- 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 +2 -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 +7 -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 +2 -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 +2 -0
- package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/index.d.ts +3 -0
- package/dist/types/src/commands/halo/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/index.d.ts +2 -0
- package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/join.d.ts +8 -0
- package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/join.test.d.ts +2 -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 +2 -0
- package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/keys.d.ts +7 -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 +2 -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 +2 -0
- package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/recover.d.ts +7 -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 +2 -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 +2 -0
- package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/seed/seed.d.ts +7 -0
- package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/index.d.ts +2 -0
- package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/share.d.ts +15 -0
- package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/index.d.ts +2 -0
- package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/update.d.ts +11 -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 +2 -0
- package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/util.d.ts +13 -0
- package/dist/types/src/commands/halo/util.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts +6 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/commands/profile/create.d.ts +10 -0
- package/dist/types/src/commands/profile/create.d.ts.map +1 -0
- package/dist/types/src/commands/profile/delete.d.ts +8 -0
- package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
- package/dist/types/src/commands/profile/import.d.ts +17 -0
- package/dist/types/src/commands/profile/import.d.ts.map +1 -0
- package/dist/types/src/commands/profile/index.d.ts +19 -0
- package/dist/types/src/commands/profile/index.d.ts.map +1 -0
- package/dist/types/src/commands/profile/inspect.d.ts +13 -0
- package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
- package/dist/types/src/commands/profile/list.d.ts +6 -0
- package/dist/types/src/commands/profile/list.d.ts.map +1 -0
- package/dist/types/src/commands/profile/reset.d.ts +8 -0
- package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
- package/dist/types/src/commands/profile/util.d.ts +24 -0
- package/dist/types/src/commands/profile/util.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 +2 -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 +2 -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 +2 -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 +2 -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 +3 -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/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +3 -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 +9 -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 +127 -56
- package/src/ClientPlugin.node.ts +33 -0
- package/src/ClientPlugin.test.ts +29 -0
- package/src/ClientPlugin.ts +59 -65
- package/src/ClientPlugin.workerd.ts +16 -0
- 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 +52 -49
- package/src/capabilities/schema-defs.ts +52 -25
- package/src/commands/config/index.ts +12 -0
- package/src/commands/config/view.ts +29 -0
- package/src/commands/device/index.ts +14 -0
- package/src/commands/device/info/index.ts +5 -0
- package/src/commands/device/info/info.test.ts +28 -0
- package/src/commands/device/info/info.ts +48 -0
- package/src/commands/device/list/index.ts +5 -0
- package/src/commands/device/list/list.test.ts +30 -0
- package/src/commands/device/list/list.ts +28 -0
- package/src/commands/device/update/index.ts +5 -0
- package/src/commands/device/update/update.ts +68 -0
- package/src/commands/device/util.ts +55 -0
- package/src/commands/edge/index.ts +12 -0
- package/src/commands/edge/status.ts +46 -0
- package/src/commands/halo/create/create.test.ts +56 -0
- package/src/commands/halo/create/create.ts +82 -0
- package/src/commands/halo/create/index.ts +5 -0
- package/src/commands/halo/credential/add/add.ts +97 -0
- package/src/commands/halo/credential/add/index.ts +5 -0
- package/src/commands/halo/credential/index.ts +13 -0
- package/src/commands/halo/credential/list/index.ts +5 -0
- package/src/commands/halo/credential/list/list.test.ts +27 -0
- package/src/commands/halo/credential/list/list.ts +115 -0
- package/src/commands/halo/identity/identity.test.ts +40 -0
- package/src/commands/halo/identity/identity.ts +45 -0
- package/src/commands/halo/identity/index.ts +5 -0
- package/src/commands/halo/index.ts +21 -0
- package/src/commands/halo/join/index.ts +5 -0
- package/src/commands/halo/join/join.test.ts +10 -0
- package/src/commands/halo/join/join.ts +87 -0
- package/src/commands/halo/keys/index.ts +5 -0
- package/src/commands/halo/keys/keys.test.ts +29 -0
- package/src/commands/halo/keys/keys.ts +40 -0
- package/src/commands/halo/recover/index.ts +5 -0
- package/src/commands/halo/recover/recover.test.ts +10 -0
- package/src/commands/halo/recover/recover.ts +44 -0
- package/src/commands/halo/seed/index.ts +5 -0
- package/src/commands/halo/seed/seed.ts +36 -0
- package/src/commands/halo/share/index.ts +5 -0
- package/src/commands/halo/share/share.ts +97 -0
- package/src/commands/halo/update/index.ts +5 -0
- package/src/commands/halo/update/update.test.ts +28 -0
- package/src/commands/halo/update/update.ts +67 -0
- package/src/commands/halo/util.ts +18 -0
- package/src/commands/index.ts +9 -0
- package/src/commands/profile/create.ts +90 -0
- package/src/commands/profile/delete.ts +36 -0
- package/src/commands/profile/import.ts +101 -0
- package/src/commands/profile/index.ts +17 -0
- package/src/commands/profile/inspect.ts +64 -0
- package/src/commands/profile/list.ts +55 -0
- package/src/commands/profile/reset.ts +45 -0
- package/src/commands/profile/util.ts +48 -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 +92 -111
- package/src/containers/DevicesContainer/index.ts +5 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
- package/src/containers/JoinDialog/JoinDialog.tsx +56 -0
- package/src/containers/JoinDialog/index.ts +5 -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 +5 -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 +5 -0
- package/src/containers/ResetDialog/ResetDialog.stories.tsx +73 -0
- package/src/containers/ResetDialog/ResetDialog.tsx +52 -0
- package/src/containers/ResetDialog/index.ts +8 -0
- package/src/containers/index.ts +15 -0
- package/src/index.ts +3 -5
- package/src/meta.ts +9 -5
- package/src/operations/create-agent.ts +26 -0
- package/src/operations/create-identity.ts +29 -0
- package/src/operations/create-passkey.ts +88 -0
- package/src/operations/create-recovery-code.ts +34 -0
- package/src/operations/definitions.ts +107 -0
- package/src/operations/index.ts +20 -0
- package/src/operations/join-identity.ts +28 -0
- package/src/operations/recover-identity.ts +28 -0
- package/src/operations/redeem-passkey.ts +85 -0
- package/src/operations/redeem-token.ts +31 -0
- package/src/operations/reset-storage.ts +27 -0
- package/src/operations/share-identity.ts +26 -0
- package/src/plugin.ts +11 -0
- package/src/testing/index.ts +8 -0
- package/src/testing/initializeIdentity.ts +24 -0
- package/src/translations.ts +57 -44
- 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 +0 -110
- 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/index.mjs +0 -152
- package/dist/lib/browser/index.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/meta.json +0 -1
- 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/browser/types/index.mjs +0 -10
- 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/index.mjs +0 -153
- package/dist/lib/node-esm/index.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/meta.json +0 -1
- 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/lib/node-esm/types/index.mjs +0 -11
- 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/lib/{browser/types/index.mjs.map → neutral/ClientPlugin.mjs.map} +0 -0
- /package/dist/lib/{node-esm/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /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,83 +1,154 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-client",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.bc2380dfbc",
|
|
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
|
-
"
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
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": "./dist/types/src/capabilities/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#capabilities/node": {
|
|
22
|
+
"source": "./src/capabilities/node.ts",
|
|
23
|
+
"types": "./dist/types/src/capabilities/node.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/capabilities/node.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#components": {
|
|
27
|
+
"source": "./src/components/index.ts",
|
|
28
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#containers": {
|
|
32
|
+
"source": "./src/containers/index.ts",
|
|
33
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#meta": {
|
|
37
|
+
"source": "./src/meta.ts",
|
|
38
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
39
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
40
|
+
},
|
|
41
|
+
"#operations": {
|
|
42
|
+
"source": "./src/operations/index.ts",
|
|
43
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
44
|
+
"default": "./dist/lib/neutral/operations/index.mjs"
|
|
45
|
+
},
|
|
46
|
+
"#plugin": {
|
|
47
|
+
"source": {
|
|
48
|
+
"workerd": "./src/ClientPlugin.workerd.ts",
|
|
49
|
+
"node": "./src/ClientPlugin.node.ts",
|
|
50
|
+
"default": "./src/ClientPlugin.ts"
|
|
51
|
+
},
|
|
52
|
+
"types": "./dist/types/src/ClientPlugin.d.ts",
|
|
53
|
+
"workerd": "./dist/lib/neutral/ClientPlugin.workerd.mjs",
|
|
54
|
+
"node": "./dist/lib/neutral/ClientPlugin.node.mjs",
|
|
55
|
+
"default": "./dist/lib/neutral/ClientPlugin.mjs"
|
|
56
|
+
},
|
|
57
|
+
"#testing": {
|
|
58
|
+
"source": "./src/testing/index.ts",
|
|
59
|
+
"types": "./dist/types/src/testing/index.d.ts",
|
|
60
|
+
"default": "./dist/lib/neutral/testing/index.mjs"
|
|
61
|
+
},
|
|
62
|
+
"#translations": {
|
|
63
|
+
"source": "./src/translations.ts",
|
|
64
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
65
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
66
|
+
},
|
|
67
|
+
"#types": {
|
|
68
|
+
"source": "./src/types/index.ts",
|
|
69
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
70
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
11
73
|
"exports": {
|
|
12
74
|
".": {
|
|
75
|
+
"source": "./src/index.ts",
|
|
13
76
|
"types": "./dist/types/src/index.d.ts",
|
|
14
|
-
"
|
|
15
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
77
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
16
78
|
},
|
|
17
|
-
"./
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
79
|
+
"./plugin": {
|
|
80
|
+
"source": "./src/plugin.ts",
|
|
81
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
82
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
83
|
+
},
|
|
84
|
+
"./testing": {
|
|
85
|
+
"source": "./src/testing/index.ts",
|
|
86
|
+
"types": "./dist/types/src/testing/index.d.ts",
|
|
87
|
+
"default": "./dist/lib/neutral/testing/index.mjs"
|
|
88
|
+
},
|
|
89
|
+
"./translations": {
|
|
90
|
+
"source": "./src/translations.ts",
|
|
91
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
92
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
21
93
|
}
|
|
22
94
|
},
|
|
23
95
|
"types": "dist/types/src/index.d.ts",
|
|
24
|
-
"typesVersions": {
|
|
25
|
-
"*": {
|
|
26
|
-
"types": [
|
|
27
|
-
"dist/types/src/types/index.d.ts"
|
|
28
|
-
]
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
96
|
"files": [
|
|
32
97
|
"dist",
|
|
33
98
|
"src"
|
|
34
99
|
],
|
|
35
100
|
"dependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@
|
|
101
|
+
"@effect/cli": "0.73.2",
|
|
102
|
+
"@effect/platform": "0.94.4",
|
|
103
|
+
"@tauri-apps/api": "^2.11.0",
|
|
104
|
+
"effect": "3.20.0",
|
|
38
105
|
"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/
|
|
106
|
+
"yaml": "^2.8.2",
|
|
107
|
+
"@dxos/app-toolkit": "0.8.4-main.bc2380dfbc",
|
|
108
|
+
"@dxos/async": "0.8.4-main.bc2380dfbc",
|
|
109
|
+
"@dxos/app-framework": "0.8.4-main.bc2380dfbc",
|
|
110
|
+
"@dxos/cli-util": "0.8.4-main.bc2380dfbc",
|
|
111
|
+
"@dxos/client": "0.8.4-main.bc2380dfbc",
|
|
112
|
+
"@dxos/client-protocol": "0.8.4-main.bc2380dfbc",
|
|
113
|
+
"@dxos/compute": "0.8.4-main.bc2380dfbc",
|
|
114
|
+
"@dxos/context": "0.8.4-main.bc2380dfbc",
|
|
115
|
+
"@dxos/echo": "0.8.4-main.bc2380dfbc",
|
|
116
|
+
"@dxos/config": "0.8.4-main.bc2380dfbc",
|
|
117
|
+
"@dxos/client-services": "0.8.4-main.bc2380dfbc",
|
|
118
|
+
"@dxos/invariant": "0.8.4-main.bc2380dfbc",
|
|
119
|
+
"@dxos/effect": "0.8.4-main.bc2380dfbc",
|
|
120
|
+
"@dxos/log": "0.8.4-main.bc2380dfbc",
|
|
121
|
+
"@dxos/protocols": "0.8.4-main.bc2380dfbc",
|
|
122
|
+
"@dxos/react-ui-form": "0.8.4-main.bc2380dfbc",
|
|
123
|
+
"@dxos/plugin-graph": "0.8.4-main.bc2380dfbc",
|
|
124
|
+
"@dxos/react-client": "0.8.4-main.bc2380dfbc",
|
|
125
|
+
"@dxos/react-ui-pickers": "0.8.4-main.bc2380dfbc",
|
|
126
|
+
"@dxos/react-ui-stack": "0.8.4-main.bc2380dfbc",
|
|
127
|
+
"@dxos/shell": "0.8.4-main.bc2380dfbc",
|
|
128
|
+
"@dxos/util": "0.8.4-main.bc2380dfbc",
|
|
129
|
+
"@dxos/plugin-observability": "0.8.4-main.bc2380dfbc"
|
|
56
130
|
},
|
|
57
131
|
"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/
|
|
132
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
133
|
+
"@effect/printer": "0.47.0",
|
|
134
|
+
"@effect/printer-ansi": "0.47.0",
|
|
135
|
+
"@types/react": "~19.2.7",
|
|
136
|
+
"@types/react-dom": "~19.2.3",
|
|
137
|
+
"react": "~19.2.3",
|
|
138
|
+
"react-dom": "~19.2.3",
|
|
139
|
+
"vite": "^8.0.13",
|
|
140
|
+
"@dxos/plugin-testing": "0.8.4-main.bc2380dfbc",
|
|
141
|
+
"@dxos/react-ui": "0.8.4-main.bc2380dfbc",
|
|
142
|
+
"@dxos/storybook-utils": "0.8.4-main.bc2380dfbc",
|
|
143
|
+
"@dxos/ui-theme": "0.8.4-main.bc2380dfbc"
|
|
70
144
|
},
|
|
71
145
|
"peerDependencies": {
|
|
72
|
-
"@effect-
|
|
73
|
-
"@effect/platform": "
|
|
74
|
-
"effect": "
|
|
75
|
-
"react": "~
|
|
76
|
-
"react-dom": "~
|
|
77
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
78
|
-
"@dxos/
|
|
79
|
-
},
|
|
80
|
-
"publishConfig": {
|
|
81
|
-
"access": "public"
|
|
146
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
147
|
+
"@effect/platform": "0.94.4",
|
|
148
|
+
"effect": "3.20.0",
|
|
149
|
+
"react": "~19.2.3",
|
|
150
|
+
"react-dom": "~19.2.3",
|
|
151
|
+
"@dxos/react-ui": "0.8.4-main.bc2380dfbc",
|
|
152
|
+
"@dxos/ui-theme": "0.8.4-main.bc2380dfbc"
|
|
82
153
|
}
|
|
83
154
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
|
|
8
|
+
import { Client, OperationHandler, SchemaDefs } from '#capabilities';
|
|
9
|
+
import { meta } from '#meta';
|
|
10
|
+
import { ClientEvents } from '#types';
|
|
11
|
+
import { type ClientPluginOptions } from '#types';
|
|
12
|
+
|
|
13
|
+
import { config, device, edge, halo, profile } from './commands';
|
|
14
|
+
|
|
15
|
+
export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
16
|
+
// TODO(wittjosiah): Could some of these commands make use of operations?
|
|
17
|
+
AppPlugin.addCommandModule({ commands: [config, device, edge, halo, profile] }),
|
|
18
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
19
|
+
Plugin.addModule((options) => ({
|
|
20
|
+
id: Capability.getModuleTag(Client),
|
|
21
|
+
activatesOn: ActivationEvents.Startup,
|
|
22
|
+
firesAfterActivation: [ClientEvents.ClientReady],
|
|
23
|
+
activate: () => Client(options),
|
|
24
|
+
})),
|
|
25
|
+
Plugin.addModule({
|
|
26
|
+
activatesOn: ClientEvents.ClientReady,
|
|
27
|
+
firesBeforeActivation: [AppActivationEvents.SetupSchema],
|
|
28
|
+
activate: SchemaDefs,
|
|
29
|
+
}),
|
|
30
|
+
Plugin.make,
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
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 — SetupOperationHandler fires lazily when an operation is invoked.
|
|
26
|
+
await harness.fire(ActivationEvents.SetupOperationHandler);
|
|
27
|
+
expect(harness.manager.getActive()).toContain(moduleId('OperationHandler'));
|
|
28
|
+
});
|
|
29
|
+
});
|
package/src/ClientPlugin.ts
CHANGED
|
@@ -2,77 +2,71 @@
|
|
|
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';
|
|
6
7
|
|
|
7
8
|
import {
|
|
8
|
-
Client,
|
|
9
9
|
AppGraphBuilder,
|
|
10
|
-
|
|
10
|
+
Client,
|
|
11
11
|
Migrations,
|
|
12
|
+
NavigationHandler,
|
|
13
|
+
OperationHandler,
|
|
12
14
|
ReactContext,
|
|
13
15
|
ReactSurface,
|
|
14
16
|
SchemaDefs,
|
|
15
|
-
} from '
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { type ClientPluginOptions } from '
|
|
17
|
+
} from '#capabilities';
|
|
18
|
+
import { meta } from '#meta';
|
|
19
|
+
import { translations } from '#translations';
|
|
20
|
+
import { ClientEvents } from '#types';
|
|
21
|
+
import { type ClientPluginOptions } from '#types';
|
|
22
|
+
|
|
23
|
+
export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
24
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
25
|
+
AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
|
|
26
|
+
activate: () => NavigationHandler({ invitationProp }),
|
|
27
|
+
})),
|
|
28
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
29
|
+
AppPlugin.addReactContextModule({ activate: ReactContext }),
|
|
30
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
31
|
+
Plugin.addModule((options) => {
|
|
32
|
+
return {
|
|
33
|
+
id: Capability.getModuleTag(Client),
|
|
34
|
+
activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),
|
|
35
|
+
firesAfterActivation: [ClientEvents.ClientReady],
|
|
36
|
+
activate: () => Client(options),
|
|
37
|
+
};
|
|
38
|
+
}),
|
|
39
|
+
Plugin.addModule({
|
|
40
|
+
activatesOn: ClientEvents.ClientReady,
|
|
41
|
+
firesBeforeActivation: [AppActivationEvents.SetupSchema],
|
|
42
|
+
activate: SchemaDefs,
|
|
43
|
+
}),
|
|
44
|
+
Plugin.addModule({
|
|
45
|
+
activatesOn: ClientEvents.ClientReady,
|
|
46
|
+
firesBeforeActivation: [ClientEvents.SetupMigration],
|
|
47
|
+
activate: Migrations,
|
|
48
|
+
}),
|
|
49
|
+
Plugin.addModule(
|
|
50
|
+
({
|
|
51
|
+
shareableLinkOrigin = typeof window !== 'undefined' ? window.location.origin : 'http://localhost',
|
|
52
|
+
invitationPath = '/',
|
|
53
|
+
invitationProp = 'deviceInvitationCode',
|
|
54
|
+
onReset,
|
|
55
|
+
}) => {
|
|
56
|
+
const createInvitationUrl = (invitationCode: string) => {
|
|
57
|
+
const baseUrl = new URL(invitationPath || '/', shareableLinkOrigin);
|
|
58
|
+
baseUrl.searchParams.set(invitationProp, invitationCode);
|
|
59
|
+
return baseUrl.toString();
|
|
60
|
+
};
|
|
20
61
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return baseUrl.toString();
|
|
31
|
-
};
|
|
62
|
+
return {
|
|
63
|
+
id: Capability.getModuleTag(ReactSurface),
|
|
64
|
+
activatesOn: ActivationEvents.SetupReactSurface,
|
|
65
|
+
activate: () => ReactSurface({ createInvitationUrl, onReset }),
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
),
|
|
69
|
+
Plugin.make,
|
|
70
|
+
);
|
|
32
71
|
|
|
33
|
-
|
|
34
|
-
defineModule({
|
|
35
|
-
id: `${meta.id}/module/client`,
|
|
36
|
-
activatesOn: oneOf(Events.Startup, Events.SetupAppGraph),
|
|
37
|
-
activatesAfter: [ClientEvents.ClientReady],
|
|
38
|
-
activate: (context) => Client({ ...options, context }),
|
|
39
|
-
}),
|
|
40
|
-
defineModule({
|
|
41
|
-
id: `${meta.id}/module/schema`,
|
|
42
|
-
activatesOn: ClientEvents.ClientReady,
|
|
43
|
-
activatesBefore: [ClientEvents.SetupSchema],
|
|
44
|
-
activate: SchemaDefs,
|
|
45
|
-
}),
|
|
46
|
-
defineModule({
|
|
47
|
-
id: `${meta.id}/module/migration`,
|
|
48
|
-
activatesOn: ClientEvents.ClientReady,
|
|
49
|
-
activatesBefore: [ClientEvents.SetupMigration],
|
|
50
|
-
activate: Migrations,
|
|
51
|
-
}),
|
|
52
|
-
defineModule({
|
|
53
|
-
id: `${meta.id}/module/react-context`,
|
|
54
|
-
activatesOn: Events.Startup,
|
|
55
|
-
activate: ReactContext,
|
|
56
|
-
}),
|
|
57
|
-
defineModule({
|
|
58
|
-
id: `${meta.id}/module/react-surface`,
|
|
59
|
-
activatesOn: Events.SetupReactSurface,
|
|
60
|
-
activate: () => ReactSurface({ createInvitationUrl, onReset }),
|
|
61
|
-
}),
|
|
62
|
-
defineModule({
|
|
63
|
-
id: `${meta.id}/module/app-graph-builder`,
|
|
64
|
-
activatesOn: Events.SetupAppGraph,
|
|
65
|
-
activate: AppGraphBuilder,
|
|
66
|
-
}),
|
|
67
|
-
defineModule({
|
|
68
|
-
id: `${meta.id}/module/intent-resolver`,
|
|
69
|
-
activatesOn: Events.SetupIntentResolver,
|
|
70
|
-
activate: (context) => IntentResolver({ context }),
|
|
71
|
-
}),
|
|
72
|
-
defineModule({
|
|
73
|
-
id: `${meta.id}/module/translations`,
|
|
74
|
-
activatesOn: Events.SetupTranslations,
|
|
75
|
-
activate: () => contributes(Capabilities.Translations, translations),
|
|
76
|
-
}),
|
|
77
|
-
]);
|
|
78
|
-
};
|
|
72
|
+
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;
|
|
@@ -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/compute';
|
|
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 { Account,
|
|
13
|
+
import { meta } from '#meta';
|
|
14
|
+
import { ClientOperation } from '#operations';
|
|
15
|
+
import { Account, ClientCapabilities } from '#types';
|
|
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: 'root',
|
|
21
|
+
match: NodeMatcher.whenRoot,
|
|
22
|
+
actions: () =>
|
|
23
|
+
Effect.succeed([
|
|
24
|
+
{
|
|
25
|
+
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
|
+
);
|