@dxos/plugin-client 0.8.4-main.74a063c4e0 → 0.8.4-main.765dc60934

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 (470) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +1 -1
  3. package/dist/lib/neutral/ClientPlugin.mjs +10 -0
  4. package/dist/lib/{browser/cli/index.mjs → neutral/ClientPlugin.node.mjs} +57 -88
  5. package/dist/lib/neutral/ClientPlugin.node.mjs.map +7 -0
  6. package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs +262 -0
  7. package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs.map +7 -0
  8. package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs +53 -0
  9. package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs.map +7 -0
  10. package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs +168 -0
  11. package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs.map +7 -0
  12. package/dist/lib/neutral/RecoveryCodeDialog-GBRH6ZSA.mjs +59 -0
  13. package/dist/lib/neutral/RecoveryCodeDialog-GBRH6ZSA.mjs.map +7 -0
  14. package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs +51 -0
  15. package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs.map +7 -0
  16. package/dist/lib/neutral/ResetDialog-VXOIHJXP.mjs +54 -0
  17. package/dist/lib/neutral/ResetDialog-VXOIHJXP.mjs.map +7 -0
  18. package/dist/lib/neutral/app-graph-builder-IK34U2RQ.mjs +117 -0
  19. package/dist/lib/neutral/app-graph-builder-IK34U2RQ.mjs.map +7 -0
  20. package/dist/lib/neutral/capabilities/index.mjs +28 -0
  21. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  22. package/dist/lib/neutral/capabilities/node.mjs +13 -0
  23. package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
  24. package/dist/lib/neutral/chunk-IYPUD3DP.mjs +62 -0
  25. package/dist/lib/neutral/chunk-IYPUD3DP.mjs.map +7 -0
  26. package/dist/lib/neutral/chunk-KBYKJCO2.mjs +8 -0
  27. package/dist/lib/neutral/chunk-KBYKJCO2.mjs.map +7 -0
  28. package/dist/lib/neutral/chunk-KJGNSH3K.mjs +18 -0
  29. package/dist/lib/neutral/chunk-KJGNSH3K.mjs.map +7 -0
  30. package/dist/lib/{browser/chunk-WNJRYPGG.mjs → neutral/chunk-M37DHX5L.mjs} +1 -1
  31. package/dist/lib/{browser/chunk-WNJRYPGG.mjs.map → neutral/chunk-M37DHX5L.mjs.map} +2 -2
  32. package/dist/lib/{browser/chunk-M43LJQ5U.mjs → neutral/chunk-RPMM5NKJ.mjs} +2 -2
  33. package/dist/lib/neutral/chunk-RPMM5NKJ.mjs.map +7 -0
  34. package/dist/lib/{browser/chunk-ELAYKIQU.mjs → neutral/chunk-VAIJSQYA.mjs} +1 -1
  35. package/dist/lib/{browser/chunk-ELAYKIQU.mjs.map → neutral/chunk-VAIJSQYA.mjs.map} +2 -2
  36. package/dist/lib/neutral/client-7JBIGMTX.mjs +62 -0
  37. package/dist/lib/neutral/client-7JBIGMTX.mjs.map +7 -0
  38. package/dist/lib/neutral/components/index.mjs +1 -0
  39. package/dist/lib/neutral/containers/index.mjs +19 -0
  40. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  41. package/dist/lib/{browser/create-agent-SS5SE35J.mjs → neutral/create-agent-JV3EM3TV.mjs} +5 -13
  42. package/dist/lib/neutral/create-agent-JV3EM3TV.mjs.map +7 -0
  43. package/dist/lib/{browser/create-identity-PBEUEIPN.mjs → neutral/create-identity-GNGOTH6D.mjs} +5 -5
  44. package/dist/lib/neutral/create-identity-GNGOTH6D.mjs.map +7 -0
  45. package/dist/lib/{browser/create-passkey-JN6I5WMM.mjs → neutral/create-passkey-NCP4XA7C.mjs} +7 -31
  46. package/dist/lib/neutral/create-passkey-NCP4XA7C.mjs.map +7 -0
  47. package/dist/lib/{browser/create-recovery-code-32I6IWZC.mjs → neutral/create-recovery-code-L5LA3GAP.mjs} +6 -14
  48. package/dist/lib/neutral/create-recovery-code-L5LA3GAP.mjs.map +7 -0
  49. package/dist/lib/neutral/index.mjs +23 -0
  50. package/dist/lib/{browser/join-identity-2BP4G2SD.mjs → neutral/join-identity-3W6PJLKN.mjs} +4 -4
  51. package/dist/lib/{browser/join-identity-2BP4G2SD.mjs.map → neutral/join-identity-3W6PJLKN.mjs.map} +1 -1
  52. package/dist/lib/neutral/meta.json +1 -0
  53. package/dist/lib/neutral/meta.mjs +8 -0
  54. package/dist/lib/neutral/meta.mjs.map +7 -0
  55. package/dist/lib/neutral/migrations-7FTW55ER.mjs +23 -0
  56. package/dist/lib/neutral/migrations-7FTW55ER.mjs.map +7 -0
  57. package/dist/lib/neutral/navigation-handler-TIIHOIBY.mjs +46 -0
  58. package/dist/lib/neutral/navigation-handler-TIIHOIBY.mjs.map +7 -0
  59. package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs +13 -0
  60. package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs.map +7 -0
  61. package/dist/lib/neutral/operations/index.mjs +12 -0
  62. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  63. package/dist/lib/neutral/plugin.mjs +17 -0
  64. package/dist/lib/neutral/plugin.mjs.map +7 -0
  65. package/dist/lib/neutral/react-context-B5LXMHVM.mjs +23 -0
  66. package/dist/lib/neutral/react-context-B5LXMHVM.mjs.map +7 -0
  67. package/dist/lib/neutral/react-surface-VSBYVQL7.mjs +60 -0
  68. package/dist/lib/neutral/react-surface-VSBYVQL7.mjs.map +7 -0
  69. package/dist/lib/{browser/recover-identity-LS6B5INB.mjs → neutral/recover-identity-KL6QY4GI.mjs} +4 -4
  70. package/dist/lib/{browser/recover-identity-LS6B5INB.mjs.map → neutral/recover-identity-KL6QY4GI.mjs.map} +1 -1
  71. package/dist/lib/{browser/redeem-passkey-OCIV6VCK.mjs → neutral/redeem-passkey-NDEWSJTM.mjs} +6 -22
  72. package/dist/lib/neutral/redeem-passkey-NDEWSJTM.mjs.map +7 -0
  73. package/dist/lib/{browser/redeem-token-6BCRGKV6.mjs → neutral/redeem-token-YLWAVFXD.mjs} +5 -13
  74. package/dist/lib/neutral/redeem-token-YLWAVFXD.mjs.map +7 -0
  75. package/dist/lib/{browser/reset-storage-RQHXLTZ7.mjs → neutral/reset-storage-OBHEGA6Z.mjs} +5 -5
  76. package/dist/lib/{browser/reset-storage-RQHXLTZ7.mjs.map → neutral/reset-storage-OBHEGA6Z.mjs.map} +1 -1
  77. package/dist/lib/neutral/schema-defs-6XJAJAQT.mjs +51 -0
  78. package/dist/lib/neutral/schema-defs-6XJAJAQT.mjs.map +7 -0
  79. package/dist/lib/{browser/share-identity-YJEBJTPA.mjs → neutral/share-identity-JQ5SL3J2.mjs} +5 -5
  80. package/dist/lib/{browser/share-identity-YJEBJTPA.mjs.map → neutral/share-identity-JQ5SL3J2.mjs.map} +1 -1
  81. package/dist/lib/{browser → neutral}/testing/index.mjs +4 -0
  82. package/dist/lib/{browser → neutral}/testing/index.mjs.map +2 -2
  83. package/dist/lib/{browser/index.mjs → neutral/translations.mjs} +4 -73
  84. package/dist/lib/neutral/translations.mjs.map +7 -0
  85. package/dist/lib/{browser → neutral}/types/index.mjs +1 -1
  86. package/dist/lib/neutral/types/index.mjs.map +7 -0
  87. package/dist/types/src/ClientPlugin.d.ts +1 -0
  88. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  89. package/dist/types/src/{cli/plugin.d.ts → ClientPlugin.node.d.ts} +2 -1
  90. package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
  91. package/dist/types/src/ClientPlugin.test.d.ts +2 -0
  92. package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
  93. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  94. package/dist/types/src/capabilities/client.d.ts +1 -1
  95. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  96. package/dist/types/src/capabilities/index.d.ts +14 -14
  97. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  98. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  99. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
  100. package/dist/types/src/capabilities/node.d.ts +13 -13
  101. package/dist/types/src/capabilities/node.d.ts.map +1 -1
  102. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  103. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  104. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  105. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  106. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
  107. package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
  108. package/dist/types/src/commands/config/index.d.ts.map +1 -0
  109. package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
  110. package/dist/types/src/commands/config/view.d.ts.map +1 -0
  111. package/dist/types/src/commands/device/index.d.ts.map +1 -0
  112. package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
  113. package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
  114. package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
  115. package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
  116. package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
  117. package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
  118. package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
  119. package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
  120. package/dist/types/src/commands/device/util.d.ts.map +1 -0
  121. package/dist/types/src/commands/edge/index.d.ts.map +1 -0
  122. package/dist/types/src/commands/edge/status.d.ts.map +1 -0
  123. package/dist/types/src/commands/halo/create/create.d.ts +15 -0
  124. package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
  125. package/dist/types/src/commands/halo/create/create.test.d.ts.map +1 -0
  126. package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
  127. package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
  128. package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
  129. package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
  130. package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
  131. package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +2 -2
  132. package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
  133. package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
  134. package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
  135. package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
  136. package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
  137. package/dist/types/src/commands/halo/index.d.ts.map +1 -0
  138. package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
  139. package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
  140. package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
  141. package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
  142. package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
  143. package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
  144. package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
  145. package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
  146. package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
  147. package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
  148. package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
  149. package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
  150. package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
  151. package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
  152. package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
  153. package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
  154. package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
  155. package/dist/types/src/commands/halo/util.d.ts.map +1 -0
  156. package/dist/types/src/commands/index.d.ts.map +1 -0
  157. package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
  158. package/dist/types/src/commands/profile/create.d.ts.map +1 -0
  159. package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
  160. package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
  161. package/dist/types/src/commands/profile/import.d.ts.map +1 -0
  162. package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
  163. package/dist/types/src/commands/profile/index.d.ts.map +1 -0
  164. package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
  165. package/dist/types/src/commands/profile/list.d.ts.map +1 -0
  166. package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
  167. package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
  168. package/dist/types/src/commands/profile/util.d.ts.map +1 -0
  169. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
  170. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -165
  171. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
  172. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
  173. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
  174. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
  175. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
  176. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
  177. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
  178. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  179. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
  180. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +1 -1
  181. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
  182. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
  183. package/dist/types/src/index.d.ts +2 -1
  184. package/dist/types/src/index.d.ts.map +1 -1
  185. package/dist/types/src/meta.d.ts.map +1 -1
  186. package/dist/types/src/operations/create-agent.d.ts +1 -1
  187. package/dist/types/src/operations/create-agent.d.ts.map +1 -1
  188. package/dist/types/src/operations/create-identity.d.ts +1 -1
  189. package/dist/types/src/operations/create-identity.d.ts.map +1 -1
  190. package/dist/types/src/operations/create-passkey.d.ts +1 -1
  191. package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
  192. package/dist/types/src/operations/create-recovery-code.d.ts +1 -1
  193. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -1
  194. package/dist/types/src/operations/definitions.d.ts +1 -1
  195. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  196. package/dist/types/src/operations/index.d.ts +1 -1
  197. package/dist/types/src/operations/index.d.ts.map +1 -1
  198. package/dist/types/src/operations/join-identity.d.ts +1 -1
  199. package/dist/types/src/operations/join-identity.d.ts.map +1 -1
  200. package/dist/types/src/operations/recover-identity.d.ts +1 -1
  201. package/dist/types/src/operations/recover-identity.d.ts.map +1 -1
  202. package/dist/types/src/operations/redeem-passkey.d.ts +1 -1
  203. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -1
  204. package/dist/types/src/operations/redeem-token.d.ts +1 -1
  205. package/dist/types/src/operations/redeem-token.d.ts.map +1 -1
  206. package/dist/types/src/operations/reset-storage.d.ts +1 -1
  207. package/dist/types/src/operations/reset-storage.d.ts.map +1 -1
  208. package/dist/types/src/operations/share-identity.d.ts +1 -1
  209. package/dist/types/src/operations/share-identity.d.ts.map +1 -1
  210. package/dist/types/src/plugin.d.ts +4 -0
  211. package/dist/types/src/plugin.d.ts.map +1 -0
  212. package/dist/types/src/testing/index.d.ts +1 -0
  213. package/dist/types/src/testing/index.d.ts.map +1 -1
  214. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
  215. package/dist/types/src/translations.d.ts.map +1 -1
  216. package/dist/types/src/types/capabilities.d.ts +1 -2
  217. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  218. package/dist/types/src/types/events.d.ts.map +1 -1
  219. package/dist/types/src/types/schema.d.ts.map +1 -1
  220. package/dist/types/tsconfig.tsbuildinfo +1 -1
  221. package/package.json +94 -77
  222. package/src/{cli/plugin.ts → ClientPlugin.node.ts} +4 -2
  223. package/src/ClientPlugin.test.ts +29 -0
  224. package/src/ClientPlugin.ts +6 -5
  225. package/src/capabilities/app-graph-builder.ts +1 -1
  226. package/src/capabilities/index.ts +1 -1
  227. package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
  228. package/src/capabilities/node.ts +1 -1
  229. package/src/capabilities/operation-handler.ts +1 -1
  230. package/src/capabilities/react-surface.tsx +13 -16
  231. package/src/capabilities/schema-defs.ts +29 -9
  232. package/src/{cli/commands → commands}/halo/create/create.test.ts +8 -3
  233. package/src/{cli/commands → commands}/halo/create/create.ts +1 -2
  234. package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +1 -1
  235. package/src/containers/DevicesContainer/DevicesContainer.tsx +4 -4
  236. package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
  237. package/src/containers/JoinDialog/JoinDialog.tsx +1 -1
  238. package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +2 -1
  239. package/src/containers/ProfileContainer/ProfileContainer.tsx +2 -2
  240. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +2 -1
  241. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +1 -1
  242. package/src/containers/ResetDialog/ResetDialog.stories.tsx +4 -3
  243. package/src/containers/ResetDialog/ResetDialog.tsx +5 -3
  244. package/src/index.ts +2 -1
  245. package/src/meta.ts +1 -0
  246. package/src/operations/create-agent.ts +1 -1
  247. package/src/operations/create-identity.ts +2 -2
  248. package/src/operations/create-passkey.ts +1 -1
  249. package/src/operations/create-recovery-code.ts +1 -1
  250. package/src/operations/definitions.ts +1 -1
  251. package/src/operations/index.ts +1 -1
  252. package/src/operations/join-identity.ts +1 -1
  253. package/src/operations/recover-identity.ts +1 -1
  254. package/src/operations/redeem-passkey.ts +1 -1
  255. package/src/operations/redeem-token.ts +1 -1
  256. package/src/operations/reset-storage.ts +2 -2
  257. package/src/operations/share-identity.ts +2 -2
  258. package/src/plugin.ts +11 -0
  259. package/src/testing/index.ts +3 -0
  260. package/src/translations.ts +2 -3
  261. package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +0 -7
  262. package/dist/lib/browser/cli/index.mjs.map +0 -7
  263. package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +0 -7
  264. package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +0 -7
  265. package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +0 -7
  266. package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +0 -7
  267. package/dist/lib/browser/index.mjs.map +0 -7
  268. package/dist/lib/browser/meta.json +0 -1
  269. package/dist/lib/browser/operations/index.mjs +0 -13
  270. package/dist/lib/browser/operations/index.mjs.map +0 -7
  271. package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +0 -7
  272. package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +0 -7
  273. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  274. package/dist/lib/node-esm/chunk-IT5LAIV3.mjs +0 -133
  275. package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +0 -7
  276. package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +0 -14
  277. package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +0 -7
  278. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +0 -176
  279. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +0 -7
  280. package/dist/lib/node-esm/cli/index.mjs +0 -1061
  281. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  282. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs +0 -35
  283. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +0 -7
  284. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs +0 -31
  285. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +0 -7
  286. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs +0 -106
  287. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +0 -7
  288. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs +0 -45
  289. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +0 -7
  290. package/dist/lib/node-esm/index.mjs +0 -144
  291. package/dist/lib/node-esm/index.mjs.map +0 -7
  292. package/dist/lib/node-esm/join-identity-75JCKQHM.mjs +0 -28
  293. package/dist/lib/node-esm/join-identity-75JCKQHM.mjs.map +0 -7
  294. package/dist/lib/node-esm/meta.json +0 -1
  295. package/dist/lib/node-esm/operations/index.mjs +0 -14
  296. package/dist/lib/node-esm/operations/index.mjs.map +0 -7
  297. package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs +0 -27
  298. package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs.map +0 -7
  299. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs +0 -83
  300. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +0 -7
  301. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs +0 -38
  302. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +0 -7
  303. package/dist/lib/node-esm/reset-storage-OWV5UDMC.mjs +0 -27
  304. package/dist/lib/node-esm/reset-storage-OWV5UDMC.mjs.map +0 -7
  305. package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs +0 -32
  306. package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs.map +0 -7
  307. package/dist/lib/node-esm/testing/index.mjs +0 -23
  308. package/dist/lib/node-esm/testing/index.mjs.map +0 -7
  309. package/dist/lib/node-esm/types/index.mjs +0 -15
  310. package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
  311. package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
  312. package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
  313. package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
  314. package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
  315. package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
  316. package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
  317. package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
  318. package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
  319. package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
  320. package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
  321. package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
  322. package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
  323. package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
  324. package/dist/types/src/cli/commands/halo/create/create.d.ts +0 -15
  325. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
  326. package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
  327. package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
  328. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
  329. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
  330. package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
  331. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
  332. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
  333. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
  334. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
  335. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
  336. package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
  337. package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
  338. package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
  339. package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
  340. package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
  341. package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
  342. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
  343. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
  344. package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
  345. package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
  346. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
  347. package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
  348. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
  349. package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
  350. package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
  351. package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
  352. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
  353. package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
  354. package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
  355. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  356. package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
  357. package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
  358. package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
  359. package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
  360. package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
  361. package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
  362. package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
  363. package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
  364. package/dist/types/src/cli/index.d.ts +0 -2
  365. package/dist/types/src/cli/index.d.ts.map +0 -1
  366. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  367. package/dist/types/src/cli/testing/test-console.d.ts +0 -37
  368. package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
  369. package/src/cli/index.ts +0 -5
  370. package/src/cli/testing/test-console.ts +0 -87
  371. /package/dist/lib/{browser/chunk-J5LGTIGS.mjs.map → neutral/ClientPlugin.mjs.map} +0 -0
  372. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  373. /package/dist/lib/{browser/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  374. /package/dist/lib/{node-esm/types → neutral/components}/index.mjs.map +0 -0
  375. /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/index.mjs.map} +0 -0
  376. /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
  377. /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
  378. /package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +0 -0
  379. /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
  380. /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
  381. /package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +0 -0
  382. /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
  383. /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
  384. /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
  385. /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
  386. /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
  387. /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
  388. /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
  389. /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
  390. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
  391. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
  392. /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
  393. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
  394. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
  395. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +0 -0
  396. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
  397. /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
  398. /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
  399. /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
  400. /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
  401. /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
  402. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +0 -0
  403. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
  404. /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
  405. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
  406. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
  407. /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
  408. /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
  409. /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
  410. /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
  411. /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
  412. /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
  413. /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
  414. /package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +0 -0
  415. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  416. /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
  417. /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
  418. /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
  419. /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
  420. /package/src/{cli/commands → commands}/config/index.ts +0 -0
  421. /package/src/{cli/commands → commands}/config/view.ts +0 -0
  422. /package/src/{cli/commands → commands}/device/index.ts +0 -0
  423. /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
  424. /package/src/{cli/commands → commands}/device/info/info.test.ts +0 -0
  425. /package/src/{cli/commands → commands}/device/info/info.ts +0 -0
  426. /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
  427. /package/src/{cli/commands → commands}/device/list/list.test.ts +0 -0
  428. /package/src/{cli/commands → commands}/device/list/list.ts +0 -0
  429. /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
  430. /package/src/{cli/commands → commands}/device/update/update.ts +0 -0
  431. /package/src/{cli/commands → commands}/device/util.ts +0 -0
  432. /package/src/{cli/commands → commands}/edge/index.ts +0 -0
  433. /package/src/{cli/commands → commands}/edge/status.ts +0 -0
  434. /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
  435. /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
  436. /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
  437. /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
  438. /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
  439. /package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -0
  440. /package/src/{cli/commands → commands}/halo/credential/list/list.ts +0 -0
  441. /package/src/{cli/commands → commands}/halo/identity/identity.test.ts +0 -0
  442. /package/src/{cli/commands → commands}/halo/identity/identity.ts +0 -0
  443. /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
  444. /package/src/{cli/commands → commands}/halo/index.ts +0 -0
  445. /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
  446. /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
  447. /package/src/{cli/commands → commands}/halo/join/join.ts +0 -0
  448. /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
  449. /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
  450. /package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -0
  451. /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
  452. /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
  453. /package/src/{cli/commands → commands}/halo/recover/recover.ts +0 -0
  454. /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
  455. /package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -0
  456. /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
  457. /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
  458. /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
  459. /package/src/{cli/commands → commands}/halo/update/update.test.ts +0 -0
  460. /package/src/{cli/commands → commands}/halo/update/update.ts +0 -0
  461. /package/src/{cli/commands → commands}/halo/util.ts +0 -0
  462. /package/src/{cli/commands → commands}/index.ts +0 -0
  463. /package/src/{cli/commands → commands}/profile/create.ts +0 -0
  464. /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
  465. /package/src/{cli/commands → commands}/profile/import.ts +0 -0
  466. /package/src/{cli/commands → commands}/profile/index.ts +0 -0
  467. /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
  468. /package/src/{cli/commands → commands}/profile/list.ts +0 -0
  469. /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
  470. /package/src/{cli/commands → commands}/profile/util.ts +0 -0
