@dxos/plugin-client 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/dist/lib/browser/{chunk-WNJRYPGG.mjs → chunk-M37DHX5L.mjs} +1 -1
  2. package/dist/lib/browser/{chunk-WNJRYPGG.mjs.map → chunk-M37DHX5L.mjs.map} +2 -2
  3. package/dist/lib/browser/{chunk-M43LJQ5U.mjs → chunk-RPMM5NKJ.mjs} +2 -2
  4. package/dist/lib/browser/chunk-RPMM5NKJ.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-ELAYKIQU.mjs → chunk-VAIJSQYA.mjs} +1 -1
  6. package/dist/lib/browser/{chunk-ELAYKIQU.mjs.map → chunk-VAIJSQYA.mjs.map} +2 -2
  7. package/dist/lib/browser/{create-agent-SS5SE35J.mjs → create-agent-JV3EM3TV.mjs} +5 -13
  8. package/dist/lib/browser/create-agent-JV3EM3TV.mjs.map +7 -0
  9. package/dist/lib/browser/{create-identity-PBEUEIPN.mjs → create-identity-ZITQKEVZ.mjs} +4 -4
  10. package/dist/lib/browser/create-identity-ZITQKEVZ.mjs.map +7 -0
  11. package/dist/lib/browser/{create-passkey-JN6I5WMM.mjs → create-passkey-NCP4XA7C.mjs} +7 -31
  12. package/dist/lib/browser/create-passkey-NCP4XA7C.mjs.map +7 -0
  13. package/dist/lib/browser/{create-recovery-code-32I6IWZC.mjs → create-recovery-code-L5LA3GAP.mjs} +6 -14
  14. package/dist/lib/browser/create-recovery-code-L5LA3GAP.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +7 -127
  16. package/dist/lib/browser/index.mjs.map +4 -4
  17. package/dist/lib/browser/{join-identity-2BP4G2SD.mjs → join-identity-3W6PJLKN.mjs} +4 -4
  18. package/dist/lib/browser/{join-identity-2BP4G2SD.mjs.map → join-identity-3W6PJLKN.mjs.map} +1 -1
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/operations/index.mjs +3 -3
  21. package/dist/lib/browser/operations/index.mjs.map +3 -3
  22. package/dist/lib/browser/{recover-identity-LS6B5INB.mjs → recover-identity-KL6QY4GI.mjs} +4 -4
  23. package/dist/lib/browser/{recover-identity-LS6B5INB.mjs.map → recover-identity-KL6QY4GI.mjs.map} +1 -1
  24. package/dist/lib/browser/{redeem-passkey-OCIV6VCK.mjs → redeem-passkey-NDEWSJTM.mjs} +6 -22
  25. package/dist/lib/browser/redeem-passkey-NDEWSJTM.mjs.map +7 -0
  26. package/dist/lib/browser/{redeem-token-6BCRGKV6.mjs → redeem-token-YLWAVFXD.mjs} +5 -13
  27. package/dist/lib/browser/redeem-token-YLWAVFXD.mjs.map +7 -0
  28. package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs → reset-storage-OBHEGA6Z.mjs} +4 -4
  29. package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs.map → reset-storage-OBHEGA6Z.mjs.map} +1 -1
  30. package/dist/lib/browser/{share-identity-YJEBJTPA.mjs → share-identity-FTFHFSZQ.mjs} +4 -4
  31. package/dist/lib/browser/{share-identity-YJEBJTPA.mjs.map → share-identity-FTFHFSZQ.mjs.map} +1 -1
  32. package/dist/lib/browser/testing/index.mjs.map +2 -2
  33. package/dist/lib/browser/translations.mjs +74 -0
  34. package/dist/lib/browser/translations.mjs.map +7 -0
  35. package/dist/lib/browser/types/index.mjs +1 -1
  36. package/dist/lib/node-esm/{chunk-SJ6FDER5.mjs → chunk-G77YYPR6.mjs} +2 -2
  37. package/dist/lib/node-esm/chunk-G77YYPR6.mjs.map +7 -0
  38. package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs → chunk-OHKM7GJW.mjs} +1 -1
  39. package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs.map → chunk-OHKM7GJW.mjs.map} +2 -2
  40. package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs → chunk-UBY7FBQ7.mjs} +1 -1
  41. package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs.map → chunk-UBY7FBQ7.mjs.map} +2 -2
  42. package/dist/lib/node-esm/{create-agent-QGEHMHBL.mjs → create-agent-Y4BPVDV7.mjs} +5 -13
  43. package/dist/lib/node-esm/create-agent-Y4BPVDV7.mjs.map +7 -0
  44. package/dist/lib/node-esm/{create-identity-EHRJQOO4.mjs → create-identity-367SQSX6.mjs} +4 -4
  45. package/dist/lib/node-esm/create-identity-367SQSX6.mjs.map +7 -0
  46. package/dist/lib/node-esm/{create-passkey-PFBHHBEQ.mjs → create-passkey-WMWK2ETT.mjs} +7 -31
  47. package/dist/lib/node-esm/create-passkey-WMWK2ETT.mjs.map +7 -0
  48. package/dist/lib/node-esm/{create-recovery-code-HBAM2A72.mjs → create-recovery-code-VJGE5HJL.mjs} +6 -14
  49. package/dist/lib/node-esm/create-recovery-code-VJGE5HJL.mjs.map +7 -0
  50. package/dist/lib/node-esm/index.mjs +7 -127
  51. package/dist/lib/node-esm/index.mjs.map +4 -4
  52. package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs → join-identity-IRIRO2VT.mjs} +4 -4
  53. package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs.map → join-identity-IRIRO2VT.mjs.map} +1 -1
  54. package/dist/lib/node-esm/meta.json +1 -1
  55. package/dist/lib/node-esm/operations/index.mjs +3 -3
  56. package/dist/lib/node-esm/operations/index.mjs.map +3 -3
  57. package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs → recover-identity-LJCY4BCJ.mjs} +4 -4
  58. package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs.map → recover-identity-LJCY4BCJ.mjs.map} +1 -1
  59. package/dist/lib/node-esm/{redeem-passkey-FZO3LZ57.mjs → redeem-passkey-PT7QWFJE.mjs} +6 -22
  60. package/dist/lib/node-esm/redeem-passkey-PT7QWFJE.mjs.map +7 -0
  61. package/dist/lib/node-esm/{redeem-token-IHHIAIQ2.mjs → redeem-token-BHKHEXJM.mjs} +5 -13
  62. package/dist/lib/node-esm/redeem-token-BHKHEXJM.mjs.map +7 -0
  63. package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs → reset-storage-VPUZJOUV.mjs} +4 -4
  64. package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs.map → reset-storage-VPUZJOUV.mjs.map} +1 -1
  65. package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs → share-identity-SZ3REIRC.mjs} +4 -4
  66. package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs.map → share-identity-SZ3REIRC.mjs.map} +1 -1
  67. package/dist/lib/node-esm/testing/index.mjs.map +2 -2
  68. package/dist/lib/node-esm/translations.mjs +75 -0
  69. package/dist/lib/node-esm/translations.mjs.map +7 -0
  70. package/dist/lib/node-esm/types/index.mjs +1 -1
  71. package/dist/types/src/ClientPlugin.d.ts +1 -0
  72. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  73. package/dist/types/src/{cli/plugin.d.ts → ClientPlugin.node.d.ts} +2 -1
  74. package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
  75. package/dist/types/src/ClientPlugin.test.d.ts +2 -0
  76. package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  78. package/dist/types/src/capabilities/client.d.ts +1 -1
  79. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  80. package/dist/types/src/capabilities/index.d.ts +13 -13
  81. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  82. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
  84. package/dist/types/src/capabilities/node.d.ts +13 -13
  85. package/dist/types/src/capabilities/node.d.ts.map +1 -1
  86. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  87. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  88. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  89. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  90. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
  91. package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
  92. package/dist/types/src/commands/config/index.d.ts.map +1 -0
  93. package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
  94. package/dist/types/src/commands/config/view.d.ts.map +1 -0
  95. package/dist/types/src/commands/device/index.d.ts.map +1 -0
  96. package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
  97. package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
  98. package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
  99. package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
  100. package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
  101. package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
  102. package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
  103. package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
  104. package/dist/types/src/commands/device/util.d.ts.map +1 -0
  105. package/dist/types/src/commands/edge/index.d.ts.map +1 -0
  106. package/dist/types/src/commands/edge/status.d.ts.map +1 -0
  107. package/dist/types/src/commands/halo/create/create.d.ts +15 -0
  108. package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
  109. package/dist/types/src/commands/halo/create/create.test.d.ts.map +1 -0
  110. package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
  111. package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
  112. package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
  113. package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
  114. package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
  115. package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +2 -2
  116. package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
  117. package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
  118. package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
  119. package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
  120. package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
  121. package/dist/types/src/commands/halo/index.d.ts.map +1 -0
  122. package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
  123. package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
  124. package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
  125. package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
  126. package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
  127. package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
  128. package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
  129. package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
  130. package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
  131. package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
  132. package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
  133. package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
  134. package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
  135. package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
  136. package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
  137. package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
  138. package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
  139. package/dist/types/src/commands/halo/util.d.ts.map +1 -0
  140. package/dist/types/src/commands/index.d.ts.map +1 -0
  141. package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
  142. package/dist/types/src/commands/profile/create.d.ts.map +1 -0
  143. package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
  144. package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
  145. package/dist/types/src/commands/profile/import.d.ts.map +1 -0
  146. package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
  147. package/dist/types/src/commands/profile/index.d.ts.map +1 -0
  148. package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
  149. package/dist/types/src/commands/profile/list.d.ts.map +1 -0
  150. package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
  151. package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
  152. package/dist/types/src/commands/profile/util.d.ts.map +1 -0
  153. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
  154. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -165
  155. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
  156. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
  157. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
  158. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
  159. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
  160. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
  161. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
  162. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  163. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
  164. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +1 -1
  165. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
  166. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
  167. package/dist/types/src/index.d.ts +2 -1
  168. package/dist/types/src/index.d.ts.map +1 -1
  169. package/dist/types/src/operations/create-agent.d.ts +1 -1
  170. package/dist/types/src/operations/create-agent.d.ts.map +1 -1
  171. package/dist/types/src/operations/create-identity.d.ts +1 -1
  172. package/dist/types/src/operations/create-identity.d.ts.map +1 -1
  173. package/dist/types/src/operations/create-passkey.d.ts +1 -1
  174. package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
  175. package/dist/types/src/operations/create-recovery-code.d.ts +1 -1
  176. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -1
  177. package/dist/types/src/operations/definitions.d.ts +1 -1
  178. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  179. package/dist/types/src/operations/index.d.ts +1 -1
  180. package/dist/types/src/operations/index.d.ts.map +1 -1
  181. package/dist/types/src/operations/join-identity.d.ts +1 -1
  182. package/dist/types/src/operations/join-identity.d.ts.map +1 -1
  183. package/dist/types/src/operations/recover-identity.d.ts +1 -1
  184. package/dist/types/src/operations/recover-identity.d.ts.map +1 -1
  185. package/dist/types/src/operations/redeem-passkey.d.ts +1 -1
  186. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -1
  187. package/dist/types/src/operations/redeem-token.d.ts +1 -1
  188. package/dist/types/src/operations/redeem-token.d.ts.map +1 -1
  189. package/dist/types/src/operations/reset-storage.d.ts +1 -1
  190. package/dist/types/src/operations/reset-storage.d.ts.map +1 -1
  191. package/dist/types/src/operations/share-identity.d.ts +1 -1
  192. package/dist/types/src/operations/share-identity.d.ts.map +1 -1
  193. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
  194. package/dist/types/src/translations.d.ts.map +1 -1
  195. package/dist/types/src/types/capabilities.d.ts +1 -2
  196. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  197. package/dist/types/src/types/events.d.ts.map +1 -1
  198. package/dist/types/src/types/schema.d.ts.map +1 -1
  199. package/dist/types/tsconfig.tsbuildinfo +1 -1
  200. package/package.json +51 -58
  201. package/src/{cli/plugin.ts → ClientPlugin.node.ts} +4 -2
  202. package/src/ClientPlugin.test.ts +29 -0
  203. package/src/ClientPlugin.ts +6 -5
  204. package/src/capabilities/app-graph-builder.ts +1 -1
  205. package/src/capabilities/index.ts +1 -1
  206. package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
  207. package/src/capabilities/node.ts +1 -1
  208. package/src/capabilities/operation-handler.ts +1 -1
  209. package/src/capabilities/react-surface.tsx +13 -16
  210. package/src/capabilities/schema-defs.ts +29 -9
  211. package/src/{cli/commands → commands}/halo/create/create.test.ts +8 -3
  212. package/src/{cli/commands → commands}/halo/create/create.ts +1 -2
  213. package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +1 -1
  214. package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
  215. package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +2 -1
  216. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +2 -1
  217. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +1 -1
  218. package/src/containers/ResetDialog/ResetDialog.stories.tsx +2 -1
  219. package/src/index.ts +5 -1
  220. package/src/operations/create-agent.ts +1 -1
  221. package/src/operations/create-identity.ts +1 -1
  222. package/src/operations/create-passkey.ts +1 -1
  223. package/src/operations/create-recovery-code.ts +1 -1
  224. package/src/operations/definitions.ts +1 -1
  225. package/src/operations/index.ts +1 -1
  226. package/src/operations/join-identity.ts +1 -1
  227. package/src/operations/recover-identity.ts +1 -1
  228. package/src/operations/redeem-passkey.ts +1 -1
  229. package/src/operations/redeem-token.ts +1 -1
  230. package/src/operations/reset-storage.ts +1 -1
  231. package/src/operations/share-identity.ts +1 -1
  232. package/src/translations.ts +2 -3
  233. package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +0 -7
  234. package/dist/lib/browser/cli/index.mjs +0 -1060
  235. package/dist/lib/browser/cli/index.mjs.map +0 -7
  236. package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +0 -7
  237. package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +0 -7
  238. package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +0 -7
  239. package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +0 -7
  240. package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +0 -7
  241. package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +0 -7
  242. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +0 -7
  243. package/dist/lib/node-esm/cli/index.mjs +0 -1061
  244. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  245. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +0 -7
  246. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +0 -7
  247. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +0 -7
  248. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +0 -7
  249. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +0 -7
  250. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +0 -7
  251. package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
  252. package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
  253. package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
  254. package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
  255. package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
  256. package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
  257. package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
  258. package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
  259. package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
  260. package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
  261. package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
  262. package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
  263. package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
  264. package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
  265. package/dist/types/src/cli/commands/halo/create/create.d.ts +0 -15
  266. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
  267. package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
  268. package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
  269. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
  270. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
  271. package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
  272. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
  273. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
  274. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
  275. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
  276. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
  277. package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
  278. package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
  279. package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
  280. package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
  281. package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
  282. package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
  283. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
  284. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
  285. package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
  286. package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
  287. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
  288. package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
  289. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
  290. package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
  291. package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
  292. package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
  293. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
  294. package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
  295. package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
  296. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  297. package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
  298. package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
  299. package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
  300. package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
  301. package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
  302. package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
  303. package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
  304. package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
  305. package/dist/types/src/cli/index.d.ts +0 -2
  306. package/dist/types/src/cli/index.d.ts.map +0 -1
  307. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  308. package/dist/types/src/cli/testing/test-console.d.ts +0 -37
  309. package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
  310. package/src/cli/index.ts +0 -5
  311. package/src/cli/testing/test-console.ts +0 -87
  312. /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
  313. /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
  314. /package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +0 -0
  315. /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
  316. /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
  317. /package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +0 -0
  318. /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
  319. /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
  320. /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
  321. /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
  322. /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
  323. /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
  324. /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
  325. /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
  326. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
  327. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
  328. /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
  329. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
  330. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
  331. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +0 -0
  332. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
  333. /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
  334. /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
  335. /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
  336. /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
  337. /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
  338. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +0 -0
  339. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
  340. /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
  341. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
  342. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
  343. /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
  344. /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
  345. /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
  346. /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
  347. /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
  348. /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
  349. /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
  350. /package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +0 -0
  351. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  352. /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
  353. /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
  354. /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
  355. /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
  356. /package/src/{cli/commands → commands}/config/index.ts +0 -0
  357. /package/src/{cli/commands → commands}/config/view.ts +0 -0
  358. /package/src/{cli/commands → commands}/device/index.ts +0 -0
  359. /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
  360. /package/src/{cli/commands → commands}/device/info/info.test.ts +0 -0
  361. /package/src/{cli/commands → commands}/device/info/info.ts +0 -0
  362. /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
  363. /package/src/{cli/commands → commands}/device/list/list.test.ts +0 -0
  364. /package/src/{cli/commands → commands}/device/list/list.ts +0 -0
  365. /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
  366. /package/src/{cli/commands → commands}/device/update/update.ts +0 -0
  367. /package/src/{cli/commands → commands}/device/util.ts +0 -0
  368. /package/src/{cli/commands → commands}/edge/index.ts +0 -0
  369. /package/src/{cli/commands → commands}/edge/status.ts +0 -0
  370. /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
  371. /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
  372. /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
  373. /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
  374. /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
  375. /package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -0
  376. /package/src/{cli/commands → commands}/halo/credential/list/list.ts +0 -0
  377. /package/src/{cli/commands → commands}/halo/identity/identity.test.ts +0 -0
  378. /package/src/{cli/commands → commands}/halo/identity/identity.ts +0 -0
  379. /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
  380. /package/src/{cli/commands → commands}/halo/index.ts +0 -0
  381. /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
  382. /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
  383. /package/src/{cli/commands → commands}/halo/join/join.ts +0 -0
  384. /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
  385. /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
  386. /package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -0
  387. /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
  388. /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
  389. /package/src/{cli/commands → commands}/halo/recover/recover.ts +0 -0
  390. /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
  391. /package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -0
  392. /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
  393. /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
  394. /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
  395. /package/src/{cli/commands → commands}/halo/update/update.test.ts +0 -0
  396. /package/src/{cli/commands → commands}/halo/update/update.ts +0 -0
  397. /package/src/{cli/commands → commands}/halo/util.ts +0 -0
  398. /package/src/{cli/commands → commands}/index.ts +0 -0
  399. /package/src/{cli/commands → commands}/profile/create.ts +0 -0
  400. /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
  401. /package/src/{cli/commands → commands}/profile/import.ts +0 -0
  402. /package/src/{cli/commands → commands}/profile/index.ts +0 -0
  403. /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
  404. /package/src/{cli/commands → commands}/profile/list.ts +0 -0
  405. /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
  406. /package/src/{cli/commands → commands}/profile/util.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-client",
