@dxos/plugin-client 0.9.0 → 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.
Files changed (190) hide show
  1. package/dist/lib/neutral/{AccountContainer-FZ3IC6H4.mjs → AccountContainer-LIMGLO2Y.mjs} +3 -3
  2. package/dist/lib/neutral/AccountContainer-LIMGLO2Y.mjs.map +7 -0
  3. package/dist/lib/neutral/ClientPlugin.node.mjs +477 -370
  4. package/dist/lib/neutral/ClientPlugin.node.mjs.map +4 -4
  5. package/dist/lib/neutral/{DevicesContainer-6MWNUC3I.mjs → DevicesContainer-X26OGLFK.mjs} +12 -12
  6. package/dist/lib/neutral/DevicesContainer-X26OGLFK.mjs.map +7 -0
  7. package/dist/lib/neutral/{InvitationsContainer-ME722VKS.mjs → InvitationsContainer-OBBCJ7CJ.mjs} +2 -2
  8. package/dist/lib/neutral/InvitationsContainer-OBBCJ7CJ.mjs.map +7 -0
  9. package/dist/lib/neutral/{JoinDialog-2NXAKPLP.mjs → JoinDialog-4BWV4CYB.mjs} +2 -2
  10. package/dist/lib/neutral/JoinDialog-4BWV4CYB.mjs.map +7 -0
  11. package/dist/lib/neutral/{ProfileContainer-VPX3FPWG.mjs → ProfileContainer-FGS2MVWA.mjs} +2 -2
  12. package/dist/lib/neutral/ProfileContainer-FGS2MVWA.mjs.map +7 -0
  13. package/dist/lib/neutral/{RecoveryCodeDialog-EWHB6U5T.mjs → RecoveryCodeDialog-7EPNKCLB.mjs} +2 -2
  14. package/dist/lib/neutral/RecoveryCodeDialog-7EPNKCLB.mjs.map +7 -0
  15. package/dist/lib/neutral/{RecoveryCredentialsContainer-IPBGDMIA.mjs → RecoveryCredentialsContainer-SL4LYHBE.mjs} +3 -3
  16. package/dist/lib/neutral/RecoveryCredentialsContainer-SL4LYHBE.mjs.map +7 -0
  17. package/dist/lib/neutral/UsageContainer-HBPMLIK7.mjs +226 -0
  18. package/dist/lib/neutral/UsageContainer-HBPMLIK7.mjs.map +7 -0
  19. package/dist/lib/neutral/{app-graph-builder-A74W7C36.mjs → app-graph-builder-FTXJNX37.mjs} +28 -14
  20. package/dist/lib/neutral/app-graph-builder-FTXJNX37.mjs.map +7 -0
  21. package/dist/lib/neutral/capabilities/index.mjs +5 -5
  22. package/dist/lib/neutral/capabilities/node.mjs +3 -3
  23. package/dist/lib/neutral/chunk-54MDDWCV.mjs +8 -0
  24. package/dist/lib/neutral/{chunk-NTVDGDQ3.mjs.map → chunk-54MDDWCV.mjs.map} +2 -2
  25. package/dist/lib/neutral/chunk-6G4KZLBG.mjs +28 -0
  26. package/dist/lib/neutral/chunk-6G4KZLBG.mjs.map +7 -0
  27. package/dist/lib/neutral/{chunk-D6HPCLTS.mjs → chunk-7DEIKHB7.mjs} +16 -2
  28. package/dist/lib/neutral/chunk-7DEIKHB7.mjs.map +7 -0
  29. package/dist/lib/neutral/{chunk-TUK3ELUU.mjs → chunk-DA3LZQSD.mjs} +22 -21
  30. package/dist/lib/neutral/chunk-DA3LZQSD.mjs.map +7 -0
  31. package/dist/lib/neutral/chunk-GSKMAS3S.mjs +13 -0
  32. package/dist/lib/neutral/chunk-GSKMAS3S.mjs.map +7 -0
  33. package/dist/lib/neutral/containers/index.mjs +10 -8
  34. package/dist/lib/neutral/containers/index.mjs.map +3 -3
  35. package/dist/lib/neutral/{create-agent-6HLW4D3A.mjs → create-agent-U567RM7Z.mjs} +3 -3
  36. package/dist/lib/neutral/{create-identity-JIWAR5GW.mjs → create-identity-IKN2FJ5B.mjs} +3 -3
  37. package/dist/lib/neutral/{create-passkey-FOXEMXGF.mjs → create-passkey-JAD3ACY7.mjs} +7 -7
  38. package/dist/lib/neutral/create-passkey-JAD3ACY7.mjs.map +7 -0
  39. package/dist/lib/neutral/{create-recovery-code-ZWDKLPH4.mjs → create-recovery-code-JZYXR4BY.mjs} +4 -4
  40. package/dist/lib/neutral/index.mjs +4 -4
  41. package/dist/lib/neutral/{join-identity-QEQFAE2S.mjs → join-identity-PJCHDNLH.mjs} +3 -3
  42. package/dist/lib/neutral/{layer-specs-CQLXQBQJ.mjs → layer-specs-VQCJLV33.mjs} +2 -2
  43. package/dist/lib/neutral/{layer-specs-CQLXQBQJ.mjs.map → layer-specs-VQCJLV33.mjs.map} +2 -2
  44. package/dist/lib/neutral/meta.json +1 -1
  45. package/dist/lib/neutral/meta.mjs +1 -1
  46. package/dist/lib/neutral/{navigation-handler-LU26CDFR.mjs → navigation-handler-MPJAVHWY.mjs} +3 -3
  47. package/dist/lib/neutral/open-usage-24I7RAFL.mjs +27 -0
  48. package/dist/lib/neutral/open-usage-24I7RAFL.mjs.map +7 -0
  49. package/dist/lib/neutral/operations/index.mjs +2 -2
  50. package/dist/lib/neutral/plugin.mjs +3 -3
  51. package/dist/lib/neutral/{react-context-B5LXMHVM.mjs → react-context-V74T6JOJ.mjs} +2 -2
  52. package/dist/lib/neutral/{react-context-B5LXMHVM.mjs.map → react-context-V74T6JOJ.mjs.map} +3 -3
  53. package/dist/lib/neutral/{react-surface-DEKGWTCD.mjs → react-surface-HPXRA65U.mjs} +8 -3
  54. package/dist/lib/neutral/react-surface-HPXRA65U.mjs.map +7 -0
  55. package/dist/lib/neutral/{recover-identity-JNFKLCUD.mjs → recover-identity-B7YM2BR4.mjs} +3 -3
  56. package/dist/lib/neutral/{redeem-passkey-4SBAI4AG.mjs → redeem-passkey-4DR7GPMU.mjs} +10 -10
  57. package/dist/lib/neutral/redeem-passkey-4DR7GPMU.mjs.map +7 -0
  58. package/dist/lib/neutral/{redeem-token-POBD6TMN.mjs → redeem-token-N5MBQG3I.mjs} +3 -3
  59. package/dist/lib/neutral/{reset-storage-LQKUV5RA.mjs → reset-storage-K47HZTGP.mjs} +3 -3
  60. package/dist/lib/neutral/{share-identity-KNQ2XNXV.mjs → share-identity-YJIFDIPJ.mjs} +6 -6
  61. package/dist/lib/neutral/share-identity-YJIFDIPJ.mjs.map +7 -0
  62. package/dist/lib/neutral/testing/index.mjs +2 -2
  63. package/dist/lib/neutral/testing/index.mjs.map +3 -3
  64. package/dist/lib/neutral/translations.mjs +24 -1
  65. package/dist/lib/neutral/translations.mjs.map +3 -3
  66. package/dist/lib/neutral/types/index.mjs +1 -1
  67. package/dist/types/dx.config.d.ts +28 -0
  68. package/dist/types/dx.config.d.ts.map +1 -0
  69. package/dist/types/src/capabilities/index.d.ts +9 -43
  70. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  71. package/dist/types/src/capabilities/navigation-handler/index.d.ts +1 -1
  72. package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -1
  73. package/dist/types/src/capabilities/node.d.ts +6 -6
  74. package/dist/types/src/capabilities/node.d.ts.map +1 -1
  75. package/dist/types/src/capabilities/react-surface.d.ts +2 -2
  76. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  77. package/dist/types/src/commands/account/index.d.ts +3 -0
  78. package/dist/types/src/commands/account/index.d.ts.map +1 -0
  79. package/dist/types/src/commands/account/login/index.d.ts +2 -0
  80. package/dist/types/src/commands/account/login/index.d.ts.map +1 -0
  81. package/dist/types/src/commands/account/login/login.d.ts +12 -0
  82. package/dist/types/src/commands/account/login/login.d.ts.map +1 -0
  83. package/dist/types/src/commands/account/logout/index.d.ts +2 -0
  84. package/dist/types/src/commands/account/logout/index.d.ts.map +1 -0
  85. package/dist/types/src/commands/account/logout/logout.d.ts +9 -0
  86. package/dist/types/src/commands/account/logout/logout.d.ts.map +1 -0
  87. package/dist/types/src/commands/halo/join/join.d.ts +1 -1
  88. package/dist/types/src/commands/halo/join/join.d.ts.map +1 -1
  89. package/dist/types/src/commands/halo/util.d.ts +4 -0
  90. package/dist/types/src/commands/halo/util.d.ts.map +1 -1
  91. package/dist/types/src/commands/index.d.ts +1 -0
  92. package/dist/types/src/commands/index.d.ts.map +1 -1
  93. package/dist/types/src/constants.d.ts.map +1 -1
  94. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
  95. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -1
  96. package/dist/types/src/containers/UsageContainer/UsageContainer.d.ts +7 -0
  97. package/dist/types/src/containers/UsageContainer/UsageContainer.d.ts.map +1 -0
  98. package/dist/types/src/containers/UsageContainer/UsageView.d.ts +19 -0
  99. package/dist/types/src/containers/UsageContainer/UsageView.d.ts.map +1 -0
  100. package/dist/types/src/containers/UsageContainer/UsageView.stories.d.ts +19 -0
  101. package/dist/types/src/containers/UsageContainer/UsageView.stories.d.ts.map +1 -0
  102. package/dist/types/src/containers/UsageContainer/index.d.ts +2 -0
  103. package/dist/types/src/containers/UsageContainer/index.d.ts.map +1 -0
  104. package/dist/types/src/containers/index.d.ts +1 -0
  105. package/dist/types/src/containers/index.d.ts.map +1 -1
  106. package/dist/types/src/meta.d.ts +28 -2
  107. package/dist/types/src/meta.d.ts.map +1 -1
  108. package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
  109. package/dist/types/src/operations/definitions.d.ts +1 -0
  110. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  111. package/dist/types/src/operations/index.d.ts.map +1 -1
  112. package/dist/types/src/operations/open-usage.d.ts +5 -0
  113. package/dist/types/src/operations/open-usage.d.ts.map +1 -0
  114. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
  115. package/dist/types/src/translations.d.ts.map +1 -1
  116. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  117. package/dist/types/src/types/events.d.ts.map +1 -1
  118. package/dist/types/src/types/schema.d.ts +1 -0
  119. package/dist/types/src/types/schema.d.ts.map +1 -1
  120. package/dist/types/tsconfig.tsbuildinfo +1 -1
  121. package/dx.config.ts +19 -0
  122. package/package.json +37 -35
  123. package/src/ClientPlugin.node.ts +2 -2
  124. package/src/ClientPlugin.test.ts +1 -1
  125. package/src/capabilities/app-graph-builder.ts +22 -13
  126. package/src/capabilities/layer-specs.ts +1 -1
  127. package/src/capabilities/react-context.tsx +1 -1
  128. package/src/capabilities/react-surface.tsx +6 -0
  129. package/src/commands/account/index.ts +13 -0
  130. package/src/commands/account/login/index.ts +5 -0
  131. package/src/commands/account/login/login.ts +147 -0
  132. package/src/commands/account/logout/index.ts +5 -0
  133. package/src/commands/account/logout/logout.ts +49 -0
  134. package/src/commands/halo/create/create.ts +2 -2
  135. package/src/commands/halo/index.ts +6 -6
  136. package/src/commands/halo/join/join.ts +2 -13
  137. package/src/commands/halo/util.ts +24 -0
  138. package/src/commands/index.ts +1 -0
  139. package/src/constants.ts +3 -3
  140. package/src/containers/AccountContainer/AccountContainer.tsx +1 -1
  141. package/src/containers/DevicesContainer/DevicesContainer.tsx +14 -11
  142. package/src/containers/InvitationsContainer/InvitationsContainer.tsx +1 -1
  143. package/src/containers/JoinDialog/JoinDialog.tsx +1 -1
  144. package/src/containers/ProfileContainer/ProfileContainer.tsx +1 -1
  145. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.tsx +1 -1
  146. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +2 -2
  147. package/src/containers/UsageContainer/UsageContainer.tsx +47 -0
  148. package/src/containers/UsageContainer/UsageView.stories.tsx +114 -0
  149. package/src/containers/UsageContainer/UsageView.tsx +238 -0
  150. package/src/containers/UsageContainer/index.ts +5 -0
  151. package/src/containers/index.ts +1 -0
  152. package/src/meta.ts +3 -12
  153. package/src/operations/create-passkey.ts +6 -4
  154. package/src/operations/definitions.ts +12 -1
  155. package/src/operations/index.ts +1 -0
  156. package/src/operations/open-usage.ts +24 -0
  157. package/src/operations/redeem-passkey.ts +7 -7
  158. package/src/operations/share-identity.ts +3 -3
  159. package/src/testing/initializeIdentity.ts +4 -2
  160. package/src/translations.ts +25 -1
  161. package/src/types/capabilities.ts +7 -5
  162. package/src/types/events.ts +5 -5
  163. package/src/types/schema.ts +23 -16
  164. package/dist/lib/neutral/AccountContainer-FZ3IC6H4.mjs.map +0 -7
  165. package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs.map +0 -7
  166. package/dist/lib/neutral/InvitationsContainer-ME722VKS.mjs.map +0 -7
  167. package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs.map +0 -7
  168. package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs.map +0 -7
  169. package/dist/lib/neutral/RecoveryCodeDialog-EWHB6U5T.mjs.map +0 -7
  170. package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs.map +0 -7
  171. package/dist/lib/neutral/app-graph-builder-A74W7C36.mjs.map +0 -7
  172. package/dist/lib/neutral/chunk-D6HPCLTS.mjs.map +0 -7
  173. package/dist/lib/neutral/chunk-JOCCVODY.mjs +0 -21
  174. package/dist/lib/neutral/chunk-JOCCVODY.mjs.map +0 -7
  175. package/dist/lib/neutral/chunk-NTVDGDQ3.mjs +0 -8
  176. package/dist/lib/neutral/chunk-TUK3ELUU.mjs.map +0 -7
  177. package/dist/lib/neutral/chunk-WWCVZG3K.mjs +0 -13
  178. package/dist/lib/neutral/chunk-WWCVZG3K.mjs.map +0 -7
  179. package/dist/lib/neutral/create-passkey-FOXEMXGF.mjs.map +0 -7
  180. package/dist/lib/neutral/react-surface-DEKGWTCD.mjs.map +0 -7
  181. package/dist/lib/neutral/redeem-passkey-4SBAI4AG.mjs.map +0 -7
  182. package/dist/lib/neutral/share-identity-KNQ2XNXV.mjs.map +0 -7
  183. /package/dist/lib/neutral/{create-agent-6HLW4D3A.mjs.map → create-agent-U567RM7Z.mjs.map} +0 -0
  184. /package/dist/lib/neutral/{create-identity-JIWAR5GW.mjs.map → create-identity-IKN2FJ5B.mjs.map} +0 -0
  185. /package/dist/lib/neutral/{create-recovery-code-ZWDKLPH4.mjs.map → create-recovery-code-JZYXR4BY.mjs.map} +0 -0
  186. /package/dist/lib/neutral/{join-identity-QEQFAE2S.mjs.map → join-identity-PJCHDNLH.mjs.map} +0 -0
  187. /package/dist/lib/neutral/{navigation-handler-LU26CDFR.mjs.map → navigation-handler-MPJAVHWY.mjs.map} +0 -0
  188. /package/dist/lib/neutral/{recover-identity-JNFKLCUD.mjs.map → recover-identity-B7YM2BR4.mjs.map} +0 -0
  189. /package/dist/lib/neutral/{redeem-token-POBD6TMN.mjs.map → redeem-token-N5MBQG3I.mjs.map} +0 -0
  190. /package/dist/lib/neutral/{reset-storage-LQKUV5RA.mjs.map → reset-storage-K47HZTGP.mjs.map} +0 -0
