@dxos/plugin-client 0.8.4-main.72ec0f3 → 0.8.4-main.7996785055

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 (575) hide show
  1. package/dist/lib/browser/DevicesContainer-6AMXWDQC.mjs +270 -0
  2. package/dist/lib/browser/DevicesContainer-6AMXWDQC.mjs.map +7 -0
  3. package/dist/lib/browser/JoinDialog-V6E5PRDR.mjs +61 -0
  4. package/dist/lib/browser/JoinDialog-V6E5PRDR.mjs.map +7 -0
  5. package/dist/lib/browser/ProfileContainer-NY67SRMY.mjs +172 -0
  6. package/dist/lib/browser/ProfileContainer-NY67SRMY.mjs.map +7 -0
  7. package/dist/lib/browser/RecoveryCodeDialog-EI2PAJSC.mjs +61 -0
  8. package/dist/lib/browser/RecoveryCodeDialog-EI2PAJSC.mjs.map +7 -0
  9. package/dist/lib/browser/RecoveryCredentialsContainer-EY7S2Z5D.mjs +59 -0
  10. package/dist/lib/browser/RecoveryCredentialsContainer-EY7S2Z5D.mjs.map +7 -0
  11. package/dist/lib/browser/ResetDialog-IG33IDFF.mjs +54 -0
  12. package/dist/lib/browser/ResetDialog-IG33IDFF.mjs.map +7 -0
  13. package/dist/lib/browser/app-graph-builder-VALIFJHW.mjs +125 -0
  14. package/dist/lib/browser/app-graph-builder-VALIFJHW.mjs.map +7 -0
  15. package/dist/lib/browser/chunk-5JMLFUGB.mjs +177 -0
  16. package/dist/lib/browser/chunk-5JMLFUGB.mjs.map +7 -0
  17. package/dist/lib/browser/{chunk-RDIG75CA.mjs → chunk-AYDQURY2.mjs} +35 -13
  18. package/dist/lib/browser/chunk-AYDQURY2.mjs.map +7 -0
  19. package/dist/lib/browser/chunk-C2DNTTWV.mjs +18 -0
  20. package/dist/lib/browser/chunk-C2DNTTWV.mjs.map +7 -0
  21. package/dist/lib/browser/chunk-HSFDKP5D.mjs +15 -0
  22. package/dist/lib/browser/chunk-HSFDKP5D.mjs.map +7 -0
  23. package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
  24. package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
  25. package/dist/lib/browser/{chunk-ZRVMXLDR.mjs → chunk-JHSBBOCI.mjs} +2 -2
  26. package/dist/lib/browser/chunk-JHSBBOCI.mjs.map +7 -0
  27. package/dist/lib/browser/chunk-RGQBPDPU.mjs +8 -0
  28. package/dist/lib/browser/chunk-RGQBPDPU.mjs.map +7 -0
  29. package/dist/lib/browser/cli/index.mjs +1071 -0
  30. package/dist/lib/browser/cli/index.mjs.map +7 -0
  31. package/dist/lib/browser/client-ZBVFWBCD.mjs +95 -0
  32. package/dist/lib/browser/client-ZBVFWBCD.mjs.map +7 -0
  33. package/dist/lib/browser/create-agent-RVXHS2OH.mjs +35 -0
  34. package/dist/lib/browser/create-agent-RVXHS2OH.mjs.map +7 -0
  35. package/dist/lib/browser/create-identity-4WNBRKDW.mjs +31 -0
  36. package/dist/lib/browser/create-identity-4WNBRKDW.mjs.map +7 -0
  37. package/dist/lib/browser/create-passkey-2EEPMDV5.mjs +90 -0
  38. package/dist/lib/browser/create-passkey-2EEPMDV5.mjs.map +7 -0
  39. package/dist/lib/browser/create-recovery-code-BPF6HKWF.mjs +45 -0
  40. package/dist/lib/browser/create-recovery-code-BPF6HKWF.mjs.map +7 -0
  41. package/dist/lib/browser/index.mjs +76 -84
  42. package/dist/lib/browser/index.mjs.map +4 -4
  43. package/dist/lib/browser/join-identity-DVJMX65P.mjs +28 -0
  44. package/dist/lib/browser/join-identity-DVJMX65P.mjs.map +7 -0
  45. package/dist/lib/browser/meta.json +1 -1
  46. package/dist/lib/browser/migrations-I3DAEO7O.mjs +26 -0
  47. package/dist/lib/browser/migrations-I3DAEO7O.mjs.map +7 -0
  48. package/dist/lib/browser/operation-handler-C4KCDS7Z.mjs +17 -0
  49. package/dist/lib/browser/operation-handler-C4KCDS7Z.mjs.map +7 -0
  50. package/dist/lib/browser/operations/index.mjs +13 -0
  51. package/dist/lib/browser/operations/index.mjs.map +7 -0
  52. package/dist/lib/browser/react-context-YAEJ65GW.mjs +27 -0
  53. package/dist/lib/browser/react-context-YAEJ65GW.mjs.map +7 -0
  54. package/dist/lib/browser/react-surface-FLUCQMIE.mjs +78 -0
  55. package/dist/lib/browser/react-surface-FLUCQMIE.mjs.map +7 -0
  56. package/dist/lib/browser/recover-identity-74HATOKZ.mjs +27 -0
  57. package/dist/lib/browser/recover-identity-74HATOKZ.mjs.map +7 -0
  58. package/dist/lib/browser/redeem-passkey-FUNL7BVW.mjs +55 -0
  59. package/dist/lib/browser/redeem-passkey-FUNL7BVW.mjs.map +7 -0
  60. package/dist/lib/browser/redeem-token-GIPESPST.mjs +38 -0
  61. package/dist/lib/browser/redeem-token-GIPESPST.mjs.map +7 -0
  62. package/dist/lib/browser/reset-storage-GLHDCVZ4.mjs +27 -0
  63. package/dist/lib/browser/reset-storage-GLHDCVZ4.mjs.map +7 -0
  64. package/dist/lib/browser/schema-defs-VNCHLGPQ.mjs +29 -0
  65. package/dist/lib/browser/schema-defs-VNCHLGPQ.mjs.map +7 -0
  66. package/dist/lib/browser/share-identity-VWFBNFO3.mjs +32 -0
  67. package/dist/lib/browser/share-identity-VWFBNFO3.mjs.map +7 -0
  68. package/dist/lib/browser/testing/index.mjs +22 -0
  69. package/dist/lib/browser/testing/index.mjs.map +7 -0
  70. package/dist/lib/browser/types/index.mjs +9 -4
  71. package/dist/lib/node-esm/DevicesContainer-FCHPW753.mjs +271 -0
  72. package/dist/lib/node-esm/DevicesContainer-FCHPW753.mjs.map +7 -0
  73. package/dist/lib/node-esm/JoinDialog-PQHUAN5Y.mjs +62 -0
  74. package/dist/lib/node-esm/JoinDialog-PQHUAN5Y.mjs.map +7 -0
  75. package/dist/lib/node-esm/ProfileContainer-H24VZJE3.mjs +173 -0
  76. package/dist/lib/node-esm/ProfileContainer-H24VZJE3.mjs.map +7 -0
  77. package/dist/lib/node-esm/RecoveryCodeDialog-PWBHIQ6D.mjs +62 -0
  78. package/dist/lib/node-esm/RecoveryCodeDialog-PWBHIQ6D.mjs.map +7 -0
  79. package/dist/lib/node-esm/RecoveryCredentialsContainer-BLURHMW6.mjs +60 -0
  80. package/dist/lib/node-esm/RecoveryCredentialsContainer-BLURHMW6.mjs.map +7 -0
  81. package/dist/lib/node-esm/ResetDialog-NSALOOOA.mjs +55 -0
  82. package/dist/lib/node-esm/ResetDialog-NSALOOOA.mjs.map +7 -0
  83. package/dist/lib/node-esm/app-graph-builder-44YGDMXN.mjs +126 -0
  84. package/dist/lib/node-esm/app-graph-builder-44YGDMXN.mjs.map +7 -0
  85. package/dist/lib/node-esm/chunk-42EQVH2Q.mjs +10 -0
  86. package/dist/lib/node-esm/chunk-42EQVH2Q.mjs.map +7 -0
  87. package/dist/lib/node-esm/{chunk-VENKFPBC.mjs → chunk-5NENK2KO.mjs} +35 -13
  88. package/dist/lib/node-esm/chunk-5NENK2KO.mjs.map +7 -0
  89. package/dist/lib/node-esm/{chunk-QT3EQXDU.mjs → chunk-BOTJSPCT.mjs} +2 -2
  90. package/dist/lib/node-esm/chunk-BOTJSPCT.mjs.map +7 -0
  91. package/dist/lib/node-esm/chunk-ETBW54NV.mjs +20 -0
  92. package/dist/lib/node-esm/chunk-ETBW54NV.mjs.map +7 -0
  93. package/dist/lib/node-esm/chunk-FU7MBWDD.mjs +178 -0
  94. package/dist/lib/node-esm/chunk-FU7MBWDD.mjs.map +7 -0
  95. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
  96. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
  97. package/dist/lib/node-esm/chunk-VLNCZYIC.mjs +16 -0
  98. package/dist/lib/node-esm/chunk-VLNCZYIC.mjs.map +7 -0
  99. package/dist/lib/node-esm/cli/index.mjs +1072 -0
  100. package/dist/lib/node-esm/cli/index.mjs.map +7 -0
  101. package/dist/lib/node-esm/client-OFM3CBYZ.mjs +96 -0
  102. package/dist/lib/node-esm/client-OFM3CBYZ.mjs.map +7 -0
  103. package/dist/lib/node-esm/create-agent-QIWBTZSQ.mjs +36 -0
  104. package/dist/lib/node-esm/create-agent-QIWBTZSQ.mjs.map +7 -0
  105. package/dist/lib/node-esm/create-identity-P7WDMAE7.mjs +32 -0
  106. package/dist/lib/node-esm/create-identity-P7WDMAE7.mjs.map +7 -0
  107. package/dist/lib/node-esm/create-passkey-77HCW3ES.mjs +91 -0
  108. package/dist/lib/node-esm/create-passkey-77HCW3ES.mjs.map +7 -0
  109. package/dist/lib/node-esm/create-recovery-code-CCDGTSPG.mjs +46 -0
  110. package/dist/lib/node-esm/create-recovery-code-CCDGTSPG.mjs.map +7 -0
  111. package/dist/lib/node-esm/index.mjs +76 -84
  112. package/dist/lib/node-esm/index.mjs.map +4 -4
  113. package/dist/lib/node-esm/join-identity-NOGEP7RA.mjs +29 -0
  114. package/dist/lib/node-esm/join-identity-NOGEP7RA.mjs.map +7 -0
  115. package/dist/lib/node-esm/meta.json +1 -1
  116. package/dist/lib/node-esm/migrations-UXF725OZ.mjs +27 -0
  117. package/dist/lib/node-esm/migrations-UXF725OZ.mjs.map +7 -0
  118. package/dist/lib/node-esm/operation-handler-KC5K4KGW.mjs +18 -0
  119. package/dist/lib/node-esm/operation-handler-KC5K4KGW.mjs.map +7 -0
  120. package/dist/lib/node-esm/operations/index.mjs +14 -0
  121. package/dist/lib/node-esm/operations/index.mjs.map +7 -0
  122. package/dist/lib/node-esm/react-context-QBDHUDWD.mjs +28 -0
  123. package/dist/lib/node-esm/react-context-QBDHUDWD.mjs.map +7 -0
  124. package/dist/lib/node-esm/react-surface-P5WSXPAW.mjs +79 -0
  125. package/dist/lib/node-esm/react-surface-P5WSXPAW.mjs.map +7 -0
  126. package/dist/lib/node-esm/recover-identity-DTFXXLZD.mjs +28 -0
  127. package/dist/lib/node-esm/recover-identity-DTFXXLZD.mjs.map +7 -0
  128. package/dist/lib/node-esm/redeem-passkey-BXNNAV2J.mjs +56 -0
  129. package/dist/lib/node-esm/redeem-passkey-BXNNAV2J.mjs.map +7 -0
  130. package/dist/lib/node-esm/redeem-token-XBW7OPDA.mjs +39 -0
  131. package/dist/lib/node-esm/redeem-token-XBW7OPDA.mjs.map +7 -0
  132. package/dist/lib/node-esm/reset-storage-SXIZA4DV.mjs +28 -0
  133. package/dist/lib/node-esm/reset-storage-SXIZA4DV.mjs.map +7 -0
  134. package/dist/lib/node-esm/schema-defs-2UZZD4Q4.mjs +30 -0
  135. package/dist/lib/node-esm/schema-defs-2UZZD4Q4.mjs.map +7 -0
  136. package/dist/lib/node-esm/share-identity-TEHV6CZC.mjs +33 -0
  137. package/dist/lib/node-esm/share-identity-TEHV6CZC.mjs.map +7 -0
  138. package/dist/lib/node-esm/testing/index.mjs +23 -0
  139. package/dist/lib/node-esm/testing/index.mjs.map +7 -0
  140. package/dist/lib/node-esm/types/index.mjs +9 -4
  141. package/dist/types/src/ClientPlugin.d.ts +2 -1
  142. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  143. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
  144. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
  146. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/client/client.d.ts +8 -0
  148. package/dist/types/src/capabilities/client/client.d.ts.map +1 -0
  149. package/dist/types/src/capabilities/client/index.d.ts +18 -0
  150. package/dist/types/src/capabilities/client/index.d.ts.map +1 -0
  151. package/dist/types/src/capabilities/index.d.ts +7 -19
  152. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  153. package/dist/types/src/capabilities/migrations/index.d.ts +3 -0
  154. package/dist/types/src/capabilities/migrations/index.d.ts.map +1 -0
  155. package/dist/types/src/capabilities/migrations/migrations.d.ts +5 -0
  156. package/dist/types/src/capabilities/migrations/migrations.d.ts.map +1 -0
  157. package/dist/types/src/capabilities/operation-handler/index.d.ts +4 -0
  158. package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
  159. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +6 -0
  160. package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts.map +1 -0
  161. package/dist/types/src/capabilities/react-context/index.d.ts +7 -0
  162. package/dist/types/src/capabilities/react-context/index.d.ts.map +1 -0
  163. package/dist/types/src/capabilities/react-context/react-context.d.ts +10 -0
  164. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +1 -0
  165. package/dist/types/src/capabilities/react-surface/index.d.ts +5 -0
  166. package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
  167. package/dist/types/src/capabilities/react-surface/react-surface.d.ts +9 -0
  168. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
  169. package/dist/types/src/capabilities/schema-defs/index.d.ts +3 -0
  170. package/dist/types/src/capabilities/schema-defs/index.d.ts.map +1 -0
  171. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts +5 -0
  172. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +1 -0
  173. package/dist/types/src/cli/commands/config/index.d.ts +5 -0
  174. package/dist/types/src/cli/commands/config/index.d.ts.map +1 -0
  175. package/dist/types/src/cli/commands/config/view.d.ts +5 -0
  176. package/dist/types/src/cli/commands/config/view.d.ts.map +1 -0
  177. package/dist/types/src/cli/commands/device/index.d.ts +7 -0
  178. package/dist/types/src/cli/commands/device/index.d.ts.map +1 -0
  179. package/dist/types/src/cli/commands/device/info/index.d.ts +2 -0
  180. package/dist/types/src/cli/commands/device/info/index.d.ts.map +1 -0
  181. package/dist/types/src/cli/commands/device/info/info.d.ts +7 -0
  182. package/dist/types/src/cli/commands/device/info/info.d.ts.map +1 -0
  183. package/dist/types/src/cli/commands/device/info/info.test.d.ts +2 -0
  184. package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +1 -0
  185. package/dist/types/src/cli/commands/device/list/index.d.ts +2 -0
  186. package/dist/types/src/cli/commands/device/list/index.d.ts.map +1 -0
  187. package/dist/types/src/cli/commands/device/list/list.d.ts +7 -0
  188. package/dist/types/src/cli/commands/device/list/list.d.ts.map +1 -0
  189. package/dist/types/src/cli/commands/device/list/list.test.d.ts +2 -0
  190. package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +1 -0
  191. package/dist/types/src/cli/commands/device/update/index.d.ts +2 -0
  192. package/dist/types/src/cli/commands/device/update/index.d.ts.map +1 -0
  193. package/dist/types/src/cli/commands/device/update/update.d.ts +11 -0
  194. package/dist/types/src/cli/commands/device/update/update.d.ts.map +1 -0
  195. package/dist/types/src/cli/commands/device/util.d.ts +16 -0
  196. package/dist/types/src/cli/commands/device/util.d.ts.map +1 -0
  197. package/dist/types/src/cli/commands/edge/index.d.ts +5 -0
  198. package/dist/types/src/cli/commands/edge/index.d.ts.map +1 -0
  199. package/dist/types/src/cli/commands/edge/status.d.ts +7 -0
  200. package/dist/types/src/cli/commands/edge/status.d.ts.map +1 -0
  201. package/dist/types/src/cli/commands/halo/create/create.d.ts +15 -0
  202. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +1 -0
  203. package/dist/types/src/cli/commands/halo/create/create.test.d.ts +2 -0
  204. package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +1 -0
  205. package/dist/types/src/cli/commands/halo/create/index.d.ts +2 -0
  206. package/dist/types/src/cli/commands/halo/create/index.d.ts.map +1 -0
  207. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts +13 -0
  208. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +1 -0
  209. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts +2 -0
  210. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +1 -0
  211. package/dist/types/src/cli/commands/halo/credential/index.d.ts +12 -0
  212. package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +1 -0
  213. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts +2 -0
  214. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +1 -0
  215. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts +19 -0
  216. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +1 -0
  217. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts +2 -0
  218. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +1 -0
  219. package/dist/types/src/cli/commands/halo/identity/identity.d.ts +7 -0
  220. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +1 -0
  221. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts +2 -0
  222. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +1 -0
  223. package/dist/types/src/cli/commands/halo/identity/index.d.ts +2 -0
  224. package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +1 -0
  225. package/dist/types/src/cli/commands/halo/index.d.ts +3 -0
  226. package/dist/types/src/cli/commands/halo/index.d.ts.map +1 -0
  227. package/dist/types/src/cli/commands/halo/join/index.d.ts +2 -0
  228. package/dist/types/src/cli/commands/halo/join/index.d.ts.map +1 -0
  229. package/dist/types/src/cli/commands/halo/join/join.d.ts +8 -0
  230. package/dist/types/src/cli/commands/halo/join/join.d.ts.map +1 -0
  231. package/dist/types/src/cli/commands/halo/join/join.test.d.ts +2 -0
  232. package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +1 -0
  233. package/dist/types/src/cli/commands/halo/keys/index.d.ts +2 -0
  234. package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +1 -0
  235. package/dist/types/src/cli/commands/halo/keys/keys.d.ts +7 -0
  236. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +1 -0
  237. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts +2 -0
  238. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +1 -0
  239. package/dist/types/src/cli/commands/halo/recover/index.d.ts +2 -0
  240. package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +1 -0
  241. package/dist/types/src/cli/commands/halo/recover/recover.d.ts +7 -0
  242. package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +1 -0
  243. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts +2 -0
  244. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +1 -0
  245. package/dist/types/src/cli/commands/halo/seed/index.d.ts +2 -0
  246. package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +1 -0
  247. package/dist/types/src/cli/commands/halo/seed/seed.d.ts +7 -0
  248. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +1 -0
  249. package/dist/types/src/cli/commands/halo/share/index.d.ts +2 -0
  250. package/dist/types/src/cli/commands/halo/share/index.d.ts.map +1 -0
  251. package/dist/types/src/cli/commands/halo/share/share.d.ts +15 -0
  252. package/dist/types/src/cli/commands/halo/share/share.d.ts.map +1 -0
  253. package/dist/types/src/cli/commands/halo/update/index.d.ts +2 -0
  254. package/dist/types/src/cli/commands/halo/update/index.d.ts.map +1 -0
  255. package/dist/types/src/cli/commands/halo/update/update.d.ts +11 -0
  256. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +1 -0
  257. package/dist/types/src/cli/commands/halo/update/update.test.d.ts +2 -0
  258. package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +1 -0
  259. package/dist/types/src/cli/commands/halo/util.d.ts +13 -0
  260. package/dist/types/src/cli/commands/halo/util.d.ts.map +1 -0
  261. package/dist/types/src/cli/commands/index.d.ts +6 -0
  262. package/dist/types/src/cli/commands/index.d.ts.map +1 -0
  263. package/dist/types/src/cli/commands/profile/create.d.ts +10 -0
  264. package/dist/types/src/cli/commands/profile/create.d.ts.map +1 -0
  265. package/dist/types/src/cli/commands/profile/delete.d.ts +8 -0
  266. package/dist/types/src/cli/commands/profile/delete.d.ts.map +1 -0
  267. package/dist/types/src/cli/commands/profile/import.d.ts +17 -0
  268. package/dist/types/src/cli/commands/profile/import.d.ts.map +1 -0
  269. package/dist/types/src/cli/commands/profile/index.d.ts +19 -0
  270. package/dist/types/src/cli/commands/profile/index.d.ts.map +1 -0
  271. package/dist/types/src/cli/commands/profile/inspect.d.ts +13 -0
  272. package/dist/types/src/cli/commands/profile/inspect.d.ts.map +1 -0
  273. package/dist/types/src/cli/commands/profile/list.d.ts +6 -0
  274. package/dist/types/src/cli/commands/profile/list.d.ts.map +1 -0
  275. package/dist/types/src/cli/commands/profile/reset.d.ts +8 -0
  276. package/dist/types/src/cli/commands/profile/reset.d.ts.map +1 -0
  277. package/dist/types/src/cli/commands/profile/util.d.ts +24 -0
  278. package/dist/types/src/cli/commands/profile/util.d.ts.map +1 -0
  279. package/dist/types/src/cli/index.d.ts +2 -0
  280. package/dist/types/src/cli/index.d.ts.map +1 -0
  281. package/dist/types/src/cli/plugin.d.ts +4 -0
  282. package/dist/types/src/cli/plugin.d.ts.map +1 -0
  283. package/dist/types/src/cli/testing/test-console.d.ts +37 -0
  284. package/dist/types/src/cli/testing/test-console.d.ts.map +1 -0
  285. package/dist/types/src/components/index.d.ts +0 -6
  286. package/dist/types/src/components/index.d.ts.map +1 -1
  287. package/dist/types/src/constants.d.ts +4 -0
  288. package/dist/types/src/constants.d.ts.map +1 -0
  289. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -0
  290. package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.stories.d.ts +10 -54
  291. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -0
  292. package/dist/types/src/containers/DevicesContainer/index.d.ts +3 -0
  293. package/dist/types/src/containers/DevicesContainer/index.d.ts.map +1 -0
  294. package/dist/types/src/{components → containers/JoinDialog}/JoinDialog.d.ts +0 -1
  295. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -0
  296. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +15 -0
  297. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -0
  298. package/dist/types/src/containers/JoinDialog/index.d.ts +3 -0
  299. package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -0
  300. package/dist/types/src/containers/ProfileContainer/ProfileContainer.d.ts.map +1 -0
  301. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts +14 -0
  302. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -0
  303. package/dist/types/src/containers/ProfileContainer/index.d.ts +3 -0
  304. package/dist/types/src/containers/ProfileContainer/index.d.ts.map +1 -0
  305. package/dist/types/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.d.ts +0 -1
  306. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -0
  307. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts +16 -0
  308. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -0
  309. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts +4 -0
  310. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -0
  311. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -0
  312. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts +14 -0
  313. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -0
  314. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts +3 -0
  315. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts.map +1 -0
  316. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts +9 -0
  317. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -0
  318. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +19 -0
  319. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -0
  320. package/dist/types/src/containers/ResetDialog/index.d.ts +4 -0
  321. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -0
  322. package/dist/types/src/containers/index.d.ts +10 -0
  323. package/dist/types/src/containers/index.d.ts.map +1 -0
  324. package/dist/types/src/index.d.ts +1 -2
  325. package/dist/types/src/index.d.ts.map +1 -1
  326. package/dist/types/src/meta.d.ts +2 -2
  327. package/dist/types/src/meta.d.ts.map +1 -1
  328. package/dist/types/src/operations/create-agent.d.ts +5 -0
  329. package/dist/types/src/operations/create-agent.d.ts.map +1 -0
  330. package/dist/types/src/operations/create-identity.d.ts +5 -0
  331. package/dist/types/src/operations/create-identity.d.ts.map +1 -0
  332. package/dist/types/src/operations/create-passkey.d.ts +5 -0
  333. package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
  334. package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
  335. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
  336. package/dist/types/src/operations/definitions.d.ts +36 -0
  337. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  338. package/dist/types/src/operations/index.d.ts +4 -0
  339. package/dist/types/src/operations/index.d.ts.map +1 -0
  340. package/dist/types/src/operations/join-identity.d.ts +5 -0
  341. package/dist/types/src/operations/join-identity.d.ts.map +1 -0
  342. package/dist/types/src/operations/recover-identity.d.ts +5 -0
  343. package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
  344. package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
  345. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
  346. package/dist/types/src/operations/redeem-token.d.ts +5 -0
  347. package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
  348. package/dist/types/src/operations/reset-storage.d.ts +5 -0
  349. package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
  350. package/dist/types/src/operations/share-identity.d.ts +5 -0
  351. package/dist/types/src/operations/share-identity.d.ts.map +1 -0
  352. package/dist/types/src/testing/index.d.ts +2 -0
  353. package/dist/types/src/testing/index.d.ts.map +1 -0
  354. package/dist/types/src/testing/initializeIdentity.d.ts +13 -0
  355. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
  356. package/dist/types/src/translations.d.ts +2 -48
  357. package/dist/types/src/translations.d.ts.map +1 -1
  358. package/dist/types/src/types/capabilities.d.ts +10 -0
  359. package/dist/types/src/types/capabilities.d.ts.map +1 -0
  360. package/dist/types/src/types/events.d.ts +9 -0
  361. package/dist/types/src/types/events.d.ts.map +1 -0
  362. package/dist/types/src/types/index.d.ts +2 -0
  363. package/dist/types/src/types/index.d.ts.map +1 -1
  364. package/dist/types/src/types/schema.d.ts +36 -31
  365. package/dist/types/src/types/schema.d.ts.map +1 -1
  366. package/dist/types/tsconfig.tsbuildinfo +1 -1
  367. package/package.json +74 -38
  368. package/src/ClientPlugin.ts +45 -55
  369. package/src/capabilities/app-graph-builder/app-graph-builder.ts +97 -0
  370. package/src/capabilities/app-graph-builder/index.ts +7 -0
  371. package/src/capabilities/client/client.ts +79 -0
  372. package/src/capabilities/client/index.ts +7 -0
  373. package/src/capabilities/index.ts +7 -11
  374. package/src/capabilities/migrations/index.ts +7 -0
  375. package/src/capabilities/migrations/migrations.ts +30 -0
  376. package/src/capabilities/operation-handler/index.ts +11 -0
  377. package/src/capabilities/operation-handler/operation-handler.ts +16 -0
  378. package/src/capabilities/react-context/index.ts +7 -0
  379. package/src/capabilities/react-context/react-context.tsx +25 -0
  380. package/src/capabilities/react-surface/index.ts +7 -0
  381. package/src/capabilities/react-surface/react-surface.tsx +74 -0
  382. package/src/capabilities/schema-defs/index.ts +7 -0
  383. package/src/capabilities/schema-defs/schema-defs.ts +36 -0
  384. package/src/cli/commands/config/index.ts +12 -0
  385. package/src/cli/commands/config/view.ts +29 -0
  386. package/src/cli/commands/device/index.ts +14 -0
  387. package/src/cli/commands/device/info/index.ts +5 -0
  388. package/src/cli/commands/device/info/info.test.ts +28 -0
  389. package/src/cli/commands/device/info/info.ts +48 -0
  390. package/src/cli/commands/device/list/index.ts +5 -0
  391. package/src/cli/commands/device/list/list.test.ts +30 -0
  392. package/src/cli/commands/device/list/list.ts +28 -0
  393. package/src/cli/commands/device/update/index.ts +5 -0
  394. package/src/cli/commands/device/update/update.ts +68 -0
  395. package/src/cli/commands/device/util.ts +55 -0
  396. package/src/cli/commands/edge/index.ts +12 -0
  397. package/src/cli/commands/edge/status.ts +46 -0
  398. package/src/cli/commands/halo/create/create.test.ts +52 -0
  399. package/src/cli/commands/halo/create/create.ts +82 -0
  400. package/src/cli/commands/halo/create/index.ts +5 -0
  401. package/src/cli/commands/halo/credential/add/add.ts +97 -0
  402. package/src/cli/commands/halo/credential/add/index.ts +5 -0
  403. package/src/cli/commands/halo/credential/index.ts +13 -0
  404. package/src/cli/commands/halo/credential/list/index.ts +5 -0
  405. package/src/cli/commands/halo/credential/list/list.test.ts +27 -0
  406. package/src/cli/commands/halo/credential/list/list.ts +115 -0
  407. package/src/cli/commands/halo/identity/identity.test.ts +40 -0
  408. package/src/cli/commands/halo/identity/identity.ts +45 -0
  409. package/src/cli/commands/halo/identity/index.ts +5 -0
  410. package/src/cli/commands/halo/index.ts +21 -0
  411. package/src/cli/commands/halo/join/index.ts +5 -0
  412. package/src/cli/commands/halo/join/join.test.ts +10 -0
  413. package/src/cli/commands/halo/join/join.ts +87 -0
  414. package/src/cli/commands/halo/keys/index.ts +5 -0
  415. package/src/cli/commands/halo/keys/keys.test.ts +29 -0
  416. package/src/cli/commands/halo/keys/keys.ts +40 -0
  417. package/src/cli/commands/halo/recover/index.ts +5 -0
  418. package/src/cli/commands/halo/recover/recover.test.ts +10 -0
  419. package/src/cli/commands/halo/recover/recover.ts +44 -0
  420. package/src/cli/commands/halo/seed/index.ts +5 -0
  421. package/src/cli/commands/halo/seed/seed.ts +36 -0
  422. package/src/cli/commands/halo/share/index.ts +5 -0
  423. package/src/cli/commands/halo/share/share.ts +97 -0
  424. package/src/cli/commands/halo/update/index.ts +5 -0
  425. package/src/cli/commands/halo/update/update.test.ts +28 -0
  426. package/src/cli/commands/halo/update/update.ts +67 -0
  427. package/src/cli/commands/halo/util.ts +18 -0
  428. package/src/cli/commands/index.ts +9 -0
  429. package/src/cli/commands/profile/create.ts +90 -0
  430. package/src/cli/commands/profile/delete.ts +36 -0
  431. package/src/cli/commands/profile/import.ts +101 -0
  432. package/src/cli/commands/profile/index.ts +17 -0
  433. package/src/cli/commands/profile/inspect.ts +64 -0
  434. package/src/cli/commands/profile/list.ts +55 -0
  435. package/src/cli/commands/profile/reset.ts +45 -0
  436. package/src/cli/commands/profile/util.ts +48 -0
  437. package/src/cli/index.ts +5 -0
  438. package/src/cli/plugin.ts +34 -0
  439. package/src/cli/testing/test-console.ts +88 -0
  440. package/src/components/index.ts +0 -7
  441. package/src/constants.ts +9 -0
  442. package/src/{components → containers/DevicesContainer}/DevicesContainer.stories.tsx +15 -10
  443. package/src/{components → containers/DevicesContainer}/DevicesContainer.tsx +60 -66
  444. package/src/containers/DevicesContainer/index.ts +7 -0
  445. package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
  446. package/src/containers/JoinDialog/JoinDialog.tsx +56 -0
  447. package/src/containers/JoinDialog/index.ts +7 -0
  448. package/src/{components → containers/ProfileContainer}/ProfileContainer.stories.tsx +4 -4
  449. package/src/{components → containers/ProfileContainer}/ProfileContainer.tsx +65 -54
  450. package/src/containers/ProfileContainer/index.ts +7 -0
  451. package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.stories.tsx +4 -4
  452. package/src/{components → containers/RecoveryCodeDialog}/RecoveryCodeDialog.tsx +28 -27
  453. package/src/containers/RecoveryCodeDialog/index.ts +8 -0
  454. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +47 -0
  455. package/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.tsx +22 -23
  456. package/src/containers/RecoveryCredentialsContainer/index.ts +7 -0
  457. package/src/containers/ResetDialog/ResetDialog.stories.tsx +73 -0
  458. package/src/containers/ResetDialog/ResetDialog.tsx +50 -0
  459. package/src/containers/ResetDialog/index.ts +8 -0
  460. package/src/containers/index.ts +15 -0
  461. package/src/index.ts +1 -2
  462. package/src/meta.ts +3 -3
  463. package/src/operations/create-agent.ts +27 -0
  464. package/src/operations/create-identity.ts +30 -0
  465. package/src/operations/create-passkey.ts +64 -0
  466. package/src/operations/create-recovery-code.ts +35 -0
  467. package/src/operations/definitions.ts +107 -0
  468. package/src/operations/index.ts +20 -0
  469. package/src/operations/join-identity.ts +29 -0
  470. package/src/operations/recover-identity.ts +29 -0
  471. package/src/operations/redeem-passkey.ts +55 -0
  472. package/src/operations/redeem-token.ts +32 -0
  473. package/src/operations/reset-storage.ts +28 -0
  474. package/src/operations/share-identity.ts +27 -0
  475. package/src/testing/index.ts +5 -0
  476. package/src/testing/initializeIdentity.ts +24 -0
  477. package/src/translations.ts +6 -3
  478. package/src/types/capabilities.ts +16 -0
  479. package/src/types/events.ts +15 -0
  480. package/src/types/index.ts +2 -0
  481. package/src/types/schema.ts +27 -19
  482. package/dist/lib/browser/app-graph-builder-ARY4H3VC.mjs +0 -124
  483. package/dist/lib/browser/app-graph-builder-ARY4H3VC.mjs.map +0 -7
  484. package/dist/lib/browser/chunk-4G4YWIUQ.mjs +0 -686
  485. package/dist/lib/browser/chunk-4G4YWIUQ.mjs.map +0 -7
  486. package/dist/lib/browser/chunk-4LRO3Y2O.mjs +0 -19
  487. package/dist/lib/browser/chunk-4LRO3Y2O.mjs.map +0 -7
  488. package/dist/lib/browser/chunk-N5UR2HOE.mjs +0 -18
  489. package/dist/lib/browser/chunk-N5UR2HOE.mjs.map +0 -7
  490. package/dist/lib/browser/chunk-RDIG75CA.mjs.map +0 -7
  491. package/dist/lib/browser/chunk-ZRVMXLDR.mjs.map +0 -7
  492. package/dist/lib/browser/client-O7U3MQ6J.mjs +0 -43
  493. package/dist/lib/browser/client-O7U3MQ6J.mjs.map +0 -7
  494. package/dist/lib/browser/intent-resolver-KLK7PJZK.mjs +0 -305
  495. package/dist/lib/browser/intent-resolver-KLK7PJZK.mjs.map +0 -7
  496. package/dist/lib/browser/migrations-RUAKBBTF.mjs +0 -23
  497. package/dist/lib/browser/migrations-RUAKBBTF.mjs.map +0 -7
  498. package/dist/lib/browser/react-context-PCT5C3BN.mjs +0 -25
  499. package/dist/lib/browser/react-context-PCT5C3BN.mjs.map +0 -7
  500. package/dist/lib/browser/react-surface-RCXEA65V.mjs +0 -66
  501. package/dist/lib/browser/react-surface-RCXEA65V.mjs.map +0 -7
  502. package/dist/lib/browser/schema-defs-UNNBAEFW.mjs +0 -25
  503. package/dist/lib/browser/schema-defs-UNNBAEFW.mjs.map +0 -7
  504. package/dist/lib/node-esm/app-graph-builder-LLM25DRR.mjs +0 -125
  505. package/dist/lib/node-esm/app-graph-builder-LLM25DRR.mjs.map +0 -7
  506. package/dist/lib/node-esm/chunk-6ANOJ7ZM.mjs +0 -19
  507. package/dist/lib/node-esm/chunk-6ANOJ7ZM.mjs.map +0 -7
  508. package/dist/lib/node-esm/chunk-7M7VWQJW.mjs +0 -20
  509. package/dist/lib/node-esm/chunk-7M7VWQJW.mjs.map +0 -7
  510. package/dist/lib/node-esm/chunk-DJ6XKSE4.mjs +0 -687
  511. package/dist/lib/node-esm/chunk-DJ6XKSE4.mjs.map +0 -7
  512. package/dist/lib/node-esm/chunk-QT3EQXDU.mjs.map +0 -7
  513. package/dist/lib/node-esm/chunk-VENKFPBC.mjs.map +0 -7
  514. package/dist/lib/node-esm/client-6MTNT7M6.mjs +0 -44
  515. package/dist/lib/node-esm/client-6MTNT7M6.mjs.map +0 -7
  516. package/dist/lib/node-esm/intent-resolver-YR2C224X.mjs +0 -306
  517. package/dist/lib/node-esm/intent-resolver-YR2C224X.mjs.map +0 -7
  518. package/dist/lib/node-esm/migrations-ASF2SAUR.mjs +0 -24
  519. package/dist/lib/node-esm/migrations-ASF2SAUR.mjs.map +0 -7
  520. package/dist/lib/node-esm/react-context-F4QOBWSP.mjs +0 -26
  521. package/dist/lib/node-esm/react-context-F4QOBWSP.mjs.map +0 -7
  522. package/dist/lib/node-esm/react-surface-SQBRXVMZ.mjs +0 -67
  523. package/dist/lib/node-esm/react-surface-SQBRXVMZ.mjs.map +0 -7
  524. package/dist/lib/node-esm/schema-defs-MSIT2KK2.mjs +0 -26
  525. package/dist/lib/node-esm/schema-defs-MSIT2KK2.mjs.map +0 -7
  526. package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
  527. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
  528. package/dist/types/src/capabilities/capabilities.d.ts +0 -9
  529. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  530. package/dist/types/src/capabilities/client.d.ts +0 -9
  531. package/dist/types/src/capabilities/client.d.ts.map +0 -1
  532. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -8
  533. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  534. package/dist/types/src/capabilities/migrations.d.ts +0 -4
  535. package/dist/types/src/capabilities/migrations.d.ts.map +0 -1
  536. package/dist/types/src/capabilities/react-context.d.ts +0 -8
  537. package/dist/types/src/capabilities/react-context.d.ts.map +0 -1
  538. package/dist/types/src/capabilities/react-surface.d.ts +0 -8
  539. package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
  540. package/dist/types/src/capabilities/schema-defs.d.ts +0 -4
  541. package/dist/types/src/capabilities/schema-defs.d.ts.map +0 -1
  542. package/dist/types/src/components/DevicesContainer.d.ts.map +0 -1
  543. package/dist/types/src/components/DevicesContainer.stories.d.ts.map +0 -1
  544. package/dist/types/src/components/JoinDialog.d.ts.map +0 -1
  545. package/dist/types/src/components/ProfileContainer.d.ts.map +0 -1
  546. package/dist/types/src/components/ProfileContainer.stories.d.ts +0 -60
  547. package/dist/types/src/components/ProfileContainer.stories.d.ts.map +0 -1
  548. package/dist/types/src/components/RecoveryCodeDialog.d.ts.map +0 -1
  549. package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts +0 -62
  550. package/dist/types/src/components/RecoveryCodeDialog.stories.d.ts.map +0 -1
  551. package/dist/types/src/components/RecoveryCredentialsContainer.d.ts.map +0 -1
  552. package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts +0 -60
  553. package/dist/types/src/components/RecoveryCredentialsContainer.stories.d.ts.map +0 -1
  554. package/dist/types/src/components/ResetDialog.d.ts +0 -7
  555. package/dist/types/src/components/ResetDialog.d.ts.map +0 -1
  556. package/dist/types/src/components/ResetDialog.stories.d.ts +0 -65
  557. package/dist/types/src/components/ResetDialog.stories.d.ts.map +0 -1
  558. package/dist/types/src/events.d.ts +0 -8
  559. package/dist/types/src/events.d.ts.map +0 -1
  560. package/src/capabilities/app-graph-builder.ts +0 -115
  561. package/src/capabilities/capabilities.ts +0 -18
  562. package/src/capabilities/client.ts +0 -43
  563. package/src/capabilities/intent-resolver.ts +0 -251
  564. package/src/capabilities/migrations.ts +0 -25
  565. package/src/capabilities/react-context.tsx +0 -22
  566. package/src/capabilities/react-surface.tsx +0 -67
  567. package/src/capabilities/schema-defs.ts +0 -29
  568. package/src/components/JoinDialog.tsx +0 -54
  569. package/src/components/RecoveryCredentialsContainer.stories.tsx +0 -42
  570. package/src/components/ResetDialog.stories.tsx +0 -52
  571. package/src/components/ResetDialog.tsx +0 -50
  572. package/src/events.ts +0 -15
  573. /package/dist/types/src/{components → containers/DevicesContainer}/DevicesContainer.d.ts +0 -0
  574. /package/dist/types/src/{components → containers/ProfileContainer}/ProfileContainer.d.ts +0 -0
  575. /package/dist/types/src/{components → containers/RecoveryCredentialsContainer}/RecoveryCredentialsContainer.d.ts +0 -0