3
- "version": "0.8.4-main.9be5663bfe",
3
+ "version": "0.8.4-main.abd8ff62ef",
4
4
  "description": "DXOS Surface plugin for DXOS Client",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -14,16 +14,21 @@
14
14
  "type": "module",
15
15
  "imports": {
16
16
  "#capabilities": {
17
- "source": "./src/capabilities/index.ts",
18
- "types": "./src/capabilities/index.ts",
19
17
  "browser": "./src/capabilities/index.ts",
20
- "node": "./src/capabilities/node.ts"
18
+ "node": "./src/capabilities/node.ts",
19
+ "default": "./src/capabilities/index.ts"
21
20
  },
22
21
  "#components": "./src/components/index.ts",
23
22
  "#containers": "./src/containers/index.ts",
24
23
  "#meta": "./src/meta.ts",
25
24
  "#operations": "./src/operations/index.ts",
25
+ "#plugin": {
26
+ "browser": "./src/ClientPlugin.ts",
27
+ "node": "./src/ClientPlugin.node.ts",
28
+ "default": "./src/ClientPlugin.ts"
29
+ },
26
30
  "#testing": "./src/testing/index.ts",
31
+ "#translations": "./src/translations.ts",
27
32
  "#types": "./src/types/index.ts"
28
33
  },
