@dxos/plugin-client 0.8.4-main.9735255 → 0.8.4-main.9be5663bfe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/chunk-ELAYKIQU.mjs +12 -0
- package/dist/lib/browser/chunk-ELAYKIQU.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs +175 -0
- package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +7 -0
- package/dist/lib/browser/chunk-WNJRYPGG.mjs +131 -0
- package/dist/lib/browser/chunk-WNJRYPGG.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +92 -80
- package/dist/lib/browser/cli/index.mjs.map +3 -3
- package/dist/lib/browser/create-agent-SS5SE35J.mjs +34 -0
- package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +7 -0
- package/dist/lib/browser/create-identity-PBEUEIPN.mjs +30 -0
- package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +7 -0
- package/dist/lib/browser/create-passkey-JN6I5WMM.mjs +105 -0
- package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +7 -0
- package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs +44 -0
- package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +90 -93
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/join-identity-2BP4G2SD.mjs +27 -0
- package/dist/lib/browser/join-identity-2BP4G2SD.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/recover-identity-LS6B5INB.mjs +26 -0
- package/dist/lib/browser/recover-identity-LS6B5INB.mjs.map +7 -0
- package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs +82 -0
- package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +7 -0
- package/dist/lib/browser/redeem-token-6BCRGKV6.mjs +37 -0
- package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +7 -0
- package/dist/lib/browser/reset-storage-QJLTL7J3.mjs +26 -0
- package/dist/lib/browser/reset-storage-QJLTL7J3.mjs.map +7 -0
- package/dist/lib/browser/share-identity-YJEBJTPA.mjs +31 -0
- package/dist/lib/browser/share-identity-YJEBJTPA.mjs.map +7 -0
- package/dist/lib/browser/testing/index.mjs +22 -0
- package/dist/lib/browser/testing/index.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +4 -5
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs +133 -0
- package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +14 -0
- package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +176 -0
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +92 -80
- package/dist/lib/node-esm/cli/index.mjs.map +3 -3
- package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs +35 -0
- package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +7 -0
- package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs +31 -0
- package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +7 -0
- package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs +106 -0
- package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +7 -0
- package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs +45 -0
- package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +90 -93
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/join-identity-75JCKQHM.mjs +28 -0
- package/dist/lib/node-esm/join-identity-75JCKQHM.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs +27 -0
- package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs +83 -0
- package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +7 -0
- package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs +38 -0
- package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +7 -0
- package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs +27 -0
- package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs.map +7 -0
- package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs +32 -0
- package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs.map +7 -0
- package/dist/lib/node-esm/testing/index.mjs +23 -0
- package/dist/lib/node-esm/testing/index.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +4 -5
- package/dist/types/src/ClientPlugin.d.ts +1 -1
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/client.d.ts +8 -0
- package/dist/types/src/capabilities/client.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +32 -7
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
- 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/{client/index.d.ts → node.d.ts} +7 -3
- 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/react-context.d.ts → react-context.d.ts} +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +9 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-defs.d.ts +5 -0
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/view.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/info/info.d.ts +2 -2
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/list/list.d.ts +2 -2
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -1
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -1
- package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/create/create.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +1 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts +2 -2
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -1
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/create.d.ts +2 -1
- package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts +1 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -1
- package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -1
- package/dist/types/src/cli/plugin.d.ts +1 -1
- package/dist/types/src/cli/plugin.d.ts.map +1 -1
- package/dist/types/src/cli/testing/test-console.d.ts.map +1 -1
- 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/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/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.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/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -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.map +1 -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/{components → containers/ResetDialog}/ResetDialog.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ResetDialog}/ResetDialog.stories.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts +4 -0
- package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +10 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-agent.d.ts +5 -0
- package/dist/types/src/operations/create-agent.d.ts.map +1 -0
- package/dist/types/src/operations/create-identity.d.ts +5 -0
- package/dist/types/src/operations/create-identity.d.ts.map +1 -0
- package/dist/types/src/operations/create-passkey.d.ts +5 -0
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
- package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +36 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/join-identity.d.ts +5 -0
- package/dist/types/src/operations/join-identity.d.ts.map +1 -0
- package/dist/types/src/operations/recover-identity.d.ts +5 -0
- package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
- package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
- package/dist/types/src/operations/redeem-token.d.ts +5 -0
- package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
- package/dist/types/src/operations/reset-storage.d.ts +5 -0
- package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
- package/dist/types/src/operations/share-identity.d.ts +5 -0
- package/dist/types/src/operations/share-identity.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/testing/initializeIdentity.d.ts +13 -0
- package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +1 -1
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +26 -175
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +72 -36
- package/src/ClientPlugin.ts +37 -24
- package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +22 -20
- package/src/capabilities/{client/client.ts → client.ts} +16 -12
- package/src/capabilities/index.ts +15 -7
- package/src/capabilities/{migrations/migrations.ts → migrations.ts} +4 -4
- 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/react-context.tsx → react-context.tsx} +7 -7
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +21 -22
- package/src/capabilities/{schema-defs/schema-defs.ts → schema-defs.ts} +8 -7
- package/src/cli/commands/config/view.ts +4 -1
- package/src/cli/commands/device/info/info.test.ts +0 -1
- package/src/cli/commands/device/info/info.ts +0 -2
- package/src/cli/commands/device/list/list.test.ts +0 -1
- package/src/cli/commands/device/list/list.ts +0 -2
- package/src/cli/commands/device/update/update.ts +0 -2
- package/src/cli/commands/edge/status.ts +3 -2
- package/src/cli/commands/halo/create/create.test.ts +0 -1
- package/src/cli/commands/halo/create/create.ts +14 -6
- package/src/cli/commands/halo/credential/list/list.test.ts +0 -1
- package/src/cli/commands/halo/credential/list/list.ts +4 -7
- package/src/cli/commands/halo/identity/identity.ts +0 -1
- package/src/cli/commands/halo/keys/keys.ts +0 -2
- package/src/cli/commands/halo/seed/seed.ts +0 -2
- package/src/cli/commands/halo/update/update.test.ts +0 -1
- package/src/cli/commands/halo/update/update.ts +0 -2
- package/src/cli/commands/profile/create.ts +9 -6
- package/src/cli/commands/profile/delete.ts +5 -2
- package/src/cli/commands/profile/list.ts +12 -11
- package/src/cli/plugin.ts +11 -13
- package/src/cli/testing/test-console.ts +1 -2
- package/src/components/index.ts +0 -7
- package/src/constants.ts +4 -4
- package/src/{components → containers/DevicesContainer}/DevicesContainer.stories.tsx +10 -7
- package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +77 -84
- package/src/containers/DevicesContainer/index.ts +5 -0
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +42 -0
- package/src/{components → containers/JoinDialog}/JoinDialog.tsx +20 -15
- package/src/containers/JoinDialog/index.ts +5 -0
- package/src/{components → containers/ProfileContainer}/ProfileContainer.stories.tsx +4 -5
- package/src/{components → containers/ProfileContainer}/ProfileContainer.tsx +22 -30
- package/src/containers/ProfileContainer/index.ts +5 -0
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.tsx +4 -5
- package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.tsx +29 -26
- package/src/containers/RecoveryCodeDialog/index.ts +8 -0
- package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.tsx +10 -7
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +66 -0
- package/src/containers/RecoveryCredentialsContainer/index.ts +5 -0
- package/src/{components → containers/ResetDialog}/ResetDialog.stories.tsx +27 -15
- package/src/{components → containers/ResetDialog}/ResetDialog.tsx +15 -13
- package/src/containers/ResetDialog/index.ts +8 -0
- package/src/containers/index.ts +15 -0
- package/src/index.ts +2 -5
- package/src/meta.ts +1 -1
- 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/testing/index.ts +5 -0
- package/src/testing/initializeIdentity.ts +24 -0
- package/src/translations.ts +53 -42
- package/src/types/capabilities.ts +4 -4
- package/src/types/events.ts +6 -6
- package/src/types/schema.ts +18 -123
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs +0 -118
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs.map +0 -7
- package/dist/lib/browser/chunk-4BZGRIFS.mjs +0 -293
- package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +0 -7
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs +0 -18
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs.map +0 -7
- package/dist/lib/browser/chunk-G7C3S2BE.mjs +0 -15
- package/dist/lib/browser/chunk-G7C3S2BE.mjs.map +0 -7
- package/dist/lib/browser/client-IX5LMWV4.mjs +0 -86
- package/dist/lib/browser/client-IX5LMWV4.mjs.map +0 -7
- package/dist/lib/browser/migrations-3EBTAW3N.mjs +0 -24
- package/dist/lib/browser/migrations-3EBTAW3N.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs +0 -298
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs.map +0 -7
- package/dist/lib/browser/react-context-4UABG3GP.mjs +0 -24
- package/dist/lib/browser/react-context-4UABG3GP.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs +0 -675
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-O7VLP745.mjs +0 -26
- package/dist/lib/browser/schema-defs-O7VLP745.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs +0 -119
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs +0 -20
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs +0 -295
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs +0 -16
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs.map +0 -7
- package/dist/lib/node-esm/client-FFPK5UFP.mjs +0 -87
- package/dist/lib/node-esm/client-FFPK5UFP.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs +0 -25
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs +0 -299
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs +0 -25
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs +0 -676
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs +0 -27
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/client/client.d.ts +0 -8
- package/dist/types/src/capabilities/client/client.d.ts.map +0 -1
- package/dist/types/src/capabilities/client/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations/index.d.ts +0 -3
- package/dist/types/src/capabilities/migrations/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations/migrations.d.ts +0 -5
- package/dist/types/src/capabilities/migrations/migrations.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -8
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
- package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -9
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs/index.d.ts +0 -3
- package/dist/types/src/capabilities/schema-defs/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +0 -5
- package/dist/types/src/capabilities/schema-defs/schema-defs.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 -181
- 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.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +0 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.d.ts.map +0 -1
- package/dist/types/src/components/ResetDialog.stories.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/client/index.ts +0 -7
- package/src/capabilities/migrations/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -248
- package/src/capabilities/react-context/index.ts +0 -7
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/schema-defs/index.ts +0 -7
- package/src/components/RecoveryCredentialsContainer.tsx +0 -68
- /package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/JoinDialog}/JoinDialog.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.stories.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.d.ts +0 -0
- /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.stories.d.ts +0 -0
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Account,
|
|
3
|
-
ClientCapabilities,
|
|
4
|
-
ClientOperation,
|
|
5
|
-
meta
|
|
6
|
-
} from "./chunk-4BZGRIFS.mjs";
|
|
7
|
-
|
|
8
|
-
// src/capabilities/app-graph-builder/app-graph-builder.ts
|
|
9
|
-
import * as Effect from "effect/Effect";
|
|
10
|
-
import { Capability, Common } from "@dxos/app-framework";
|
|
11
|
-
import { Operation } from "@dxos/operation";
|
|
12
|
-
import { CreateAtom, GraphBuilder, NodeMatcher } from "@dxos/plugin-graph";
|
|
13
|
-
import { ConnectionState } from "@dxos/react-client/mesh";
|
|
14
|
-
var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
15
|
-
const extensions = yield* GraphBuilder.createExtension({
|
|
16
|
-
id: meta.id,
|
|
17
|
-
match: NodeMatcher.whenRoot,
|
|
18
|
-
actions: () => Effect.succeed([
|
|
19
|
-
{
|
|
20
|
-
id: `${meta.id}/open-user-account`,
|
|
21
|
-
data: () => Operation.invoke(ClientOperation.ShareIdentity),
|
|
22
|
-
properties: {
|
|
23
|
-
label: [
|
|
24
|
-
"open user account label",
|
|
25
|
-
{
|
|
26
|
-
ns: meta.id
|
|
27
|
-
}
|
|
28
|
-
],
|
|
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));
|
|
44
|
-
return [
|
|
45
|
-
{
|
|
46
|
-
id: Account.id,
|
|
47
|
-
type: meta.id,
|
|
48
|
-
properties: {
|
|
49
|
-
label: [
|
|
50
|
-
"account label",
|
|
51
|
-
{
|
|
52
|
-
ns: meta.id
|
|
53
|
-
}
|
|
54
|
-
],
|
|
55
|
-
icon: "ph--user--regular",
|
|
56
|
-
disposition: "user-account",
|
|
57
|
-
testId: "clientPlugin.account",
|
|
58
|
-
// NOTE: This currently needs to be the identity key because the fallback is generated from hex.
|
|
59
|
-
userId: identity?.identityKey.toHex(),
|
|
60
|
-
hue: identity?.profile?.data?.hue,
|
|
61
|
-
emoji: identity?.profile?.data?.emoji,
|
|
62
|
-
status: status.swarm === ConnectionState.OFFLINE ? "error" : "active"
|
|
63
|
-
},
|
|
64
|
-
nodes: [
|
|
65
|
-
{
|
|
66
|
-
id: Account.Profile,
|
|
67
|
-
data: Account.Profile,
|
|
68
|
-
type: meta.id,
|
|
69
|
-
properties: {
|
|
70
|
-
label: [
|
|
71
|
-
"profile label",
|
|
72
|
-
{
|
|
73
|
-
ns: meta.id
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
icon: "ph--user--regular"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: Account.Devices,
|
|
81
|
-
data: Account.Devices,
|
|
82
|
-
type: meta.id,
|
|
83
|
-
properties: {
|
|
84
|
-
label: [
|
|
85
|
-
"devices label",
|
|
86
|
-
{
|
|
87
|
-
ns: meta.id
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
icon: "ph--devices--regular",
|
|
91
|
-
testId: "clientPlugin.devices"
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: Account.Security,
|
|
96
|
-
data: Account.Security,
|
|
97
|
-
type: meta.id,
|
|
98
|
-
properties: {
|
|
99
|
-
label: [
|
|
100
|
-
"security label",
|
|
101
|
-
{
|
|
102
|
-
ns: meta.id
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
icon: "ph--key--regular"
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
]
|
|
109
|
-
}
|
|
110
|
-
];
|
|
111
|
-
})
|
|
112
|
-
});
|
|
113
|
-
return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);
|
|
114
|
-
}));
|
|
115
|
-
export {
|
|
116
|
-
app_graph_builder_default as default
|
|
117
|
-
};
|
|
118
|
-
//# sourceMappingURL=app-graph-builder-3FGBMLTF.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/app-graph-builder/app-graph-builder.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability, Common } from '@dxos/app-framework';\nimport { Operation } from '@dxos/operation';\nimport { CreateAtom, GraphBuilder, NodeMatcher } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { meta } from '../../meta';\nimport { Account, ClientCapabilities, ClientOperation } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* GraphBuilder.createExtension({\n id: meta.id,\n match: NodeMatcher.whenRoot,\n actions: () =>\n Effect.succeed([\n {\n id: `${meta.id}/open-user-account`,\n data: () => Operation.invoke(ClientOperation.ShareIdentity),\n properties: {\n label: ['open user account label', { ns: meta.id }],\n icon: 'ph--user--regular',\n disposition: 'menu',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ]),\n connector: Effect.fnUntraced(function* (node, get) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = get(CreateAtom.fromObservable(client.halo.identity));\n const status = get(CreateAtom.fromObservable(client.mesh.networkStatus));\n\n return [\n {\n id: Account.id,\n type: meta.id,\n properties: {\n label: ['account label', { ns: meta.id }],\n icon: 'ph--user--regular',\n disposition: 'user-account',\n testId: 'clientPlugin.account',\n // NOTE: This currently needs to be the identity key because the fallback is generated from hex.\n userId: identity?.identityKey.toHex(),\n hue: identity?.profile?.data?.hue,\n emoji: identity?.profile?.data?.emoji,\n status: status.swarm === ConnectionState.OFFLINE ? 'error' : 'active',\n },\n nodes: [\n {\n id: Account.Profile,\n data: Account.Profile,\n type: meta.id,\n properties: {\n label: ['profile label', { ns: meta.id }],\n icon: 'ph--user--regular',\n },\n },\n {\n id: Account.Devices,\n data: Account.Devices,\n type: meta.id,\n properties: {\n label: ['devices label', { ns: meta.id }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n },\n {\n id: Account.Security,\n data: Account.Security,\n type: meta.id,\n properties: {\n label: ['security label', { ns: meta.id }],\n icon: 'ph--key--regular',\n },\n },\n ],\n },\n ];\n }),\n });\n\n return Capability.contributes(Common.Capability.AppGraphBuilder, extensions);\n }),\n);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,cAAc;AACnC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,cAAcC,mBAAmB;AACtD,SAASC,uBAAuB;AAKhC,IAAA,4BAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAOC,aAAaC,gBAAgB;IACrDC,IAAIC,KAAKD;IACTE,OAAOC,YAAYC;IACnBC,SAAS,MACAC,eAAQ;MACb;QACEN,IAAI,GAAGC,KAAKD,EAAE;QACdO,MAAM,MAAMC,UAAUC,OAAOC,gBAAgBC,aAAa;QAC1DC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIb,KAAKD;YAAG;;UACjDe,MAAM;UACNC,aAAa;UACbC,YAAY;YACVC,OAAO;;YAEPC,SAAS;YACTC,OAAO;UACT;QACF;MACF;KACD;IACHC,WAAkBzB,kBAAW,WAAW0B,MAAMC,KAAG;AAC/C,YAAMC,SAAS,OAAO9B,WAAW6B,IAAIE,mBAAmBC,MAAM;AAC9D,YAAMC,WAAWJ,IAAIK,WAAWC,eAAeL,OAAOM,KAAKH,QAAQ,CAAA;AACnE,YAAMI,SAASR,IAAIK,WAAWC,eAAeL,OAAOQ,KAAKC,aAAa,CAAA;AAEtE,aAAO;QACL;UACEjC,IAAIkC,QAAQlC;UACZmC,MAAMlC,KAAKD;UACXY,YAAY;YACVC,OAAO;cAAC;cAAiB;gBAAEC,IAAIb,KAAKD;cAAG;;YACvCe,MAAM;YACNC,aAAa;YACboB,QAAQ;;YAERC,QAAQV,UAAUW,YAAYC,MAAAA;YAC9BC,KAAKb,UAAUc,SAASlC,MAAMiC;YAC9BE,OAAOf,UAAUc,SAASlC,MAAMmC;YAChCX,QAAQA,OAAOY,UAAUC,gBAAgBC,UAAU,UAAU;UAC/D;UACAC,OAAO;YACL;cACE9C,IAAIkC,QAAQa;cACZxC,MAAM2B,QAAQa;cACdZ,MAAMlC,KAAKD;cACXY,YAAY;gBACVC,OAAO;kBAAC;kBAAiB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACvCe,MAAM;cACR;YACF;YACA;cACEf,IAAIkC,QAAQc;cACZzC,MAAM2B,QAAQc;cACdb,MAAMlC,KAAKD;cACXY,YAAY;gBACVC,OAAO;kBAAC;kBAAiB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACvCe,MAAM;gBACNqB,QAAQ;cACV;YACF;YACA;cACEpC,IAAIkC,QAAQe;cACZ1C,MAAM2B,QAAQe;cACdd,MAAMlC,KAAKD;cACXY,YAAY;gBACVC,OAAO;kBAAC;kBAAkB;oBAAEC,IAAIb,KAAKD;kBAAG;;gBACxCe,MAAM;cACR;YACF;;QAEJ;;IAEJ,CAAA;EACF,CAAA;AAEA,SAAOrB,WAAWwD,YAAYC,OAAOzD,WAAW0D,iBAAiBvD,UAAAA;AACnE,CAAA,CAAA;",
|
|
6
|
-
"names": ["Effect", "Capability", "Common", "Operation", "CreateAtom", "GraphBuilder", "NodeMatcher", "ConnectionState", "Capability", "makeModule", "fnUntraced", "extensions", "GraphBuilder", "createExtension", "id", "meta", "match", "NodeMatcher", "whenRoot", "actions", "succeed", "data", "Operation", "invoke", "ClientOperation", "ShareIdentity", "properties", "label", "ns", "icon", "disposition", "keyBinding", "macos", "windows", "linux", "connector", "node", "get", "client", "ClientCapabilities", "Client", "identity", "CreateAtom", "fromObservable", "halo", "status", "mesh", "networkStatus", "Account", "type", "testId", "userId", "identityKey", "toHex", "hue", "profile", "emoji", "swarm", "ConnectionState", "OFFLINE", "nodes", "Profile", "Devices", "Security", "contributes", "Common", "AppGraphBuilder"]
|
|
7
|
-
}
|
|
@@ -1,293 +0,0 @@
|
|
|
1
|
-
// src/types/capabilities.ts
|
|
2
|
-
import { Capability } from "@dxos/app-framework";
|
|
3
|
-
|
|
4
|
-
// src/meta.ts
|
|
5
|
-
import { trim } from "@dxos/util";
|
|
6
|
-
var meta = {
|
|
7
|
-
id: "dxos.org/plugin/client",
|
|
8
|
-
name: "Client",
|
|
9
|
-
description: trim`
|
|
10
|
-
Core client connectivity and peer-to-peer networking infrastructure.
|
|
11
|
-
Manages identity, authentication, and real-time synchronization across devices.
|
|
12
|
-
`
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
// src/types/capabilities.ts
|
|
16
|
-
(function(ClientCapabilities2) {
|
|
17
|
-
ClientCapabilities2.Client = Capability.make(`${meta.id}/capability/client`);
|
|
18
|
-
ClientCapabilities2.Schema = Capability.make(`${meta.id}/capability/schema`);
|
|
19
|
-
ClientCapabilities2.Migration = Capability.make(`${meta.id}/capability/migration`);
|
|
20
|
-
})(ClientCapabilities || (ClientCapabilities = {}));
|
|
21
|
-
var ClientCapabilities;
|
|
22
|
-
|
|
23
|
-
// src/types/events.ts
|
|
24
|
-
import { ActivationEvent } from "@dxos/app-framework";
|
|
25
|
-
(function(ClientEvents2) {
|
|
26
|
-
ClientEvents2.ClientReady = ActivationEvent.make(`${meta.id}/event/client-ready`);
|
|
27
|
-
ClientEvents2.SetupSchema = ActivationEvent.make(`${meta.id}/event/setup-schema`);
|
|
28
|
-
ClientEvents2.SetupMigration = ActivationEvent.make(`${meta.id}/event/setup-migration`);
|
|
29
|
-
ClientEvents2.IdentityCreated = ActivationEvent.make(`${meta.id}/event/identity-created`);
|
|
30
|
-
ClientEvents2.SpacesReady = ActivationEvent.make(`${meta.id}/event/spaces-ready`);
|
|
31
|
-
})(ClientEvents || (ClientEvents = {}));
|
|
32
|
-
var ClientEvents;
|
|
33
|
-
|
|
34
|
-
// src/types/schema.ts
|
|
35
|
-
import * as Schema from "effect/Schema";
|
|
36
|
-
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
37
|
-
import { PublicKey } from "@dxos/client";
|
|
38
|
-
import { Operation } from "@dxos/operation";
|
|
39
|
-
var IdentitySchema = Schema.Struct({
|
|
40
|
-
identityKey: Schema.instanceOf(PublicKey),
|
|
41
|
-
spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),
|
|
42
|
-
profile: Schema.optional(Schema.Struct({
|
|
43
|
-
displayName: Schema.optional(Schema.String),
|
|
44
|
-
avatarCid: Schema.optional(Schema.String),
|
|
45
|
-
data: Schema.optional(Schema.Record({
|
|
46
|
-
key: Schema.String,
|
|
47
|
-
value: Schema.Any
|
|
48
|
-
}))
|
|
49
|
-
}))
|
|
50
|
-
});
|
|
51
|
-
(function(ClientAction2) {
|
|
52
|
-
const ProfileSchema = Schema.Struct({
|
|
53
|
-
displayName: Schema.optional(Schema.String),
|
|
54
|
-
avatarCid: Schema.optional(Schema.String),
|
|
55
|
-
data: Schema.optional(Schema.Record({
|
|
56
|
-
key: Schema.String,
|
|
57
|
-
value: Schema.Any
|
|
58
|
-
}))
|
|
59
|
-
});
|
|
60
|
-
class CreateIdentity extends Schema.TaggedClass()(`${meta.id}/action/create-identity`, {
|
|
61
|
-
input: ProfileSchema,
|
|
62
|
-
output: IdentitySchema
|
|
63
|
-
}) {
|
|
64
|
-
}
|
|
65
|
-
ClientAction2.CreateIdentity = CreateIdentity;
|
|
66
|
-
class JoinIdentity extends Schema.TaggedClass()(`${meta.id}/action/join-identity`, {
|
|
67
|
-
input: Schema.Struct({
|
|
68
|
-
invitationCode: Schema.optional(Schema.String)
|
|
69
|
-
}),
|
|
70
|
-
output: Schema.Void
|
|
71
|
-
}) {
|
|
72
|
-
}
|
|
73
|
-
ClientAction2.JoinIdentity = JoinIdentity;
|
|
74
|
-
class ShareIdentity extends Schema.TaggedClass()(`${meta.id}/action/share-identity`, {
|
|
75
|
-
input: Schema.Void,
|
|
76
|
-
output: Schema.Void
|
|
77
|
-
}) {
|
|
78
|
-
}
|
|
79
|
-
ClientAction2.ShareIdentity = ShareIdentity;
|
|
80
|
-
class RecoverIdentity extends Schema.TaggedClass()(`${meta.id}/action/recover-identity`, {
|
|
81
|
-
input: Schema.Void,
|
|
82
|
-
output: Schema.Void
|
|
83
|
-
}) {
|
|
84
|
-
}
|
|
85
|
-
ClientAction2.RecoverIdentity = RecoverIdentity;
|
|
86
|
-
class ResetStorage extends Schema.TaggedClass()(`${meta.id}/action/reset-storage`, {
|
|
87
|
-
input: Schema.Struct({
|
|
88
|
-
mode: Schema.optional(Schema.String)
|
|
89
|
-
}),
|
|
90
|
-
output: Schema.Void
|
|
91
|
-
}) {
|
|
92
|
-
}
|
|
93
|
-
ClientAction2.ResetStorage = ResetStorage;
|
|
94
|
-
class CreateAgent extends Schema.TaggedClass()(`${meta.id}/action/create-agent`, {
|
|
95
|
-
input: Schema.Void,
|
|
96
|
-
output: Schema.Void
|
|
97
|
-
}) {
|
|
98
|
-
}
|
|
99
|
-
ClientAction2.CreateAgent = CreateAgent;
|
|
100
|
-
class CreateRecoveryCode extends Schema.TaggedClass()(`${meta.id}/action/create-recovery-code`, {
|
|
101
|
-
input: Schema.Void,
|
|
102
|
-
output: Schema.Void
|
|
103
|
-
}) {
|
|
104
|
-
}
|
|
105
|
-
ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
|
|
106
|
-
class CreatePasskey extends Schema.TaggedClass()(`${meta.id}/action/create-passkey`, {
|
|
107
|
-
input: Schema.Void,
|
|
108
|
-
output: Schema.Void
|
|
109
|
-
}) {
|
|
110
|
-
}
|
|
111
|
-
ClientAction2.CreatePasskey = CreatePasskey;
|
|
112
|
-
class RedeemPasskey extends Schema.TaggedClass()(`${meta.id}/action/redeem-passkey`, {
|
|
113
|
-
input: Schema.Void,
|
|
114
|
-
output: Schema.Void
|
|
115
|
-
}) {
|
|
116
|
-
}
|
|
117
|
-
ClientAction2.RedeemPasskey = RedeemPasskey;
|
|
118
|
-
class RedeemToken extends Schema.TaggedClass()(`${meta.id}/action/redeem-token`, {
|
|
119
|
-
input: Schema.Struct({
|
|
120
|
-
token: Schema.String
|
|
121
|
-
}),
|
|
122
|
-
output: Schema.Void
|
|
123
|
-
}) {
|
|
124
|
-
}
|
|
125
|
-
ClientAction2.RedeemToken = RedeemToken;
|
|
126
|
-
})(ClientAction || (ClientAction = {}));
|
|
127
|
-
var CLIENT_OPERATION = `${meta.id}/operation`;
|
|
128
|
-
(function(ClientOperation2) {
|
|
129
|
-
const ProfileSchema = Schema.Struct({
|
|
130
|
-
displayName: Schema.optional(Schema.String),
|
|
131
|
-
avatarCid: Schema.optional(Schema.String),
|
|
132
|
-
data: Schema.optional(Schema.Record({
|
|
133
|
-
key: Schema.String,
|
|
134
|
-
value: Schema.Any
|
|
135
|
-
}))
|
|
136
|
-
});
|
|
137
|
-
ClientOperation2.CreateIdentity = Operation.make({
|
|
138
|
-
meta: {
|
|
139
|
-
key: `${CLIENT_OPERATION}/create-identity`,
|
|
140
|
-
name: "Create Identity"
|
|
141
|
-
},
|
|
142
|
-
services: [
|
|
143
|
-
Capability2.Service
|
|
144
|
-
],
|
|
145
|
-
schema: {
|
|
146
|
-
input: ProfileSchema,
|
|
147
|
-
output: IdentitySchema
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
ClientOperation2.JoinIdentity = Operation.make({
|
|
151
|
-
meta: {
|
|
152
|
-
key: `${CLIENT_OPERATION}/join-identity`,
|
|
153
|
-
name: "Join Identity"
|
|
154
|
-
},
|
|
155
|
-
services: [
|
|
156
|
-
Capability2.Service
|
|
157
|
-
],
|
|
158
|
-
schema: {
|
|
159
|
-
input: Schema.Struct({
|
|
160
|
-
invitationCode: Schema.optional(Schema.String)
|
|
161
|
-
}),
|
|
162
|
-
output: Schema.Void
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
ClientOperation2.ShareIdentity = Operation.make({
|
|
166
|
-
meta: {
|
|
167
|
-
key: `${CLIENT_OPERATION}/share-identity`,
|
|
168
|
-
name: "Share Identity"
|
|
169
|
-
},
|
|
170
|
-
services: [
|
|
171
|
-
Capability2.Service
|
|
172
|
-
],
|
|
173
|
-
schema: {
|
|
174
|
-
input: Schema.Void,
|
|
175
|
-
output: Schema.Void
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
ClientOperation2.RecoverIdentity = Operation.make({
|
|
179
|
-
meta: {
|
|
180
|
-
key: `${CLIENT_OPERATION}/recover-identity`,
|
|
181
|
-
name: "Recover Identity"
|
|
182
|
-
},
|
|
183
|
-
services: [
|
|
184
|
-
Capability2.Service
|
|
185
|
-
],
|
|
186
|
-
schema: {
|
|
187
|
-
input: Schema.Void,
|
|
188
|
-
output: Schema.Void
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
ClientOperation2.ResetStorage = Operation.make({
|
|
192
|
-
meta: {
|
|
193
|
-
key: `${CLIENT_OPERATION}/reset-storage`,
|
|
194
|
-
name: "Reset Storage"
|
|
195
|
-
},
|
|
196
|
-
services: [
|
|
197
|
-
Capability2.Service
|
|
198
|
-
],
|
|
199
|
-
schema: {
|
|
200
|
-
input: Schema.Struct({
|
|
201
|
-
mode: Schema.optional(Schema.String)
|
|
202
|
-
}),
|
|
203
|
-
output: Schema.Void
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
ClientOperation2.CreateAgent = Operation.make({
|
|
207
|
-
meta: {
|
|
208
|
-
key: `${CLIENT_OPERATION}/create-agent`,
|
|
209
|
-
name: "Create Agent"
|
|
210
|
-
},
|
|
211
|
-
services: [
|
|
212
|
-
Capability2.Service
|
|
213
|
-
],
|
|
214
|
-
schema: {
|
|
215
|
-
input: Schema.Void,
|
|
216
|
-
output: Schema.Void
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
ClientOperation2.CreateRecoveryCode = Operation.make({
|
|
220
|
-
meta: {
|
|
221
|
-
key: `${CLIENT_OPERATION}/create-recovery-code`,
|
|
222
|
-
name: "Create Recovery Code"
|
|
223
|
-
},
|
|
224
|
-
services: [
|
|
225
|
-
Capability2.Service
|
|
226
|
-
],
|
|
227
|
-
schema: {
|
|
228
|
-
input: Schema.Void,
|
|
229
|
-
output: Schema.Void
|
|
230
|
-
}
|
|
231
|
-
});
|
|
232
|
-
ClientOperation2.CreatePasskey = Operation.make({
|
|
233
|
-
meta: {
|
|
234
|
-
key: `${CLIENT_OPERATION}/create-passkey`,
|
|
235
|
-
name: "Create Passkey"
|
|
236
|
-
},
|
|
237
|
-
services: [
|
|
238
|
-
Capability2.Service
|
|
239
|
-
],
|
|
240
|
-
schema: {
|
|
241
|
-
input: Schema.Void,
|
|
242
|
-
output: Schema.Void
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
ClientOperation2.RedeemPasskey = Operation.make({
|
|
246
|
-
meta: {
|
|
247
|
-
key: `${CLIENT_OPERATION}/redeem-passkey`,
|
|
248
|
-
name: "Redeem Passkey"
|
|
249
|
-
},
|
|
250
|
-
services: [
|
|
251
|
-
Capability2.Service
|
|
252
|
-
],
|
|
253
|
-
schema: {
|
|
254
|
-
input: Schema.Void,
|
|
255
|
-
output: Schema.Void
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
ClientOperation2.RedeemToken = Operation.make({
|
|
259
|
-
meta: {
|
|
260
|
-
key: `${CLIENT_OPERATION}/redeem-token`,
|
|
261
|
-
name: "Redeem Token"
|
|
262
|
-
},
|
|
263
|
-
services: [
|
|
264
|
-
Capability2.Service
|
|
265
|
-
],
|
|
266
|
-
schema: {
|
|
267
|
-
input: Schema.Struct({
|
|
268
|
-
token: Schema.String
|
|
269
|
-
}),
|
|
270
|
-
output: Schema.Void
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
})(ClientOperation || (ClientOperation = {}));
|
|
274
|
-
(function(Account2) {
|
|
275
|
-
const _id = "dxos.org.plugin.client.account";
|
|
276
|
-
Account2.id = `!${_id}`;
|
|
277
|
-
Account2.Profile = `${_id}.profile`;
|
|
278
|
-
Account2.Devices = `${_id}.devices`;
|
|
279
|
-
Account2.Security = `${_id}.security`;
|
|
280
|
-
})(Account || (Account = {}));
|
|
281
|
-
var ClientAction;
|
|
282
|
-
var ClientOperation;
|
|
283
|
-
var Account;
|
|
284
|
-
|
|
285
|
-
export {
|
|
286
|
-
meta,
|
|
287
|
-
ClientCapabilities,
|
|
288
|
-
ClientEvents,
|
|
289
|
-
ClientAction,
|
|
290
|
-
ClientOperation,
|
|
291
|
-
Account
|
|
292
|
-
};
|
|
293
|
-
//# sourceMappingURL=chunk-4BZGRIFS.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/types/capabilities.ts", "../../../src/meta.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client } from '@dxos/client';\nimport { type ObjectMigration } from '@dxos/client/echo';\nimport { type Type } from '@dxos/echo';\n\nimport { meta } from '../meta';\n\nexport namespace ClientCapabilities {\n export const Client = Capability.make<Client>(`${meta.id}/capability/client`);\n export const Schema = Capability.make<Type.Entity.Any[]>(`${meta.id}/capability/schema`);\n export const Migration = Capability.make<ObjectMigration[]>(`${meta.id}/capability/migration`);\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'dxos.org/plugin/client',\n name: 'Client',\n description: trim`\n Core client connectivity and peer-to-peer networking infrastructure.\n Manages identity, authentication, and real-time synchronization across devices.\n `,\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '../meta';\n\nexport namespace ClientEvents {\n export const ClientReady = ActivationEvent.make(`${meta.id}/event/client-ready`);\n export const SetupSchema = ActivationEvent.make(`${meta.id}/event/setup-schema`);\n export const SetupMigration = ActivationEvent.make(`${meta.id}/event/setup-migration`);\n export const IdentityCreated = ActivationEvent.make(`${meta.id}/event/identity-created`);\n export const SpacesReady = ActivationEvent.make(`${meta.id}/event/spaces-ready`);\n}\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport type * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client, type ClientOptions, PublicKey } from '@dxos/client';\nimport { Operation } from '@dxos/operation';\n\nimport { meta } from '../meta';\n\n// TODO(wittjosiah): Factor out. Generate?\nconst IdentitySchema = Schema.Struct({\n identityKey: Schema.instanceOf(PublicKey),\n spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),\n profile: Schema.optional(\n Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n ),\n});\n\nexport namespace ClientAction {\n const ProfileSchema = Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n });\n\n export class CreateIdentity extends Schema.TaggedClass<CreateIdentity>()(`${meta.id}/action/create-identity`, {\n input: ProfileSchema,\n output: IdentitySchema,\n }) {}\n\n export class JoinIdentity extends Schema.TaggedClass<JoinIdentity>()(`${meta.id}/action/join-identity`, {\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class ShareIdentity extends Schema.TaggedClass<ShareIdentity>()(`${meta.id}/action/share-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RecoverIdentity extends Schema.TaggedClass<RecoverIdentity>()(`${meta.id}/action/recover-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class ResetStorage extends Schema.TaggedClass<ResetStorage>()(`${meta.id}/action/reset-storage`, {\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class CreateAgent extends Schema.TaggedClass<CreateAgent>()(`${meta.id}/action/create-agent`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class CreateRecoveryCode extends Schema.TaggedClass<CreateRecoveryCode>()(\n `${meta.id}/action/create-recovery-code`,\n {\n input: Schema.Void,\n output: Schema.Void,\n },\n ) {}\n\n export class CreatePasskey extends Schema.TaggedClass<CreatePasskey>()(`${meta.id}/action/create-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemPasskey extends Schema.TaggedClass<RedeemPasskey>()(`${meta.id}/action/redeem-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemToken extends Schema.TaggedClass<RedeemToken>()(`${meta.id}/action/redeem-token`, {\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n }) {}\n}\n\nconst CLIENT_OPERATION = `${meta.id}/operation`;\n\n/**\n * Operations for the Client plugin.\n */\nexport namespace ClientOperation {\n const ProfileSchema = Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n });\n\n export const CreateIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/create-identity`, name: 'Create Identity' },\n services: [Capability.Service],\n schema: {\n input: ProfileSchema,\n output: IdentitySchema,\n },\n });\n\n export const JoinIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/join-identity`, name: 'Join Identity' },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n },\n });\n\n export const ShareIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/share-identity`, name: 'Share Identity' },\n services: [Capability.Service],\n schema: {\n input: Schema.Void,\n output: Schema.Void,\n },\n });\n\n export const RecoverIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/recover-identity`, name: 'Recover Identity' },\n services: [Capability.Service],\n schema: {\n input: Schema.Void,\n output: Schema.Void,\n },\n });\n\n export const ResetStorage = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/reset-storage`, name: 'Reset Storage' },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n },\n });\n\n export const CreateAgent = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/create-agent`, name: 'Create Agent' },\n services: [Capability.Service],\n schema: {\n input: Schema.Void,\n output: Schema.Void,\n },\n });\n\n export const CreateRecoveryCode = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/create-recovery-code`, name: 'Create Recovery Code' },\n services: [Capability.Service],\n schema: {\n input: Schema.Void,\n output: Schema.Void,\n },\n });\n\n export const CreatePasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/create-passkey`, name: 'Create Passkey' },\n services: [Capability.Service],\n schema: {\n input: Schema.Void,\n output: Schema.Void,\n },\n });\n\n export const RedeemPasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/redeem-passkey`, name: 'Redeem Passkey' },\n services: [Capability.Service],\n schema: {\n input: Schema.Void,\n output: Schema.Void,\n },\n });\n\n export const RedeemToken = Operation.make({\n meta: { key: `${CLIENT_OPERATION}/redeem-token`, name: 'Redeem Token' },\n services: [Capability.Service],\n schema: {\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n },\n });\n}\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base URL for the invitation link.\n */\n invitationUrl?: string;\n\n /**\n * Query parameter for the invitation code.\n */\n invitationProp?: string;\n\n /**\n * Run after the client has been initialized.\n * Plugin context is provided so capabilities are accessible.\n */\n onClientInitialized?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when spaces are ready.\n * Plugin context is provided so capabilities are accessible.\n */\n onSpacesReady?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when the client is reset.\n * Plugin context is provided so capabilities are accessible.\n */\n onReset?: (params: { target?: string }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n};\n\nexport namespace Account {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n const _id = 'dxos.org.plugin.client.account';\n // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n // Ideally this should be worked into the data model in a generic way.\n export const id = `!${_id}`;\n\n export const Profile = `${_id}.profile`;\n export const Devices = `${_id}.devices`;\n export const Security = `${_id}.security`;\n}\n"],
|
|
5
|
-
"mappings": "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",
|
|
6
|
-
"names": ["Capability", "trim", "meta", "id", "name", "description", "trim", "ClientCapabilities", "Client", "Capability", "make", "meta", "id", "Schema", "Migration", "ActivationEvent", "ClientEvents", "ClientReady", "ActivationEvent", "make", "meta", "id", "SetupSchema", "SetupMigration", "IdentityCreated", "SpacesReady", "Schema", "Capability", "PublicKey", "Operation", "IdentitySchema", "Struct", "identityKey", "instanceOf", "PublicKey", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ClientAction", "ProfileSchema", "CreateIdentity", "TaggedClass", "meta", "id", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "CLIENT_OPERATION", "ClientOperation", "Operation", "make", "name", "services", "Capability", "Service", "schema", "Account", "_id", "Profile", "Devices", "Security"]
|
|
7
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
// src/capabilities/client/index.ts
|
|
2
|
-
import { Capability } from "@dxos/app-framework";
|
|
3
|
-
var Client = Capability.lazy("Client", () => import("./client-IX5LMWV4.mjs"));
|
|
4
|
-
|
|
5
|
-
// src/capabilities/operation-resolver/index.ts
|
|
6
|
-
import { Capability as Capability2 } from "@dxos/app-framework";
|
|
7
|
-
var OperationResolver = Capability2.lazy("OperationResolver", () => import("./operation-resolver-2NT3ISVP.mjs"));
|
|
8
|
-
|
|
9
|
-
// src/capabilities/schema-defs/index.ts
|
|
10
|
-
import { Capability as Capability3 } from "@dxos/app-framework";
|
|
11
|
-
var SchemaDefs = Capability3.lazy("SchemaDefs", () => import("./schema-defs-O7VLP745.mjs"));
|
|
12
|
-
|
|
13
|
-
export {
|
|
14
|
-
Client,
|
|
15
|
-
OperationResolver,
|
|
16
|
-
SchemaDefs
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=chunk-F7H2Y3Z2.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/client/index.ts", "../../../src/capabilities/operation-resolver/index.ts", "../../../src/capabilities/schema-defs/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const Client = Capability.lazy('Client', () => import('./client'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const OperationResolver = Capability.lazy('OperationResolver', () => import('./operation-resolver'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\n\nexport const SchemaDefs = Capability.lazy('SchemaDefs', () => import('./schema-defs'));\n"],
|
|
5
|
-
"mappings": ";AAIA,SAASA,kBAAkB;AAEpB,IAAMC,SAASC,WAAWC,KAAK,UAAU,MAAM,OAAO,uBAAA,CAAA;;;ACF7D,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,oBAAoBC,YAAWC,KAAK,qBAAqB,MAAM,OAAO,mCAAA,CAAA;;;ACFnF,SAASC,cAAAA,mBAAkB;AAEpB,IAAMC,aAAaC,YAAWC,KAAK,cAAc,MAAM,OAAO,4BAAA,CAAA;",
|
|
6
|
-
"names": ["Capability", "Client", "Capability", "lazy", "Capability", "OperationResolver", "Capability", "lazy", "Capability", "SchemaDefs", "Capability", "lazy"]
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
meta
|
|
3
|
-
} from "./chunk-4BZGRIFS.mjs";
|
|
4
|
-
|
|
5
|
-
// src/constants.ts
|
|
6
|
-
var JOIN_DIALOG = `${meta.id}/JoinDialog`;
|
|
7
|
-
var RECOVERY_CODE_DIALOG = `${meta.id}/RecoveryCodeDialog`;
|
|
8
|
-
var RESET_DIALOG = `${meta.id}/ResetDialog`;
|
|
9
|
-
|
|
10
|
-
export {
|
|
11
|
-
JOIN_DIALOG,
|
|
12
|
-
RECOVERY_CODE_DIALOG,
|
|
13
|
-
RESET_DIALOG
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=chunk-G7C3S2BE.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/constants.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { meta } from './meta';\n\nexport const JOIN_DIALOG = `${meta.id}/JoinDialog`;\nexport const RECOVERY_CODE_DIALOG = `${meta.id}/RecoveryCodeDialog`;\nexport const RESET_DIALOG = `${meta.id}/ResetDialog`;\n"],
|
|
5
|
-
"mappings": ";;;;;AAMO,IAAMA,cAAc,GAAGC,KAAKC,EAAE;AAC9B,IAAMC,uBAAuB,GAAGF,KAAKC,EAAE;AACvC,IAAME,eAAe,GAAGH,KAAKC,EAAE;",
|
|
6
|
-
"names": ["JOIN_DIALOG", "meta", "id", "RECOVERY_CODE_DIALOG", "RESET_DIALOG"]
|
|
7
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ClientCapabilities,
|
|
3
|
-
ClientEvents
|
|
4
|
-
} from "./chunk-4BZGRIFS.mjs";
|
|
5
|
-
|
|
6
|
-
// src/capabilities/client/client.ts
|
|
7
|
-
import * as Effect from "effect/Effect";
|
|
8
|
-
import { Capability, Common, Plugin } from "@dxos/app-framework";
|
|
9
|
-
import { Client, ClientService } from "@dxos/client";
|
|
10
|
-
import { runAndForwardErrors } from "@dxos/effect";
|
|
11
|
-
import { log } from "@dxos/log";
|
|
12
|
-
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/capabilities/client/client.ts";
|
|
13
|
-
var client_default = Capability.makeModule(Effect.fnUntraced(function* (props) {
|
|
14
|
-
const { onClientInitialized, onSpacesReady, ...options } = props;
|
|
15
|
-
const capabilityManager = yield* Capability.Service;
|
|
16
|
-
const pluginManager = yield* Plugin.Service;
|
|
17
|
-
log("creating client", void 0, {
|
|
18
|
-
F: __dxlog_file,
|
|
19
|
-
L: 23,
|
|
20
|
-
S: this,
|
|
21
|
-
C: (f, a) => f(...a)
|
|
22
|
-
});
|
|
23
|
-
const client = new Client(options);
|
|
24
|
-
log("initializing client", void 0, {
|
|
25
|
-
F: __dxlog_file,
|
|
26
|
-
L: 25,
|
|
27
|
-
S: this,
|
|
28
|
-
C: (f, a) => f(...a)
|
|
29
|
-
});
|
|
30
|
-
yield* Effect.tryPromise(() => client.initialize());
|
|
31
|
-
log("initialized client", void 0, {
|
|
32
|
-
F: __dxlog_file,
|
|
33
|
-
L: 27,
|
|
34
|
-
S: this,
|
|
35
|
-
C: (f, a) => f(...a)
|
|
36
|
-
});
|
|
37
|
-
if (onClientInitialized) {
|
|
38
|
-
yield* onClientInitialized({
|
|
39
|
-
client
|
|
40
|
-
}).pipe(Effect.provideService(Capability.Service, capabilityManager), Effect.provideService(Plugin.Service, pluginManager));
|
|
41
|
-
}
|
|
42
|
-
log("called client initialized callback", void 0, {
|
|
43
|
-
F: __dxlog_file,
|
|
44
|
-
L: 34,
|
|
45
|
-
S: this,
|
|
46
|
-
C: (f, a) => f(...a)
|
|
47
|
-
});
|
|
48
|
-
client.reloaded.on(() => {
|
|
49
|
-
client.halo.identity.subscribe(async (identity) => {
|
|
50
|
-
if (identity) {
|
|
51
|
-
window.location.href = window.location.origin;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
const subscription = client.spaces.isReady.subscribe(async (ready) => {
|
|
56
|
-
if (ready) {
|
|
57
|
-
await Effect.gen(function* () {
|
|
58
|
-
yield* Plugin.activate(ClientEvents.SpacesReady);
|
|
59
|
-
if (onSpacesReady) {
|
|
60
|
-
yield* onSpacesReady({
|
|
61
|
-
client
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
}).pipe(Effect.provideService(Capability.Service, capabilityManager), Effect.provideService(Plugin.Service, pluginManager), runAndForwardErrors);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
log("client capability ready", void 0, {
|
|
68
|
-
F: __dxlog_file,
|
|
69
|
-
L: 61,
|
|
70
|
-
S: this,
|
|
71
|
-
C: (f, a) => f(...a)
|
|
72
|
-
});
|
|
73
|
-
return [
|
|
74
|
-
// TODO(wittjosiah): Try to remove and prefer layer?
|
|
75
|
-
// Perhaps move to using layer has source of truth and add a getter capability for the client.
|
|
76
|
-
Capability.contributes(ClientCapabilities.Client, client, () => Effect.gen(function* () {
|
|
77
|
-
subscription.unsubscribe();
|
|
78
|
-
yield* Effect.tryPromise(() => client.destroy());
|
|
79
|
-
})),
|
|
80
|
-
Capability.contributes(Common.Capability.Layer, ClientService.fromClient(client))
|
|
81
|
-
];
|
|
82
|
-
}));
|
|
83
|
-
export {
|
|
84
|
-
client_default as default
|
|
85
|
-
};
|
|
86
|
-
//# sourceMappingURL=client-IX5LMWV4.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/client/client.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability, Common, Plugin } from '@dxos/app-framework';\nimport { Client, ClientService } from '@dxos/client';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { log } from '@dxos/log';\n\nimport { ClientEvents } from '../../types';\nimport { ClientCapabilities, type ClientPluginOptions } from '../../types';\n\ntype ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'invitationUrl' | 'invitationParam' | 'onReset'>;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* (props?: ClientCapabilityOptions) {\n const { onClientInitialized, onSpacesReady, ...options } = props!;\n const capabilityManager = yield* Capability.Service;\n const pluginManager = yield* Plugin.Service;\n\n log('creating client');\n const client = new Client(options);\n log('initializing client');\n yield* Effect.tryPromise(() => client.initialize());\n log('initialized client');\n if (onClientInitialized) {\n yield* onClientInitialized({ client }).pipe(\n Effect.provideService(Capability.Service, capabilityManager),\n Effect.provideService(Plugin.Service, pluginManager),\n );\n }\n log('called client initialized callback');\n\n // TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.\n client.reloaded.on(() => {\n client.halo.identity.subscribe(async (identity) => {\n if (identity) {\n window.location.href = window.location.origin;\n }\n });\n });\n\n // TODO(burdon): The callback isn't called?\n const subscription = client.spaces.isReady.subscribe(async (ready) => {\n if (ready) {\n await Effect.gen(function* () {\n yield* Plugin.activate(ClientEvents.SpacesReady);\n if (onSpacesReady) {\n yield* onSpacesReady({ client });\n }\n }).pipe(\n Effect.provideService(Capability.Service, capabilityManager),\n Effect.provideService(Plugin.Service, pluginManager),\n runAndForwardErrors,\n );\n }\n });\n\n log('client capability ready');\n\n return [\n // TODO(wittjosiah): Try to remove and prefer layer?\n // Perhaps move to using layer has source of truth and add a getter capability for the client.\n Capability.contributes(ClientCapabilities.Client, client, () =>\n Effect.gen(function* () {\n subscription.unsubscribe();\n yield* Effect.tryPromise(() => client.destroy());\n }),\n ),\n Capability.contributes(Common.Capability.Layer, ClientService.fromClient(client)),\n ];\n }),\n);\n"],
|
|
5
|
-
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,QAAQC,cAAc;AAC3C,SAASC,QAAQC,qBAAqB;AACtC,SAASC,2BAA2B;AACpC,SAASC,WAAW;;AAOpB,IAAA,iBAAeC,WAAWC,WACjBC,kBAAW,WAAWC,OAA+B;AAC1D,QAAM,EAAEC,qBAAqBC,eAAe,GAAGC,QAAAA,IAAYH;AAC3D,QAAMI,oBAAoB,OAAOP,WAAWQ;AAC5C,QAAMC,gBAAgB,OAAOC,OAAOF;AAEpCG,MAAI,mBAAA,QAAA;;;;;;AACJ,QAAMC,SAAS,IAAIC,OAAOP,OAAAA;AAC1BK,MAAI,uBAAA,QAAA;;;;;;AACJ,SAAcG,kBAAW,MAAMF,OAAOG,WAAU,CAAA;AAChDJ,MAAI,sBAAA,QAAA;;;;;;AACJ,MAAIP,qBAAqB;AACvB,WAAOA,oBAAoB;MAAEQ;IAAO,CAAA,EAAGI,KAC9BC,sBAAejB,WAAWQ,SAASD,iBAAAA,GACnCU,sBAAeP,OAAOF,SAASC,aAAAA,CAAAA;EAE1C;AACAE,MAAI,sCAAA,QAAA;;;;;;AAGJC,SAAOM,SAASC,GAAG,MAAA;AACjBP,WAAOQ,KAAKC,SAASC,UAAU,OAAOD,aAAAA;AACpC,UAAIA,UAAU;AACZE,eAAOC,SAASC,OAAOF,OAAOC,SAASE;MACzC;IACF,CAAA;EACF,CAAA;AAGA,QAAMC,eAAef,OAAOgB,OAAOC,QAAQP,UAAU,OAAOQ,UAAAA;AAC1D,QAAIA,OAAO;AACT,YAAaC,WAAI,aAAA;AACf,eAAOrB,OAAOsB,SAASC,aAAaC,WAAW;AAC/C,YAAI7B,eAAe;AACjB,iBAAOA,cAAc;YAAEO;UAAO,CAAA;QAChC;MACF,CAAA,EAAGI,KACMC,sBAAejB,WAAWQ,SAASD,iBAAAA,GACnCU,sBAAeP,OAAOF,SAASC,aAAAA,GACtC0B,mBAAAA;IAEJ;EACF,CAAA;AAEAxB,MAAI,2BAAA,QAAA;;;;;;AAEJ,SAAO;;;IAGLX,WAAWoC,YAAYC,mBAAmBxB,QAAQD,QAAQ,MACjDmB,WAAI,aAAA;AACTJ,mBAAaW,YAAW;AACxB,aAAcxB,kBAAW,MAAMF,OAAO2B,QAAO,CAAA;IAC/C,CAAA,CAAA;IAEFvC,WAAWoC,YAAYI,OAAOxC,WAAWyC,OAAOC,cAAcC,WAAW/B,MAAAA,CAAAA;;AAE7E,CAAA,CAAA;",
|
|
6
|
-
"names": ["Effect", "Capability", "Common", "Plugin", "Client", "ClientService", "runAndForwardErrors", "log", "Capability", "makeModule", "fnUntraced", "props", "onClientInitialized", "onSpacesReady", "options", "capabilityManager", "Service", "pluginManager", "Plugin", "log", "client", "Client", "tryPromise", "initialize", "pipe", "provideService", "reloaded", "on", "halo", "identity", "subscribe", "window", "location", "href", "origin", "subscription", "spaces", "isReady", "ready", "gen", "activate", "ClientEvents", "SpacesReady", "runAndForwardErrors", "contributes", "ClientCapabilities", "unsubscribe", "destroy", "Common", "Layer", "ClientService", "fromClient"]
|
|
7
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ClientCapabilities
|
|
3
|
-
} from "./chunk-4BZGRIFS.mjs";
|
|
4
|
-
|
|
5
|
-
// src/capabilities/migrations/migrations.ts
|
|
6
|
-
import * as Effect from "effect/Effect";
|
|
7
|
-
import { Capability, Common } from "@dxos/app-framework";
|
|
8
|
-
var migrations_default = Capability.makeModule(Effect.fnUntraced(function* () {
|
|
9
|
-
const registry = yield* Capability.get(Common.Capability.AtomRegistry);
|
|
10
|
-
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
11
|
-
const migrationsAtom = yield* Capability.atom(ClientCapabilities.Migration);
|
|
12
|
-
const cancel = registry.subscribe(migrationsAtom, (_migrations) => {
|
|
13
|
-
const migrations = Array.from(new Set(_migrations.flat()));
|
|
14
|
-
const spaces = client.spaces.get();
|
|
15
|
-
void Promise.all(spaces.map((space) => space.internal.db.runMigrations(migrations)));
|
|
16
|
-
}, {
|
|
17
|
-
immediate: true
|
|
18
|
-
});
|
|
19
|
-
return Capability.contributes(Common.Capability.Null, null, () => Effect.sync(() => cancel()));
|
|
20
|
-
}));
|
|
21
|
-
export {
|
|
22
|
-
migrations_default as default
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=migrations-3EBTAW3N.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/migrations/migrations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability, Common } from '@dxos/app-framework';\n\nimport { ClientCapabilities } from '../../types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const registry = yield* Capability.get(Common.Capability.AtomRegistry);\n const client = yield* Capability.get(ClientCapabilities.Client);\n const migrationsAtom = yield* Capability.atom(ClientCapabilities.Migration);\n\n // NOTE: Migrations are currently unidirectional and idempotent.\n const cancel = registry.subscribe(\n migrationsAtom,\n (_migrations: any[]) => {\n const migrations = Array.from(new Set(_migrations.flat()));\n const spaces = client.spaces.get();\n void Promise.all(spaces.map((space: any) => space.internal.db.runMigrations(migrations)));\n },\n { immediate: true },\n );\n\n return Capability.contributes(Common.Capability.Null, null, () => Effect.sync(() => cancel()));\n }),\n);\n"],
|
|
5
|
-
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,YAAYC,cAAc;AAInC,IAAA,qBAAeC,WAAWC,WACjBC,kBAAW,aAAA;AAChB,QAAMC,WAAW,OAAOH,WAAWI,IAAIC,OAAOL,WAAWM,YAAY;AACrE,QAAMC,SAAS,OAAOP,WAAWI,IAAII,mBAAmBC,MAAM;AAC9D,QAAMC,iBAAiB,OAAOV,WAAWW,KAAKH,mBAAmBI,SAAS;AAG1E,QAAMC,SAASV,SAASW,UACtBJ,gBACA,CAACK,gBAAAA;AACC,UAAMC,aAAaC,MAAMC,KAAK,IAAIC,IAAIJ,YAAYK,KAAI,CAAA,CAAA;AACtD,UAAMC,SAASd,OAAOc,OAAOjB,IAAG;AAChC,SAAKkB,QAAQC,IAAIF,OAAOG,IAAI,CAACC,UAAeA,MAAMC,SAASC,GAAGC,cAAcZ,UAAAA,CAAAA,CAAAA;EAC9E,GACA;IAAEa,WAAW;EAAK,CAAA;AAGpB,SAAO7B,WAAW8B,YAAYzB,OAAOL,WAAW+B,MAAM,MAAM,MAAaC,YAAK,MAAMnB,OAAAA,CAAAA,CAAAA;AACtF,CAAA,CAAA;",
|
|
6
|
-
"names": ["Effect", "Capability", "Common", "Capability", "makeModule", "fnUntraced", "registry", "get", "Common", "AtomRegistry", "client", "ClientCapabilities", "Client", "migrationsAtom", "atom", "Migration", "cancel", "subscribe", "_migrations", "migrations", "Array", "from", "Set", "flat", "spaces", "Promise", "all", "map", "space", "internal", "db", "runMigrations", "immediate", "contributes", "Null", "sync"]
|
|
7
|
-
}
|