@dxos/plugin-client 0.8.4-main.422d1c7879 → 0.8.4-main.4668b7de9b

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 (529) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +1 -1
  3. package/dist/lib/neutral/AccountContainer-FZ3IC6H4.mjs +182 -0
  4. package/dist/lib/neutral/AccountContainer-FZ3IC6H4.mjs.map +7 -0
  5. package/dist/lib/neutral/ClientPlugin.mjs +72 -0
  6. package/dist/lib/neutral/ClientPlugin.mjs.map +7 -0
  7. package/dist/lib/{browser/cli/index.mjs → neutral/ClientPlugin.node.mjs} +83 -93
  8. package/dist/lib/neutral/ClientPlugin.node.mjs.map +7 -0
  9. package/dist/lib/neutral/ClientPlugin.workerd.mjs +16 -0
  10. package/dist/lib/neutral/ClientPlugin.workerd.mjs.map +7 -0
  11. package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs +262 -0
  12. package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs.map +7 -0
  13. package/dist/lib/neutral/InvitationsContainer-ME722VKS.mjs +132 -0
  14. package/dist/lib/neutral/InvitationsContainer-ME722VKS.mjs.map +7 -0
  15. package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs +53 -0
  16. package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs.map +7 -0
  17. package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs +168 -0
  18. package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs.map +7 -0
  19. package/dist/lib/neutral/RecoveryCodeDialog-GBRH6ZSA.mjs +59 -0
  20. package/dist/lib/neutral/RecoveryCodeDialog-GBRH6ZSA.mjs.map +7 -0
  21. package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs +51 -0
  22. package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs.map +7 -0
  23. package/dist/lib/neutral/ResetDialog-HZ5OKKG4.mjs +57 -0
  24. package/dist/lib/neutral/ResetDialog-HZ5OKKG4.mjs.map +7 -0
  25. package/dist/lib/neutral/account-cache-4EKGEUJI.mjs +43 -0
  26. package/dist/lib/neutral/account-cache-4EKGEUJI.mjs.map +7 -0
  27. package/dist/lib/neutral/app-graph-builder-A74W7C36.mjs +145 -0
  28. package/dist/lib/neutral/app-graph-builder-A74W7C36.mjs.map +7 -0
  29. package/dist/lib/neutral/capabilities/index.mjs +34 -0
  30. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  31. package/dist/lib/neutral/capabilities/node.mjs +21 -0
  32. package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
  33. package/dist/lib/{browser/chunk-M43LJQ5U.mjs → neutral/chunk-D6HPCLTS.mjs} +36 -26
  34. package/dist/lib/neutral/chunk-D6HPCLTS.mjs.map +7 -0
  35. package/dist/lib/neutral/chunk-FVESSI4C.mjs +8 -0
  36. package/dist/lib/neutral/chunk-FVESSI4C.mjs.map +7 -0
  37. package/dist/lib/neutral/chunk-JEF2FQGB.mjs +27 -0
  38. package/dist/lib/neutral/chunk-JEF2FQGB.mjs.map +7 -0
  39. package/dist/lib/neutral/chunk-JOCCVODY.mjs +21 -0
  40. package/dist/lib/neutral/chunk-JOCCVODY.mjs.map +7 -0
  41. package/dist/lib/{browser/chunk-WNJRYPGG.mjs → neutral/chunk-TUK3ELUU.mjs} +8 -4
  42. package/dist/lib/neutral/chunk-TUK3ELUU.mjs.map +7 -0
  43. package/dist/lib/neutral/chunk-WWCVZG3K.mjs +13 -0
  44. package/dist/lib/neutral/chunk-WWCVZG3K.mjs.map +7 -0
  45. package/dist/lib/neutral/client-MCFHLJEA.mjs +62 -0
  46. package/dist/lib/neutral/client-MCFHLJEA.mjs.map +7 -0
  47. package/dist/lib/neutral/components/index.mjs +1 -0
  48. package/dist/lib/neutral/containers/index.mjs +23 -0
  49. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  50. package/dist/lib/{browser/create-agent-SS5SE35J.mjs → neutral/create-agent-6HLW4D3A.mjs} +5 -13
  51. package/dist/lib/neutral/create-agent-6HLW4D3A.mjs.map +7 -0
  52. package/dist/lib/{browser/create-identity-PBEUEIPN.mjs → neutral/create-identity-WV2CVZBS.mjs} +18 -6
  53. package/dist/lib/neutral/create-identity-WV2CVZBS.mjs.map +7 -0
  54. package/dist/lib/{browser/create-passkey-JN6I5WMM.mjs → neutral/create-passkey-FOXEMXGF.mjs} +7 -31
  55. package/dist/lib/neutral/create-passkey-FOXEMXGF.mjs.map +7 -0
  56. package/dist/lib/{browser/create-recovery-code-32I6IWZC.mjs → neutral/create-recovery-code-ZWDKLPH4.mjs} +6 -14
  57. package/dist/lib/neutral/create-recovery-code-ZWDKLPH4.mjs.map +7 -0
  58. package/dist/lib/neutral/hub-http-client-WOJUCDKV.mjs +19 -0
  59. package/dist/lib/neutral/hub-http-client-WOJUCDKV.mjs.map +7 -0
  60. package/dist/lib/neutral/index.mjs +23 -0
  61. package/dist/lib/{browser/join-identity-2BP4G2SD.mjs → neutral/join-identity-QEQFAE2S.mjs} +4 -4
  62. package/dist/lib/{browser/join-identity-2BP4G2SD.mjs.map → neutral/join-identity-QEQFAE2S.mjs.map} +1 -1
  63. package/dist/lib/neutral/layer-specs-FLXR263J.mjs +61 -0
  64. package/dist/lib/neutral/layer-specs-FLXR263J.mjs.map +7 -0
  65. package/dist/lib/neutral/meta.json +1 -0
  66. package/dist/lib/neutral/meta.mjs +8 -0
  67. package/dist/lib/neutral/migrations-7FTW55ER.mjs +23 -0
  68. package/dist/lib/neutral/migrations-7FTW55ER.mjs.map +7 -0
  69. package/dist/lib/neutral/navigation-handler-FWSGOXGG.mjs +46 -0
  70. package/dist/lib/neutral/navigation-handler-FWSGOXGG.mjs.map +7 -0
  71. package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs +13 -0
  72. package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs.map +7 -0
  73. package/dist/lib/neutral/operations/index.mjs +12 -0
  74. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  75. package/dist/lib/neutral/plugin.mjs +17 -0
  76. package/dist/lib/neutral/plugin.mjs.map +7 -0
  77. package/dist/lib/neutral/react-context-B5LXMHVM.mjs +23 -0
  78. package/dist/lib/neutral/react-context-B5LXMHVM.mjs.map +7 -0
  79. package/dist/lib/neutral/react-surface-DEKGWTCD.mjs +70 -0
  80. package/dist/lib/neutral/react-surface-DEKGWTCD.mjs.map +7 -0
  81. package/dist/lib/{browser/recover-identity-LS6B5INB.mjs → neutral/recover-identity-JNFKLCUD.mjs} +4 -4
  82. package/dist/lib/{browser/recover-identity-LS6B5INB.mjs.map → neutral/recover-identity-JNFKLCUD.mjs.map} +1 -1
  83. package/dist/lib/{browser/redeem-passkey-OCIV6VCK.mjs → neutral/redeem-passkey-4SBAI4AG.mjs} +6 -22
  84. package/dist/lib/neutral/redeem-passkey-4SBAI4AG.mjs.map +7 -0
  85. package/dist/lib/{browser/redeem-token-6BCRGKV6.mjs → neutral/redeem-token-POBD6TMN.mjs} +5 -13
  86. package/dist/lib/neutral/redeem-token-POBD6TMN.mjs.map +7 -0
  87. package/dist/lib/{browser/reset-storage-QJLTL7J3.mjs → neutral/reset-storage-LQKUV5RA.mjs} +4 -4
  88. package/dist/lib/{browser/reset-storage-QJLTL7J3.mjs.map → neutral/reset-storage-LQKUV5RA.mjs.map} +1 -1
  89. package/dist/lib/neutral/schema-defs-IHBCKTMM.mjs +51 -0
  90. package/dist/lib/neutral/schema-defs-IHBCKTMM.mjs.map +7 -0
  91. package/dist/lib/{browser/share-identity-YJEBJTPA.mjs → neutral/share-identity-KNQ2XNXV.mjs} +5 -5
  92. package/dist/lib/{browser/share-identity-YJEBJTPA.mjs.map → neutral/share-identity-KNQ2XNXV.mjs.map} +1 -1
  93. package/dist/lib/{browser → neutral}/testing/index.mjs +3 -0
  94. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  95. package/dist/lib/{browser/index.mjs → neutral/translations.mjs} +31 -73
  96. package/dist/lib/neutral/translations.mjs.map +7 -0
  97. package/dist/lib/{browser → neutral}/types/index.mjs +1 -1
  98. package/dist/lib/neutral/types/index.mjs.map +7 -0
  99. package/dist/types/src/ClientPlugin.d.ts +1 -0
  100. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  101. package/dist/types/src/{cli/plugin.d.ts → ClientPlugin.node.d.ts} +2 -1
  102. package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
  103. package/dist/types/src/ClientPlugin.test.d.ts +2 -0
  104. package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
  105. package/dist/types/src/ClientPlugin.workerd.d.ts +4 -0
  106. package/dist/types/src/ClientPlugin.workerd.d.ts.map +1 -0
  107. package/dist/types/src/capabilities/account-cache.d.ts +35 -0
  108. package/dist/types/src/capabilities/account-cache.d.ts.map +1 -0
  109. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  110. package/dist/types/src/capabilities/client.d.ts +1 -1
  111. package/dist/types/src/capabilities/client.d.ts.map +1 -1
  112. package/dist/types/src/capabilities/hub-http-client.d.ts +6 -0
  113. package/dist/types/src/capabilities/hub-http-client.d.ts.map +1 -0
  114. package/dist/types/src/capabilities/index.d.ts +47 -14
  115. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  116. package/dist/types/src/capabilities/layer-specs.d.ts +6 -0
  117. package/dist/types/src/capabilities/layer-specs.d.ts.map +1 -0
  118. package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
  119. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -1
  120. package/dist/types/src/capabilities/node.d.ts +18 -13
  121. package/dist/types/src/capabilities/node.d.ts.map +1 -1
  122. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  123. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  124. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  125. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  126. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -1
  127. package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
  128. package/dist/types/src/commands/config/index.d.ts.map +1 -0
  129. package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
  130. package/dist/types/src/commands/config/view.d.ts.map +1 -0
  131. package/dist/types/src/commands/device/index.d.ts.map +1 -0
  132. package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
  133. package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
  134. package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
  135. package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
  136. package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
  137. package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
  138. package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
  139. package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
  140. package/dist/types/src/commands/device/util.d.ts.map +1 -0
  141. package/dist/types/src/commands/edge/index.d.ts.map +1 -0
  142. package/dist/types/src/commands/edge/status.d.ts.map +1 -0
  143. package/dist/types/src/{cli/commands → commands}/halo/create/create.d.ts +2 -2
  144. package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
  145. package/dist/types/src/commands/halo/create/create.test.d.ts.map +1 -0
  146. package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
  147. package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
  148. package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
  149. package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
  150. package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
  151. package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +2 -2
  152. package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
  153. package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
  154. package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
  155. package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
  156. package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
  157. package/dist/types/src/commands/halo/index.d.ts.map +1 -0
  158. package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
  159. package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
  160. package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
  161. package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
  162. package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
  163. package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
  164. package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
  165. package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
  166. package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
  167. package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
  168. package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
  169. package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
  170. package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
  171. package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
  172. package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
  173. package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
  174. package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
  175. package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +1 -4
  176. package/dist/types/src/commands/halo/util.d.ts.map +1 -0
  177. package/dist/types/src/commands/index.d.ts.map +1 -0
  178. package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
  179. package/dist/types/src/commands/profile/create.d.ts.map +1 -0
  180. package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
  181. package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
  182. package/dist/types/src/commands/profile/import.d.ts.map +1 -0
  183. package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
  184. package/dist/types/src/commands/profile/index.d.ts.map +1 -0
  185. package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
  186. package/dist/types/src/commands/profile/list.d.ts.map +1 -0
  187. package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
  188. package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
  189. package/dist/types/src/commands/profile/util.d.ts.map +1 -0
  190. package/dist/types/src/constants.d.ts +4 -3
  191. package/dist/types/src/constants.d.ts.map +1 -1
  192. package/dist/types/src/containers/AccountContainer/AccountContainer.d.ts +3 -0
  193. package/dist/types/src/containers/AccountContainer/AccountContainer.d.ts.map +1 -0
  194. package/dist/types/src/containers/AccountContainer/index.d.ts +2 -0
  195. package/dist/types/src/containers/AccountContainer/index.d.ts.map +1 -0
  196. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
  197. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -165
  198. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
  199. package/dist/types/src/containers/InvitationsContainer/InvitationsContainer.d.ts +3 -0
  200. package/dist/types/src/containers/InvitationsContainer/InvitationsContainer.d.ts.map +1 -0
  201. package/dist/types/src/containers/InvitationsContainer/index.d.ts +2 -0
  202. package/dist/types/src/containers/InvitationsContainer/index.d.ts.map +1 -0
  203. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
  204. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -1
  205. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
  206. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
  207. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
  208. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
  209. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  210. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts +6 -1
  211. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
  212. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +2 -2
  213. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
  214. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
  215. package/dist/types/src/containers/index.d.ts +2 -0
  216. package/dist/types/src/containers/index.d.ts.map +1 -1
  217. package/dist/types/src/index.d.ts +2 -1
  218. package/dist/types/src/index.d.ts.map +1 -1
  219. package/dist/types/src/meta.d.ts +1 -1
  220. package/dist/types/src/meta.d.ts.map +1 -1
  221. package/dist/types/src/operations/create-agent.d.ts +1 -1
  222. package/dist/types/src/operations/create-agent.d.ts.map +1 -1
  223. package/dist/types/src/operations/create-identity.d.ts +1 -1
  224. package/dist/types/src/operations/create-identity.d.ts.map +1 -1
  225. package/dist/types/src/operations/create-passkey.d.ts +1 -1
  226. package/dist/types/src/operations/create-passkey.d.ts.map +1 -1
  227. package/dist/types/src/operations/create-recovery-code.d.ts +1 -1
  228. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -1
  229. package/dist/types/src/operations/definitions.d.ts +4 -4
  230. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  231. package/dist/types/src/operations/index.d.ts +1 -1
  232. package/dist/types/src/operations/index.d.ts.map +1 -1
  233. package/dist/types/src/operations/join-identity.d.ts +1 -1
  234. package/dist/types/src/operations/join-identity.d.ts.map +1 -1
  235. package/dist/types/src/operations/recover-identity.d.ts +1 -1
  236. package/dist/types/src/operations/recover-identity.d.ts.map +1 -1
  237. package/dist/types/src/operations/redeem-passkey.d.ts +1 -1
  238. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -1
  239. package/dist/types/src/operations/redeem-token.d.ts +1 -1
  240. package/dist/types/src/operations/redeem-token.d.ts.map +1 -1
  241. package/dist/types/src/operations/reset-storage.d.ts +1 -1
  242. package/dist/types/src/operations/reset-storage.d.ts.map +1 -1
  243. package/dist/types/src/operations/share-identity.d.ts +1 -1
  244. package/dist/types/src/operations/share-identity.d.ts.map +1 -1
  245. package/dist/types/src/plugin.d.ts +4 -0
  246. package/dist/types/src/plugin.d.ts.map +1 -0
  247. package/dist/types/src/state/account-cache.d.ts +42 -0
  248. package/dist/types/src/state/account-cache.d.ts.map +1 -0
  249. package/dist/types/src/state/use-hub-http.d.ts +8 -0
  250. package/dist/types/src/state/use-hub-http.d.ts.map +1 -0
  251. package/dist/types/src/testing/index.d.ts +1 -0
  252. package/dist/types/src/testing/index.d.ts.map +1 -1
  253. package/dist/types/src/testing/initializeIdentity.d.ts +5 -4
  254. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -1
  255. package/dist/types/src/translations.d.ts.map +1 -1
  256. package/dist/types/src/types/capabilities.d.ts +34 -0
  257. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  258. package/dist/types/src/types/events.d.ts.map +1 -1
  259. package/dist/types/src/types/schema.d.ts +20 -3
  260. package/dist/types/src/types/schema.d.ts.map +1 -1
  261. package/dist/types/tsconfig.tsbuildinfo +1 -1
  262. package/package.json +105 -62
  263. package/src/{cli/plugin.ts → ClientPlugin.node.ts} +12 -1
  264. package/src/ClientPlugin.test.ts +29 -0
  265. package/src/ClientPlugin.ts +18 -2
  266. package/src/ClientPlugin.workerd.ts +16 -0
  267. package/src/capabilities/account-cache.ts +25 -0
  268. package/src/capabilities/app-graph-builder.ts +20 -2
  269. package/src/capabilities/client.ts +1 -0
  270. package/src/capabilities/hub-http-client.ts +21 -0
  271. package/src/capabilities/index.ts +4 -1
  272. package/src/capabilities/layer-specs.ts +92 -0
  273. package/src/capabilities/navigation-handler/navigation-handler.ts +1 -1
  274. package/src/capabilities/node.ts +9 -1
  275. package/src/capabilities/operation-handler.ts +1 -1
  276. package/src/capabilities/react-surface.tsx +12 -0
  277. package/src/capabilities/schema-defs.ts +29 -9
  278. package/src/{cli/commands → commands}/halo/create/create.test.ts +11 -9
  279. package/src/{cli/commands → commands}/halo/create/create.ts +1 -1
  280. package/src/{cli/commands → commands}/halo/identity/identity.test.ts +4 -4
  281. package/src/{cli/commands → commands}/halo/identity/identity.ts +2 -2
  282. package/src/{cli/commands → commands}/halo/join/join.ts +2 -2
  283. package/src/{cli/commands → commands}/halo/recover/recover.ts +2 -2
  284. package/src/{cli/commands → commands}/halo/update/update.test.ts +5 -5
  285. package/src/{cli/commands → commands}/halo/update/update.ts +2 -2
  286. package/src/{cli/commands → commands}/halo/util.ts +2 -5
  287. package/src/constants.ts +5 -3
  288. package/src/containers/AccountContainer/AccountContainer.tsx +179 -0
  289. package/src/containers/AccountContainer/index.ts +5 -0
  290. package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +3 -4
  291. package/src/containers/DevicesContainer/DevicesContainer.tsx +1 -1
  292. package/src/containers/InvitationsContainer/InvitationsContainer.tsx +137 -0
  293. package/src/containers/InvitationsContainer/index.ts +5 -0
  294. package/src/containers/JoinDialog/JoinDialog.stories.tsx +2 -1
  295. package/src/containers/JoinDialog/JoinDialog.tsx +1 -1
  296. package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +2 -1
  297. package/src/containers/ProfileContainer/ProfileContainer.tsx +1 -1
  298. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +2 -1
  299. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +3 -4
  300. package/src/containers/ResetDialog/ResetDialog.stories.tsx +4 -3
  301. package/src/containers/ResetDialog/ResetDialog.tsx +9 -1
  302. package/src/containers/index.ts +2 -0
  303. package/src/index.ts +2 -1
  304. package/src/meta.ts +7 -4
  305. package/src/operations/create-agent.ts +1 -1
  306. package/src/operations/create-identity.ts +11 -3
  307. package/src/operations/create-passkey.ts +1 -1
  308. package/src/operations/create-recovery-code.ts +1 -1
  309. package/src/operations/definitions.ts +23 -15
  310. package/src/operations/index.ts +1 -1
  311. package/src/operations/join-identity.ts +1 -1
  312. package/src/operations/recover-identity.ts +2 -2
  313. package/src/operations/redeem-passkey.ts +1 -1
  314. package/src/operations/redeem-token.ts +1 -1
  315. package/src/operations/reset-storage.ts +1 -1
  316. package/src/operations/share-identity.ts +2 -2
  317. package/src/plugin.ts +11 -0
  318. package/src/state/account-cache.ts +33 -0
  319. package/src/state/use-hub-http.ts +32 -0
  320. package/src/testing/index.ts +1 -0
  321. package/src/testing/initializeIdentity.ts +10 -4
  322. package/src/translations.ts +34 -3
  323. package/src/types/capabilities.ts +7 -0
  324. package/src/types/schema.ts +6 -3
  325. package/dist/lib/browser/chunk-ELAYKIQU.mjs +0 -12
  326. package/dist/lib/browser/chunk-ELAYKIQU.mjs.map +0 -7
  327. package/dist/lib/browser/chunk-M43LJQ5U.mjs.map +0 -7
  328. package/dist/lib/browser/chunk-WNJRYPGG.mjs.map +0 -7
  329. package/dist/lib/browser/cli/index.mjs.map +0 -7
  330. package/dist/lib/browser/create-agent-SS5SE35J.mjs.map +0 -7
  331. package/dist/lib/browser/create-identity-PBEUEIPN.mjs.map +0 -7
  332. package/dist/lib/browser/create-passkey-JN6I5WMM.mjs.map +0 -7
  333. package/dist/lib/browser/create-recovery-code-32I6IWZC.mjs.map +0 -7
  334. package/dist/lib/browser/index.mjs.map +0 -7
  335. package/dist/lib/browser/meta.json +0 -1
  336. package/dist/lib/browser/operations/index.mjs +0 -13
  337. package/dist/lib/browser/operations/index.mjs.map +0 -7
  338. package/dist/lib/browser/redeem-passkey-OCIV6VCK.mjs.map +0 -7
  339. package/dist/lib/browser/redeem-token-6BCRGKV6.mjs.map +0 -7
  340. package/dist/lib/browser/testing/index.mjs.map +0 -7
  341. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  342. package/dist/lib/node-esm/chunk-IT5LAIV3.mjs +0 -133
  343. package/dist/lib/node-esm/chunk-IT5LAIV3.mjs.map +0 -7
  344. package/dist/lib/node-esm/chunk-J5RWSQT6.mjs +0 -14
  345. package/dist/lib/node-esm/chunk-J5RWSQT6.mjs.map +0 -7
  346. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs +0 -176
  347. package/dist/lib/node-esm/chunk-SJ6FDER5.mjs.map +0 -7
  348. package/dist/lib/node-esm/cli/index.mjs +0 -1060
  349. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  350. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs +0 -35
  351. package/dist/lib/node-esm/create-agent-QGEHMHBL.mjs.map +0 -7
  352. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs +0 -31
  353. package/dist/lib/node-esm/create-identity-EHRJQOO4.mjs.map +0 -7
  354. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs +0 -106
  355. package/dist/lib/node-esm/create-passkey-PFBHHBEQ.mjs.map +0 -7
  356. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs +0 -45
  357. package/dist/lib/node-esm/create-recovery-code-HBAM2A72.mjs.map +0 -7
  358. package/dist/lib/node-esm/index.mjs +0 -144
  359. package/dist/lib/node-esm/index.mjs.map +0 -7
  360. package/dist/lib/node-esm/join-identity-75JCKQHM.mjs +0 -28
  361. package/dist/lib/node-esm/join-identity-75JCKQHM.mjs.map +0 -7
  362. package/dist/lib/node-esm/meta.json +0 -1
  363. package/dist/lib/node-esm/operations/index.mjs +0 -14
  364. package/dist/lib/node-esm/operations/index.mjs.map +0 -7
  365. package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs +0 -27
  366. package/dist/lib/node-esm/recover-identity-AKGNTUJI.mjs.map +0 -7
  367. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs +0 -83
  368. package/dist/lib/node-esm/redeem-passkey-FZO3LZ57.mjs.map +0 -7
  369. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs +0 -38
  370. package/dist/lib/node-esm/redeem-token-IHHIAIQ2.mjs.map +0 -7
  371. package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs +0 -27
  372. package/dist/lib/node-esm/reset-storage-S5MJITI3.mjs.map +0 -7
  373. package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs +0 -32
  374. package/dist/lib/node-esm/share-identity-QZLY3VHE.mjs.map +0 -7
  375. package/dist/lib/node-esm/testing/index.mjs +0 -23
  376. package/dist/lib/node-esm/testing/index.mjs.map +0 -7
  377. package/dist/lib/node-esm/types/index.mjs +0 -15
  378. package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
  379. package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
  380. package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
  381. package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
  382. package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
  383. package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
  384. package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
  385. package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
  386. package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
  387. package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
  388. package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
  389. package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
  390. package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
  391. package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
  392. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
  393. package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
  394. package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
  395. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
  396. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
  397. package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
  398. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
  399. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
  400. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
  401. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
  402. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
  403. package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
  404. package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
  405. package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
  406. package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
  407. package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
  408. package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
  409. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
  410. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
  411. package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
  412. package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
  413. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
  414. package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
  415. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
  416. package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
  417. package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
  418. package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
  419. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
  420. package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
  421. package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
  422. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  423. package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
  424. package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
  425. package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
  426. package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
  427. package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
  428. package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
  429. package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
  430. package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
  431. package/dist/types/src/cli/index.d.ts +0 -2
  432. package/dist/types/src/cli/index.d.ts.map +0 -1
  433. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  434. package/dist/types/src/cli/testing/test-console.d.ts +0 -37
  435. package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
  436. package/src/cli/index.ts +0 -5
  437. package/src/cli/testing/test-console.ts +0 -87
  438. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  439. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
  440. /package/dist/lib/{browser/types → neutral/components}/index.mjs.map +0 -0
  441. /package/dist/lib/{node-esm/types → neutral}/index.mjs.map +0 -0
  442. /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/meta.mjs.map} +0 -0
  443. /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
  444. /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
  445. /package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +0 -0
  446. /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
  447. /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
  448. /package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +0 -0
  449. /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
  450. /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
  451. /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
  452. /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
  453. /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
  454. /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
  455. /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
  456. /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
  457. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
  458. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
  459. /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
  460. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
  461. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
  462. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +0 -0
  463. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
  464. /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
  465. /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
  466. /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
  467. /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
  468. /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
  469. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +0 -0
  470. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
  471. /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
  472. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
  473. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
  474. /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
  475. /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
  476. /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
  477. /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
  478. /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
  479. /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
  480. /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
  481. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  482. /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
  483. /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
  484. /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
  485. /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
  486. /package/src/{cli/commands → commands}/config/index.ts +0 -0
  487. /package/src/{cli/commands → commands}/config/view.ts +0 -0
  488. /package/src/{cli/commands → commands}/device/index.ts +0 -0
  489. /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
  490. /package/src/{cli/commands → commands}/device/info/info.test.ts +0 -0
  491. /package/src/{cli/commands → commands}/device/info/info.ts +0 -0
  492. /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
  493. /package/src/{cli/commands → commands}/device/list/list.test.ts +0 -0
  494. /package/src/{cli/commands → commands}/device/list/list.ts +0 -0
  495. /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
  496. /package/src/{cli/commands → commands}/device/update/update.ts +0 -0
  497. /package/src/{cli/commands → commands}/device/util.ts +0 -0
  498. /package/src/{cli/commands → commands}/edge/index.ts +0 -0
  499. /package/src/{cli/commands → commands}/edge/status.ts +0 -0
  500. /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
  501. /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
  502. /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
  503. /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
  504. /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
  505. /package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -0
  506. /package/src/{cli/commands → commands}/halo/credential/list/list.ts +0 -0
  507. /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
  508. /package/src/{cli/commands → commands}/halo/index.ts +0 -0
  509. /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
  510. /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
  511. /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
  512. /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
  513. /package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -0
  514. /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
  515. /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
  516. /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
  517. /package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -0
  518. /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
  519. /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
  520. /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
  521. /package/src/{cli/commands → commands}/index.ts +0 -0
  522. /package/src/{cli/commands → commands}/profile/create.ts +0 -0
  523. /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
  524. /package/src/{cli/commands → commands}/profile/import.ts +0 -0
  525. /package/src/{cli/commands → commands}/profile/index.ts +0 -0
  526. /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
  527. /package/src/{cli/commands → commands}/profile/list.ts +0 -0
  528. /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
  529. /package/src/{cli/commands → commands}/profile/util.ts +0 -0
