@dxos/plugin-thread 0.8.4-main.fcfe5033a5 → 0.8.4-staging.60fe92afc8

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 (522) hide show
  1. package/LICENSE +102 -5
  2. package/PLUGIN.mdl +75 -0
  3. package/README.md +1 -1
  4. package/dist/lib/neutral/ChannelArticle-H633OM3U.mjs +57 -0
  5. package/dist/lib/neutral/ChannelArticle-H633OM3U.mjs.map +7 -0
  6. package/dist/lib/neutral/ChannelCreatePanel-NUXXKHZQ.mjs +38 -0
  7. package/dist/lib/neutral/ChannelCreatePanel-NUXXKHZQ.mjs.map +7 -0
  8. package/dist/lib/neutral/ThreadArticle-ROQXQLEZ.mjs +57 -0
  9. package/dist/lib/neutral/ThreadArticle-ROQXQLEZ.mjs.map +7 -0
  10. package/dist/lib/neutral/ThreadPlugin.mjs +67 -0
  11. package/dist/lib/neutral/ThreadPlugin.mjs.map +7 -0
  12. package/dist/lib/neutral/ThreadPlugin.node.mjs +29 -0
  13. package/dist/lib/neutral/ThreadPlugin.node.mjs.map +7 -0
  14. package/dist/lib/neutral/ThreadPlugin.workerd.mjs +27 -0
  15. package/dist/lib/neutral/ThreadPlugin.workerd.mjs.map +7 -0
  16. package/dist/lib/neutral/app-graph-builder-OLKN3VTB.mjs +50 -0
  17. package/dist/lib/neutral/app-graph-builder-OLKN3VTB.mjs.map +7 -0
  18. package/dist/lib/neutral/append-channel-message-J6DXDPBH.mjs +34 -0
  19. package/dist/lib/neutral/append-channel-message-J6DXDPBH.mjs.map +7 -0
  20. package/dist/lib/neutral/capabilities/index.mjs +19 -0
  21. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  22. package/dist/lib/neutral/channel-backend-feed-FCXGAIEC.mjs +58 -0
  23. package/dist/lib/neutral/channel-backend-feed-FCXGAIEC.mjs.map +7 -0
  24. package/dist/lib/neutral/chunk-AWAQTEU6.mjs +10 -0
  25. package/dist/lib/neutral/chunk-AWAQTEU6.mjs.map +7 -0
  26. package/dist/lib/neutral/chunk-HJHK5O6F.mjs +109 -0
  27. package/dist/lib/neutral/chunk-HJHK5O6F.mjs.map +7 -0
  28. package/dist/lib/neutral/chunk-OOC6EQ7X.mjs +36 -0
  29. package/dist/lib/neutral/chunk-OOC6EQ7X.mjs.map +7 -0
  30. package/dist/lib/neutral/chunk-P4RSGFS4.mjs +69 -0
  31. package/dist/lib/neutral/chunk-P4RSGFS4.mjs.map +7 -0
  32. package/dist/lib/neutral/chunk-SZXFLBZL.mjs +8 -0
  33. package/dist/lib/neutral/chunk-SZXFLBZL.mjs.map +7 -0
  34. package/dist/lib/neutral/components/index.mjs +93 -0
  35. package/dist/lib/neutral/components/index.mjs.map +7 -0
  36. package/dist/lib/neutral/containers/index.mjs +13 -0
  37. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  38. package/dist/lib/neutral/create-channel-UW2LSL4G.mjs +41 -0
  39. package/dist/lib/neutral/create-channel-UW2LSL4G.mjs.map +7 -0
  40. package/dist/lib/neutral/create-object-RLCOUVAW.mjs +46 -0
  41. package/dist/lib/neutral/create-object-RLCOUVAW.mjs.map +7 -0
  42. package/dist/lib/neutral/hooks/index.mjs +11 -0
  43. package/dist/lib/neutral/index.mjs +34 -0
  44. package/dist/lib/neutral/meta.json +1 -0
  45. package/dist/lib/neutral/meta.mjs +10 -0
  46. package/dist/lib/neutral/navigation-resolver-4X4HCQYX.mjs +14 -0
  47. package/dist/lib/neutral/navigation-resolver-4X4HCQYX.mjs.map +7 -0
  48. package/dist/lib/neutral/operation-handler-RU6K2S4L.mjs +13 -0
  49. package/dist/lib/neutral/operation-handler-RU6K2S4L.mjs.map +7 -0
  50. package/dist/lib/neutral/operations/index.mjs +8 -0
  51. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  52. package/dist/lib/neutral/plugin.mjs +16 -0
  53. package/dist/lib/neutral/plugin.mjs.map +7 -0
  54. package/dist/lib/neutral/react-surface-G6KT7TSU.mjs +48 -0
  55. package/dist/lib/neutral/react-surface-G6KT7TSU.mjs.map +7 -0
  56. package/dist/lib/neutral/translations.mjs +91 -0
  57. package/dist/lib/neutral/translations.mjs.map +7 -0
  58. package/dist/lib/neutral/types/index.mjs +16 -0
  59. package/dist/lib/neutral/types/index.mjs.map +7 -0
  60. package/dist/types/src/ThreadPlugin.d.ts +1 -0
  61. package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
  62. package/dist/types/src/ThreadPlugin.node.d.ts +4 -0
  63. package/dist/types/src/ThreadPlugin.node.d.ts.map +1 -0
  64. package/dist/types/src/ThreadPlugin.test.d.ts +2 -0
  65. package/dist/types/src/ThreadPlugin.test.d.ts.map +1 -0
  66. package/dist/types/src/ThreadPlugin.workerd.d.ts +4 -0
  67. package/dist/types/src/ThreadPlugin.workerd.d.ts.map +1 -0
  68. package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
  69. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  70. package/dist/types/src/capabilities/channel-backend-feed.d.ts +13 -0
  71. package/dist/types/src/capabilities/channel-backend-feed.d.ts.map +1 -0
  72. package/dist/types/src/capabilities/create-object.d.ts +11 -0
  73. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  74. package/dist/types/src/capabilities/index.d.ts +8 -10
  75. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  76. package/dist/types/src/capabilities/navigation-resolver.d.ts +6 -0
  77. package/dist/types/src/capabilities/navigation-resolver.d.ts.map +1 -0
  78. package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
  79. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
  80. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  81. package/dist/types/src/components/Chat/Chat.d.ts +43 -0
  82. package/dist/types/src/components/Chat/Chat.d.ts.map +1 -0
  83. package/dist/types/src/components/Chat/index.d.ts +2 -0
  84. package/dist/types/src/components/Chat/index.d.ts.map +1 -0
  85. package/dist/types/src/components/index.d.ts +1 -5
  86. package/dist/types/src/components/index.d.ts.map +1 -1
  87. package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts +19 -0
  88. package/dist/types/src/containers/ChannelArticle/ChannelArticle.d.ts.map +1 -0
  89. package/dist/types/src/{components/CommentsPanel/CommentsPanel.stories.d.ts → containers/ChannelArticle/ChannelArticle.stories.d.ts} +74 -72
  90. package/dist/types/src/containers/ChannelArticle/ChannelArticle.stories.d.ts.map +1 -0
  91. package/dist/types/src/containers/ChannelArticle/index.d.ts +2 -0
  92. package/dist/types/src/{components/ThreadSettings → containers/ChannelArticle}/index.d.ts.map +1 -1
  93. package/dist/types/src/containers/ChannelCreatePanel/ChannelCreatePanel.d.ts +11 -0
  94. package/dist/types/src/containers/ChannelCreatePanel/ChannelCreatePanel.d.ts.map +1 -0
  95. package/dist/types/src/containers/ChannelCreatePanel/index.d.ts +2 -0
  96. package/dist/types/src/containers/ChannelCreatePanel/index.d.ts.map +1 -0
  97. package/dist/types/src/containers/ThreadArticle/ThreadArticle.d.ts +20 -0
  98. package/dist/types/src/containers/ThreadArticle/ThreadArticle.d.ts.map +1 -0
  99. package/dist/types/src/containers/{ChatContainer/ChatContainer.stories.d.ts → ThreadArticle/ThreadArticle.stories.d.ts} +71 -71
  100. package/dist/types/src/containers/ThreadArticle/ThreadArticle.stories.d.ts.map +1 -0
  101. package/dist/types/src/containers/ThreadArticle/index.d.ts +2 -0
  102. package/dist/types/src/containers/ThreadArticle/index.d.ts.map +1 -0
  103. package/dist/types/src/containers/index.d.ts +3 -5
  104. package/dist/types/src/containers/index.d.ts.map +1 -1
  105. package/dist/types/src/hooks/index.d.ts +1 -5
  106. package/dist/types/src/hooks/index.d.ts.map +1 -1
  107. package/dist/types/src/hooks/useMessages.d.ts +4 -0
  108. package/dist/types/src/hooks/useMessages.d.ts.map +1 -0
  109. package/dist/types/src/hooks/useStatus.d.ts.map +1 -1
  110. package/dist/types/src/index.d.ts +2 -3
  111. package/dist/types/src/index.d.ts.map +1 -1
  112. package/dist/types/src/meta.d.ts +1 -1
  113. package/dist/types/src/meta.d.ts.map +1 -1
  114. package/dist/types/src/operations/append-channel-message.d.ts +5 -0
  115. package/dist/types/src/operations/append-channel-message.d.ts.map +1 -0
  116. package/dist/types/src/operations/create-channel.d.ts +3 -3
  117. package/dist/types/src/operations/create-channel.d.ts.map +1 -1
  118. package/dist/types/src/operations/index.d.ts +1 -2
  119. package/dist/types/src/operations/index.d.ts.map +1 -1
  120. package/dist/types/src/paths.d.ts +3 -0
  121. package/dist/types/src/paths.d.ts.map +1 -0
  122. package/dist/types/src/plugin.d.ts +4 -0
  123. package/dist/types/src/plugin.d.ts.map +1 -0
  124. package/dist/types/src/translations.d.ts +70 -70
  125. package/dist/types/src/translations.d.ts.map +1 -1
  126. package/dist/types/src/types/ThreadCapabilities.d.ts +37 -0
  127. package/dist/types/src/types/ThreadCapabilities.d.ts.map +1 -0
  128. package/dist/types/src/types/ThreadOperation.d.ts +91 -0
  129. package/dist/types/src/types/ThreadOperation.d.ts.map +1 -0
  130. package/dist/types/src/types/channel-backend.d.ts +16 -0
  131. package/dist/types/src/types/channel-backend.d.ts.map +1 -0
  132. package/dist/types/src/types/channel-backend.test.d.ts +2 -0
  133. package/dist/types/src/types/channel-backend.test.d.ts.map +1 -0
  134. package/dist/types/src/types/index.d.ts +3 -3
  135. package/dist/types/src/types/index.d.ts.map +1 -1
  136. package/dist/types/src/util.d.ts +4 -20
  137. package/dist/types/src/util.d.ts.map +1 -1
  138. package/dist/types/tsconfig.tsbuildinfo +1 -1
  139. package/package.json +96 -114
  140. package/src/ThreadPlugin.node.ts +26 -0
  141. package/src/ThreadPlugin.test.ts +27 -0
  142. package/src/ThreadPlugin.tsx +23 -105
  143. package/src/ThreadPlugin.workerd.ts +25 -0
  144. package/src/capabilities/app-graph-builder.ts +25 -167
  145. package/src/capabilities/channel-backend-feed.ts +60 -0
  146. package/src/capabilities/create-object.ts +46 -0
  147. package/src/capabilities/index.ts +4 -8
  148. package/src/capabilities/navigation-resolver.ts +18 -0
  149. package/src/capabilities/operation-handler.ts +1 -1
  150. package/src/capabilities/react-surface.tsx +8 -50
  151. package/src/components/Chat/Chat.tsx +119 -0
  152. package/src/components/Chat/index.ts +5 -0
  153. package/src/components/index.ts +1 -7
  154. package/src/containers/ChannelArticle/ChannelArticle.stories.tsx +108 -0
  155. package/src/containers/ChannelArticle/ChannelArticle.tsx +83 -0
  156. package/src/containers/ChannelArticle/index.ts +5 -0
  157. package/src/containers/ChannelCreatePanel/ChannelCreatePanel.tsx +52 -0
  158. package/src/containers/ChannelCreatePanel/index.ts +5 -0
  159. package/src/containers/{ChatContainer/ChatContainer.stories.tsx → ThreadArticle/ThreadArticle.stories.tsx} +11 -12
  160. package/src/containers/ThreadArticle/ThreadArticle.tsx +75 -0
  161. package/src/containers/ThreadArticle/index.ts +5 -0
  162. package/src/containers/index.ts +3 -5
  163. package/src/hooks/index.ts +1 -6
  164. package/src/hooks/useMessages.ts +37 -0
  165. package/src/index.ts +4 -4
  166. package/src/meta.ts +22 -8
  167. package/src/operations/append-channel-message.ts +31 -0
  168. package/src/operations/create-channel.ts +18 -8
  169. package/src/operations/index.ts +2 -14
  170. package/src/paths.ts +10 -0
  171. package/src/plugin.ts +11 -0
  172. package/src/translations.ts +2 -1
  173. package/src/types/ThreadCapabilities.ts +47 -0
  174. package/src/types/ThreadOperation.ts +49 -0
  175. package/src/types/channel-backend.test.ts +48 -0
  176. package/src/types/channel-backend.ts +54 -0
  177. package/src/types/index.ts +3 -3
  178. package/src/util.ts +35 -18
  179. package/src/vite-env.d.ts +10 -0
  180. package/dist/lib/browser/add-message-VPPFFLFL.mjs +0 -97
  181. package/dist/lib/browser/add-message-VPPFFLFL.mjs.map +0 -7
  182. package/dist/lib/browser/blueprints/index.mjs +0 -37
  183. package/dist/lib/browser/blueprints/index.mjs.map +0 -7
  184. package/dist/lib/browser/chunk-MESW3R4Q.mjs +0 -61
  185. package/dist/lib/browser/chunk-MESW3R4Q.mjs.map +0 -7
  186. package/dist/lib/browser/chunk-VPM44Z35.mjs +0 -259
  187. package/dist/lib/browser/chunk-VPM44Z35.mjs.map +0 -7
  188. package/dist/lib/browser/create-OQKG4S47.mjs +0 -55
  189. package/dist/lib/browser/create-OQKG4S47.mjs.map +0 -7
  190. package/dist/lib/browser/create-channel-EF67LCS6.mjs +0 -21
  191. package/dist/lib/browser/create-channel-EF67LCS6.mjs.map +0 -7
  192. package/dist/lib/browser/create-channel-thread-CCZTSWQ6.mjs +0 -28
  193. package/dist/lib/browser/create-channel-thread-CCZTSWQ6.mjs.map +0 -7
  194. package/dist/lib/browser/create-proposals-CMK7S7VS.mjs +0 -57
  195. package/dist/lib/browser/create-proposals-CMK7S7VS.mjs.map +0 -7
  196. package/dist/lib/browser/delete-FSFVU6ZA.mjs +0 -59
  197. package/dist/lib/browser/delete-FSFVU6ZA.mjs.map +0 -7
  198. package/dist/lib/browser/delete-message-XL5M5J33.mjs +0 -64
  199. package/dist/lib/browser/delete-message-XL5M5J33.mjs.map +0 -7
  200. package/dist/lib/browser/index.mjs +0 -2334
  201. package/dist/lib/browser/index.mjs.map +0 -7
  202. package/dist/lib/browser/meta.json +0 -1
  203. package/dist/lib/browser/on-create-space-VYS2JGVT.mjs +0 -25
  204. package/dist/lib/browser/on-create-space-VYS2JGVT.mjs.map +0 -7
  205. package/dist/lib/browser/operations/index.mjs +0 -14
  206. package/dist/lib/browser/operations/index.mjs.map +0 -7
  207. package/dist/lib/browser/restore-2ZGMKUSD.mjs +0 -33
  208. package/dist/lib/browser/restore-2ZGMKUSD.mjs.map +0 -7
  209. package/dist/lib/browser/restore-message-OYEGWPII.mjs +0 -42
  210. package/dist/lib/browser/restore-message-OYEGWPII.mjs.map +0 -7
  211. package/dist/lib/browser/select-VG2XLULE.mjs +0 -26
  212. package/dist/lib/browser/select-VG2XLULE.mjs.map +0 -7
  213. package/dist/lib/browser/toggle-resolved-MM6YC5BU.mjs +0 -45
  214. package/dist/lib/browser/toggle-resolved-MM6YC5BU.mjs.map +0 -7
  215. package/dist/lib/browser/types/index.mjs +0 -12
  216. package/dist/lib/node-esm/add-message-XWKHLNS6.mjs +0 -98
  217. package/dist/lib/node-esm/add-message-XWKHLNS6.mjs.map +0 -7
  218. package/dist/lib/node-esm/blueprints/index.mjs +0 -38
  219. package/dist/lib/node-esm/blueprints/index.mjs.map +0 -7
  220. package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
  221. package/dist/lib/node-esm/chunk-JTHXNWKJ.mjs +0 -260
  222. package/dist/lib/node-esm/chunk-JTHXNWKJ.mjs.map +0 -7
  223. package/dist/lib/node-esm/chunk-SDRAQNSQ.mjs +0 -62
  224. package/dist/lib/node-esm/chunk-SDRAQNSQ.mjs.map +0 -7
  225. package/dist/lib/node-esm/create-6ZOFMMYA.mjs +0 -56
  226. package/dist/lib/node-esm/create-6ZOFMMYA.mjs.map +0 -7
  227. package/dist/lib/node-esm/create-channel-UYWUNB3L.mjs +0 -22
  228. package/dist/lib/node-esm/create-channel-UYWUNB3L.mjs.map +0 -7
  229. package/dist/lib/node-esm/create-channel-thread-UQF2SBHS.mjs +0 -29
  230. package/dist/lib/node-esm/create-channel-thread-UQF2SBHS.mjs.map +0 -7
  231. package/dist/lib/node-esm/create-proposals-5FJNURKH.mjs +0 -58
  232. package/dist/lib/node-esm/create-proposals-5FJNURKH.mjs.map +0 -7
  233. package/dist/lib/node-esm/delete-WRODXR3E.mjs +0 -60
  234. package/dist/lib/node-esm/delete-WRODXR3E.mjs.map +0 -7
  235. package/dist/lib/node-esm/delete-message-TAHCYTW2.mjs +0 -65
  236. package/dist/lib/node-esm/delete-message-TAHCYTW2.mjs.map +0 -7
  237. package/dist/lib/node-esm/index.mjs +0 -2335
  238. package/dist/lib/node-esm/index.mjs.map +0 -7
  239. package/dist/lib/node-esm/meta.json +0 -1
  240. package/dist/lib/node-esm/on-create-space-XDY2YXPV.mjs +0 -26
  241. package/dist/lib/node-esm/on-create-space-XDY2YXPV.mjs.map +0 -7
  242. package/dist/lib/node-esm/operations/index.mjs +0 -15
  243. package/dist/lib/node-esm/operations/index.mjs.map +0 -7
  244. package/dist/lib/node-esm/restore-T3QA7TSL.mjs +0 -34
  245. package/dist/lib/node-esm/restore-T3QA7TSL.mjs.map +0 -7
  246. package/dist/lib/node-esm/restore-message-WFTEVBEV.mjs +0 -43
  247. package/dist/lib/node-esm/restore-message-WFTEVBEV.mjs.map +0 -7
  248. package/dist/lib/node-esm/select-Q4UDWJJF.mjs +0 -27
  249. package/dist/lib/node-esm/select-Q4UDWJJF.mjs.map +0 -7
  250. package/dist/lib/node-esm/toggle-resolved-33XTAK2H.mjs +0 -46
  251. package/dist/lib/node-esm/toggle-resolved-33XTAK2H.mjs.map +0 -7
  252. package/dist/lib/node-esm/types/index.mjs +0 -13
  253. package/dist/types/src/blueprints/index.d.ts +0 -2
  254. package/dist/types/src/blueprints/index.d.ts.map +0 -1
  255. package/dist/types/src/blueprints/thread-blueprint.d.ts +0 -4
  256. package/dist/types/src/blueprints/thread-blueprint.d.ts.map +0 -1
  257. package/dist/types/src/calls/call-manager.d.ts +0 -87
  258. package/dist/types/src/calls/call-manager.d.ts.map +0 -1
  259. package/dist/types/src/calls/call-swarm-synchronizer.d.ts +0 -66
  260. package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +0 -1
  261. package/dist/types/src/calls/index.d.ts +0 -7
  262. package/dist/types/src/calls/index.d.ts.map +0 -1
  263. package/dist/types/src/calls/media-manager.d.ts +0 -60
  264. package/dist/types/src/calls/media-manager.d.ts.map +0 -1
  265. package/dist/types/src/calls/speaking-monitor.d.ts +0 -24
  266. package/dist/types/src/calls/speaking-monitor.d.ts.map +0 -1
  267. package/dist/types/src/calls/types.d.ts +0 -45
  268. package/dist/types/src/calls/types.d.ts.map +0 -1
  269. package/dist/types/src/calls/util/audio.d.ts +0 -6
  270. package/dist/types/src/calls/util/audio.d.ts.map +0 -1
  271. package/dist/types/src/calls/util/calls-service.d.ts +0 -77
  272. package/dist/types/src/calls/util/calls-service.d.ts.map +0 -1
  273. package/dist/types/src/calls/util/history-cache.d.ts +0 -11
  274. package/dist/types/src/calls/util/history-cache.d.ts.map +0 -1
  275. package/dist/types/src/calls/util/index.d.ts +0 -5
  276. package/dist/types/src/calls/util/index.d.ts.map +0 -1
  277. package/dist/types/src/calls/util/media.d.ts +0 -6
  278. package/dist/types/src/calls/util/media.d.ts.map +0 -1
  279. package/dist/types/src/calls/util/stub-media-streams.d.ts +0 -18
  280. package/dist/types/src/calls/util/stub-media-streams.d.ts.map +0 -1
  281. package/dist/types/src/calls/util/task-scheduling.d.ts +0 -17
  282. package/dist/types/src/calls/util/task-scheduling.d.ts.map +0 -1
  283. package/dist/types/src/calls-service.stories.d.ts +0 -23
  284. package/dist/types/src/calls-service.stories.d.ts.map +0 -1
  285. package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -6
  286. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
  287. package/dist/types/src/capabilities/call-manager.d.ts +0 -6
  288. package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
  289. package/dist/types/src/capabilities/markdown.d.ts +0 -5
  290. package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
  291. package/dist/types/src/capabilities/react-root.d.ts +0 -9
  292. package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
  293. package/dist/types/src/capabilities/settings.d.ts +0 -7
  294. package/dist/types/src/capabilities/settings.d.ts.map +0 -1
  295. package/dist/types/src/capabilities/state.d.ts +0 -7
  296. package/dist/types/src/capabilities/state.d.ts.map +0 -1
  297. package/dist/types/src/capabilities/undo-mappings.d.ts +0 -5
  298. package/dist/types/src/capabilities/undo-mappings.d.ts.map +0 -1
  299. package/dist/types/src/components/Call/Call.d.ts +0 -17
  300. package/dist/types/src/components/Call/Call.d.ts.map +0 -1
  301. package/dist/types/src/components/Call/Toolbar.d.ts +0 -16
  302. package/dist/types/src/components/Call/Toolbar.d.ts.map +0 -1
  303. package/dist/types/src/components/Call/index.d.ts +0 -3
  304. package/dist/types/src/components/Call/index.d.ts.map +0 -1
  305. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +0 -13
  306. package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +0 -1
  307. package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +0 -1
  308. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts +0 -14
  309. package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +0 -1
  310. package/dist/types/src/components/CommentsPanel/index.d.ts +0 -3
  311. package/dist/types/src/components/CommentsPanel/index.d.ts.map +0 -1
  312. package/dist/types/src/components/Lobby/Lobby.d.ts +0 -15
  313. package/dist/types/src/components/Lobby/Lobby.d.ts.map +0 -1
  314. package/dist/types/src/components/Lobby/index.d.ts +0 -2
  315. package/dist/types/src/components/Lobby/index.d.ts.map +0 -1
  316. package/dist/types/src/components/Media/AudioStream.d.ts +0 -6
  317. package/dist/types/src/components/Media/AudioStream.d.ts.map +0 -1
  318. package/dist/types/src/components/Media/VideoObject.d.ts +0 -15
  319. package/dist/types/src/components/Media/VideoObject.d.ts.map +0 -1
  320. package/dist/types/src/components/Media/VideoObject.stories.d.ts +0 -22
  321. package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +0 -1
  322. package/dist/types/src/components/Media/index.d.ts +0 -3
  323. package/dist/types/src/components/Media/index.d.ts.map +0 -1
  324. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts +0 -15
  325. package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +0 -1
  326. package/dist/types/src/components/MessagePanel/index.d.ts +0 -2
  327. package/dist/types/src/components/MessagePanel/index.d.ts.map +0 -1
  328. package/dist/types/src/components/Participant/Participant.d.ts +0 -6
  329. package/dist/types/src/components/Participant/Participant.d.ts.map +0 -1
  330. package/dist/types/src/components/Participant/ParticipantGrid.d.ts +0 -11
  331. package/dist/types/src/components/Participant/ParticipantGrid.d.ts.map +0 -1
  332. package/dist/types/src/components/Participant/index.d.ts +0 -3
  333. package/dist/types/src/components/Participant/index.d.ts.map +0 -1
  334. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts +0 -32
  335. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.d.ts.map +0 -1
  336. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +0 -178
  337. package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +0 -1
  338. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts +0 -21
  339. package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +0 -1
  340. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts +0 -12
  341. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +0 -1
  342. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +0 -164
  343. package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +0 -1
  344. package/dist/types/src/components/ResponsiveGrid/index.d.ts +0 -4
  345. package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +0 -1
  346. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts +0 -6
  347. package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +0 -1
  348. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +0 -161
  349. package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +0 -1
  350. package/dist/types/src/components/ThreadSettings/index.d.ts +0 -2
  351. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts +0 -15
  352. package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +0 -1
  353. package/dist/types/src/containers/CallDebugPanel/index.d.ts +0 -2
  354. package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +0 -1
  355. package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts +0 -3
  356. package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +0 -1
  357. package/dist/types/src/containers/CallSidebar/index.d.ts +0 -2
  358. package/dist/types/src/containers/CallSidebar/index.d.ts.map +0 -1
  359. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +0 -12
  360. package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +0 -1
  361. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +0 -162
  362. package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +0 -1
  363. package/dist/types/src/containers/ChannelContainer/index.d.ts +0 -2
  364. package/dist/types/src/containers/ChannelContainer/index.d.ts.map +0 -1
  365. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +0 -16
  366. package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
  367. package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +0 -1
  368. package/dist/types/src/containers/ChatContainer/index.d.ts +0 -4
  369. package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
  370. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +0 -8
  371. package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +0 -1
  372. package/dist/types/src/containers/ThreadCompanion/index.d.ts +0 -2
  373. package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +0 -1
  374. package/dist/types/src/extensions/command.d.ts +0 -3
  375. package/dist/types/src/extensions/command.d.ts.map +0 -1
  376. package/dist/types/src/extensions/index.d.ts +0 -3
  377. package/dist/types/src/extensions/index.d.ts.map +0 -1
  378. package/dist/types/src/extensions/threads.d.ts +0 -14
  379. package/dist/types/src/extensions/threads.d.ts.map +0 -1
  380. package/dist/types/src/hooks/analytics.d.ts +0 -3
  381. package/dist/types/src/hooks/analytics.d.ts.map +0 -1
  382. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts +0 -2
  383. package/dist/types/src/hooks/useBlackCanvasStreamTrack.d.ts.map +0 -1
  384. package/dist/types/src/hooks/useDebugMode.d.ts +0 -2
  385. package/dist/types/src/hooks/useDebugMode.d.ts.map +0 -1
  386. package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts +0 -2
  387. package/dist/types/src/hooks/useInaudibleAudioStreamTrack.d.ts.map +0 -1
  388. package/dist/types/src/hooks/useVideoStreamTrack.d.ts +0 -3
  389. package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +0 -1
  390. package/dist/types/src/operations/add-message.d.ts +0 -5
  391. package/dist/types/src/operations/add-message.d.ts.map +0 -1
  392. package/dist/types/src/operations/create-channel-thread.d.ts +0 -5
  393. package/dist/types/src/operations/create-channel-thread.d.ts.map +0 -1
  394. package/dist/types/src/operations/create-proposals.d.ts +0 -5
  395. package/dist/types/src/operations/create-proposals.d.ts.map +0 -1
  396. package/dist/types/src/operations/create.d.ts +0 -5
  397. package/dist/types/src/operations/create.d.ts.map +0 -1
  398. package/dist/types/src/operations/definitions.d.ts +0 -2804
  399. package/dist/types/src/operations/definitions.d.ts.map +0 -1
  400. package/dist/types/src/operations/delete-message.d.ts +0 -5
  401. package/dist/types/src/operations/delete-message.d.ts.map +0 -1
  402. package/dist/types/src/operations/delete.d.ts +0 -5
  403. package/dist/types/src/operations/delete.d.ts.map +0 -1
  404. package/dist/types/src/operations/on-create-space.d.ts +0 -5
  405. package/dist/types/src/operations/on-create-space.d.ts.map +0 -1
  406. package/dist/types/src/operations/restore-message.d.ts +0 -5
  407. package/dist/types/src/operations/restore-message.d.ts.map +0 -1
  408. package/dist/types/src/operations/restore.d.ts +0 -5
  409. package/dist/types/src/operations/restore.d.ts.map +0 -1
  410. package/dist/types/src/operations/select.d.ts +0 -5
  411. package/dist/types/src/operations/select.d.ts.map +0 -1
  412. package/dist/types/src/operations/toggle-resolved.d.ts +0 -5
  413. package/dist/types/src/operations/toggle-resolved.d.ts.map +0 -1
  414. package/dist/types/src/testing/data.d.ts +0 -5
  415. package/dist/types/src/testing/data.d.ts.map +0 -1
  416. package/dist/types/src/testing/index.d.ts +0 -2
  417. package/dist/types/src/testing/index.d.ts.map +0 -1
  418. package/dist/types/src/testing/stories.d.ts +0 -3
  419. package/dist/types/src/testing/stories.d.ts.map +0 -1
  420. package/dist/types/src/types/Channel.d.ts +0 -715
  421. package/dist/types/src/types/Channel.d.ts.map +0 -1
  422. package/dist/types/src/types/Settings.d.ts +0 -5
  423. package/dist/types/src/types/Settings.d.ts.map +0 -1
  424. package/dist/types/src/types/capabilities.d.ts +0 -24
  425. package/dist/types/src/types/capabilities.d.ts.map +0 -1
  426. package/dist/types/src/types/types.d.ts +0 -18
  427. package/dist/types/src/types/types.d.ts.map +0 -1
  428. package/src/blueprints/index.ts +0 -5
  429. package/src/blueprints/thread-blueprint.ts +0 -37
  430. package/src/calls/call-manager.ts +0 -270
  431. package/src/calls/call-swarm-synchronizer.ts +0 -350
  432. package/src/calls/index.ts +0 -10
  433. package/src/calls/media-manager.ts +0 -378
  434. package/src/calls/speaking-monitor.ts +0 -85
  435. package/src/calls/types.ts +0 -74
  436. package/src/calls/util/audio.ts +0 -58
  437. package/src/calls/util/calls-service.ts +0 -580
  438. package/src/calls/util/history-cache.ts +0 -27
  439. package/src/calls/util/index.ts +0 -8
  440. package/src/calls/util/media.ts +0 -52
  441. package/src/calls/util/stub-media-streams.ts +0 -127
  442. package/src/calls/util/task-scheduling.ts +0 -92
  443. package/src/calls-service.stories.tsx +0 -230
  444. package/src/capabilities/blueprint-definition.ts +0 -17
  445. package/src/capabilities/call-manager.ts +0 -27
  446. package/src/capabilities/markdown.ts +0 -82
  447. package/src/capabilities/react-root.tsx +0 -20
  448. package/src/capabilities/settings.ts +0 -35
  449. package/src/capabilities/state.ts +0 -22
  450. package/src/capabilities/undo-mappings.ts +0 -46
  451. package/src/components/Call/Call.tsx +0 -93
  452. package/src/components/Call/Toolbar.tsx +0 -199
  453. package/src/components/Call/index.ts +0 -6
  454. package/src/components/CommentsPanel/CommentsPanel.stories.tsx +0 -93
  455. package/src/components/CommentsPanel/CommentsPanel.tsx +0 -71
  456. package/src/components/CommentsPanel/CommentsThread.tsx +0 -172
  457. package/src/components/CommentsPanel/index.ts +0 -6
  458. package/src/components/Lobby/Lobby.tsx +0 -122
  459. package/src/components/Lobby/index.ts +0 -5
  460. package/src/components/Media/AudioStream.tsx +0 -67
  461. package/src/components/Media/VideoObject.stories.tsx +0 -59
  462. package/src/components/Media/VideoObject.tsx +0 -58
  463. package/src/components/Media/index.ts +0 -6
  464. package/src/components/MessagePanel/MessagePanel.tsx +0 -222
  465. package/src/components/MessagePanel/index.ts +0 -5
  466. package/src/components/Participant/Participant.tsx +0 -77
  467. package/src/components/Participant/ParticipantGrid.tsx +0 -88
  468. package/src/components/Participant/index.ts +0 -6
  469. package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +0 -157
  470. package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +0 -341
  471. package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +0 -134
  472. package/src/components/ResponsiveGrid/ResponsivePanel.stories.tsx +0 -53
  473. package/src/components/ResponsiveGrid/ResponsivePanel.tsx +0 -31
  474. package/src/components/ResponsiveGrid/index.ts +0 -7
  475. package/src/components/ThreadSettings/ThreadSettings.stories.tsx +0 -31
  476. package/src/components/ThreadSettings/ThreadSettings.tsx +0 -20
  477. package/src/components/ThreadSettings/index.ts +0 -5
  478. package/src/containers/CallDebugPanel/CallDebugPanel.tsx +0 -173
  479. package/src/containers/CallDebugPanel/index.ts +0 -5
  480. package/src/containers/CallSidebar/CallSidebar.tsx +0 -18
  481. package/src/containers/CallSidebar/index.ts +0 -5
  482. package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +0 -61
  483. package/src/containers/ChannelContainer/ChannelContainer.tsx +0 -223
  484. package/src/containers/ChannelContainer/index.ts +0 -5
  485. package/src/containers/ChatContainer/ChatContainer.tsx +0 -131
  486. package/src/containers/ChatContainer/index.ts +0 -8
  487. package/src/containers/ThreadCompanion/ThreadCompanion.tsx +0 -217
  488. package/src/containers/ThreadCompanion/index.ts +0 -5
  489. package/src/extensions/command.ts +0 -36
  490. package/src/extensions/index.ts +0 -6
  491. package/src/extensions/threads.ts +0 -171
  492. package/src/hooks/analytics.ts +0 -41
  493. package/src/hooks/useBlackCanvasStreamTrack.tsx +0 -27
  494. package/src/hooks/useDebugMode.ts +0 -25
  495. package/src/hooks/useInaudibleAudioStreamTrack.tsx +0 -27
  496. package/src/hooks/useVideoStreamTrack.tsx +0 -36
  497. package/src/operations/add-message.ts +0 -81
  498. package/src/operations/create-channel-thread.ts +0 -26
  499. package/src/operations/create-proposals.ts +0 -49
  500. package/src/operations/create.ts +0 -48
  501. package/src/operations/definitions.ts +0 -177
  502. package/src/operations/delete-message.ts +0 -53
  503. package/src/operations/delete.ts +0 -63
  504. package/src/operations/on-create-space.ts +0 -27
  505. package/src/operations/restore-message.ts +0 -38
  506. package/src/operations/restore.ts +0 -38
  507. package/src/operations/select.ts +0 -24
  508. package/src/operations/toggle-resolved.ts +0 -41
  509. package/src/testing/data.ts +0 -49
  510. package/src/testing/index.ts +0 -5
  511. package/src/testing/stories.ts +0 -51
  512. package/src/types/Channel.ts +0 -37
  513. package/src/types/Settings.ts +0 -10
  514. package/src/types/capabilities.ts +0 -36
  515. package/src/types/types.ts +0 -24
  516. package/src/typings/peermetrics-webrtc-stats.d.ts +0 -46
  517. package/src/typings.d.ts +0 -8
  518. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
  519. /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
  520. /package/dist/lib/{browser/types → neutral/hooks}/index.mjs.map +0 -0
  521. /package/dist/lib/{node-esm/types → neutral}/index.mjs.map +0 -0
  522. /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/meta.mjs.map} +0 -0
