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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (406) hide show
  1. package/dist/lib/browser/{chunk-WNJRYPGG.mjs → chunk-M37DHX5L.mjs} +1 -1
  2. package/dist/lib/browser/{chunk-WNJRYPGG.mjs.map → chunk-M37DHX5L.mjs.map} +2 -2
  3. package/dist/lib/browser/{chunk-M43LJQ5U.mjs → chunk-RPMM5NKJ.mjs} +2 -2
  4. package/dist/lib/browser/chunk-RPMM5NKJ.mjs.map +7 -0
  5. package/dist/lib/browser/{chunk-ELAYKIQU.mjs → chunk-VAIJSQYA.mjs} +1 -1
  6. package/dist/lib/browser/{chunk-ELAYKIQU.mjs.map → chunk-VAIJSQYA.mjs.map} +2 -2
  7. package/dist/lib/browser/{create-agent-SS5SE35J.mjs → create-agent-JV3EM3TV.mjs} +5 -13
  8. package/dist/lib/browser/create-agent-JV3EM3TV.mjs.map +7 -0
  9. package/dist/lib/browser/{create-identity-PBEUEIPN.mjs → create-identity-ZITQKEVZ.mjs} +4 -4
  10. package/dist/lib/browser/create-identity-ZITQKEVZ.mjs.map +7 -0
  11. package/dist/lib/browser/{create-passkey-JN6I5WMM.mjs → create-passkey-NCP4XA7C.mjs} +7 -31
  12. package/dist/lib/browser/create-passkey-NCP4XA7C.mjs.map +7 -0
  13. package/dist/lib/browser/{create-recovery-code-32I6IWZC.mjs → create-recovery-code-L5LA3GAP.mjs} +6 -14
  14. package/dist/lib/browser/create-recovery-code-L5LA3GAP.mjs.map +7 -0
  15. package/dist/lib/browser/index.mjs +7 -127
  16. package/dist/lib/browser/index.mjs.map +4 -4
  17. package/dist/lib/browser/{join-identity-2BP4G2SD.mjs → join-identity-3W6PJLKN.mjs} +4 -4
  18. package/dist/lib/browser/{join-identity-2BP4G2SD.mjs.map → join-identity-3W6PJLKN.mjs.map} +1 -1
  19. package/dist/lib/browser/meta.json +1 -1
  20. package/dist/lib/browser/operations/index.mjs +3 -3
  21. package/dist/lib/browser/operations/index.mjs.map +3 -3
  22. package/dist/lib/browser/{recover-identity-LS6B5INB.mjs → recover-identity-KL6QY4GI.mjs} +4 -4
  23. package/dist/lib/browser/{recover-identity-LS6B5INB.mjs.map → recover-identity-KL6QY4GI.mjs.map} +1 -1
  24. package/dist/lib/browser/{redeem-passkey-OCIV6VCK.mjs → redeem-passkey-NDEWSJTM.mjs} +6 -22
  25. package/dist/lib/browser/redeem-passkey-NDEWSJTM.mjs.map +7 -0
  26. package/dist/lib/browser/{redeem-token-6BCRGKV6.mjs → redeem-token-YLWAVFXD.mjs} +5 -13
  27. package/dist/lib/browser/redeem-token-YLWAVFXD.mjs.map +7 -0
  28. package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs → reset-storage-OBHEGA6Z.mjs} +4 -4
  29. package/dist/lib/browser/{reset-storage-QJLTL7J3.mjs.map → reset-storage-OBHEGA6Z.mjs.map} +1 -1
  30. package/dist/lib/browser/{share-identity-YJEBJTPA.mjs → share-identity-FTFHFSZQ.mjs} +4 -4
  31. package/dist/lib/browser/{share-identity-YJEBJTPA.mjs.map → share-identity-FTFHFSZQ.mjs.map} +1 -1
  32. package/dist/lib/browser/testing/index.mjs.map +2 -2
  33. package/dist/lib/browser/translations.mjs +74 -0
  34. package/dist/lib/browser/translations.mjs.map +7 -0
  35. package/dist/lib/browser/types/index.mjs +1 -1
  36. package/dist/lib/node-esm/{chunk-SJ6FDER5.mjs → chunk-G77YYPR6.mjs} +2 -2
  37. package/dist/lib/node-esm/chunk-G77YYPR6.mjs.map +7 -0
  38. package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs → chunk-OHKM7GJW.mjs} +1 -1
  39. package/dist/lib/node-esm/{chunk-J5RWSQT6.mjs.map → chunk-OHKM7GJW.mjs.map} +2 -2
  40. package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs → chunk-UBY7FBQ7.mjs} +1 -1
  41. package/dist/lib/node-esm/{chunk-IT5LAIV3.mjs.map → chunk-UBY7FBQ7.mjs.map} +2 -2
  42. package/dist/lib/node-esm/{create-agent-QGEHMHBL.mjs → create-agent-Y4BPVDV7.mjs} +5 -13
  43. package/dist/lib/node-esm/create-agent-Y4BPVDV7.mjs.map +7 -0
  44. package/dist/lib/node-esm/{create-identity-EHRJQOO4.mjs → create-identity-367SQSX6.mjs} +4 -4
  45. package/dist/lib/node-esm/create-identity-367SQSX6.mjs.map +7 -0
  46. package/dist/lib/node-esm/{create-passkey-PFBHHBEQ.mjs → create-passkey-WMWK2ETT.mjs} +7 -31
  47. package/dist/lib/node-esm/create-passkey-WMWK2ETT.mjs.map +7 -0
  48. package/dist/lib/node-esm/{create-recovery-code-HBAM2A72.mjs → create-recovery-code-VJGE5HJL.mjs} +6 -14
  49. package/dist/lib/node-esm/create-recovery-code-VJGE5HJL.mjs.map +7 -0
  50. package/dist/lib/node-esm/index.mjs +7 -127
  51. package/dist/lib/node-esm/index.mjs.map +4 -4
  52. package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs → join-identity-IRIRO2VT.mjs} +4 -4
  53. package/dist/lib/node-esm/{join-identity-75JCKQHM.mjs.map → join-identity-IRIRO2VT.mjs.map} +1 -1
  54. package/dist/lib/node-esm/meta.json +1 -1
  55. package/dist/lib/node-esm/operations/index.mjs +3 -3
  56. package/dist/lib/node-esm/operations/index.mjs.map +3 -3
  57. package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs → recover-identity-LJCY4BCJ.mjs} +4 -4
  58. package/dist/lib/node-esm/{recover-identity-AKGNTUJI.mjs.map → recover-identity-LJCY4BCJ.mjs.map} +1 -1
  59. package/dist/lib/node-esm/{redeem-passkey-FZO3LZ57.mjs → redeem-passkey-PT7QWFJE.mjs} +6 -22
  60. package/dist/lib/node-esm/redeem-passkey-PT7QWFJE.mjs.map +7 -0
  61. package/dist/lib/node-esm/{redeem-token-IHHIAIQ2.mjs → redeem-token-BHKHEXJM.mjs} +5 -13
  62. package/dist/lib/node-esm/redeem-token-BHKHEXJM.mjs.map +7 -0
  63. package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs → reset-storage-VPUZJOUV.mjs} +4 -4
  64. package/dist/lib/node-esm/{reset-storage-S5MJITI3.mjs.map → reset-storage-VPUZJOUV.mjs.map} +1 -1
  65. package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs → share-identity-SZ3REIRC.mjs} +4 -4
  66. package/dist/lib/node-esm/{share-identity-QZLY3VHE.mjs.map → share-identity-SZ3REIRC.mjs.map} +1 -1
  67. package/dist/lib/node-esm/testing/index.mjs.map +2 -2
  68. package/dist/lib/node-esm/translations.mjs +75 -0
  69. package/dist/lib/node-esm/translations.mjs.map +7 -0
  70. package/dist/lib/node-esm/types/index.mjs +1 -1
  71. package/dist/types/src/ClientPlugin.d.ts +1 -0
  72. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  73. package/dist/types/src/{cli/plugin.d.ts → ClientPlugin.node.d.ts} +2 -1
  74. package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
  75. package/dist/types/src/ClientPlugin.test.d.ts +2 -0
  76. package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
  77. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  78. package/dist/types/src/capabilities/client.d.ts +1 -1
  79. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  80. package/dist/types/src/capabilities/index.d.ts +13 -13
  81. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  82. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  83. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
  84. package/dist/types/src/capabilities/node.d.ts +13 -13
  85. package/dist/types/src/capabilities/node.d.ts.map +1 -1
  86. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  87. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  88. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  89. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  90. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
  91. package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
  92. package/dist/types/src/commands/config/index.d.ts.map +1 -0
  93. package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
  94. package/dist/types/src/commands/config/view.d.ts.map +1 -0
  95. package/dist/types/src/commands/device/index.d.ts.map +1 -0
  96. package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
  97. package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
  98. package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
  99. package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
  100. package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
  101. package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
  102. package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
  103. package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
  104. package/dist/types/src/commands/device/util.d.ts.map +1 -0
  105. package/dist/types/src/commands/edge/index.d.ts.map +1 -0
  106. package/dist/types/src/commands/edge/status.d.ts.map +1 -0
  107. package/dist/types/src/commands/halo/create/create.d.ts +15 -0
  108. package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
  109. package/dist/types/src/commands/halo/create/create.test.d.ts.map +1 -0
  110. package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
  111. package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
  112. package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
  113. package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
  114. package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
  115. package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +2 -2
  116. package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
  117. package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
  118. package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
  119. package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
  120. package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
  121. package/dist/types/src/commands/halo/index.d.ts.map +1 -0
  122. package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
  123. package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
  124. package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
  125. package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
  126. package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
  127. package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
  128. package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
  129. package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
  130. package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
  131. package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
  132. package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
  133. package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
  134. package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
  135. package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
  136. package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
  137. package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
  138. package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
  139. package/dist/types/src/commands/halo/util.d.ts.map +1 -0
  140. package/dist/types/src/commands/index.d.ts.map +1 -0
  141. package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
  142. package/dist/types/src/commands/profile/create.d.ts.map +1 -0
  143. package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
  144. package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
  145. package/dist/types/src/commands/profile/import.d.ts.map +1 -0
  146. package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
  147. package/dist/types/src/commands/profile/index.d.ts.map +1 -0
  148. package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
  149. package/dist/types/src/commands/profile/list.d.ts.map +1 -0
  150. package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
  151. package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
  152. package/dist/types/src/commands/profile/util.d.ts.map +1 -0
  153. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
  154. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -165
  155. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
  156. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
  157. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
  158. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
  159. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
  160. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
  161. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
  162. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  163. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
  164. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +1 -1
  165. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
  166. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
  167. package/dist/types/src/index.d.ts +2 -1
  168. package/dist/types/src/index.d.ts.map +1 -1
  169. package/dist/types/src/operations/create-agent.d.ts +1 -1
  170. package/dist/types/src/operations/create-agent.d.ts.map +1 -1
  171. package/dist/types/src/operations/create-identity.d.ts +1 -1
  172. package/dist/types/src/operations/create-identity.d.ts.map +1 -1
  173. package/dist/types/src/operations/create-passkey.d.ts +1 -1
  174. package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
  175. package/dist/types/src/operations/create-recovery-code.d.ts +1 -1
  176. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -1
  177. package/dist/types/src/operations/definitions.d.ts +1 -1
  178. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  179. package/dist/types/src/operations/index.d.ts +1 -1
  180. package/dist/types/src/operations/index.d.ts.map +1 -1
  181. package/dist/types/src/operations/join-identity.d.ts +1 -1
  182. package/dist/types/src/operations/join-identity.d.ts.map +1 -1
  183. package/dist/types/src/operations/recover-identity.d.ts +1 -1
  184. package/dist/types/src/operations/recover-identity.d.ts.map +1 -1
  185. package/dist/types/src/operations/redeem-passkey.d.ts +1 -1
  186. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -1
  187. package/dist/types/src/operations/redeem-token.d.ts +1 -1
  188. package/dist/types/src/operations/redeem-token.d.ts.map +1 -1
  189. package/dist/types/src/operations/reset-storage.d.ts +1 -1
  190. package/dist/types/src/operations/reset-storage.d.ts.map +1 -1
  191. package/dist/types/src/operations/share-identity.d.ts +1 -1
  192. package/dist/types/src/operations/share-identity.d.ts.map +1 -1
  193. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
  194. package/dist/types/src/translations.d.ts.map +1 -1
  195. package/dist/types/src/types/capabilities.d.ts +1 -2
  196. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  197. package/dist/types/src/types/events.d.ts.map +1 -1
  198. package/dist/types/src/types/schema.d.ts.map +1 -1
  199. package/dist/types/tsconfig.tsbuildinfo +1 -1
  200. package/package.json +51 -58
  201. package/src/{cli/plugin.ts → ClientPlugin.node.ts} +4 -2
  202. package/src/ClientPlugin.test.ts +29 -0
  203. package/src/ClientPlugin.ts +6 -5
  204. package/src/capabilities/app-graph-builder.ts +1 -1
  205. package/src/capabilities/index.ts +1 -1
  206. package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
  207. package/src/capabilities/node.ts +1 -1
  208. package/src/capabilities/operation-handler.ts +1 -1
  209. package/src/capabilities/react-surface.tsx +13 -16
  210. package/src/capabilities/schema-defs.ts +29 -9
  211. package/src/{cli/commands → commands}/halo/create/create.test.ts +8 -3
  212. package/src/{cli/commands → commands}/halo/create/create.ts +1 -2
  213. package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +1 -1
  214. package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
  215. package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +2 -1
  216. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +2 -1
  217. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +1 -1
  218. package/src/containers/ResetDialog/ResetDialog.stories.tsx +2 -1
  219. package/src/index.ts +5 -1
  220. package/src/operations/create-agent.ts +1 -1
  221. package/src/operations/create-identity.ts +1 -1
  222. package/src/operations/create-passkey.ts +1 -1
  223. package/src/operations/create-recovery-code.ts +1 -1
  224. package/src/operations/definitions.ts +1 -1
  225. package/src/operations/index.ts +1 -1
  226. package/src/operations/join-identity.ts +1 -1
  227. package/src/operations/recover-identity.ts +1 -1
  228. package/src/operations/redeem-passkey.ts +1 -1
  229. package/src/operations/redeem-token.ts +1 -1
  230. package/src/operations/reset-storage.ts +1 -1
  231. package/src/operations/share-identity.ts +1 -1
  232. package/src/translations.ts +2 -3
  233. package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +0 -7
  234. package/dist/lib/browser/cli/index.mjs +0 -1060
  235. package/dist/lib/browser/cli/index.mjs.map +0 -7
  236. package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +0 -7
  237. package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +0 -7
  238. package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +0 -7
  239. package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +0 -7
  240. package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +0 -7
  241. package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +0 -7
  242. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +0 -7
  243. package/dist/lib/node-esm/cli/index.mjs +0 -1061
  244. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  245. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +0 -7
  246. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +0 -7
  247. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +0 -7
  248. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +0 -7
  249. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +0 -7
  250. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +0 -7
  251. package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
  252. package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
  253. package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
  254. package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
  255. package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
  256. package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
  257. package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
  258. package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
  259. package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
  260. package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
  261. package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
  262. package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
  263. package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
  264. package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
  265. package/dist/types/src/cli/commands/halo/create/create.d.ts +0 -15
  266. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
  267. package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
  268. package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
  269. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
  270. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
  271. package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
  272. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
  273. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
  274. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
  275. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
  276. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
  277. package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
  278. package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
  279. package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
  280. package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
  281. package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
  282. package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
  283. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
  284. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
  285. package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
  286. package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
  287. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
  288. package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
  289. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
  290. package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
  291. package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
  292. package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
  293. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
  294. package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
  295. package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
  296. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  297. package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
  298. package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
  299. package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
  300. package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
  301. package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
  302. package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
  303. package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
  304. package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
  305. package/dist/types/src/cli/index.d.ts +0 -2
  306. package/dist/types/src/cli/index.d.ts.map +0 -1
  307. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  308. package/dist/types/src/cli/testing/test-console.d.ts +0 -37
  309. package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
  310. package/src/cli/index.ts +0 -5
  311. package/src/cli/testing/test-console.ts +0 -87
  312. /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
  313. /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
  314. /package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +0 -0
  315. /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
  316. /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
  317. /package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +0 -0
  318. /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
  319. /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
  320. /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
  321. /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
  322. /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
  323. /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
  324. /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
  325. /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
  326. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
  327. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
  328. /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
  329. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
  330. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
  331. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +0 -0
  332. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
  333. /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
  334. /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
  335. /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
  336. /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
  337. /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
  338. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +0 -0
  339. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
  340. /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
  341. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
  342. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
  343. /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
  344. /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
  345. /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
  346. /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
  347. /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
  348. /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
  349. /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
  350. /package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +0 -0
  351. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  352. /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
  353. /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
  354. /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
  355. /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
  356. /package/src/{cli/commands → commands}/config/index.ts +0 -0
  357. /package/src/{cli/commands → commands}/config/view.ts +0 -0
  358. /package/src/{cli/commands → commands}/device/index.ts +0 -0
  359. /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
  360. /package/src/{cli/commands → commands}/device/info/info.test.ts +0 -0
  361. /package/src/{cli/commands → commands}/device/info/info.ts +0 -0
  362. /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
  363. /package/src/{cli/commands → commands}/device/list/list.test.ts +0 -0
  364. /package/src/{cli/commands → commands}/device/list/list.ts +0 -0
  365. /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
  366. /package/src/{cli/commands → commands}/device/update/update.ts +0 -0
  367. /package/src/{cli/commands → commands}/device/util.ts +0 -0
  368. /package/src/{cli/commands → commands}/edge/index.ts +0 -0
  369. /package/src/{cli/commands → commands}/edge/status.ts +0 -0
  370. /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
  371. /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
  372. /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
  373. /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
  374. /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
  375. /package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -0
  376. /package/src/{cli/commands → commands}/halo/credential/list/list.ts +0 -0
  377. /package/src/{cli/commands → commands}/halo/identity/identity.test.ts +0 -0
  378. /package/src/{cli/commands → commands}/halo/identity/identity.ts +0 -0
  379. /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
  380. /package/src/{cli/commands → commands}/halo/index.ts +0 -0
  381. /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
  382. /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
  383. /package/src/{cli/commands → commands}/halo/join/join.ts +0 -0
  384. /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
  385. /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
  386. /package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -0
  387. /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
  388. /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
  389. /package/src/{cli/commands → commands}/halo/recover/recover.ts +0 -0
  390. /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
  391. /package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -0
  392. /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
  393. /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
  394. /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
  395. /package/src/{cli/commands → commands}/halo/update/update.test.ts +0 -0
  396. /package/src/{cli/commands → commands}/halo/update/update.ts +0 -0
  397. /package/src/{cli/commands → commands}/halo/util.ts +0 -0
  398. /package/src/{cli/commands → commands}/index.ts +0 -0
  399. /package/src/{cli/commands → commands}/profile/create.ts +0 -0
  400. /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
  401. /package/src/{cli/commands → commands}/profile/import.ts +0 -0
  402. /package/src/{cli/commands → commands}/profile/index.ts +0 -0
  403. /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
  404. /package/src/{cli/commands → commands}/profile/list.ts +0 -0
  405. /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
  406. /package/src/{cli/commands → commands}/profile/util.ts +0 -0
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ShareIdentity
3
- } from "./chunk-M43LJQ5U.mjs";
3
+ } from "./chunk-RPMM5NKJ.mjs";
4
4
  import {
5
5
  Account
6
- } from "./chunk-WNJRYPGG.mjs";
6
+ } from "./chunk-M37DHX5L.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/operations/share-identity.ts
10
10
  import * as Effect from "effect/Effect";
