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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/dist/lib/browser/{add-message-A33GVGQX.mjs → add-message-LRVGIHDH.mjs} +9 -17
  2. package/dist/lib/browser/add-message-LRVGIHDH.mjs.map +7 -0
  3. package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs +40 -0
  4. package/dist/lib/browser/append-channel-message-CO3M6FSA.mjs.map +7 -0
  5. package/dist/lib/browser/blueprints/index.mjs +1 -1
  6. package/dist/lib/browser/blueprints/index.mjs.map +3 -3
  7. package/dist/lib/browser/chunk-E4GG3NX2.mjs +29 -0
  8. package/dist/lib/browser/chunk-E4GG3NX2.mjs.map +7 -0
  9. package/dist/lib/browser/{chunk-2QNKWX4H.mjs → chunk-TPNZ43NB.mjs} +15 -16
  10. package/dist/lib/browser/chunk-TPNZ43NB.mjs.map +7 -0
  11. package/dist/lib/browser/{create-N2ZVTONJ.mjs → create-BTGLHLBA.mjs} +9 -9
  12. package/dist/lib/browser/create-BTGLHLBA.mjs.map +7 -0
  13. package/dist/lib/browser/{create-channel-Y4H3535D.mjs → create-channel-ZXKSLHGN.mjs} +5 -7
  14. package/dist/lib/browser/create-channel-ZXKSLHGN.mjs.map +7 -0
  15. package/dist/lib/browser/{create-proposals-VTOSWUOX.mjs → create-proposals-AV5CREPV.mjs} +3 -4
  16. package/dist/lib/browser/create-proposals-AV5CREPV.mjs.map +7 -0
  17. package/dist/lib/browser/{delete-QZZE655Y.mjs → delete-GLYEP7NE.mjs} +6 -6
  18. package/dist/lib/browser/delete-GLYEP7NE.mjs.map +7 -0
  19. package/dist/lib/browser/{delete-message-WQAZLYBO.mjs → delete-message-RQ72ZY5D.mjs} +5 -14
  20. package/dist/lib/browser/delete-message-RQ72ZY5D.mjs.map +7 -0
  21. package/dist/lib/browser/index.mjs +79 -592
  22. package/dist/lib/browser/index.mjs.map +4 -4
  23. package/dist/lib/browser/meta.json +1 -1
  24. package/dist/lib/browser/{on-create-space-2UGS234J.mjs → on-create-space-SPE3QVFZ.mjs} +3 -4
  25. package/dist/lib/browser/on-create-space-SPE3QVFZ.mjs.map +7 -0
  26. package/dist/lib/browser/operations/index.mjs +3 -4
  27. package/dist/lib/browser/operations/index.mjs.map +3 -3
  28. package/dist/lib/browser/{restore-KKQHFLYO.mjs → restore-VX7FLZOZ.mjs} +3 -4
  29. package/dist/lib/browser/restore-VX7FLZOZ.mjs.map +7 -0
  30. package/dist/lib/browser/{restore-message-VOP2UE7N.mjs → restore-message-D65NSWUA.mjs} +5 -14
  31. package/dist/lib/browser/restore-message-D65NSWUA.mjs.map +7 -0
  32. package/dist/lib/browser/{select-VBJ3MBLN.mjs → select-AT4L7EBU.mjs} +6 -6
  33. package/dist/lib/browser/{select-VBJ3MBLN.mjs.map → select-AT4L7EBU.mjs.map} +1 -1
  34. package/dist/lib/browser/{toggle-resolved-GIYF3KWJ.mjs → toggle-resolved-JD3D4WBZ.mjs} +5 -14
  35. package/dist/lib/browser/toggle-resolved-JD3D4WBZ.mjs.map +7 -0
  36. package/dist/lib/browser/translations.mjs +90 -0
  37. package/dist/lib/browser/translations.mjs.map +7 -0
  38. package/dist/lib/browser/types/index.mjs +1 -3
  39. package/dist/lib/node-esm/{add-message-E6XC6E3Z.mjs → add-message-4EAQ2ZPI.mjs} +9 -17
  40. package/dist/lib/node-esm/add-message-4EAQ2ZPI.mjs.map +7 -0
  41. package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs +41 -0
  42. package/dist/lib/node-esm/append-channel-message-F7KGBSWP.mjs.map +7 -0
  43. package/dist/lib/node-esm/blueprints/index.mjs +1 -1
  44. package/dist/lib/node-esm/blueprints/index.mjs.map +3 -3
  45. package/dist/lib/node-esm/chunk-BVEZBGIY.mjs +30 -0
  46. package/dist/lib/node-esm/chunk-BVEZBGIY.mjs.map +7 -0
  47. package/dist/lib/node-esm/{chunk-I6LAZYVU.mjs → chunk-XKUMDYGR.mjs} +15 -16
  48. package/dist/lib/node-esm/chunk-XKUMDYGR.mjs.map +7 -0
  49. package/dist/lib/node-esm/{create-A6XQZR7M.mjs → create-DEZFPN2Y.mjs} +9 -9
  50. package/dist/lib/node-esm/create-DEZFPN2Y.mjs.map +7 -0
  51. package/dist/lib/node-esm/{create-channel-KA5T23ZS.mjs → create-channel-6VHTC2OR.mjs} +5 -7
  52. package/dist/lib/node-esm/create-channel-6VHTC2OR.mjs.map +7 -0
  53. package/dist/lib/node-esm/{create-proposals-HDBVDNUX.mjs → create-proposals-P5O2ICOL.mjs} +3 -4
  54. package/dist/lib/{browser/create-proposals-VTOSWUOX.mjs.map → node-esm/create-proposals-P5O2ICOL.mjs.map} +3 -3
  55. package/dist/lib/node-esm/{delete-3RAWD5GG.mjs → delete-QG45QLPY.mjs} +6 -6
  56. package/dist/lib/node-esm/delete-QG45QLPY.mjs.map +7 -0
  57. package/dist/lib/node-esm/{delete-message-W4XFE4KW.mjs → delete-message-PGNLB6TL.mjs} +5 -14
  58. package/dist/lib/node-esm/delete-message-PGNLB6TL.mjs.map +7 -0
  59. package/dist/lib/node-esm/index.mjs +79 -592
  60. package/dist/lib/node-esm/index.mjs.map +4 -4
  61. package/dist/lib/node-esm/meta.json +1 -1
  62. package/dist/lib/node-esm/{on-create-space-ZURB6UKR.mjs → on-create-space-TFBSHWQ4.mjs} +3 -4
  63. package/dist/lib/{browser/on-create-space-2UGS234J.mjs.map → node-esm/on-create-space-TFBSHWQ4.mjs.map} +1 -1
  64. package/dist/lib/node-esm/operations/index.mjs +3 -4
  65. package/dist/lib/node-esm/operations/index.mjs.map +3 -3
  66. package/dist/lib/node-esm/{restore-PDYEKDE3.mjs → restore-E27OAIFJ.mjs} +3 -4
  67. package/dist/lib/node-esm/restore-E27OAIFJ.mjs.map +7 -0
  68. package/dist/lib/node-esm/{restore-message-O5XC34MW.mjs → restore-message-J3CH6NGI.mjs} +5 -14
  69. package/dist/lib/node-esm/restore-message-J3CH6NGI.mjs.map +7 -0
  70. package/dist/lib/node-esm/{select-6KETLVWY.mjs → select-UU6Q2XAB.mjs} +6 -6
  71. package/dist/lib/node-esm/{select-6KETLVWY.mjs.map → select-UU6Q2XAB.mjs.map} +1 -1
  72. package/dist/lib/node-esm/{toggle-resolved-QR3SOXR7.mjs → toggle-resolved-VS6NKXL3.mjs} +5 -14
  73. package/dist/lib/node-esm/toggle-resolved-VS6NKXL3.mjs.map +7 -0
  74. package/dist/lib/node-esm/translations.mjs +91 -0
  75. package/dist/lib/node-esm/translations.mjs.map +7 -0
  76. package/dist/lib/node-esm/types/index.mjs +1 -3
  77. package/dist/types/src/ThreadPlugin.d.ts +1 -0
  78. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  79. package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
  80. package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
  81. package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
  82. package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
  83. package/dist/types/src/blueprints/thread-blueprint.d.ts +2 -2
  84. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -1
  85. package/dist/types/src/calls/call-manager.d.ts.map +1 -1
  86. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
  87. package/dist/types/src/calls/media-manager.d.ts.map +1 -1
  88. package/dist/types/src/calls/speaking-monitor.d.ts +0 -3
  89. package/dist/types/src/calls/speaking-monitor.d.ts.map +1 -1
  90. package/dist/types/src/calls/types.d.ts.map +1 -1
  91. package/dist/types/src/calls/util/audio.d.ts.map +1 -1
  92. package/dist/types/src/calls/util/calls-service.d.ts +2 -2
  93. package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
  94. package/dist/types/src/calls/util/history-cache.d.ts.map +1 -1
  95. package/dist/types/src/calls/util/media.d.ts.map +1 -1
  96. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +1 -1
  97. package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
  98. package/dist/types/src/calls-service.stories.d.ts.map +1 -1
  99. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  100. package/dist/types/src/capabilities/blueprint-definition.d.ts +2 -2
  101. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
  102. package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
  103. package/dist/types/src/capabilities/index.d.ts +4 -4
  104. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  105. package/dist/types/src/capabilities/markdown.d.ts +1 -1
  106. package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
  107. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  108. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  109. package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
  110. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  111. package/dist/types/src/capabilities/settings.d.ts +2 -1
  112. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  113. package/dist/types/src/capabilities/state.d.ts.map +1 -1
  114. package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -1
  115. package/dist/types/src/components/Call/Call.d.ts +32 -4
  116. package/dist/types/src/components/Call/Call.d.ts.map +1 -1
  117. package/dist/types/src/components/Call/Toolbar.d.ts +5 -5
  118. package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
  119. package/dist/types/src/components/Chat/Chat.d.ts +44 -0
  120. package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
  121. package/dist/types/src/components/Chat/index.d.ts +2 -0
  122. package/dist/types/src/components/Chat/index.d.ts.map +1 -0
  123. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -1
  124. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +70 -70
  125. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -1
  126. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -1
  127. package/dist/types/src/components/Lobby/Lobby.d.ts +24 -3
  128. package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
  129. package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
  130. package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
  131. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
  132. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -1
  133. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +1 -1
  134. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +1 -1
  135. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +70 -70
  136. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
  137. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
  138. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -1
  139. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +70 -70
  140. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -1
  141. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -1
  142. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +70 -70
  143. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -1
  144. package/dist/types/src/components/index.d.ts +1 -0
  145. package/dist/types/src/components/index.d.ts.map +1 -1
  146. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -1
  147. package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts +16 -0
  148. package/dist/types/src/containers/ChannelChat/ChannelChat.d.ts.map +1 -0
  149. package/dist/types/src/containers/ChannelChat/index.d.ts +4 -0
  150. package/dist/types/src/containers/ChannelChat/index.d.ts.map +1 -0
  151. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +1 -1
  152. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -1
  153. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +70 -70
  154. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -1
  155. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -1
  156. package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts +20 -0
  157. package/dist/types/src/containers/ThreadContainer/ThreadContainer.d.ts.map +1 -0
  158. package/dist/types/src/containers/{ChatContainer/ChatContainer.stories.d.ts → ThreadContainer/ThreadContainer.stories.d.ts} +71 -71
  159. package/dist/types/src/containers/ThreadContainer/ThreadContainer.stories.d.ts.map +1 -0
  160. package/dist/types/src/containers/ThreadContainer/index.d.ts +4 -0
  161. package/dist/types/src/containers/ThreadContainer/index.d.ts.map +1 -0
  162. package/dist/types/src/containers/index.d.ts +2 -1
  163. package/dist/types/src/containers/index.d.ts.map +1 -1
  164. package/dist/types/src/extensions/threads.d.ts +2 -2
  165. package/dist/types/src/extensions/threads.d.ts.map +1 -1
  166. package/dist/types/src/hooks/analytics.d.ts.map +1 -1
  167. package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
  168. package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
  169. package/dist/types/src/index.d.ts +3 -2
  170. package/dist/types/src/index.d.ts.map +1 -1
  171. package/dist/types/src/operations/add-message.d.ts +1 -1
  172. package/dist/types/src/operations/add-message.d.ts.map +1 -1
  173. package/dist/types/src/operations/append-channel-message.d.ts +5 -0
  174. package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
  175. package/dist/types/src/operations/create-channel.d.ts +1 -1
  176. package/dist/types/src/operations/create-channel.d.ts.map +1 -1
  177. package/dist/types/src/operations/create-proposals.d.ts +1 -1
  178. package/dist/types/src/operations/create-proposals.d.ts.map +1 -1
  179. package/dist/types/src/operations/create.d.ts +1 -1
  180. package/dist/types/src/operations/create.d.ts.map +1 -1
  181. package/dist/types/src/operations/definitions.d.ts +855 -1649
  182. package/dist/types/src/operations/definitions.d.ts.map +1 -1
  183. package/dist/types/src/operations/delete-message.d.ts +1 -1
  184. package/dist/types/src/operations/delete-message.d.ts.map +1 -1
  185. package/dist/types/src/operations/delete.d.ts +1 -1
  186. package/dist/types/src/operations/delete.d.ts.map +1 -1
  187. package/dist/types/src/operations/index.d.ts +1 -1
  188. package/dist/types/src/operations/index.d.ts.map +1 -1
  189. package/dist/types/src/operations/on-create-space.d.ts +1 -1
  190. package/dist/types/src/operations/on-create-space.d.ts.map +1 -1
  191. package/dist/types/src/operations/restore-message.d.ts +1 -1
  192. package/dist/types/src/operations/restore-message.d.ts.map +1 -1
  193. package/dist/types/src/operations/restore.d.ts +1 -1
  194. package/dist/types/src/operations/restore.d.ts.map +1 -1
  195. package/dist/types/src/operations/select.d.ts +1 -1
  196. package/dist/types/src/operations/select.d.ts.map +1 -1
  197. package/dist/types/src/operations/toggle-resolved.d.ts +1 -1
  198. package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -1
  199. package/dist/types/src/testing/data.d.ts.map +1 -1
  200. package/dist/types/src/testing/index.d.ts +1 -1
  201. package/dist/types/src/testing/index.d.ts.map +1 -1
  202. package/dist/types/src/translations.d.ts +70 -70
  203. package/dist/types/src/translations.d.ts.map +1 -1
  204. package/dist/types/src/types/Settings.d.ts +2 -1
  205. package/dist/types/src/types/Settings.d.ts.map +1 -1
  206. package/dist/types/src/types/capabilities.d.ts +4 -2
  207. package/dist/types/src/types/capabilities.d.ts.map +1 -1
  208. package/dist/types/src/types/index.d.ts +0 -1
  209. package/dist/types/src/types/index.d.ts.map +1 -1
  210. package/dist/types/src/util.d.ts +2 -2
  211. package/dist/types/src/util.d.ts.map +1 -1
  212. package/dist/types/tsconfig.tsbuildinfo +1 -1
  213. package/package.json +65 -67
  214. package/src/ThreadPlugin.node.ts +84 -0
  215. package/src/ThreadPlugin.test.ts +37 -0
  216. package/src/ThreadPlugin.tsx +8 -8
  217. package/src/blueprints/thread-blueprint.ts +2 -3
  218. package/src/calls/util/calls-service.ts +3 -1
  219. package/src/calls/util/stub-media-streams.ts +3 -1
  220. package/src/calls-service.stories.tsx +4 -4
  221. package/src/capabilities/app-graph-builder.ts +3 -2
  222. package/src/capabilities/blueprint-definition.ts +2 -0
  223. package/src/capabilities/index.ts +2 -1
  224. package/src/capabilities/markdown.ts +10 -6
  225. package/src/capabilities/operation-handler.ts +1 -1
  226. package/src/capabilities/react-surface.tsx +24 -17
  227. package/src/components/Call/Call.tsx +5 -5
  228. package/src/components/Call/Toolbar.tsx +1 -1
  229. package/src/components/Chat/Chat.tsx +218 -0
  230. package/src/components/Chat/index.ts +5 -0
  231. package/src/components/CommentsPanel/CommentsPanel.stories.tsx +5 -3
  232. package/src/components/Lobby/Lobby.tsx +5 -4
  233. package/src/components/MessagePanel/MessagePanel.tsx +3 -3
  234. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +2 -1
  235. package/src/components/ResponsiveGrid/ResponsivePanel.stories.tsx +2 -1
  236. package/src/components/ThreadSettings/ThreadSettings.stories.tsx +2 -1
  237. package/src/components/index.ts +1 -0
  238. package/src/containers/ChannelChat/ChannelChat.tsx +65 -0
  239. package/src/containers/ChannelChat/index.ts +8 -0
  240. package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +54 -10
  241. package/src/containers/ChannelContainer/ChannelContainer.tsx +4 -4
  242. package/src/containers/{ChatContainer/ChatContainer.stories.tsx → ThreadContainer/ThreadContainer.stories.tsx} +10 -11
  243. package/src/containers/ThreadContainer/ThreadContainer.tsx +75 -0
  244. package/src/containers/ThreadContainer/index.ts +8 -0
  245. package/src/containers/index.ts +2 -1
  246. package/src/extensions/threads.ts +7 -7
  247. package/src/index.ts +10 -3
  248. package/src/operations/add-message.ts +3 -3
  249. package/src/operations/append-channel-message.ts +36 -0
  250. package/src/operations/create-channel.ts +2 -2
  251. package/src/operations/create-proposals.ts +1 -1
  252. package/src/operations/create.ts +4 -4
  253. package/src/operations/definitions.ts +9 -9
  254. package/src/operations/delete-message.ts +2 -2
  255. package/src/operations/delete.ts +1 -1
  256. package/src/operations/index.ts +2 -2
  257. package/src/operations/on-create-space.ts +1 -1
  258. package/src/operations/restore-message.ts +2 -2
  259. package/src/operations/restore.ts +1 -1
  260. package/src/operations/select.ts +1 -1
  261. package/src/operations/toggle-resolved.ts +2 -2
  262. package/src/testing/index.ts +1 -1
  263. package/src/translations.ts +1 -1
  264. package/src/types/Settings.ts +1 -1
  265. package/src/types/capabilities.ts +2 -1
  266. package/src/types/index.ts +0 -1
  267. package/dist/lib/browser/add-message-A33GVGQX.mjs.map +0 -7
  268. package/dist/lib/browser/chunk-2QNKWX4H.mjs.map +0 -7
  269. package/dist/lib/browser/chunk-7T7J6ZR6.mjs +0 -61
  270. package/dist/lib/browser/chunk-7T7J6ZR6.mjs.map +0 -7
  271. package/dist/lib/browser/create-N2ZVTONJ.mjs.map +0 -7
  272. package/dist/lib/browser/create-channel-Y4H3535D.mjs.map +0 -7
  273. package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs +0 -28
  274. package/dist/lib/browser/create-channel-thread-6N7TKEAW.mjs.map +0 -7
  275. package/dist/lib/browser/delete-QZZE655Y.mjs.map +0 -7
  276. package/dist/lib/browser/delete-message-WQAZLYBO.mjs.map +0 -7
  277. package/dist/lib/browser/restore-KKQHFLYO.mjs.map +0 -7
  278. package/dist/lib/browser/restore-message-VOP2UE7N.mjs.map +0 -7
  279. package/dist/lib/browser/toggle-resolved-GIYF3KWJ.mjs.map +0 -7
  280. package/dist/lib/node-esm/add-message-E6XC6E3Z.mjs.map +0 -7
  281. package/dist/lib/node-esm/chunk-I6LAZYVU.mjs.map +0 -7
  282. package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs +0 -62
  283. package/dist/lib/node-esm/chunk-UGSMYQLZ.mjs.map +0 -7
  284. package/dist/lib/node-esm/create-A6XQZR7M.mjs.map +0 -7
  285. package/dist/lib/node-esm/create-channel-KA5T23ZS.mjs.map +0 -7
  286. package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs +0 -29
  287. package/dist/lib/node-esm/create-channel-thread-44PXAPGM.mjs.map +0 -7
  288. package/dist/lib/node-esm/create-proposals-HDBVDNUX.mjs.map +0 -7
  289. package/dist/lib/node-esm/delete-3RAWD5GG.mjs.map +0 -7
  290. package/dist/lib/node-esm/delete-message-W4XFE4KW.mjs.map +0 -7
  291. package/dist/lib/node-esm/on-create-space-ZURB6UKR.mjs.map +0 -7
  292. package/dist/lib/node-esm/restore-PDYEKDE3.mjs.map +0 -7
  293. package/dist/lib/node-esm/restore-message-O5XC34MW.mjs.map +0 -7
  294. package/dist/lib/node-esm/toggle-resolved-QR3SOXR7.mjs.map +0 -7
  295. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +0 -16
  296. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
  297. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +0 -1
  298. package/dist/types/src/containers/ChatContainer/index.d.ts +0 -4
  299. package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
  300. package/dist/types/src/operations/create-channel-thread.d.ts +0 -5
  301. package/dist/types/src/operations/create-channel-thread.d.ts.map +0 -1
  302. package/dist/types/src/testing/stories.d.ts +0 -3
  303. package/dist/types/src/testing/stories.d.ts.map +0 -1
  304. package/dist/types/src/types/Channel.d.ts +0 -711
  305. package/dist/types/src/types/Channel.d.ts.map +0 -1
  306. package/src/containers/ChatContainer/ChatContainer.tsx +0 -131
  307. package/src/containers/ChatContainer/index.ts +0 -8
  308. package/src/operations/create-channel-thread.ts +0 -26
  309. package/src/testing/stories.ts +0 -51
  310. package/src/types/Channel.ts +0 -37
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/create.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Obj, Relation } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { DeckOperation } from '@dxos/plugin-deck/operations';\nimport { linkedSegment } from '@dxos/react-ui-attention';\nimport { AnchoredTo, Thread } from '@dxos/types';\n\nimport { ThreadCapabilities } from '../types';\nimport { Create, Select } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Create> = Create.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ name, anchor: _anchor, subject }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const stateAtom = yield* Capability.get(ThreadCapabilities.State);\n const subjectId = Obj.getDXN(subject).toString();\n const thread = Thread.make({ name });\n const anchor = Relation.make(AnchoredTo.AnchoredTo, {\n [Relation.Source]: thread,\n [Relation.Target]: subject,\n anchor: _anchor,\n });\n\n const state = registry.get(stateAtom);\n const existingDrafts = state.drafts[subjectId];\n registry.set(stateAtom, {\n ...state,\n drafts: {\n ...state.drafts,\n [subjectId]: existingDrafts ? [...existingDrafts, anchor] : [anchor],\n },\n });\n\n yield* Operation.invoke(Select, { current: Obj.getDXN(thread).toString() });\n yield* Operation.invoke(DeckOperation.ChangeCompanion, {\n companion: linkedSegment('comments'),\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,KAAKC,gBAAgB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,qBAAqB;AAC9B,SAASC,qBAAqB;AAC9B,SAASC,YAAYC,cAAc;AAKnC,IAAMC,UAAgDC,OAAOC,KAC3DC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,MAAMC,QAAQC,SAASC,QAAO,GAAE;AAC7D,QAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,QAAMC,YAAY,OAAOJ,WAAWC,IAAII,mBAAmBC,KAAK;AAChE,QAAMC,YAAYC,IAAIC,OAAOX,OAAAA,EAASY,SAAQ;AAC9C,QAAMC,SAASC,OAAOC,KAAK;IAAElB;EAAK,CAAA;AAClC,QAAMC,SAASkB,SAASD,KAAKE,WAAWA,YAAY;IAClD,CAACD,SAASE,MAAM,GAAGL;IACnB,CAACG,SAASG,MAAM,GAAGnB;IACnBF,QAAQC;EACV,CAAA;AAEA,QAAMqB,QAAQnB,SAASE,IAAIG,SAAAA;AAC3B,QAAMe,iBAAiBD,MAAME,OAAOb,SAAAA;AACpCR,WAASsB,IAAIjB,WAAW;IACtB,GAAGc;IACHE,QAAQ;MACN,GAAGF,MAAME;MACT,CAACb,SAAAA,GAAYY,iBAAiB;WAAIA;QAAgBvB;UAAU;QAACA;;IAC/D;EACF,CAAA;AAEA,SAAOJ,UAAU8B,OAAOC,QAAQ;IAAEC,SAAShB,IAAIC,OAAOE,MAAAA,EAAQD,SAAQ;EAAG,CAAA;AACzE,SAAOlB,UAAU8B,OAAOG,cAAcC,iBAAiB;IACrDC,WAAWC,cAAc,UAAA;EAC3B,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAevC;",
6
- "names": ["Effect", "Capabilities", "Capability", "Obj", "Relation", "Operation", "DeckOperation", "linkedSegment", "AnchoredTo", "Thread", "handler", "Create", "pipe", "Operation", "withHandler", "fnUntraced", "name", "anchor", "_anchor", "subject", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "stateAtom", "ThreadCapabilities", "State", "subjectId", "Obj", "getDXN", "toString", "thread", "Thread", "make", "Relation", "AnchoredTo", "Source", "Target", "state", "existingDrafts", "drafts", "set", "invoke", "Select", "current", "DeckOperation", "ChangeCompanion", "companion", "linkedSegment"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/create-channel.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Channel } from '../types';\nimport { CreateChannel } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateChannel> = CreateChannel.pipe(\n Operation.withHandler((input) =>\n Effect.sync(() => ({\n object: Channel.make({ name: input.name }),\n })),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAK1B,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YAAY,CAACC,UACdC,YAAK,OAAO;EACjBC,QAAQC,gBAAQC,KAAK;IAAEC,MAAML,MAAMK;EAAK,CAAA;AAC1C,EAAA,CAAA,CAAA;AAIJ,IAAA,yBAAeV;",
6
- "names": ["Effect", "Operation", "handler", "CreateChannel", "pipe", "Operation", "withHandler", "input", "sync", "object", "Channel", "make", "name"]
7
- }
@@ -1,28 +0,0 @@
1
- import {
2
- CreateChannelThread
3
- } from "./chunk-2QNKWX4H.mjs";
4
- import "./chunk-7T7J6ZR6.mjs";
5
- import "./chunk-J5LGTIGS.mjs";
6
-
7
- // src/operations/create-channel-thread.ts
8
- import * as Effect from "effect/Effect";
9
- import { Obj, Ref } from "@dxos/echo";
10
- import { Operation } from "@dxos/operation";
11
- import { Thread } from "@dxos/types";
12
- var handler = CreateChannelThread.pipe(Operation.withHandler((input) => Effect.sync(() => {
13
- const thread = Thread.make({
14
- status: "active"
15
- });
16
- const threadRef = Ref.make(thread);
17
- Obj.change(input.channel, (obj) => {
18
- obj.threads.push(threadRef);
19
- });
20
- return {
21
- object: thread
22
- };
23
- })));
24
- var create_channel_thread_default = handler;
25
- export {
26
- create_channel_thread_default as default
27
- };
28
- //# sourceMappingURL=create-channel-thread-6N7TKEAW.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/create-channel-thread.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj, Ref } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { Thread } from '@dxos/types';\n\nimport { CreateChannelThread } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateChannelThread> = CreateChannelThread.pipe(\n Operation.withHandler((input) =>\n Effect.sync(() => {\n const thread = Thread.make({ status: 'active' });\n const threadRef = Ref.make(thread);\n Obj.change(input.channel, (obj) => {\n obj.threads.push(threadRef);\n });\n return { object: thread };\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,WAAW;AACzB,SAASC,iBAAiB;AAC1B,SAASC,cAAc;AAIvB,IAAMC,UAA6DC,oBAAoBC,KACrFC,UAAUC,YAAY,CAACC,UACdC,YAAK,MAAA;AACV,QAAMC,SAASC,OAAOC,KAAK;IAAEC,QAAQ;EAAS,CAAA;AAC9C,QAAMC,YAAYC,IAAIH,KAAKF,MAAAA;AAC3BM,MAAIC,OAAOT,MAAMU,SAAS,CAACC,QAAAA;AACzBA,QAAIC,QAAQC,KAAKP,SAAAA;EACnB,CAAA;AACA,SAAO;IAAEQ,QAAQZ;EAAO;AAC1B,CAAA,CAAA,CAAA;AAIJ,IAAA,gCAAeP;",
6
- "names": ["Effect", "Obj", "Ref", "Operation", "Thread", "handler", "CreateChannelThread", "pipe", "Operation", "withHandler", "input", "sync", "thread", "Thread", "make", "status", "threadRef", "Ref", "Obj", "change", "channel", "obj", "threads", "push", "object"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/delete.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { sleep } from '@dxos/async';\nimport { Obj, Relation } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\nimport { Thread } from '@dxos/types';\n\nimport { ThreadCapabilities } from '../types';\nimport { Delete } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Delete> = Delete.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ subject, anchor, thread: _thread }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const stateAtom = yield* Capability.get(ThreadCapabilities.State);\n const thread = _thread ?? (Relation.getSource(anchor) as Thread.Thread);\n const subjectId = Obj.getDXN(subject).toString();\n const state = registry.get(stateAtom);\n const draft = state.drafts[subjectId];\n if (draft) {\n const index = draft.findIndex((a: { id: string }) => a.id === anchor.id);\n if (index !== -1) {\n registry.set(stateAtom, {\n ...state,\n drafts: {\n ...state.drafts,\n [subjectId]: state.drafts[subjectId]?.filter((_, i) => i !== index),\n },\n });\n return {};\n }\n }\n\n const db = Obj.getDatabase(thread);\n if (!db) {\n return {};\n }\n\n // TODO(wittjosiah): Without sleep, rendering crashes at `Relation.setSource(anchor)`.\n db.remove(anchor);\n yield* Effect.promise(() => sleep(100));\n db.remove(thread);\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n },\n });\n\n return { thread, anchor };\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,aAAa;AACtB,SAASC,KAAKC,gBAAgB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AAMvC,IAAMC,UAAgDC,OAAOC,KAC3DC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,SAASC,QAAQC,QAAQC,QAAO,GAAE;AAC/D,QAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,QAAMC,YAAY,OAAOJ,WAAWC,IAAII,mBAAmBC,KAAK;AAChE,QAAMT,SAASC,WAAYS,SAASC,UAAUZ,MAAAA;AAC9C,QAAMa,YAAYC,IAAIC,OAAOhB,OAAAA,EAASiB,SAAQ;AAC9C,QAAMC,QAAQd,SAASE,IAAIG,SAAAA;AAC3B,QAAMU,QAAQD,MAAME,OAAON,SAAAA;AAC3B,MAAIK,OAAO;AACT,UAAME,QAAQF,MAAMG,UAAU,CAACC,MAAsBA,EAAEC,OAAOvB,OAAOuB,EAAE;AACvE,QAAIH,UAAU,IAAI;AAChBjB,eAASqB,IAAIhB,WAAW;QACtB,GAAGS;QACHE,QAAQ;UACN,GAAGF,MAAME;UACT,CAACN,SAAAA,GAAYI,MAAME,OAAON,SAAAA,GAAYY,OAAO,CAACC,GAAGC,MAAMA,MAAMP,KAAAA;QAC/D;MACF,CAAA;AACA,aAAO,CAAC;IACV;EACF;AAEA,QAAMQ,KAAKd,IAAIe,YAAY5B,MAAAA;AAC3B,MAAI,CAAC2B,IAAI;AACP,WAAO,CAAC;EACV;AAGAA,KAAGE,OAAO9B,MAAAA;AACV,SAAc+B,eAAQ,MAAMC,MAAM,GAAA,CAAA;AAClCJ,KAAGE,OAAO7B,MAAAA;AAEV,SAAOL,UAAUqC,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASV,GAAGU;MACZC,UAAUtC,OAAOsB;IACnB;EACF,CAAA;AAEA,SAAO;IAAEtB;IAAQD;EAAO;AAC1B,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAeP;",
6
- "names": ["Effect", "Capabilities", "Capability", "sleep", "Obj", "Relation", "Operation", "ObservabilityOperation", "handler", "Delete", "pipe", "Operation", "withHandler", "fnUntraced", "subject", "anchor", "thread", "_thread", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "stateAtom", "ThreadCapabilities", "State", "Relation", "getSource", "subjectId", "Obj", "getDXN", "toString", "state", "draft", "drafts", "index", "findIndex", "a", "id", "set", "filter", "_", "i", "db", "getDatabase", "remove", "promise", "sleep", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/delete-message.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj, Relation } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\nimport { Thread } from '@dxos/types';\n\nimport { Delete, DeleteMessage } from './definitions';\n\nconst handler: Operation.WithHandler<typeof DeleteMessage> = DeleteMessage.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ subject, anchor, messageId }) {\n const thread = Relation.getSource(anchor) as Thread.Thread;\n const db = Obj.getDatabase(subject);\n invariant(db, 'Database not found');\n\n const msgIndex = thread.messages.findIndex((ref) => ref.target?.id === messageId);\n const msg = thread.messages[msgIndex]?.target;\n if (!msg) {\n return { messageIndex: -1 };\n }\n\n if (msgIndex === 0 && thread.messages.length === 1) {\n // TODO(wittjosiah): This doesn't support restoring the thread.\n yield* Operation.invoke(Delete, { subject, anchor });\n return { messageIndex: -1 };\n }\n\n Obj.change(thread, (thread) => {\n thread.messages.splice(msgIndex, 1);\n });\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.message.delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n threadLength: thread.messages.length,\n messageId,\n },\n });\n\n return { message: msg, messageIndex: msgIndex };\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,gBAAgB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;;AAKvC,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,SAASC,QAAQC,UAAS,GAAE;AACzD,QAAMC,SAASC,SAASC,UAAUJ,MAAAA;AAClC,QAAMK,KAAKC,IAAIC,YAAYR,OAAAA;AAC3BS,YAAUH,IAAI,sBAAA;;;;;;;;;AAEd,QAAMI,WAAWP,OAAOQ,SAASC,UAAU,CAACC,QAAQA,IAAIC,QAAQC,OAAOb,SAAAA;AACvE,QAAMc,MAAMb,OAAOQ,SAASD,QAAAA,GAAWI;AACvC,MAAI,CAACE,KAAK;AACR,WAAO;MAAEC,cAAc;IAAG;EAC5B;AAEA,MAAIP,aAAa,KAAKP,OAAOQ,SAASO,WAAW,GAAG;AAElD,WAAOrB,UAAUsB,OAAOC,QAAQ;MAAEpB;MAASC;IAAO,CAAA;AAClD,WAAO;MAAEgB,cAAc;IAAG;EAC5B;AAEAV,MAAIc,OAAOlB,QAAQ,CAACA,YAAAA;AAClBA,IAAAA,QAAOQ,SAASW,OAAOZ,UAAU,CAAA;EACnC,CAAA;AAEA,SAAOb,UAAU0B,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAAStB,GAAGsB;MACZC,UAAU1B,OAAOY;MACjBe,cAAc3B,OAAOQ,SAASO;MAC9BhB;IACF;EACF,CAAA;AAEA,SAAO;IAAE6B,SAASf;IAAKC,cAAcP;EAAS;AAChD,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAehB;",
6
- "names": ["Effect", "Obj", "Relation", "invariant", "Operation", "ObservabilityOperation", "handler", "DeleteMessage", "pipe", "Operation", "withHandler", "fnUntraced", "subject", "anchor", "messageId", "thread", "Relation", "getSource", "db", "Obj", "getDatabase", "invariant", "msgIndex", "messages", "findIndex", "ref", "target", "id", "msg", "messageIndex", "length", "invoke", "Delete", "change", "splice", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "threadLength", "message"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/restore.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { sleep } from '@dxos/async';\nimport { Obj } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { Restore } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Restore> = Restore.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ thread, anchor }) {\n const db = Obj.getDatabase(thread);\n if (!db) {\n return;\n }\n\n // TODO(wittjosiah): Without sleep, rendering crashes at `Relation.setSource(anchor)`.\n db.add(thread);\n yield* Effect.promise(() => sleep(100));\n db.add(anchor);\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.undo-delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,aAAa;AACtB,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AAIvC,IAAMC,UAAiDC,QAAQC,KAC7DC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,QAAQC,OAAM,GAAE;AAC7C,QAAMC,KAAKC,IAAIC,YAAYJ,MAAAA;AAC3B,MAAI,CAACE,IAAI;AACP;EACF;AAGAA,KAAGG,IAAIL,MAAAA;AACP,SAAcM,eAAQ,MAAMC,MAAM,GAAA,CAAA;AAClCL,KAAGG,IAAIJ,MAAAA;AAEP,SAAOJ,UAAUW,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASX,GAAGW;MACZC,UAAUd,OAAOe;IACnB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,kBAAerB;",
6
- "names": ["Effect", "sleep", "Obj", "Operation", "ObservabilityOperation", "handler", "Restore", "pipe", "Operation", "withHandler", "fnUntraced", "thread", "anchor", "db", "Obj", "getDatabase", "add", "promise", "sleep", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "id"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/restore-message.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj, Ref, Relation } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\nimport { Thread } from '@dxos/types';\n\nimport { RestoreMessage } from './definitions';\n\nconst handler: Operation.WithHandler<typeof RestoreMessage> = RestoreMessage.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ anchor, message, messageIndex }) {\n const thread = Relation.getSource(anchor) as Thread.Thread;\n const db = Obj.getDatabase(thread);\n invariant(db, 'Database not found');\n\n Obj.change(thread, (thread) => {\n thread.messages.splice(messageIndex, 0, Ref.make(message));\n });\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.message.undo-delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n messageId: message.id,\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,KAAKC,gBAAgB;AACnC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;;AAKvC,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,QAAQC,SAASC,aAAY,GAAE;AAC5D,QAAMC,SAASC,SAASC,UAAUL,MAAAA;AAClC,QAAMM,KAAKC,IAAIC,YAAYL,MAAAA;AAC3BM,YAAUH,IAAI,sBAAA;;;;;;;;;AAEdC,MAAIG,OAAOP,QAAQ,CAACA,YAAAA;AAClBA,IAAAA,QAAOQ,SAASC,OAAOV,cAAc,GAAGW,IAAIC,KAAKb,OAAAA,CAAAA;EACnD,CAAA;AAEA,SAAOJ,UAAUkB,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASd,GAAGc;MACZC,UAAUlB,OAAOmB;MACjBC,WAAWtB,QAAQqB;IACrB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,0BAAe5B;",
6
- "names": ["Effect", "Obj", "Ref", "Relation", "invariant", "Operation", "ObservabilityOperation", "handler", "RestoreMessage", "pipe", "Operation", "withHandler", "fnUntraced", "anchor", "message", "messageIndex", "thread", "Relation", "getSource", "db", "Obj", "getDatabase", "invariant", "change", "messages", "splice", "Ref", "make", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "id", "messageId"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/toggle-resolved.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { ToggleResolved } from './definitions';\n\nconst handler: Operation.WithHandler<typeof ToggleResolved> = ToggleResolved.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const thread = input.thread;\n\n Obj.change(thread, (thread) => {\n if (thread.status === 'active' || thread.status === undefined) {\n thread.status = 'resolved';\n } else if (thread.status === 'resolved') {\n thread.status = 'active';\n }\n });\n\n const db = Obj.getDatabase(thread);\n invariant(db, 'Database not found');\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.toggle-resolved',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;;AAIvC,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,SAASD,MAAMC;AAErBC,MAAIC,OAAOF,QAAQ,CAACA,YAAAA;AAClB,QAAIA,QAAOG,WAAW,YAAYH,QAAOG,WAAWC,QAAW;AAC7DJ,MAAAA,QAAOG,SAAS;IAClB,WAAWH,QAAOG,WAAW,YAAY;AACvCH,MAAAA,QAAOG,SAAS;IAClB;EACF,CAAA;AAEA,QAAME,KAAKJ,IAAIK,YAAYN,MAAAA;AAC3BO,YAAUF,IAAI,sBAAA;;;;;;;;;AAEd,SAAOT,UAAUY,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASR,GAAGQ;MACZC,UAAUd,OAAOe;IACnB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,0BAAetB;",
6
- "names": ["Effect", "Obj", "invariant", "Operation", "ObservabilityOperation", "handler", "ToggleResolved", "pipe", "Operation", "withHandler", "fnUntraced", "input", "thread", "Obj", "change", "status", "undefined", "db", "getDatabase", "invariant", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "id"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/add-message.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Obj, Ref, Relation } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { AnchoredTo, Message, Thread } from '@dxos/types';\n\nimport { ThreadCapabilities } from '../types';\nimport { AddMessage } from './definitions';\n\nconst handler: Operation.WithHandler<typeof AddMessage> = AddMessage.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ anchor, subject, sender, text }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const stateAtom = yield* Capability.get(ThreadCapabilities.State);\n const thread = Relation.getSource(anchor) as Thread.Thread;\n const subjectId = Obj.getDXN(subject).toString();\n const db = Obj.getDatabase(subject);\n invariant(db, 'Database not found');\n\n const message = Obj.make(Message.Message, {\n created: new Date().toISOString(),\n sender,\n blocks: [{ _tag: 'text', text }],\n });\n Obj.change(thread, (thread) => {\n thread.messages.push(Ref.make(message));\n });\n\n const state = registry.get(stateAtom);\n const draft = state.drafts[subjectId]?.find((a: { id: string }) => a.id === anchor.id);\n if (draft) {\n Obj.change(thread, (thread) => {\n thread.status = 'active';\n });\n registry.set(stateAtom, {\n ...state,\n drafts: {\n ...state.drafts,\n [subjectId]: state.drafts[subjectId]?.filter((a: { id: string }) => a.id !== anchor.id),\n },\n });\n yield* Operation.invoke(SpaceOperation.AddObject, { object: thread, target: db, hidden: true });\n yield* Operation.invoke(SpaceOperation.AddRelation, {\n db,\n schema: AnchoredTo.AnchoredTo,\n source: thread,\n target: subject,\n fields: { anchor: draft.anchor },\n });\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.create',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n },\n });\n }\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.message.add',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n threadLength: thread.messages.length,\n messageId: message.id,\n messageLength: text.length,\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,KAAKC,KAAKC,gBAAgB;AACnC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AACvC,SAASC,sBAAsB;AAC/B,SAASC,YAAYC,eAAuB;;AAK5C,IAAMC,UAAoDC,WAAWC,KACnEC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,QAAQC,SAASC,QAAQC,KAAI,GAAE;AAC5D,QAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,QAAMC,YAAY,OAAOJ,WAAWC,IAAII,mBAAmBC,KAAK;AAChE,QAAMC,SAASC,SAASC,UAAUd,MAAAA;AAClC,QAAMe,YAAYC,IAAIC,OAAOhB,OAAAA,EAASiB,SAAQ;AAC9C,QAAMC,KAAKH,IAAII,YAAYnB,OAAAA;AAC3BoB,YAAUF,IAAI,sBAAA;;;;;;;;;AAEd,QAAMG,UAAUN,IAAIO,KAAKC,QAAQA,SAAS;IACxCC,UAAS,oBAAIC,KAAAA,GAAOC,YAAW;IAC/BzB;IACA0B,QAAQ;MAAC;QAAEC,MAAM;QAAQ1B;MAAK;;EAChC,CAAA;AACAa,MAAIc,OAAOlB,QAAQ,CAACA,YAAAA;AAClBA,IAAAA,QAAOmB,SAASC,KAAKC,IAAIV,KAAKD,OAAAA,CAAAA;EAChC,CAAA;AAEA,QAAMY,QAAQ9B,SAASE,IAAIG,SAAAA;AAC3B,QAAM0B,QAAQD,MAAME,OAAOrB,SAAAA,GAAYsB,KAAK,CAACC,MAAsBA,EAAEC,OAAOvC,OAAOuC,EAAE;AACrF,MAAIJ,OAAO;AACTnB,QAAIc,OAAOlB,QAAQ,CAACA,YAAAA;AAClBA,MAAAA,QAAO4B,SAAS;IAClB,CAAA;AACApC,aAASqC,IAAIhC,WAAW;MACtB,GAAGyB;MACHE,QAAQ;QACN,GAAGF,MAAME;QACT,CAACrB,SAAAA,GAAYmB,MAAME,OAAOrB,SAAAA,GAAY2B,OAAO,CAACJ,MAAsBA,EAAEC,OAAOvC,OAAOuC,EAAE;MACxF;IACF,CAAA;AACA,WAAO1C,UAAU8C,OAAOC,eAAeC,WAAW;MAAEC,QAAQlC;MAAQmC,QAAQ5B;MAAI6B,QAAQ;IAAK,CAAA;AAC7F,WAAOnD,UAAU8C,OAAOC,eAAeK,aAAa;MAClD9B;MACA+B,QAAQC,WAAWA;MACnBC,QAAQxC;MACRmC,QAAQ9C;MACRoD,QAAQ;QAAErD,QAAQmC,MAAMnC;MAAO;IACjC,CAAA;AACA,WAAOH,UAAUyD,SAASC,uBAAuBC,WAAW;MAC1DC,MAAM;MACNC,YAAY;QACVC,SAASxC,GAAGwC;QACZC,UAAUhD,OAAO2B;MACnB;IACF,CAAA;EACF;AAEA,SAAO1C,UAAUyD,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASxC,GAAGwC;MACZC,UAAUhD,OAAO2B;MACjBsB,cAAcjD,OAAOmB,SAAS+B;MAC9BC,WAAWzC,QAAQiB;MACnByB,eAAe7D,KAAK2D;IACtB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,sBAAepE;",
6
- "names": ["Effect", "Capabilities", "Capability", "Obj", "Ref", "Relation", "invariant", "Operation", "ObservabilityOperation", "SpaceOperation", "AnchoredTo", "Message", "handler", "AddMessage", "pipe", "Operation", "withHandler", "fnUntraced", "anchor", "subject", "sender", "text", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "stateAtom", "ThreadCapabilities", "State", "thread", "Relation", "getSource", "subjectId", "Obj", "getDXN", "toString", "db", "getDatabase", "invariant", "message", "make", "Message", "created", "Date", "toISOString", "blocks", "_tag", "change", "messages", "push", "Ref", "state", "draft", "drafts", "find", "a", "id", "status", "set", "filter", "invoke", "SpaceOperation", "AddObject", "object", "target", "hidden", "AddRelation", "schema", "AnchoredTo", "source", "fields", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "threadLength", "length", "messageId", "messageLength"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/definitions.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { Capability } from '@dxos/app-framework';\nimport { Database, Key, Obj, Ref } from '@dxos/echo';\nimport { Collection } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { Markdown } from '@dxos/plugin-markdown/types';\nimport { SpaceSchema } from '@dxos/react-client/echo';\nimport { Actor, AnchoredTo, Message, Thread } from '@dxos/types';\n\nimport { meta } from '#meta';\n\nimport { Channel } from '../types';\n\nconst THREAD_OPERATION = `${meta.id}.operation`;\n\nexport const OnCreateSpace = Operation.make({\n meta: { key: `${THREAD_OPERATION}.on-create-space`, name: 'On Create Space' },\n services: [Capability.Service],\n input: Schema.Struct({\n space: SpaceSchema,\n rootCollection: Collection.Collection,\n isDefault: Schema.Boolean.pipe(Schema.optional),\n }),\n output: Schema.Void,\n});\n\nexport const CreateChannel = Operation.make({\n meta: { key: `${THREAD_OPERATION}.create-channel`, name: 'Create Channel' },\n services: [Capability.Service],\n input: Schema.Struct({\n spaceId: Key.SpaceId,\n name: Schema.optional(Schema.String),\n }),\n output: Schema.Struct({\n object: Channel.Channel,\n }),\n});\n\nexport const CreateChannelThread = Operation.make({\n meta: { key: `${THREAD_OPERATION}.create-channel-thread`, name: 'Create Channel Thread' },\n services: [Capability.Service],\n input: Schema.Struct({\n channel: Channel.Channel,\n }),\n output: Schema.Struct({\n object: Thread.Thread,\n }),\n});\n\nexport const Create = Operation.make({\n meta: { key: `${THREAD_OPERATION}.create`, name: 'Create Thread' },\n services: [Capability.Service],\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n anchor: Schema.optional(Schema.String),\n subject: Obj.Unknown,\n }),\n output: Schema.Void,\n});\n\nexport const DeleteOutput = Schema.Struct({\n thread: Thread.Thread.annotations({ description: 'The deleted thread.' }),\n anchor: AnchoredTo.AnchoredTo.annotations({ description: 'The deleted anchor.' }),\n}).pipe(Schema.partial);\n\nexport type DeleteOutput = Schema.Schema.Type<typeof DeleteOutput>;\n\nexport const Delete = Operation.make({\n meta: { key: `${THREAD_OPERATION}.delete`, name: 'Delete Thread' },\n services: [Capability.Service],\n input: Schema.Struct({\n anchor: AnchoredTo.AnchoredTo,\n subject: Obj.Unknown,\n thread: Schema.optional(Thread.Thread),\n }),\n output: DeleteOutput,\n});\n\nexport const Select = Operation.make({\n meta: { key: `${THREAD_OPERATION}.select`, name: 'Select Thread' },\n services: [Capability.Service],\n input: Schema.Struct({\n current: Schema.String,\n }),\n output: Schema.Void,\n});\n\nexport const ToggleResolved = Operation.make({\n meta: { key: `${THREAD_OPERATION}.toggle-resolved`, name: 'Toggle Resolved' },\n services: [Capability.Service],\n input: Schema.Struct({\n thread: Thread.Thread,\n }),\n output: Schema.Void,\n});\n\nexport const AddMessage = Operation.make({\n meta: { key: `${THREAD_OPERATION}.add-message`, name: 'Add Message' },\n services: [Capability.Service],\n input: Schema.Struct({\n subject: Obj.Unknown,\n anchor: AnchoredTo.AnchoredTo,\n sender: Actor.Actor,\n text: Schema.String,\n }),\n output: Schema.Void,\n});\n\nexport const DeleteMessageOutput = Schema.partial(\n Schema.Struct({\n message: Message.Message.annotations({ description: 'The deleted message.' }),\n messageIndex: Schema.Number.annotations({ description: 'The index the message was at.' }),\n }),\n);\n\nexport type DeleteMessageOutput = Schema.Schema.Type<typeof DeleteMessageOutput>;\n\nexport const DeleteMessage = Operation.make({\n meta: { key: `${THREAD_OPERATION}.delete-message`, name: 'Delete Message' },\n services: [Capability.Service],\n input: Schema.Struct({\n anchor: AnchoredTo.AnchoredTo,\n subject: Obj.Unknown,\n messageId: Schema.String,\n }),\n output: DeleteMessageOutput,\n});\n\n/**\n * Restore a deleted thread (inverse of Delete).\n */\nexport const Restore = Operation.make({\n meta: { key: `${THREAD_OPERATION}.restore`, name: 'Restore Thread' },\n services: [Capability.Service],\n input: Schema.Struct({\n thread: Thread.Thread.annotations({ description: 'The thread to restore.' }),\n anchor: AnchoredTo.AnchoredTo.annotations({ description: 'The anchor relation to restore.' }),\n }),\n output: Schema.Void,\n});\n\n/**\n * Restore a deleted message (inverse of DeleteMessage).\n */\nexport const RestoreMessage = Operation.make({\n meta: { key: `${THREAD_OPERATION}.restore-message`, name: 'Restore Message' },\n services: [Capability.Service],\n input: Schema.Struct({\n anchor: AnchoredTo.AnchoredTo.annotations({ description: 'The anchor of the thread.' }),\n message: Message.Message.annotations({ description: 'The message to restore.' }),\n messageIndex: Schema.Number.annotations({ description: 'The index to restore the message at.' }),\n }),\n output: Schema.Void,\n});\n\nexport const CreateProposals = Operation.make({\n meta: {\n key: 'org.dxos.function.thread.create-proposals',\n name: 'Create Proposals',\n description: 'Proposes a set of changes to a document.',\n },\n input: Schema.Struct({\n doc: Ref.Ref(Markdown.Document).annotations({\n description: 'The ID of the document.',\n }),\n diffs: Schema.Array(Schema.String).annotations({\n description: 'The diffs to propose for the document.',\n }),\n }),\n output: Schema.Void,\n services: [Database.Service],\n});\n"],
5
- "mappings": ";;;;;;;;;AAAA;;;;;;;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,UAAUC,KAAKC,KAAKC,WAAW;AACxC,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,gBAAgB;AACzB,SAASC,mBAAmB;AAC5B,SAASC,OAAOC,YAAYC,SAASC,cAAc;AAEnD,SAASC,YAAY;AAIrB,IAAMC,mBAAmB,GAAGC,KAAKC,EAAE;AAE5B,IAAMC,gBAAgBC,UAAUC,KAAK;EAC1CJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAAoCO,MAAM;EAAkB;EAC5EC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBC,OAAOC;IACPC,gBAAgBC,WAAWA;IAC3BC,WAAkBC,eAAQC,KAAYC,eAAQ;EAChD,CAAA;EACAC,QAAeC;AACjB,CAAA;AAEO,IAAMC,gBAAgBnB,UAAUC,KAAK;EAC1CJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAAmCO,MAAM;EAAiB;EAC1EC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBY,SAASC,IAAIC;IACbnB,MAAaa,gBAAgBO,aAAM;EACrC,CAAA;EACAN,QAAeT,cAAO;IACpBgB,QAAQC,gBAAQA;EAClB,CAAA;AACF,CAAA;AAEO,IAAMC,sBAAsB1B,UAAUC,KAAK;EAChDJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAA0CO,MAAM;EAAwB;EACxFC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBmB,SAASF,gBAAQA;EACnB,CAAA;EACAR,QAAeT,cAAO;IACpBgB,QAAQI,OAAOA;EACjB,CAAA;AACF,CAAA;AAEO,IAAMC,SAAS7B,UAAUC,KAAK;EACnCJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAA2BO,MAAM;EAAgB;EACjEC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBL,MAAaa,gBAAgBO,aAAM;IACnCO,QAAed,gBAAgBO,aAAM;IACrCQ,SAASC,IAAIC;EACf,CAAA;EACAhB,QAAeC;AACjB,CAAA;AAEO,IAAMgB,eAAsB1B,cAAO;EACxC2B,QAAQP,OAAOA,OAAOQ,YAAY;IAAEC,aAAa;EAAsB,CAAA;EACvEP,QAAQQ,WAAWA,WAAWF,YAAY;IAAEC,aAAa;EAAsB,CAAA;AACjF,CAAA,EAAGtB,KAAYwB,cAAO;AAIf,IAAMC,SAASxC,UAAUC,KAAK;EACnCJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAA2BO,MAAM;EAAgB;EACjEC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBsB,QAAQQ,WAAWA;IACnBP,SAASC,IAAIC;IACbE,QAAenB,gBAASY,OAAOA,MAAM;EACvC,CAAA;EACAX,QAAQiB;AACV,CAAA;AAEO,IAAMO,SAASzC,UAAUC,KAAK;EACnCJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAA2BO,MAAM;EAAgB;EACjEC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBkC,SAAgBnB;EAClB,CAAA;EACAN,QAAeC;AACjB,CAAA;AAEO,IAAMyB,iBAAiB3C,UAAUC,KAAK;EAC3CJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAAoCO,MAAM;EAAkB;EAC5EC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnB2B,QAAQP,OAAOA;EACjB,CAAA;EACAX,QAAeC;AACjB,CAAA;AAEO,IAAM0B,aAAa5C,UAAUC,KAAK;EACvCJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAAgCO,MAAM;EAAc;EACpEC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBuB,SAASC,IAAIC;IACbH,QAAQQ,WAAWA;IACnBO,QAAQC,MAAMA;IACdC,MAAaxB;EACf,CAAA;EACAN,QAAeC;AACjB,CAAA;AAEO,IAAM8B,sBAA6BT,eACjC/B,cAAO;EACZyC,SAASC,QAAQA,QAAQd,YAAY;IAAEC,aAAa;EAAuB,CAAA;EAC3Ec,cAAqBC,cAAOhB,YAAY;IAAEC,aAAa;EAAgC,CAAA;AACzF,CAAA,CAAA;AAKK,IAAMgB,gBAAgBrD,UAAUC,KAAK;EAC1CJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAAmCO,MAAM;EAAiB;EAC1EC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBsB,QAAQQ,WAAWA;IACnBP,SAASC,IAAIC;IACbqB,WAAkB/B;EACpB,CAAA;EACAN,QAAQ+B;AACV,CAAA;AAKO,IAAMO,UAAUvD,UAAUC,KAAK;EACpCJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAA4BO,MAAM;EAAiB;EACnEC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnB2B,QAAQP,OAAOA,OAAOQ,YAAY;MAAEC,aAAa;IAAyB,CAAA;IAC1EP,QAAQQ,WAAWA,WAAWF,YAAY;MAAEC,aAAa;IAAkC,CAAA;EAC7F,CAAA;EACApB,QAAeC;AACjB,CAAA;AAKO,IAAMsC,iBAAiBxD,UAAUC,KAAK;EAC3CJ,MAAM;IAAEK,KAAK,GAAGN,gBAAAA;IAAoCO,MAAM;EAAkB;EAC5EC,UAAU;IAACC,WAAWC;;EACtBC,OAAcC,cAAO;IACnBsB,QAAQQ,WAAWA,WAAWF,YAAY;MAAEC,aAAa;IAA4B,CAAA;IACrFY,SAASC,QAAQA,QAAQd,YAAY;MAAEC,aAAa;IAA0B,CAAA;IAC9Ec,cAAqBC,cAAOhB,YAAY;MAAEC,aAAa;IAAuC,CAAA;EAChG,CAAA;EACApB,QAAeC;AACjB,CAAA;AAEO,IAAMuC,kBAAkBzD,UAAUC,KAAK;EAC5CJ,MAAM;IACJK,KAAK;IACLC,MAAM;IACNkC,aAAa;EACf;EACA9B,OAAcC,cAAO;IACnBkD,KAAKC,IAAIA,IAAIC,SAASC,QAAQ,EAAEzB,YAAY;MAC1CC,aAAa;IACf,CAAA;IACAyB,OAAcC,aAAaxC,aAAM,EAAEa,YAAY;MAC7CC,aAAa;IACf,CAAA;EACF,CAAA;EACApB,QAAeC;EACfd,UAAU;IAAC4D,SAAS1D;;AACtB,CAAA;",
6
- "names": ["Schema", "Capability", "Database", "Key", "Obj", "Ref", "Collection", "Operation", "Markdown", "SpaceSchema", "Actor", "AnchoredTo", "Message", "Thread", "meta", "THREAD_OPERATION", "meta", "id", "OnCreateSpace", "Operation", "make", "key", "name", "services", "Capability", "Service", "input", "Struct", "space", "SpaceSchema", "rootCollection", "Collection", "isDefault", "Boolean", "pipe", "optional", "output", "Void", "CreateChannel", "spaceId", "Key", "SpaceId", "String", "object", "Channel", "CreateChannelThread", "channel", "Thread", "Create", "anchor", "subject", "Obj", "Unknown", "DeleteOutput", "thread", "annotations", "description", "AnchoredTo", "partial", "Delete", "Select", "current", "ToggleResolved", "AddMessage", "sender", "Actor", "text", "DeleteMessageOutput", "message", "Message", "messageIndex", "Number", "DeleteMessage", "messageId", "Restore", "RestoreMessage", "CreateProposals", "doc", "Ref", "Markdown", "Document", "diffs", "Array", "Database"]
7
- }
@@ -1,62 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- __export
4
- } from "./chunk-HSLMI22Q.mjs";
5
-
6
- // src/types/capabilities.ts
7
- import { Capability } from "@dxos/app-framework";
8
- import { meta } from "#meta";
9
- (function(ThreadCapabilities2) {
10
- ThreadCapabilities2.Settings = Capability.make(`${meta.id}.capability.settings`);
11
- ThreadCapabilities2.CallManager = Capability.make(`${meta.id}.capability.call-manager`);
12
- ThreadCapabilities2.CallExtension = Capability.make(`${meta.id}.capability.call-extension`);
13
- ThreadCapabilities2.State = Capability.make(`${meta.id}.capability.state`);
14
- ThreadCapabilities2.ViewState = Capability.make(`${meta.id}.capability.view-state`);
15
- })(ThreadCapabilities || (ThreadCapabilities = {}));
16
- var ThreadCapabilities;
17
-
18
- // src/types/Channel.ts
19
- var Channel_exports = {};
20
- __export(Channel_exports, {
21
- Channel: () => Channel,
22
- make: () => make
23
- });
24
- import * as Schema from "effect/Schema";
25
- import { Annotation, Obj, Ref, Type } from "@dxos/echo";
26
- import { FormInputAnnotation } from "@dxos/echo/internal";
27
- import { Thread } from "@dxos/types";
28
- var Channel = Schema.Struct({
29
- name: Schema.optional(Schema.String),
30
- defaultThread: Ref.Ref(Thread.Thread).pipe(FormInputAnnotation.set(false)),
31
- // TODO(wittjosiah): Should be an "ordered collection".
32
- threads: Ref.Ref(Thread.Thread).pipe(Schema.Array, FormInputAnnotation.set(false))
33
- }).pipe(Type.object({
34
- typename: "org.dxos.type.channel",
35
- version: "0.1.0"
36
- }), Annotation.IconAnnotation.set({
37
- icon: "ph--hash--regular",
38
- hue: "rose"
39
- }));
40
- var make = (props = {}) => Obj.make(Channel, {
41
- ...props,
42
- defaultThread: Ref.make(Obj.make(Thread.Thread, {
43
- messages: [],
44
- status: "active"
45
- })),
46
- threads: []
47
- });
48
-
49
- // src/types/Settings.ts
50
- var Settings_exports = {};
51
- __export(Settings_exports, {
52
- Settings: () => Settings
53
- });
54
- import * as Schema2 from "effect/Schema";
55
- var Settings = Schema2.mutable(Schema2.Struct({}));
56
-
57
- export {
58
- ThreadCapabilities,
59
- Channel_exports,
60
- Settings_exports
61
- };
62
- //# sourceMappingURL=chunk-UGSMYQLZ.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/types/capabilities.ts", "../../../src/types/Channel.ts", "../../../src/types/Settings.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Atom } from '@effect-atom/atom-react';\n\nimport { Capability } from '@dxos/app-framework';\n\nimport { meta } from '#meta';\n\nimport { type CallManager, type CallState, type MediaState } from '../calls';\nimport { type Channel, type ThreadState, type ViewStore } from '../types';\nimport * as Settings from './Settings';\n\nexport namespace ThreadCapabilities {\n export const Settings = Capability.make<Atom.Writable<Settings.Settings>>(`${meta.id}.capability.settings`);\n export const CallManager = Capability.make<CallManager>(`${meta.id}.capability.call-manager`);\n\n // TODO(burdon): Better way to define specific extensions for meeting companions.\n // TODO(burdon): This brings in deps from ../calls; how should we manage/minimize explicit type exposure to other plugins?\n // TODO(wittjosiah): These callbacks could be intents once we support broadcast.\n export type CallProperties = {\n onJoin: (state: { channel?: Channel.Channel; roomId?: string }) => Promise<void>;\n onLeave: (roomId?: string) => Promise<void>;\n onCallStateUpdated: (callState: CallState) => Promise<void>;\n onMediaStateUpdated: ([mediaState, isSpeaking]: [MediaState, boolean]) => Promise<void>;\n };\n\n export const CallExtension = Capability.make<CallProperties>(`${meta.id}.capability.call-extension`);\n\n /** Thread state (drafts, toolbar state, current selection). */\n export const State = Capability.make<Atom.Writable<ThreadState>>(`${meta.id}.capability.state`);\n\n /** Per-subject view state (e.g., showResolvedThreads). */\n export const ViewState = Capability.make<Atom.Writable<ViewStore>>(`${meta.id}.capability.view-state`);\n}\n", "//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, Obj, Ref, Type } from '@dxos/echo';\nimport { FormInputAnnotation } from '@dxos/echo/internal';\nimport { Thread } from '@dxos/types';\n\n// TODO(burdon): What is the difference between Thread and Channel.\nexport const Channel = Schema.Struct({\n name: Schema.optional(Schema.String),\n defaultThread: Ref.Ref(Thread.Thread).pipe(FormInputAnnotation.set(false)),\n // TODO(wittjosiah): Should be an \"ordered collection\".\n threads: Ref.Ref(Thread.Thread).pipe(Schema.Array, FormInputAnnotation.set(false)),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.channel',\n version: '0.1.0',\n }),\n Annotation.IconAnnotation.set({\n icon: 'ph--hash--regular',\n hue: 'rose',\n }),\n);\n\nexport interface Channel extends Schema.Schema.Type<typeof Channel> {}\n\nexport const make = (props: Pick<Obj.MakeProps<typeof Channel>, 'name'> = {}) =>\n Obj.make(Channel, {\n ...props,\n defaultThread: Ref.make(Obj.make(Thread.Thread, { messages: [], status: 'active' })),\n threads: [],\n });\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nexport const Settings = Schema.mutable(Schema.Struct({}));\nexport type Settings = Schema.Schema.Type<typeof Settings>;\n"],
5
- "mappings": ";;;;;;AAMA,SAASA,kBAAkB;AAE3B,SAASC,YAAY;UAMJC,qBAAAA;sBACFC,WAAWC,WAAWC,KAAuC,GAAGC,KAAKC,EAAE,sBAAsB;sBAC7FC,cAAcJ,WAAWC,KAAkB,GAAGC,KAAKC,EAAE,0BAA0B;sBAY/EE,gBAAgBL,WAAWC,KAAqB,GAAGC,KAAKC,EAAE,4BAA4B;sBAGtFG,QAAQN,WAAWC,KAAiC,GAAGC,KAAKC,EAAE,mBAAmB;sBAGjFI,YAAYP,WAAWC,KAA+B,GAAGC,KAAKC,EAAE,wBAAwB;AACvG,GArBiBL,uBAAAA,qBAAAA,CAAAA,EAAAA;;;;ACdjB;;;;;AAMA,YAAYU,YAAY;AAExB,SAASC,YAAYC,KAAKC,KAAKC,YAAY;AAC3C,SAASC,2BAA2B;AACpC,SAASC,cAAc;AAGhB,IAAMC,UAAiBC,cAAO;EACnCC,MAAaC,gBAAgBC,aAAM;EACnCC,eAAeC,IAAIA,IAAIC,OAAOA,MAAM,EAAEC,KAAKC,oBAAoBC,IAAI,KAAA,CAAA;;EAEnEC,SAASL,IAAIA,IAAIC,OAAOA,MAAM,EAAEC,KAAYI,cAAOH,oBAAoBC,IAAI,KAAA,CAAA;AAC7E,CAAA,EAAGF,KACDK,KAAKC,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACAC,WAAWC,eAAeR,IAAI;EAC5BS,MAAM;EACNC,KAAK;AACP,CAAA,CAAA;AAKK,IAAMC,OAAO,CAACC,QAAqD,CAAC,MACzEC,IAAIF,KAAKrB,SAAS;EAChB,GAAGsB;EACHjB,eAAeC,IAAIe,KAAKE,IAAIF,KAAKd,OAAOA,QAAQ;IAAEiB,UAAU,CAAA;IAAIC,QAAQ;EAAS,CAAA,CAAA;EACjFd,SAAS,CAAA;AACX,CAAA;;;ACpCF;;;;AAMA,YAAYe,aAAY;AAEjB,IAAMC,WAAkBC,gBAAeC,eAAO,CAAC,CAAA,CAAA;",
6
- "names": ["Capability", "meta", "ThreadCapabilities", "Settings", "Capability", "make", "meta", "id", "CallManager", "CallExtension", "State", "ViewState", "Schema", "Annotation", "Obj", "Ref", "Type", "FormInputAnnotation", "Thread", "Channel", "Struct", "name", "optional", "String", "defaultThread", "Ref", "Thread", "pipe", "FormInputAnnotation", "set", "threads", "Array", "Type", "object", "typename", "version", "Annotation", "IconAnnotation", "icon", "hue", "make", "props", "Obj", "messages", "status", "Schema", "Settings", "mutable", "Struct"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/create.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Obj, Relation } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { DeckOperation } from '@dxos/plugin-deck/operations';\nimport { linkedSegment } from '@dxos/react-ui-attention';\nimport { AnchoredTo, Thread } from '@dxos/types';\n\nimport { ThreadCapabilities } from '../types';\nimport { Create, Select } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Create> = Create.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ name, anchor: _anchor, subject }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const stateAtom = yield* Capability.get(ThreadCapabilities.State);\n const subjectId = Obj.getDXN(subject).toString();\n const thread = Thread.make({ name });\n const anchor = Relation.make(AnchoredTo.AnchoredTo, {\n [Relation.Source]: thread,\n [Relation.Target]: subject,\n anchor: _anchor,\n });\n\n const state = registry.get(stateAtom);\n const existingDrafts = state.drafts[subjectId];\n registry.set(stateAtom, {\n ...state,\n drafts: {\n ...state.drafts,\n [subjectId]: existingDrafts ? [...existingDrafts, anchor] : [anchor],\n },\n });\n\n yield* Operation.invoke(Select, { current: Obj.getDXN(thread).toString() });\n yield* Operation.invoke(DeckOperation.ChangeCompanion, {\n companion: linkedSegment('comments'),\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,KAAKC,gBAAgB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,qBAAqB;AAC9B,SAASC,qBAAqB;AAC9B,SAASC,YAAYC,cAAc;AAKnC,IAAMC,UAAgDC,OAAOC,KAC3DC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,MAAMC,QAAQC,SAASC,QAAO,GAAE;AAC7D,QAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,QAAMC,YAAY,OAAOJ,WAAWC,IAAII,mBAAmBC,KAAK;AAChE,QAAMC,YAAYC,IAAIC,OAAOX,OAAAA,EAASY,SAAQ;AAC9C,QAAMC,SAASC,OAAOC,KAAK;IAAElB;EAAK,CAAA;AAClC,QAAMC,SAASkB,SAASD,KAAKE,WAAWA,YAAY;IAClD,CAACD,SAASE,MAAM,GAAGL;IACnB,CAACG,SAASG,MAAM,GAAGnB;IACnBF,QAAQC;EACV,CAAA;AAEA,QAAMqB,QAAQnB,SAASE,IAAIG,SAAAA;AAC3B,QAAMe,iBAAiBD,MAAME,OAAOb,SAAAA;AACpCR,WAASsB,IAAIjB,WAAW;IACtB,GAAGc;IACHE,QAAQ;MACN,GAAGF,MAAME;MACT,CAACb,SAAAA,GAAYY,iBAAiB;WAAIA;QAAgBvB;UAAU;QAACA;;IAC/D;EACF,CAAA;AAEA,SAAOJ,UAAU8B,OAAOC,QAAQ;IAAEC,SAAShB,IAAIC,OAAOE,MAAAA,EAAQD,SAAQ;EAAG,CAAA;AACzE,SAAOlB,UAAU8B,OAAOG,cAAcC,iBAAiB;IACrDC,WAAWC,cAAc,UAAA;EAC3B,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAevC;",
6
- "names": ["Effect", "Capabilities", "Capability", "Obj", "Relation", "Operation", "DeckOperation", "linkedSegment", "AnchoredTo", "Thread", "handler", "Create", "pipe", "Operation", "withHandler", "fnUntraced", "name", "anchor", "_anchor", "subject", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "stateAtom", "ThreadCapabilities", "State", "subjectId", "Obj", "getDXN", "toString", "thread", "Thread", "make", "Relation", "AnchoredTo", "Source", "Target", "state", "existingDrafts", "drafts", "set", "invoke", "Select", "current", "DeckOperation", "ChangeCompanion", "companion", "linkedSegment"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/create-channel.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/operation';\n\nimport { Channel } from '../types';\nimport { CreateChannel } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateChannel> = CreateChannel.pipe(\n Operation.withHandler((input) =>\n Effect.sync(() => ({\n object: Channel.make({ name: input.name }),\n })),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAK1B,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YAAY,CAACC,UACdC,YAAK,OAAO;EACjBC,QAAQC,gBAAQC,KAAK;IAAEC,MAAML,MAAMK;EAAK,CAAA;AAC1C,EAAA,CAAA,CAAA;AAIJ,IAAA,yBAAeV;",
6
- "names": ["Effect", "Operation", "handler", "CreateChannel", "pipe", "Operation", "withHandler", "input", "sync", "object", "Channel", "make", "name"]
7
- }
@@ -1,29 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- CreateChannelThread
4
- } from "./chunk-I6LAZYVU.mjs";
5
- import "./chunk-UGSMYQLZ.mjs";
6
- import "./chunk-HSLMI22Q.mjs";
7
-
8
- // src/operations/create-channel-thread.ts
9
- import * as Effect from "effect/Effect";
10
- import { Obj, Ref } from "@dxos/echo";
11
- import { Operation } from "@dxos/operation";
12
- import { Thread } from "@dxos/types";
13
- var handler = CreateChannelThread.pipe(Operation.withHandler((input) => Effect.sync(() => {
14
- const thread = Thread.make({
15
- status: "active"
16
- });
17
- const threadRef = Ref.make(thread);
18
- Obj.change(input.channel, (obj) => {
19
- obj.threads.push(threadRef);
20
- });
21
- return {
22
- object: thread
23
- };
24
- })));
25
- var create_channel_thread_default = handler;
26
- export {
27
- create_channel_thread_default as default
28
- };
29
- //# sourceMappingURL=create-channel-thread-44PXAPGM.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/create-channel-thread.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj, Ref } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { Thread } from '@dxos/types';\n\nimport { CreateChannelThread } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateChannelThread> = CreateChannelThread.pipe(\n Operation.withHandler((input) =>\n Effect.sync(() => {\n const thread = Thread.make({ status: 'active' });\n const threadRef = Ref.make(thread);\n Obj.change(input.channel, (obj) => {\n obj.threads.push(threadRef);\n });\n return { object: thread };\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,WAAW;AACzB,SAASC,iBAAiB;AAC1B,SAASC,cAAc;AAIvB,IAAMC,UAA6DC,oBAAoBC,KACrFC,UAAUC,YAAY,CAACC,UACdC,YAAK,MAAA;AACV,QAAMC,SAASC,OAAOC,KAAK;IAAEC,QAAQ;EAAS,CAAA;AAC9C,QAAMC,YAAYC,IAAIH,KAAKF,MAAAA;AAC3BM,MAAIC,OAAOT,MAAMU,SAAS,CAACC,QAAAA;AACzBA,QAAIC,QAAQC,KAAKP,SAAAA;EACnB,CAAA;AACA,SAAO;IAAEQ,QAAQZ;EAAO;AAC1B,CAAA,CAAA,CAAA;AAIJ,IAAA,gCAAeP;",
6
- "names": ["Effect", "Obj", "Ref", "Operation", "Thread", "handler", "CreateChannelThread", "pipe", "Operation", "withHandler", "input", "sync", "thread", "Thread", "make", "status", "threadRef", "Ref", "Obj", "change", "channel", "obj", "threads", "push", "object"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/create-proposals.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Array from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\n\nimport { computeDiffsWithCursors } from '@dxos/assistant';\nimport { Database, Obj, Ref, Relation } from '@dxos/echo';\nimport { createDocAccessor } from '@dxos/echo-db';\nimport { Operation } from '@dxos/operation';\nimport { AnchoredTo, Message, Thread } from '@dxos/types';\n\nimport { CreateProposals } from './definitions';\n\nconst handler: Operation.WithHandler<typeof CreateProposals> = CreateProposals.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ doc, diffs }) {\n const object = yield* Database.load(doc);\n const content = yield* Effect.promise(() => object.content.load());\n const accessor = createDocAccessor(content, ['content']);\n\n yield* Function.pipe(\n computeDiffsWithCursors(accessor, diffs),\n Array.map(\n Effect.fnUntraced(function* ({ cursor, text }) {\n const proposal = Obj.make(Message.Message, {\n created: new Date().toISOString(),\n sender: { role: 'assistant' },\n blocks: [{ _tag: 'proposal', text }],\n });\n const thread = Thread.make({ name: 'Proposal', messages: [Ref.make(proposal)], status: 'active' });\n const relation = Relation.make(AnchoredTo.AnchoredTo, {\n [Relation.Source]: thread,\n [Relation.Target]: object,\n anchor: cursor,\n });\n yield* Database.add(thread);\n yield* Database.add(relation);\n }),\n ),\n Effect.allWith({ concurrency: 'unbounded' }),\n );\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;AAIA,YAAYA,WAAW;AACvB,YAAYC,YAAY;AACxB,YAAYC,cAAc;AAE1B,SAASC,+BAA+B;AACxC,SAASC,UAAUC,KAAKC,KAAKC,gBAAgB;AAC7C,SAASC,yBAAyB;AAClC,SAASC,iBAAiB;AAC1B,SAASC,YAAYC,SAASC,cAAc;AAI5C,IAAMC,UAAyDC,gBAAgBC,KAC7EC,UAAUC,YACDC,UAAG,WAAW,EAAEC,KAAKC,MAAK,GAAE;AACjC,QAAMC,SAAS,OAAOC,SAASC,KAAKJ,GAAAA;AACpC,QAAMK,UAAU,OAAcC,eAAQ,MAAMJ,OAAOG,QAAQD,KAAI,CAAA;AAC/D,QAAMG,WAAWC,kBAAkBH,SAAS;IAAC;GAAU;AAEvD,SAAgBT,cACda,wBAAwBF,UAAUN,KAAAA,GAC5BS,UACGC,kBAAW,WAAW,EAAEC,QAAQC,KAAI,GAAE;AAC3C,UAAMC,WAAWC,IAAIC,KAAKC,QAAQA,SAAS;MACzCC,UAAS,oBAAIC,KAAAA,GAAOC,YAAW;MAC/BC,QAAQ;QAAEC,MAAM;MAAY;MAC5BC,QAAQ;QAAC;UAAEC,MAAM;UAAYX;QAAK;;IACpC,CAAA;AACA,UAAMY,SAASC,OAAOV,KAAK;MAAEW,MAAM;MAAYC,UAAU;QAACC,IAAIb,KAAKF,QAAAA;;MAAYgB,QAAQ;IAAS,CAAA;AAChG,UAAMC,WAAWC,SAAShB,KAAKiB,WAAWA,YAAY;MACpD,CAACD,SAASE,MAAM,GAAGT;MACnB,CAACO,SAASG,MAAM,GAAGjC;MACnBkC,QAAQxB;IACV,CAAA;AACA,WAAOT,SAASkC,IAAIZ,MAAAA;AACpB,WAAOtB,SAASkC,IAAIN,QAAAA;EACtB,CAAA,CAAA,GAEKO,eAAQ;IAAEC,aAAa;EAAY,CAAA,CAAA;AAE9C,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAe7C;",
6
- "names": ["Array", "Effect", "Function", "computeDiffsWithCursors", "Database", "Obj", "Ref", "Relation", "createDocAccessor", "Operation", "AnchoredTo", "Message", "Thread", "handler", "CreateProposals", "pipe", "Operation", "withHandler", "fn", "doc", "diffs", "object", "Database", "load", "content", "promise", "accessor", "createDocAccessor", "computeDiffsWithCursors", "map", "fnUntraced", "cursor", "text", "proposal", "Obj", "make", "Message", "created", "Date", "toISOString", "sender", "role", "blocks", "_tag", "thread", "Thread", "name", "messages", "Ref", "status", "relation", "Relation", "AnchoredTo", "Source", "Target", "anchor", "add", "allWith", "concurrency"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/delete.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { sleep } from '@dxos/async';\nimport { Obj, Relation } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\nimport { Thread } from '@dxos/types';\n\nimport { ThreadCapabilities } from '../types';\nimport { Delete } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Delete> = Delete.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ subject, anchor, thread: _thread }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const stateAtom = yield* Capability.get(ThreadCapabilities.State);\n const thread = _thread ?? (Relation.getSource(anchor) as Thread.Thread);\n const subjectId = Obj.getDXN(subject).toString();\n const state = registry.get(stateAtom);\n const draft = state.drafts[subjectId];\n if (draft) {\n const index = draft.findIndex((a: { id: string }) => a.id === anchor.id);\n if (index !== -1) {\n registry.set(stateAtom, {\n ...state,\n drafts: {\n ...state.drafts,\n [subjectId]: state.drafts[subjectId]?.filter((_, i) => i !== index),\n },\n });\n return {};\n }\n }\n\n const db = Obj.getDatabase(thread);\n if (!db) {\n return {};\n }\n\n // TODO(wittjosiah): Without sleep, rendering crashes at `Relation.setSource(anchor)`.\n db.remove(anchor);\n yield* Effect.promise(() => sleep(100));\n db.remove(thread);\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n },\n });\n\n return { thread, anchor };\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,aAAa;AACtB,SAASC,KAAKC,gBAAgB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AAMvC,IAAMC,UAAgDC,OAAOC,KAC3DC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,SAASC,QAAQC,QAAQC,QAAO,GAAE;AAC/D,QAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,QAAMC,YAAY,OAAOJ,WAAWC,IAAII,mBAAmBC,KAAK;AAChE,QAAMT,SAASC,WAAYS,SAASC,UAAUZ,MAAAA;AAC9C,QAAMa,YAAYC,IAAIC,OAAOhB,OAAAA,EAASiB,SAAQ;AAC9C,QAAMC,QAAQd,SAASE,IAAIG,SAAAA;AAC3B,QAAMU,QAAQD,MAAME,OAAON,SAAAA;AAC3B,MAAIK,OAAO;AACT,UAAME,QAAQF,MAAMG,UAAU,CAACC,MAAsBA,EAAEC,OAAOvB,OAAOuB,EAAE;AACvE,QAAIH,UAAU,IAAI;AAChBjB,eAASqB,IAAIhB,WAAW;QACtB,GAAGS;QACHE,QAAQ;UACN,GAAGF,MAAME;UACT,CAACN,SAAAA,GAAYI,MAAME,OAAON,SAAAA,GAAYY,OAAO,CAACC,GAAGC,MAAMA,MAAMP,KAAAA;QAC/D;MACF,CAAA;AACA,aAAO,CAAC;IACV;EACF;AAEA,QAAMQ,KAAKd,IAAIe,YAAY5B,MAAAA;AAC3B,MAAI,CAAC2B,IAAI;AACP,WAAO,CAAC;EACV;AAGAA,KAAGE,OAAO9B,MAAAA;AACV,SAAc+B,eAAQ,MAAMC,MAAM,GAAA,CAAA;AAClCJ,KAAGE,OAAO7B,MAAAA;AAEV,SAAOL,UAAUqC,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASV,GAAGU;MACZC,UAAUtC,OAAOsB;IACnB;EACF,CAAA;AAEA,SAAO;IAAEtB;IAAQD;EAAO;AAC1B,CAAA,CAAA,CAAA;AAIJ,IAAA,iBAAeP;",
6
- "names": ["Effect", "Capabilities", "Capability", "sleep", "Obj", "Relation", "Operation", "ObservabilityOperation", "handler", "Delete", "pipe", "Operation", "withHandler", "fnUntraced", "subject", "anchor", "thread", "_thread", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "stateAtom", "ThreadCapabilities", "State", "Relation", "getSource", "subjectId", "Obj", "getDXN", "toString", "state", "draft", "drafts", "index", "findIndex", "a", "id", "set", "filter", "_", "i", "db", "getDatabase", "remove", "promise", "sleep", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/delete-message.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj, Relation } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\nimport { Thread } from '@dxos/types';\n\nimport { Delete, DeleteMessage } from './definitions';\n\nconst handler: Operation.WithHandler<typeof DeleteMessage> = DeleteMessage.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ subject, anchor, messageId }) {\n const thread = Relation.getSource(anchor) as Thread.Thread;\n const db = Obj.getDatabase(subject);\n invariant(db, 'Database not found');\n\n const msgIndex = thread.messages.findIndex((ref) => ref.target?.id === messageId);\n const msg = thread.messages[msgIndex]?.target;\n if (!msg) {\n return { messageIndex: -1 };\n }\n\n if (msgIndex === 0 && thread.messages.length === 1) {\n // TODO(wittjosiah): This doesn't support restoring the thread.\n yield* Operation.invoke(Delete, { subject, anchor });\n return { messageIndex: -1 };\n }\n\n Obj.change(thread, (thread) => {\n thread.messages.splice(msgIndex, 1);\n });\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.message.delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n threadLength: thread.messages.length,\n messageId,\n },\n });\n\n return { message: msg, messageIndex: msgIndex };\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,gBAAgB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;;AAKvC,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,SAASC,QAAQC,UAAS,GAAE;AACzD,QAAMC,SAASC,SAASC,UAAUJ,MAAAA;AAClC,QAAMK,KAAKC,IAAIC,YAAYR,OAAAA;AAC3BS,YAAUH,IAAI,sBAAA;;;;;;;;;AAEd,QAAMI,WAAWP,OAAOQ,SAASC,UAAU,CAACC,QAAQA,IAAIC,QAAQC,OAAOb,SAAAA;AACvE,QAAMc,MAAMb,OAAOQ,SAASD,QAAAA,GAAWI;AACvC,MAAI,CAACE,KAAK;AACR,WAAO;MAAEC,cAAc;IAAG;EAC5B;AAEA,MAAIP,aAAa,KAAKP,OAAOQ,SAASO,WAAW,GAAG;AAElD,WAAOrB,UAAUsB,OAAOC,QAAQ;MAAEpB;MAASC;IAAO,CAAA;AAClD,WAAO;MAAEgB,cAAc;IAAG;EAC5B;AAEAV,MAAIc,OAAOlB,QAAQ,CAACA,YAAAA;AAClBA,IAAAA,QAAOQ,SAASW,OAAOZ,UAAU,CAAA;EACnC,CAAA;AAEA,SAAOb,UAAU0B,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAAStB,GAAGsB;MACZC,UAAU1B,OAAOY;MACjBe,cAAc3B,OAAOQ,SAASO;MAC9BhB;IACF;EACF,CAAA;AAEA,SAAO;IAAE6B,SAASf;IAAKC,cAAcP;EAAS;AAChD,CAAA,CAAA,CAAA;AAIJ,IAAA,yBAAehB;",
6
- "names": ["Effect", "Obj", "Relation", "invariant", "Operation", "ObservabilityOperation", "handler", "DeleteMessage", "pipe", "Operation", "withHandler", "fnUntraced", "subject", "anchor", "messageId", "thread", "Relation", "getSource", "db", "Obj", "getDatabase", "invariant", "msgIndex", "messages", "findIndex", "ref", "target", "id", "msg", "messageIndex", "length", "invoke", "Delete", "change", "splice", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "threadLength", "message"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/on-create-space.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/operation';\n\nimport { CreateChannel, OnCreateSpace } from './definitions';\n\nconst handler: Operation.WithHandler<typeof OnCreateSpace> = OnCreateSpace.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ space, isDefault }) {\n if (isDefault) {\n return;\n }\n\n const { object: channel } = yield* Operation.invoke(CreateChannel, {\n name: 'General',\n spaceId: space.id,\n });\n space.db.add(channel);\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAI1B,IAAMC,UAAuDC,cAAcC,KACzEC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,OAAOC,UAAS,GAAE;AAC/C,MAAIA,WAAW;AACb;EACF;AAEA,QAAM,EAAEC,QAAQC,QAAO,IAAK,OAAON,UAAUO,OAAOC,eAAe;IACjEC,MAAM;IACNC,SAASP,MAAMQ;EACjB,CAAA;AACAR,QAAMS,GAAGC,IAAIP,OAAAA;AACf,CAAA,CAAA,CAAA;AAIJ,IAAA,0BAAeT;",
6
- "names": ["Effect", "Operation", "handler", "OnCreateSpace", "pipe", "Operation", "withHandler", "fnUntraced", "space", "isDefault", "object", "channel", "invoke", "CreateChannel", "name", "spaceId", "id", "db", "add"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/restore.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { sleep } from '@dxos/async';\nimport { Obj } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { Restore } from './definitions';\n\nconst handler: Operation.WithHandler<typeof Restore> = Restore.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ thread, anchor }) {\n const db = Obj.getDatabase(thread);\n if (!db) {\n return;\n }\n\n // TODO(wittjosiah): Without sleep, rendering crashes at `Relation.setSource(anchor)`.\n db.add(thread);\n yield* Effect.promise(() => sleep(100));\n db.add(anchor);\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.undo-delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,aAAa;AACtB,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AAIvC,IAAMC,UAAiDC,QAAQC,KAC7DC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,QAAQC,OAAM,GAAE;AAC7C,QAAMC,KAAKC,IAAIC,YAAYJ,MAAAA;AAC3B,MAAI,CAACE,IAAI;AACP;EACF;AAGAA,KAAGG,IAAIL,MAAAA;AACP,SAAcM,eAAQ,MAAMC,MAAM,GAAA,CAAA;AAClCL,KAAGG,IAAIJ,MAAAA;AAEP,SAAOJ,UAAUW,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASX,GAAGW;MACZC,UAAUd,OAAOe;IACnB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,kBAAerB;",
6
- "names": ["Effect", "sleep", "Obj", "Operation", "ObservabilityOperation", "handler", "Restore", "pipe", "Operation", "withHandler", "fnUntraced", "thread", "anchor", "db", "Obj", "getDatabase", "add", "promise", "sleep", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "id"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/restore-message.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj, Ref, Relation } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\nimport { Thread } from '@dxos/types';\n\nimport { RestoreMessage } from './definitions';\n\nconst handler: Operation.WithHandler<typeof RestoreMessage> = RestoreMessage.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ anchor, message, messageIndex }) {\n const thread = Relation.getSource(anchor) as Thread.Thread;\n const db = Obj.getDatabase(thread);\n invariant(db, 'Database not found');\n\n Obj.change(thread, (thread) => {\n thread.messages.splice(messageIndex, 0, Ref.make(message));\n });\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.message.undo-delete',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n messageId: message.id,\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,KAAKC,KAAKC,gBAAgB;AACnC,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;;AAKvC,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,QAAQC,SAASC,aAAY,GAAE;AAC5D,QAAMC,SAASC,SAASC,UAAUL,MAAAA;AAClC,QAAMM,KAAKC,IAAIC,YAAYL,MAAAA;AAC3BM,YAAUH,IAAI,sBAAA;;;;;;;;;AAEdC,MAAIG,OAAOP,QAAQ,CAACA,YAAAA;AAClBA,IAAAA,QAAOQ,SAASC,OAAOV,cAAc,GAAGW,IAAIC,KAAKb,OAAAA,CAAAA;EACnD,CAAA;AAEA,SAAOJ,UAAUkB,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASd,GAAGc;MACZC,UAAUlB,OAAOmB;MACjBC,WAAWtB,QAAQqB;IACrB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,0BAAe5B;",
6
- "names": ["Effect", "Obj", "Ref", "Relation", "invariant", "Operation", "ObservabilityOperation", "handler", "RestoreMessage", "pipe", "Operation", "withHandler", "fnUntraced", "anchor", "message", "messageIndex", "thread", "Relation", "getSource", "db", "Obj", "getDatabase", "invariant", "change", "messages", "splice", "Ref", "make", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "id", "messageId"]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/operations/toggle-resolved.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Obj } from '@dxos/echo';\nimport { invariant } from '@dxos/invariant';\nimport { Operation } from '@dxos/operation';\nimport { ObservabilityOperation } from '@dxos/plugin-observability/operations';\n\nimport { ToggleResolved } from './definitions';\n\nconst handler: Operation.WithHandler<typeof ToggleResolved> = ToggleResolved.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* (input) {\n const thread = input.thread;\n\n Obj.change(thread, (thread) => {\n if (thread.status === 'active' || thread.status === undefined) {\n thread.status = 'resolved';\n } else if (thread.status === 'resolved') {\n thread.status = 'active';\n }\n });\n\n const db = Obj.getDatabase(thread);\n invariant(db, 'Database not found');\n\n yield* Operation.schedule(ObservabilityOperation.SendEvent, {\n name: 'threads.toggle-resolved',\n properties: {\n spaceId: db.spaceId,\n threadId: thread.id,\n },\n });\n }),\n ),\n);\n\nexport default handler;\n"],
5
- "mappings": ";;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;;AAIvC,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBAAW,WAAWC,OAAK;AAChC,QAAMC,SAASD,MAAMC;AAErBC,MAAIC,OAAOF,QAAQ,CAACA,YAAAA;AAClB,QAAIA,QAAOG,WAAW,YAAYH,QAAOG,WAAWC,QAAW;AAC7DJ,MAAAA,QAAOG,SAAS;IAClB,WAAWH,QAAOG,WAAW,YAAY;AACvCH,MAAAA,QAAOG,SAAS;IAClB;EACF,CAAA;AAEA,QAAME,KAAKJ,IAAIK,YAAYN,MAAAA;AAC3BO,YAAUF,IAAI,sBAAA;;;;;;;;;AAEd,SAAOT,UAAUY,SAASC,uBAAuBC,WAAW;IAC1DC,MAAM;IACNC,YAAY;MACVC,SAASR,GAAGQ;MACZC,UAAUd,OAAOe;IACnB;EACF,CAAA;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,0BAAetB;",
6
- "names": ["Effect", "Obj", "invariant", "Operation", "ObservabilityOperation", "handler", "ToggleResolved", "pipe", "Operation", "withHandler", "fnUntraced", "input", "thread", "Obj", "change", "status", "undefined", "db", "getDatabase", "invariant", "schedule", "ObservabilityOperation", "SendEvent", "name", "properties", "spaceId", "threadId", "id"]
7
- }
@@ -1,16 +0,0 @@
1
- import React from 'react';
2
- import { Obj } from '@dxos/echo';
3
- import { type Space } from '@dxos/react-client/echo';
4
- import { type ThemedClassName } from '@dxos/react-ui';
5
- import { type ThreadRootProps } from '@dxos/react-ui-thread';
6
- import { type Thread } from '@dxos/types';
7
- export type ChatContainerProps = ThemedClassName<{
8
- space: Space;
9
- thread: Thread.Thread;
10
- context?: Obj.Unknown;
11
- autoFocusTextbox?: boolean;
12
- } & Pick<ThreadRootProps, 'current'>>;
13
- export declare const ChatContainer: React.ForwardRefExoticComponent<Omit<ChatContainerProps, "className"> & {
14
- classNames?: import("@dxos/ui-types").ClassNameValue;
15
- } & Pick<React.HTMLAttributes<Element>, "style" | "role" | "children" | "className"> & React.RefAttributes<HTMLDivElement>>;
16
- //# sourceMappingURL=ChatContainer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/ChatContainer/ChatContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAqD,MAAM,OAAO,CAAC;AAE1E,OAAO,EAAE,GAAG,EAAO,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,KAAK,KAAK,EAAc,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EAAc,KAAK,eAAe,EAAmC,MAAM,gBAAgB,CAAC;AACnG,OAAO,EAIL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAW,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AAYnD,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAC9C;IACE,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CACrC,CAAC;AAEF,eAAO,MAAM,aAAa;;2HA4FzB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChatContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/ChatContainer/ChatContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAmB,MAAM,OAAO,CAAC;AA6CxC,QAAA,MAAM,IAAI;;eAE2B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BH,CAAC;AAEtC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
@@ -1,4 +0,0 @@
1
- import { ChatContainer } from './ChatContainer';
2
- export { ChatContainer };
3
- export default ChatContainer;
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/ChatContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,CAAC;AACzB,eAAe,aAAa,CAAC"}
@@ -1,5 +0,0 @@
1
- import { Operation } from '@dxos/operation';
2
- import { CreateChannelThread } from './definitions';
3
- declare const handler: Operation.WithHandler<typeof CreateChannelThread>;
4
- export default handler;
5
- //# sourceMappingURL=create-channel-thread.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-channel-thread.d.ts","sourceRoot":"","sources":["../../../../src/operations/create-channel-thread.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,QAAA,MAAM,OAAO,EAAE,SAAS,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAW9D,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type Plugin } from '@dxos/app-framework';
2
- export declare const createThreadPlugins: () => Promise<Array<Plugin.Plugin>>;
3
- //# sourceMappingURL=stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stories.d.ts","sourceRoot":"","sources":["../../../../src/testing/stories.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAUlD,eAAO,MAAM,mBAAmB,QAAa,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAkCxE,CAAC"}