@dxos/plugin-client 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
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-WNJRYPGG.mjs → chunk-M37DHX5L.mjs} +1 -1
- package/dist/lib/browser/{chunk-WNJRYPGG.mjs.map → chunk-M37DHX5L.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-M43LJQ5U.mjs → chunk-RPMM5NKJ.mjs} +2 -2
- package/dist/lib/browser/chunk-RPMM5NKJ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ELAYKIQU.mjs → chunk-VAIJSQYA.mjs} +1 -1
- package/dist/lib/browser/{chunk-ELAYKIQU.mjs.map → chunk-VAIJSQYA.mjs.map} +2 -2
- package/dist/lib/browser/{create-agent-SS5SE35J.mjs → create-agent-JV3EM3TV.mjs} +5 -13
- package/dist/lib/browser/create-agent-JV3EM3TV.mjs.map +7 -0
- package/dist/lib/browser/{create-identity-PBEUEIPN.mjs → create-identity-ZITQKEVZ.mjs} +4 -4
- package/dist/lib/browser/create-identity-ZITQKEVZ.mjs.map +7 -0
- package/dist/lib/browser/{create-passkey-JN6I5WMM.mjs → create-passkey-NCP4XA7C.mjs} +7 -31
- package/dist/lib/browser/create-passkey-NCP4XA7C.mjs.map +7 -0
- package/dist/lib/browser/{create-recovery-code-32I6IWZC.mjs → create-recovery-code-L5LA3GAP.mjs} +6 -14
- package/dist/lib/browser/create-recovery-code-L5LA3GAP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +7 -127
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/{join-identity-2BP4G2SD.mjs → join-identity-3W6PJLKN.mjs} +4 -4
- package/dist/lib/browser/{join-identity-2BP4G2SD.mjs.map → join-identity-3W6PJLKN.mjs.map} +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +3 -3
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{recover-identity-LS6B5INB.mjs → recover-identity-KL6QY4GI.mjs} +4 -4
- package/dist/lib/browser/{recover-identity-LS6B5INB.mjs.map → recover-identity-KL6QY4GI.mjs.map} +1 -1
- package/dist/lib/browser/{redeem-passkey-OCIV6VCK.mjs → redeem-passkey-NDEWSJTM.mjs} +6 -22
- package/dist/lib/browser/redeem-passkey-NDEWSJTM.mjs.map +7 -0
- package/dist/lib/browser/{redeem-token-6BCRGKV6.mjs → redeem-token-YLWAVFXD.mjs} +5 -13
- package/dist/lib/browser/redeem-token-YLWAVFXD.mjs.map +7 -0
- package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs → reset-storage-OBHEGA6Z.mjs} +4 -4
- package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs.map → reset-storage-OBHEGA6Z.mjs.map} +1 -1
- package/dist/lib/browser/{share-identity-YJEBJTPA.mjs → share-identity-FTFHFSZQ.mjs} +4 -4
- package/dist/lib/browser/{share-identity-YJEBJTPA.mjs.map → share-identity-FTFHFSZQ.mjs.map} +1 -1
- package/dist/lib/browser/testing/index.mjs.map +2 -2
- package/dist/lib/browser/translations.mjs +74 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-SJ6FDER5.mjs → chunk-G77YYPR6.mjs} +2 -2
- package/dist/lib/node-esm/chunk-G77YYPR6.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs → chunk-OHKM7GJW.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs.map → chunk-OHKM7GJW.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs → chunk-UBY7FBQ7.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs.map → chunk-UBY7FBQ7.mjs.map} +2 -2
- package/dist/lib/node-esm/{create-agent-QGEHMHBL.mjs → create-agent-Y4BPVDV7.mjs} +5 -13
- package/dist/lib/node-esm/create-agent-Y4BPVDV7.mjs.map +7 -0
- package/dist/lib/node-esm/{create-identity-EHRJQOO4.mjs → create-identity-367SQSX6.mjs} +4 -4
- package/dist/lib/node-esm/create-identity-367SQSX6.mjs.map +7 -0
- package/dist/lib/node-esm/{create-passkey-PFBHHBEQ.mjs → create-passkey-WMWK2ETT.mjs} +7 -31
- package/dist/lib/node-esm/create-passkey-WMWK2ETT.mjs.map +7 -0
- package/dist/lib/node-esm/{create-recovery-code-HBAM2A72.mjs → create-recovery-code-VJGE5HJL.mjs} +6 -14
- package/dist/lib/node-esm/create-recovery-code-VJGE5HJL.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +7 -127
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs → join-identity-IRIRO2VT.mjs} +4 -4
- package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs.map → join-identity-IRIRO2VT.mjs.map} +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +3 -3
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs → recover-identity-LJCY4BCJ.mjs} +4 -4
- package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs.map → recover-identity-LJCY4BCJ.mjs.map} +1 -1
- package/dist/lib/node-esm/{redeem-passkey-FZO3LZ57.mjs → redeem-passkey-PT7QWFJE.mjs} +6 -22
- package/dist/lib/node-esm/redeem-passkey-PT7QWFJE.mjs.map +7 -0
- package/dist/lib/node-esm/{redeem-token-IHHIAIQ2.mjs → redeem-token-BHKHEXJM.mjs} +5 -13
- package/dist/lib/node-esm/redeem-token-BHKHEXJM.mjs.map +7 -0
- package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs → reset-storage-VPUZJOUV.mjs} +4 -4
- package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs.map → reset-storage-VPUZJOUV.mjs.map} +1 -1
- package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs → share-identity-SZ3REIRC.mjs} +4 -4
- package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs.map → share-identity-SZ3REIRC.mjs.map} +1 -1
- package/dist/lib/node-esm/testing/index.mjs.map +2 -2
- package/dist/lib/node-esm/translations.mjs +75 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/ClientPlugin.d.ts +1 -0
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/{cli/plugin.d.ts → ClientPlugin.node.d.ts} +2 -1
- package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ClientPlugin.test.d.ts +2 -0
- package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/client.d.ts +1 -1
- package/dist/types/src/capabilities/client.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +13 -13
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +13 -13
- package/dist/types/src/capabilities/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
- package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
- package/dist/types/src/commands/config/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
- package/dist/types/src/commands/config/view.d.ts.map +1 -0
- package/dist/types/src/commands/device/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
- package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
- package/dist/types/src/commands/device/util.d.ts.map +1 -0
- package/dist/types/src/commands/edge/index.d.ts.map +1 -0
- package/dist/types/src/commands/edge/status.d.ts.map +1 -0
- package/dist/types/src/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.map +1 -0
- package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +2 -2
- package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
- package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/util.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
- package/dist/types/src/commands/profile/create.d.ts.map +1 -0
- package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
- package/dist/types/src/commands/profile/import.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
- package/dist/types/src/commands/profile/index.d.ts.map +1 -0
- package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
- package/dist/types/src/commands/profile/list.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
- package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
- package/dist/types/src/commands/profile/util.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -165
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-agent.d.ts +1 -1
- package/dist/types/src/operations/create-agent.d.ts.map +1 -1
- package/dist/types/src/operations/create-identity.d.ts +1 -1
- package/dist/types/src/operations/create-identity.d.ts.map +1 -1
- package/dist/types/src/operations/create-passkey.d.ts +1 -1
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
- package/dist/types/src/operations/create-recovery-code.d.ts +1 -1
- package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +1 -1
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/join-identity.d.ts +1 -1
- package/dist/types/src/operations/join-identity.d.ts.map +1 -1
- package/dist/types/src/operations/recover-identity.d.ts +1 -1
- package/dist/types/src/operations/recover-identity.d.ts.map +1 -1
- package/dist/types/src/operations/redeem-passkey.d.ts +1 -1
- package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -1
- package/dist/types/src/operations/redeem-token.d.ts +1 -1
- package/dist/types/src/operations/redeem-token.d.ts.map +1 -1
- package/dist/types/src/operations/reset-storage.d.ts +1 -1
- package/dist/types/src/operations/reset-storage.d.ts.map +1 -1
- package/dist/types/src/operations/share-identity.d.ts +1 -1
- package/dist/types/src/operations/share-identity.d.ts.map +1 -1
- package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +1 -2
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +51 -58
- package/src/{cli/plugin.ts → ClientPlugin.node.ts} +4 -2
- package/src/ClientPlugin.test.ts +29 -0
- package/src/ClientPlugin.ts +6 -5
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
- package/src/capabilities/node.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +13 -16
- package/src/capabilities/schema-defs.ts +29 -9
- package/src/{cli/commands → commands}/halo/create/create.test.ts +8 -3
- package/src/{cli/commands → commands}/halo/create/create.ts +1 -2
- package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +1 -1
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
- package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +2 -1
- package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +2 -1
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +1 -1
- package/src/containers/ResetDialog/ResetDialog.stories.tsx +2 -1
- package/src/index.ts +5 -1
- package/src/operations/create-agent.ts +1 -1
- package/src/operations/create-identity.ts +1 -1
- package/src/operations/create-passkey.ts +1 -1
- package/src/operations/create-recovery-code.ts +1 -1
- package/src/operations/definitions.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/join-identity.ts +1 -1
- package/src/operations/recover-identity.ts +1 -1
- package/src/operations/redeem-passkey.ts +1 -1
- package/src/operations/redeem-token.ts +1 -1
- package/src/operations/reset-storage.ts +1 -1
- package/src/operations/share-identity.ts +1 -1
- package/src/translations.ts +2 -3
- package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs +0 -1060
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +0 -7
- package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +0 -7
- package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +0 -7
- package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +0 -7
- package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +0 -7
- package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -1061
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +0 -7
- package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +0 -7
- package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +0 -7
- package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +0 -7
- package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +0 -7
- package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +0 -7
- package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
- package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/create.d.ts +0 -15
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
- package/dist/types/src/cli/commands/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
- package/dist/types/src/cli/index.d.ts +0 -2
- package/dist/types/src/cli/index.d.ts.map +0 -1
- package/dist/types/src/cli/plugin.d.ts.map +0 -1
- package/dist/types/src/cli/testing/test-console.d.ts +0 -37
- package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
- package/src/cli/index.ts +0 -5
- package/src/cli/testing/test-console.ts +0 -87
- /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
- /package/src/{cli/commands → commands}/config/index.ts +0 -0
- /package/src/{cli/commands → commands}/config/view.ts +0 -0
- /package/src/{cli/commands → commands}/device/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/info.test.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/info.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/list.test.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/list.ts +0 -0
- /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/update/update.ts +0 -0
- /package/src/{cli/commands → commands}/device/util.ts +0 -0
- /package/src/{cli/commands → commands}/edge/index.ts +0 -0
- /package/src/{cli/commands → commands}/edge/status.ts +0 -0
- /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/list.ts +0 -0
- /package/src/{cli/commands → commands}/halo/identity/identity.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/identity/identity.ts +0 -0
- /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/join.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/recover.ts +0 -0
- /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -0
- /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
- /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/update/update.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/update/update.ts +0 -0
- /package/src/{cli/commands → commands}/halo/util.ts +0 -0
- /package/src/{cli/commands → commands}/index.ts +0 -0
- /package/src/{cli/commands → commands}/profile/create.ts +0 -0
- /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
- /package/src/{cli/commands → commands}/profile/import.ts +0 -0
- /package/src/{cli/commands → commands}/profile/index.ts +0 -0
- /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
- /package/src/{cli/commands → commands}/profile/list.ts +0 -0
- /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
- /package/src/{cli/commands → commands}/profile/util.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-client",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.abd8ff62ef",
|
|
4
4
|
"description": "DXOS Surface plugin for DXOS Client",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -14,16 +14,21 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
16
|
"#capabilities": {
|
|
17
|
-
"source": "./src/capabilities/index.ts",
|
|
18
|
-
"types": "./src/capabilities/index.ts",
|
|
19
17
|
"browser": "./src/capabilities/index.ts",
|
|
20
|
-
"node": "./src/capabilities/node.ts"
|
|
18
|
+
"node": "./src/capabilities/node.ts",
|
|
19
|
+
"default": "./src/capabilities/index.ts"
|
|
21
20
|
},
|
|
22
21
|
"#components": "./src/components/index.ts",
|
|
23
22
|
"#containers": "./src/containers/index.ts",
|
|
24
23
|
"#meta": "./src/meta.ts",
|
|
25
24
|
"#operations": "./src/operations/index.ts",
|
|
25
|
+
"#plugin": {
|
|
26
|
+
"browser": "./src/ClientPlugin.ts",
|
|
27
|
+
"node": "./src/ClientPlugin.node.ts",
|
|
28
|
+
"default": "./src/ClientPlugin.ts"
|
|
29
|
+
},
|
|
26
30
|
"#testing": "./src/testing/index.ts",
|
|
31
|
+
"#translations": "./src/translations.ts",
|
|
27
32
|
"#types": "./src/types/index.ts"
|
|
28
33
|
},
|
|
29
34
|
"exports": {
|
|
@@ -33,44 +38,32 @@
|
|
|
33
38
|
"browser": "./dist/lib/browser/index.mjs",
|
|
34
39
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
35
40
|
},
|
|
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
41
|
"./operations": {
|
|
42
42
|
"source": "./src/operations/index.ts",
|
|
43
43
|
"types": "./dist/types/src/operations/index.d.ts",
|
|
44
44
|
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
45
45
|
"node": "./dist/lib/node-esm/operations/index.mjs"
|
|
46
46
|
},
|
|
47
|
-
"./types": {
|
|
48
|
-
"source": "./src/types/index.ts",
|
|
49
|
-
"types": "./dist/types/src/types/index.d.ts",
|
|
50
|
-
"browser": "./dist/lib/browser/types/index.mjs",
|
|
51
|
-
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
52
|
-
},
|
|
53
47
|
"./testing": {
|
|
54
48
|
"source": "./src/testing/index.ts",
|
|
55
49
|
"types": "./dist/types/src/testing/index.d.ts",
|
|
56
50
|
"browser": "./dist/lib/browser/testing/index.mjs",
|
|
57
51
|
"node": "./dist/lib/node-esm/testing/index.mjs"
|
|
52
|
+
},
|
|
53
|
+
"./translations": {
|
|
54
|
+
"source": "./src/translations.ts",
|
|
55
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
56
|
+
"browser": "./dist/lib/browser/translations.mjs",
|
|
57
|
+
"node": "./dist/lib/node-esm/translations.mjs"
|
|
58
|
+
},
|
|
59
|
+
"./types": {
|
|
60
|
+
"source": "./src/types/index.ts",
|
|
61
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
62
|
+
"browser": "./dist/lib/browser/types/index.mjs",
|
|
63
|
+
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
58
64
|
}
|
|
59
65
|
},
|
|
60
66
|
"types": "dist/types/src/index.d.ts",
|
|
61
|
-
"typesVersions": {
|
|
62
|
-
"*": {
|
|
63
|
-
"operations": [
|
|
64
|
-
"dist/types/src/operations/index.d.ts"
|
|
65
|
-
],
|
|
66
|
-
"types": [
|
|
67
|
-
"dist/types/src/types/index.d.ts"
|
|
68
|
-
],
|
|
69
|
-
"testing": [
|
|
70
|
-
"dist/types/src/testing/index.d.ts"
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
67
|
"files": [
|
|
75
68
|
"dist",
|
|
76
69
|
"src"
|
|
@@ -82,29 +75,29 @@
|
|
|
82
75
|
"effect": "3.20.0",
|
|
83
76
|
"react-qr-rounded": "^1.0.0",
|
|
84
77
|
"yaml": "^2.8.2",
|
|
85
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/cli-util": "0.8.4-main.
|
|
89
|
-
"@dxos/client": "0.8.4-main.
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/client-services": "0.8.4-main.
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/plugin-graph": "0.8.4-main.
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/react-
|
|
104
|
-
"@dxos/react-ui-pickers": "0.8.4-main.
|
|
105
|
-
"@dxos/shell": "0.8.4-main.
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/
|
|
78
|
+
"@dxos/app-framework": "0.8.4-main.abd8ff62ef",
|
|
79
|
+
"@dxos/async": "0.8.4-main.abd8ff62ef",
|
|
80
|
+
"@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
|
|
81
|
+
"@dxos/cli-util": "0.8.4-main.abd8ff62ef",
|
|
82
|
+
"@dxos/client": "0.8.4-main.abd8ff62ef",
|
|
83
|
+
"@dxos/client-protocol": "0.8.4-main.abd8ff62ef",
|
|
84
|
+
"@dxos/client-services": "0.8.4-main.abd8ff62ef",
|
|
85
|
+
"@dxos/compute": "0.8.4-main.abd8ff62ef",
|
|
86
|
+
"@dxos/context": "0.8.4-main.abd8ff62ef",
|
|
87
|
+
"@dxos/echo": "0.8.4-main.abd8ff62ef",
|
|
88
|
+
"@dxos/config": "0.8.4-main.abd8ff62ef",
|
|
89
|
+
"@dxos/effect": "0.8.4-main.abd8ff62ef",
|
|
90
|
+
"@dxos/invariant": "0.8.4-main.abd8ff62ef",
|
|
91
|
+
"@dxos/log": "0.8.4-main.abd8ff62ef",
|
|
92
|
+
"@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
|
|
93
|
+
"@dxos/plugin-observability": "0.8.4-main.abd8ff62ef",
|
|
94
|
+
"@dxos/protocols": "0.8.4-main.abd8ff62ef",
|
|
95
|
+
"@dxos/react-client": "0.8.4-main.abd8ff62ef",
|
|
96
|
+
"@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
|
|
97
|
+
"@dxos/react-ui-pickers": "0.8.4-main.abd8ff62ef",
|
|
98
|
+
"@dxos/shell": "0.8.4-main.abd8ff62ef",
|
|
99
|
+
"@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
|
|
100
|
+
"@dxos/util": "0.8.4-main.abd8ff62ef"
|
|
108
101
|
},
|
|
109
102
|
"devDependencies": {
|
|
110
103
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -114,11 +107,11 @@
|
|
|
114
107
|
"@types/react-dom": "~19.2.3",
|
|
115
108
|
"react": "~19.2.3",
|
|
116
109
|
"react-dom": "~19.2.3",
|
|
117
|
-
"vite": "^
|
|
118
|
-
"@dxos/
|
|
119
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
120
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
121
|
-
"@dxos/
|
|
110
|
+
"vite": "^8.0.10",
|
|
111
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
112
|
+
"@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
|
|
113
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
|
|
114
|
+
"@dxos/plugin-testing": "0.8.4-main.abd8ff62ef"
|
|
122
115
|
},
|
|
123
116
|
"peerDependencies": {
|
|
124
117
|
"@effect-atom/atom-react": "^0.5.0",
|
|
@@ -126,8 +119,8 @@
|
|
|
126
119
|
"effect": "3.20.0",
|
|
127
120
|
"react": "~19.2.3",
|
|
128
121
|
"react-dom": "~19.2.3",
|
|
129
|
-
"@dxos/ui
|
|
130
|
-
"@dxos/
|
|
122
|
+
"@dxos/react-ui": "0.8.4-main.abd8ff62ef",
|
|
123
|
+
"@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
|
|
131
124
|
},
|
|
132
125
|
"publishConfig": {
|
|
133
126
|
"access": "public"
|
|
@@ -19,13 +19,15 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
|
19
19
|
Plugin.addModule((options) => ({
|
|
20
20
|
id: Capability.getModuleTag(Client),
|
|
21
21
|
activatesOn: ActivationEvents.Startup,
|
|
22
|
-
|
|
22
|
+
firesAfterActivation: [ClientEvents.ClientReady],
|
|
23
23
|
activate: () => Client(options),
|
|
24
24
|
})),
|
|
25
25
|
Plugin.addModule({
|
|
26
26
|
activatesOn: ClientEvents.ClientReady,
|
|
27
|
-
|
|
27
|
+
firesBeforeActivation: [AppActivationEvents.SetupSchema],
|
|
28
28
|
activate: SchemaDefs,
|
|
29
29
|
}),
|
|
30
30
|
Plugin.make,
|
|
31
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';
|
|
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
|
@@ -16,11 +16,10 @@ import {
|
|
|
16
16
|
SchemaDefs,
|
|
17
17
|
} from '#capabilities';
|
|
18
18
|
import { meta } from '#meta';
|
|
19
|
+
import { translations } from '#translations';
|
|
19
20
|
import { ClientEvents } from '#types';
|
|
20
21
|
import { type ClientPluginOptions } from '#types';
|
|
21
22
|
|
|
22
|
-
import { translations } from './translations';
|
|
23
|
-
|
|
24
23
|
export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
25
24
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
26
25
|
AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
|
|
@@ -33,18 +32,18 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
|
33
32
|
return {
|
|
34
33
|
id: Capability.getModuleTag(Client),
|
|
35
34
|
activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),
|
|
36
|
-
|
|
35
|
+
firesAfterActivation: [ClientEvents.ClientReady],
|
|
37
36
|
activate: () => Client(options),
|
|
38
37
|
};
|
|
39
38
|
}),
|
|
40
39
|
Plugin.addModule({
|
|
41
40
|
activatesOn: ClientEvents.ClientReady,
|
|
42
|
-
|
|
41
|
+
firesBeforeActivation: [AppActivationEvents.SetupSchema],
|
|
43
42
|
activate: SchemaDefs,
|
|
44
43
|
}),
|
|
45
44
|
Plugin.addModule({
|
|
46
45
|
activatesOn: ClientEvents.ClientReady,
|
|
47
|
-
|
|
46
|
+
firesBeforeActivation: [ClientEvents.SetupMigration],
|
|
48
47
|
activate: Migrations,
|
|
49
48
|
}),
|
|
50
49
|
Plugin.addModule(
|
|
@@ -69,3 +68,5 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
|
|
|
69
68
|
),
|
|
70
69
|
Plugin.make,
|
|
71
70
|
);
|
|
71
|
+
|
|
72
|
+
export default ClientPlugin;
|
|
@@ -6,7 +6,7 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
-
import { Operation } from '@dxos/
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
10
10
|
import { CreateAtom, GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
|
|
11
11
|
import { ConnectionState } from '@dxos/react-client/mesh';
|
|
12
12
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
9
9
|
export const Client = Capability.lazy('Client', () => import('./client'));
|
|
@@ -6,8 +6,8 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
9
10
|
import { log } from '@dxos/log';
|
|
10
|
-
import { Operation } from '@dxos/operation';
|
|
11
11
|
|
|
12
12
|
import { ClientOperation } from '../../operations';
|
|
13
13
|
|
package/src/capabilities/node.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capability } from '@dxos/app-framework';
|
|
6
|
-
import { OperationHandlerSet } from '@dxos/
|
|
6
|
+
import { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
export const Client = Capability.lazy('Client', () => import('./client'));
|
|
9
9
|
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
-
import type { OperationHandlerSet } from '@dxos/
|
|
8
|
+
import type { OperationHandlerSet } from '@dxos/compute';
|
|
9
9
|
|
|
10
10
|
import { ClientOperationHandlerSet } from '#operations';
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
|
-
import React from 'react';
|
|
6
|
+
import React, { type ComponentProps } from 'react';
|
|
7
7
|
|
|
8
8
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
9
|
import { Surface } from '@dxos/app-framework/ui';
|
|
@@ -32,39 +32,36 @@ export default Capability.makeModule(
|
|
|
32
32
|
return Capability.contributes(Capabilities.ReactSurface, [
|
|
33
33
|
Surface.create({
|
|
34
34
|
id: Account.Profile,
|
|
35
|
-
|
|
36
|
-
filter: AppSurface.literalSection(Account.Profile),
|
|
35
|
+
filter: AppSurface.literal(AppSurface.Article, Account.Profile),
|
|
37
36
|
component: () => <ProfileContainer />,
|
|
38
37
|
}),
|
|
39
38
|
Surface.create({
|
|
40
39
|
id: Account.Devices,
|
|
41
|
-
|
|
42
|
-
filter: AppSurface.literalSection(Account.Devices),
|
|
40
|
+
filter: AppSurface.literal(AppSurface.Article, Account.Devices),
|
|
43
41
|
component: () => <DevicesContainer createInvitationUrl={createInvitationUrl} />,
|
|
44
42
|
}),
|
|
45
43
|
Surface.create({
|
|
46
44
|
id: Account.Security,
|
|
47
|
-
|
|
48
|
-
filter: AppSurface.literalSection(Account.Security),
|
|
45
|
+
filter: AppSurface.literal(AppSurface.Article, Account.Security),
|
|
49
46
|
component: () => <RecoveryCredentialsContainer />,
|
|
50
47
|
}),
|
|
51
48
|
Surface.create({
|
|
52
49
|
id: JOIN_DIALOG,
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
component: ({ data }: { data: any }) => <JoinDialog {...data.props} />,
|
|
50
|
+
filter: AppSurface.component<ComponentProps<typeof JoinDialog>>(AppSurface.Dialog, JOIN_DIALOG),
|
|
51
|
+
component: ({ data }) => <JoinDialog {...data.props} />,
|
|
56
52
|
}),
|
|
57
53
|
Surface.create({
|
|
58
54
|
id: RECOVERY_CODE_DIALOG,
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
filter: AppSurface.component<ComponentProps<typeof RecoveryCodeDialog>>(
|
|
56
|
+
AppSurface.Dialog,
|
|
57
|
+
RECOVERY_CODE_DIALOG,
|
|
58
|
+
),
|
|
59
|
+
component: ({ data }) => <RecoveryCodeDialog {...data.props} />,
|
|
62
60
|
}),
|
|
63
61
|
Surface.create({
|
|
64
62
|
id: RESET_DIALOG,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
component: ({ data }: { data: any }) => (
|
|
63
|
+
filter: AppSurface.component<Pick<ComponentProps<typeof ResetDialog>, 'mode'>>(AppSurface.Dialog, RESET_DIALOG),
|
|
64
|
+
component: ({ data }) => (
|
|
68
65
|
<ResetDialog {...data.props} onReset={onReset} capabilityManager={capabilityManager} />
|
|
69
66
|
),
|
|
70
67
|
}),
|
|
@@ -6,7 +6,8 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
8
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
-
import {
|
|
9
|
+
import { Type } from '@dxos/echo';
|
|
10
|
+
import { log } from '@dxos/log';
|
|
10
11
|
|
|
11
12
|
import { ClientCapabilities } from '#types';
|
|
12
13
|
|
|
@@ -17,16 +18,35 @@ export default Capability.makeModule(
|
|
|
17
18
|
const schemasAtom = yield* Capability.atom(AppCapabilities.Schema);
|
|
18
19
|
|
|
19
20
|
// TODO(wittjosiah): Unregister schemas when they are disabled.
|
|
20
|
-
let
|
|
21
|
+
let previousDxns = new Set<string>();
|
|
21
22
|
const cancel = registry.subscribe(
|
|
22
23
|
schemasAtom,
|
|
23
|
-
async (
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
async (schemas) => {
|
|
25
|
+
const seenSchemaDxns = new Set<string>();
|
|
26
|
+
const batch: { schema: Type.AnyEntity; dxnKey: string }[] = [];
|
|
27
|
+
for (const schema of schemas.flat()) {
|
|
28
|
+
const dxn = Type.getDXN(schema);
|
|
29
|
+
if (!dxn) {
|
|
30
|
+
log.warn('skipping schema without dxn');
|
|
31
|
+
continue;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const key = dxn.toString();
|
|
35
|
+
if (seenSchemaDxns.has(key)) {
|
|
36
|
+
log.warn('skipping duplicate schema for echo registration', { dxn: key });
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
seenSchemaDxns.add(key);
|
|
41
|
+
batch.push({ schema, dxnKey: key });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const toRegister = batch.filter(({ dxnKey }) => !previousDxns.has(dxnKey));
|
|
45
|
+
|
|
46
|
+
await client.addTypes(toRegister.map(({ schema }) => schema));
|
|
47
|
+
for (const { dxnKey } of toRegister) {
|
|
48
|
+
previousDxns.add(dxnKey);
|
|
49
|
+
}
|
|
30
50
|
},
|
|
31
51
|
{ immediate: true },
|
|
32
52
|
);
|
|
@@ -12,12 +12,17 @@ import { fromPlugins } from '@dxos/app-framework/testing';
|
|
|
12
12
|
import { TestConsole, TestLayer } from '@dxos/cli-util/testing';
|
|
13
13
|
import { ClientService } from '@dxos/client';
|
|
14
14
|
import { runAndForwardErrors } from '@dxos/effect';
|
|
15
|
-
import { ObservabilityPlugin } from '@dxos/plugin-observability
|
|
15
|
+
import { ObservabilityPlugin } from '@dxos/plugin-observability';
|
|
16
|
+
|
|
17
|
+
import { ClientPlugin } from '#plugin';
|
|
16
18
|
|
|
17
|
-
import { ClientPlugin } from '../../../plugin';
|
|
18
19
|
import { handler } from './create';
|
|
19
20
|
|
|
20
|
-
|
|
21
|
+
// TODO(wittjosiah): Align browser and node variant option types for ObservabilityPlugin.
|
|
22
|
+
const layer = Layer.merge(
|
|
23
|
+
TestLayer,
|
|
24
|
+
fromPlugins([ClientPlugin({}), OperationPlugin(), ObservabilityPlugin({} as any)]),
|
|
25
|
+
);
|
|
21
26
|
|
|
22
27
|
// TODO(wittjosiah): Fix these tests.
|
|
23
28
|
describe.skip('halo create', () => {
|
|
@@ -9,6 +9,7 @@ import * as Effect from 'effect/Effect';
|
|
|
9
9
|
import * as Option from 'effect/Option';
|
|
10
10
|
|
|
11
11
|
import { Capabilities, Plugin } from '@dxos/app-framework';
|
|
12
|
+
import { PERSONAL_SPACE_TAG } from '@dxos/app-toolkit';
|
|
12
13
|
import { CommandConfig, flushAndSync, spaceLayer } from '@dxos/cli-util';
|
|
13
14
|
import { print } from '@dxos/cli-util';
|
|
14
15
|
import { ClientService } from '@dxos/client';
|
|
@@ -43,13 +44,11 @@ export const handler = Effect.fn(function* ({
|
|
|
43
44
|
}
|
|
44
45
|
|
|
45
46
|
// Create personal space for the CLI identity.
|
|
46
|
-
const { PERSONAL_SPACE_TAG, setPersonalSpace } = yield* Effect.tryPromise(() => import('@dxos/app-toolkit'));
|
|
47
47
|
const space = yield* Effect.promise(() =>
|
|
48
48
|
client.spaces.create({}, { tags: [PERSONAL_SPACE_TAG], membershipPolicy: MembershipPolicy.LOCKED }),
|
|
49
49
|
);
|
|
50
50
|
yield* Effect.promise(() => space.waitUntilReady());
|
|
51
51
|
yield* Effect.promise(() => space.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED));
|
|
52
|
-
setPersonalSpace(space);
|
|
53
52
|
yield* flushAndSync({ indexes: true }).pipe(Effect.provide(spaceLayer(Option.some(space.id))));
|
|
54
53
|
|
|
55
54
|
if (json) {
|
|
@@ -11,9 +11,9 @@ import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
|
11
11
|
import { translations as shellTranslations } from '@dxos/shell/react';
|
|
12
12
|
|
|
13
13
|
import { initializeIdentity } from '#testing';
|
|
14
|
+
import { translations } from '#translations';
|
|
14
15
|
|
|
15
16
|
import { ClientPlugin } from '../../ClientPlugin';
|
|
16
|
-
import { translations } from '../../translations';
|
|
17
17
|
import { DevicesContainer } from './DevicesContainer';
|
|
18
18
|
|
|
19
19
|
const meta = {
|
|
@@ -9,8 +9,9 @@ import { withPluginManager } from '@dxos/app-framework/testing';
|
|
|
9
9
|
import { corePlugins } from '@dxos/plugin-testing';
|
|
10
10
|
import { Dialog } from '@dxos/react-ui';
|
|
11
11
|
|
|
12
|
+
import { translations } from '#translations';
|
|
13
|
+
|
|
12
14
|
import { ClientPlugin } from '../../ClientPlugin';
|
|
13
|
-
import { translations } from '../../translations';
|
|
14
15
|
import { JoinDialog } from './JoinDialog';
|
|
15
16
|
|
|
16
17
|
const DefaultStory = () => (
|
|
@@ -7,7 +7,8 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
|
|
|
7
7
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
8
8
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
9
9
|
|
|
10
|
-
import { translations } from '
|
|
10
|
+
import { translations } from '#translations';
|
|
11
|
+
|
|
11
12
|
import { ProfileContainer } from './ProfileContainer';
|
|
12
13
|
|
|
13
14
|
const meta = {
|
|
@@ -10,7 +10,8 @@ import { withClientProvider } from '@dxos/react-client/testing';
|
|
|
10
10
|
import { AlertDialog, useAsyncEffect } from '@dxos/react-ui';
|
|
11
11
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
12
12
|
|
|
13
|
-
import { translations } from '
|
|
13
|
+
import { translations } from '#translations';
|
|
14
|
+
|
|
14
15
|
import { RecoveryCodeDialog } from './RecoveryCodeDialog';
|
|
15
16
|
|
|
16
17
|
const DefaultStory = () => {
|
package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx
CHANGED
|
@@ -10,9 +10,9 @@ import { withPluginManager } from '@dxos/app-framework/testing';
|
|
|
10
10
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
11
11
|
|
|
12
12
|
import { initializeIdentity } from '#testing';
|
|
13
|
+
import { translations } from '#translations';
|
|
13
14
|
|
|
14
15
|
import { ClientPlugin } from '../../ClientPlugin';
|
|
15
|
-
import { translations } from '../../translations';
|
|
16
16
|
import { RecoveryCredentialsContainer } from './RecoveryCredentialsContainer';
|
|
17
17
|
|
|
18
18
|
const meta = {
|
|
@@ -12,8 +12,9 @@ import { usePluginManager } from '@dxos/app-framework/ui';
|
|
|
12
12
|
import { Dialog } from '@dxos/react-ui';
|
|
13
13
|
import { withLayout, withTheme } from '@dxos/react-ui/testing';
|
|
14
14
|
|
|
15
|
+
import { translations } from '#translations';
|
|
16
|
+
|
|
15
17
|
import { ClientPlugin } from '../../ClientPlugin';
|
|
16
|
-
import { translations } from '../../translations';
|
|
17
18
|
import { ResetDialog, type ResetDialogProps } from './ResetDialog';
|
|
18
19
|
|
|
19
20
|
const DefaultStory = (props: Omit<ResetDialogProps, 'capabilityManager'>) => {
|
package/src/index.ts
CHANGED
|
@@ -2,5 +2,9 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { Plugin } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
import { meta } from './meta';
|
|
8
|
+
|
|
9
|
+
export const ClientPlugin = Plugin.lazy(meta, () => import('#plugin'));
|
|
6
10
|
export { meta } from './meta';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
8
9
|
import { invariant } from '@dxos/invariant';
|
|
9
|
-
import { Operation } from '@dxos/operation';
|
|
10
10
|
|
|
11
11
|
import { ClientCapabilities } from '../types';
|
|
12
12
|
import { CreateAgent } from './definitions';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
8
9
|
import { runAndForwardErrors } from '@dxos/effect';
|
|
9
|
-
import { Operation } from '@dxos/operation';
|
|
10
10
|
import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
|
|
11
11
|
|
|
12
12
|
import { ClientEvents } from '../types';
|
|
@@ -8,8 +8,8 @@ import * as Match from 'effect/Match';
|
|
|
8
8
|
import { Capability } from '@dxos/app-framework';
|
|
9
9
|
import { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from '@dxos/app-toolkit';
|
|
10
10
|
import { PublicKey } from '@dxos/client';
|
|
11
|
+
import { Operation } from '@dxos/compute';
|
|
11
12
|
import { invariant } from '@dxos/invariant';
|
|
12
|
-
import { Operation } from '@dxos/operation';
|
|
13
13
|
|
|
14
14
|
import { ClientCapabilities } from '../types';
|
|
15
15
|
import { CreatePasskey } from './definitions';
|
|
@@ -6,8 +6,8 @@ import * as Effect from 'effect/Effect';
|
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
8
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
9
10
|
import { invariant } from '@dxos/invariant';
|
|
10
|
-
import { Operation } from '@dxos/operation';
|
|
11
11
|
|
|
12
12
|
import { RECOVERY_CODE_DIALOG } from '../constants';
|
|
13
13
|
import { ClientCapabilities } from '../types';
|
|
@@ -6,7 +6,7 @@ import * as Schema from 'effect/Schema';
|
|
|
6
6
|
|
|
7
7
|
import { Capability } from '@dxos/app-framework';
|
|
8
8
|
import { PublicKey } from '@dxos/client';
|
|
9
|
-
import { Operation } from '@dxos/
|
|
9
|
+
import { Operation } from '@dxos/compute';
|
|
10
10
|
|
|
11
11
|
import { meta } from '#meta';
|
|
12
12
|
|
package/src/operations/index.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
8
|
-
import { Operation } from '@dxos/
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
9
9
|
|
|
10
10
|
import { JOIN_DIALOG } from '../constants';
|
|
11
11
|
import { JoinIdentity } from './definitions';
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
8
|
-
import { Operation } from '@dxos/
|
|
8
|
+
import { Operation } from '@dxos/compute';
|
|
9
9
|
import { type JoinPanelProps } from '@dxos/shell/react';
|
|
10
10
|
|
|
11
11
|
import { JOIN_DIALOG } from '../constants';
|