package/LICENSE CHANGED
@@ -1,8 +1,105 @@
1
- MIT License
2
- Copyright (c) 2022 DXOS
1
+ # Functional Source License, Version 1.1, ALv2 Future License
3
2
 
4
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3
+ ## Abbreviation
5
4
 
6
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
5
+ FSL-1.1-Apache-2.0
7
6
 
8
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
7
+ ## Notice
8
+
9
+ Copyright 2026 DXOS
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
98
+ You may obtain a copy of the License at
99
+
100
+ http://www.apache.org/licenses/LICENSE-2.0
101
+
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.
package/PLUGIN.mdl ADDED
@@ -0,0 +1,75 @@
1
+ ---
2
+ id: org.dxos.plugin.thread
3
+ name: ThreadPlugin
4
+ version: 0.1.0
5
+ ---
6
+
7
+ ThreadPlugin provides chat: channels backed by an ECHO feed and free-standing message threads.
8
+ It renders the channel article + companion surfaces and a thread surface, and contributes the
9
+ operations that create a channel and append messages. Shared message/thread UI comes from
10
+ `@dxos/react-ui-thread`, and the `Channel`/`Message`/`Thread` schema comes from `@dxos/types`.
11
+ Document comments and the comment-thread AI agent live in `@dxos/plugin-comments`.
12
+
13
+ ## Extensions
14
+
15
+ The following extension dialects are used in this document.
16
+
17
+ | Term | URI |
18
+ |-------------|--------------------------------|
19
+ | `type` | `org.dxos.mdl.type@1.0` |
20
+ | `feat` | `org.dxos.mdl.feat@1.0` |
21
+ | `op` | `org.dxos.mdl.op@1.0` |
22
+
23
+ ## Types
24
+
25
+ ```mdl
26
+ type Channel
27
+ desc: |
28
+ A chat channel. Defined in @dxos/types. Carries an optional `feed` Ref whose
29
+ queue holds the channel's Message objects in order.
30
+ ```
31
+
32
+ ## Operations
33
+
34
+ ```mdl
35
+ op OnCreateSpace
36
+ key: org.dxos.plugin.thread.operation.onCreateSpace
37
+ desc: On space creation, create a default "General" channel in the root collection.
38
+ ```
39
+
40
+ ```mdl
41
+ op CreateChannel
42
+ key: org.dxos.plugin.thread.operation.createChannel
43
+ desc: Create a new Channel in the given space.
44
+ in:
45
+ spaceId: SpaceId
46
+ name?: String
47
+ out:
48
+ object: Channel
49
+ ```
50
+
51
+ ```mdl
52
+ op AppendChannelMessage
53
+ key: org.dxos.plugin.thread.operation.appendChannelMessage
54
+ desc: Append a Message authored by `sender` to the channel's feed.
55
+ in:
56
+ channel: Channel
57
+ sender: Actor
58
+ text: String
59
+ ```
60
+
61
+ ## Features
62
+
63
+ ```mdl
64
+ feat F-1: Channel chat
65
+ req F-1.1: A Channel article MUST render its feed messages newest-last with a
66
+ pinned composer; sending invokes AppendChannelMessage.
67
+ req F-1.2: Externally-synced channels (those carrying foreign-key Obj.Meta) MUST
68
+ render read-only — the composer is suppressed.
69
+ ```
70
+
71
+ ```mdl
72
+ feat F-2: Thread chat
73
+ req F-2.1: A Thread article MUST render the thread's messages and append new
74
+ messages by pushing onto `thread.messages`.
75
+ ```
package/README.md CHANGED
@@ -12,4 +12,4 @@ Surface plugin for thread entities.
12
12
 
