@dxos/plugin-client 0.8.4-main.ae835ea → 0.8.4-main.bc674ce
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/app-graph-builder-3FGBMLTF.mjs +118 -0
- package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs.map +7 -0
- package/dist/lib/browser/chunk-4BZGRIFS.mjs +293 -0
- package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +7 -0
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs +18 -0
- package/dist/lib/browser/chunk-F7H2Y3Z2.mjs.map +7 -0
- package/dist/lib/browser/chunk-G7C3S2BE.mjs +15 -0
- package/dist/lib/browser/chunk-G7C3S2BE.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +1048 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/client-IX5LMWV4.mjs +86 -0
- package/dist/lib/browser/client-IX5LMWV4.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +73 -83
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/migrations-3EBTAW3N.mjs +24 -0
- package/dist/lib/browser/migrations-3EBTAW3N.mjs.map +7 -0
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs +298 -0
- package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs.map +7 -0
- package/dist/lib/browser/react-context-4UABG3GP.mjs +24 -0
- package/dist/lib/browser/react-context-4UABG3GP.mjs.map +7 -0
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs +675 -0
- package/dist/lib/browser/react-surface-RSQ74XCT.mjs.map +7 -0
- package/dist/lib/browser/schema-defs-O7VLP745.mjs +26 -0
- package/dist/lib/browser/schema-defs-O7VLP745.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +9 -4
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs +119 -0
- package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs +20 -0
- package/dist/lib/node-esm/chunk-BCELGXRI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs +295 -0
- package/dist/lib/node-esm/chunk-JAF64TFQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs +16 -0
- package/dist/lib/node-esm/chunk-PRAFFO54.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +1049 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/client-FFPK5UFP.mjs +87 -0
- package/dist/lib/node-esm/client-FFPK5UFP.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +73 -83
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs +25 -0
- package/dist/lib/node-esm/migrations-WSZSFGDK.mjs.map +7 -0
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs +299 -0
- package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs.map +7 -0
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs +25 -0
- package/dist/lib/node-esm/react-context-UVXMGPW4.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs +676 -0
- package/dist/lib/node-esm/react-surface-KBHANGGC.mjs.map +7 -0
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs +27 -0
- package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +9 -4
- package/dist/types/src/ClientPlugin.d.ts +2 -1
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/client/client.d.ts +8 -0
- package/dist/types/src/capabilities/client/client.d.ts.map +1 -0
- package/dist/types/src/capabilities/client/index.d.ts +17 -0
- package/dist/types/src/capabilities/client/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +7 -19
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations/index.d.ts +3 -0
- package/dist/types/src/capabilities/migrations/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/migrations/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations/migrations.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +8 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
- package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
- package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-defs/index.d.ts +3 -0
- package/dist/types/src/capabilities/schema-defs/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +5 -0
- package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/index.d.ts +5 -0
- package/dist/types/src/cli/commands/config/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/config/view.d.ts +5 -0
- package/dist/types/src/cli/commands/config/view.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/index.d.ts +7 -0
- package/dist/types/src/cli/commands/device/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/info/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/info.d.ts +7 -0
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/info/info.test.d.ts +2 -0
- package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/list.d.ts +7 -0
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/update/index.d.ts +2 -0
- package/dist/types/src/cli/commands/device/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/update/update.d.ts +11 -0
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -0
- package/dist/types/src/cli/commands/device/util.d.ts +16 -0
- package/dist/types/src/cli/commands/device/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/edge/index.d.ts +5 -0
- package/dist/types/src/cli/commands/edge/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/edge/status.d.ts +7 -0
- package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/create.d.ts +15 -0
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/create/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/create/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts +13 -0
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/index.d.ts +12 -0
- package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +19 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/identity/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/index.d.ts +3 -0
- package/dist/types/src/cli/commands/halo/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/join/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/join.d.ts +8 -0
- package/dist/types/src/cli/commands/halo/join/join.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/seed/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts +7 -0
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/share/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/share/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/share/share.d.ts +15 -0
- package/dist/types/src/cli/commands/halo/share/share.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/index.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/update/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/update.d.ts +11 -0
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts +2 -0
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +1 -0
- package/dist/types/src/cli/commands/halo/util.d.ts +13 -0
- package/dist/types/src/cli/commands/halo/util.d.ts.map +1 -0
- package/dist/types/src/cli/commands/index.d.ts +6 -0
- package/dist/types/src/cli/commands/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/create.d.ts +9 -0
- package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/delete.d.ts +8 -0
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/import.d.ts +17 -0
- package/dist/types/src/cli/commands/profile/import.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/index.d.ts +19 -0
- package/dist/types/src/cli/commands/profile/index.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/inspect.d.ts +13 -0
- package/dist/types/src/cli/commands/profile/inspect.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/list.d.ts +6 -0
- package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/reset.d.ts +8 -0
- package/dist/types/src/cli/commands/profile/reset.d.ts.map +1 -0
- package/dist/types/src/cli/commands/profile/util.d.ts +24 -0
- package/dist/types/src/cli/commands/profile/util.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +4 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/cli/testing/test-console.d.ts +37 -0
- package/dist/types/src/cli/testing/test-console.d.ts.map +1 -0
- package/dist/types/src/components/DevicesContainer.d.ts.map +1 -1
- package/dist/types/src/components/DevicesContainer.stories.d.ts +2 -48
- package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/JoinDialog.d.ts +0 -1
- package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/components/ProfileContainer.d.ts.map +1 -1
- package/dist/types/src/components/ProfileContainer.stories.d.ts +1 -47
- package/dist/types/src/components/ProfileContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts +0 -1
- package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts +1 -47
- package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -1
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts +1 -47
- package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResetDialog.d.ts +5 -3
- package/dist/types/src/components/ResetDialog.d.ts.map +1 -1
- package/dist/types/src/components/ResetDialog.stories.d.ts +3 -49
- package/dist/types/src/components/ResetDialog.stories.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +4 -0
- package/dist/types/src/constants.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +2 -48
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +10 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +9 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +163 -9
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +52 -37
- package/src/ClientPlugin.ts +35 -53
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +95 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/client/client.ts +75 -0
- package/src/capabilities/client/index.ts +7 -0
- package/src/capabilities/index.ts +7 -11
- package/src/capabilities/migrations/index.ts +7 -0
- package/src/capabilities/migrations/migrations.ts +30 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +248 -0
- package/src/capabilities/react-context/index.ts +7 -0
- package/src/capabilities/react-context/react-context.tsx +25 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +74 -0
- package/src/capabilities/schema-defs/index.ts +7 -0
- package/src/capabilities/schema-defs/schema-defs.ts +35 -0
- package/src/cli/commands/config/index.ts +12 -0
- package/src/cli/commands/config/view.ts +26 -0
- package/src/cli/commands/device/index.ts +14 -0
- package/src/cli/commands/device/info/index.ts +5 -0
- package/src/cli/commands/device/info/info.test.ts +29 -0
- package/src/cli/commands/device/info/info.ts +50 -0
- package/src/cli/commands/device/list/index.ts +5 -0
- package/src/cli/commands/device/list/list.test.ts +31 -0
- package/src/cli/commands/device/list/list.ts +30 -0
- package/src/cli/commands/device/update/index.ts +5 -0
- package/src/cli/commands/device/update/update.ts +70 -0
- package/src/cli/commands/device/util.ts +55 -0
- package/src/cli/commands/edge/index.ts +12 -0
- package/src/cli/commands/edge/status.ts +45 -0
- package/src/cli/commands/halo/create/create.test.ts +52 -0
- package/src/cli/commands/halo/create/create.ts +75 -0
- package/src/cli/commands/halo/create/index.ts +5 -0
- package/src/cli/commands/halo/credential/add/add.ts +97 -0
- package/src/cli/commands/halo/credential/add/index.ts +5 -0
- package/src/cli/commands/halo/credential/index.ts +13 -0
- package/src/cli/commands/halo/credential/list/index.ts +5 -0
- package/src/cli/commands/halo/credential/list/list.test.ts +28 -0
- package/src/cli/commands/halo/credential/list/list.ts +118 -0
- package/src/cli/commands/halo/identity/identity.test.ts +40 -0
- package/src/cli/commands/halo/identity/identity.ts +46 -0
- package/src/cli/commands/halo/identity/index.ts +5 -0
- package/src/cli/commands/halo/index.ts +21 -0
- package/src/cli/commands/halo/join/index.ts +5 -0
- package/src/cli/commands/halo/join/join.test.ts +10 -0
- package/src/cli/commands/halo/join/join.ts +87 -0
- package/src/cli/commands/halo/keys/index.ts +5 -0
- package/src/cli/commands/halo/keys/keys.test.ts +29 -0
- package/src/cli/commands/halo/keys/keys.ts +42 -0
- package/src/cli/commands/halo/recover/index.ts +5 -0
- package/src/cli/commands/halo/recover/recover.test.ts +10 -0
- package/src/cli/commands/halo/recover/recover.ts +44 -0
- package/src/cli/commands/halo/seed/index.ts +5 -0
- package/src/cli/commands/halo/seed/seed.ts +38 -0
- package/src/cli/commands/halo/share/index.ts +5 -0
- package/src/cli/commands/halo/share/share.ts +97 -0
- package/src/cli/commands/halo/update/index.ts +5 -0
- package/src/cli/commands/halo/update/update.test.ts +29 -0
- package/src/cli/commands/halo/update/update.ts +69 -0
- package/src/cli/commands/halo/util.ts +18 -0
- package/src/cli/commands/index.ts +9 -0
- package/src/cli/commands/profile/create.ts +87 -0
- package/src/cli/commands/profile/delete.ts +33 -0
- package/src/cli/commands/profile/import.ts +101 -0
- package/src/cli/commands/profile/index.ts +17 -0
- package/src/cli/commands/profile/inspect.ts +64 -0
- package/src/cli/commands/profile/list.ts +54 -0
- package/src/cli/commands/profile/reset.ts +45 -0
- package/src/cli/commands/profile/util.ts +48 -0
- package/src/cli/index.ts +5 -0
- package/src/cli/plugin.ts +33 -0
- package/src/cli/testing/test-console.ts +88 -0
- package/src/components/DevicesContainer.stories.tsx +7 -5
- package/src/components/DevicesContainer.tsx +13 -11
- package/src/components/JoinDialog.tsx +13 -15
- package/src/components/ProfileContainer.tsx +48 -34
- package/src/components/RecoveryCodeDialog.tsx +3 -5
- package/src/components/RecoveryCredentialsContainer.stories.tsx +7 -5
- package/src/components/RecoveryCredentialsContainer.tsx +6 -8
- package/src/components/ResetDialog.stories.tsx +17 -9
- package/src/components/ResetDialog.tsx +17 -16
- package/src/constants.ts +9 -0
- package/src/index.ts +1 -2
- package/src/meta.ts +2 -2
- package/src/translations.ts +5 -2
- package/src/types/capabilities.ts +16 -0
- package/src/types/events.ts +15 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +120 -7
- package/dist/lib/browser/app-graph-builder-KCCH45OW.mjs +0 -124
- package/dist/lib/browser/app-graph-builder-KCCH45OW.mjs.map +0 -7
- package/dist/lib/browser/chunk-4LRO3Y2O.mjs +0 -19
- package/dist/lib/browser/chunk-4LRO3Y2O.mjs.map +0 -7
- package/dist/lib/browser/chunk-N5UR2HOE.mjs +0 -18
- package/dist/lib/browser/chunk-N5UR2HOE.mjs.map +0 -7
- package/dist/lib/browser/chunk-RDIG75CA.mjs +0 -110
- package/dist/lib/browser/chunk-RDIG75CA.mjs.map +0 -7
- package/dist/lib/browser/chunk-SCNW6KMG.mjs +0 -686
- package/dist/lib/browser/chunk-SCNW6KMG.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZRVMXLDR.mjs +0 -15
- package/dist/lib/browser/chunk-ZRVMXLDR.mjs.map +0 -7
- package/dist/lib/browser/client-O7U3MQ6J.mjs +0 -43
- package/dist/lib/browser/client-O7U3MQ6J.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-SPZU2X4O.mjs +0 -305
- package/dist/lib/browser/intent-resolver-SPZU2X4O.mjs.map +0 -7
- package/dist/lib/browser/migrations-FQYDKKYO.mjs +0 -23
- package/dist/lib/browser/migrations-FQYDKKYO.mjs.map +0 -7
- package/dist/lib/browser/react-context-QCKETSRF.mjs +0 -24
- package/dist/lib/browser/react-context-QCKETSRF.mjs.map +0 -7
- package/dist/lib/browser/react-surface-SLGNIGL6.mjs +0 -66
- package/dist/lib/browser/react-surface-SLGNIGL6.mjs.map +0 -7
- package/dist/lib/browser/schema-defs-SPPWTZRH.mjs +0 -25
- package/dist/lib/browser/schema-defs-SPPWTZRH.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-B5IOYV4W.mjs +0 -125
- package/dist/lib/node-esm/app-graph-builder-B5IOYV4W.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6ANOJ7ZM.mjs +0 -19
- package/dist/lib/node-esm/chunk-6ANOJ7ZM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-7M7VWQJW.mjs +0 -20
- package/dist/lib/node-esm/chunk-7M7VWQJW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QT3EQXDU.mjs +0 -17
- package/dist/lib/node-esm/chunk-QT3EQXDU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RHMYXMKB.mjs +0 -687
- package/dist/lib/node-esm/chunk-RHMYXMKB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VENKFPBC.mjs +0 -111
- package/dist/lib/node-esm/chunk-VENKFPBC.mjs.map +0 -7
- package/dist/lib/node-esm/client-6MTNT7M6.mjs +0 -44
- package/dist/lib/node-esm/client-6MTNT7M6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-4HEQTR5X.mjs +0 -306
- package/dist/lib/node-esm/intent-resolver-4HEQTR5X.mjs.map +0 -7
- package/dist/lib/node-esm/migrations-2D5ENOAB.mjs +0 -24
- package/dist/lib/node-esm/migrations-2D5ENOAB.mjs.map +0 -7
- package/dist/lib/node-esm/react-context-ZVUDFBCH.mjs +0 -25
- package/dist/lib/node-esm/react-context-ZVUDFBCH.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-FFOAE7HL.mjs +0 -67
- package/dist/lib/node-esm/react-surface-FFOAE7HL.mjs.map +0 -7
- package/dist/lib/node-esm/schema-defs-FIV7SETB.mjs +0 -26
- package/dist/lib/node-esm/schema-defs-FIV7SETB.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -9
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/client.d.ts +0 -9
- package/dist/types/src/capabilities/client.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -8
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/migrations.d.ts +0 -4
- package/dist/types/src/capabilities/migrations.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-context.d.ts +0 -8
- package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -8
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/schema-defs.d.ts +0 -4
- package/dist/types/src/capabilities/schema-defs.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -8
- package/dist/types/src/events.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -115
- package/src/capabilities/capabilities.ts +0 -18
- package/src/capabilities/client.ts +0 -43
- package/src/capabilities/intent-resolver.ts +0 -251
- package/src/capabilities/migrations.ts +0 -25
- package/src/capabilities/react-context.tsx +0 -21
- package/src/capabilities/react-surface.tsx +0 -67
- package/src/capabilities/schema-defs.ts +0 -29
- package/src/events.ts +0 -15
|
@@ -0,0 +1,118 @@
|
|
|
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
|
|
@@ -0,0 +1,7 @@
|
|
|
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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AiB;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
|
+
}
|
|
@@ -0,0 +1,293 @@
|
|
|
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
|
|
@@ -0,0 +1,7 @@
|
|
|
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": ";AAIA,SAASA,kBAAkB;;;ACC3B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P,KAAK,GAAGwB,gBAAAA;MAAiCI,MAAM;IAAe;IACtEC,UAAU;MAACC,YAAWC;;IACtBC,QAAQ;MACNvB,OAAcrB,cAAO;QACnBmC,OAAc3B;MAChB,CAAA;MACAc,QAAeG;IACjB;EACF,CAAA;AACF,GAtGiBY,oBAAAA,kBAAAA,CAAAA,EAAAA;UAsIAQ,UAAAA;AAEf,QAAMC,MAAM;WAGC1B,KAAK,IAAI0B,GAAAA;WAETC,UAAU,GAAGD,GAAAA;WACbE,UAAU,GAAGF,GAAAA;WACbG,WAAW,GAAGH,GAAAA;AAC7B,GAViBD,YAAAA,UAAAA,CAAAA,EAAAA;;;;",
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
+
}
|