@dxos/plugin-client 0.8.4-main.84f28bd → 0.8.4-main.937b3ca

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 (407) hide show
  1. package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs +118 -0
  2. package/dist/lib/browser/app-graph-builder-3FGBMLTF.mjs.map +7 -0
  3. package/dist/lib/browser/chunk-4BZGRIFS.mjs +293 -0
  4. package/dist/lib/browser/chunk-4BZGRIFS.mjs.map +7 -0
  5. package/dist/lib/browser/chunk-F7H2Y3Z2.mjs +18 -0
  6. package/dist/lib/browser/chunk-F7H2Y3Z2.mjs.map +7 -0
  7. package/dist/lib/browser/chunk-G7C3S2BE.mjs +15 -0
  8. package/dist/lib/browser/chunk-G7C3S2BE.mjs.map +7 -0
  9. package/dist/lib/browser/cli/index.mjs +1048 -0
  10. package/dist/lib/browser/cli/index.mjs.map +7 -0
  11. package/dist/lib/browser/client-IX5LMWV4.mjs +86 -0
  12. package/dist/lib/browser/client-IX5LMWV4.mjs.map +7 -0
  13. package/dist/lib/browser/index.mjs +75 -81
  14. package/dist/lib/browser/index.mjs.map +4 -4
  15. package/dist/lib/browser/meta.json +1 -1
  16. package/dist/lib/browser/migrations-3EBTAW3N.mjs +24 -0
  17. package/dist/lib/browser/migrations-3EBTAW3N.mjs.map +7 -0
  18. package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs +298 -0
  19. package/dist/lib/browser/operation-resolver-2NT3ISVP.mjs.map +7 -0
  20. package/dist/lib/browser/react-context-4UABG3GP.mjs +24 -0
  21. package/dist/lib/browser/react-context-4UABG3GP.mjs.map +7 -0
  22. package/dist/lib/browser/react-surface-RSQ74XCT.mjs +675 -0
  23. package/dist/lib/browser/react-surface-RSQ74XCT.mjs.map +7 -0
  24. package/dist/lib/browser/schema-defs-O7VLP745.mjs +26 -0
  25. package/dist/lib/browser/schema-defs-O7VLP745.mjs.map +7 -0
  26. package/dist/lib/browser/types/index.mjs +15 -0
  27. package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs +119 -0
  28. package/dist/lib/node-esm/app-graph-builder-2PIYVUNC.mjs.map +7 -0
  29. package/dist/lib/node-esm/chunk-BCELGXRI.mjs +20 -0
  30. package/dist/lib/node-esm/chunk-BCELGXRI.mjs.map +7 -0
  31. package/dist/lib/node-esm/chunk-JAF64TFQ.mjs +295 -0
  32. package/dist/lib/node-esm/chunk-JAF64TFQ.mjs.map +7 -0
  33. package/dist/lib/node-esm/chunk-PRAFFO54.mjs +16 -0
  34. package/dist/lib/node-esm/chunk-PRAFFO54.mjs.map +7 -0
  35. package/dist/lib/node-esm/cli/index.mjs +1049 -0
  36. package/dist/lib/node-esm/cli/index.mjs.map +7 -0
  37. package/dist/lib/node-esm/client-FFPK5UFP.mjs +87 -0
  38. package/dist/lib/node-esm/client-FFPK5UFP.mjs.map +7 -0
  39. package/dist/lib/node-esm/index.mjs +75 -81
  40. package/dist/lib/node-esm/index.mjs.map +4 -4
  41. package/dist/lib/node-esm/meta.json +1 -1
  42. package/dist/lib/node-esm/migrations-WSZSFGDK.mjs +25 -0
  43. package/dist/lib/node-esm/migrations-WSZSFGDK.mjs.map +7 -0
  44. package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs +299 -0
  45. package/dist/lib/node-esm/operation-resolver-VW5R2BE4.mjs.map +7 -0
  46. package/dist/lib/node-esm/react-context-UVXMGPW4.mjs +25 -0
  47. package/dist/lib/node-esm/react-context-UVXMGPW4.mjs.map +7 -0
  48. package/dist/lib/node-esm/react-surface-KBHANGGC.mjs +676 -0
  49. package/dist/lib/node-esm/react-surface-KBHANGGC.mjs.map +7 -0
  50. package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs +27 -0
  51. package/dist/lib/node-esm/schema-defs-QLRGBIKY.mjs.map +7 -0
  52. package/dist/lib/node-esm/types/index.mjs +16 -0
  53. package/dist/types/src/ClientPlugin.d.ts +2 -1
  54. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  55. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  56. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  57. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  58. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  59. package/dist/types/src/capabilities/client/client.d.ts +8 -0
  60. package/dist/types/src/capabilities/client/client.d.ts.map +1 -0
  61. package/dist/types/src/capabilities/client/index.d.ts +17 -0
  62. package/dist/types/src/capabilities/client/index.d.ts.map +1 -0
  63. package/dist/types/src/capabilities/index.d.ts +7 -19
  64. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  65. package/dist/types/src/capabilities/migrations/index.d.ts +3 -0
  66. package/dist/types/src/capabilities/migrations/index.d.ts.map +1 -0
  67. package/dist/types/src/capabilities/migrations/migrations.d.ts +5 -0
  68. package/dist/types/src/capabilities/migrations/migrations.d.ts.map +1 -0
  69. package/dist/types/src/capabilities/operation-resolver/index.d.ts +5 -0
  70. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
  71. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +8 -0
  72. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
  73. package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
  74. package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
  75. package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
  76. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
  78. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  79. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
  80. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  81. package/dist/types/src/capabilities/schema-defs/index.d.ts +3 -0
  82. package/dist/types/src/capabilities/schema-defs/index.d.ts.map +1 -0
  83. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +5 -0
  84. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +1 -0
  85. package/dist/types/src/cli/commands/config/index.d.ts +5 -0
  86. package/dist/types/src/cli/commands/config/index.d.ts.map +1 -0
  87. package/dist/types/src/cli/commands/config/view.d.ts +5 -0
  88. package/dist/types/src/cli/commands/config/view.d.ts.map +1 -0
  89. package/dist/types/src/cli/commands/device/index.d.ts +7 -0
  90. package/dist/types/src/cli/commands/device/index.d.ts.map +1 -0
  91. package/dist/types/src/cli/commands/device/info/index.d.ts +2 -0
  92. package/dist/types/src/cli/commands/device/info/index.d.ts.map +1 -0
  93. package/dist/types/src/cli/commands/device/info/info.d.ts +7 -0
  94. package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -0
  95. package/dist/types/src/cli/commands/device/info/info.test.d.ts +2 -0
  96. package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +1 -0
  97. package/dist/types/src/cli/commands/device/list/index.d.ts +2 -0
  98. package/dist/types/src/cli/commands/device/list/index.d.ts.map +1 -0
  99. package/dist/types/src/cli/commands/device/list/list.d.ts +7 -0
  100. package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -0
  101. package/dist/types/src/cli/commands/device/list/list.test.d.ts +2 -0
  102. package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +1 -0
  103. package/dist/types/src/cli/commands/device/update/index.d.ts +2 -0
  104. package/dist/types/src/cli/commands/device/update/index.d.ts.map +1 -0
  105. package/dist/types/src/cli/commands/device/update/update.d.ts +11 -0
  106. package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -0
  107. package/dist/types/src/cli/commands/device/util.d.ts +16 -0
  108. package/dist/types/src/cli/commands/device/util.d.ts.map +1 -0
  109. package/dist/types/src/cli/commands/edge/index.d.ts +5 -0
  110. package/dist/types/src/cli/commands/edge/index.d.ts.map +1 -0
  111. package/dist/types/src/cli/commands/edge/status.d.ts +7 -0
  112. package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -0
  113. package/dist/types/src/cli/commands/halo/create/create.d.ts +15 -0
  114. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -0
  115. package/dist/types/src/cli/commands/halo/create/create.test.d.ts +2 -0
  116. package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +1 -0
  117. package/dist/types/src/cli/commands/halo/create/index.d.ts +2 -0
  118. package/dist/types/src/cli/commands/halo/create/index.d.ts.map +1 -0
  119. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts +13 -0
  120. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +1 -0
  121. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts +2 -0
  122. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +1 -0
  123. package/dist/types/src/cli/commands/halo/credential/index.d.ts +12 -0
  124. package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +1 -0
  125. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts +2 -0
  126. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +1 -0
  127. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +19 -0
  128. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -0
  129. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts +2 -0
  130. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +1 -0
  131. package/dist/types/src/cli/commands/halo/identity/identity.d.ts +7 -0
  132. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -0
  133. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts +2 -0
  134. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +1 -0
  135. package/dist/types/src/cli/commands/halo/identity/index.d.ts +2 -0
  136. package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +1 -0
  137. package/dist/types/src/cli/commands/halo/index.d.ts +3 -0
  138. package/dist/types/src/cli/commands/halo/index.d.ts.map +1 -0
  139. package/dist/types/src/cli/commands/halo/join/index.d.ts +2 -0
  140. package/dist/types/src/cli/commands/halo/join/index.d.ts.map +1 -0
  141. package/dist/types/src/cli/commands/halo/join/join.d.ts +8 -0
  142. package/dist/types/src/cli/commands/halo/join/join.d.ts.map +1 -0
  143. package/dist/types/src/cli/commands/halo/join/join.test.d.ts +2 -0
  144. package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +1 -0
  145. package/dist/types/src/cli/commands/halo/keys/index.d.ts +2 -0
  146. package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +1 -0
  147. package/dist/types/src/cli/commands/halo/keys/keys.d.ts +7 -0
  148. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -0
  149. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts +2 -0
  150. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +1 -0
  151. package/dist/types/src/cli/commands/halo/recover/index.d.ts +2 -0
  152. package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +1 -0
  153. package/dist/types/src/cli/commands/halo/recover/recover.d.ts +7 -0
  154. package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +1 -0
  155. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts +2 -0
  156. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +1 -0
  157. package/dist/types/src/cli/commands/halo/seed/index.d.ts +2 -0
  158. package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +1 -0
  159. package/dist/types/src/cli/commands/halo/seed/seed.d.ts +7 -0
  160. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -0
  161. package/dist/types/src/cli/commands/halo/share/index.d.ts +2 -0
  162. package/dist/types/src/cli/commands/halo/share/index.d.ts.map +1 -0
  163. package/dist/types/src/cli/commands/halo/share/share.d.ts +15 -0
  164. package/dist/types/src/cli/commands/halo/share/share.d.ts.map +1 -0
  165. package/dist/types/src/cli/commands/halo/update/index.d.ts +2 -0
  166. package/dist/types/src/cli/commands/halo/update/index.d.ts.map +1 -0
  167. package/dist/types/src/cli/commands/halo/update/update.d.ts +11 -0
  168. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -0
  169. package/dist/types/src/cli/commands/halo/update/update.test.d.ts +2 -0
  170. package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +1 -0
  171. package/dist/types/src/cli/commands/halo/util.d.ts +13 -0
  172. package/dist/types/src/cli/commands/halo/util.d.ts.map +1 -0
  173. package/dist/types/src/cli/commands/index.d.ts +6 -0
  174. package/dist/types/src/cli/commands/index.d.ts.map +1 -0
  175. package/dist/types/src/cli/commands/profile/create.d.ts +9 -0
  176. package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -0
  177. package/dist/types/src/cli/commands/profile/delete.d.ts +8 -0
  178. package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -0
  179. package/dist/types/src/cli/commands/profile/import.d.ts +17 -0
  180. package/dist/types/src/cli/commands/profile/import.d.ts.map +1 -0
  181. package/dist/types/src/cli/commands/profile/index.d.ts +19 -0
  182. package/dist/types/src/cli/commands/profile/index.d.ts.map +1 -0
  183. package/dist/types/src/cli/commands/profile/inspect.d.ts +13 -0
  184. package/dist/types/src/cli/commands/profile/inspect.d.ts.map +1 -0
  185. package/dist/types/src/cli/commands/profile/list.d.ts +6 -0
  186. package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -0
  187. package/dist/types/src/cli/commands/profile/reset.d.ts +8 -0
  188. package/dist/types/src/cli/commands/profile/reset.d.ts.map +1 -0
  189. package/dist/types/src/cli/commands/profile/util.d.ts +24 -0
  190. package/dist/types/src/cli/commands/profile/util.d.ts.map +1 -0
  191. package/dist/types/src/cli/index.d.ts +2 -0
  192. package/dist/types/src/cli/index.d.ts.map +1 -0
  193. package/dist/types/src/cli/plugin.d.ts +4 -0
  194. package/dist/types/src/cli/plugin.d.ts.map +1 -0
  195. package/dist/types/src/cli/testing/test-console.d.ts +37 -0
  196. package/dist/types/src/cli/testing/test-console.d.ts.map +1 -0
  197. package/dist/types/src/components/DevicesContainer.d.ts.map +1 -1
  198. package/dist/types/src/components/DevicesContainer.stories.d.ts +178 -5
  199. package/dist/types/src/components/DevicesContainer.stories.d.ts.map +1 -1
  200. package/dist/types/src/components/JoinDialog.d.ts +0 -1
  201. package/dist/types/src/components/JoinDialog.d.ts.map +1 -1
  202. package/dist/types/src/components/ProfileContainer.d.ts.map +1 -1
  203. package/dist/types/src/components/ProfileContainer.stories.d.ts +11 -5
  204. package/dist/types/src/components/ProfileContainer.stories.d.ts.map +1 -1
  205. package/dist/types/src/components/RecoveryCodeDialog.d.ts +0 -1
  206. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +1 -1
  207. package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts +13 -5
  208. package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +1 -1
  209. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts +1 -1
  210. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +1 -1
  211. package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts +11 -5
  212. package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  213. package/dist/types/src/components/ResetDialog.d.ts +5 -3
  214. package/dist/types/src/components/ResetDialog.d.ts.map +1 -1
  215. package/dist/types/src/components/ResetDialog.stories.d.ts +13 -4
  216. package/dist/types/src/components/ResetDialog.stories.d.ts.map +1 -1
  217. package/dist/types/src/constants.d.ts +4 -0
  218. package/dist/types/src/constants.d.ts.map +1 -0
  219. package/dist/types/src/index.d.ts +3 -3
  220. package/dist/types/src/index.d.ts.map +1 -1
  221. package/dist/types/src/meta.d.ts +2 -3
  222. package/dist/types/src/meta.d.ts.map +1 -1
  223. package/dist/types/src/translations.d.ts +2 -48
  224. package/dist/types/src/translations.d.ts.map +1 -1
  225. package/dist/types/src/types/capabilities.d.ts +10 -0
  226. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  227. package/dist/types/src/types/events.d.ts +9 -0
  228. package/dist/types/src/types/events.d.ts.map +1 -0
  229. package/dist/types/src/types/index.d.ts +4 -0
  230. package/dist/types/src/types/index.d.ts.map +1 -0
  231. package/dist/types/src/types/schema.d.ts +296 -0
  232. package/dist/types/src/types/schema.d.ts.map +1 -0
  233. package/dist/types/tsconfig.tsbuildinfo +1 -1
  234. package/package.json +59 -45
  235. package/src/ClientPlugin.ts +40 -60
  236. package/src/capabilities/app-graph-builder/app-graph-builder.ts +95 -0
  237. package/src/capabilities/app-graph-builder/index.ts +7 -0
  238. package/src/capabilities/client/client.ts +75 -0
  239. package/src/capabilities/client/index.ts +7 -0
  240. package/src/capabilities/index.ts +7 -11
  241. package/src/capabilities/migrations/index.ts +7 -0
  242. package/src/capabilities/migrations/migrations.ts +30 -0
  243. package/src/capabilities/operation-resolver/index.ts +7 -0
  244. package/src/capabilities/operation-resolver/operation-resolver.ts +248 -0
  245. package/src/capabilities/react-context/index.ts +7 -0
  246. package/src/capabilities/react-context/react-context.tsx +25 -0
  247. package/src/capabilities/react-surface/index.ts +7 -0
  248. package/src/capabilities/react-surface/react-surface.tsx +74 -0
  249. package/src/capabilities/schema-defs/index.ts +7 -0
  250. package/src/capabilities/schema-defs/schema-defs.ts +35 -0
  251. package/src/cli/commands/config/index.ts +12 -0
  252. package/src/cli/commands/config/view.ts +26 -0
  253. package/src/cli/commands/device/index.ts +14 -0
  254. package/src/cli/commands/device/info/index.ts +5 -0
  255. package/src/cli/commands/device/info/info.test.ts +29 -0
  256. package/src/cli/commands/device/info/info.ts +50 -0
  257. package/src/cli/commands/device/list/index.ts +5 -0
  258. package/src/cli/commands/device/list/list.test.ts +31 -0
  259. package/src/cli/commands/device/list/list.ts +30 -0
  260. package/src/cli/commands/device/update/index.ts +5 -0
  261. package/src/cli/commands/device/update/update.ts +70 -0
  262. package/src/cli/commands/device/util.ts +55 -0
  263. package/src/cli/commands/edge/index.ts +12 -0
  264. package/src/cli/commands/edge/status.ts +45 -0
  265. package/src/cli/commands/halo/create/create.test.ts +52 -0
  266. package/src/cli/commands/halo/create/create.ts +75 -0
  267. package/src/cli/commands/halo/create/index.ts +5 -0
  268. package/src/cli/commands/halo/credential/add/add.ts +97 -0
  269. package/src/cli/commands/halo/credential/add/index.ts +5 -0
  270. package/src/cli/commands/halo/credential/index.ts +13 -0
  271. package/src/cli/commands/halo/credential/list/index.ts +5 -0
  272. package/src/cli/commands/halo/credential/list/list.test.ts +28 -0
  273. package/src/cli/commands/halo/credential/list/list.ts +118 -0
  274. package/src/cli/commands/halo/identity/identity.test.ts +40 -0
  275. package/src/cli/commands/halo/identity/identity.ts +46 -0
  276. package/src/cli/commands/halo/identity/index.ts +5 -0
  277. package/src/cli/commands/halo/index.ts +21 -0
  278. package/src/cli/commands/halo/join/index.ts +5 -0
  279. package/src/cli/commands/halo/join/join.test.ts +10 -0
  280. package/src/cli/commands/halo/join/join.ts +87 -0
  281. package/src/cli/commands/halo/keys/index.ts +5 -0
  282. package/src/cli/commands/halo/keys/keys.test.ts +29 -0
  283. package/src/cli/commands/halo/keys/keys.ts +42 -0
  284. package/src/cli/commands/halo/recover/index.ts +5 -0
  285. package/src/cli/commands/halo/recover/recover.test.ts +10 -0
  286. package/src/cli/commands/halo/recover/recover.ts +44 -0
  287. package/src/cli/commands/halo/seed/index.ts +5 -0
  288. package/src/cli/commands/halo/seed/seed.ts +38 -0
  289. package/src/cli/commands/halo/share/index.ts +5 -0
  290. package/src/cli/commands/halo/share/share.ts +97 -0
  291. package/src/cli/commands/halo/update/index.ts +5 -0
  292. package/src/cli/commands/halo/update/update.test.ts +29 -0
  293. package/src/cli/commands/halo/update/update.ts +69 -0
  294. package/src/cli/commands/halo/util.ts +18 -0
  295. package/src/cli/commands/index.ts +9 -0
  296. package/src/cli/commands/profile/create.ts +87 -0
  297. package/src/cli/commands/profile/delete.ts +33 -0
  298. package/src/cli/commands/profile/import.ts +101 -0
  299. package/src/cli/commands/profile/index.ts +17 -0
  300. package/src/cli/commands/profile/inspect.ts +64 -0
  301. package/src/cli/commands/profile/list.ts +54 -0
  302. package/src/cli/commands/profile/reset.ts +45 -0
  303. package/src/cli/commands/profile/util.ts +48 -0
  304. package/src/cli/index.ts +5 -0
  305. package/src/cli/plugin.ts +33 -0
  306. package/src/cli/testing/test-console.ts +88 -0
  307. package/src/components/DevicesContainer.stories.tsx +15 -15
  308. package/src/components/DevicesContainer.tsx +72 -82
  309. package/src/components/JoinDialog.tsx +15 -17
  310. package/src/components/ProfileContainer.stories.tsx +8 -9
  311. package/src/components/ProfileContainer.tsx +61 -50
  312. package/src/components/RecoveryCodeDialog.stories.tsx +9 -10
  313. package/src/components/RecoveryCodeDialog.tsx +5 -7
  314. package/src/components/RecoveryCredentialsContainer.stories.tsx +15 -15
  315. package/src/components/RecoveryCredentialsContainer.tsx +48 -53
  316. package/src/components/ResetDialog.stories.tsx +25 -18
  317. package/src/components/ResetDialog.tsx +19 -18
  318. package/src/constants.ts +9 -0
  319. package/src/index.ts +3 -3
  320. package/src/meta.ts +8 -5
  321. package/src/translations.ts +5 -2
  322. package/src/types/capabilities.ts +16 -0
  323. package/src/types/events.ts +15 -0
  324. package/src/types/index.ts +7 -0
  325. package/src/types/schema.ts +243 -0
  326. package/dist/lib/browser/app-graph-builder-3EILEBWW.mjs +0 -123
  327. package/dist/lib/browser/app-graph-builder-3EILEBWW.mjs.map +0 -7
  328. package/dist/lib/browser/chunk-64ANQXYZ.mjs +0 -693
  329. package/dist/lib/browser/chunk-64ANQXYZ.mjs.map +0 -7
  330. package/dist/lib/browser/chunk-AWXKL4UR.mjs +0 -18
  331. package/dist/lib/browser/chunk-AWXKL4UR.mjs.map +0 -7
  332. package/dist/lib/browser/chunk-CAF2COXW.mjs +0 -19
  333. package/dist/lib/browser/chunk-CAF2COXW.mjs.map +0 -7
  334. package/dist/lib/browser/chunk-GS3LDHYD.mjs +0 -12
  335. package/dist/lib/browser/chunk-GS3LDHYD.mjs.map +0 -7
  336. package/dist/lib/browser/chunk-Q7TFRFHI.mjs +0 -111
  337. package/dist/lib/browser/chunk-Q7TFRFHI.mjs.map +0 -7
  338. package/dist/lib/browser/client-JFNMEFOK.mjs +0 -37
  339. package/dist/lib/browser/client-JFNMEFOK.mjs.map +0 -7
  340. package/dist/lib/browser/intent-resolver-YGAQVXI2.mjs +0 -305
  341. package/dist/lib/browser/intent-resolver-YGAQVXI2.mjs.map +0 -7
  342. package/dist/lib/browser/migrations-5COKGS4E.mjs +0 -23
  343. package/dist/lib/browser/migrations-5COKGS4E.mjs.map +0 -7
  344. package/dist/lib/browser/react-context-GBNYT5QK.mjs +0 -24
  345. package/dist/lib/browser/react-context-GBNYT5QK.mjs.map +0 -7
  346. package/dist/lib/browser/react-surface-YKQAUE2M.mjs +0 -66
  347. package/dist/lib/browser/react-surface-YKQAUE2M.mjs.map +0 -7
  348. package/dist/lib/browser/schema-defs-6L7W2RHL.mjs +0 -25
  349. package/dist/lib/browser/schema-defs-6L7W2RHL.mjs.map +0 -7
  350. package/dist/lib/browser/types.mjs +0 -10
  351. package/dist/lib/node-esm/app-graph-builder-GINHOE7A.mjs +0 -124
  352. package/dist/lib/node-esm/app-graph-builder-GINHOE7A.mjs.map +0 -7
  353. package/dist/lib/node-esm/chunk-3BUB64JB.mjs +0 -19
  354. package/dist/lib/node-esm/chunk-3BUB64JB.mjs.map +0 -7
  355. package/dist/lib/node-esm/chunk-GDJMDBWM.mjs +0 -112
  356. package/dist/lib/node-esm/chunk-GDJMDBWM.mjs.map +0 -7
  357. package/dist/lib/node-esm/chunk-K4PIKBQQ.mjs +0 -694
  358. package/dist/lib/node-esm/chunk-K4PIKBQQ.mjs.map +0 -7
  359. package/dist/lib/node-esm/chunk-SZLX4BVJ.mjs +0 -14
  360. package/dist/lib/node-esm/chunk-SZLX4BVJ.mjs.map +0 -7
  361. package/dist/lib/node-esm/chunk-UMO3ETDV.mjs +0 -20
  362. package/dist/lib/node-esm/chunk-UMO3ETDV.mjs.map +0 -7
  363. package/dist/lib/node-esm/client-XDYQARBL.mjs +0 -38
  364. package/dist/lib/node-esm/client-XDYQARBL.mjs.map +0 -7
  365. package/dist/lib/node-esm/intent-resolver-IN7YG7N7.mjs +0 -306
  366. package/dist/lib/node-esm/intent-resolver-IN7YG7N7.mjs.map +0 -7
  367. package/dist/lib/node-esm/migrations-FE4PDX6W.mjs +0 -24
  368. package/dist/lib/node-esm/migrations-FE4PDX6W.mjs.map +0 -7
  369. package/dist/lib/node-esm/react-context-UCK43H3Z.mjs +0 -25
  370. package/dist/lib/node-esm/react-context-UCK43H3Z.mjs.map +0 -7
  371. package/dist/lib/node-esm/react-surface-HDHC6XHQ.mjs +0 -67
  372. package/dist/lib/node-esm/react-surface-HDHC6XHQ.mjs.map +0 -7
  373. package/dist/lib/node-esm/schema-defs-GZIVMHLW.mjs +0 -26
  374. package/dist/lib/node-esm/schema-defs-GZIVMHLW.mjs.map +0 -7
  375. package/dist/lib/node-esm/types.mjs +0 -11
  376. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  377. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  378. package/dist/types/src/capabilities/capabilities.d.ts +0 -10
  379. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  380. package/dist/types/src/capabilities/client.d.ts +0 -9
  381. package/dist/types/src/capabilities/client.d.ts.map +0 -1
  382. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -8
  383. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  384. package/dist/types/src/capabilities/migrations.d.ts +0 -4
  385. package/dist/types/src/capabilities/migrations.d.ts.map +0 -1
  386. package/dist/types/src/capabilities/react-context.d.ts +0 -8
  387. package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
  388. package/dist/types/src/capabilities/react-surface.d.ts +0 -8
  389. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  390. package/dist/types/src/capabilities/schema-defs.d.ts +0 -4
  391. package/dist/types/src/capabilities/schema-defs.d.ts.map +0 -1
  392. package/dist/types/src/events.d.ts +0 -8
  393. package/dist/types/src/events.d.ts.map +0 -1
  394. package/dist/types/src/types.d.ts +0 -136
  395. package/dist/types/src/types.d.ts.map +0 -1
  396. package/src/capabilities/app-graph-builder.ts +0 -113
  397. package/src/capabilities/capabilities.ts +0 -17
  398. package/src/capabilities/client.ts +0 -41
  399. package/src/capabilities/intent-resolver.ts +0 -250
  400. package/src/capabilities/migrations.ts +0 -25
  401. package/src/capabilities/react-context.tsx +0 -20
  402. package/src/capabilities/react-surface.tsx +0 -67
  403. package/src/capabilities/schema-defs.ts +0 -29
  404. package/src/events.ts +0 -15
  405. package/src/types.ts +0 -131
  406. /package/dist/lib/browser/{types.mjs.map → types/index.mjs.map} +0 -0
  407. /package/dist/lib/node-esm/{types.mjs.map → types/index.mjs.map} +0 -0