29
34
  "exports": {
@@ -33,44 +38,32 @@
33
38
  "browser": "./dist/lib/browser/index.mjs",
34
39
  "node": "./dist/lib/node-esm/index.mjs"
35
40
  },
36
- "./cli": {
37
- "source": "./src/cli/index.ts",
38
- "types": "./dist/types/src/cli/index.d.ts",
39
- "node": "./dist/lib/node-esm/cli/index.mjs"
40
- },
41
41
  "./operations": {
42
42
  "source": "./src/operations/index.ts",
43
43
  "types": "./dist/types/src/operations/index.d.ts",
44
44
  "browser": "./dist/lib/browser/operations/index.mjs",
45
45
  "node": "./dist/lib/node-esm/operations/index.mjs"
46
46
  },
47
- "./types": {
48
- "source": "./src/types/index.ts",
49
- "types": "./dist/types/src/types/index.d.ts",
50
- "browser": "./dist/lib/browser/types/index.mjs",
51
- "node": "./dist/lib/node-esm/types/index.mjs"
52
- },
53
47
  "./testing": {
54
48
  "source": "./src/testing/index.ts",
55
49
  "types": "./dist/types/src/testing/index.d.ts",
56
50
  "browser": "./dist/lib/browser/testing/index.mjs",
57
51
  "node": "./dist/lib/node-esm/testing/index.mjs"
52
+ },
53
+ "./translations": {
54
+ "source": "./src/translations.ts",
55
+ "types": "./dist/types/src/translations.d.ts",
56
+ "browser": "./dist/lib/browser/translations.mjs",
57
+ "node": "./dist/lib/node-esm/translations.mjs"
58
+ },
59
+ "./types": {
60
+ "source": "./src/types/index.ts",
61
+ "types": "./dist/types/src/types/index.d.ts",
62
+ "browser": "./dist/lib/browser/types/index.mjs",
63
+ "node": "./dist/lib/node-esm/types/index.mjs"
58
64
  }