@@ -0,0 +1,62 @@
1
+ // src/ClientPlugin.ts
2
+ import { ActivationEvent, ActivationEvents, Capability, Plugin } from "@dxos/app-framework";
3
+ import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
4
+ import { AppGraphBuilder, Client, Migrations, NavigationHandler, OperationHandler, ReactContext, ReactSurface, SchemaDefs } from "#capabilities";
5
+ import { meta } from "#meta";
6
+ import { translations } from "#translations";
7
+ import { ClientEvents } from "#types";
8
+ var ClientPlugin = Plugin.define(meta).pipe(AppPlugin.addAppGraphModule({
9
+ activate: AppGraphBuilder
10
+ }), AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({
11
+ activate: () => NavigationHandler({
12
+ invitationProp
13
+ })
14
+ })), AppPlugin.addOperationHandlerModule({
15
+ activate: OperationHandler
16
+ }), AppPlugin.addReactContextModule({
17
+ activate: ReactContext
18
+ }), AppPlugin.addTranslationsModule({
19
+ translations
20
+ }), Plugin.addModule((options) => {
21
+ return {
22
+ id: Capability.getModuleTag(Client),
23
+ activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),
24
+ firesAfterActivation: [
25
+ ClientEvents.ClientReady
26
+ ],
27
+ activate: () => Client(options)
28
+ };
29
+ }), Plugin.addModule({
30
+ activatesOn: ClientEvents.ClientReady,
31
+ firesBeforeActivation: [
32
+ AppActivationEvents.SetupSchema
33
+ ],
34
+ activate: SchemaDefs
35
+ }), Plugin.addModule({
36
+ activatesOn: ClientEvents.ClientReady,
37
+ firesBeforeActivation: [
38
+ ClientEvents.SetupMigration
39
+ ],
40
+ activate: Migrations
41
+ }), Plugin.addModule(({ shareableLinkOrigin = typeof window !== "undefined" ? window.location.origin : "http://localhost", invitationPath = "/", invitationProp = "deviceInvitationCode", onReset }) => {
42
+ const createInvitationUrl = (invitationCode) => {
43
+ const baseUrl = new URL(invitationPath || "/", shareableLinkOrigin);
44
+ baseUrl.searchParams.set(invitationProp, invitationCode);
45
+ return baseUrl.toString();
46
+ };
47
+ return {
48
+ id: Capability.getModuleTag(ReactSurface),
49
+ activatesOn: ActivationEvents.SetupReactSurface,
50
+ activate: () => ReactSurface({
51
+ createInvitationUrl,
52
+ onReset
53
+ })
54
+ };
55
+ }), Plugin.make);
56
+ var ClientPlugin_default = ClientPlugin;
57
+
58
+ export {
59
+ ClientPlugin,
60
+ ClientPlugin_default
61
+ };
62
+ //# sourceMappingURL=chunk-IYPUD3DP.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/ClientPlugin.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';\nimport { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';\n\nimport {\n AppGraphBuilder,\n Client,\n Migrations,\n NavigationHandler,\n OperationHandler,\n ReactContext,\n ReactSurface,\n SchemaDefs,\n} from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\nimport { ClientEvents } from '#types';\nimport { type ClientPluginOptions } from '#types';\n\nexport const ClientPlugin = Plugin.define<ClientPluginOptions>(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addNavigationHandlerModule(({ invitationProp }) => ({\n activate: () => NavigationHandler({ invitationProp }),\n })),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addReactContextModule({ activate: ReactContext }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.addModule((options) => {\n return {\n id: Capability.getModuleTag(Client),\n activatesOn: ActivationEvent.oneOf(ActivationEvents.Startup, AppActivationEvents.SetupAppGraph),\n firesAfterActivation: [ClientEvents.ClientReady],\n activate: () => Client(options),\n };\n }),\n Plugin.addModule({\n activatesOn: ClientEvents.ClientReady,\n firesBeforeActivation: [AppActivationEvents.SetupSchema],\n activate: SchemaDefs,\n }),\n Plugin.addModule({\n activatesOn: ClientEvents.ClientReady,\n firesBeforeActivation: [ClientEvents.SetupMigration],\n activate: Migrations,\n }),\n Plugin.addModule(\n ({\n shareableLinkOrigin = typeof window !== 'undefined' ? window.location.origin : 'http://localhost',\n invitationPath = '/',\n invitationProp = 'deviceInvitationCode',\n onReset,\n }) => {\n const createInvitationUrl = (invitationCode: string) => {\n const baseUrl = new URL(invitationPath || '/', shareableLinkOrigin);\n baseUrl.searchParams.set(invitationProp, invitationCode);\n return baseUrl.toString();\n };\n\n return {\n id: Capability.getModuleTag(ReactSurface),\n activatesOn: ActivationEvents.SetupReactSurface,\n activate: () => ReactSurface({ createInvitationUrl, onReset }),\n };\n },\n ),\n Plugin.make,\n);\n\nexport default ClientPlugin;\n"],
5
+ "mappings": ";AAIA,SAASA,iBAAiBC,kBAAkBC,YAAYC,cAAc;AACtE,SAASC,qBAAqBC,iBAAiB;AAE/C,SACEC,iBACAC,QACAC,YACAC,mBACAC,kBACAC,cACAC,cACAC,kBACK;AACP,SAASC,YAAY;AACrB,SAASC,oBAAoB;AAC7B,SAASC,oBAAoB;AAGtB,IAAMC,eAAed,OAAOe,OAA4BJ,IAAAA,EAAMK,KACnEd,UAAUe,kBAAkB;EAAEC,UAAUf;AAAgB,CAAA,GACxDD,UAAUiB,2BAA2B,CAAC,EAAEC,eAAc,OAAQ;EAC5DF,UAAU,MAAMZ,kBAAkB;IAAEc;EAAe,CAAA;AACrD,EAAA,GACAlB,UAAUmB,0BAA0B;EAAEH,UAAUX;AAAiB,CAAA,GACjEL,UAAUoB,sBAAsB;EAAEJ,UAAUV;AAAa,CAAA,GACzDN,UAAUqB,sBAAsB;EAAEX;AAAa,CAAA,GAC/CZ,OAAOwB,UAAU,CAACC,YAAAA;AAChB,SAAO;IACLC,IAAI3B,WAAW4B,aAAavB,MAAAA;IAC5BwB,aAAa/B,gBAAgBgC,MAAM/B,iBAAiBgC,SAAS7B,oBAAoB8B,aAAa;IAC9FC,sBAAsB;MAACnB,aAAaoB;;IACpCf,UAAU,MAAMd,OAAOqB,OAAAA;EACzB;AACF,CAAA,GACAzB,OAAOwB,UAAU;EACfI,aAAaf,aAAaoB;EAC1BC,uBAAuB;IAACjC,oBAAoBkC;;EAC5CjB,UAAUR;AACZ,CAAA,GACAV,OAAOwB,UAAU;EACfI,aAAaf,aAAaoB;EAC1BC,uBAAuB;IAACrB,aAAauB;;EACrClB,UAAUb;AACZ,CAAA,GACAL,OAAOwB,UACL,CAAC,EACCa,sBAAsB,OAAOC,WAAW,cAAcA,OAAOC,SAASC,SAAS,oBAC/EC,iBAAiB,KACjBrB,iBAAiB,wBACjBsB,QAAO,MACR;AACC,QAAMC,sBAAsB,CAACC,mBAAAA;AAC3B,UAAMC,UAAU,IAAIC,IAAIL,kBAAkB,KAAKJ,mBAAAA;AAC/CQ,YAAQE,aAAaC,IAAI5B,gBAAgBwB,cAAAA;AACzC,WAAOC,QAAQI,SAAQ;EACzB;AAEA,SAAO;IACLvB,IAAI3B,WAAW4B,aAAalB,YAAAA;IAC5BmB,aAAa9B,iBAAiBoD;IAC9BhC,UAAU,MAAMT,aAAa;MAAEkC;MAAqBD;IAAQ,CAAA;EAC9D;AACF,CAAA,GAEF1C,OAAOmD,IAAI;AAGb,IAAA,uBAAerC;",
6
+ "names": ["ActivationEvent", "ActivationEvents", "Capability", "Plugin", "AppActivationEvents", "AppPlugin", "AppGraphBuilder", "Client", "Migrations", "NavigationHandler", "OperationHandler", "ReactContext", "ReactSurface", "SchemaDefs", "meta", "translations", "ClientEvents", "ClientPlugin", "define", "pipe", "addAppGraphModule", "activate", "addNavigationHandlerModule", "invitationProp", "addOperationHandlerModule", "addReactContextModule", "addTranslationsModule", "addModule", "options", "id", "getModuleTag", "activatesOn", "oneOf", "Startup", "SetupAppGraph", "firesAfterActivation", "ClientReady", "firesBeforeActivation", "SetupSchema", "SetupMigration", "shareableLinkOrigin", "window", "location", "origin", "invitationPath", "onReset", "createInvitationUrl", "invitationCode", "baseUrl", "URL", "searchParams", "set", "toString", "SetupReactSurface", "make"]
7
+ }
@@ -0,0 +1,8 @@
1
+ // src/operations/index.ts
2
+ import { OperationHandlerSet } from "@dxos/compute";
3
+ var ClientOperationHandlerSet = OperationHandlerSet.lazy(() => import("./create-agent-JV3EM3TV.mjs"), () => import("./create-identity-GNGOTH6D.mjs"), () => import("./create-passkey-NCP4XA7C.mjs"), () => import("./create-recovery-code-L5LA3GAP.mjs"), () => import("./join-identity-3W6PJLKN.mjs"), () => import("./recover-identity-KL6QY4GI.mjs"), () => import("./redeem-passkey-NDEWSJTM.mjs"), () => import("./redeem-token-YLWAVFXD.mjs"), () => import("./reset-storage-OBHEGA6Z.mjs"), () => import("./share-identity-JQ5SL3J2.mjs"));
4
+
5
+ export {
6
+ ClientOperationHandlerSet
7
+ };
8
+ //# sourceMappingURL=chunk-KBYKJCO2.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/compute';\n\nexport * as ClientOperation from './definitions';\n\nexport const ClientOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./create-agent'),\n () => import('./create-identity'),\n () => import('./create-passkey'),\n () => import('./create-recovery-code'),\n () => import('./join-identity'),\n () => import('./recover-identity'),\n () => import('./redeem-passkey'),\n () => import('./redeem-token'),\n () => import('./reset-storage'),\n () => import('./share-identity'),\n);\n"],
5
+ "mappings": ";AAIA,SAASA,2BAA2B;AAI7B,IAAMC,4BAA4BD,oBAAoBE,KAC3D,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,gCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,qCAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,+BAAA,GACb,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,8BAAA,GACb,MAAM,OAAO,+BAAA,CAAA;",
6
+ "names": ["OperationHandlerSet", "ClientOperationHandlerSet", "lazy"]
7
+ }
@@ -0,0 +1,18 @@
1
+ // src/meta.ts
2
+ import { trim } from "@dxos/util";
3
+ var meta = {
4
+ id: "org.dxos.plugin.client",
5
+ name: "Client",
6
+ description: trim`
7
+ Core client connectivity and peer-to-peer networking infrastructure.
8
+ Manages identity, authentication, and real-time synchronization across devices.
9
+ `,
10
+ tags: [
11
+ "system"
12
+ ]
13
+ };
14
+
15
+ export {
16
+ meta
17
+ };
18
+ //# sourceMappingURL=chunk-KJGNSH3K.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/meta.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.client',\n name: 'Client',\n description: trim`\n Core client connectivity and peer-to-peer networking infrastructure.\n Manages identity, authentication, and real-time synchronization across devices.\n `,\n tags: ['system'],\n};\n"],
5
+ "mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaJ;;;;EAIbK,MAAM;IAAC;;AACT;",
6
+ "names": ["trim", "meta", "id", "name", "description", "tags"]
7
+ }
@@ -128,4 +128,4 @@ export {
128
128
  ClientAction,
129
129
  Account
130
130
  };