@@ -1,16 +1,16 @@
1
- import "../chunk-J5LGTIGS.mjs";
1
+ import "./chunk-J5LGTIGS.mjs";
2
2
 
3
- // src/cli/plugin.ts
3
+ // src/ClientPlugin.node.ts
4
4
  import { ActivationEvents, Capability, Plugin as Plugin2 } from "@dxos/app-framework";
5
5
  import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
6
- import { Client, OperationHandler, SchemaDefs } from "#capabilities";
6
+ import { Client, LayerSpecs, Migrations, OperationHandler, SchemaDefs } from "#capabilities";
7
7
  import { meta } from "#meta";
8
8
  import { ClientEvents } from "#types";
9
9
 
10
- // src/cli/commands/config/index.ts
10
+ // src/commands/config/index.ts
11
11
  import * as Command2 from "@effect/cli/Command";
12
12
 
13
- // src/cli/commands/config/view.ts
13
+ // src/commands/config/view.ts
14
14
  import * as Command from "@effect/cli/Command";
15
15
  import * as Console from "effect/Console";
16
16
  import * as Effect from "effect/Effect";
@@ -30,15 +30,15 @@ var view = Command.make("view", {}, Effect.fnUntraced(function* () {
30
30
  }
31
31
  }));
32
32
 
