@dxos/plugin-assistant 0.8.4-main.67995b8 → 0.8.4-main.72ec0f3
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-JYD2RIBJ.mjs +158 -0
- package/dist/lib/browser/ChatCompanion-JYD2RIBJ.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-XCPBWYIR.mjs +77 -0
- package/dist/lib/browser/ChatContainer-XCPBWYIR.mjs.map +7 -0
- package/dist/lib/browser/{ChatDialog-ZVLXFHEY.mjs → ChatDialog-DT7KFCRL.mjs} +30 -12
- package/dist/lib/browser/ChatDialog-DT7KFCRL.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-VZEXMDTY.mjs +199 -0
- 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-BNTPFZ7O.mjs +229 -0
- 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/chunk-IXIIS4QA.mjs +176 -0
- package/dist/lib/browser/chunk-IXIIS4QA.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-LRE4VEZV.mjs +16 -0
- package/dist/lib/browser/chunk-LRE4VEZV.mjs.map +7 -0
- package/dist/lib/browser/chunk-U62BTGDF.mjs +1929 -0
- package/dist/lib/browser/chunk-U62BTGDF.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 +209 -87
- 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-YCSR2MSR.mjs +98 -0
- package/dist/lib/browser/react-surface-YCSR2MSR.mjs.map +7 -0
- package/dist/lib/browser/{settings-5GTTCVGD.mjs → settings-NYJGNQ5I.mjs} +8 -7
- package/dist/lib/{node-esm/settings-J2EXEM5H.mjs.map → browser/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 +7 -4
- 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-AHKJS25S.mjs +159 -0
- package/dist/lib/node-esm/ChatCompanion-AHKJS25S.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatContainer-W3W6FWV3.mjs → ChatContainer-K7OGPE3G.mjs} +38 -15
- package/dist/lib/node-esm/ChatContainer-K7OGPE3G.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatDialog-QW4JRKVO.mjs → ChatDialog-QT6ZBX45.mjs} +30 -12
- package/dist/lib/node-esm/ChatDialog-QT6ZBX45.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-VRN6ESRR.mjs +200 -0
- 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-AB74FOA2.mjs +230 -0
- package/dist/lib/node-esm/chunk-AB74FOA2.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-BHS747K7.mjs +1930 -0
- package/dist/lib/node-esm/chunk-BHS747K7.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-KJGD4EBJ.mjs +336 -0
- package/dist/lib/node-esm/chunk-KJGD4EBJ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-UXTUHH24.mjs +178 -0
- 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-YWFWT57N.mjs +17 -0
- 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 +209 -87
- 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-CTW44GEM.mjs +99 -0
- package/dist/lib/node-esm/react-surface-CTW44GEM.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-J2EXEM5H.mjs → settings-RRHYI5KO.mjs} +8 -7
- package/dist/lib/{browser/settings-5GTTCVGD.mjs.map → node-esm/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 +7 -4
- 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 +4 -0
- package/dist/types/src/capabilities/ai-service.d.ts.map +1 -0
- 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 +7 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/capabilities.d.ts +10 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/edge-model-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +11 -3
- 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 +4 -0
- package/dist/types/src/capabilities/toolkit.d.ts.map +1 -0
- 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 +35 -21
- 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 +9 -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 +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 +4 -5
- 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 +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 -55
- 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/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 +6 -11
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +313 -5
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -6
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/events.d.ts +1 -1
- package/dist/types/src/events.d.ts.map +1 -1
- package/dist/types/src/functions/analysis.d.ts +5 -0
- package/dist/types/src/functions/analysis.d.ts.map +1 -0
- 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/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 +8 -19
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +5 -6
- 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 +6 -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/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 -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 +3 -3
- 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 -28
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +48 -0
- package/dist/types/src/types/Assistant.d.ts.map +1 -0
- package/dist/types/src/types/AssistantAction.d.ts +132 -0
- package/dist/types/src/types/AssistantAction.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/index.d.ts +3 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +27 -18
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +100 -97
- package/src/AssistantPlugin.tsx +168 -107
- package/src/capabilities/ai-service.ts +27 -0
- package/src/capabilities/app-graph-builder.ts +101 -60
- package/src/capabilities/blueprint-definition.ts +66 -0
- package/src/capabilities/capabilities.ts +17 -0
- package/src/capabilities/edge-model-resolver.ts +25 -0
- package/src/capabilities/index.ts +9 -0
- package/src/capabilities/intent-resolver.ts +97 -22
- package/src/capabilities/local-model-resolver.ts +30 -0
- package/src/capabilities/react-surface.tsx +24 -75
- package/src/capabilities/state.ts +22 -0
- package/src/capabilities/toolkit.ts +17 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +83 -76
- package/src/components/BlueprintArticle.tsx +29 -0
- package/src/components/Chat/Chat.tsx +260 -217
- package/src/components/Chat/events.ts +13 -0
- package/src/components/ChatCompanion.tsx +155 -0
- package/src/components/ChatContainer.tsx +36 -20
- package/src/components/ChatDialog.tsx +25 -14
- package/src/components/ChatProgress/ChatProgress.tsx +67 -0
- package/src/components/{SequenceEditor → ChatProgress}/index.ts +1 -1
- package/src/components/ChatPrompt/ChatActions.tsx +10 -26
- package/src/components/ChatPrompt/ChatOptions.tsx +228 -0
- package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +31 -36
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +25 -22
- package/src/components/ChatPrompt/index.ts +1 -1
- package/src/components/ChatThread/ChatThread.stories.tsx +120 -115
- package/src/components/ChatThread/ChatThread.tsx +65 -35
- package/src/components/ChatThread/Link.tsx +26 -0
- 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 +38 -17
- package/src/components/TemplateEditor/TemplateEditor.tsx +29 -53
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +16 -11
- package/src/components/TemplateEditor/TemplateForm.tsx +5 -3
- 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 +14 -23
- package/src/components/Toolbox/Toolbox.tsx +25 -55
- package/src/components/index.ts +3 -7
- package/src/events.ts +2 -2
- package/src/functions/analysis.ts +22 -0
- package/src/functions/index.ts +7 -0
- package/src/functions/object-list.ts +48 -0
- package/src/functions/object-load.ts +45 -0
- package/src/hooks/index.ts +8 -4
- package/src/hooks/useBlueprintRegistry.ts +95 -0
- package/src/hooks/useChatProcessor.ts +35 -104
- package/src/hooks/useChatServices.ts +33 -49
- package/src/hooks/useChatToolbarActions.ts +122 -0
- package/src/hooks/useContextBinder.ts +30 -0
- package/src/hooks/useContextObjects.ts +58 -0
- package/src/hooks/useFlush.ts +35 -0
- package/src/hooks/useItemTypes.ts +37 -0
- package/src/hooks/useOnline.ts +10 -0
- package/src/hooks/usePresets.ts +44 -0
- package/src/hooks/useReferencesProvider.ts +13 -10
- 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 +16 -8
- 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 +13 -17
- package/src/testing/index.ts +1 -1
- package/src/testing/test-generator.ts +261 -0
- package/src/testing/test-sequence.ts +2 -27
- package/src/testing/test-services.ts +2 -8
- package/src/translations.ts +45 -18
- package/src/types/Assistant.ts +63 -0
- package/src/types/AssistantAction.ts +79 -0
- package/src/types/defs.ts +5 -0
- package/src/types/index.ts +4 -1
- package/src/types/service.ts +17 -9
- package/src/vite-env.d.ts +30 -0
- package/dist/lib/browser/BlueprintContainer-IZ4AK5EO.mjs +0 -28
- package/dist/lib/browser/BlueprintContainer-IZ4AK5EO.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-RP3QEXYX.mjs +0 -54
- package/dist/lib/browser/ChatContainer-RP3QEXYX.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-ZVLXFHEY.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/app-graph-builder-XSEOKJLG.mjs +0 -164
- package/dist/lib/browser/app-graph-builder-XSEOKJLG.mjs.map +0 -7
- package/dist/lib/browser/chunk-63GG6U6D.mjs +0 -2226
- package/dist/lib/browser/chunk-63GG6U6D.mjs.map +0 -7
- package/dist/lib/browser/chunk-7W7LHTRH.mjs +0 -171
- package/dist/lib/browser/chunk-7W7LHTRH.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-KFXSBNZR.mjs +0 -89
- package/dist/lib/browser/chunk-KFXSBNZR.mjs.map +0 -7
- package/dist/lib/browser/chunk-LERGF5YG.mjs +0 -108
- package/dist/lib/browser/chunk-LERGF5YG.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MV3VSZLS.mjs +0 -75
- package/dist/lib/browser/intent-resolver-MV3VSZLS.mjs.map +0 -7
- package/dist/lib/browser/react-surface-3GYEHQRP.mjs +0 -150
- package/dist/lib/browser/react-surface-3GYEHQRP.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintContainer-RGTMNLNX.mjs +0 -29
- package/dist/lib/node-esm/BlueprintContainer-RGTMNLNX.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-W3W6FWV3.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-QW4JRKVO.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/app-graph-builder-PANCJUHV.mjs +0 -165
- package/dist/lib/node-esm/app-graph-builder-PANCJUHV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BFO3KHYL.mjs +0 -2227
- package/dist/lib/node-esm/chunk-BFO3KHYL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MS3PJARN.mjs +0 -109
- package/dist/lib/node-esm/chunk-MS3PJARN.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-VIIMA3XQ.mjs +0 -90
- package/dist/lib/node-esm/chunk-VIIMA3XQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Z7PUODRT.mjs +0 -172
- package/dist/lib/node-esm/chunk-Z7PUODRT.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-3FMC3GHC.mjs +0 -76
- package/dist/lib/node-esm/intent-resolver-3FMC3GHC.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-QDQWJ7FZ.mjs +0 -151
- package/dist/lib/node-esm/react-surface-QDQWJ7FZ.mjs.map +0 -7
- package/dist/types/src/capability-definitions.d.ts +0 -7
- package/dist/types/src/capability-definitions.d.ts.map +0 -1
- 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/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/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 -207
- 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 -120
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capability-definitions.ts +0 -15
- package/src/components/BlueprintContainer.tsx +0 -24
- 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/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 -371
- 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 -108
- package/src/typings.d.ts +0 -9
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type
|
|
2
|
+
import { type Space } from '@dxos/client/echo';
|
|
3
|
+
import { type Obj } from '@dxos/echo';
|
|
3
4
|
import { type Assistant } from '../types';
|
|
5
|
+
import { type ChatRootProps } from './Chat';
|
|
4
6
|
export type ChatContainerProps = {
|
|
5
|
-
role
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
role?: string;
|
|
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;
|
|
10
13
|
export default ChatContainer;
|
|
11
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,KAAK,MAAM,OAAO,CAAC;
|
|
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;AAUrD,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,UAAU,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type JSX } from 'react';
|
|
2
|
+
import { type AiContextBinder } from '@dxos/assistant';
|
|
3
|
+
import { type Blueprint } from '@dxos/blueprints';
|
|
4
|
+
import { type Space } from '@dxos/react-client/echo';
|
|
5
|
+
export type ChatOptionsProps = {
|
|
6
|
+
space: Space;
|
|
7
|
+
context: AiContextBinder;
|
|
8
|
+
blueprintRegistry?: Blueprint.Registry;
|
|
9
|
+
presets?: {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}[];
|
|
13
|
+
preset?: string;
|
|
14
|
+
onPresetChange?: (id: string) => void;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Manages the runtime context for the chat.
|
|
18
|
+
*/
|
|
19
|
+
export declare const ChatOptions: ({ space, context, blueprintRegistry, presets, preset, onPresetChange, }: ChatOptionsProps) => JSX.Element;
|
|
20
|
+
//# sourceMappingURL=ChatOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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
|
-
import { type
|
|
3
|
-
import { type Space } from '@dxos/client/echo';
|
|
2
|
+
import { type AiContextBinder } from '@dxos/assistant';
|
|
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
|
+
context: AiContextBinder;
|
|
6
7
|
space: Space;
|
|
7
|
-
context: ContextBinder;
|
|
8
|
-
onUpdate?: (ids: string[]) => void;
|
|
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatPrompt/index.ts"],"names":[],"mappings":"AAIA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,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,17 +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").
|
|
22
|
+
} & React.RefAttributes<import("@dxos/react-ui-components").MarkdownStreamController>>;
|
|
23
|
+
render: (args: unknown) => React.JSX.Element;
|
|
13
24
|
decorators: import("@storybook/react").Decorator[];
|
|
14
25
|
parameters: {
|
|
26
|
+
layout: string;
|
|
15
27
|
translations: [{
|
|
16
28
|
readonly 'en-US': {
|
|
17
29
|
readonly [x: string]: {
|
|
@@ -26,6 +38,7 @@ declare const meta: {
|
|
|
26
38
|
readonly 'open ambient chat label'?: undefined;
|
|
27
39
|
readonly 'assistant chat label'?: undefined;
|
|
28
40
|
readonly 'plugin name'?: undefined;
|
|
41
|
+
readonly 'settings title'?: undefined;
|
|
29
42
|
readonly 'object placeholder'?: undefined;
|
|
30
43
|
readonly 'create object label'?: undefined;
|
|
31
44
|
readonly 'create trigger label'?: undefined;
|
|
@@ -38,19 +51,94 @@ declare const meta: {
|
|
|
38
51
|
readonly 'description placeholder'?: undefined;
|
|
39
52
|
readonly 'select preset template placeholder'?: undefined;
|
|
40
53
|
readonly 'service registry label'?: undefined;
|
|
41
|
-
readonly '
|
|
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;
|
|
42
61
|
readonly 'assistant dialog title'?: undefined;
|
|
43
62
|
readonly 'open assistant label'?: undefined;
|
|
44
63
|
readonly 'no tools'?: undefined;
|
|
45
|
-
readonly '
|
|
46
|
-
readonly 'button
|
|
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;
|
|
47
73
|
readonly 'search placeholder'?: undefined;
|
|
48
74
|
readonly 'prompt placeholder'?: undefined;
|
|
49
|
-
readonly 'context objects
|
|
50
|
-
readonly '
|
|
51
|
-
readonly 'button
|
|
52
|
-
readonly '
|
|
53
|
-
readonly '
|
|
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;
|
|
101
|
+
readonly 'object placeholder'?: undefined;
|
|
102
|
+
readonly 'create object label'?: undefined;
|
|
103
|
+
readonly 'create trigger label'?: undefined;
|
|
104
|
+
readonly 'create stack section label'?: undefined;
|
|
105
|
+
readonly 'command placeholder'?: undefined;
|
|
106
|
+
readonly 'template placeholder'?: undefined;
|
|
107
|
+
readonly 'value placeholder'?: undefined;
|
|
108
|
+
readonly 'prompt rules label'?: undefined;
|
|
109
|
+
readonly 'typename placeholder'?: undefined;
|
|
110
|
+
readonly 'description placeholder'?: undefined;
|
|
111
|
+
readonly 'select preset template placeholder'?: undefined;
|
|
112
|
+
readonly 'service registry label'?: undefined;
|
|
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;
|
|
120
|
+
readonly 'assistant dialog title'?: undefined;
|
|
121
|
+
readonly 'open assistant label'?: undefined;
|
|
122
|
+
readonly 'no tools'?: undefined;
|
|
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;
|
|
132
|
+
readonly 'search placeholder'?: undefined;
|
|
133
|
+
readonly 'prompt placeholder'?: undefined;
|
|
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;
|
|
54
142
|
readonly 'settings default label'?: undefined;
|
|
55
143
|
readonly 'settings custom prompts label'?: undefined;
|
|
56
144
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -68,6 +156,7 @@ declare const meta: {
|
|
|
68
156
|
readonly 'open ambient chat label'?: undefined;
|
|
69
157
|
readonly 'assistant chat label'?: undefined;
|
|
70
158
|
readonly 'plugin name'?: undefined;
|
|
159
|
+
readonly 'settings title'?: undefined;
|
|
71
160
|
readonly 'object placeholder'?: undefined;
|
|
72
161
|
readonly 'create object label'?: undefined;
|
|
73
162
|
readonly 'create trigger label'?: undefined;
|
|
@@ -80,36 +169,53 @@ declare const meta: {
|
|
|
80
169
|
readonly 'description placeholder'?: undefined;
|
|
81
170
|
readonly 'select preset template placeholder'?: undefined;
|
|
82
171
|
readonly 'service registry label'?: undefined;
|
|
83
|
-
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;
|
|
84
179
|
readonly 'assistant dialog title'?: undefined;
|
|
85
180
|
readonly 'open assistant label'?: undefined;
|
|
86
181
|
readonly 'no tools'?: undefined;
|
|
87
|
-
readonly '
|
|
88
|
-
readonly 'button
|
|
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;
|
|
89
191
|
readonly 'search placeholder'?: undefined;
|
|
90
192
|
readonly 'prompt placeholder'?: undefined;
|
|
91
|
-
readonly 'context objects
|
|
92
|
-
readonly '
|
|
93
|
-
readonly 'button
|
|
94
|
-
readonly '
|
|
95
|
-
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;
|
|
96
201
|
readonly 'settings default label'?: undefined;
|
|
97
202
|
readonly 'settings custom prompts label'?: undefined;
|
|
98
203
|
readonly 'settings llm provider label'?: undefined;
|
|
99
204
|
readonly 'settings edge llm model label'?: undefined;
|
|
100
205
|
readonly 'settings ollama llm model label'?: undefined;
|
|
101
206
|
} | {
|
|
102
|
-
readonly 'typename label': "
|
|
103
|
-
readonly '
|
|
104
|
-
readonly '
|
|
105
|
-
readonly '
|
|
106
|
-
readonly '
|
|
107
|
-
readonly '
|
|
108
|
-
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;
|
|
109
214
|
readonly 'templates label'?: undefined;
|
|
110
215
|
readonly 'open ambient chat label'?: undefined;
|
|
111
216
|
readonly 'assistant chat label'?: undefined;
|
|
112
217
|
readonly 'plugin name'?: undefined;
|
|
218
|
+
readonly 'settings title'?: undefined;
|
|
113
219
|
readonly 'object placeholder'?: undefined;
|
|
114
220
|
readonly 'create object label'?: undefined;
|
|
115
221
|
readonly 'create trigger label'?: undefined;
|
|
@@ -122,19 +228,35 @@ declare const meta: {
|
|
|
122
228
|
readonly 'description placeholder'?: undefined;
|
|
123
229
|
readonly 'select preset template placeholder'?: undefined;
|
|
124
230
|
readonly 'service registry label'?: undefined;
|
|
125
|
-
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;
|
|
126
238
|
readonly 'assistant dialog title'?: undefined;
|
|
127
239
|
readonly 'open assistant label'?: undefined;
|
|
128
240
|
readonly 'no tools'?: undefined;
|
|
129
|
-
readonly '
|
|
130
|
-
readonly 'button
|
|
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;
|
|
131
250
|
readonly 'search placeholder'?: undefined;
|
|
132
251
|
readonly 'prompt placeholder'?: undefined;
|
|
133
|
-
readonly 'context objects
|
|
134
|
-
readonly '
|
|
135
|
-
readonly 'button
|
|
136
|
-
readonly '
|
|
137
|
-
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;
|
|
138
260
|
readonly 'settings default label'?: undefined;
|
|
139
261
|
readonly 'settings custom prompts label'?: undefined;
|
|
140
262
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -145,6 +267,7 @@ declare const meta: {
|
|
|
145
267
|
readonly 'open ambient chat label': "Open Assistant";
|
|
146
268
|
readonly 'assistant chat label': "Assistant";
|
|
147
269
|
readonly 'plugin name': "Assistant";
|
|
270
|
+
readonly 'settings title': "Assistant settings";
|
|
148
271
|
readonly 'object placeholder': "New prompt";
|
|
149
272
|
readonly 'create object label': "Create prompt";
|
|
150
273
|
readonly 'create trigger label': "Create trigger";
|
|
@@ -157,19 +280,35 @@ declare const meta: {
|
|
|
157
280
|
readonly 'description placeholder': "Enter description of when this template should be used";
|
|
158
281
|
readonly 'select preset template placeholder': "Select preset";
|
|
159
282
|
readonly 'service registry label': "Service Registry";
|
|
160
|
-
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";
|
|
161
290
|
readonly 'assistant dialog title': "Assistant";
|
|
162
291
|
readonly 'open assistant label': "Open assistant";
|
|
163
|
-
readonly 'no tools': "No tools are configured
|
|
164
|
-
readonly '
|
|
165
|
-
readonly 'button
|
|
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";
|
|
166
302
|
readonly 'search placeholder': "Search...";
|
|
167
|
-
readonly 'prompt placeholder': "
|
|
168
|
-
readonly 'context objects
|
|
169
|
-
readonly '
|
|
170
|
-
readonly 'button
|
|
171
|
-
readonly '
|
|
172
|
-
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";
|
|
173
312
|
readonly 'settings default label': "Default";
|
|
174
313
|
readonly 'settings custom prompts label': "Use custom prompts";
|
|
175
314
|
readonly 'settings llm provider label': "LLM provider";
|
|
@@ -188,12 +327,9 @@ declare const meta: {
|
|
|
188
327
|
};
|
|
189
328
|
};
|
|
190
329
|
export default meta;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export declare const Incremental: {
|
|
197
|
-
render: () => React.JSX.Element;
|
|
198
|
-
};
|
|
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;
|
|
199
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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type Space } from '@dxos/client/echo';
|
|
3
|
+
import { type DXN } from '@dxos/keys';
|
|
4
|
+
export type ObjectLinkProps = {
|
|
5
|
+
space: Space;
|
|
6
|
+
dxn: DXN;
|
|
7
|
+
};
|
|
8
|
+
export declare const ObjectLink: ({ space, dxn }: ObjectLinkProps) => React.JSX.Element;
|
|
9
|
+
//# sourceMappingURL=Link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducers.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/reducers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE9D,KAAK,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,cAAc,EAAE,OAAO,CAClC;IACE,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC,OAAO,EAAE,CAAC;CACvC,EACD,OAAO,CAAC,OAAO,CA+DhB,CAAC"}
|