131
- //# sourceMappingURL=chunk-WNJRYPGG.mjs.map
131
+ //# sourceMappingURL=chunk-M37DHX5L.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/types/capabilities.ts", "../../../src/types/events.ts", "../../../src/types/schema.ts"],
4
4
  "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client } from '@dxos/client';\nimport { type ObjectMigration } from '@dxos/client/echo';\nimport { type Type } from '@dxos/echo';\n\nimport { meta } from '#meta';\n\nexport namespace ClientCapabilities {\n export const Client = Capability.make<Client>(`${meta.id}.capability.client`);\n export const Schema = Capability.make<Type.AnyEntity[]>(`${meta.id}.capability.schema`);\n export const Migration = Capability.make<ObjectMigration[]>(`${meta.id}.capability.migration`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { ActivationEvent } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\n\nexport namespace ClientEvents {\n export const ClientReady = ActivationEvent.make(`${meta.id}.event.client-ready`);\n export const SetupSchema = ActivationEvent.make(`${meta.id}.event.setup-schema`);\n export const SetupMigration = ActivationEvent.make(`${meta.id}.event.setup-migration`);\n export const IdentityCreated = ActivationEvent.make(`${meta.id}.event.identity-created`);\n export const SpacesReady = ActivationEvent.make(`${meta.id}.event.spaces-ready`);\n}\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport type * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { type Client, type ClientOptions, PublicKey } from '@dxos/client';\n\nimport { meta } from '#meta';\n\n// TODO(wittjosiah): Factor out. Generate?\nconst IdentitySchema = Schema.Struct({\n identityKey: Schema.instanceOf(PublicKey),\n spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),\n profile: Schema.optional(\n Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n ),\n});\n\nexport namespace ClientAction {\n const ProfileSchema = Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n });\n\n export class CreateIdentity extends Schema.TaggedClass<CreateIdentity>()(`${meta.id}.action.create-identity`, {\n input: ProfileSchema,\n output: IdentitySchema,\n }) {}\n\n export class JoinIdentity extends Schema.TaggedClass<JoinIdentity>()(`${meta.id}.action.join-identity`, {\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class ShareIdentity extends Schema.TaggedClass<ShareIdentity>()(`${meta.id}.action.share-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RecoverIdentity extends Schema.TaggedClass<RecoverIdentity>()(`${meta.id}.action.recover-identity`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class ResetStorage extends Schema.TaggedClass<ResetStorage>()(`${meta.id}.action.reset-storage`, {\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n }) {}\n\n export class CreateAgent extends Schema.TaggedClass<CreateAgent>()(`${meta.id}.action.create-agent`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class CreateRecoveryCode extends Schema.TaggedClass<CreateRecoveryCode>()(\n `${meta.id}.action.create-recovery-code`,\n {\n input: Schema.Void,\n output: Schema.Void,\n },\n ) {}\n\n export class CreatePasskey extends Schema.TaggedClass<CreatePasskey>()(`${meta.id}.action.create-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemPasskey extends Schema.TaggedClass<RedeemPasskey>()(`${meta.id}.action.redeem-passkey`, {\n input: Schema.Void,\n output: Schema.Void,\n }) {}\n\n export class RedeemToken extends Schema.TaggedClass<RedeemToken>()(`${meta.id}.action.redeem-token`, {\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n }) {}\n}\n\nexport type ClientPluginOptions = ClientOptions & {\n /**\n * Base origin for the invitation link.\n */\n shareableLinkOrigin?: string;\n\n /**\n * Path for the invitation link.\n */\n invitationPath?: string;\n\n /**\n * Query parameter for the invitation code.\n */\n invitationProp?: string;\n\n /**\n * Run after the client has been initialized.\n * Plugin context is provided so capabilities are accessible.\n */\n onClientInitialized?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when spaces are ready.\n * Plugin context is provided so capabilities are accessible.\n */\n onSpacesReady?: (params: { client: Client }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n\n /**\n * Called when the client is reset.\n * Plugin context is provided so capabilities are accessible.\n */\n onReset?: (params: { target?: string }) => Effect.Effect<void, Error | never, Capability.Service | never>;\n};\n\nexport namespace Account {\n // TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.\n const _id = 'dxos.org.plugin.client.account';\n // TODO(wittjosiah): This is a hack to prevent the previous deck from being set for pinned items.\n // Ideally this should be worked into the data model in a generic way.\n export const id = `!${_id}`;\n\n export const Profile = `${_id}.profile`;\n export const Devices = `${_id}.devices`;\n export const Security = `${_id}.security`;\n}\n"],