59
65
  },
60
66
  "types": "dist/types/src/index.d.ts",
61
- "typesVersions": {
62
- "*": {
63
- "operations": [
64
- "dist/types/src/operations/index.d.ts"
65
- ],
66
- "types": [
67
- "dist/types/src/types/index.d.ts"
68
- ],
69
- "testing": [
70
- "dist/types/src/testing/index.d.ts"
71
- ]
72
- }
73
- },
74
67
  "files": [
75
68
  "dist",
76
69
  "src"
@@ -82,29 +75,29 @@
82
75
  "effect": "3.20.0",
83
76
  "react-qr-rounded": "^1.0.0",
84
77
  "yaml": "^2.8.2",
85
- "@dxos/app-framework": "0.8.4-main.9be5663bfe",
86
- "@dxos/app-toolkit": "0.8.4-main.9be5663bfe",
87
- "@dxos/client-protocol": "0.8.4-main.9be5663bfe",
88
- "@dxos/cli-util": "0.8.4-main.9be5663bfe",
89
- "@dxos/client": "0.8.4-main.9be5663bfe",
90
- "@dxos/async": "0.8.4-main.9be5663bfe",
91
- "@dxos/client-services": "0.8.4-main.9be5663bfe",
92
- "@dxos/context": "0.8.4-main.9be5663bfe",
93
- "@dxos/echo": "0.8.4-main.9be5663bfe",
94
- "@dxos/effect": "0.8.4-main.9be5663bfe",
95
- "@dxos/invariant": "0.8.4-main.9be5663bfe",
96
- "@dxos/operation": "0.8.4-main.9be5663bfe",
97
- "@dxos/log": "0.8.4-main.9be5663bfe",
98
- "@dxos/config": "0.8.4-main.9be5663bfe",
99
- "@dxos/plugin-graph": "0.8.4-main.9be5663bfe",
100
- "@dxos/protocols": "0.8.4-main.9be5663bfe",
101
- "@dxos/react-ui-form": "0.8.4-main.9be5663bfe",
102
- "@dxos/plugin-observability": "0.8.4-main.9be5663bfe",
103
- "@dxos/react-client": "0.8.4-main.9be5663bfe",
104
- "@dxos/react-ui-pickers": "0.8.4-main.9be5663bfe",
105
- "@dxos/shell": "0.8.4-main.9be5663bfe",
106
- "@dxos/util": "0.8.4-main.9be5663bfe",
107
- "@dxos/react-ui-stack": "0.8.4-main.9be5663bfe"
78
+ "@dxos/app-framework": "0.8.4-main.abd8ff62ef",
79
+ "@dxos/async": "0.8.4-main.abd8ff62ef",
80
+ "@dxos/app-toolkit": "0.8.4-main.abd8ff62ef",
81
+ "@dxos/cli-util": "0.8.4-main.abd8ff62ef",
82
+ "@dxos/client": "0.8.4-main.abd8ff62ef",
83
+ "@dxos/client-protocol": "0.8.4-main.abd8ff62ef",
84
+ "@dxos/client-services": "0.8.4-main.abd8ff62ef",
85
+ "@dxos/compute": "0.8.4-main.abd8ff62ef",
86
+ "@dxos/context": "0.8.4-main.abd8ff62ef",
87
+ "@dxos/echo": "0.8.4-main.abd8ff62ef",
88
+ "@dxos/config": "0.8.4-main.abd8ff62ef",
89
+ "@dxos/effect": "0.8.4-main.abd8ff62ef",
90
+ "@dxos/invariant": "0.8.4-main.abd8ff62ef",
91
+ "@dxos/log": "0.8.4-main.abd8ff62ef",
92
+ "@dxos/plugin-graph": "0.8.4-main.abd8ff62ef",
93
+ "@dxos/plugin-observability": "0.8.4-main.abd8ff62ef",
94
+ "@dxos/protocols": "0.8.4-main.abd8ff62ef",
95
+ "@dxos/react-client": "0.8.4-main.abd8ff62ef",
96
+ "@dxos/react-ui-form": "0.8.4-main.abd8ff62ef",
97
+ "@dxos/react-ui-pickers": "0.8.4-main.abd8ff62ef",
98
+ "@dxos/shell": "0.8.4-main.abd8ff62ef",
99
+ "@dxos/react-ui-stack": "0.8.4-main.abd8ff62ef",
100
+ "@dxos/util": "0.8.4-main.abd8ff62ef"
108
101
  },
