@dxos/plugin-client 0.8.4-staging.60fe92afc8 → 0.9.1-main.c7dcc2e112
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/neutral/{AccountContainer-FZ3IC6H4.mjs → AccountContainer-LIMGLO2Y.mjs} +3 -3
- package/dist/lib/neutral/AccountContainer-LIMGLO2Y.mjs.map +7 -0
- package/dist/lib/neutral/ClientPlugin.node.mjs +477 -370
- package/dist/lib/neutral/ClientPlugin.node.mjs.map +4 -4
- package/dist/lib/neutral/{DevicesContainer-6MWNUC3I.mjs → DevicesContainer-X26OGLFK.mjs} +12 -12
- package/dist/lib/neutral/DevicesContainer-X26OGLFK.mjs.map +7 -0
- package/dist/lib/neutral/{InvitationsContainer-ME722VKS.mjs → InvitationsContainer-OBBCJ7CJ.mjs} +2 -2
- package/dist/lib/neutral/InvitationsContainer-OBBCJ7CJ.mjs.map +7 -0
- package/dist/lib/neutral/{JoinDialog-2NXAKPLP.mjs → JoinDialog-4BWV4CYB.mjs} +2 -2
- package/dist/lib/neutral/JoinDialog-4BWV4CYB.mjs.map +7 -0
- package/dist/lib/neutral/{ProfileContainer-VPX3FPWG.mjs → ProfileContainer-FGS2MVWA.mjs} +2 -2
- package/dist/lib/neutral/ProfileContainer-FGS2MVWA.mjs.map +7 -0
- package/dist/lib/neutral/{RecoveryCodeDialog-EWHB6U5T.mjs → RecoveryCodeDialog-7EPNKCLB.mjs} +2 -2
- package/dist/lib/neutral/RecoveryCodeDialog-7EPNKCLB.mjs.map +7 -0
- package/dist/lib/neutral/{RecoveryCredentialsContainer-IPBGDMIA.mjs → RecoveryCredentialsContainer-SL4LYHBE.mjs} +3 -3
- package/dist/lib/neutral/RecoveryCredentialsContainer-SL4LYHBE.mjs.map +7 -0
- package/dist/lib/neutral/UsageContainer-HBPMLIK7.mjs +226 -0
- package/dist/lib/neutral/UsageContainer-HBPMLIK7.mjs.map +7 -0
- package/dist/lib/neutral/{app-graph-builder-A74W7C36.mjs → app-graph-builder-FTXJNX37.mjs} +28 -14
- package/dist/lib/neutral/app-graph-builder-FTXJNX37.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +5 -5
- package/dist/lib/neutral/capabilities/node.mjs +3 -3
- package/dist/lib/neutral/chunk-54MDDWCV.mjs +8 -0
- package/dist/lib/neutral/{chunk-NTVDGDQ3.mjs.map → chunk-54MDDWCV.mjs.map} +2 -2
- package/dist/lib/neutral/chunk-6G4KZLBG.mjs +28 -0
- package/dist/lib/neutral/chunk-6G4KZLBG.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-D6HPCLTS.mjs → chunk-7DEIKHB7.mjs} +16 -2
- package/dist/lib/neutral/chunk-7DEIKHB7.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-TUK3ELUU.mjs → chunk-DA3LZQSD.mjs} +22 -21
- package/dist/lib/neutral/chunk-DA3LZQSD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GSKMAS3S.mjs +13 -0
- package/dist/lib/neutral/chunk-GSKMAS3S.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +10 -8
- package/dist/lib/neutral/containers/index.mjs.map +3 -3
- package/dist/lib/neutral/{create-agent-6HLW4D3A.mjs → create-agent-U567RM7Z.mjs} +3 -3
- package/dist/lib/neutral/{create-identity-JIWAR5GW.mjs → create-identity-IKN2FJ5B.mjs} +3 -3
- package/dist/lib/neutral/{create-passkey-FOXEMXGF.mjs → create-passkey-JAD3ACY7.mjs} +7 -7
- package/dist/lib/neutral/create-passkey-JAD3ACY7.mjs.map +7 -0
- package/dist/lib/neutral/{create-recovery-code-ZWDKLPH4.mjs → create-recovery-code-JZYXR4BY.mjs} +4 -4
- package/dist/lib/neutral/index.mjs +4 -4
- package/dist/lib/neutral/{join-identity-QEQFAE2S.mjs → join-identity-PJCHDNLH.mjs} +3 -3
- package/dist/lib/neutral/{layer-specs-CQLXQBQJ.mjs → layer-specs-VQCJLV33.mjs} +2 -2
- package/dist/lib/neutral/{layer-specs-CQLXQBQJ.mjs.map → layer-specs-VQCJLV33.mjs.map} +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/{navigation-handler-LU26CDFR.mjs → navigation-handler-MPJAVHWY.mjs} +3 -3
- package/dist/lib/neutral/open-usage-24I7RAFL.mjs +27 -0
- package/dist/lib/neutral/open-usage-24I7RAFL.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +2 -2
- package/dist/lib/neutral/plugin.mjs +3 -3
- package/dist/lib/neutral/{react-context-B5LXMHVM.mjs → react-context-V74T6JOJ.mjs} +2 -2
- package/dist/lib/neutral/{react-context-B5LXMHVM.mjs.map → react-context-V74T6JOJ.mjs.map} +3 -3
- package/dist/lib/neutral/{react-surface-DEKGWTCD.mjs → react-surface-HPXRA65U.mjs} +8 -3
- package/dist/lib/neutral/react-surface-HPXRA65U.mjs.map +7 -0
- package/dist/lib/neutral/{recover-identity-JNFKLCUD.mjs → recover-identity-B7YM2BR4.mjs} +3 -3
- package/dist/lib/neutral/{redeem-passkey-4SBAI4AG.mjs → redeem-passkey-4DR7GPMU.mjs} +10 -10
- package/dist/lib/neutral/redeem-passkey-4DR7GPMU.mjs.map +7 -0
- package/dist/lib/neutral/{redeem-token-POBD6TMN.mjs → redeem-token-N5MBQG3I.mjs} +3 -3
- package/dist/lib/neutral/{reset-storage-LQKUV5RA.mjs → reset-storage-K47HZTGP.mjs} +3 -3
- package/dist/lib/neutral/{share-identity-KNQ2XNXV.mjs → share-identity-YJIFDIPJ.mjs} +6 -6
- package/dist/lib/neutral/share-identity-YJIFDIPJ.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +2 -2
- package/dist/lib/neutral/testing/index.mjs.map +3 -3
- package/dist/lib/neutral/translations.mjs +24 -1
- package/dist/lib/neutral/translations.mjs.map +3 -3
- package/dist/lib/neutral/types/index.mjs +1 -1
- package/dist/types/dx.config.d.ts +28 -0
- package/dist/types/dx.config.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +9 -43
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/navigation-handler/index.d.ts +1 -1
- package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +6 -6
- package/dist/types/src/capabilities/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/commands/account/index.d.ts +3 -0
- package/dist/types/src/commands/account/index.d.ts.map +1 -0
- package/dist/types/src/commands/account/login/index.d.ts +2 -0
- package/dist/types/src/commands/account/login/index.d.ts.map +1 -0
- package/dist/types/src/commands/account/login/login.d.ts +12 -0
- package/dist/types/src/commands/account/login/login.d.ts.map +1 -0
- package/dist/types/src/commands/account/logout/index.d.ts +2 -0
- package/dist/types/src/commands/account/logout/index.d.ts.map +1 -0
- package/dist/types/src/commands/account/logout/logout.d.ts +9 -0
- package/dist/types/src/commands/account/logout/logout.d.ts.map +1 -0
- package/dist/types/src/commands/halo/join/join.d.ts +1 -1
- package/dist/types/src/commands/halo/join/join.d.ts.map +1 -1
- package/dist/types/src/commands/halo/util.d.ts +4 -0
- package/dist/types/src/commands/halo/util.d.ts.map +1 -1
- package/dist/types/src/commands/index.d.ts +1 -0
- package/dist/types/src/commands/index.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts.map +1 -1
- package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
- package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -1
- package/dist/types/src/containers/UsageContainer/UsageContainer.d.ts +7 -0
- package/dist/types/src/containers/UsageContainer/UsageContainer.d.ts.map +1 -0
- package/dist/types/src/containers/UsageContainer/UsageView.d.ts +19 -0
- package/dist/types/src/containers/UsageContainer/UsageView.d.ts.map +1 -0
- package/dist/types/src/containers/UsageContainer/UsageView.stories.d.ts +19 -0
- package/dist/types/src/containers/UsageContainer/UsageView.stories.d.ts.map +1 -0
- package/dist/types/src/containers/UsageContainer/index.d.ts +2 -0
- package/dist/types/src/containers/UsageContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +1 -0
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +28 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +1 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/open-usage.d.ts +5 -0
- package/dist/types/src/operations/open-usage.d.ts.map +1 -0
- 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.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +1 -0
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/dx.config.ts +19 -0
- package/package.json +37 -35
- package/src/ClientPlugin.node.ts +2 -2
- package/src/ClientPlugin.test.ts +1 -1
- package/src/capabilities/app-graph-builder.ts +22 -13
- package/src/capabilities/layer-specs.ts +1 -1
- package/src/capabilities/react-context.tsx +1 -1
- package/src/capabilities/react-surface.tsx +6 -0
- package/src/commands/account/index.ts +13 -0
- package/src/commands/account/login/index.ts +5 -0
- package/src/commands/account/login/login.ts +147 -0
- package/src/commands/account/logout/index.ts +5 -0
- package/src/commands/account/logout/logout.ts +49 -0
- package/src/commands/halo/create/create.ts +2 -2
- package/src/commands/halo/index.ts +6 -6
- package/src/commands/halo/join/join.ts +2 -13
- package/src/commands/halo/util.ts +24 -0
- package/src/commands/index.ts +1 -0
- package/src/constants.ts +3 -3
- package/src/containers/AccountContainer/AccountContainer.tsx +1 -1
- package/src/containers/DevicesContainer/DevicesContainer.tsx +14 -11
- package/src/containers/InvitationsContainer/InvitationsContainer.tsx +1 -1
- package/src/containers/JoinDialog/JoinDialog.tsx +1 -1
- package/src/containers/ProfileContainer/ProfileContainer.tsx +1 -1
- package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.tsx +1 -1
- package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +2 -2
- package/src/containers/UsageContainer/UsageContainer.tsx +47 -0
- package/src/containers/UsageContainer/UsageView.stories.tsx +114 -0
- package/src/containers/UsageContainer/UsageView.tsx +238 -0
- package/src/containers/UsageContainer/index.ts +5 -0
- package/src/containers/index.ts +1 -0
- package/src/meta.ts +3 -12
- package/src/operations/create-passkey.ts +6 -4
- package/src/operations/definitions.ts +12 -1
- package/src/operations/index.ts +1 -0
- package/src/operations/open-usage.ts +24 -0
- package/src/operations/redeem-passkey.ts +7 -7
- package/src/operations/share-identity.ts +3 -3
- package/src/testing/initializeIdentity.ts +4 -2
- package/src/translations.ts +25 -1
- package/src/types/capabilities.ts +7 -5
- package/src/types/events.ts +5 -5
- package/src/types/schema.ts +23 -16
- package/dist/lib/neutral/AccountContainer-FZ3IC6H4.mjs.map +0 -7
- package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs.map +0 -7
- package/dist/lib/neutral/InvitationsContainer-ME722VKS.mjs.map +0 -7
- package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs.map +0 -7
- package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs.map +0 -7
- package/dist/lib/neutral/RecoveryCodeDialog-EWHB6U5T.mjs.map +0 -7
- package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs.map +0 -7
- package/dist/lib/neutral/app-graph-builder-A74W7C36.mjs.map +0 -7
- package/dist/lib/neutral/chunk-D6HPCLTS.mjs.map +0 -7
- package/dist/lib/neutral/chunk-JOCCVODY.mjs +0 -21
- package/dist/lib/neutral/chunk-JOCCVODY.mjs.map +0 -7
- package/dist/lib/neutral/chunk-NTVDGDQ3.mjs +0 -8
- package/dist/lib/neutral/chunk-TUK3ELUU.mjs.map +0 -7
- package/dist/lib/neutral/chunk-WWCVZG3K.mjs +0 -13
- package/dist/lib/neutral/chunk-WWCVZG3K.mjs.map +0 -7
- package/dist/lib/neutral/create-passkey-FOXEMXGF.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-DEKGWTCD.mjs.map +0 -7
- package/dist/lib/neutral/redeem-passkey-4SBAI4AG.mjs.map +0 -7
- package/dist/lib/neutral/share-identity-KNQ2XNXV.mjs.map +0 -7
- /package/dist/lib/neutral/{create-agent-6HLW4D3A.mjs.map → create-agent-U567RM7Z.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-identity-JIWAR5GW.mjs.map → create-identity-IKN2FJ5B.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-recovery-code-ZWDKLPH4.mjs.map → create-recovery-code-JZYXR4BY.mjs.map} +0 -0
- /package/dist/lib/neutral/{join-identity-QEQFAE2S.mjs.map → join-identity-PJCHDNLH.mjs.map} +0 -0
- /package/dist/lib/neutral/{navigation-handler-LU26CDFR.mjs.map → navigation-handler-MPJAVHWY.mjs.map} +0 -0
- /package/dist/lib/neutral/{recover-identity-JNFKLCUD.mjs.map → recover-identity-B7YM2BR4.mjs.map} +0 -0
- /package/dist/lib/neutral/{redeem-token-POBD6TMN.mjs.map → redeem-token-N5MBQG3I.mjs.map} +0 -0
- /package/dist/lib/neutral/{reset-storage-LQKUV5RA.mjs.map → reset-storage-K47HZTGP.mjs.map} +0 -0
package/dist/lib/neutral/{navigation-handler-LU26CDFR.mjs → navigation-handler-MPJAVHWY.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-54MDDWCV.mjs";
|
|
2
2
|
import {
|
|
3
3
|
definitions_exports
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7DEIKHB7.mjs";
|
|
5
5
|
import "./chunk-J5LGTIGS.mjs";
|
|
6
6
|
|
|
7
7
|
// src/capabilities/navigation-handler/navigation-handler.ts
|
|
@@ -43,4 +43,4 @@ var removeQueryParam = (key) => {
|
|
|
43
43
|
export {
|
|
44
44
|
navigation_handler_default as default
|
|
45
45
|
};
|
|
46
|
-
//# sourceMappingURL=navigation-handler-
|
|
46
|
+
//# sourceMappingURL=navigation-handler-MPJAVHWY.mjs.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OpenUsage
|
|
3
|
+
} from "./chunk-7DEIKHB7.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Account
|
|
6
|
+
} from "./chunk-DA3LZQSD.mjs";
|
|
7
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/operations/open-usage.ts
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import { LayoutOperation, Paths } from "@dxos/app-toolkit";
|
|
12
|
+
import { Operation } from "@dxos/compute";
|
|
13
|
+
var handler = OpenUsage.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
14
|
+
yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
|
|
15
|
+
subject: Paths.getSpacePath(Account.id)
|
|
16
|
+
});
|
|
17
|
+
yield* Operation.invoke(LayoutOperation.Open, {
|
|
18
|
+
subject: [
|
|
19
|
+
Paths.getSpacePath(Account.id, Account.Usage)
|
|
20
|
+
]
|
|
21
|
+
});
|
|
22
|
+
})));
|
|
23
|
+
var open_usage_default = handler;
|
|
24
|
+
export {
|
|
25
|
+
open_usage_default as default
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=open-usage-24I7RAFL.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/open-usage.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, Paths } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\n\nimport { Account } from '../types';\nimport { OpenUsage } from './definitions';\n\nconst handler: Operation.WithHandler<typeof OpenUsage> = OpenUsage.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: Paths.getSpacePath(Account.id) });\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [Paths.getSpacePath(Account.id, Account.Usage)],\n });\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,aAAa;AACvC,SAASC,iBAAiB;AAK1B,IAAMC,UAAmDC,UAAUC,KACjEC,UAAUC,YACDC,kBAAW,aAAA;AAChB,SAAOF,UAAUG,OAAOC,gBAAgBC,iBAAiB;IAAEC,SAASC,MAAMC,aAAaC,QAAQC,EAAE;EAAE,CAAA;AACnG,SAAOV,UAAUG,OAAOC,gBAAgBO,MAAM;IAC5CL,SAAS;MAACC,MAAMC,aAAaC,QAAQC,IAAID,QAAQG,KAAK;;EACxD,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,qBAAef;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Paths", "Operation", "handler", "OpenUsage", "pipe", "Operation", "withHandler", "fnUntraced", "invoke", "LayoutOperation", "SwitchWorkspace", "subject", "Paths", "getSpacePath", "Account", "id", "Open", "Usage"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientOperationHandlerSet
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-54MDDWCV.mjs";
|
|
4
4
|
import {
|
|
5
5
|
definitions_exports
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-7DEIKHB7.mjs";
|
|
7
7
|
import "../chunk-J5LGTIGS.mjs";
|
|
8
8
|
export {
|
|
9
9
|
definitions_exports as ClientOperation,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
meta
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6G4KZLBG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ClientOperationHandlerSet
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-54MDDWCV.mjs";
|
|
7
|
+
import "./chunk-7DEIKHB7.mjs";
|
|
8
8
|
import "./chunk-J5LGTIGS.mjs";
|
|
9
9
|
|
|
10
10
|
// src/plugin.ts
|
|
@@ -9,7 +9,7 @@ import { ClientProvider } from "@dxos/react-client";
|
|
|
9
9
|
import { meta } from "#meta";
|
|
10
10
|
import { ClientCapabilities } from "#types";
|
|
11
11
|
var react_context_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactContext, {
|
|
12
|
-
id: meta.
|
|
12
|
+
id: meta.profile.key,
|
|
13
13
|
context: ({ children }) => {
|
|
14
14
|
const client = useCapability(ClientCapabilities.Client);
|
|
15
15
|
return /* @__PURE__ */ React.createElement(ClientProvider, {
|
|
@@ -20,4 +20,4 @@ var react_context_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
20
20
|
export {
|
|
21
21
|
react_context_default as default
|
|
22
22
|
};
|
|
23
|
-
//# sourceMappingURL=react-context-
|
|
23
|
+
//# sourceMappingURL=react-context-V74T6JOJ.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/capabilities/react-context.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { ReactNode } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { useCapability } from '@dxos/app-framework/ui';\nimport { ClientProvider } from '@dxos/react-client';\n\nimport { meta } from '#meta';\nimport { ClientCapabilities } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactContext, {\n id: meta.
|
|
5
|
-
"mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAA0B;AAEjC,SAASC,cAAcC,kBAAkB;AACzC,SAASC,qBAAqB;AAC9B,SAASC,sBAAsB;AAE/B,SAASC,YAAY;AACrB,SAASC,0BAA0B;AAEnC,IAAA,wBAAeJ,WAAWK,WAAW,MAC5BC,eACLN,WAAWO,YAAYR,aAAaS,cAAc;EAChDC,IAAIN,
|
|
6
|
-
"names": ["Effect", "React", "Capabilities", "Capability", "useCapability", "ClientProvider", "meta", "ClientCapabilities", "makeModule", "succeed", "contributes", "ReactContext", "id", "context", "children", "client", "Client"]
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { ReactNode } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { useCapability } from '@dxos/app-framework/ui';\nimport { ClientProvider } from '@dxos/react-client';\n\nimport { meta } from '#meta';\nimport { ClientCapabilities } from '#types';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactContext, {\n id: meta.profile.key,\n context: ({ children }: { children?: ReactNode }) => {\n const client = useCapability(ClientCapabilities.Client);\n return <ClientProvider client={client}>{children}</ClientProvider>;\n },\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAA0B;AAEjC,SAASC,cAAcC,kBAAkB;AACzC,SAASC,qBAAqB;AAC9B,SAASC,sBAAsB;AAE/B,SAASC,YAAY;AACrB,SAASC,0BAA0B;AAEnC,IAAA,wBAAeJ,WAAWK,WAAW,MAC5BC,eACLN,WAAWO,YAAYR,aAAaS,cAAc;EAChDC,IAAIN,KAAKO,QAAQC;EACjBC,SAAS,CAAC,EAAEC,SAAQ,MAA4B;AAC9C,UAAMC,SAASb,cAAcG,mBAAmBW,MAAM;AACtD,WAAO,sBAAA,cAACb,gBAAAA;MAAeY;OAAiBD,QAAAA;EAC1C;AACF,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capabilities", "Capability", "useCapability", "ClientProvider", "meta", "ClientCapabilities", "makeModule", "succeed", "contributes", "ReactContext", "id", "profile", "key", "context", "children", "client", "Client"]
|
|
7
7
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
JOIN_DIALOG,
|
|
3
3
|
RECOVERY_CODE_DIALOG,
|
|
4
4
|
RESET_DIALOG
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GSKMAS3S.mjs";
|
|
6
6
|
import "./chunk-J5LGTIGS.mjs";
|
|
7
7
|
|
|
8
8
|
// src/capabilities/react-surface.tsx
|
|
@@ -11,7 +11,7 @@ import React from "react";
|
|
|
11
11
|
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
12
12
|
import { Surface } from "@dxos/app-framework/ui";
|
|
13
13
|
import { AppSurface } from "@dxos/app-toolkit/ui";
|
|
14
|
-
import { AccountContainer, DevicesContainer, InvitationsContainer, JoinDialog, ProfileContainer, RecoveryCodeDialog, RecoveryCredentialsContainer, ResetDialog } from "#containers";
|
|
14
|
+
import { AccountContainer, DevicesContainer, InvitationsContainer, JoinDialog, ProfileContainer, RecoveryCodeDialog, RecoveryCredentialsContainer, ResetDialog, UsageContainer } from "#containers";
|
|
15
15
|
import { Account } from "#types";
|
|
16
16
|
var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* ({ createInvitationUrl, onReset }) {
|
|
17
17
|
const capabilityManager = yield* Capability.Service;
|
|
@@ -43,6 +43,11 @@ var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* ({
|
|
|
43
43
|
filter: AppSurface.literal(AppSurface.Article, Account.Invitations),
|
|
44
44
|
component: () => /* @__PURE__ */ React.createElement(InvitationsContainer, null)
|
|
45
45
|
}),
|
|
46
|
+
Surface.create({
|
|
47
|
+
id: Account.Usage,
|
|
48
|
+
filter: AppSurface.literal(AppSurface.Article, Account.Usage),
|
|
49
|
+
component: () => /* @__PURE__ */ React.createElement(UsageContainer, null)
|
|
50
|
+
}),
|
|
46
51
|
Surface.create({
|
|
47
52
|
id: JOIN_DIALOG,
|
|
48
53
|
filter: AppSurface.component(AppSurface.Dialog, JOIN_DIALOG),
|
|
@@ -67,4 +72,4 @@ var react_surface_default = Capability.makeModule(Effect.fnUntraced(function* ({
|
|
|
67
72
|
export {
|
|
68
73
|
react_surface_default as default
|
|
69
74
|
};
|
|
70
|
-
//# sourceMappingURL=react-surface-
|
|
75
|
+
//# sourceMappingURL=react-surface-HPXRA65U.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { type ComponentProps } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\n\nimport {\n AccountContainer,\n DevicesContainer,\n InvitationsContainer,\n JoinDialog,\n ProfileContainer,\n RecoveryCodeDialog,\n RecoveryCredentialsContainer,\n ResetDialog,\n UsageContainer,\n} from '#containers';\nimport { Account, type ClientPluginOptions } from '#types';\n\nimport { JOIN_DIALOG, RECOVERY_CODE_DIALOG, RESET_DIALOG } from '../constants';\n\ntype ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({ createInvitationUrl, onReset }: ReactSurfaceOptions) {\n const capabilityManager = yield* Capability.Service;\n\n return Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: Account.Profile,\n filter: AppSurface.literal(AppSurface.Article, Account.Profile),\n component: () => <ProfileContainer />,\n }),\n Surface.create({\n id: Account.Devices,\n filter: AppSurface.literal(AppSurface.Article, Account.Devices),\n component: () => <DevicesContainer createInvitationUrl={createInvitationUrl} />,\n }),\n Surface.create({\n id: Account.Security,\n filter: AppSurface.literal(AppSurface.Article, Account.Security),\n component: () => <RecoveryCredentialsContainer />,\n }),\n Surface.create({\n id: Account.Account,\n filter: AppSurface.literal(AppSurface.Article, Account.Account),\n component: () => <AccountContainer />,\n }),\n Surface.create({\n id: Account.Invitations,\n filter: AppSurface.literal(AppSurface.Article, Account.Invitations),\n component: () => <InvitationsContainer />,\n }),\n Surface.create({\n id: Account.Usage,\n filter: AppSurface.literal(AppSurface.Article, Account.Usage),\n component: () => <UsageContainer />,\n }),\n Surface.create({\n id: JOIN_DIALOG,\n filter: AppSurface.component<ComponentProps<typeof JoinDialog>>(AppSurface.Dialog, JOIN_DIALOG),\n component: ({ data }) => <JoinDialog {...data.props} />,\n }),\n Surface.create({\n id: RECOVERY_CODE_DIALOG,\n filter: AppSurface.component<ComponentProps<typeof RecoveryCodeDialog>>(\n AppSurface.Dialog,\n RECOVERY_CODE_DIALOG,\n ),\n component: ({ data }) => <RecoveryCodeDialog {...data.props} />,\n }),\n Surface.create({\n id: RESET_DIALOG,\n filter: AppSurface.component<Pick<ComponentProps<typeof ResetDialog>, 'mode'>>(AppSurface.Dialog, RESET_DIALOG),\n component: ({ data }) => (\n <ResetDialog {...data.props} onReset={onReset} capabilityManager={capabilityManager} />\n ),\n }),\n ]);\n }),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AACxB,OAAOC,WAAoC;AAE3C,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,kBAAkB;AAE3B,SACEC,kBACAC,kBACAC,sBACAC,YACAC,kBACAC,oBACAC,8BACAC,aACAC,sBACK;AACP,SAASC,eAAyC;AAQlD,IAAA,wBAAeC,WAAWC,WACjBC,kBAAW,WAAW,EAAEC,qBAAqBC,QAAO,GAAuB;AAChF,QAAMC,oBAAoB,OAAOL,WAAWM;AAE5C,SAAON,WAAWO,YAAYC,aAAaC,cAAc;IACvDC,QAAQC,OAAO;MACbC,IAAIC,QAAQC;MACZC,QAAQC,WAAWC,QAAQD,WAAWE,SAASL,QAAQC,OAAO;MAC9DK,WAAW,MAAM,sBAAA,cAACC,kBAAAA,IAAAA;IACpB,CAAA;IACAV,QAAQC,OAAO;MACbC,IAAIC,QAAQQ;MACZN,QAAQC,WAAWC,QAAQD,WAAWE,SAASL,QAAQQ,OAAO;MAC9DF,WAAW,MAAM,sBAAA,cAACG,kBAAAA;QAAiBnB;;IACrC,CAAA;IACAO,QAAQC,OAAO;MACbC,IAAIC,QAAQU;MACZR,QAAQC,WAAWC,QAAQD,WAAWE,SAASL,QAAQU,QAAQ;MAC/DJ,WAAW,MAAM,sBAAA,cAACK,8BAAAA,IAAAA;IACpB,CAAA;IACAd,QAAQC,OAAO;MACbC,IAAIC,QAAQA;MACZE,QAAQC,WAAWC,QAAQD,WAAWE,SAASL,QAAQA,OAAO;MAC9DM,WAAW,MAAM,sBAAA,cAACM,kBAAAA,IAAAA;IACpB,CAAA;IACAf,QAAQC,OAAO;MACbC,IAAIC,QAAQa;MACZX,QAAQC,WAAWC,QAAQD,WAAWE,SAASL,QAAQa,WAAW;MAClEP,WAAW,MAAM,sBAAA,cAACQ,sBAAAA,IAAAA;IACpB,CAAA;IACAjB,QAAQC,OAAO;MACbC,IAAIC,QAAQe;MACZb,QAAQC,WAAWC,QAAQD,WAAWE,SAASL,QAAQe,KAAK;MAC5DT,WAAW,MAAM,sBAAA,cAACU,gBAAAA,IAAAA;IACpB,CAAA;IACAnB,QAAQC,OAAO;MACbC,IAAIkB;MACJf,QAAQC,WAAWG,UAA6CH,WAAWe,QAAQD,WAAAA;MACnFX,WAAW,CAAC,EAAEa,KAAI,MAAO,sBAAA,cAACC,YAAeD,KAAKE,KAAK;IACrD,CAAA;IACAxB,QAAQC,OAAO;MACbC,IAAIuB;MACJpB,QAAQC,WAAWG,UACjBH,WAAWe,QACXI,oBAAAA;MAEFhB,WAAW,CAAC,EAAEa,KAAI,MAAO,sBAAA,cAACI,oBAAuBJ,KAAKE,KAAK;IAC7D,CAAA;IACAxB,QAAQC,OAAO;MACbC,IAAIyB;MACJtB,QAAQC,WAAWG,UAA4DH,WAAWe,QAAQM,YAAAA;MAClGlB,WAAW,CAAC,EAAEa,KAAI,MAChB,sBAAA,cAACM,aAAAA;QAAa,GAAGN,KAAKE;QAAO9B;QAAkBC;;IAEnD,CAAA;GACD;AACH,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "React", "Capabilities", "Capability", "Surface", "AppSurface", "AccountContainer", "DevicesContainer", "InvitationsContainer", "JoinDialog", "ProfileContainer", "RecoveryCodeDialog", "RecoveryCredentialsContainer", "ResetDialog", "UsageContainer", "Account", "Capability", "makeModule", "fnUntraced", "createInvitationUrl", "onReset", "capabilityManager", "Service", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "Account", "Profile", "filter", "AppSurface", "literal", "Article", "component", "ProfileContainer", "Devices", "DevicesContainer", "Security", "RecoveryCredentialsContainer", "AccountContainer", "Invitations", "InvitationsContainer", "Usage", "UsageContainer", "JOIN_DIALOG", "Dialog", "data", "JoinDialog", "props", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "RESET_DIALOG", "ResetDialog"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
JOIN_DIALOG
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GSKMAS3S.mjs";
|
|
4
4
|
import {
|
|
5
5
|
RecoverIdentity
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7DEIKHB7.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/recover-identity.ts
|
|
@@ -23,4 +23,4 @@ var recover_identity_default = handler;
|
|
|
23
23
|
export {
|
|
24
24
|
recover_identity_default as default
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=recover-identity-
|
|
26
|
+
//# sourceMappingURL=recover-identity-B7YM2BR4.mjs.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RedeemPasskey
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7DEIKHB7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ClientCapabilities
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DA3LZQSD.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/redeem-passkey.ts
|
|
10
10
|
import * as Effect from "effect/Effect";
|
|
11
11
|
import * as Match from "effect/Match";
|
|
12
12
|
import { Capability } from "@dxos/app-framework";
|
|
13
|
-
import {
|
|
13
|
+
import { NativePasskey } from "@dxos/app-toolkit";
|
|
14
14
|
import { PublicKey } from "@dxos/client";
|
|
15
15
|
import { Operation } from "@dxos/compute";
|
|
16
16
|
import { invariant } from "@dxos/invariant";
|
|
@@ -19,16 +19,16 @@ var handler = RedeemPasskey.pipe(Operation.withHandler(Effect.fnUntraced(functio
|
|
|
19
19
|
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
20
20
|
invariant(client.services.services.IdentityService, "IdentityService not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 15, S: this, A: ["client.services.services.IdentityService", "'IdentityService not available'"] });
|
|
21
21
|
const { deviceKey, controlFeedKey, challenge } = yield* Effect.promise(() => client.services.services.IdentityService.requestRecoveryChallenge());
|
|
22
|
-
const { lookupKey, signature, clientDataJson, authenticatorData } = yield* Match.value(supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
|
|
23
|
-
const result = yield* Effect.promise(() => loginNativePasskey({
|
|
22
|
+
const { lookupKey, signature, clientDataJson, authenticatorData } = yield* Match.value(NativePasskey.supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
|
|
23
|
+
const result = yield* Effect.promise(() => NativePasskey.loginNativePasskey({
|
|
24
24
|
challenge: Uint8Array.from(Buffer.from(challenge, "base64"))
|
|
25
25
|
}));
|
|
26
26
|
invariant(result, "Native passkey login returned no result", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 21, S: this, A: ["result", "'Native passkey login returned no result'"] });
|
|
27
27
|
return {
|
|
28
|
-
lookupKey: PublicKey.from(decodeUrlSafeBase64(result.user_handle)),
|
|
29
|
-
signature: Buffer.from(decodeUrlSafeBase64(result.signature)),
|
|
30
|
-
clientDataJson: Buffer.from(decodeUrlSafeBase64(result.client_data_json)),
|
|
31
|
-
authenticatorData: Buffer.from(decodeUrlSafeBase64(result.authenticator_data))
|
|
28
|
+
lookupKey: PublicKey.from(NativePasskey.decodeUrlSafeBase64(result.user_handle)),
|
|
29
|
+
signature: Buffer.from(NativePasskey.decodeUrlSafeBase64(result.signature)),
|
|
30
|
+
clientDataJson: Buffer.from(NativePasskey.decodeUrlSafeBase64(result.client_data_json)),
|
|
31
|
+
authenticatorData: Buffer.from(NativePasskey.decodeUrlSafeBase64(result.authenticator_data))
|
|
32
32
|
};
|
|
33
33
|
})), Match.orElse(() => Effect.gen(function* () {
|
|
34
34
|
const credential = yield* Effect.promise(() => navigator.credentials.get({
|
|
@@ -63,4 +63,4 @@ var RECOVER_IDENTITY_RPC_TIMEOUT = 2e4;
|
|
|
63
63
|
export {
|
|
64
64
|
redeem_passkey_default as default
|
|
65
65
|
};
|
|
66
|
-
//# sourceMappingURL=redeem-passkey-
|
|
66
|
+
//# sourceMappingURL=redeem-passkey-4DR7GPMU.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/redeem-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 { NativePasskey } 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 { RedeemPasskey } from './definitions';\n\nconst handler: Operation.WithHandler<typeof RedeemPasskey> = RedeemPasskey.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 { deviceKey, controlFeedKey, challenge } = yield* Effect.promise(() =>\n client.services.services.IdentityService!.requestRecoveryChallenge(),\n );\n\n const { lookupKey, signature, clientDataJson, authenticatorData } = yield* Match.value(\n NativePasskey.supportsNativePasskeys(),\n ).pipe(\n Match.when(true, () =>\n Effect.gen(function* () {\n const result = yield* Effect.promise(() =>\n NativePasskey.loginNativePasskey({ challenge: Uint8Array.from(Buffer.from(challenge, 'base64')) }),\n );\n invariant(result, 'Native passkey login returned no result');\n return {\n lookupKey: PublicKey.from(NativePasskey.decodeUrlSafeBase64(result.user_handle)),\n signature: Buffer.from(NativePasskey.decodeUrlSafeBase64(result.signature)),\n clientDataJson: Buffer.from(NativePasskey.decodeUrlSafeBase64(result.client_data_json)),\n authenticatorData: Buffer.from(NativePasskey.decodeUrlSafeBase64(result.authenticator_data)),\n };\n }),\n ),\n Match.orElse(() =>\n Effect.gen(function* () {\n const credential = yield* Effect.promise(() =>\n navigator.credentials.get({\n publicKey: {\n challenge: Buffer.from(challenge, 'base64'),\n rpId: location.hostname,\n userVerification: 'required',\n },\n }),\n );\n return {\n lookupKey: PublicKey.from(new Uint8Array((credential as any).response.userHandle)),\n signature: Buffer.from((credential as any).response.signature),\n clientDataJson: Buffer.from((credential as any).response.clientDataJSON),\n authenticatorData: Buffer.from((credential as any).response.authenticatorData),\n };\n }),\n ),\n );\n\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.recoverIdentity(\n {\n external: {\n lookupKey,\n deviceKey,\n controlFeedKey,\n signature,\n clientDataJson,\n authenticatorData,\n },\n },\n { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },\n ),\n );\n }),\n ),\n);\n\nexport default handler;\n\nconst RECOVER_IDENTITY_RPC_TIMEOUT = 20_000;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,kBAAkB;AAC3B,SAASC,qBAAqB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAK1B,IAAA,eAA6DC;IAIvDC,UAAUC,cAAgBC,KAAAA,UAASC,YAAiB,kBAAA,aAAA;AACpD,QAAM,SAAEC,OAAWC,WAAc,IAAEC,mBAAqBC,MAAAA;AAIxD,YAAQC,OAAS,SAAEC,SAAWC,iBAAgBC,iCAAmCC,EAAAA,YAC/EC,YAAcC,GAAAA,cAAAA,GAAsB,IACpCC,GAAAA,MACAC,GAAAA,CAAAA,4CACa,iCAAA,EAAA,CAAA;UACT,WAAMC,gBAAgBV,UAAe,IACnCM,OAAcK,eAAAA,MAAAA,OAAmB,SAAA,SAAA,gBAAA,yBAAA,CAAA;qBAAEZ,WAAWa,gBAAgBC,kBAAYd,IAAW,OAAA,YAAA,cAAA,uBAAA,CAAA,EAAA,KAAA,WAAA,MAAA,MAAA,WAAA,aAAA;UAAW,SAAA,OAAA,eAAA,MAAA,cAAA,mBAAA;MAElGN,WAAkB,WAAA,KAAA,OAAA,KAAA,WAAA,QAAA,CAAA;IAClB,CAAA,CAAA;cACEQ,QAAWa,2CAA6BC,EAAAA,YAA2BC,YAAW,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,UAAA,2CAAA,EAAA,CAAA;WAC9Ed;MACAC,WAAAA,UAAgBU,KAAOI,cAAKX,oBAAcS,OAAoBL,WAAOQ,CAAAA;MACrEd,WAAAA,OAAAA,KAAmBS,cAAYP,oBAAcS,OAAmB,SAAQI,CAAAA;MAC1E,gBAAA,OAAA,KAAA,cAAA,oBAAA,OAAA,gBAAA,CAAA;MAGJV,mBACET,OAAW,KAAA,cAAA,oBAAA,OAAA,kBAAA,CAAA;IACT;oBAEIoB,MAAW,WAAA,aAAA;uBACTrB,OAAkBkB,eAAKlB,MAAAA,UAAW,YAAA,IAAA;iBAC5BsB;QACNC,WAAAA,OAAkB,KAAA,WAAA,QAAA;QACpB,MAAA,SAAA;QACF,kBAAA;MAEK;IACLrB,CAAAA,CAAAA;WACAC;MACAC,WAAAA,UAAgBU,KAAOI,IAAMM,WAAmBC,WAASC,SAAAA,UAAc,CAAA;MACvErB,WAAAA,OAAAA,KAAmBS,WAAaU,SAAmBC,SAASpB;MAC9D,gBAAA,OAAA,KAAA,WAAA,SAAA,cAAA;MACF,mBAAA,OAAA,KAAA,WAAA,SAAA,iBAAA;IAIGJ;;SAICC,eAAAA,MAAAA,OAAAA,SAAAA,SAAAA,gBAAAA,gBAAAA;cACAJ;MACAC;MACAI;MACAC;MACAC;MACF;MAEF;IAAEsB;EAAsC,GAAA;IAG9C,SAAA;EAIJ,CAAA,CAAA;AAEA,CAAA,CAAA,CAAA;;;",
|
|
6
|
+
"names": ["Effect", "Match", "Capability", "NativePasskey", "PublicKey", "Operation", "invariant", "RedeemPasskey", "invariant", "client", "services", "IdentityService", "deviceKey", "controlFeedKey", "challenge", "Effect", "lookupKey", "signature", "clientDataJson", "authenticatorData", "value", "NativePasskey", "supportsNativePasskeys", "pipe", "Match", "result", "loginNativePasskey", "Uint8Array", "Buffer", "PublicKey", "decodeUrlSafeBase64", "user_handle", "from", "client_data_json", "authenticator_data", "publicKey", "location", "userVerification", "credential", "response", "clientDataJSON", "timeout"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RedeemToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7DEIKHB7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ClientCapabilities
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DA3LZQSD.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/redeem-token.ts
|
|
@@ -26,4 +26,4 @@ var RECOVER_IDENTITY_RPC_TIMEOUT = 2e4;
|
|
|
26
26
|
export {
|
|
27
27
|
redeem_token_default as default
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=redeem-token-
|
|
29
|
+
//# sourceMappingURL=redeem-token-N5MBQG3I.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RESET_DIALOG
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GSKMAS3S.mjs";
|
|
4
4
|
import {
|
|
5
5
|
ResetStorage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7DEIKHB7.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/reset-storage.ts
|
|
@@ -23,4 +23,4 @@ var reset_storage_default = handler;
|
|
|
23
23
|
export {
|
|
24
24
|
reset_storage_default as default
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=reset-storage-
|
|
26
|
+
//# sourceMappingURL=reset-storage-K47HZTGP.mjs.map
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShareIdentity
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7DEIKHB7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Account
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-DA3LZQSD.mjs";
|
|
7
7
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/operations/share-identity.ts
|
|
10
10
|
import * as Effect from "effect/Effect";
|
|
11
|
-
import { LayoutOperation,
|
|
11
|
+
import { LayoutOperation, Paths } from "@dxos/app-toolkit";
|
|
12
12
|
import { Operation } from "@dxos/compute";
|
|
13
13
|
import { ObservabilityOperation } from "@dxos/plugin-observability";
|
|
14
14
|
var handler = ShareIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
15
15
|
yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
|
|
16
|
-
subject: getSpacePath(Account.id)
|
|
16
|
+
subject: Paths.getSpacePath(Account.id)
|
|
17
17
|
});
|
|
18
18
|
yield* Operation.invoke(LayoutOperation.Open, {
|
|
19
19
|
subject: [
|
|
20
|
-
|
|
20
|
+
Paths.getSpacePath(Account.id, Account.Profile)
|
|
21
21
|
]
|
|
22
22
|
});
|
|
23
23
|
yield* Operation.schedule(ObservabilityOperation.SendEvent, {
|
|
@@ -28,4 +28,4 @@ var share_identity_default = handler;
|
|
|
28
28
|
export {
|
|
29
29
|
share_identity_default as default
|
|
30
30
|
};
|
|
31
|
-
//# sourceMappingURL=share-identity-
|
|
31
|
+
//# sourceMappingURL=share-identity-YJIFDIPJ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/share-identity.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, Paths } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { ObservabilityOperation } from '@dxos/plugin-observability';\n\nimport { Account } from '../types';\nimport { ShareIdentity } from './definitions';\n\nconst handler: Operation.WithHandler<typeof ShareIdentity> = ShareIdentity.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: Paths.getSpacePath(Account.id) });\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [Paths.getSpacePath(Account.id, Account.Profile)],\n });\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.share' });\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,aAAa;AACvC,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AAKvC,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,aAAA;AAChB,SAAOF,UAAUG,OAAOC,gBAAgBC,iBAAiB;IAAEC,SAASC,MAAMC,aAAaC,QAAQC,EAAE;EAAE,CAAA;AACnG,SAAOV,UAAUG,OAAOC,gBAAgBO,MAAM;IAC5CL,SAAS;MAACC,MAAMC,aAAaC,QAAQC,IAAID,QAAQG,OAAO;;EAC1D,CAAA;AACA,SAAOZ,UAAUa,SAASC,uBAAuBC,WAAW;IAAEC,MAAM;EAAiB,CAAA;AACvF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAenB;",
|
|
6
|
+
"names": ["Effect", "LayoutOperation", "Paths", "Operation", "ObservabilityOperation", "handler", "ShareIdentity", "pipe", "Operation", "withHandler", "fnUntraced", "invoke", "LayoutOperation", "SwitchWorkspace", "subject", "Paths", "getSpacePath", "Account", "id", "Open", "Profile", "schedule", "ObservabilityOperation", "SendEvent", "name"]
|
|
7
|
+
}
|
|
@@ -5,12 +5,12 @@ export * from "#plugin";
|
|
|
5
5
|
|
|
6
6
|
// src/testing/initializeIdentity.ts
|
|
7
7
|
import * as Effect from "effect/Effect";
|
|
8
|
-
import {
|
|
8
|
+
import { AppSpace } from "@dxos/app-toolkit";
|
|
9
9
|
var initializeIdentity = (client) => Effect.gen(function* () {
|
|
10
10
|
const identity = yield* Effect.promise(() => client.halo.createIdentity());
|
|
11
11
|
const personalSpace = yield* Effect.promise(() => client.spaces.create({}, {
|
|
12
12
|
tags: [
|
|
13
|
-
PERSONAL_SPACE_TAG
|
|
13
|
+
AppSpace.PERSONAL_SPACE_TAG
|
|
14
14
|
]
|
|
15
15
|
}));
|
|
16
16
|
yield* Effect.promise(() => personalSpace.waitUntilReady());
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/testing/index.ts", "../../../../src/testing/initializeIdentity.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nexport * from '#plugin';\nexport { initializeIdentity } from './initializeIdentity';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport {
|
|
5
|
-
"mappings": ";;;AAIA,cAAc;;;ACAd,YAAYA,YAAY;AAExB,SAASC,
|
|
6
|
-
"names": ["Effect", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nexport * from '#plugin';\nexport { initializeIdentity } from './initializeIdentity';\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { AppSpace } from '@dxos/app-toolkit';\nimport { type Client } from '@dxos/client';\nimport { type Space } from '@dxos/client-protocol';\nimport { type Identity } from '@dxos/protocols/proto/dxos/client/services';\n\nexport type InitializeIdentityResult = {\n identity: Identity;\n personalSpace: Space;\n};\n\n/**\n * Create an identity and a personal space.\n * Returns the identity and space for further setup.\n */\nexport const initializeIdentity = (client: Client): Effect.Effect<InitializeIdentityResult, never, never> =>\n Effect.gen(function* () {\n const identity = yield* Effect.promise(() => client.halo.createIdentity());\n const personalSpace = yield* Effect.promise(() =>\n client.spaces.create({}, { tags: [AppSpace.PERSONAL_SPACE_TAG] }),\n );\n yield* Effect.promise(() => personalSpace.waitUntilReady());\n return {\n identity,\n personalSpace,\n };\n });\n"],
|
|
5
|
+
"mappings": ";;;AAIA,cAAc;;;ACAd,YAAYA,YAAY;AAExB,SAASC,gBAAgB;AAclB,IAAMC,qBAAqB,CAACC,WAC1BC,WAAI,aAAA;AACT,QAAMC,WAAW,OAAcC,eAAQ,MAAMH,OAAOI,KAAKC,eAAc,CAAA;AACvE,QAAMC,gBAAgB,OAAcH,eAAQ,MAC1CH,OAAOO,OAAOC,OAAO,CAAC,GAAG;IAAEC,MAAM;MAACX,SAASY;;EAAoB,CAAA,CAAA;AAEjE,SAAcP,eAAQ,MAAMG,cAAcK,eAAc,CAAA;AACxD,SAAO;IACLT;IACAI;EACF;AACF,CAAA;",
|
|
6
|
+
"names": ["Effect", "AppSpace", "initializeIdentity", "client", "gen", "identity", "promise", "halo", "createIdentity", "personalSpace", "spaces", "create", "tags", "PERSONAL_SPACE_TAG", "waitUntilReady"]
|
|
7
7
|
}
|
|
@@ -6,7 +6,7 @@ import { meta } from "#meta";
|
|
|
6
6
|
var pluginTranslations = [
|
|
7
7
|
{
|
|
8
8
|
"en-US": {
|
|
9
|
-
[meta.
|
|
9
|
+
[meta.profile.key]: {
|
|
10
10
|
"account.label": "User profile",
|
|
11
11
|
"profile.label": "Profile",
|
|
12
12
|
"profile.description": "User profile and account settings.",
|
|
@@ -20,6 +20,29 @@ var pluginTranslations = [
|
|
|
20
20
|
"security.label": "Security",
|
|
21
21
|
"account-panel.label": "Account",
|
|
22
22
|
"invitations-panel.label": "Invitations",
|
|
23
|
+
"usage-panel.label": "Usage",
|
|
24
|
+
"usage-section.title": "Usage",
|
|
25
|
+
"usage-section.description": "Rolling-window consumption against your plan limits for edge services such as AI inference.",
|
|
26
|
+
"usage-unavailable.title": "Usage unavailable",
|
|
27
|
+
"usage-unavailable.description": "Hub service is not configured, so usage data cannot be loaded.",
|
|
28
|
+
"usage-offline.title": "Couldn\u2019t load usage",
|
|
29
|
+
"usage-offline.description": "Reconnect and reopen this panel to refresh usage and limits.",
|
|
30
|
+
"usage-empty.title": "No usage recorded",
|
|
31
|
+
"usage-empty.description": "Usage will appear here once you start using metered edge services.",
|
|
32
|
+
"usage-limit.description": "{{used}} of {{limit}} in the last {{window}}",
|
|
33
|
+
"usage-window-hours.label_one": "{{count}} hour",
|
|
34
|
+
"usage-window-hours.label_other": "{{count}} hours",
|
|
35
|
+
"usage-window-days.label_one": "{{count}} day",
|
|
36
|
+
"usage-window-days.label_other": "{{count}} days",
|
|
37
|
+
"usage-window-months.label_one": "{{count}} month",
|
|
38
|
+
"usage-window-months.label_other": "{{count}} months",
|
|
39
|
+
"usage-percent-used.label": "{{percent}}% used",
|
|
40
|
+
"usage-all-models.label": "All models",
|
|
41
|
+
"usage-unlimited.label": "Unlimited",
|
|
42
|
+
"usage-unlimited.description": "{{used}} used in the last {{window}}",
|
|
43
|
+
"usage-last-updated.label": "Last updated {{time}}",
|
|
44
|
+
"usage-refresh.label": "Refresh",
|
|
45
|
+
"usage-raw-json.label": "Raw JSON",
|
|
23
46
|
"account-section.title": "Account",
|
|
24
47
|
"account-section.description": "Your identity on this device is bound to a DXOS account that gates access to edge services like sync, agents, and AI.",
|
|
25
48
|
"invitations-section.title": "Invitations",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as shellTranslations } from '@dxos/shell/react';\n\nimport { meta } from '#meta';\n\n// TODO(burdon): Disambiguate with sdk/shell\nconst pluginTranslations = [\n {\n 'en-US': {\n [meta.
|
|
5
|
-
"mappings": ";;;AAKA,SAASA,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAGrB,IAAMC,qBAAqB;EACzB;IACE,SAAS;MACP,CAACD,KAAKE,
|
|
6
|
-
"names": ["translations", "shellTranslations", "meta", "pluginTranslations", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as shellTranslations } from '@dxos/shell/react';\n\nimport { meta } from '#meta';\n\n// TODO(burdon): Disambiguate with sdk/shell\nconst pluginTranslations = [\n {\n 'en-US': {\n [meta.profile.key]: {\n 'account.label': 'User profile',\n 'profile.label': 'Profile',\n 'profile.description': 'User profile and account settings.',\n 'devices.label': 'Devices',\n 'add-device.label': 'Add device',\n 'devices-verbose.label': 'Manage devices',\n 'add-device.description':\n 'Authenticating another device is a two-step process. To get started, create a code using the button below.',\n 'devices.description': 'Devices, cloud agents, and account access for this identity.',\n 'create-device-invitation.label': 'Create code',\n 'qr-code.description':\n 'Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.',\n 'security.label': 'Security',\n 'account-panel.label': 'Account',\n 'invitations-panel.label': 'Invitations',\n 'usage-panel.label': 'Usage',\n 'usage-section.title': 'Usage',\n 'usage-section.description':\n 'Rolling-window consumption against your plan limits for edge services such as AI inference.',\n 'usage-unavailable.title': 'Usage unavailable',\n 'usage-unavailable.description': 'Hub service is not configured, so usage data cannot be loaded.',\n 'usage-offline.title': 'Couldn’t load usage',\n 'usage-offline.description': 'Reconnect and reopen this panel to refresh usage and limits.',\n 'usage-empty.title': 'No usage recorded',\n 'usage-empty.description': 'Usage will appear here once you start using metered edge services.',\n 'usage-limit.description': '{{used}} of {{limit}} in the last {{window}}',\n 'usage-window-hours.label_one': '{{count}} hour',\n 'usage-window-hours.label_other': '{{count}} hours',\n 'usage-window-days.label_one': '{{count}} day',\n 'usage-window-days.label_other': '{{count}} days',\n 'usage-window-months.label_one': '{{count}} month',\n 'usage-window-months.label_other': '{{count}} months',\n 'usage-percent-used.label': '{{percent}}% used',\n 'usage-all-models.label': 'All models',\n 'usage-unlimited.label': 'Unlimited',\n 'usage-unlimited.description': '{{used}} used in the last {{window}}',\n 'usage-last-updated.label': 'Last updated {{time}}',\n 'usage-refresh.label': 'Refresh',\n 'usage-raw-json.label': 'Raw JSON',\n 'account-section.title': 'Account',\n 'account-section.description':\n 'Your identity on this device is bound to a DXOS account that gates access to edge services like sync, agents, and AI.',\n 'invitations-section.title': 'Invitations',\n 'invitations-section.description':\n 'Share an invitation with someone you’d like to bring onto DXOS. Each code grants one-time access to create an account.',\n 'no-edge-access.title': 'No edge access',\n 'no-edge-access.description':\n 'This identity is not bound to a DXOS account, so features that depend on edge services will not work. Request access below to be notified when an invitation is available.',\n 'access-request-email.placeholder': 'you@example.com',\n 'access-request-submitted.message': 'Thanks — we’ll be in touch.',\n 'request-access.label': 'Request access',\n 'request-access.description': 'Enter your email and we’ll add you to the waiting list.',\n 'account-offline.title': 'Couldn’t reach the server',\n 'account-offline.description':\n 'Account information could not be refreshed. Reconnect to update; cached values are shown until then.',\n 'email.label': 'Email',\n 'resend-verification.label': 'Resend verification email',\n 'verification-sent.message': 'Verification email sent.',\n 'verification-cooldown.message': 'Please wait {{seconds}}s before resending.',\n 'verification-failed.message': 'Could not send verification email.',\n 'delete-account.label': 'Delete account',\n 'delete-account.description':\n 'Permanently delete your account and all associated data. This will sign you out of this device.',\n 'generate-invitation.label': 'Generate invitation',\n 'generate-invitation.description_zero': 'You have no invitations left to generate.',\n 'generate-invitation.description_one': 'You have {{count}} invitation left to generate.',\n 'generate-invitation.description_other': 'You have {{count}} invitations left to generate.',\n 'available-invitations.title': 'Available invitations',\n 'redeemed-invitations.title': 'Redeemed invitations',\n 'reset-device.description': 'Log out from this device, erasing all the data on this device.',\n 'join-new-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log in.',\n 'recover-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log in.',\n 'danger-zone.title': 'Log out',\n 'danger-zone.description':\n 'Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you’d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer device invitation above.',\n 'display-name.label': 'Display name',\n 'display-name.description': 'Your name as it appears in the app.',\n 'display-name-input.placeholder': 'Enter a name',\n 'icon.label': 'Avatar',\n 'icon.description': 'The emoji used to represent the user.',\n 'hue.label': 'Color',\n 'hue.description':\n 'The color used to represent you in the app, including as your avatar’s background, your cursor as it appears to others, and the messages you send in group threads.',\n 'did.label': 'DID',\n 'did.description': 'Your unique ID.',\n 'open-user-account.label': 'Open user account',\n 'manage-credentials-dialog.title': 'Manage Account Recovery',\n 'credentials-list.label': 'Recovery credentials',\n 'no-credentials.title': 'WARNING: There is currently no way to recover your account.',\n 'no-credentials.message': 'Create a recovery credential above to secure your account.',\n 'recovery-setup-dialog.title': 'Account Security',\n 'recovery-setup-dialog.description':\n '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 manager.',\n 'create-passkey.label': 'Create Passkey',\n // TODO(wittjosiah): At link to user-focused passkey information.\n // Something like https://www.tomsguide.com/news/what-are-passkeys.\n 'create-passkey.description':\n 'A passkey is a secure and easy to use credential that can be used to recover your account.',\n 'create-recovery-code.label': 'Create Recovery Code',\n 'create-recovery-code.description': 'A recovery code is 12 word phrase representing a private key.',\n 'recovery-code-dialog.title': 'Recovery Code',\n 'recovery-code-dialog.description':\n '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 devices.',\n 'recovery-code-dialog-warning-1.message': 'NOTE: This code will not be displayed again.',\n 'recovery-code-dialog-warning-2.message':\n 'It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.',\n 'recovery-code-confirmation.label': 'Please confirm you have saved the code.',\n 'continue.label': 'Continue',\n 'auth-code.message': 'Authorization code',\n 'auth-other-device-emoji.message': 'Authorization icon',\n 'cancel.label': 'Cancel',\n 'join-new-identity.label': 'Join an existing identity',\n 'qr.label': 'QR Code',\n 'recover-identity.label': 'Use a recovery code',\n 'reset-device.label': 'Reset storage',\n 'reset-dialog.description': 'Reset storage',\n 'reset-dialog.title': 'Reset storage',\n },\n },\n },\n] as const satisfies Resource[];\n\nexport const translations: Resource[] = [...pluginTranslations, ...shellTranslations];\n"],
|
|
5
|
+
"mappings": ";;;AAKA,SAASA,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAGrB,IAAMC,qBAAqB;EACzB;IACE,SAAS;MACP,CAACD,KAAKE,QAAQC,GAAG,GAAG;QAClB,iBAAiB;QACjB,iBAAiB;QACjB,uBAAuB;QACvB,iBAAiB;QACjB,oBAAoB;QACpB,yBAAyB;QACzB,0BACE;QACF,uBAAuB;QACvB,kCAAkC;QAClC,uBACE;QACF,kBAAkB;QAClB,uBAAuB;QACvB,2BAA2B;QAC3B,qBAAqB;QACrB,uBAAuB;QACvB,6BACE;QACF,2BAA2B;QAC3B,iCAAiC;QACjC,uBAAuB;QACvB,6BAA6B;QAC7B,qBAAqB;QACrB,2BAA2B;QAC3B,2BAA2B;QAC3B,gCAAgC;QAChC,kCAAkC;QAClC,+BAA+B;QAC/B,iCAAiC;QACjC,iCAAiC;QACjC,mCAAmC;QACnC,4BAA4B;QAC5B,0BAA0B;QAC1B,yBAAyB;QACzB,+BAA+B;QAC/B,4BAA4B;QAC5B,uBAAuB;QACvB,wBAAwB;QACxB,yBAAyB;QACzB,+BACE;QACF,6BAA6B;QAC7B,mCACE;QACF,wBAAwB;QACxB,8BACE;QACF,oCAAoC;QACpC,oCAAoC;QACpC,wBAAwB;QACxB,8BAA8B;QAC9B,yBAAyB;QACzB,+BACE;QACF,eAAe;QACf,6BAA6B;QAC7B,6BAA6B;QAC7B,iCAAiC;QACjC,+BAA+B;QAC/B,wBAAwB;QACxB,8BACE;QACF,6BAA6B;QAC7B,wCAAwC;QACxC,uCAAuC;QACvC,yCAAyC;QACzC,+BAA+B;QAC/B,8BAA8B;QAC9B,4BAA4B;QAC5B,iCACE;QACF,gCACE;QACF,qBAAqB;QACrB,2BACE;QACF,sBAAsB;QACtB,4BAA4B;QAC5B,kCAAkC;QAClC,cAAc;QACd,oBAAoB;QACpB,aAAa;QACb,mBACE;QACF,aAAa;QACb,mBAAmB;QACnB,2BAA2B;QAC3B,mCAAmC;QACnC,0BAA0B;QAC1B,wBAAwB;QACxB,0BAA0B;QAC1B,+BAA+B;QAC/B,qCACE;QACF,wBAAwB;;;QAGxB,8BACE;QACF,8BAA8B;QAC9B,oCAAoC;QACpC,8BAA8B;QAC9B,oCACE;QACF,0CAA0C;QAC1C,0CACE;QACF,oCAAoC;QACpC,kBAAkB;QAClB,qBAAqB;QACrB,mCAAmC;QACnC,gBAAgB;QAChB,2BAA2B;QAC3B,YAAY;QACZ,0BAA0B;QAC1B,sBAAsB;QACtB,4BAA4B;QAC5B,sBAAsB;MACxB;IACF;EACF;;AAGK,IAAML,eAA2B;KAAIG;KAAuBF;;",
|
|
6
|
+
"names": ["translations", "shellTranslations", "meta", "pluginTranslations", "profile", "key"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly plugin: {
|
|
3
|
+
readonly key: string;
|
|
4
|
+
readonly name: string;
|
|
5
|
+
readonly description?: string | undefined;
|
|
6
|
+
readonly author?: string | undefined;
|
|
7
|
+
readonly homePage?: string | undefined;
|
|
8
|
+
readonly source?: string | undefined;
|
|
9
|
+
readonly screenshots?: readonly {
|
|
10
|
+
readonly light?: string | undefined;
|
|
11
|
+
readonly dark?: string | undefined;
|
|
12
|
+
}[] | undefined;
|
|
13
|
+
readonly tags?: readonly string[] | undefined;
|
|
14
|
+
readonly icon?: {
|
|
15
|
+
readonly key: string;
|
|
16
|
+
readonly hue?: string | undefined;
|
|
17
|
+
} | undefined;
|
|
18
|
+
readonly spec?: string | undefined;
|
|
19
|
+
readonly dependsOn?: readonly string[] | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly publish?: {
|
|
22
|
+
readonly buildCommand?: string | undefined;
|
|
23
|
+
readonly outputDirectory?: string | undefined;
|
|
24
|
+
readonly assetBaseUrl?: string | undefined;
|
|
25
|
+
} | undefined;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=dx.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dx.config.d.ts","sourceRoot":"","sources":["../../dx.config.ts"],"names":[],"mappings":""}
|
|
@@ -1,38 +1,8 @@
|
|
|
1
1
|
import { Capability } from '@dxos/app-framework';
|
|
2
2
|
import { OperationHandlerSet } from '@dxos/compute';
|
|
3
|
-
export declare const AccountCache: Capability.LazyCapability<void, Capability.
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
readonly email: string;
|
|
7
|
-
readonly emailVerified: boolean;
|
|
8
|
-
readonly createdAt: string;
|
|
9
|
-
readonly invitationsRemaining: number;
|
|
10
|
-
} | undefined;
|
|
11
|
-
readonly invitations?: readonly {
|
|
12
|
-
readonly code: string;
|
|
13
|
-
readonly createdAt: string;
|
|
14
|
-
readonly redeemedByIdentityDid?: string | undefined;
|
|
15
|
-
readonly redeemedAt?: string | undefined;
|
|
16
|
-
}[] | undefined;
|
|
17
|
-
readonly fetchedAt?: number | undefined;
|
|
18
|
-
}, {
|
|
19
|
-
readonly account?: {
|
|
20
|
-
readonly identityDid: string;
|
|
21
|
-
readonly email: string;
|
|
22
|
-
readonly emailVerified: boolean;
|
|
23
|
-
readonly createdAt: string;
|
|
24
|
-
readonly invitationsRemaining: number;
|
|
25
|
-
} | undefined;
|
|
26
|
-
readonly invitations?: readonly {
|
|
27
|
-
readonly code: string;
|
|
28
|
-
readonly createdAt: string;
|
|
29
|
-
readonly redeemedByIdentityDid?: string | undefined;
|
|
30
|
-
readonly redeemedAt?: string | undefined;
|
|
31
|
-
}[] | undefined;
|
|
32
|
-
readonly fetchedAt?: number | undefined;
|
|
33
|
-
}>>>, Error>;
|
|
34
|
-
export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
|
|
35
|
-
export declare const HubHttpClient: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/edge-client").HubHttpClient>> | [], Error>;
|
|
3
|
+
export declare const AccountCache: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
|
|
4
|
+
export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
|
|
5
|
+
export declare const HubHttpClient: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
|
|
36
6
|
export declare const Client: Capability.LazyCapability<{
|
|
37
7
|
config?: import("@dxos/config").Config;
|
|
38
8
|
services?: import("@dxos/util").MaybePromise<import("@dxos/client-protocol").ClientServicesProvider>;
|
|
@@ -48,19 +18,15 @@ export declare const Client: Capability.LazyCapability<{
|
|
|
48
18
|
onSpacesReady?: (params: {
|
|
49
19
|
client: import("@dxos/client").Client;
|
|
50
20
|
}) => import("effect/Effect").Effect<void, Error | never, Capability.Service | never>;
|
|
51
|
-
},
|
|
52
|
-
export declare const LayerSpecs: Capability.LazyCapability<void, Capability.
|
|
53
|
-
export declare const Migrations: Capability.LazyCapability<void, Capability.
|
|
21
|
+
}, Capability.ModuleReturn, Error>;
|
|
22
|
+
export declare const LayerSpecs: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
|
|
23
|
+
export declare const Migrations: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
|
|
54
24
|
export { NavigationHandler } from './navigation-handler';
|
|
55
25
|
export type { NavigationHandlerOptions } from './navigation-handler';
|
|
56
26
|
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
57
|
-
export declare const ReactContext: Capability.LazyCapability<void, Capability.
|
|
58
|
-
id: string;
|
|
59
|
-
dependsOn?: string[];
|
|
60
|
-
context: import("react").FC<import("react").PropsWithChildren>;
|
|
61
|
-
}>>>, Error>;
|
|
27
|
+
export declare const ReactContext: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
|
|
62
28
|
export declare const ReactSurface: Capability.LazyCapability<Pick<import("..").ClientPluginOptions, "onReset"> & {
|
|
63
29
|
createInvitationUrl: (invitationCode: string) => string;
|
|
64
|
-
}, Capability.
|
|
65
|
-
export declare const SchemaDefs: Capability.LazyCapability<void, Capability.
|
|
30
|
+
}, Capability.ModuleReturn, Error>;
|
|
31
|
+
export declare const SchemaDefs: Capability.LazyCapability<void, Capability.ModuleReturn, Error>;
|
|
66
32
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,eAAe,iEAA0E,CAAC;AACvG,eAAO,MAAM,aAAa,iEAAsE,CAAC;AACjG,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;kCAAsD,CAAC;AAC1E,eAAO,MAAM,UAAU,iEAAuF,CAAC;AAC/G,eAAO,MAAM,UAAU,iEAA8D,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACrE,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iEAAmE,CAAC;AAC7F,eAAO,MAAM,YAAY;;kCAAmE,CAAC;AAC7F,eAAO,MAAM,UAAU,iEAA+D,CAAC"}
|