5
- "mappings": "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",
6
- "names": ["Capability", "meta", "ClientCapabilities", "Client", "Capability", "make", "meta", "id", "Schema", "Migration", "ActivationEvent", "meta", "ClientEvents", "ClientReady", "ActivationEvent", "make", "meta", "id", "SetupSchema", "SetupMigration", "IdentityCreated", "SpacesReady", "Schema", "PublicKey", "meta", "IdentitySchema", "Struct", "identityKey", "instanceOf", "PublicKey", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ClientAction", "ProfileSchema", "CreateIdentity", "TaggedClass", "meta", "id", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "Account", "_id", "Profile", "Devices", "Security"]
5
+ "mappings": "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",
6
+ "names": ["Capability", "meta", "ClientCapabilities", "Client", "make", "id", "Schema", "Migration", "ActivationEvent", "meta", "ClientEvents", "ClientReady", "make", "id", "SetupSchema", "SetupMigration", "IdentityCreated", "SpacesReady", "Schema", "PublicKey", "meta", "IdentitySchema", "Struct", "identityKey", "instanceOf", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ClientAction", "ProfileSchema", "CreateIdentity", "TaggedClass", "id", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token", "Account", "_id", "Profile", "Devices", "Security"]
7
7
  }
@@ -19,7 +19,7 @@ __export(definitions_exports, {
19
19
  import * as Schema from "effect/Schema";
20
20
  import { Capability } from "@dxos/app-framework";
21
21
  import { PublicKey } from "@dxos/client";
22
- import { Operation } from "@dxos/operation";
22
+ import { Operation } from "@dxos/compute";
23
23
  import { meta } from "#meta";
24
24
  var CLIENT_OPERATION = `${meta.id}.operation`;
25
25
  var IdentitySchema = Schema.Struct({
@@ -172,4 +172,4 @@ export {
172
172
  RedeemToken,
173
173
  definitions_exports
174
174
  };
175
- //# sourceMappingURL=chunk-M43LJQ5U.mjs.map
175
+ //# sourceMappingURL=chunk-RPMM5NKJ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/definitions.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { PublicKey } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\n\nimport { meta } from '#meta';\n\nconst CLIENT_OPERATION = `${meta.id}.operation`;\n\nconst IdentitySchema = Schema.Struct({\n identityKey: Schema.instanceOf(PublicKey),\n spaceKey: Schema.optional(Schema.instanceOf(PublicKey)),\n profile: Schema.optional(\n Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n }),\n ),\n});\n\nconst ProfileSchema = Schema.Struct({\n displayName: Schema.optional(Schema.String),\n avatarCid: Schema.optional(Schema.String),\n data: Schema.optional(Schema.Record({ key: Schema.String, value: Schema.Any })),\n});\n\nexport const CreateIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-identity`, name: 'Create Identity' },\n services: [Capability.Service],\n input: ProfileSchema,\n output: IdentitySchema,\n});\n\nexport const JoinIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.join-identity`, name: 'Join Identity' },\n services: [Capability.Service],\n input: Schema.Struct({\n invitationCode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n});\n\nexport const ShareIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.share-identity`, name: 'Share Identity' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RecoverIdentity = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.recover-identity`, name: 'Recover Identity' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const ResetStorage = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.reset-storage`, name: 'Reset Storage' },\n services: [Capability.Service],\n input: Schema.Struct({\n mode: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n});\n\nexport const CreateAgent = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-agent`, name: 'Create Agent' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreateRecoveryCode = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-recovery-code`, name: 'Create Recovery Code' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const CreatePasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.create-passkey`, name: 'Create Passkey' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemPasskey = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.redeem-passkey`, name: 'Redeem Passkey' },\n services: [Capability.Service],\n input: Schema.Void,\n output: Schema.Void,\n});\n\nexport const RedeemToken = Operation.make({\n meta: { key: `${CLIENT_OPERATION}.redeem-token`, name: 'Redeem Token' },\n services: [Capability.Service],\n input: Schema.Struct({\n token: Schema.String,\n }),\n output: Schema.Void,\n});\n"],
5
+ "mappings": "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",
6
+ "names": ["Schema", "Capability", "PublicKey", "Operation", "meta", "CLIENT_OPERATION", "id", "IdentitySchema", "Struct", "identityKey", "instanceOf", "spaceKey", "optional", "profile", "displayName", "String", "avatarCid", "data", "Record", "key", "value", "Any", "ProfileSchema", "CreateIdentity", "make", "name", "services", "Service", "input", "output", "JoinIdentity", "invitationCode", "Void", "ShareIdentity", "RecoverIdentity", "ResetStorage", "mode", "CreateAgent", "CreateRecoveryCode", "CreatePasskey", "RedeemPasskey", "RedeemToken", "token"]
7
+ }
@@ -9,4 +9,4 @@ export {
9
9
  RECOVERY_CODE_DIALOG,
10
10
  RESET_DIALOG
11
11
  };
12
- //# sourceMappingURL=chunk-ELAYKIQU.mjs.map
12
+ //# sourceMappingURL=chunk-VAIJSQYA.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/constants.ts"],
4
4
  "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { meta } from '#meta';\n\nexport const JOIN_DIALOG = `${meta.id}.JoinDialog`;\nexport const RECOVERY_CODE_DIALOG = `${meta.id}.RecoveryCodeDialog`;\nexport const RESET_DIALOG = `${meta.id}.ResetDialog`;\n"],
5
- "mappings": ";AAIA,SAASA,YAAY;AAEd,IAAMC,cAAc,GAAGC,KAAKC,EAAE;AAC9B,IAAMC,uBAAuB,GAAGF,KAAKC,EAAE;AACvC,IAAME,eAAe,GAAGH,KAAKC,EAAE;",
6
- "names": ["meta", "JOIN_DIALOG", "meta", "id", "RECOVERY_CODE_DIALOG", "RESET_DIALOG"]
5
+ "mappings": ";AAIA,SAASA,YAAY;AAEd,IAAMC,cAAc,GAAGD,KAAKE,EAAE;AAC9B,IAAMC,uBAAuB,GAAGH,KAAKE,EAAE;AACvC,IAAME,eAAe,GAAGJ,KAAKE,EAAE;",
6
+ "names": ["meta", "JOIN_DIALOG", "id", "RECOVERY_CODE_DIALOG", "RESET_DIALOG"]
7
7
  }
@@ -0,0 +1,62 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/capabilities/client.ts
4
+ import * as Effect from "effect/Effect";
5
+ import { Capabilities, Capability, Plugin } from "@dxos/app-framework";
6
+ import { Client, ClientService } from "@dxos/client";
7
+ import { runAndForwardErrors } from "@dxos/effect";
8
+ import { log } from "@dxos/log";
9
+ import { ClientEvents } from "#types";
10
+ import { ClientCapabilities } from "#types";
11
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/capabilities/client.ts";
12
+ var client_default = Capability.makeModule(Effect.fnUntraced(function* ({ onClientInitialized, onSpacesReady, ...options }) {
13
+ const capabilityManager = yield* Capability.Service;
14
+ const pluginManager = yield* Plugin.Service;
15
+ log("creating client", void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 14, S: this });
16
+ const client = new Client(options);
17
+ log("initializing client (calling client.initialize())...", void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 16, S: this });
18
+ yield* Effect.tryPromise(() => client.initialize());
19
+ log("client.initialize() returned successfully", void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 18, S: this });
20
+ if (onClientInitialized) {
21
+ yield* onClientInitialized({
22
+ client
23
+ }).pipe(Effect.provideService(Capability.Service, capabilityManager), Effect.provideService(Plugin.Service, pluginManager));
24
+ }
25
+ log("called client initialized callback", void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 24, S: this });
26
+ client.reloaded.on(() => {
27
+ client.halo.identity.subscribe(async (identity) => {
28
+ if (identity) {
29
+ window.location.href = window.location.origin;
30
+ }
31
+ });
32
+ });
33
+ let spacesReadyFired = false;
34
+ const subscription = client.spaces.subscribe(async () => {
35
+ if (!spacesReadyFired) {
36
+ spacesReadyFired = true;
37
+ await Effect.gen(function* () {
38
+ yield* Plugin.activate(ClientEvents.SpacesReady);
39
+ if (onSpacesReady) {
40
+ yield* onSpacesReady({
41
+ client
42
+ });
43
+ }
44
+ }).pipe(Effect.provideService(Capability.Service, capabilityManager), Effect.provideService(Plugin.Service, pluginManager), runAndForwardErrors);
45
+ }
46
+ });
47
+ log("client capability ready", void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 47, S: this });
48
+ return [
49
+ // TODO(wittjosiah): Try to remove and prefer layer?
50
+ // Perhaps move to using layer has source of truth and add a getter capability for the client.
51
+ Capability.contributes(ClientCapabilities.Client, client, () => Effect.gen(function* () {
52
+ log.info("client capability: destroying client", void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 52, S: this });
53
+ subscription.unsubscribe();
54
+ yield* Effect.tryPromise(() => client.destroy());
55
+ })),
56
+ Capability.contributes(Capabilities.Layer, ClientService.fromClient(client))
57
+ ];
58
+ }));
59
+ export {
60
+ client_default as default
61
+ };
62
+ //# sourceMappingURL=client-7JBIGMTX.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/client.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability, Plugin } from '@dxos/app-framework';\nimport { Client, ClientService } from '@dxos/client';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { log } from '@dxos/log';\n\nimport { ClientEvents } from '#types';\nimport { ClientCapabilities, type ClientPluginOptions } from '#types';\n\ntype ClientCapabilityOptions = Omit<\n ClientPluginOptions,\n 'appKey' | 'shareableLinkOrigin' | 'invitationPath' | 'invitationParam' | 'onReset'\n>;\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* ({ onClientInitialized, onSpacesReady, ...options }: ClientCapabilityOptions) {\n const capabilityManager = yield* Capability.Service;\n const pluginManager = yield* Plugin.Service;\n\n log('creating client');\n const client = new Client(options);\n log('initializing client (calling client.initialize())...');\n yield* Effect.tryPromise(() => client.initialize());\n log('client.initialize() returned successfully');\n if (onClientInitialized) {\n yield* onClientInitialized({ client }).pipe(\n Effect.provideService(Capability.Service, capabilityManager),\n Effect.provideService(Plugin.Service, pluginManager),\n );\n }\n log('called client initialized callback');\n\n // TODO(wittjosiah): Remove. This is a hack to get the app to boot with the new identity after a reset.\n client.reloaded.on(() => {\n client.halo.identity.subscribe(async (identity) => {\n if (identity) {\n window.location.href = window.location.origin;\n }\n });\n });\n\n let spacesReadyFired = false;\n const subscription = client.spaces.subscribe(async () => {\n if (!spacesReadyFired) {\n spacesReadyFired = true;\n await Effect.gen(function* () {\n yield* Plugin.activate(ClientEvents.SpacesReady);\n if (onSpacesReady) {\n yield* onSpacesReady({ client });\n }\n }).pipe(\n Effect.provideService(Capability.Service, capabilityManager),\n Effect.provideService(Plugin.Service, pluginManager),\n runAndForwardErrors,\n );\n }\n });\n\n log('client capability ready');\n\n return [\n // TODO(wittjosiah): Try to remove and prefer layer?\n // Perhaps move to using layer has source of truth and add a getter capability for the client.\n Capability.contributes(ClientCapabilities.Client, client, () =>\n Effect.gen(function* () {\n log.info('client capability: destroying client');\n subscription.unsubscribe();\n yield* Effect.tryPromise(() => client.destroy());\n }),\n ),\n Capability.contributes(Capabilities.Layer, ClientService.fromClient(client)),\n ];\n }),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,YAAYC,cAAc;AACjD,SAASC,QAAQC,qBAAqB;AACtC,SAASC,2BAA2B;AACpC,SAASC,WAAW;AAEpB,SAASC,oBAAoB;AAC7B,SAASC,0BAAoD;AAO7D,IAAA,eAAeP;IAGX,iBAAMQ,WAAgB,WAAcC,kBAAO,WAAA,EAAA,qBAAA,eAAA,GAAA,QAAA,GAAA;AAE3CJ,QAAI,oBAAA,OAAA,WAAA;AACJ,QAAMK,gBAAaR,OAAOS,OAAAA;AAC1BN,MAAI,mBAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;AACJ,QAAA,SAAcO,IAAAA,OAAW,OAAMF;AAC/BL,MAAI,wDAAA,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;AACJ,SAAIQ,kBAAqB,MAAA,OAAA,WAAA,CAAA;MACvB,6CAA2B,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;2BAAEH;AAAO,WAAO,oBAClCI;MAGX;IACI,CAAA,EAAA,KAAA,sBAAA,WAAA,SAAA,iBAAA,GAAA,sBAAA,OAAA,SAAA,aAAA,CAAA;EAEJ;AACAJ,MAAAA,sCAAmB,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;kBAEXK,GAAAA,MAAU;gBACZC,SAAOC,UAAgBD,OAAOC,aAASC;AACzC,UAAA,UAAA;AACF,eAAA,SAAA,OAAA,OAAA,SAAA;MACF;IAEIC,CAAAA;EACJ,CAAA;MACE,mBAAKA;uBACHA,OAAmB,OAAA,UAAA,YAAA;QACnB,CAAA,kBAAiB;yBACDC;YACVC,WAAAA,aAAe;eACjB,OAAOA,SAAAA,aAAc,WAAA;2BAAEX;AAAO,iBAAA,cAAA;YAChC;UAEAZ,CAAAA;QAIJ;MACF,CAAA,EAAA,KAAA,sBAAA,WAAA,SAAA,iBAAA,GAAA,sBAAA,OAAA,SAAA,aAAA,GAAA,mBAAA;IAEI;EAEJ,CAAA;MACE,2BAAA,QAAA,EAAA,YAAA,YAAoD,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;SACpD;;;eAIIwB,YAAaC,mBAAW,QAAA,QAAA,MAAA,WAAA,aAAA;AACxB,UAAA,KAAOzB,wCAAsC,QAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,KAAA,CAAA;AAC/C,mBAAA,YAAA;AAEFE,aAAsB,kBAACD,MAAayB,OAAOrB,QAAAA,CAAAA;IAC5C,CAAA,CAAA;IAEH,WAAA,YAAA,aAAA,OAAA,cAAA,WAAA,MAAA,CAAA;;;",
6
+ "names": ["Effect", "Capabilities", "Capability", "Plugin", "Client", "ClientService", "runAndForwardErrors", "log", "ClientEvents", "ClientCapabilities", "pluginManager", "Service", "client", "options", "tryPromise", "onClientInitialized", "provideService", "identity", "window", "location", "origin", "spacesReadyFired", "activate", "onSpacesReady", "subscription", "unsubscribe", "Layer"]
7
+ }
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,19 @@
1
+ import "../chunk-J5LGTIGS.mjs";
2
+
3
+ // src/containers/index.ts
4
+ import { lazy } from "react";
5
+ var DevicesContainer = lazy(() => import("../DevicesContainer-6MWNUC3I.mjs"));
6
+ var JoinDialog = lazy(() => import("../JoinDialog-2NXAKPLP.mjs"));
7
+ var ProfileContainer = lazy(() => import("../ProfileContainer-VPX3FPWG.mjs"));
8
+ var RecoveryCodeDialog = lazy(() => import("../RecoveryCodeDialog-GBRH6ZSA.mjs"));
9
+ var RecoveryCredentialsContainer = lazy(() => import("../RecoveryCredentialsContainer-IPBGDMIA.mjs"));
10
+ var ResetDialog = lazy(() => import("../ResetDialog-VXOIHJXP.mjs"));
11
+ export {
12
+ DevicesContainer,
13
+ JoinDialog,
14
+ ProfileContainer,
15
+ RecoveryCodeDialog,
16
+ RecoveryCredentialsContainer,
17
+ ResetDialog
18
+ };
19
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/containers/index.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type ComponentType, lazy } from 'react';\n\nexport { type RecoveryCodeDialogProps } from './RecoveryCodeDialog';\nexport { type ResetDialogProps } from './ResetDialog';\n\nexport const DevicesContainer: ComponentType<any> = lazy(() => import('./DevicesContainer'));\nexport const JoinDialog: ComponentType<any> = lazy(() => import('./JoinDialog'));\nexport const ProfileContainer: ComponentType<any> = lazy(() => import('./ProfileContainer'));\nexport const RecoveryCodeDialog: ComponentType<any> = lazy(() => import('./RecoveryCodeDialog'));\nexport const RecoveryCredentialsContainer: ComponentType<any> = lazy(() => import('./RecoveryCredentialsContainer'));\nexport const ResetDialog: ComponentType<any> = lazy(() => import('./ResetDialog'));\n"],
5
+ "mappings": ";;;AAIA,SAA6BA,YAAY;AAKlC,IAAMC,mBAAuCD,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAME,aAAiCF,KAAK,MAAM,OAAO,4BAAA,CAAA;AACzD,IAAMG,mBAAuCH,KAAK,MAAM,OAAO,kCAAA,CAAA;AAC/D,IAAMI,qBAAyCJ,KAAK,MAAM,OAAO,oCAAA,CAAA;AACjE,IAAMK,+BAAmDL,KAAK,MAAM,OAAO,8CAAA,CAAA;AAC3E,IAAMM,cAAkCN,KAAK,MAAM,OAAO,6BAAA,CAAA;",
6
+ "names": ["lazy", "DevicesContainer", "JoinDialog", "ProfileContainer", "RecoveryCodeDialog", "RecoveryCredentialsContainer", "ResetDialog"]
7
+ }
@@ -1,28 +1,20 @@
1
1
  import {
2
2
  CreateAgent
3
- } from "./chunk-M43LJQ5U.mjs";
3
+ } from "./chunk-RPMM5NKJ.mjs";
4
4
  import {
5
5
  ClientCapabilities
6
- } from "./chunk-WNJRYPGG.mjs";
6
+ } from "./chunk-M37DHX5L.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/operations/create-agent.ts
10
10
  import * as Effect from "effect/Effect";