109
102
  "devDependencies": {
110
103
  "@effect-atom/atom-react": "^0.5.0",
@@ -114,11 +107,11 @@
114
107
  "@types/react-dom": "~19.2.3",
115
108
  "react": "~19.2.3",
116
109
  "react-dom": "~19.2.3",
117
- "vite": "^7.1.11",
118
- "@dxos/plugin-testing": "0.8.4-main.9be5663bfe",
119
- "@dxos/storybook-utils": "0.8.4-main.9be5663bfe",
120
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe",
121
- "@dxos/react-ui": "0.8.4-main.9be5663bfe"
110
+ "vite": "^8.0.10",
111
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
112
+ "@dxos/storybook-utils": "0.8.4-main.abd8ff62ef",
113
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef",
114
+ "@dxos/plugin-testing": "0.8.4-main.abd8ff62ef"
122
115
  },
123
116
  "peerDependencies": {
124
117
  "@effect-atom/atom-react": "^0.5.0",
@@ -126,8 +119,8 @@
126
119
  "effect": "3.20.0",
127
120
  "react": "~19.2.3",
128
121
  "react-dom": "~19.2.3",
129
- "@dxos/ui-theme": "0.8.4-main.9be5663bfe",
130
- "@dxos/react-ui": "0.8.4-main.9be5663bfe"
122
+ "@dxos/react-ui": "0.8.4-main.abd8ff62ef",
123
+ "@dxos/ui-theme": "0.8.4-main.abd8ff62ef"
131
124
  },
132
125
  "publishConfig": {
133
126
  "access": "public"
@@ -19,13 +19,15 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
19
19
  Plugin.addModule((options) => ({
20
20
  id: Capability.getModuleTag(Client),
21
21
  activatesOn: ActivationEvents.Startup,
22
- activatesAfter: [ClientEvents.ClientReady],
22
+ firesAfterActivation: [ClientEvents.ClientReady],
23
23
  activate: () => Client(options),
24
24
  })),
25
25
  Plugin.addModule({
26
26
  activatesOn: ClientEvents.ClientReady,
27
- activatesBefore: [AppActivationEvents.SetupSchema],
27
+ firesBeforeActivation: [AppActivationEvents.SetupSchema],
28
28
  activate: SchemaDefs,
29
29
  }),
30
30
  Plugin.make,
31
31
  );
32
+
33
+ export default ClientPlugin;
@@ -0,0 +1,29 @@
1
+ //
2
+ // Copyright 2026 DXOS.org
3
+ //
4
+
5
+ import { describe, test } from 'vitest';
6
+
7
+ import { ActivationEvents } from '@dxos/app-framework';
8
+ // #plugin resolves to ClientPlugin.node.ts under the source condition used by vitest.
9
+ import { ClientPlugin } from '@dxos/plugin-client';
10
+ import { createComposerTestApp } from '@dxos/plugin-testing/harness';
11
+
12
+ import { meta } from './meta';
13
+
14
+ const moduleId = (name: string) => `${meta.id}.module.${name}`;
15
+
16
+ describe('ClientPlugin', () => {
17
+ test('modules activate on the expected events', async ({ expect }) => {
18
+ await using harness = await createComposerTestApp({
19
+ plugins: [ClientPlugin({})],
20
+ });
21
+
22
+ // The CLI variant activates Client and SchemaDefs on startup.
23
+ expect(harness.manager.getActive()).toEqual(expect.arrayContaining([moduleId('Client'), moduleId('SchemaDefs')]));
24
+
25
+ // Operation handlers are not loaded on startup — SetupOperationHandler fires lazily when an operation is invoked.
26
+ await harness.fire(ActivationEvents.SetupOperationHandler);
27
+ expect(harness.manager.getActive()).toContain(moduleId('OperationHandler'));
28
+ });
29
+ });
@@ -16,11 +16,10 @@ import {
16
16
  SchemaDefs,
17
17
  } from '#capabilities';