33
- // src/cli/commands/config/index.ts
33
+ // src/commands/config/index.ts
34
34
  var config = Command2.make("config").pipe(Command2.withDescription("Config commands."), Command2.withSubcommands([
35
35
  view
36
36
  ]));
37
37
 
38
- // src/cli/commands/device/index.ts
38
+ // src/commands/device/index.ts
39
39
  import * as Command6 from "@effect/cli/Command";
40
40
 
41
- // src/cli/commands/device/info/info.ts
41
+ // src/commands/device/info/info.ts
42
42
  import * as Command3 from "@effect/cli/Command";
43
43
  import * as Console2 from "effect/Console";
44
44
  import * as Effect2 from "effect/Effect";
@@ -47,7 +47,7 @@ import { print } from "@dxos/cli-util";
47
47
  import { ClientService } from "@dxos/client";
48
48
  import { DeviceType as DeviceType2 } from "@dxos/protocols/proto/dxos/halo/credentials";
49
49
 
50
- // src/cli/commands/device/util.ts
50
+ // src/commands/device/util.ts
51
51
  import { FormBuilder } from "@dxos/cli-util";
52
52
  import { Device, DeviceKind, DeviceType } from "@dxos/client/halo";
53
53
  var maybeTruncateKey = (key, truncate = false) => truncate ? key.truncate() : key.toHex();