@@ -0,0 +1,27 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { invariant } from '@dxos/invariant';
9
+ import { Operation } from '@dxos/operation';
10
+
11
+ import { CreateAgent } from './definitions';
12
+
13
+ import { ClientCapabilities } from '../types';
14
+
15
+ const handler: Operation.WithHandler<typeof CreateAgent> = CreateAgent.pipe(
16
+ Operation.withHandler(
17
+ Effect.fnUntraced(function* () {
18
+ const client = yield* Capability.get(ClientCapabilities.Client);
19
+ invariant(client.services.services.EdgeAgentService, 'Missing EdgeAgentService');
20
+ yield* Effect.promise(() =>
21
+ client.services.services.EdgeAgentService!.createAgent(undefined, { timeout: 10_000 }),
22
+ );
23
+ }),
24
+ ),
25
+ );
26
+
27
+ export default handler;
@@ -0,0 +1,30 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capabilities, Capability } from '@dxos/app-framework';
8
+ import { runAndForwardErrors } from '@dxos/effect';
9
+ import { Operation } from '@dxos/operation';
10
+ import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
11
+
12
+ import { CreateIdentity } from './definitions';
13
+
14
+ import { ClientEvents } from '../types';
15
+ import { ClientCapabilities } from '../types';
16
+
17
+ const handler: Operation.WithHandler<typeof CreateIdentity> = CreateIdentity.pipe(
18
+ Operation.withHandler(
19
+ Effect.fnUntraced(function* (profile) {
20
+ const manager = yield* Capability.get(Capabilities.PluginManager);
21
+ const client = yield* Capability.get(ClientCapabilities.Client);
22
+ const data = yield* Effect.promise(() => client.halo.createIdentity(profile));
23
+ yield* Effect.promise(() => runAndForwardErrors(manager.activate(ClientEvents.IdentityCreated)));
24
+ yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.create' });
25
+ return data;
26
+ }),
27
+ ),
28
+ );
29
+
30
+ export default handler;
@@ -0,0 +1,64 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { PublicKey } from '@dxos/client';
9
+ import { invariant } from '@dxos/invariant';
10
+ import { Operation } from '@dxos/operation';
11
+
12
+ import { CreatePasskey } from './definitions';
13
+
14
+ import { ClientCapabilities } from '../types';
15
+
16
+ const handler: Operation.WithHandler<typeof CreatePasskey> = CreatePasskey.pipe(
17
+ Operation.withHandler(
18
+ Effect.fnUntraced(function* () {
19
+ const client = yield* Capability.get(ClientCapabilities.Client);
20
+ const identity = client.halo.identity.get();
21
+ invariant(identity, 'Identity not available');
22
+
23
+ const lookupKey = PublicKey.random();
24
+ const credential = yield* Effect.promise(() =>
25
+ navigator.credentials.create({
26
+ publicKey: {
27
+ challenge: new Uint8Array(),
28
+ rp: { id: location.hostname, name: 'Composer' },
29
+ user: {
30
+ id: lookupKey.asUint8Array() as Uint8Array<ArrayBuffer>,
31
+ name: identity.did,
32
+ displayName: identity.profile?.displayName ?? '',
33
+ },
34
+ pubKeyCredParams: [
35
+ { type: 'public-key', alg: -8 },
36
+ { type: 'public-key', alg: -7 },
37
+ ],
38
+ authenticatorSelection: {
39
+ residentKey: 'required',
40
+ requireResidentKey: true,
41
+ },
42
+ },
43
+ }),
44
+ );
45
+
46
+ invariant(credential, 'Credential not available');
47
+ const recoveryKey = PublicKey.from(new Uint8Array((credential as any).response.getPublicKey()));
48
+ const algorithm = (credential as any).response.getPublicKeyAlgorithm() === -7 ? 'ES256' : 'ED25519';
49
+
50
+ invariant(client.services.services.IdentityService, 'IdentityService not available');
51
+ yield* Effect.promise(() =>
52
+ client.services.services.IdentityService!.createRecoveryCredential({
53
+ data: {
54
+ recoveryKey,
55
+ algorithm,
56
+ lookupKey,
57
+ },
58
+ }),
59
+ );
60
+ }),
61
+ ),
62
+ );
63
+
64
+ export default handler;
@@ -0,0 +1,35 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { LayoutOperation } from '@dxos/app-toolkit';
9
+ import { invariant } from '@dxos/invariant';
10
+ import { Operation } from '@dxos/operation';
11
+
12
+ import { CreateRecoveryCode } from './definitions';
13
+
14
+ import { RECOVERY_CODE_DIALOG } from '../constants';
15
+ import { ClientCapabilities } from '../types';
16
+
17
+ const handler: Operation.WithHandler<typeof CreateRecoveryCode> = CreateRecoveryCode.pipe(
18
+ Operation.withHandler(
19
+ Effect.fnUntraced(function* () {
20
+ const client = yield* Capability.get(ClientCapabilities.Client);
21
+ invariant(client.services.services.IdentityService, 'IdentityService not available');
22
+ const { recoveryCode } = yield* Effect.promise(() =>
23
+ client.services.services.IdentityService!.createRecoveryCredential({}),
24
+ );
25
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
26
+ subject: RECOVERY_CODE_DIALOG,
27
+ blockAlign: 'start',
28
+ type: 'alert',
29
+ props: { code: recoveryCode },
30
+ });
31
+ }),
32
+ ),
33
+ );
34
+
35
+ export default handler;
@@ -0,0 +1,107 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Schema from 'effect/Schema';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { PublicKey } from '@dxos/client';
9
+ import { Operation } from '@dxos/operation';
10
+
11
+ import { meta } from '../meta';
12
+
13
+ const CLIENT_OPERATION = `${meta.id}.operation`;
14
+
15
+ const IdentitySchema = Schema.Struct({
16
+ identityKey: Schema.instanceOf(PublicKey),
17
+ spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),
18
+ profile: Schema.optional(
19
+ Schema.Struct({
20
+ displayName: Schema.optional(Schema.String),
21
+ avatarCid: Schema.optional(Schema.String),
22
+ data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
23
+ }),
24
+ ),
25
+ });
26
+
27
+ const ProfileSchema = Schema.Struct({
28
+ displayName: Schema.optional(Schema.String),
29
+ avatarCid: Schema.optional(Schema.String),
30
+ data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),
31
+ });
32
+
33
+ export const CreateIdentity = Operation.make({
34
+ meta: { key: `${CLIENT_OPERATION}.create-identity`, name: 'Create Identity' },
35
+ services: [Capability.Service],
36
+ input: ProfileSchema,
37
+ output: IdentitySchema,
38
+ });
39
+
40
+ export const JoinIdentity = Operation.make({
41
+ meta: { key: `${CLIENT_OPERATION}.join-identity`, name: 'Join Identity' },
42
+ services: [Capability.Service],
43
+ input: Schema.Struct({
44
+ invitationCode: Schema.optional(Schema.String),
45
+ }),
46
+ output: Schema.Void,
47
+ });
48
+
49
+ export const ShareIdentity = Operation.make({
50
+ meta: { key: `${CLIENT_OPERATION}.share-identity`, name: 'Share Identity' },
51
+ services: [Capability.Service],
52
+ input: Schema.Void,
53
+ output: Schema.Void,
54
+ });
55
+
56
+ export const RecoverIdentity = Operation.make({
57
+ meta: { key: `${CLIENT_OPERATION}.recover-identity`, name: 'Recover Identity' },
58
+ services: [Capability.Service],
59
+ input: Schema.Void,
60
+ output: Schema.Void,
61
+ });
62
+
63
+ export const ResetStorage = Operation.make({
64
+ meta: { key: `${CLIENT_OPERATION}.reset-storage`, name: 'Reset Storage' },
65
+ services: [Capability.Service],
66
+ input: Schema.Struct({
67
+ mode: Schema.optional(Schema.String),
68
+ }),
69
+ output: Schema.Void,
70
+ });
71
+
72
+ export const CreateAgent = Operation.make({
73
+ meta: { key: `${CLIENT_OPERATION}.create-agent`, name: 'Create Agent' },
74
+ services: [Capability.Service],
75
+ input: Schema.Void,
76
+ output: Schema.Void,
77
+ });
78
+
79
+ export const CreateRecoveryCode = Operation.make({
80
+ meta: { key: `${CLIENT_OPERATION}.create-recovery-code`, name: 'Create Recovery Code' },
81
+ services: [Capability.Service],
82
+ input: Schema.Void,
83
+ output: Schema.Void,
84
+ });
85
+
86
+ export const CreatePasskey = Operation.make({
87
+ meta: { key: `${CLIENT_OPERATION}.create-passkey`, name: 'Create Passkey' },
88
+ services: [Capability.Service],
89
+ input: Schema.Void,
90
+ output: Schema.Void,
91
+ });
92
+
93
+ export const RedeemPasskey = Operation.make({
94
+ meta: { key: `${CLIENT_OPERATION}.redeem-passkey`, name: 'Redeem Passkey' },
95
+ services: [Capability.Service],
96
+ input: Schema.Void,
97
+ output: Schema.Void,
98
+ });
99
+
100
+ export const RedeemToken = Operation.make({
101
+ meta: { key: `${CLIENT_OPERATION}.redeem-token`, name: 'Redeem Token' },
102
+ services: [Capability.Service],
103
+ input: Schema.Struct({
104
+ token: Schema.String,
105
+ }),
106
+ output: Schema.Void,
107
+ });
@@ -0,0 +1,20 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { OperationHandlerSet } from '@dxos/operation';
6
+
7
+ export * as ClientOperation from './definitions';
8
+
9
+ export const ClientOperationHandlerSet = OperationHandlerSet.lazy(
10
+ () => import('./create-agent'),
11
+ () => import('./create-identity'),
12
+ () => import('./create-passkey'),
13
+ () => import('./create-recovery-code'),
14
+ () => import('./join-identity'),
15
+ () => import('./recover-identity'),
16
+ () => import('./redeem-passkey'),
17
+ () => import('./redeem-token'),
18
+ () => import('./reset-storage'),
19
+ () => import('./share-identity'),
20
+ );
@@ -0,0 +1,29 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { LayoutOperation } from '@dxos/app-toolkit';
8
+ import { Operation } from '@dxos/operation';
9
+
10
+ import { JoinIdentity } from './definitions';
11
+
12
+ import { JOIN_DIALOG } from '../constants';
13
+
14
+ const handler: Operation.WithHandler<typeof JoinIdentity> = JoinIdentity.pipe(
15
+ Operation.withHandler(
16
+ Effect.fnUntraced(function* (data) {
17
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
18
+ subject: JOIN_DIALOG,
19
+ blockAlign: 'start',
20
+ props: {
21
+ initialInvitationCode: data.invitationCode,
22
+ initialDisposition: 'accept-halo-invitation',
23
+ },
24
+ });
25
+ }),
26
+ ),
27
+ );
28
+
29
+ export default handler;
@@ -0,0 +1,29 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { LayoutOperation } from '@dxos/app-toolkit';
8
+ import { Operation } from '@dxos/operation';
9
+ import { type JoinPanelProps } from '@dxos/shell/react';
10
+
11
+ import { RecoverIdentity } from './definitions';
12
+
13
+ import { JOIN_DIALOG } from '../constants';
14
+
15
+ const handler: Operation.WithHandler<typeof RecoverIdentity> = RecoverIdentity.pipe(
16
+ Operation.withHandler(
17
+ Effect.fnUntraced(function* () {
18
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
19
+ subject: JOIN_DIALOG,
20
+ blockAlign: 'start',
21
+ props: {
22
+ initialDisposition: 'recover-identity',
23
+ } satisfies Partial<JoinPanelProps>,
24
+ });
25
+ }),
26
+ ),
27
+ );
28
+
29
+ export default handler;
@@ -0,0 +1,55 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { PublicKey } from '@dxos/client';
9
+ import { invariant } from '@dxos/invariant';
10
+ import { Operation } from '@dxos/operation';
11
+
12
+ import { RedeemPasskey } from './definitions';
13
+
14
+ import { ClientCapabilities } from '../types';
15
+
16
+ const handler: Operation.WithHandler<typeof RedeemPasskey> = RedeemPasskey.pipe(
17
+ Operation.withHandler(
18
+ Effect.fnUntraced(function* () {
19
+ const client = yield* Capability.get(ClientCapabilities.Client);
20
+ invariant(client.services.services.IdentityService, 'IdentityService not available');
21
+ const { deviceKey, controlFeedKey, challenge } = yield* Effect.promise(() =>
22
+ client.services.services.IdentityService!.requestRecoveryChallenge(),
23
+ );
24
+ const credential = yield* Effect.promise(() =>
25
+ navigator.credentials.get({
26
+ publicKey: {
27
+ challenge: Buffer.from(challenge, 'base64'),
28
+ rpId: location.hostname,
29
+ userVerification: 'required',
30
+ },
31
+ }),
32
+ );
33
+ const lookupKey = PublicKey.from(new Uint8Array((credential as any).response.userHandle));
34
+ yield* Effect.promise(() =>
35
+ client.services.services.IdentityService!.recoverIdentity(
36
+ {
37
+ external: {
38
+ lookupKey,
39
+ deviceKey,
40
+ controlFeedKey,
41
+ signature: Buffer.from((credential as any).response.signature),
42
+ clientDataJson: Buffer.from((credential as any).response.clientDataJSON),
43
+ authenticatorData: Buffer.from((credential as any).response.authenticatorData),
44
+ },
45
+ },
46
+ { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },
47
+ ),
48
+ );
49
+ }),
50
+ ),
51
+ );
52
+
53
+ export default handler;
54
+
55
+ const RECOVER_IDENTITY_RPC_TIMEOUT = 20_000;
@@ -0,0 +1,32 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { invariant } from '@dxos/invariant';
9
+ import { Operation } from '@dxos/operation';
10
+
11
+ import { RedeemToken } from './definitions';
12
+
13
+ import { ClientCapabilities } from '../types';
14
+
15
+ const handler: Operation.WithHandler<typeof RedeemToken> = RedeemToken.pipe(
16
+ Operation.withHandler(
17
+ Effect.fnUntraced(function* (data) {
18
+ const client = yield* Capability.get(ClientCapabilities.Client);
19
+ invariant(client.services.services.IdentityService, 'IdentityService not available');
20
+ yield* Effect.promise(() =>
21
+ client.services.services.IdentityService!.recoverIdentity(
22
+ { token: data.token },
23
+ { timeout: RECOVER_IDENTITY_RPC_TIMEOUT },
24
+ ),
25
+ );
26
+ }),
27
+ ),
28
+ );
29
+
30
+ export default handler;
31
+
32
+ const RECOVER_IDENTITY_RPC_TIMEOUT = 20_000;
@@ -0,0 +1,28 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { LayoutOperation } from '@dxos/app-toolkit';
8
+ import { Operation } from '@dxos/operation';
9
+
10
+ import { ResetStorage } from './definitions';
11
+
12
+ import { RESET_DIALOG } from '../constants';
13
+
14
+ const handler: Operation.WithHandler<typeof ResetStorage> = ResetStorage.pipe(
15
+ Operation.withHandler(
16
+ Effect.fnUntraced(function* (data) {
17
+ yield* Operation.invoke(LayoutOperation.UpdateDialog, {
18
+ subject: RESET_DIALOG,
19
+ blockAlign: 'start',
20
+ props: {
21
+ mode: data.mode ?? 'reset storage',
22
+ },
23
+ });
24
+ }),
25
+ ),
26
+ );
27
+
28
+ export default handler;
@@ -0,0 +1,27 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';
8
+ import { Operation } from '@dxos/operation';
9
+ import { ObservabilityOperation } from '@dxos/plugin-observability/operations';
10
+
11
+ import { ShareIdentity } from './definitions';
12
+
13
+ import { Account } from '../types';
14
+
15
+ const handler: Operation.WithHandler<typeof ShareIdentity> = ShareIdentity.pipe(
16
+ Operation.withHandler(
17
+ Effect.fnUntraced(function* () {
18
+ yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(Account.id) });
19
+ yield* Operation.invoke(LayoutOperation.Open, {
20
+ subject: [`${getSpacePath(Account.id)}/${Account.Profile}`],
21
+ });
22
+ yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.share' });
23
+ }),
24
+ ),
25
+ );
26
+
27
+ export default handler;
@@ -0,0 +1,5 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ export { initializeIdentity } from './initializeIdentity';
@@ -0,0 +1,24 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { PERSONAL_SPACE_TAG } from '@dxos/app-toolkit';
8
+ import { type Client } from '@dxos/client';
9
+ import { type Space } from '@dxos/client-protocol';
10
+ import { type Identity } from '@dxos/protocols/proto/dxos/client/services';
11
+
12
+ /**
13
+ * Create an identity and a personal space.
14
+ * Returns the identity and space for further setup.
15
+ */
16
+ export const initializeIdentity = (
17
+ client: Client,
18
+ ): Effect.Effect<{ identity: Identity; personalSpace: Space }, never, never> =>
19
+ Effect.gen(function* () {
20
+ const identity = yield* Effect.promise(() => client.halo.createIdentity());
21
+ const personalSpace = yield* Effect.promise(() => client.spaces.create({}, { tags: [PERSONAL_SPACE_TAG] }));
22
+ yield* Effect.promise(() => personalSpace.waitUntilReady());
23
+ return { identity, personalSpace };
24
+ });
@@ -3,14 +3,15 @@
3
3
  //
