@dxos/plugin-assistant 0.8.4-main.2e9d522 → 0.8.4-main.3eb6e50203
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/BlueprintArticle-6SP2ZWJ2.mjs +30 -0
- package/dist/lib/browser/BlueprintArticle-6SP2ZWJ2.mjs.map +7 -0
- package/dist/lib/browser/ChatCompanion-CAKFZAWN.mjs +200 -0
- package/dist/lib/browser/ChatCompanion-CAKFZAWN.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-QB37VONJ.mjs +73 -0
- package/dist/lib/browser/ChatContainer-QB37VONJ.mjs.map +7 -0
- package/dist/lib/browser/ChatDialog-ASVBLOOS.mjs +85 -0
- package/dist/lib/browser/ChatDialog-ASVBLOOS.mjs.map +7 -0
- package/dist/lib/browser/InitiativeContainer-V522FCYH.mjs +266 -0
- package/dist/lib/browser/InitiativeContainer-V522FCYH.mjs.map +7 -0
- package/dist/lib/browser/PromptArticle-PK3CBRUB.mjs +52 -0
- package/dist/lib/browser/PromptArticle-PK3CBRUB.mjs.map +7 -0
- package/dist/lib/browser/ai-service-CY2BYPH6.mjs +22 -0
- package/dist/lib/browser/ai-service-CY2BYPH6.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-MUZGUQSC.mjs +234 -0
- package/dist/lib/browser/app-graph-builder-MUZGUQSC.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-YAGWYVCL.mjs +14 -0
- package/dist/lib/browser/blueprint-definition-YAGWYVCL.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +12 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-3ETBCBMH.mjs +47 -0
- package/dist/lib/browser/chunk-3ETBCBMH.mjs.map +7 -0
- package/dist/lib/browser/chunk-6BVCG5SJ.mjs +230 -0
- package/dist/lib/browser/chunk-6BVCG5SJ.mjs.map +7 -0
- package/dist/lib/browser/chunk-DKQMSMBN.mjs +326 -0
- package/dist/lib/browser/chunk-DKQMSMBN.mjs.map +7 -0
- package/dist/lib/browser/chunk-EXVT7D4B.mjs +23 -0
- package/dist/lib/browser/chunk-EXVT7D4B.mjs.map +7 -0
- package/dist/lib/browser/chunk-IJYAKPEU.mjs +286 -0
- package/dist/lib/browser/chunk-IJYAKPEU.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-JA7PUZC7.mjs +1974 -0
- package/dist/lib/browser/chunk-JA7PUZC7.mjs.map +7 -0
- package/dist/lib/browser/chunk-POPBT2AQ.mjs +198 -0
- package/dist/lib/browser/chunk-POPBT2AQ.mjs.map +7 -0
- package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs +21 -0
- package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +310 -156
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs +20 -0
- package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-2673CFJS.mjs +133 -0
- package/dist/lib/browser/operation-resolver-2673CFJS.mjs.map +7 -0
- package/dist/lib/browser/react-surface-T3FN4GVP.mjs +125 -0
- package/dist/lib/browser/react-surface-T3FN4GVP.mjs.map +7 -0
- package/dist/lib/browser/repair-IRXDYF4R.mjs +51 -0
- package/dist/lib/browser/repair-IRXDYF4R.mjs.map +7 -0
- package/dist/lib/browser/settings-XF6GKHCG.mjs +33 -0
- package/dist/lib/browser/settings-XF6GKHCG.mjs.map +7 -0
- package/dist/lib/browser/state-OYDPWLKA.mjs +26 -0
- package/dist/lib/browser/state-OYDPWLKA.mjs.map +7 -0
- package/dist/lib/browser/toolkit-IDXQCSTX.mjs +19 -0
- package/dist/lib/browser/toolkit-IDXQCSTX.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +11 -4
- package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs +31 -0
- package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs.map +7 -0
- package/dist/lib/node-esm/ChatCompanion-W4PGOCGR.mjs +201 -0
- package/dist/lib/node-esm/ChatCompanion-W4PGOCGR.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-ECFQVH6O.mjs +74 -0
- package/dist/lib/node-esm/ChatContainer-ECFQVH6O.mjs.map +7 -0
- package/dist/lib/node-esm/ChatDialog-AFLPYSIU.mjs +86 -0
- package/dist/lib/node-esm/ChatDialog-AFLPYSIU.mjs.map +7 -0
- package/dist/lib/node-esm/InitiativeContainer-U4LGO3BW.mjs +267 -0
- package/dist/lib/node-esm/InitiativeContainer-U4LGO3BW.mjs.map +7 -0
- package/dist/lib/node-esm/PromptArticle-BHPABYLT.mjs +53 -0
- package/dist/lib/node-esm/PromptArticle-BHPABYLT.mjs.map +7 -0
- package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs +23 -0
- package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-4QN5M6PD.mjs +235 -0
- package/dist/lib/node-esm/app-graph-builder-4QN5M6PD.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-H3LFAEK2.mjs +15 -0
- package/dist/lib/node-esm/blueprint-definition-H3LFAEK2.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +13 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2LEN26ZQ.mjs +48 -0
- package/dist/lib/node-esm/chunk-2LEN26ZQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-3XC7LQSO.mjs +1975 -0
- package/dist/lib/node-esm/chunk-3XC7LQSO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-75PHXBN3.mjs +327 -0
- package/dist/lib/node-esm/chunk-75PHXBN3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-F6LA7XNS.mjs +199 -0
- package/dist/lib/node-esm/chunk-F6LA7XNS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-LB72WG6R.mjs +231 -0
- package/dist/lib/node-esm/chunk-LB72WG6R.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MJD5XWQV.mjs +288 -0
- package/dist/lib/node-esm/chunk-MJD5XWQV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-POWB2BPC.mjs +25 -0
- package/dist/lib/node-esm/chunk-POWB2BPC.mjs.map +7 -0
- package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs +22 -0
- package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +310 -156
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs +21 -0
- package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-2ZD2DXOU.mjs +134 -0
- package/dist/lib/node-esm/operation-resolver-2ZD2DXOU.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-T4VMCCKZ.mjs +126 -0
- package/dist/lib/node-esm/react-surface-T4VMCCKZ.mjs.map +7 -0
- package/dist/lib/node-esm/repair-DMI55PON.mjs +52 -0
- package/dist/lib/node-esm/repair-DMI55PON.mjs.map +7 -0
- package/dist/lib/node-esm/settings-NGGZA7S7.mjs +34 -0
- package/dist/lib/node-esm/settings-NGGZA7S7.mjs.map +7 -0
- package/dist/lib/node-esm/state-VSCPGN7R.mjs +27 -0
- package/dist/lib/node-esm/state-VSCPGN7R.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-JPRJRDDB.mjs +20 -0
- package/dist/lib/node-esm/toolkit-JPRJRDDB.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +11 -4
- package/dist/types/src/AssistantPlugin.d.ts +2 -1
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/assistant-blueprint.d.ts +11 -0
- package/dist/types/src/blueprints/assistant-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +7 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/ai-service/ai-service.d.ts +6 -0
- package/dist/types/src/capabilities/ai-service/ai-service.d.ts.map +1 -0
- package/dist/types/src/capabilities/ai-service/index.d.ts +3 -0
- package/dist/types/src/capabilities/ai-service/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +26 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +4 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts +7 -0
- package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/edge-model-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/edge-model-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +11 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/local-model-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/local-model-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts +13 -0
- package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/index.d.ts +3 -0
- package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
- package/dist/types/src/capabilities/repair/repair.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +15 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +18 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +11 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +13 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts +6 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +4 -2
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
- package/dist/types/src/components/BlueprintArticle.d.ts +7 -0
- package/dist/types/src/components/BlueprintArticle.d.ts.map +1 -0
- package/dist/types/src/components/Chat/Chat.d.ts +37 -21
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/events.d.ts +10 -1
- package/dist/types/src/components/Chat/events.d.ts.map +1 -1
- package/dist/types/src/components/ChatCompanion.d.ts +13 -0
- package/dist/types/src/components/ChatCompanion.d.ts.map +1 -0
- package/dist/types/src/components/ChatContainer.d.ts +16 -8
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/ChatDialog.d.ts +2 -2
- package/dist/types/src/components/ChatDialog.d.ts.map +1 -1
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +7 -0
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -0
- package/dist/types/src/components/ChatProgress/index.d.ts +2 -0
- package/dist/types/src/components/ChatProgress/index.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +20 -0
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +5 -6
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts +6 -4
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/index.d.ts +1 -1
- package/dist/types/src/components/ChatPrompt/index.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +13 -11
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +285 -71
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Link.d.ts +9 -0
- package/dist/types/src/components/ChatThread/Link.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/registry.d.ts +11 -0
- package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/sync.d.ts +42 -0
- package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/sync.test.d.ts +2 -0
- package/dist/types/src/components/ChatThread/sync.test.d.ts.map +1 -0
- package/dist/types/src/components/InitiativeContainer.d.ts +9 -0
- package/dist/types/src/components/InitiativeContainer.d.ts.map +1 -0
- package/dist/types/src/components/PromptArticle.d.ts +7 -0
- package/dist/types/src/components/PromptArticle.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +3 -6
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +431 -7
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +13 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +428 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts +12 -0
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/extensions/index.d.ts +3 -0
- package/dist/types/src/components/TemplateEditor/extensions/index.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts +8 -0
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +21 -0
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts +2 -0
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/index.d.ts +3 -0
- package/dist/types/src/components/ToolBlock/index.d.ts.map +1 -0
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +9 -15
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +432 -5
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts +4 -0
- package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts.map +1 -0
- package/dist/types/src/components/TriggerStatus/index.d.ts +2 -0
- package/dist/types/src/components/TriggerStatus/index.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts +12 -0
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/Typewriter.d.ts +11 -0
- package/dist/types/src/components/Typewriter/Typewriter.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts +7 -0
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts +5 -0
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/index.d.ts +2 -0
- package/dist/types/src/components/Typewriter/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +10 -7
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +4 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/functions/object-list.d.ts +10 -0
- package/dist/types/src/functions/object-list.d.ts.map +1 -0
- package/dist/types/src/functions/object-load.d.ts +8 -0
- package/dist/types/src/functions/object-load.d.ts.map +1 -0
- package/dist/types/src/functions/object-search.d.ts +10 -0
- package/dist/types/src/functions/object-search.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +8 -3
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +25 -0
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -0
- package/dist/types/src/hooks/useChatProcessor.d.ts +10 -20
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +7 -8
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatToolbarActions.d.ts +8 -0
- package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -0
- package/dist/types/src/hooks/useContextBinder.d.ts +4 -0
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -0
- package/dist/types/src/hooks/useContextObjects.d.ts +15 -0
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts +3 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -0
- package/dist/types/src/hooks/useFlush.d.ts +6 -0
- package/dist/types/src/hooks/useFlush.d.ts.map +1 -0
- package/dist/types/src/hooks/useOnline.d.ts +3 -0
- package/dist/types/src/hooks/useOnline.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +7 -0
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -0
- package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +3 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/processor/index.d.ts +4 -0
- package/dist/types/src/processor/index.d.ts.map +1 -0
- package/dist/types/src/{hooks → processor}/presets.d.ts +3 -3
- package/dist/types/src/processor/presets.d.ts.map +1 -0
- package/dist/types/src/processor/processor.d.ts +79 -0
- package/dist/types/src/processor/processor.d.ts.map +1 -0
- package/dist/types/src/processor/processor.test.d.ts +2 -0
- package/dist/types/src/processor/processor.test.d.ts.map +1 -0
- package/dist/types/src/processor/update-name.d.ts +10 -0
- package/dist/types/src/processor/update-name.d.ts.map +1 -0
- package/dist/types/src/queue-logger.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.d.ts +8 -0
- package/dist/types/src/testing/test-generator.d.ts.map +1 -0
- package/dist/types/src/testing/test-sequence.d.ts +0 -4
- package/dist/types/src/testing/test-sequence.d.ts.map +1 -1
- package/dist/types/src/testing/test-services.d.ts +2 -2
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +376 -37
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +20 -0
- package/dist/types/src/types/Assistant.d.ts.map +1 -0
- package/dist/types/src/types/AssistantAction.d.ts +97 -0
- package/dist/types/src/types/AssistantAction.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +33 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/defs.d.ts +2 -0
- package/dist/types/src/types/defs.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +5 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +6 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +14 -213
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +125 -96
- package/src/AssistantPlugin.tsx +159 -88
- package/src/blueprints/assistant-blueprint.ts +57 -0
- package/src/blueprints/index.ts +12 -0
- package/src/capabilities/ai-service/ai-service.ts +30 -0
- package/src/capabilities/ai-service/index.ts +7 -0
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +200 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +74 -0
- package/src/capabilities/blueprint-definition/index.ts +8 -0
- package/src/capabilities/edge-model-resolver/edge-model-resolver.ts +33 -0
- package/src/capabilities/edge-model-resolver/index.ts +7 -0
- package/src/capabilities/index.ts +11 -6
- package/src/capabilities/local-model-resolver/index.ts +7 -0
- package/src/capabilities/local-model-resolver/local-model-resolver.ts +38 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +112 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +111 -0
- package/src/capabilities/repair/index.ts +7 -0
- package/src/capabilities/repair/repair.ts +62 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +31 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +27 -0
- package/src/capabilities/toolkit/index.ts +7 -0
- package/src/capabilities/toolkit/toolkit.ts +27 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +92 -77
- package/src/components/BlueprintArticle.tsx +28 -0
- package/src/components/Chat/Chat.tsx +267 -197
- package/src/components/Chat/events.ts +14 -1
- package/src/components/ChatCompanion.tsx +226 -0
- package/src/components/ChatContainer.tsx +56 -33
- package/src/components/ChatDialog.tsx +30 -19
- package/src/components/ChatProgress/ChatProgress.tsx +53 -0
- package/src/components/{SequenceEditor → ChatProgress}/index.ts +1 -1
- package/src/components/ChatPrompt/ChatActions.tsx +19 -27
- package/src/components/ChatPrompt/ChatOptions.tsx +238 -0
- package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +32 -38
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +25 -22
- package/src/components/ChatPrompt/index.ts +1 -1
- package/src/components/ChatThread/ChatThread.stories.tsx +123 -116
- package/src/components/ChatThread/ChatThread.tsx +75 -36
- package/src/components/ChatThread/Link.tsx +26 -0
- package/src/components/ChatThread/registry.tsx +174 -0
- package/src/components/ChatThread/sync.test.ts +97 -0
- package/src/components/ChatThread/sync.ts +154 -0
- package/src/components/ChatThread/testing/thread.md +37 -0
- package/src/components/InitiativeContainer.tsx +340 -0
- package/src/components/PromptArticle.tsx +49 -0
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +40 -19
- package/src/components/TemplateEditor/TemplateEditor.tsx +33 -52
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +30 -17
- package/src/components/TemplateEditor/TemplateForm.tsx +82 -32
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +274 -0
- package/src/components/TemplateEditor/extensions/index.ts +6 -0
- package/src/components/TemplateEditor/extensions/xml-extension.ts +64 -0
- package/src/components/ToolBlock/ToolBlock.tsx +143 -0
- package/src/components/ToolBlock/ToolBlockWidget.tsx +5 -0
- package/src/components/ToolBlock/index.ts +6 -0
- package/src/components/Toolbox/Toolbox.stories.tsx +18 -28
- package/src/components/Toolbox/Toolbox.tsx +70 -102
- package/src/components/TriggerStatus/TriggerStatus.tsx +142 -0
- package/src/components/TriggerStatus/index.ts +5 -0
- package/src/components/Typewriter/AssistantToolbar.tsx +161 -0
- package/src/components/Typewriter/Typewriter.stories.tsx +83 -0
- package/src/components/Typewriter/Typewriter.tsx +54 -0
- package/src/components/Typewriter/assistant-extension.tsx +144 -0
- package/src/components/Typewriter/index.ts +5 -0
- package/src/components/index.ts +14 -9
- package/src/functions/index.ts +7 -0
- package/src/functions/object-list.ts +49 -0
- package/src/functions/object-load.ts +44 -0
- package/src/functions/object-search.ts +46 -0
- package/src/hooks/index.ts +8 -4
- package/src/hooks/useBlueprintRegistry.ts +105 -0
- package/src/hooks/useChatProcessor.ts +40 -105
- package/src/hooks/useChatServices.ts +31 -75
- package/src/hooks/useChatToolbarActions.ts +122 -0
- package/src/hooks/useContextBinder.ts +32 -0
- package/src/hooks/useContextObjects.ts +46 -0
- package/src/hooks/useFilteredTypes.ts +37 -0
- package/src/hooks/useFlush.ts +35 -0
- package/src/hooks/useOnline.ts +10 -0
- package/src/hooks/usePresets.ts +44 -0
- package/src/hooks/useReferencesProvider.ts +15 -12
- package/src/index.ts +2 -1
- package/src/meta.ts +11 -8
- package/src/processor/index.ts +7 -0
- package/src/{hooks → processor}/presets.ts +16 -8
- package/src/processor/processor.test.ts +72 -0
- package/src/processor/processor.ts +301 -0
- package/src/processor/update-name.ts +58 -0
- package/src/queue-logger.ts +17 -18
- package/src/testing/index.ts +1 -1
- package/src/testing/test-generator.ts +262 -0
- package/src/testing/test-sequence.ts +2 -27
- package/src/testing/test-services.ts +10 -14
- package/src/translations.ts +71 -28
- package/src/types/Assistant.ts +28 -0
- package/src/types/AssistantAction.ts +76 -0
- package/src/types/capabilities.ts +27 -0
- package/src/types/defs.ts +5 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +9 -1
- package/src/types/service.ts +25 -14
- package/src/vite-env.d.ts +30 -0
- package/dist/lib/browser/ChatContainer-M3IHQLRS.mjs +0 -54
- package/dist/lib/browser/ChatContainer-M3IHQLRS.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-X6VN6QZI.mjs +0 -72
- package/dist/lib/browser/ChatDialog-X6VN6QZI.mjs.map +0 -7
- package/dist/lib/browser/SequenceContainer-3UDVKWPA.mjs +0 -162
- package/dist/lib/browser/SequenceContainer-3UDVKWPA.mjs.map +0 -7
- package/dist/lib/browser/TemplateContainer-RPJ2LBOB.mjs +0 -27
- package/dist/lib/browser/TemplateContainer-RPJ2LBOB.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-JTXBKE7O.mjs +0 -223
- package/dist/lib/browser/app-graph-builder-JTXBKE7O.mjs.map +0 -7
- package/dist/lib/browser/chunk-AEAEKWOC.mjs +0 -98
- package/dist/lib/browser/chunk-AEAEKWOC.mjs.map +0 -7
- package/dist/lib/browser/chunk-EQDW6BYQ.mjs +0 -108
- package/dist/lib/browser/chunk-EQDW6BYQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-FDCJSQYF.mjs +0 -40
- package/dist/lib/browser/chunk-FDCJSQYF.mjs.map +0 -7
- package/dist/lib/browser/chunk-JQBVLTM5.mjs +0 -158
- package/dist/lib/browser/chunk-JQBVLTM5.mjs.map +0 -7
- package/dist/lib/browser/chunk-OWY4CUQY.mjs +0 -2245
- package/dist/lib/browser/chunk-OWY4CUQY.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-5RMMCMXG.mjs +0 -60
- package/dist/lib/browser/intent-resolver-5RMMCMXG.mjs.map +0 -7
- package/dist/lib/browser/react-surface-66VY37YQ.mjs +0 -150
- package/dist/lib/browser/react-surface-66VY37YQ.mjs.map +0 -7
- package/dist/lib/browser/settings-2DGP3UTS.mjs +0 -22
- package/dist/lib/browser/settings-2DGP3UTS.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-VZT74PO2.mjs +0 -55
- package/dist/lib/node-esm/ChatContainer-VZT74PO2.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-RJ6FDX4Q.mjs +0 -73
- package/dist/lib/node-esm/ChatDialog-RJ6FDX4Q.mjs.map +0 -7
- package/dist/lib/node-esm/SequenceContainer-RQQH5XOC.mjs +0 -163
- package/dist/lib/node-esm/SequenceContainer-RQQH5XOC.mjs.map +0 -7
- package/dist/lib/node-esm/TemplateContainer-A3NAQCZE.mjs +0 -28
- package/dist/lib/node-esm/TemplateContainer-A3NAQCZE.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-OWSOXFTD.mjs +0 -224
- package/dist/lib/node-esm/app-graph-builder-OWSOXFTD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2XL6MNPE.mjs +0 -99
- package/dist/lib/node-esm/chunk-2XL6MNPE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BISJDTBK.mjs +0 -159
- package/dist/lib/node-esm/chunk-BISJDTBK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-E33DNNDW.mjs +0 -109
- package/dist/lib/node-esm/chunk-E33DNNDW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QN2H2EHV.mjs +0 -41
- package/dist/lib/node-esm/chunk-QN2H2EHV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SENTQAEO.mjs +0 -2246
- package/dist/lib/node-esm/chunk-SENTQAEO.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-YPPYELY3.mjs +0 -61
- package/dist/lib/node-esm/intent-resolver-YPPYELY3.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-RJMRBR2M.mjs +0 -151
- package/dist/lib/node-esm/react-surface-RJMRBR2M.mjs.map +0 -7
- package/dist/lib/node-esm/settings-47RYZOU4.mjs +0 -23
- package/dist/lib/node-esm/settings-47RYZOU4.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/components/ChatPrompt/ChatOptionsMenu.d.ts +0 -9
- package/dist/types/src/components/ChatPrompt/ChatOptionsMenu.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts +0 -17
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts +0 -19
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/reducer.d.ts +0 -12
- package/dist/types/src/components/ChatThread/reducer.d.ts.map +0 -1
- package/dist/types/src/components/PromptSettings.d.ts +0 -6
- package/dist/types/src/components/PromptSettings.d.ts.map +0 -1
- package/dist/types/src/components/SequenceContainer.d.ts +0 -8
- package/dist/types/src/components/SequenceContainer.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts +0 -13
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +0 -8
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/index.d.ts +0 -2
- package/dist/types/src/components/SequenceEditor/index.d.ts.map +0 -1
- package/dist/types/src/components/TemplateContainer.d.ts +0 -8
- package/dist/types/src/components/TemplateContainer.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/dist/types/src/hooks/chat-processor.d.ts +0 -86
- package/dist/types/src/hooks/chat-processor.d.ts.map +0 -1
- package/dist/types/src/hooks/chat-processor.test.d.ts +0 -2
- package/dist/types/src/hooks/chat-processor.test.d.ts.map +0 -1
- package/dist/types/src/hooks/presets.d.ts.map +0 -1
- package/dist/types/src/hooks/useBlueprints.d.ts +0 -9
- package/dist/types/src/hooks/useBlueprints.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.d.ts +0 -4
- package/dist/types/src/parser/filter-generator.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.test.d.ts +0 -2
- package/dist/types/src/parser/filter-generator.test.d.ts.map +0 -1
- package/dist/types/src/parser/index.d.ts +0 -4
- package/dist/types/src/parser/index.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.d.ts +0 -15
- package/dist/types/src/parser/query-parser.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.test.d.ts +0 -2
- package/dist/types/src/parser/query-parser.test.d.ts.map +0 -1
- package/dist/types/src/parser/types.d.ts +0 -24
- package/dist/types/src/parser/types.d.ts.map +0 -1
- package/dist/types/src/stories/Chat.stories.d.ts +0 -249
- package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/testing/test-functions.d.ts +0 -3
- package/dist/types/src/testing/test-functions.d.ts.map +0 -1
- package/dist/types/src/tools/function.d.ts +0 -5
- package/dist/types/src/tools/function.d.ts.map +0 -1
- package/dist/types/src/tools/index.d.ts +0 -3
- package/dist/types/src/tools/index.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.d.ts +0 -10
- package/dist/types/src/tools/openapi.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.test.d.ts +0 -2
- package/dist/types/src/tools/openapi.test.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -88
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -253
- package/src/capabilities/intent-resolver.ts +0 -58
- package/src/capabilities/react-surface.tsx +0 -138
- package/src/capabilities/settings.ts +0 -19
- package/src/components/ChatPrompt/ChatOptionsMenu.tsx +0 -52
- package/src/components/ChatThread/ChatMessage.tsx +0 -268
- package/src/components/ChatThread/ToolBlock.tsx +0 -121
- package/src/components/ChatThread/reducer.ts +0 -52
- package/src/components/PromptSettings.tsx +0 -89
- package/src/components/SequenceContainer.tsx +0 -132
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -32
- package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
- package/src/components/TemplateContainer.tsx +0 -24
- package/src/events.ts +0 -11
- package/src/hooks/chat-processor.test.ts +0 -16
- package/src/hooks/chat-processor.ts +0 -314
- package/src/hooks/useBlueprints.ts +0 -57
- package/src/parser/filter-generator.test.ts +0 -32
- package/src/parser/filter-generator.ts +0 -81
- package/src/parser/index.ts +0 -7
- package/src/parser/query-parser.test.ts +0 -139
- package/src/parser/query-parser.ts +0 -199
- package/src/parser/types.ts +0 -34
- package/src/shims.d.ts +0 -8
- package/src/stories/Chat.stories.tsx +0 -378
- package/src/testing/test-functions.ts +0 -11
- package/src/tools/function.ts +0 -46
- package/src/tools/index.ts +0 -6
- package/src/tools/openapi.test.ts +0 -217
- package/src/tools/openapi.ts +0 -338
- package/src/types/schema.ts +0 -95
- package/src/typings.d.ts +0 -9
|
@@ -4,46 +4,40 @@
|
|
|
4
4
|
|
|
5
5
|
import { type Extension, Prec } from '@codemirror/state';
|
|
6
6
|
import { keymap } from '@codemirror/view';
|
|
7
|
+
import { useAtomValue } from '@effect-atom/atom-react';
|
|
7
8
|
import { createContext } from '@radix-ui/react-context';
|
|
8
|
-
import
|
|
9
|
+
import * as Array from 'effect/Array';
|
|
10
|
+
import * as Option from 'effect/Option';
|
|
9
11
|
import React, { type PropsWithChildren, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
10
12
|
|
|
11
|
-
import {
|
|
13
|
+
import { type Chat as ChatModule } from '@dxos/assistant-toolkit';
|
|
12
14
|
import { Event } from '@dxos/async';
|
|
13
|
-
import {
|
|
14
|
-
import { log } from '@dxos/log';
|
|
15
|
+
import { type Database, Filter, Obj } from '@dxos/echo';
|
|
15
16
|
import { useVoiceInput } from '@dxos/plugin-transcription';
|
|
16
|
-
import {
|
|
17
|
+
import { useQuery } from '@dxos/react-client/echo';
|
|
17
18
|
import { useIdentity } from '@dxos/react-client/halo';
|
|
18
|
-
import { Input,
|
|
19
|
-
import { ChatEditor, type ChatEditorController, type ChatEditorProps
|
|
20
|
-
import { type
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
import {
|
|
19
|
+
import { Input, type ThemedClassName, useDynamicRef, useTranslation } from '@dxos/react-ui';
|
|
20
|
+
import { ChatEditor, type ChatEditorController, type ChatEditorProps } from '@dxos/react-ui-chat';
|
|
21
|
+
import { type MarkdownStreamController } from '@dxos/react-ui-components';
|
|
22
|
+
import { MenuProvider, ToolbarMenu } from '@dxos/react-ui-menu';
|
|
23
|
+
import { Message } from '@dxos/types';
|
|
24
|
+
import { mx } from '@dxos/ui-theme';
|
|
25
|
+
import { isTruthy } from '@dxos/util';
|
|
26
|
+
|
|
27
|
+
import { useChatToolbarActions } from '../../hooks';
|
|
27
28
|
import { meta } from '../../meta';
|
|
28
|
-
import { type
|
|
29
|
+
import { type AiChatProcessor } from '../../processor';
|
|
29
30
|
import {
|
|
30
31
|
ChatActions,
|
|
31
32
|
type ChatActionsProps,
|
|
32
|
-
|
|
33
|
-
ChatPresets,
|
|
33
|
+
ChatOptions,
|
|
34
34
|
type ChatPresetsProps,
|
|
35
35
|
ChatReferences,
|
|
36
|
-
type ChatReferencesProps,
|
|
37
36
|
ChatStatusIndicator,
|
|
38
37
|
} from '../ChatPrompt';
|
|
39
|
-
import { ChatThread as
|
|
38
|
+
import { ChatThread as NaturalChatThread, type ChatThreadProps as NaturalChatThreadProps } from '../ChatThread';
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
const Endcap = ({ children }: PropsWithChildren) => {
|
|
43
|
-
return (
|
|
44
|
-
<div className='grid w-[var(--rail-action)] h-[var(--rail-action)] items-center justify-center'>{children}</div>
|
|
45
|
-
);
|
|
46
|
-
};
|
|
40
|
+
import { type ChatEvent } from './events';
|
|
47
41
|
|
|
48
42
|
//
|
|
49
43
|
// Context
|
|
@@ -51,259 +45,310 @@ const Endcap = ({ children }: PropsWithChildren) => {
|
|
|
51
45
|
// Components outside of this Radix-style group shuld define their own APIs.
|
|
52
46
|
//
|
|
53
47
|
|
|
54
|
-
// TODO(burdon): Inject via effect layer.
|
|
55
48
|
type ChatContextValue = {
|
|
56
49
|
debug?: boolean;
|
|
57
50
|
event: Event<ChatEvent>;
|
|
58
|
-
|
|
59
|
-
chat
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/** @deprecated Remove and replace with context. */
|
|
64
|
-
artifact?: Expando;
|
|
51
|
+
db?: Database.Database;
|
|
52
|
+
chat?: ChatModule.Chat;
|
|
53
|
+
messages: Message.Message[];
|
|
54
|
+
processor: AiChatProcessor;
|
|
65
55
|
};
|
|
66
56
|
|
|
67
|
-
|
|
68
|
-
const [ChatContextProvider, useChatContext] = createContext<ChatContextValue>('Chat');
|
|
57
|
+
export const [ChatContextProvider, useChatContext] = createContext<ChatContextValue>('Chat');
|
|
69
58
|
|
|
70
59
|
//
|
|
71
60
|
// Root
|
|
72
61
|
//
|
|
73
62
|
|
|
74
|
-
type ChatRootProps =
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
>
|
|
63
|
+
type ChatRootProps = PropsWithChildren<
|
|
64
|
+
Pick<ChatContextValue, 'db' | 'chat' | 'processor'> & {
|
|
65
|
+
onEvent?: (event: ChatEvent) => void;
|
|
66
|
+
}
|
|
80
67
|
>;
|
|
81
68
|
|
|
82
|
-
const ChatRoot = ({
|
|
69
|
+
const ChatRoot = ({ children, chat, processor, onEvent, ...props }: ChatRootProps) => {
|
|
83
70
|
const [debug, setDebug] = useState(false);
|
|
84
|
-
const
|
|
71
|
+
const pending = useAtomValue(processor.messages);
|
|
72
|
+
const streaming = useAtomValue(processor.streaming);
|
|
73
|
+
const lastPrompt = useRef<string | undefined>(undefined);
|
|
85
74
|
|
|
86
75
|
// Messages.
|
|
87
|
-
const
|
|
88
|
-
const messages = useMemo(
|
|
89
|
-
() =>
|
|
90
|
-
|
|
91
|
-
[...(queue?.objects?.filter(Obj.instanceOf(DataType.Message)) ?? []), ...(processor?.messages.value ?? [])],
|
|
92
|
-
(a, b) => a.id === b.id,
|
|
93
|
-
),
|
|
94
|
-
[queue?.objects, processor?.messages.value],
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
// TODO(burdon): Replace with tool.
|
|
98
|
-
const { dispatchPromise: dispatch } = useIntentDispatcher();
|
|
99
|
-
useEffect(() => {
|
|
100
|
-
if (!processor?.streaming.value && queue?.objects && artifact) {
|
|
101
|
-
const message = queue.objects[queue.objects.length - 1];
|
|
102
|
-
if (dispatch && space && chat && message) {
|
|
103
|
-
void dispatch(
|
|
104
|
-
createIntent(CollaborationActions.InsertContent, {
|
|
105
|
-
target: artifact,
|
|
106
|
-
object: Ref.fromDXN(new DXN(DXN.kind.QUEUE, [...chat.queue.dxn.parts, message.id])),
|
|
107
|
-
label: 'View proposal',
|
|
108
|
-
}),
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}, [queue, processor?.streaming.value]);
|
|
76
|
+
const storedMessages = useQuery(chat?.queue?.target, Filter.type(Message.Message));
|
|
77
|
+
const messages = useMemo(() => {
|
|
78
|
+
return Array.dedupeWith([...storedMessages, ...pending], ({ id: a }, { id: b }) => a === b);
|
|
79
|
+
}, [storedMessages, pending]);
|
|
113
80
|
|
|
114
81
|
// Events.
|
|
115
82
|
const event = useMemo(() => new Event<ChatEvent>(), []);
|
|
116
83
|
useEffect(() => {
|
|
117
|
-
return event.on((
|
|
118
|
-
switch (
|
|
84
|
+
return event.on((ev) => {
|
|
85
|
+
switch (ev.type) {
|
|
119
86
|
case 'toggle-debug': {
|
|
120
|
-
setDebug((
|
|
87
|
+
setDebug((current) => !current);
|
|
88
|
+
// Dump state to console.
|
|
89
|
+
queueMicrotask(async () => {
|
|
90
|
+
const objects = processor.context.getObjects();
|
|
91
|
+
const blueprints = processor.context.getBlueprints();
|
|
92
|
+
const tools = await processor.getTools();
|
|
93
|
+
const system = await processor.getSystemPrompt();
|
|
94
|
+
// eslint-disable-next-line no-console
|
|
95
|
+
console.log('Chat processor state:', { objects, blueprints });
|
|
96
|
+
// eslint-disable-next-line no-console
|
|
97
|
+
console.log(`
|
|
98
|
+
==== System Prompt ====
|
|
99
|
+
${system}
|
|
100
|
+
==== Tools ====
|
|
101
|
+
${Object.values(tools)
|
|
102
|
+
.map((tool) => JSON.stringify(tool, null, 2))
|
|
103
|
+
.join('\n')}
|
|
104
|
+
`);
|
|
105
|
+
});
|
|
121
106
|
break;
|
|
122
107
|
}
|
|
123
108
|
|
|
124
109
|
case 'submit': {
|
|
125
|
-
|
|
126
|
-
|
|
110
|
+
const text = ev.text.trim();
|
|
111
|
+
if (!streaming && text.length) {
|
|
112
|
+
lastPrompt.current = ev.text;
|
|
113
|
+
void processor.request({ message: text });
|
|
127
114
|
}
|
|
128
115
|
break;
|
|
129
116
|
}
|
|
130
117
|
|
|
131
|
-
case '
|
|
132
|
-
|
|
118
|
+
case 'retry': {
|
|
119
|
+
if (!streaming) {
|
|
120
|
+
void processor.retry();
|
|
121
|
+
}
|
|
133
122
|
break;
|
|
134
123
|
}
|
|
135
124
|
|
|
136
|
-
|
|
137
|
-
|
|
125
|
+
case 'cancel': {
|
|
126
|
+
if (streaming) {
|
|
127
|
+
void processor.cancel();
|
|
128
|
+
if (lastPrompt.current) {
|
|
129
|
+
event.emit({ type: 'update-prompt', text: lastPrompt.current });
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
break;
|
|
138
133
|
}
|
|
139
134
|
}
|
|
135
|
+
|
|
136
|
+
onEvent?.(ev);
|
|
140
137
|
});
|
|
141
|
-
}, [event, onEvent]);
|
|
138
|
+
}, [event, processor, streaming, onEvent]);
|
|
142
139
|
|
|
143
|
-
|
|
144
|
-
return null;
|
|
145
|
-
}
|
|
140
|
+
const db = props.db ?? (chat && Obj.getDatabase(chat));
|
|
146
141
|
|
|
147
142
|
return (
|
|
148
143
|
<ChatContextProvider
|
|
149
144
|
debug={debug}
|
|
150
145
|
event={event}
|
|
146
|
+
db={db}
|
|
151
147
|
chat={chat}
|
|
152
|
-
space={space}
|
|
153
|
-
processor={processor}
|
|
154
148
|
messages={messages}
|
|
149
|
+
processor={processor}
|
|
155
150
|
{...props}
|
|
156
151
|
>
|
|
157
|
-
|
|
158
|
-
{children}
|
|
159
|
-
</div>
|
|
152
|
+
{children}
|
|
160
153
|
</ChatContextProvider>
|
|
161
154
|
);
|
|
162
155
|
};
|
|
163
156
|
|
|
164
157
|
ChatRoot.displayName = 'Chat.Root';
|
|
165
158
|
|
|
159
|
+
//
|
|
160
|
+
// Viewport
|
|
161
|
+
//
|
|
162
|
+
|
|
163
|
+
const CHAT_VIEWPORT_NAME = 'Chat.Viewport';
|
|
164
|
+
|
|
165
|
+
type ChatViewportProps = ThemedClassName<PropsWithChildren>;
|
|
166
|
+
|
|
167
|
+
const ChatViewport = ({ classNames, children }: ChatViewportProps) => {
|
|
168
|
+
return (
|
|
169
|
+
<div role='none' className={mx('flex flex-col bs-full is-full', classNames)}>
|
|
170
|
+
{children}
|
|
171
|
+
</div>
|
|
172
|
+
);
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
ChatViewport.displayName = CHAT_VIEWPORT_NAME;
|
|
176
|
+
|
|
166
177
|
//
|
|
167
178
|
// Thread
|
|
168
179
|
//
|
|
169
180
|
|
|
170
|
-
|
|
181
|
+
const CHAT_THREAD_NAME = 'Chat.Thread';
|
|
182
|
+
|
|
183
|
+
type ChatThreadProps = Omit<NaturalChatThreadProps, 'identity' | 'messages' | 'tools'>;
|
|
171
184
|
|
|
172
185
|
const ChatThread = (props: ChatThreadProps) => {
|
|
173
|
-
const { debug, event,
|
|
186
|
+
const { debug, event, messages, processor } = useChatContext(CHAT_THREAD_NAME);
|
|
174
187
|
const identity = useIdentity();
|
|
188
|
+
const error = useAtomValue(processor.error).pipe(Option.getOrUndefined);
|
|
175
189
|
|
|
176
|
-
const
|
|
190
|
+
const controllerRef = useRef<MarkdownStreamController | null>(null);
|
|
177
191
|
useEffect(() => {
|
|
178
192
|
return event.on((event) => {
|
|
179
193
|
switch (event.type) {
|
|
180
194
|
case 'submit':
|
|
181
195
|
case 'scroll-to-bottom':
|
|
182
|
-
|
|
196
|
+
controllerRef.current?.scrollToBottom();
|
|
197
|
+
break;
|
|
198
|
+
case 'nav-previous':
|
|
199
|
+
controllerRef.current?.navigatePrevious();
|
|
200
|
+
break;
|
|
201
|
+
case 'nav-next':
|
|
202
|
+
controllerRef.current?.navigateNext();
|
|
183
203
|
break;
|
|
184
204
|
}
|
|
185
205
|
});
|
|
186
206
|
}, [event]);
|
|
187
207
|
|
|
208
|
+
const handleEvent = useCallback<NonNullable<NaturalChatThreadProps['onEvent']>>(
|
|
209
|
+
(ev) => {
|
|
210
|
+
event.emit(ev);
|
|
211
|
+
},
|
|
212
|
+
[event],
|
|
213
|
+
);
|
|
214
|
+
|
|
188
215
|
if (!identity) {
|
|
189
216
|
return null;
|
|
190
217
|
}
|
|
191
218
|
|
|
192
219
|
return (
|
|
193
|
-
<
|
|
220
|
+
<NaturalChatThread
|
|
194
221
|
{...props}
|
|
195
|
-
ref={scrollerRef}
|
|
196
|
-
debug={debug}
|
|
197
222
|
identity={identity}
|
|
198
|
-
space={space}
|
|
199
223
|
messages={messages}
|
|
200
|
-
|
|
201
|
-
|
|
224
|
+
error={error}
|
|
225
|
+
debug={debug}
|
|
226
|
+
onEvent={handleEvent}
|
|
227
|
+
ref={controllerRef}
|
|
202
228
|
/>
|
|
203
229
|
);
|
|
204
230
|
};
|
|
205
231
|
|
|
206
|
-
ChatThread.displayName =
|
|
232
|
+
ChatThread.displayName = CHAT_THREAD_NAME;
|
|
207
233
|
|
|
208
234
|
//
|
|
209
235
|
// Prompt
|
|
210
236
|
//
|
|
211
237
|
|
|
238
|
+
const CHAT_PROMPT_NAME = 'Chat.Prompt';
|
|
239
|
+
|
|
212
240
|
type ChatPromptProps = ThemedClassName<
|
|
213
|
-
|
|
241
|
+
{
|
|
242
|
+
outline?: boolean;
|
|
243
|
+
settings?: boolean;
|
|
244
|
+
} & Pick<ChatEditorProps, 'placeholder'> &
|
|
214
245
|
Omit<ChatPresetsProps, 'onChange'> & {
|
|
215
246
|
expandable?: boolean;
|
|
216
247
|
online?: boolean;
|
|
217
|
-
|
|
218
|
-
|
|
248
|
+
onOnlineChange?: (online: boolean) => void;
|
|
249
|
+
onPresetChange?: ChatPresetsProps['onChange'];
|
|
219
250
|
}
|
|
220
251
|
>;
|
|
221
252
|
|
|
222
253
|
const ChatPrompt = ({
|
|
223
254
|
classNames,
|
|
255
|
+
outline,
|
|
256
|
+
settings = true,
|
|
224
257
|
placeholder,
|
|
225
258
|
expandable,
|
|
226
259
|
online,
|
|
227
260
|
presets,
|
|
228
261
|
preset,
|
|
229
|
-
|
|
230
|
-
|
|
262
|
+
onPresetChange,
|
|
263
|
+
onOnlineChange,
|
|
231
264
|
}: ChatPromptProps) => {
|
|
232
265
|
const { t } = useTranslation(meta.id);
|
|
233
|
-
const {
|
|
266
|
+
const { db, processor, event } = useChatContext(CHAT_PROMPT_NAME);
|
|
267
|
+
|
|
268
|
+
const error = useAtomValue(processor.error).pipe(Option.getOrUndefined);
|
|
269
|
+
const streaming = useAtomValue(processor.streaming);
|
|
270
|
+
const active = useAtomValue(processor.active);
|
|
271
|
+
const activeRef = useDynamicRef(active);
|
|
234
272
|
|
|
235
|
-
const
|
|
273
|
+
const editorRef = useRef<ChatEditorController>(null);
|
|
274
|
+
const [recordingState, setRecordingState] = useState(false);
|
|
236
275
|
useEffect(() => {
|
|
237
276
|
return event.on((event) => {
|
|
238
277
|
switch (event.type) {
|
|
278
|
+
case 'update-prompt':
|
|
279
|
+
if (!editorRef.current?.getText()?.length) {
|
|
280
|
+
editorRef.current?.setText(event.text);
|
|
281
|
+
editorRef.current?.focus();
|
|
282
|
+
}
|
|
283
|
+
break;
|
|
239
284
|
case 'record-start':
|
|
240
|
-
|
|
285
|
+
setRecordingState(true);
|
|
241
286
|
break;
|
|
242
287
|
case 'record-stop':
|
|
243
|
-
|
|
288
|
+
setRecordingState(false);
|
|
244
289
|
break;
|
|
245
290
|
}
|
|
246
291
|
});
|
|
247
292
|
}, [event]);
|
|
248
293
|
|
|
249
|
-
const editorRef = useRef<ChatEditorController>(null);
|
|
250
|
-
|
|
251
294
|
// TODO(burdon): Configure capability in TranscriptionPlugin.
|
|
252
295
|
const { recording } = useVoiceInput({
|
|
253
|
-
active,
|
|
296
|
+
active: recordingState,
|
|
254
297
|
onUpdate: (text) => {
|
|
255
298
|
editorRef.current?.setText(text);
|
|
256
299
|
editorRef.current?.focus();
|
|
257
300
|
},
|
|
258
301
|
});
|
|
259
302
|
|
|
260
|
-
const [blueprints, handleUpdateBlueprints] = useBlueprints(space, processor.context, processor.blueprintRegistry);
|
|
261
|
-
|
|
262
|
-
// TODO(burdon): Reconcile with object tags.
|
|
263
|
-
const contextProvider = useReferencesProvider(space);
|
|
264
303
|
const extensions = useMemo<Extension[]>(() => {
|
|
265
304
|
return [
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
305
|
+
Prec.highest(
|
|
306
|
+
keymap.of([
|
|
307
|
+
{
|
|
308
|
+
key: 'Mod-d',
|
|
309
|
+
preventDefault: true,
|
|
310
|
+
run: () => {
|
|
311
|
+
event.emit({ type: 'toggle-debug' });
|
|
312
|
+
return true;
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
key: 'Mod-ArrowUp',
|
|
317
|
+
preventDefault: true,
|
|
318
|
+
run: () => {
|
|
319
|
+
event.emit({ type: 'nav-previous' });
|
|
320
|
+
return true;
|
|
277
321
|
},
|
|
278
|
-
{
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
run: () => {
|
|
282
|
-
event.emit({ type: 'thread-open' });
|
|
283
|
-
return true;
|
|
284
|
-
},
|
|
322
|
+
shift: () => {
|
|
323
|
+
event.emit({ type: 'thread-open' });
|
|
324
|
+
return true;
|
|
285
325
|
},
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
key: 'Mod-ArrowDown',
|
|
329
|
+
preventDefault: true,
|
|
330
|
+
run: () => {
|
|
331
|
+
event.emit({ type: 'nav-next' });
|
|
332
|
+
return true;
|
|
293
333
|
},
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
334
|
+
shift: () => {
|
|
335
|
+
event.emit({ type: 'thread-close' });
|
|
336
|
+
return true;
|
|
337
|
+
},
|
|
338
|
+
},
|
|
339
|
+
]),
|
|
340
|
+
),
|
|
341
|
+
].filter(isTruthy);
|
|
342
|
+
}, [event, expandable]);
|
|
298
343
|
|
|
299
344
|
const handleSubmit = useCallback<NonNullable<ChatEditorProps['onSubmit']>>(
|
|
300
345
|
(text) => {
|
|
301
|
-
if (!
|
|
346
|
+
if (!activeRef.current) {
|
|
302
347
|
event.emit({ type: 'submit', text });
|
|
303
348
|
return true;
|
|
304
349
|
}
|
|
305
350
|
},
|
|
306
|
-
[
|
|
351
|
+
[event],
|
|
307
352
|
);
|
|
308
353
|
|
|
309
354
|
const handleEvent = useCallback<NonNullable<ChatActionsProps['onEvent']>>(
|
|
@@ -313,67 +358,90 @@ const ChatPrompt = ({
|
|
|
313
358
|
[event],
|
|
314
359
|
);
|
|
315
360
|
|
|
316
|
-
// TODO(burdon): Update context.
|
|
317
|
-
const handleUpdateReferences = useCallback<NonNullable<ChatReferencesProps['onUpdate']>>((ids) => {
|
|
318
|
-
log.info('update', { ids });
|
|
319
|
-
}, []);
|
|
320
|
-
|
|
321
361
|
return (
|
|
322
362
|
<div
|
|
363
|
+
role='group'
|
|
323
364
|
className={mx(
|
|
324
|
-
'is-full
|
|
365
|
+
'flex flex-col is-full density-fine',
|
|
366
|
+
outline &&
|
|
367
|
+
'bg-groupSurface border border-subduedSeparator transition transition-border [&:has(.cm-content:focus)]:border-separator rounded',
|
|
325
368
|
classNames,
|
|
326
369
|
)}
|
|
327
370
|
>
|
|
328
|
-
<
|
|
329
|
-
<ChatStatusIndicator preset={preset} error={
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
371
|
+
<div role='none' className='flex p-2 gap-2'>
|
|
372
|
+
<ChatStatusIndicator classNames='p-1' preset={preset} error={error} processing={streaming} />
|
|
373
|
+
<ChatEditor
|
|
374
|
+
ref={editorRef}
|
|
375
|
+
autoFocus
|
|
376
|
+
lineWrapping
|
|
377
|
+
classNames='col-span-2 pbs-0.5'
|
|
378
|
+
placeholder={placeholder ?? t('prompt placeholder')}
|
|
379
|
+
extensions={extensions}
|
|
380
|
+
onSubmit={handleSubmit}
|
|
381
|
+
/>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
{db && settings && (
|
|
385
|
+
<div role='none' className='flex items-center overflow-hidden'>
|
|
386
|
+
<ChatOptions
|
|
387
|
+
db={db}
|
|
388
|
+
blueprintRegistry={processor.blueprintRegistry}
|
|
389
|
+
context={processor.context}
|
|
390
|
+
preset={preset}
|
|
391
|
+
presets={presets}
|
|
392
|
+
onPresetChange={onPresetChange}
|
|
393
|
+
/>
|
|
394
|
+
|
|
395
|
+
<div role='none' className='flex grow overflow-x-auto scrollbar-none'>
|
|
396
|
+
<ChatReferences db={db} context={processor.context} />
|
|
397
|
+
</div>
|
|
398
|
+
|
|
399
|
+
<ChatActions
|
|
400
|
+
classNames='col-span-2'
|
|
401
|
+
microphone={true}
|
|
402
|
+
recording={recording}
|
|
403
|
+
processing={streaming}
|
|
404
|
+
onEvent={handleEvent}
|
|
405
|
+
>
|
|
406
|
+
{/* TODO(burdon): Move offline switch into dialog. */}
|
|
407
|
+
{online !== undefined && (
|
|
408
|
+
<Input.Root>
|
|
409
|
+
<Input.Label srOnly>{t('online switch label')}</Input.Label>
|
|
410
|
+
<Input.Switch classNames='mli-2' checked={online} onCheckedChange={onOnlineChange} />
|
|
411
|
+
</Input.Root>
|
|
412
|
+
)}
|
|
413
|
+
</ChatActions>
|
|
414
|
+
</div>
|
|
415
|
+
)}
|
|
372
416
|
</div>
|
|
373
417
|
);
|
|
374
418
|
};
|
|
375
419
|
|
|
376
|
-
ChatPrompt.displayName =
|
|
420
|
+
ChatPrompt.displayName = CHAT_PROMPT_NAME;
|
|
421
|
+
|
|
422
|
+
//
|
|
423
|
+
// Toolbar
|
|
424
|
+
//
|
|
425
|
+
|
|
426
|
+
const CHAT_TOOLBAR_NAME = 'Chat.Toolbar';
|
|
427
|
+
|
|
428
|
+
type ChatToolbarProps = ThemedClassName<{ companionTo?: Obj.Unknown }>;
|
|
429
|
+
|
|
430
|
+
const ChatToolbar = ({ classNames, companionTo }: ChatToolbarProps) => {
|
|
431
|
+
const { chat } = useChatContext(CHAT_TOOLBAR_NAME);
|
|
432
|
+
const menu = useChatToolbarActions({ chat, companionTo });
|
|
433
|
+
|
|
434
|
+
return (
|
|
435
|
+
<MenuProvider
|
|
436
|
+
{...menu}
|
|
437
|
+
attendableId={companionTo ? Obj.getDXN(companionTo).toString() : chat ? Obj.getDXN(chat).toString() : ''}
|
|
438
|
+
>
|
|
439
|
+
<ToolbarMenu classNames={classNames} textBlockWidth />
|
|
440
|
+
</MenuProvider>
|
|
441
|
+
);
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
ChatToolbar.displayName = CHAT_TOOLBAR_NAME;
|
|
377
445
|
|
|
378
446
|
//
|
|
379
447
|
// Chat
|
|
@@ -381,8 +449,10 @@ ChatPrompt.displayName = 'Chat.Prompt';
|
|
|
381
449
|
|
|
382
450
|
export const Chat = {
|
|
383
451
|
Root: ChatRoot,
|
|
452
|
+
Viewport: ChatViewport,
|
|
384
453
|
Thread: ChatThread,
|
|
385
454
|
Prompt: ChatPrompt,
|
|
455
|
+
Toolbar: ChatToolbar,
|
|
386
456
|
};
|
|
387
457
|
|
|
388
|
-
export type { ChatRootProps, ChatThreadProps, ChatPromptProps, ChatEvent };
|
|
458
|
+
export type { ChatRootProps, ChatViewportProps, ChatThreadProps, ChatPromptProps, ChatToolbarProps, ChatEvent };
|