@@ -80,7 +80,7 @@ var printDevices = (devices) => {
80
80
  return devices.map(printDevice);
81
81
  };
82
82
 
83
- // src/cli/commands/device/info/info.ts
83
+ // src/commands/device/info/info.ts
84
84
  var handler = Effect2.fn(function* () {
85
85
  const { json } = yield* CommandConfig2;
86
86
  const client = yield* ClientService;
@@ -109,7 +109,7 @@ var handler = Effect2.fn(function* () {
109
109
  });
110
110
  var info = Command3.make("info", {}, handler).pipe(Command3.withDescription("Show device info."));
111
111
 
112
- // src/cli/commands/device/list/list.ts
112
+ // src/commands/device/list/list.ts
113
113
  import * as Command4 from "@effect/cli/Command";
114
114
  import * as Console3 from "effect/Console";
115
115
  import * as Effect3 from "effect/Effect";
@@ -129,7 +129,7 @@ var handler2 = Effect3.fn(function* () {
129
129
  });
130
130
  var list = Command4.make("list", {}, handler2).pipe(Command4.withDescription("List devices."));
131
131
 
132
- // src/cli/commands/device/update/update.ts
132
+ // src/commands/device/update/update.ts
133
133
  import * as Command5 from "@effect/cli/Command";
134
134
  import * as Options from "@effect/cli/Options";
135
135
  import * as Console4 from "effect/Console";
@@ -180,17 +180,17 @@ var update = Command5.make("update", {
180
180
  label: Options.text("label").pipe(Options.withDescription("The device label."))
181
181
  }, handler3).pipe(Command5.withDescription("Update device label."));
182
182
 
183
- // src/cli/commands/device/index.ts
183
+ // src/commands/device/index.ts
184
184
  var device = Command6.make("device").pipe(Command6.withDescription("Manage HALO devices."), Command6.withSubcommands([
185
185
  info,
186
186
  list,
187
187
  update
188
188
  ]));
189
189
 
190
- // src/cli/commands/edge/index.ts
190
+ // src/commands/edge/index.ts
191
191
  import * as Command8 from "@effect/cli/Command";
192
192
 
193
- // src/cli/commands/edge/status.ts
193
+ // src/commands/edge/status.ts
194
194
  import * as Command7 from "@effect/cli/Command";
195
195
  import * as Console5 from "effect/Console";
196
196
  import * as Effect5 from "effect/Effect";
@@ -199,15 +199,12 @@ import { CommandConfig as CommandConfig5 } from "@dxos/cli-util";
199
199
  import { ClientService as ClientService4 } from "@dxos/client";
200
200
  import { createEdgeIdentity } from "@dxos/client/edge";
201
201
  import { Context } from "@dxos/context";
202
- var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/cli/commands/edge/status.ts";
202
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/edge/status.ts";
203
203
  var getStatus = () => Effect5.gen(function* () {
204
204
  const client = yield* ClientService4;
205
205
  const identity2 = createEdgeIdentity(client);
206
206
  client.edge.http.setIdentity(identity2);
207
- const status2 = yield* Effect5.tryPromise(() => client.edge.http.getStatus(Context.default(void 0, {
208
- F: __dxlog_file,
209
- L: 20
210
- })));
207
+ const status2 = yield* Effect5.tryPromise(() => client.edge.http.getStatus(Context.default(void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 16 })));
211
208
  if (yield* CommandConfig5.isJson) {
212
209
  yield* Console5.log(JSON.stringify(status2, null, 2));
213
210
  } else if (status2.problems.length > 0) {
@@ -229,15 +226,15 @@ var getStatus = () => Effect5.gen(function* () {
229
226
  );
230
227
  var status = Command7.make("status", {}, getStatus).pipe(Command7.withDescription("Get the EDGE status for the current identity."));
231
228
 
232
- // src/cli/commands/edge/index.ts
229
+ // src/commands/edge/index.ts
233
230
  var edge = Command8.make("edge").pipe(Command8.withDescription("EDGE commands."), Command8.withSubcommands([
234
231
  status
235
232
  ]));
236
233
 
237
- // src/cli/commands/halo/index.ts
234
+ // src/commands/halo/index.ts
238
235
  import * as Command18 from "@effect/cli/Command";
239
236
 
240
- // src/cli/commands/halo/create/create.ts
237
+ // src/commands/halo/create/create.ts
241
238
  import * as Command9 from "@effect/cli/Command";
242
239
  import * as Options2 from "@effect/cli/Options";
243
240
  import * as Console6 from "effect/Console";
@@ -253,26 +250,18 @@ import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata
253
250
  import { MembershipPolicy } from "@dxos/protocols/proto/dxos/halo/credentials";
254
251
  import { ClientOperation } from "#operations";
255
252
 
256
- // src/cli/commands/halo/util.ts
253
+ // src/commands/halo/util.ts
257
254
  import { FormBuilder as FormBuilder2 } from "@dxos/cli-util";
258
255
  var printIdentity = (identity2) => FormBuilder2.make({
259
256
  title: "Identity"
260
- }).pipe(FormBuilder2.set("identityKey", identity2.identityKey.truncate()), FormBuilder2.set("displayName", identity2.profile?.displayName ?? "<none>"), FormBuilder2.build);
257
+ }).pipe(FormBuilder2.set("identityDid", identity2.identityDid), FormBuilder2.set("displayName", identity2.profile?.displayName ?? "<none>"), FormBuilder2.build);
261
258
 
262
- // src/cli/commands/halo/create/create.ts
263
- var __dxlog_file2 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/cli/commands/halo/create/create.ts";
259
+ // src/commands/halo/create/create.ts
260
+ var __dxlog_file2 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/halo/create/create.ts";
264
261
  var handler4 = Effect6.fn(function* ({ agent, displayName }) {
265
262
  const { json } = yield* CommandConfig6;
266
263
  const client = yield* ClientService5;
267
- invariant(!client.halo.identity.get(), "Identity already exists", {
268
- F: __dxlog_file2,
269
- L: 34,
270
- S: this,
271
- A: [
272
- "!client.halo.identity.get()",
273
- "'Identity already exists'"
274
- ]
275
- });
264
+ invariant(!client.halo.identity.get(), "Identity already exists", { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 23, S: this, A: ["!client.halo.identity.get()", "'Identity already exists'"] });
276
265
  const manager = yield* Plugin.Service;
277
266
  const { invoke } = manager.capabilities.get(Capabilities.OperationInvoker);
278
267
  const identity2 = yield* invoke(ClientOperation.CreateIdentity, {
@@ -294,7 +283,7 @@ var handler4 = Effect6.fn(function* ({ agent, displayName }) {
294
283
  }).pipe(Effect6.provide(spaceLayer(Option2.some(space.id))));
295
284
  if (json) {
296
285
  yield* Console6.log(JSON.stringify({
297
- identityKey: identity2.identityKey.toHex(),
286
+ identityDid: identity2.identityDid,
298
287
  displayName: identity2.profile?.displayName
299
288
  }, null, 2));
300
289
  } else {
@@ -308,10 +297,10 @@ var create = Command9.make("create", {
308
297
  displayName: Options2.text("displayName").pipe(Options2.withDescription("The display name of the identity."), Options2.optional)
309
298
  }, handler4).pipe(Command9.withDescription("Create a new identity."));
310
299
 
311
- // src/cli/commands/halo/credential/index.ts
300
+ // src/commands/halo/credential/index.ts
312
301
  import * as Command12 from "@effect/cli/Command";
313
302
 
314
- // src/cli/commands/halo/credential/add/add.ts
303
+ // src/commands/halo/credential/add/add.ts
315
304
  import * as Args from "@effect/cli/Args";
316
305
  import * as Command10 from "@effect/cli/Command";
317
306
  import * as Prompt from "@effect/cli/Prompt";
@@ -322,7 +311,7 @@ import { CommandConfig as CommandConfig7 } from "@dxos/cli-util";
322
311
  import { ClientService as ClientService6 } from "@dxos/client";
323
312
  import { invariant as invariant2 } from "@dxos/invariant";
324
313
  import { schema } from "@dxos/protocols/proto";
325
- var __dxlog_file3 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/cli/commands/halo/credential/add/add.ts";
314
+ var __dxlog_file3 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/halo/credential/add/add.ts";
326
315
  var handler5 = Effect7.fn(function* ({ credential: credential2 }) {
327
316
  const { json } = yield* CommandConfig7;
328
317
  const client = yield* ClientService6;
@@ -332,15 +321,7 @@ var handler5 = Effect7.fn(function* ({ credential: credential2 }) {
332
321
  message: "Enter credential (hex string)"
333
322
  }).pipe(Prompt.run);
334
323
  }
335
- invariant2(credentialHex, "Invalid credential.", {
336
- F: __dxlog_file3,
337
- L: 26,
338
- S: this,
339
- A: [
340
- "credentialHex",
341
- "'Invalid credential.'"
342
- ]
343
- });
324
+ invariant2(credentialHex, "Invalid credential.", { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 23, S: this, A: ["credentialHex", "'Invalid credential.'"] });
344
325
  const identity2 = client.halo.identity;
345
326
  if (!identity2) {
346
327
  if (json) {
@@ -397,7 +378,7 @@ var add = Command10.make("add", {
397
378
  }).pipe(Args.withDescription("Credential as hex string."), Args.optional)
398
379
  }, handler5).pipe(Command10.withDescription("Import credential into HALO."));
399
380
 
400
- // src/cli/commands/halo/credential/list/list.ts
381
+ // src/commands/halo/credential/list/list.ts
401
382
  import * as Command11 from "@effect/cli/Command";
402
383
  import * as Options3 from "@effect/cli/Options";
403
384
  import * as Console8 from "effect/Console";
@@ -468,13 +449,13 @@ var list2 = Command11.make("list", {
468
449
  delay: Options3.integer("delay").pipe(Options3.withDescription("Delay in milliseconds before listing."), Options3.withDefault(250))
469
450
  }, handler6).pipe(Command11.withDescription("List HALO credentials."));
470
451
 
471
- // src/cli/commands/halo/credential/index.ts
452
+ // src/commands/halo/credential/index.ts
472
453
  var credential = Command12.make("credential").pipe(Command12.withDescription("Manage HALO credentials."), Command12.withSubcommands([
473
454
  add,
474
455
  list2
475
456
  ]));
476
457
 
477
- // src/cli/commands/halo/identity/identity.ts
458
+ // src/commands/halo/identity/identity.ts
478
459
  import * as Command13 from "@effect/cli/Command";
479
460
  import * as Console9 from "effect/Console";
480
461
  import * as Effect9 from "effect/Effect";
@@ -496,17 +477,20 @@ var handler7 = Effect9.fn(function* () {
496
477
  } else {
497
478
  if (json) {
498
479
  yield* Console9.log(JSON.stringify({
499
- identityKey: identity2.identityKey.toHex(),
480
+ identityDid: identity2.did,
500
481
  displayName: identity2.profile?.displayName
501
482
  }, null, 2));
502
483
  } else {
503
- yield* Console9.log(print4(printIdentity(identity2)));
484
+ yield* Console9.log(print4(printIdentity({
485
+ identityDid: identity2.did,
486
+ profile: identity2.profile
487
+ })));
504
488
  }
505
489
  }
506
490
  });
507
491
  var identity = Command13.make("identity", {}, handler7).pipe(Command13.withDescription("Get the current identity."));
508
492
 
509
- // src/cli/commands/halo/keys/keys.ts
493
+ // src/commands/halo/keys/keys.ts
510
494
  import * as Command14 from "@effect/cli/Command";
511
495
  import * as Console10 from "effect/Console";
512
496
  import * as Effect10 from "effect/Effect";
@@ -533,7 +517,7 @@ var handler8 = Effect10.fn(function* () {
533
517
  });
534
518
  var keys = Command14.make("keys", {}, handler8).pipe(Command14.withDescription("Show HALO keys."));
535
519
 
536
- // src/cli/commands/halo/recover/recover.ts
520
+ // src/commands/halo/recover/recover.ts
537
521
  import * as Args2 from "@effect/cli/Args";
538
522
  import * as Command15 from "@effect/cli/Command";
539
523
  import * as Console11 from "effect/Console";
@@ -541,7 +525,7 @@ import * as Effect11 from "effect/Effect";
541
525
  import { CommandConfig as CommandConfig11, print as print6 } from "@dxos/cli-util";
542
526
  import { ClientService as ClientService10 } from "@dxos/client";
543
527
  import { invariant as invariant3 } from "@dxos/invariant";
544
- var __dxlog_file4 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/cli/commands/halo/recover/recover.ts";
528
+ var __dxlog_file4 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/halo/recover/recover.ts";
545
529
  var recover = Command15.make("recover", {
546
530
  recoveryCode: Args2.text({
547
531
  name: "recoveryCode"
@@ -549,30 +533,25 @@ var recover = Command15.make("recover", {
549
533
  }, Effect11.fn(function* ({ recoveryCode }) {
550
534
  const { json } = yield* CommandConfig11;
551
535
  const client = yield* ClientService10;
552
- invariant3(!client.halo.identity.get(), "Identity already exists", {
553
- F: __dxlog_file4,
554
- L: 25,
555
- S: this,
556
- A: [
557
- "!client.halo.identity.get()",
558
- "'Identity already exists'"
559
- ]
560
- });
536
+ invariant3(!client.halo.identity.get(), "Identity already exists", { "~LogMeta": "~LogMeta", F: __dxlog_file4, L: 20, S: this, A: ["!client.halo.identity.get()", "'Identity already exists'"] });
561
537
  const identity2 = yield* Effect11.tryPromise(() => client.halo.recoverIdentity({
562
538
  recoveryCode
563
539
  }));
564
540
  if (json) {
565
541
  yield* Console11.log(JSON.stringify({
566
- identityKey: identity2.identityKey.toHex(),
542
+ identityDid: identity2.did,
567
543
  displayName: identity2.profile?.displayName
568
544
  }, null, 2));
569
545
  } else {
570
546
  yield* Console11.log("Identity recovered successfully");
571
- yield* Console11.log(print6(printIdentity(identity2)));
547
+ yield* Console11.log(print6(printIdentity({
548
+ identityDid: identity2.did,
549
+ profile: identity2.profile
550
+ })));
572
551
  }
573
552
  })).pipe(Command15.withDescription("Recover an existing identity using a recovery code."));
574
553
 
575
- // src/cli/commands/halo/seed/seed.ts
554
+ // src/commands/halo/seed/seed.ts
576
555
  import * as Command16 from "@effect/cli/Command";
577
556
  import * as Console12 from "effect/Console";
578
557
  import * as Effect12 from "effect/Effect";
@@ -603,7 +582,7 @@ var handler9 = Effect12.fn(function* () {
603
582
  });
604
583
  var seed = Command16.make("seed", {}, handler9).pipe(Command16.withDescription("Generate a seedphrase that can be used for identity recovery."));
605
584
 
606
- // src/cli/commands/halo/update/update.ts
585
+ // src/commands/halo/update/update.ts
607
586
  import * as Command17 from "@effect/cli/Command";
608
587
  import * as Options4 from "@effect/cli/Options";
609
588
  import * as Console13 from "effect/Console";
@@ -641,18 +620,21 @@ var handler10 = Effect13.fn(function* ({ displayName }) {
641
620
  }));
642
621
  if (json) {
643
622
  yield* Console13.log(JSON.stringify({
644
- identityKey: updatedIdentity.identityKey.toHex(),
623
+ identityDid: updatedIdentity.did,
645
624
  displayName: updatedIdentity.profile?.displayName
646
625
  }, null, 2));
647
626
  } else {
648
- yield* Console13.log(print7(printIdentity(updatedIdentity)));
627
+ yield* Console13.log(print7(printIdentity({
628
+ identityDid: updatedIdentity.did,
629
+ profile: updatedIdentity.profile
630
+ })));
649
631
  }
650
632
  });
651
633
  var update2 = Command17.make("update", {
652
634
  displayName: Options4.text("displayName").pipe(Options4.withDescription("The display name of the identity."))
653
635
  }, handler10).pipe(Command17.withDescription("Update identity profile."));
654
636
 
655
- // src/cli/commands/halo/index.ts
637
+ // src/commands/halo/index.ts
656
638
  var halo = Command18.make("halo").pipe(Command18.withDescription("Manage HALO identity."), Command18.withSubcommands([
657
639
  create,
658
640
  credential,
@@ -663,10 +645,10 @@ var halo = Command18.make("halo").pipe(Command18.withDescription("Manage HALO id
663
645
  update2
664
646
  ]));
665
647
 
666
- // src/cli/commands/profile/index.ts
648
+ // src/commands/profile/index.ts
667
649
  import * as Command25 from "@effect/cli/Command";
668
650
 
669
- // src/cli/commands/profile/create.ts
651
+ // src/commands/profile/create.ts
670
652
  import * as Command19 from "@effect/cli/Command";
671
653
  import * as Options5 from "@effect/cli/Options";
672
654
  import * as FileSystem from "@effect/platform/FileSystem";
@@ -679,7 +661,7 @@ import { CommandConfig as CommandConfig14, print as print8 } from "@dxos/cli-uti
679
661
  import { DX_CONFIG as DX_CONFIG2, getProfileConfigPath as getProfileConfigPath2 } from "@dxos/client-protocol";
680
662
  import { trim } from "@dxos/util";
681
663
 
682
- // src/cli/commands/profile/util.ts
664
+ // src/commands/profile/util.ts
683
665
  import { FormBuilder as FormBuilder5 } from "@dxos/cli-util";
684
666
  var printProfileCreated = (name, path) => FormBuilder5.make({
685
667
  title: "Profile created"
@@ -697,7 +679,7 @@ var printProfile = (profile2) => {
697
679
  }).pipe(FormBuilder5.set("fullPath", profile2.fullPath), FormBuilder5.set("storagePath", profile2.storagePath), FormBuilder5.set("edge", profile2.edge ?? "<none>"), FormBuilder5.build);
698
680
  };
699
681
 
700
- // src/cli/commands/profile/create.ts
682
+ // src/commands/profile/create.ts
701
683
  var TEMPLATES = {
702
684
  default: trim`
703
685
  version: 1
@@ -766,7 +748,7 @@ var create2 = Command19.make("create", {
766
748
  }
767
749
  }));
768
750
 
769
- // src/cli/commands/profile/delete.ts
751
+ // src/commands/profile/delete.ts
770
752
  import * as Command20 from "@effect/cli/Command";
771
753
  import * as Options6 from "@effect/cli/Options";
772
754
  import * as FileSystem3 from "@effect/platform/FileSystem";
@@ -795,7 +777,7 @@ var del = Command20.make("delete", {
795
777
  }
796
778
  }));
797
779
 
798
- // src/cli/commands/profile/import.ts
780
+ // src/commands/profile/import.ts
799
781
  import * as Command21 from "@effect/cli/Command";
800
782
  import * as Options7 from "@effect/cli/Options";
801
783
  import * as Prompt2 from "@effect/cli/Prompt";
@@ -807,7 +789,7 @@ import * as Option8 from "effect/Option";
807
789
  import { CommandConfig as CommandConfig16 } from "@dxos/cli-util";
808
790
  import { ConfigService as ConfigService2 } from "@dxos/config";
809
791
  import { log as log17 } from "@dxos/log";
810
- var __dxlog_file5 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/cli/commands/profile/import.ts";
792
+ var __dxlog_file5 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/profile/import.ts";
811
793
  var handler11 = Effect16.fn(function* ({ file, dataDir, force }) {
812
794
  const dataDirValue = Option8.getOrUndefined(dataDir);
813
795
  const { json, profile: profile2 } = yield* CommandConfig16;
@@ -839,12 +821,7 @@ var handler11 = Effect16.fn(function* ({ file, dataDir, force }) {
839
821
  if (yield* fs.exists(storageConfig.dataRoot)) {
840
822
  log17.error("data directory already exists", {
841
823
  path: storageConfig.dataRoot
842
- }, {
843
- F: __dxlog_file5,
844
- L: 61,
845
- S: this,
846
- C: (f, a) => f(...a)
847
- });
824
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file5, L: 44, S: this });
848
825
  if (json) {
849
826
  yield* Console16.log(JSON.stringify({
850
827
  error: "Data directory already exists"
@@ -887,7 +864,7 @@ var importCommand = Command21.make("import", {
887
864
  }).pipe(Options7.withDescription("Skip confirmation prompt."))
888
865
  }, handler11).pipe(Command21.withDescription("Import profile."));
889
866
 
890
- // src/cli/commands/profile/inspect.ts
867
+ // src/commands/profile/inspect.ts
891
868
  import * as Command22 from "@effect/cli/Command";
892
869
  import * as Options8 from "@effect/cli/Options";
893
870
  import * as FileSystem7 from "@effect/platform/FileSystem";
@@ -930,7 +907,7 @@ var inspect = Command22.make("inspect", {
930
907
  }).pipe(Options8.withDescription("List storage entries."))
931
908
  }, handler12).pipe(Command22.withDescription("Inspect profile archive."));
932
909
 
933
- // src/cli/commands/profile/list.ts
910
+ // src/commands/profile/list.ts
934
911
  import * as Command23 from "@effect/cli/Command";
935
912
  import * as FileSystem9 from "@effect/platform/FileSystem";
936
913
  import * as Path5 from "@effect/platform/Path";
@@ -970,7 +947,7 @@ var list3 = Command23.make("list", {}, Effect18.fnUntraced(function* () {
970
947
  }
971
948
  }));
972
949
 
973
- // src/cli/commands/profile/reset.ts
950
+ // src/commands/profile/reset.ts
974
951
  import * as Command24 from "@effect/cli/Command";
975
952
  import * as Options9 from "@effect/cli/Options";
976
953
  import * as Prompt3 from "@effect/cli/Prompt";
@@ -1011,7 +988,7 @@ var reset = Command24.make("reset", {
1011
988
  }
1012
989
  }));
1013
990
 
1014
- // src/cli/commands/profile/index.ts
991
+ // src/commands/profile/index.ts
1015
992
  var profile = Command25.make("profile").pipe(Command25.withDescription("Profile commands."), Command25.withSubcommands([
1016
993
  create2,
1017
994
  del,
@@ -1021,7 +998,7 @@ var profile = Command25.make("profile").pipe(Command25.withDescription("Profile
1021
998
  reset
1022
999
  ]));
1023
1000
 
1024
- // src/cli/plugin.ts
1001
+ // src/ClientPlugin.node.ts
1025
1002
  var ClientPlugin = Plugin2.define(meta).pipe(
1026
1003
  // TODO(wittjosiah): Could some of these commands make use of operations?
1027
1004
  AppPlugin.addCommandModule({
@@ -1051,9 +1028,22 @@ var ClientPlugin = Plugin2.define(meta).pipe(
1051
1028
  ],
1052
1029
  activate: SchemaDefs
1053
1030
  }),
1031
+ Plugin2.addModule({
1032
+ activatesOn: ClientEvents.ClientReady,
1033
+ firesBeforeActivation: [
1034
+ ClientEvents.SetupMigration
1035
+ ],
1036
+ activate: Migrations
1037
+ }),
1038
+ Plugin2.addModule({
1039
+ activatesOn: ActivationEvents.SetupProcessManager,
1040
+ activate: LayerSpecs
1041
+ }),
1054
1042
  Plugin2.make
1055
1043
  );
1044
+ var ClientPlugin_node_default = ClientPlugin;
1056
1045
  export {
1057
- ClientPlugin
1046
+ ClientPlugin,
1047
+ ClientPlugin_node_default as default
1058
1048
  };
1059
- //# sourceMappingURL=index.mjs.map
1049
+ //# sourceMappingURL=ClientPlugin.node.mjs.map