@@ -1,25 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- ClientCapabilities
4
- } from "./chunk-3BUB64JB.mjs";
5
- import {
6
- CLIENT_PLUGIN
7
- } from "./chunk-SZLX4BVJ.mjs";
8
-
9
- // src/capabilities/react-context.tsx
10
- import React from "react";
11
- import { Capabilities, contributes, useCapability } from "@dxos/app-framework";
12
- import { ClientProvider } from "@dxos/react-client";
13
- var react_context_default = () => contributes(Capabilities.ReactContext, {
14
- id: CLIENT_PLUGIN,
15
- context: ({ children }) => {
16
- const client = useCapability(ClientCapabilities.Client);
17
- return /* @__PURE__ */ React.createElement(ClientProvider, {
18
- client
19
- }, children);
20
- }
21
- });
22
- export {
23
- react_context_default as default
24
- };
25
- //# sourceMappingURL=react-context-UCK43H3Z.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-context.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { Capabilities, contributes, useCapability } from '@dxos/app-framework';\nimport { ClientProvider } from '@dxos/react-client';\n\nimport { ClientCapabilities } from './capabilities';\nimport { CLIENT_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactContext, {\n id: CLIENT_PLUGIN,\n context: ({ children }) => {\n const client = useCapability(ClientCapabilities.Client);\n return <ClientProvider client={client}>{children}</ClientProvider>;\n },\n });\n"],
5
- "mappings": ";;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,cAAcC,aAAaC,qBAAqB;AACzD,SAASC,sBAAsB;AAK/B,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,IAAIC;EACJC,SAAS,CAAC,EAAEC,SAAQ,MAAE;AACpB,UAAMC,SAASC,cAAcC,mBAAmBC,MAAM;AACtD,WAAO,sBAAA,cAACC,gBAAAA;MAAeJ;OAAiBD,QAAAA;EAC1C;AACF,CAAA;",
6
- "names": ["React", "Capabilities", "contributes", "useCapability", "ClientProvider", "contributes", "Capabilities", "ReactContext", "id", "CLIENT_PLUGIN", "context", "children", "client", "useCapability", "ClientCapabilities", "Client", "ClientProvider"]
7
- }
@@ -1,67 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- DevicesContainer,
4
- JOIN_DIALOG,
5
- JoinDialog,
6
- ProfileContainer,
7
- RECOVERY_CODE_DIALOG,
8
- RESET_DIALOG,
9
- RecoveryCodeDialog,
10
- RecoveryCredentialsContainer,
11
- ResetDialog
12
- } from "./chunk-K4PIKBQQ.mjs";
13
- import {
14
- Account
15
- } from "./chunk-GDJMDBWM.mjs";
16
- import "./chunk-SZLX4BVJ.mjs";
17
-
18
- // src/capabilities/react-surface.tsx
19
- import React from "react";
20
- import { createSurface, Capabilities, contributes } from "@dxos/app-framework";
21
- var react_surface_default = ({ createInvitationUrl, onReset }) => contributes(Capabilities.ReactSurface, [
22
- createSurface({
23
- id: Account.Profile,
24
- role: "article",
25
- filter: (data) => data.subject === Account.Profile,
26
- component: () => /* @__PURE__ */ React.createElement(ProfileContainer, null)
27
- }),
28
- createSurface({
29
- id: Account.Devices,
30
- role: "article",
31
- filter: (data) => data.subject === Account.Devices,
32
- component: ({ data }) => /* @__PURE__ */ React.createElement(DevicesContainer, {
33
- createInvitationUrl
34
- })
35
- }),
36
- createSurface({
37
- id: Account.Security,
38
- role: "article",
39
- filter: (data) => data.subject === Account.Security,
40
- component: () => /* @__PURE__ */ React.createElement(RecoveryCredentialsContainer, null)
41
- }),
42
- createSurface({
43
- id: JOIN_DIALOG,
44
- role: "dialog",
45
- filter: (data) => data.component === JOIN_DIALOG,
46
- component: ({ data }) => /* @__PURE__ */ React.createElement(JoinDialog, data.props)
47
- }),
48
- createSurface({
49
- id: RECOVERY_CODE_DIALOG,
50
- role: "dialog",
51
- filter: (data) => data.component === RECOVERY_CODE_DIALOG,
52
- component: ({ data }) => /* @__PURE__ */ React.createElement(RecoveryCodeDialog, data.props)
53
- }),
54
- createSurface({
55
- id: RESET_DIALOG,
56
- role: "dialog",
57
- filter: (data) => data.component === RESET_DIALOG,
58
- component: ({ data }) => /* @__PURE__ */ React.createElement(ResetDialog, {
59
- ...data.props,
60
- onReset
61
- })
62
- })
63
- ]);
64
- export {
65
- react_surface_default as default
66
- };
67
- //# sourceMappingURL=react-surface-HDHC6XHQ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/react-surface.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { createSurface, Capabilities, contributes } from '@dxos/app-framework';\nimport { type JoinPanelProps } from '@dxos/shell/react';\n\nimport {\n DevicesContainer,\n JOIN_DIALOG,\n JoinDialog,\n ProfileContainer,\n RECOVERY_CODE_DIALOG,\n RecoveryCodeDialog,\n RecoveryCredentialsContainer,\n RESET_DIALOG,\n ResetDialog,\n type ResetDialogProps,\n type RecoveryCodeDialogProps,\n} from '../components';\nimport { Account, type ClientPluginOptions } from '../types';\n\ntype ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {\n createInvitationUrl: (invitationCode: string) => string;\n};\n\nexport default ({ createInvitationUrl, onReset }: ReactSurfaceOptions) =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: Account.Profile,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Profile,\n component: () => <ProfileContainer />,\n }),\n createSurface({\n id: Account.Devices,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Devices,\n component: ({ data }) => <DevicesContainer createInvitationUrl={createInvitationUrl} />,\n }),\n createSurface({\n id: Account.Security,\n role: 'article',\n filter: (data): data is any => data.subject === Account.Security,\n component: () => <RecoveryCredentialsContainer />,\n }),\n createSurface({\n id: JOIN_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: JoinPanelProps } => data.component === JOIN_DIALOG,\n component: ({ data }) => <JoinDialog {...data.props} />,\n }),\n createSurface({\n id: RECOVERY_CODE_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: RecoveryCodeDialogProps } => data.component === RECOVERY_CODE_DIALOG,\n component: ({ data }) => <RecoveryCodeDialog {...data.props} />,\n }),\n createSurface({\n id: RESET_DIALOG,\n role: 'dialog',\n filter: (data): data is { props: ResetDialogProps } => data.component === RESET_DIALOG,\n component: ({ data }) => <ResetDialog {...data.props} onReset={onReset} />,\n }),\n ]);\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,eAAeC,cAAcC,mBAAmB;AAsBzD,IAAA,wBAAe,CAAC,EAAEC,qBAAqBC,QAAO,MAC5CC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAIC,QAAQC;IACZC,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQC;IACxDK,WAAW,MAAM,sBAAA,cAACC,kBAAAA,IAAAA;EACpB,CAAA;EACAT,cAAc;IACZC,IAAIC,QAAQQ;IACZN,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQQ;IACxDF,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACK,kBAAAA;MAAiBhB;;EAC7C,CAAA;EACAK,cAAc;IACZC,IAAIC,QAAQU;IACZR,MAAM;IACNC,QAAQ,CAACC,SAAsBA,KAAKC,YAAYL,QAAQU;IACxDJ,WAAW,MAAM,sBAAA,cAACK,8BAAAA,IAAAA;EACpB,CAAA;EACAb,cAAc;IACZC,IAAIa;IACJV,MAAM;IACNC,QAAQ,CAACC,SAA4CA,KAAKE,cAAcM;IACxEN,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACS,YAAeT,KAAKU,KAAK;EACrD,CAAA;EACAhB,cAAc;IACZC,IAAIgB;IACJb,MAAM;IACNC,QAAQ,CAACC,SAAqDA,KAAKE,cAAcS;IACjFT,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACY,oBAAuBZ,KAAKU,KAAK;EAC7D,CAAA;EACAhB,cAAc;IACZC,IAAIkB;IACJf,MAAM;IACNC,QAAQ,CAACC,SAA8CA,KAAKE,cAAcW;IAC1EX,WAAW,CAAC,EAAEF,KAAI,MAAO,sBAAA,cAACc,aAAAA;MAAa,GAAGd,KAAKU;MAAOpB;;EACxD,CAAA;CACD;",
6
- "names": ["React", "createSurface", "Capabilities", "contributes", "createInvitationUrl", "onReset", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "Account", "Profile", "role", "filter", "data", "subject", "component", "ProfileContainer", "Devices", "DevicesContainer", "Security", "RecoveryCredentialsContainer", "JOIN_DIALOG", "JoinDialog", "props", "RECOVERY_CODE_DIALOG", "RecoveryCodeDialog", "RESET_DIALOG", "ResetDialog"]
7
- }
@@ -1,26 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- ClientCapabilities
4
- } from "./chunk-3BUB64JB.mjs";
5
- import "./chunk-SZLX4BVJ.mjs";
6
-
7
- // src/capabilities/schema-defs.ts
8
- import { Capabilities, contributes } from "@dxos/app-framework";
9
- var schema_defs_default = (context) => {
10
- const registry = context.getCapability(Capabilities.RxRegistry);
11
- const client = context.getCapability(ClientCapabilities.Client);
12
- let previous = [];
13
- const cancel = registry.subscribe(context.capabilities(ClientCapabilities.Schema), (_schemas) => {
14
- const schemas = Array.from(new Set(_schemas.flat()));
15
- const newSchemas = schemas.filter((schema) => !previous.includes(schema));
16
- previous = schemas;
17
- client.addTypes(newSchemas);
18
- }, {
19
- immediate: true
20
- });
21
- return contributes(Capabilities.Null, null, () => cancel());
22
- };
23
- export {
24
- schema_defs_default as default
25
- };
26
- //# sourceMappingURL=schema-defs-GZIVMHLW.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/schema-defs.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';\nimport { type TypedObject } from '@dxos/echo-schema';\n\nimport { ClientCapabilities } from './capabilities';\n\nexport default (context: PluginContext) => {\n const registry = context.getCapability(Capabilities.RxRegistry);\n const client = context.getCapability(ClientCapabilities.Client);\n\n // TODO(wittjosiah): Unregister schemas when they are disabled.\n let previous: TypedObject[] = [];\n const cancel = registry.subscribe(\n context.capabilities(ClientCapabilities.Schema),\n (_schemas) => {\n const schemas = Array.from(new Set(_schemas.flat()));\n // TODO(wittjosiah): Filter out schemas which the client has already registered.\n const newSchemas = schemas.filter((schema) => !previous.includes(schema));\n previous = schemas;\n client.addTypes(newSchemas);\n },\n { immediate: true },\n );\n\n return contributes(Capabilities.Null, null, () => cancel());\n};\n"],
5
- "mappings": ";;;;;;;AAIA,SAASA,cAAcC,mBAAuC;AAK9D,IAAA,sBAAe,CAACC,YAAAA;AACd,QAAMC,WAAWD,QAAQE,cAAcC,aAAaC,UAAU;AAC9D,QAAMC,SAASL,QAAQE,cAAcI,mBAAmBC,MAAM;AAG9D,MAAIC,WAA0B,CAAA;AAC9B,QAAMC,SAASR,SAASS,UACtBV,QAAQW,aAAaL,mBAAmBM,MAAM,GAC9C,CAACC,aAAAA;AACC,UAAMC,UAAUC,MAAMC,KAAK,IAAIC,IAAIJ,SAASK,KAAI,CAAA,CAAA;AAEhD,UAAMC,aAAaL,QAAQM,OAAO,CAACC,WAAW,CAACb,SAASc,SAASD,MAAAA,CAAAA;AACjEb,eAAWM;AACXT,WAAOkB,SAASJ,UAAAA;EAClB,GACA;IAAEK,WAAW;EAAK,CAAA;AAGpB,SAAOC,YAAYtB,aAAauB,MAAM,MAAM,MAAMjB,OAAAA,CAAAA;AACpD;",
6
- "names": ["Capabilities", "contributes", "context", "registry", "getCapability", "Capabilities", "RxRegistry", "client", "ClientCapabilities", "Client", "previous", "cancel", "subscribe", "capabilities", "Schema", "_schemas", "schemas", "Array", "from", "Set", "flat", "newSchemas", "filter", "schema", "includes", "addTypes", "immediate", "contributes", "Null"]
7
- }
@@ -1,11 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- Account,
4
- ClientAction
5
- } from "./chunk-GDJMDBWM.mjs";
6
- import "./chunk-SZLX4BVJ.mjs";
7
- export {
8
- Account,
9
- ClientAction
10
- };
11
- //# sourceMappingURL=types.mjs.map
@@ -1,4 +0,0 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<import("@dxos/app-graph").BuilderExtensions>;
3
- export default _default;
4
- //# sourceMappingURL=app-graph-builder.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAQA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAQpE,SAAS,aAAa;AAAtC,wBAgGI"}
@@ -1,10 +0,0 @@
1
- import { type Client } from '@dxos/client';
2
- import { type ObjectMigration } from '@dxos/client/echo';
3
- import { type TypedObject } from '@dxos/echo-schema';
4
- export declare namespace ClientCapabilities {
5
- const Client: import("@dxos/app-framework").InterfaceDef<Client>;
6
- const Schema: import("@dxos/app-framework").InterfaceDef<TypedObject<any, any>[]>;
7
- const SchemaWhiteList: import("@dxos/app-framework").InterfaceDef<TypedObject<any, any>[]>;
8
- const Migration: import("@dxos/app-framework").InterfaceDef<ObjectMigration[]>;
9
- }
10
- //# sourceMappingURL=capabilities.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/capabilities.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAIrD,yBAAiB,kBAAkB,CAAC;IAC3B,MAAM,MAAM,oDAAiE,CAAC;IAC9E,MAAM,MAAM,qEAAwE,CAAC;IACrF,MAAM,eAAe,qEAAkF,CAAC;IACxG,MAAM,SAAS,+DAA+E,CAAC;CACvG"}
@@ -1,9 +0,0 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- import { Client } from '@dxos/react-client';
3
- import { type ClientPluginOptions } from '../types';
4
- type ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'invitationUrl' | 'invitationParam' | 'onReset'> & {
5
- context: PluginContext;
6
- };
7
- declare const _default: ({ context, onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) => Promise<import("@dxos/app-framework").Capability<Client>>;
8
- export default _default;
9
- //# sourceMappingURL=client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/client.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAI5C,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,KAAK,uBAAuB,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,eAAe,GAAG,iBAAiB,GAAG,SAAS,CAAC,GAAG;IACrH,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;yBAEoB,6DAA6D,uBAAuB;AAA1G,wBAyBE"}
@@ -1,8 +0,0 @@
1
- import { Capabilities, type PluginContext } from '@dxos/app-framework';
2
- type IntentResolverOptions = {
3
- context: PluginContext;
4
- appName?: string;
5
- };
6
- declare const _default: ({ context, appName }: IntentResolverOptions) => import("@dxos/app-framework").Capability<Capabilities.IntentResolver>;
7
- export default _default;
8
- //# sourceMappingURL=intent-resolver.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intent-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/intent-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,YAAY,EAMZ,KAAK,aAAa,EACnB,MAAM,qBAAqB,CAAC;AAW7B,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;yBAIc,sBAAmC,qBAAqB;AAAxE,wBAyNK"}
@@ -1,4 +0,0 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<null>;
3
- export default _default;
4
- //# sourceMappingURL=migrations.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/migrations.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAIpE,SAAS,aAAa;AAAtC,wBAgBE"}
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- declare const _default: () => import("@dxos/app-framework").Capability<Readonly<{
3
- id: string;
4
- dependsOn?: string[];
5
- context: React.FC<React.PropsWithChildren>;
6
- }>>;
7
- export default _default;
8
- //# sourceMappingURL=react-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-context.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-context.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;AAQ1B,wBAOK"}
@@ -1,8 +0,0 @@
1
- import { Capabilities } from '@dxos/app-framework';
2
- import { type ClientPluginOptions } from '../types';
3
- type ReactSurfaceOptions = Pick<ClientPluginOptions, 'onReset'> & {
4
- createInvitationUrl: (invitationCode: string) => string;
5
- };
6
- declare const _default: ({ createInvitationUrl, onReset }: ReactSurfaceOptions) => import("@dxos/app-framework").Capability<Capabilities.ReactSurface>;
7
- export default _default;
8
- //# sourceMappingURL=react-surface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAiB,YAAY,EAAe,MAAM,qBAAqB,CAAC;AAgB/E,OAAO,EAAW,KAAK,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAE7D,KAAK,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,EAAE,SAAS,CAAC,GAAG;IAChE,mBAAmB,EAAE,CAAC,cAAc,EAAE,MAAM,KAAK,MAAM,CAAC;CACzD,CAAC;yBAEc,kCAAkC,mBAAmB;AAArE,wBAsCK"}
@@ -1,4 +0,0 @@
1
- import { type PluginContext } from '@dxos/app-framework';
2
- declare const _default: (context: PluginContext) => import("@dxos/app-framework").Capability<null>;
3
- export default _default;
4
- //# sourceMappingURL=schema-defs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-defs.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/schema-defs.ts"],"names":[],"mappings":"AAIA,OAAO,EAA6B,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;yBAKpE,SAAS,aAAa;AAAtC,wBAmBE"}
@@ -1,8 +0,0 @@
1
- export declare namespace ClientEvents {
2
- const ClientReady: import("@dxos/app-framework").ActivationEvent;
3
- const SetupSchema: import("@dxos/app-framework").ActivationEvent;
4
- const SetupMigration: import("@dxos/app-framework").ActivationEvent;
5
- const IdentityCreated: import("@dxos/app-framework").ActivationEvent;
6
- const SpacesReady: import("@dxos/app-framework").ActivationEvent;
7
- }
8
- //# sourceMappingURL=events.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAQA,yBAAiB,YAAY,CAAC;IACrB,MAAM,WAAW,+CAAqD,CAAC;IACvE,MAAM,WAAW,+CAAqD,CAAC;IACvE,MAAM,cAAc,+CAAwD,CAAC;IAC7E,MAAM,eAAe,+CAAyD,CAAC;IAC/E,MAAM,WAAW,+CAAqD,CAAC;CAC/E"}
@@ -1,136 +0,0 @@
1
- import { Schema } from 'effect';
2
- import { type PluginContext } from '@dxos/app-framework';
3
- import { type Client, PublicKey, type ClientOptions } from '@dxos/react-client';
4
- import { type MaybePromise } from '@dxos/util';
5
- export declare namespace ClientAction {
6
- const CreateIdentity_base: Schema.TaggedClass<CreateIdentity, "dxos.org/plugin/client/action/create-identity", {
7
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/create-identity">;
8
- } & {
9
- input: Schema.Struct<{
10
- displayName: Schema.optional<typeof Schema.String>;
11
- avatarCid: Schema.optional<typeof Schema.String>;
12
- data: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
13
- }>;
14
- output: Schema.Struct<{
15
- identityKey: Schema.instanceOf<PublicKey>;
16
- spaceKey: Schema.optional<Schema.instanceOf<PublicKey>>;
17
- profile: Schema.optional<Schema.Struct<{
18
- displayName: Schema.optional<typeof Schema.String>;
19
- avatarCid: Schema.optional<typeof Schema.String>;
20
- data: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.Any>>;
21
- }>>;
22
- }>;
23
- }>;
24
- export class CreateIdentity extends CreateIdentity_base {
25
- }
26
- const JoinIdentity_base: Schema.TaggedClass<JoinIdentity, "dxos.org/plugin/client/action/join-identity", {
27
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/join-identity">;
28
- } & {
29
- input: Schema.Struct<{
30
- invitationCode: Schema.optional<typeof Schema.String>;
31
- }>;
32
- output: typeof Schema.Void;
33
- }>;
34
- export class JoinIdentity extends JoinIdentity_base {
35
- }
36
- const ShareIdentity_base: Schema.TaggedClass<ShareIdentity, "dxos.org/plugin/client/action/share-identity", {
37
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/share-identity">;
38
- } & {
39
- input: typeof Schema.Void;
40
- output: typeof Schema.Void;
41
- }>;
42
- export class ShareIdentity extends ShareIdentity_base {
43
- }
44
- const RecoverIdentity_base: Schema.TaggedClass<RecoverIdentity, "dxos.org/plugin/client/action/recover-identity", {
45
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/recover-identity">;
46
- } & {
47
- input: typeof Schema.Void;
48
- output: typeof Schema.Void;
49
- }>;
50
- export class RecoverIdentity extends RecoverIdentity_base {
51
- }
52
- const ResetStorage_base: Schema.TaggedClass<ResetStorage, "dxos.org/plugin/client/action/reset-storage", {
53
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/reset-storage">;
54
- } & {
55
- input: Schema.Struct<{
56
- mode: Schema.optional<typeof Schema.String>;
57
- }>;
58
- output: typeof Schema.Void;
59
- }>;
60
- export class ResetStorage extends ResetStorage_base {
61
- }
62
- const CreateAgent_base: Schema.TaggedClass<CreateAgent, "dxos.org/plugin/client/action/create-agent", {
63
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/create-agent">;
64
- } & {
65
- input: typeof Schema.Void;
66
- output: typeof Schema.Void;
67
- }>;
68
- export class CreateAgent extends CreateAgent_base {
69
- }
70
- const CreateRecoveryCode_base: Schema.TaggedClass<CreateRecoveryCode, "dxos.org/plugin/client/action/create-recovery-code", {
71
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/create-recovery-code">;
72
- } & {
73
- input: typeof Schema.Void;
74
- output: typeof Schema.Void;
75
- }>;
76
- export class CreateRecoveryCode extends CreateRecoveryCode_base {
77
- }
78
- const CreatePasskey_base: Schema.TaggedClass<CreatePasskey, "dxos.org/plugin/client/action/create-passkey", {
79
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/create-passkey">;
80
- } & {
81
- input: typeof Schema.Void;
82
- output: typeof Schema.Void;
83
- }>;
84
- export class CreatePasskey extends CreatePasskey_base {
85
- }
86
- const RedeemPasskey_base: Schema.TaggedClass<RedeemPasskey, "dxos.org/plugin/client/action/redeem-passkey", {
87
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/redeem-passkey">;
88
- } & {
89
- input: typeof Schema.Void;
90
- output: typeof Schema.Void;
91
- }>;
92
- export class RedeemPasskey extends RedeemPasskey_base {
93
- }
94
- const RedeemToken_base: Schema.TaggedClass<RedeemToken, "dxos.org/plugin/client/action/redeem-token", {
95
- readonly _tag: Schema.tag<"dxos.org/plugin/client/action/redeem-token">;
96
- } & {
97
- input: Schema.Struct<{
98
- token: typeof Schema.String;
99
- }>;
100
- output: typeof Schema.Void;
101
- }>;
102
- export class RedeemToken extends RedeemToken_base {
103
- }
104
- export {};
105
- }
106
- export type ClientPluginOptions = ClientOptions & {
107
- /**
108
- * Base URL for the invitation link.
109
- */
110
- invitationUrl?: string;
111
- /**
112
- * Query parameter for the invitation code.
113
- */
114
- invitationParam?: string;
115
- /**
116
- * Run after the client has been initialized.
117
- */
118
- onClientInitialized?: (context: PluginContext, client: Client) => MaybePromise<void>;
119
- /**
120
- * Called when spaces are ready.
121
- */
122
- onSpacesReady?: (context: PluginContext, client: Client) => MaybePromise<void>;
123
- /**
124
- * Called when the client is reset.
125
- */
126
- onReset?: (params: {
127
- target?: string;
128
- }) => MaybePromise<void>;
129
- };
130
- export declare namespace Account {
131
- const id = "!dxos.org.plugin.client.account";
132
- const Profile = "dxos.org.plugin.client.account.profile";
133
- const Devices = "dxos.org.plugin.client.account.devices";
134
- const Security = "dxos.org.plugin.client.account.security";
135
- }
136
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,KAAK,MAAM,EAAE,SAAS,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAkB/C,yBAAiB,YAAY,CAAC;;;;;;;;;;;;;;;;;;;IAO5B,MAAM,OAAO,cAAe,SAAQ,mBAGlC;KAAG;;;;;;;;;IAEL,MAAM,OAAO,YAAa,SAAQ,iBAKhC;KAAG;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAGjC;KAAG;;;;;;;IAEL,MAAM,OAAO,eAAgB,SAAQ,oBAGnC;KAAG;;;;;;;;;IAEL,MAAM,OAAO,YAAa,SAAQ,iBAKhC;KAAG;;;;;;;IAEL,MAAM,OAAO,WAAY,SAAQ,gBAG/B;KAAG;;;;;;;IAEL,MAAM,OAAO,kBAAmB,SAAQ,uBAMvC;KAAG;;;;;;;IAEJ,MAAM,OAAO,aAAc,SAAQ,kBAGjC;KAAG;;;;;;;IAEL,MAAM,OAAO,aAAc,SAAQ,kBAGjC;KAAG;;;;;;;;;IAEL,MAAM,OAAO,WAAY,SAAQ,gBAK/B;KAAG;;CACN;AAED,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IAErF;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;IAE/E;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC;CAC/D,CAAC;AAEF,yBAAiB,OAAO,CAAC;IAKhB,MAAM,EAAE,oCAAY,CAAC;IAErB,MAAM,OAAO,2CAAmB,CAAC;IACjC,MAAM,OAAO,2CAAmB,CAAC;IACjC,MAAM,QAAQ,4CAAoB,CAAC;CAC3C"}
@@ -1,113 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { Rx } from '@effect-rx/rx-react';
6
- import { Option, pipe } from 'effect';
7
-
8
- import { createIntent } from '@dxos/app-framework';
9
- import { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';
10
- import { createExtension, rxFromObservable, ROOT_ID } from '@dxos/plugin-graph';
11
- import { ConnectionState } from '@dxos/react-client/mesh';
12
-
13
- import { ClientCapabilities } from './capabilities';
14
- import { CLIENT_PLUGIN } from '../meta';
15
- import { Account, ClientAction } from '../types';
16
-
17
- export default (context: PluginContext) =>
18
- contributes(
19
- Capabilities.AppGraphBuilder,
20
- createExtension({
21
- id: CLIENT_PLUGIN,
22
- actions: (node) =>
23
- Rx.make((get) =>
24
- pipe(
25
- get(node),
26
- Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
27
- Option.map(() => {
28
- return [
29
- {
30
- id: `${CLIENT_PLUGIN}/open-user-account`,
31
- data: async () => {
32
- const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
33
- await dispatch(createIntent(ClientAction.ShareIdentity));
34
- },
35
- properties: {
36
- label: ['open user account label', { ns: CLIENT_PLUGIN }],
37
- icon: 'ph--user--regular',
38
- disposition: 'menu',
39
- keyBinding: {
40
- macos: 'meta+shift+.',
41
- // TODO(wittjosiah): Test on windows to see if it behaves the same as linux.
42
- windows: 'alt+shift+.',
43
- linux: 'alt+shift+>',
44
- },
45
- },
46
- },
47
- ];
48
- }),
49
- Option.getOrElse(() => []),
50
- ),
51
- ),
52
- connector: (node) =>
53
- Rx.make((get) =>
54
- pipe(
55
- get(node),
56
- Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
57
- Option.map(() => {
58
- const client = context.getCapability(ClientCapabilities.Client);
59
- const identity = get(rxFromObservable(client.halo.identity));
60
- const status = get(rxFromObservable(client.mesh.networkStatus));
61
-
62
- return [
63
- {
64
- id: Account.id,
65
- type: CLIENT_PLUGIN,
66
- properties: {
67
- label: ['account label', { ns: CLIENT_PLUGIN }],
68
- icon: 'ph--user--regular',
69
- disposition: 'user-account',
70
- // NOTE: This currently needs to be the identity key because the fallback is generated from hex.
71
- userId: identity?.identityKey.toHex(),
72
- hue: identity?.profile?.data?.hue,
73
- emoji: identity?.profile?.data?.emoji,
74
- status: status.swarm === ConnectionState.OFFLINE ? 'error' : 'active',
75
- },
76
- nodes: [
77
- {
78
- id: Account.Profile,
79
- data: Account.Profile,
80
- type: CLIENT_PLUGIN,
81
- properties: {
82
- label: ['profile label', { ns: CLIENT_PLUGIN }],
83
- icon: 'ph--user--regular',
84
- },
85
- },
86
- {
87
- id: Account.Devices,
88
- data: Account.Devices,
89
- type: CLIENT_PLUGIN,
90
- properties: {
91
- label: ['devices label', { ns: CLIENT_PLUGIN }],
92
- icon: 'ph--devices--regular',
93
- testId: 'clientPlugin.devices',
94
- },
95
- },
96
- {
97
- id: Account.Security,
98
- data: Account.Security,
99
- type: CLIENT_PLUGIN,
100
- properties: {
101
- label: ['security label', { ns: CLIENT_PLUGIN }],
102
- icon: 'ph--key--regular',
103
- },
104
- },
105
- ],
106
- },
107
- ];
108
- }),
109
- Option.getOrElse(() => []),
110
- ),
111
- ),
112
- }),
113
- );
@@ -1,17 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { defineCapability } from '@dxos/app-framework';
6
- import { type Client } from '@dxos/client';
7
- import { type ObjectMigration } from '@dxos/client/echo';
8
- import { type TypedObject } from '@dxos/echo-schema';
9
-
10
- import { CLIENT_PLUGIN } from '../meta';
11
-
12
- export namespace ClientCapabilities {
13
- export const Client = defineCapability<Client>(`${CLIENT_PLUGIN}/capability/client`);
14
- export const Schema = defineCapability<TypedObject[]>(`${CLIENT_PLUGIN}/capability/schema`);
15
- export const SchemaWhiteList = defineCapability<TypedObject[]>(`${CLIENT_PLUGIN}/capability/schema-whitelist`);
16
- export const Migration = defineCapability<ObjectMigration[]>(`${CLIENT_PLUGIN}/capability/migration`);
17
- }
@@ -1,41 +0,0 @@
1
- //
2
- // Copyright 2025 DXOS.org
3
- //
4
-
5
- import { contributes, type PluginContext } from '@dxos/app-framework';
6
- import { Client } from '@dxos/react-client';
7
-
8
- import { ClientCapabilities } from './capabilities';
9
- import { ClientEvents } from '../events';
10
- import { type ClientPluginOptions } from '../types';
11
-
12
- type ClientCapabilityOptions = Omit<ClientPluginOptions, 'appKey' | 'invitationUrl' | 'invitationParam' | 'onReset'> & {
13
- context: PluginContext;
14
- };
15
-
16
- export default async ({ context, onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) => {
17
- const client = new Client(options);
18
- await client.initialize();
19
- await onClientInitialized?.(context, client);
20
-
21
- // TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.
22
- client.reloaded.on(() => {
23
- client.halo.identity.subscribe(async (identity) => {
24
- if (identity) {
25
- window.location.href = window.location.origin;
26
- }
27
- });
28
- });
29
-
30
- const subscription = client.spaces.isReady.subscribe(async (ready) => {
31
- if (ready) {
32
- await context.activatePromise(ClientEvents.SpacesReady);
33
- await onSpacesReady?.(context, client);
34
- }
35
- });
36
-
37
- return contributes(ClientCapabilities.Client, client, async () => {
38
- subscription.unsubscribe();
39
- await client.destroy();
40
- });
41
- };