@dxos/plugin-assistant 0.8.4-main.28f8d3d → 0.8.4-main.2c6827d
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-IMCR3642.mjs +36 -0
- package/dist/lib/browser/BlueprintArticle-IMCR3642.mjs.map +7 -0
- package/dist/lib/browser/ChatCompanion-4MS4NMZY.mjs +158 -0
- package/dist/lib/browser/ChatCompanion-4MS4NMZY.mjs.map +7 -0
- package/dist/lib/browser/{ChatContainer-OUVSX5V5.mjs → ChatContainer-GJZN3SIJ.mjs} +27 -26
- package/dist/lib/browser/ChatContainer-GJZN3SIJ.mjs.map +7 -0
- package/dist/lib/browser/{ChatDialog-P4FLEOHG.mjs → ChatDialog-E2X6DTDX.mjs} +17 -13
- package/dist/lib/browser/ChatDialog-E2X6DTDX.mjs.map +7 -0
- package/dist/lib/browser/PromptArticle-45QX25Y5.mjs +59 -0
- package/dist/lib/browser/PromptArticle-45QX25Y5.mjs.map +7 -0
- package/dist/lib/browser/ai-service-ERTZBTP3.mjs +19 -0
- package/dist/lib/browser/ai-service-ERTZBTP3.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-AVHHQ3KV.mjs → app-graph-builder-VZEXMDTY.mjs} +72 -39
- package/dist/lib/browser/app-graph-builder-VZEXMDTY.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-5FT5JGPY.mjs +12 -0
- package/dist/lib/browser/blueprint-definition-5FT5JGPY.mjs.map +7 -0
- package/dist/lib/browser/chunk-2BOE3OTW.mjs +262 -0
- package/dist/lib/browser/chunk-2BOE3OTW.mjs.map +7 -0
- package/dist/lib/browser/{chunk-HRLMD35M.mjs → chunk-BNTPFZ7O.mjs} +60 -22
- package/dist/lib/browser/chunk-BNTPFZ7O.mjs.map +7 -0
- package/dist/lib/browser/chunk-FJQ4ZRYJ.mjs +335 -0
- package/dist/lib/browser/chunk-FJQ4ZRYJ.mjs.map +7 -0
- package/dist/lib/browser/{blueprint-definition-CMGIZAOW.mjs → chunk-IXIIS4QA.mjs} +78 -48
- package/dist/lib/browser/chunk-IXIIS4QA.mjs.map +7 -0
- package/dist/lib/browser/chunk-LRE4VEZV.mjs +16 -0
- package/dist/lib/browser/chunk-LRE4VEZV.mjs.map +7 -0
- package/dist/lib/browser/chunk-TCAQJ26D.mjs +1929 -0
- package/dist/lib/browser/chunk-TCAQJ26D.mjs.map +7 -0
- package/dist/lib/browser/chunk-WBG5PTSX.mjs +23 -0
- package/dist/lib/browser/chunk-WBG5PTSX.mjs.map +7 -0
- package/dist/lib/browser/edge-model-resolver-O6OFYIO2.mjs +18 -0
- package/dist/lib/browser/edge-model-resolver-O6OFYIO2.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +162 -73
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-AK5O4GUW.mjs +143 -0
- package/dist/lib/browser/intent-resolver-AK5O4GUW.mjs.map +7 -0
- package/dist/lib/browser/local-model-resolver-34MVHRKD.mjs +17 -0
- package/dist/lib/browser/local-model-resolver-34MVHRKD.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-XWAR5ZVL.mjs +98 -0
- package/dist/lib/browser/react-surface-XWAR5ZVL.mjs.map +7 -0
- package/dist/lib/browser/{settings-G2EZXMWT.mjs → settings-NYJGNQ5I.mjs} +5 -5
- package/dist/lib/browser/{settings-G2EZXMWT.mjs.map → settings-NYJGNQ5I.mjs.map} +1 -1
- package/dist/lib/browser/state-GG7Z3NB7.mjs +25 -0
- package/dist/lib/browser/state-GG7Z3NB7.mjs.map +7 -0
- package/dist/lib/browser/toolkit-VYDAWNE4.mjs +17 -0
- package/dist/lib/browser/toolkit-VYDAWNE4.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node-esm/BlueprintArticle-OL2HUY6Q.mjs +37 -0
- package/dist/lib/node-esm/BlueprintArticle-OL2HUY6Q.mjs.map +7 -0
- package/dist/lib/node-esm/ChatCompanion-TYRR7BXD.mjs +159 -0
- package/dist/lib/node-esm/ChatCompanion-TYRR7BXD.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatContainer-D5FABDNE.mjs → ChatContainer-MT4INE7Z.mjs} +27 -26
- package/dist/lib/node-esm/ChatContainer-MT4INE7Z.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatDialog-NKWVXHJP.mjs → ChatDialog-G4EWBIJM.mjs} +17 -13
- package/dist/lib/node-esm/ChatDialog-G4EWBIJM.mjs.map +7 -0
- package/dist/lib/node-esm/PromptArticle-OUKFSJQV.mjs +60 -0
- package/dist/lib/node-esm/PromptArticle-OUKFSJQV.mjs.map +7 -0
- package/dist/lib/node-esm/ai-service-MUYLV3NT.mjs +20 -0
- package/dist/lib/node-esm/ai-service-MUYLV3NT.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-RMOUJMMG.mjs → app-graph-builder-VRN6ESRR.mjs} +72 -39
- package/dist/lib/node-esm/app-graph-builder-VRN6ESRR.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-XW6QQVLV.mjs +13 -0
- package/dist/lib/node-esm/blueprint-definition-XW6QQVLV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-3Q22TTXW.mjs +264 -0
- package/dist/lib/node-esm/chunk-3Q22TTXW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-F7RXCX5Y.mjs → chunk-AB74FOA2.mjs} +60 -22
- package/dist/lib/node-esm/chunk-AB74FOA2.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-KJGD4EBJ.mjs +336 -0
- package/dist/lib/node-esm/chunk-KJGD4EBJ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-KM24SYPM.mjs +1930 -0
- package/dist/lib/node-esm/chunk-KM24SYPM.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-AEWYMW6I.mjs → chunk-UXTUHH24.mjs} +78 -47
- package/dist/lib/node-esm/chunk-UXTUHH24.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-WE6KTH72.mjs +25 -0
- package/dist/lib/node-esm/chunk-WE6KTH72.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-X6AANUHZ.mjs → chunk-YWFWT57N.mjs} +4 -4
- package/dist/lib/node-esm/chunk-YWFWT57N.mjs.map +7 -0
- package/dist/lib/node-esm/edge-model-resolver-2ARXDOYS.mjs +19 -0
- package/dist/lib/node-esm/edge-model-resolver-2ARXDOYS.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +162 -73
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-L2F3N45L.mjs +144 -0
- package/dist/lib/node-esm/intent-resolver-L2F3N45L.mjs.map +7 -0
- package/dist/lib/node-esm/local-model-resolver-TP2NTSAX.mjs +18 -0
- package/dist/lib/node-esm/local-model-resolver-TP2NTSAX.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-JXB7Q6QR.mjs +99 -0
- package/dist/lib/node-esm/react-surface-JXB7Q6QR.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-AIP5FOJG.mjs → settings-RRHYI5KO.mjs} +5 -5
- package/dist/lib/node-esm/{settings-AIP5FOJG.mjs.map → settings-RRHYI5KO.mjs.map} +1 -1
- package/dist/lib/node-esm/state-FSUHFMDM.mjs +26 -0
- package/dist/lib/node-esm/state-FSUHFMDM.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-HFJZLVIR.mjs +18 -0
- package/dist/lib/node-esm/toolkit-HFJZLVIR.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/AssistantPlugin.d.ts +1 -1
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-service.d.ts +2 -3
- package/dist/types/src/capabilities/ai-service.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +7 -8
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/edge-model-resolver.d.ts +2 -3
- package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +7 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/local-model-resolver.d.ts +10 -0
- package/dist/types/src/capabilities/local-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -1
- package/dist/types/src/capabilities/state.d.ts +4 -0
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit.d.ts +2 -3
- package/dist/types/src/capabilities/toolkit.d.ts.map +1 -1
- 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 +32 -16
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/events.d.ts +9 -0
- 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 +8 -6
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- 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 +11 -4
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +3 -4
- 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/ChatThread/ChatThread.d.ts +12 -10
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +191 -82
- 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/reducers.d.ts +40 -0
- package/dist/types/src/components/ChatThread/reducers.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/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 +2 -6
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +312 -7
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +309 -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 +3 -5
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +314 -5
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -7
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/functions/analysis.d.ts +1 -1
- package/dist/types/src/functions/analysis.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +2 -2
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/functions/{list.d.ts → object-list.d.ts} +2 -2
- package/dist/types/src/functions/object-list.d.ts.map +1 -0
- package/dist/types/src/functions/{load.d.ts → object-load.d.ts} +3 -3
- package/dist/types/src/functions/object-load.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +5 -4
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +5 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +3 -7
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +5 -5
- 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/useFlush.d.ts.map +1 -0
- package/dist/types/src/hooks/useItemTypes.d.ts +4 -0
- package/dist/types/src/hooks/useItemTypes.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +2 -2
- 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 +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -2
- 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 +1 -1
- package/dist/types/src/processor/presets.d.ts.map +1 -0
- package/dist/types/src/processor/processor.d.ts +74 -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 +7 -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 +257 -33
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +15 -7
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/AssistantAction.d.ts +49 -7
- package/dist/types/src/types/AssistantAction.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +21 -12
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +96 -97
- package/src/AssistantPlugin.tsx +156 -116
- package/src/capabilities/ai-service.ts +6 -7
- package/src/capabilities/app-graph-builder.ts +95 -54
- package/src/capabilities/blueprint-definition.ts +56 -22
- package/src/capabilities/capabilities.ts +7 -12
- package/src/capabilities/edge-model-resolver.ts +17 -21
- package/src/capabilities/index.ts +5 -2
- package/src/capabilities/intent-resolver.ts +91 -17
- package/src/capabilities/local-model-resolver.ts +30 -0
- package/src/capabilities/react-surface.tsx +23 -81
- package/src/capabilities/state.ts +22 -0
- package/src/capabilities/toolkit.ts +9 -98
- package/src/components/AssistantSettings/AssistantSettings.tsx +82 -75
- package/src/components/BlueprintArticle.tsx +29 -0
- package/src/components/Chat/Chat.tsx +252 -222
- package/src/components/Chat/events.ts +13 -0
- package/src/components/ChatCompanion.tsx +155 -0
- package/src/components/ChatContainer.tsx +33 -41
- package/src/components/ChatDialog.tsx +19 -12
- package/src/components/ChatProgress/ChatProgress.tsx +67 -0
- package/src/components/{Timeline → ChatProgress}/index.ts +1 -1
- package/src/components/ChatPrompt/ChatActions.tsx +10 -26
- package/src/components/ChatPrompt/ChatOptions.tsx +203 -34
- package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +29 -36
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +25 -22
- package/src/components/ChatThread/ChatThread.stories.tsx +92 -204
- package/src/components/ChatThread/ChatThread.tsx +65 -35
- package/src/components/ChatThread/Link.tsx +8 -21
- package/src/components/ChatThread/reducers.ts +151 -0
- package/src/components/ChatThread/registry.tsx +174 -0
- package/src/components/ChatThread/sync.test.ts +89 -0
- package/src/components/ChatThread/sync.ts +148 -0
- package/src/components/ChatThread/testing/thread.md +37 -0
- package/src/components/PromptArticle.tsx +51 -0
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +29 -15
- package/src/components/TemplateEditor/TemplateEditor.tsx +28 -53
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +7 -9
- package/src/components/TemplateEditor/TemplateForm.tsx +3 -2
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +269 -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 +11 -14
- package/src/components/Toolbox/Toolbox.tsx +15 -21
- package/src/components/index.ts +3 -4
- package/src/functions/analysis.ts +5 -3
- package/src/functions/index.ts +2 -2
- package/src/functions/{list.ts → object-list.ts} +11 -5
- package/src/functions/{load.ts → object-load.ts} +9 -7
- package/src/hooks/index.ts +5 -5
- package/src/hooks/useBlueprintRegistry.ts +26 -10
- package/src/hooks/useChatProcessor.ts +26 -33
- package/src/hooks/useChatServices.ts +32 -53
- package/src/hooks/useChatToolbarActions.ts +122 -0
- package/src/hooks/useContextBinder.ts +30 -0
- package/src/hooks/useContextObjects.ts +58 -0
- package/src/hooks/useItemTypes.ts +37 -0
- package/src/hooks/usePresets.ts +4 -5
- package/src/hooks/useReferencesProvider.ts +2 -1
- package/src/index.ts +2 -0
- package/src/meta.ts +9 -6
- package/src/processor/index.ts +7 -0
- package/src/{hooks → processor}/presets.ts +11 -4
- package/src/processor/processor.test.ts +71 -0
- package/src/processor/processor.ts +277 -0
- package/src/processor/update-name.ts +56 -0
- package/src/queue-logger.ts +9 -13
- package/src/testing/index.ts +1 -1
- package/src/testing/test-generator.ts +261 -0
- package/src/testing/test-sequence.ts +1 -26
- package/src/testing/test-services.ts +2 -8
- package/src/translations.ts +44 -24
- package/src/types/Assistant.ts +11 -7
- package/src/types/AssistantAction.ts +31 -6
- package/src/types/service.ts +17 -9
- package/src/vite-env.d.ts +30 -0
- package/dist/lib/browser/BlueprintContainer-H7H4BQ2C.mjs +0 -29
- package/dist/lib/browser/BlueprintContainer-H7H4BQ2C.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-OUVSX5V5.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-P4FLEOHG.mjs.map +0 -7
- package/dist/lib/browser/SequenceContainer-627OQ557.mjs +0 -163
- package/dist/lib/browser/SequenceContainer-627OQ557.mjs.map +0 -7
- package/dist/lib/browser/ai-service-7KJ5LXBT.mjs +0 -22
- package/dist/lib/browser/ai-service-7KJ5LXBT.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-AVHHQ3KV.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-CMGIZAOW.mjs.map +0 -7
- package/dist/lib/browser/chunk-BRLHDHOF.mjs +0 -244
- package/dist/lib/browser/chunk-BRLHDHOF.mjs.map +0 -7
- package/dist/lib/browser/chunk-HRLMD35M.mjs.map +0 -7
- package/dist/lib/browser/chunk-LKP65RPA.mjs +0 -20
- package/dist/lib/browser/chunk-LKP65RPA.mjs.map +0 -7
- package/dist/lib/browser/chunk-NZDCKQ6W.mjs +0 -89
- package/dist/lib/browser/chunk-NZDCKQ6W.mjs.map +0 -7
- package/dist/lib/browser/chunk-QB7OVS6Z.mjs +0 -16
- package/dist/lib/browser/chunk-QB7OVS6Z.mjs.map +0 -7
- package/dist/lib/browser/chunk-VEBVAHNM.mjs +0 -2231
- package/dist/lib/browser/chunk-VEBVAHNM.mjs.map +0 -7
- package/dist/lib/browser/edge-model-resolver-2HB4PCWH.mjs +0 -24
- package/dist/lib/browser/edge-model-resolver-2HB4PCWH.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MVOIEJXZ.mjs +0 -81
- package/dist/lib/browser/intent-resolver-MVOIEJXZ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-4HXS3YLT.mjs +0 -163
- package/dist/lib/browser/react-surface-4HXS3YLT.mjs.map +0 -7
- package/dist/lib/browser/toolkit-IW4FBLLB.mjs +0 -105
- package/dist/lib/browser/toolkit-IW4FBLLB.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintContainer-VH4EE4CM.mjs +0 -30
- package/dist/lib/node-esm/BlueprintContainer-VH4EE4CM.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-D5FABDNE.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-NKWVXHJP.mjs.map +0 -7
- package/dist/lib/node-esm/SequenceContainer-EQ5NP2PG.mjs +0 -164
- package/dist/lib/node-esm/SequenceContainer-EQ5NP2PG.mjs.map +0 -7
- package/dist/lib/node-esm/ai-service-LDD32477.mjs +0 -23
- package/dist/lib/node-esm/ai-service-LDD32477.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-RMOUJMMG.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-AEWYMW6I.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3SOC5GOP.mjs +0 -2232
- package/dist/lib/node-esm/chunk-3SOC5GOP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F7RXCX5Y.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GAWXJ7K5.mjs +0 -90
- package/dist/lib/node-esm/chunk-GAWXJ7K5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KOC6ESG7.mjs +0 -22
- package/dist/lib/node-esm/chunk-KOC6ESG7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RD755HN3.mjs +0 -245
- package/dist/lib/node-esm/chunk-RD755HN3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X6AANUHZ.mjs.map +0 -7
- package/dist/lib/node-esm/edge-model-resolver-UDDR2IA6.mjs +0 -25
- package/dist/lib/node-esm/edge-model-resolver-UDDR2IA6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-DTDNCX3C.mjs +0 -82
- package/dist/lib/node-esm/intent-resolver-DTDNCX3C.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-V6JNEZVO.mjs +0 -164
- package/dist/lib/node-esm/react-surface-V6JNEZVO.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-2VNUL77B.mjs +0 -106
- package/dist/lib/node-esm/toolkit-2VNUL77B.mjs.map +0 -7
- package/dist/types/src/components/BlueprintContainer.d.ts +0 -8
- package/dist/types/src/components/BlueprintContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts +0 -18
- 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/Timeline/Timeline.d.ts +0 -24
- package/dist/types/src/components/Timeline/Timeline.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/Timeline.stories.d.ts +0 -9
- package/dist/types/src/components/Timeline/Timeline.stories.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/index.d.ts +0 -2
- package/dist/types/src/components/Timeline/index.d.ts.map +0 -1
- package/dist/types/src/functions/list.d.ts.map +0 -1
- package/dist/types/src/functions/load.d.ts.map +0 -1
- package/dist/types/src/hooks/chat-processor.d.ts +0 -72
- package/dist/types/src/hooks/chat-processor.d.ts.map +0 -1
- package/dist/types/src/hooks/errors.d.ts +0 -4
- package/dist/types/src/hooks/errors.d.ts.map +0 -1
- package/dist/types/src/hooks/presets.d.ts.map +0 -1
- package/dist/types/src/hooks/useResolveRef.d.ts +0 -4
- package/dist/types/src/hooks/useResolveRef.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 -268
- package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/stories/components/BlueprintContainer.d.ts +0 -5
- package/dist/types/src/stories/components/BlueprintContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/ChatContainer.d.ts +0 -5
- package/dist/types/src/stories/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/GraphContainer.d.ts +0 -6
- package/dist/types/src/stories/components/GraphContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/LoggingContainer.d.ts +0 -5
- package/dist/types/src/stories/components/LoggingContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/SurfaceContainer.d.ts +0 -8
- package/dist/types/src/stories/components/SurfaceContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/TasksContainer.d.ts +0 -5
- package/dist/types/src/stories/components/TasksContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/index.d.ts +0 -8
- package/dist/types/src/stories/components/index.d.ts.map +0 -1
- package/dist/types/src/stories/components/types.d.ts +0 -7
- package/dist/types/src/stories/components/types.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/index.d.ts +0 -3
- package/dist/types/src/stories/hooks/index.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/useFlush.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/useMatcherExtension.d.ts +0 -3
- package/dist/types/src/stories/hooks/useMatcherExtension.d.ts.map +0 -1
- package/dist/types/src/stories/testing/data.d.ts +0 -142
- package/dist/types/src/stories/testing/data.d.ts.map +0 -1
- package/dist/types/src/stories/testing/index.d.ts +0 -3
- package/dist/types/src/stories/testing/index.d.ts.map +0 -1
- package/dist/types/src/stories/testing/testing.d.ts +0 -26
- package/dist/types/src/stories/testing/testing.d.ts.map +0 -1
- package/dist/types/src/testing/test-functions.d.ts +0 -6
- 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/src/components/BlueprintContainer.tsx +0 -24
- package/src/components/ChatThread/ChatMessage.tsx +0 -282
- package/src/components/ChatThread/ToolBlock.tsx +0 -125
- package/src/components/ChatThread/reducer.ts +0 -52
- package/src/components/PromptSettings.tsx +0 -89
- package/src/components/SequenceContainer.tsx +0 -133
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -33
- package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
- package/src/components/SequenceEditor/index.ts +0 -5
- package/src/components/Timeline/Timeline.stories.tsx +0 -53
- package/src/components/Timeline/Timeline.tsx +0 -159
- package/src/hooks/chat-processor.ts +0 -260
- package/src/hooks/errors.ts +0 -8
- package/src/hooks/useResolveRef.ts +0 -33
- package/src/parser/filter-generator.test.ts +0 -32
- package/src/parser/filter-generator.ts +0 -74
- 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 -317
- package/src/stories/components/BlueprintContainer.tsx +0 -34
- package/src/stories/components/ChatContainer.tsx +0 -80
- package/src/stories/components/GraphContainer.tsx +0 -118
- package/src/stories/components/LoggingContainer.tsx +0 -22
- package/src/stories/components/SurfaceContainer.tsx +0 -62
- package/src/stories/components/TasksContainer.tsx +0 -51
- package/src/stories/components/index.ts +0 -12
- package/src/stories/components/types.ts +0 -11
- package/src/stories/hooks/index.ts +0 -6
- package/src/stories/hooks/useMatcherExtension.ts +0 -45
- package/src/stories/testing/data.ts +0 -130
- package/src/stories/testing/index.ts +0 -6
- package/src/stories/testing/testing.tsx +0 -162
- package/src/testing/test-functions.ts +0 -16
- package/src/tools/function.ts +0 -49
- package/src/tools/index.ts +0 -6
- package/src/tools/openapi.test.ts +0 -219
- package/src/tools/openapi.ts +0 -341
- package/src/typings.d.ts +0 -9
- /package/dist/types/src/{stories/hooks → hooks}/useFlush.d.ts +0 -0
- /package/src/{stories/hooks → hooks}/useFlush.ts +0 -0
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
import { type
|
|
2
|
+
import { type Space } from '@dxos/client/echo';
|
|
3
|
+
import { type Obj } from '@dxos/echo';
|
|
4
4
|
import { type Assistant } from '../types';
|
|
5
|
+
import { type ChatRootProps } from './Chat';
|
|
5
6
|
export type ChatContainerProps = {
|
|
6
|
-
chat: Assistant.Chat;
|
|
7
7
|
role?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
space?: Space;
|
|
9
|
+
chat?: Assistant.Chat;
|
|
10
|
+
companionTo?: Obj.Any;
|
|
11
|
+
} & Pick<ChatRootProps, 'onEvent'>;
|
|
12
|
+
export declare const ChatContainer: ({ space: spaceProp, chat, companionTo, onEvent }: ChatContainerProps) => React.JSX.Element | null;
|
|
11
13
|
export default ChatContainer;
|
|
12
14
|
//# sourceMappingURL=ChatContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAE1C,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAElD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;CACvB,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;AAEnC,eAAO,MAAM,aAAa,GAAI,kDAAkD,kBAAkB,6BAiCjG,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatDialog.d.ts","sourceRoot":"","sources":["../../../../src/components/ChatDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAUrD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,UAAU,eAAe,6BAkDnD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Assistant } from '../../types';
|
|
3
|
+
export type ChatProgressProps = {
|
|
4
|
+
chat: Assistant.Chat;
|
|
5
|
+
};
|
|
6
|
+
export declare const ChatProgress: ({ chat }: ChatProgressProps) => React.JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ChatProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatProgress.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatProgress/ChatProgress.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAe7C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,UAAU,iBAAiB,sBAsCvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatProgress/index.ts"],"names":[],"mappings":"AAIA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatActions.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAIlF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAC5C,iBAAiB,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC,CAAC,CACH,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sEAAsE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ChatActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatActions.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,OAAO,EAAc,KAAK,eAAe,EAAkB,MAAM,gBAAgB,CAAC;AAIlF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAC5C,iBAAiB,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC,CAAC,CACH,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,sEAAsE,gBAAgB,sBAiCjH,CAAC"}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
2
|
import { type AiContextBinder } from '@dxos/assistant';
|
|
3
3
|
import { type Blueprint } from '@dxos/blueprints';
|
|
4
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
4
5
|
export type ChatOptionsProps = {
|
|
5
|
-
|
|
6
|
+
space: Space;
|
|
7
|
+
context: AiContextBinder;
|
|
6
8
|
blueprintRegistry?: Blueprint.Registry;
|
|
7
|
-
|
|
9
|
+
presets?: {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
13
|
+
preset?: string;
|
|
14
|
+
onPresetChange?: (id: string) => void;
|
|
8
15
|
};
|
|
9
16
|
/**
|
|
10
17
|
* Manages the runtime context for the chat.
|
|
11
18
|
*/
|
|
12
|
-
export declare const ChatOptions: ({ context, blueprintRegistry,
|
|
19
|
+
export declare const ChatOptions: ({ space, context, blueprintRegistry, presets, preset, onPresetChange, }: ChatOptionsProps) => JSX.Element;
|
|
13
20
|
//# sourceMappingURL=ChatOptions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatOptions.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatOptions.tsx"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"ChatOptions.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatOptions.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,GAAG,EAAqB,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAU/D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,eAAe,CAAC;IACzB,iBAAiB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC;IACvC,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,yEAOzB,gBAAgB,gBAwDlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatPresets.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatPresets.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,+BAA+B,gBAAgB,
|
|
1
|
+
{"version":3,"file":"ChatPresets.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatPresets.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,+BAA+B,gBAAgB,sBAc1E,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type AiContextBinder } from '@dxos/assistant';
|
|
3
|
-
import { type Space } from '@dxos/client/echo';
|
|
3
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
4
4
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
5
5
|
export type ChatReferencesProps = ThemedClassName<{
|
|
6
|
-
space: Space;
|
|
7
6
|
context: AiContextBinder;
|
|
8
|
-
|
|
7
|
+
space: Space;
|
|
9
8
|
}>;
|
|
10
|
-
export declare const ChatReferences: ({ classNames,
|
|
9
|
+
export declare const ChatReferences: ({ classNames, context, space }: ChatReferencesProps) => React.JSX.Element;
|
|
11
10
|
//# sourceMappingURL=ChatReferences.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatReferences.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatReferences.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatReferences.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatReferences.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEvD,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAA0B,KAAK,eAAe,EAAqC,MAAM,gBAAgB,CAAC;AAMjH,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,OAAO,EAAE,eAAe,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,gCAAgC,mBAAmB,sBA2BjF,CAAC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
+
import { type SpinnerProps } from '@dxos/react-ui-sfx';
|
|
4
|
+
export type ChatStatusIndicatorProps = ThemedClassName<{
|
|
3
5
|
preset?: string;
|
|
4
|
-
error?: Error;
|
|
5
6
|
processing?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
7
|
+
error?: Error;
|
|
8
|
+
} & Pick<SpinnerProps, 'size' | 'onClick'>>;
|
|
9
|
+
export declare const ChatStatusIndicator: ({ classNames, preset, processing, error, ...props }: ChatStatusIndicatorProps) => React.JSX.Element;
|
|
8
10
|
//# sourceMappingURL=ChatStatusIndicator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatStatusIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatStatusIndicator.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ChatStatusIndicator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/ChatStatusIndicator.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,eAAe,EAAuB,MAAM,gBAAgB,CAAC;AAC3E,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAKhE,MAAM,MAAM,wBAAwB,GAAG,eAAe,CACpD;IACE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,SAAS,CAAC,CAC3C,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,qDAAqD,wBAAwB,sBAqBhH,CAAC"}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type Identity } from '@dxos/react-client/halo';
|
|
3
3
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
-
import { type
|
|
5
|
-
import { type
|
|
6
|
-
import { type
|
|
4
|
+
import { type MarkdownStreamController, type MarkdownStreamProps } from '@dxos/react-ui-components';
|
|
5
|
+
import { type Message } from '@dxos/types';
|
|
6
|
+
import { type ChatEvent } from '../Chat';
|
|
7
7
|
export type ChatThreadProps = ThemedClassName<{
|
|
8
8
|
identity?: Identity;
|
|
9
|
-
messages?:
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
messages?: Message.Message[];
|
|
10
|
+
error?: Error;
|
|
11
|
+
onEvent?: (event: ChatEvent) => void;
|
|
12
|
+
} & Pick<MarkdownStreamProps, 'cursor' | 'fadeIn' | 'debug'>>;
|
|
12
13
|
export declare const ChatThread: React.ForwardRefExoticComponent<Omit<{
|
|
13
14
|
identity?: Identity;
|
|
14
|
-
messages?:
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
messages?: Message.Message[];
|
|
16
|
+
error?: Error;
|
|
17
|
+
onEvent?: (event: ChatEvent) => void;
|
|
18
|
+
} & Pick<MarkdownStreamProps, "cursor" | "debug" | "fadeIn">, "className"> & {
|
|
17
19
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
18
|
-
} & React.RefAttributes<
|
|
20
|
+
} & React.RefAttributes<MarkdownStreamController>>;
|
|
19
21
|
//# sourceMappingURL=ChatThread.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatThread.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/ChatThread.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatThread.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/ChatThread.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0E,MAAM,OAAO,CAAC;AAG/F,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAkB,KAAK,wBAAwB,EAAE,KAAK,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAEpH,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAKzC,MAAM,MAAM,eAAe,GAAG,eAAe,CAC3C;IACE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;IAC7B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;CACtC,GAAG,IAAI,CAAC,mBAAmB,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC,CAC7D,CAAC;AAGF,eAAO,MAAM,UAAU;eARR,QAAQ;eACR,OAAO,CAAC,OAAO,EAAE;YACpB,KAAK;cACH,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI;;;kDA8DvC,CAAC"}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
2
3
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
+
import { ContextQueueService, DatabaseService } from '@dxos/functions';
|
|
5
|
+
import { type Message } from '@dxos/types';
|
|
6
|
+
import { type ChatThreadProps } from './ChatThread';
|
|
7
|
+
type MessageGenerator = Effect.Effect<void, never, DatabaseService | ContextQueueService>;
|
|
8
|
+
type StoryProps = {
|
|
9
|
+
generator?: MessageGenerator[];
|
|
10
|
+
delay?: number;
|
|
11
|
+
wait?: boolean;
|
|
12
|
+
} & ChatThreadProps;
|
|
4
13
|
declare const meta: {
|
|
5
14
|
title: string;
|
|
6
15
|
component: React.ForwardRefExoticComponent<Omit<{
|
|
7
16
|
identity?: import("@dxos/client/halo").Identity;
|
|
8
|
-
messages?:
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
messages?: Message.Message[];
|
|
18
|
+
error?: Error;
|
|
19
|
+
onEvent?: (event: import("..").ChatEvent) => void;
|
|
20
|
+
} & Pick<import("@dxos/react-ui-components").MarkdownStreamProps, "cursor" | "debug" | "fadeIn">, "className"> & {
|
|
11
21
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
12
|
-
} & React.RefAttributes<import("@dxos/react-ui-components").
|
|
13
|
-
render: (args:
|
|
14
|
-
identity?: import("@dxos/client/halo").Identity;
|
|
15
|
-
messages?: DataType.Message[];
|
|
16
|
-
collapse?: boolean;
|
|
17
|
-
} & Pick<import("./ChatMessage").ChatMessageProps, "space" | "tools" | "onEvent" | "debug">, "className"> & {
|
|
18
|
-
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
19
|
-
} & {
|
|
20
|
-
delay?: number;
|
|
21
|
-
}) => React.JSX.Element;
|
|
22
|
+
} & React.RefAttributes<import("@dxos/react-ui-components").MarkdownStreamController>>;
|
|
23
|
+
render: (args: unknown) => React.JSX.Element;
|
|
22
24
|
decorators: import("@storybook/react").Decorator[];
|
|
23
25
|
parameters: {
|
|
26
|
+
layout: string;
|
|
24
27
|
translations: [{
|
|
25
28
|
readonly 'en-US': {
|
|
26
29
|
readonly [x: string]: {
|
|
@@ -35,6 +38,66 @@ declare const meta: {
|
|
|
35
38
|
readonly 'open ambient chat label'?: undefined;
|
|
36
39
|
readonly 'assistant chat label'?: undefined;
|
|
37
40
|
readonly 'plugin name'?: undefined;
|
|
41
|
+
readonly 'settings title'?: undefined;
|
|
42
|
+
readonly 'object placeholder'?: undefined;
|
|
43
|
+
readonly 'create object label'?: undefined;
|
|
44
|
+
readonly 'create trigger label'?: undefined;
|
|
45
|
+
readonly 'create stack section label'?: undefined;
|
|
46
|
+
readonly 'command placeholder'?: undefined;
|
|
47
|
+
readonly 'template placeholder'?: undefined;
|
|
48
|
+
readonly 'value placeholder'?: undefined;
|
|
49
|
+
readonly 'prompt rules label'?: undefined;
|
|
50
|
+
readonly 'typename placeholder'?: undefined;
|
|
51
|
+
readonly 'description placeholder'?: undefined;
|
|
52
|
+
readonly 'select preset template placeholder'?: undefined;
|
|
53
|
+
readonly 'service registry label'?: undefined;
|
|
54
|
+
readonly 'type filter placeholder'?: undefined;
|
|
55
|
+
readonly 'any type filter label'?: undefined;
|
|
56
|
+
readonly 'no blueprint message'?: undefined;
|
|
57
|
+
readonly 'tool call label'?: undefined;
|
|
58
|
+
readonly 'tool result label'?: undefined;
|
|
59
|
+
readonly 'tool error label'?: undefined;
|
|
60
|
+
readonly 'invocations label'?: undefined;
|
|
61
|
+
readonly 'assistant dialog title'?: undefined;
|
|
62
|
+
readonly 'open assistant label'?: undefined;
|
|
63
|
+
readonly 'no tools'?: undefined;
|
|
64
|
+
readonly 'no results'?: undefined;
|
|
65
|
+
readonly 'cancel button'?: undefined;
|
|
66
|
+
readonly 'save button'?: undefined;
|
|
67
|
+
readonly 'new thread button'?: undefined;
|
|
68
|
+
readonly 'rename thread button'?: undefined;
|
|
69
|
+
readonly 'chat history label'?: undefined;
|
|
70
|
+
readonly 'chat update name label'?: undefined;
|
|
71
|
+
readonly 'toolkit label'?: undefined;
|
|
72
|
+
readonly 'summary label'?: undefined;
|
|
73
|
+
readonly 'search placeholder'?: undefined;
|
|
74
|
+
readonly 'prompt placeholder'?: undefined;
|
|
75
|
+
readonly 'context objects button'?: undefined;
|
|
76
|
+
readonly 'context settings button'?: undefined;
|
|
77
|
+
readonly 'microphone button'?: undefined;
|
|
78
|
+
readonly 'cancel processing button'?: undefined;
|
|
79
|
+
readonly 'blueprints in context title'?: undefined;
|
|
80
|
+
readonly 'objects in context title'?: undefined;
|
|
81
|
+
readonly 'remove object in context label'?: undefined;
|
|
82
|
+
readonly 'chat model title'?: undefined;
|
|
83
|
+
readonly 'settings default label'?: undefined;
|
|
84
|
+
readonly 'settings custom prompts label'?: undefined;
|
|
85
|
+
readonly 'settings llm provider label'?: undefined;
|
|
86
|
+
readonly 'settings edge llm model label'?: undefined;
|
|
87
|
+
readonly 'settings ollama llm model label'?: undefined;
|
|
88
|
+
} | {
|
|
89
|
+
readonly 'typename label': "Prompt";
|
|
90
|
+
readonly 'typename label_zero': "Prompts";
|
|
91
|
+
readonly 'typename label_one': "Prompt";
|
|
92
|
+
readonly 'typename label_other': "Prompts";
|
|
93
|
+
readonly 'object name placeholder': "New prompt";
|
|
94
|
+
readonly 'rename object label': "Rename prompt";
|
|
95
|
+
readonly 'delete object label': "Delete prompt";
|
|
96
|
+
readonly 'templates label'?: undefined;
|
|
97
|
+
readonly 'open ambient chat label'?: undefined;
|
|
98
|
+
readonly 'assistant chat label'?: undefined;
|
|
99
|
+
readonly 'plugin name'?: undefined;
|
|
100
|
+
readonly 'settings title'?: undefined;
|
|
38
101
|
readonly 'object placeholder'?: undefined;
|
|
39
102
|
readonly 'create object label'?: undefined;
|
|
40
103
|
readonly 'create trigger label'?: undefined;
|
|
@@ -47,24 +110,35 @@ declare const meta: {
|
|
|
47
110
|
readonly 'description placeholder'?: undefined;
|
|
48
111
|
readonly 'select preset template placeholder'?: undefined;
|
|
49
112
|
readonly 'service registry label'?: undefined;
|
|
50
|
-
readonly '
|
|
113
|
+
readonly 'type filter placeholder'?: undefined;
|
|
114
|
+
readonly 'any type filter label'?: undefined;
|
|
115
|
+
readonly 'no blueprint message'?: undefined;
|
|
116
|
+
readonly 'tool call label'?: undefined;
|
|
117
|
+
readonly 'tool result label'?: undefined;
|
|
118
|
+
readonly 'tool error label'?: undefined;
|
|
119
|
+
readonly 'invocations label'?: undefined;
|
|
51
120
|
readonly 'assistant dialog title'?: undefined;
|
|
52
121
|
readonly 'open assistant label'?: undefined;
|
|
53
122
|
readonly 'no tools'?: undefined;
|
|
54
|
-
readonly '
|
|
55
|
-
readonly 'button
|
|
56
|
-
readonly 'button
|
|
57
|
-
readonly 'button
|
|
58
|
-
readonly '
|
|
59
|
-
readonly '
|
|
60
|
-
readonly '
|
|
123
|
+
readonly 'no results'?: undefined;
|
|
124
|
+
readonly 'cancel button'?: undefined;
|
|
125
|
+
readonly 'save button'?: undefined;
|
|
126
|
+
readonly 'new thread button'?: undefined;
|
|
127
|
+
readonly 'rename thread button'?: undefined;
|
|
128
|
+
readonly 'chat history label'?: undefined;
|
|
129
|
+
readonly 'chat update name label'?: undefined;
|
|
130
|
+
readonly 'toolkit label'?: undefined;
|
|
131
|
+
readonly 'summary label'?: undefined;
|
|
61
132
|
readonly 'search placeholder'?: undefined;
|
|
62
133
|
readonly 'prompt placeholder'?: undefined;
|
|
63
|
-
readonly 'context objects
|
|
64
|
-
readonly '
|
|
65
|
-
readonly 'button
|
|
66
|
-
readonly '
|
|
67
|
-
readonly '
|
|
134
|
+
readonly 'context objects button'?: undefined;
|
|
135
|
+
readonly 'context settings button'?: undefined;
|
|
136
|
+
readonly 'microphone button'?: undefined;
|
|
137
|
+
readonly 'cancel processing button'?: undefined;
|
|
138
|
+
readonly 'blueprints in context title'?: undefined;
|
|
139
|
+
readonly 'objects in context title'?: undefined;
|
|
140
|
+
readonly 'remove object in context label'?: undefined;
|
|
141
|
+
readonly 'chat model title'?: undefined;
|
|
68
142
|
readonly 'settings default label'?: undefined;
|
|
69
143
|
readonly 'settings custom prompts label'?: undefined;
|
|
70
144
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -82,6 +156,7 @@ declare const meta: {
|
|
|
82
156
|
readonly 'open ambient chat label'?: undefined;
|
|
83
157
|
readonly 'assistant chat label'?: undefined;
|
|
84
158
|
readonly 'plugin name'?: undefined;
|
|
159
|
+
readonly 'settings title'?: undefined;
|
|
85
160
|
readonly 'object placeholder'?: undefined;
|
|
86
161
|
readonly 'create object label'?: undefined;
|
|
87
162
|
readonly 'create trigger label'?: undefined;
|
|
@@ -94,41 +169,53 @@ declare const meta: {
|
|
|
94
169
|
readonly 'description placeholder'?: undefined;
|
|
95
170
|
readonly 'select preset template placeholder'?: undefined;
|
|
96
171
|
readonly 'service registry label'?: undefined;
|
|
97
|
-
readonly '
|
|
172
|
+
readonly 'type filter placeholder'?: undefined;
|
|
173
|
+
readonly 'any type filter label'?: undefined;
|
|
174
|
+
readonly 'no blueprint message'?: undefined;
|
|
175
|
+
readonly 'tool call label'?: undefined;
|
|
176
|
+
readonly 'tool result label'?: undefined;
|
|
177
|
+
readonly 'tool error label'?: undefined;
|
|
178
|
+
readonly 'invocations label'?: undefined;
|
|
98
179
|
readonly 'assistant dialog title'?: undefined;
|
|
99
180
|
readonly 'open assistant label'?: undefined;
|
|
100
181
|
readonly 'no tools'?: undefined;
|
|
101
|
-
readonly '
|
|
102
|
-
readonly 'button
|
|
103
|
-
readonly 'button
|
|
104
|
-
readonly 'button
|
|
105
|
-
readonly '
|
|
106
|
-
readonly '
|
|
107
|
-
readonly '
|
|
182
|
+
readonly 'no results'?: undefined;
|
|
183
|
+
readonly 'cancel button'?: undefined;
|
|
184
|
+
readonly 'save button'?: undefined;
|
|
185
|
+
readonly 'new thread button'?: undefined;
|
|
186
|
+
readonly 'rename thread button'?: undefined;
|
|
187
|
+
readonly 'chat history label'?: undefined;
|
|
188
|
+
readonly 'chat update name label'?: undefined;
|
|
189
|
+
readonly 'toolkit label'?: undefined;
|
|
190
|
+
readonly 'summary label'?: undefined;
|
|
108
191
|
readonly 'search placeholder'?: undefined;
|
|
109
192
|
readonly 'prompt placeholder'?: undefined;
|
|
110
|
-
readonly 'context objects
|
|
111
|
-
readonly '
|
|
112
|
-
readonly 'button
|
|
113
|
-
readonly '
|
|
114
|
-
readonly '
|
|
193
|
+
readonly 'context objects button'?: undefined;
|
|
194
|
+
readonly 'context settings button'?: undefined;
|
|
195
|
+
readonly 'microphone button'?: undefined;
|
|
196
|
+
readonly 'cancel processing button'?: undefined;
|
|
197
|
+
readonly 'blueprints in context title'?: undefined;
|
|
198
|
+
readonly 'objects in context title'?: undefined;
|
|
199
|
+
readonly 'remove object in context label'?: undefined;
|
|
200
|
+
readonly 'chat model title'?: undefined;
|
|
115
201
|
readonly 'settings default label'?: undefined;
|
|
116
202
|
readonly 'settings custom prompts label'?: undefined;
|
|
117
203
|
readonly 'settings llm provider label'?: undefined;
|
|
118
204
|
readonly 'settings edge llm model label'?: undefined;
|
|
119
205
|
readonly 'settings ollama llm model label'?: undefined;
|
|
120
206
|
} | {
|
|
121
|
-
readonly 'typename label': "
|
|
122
|
-
readonly '
|
|
123
|
-
readonly '
|
|
124
|
-
readonly '
|
|
125
|
-
readonly '
|
|
126
|
-
readonly '
|
|
127
|
-
readonly '
|
|
207
|
+
readonly 'typename label': "AI Chat";
|
|
208
|
+
readonly 'object name placeholder': "New AI Chat";
|
|
209
|
+
readonly 'rename object label': "Rename AI Chat";
|
|
210
|
+
readonly 'delete object label': "Delete AI Chat";
|
|
211
|
+
readonly 'typename label_zero'?: undefined;
|
|
212
|
+
readonly 'typename label_one'?: undefined;
|
|
213
|
+
readonly 'typename label_other'?: undefined;
|
|
128
214
|
readonly 'templates label'?: undefined;
|
|
129
215
|
readonly 'open ambient chat label'?: undefined;
|
|
130
216
|
readonly 'assistant chat label'?: undefined;
|
|
131
217
|
readonly 'plugin name'?: undefined;
|
|
218
|
+
readonly 'settings title'?: undefined;
|
|
132
219
|
readonly 'object placeholder'?: undefined;
|
|
133
220
|
readonly 'create object label'?: undefined;
|
|
134
221
|
readonly 'create trigger label'?: undefined;
|
|
@@ -141,24 +228,35 @@ declare const meta: {
|
|
|
141
228
|
readonly 'description placeholder'?: undefined;
|
|
142
229
|
readonly 'select preset template placeholder'?: undefined;
|
|
143
230
|
readonly 'service registry label'?: undefined;
|
|
144
|
-
readonly '
|
|
231
|
+
readonly 'type filter placeholder'?: undefined;
|
|
232
|
+
readonly 'any type filter label'?: undefined;
|
|
233
|
+
readonly 'no blueprint message'?: undefined;
|
|
234
|
+
readonly 'tool call label'?: undefined;
|
|
235
|
+
readonly 'tool result label'?: undefined;
|
|
236
|
+
readonly 'tool error label'?: undefined;
|
|
237
|
+
readonly 'invocations label'?: undefined;
|
|
145
238
|
readonly 'assistant dialog title'?: undefined;
|
|
146
239
|
readonly 'open assistant label'?: undefined;
|
|
147
240
|
readonly 'no tools'?: undefined;
|
|
148
|
-
readonly '
|
|
149
|
-
readonly 'button
|
|
150
|
-
readonly 'button
|
|
151
|
-
readonly 'button
|
|
152
|
-
readonly '
|
|
153
|
-
readonly '
|
|
154
|
-
readonly '
|
|
241
|
+
readonly 'no results'?: undefined;
|
|
242
|
+
readonly 'cancel button'?: undefined;
|
|
243
|
+
readonly 'save button'?: undefined;
|
|
244
|
+
readonly 'new thread button'?: undefined;
|
|
245
|
+
readonly 'rename thread button'?: undefined;
|
|
246
|
+
readonly 'chat history label'?: undefined;
|
|
247
|
+
readonly 'chat update name label'?: undefined;
|
|
248
|
+
readonly 'toolkit label'?: undefined;
|
|
249
|
+
readonly 'summary label'?: undefined;
|
|
155
250
|
readonly 'search placeholder'?: undefined;
|
|
156
251
|
readonly 'prompt placeholder'?: undefined;
|
|
157
|
-
readonly 'context objects
|
|
158
|
-
readonly '
|
|
159
|
-
readonly 'button
|
|
160
|
-
readonly '
|
|
161
|
-
readonly '
|
|
252
|
+
readonly 'context objects button'?: undefined;
|
|
253
|
+
readonly 'context settings button'?: undefined;
|
|
254
|
+
readonly 'microphone button'?: undefined;
|
|
255
|
+
readonly 'cancel processing button'?: undefined;
|
|
256
|
+
readonly 'blueprints in context title'?: undefined;
|
|
257
|
+
readonly 'objects in context title'?: undefined;
|
|
258
|
+
readonly 'remove object in context label'?: undefined;
|
|
259
|
+
readonly 'chat model title'?: undefined;
|
|
162
260
|
readonly 'settings default label'?: undefined;
|
|
163
261
|
readonly 'settings custom prompts label'?: undefined;
|
|
164
262
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -169,6 +267,7 @@ declare const meta: {
|
|
|
169
267
|
readonly 'open ambient chat label': "Open Assistant";
|
|
170
268
|
readonly 'assistant chat label': "Assistant";
|
|
171
269
|
readonly 'plugin name': "Assistant";
|
|
270
|
+
readonly 'settings title': "Assistant settings";
|
|
172
271
|
readonly 'object placeholder': "New prompt";
|
|
173
272
|
readonly 'create object label': "Create prompt";
|
|
174
273
|
readonly 'create trigger label': "Create trigger";
|
|
@@ -181,24 +280,35 @@ declare const meta: {
|
|
|
181
280
|
readonly 'description placeholder': "Enter description of when this template should be used";
|
|
182
281
|
readonly 'select preset template placeholder': "Select preset";
|
|
183
282
|
readonly 'service registry label': "Service Registry";
|
|
184
|
-
readonly '
|
|
283
|
+
readonly 'type filter placeholder': "Type";
|
|
284
|
+
readonly 'any type filter label': "Any";
|
|
285
|
+
readonly 'no blueprint message': "No active blueprints";
|
|
286
|
+
readonly 'tool call label': "Calling tool...";
|
|
287
|
+
readonly 'tool result label': "Success";
|
|
288
|
+
readonly 'tool error label': "Tool call failed";
|
|
289
|
+
readonly 'invocations label': "Invocations";
|
|
185
290
|
readonly 'assistant dialog title': "Assistant";
|
|
186
291
|
readonly 'open assistant label': "Open assistant";
|
|
187
|
-
readonly 'no tools': "No tools are configured
|
|
188
|
-
readonly '
|
|
189
|
-
readonly 'button
|
|
190
|
-
readonly 'button
|
|
191
|
-
readonly 'button
|
|
192
|
-
readonly '
|
|
193
|
-
readonly '
|
|
194
|
-
readonly '
|
|
292
|
+
readonly 'no tools': "No tools are configured";
|
|
293
|
+
readonly 'no results': "No results";
|
|
294
|
+
readonly 'cancel button': "Cancel";
|
|
295
|
+
readonly 'save button': "Save";
|
|
296
|
+
readonly 'new thread button': "New Chat";
|
|
297
|
+
readonly 'rename thread button': "Rename Chat";
|
|
298
|
+
readonly 'chat history label': "Chat History";
|
|
299
|
+
readonly 'chat update name label': "Update AI Chat name";
|
|
300
|
+
readonly 'toolkit label': "Toolkit";
|
|
301
|
+
readonly 'summary label': "Summary";
|
|
195
302
|
readonly 'search placeholder': "Search...";
|
|
196
|
-
readonly 'prompt placeholder': "
|
|
197
|
-
readonly 'context objects
|
|
198
|
-
readonly '
|
|
199
|
-
readonly 'button
|
|
200
|
-
readonly '
|
|
201
|
-
readonly '
|
|
303
|
+
readonly 'prompt placeholder': "Enter question or command...";
|
|
304
|
+
readonly 'context objects button': "Add to context";
|
|
305
|
+
readonly 'context settings button': "Chat settings";
|
|
306
|
+
readonly 'microphone button': "Click to speak";
|
|
307
|
+
readonly 'cancel processing button': "Stop processing";
|
|
308
|
+
readonly 'blueprints in context title': "Blueprints";
|
|
309
|
+
readonly 'objects in context title': "Content";
|
|
310
|
+
readonly 'remove object in context label': "Remove document";
|
|
311
|
+
readonly 'chat model title': "Model";
|
|
202
312
|
readonly 'settings default label': "Default";
|
|
203
313
|
readonly 'settings custom prompts label': "Use custom prompts";
|
|
204
314
|
readonly 'settings llm provider label': "LLM provider";
|
|
@@ -217,10 +327,9 @@ declare const meta: {
|
|
|
217
327
|
};
|
|
218
328
|
};
|
|
219
329
|
export default meta;
|
|
220
|
-
|
|
221
|
-
export declare const
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
};
|
|
330
|
+
type Story = StoryObj<StoryProps>;
|
|
331
|
+
export declare const Default: Story;
|
|
332
|
+
export declare const Delayed: Story;
|
|
333
|
+
export declare const Raw: Story;
|
|
334
|
+
export declare const Static: Story;
|
|
226
335
|
//# sourceMappingURL=ChatThread.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatThread.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/ChatThread.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChatThread.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/ChatThread.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,KAA2D,MAAM,OAAO,CAAC;AAEhF,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAUvE,OAAO,EAAE,KAAK,OAAO,EAAwB,MAAM,aAAa,CAAC;AAKjE,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAMhE,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,GAAG,mBAAmB,CAAC,CAAC;AAE1F,KAAK,UAAU,GAAG;IAAE,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,eAAe,CAAC;AA6DvG,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBkB,CAAC;AAE7B,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/Link.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/Link.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,gBAAgB,eAAe,sBASzD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type Message } from '@dxos/types';
|
|
2
|
+
type Reducer<R, I> = (acc: R, value: I, idx: number) => R;
|
|
3
|
+
/**
|
|
4
|
+
* Reducer that collapses related message blocks into single messages.
|
|
5
|
+
* For example, combines tool request/response pairs into a single message.
|
|
6
|
+
*
|
|
7
|
+
* Typical order:
|
|
8
|
+
* - message 0
|
|
9
|
+
* - text
|
|
10
|
+
* - message 1
|
|
11
|
+
* - text
|
|
12
|
+
* - toolCall
|
|
13
|
+
* - summary
|
|
14
|
+
* - message 2
|
|
15
|
+
* - toolResult
|
|
16
|
+
* - message 3
|
|
17
|
+
* - text
|
|
18
|
+
* - summary
|
|
19
|
+
*
|
|
20
|
+
* Coverts to:
|
|
21
|
+
* - message 0
|
|
22
|
+
* - text
|
|
23
|
+
* - message 1
|
|
24
|
+
* - text
|
|
25
|
+
* - message 2
|
|
26
|
+
* - toolCall
|
|
27
|
+
* - toolResult
|
|
28
|
+
* - summary
|
|
29
|
+
* - message 3
|
|
30
|
+
* - text
|
|
31
|
+
* - summary
|
|
32
|
+
*/
|
|
33
|
+
export declare const reduceMessages: Reducer<{
|
|
34
|
+
messages: Message.Message[];
|
|
35
|
+
current?: Message.Message;
|
|
36
|
+
toolBlock?: boolean;
|
|
37
|
+
assistantMessages?: Message.Message[];
|
|
38
|
+
}, Message.Message>;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=reducers.d.ts.map
|