@dxos/plugin-assistant 0.8.4-main.28f8d3d → 0.8.4-main.406dc2a
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/{BlueprintContainer-H7H4BQ2C.mjs → BlueprintContainer-WX2SSDVI.mjs} +6 -7
- package/dist/lib/browser/{BlueprintContainer-H7H4BQ2C.mjs.map → BlueprintContainer-WX2SSDVI.mjs.map} +3 -3
- package/dist/lib/browser/ChatCompanion-BDZ55ZRF.mjs +150 -0
- package/dist/lib/browser/ChatCompanion-BDZ55ZRF.mjs.map +7 -0
- package/dist/lib/browser/{ChatContainer-OUVSX5V5.mjs → ChatContainer-RYGNN73X.mjs} +20 -23
- package/dist/lib/browser/ChatContainer-RYGNN73X.mjs.map +7 -0
- package/dist/lib/browser/{ChatDialog-P4FLEOHG.mjs → ChatDialog-MVHH2U66.mjs} +12 -12
- package/dist/lib/browser/ChatDialog-MVHH2U66.mjs.map +7 -0
- package/dist/lib/browser/{SequenceContainer-627OQ557.mjs → SequenceContainer-2FEWMQGW.mjs} +6 -19
- package/dist/lib/browser/SequenceContainer-2FEWMQGW.mjs.map +7 -0
- package/dist/lib/browser/ai-service-ERTZBTP3.mjs +19 -0
- package/dist/lib/browser/ai-service-ERTZBTP3.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-AVHHQ3KV.mjs → app-graph-builder-2U7SLCRX.mjs} +22 -34
- package/dist/lib/browser/app-graph-builder-2U7SLCRX.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-NSJARW5U.mjs +12 -0
- package/dist/lib/browser/blueprint-definition-NSJARW5U.mjs.map +7 -0
- package/dist/lib/browser/{blueprint-definition-CMGIZAOW.mjs → chunk-2CE2KPKZ.mjs} +69 -40
- package/dist/lib/browser/chunk-2CE2KPKZ.mjs.map +7 -0
- package/dist/lib/browser/chunk-43I2LR6O.mjs +216 -0
- package/dist/lib/browser/chunk-43I2LR6O.mjs.map +7 -0
- package/dist/lib/browser/chunk-5EGXHCAZ.mjs +16 -0
- package/dist/lib/browser/chunk-5EGXHCAZ.mjs.map +7 -0
- package/dist/lib/browser/chunk-5RICKAMN.mjs +18 -0
- package/dist/lib/browser/chunk-5RICKAMN.mjs.map +7 -0
- package/dist/lib/browser/chunk-CQ7UHYTT.mjs +296 -0
- package/dist/lib/browser/chunk-CQ7UHYTT.mjs.map +7 -0
- package/dist/lib/browser/{chunk-HRLMD35M.mjs → chunk-FP56WB24.mjs} +36 -15
- package/dist/lib/browser/chunk-FP56WB24.mjs.map +7 -0
- package/dist/lib/browser/chunk-JZRZVB2A.mjs +170 -0
- package/dist/lib/browser/chunk-JZRZVB2A.mjs.map +7 -0
- package/dist/lib/browser/chunk-WRJGOT5P.mjs +1794 -0
- package/dist/lib/browser/chunk-WRJGOT5P.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 +127 -54
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/{intent-resolver-MVOIEJXZ.mjs → intent-resolver-3GOJMBXJ.mjs} +48 -15
- package/dist/lib/browser/intent-resolver-3GOJMBXJ.mjs.map +7 -0
- package/dist/lib/browser/local-model-resolver-GO6ZEMLL.mjs +17 -0
- package/dist/lib/browser/local-model-resolver-GO6ZEMLL.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-4HXS3YLT.mjs → react-surface-FTKCE6GG.mjs} +20 -76
- package/dist/lib/browser/react-surface-FTKCE6GG.mjs.map +7 -0
- package/dist/lib/browser/{settings-G2EZXMWT.mjs → settings-HBF32KV6.mjs} +5 -5
- package/dist/lib/browser/{settings-G2EZXMWT.mjs.map → settings-HBF32KV6.mjs.map} +1 -1
- package/dist/lib/browser/state-LXTS54DI.mjs +21 -0
- package/dist/lib/browser/state-LXTS54DI.mjs.map +7 -0
- package/dist/lib/browser/toolkit-NQ2GXCF5.mjs +199 -0
- package/dist/lib/browser/toolkit-NQ2GXCF5.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node-esm/{BlueprintContainer-VH4EE4CM.mjs → BlueprintContainer-4MKN6ZRB.mjs} +6 -7
- package/dist/lib/node-esm/{BlueprintContainer-VH4EE4CM.mjs.map → BlueprintContainer-4MKN6ZRB.mjs.map} +3 -3
- package/dist/lib/node-esm/ChatCompanion-XFNXVZIP.mjs +151 -0
- package/dist/lib/node-esm/ChatCompanion-XFNXVZIP.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatContainer-D5FABDNE.mjs → ChatContainer-UTJGCQXF.mjs} +20 -23
- package/dist/lib/node-esm/ChatContainer-UTJGCQXF.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatDialog-NKWVXHJP.mjs → ChatDialog-QEYZ4IOV.mjs} +12 -12
- package/dist/lib/node-esm/ChatDialog-QEYZ4IOV.mjs.map +7 -0
- package/dist/lib/node-esm/{SequenceContainer-EQ5NP2PG.mjs → SequenceContainer-PGGJUQ46.mjs} +6 -19
- package/dist/lib/node-esm/SequenceContainer-PGGJUQ46.mjs.map +7 -0
- package/dist/lib/node-esm/ai-service-MUYLV3NT.mjs +20 -0
- package/dist/lib/node-esm/ai-service-MUYLV3NT.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-RMOUJMMG.mjs → app-graph-builder-OKNLR7H2.mjs} +22 -34
- package/dist/lib/node-esm/app-graph-builder-OKNLR7H2.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-WD2IVMAI.mjs +13 -0
- package/dist/lib/node-esm/blueprint-definition-WD2IVMAI.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-73ABYRYX.mjs +20 -0
- package/dist/lib/node-esm/chunk-73ABYRYX.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-DSE2IILK.mjs +217 -0
- package/dist/lib/node-esm/chunk-DSE2IILK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-E2WXZND7.mjs +297 -0
- package/dist/lib/node-esm/chunk-E2WXZND7.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HXIBCBH4.mjs +171 -0
- package/dist/lib/node-esm/chunk-HXIBCBH4.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-F7RXCX5Y.mjs → chunk-TNR46C3L.mjs} +36 -15
- package/dist/lib/node-esm/chunk-TNR46C3L.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-AEWYMW6I.mjs → chunk-U2NYUS2N.mjs} +69 -39
- package/dist/lib/node-esm/chunk-U2NYUS2N.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-UFKLCEAE.mjs +1795 -0
- package/dist/lib/node-esm/chunk-UFKLCEAE.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-X6AANUHZ.mjs → chunk-XQGWSZ4T.mjs} +4 -4
- package/dist/lib/node-esm/chunk-XQGWSZ4T.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 +127 -54
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/{intent-resolver-DTDNCX3C.mjs → intent-resolver-6XLVTRDJ.mjs} +48 -15
- package/dist/lib/node-esm/intent-resolver-6XLVTRDJ.mjs.map +7 -0
- package/dist/lib/node-esm/local-model-resolver-WOQ2D2R2.mjs +18 -0
- package/dist/lib/node-esm/local-model-resolver-WOQ2D2R2.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-V6JNEZVO.mjs → react-surface-K7ZXQLAP.mjs} +20 -76
- package/dist/lib/node-esm/react-surface-K7ZXQLAP.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-AIP5FOJG.mjs → settings-CWP6MTWP.mjs} +5 -5
- package/dist/lib/node-esm/{settings-AIP5FOJG.mjs.map → settings-CWP6MTWP.mjs.map} +1 -1
- package/dist/lib/node-esm/state-BO6GUFLB.mjs +22 -0
- package/dist/lib/node-esm/state-BO6GUFLB.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-V57PRJNG.mjs +200 -0
- package/dist/lib/node-esm/toolkit-V57PRJNG.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/AssistantPlugin.d.ts +1 -1
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-service.d.ts +2 -3
- package/dist/types/src/capabilities/ai-service.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +8 -8
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/edge-model-resolver.d.ts +2 -3
- package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +7 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/local-model-resolver.d.ts +10 -0
- package/dist/types/src/capabilities/local-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -1
- package/dist/types/src/capabilities/state.d.ts +4 -0
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit.d.ts +2 -3
- package/dist/types/src/capabilities/toolkit.d.ts.map +1 -1
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +16 -10
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/events.d.ts +5 -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 +3 -4
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +7 -0
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -0
- package/dist/types/src/components/ChatProgress/index.d.ts +2 -0
- package/dist/types/src/components/ChatProgress/index.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +11 -4
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +3 -4
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts +6 -4
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +12 -7
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +112 -56
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Link.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/reducers.d.ts +40 -0
- package/dist/types/src/components/ChatThread/reducers.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/registry.d.ts +11 -0
- package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/sync.d.ts +36 -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/PromptSettings.d.ts.map +1 -1
- package/dist/types/src/components/SequenceContainer.d.ts.map +1 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts +1 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts.map +1 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +264 -3
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +0 -5
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +262 -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 +259 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/handlebars-extension.d.ts +12 -0
- package/dist/types/src/components/TemplateEditor/handlebars-extension.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +19 -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/Toolbar/Toolbar.d.ts +5 -0
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/index.d.ts +2 -0
- package/dist/types/src/components/Toolbar/index.d.ts.map +1 -0
- package/dist/types/src/components/Toolbar/useChatToolbarActions.d.ts +11 -0
- package/dist/types/src/components/Toolbar/useChatToolbarActions.d.ts.map +1 -0
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +1 -3
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +263 -5
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/functions/analysis.d.ts.map +1 -1
- package/dist/types/src/functions/list.d.ts.map +1 -1
- package/dist/types/src/functions/load.d.ts +1 -1
- package/dist/types/src/functions/load.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +4 -4
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +5 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +4 -10
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +5 -5
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextBinder.d.ts +4 -0
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -0
- package/dist/types/src/hooks/useContextObjects.d.ts +15 -0
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -0
- package/dist/types/src/hooks/useFlush.d.ts.map +1 -0
- package/dist/types/src/hooks/useItemTypes.d.ts +4 -0
- package/dist/types/src/hooks/useItemTypes.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +2 -2
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -1
- package/dist/types/src/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 +3 -0
- package/dist/types/src/processor/index.d.ts.map +1 -0
- package/dist/types/src/{hooks → processor}/presets.d.ts +1 -1
- package/dist/types/src/processor/presets.d.ts.map +1 -0
- package/dist/types/src/processor/processor.d.ts +74 -0
- package/dist/types/src/processor/processor.d.ts.map +1 -0
- package/dist/types/src/processor/processor.test.d.ts +2 -0
- package/dist/types/src/processor/processor.test.d.ts.map +1 -0
- package/dist/types/src/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 +27 -16
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +16 -5
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/AssistantAction.d.ts +23 -6
- package/dist/types/src/types/AssistantAction.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +21 -18
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +90 -96
- package/src/AssistantPlugin.tsx +138 -116
- package/src/capabilities/ai-service.ts +6 -7
- package/src/capabilities/app-graph-builder.ts +39 -45
- package/src/capabilities/blueprint-definition.ts +51 -19
- package/src/capabilities/capabilities.ts +8 -12
- package/src/capabilities/edge-model-resolver.ts +17 -21
- package/src/capabilities/index.ts +5 -2
- package/src/capabilities/intent-resolver.ts +38 -15
- package/src/capabilities/local-model-resolver.ts +30 -0
- package/src/capabilities/react-surface.tsx +9 -63
- package/src/capabilities/state.ts +20 -0
- package/src/capabilities/toolkit.ts +93 -31
- package/src/components/AssistantSettings/AssistantSettings.tsx +82 -75
- package/src/components/BlueprintContainer.tsx +2 -2
- package/src/components/Chat/Chat.tsx +167 -172
- package/src/components/Chat/events.ts +7 -0
- package/src/components/ChatCompanion.tsx +136 -0
- package/src/components/ChatContainer.tsx +13 -31
- package/src/components/ChatDialog.tsx +11 -11
- package/src/components/ChatProgress/ChatProgress.tsx +67 -0
- package/src/components/ChatProgress/index.ts +5 -0
- package/src/components/ChatPrompt/ChatActions.tsx +10 -24
- package/src/components/ChatPrompt/ChatOptions.tsx +200 -34
- package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +29 -36
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +25 -22
- package/src/components/ChatThread/ChatThread.stories.tsx +74 -205
- package/src/components/ChatThread/ChatThread.tsx +69 -29
- package/src/components/ChatThread/Link.tsx +8 -21
- package/src/components/ChatThread/reducers.ts +151 -0
- package/src/components/ChatThread/registry.tsx +184 -0
- package/src/components/ChatThread/sync.test.ts +81 -0
- package/src/components/ChatThread/sync.ts +113 -0
- package/src/components/PromptSettings.tsx +1 -0
- package/src/components/SequenceContainer.tsx +27 -29
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +8 -6
- package/src/components/SequenceEditor/SequenceEditor.tsx +2 -2
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +17 -13
- package/src/components/TemplateEditor/TemplateEditor.tsx +16 -50
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +6 -8
- package/src/components/TemplateEditor/TemplateForm.tsx +2 -1
- package/src/components/TemplateEditor/handlebars-extension.ts +165 -0
- package/src/components/ToolBlock/ToolBlock.tsx +152 -0
- package/src/components/ToolBlock/ToolBlockWidget.tsx +5 -0
- package/src/components/ToolBlock/index.ts +6 -0
- package/src/components/Toolbar/Toolbar.tsx +21 -0
- package/src/components/{Timeline → Toolbar}/index.ts +1 -1
- package/src/components/Toolbar/useChatToolbarActions.ts +126 -0
- package/src/components/Toolbox/Toolbox.stories.tsx +9 -12
- package/src/components/Toolbox/Toolbox.tsx +10 -16
- package/src/components/index.ts +3 -1
- package/src/functions/analysis.ts +6 -4
- package/src/functions/list.ts +9 -3
- package/src/functions/load.ts +8 -5
- package/src/hooks/index.ts +4 -5
- package/src/hooks/useBlueprintRegistry.ts +24 -9
- package/src/hooks/useChatProcessor.ts +19 -26
- package/src/hooks/useChatServices.ts +30 -53
- package/src/hooks/useContextBinder.ts +30 -0
- package/src/hooks/useContextObjects.ts +58 -0
- package/src/hooks/useItemTypes.ts +37 -0
- package/src/hooks/usePresets.ts +4 -5
- package/src/index.ts +2 -0
- package/src/meta.ts +4 -6
- package/src/processor/index.ts +6 -0
- package/src/{hooks → processor}/presets.ts +10 -3
- package/src/processor/processor.test.ts +81 -0
- package/src/processor/processor.ts +302 -0
- package/src/queue-logger.ts +5 -5
- package/src/testing/index.ts +1 -1
- package/src/testing/test-generator.ts +261 -0
- package/src/testing/test-sequence.ts +1 -26
- package/src/testing/test-services.ts +2 -8
- package/src/translations.ts +29 -17
- package/src/types/Assistant.ts +9 -4
- package/src/types/AssistantAction.ts +11 -3
- package/src/types/service.ts +15 -7
- package/src/vite-env.d.ts +30 -0
- package/dist/lib/browser/ChatContainer-OUVSX5V5.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-P4FLEOHG.mjs.map +0 -7
- package/dist/lib/browser/SequenceContainer-627OQ557.mjs.map +0 -7
- package/dist/lib/browser/ai-service-7KJ5LXBT.mjs +0 -22
- package/dist/lib/browser/ai-service-7KJ5LXBT.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-AVHHQ3KV.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-CMGIZAOW.mjs.map +0 -7
- package/dist/lib/browser/chunk-BRLHDHOF.mjs +0 -244
- package/dist/lib/browser/chunk-BRLHDHOF.mjs.map +0 -7
- package/dist/lib/browser/chunk-HRLMD35M.mjs.map +0 -7
- package/dist/lib/browser/chunk-LKP65RPA.mjs +0 -20
- package/dist/lib/browser/chunk-LKP65RPA.mjs.map +0 -7
- package/dist/lib/browser/chunk-NZDCKQ6W.mjs +0 -89
- package/dist/lib/browser/chunk-NZDCKQ6W.mjs.map +0 -7
- package/dist/lib/browser/chunk-QB7OVS6Z.mjs +0 -16
- package/dist/lib/browser/chunk-QB7OVS6Z.mjs.map +0 -7
- package/dist/lib/browser/chunk-VEBVAHNM.mjs +0 -2231
- package/dist/lib/browser/chunk-VEBVAHNM.mjs.map +0 -7
- package/dist/lib/browser/edge-model-resolver-2HB4PCWH.mjs +0 -24
- package/dist/lib/browser/edge-model-resolver-2HB4PCWH.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MVOIEJXZ.mjs.map +0 -7
- package/dist/lib/browser/react-surface-4HXS3YLT.mjs.map +0 -7
- package/dist/lib/browser/toolkit-IW4FBLLB.mjs +0 -105
- package/dist/lib/browser/toolkit-IW4FBLLB.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-D5FABDNE.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-NKWVXHJP.mjs.map +0 -7
- package/dist/lib/node-esm/SequenceContainer-EQ5NP2PG.mjs.map +0 -7
- package/dist/lib/node-esm/ai-service-LDD32477.mjs +0 -23
- package/dist/lib/node-esm/ai-service-LDD32477.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-RMOUJMMG.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-AEWYMW6I.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3SOC5GOP.mjs +0 -2232
- package/dist/lib/node-esm/chunk-3SOC5GOP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F7RXCX5Y.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GAWXJ7K5.mjs +0 -90
- package/dist/lib/node-esm/chunk-GAWXJ7K5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KOC6ESG7.mjs +0 -22
- package/dist/lib/node-esm/chunk-KOC6ESG7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-RD755HN3.mjs +0 -245
- package/dist/lib/node-esm/chunk-RD755HN3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X6AANUHZ.mjs.map +0 -7
- package/dist/lib/node-esm/edge-model-resolver-UDDR2IA6.mjs +0 -25
- package/dist/lib/node-esm/edge-model-resolver-UDDR2IA6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-DTDNCX3C.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-V6JNEZVO.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-2VNUL77B.mjs +0 -106
- package/dist/lib/node-esm/toolkit-2VNUL77B.mjs.map +0 -7
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts +0 -18
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts +0 -19
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/reducer.d.ts +0 -12
- package/dist/types/src/components/ChatThread/reducer.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/Timeline.d.ts +0 -24
- package/dist/types/src/components/Timeline/Timeline.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/Timeline.stories.d.ts +0 -9
- package/dist/types/src/components/Timeline/Timeline.stories.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/index.d.ts +0 -2
- package/dist/types/src/components/Timeline/index.d.ts.map +0 -1
- package/dist/types/src/hooks/chat-processor.d.ts +0 -72
- package/dist/types/src/hooks/chat-processor.d.ts.map +0 -1
- package/dist/types/src/hooks/errors.d.ts +0 -4
- package/dist/types/src/hooks/errors.d.ts.map +0 -1
- package/dist/types/src/hooks/presets.d.ts.map +0 -1
- package/dist/types/src/hooks/useResolveRef.d.ts +0 -4
- package/dist/types/src/hooks/useResolveRef.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.d.ts +0 -4
- package/dist/types/src/parser/filter-generator.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.test.d.ts +0 -2
- package/dist/types/src/parser/filter-generator.test.d.ts.map +0 -1
- package/dist/types/src/parser/index.d.ts +0 -4
- package/dist/types/src/parser/index.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.d.ts +0 -15
- package/dist/types/src/parser/query-parser.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.test.d.ts +0 -2
- package/dist/types/src/parser/query-parser.test.d.ts.map +0 -1
- package/dist/types/src/parser/types.d.ts +0 -24
- package/dist/types/src/parser/types.d.ts.map +0 -1
- package/dist/types/src/stories/Chat.stories.d.ts +0 -268
- package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/stories/components/BlueprintContainer.d.ts +0 -5
- package/dist/types/src/stories/components/BlueprintContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/ChatContainer.d.ts +0 -5
- package/dist/types/src/stories/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/GraphContainer.d.ts +0 -6
- package/dist/types/src/stories/components/GraphContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/LoggingContainer.d.ts +0 -5
- package/dist/types/src/stories/components/LoggingContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/SurfaceContainer.d.ts +0 -8
- package/dist/types/src/stories/components/SurfaceContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/TasksContainer.d.ts +0 -5
- package/dist/types/src/stories/components/TasksContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/index.d.ts +0 -8
- package/dist/types/src/stories/components/index.d.ts.map +0 -1
- package/dist/types/src/stories/components/types.d.ts +0 -7
- package/dist/types/src/stories/components/types.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/index.d.ts +0 -3
- package/dist/types/src/stories/hooks/index.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/useFlush.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/useMatcherExtension.d.ts +0 -3
- package/dist/types/src/stories/hooks/useMatcherExtension.d.ts.map +0 -1
- package/dist/types/src/stories/testing/data.d.ts +0 -142
- package/dist/types/src/stories/testing/data.d.ts.map +0 -1
- package/dist/types/src/stories/testing/index.d.ts +0 -3
- package/dist/types/src/stories/testing/index.d.ts.map +0 -1
- package/dist/types/src/stories/testing/testing.d.ts +0 -26
- package/dist/types/src/stories/testing/testing.d.ts.map +0 -1
- package/dist/types/src/testing/test-functions.d.ts +0 -6
- package/dist/types/src/testing/test-functions.d.ts.map +0 -1
- package/dist/types/src/tools/function.d.ts +0 -5
- package/dist/types/src/tools/function.d.ts.map +0 -1
- package/dist/types/src/tools/index.d.ts +0 -3
- package/dist/types/src/tools/index.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.d.ts +0 -10
- package/dist/types/src/tools/openapi.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.test.d.ts +0 -2
- package/dist/types/src/tools/openapi.test.d.ts.map +0 -1
- package/src/components/ChatThread/ChatMessage.tsx +0 -282
- package/src/components/ChatThread/ToolBlock.tsx +0 -125
- package/src/components/ChatThread/reducer.ts +0 -52
- package/src/components/Timeline/Timeline.stories.tsx +0 -53
- package/src/components/Timeline/Timeline.tsx +0 -159
- package/src/hooks/chat-processor.ts +0 -260
- package/src/hooks/errors.ts +0 -8
- package/src/hooks/useResolveRef.ts +0 -33
- package/src/parser/filter-generator.test.ts +0 -32
- package/src/parser/filter-generator.ts +0 -74
- package/src/parser/index.ts +0 -7
- package/src/parser/query-parser.test.ts +0 -139
- package/src/parser/query-parser.ts +0 -199
- package/src/parser/types.ts +0 -34
- package/src/shims.d.ts +0 -8
- package/src/stories/Chat.stories.tsx +0 -317
- package/src/stories/components/BlueprintContainer.tsx +0 -34
- package/src/stories/components/ChatContainer.tsx +0 -80
- package/src/stories/components/GraphContainer.tsx +0 -118
- package/src/stories/components/LoggingContainer.tsx +0 -22
- package/src/stories/components/SurfaceContainer.tsx +0 -62
- package/src/stories/components/TasksContainer.tsx +0 -51
- package/src/stories/components/index.ts +0 -12
- package/src/stories/components/types.ts +0 -11
- package/src/stories/hooks/index.ts +0 -6
- package/src/stories/hooks/useMatcherExtension.ts +0 -45
- package/src/stories/testing/data.ts +0 -130
- package/src/stories/testing/index.ts +0 -6
- package/src/stories/testing/testing.tsx +0 -162
- package/src/testing/test-functions.ts +0 -16
- package/src/tools/function.ts +0 -49
- package/src/tools/index.ts +0 -6
- package/src/tools/openapi.test.ts +0 -219
- package/src/tools/openapi.ts +0 -341
- package/src/typings.d.ts +0 -9
- /package/dist/types/src/{stories/hooks → hooks}/useFlush.d.ts +0 -0
- /package/src/{stories/hooks → hooks}/useFlush.ts +0 -0
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import '@
|
|
1
|
+
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import * as Effect from 'effect/Effect';
|
|
2
3
|
import React from 'react';
|
|
4
|
+
import { ContextQueueService, DatabaseService } from '@dxos/functions';
|
|
3
5
|
import { DataType } from '@dxos/schema';
|
|
6
|
+
import { type ChatThreadController, type ChatThreadProps } from './ChatThread';
|
|
7
|
+
type MessageGenerator = Effect.Effect<void, never, DatabaseService | ContextQueueService>;
|
|
8
|
+
type StoryProps = ChatThreadProps & {
|
|
9
|
+
generator?: MessageGenerator[];
|
|
10
|
+
delay?: number;
|
|
11
|
+
};
|
|
4
12
|
declare const meta: {
|
|
5
13
|
title: string;
|
|
6
14
|
component: React.ForwardRefExoticComponent<Omit<{
|
|
7
15
|
identity?: import("@dxos/client/halo").Identity;
|
|
8
16
|
messages?: DataType.Message[];
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
error?: Error;
|
|
18
|
+
overscroll?: number;
|
|
19
|
+
onEvent?: (event: import("..").ChatEvent) => void;
|
|
20
|
+
} & Pick<import("@dxos/react-ui-components").MarkdownStreamProps, "cursor" | "fadeIn" | "overscroll">, "className"> & {
|
|
11
21
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
12
|
-
} & React.RefAttributes<
|
|
13
|
-
render: (
|
|
14
|
-
identity?: import("@dxos/client/halo").Identity;
|
|
15
|
-
messages?: DataType.Message[];
|
|
16
|
-
collapse?: boolean;
|
|
17
|
-
} & Pick<import("./ChatMessage").ChatMessageProps, "space" | "tools" | "onEvent" | "debug">, "className"> & {
|
|
18
|
-
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
19
|
-
} & {
|
|
20
|
-
delay?: number;
|
|
21
|
-
}) => React.JSX.Element;
|
|
22
|
+
} & React.RefAttributes<ChatThreadController | null>>;
|
|
23
|
+
render: ({ generator, delay, ...props }: StoryProps) => React.JSX.Element;
|
|
22
24
|
decorators: import("@storybook/react").Decorator[];
|
|
23
25
|
parameters: {
|
|
26
|
+
layout: string;
|
|
24
27
|
translations: [{
|
|
25
28
|
readonly 'en-US': {
|
|
26
29
|
readonly [x: string]: {
|
|
@@ -35,6 +38,7 @@ declare const meta: {
|
|
|
35
38
|
readonly 'open ambient chat label'?: undefined;
|
|
36
39
|
readonly 'assistant chat label'?: undefined;
|
|
37
40
|
readonly 'plugin name'?: undefined;
|
|
41
|
+
readonly 'settings title'?: undefined;
|
|
38
42
|
readonly 'object placeholder'?: undefined;
|
|
39
43
|
readonly 'create object label'?: undefined;
|
|
40
44
|
readonly 'create trigger label'?: undefined;
|
|
@@ -47,24 +51,37 @@ declare const meta: {
|
|
|
47
51
|
readonly 'description placeholder'?: undefined;
|
|
48
52
|
readonly 'select preset template placeholder'?: undefined;
|
|
49
53
|
readonly 'service registry label'?: undefined;
|
|
54
|
+
readonly 'type filter placeholder'?: undefined;
|
|
55
|
+
readonly 'any type filter label'?: undefined;
|
|
56
|
+
readonly 'no blueprint message'?: undefined;
|
|
57
|
+
readonly 'calling tool label'?: undefined;
|
|
58
|
+
readonly 'calling label'?: undefined;
|
|
59
|
+
readonly 'error label'?: undefined;
|
|
50
60
|
readonly 'sequence logs label'?: undefined;
|
|
51
61
|
readonly 'assistant dialog title'?: undefined;
|
|
52
62
|
readonly 'open assistant label'?: undefined;
|
|
53
63
|
readonly 'no tools'?: undefined;
|
|
54
|
-
readonly '
|
|
64
|
+
readonly 'no results'?: undefined;
|
|
65
|
+
readonly 'button retry'?: undefined;
|
|
66
|
+
readonly 'button suggestion'?: undefined;
|
|
55
67
|
readonly 'button select option'?: undefined;
|
|
68
|
+
readonly 'button cancel'?: undefined;
|
|
56
69
|
readonly 'button save'?: undefined;
|
|
57
70
|
readonly 'button run'?: undefined;
|
|
58
|
-
readonly '
|
|
59
|
-
readonly '
|
|
60
|
-
readonly '
|
|
71
|
+
readonly 'button new thread'?: undefined;
|
|
72
|
+
readonly 'chat history label'?: undefined;
|
|
73
|
+
readonly 'toolkit label'?: undefined;
|
|
74
|
+
readonly 'summary label'?: undefined;
|
|
61
75
|
readonly 'search placeholder'?: undefined;
|
|
62
76
|
readonly 'prompt placeholder'?: undefined;
|
|
63
|
-
readonly 'context objects
|
|
64
|
-
readonly 'button
|
|
77
|
+
readonly 'button context objects'?: undefined;
|
|
78
|
+
readonly 'button context settings'?: undefined;
|
|
65
79
|
readonly 'button microphone'?: undefined;
|
|
66
80
|
readonly 'button cancel processing'?: undefined;
|
|
67
|
-
readonly '
|
|
81
|
+
readonly 'blueprints in context title'?: undefined;
|
|
82
|
+
readonly 'objects in context title'?: undefined;
|
|
83
|
+
readonly 'remove object in context label'?: undefined;
|
|
84
|
+
readonly 'chat model title'?: undefined;
|
|
68
85
|
readonly 'settings default label'?: undefined;
|
|
69
86
|
readonly 'settings custom prompts label'?: undefined;
|
|
70
87
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -82,6 +99,7 @@ declare const meta: {
|
|
|
82
99
|
readonly 'open ambient chat label'?: undefined;
|
|
83
100
|
readonly 'assistant chat label'?: undefined;
|
|
84
101
|
readonly 'plugin name'?: undefined;
|
|
102
|
+
readonly 'settings title'?: undefined;
|
|
85
103
|
readonly 'object placeholder'?: undefined;
|
|
86
104
|
readonly 'create object label'?: undefined;
|
|
87
105
|
readonly 'create trigger label'?: undefined;
|
|
@@ -94,41 +112,55 @@ declare const meta: {
|
|
|
94
112
|
readonly 'description placeholder'?: undefined;
|
|
95
113
|
readonly 'select preset template placeholder'?: undefined;
|
|
96
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 'calling tool label'?: undefined;
|
|
119
|
+
readonly 'calling label'?: undefined;
|
|
120
|
+
readonly 'error label'?: undefined;
|
|
97
121
|
readonly 'sequence logs label'?: undefined;
|
|
98
122
|
readonly 'assistant dialog title'?: undefined;
|
|
99
123
|
readonly 'open assistant label'?: undefined;
|
|
100
124
|
readonly 'no tools'?: undefined;
|
|
101
|
-
readonly '
|
|
125
|
+
readonly 'no results'?: undefined;
|
|
126
|
+
readonly 'button retry'?: undefined;
|
|
127
|
+
readonly 'button suggestion'?: undefined;
|
|
102
128
|
readonly 'button select option'?: undefined;
|
|
129
|
+
readonly 'button cancel'?: undefined;
|
|
103
130
|
readonly 'button save'?: undefined;
|
|
104
131
|
readonly 'button run'?: undefined;
|
|
105
|
-
readonly '
|
|
106
|
-
readonly '
|
|
107
|
-
readonly '
|
|
132
|
+
readonly 'button new thread'?: undefined;
|
|
133
|
+
readonly 'chat history label'?: undefined;
|
|
134
|
+
readonly 'toolkit label'?: undefined;
|
|
135
|
+
readonly 'summary label'?: undefined;
|
|
108
136
|
readonly 'search placeholder'?: undefined;
|
|
109
137
|
readonly 'prompt placeholder'?: undefined;
|
|
110
|
-
readonly 'context objects
|
|
111
|
-
readonly 'button
|
|
138
|
+
readonly 'button context objects'?: undefined;
|
|
139
|
+
readonly 'button context settings'?: undefined;
|
|
112
140
|
readonly 'button microphone'?: undefined;
|
|
113
141
|
readonly 'button cancel processing'?: undefined;
|
|
114
|
-
readonly '
|
|
142
|
+
readonly 'blueprints in context title'?: undefined;
|
|
143
|
+
readonly 'objects in context title'?: undefined;
|
|
144
|
+
readonly 'remove object in context label'?: undefined;
|
|
145
|
+
readonly 'chat model title'?: undefined;
|
|
115
146
|
readonly 'settings default label'?: undefined;
|
|
116
147
|
readonly 'settings custom prompts label'?: undefined;
|
|
117
148
|
readonly 'settings llm provider label'?: undefined;
|
|
118
149
|
readonly 'settings edge llm model label'?: undefined;
|
|
119
150
|
readonly 'settings ollama llm model label'?: undefined;
|
|
120
151
|
} | {
|
|
121
|
-
readonly 'typename label': "
|
|
122
|
-
readonly '
|
|
123
|
-
readonly '
|
|
124
|
-
readonly '
|
|
125
|
-
readonly '
|
|
126
|
-
readonly '
|
|
127
|
-
readonly '
|
|
152
|
+
readonly 'typename label': "AI Chat";
|
|
153
|
+
readonly 'object name placeholder': "New AI Chat";
|
|
154
|
+
readonly 'rename object label': "Rename AI Chat";
|
|
155
|
+
readonly 'delete object label': "Delete AI Chat";
|
|
156
|
+
readonly 'typename label_zero'?: undefined;
|
|
157
|
+
readonly 'typename label_one'?: undefined;
|
|
158
|
+
readonly 'typename label_other'?: undefined;
|
|
128
159
|
readonly 'templates label'?: undefined;
|
|
129
160
|
readonly 'open ambient chat label'?: undefined;
|
|
130
161
|
readonly 'assistant chat label'?: undefined;
|
|
131
162
|
readonly 'plugin name'?: undefined;
|
|
163
|
+
readonly 'settings title'?: undefined;
|
|
132
164
|
readonly 'object placeholder'?: undefined;
|
|
133
165
|
readonly 'create object label'?: undefined;
|
|
134
166
|
readonly 'create trigger label'?: undefined;
|
|
@@ -141,24 +173,37 @@ declare const meta: {
|
|
|
141
173
|
readonly 'description placeholder'?: undefined;
|
|
142
174
|
readonly 'select preset template placeholder'?: undefined;
|
|
143
175
|
readonly 'service registry label'?: undefined;
|
|
176
|
+
readonly 'type filter placeholder'?: undefined;
|
|
177
|
+
readonly 'any type filter label'?: undefined;
|
|
178
|
+
readonly 'no blueprint message'?: undefined;
|
|
179
|
+
readonly 'calling tool label'?: undefined;
|
|
180
|
+
readonly 'calling label'?: undefined;
|
|
181
|
+
readonly 'error label'?: undefined;
|
|
144
182
|
readonly 'sequence logs label'?: undefined;
|
|
145
183
|
readonly 'assistant dialog title'?: undefined;
|
|
146
184
|
readonly 'open assistant label'?: undefined;
|
|
147
185
|
readonly 'no tools'?: undefined;
|
|
148
|
-
readonly '
|
|
186
|
+
readonly 'no results'?: undefined;
|
|
187
|
+
readonly 'button retry'?: undefined;
|
|
188
|
+
readonly 'button suggestion'?: undefined;
|
|
149
189
|
readonly 'button select option'?: undefined;
|
|
190
|
+
readonly 'button cancel'?: undefined;
|
|
150
191
|
readonly 'button save'?: undefined;
|
|
151
192
|
readonly 'button run'?: undefined;
|
|
152
|
-
readonly '
|
|
153
|
-
readonly '
|
|
154
|
-
readonly '
|
|
193
|
+
readonly 'button new thread'?: undefined;
|
|
194
|
+
readonly 'chat history label'?: undefined;
|
|
195
|
+
readonly 'toolkit label'?: undefined;
|
|
196
|
+
readonly 'summary label'?: undefined;
|
|
155
197
|
readonly 'search placeholder'?: undefined;
|
|
156
198
|
readonly 'prompt placeholder'?: undefined;
|
|
157
|
-
readonly 'context objects
|
|
158
|
-
readonly 'button
|
|
199
|
+
readonly 'button context objects'?: undefined;
|
|
200
|
+
readonly 'button context settings'?: undefined;
|
|
159
201
|
readonly 'button microphone'?: undefined;
|
|
160
202
|
readonly 'button cancel processing'?: undefined;
|
|
161
|
-
readonly '
|
|
203
|
+
readonly 'blueprints in context title'?: undefined;
|
|
204
|
+
readonly 'objects in context title'?: undefined;
|
|
205
|
+
readonly 'remove object in context label'?: undefined;
|
|
206
|
+
readonly 'chat model title'?: undefined;
|
|
162
207
|
readonly 'settings default label'?: undefined;
|
|
163
208
|
readonly 'settings custom prompts label'?: undefined;
|
|
164
209
|
readonly 'settings llm provider label'?: undefined;
|
|
@@ -169,6 +214,7 @@ declare const meta: {
|
|
|
169
214
|
readonly 'open ambient chat label': "Open Assistant";
|
|
170
215
|
readonly 'assistant chat label': "Assistant";
|
|
171
216
|
readonly 'plugin name': "Assistant";
|
|
217
|
+
readonly 'settings title': "Assistant settings";
|
|
172
218
|
readonly 'object placeholder': "New prompt";
|
|
173
219
|
readonly 'create object label': "Create prompt";
|
|
174
220
|
readonly 'create trigger label': "Create trigger";
|
|
@@ -181,24 +227,37 @@ declare const meta: {
|
|
|
181
227
|
readonly 'description placeholder': "Enter description of when this template should be used";
|
|
182
228
|
readonly 'select preset template placeholder': "Select preset";
|
|
183
229
|
readonly 'service registry label': "Service Registry";
|
|
230
|
+
readonly 'type filter placeholder': "Type";
|
|
231
|
+
readonly 'any type filter label': "Any";
|
|
232
|
+
readonly 'no blueprint message': "No active blueprints";
|
|
233
|
+
readonly 'calling tool label': "Calling tool...";
|
|
234
|
+
readonly 'calling label': "Calling";
|
|
235
|
+
readonly 'error label': "Error";
|
|
184
236
|
readonly 'sequence logs label': "Logs";
|
|
185
237
|
readonly 'assistant dialog title': "Assistant";
|
|
186
238
|
readonly 'open assistant label': "Open assistant";
|
|
187
|
-
readonly 'no tools': "No tools are configured
|
|
188
|
-
readonly '
|
|
239
|
+
readonly 'no tools': "No tools are configured";
|
|
240
|
+
readonly 'no results': "No results";
|
|
241
|
+
readonly 'button retry': "Retry";
|
|
242
|
+
readonly 'button suggestion': "Assistant suggestion";
|
|
189
243
|
readonly 'button select option': "Select option";
|
|
244
|
+
readonly 'button cancel': "Cancel";
|
|
190
245
|
readonly 'button save': "Save";
|
|
191
246
|
readonly 'button run': "Run";
|
|
192
|
-
readonly '
|
|
193
|
-
readonly '
|
|
194
|
-
readonly '
|
|
247
|
+
readonly 'button new thread': "New Chat";
|
|
248
|
+
readonly 'chat history label': "Chat History";
|
|
249
|
+
readonly 'toolkit label': "Toolkit";
|
|
250
|
+
readonly 'summary label': "Summary";
|
|
195
251
|
readonly 'search placeholder': "Search...";
|
|
196
|
-
readonly 'prompt placeholder': "
|
|
197
|
-
readonly 'context objects
|
|
198
|
-
readonly 'button
|
|
252
|
+
readonly 'prompt placeholder': "Enter question or command...";
|
|
253
|
+
readonly 'button context objects': "Add to context";
|
|
254
|
+
readonly 'button context settings': "Chat settings";
|
|
199
255
|
readonly 'button microphone': "Click to speak";
|
|
200
256
|
readonly 'button cancel processing': "Stop processing";
|
|
201
|
-
readonly '
|
|
257
|
+
readonly 'blueprints in context title': "Blueprints";
|
|
258
|
+
readonly 'objects in context title': "Content";
|
|
259
|
+
readonly 'remove object in context label': "Remove document";
|
|
260
|
+
readonly 'chat model title': "Model";
|
|
202
261
|
readonly 'settings default label': "Default";
|
|
203
262
|
readonly 'settings custom prompts label': "Use custom prompts";
|
|
204
263
|
readonly 'settings llm provider label': "LLM provider";
|
|
@@ -217,10 +276,7 @@ declare const meta: {
|
|
|
217
276
|
};
|
|
218
277
|
};
|
|
219
278
|
export default meta;
|
|
220
|
-
|
|
221
|
-
export declare const
|
|
222
|
-
|
|
223
|
-
delay: number;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
279
|
+
type Story = StoryObj<typeof meta>;
|
|
280
|
+
export declare const Default: Story;
|
|
281
|
+
export declare const Delayed: Story;
|
|
226
282
|
//# 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,KAAuC,MAAM,OAAO,CAAC;AAE5D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAQvE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAKxC,OAAO,EAAc,KAAK,oBAAoB,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAI3F,KAAK,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,eAAe,GAAG,mBAAmB,CAAC,CAAC;AAE1F,KAAK,UAAU,GAAG,eAAe,GAAG;IAAE,SAAS,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAoEvF,QAAA,MAAM,IAAI;;;;;;;;;;;6CAlEqD,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8EtC,CAAC;AAEpC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAOrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/Link.tsx"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/Link.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAGtC,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,gBAAgB,eAAe,sBASzD,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type DataType } from '@dxos/schema';
|
|
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: DataType.Message[];
|
|
35
|
+
current?: DataType.Message;
|
|
36
|
+
toolBlock?: boolean;
|
|
37
|
+
assistantMessages?: DataType.Message[];
|
|
38
|
+
}, DataType.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,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEhE,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,QAAQ,CAAC,OAAO,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC;CACxC,EACD,QAAQ,CAAC,OAAO,CA+DjB,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,36 @@
|
|
|
1
|
+
import { type MarkdownStreamController } from '@dxos/react-ui-components';
|
|
2
|
+
import { type XmlWidgetStateManager } from '@dxos/react-ui-editor';
|
|
3
|
+
import { type ContentBlock, type DataType } from '@dxos/schema';
|
|
4
|
+
/**
|
|
5
|
+
* Update document.
|
|
6
|
+
*/
|
|
7
|
+
export type TextModel = Pick<MarkdownStreamController, 'reset' | 'append' | 'updateWidget'>;
|
|
8
|
+
/**
|
|
9
|
+
* Thread context passed to renderer.
|
|
10
|
+
*/
|
|
11
|
+
export declare class MessageThreadContext implements Pick<MarkdownStreamController, 'updateWidget'> {
|
|
12
|
+
private readonly _widgetState?;
|
|
13
|
+
constructor(_widgetState?: XmlWidgetStateManager | undefined);
|
|
14
|
+
updateWidget<T>(id: string, value: T): void;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Renders a block to markdown.
|
|
18
|
+
*/
|
|
19
|
+
export type BlockRenderer = (context: MessageThreadContext, message: DataType.Message, block: ContentBlock.Any) => string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Syncs messages with the editor.
|
|
22
|
+
*/
|
|
23
|
+
export declare class MessageSyncer {
|
|
24
|
+
private readonly _model;
|
|
25
|
+
private readonly _blockRenderer;
|
|
26
|
+
private _initialMessageId?;
|
|
27
|
+
private _currentMessageIndex;
|
|
28
|
+
private _currentBlockIndex;
|
|
29
|
+
private _currentBlockContent?;
|
|
30
|
+
private readonly _context;
|
|
31
|
+
constructor(_model: TextModel, _blockRenderer: BlockRenderer);
|
|
32
|
+
get context(): MessageThreadContext;
|
|
33
|
+
reset(): void;
|
|
34
|
+
sync(messages: DataType.Message[]): void;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/sync.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,wBAAwB,EAAE,OAAO,GAAG,QAAQ,GAAG,cAAc,CAAC,CAAC;AAE5F;;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,CAAC;CAGrC;AAED;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAC1B,OAAO,EAAE,oBAAoB,EAC7B,OAAO,EAAE,QAAQ,CAAC,OAAO,EACzB,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,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE;CA+ClC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.test.d.ts","sourceRoot":"","sources":["../../../../../src/components/ChatThread/sync.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PromptSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/PromptSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD,eAAO,MAAM,cAAc,GAAI,cAAc;IAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"PromptSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/PromptSettings.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKjD,eAAO,MAAM,cAAc,GAAI,cAAc;IAAE,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAA;CAAE,sBA8E3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/SequenceContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,
|
|
1
|
+
{"version":3,"file":"SequenceContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/SequenceContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,KAAK,QAAQ,EAA2B,MAAM,iBAAiB,CAAC;AAWzE,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAalE,eAAO,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,sBAgGrE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -9,5 +9,5 @@ export declare const SequenceEditor: React.ForwardRefExoticComponent<Omit<{
|
|
|
9
9
|
sequence: SequenceDefinition;
|
|
10
10
|
}, "className"> & {
|
|
11
11
|
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
12
|
-
} & React.RefAttributes<EditorView |
|
|
12
|
+
} & React.RefAttributes<EditorView | null>>;
|
|
13
13
|
//# sourceMappingURL=SequenceEditor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/SequenceEditor/SequenceEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC,CAAC;AAGH,eAAO,MAAM,cAAc;cAJf,kBAAkB;;;
|
|
1
|
+
{"version":3,"file":"SequenceEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/SequenceEditor/SequenceEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC,CAAC;AAGH,eAAO,MAAM,cAAc;cAJf,kBAAkB;;;2CA8B7B,CAAC"}
|