4
4
 
5
5
  import { type Resource } from '@dxos/react-ui';
6
+ import { translations as shellTranslations } from '@dxos/shell/react';
6
7
 
7
8
  import { meta } from './meta';
8
9
 
9
- export const translations = [
10
+ const pluginTranslations = [
10
11
  {
11
12
  'en-US': {
12
13
  [meta.id]: {
13
- 'account label': 'User Account',
14
+ 'account label': 'User profile',
14
15
  'profile label': 'Profile',
15
16
  'profile description': 'You can adjust how your user settings here.',
16
17
  'devices label': 'Devices',
@@ -35,7 +36,7 @@ export const translations = [
35
36
  'display name description': 'Your name as it appears in the app.',
36
37
  'display name input placeholder': 'Enter a name',
37
38
  'icon label': 'Avatar',
38
- 'icon description': 'The emoji used to represent you in the app.',
39
+ 'icon description': 'The emoji used to represent the user.',
39
40
  'hue label': 'Color',
40
41
  'hue description':
41
42
  'The color used to represent you in the app, including as your avatar’s background, your cursor as it appears to others, and the messages you send in group threads.',
@@ -68,3 +69,5 @@ export const translations = [
68
69
  },
69
70
  },
70
71
  ] as const satisfies Resource[];
72
+
73
+ export const translations: Resource[] = [...pluginTranslations, ...shellTranslations];
@@ -0,0 +1,16 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { Capability } from '@dxos/app-framework';
6
+ import { type Client } from '@dxos/client';
7
+ import { type ObjectMigration } from '@dxos/client/echo';
8
+ import { type Type } from '@dxos/echo';
9
+
10
+ import { meta } from '../meta';
11
+
12
+ export namespace ClientCapabilities {
13
+ export const Client = Capability.make<Client>(`${meta.id}.capability.client`);
14
+ export const Schema = Capability.make<Type.AnyEntity[]>(`${meta.id}.capability.schema`);
15
+ export const Migration = Capability.make<ObjectMigration[]>(`${meta.id}.capability.migration`);
16
+ }
@@ -0,0 +1,15 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import { ActivationEvent } from '@dxos/app-framework';
6
+
7
+ import { meta } from '../meta';
8
+
9
+ export namespace ClientEvents {
10
+ export const ClientReady = ActivationEvent.make(`${meta.id}.event.client-ready`);
11
+ export const SetupSchema = ActivationEvent.make(`${meta.id}.event.setup-schema`);
12
+ export const SetupMigration = ActivationEvent.make(`${meta.id}.event.setup-migration`);
13
+ export const IdentityCreated = ActivationEvent.make(`${meta.id}.event.identity-created`);
14
+ export const SpacesReady = ActivationEvent.make(`${meta.id}.event.spaces-ready`);
15
+ }
@@ -2,4 +2,6 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
+ export * from './capabilities';
6
+ export * from './events';
5
7
  export * from './schema';