@dxos/plugin-thread 0.8.4-main.1f223c7 → 0.8.4-main.2244d791bb
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.
- package/dist/lib/browser/app-graph-builder-XFGLMIGK.mjs +189 -0
- package/dist/lib/browser/app-graph-builder-XFGLMIGK.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-RWH6FTW7.mjs +17 -0
- package/dist/lib/browser/blueprint-definition-RWH6FTW7.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +8 -0
- package/dist/lib/browser/call-manager-GDGIKJKN.mjs +26 -0
- package/dist/lib/browser/call-manager-GDGIKJKN.mjs.map +7 -0
- package/dist/lib/browser/chunk-2FIHSX35.mjs +293 -0
- package/dist/lib/browser/chunk-2FIHSX35.mjs.map +7 -0
- package/dist/lib/browser/chunk-4EUEMHNI.mjs +1817 -0
- package/dist/lib/browser/chunk-4EUEMHNI.mjs.map +7 -0
- package/dist/lib/browser/chunk-CBX65FMW.mjs +105 -0
- package/dist/lib/browser/chunk-CBX65FMW.mjs.map +7 -0
- package/dist/lib/browser/{chunk-GERVMFQW.mjs → chunk-CP7E2HRE.mjs} +2 -2
- package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +7 -0
- package/dist/lib/browser/{chunk-ZCEU5K23.mjs → chunk-ERK254BS.mjs} +207 -287
- package/dist/lib/browser/chunk-ERK254BS.mjs.map +7 -0
- package/dist/lib/browser/{chunk-XYUJXHYV.mjs → chunk-ISCHODBV.mjs} +1 -1
- package/dist/lib/browser/{chunk-XYUJXHYV.mjs.map → chunk-ISCHODBV.mjs.map} +2 -2
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/{chunk-RI3Z6MK3.mjs → chunk-JBB73URQ.mjs} +79 -76
- package/dist/lib/browser/chunk-JBB73URQ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +147 -139
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/markdown-YJCSOWXX.mjs +210 -0
- package/dist/lib/browser/markdown-YJCSOWXX.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-PROCP5L4.mjs +441 -0
- package/dist/lib/browser/operation-resolver-PROCP5L4.mjs.map +7 -0
- package/dist/lib/browser/react-root-FHK2SVPU.mjs +25 -0
- package/dist/lib/browser/react-root-FHK2SVPU.mjs.map +7 -0
- package/dist/lib/browser/react-surface-7MQA6VSH.mjs +111 -0
- package/dist/lib/browser/react-surface-7MQA6VSH.mjs.map +7 -0
- package/dist/lib/browser/repair-6OZ75AUU.mjs +38 -0
- package/dist/lib/browser/repair-6OZ75AUU.mjs.map +7 -0
- package/dist/lib/browser/settings-TWKOTGSU.mjs +33 -0
- package/dist/lib/browser/settings-TWKOTGSU.mjs.map +7 -0
- package/dist/lib/browser/state-SJR2GL5G.mjs +24 -0
- package/dist/lib/browser/state-SJR2GL5G.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +10 -12
- package/dist/lib/node-esm/app-graph-builder-IN6VLJBO.mjs +190 -0
- package/dist/lib/node-esm/app-graph-builder-IN6VLJBO.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-QZ3GXYAN.mjs +18 -0
- package/dist/lib/node-esm/blueprint-definition-QZ3GXYAN.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +9 -0
- package/dist/lib/node-esm/call-manager-36UAAQCJ.mjs +27 -0
- package/dist/lib/node-esm/call-manager-36UAAQCJ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2UQ73JQJ.mjs +107 -0
- package/dist/lib/node-esm/chunk-2UQ73JQJ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-57XR3LEF.mjs → chunk-ABUFOZVX.mjs} +2 -2
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-JNPKMT7O.mjs → chunk-G7PZNN3Z.mjs} +79 -76
- package/dist/lib/node-esm/chunk-G7PZNN3Z.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/{chunk-TIPIOH2J.mjs → chunk-QP3KQOPQ.mjs} +207 -287
- package/dist/lib/node-esm/chunk-QP3KQOPQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-RBRWHRHE.mjs +1818 -0
- package/dist/lib/node-esm/chunk-RBRWHRHE.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs → chunk-VBI32FGI.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-2V3WSLUZ.mjs.map → chunk-VBI32FGI.mjs.map} +2 -2
- package/dist/lib/node-esm/chunk-WMWUXWAS.mjs +294 -0
- package/dist/lib/node-esm/chunk-WMWUXWAS.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +147 -139
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/markdown-6LRP3PAP.mjs +211 -0
- package/dist/lib/node-esm/markdown-6LRP3PAP.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-LPEPV5BF.mjs +442 -0
- package/dist/lib/node-esm/operation-resolver-LPEPV5BF.mjs.map +7 -0
- package/dist/lib/node-esm/react-root-P5P4VGQJ.mjs +26 -0
- package/dist/lib/node-esm/react-root-P5P4VGQJ.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-M7VI5XG2.mjs +112 -0
- package/dist/lib/node-esm/react-surface-M7VI5XG2.mjs.map +7 -0
- package/dist/lib/node-esm/repair-6777EPOM.mjs +39 -0
- package/dist/lib/node-esm/repair-6777EPOM.mjs.map +7 -0
- package/dist/lib/node-esm/settings-5O254B3Z.mjs +34 -0
- package/dist/lib/node-esm/settings-5O254B3Z.mjs.map +7 -0
- package/dist/lib/node-esm/state-5R3TZJQE.mjs +25 -0
- package/dist/lib/node-esm/state-5R3TZJQE.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +10 -12
- package/dist/types/src/ThreadPlugin.d.ts +2 -1
- package/dist/types/src/ThreadPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/thread-blueprint.d.ts.map +1 -0
- package/dist/types/src/calls/call-manager.d.ts +40 -30
- package/dist/types/src/calls/call-manager.d.ts.map +1 -1
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts +2 -2
- package/dist/types/src/calls/call-swarm-synchronizer.d.ts.map +1 -1
- package/dist/types/src/calls/media-manager.d.ts +1 -1
- package/dist/types/src/calls/media-manager.d.ts.map +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts +1 -1
- package/dist/types/src/calls/util/calls-service.d.ts.map +1 -1
- package/dist/types/src/calls/util/task-scheduling.d.ts +2 -2
- package/dist/types/src/calls/util/task-scheduling.d.ts.map +1 -1
- package/dist/types/src/calls-service.stories.d.ts +0 -1
- package/dist/types/src/calls-service.stories.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts +6 -0
- package/dist/types/src/capabilities/call-manager/call-manager.d.ts.map +1 -0
- package/dist/types/src/capabilities/call-manager/index.d.ts +3 -0
- package/dist/types/src/capabilities/call-manager/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +10 -16
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown/index.d.ts +3 -0
- package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/index.d.ts +6 -0
- package/dist/types/src/capabilities/react-root/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts +9 -0
- package/dist/types/src/capabilities/react-root/react-root.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/index.d.ts +3 -0
- package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
- package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +3 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +6 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +3 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +7 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/components/Call/Call.d.ts.map +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts +2 -2
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/CallDebugPanel.d.ts.map +1 -1
- package/dist/types/src/components/CallSidebar.d.ts.map +1 -1
- package/dist/types/src/components/ChannelContainer.d.ts +5 -6
- package/dist/types/src/components/ChannelContainer.d.ts.map +1 -1
- package/dist/types/src/components/ChannelContainer.stories.d.ts +78 -9
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/Chat.stories.d.ts +77 -6
- package/dist/types/src/components/Chat.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatContainer.d.ts +7 -6
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/Comments.stories.d.ts +5 -2
- package/dist/types/src/components/Comments.stories.d.ts.map +1 -1
- package/dist/types/src/components/CommentsContainer.d.ts +2 -2
- package/dist/types/src/components/CommentsContainer.d.ts.map +1 -1
- package/dist/types/src/components/CommentsThreadContainer.d.ts +8 -8
- package/dist/types/src/components/CommentsThreadContainer.d.ts.map +1 -1
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +3 -3
- package/dist/types/src/components/Media/VideoObject.d.ts.map +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +6 -4
- package/dist/types/src/components/Media/VideoObject.stories.d.ts.map +1 -1
- package/dist/types/src/components/MessageContainer.d.ts +4 -3
- package/dist/types/src/components/MessageContainer.d.ts.map +1 -1
- package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +6 -2
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +6 -2
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGridItem.d.ts.map +1 -1
- package/dist/types/src/components/ThreadCompanion.d.ts +5 -0
- package/dist/types/src/components/ThreadCompanion.d.ts.map +1 -0
- package/dist/types/src/components/ThreadSettings.d.ts +4 -2
- package/dist/types/src/components/ThreadSettings.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +3 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/components/testing.d.ts +3 -3
- package/dist/types/src/components/testing.d.ts.map +1 -1
- package/dist/types/src/extensions/threads.d.ts +7 -2
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- package/dist/types/src/functions/create-proposals.d.ts +13 -0
- package/dist/types/src/functions/create-proposals.d.ts.map +1 -0
- package/dist/types/src/functions/index.d.ts +14 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/hooks/analytics.d.ts +2 -3
- package/dist/types/src/hooks/analytics.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +2 -2
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts +1 -1
- package/dist/types/src/hooks/useVideoStreamTrack.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +3 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/testing/stories.d.ts +2 -1
- package/dist/types/src/testing/stories.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +76 -6
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Channel.d.ts +695 -0
- package/dist/types/src/types/Channel.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +23 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +3218 -445
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +90 -67
- package/src/ThreadPlugin.tsx +107 -135
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/thread-blueprint.ts +40 -0
- package/src/calls/call-manager.ts +76 -52
- package/src/calls/call-swarm-synchronizer.ts +2 -2
- package/src/calls/media-manager.ts +10 -7
- package/src/calls/util/calls-service.ts +1 -1
- package/src/calls/util/stub-media-streams.ts +2 -2
- package/src/calls/util/task-scheduling.ts +4 -4
- package/src/calls-service.stories.tsx +2 -5
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +202 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +17 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/call-manager/call-manager.ts +26 -0
- package/src/capabilities/call-manager/index.ts +7 -0
- package/src/capabilities/index.ts +10 -13
- package/src/capabilities/markdown/index.ts +7 -0
- package/src/capabilities/markdown/markdown.ts +83 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +400 -0
- package/src/capabilities/react-root/index.ts +7 -0
- package/src/capabilities/react-root/react-root.tsx +20 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +98 -0
- package/src/capabilities/repair/index.ts +7 -0
- package/src/capabilities/repair/repair.ts +51 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +34 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +22 -0
- package/src/components/Call/Call.tsx +8 -4
- package/src/components/Call/Toolbar.tsx +34 -25
- package/src/components/CallDebugPanel.tsx +12 -14
- package/src/components/CallSidebar.tsx +5 -3
- package/src/components/ChannelContainer.stories.tsx +16 -15
- package/src/components/ChannelContainer.tsx +39 -32
- package/src/components/Chat.stories.tsx +20 -24
- package/src/components/ChatContainer.tsx +46 -39
- package/src/components/Comments.stories.tsx +31 -34
- package/src/components/CommentsContainer.tsx +5 -7
- package/src/components/CommentsThreadContainer.tsx +39 -35
- package/src/components/Lobby/Lobby.tsx +9 -7
- package/src/components/Media/AudioStream.tsx +2 -2
- package/src/components/Media/VideoObject.stories.tsx +12 -7
- package/src/components/Media/VideoObject.tsx +2 -2
- package/src/components/MessageContainer.tsx +59 -28
- package/src/components/Participant/Participant.tsx +32 -19
- package/src/components/ResponsiveGrid/ResponsiveContainer.stories.tsx +3 -4
- package/src/components/ResponsiveGrid/ResponsiveContainer.tsx +3 -3
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +4 -5
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +6 -6
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +6 -3
- package/src/components/ThreadCompanion.tsx +194 -0
- package/src/components/ThreadSettings.tsx +11 -6
- package/src/components/command-extension.ts +2 -2
- package/src/components/index.ts +4 -7
- package/src/components/testing.ts +7 -9
- package/src/extensions/threads.ts +86 -42
- package/src/functions/create-proposals.ts +57 -0
- package/src/functions/index.ts +9 -0
- package/src/hooks/analytics.ts +21 -21
- package/src/hooks/index.ts +3 -2
- package/src/hooks/useVideoStreamTrack.tsx +1 -1
- package/src/index.ts +1 -1
- package/src/meta.ts +11 -7
- package/src/testing/stories.ts +18 -16
- package/src/translations.ts +6 -3
- package/src/types/Channel.ts +30 -0
- package/src/types/capabilities.ts +34 -0
- package/src/types/index.ts +2 -1
- package/src/types/types.ts +168 -89
- package/src/util.ts +1 -1
- package/dist/lib/browser/ChannelContainer-4PYFOIDK.mjs +0 -16
- package/dist/lib/browser/ChatContainer-EXNNREYB.mjs +0 -15
- package/dist/lib/browser/app-graph-builder-FHAOPO57.mjs +0 -171
- package/dist/lib/browser/app-graph-builder-FHAOPO57.mjs.map +0 -7
- package/dist/lib/browser/call-manager-RMPTWSTF.mjs +0 -24
- package/dist/lib/browser/call-manager-RMPTWSTF.mjs.map +0 -7
- package/dist/lib/browser/chunk-4APCDRSH.mjs +0 -18
- package/dist/lib/browser/chunk-4APCDRSH.mjs.map +0 -7
- package/dist/lib/browser/chunk-7W7QK5ZP.mjs +0 -986
- package/dist/lib/browser/chunk-7W7QK5ZP.mjs.map +0 -7
- package/dist/lib/browser/chunk-EV4JWI7L.mjs +0 -17
- package/dist/lib/browser/chunk-EV4JWI7L.mjs.map +0 -7
- package/dist/lib/browser/chunk-G4CNILRR.mjs +0 -23
- package/dist/lib/browser/chunk-G4CNILRR.mjs.map +0 -7
- package/dist/lib/browser/chunk-GERVMFQW.mjs.map +0 -7
- package/dist/lib/browser/chunk-KTWYVC5X.mjs +0 -147
- package/dist/lib/browser/chunk-KTWYVC5X.mjs.map +0 -7
- package/dist/lib/browser/chunk-PBMNFG3B.mjs +0 -376
- package/dist/lib/browser/chunk-PBMNFG3B.mjs.map +0 -7
- package/dist/lib/browser/chunk-RI3Z6MK3.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZCEU5K23.mjs.map +0 -7
- package/dist/lib/browser/chunk-ZH2WPTNP.mjs +0 -618
- package/dist/lib/browser/chunk-ZH2WPTNP.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-J7OCP2P6.mjs +0 -427
- package/dist/lib/browser/intent-resolver-J7OCP2P6.mjs.map +0 -7
- package/dist/lib/browser/markdown-Z677YORA.mjs +0 -169
- package/dist/lib/browser/markdown-Z677YORA.mjs.map +0 -7
- package/dist/lib/browser/react-root-XKOD4KRB.mjs +0 -28
- package/dist/lib/browser/react-root-XKOD4KRB.mjs.map +0 -7
- package/dist/lib/browser/react-surface-GVGZRBDK.mjs +0 -109
- package/dist/lib/browser/react-surface-GVGZRBDK.mjs.map +0 -7
- package/dist/lib/browser/settings-GRKEID73.mjs +0 -22
- package/dist/lib/browser/settings-GRKEID73.mjs.map +0 -7
- package/dist/lib/browser/state-2T4KDWBX.mjs +0 -34
- package/dist/lib/browser/state-2T4KDWBX.mjs.map +0 -7
- package/dist/lib/browser/toolkit-KUPIIFC6.mjs +0 -80
- package/dist/lib/browser/toolkit-KUPIIFC6.mjs.map +0 -7
- package/dist/lib/node-esm/ChannelContainer-KQQEZWUN.mjs +0 -17
- package/dist/lib/node-esm/ChatContainer-QVQKFBWA.mjs +0 -16
- package/dist/lib/node-esm/app-graph-builder-XEYWX5FC.mjs +0 -172
- package/dist/lib/node-esm/app-graph-builder-XEYWX5FC.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-QAREJFVX.mjs +0 -25
- package/dist/lib/node-esm/call-manager-QAREJFVX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4T45PCKP.mjs +0 -25
- package/dist/lib/node-esm/chunk-4T45PCKP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-57XR3LEF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DKCQCENK.mjs +0 -377
- package/dist/lib/node-esm/chunk-DKCQCENK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GRLRWTRU.mjs +0 -19
- package/dist/lib/node-esm/chunk-GRLRWTRU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JNPKMT7O.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LE2LIYGX.mjs +0 -619
- package/dist/lib/node-esm/chunk-LE2LIYGX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-P6E247RF.mjs +0 -148
- package/dist/lib/node-esm/chunk-P6E247RF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PYTVBN5J.mjs +0 -19
- package/dist/lib/node-esm/chunk-PYTVBN5J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SNKFZQST.mjs +0 -987
- package/dist/lib/node-esm/chunk-SNKFZQST.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TIPIOH2J.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-SR2LW4HF.mjs +0 -428
- package/dist/lib/node-esm/intent-resolver-SR2LW4HF.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-FL4IXLRP.mjs +0 -170
- package/dist/lib/node-esm/markdown-FL4IXLRP.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-4JWDRIQB.mjs +0 -29
- package/dist/lib/node-esm/react-root-4JWDRIQB.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-WLQUVRAX.mjs +0 -110
- package/dist/lib/node-esm/react-surface-WLQUVRAX.mjs.map +0 -7
- package/dist/lib/node-esm/settings-F2ODVNNW.mjs +0 -23
- package/dist/lib/node-esm/settings-F2ODVNNW.mjs.map +0 -7
- package/dist/lib/node-esm/state-62TQKQVB.mjs +0 -35
- package/dist/lib/node-esm/state-62TQKQVB.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-KZIS7G36.mjs +0 -81
- package/dist/lib/node-esm/toolkit-KZIS7G36.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/call-manager.d.ts +0 -5
- package/dist/types/src/capabilities/call-manager.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -27
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/markdown.d.ts +0 -4
- package/dist/types/src/capabilities/markdown.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-root.d.ts +0 -7
- package/dist/types/src/capabilities/react-root.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/state.d.ts +0 -7
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/toolkit.d.ts +0 -5
- package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
- package/dist/types/src/components/ThreadComplementary.d.ts +0 -5
- package/dist/types/src/components/ThreadComplementary.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -177
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -183
- package/src/capabilities/call-manager.ts +0 -20
- package/src/capabilities/capabilities.ts +0 -33
- package/src/capabilities/intent-resolver.ts +0 -348
- package/src/capabilities/markdown.ts +0 -69
- package/src/capabilities/react-root.tsx +0 -17
- package/src/capabilities/react-surface.tsx +0 -89
- package/src/capabilities/settings.ts +0 -19
- package/src/capabilities/state.ts +0 -26
- package/src/capabilities/toolkit.ts +0 -78
- package/src/components/ThreadComplementary.tsx +0 -181
- package/src/types/schema.ts +0 -33
- /package/dist/lib/browser/{ChannelContainer-4PYFOIDK.mjs.map → blueprints/index.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-EXNNREYB.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChannelContainer-KQQEZWUN.mjs.map → blueprints/index.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-QVQKFBWA.mjs.map → chunk-HSLMI22Q.mjs.map} +0 -0
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { Schema } from 'effect';
|
|
2
|
-
import { Type } from '@dxos/echo';
|
|
3
|
-
export declare const ThreadStatus: Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>;
|
|
4
|
-
declare const _ThreadType: Type.obj<Schema.Struct<{
|
|
5
|
-
name: Schema.optional<typeof Schema.String>;
|
|
6
|
-
status: Schema.optional<Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>>;
|
|
7
|
-
messages: Schema.mutable<Schema.Array$<Type.ref<Type.obj<Schema.Struct<{
|
|
8
|
-
id: import("@dxos/keys").ObjectIdClass;
|
|
9
|
-
parentMessage: Schema.optional<import("@dxos/keys").ObjectIdClass>;
|
|
10
|
-
created: Schema.SchemaClass<string, string, never>;
|
|
11
|
-
sender: Schema.mutable<Schema.Struct<{
|
|
12
|
-
contact: Schema.optional<Type.ref<Type.obj<Schema.Struct<{
|
|
13
|
-
fullName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
14
|
-
preferredName: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
15
|
-
nickname: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
16
|
-
image: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
17
|
-
organization: Schema.optional<Schema.Schema<import("@dxos/echo-schema").Ref<Type.OfKind<import("@dxos/echo-schema").EntityKind.Object> & {
|
|
18
|
-
id: string;
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
status?: "prospect" | "qualified" | "active" | "commit" | "reject" | undefined;
|
|
22
|
-
image?: string | undefined;
|
|
23
|
-
website?: string | undefined;
|
|
24
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
25
|
-
jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
26
|
-
department: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
28
|
-
emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
29
|
-
label: Schema.optional<typeof Schema.String>;
|
|
30
|
-
value: Schema.refine<string, typeof Schema.String>;
|
|
31
|
-
}>>>>;
|
|
32
|
-
identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
33
|
-
label: Schema.optional<typeof Schema.String>;
|
|
34
|
-
value: typeof Schema.String;
|
|
35
|
-
}>>>>;
|
|
36
|
-
phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
37
|
-
label: Schema.optional<typeof Schema.String>;
|
|
38
|
-
value: typeof Schema.String;
|
|
39
|
-
}>>>>;
|
|
40
|
-
addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
41
|
-
label: Schema.optional<typeof Schema.String>;
|
|
42
|
-
value: Schema.Struct<{
|
|
43
|
-
street: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
44
|
-
extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
45
|
-
locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
46
|
-
region: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
47
|
-
postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
48
|
-
postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
49
|
-
country: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
50
|
-
}>;
|
|
51
|
-
}>>>>;
|
|
52
|
-
urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
53
|
-
label: Schema.optional<typeof Schema.String>;
|
|
54
|
-
value: Schema.refine<string, typeof Schema.String>;
|
|
55
|
-
}>>>>;
|
|
56
|
-
birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
57
|
-
fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
58
|
-
category: Schema.optional<typeof Schema.String>;
|
|
59
|
-
label: typeof Schema.String;
|
|
60
|
-
value: typeof Schema.String;
|
|
61
|
-
}>>>>;
|
|
62
|
-
}>>>>;
|
|
63
|
-
identityDid: Schema.optional<typeof Schema.String>;
|
|
64
|
-
identityKey: Schema.optional<typeof Schema.String>;
|
|
65
|
-
email: Schema.optional<typeof Schema.String>;
|
|
66
|
-
name: Schema.optional<typeof Schema.String>;
|
|
67
|
-
role: Schema.optional<Schema.Literal<["user", "assistant"]>>;
|
|
68
|
-
}>>;
|
|
69
|
-
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
70
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
71
|
-
objectId: import("@dxos/keys").ObjectIdClass;
|
|
72
|
-
version: typeof Schema.Unknown;
|
|
73
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"file", {
|
|
74
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
75
|
-
url: typeof Schema.String;
|
|
76
|
-
name: Schema.optional<typeof Schema.String>;
|
|
77
|
-
mediaType: Schema.optional<typeof Schema.String>;
|
|
78
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"image", {
|
|
79
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
80
|
-
id: Schema.optional<typeof Schema.String>;
|
|
81
|
-
source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
82
|
-
type: Schema.Literal<["base64"]>;
|
|
83
|
-
mediaType: typeof Schema.String;
|
|
84
|
-
data: typeof Schema.String;
|
|
85
|
-
}>>, Schema.mutable<Schema.Struct<{
|
|
86
|
-
type: Schema.Literal<["http"]>;
|
|
87
|
-
url: typeof Schema.String;
|
|
88
|
-
}>>]>>;
|
|
89
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"json", {
|
|
90
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
91
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
92
|
-
data: typeof Schema.String;
|
|
93
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
|
|
94
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
95
|
-
text: typeof Schema.String;
|
|
96
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
|
|
97
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
98
|
-
reasoningText: Schema.optional<typeof Schema.String>;
|
|
99
|
-
redactedText: Schema.optional<typeof Schema.String>;
|
|
100
|
-
signature: Schema.optional<typeof Schema.String>;
|
|
101
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
102
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
103
|
-
reference: Type.ref<Schema.Schema<Type.Expando, {
|
|
104
|
-
[x: string]: any;
|
|
105
|
-
id: string;
|
|
106
|
-
}, never>>;
|
|
107
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
108
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
109
|
-
options: Schema.Array$<typeof Schema.String>;
|
|
110
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"status", {
|
|
111
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
112
|
-
statusText: typeof Schema.String;
|
|
113
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
|
|
114
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
115
|
-
text: typeof Schema.String;
|
|
116
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"summary", {
|
|
117
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
118
|
-
mimeType: Schema.optional<typeof Schema.String>;
|
|
119
|
-
message: Schema.optional<typeof Schema.String>;
|
|
120
|
-
model: Schema.optional<typeof Schema.String>;
|
|
121
|
-
usage: Schema.optional<Schema.Struct<{
|
|
122
|
-
inputTokens: Schema.optional<typeof Schema.Number>;
|
|
123
|
-
outputTokens: Schema.optional<typeof Schema.Number>;
|
|
124
|
-
totalTokens: Schema.optional<typeof Schema.Number>;
|
|
125
|
-
}>>;
|
|
126
|
-
toolCalls: Schema.optional<typeof Schema.Number>;
|
|
127
|
-
errors: Schema.optional<typeof Schema.Number>;
|
|
128
|
-
duration: Schema.optional<typeof Schema.Number>;
|
|
129
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"text", {
|
|
130
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
131
|
-
mimeType: Schema.optional<typeof Schema.String>;
|
|
132
|
-
text: typeof Schema.String;
|
|
133
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
134
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
|
|
135
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
136
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
|
|
137
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
138
|
-
toolCallId: typeof Schema.String;
|
|
139
|
-
name: typeof Schema.String;
|
|
140
|
-
input: typeof Schema.String;
|
|
141
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
142
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
143
|
-
toolCallId: typeof Schema.String;
|
|
144
|
-
name: typeof Schema.String;
|
|
145
|
-
result: Schema.optional<typeof Schema.String>;
|
|
146
|
-
error: Schema.optional<typeof Schema.String>;
|
|
147
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
148
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
149
|
-
started: typeof Schema.String;
|
|
150
|
-
text: typeof Schema.String;
|
|
151
|
-
}>>]>>>;
|
|
152
|
-
properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
153
|
-
}>>>>>;
|
|
154
|
-
}>>;
|
|
155
|
-
export interface ThreadType extends Schema.Schema.Type<typeof _ThreadType> {
|
|
156
|
-
}
|
|
157
|
-
export declare const ThreadType: Type.obj<Schema.Schema<ThreadType, Schema.Schema.Encoded<typeof _ThreadType>, never>>;
|
|
158
|
-
declare const _ChannelType: Type.obj<Schema.Struct<{
|
|
159
|
-
name: Schema.optional<typeof Schema.String>;
|
|
160
|
-
defaultThread: Type.ref<Type.obj<Schema.Schema<ThreadType, {
|
|
161
|
-
id: string;
|
|
162
|
-
messages: import("@dxos/echo-protocol").EncodedReference[];
|
|
163
|
-
name?: string | undefined;
|
|
164
|
-
status?: "staged" | "active" | "resolved" | undefined;
|
|
165
|
-
}, never>>>;
|
|
166
|
-
threads: Schema.mutable<Schema.Array$<Type.ref<Type.obj<Schema.Schema<ThreadType, {
|
|
167
|
-
id: string;
|
|
168
|
-
messages: import("@dxos/echo-protocol").EncodedReference[];
|
|
169
|
-
name?: string | undefined;
|
|
170
|
-
status?: "staged" | "active" | "resolved" | undefined;
|
|
171
|
-
}, never>>>>>;
|
|
172
|
-
}>>;
|
|
173
|
-
export interface ChannelType extends Schema.Schema.Type<typeof _ChannelType> {
|
|
174
|
-
}
|
|
175
|
-
export declare const ChannelType: Type.obj<Schema.Schema<ChannelType, Schema.Schema.Encoded<typeof _ChannelType>, never>>;
|
|
176
|
-
export {};
|
|
177
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../src/types/schema.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGlC,eAAO,MAAM,YAAY,sGAIxB,CAAC;AAEF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;+BAkByid,CAAC;wBAA0C,CAAC;0BAA4C,CAAC;yBAA8F,CAAC;2BAA6C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAdvtd,CAAC;AAC1E,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC;CAAG;AAC7E,eAAO,MAAM,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,EAAE,KAAK,CAAC,CAChG,CAAC;AAEd,QAAA,MAAM,YAAY;;;;;;;;;;;;;;GAKwD,CAAC;AAC3E,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC;CAAG;AAC/E,eAAO,MAAM,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,YAAY,CAAC,EAAE,KAAK,CAAC,CAClG,CAAC"}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Rx } from '@effect-rx/rx-react';
|
|
6
|
-
import { Option, pipe } from 'effect';
|
|
7
|
-
|
|
8
|
-
import { Capabilities, type PluginContext, contributes, createIntent } from '@dxos/app-framework';
|
|
9
|
-
import { Obj } from '@dxos/echo';
|
|
10
|
-
import { AttentionCapabilities } from '@dxos/plugin-attention';
|
|
11
|
-
import { ATTENDABLE_PATH_SEPARATOR, DECK_COMPANION_TYPE, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
12
|
-
import { ROOT_ID, createExtension, rxFromSignal } from '@dxos/plugin-graph';
|
|
13
|
-
import { fullyQualifiedId } from '@dxos/react-client/echo';
|
|
14
|
-
|
|
15
|
-
import { THREAD_PLUGIN, meta } from '../meta';
|
|
16
|
-
import { ChannelType, ThreadAction } from '../types';
|
|
17
|
-
import { getAnchor } from '../util';
|
|
18
|
-
|
|
19
|
-
import { ThreadCapabilities } from './capabilities';
|
|
20
|
-
|
|
21
|
-
// TODO(wittjosiah): Highlight active calls in L1.
|
|
22
|
-
// Track active meetings by subscribing to meetings query and polling the swarms of recent meetings in the space.
|
|
23
|
-
export default (context: PluginContext) => {
|
|
24
|
-
const resolve = (typename: string) =>
|
|
25
|
-
context.getCapabilities(Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
|
|
26
|
-
|
|
27
|
-
return contributes(Capabilities.AppGraphBuilder, [
|
|
28
|
-
createExtension({
|
|
29
|
-
id: `${THREAD_PLUGIN}/active-call`,
|
|
30
|
-
connector: (node) =>
|
|
31
|
-
Rx.make((get) =>
|
|
32
|
-
pipe(
|
|
33
|
-
get(node),
|
|
34
|
-
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
35
|
-
Option.map((node) => {
|
|
36
|
-
const [call] = get(context.capabilities(ThreadCapabilities.CallManager));
|
|
37
|
-
return get(
|
|
38
|
-
rxFromSignal(() =>
|
|
39
|
-
call?.joined
|
|
40
|
-
? [
|
|
41
|
-
{
|
|
42
|
-
id: `${node.id}${ATTENDABLE_PATH_SEPARATOR}active-call`,
|
|
43
|
-
type: DECK_COMPANION_TYPE,
|
|
44
|
-
data: null,
|
|
45
|
-
properties: {
|
|
46
|
-
label: ['call panel label', { ns: THREAD_PLUGIN }],
|
|
47
|
-
icon: 'ph--video-conference--regular',
|
|
48
|
-
position: 'hoist',
|
|
49
|
-
disposition: 'hidden',
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
]
|
|
53
|
-
: [],
|
|
54
|
-
),
|
|
55
|
-
);
|
|
56
|
-
}),
|
|
57
|
-
Option.getOrElse(() => []),
|
|
58
|
-
),
|
|
59
|
-
),
|
|
60
|
-
}),
|
|
61
|
-
// TODO(wittjosiah): The channel shouldn't become the companion during a call.
|
|
62
|
-
// Alternative: the call/meeting/thread should be a child node of the channel and that should be opened.
|
|
63
|
-
createExtension({
|
|
64
|
-
id: `${THREAD_PLUGIN}/channel-chat-companion`,
|
|
65
|
-
connector: (node) => {
|
|
66
|
-
return Rx.make((get) => {
|
|
67
|
-
return pipe(
|
|
68
|
-
get(node),
|
|
69
|
-
Option.flatMap((node) => (Obj.instanceOf(ChannelType, node.data) ? Option.some(node.data) : Option.none())),
|
|
70
|
-
Option.map((channel) => {
|
|
71
|
-
const callManager = context.getCapability(ThreadCapabilities.CallManager);
|
|
72
|
-
const joined = get(
|
|
73
|
-
rxFromSignal(() => callManager.joined && callManager.roomId === fullyQualifiedId(channel)),
|
|
74
|
-
);
|
|
75
|
-
if (!joined) {
|
|
76
|
-
return [];
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
return [
|
|
80
|
-
{
|
|
81
|
-
id: `${fullyQualifiedId(channel)}${ATTENDABLE_PATH_SEPARATOR}chat`,
|
|
82
|
-
type: PLANK_COMPANION_TYPE,
|
|
83
|
-
data: 'chat',
|
|
84
|
-
properties: {
|
|
85
|
-
label: ['channel companion label', { ns: THREAD_PLUGIN }],
|
|
86
|
-
icon: 'ph--hash--regular',
|
|
87
|
-
position: 'hoist',
|
|
88
|
-
disposition: 'hidden',
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
];
|
|
92
|
-
}),
|
|
93
|
-
Option.getOrElse(() => []),
|
|
94
|
-
);
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
}),
|
|
98
|
-
createExtension({
|
|
99
|
-
id: `${meta.id}/comments-companion`,
|
|
100
|
-
connector: (node) =>
|
|
101
|
-
Rx.make((get) =>
|
|
102
|
-
pipe(
|
|
103
|
-
get(node),
|
|
104
|
-
Option.flatMap((node) => {
|
|
105
|
-
if (!Obj.isObject(node.data) || Obj.instanceOf(ChannelType, node.data)) {
|
|
106
|
-
return Option.none();
|
|
107
|
-
}
|
|
108
|
-
const metadata = resolve(Obj.getTypename(node.data)!);
|
|
109
|
-
return typeof metadata.comments === 'string' ? Option.some(node) : Option.none();
|
|
110
|
-
}),
|
|
111
|
-
Option.map((node) => [
|
|
112
|
-
{
|
|
113
|
-
id: [node.id, 'comments'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
114
|
-
type: PLANK_COMPANION_TYPE,
|
|
115
|
-
data: 'comments',
|
|
116
|
-
properties: {
|
|
117
|
-
label: ['comments label', { ns: meta.id }],
|
|
118
|
-
icon: 'ph--chat-text--regular',
|
|
119
|
-
disposition: 'hidden',
|
|
120
|
-
position: 'hoist',
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
]),
|
|
124
|
-
Option.getOrElse(() => []),
|
|
125
|
-
),
|
|
126
|
-
),
|
|
127
|
-
}),
|
|
128
|
-
createExtension({
|
|
129
|
-
id: `${meta.id}/comment-toolbar`,
|
|
130
|
-
actions: (node) =>
|
|
131
|
-
Rx.make((get) =>
|
|
132
|
-
pipe(
|
|
133
|
-
get(node),
|
|
134
|
-
Option.flatMap((node) => {
|
|
135
|
-
if (!Obj.isObject(node.data) || Obj.instanceOf(ChannelType, node.data)) {
|
|
136
|
-
return Option.none();
|
|
137
|
-
}
|
|
138
|
-
const metadata = resolve(Obj.getTypename(node.data)!);
|
|
139
|
-
return typeof metadata.comments === 'string' ? Option.some(node.data) : Option.none();
|
|
140
|
-
}),
|
|
141
|
-
Option.map((object) => {
|
|
142
|
-
const selectionManager = context.getCapability(AttentionCapabilities.Selection);
|
|
143
|
-
const toolbar = get(context.capabilities(ThreadCapabilities.State))[0]?.state.toolbar ?? {};
|
|
144
|
-
const disabled = get(
|
|
145
|
-
rxFromSignal(() => {
|
|
146
|
-
const metadata = resolve(Obj.getTypename(object)!);
|
|
147
|
-
const selection = selectionManager.getSelection(fullyQualifiedId(object), metadata.selectionMode);
|
|
148
|
-
const anchor = getAnchor(selection);
|
|
149
|
-
const invalidSelection = !anchor;
|
|
150
|
-
const overlappingComment = toolbar[fullyQualifiedId(object)];
|
|
151
|
-
return (metadata.comments === 'anchored' && invalidSelection) || overlappingComment;
|
|
152
|
-
}),
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
return [
|
|
156
|
-
{
|
|
157
|
-
id: `${fullyQualifiedId(object)}/comment`,
|
|
158
|
-
data: () => {
|
|
159
|
-
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
160
|
-
const metadata = resolve(Obj.getTypename(object)!);
|
|
161
|
-
const selection = selectionManager.getSelection(fullyQualifiedId(object));
|
|
162
|
-
// TODO(wittjosiah): Use presence of selection to determine if the comment should be anchored.
|
|
163
|
-
// Requires all components which support selection (e.g. table/kanban) to support anchored comments.
|
|
164
|
-
const anchor = metadata.comments === 'anchored' ? getAnchor(selection) : Date.now().toString();
|
|
165
|
-
const name = metadata.getAnchorLabel?.(object, anchor);
|
|
166
|
-
void dispatch(createIntent(ThreadAction.Create, { anchor, name, subject: object }));
|
|
167
|
-
},
|
|
168
|
-
properties: {
|
|
169
|
-
label: ['add comment label', { ns: meta.id }],
|
|
170
|
-
icon: 'ph--chat-text--regular',
|
|
171
|
-
disposition: 'toolbar',
|
|
172
|
-
disabled,
|
|
173
|
-
testId: 'thread.comment.add',
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
];
|
|
177
|
-
}),
|
|
178
|
-
Option.getOrElse(() => []),
|
|
179
|
-
),
|
|
180
|
-
),
|
|
181
|
-
}),
|
|
182
|
-
]);
|
|
183
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { type PluginContext, contributes } from '@dxos/app-framework';
|
|
6
|
-
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
7
|
-
|
|
8
|
-
import { CallManager } from '../calls';
|
|
9
|
-
|
|
10
|
-
import { ThreadCapabilities } from './capabilities';
|
|
11
|
-
|
|
12
|
-
export default async (context: PluginContext) => {
|
|
13
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
14
|
-
const callManager = new CallManager(client);
|
|
15
|
-
await callManager.open();
|
|
16
|
-
|
|
17
|
-
return contributes(ThreadCapabilities.CallManager, callManager, () => {
|
|
18
|
-
void callManager.close();
|
|
19
|
-
});
|
|
20
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { defineCapability } from '@dxos/app-framework';
|
|
6
|
-
import { type DeepReadonly } from '@dxos/util';
|
|
7
|
-
|
|
8
|
-
import { type CallManager, type CallState, type MediaState } from '../calls';
|
|
9
|
-
import { THREAD_PLUGIN } from '../meta';
|
|
10
|
-
import { type ChannelType, type ThreadState, type ViewState } from '../types';
|
|
11
|
-
|
|
12
|
-
export namespace ThreadCapabilities {
|
|
13
|
-
export const CallManager = defineCapability<CallManager>(`${THREAD_PLUGIN}/capability/call-manager`);
|
|
14
|
-
|
|
15
|
-
// TODO(burdon): Better way to define specific extensions for meeting companions.
|
|
16
|
-
// TODO(burdon): This brings in deps from ../calls; how should we manage/minimize explicit type exposure to other plugins?
|
|
17
|
-
// TODO(wittjosiah): These callbacks could be intents once we support broadcast.
|
|
18
|
-
export type CallProperties = {
|
|
19
|
-
onJoin: (state: { channel?: ChannelType; roomId?: string }) => Promise<void>;
|
|
20
|
-
onLeave: (roomId?: string) => Promise<void>;
|
|
21
|
-
onCallStateUpdated: (callState: CallState) => Promise<void>;
|
|
22
|
-
onMediaStateUpdated: ([mediaState, isSpeaking]: [MediaState, boolean]) => Promise<void>;
|
|
23
|
-
};
|
|
24
|
-
export const CallExtension = defineCapability<CallProperties>(`${THREAD_PLUGIN}/capability/call-extension`);
|
|
25
|
-
|
|
26
|
-
type GetViewState = (subjectId: string) => ViewState;
|
|
27
|
-
export const State = defineCapability<{ state: DeepReadonly<ThreadState>; getViewState: GetViewState }>(
|
|
28
|
-
`${THREAD_PLUGIN}/capability/state`,
|
|
29
|
-
);
|
|
30
|
-
export const MutableState = defineCapability<{ state: ThreadState; getViewState: GetViewState }>(
|
|
31
|
-
`${THREAD_PLUGIN}/capability/state`,
|
|
32
|
-
);
|
|
33
|
-
}
|