11
11
  import { LayoutOperation, getSpacePath } from "@dxos/app-toolkit";
12
- import { Operation } from "@dxos/operation";
12
+ import { Operation } from "@dxos/compute";
13
13
  import { ObservabilityOperation } from "@dxos/plugin-observability/operations";
14
14
  var handler = ShareIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
15
15
  yield* Operation.invoke(LayoutOperation.SwitchWorkspace, {
@@ -28,4 +28,4 @@ var share_identity_default = handler;
28
28
  export {
29
29
  share_identity_default as default
30
30
  };
31
- //# sourceMappingURL=share-identity-YJEBJTPA.mjs.map
31
+ //# sourceMappingURL=share-identity-FTFHFSZQ.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/operations/share-identity.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { Account } from '../types';\nimport { ShareIdentity } from './definitions';\n\nconst handler: Operation.WithHandler<typeof ShareIdentity> = ShareIdentity.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(Account.id) });\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [`${getSpacePath(Account.id)}/${Account.Profile}`],\n });\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.share' });\n }),\n ),\n);\n\nexport default handler;\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { LayoutOperation, getSpacePath } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/compute';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { Account } from '../types';\nimport { ShareIdentity } from './definitions';\n\nconst handler: Operation.WithHandler<typeof ShareIdentity> = ShareIdentity.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n yield* Operation.invoke(LayoutOperation.SwitchWorkspace, { subject: getSpacePath(Account.id) });\n yield* Operation.invoke(LayoutOperation.Open, {\n subject: [`${getSpacePath(Account.id)}/${Account.Profile}`],\n });\n yield* Operation.schedule(ObservabilityOperation.SendEvent, { name: 'identity.share' });\n }),\n ),\n);\n\nexport default handler;\n"],
5
5
  "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiBC,oBAAoB;AAC9C,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AAKvC,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,aAAA;AAChB,SAAOF,UAAUG,OAAOC,gBAAgBC,iBAAiB;IAAEC,SAASC,aAAaC,QAAQC,EAAE;EAAE,CAAA;AAC7F,SAAOT,UAAUG,OAAOC,gBAAgBM,MAAM;IAC5CJ,SAAS;MAAC,GAAGC,aAAaC,QAAQC,EAAE,CAAA,IAAKD,QAAQG,OAAO;;EAC1D,CAAA;AACA,SAAOX,UAAUY,SAASC,uBAAuBC,WAAW;IAAEC,MAAM;EAAiB,CAAA;AACvF,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAelB;",
6
6
  "names": ["Effect", "LayoutOperation", "getSpacePath", "Operation", "ObservabilityOperation", "handler", "ShareIdentity", "pipe", "Operation", "withHandler", "fnUntraced", "invoke", "LayoutOperation", "SwitchWorkspace", "subject", "getSpacePath", "Account", "id", "Open", "Profile", "schedule", "ObservabilityOperation", "SendEvent", "name"]
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/testing/initializeIdentity.ts"],
4
4
  "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { PERSONAL_SPACE_TAG } from '@dxos/app-toolkit';\nimport { type Client } from '@dxos/client';\nimport { type Space } from '@dxos/client-protocol';\nimport { type Identity } from '@dxos/protocols/proto/dxos/client/services';\n\n/**\n * Create an identity and a personal space.\n * Returns the identity and space for further setup.\n */\nexport const initializeIdentity = (\n client: Client,\n): Effect.Effect<{ identity: Identity; personalSpace: Space }, never, never> =>\n Effect.gen(function* () {\n const identity = yield* Effect.promise(() => client.halo.createIdentity());\n const personalSpace = yield* Effect.promise(() => client.spaces.create({}, { tags: [PERSONAL_SPACE_TAG] }));\n yield* Effect.promise(() => personalSpace.waitUntilReady());\n return { identity, personalSpace };\n });\n"],
5
- "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,0BAA0B;AAS5B,IAAMC,qBAAqB,CAChCC,WAEOC,WAAI,aAAA;AACT,QAAMC,WAAW,OAAcC,eAAQ,MAAMH,OAAOI,KAAKC,eAAc,CAAA;AACvE,QAAMC,gBAAgB,OAAcH,eAAQ,MAAMH,OAAOO,OAAOC,OAAO,CAAC,GAAG;IAAEC,MAAM;MAACC;;EAAoB,CAAA,CAAA;AACxG,SAAcP,eAAQ,MAAMG,cAAcK,eAAc,CAAA;AACxD,SAAO;IAAET;IAAUI;EAAc;AACnC,CAAA;",
6
- "names": ["Effect", "PERSONAL_SPACE_TAG", "initializeIdentity", "client", "gen", "identity", "promise", "halo", "createIdentity", "personalSpace", "spaces", "create", "tags", "PERSONAL_SPACE_TAG", "waitUntilReady"]
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AAExB,SAASC,0BAA0B;AAS5B,IAAMC,qBAAqB,CAChCC,WAEOC,WAAI,aAAA;AACT,QAAMC,WAAW,OAAcC,eAAQ,MAAMH,OAAOI,KAAKC,eAAc,CAAA;AACvE,QAAMC,gBAAgB,OAAcH,eAAQ,MAAMH,OAAOO,OAAOC,OAAO,CAAC,GAAG;IAAEC,MAAM;MAACX;;EAAoB,CAAA,CAAA;AACxG,SAAcK,eAAQ,MAAMG,cAAcI,eAAc,CAAA;AACxD,SAAO;IAAER;IAAUI;EAAc;AACnC,CAAA;",
6
+ "names": ["Effect", "PERSONAL_SPACE_TAG", "initializeIdentity", "client", "gen", "identity", "promise", "halo", "createIdentity", "personalSpace", "spaces", "create", "tags", "waitUntilReady"]
7
7
  }
