@dxos/plugin-client 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{chunk-WNJRYPGG.mjs → chunk-M37DHX5L.mjs} +1 -1
- package/dist/lib/browser/{chunk-WNJRYPGG.mjs.map → chunk-M37DHX5L.mjs.map} +2 -2
- package/dist/lib/browser/{chunk-M43LJQ5U.mjs → chunk-RPMM5NKJ.mjs} +2 -2
- package/dist/lib/browser/chunk-RPMM5NKJ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ELAYKIQU.mjs → chunk-VAIJSQYA.mjs} +1 -1
- package/dist/lib/browser/{chunk-ELAYKIQU.mjs.map → chunk-VAIJSQYA.mjs.map} +2 -2
- package/dist/lib/browser/{create-agent-SS5SE35J.mjs → create-agent-JV3EM3TV.mjs} +5 -13
- package/dist/lib/browser/create-agent-JV3EM3TV.mjs.map +7 -0
- package/dist/lib/browser/{create-identity-PBEUEIPN.mjs → create-identity-ZITQKEVZ.mjs} +4 -4
- package/dist/lib/browser/create-identity-ZITQKEVZ.mjs.map +7 -0
- package/dist/lib/browser/{create-passkey-JN6I5WMM.mjs → create-passkey-NCP4XA7C.mjs} +7 -31
- package/dist/lib/browser/create-passkey-NCP4XA7C.mjs.map +7 -0
- package/dist/lib/browser/{create-recovery-code-32I6IWZC.mjs → create-recovery-code-L5LA3GAP.mjs} +6 -14
- package/dist/lib/browser/create-recovery-code-L5LA3GAP.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +7 -127
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/{join-identity-2BP4G2SD.mjs → join-identity-3W6PJLKN.mjs} +4 -4
- package/dist/lib/browser/{join-identity-2BP4G2SD.mjs.map → join-identity-3W6PJLKN.mjs.map} +1 -1
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +3 -3
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{recover-identity-LS6B5INB.mjs → recover-identity-KL6QY4GI.mjs} +4 -4
- package/dist/lib/browser/{recover-identity-LS6B5INB.mjs.map → recover-identity-KL6QY4GI.mjs.map} +1 -1
- package/dist/lib/browser/{redeem-passkey-OCIV6VCK.mjs → redeem-passkey-NDEWSJTM.mjs} +6 -22
- package/dist/lib/browser/redeem-passkey-NDEWSJTM.mjs.map +7 -0
- package/dist/lib/browser/{redeem-token-6BCRGKV6.mjs → redeem-token-YLWAVFXD.mjs} +5 -13
- package/dist/lib/browser/redeem-token-YLWAVFXD.mjs.map +7 -0
- package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs → reset-storage-OBHEGA6Z.mjs} +4 -4
- package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs.map → reset-storage-OBHEGA6Z.mjs.map} +1 -1
- package/dist/lib/browser/{share-identity-YJEBJTPA.mjs → share-identity-FTFHFSZQ.mjs} +4 -4
- package/dist/lib/browser/{share-identity-YJEBJTPA.mjs.map → share-identity-FTFHFSZQ.mjs.map} +1 -1
- package/dist/lib/browser/testing/index.mjs.map +2 -2
- package/dist/lib/browser/translations.mjs +74 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node-esm/{chunk-SJ6FDER5.mjs → chunk-G77YYPR6.mjs} +2 -2
- package/dist/lib/node-esm/chunk-G77YYPR6.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs → chunk-OHKM7GJW.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs.map → chunk-OHKM7GJW.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs → chunk-UBY7FBQ7.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs.map → chunk-UBY7FBQ7.mjs.map} +2 -2
- package/dist/lib/node-esm/{create-agent-QGEHMHBL.mjs → create-agent-Y4BPVDV7.mjs} +5 -13
- package/dist/lib/node-esm/create-agent-Y4BPVDV7.mjs.map +7 -0
- package/dist/lib/node-esm/{create-identity-EHRJQOO4.mjs → create-identity-367SQSX6.mjs} +4 -4
- package/dist/lib/node-esm/create-identity-367SQSX6.mjs.map +7 -0
- package/dist/lib/node-esm/{create-passkey-PFBHHBEQ.mjs → create-passkey-WMWK2ETT.mjs} +7 -31
- package/dist/lib/node-esm/create-passkey-WMWK2ETT.mjs.map +7 -0
- package/dist/lib/node-esm/{create-recovery-code-HBAM2A72.mjs → create-recovery-code-VJGE5HJL.mjs} +6 -14
- package/dist/lib/node-esm/create-recovery-code-VJGE5HJL.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +7 -127
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs → join-identity-IRIRO2VT.mjs} +4 -4
- package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs.map → join-identity-IRIRO2VT.mjs.map} +1 -1
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +3 -3
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs → recover-identity-LJCY4BCJ.mjs} +4 -4
- package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs.map → recover-identity-LJCY4BCJ.mjs.map} +1 -1
- package/dist/lib/node-esm/{redeem-passkey-FZO3LZ57.mjs → redeem-passkey-PT7QWFJE.mjs} +6 -22
- package/dist/lib/node-esm/redeem-passkey-PT7QWFJE.mjs.map +7 -0
- package/dist/lib/node-esm/{redeem-token-IHHIAIQ2.mjs → redeem-token-BHKHEXJM.mjs} +5 -13
- package/dist/lib/node-esm/redeem-token-BHKHEXJM.mjs.map +7 -0
- package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs → reset-storage-VPUZJOUV.mjs} +4 -4
- package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs.map → reset-storage-VPUZJOUV.mjs.map} +1 -1
- package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs → share-identity-SZ3REIRC.mjs} +4 -4
- package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs.map → share-identity-SZ3REIRC.mjs.map} +1 -1
- package/dist/lib/node-esm/testing/index.mjs.map +2 -2
- package/dist/lib/node-esm/translations.mjs +75 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/ClientPlugin.d.ts +1 -0
- package/dist/types/src/ClientPlugin.d.ts.map +1 -1
- package/dist/types/src/{cli/plugin.d.ts → ClientPlugin.node.d.ts} +2 -1
- package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ClientPlugin.test.d.ts +2 -0
- package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/client.d.ts +1 -1
- package/dist/types/src/capabilities/client.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +13 -13
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +13 -13
- package/dist/types/src/capabilities/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
- package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
- package/dist/types/src/commands/config/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
- package/dist/types/src/commands/config/view.d.ts.map +1 -0
- package/dist/types/src/commands/device/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
- package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
- package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
- package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
- package/dist/types/src/commands/device/util.d.ts.map +1 -0
- package/dist/types/src/commands/edge/index.d.ts.map +1 -0
- package/dist/types/src/commands/edge/status.d.ts.map +1 -0
- package/dist/types/src/commands/halo/create/create.d.ts +15 -0
- package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
- package/dist/types/src/commands/halo/create/create.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +2 -2
- package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
- package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
- package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
- package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
- package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
- package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
- package/dist/types/src/commands/halo/util.d.ts.map +1 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
- package/dist/types/src/commands/profile/create.d.ts.map +1 -0
- package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
- package/dist/types/src/commands/profile/import.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
- package/dist/types/src/commands/profile/index.d.ts.map +1 -0
- package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
- package/dist/types/src/commands/profile/list.d.ts.map +1 -0
- package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
- package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
- package/dist/types/src/commands/profile/util.d.ts.map +1 -0
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -165
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
- package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +1 -1
- package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-agent.d.ts +1 -1
- package/dist/types/src/operations/create-agent.d.ts.map +1 -1
- package/dist/types/src/operations/create-identity.d.ts +1 -1
- package/dist/types/src/operations/create-identity.d.ts.map +1 -1
- package/dist/types/src/operations/create-passkey.d.ts +1 -1
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
- package/dist/types/src/operations/create-recovery-code.d.ts +1 -1
- package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +1 -1
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/join-identity.d.ts +1 -1
- package/dist/types/src/operations/join-identity.d.ts.map +1 -1
- package/dist/types/src/operations/recover-identity.d.ts +1 -1
- package/dist/types/src/operations/recover-identity.d.ts.map +1 -1
- package/dist/types/src/operations/redeem-passkey.d.ts +1 -1
- package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -1
- package/dist/types/src/operations/redeem-token.d.ts +1 -1
- package/dist/types/src/operations/redeem-token.d.ts.map +1 -1
- package/dist/types/src/operations/reset-storage.d.ts +1 -1
- package/dist/types/src/operations/reset-storage.d.ts.map +1 -1
- package/dist/types/src/operations/share-identity.d.ts +1 -1
- package/dist/types/src/operations/share-identity.d.ts.map +1 -1
- package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +1 -2
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +51 -58
- package/src/{cli/plugin.ts → ClientPlugin.node.ts} +4 -2
- package/src/ClientPlugin.test.ts +29 -0
- package/src/ClientPlugin.ts +6 -5
- package/src/capabilities/app-graph-builder.ts +1 -1
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
- package/src/capabilities/node.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +13 -16
- package/src/capabilities/schema-defs.ts +29 -9
- package/src/{cli/commands → commands}/halo/create/create.test.ts +8 -3
- package/src/{cli/commands → commands}/halo/create/create.ts +1 -2
- package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +1 -1
- package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
- package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +2 -1
- package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +2 -1
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +1 -1
- package/src/containers/ResetDialog/ResetDialog.stories.tsx +2 -1
- package/src/index.ts +5 -1
- package/src/operations/create-agent.ts +1 -1
- package/src/operations/create-identity.ts +1 -1
- package/src/operations/create-passkey.ts +1 -1
- package/src/operations/create-recovery-code.ts +1 -1
- package/src/operations/definitions.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/join-identity.ts +1 -1
- package/src/operations/recover-identity.ts +1 -1
- package/src/operations/redeem-passkey.ts +1 -1
- package/src/operations/redeem-token.ts +1 -1
- package/src/operations/reset-storage.ts +1 -1
- package/src/operations/share-identity.ts +1 -1
- package/src/translations.ts +2 -3
- package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +0 -7
- package/dist/lib/browser/cli/index.mjs +0 -1060
- package/dist/lib/browser/cli/index.mjs.map +0 -7
- package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +0 -7
- package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +0 -7
- package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +0 -7
- package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +0 -7
- package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +0 -7
- package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +0 -7
- package/dist/lib/node-esm/cli/index.mjs +0 -1061
- package/dist/lib/node-esm/cli/index.mjs.map +0 -7
- package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +0 -7
- package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +0 -7
- package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +0 -7
- package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +0 -7
- package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +0 -7
- package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +0 -7
- package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
- package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
- package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/create.d.ts +0 -15
- package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
- package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
- package/dist/types/src/cli/commands/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
- package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
- package/dist/types/src/cli/index.d.ts +0 -2
- package/dist/types/src/cli/index.d.ts.map +0 -1
- package/dist/types/src/cli/plugin.d.ts.map +0 -1
- package/dist/types/src/cli/testing/test-console.d.ts +0 -37
- package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
- package/src/cli/index.ts +0 -5
- package/src/cli/testing/test-console.ts +0 -87
- /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
- /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
- /package/src/{cli/commands → commands}/config/index.ts +0 -0
- /package/src/{cli/commands → commands}/config/view.ts +0 -0
- /package/src/{cli/commands → commands}/device/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/info.test.ts +0 -0
- /package/src/{cli/commands → commands}/device/info/info.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/list.test.ts +0 -0
- /package/src/{cli/commands → commands}/device/list/list.ts +0 -0
- /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
- /package/src/{cli/commands → commands}/device/update/update.ts +0 -0
- /package/src/{cli/commands → commands}/device/util.ts +0 -0
- /package/src/{cli/commands → commands}/edge/index.ts +0 -0
- /package/src/{cli/commands → commands}/edge/status.ts +0 -0
- /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/credential/list/list.ts +0 -0
- /package/src/{cli/commands → commands}/halo/identity/identity.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/identity/identity.ts +0 -0
- /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/join/join.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/recover/recover.ts +0 -0
- /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -0
- /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
- /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
- /package/src/{cli/commands → commands}/halo/update/update.test.ts +0 -0
- /package/src/{cli/commands → commands}/halo/update/update.ts +0 -0
- /package/src/{cli/commands → commands}/halo/util.ts +0 -0
- /package/src/{cli/commands → commands}/index.ts +0 -0
- /package/src/{cli/commands → commands}/profile/create.ts +0 -0
- /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
- /package/src/{cli/commands → commands}/profile/import.ts +0 -0
- /package/src/{cli/commands → commands}/profile/index.ts +0 -0
- /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
- /package/src/{cli/commands → commands}/profile/list.ts +0 -0
- /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
- /package/src/{cli/commands → commands}/profile/util.ts +0 -0
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
|
|
4
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.AnyEntity[]>(`${meta.id}.capability.schema`);\n export const Migration = Capability.make<ObjectMigration[]>(`${meta.id}.capability.migration`);\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';\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\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base origin for the invitation link.\n */\n shareableLinkOrigin?: string;\n\n /**\n * Path for the invitation link.\n */\n invitationPath?: 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;AAK3B,SAASC,YAAY;UAEJC,qBAAAA;sBACFC,
|
|
6
|
-
"names": ["Capability", "meta", "ClientCapabilities", "Client", "
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Capability", "meta", "ClientCapabilities", "Client", "make", "id", "Schema", "Migration", "ActivationEvent", "meta", "ClientEvents", "ClientReady", "make", "id", "SetupSchema", "SetupMigration", "IdentityCreated", "SpacesReady", "Schema", "PublicKey", "meta", "IdentitySchema", "Struct", "identityKey", "instanceOf", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ClientAction", "ProfileSchema", "CreateIdentity", "TaggedClass", "id", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "Account", "_id", "Profile", "Devices", "Security"]
|
|
7
7
|
}
|
|
@@ -19,7 +19,7 @@ __export(definitions_exports, {
|
|
|
19
19
|
import * as Schema from "effect/Schema";
|
|
20
20
|
import { Capability } from "@dxos/app-framework";
|
|
21
21
|
import { PublicKey } from "@dxos/client";
|
|
22
|
-
import { Operation } from "@dxos/
|
|
22
|
+
import { Operation } from "@dxos/compute";
|
|
23
23
|
import { meta } from "#meta";
|
|
24
24
|
var CLIENT_OPERATION = `${meta.id}.operation`;
|
|
25
25
|
var IdentitySchema = Schema.Struct({
|
|
@@ -172,4 +172,4 @@ export {
|
|
|
172
172
|
RedeemToken,
|
|
173
173
|
definitions_exports
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=chunk-
|
|
175
|
+
//# sourceMappingURL=chunk-RPMM5NKJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { PublicKey } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\n\nimport { meta } from '#meta';\n\nconst CLIENT_OPERATION = `${meta.id}.operation`;\n\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\nconst 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\nexport const CreateIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-identity`, name: 'Create Identity' },\n services: [Capability.Service],\n input: ProfileSchema,\n output: IdentitySchema,\n});\n\nexport const JoinIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.join-identity`, name: 'Join Identity' },\n services: [Capability.Service],\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n});\n\nexport const ShareIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.share-identity`, name: 'Share Identity' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RecoverIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.recover-identity`, name: 'Recover Identity' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const ResetStorage = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.reset-storage`, name: 'Reset Storage' },\n services: [Capability.Service],\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n});\n\nexport const CreateAgent = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-agent`, name: 'Create Agent' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreateRecoveryCode = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-recovery-code`, name: 'Create Recovery Code' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreatePasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-passkey`, name: 'Create Passkey' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemPasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.redeem-passkey`, name: 'Redeem Passkey' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemToken = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.redeem-token`, name: 'Redeem Token' },\n services: [Capability.Service],\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n});\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Schema", "Capability", "PublicKey", "Operation", "meta", "CLIENT_OPERATION", "id", "IdentitySchema", "Struct", "identityKey", "instanceOf", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ProfileSchema", "CreateIdentity", "make", "name", "services", "Service", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token"]
|
|
7
|
+
}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/constants.ts"],
|
|
4
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": ";AAIA,SAASA,YAAY;AAEd,IAAMC,cAAc,
|
|
6
|
-
"names": ["meta", "JOIN_DIALOG", "
|
|
5
|
+
"mappings": ";AAIA,SAASA,YAAY;AAEd,IAAMC,cAAc,GAAGD,KAAKE,EAAE;AAC9B,IAAMC,uBAAuB,GAAGH,KAAKE,EAAE;AACvC,IAAME,eAAe,GAAGJ,KAAKE,EAAE;",
|
|
6
|
+
"names": ["meta", "JOIN_DIALOG", "id", "RECOVERY_CODE_DIALOG", "RESET_DIALOG"]
|
|
7
7
|
}
|
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateAgent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RPMM5NKJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ClientCapabilities
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M37DHX5L.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/create-agent.ts
|
|
10
10
|
import * as Effect from "effect/Effect";
|
|
11
11
|
import { Capability } from "@dxos/app-framework";
|
|
12
|
+
import { Operation } from "@dxos/compute";
|
|
12
13
|
import { invariant } from "@dxos/invariant";
|
|
13
|
-
import { Operation } from "@dxos/operation";
|
|
14
14
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-agent.ts";
|
|
15
15
|
var handler = CreateAgent.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
16
16
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
17
|
-
invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", {
|
|
18
|
-
F: __dxlog_file,
|
|
19
|
-
L: 18,
|
|
20
|
-
S: this,
|
|
21
|
-
A: [
|
|
22
|
-
"client.services.services.EdgeAgentService",
|
|
23
|
-
"'Missing EdgeAgentService'"
|
|
24
|
-
]
|
|
25
|
-
});
|
|
17
|
+
invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 12, S: this, A: ["client.services.services.EdgeAgentService", "'Missing EdgeAgentService'"] });
|
|
26
18
|
yield* Effect.promise(() => client.services.services.EdgeAgentService.createAgent(void 0, {
|
|
27
19
|
timeout: 1e4
|
|
28
20
|
}));
|
|
@@ -31,4 +23,4 @@ var create_agent_default = handler;
|
|
|
31
23
|
export {
|
|
32
24
|
create_agent_default as default
|
|
33
25
|
};
|
|
34
|
-
//# sourceMappingURL=create-agent-
|
|
26
|
+
//# sourceMappingURL=create-agent-JV3EM3TV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/create-agent.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { ClientCapabilities } from '../types';\nimport { CreateAgent } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateAgent> = CreateAgent.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.EdgeAgentService, 'Missing EdgeAgentService');\n yield* Effect.promise(() =>\n client.services.services.EdgeAgentService!.createAgent(undefined, { timeout: 10_000 }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAK1B,IAAA,eAA2DC;IAIrDC,UAAUC,YAAOC,KAASA,UAASC,YAAkB,kBAAA,aAAA;AACrD,QAAA,SAAcC,OAAQ,WACbF,IAAAA,mBAAkBC,MAAAA;YAA2CE,OAAS,SAAA,SAAA,kBAAA,4BAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,6CAAA,4BAAA,EAAA,CAAA;SAAO,eAAA,MAAA,OAAA,SAAA,SAAA,iBAAA,YAAA,QAAA;IAExF,SAAA;EAIJ,CAAA,CAAA;;;",
|
|
6
|
+
"names": ["Effect", "Capability", "Operation", "invariant", "CreateAgent", "invariant", "client", "services", "EdgeAgentService", "promise", "timeout"]
|
|
7
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreateIdentity
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RPMM5NKJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ClientCapabilities,
|
|
6
6
|
ClientEvents
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M37DHX5L.mjs";
|
|
8
8
|
import "./chunk-J5LGTIGS.mjs";
|
|
9
9
|
|
|
10
10
|
// src/operations/create-identity.ts
|
|
11
11
|
import * as Effect from "effect/Effect";
|
|
12
12
|
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
13
|
+
import { Operation } from "@dxos/compute";
|
|
13
14
|
import { runAndForwardErrors } from "@dxos/effect";
|
|
14
|
-
import { Operation } from "@dxos/operation";
|
|
15
15
|
import { ObservabilityOperation } from "@dxos/plugin-observability/operations";
|
|
16
16
|
var handler = CreateIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* (profile) {
|
|
17
17
|
const manager = yield* Capability.get(Capabilities.PluginManager);
|
|
@@ -27,4 +27,4 @@ var create_identity_default = handler;
|
|
|
27
27
|
export {
|
|
28
28
|
create_identity_default as default
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=create-identity-
|
|
30
|
+
//# sourceMappingURL=create-identity-ZITQKEVZ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/create-identity.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { ClientEvents } from '../types';\nimport { ClientCapabilities } from '../types';\nimport { CreateIdentity } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateIdentity> = CreateIdentity.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (profile) {\n const manager = yield* Capability.get(Capabilities.PluginManager);\n const client = yield* Capability.get(ClientCapabilities.Client);\n const data = yield* Effect.promise(() => client.halo.createIdentity(profile));\n yield* Effect.promise(() => runAndForwardErrors(manager.activate(ClientEvents.IdentityCreated)));\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.create' });\n return data;\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiB;AAC1B,SAASC,2BAA2B;AACpC,SAASC,8BAA8B;AAMvC,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBAAW,WAAWC,SAAO;AAClC,QAAMC,UAAU,OAAOC,WAAWC,IAAIC,aAAaC,aAAa;AAChE,QAAMC,SAAS,OAAOJ,WAAWC,IAAII,mBAAmBC,MAAM;AAC9D,QAAMC,OAAO,OAAcC,eAAQ,MAAMJ,OAAOK,KAAKC,eAAeZ,OAAAA,CAAAA;AACpE,SAAcU,eAAQ,MAAMG,oBAAoBZ,QAAQa,SAASC,aAAaC,eAAe,CAAA,CAAA;AAC7F,SAAOnB,UAAUoB,SAASC,uBAAuBC,WAAW;IAAEC,MAAM;EAAkB,CAAA;AACtF,SAAOX;AACT,CAAA,CAAA,CAAA;AAIJ,IAAA,0BAAef;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "Operation", "runAndForwardErrors", "ObservabilityOperation", "handler", "CreateIdentity", "pipe", "Operation", "withHandler", "fnUntraced", "profile", "manager", "Capability", "get", "Capabilities", "PluginManager", "client", "ClientCapabilities", "Client", "data", "promise", "halo", "createIdentity", "runAndForwardErrors", "activate", "ClientEvents", "IdentityCreated", "schedule", "ObservabilityOperation", "SendEvent", "name"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CreatePasskey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RPMM5NKJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ClientCapabilities
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M37DHX5L.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/create-passkey.ts
|
|
@@ -12,21 +12,13 @@ import * as Match from "effect/Match";
|
|
|
12
12
|
import { Capability } from "@dxos/app-framework";
|
|
13
13
|
import { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from "@dxos/app-toolkit";
|
|
14
14
|
import { PublicKey } from "@dxos/client";
|
|
15
|
+
import { Operation } from "@dxos/compute";
|
|
15
16
|
import { invariant } from "@dxos/invariant";
|
|
16
|
-
import { Operation } from "@dxos/operation";
|
|
17
17
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-passkey.ts";
|
|
18
18
|
var handler = CreatePasskey.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
19
19
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
20
20
|
const identity = client.halo.identity.get();
|
|
21
|
-
invariant(identity, "Identity not available", {
|
|
22
|
-
F: __dxlog_file,
|
|
23
|
-
L: 22,
|
|
24
|
-
S: this,
|
|
25
|
-
A: [
|
|
26
|
-
"identity",
|
|
27
|
-
"'Identity not available'"
|
|
28
|
-
]
|
|
29
|
-
});
|
|
21
|
+
invariant(identity, "Identity not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 16, S: this, A: ["identity", "'Identity not available'"] });
|
|
30
22
|
const lookupKey = PublicKey.random();
|
|
31
23
|
const { recoveryKey, algorithm } = yield* Match.value(supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
|
|
32
24
|
const result = yield* Effect.promise(() => createNativePasskey({
|
|
@@ -67,29 +59,13 @@ var handler = CreatePasskey.pipe(Operation.withHandler(Effect.fnUntraced(functio
|
|
|
67
59
|
}
|
|
68
60
|
}
|
|
69
61
|
}));
|
|
70
|
-
invariant(credential, "Credential not available", {
|
|
71
|
-
F: __dxlog_file,
|
|
72
|
-
L: 65,
|
|
73
|
-
S: this,
|
|
74
|
-
A: [
|
|
75
|
-
"credential",
|
|
76
|
-
"'Credential not available'"
|
|
77
|
-
]
|
|
78
|
-
});
|
|
62
|
+
invariant(credential, "Credential not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 57, S: this, A: ["credential", "'Credential not available'"] });
|
|
79
63
|
return {
|
|
80
64
|
recoveryKey: PublicKey.from(new Uint8Array(credential.response.getPublicKey())),
|
|
81
65
|
algorithm: credential.response.getPublicKeyAlgorithm() === -7 ? "ES256" : "ED25519"
|
|
82
66
|
};
|
|
83
67
|
})));
|
|
84
|
-
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
85
|
-
F: __dxlog_file,
|
|
86
|
-
L: 74,
|
|
87
|
-
S: this,
|
|
88
|
-
A: [
|
|
89
|
-
"client.services.services.IdentityService",
|
|
90
|
-
"'IdentityService not available'"
|
|
91
|
-
]
|
|
92
|
-
});
|
|
68
|
+
invariant(client.services.services.IdentityService, "IdentityService not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 63, S: this, A: ["client.services.services.IdentityService", "'IdentityService not available'"] });
|
|
93
69
|
yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({
|
|
94
70
|
data: {
|
|
95
71
|
recoveryKey,
|
|
@@ -102,4 +78,4 @@ var create_passkey_default = handler;
|
|
|
102
78
|
export {
|
|
103
79
|
create_passkey_default as default
|
|
104
80
|
};
|
|
105
|
-
//# sourceMappingURL=create-passkey-
|
|
81
|
+
//# sourceMappingURL=create-passkey-NCP4XA7C.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/create-passkey.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Match from 'effect/Match';\n\nimport { Capability } from '@dxos/app-framework';\nimport { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from '@dxos/app-toolkit';\nimport { PublicKey } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { ClientCapabilities } from '../types';\nimport { CreatePasskey } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreatePasskey> = CreatePasskey.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n invariant(identity, 'Identity not available');\n\n const lookupKey = PublicKey.random();\n\n const { recoveryKey, algorithm } = yield* Match.value(supportsNativePasskeys()).pipe(\n Match.when(true, () =>\n Effect.gen(function* () {\n const result = yield* Effect.promise(() =>\n createNativePasskey({\n username: identity.did,\n userId: lookupKey.asUint8Array(),\n }),\n );\n const { publicKey, algorithm: alg } = extractPublicKeyFromAttestation(result.attestation_object);\n return {\n recoveryKey: PublicKey.from(publicKey),\n algorithm: alg === -7 ? 'ES256' : 'ED25519',\n };\n }),\n ),\n Match.orElse(() =>\n Effect.gen(function* () {\n const credential = yield* Effect.promise(() =>\n navigator.credentials.create({\n publicKey: {\n challenge: new Uint8Array(),\n rp: { id: location.hostname, name: 'Composer' },\n user: {\n id: lookupKey.asUint8Array() as Uint8Array<ArrayBuffer>,\n name: identity.did,\n displayName: identity.profile?.displayName ?? '',\n },\n pubKeyCredParams: [\n { type: 'public-key', alg: -8 },\n { type: 'public-key', alg: -7 },\n ],\n authenticatorSelection: {\n residentKey: 'required',\n requireResidentKey: true,\n },\n },\n }),\n );\n invariant(credential, 'Credential not available');\n return {\n recoveryKey: PublicKey.from(new Uint8Array((credential as any).response.getPublicKey())),\n algorithm: (credential as any).response.getPublicKeyAlgorithm() === -7 ? 'ES256' : 'ED25519',\n };\n }),\n ),\n );\n\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({\n data: {\n recoveryKey,\n algorithm,\n lookupKey,\n },\n }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,kBAAkB;AAC3B,SAASC,wBAAwBC,qBAAqBC,uCAAuC;AAC7F,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAK1B,IAAA,eAA6DC;IAIvD,UAAMC,cAAkBC,KAAKD,UAAY,YAAA,kBAAA,aAAA;AACzCE,QAAAA,SAAUF,OAAU,WAAA,IAAA,mBAAA,MAAA;AAEpB,QAAMG,WAAAA,OAAYC,KAAUC,SAAM,IAAA;AAElC,YAAQC,UAAW,0BAAuBC,EAAAA,YAAYC,YAAAA,GAAAA,cAA0BC,GAC9EF,IAAAA,GAAAA,MAAU,GAAC,CAAA,YACTG,0BAAW,EAAA,CAAA;oBACHC,UAAS,OAAOD;uBAElBE,UAAUZ,IAASa,OAAG,YAAA,uBAAA,CAAA,EAAA,KAAA,WAAA,MAAA,MAAA,WAAA,aAAA;mBACtBC,OAAkBC,eAAAA,MAAY,oBAAA;MAChC,UAAA,SAAA;MAEMC,QAAAA,UAAWC,aAAmBC;IACtC,CAAA,CAAA;UACEZ,EAAAA,WAAaF,WAAUe,IAAKH,IAAAA,gCAAAA,OAAAA,kBAAAA;WAC5BC;MACF,aAAA,UAAA,KAAA,SAAA;MAGJV,WAAa,QACXG,KAAU,UAAC;IACT;oBAEIM,MAAW,WAAA,aAAA;uBACTI,OAAeC,eAAAA,MAAAA,UAAAA,YAAAA,OAAAA;iBACX;mBAAMC,IAAAA,WAAiB;YAAEC;UAAiB,IAAA,SAAA;UAC9CC,MAAM;;cAEJD;UACAE,IAAAA,UAAazB,aAAS0B;UACxB,MAAA,SAAA;UACAC,aAAAA,SAAkB,SAAA,eAAA;;0BACR;;YAAsB,MAAA;YAC9B,KAAA;;;YAA8B,MAAA;YAC/B,KAAA;UACDC;;gCAEsB;UACtB,aAAA;UACF,oBAAA;QACF;MAEF1B;IACA,CAAA,CAAA;cACEI,YAAaF,4BAA+ByB,EAAAA,YAAmBC,YAASC,GAAAA,cAAY,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,cAAA,4BAAA,EAAA,CAAA;WACpFd;MACF,aAAA,UAAA,KAAA,IAAA,WAAA,WAAA,SAAA,aAAA,CAAA,CAAA;MACF,WAAA,WAAA,SAAA,sBAAA,MAAA,KAAA,UAAA;IAIJf;EACA,CAAA,CAAA,CAAOQ;YAEHsB,OAAM,SAAA,SAAA,iBAAA,iCAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,4CAAA,iCAAA,EAAA,CAAA;SACJ1B,eAAAA,MAAAA,OAAAA,SAAAA,SAAAA,gBAAAA,yBAAAA;UACAW;MACAd;MACF;MACF;IAEJ;EAIJ,CAAA,CAAA;;;",
|
|
6
|
+
"names": ["Effect", "Match", "Capability", "supportsNativePasskeys", "createNativePasskey", "extractPublicKeyFromAttestation", "PublicKey", "Operation", "invariant", "CreatePasskey", "identity", "halo", "invariant", "lookupKey", "PublicKey", "random", "recoveryKey", "Match", "supportsNativePasskeys", "pipe", "Effect", "result", "username", "did", "userId", "asUint8Array", "publicKey", "algorithm", "extractPublicKeyFromAttestation", "from", "challenge", "Uint8Array", "location", "name", "user", "displayName", "profile", "pubKeyCredParams", "authenticatorSelection", "credential", "response", "getPublicKey", "data"]
|
|
7
|
+
}
|
package/dist/lib/browser/{create-recovery-code-32I6IWZC.mjs → create-recovery-code-L5LA3GAP.mjs}
RENAMED
|
@@ -1,32 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RECOVERY_CODE_DIALOG
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VAIJSQYA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
CreateRecoveryCode
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RPMM5NKJ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
ClientCapabilities
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-M37DHX5L.mjs";
|
|
10
10
|
import "./chunk-J5LGTIGS.mjs";
|
|
11
11
|
|
|
12
12
|
// src/operations/create-recovery-code.ts
|
|
13
13
|
import * as Effect from "effect/Effect";
|
|
14
14
|
import { Capability } from "@dxos/app-framework";
|
|
15
15
|
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
16
|
+
import { Operation } from "@dxos/compute";
|
|
16
17
|
import { invariant } from "@dxos/invariant";
|
|
17
|
-
import { Operation } from "@dxos/operation";
|
|
18
18
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-recovery-code.ts";
|
|
19
19
|
var handler = CreateRecoveryCode.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
20
20
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
21
|
-
invariant(client.services.services.IdentityService, "IdentityService not available", {
|
|
22
|
-
F: __dxlog_file,
|
|
23
|
-
L: 20,
|
|
24
|
-
S: this,
|
|
25
|
-
A: [
|
|
26
|
-
"client.services.services.IdentityService",
|
|
27
|
-
"'IdentityService not available'"
|
|
28
|
-
]
|
|
29
|
-
});
|
|
21
|
+
invariant(client.services.services.IdentityService, "IdentityService not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 14, S: this, A: ["client.services.services.IdentityService", "'IdentityService not available'"] });
|
|
30
22
|
const { recoveryCode } = yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({}));
|
|
31
23
|
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
32
24
|
subject: RECOVERY_CODE_DIALOG,
|
|
@@ -41,4 +33,4 @@ var create_recovery_code_default = handler;
|
|
|
41
33
|
export {
|
|
42
34
|
create_recovery_code_default as default
|
|
43
35
|
};
|
|
44
|
-
//# sourceMappingURL=create-recovery-code-
|
|
36
|
+
//# sourceMappingURL=create-recovery-code-L5LA3GAP.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/create-recovery-code.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { RECOVERY_CODE_DIALOG } from '../constants';\nimport { ClientCapabilities } from '../types';\nimport { CreateRecoveryCode } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateRecoveryCode> = CreateRecoveryCode.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n const { recoveryCode } = yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({}),\n );\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: RECOVERY_CODE_DIALOG,\n blockAlign: 'start',\n type: 'alert',\n props: { code: recoveryCode },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAM1B,IAAA,eAAkEC;IAI5DC,UAAUC,mBAAgBC,KAASC,UAAAA,YAAiB,kBAAA,aAAA;AACpD,QAAM,SAAEC,OAAc,WAAUC,IAAAA,mBAC9BJ,MAAOC;AAET,YAAOI,OAAUC,SAAOC,SAAAA,iBAA4B,iCAAE,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,4CAAA,iCAAA,EAAA,CAAA;QACpDC,EAAAA,aAASC,IAAAA,OAAAA,eAAAA,MAAAA,OAAAA,SAAAA,SAAAA,gBAAAA,yBAAAA,CAAAA,CAAAA,CAAAA;SACTC,UAAY,OAAA,gBAAA,cAAA;IACZC,SAAM;IACNC,YAAO;UAAEC;IAAmB,OAAA;MAC9B,MAAA;IACF;EAIJ,CAAA;;;",
|
|
6
|
+
"names": ["Effect", "Capability", "LayoutOperation", "Operation", "invariant", "CreateRecoveryCode", "invariant", "client", "services", "IdentityService", "recoveryCode", "Effect", "Operation", "invoke", "LayoutOperation", "subject", "RECOVERY_CODE_DIALOG", "blockAlign", "type", "props", "code"]
|
|
7
|
+
}
|
|
@@ -1,134 +1,11 @@
|
|
|
1
1
|
import "./chunk-J5LGTIGS.mjs";
|
|
2
2
|
|
|
3
|
-
// src/
|
|
4
|
-
import {
|
|
5
|
-
import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
|
|
6
|
-
import { AppGraphBuilder, Client, Migrations, NavigationHandler, OperationHandler, ReactContext, ReactSurface, SchemaDefs } from "#capabilities";
|
|
7
|
-
import { meta as meta2 } from "#meta";
|
|
8
|
-
import { ClientEvents } from "#types";
|
|
9
|
-
|
|
10
|
-
// src/translations.ts
|
|
11
|
-
import { translations as shellTranslations } from "@dxos/shell/react";
|
|
12
|
-
import { meta } from "#meta";
|
|
13
|
-
var pluginTranslations = [
|
|
14
|
-
{
|
|
15
|
-
"en-US": {
|
|
16
|
-
[meta.id]: {
|
|
17
|
-
"account.label": "User profile",
|
|
18
|
-
"profile.label": "Profile",
|
|
19
|
-
"profile.description": "You can adjust how your user settings here.",
|
|
20
|
-
"devices.label": "Devices",
|
|
21
|
-
"add-device.label": "Add device",
|
|
22
|
-
"devices-verbose.label": "Manage devices",
|
|
23
|
-
"add-device.description": "Authenticating another device is a two-step process. To get started, create a code using the button below.",
|
|
24
|
-
"devices.description": "You can add and remove devices, configure your agent in the cloud, reset this device, or log in as a different identity here.",
|
|
25
|
-
"create-device-invitation.label": "Create code",
|
|
26
|
-
"qr-code.description": "Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.",
|
|
27
|
-
"security.label": "Security",
|
|
28
|
-
"reset-device.description": "Log out from this device, erasing all the data on this\xA0device.",
|
|
29
|
-
"join-new-identity.description": "Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log\xA0in.",
|
|
30
|
-
"recover-identity.description": "Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log\xA0in.",
|
|
31
|
-
"danger-zone.title": "Log out",
|
|
32
|
-
"danger-zone.description": "Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you\u2019d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer\xA0device invitation above.",
|
|
33
|
-
"display-name.label": "Display name",
|
|
34
|
-
"display-name.description": "Your name as it appears in the app.",
|
|
35
|
-
"display-name-input.placeholder": "Enter a name",
|
|
36
|
-
"icon.label": "Avatar",
|
|
37
|
-
"icon.description": "The emoji used to represent the user.",
|
|
38
|
-
"hue.label": "Color",
|
|
39
|
-
"hue.description": "The color used to represent you in the app, including as your avatar\u2019s background, your cursor as it appears to others, and the messages you send in group threads.",
|
|
40
|
-
"did.label": "DID",
|
|
41
|
-
"did.description": "Your unique ID.",
|
|
42
|
-
"open-user-account.label": "Open user account",
|
|
43
|
-
"manage-credentials-dialog.title": "Manage Account Recovery",
|
|
44
|
-
"credentials-list.label": "Recovery credentials",
|
|
45
|
-
"no-credentials.title": "WARNING: There is currently no way to recover your account.",
|
|
46
|
-
"no-credentials.message": "Create a recovery credential above to secure your\xA0account.",
|
|
47
|
-
"recovery-setup-dialog.title": "Account Security",
|
|
48
|
-
"recovery-setup-dialog.description": "In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password\xA0manager.",
|
|
49
|
-
"create-passkey.label": "Create Passkey",
|
|
50
|
-
// TODO(wittjosiah): At link to user-focused passkey information.
|
|
51
|
-
// Something like https://www.tomsguide.com/news/what-are-passkeys.
|
|
52
|
-
"create-passkey.description": "A passkey is a secure and easy to use credential that can be used to recover your\xA0account.",
|
|
53
|
-
"create-recovery-code.label": "Create Recovery Code",
|
|
54
|
-
"create-recovery-code.description": "A recovery code is 12 word phrase representing a private\xA0key.",
|
|
55
|
-
"recovery-code-dialog.title": "Recovery Code",
|
|
56
|
-
"recovery-code-dialog.description": "This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your\xA0devices.",
|
|
57
|
-
"recovery-code-dialog-warning-1.message": "NOTE: This code will not be displayed\xA0again.",
|
|
58
|
-
"recovery-code-dialog-warning-2.message": "It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your\xA0account.",
|
|
59
|
-
"recovery-code-confirmation.label": "Please confirm you have saved the\xA0code.",
|
|
60
|
-
"continue.label": "Continue",
|
|
61
|
-
"auth-code.message": "Authorization code",
|
|
62
|
-
"auth-other-device-emoji.message": "Authorization icon",
|
|
63
|
-
"cancel.label": "Cancel",
|
|
64
|
-
"join-new-identity.label": "Join an existing identity",
|
|
65
|
-
"qr.label": "QR Code",
|
|
66
|
-
"recover-identity.label": "Use a recovery code",
|
|
67
|
-
"reset-device.label": "Reset storage",
|
|
68
|
-
"reset-dialog.description": "Reset storage",
|
|
69
|
-
"reset-dialog.title": "Reset storage"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
];
|
|
74
|
-
var translations = [
|
|
75
|
-
...pluginTranslations,
|
|
76
|
-
...shellTranslations
|
|
77
|
-
];
|
|
78
|
-
|
|
79
|
-
// src/ClientPlugin.ts
|
|
80
|
-
var ClientPlugin = Plugin.define(meta2).pipe(AppPlugin.addAppGraphModule({
|
|
81
|
-
activate: AppGraphBuilder
|
|
82
|
-
}), AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
|
|
83
|
-
activate: () => NavigationHandler({
|
|
84
|
-
invitationProp
|
|
85
|
-
})
|
|
86
|
-
})), AppPlugin.addOperationHandlerModule({
|
|
87
|
-
activate: OperationHandler
|
|
88
|
-
}), AppPlugin.addReactContextModule({
|
|
89
|
-
activate: ReactContext
|
|
90
|
-
}), AppPlugin.addTranslationsModule({
|
|
91
|
-
translations
|
|
92
|
-
}), Plugin.addModule((options) => {
|
|
93
|
-
return {
|
|
94
|
-
id: Capability.getModuleTag(Client),
|
|
95
|
-
activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),
|
|
96
|
-
activatesAfter: [
|
|
97
|
-
ClientEvents.ClientReady
|
|
98
|
-
],
|
|
99
|
-
activate: () => Client(options)
|
|
100
|
-
};
|
|
101
|
-
}), Plugin.addModule({
|
|
102
|
-
activatesOn: ClientEvents.ClientReady,
|
|
103
|
-
activatesBefore: [
|
|
104
|
-
AppActivationEvents.SetupSchema
|
|
105
|
-
],
|
|
106
|
-
activate: SchemaDefs
|
|
107
|
-
}), Plugin.addModule({
|
|
108
|
-
activatesOn: ClientEvents.ClientReady,
|
|
109
|
-
activatesBefore: [
|
|
110
|
-
ClientEvents.SetupMigration
|
|
111
|
-
],
|
|
112
|
-
activate: Migrations
|
|
113
|
-
}), Plugin.addModule(({ shareableLinkOrigin = typeof window !== "undefined" ? window.location.origin : "http://localhost", invitationPath = "/", invitationProp = "deviceInvitationCode", onReset }) => {
|
|
114
|
-
const createInvitationUrl = (invitationCode) => {
|
|
115
|
-
const baseUrl = new URL(invitationPath || "/", shareableLinkOrigin);
|
|
116
|
-
baseUrl.searchParams.set(invitationProp, invitationCode);
|
|
117
|
-
return baseUrl.toString();
|
|
118
|
-
};
|
|
119
|
-
return {
|
|
120
|
-
id: Capability.getModuleTag(ReactSurface),
|
|
121
|
-
activatesOn: ActivationEvents.SetupReactSurface,
|
|
122
|
-
activate: () => ReactSurface({
|
|
123
|
-
createInvitationUrl,
|
|
124
|
-
onReset
|
|
125
|
-
})
|
|
126
|
-
};
|
|
127
|
-
}), Plugin.make);
|
|
3
|
+
// src/index.ts
|
|
4
|
+
import { Plugin } from "@dxos/app-framework";
|
|
128
5
|
|
|
129
6
|
// src/meta.ts
|
|
130
7
|
import { trim } from "@dxos/util";
|
|
131
|
-
var
|
|
8
|
+
var meta = {
|
|
132
9
|
id: "org.dxos.plugin.client",
|
|
133
10
|
name: "Client",
|
|
134
11
|
description: trim`
|
|
@@ -136,8 +13,11 @@ var meta3 = {
|
|
|
136
13
|
Manages identity, authentication, and real-time synchronization across devices.
|
|
137
14
|
`
|
|
138
15
|
};
|
|
16
|
+
|
|
17
|
+
// src/index.ts
|
|
18
|
+
var ClientPlugin = Plugin.lazy(meta, () => import("#plugin"));
|
|
139
19
|
export {
|
|
140
20
|
ClientPlugin,
|
|
141
|
-
|
|
21
|
+
meta
|
|
142
22
|
};
|
|
143
23
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright
|
|
5
|
-
"mappings": ";;;AAIA,SAASA,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/index.ts", "../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport { meta } from './meta';\n\nexport const ClientPlugin = Plugin.lazy(meta, () => import('#plugin'));\nexport { meta } from './meta';\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: 'org.dxos.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"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,cAAc;;;ACCvB,SAASC,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;AAIf;;;ADNO,IAAMK,eAAeC,OAAOC,KAAKC,MAAM,MAAM,OAAO,SAAA,CAAA;",
|
|
6
|
+
"names": ["Plugin", "trim", "meta", "id", "name", "description", "ClientPlugin", "Plugin", "lazy", "meta"]
|
|
7
7
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JOIN_DIALOG
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VAIJSQYA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
JoinIdentity
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RPMM5NKJ.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/join-identity.ts
|
|
10
10
|
import * as Effect from "effect/Effect";
|
|
11
11
|
import { LayoutOperation } from "@dxos/app-toolkit";
|
|
12
|
-
import { Operation } from "@dxos/
|
|
12
|
+
import { Operation } from "@dxos/compute";
|
|
13
13
|
var handler = JoinIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* (data) {
|
|
14
14
|
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
15
15
|
subject: JOIN_DIALOG,
|
|
@@ -24,4 +24,4 @@ var join_identity_default = handler;
|
|
|
24
24
|
export {
|
|
25
25
|
join_identity_default as default
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=join-identity-
|
|
27
|
+
//# sourceMappingURL=join-identity-3W6PJLKN.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/operations/join-identity.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { JOIN_DIALOG } from '../constants';\nimport { JoinIdentity } from './definitions';\n\nconst handler: Operation.WithHandler<typeof JoinIdentity> = JoinIdentity.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (data) {\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: JOIN_DIALOG,\n blockAlign: 'start',\n props: {\n initialInvitationCode: data.invitationCode,\n initialDisposition: 'accept-halo-invitation',\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAK1B,IAAMC,UAAsDC,aAAaC,KACvEC,UAAUC,YACDC,kBAAW,WAAWC,MAAI;AAC/B,SAAOH,UAAUI,OAAOC,gBAAgBC,cAAc;IACpDC,SAASC;IACTC,YAAY;IACZC,OAAO;MACLC,uBAAuBR,KAAKS;MAC5BC,oBAAoB;IACtB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,wBAAehB;",
|
|
6
6
|
"names": ["Effect", "LayoutOperation", "Operation", "handler", "JoinIdentity", "pipe", "Operation", "withHandler", "fnUntraced", "data", "invoke", "LayoutOperation", "UpdateDialog", "subject", "JOIN_DIALOG", "blockAlign", "props", "initialInvitationCode", "invitationCode", "initialDisposition"]
|
|
7
7
|
}
|