@@ -22,7 +22,7 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
22
22
  label: [
23
23
  "open-user-account.label",
24
24
  {
25
- ns: meta.id
25
+ ns: meta.profile.key
26
26
  }
27
27
  ],
28
28
  icon: "ph--user--regular",
@@ -43,12 +43,12 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
43
43
  return [
44
44
  Node.make({
45
45
  id: Account.id,
46
- type: meta.id,
46
+ type: meta.profile.key,
47
47
  properties: {
48
48
  label: [
49
49
  "account.label",
50
50
  {
51
- ns: meta.id
51
+ ns: meta.profile.key
52
52
  }
53
53
  ],
54
54
  icon: "ph--user--regular",
@@ -64,12 +64,12 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
64
64
  Node.make({
65
65
  id: Account.Profile,
66
66
  data: Account.Profile,
67
- type: meta.id,
67
+ type: meta.profile.key,
68
68
  properties: {
69
69
  label: [
70
70
  "profile.label",
71
71
  {
72
- ns: meta.id
72
+ ns: meta.profile.key
73
73
  }
74
74
  ],
75
75
  icon: "ph--user--regular"
@@ -78,12 +78,12 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
78
78
  Node.make({
79
79
  id: Account.Account,
80
80
  data: Account.Account,
81
- type: meta.id,
81
+ type: meta.profile.key,
82
82
  properties: {
83
83
  label: [
84
84
  "account-panel.label",
85
85
  {
86
- ns: meta.id
86
+ ns: meta.profile.key
87
87
  }
88
88
  ],
89
89
  icon: "ph--identification-card--regular"
@@ -92,12 +92,12 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
92
92
  Node.make({
93
93
  id: Account.Devices,
94
94
  data: Account.Devices,
95
- type: meta.id,
95
+ type: meta.profile.key,
96
96
  properties: {
97
97
  label: [
98
98
  "devices.label",
99
99
  {
100
- ns: meta.id
100
+ ns: meta.profile.key
101
101
  }
102
102
  ],
103
103
  icon: "ph--devices--regular",
@@ -107,12 +107,12 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
107
107
  Node.make({
108
108
  id: Account.Security,
109
109
  data: Account.Security,
110
- type: meta.id,
110
+ type: meta.profile.key,
111
111
  properties: {
112
112
  label: [
113
113
  "security.label",
114
114
  {
115
- ns: meta.id
115
+ ns: meta.profile.key
116
116
  }
117
117
  ],
118
118
  icon: "ph--key--regular"
@@ -121,16 +121,30 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
121
121
  Node.make({
122
122
  id: Account.Invitations,
123
123
  data: Account.Invitations,
124
- type: meta.id,
124
+ type: meta.profile.key,
125
125
  properties: {
126
126
  label: [
127
127
  "invitations-panel.label",
128
128
  {
129
- ns: meta.id
129
+ ns: meta.profile.key
130
130
  }
131
131
  ],
132
132
  icon: "ph--ticket--regular"
133
133
  }
134
+ }),
135
+ Node.make({
136
+ id: Account.Usage,
137
+ data: Account.Usage,
138
+ type: meta.profile.key,
139
+ properties: {
140
+ label: [
141
+ "usage-panel.label",
142
+ {
143
+ ns: meta.profile.key
144
+ }
145
+ ],
146
+ icon: "ph--chart-bar--regular"
147
+ }
134
148
  })
135
149
  ]
136
150
  })
@@ -142,4 +156,4 @@ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function
142
156
  export {
143
157
  app_graph_builder_default as default
144
158
  };
145
- //# sourceMappingURL=app-graph-builder-A74W7C36.mjs.map
159
+ //# sourceMappingURL=app-graph-builder-FTXJNX37.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { CreateAtom, GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';\nimport { ConnectionState } from '@dxos/react-client/mesh';\n\nimport { meta } from '#meta';\nimport { ClientOperation } from '#operations';\nimport { Account, ClientCapabilities } from '#types';\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* GraphBuilder.createExtension({\n id: 'root',\n match: NodeMatcher.whenRoot,\n actions: () =>\n Effect.succeed([\n {\n id: 'openUserAccount',\n data: () => Operation.invoke(ClientOperation.ShareIdentity),\n properties: {\n label: ['open-user-account.label', { ns: meta.profile.key }],\n icon: 'ph--user--regular',\n disposition: 'menu',\n keyBinding: {\n macos: 'meta+shift+.',\n // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.\n windows: 'alt+shift+.',\n linux: 'alt+shift+>',\n },\n },\n },\n ]),\n connector: Effect.fnUntraced(function* (node, get) {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = get(CreateAtom.fromObservable(client.halo.identity));\n const status = get(CreateAtom.fromObservable(client.mesh.networkStatus));\n\n return [\n Node.make({\n id: Account.id,\n type: meta.profile.key,\n properties: {\n label: ['account.label', { ns: meta.profile.key }],\n icon: 'ph--user--regular',\n disposition: 'user-account',\n testId: 'clientPlugin.account',\n // NOTE: This currently needs to be the identity key because the fallback is generated from hex.\n userId: identity?.identityKey.toHex(),\n hue: identity?.profile?.data?.hue,\n emoji: identity?.profile?.data?.emoji,\n status: status.swarm === ConnectionState.OFFLINE ? 'error' : 'active',\n },\n nodes: [\n Node.make({\n id: Account.Profile,\n data: Account.Profile,\n type: meta.profile.key,\n properties: {\n label: ['profile.label', { ns: meta.profile.key }],\n icon: 'ph--user--regular',\n },\n }),\n Node.make({\n id: Account.Account,\n data: Account.Account,\n type: meta.profile.key,\n properties: {\n label: ['account-panel.label', { ns: meta.profile.key }],\n icon: 'ph--identification-card--regular',\n },\n }),\n Node.make({\n id: Account.Devices,\n data: Account.Devices,\n type: meta.profile.key,\n properties: {\n label: ['devices.label', { ns: meta.profile.key }],\n icon: 'ph--devices--regular',\n testId: 'clientPlugin.devices',\n },\n }),\n Node.make({\n id: Account.Security,\n data: Account.Security,\n type: meta.profile.key,\n properties: {\n label: ['security.label', { ns: meta.profile.key }],\n icon: 'ph--key--regular',\n },\n }),\n Node.make({\n id: Account.Invitations,\n data: Account.Invitations,\n type: meta.profile.key,\n properties: {\n label: ['invitations-panel.label', { ns: meta.profile.key }],\n icon: 'ph--ticket--regular',\n },\n }),\n Node.make({\n id: Account.Usage,\n data: Account.Usage,\n type: meta.profile.key,\n properties: {\n label: ['usage-panel.label', { ns: meta.profile.key }],\n icon: 'ph--chart-bar--regular',\n },\n }),\n ],\n }),\n ];\n }),\n });\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,cAAcC,MAAMC,mBAAmB;AAC5D,SAASC,uBAAuB;AAEhC,SAASC,YAAY;AACrB,SAASC,uBAAuB;AAChC,SAASC,SAASC,0BAA0B;AAE5C,IAAA,4BAAeX,WAAWY,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAOV,aAAaW,gBAAgB;IACrDC,IAAI;IACJC,OAAOX,YAAYY;IACnBC,SAAS,MACAC,eAAQ;MACb;QACEJ,IAAI;QACJK,MAAM,MAAMnB,UAAUoB,OAAOb,gBAAgBc,aAAa;QAC1DC,YAAY;UACVC,OAAO;YAAC;YAA2B;cAAEC,IAAIlB,KAAKmB,QAAQC;YAAI;;UAC1DC,MAAM;UACNC,aAAa;UACbC,YAAY;YACVC,OAAO;;YAEPC,SAAS;YACTC,OAAO;UACT;QACF;MACF;KACD;IACHC,WAAkBtB,kBA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ChDC,MAAM;gBACNmB,QAAQ;cACV;YACF,CAAA;YACA3C,KAAKyC,KAAK;cACR9B,IAAIN,QAAQiD;cACZtC,MAAMX,QAAQiD;cACdZ,MAAMvC,KAAKmB,QAAQC;cACnBJ,YAAY;gBACVC,OAAO;kBAAC;kBAAkB;oBAAEC,IAAIlB,KAAKmB,QAAQC;kBAAI;;gBACjDC,MAAM;cACR;YACF,CAAA;YACAxB,KAAKyC,KAAK;cACR9B,IAAIN,QAAQkD;cACZvC,MAAMX,QAAQkD;cACdb,MAAMvC,KAAKmB,QAAQC;cACnBJ,YAAY;gBACVC,OAAO;kBAAC;kBAA2B;oBAAEC,IAAIlB,KAAKmB,QAAQC;kBAAI;;gBAC1DC,MAAM;cACR;YACF,CAAA;YACAxB,KAAKyC,KAAK;cACR9B,IAAIN,QAAQmD;cACZxC,MAAMX,QAAQmD;cACdd,MAAMvC,KAAKmB,QAAQC;cACnBJ,YAAY;gBACVC,OAAO;kBAAC;kBAAqB;oBAAEC,IAAIlB,KAAKmB,QAAQC;kBAAI;;gBACpDC,MAAM;cACR;YACF,CAAA;;QAEJ,CAAA;;IAEJ,CAAA;EACF,CAAA;AAEA,SAAO7B,WAAW8D,YAAY7D,gBAAgB8D,iBAAiBjD,UAAAA;AACjE,CAAA,CAAA;",
6
+ "names": ["Effect", "Capability", "AppCapabilities", "Operation", "CreateAtom", "GraphBuilder", "Node", "NodeMatcher", "ConnectionState", "meta", "ClientOperation", "Account", "ClientCapabilities", "makeModule", "fnUntraced", "extensions", "createExtension", "id", "match", "whenRoot", "actions", "succeed", "data", "invoke", "ShareIdentity", "properties", "label", "ns", "profile", "key", "icon", "disposition", "keyBinding", "macos", "windows", "linux", "connector", "node", "get", "client", "Client", "identity", "fromObservable", "halo", "status", "mesh", "networkStatus", "make", "type", "testId", "userId", "identityKey", "toHex", "hue", "emoji", "swarm", "OFFLINE", "nodes", "Profile", "Devices", "Security", "Invitations", "Usage", "contributes", "AppGraphBuilder"]
7
+ }
@@ -5,18 +5,18 @@ import { Capability as Capability2 } from "@dxos/app-framework";
5
5
 
6
6
  // src/capabilities/navigation-handler/index.ts
7
7
  import { Capability } from "@dxos/app-framework";
8
- var NavigationHandler = Capability.lazy("NavigationHandler", () => import("../navigation-handler-LU26CDFR.mjs"));
8
+ var NavigationHandler = Capability.lazy("NavigationHandler", () => import("../navigation-handler-MPJAVHWY.mjs"));
9
9
 
10
10
  // src/capabilities/index.ts
11
11
  var AccountCache = Capability2.lazy("AccountCache", () => import("../account-cache-4EKGEUJI.mjs"));
12
- var AppGraphBuilder = Capability2.lazy("AppGraphBuilder", () => import("../app-graph-builder-A74W7C36.mjs"));
12
+ var AppGraphBuilder = Capability2.lazy("AppGraphBuilder", () => import("../app-graph-builder-FTXJNX37.mjs"));
13
13
  var HubHttpClient = Capability2.lazy("HubHttpClient", () => import("../hub-http-client-WOJUCDKV.mjs"));
14
14
  var Client = Capability2.lazy("Client", () => import("../client-7I5Y5SOA.mjs"));
15
- var LayerSpecs = Capability2.lazy("LayerSpecs", () => import("../layer-specs-CQLXQBQJ.mjs"));
15
+ var LayerSpecs = Capability2.lazy("LayerSpecs", () => import("../layer-specs-VQCJLV33.mjs"));
16
16
  var Migrations = Capability2.lazy("Migrations", () => import("../migrations-7FTW55ER.mjs"));
17
17
  var OperationHandler = Capability2.lazy("OperationHandler", () => import("../operation-handler-E3HB7E2T.mjs"));
18
- var ReactContext = Capability2.lazy("ReactContext", () => import("../react-context-B5LXMHVM.mjs"));
19
- var ReactSurface = Capability2.lazy("ReactSurface", () => import("../react-surface-DEKGWTCD.mjs"));
18
+ var ReactContext = Capability2.lazy("ReactContext", () => import("../react-context-V74T6JOJ.mjs"));
19
+ var ReactSurface = Capability2.lazy("ReactSurface", () => import("../react-surface-HPXRA65U.mjs"));
20
20
  var SchemaDefs = Capability2.lazy("SchemaDefs", () => import("../schema-defs-IHBCKTMM.mjs"));
21
21
  export {
22
22
  AccountCache,
@@ -2,11 +2,11 @@ import "../chunk-J5LGTIGS.mjs";
2
2
 
3
3
  // src/capabilities/node.ts
4
4
  import { Capability } from "@dxos/app-framework";
5
- var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-A74W7C36.mjs"));
5
+ var AppGraphBuilder = Capability.lazy("AppGraphBuilder", () => import("../app-graph-builder-FTXJNX37.mjs"));
6
6
  var Client = Capability.lazy("Client", () => import("../client-7I5Y5SOA.mjs"));
7
- var LayerSpecs = Capability.lazy("LayerSpecs", () => import("../layer-specs-CQLXQBQJ.mjs"));
7
+ var LayerSpecs = Capability.lazy("LayerSpecs", () => import("../layer-specs-VQCJLV33.mjs"));
8
8
  var Migrations = Capability.lazy("Migrations", () => import("../migrations-7FTW55ER.mjs"));
9
- var NavigationHandler = Capability.lazy("NavigationHandler", () => import("../navigation-handler-LU26CDFR.mjs"));
9
+ var NavigationHandler = Capability.lazy("NavigationHandler", () => import("../navigation-handler-MPJAVHWY.mjs"));
10
10
  var OperationHandler = Capability.lazy("OperationHandler", () => import("../operation-handler-E3HB7E2T.mjs"));
11
11
  var SchemaDefs = Capability.lazy("SchemaDefs", () => import("../schema-defs-IHBCKTMM.mjs"));
12
12
  export {
@@ -0,0 +1,8 @@
1
+ // src/operations/index.ts
2
+ import { OperationHandlerSet } from "@dxos/compute";
3
+ var ClientOperationHandlerSet = OperationHandlerSet.lazy(() => import("./create-agent-U567RM7Z.mjs"), () => import("./create-identity-IKN2FJ5B.mjs"), () => import("./create-passkey-JAD3ACY7.mjs"), () => import("./create-recovery-code-JZYXR4BY.mjs"), () => import("./join-identity-PJCHDNLH.mjs"), () => import("./open-usage-24I7RAFL.mjs"), () => import("./recover-identity-B7YM2BR4.mjs"), () => import("./redeem-passkey-4DR7GPMU.mjs"), () => import("./redeem-token-N5MBQG3I.mjs"), () => import("./reset-storage-K47HZTGP.mjs"), () => import("./share-identity-YJIFDIPJ.mjs"));
4
+
5
+ export {
6
+ ClientOperationHandlerSet
7
+ };
8
+ //# sourceMappingURL=chunk-54MDDWCV.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport * as ClientOperation from './definitions';\n\nexport const ClientOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./create-agent'),\n () => import('./create-identity'),\n () => import('./create-passkey'),\n () => import('./create-recovery-code'),\n () => import('./join-identity'),\n () => import('./recover-identity'),\n () => import('./redeem-passkey'),\n () => import('./redeem-token'),\n () => import('./reset-storage'),\n () => import('./share-identity'),\n);\n"],
5
- "mappings": ";AAIA,SAASA,2BAA2B;AAI7B,IAAMC,4BAA4BD,oBAAoBE,KAC3D,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,gCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,qCAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,+BAAA,CAAA;",
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport * as ClientOperation from './definitions';\n\nexport const ClientOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./create-agent'),\n () => import('./create-identity'),\n () => import('./create-passkey'),\n () => import('./create-recovery-code'),\n () => import('./join-identity'),\n () => import('./open-usage'),\n () => import('./recover-identity'),\n () => import('./redeem-passkey'),\n () => import('./redeem-token'),\n () => import('./reset-storage'),\n () => import('./share-identity'),\n);\n"],
5
+ "mappings": ";AAIA,SAASA,2BAA2B;AAI7B,IAAMC,4BAA4BD,oBAAoBE,KAC3D,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,gCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,qCAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,2BAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,+BAAA,CAAA;",
6
6
  "names": ["OperationHandlerSet", "ClientOperationHandlerSet", "lazy"]
7
7
  }
@@ -0,0 +1,28 @@
1
+ // src/meta.ts
2
+ import { Plugin } from "@dxos/app-framework";
3
+
4
+ // dx.config.ts
5
+ import { Config2 } from "@dxos/app-framework/config";
6
+ import { trim } from "@dxos/util";
7
+ var dx_config_default = Config2.make({
8
+ plugin: {
9
+ key: "org.dxos.plugin.client",
10
+ name: "Client",
11
+ author: "DXOS",
12
+ description: trim`
13
+ Core client connectivity and peer-to-peer networking infrastructure.
14
+ Manages identity, authentication, and real-time synchronization across devices.
15
+ `,
16
+ tags: [
17
+ "system"
18
+ ]
19
+ }
20
+ });
21
+
22
+ // src/meta.ts
23
+ var meta = Plugin.getMetaFromConfig(dx_config_default);
24
+
25
+ export {
26
+ meta
27
+ };
28
+ //# sourceMappingURL=chunk-6G4KZLBG.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts", "../../../dx.config.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\n\nimport config from '../dx.config';\n\nexport const meta = Plugin.getMetaFromConfig(config);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { Config2 } from '@dxos/app-framework/config';\nimport { trim } from '@dxos/util';\n\nexport default Config2.make({\n plugin: {\n key: 'org.dxos.plugin.client',\n name: 'Client',\n author: 'DXOS',\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 tags: ['system'],\n },\n});\n"],
5
+ "mappings": ";AAIA,SAASA,cAAc;;;ACAvB,SAASC,eAAe;AACxB,SAASC,YAAY;AAErB,IAAA,oBAAeD,QAAQE,KAAK;EAC1BC,QAAQ;IACNC,KAAK;IACLC,MAAM;IACNC,QAAQ;IACRC,aAAaN;;;;IAIbO,MAAM;MAAC;;EACT;AACF,CAAA;;;ADVO,IAAMC,OAAOC,OAAOC,kBAAkBC,iBAAAA;",
6
+ "names": ["Plugin", "Config2", "trim", "make", "plugin", "key", "name", "author", "description", "tags", "meta", "Plugin", "getMetaFromConfig", "config"]
7
+ }
@@ -10,6 +10,7 @@ __export(definitions_exports, {
10
10
  CreatePasskey: () => CreatePasskey,
11
11
  CreateRecoveryCode: () => CreateRecoveryCode,
12
12
  JoinIdentity: () => JoinIdentity,
13
+ OpenUsage: () => OpenUsage,
13
14
  RecoverIdentity: () => RecoverIdentity,
14
15
  RedeemPasskey: () => RedeemPasskey,
15
16
  RedeemToken: () => RedeemToken,
@@ -21,7 +22,7 @@ import { Capability } from "@dxos/app-framework";
21
22
  import { Operation } from "@dxos/compute";
22
23
  import { DXN, IdentityDid, SpaceId } from "@dxos/keys";
23
24
  import { meta } from "#meta";
24
- var makeKey = (name) => DXN.make(`${meta.id}.operation.${name}`);
25
+ var makeKey = (name) => DXN.make(`${meta.profile.key}.operation.${name}`);
25
26
  var IdentitySchema = Schema.Struct({
26
27
  identityDid: IdentityDid,
27
28
  spaceId: Schema.optional(SpaceId),
@@ -80,6 +81,18 @@ var ShareIdentity = Operation.make({
80
81
  input: Schema.Void,
81
82
  output: Schema.Void
82
83
  });
84
+ var OpenUsage = Operation.make({
85
+ meta: {
86
+ key: makeKey("openUsage"),
87
+ name: "Open Usage",
88
+ icon: "ph--chart-bar--regular"
89
+ },
90
+ services: [
91
+ Capability.Service
92
+ ],
93
+ input: Schema.Void,
94
+ output: Schema.Void
95
+ });
83
96
  var RecoverIdentity = Operation.make({
84
97
  meta: {
85
98
  key: makeKey("recoverIdentity"),
@@ -173,6 +186,7 @@ export {
173
186
  CreateIdentity,
174
187
  JoinIdentity,
175
188
  ShareIdentity,
189
+ OpenUsage,
176
190
  RecoverIdentity,
177
191
  ResetStorage,
178
192
  CreateAgent,
@@ -182,4 +196,4 @@ export {
182
196
  RedeemToken,
183
197
  definitions_exports
184
198
  };
185
- //# sourceMappingURL=chunk-D6HPCLTS.mjs.map
199
+ //# sourceMappingURL=chunk-7DEIKHB7.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 { Operation } from '@dxos/compute';\nimport { DXN, IdentityDid, SpaceId } from '@dxos/keys';\n\nimport { meta } from '#meta';\n\nconst makeKey = (name: string) => DXN.make(`${meta.profile.key}.operation.${name}`);\n\nconst IdentitySchema = Schema.Struct({\n identityDid: IdentityDid,\n spaceId: Schema.optional(SpaceId),\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: makeKey('createIdentity'), name: 'Create Identity', icon: 'ph--user--regular' },\n services: [Capability.Service],\n input: ProfileSchema,\n output: IdentitySchema,\n});\n\nexport const JoinIdentity = Operation.make({\n meta: { key: makeKey('joinIdentity'), name: 'Join Identity', icon: 'ph--sign-in--regular' },\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: {\n key: makeKey('shareIdentity'),\n name: 'Share Identity',\n icon: 'ph--share-network--regular',\n },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const OpenUsage = Operation.make({\n meta: {\n key: makeKey('openUsage'),\n name: 'Open Usage',\n icon: 'ph--chart-bar--regular',\n },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RecoverIdentity = Operation.make({\n meta: { key: makeKey('recoverIdentity'), name: 'Recover Identity', icon: 'ph--key--regular' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const ResetStorage = Operation.make({\n meta: { key: makeKey('resetStorage'), name: 'Reset Storage', icon: 'ph--warning--regular' },\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: makeKey('createAgent'), name: 'Create Agent', icon: 'ph--brain--regular' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreateRecoveryCode = Operation.make({\n meta: {\n key: makeKey('createRecoveryCode'),\n name: 'Create Recovery Code',\n icon: 'ph--key--regular',\n },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreatePasskey = Operation.make({\n meta: { key: makeKey('createPasskey'), name: 'Create Passkey', icon: 'ph--key--regular' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemPasskey = Operation.make({\n meta: { key: makeKey('redeemPasskey'), name: 'Redeem Passkey', icon: 'ph--key--regular' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemToken = Operation.make({\n meta: { key: makeKey('redeemToken'), name: 'Redeem Token', icon: 'ph--lock--regular' },\n services: [Capability.Service],\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n});\n"],
5
+ "mappings": ";;;;;AAAA;;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,KAAKC,aAAaC,eAAe;AAE1C,SAASC,YAAY;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2B;;EACtBC,OAAcI;EACdH,QAAeG;AACjB,CAAA;AAEO,IAAMU,cAAczC,UAAUO,KAAK;EACxCH,MAAM;IAAEK,KAAKJ,QAAQ,aAAA;IAAgBC,MAAM;IAAgBkB,MAAM;EAAoB;EACrFC,UAAU;IAAC1B,WAAW2B;;EACtBC,OAAchB,cAAO;IACnB+B,OAAc1B;EAChB,CAAA;EACAY,QAAeG;AACjB,CAAA;",
6
+ "names": ["Schema", "Capability", "Operation", "DXN", "IdentityDid", "SpaceId", "meta", "makeKey", "name", "make", "profile", "key", "IdentitySchema", "Struct", "identityDid", "spaceId", "optional", "displayName", "String", "avatarCid", "data", "Record", "value", "Any", "ProfileSchema", "CreateIdentity", "icon", "services", "Service", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "OpenUsage", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token"]
7
+ }
@@ -2,11 +2,11 @@
2
2
  import { Capability } from "@dxos/app-framework";
3
3
  import { meta } from "#meta";
4
4
  (function(ClientCapabilities2) {
5
- ClientCapabilities2.Client = Capability.make(`${meta.id}.capability.client`);
6
- ClientCapabilities2.Schema = Capability.make(`${meta.id}.capability.schema`);
7
- ClientCapabilities2.Migration = Capability.make(`${meta.id}.capability.migration`);
8
- ClientCapabilities2.AccountCache = Capability.make(`${meta.id}.capability.accountCache`);
9
- ClientCapabilities2.HubHttpClient = Capability.make(`${meta.id}.capability.hubHttpClient`);
5
+ ClientCapabilities2.Client = Capability.make(`${meta.profile.key}.capability.client`);
6
+ ClientCapabilities2.Schema = Capability.make(`${meta.profile.key}.capability.schema`);
7
+ ClientCapabilities2.Migration = Capability.make(`${meta.profile.key}.capability.migration`);
8
+ ClientCapabilities2.AccountCache = Capability.make(`${meta.profile.key}.capability.accountCache`);
9
+ ClientCapabilities2.HubHttpClient = Capability.make(`${meta.profile.key}.capability.hubHttpClient`);
10
10
  })(ClientCapabilities || (ClientCapabilities = {}));
11
11
  var ClientCapabilities;
12
12
 
@@ -14,11 +14,11 @@ var ClientCapabilities;
14
14
  import { ActivationEvent } from "@dxos/app-framework";
15
15
  import { meta as meta2 } from "#meta";
16
16
  (function(ClientEvents2) {
17
- ClientEvents2.ClientReady = ActivationEvent.make(`${meta2.id}.event.client-ready`);
18
- ClientEvents2.SetupSchema = ActivationEvent.make(`${meta2.id}.event.setup-schema`);
19
- ClientEvents2.SetupMigration = ActivationEvent.make(`${meta2.id}.event.setup-migration`);
20
- ClientEvents2.IdentityCreated = ActivationEvent.make(`${meta2.id}.event.identity-created`);
21
- ClientEvents2.SpacesReady = ActivationEvent.make(`${meta2.id}.event.spaces-ready`);
17
+ ClientEvents2.ClientReady = ActivationEvent.make(`${meta2.profile.key}.event.clientReady`);
18
+ ClientEvents2.SetupSchema = ActivationEvent.make(`${meta2.profile.key}.event.setupSchema`);
19
+ ClientEvents2.SetupMigration = ActivationEvent.make(`${meta2.profile.key}.event.setupMigration`);
20
+ ClientEvents2.IdentityCreated = ActivationEvent.make(`${meta2.profile.key}.event.identityCreated`);
21
+ ClientEvents2.SpacesReady = ActivationEvent.make(`${meta2.profile.key}.event.spacesReady`);
22
22
  })(ClientEvents || (ClientEvents = {}));
23
23
  var ClientEvents;
24
24
 
@@ -47,13 +47,13 @@ var IdentitySchema = Schema.Struct({
47
47
  value: Schema.Any
48
48
  }))
49
49
  });
50
- class CreateIdentity extends Schema.TaggedClass()(`${meta3.id}.action.create-identity`, {
50
+ class CreateIdentity extends Schema.TaggedClass()(`${meta3.profile.key}.action.create-identity`, {
51
51
  input: ProfileSchema,
52
52
  output: IdentitySchema
53
53
  }) {
54
54
  }
55
55
  ClientAction2.CreateIdentity = CreateIdentity;
56
- class JoinIdentity extends Schema.TaggedClass()(`${meta3.id}.action.join-identity`, {
56
+ class JoinIdentity extends Schema.TaggedClass()(`${meta3.profile.key}.action.join-identity`, {
57
57
  input: Schema.Struct({
58
58
  invitationCode: Schema.optional(Schema.String)
59
59
  }),
@@ -61,19 +61,19 @@ var IdentitySchema = Schema.Struct({
61
61
  }) {
62
62
  }
63
63
  ClientAction2.JoinIdentity = JoinIdentity;
64
- class ShareIdentity extends Schema.TaggedClass()(`${meta3.id}.action.share-identity`, {
64
+ class ShareIdentity extends Schema.TaggedClass()(`${meta3.profile.key}.action.share-identity`, {
65
65
  input: Schema.Void,
66
66
  output: Schema.Void
67
67
  }) {
68
68
  }
69
69
  ClientAction2.ShareIdentity = ShareIdentity;
70
- class RecoverIdentity extends Schema.TaggedClass()(`${meta3.id}.action.recover-identity`, {
70
+ class RecoverIdentity extends Schema.TaggedClass()(`${meta3.profile.key}.action.recover-identity`, {
71
71
  input: Schema.Void,
72
72
  output: Schema.Void
73
73
  }) {
74
74
  }
75
75
  ClientAction2.RecoverIdentity = RecoverIdentity;
76
- class ResetStorage extends Schema.TaggedClass()(`${meta3.id}.action.reset-storage`, {
76
+ class ResetStorage extends Schema.TaggedClass()(`${meta3.profile.key}.action.reset-storage`, {
77
77
  input: Schema.Struct({
78
78
  mode: Schema.optional(Schema.String)
79
79
  }),
@@ -81,31 +81,31 @@ var IdentitySchema = Schema.Struct({
81
81
  }) {
82
82
  }
83
83
  ClientAction2.ResetStorage = ResetStorage;
84
- class CreateAgent extends Schema.TaggedClass()(`${meta3.id}.action.create-agent`, {
84
+ class CreateAgent extends Schema.TaggedClass()(`${meta3.profile.key}.action.create-agent`, {
85
85
  input: Schema.Void,
86
86
  output: Schema.Void
87
87
  }) {
88
88
  }
89
89
  ClientAction2.CreateAgent = CreateAgent;
90
- class CreateRecoveryCode extends Schema.TaggedClass()(`${meta3.id}.action.create-recovery-code`, {
90
+ class CreateRecoveryCode extends Schema.TaggedClass()(`${meta3.profile.key}.action.create-recovery-code`, {
91
91
  input: Schema.Void,
92
92
  output: Schema.Void
93
93
  }) {
94
94
  }
95
95
  ClientAction2.CreateRecoveryCode = CreateRecoveryCode;
96
- class CreatePasskey extends Schema.TaggedClass()(`${meta3.id}.action.create-passkey`, {
96
+ class CreatePasskey extends Schema.TaggedClass()(`${meta3.profile.key}.action.create-passkey`, {
97
97
  input: Schema.Void,
98
98
  output: Schema.Void
99
99
  }) {
100
100
  }
101
101
  ClientAction2.CreatePasskey = CreatePasskey;
102
- class RedeemPasskey extends Schema.TaggedClass()(`${meta3.id}.action.redeem-passkey`, {
102
+ class RedeemPasskey extends Schema.TaggedClass()(`${meta3.profile.key}.action.redeem-passkey`, {
103
103
  input: Schema.Void,
104
104
  output: Schema.Void
105
105
  }) {
106
106
  }
107
107
  ClientAction2.RedeemPasskey = RedeemPasskey;
108
- class RedeemToken extends Schema.TaggedClass()(`${meta3.id}.action.redeem-token`, {
108
+ class RedeemToken extends Schema.TaggedClass()(`${meta3.profile.key}.action.redeem-token`, {
109
109
  input: Schema.Struct({
110
110
  token: Schema.String
111
111
  }),
@@ -122,6 +122,7 @@ var IdentitySchema = Schema.Struct({
122
122
  Account2.Security = `${_id}.security`;
123
123
  Account2.Account = `${_id}.account`;
124
124
  Account2.Invitations = `${_id}.invitations`;
125
+ Account2.Usage = `${_id}.usage`;
125
126
  })(Account || (Account = {}));
126
127
  var ClientAction;
127
128
  var Account;
@@ -132,4 +133,4 @@ export {
132
133
  ClientAction,
133
134
  Account
134
135
  };
135
- //# sourceMappingURL=chunk-TUK3ELUU.mjs.map
136
+ //# sourceMappingURL=chunk-DA3LZQSD.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Atom } from '@effect-atom/atom-react';\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';\nimport { type HubHttpClient } from '@dxos/edge-client';\n\nimport { meta } from '#meta';\n\nimport { type AccountCache as AccountCacheType } from '../state/account-cache';\n\nexport namespace ClientCapabilities {\n export const Client = Capability.make<Client>(`${meta.profile.key}.capability.client`);\n export const Schema = Capability.make<Type.AnyEntity[]>(`${meta.profile.key}.capability.schema`);\n export const Migration = Capability.make<ObjectMigration[]>(`${meta.profile.key}.capability.migration`);\n export const AccountCache = Capability.make<Atom.Writable<AccountCacheType>>(\n `${meta.profile.key}.capability.accountCache`,\n );\n export const HubHttpClient = Capability.make<HubHttpClient>(`${meta.profile.key}.capability.hubHttpClient`);\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.profile.key}.event.clientReady`);\n export const SetupSchema = ActivationEvent.make(`${meta.profile.key}.event.setupSchema`);\n export const SetupMigration = ActivationEvent.make(`${meta.profile.key}.event.setupMigration`);\n export const IdentityCreated = ActivationEvent.make(`${meta.profile.key}.event.identityCreated`);\n export const SpacesReady = ActivationEvent.make(`${meta.profile.key}.event.spacesReady`);\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 } from '@dxos/client';\nimport { IdentityDid, SpaceId } from '@dxos/keys';\n\nimport { meta } from '#meta';\n\n// TODO(wittjosiah): Factor out. Generate?\nconst IdentitySchema = Schema.Struct({\n identityDid: IdentityDid,\n spaceId: Schema.optional(SpaceId),\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>()(\n `${meta.profile.key}.action.create-identity`,\n {\n input: ProfileSchema,\n output: IdentitySchema,\n },\n ) {}\n\n export class JoinIdentity extends Schema.TaggedClass<JoinIdentity>()(`${meta.profile.key}.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.profile.key}.action.share-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RecoverIdentity extends Schema.TaggedClass<RecoverIdentity>()(\n `${meta.profile.key}.action.recover-identity`,\n {\n input: Schema.Void,\n output: Schema.Void,\n },\n ) {}\n\n export class ResetStorage extends Schema.TaggedClass<ResetStorage>()(`${meta.profile.key}.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.profile.key}.action.create-agent`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class CreateRecoveryCode extends Schema.TaggedClass<CreateRecoveryCode>()(\n `${meta.profile.key}.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.profile.key}.action.create-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemPasskey extends Schema.TaggedClass<RedeemPasskey>()(`${meta.profile.key}.action.redeem-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemToken extends Schema.TaggedClass<RedeemToken>()(`${meta.profile.key}.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 export const Account = `${_id}.account`;\n export const Invitations = `${_id}.invitations`;\n export const Usage = `${_id}.usage`;\n}\n"],
5
+ "mappings": ";AAMA,SAASA,kBAAkB;AAM3B,SAASC,YAAY;UAIJC,qBAAAA;sBACFC,SAASH,WAAWI,KAAa,GAAGH,KAAKI,QAAQC,GAAG,oBAAoB;sBACxEC,SAASP,WAAWI,KAAuB,GAAGH,KAAKI,QAAQC,GAAG,oBAAoB;sBAClFE,YAAYR,WAAWI,KAAwB,GAAGH,KAAKI,QAAQC,GAAG,uBAAuB;sBACzFG,eAAeT,WAAWI,KACrC,GAAGH,KAAKI,QAAQC,GAAG,0BAA0B;sBAElCI,gBAAgBV,WAAWI,KAAoB,GAAGH,KAAKI,QAAQC,GAAG,2BAA2B;AAC5G,GARiBJ,uBAAAA,qBAAAA,CAAAA,EAAAA;;;;ACZjB,SAASS,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;UAEJC,eAAAA;gBACFC,cAAcH,gBAAgBI,KAAK,GAAGH,MAA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jB,iBAAAA,eAAAA,CAAAA,EAAAA;UA4GAmB,UAAAA;AAEf,QAAMC,MAAM;WAGCC,KAAK,IAAID,GAAAA;WAETE,UAAU,GAAGF,GAAAA;WACbG,UAAU,GAAGH,GAAAA;WACbI,WAAW,GAAGJ,GAAAA;WACdD,UAAU,GAAGC,GAAAA;WACbK,cAAc,GAAGL,GAAAA;WACjBM,QAAQ,GAAGN,GAAAA;AAC1B,GAbiBD,YAAAA,UAAAA,CAAAA,EAAAA;;;",
6
+ "names": ["Capability", "meta", "ClientCapabilities", "Client", "make", "profile", "key", "Schema", "Migration", "AccountCache", "HubHttpClient", "ActivationEvent", "meta", "ClientEvents", "ClientReady", "make", "profile", "key", "SetupSchema", "SetupMigration", "IdentityCreated", "SpacesReady", "Schema", "IdentityDid", "SpaceId", "meta", "IdentitySchema", "Struct", "identityDid", "spaceId", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ClientAction", "ProfileSchema", "CreateIdentity", "TaggedClass", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "Account", "_id", "id", "Profile", "Devices", "Security", "Invitations", "Usage"]
7
+ }
@@ -0,0 +1,13 @@
1
+ // src/constants.ts
2
+ import { DXN } from "@dxos/keys";
3
+ import { meta } from "#meta";
4
+ var JOIN_DIALOG = DXN.make(`${meta.profile.key}.joinDialog`);
5
+ var RECOVERY_CODE_DIALOG = DXN.make(`${meta.profile.key}.recoveryCodeDialog`);
6
+ var RESET_DIALOG = DXN.make(`${meta.profile.key}.resetDialog`);
7
+
8
+ export {
9
+ JOIN_DIALOG,
10
+ RECOVERY_CODE_DIALOG,
11
+ RESET_DIALOG
12
+ };
13
+ //# sourceMappingURL=chunk-GSKMAS3S.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/constants.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { DXN } from '@dxos/keys';\n\nimport { meta } from '#meta';\n\nexport const JOIN_DIALOG = DXN.make(`${meta.profile.key}.joinDialog`);\nexport const RECOVERY_CODE_DIALOG = DXN.make(`${meta.profile.key}.recoveryCodeDialog`);\nexport const RESET_DIALOG = DXN.make(`${meta.profile.key}.resetDialog`);\n"],
5
+ "mappings": ";AAIA,SAASA,WAAW;AAEpB,SAASC,YAAY;AAEd,IAAMC,cAAcF,IAAIG,KAAK,GAAGF,KAAKG,QAAQC,GAAG,aAAa;AAC7D,IAAMC,uBAAuBN,IAAIG,KAAK,GAAGF,KAAKG,QAAQC,GAAG,qBAAqB;AAC9E,IAAME,eAAeP,IAAIG,KAAK,GAAGF,KAAKG,QAAQC,GAAG,cAAc;",
6
+ "names": ["DXN", "meta", "JOIN_DIALOG", "make", "profile", "key", "RECOVERY_CODE_DIALOG", "RESET_DIALOG"]
7
+ }
@@ -2,13 +2,14 @@ import "../chunk-J5LGTIGS.mjs";
2
2
 
3
3
  // src/containers/index.ts
4
4
  import { lazy } from "react";
5
- var AccountContainer = lazy(() => import("../AccountContainer-FZ3IC6H4.mjs"));
6
- var DevicesContainer = lazy(() => import("../DevicesContainer-6MWNUC3I.mjs"));
7
- var InvitationsContainer = lazy(() => import("../InvitationsContainer-ME722VKS.mjs"));
8
- var JoinDialog = lazy(() => import("../JoinDialog-2NXAKPLP.mjs"));
9
- var ProfileContainer = lazy(() => import("../ProfileContainer-VPX3FPWG.mjs"));
10
- var RecoveryCodeDialog = lazy(() => import("../RecoveryCodeDialog-EWHB6U5T.mjs"));
11
- var RecoveryCredentialsContainer = lazy(() => import("../RecoveryCredentialsContainer-IPBGDMIA.mjs"));
5
+ var AccountContainer = lazy(() => import("../AccountContainer-LIMGLO2Y.mjs"));
6
+ var DevicesContainer = lazy(() => import("../DevicesContainer-X26OGLFK.mjs"));
7
+ var InvitationsContainer = lazy(() => import("../InvitationsContainer-OBBCJ7CJ.mjs"));
8
+ var UsageContainer = lazy(() => import("../UsageContainer-HBPMLIK7.mjs"));
9
+ var JoinDialog = lazy(() => import("../JoinDialog-4BWV4CYB.mjs"));
10
+ var ProfileContainer = lazy(() => import("../ProfileContainer-FGS2MVWA.mjs"));
11
+ var RecoveryCodeDialog = lazy(() => import("../RecoveryCodeDialog-7EPNKCLB.mjs"));
12
+ var RecoveryCredentialsContainer = lazy(() => import("../RecoveryCredentialsContainer-SL4LYHBE.mjs"));
12
13
  var ResetDialog = lazy(() => import("../ResetDialog-KUWX45JY.mjs"));
13
14
  export {
14
15
  AccountContainer,
@@ -18,6 +19,7 @@ export {
18
19
  ProfileContainer,
19
20
  RecoveryCodeDialog,
20
21
  RecoveryCredentialsContainer,
21
- ResetDialog
22
+ ResetDialog,
23
+ UsageContainer
22
24
  };
23
25
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/containers/index.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport { type RecoveryCodeDialogProps } from './RecoveryCodeDialog';\nexport { type ResetDialogProps } from './ResetDialog';\n\nexport const AccountContainer: ComponentType<any> = lazy(() => import('./AccountContainer'));\nexport const DevicesContainer: ComponentType<any> = lazy(() => import('./DevicesContainer'));\nexport const InvitationsContainer: ComponentType<any> = lazy(() => import('./InvitationsContainer'));\nexport const JoinDialog: ComponentType<any> = lazy(() => import('./JoinDialog'));\nexport const ProfileContainer: ComponentType<any> = lazy(() => import('./ProfileContainer'));\nexport const RecoveryCodeDialog: ComponentType<any> = lazy(() => import('./RecoveryCodeDialog'));\nexport const RecoveryCredentialsContainer: ComponentType<any> = lazy(() => import('./RecoveryCredentialsContainer'));\nexport const ResetDialog: ComponentType<any> = lazy(() => import('./ResetDialog'));\n"],
5
- "mappings": ";;;AAIA,SAA6BA,YAAY;AAKlC,IAAMC,mBAAuCD,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAME,mBAAuCF,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAMG,uBAA2CH,KAAK,MAAM,OAAO,sCAAA,CAAA;AACnE,IAAMI,aAAiCJ,KAAK,MAAM,OAAO,4BAAA,CAAA;AACzD,IAAMK,mBAAuCL,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAMM,qBAAyCN,KAAK,MAAM,OAAO,oCAAA,CAAA;AACjE,IAAMO,+BAAmDP,KAAK,MAAM,OAAO,8CAAA,CAAA;AAC3E,IAAMQ,cAAkCR,KAAK,MAAM,OAAO,6BAAA,CAAA;",
6
- "names": ["lazy", "AccountContainer", "DevicesContainer", "InvitationsContainer", "JoinDialog", "ProfileContainer", "RecoveryCodeDialog", "RecoveryCredentialsContainer", "ResetDialog"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport { type RecoveryCodeDialogProps } from './RecoveryCodeDialog';\nexport { type ResetDialogProps } from './ResetDialog';\n\nexport const AccountContainer: ComponentType<any> = lazy(() => import('./AccountContainer'));\nexport const DevicesContainer: ComponentType<any> = lazy(() => import('./DevicesContainer'));\nexport const InvitationsContainer: ComponentType<any> = lazy(() => import('./InvitationsContainer'));\nexport const UsageContainer: ComponentType<any> = lazy(() => import('./UsageContainer'));\nexport const JoinDialog: ComponentType<any> = lazy(() => import('./JoinDialog'));\nexport const ProfileContainer: ComponentType<any> = lazy(() => import('./ProfileContainer'));\nexport const RecoveryCodeDialog: ComponentType<any> = lazy(() => import('./RecoveryCodeDialog'));\nexport const RecoveryCredentialsContainer: ComponentType<any> = lazy(() => import('./RecoveryCredentialsContainer'));\nexport const ResetDialog: ComponentType<any> = lazy(() => import('./ResetDialog'));\n"],
5
+ "mappings": ";;;AAIA,SAA6BA,YAAY;AAKlC,IAAMC,mBAAuCD,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAME,mBAAuCF,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAMG,uBAA2CH,KAAK,MAAM,OAAO,sCAAA,CAAA;AACnE,IAAMI,iBAAqCJ,KAAK,MAAM,OAAO,gCAAA,CAAA;AAC7D,IAAMK,aAAiCL,KAAK,MAAM,OAAO,4BAAA,CAAA;AACzD,IAAMM,mBAAuCN,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAMO,qBAAyCP,KAAK,MAAM,OAAO,oCAAA,CAAA;AACjE,IAAMQ,+BAAmDR,KAAK,MAAM,OAAO,8CAAA,CAAA;AAC3E,IAAMS,cAAkCT,KAAK,MAAM,OAAO,6BAAA,CAAA;",
6
+ "names": ["lazy", "AccountContainer", "DevicesContainer", "InvitationsContainer", "UsageContainer", "JoinDialog", "ProfileContainer", "RecoveryCodeDialog", "RecoveryCredentialsContainer", "ResetDialog"]
7
7
  }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CreateAgent
3
- } from "./chunk-D6HPCLTS.mjs";
3
+ } from "./chunk-7DEIKHB7.mjs";
4
4
  import {
5
5
  ClientCapabilities
6
- } from "./chunk-TUK3ELUU.mjs";
6
+ } from "./chunk-DA3LZQSD.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/operations/create-agent.ts
@@ -23,4 +23,4 @@ var create_agent_default = handler;
23
23
  export {
24
24
  create_agent_default as default
25
25
  };
26
- //# sourceMappingURL=create-agent-6HLW4D3A.mjs.map
26
+ //# sourceMappingURL=create-agent-U567RM7Z.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  CreateIdentity
3
- } from "./chunk-D6HPCLTS.mjs";
3
+ } from "./chunk-7DEIKHB7.mjs";
4
4
  import {
5
5
  ClientCapabilities,
6
6
  ClientEvents
7
- } from "./chunk-TUK3ELUU.mjs";
7
+ } from "./chunk-DA3LZQSD.mjs";
8
8
  import "./chunk-J5LGTIGS.mjs";
9
9
 
10
10
  // src/operations/create-identity.ts
@@ -39,4 +39,4 @@ var create_identity_default = handler;
39
39
  export {
40
40
  create_identity_default as default
41
41
  };
42
- //# sourceMappingURL=create-identity-JIWAR5GW.mjs.map
42
+ //# sourceMappingURL=create-identity-IKN2FJ5B.mjs.map