@dxos/plugin-assistant 0.8.4-main.9be5663bfe → 0.8.4-main.abd8ff62ef
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/AssistantSettings-GG52BLKS.mjs +40 -0
- package/dist/lib/browser/AssistantSettings-GG52BLKS.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +26 -3
- package/dist/lib/browser/blueprints/index.mjs.map +4 -4
- package/dist/lib/browser/{chunk-ATHYBVGN.mjs → chunk-DVOOFAWU.mjs} +4 -5
- package/dist/lib/browser/chunk-DVOOFAWU.mjs.map +7 -0
- package/dist/lib/browser/chunk-M55MBYG7.mjs +932 -0
- package/dist/lib/browser/chunk-M55MBYG7.mjs.map +7 -0
- package/dist/lib/browser/{chunk-RUV2WOQH.mjs → chunk-SEMCG4ZK.mjs} +58 -17
- package/dist/lib/browser/chunk-SEMCG4ZK.mjs.map +7 -0
- package/dist/lib/browser/chunk-VK53MITK.mjs +2300 -0
- package/dist/lib/browser/chunk-VK53MITK.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +73 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/components/index.mjs +20 -0
- package/dist/lib/browser/components/index.mjs.map +7 -0
- package/dist/lib/browser/{create-chat-LBZHGVSN.mjs → create-chat-E2ZLVTLP.mjs} +4 -13
- package/dist/lib/browser/create-chat-E2ZLVTLP.mjs.map +7 -0
- package/dist/lib/browser/{ensure-companion-chat-FR4AWZ2P.mjs → ensure-companion-chat-7GDMXSQW.mjs} +4 -4
- package/dist/lib/browser/ensure-companion-chat-7GDMXSQW.mjs.map +7 -0
- package/dist/lib/browser/hooks/index.mjs +39 -0
- package/dist/lib/browser/hooks/index.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +43 -3233
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{on-create-space-54RNX5JI.mjs → on-create-space-4J3KTNAJ.mjs} +3 -3
- package/dist/lib/browser/{on-create-space-54RNX5JI.mjs.map → on-create-space-4J3KTNAJ.mjs.map} +1 -1
- package/dist/lib/browser/operations/index.mjs +3 -3
- package/dist/lib/browser/operations/index.mjs.map +3 -3
- package/dist/lib/browser/{resolve-navigation-targets-NZOD66NY.mjs → resolve-navigation-targets-3ZPQE6SZ.mjs} +3 -3
- package/dist/lib/browser/{resolve-navigation-targets-NZOD66NY.mjs.map → resolve-navigation-targets-3ZPQE6SZ.mjs.map} +1 -1
- package/dist/lib/browser/{run-prompt-in-new-chat-4YQ37XIS.mjs → run-prompt-in-new-chat-AA3KPBDN.mjs} +9 -39
- package/dist/lib/browser/run-prompt-in-new-chat-AA3KPBDN.mjs.map +7 -0
- package/dist/lib/browser/{set-current-chat-WJI3WAVM.mjs → set-current-chat-P4VHI3YF.mjs} +4 -4
- package/dist/lib/browser/set-current-chat-P4VHI3YF.mjs.map +7 -0
- package/dist/lib/browser/translations.mjs +172 -0
- package/dist/lib/browser/translations.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -3
- package/dist/lib/browser/{update-chat-name-3Y36KFAS.mjs → update-chat-name-VWKNUON7.mjs} +7 -22
- package/dist/lib/browser/update-chat-name-VWKNUON7.mjs.map +7 -0
- package/dist/lib/node-esm/AssistantSettings-23A5IMHS.mjs +41 -0
- package/dist/lib/node-esm/AssistantSettings-23A5IMHS.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +26 -3
- package/dist/lib/node-esm/blueprints/index.mjs.map +4 -4
- package/dist/lib/node-esm/chunk-FWC3ZGPH.mjs +933 -0
- package/dist/lib/node-esm/chunk-FWC3ZGPH.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JKEB3NFZ.mjs +2302 -0
- package/dist/lib/node-esm/chunk-JKEB3NFZ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PXAJSTGZ.mjs → chunk-MBDVPB4V.mjs} +4 -5
- package/dist/lib/node-esm/chunk-MBDVPB4V.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PY4X6FJT.mjs → chunk-XAFVSEUJ.mjs} +58 -17
- package/dist/lib/node-esm/chunk-XAFVSEUJ.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +74 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/components/index.mjs +21 -0
- package/dist/lib/node-esm/components/index.mjs.map +7 -0
- package/dist/lib/node-esm/{create-chat-3BEG4R6J.mjs → create-chat-UQQ3542N.mjs} +4 -13
- package/dist/lib/node-esm/create-chat-UQQ3542N.mjs.map +7 -0
- package/dist/lib/node-esm/{ensure-companion-chat-BLP7NT32.mjs → ensure-companion-chat-LVCPD4DJ.mjs} +4 -4
- package/dist/lib/node-esm/ensure-companion-chat-LVCPD4DJ.mjs.map +7 -0
- package/dist/lib/node-esm/hooks/index.mjs +40 -0
- package/dist/lib/node-esm/hooks/index.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +43 -3233
- 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-YRPZ6HZY.mjs → on-create-space-M63UBTTT.mjs} +3 -3
- package/dist/lib/node-esm/{on-create-space-YRPZ6HZY.mjs.map → on-create-space-M63UBTTT.mjs.map} +1 -1
- package/dist/lib/node-esm/operations/index.mjs +3 -3
- package/dist/lib/node-esm/operations/index.mjs.map +3 -3
- package/dist/lib/node-esm/{resolve-navigation-targets-3PPK7XLH.mjs → resolve-navigation-targets-HO77CAFT.mjs} +3 -3
- package/dist/lib/node-esm/{resolve-navigation-targets-3PPK7XLH.mjs.map → resolve-navigation-targets-HO77CAFT.mjs.map} +1 -1
- package/dist/lib/node-esm/{run-prompt-in-new-chat-2IJBSDTM.mjs → run-prompt-in-new-chat-RIRYYYPK.mjs} +9 -39
- package/dist/lib/node-esm/run-prompt-in-new-chat-RIRYYYPK.mjs.map +7 -0
- package/dist/lib/node-esm/{set-current-chat-KBMMZULR.mjs → set-current-chat-Z7GJ52VX.mjs} +4 -4
- package/dist/lib/node-esm/set-current-chat-Z7GJ52VX.mjs.map +7 -0
- package/dist/lib/node-esm/translations.mjs +173 -0
- package/dist/lib/node-esm/translations.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -3
- package/dist/lib/node-esm/{update-chat-name-HM2P4NSI.mjs → update-chat-name-GV4HX32Z.mjs} +7 -22
- package/dist/lib/node-esm/update-chat-name-GV4HX32Z.mjs.map +7 -0
- package/dist/types/src/AssistantPlugin.d.ts +1 -0
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/AssistantPlugin.node.d.ts +4 -0
- package/dist/types/src/AssistantPlugin.node.d.ts.map +1 -0
- package/dist/types/src/AssistantPlugin.test.d.ts +2 -0
- package/dist/types/src/AssistantPlugin.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/assistant/blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-service.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/companion-chat-provisioner.d.ts.map +1 -1
- package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +5 -17
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/local-model-resolver.d.ts +6 -3
- package/dist/types/src/capabilities/local-model-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown.d.ts +1 -1
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -1
- package/dist/types/src/capabilities/migrations.d.ts +1 -1
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -13
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/toolkit.d.ts.map +1 -1
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +10 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +1 -1
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
- package/dist/types/src/components/AssistantSettings/AssistantSettings.stories.d.ts +1 -539
- package/dist/types/src/components/AssistantSettings/AssistantSettings.stories.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +32 -42
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/context.d.ts +29 -0
- package/dist/types/src/components/Chat/context.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatMcpErrors.d.ts +12 -0
- package/dist/types/src/components/ChatPrompt/ChatMcpErrors.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +6 -2
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts +19 -0
- package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatPrompt.d.ts +28 -0
- package/dist/types/src/components/ChatPrompt/ChatPrompt.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatStatus.d.ts +20 -0
- package/dist/types/src/components/ChatPrompt/ChatStatus.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/index.d.ts +3 -0
- package/dist/types/src/components/ChatPrompt/index.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Anchor.stories.d.ts +14 -0
- package/dist/types/src/components/ChatThread/Anchor.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +6 -3
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +4 -541
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Link.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts +9 -540
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/registry.d.ts +18 -0
- package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/sync.d.ts +40 -14
- package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/tool-widget-state.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/FallbackWidget.d.ts +4 -4
- package/dist/types/src/components/ChatThread/widgets/FallbackWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/ReferenceWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/SelectWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/StatsWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/StatusWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/SuggestionWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/SummaryWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.stories.d.ts +1 -539
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/widgets/defaults.d.ts +5 -0
- package/dist/types/src/components/ChatThread/widgets/defaults.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/index.d.ts +1 -2
- package/dist/types/src/components/ChatThread/widgets/index.d.ts.map +1 -1
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts +2 -1
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts.map +1 -1
- package/dist/types/src/components/ProcessTree/ProcessTree.stories.d.ts +0 -1
- package/dist/types/src/components/ProcessTree/ProcessTree.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +2 -2
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +1 -539
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +3 -3
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +1 -539
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -1
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +4 -4
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +3 -3
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +1 -539
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/containers/AgentArticle/AgentArticle.d.ts +2 -2
- package/dist/types/src/containers/AgentArticle/AgentArticle.d.ts.map +1 -1
- package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts +7 -540
- package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/AgentProperties/AgentProperties.d.ts +1 -1
- package/dist/types/src/containers/AgentProperties/AgentProperties.d.ts.map +1 -1
- package/dist/types/src/containers/AgentProperties/AgentProperties.stories.d.ts +1 -539
- package/dist/types/src/containers/AgentProperties/AgentProperties.stories.d.ts.map +1 -1
- package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts +1 -1
- package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts.map +1 -1
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts +1 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/containers/ChatDialog/ChatDialog.d.ts.map +1 -1
- package/dist/types/src/containers/RoutineArticle/RoutineArticle.d.ts +6 -0
- package/dist/types/src/containers/RoutineArticle/RoutineArticle.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineArticle/index.d.ts +2 -0
- package/dist/types/src/containers/RoutineArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineList/RoutineList.d.ts +6 -0
- package/dist/types/src/containers/RoutineList/RoutineList.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineList/RoutineList.stories.d.ts +21 -0
- package/dist/types/src/containers/RoutineList/RoutineList.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineList/index.d.ts +2 -0
- package/dist/types/src/containers/RoutineList/index.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts +6 -4
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts.map +1 -1
- package/dist/types/src/containers/TracePanel/TracePanel.stories.d.ts +13 -0
- package/dist/types/src/containers/TracePanel/TracePanel.stories.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.d.ts +1 -1
- package/dist/types/src/containers/TracePanel/dxn-extractor.d.ts.map +1 -1
- package/dist/types/src/containers/TracePanel/execution-graph.d.ts +97 -0
- package/dist/types/src/containers/TracePanel/execution-graph.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/execution-graph.test.d.ts +2 -0
- package/dist/types/src/containers/TracePanel/execution-graph.test.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/index.d.ts.map +1 -1
- package/dist/types/src/containers/TracePanel/testing/index.d.ts +3 -0
- package/dist/types/src/containers/TracePanel/testing/index.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts +14 -0
- package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/testing/snapshot-playback.d.ts +12 -0
- package/dist/types/src/containers/TracePanel/testing/snapshot-playback.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts +3 -2
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts.map +1 -1
- package/dist/types/src/containers/TriggerStatus/index.d.ts +1 -1
- package/dist/types/src/containers/TriggerStatus/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +2 -2
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/extensions/prompt-extension.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +2 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatKeymap.d.ts +12 -0
- package/dist/types/src/hooks/useChatKeymap.d.ts.map +1 -0
- package/dist/types/src/hooks/useChatProcessor.d.ts +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -1
- package/dist/types/src/hooks/useDebug.d.ts +10 -0
- package/dist/types/src/hooks/useDebug.d.ts.map +1 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -1
- package/dist/types/src/hooks/useFlush.d.ts +1 -1
- package/dist/types/src/hooks/useFlush.d.ts.map +1 -1
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -1
- package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -5
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/create-chat.d.ts +1 -1
- package/dist/types/src/operations/create-chat.d.ts.map +1 -1
- package/dist/types/src/operations/definitions.d.ts +24 -19
- package/dist/types/src/operations/definitions.d.ts.map +1 -1
- package/dist/types/src/operations/ensure-companion-chat.d.ts +1 -1
- package/dist/types/src/operations/ensure-companion-chat.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/on-create-space.d.ts +1 -1
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -1
- package/dist/types/src/operations/prompt.test.d.ts +2 -0
- package/dist/types/src/operations/prompt.test.d.ts.map +1 -0
- package/dist/types/src/operations/resolve-navigation-targets.d.ts +1 -1
- package/dist/types/src/operations/resolve-navigation-targets.d.ts.map +1 -1
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts +1 -1
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts.map +1 -1
- package/dist/types/src/operations/set-current-chat.d.ts +1 -1
- package/dist/types/src/operations/set-current-chat.d.ts.map +1 -1
- package/dist/types/src/operations/update-chat-name.d.ts +1 -1
- package/dist/types/src/operations/update-chat-name.d.ts.map +1 -1
- package/dist/types/src/processor/presets.d.ts +1 -1
- package/dist/types/src/processor/presets.d.ts.map +1 -1
- package/dist/types/src/processor/processor.d.ts +25 -7
- package/dist/types/src/processor/processor.d.ts.map +1 -1
- package/dist/types/src/queue-logger.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.test.d.ts +2 -0
- package/dist/types/src/testing/test-generator.test.d.ts.map +1 -0
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/testing/test-trace.d.ts +5 -0
- package/dist/types/src/testing/test-trace.d.ts.map +1 -0
- package/dist/types/src/testing/trace-timeline.test.d.ts +2 -0
- package/dist/types/src/testing/trace-timeline.test.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +2 -539
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +22 -6
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +22 -6
- package/dist/types/src/types/Settings.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +1 -13
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/events.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +1 -1
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +113 -99
- package/src/AssistantPlugin.node.ts +125 -0
- package/src/AssistantPlugin.test.ts +35 -0
- package/src/AssistantPlugin.tsx +22 -16
- package/src/blueprints/assistant/blueprint.test.ts +3 -3
- package/src/blueprints/assistant/blueprint.ts +3 -3
- package/src/capabilities/app-graph-builder.ts +5 -61
- package/src/capabilities/blueprint-definition.ts +2 -4
- package/src/capabilities/index.ts +2 -1
- package/src/capabilities/local-model-resolver.ts +14 -4
- package/src/capabilities/markdown.ts +1 -1
- package/src/capabilities/migrations.ts +1 -7
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +38 -28
- package/src/capabilities/toolkit.ts +2 -2
- package/src/{components/Typewriter → cli}/index.ts +1 -1
- package/src/cli/plugin.ts +83 -0
- package/src/components/AssistantSettings/AssistantSettings.stories.tsx +3 -2
- package/src/components/AssistantSettings/AssistantSettings.tsx +22 -111
- package/src/components/Chat/Chat.tsx +82 -286
- package/src/components/Chat/context.ts +39 -0
- package/src/components/ChatPrompt/ChatActions.tsx +10 -10
- package/src/components/ChatPrompt/ChatMcpErrors.tsx +50 -0
- package/src/components/ChatPrompt/ChatOptions.stories.tsx +136 -0
- package/src/components/ChatPrompt/ChatOptions.tsx +229 -37
- package/src/components/ChatPrompt/ChatPrompt.tsx +182 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +1 -1
- package/src/components/ChatPrompt/ChatStatus.tsx +123 -0
- package/src/components/ChatPrompt/index.ts +3 -0
- package/src/components/ChatThread/Anchor.stories.tsx +95 -0
- package/src/components/ChatThread/ChatThread.stories.tsx +39 -29
- package/src/components/ChatThread/ChatThread.tsx +36 -21
- package/src/components/ChatThread/DEBUG.md +41 -0
- package/src/components/ChatThread/MarkdownStream.stories.tsx +43 -5
- package/src/components/ChatThread/registry.tsx +72 -24
- package/src/components/ChatThread/sync.test.ts +175 -15
- package/src/components/ChatThread/sync.ts +87 -102
- package/src/components/ChatThread/testing/reasoning.md +25 -0
- package/src/components/ChatThread/widgets/FallbackWidget.tsx +2 -2
- package/src/components/ChatThread/widgets/ReasoningWidget.stories.tsx +1 -1
- package/src/components/ChatThread/widgets/ReasoningWidget.ts +6 -6
- package/src/components/ChatThread/widgets/ReferenceWidget.ts +3 -1
- package/src/components/ChatThread/widgets/SelectWidget.ts +3 -1
- package/src/components/ChatThread/widgets/StatsWidget.ts +3 -1
- package/src/components/ChatThread/widgets/StatusWidget.ts +3 -3
- package/src/components/ChatThread/widgets/SuggestionWidget.ts +1 -1
- package/src/components/ChatThread/widgets/SummaryWidget.tsx +3 -2
- package/src/components/ChatThread/widgets/ToolWidget.stories.tsx +3 -2
- package/src/components/ChatThread/widgets/ToolWidget.tsx +2 -2
- package/src/components/ChatThread/widgets/defaults.ts +8 -0
- package/src/components/ChatThread/widgets/index.ts +1 -2
- package/src/components/ProcessTree/ProcessTree.stories.tsx +12 -38
- package/src/components/ProcessTree/ProcessTree.tsx +70 -37
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +3 -2
- package/src/components/TemplateEditor/TemplateEditor.tsx +5 -5
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +4 -3
- package/src/components/TemplateEditor/TemplateForm.tsx +3 -3
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +1 -1
- package/src/components/ToolBlock/ToolBlock.tsx +2 -2
- package/src/components/Toolbox/Toolbox.stories.tsx +2 -1
- package/src/components/Toolbox/Toolbox.tsx +2 -2
- package/src/containers/AgentArticle/AgentArticle.stories.tsx +40 -25
- package/src/containers/AgentArticle/AgentArticle.tsx +96 -53
- package/src/containers/AgentProperties/AgentProperties.stories.tsx +14 -4
- package/src/containers/AgentProperties/AgentProperties.tsx +46 -88
- package/src/containers/BlueprintArticle/BlueprintArticle.tsx +1 -1
- package/src/containers/ChatCompanion/ChatCompanion.tsx +1 -1
- package/src/containers/ChatContainer/ChatContainer.tsx +16 -6
- package/src/containers/ChatDialog/ChatDialog.tsx +3 -9
- package/src/containers/{PromptArticle/PromptArticle.tsx → RoutineArticle/RoutineArticle.tsx} +4 -4
- package/src/containers/RoutineArticle/index.ts +5 -0
- package/src/containers/{PromptList/PromptList.stories.tsx → RoutineList/RoutineList.stories.tsx} +11 -10
- package/src/containers/{PromptList/PromptList.tsx → RoutineList/RoutineList.tsx} +6 -5
- package/src/containers/RoutineList/index.ts +5 -0
- package/src/containers/TracePanel/TracePanel.stories.tsx +278 -0
- package/src/containers/TracePanel/TracePanel.tsx +95 -318
- package/src/containers/TracePanel/dxn-extractor.test.ts +7 -7
- package/src/containers/TracePanel/dxn-extractor.ts +4 -4
- package/src/containers/TracePanel/execution-graph.test.ts +382 -0
- package/src/containers/TracePanel/execution-graph.ts +579 -0
- package/src/containers/TracePanel/testing/index.ts +6 -0
- package/src/containers/TracePanel/testing/simulated-agent.ts +114 -0
- package/src/containers/TracePanel/testing/snapshot-playback.ts +45 -0
- package/src/containers/TriggerStatus/TriggerStatus.tsx +19 -34
- package/src/containers/TriggerStatus/index.ts +1 -1
- package/src/containers/index.ts +2 -2
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useBlueprintRegistry.ts +1 -1
- package/src/hooks/useChatKeymap.ts +52 -0
- package/src/hooks/useChatProcessor.ts +11 -11
- package/src/hooks/useDebug.ts +38 -0
- package/src/index.ts +8 -6
- package/src/operations/create-chat.ts +1 -2
- package/src/operations/definitions.ts +3 -4
- package/src/operations/ensure-companion-chat.ts +1 -1
- package/src/operations/index.ts +1 -1
- package/src/operations/on-create-space.ts +1 -1
- package/src/operations/prompt.test.ts +77 -0
- package/src/operations/resolve-navigation-targets.ts +1 -1
- package/src/operations/run-prompt-in-new-chat.ts +2 -3
- package/src/operations/set-current-chat.ts +1 -1
- package/src/operations/update-chat-name.ts +2 -2
- package/src/processor/presets.ts +9 -1
- package/src/processor/processor.test.ts +4 -4
- package/src/processor/processor.ts +43 -27
- package/src/queue-logger.ts +19 -8
- package/src/testing/data/trace-timeline.dx.json +4657 -0
- package/src/testing/index.ts +1 -0
- package/src/testing/test-generator.test.ts +81 -0
- package/src/testing/test-generator.ts +46 -40
- package/src/testing/test-trace.ts +20 -0
- package/src/testing/trace-timeline.conversations.json +1 -0
- package/src/testing/trace-timeline.test.ts +249 -0
- package/src/translations.ts +49 -34
- package/src/types/Assistant.ts +11 -0
- package/src/types/Settings.ts +63 -8
- package/src/types/index.ts +0 -1
- package/src/types/service.ts +1 -1
- package/dist/lib/browser/AssistantSettings-7QMO3LGF.mjs +0 -97
- package/dist/lib/browser/AssistantSettings-7QMO3LGF.mjs.map +0 -7
- package/dist/lib/browser/chunk-ATHYBVGN.mjs.map +0 -7
- package/dist/lib/browser/chunk-EZRS3J25.mjs +0 -30
- package/dist/lib/browser/chunk-EZRS3J25.mjs.map +0 -7
- package/dist/lib/browser/chunk-RUV2WOQH.mjs.map +0 -7
- package/dist/lib/browser/create-chat-LBZHGVSN.mjs.map +0 -7
- package/dist/lib/browser/ensure-companion-chat-FR4AWZ2P.mjs.map +0 -7
- package/dist/lib/browser/run-prompt-in-new-chat-4YQ37XIS.mjs.map +0 -7
- package/dist/lib/browser/set-current-chat-WJI3WAVM.mjs.map +0 -7
- package/dist/lib/browser/update-chat-name-3Y36KFAS.mjs.map +0 -7
- package/dist/lib/node-esm/AssistantSettings-UVUTKO7E.mjs +0 -98
- package/dist/lib/node-esm/AssistantSettings-UVUTKO7E.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NZIKC7AN.mjs +0 -32
- package/dist/lib/node-esm/chunk-NZIKC7AN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PXAJSTGZ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-PY4X6FJT.mjs.map +0 -7
- package/dist/lib/node-esm/create-chat-3BEG4R6J.mjs.map +0 -7
- package/dist/lib/node-esm/ensure-companion-chat-BLP7NT32.mjs.map +0 -7
- package/dist/lib/node-esm/run-prompt-in-new-chat-2IJBSDTM.mjs.map +0 -7
- package/dist/lib/node-esm/set-current-chat-KBMMZULR.mjs.map +0 -7
- package/dist/lib/node-esm/update-chat-name-HM2P4NSI.mjs.map +0 -7
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +0 -10
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +0 -1
- package/dist/types/src/components/ChatProgress/index.d.ts +0 -2
- package/dist/types/src/components/ChatProgress/index.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/PromptWidget.d.ts +0 -14
- package/dist/types/src/components/ChatThread/widgets/PromptWidget.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts +0 -12
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/Typewriter.d.ts +0 -11
- package/dist/types/src/components/Typewriter/Typewriter.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts +0 -7
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts +0 -5
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/index.d.ts +0 -2
- package/dist/types/src/components/Typewriter/index.d.ts.map +0 -1
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts +0 -6
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts.map +0 -1
- package/dist/types/src/containers/PromptArticle/index.d.ts +0 -2
- package/dist/types/src/containers/PromptArticle/index.d.ts.map +0 -1
- package/dist/types/src/containers/PromptList/PromptList.d.ts +0 -6
- package/dist/types/src/containers/PromptList/PromptList.d.ts.map +0 -1
- package/dist/types/src/containers/PromptList/PromptList.stories.d.ts +0 -559
- package/dist/types/src/containers/PromptList/PromptList.stories.d.ts.map +0 -1
- package/dist/types/src/containers/PromptList/index.d.ts +0 -2
- package/dist/types/src/containers/PromptList/index.d.ts.map +0 -1
- package/dist/types/src/types/defs.d.ts +0 -2
- package/dist/types/src/types/defs.d.ts.map +0 -1
- package/src/blueprints/assistant/blueprint.conversations.json +0 -1
- package/src/components/ChatProgress/ChatProgress.tsx +0 -56
- package/src/components/ChatProgress/index.ts +0 -5
- package/src/components/ChatThread/widgets/PromptWidget.ts +0 -28
- package/src/components/Typewriter/AssistantToolbar.tsx +0 -161
- package/src/components/Typewriter/Typewriter.stories.tsx +0 -86
- package/src/components/Typewriter/Typewriter.tsx +0 -50
- package/src/components/Typewriter/assistant-extension.tsx +0 -141
- package/src/containers/PromptArticle/index.ts +0 -5
- package/src/containers/PromptList/index.ts +0 -5
- package/src/types/defs.ts +0 -5
|
@@ -9,25 +9,30 @@ import React from 'react';
|
|
|
9
9
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
10
|
import { Plan, Agent } from '@dxos/assistant-toolkit';
|
|
11
11
|
import { Obj, Ref } from '@dxos/echo';
|
|
12
|
+
import { AutomationPlugin } from '@dxos/plugin-automation';
|
|
12
13
|
import { ClientPlugin } from '@dxos/plugin-client';
|
|
13
14
|
import { initializeIdentity } from '@dxos/plugin-client/testing';
|
|
14
15
|
import { PreviewPlugin } from '@dxos/plugin-preview';
|
|
15
|
-
import {
|
|
16
|
+
import { corePlugins, StorybookPlugin } from '@dxos/plugin-testing';
|
|
16
17
|
import { random } from '@dxos/random';
|
|
17
18
|
import { Filter, useQuery, useSpaces } from '@dxos/react-client/echo';
|
|
18
|
-
import { Loading } from '@dxos/react-ui/testing';
|
|
19
|
+
import { Loading, withTheme } from '@dxos/react-ui/testing';
|
|
19
20
|
import { Text } from '@dxos/schema';
|
|
20
|
-
import { createObjectFactory } from '@dxos/schema/testing';
|
|
21
|
+
import { createObjectFactory, TypeSpec } from '@dxos/schema/testing';
|
|
21
22
|
import { Message, Organization, Person } from '@dxos/types';
|
|
22
23
|
|
|
23
24
|
import { createMessage } from '#testing';
|
|
25
|
+
import { translations } from '#translations';
|
|
24
26
|
|
|
25
|
-
import {
|
|
27
|
+
import { AssistantPlugin } from '../../AssistantPlugin';
|
|
26
28
|
import { AgentArticle } from './AgentArticle';
|
|
27
29
|
|
|
28
30
|
random.seed(1);
|
|
29
31
|
|
|
30
|
-
type DefaultStoryProps = {
|
|
32
|
+
type DefaultStoryProps = {
|
|
33
|
+
spec?: TypeSpec[];
|
|
34
|
+
inputs?: boolean;
|
|
35
|
+
};
|
|
31
36
|
|
|
32
37
|
const DefaultStory = (_: DefaultStoryProps) => {
|
|
33
38
|
const [space] = useSpaces();
|
|
@@ -43,7 +48,8 @@ const meta = {
|
|
|
43
48
|
title: 'plugins/plugin-assistant/containers/AgentArticle',
|
|
44
49
|
render: DefaultStory,
|
|
45
50
|
decorators: [
|
|
46
|
-
|
|
51
|
+
withTheme(),
|
|
52
|
+
withPluginManager<DefaultStoryProps>(({ args: { spec = [], inputs } }) => ({
|
|
47
53
|
plugins: [
|
|
48
54
|
...corePlugins(),
|
|
49
55
|
ClientPlugin({
|
|
@@ -55,29 +61,26 @@ const meta = {
|
|
|
55
61
|
yield* Effect.promise(() => space.waitUntilReady());
|
|
56
62
|
|
|
57
63
|
const factory = createObjectFactory(space.db, random as any);
|
|
58
|
-
const
|
|
59
|
-
factory([
|
|
60
|
-
{ type: Organization.Organization, count: 10 },
|
|
61
|
-
{ type: Person.Person, count: 10 },
|
|
62
|
-
]),
|
|
63
|
-
);
|
|
64
|
+
const artifacts = yield* Effect.promise(() => factory(spec));
|
|
64
65
|
|
|
65
66
|
const inputQueue = space.queues.create();
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
if (inputs) {
|
|
68
|
+
yield* Effect.promise(() =>
|
|
69
|
+
inputQueue.append([
|
|
70
|
+
createMessage('user', [{ _tag: 'text', text: 'Summarize the current artifacts.' }]),
|
|
71
|
+
createMessage('assistant', [
|
|
72
|
+
{ _tag: 'text', text: 'Here is a quick overview of the organizations and contacts in context.' },
|
|
73
|
+
]),
|
|
74
|
+
createMessage('user', [{ _tag: 'text', text: 'Flag anything that needs follow-up.' }]),
|
|
71
75
|
]),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
);
|
|
76
|
+
);
|
|
77
|
+
}
|
|
75
78
|
|
|
76
79
|
space.db.add(
|
|
77
80
|
Obj.make(Agent.Agent, {
|
|
78
|
-
|
|
81
|
+
instructions: Ref.make(Text.make()),
|
|
79
82
|
plan: Ref.make(Plan.makePlan({ tasks: [] })),
|
|
80
|
-
artifacts:
|
|
83
|
+
artifacts: artifacts.map((obj) => ({
|
|
81
84
|
name: Obj.getLabel(obj) ?? 'Artifact',
|
|
82
85
|
data: Ref.make(obj),
|
|
83
86
|
})),
|
|
@@ -87,10 +90,12 @@ const meta = {
|
|
|
87
90
|
);
|
|
88
91
|
}),
|
|
89
92
|
}),
|
|
90
|
-
|
|
93
|
+
AutomationPlugin(),
|
|
94
|
+
AssistantPlugin(),
|
|
91
95
|
PreviewPlugin(),
|
|
96
|
+
StorybookPlugin({}),
|
|
92
97
|
],
|
|
93
|
-
}),
|
|
98
|
+
})),
|
|
94
99
|
],
|
|
95
100
|
parameters: {
|
|
96
101
|
layout: 'fullscreen',
|
|
@@ -102,4 +107,14 @@ export default meta;
|
|
|
102
107
|
|
|
103
108
|
type Story = StoryObj<typeof meta>;
|
|
104
109
|
|
|
105
|
-
export const Default: Story = {
|
|
110
|
+
export const Default: Story = {
|
|
111
|
+
args: {
|
|
112
|
+
inputs: true,
|
|
113
|
+
spec: [
|
|
114
|
+
{ type: Organization.Organization, count: 10 },
|
|
115
|
+
{ type: Person.Person, count: 10 },
|
|
116
|
+
],
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
export const Empty: Story = {};
|
|
@@ -3,17 +3,20 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Atom, useAtomValue } from '@effect-atom/atom-react';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
6
7
|
import * as Function from 'effect/Function';
|
|
7
8
|
import * as Option from 'effect/Option';
|
|
8
|
-
import React, { forwardRef, useMemo, useState } from 'react';
|
|
9
|
+
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
|
9
10
|
|
|
10
|
-
import { Surface } from '@dxos/app-framework/ui';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { Annotation, Filter, Obj, Query } from '@dxos/echo';
|
|
11
|
+
import { Surface, useCapabilities } from '@dxos/app-framework/ui';
|
|
12
|
+
import { AppSurface, useObjectMenuItems } from '@dxos/app-toolkit/ui';
|
|
13
|
+
import { Agent } from '@dxos/assistant-toolkit';
|
|
14
|
+
import { Annotation, Filter, Obj, Query, Ref } from '@dxos/echo';
|
|
14
15
|
import { AtomObj, AtomRef } from '@dxos/echo-atom';
|
|
16
|
+
import { QueueService } from '@dxos/functions';
|
|
17
|
+
import { AutomationCapabilities } from '@dxos/plugin-automation/types';
|
|
15
18
|
import { useQuery } from '@dxos/react-client/echo';
|
|
16
|
-
import { Card,
|
|
19
|
+
import { Card, Message, Panel, ScrollArea, Toolbar, useTranslation } from '@dxos/react-ui';
|
|
17
20
|
import { Masonry } from '@dxos/react-ui-masonry';
|
|
18
21
|
import { Menu } from '@dxos/react-ui-menu';
|
|
19
22
|
import { Focus, Mosaic, type MosaicTileProps } from '@dxos/react-ui-mosaic';
|
|
@@ -22,21 +25,40 @@ import { isNonNullable } from '@dxos/util';
|
|
|
22
25
|
|
|
23
26
|
import { meta } from '#meta';
|
|
24
27
|
|
|
28
|
+
type Tab = 'artifacts' | 'inputs';
|
|
29
|
+
|
|
25
30
|
export type AgentArticleProps = AppSurface.ObjectArticleProps<Agent.Agent>;
|
|
26
31
|
|
|
27
32
|
export const AgentArticle = ({ role, subject: agent }: AgentArticleProps) => {
|
|
28
33
|
const { t } = useTranslation(meta.id);
|
|
34
|
+
const [tab, setTab] = useState<Tab>('artifacts');
|
|
29
35
|
const [viewport, setViewport] = useState<HTMLElement | null>(null);
|
|
30
36
|
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
const [computeRuntime] = useCapabilities(AutomationCapabilities.ComputeRuntime);
|
|
38
|
+
// TODO(burdon): Clear input queue also.
|
|
39
|
+
const handleResetHistory = useCallback(async () => {
|
|
40
|
+
if (!computeRuntime) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const space = Obj.getDatabase(agent);
|
|
45
|
+
if (!space) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const runtime = computeRuntime.getRuntime(space.spaceId);
|
|
50
|
+
await runtime.runPromise(Agent.resetChatHistory(agent));
|
|
51
|
+
if (!agent.queue) {
|
|
52
|
+
await runtime.runPromise(
|
|
53
|
+
Effect.gen(function* () {
|
|
54
|
+
const queue = yield* QueueService.createQueue();
|
|
55
|
+
Obj.update(agent, (agent) => {
|
|
56
|
+
agent.queue = Ref.fromDXN(queue.dxn);
|
|
57
|
+
});
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
}, [agent, computeRuntime]);
|
|
40
62
|
|
|
41
63
|
const artifacts = useAtomValue(
|
|
42
64
|
useMemo(
|
|
@@ -52,51 +74,68 @@ export const AgentArticle = ({ role, subject: agent }: AgentArticleProps) => {
|
|
|
52
74
|
),
|
|
53
75
|
);
|
|
54
76
|
|
|
77
|
+
const inputQueue = useAtomValue(
|
|
78
|
+
AtomObj.make(agent).pipe((_) =>
|
|
79
|
+
Atom.make((get) =>
|
|
80
|
+
Option.fromNullable(get(_).queue).pipe(Option.map(AtomRef.make), Option.map(get), Option.getOrUndefined),
|
|
81
|
+
),
|
|
82
|
+
),
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
const inputObjects = useQuery(inputQueue, Query.select(Filter.everything()));
|
|
86
|
+
|
|
55
87
|
return (
|
|
56
88
|
<Panel.Root role={role}>
|
|
57
89
|
<Panel.Toolbar asChild>
|
|
58
|
-
<Toolbar.Root
|
|
90
|
+
<Toolbar.Root>
|
|
91
|
+
<Toolbar.ToggleGroup type='single' value={tab} onValueChange={(value) => value && setTab(value as Tab)}>
|
|
92
|
+
<Toolbar.ToggleGroupIconItem value='artifacts' label={t('artifacts.label')} icon='ph--cube--regular' />
|
|
93
|
+
<Toolbar.ToggleGroupIconItem value='inputs' label={t('input-queue.label')} icon='ph--queue--regular' />
|
|
94
|
+
</Toolbar.ToggleGroup>
|
|
95
|
+
<Toolbar.Separator />
|
|
96
|
+
<Toolbar.IconButton
|
|
97
|
+
icon='ph--trash--regular'
|
|
98
|
+
label={t('reset-history.button')}
|
|
99
|
+
onCanPlay={handleResetHistory}
|
|
100
|
+
/>
|
|
101
|
+
</Toolbar.Root>
|
|
59
102
|
</Panel.Toolbar>
|
|
60
103
|
<Panel.Content className='dx-container flex flex-col'>
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
104
|
+
{tab === 'artifacts' && (
|
|
105
|
+
<>
|
|
106
|
+
{artifacts.length === 0 && (
|
|
107
|
+
<Message.Root classNames='m-2' valence='info'>
|
|
108
|
+
<Message.Title>{t('project-empty-spec.message')}</Message.Title>
|
|
109
|
+
<Message.Content>{t('project-empty-spec.description')}</Message.Content>
|
|
110
|
+
</Message.Root>
|
|
111
|
+
)}
|
|
67
112
|
|
|
68
|
-
{/* TODO(burdon): Add popovers for documentation. */}
|
|
69
|
-
<div role='none' className='dx-container grid grid-cols-2 gap-2 px-2'>
|
|
70
|
-
<div role='none' className='dx-container flex flex-col'>
|
|
71
|
-
<Input.Root>
|
|
72
|
-
<Input.Label>{t('artifacts.label')}</Input.Label>
|
|
73
|
-
</Input.Root>
|
|
74
113
|
<Masonry.Root Tile={MasonryArtifactTile}>
|
|
75
|
-
<Masonry.Content
|
|
114
|
+
<Masonry.Content padding thin centered>
|
|
115
|
+
<Masonry.Viewport items={artifacts} getId={(item: Obj.Unknown) => item.id} />
|
|
116
|
+
</Masonry.Content>
|
|
76
117
|
</Masonry.Root>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<
|
|
83
|
-
<ScrollArea.
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
</div>
|
|
99
|
-
</div>
|
|
118
|
+
</>
|
|
119
|
+
)}
|
|
120
|
+
|
|
121
|
+
{tab === 'inputs' && (
|
|
122
|
+
<Mosaic.Container asChild withFocus autoScroll={viewport} classNames='dx-document'>
|
|
123
|
+
<ScrollArea.Root orientation='vertical' padding thin centered>
|
|
124
|
+
<ScrollArea.Viewport ref={setViewport}>
|
|
125
|
+
<Mosaic.VirtualStack
|
|
126
|
+
Tile={StackTile}
|
|
127
|
+
classNames='gap-2'
|
|
128
|
+
draggable={false}
|
|
129
|
+
estimateSize={() => 160}
|
|
130
|
+
gap={8}
|
|
131
|
+
getId={(item: Obj.Unknown) => item.id}
|
|
132
|
+
getScrollElement={() => viewport}
|
|
133
|
+
items={inputObjects}
|
|
134
|
+
/>
|
|
135
|
+
</ScrollArea.Viewport>
|
|
136
|
+
</ScrollArea.Root>
|
|
137
|
+
</Mosaic.Container>
|
|
138
|
+
)}
|
|
100
139
|
</Panel.Content>
|
|
101
140
|
</Panel.Root>
|
|
102
141
|
);
|
|
@@ -128,7 +167,11 @@ const ArtifactTileCard = composable<HTMLDivElement, { data: Obj.Unknown }>(({ da
|
|
|
128
167
|
</Card.IconBlock>
|
|
129
168
|
</Card.Toolbar>
|
|
130
169
|
<Card.Content>
|
|
131
|
-
<Surface.Surface
|
|
170
|
+
<Surface.Surface
|
|
171
|
+
type={AppSurface.Card}
|
|
172
|
+
limit={1}
|
|
173
|
+
data={{ subject: data } satisfies AppSurface.ObjectCardData}
|
|
174
|
+
/>
|
|
132
175
|
</Card.Content>
|
|
133
176
|
</Card.Root>
|
|
134
177
|
);
|
|
@@ -9,18 +9,21 @@ import React from 'react';
|
|
|
9
9
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
10
|
import { Plan, Agent } from '@dxos/assistant-toolkit';
|
|
11
11
|
import { Obj, Ref } from '@dxos/echo';
|
|
12
|
+
import { log } from '@dxos/log';
|
|
12
13
|
import { AutomationPlugin } from '@dxos/plugin-automation';
|
|
13
14
|
import { ClientPlugin } from '@dxos/plugin-client';
|
|
14
15
|
import { initializeIdentity } from '@dxos/plugin-client/testing';
|
|
15
|
-
import {
|
|
16
|
+
import { corePlugins } from '@dxos/plugin-testing';
|
|
16
17
|
import { Filter, useQuery, useSpaces } from '@dxos/react-client/echo';
|
|
18
|
+
import { Button } from '@dxos/react-ui';
|
|
17
19
|
import { ObjectProperties } from '@dxos/react-ui-form';
|
|
18
20
|
import { Loading, withLayout } from '@dxos/react-ui/testing';
|
|
19
21
|
import { Text } from '@dxos/schema';
|
|
20
22
|
import { Organization } from '@dxos/types';
|
|
21
23
|
|
|
24
|
+
import { translations } from '#translations';
|
|
25
|
+
|
|
22
26
|
import { AssistantPlugin } from '../../AssistantPlugin';
|
|
23
|
-
import { translations } from '../../translations';
|
|
24
27
|
import { AgentProperties } from './AgentProperties';
|
|
25
28
|
|
|
26
29
|
type DefaultStoryProps = {};
|
|
@@ -35,6 +38,14 @@ const DefaultStory = (_: DefaultStoryProps) => {
|
|
|
35
38
|
return (
|
|
36
39
|
<ObjectProperties object={agent}>
|
|
37
40
|
<AgentProperties role='object-properties' subject={agent} />
|
|
41
|
+
<Button
|
|
42
|
+
classNames='mt-form-gap'
|
|
43
|
+
onClick={() => {
|
|
44
|
+
log.info('agent', { agent, instructions: agent.instructions.target });
|
|
45
|
+
}}
|
|
46
|
+
>
|
|
47
|
+
Debug
|
|
48
|
+
</Button>
|
|
38
49
|
</ObjectProperties>
|
|
39
50
|
);
|
|
40
51
|
};
|
|
@@ -64,7 +75,7 @@ const meta = {
|
|
|
64
75
|
|
|
65
76
|
space.db.add(
|
|
66
77
|
Obj.make(Agent.Agent, {
|
|
67
|
-
|
|
78
|
+
instructions: Ref.make(Text.make()),
|
|
68
79
|
plan: Ref.make(Plan.makePlan({ tasks: [] })),
|
|
69
80
|
artifacts: [{ name: 'Organization', data: Ref.make(organization) }],
|
|
70
81
|
subscriptions: [],
|
|
@@ -72,7 +83,6 @@ const meta = {
|
|
|
72
83
|
);
|
|
73
84
|
}),
|
|
74
85
|
}),
|
|
75
|
-
StorybookPlugin({}),
|
|
76
86
|
AutomationPlugin(),
|
|
77
87
|
AssistantPlugin(),
|
|
78
88
|
],
|
|
@@ -4,32 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
import { Atom } from '@effect-atom/atom';
|
|
6
6
|
import { useAtomValue } from '@effect-atom/atom-react';
|
|
7
|
-
import * as Effect from 'effect/Effect';
|
|
8
7
|
import * as Option from 'effect/Option';
|
|
9
8
|
import React, { useCallback, useEffect, useMemo } from 'react';
|
|
10
9
|
|
|
11
10
|
import { useCapability } from '@dxos/app-framework/ui';
|
|
12
11
|
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
13
12
|
import { Agent, SyncTriggers } from '@dxos/assistant-toolkit';
|
|
13
|
+
import { Operation } from '@dxos/compute';
|
|
14
14
|
import { DXN, Obj, Ref } from '@dxos/echo';
|
|
15
|
-
import { AtomObj
|
|
16
|
-
import { createDocAccessor } from '@dxos/echo-db';
|
|
17
|
-
import { QueueService } from '@dxos/functions';
|
|
15
|
+
import { AtomObj } from '@dxos/echo-atom';
|
|
18
16
|
import { log } from '@dxos/log';
|
|
19
|
-
import { Operation } from '@dxos/operation';
|
|
20
17
|
import { AutomationCapabilities } from '@dxos/plugin-automation/types';
|
|
21
18
|
import { Filter, useQuery } from '@dxos/react-client/echo';
|
|
22
|
-
import {
|
|
23
|
-
import { Editor } from '@dxos/react-ui-editor';
|
|
19
|
+
import { Input, useTranslation } from '@dxos/react-ui';
|
|
24
20
|
import { FeedAnnotation } from '@dxos/schema';
|
|
25
|
-
import {
|
|
26
|
-
createBasicExtensions,
|
|
27
|
-
createDataExtensions,
|
|
28
|
-
createMarkdownExtensions,
|
|
29
|
-
createThemeExtensions,
|
|
30
|
-
decorateMarkdown,
|
|
31
|
-
documentSlots,
|
|
32
|
-
} from '@dxos/ui-editor';
|
|
33
21
|
|
|
34
22
|
import { meta } from '#meta';
|
|
35
23
|
|
|
@@ -37,38 +25,30 @@ export type AgentPropertiesProps = AppSurface.ObjectPropertiesProps<Agent.Agent>
|
|
|
37
25
|
|
|
38
26
|
export const AgentProperties = ({ subject: agent }: AgentPropertiesProps) => {
|
|
39
27
|
const { t } = useTranslation(meta.id);
|
|
28
|
+
const db = Obj.getDatabase(agent);
|
|
40
29
|
|
|
41
|
-
// TODO(burdon): Factor out
|
|
30
|
+
// TODO(burdon): Factor out (separate component from container)?
|
|
42
31
|
const computeRuntime = useCapability(AutomationCapabilities.ComputeRuntime);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (!agent.queue) {
|
|
47
|
-
await runtime.runPromise(
|
|
48
|
-
Effect.gen(function* () {
|
|
49
|
-
const queue = yield* QueueService.createQueue();
|
|
50
|
-
Obj.change(agent, (agent) => {
|
|
51
|
-
agent.queue = Ref.fromDXN(queue.dxn);
|
|
52
|
-
});
|
|
53
|
-
}),
|
|
54
|
-
);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
if (!db) {
|
|
34
|
+
return;
|
|
55
35
|
}
|
|
56
|
-
}, [agent, computeRuntime]);
|
|
57
|
-
|
|
58
|
-
const spec = useAtomValue(AtomRef.make(agent.spec));
|
|
59
36
|
|
|
60
|
-
useEffect(() => {
|
|
61
|
-
const db = Obj.getDatabase(agent);
|
|
62
|
-
if (!db) return;
|
|
63
37
|
return Obj.subscribe(agent, () => {
|
|
64
38
|
queueMicrotask(() => {
|
|
65
39
|
const runtime = computeRuntime.getRuntime(db.spaceId);
|
|
66
|
-
runtime
|
|
40
|
+
runtime
|
|
41
|
+
.runPromise(
|
|
42
|
+
Operation.invoke(SyncTriggers, {
|
|
43
|
+
agent: Ref.make(agent),
|
|
44
|
+
}),
|
|
45
|
+
)
|
|
46
|
+
.catch((err) => log.catch(err));
|
|
67
47
|
});
|
|
68
48
|
});
|
|
69
|
-
}, [agent, computeRuntime]);
|
|
49
|
+
}, [db, agent, computeRuntime]);
|
|
70
50
|
|
|
71
|
-
|
|
51
|
+
// Build a filter matching objects of any schema annotated as a feed.
|
|
72
52
|
const feedFilter = useMemo(() => {
|
|
73
53
|
if (!db) {
|
|
74
54
|
return Filter.nothing();
|
|
@@ -80,90 +60,68 @@ export const AgentProperties = ({ subject: agent }: AgentPropertiesProps) => {
|
|
|
80
60
|
return Option.isSome(annotation) && annotation.value === true;
|
|
81
61
|
});
|
|
82
62
|
|
|
83
|
-
|
|
84
|
-
return Filter.nothing();
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
return Filter.or(...feedSchemas.map((schema) => Filter.type(schema)));
|
|
63
|
+
return feedSchemas.length === 0 ? Filter.nothing() : Filter.or(...feedSchemas.map((schema) => Filter.type(schema)));
|
|
88
64
|
}, [db]);
|
|
89
|
-
const subscribableObjects = useQuery(db, feedFilter);
|
|
90
65
|
|
|
91
|
-
const
|
|
66
|
+
const subscribedObjects = useQuery(db, feedFilter);
|
|
67
|
+
|
|
68
|
+
// Query all existing subscriptions (e.g., mail, calendar, etc.)
|
|
69
|
+
const existingSubscriptions = useAtomValue(
|
|
92
70
|
useMemo(
|
|
93
71
|
() =>
|
|
94
72
|
AtomObj.make(agent).pipe((_) =>
|
|
95
73
|
Atom.make((get) => {
|
|
96
74
|
const agentObj = get(_);
|
|
97
|
-
const selectedSubscriptions: Obj.Unknown[] =
|
|
75
|
+
const selectedSubscriptions: Obj.Unknown[] = subscribedObjects.filter((object) =>
|
|
98
76
|
agentObj.subscriptions.some((subscription) => DXN.equals(subscription.dxn, Obj.getDXN(object))),
|
|
99
77
|
);
|
|
100
78
|
|
|
101
79
|
return selectedSubscriptions;
|
|
102
80
|
}),
|
|
103
81
|
),
|
|
104
|
-
[agent,
|
|
82
|
+
[agent, subscribedObjects],
|
|
105
83
|
),
|
|
106
84
|
);
|
|
107
85
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
createMarkdownExtensions(),
|
|
123
|
-
decorateMarkdown(),
|
|
124
|
-
],
|
|
125
|
-
[spec, agent.id, t],
|
|
86
|
+
// Create/remove agent subscription.
|
|
87
|
+
const handleSubscriptionChange = useCallback(
|
|
88
|
+
(object: Obj.Unknown, checked: boolean) => {
|
|
89
|
+
Obj.update(agent, (agent) => {
|
|
90
|
+
if (checked) {
|
|
91
|
+
agent.subscriptions.push(Ref.fromDXN(Obj.getDXN(object)));
|
|
92
|
+
} else {
|
|
93
|
+
agent.subscriptions = agent.subscriptions.filter(
|
|
94
|
+
(subscription) => !DXN.equals(subscription.dxn, Obj.getDXN(object)),
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
},
|
|
99
|
+
[agent],
|
|
126
100
|
);
|
|
127
101
|
|
|
102
|
+
if (subscribedObjects.length === 0) {
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
|
|
128
106
|
return (
|
|
129
107
|
<div role='none' className='dx-expander flex flex-col'>
|
|
130
108
|
<Input.Root>
|
|
131
|
-
<Input.Label>{t('subscriptions.label')}</Input.Label>
|
|
109
|
+
<Input.Label classNames='mt-form-gap'>{t('subscriptions.label')}</Input.Label>
|
|
132
110
|
</Input.Root>
|
|
133
111
|
|
|
134
|
-
{
|
|
112
|
+
{subscribedObjects.map((object) => (
|
|
135
113
|
<Input.Root key={object.id}>
|
|
136
114
|
<div className='flex items-center gap-2'>
|
|
137
115
|
<Input.Checkbox
|
|
138
|
-
checked={
|
|
116
|
+
checked={existingSubscriptions.includes(object)}
|
|
139
117
|
onCheckedChange={(checked) => {
|
|
140
|
-
|
|
141
|
-
if (checked) {
|
|
142
|
-
agent.subscriptions.push(Ref.fromDXN(Obj.getDXN(object)));
|
|
143
|
-
} else {
|
|
144
|
-
agent.subscriptions = agent.subscriptions.filter(
|
|
145
|
-
(subscription) => !DXN.equals(subscription.dxn, Obj.getDXN(object)),
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
});
|
|
118
|
+
handleSubscriptionChange(object, checked === true);
|
|
149
119
|
}}
|
|
150
120
|
/>
|
|
151
121
|
<Input.Label>{Obj.getLabel(object) ?? object.id}</Input.Label>
|
|
152
122
|
</div>
|
|
153
123
|
</Input.Root>
|
|
154
124
|
))}
|
|
155
|
-
|
|
156
|
-
<Input.Root>
|
|
157
|
-
<Input.Label>{t('instructions.label')}</Input.Label>
|
|
158
|
-
{spec && (
|
|
159
|
-
<Editor.Root>
|
|
160
|
-
<Editor.Content classNames='pb-form-gap' extensions={extension} />
|
|
161
|
-
</Editor.Root>
|
|
162
|
-
)}
|
|
163
|
-
</Input.Root>
|
|
164
|
-
|
|
165
|
-
{/* TODO(burdon): Move into toolbar in parent. */}
|
|
166
|
-
<Button onClick={handleResetHistory}>{t('reset-history.button')}</Button>
|
|
167
125
|
</div>
|
|
168
126
|
);
|
|
169
127
|
};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import React from 'react';
|
|
6
6
|
|
|
7
7
|
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
8
|
-
import { type Blueprint } from '@dxos/
|
|
8
|
+
import { type Blueprint } from '@dxos/compute';
|
|
9
9
|
import { Panel, Toolbar } from '@dxos/react-ui';
|
|
10
10
|
import { useAttention } from '@dxos/react-ui-attention';
|
|
11
11
|
|
|
@@ -11,8 +11,8 @@ import { useCapabilities, useOperationInvoker } from '@dxos/app-framework/ui';
|
|
|
11
11
|
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
12
12
|
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
13
13
|
import { Chat } from '@dxos/assistant-toolkit';
|
|
14
|
-
import { Blueprint } from '@dxos/blueprints';
|
|
15
14
|
import { getSpace } from '@dxos/client/echo';
|
|
15
|
+
import { Blueprint } from '@dxos/compute';
|
|
16
16
|
import { Filter, Obj, Ref } from '@dxos/echo';
|
|
17
17
|
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
18
18
|
import { useQuery } from '@dxos/react-client/echo';
|
|
@@ -14,7 +14,7 @@ import { getParentId } from '@dxos/react-ui-attention';
|
|
|
14
14
|
|
|
15
15
|
import { Chat as ChatComponent, type ChatRootProps } from '#components';
|
|
16
16
|
import { useBlueprintRegistry, useChatProcessor, useChatServices, useOnline, usePresets } from '#hooks';
|
|
17
|
-
import { AssistantCapabilities, type ChatType } from '#types';
|
|
17
|
+
import { type Assistant, AssistantCapabilities, type ChatType } from '#types';
|
|
18
18
|
|
|
19
19
|
export type ChatContainerProps = (
|
|
20
20
|
| AppSurface.ObjectArticleProps<ChatType.Chat | undefined>
|
|
@@ -64,21 +64,31 @@ export const ChatContainer = forwardRef<HTMLDivElement, ChatContainerProps>((pro
|
|
|
64
64
|
|
|
65
65
|
const feedTarget = chat?.feed.target;
|
|
66
66
|
const queue = space && feedTarget ? space.queues.get(Feed.getQueueDxn(feedTarget)!) : undefined;
|
|
67
|
+
const view = (chat?.view as Assistant.ChatView | undefined) ?? settings.chatView;
|
|
67
68
|
|
|
68
69
|
if (!processor) {
|
|
69
70
|
return null;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
return (
|
|
73
|
-
<ChatComponent.Root db={space?.db} chat={chat}
|
|
74
|
+
<ChatComponent.Root db={space?.db} chat={chat} feed={queue} processor={processor} onEvent={onEvent}>
|
|
74
75
|
<Panel.Root role={role} ref={forwardedRef}>
|
|
75
76
|
<Panel.Toolbar className='bg-toolbar-surface'>
|
|
76
77
|
<ChatComponent.Toolbar classNames='dx-document' attendableId={attendableId} companionTo={companionTo} />
|
|
77
78
|
</Panel.Toolbar>
|
|
78
79
|
<Panel.Content>
|
|
79
|
-
<ChatComponent.
|
|
80
|
-
<
|
|
81
|
-
|
|
80
|
+
<ChatComponent.Content>
|
|
81
|
+
<div role='none' className='dx-container relative'>
|
|
82
|
+
<ChatComponent.Thread viewType={view} />
|
|
83
|
+
{view !== 'summary' && (
|
|
84
|
+
<div role='none' className='absolute bottom-2 left-0 right-0'>
|
|
85
|
+
<div role='none' className='dx-document px-4'>
|
|
86
|
+
<ChatComponent.Status classNames='px-3 rounded-sm bg-group-surface' />
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
)}
|
|
90
|
+
</div>
|
|
91
|
+
<div role='none' className='dx-document px-4 pb-4'>
|
|
82
92
|
<ChatComponent.Prompt
|
|
83
93
|
{...chatProps}
|
|
84
94
|
outline
|
|
@@ -87,7 +97,7 @@ export const ChatContainer = forwardRef<HTMLDivElement, ChatContainerProps>((pro
|
|
|
87
97
|
onOnlineChange={setOnline}
|
|
88
98
|
/>
|
|
89
99
|
</div>
|
|
90
|
-
</ChatComponent.
|
|
100
|
+
</ChatComponent.Content>
|
|
91
101
|
</Panel.Content>
|
|
92
102
|
</Panel.Root>
|
|
93
103
|
</ChatComponent.Root>
|