11
11
  import { Capability } from "@dxos/app-framework";
12
+ import { Operation } from "@dxos/compute";
12
13
  import { invariant } from "@dxos/invariant";
13
- import { Operation } from "@dxos/operation";
14
14
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-agent.ts";
15
15
  var handler = CreateAgent.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
16
16
  const client = yield* Capability.get(ClientCapabilities.Client);
17
- invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", {
18
- F: __dxlog_file,
19
- L: 18,
20
- S: this,
21
- A: [
22
- "client.services.services.EdgeAgentService",
23
- "'Missing EdgeAgentService'"
24
- ]
25
- });
17
+ invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 12, S: this, A: ["client.services.services.EdgeAgentService", "'Missing EdgeAgentService'"] });
26
18
  yield* Effect.promise(() => client.services.services.EdgeAgentService.createAgent(void 0, {
27
19
  timeout: 1e4
28
20
  }));
@@ -31,4 +23,4 @@ var create_agent_default = handler;
31
23
  export {
32
24
  create_agent_default as default
33
25
  };
34
- //# sourceMappingURL=create-agent-SS5SE35J.mjs.map
26
+ //# sourceMappingURL=create-agent-JV3EM3TV.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/create-agent.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { ClientCapabilities } from '../types';\nimport { CreateAgent } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateAgent> = CreateAgent.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.EdgeAgentService, 'Missing EdgeAgentService');\n yield* Effect.promise(() =>\n client.services.services.EdgeAgentService!.createAgent(undefined, { timeout: 10_000 }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAK1B,IAAA,eAA2DC;IAIrDC,UAAUC,YAAOC,KAASA,UAASC,YAAkB,kBAAA,aAAA;AACrD,QAAA,SAAcC,OAAQ,WACbF,IAAAA,mBAAkBC,MAAAA;YAA2CE,OAAS,SAAA,SAAA,kBAAA,4BAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,6CAAA,4BAAA,EAAA,CAAA;SAAO,eAAA,MAAA,OAAA,SAAA,SAAA,iBAAA,YAAA,QAAA;IAExF,SAAA;EAIJ,CAAA,CAAA;;;",
6
+ "names": ["Effect", "Capability", "Operation", "invariant", "CreateAgent", "invariant", "client", "services", "EdgeAgentService", "promise", "timeout"]
7
+ }
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CreateIdentity
3
- } from "./chunk-M43LJQ5U.mjs";
3
+ } from "./chunk-RPMM5NKJ.mjs";
4
4
  import {
5
5
  ClientCapabilities,
6
6
  ClientEvents
7
- } from "./chunk-WNJRYPGG.mjs";
7
+ } from "./chunk-M37DHX5L.mjs";
8
8
  import "./chunk-J5LGTIGS.mjs";