18
18
  import { meta } from '#meta';
19
+ import { translations } from '#translations';
19
20
  import { ClientEvents } from '#types';
20
21
  import { type ClientPluginOptions } from '#types';
21
22
 
22
- import { translations } from './translations';
23
-
24
23
  export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
25
24
  AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
26
25
  AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
@@ -33,18 +32,18 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
33
32
  return {
34
33
  id: Capability.getModuleTag(Client),
35
34
  activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),
36
- activatesAfter: [ClientEvents.ClientReady],
35
+ firesAfterActivation: [ClientEvents.ClientReady],
37
36
  activate: () => Client(options),
38
37
  };
39
38
  }),
40
39
  Plugin.addModule({
41
40
  activatesOn: ClientEvents.ClientReady,
42
- activatesBefore: [AppActivationEvents.SetupSchema],
41
+ firesBeforeActivation: [AppActivationEvents.SetupSchema],
43
42
  activate: SchemaDefs,
44
43
  }),
45
44
  Plugin.addModule({
46
45
  activatesOn: ClientEvents.ClientReady,
47
- activatesBefore: [ClientEvents.SetupMigration],
46
+ firesBeforeActivation: [ClientEvents.SetupMigration],
48
47
  activate: Migrations,
49
48
  }),
50
49
  Plugin.addModule(
@@ -69,3 +68,5 @@ export const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(
69
68
  ),
70
69
  Plugin.make,
71
70
  );
71
+
72
+ export default ClientPlugin;
@@ -6,7 +6,7 @@ import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capability } from '@dxos/app-framework';
8
8
  import { AppCapabilities } from '@dxos/app-toolkit';
9
- import { Operation } from '@dxos/operation';
9
+ import { Operation } from '@dxos/compute';
10
10
  import { CreateAtom, GraphBuilder, Node, NodeMatcher } from '@dxos/plugin-graph';
11
11
  import { ConnectionState } from '@dxos/react-client/mesh';
12
12
 
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Capability } from '@dxos/app-framework';
6
- import { OperationHandlerSet } from '@dxos/operation';
6
+ import { OperationHandlerSet } from '@dxos/compute';
7
7
 
8
8
  export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
9
9
  export const Client = Capability.lazy('Client', () => import('./client'));
@@ -6,8 +6,8 @@ import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
8
  import { AppCapabilities } from '@dxos/app-toolkit';
9
+ import { Operation } from '@dxos/compute';
9
10
  import { log } from '@dxos/log';
10
- import { Operation } from '@dxos/operation';
11
11
 
12
12
  import { ClientOperation } from '../../operations';
13
13
 
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import { Capability } from '@dxos/app-framework';
6
- import { OperationHandlerSet } from '@dxos/operation';
6
+ import { OperationHandlerSet } from '@dxos/compute';
7
7
 
8
8
  export const Client = Capability.lazy('Client', () => import('./client'));
9
9
  export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
- import type { OperationHandlerSet } from '@dxos/operation';
8
+ import type { OperationHandlerSet } from '@dxos/compute';
9
9
 
10
10
  import { ClientOperationHandlerSet } from '#operations';
11
11
 
@@ -3,7 +3,7 @@
3
3
  //
4
4
 
5
5
  import * as Effect from 'effect/Effect';
6
- import React from 'react';
6
+ import React, { type ComponentProps } from 'react';
7
7
 
8
8
  import { Capabilities, Capability } from '@dxos/app-framework';
9
9
  import { Surface } from '@dxos/app-framework/ui';
