@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-assistant",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.66e292d",
|
|
4
4
|
"description": "Assistant plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
+
"source": "./src/index.ts",
|
|
13
14
|
"types": "./dist/types/src/index.d.ts",
|
|
14
15
|
"browser": "./dist/lib/browser/index.mjs",
|
|
15
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
16
|
-
"source": "./src/index.ts"
|
|
16
|
+
"node": "./dist/lib/node-esm/index.mjs"
|
|
17
17
|
},
|
|
18
18
|
"./types": {
|
|
19
|
+
"source": "./src/types/index.ts",
|
|
19
20
|
"types": "./dist/types/src/types/index.d.ts",
|
|
20
21
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
21
|
-
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
22
|
-
"source": "./src/types/index.ts"
|
|
22
|
+
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -36,114 +36,117 @@
|
|
|
36
36
|
"src"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@codemirror/autocomplete": "^6.
|
|
40
|
-
"@codemirror/
|
|
41
|
-
"@codemirror/
|
|
42
|
-
"@codemirror/
|
|
43
|
-
"@codemirror/
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
39
|
+
"@codemirror/autocomplete": "^6.19.0",
|
|
40
|
+
"@codemirror/lang-html": "^6.4.11",
|
|
41
|
+
"@codemirror/lang-xml": "^6.1.0",
|
|
42
|
+
"@codemirror/language": "^6.11.3",
|
|
43
|
+
"@codemirror/state": "^6.5.2",
|
|
44
|
+
"@codemirror/view": "^6.38.4",
|
|
45
|
+
"@effect/ai": "0.29.1",
|
|
46
|
+
"@effect/ai-anthropic": "0.21.1",
|
|
47
|
+
"@effect/ai-openai": "^0.32.1",
|
|
48
|
+
"@effect/experimental": "0.56.0",
|
|
49
|
+
"@effect/platform-browser": "0.72.0",
|
|
46
50
|
"@preact-signals/safe-react": "^0.9.0",
|
|
47
|
-
"@preact/signals-core": "^1.
|
|
48
|
-
"@preact/signals-react": "^3.
|
|
51
|
+
"@preact/signals-core": "^1.12.1",
|
|
52
|
+
"@preact/signals-react": "^3.3.0",
|
|
49
53
|
"@radix-ui/react-context": "1.1.1",
|
|
50
|
-
"
|
|
51
|
-
"effect": "3.17.0",
|
|
54
|
+
"effect": "3.18.3",
|
|
52
55
|
"exa-js": "^1.5.12",
|
|
53
56
|
"json5": "^2.2.3",
|
|
54
57
|
"jsonpointer": "^5.0.1",
|
|
55
58
|
"lodash.defaultsdeep": "^4.6.1",
|
|
56
59
|
"unified": "^11.0.0",
|
|
57
60
|
"use-deep-compare-effect": "^1.8.1",
|
|
58
|
-
"@dxos/ai": "0.8.4-main.
|
|
59
|
-
"@dxos/app-framework": "0.8.4-main.
|
|
60
|
-
"@dxos/assistant": "0.8.4-main.
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/client": "0.8.4-main.
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/conductor": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/debug": "0.8.4-main.
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/devtools": "0.8.4-main.
|
|
71
|
-
"@dxos/echo
|
|
72
|
-
"@dxos/echo-
|
|
73
|
-
"@dxos/echo-
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/functions": "0.8.4-main.
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/graph": "0.8.4-main.
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/plugin-
|
|
87
|
-
"@dxos/plugin-
|
|
88
|
-
"@dxos/plugin-
|
|
89
|
-
"@dxos/plugin-
|
|
90
|
-
"@dxos/plugin-
|
|
91
|
-
"@dxos/plugin-
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/react-
|
|
98
|
-
"@dxos/react-
|
|
99
|
-
"@dxos/react-ui-
|
|
100
|
-
"@dxos/react-ui-
|
|
101
|
-
"@dxos/react-ui-
|
|
102
|
-
"@dxos/react-ui-
|
|
103
|
-
"@dxos/react-ui-
|
|
104
|
-
"@dxos/react-ui-
|
|
105
|
-
"@dxos/react-ui-
|
|
106
|
-
"@dxos/react-ui-
|
|
107
|
-
"@dxos/react-ui-
|
|
108
|
-
"@dxos/react-ui-
|
|
109
|
-
"@dxos/react-ui-
|
|
110
|
-
"@dxos/react-ui-
|
|
111
|
-
"@dxos/
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/util": "0.8.4-main.
|
|
61
|
+
"@dxos/ai": "0.8.4-main.66e292d",
|
|
62
|
+
"@dxos/app-framework": "0.8.4-main.66e292d",
|
|
63
|
+
"@dxos/assistant": "0.8.4-main.66e292d",
|
|
64
|
+
"@dxos/assistant-toolkit": "0.8.4-main.66e292d",
|
|
65
|
+
"@dxos/async": "0.8.4-main.66e292d",
|
|
66
|
+
"@dxos/blueprints": "0.8.4-main.66e292d",
|
|
67
|
+
"@dxos/client": "0.8.4-main.66e292d",
|
|
68
|
+
"@dxos/compute": "0.8.4-main.66e292d",
|
|
69
|
+
"@dxos/conductor": "0.8.4-main.66e292d",
|
|
70
|
+
"@dxos/config": "0.8.4-main.66e292d",
|
|
71
|
+
"@dxos/debug": "0.8.4-main.66e292d",
|
|
72
|
+
"@dxos/context": "0.8.4-main.66e292d",
|
|
73
|
+
"@dxos/devtools": "0.8.4-main.66e292d",
|
|
74
|
+
"@dxos/echo": "0.8.4-main.66e292d",
|
|
75
|
+
"@dxos/echo-db": "0.8.4-main.66e292d",
|
|
76
|
+
"@dxos/echo-protocol": "0.8.4-main.66e292d",
|
|
77
|
+
"@dxos/echo-query": "0.8.4-main.66e292d",
|
|
78
|
+
"@dxos/edge-client": "0.8.4-main.66e292d",
|
|
79
|
+
"@dxos/functions-runtime": "0.8.4-main.66e292d",
|
|
80
|
+
"@dxos/functions": "0.8.4-main.66e292d",
|
|
81
|
+
"@dxos/graph": "0.8.4-main.66e292d",
|
|
82
|
+
"@dxos/invariant": "0.8.4-main.66e292d",
|
|
83
|
+
"@dxos/keys": "0.8.4-main.66e292d",
|
|
84
|
+
"@dxos/lit-ui": "0.8.4-main.66e292d",
|
|
85
|
+
"@dxos/effect": "0.8.4-main.66e292d",
|
|
86
|
+
"@dxos/live-object": "0.8.4-main.66e292d",
|
|
87
|
+
"@dxos/local-storage": "0.8.4-main.66e292d",
|
|
88
|
+
"@dxos/log": "0.8.4-main.66e292d",
|
|
89
|
+
"@dxos/plugin-attention": "0.8.4-main.66e292d",
|
|
90
|
+
"@dxos/plugin-automation": "0.8.4-main.66e292d",
|
|
91
|
+
"@dxos/plugin-client": "0.8.4-main.66e292d",
|
|
92
|
+
"@dxos/plugin-deck": "0.8.4-main.66e292d",
|
|
93
|
+
"@dxos/plugin-graph": "0.8.4-main.66e292d",
|
|
94
|
+
"@dxos/plugin-space": "0.8.4-main.66e292d",
|
|
95
|
+
"@dxos/protocols": "0.8.4-main.66e292d",
|
|
96
|
+
"@dxos/react-client": "0.8.4-main.66e292d",
|
|
97
|
+
"@dxos/react-ui-attention": "0.8.4-main.66e292d",
|
|
98
|
+
"@dxos/react-edge-client": "0.8.4-main.66e292d",
|
|
99
|
+
"@dxos/plugin-transcription": "0.8.4-main.66e292d",
|
|
100
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.66e292d",
|
|
101
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.66e292d",
|
|
102
|
+
"@dxos/react-ui-chat": "0.8.4-main.66e292d",
|
|
103
|
+
"@dxos/react-ui-components": "0.8.4-main.66e292d",
|
|
104
|
+
"@dxos/react-ui-editor": "0.8.4-main.66e292d",
|
|
105
|
+
"@dxos/react-ui-form": "0.8.4-main.66e292d",
|
|
106
|
+
"@dxos/react-ui-list": "0.8.4-main.66e292d",
|
|
107
|
+
"@dxos/react-ui-graph": "0.8.4-main.66e292d",
|
|
108
|
+
"@dxos/react-ui-menu": "0.8.4-main.66e292d",
|
|
109
|
+
"@dxos/react-ui-searchlist": "0.8.4-main.66e292d",
|
|
110
|
+
"@dxos/react-ui-sfx": "0.8.4-main.66e292d",
|
|
111
|
+
"@dxos/react-ui-stack": "0.8.4-main.66e292d",
|
|
112
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.66e292d",
|
|
113
|
+
"@dxos/react-ui-tabs": "0.8.4-main.66e292d",
|
|
114
|
+
"@dxos/schema": "0.8.4-main.66e292d",
|
|
115
|
+
"@dxos/types": "0.8.4-main.66e292d",
|
|
116
|
+
"@dxos/util": "0.8.4-main.66e292d"
|
|
114
117
|
},
|
|
115
118
|
"devDependencies": {
|
|
116
|
-
"@effect-
|
|
117
|
-
"@effect/platform": "0.
|
|
119
|
+
"@effect-atom/atom-react": "^0.3.4",
|
|
120
|
+
"@effect/platform": "0.92.1",
|
|
118
121
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
119
|
-
"@types/react": "~
|
|
120
|
-
"@types/react-dom": "~
|
|
121
|
-
"effect": "3.
|
|
122
|
+
"@types/react": "~19.2.2",
|
|
123
|
+
"@types/react-dom": "~19.2.2",
|
|
124
|
+
"effect": "3.18.3",
|
|
122
125
|
"openapi-types": "^12.1.3",
|
|
123
|
-
"react": "~
|
|
124
|
-
"react-dom": "~
|
|
125
|
-
"vite": "
|
|
126
|
-
"@dxos/assistant-
|
|
127
|
-
"@dxos/
|
|
128
|
-
"@dxos/
|
|
129
|
-
"@dxos/plugin-
|
|
130
|
-
"@dxos/plugin-map": "0.8.4-main.
|
|
131
|
-
"@dxos/
|
|
132
|
-
"@dxos/
|
|
133
|
-
"@dxos/
|
|
134
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
135
|
-
"@dxos/react-ui-
|
|
136
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
137
|
-
"@dxos/storybook-utils": "0.8.4-main.
|
|
126
|
+
"react": "~19.2.0",
|
|
127
|
+
"react-dom": "~19.2.0",
|
|
128
|
+
"vite": "7.1.9",
|
|
129
|
+
"@dxos/assistant-toolkit": "0.8.4-main.66e292d",
|
|
130
|
+
"@dxos/devtools": "0.8.4-main.66e292d",
|
|
131
|
+
"@dxos/echo-db": "0.8.4-main.66e292d",
|
|
132
|
+
"@dxos/plugin-chess": "0.8.4-main.66e292d",
|
|
133
|
+
"@dxos/plugin-map": "0.8.4-main.66e292d",
|
|
134
|
+
"@dxos/random": "0.8.4-main.66e292d",
|
|
135
|
+
"@dxos/plugin-table": "0.8.4-main.66e292d",
|
|
136
|
+
"@dxos/react-ui": "0.8.4-main.66e292d",
|
|
137
|
+
"@dxos/react-ui-menu": "0.8.4-main.66e292d",
|
|
138
|
+
"@dxos/react-ui-table": "0.8.4-main.66e292d",
|
|
139
|
+
"@dxos/react-ui-theme": "0.8.4-main.66e292d",
|
|
140
|
+
"@dxos/storybook-utils": "0.8.4-main.66e292d"
|
|
138
141
|
},
|
|
139
142
|
"peerDependencies": {
|
|
140
|
-
"@effect-
|
|
143
|
+
"@effect-atom/atom-react": "^0.3.4",
|
|
141
144
|
"@effect/platform": "^0.80.12",
|
|
142
145
|
"effect": "^3.13.3",
|
|
143
|
-
"react": "
|
|
144
|
-
"react-dom": "
|
|
145
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
146
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
146
|
+
"react": "^19.0.0",
|
|
147
|
+
"react-dom": "^19.0.0",
|
|
148
|
+
"@dxos/react-ui": "0.8.4-main.66e292d",
|
|
149
|
+
"@dxos/react-ui-theme": "0.8.4-main.66e292d"
|
|
147
150
|
},
|
|
148
151
|
"publishConfig": {
|
|
149
152
|
"access": "public"
|
package/src/AssistantPlugin.tsx
CHANGED
|
@@ -2,123 +2,163 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Layer } from 'effect';
|
|
6
|
-
|
|
7
|
-
import { AiServiceTestingPreset } from '@dxos/ai/testing';
|
|
8
5
|
import { Capabilities, Events, contributes, createIntent, defineModule, definePlugin } from '@dxos/app-framework';
|
|
9
|
-
import {
|
|
6
|
+
import { ResearchGraph } from '@dxos/assistant-toolkit';
|
|
7
|
+
import { Blueprint, Prompt } from '@dxos/blueprints';
|
|
10
8
|
import { Sequence } from '@dxos/conductor';
|
|
11
9
|
import { Type } from '@dxos/echo';
|
|
12
10
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
13
11
|
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
14
|
-
import {
|
|
12
|
+
import { type CreateObjectIntent } from '@dxos/plugin-space/types';
|
|
13
|
+
import { HasSubject } from '@dxos/types';
|
|
15
14
|
|
|
16
|
-
import {
|
|
17
|
-
|
|
15
|
+
import {
|
|
16
|
+
AiService,
|
|
17
|
+
AppGraphBuilder,
|
|
18
|
+
AssistantState,
|
|
19
|
+
BlueprintDefinition,
|
|
20
|
+
EdgeModelResolver,
|
|
21
|
+
IntentResolver,
|
|
22
|
+
LocalModelResolver,
|
|
23
|
+
ReactSurface,
|
|
24
|
+
Repair,
|
|
25
|
+
Settings,
|
|
26
|
+
Toolkit,
|
|
27
|
+
} from './capabilities';
|
|
28
|
+
import { AssistantEvents } from './events';
|
|
18
29
|
import { meta } from './meta';
|
|
19
30
|
import { translations } from './translations';
|
|
20
|
-
import { Assistant,
|
|
31
|
+
import { Assistant, AssistantAction } from './types';
|
|
21
32
|
|
|
22
|
-
export const AssistantPlugin = () =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
33
|
+
export const AssistantPlugin = definePlugin(meta, () => [
|
|
34
|
+
defineModule({
|
|
35
|
+
id: `${meta.id}/module/translations`,
|
|
36
|
+
activatesOn: Events.SetupTranslations,
|
|
37
|
+
activate: () => contributes(Capabilities.Translations, translations),
|
|
38
|
+
}),
|
|
39
|
+
defineModule({
|
|
40
|
+
id: `${meta.id}/module/settings`,
|
|
41
|
+
activatesOn: Events.SetupSettings,
|
|
42
|
+
activate: Settings,
|
|
43
|
+
}),
|
|
44
|
+
defineModule({
|
|
45
|
+
id: `${meta.id}/module/state`,
|
|
46
|
+
// TODO(wittjosiah): Does not integrate with settings store.
|
|
47
|
+
// Should this be a different event?
|
|
48
|
+
// Should settings store be renamed to be more generic?
|
|
49
|
+
activatesOn: Events.SetupSettings,
|
|
50
|
+
activate: AssistantState,
|
|
51
|
+
}),
|
|
52
|
+
defineModule({
|
|
53
|
+
id: `${meta.id}/module/metadata`,
|
|
54
|
+
activatesOn: Events.SetupMetadata,
|
|
55
|
+
activate: () => [
|
|
56
|
+
contributes(Capabilities.Metadata, {
|
|
57
|
+
id: Type.getTypename(Assistant.Chat),
|
|
58
|
+
metadata: {
|
|
59
|
+
icon: 'ph--atom--regular',
|
|
60
|
+
iconHue: 'sky',
|
|
61
|
+
createObjectIntent: ((_, options) =>
|
|
62
|
+
createIntent(AssistantAction.CreateChat, { space: options.space })) satisfies CreateObjectIntent,
|
|
63
|
+
},
|
|
64
|
+
}),
|
|
65
|
+
contributes(Capabilities.Metadata, {
|
|
66
|
+
id: Type.getTypename(Blueprint.Blueprint),
|
|
67
|
+
metadata: {
|
|
68
|
+
icon: 'ph--blueprint--regular',
|
|
69
|
+
iconHue: 'sky',
|
|
70
|
+
inputSchema: AssistantAction.BlueprintForm,
|
|
71
|
+
createObjectIntent: ((props) =>
|
|
72
|
+
createIntent(AssistantAction.CreateBlueprint, props)) satisfies CreateObjectIntent,
|
|
73
|
+
},
|
|
74
|
+
}),
|
|
75
|
+
contributes(Capabilities.Metadata, {
|
|
76
|
+
id: Type.getTypename(Prompt.Prompt),
|
|
77
|
+
metadata: {
|
|
78
|
+
icon: 'ph--scroll--regular',
|
|
79
|
+
iconHue: 'sky',
|
|
80
|
+
createObjectIntent: (() => createIntent(AssistantAction.CreatePrompt)) satisfies CreateObjectIntent,
|
|
81
|
+
},
|
|
82
|
+
}),
|
|
83
|
+
contributes(Capabilities.Metadata, {
|
|
84
|
+
id: Type.getTypename(Sequence),
|
|
85
|
+
metadata: {
|
|
86
|
+
icon: 'ph--circuitry--regular',
|
|
87
|
+
iconHue: 'sky',
|
|
88
|
+
createObjectIntent: (() => createIntent(AssistantAction.CreateSequence)) satisfies CreateObjectIntent,
|
|
89
|
+
addToCollectionOnCreate: true,
|
|
90
|
+
},
|
|
91
|
+
}),
|
|
92
|
+
],
|
|
93
|
+
}),
|
|
94
|
+
defineModule({
|
|
95
|
+
id: `${meta.id}/module/schema`,
|
|
96
|
+
activatesOn: ClientEvents.SetupSchema,
|
|
97
|
+
activate: () =>
|
|
98
|
+
contributes(ClientCapabilities.Schema, [
|
|
99
|
+
Assistant.Chat,
|
|
100
|
+
Assistant.CompanionTo,
|
|
101
|
+
Blueprint.Blueprint,
|
|
102
|
+
HasSubject.HasSubject,
|
|
103
|
+
Prompt.Prompt,
|
|
104
|
+
ResearchGraph,
|
|
105
|
+
Sequence,
|
|
106
|
+
]),
|
|
107
|
+
}),
|
|
108
|
+
defineModule({
|
|
109
|
+
id: `${meta.id}/module/on-space-created`,
|
|
110
|
+
activatesOn: SpaceEvents.SpaceCreated,
|
|
111
|
+
activate: () =>
|
|
112
|
+
contributes(SpaceCapabilities.OnCreateSpace, (params) => createIntent(AssistantAction.OnCreateSpace, params)),
|
|
113
|
+
}),
|
|
114
|
+
defineModule({
|
|
115
|
+
id: `${meta.id}/module/repair`,
|
|
116
|
+
activatesOn: ClientEvents.SpacesReady,
|
|
117
|
+
activate: Repair,
|
|
118
|
+
}),
|
|
119
|
+
defineModule({
|
|
120
|
+
id: `${meta.id}/module/app-graph-builder`,
|
|
121
|
+
activatesOn: Events.SetupAppGraph,
|
|
122
|
+
activate: AppGraphBuilder,
|
|
123
|
+
}),
|
|
124
|
+
defineModule({
|
|
125
|
+
id: `${meta.id}/module/intent-resolver`,
|
|
126
|
+
activatesOn: Events.SetupIntentResolver,
|
|
127
|
+
activate: IntentResolver,
|
|
128
|
+
}),
|
|
129
|
+
defineModule({
|
|
130
|
+
id: `${meta.id}/module/react-surface`,
|
|
131
|
+
activatesOn: Events.SetupReactSurface,
|
|
132
|
+
// TODO(wittjosiah): Should occur before the chat is loaded when surfaces activation is more granular.
|
|
133
|
+
activatesBefore: [Events.SetupArtifactDefinition],
|
|
134
|
+
activate: ReactSurface,
|
|
135
|
+
}),
|
|
136
|
+
defineModule({
|
|
137
|
+
id: `${meta.id}/module/edge-model-resolver`,
|
|
138
|
+
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
139
|
+
activate: EdgeModelResolver,
|
|
140
|
+
}),
|
|
141
|
+
defineModule({
|
|
142
|
+
id: `${meta.id}/module/local-model-resolver`,
|
|
143
|
+
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
144
|
+
activate: LocalModelResolver,
|
|
145
|
+
}),
|
|
146
|
+
defineModule({
|
|
147
|
+
id: `${meta.id}/module/ai-service`,
|
|
148
|
+
activatesBefore: [AssistantEvents.SetupAiServiceProviders],
|
|
149
|
+
// TODO(dmaretskyi): This should activate lazily when the AI chat is used.
|
|
150
|
+
activatesOn: Events.Startup,
|
|
151
|
+
activate: AiService,
|
|
152
|
+
}),
|
|
153
|
+
defineModule({
|
|
154
|
+
id: `${meta.id}/module/blueprint`,
|
|
155
|
+
activatesOn: Events.SetupArtifactDefinition,
|
|
156
|
+
activate: BlueprintDefinition,
|
|
157
|
+
}),
|
|
158
|
+
defineModule({
|
|
159
|
+
id: `${meta.id}/module/toolkit`,
|
|
160
|
+
// TODO(wittjosiah): Use a different event.
|
|
161
|
+
activatesOn: Events.Startup,
|
|
162
|
+
activate: Toolkit,
|
|
163
|
+
}),
|
|
164
|
+
]);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Layer from 'effect/Layer';
|
|
7
|
+
|
|
8
|
+
import * as AiServiceRouter from '@dxos/ai/AiServiceRouter';
|
|
9
|
+
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
10
|
+
|
|
11
|
+
export default (context: PluginContext) => {
|
|
12
|
+
const resolvers = context.getCapabilities(Capabilities.AiModelResolver);
|
|
13
|
+
|
|
14
|
+
// TODO(dmaretskyi): Extract function to reduce them.
|
|
15
|
+
const combinedLayer = resolvers.reduce(
|
|
16
|
+
(acc, resolver) => resolver.pipe(Layer.provide(acc)),
|
|
17
|
+
AiServiceRouter.AiModelResolver.fromModelMap(Effect.succeed({})), // Empty resolver as fallback.
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
return [
|
|
21
|
+
// TODO(dmaretskyi): Read config from settings.
|
|
22
|
+
contributes(
|
|
23
|
+
Capabilities.AiServiceLayer,
|
|
24
|
+
AiServiceRouter.AiModelResolver.buildAiService.pipe(Layer.provide(combinedLayer)),
|
|
25
|
+
),
|
|
26
|
+
];
|
|
27
|
+
};
|