@dxos/plugin-assistant 0.8.4-main.5acf9ea → 0.8.4-main.66e292d
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-BWSLH6LG.mjs +36 -0
- package/dist/lib/browser/BlueprintArticle-BWSLH6LG.mjs.map +7 -0
- package/dist/lib/browser/ChatCompanion-OSZZZSWV.mjs +158 -0
- package/dist/lib/browser/ChatCompanion-OSZZZSWV.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-2W6FNSJD.mjs +77 -0
- package/dist/lib/browser/ChatContainer-2W6FNSJD.mjs.map +7 -0
- package/dist/lib/browser/{ChatDialog-ZVLXFHEY.mjs → ChatDialog-XQ3KDYWE.mjs} +30 -12
- package/dist/lib/browser/ChatDialog-XQ3KDYWE.mjs.map +7 -0
- package/dist/lib/browser/PromptArticle-Q7JYGFQV.mjs +59 -0
- package/dist/lib/browser/PromptArticle-Q7JYGFQV.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-LM6GVHQO.mjs +199 -0
- package/dist/lib/browser/app-graph-builder-LM6GVHQO.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-VBEOXNBS.mjs +12 -0
- package/dist/lib/browser/blueprint-definition-VBEOXNBS.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-5JZRYQZL.mjs +229 -0
- package/dist/lib/browser/chunk-5JZRYQZL.mjs.map +7 -0
- package/dist/lib/browser/chunk-7ZJIXQ2Y.mjs +335 -0
- package/dist/lib/browser/chunk-7ZJIXQ2Y.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-NC2QNMBF.mjs +176 -0
- package/dist/lib/browser/chunk-NC2QNMBF.mjs.map +7 -0
- package/dist/lib/browser/chunk-PWSTPQUY.mjs +1929 -0
- package/dist/lib/browser/chunk-PWSTPQUY.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 +221 -107
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-EEYS2GJF.mjs +143 -0
- package/dist/lib/browser/intent-resolver-EEYS2GJF.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-ECKZNDSU.mjs +98 -0
- package/dist/lib/browser/react-surface-ECKZNDSU.mjs.map +7 -0
- package/dist/lib/browser/repair-3MZXLUHO.mjs +44 -0
- package/dist/lib/browser/repair-3MZXLUHO.mjs.map +7 -0
- package/dist/lib/browser/{settings-5GTTCVGD.mjs → settings-HD5WA24I.mjs} +8 -7
- package/dist/lib/{node-esm/settings-J2EXEM5H.mjs.map → browser/settings-HD5WA24I.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-R2XYBRCK.mjs +37 -0
- package/dist/lib/node-esm/BlueprintArticle-R2XYBRCK.mjs.map +7 -0
- package/dist/lib/node-esm/ChatCompanion-IUMU7WRQ.mjs +159 -0
- package/dist/lib/node-esm/ChatCompanion-IUMU7WRQ.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatContainer-W3W6FWV3.mjs → ChatContainer-CTUNUEU3.mjs} +38 -15
- package/dist/lib/node-esm/ChatContainer-CTUNUEU3.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatDialog-QW4JRKVO.mjs → ChatDialog-X42ASXQD.mjs} +30 -12
- package/dist/lib/node-esm/ChatDialog-X42ASXQD.mjs.map +7 -0
- package/dist/lib/node-esm/PromptArticle-IV7O5UZ3.mjs +60 -0
- package/dist/lib/node-esm/PromptArticle-IV7O5UZ3.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-6XUAGTRS.mjs +200 -0
- package/dist/lib/node-esm/app-graph-builder-6XUAGTRS.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-RDCLLIQH.mjs +13 -0
- package/dist/lib/node-esm/blueprint-definition-RDCLLIQH.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-25GMMNY5.mjs +178 -0
- package/dist/lib/node-esm/chunk-25GMMNY5.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-CKW4IYLY.mjs +336 -0
- package/dist/lib/node-esm/chunk-CKW4IYLY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-E4JSYCWZ.mjs +230 -0
- package/dist/lib/node-esm/chunk-E4JSYCWZ.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-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/chunk-Z37USO4K.mjs +1930 -0
- package/dist/lib/node-esm/chunk-Z37USO4K.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 +221 -107
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-4SRYLDK5.mjs +144 -0
- package/dist/lib/node-esm/intent-resolver-4SRYLDK5.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-NLIG5VAI.mjs +99 -0
- package/dist/lib/node-esm/react-surface-NLIG5VAI.mjs.map +7 -0
- package/dist/lib/node-esm/repair-RER5H7Y6.mjs +45 -0
- package/dist/lib/node-esm/repair-RER5H7Y6.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-J2EXEM5H.mjs → settings-YJQVKHH5.mjs} +8 -7
- package/dist/lib/{browser/settings-5GTTCVGD.mjs.map → node-esm/settings-YJQVKHH5.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 +12 -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/repair.d.ts +4 -0
- package/dist/types/src/capabilities/repair.d.ts.map +1 -0
- 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 +196 -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 +317 -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 +314 -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 +318 -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/useFilteredTypes.d.ts +4 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -0
- package/dist/types/src/hooks/useFlush.d.ts +6 -0
- package/dist/types/src/hooks/useFlush.d.ts.map +1 -0
- package/dist/types/src/hooks/useOnline.d.ts +3 -0
- package/dist/types/src/hooks/useOnline.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +7 -0
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -0
- package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -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 +262 -28
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +45 -0
- package/dist/types/src/types/Assistant.d.ts.map +1 -0
- package/dist/types/src/types/AssistantAction.d.ts +129 -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 +135 -85
- 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 +151 -111
- 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 +10 -0
- package/src/capabilities/intent-resolver.ts +89 -26
- package/src/capabilities/local-model-resolver.ts +30 -0
- package/src/capabilities/react-surface.tsx +24 -75
- package/src/capabilities/repair.ts +49 -0
- 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 +234 -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 +30 -54
- 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/useFilteredTypes.ts +38 -0
- package/src/hooks/useFlush.ts +35 -0
- package/src/hooks/useOnline.ts +10 -0
- package/src/hooks/usePresets.ts +44 -0
- package/src/hooks/useReferencesProvider.ts +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 +49 -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,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]: {
|
|
@@ -22,10 +34,12 @@ declare const meta: {
|
|
|
22
34
|
readonly 'object name placeholder': "New blueprint";
|
|
23
35
|
readonly 'rename object label': "Rename blueprint";
|
|
24
36
|
readonly 'delete object label': "Delete blueprint";
|
|
37
|
+
readonly 'object deleted label': "Blueprint deleted";
|
|
25
38
|
readonly 'templates label'?: undefined;
|
|
26
39
|
readonly 'open ambient chat label'?: undefined;
|
|
27
40
|
readonly 'assistant chat label'?: undefined;
|
|
28
41
|
readonly 'plugin name'?: undefined;
|
|
42
|
+
readonly 'settings title'?: undefined;
|
|
29
43
|
readonly 'object placeholder'?: undefined;
|
|
30
44
|
readonly 'create object label'?: undefined;
|
|
31
45
|
readonly 'create trigger label'?: undefined;
|
|
@@ -38,19 +52,95 @@ declare const meta: {
|
|
|
38
52
|
readonly 'description placeholder'?: undefined;
|
|
39
53
|
readonly 'select preset template placeholder'?: undefined;
|
|
40
54
|
readonly 'service registry label'?: undefined;
|
|
41
|
-
readonly '
|
|
55
|
+
readonly 'type filter placeholder'?: undefined;
|
|
56
|
+
readonly 'any type filter label'?: undefined;
|
|
57
|
+
readonly 'no blueprint message'?: undefined;
|
|
58
|
+
readonly 'tool call label'?: undefined;
|
|
59
|
+
readonly 'tool result label'?: undefined;
|
|
60
|
+
readonly 'tool error label'?: undefined;
|
|
61
|
+
readonly 'invocations label'?: undefined;
|
|
42
62
|
readonly 'assistant dialog title'?: undefined;
|
|
43
63
|
readonly 'open assistant label'?: undefined;
|
|
44
64
|
readonly 'no tools'?: undefined;
|
|
45
|
-
readonly '
|
|
46
|
-
readonly 'button
|
|
65
|
+
readonly 'no results'?: undefined;
|
|
66
|
+
readonly 'cancel button'?: undefined;
|
|
67
|
+
readonly 'save button'?: undefined;
|
|
68
|
+
readonly 'new thread button'?: undefined;
|
|
69
|
+
readonly 'rename thread button'?: undefined;
|
|
70
|
+
readonly 'chat history label'?: undefined;
|
|
71
|
+
readonly 'chat update name label'?: undefined;
|
|
72
|
+
readonly 'toolkit label'?: undefined;
|
|
73
|
+
readonly 'summary label'?: undefined;
|
|
47
74
|
readonly 'search placeholder'?: undefined;
|
|
48
75
|
readonly 'prompt placeholder'?: undefined;
|
|
49
|
-
readonly 'context objects
|
|
50
|
-
readonly '
|
|
51
|
-
readonly 'button
|
|
52
|
-
readonly '
|
|
53
|
-
readonly '
|
|
76
|
+
readonly 'context objects button'?: undefined;
|
|
77
|
+
readonly 'context settings button'?: undefined;
|
|
78
|
+
readonly 'microphone button'?: undefined;
|
|
79
|
+
readonly 'cancel processing button'?: undefined;
|
|
80
|
+
readonly 'blueprints in context title'?: undefined;
|
|
81
|
+
readonly 'objects in context title'?: undefined;
|
|
82
|
+
readonly 'remove object in context label'?: undefined;
|
|
83
|
+
readonly 'chat model title'?: undefined;
|
|
84
|
+
readonly 'settings default label'?: undefined;
|
|
85
|
+
readonly 'settings custom prompts label'?: undefined;
|
|
86
|
+
readonly 'settings llm provider label'?: undefined;
|
|
87
|
+
readonly 'settings edge llm model label'?: undefined;
|
|
88
|
+
readonly 'settings ollama llm model label'?: undefined;
|
|
89
|
+
} | {
|
|
90
|
+
readonly 'typename label': "Prompt";
|
|
91
|
+
readonly 'typename label_zero': "Prompts";
|
|
92
|
+
readonly 'typename label_one': "Prompt";
|
|
93
|
+
readonly 'typename label_other': "Prompts";
|
|
94
|
+
readonly 'object name placeholder': "New prompt";
|
|
95
|
+
readonly 'rename object label': "Rename prompt";
|
|
96
|
+
readonly 'delete object label': "Delete prompt";
|
|
97
|
+
readonly 'object deleted label': "Prompt deleted";
|
|
98
|
+
readonly 'templates label'?: undefined;
|
|
99
|
+
readonly 'open ambient chat label'?: undefined;
|
|
100
|
+
readonly 'assistant chat label'?: undefined;
|
|
101
|
+
readonly 'plugin name'?: undefined;
|
|
102
|
+
readonly 'settings title'?: undefined;
|
|
103
|
+
readonly 'object placeholder'?: undefined;
|
|
104
|
+
readonly 'create object label'?: undefined;
|
|
105
|
+
readonly 'create trigger label'?: undefined;
|
|
106
|
+
readonly 'create stack section label'?: undefined;
|
|
107
|
+
readonly 'command placeholder'?: undefined;
|
|
108
|
+
readonly 'template placeholder'?: undefined;
|
|
109
|
+
readonly 'value placeholder'?: undefined;
|
|
110
|
+
readonly 'prompt rules label'?: undefined;
|
|
111
|
+
readonly 'typename placeholder'?: undefined;
|
|
112
|
+
readonly 'description placeholder'?: undefined;
|
|
113
|
+
readonly 'select preset template placeholder'?: undefined;
|
|
114
|
+
readonly 'service registry label'?: undefined;
|
|
115
|
+
readonly 'type filter placeholder'?: undefined;
|
|
116
|
+
readonly 'any type filter label'?: undefined;
|
|
117
|
+
readonly 'no blueprint message'?: undefined;
|
|
118
|
+
readonly 'tool call label'?: undefined;
|
|
119
|
+
readonly 'tool result label'?: undefined;
|
|
120
|
+
readonly 'tool error label'?: undefined;
|
|
121
|
+
readonly 'invocations label'?: undefined;
|
|
122
|
+
readonly 'assistant dialog title'?: undefined;
|
|
123
|
+
readonly 'open assistant label'?: undefined;
|
|
124
|
+
readonly 'no tools'?: undefined;
|
|
125
|
+
readonly 'no results'?: undefined;
|
|
126
|
+
readonly 'cancel button'?: undefined;
|
|
127
|
+
readonly 'save button'?: undefined;
|
|
128
|
+
readonly 'new thread button'?: undefined;
|
|
129
|
+
readonly 'rename thread button'?: undefined;
|
|
130
|
+
readonly 'chat history label'?: undefined;
|
|
131
|
+
readonly 'chat update name label'?: undefined;
|
|
132
|
+
readonly 'toolkit label'?: undefined;
|
|
133
|
+
readonly 'summary label'?: undefined;
|
|
134
|
+
readonly 'search placeholder'?: undefined;
|
|
135
|
+
readonly 'prompt placeholder'?: undefined;
|
|
136
|
+
readonly 'context objects button'?: undefined;
|
|
137
|
+
readonly 'context settings button'?: undefined;
|
|
138
|
+
readonly 'microphone button'?: undefined;
|
|
139
|
+
readonly 'cancel processing button'?: undefined;
|
|
140
|
+
readonly 'blueprints in context title'?: undefined;
|
|
141
|
+
readonly 'objects in context title'?: undefined;
|
|
142
|
+
readonly 'remove object in context label'?: undefined;
|
|
143
|
+
readonly 'chat model title'?: undefined;
|
|
54
144
|
readonly 'settings default label'?: undefined;
|
|
55
145
|
readonly 'settings custom prompts label'?: undefined;
|
|
56
146
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -64,10 +154,12 @@ declare const meta: {
|
|
|
64
154
|
readonly 'object name placeholder': "New sequence";
|
|
65
155
|
readonly 'rename object label': "Rename sequence";
|
|
66
156
|
readonly 'delete object label': "Delete sequence";
|
|
157
|
+
readonly 'object deleted label': "Sequence deleted";
|
|
67
158
|
readonly 'templates label'?: undefined;
|
|
68
159
|
readonly 'open ambient chat label'?: undefined;
|
|
69
160
|
readonly 'assistant chat label'?: undefined;
|
|
70
161
|
readonly 'plugin name'?: undefined;
|
|
162
|
+
readonly 'settings title'?: undefined;
|
|
71
163
|
readonly 'object placeholder'?: undefined;
|
|
72
164
|
readonly 'create object label'?: undefined;
|
|
73
165
|
readonly 'create trigger label'?: undefined;
|
|
@@ -80,36 +172,54 @@ declare const meta: {
|
|
|
80
172
|
readonly 'description placeholder'?: undefined;
|
|
81
173
|
readonly 'select preset template placeholder'?: undefined;
|
|
82
174
|
readonly 'service registry label'?: undefined;
|
|
83
|
-
readonly '
|
|
175
|
+
readonly 'type filter placeholder'?: undefined;
|
|
176
|
+
readonly 'any type filter label'?: undefined;
|
|
177
|
+
readonly 'no blueprint message'?: undefined;
|
|
178
|
+
readonly 'tool call label'?: undefined;
|
|
179
|
+
readonly 'tool result label'?: undefined;
|
|
180
|
+
readonly 'tool error label'?: undefined;
|
|
181
|
+
readonly 'invocations label'?: undefined;
|
|
84
182
|
readonly 'assistant dialog title'?: undefined;
|
|
85
183
|
readonly 'open assistant label'?: undefined;
|
|
86
184
|
readonly 'no tools'?: undefined;
|
|
87
|
-
readonly '
|
|
88
|
-
readonly 'button
|
|
185
|
+
readonly 'no results'?: undefined;
|
|
186
|
+
readonly 'cancel button'?: undefined;
|
|
187
|
+
readonly 'save button'?: undefined;
|
|
188
|
+
readonly 'new thread button'?: undefined;
|
|
189
|
+
readonly 'rename thread button'?: undefined;
|
|
190
|
+
readonly 'chat history label'?: undefined;
|
|
191
|
+
readonly 'chat update name label'?: undefined;
|
|
192
|
+
readonly 'toolkit label'?: undefined;
|
|
193
|
+
readonly 'summary label'?: undefined;
|
|
89
194
|
readonly 'search placeholder'?: undefined;
|
|
90
195
|
readonly 'prompt placeholder'?: undefined;
|
|
91
|
-
readonly 'context objects
|
|
92
|
-
readonly '
|
|
93
|
-
readonly 'button
|
|
94
|
-
readonly '
|
|
95
|
-
readonly '
|
|
196
|
+
readonly 'context objects button'?: undefined;
|
|
197
|
+
readonly 'context settings button'?: undefined;
|
|
198
|
+
readonly 'microphone button'?: undefined;
|
|
199
|
+
readonly 'cancel processing button'?: undefined;
|
|
200
|
+
readonly 'blueprints in context title'?: undefined;
|
|
201
|
+
readonly 'objects in context title'?: undefined;
|
|
202
|
+
readonly 'remove object in context label'?: undefined;
|
|
203
|
+
readonly 'chat model title'?: undefined;
|
|
96
204
|
readonly 'settings default label'?: undefined;
|
|
97
205
|
readonly 'settings custom prompts label'?: undefined;
|
|
98
206
|
readonly 'settings llm provider label'?: undefined;
|
|
99
207
|
readonly 'settings edge llm model label'?: undefined;
|
|
100
208
|
readonly 'settings ollama llm model label'?: undefined;
|
|
101
209
|
} | {
|
|
102
|
-
readonly 'typename label': "
|
|
103
|
-
readonly '
|
|
104
|
-
readonly '
|
|
105
|
-
readonly '
|
|
106
|
-
readonly 'object
|
|
107
|
-
readonly '
|
|
108
|
-
readonly '
|
|
210
|
+
readonly 'typename label': "AI Chat";
|
|
211
|
+
readonly 'object name placeholder': "New AI Chat";
|
|
212
|
+
readonly 'rename object label': "Rename AI Chat";
|
|
213
|
+
readonly 'delete object label': "Delete AI Chat";
|
|
214
|
+
readonly 'object deleted label': "AI Chat deleted";
|
|
215
|
+
readonly 'typename label_zero'?: undefined;
|
|
216
|
+
readonly 'typename label_one'?: undefined;
|
|
217
|
+
readonly 'typename label_other'?: undefined;
|
|
109
218
|
readonly 'templates label'?: undefined;
|
|
110
219
|
readonly 'open ambient chat label'?: undefined;
|
|
111
220
|
readonly 'assistant chat label'?: undefined;
|
|
112
221
|
readonly 'plugin name'?: undefined;
|
|
222
|
+
readonly 'settings title'?: undefined;
|
|
113
223
|
readonly 'object placeholder'?: undefined;
|
|
114
224
|
readonly 'create object label'?: undefined;
|
|
115
225
|
readonly 'create trigger label'?: undefined;
|
|
@@ -122,19 +232,35 @@ declare const meta: {
|
|
|
122
232
|
readonly 'description placeholder'?: undefined;
|
|
123
233
|
readonly 'select preset template placeholder'?: undefined;
|
|
124
234
|
readonly 'service registry label'?: undefined;
|
|
125
|
-
readonly '
|
|
235
|
+
readonly 'type filter placeholder'?: undefined;
|
|
236
|
+
readonly 'any type filter label'?: undefined;
|
|
237
|
+
readonly 'no blueprint message'?: undefined;
|
|
238
|
+
readonly 'tool call label'?: undefined;
|
|
239
|
+
readonly 'tool result label'?: undefined;
|
|
240
|
+
readonly 'tool error label'?: undefined;
|
|
241
|
+
readonly 'invocations label'?: undefined;
|
|
126
242
|
readonly 'assistant dialog title'?: undefined;
|
|
127
243
|
readonly 'open assistant label'?: undefined;
|
|
128
244
|
readonly 'no tools'?: undefined;
|
|
129
|
-
readonly '
|
|
130
|
-
readonly 'button
|
|
245
|
+
readonly 'no results'?: undefined;
|
|
246
|
+
readonly 'cancel button'?: undefined;
|
|
247
|
+
readonly 'save button'?: undefined;
|
|
248
|
+
readonly 'new thread button'?: undefined;
|
|
249
|
+
readonly 'rename thread button'?: undefined;
|
|
250
|
+
readonly 'chat history label'?: undefined;
|
|
251
|
+
readonly 'chat update name label'?: undefined;
|
|
252
|
+
readonly 'toolkit label'?: undefined;
|
|
253
|
+
readonly 'summary label'?: undefined;
|
|
131
254
|
readonly 'search placeholder'?: undefined;
|
|
132
255
|
readonly 'prompt placeholder'?: undefined;
|
|
133
|
-
readonly 'context objects
|
|
134
|
-
readonly '
|
|
135
|
-
readonly 'button
|
|
136
|
-
readonly '
|
|
137
|
-
readonly '
|
|
256
|
+
readonly 'context objects button'?: undefined;
|
|
257
|
+
readonly 'context settings button'?: undefined;
|
|
258
|
+
readonly 'microphone button'?: undefined;
|
|
259
|
+
readonly 'cancel processing button'?: undefined;
|
|
260
|
+
readonly 'blueprints in context title'?: undefined;
|
|
261
|
+
readonly 'objects in context title'?: undefined;
|
|
262
|
+
readonly 'remove object in context label'?: undefined;
|
|
263
|
+
readonly 'chat model title'?: undefined;
|
|
138
264
|
readonly 'settings default label'?: undefined;
|
|
139
265
|
readonly 'settings custom prompts label'?: undefined;
|
|
140
266
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -145,6 +271,7 @@ declare const meta: {
|
|
|
145
271
|
readonly 'open ambient chat label': "Open Assistant";
|
|
146
272
|
readonly 'assistant chat label': "Assistant";
|
|
147
273
|
readonly 'plugin name': "Assistant";
|
|
274
|
+
readonly 'settings title': "Assistant settings";
|
|
148
275
|
readonly 'object placeholder': "New prompt";
|
|
149
276
|
readonly 'create object label': "Create prompt";
|
|
150
277
|
readonly 'create trigger label': "Create trigger";
|
|
@@ -157,19 +284,35 @@ declare const meta: {
|
|
|
157
284
|
readonly 'description placeholder': "Enter description of when this template should be used";
|
|
158
285
|
readonly 'select preset template placeholder': "Select preset";
|
|
159
286
|
readonly 'service registry label': "Service Registry";
|
|
160
|
-
readonly '
|
|
287
|
+
readonly 'type filter placeholder': "Type";
|
|
288
|
+
readonly 'any type filter label': "Any";
|
|
289
|
+
readonly 'no blueprint message': "No active blueprints";
|
|
290
|
+
readonly 'tool call label': "Calling tool...";
|
|
291
|
+
readonly 'tool result label': "Success";
|
|
292
|
+
readonly 'tool error label': "Tool call failed";
|
|
293
|
+
readonly 'invocations label': "Invocations";
|
|
161
294
|
readonly 'assistant dialog title': "Assistant";
|
|
162
295
|
readonly 'open assistant label': "Open assistant";
|
|
163
|
-
readonly 'no tools': "No tools are configured
|
|
164
|
-
readonly '
|
|
165
|
-
readonly 'button
|
|
296
|
+
readonly 'no tools': "No tools are configured";
|
|
297
|
+
readonly 'no results': "No results";
|
|
298
|
+
readonly 'cancel button': "Cancel";
|
|
299
|
+
readonly 'save button': "Save";
|
|
300
|
+
readonly 'new thread button': "New Chat";
|
|
301
|
+
readonly 'rename thread button': "Rename Chat";
|
|
302
|
+
readonly 'chat history label': "Chat History";
|
|
303
|
+
readonly 'chat update name label': "Update AI Chat name";
|
|
304
|
+
readonly 'toolkit label': "Toolkit";
|
|
305
|
+
readonly 'summary label': "Summary";
|
|
166
306
|
readonly 'search placeholder': "Search...";
|
|
167
|
-
readonly 'prompt placeholder': "
|
|
168
|
-
readonly 'context objects
|
|
169
|
-
readonly '
|
|
170
|
-
readonly 'button
|
|
171
|
-
readonly '
|
|
172
|
-
readonly '
|
|
307
|
+
readonly 'prompt placeholder': "Enter question or command...";
|
|
308
|
+
readonly 'context objects button': "Add to context";
|
|
309
|
+
readonly 'context settings button': "Chat settings";
|
|
310
|
+
readonly 'microphone button': "Click to speak";
|
|
311
|
+
readonly 'cancel processing button': "Stop processing";
|
|
312
|
+
readonly 'blueprints in context title': "Blueprints";
|
|
313
|
+
readonly 'objects in context title': "Content";
|
|
314
|
+
readonly 'remove object in context label': "Remove document";
|
|
315
|
+
readonly 'chat model title': "Model";
|
|
173
316
|
readonly 'settings default label': "Default";
|
|
174
317
|
readonly 'settings custom prompts label': "Use custom prompts";
|
|
175
318
|
readonly 'settings llm provider label': "LLM provider";
|
|
@@ -182,18 +325,16 @@ declare const meta: {
|
|
|
182
325
|
readonly 'object name placeholder'?: undefined;
|
|
183
326
|
readonly 'rename object label'?: undefined;
|
|
184
327
|
readonly 'delete object label'?: undefined;
|
|
328
|
+
readonly 'object deleted label'?: undefined;
|
|
185
329
|
};
|
|
186
330
|
};
|
|
187
331
|
}];
|
|
188
332
|
};
|
|
189
333
|
};
|
|
190
334
|
export default meta;
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
export declare const Incremental: {
|
|
197
|
-
render: () => React.JSX.Element;
|
|
198
|
-
};
|
|
335
|
+
type Story = StoryObj<StoryProps>;
|
|
336
|
+
export declare const Default: Story;
|
|
337
|
+
export declare const Delayed: Story;
|
|
338
|
+
export declare const Raw: Story;
|
|
339
|
+
export declare const Static: Story;
|
|
199
340
|
//# 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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type XmlWidgetRegistry } from '@dxos/react-ui-editor';
|
|
2
|
+
import { type BlockRenderer } from './sync';
|
|
3
|
+
/**
|
|
4
|
+
* Custom XML tags registry.
|
|
5
|
+
*/
|
|
6
|
+
export declare const componentRegistry: XmlWidgetRegistry;
|
|
7
|
+
/**
|
|
8
|
+
* Convert block to markdown.
|
|
9
|
+
*/
|
|
10
|
+
export declare const blockToMarkdown: BlockRenderer;
|
|
11
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/registry.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAuB,KAAK,iBAAiB,EAAmB,MAAM,uBAAuB,CAAC;AAMrG,OAAO,EAAE,KAAK,aAAa,EAA6B,MAAM,QAAQ,CAAC;AAavE;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBAoE/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,EAAE,aAW7B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type DXN } from '@dxos/echo';
|
|
2
|
+
import { type MarkdownStreamController } from '@dxos/react-ui-components';
|
|
3
|
+
import { type StateDispatch, type XmlWidgetStateManager } from '@dxos/react-ui-editor';
|
|
4
|
+
import { type ContentBlock, type Message } from '@dxos/types';
|
|
5
|
+
/**
|
|
6
|
+
* Update document.
|
|
7
|
+
*/
|
|
8
|
+
export type TextModel = Pick<MarkdownStreamController, 'view' | 'reset' | 'append' | 'updateWidget'>;
|
|
9
|
+
/**
|
|
10
|
+
* Thread context passed to renderer.
|
|
11
|
+
*/
|
|
12
|
+
export declare class MessageThreadContext implements Pick<MarkdownStreamController, 'updateWidget'> {
|
|
13
|
+
private readonly _widgetState?;
|
|
14
|
+
constructor(_widgetState?: XmlWidgetStateManager | undefined);
|
|
15
|
+
updateWidget<T>(id: string, value: StateDispatch<T>): void;
|
|
16
|
+
getObjectLabel(_id: DXN): string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Renders a block to markdown.
|
|
20
|
+
*/
|
|
21
|
+
export type BlockRenderer = (context: MessageThreadContext, message: Message.Message, block: ContentBlock.Any) => string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Syncs messages with the editor.
|
|
24
|
+
*/
|
|
25
|
+
export declare class MessageSyncer {
|
|
26
|
+
private readonly _model;
|
|
27
|
+
private readonly _blockRenderer;
|
|
28
|
+
private _initialMessageId?;
|
|
29
|
+
private _currentMessageIndex;
|
|
30
|
+
private _currentBlockIndex;
|
|
31
|
+
private _currentBlockContent?;
|
|
32
|
+
private readonly _context;
|
|
33
|
+
constructor(_model: TextModel, _blockRenderer: BlockRenderer);
|
|
34
|
+
get context(): MessageThreadContext;
|
|
35
|
+
reset(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Syncs messages with the editor.
|
|
38
|
+
*/
|
|
39
|
+
append(messages: Message.Message[], flush?: boolean): boolean;
|
|
40
|
+
private process;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/sync.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACvF,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,OAAO,EAAE,MAAM,aAAa,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,wBAAwB,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC,CAAC;AAErG;;GAEG;AACH,qBAAa,oBAAqB,YAAW,IAAI,CAAC,wBAAwB,EAAE,cAAc,CAAC;IAC7E,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;gBAAb,YAAY,CAAC,EAAE,qBAAqB,YAAA;IAEjE,YAAY,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAKnD,cAAc,CAAC,GAAG,EAAE,GAAG;CAGxB;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,KAAK,EAAE,YAAY,CAAC,GAAG,KACpB,MAAM,GAAG,SAAS,CAAC;AAExB;;GAEG;AACH,qBAAa,aAAa;IAStB,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,cAAc;IATjC,OAAO,CAAC,iBAAiB,CAAC,CAAS;IACnC,OAAO,CAAC,oBAAoB,CAAK;IACjC,OAAO,CAAC,kBAAkB,CAAK;IAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAS;IAEtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuB;gBAG7B,MAAM,EAAE,SAAS,EACjB,cAAc,EAAE,aAAa;IAKhD,IAAI,OAAO,yBAEV;IAED,KAAK;IASL;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,OAAO,EAAE,EAAE,KAAK,UAAQ,GAAG,OAAO;IA6B3D,OAAO,CAAC,OAAO;CA4ChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/sync.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type SurfaceComponentProps } from '@dxos/app-framework/react';
|
|
3
|
+
import { type Prompt } from '@dxos/blueprints';
|
|
4
|
+
export type PromptArticleProps = SurfaceComponentProps<Prompt.Prompt>;
|
|
5
|
+
export declare const PromptArticle: ({ subject }: PromptArticleProps) => React.JSX.Element;
|
|
6
|
+
export default PromptArticle;
|
|
7
|
+
//# sourceMappingURL=PromptArticle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PromptArticle.d.ts","sourceRoot":"","sources":["../../../../src/components/PromptArticle.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAY/C,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAEtE,eAAO,MAAM,aAAa,GAAI,aAAa,kBAAkB,sBA0B5D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import { HighlightStyle } from '@codemirror/language';
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { type Template } from '@dxos/blueprints';
|
|
4
3
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
5
4
|
export type TemplateEditorProps = ThemedClassName<{
|
|
6
5
|
id: string;
|
|
7
6
|
template: Template.Template;
|
|
7
|
+
lineNumbers?: boolean;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const TemplateEditor: ({ id, classNames, template }: TemplateEditorProps) => React.JSX.Element;
|
|
10
|
-
/**
|
|
11
|
-
* https://github.com/xiechao/lang-handlebars/blob/direct/src/highlight.js
|
|
12
|
-
*/
|
|
13
|
-
export declare const handlebarsHighlightStyle: HighlightStyle;
|
|
9
|
+
export declare const TemplateEditor: ({ id, classNames, template, lineNumbers }: TemplateEditorProps) => React.JSX.Element;
|
|
14
10
|
//# sourceMappingURL=TemplateEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TemplateEditor/TemplateEditor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TemplateEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TemplateEditor/TemplateEditor.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,KAAK,eAAe,EAAmC,MAAM,gBAAgB,CAAC;AAgBvF,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc,GAAI,2CAAkD,mBAAmB,sBAmCnG,CAAC"}
|