@dxos/plugin-assistant 0.8.4-main.67995b8 → 0.8.4-main.dedc0f3
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-IZ4AK5EO.mjs → BlueprintContainer-BFNN6K46.mjs} +4 -3
- package/dist/lib/browser/ChatCompanion-YYYCHZYV.mjs +126 -0
- package/dist/lib/browser/ChatCompanion-YYYCHZYV.mjs.map +7 -0
- package/dist/lib/browser/{ChatContainer-RP3QEXYX.mjs → ChatContainer-G6YHR6GJ.mjs} +34 -13
- package/dist/lib/browser/ChatContainer-G6YHR6GJ.mjs.map +7 -0
- package/dist/lib/browser/{ChatDialog-ZVLXFHEY.mjs → ChatDialog-HJ7VDRQO.mjs} +28 -12
- package/dist/lib/browser/ChatDialog-HJ7VDRQO.mjs.map +7 -0
- package/dist/lib/browser/{SequenceContainer-3UDVKWPA.mjs → SequenceContainer-TF5QNXYM.mjs} +5 -17
- package/dist/lib/browser/SequenceContainer-TF5QNXYM.mjs.map +7 -0
- package/dist/lib/browser/ai-service-YC2EQPHA.mjs +22 -0
- package/dist/lib/browser/ai-service-YC2EQPHA.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-XSEOKJLG.mjs → app-graph-builder-3C43MLCD.mjs} +25 -36
- package/dist/lib/browser/app-graph-builder-3C43MLCD.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-VHFSRTEJ.mjs +12 -0
- package/dist/lib/browser/blueprint-definition-VHFSRTEJ.mjs.map +7 -0
- package/dist/lib/browser/chunk-EZUSNS2J.mjs +19 -0
- package/dist/lib/browser/chunk-EZUSNS2J.mjs.map +7 -0
- package/dist/lib/browser/chunk-GLWD66TA.mjs +161 -0
- package/dist/lib/browser/chunk-GLWD66TA.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-O4LUJEDV.mjs +20 -0
- package/dist/lib/browser/{chunk-FDCJSQYF.mjs.map → chunk-O4LUJEDV.mjs.map} +2 -2
- package/dist/lib/browser/chunk-PL4O4ZJU.mjs +1974 -0
- package/dist/lib/browser/chunk-PL4O4ZJU.mjs.map +7 -0
- package/dist/lib/browser/chunk-PPJAIE2T.mjs +299 -0
- package/dist/lib/browser/chunk-PPJAIE2T.mjs.map +7 -0
- package/dist/lib/browser/chunk-PQI3MGDN.mjs +169 -0
- package/dist/lib/browser/chunk-PQI3MGDN.mjs.map +7 -0
- package/dist/lib/browser/chunk-R6LRGW3I.mjs +216 -0
- package/dist/lib/browser/chunk-R6LRGW3I.mjs.map +7 -0
- package/dist/lib/browser/chunk-SMIVXXAI.mjs +202 -0
- package/dist/lib/browser/chunk-SMIVXXAI.mjs.map +7 -0
- package/dist/lib/browser/compute-runtime-X6IREJN3.mjs +155 -0
- package/dist/lib/browser/compute-runtime-X6IREJN3.mjs.map +7 -0
- package/dist/lib/browser/edge-model-resolver-JNEB355N.mjs +22 -0
- package/dist/lib/browser/edge-model-resolver-JNEB355N.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +148 -62
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-I6M3ZDAS.mjs +112 -0
- package/dist/lib/browser/intent-resolver-I6M3ZDAS.mjs.map +7 -0
- package/dist/lib/browser/local-model-resolver-EUXSRZ7X.mjs +21 -0
- package/dist/lib/browser/local-model-resolver-EUXSRZ7X.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-3GYEHQRP.mjs → react-surface-WNLA2636.mjs} +25 -66
- package/dist/lib/browser/react-surface-WNLA2636.mjs.map +7 -0
- package/dist/lib/browser/{settings-5GTTCVGD.mjs → settings-36V3VUMW.mjs} +6 -5
- package/dist/lib/{node-esm/settings-J2EXEM5H.mjs.map → browser/settings-36V3VUMW.mjs.map} +1 -1
- package/dist/lib/browser/state-AINRYS5W.mjs +21 -0
- package/dist/lib/browser/state-AINRYS5W.mjs.map +7 -0
- package/dist/lib/browser/toolkit-Y5OYX5PO.mjs +191 -0
- package/dist/lib/browser/toolkit-Y5OYX5PO.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +7 -4
- package/dist/lib/node-esm/{BlueprintContainer-RGTMNLNX.mjs → BlueprintContainer-X4MRBKDR.mjs} +4 -3
- package/dist/lib/{browser/BlueprintContainer-IZ4AK5EO.mjs.map → node-esm/BlueprintContainer-X4MRBKDR.mjs.map} +1 -1
- package/dist/lib/node-esm/ChatCompanion-PUAFRIEC.mjs +127 -0
- package/dist/lib/node-esm/ChatCompanion-PUAFRIEC.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatContainer-W3W6FWV3.mjs → ChatContainer-EZZF7RSQ.mjs} +34 -13
- package/dist/lib/node-esm/ChatContainer-EZZF7RSQ.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatDialog-QW4JRKVO.mjs → ChatDialog-PTQLZNJU.mjs} +28 -12
- package/dist/lib/node-esm/ChatDialog-PTQLZNJU.mjs.map +7 -0
- package/dist/lib/node-esm/{SequenceContainer-RQQH5XOC.mjs → SequenceContainer-UXOVZPZO.mjs} +5 -17
- package/dist/lib/node-esm/SequenceContainer-UXOVZPZO.mjs.map +7 -0
- package/dist/lib/node-esm/ai-service-XUMZVFCK.mjs +23 -0
- package/dist/lib/node-esm/ai-service-XUMZVFCK.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-PANCJUHV.mjs → app-graph-builder-NM3JDLQ2.mjs} +25 -36
- package/dist/lib/node-esm/app-graph-builder-NM3JDLQ2.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-4E6XTLVN.mjs +13 -0
- package/dist/lib/node-esm/blueprint-definition-4E6XTLVN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4WLFSXZG.mjs +170 -0
- package/dist/lib/node-esm/chunk-4WLFSXZG.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-7YOGZI66.mjs +203 -0
- package/dist/lib/node-esm/chunk-7YOGZI66.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-LVTG5JTW.mjs +217 -0
- package/dist/lib/node-esm/chunk-LVTG5JTW.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-QG2KT3AT.mjs +163 -0
- package/dist/lib/node-esm/chunk-QG2KT3AT.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-VFY2JG62.mjs +22 -0
- package/dist/lib/node-esm/{chunk-QN2H2EHV.mjs.map → chunk-VFY2JG62.mjs.map} +2 -2
- package/dist/lib/node-esm/chunk-VH3LTD76.mjs +300 -0
- package/dist/lib/node-esm/chunk-VH3LTD76.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-XD4CDA4R.mjs +20 -0
- package/dist/lib/node-esm/chunk-XD4CDA4R.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ZIDP7HBI.mjs +1975 -0
- package/dist/lib/node-esm/chunk-ZIDP7HBI.mjs.map +7 -0
- package/dist/lib/node-esm/compute-runtime-NRHLLTSC.mjs +156 -0
- package/dist/lib/node-esm/compute-runtime-NRHLLTSC.mjs.map +7 -0
- package/dist/lib/node-esm/edge-model-resolver-UE5TLLJZ.mjs +23 -0
- package/dist/lib/node-esm/edge-model-resolver-UE5TLLJZ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +148 -62
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-VIINHFMT.mjs +113 -0
- package/dist/lib/node-esm/intent-resolver-VIINHFMT.mjs.map +7 -0
- package/dist/lib/node-esm/local-model-resolver-JBEFVVZA.mjs +22 -0
- package/dist/lib/node-esm/local-model-resolver-JBEFVVZA.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-QDQWJ7FZ.mjs → react-surface-GP3LU6DX.mjs} +25 -66
- package/dist/lib/node-esm/react-surface-GP3LU6DX.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-J2EXEM5H.mjs → settings-7ZCZ6AS5.mjs} +6 -5
- package/dist/lib/{browser/settings-5GTTCVGD.mjs.map → node-esm/settings-7ZCZ6AS5.mjs.map} +1 -1
- package/dist/lib/node-esm/state-EQS5KP6M.mjs +22 -0
- package/dist/lib/node-esm/state-EQS5KP6M.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-2F2OL6WB.mjs +192 -0
- package/dist/lib/node-esm/toolkit-2F2OL6WB.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +7 -4
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-service.d.ts +5 -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 +32 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/compute-runtime.d.ts +5 -0
- package/dist/types/src/capabilities/compute-runtime.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/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/Chat/Chat.d.ts +20 -17
- 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 +4 -4
- 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 +10 -7
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +115 -32
- 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 +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.map +1 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +261 -2
- 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 +261 -6
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +258 -1
- 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 +4 -9
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +262 -4
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -1
- 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/execution-graph/execution-graph.d.ts +21 -0
- package/dist/types/src/execution-graph/execution-graph.d.ts.map +1 -0
- package/dist/types/src/execution-graph/index.d.ts +2 -0
- package/dist/types/src/execution-graph/index.d.ts.map +1 -0
- 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/list.d.ts +10 -0
- package/dist/types/src/functions/list.d.ts.map +1 -0
- package/dist/types/src/functions/load.d.ts +8 -0
- package/dist/types/src/functions/load.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +9 -3
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +24 -0
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -0
- package/dist/types/src/hooks/useChatProcessor.d.ts +8 -21
- 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/useComputeRuntimeCallback.d.ts +8 -0
- package/dist/types/src/hooks/useComputeRuntimeCallback.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/useExecutionGraph.d.ts +6 -0
- package/dist/types/src/hooks/useExecutionGraph.d.ts.map +1 -0
- package/dist/types/src/hooks/useFlush.d.ts +6 -0
- package/dist/types/src/hooks/useFlush.d.ts.map +1 -0
- package/dist/types/src/hooks/useItemTypes.d.ts +4 -0
- package/dist/types/src/hooks/useItemTypes.d.ts.map +1 -0
- package/dist/types/src/hooks/useOnline.d.ts +3 -0
- package/dist/types/src/hooks/useOnline.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +7 -0
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -0
- package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
- package/dist/types/src/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 +2 -2
- package/dist/types/src/processor/presets.d.ts.map +1 -0
- package/dist/types/src/processor/processor.d.ts +73 -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/stories/Chat.stories.d.ts +25 -202
- package/dist/types/src/stories/Chat.stories.d.ts.map +1 -1
- package/dist/types/src/stories/components/BlueprintContainer.d.ts +4 -0
- package/dist/types/src/stories/components/BlueprintContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/ChatContainer.d.ts +4 -0
- package/dist/types/src/stories/components/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/ChessContainer.d.ts +4 -0
- package/dist/types/src/stories/components/ChessContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/CommentsContainer.d.ts +4 -0
- package/dist/types/src/stories/components/CommentsContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/DebugCard.d.ts +8 -0
- package/dist/types/src/stories/components/DebugCard.d.ts.map +1 -0
- package/dist/types/src/stories/components/GraphContainer.d.ts +6 -0
- package/dist/types/src/stories/components/GraphContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/InvocationsContainer.d.ts +4 -0
- package/dist/types/src/stories/components/InvocationsContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/LoggingContainer.d.ts +7 -0
- package/dist/types/src/stories/components/LoggingContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/MessageContainer.d.ts +4 -0
- package/dist/types/src/stories/components/MessageContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/PromptContainer.d.ts +6 -0
- package/dist/types/src/stories/components/PromptContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/ResearchInputStack.d.ts +4 -0
- package/dist/types/src/stories/components/ResearchInputStack.d.ts.map +1 -0
- package/dist/types/src/stories/components/ResearchOutputStack.d.ts +4 -0
- package/dist/types/src/stories/components/ResearchOutputStack.d.ts.map +1 -0
- package/dist/types/src/stories/components/TasksContainer.d.ts +4 -0
- package/dist/types/src/stories/components/TasksContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/TokenManagerContainer.d.ts +3 -0
- package/dist/types/src/stories/components/TokenManagerContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/TriggersContainer.d.ts +14 -0
- package/dist/types/src/stories/components/TriggersContainer.d.ts.map +1 -0
- package/dist/types/src/stories/components/index.d.ts +16 -0
- package/dist/types/src/stories/components/index.d.ts.map +1 -0
- package/dist/types/src/stories/components/types.d.ts +7 -0
- package/dist/types/src/stories/components/types.d.ts.map +1 -0
- package/dist/types/src/stories/testing/data.d.ts +9 -0
- package/dist/types/src/stories/testing/data.d.ts.map +1 -0
- package/dist/types/src/stories/testing/index.d.ts +3 -0
- package/dist/types/src/stories/testing/index.d.ts.map +1 -0
- package/dist/types/src/stories/testing/schema.d.ts +7 -0
- package/dist/types/src/stories/testing/schema.d.ts.map +1 -0
- package/dist/types/src/stories/testing/testing.d.ts +48 -0
- package/dist/types/src/stories/testing/testing.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +3 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-data.d.ts +14 -0
- package/dist/types/src/testing/test-data.d.ts.map +1 -0
- package/dist/types/src/testing/test-functions.d.ts +5 -2
- package/dist/types/src/testing/test-functions.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/translations.d.ts +28 -12
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +42 -0
- package/dist/types/src/types/Assistant.d.ts.map +1 -0
- package/dist/types/src/types/AssistantAction.d.ts +107 -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 +6 -3
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +108 -86
- package/src/AssistantPlugin.tsx +61 -17
- package/src/capabilities/ai-service.ts +28 -0
- package/src/capabilities/app-graph-builder.ts +41 -48
- package/src/capabilities/blueprint-definition.ts +58 -0
- package/src/capabilities/capabilities.ts +71 -0
- package/src/capabilities/compute-runtime.ts +124 -0
- package/src/capabilities/edge-model-resolver.ts +27 -0
- package/src/capabilities/index.ts +10 -0
- package/src/capabilities/intent-resolver.ts +45 -23
- package/src/capabilities/local-model-resolver.ts +32 -0
- package/src/capabilities/react-surface.tsx +10 -57
- package/src/capabilities/state.ts +20 -0
- package/src/capabilities/toolkit.ts +163 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +83 -76
- package/src/components/Chat/Chat.tsx +175 -174
- package/src/components/Chat/events.ts +7 -0
- package/src/components/ChatCompanion.tsx +111 -0
- package/src/components/ChatContainer.tsx +19 -13
- package/src/components/ChatDialog.tsx +18 -14
- package/src/components/ChatProgress/ChatProgress.tsx +68 -0
- package/src/components/ChatProgress/index.ts +5 -0
- package/src/components/ChatPrompt/ChatActions.tsx +10 -24
- package/src/components/ChatPrompt/ChatOptions.tsx +233 -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 +97 -110
- package/src/components/ChatThread/ChatThread.tsx +65 -29
- package/src/components/ChatThread/Link.tsx +26 -0
- package/src/components/ChatThread/reducers.ts +151 -0
- package/src/components/ChatThread/registry.tsx +189 -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 -28
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +5 -4
- package/src/components/SequenceEditor/SequenceEditor.tsx +1 -1
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +25 -12
- package/src/components/TemplateEditor/TemplateEditor.tsx +14 -47
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +12 -5
- package/src/components/TemplateEditor/TemplateForm.tsx +3 -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/Toolbar/index.ts +5 -0
- package/src/components/Toolbar/useChatToolbarActions.ts +126 -0
- package/src/components/Toolbox/Toolbox.stories.tsx +10 -16
- package/src/components/Toolbox/Toolbox.tsx +21 -51
- package/src/components/index.ts +3 -4
- package/src/events.ts +2 -2
- package/src/execution-graph/execution-graph.ts +211 -0
- package/src/execution-graph/index.ts +5 -0
- package/src/functions/analysis.ts +20 -0
- package/src/functions/index.ts +7 -0
- package/src/functions/list.ts +46 -0
- package/src/functions/load.ts +42 -0
- package/src/hooks/index.ts +9 -4
- package/src/hooks/useBlueprintRegistry.ts +80 -0
- package/src/hooks/useChatProcessor.ts +21 -98
- package/src/hooks/useChatServices.ts +29 -48
- package/src/hooks/useComputeRuntimeCallback.ts +25 -0
- package/src/hooks/useContextBinder.ts +18 -0
- package/src/hooks/useContextObjects.ts +58 -0
- package/src/hooks/useExecutionGraph.ts +20 -0
- package/src/hooks/useFlush.ts +35 -0
- package/src/hooks/useItemTypes.ts +37 -0
- package/src/hooks/useOnline.ts +10 -0
- package/src/hooks/usePresets.ts +44 -0
- package/src/hooks/useReferencesProvider.ts +11 -9
- package/src/meta.ts +1 -1
- package/src/processor/index.ts +6 -0
- package/src/{hooks → processor}/presets.ts +14 -6
- package/src/processor/processor.test.ts +77 -0
- package/src/processor/processor.ts +302 -0
- package/src/queue-logger.ts +10 -10
- package/src/stories/Chat.stories.tsx +594 -308
- package/src/stories/components/BlueprintContainer.tsx +34 -0
- package/src/stories/components/ChatContainer.tsx +74 -0
- package/src/stories/components/ChessContainer.tsx +17 -0
- package/src/stories/components/CommentsContainer.tsx +25 -0
- package/src/stories/components/DebugCard.tsx +61 -0
- package/src/stories/components/GraphContainer.tsx +119 -0
- package/src/stories/components/InvocationsContainer.tsx +17 -0
- package/src/stories/components/LoggingContainer.tsx +33 -0
- package/src/stories/components/MessageContainer.tsx +22 -0
- package/src/stories/components/PromptContainer.tsx +52 -0
- package/src/stories/components/ResearchInputStack.tsx +30 -0
- package/src/stories/components/ResearchOutputStack.tsx +29 -0
- package/src/stories/components/TasksContainer.tsx +49 -0
- package/src/stories/components/TokenManagerContainer.tsx +14 -0
- package/src/stories/components/TriggersContainer.tsx +75 -0
- package/src/stories/components/index.ts +20 -0
- package/src/stories/components/types.ts +11 -0
- package/src/stories/testing/data.ts +142 -0
- package/src/stories/testing/index.ts +6 -0
- package/src/stories/testing/schema.ts +17 -0
- package/src/stories/testing/testing.tsx +279 -0
- package/src/testing/index.ts +3 -1
- package/src/testing/test-data.ts +245 -0
- package/src/testing/test-functions.ts +8 -3
- package/src/testing/test-generator.ts +257 -0
- package/src/testing/test-sequence.ts +2 -27
- package/src/translations.ts +31 -12
- package/src/types/Assistant.ts +61 -0
- package/src/types/AssistantAction.ts +62 -0
- package/src/types/defs.ts +5 -0
- package/src/types/index.ts +4 -1
- package/src/vite-env.d.ts +30 -0
- 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.map +0 -7
- 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-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.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.map +0 -7
- 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-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.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/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/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/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/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/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/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/dist/lib/{node-esm/BlueprintContainer-RGTMNLNX.mjs.map → browser/BlueprintContainer-BFNN6K46.mjs.map} +0 -0
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.dedc0f3",
|
|
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,105 +36,127 @@
|
|
|
36
36
|
"src"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@codemirror/autocomplete": "^6.18.
|
|
40
|
-
"@codemirror/language": "^6.
|
|
41
|
-
"@codemirror/search": "^6.5.
|
|
42
|
-
"@codemirror/state": "^6.
|
|
43
|
-
"@codemirror/view": "^6.
|
|
44
|
-
"@effect/ai": "0.
|
|
39
|
+
"@codemirror/autocomplete": "^6.18.7",
|
|
40
|
+
"@codemirror/language": "^6.11.3",
|
|
41
|
+
"@codemirror/search": "^6.5.11",
|
|
42
|
+
"@codemirror/state": "^6.5.2",
|
|
43
|
+
"@codemirror/view": "^6.38.2",
|
|
44
|
+
"@effect/ai": "0.25.2",
|
|
45
|
+
"@effect/ai-anthropic": "^0.16.1",
|
|
46
|
+
"@effect/ai-openai": "^0.29.1",
|
|
47
|
+
"@effect/platform-browser": "0.70.0",
|
|
45
48
|
"@lezer/highlight": "^1.2.1",
|
|
49
|
+
"@lezer/markdown": "^1.3.1",
|
|
46
50
|
"@preact-signals/safe-react": "^0.9.0",
|
|
47
51
|
"@preact/signals-core": "^1.9.0",
|
|
48
52
|
"@preact/signals-react": "^3.2.0",
|
|
49
53
|
"@radix-ui/react-context": "1.1.1",
|
|
50
|
-
"
|
|
51
|
-
"effect": "3.17.0",
|
|
54
|
+
"effect": "3.17.7",
|
|
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/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/assistant": "0.8.4-main.
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/config": "0.8.4-main.
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/devtools": "0.8.4-main.
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/echo": "0.8.4-main.
|
|
71
|
-
"@dxos/echo-
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/plugin-
|
|
85
|
-
"@dxos/plugin-
|
|
86
|
-
"@dxos/plugin-
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/plugin-
|
|
89
|
-
"@dxos/plugin-
|
|
90
|
-
"@dxos/plugin-
|
|
91
|
-
"@dxos/plugin-
|
|
92
|
-
"@dxos/plugin-
|
|
93
|
-
"@dxos/plugin-
|
|
94
|
-
"@dxos/plugin-
|
|
95
|
-
"@dxos/plugin-
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/react-
|
|
100
|
-
"@dxos/react-
|
|
101
|
-
"@dxos/react-
|
|
102
|
-
"@dxos/react-ui-
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/react-ui-
|
|
105
|
-
"@dxos/react-ui-
|
|
106
|
-
"@dxos/react-ui-
|
|
107
|
-
"@dxos/react-ui-graph": "0.8.4-main.
|
|
108
|
-
"@dxos/react-ui-
|
|
109
|
-
"@dxos/react-ui-
|
|
110
|
-
"@dxos/react-ui-
|
|
111
|
-
"@dxos/react-ui-
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/
|
|
61
|
+
"@dxos/app-framework": "0.8.4-main.dedc0f3",
|
|
62
|
+
"@dxos/ai": "0.8.4-main.dedc0f3",
|
|
63
|
+
"@dxos/assistant": "0.8.4-main.dedc0f3",
|
|
64
|
+
"@dxos/assistant-testing": "0.8.4-main.dedc0f3",
|
|
65
|
+
"@dxos/async": "0.8.4-main.dedc0f3",
|
|
66
|
+
"@dxos/client": "0.8.4-main.dedc0f3",
|
|
67
|
+
"@dxos/blueprints": "0.8.4-main.dedc0f3",
|
|
68
|
+
"@dxos/compute": "0.8.4-main.dedc0f3",
|
|
69
|
+
"@dxos/config": "0.8.4-main.dedc0f3",
|
|
70
|
+
"@dxos/conductor": "0.8.4-main.dedc0f3",
|
|
71
|
+
"@dxos/devtools": "0.8.4-main.dedc0f3",
|
|
72
|
+
"@dxos/echo": "0.8.4-main.dedc0f3",
|
|
73
|
+
"@dxos/echo-db": "0.8.4-main.dedc0f3",
|
|
74
|
+
"@dxos/echo-schema": "0.8.4-main.dedc0f3",
|
|
75
|
+
"@dxos/edge-client": "0.8.4-main.dedc0f3",
|
|
76
|
+
"@dxos/effect": "0.8.4-main.dedc0f3",
|
|
77
|
+
"@dxos/echo-protocol": "0.8.4-main.dedc0f3",
|
|
78
|
+
"@dxos/functions": "0.8.4-main.dedc0f3",
|
|
79
|
+
"@dxos/graph": "0.8.4-main.dedc0f3",
|
|
80
|
+
"@dxos/invariant": "0.8.4-main.dedc0f3",
|
|
81
|
+
"@dxos/keys": "0.8.4-main.dedc0f3",
|
|
82
|
+
"@dxos/context": "0.8.4-main.dedc0f3",
|
|
83
|
+
"@dxos/lit-ui": "0.8.4-main.dedc0f3",
|
|
84
|
+
"@dxos/debug": "0.8.4-main.dedc0f3",
|
|
85
|
+
"@dxos/local-storage": "0.8.4-main.dedc0f3",
|
|
86
|
+
"@dxos/log": "0.8.4-main.dedc0f3",
|
|
87
|
+
"@dxos/plugin-attention": "0.8.4-main.dedc0f3",
|
|
88
|
+
"@dxos/plugin-board": "0.8.4-main.dedc0f3",
|
|
89
|
+
"@dxos/plugin-client": "0.8.4-main.dedc0f3",
|
|
90
|
+
"@dxos/live-object": "0.8.4-main.dedc0f3",
|
|
91
|
+
"@dxos/plugin-deck": "0.8.4-main.dedc0f3",
|
|
92
|
+
"@dxos/plugin-graph": "0.8.4-main.dedc0f3",
|
|
93
|
+
"@dxos/plugin-markdown": "0.8.4-main.dedc0f3",
|
|
94
|
+
"@dxos/plugin-preview": "0.8.4-main.dedc0f3",
|
|
95
|
+
"@dxos/plugin-script": "0.8.4-main.dedc0f3",
|
|
96
|
+
"@dxos/plugin-explorer": "0.8.4-main.dedc0f3",
|
|
97
|
+
"@dxos/plugin-sketch": "0.8.4-main.dedc0f3",
|
|
98
|
+
"@dxos/plugin-stack": "0.8.4-main.dedc0f3",
|
|
99
|
+
"@dxos/plugin-wnfs": "0.8.4-main.dedc0f3",
|
|
100
|
+
"@dxos/plugin-transcription": "0.8.4-main.dedc0f3",
|
|
101
|
+
"@dxos/protocols": "0.8.4-main.dedc0f3",
|
|
102
|
+
"@dxos/react-client": "0.8.4-main.dedc0f3",
|
|
103
|
+
"@dxos/react-edge-client": "0.8.4-main.dedc0f3",
|
|
104
|
+
"@dxos/react-ui-attention": "0.8.4-main.dedc0f3",
|
|
105
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.dedc0f3",
|
|
106
|
+
"@dxos/plugin-space": "0.8.4-main.dedc0f3",
|
|
107
|
+
"@dxos/react-ui-chat": "0.8.4-main.dedc0f3",
|
|
108
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.dedc0f3",
|
|
109
|
+
"@dxos/react-ui-components": "0.8.4-main.dedc0f3",
|
|
110
|
+
"@dxos/react-ui-graph": "0.8.4-main.dedc0f3",
|
|
111
|
+
"@dxos/react-ui-editor": "0.8.4-main.dedc0f3",
|
|
112
|
+
"@dxos/react-ui-form": "0.8.4-main.dedc0f3",
|
|
113
|
+
"@dxos/react-ui-list": "0.8.4-main.dedc0f3",
|
|
114
|
+
"@dxos/react-ui-menu": "0.8.4-main.dedc0f3",
|
|
115
|
+
"@dxos/react-ui-sfx": "0.8.4-main.dedc0f3",
|
|
116
|
+
"@dxos/react-ui-searchlist": "0.8.4-main.dedc0f3",
|
|
117
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.dedc0f3",
|
|
118
|
+
"@dxos/react-ui-stack": "0.8.4-main.dedc0f3",
|
|
119
|
+
"@dxos/util": "0.8.4-main.dedc0f3",
|
|
120
|
+
"@dxos/react-ui-tag-picker": "0.8.4-main.dedc0f3",
|
|
121
|
+
"@dxos/react-ui-tabs": "0.8.4-main.dedc0f3",
|
|
122
|
+
"@dxos/schema": "0.8.4-main.dedc0f3"
|
|
114
123
|
},
|
|
115
124
|
"devDependencies": {
|
|
116
125
|
"@effect-rx/rx-react": "^0.38.0",
|
|
117
|
-
"@effect/platform": "0.
|
|
126
|
+
"@effect/platform": "0.90.2",
|
|
118
127
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
119
128
|
"@types/react": "~18.2.0",
|
|
120
129
|
"@types/react-dom": "~18.2.0",
|
|
121
|
-
"effect": "3.17.
|
|
130
|
+
"effect": "3.17.7",
|
|
122
131
|
"openapi-types": "^12.1.3",
|
|
123
132
|
"react": "~18.2.0",
|
|
124
133
|
"react-dom": "~18.2.0",
|
|
125
|
-
"vite": "
|
|
126
|
-
"@dxos/
|
|
127
|
-
"@dxos/
|
|
128
|
-
"@dxos/echo-db": "0.8.4-main.
|
|
129
|
-
"@dxos/plugin-
|
|
130
|
-
"@dxos/plugin-
|
|
131
|
-
"@dxos/plugin-
|
|
132
|
-
"@dxos/plugin-
|
|
133
|
-
"@dxos/
|
|
134
|
-
"@dxos/
|
|
135
|
-
"@dxos/
|
|
136
|
-
"@dxos/
|
|
137
|
-
"@dxos/
|
|
134
|
+
"vite": "7.1.1",
|
|
135
|
+
"@dxos/devtools": "0.8.4-main.dedc0f3",
|
|
136
|
+
"@dxos/assistant-testing": "0.8.4-main.dedc0f3",
|
|
137
|
+
"@dxos/echo-db": "0.8.4-main.dedc0f3",
|
|
138
|
+
"@dxos/plugin-automation": "0.8.4-main.dedc0f3",
|
|
139
|
+
"@dxos/plugin-chess": "0.8.4-main.dedc0f3",
|
|
140
|
+
"@dxos/plugin-inbox": "0.8.4-main.dedc0f3",
|
|
141
|
+
"@dxos/plugin-markdown": "0.8.4-main.dedc0f3",
|
|
142
|
+
"@dxos/plugin-map": "0.8.4-main.dedc0f3",
|
|
143
|
+
"@dxos/plugin-script": "0.8.4-main.dedc0f3",
|
|
144
|
+
"@dxos/plugin-sketch": "0.8.4-main.dedc0f3",
|
|
145
|
+
"@dxos/plugin-stack": "0.8.4-main.dedc0f3",
|
|
146
|
+
"@dxos/plugin-table": "0.8.4-main.dedc0f3",
|
|
147
|
+
"@dxos/plugin-theme": "0.8.4-main.dedc0f3",
|
|
148
|
+
"@dxos/plugin-preview": "0.8.4-main.dedc0f3",
|
|
149
|
+
"@dxos/plugin-thread": "0.8.4-main.dedc0f3",
|
|
150
|
+
"@dxos/plugin-token-manager": "0.8.4-main.dedc0f3",
|
|
151
|
+
"@dxos/plugin-wnfs": "0.8.4-main.dedc0f3",
|
|
152
|
+
"@dxos/random": "0.8.4-main.dedc0f3",
|
|
153
|
+
"@dxos/react-ui": "0.8.4-main.dedc0f3",
|
|
154
|
+
"@dxos/react-ui-table": "0.8.4-main.dedc0f3",
|
|
155
|
+
"@dxos/react-ui-menu": "0.8.4-main.dedc0f3",
|
|
156
|
+
"@dxos/plugin-board": "0.8.4-main.dedc0f3",
|
|
157
|
+
"@dxos/plugin-attention": "0.8.4-main.dedc0f3",
|
|
158
|
+
"@dxos/react-ui-theme": "0.8.4-main.dedc0f3",
|
|
159
|
+
"@dxos/storybook-utils": "0.8.4-main.dedc0f3"
|
|
138
160
|
},
|
|
139
161
|
"peerDependencies": {
|
|
140
162
|
"@effect-rx/rx-react": "^0.34.1",
|
|
@@ -142,8 +164,8 @@
|
|
|
142
164
|
"effect": "^3.13.3",
|
|
143
165
|
"react": "~18.2.0",
|
|
144
166
|
"react-dom": "~18.2.0",
|
|
145
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
146
|
-
"@dxos/react-ui-theme": "0.8.4-main.
|
|
167
|
+
"@dxos/react-ui": "0.8.4-main.dedc0f3",
|
|
168
|
+
"@dxos/react-ui-theme": "0.8.4-main.dedc0f3"
|
|
147
169
|
},
|
|
148
170
|
"publishConfig": {
|
|
149
171
|
"access": "public"
|
package/src/AssistantPlugin.tsx
CHANGED
|
@@ -2,10 +2,8 @@
|
|
|
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';
|
|
6
|
+
import { ResearchGraph } from '@dxos/assistant-testing';
|
|
9
7
|
import { Blueprint } from '@dxos/blueprints';
|
|
10
8
|
import { Sequence } from '@dxos/conductor';
|
|
11
9
|
import { Type } from '@dxos/echo';
|
|
@@ -13,11 +11,23 @@ import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
|
13
11
|
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
14
12
|
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
15
13
|
|
|
16
|
-
import {
|
|
17
|
-
|
|
14
|
+
import {
|
|
15
|
+
AiService,
|
|
16
|
+
AppGraphBuilder,
|
|
17
|
+
AssistantState,
|
|
18
|
+
BlueprintDefinition,
|
|
19
|
+
ComputeRuntime,
|
|
20
|
+
EdgeModelResolver,
|
|
21
|
+
IntentResolver,
|
|
22
|
+
LocalModelResolver,
|
|
23
|
+
ReactSurface,
|
|
24
|
+
Settings,
|
|
25
|
+
Toolkit,
|
|
26
|
+
} from './capabilities';
|
|
27
|
+
import { AssistantEvents } from './events';
|
|
18
28
|
import { meta } from './meta';
|
|
19
29
|
import { translations } from './translations';
|
|
20
|
-
import { Assistant, ServiceType } from './types';
|
|
30
|
+
import { Assistant, AssistantAction, ServiceType } from './types';
|
|
21
31
|
|
|
22
32
|
export const AssistantPlugin = () =>
|
|
23
33
|
definePlugin(meta, [
|
|
@@ -31,6 +41,14 @@ export const AssistantPlugin = () =>
|
|
|
31
41
|
activatesOn: Events.SetupSettings,
|
|
32
42
|
activate: Settings,
|
|
33
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
|
+
}),
|
|
34
52
|
defineModule({
|
|
35
53
|
id: `${meta.id}/module/metadata`,
|
|
36
54
|
activatesOn: Events.SetupMetadata,
|
|
@@ -63,22 +81,22 @@ export const AssistantPlugin = () =>
|
|
|
63
81
|
SpaceCapabilities.ObjectForm,
|
|
64
82
|
defineObjectForm({
|
|
65
83
|
objectSchema: Assistant.Chat,
|
|
66
|
-
getIntent: (_, options) => createIntent(
|
|
84
|
+
getIntent: (_, options) => createIntent(AssistantAction.CreateChat, { space: options.space }),
|
|
67
85
|
}),
|
|
68
86
|
),
|
|
69
87
|
contributes(
|
|
70
88
|
SpaceCapabilities.ObjectForm,
|
|
71
89
|
defineObjectForm({
|
|
72
90
|
objectSchema: Blueprint.Blueprint,
|
|
73
|
-
formSchema:
|
|
74
|
-
getIntent: (props) => createIntent(
|
|
91
|
+
formSchema: AssistantAction.BlueprintForm,
|
|
92
|
+
getIntent: (props) => createIntent(AssistantAction.CreateBlueprint, props),
|
|
75
93
|
}),
|
|
76
94
|
),
|
|
77
95
|
contributes(
|
|
78
96
|
SpaceCapabilities.ObjectForm,
|
|
79
97
|
defineObjectForm({
|
|
80
98
|
objectSchema: Sequence,
|
|
81
|
-
getIntent: () => createIntent(
|
|
99
|
+
getIntent: () => createIntent(AssistantAction.CreateSequence),
|
|
82
100
|
}),
|
|
83
101
|
),
|
|
84
102
|
],
|
|
@@ -86,14 +104,14 @@ export const AssistantPlugin = () =>
|
|
|
86
104
|
defineModule({
|
|
87
105
|
id: `${meta.id}/module/schema`,
|
|
88
106
|
activatesOn: ClientEvents.SetupSchema,
|
|
89
|
-
activate: () => contributes(ClientCapabilities.Schema, [ServiceType, Assistant.CompanionTo]),
|
|
107
|
+
activate: () => contributes(ClientCapabilities.Schema, [ServiceType, Assistant.CompanionTo, ResearchGraph]),
|
|
90
108
|
}),
|
|
91
109
|
defineModule({
|
|
92
110
|
id: `${meta.id}/module/on-space-created`,
|
|
93
111
|
activatesOn: SpaceEvents.SpaceCreated,
|
|
94
112
|
activate: () =>
|
|
95
|
-
contributes(SpaceCapabilities.OnSpaceCreated, ({
|
|
96
|
-
createIntent(
|
|
113
|
+
contributes(SpaceCapabilities.OnSpaceCreated, ({ rootCollection, space }) =>
|
|
114
|
+
createIntent(AssistantAction.OnSpaceCreated, { rootCollection, space }),
|
|
97
115
|
),
|
|
98
116
|
}),
|
|
99
117
|
defineModule({
|
|
@@ -113,12 +131,38 @@ export const AssistantPlugin = () =>
|
|
|
113
131
|
activatesBefore: [Events.SetupArtifactDefinition],
|
|
114
132
|
activate: ReactSurface,
|
|
115
133
|
}),
|
|
134
|
+
defineModule({
|
|
135
|
+
id: `${meta.id}/module/edge-model-resolver`,
|
|
136
|
+
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
137
|
+
activate: EdgeModelResolver,
|
|
138
|
+
}),
|
|
139
|
+
defineModule({
|
|
140
|
+
id: `${meta.id}/module/local-model-resolver`,
|
|
141
|
+
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
142
|
+
activate: LocalModelResolver,
|
|
143
|
+
}),
|
|
116
144
|
defineModule({
|
|
117
145
|
id: `${meta.id}/module/ai-service`,
|
|
146
|
+
activatesBefore: [AssistantEvents.SetupAiServiceProviders],
|
|
147
|
+
// TODO(dmaretskyi): This should activate lazily when the AI chat is used.
|
|
118
148
|
activatesOn: Events.Startup,
|
|
119
|
-
activate:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
149
|
+
activate: AiService,
|
|
150
|
+
}),
|
|
151
|
+
defineModule({
|
|
152
|
+
id: `${meta.id}/module/blueprint`,
|
|
153
|
+
activatesOn: Events.SetupArtifactDefinition,
|
|
154
|
+
activate: BlueprintDefinition,
|
|
155
|
+
}),
|
|
156
|
+
defineModule({
|
|
157
|
+
id: `${meta.id}/module/toolkit`,
|
|
158
|
+
// TODO(wittjosiah): Use a different event.
|
|
159
|
+
activatesOn: Events.Startup,
|
|
160
|
+
activate: Toolkit,
|
|
161
|
+
}),
|
|
162
|
+
defineModule({
|
|
163
|
+
id: `${meta.id}/module/compute-runtime`,
|
|
164
|
+
// TODO(wittjosiah): Use a different event.
|
|
165
|
+
activatesOn: Events.Startup,
|
|
166
|
+
activate: ComputeRuntime,
|
|
123
167
|
}),
|
|
124
168
|
]);
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Effect, Layer } from 'effect';
|
|
6
|
+
|
|
7
|
+
import { AiServiceRouter } from '@dxos/ai';
|
|
8
|
+
import { type PluginContext, contributes } from '@dxos/app-framework';
|
|
9
|
+
|
|
10
|
+
import { AssistantCapabilities } from './capabilities';
|
|
11
|
+
|
|
12
|
+
export default (context: PluginContext) => {
|
|
13
|
+
const resolvers = context.getCapabilities(AssistantCapabilities.AiModelResolver);
|
|
14
|
+
|
|
15
|
+
// TODO(dmaretskyi): Extract function to reduce them.
|
|
16
|
+
const combinedLayer = resolvers.reduce(
|
|
17
|
+
(acc, resolver) => resolver.pipe(Layer.provide(acc)),
|
|
18
|
+
AiServiceRouter.AiModelResolver.fromModelMap(Effect.succeed({})), // Empty resolver as fallback.
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
return [
|
|
22
|
+
// TODO(dmaretskyi): Read config from settings.
|
|
23
|
+
contributes(
|
|
24
|
+
AssistantCapabilities.AiServiceLayer,
|
|
25
|
+
AiServiceRouter.AiModelResolver.buildAiService.pipe(Layer.provide(combinedLayer)),
|
|
26
|
+
),
|
|
27
|
+
];
|
|
28
|
+
};
|
|
@@ -7,24 +7,26 @@ import { Option, pipe } from 'effect';
|
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
9
|
Capabilities,
|
|
10
|
-
contributes,
|
|
11
|
-
createIntent,
|
|
12
10
|
LayoutAction,
|
|
13
|
-
type PromiseIntentDispatcher,
|
|
14
11
|
type PluginContext,
|
|
12
|
+
type PromiseIntentDispatcher,
|
|
13
|
+
contributes,
|
|
14
|
+
createIntent,
|
|
15
15
|
} from '@dxos/app-framework';
|
|
16
16
|
import { Sequence } from '@dxos/conductor';
|
|
17
17
|
import { Obj } from '@dxos/echo';
|
|
18
18
|
import { invariant } from '@dxos/invariant';
|
|
19
19
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
20
|
-
import {
|
|
21
|
-
import { createExtension,
|
|
22
|
-
import { getActiveSpace
|
|
20
|
+
import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
21
|
+
import { ROOT_ID, createExtension, rxFromSignal } from '@dxos/plugin-graph';
|
|
22
|
+
import { getActiveSpace } from '@dxos/plugin-space';
|
|
23
23
|
import { SpaceAction } from '@dxos/plugin-space/types';
|
|
24
|
-
import {
|
|
24
|
+
import { Query, type Space, fullyQualifiedId } from '@dxos/react-client/echo';
|
|
25
25
|
|
|
26
26
|
import { ASSISTANT_DIALOG, meta } from '../meta';
|
|
27
|
-
import { Assistant } from '../types';
|
|
27
|
+
import { Assistant, AssistantAction } from '../types';
|
|
28
|
+
|
|
29
|
+
import { AssistantCapabilities } from './capabilities';
|
|
28
30
|
|
|
29
31
|
export default (context: PluginContext) =>
|
|
30
32
|
contributes(Capabilities.AppGraphBuilder, [
|
|
@@ -79,44 +81,36 @@ export default (context: PluginContext) =>
|
|
|
79
81
|
}),
|
|
80
82
|
|
|
81
83
|
createExtension({
|
|
82
|
-
id: `${meta.id}/
|
|
84
|
+
id: `${meta.id}/companion-chat`,
|
|
83
85
|
connector: (node) => {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
const space = getSpace(object);
|
|
97
|
-
if (!space) {
|
|
98
|
-
return [];
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (!query) {
|
|
102
|
-
query = space.db.query(Query.select(Filter.ids(object.id)).targetOf(Assistant.CompanionTo).source());
|
|
103
|
-
}
|
|
86
|
+
return Rx.make((get) =>
|
|
87
|
+
pipe(
|
|
88
|
+
get(node),
|
|
89
|
+
Option.flatMap((node) => (Obj.isObject(node.data) ? Option.some(node.data) : Option.none())),
|
|
90
|
+
Option.map((object) => {
|
|
91
|
+
const currentChat = get(
|
|
92
|
+
rxFromSignal(
|
|
93
|
+
() => context.getCapability(AssistantCapabilities.State).currentChat[fullyQualifiedId(object)],
|
|
94
|
+
),
|
|
95
|
+
);
|
|
104
96
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
97
|
+
return [
|
|
98
|
+
{
|
|
99
|
+
id: [fullyQualifiedId(object), 'assistant-chat'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
100
|
+
type: PLANK_COMPANION_TYPE,
|
|
101
|
+
data: currentChat ?? 'assistant-chat',
|
|
102
|
+
properties: {
|
|
103
|
+
label: ['assistant chat label', { ns: meta.id }],
|
|
104
|
+
icon: 'ph--sparkle--regular',
|
|
105
|
+
position: 'hoist',
|
|
106
|
+
disposition: 'hidden',
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
];
|
|
110
|
+
}),
|
|
111
|
+
Option.getOrElse(() => []),
|
|
112
|
+
),
|
|
113
|
+
);
|
|
120
114
|
},
|
|
121
115
|
}),
|
|
122
116
|
|
|
@@ -155,14 +149,13 @@ const getOrCreateChat = async (
|
|
|
155
149
|
const { objects: relatedChats } = await space.db
|
|
156
150
|
.query(Query.type(Assistant.Chat).sourceOf(Assistant.CompanionTo).source())
|
|
157
151
|
.run();
|
|
152
|
+
|
|
158
153
|
const chats = allChats.filter((chat) => !relatedChats.includes(chat));
|
|
159
|
-
// console.log('objects', JSON.stringify(objects, null, 2));
|
|
160
154
|
if (chats.length > 0) {
|
|
161
|
-
|
|
162
|
-
return chats[chats.length - 1];
|
|
155
|
+
return chats.at(-1);
|
|
163
156
|
}
|
|
164
157
|
|
|
165
|
-
const { data } = await dispatch(createIntent(
|
|
158
|
+
const { data } = await dispatch(createIntent(AssistantAction.CreateChat, { space }));
|
|
166
159
|
invariant(Obj.instanceOf(Assistant.Chat, data?.object));
|
|
167
160
|
await dispatch(createIntent(SpaceAction.AddObject, { target: space, object: data.object }));
|
|
168
161
|
return data.object;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Capabilities, type Capability, contributes } from '@dxos/app-framework';
|
|
6
|
+
import { templates } from '@dxos/assistant';
|
|
7
|
+
import {
|
|
8
|
+
DISCORD_BLUEPRINT,
|
|
9
|
+
LINEAR_BLUEPRINT,
|
|
10
|
+
RESEARCH_BLUEPRINT,
|
|
11
|
+
fetchDiscordMessages,
|
|
12
|
+
research,
|
|
13
|
+
syncLinearIssues,
|
|
14
|
+
} from '@dxos/assistant-testing';
|
|
15
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
16
|
+
import { type FunctionDefinition } from '@dxos/functions';
|
|
17
|
+
|
|
18
|
+
import { analysis, list, load } from '../functions';
|
|
19
|
+
|
|
20
|
+
const functions: FunctionDefinition[] = [analysis, list, load];
|
|
21
|
+
const tools = [
|
|
22
|
+
'add-to-context',
|
|
23
|
+
// TODO(wittjosiah): Factor out to an ECHO blueprint.
|
|
24
|
+
'get-schemas',
|
|
25
|
+
'add-schema',
|
|
26
|
+
'create-record',
|
|
27
|
+
// TODO(wittjosiah): Factor out to a generic app-framework blueprint.
|
|
28
|
+
'open-item',
|
|
29
|
+
// TODO(burdon): Anthropic only.
|
|
30
|
+
// https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool#example-str-replace-command
|
|
31
|
+
// AI_TOOL_NOT_FOUND: str_replace_based_edit_tool
|
|
32
|
+
// 'str_replace_based_edit_tool',
|
|
33
|
+
];
|
|
34
|
+
|
|
35
|
+
export const BLUEPRINT_KEY = 'dxos.org/blueprint/assistant';
|
|
36
|
+
|
|
37
|
+
export const createBlueprint = (): Blueprint.Blueprint =>
|
|
38
|
+
Blueprint.make({
|
|
39
|
+
key: BLUEPRINT_KEY,
|
|
40
|
+
name: 'Assistant',
|
|
41
|
+
tools: Blueprint.toolDefinitions({ functions, tools }),
|
|
42
|
+
instructions: templates.system,
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const blueprint = createBlueprint();
|
|
46
|
+
|
|
47
|
+
// TODO(dmaretskyi): Consider splitting into multiple modules.
|
|
48
|
+
export default (): Capability<any>[] => [
|
|
49
|
+
contributes(Capabilities.Functions, functions),
|
|
50
|
+
contributes(Capabilities.Functions, [research]),
|
|
51
|
+
contributes(Capabilities.BlueprintDefinition, blueprint),
|
|
52
|
+
contributes(Capabilities.BlueprintDefinition, RESEARCH_BLUEPRINT),
|
|
53
|
+
// TODO(burdon): Move out of assistant.
|
|
54
|
+
contributes(Capabilities.Functions, [syncLinearIssues]),
|
|
55
|
+
contributes(Capabilities.Functions, [fetchDiscordMessages]),
|
|
56
|
+
contributes(Capabilities.BlueprintDefinition, LINEAR_BLUEPRINT),
|
|
57
|
+
contributes(Capabilities.BlueprintDefinition, DISCORD_BLUEPRINT),
|
|
58
|
+
];
|