@@ -0,0 +1,74 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/translations.ts
4
+ import { translations as shellTranslations } from "@dxos/shell/react";
5
+ import { meta } from "#meta";
6
+ var pluginTranslations = [
7
+ {
8
+ "en-US": {
9
+ [meta.id]: {
10
+ "account.label": "User profile",
11
+ "profile.label": "Profile",
12
+ "profile.description": "User profile and account settings.",
13
+ "devices.label": "Devices",
14
+ "add-device.label": "Add device",
15
+ "devices-verbose.label": "Manage devices",
16
+ "add-device.description": "Authenticating another device is a two-step process. To get started, create a code using the button below.",
17
+ "devices.description": "Devices, cloud agents, and account access for this identity.",
18
+ "create-device-invitation.label": "Create code",
19
+ "qr-code.description": "Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.",
20
+ "security.label": "Security",
21
+ "reset-device.description": "Log out from this device, erasing all the data on this\xA0device.",
22
+ "join-new-identity.description": "Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log\xA0in.",
23
+ "recover-identity.description": "Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log\xA0in.",
24
+ "danger-zone.title": "Log out",
25
+ "danger-zone.description": "Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you\u2019d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer\xA0device invitation above.",
26
+ "display-name.label": "Display name",
27
+ "display-name.description": "Your name as it appears in the app.",
28
+ "display-name-input.placeholder": "Enter a name",
29
+ "icon.label": "Avatar",
30
+ "icon.description": "The emoji used to represent the user.",
31
+ "hue.label": "Color",
32
+ "hue.description": "The color used to represent you in the app, including as your avatar\u2019s background, your cursor as it appears to others, and the messages you send in group threads.",
33
+ "did.label": "DID",
34
+ "did.description": "Your unique ID.",
35
+ "open-user-account.label": "Open user account",
36
+ "manage-credentials-dialog.title": "Manage Account Recovery",
37
+ "credentials-list.label": "Recovery credentials",
38
+ "no-credentials.title": "WARNING: There is currently no way to recover your account.",
39
+ "no-credentials.message": "Create a recovery credential above to secure your\xA0account.",
40
+ "recovery-setup-dialog.title": "Account Security",
41
+ "recovery-setup-dialog.description": "In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password\xA0manager.",
42
+ "create-passkey.label": "Create Passkey",
43
+ // TODO(wittjosiah): At link to user-focused passkey information.
44
+ // Something like https://www.tomsguide.com/news/what-are-passkeys.
45
+ "create-passkey.description": "A passkey is a secure and easy to use credential that can be used to recover your\xA0account.",
46
+ "create-recovery-code.label": "Create Recovery Code",
47
+ "create-recovery-code.description": "A recovery code is 12 word phrase representing a private\xA0key.",
48
+ "recovery-code-dialog.title": "Recovery Code",
49
+ "recovery-code-dialog.description": "This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your\xA0devices.",
50
+ "recovery-code-dialog-warning-1.message": "NOTE: This code will not be displayed\xA0again.",
51
+ "recovery-code-dialog-warning-2.message": "It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your\xA0account.",
52
+ "recovery-code-confirmation.label": "Please confirm you have saved the\xA0code.",
53
+ "continue.label": "Continue",
54
+ "auth-code.message": "Authorization code",
55
+ "auth-other-device-emoji.message": "Authorization icon",
56
+ "cancel.label": "Cancel",
57
+ "join-new-identity.label": "Join an existing identity",
58
+ "qr.label": "QR Code",
59
+ "recover-identity.label": "Use a recovery code",
60
+ "reset-device.label": "Reset storage",
61
+ "reset-dialog.description": "Reset storage",
62
+ "reset-dialog.title": "Reset storage"
63
+ }
64
+ }
65
+ }
66
+ ];
67
+ var translations = [
68
+ ...pluginTranslations,
69
+ ...shellTranslations
70
+ ];
71
+ export {
72
+ translations
73
+ };
74
+ //# sourceMappingURL=translations.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/translations.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Resource } from '@dxos/react-ui';\nimport { translations as shellTranslations } from '@dxos/shell/react';\n\nimport { meta } from '#meta';\n\n// TODO(burdon): Disambiguate with sdk/shell\nconst pluginTranslations = [\n {\n 'en-US': {\n [meta.id]: {\n 'account.label': 'User profile',\n 'profile.label': 'Profile',\n 'profile.description': 'User profile and account settings.',\n 'devices.label': 'Devices',\n 'add-device.label': 'Add device',\n 'devices-verbose.label': 'Manage devices',\n 'add-device.description':\n 'Authenticating another device is a two-step process. To get started, create a code using the button below.',\n 'devices.description': 'Devices, cloud agents, and account access for this identity.',\n 'create-device-invitation.label': 'Create code',\n 'qr-code.description':\n 'Scan this QR code using the device you want to log in to, or copy the URL and share it with the new device.',\n 'security.label': 'Security',\n 'reset-device.description': 'Log out from this device, erasing all the data on this device.',\n 'join-new-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a QR code or URL to log in.',\n 'recover-identity.description':\n 'Log out from this device, erasing all the data currently on this device, and use a passkey or recovery code to log in.',\n 'danger-zone.title': 'Log out',\n 'danger-zone.description':\n 'Because Composer is decentralized, logging out entails erasing all the data on this device. If you have any data on this device that you’d like to keep, you can log in on a separate device using a passkey or complete a peer-to-peer device invitation above.',\n 'display-name.label': 'Display name',\n 'display-name.description': 'Your name as it appears in the app.',\n 'display-name-input.placeholder': 'Enter a name',\n 'icon.label': 'Avatar',\n 'icon.description': 'The emoji used to represent the user.',\n 'hue.label': 'Color',\n 'hue.description':\n '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.',\n 'did.label': 'DID',\n 'did.description': 'Your unique ID.',\n 'open-user-account.label': 'Open user account',\n 'manage-credentials-dialog.title': 'Manage Account Recovery',\n 'credentials-list.label': 'Recovery credentials',\n 'no-credentials.title': 'WARNING: There is currently no way to recover your account.',\n 'no-credentials.message': 'Create a recovery credential above to secure your account.',\n 'recovery-setup-dialog.title': 'Account Security',\n 'recovery-setup-dialog.description':\n 'In order to maintain access to your account you need to register a recovery credential. Passkeys are the recommended way to do this, they can be stored in your browser or in a password manager.',\n 'create-passkey.label': 'Create Passkey',\n // TODO(wittjosiah): At link to user-focused passkey information.\n // Something like https://www.tomsguide.com/news/what-are-passkeys.\n 'create-passkey.description':\n 'A passkey is a secure and easy to use credential that can be used to recover your account.',\n 'create-recovery-code.label': 'Create Recovery Code',\n 'create-recovery-code.description': 'A recovery code is 12 word phrase representing a private key.',\n 'recovery-code-dialog.title': 'Recovery Code',\n 'recovery-code-dialog.description':\n 'This is your identity recovery code, store it in a safe place. You can use it to recover your identity if you ever lose access to your devices.',\n 'recovery-code-dialog-warning-1.message': 'NOTE: This code will not be displayed again.',\n 'recovery-code-dialog-warning-2.message':\n 'It is your private key for recovering DXOS data. Anyone with this key will be able to gain access to your account.',\n 'recovery-code-confirmation.label': 'Please confirm you have saved the code.',\n 'continue.label': 'Continue',\n 'auth-code.message': 'Authorization code',\n 'auth-other-device-emoji.message': 'Authorization icon',\n 'cancel.label': 'Cancel',\n 'join-new-identity.label': 'Join an existing identity',\n 'qr.label': 'QR Code',\n 'recover-identity.label': 'Use a recovery code',\n 'reset-device.label': 'Reset storage',\n 'reset-dialog.description': 'Reset storage',\n 'reset-dialog.title': 'Reset storage',\n },\n },\n },\n] as const satisfies Resource[];\n\nexport const translations: Resource[] = [...pluginTranslations, ...shellTranslations];\n"],
5
+ "mappings": ";;;AAKA,SAASA,gBAAgBC,yBAAyB;AAElD,SAASC,YAAY;AAGrB,IAAMC,qBAAqB;EACzB;IACE,SAAS;MACP,CAACD,KAAKE,EAAE,GAAG;QACT,iBAAiB;QACjB,iBAAiB;QACjB,uBAAuB;QACvB,iBAAiB;QACjB,oBAAoB;QACpB,yBAAyB;QACzB,0BACE;QACF,uBAAuB;QACvB,kCAAkC;QAClC,uBACE;QACF,kBAAkB;QAClB,4BAA4B;QAC5B,iCACE;QACF,gCACE;QACF,qBAAqB;QACrB,2BACE;QACF,sBAAsB;QACtB,4BAA4B;QAC5B,kCAAkC;QAClC,cAAc;QACd,oBAAoB;QACpB,aAAa;QACb,mBACE;QACF,aAAa;QACb,mBAAmB;QACnB,2BAA2B;QAC3B,mCAAmC;QACnC,0BAA0B;QAC1B,wBAAwB;QACxB,0BAA0B;QAC1B,+BAA+B;QAC/B,qCACE;QACF,wBAAwB;;;QAGxB,8BACE;QACF,8BAA8B;QAC9B,oCAAoC;QACpC,8BAA8B;QAC9B,oCACE;QACF,0CAA0C;QAC1C,0CACE;QACF,oCAAoC;QACpC,kBAAkB;QAClB,qBAAqB;QACrB,mCAAmC;QACnC,gBAAgB;QAChB,2BAA2B;QAC3B,YAAY;QACZ,0BAA0B;QAC1B,sBAAsB;QACtB,4BAA4B;QAC5B,sBAAsB;MACxB;IACF;EACF;;AAGK,IAAMJ,eAA2B;KAAIG;KAAuBF;;",
6
+ "names": ["translations", "shellTranslations", "meta", "pluginTranslations", "id"]
7
+ }
@@ -3,7 +3,7 @@ import {
3
3
  ClientAction,
4
4
  ClientCapabilities,
5
5
  ClientEvents
6
- } from "../chunk-WNJRYPGG.mjs";
6
+ } from "../chunk-M37DHX5L.mjs";
7
7
  import "../chunk-J5LGTIGS.mjs";