9
9
 
10
10
  // src/operations/create-identity.ts
11
11
  import * as Effect from "effect/Effect";
12
12
  import { Capabilities, Capability } from "@dxos/app-framework";
13
+ import { Operation } from "@dxos/compute";
13
14
  import { runAndForwardErrors } from "@dxos/effect";
14
- import { Operation } from "@dxos/operation";
15
- import { ObservabilityOperation } from "@dxos/plugin-observability/operations";
15
+ import { ObservabilityOperation } from "@dxos/plugin-observability";
16
16
  var handler = CreateIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* (profile) {
17
17
  const manager = yield* Capability.get(Capabilities.PluginManager);
18
18
  const client = yield* Capability.get(ClientCapabilities.Client);
@@ -27,4 +27,4 @@ var create_identity_default = handler;
27
27
  export {
28
28
  create_identity_default as default
29
29
  };
30
- //# sourceMappingURL=create-identity-PBEUEIPN.mjs.map
30
+ //# sourceMappingURL=create-identity-GNGOTH6D.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/create-identity.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Operation } from '@dxos/compute';\nimport { runAndForwardErrors } from '@dxos/effect';\nimport { ObservabilityOperation } from '@dxos/plugin-observability';\n\nimport { ClientEvents } from '../types';\nimport { ClientCapabilities } from '../types';\nimport { CreateIdentity } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateIdentity> = CreateIdentity.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (profile) {\n const manager = yield* Capability.get(Capabilities.PluginManager);\n const client = yield* Capability.get(ClientCapabilities.Client);\n const data = yield* Effect.promise(() => client.halo.createIdentity(profile));\n yield* Effect.promise(() => runAndForwardErrors(manager.activate(ClientEvents.IdentityCreated)));\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.create' });\n return data;\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,iBAAiB;AAC1B,SAASC,2BAA2B;AACpC,SAASC,8BAA8B;AAMvC,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBAAW,WAAWC,SAAO;AAClC,QAAMC,UAAU,OAAOC,WAAWC,IAAIC,aAAaC,aAAa;AAChE,QAAMC,SAAS,OAAOJ,WAAWC,IAAII,mBAAmBC,MAAM;AAC9D,QAAMC,OAAO,OAAcC,eAAQ,MAAMJ,OAAOK,KAAKC,eAAeZ,OAAAA,CAAAA;AACpE,SAAcU,eAAQ,MAAMG,oBAAoBZ,QAAQa,SAASC,aAAaC,eAAe,CAAA,CAAA;AAC7F,SAAOnB,UAAUoB,SAASC,uBAAuBC,WAAW;IAAEC,MAAM;EAAkB,CAAA;AACtF,SAAOX;AACT,CAAA,CAAA,CAAA;AAIJ,IAAA,0BAAef;",
6
+ "names": ["Effect", "Capabilities", "Capability", "Operation", "runAndForwardErrors", "ObservabilityOperation", "handler", "CreateIdentity", "pipe", "Operation", "withHandler", "fnUntraced", "profile", "manager", "Capability", "get", "Capabilities", "PluginManager", "client", "ClientCapabilities", "Client", "data", "promise", "halo", "createIdentity", "runAndForwardErrors", "activate", "ClientEvents", "IdentityCreated", "schedule", "ObservabilityOperation", "SendEvent", "name"]
7
+ }
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CreatePasskey
3
- } from "./chunk-M43LJQ5U.mjs";
3
+ } from "./chunk-RPMM5NKJ.mjs";
4
4
  import {
5
5
  ClientCapabilities
6
- } from "./chunk-WNJRYPGG.mjs";
6
+ } from "./chunk-M37DHX5L.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/operations/create-passkey.ts
@@ -12,21 +12,13 @@ import * as Match from "effect/Match";
12
12
  import { Capability } from "@dxos/app-framework";