13
13
  Your ideas, issues, and code are most welcome. Please take a look at our [community code of conduct](https://github.com/dxos/dxos/blob/main/CODE_OF_CONDUCT.md), the [issue guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-issues), and the [PR contribution guide](https://github.com/dxos/dxos/blob/main/CONTRIBUTING.md#submitting-prs).
14
14
 
15
- License: [MIT](./LICENSE) Copyright 2023 © DXOS
15
+ License: [FSL-1.1-Apache-2.0](./LICENSE) Copyright 2023 © DXOS
@@ -0,0 +1,57 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/containers/ChannelArticle/ChannelArticle.tsx
4
+ import React from "react";
5
+ import { useCapabilities, useOperationInvoker } from "@dxos/app-framework/ui";
6
+ import { Obj } from "@dxos/echo";
7
+ import { getSpace, useMembers } from "@dxos/react-client/echo";
8
+ import { useIdentity } from "@dxos/react-client/halo";
9
+ import { Panel } from "@dxos/react-ui";
10
+ import { Chat } from "#components";
11
+ import { useMessages, useStatus } from "#hooks";
12
+ import { ThreadCapabilities, ThreadOperation, resolveProvider } from "#types";
13
+ var ChannelArticle = ({ subject: channel }) => {
14
+ const identity = useIdentity();
15
+ const space = channel ? getSpace(channel) : void 0;
16
+ const members = useMembers(space?.id);
17
+ const id = channel ? Obj.getURI(channel) : void 0;
18
+ const activity = useStatus(space, id);
19
+ const { invokePromise } = useOperationInvoker();
20
+ const providers = useCapabilities(ThreadCapabilities.ChannelBackend);
21
+ const provider = channel ? resolveProvider(providers, channel.backend.kind) : void 0;
22
+ const messages = useMessages(channel);
23
+ const readOnly = channel ? provider?.readOnly?.(channel) ?? Obj.getMeta(channel).keys.length > 0 : false;
24
+ const handleSend = (text) => {
25
+ if (!channel || !identity || readOnly) {
26
+ return false;
27
+ }
28
+ void invokePromise(ThreadOperation.AppendChannelMessage, {
29
+ channel,
30
+ sender: {
31
+ identityDid: identity.did
32
+ },
33
+ text
34
+ });
35
+ return true;
36
+ };
37
+ if (!space || !channel || !id) {
38
+ return null;
39
+ }
40
+ return /* @__PURE__ */ React.createElement(Panel.Root, {
41
+ classNames: "dx-document"
42
+ }, /* @__PURE__ */ React.createElement(Panel.Content, {
43
+ asChild: true
44
+ }, /* @__PURE__ */ React.createElement(Chat, {
45
+ id,
46
+ identity: identity ?? void 0,
47
+ members,
48
+ messages,
49
+ activity,
50
+ onSend: handleSend,
51
+ readOnly
52
+ })));
53
+ };
54
+ export {
55
+ ChannelArticle as default
56
+ };
57
+ //# sourceMappingURL=ChannelArticle-H633OM3U.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/containers/ChannelArticle/ChannelArticle.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { useCapabilities, useOperationInvoker } from '@dxos/app-framework/ui';\nimport { type AppSurface } from '@dxos/app-toolkit/ui';\nimport { Obj } from '@dxos/echo';\nimport { getSpace, useMembers } from '@dxos/react-client/echo';\nimport { useIdentity } from '@dxos/react-client/halo';\nimport { Panel } from '@dxos/react-ui';\nimport { type Channel } from '@dxos/types';\n\nimport { Chat } from '#components';\nimport { useMessages, useStatus } from '#hooks';\nimport { ThreadCapabilities, ThreadOperation, resolveProvider } from '#types';\n\nexport type ChannelArticleProps = AppSurface.ObjectArticleProps<\n Channel.Channel | undefined,\n {\n roomId?: string;\n fullscreen?: boolean;\n }\n>;\n\n/**\n * Channel article: renders the channel chat inside a document panel. Messages\n * are read and written through the channel's backend provider (resolved by\n * `channel.backend.kind`), so the container is agnostic to where messages are\n * stored. Read-only state defaults to the provider's policy, or to \"channel\n * carries foreign-key `Obj.Meta`\" when the provider has none.\n *\n * The \"Start video call\" action and the in-call surface are contributed by\n * plugin-calls — this container is call-agnostic.\n */\nexport const ChannelArticle = ({ subject: channel }: ChannelArticleProps) => {\n const identity = useIdentity();\n const space = channel ? getSpace(channel) : undefined;\n const members = useMembers(space?.id);\n const id = channel ? Obj.getURI(channel) : undefined;\n const activity = useStatus(space, id);\n const { invokePromise } = useOperationInvoker();\n\n const providers = useCapabilities(ThreadCapabilities.ChannelBackend);\n const provider = channel ? resolveProvider(providers, channel.backend.kind) : undefined;\n const messages = useMessages(channel);\n const readOnly = channel ? (provider?.readOnly?.(channel) ?? Obj.getMeta(channel).keys.length > 0) : false;\n\n const handleSend = (text: string) => {\n if (!channel || !identity || readOnly) {\n return false;\n }\n\n void invokePromise(ThreadOperation.AppendChannelMessage, {\n channel,\n sender: { identityDid: identity.did },\n text,\n });\n\n return true;\n };\n\n if (!space || !channel || !id) {\n return null;\n }\n\n return (\n <Panel.Root classNames='dx-document'>\n <Panel.Content asChild>\n <Chat\n id={id}\n identity={identity ?? undefined}\n members={members}\n messages={messages}\n activity={activity}\n onSend={handleSend}\n readOnly={readOnly}\n />\n </Panel.Content>\n </Panel.Root>\n );\n};\n"],
5
+ "mappings": ";;;AAIA,OAAOA,WAAW;AAElB,SAASC,iBAAiBC,2BAA2B;AAErD,SAASC,WAAW;AACpB,SAASC,UAAUC,kBAAkB;AACrC,SAASC,mBAAmB;AAC5B,SAASC,aAAa;AAGtB,SAASC,YAAY;AACrB,SAASC,aAAaC,iBAAiB;AACvC,SAASC,oBAAoBC,iBAAiBC,uBAAuB;AAoB9D,IAAMC,iBAAiB,CAAC,EAAEC,SAASC,QAAO,MAAuB;AACtE,QAAMC,WAAWX,YAAAA;AACjB,QAAMY,QAAQF,UAAUZ,SAASY,OAAAA,IAAWG;AAC5C,QAAMC,UAAUf,WAAWa,OAAOG,EAAAA;AAClC,QAAMA,KAAKL,UAAUb,IAAImB,OAAON,OAAAA,IAAWG;AAC3C,QAAMI,WAAWb,UAAUQ,OAAOG,EAAAA;AAClC,QAAM,EAAEG,cAAa,IAAKtB,oBAAAA;AAE1B,QAAMuB,YAAYxB,gBAAgBU,mBAAmBe,cAAc;AACnE,QAAMC,WAAWX,UAAUH,gBAAgBY,WAAWT,QAAQY,QAAQC,IAAI,IAAIV;AAC9E,QAAMW,WAAWrB,YAAYO,OAAAA;AAC7B,QAAMe,WAAWf,UAAWW,UAAUI,WAAWf,OAAAA,KAAYb,IAAI6B,QAAQhB,OAAAA,EAASiB,KAAKC,SAAS,IAAK;AAErG,QAAMC,aAAa,CAACC,SAAAA;AAClB,QAAI,CAACpB,WAAW,CAACC,YAAYc,UAAU;AACrC,aAAO;IACT;AAEA,SAAKP,cAAcZ,gBAAgByB,sBAAsB;MACvDrB;MACAsB,QAAQ;QAAEC,aAAatB,SAASuB;MAAI;MACpCJ;IACF,CAAA;AAEA,WAAO;EACT;AAEA,MAAI,CAAClB,SAAS,CAACF,WAAW,CAACK,IAAI;AAC7B,WAAO;EACT;AAEA,SACE,sBAAA,cAACd,MAAMkC,MAAI;IAACC,YAAW;KACrB,sBAAA,cAACnC,MAAMoC,SAAO;IAACC,SAAAA;KACb,sBAAA,cAACpC,MAAAA;IACCa;IACAJ,UAAUA,YAAYE;IACtBC;IACAU;IACAP;IACAsB,QAAQV;IACRJ;;AAKV;",
6
+ "names": ["React", "useCapabilities", "useOperationInvoker", "Obj", "getSpace", "useMembers", "useIdentity", "Panel", "Chat", "useMessages", "useStatus", "ThreadCapabilities", "ThreadOperation", "resolveProvider", "ChannelArticle", "subject", "channel", "identity", "space", "undefined", "members", "id", "getURI", "activity", "invokePromise", "providers", "ChannelBackend", "provider", "backend", "kind", "messages", "readOnly", "getMeta", "keys", "length", "handleSend", "text", "AppendChannelMessage", "sender", "identityDid", "did", "Root", "classNames", "Content", "asChild", "onSend"]
7
+ }
@@ -0,0 +1,38 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/containers/ChannelCreatePanel/ChannelCreatePanel.tsx
4
+ import React, { useCallback, useMemo } from "react";
5
+ import { useCapabilities } from "@dxos/app-framework/ui";
6
+ import { Obj } from "@dxos/echo";
7
+ import { Column } from "@dxos/react-ui";
8
+ import { Form } from "@dxos/react-ui-form";
9
+ import { ThreadCapabilities, buildChannelFormSchema } from "#types";
10
+ var ChannelCreatePanel = ({ target, onCreateObject }) => {
11
+ const providers = useCapabilities(ThreadCapabilities.ChannelBackend);
12
+ const schema = useMemo(() => buildChannelFormSchema(providers), [
13
+ providers
14
+ ]);
15
+ const handleSave = useCallback((values) => {
16
+ const { name, backend } = values;
17
+ const { kind, ...options } = backend ?? {};
18
+ void onCreateObject({
19
+ name,
20
+ kind,
21
+ options
22
+ });
23
+ }, [
24
+ onCreateObject
25
+ ]);
26
+ return /* @__PURE__ */ React.createElement(Form.Root, {
27
+ autoFocus: true,
28
+ db: Obj.isObject(target) ? Obj.getDatabase(target) : target,
29
+ schema,
30
+ defaultValues: {},
31
+ onSave: handleSave,
32
+ testId: "create-channel-form"
33
+ }, /* @__PURE__ */ React.createElement(Column.Center, null, /* @__PURE__ */ React.createElement(Form.Content, null, /* @__PURE__ */ React.createElement(Form.FieldSet, null), /* @__PURE__ */ React.createElement(Form.Submit, null))));
34
+ };
35
+ export {
36
+ ChannelCreatePanel as default
37
+ };
38
+ //# sourceMappingURL=ChannelCreatePanel-NUXXKHZQ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/containers/ChannelCreatePanel/ChannelCreatePanel.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport React, { useCallback, useMemo } from 'react';\n\nimport { useCapabilities } from '@dxos/app-framework/ui';\nimport { Obj } from '@dxos/echo';\nimport { type SpaceCapabilities } from '@dxos/plugin-space';\nimport { Column } from '@dxos/react-ui';\nimport { Form } from '@dxos/react-ui-form';\n\nimport { ThreadCapabilities, buildChannelFormSchema } from '#types';\n\n/**\n * Provider-driven create panel for channels. Reads the registered\n * `ChannelBackend` providers and renders a react-ui-form whose schema is the\n * assembled `{ name?, backend: Union(...) }` — a backend selector plus the\n * selected provider's create fields (just a name field when there is a single\n * field-less provider).\n */\nexport const ChannelCreatePanel = ({ target, onCreateObject }: SpaceCapabilities.CreateObjectCustomPanelProps) => {\n const providers = useCapabilities(ThreadCapabilities.ChannelBackend);\n const schema = useMemo(() => buildChannelFormSchema(providers), [providers]);\n\n const handleSave = useCallback(\n (values: { name?: string; backend?: { kind: string } & Record<string, unknown> }) => {\n const { name, backend } = values;\n const { kind, ...options } = backend ?? {};\n void onCreateObject({ name, kind, options });\n },\n [onCreateObject],\n );\n\n return (\n <Form.Root\n autoFocus\n db={Obj.isObject(target) ? Obj.getDatabase(target) : target}\n schema={schema}\n defaultValues={{}}\n onSave={handleSave}\n testId='create-channel-form'\n >\n <Column.Center>\n <Form.Content>\n <Form.FieldSet />\n <Form.Submit />\n </Form.Content>\n </Column.Center>\n </Form.Root>\n );\n};\n"],
5
+ "mappings": ";;;AAIA,OAAOA,SAASC,aAAaC,eAAe;AAE5C,SAASC,uBAAuB;AAChC,SAASC,WAAW;AAEpB,SAASC,cAAc;AACvB,SAASC,YAAY;AAErB,SAASC,oBAAoBC,8BAA8B;AASpD,IAAMC,qBAAqB,CAAC,EAAEC,QAAQC,eAAc,MAAkD;AAC3G,QAAMC,YAAYT,gBAAgBI,mBAAmBM,cAAc;AACnE,QAAMC,SAASZ,QAAQ,MAAMM,uBAAuBI,SAAAA,GAAY;IAACA;GAAU;AAE3E,QAAMG,aAAad,YACjB,CAACe,WAAAA;AACC,UAAM,EAAEC,MAAMC,QAAO,IAAKF;AAC1B,UAAM,EAAEG,MAAM,GAAGC,QAAAA,IAAYF,WAAW,CAAC;AACzC,SAAKP,eAAe;MAAEM;MAAME;MAAMC;IAAQ,CAAA;EAC5C,GACA;IAACT;GAAe;AAGlB,SACE,sBAAA,cAACL,KAAKe,MAAI;IACRC,WAAAA;IACAC,IAAInB,IAAIoB,SAASd,MAAAA,IAAUN,IAAIqB,YAAYf,MAAAA,IAAUA;IACrDI;IACAY,eAAe,CAAC;IAChBC,QAAQZ;IACRa,QAAO;KAEP,sBAAA,cAACvB,OAAOwB,QAAM,MACZ,sBAAA,cAACvB,KAAKwB,SAAO,MACX,sBAAA,cAACxB,KAAKyB,UAAQ,IAAA,GACd,sBAAA,cAACzB,KAAK0B,QAAM,IAAA,CAAA,CAAA,CAAA;AAKtB;",
6
+ "names": ["React", "useCallback", "useMemo", "useCapabilities", "Obj", "Column", "Form", "ThreadCapabilities", "buildChannelFormSchema", "ChannelCreatePanel", "target", "onCreateObject", "providers", "ChannelBackend", "schema", "handleSave", "values", "name", "backend", "kind", "options", "Root", "autoFocus", "db", "isObject", "getDatabase", "defaultValues", "onSave", "testId", "Center", "Content", "FieldSet", "Submit"]
7
+ }
@@ -0,0 +1,57 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/containers/ThreadArticle/ThreadArticle.tsx
4
+ import React, { useMemo } from "react";
5
+ import { Obj, Ref } from "@dxos/echo";
6
+ import { useMembers } from "@dxos/react-client/echo";
7
+ import { useIdentity } from "@dxos/react-client/halo";
8
+ import { composable, composableProps } from "@dxos/react-ui";
9
+ import { Message } from "@dxos/types";
10
+ import { isNonNullable } from "@dxos/util";
11
+ import { Chat } from "#components";
12
+ import { useStatus } from "#hooks";
13
+ var ThreadArticle = composable(({ space, thread, context, autoFocus, current, ...props }, forwardedRef) => {
14
+ const id = Obj.getURI(thread);
15
+ const identity = useIdentity();
16
+ const members = useMembers(space?.id);
17
+ const activity = useStatus(space, id);
18
+ const messages = useMemo(() => thread.messages.map((message) => message.target).filter(isNonNullable), [
19
+ thread.messages
20
+ ]);
21
+ const handleSend = (text) => {
22
+ Obj.update(thread, (thread2) => {
23
+ thread2.messages.push(Ref.make(Obj.make(Message.Message, {
24
+ created: (/* @__PURE__ */ new Date()).toISOString(),
25
+ sender: {
26
+ identityDid: identity.did
27
+ },
28
+ blocks: [
29
+ {
30
+ _tag: "text",
31
+ text
32
+ }
33
+ ],
34
+ properties: context ? {
35
+ context: Ref.make(context)
36
+ } : void 0
37
+ })));
38
+ });
39
+ return true;
40
+ };
41
+ return /* @__PURE__ */ React.createElement(Chat, {
42
+ ...composableProps(props),
43
+ id,
44
+ identity,
45
+ members,
46
+ messages,
47
+ activity,
48
+ onSend: handleSend,
49
+ autoFocus,
50
+ current,
51
+ ref: forwardedRef
52
+ });
53
+ });
54
+ export {
55
+ ThreadArticle as default
56
+ };
57
+ //# sourceMappingURL=ThreadArticle-ROQXQLEZ.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/containers/ThreadArticle/ThreadArticle.tsx"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useMemo } from 'react';\n\nimport { Obj, Ref } from '@dxos/echo';\nimport { type Space, useMembers } from '@dxos/react-client/echo';\nimport { useIdentity } from '@dxos/react-client/halo';\nimport { type ThemedClassName } from '@dxos/react-ui';\nimport { composable, composableProps } from '@dxos/react-ui';\nimport { type ThreadContentProps } from '@dxos/react-ui-thread';\nimport { Message, type Thread } from '@dxos/types';\nimport { isNonNullable } from '@dxos/util';\n\nimport { Chat } from '#components';\nimport { useStatus } from '#hooks';\n\nexport type ThreadArticleProps = ThemedClassName<\n {\n space: Space;\n thread: Thread.Thread;\n context?: Obj.Unknown;\n autoFocus?: boolean;\n } & Pick<ThreadContentProps, 'current'>\n>;\n\n/**\n * Renders an AutoMerge {@link Thread} as a chat: appends new messages by pushing\n * onto `thread.messages`. Used for comment threads and the meeting in-call chat.\n */\nexport const ThreadArticle = composable<HTMLDivElement, ThreadArticleProps>(\n ({ space, thread, context, autoFocus, current, ...props }, forwardedRef) => {\n const id = Obj.getURI(thread);\n const identity = useIdentity()!;\n const members = useMembers(space?.id);\n const activity = useStatus(space, id);\n\n const messages = useMemo(\n () => thread.messages.map((message) => message.target).filter(isNonNullable),\n [thread.messages],\n );\n\n const handleSend = (text: string) => {\n Obj.update(thread, (thread) => {\n thread.messages.push(\n Ref.make(\n Obj.make(Message.Message, {\n created: new Date().toISOString(),\n sender: { identityDid: identity.did },\n blocks: [{ _tag: 'text', text }],\n properties: context ? { context: Ref.make(context) } : undefined,\n }),\n ),\n );\n });\n return true;\n };\n\n return (\n <Chat\n {...composableProps(props)}\n id={id}\n identity={identity}\n members={members}\n messages={messages}\n activity={activity}\n onSend={handleSend}\n autoFocus={autoFocus}\n current={current}\n ref={forwardedRef}\n />\n );\n },\n);\n"],
5
+ "mappings": ";;;AAIA,OAAOA,SAASC,eAAe;AAE/B,SAASC,KAAKC,WAAW;AACzB,SAAqBC,kBAAkB;AACvC,SAASC,mBAAmB;AAE5B,SAASC,YAAYC,uBAAuB;AAE5C,SAASC,eAA4B;AACrC,SAASC,qBAAqB;AAE9B,SAASC,YAAY;AACrB,SAASC,iBAAiB;AAenB,IAAMC,gBAAgBN,WAC3B,CAAC,EAAEO,OAAOC,QAAQC,SAASC,WAAWC,SAAS,GAAGC,MAAAA,GAASC,iBAAAA;AACzD,QAAMC,KAAKlB,IAAImB,OAAOP,MAAAA;AACtB,QAAMQ,WAAWjB,YAAAA;AACjB,QAAMkB,UAAUnB,WAAWS,OAAOO,EAAAA;AAClC,QAAMI,WAAWb,UAAUE,OAAOO,EAAAA;AAElC,QAAMK,WAAWxB,QACf,MAAMa,OAAOW,SAASC,IAAI,CAACC,YAAYA,QAAQC,MAAM,EAAEC,OAAOpB,aAAAA,GAC9D;IAACK,OAAOW;GAAS;AAGnB,QAAMK,aAAa,CAACC,SAAAA;AAClB7B,QAAI8B,OAAOlB,QAAQ,CAACA,YAAAA;AAClBA,MAAAA,QAAOW,SAASQ,KACd9B,IAAI+B,KACFhC,IAAIgC,KAAK1B,QAAQA,SAAS;QACxB2B,UAAS,oBAAIC,KAAAA,GAAOC,YAAW;QAC/BC,QAAQ;UAAEC,aAAajB,SAASkB;QAAI;QACpCC,QAAQ;UAAC;YAAEC,MAAM;YAAQX;UAAK;;QAC9BY,YAAY5B,UAAU;UAAEA,SAASZ,IAAI+B,KAAKnB,OAAAA;QAAS,IAAI6B;MACzD,CAAA,CAAA,CAAA;IAGN,CAAA;AACA,WAAO;EACT;AAEA,SACE,sBAAA,cAAClC,MAAAA;IACE,GAAGH,gBAAgBW,KAAAA;IACpBE;IACAE;IACAC;IACAE;IACAD;IACAqB,QAAQf;IACRd;IACAC;IACA6B,KAAK3B;;AAGX,CAAA;",
6
+ "names": ["React", "useMemo", "Obj", "Ref", "useMembers", "useIdentity", "composable", "composableProps", "Message", "isNonNullable", "Chat", "useStatus", "ThreadArticle", "space", "thread", "context", "autoFocus", "current", "props", "forwardedRef", "id", "getURI", "identity", "members", "activity", "messages", "map", "message", "target", "filter", "handleSend", "text", "update", "push", "make", "created", "Date", "toISOString", "sender", "identityDid", "did", "blocks", "_tag", "properties", "undefined", "onSend", "ref"]
7
+ }
@@ -0,0 +1,67 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/ThreadPlugin.tsx
4
+ import { ActivationEvents, Plugin } from "@dxos/app-framework";
5
+ import { AppPlugin } from "@dxos/app-toolkit";
6
+ import { translations as threadTranslations } from "@dxos/react-ui-thread/translations";
7
+ import { Channel, Message, Thread } from "@dxos/types";
8
+ import { AppGraphBuilder, ChannelBackendFeed, CreateObject, NavigationResolver, OperationHandler, ReactSurface } from "#capabilities";
9
+ import { meta } from "#meta";
10
+ import { translations } from "#translations";
11
+
12
+ // raw-loader:/__w/dxos/dxos/packages/plugins/plugin-thread/PLUGIN.mdl?raw
13
+ var PLUGIN_default = "---\nid: org.dxos.plugin.thread\nname: ThreadPlugin\nversion: 0.1.0\n---\n\nThreadPlugin provides chat: channels backed by an ECHO feed and free-standing message threads.\nIt renders the channel article + companion surfaces and a thread surface, and contributes the\noperations that create a channel and append messages. Shared message/thread UI comes from\n`@dxos/react-ui-thread`, and the `Channel`/`Message`/`Thread` schema comes from `@dxos/types`.\nDocument comments and the comment-thread AI agent live in `@dxos/plugin-comments`.\n\n## Extensions\n\nThe following extension dialects are used in this document.\n\n| Term | URI |\n|-------------|--------------------------------|\n| `type` | `org.dxos.mdl.type@1.0` |\n| `feat` | `org.dxos.mdl.feat@1.0` |\n| `op` | `org.dxos.mdl.op@1.0` |\n\n## Types\n\n```mdl\ntype Channel\n desc: |\n A chat channel. Defined in @dxos/types. Carries an optional `feed` Ref whose\n queue holds the channel's Message objects in order.\n```\n\n## Operations\n\n```mdl\nop OnCreateSpace\n key: org.dxos.plugin.thread.operation.onCreateSpace\n desc: On space creation, create a default \"General\" channel in the root collection.\n```\n\n```mdl\nop CreateChannel\n key: org.dxos.plugin.thread.operation.createChannel\n desc: Create a new Channel in the given space.\n in:\n spaceId: SpaceId\n name?: String\n out:\n object: Channel\n```\n\n```mdl\nop AppendChannelMessage\n key: org.dxos.plugin.thread.operation.appendChannelMessage\n desc: Append a Message authored by `sender` to the channel's feed.\n in:\n channel: Channel\n sender: Actor\n text: String\n```\n\n## Features\n\n```mdl\nfeat F-1: Channel chat\n req F-1.1: A Channel article MUST render its feed messages newest-last with a\n pinned composer; sending invokes AppendChannelMessage.\n req F-1.2: Externally-synced channels (those carrying foreign-key Obj.Meta) MUST\n render read-only \u2014 the composer is suppressed.\n```\n\n```mdl\nfeat F-2: Thread chat\n req F-2.1: A Thread article MUST render the thread's messages and append new\n messages by pushing onto `thread.messages`.\n```\n";
14
+
15
+ // src/ThreadPlugin.tsx
16
+ var ThreadPlugin = Plugin.define(meta).pipe(
17
+ AppPlugin.addAppGraphModule({
18
+ activate: AppGraphBuilder
19
+ }),
20
+ AppPlugin.addNavigationResolverModule({
21
+ activate: NavigationResolver
22
+ }),
23
+ AppPlugin.addCreateObjectModule({
24
+ activate: CreateObject
25
+ }),
26
+ AppPlugin.addOperationHandlerModule({
27
+ activate: OperationHandler
28
+ }),
29
+ AppPlugin.addSchemaModule({
30
+ schema: [
31
+ Channel.Channel,
32
+ Message.Message,
33
+ Thread.Thread
34
+ ]
35
+ }),
36
+ AppPlugin.addSurfaceModule({
37
+ activate: ReactSurface
38
+ }),
39
+ AppPlugin.addTranslationsModule({
40
+ translations: [
41
+ ...translations,
42
+ ...threadTranslations
43
+ ]
44
+ }),
45
+ // Default local-feed channel backend. Other plugins contribute additional
46
+ // `ChannelBackend` providers (e.g. ATProto) earlier in plugin order.
47
+ Plugin.addModule({
48
+ id: "channel-backend-feed",
49
+ activatesOn: ActivationEvents.Startup,
50
+ activate: ChannelBackendFeed
51
+ }),
52
+ AppPlugin.addPluginAssetModule({
53
+ asset: {
54
+ pluginId: meta.id,
55
+ path: "PLUGIN.mdl",
56
+ content: PLUGIN_default,
57
+ mimeType: "application/x-mdl"
58
+ }
59
+ }),
60
+ Plugin.make
61
+ );
62
+ var ThreadPlugin_default = ThreadPlugin;
63
+ export {
64
+ ThreadPlugin,
65
+ ThreadPlugin_default as default
66
+ };
67
+ //# sourceMappingURL=ThreadPlugin.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/ThreadPlugin.tsx", "raw-loader:/__w/dxos/dxos/packages/plugins/plugin-thread/PLUGIN.mdl?raw"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { ActivationEvents, Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { translations as threadTranslations } from '@dxos/react-ui-thread/translations';\nimport { Channel, Message, Thread } from '@dxos/types';\n\nimport {\n AppGraphBuilder,\n ChannelBackendFeed,\n CreateObject,\n NavigationResolver,\n OperationHandler,\n ReactSurface,\n} from '#capabilities';\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\n// eslint-disable-next-line import/no-relative-packages\nimport pluginSpec from '../PLUGIN.mdl?raw';\n\n// TODO(wittjosiah): Rename to ChatPlugin.\n\nexport const ThreadPlugin = Plugin.define(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addNavigationResolverModule({ activate: NavigationResolver }),\n AppPlugin.addCreateObjectModule({ activate: CreateObject }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addSchemaModule({\n schema: [Channel.Channel, Message.Message, Thread.Thread],\n }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations: [...translations, ...threadTranslations] }),\n // Default local-feed channel backend. Other plugins contribute additional\n // `ChannelBackend` providers (e.g. ATProto) earlier in plugin order.\n Plugin.addModule({\n id: 'channel-backend-feed',\n activatesOn: ActivationEvents.Startup,\n activate: ChannelBackendFeed,\n }),\n AppPlugin.addPluginAssetModule({\n asset: { pluginId: meta.id, path: 'PLUGIN.mdl', content: pluginSpec, mimeType: 'application/x-mdl' },\n }),\n Plugin.make,\n);\n\nexport default ThreadPlugin;\n", "---\nid: org.dxos.plugin.thread\nname: ThreadPlugin\nversion: 0.1.0\n---\n\nThreadPlugin provides chat: channels backed by an ECHO feed and free-standing message threads.\nIt renders the channel article + companion surfaces and a thread surface, and contributes the\noperations that create a channel and append messages. Shared message/thread UI comes from\n`@dxos/react-ui-thread`, and the `Channel`/`Message`/`Thread` schema comes from `@dxos/types`.\nDocument comments and the comment-thread AI agent live in `@dxos/plugin-comments`.\n\n## Extensions\n\nThe following extension dialects are used in this document.\n\n| Term | URI |\n|-------------|--------------------------------|\n| `type` | `org.dxos.mdl.type@1.0` |\n| `feat` | `org.dxos.mdl.feat@1.0` |\n| `op` | `org.dxos.mdl.op@1.0` |\n\n## Types\n\n```mdl\ntype Channel\n desc: |\n A chat channel. Defined in @dxos/types. Carries an optional `feed` Ref whose\n queue holds the channel's Message objects in order.\n```\n\n## Operations\n\n```mdl\nop OnCreateSpace\n key: org.dxos.plugin.thread.operation.onCreateSpace\n desc: On space creation, create a default \"General\" channel in the root collection.\n```\n\n```mdl\nop CreateChannel\n key: org.dxos.plugin.thread.operation.createChannel\n desc: Create a new Channel in the given space.\n in:\n spaceId: SpaceId\n name?: String\n out:\n object: Channel\n```\n\n```mdl\nop AppendChannelMessage\n key: org.dxos.plugin.thread.operation.appendChannelMessage\n desc: Append a Message authored by `sender` to the channel's feed.\n in:\n channel: Channel\n sender: Actor\n text: String\n```\n\n## Features\n\n```mdl\nfeat F-1: Channel chat\n req F-1.1: A Channel article MUST render its feed messages newest-last with a\n pinned composer; sending invokes AppendChannelMessage.\n req F-1.2: Externally-synced channels (those carrying foreign-key Obj.Meta) MUST\n render read-only \u2014 the composer is suppressed.\n```\n\n```mdl\nfeat F-2: Thread chat\n req F-2.1: A Thread article MUST render the thread's messages and append new\n messages by pushing onto `thread.messages`.\n```\n"],
5
+ "mappings": ";;;AAIA,SAASA,kBAAkBC,cAAc;AACzC,SAASC,iBAAiB;AAC1B,SAASC,gBAAgBC,0BAA0B;AACnD,SAASC,SAASC,SAASC,cAAc;AAEzC,SACEC,iBACAC,oBACAC,cACAC,oBACAC,kBACAC,oBACK;AACP,SAASC,YAAY;AACrB,SAASX,oBAAoB;;;AClB7B;;;ADyBO,IAAMY,eAAeC,OAAOC,OAAOC,IAAAA,EAAMC;EAC9CC,UAAUC,kBAAkB;IAAEC,UAAUC;EAAgB,CAAA;EACxDH,UAAUI,4BAA4B;IAAEF,UAAUG;EAAmB,CAAA;EACrEL,UAAUM,sBAAsB;IAAEJ,UAAUK;EAAa,CAAA;EACzDP,UAAUQ,0BAA0B;IAAEN,UAAUO;EAAiB,CAAA;EACjET,UAAUU,gBAAgB;IACxBC,QAAQ;MAACC,QAAQA;MAASC,QAAQA;MAASC,OAAOA;;EACpD,CAAA;EACAd,UAAUe,iBAAiB;IAAEb,UAAUc;EAAa,CAAA;EACpDhB,UAAUiB,sBAAsB;IAAEC,cAAc;SAAIA;SAAiBC;;EAAoB,CAAA;;;EAGzFvB,OAAOwB,UAAU;IACfC,IAAI;IACJC,aAAaC,iBAAiBC;IAC9BtB,UAAUuB;EACZ,CAAA;EACAzB,UAAU0B,qBAAqB;IAC7BC,OAAO;MAAEC,UAAU9B,KAAKuB;MAAIQ,MAAM;MAAcC,SAASC;MAAYC,UAAU;IAAoB;EACrG,CAAA;EACApC,OAAOqC;AAAI;AAGb,IAAA,uBAAetC;",
6
+ "names": ["ActivationEvents", "Plugin", "AppPlugin", "translations", "threadTranslations", "Channel", "Message", "Thread", "AppGraphBuilder", "ChannelBackendFeed", "CreateObject", "NavigationResolver", "OperationHandler", "ReactSurface", "meta", "ThreadPlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addAppGraphModule", "activate", "AppGraphBuilder", "addNavigationResolverModule", "NavigationResolver", "addCreateObjectModule", "CreateObject", "addOperationHandlerModule", "OperationHandler", "addSchemaModule", "schema", "Channel", "Message", "Thread", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations", "threadTranslations", "addModule", "id", "activatesOn", "ActivationEvents", "Startup", "ChannelBackendFeed", "addPluginAssetModule", "asset", "pluginId", "path", "content", "pluginSpec", "mimeType", "make"]
7
+ }
@@ -0,0 +1,29 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/ThreadPlugin.node.ts
4
+ import { ActivationEvents, Plugin } from "@dxos/app-framework";
5
+ import { AppPlugin } from "@dxos/app-toolkit";
6
+ import { Channel, Message, Thread } from "@dxos/types";
7
+ import { ChannelBackendFeed, CreateObject, OperationHandler } from "#capabilities";
8
+ import { meta } from "#meta";
9
+ var ThreadPlugin = Plugin.define(meta).pipe(AppPlugin.addCreateObjectModule({
10
+ activate: CreateObject
11
+ }), AppPlugin.addOperationHandlerModule({
12
+ activate: OperationHandler
13
+ }), AppPlugin.addSchemaModule({
14
+ schema: [
15
+ Channel.Channel,
16
+ Message.Message,
17
+ Thread.Thread
18
+ ]
19
+ }), Plugin.addModule({
20
+ id: "channel-backend-feed",
21
+ activatesOn: ActivationEvents.Startup,
22
+ activate: ChannelBackendFeed
23
+ }), Plugin.make);
24
+ var ThreadPlugin_node_default = ThreadPlugin;
25
+ export {
26
+ ThreadPlugin,
27
+ ThreadPlugin_node_default as default
28
+ };
29
+ //# sourceMappingURL=ThreadPlugin.node.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/ThreadPlugin.node.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { ActivationEvents, Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Channel, Message, Thread } from '@dxos/types';\n\nimport { ChannelBackendFeed, CreateObject, OperationHandler } from '#capabilities';\nimport { meta } from '#meta';\n\nexport const ThreadPlugin = Plugin.define(meta).pipe(\n AppPlugin.addCreateObjectModule({ activate: CreateObject }),\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addSchemaModule({\n schema: [Channel.Channel, Message.Message, Thread.Thread],\n }),\n Plugin.addModule({\n id: 'channel-backend-feed',\n activatesOn: ActivationEvents.Startup,\n activate: ChannelBackendFeed,\n }),\n Plugin.make,\n);\n\nexport default ThreadPlugin;\n"],
5
+ "mappings": ";;;AAIA,SAASA,kBAAkBC,cAAc;AACzC,SAASC,iBAAiB;AAC1B,SAASC,SAASC,SAASC,cAAc;AAEzC,SAASC,oBAAoBC,cAAcC,wBAAwB;AACnE,SAASC,YAAY;AAEd,IAAMC,eAAeT,OAAOU,OAAOF,IAAAA,EAAMG,KAC9CV,UAAUW,sBAAsB;EAAEC,UAAUP;AAAa,CAAA,GACzDL,UAAUa,0BAA0B;EAAED,UAAUN;AAAiB,CAAA,GACjEN,UAAUc,gBAAgB;EACxBC,QAAQ;IAACd,QAAQA;IAASC,QAAQA;IAASC,OAAOA;;AACpD,CAAA,GACAJ,OAAOiB,UAAU;EACfC,IAAI;EACJC,aAAapB,iBAAiBqB;EAC9BP,UAAUR;AACZ,CAAA,GACAL,OAAOqB,IAAI;AAGb,IAAA,4BAAeZ;",
6
+ "names": ["ActivationEvents", "Plugin", "AppPlugin", "Channel", "Message", "Thread", "ChannelBackendFeed", "CreateObject", "OperationHandler", "meta", "ThreadPlugin", "define", "pipe", "addCreateObjectModule", "activate", "addOperationHandlerModule", "addSchemaModule", "schema", "addModule", "id", "activatesOn", "Startup", "make"]
7
+ }
@@ -0,0 +1,27 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/ThreadPlugin.workerd.ts
4
+ import { ActivationEvents, Plugin } from "@dxos/app-framework";
5
+ import { AppPlugin } from "@dxos/app-toolkit";
6
+ import { Channel, Message, Thread } from "@dxos/types";
7
+ import { ChannelBackendFeed, OperationHandler } from "#capabilities";
8
+ import { meta } from "#meta";
9
+ var ThreadPlugin = Plugin.define(meta).pipe(AppPlugin.addOperationHandlerModule({
10
+ activate: OperationHandler
11
+ }), AppPlugin.addSchemaModule({
12
+ schema: [
13
+ Channel.Channel,
14
+ Message.Message,
15
+ Thread.Thread
16
+ ]
17
+ }), Plugin.addModule({
18
+ id: "channel-backend-feed",
19
+ activatesOn: ActivationEvents.Startup,
20
+ activate: ChannelBackendFeed
21
+ }), Plugin.make);
22
+ var ThreadPlugin_workerd_default = ThreadPlugin;
23
+ export {
24
+ ThreadPlugin,
25
+ ThreadPlugin_workerd_default as default
26
+ };
27
+ //# sourceMappingURL=ThreadPlugin.workerd.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/ThreadPlugin.workerd.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { ActivationEvents, Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Channel, Message, Thread } from '@dxos/types';\n\nimport { ChannelBackendFeed, OperationHandler } from '#capabilities';\nimport { meta } from '#meta';\n\nexport const ThreadPlugin = Plugin.define(meta).pipe(\n AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),\n AppPlugin.addSchemaModule({\n schema: [Channel.Channel, Message.Message, Thread.Thread],\n }),\n Plugin.addModule({\n id: 'channel-backend-feed',\n activatesOn: ActivationEvents.Startup,\n activate: ChannelBackendFeed,\n }),\n Plugin.make,\n);\n\nexport default ThreadPlugin;\n"],
5
+ "mappings": ";;;AAIA,SAASA,kBAAkBC,cAAc;AACzC,SAASC,iBAAiB;AAC1B,SAASC,SAASC,SAASC,cAAc;AAEzC,SAASC,oBAAoBC,wBAAwB;AACrD,SAASC,YAAY;AAEd,IAAMC,eAAeR,OAAOS,OAAOF,IAAAA,EAAMG,KAC9CT,UAAUU,0BAA0B;EAAEC,UAAUN;AAAiB,CAAA,GACjEL,UAAUY,gBAAgB;EACxBC,QAAQ;IAACZ,QAAQA;IAASC,QAAQA;IAASC,OAAOA;;AACpD,CAAA,GACAJ,OAAOe,UAAU;EACfC,IAAI;EACJC,aAAalB,iBAAiBmB;EAC9BN,UAAUP;AACZ,CAAA,GACAL,OAAOmB,IAAI;AAGb,IAAA,+BAAeX;",
6
+ "names": ["ActivationEvents", "Plugin", "AppPlugin", "Channel", "Message", "Thread", "ChannelBackendFeed", "OperationHandler", "meta", "ThreadPlugin", "define", "pipe", "addOperationHandlerModule", "activate", "addSchemaModule", "schema", "addModule", "id", "activatesOn", "Startup", "make"]
7
+ }
@@ -0,0 +1,50 @@
1
+ import "./chunk-J5LGTIGS.mjs";
2
+
3
+ // src/capabilities/app-graph-builder.ts
4
+ import * as Effect from "effect/Effect";
5
+ import * as Option from "effect/Option";
6
+ import { Capability } from "@dxos/app-framework";
7
+ import { AppCapabilities, createTypeSectionExtension } from "@dxos/app-toolkit";
8
+ import { isSpace } from "@dxos/client/echo";
9
+ import { Operation } from "@dxos/compute";
10
+ import { Type } from "@dxos/echo";
11
+ import { GraphBuilder, Node } from "@dxos/plugin-graph";
12
+ import { SpaceOperation } from "@dxos/plugin-space";
13
+ import { Channel } from "@dxos/types";
14
+ var channelTypename = Type.getTypename(Channel.Channel);
15
+ var app_graph_builder_default = Capability.makeModule(Effect.fnUntraced(function* () {
16
+ const extensions = yield* Effect.all([
17
+ createTypeSectionExtension(Channel.Channel),
18
+ GraphBuilder.createExtension({
19
+ id: "channelsSectionActions",
20
+ match: (node) => {
21
+ const space = isSpace(node.properties.space) ? node.properties.space : void 0;
22
+ return node.type === channelTypename && space ? Option.some(space) : Option.none();
23
+ },
24
+ actions: (space) => Effect.succeed([
25
+ Node.makeAction({
26
+ id: "create-channel",
27
+ data: () => Operation.invoke(SpaceOperation.OpenCreateObject, {
28
+ target: space.db,
29
+ typename: channelTypename
30
+ }),
31
+ properties: {
32
+ label: [
33
+ "add-object.label",
34
+ {
35
+ ns: channelTypename
36
+ }
37
+ ],
38
+ icon: "ph--plus--regular",
39
+ disposition: "list-item-primary"
40
+ }
41
+ })
42
+ ])
43
+ })
44
+ ]);
45
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
46
+ }));
47
+ export {
48
+ app_graph_builder_default as default
49
+ };
50
+ //# sourceMappingURL=app-graph-builder-OLKN3VTB.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/capabilities/app-graph-builder.ts"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities, createTypeSectionExtension } from '@dxos/app-toolkit';\nimport { isSpace } from '@dxos/client/echo';\nimport { Operation } from '@dxos/compute';\nimport { Type } from '@dxos/echo';\nimport { GraphBuilder, Node } from '@dxos/plugin-graph';\nimport { SpaceOperation } from '@dxos/plugin-space';\nimport { Channel } from '@dxos/types';\n\nconst channelTypename = Type.getTypename(Channel.Channel);\n\nexport default Capability.makeModule(\n Effect.fnUntraced(function* () {\n const extensions = yield* Effect.all([\n createTypeSectionExtension(Channel.Channel),\n\n GraphBuilder.createExtension({\n id: 'channelsSectionActions',\n match: (node) => {\n const space = isSpace(node.properties.space) ? node.properties.space : undefined;\n return node.type === channelTypename && space ? Option.some(space) : Option.none();\n },\n actions: (space) =>\n Effect.succeed([\n Node.makeAction({\n id: 'create-channel',\n data: () =>\n Operation.invoke(SpaceOperation.OpenCreateObject, {\n target: space.db,\n typename: channelTypename,\n }),\n properties: {\n label: ['add-object.label', { ns: channelTypename }],\n icon: 'ph--plus--regular',\n disposition: 'list-item-primary',\n },\n }),\n ]),\n }),\n ]);\n\n return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);\n }),\n);\n"],
5
+ "mappings": ";;;AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,iBAAiBC,kCAAkC;AAC5D,SAASC,eAAe;AACxB,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AACrB,SAASC,cAAcC,YAAY;AACnC,SAASC,sBAAsB;AAC/B,SAASC,eAAe;AAExB,IAAMC,kBAAkBL,KAAKM,YAAYF,QAAQA,OAAO;AAExD,IAAA,4BAAeT,WAAWY,WACjBC,kBAAW,aAAA;AAChB,QAAMC,aAAa,OAAcC,WAAI;IACnCb,2BAA2BO,QAAQA,OAAO;IAE1CH,aAAaU,gBAAgB;MAC3BC,IAAI;MACJC,OAAO,CAACC,SAAAA;AACN,cAAMC,QAAQjB,QAAQgB,KAAKE,WAAWD,KAAK,IAAID,KAAKE,WAAWD,QAAQE;AACvE,eAAOH,KAAKI,SAASb,mBAAmBU,QAAeI,YAAKJ,KAAAA,IAAgBK,YAAI;MAClF;MACAC,SAAS,CAACN,UACDO,eAAQ;QACbpB,KAAKqB,WAAW;UACdX,IAAI;UACJY,MAAM,MACJzB,UAAU0B,OAAOtB,eAAeuB,kBAAkB;YAChDC,QAAQZ,MAAMa;YACdC,UAAUxB;UACZ,CAAA;UACFW,YAAY;YACVc,OAAO;cAAC;cAAoB;gBAAEC,IAAI1B;cAAgB;;YAClD2B,MAAM;YACNC,aAAa;UACf;QACF,CAAA;OACD;IACL,CAAA;GACD;AAED,SAAOtC,WAAWuC,YAAYtC,gBAAgBuC,iBAAiB1B,UAAAA;AACjE,CAAA,CAAA;",
6
+ "names": ["Effect", "Option", "Capability", "AppCapabilities", "createTypeSectionExtension", "isSpace", "Operation", "Type", "GraphBuilder", "Node", "SpaceOperation", "Channel", "channelTypename", "getTypename", "makeModule", "fnUntraced", "extensions", "all", "createExtension", "id", "match", "node", "space", "properties", "undefined", "type", "some", "none", "actions", "succeed", "makeAction", "data", "invoke", "OpenCreateObject", "target", "db", "typename", "label", "ns", "icon", "disposition", "contributes", "AppGraphBuilder"]
7
+ }