8
8
  export {
9
9
  Account,
@@ -20,7 +20,7 @@ __export(definitions_exports, {
20
20
  import * as Schema from "effect/Schema";
21
21
  import { Capability } from "@dxos/app-framework";
22
22
  import { PublicKey } from "@dxos/client";
23
- import { Operation } from "@dxos/operation";
23
+ import { Operation } from "@dxos/compute";
24
24
  import { meta } from "#meta";
25
25
  var CLIENT_OPERATION = `${meta.id}.operation`;
26
26
  var IdentitySchema = Schema.Struct({
@@ -173,4 +173,4 @@ export {
173
173
  RedeemToken,
174
174
  definitions_exports
175
175
  };
176
- //# sourceMappingURL=chunk-SJ6FDER5.mjs.map
176
+ //# sourceMappingURL=chunk-G77YYPR6.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
+ }
@@ -11,4 +11,4 @@ export {
11
11
  RECOVERY_CODE_DIALOG,
12
12
  RESET_DIALOG
13
13
  };
14
- //# sourceMappingURL=chunk-J5RWSQT6.mjs.map
14
+ //# sourceMappingURL=chunk-OHKM7GJW.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
  }
@@ -130,4 +130,4 @@ export {
130
130
  ClientAction,
131
131
  Account
132
132
  };
133
- //# sourceMappingURL=chunk-IT5LAIV3.mjs.map
133
+ //# sourceMappingURL=chunk-UBY7FBQ7.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": ";;;AAIA,SAASA,kBAAkB;AAK3B,SAASC,YAAY;UAEJC,qBAAAA;sBACFC,SAASC,WAAWC,KAAa,GAAGC,KAAKC,EAAE,oBAAoB;sBAC/DC,SAASJ,WAAWC,KAAuB,GAAGC,KAAKC,EAAE,oBAAoB;sBACzEE,YAAYL,WAAWC,KAAwB,GAAGC,KAAKC,EAAE,uBAAuB;AAC/F,GAJiBL,uBAAAA,qBAAAA,CAAAA,EAAAA;;;;ACPjB,SAASQ,uBAAuB;AAEhC,SAASC,QAAAA,aAAY;UAEJC,eAAAA;gBACFC,cAAcC,gBAAgBC,KAAK,GAAGC,MAAKC,EAAE,qBAAqB;gBAClEC,cAAcJ,gBAAgBC,KAAK,GAAGC,MAAKC,EAAE,qBAAqB;gBAClEE,iBAAiBL,gBAAgBC,KAAK,GAAGC,MAAKC,EAAE,wBAAwB;gBACxEG,kBAAkBN,gBAAgBC,KAAK,GAAGC,MAAKC,EAAE,yBAAyB;gBAC1EI,cAAcP,gBAAgBC,KAAK,GAAGC,MAAKC,EAAE,qBAAqB;AACjF,GANiBL,iBAAAA,eAAAA,CAAAA,EAAAA;;;;ACHjB,YAAYU,YAAY;AAGxB,SAA0CC,iBAAiB;AAE3D,SAASC,QAAAA,aAAY;AAGrB,IAAMC,iBAAwBC,cAAO;EACnCC,aAAoBC,kBAAWC,SAAAA;EAC/BC,UAAiBC,gBAAgBH,kBAAWC,SAAAA,CAAAA;EAC5CG,SAAgBD,gBACPL,cAAO;IACZO,aAAoBF,gBAAgBG,aAAM;IAC1CC,WAAkBJ,gBAAgBG,aAAM;IACxCE,MAAaL,gBAAgBM,cAAO;MAAEC,KAAYJ;MAAQK,OAAcC;IAAI,CAAA,CAAA;EAC9E,CAAA,CAAA;AAEJ,CAAA;UAEiBC,eAAAA;AACf,QAAMC,gBAAuBhB,cAAO;IAClCO,aAAoBF,gBAAgBG,aAAM;IAC1CC,WAAkBJ,gBAAgBG,aAAM;IACxCE,MAAaL,gBAAgBM,cAAO;MAAEC,KAAYJ;MAAQK,OAAcC;IAAI,CAAA,CAAA;EAC9E,CAAA;EAEO,MAAMG,uBAA8BC,mBAAW,EAAmB,GAAGC,MAAKC,EAAE,2BAA2B;IAC5GC,OAAOL;IACPM,QAAQvB;EACV,CAAA,EAAA;EAAI;gBAHSkB,iBAAAA;EAKN,MAAMM,qBAA4BL,mBAAW,EAAiB,GAAGC,MAAKC,EAAE,yBAAyB;IACtGC,OAAcrB,cAAO;MACnBwB,gBAAuBnB,gBAAgBG,aAAM;IAC/C,CAAA;IACAc,QAAeG;EACjB,CAAA,EAAA;EAAI;gBALSF,eAAAA;EAON,MAAMG,sBAA6BR,mBAAW,EAAkB,GAAGC,MAAKC,EAAE,0BAA0B;IACzGC,OAAcI;IACdH,QAAeG;EACjB,CAAA,EAAA;EAAI;gBAHSC,gBAAAA;EAKN,MAAMC,wBAA+BT,mBAAW,EAAoB,GAAGC,MAAKC,EAAE,4BAA4B;IAC/GC,OAAcI;IACdH,QAAeG;EACjB,CAAA,EAAA;EAAI;gBAHSE,kBAAAA;EAKN,MAAMC,qBAA4BV,mBAAW,EAAiB,GAAGC,MAAKC,EAAE,yBAAyB;IACtGC,OAAcrB,cAAO;MACnB6B,MAAaxB,gBAAgBG,aAAM;IACrC,CAAA;IACAc,QAAeG;EACjB,CAAA,EAAA;EAAI;gBALSG,eAAAA;EAON,MAAME,oBAA2BZ,mBAAW,EAAgB,GAAGC,MAAKC,EAAE,wBAAwB;IACnGC,OAAcI;IACdH,QAAeG;EACjB,CAAA,EAAA;EAAI;gBAHSK,cAAAA;EAKN,MAAMC,2BAAkCb,mBAAW,EACxD,GAAGC,MAAKC,EAAE,gCACV;IACEC,OAAcI;IACdH,QAAeG;EACjB,CAAA,EAAA;EACC;gBANUM,qBAAAA;EAQN,MAAMC,sBAA6Bd,mBAAW,EAAkB,GAAGC,MAAKC,EAAE,0BAA0B;IACzGC,OAAcI;IACdH,QAAeG;EACjB,CAAA,EAAA;EAAI;gBAHSO,gBAAAA;EAKN,MAAMC,sBAA6Bf,mBAAW,EAAkB,GAAGC,MAAKC,EAAE,0BAA0B;IACzGC,OAAcI;IACdH,QAAeG;EACjB,CAAA,EAAA;EAAI;gBAHSQ,gBAAAA;EAKN,MAAMC,oBAA2BhB,mBAAW,EAAgB,GAAGC,MAAKC,EAAE,wBAAwB;IACnGC,OAAcrB,cAAO;MACnBmC,OAAc3B;IAChB,CAAA;IACAc,QAAeG;EACjB,CAAA,EAAA;EAAI;gBALSS,cAAAA;AAMf,GAjEiBnB,iBAAAA,eAAAA,CAAAA,EAAAA;UAsGAqB,UAAAA;AAEf,QAAMC,MAAM;WAGCjB,KAAK,IAAIiB,GAAAA;WAETC,UAAU,GAAGD,GAAAA;WACbE,UAAU,GAAGF,GAAAA;WACbG,WAAW,GAAGH,GAAAA;AAC7B,GAViBD,YAAAA,UAAAA,CAAAA,EAAAA;;;",
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
  }
@@ -1,29 +1,21 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  CreateAgent
4
- } from "./chunk-SJ6FDER5.mjs";
4
+ } from "./chunk-G77YYPR6.mjs";
5
5
  import {
6
6
  ClientCapabilities
7
- } from "./chunk-IT5LAIV3.mjs";
7
+ } from "./chunk-UBY7FBQ7.mjs";
8
8
  import "./chunk-HSLMI22Q.mjs";
