@dxos/plugin-thread 0.8.4-main.ae835ea → 0.8.4-main.bcb3aa67d6
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/add-message-RNUQFJTH.mjs +97 -0
- package/dist/lib/browser/add-message-RNUQFJTH.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +37 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-BHQ62SKT.mjs +259 -0
- package/dist/lib/browser/chunk-BHQ62SKT.mjs.map +7 -0
- package/dist/lib/browser/chunk-H32XEGIV.mjs +61 -0
- package/dist/lib/browser/chunk-H32XEGIV.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/create-UWYTS35R.mjs +55 -0
- package/dist/lib/browser/create-UWYTS35R.mjs.map +7 -0
- package/dist/lib/browser/create-channel-7RX3G7QV.mjs +21 -0
- package/dist/lib/browser/create-channel-7RX3G7QV.mjs.map +7 -0
- package/dist/lib/browser/create-channel-thread-ZA7IVGTL.mjs +28 -0
- package/dist/lib/browser/create-channel-thread-ZA7IVGTL.mjs.map +7 -0
- package/dist/lib/browser/create-proposals-74FZ3XTC.mjs +57 -0
- package/dist/lib/browser/create-proposals-74FZ3XTC.mjs.map +7 -0
- package/dist/lib/browser/delete-SJBDYXW3.mjs +59 -0
- package/dist/lib/browser/delete-SJBDYXW3.mjs.map +7 -0
- package/dist/lib/browser/delete-message-AHSDDYXK.mjs +64 -0
- package/dist/lib/browser/delete-message-AHSDDYXK.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +2250 -229
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/on-create-space-YNZHJSZ5.mjs +25 -0
- package/dist/lib/browser/on-create-space-YNZHJSZ5.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +14 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/restore-X2K3ZKFD.mjs +33 -0
- package/dist/lib/browser/restore-X2K3ZKFD.mjs.map +7 -0
- package/dist/lib/browser/restore-message-EHSQSLM3.mjs +42 -0
- package/dist/lib/browser/restore-message-EHSQSLM3.mjs.map +7 -0
- package/dist/lib/browser/select-GKW3QALS.mjs +26 -0
- package/dist/lib/browser/select-GKW3QALS.mjs.map +7 -0
- package/dist/lib/browser/toggle-resolved-Y5KJLQO3.mjs +45 -0
- package/dist/lib/browser/toggle-resolved-Y5KJLQO3.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +6 -8
- package/dist/lib/node-esm/add-message-R3XLXRZ5.mjs +98 -0
- package/dist/lib/node-esm/add-message-R3XLXRZ5.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +38 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BAKHDRSB.mjs +260 -0
- package/dist/lib/node-esm/chunk-BAKHDRSB.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-M6EZRL5B.mjs +62 -0
- package/dist/lib/node-esm/chunk-M6EZRL5B.mjs.map +7 -0
- package/dist/lib/node-esm/create-SKEKGLSD.mjs +56 -0
- package/dist/lib/node-esm/create-SKEKGLSD.mjs.map +7 -0
- package/dist/lib/node-esm/create-channel-4UICXKGI.mjs +22 -0
- package/dist/lib/node-esm/create-channel-4UICXKGI.mjs.map +7 -0
- package/dist/lib/node-esm/create-channel-thread-EWDR3J44.mjs +29 -0
- package/dist/lib/node-esm/create-channel-thread-EWDR3J44.mjs.map +7 -0
- package/dist/lib/node-esm/create-proposals-SASCDSNZ.mjs +58 -0
- package/dist/lib/node-esm/create-proposals-SASCDSNZ.mjs.map +7 -0
- package/dist/lib/node-esm/delete-IGQXPUHX.mjs +60 -0
- package/dist/lib/node-esm/delete-IGQXPUHX.mjs.map +7 -0
- package/dist/lib/node-esm/delete-message-IEJYQNZY.mjs +65 -0
- package/dist/lib/node-esm/delete-message-IEJYQNZY.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +2250 -229
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/on-create-space-UGALNIWK.mjs +26 -0
- package/dist/lib/node-esm/on-create-space-UGALNIWK.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +15 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/restore-4EAMGSOF.mjs +34 -0
- package/dist/lib/node-esm/restore-4EAMGSOF.mjs.map +7 -0
- package/dist/lib/node-esm/restore-message-2Z6KR3RJ.mjs +43 -0
- package/dist/lib/node-esm/restore-message-2Z6KR3RJ.mjs.map +7 -0
- package/dist/lib/node-esm/select-MLVUUPYK.mjs +27 -0
- package/dist/lib/node-esm/select-MLVUUPYK.mjs.map +7 -0
- package/dist/lib/node-esm/toggle-resolved-Y2FRSWZ3.mjs +46 -0
- package/dist/lib/node-esm/toggle-resolved-Y2FRSWZ3.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +6 -8
- 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 +2 -2
- package/dist/types/src/calls-service.stories.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/call-manager.d.ts +3 -2
- package/dist/types/src/capabilities/call-manager.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +13 -14
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +3 -2
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-root.d.ts +4 -2
- package/dist/types/src/capabilities/react-root.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +4 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +5 -5
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
- package/dist/types/src/capabilities/undo-mappings.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 +1 -1
- package/dist/types/src/components/Call/Toolbar.d.ts.map +1 -1
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts +13 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts +160 -0
- package/dist/types/src/components/CommentsPanel/CommentsPanel.stories.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts +14 -0
- package/dist/types/src/components/CommentsPanel/CommentsThread.d.ts.map +1 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts +3 -0
- package/dist/types/src/components/CommentsPanel/index.d.ts.map +1 -0
- package/dist/types/src/components/Lobby/Lobby.d.ts.map +1 -1
- package/dist/types/src/components/Media/VideoObject.d.ts +1 -1
- package/dist/types/src/components/Media/VideoObject.stories.d.ts +1 -1
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts +15 -0
- package/dist/types/src/components/MessagePanel/MessagePanel.d.ts.map +1 -0
- package/dist/types/src/components/MessagePanel/index.d.ts +2 -0
- package/dist/types/src/components/MessagePanel/index.d.ts.map +1 -0
- package/dist/types/src/components/Participant/Participant.d.ts.map +1 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveGrid.stories.d.ts +142 -140
- 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/ResponsiveGrid/{ResponsiveContainer.d.ts → ResponsivePanel.d.ts} +4 -4
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.d.ts.map +1 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts +164 -0
- package/dist/types/src/components/ResponsiveGrid/ResponsivePanel.stories.d.ts.map +1 -0
- package/dist/types/src/components/ResponsiveGrid/index.d.ts +1 -1
- package/dist/types/src/components/ResponsiveGrid/index.d.ts.map +1 -1
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts +6 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.d.ts.map +1 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts +161 -0
- package/dist/types/src/components/ThreadSettings/ThreadSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/ThreadSettings/index.d.ts +3 -0
- package/dist/types/src/components/ThreadSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +4 -9
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/{components → containers/CallDebugPanel}/CallDebugPanel.d.ts +1 -1
- package/dist/types/src/containers/CallDebugPanel/CallDebugPanel.d.ts.map +1 -0
- package/dist/types/src/containers/CallDebugPanel/index.d.ts +3 -0
- package/dist/types/src/containers/CallDebugPanel/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/CallSidebar}/CallSidebar.d.ts +0 -1
- package/dist/types/src/containers/CallSidebar/CallSidebar.d.ts.map +1 -0
- package/dist/types/src/containers/CallSidebar/index.d.ts +3 -0
- package/dist/types/src/containers/CallSidebar/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts +12 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts +162 -0
- package/dist/types/src/containers/ChannelContainer/ChannelContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ChannelContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +20 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts +162 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts +4 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts +8 -0
- package/dist/types/src/containers/ThreadCompanion/ThreadCompanion.d.ts.map +1 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts +3 -0
- package/dist/types/src/containers/ThreadCompanion/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +7 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/{components/command-extension.d.ts → extensions/command.d.ts} +1 -1
- package/dist/types/src/extensions/command.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +1 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -1
- package/dist/types/src/extensions/threads.d.ts +8 -3
- package/dist/types/src/extensions/threads.d.ts.map +1 -1
- 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/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/add-message.d.ts +5 -0
- package/dist/types/src/operations/add-message.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel-thread.d.ts +5 -0
- package/dist/types/src/operations/create-channel-thread.d.ts.map +1 -0
- package/dist/types/src/operations/create-channel.d.ts +5 -0
- package/dist/types/src/operations/create-channel.d.ts.map +1 -0
- package/dist/types/src/operations/create-proposals.d.ts +5 -0
- package/dist/types/src/operations/create-proposals.d.ts.map +1 -0
- package/dist/types/src/operations/create.d.ts +5 -0
- package/dist/types/src/operations/create.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +2789 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/delete-message.d.ts +5 -0
- package/dist/types/src/operations/delete-message.d.ts.map +1 -0
- package/dist/types/src/operations/delete.d.ts +5 -0
- package/dist/types/src/operations/delete.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/on-create-space.d.ts +5 -0
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
- package/dist/types/src/operations/restore-message.d.ts +5 -0
- package/dist/types/src/operations/restore-message.d.ts.map +1 -0
- package/dist/types/src/operations/restore.d.ts +5 -0
- package/dist/types/src/operations/restore.d.ts.map +1 -0
- package/dist/types/src/operations/select.d.ts +5 -0
- package/dist/types/src/operations/select.d.ts.map +1 -0
- package/dist/types/src/operations/toggle-resolved.d.ts +5 -0
- package/dist/types/src/operations/toggle-resolved.d.ts.map +1 -0
- package/dist/types/src/{components/testing.d.ts → testing/data.d.ts} +2 -2
- package/dist/types/src/testing/data.d.ts.map +1 -0
- 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 +140 -138
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Channel.d.ts +707 -12
- package/dist/types/src/types/Channel.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +4 -0
- package/dist/types/src/types/Settings.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 +1 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +3 -443
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +108 -65
- package/src/ThreadPlugin.tsx +78 -112
- package/src/blueprints/index.ts +5 -0
- package/src/blueprints/thread-blueprint.ts +37 -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 +8 -8
- package/src/capabilities/app-graph-builder.ts +171 -165
- package/src/capabilities/blueprint-definition.ts +17 -0
- package/src/capabilities/call-manager.ts +18 -12
- package/src/capabilities/index.ts +15 -12
- package/src/capabilities/markdown.ts +49 -37
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-root.tsx +12 -9
- package/src/capabilities/react-surface.tsx +83 -77
- package/src/capabilities/settings.ts +27 -12
- package/src/capabilities/state.ts +14 -18
- package/src/capabilities/undo-mappings.ts +46 -0
- package/src/components/Call/Call.tsx +10 -6
- package/src/components/Call/Toolbar.tsx +57 -40
- package/src/components/CommentsPanel/CommentsPanel.stories.tsx +94 -0
- package/src/components/{CommentsContainer.tsx → CommentsPanel/CommentsPanel.tsx} +19 -20
- package/src/components/{CommentsThreadContainer.tsx → CommentsPanel/CommentsThread.tsx} +43 -45
- package/src/components/CommentsPanel/index.ts +6 -0
- package/src/components/Lobby/Lobby.tsx +14 -12
- package/src/components/Media/AudioStream.tsx +2 -2
- package/src/components/Media/VideoObject.stories.tsx +6 -6
- package/src/components/Media/VideoObject.tsx +1 -1
- package/src/components/{MessageContainer.tsx → MessagePanel/MessagePanel.tsx} +71 -40
- package/src/components/MessagePanel/index.ts +5 -0
- package/src/components/Participant/Participant.tsx +32 -19
- package/src/components/ResponsiveGrid/ResponsiveGrid.stories.tsx +5 -5
- package/src/components/ResponsiveGrid/ResponsiveGrid.tsx +5 -5
- package/src/components/ResponsiveGrid/ResponsiveGridItem.tsx +12 -9
- package/src/components/ResponsiveGrid/{ResponsiveContainer.stories.tsx → ResponsivePanel.stories.tsx} +7 -7
- package/src/components/ResponsiveGrid/{ResponsiveContainer.tsx → ResponsivePanel.tsx} +5 -5
- package/src/components/ResponsiveGrid/index.ts +1 -1
- package/src/components/ThreadSettings/ThreadSettings.stories.tsx +32 -0
- package/src/components/ThreadSettings/ThreadSettings.tsx +20 -0
- package/src/components/ThreadSettings/index.ts +7 -0
- package/src/components/index.ts +5 -12
- package/src/{components → containers/CallDebugPanel}/CallDebugPanel.tsx +14 -16
- package/src/containers/CallDebugPanel/index.ts +7 -0
- package/src/containers/CallSidebar/CallSidebar.tsx +17 -0
- package/src/containers/CallSidebar/index.ts +7 -0
- package/src/containers/ChannelContainer/ChannelContainer.stories.tsx +59 -0
- package/src/{components → containers/ChannelContainer}/ChannelContainer.tsx +94 -76
- package/src/containers/ChannelContainer/index.ts +7 -0
- package/src/{components/Chat.stories.tsx → containers/ChatContainer/ChatContainer.stories.tsx} +21 -19
- package/src/containers/ChatContainer/ChatContainer.tsx +130 -0
- package/src/containers/ChatContainer/index.ts +8 -0
- package/src/containers/ThreadCompanion/ThreadCompanion.tsx +217 -0
- package/src/containers/ThreadCompanion/index.ts +7 -0
- package/src/containers/index.ts +11 -0
- package/src/{components/command-extension.ts → extensions/command.ts} +3 -3
- package/src/extensions/index.ts +1 -0
- package/src/extensions/threads.ts +83 -38
- package/src/hooks/analytics.ts +22 -21
- package/src/hooks/index.ts +3 -2
- package/src/index.ts +1 -1
- package/src/meta.ts +4 -4
- package/src/operations/add-message.ts +82 -0
- package/src/operations/create-channel-thread.ts +26 -0
- package/src/operations/create-channel.ts +21 -0
- package/src/operations/create-proposals.ts +49 -0
- package/src/operations/create.ts +49 -0
- package/src/operations/definitions.ts +177 -0
- package/src/operations/delete-message.ts +53 -0
- package/src/operations/delete.ts +64 -0
- package/src/operations/index.ts +22 -0
- package/src/operations/on-create-space.ts +27 -0
- package/src/operations/restore-message.ts +38 -0
- package/src/operations/restore.ts +38 -0
- package/src/operations/select.ts +25 -0
- package/src/operations/toggle-resolved.ts +41 -0
- package/src/{components/testing.ts → testing/data.ts} +3 -5
- package/src/testing/stories.ts +16 -17
- package/src/translations.ts +72 -74
- package/src/types/Channel.ts +21 -11
- package/src/types/Settings.ts +10 -0
- package/src/types/capabilities.ts +35 -0
- package/src/types/index.ts +1 -1
- package/src/types/types.ts +4 -108
- package/src/util.ts +1 -1
- package/dist/lib/browser/ChannelContainer-SVV4ZX5T.mjs +0 -16
- package/dist/lib/browser/ChatContainer-ALFWQ65B.mjs +0 -15
- package/dist/lib/browser/app-graph-builder-ACBXRBOS.mjs +0 -171
- package/dist/lib/browser/app-graph-builder-ACBXRBOS.mjs.map +0 -7
- package/dist/lib/browser/call-manager-P3MYR2JS.mjs +0 -24
- package/dist/lib/browser/call-manager-P3MYR2JS.mjs.map +0 -7
- package/dist/lib/browser/chunk-6CUDBEYP.mjs +0 -377
- package/dist/lib/browser/chunk-6CUDBEYP.mjs.map +0 -7
- package/dist/lib/browser/chunk-BBTXGRIR.mjs +0 -18
- package/dist/lib/browser/chunk-BBTXGRIR.mjs.map +0 -7
- package/dist/lib/browser/chunk-CP7E2HRE.mjs +0 -31
- package/dist/lib/browser/chunk-CP7E2HRE.mjs.map +0 -7
- package/dist/lib/browser/chunk-DJOUMWEL.mjs +0 -988
- package/dist/lib/browser/chunk-DJOUMWEL.mjs.map +0 -7
- package/dist/lib/browser/chunk-HDEQRBOC.mjs +0 -181
- package/dist/lib/browser/chunk-HDEQRBOC.mjs.map +0 -7
- package/dist/lib/browser/chunk-IQSXEHOW.mjs +0 -618
- package/dist/lib/browser/chunk-IQSXEHOW.mjs.map +0 -7
- package/dist/lib/browser/chunk-K2DUJRFJ.mjs +0 -27
- package/dist/lib/browser/chunk-K2DUJRFJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-L6F2AG6W.mjs +0 -23
- package/dist/lib/browser/chunk-L6F2AG6W.mjs.map +0 -7
- package/dist/lib/browser/chunk-US5ZQYC3.mjs +0 -1793
- package/dist/lib/browser/chunk-US5ZQYC3.mjs.map +0 -7
- package/dist/lib/browser/chunk-UTSLSZED.mjs +0 -178
- package/dist/lib/browser/chunk-UTSLSZED.mjs.map +0 -7
- package/dist/lib/browser/chunk-XYUJXHYV.mjs +0 -106
- package/dist/lib/browser/chunk-XYUJXHYV.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-5POQTZ24.mjs +0 -419
- package/dist/lib/browser/intent-resolver-5POQTZ24.mjs.map +0 -7
- package/dist/lib/browser/markdown-L7LDNF56.mjs +0 -169
- package/dist/lib/browser/markdown-L7LDNF56.mjs.map +0 -7
- package/dist/lib/browser/react-root-RCJLK4EP.mjs +0 -28
- package/dist/lib/browser/react-root-RCJLK4EP.mjs.map +0 -7
- package/dist/lib/browser/react-surface-IC576W2W.mjs +0 -109
- package/dist/lib/browser/react-surface-IC576W2W.mjs.map +0 -7
- package/dist/lib/browser/settings-5FYGBOGI.mjs +0 -22
- package/dist/lib/browser/settings-5FYGBOGI.mjs.map +0 -7
- package/dist/lib/browser/state-36REWXO5.mjs +0 -34
- package/dist/lib/browser/state-36REWXO5.mjs.map +0 -7
- package/dist/lib/browser/toolkit-PXASLYEQ.mjs +0 -74
- package/dist/lib/browser/toolkit-PXASLYEQ.mjs.map +0 -7
- package/dist/lib/node-esm/ChannelContainer-63GMQ753.mjs +0 -17
- package/dist/lib/node-esm/ChannelContainer-63GMQ753.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-MFKPXMIK.mjs +0 -16
- package/dist/lib/node-esm/ChatContainer-MFKPXMIK.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-JXD7KY3G.mjs +0 -172
- package/dist/lib/node-esm/app-graph-builder-JXD7KY3G.mjs.map +0 -7
- package/dist/lib/node-esm/call-manager-FCEFP7EJ.mjs +0 -25
- package/dist/lib/node-esm/call-manager-FCEFP7EJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2MMJF7DW.mjs +0 -182
- package/dist/lib/node-esm/chunk-2MMJF7DW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs +0 -108
- package/dist/lib/node-esm/chunk-2V3WSLUZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs +0 -33
- package/dist/lib/node-esm/chunk-ABUFOZVX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AFDO2SUZ.mjs +0 -25
- package/dist/lib/node-esm/chunk-AFDO2SUZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KGYDYYKJ.mjs +0 -1794
- package/dist/lib/node-esm/chunk-KGYDYYKJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NWUUMKVQ.mjs +0 -378
- package/dist/lib/node-esm/chunk-NWUUMKVQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Q7AKKZNY.mjs +0 -619
- package/dist/lib/node-esm/chunk-Q7AKKZNY.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QCQAAU6J.mjs +0 -989
- package/dist/lib/node-esm/chunk-QCQAAU6J.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TYLLHI46.mjs +0 -179
- package/dist/lib/node-esm/chunk-TYLLHI46.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XI45H4IV.mjs +0 -28
- package/dist/lib/node-esm/chunk-XI45H4IV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZQAGII7M.mjs +0 -19
- package/dist/lib/node-esm/chunk-ZQAGII7M.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-63NV3XD2.mjs +0 -420
- package/dist/lib/node-esm/intent-resolver-63NV3XD2.mjs.map +0 -7
- package/dist/lib/node-esm/markdown-ZQW7MI5U.mjs +0 -170
- package/dist/lib/node-esm/markdown-ZQW7MI5U.mjs.map +0 -7
- package/dist/lib/node-esm/react-root-4IDB2SN2.mjs +0 -29
- package/dist/lib/node-esm/react-root-4IDB2SN2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-O4LGTAZ3.mjs +0 -110
- package/dist/lib/node-esm/react-surface-O4LGTAZ3.mjs.map +0 -7
- package/dist/lib/node-esm/settings-EOBQUZSW.mjs +0 -23
- package/dist/lib/node-esm/settings-EOBQUZSW.mjs.map +0 -7
- package/dist/lib/node-esm/state-X3W67GTL.mjs +0 -35
- package/dist/lib/node-esm/state-X3W67GTL.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-X2KA4FNC.mjs +0 -75
- package/dist/lib/node-esm/toolkit-X2KA4FNC.mjs.map +0 -7
- 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/toolkit.d.ts +0 -24
- package/dist/types/src/capabilities/toolkit.d.ts.map +0 -1
- package/dist/types/src/components/CallDebugPanel.d.ts.map +0 -1
- package/dist/types/src/components/CallSidebar.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.d.ts +0 -14
- package/dist/types/src/components/ChannelContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChannelContainer.stories.d.ts +0 -160
- package/dist/types/src/components/ChannelContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/Chat.stories.d.ts +0 -160
- package/dist/types/src/components/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -18
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/Comments.stories.d.ts +0 -158
- package/dist/types/src/components/Comments.stories.d.ts.map +0 -1
- package/dist/types/src/components/CommentsContainer.d.ts +0 -13
- package/dist/types/src/components/CommentsContainer.d.ts.map +0 -1
- package/dist/types/src/components/CommentsThreadContainer.d.ts +0 -14
- package/dist/types/src/components/CommentsThreadContainer.d.ts.map +0 -1
- package/dist/types/src/components/MessageContainer.d.ts +0 -14
- package/dist/types/src/components/MessageContainer.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.d.ts.map +0 -1
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.d.ts +0 -162
- package/dist/types/src/components/ResponsiveGrid/ResponsiveContainer.stories.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/components/ThreadSettings.d.ts +0 -6
- package/dist/types/src/components/ThreadSettings.d.ts.map +0 -1
- package/dist/types/src/components/command-extension.d.ts.map +0 -1
- package/dist/types/src/components/testing.d.ts.map +0 -1
- package/dist/types/src/types/Thread.d.ts +0 -167
- package/dist/types/src/types/Thread.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -33
- package/src/capabilities/intent-resolver.ts +0 -344
- package/src/capabilities/toolkit.ts +0 -85
- package/src/components/CallSidebar.tsx +0 -18
- package/src/components/ChannelContainer.stories.tsx +0 -59
- package/src/components/ChatContainer.tsx +0 -154
- package/src/components/Comments.stories.tsx +0 -91
- package/src/components/ThreadComplementary.tsx +0 -181
- package/src/components/ThreadSettings.tsx +0 -16
- package/src/types/Thread.ts +0 -26
- /package/dist/lib/browser/{ChannelContainer-SVV4ZX5T.mjs.map → chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{browser/ChatContainer-ALFWQ65B.mjs.map → node-esm/chunk-HSLMI22Q.mjs.map} +0 -0
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { Obj, Type } from '@dxos/echo';
|
|
3
|
-
export declare const ThreadStatus: Schema.Union<[Schema.Literal<["staged"]>, Schema.Literal<["active"]>, Schema.Literal<["resolved"]>]>;
|
|
4
|
-
declare const _Thread: 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.extend<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/internal").Ref<Type.OfKind<import("@dxos/echo/internal").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
|
-
location?: readonly [number, number, (number | undefined)?] | undefined;
|
|
25
|
-
}>, import("@dxos/echo-protocol").EncodedReference, never>>;
|
|
26
|
-
jobTitle: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
27
|
-
department: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
28
|
-
notes: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
29
|
-
emails: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
30
|
-
label: Schema.optional<typeof Schema.String>;
|
|
31
|
-
value: Schema.refine<string, typeof Schema.String>;
|
|
32
|
-
}>>>>;
|
|
33
|
-
identities: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
34
|
-
label: Schema.optional<typeof Schema.String>;
|
|
35
|
-
value: typeof Schema.String;
|
|
36
|
-
}>>>>;
|
|
37
|
-
phoneNumbers: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
38
|
-
label: Schema.optional<typeof Schema.String>;
|
|
39
|
-
value: typeof Schema.String;
|
|
40
|
-
}>>>>;
|
|
41
|
-
addresses: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
42
|
-
label: Schema.optional<typeof Schema.String>;
|
|
43
|
-
value: Schema.Struct<{
|
|
44
|
-
street: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
45
|
-
extended: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
46
|
-
locality: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
47
|
-
region: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
48
|
-
postalCode: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
49
|
-
postOfficeBoxNumber: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
50
|
-
country: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
51
|
-
}>;
|
|
52
|
-
}>>>>;
|
|
53
|
-
urls: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
54
|
-
label: Schema.optional<typeof Schema.String>;
|
|
55
|
-
value: Schema.refine<string, typeof Schema.String>;
|
|
56
|
-
}>>>>;
|
|
57
|
-
birthday: Schema.optional<Schema.SchemaClass<string, string, never>>;
|
|
58
|
-
fields: Schema.optional<Schema.mutable<Schema.Array$<Schema.Struct<{
|
|
59
|
-
category: Schema.optional<typeof Schema.String>;
|
|
60
|
-
label: typeof Schema.String;
|
|
61
|
-
value: typeof Schema.String;
|
|
62
|
-
}>>>>;
|
|
63
|
-
}>, Schema.Struct<{
|
|
64
|
-
location: Schema.optional<Schema.Tuple<[Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.filter<Schema.transform<Schema.SchemaClass<number, number, never>, Schema.filter<Schema.SchemaClass<number, number, never>>>>, Schema.Element<typeof Schema.Number, "?">]>>;
|
|
65
|
-
}>>>>>;
|
|
66
|
-
identityDid: Schema.optional<typeof Schema.String>;
|
|
67
|
-
identityKey: Schema.optional<typeof Schema.String>;
|
|
68
|
-
email: Schema.optional<typeof Schema.String>;
|
|
69
|
-
name: Schema.optional<typeof Schema.String>;
|
|
70
|
-
role: Schema.optional<Schema.Literal<["user", "assistant", "tool"]>>;
|
|
71
|
-
}>>;
|
|
72
|
-
blocks: Schema.mutable<Schema.Array$<Schema.Union<[Schema.mutable<Schema.TaggedStruct<"anchor", {
|
|
73
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
74
|
-
objectId: import("@dxos/keys").ObjectIdClass;
|
|
75
|
-
version: typeof Schema.Unknown;
|
|
76
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"file", {
|
|
77
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
78
|
-
url: typeof Schema.String;
|
|
79
|
-
name: Schema.optional<typeof Schema.String>;
|
|
80
|
-
mediaType: Schema.optional<typeof Schema.String>;
|
|
81
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"image", {
|
|
82
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
83
|
-
id: Schema.optional<typeof Schema.String>;
|
|
84
|
-
source: Schema.optional<Schema.Union<[Schema.mutable<Schema.Struct<{
|
|
85
|
-
type: Schema.Literal<["base64"]>;
|
|
86
|
-
mediaType: typeof Schema.String;
|
|
87
|
-
data: typeof Schema.String;
|
|
88
|
-
}>>, Schema.mutable<Schema.Struct<{
|
|
89
|
-
type: Schema.Literal<["http"]>;
|
|
90
|
-
url: typeof Schema.String;
|
|
91
|
-
}>>]>>;
|
|
92
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"json", {
|
|
93
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
94
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
95
|
-
data: typeof Schema.String;
|
|
96
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"proposal", {
|
|
97
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
98
|
-
text: typeof Schema.String;
|
|
99
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"reasoning", {
|
|
100
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
101
|
-
reasoningText: Schema.optional<typeof Schema.String>;
|
|
102
|
-
redactedText: Schema.optional<typeof Schema.String>;
|
|
103
|
-
signature: Schema.optional<typeof Schema.String>;
|
|
104
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"reference", {
|
|
105
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
106
|
-
reference: Type.ref<Schema.Schema<Type.Expando, {
|
|
107
|
-
[x: string]: any;
|
|
108
|
-
id: string;
|
|
109
|
-
}, never>>;
|
|
110
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"select", {
|
|
111
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
112
|
-
options: Schema.Array$<typeof Schema.String>;
|
|
113
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"status", {
|
|
114
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
115
|
-
statusText: typeof Schema.String;
|
|
116
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"suggestion", {
|
|
117
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
118
|
-
text: typeof Schema.String;
|
|
119
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"summary", {
|
|
120
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
121
|
-
mimeType: Schema.optional<typeof Schema.String>;
|
|
122
|
-
message: Schema.optional<typeof Schema.String>;
|
|
123
|
-
model: Schema.optional<typeof Schema.String>;
|
|
124
|
-
usage: Schema.optional<Schema.Struct<{
|
|
125
|
-
inputTokens: Schema.optional<typeof Schema.Number>;
|
|
126
|
-
outputTokens: Schema.optional<typeof Schema.Number>;
|
|
127
|
-
totalTokens: Schema.optional<typeof Schema.Number>;
|
|
128
|
-
}>>;
|
|
129
|
-
toolCalls: Schema.optional<typeof Schema.Number>;
|
|
130
|
-
errors: Schema.optional<typeof Schema.Number>;
|
|
131
|
-
duration: Schema.optional<typeof Schema.Number>;
|
|
132
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"text", {
|
|
133
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
134
|
-
mimeType: Schema.optional<typeof Schema.String>;
|
|
135
|
-
text: typeof Schema.String;
|
|
136
|
-
disposition: Schema.optional<typeof Schema.String>;
|
|
137
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolkit", {
|
|
138
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
139
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolCall", {
|
|
140
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
141
|
-
toolCallId: typeof Schema.String;
|
|
142
|
-
name: typeof Schema.String;
|
|
143
|
-
input: typeof Schema.String;
|
|
144
|
-
providerExecuted: typeof Schema.Boolean;
|
|
145
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"toolResult", {
|
|
146
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
147
|
-
toolCallId: typeof Schema.String;
|
|
148
|
-
name: typeof Schema.String;
|
|
149
|
-
result: Schema.optional<typeof Schema.String>;
|
|
150
|
-
error: Schema.optional<typeof Schema.String>;
|
|
151
|
-
providerExecuted: typeof Schema.Boolean;
|
|
152
|
-
}>>, Schema.mutable<Schema.TaggedStruct<"transcript", {
|
|
153
|
-
pending: Schema.optional<typeof Schema.Boolean>;
|
|
154
|
-
started: typeof Schema.String;
|
|
155
|
-
text: typeof Schema.String;
|
|
156
|
-
}>>]>>>;
|
|
157
|
-
properties: Schema.optional<Schema.mutable<Schema.Record$<typeof Schema.String, typeof Schema.Any>>>;
|
|
158
|
-
}>>>>>;
|
|
159
|
-
}>>;
|
|
160
|
-
export interface Thread extends Schema.Schema.Type<typeof _Thread> {
|
|
161
|
-
}
|
|
162
|
-
export interface ThreadEncoded extends Schema.Schema.Encoded<typeof _Thread> {
|
|
163
|
-
}
|
|
164
|
-
export declare const Thread: Schema.Schema<Thread, ThreadEncoded>;
|
|
165
|
-
export declare const make: ({ status, messages, ...props }?: Partial<Obj.MakeProps<typeof Thread>>) => import("@dxos/live-object").Live<Thread>;
|
|
166
|
-
export {};
|
|
167
|
-
//# sourceMappingURL=Thread.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Thread.d.ts","sourceRoot":"","sources":["../../../../src/types/Thread.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAGvC,eAAO,MAAM,YAAY,sGAIxB,CAAC;AAEF,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;+BAWo3e,CAAC;wBAA0C,CAAC;0BAA4C,CAAC;yBAA8F,CAAC;2BAA6C,CAAC;4BAA8C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAP7kf,CAAC;AAC1E,MAAM,WAAW,MAAO,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC;CAAG;AACrE,MAAM,WAAW,aAAc,SAAQ,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,OAAO,CAAC;CAAG;AAC/E,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,aAAa,CAAW,CAAC;AAEpE,eAAO,MAAM,IAAI,GAAI,iCAAgD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,MAAM,CAAC,CAAM,6CAC7D,CAAC"}
|
|
@@ -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 { meta } from '../meta';
|
|
10
|
-
import { type Channel, type ThreadState, type ViewState } from '../types';
|
|
11
|
-
|
|
12
|
-
export namespace ThreadCapabilities {
|
|
13
|
-
export const CallManager = defineCapability<CallManager>(`${meta.id}/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?: Channel.Channel; 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>(`${meta.id}/capability/call-extension`);
|
|
25
|
-
|
|
26
|
-
type GetViewState = (subjectId: string) => ViewState;
|
|
27
|
-
export const State = defineCapability<{ state: DeepReadonly<ThreadState>; getViewState: GetViewState }>(
|
|
28
|
-
`${meta.id}/capability/state`,
|
|
29
|
-
);
|
|
30
|
-
export const MutableState = defineCapability<{ state: ThreadState; getViewState: GetViewState }>(
|
|
31
|
-
`${meta.id}/capability/state`,
|
|
32
|
-
);
|
|
33
|
-
}
|
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
|
|
7
|
-
import { Capabilities, type PluginContext, contributes, createIntent, createResolver } from '@dxos/app-framework';
|
|
8
|
-
import { sleep } from '@dxos/async';
|
|
9
|
-
import { Obj, Relation, Type } from '@dxos/echo';
|
|
10
|
-
import { invariant } from '@dxos/invariant';
|
|
11
|
-
import { ATTENDABLE_PATH_SEPARATOR, DeckAction } from '@dxos/plugin-deck/types';
|
|
12
|
-
import { ObservabilityAction } from '@dxos/plugin-observability/types';
|
|
13
|
-
import { CollectionAction, SpaceAction } from '@dxos/plugin-space/types';
|
|
14
|
-
import { Ref, fullyQualifiedId, getSpace } from '@dxos/react-client/echo';
|
|
15
|
-
import { AnchoredTo, DataType } from '@dxos/schema';
|
|
16
|
-
|
|
17
|
-
import { meta } from '../meta';
|
|
18
|
-
import { Channel, Thread, ThreadAction } from '../types';
|
|
19
|
-
|
|
20
|
-
import { ThreadCapabilities } from './capabilities';
|
|
21
|
-
|
|
22
|
-
export default (context: PluginContext) =>
|
|
23
|
-
contributes(Capabilities.IntentResolver, [
|
|
24
|
-
createResolver({
|
|
25
|
-
intent: ThreadAction.onCreateSpace,
|
|
26
|
-
resolve: ({ space, rootCollection }) =>
|
|
27
|
-
Effect.gen(function* () {
|
|
28
|
-
const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
29
|
-
const { object: collection } = yield* dispatch(
|
|
30
|
-
createIntent(CollectionAction.CreateQueryCollection, { typename: Type.getTypename(Channel.Channel) }),
|
|
31
|
-
);
|
|
32
|
-
rootCollection.objects.push(Ref.make(collection));
|
|
33
|
-
|
|
34
|
-
const { object: channel } = yield* dispatch(
|
|
35
|
-
createIntent(ThreadAction.CreateChannel, { name: 'General', spaceId: space.id }),
|
|
36
|
-
);
|
|
37
|
-
space.db.add(channel);
|
|
38
|
-
}),
|
|
39
|
-
}),
|
|
40
|
-
createResolver({
|
|
41
|
-
intent: ThreadAction.CreateChannel,
|
|
42
|
-
resolve: ({ name }) => ({
|
|
43
|
-
data: {
|
|
44
|
-
object: Channel.make({ name }),
|
|
45
|
-
},
|
|
46
|
-
}),
|
|
47
|
-
}),
|
|
48
|
-
createResolver({
|
|
49
|
-
intent: ThreadAction.CreateChannelThread,
|
|
50
|
-
resolve: ({ channel }) => {
|
|
51
|
-
const thread = Thread.make({ status: 'active' });
|
|
52
|
-
channel.threads.push(Ref.make(thread));
|
|
53
|
-
return {
|
|
54
|
-
data: {
|
|
55
|
-
object: thread,
|
|
56
|
-
},
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
}),
|
|
60
|
-
// TODO(wittjosiah): Break this up into more composable pieces.
|
|
61
|
-
createResolver({
|
|
62
|
-
intent: ThreadAction.Create,
|
|
63
|
-
resolve: ({ name, anchor: _anchor, subject }) => {
|
|
64
|
-
const space = getSpace(subject);
|
|
65
|
-
invariant(space, 'Space not found');
|
|
66
|
-
|
|
67
|
-
const { state } = context.getCapability(ThreadCapabilities.MutableState);
|
|
68
|
-
const subjectId = fullyQualifiedId(subject);
|
|
69
|
-
const thread = Thread.make({ name });
|
|
70
|
-
const anchor = Relation.make(AnchoredTo, {
|
|
71
|
-
[Relation.Source]: thread,
|
|
72
|
-
[Relation.Target]: subject,
|
|
73
|
-
anchor: _anchor,
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const draft = state.drafts[subjectId];
|
|
77
|
-
if (draft) {
|
|
78
|
-
draft.push(anchor);
|
|
79
|
-
} else {
|
|
80
|
-
state.drafts[subjectId] = [anchor];
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
intents: [
|
|
85
|
-
createIntent(ThreadAction.Select, { current: fullyQualifiedId(thread) }),
|
|
86
|
-
createIntent(DeckAction.ChangeCompanion, {
|
|
87
|
-
primary: subjectId,
|
|
88
|
-
companion: `${subjectId}${ATTENDABLE_PATH_SEPARATOR}comments`,
|
|
89
|
-
}),
|
|
90
|
-
],
|
|
91
|
-
};
|
|
92
|
-
},
|
|
93
|
-
}),
|
|
94
|
-
createResolver({
|
|
95
|
-
intent: ThreadAction.AddProposal,
|
|
96
|
-
resolve: ({ text, anchor, sender, subject }) => {
|
|
97
|
-
const space = getSpace(subject);
|
|
98
|
-
invariant(space, 'Space not found');
|
|
99
|
-
|
|
100
|
-
const subjectId = fullyQualifiedId(subject);
|
|
101
|
-
const proposal = Obj.make(DataType.Message, {
|
|
102
|
-
created: new Date().toISOString(),
|
|
103
|
-
sender,
|
|
104
|
-
blocks: [{ _tag: 'proposal', text }],
|
|
105
|
-
});
|
|
106
|
-
const thread = Thread.make({ name: 'Proposal', messages: [Ref.make(proposal)], status: 'active' });
|
|
107
|
-
|
|
108
|
-
return {
|
|
109
|
-
intents: [
|
|
110
|
-
createIntent(SpaceAction.AddObject, { object: thread, target: space, hidden: true }),
|
|
111
|
-
createIntent(SpaceAction.AddRelation, {
|
|
112
|
-
space,
|
|
113
|
-
schema: AnchoredTo,
|
|
114
|
-
source: thread,
|
|
115
|
-
target: subject,
|
|
116
|
-
fields: { anchor },
|
|
117
|
-
}),
|
|
118
|
-
createIntent(ThreadAction.Select, { current: fullyQualifiedId(thread) }),
|
|
119
|
-
createIntent(DeckAction.ChangeCompanion, {
|
|
120
|
-
primary: subjectId,
|
|
121
|
-
companion: `${subjectId}${ATTENDABLE_PATH_SEPARATOR}comments`,
|
|
122
|
-
}),
|
|
123
|
-
],
|
|
124
|
-
};
|
|
125
|
-
},
|
|
126
|
-
}),
|
|
127
|
-
createResolver({
|
|
128
|
-
intent: ThreadAction.Select,
|
|
129
|
-
resolve: ({ current }) => {
|
|
130
|
-
const { state } = context.getCapability(ThreadCapabilities.MutableState);
|
|
131
|
-
state.current = current;
|
|
132
|
-
},
|
|
133
|
-
}),
|
|
134
|
-
createResolver({
|
|
135
|
-
intent: ThreadAction.ToggleResolved,
|
|
136
|
-
resolve: ({ thread }) => {
|
|
137
|
-
if (thread.status === 'active' || thread.status === undefined) {
|
|
138
|
-
thread.status = 'resolved';
|
|
139
|
-
} else if (thread.status === 'resolved') {
|
|
140
|
-
thread.status = 'active';
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
const space = getSpace(thread);
|
|
144
|
-
invariant(space, 'Space not found');
|
|
145
|
-
const spaceId = space.id;
|
|
146
|
-
|
|
147
|
-
return {
|
|
148
|
-
intents: [
|
|
149
|
-
createIntent(ObservabilityAction.SendEvent, {
|
|
150
|
-
name: 'threads.toggle-resolved',
|
|
151
|
-
properties: {
|
|
152
|
-
spaceId,
|
|
153
|
-
threadId: thread.id,
|
|
154
|
-
},
|
|
155
|
-
}),
|
|
156
|
-
],
|
|
157
|
-
};
|
|
158
|
-
},
|
|
159
|
-
}),
|
|
160
|
-
createResolver({
|
|
161
|
-
intent: ThreadAction.Delete,
|
|
162
|
-
resolve: async ({ subject, anchor, thread: _thread }, undo) => {
|
|
163
|
-
const thread = _thread ?? (Relation.getSource(anchor) as Thread.Thread);
|
|
164
|
-
const { state } = context.getCapability(ThreadCapabilities.MutableState);
|
|
165
|
-
const subjectId = fullyQualifiedId(subject);
|
|
166
|
-
const draft = state.drafts[subjectId];
|
|
167
|
-
if (draft) {
|
|
168
|
-
// Check if we're deleting a draft; if so, remo ve it.
|
|
169
|
-
const index = draft.findIndex((a) => a.id === anchor.id);
|
|
170
|
-
if (index !== -1) {
|
|
171
|
-
draft.splice(index, 1);
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
const space = getSpace(anchor);
|
|
177
|
-
if (!space) {
|
|
178
|
-
return;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
if (!undo) {
|
|
182
|
-
// TODO(wittjosiah): Without sleep, rendering crashes at `Relation.setSource(anchor)`.
|
|
183
|
-
space.db.remove(anchor);
|
|
184
|
-
await sleep(100);
|
|
185
|
-
space.db.remove(thread);
|
|
186
|
-
|
|
187
|
-
return {
|
|
188
|
-
undoable: {
|
|
189
|
-
message: ['thread deleted label', { ns: meta.id }],
|
|
190
|
-
data: { thread, anchor },
|
|
191
|
-
},
|
|
192
|
-
intents: [
|
|
193
|
-
createIntent(ObservabilityAction.SendEvent, {
|
|
194
|
-
name: 'threads.delete',
|
|
195
|
-
properties: {
|
|
196
|
-
spaceId: space.id,
|
|
197
|
-
threadId: thread.id,
|
|
198
|
-
},
|
|
199
|
-
}),
|
|
200
|
-
],
|
|
201
|
-
};
|
|
202
|
-
} else {
|
|
203
|
-
// TODO(wittjosiah): Without sleep, rendering crashes at `Relation.setSource(anchor)`.
|
|
204
|
-
space.db.add(thread);
|
|
205
|
-
await sleep(100);
|
|
206
|
-
space.db.add(anchor);
|
|
207
|
-
|
|
208
|
-
return {
|
|
209
|
-
intents: [
|
|
210
|
-
createIntent(ObservabilityAction.SendEvent, {
|
|
211
|
-
name: 'threads.undo-delete',
|
|
212
|
-
properties: {
|
|
213
|
-
spaceId: space.id,
|
|
214
|
-
threadId: thread.id,
|
|
215
|
-
},
|
|
216
|
-
}),
|
|
217
|
-
],
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
},
|
|
221
|
-
}),
|
|
222
|
-
createResolver({
|
|
223
|
-
intent: ThreadAction.AddMessage,
|
|
224
|
-
resolve: ({ anchor, subject, sender, text }) => {
|
|
225
|
-
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
226
|
-
const { state } = context.getCapability(ThreadCapabilities.MutableState);
|
|
227
|
-
const subjectId = fullyQualifiedId(subject);
|
|
228
|
-
const space = getSpace(subject);
|
|
229
|
-
invariant(space, 'Space not found');
|
|
230
|
-
|
|
231
|
-
const message = Obj.make(DataType.Message, {
|
|
232
|
-
created: new Date().toISOString(),
|
|
233
|
-
sender,
|
|
234
|
-
blocks: [{ _tag: 'text', text }],
|
|
235
|
-
// TODO(wittjosiah): Context based on attention.
|
|
236
|
-
// context: context ? Ref.make(context) : undefined,
|
|
237
|
-
});
|
|
238
|
-
thread.messages.push(Ref.make(message));
|
|
239
|
-
|
|
240
|
-
const intents = [];
|
|
241
|
-
const draft = state.drafts[subjectId]?.find((a) => a.id === anchor.id);
|
|
242
|
-
if (draft) {
|
|
243
|
-
// Move draft to document.
|
|
244
|
-
thread.status = 'active';
|
|
245
|
-
// TODO(wittjosiah): This causes the thread to flash as it transitions from draft to db.
|
|
246
|
-
state.drafts[subjectId] = state.drafts[subjectId]?.filter((a) => a.id !== anchor.id);
|
|
247
|
-
intents.push(createIntent(SpaceAction.AddObject, { object: thread, target: space, hidden: true }));
|
|
248
|
-
intents.push(
|
|
249
|
-
createIntent(SpaceAction.AddRelation, {
|
|
250
|
-
space,
|
|
251
|
-
schema: AnchoredTo,
|
|
252
|
-
source: thread,
|
|
253
|
-
target: subject,
|
|
254
|
-
fields: { anchor: draft.anchor },
|
|
255
|
-
}),
|
|
256
|
-
);
|
|
257
|
-
intents.push(
|
|
258
|
-
createIntent(ObservabilityAction.SendEvent, {
|
|
259
|
-
name: 'threads.create',
|
|
260
|
-
properties: {
|
|
261
|
-
spaceId: space.id,
|
|
262
|
-
threadId: thread.id,
|
|
263
|
-
},
|
|
264
|
-
}),
|
|
265
|
-
);
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
intents.push(
|
|
269
|
-
createIntent(ObservabilityAction.SendEvent, {
|
|
270
|
-
name: 'threads.message.add',
|
|
271
|
-
properties: {
|
|
272
|
-
spaceId: space.id,
|
|
273
|
-
threadId: thread.id,
|
|
274
|
-
threadLength: thread.messages.length,
|
|
275
|
-
messageId: message.id,
|
|
276
|
-
messageLength: text.length,
|
|
277
|
-
},
|
|
278
|
-
}),
|
|
279
|
-
);
|
|
280
|
-
|
|
281
|
-
return { intents };
|
|
282
|
-
},
|
|
283
|
-
}),
|
|
284
|
-
createResolver({
|
|
285
|
-
intent: ThreadAction.DeleteMessage,
|
|
286
|
-
resolve: ({ subject, anchor, messageId, message, messageIndex }, undo) => {
|
|
287
|
-
const thread = Relation.getSource(anchor) as Thread.Thread;
|
|
288
|
-
const space = getSpace(subject);
|
|
289
|
-
invariant(space, 'Space not found');
|
|
290
|
-
|
|
291
|
-
if (!undo) {
|
|
292
|
-
const messageIndex = thread.messages.findIndex(Ref.hasObjectId(messageId));
|
|
293
|
-
const message = thread.messages[messageIndex]?.target;
|
|
294
|
-
if (!message) {
|
|
295
|
-
return;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
if (messageIndex === 0 && thread.messages.length === 1) {
|
|
299
|
-
// If the message is the only message in the thread, delete the thread.
|
|
300
|
-
return {
|
|
301
|
-
intents: [createIntent(ThreadAction.Delete, { subject, anchor })],
|
|
302
|
-
};
|
|
303
|
-
} else {
|
|
304
|
-
thread.messages.splice(messageIndex, 1);
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
return {
|
|
308
|
-
undoable: {
|
|
309
|
-
message: ['message deleted label', { ns: meta.id }],
|
|
310
|
-
data: { message, messageIndex },
|
|
311
|
-
},
|
|
312
|
-
intents: [
|
|
313
|
-
createIntent(ObservabilityAction.SendEvent, {
|
|
314
|
-
name: 'threads.message.delete',
|
|
315
|
-
properties: {
|
|
316
|
-
spaceId: space.id,
|
|
317
|
-
threadId: thread.id,
|
|
318
|
-
messageId: message.id,
|
|
319
|
-
},
|
|
320
|
-
}),
|
|
321
|
-
],
|
|
322
|
-
};
|
|
323
|
-
} else {
|
|
324
|
-
if (messageIndex === undefined || !message) {
|
|
325
|
-
return;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
thread.messages.splice(messageIndex, 0, Ref.make(message));
|
|
329
|
-
return {
|
|
330
|
-
intents: [
|
|
331
|
-
createIntent(ObservabilityAction.SendEvent, {
|
|
332
|
-
name: 'threads.message.undo-delete',
|
|
333
|
-
properties: {
|
|
334
|
-
spaceId: space.id,
|
|
335
|
-
threadId: thread.id,
|
|
336
|
-
messageId: message.id,
|
|
337
|
-
},
|
|
338
|
-
}),
|
|
339
|
-
],
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
}),
|
|
344
|
-
]);
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Tool from '@effect/ai/Tool';
|
|
6
|
-
import * as Toolkit from '@effect/ai/Toolkit';
|
|
7
|
-
import * as Array from 'effect/Array';
|
|
8
|
-
import * as Effect from 'effect/Effect';
|
|
9
|
-
import * as Function from 'effect/Function';
|
|
10
|
-
import * as Schema from 'effect/Schema';
|
|
11
|
-
|
|
12
|
-
import { Capabilities, type PluginContext, contributes, createIntent } from '@dxos/app-framework';
|
|
13
|
-
import { ArtifactId, computeDiffsWithCursors } from '@dxos/assistant';
|
|
14
|
-
import { type SpaceId } from '@dxos/keys';
|
|
15
|
-
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
16
|
-
import { type Markdown } from '@dxos/plugin-markdown/types';
|
|
17
|
-
import { createDocAccessor } from '@dxos/react-client/echo';
|
|
18
|
-
import { trim } from '@dxos/util';
|
|
19
|
-
|
|
20
|
-
import { ThreadAction } from '../types';
|
|
21
|
-
|
|
22
|
-
// TODO(wittjosiah): How to make this work for more than Documents?
|
|
23
|
-
const Toolkit$ = Toolkit.make(
|
|
24
|
-
Tool.make('add-proposals', {
|
|
25
|
-
description: trim`
|
|
26
|
-
Proposes a set of changes to a document.
|
|
27
|
-
`,
|
|
28
|
-
parameters: {
|
|
29
|
-
id: ArtifactId,
|
|
30
|
-
diffs: Schema.Array(Schema.String).annotations({
|
|
31
|
-
description: 'The diffs to propose for the document.',
|
|
32
|
-
}),
|
|
33
|
-
},
|
|
34
|
-
success: Schema.Any,
|
|
35
|
-
failure: Schema.Never,
|
|
36
|
-
}),
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
export namespace ThreadToolkit {
|
|
40
|
-
export const Toolkit = Toolkit$;
|
|
41
|
-
|
|
42
|
-
export const createLayer = (context: PluginContext) =>
|
|
43
|
-
Toolkit$.toLayer({
|
|
44
|
-
'add-proposals': ({ id, diffs: _diffs }) =>
|
|
45
|
-
Effect.gen(function* () {
|
|
46
|
-
// TODO(wittjosiah): Get capabilities via layers.
|
|
47
|
-
const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
48
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
49
|
-
const state = context.getCapability(Capabilities.Layout);
|
|
50
|
-
|
|
51
|
-
const dxn = ArtifactId.toDXN(id, state.workspace as SpaceId);
|
|
52
|
-
const echoDxn = dxn.asEchoDXN();
|
|
53
|
-
if (!echoDxn) {
|
|
54
|
-
throw new Error(`Invalid object ID: ${id}`);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const space = client.spaces.get(echoDxn.spaceId!);
|
|
58
|
-
const object = space?.db.getObjectById<Markdown.Document>(echoDxn.echoId);
|
|
59
|
-
if (!object) {
|
|
60
|
-
throw new Error(`Object not found: ${id}`);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const content = yield* Effect.promise(() => object.content.load());
|
|
64
|
-
const accessor = createDocAccessor(content, ['content']);
|
|
65
|
-
yield* Function.pipe(
|
|
66
|
-
computeDiffsWithCursors(accessor, _diffs),
|
|
67
|
-
Array.map(({ cursor, text }) =>
|
|
68
|
-
createIntent(ThreadAction.AddProposal, {
|
|
69
|
-
subject: object,
|
|
70
|
-
sender: { role: 'assistant' },
|
|
71
|
-
anchor: cursor,
|
|
72
|
-
text,
|
|
73
|
-
}),
|
|
74
|
-
),
|
|
75
|
-
Array.map(dispatch),
|
|
76
|
-
Effect.allWith({ concurrency: 'unbounded' }),
|
|
77
|
-
);
|
|
78
|
-
}).pipe(Effect.orDie),
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export default (context: PluginContext) => [
|
|
83
|
-
contributes(Capabilities.Toolkit, ThreadToolkit.Toolkit),
|
|
84
|
-
contributes(Capabilities.ToolkitHandler, ThreadToolkit.createLayer(context)),
|
|
85
|
-
];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2024 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import React from 'react';
|
|
6
|
-
|
|
7
|
-
import { useCapability } from '@dxos/app-framework';
|
|
8
|
-
|
|
9
|
-
import { ThreadCapabilities } from '../capabilities';
|
|
10
|
-
|
|
11
|
-
import { ChannelContainer } from './ChannelContainer';
|
|
12
|
-
|
|
13
|
-
export const CallSidebar = () => {
|
|
14
|
-
const call = useCapability(ThreadCapabilities.CallManager);
|
|
15
|
-
return <ChannelContainer roomId={call.roomId} />;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export default CallSidebar;
|