@dxos/plugin-client 0.8.4-main.8360d9e660 → 0.8.4-main.8baae0fced

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 (563) hide show
  1. package/LICENSE +102 -5
  2. package/README.md +1 -1
  3. package/dist/lib/neutral/ClientPlugin.mjs +10 -0
  4. package/dist/lib/{browser/cli/index.mjs → neutral/ClientPlugin.node.mjs} +87 -117
  5. package/dist/lib/neutral/ClientPlugin.node.mjs.map +7 -0
  6. package/dist/lib/neutral/ClientPlugin.workerd.mjs +16 -0
  7. package/dist/lib/neutral/ClientPlugin.workerd.mjs.map +7 -0
  8. package/dist/lib/{browser/DevicesContainer-3N7ANEJ7.mjs → neutral/DevicesContainer-6MWNUC3I.mjs} +46 -52
  9. package/dist/lib/neutral/DevicesContainer-6MWNUC3I.mjs.map +7 -0
  10. package/dist/lib/{browser/JoinDialog-VTTK7NHO.mjs → neutral/JoinDialog-2NXAKPLP.mjs} +10 -16
  11. package/dist/lib/neutral/JoinDialog-2NXAKPLP.mjs.map +7 -0
  12. package/dist/lib/{browser/ProfileContainer-XV7OXJC2.mjs → neutral/ProfileContainer-VPX3FPWG.mjs} +17 -20
  13. package/dist/lib/neutral/ProfileContainer-VPX3FPWG.mjs.map +7 -0
  14. package/dist/lib/{browser/RecoveryCodeDialog-WO34OZEJ.mjs → neutral/RecoveryCodeDialog-GBRH6ZSA.mjs} +8 -9
  15. package/dist/lib/neutral/RecoveryCodeDialog-GBRH6ZSA.mjs.map +7 -0
  16. package/dist/lib/{browser/RecoveryCredentialsContainer-G22FSTIX.mjs → neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs} +18 -24
  17. package/dist/lib/neutral/RecoveryCredentialsContainer-IPBGDMIA.mjs.map +7 -0
  18. package/dist/lib/{browser/ResetDialog-W24FOWBQ.mjs → neutral/ResetDialog-VXOIHJXP.mjs} +7 -5
  19. package/dist/lib/neutral/ResetDialog-VXOIHJXP.mjs.map +7 -0
  20. package/dist/lib/{browser/app-graph-builder-GGJKFY3X.mjs → neutral/app-graph-builder-IK34U2RQ.mjs} +23 -27
  21. package/dist/lib/neutral/app-graph-builder-IK34U2RQ.mjs.map +7 -0
  22. package/dist/lib/neutral/capabilities/index.mjs +30 -0
  23. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  24. package/dist/lib/neutral/capabilities/node.mjs +13 -0
  25. package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
  26. package/dist/lib/{browser/chunk-JHSBBOCI.mjs → neutral/chunk-CTLL5QTP.mjs} +6 -2
  27. package/dist/lib/neutral/chunk-CTLL5QTP.mjs.map +7 -0
  28. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  29. package/dist/lib/neutral/chunk-JVKCYW5O.mjs +8 -0
  30. package/dist/lib/neutral/chunk-JVKCYW5O.mjs.map +7 -0
  31. package/dist/lib/neutral/chunk-M37DHX5L.mjs +131 -0
  32. package/dist/lib/neutral/chunk-M37DHX5L.mjs.map +7 -0
  33. package/dist/lib/neutral/chunk-QPOTUAY5.mjs +68 -0
  34. package/dist/lib/neutral/chunk-QPOTUAY5.mjs.map +7 -0
  35. package/dist/lib/neutral/chunk-RPMM5NKJ.mjs +175 -0
  36. package/dist/lib/neutral/chunk-RPMM5NKJ.mjs.map +7 -0
  37. package/dist/lib/{browser/chunk-HSFDKP5D.mjs → neutral/chunk-VAIJSQYA.mjs} +2 -5
  38. package/dist/lib/neutral/chunk-VAIJSQYA.mjs.map +7 -0
  39. package/dist/lib/{browser/client-MM3BHCWG.mjs → neutral/client-7JBIGMTX.mjs} +16 -46
  40. package/dist/lib/neutral/client-7JBIGMTX.mjs.map +7 -0
  41. package/dist/lib/neutral/components/index.mjs +1 -0
  42. package/dist/lib/neutral/components/index.mjs.map +7 -0
  43. package/dist/lib/neutral/containers/index.mjs +19 -0
  44. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  45. package/dist/lib/neutral/create-agent-JV3EM3TV.mjs +26 -0
  46. package/dist/lib/neutral/create-agent-JV3EM3TV.mjs.map +7 -0
  47. package/dist/lib/neutral/create-identity-GNGOTH6D.mjs +30 -0
  48. package/dist/lib/neutral/create-identity-GNGOTH6D.mjs.map +7 -0
  49. package/dist/lib/neutral/create-passkey-NCP4XA7C.mjs +81 -0
  50. package/dist/lib/neutral/create-passkey-NCP4XA7C.mjs.map +7 -0
  51. package/dist/lib/neutral/create-recovery-code-L5LA3GAP.mjs +36 -0
  52. package/dist/lib/neutral/create-recovery-code-L5LA3GAP.mjs.map +7 -0
  53. package/dist/lib/neutral/index.mjs +23 -0
  54. package/dist/lib/neutral/index.mjs.map +7 -0
  55. package/dist/lib/neutral/join-identity-3W6PJLKN.mjs +27 -0
  56. package/dist/lib/neutral/join-identity-3W6PJLKN.mjs.map +7 -0
  57. package/dist/lib/neutral/layer-specs-RCCQ4GKS.mjs +62 -0
  58. package/dist/lib/neutral/layer-specs-RCCQ4GKS.mjs.map +7 -0
  59. package/dist/lib/neutral/meta.json +1 -0
  60. package/dist/lib/neutral/meta.mjs +8 -0
  61. package/dist/lib/neutral/meta.mjs.map +7 -0
  62. package/dist/lib/{browser/migrations-GKUA2ARL.mjs → neutral/migrations-7FTW55ER.mjs} +4 -6
  63. package/dist/lib/neutral/migrations-7FTW55ER.mjs.map +7 -0
  64. package/dist/lib/neutral/navigation-handler-TA4S74CF.mjs +46 -0
  65. package/dist/lib/neutral/navigation-handler-TA4S74CF.mjs.map +7 -0
  66. package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs +13 -0
  67. package/dist/lib/neutral/operation-handler-E3HB7E2T.mjs.map +7 -0
  68. package/dist/lib/neutral/operations/index.mjs +12 -0
  69. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  70. package/dist/lib/neutral/plugin.mjs +17 -0
  71. package/dist/lib/neutral/plugin.mjs.map +7 -0
  72. package/dist/lib/{browser/react-context-GZ3T5UON.mjs → neutral/react-context-B5LXMHVM.mjs} +5 -8
  73. package/dist/lib/neutral/react-context-B5LXMHVM.mjs.map +7 -0
  74. package/dist/lib/{browser/react-surface-5VZP34X3.mjs → neutral/react-surface-VSBYVQL7.mjs} +13 -30
  75. package/dist/lib/neutral/react-surface-VSBYVQL7.mjs.map +7 -0
  76. package/dist/lib/neutral/recover-identity-KL6QY4GI.mjs +26 -0
  77. package/dist/lib/neutral/recover-identity-KL6QY4GI.mjs.map +7 -0
  78. package/dist/lib/neutral/redeem-passkey-NDEWSJTM.mjs +66 -0
  79. package/dist/lib/neutral/redeem-passkey-NDEWSJTM.mjs.map +7 -0
  80. package/dist/lib/neutral/redeem-token-YLWAVFXD.mjs +29 -0
  81. package/dist/lib/neutral/redeem-token-YLWAVFXD.mjs.map +7 -0
  82. package/dist/lib/neutral/reset-storage-OBHEGA6Z.mjs +26 -0
  83. package/dist/lib/neutral/reset-storage-OBHEGA6Z.mjs.map +7 -0
  84. package/dist/lib/neutral/schema-defs-6XJAJAQT.mjs +51 -0
  85. package/dist/lib/neutral/schema-defs-6XJAJAQT.mjs.map +7 -0
  86. package/dist/lib/neutral/share-identity-JQ5SL3J2.mjs +31 -0
  87. package/dist/lib/neutral/share-identity-JQ5SL3J2.mjs.map +7 -0
  88. package/dist/lib/neutral/testing/index.mjs +26 -0
  89. package/dist/lib/neutral/testing/index.mjs.map +7 -0
  90. package/dist/lib/neutral/translations.mjs +74 -0
  91. package/dist/lib/neutral/translations.mjs.map +7 -0
  92. package/dist/lib/{browser → neutral}/types/index.mjs +4 -6
  93. package/dist/lib/neutral/types/index.mjs.map +7 -0
  94. package/dist/types/src/ClientPlugin.d.ts +2 -1
  95. package/dist/types/src/ClientPlugin.d.ts.map +1 -1
  96. package/dist/types/src/ClientPlugin.node.d.ts +5 -0
  97. package/dist/types/src/ClientPlugin.node.d.ts.map +1 -0
  98. package/dist/types/src/ClientPlugin.test.d.ts +2 -0
  99. package/dist/types/src/ClientPlugin.test.d.ts.map +1 -0
  100. package/dist/types/src/ClientPlugin.workerd.d.ts +4 -0
  101. package/dist/types/src/ClientPlugin.workerd.d.ts.map +1 -0
  102. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  103. package/dist/types/src/capabilities/{client/client.d.ts → client.d.ts} +2 -2
  104. package/dist/types/src/capabilities/client.d.ts.map +1 -0
  105. package/dist/types/src/capabilities/index.d.ts +33 -7
  106. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  107. package/dist/types/src/capabilities/layer-specs.d.ts +6 -0
  108. package/dist/types/src/capabilities/layer-specs.d.ts.map +1 -0
  109. package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
  110. package/dist/types/src/capabilities/navigation-handler/index.d.ts +4 -0
  111. package/dist/types/src/capabilities/navigation-handler/index.d.ts.map +1 -0
  112. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts +15 -0
  113. package/dist/types/src/capabilities/navigation-handler/navigation-handler.d.ts.map +1 -0
  114. package/dist/types/src/capabilities/node.d.ts +21 -0
  115. package/dist/types/src/capabilities/node.d.ts.map +1 -0
  116. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  117. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  118. package/dist/types/src/capabilities/react-context.d.ts.map +1 -0
  119. package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +1 -1
  120. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  121. package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
  122. package/dist/types/src/{cli/commands → commands}/config/index.d.ts +1 -1
  123. package/dist/types/src/commands/config/index.d.ts.map +1 -0
  124. package/dist/types/src/{cli/commands → commands}/config/view.d.ts +1 -1
  125. package/dist/types/src/commands/config/view.d.ts.map +1 -0
  126. package/dist/types/src/commands/device/index.d.ts.map +1 -0
  127. package/dist/types/src/commands/device/info/index.d.ts.map +1 -0
  128. package/dist/types/src/{cli/commands → commands}/device/info/info.d.ts +2 -2
  129. package/dist/types/src/commands/device/info/info.d.ts.map +1 -0
  130. package/dist/types/src/commands/device/info/info.test.d.ts.map +1 -0
  131. package/dist/types/src/commands/device/list/index.d.ts.map +1 -0
  132. package/dist/types/src/{cli/commands → commands}/device/list/list.d.ts +2 -2
  133. package/dist/types/src/commands/device/list/list.d.ts.map +1 -0
  134. package/dist/types/src/commands/device/list/list.test.d.ts.map +1 -0
  135. package/dist/types/src/commands/device/update/index.d.ts.map +1 -0
  136. package/dist/types/src/commands/device/update/update.d.ts.map +1 -0
  137. package/dist/types/src/commands/device/util.d.ts.map +1 -0
  138. package/dist/types/src/commands/edge/index.d.ts.map +1 -0
  139. package/dist/types/src/commands/edge/status.d.ts.map +1 -0
  140. package/dist/types/src/{cli/commands → commands}/halo/create/create.d.ts +2 -2
  141. package/dist/types/src/commands/halo/create/create.d.ts.map +1 -0
  142. package/dist/types/src/commands/halo/create/create.test.d.ts.map +1 -0
  143. package/dist/types/src/commands/halo/create/index.d.ts.map +1 -0
  144. package/dist/types/src/commands/halo/credential/add/add.d.ts.map +1 -0
  145. package/dist/types/src/commands/halo/credential/add/index.d.ts.map +1 -0
  146. package/dist/types/src/commands/halo/credential/index.d.ts.map +1 -0
  147. package/dist/types/src/commands/halo/credential/list/index.d.ts.map +1 -0
  148. package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.d.ts +3 -3
  149. package/dist/types/src/commands/halo/credential/list/list.d.ts.map +1 -0
  150. package/dist/types/src/commands/halo/credential/list/list.test.d.ts.map +1 -0
  151. package/dist/types/src/{cli/commands → commands}/halo/identity/identity.d.ts +2 -2
  152. package/dist/types/src/commands/halo/identity/identity.d.ts.map +1 -0
  153. package/dist/types/src/commands/halo/identity/identity.test.d.ts.map +1 -0
  154. package/dist/types/src/commands/halo/identity/index.d.ts.map +1 -0
  155. package/dist/types/src/commands/halo/index.d.ts.map +1 -0
  156. package/dist/types/src/commands/halo/join/index.d.ts.map +1 -0
  157. package/dist/types/src/{cli/commands → commands}/halo/join/join.d.ts +1 -1
  158. package/dist/types/src/commands/halo/join/join.d.ts.map +1 -0
  159. package/dist/types/src/commands/halo/join/join.test.d.ts.map +1 -0
  160. package/dist/types/src/commands/halo/keys/index.d.ts.map +1 -0
  161. package/dist/types/src/{cli/commands → commands}/halo/keys/keys.d.ts +2 -2
  162. package/dist/types/src/commands/halo/keys/keys.d.ts.map +1 -0
  163. package/dist/types/src/commands/halo/keys/keys.test.d.ts.map +1 -0
  164. package/dist/types/src/commands/halo/recover/index.d.ts.map +1 -0
  165. package/dist/types/src/commands/halo/recover/recover.d.ts.map +1 -0
  166. package/dist/types/src/commands/halo/recover/recover.test.d.ts.map +1 -0
  167. package/dist/types/src/commands/halo/seed/index.d.ts.map +1 -0
  168. package/dist/types/src/commands/halo/seed/seed.d.ts.map +1 -0
  169. package/dist/types/src/commands/halo/share/index.d.ts.map +1 -0
  170. package/dist/types/src/commands/halo/share/share.d.ts.map +1 -0
  171. package/dist/types/src/commands/halo/update/index.d.ts.map +1 -0
  172. package/dist/types/src/commands/halo/update/update.d.ts.map +1 -0
  173. package/dist/types/src/commands/halo/update/update.test.d.ts.map +1 -0
  174. package/dist/types/src/commands/halo/util.d.ts.map +1 -0
  175. package/dist/types/src/commands/index.d.ts.map +1 -0
  176. package/dist/types/src/{cli/commands → commands}/profile/create.d.ts +1 -1
  177. package/dist/types/src/commands/profile/create.d.ts.map +1 -0
  178. package/dist/types/src/commands/profile/delete.d.ts.map +1 -0
  179. package/dist/types/src/{cli/commands → commands}/profile/import.d.ts +2 -2
  180. package/dist/types/src/commands/profile/import.d.ts.map +1 -0
  181. package/dist/types/src/{cli/commands → commands}/profile/index.d.ts +6 -6
  182. package/dist/types/src/commands/profile/index.d.ts.map +1 -0
  183. package/dist/types/src/commands/profile/inspect.d.ts.map +1 -0
  184. package/dist/types/src/commands/profile/list.d.ts.map +1 -0
  185. package/dist/types/src/{cli/commands → commands}/profile/reset.d.ts +1 -1
  186. package/dist/types/src/commands/profile/reset.d.ts.map +1 -0
  187. package/dist/types/src/commands/profile/util.d.ts.map +1 -0
  188. package/dist/types/src/containers/DevicesContainer/DevicesContainer.d.ts.map +1 -1
  189. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts +165 -164
  190. package/dist/types/src/containers/DevicesContainer/DevicesContainer.stories.d.ts.map +1 -1
  191. package/dist/types/src/containers/DevicesContainer/index.d.ts +1 -2
  192. package/dist/types/src/containers/DevicesContainer/index.d.ts.map +1 -1
  193. package/dist/types/src/containers/JoinDialog/JoinDialog.d.ts.map +1 -1
  194. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts +15 -0
  195. package/dist/types/src/containers/JoinDialog/JoinDialog.stories.d.ts.map +1 -0
  196. package/dist/types/src/containers/JoinDialog/index.d.ts +1 -2
  197. package/dist/types/src/containers/JoinDialog/index.d.ts.map +1 -1
  198. package/dist/types/src/containers/ProfileContainer/ProfileContainer.stories.d.ts.map +1 -1
  199. package/dist/types/src/containers/ProfileContainer/index.d.ts +1 -2
  200. package/dist/types/src/containers/ProfileContainer/index.d.ts.map +1 -1
  201. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.d.ts.map +1 -1
  202. package/dist/types/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.d.ts.map +1 -1
  203. package/dist/types/src/containers/RecoveryCodeDialog/index.d.ts.map +1 -1
  204. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.d.ts.map +1 -1
  205. package/dist/types/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.d.ts.map +1 -1
  206. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts +1 -2
  207. package/dist/types/src/containers/RecoveryCredentialsContainer/index.d.ts.map +1 -1
  208. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts +1 -1
  209. package/dist/types/src/containers/ResetDialog/ResetDialog.d.ts.map +1 -1
  210. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts +1 -1
  211. package/dist/types/src/containers/ResetDialog/ResetDialog.stories.d.ts.map +1 -1
  212. package/dist/types/src/containers/ResetDialog/index.d.ts.map +1 -1
  213. package/dist/types/src/index.d.ts +2 -3
  214. package/dist/types/src/index.d.ts.map +1 -1
  215. package/dist/types/src/meta.d.ts.map +1 -1
  216. package/dist/types/src/operations/create-agent.d.ts +5 -0
  217. package/dist/types/src/operations/create-agent.d.ts.map +1 -0
  218. package/dist/types/src/operations/create-identity.d.ts +5 -0
  219. package/dist/types/src/operations/create-identity.d.ts.map +1 -0
  220. package/dist/types/src/operations/create-passkey.d.ts +5 -0
  221. package/dist/types/src/operations/create-passkey.d.ts.map +1 -0
  222. package/dist/types/src/operations/create-recovery-code.d.ts +5 -0
  223. package/dist/types/src/operations/create-recovery-code.d.ts.map +1 -0
  224. package/dist/types/src/operations/definitions.d.ts +36 -0
  225. package/dist/types/src/operations/definitions.d.ts.map +1 -0
  226. package/dist/types/src/operations/index.d.ts +4 -0
  227. package/dist/types/src/operations/index.d.ts.map +1 -0
  228. package/dist/types/src/operations/join-identity.d.ts +5 -0
  229. package/dist/types/src/operations/join-identity.d.ts.map +1 -0
  230. package/dist/types/src/operations/recover-identity.d.ts +5 -0
  231. package/dist/types/src/operations/recover-identity.d.ts.map +1 -0
  232. package/dist/types/src/operations/redeem-passkey.d.ts +5 -0
  233. package/dist/types/src/operations/redeem-passkey.d.ts.map +1 -0
  234. package/dist/types/src/operations/redeem-token.d.ts +5 -0
  235. package/dist/types/src/operations/redeem-token.d.ts.map +1 -0
  236. package/dist/types/src/operations/reset-storage.d.ts +5 -0
  237. package/dist/types/src/operations/reset-storage.d.ts.map +1 -0
  238. package/dist/types/src/operations/share-identity.d.ts +5 -0
  239. package/dist/types/src/operations/share-identity.d.ts.map +1 -0
  240. package/dist/types/src/plugin.d.ts +4 -0
  241. package/dist/types/src/plugin.d.ts.map +1 -0
  242. package/dist/types/src/testing/index.d.ts +3 -0
  243. package/dist/types/src/testing/index.d.ts.map +1 -0
  244. package/dist/types/src/testing/initializeIdentity.d.ts +14 -0
  245. package/dist/types/src/testing/initializeIdentity.d.ts.map +1 -0
  246. package/dist/types/src/translations.d.ts.map +1 -1
  247. package/dist/types/src/types/capabilities.d.ts +1 -2
  248. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  249. package/dist/types/src/types/events.d.ts.map +1 -1
  250. package/dist/types/src/types/schema.d.ts +0 -153
  251. package/dist/types/src/types/schema.d.ts.map +1 -1
  252. package/dist/types/tsconfig.tsbuildinfo +1 -1
  253. package/package.json +110 -51
  254. package/src/{cli/plugin.ts → ClientPlugin.node.ts} +9 -10
  255. package/src/ClientPlugin.test.ts +29 -0
  256. package/src/ClientPlugin.ts +22 -10
  257. package/src/ClientPlugin.workerd.ts +16 -0
  258. package/src/capabilities/{app-graph-builder/app-graph-builder.ts → app-graph-builder.ts} +20 -19
  259. package/src/capabilities/{client/client.ts → client.ts} +6 -5
  260. package/src/capabilities/index.ts +16 -7
  261. package/src/capabilities/layer-specs.ts +96 -0
  262. package/src/capabilities/{migrations/migrations.ts → migrations.ts} +1 -1
  263. package/src/capabilities/navigation-handler/index.ts +9 -0
  264. package/src/capabilities/navigation-handler/navigation-handler.ts +64 -0
  265. package/src/capabilities/node.ts +13 -0
  266. package/src/capabilities/operation-handler.ts +16 -0
  267. package/src/capabilities/{react-context/react-context.tsx → react-context.tsx} +4 -4
  268. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +18 -22
  269. package/src/capabilities/schema-defs.ts +56 -0
  270. package/src/{cli/commands → commands}/config/view.ts +4 -1
  271. package/src/{cli/commands → commands}/device/info/info.test.ts +0 -1
  272. package/src/{cli/commands → commands}/device/info/info.ts +0 -2
  273. package/src/{cli/commands → commands}/device/list/list.test.ts +0 -1
  274. package/src/{cli/commands → commands}/device/list/list.ts +0 -2
  275. package/src/{cli/commands → commands}/device/update/update.ts +0 -2
  276. package/src/{cli/commands → commands}/edge/status.ts +2 -1
  277. package/src/{cli/commands → commands}/halo/create/create.test.ts +5 -4
  278. package/src/{cli/commands → commands}/halo/create/create.ts +11 -4
  279. package/src/{cli/commands → commands}/halo/credential/list/list.test.ts +0 -1
  280. package/src/{cli/commands → commands}/halo/credential/list/list.ts +4 -7
  281. package/src/{cli/commands → commands}/halo/identity/identity.ts +0 -1
  282. package/src/{cli/commands → commands}/halo/keys/keys.ts +0 -2
  283. package/src/{cli/commands → commands}/halo/seed/seed.ts +0 -2
  284. package/src/{cli/commands → commands}/halo/update/update.test.ts +0 -1
  285. package/src/{cli/commands → commands}/halo/update/update.ts +0 -2
  286. package/src/{cli/commands → commands}/profile/list.ts +0 -1
  287. package/src/constants.ts +1 -1
  288. package/src/containers/DevicesContainer/DevicesContainer.stories.tsx +6 -6
  289. package/src/containers/DevicesContainer/DevicesContainer.tsx +50 -49
  290. package/src/containers/DevicesContainer/index.ts +1 -3
  291. package/src/containers/JoinDialog/JoinDialog.stories.tsx +43 -0
  292. package/src/containers/JoinDialog/JoinDialog.tsx +15 -12
  293. package/src/containers/JoinDialog/index.ts +1 -3
  294. package/src/containers/ProfileContainer/ProfileContainer.stories.tsx +1 -1
  295. package/src/containers/ProfileContainer/ProfileContainer.tsx +13 -13
  296. package/src/containers/ProfileContainer/index.ts +1 -3
  297. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.stories.tsx +1 -1
  298. package/src/containers/RecoveryCodeDialog/RecoveryCodeDialog.tsx +7 -7
  299. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.stories.tsx +6 -6
  300. package/src/containers/RecoveryCredentialsContainer/RecoveryCredentialsContainer.tsx +24 -26
  301. package/src/containers/RecoveryCredentialsContainer/index.ts +1 -3
  302. package/src/containers/ResetDialog/ResetDialog.stories.tsx +6 -6
  303. package/src/containers/ResetDialog/ResetDialog.tsx +7 -5
  304. package/src/index.ts +2 -4
  305. package/src/meta.ts +2 -0
  306. package/src/operations/create-agent.ts +26 -0
  307. package/src/operations/create-identity.ts +29 -0
  308. package/src/operations/create-passkey.ts +88 -0
  309. package/src/operations/create-recovery-code.ts +34 -0
  310. package/src/operations/definitions.ts +107 -0
  311. package/src/operations/index.ts +20 -0
  312. package/src/operations/join-identity.ts +28 -0
  313. package/src/operations/recover-identity.ts +28 -0
  314. package/src/operations/redeem-passkey.ts +85 -0
  315. package/src/operations/redeem-token.ts +31 -0
  316. package/src/operations/reset-storage.ts +27 -0
  317. package/src/operations/share-identity.ts +26 -0
  318. package/src/plugin.ts +11 -0
  319. package/src/testing/index.ts +8 -0
  320. package/src/testing/initializeIdentity.ts +30 -0
  321. package/src/translations.ts +53 -43
  322. package/src/types/capabilities.ts +1 -1
  323. package/src/types/events.ts +1 -1
  324. package/src/types/schema.ts +1 -111
  325. package/dist/lib/browser/DevicesContainer-3N7ANEJ7.mjs.map +0 -7
  326. package/dist/lib/browser/JoinDialog-VTTK7NHO.mjs.map +0 -7
  327. package/dist/lib/browser/ProfileContainer-XV7OXJC2.mjs.map +0 -7
  328. package/dist/lib/browser/RecoveryCodeDialog-WO34OZEJ.mjs.map +0 -7
  329. package/dist/lib/browser/RecoveryCredentialsContainer-G22FSTIX.mjs.map +0 -7
  330. package/dist/lib/browser/ResetDialog-W24FOWBQ.mjs.map +0 -7
  331. package/dist/lib/browser/app-graph-builder-GGJKFY3X.mjs.map +0 -7
  332. package/dist/lib/browser/chunk-ESDYRACB.mjs +0 -18
  333. package/dist/lib/browser/chunk-ESDYRACB.mjs.map +0 -7
  334. package/dist/lib/browser/chunk-FVEKZBM7.mjs +0 -283
  335. package/dist/lib/browser/chunk-FVEKZBM7.mjs.map +0 -7
  336. package/dist/lib/browser/chunk-HSFDKP5D.mjs.map +0 -7
  337. package/dist/lib/browser/chunk-JHSBBOCI.mjs.map +0 -7
  338. package/dist/lib/browser/cli/index.mjs.map +0 -7
  339. package/dist/lib/browser/client-MM3BHCWG.mjs.map +0 -7
  340. package/dist/lib/browser/index.mjs +0 -149
  341. package/dist/lib/browser/index.mjs.map +0 -7
  342. package/dist/lib/browser/meta.json +0 -1
  343. package/dist/lib/browser/migrations-GKUA2ARL.mjs.map +0 -7
  344. package/dist/lib/browser/operation-resolver-VSWA74RS.mjs +0 -299
  345. package/dist/lib/browser/operation-resolver-VSWA74RS.mjs.map +0 -7
  346. package/dist/lib/browser/react-context-GZ3T5UON.mjs.map +0 -7
  347. package/dist/lib/browser/react-surface-5VZP34X3.mjs.map +0 -7
  348. package/dist/lib/browser/schema-defs-KAG6HQMI.mjs +0 -28
  349. package/dist/lib/browser/schema-defs-KAG6HQMI.mjs.map +0 -7
  350. package/dist/lib/node-esm/DevicesContainer-V7HEUPO7.mjs +0 -269
  351. package/dist/lib/node-esm/DevicesContainer-V7HEUPO7.mjs.map +0 -7
  352. package/dist/lib/node-esm/JoinDialog-XVKW4SLT.mjs +0 -60
  353. package/dist/lib/node-esm/JoinDialog-XVKW4SLT.mjs.map +0 -7
  354. package/dist/lib/node-esm/ProfileContainer-B5LJ6TMU.mjs +0 -172
  355. package/dist/lib/node-esm/ProfileContainer-B5LJ6TMU.mjs.map +0 -7
  356. package/dist/lib/node-esm/RecoveryCodeDialog-YIRGXM7N.mjs +0 -61
  357. package/dist/lib/node-esm/RecoveryCodeDialog-YIRGXM7N.mjs.map +0 -7
  358. package/dist/lib/node-esm/RecoveryCredentialsContainer-MVJEFNXX.mjs +0 -58
  359. package/dist/lib/node-esm/RecoveryCredentialsContainer-MVJEFNXX.mjs.map +0 -7
  360. package/dist/lib/node-esm/ResetDialog-GGBWSQZO.mjs +0 -54
  361. package/dist/lib/node-esm/ResetDialog-GGBWSQZO.mjs.map +0 -7
  362. package/dist/lib/node-esm/app-graph-builder-PTNZ46NN.mjs +0 -122
  363. package/dist/lib/node-esm/app-graph-builder-PTNZ46NN.mjs.map +0 -7
  364. package/dist/lib/node-esm/chunk-BOTJSPCT.mjs +0 -17
  365. package/dist/lib/node-esm/chunk-BOTJSPCT.mjs.map +0 -7
  366. package/dist/lib/node-esm/chunk-DT2ZNOGU.mjs +0 -284
  367. package/dist/lib/node-esm/chunk-DT2ZNOGU.mjs.map +0 -7
  368. package/dist/lib/node-esm/chunk-OIJ5QGFQ.mjs +0 -20
  369. package/dist/lib/node-esm/chunk-OIJ5QGFQ.mjs.map +0 -7
  370. package/dist/lib/node-esm/chunk-VLNCZYIC.mjs +0 -16
  371. package/dist/lib/node-esm/chunk-VLNCZYIC.mjs.map +0 -7
  372. package/dist/lib/node-esm/cli/index.mjs +0 -1060
  373. package/dist/lib/node-esm/cli/index.mjs.map +0 -7
  374. package/dist/lib/node-esm/client-24L47Y2G.mjs +0 -93
  375. package/dist/lib/node-esm/client-24L47Y2G.mjs.map +0 -7
  376. package/dist/lib/node-esm/index.mjs +0 -150
  377. package/dist/lib/node-esm/index.mjs.map +0 -7
  378. package/dist/lib/node-esm/meta.json +0 -1
  379. package/dist/lib/node-esm/migrations-4NEKCBGU.mjs +0 -26
  380. package/dist/lib/node-esm/migrations-4NEKCBGU.mjs.map +0 -7
  381. package/dist/lib/node-esm/operation-resolver-4GWB3YZG.mjs +0 -300
  382. package/dist/lib/node-esm/operation-resolver-4GWB3YZG.mjs.map +0 -7
  383. package/dist/lib/node-esm/react-context-T2ORT5CC.mjs +0 -27
  384. package/dist/lib/node-esm/react-context-T2ORT5CC.mjs.map +0 -7
  385. package/dist/lib/node-esm/react-surface-B65OUZYI.mjs +0 -78
  386. package/dist/lib/node-esm/react-surface-B65OUZYI.mjs.map +0 -7
  387. package/dist/lib/node-esm/schema-defs-GXQ47JZN.mjs +0 -29
  388. package/dist/lib/node-esm/schema-defs-GXQ47JZN.mjs.map +0 -7
  389. package/dist/lib/node-esm/types/index.mjs +0 -17
  390. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  391. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  392. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  393. package/dist/types/src/capabilities/client/client.d.ts.map +0 -1
  394. package/dist/types/src/capabilities/client/index.d.ts +0 -18
  395. package/dist/types/src/capabilities/client/index.d.ts.map +0 -1
  396. package/dist/types/src/capabilities/migrations/index.d.ts +0 -3
  397. package/dist/types/src/capabilities/migrations/index.d.ts.map +0 -1
  398. package/dist/types/src/capabilities/migrations/migrations.d.ts.map +0 -1
  399. package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -5
  400. package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
  401. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -8
  402. package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
  403. package/dist/types/src/capabilities/react-context/index.d.ts +0 -7
  404. package/dist/types/src/capabilities/react-context/index.d.ts.map +0 -1
  405. package/dist/types/src/capabilities/react-context/react-context.d.ts.map +0 -1
  406. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -5
  407. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  408. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  409. package/dist/types/src/capabilities/schema-defs/index.d.ts +0 -3
  410. package/dist/types/src/capabilities/schema-defs/index.d.ts.map +0 -1
  411. package/dist/types/src/capabilities/schema-defs/schema-defs.d.ts.map +0 -1
  412. package/dist/types/src/cli/commands/config/index.d.ts.map +0 -1
  413. package/dist/types/src/cli/commands/config/view.d.ts.map +0 -1
  414. package/dist/types/src/cli/commands/device/index.d.ts.map +0 -1
  415. package/dist/types/src/cli/commands/device/info/index.d.ts.map +0 -1
  416. package/dist/types/src/cli/commands/device/info/info.d.ts.map +0 -1
  417. package/dist/types/src/cli/commands/device/info/info.test.d.ts.map +0 -1
  418. package/dist/types/src/cli/commands/device/list/index.d.ts.map +0 -1
  419. package/dist/types/src/cli/commands/device/list/list.d.ts.map +0 -1
  420. package/dist/types/src/cli/commands/device/list/list.test.d.ts.map +0 -1
  421. package/dist/types/src/cli/commands/device/update/index.d.ts.map +0 -1
  422. package/dist/types/src/cli/commands/device/update/update.d.ts.map +0 -1
  423. package/dist/types/src/cli/commands/device/util.d.ts.map +0 -1
  424. package/dist/types/src/cli/commands/edge/index.d.ts.map +0 -1
  425. package/dist/types/src/cli/commands/edge/status.d.ts.map +0 -1
  426. package/dist/types/src/cli/commands/halo/create/create.d.ts.map +0 -1
  427. package/dist/types/src/cli/commands/halo/create/create.test.d.ts.map +0 -1
  428. package/dist/types/src/cli/commands/halo/create/index.d.ts.map +0 -1
  429. package/dist/types/src/cli/commands/halo/credential/add/add.d.ts.map +0 -1
  430. package/dist/types/src/cli/commands/halo/credential/add/index.d.ts.map +0 -1
  431. package/dist/types/src/cli/commands/halo/credential/index.d.ts.map +0 -1
  432. package/dist/types/src/cli/commands/halo/credential/list/index.d.ts.map +0 -1
  433. package/dist/types/src/cli/commands/halo/credential/list/list.d.ts.map +0 -1
  434. package/dist/types/src/cli/commands/halo/credential/list/list.test.d.ts.map +0 -1
  435. package/dist/types/src/cli/commands/halo/identity/identity.d.ts.map +0 -1
  436. package/dist/types/src/cli/commands/halo/identity/identity.test.d.ts.map +0 -1
  437. package/dist/types/src/cli/commands/halo/identity/index.d.ts.map +0 -1
  438. package/dist/types/src/cli/commands/halo/index.d.ts.map +0 -1
  439. package/dist/types/src/cli/commands/halo/join/index.d.ts.map +0 -1
  440. package/dist/types/src/cli/commands/halo/join/join.d.ts.map +0 -1
  441. package/dist/types/src/cli/commands/halo/join/join.test.d.ts.map +0 -1
  442. package/dist/types/src/cli/commands/halo/keys/index.d.ts.map +0 -1
  443. package/dist/types/src/cli/commands/halo/keys/keys.d.ts.map +0 -1
  444. package/dist/types/src/cli/commands/halo/keys/keys.test.d.ts.map +0 -1
  445. package/dist/types/src/cli/commands/halo/recover/index.d.ts.map +0 -1
  446. package/dist/types/src/cli/commands/halo/recover/recover.d.ts.map +0 -1
  447. package/dist/types/src/cli/commands/halo/recover/recover.test.d.ts.map +0 -1
  448. package/dist/types/src/cli/commands/halo/seed/index.d.ts.map +0 -1
  449. package/dist/types/src/cli/commands/halo/seed/seed.d.ts.map +0 -1
  450. package/dist/types/src/cli/commands/halo/share/index.d.ts.map +0 -1
  451. package/dist/types/src/cli/commands/halo/share/share.d.ts.map +0 -1
  452. package/dist/types/src/cli/commands/halo/update/index.d.ts.map +0 -1
  453. package/dist/types/src/cli/commands/halo/update/update.d.ts.map +0 -1
  454. package/dist/types/src/cli/commands/halo/update/update.test.d.ts.map +0 -1
  455. package/dist/types/src/cli/commands/halo/util.d.ts.map +0 -1
  456. package/dist/types/src/cli/commands/index.d.ts.map +0 -1
  457. package/dist/types/src/cli/commands/profile/create.d.ts.map +0 -1
  458. package/dist/types/src/cli/commands/profile/delete.d.ts.map +0 -1
  459. package/dist/types/src/cli/commands/profile/import.d.ts.map +0 -1
  460. package/dist/types/src/cli/commands/profile/index.d.ts.map +0 -1
  461. package/dist/types/src/cli/commands/profile/inspect.d.ts.map +0 -1
  462. package/dist/types/src/cli/commands/profile/list.d.ts.map +0 -1
  463. package/dist/types/src/cli/commands/profile/reset.d.ts.map +0 -1
  464. package/dist/types/src/cli/commands/profile/util.d.ts.map +0 -1
  465. package/dist/types/src/cli/index.d.ts +0 -2
  466. package/dist/types/src/cli/index.d.ts.map +0 -1
  467. package/dist/types/src/cli/plugin.d.ts +0 -4
  468. package/dist/types/src/cli/plugin.d.ts.map +0 -1
  469. package/dist/types/src/cli/testing/test-console.d.ts +0 -37
  470. package/dist/types/src/cli/testing/test-console.d.ts.map +0 -1
  471. package/src/capabilities/app-graph-builder/index.ts +0 -7
  472. package/src/capabilities/client/index.ts +0 -7
  473. package/src/capabilities/migrations/index.ts +0 -7
  474. package/src/capabilities/operation-resolver/index.ts +0 -7
  475. package/src/capabilities/operation-resolver/operation-resolver.ts +0 -249
  476. package/src/capabilities/react-context/index.ts +0 -7
  477. package/src/capabilities/react-surface/index.ts +0 -7
  478. package/src/capabilities/schema-defs/index.ts +0 -7
  479. package/src/capabilities/schema-defs/schema-defs.ts +0 -36
  480. package/src/cli/index.ts +0 -5
  481. package/src/cli/testing/test-console.ts +0 -88
  482. /package/dist/lib/{browser/types/index.mjs.map → neutral/ClientPlugin.mjs.map} +0 -0
  483. /package/dist/lib/{node-esm/types/index.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  484. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  485. /package/dist/types/src/capabilities/{migrations/migrations.d.ts → migrations.d.ts} +0 -0
  486. /package/dist/types/src/capabilities/{react-context/react-context.d.ts → react-context.d.ts} +0 -0
  487. /package/dist/types/src/capabilities/{schema-defs/schema-defs.d.ts → schema-defs.d.ts} +0 -0
  488. /package/dist/types/src/{cli/commands → commands}/device/index.d.ts +0 -0
  489. /package/dist/types/src/{cli/commands → commands}/device/info/index.d.ts +0 -0
  490. /package/dist/types/src/{cli/commands → commands}/device/info/info.test.d.ts +0 -0
  491. /package/dist/types/src/{cli/commands → commands}/device/list/index.d.ts +0 -0
  492. /package/dist/types/src/{cli/commands → commands}/device/list/list.test.d.ts +0 -0
  493. /package/dist/types/src/{cli/commands → commands}/device/update/index.d.ts +0 -0
  494. /package/dist/types/src/{cli/commands → commands}/device/update/update.d.ts +0 -0
  495. /package/dist/types/src/{cli/commands → commands}/device/util.d.ts +0 -0
  496. /package/dist/types/src/{cli/commands → commands}/edge/index.d.ts +0 -0
  497. /package/dist/types/src/{cli/commands → commands}/edge/status.d.ts +0 -0
  498. /package/dist/types/src/{cli/commands → commands}/halo/create/create.test.d.ts +0 -0
  499. /package/dist/types/src/{cli/commands → commands}/halo/create/index.d.ts +0 -0
  500. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/add.d.ts +0 -0
  501. /package/dist/types/src/{cli/commands → commands}/halo/credential/add/index.d.ts +0 -0
  502. /package/dist/types/src/{cli/commands → commands}/halo/credential/index.d.ts +0 -0
  503. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/index.d.ts +0 -0
  504. /package/dist/types/src/{cli/commands → commands}/halo/credential/list/list.test.d.ts +0 -0
  505. /package/dist/types/src/{cli/commands → commands}/halo/identity/identity.test.d.ts +0 -0
  506. /package/dist/types/src/{cli/commands → commands}/halo/identity/index.d.ts +0 -0
  507. /package/dist/types/src/{cli/commands → commands}/halo/index.d.ts +0 -0
  508. /package/dist/types/src/{cli/commands → commands}/halo/join/index.d.ts +0 -0
  509. /package/dist/types/src/{cli/commands → commands}/halo/join/join.test.d.ts +0 -0
  510. /package/dist/types/src/{cli/commands → commands}/halo/keys/index.d.ts +0 -0
  511. /package/dist/types/src/{cli/commands → commands}/halo/keys/keys.test.d.ts +0 -0
  512. /package/dist/types/src/{cli/commands → commands}/halo/recover/index.d.ts +0 -0
  513. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.d.ts +0 -0
  514. /package/dist/types/src/{cli/commands → commands}/halo/recover/recover.test.d.ts +0 -0
  515. /package/dist/types/src/{cli/commands → commands}/halo/seed/index.d.ts +0 -0
  516. /package/dist/types/src/{cli/commands → commands}/halo/seed/seed.d.ts +0 -0
  517. /package/dist/types/src/{cli/commands → commands}/halo/share/index.d.ts +0 -0
  518. /package/dist/types/src/{cli/commands → commands}/halo/share/share.d.ts +0 -0
  519. /package/dist/types/src/{cli/commands → commands}/halo/update/index.d.ts +0 -0
  520. /package/dist/types/src/{cli/commands → commands}/halo/update/update.d.ts +0 -0
  521. /package/dist/types/src/{cli/commands → commands}/halo/update/update.test.d.ts +0 -0
  522. /package/dist/types/src/{cli/commands → commands}/halo/util.d.ts +0 -0
  523. /package/dist/types/src/{cli/commands → commands}/index.d.ts +0 -0
  524. /package/dist/types/src/{cli/commands → commands}/profile/delete.d.ts +0 -0
  525. /package/dist/types/src/{cli/commands → commands}/profile/inspect.d.ts +0 -0
  526. /package/dist/types/src/{cli/commands → commands}/profile/list.d.ts +0 -0
  527. /package/dist/types/src/{cli/commands → commands}/profile/util.d.ts +0 -0
  528. /package/src/{cli/commands → commands}/config/index.ts +0 -0
  529. /package/src/{cli/commands → commands}/device/index.ts +0 -0
  530. /package/src/{cli/commands → commands}/device/info/index.ts +0 -0
  531. /package/src/{cli/commands → commands}/device/list/index.ts +0 -0
  532. /package/src/{cli/commands → commands}/device/update/index.ts +0 -0
  533. /package/src/{cli/commands → commands}/device/util.ts +0 -0
  534. /package/src/{cli/commands → commands}/edge/index.ts +0 -0
  535. /package/src/{cli/commands → commands}/halo/create/index.ts +0 -0
  536. /package/src/{cli/commands → commands}/halo/credential/add/add.ts +0 -0
  537. /package/src/{cli/commands → commands}/halo/credential/add/index.ts +0 -0
  538. /package/src/{cli/commands → commands}/halo/credential/index.ts +0 -0
  539. /package/src/{cli/commands → commands}/halo/credential/list/index.ts +0 -0
  540. /package/src/{cli/commands → commands}/halo/identity/identity.test.ts +0 -0
  541. /package/src/{cli/commands → commands}/halo/identity/index.ts +0 -0
  542. /package/src/{cli/commands → commands}/halo/index.ts +0 -0
  543. /package/src/{cli/commands → commands}/halo/join/index.ts +0 -0
  544. /package/src/{cli/commands → commands}/halo/join/join.test.ts +0 -0
  545. /package/src/{cli/commands → commands}/halo/join/join.ts +0 -0
  546. /package/src/{cli/commands → commands}/halo/keys/index.ts +0 -0
  547. /package/src/{cli/commands → commands}/halo/keys/keys.test.ts +0 -0
  548. /package/src/{cli/commands → commands}/halo/recover/index.ts +0 -0
  549. /package/src/{cli/commands → commands}/halo/recover/recover.test.ts +0 -0
  550. /package/src/{cli/commands → commands}/halo/recover/recover.ts +0 -0
  551. /package/src/{cli/commands → commands}/halo/seed/index.ts +0 -0
  552. /package/src/{cli/commands → commands}/halo/share/index.ts +0 -0
  553. /package/src/{cli/commands → commands}/halo/share/share.ts +0 -0
  554. /package/src/{cli/commands → commands}/halo/update/index.ts +0 -0
  555. /package/src/{cli/commands → commands}/halo/util.ts +0 -0
  556. /package/src/{cli/commands → commands}/index.ts +0 -0
  557. /package/src/{cli/commands → commands}/profile/create.ts +0 -0
  558. /package/src/{cli/commands → commands}/profile/delete.ts +0 -0
  559. /package/src/{cli/commands → commands}/profile/import.ts +0 -0
  560. /package/src/{cli/commands → commands}/profile/index.ts +0 -0
  561. /package/src/{cli/commands → commands}/profile/inspect.ts +0 -0
  562. /package/src/{cli/commands → commands}/profile/reset.ts +0 -0
  563. /package/src/{cli/commands → commands}/profile/util.ts +0 -0
@@ -1,49 +1,44 @@
1
- import {
2
- Client,
3
- OperationResolver,
4
- SchemaDefs
5
- } from "../chunk-ESDYRACB.mjs";
6
- import {
7
- ClientEvents,
8
- ClientOperation
9
- } from "../chunk-FVEKZBM7.mjs";
10
- import {
11
- meta
12
- } from "../chunk-JHSBBOCI.mjs";
1
+ import "./chunk-J5LGTIGS.mjs";
13
2
 
14
- // src/cli/plugin.ts
3
+ // src/ClientPlugin.node.ts
15
4
  import { ActivationEvents, Capability, Plugin as Plugin2 } from "@dxos/app-framework";
16
5
  import { AppActivationEvents, AppPlugin } from "@dxos/app-toolkit";
6
+ import { Client, OperationHandler, SchemaDefs } from "#capabilities";
7
+ import { meta } from "#meta";
8
+ import { ClientEvents } from "#types";
17
9
 
18
- // src/cli/commands/config/index.ts
10
+ // src/commands/config/index.ts
19
11
  import * as Command2 from "@effect/cli/Command";
20
12
 
21
- // src/cli/commands/config/view.ts
13
+ // src/commands/config/view.ts
22
14
  import * as Command from "@effect/cli/Command";
23
15
  import * as Console from "effect/Console";
24
16
  import * as Effect from "effect/Effect";
25
17
  import * as Yaml from "yaml";
26
18
  import { CommandConfig } from "@dxos/cli-util";
27
19
  import { ConfigService } from "@dxos/client";
20
+ import { DX_CONFIG, getProfileConfigPath } from "@dxos/client-protocol";
28
21
  var view = Command.make("view", {}, Effect.fnUntraced(function* () {
29
22
  const config2 = yield* ConfigService;
30
- const { json } = yield* CommandConfig;
23
+ const { json, profile: profile2 } = yield* CommandConfig;
24
+ const configPath = getProfileConfigPath(DX_CONFIG, profile2);
31
25
  if (json) {
32
26
  yield* Console.log(JSON.stringify(config2.values, null, 2));
33
27
  } else {
28
+ yield* Console.log(`Path: ${configPath}`);
34
29
  yield* Console.log(Yaml.stringify(config2.values));
35
30
  }
36
31
  }));
37
32
 
38
- // src/cli/commands/config/index.ts
33
+ // src/commands/config/index.ts
39
34
  var config = Command2.make("config").pipe(Command2.withDescription("Config commands."), Command2.withSubcommands([
40
35
  view
41
36
  ]));
42
37
 
43
- // src/cli/commands/device/index.ts
38
+ // src/commands/device/index.ts
44
39
  import * as Command6 from "@effect/cli/Command";
45
40
 
46
- // src/cli/commands/device/info/info.ts
41
+ // src/commands/device/info/info.ts
47
42
  import * as Command3 from "@effect/cli/Command";
48
43
  import * as Console2 from "effect/Console";
49
44
  import * as Effect2 from "effect/Effect";
@@ -52,7 +47,7 @@ import { print } from "@dxos/cli-util";
52
47
  import { ClientService } from "@dxos/client";
53
48
  import { DeviceType as DeviceType2 } from "@dxos/protocols/proto/dxos/halo/credentials";
54
49
 
55
- // src/cli/commands/device/util.ts
50
+ // src/commands/device/util.ts
56
51
  import { FormBuilder } from "@dxos/cli-util";
57
52
  import { Device, DeviceKind, DeviceType } from "@dxos/client/halo";
58
53
  var maybeTruncateKey = (key, truncate = false) => truncate ? key.truncate() : key.toHex();
@@ -85,11 +80,10 @@ var printDevices = (devices) => {
85
80
  return devices.map(printDevice);
86
81
  };
87
82
 
88
- // src/cli/commands/device/info/info.ts
83
+ // src/commands/device/info/info.ts
89
84
  var handler = Effect2.fn(function* () {
90
85
  const { json } = yield* CommandConfig2;
91
86
  const client = yield* ClientService;
92
- yield* Effect2.tryPromise(() => client.spaces.waitUntilReady());
93
87
  const device2 = client.halo.device;
94
88
  if (!device2) {
95
89
  if (json) {
@@ -115,7 +109,7 @@ var handler = Effect2.fn(function* () {
115
109
  });
116
110
  var info = Command3.make("info", {}, handler).pipe(Command3.withDescription("Show device info."));
117
111
 
118
- // src/cli/commands/device/list/list.ts
112
+ // src/commands/device/list/list.ts
119
113
  import * as Command4 from "@effect/cli/Command";
120
114
  import * as Console3 from "effect/Console";
121
115
  import * as Effect3 from "effect/Effect";
@@ -125,7 +119,6 @@ import { ClientService as ClientService2 } from "@dxos/client";
125
119
  var handler2 = Effect3.fn(function* () {
126
120
  const { json } = yield* CommandConfig3;
127
121
  const client = yield* ClientService2;
128
- yield* Effect3.tryPromise(() => client.spaces.waitUntilReady());
129
122
  const devices = client.halo.devices.get();
130
123
  if (json) {
131
124
  yield* Console3.log(JSON.stringify(mapDevices(devices), null, 2));
@@ -136,7 +129,7 @@ var handler2 = Effect3.fn(function* () {
136
129
  });
137
130
  var list = Command4.make("list", {}, handler2).pipe(Command4.withDescription("List devices."));
138
131
 
139
- // src/cli/commands/device/update/update.ts
132
+ // src/commands/device/update/update.ts
140
133
  import * as Command5 from "@effect/cli/Command";
141
134
  import * as Options from "@effect/cli/Options";
142
135
  import * as Console4 from "effect/Console";
@@ -147,7 +140,6 @@ import { ClientService as ClientService3 } from "@dxos/client";
147
140
  var handler3 = Effect4.fn(function* ({ label }) {
148
141
  const { json } = yield* CommandConfig4;
149
142
  const client = yield* ClientService3;
150
- yield* Effect4.tryPromise(() => client.spaces.waitUntilReady());
151
143
  const device2 = client.halo.device;
152
144
  if (!device2) {
153
145
  if (json) {
@@ -188,17 +180,17 @@ var update = Command5.make("update", {
188
180
  label: Options.text("label").pipe(Options.withDescription("The device label."))
189
181
  }, handler3).pipe(Command5.withDescription("Update device label."));
190
182
 
191
- // src/cli/commands/device/index.ts
183
+ // src/commands/device/index.ts
192
184
  var device = Command6.make("device").pipe(Command6.withDescription("Manage HALO devices."), Command6.withSubcommands([
193
185
  info,
194
186
  list,
195
187
  update
196
188
  ]));
197
189
 
198
- // src/cli/commands/edge/index.ts
190
+ // src/commands/edge/index.ts
199
191
  import * as Command8 from "@effect/cli/Command";
200
192
 
201
- // src/cli/commands/edge/status.ts
193
+ // src/commands/edge/status.ts
202
194
  import * as Command7 from "@effect/cli/Command";
203
195
  import * as Console5 from "effect/Console";
204
196
  import * as Effect5 from "effect/Effect";
@@ -206,11 +198,13 @@ import * as Option from "effect/Option";
206
198
  import { CommandConfig as CommandConfig5 } from "@dxos/cli-util";
207
199
  import { ClientService as ClientService4 } from "@dxos/client";
208
200
  import { createEdgeIdentity } from "@dxos/client/edge";
201
+ import { Context } from "@dxos/context";
202
+ var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/edge/status.ts";
209
203
  var getStatus = () => Effect5.gen(function* () {
210
204
  const client = yield* ClientService4;
211
205
  const identity2 = createEdgeIdentity(client);
212
206
  client.edge.http.setIdentity(identity2);
213
- const status2 = yield* Effect5.tryPromise(() => client.edge.http.getStatus());
207
+ const status2 = yield* Effect5.tryPromise(() => client.edge.http.getStatus(Context.default(void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 16 })));
214
208
  if (yield* CommandConfig5.isJson) {
215
209
  yield* Console5.log(JSON.stringify(status2, null, 2));
216
210
  } else if (status2.problems.length > 0) {
@@ -232,46 +226,42 @@ var getStatus = () => Effect5.gen(function* () {
232
226
  );
233
227
  var status = Command7.make("status", {}, getStatus).pipe(Command7.withDescription("Get the EDGE status for the current identity."));
234
228
 
235
- // src/cli/commands/edge/index.ts
229
+ // src/commands/edge/index.ts
236
230
  var edge = Command8.make("edge").pipe(Command8.withDescription("EDGE commands."), Command8.withSubcommands([
237
231
  status
238
232
  ]));
239
233
 
240
- // src/cli/commands/halo/index.ts
234
+ // src/commands/halo/index.ts
241
235
  import * as Command18 from "@effect/cli/Command";
242
236
 
243
- // src/cli/commands/halo/create/create.ts
237
+ // src/commands/halo/create/create.ts
244
238
  import * as Command9 from "@effect/cli/Command";
245
239
  import * as Options2 from "@effect/cli/Options";
246
240
  import * as Console6 from "effect/Console";
247
241
  import * as Effect6 from "effect/Effect";
248
242
  import * as Option2 from "effect/Option";
249
243
  import { Capabilities, Plugin } from "@dxos/app-framework";
244
+ import { PERSONAL_SPACE_TAG } from "@dxos/app-toolkit";
250
245
  import { CommandConfig as CommandConfig6, flushAndSync, spaceLayer } from "@dxos/cli-util";
251
246
  import { print as print3 } from "@dxos/cli-util";
252
247
  import { ClientService as ClientService5 } from "@dxos/client";
253
248
  import { invariant } from "@dxos/invariant";
249
+ import { EdgeReplicationSetting } from "@dxos/protocols/proto/dxos/echo/metadata";
250
+ import { MembershipPolicy } from "@dxos/protocols/proto/dxos/halo/credentials";
251
+ import { ClientOperation } from "#operations";
254
252
 
255
- // src/cli/commands/halo/util.ts
253
+ // src/commands/halo/util.ts
256
254
  import { FormBuilder as FormBuilder2 } from "@dxos/cli-util";
257
255
  var printIdentity = (identity2) => FormBuilder2.make({
258
256
  title: "Identity"
259
257
  }).pipe(FormBuilder2.set("identityKey", identity2.identityKey.truncate()), FormBuilder2.set("displayName", identity2.profile?.displayName ?? "<none>"), FormBuilder2.build);
260
258
 
261
- // src/cli/commands/halo/create/create.ts
262
- var __dxlog_file = "/__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";
263
261
  var handler4 = Effect6.fn(function* ({ agent, displayName }) {
264
262
  const { json } = yield* CommandConfig6;
265
263
  const client = yield* ClientService5;
266
- invariant(!client.halo.identity.get(), "Identity already exists", {
267
- F: __dxlog_file,
268
- L: 30,
269
- S: this,
270
- A: [
271
- "!client.halo.identity.get()",
272
- "'Identity already exists'"
273
- ]
274
- });
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'"] });
275
265
  const manager = yield* Plugin.Service;
276
266
  const { invoke } = manager.capabilities.get(Capabilities.OperationInvoker);
277
267
  const identity2 = yield* invoke(ClientOperation.CreateIdentity, {
@@ -280,9 +270,14 @@ var handler4 = Effect6.fn(function* ({ agent, displayName }) {
280
270
  if (agent) {
281
271
  yield* invoke(ClientOperation.CreateAgent);
282
272
  }
283
- yield* Effect6.promise(() => client.spaces.waitUntilReady());
284
- yield* Effect6.promise(() => client.spaces.default.waitUntilReady());
285
- const space = client.spaces.default;
273
+ const space = yield* Effect6.promise(() => client.spaces.create({}, {
274
+ tags: [
275
+ PERSONAL_SPACE_TAG
276
+ ],
277
+ membershipPolicy: MembershipPolicy.LOCKED
278
+ }));
279
+ yield* Effect6.promise(() => space.waitUntilReady());
280
+ yield* Effect6.promise(() => space.internal.setEdgeReplicationPreference(EdgeReplicationSetting.ENABLED));
286
281
  yield* flushAndSync({
287
282
  indexes: true
288
283
  }).pipe(Effect6.provide(spaceLayer(Option2.some(space.id))));
@@ -302,10 +297,10 @@ var create = Command9.make("create", {
302
297
  displayName: Options2.text("displayName").pipe(Options2.withDescription("The display name of the identity."), Options2.optional)
303
298
  }, handler4).pipe(Command9.withDescription("Create a new identity."));
304
299
 
305
- // src/cli/commands/halo/credential/index.ts
300
+ // src/commands/halo/credential/index.ts
306
301
  import * as Command12 from "@effect/cli/Command";
307
302
 
308
- // src/cli/commands/halo/credential/add/add.ts
303
+ // src/commands/halo/credential/add/add.ts
309
304
  import * as Args from "@effect/cli/Args";
310
305
  import * as Command10 from "@effect/cli/Command";
311
306
  import * as Prompt from "@effect/cli/Prompt";
@@ -316,7 +311,7 @@ import { CommandConfig as CommandConfig7 } from "@dxos/cli-util";
316
311
  import { ClientService as ClientService6 } from "@dxos/client";
317
312
  import { invariant as invariant2 } from "@dxos/invariant";
318
313
  import { schema } from "@dxos/protocols/proto";
319
- var __dxlog_file2 = "/__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";
320
315
  var handler5 = Effect7.fn(function* ({ credential: credential2 }) {
321
316
  const { json } = yield* CommandConfig7;
322
317
  const client = yield* ClientService6;
@@ -326,15 +321,7 @@ var handler5 = Effect7.fn(function* ({ credential: credential2 }) {
326
321
  message: "Enter credential (hex string)"
327
322
  }).pipe(Prompt.run);
328
323
  }
329
- invariant2(credentialHex, "Invalid credential.", {
330
- F: __dxlog_file2,
331
- L: 26,
332
- S: this,
333
- A: [
334
- "credentialHex",
335
- "'Invalid credential.'"
336
- ]
337
- });
324
+ invariant2(credentialHex, "Invalid credential.", { "~LogMeta": "~LogMeta", F: __dxlog_file3, L: 23, S: this, A: ["credentialHex", "'Invalid credential.'"] });
338
325
  const identity2 = client.halo.identity;
339
326
  if (!identity2) {
340
327
  if (json) {
@@ -391,14 +378,14 @@ var add = Command10.make("add", {
391
378
  }).pipe(Args.withDescription("Credential as hex string."), Args.optional)
392
379
  }, handler5).pipe(Command10.withDescription("Import credential into HALO."));
393
380
 
394
- // src/cli/commands/halo/credential/list/list.ts
381
+ // src/commands/halo/credential/list/list.ts
395
382
  import * as Command11 from "@effect/cli/Command";
396
383
  import * as Options3 from "@effect/cli/Options";
397
384
  import * as Console8 from "effect/Console";
398
385
  import * as Duration from "effect/Duration";
399
386
  import * as Effect8 from "effect/Effect";
400
387
  import * as Option4 from "effect/Option";
401
- import { CommandConfig as CommandConfig8, Common, FormBuilder as FormBuilder3, getSpace, printList as printList2, spaceIdWithDefault } from "@dxos/cli-util";
388
+ import { CommandConfig as CommandConfig8, Common, FormBuilder as FormBuilder3, getSpace, printList as printList2 } from "@dxos/cli-util";
402
389
  import { ClientService as ClientService7 } from "@dxos/client";
403
390
  var mapCredentials = (credentials) => {
404
391
  return credentials.map((credential2) => ({
@@ -418,11 +405,9 @@ var printCredential = (credential2) => {
418
405
  var handler6 = Effect8.fn(function* ({ type, spaceId, timeout: timeout2, delay }) {
419
406
  const { json } = yield* CommandConfig8;
420
407
  const client = yield* ClientService7;
421
- yield* Effect8.tryPromise(() => client.spaces.waitUntilReady());
422
408
  let credentials;
423
- const resolvedSpaceId = yield* spaceIdWithDefault(spaceId);
424
409
  if (Option4.isSome(spaceId)) {
425
- const space = yield* getSpace(resolvedSpaceId);
410
+ const space = yield* getSpace(spaceId.value);
426
411
  credentials = yield* Effect8.tryPromise(() => space.internal.getCredentials());
427
412
  } else {
428
413
  const identity2 = client.halo.identity;
@@ -464,13 +449,13 @@ var list2 = Command11.make("list", {
464
449
  delay: Options3.integer("delay").pipe(Options3.withDescription("Delay in milliseconds before listing."), Options3.withDefault(250))
465
450
  }, handler6).pipe(Command11.withDescription("List HALO credentials."));
466
451
 
467
- // src/cli/commands/halo/credential/index.ts
452
+ // src/commands/halo/credential/index.ts
468
453
  var credential = Command12.make("credential").pipe(Command12.withDescription("Manage HALO credentials."), Command12.withSubcommands([
469
454
  add,
470
455
  list2
471
456
  ]));
472
457
 
473
- // src/cli/commands/halo/identity/identity.ts
458
+ // src/commands/halo/identity/identity.ts
474
459
  import * as Command13 from "@effect/cli/Command";
475
460
  import * as Console9 from "effect/Console";
476
461
  import * as Effect9 from "effect/Effect";
@@ -490,7 +475,6 @@ var handler7 = Effect9.fn(function* () {
490
475
  yield* Console9.log("Identity not initialized.");
491
476
  }
492
477
  } else {
493
- yield* Effect9.tryPromise(() => client.spaces.waitUntilReady());
494
478
  if (json) {
495
479
  yield* Console9.log(JSON.stringify({
496
480
  identityKey: identity2.identityKey.toHex(),
@@ -503,7 +487,7 @@ var handler7 = Effect9.fn(function* () {
503
487
  });
504
488
  var identity = Command13.make("identity", {}, handler7).pipe(Command13.withDescription("Get the current identity."));
505
489
 
506
- // src/cli/commands/halo/keys/keys.ts
490
+ // src/commands/halo/keys/keys.ts
507
491
  import * as Command14 from "@effect/cli/Command";
508
492
  import * as Console10 from "effect/Console";
509
493
  import * as Effect10 from "effect/Effect";
@@ -514,7 +498,6 @@ import { ClientService as ClientService9 } from "@dxos/client";
514
498
  var handler8 = Effect10.fn(function* () {
515
499
  const { json } = yield* CommandConfig10;
516
500
  const client = yield* ClientService9;
517
- yield* Effect10.tryPromise(() => client.spaces.waitUntilReady());
518
501
  const identity2 = client.halo.identity.get();
519
502
  const device2 = client.halo.device;
520
503
  if (json) {
@@ -531,7 +514,7 @@ var handler8 = Effect10.fn(function* () {
531
514
  });
532
515
  var keys = Command14.make("keys", {}, handler8).pipe(Command14.withDescription("Show HALO keys."));
533
516
 
534
- // src/cli/commands/halo/recover/recover.ts
517
+ // src/commands/halo/recover/recover.ts
535
518
  import * as Args2 from "@effect/cli/Args";
536
519
  import * as Command15 from "@effect/cli/Command";
537
520
  import * as Console11 from "effect/Console";
@@ -539,7 +522,7 @@ import * as Effect11 from "effect/Effect";
539
522
  import { CommandConfig as CommandConfig11, print as print6 } from "@dxos/cli-util";
540
523
  import { ClientService as ClientService10 } from "@dxos/client";
541
524
  import { invariant as invariant3 } from "@dxos/invariant";
542
- var __dxlog_file3 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/cli/commands/halo/recover/recover.ts";
525
+ var __dxlog_file4 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/halo/recover/recover.ts";
543
526
  var recover = Command15.make("recover", {
544
527
  recoveryCode: Args2.text({
545
528
  name: "recoveryCode"
@@ -547,15 +530,7 @@ var recover = Command15.make("recover", {
547
530
  }, Effect11.fn(function* ({ recoveryCode }) {
548
531
  const { json } = yield* CommandConfig11;
549
532
  const client = yield* ClientService10;
550
- invariant3(!client.halo.identity.get(), "Identity already exists", {
551
- F: __dxlog_file3,
552
- L: 25,
553
- S: this,
554
- A: [
555
- "!client.halo.identity.get()",
556
- "'Identity already exists'"
557
- ]
558
- });
533
+ 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'"] });
559
534
  const identity2 = yield* Effect11.tryPromise(() => client.halo.recoverIdentity({
560
535
  recoveryCode
561
536
  }));
@@ -570,7 +545,7 @@ var recover = Command15.make("recover", {
570
545
  }
571
546
  })).pipe(Command15.withDescription("Recover an existing identity using a recovery code."));
572
547
 
573
- // src/cli/commands/halo/seed/seed.ts
548
+ // src/commands/halo/seed/seed.ts
574
549
  import * as Command16 from "@effect/cli/Command";
575
550
  import * as Console12 from "effect/Console";
576
551
  import * as Effect12 from "effect/Effect";
@@ -579,7 +554,6 @@ import { ClientService as ClientService11 } from "@dxos/client";
579
554
  var handler9 = Effect12.fn(function* () {
580
555
  const { json } = yield* CommandConfig12;
581
556
  const client = yield* ClientService11;
582
- yield* Effect12.tryPromise(() => client.spaces.waitUntilReady());
583
557
  const identityService = client.services.services.IdentityService;
584
558
  if (!identityService) {
585
559
  if (json) {
@@ -602,7 +576,7 @@ var handler9 = Effect12.fn(function* () {
602
576
  });
603
577
  var seed = Command16.make("seed", {}, handler9).pipe(Command16.withDescription("Generate a seedphrase that can be used for identity recovery."));
604
578
 
605
- // src/cli/commands/halo/update/update.ts
579
+ // src/commands/halo/update/update.ts
606
580
  import * as Command17 from "@effect/cli/Command";
607
581
  import * as Options4 from "@effect/cli/Options";
608
582
  import * as Console13 from "effect/Console";
@@ -613,7 +587,6 @@ import { ClientService as ClientService12 } from "@dxos/client";
613
587
  var handler10 = Effect13.fn(function* ({ displayName }) {
614
588
  const { json } = yield* CommandConfig13;
615
589
  const client = yield* ClientService12;
616
- yield* Effect13.tryPromise(() => client.spaces.waitUntilReady());
617
590
  const identity2 = client.halo.identity.get();
618
591
  if (!identity2) {
619
592
  if (json) {
@@ -652,7 +625,7 @@ var update2 = Command17.make("update", {
652
625
  displayName: Options4.text("displayName").pipe(Options4.withDescription("The display name of the identity."))
653
626
  }, handler10).pipe(Command17.withDescription("Update identity profile."));
654
627
 
655
- // src/cli/commands/halo/index.ts
628
+ // src/commands/halo/index.ts
656
629
  var halo = Command18.make("halo").pipe(Command18.withDescription("Manage HALO identity."), Command18.withSubcommands([
657
630
  create,
658
631
  credential,
@@ -663,10 +636,10 @@ var halo = Command18.make("halo").pipe(Command18.withDescription("Manage HALO id
663
636
  update2
664
637
  ]));
665
638
 
666
- // src/cli/commands/profile/index.ts
639
+ // src/commands/profile/index.ts
667
640
  import * as Command25 from "@effect/cli/Command";
668
641
 
669
- // src/cli/commands/profile/create.ts
642
+ // src/commands/profile/create.ts
670
643
  import * as Command19 from "@effect/cli/Command";
671
644
  import * as Options5 from "@effect/cli/Options";
672
645
  import * as FileSystem from "@effect/platform/FileSystem";
@@ -676,10 +649,10 @@ import * as Effect14 from "effect/Effect";
676
649
  import * as Option6 from "effect/Option";
677
650
  import * as Record from "effect/Record";
678
651
  import { CommandConfig as CommandConfig14, print as print8 } from "@dxos/cli-util";
679
- import { DX_CONFIG, getProfileConfigPath } from "@dxos/client-protocol";
652
+ import { DX_CONFIG as DX_CONFIG2, getProfileConfigPath as getProfileConfigPath2 } from "@dxos/client-protocol";
680
653
  import { trim } from "@dxos/util";
681
654
 
682
- // src/cli/commands/profile/util.ts
655
+ // src/commands/profile/util.ts
683
656
  import { FormBuilder as FormBuilder5 } from "@dxos/cli-util";
684
657
  var printProfileCreated = (name, path) => FormBuilder5.make({
685
658
  title: "Profile created"
@@ -697,7 +670,7 @@ var printProfile = (profile2) => {
697
670
  }).pipe(FormBuilder5.set("fullPath", profile2.fullPath), FormBuilder5.set("storagePath", profile2.storagePath), FormBuilder5.set("edge", profile2.edge ?? "<none>"), FormBuilder5.build);
698
671
  };
699
672
 
700
- // src/cli/commands/profile/create.ts
673
+ // src/commands/profile/create.ts
701
674
  var TEMPLATES = {
702
675
  default: trim`
703
676
  version: 1
@@ -748,7 +721,7 @@ var create2 = Command19.make("create", {
748
721
  const fs = yield* FileSystem.FileSystem;
749
722
  const path = yield* Path.Path;
750
723
  const profileName = name.pipe(Option6.getOrElse(() => template));
751
- const configPath = getProfileConfigPath(DX_CONFIG, profileName);
724
+ const configPath = getProfileConfigPath2(DX_CONFIG2, profileName);
752
725
  if (yield* fs.exists(configPath)) {
753
726
  throw new Error(`Profile ${profileName} already exists`);
754
727
  }
@@ -766,7 +739,7 @@ var create2 = Command19.make("create", {
766
739
  }
767
740
  }));
768
741
 
769
- // src/cli/commands/profile/delete.ts
742
+ // src/commands/profile/delete.ts
770
743
  import * as Command20 from "@effect/cli/Command";
771
744
  import * as Options6 from "@effect/cli/Options";
772
745
  import * as FileSystem3 from "@effect/platform/FileSystem";
@@ -774,15 +747,15 @@ import * as Console15 from "effect/Console";
774
747
  import * as Effect15 from "effect/Effect";
775
748
  import * as Option7 from "effect/Option";
776
749
  import { CommandConfig as CommandConfig15, print as print9 } from "@dxos/cli-util";
777
- import { DX_CONFIG as DX_CONFIG2, getProfileConfigPath as getProfileConfigPath2 } from "@dxos/client-protocol";
750
+ import { DX_CONFIG as DX_CONFIG3, getProfileConfigPath as getProfileConfigPath3 } from "@dxos/client-protocol";
778
751
  var del = Command20.make("delete", {
779
752
  name: Options6.text("name").pipe(Options6.withDescription("Profile name"), Options6.optional)
780
753
  }, Effect15.fnUntraced(function* ({ name }) {
781
754
  const { json } = yield* CommandConfig15;
782
755
  const fs = yield* FileSystem3.FileSystem;
783
756
  const profileName = name.pipe(Option7.getOrElse(() => "default"));
784
- const configPath = getProfileConfigPath2(DX_CONFIG2, profileName);
785
- const pluginsPath = `${DX_CONFIG2}/plugins/${profileName}.yml`;
757
+ const configPath = getProfileConfigPath3(DX_CONFIG3, profileName);
758
+ const pluginsPath = `${DX_CONFIG3}/plugins/${profileName}.yml`;
786
759
  yield* fs.remove(configPath).pipe(Effect15.ignore);
787
760
  yield* fs.remove(pluginsPath).pipe(Effect15.ignore);
788
761
  if (json) {
@@ -795,7 +768,7 @@ var del = Command20.make("delete", {
795
768
  }
796
769
  }));
797
770
 
798
- // src/cli/commands/profile/import.ts
771
+ // src/commands/profile/import.ts
799
772
  import * as Command21 from "@effect/cli/Command";
800
773
  import * as Options7 from "@effect/cli/Options";
801
774
  import * as Prompt2 from "@effect/cli/Prompt";
@@ -807,7 +780,7 @@ import * as Option8 from "effect/Option";
807
780
  import { CommandConfig as CommandConfig16 } from "@dxos/cli-util";
808
781
  import { ConfigService as ConfigService2 } from "@dxos/config";
809
782
  import { log as log17 } from "@dxos/log";
810
- var __dxlog_file4 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/cli/commands/profile/import.ts";
783
+ var __dxlog_file5 = "/__w/dxos/dxos/packages/plugins/plugin-client/src/commands/profile/import.ts";
811
784
  var handler11 = Effect16.fn(function* ({ file, dataDir, force }) {
812
785
  const dataDirValue = Option8.getOrUndefined(dataDir);
813
786
  const { json, profile: profile2 } = yield* CommandConfig16;
@@ -839,12 +812,7 @@ var handler11 = Effect16.fn(function* ({ file, dataDir, force }) {
839
812
  if (yield* fs.exists(storageConfig.dataRoot)) {
840
813
  log17.error("data directory already exists", {
841
814
  path: storageConfig.dataRoot
842
- }, {
843
- F: __dxlog_file4,
844
- L: 61,
845
- S: this,
846
- C: (f, a) => f(...a)
847
- });
815
+ }, { "~LogMeta": "~LogMeta", F: __dxlog_file5, L: 44, S: this });
848
816
  if (json) {
849
817
  yield* Console16.log(JSON.stringify({
850
818
  error: "Data directory already exists"
@@ -887,7 +855,7 @@ var importCommand = Command21.make("import", {
887
855
  }).pipe(Options7.withDescription("Skip confirmation prompt."))
888
856
  }, handler11).pipe(Command21.withDescription("Import profile."));
889
857
 
890
- // src/cli/commands/profile/inspect.ts
858
+ // src/commands/profile/inspect.ts
891
859
  import * as Command22 from "@effect/cli/Command";
892
860
  import * as Options8 from "@effect/cli/Options";
893
861
  import * as FileSystem7 from "@effect/platform/FileSystem";
@@ -930,7 +898,7 @@ var inspect = Command22.make("inspect", {
930
898
  }).pipe(Options8.withDescription("List storage entries."))
931
899
  }, handler12).pipe(Command22.withDescription("Inspect profile archive."));
932
900
 
933
- // src/cli/commands/profile/list.ts
901
+ // src/commands/profile/list.ts
934
902
  import * as Command23 from "@effect/cli/Command";
935
903
  import * as FileSystem9 from "@effect/platform/FileSystem";
936
904
  import * as Path5 from "@effect/platform/Path";
@@ -939,12 +907,12 @@ import * as Effect18 from "effect/Effect";
939
907
  import * as Yaml2 from "yaml";
940
908
  import { CommandConfig as CommandConfig18, printList as printList3 } from "@dxos/cli-util";
941
909
  import { Config } from "@dxos/client";
942
- import { DX_CONFIG as DX_CONFIG3, DX_DATA, getProfilePath } from "@dxos/client-protocol";
910
+ import { DX_CONFIG as DX_CONFIG4, DX_DATA, getProfilePath } from "@dxos/client-protocol";
943
911
  var list3 = Command23.make("list", {}, Effect18.fnUntraced(function* () {
944
912
  const { profile: currentProfile } = yield* CommandConfig18;
945
913
  const fs = yield* FileSystem9.FileSystem;
946
914
  const path = yield* Path5.Path;
947
- const profileDir = path.join(DX_CONFIG3, "profile");
915
+ const profileDir = path.join(DX_CONFIG4, "profile");
948
916
  const entries = yield* fs.readDirectory(profileDir);
949
917
  const profileFiles = entries.filter((entry) => entry.endsWith(".yml"));
950
918
  const profiles = yield* Effect18.forEach(profileFiles, (filename) => Effect18.gen(function* () {
@@ -970,7 +938,7 @@ var list3 = Command23.make("list", {}, Effect18.fnUntraced(function* () {
970
938
  }
971
939
  }));
972
940
 
973
- // src/cli/commands/profile/reset.ts
941
+ // src/commands/profile/reset.ts
974
942
  import * as Command24 from "@effect/cli/Command";
975
943
  import * as Options9 from "@effect/cli/Options";
976
944
  import * as Prompt3 from "@effect/cli/Prompt";
@@ -1011,7 +979,7 @@ var reset = Command24.make("reset", {
1011
979
  }
1012
980
  }));
1013
981
 
1014
- // src/cli/commands/profile/index.ts
982
+ // src/commands/profile/index.ts
1015
983
  var profile = Command25.make("profile").pipe(Command25.withDescription("Profile commands."), Command25.withSubcommands([
1016
984
  create2,
1017
985
  del,
@@ -1021,7 +989,7 @@ var profile = Command25.make("profile").pipe(Command25.withDescription("Profile
1021
989
  reset
1022
990
  ]));
1023
991
 
1024
- // src/cli/plugin.ts
992
+ // src/ClientPlugin.node.ts
1025
993
  var ClientPlugin = Plugin2.define(meta).pipe(
1026
994
  // TODO(wittjosiah): Could some of these commands make use of operations?
1027
995
  AppPlugin.addCommandModule({
@@ -1033,27 +1001,29 @@ var ClientPlugin = Plugin2.define(meta).pipe(
1033
1001
  profile
1034
1002
  ]
1035
1003
  }),
1036
- AppPlugin.addOperationResolverModule({
1037
- activate: OperationResolver
1004
+ AppPlugin.addOperationHandlerModule({
1005
+ activate: OperationHandler
1038
1006
  }),
1039
1007
  Plugin2.addModule((options) => ({
1040
1008
  id: Capability.getModuleTag(Client),
1041
1009
  activatesOn: ActivationEvents.Startup,
1042
- activatesAfter: [
1010
+ firesAfterActivation: [
1043
1011
  ClientEvents.ClientReady
1044
1012
  ],
1045
1013
  activate: () => Client(options)
1046
1014
  })),
1047
1015
  Plugin2.addModule({
1048
1016
  activatesOn: ClientEvents.ClientReady,
1049
- activatesBefore: [
1017
+ firesBeforeActivation: [
1050
1018
  AppActivationEvents.SetupSchema
1051
1019
  ],
1052
1020
  activate: SchemaDefs
1053
1021
  }),
1054
1022
  Plugin2.make
1055
1023
  );
1024
+ var ClientPlugin_node_default = ClientPlugin;
1056
1025
  export {
1057
- ClientPlugin
1026
+ ClientPlugin,
1027
+ ClientPlugin_node_default as default
1058
1028
  };
1059
- //# sourceMappingURL=index.mjs.map
1029
+ //# sourceMappingURL=ClientPlugin.node.mjs.map