9
9
 
10
10
  // src/operations/create-agent.ts
11
11
  import * as Effect from "effect/Effect";
12
12
  import { Capability } from "@dxos/app-framework";
13
+ import { Operation } from "@dxos/compute";
13
14
  import { invariant } from "@dxos/invariant";
14
- import { Operation } from "@dxos/operation";
15
15
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-agent.ts";
16
16
  var handler = CreateAgent.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
17
17
  const client = yield* Capability.get(ClientCapabilities.Client);
18
- invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", {
19
- F: __dxlog_file,
20
- L: 18,
21
- S: this,
22
- A: [
23
- "client.services.services.EdgeAgentService",
24
- "'Missing EdgeAgentService'"
25
- ]
26
- });
18
+ invariant(client.services.services.EdgeAgentService, "Missing EdgeAgentService", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 12, S: this, A: ["client.services.services.EdgeAgentService", "'Missing EdgeAgentService'"] });
27
19
  yield* Effect.promise(() => client.services.services.EdgeAgentService.createAgent(void 0, {
28
20
  timeout: 1e4
29
21
  }));
@@ -32,4 +24,4 @@ var create_agent_default = handler;
32
24
  export {
33
25
  create_agent_default as default
34
26
  };
35
- //# sourceMappingURL=create-agent-QGEHMHBL.mjs.map
27
+ //# sourceMappingURL=create-agent-Y4BPVDV7.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 { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  CreateIdentity
4
- } from "./chunk-SJ6FDER5.mjs";
4
+ } from "./chunk-G77YYPR6.mjs";
5
5
  import {
6
6
  ClientCapabilities,
7
7
  ClientEvents
8
- } from "./chunk-IT5LAIV3.mjs";
8
+ } from "./chunk-UBY7FBQ7.mjs";
9
9
  import "./chunk-HSLMI22Q.mjs";