@@ -32,39 +32,36 @@ export default Capability.makeModule(
32
32
  return Capability.contributes(Capabilities.ReactSurface, [
33
33
  Surface.create({
34
34
  id: Account.Profile,
35
- role: 'article',
36
- filter: AppSurface.literalSection(Account.Profile),
35
+ filter: AppSurface.literal(AppSurface.Article, Account.Profile),
37
36
  component: () => <ProfileContainer />,
38
37
  }),
39
38
  Surface.create({
40
39
  id: Account.Devices,
41
- role: 'article',
42
- filter: AppSurface.literalSection(Account.Devices),
40
+ filter: AppSurface.literal(AppSurface.Article, Account.Devices),
43
41
  component: () => <DevicesContainer createInvitationUrl={createInvitationUrl} />,
44
42
  }),
45
43
  Surface.create({
46
44
  id: Account.Security,
47
- role: 'article',
48
- filter: AppSurface.literalSection(Account.Security),
45
+ filter: AppSurface.literal(AppSurface.Article, Account.Security),
49
46
  component: () => <RecoveryCredentialsContainer />,
50
47
  }),
51
48
  Surface.create({
52
49
  id: JOIN_DIALOG,
53
- role: 'dialog',
54
- filter: AppSurface.componentDialog(JOIN_DIALOG),
55
- component: ({ data }: { data: any }) => <JoinDialog {...data.props} />,
50
+ filter: AppSurface.component<ComponentProps<typeof JoinDialog>>(AppSurface.Dialog, JOIN_DIALOG),
51
+ component: ({ data }) => <JoinDialog {...data.props} />,
56
52
  }),
57
53
  Surface.create({
58
54
  id: RECOVERY_CODE_DIALOG,
59
- role: 'dialog',
60
- filter: AppSurface.componentDialog(RECOVERY_CODE_DIALOG),
61
- component: ({ data }: { data: any }) => <RecoveryCodeDialog {...data.props} />,
55
+ filter: AppSurface.component<ComponentProps<typeof RecoveryCodeDialog>>(
56
+ AppSurface.Dialog,
57
+ RECOVERY_CODE_DIALOG,
58
+ ),
59
+ component: ({ data }) => <RecoveryCodeDialog {...data.props} />,
62
60
  }),
63
61
  Surface.create({
64
62
  id: RESET_DIALOG,
65
- role: 'dialog',
66
- filter: AppSurface.componentDialog(RESET_DIALOG),
67
- component: ({ data }: { data: any }) => (
63
+ filter: AppSurface.component<Pick<ComponentProps<typeof ResetDialog>, 'mode'>>(AppSurface.Dialog, RESET_DIALOG),
64
+ component: ({ data }) => (
68
65
  <ResetDialog {...data.props} onReset={onReset} capabilityManager={capabilityManager} />
69
66
  ),
70
67
  }),
@@ -6,7 +6,8 @@ import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
8
  import { AppCapabilities } from '@dxos/app-toolkit';
9
- import { type Type } from '@dxos/echo';
9
+ import { Type } from '@dxos/echo';
10
+ import { log } from '@dxos/log';
10
11
 
11
12
  import { ClientCapabilities } from '#types';
12
13
 
@@ -17,16 +18,35 @@ export default Capability.makeModule(
17
18
  const schemasAtom = yield* Capability.atom(AppCapabilities.Schema);
18
19
 
19
20
  // TODO(wittjosiah): Unregister schemas when they are disabled.
20
- let previous: Type.AnyEntity[] = [];
21
+ let previousDxns = new Set<string>();
21
22
  const cancel = registry.subscribe(
22
23
  schemasAtom,
23
- async (_schemas: any[]) => {
24
- // TODO(wittjosiah): This doesn't seem to de-dupe schemas as expected.
25
- const schemas = Array.from(new Set(_schemas.flat())) as Type.AnyEntity[];
26
- // TODO(wittjosiah): Filter out schemas which the client has already registered.
27
- const newSchemas = schemas.filter((schema) => !previous.includes(schema));
28
- previous = schemas;
29
- await client.addTypes(newSchemas);
24
+ async (schemas) => {
25
+ const seenSchemaDxns = new Set<string>();
26
+ const batch: { schema: Type.AnyEntity; dxnKey: string }[] = [];
27
+ for (const schema of schemas.flat()) {
28
+ const dxn = Type.getDXN(schema);
29
+ if (!dxn) {
30
+ log.warn('skipping schema without dxn');
31
+ continue;
32
+ }
33
+
34
+ const key = dxn.toString();
35
+ if (seenSchemaDxns.has(key)) {
36
+ log.warn('skipping duplicate schema for echo registration', { dxn: key });
37
+ continue;
38
+ }
39
+
40
+ seenSchemaDxns.add(key);
41
+ batch.push({ schema, dxnKey: key });
42
+ }
43
+
44
+ const toRegister = batch.filter(({ dxnKey }) => !previousDxns.has(dxnKey));
45
+
46
+ await client.addTypes(toRegister.map(({ schema }) => schema));
47
+ for (const { dxnKey } of toRegister) {
48
+ previousDxns.add(dxnKey);
49
+ }
30
50
  },
31
51
  { immediate: true },
32
52
  );
@@ -12,12 +12,17 @@ import { fromPlugins } from '@dxos/app-framework/testing';
12
12
  import { TestConsole, TestLayer } from '@dxos/cli-util/testing';
13
13
  import { ClientService } from '@dxos/client';
14
14
  import { runAndForwardErrors } from '@dxos/effect';
15
- import { ObservabilityPlugin } from '@dxos/plugin-observability/cli';
15
+ import { ObservabilityPlugin } from '@dxos/plugin-observability';
16
+
17
+ import { ClientPlugin } from '#plugin';
16
18
 
17
- import { ClientPlugin } from '../../../plugin';
18
19
  import { handler } from './create';
19
20
 
20
- const layer = Layer.merge(TestLayer, fromPlugins([ClientPlugin({}), OperationPlugin(), ObservabilityPlugin()]));
21
+ // TODO(wittjosiah): Align browser and node variant option types for ObservabilityPlugin.
22
+ const layer = Layer.merge(
23
+ TestLayer,
24
+ fromPlugins([ClientPlugin({}), OperationPlugin(), ObservabilityPlugin({} as any)]),
25
+ );
21
26
 
22
27
  // TODO(wittjosiah): Fix these tests.
23
28
  describe.skip('halo create', () => {
@@ -9,6 +9,7 @@ import * as Effect from 'effect/Effect';
9
9
  import * as Option from 'effect/Option';
10
10
 
11
11
  import { Capabilities, Plugin } from '@dxos/app-framework';
12
+ import { PERSONAL_SPACE_TAG } from '@dxos/app-toolkit';
12
13
  import { CommandConfig, flushAndSync, spaceLayer } from '@dxos/cli-util';
13
14
  import { print } from '@dxos/cli-util';
14
15
  import { ClientService } from '@dxos/client';
@@ -43,13 +44,11 @@ export const handler = Effect.fn(function* ({
43
44
  }
44
45
 
45
46
  // Create personal space for the CLI identity.
46
- const { PERSONAL_SPACE_TAG, setPersonalSpace } = yield* Effect.tryPromise(() => import('@dxos/app-toolkit'));
47
47
  const space = yield* Effect.promise(() =>
48
48
  client.spaces.create({}, { tags: [PERSONAL_SPACE_TAG], membershipPolicy: MembershipPolicy.LOCKED }),
49
49
  );
50
50
  yield* Effect.promise(() => space.waitUntilReady());
51
51
  yield* Effect.promise(() => space.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED));
52
- setPersonalSpace(space);
53
52
  yield* flushAndSync({ indexes: true }).pipe(Effect.provide(spaceLayer(Option.some(space.id))));
54
53
 
55
54
  if (json) {
@@ -11,9 +11,9 @@ import { withLayout, withTheme } from '@dxos/react-ui/testing';
11
11
  import { translations as shellTranslations } from '@dxos/shell/react';
12
12
 
13
13
  import { initializeIdentity } from '#testing';
14
+ import { translations } from '#translations';
14
15
 
15
16
  import { ClientPlugin } from '../../ClientPlugin';
16
- import { translations } from '../../translations';
17
17
  import { DevicesContainer } from './DevicesContainer';
18
18
 
19
19
  const meta = {
@@ -9,8 +9,9 @@ import { withPluginManager } from '@dxos/app-framework/testing';
9
9
  import { corePlugins } from '@dxos/plugin-testing';
10
10
  import { Dialog } from '@dxos/react-ui';
11
11
 
12
+ import { translations } from '#translations';
13
+
12
14
  import { ClientPlugin } from '../../ClientPlugin';
13
- import { translations } from '../../translations';
14
15
  import { JoinDialog } from './JoinDialog';
15
16
 
16
17
  const DefaultStory = () => (
@@ -7,7 +7,8 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
7
7
  import { withClientProvider } from '@dxos/react-client/testing';
8
8
  import { withLayout, withTheme } from '@dxos/react-ui/testing';
9
9
 
10
- import { translations } from '../../translations';
10
+ import { translations } from '#translations';
11
+
11
12
  import { ProfileContainer } from './ProfileContainer';
12
13
 
13
14
  const meta = {
@@ -10,7 +10,8 @@ import { withClientProvider } from '@dxos/react-client/testing';
10
10
  import { AlertDialog, useAsyncEffect } from '@dxos/react-ui';
11
11
  import { withLayout, withTheme } from '@dxos/react-ui/testing';
12
12
 
13
- import { translations } from '../../translations';
13
+ import { translations } from '#translations';
14
+
14
15
  import { RecoveryCodeDialog } from './RecoveryCodeDialog';
15
16
 
16
17
  const DefaultStory = () => {
@@ -10,9 +10,9 @@ import { withPluginManager } from '@dxos/app-framework/testing';
10
10
  import { withLayout, withTheme } from '@dxos/react-ui/testing';
11
11
 
12
12
  import { initializeIdentity } from '#testing';
13
+ import { translations } from '#translations';
13
14
 
14
15
  import { ClientPlugin } from '../../ClientPlugin';
15
- import { translations } from '../../translations';
16
16
  import { RecoveryCredentialsContainer } from './RecoveryCredentialsContainer';
17
17
 
18
18
  const meta = {
@@ -12,8 +12,9 @@ import { usePluginManager } from '@dxos/app-framework/ui';
12
12
  import { Dialog } from '@dxos/react-ui';
13
13
  import { withLayout, withTheme } from '@dxos/react-ui/testing';
14
14
 
15
+ import { translations } from '#translations';
16
+
15
17
  import { ClientPlugin } from '../../ClientPlugin';
16
- import { translations } from '../../translations';
17
18
  import { ResetDialog, type ResetDialogProps } from './ResetDialog';
18
19
 
19
20
  const DefaultStory = (props: Omit<ResetDialogProps, 'capabilityManager'>) => {
package/src/index.ts CHANGED
@@ -2,5 +2,9 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- export { ClientPlugin } from './ClientPlugin';
5
+ import { Plugin } from '@dxos/app-framework';
6
+
7
+ import { meta } from './meta';
8
+
9
+ export const ClientPlugin = Plugin.lazy(meta, () => import('#plugin'));
6
10
  export { meta } from './meta';
@@ -5,8 +5,8 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capability } from '@dxos/app-framework';
8
+ import { Operation } from '@dxos/compute';
8
9
  import { invariant } from '@dxos/invariant';
9
- import { Operation } from '@dxos/operation';
10
10
 
11
11
  import { ClientCapabilities } from '../types';
12
12
  import { CreateAgent } from './definitions';
@@ -5,8 +5,8 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capabilities, Capability } from '@dxos/app-framework';
8
+ import { Operation } from '@dxos/compute';
8
9
  import { runAndForwardErrors } from '@dxos/effect';
9
- import { Operation } from '@dxos/operation';
10
10
  import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
11
11
 
12
12
  import { ClientEvents } from '../types';
@@ -8,8 +8,8 @@ import * as Match from 'effect/Match';
8
8
  import { Capability } from '@dxos/app-framework';
9
9
  import { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from '@dxos/app-toolkit';
10
10
  import { PublicKey } from '@dxos/client';
11
+ import { Operation } from '@dxos/compute';
11
12
  import { invariant } from '@dxos/invariant';
12
- import { Operation } from '@dxos/operation';
13
13
 
14
14
  import { ClientCapabilities } from '../types';
15
15
  import { CreatePasskey } from './definitions';
@@ -6,8 +6,8 @@ import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { Capability } from '@dxos/app-framework';
8
8
  import { LayoutOperation } from '@dxos/app-toolkit';
9
+ import { Operation } from '@dxos/compute';
9
10
  import { invariant } from '@dxos/invariant';
10
- import { Operation } from '@dxos/operation';
11
11
 
12
12
  import { RECOVERY_CODE_DIALOG } from '../constants';
13
13
  import { ClientCapabilities } from '../types';
@@ -6,7 +6,7 @@ import * as Schema from 'effect/Schema';
6
6
 
7
7
  import { Capability } from '@dxos/app-framework';
8
8
  import { PublicKey } from '@dxos/client';
9
- import { Operation } from '@dxos/operation';
9
+ import { Operation } from '@dxos/compute';
10
10
 
11
11
  import { meta } from '#meta';
12
12
 
@@ -2,7 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- import { OperationHandlerSet } from '@dxos/operation';
5
+ import { OperationHandlerSet } from '@dxos/compute';
6
6
 
7
7
  export * as ClientOperation from './definitions';
8
8
 
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
 
10
10
  import { JOIN_DIALOG } from '../constants';
11
11
  import { JoinIdentity } from './definitions';
@@ -5,7 +5,7 @@
5
5
  import * as Effect from 'effect/Effect';
6
6
 
7
7
  import { LayoutOperation } from '@dxos/app-toolkit';
8
- import { Operation } from '@dxos/operation';
8
+ import { Operation } from '@dxos/compute';
9
9
  import { type JoinPanelProps } from '@dxos/shell/react';
10
10
 
11
11
  import { JOIN_DIALOG } from '../constants';