13
13
  import { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from "@dxos/app-toolkit";
14
14
  import { PublicKey } from "@dxos/client";
15
+ import { Operation } from "@dxos/compute";
15
16
  import { invariant } from "@dxos/invariant";
16
- import { Operation } from "@dxos/operation";
17
17
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-passkey.ts";
18
18
  var handler = CreatePasskey.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
19
19
  const client = yield* Capability.get(ClientCapabilities.Client);
20
20
  const identity = client.halo.identity.get();
21
- invariant(identity, "Identity not available", {
22
- F: __dxlog_file,
23
- L: 22,
24
- S: this,
25
- A: [
26
- "identity",
27
- "'Identity not available'"
28
- ]
29
- });
21
+ invariant(identity, "Identity not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 16, S: this, A: ["identity", "'Identity not available'"] });
30
22
  const lookupKey = PublicKey.random();
31
23
  const { recoveryKey, algorithm } = yield* Match.value(supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
32
24
  const result = yield* Effect.promise(() => createNativePasskey({
@@ -67,29 +59,13 @@ var handler = CreatePasskey.pipe(Operation.withHandler(Effect.fnUntraced(functio
67
59
  }
68
60
  }
69
61
  }));
70
- invariant(credential, "Credential not available", {
71
- F: __dxlog_file,
72
- L: 65,
73
- S: this,
74
- A: [
75
- "credential",
76
- "'Credential not available'"
77
- ]
78
- });
62
+ invariant(credential, "Credential not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 57, S: this, A: ["credential", "'Credential not available'"] });
79
63
  return {
80
64
  recoveryKey: PublicKey.from(new Uint8Array(credential.response.getPublicKey())),
81
65
  algorithm: credential.response.getPublicKeyAlgorithm() === -7 ? "ES256" : "ED25519"
82
66
  };
83
67
  })));
84
- invariant(client.services.services.IdentityService, "IdentityService not available", {
85
- F: __dxlog_file,
86
- L: 74,
87
- S: this,
88
- A: [
89
- "client.services.services.IdentityService",
90
- "'IdentityService not available'"
91
- ]
92
- });
68
+ invariant(client.services.services.IdentityService, "IdentityService not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 63, S: this, A: ["client.services.services.IdentityService", "'IdentityService not available'"] });
93
69
  yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({
94
70
  data: {
95
71
  recoveryKey,
@@ -102,4 +78,4 @@ var create_passkey_default = handler;
102
78
  export {
103
79
  create_passkey_default as default
104
80
  };
105
- //# sourceMappingURL=create-passkey-JN6I5WMM.mjs.map
81
+ //# sourceMappingURL=create-passkey-NCP4XA7C.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/create-passkey.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Match from 'effect/Match';\n\nimport { Capability } from '@dxos/app-framework';\nimport { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from '@dxos/app-toolkit';\nimport { PublicKey } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { ClientCapabilities } from '../types';\nimport { CreatePasskey } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreatePasskey> = CreatePasskey.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n const identity = client.halo.identity.get();\n invariant(identity, 'Identity not available');\n\n const lookupKey = PublicKey.random();\n\n const { recoveryKey, algorithm } = yield* Match.value(supportsNativePasskeys()).pipe(\n Match.when(true, () =>\n Effect.gen(function* () {\n const result = yield* Effect.promise(() =>\n createNativePasskey({\n username: identity.did,\n userId: lookupKey.asUint8Array(),\n }),\n );\n const { publicKey, algorithm: alg } = extractPublicKeyFromAttestation(result.attestation_object);\n return {\n recoveryKey: PublicKey.from(publicKey),\n algorithm: alg === -7 ? 'ES256' : 'ED25519',\n };\n }),\n ),\n Match.orElse(() =>\n Effect.gen(function* () {\n const credential = yield* Effect.promise(() =>\n navigator.credentials.create({\n publicKey: {\n challenge: new Uint8Array(),\n rp: { id: location.hostname, name: 'Composer' },\n user: {\n id: lookupKey.asUint8Array() as Uint8Array<ArrayBuffer>,\n name: identity.did,\n displayName: identity.profile?.displayName ?? '',\n },\n pubKeyCredParams: [\n { type: 'public-key', alg: -8 },\n { type: 'public-key', alg: -7 },\n ],\n authenticatorSelection: {\n residentKey: 'required',\n requireResidentKey: true,\n },\n },\n }),\n );\n invariant(credential, 'Credential not available');\n return {\n recoveryKey: PublicKey.from(new Uint8Array((credential as any).response.getPublicKey())),\n algorithm: (credential as any).response.getPublicKeyAlgorithm() === -7 ? 'ES256' : 'ED25519',\n };\n }),\n ),\n );\n\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({\n data: {\n recoveryKey,\n algorithm,\n lookupKey,\n },\n }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,WAAW;AAEvB,SAASC,kBAAkB;AAC3B,SAASC,wBAAwBC,qBAAqBC,uCAAuC;AAC7F,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAK1B,IAAA,eAA6DC;IAIvD,UAAMC,cAAkBC,KAAKD,UAAY,YAAA,kBAAA,aAAA;AACzCE,QAAAA,SAAUF,OAAU,WAAA,IAAA,mBAAA,MAAA;AAEpB,QAAMG,WAAAA,OAAYC,KAAUC,SAAM,IAAA;AAElC,YAAQC,UAAW,0BAAuBC,EAAAA,YAAYC,YAAAA,GAAAA,cAA0BC,GAC9EF,IAAAA,GAAAA,MAAU,GAAC,CAAA,YACTG,0BAAW,EAAA,CAAA;oBACHC,UAAS,OAAOD;uBAElBE,UAAUZ,IAASa,OAAG,YAAA,uBAAA,CAAA,EAAA,KAAA,WAAA,MAAA,MAAA,WAAA,aAAA;mBACtBC,OAAkBC,eAAAA,MAAY,oBAAA;MAChC,UAAA,SAAA;MAEMC,QAAAA,UAAWC,aAAmBC;IACtC,CAAA,CAAA;UACEZ,EAAAA,WAAaF,WAAUe,IAAKH,IAAAA,gCAAAA,OAAAA,kBAAAA;WAC5BC;MACF,aAAA,UAAA,KAAA,SAAA;MAGJV,WAAa,QACXG,KAAU,UAAC;IACT;oBAEIM,MAAW,WAAA,aAAA;uBACTI,OAAeC,eAAAA,MAAAA,UAAAA,YAAAA,OAAAA;iBACX;mBAAMC,IAAAA,WAAiB;YAAEC;UAAiB,IAAA,SAAA;UAC9CC,MAAM;;cAEJD;UACAE,IAAAA,UAAazB,aAAS0B;UACxB,MAAA,SAAA;UACAC,aAAAA,SAAkB,SAAA,eAAA;;0BACR;;YAAsB,MAAA;YAC9B,KAAA;;;YAA8B,MAAA;YAC/B,KAAA;UACDC;;gCAEsB;UACtB,aAAA;UACF,oBAAA;QACF;MAEF1B;IACA,CAAA,CAAA;cACEI,YAAaF,4BAA+ByB,EAAAA,YAAmBC,YAASC,GAAAA,cAAY,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,cAAA,4BAAA,EAAA,CAAA;WACpFd;MACF,aAAA,UAAA,KAAA,IAAA,WAAA,WAAA,SAAA,aAAA,CAAA,CAAA;MACF,WAAA,WAAA,SAAA,sBAAA,MAAA,KAAA,UAAA;IAIJf;EACA,CAAA,CAAA,CAAOQ;YAEHsB,OAAM,SAAA,SAAA,iBAAA,iCAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,4CAAA,iCAAA,EAAA,CAAA;SACJ1B,eAAAA,MAAAA,OAAAA,SAAAA,SAAAA,gBAAAA,yBAAAA;UACAW;MACAd;MACF;MACF;IAEJ;EAIJ,CAAA,CAAA;;;",
6
+ "names": ["Effect", "Match", "Capability", "supportsNativePasskeys", "createNativePasskey", "extractPublicKeyFromAttestation", "PublicKey", "Operation", "invariant", "CreatePasskey", "identity", "halo", "invariant", "lookupKey", "PublicKey", "random", "recoveryKey", "Match", "supportsNativePasskeys", "pipe", "Effect", "result", "username", "did", "userId", "asUint8Array", "publicKey", "algorithm", "extractPublicKeyFromAttestation", "from", "challenge", "Uint8Array", "location", "name", "user", "displayName", "profile", "pubKeyCredParams", "authenticatorSelection", "credential", "response", "getPublicKey", "data"]
7
+ }
@@ -1,32 +1,24 @@
1
1
  import {
2
2
  RECOVERY_CODE_DIALOG
3
- } from "./chunk-ELAYKIQU.mjs";
3
+ } from "./chunk-VAIJSQYA.mjs";
4
4
  import {
5
5
  CreateRecoveryCode
6
- } from "./chunk-M43LJQ5U.mjs";
6
+ } from "./chunk-RPMM5NKJ.mjs";
7
7
  import {
8
8
  ClientCapabilities
9
- } from "./chunk-WNJRYPGG.mjs";
9
+ } from "./chunk-M37DHX5L.mjs";
10
10
  import "./chunk-J5LGTIGS.mjs";
11
11
 
12
12
  // src/operations/create-recovery-code.ts
13
13
  import * as Effect from "effect/Effect";
14
14
  import { Capability } from "@dxos/app-framework";
15
15
  import { LayoutOperation } from "@dxos/app-toolkit";
16
+ import { Operation } from "@dxos/compute";
16
17
  import { invariant } from "@dxos/invariant";
17
- import { Operation } from "@dxos/operation";
18
18
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-recovery-code.ts";
19
19
  var handler = CreateRecoveryCode.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
20
20
  const client = yield* Capability.get(ClientCapabilities.Client);
21
- invariant(client.services.services.IdentityService, "IdentityService not available", {
22
- F: __dxlog_file,
23
- L: 20,
24
- S: this,
25
- A: [
26
- "client.services.services.IdentityService",
27
- "'IdentityService not available'"
28
- ]
29
- });
21
+ invariant(client.services.services.IdentityService, "IdentityService not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 14, S: this, A: ["client.services.services.IdentityService", "'IdentityService not available'"] });
30
22
  const { recoveryCode } = yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({}));
31
23
  yield* Operation.invoke(LayoutOperation.UpdateDialog, {
32
24
  subject: RECOVERY_CODE_DIALOG,
@@ -41,4 +33,4 @@ var create_recovery_code_default = handler;
41
33
  export {
42
34
  create_recovery_code_default as default
43
35
  };
44
- //# sourceMappingURL=create-recovery-code-32I6IWZC.mjs.map
36
+ //# sourceMappingURL=create-recovery-code-L5LA3GAP.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/operations/create-recovery-code.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { LayoutOperation } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { invariant } from '@dxos/invariant';\n\nimport { RECOVERY_CODE_DIALOG } from '../constants';\nimport { ClientCapabilities } from '../types';\nimport { CreateRecoveryCode } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateRecoveryCode> = CreateRecoveryCode.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const client = yield* Capability.get(ClientCapabilities.Client);\n invariant(client.services.services.IdentityService, 'IdentityService not available');\n const { recoveryCode } = yield* Effect.promise(() =>\n client.services.services.IdentityService!.createRecoveryCredential({}),\n );\n yield* Operation.invoke(LayoutOperation.UpdateDialog, {\n subject: RECOVERY_CODE_DIALOG,\n blockAlign: 'start',\n type: 'alert',\n props: { code: recoveryCode },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
+ "mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAM1B,IAAA,eAAkEC;IAI5DC,UAAUC,mBAAgBC,KAASC,UAAAA,YAAiB,kBAAA,aAAA;AACpD,QAAM,SAAEC,OAAc,WAAUC,IAAAA,mBAC9BJ,MAAOC;AAET,YAAOI,OAAUC,SAAOC,SAAAA,iBAA4B,iCAAE,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,IAAA,GAAA,MAAA,GAAA,CAAA,4CAAA,iCAAA,EAAA,CAAA;QACpDC,EAAAA,aAASC,IAAAA,OAAAA,eAAAA,MAAAA,OAAAA,SAAAA,SAAAA,gBAAAA,yBAAAA,CAAAA,CAAAA,CAAAA;SACTC,UAAY,OAAA,gBAAA,cAAA;IACZC,SAAM;IACNC,YAAO;UAAEC;IAAmB,OAAA;MAC9B,MAAA;IACF;EAIJ,CAAA;;;",
6
+ "names": ["Effect", "Capability", "LayoutOperation", "Operation", "invariant", "CreateRecoveryCode", "invariant", "client", "services", "IdentityService", "recoveryCode", "Effect", "Operation", "invoke", "LayoutOperation", "subject", "RECOVERY_CODE_DIALOG", "blockAlign", "type", "props", "code"]
7
+ }