10
10
 
11
11
  // src/operations/create-identity.ts
12
12
  import * as Effect from "effect/Effect";
13
13
  import { Capabilities, Capability } from "@dxos/app-framework";
14
+ import { Operation } from "@dxos/compute";
14
15
  import { runAndForwardErrors } from "@dxos/effect";
15
- import { Operation } from "@dxos/operation";
16
16
  import { ObservabilityOperation } from "@dxos/plugin-observability/operations";
17
17
  var handler = CreateIdentity.pipe(Operation.withHandler(Effect.fnUntraced(function* (profile) {
18
18
  const manager = yield* Capability.get(Capabilities.PluginManager);
@@ -28,4 +28,4 @@ var create_identity_default = handler;
28
28
  export {
29
29
  create_identity_default as default
30
30
  };
31
- //# sourceMappingURL=create-identity-EHRJQOO4.mjs.map
31
+ //# sourceMappingURL=create-identity-367SQSX6.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/operations';\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,10 +1,10 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  CreatePasskey
4
- } from "./chunk-SJ6FDER5.mjs";
4
+ } from "./chunk-G77YYPR6.mjs";
5
5
  import {
6
6
  ClientCapabilities
7
- } from "./chunk-IT5LAIV3.mjs";
7
+ } from "./chunk-UBY7FBQ7.mjs";
8
8
  import "./chunk-HSLMI22Q.mjs";
9
9
 
10
10
  // src/operations/create-passkey.ts
@@ -13,21 +13,13 @@ import * as Match from "effect/Match";
13
13
  import { Capability } from "@dxos/app-framework";
14
14
  import { supportsNativePasskeys, createNativePasskey, extractPublicKeyFromAttestation } from "@dxos/app-toolkit";
15
15
  import { PublicKey } from "@dxos/client";
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-passkey.ts";
19
19
  var handler = CreatePasskey.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
20
20
  const client = yield* Capability.get(ClientCapabilities.Client);
21
21
  const identity = client.halo.identity.get();
22
- invariant(identity, "Identity not available", {
23
- F: __dxlog_file,
24
- L: 22,
25
- S: this,
26
- A: [
27
- "identity",
28
- "'Identity not available'"
29
- ]
30
- });
22
+ invariant(identity, "Identity not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 16, S: this, A: ["identity", "'Identity not available'"] });
31
23
  const lookupKey = PublicKey.random();
32
24
  const { recoveryKey, algorithm } = yield* Match.value(supportsNativePasskeys()).pipe(Match.when(true, () => Effect.gen(function* () {
33
25
  const result = yield* Effect.promise(() => createNativePasskey({
@@ -68,29 +60,13 @@ var handler = CreatePasskey.pipe(Operation.withHandler(Effect.fnUntraced(functio
68
60
  }
69
61
  }
70
62
  }));
71
- invariant(credential, "Credential not available", {
72
- F: __dxlog_file,
73
- L: 65,
74
- S: this,
75
- A: [
76
- "credential",
77
- "'Credential not available'"
78
- ]
79
- });
63
+ invariant(credential, "Credential not available", { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 57, S: this, A: ["credential", "'Credential not available'"] });
80
64
  return {
81
65
  recoveryKey: PublicKey.from(new Uint8Array(credential.response.getPublicKey())),
82
66
  algorithm: credential.response.getPublicKeyAlgorithm() === -7 ? "ES256" : "ED25519"
83
67
  };
84
68
  })));
85
- invariant(client.services.services.IdentityService, "IdentityService not available", {
86
- F: __dxlog_file,
87
- L: 74,
88
- S: this,
89
- A: [
90
- "client.services.services.IdentityService",
91
- "'IdentityService not available'"
92
- ]
93
- });
69
+ 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'"] });
94
70
  yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({
95
71
  data: {
96
72
  recoveryKey,
@@ -103,4 +79,4 @@ var create_passkey_default = handler;
103
79
  export {
104
80
  create_passkey_default as default
105
81
  };
106
- //# sourceMappingURL=create-passkey-PFBHHBEQ.mjs.map
82
+ //# sourceMappingURL=create-passkey-WMWK2ETT.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,33 +1,25 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
2
  import {
3
3
  RECOVERY_CODE_DIALOG
4
- } from "./chunk-J5RWSQT6.mjs";
4
+ } from "./chunk-OHKM7GJW.mjs";
5
5
  import {
6
6
  CreateRecoveryCode
7
- } from "./chunk-SJ6FDER5.mjs";
7
+ } from "./chunk-G77YYPR6.mjs";
8
8
  import {
9
9
  ClientCapabilities
10
- } from "./chunk-IT5LAIV3.mjs";
10
+ } from "./chunk-UBY7FBQ7.mjs";
11
11
  import "./chunk-HSLMI22Q.mjs";
12
12
 
13
13
  // src/operations/create-recovery-code.ts
14
14
  import * as Effect from "effect/Effect";
15
15
  import { Capability } from "@dxos/app-framework";
16
16
  import { LayoutOperation } from "@dxos/app-toolkit";
17
+ import { Operation } from "@dxos/compute";
17
18
  import { invariant } from "@dxos/invariant";
18
- import { Operation } from "@dxos/operation";
19
19
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/operations/create-recovery-code.ts";
20
20
  var handler = CreateRecoveryCode.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
21
21
  const client = yield* Capability.get(ClientCapabilities.Client);
22
- invariant(client.services.services.IdentityService, "IdentityService not available", {
23
- F: __dxlog_file,
24
- L: 20,
25
- S: this,
26
- A: [
27
- "client.services.services.IdentityService",
28
- "'IdentityService not available'"
29
- ]
30
- });
22
+ 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'"] });
31
23
  const { recoveryCode } = yield* Effect.promise(() => client.services.services.IdentityService.createRecoveryCredential({}));
32
24
  yield* Operation.invoke(LayoutOperation.UpdateDialog, {
33
25
  subject: RECOVERY_CODE_DIALOG,
@@ -42,4 +34,4 @@ var create_recovery_code_default = handler;
42
34
  export {
43
35
  create_recovery_code_default as default
44
36
  };
45
- //# sourceMappingURL=create-recovery-code-HBAM2A72.mjs.map
37
+ //# sourceMappingURL=create-recovery-code-VJGE5HJL.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
+ }