@dxos/plugin-assistant 0.8.4-main.3eb6e50203 → 0.8.4-main.422d1c7879
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/AssistantSettings-7QMO3LGF.mjs +97 -0
- package/dist/lib/browser/AssistantSettings-7QMO3LGF.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +3 -7
- package/dist/lib/browser/chunk-ATHYBVGN.mjs +176 -0
- package/dist/lib/browser/chunk-ATHYBVGN.mjs.map +7 -0
- package/dist/lib/browser/chunk-EZRS3J25.mjs +30 -0
- package/dist/lib/browser/chunk-EZRS3J25.mjs.map +7 -0
- package/dist/lib/browser/chunk-LMVTXH54.mjs +154 -0
- package/dist/lib/browser/chunk-LMVTXH54.mjs.map +7 -0
- package/dist/lib/browser/cli/index.mjs +74 -0
- package/dist/lib/browser/cli/index.mjs.map +7 -0
- package/dist/lib/browser/create-chat-LBZHGVSN.mjs +82 -0
- package/dist/lib/browser/create-chat-LBZHGVSN.mjs.map +7 -0
- package/dist/lib/browser/ensure-companion-chat-ZEZA34MZ.mjs +65 -0
- package/dist/lib/browser/ensure-companion-chat-ZEZA34MZ.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +3308 -264
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/on-create-space-54RNX5JI.mjs +22 -0
- package/dist/lib/browser/on-create-space-54RNX5JI.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/resolve-navigation-targets-NZOD66NY.mjs +22 -0
- package/dist/lib/browser/resolve-navigation-targets-NZOD66NY.mjs.map +7 -0
- package/dist/lib/browser/run-prompt-in-new-chat-THLK5YQC.mjs +136 -0
- package/dist/lib/browser/run-prompt-in-new-chat-THLK5YQC.mjs.map +7 -0
- package/dist/lib/browser/set-current-chat-LRS3VFSH.mjs +54 -0
- package/dist/lib/browser/set-current-chat-LRS3VFSH.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -4
- package/dist/lib/browser/update-chat-name-3Y36KFAS.mjs +71 -0
- package/dist/lib/browser/update-chat-name-3Y36KFAS.mjs.map +7 -0
- package/dist/lib/node-esm/AssistantSettings-UVUTKO7E.mjs +98 -0
- package/dist/lib/node-esm/AssistantSettings-UVUTKO7E.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +3 -7
- package/dist/lib/node-esm/chunk-NZIKC7AN.mjs +32 -0
- package/dist/lib/node-esm/chunk-NZIKC7AN.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PXAJSTGZ.mjs +177 -0
- package/dist/lib/node-esm/chunk-PXAJSTGZ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-W3JZ2F4T.mjs +155 -0
- package/dist/lib/node-esm/chunk-W3JZ2F4T.mjs.map +7 -0
- package/dist/lib/node-esm/cli/index.mjs +75 -0
- package/dist/lib/node-esm/cli/index.mjs.map +7 -0
- package/dist/lib/node-esm/create-chat-3BEG4R6J.mjs +83 -0
- package/dist/lib/node-esm/create-chat-3BEG4R6J.mjs.map +7 -0
- package/dist/lib/node-esm/ensure-companion-chat-6K2WEWFP.mjs +66 -0
- package/dist/lib/node-esm/ensure-companion-chat-6K2WEWFP.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +3308 -264
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/on-create-space-YRPZ6HZY.mjs +23 -0
- package/dist/lib/node-esm/on-create-space-YRPZ6HZY.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/resolve-navigation-targets-3PPK7XLH.mjs +23 -0
- package/dist/lib/node-esm/resolve-navigation-targets-3PPK7XLH.mjs.map +7 -0
- package/dist/lib/node-esm/run-prompt-in-new-chat-OUYKCMQ7.mjs +137 -0
- package/dist/lib/node-esm/run-prompt-in-new-chat-OUYKCMQ7.mjs.map +7 -0
- package/dist/lib/node-esm/set-current-chat-SMXZJD3F.mjs +55 -0
- package/dist/lib/node-esm/set-current-chat-SMXZJD3F.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -4
- package/dist/lib/node-esm/update-chat-name-HM2P4NSI.mjs +72 -0
- package/dist/lib/node-esm/update-chat-name-HM2P4NSI.mjs.map +7 -0
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/assistant/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/assistant/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/assistant/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/index.d.ts +2 -0
- package/dist/types/src/blueprints/assistant/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +1 -6
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-service.d.ts +6 -0
- package/dist/types/src/capabilities/ai-service.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts +5 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/companion-chat-provisioner.d.ts +9 -0
- package/dist/types/src/capabilities/companion-chat-provisioner.d.ts.map +1 -0
- package/dist/types/src/capabilities/{edge-model-resolver/edge-model-resolver.d.ts → edge-model-resolver.d.ts} +1 -1
- package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +29 -11
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/local-model-resolver.d.ts +16 -0
- package/dist/types/src/capabilities/local-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/migrations.d.ts +5 -0
- package/dist/types/src/capabilities/migrations.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +6 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state.d.ts +21 -0
- package/dist/types/src/capabilities/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit.d.ts +6 -0
- package/dist/types/src/capabilities/toolkit.d.ts.map +1 -0
- package/dist/types/src/cli/index.d.ts +2 -0
- package/dist/types/src/cli/index.d.ts.map +1 -0
- package/dist/types/src/cli/plugin.d.ts +10 -0
- package/dist/types/src/cli/plugin.d.ts.map +1 -0
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +4 -6
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
- package/dist/types/src/components/AssistantSettings/AssistantSettings.stories.d.ts +15 -0
- package/dist/types/src/components/AssistantSettings/AssistantSettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/AssistantSettings/index.d.ts +1 -1
- package/dist/types/src/components/AssistantSettings/index.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +15 -14
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +6 -3
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts +2 -1
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +2 -0
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts +19 -0
- package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Anchor.stories.d.ts +14 -0
- package/dist/types/src/components/ChatThread/Anchor.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +2 -2
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +6 -426
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts +42 -0
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/sync.d.ts +43 -16
- package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/tool-widget-state.d.ts +18 -0
- package/dist/types/src/components/ChatThread/tool-widget-state.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/tool-widget-state.test.d.ts +2 -0
- package/dist/types/src/components/ChatThread/tool-widget-state.test.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/FallbackWidget.d.ts +8 -0
- package/dist/types/src/components/ChatThread/widgets/FallbackWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/PromptWidget.d.ts +15 -0
- package/dist/types/src/components/ChatThread/widgets/PromptWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.d.ts +25 -0
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.stories.d.ts +18 -0
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/ReferenceWidget.d.ts +9 -0
- package/dist/types/src/components/ChatThread/widgets/ReferenceWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/SelectWidget.d.ts +14 -0
- package/dist/types/src/components/ChatThread/widgets/SelectWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/StatsWidget.d.ts +12 -0
- package/dist/types/src/components/ChatThread/widgets/StatsWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/StatusWidget.d.ts +25 -0
- package/dist/types/src/components/ChatThread/widgets/StatusWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/SuggestionWidget.d.ts +11 -0
- package/dist/types/src/components/ChatThread/widgets/SuggestionWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/SummaryWidget.d.ts +5 -0
- package/dist/types/src/components/ChatThread/widgets/SummaryWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.d.ts +9 -0
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.stories.d.ts +15 -0
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.stories.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/index.d.ts +11 -0
- package/dist/types/src/components/ChatThread/widgets/index.d.ts.map +1 -0
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts +10 -0
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts.map +1 -0
- package/dist/types/src/components/ProcessTree/ProcessTree.stories.d.ts +8 -0
- package/dist/types/src/components/ProcessTree/ProcessTree.stories.d.ts.map +1 -0
- package/dist/types/src/components/ProcessTree/index.d.ts +2 -0
- package/dist/types/src/components/ProcessTree/index.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +5 -4
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +1 -419
- 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 +1 -419
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +0 -9
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +10 -8
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +1 -419
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +3 -11
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/AgentArticle/AgentArticle.d.ts +6 -0
- package/dist/types/src/containers/AgentArticle/AgentArticle.d.ts.map +1 -0
- package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts +21 -0
- package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/AgentArticle/index.d.ts +2 -0
- package/dist/types/src/containers/AgentArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/AgentProperties/AgentProperties.d.ts +6 -0
- package/dist/types/src/containers/AgentProperties/AgentProperties.d.ts.map +1 -0
- package/dist/types/src/containers/AgentProperties/AgentProperties.stories.d.ts +16 -0
- package/dist/types/src/containers/AgentProperties/AgentProperties.stories.d.ts.map +1 -0
- package/dist/types/src/containers/AgentProperties/index.d.ts +2 -0
- package/dist/types/src/containers/AgentProperties/index.d.ts.map +1 -0
- package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts +6 -0
- package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts.map +1 -0
- package/dist/types/src/containers/BlueprintArticle/index.d.ts +2 -0
- package/dist/types/src/containers/BlueprintArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts +18 -0
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts.map +1 -0
- package/dist/types/src/containers/ChatCompanion/index.d.ts +2 -0
- package/dist/types/src/containers/ChatCompanion/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +12 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts +2 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ChatDialog}/ChatDialog.d.ts +0 -1
- package/dist/types/src/containers/ChatDialog/ChatDialog.d.ts.map +1 -0
- package/dist/types/src/containers/ChatDialog/index.d.ts +2 -0
- package/dist/types/src/containers/ChatDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts +6 -0
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PromptArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PromptArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/PromptList/PromptList.d.ts +6 -0
- package/dist/types/src/containers/PromptList/PromptList.d.ts.map +1 -0
- package/dist/types/src/containers/PromptList/PromptList.stories.d.ts +21 -0
- package/dist/types/src/containers/PromptList/PromptList.stories.d.ts.map +1 -0
- package/dist/types/src/containers/PromptList/index.d.ts +2 -0
- package/dist/types/src/containers/PromptList/index.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts +7 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/TracePanel.stories.d.ts +16 -0
- package/dist/types/src/containers/TracePanel/TracePanel.stories.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.d.ts +19 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.test.d.ts +2 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.test.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/execution-graph.d.ts +17 -0
- package/dist/types/src/containers/TracePanel/execution-graph.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/index.d.ts +4 -0
- package/dist/types/src/containers/TracePanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts +5 -0
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerStatus/index.d.ts +2 -0
- package/dist/types/src/containers/TriggerStatus/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +12 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +2 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -0
- package/dist/types/src/extensions/prompt-extension.d.ts +10 -0
- package/dist/types/src/extensions/prompt-extension.d.ts.map +1 -0
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +5 -5
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +3 -6
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextBinder.d.ts +3 -2
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -1
- package/dist/types/src/hooks/useFilteredTypes.d.ts +1 -1
- package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -1
- package/dist/types/src/hooks/usePresets.d.ts +1 -1
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -1
- package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create-chat.d.ts +5 -0
- package/dist/types/src/operations/create-chat.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +135 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/ensure-companion-chat.d.ts +5 -0
- package/dist/types/src/operations/ensure-companion-chat.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/on-create-space.d.ts +5 -0
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
- package/dist/types/src/operations/prompt.test.d.ts +2 -0
- package/dist/types/src/operations/prompt.test.d.ts.map +1 -0
- package/dist/types/src/operations/resolve-navigation-targets.d.ts +15 -0
- package/dist/types/src/operations/resolve-navigation-targets.d.ts.map +1 -0
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts +5 -0
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts.map +1 -0
- package/dist/types/src/operations/set-current-chat.d.ts +5 -0
- package/dist/types/src/operations/set-current-chat.d.ts.map +1 -0
- package/dist/types/src/operations/update-chat-name.d.ts +5 -0
- package/dist/types/src/operations/update-chat-name.d.ts.map +1 -0
- package/dist/types/src/processor/index.d.ts +0 -1
- package/dist/types/src/processor/index.d.ts.map +1 -1
- package/dist/types/src/processor/presets.d.ts +1 -1
- package/dist/types/src/processor/presets.d.ts.map +1 -1
- package/dist/types/src/processor/processor.d.ts +30 -29
- package/dist/types/src/processor/processor.d.ts.map +1 -1
- package/dist/types/src/queue-logger.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.test.d.ts +2 -0
- package/dist/types/src/testing/test-generator.test.d.ts.map +1 -0
- package/dist/types/src/testing/test-services.d.ts +1 -1
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/testing/trace-timeline.test.d.ts +2 -0
- package/dist/types/src/testing/trace-timeline.test.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +2 -419
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +14 -14
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +11 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +12 -13
- package/dist/types/src/types/capabilities.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +0 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +112 -95
- package/src/AssistantPlugin.tsx +115 -46
- package/src/blueprints/assistant/blueprint.test.ts +46 -0
- package/src/blueprints/assistant/blueprint.ts +31 -0
- package/src/blueprints/assistant/index.ts +5 -0
- package/src/blueprints/index.ts +1 -8
- package/src/capabilities/app-graph-builder.ts +162 -0
- package/src/capabilities/blueprint-definition.ts +58 -0
- package/src/capabilities/companion-chat-provisioner.ts +164 -0
- package/src/capabilities/index.ts +22 -11
- package/src/capabilities/{local-model-resolver/local-model-resolver.ts → local-model-resolver.ts} +14 -4
- package/src/capabilities/markdown.ts +40 -0
- package/src/capabilities/migrations.ts +35 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +161 -0
- package/src/capabilities/{settings/settings.ts → settings.ts} +2 -2
- package/src/capabilities/{state/state.ts → state.ts} +11 -3
- package/src/capabilities/toolkit.ts +13 -0
- package/src/{components/Typewriter → cli}/index.ts +1 -1
- package/src/cli/plugin.ts +84 -0
- package/src/components/AssistantSettings/AssistantSettings.stories.tsx +34 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +104 -92
- package/src/components/AssistantSettings/index.ts +2 -2
- package/src/components/Chat/Chat.tsx +80 -64
- package/src/components/ChatProgress/ChatProgress.tsx +9 -6
- package/src/components/ChatPrompt/ChatActions.tsx +24 -12
- package/src/components/ChatPrompt/ChatOptions.stories.tsx +122 -0
- package/src/components/ChatPrompt/ChatOptions.tsx +205 -39
- package/src/components/ChatPrompt/ChatReferences.tsx +18 -8
- package/src/components/ChatThread/Anchor.stories.tsx +95 -0
- package/src/components/ChatThread/ChatThread.stories.tsx +61 -68
- package/src/components/ChatThread/ChatThread.tsx +28 -24
- package/src/components/ChatThread/MarkdownStream.stories.tsx +280 -0
- package/src/components/ChatThread/registry.tsx +117 -44
- package/src/components/ChatThread/sync.test.ts +111 -17
- package/src/components/ChatThread/sync.ts +92 -96
- package/src/components/ChatThread/testing/reasoning.md +25 -0
- package/src/components/ChatThread/testing/thinking.md +21 -0
- package/src/components/ChatThread/testing/thread-1.md +30 -0
- package/src/components/ChatThread/testing/{thread.md → thread-2.md} +19 -0
- package/src/components/ChatThread/testing/thread-widgets.md +79 -0
- package/src/components/ChatThread/tool-widget-state.test.ts +34 -0
- package/src/components/ChatThread/tool-widget-state.ts +48 -0
- package/src/components/ChatThread/widgets/FallbackWidget.tsx +26 -0
- package/src/components/ChatThread/widgets/PromptWidget.ts +30 -0
- package/src/components/ChatThread/widgets/ReasoningWidget.stories.tsx +68 -0
- package/src/components/ChatThread/widgets/ReasoningWidget.ts +133 -0
- package/src/components/ChatThread/widgets/ReferenceWidget.ts +31 -0
- package/src/components/ChatThread/widgets/SelectWidget.ts +37 -0
- package/src/components/ChatThread/widgets/StatsWidget.ts +29 -0
- package/src/components/ChatThread/widgets/StatusWidget.ts +131 -0
- package/src/components/ChatThread/widgets/SuggestionWidget.ts +41 -0
- package/src/components/ChatThread/widgets/SummaryWidget.tsx +28 -0
- package/src/components/ChatThread/widgets/ToolWidget.stories.tsx +54 -0
- package/src/components/ChatThread/widgets/ToolWidget.tsx +156 -0
- package/src/components/ChatThread/widgets/index.ts +14 -0
- package/src/components/ProcessTree/ProcessTree.stories.tsx +109 -0
- package/src/components/ProcessTree/ProcessTree.tsx +86 -0
- package/src/components/ProcessTree/index.ts +5 -0
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +3 -8
- package/src/components/TemplateEditor/TemplateEditor.tsx +50 -42
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +6 -5
- package/src/components/TemplateEditor/TemplateForm.tsx +9 -10
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +5 -5
- package/src/components/ToolBlock/ToolBlock.tsx +22 -21
- package/src/components/Toolbox/Toolbox.stories.tsx +4 -6
- package/src/components/Toolbox/Toolbox.tsx +65 -58
- package/src/components/index.ts +3 -16
- package/src/containers/AgentArticle/AgentArticle.stories.tsx +120 -0
- package/src/containers/AgentArticle/AgentArticle.tsx +200 -0
- package/src/containers/AgentArticle/index.ts +5 -0
- package/src/containers/AgentProperties/AgentProperties.stories.tsx +100 -0
- package/src/containers/AgentProperties/AgentProperties.tsx +127 -0
- package/src/containers/AgentProperties/index.ts +5 -0
- package/src/containers/BlueprintArticle/BlueprintArticle.tsx +29 -0
- package/src/containers/BlueprintArticle/index.ts +5 -0
- package/src/containers/ChatCompanion/ChatCompanion.tsx +142 -0
- package/src/containers/ChatCompanion/index.ts +5 -0
- package/src/containers/ChatContainer/ChatContainer.tsx +95 -0
- package/src/containers/ChatContainer/index.ts +5 -0
- package/src/{components → containers/ChatDialog}/ChatDialog.tsx +7 -10
- package/src/containers/ChatDialog/index.ts +5 -0
- package/src/containers/PromptArticle/PromptArticle.tsx +59 -0
- package/src/containers/PromptArticle/index.ts +5 -0
- package/src/containers/PromptList/PromptList.stories.tsx +129 -0
- package/src/containers/PromptList/PromptList.tsx +49 -0
- package/src/containers/PromptList/index.ts +5 -0
- package/src/containers/TracePanel/TracePanel.stories.tsx +272 -0
- package/src/containers/TracePanel/TracePanel.tsx +113 -0
- package/src/containers/TracePanel/dxn-extractor.test.ts +153 -0
- package/src/containers/TracePanel/dxn-extractor.ts +178 -0
- package/src/containers/TracePanel/execution-graph.ts +452 -0
- package/src/containers/TracePanel/index.ts +9 -0
- package/src/containers/TriggerStatus/TriggerStatus.tsx +129 -0
- package/src/containers/TriggerStatus/index.ts +5 -0
- package/src/containers/index.ts +16 -0
- package/src/extensions/index.ts +5 -0
- package/src/extensions/prompt-extension.ts +111 -0
- package/src/hooks/useBlueprintRegistry.ts +6 -2
- package/src/hooks/useChatProcessor.ts +35 -23
- package/src/hooks/useChatServices.ts +6 -27
- package/src/hooks/useChatToolbarActions.ts +9 -9
- package/src/hooks/useContextBinder.ts +17 -6
- package/src/hooks/useContextObjects.ts +8 -4
- package/src/hooks/useFilteredTypes.ts +3 -3
- package/src/hooks/usePresets.ts +2 -1
- package/src/hooks/useReferencesProvider.ts +1 -5
- package/src/index.ts +1 -1
- package/src/meta.ts +6 -3
- package/src/operations/create-chat.ts +80 -0
- package/src/operations/definitions.ts +127 -0
- package/src/operations/ensure-companion-chat.ts +61 -0
- package/src/operations/index.ts +17 -0
- package/src/operations/on-create-space.ts +24 -0
- package/src/operations/prompt.test.ts +79 -0
- package/src/operations/resolve-navigation-targets.ts +26 -0
- package/src/operations/run-prompt-in-new-chat.ts +113 -0
- package/src/operations/set-current-chat.ts +50 -0
- package/src/operations/update-chat-name.ts +61 -0
- package/src/processor/index.ts +0 -1
- package/src/processor/presets.ts +11 -3
- package/src/processor/processor.test.ts +18 -50
- package/src/processor/processor.ts +178 -158
- package/src/queue-logger.ts +19 -8
- package/src/testing/data/trace-timeline.dx.json +2120 -0
- package/src/testing/test-generator.test.ts +81 -0
- package/src/testing/test-generator.ts +79 -42
- package/src/testing/test-sequence.ts +3 -3
- package/src/testing/test-services.ts +2 -2
- package/src/testing/trace-timeline.conversations.json +1 -0
- package/src/testing/trace-timeline.test.ts +246 -0
- package/src/translations.ts +153 -102
- package/src/types/Assistant.ts +4 -18
- package/src/types/Settings.ts +21 -0
- package/src/types/capabilities.ts +11 -3
- package/src/types/events.ts +2 -2
- package/src/types/index.ts +0 -1
- package/src/types/service.ts +5 -5
- package/dist/lib/browser/BlueprintArticle-6SP2ZWJ2.mjs +0 -30
- package/dist/lib/browser/BlueprintArticle-6SP2ZWJ2.mjs.map +0 -7
- package/dist/lib/browser/ChatCompanion-CAKFZAWN.mjs +0 -200
- package/dist/lib/browser/ChatCompanion-CAKFZAWN.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-QB37VONJ.mjs +0 -73
- package/dist/lib/browser/ChatContainer-QB37VONJ.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-ASVBLOOS.mjs +0 -85
- package/dist/lib/browser/ChatDialog-ASVBLOOS.mjs.map +0 -7
- package/dist/lib/browser/InitiativeContainer-V522FCYH.mjs +0 -266
- package/dist/lib/browser/InitiativeContainer-V522FCYH.mjs.map +0 -7
- package/dist/lib/browser/PromptArticle-PK3CBRUB.mjs +0 -52
- package/dist/lib/browser/PromptArticle-PK3CBRUB.mjs.map +0 -7
- package/dist/lib/browser/ai-service-CY2BYPH6.mjs +0 -22
- package/dist/lib/browser/ai-service-CY2BYPH6.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-MUZGUQSC.mjs +0 -234
- package/dist/lib/browser/app-graph-builder-MUZGUQSC.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-YAGWYVCL.mjs +0 -14
- package/dist/lib/browser/blueprint-definition-YAGWYVCL.mjs.map +0 -7
- package/dist/lib/browser/chunk-3ETBCBMH.mjs +0 -47
- package/dist/lib/browser/chunk-3ETBCBMH.mjs.map +0 -7
- package/dist/lib/browser/chunk-6BVCG5SJ.mjs +0 -230
- package/dist/lib/browser/chunk-6BVCG5SJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-DKQMSMBN.mjs +0 -326
- package/dist/lib/browser/chunk-DKQMSMBN.mjs.map +0 -7
- package/dist/lib/browser/chunk-EXVT7D4B.mjs +0 -23
- package/dist/lib/browser/chunk-EXVT7D4B.mjs.map +0 -7
- package/dist/lib/browser/chunk-IJYAKPEU.mjs +0 -286
- package/dist/lib/browser/chunk-IJYAKPEU.mjs.map +0 -7
- package/dist/lib/browser/chunk-JA7PUZC7.mjs +0 -1974
- package/dist/lib/browser/chunk-JA7PUZC7.mjs.map +0 -7
- package/dist/lib/browser/chunk-POPBT2AQ.mjs +0 -198
- package/dist/lib/browser/chunk-POPBT2AQ.mjs.map +0 -7
- package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs +0 -21
- package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs.map +0 -7
- package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs +0 -20
- package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-2673CFJS.mjs +0 -133
- package/dist/lib/browser/operation-resolver-2673CFJS.mjs.map +0 -7
- package/dist/lib/browser/react-surface-T3FN4GVP.mjs +0 -125
- package/dist/lib/browser/react-surface-T3FN4GVP.mjs.map +0 -7
- package/dist/lib/browser/repair-IRXDYF4R.mjs +0 -51
- package/dist/lib/browser/repair-IRXDYF4R.mjs.map +0 -7
- package/dist/lib/browser/settings-XF6GKHCG.mjs +0 -33
- package/dist/lib/browser/settings-XF6GKHCG.mjs.map +0 -7
- package/dist/lib/browser/state-OYDPWLKA.mjs +0 -26
- package/dist/lib/browser/state-OYDPWLKA.mjs.map +0 -7
- package/dist/lib/browser/toolkit-IDXQCSTX.mjs +0 -19
- package/dist/lib/browser/toolkit-IDXQCSTX.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs +0 -31
- package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs.map +0 -7
- package/dist/lib/node-esm/ChatCompanion-W4PGOCGR.mjs +0 -201
- package/dist/lib/node-esm/ChatCompanion-W4PGOCGR.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-ECFQVH6O.mjs +0 -74
- package/dist/lib/node-esm/ChatContainer-ECFQVH6O.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-AFLPYSIU.mjs +0 -86
- package/dist/lib/node-esm/ChatDialog-AFLPYSIU.mjs.map +0 -7
- package/dist/lib/node-esm/InitiativeContainer-U4LGO3BW.mjs +0 -267
- package/dist/lib/node-esm/InitiativeContainer-U4LGO3BW.mjs.map +0 -7
- package/dist/lib/node-esm/PromptArticle-BHPABYLT.mjs +0 -53
- package/dist/lib/node-esm/PromptArticle-BHPABYLT.mjs.map +0 -7
- package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs +0 -23
- package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-4QN5M6PD.mjs +0 -235
- package/dist/lib/node-esm/app-graph-builder-4QN5M6PD.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-H3LFAEK2.mjs +0 -15
- package/dist/lib/node-esm/blueprint-definition-H3LFAEK2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2LEN26ZQ.mjs +0 -48
- package/dist/lib/node-esm/chunk-2LEN26ZQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-3XC7LQSO.mjs +0 -1975
- package/dist/lib/node-esm/chunk-3XC7LQSO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-75PHXBN3.mjs +0 -327
- package/dist/lib/node-esm/chunk-75PHXBN3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-F6LA7XNS.mjs +0 -199
- package/dist/lib/node-esm/chunk-F6LA7XNS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-LB72WG6R.mjs +0 -231
- package/dist/lib/node-esm/chunk-LB72WG6R.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MJD5XWQV.mjs +0 -288
- package/dist/lib/node-esm/chunk-MJD5XWQV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-POWB2BPC.mjs +0 -25
- package/dist/lib/node-esm/chunk-POWB2BPC.mjs.map +0 -7
- package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs +0 -22
- package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs.map +0 -7
- package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs +0 -21
- package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-2ZD2DXOU.mjs +0 -134
- package/dist/lib/node-esm/operation-resolver-2ZD2DXOU.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-T4VMCCKZ.mjs +0 -126
- package/dist/lib/node-esm/react-surface-T4VMCCKZ.mjs.map +0 -7
- package/dist/lib/node-esm/repair-DMI55PON.mjs +0 -52
- package/dist/lib/node-esm/repair-DMI55PON.mjs.map +0 -7
- package/dist/lib/node-esm/settings-NGGZA7S7.mjs +0 -34
- package/dist/lib/node-esm/settings-NGGZA7S7.mjs.map +0 -7
- package/dist/lib/node-esm/state-VSCPGN7R.mjs +0 -27
- package/dist/lib/node-esm/state-VSCPGN7R.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-JPRJRDDB.mjs +0 -20
- package/dist/lib/node-esm/toolkit-JPRJRDDB.mjs.map +0 -7
- package/dist/types/src/blueprints/assistant-blueprint.d.ts +0 -11
- package/dist/types/src/blueprints/assistant-blueprint.d.ts.map +0 -1
- package/dist/types/src/capabilities/ai-service/ai-service.d.ts +0 -6
- package/dist/types/src/capabilities/ai-service/ai-service.d.ts.map +0 -1
- package/dist/types/src/capabilities/ai-service/index.d.ts +0 -3
- package/dist/types/src/capabilities/ai-service/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +0 -6
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +0 -26
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +0 -4
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/edge-model-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/edge-model-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/local-model-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/local-model-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts +0 -13
- package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/index.d.ts +0 -3
- package/dist/types/src/capabilities/repair/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/repair/repair.d.ts +0 -6
- package/dist/types/src/capabilities/repair/repair.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/index.d.ts +0 -15
- package/dist/types/src/capabilities/settings/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +0 -18
- package/dist/types/src/capabilities/settings/settings.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/index.d.ts +0 -11
- package/dist/types/src/capabilities/state/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/state/state.d.ts +0 -13
- package/dist/types/src/capabilities/state/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/toolkit/index.d.ts +0 -3
- package/dist/types/src/capabilities/toolkit/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts +0 -6
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +0 -1
- package/dist/types/src/components/BlueprintArticle.d.ts +0 -7
- package/dist/types/src/components/BlueprintArticle.d.ts.map +0 -1
- package/dist/types/src/components/ChatCompanion.d.ts +0 -13
- package/dist/types/src/components/ChatCompanion.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -19
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChatDialog.d.ts.map +0 -1
- package/dist/types/src/components/InitiativeContainer.d.ts +0 -9
- package/dist/types/src/components/InitiativeContainer.d.ts.map +0 -1
- package/dist/types/src/components/PromptArticle.d.ts +0 -7
- package/dist/types/src/components/PromptArticle.d.ts.map +0 -1
- package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts +0 -4
- package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts.map +0 -1
- package/dist/types/src/components/TriggerStatus/index.d.ts +0 -2
- package/dist/types/src/components/TriggerStatus/index.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts +0 -12
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/Typewriter.d.ts +0 -11
- package/dist/types/src/components/Typewriter/Typewriter.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts +0 -7
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts +0 -5
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts.map +0 -1
- package/dist/types/src/components/Typewriter/index.d.ts +0 -2
- package/dist/types/src/components/Typewriter/index.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -4
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/functions/object-list.d.ts +0 -10
- package/dist/types/src/functions/object-list.d.ts.map +0 -1
- package/dist/types/src/functions/object-load.d.ts +0 -8
- package/dist/types/src/functions/object-load.d.ts.map +0 -1
- package/dist/types/src/functions/object-search.d.ts +0 -10
- package/dist/types/src/functions/object-search.d.ts.map +0 -1
- package/dist/types/src/processor/update-name.d.ts +0 -10
- package/dist/types/src/processor/update-name.d.ts.map +0 -1
- package/dist/types/src/types/AssistantAction.d.ts +0 -97
- package/dist/types/src/types/AssistantAction.d.ts.map +0 -1
- package/src/blueprints/assistant-blueprint.ts +0 -57
- package/src/capabilities/ai-service/index.ts +0 -7
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -200
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +0 -74
- package/src/capabilities/blueprint-definition/index.ts +0 -8
- package/src/capabilities/edge-model-resolver/index.ts +0 -7
- package/src/capabilities/local-model-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -112
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -111
- package/src/capabilities/repair/index.ts +0 -7
- package/src/capabilities/repair/repair.ts +0 -62
- package/src/capabilities/settings/index.ts +0 -7
- package/src/capabilities/state/index.ts +0 -7
- package/src/capabilities/toolkit/index.ts +0 -7
- package/src/capabilities/toolkit/toolkit.ts +0 -27
- package/src/components/BlueprintArticle.tsx +0 -28
- package/src/components/ChatCompanion.tsx +0 -226
- package/src/components/ChatContainer.tsx +0 -68
- package/src/components/InitiativeContainer.tsx +0 -340
- package/src/components/PromptArticle.tsx +0 -49
- package/src/components/TriggerStatus/TriggerStatus.tsx +0 -142
- package/src/components/TriggerStatus/index.ts +0 -5
- package/src/components/Typewriter/AssistantToolbar.tsx +0 -161
- package/src/components/Typewriter/Typewriter.stories.tsx +0 -83
- package/src/components/Typewriter/Typewriter.tsx +0 -54
- package/src/components/Typewriter/assistant-extension.tsx +0 -144
- package/src/functions/index.ts +0 -7
- package/src/functions/object-list.ts +0 -49
- package/src/functions/object-load.ts +0 -44
- package/src/functions/object-search.ts +0 -46
- package/src/processor/update-name.ts +0 -58
- package/src/types/AssistantAction.ts +0 -76
- /package/src/capabilities/{ai-service/ai-service.ts → ai-service.ts} +0 -0
- /package/src/capabilities/{edge-model-resolver/edge-model-resolver.ts → edge-model-resolver.ts} +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.422d1c7879",
|
|
4
4
|
"description": "Assistant plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -12,6 +12,17 @@
|
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#blueprints": "./src/blueprints/index.ts",
|
|
17
|
+
"#capabilities": "./src/capabilities/index.ts",
|
|
18
|
+
"#components": "./src/components/index.ts",
|
|
19
|
+
"#containers": "./src/containers/index.ts",
|
|
20
|
+
"#hooks": "./src/hooks/index.ts",
|
|
21
|
+
"#meta": "./src/meta.ts",
|
|
22
|
+
"#operations": "./src/operations/index.ts",
|
|
23
|
+
"#testing": "./src/testing/index.ts",
|
|
24
|
+
"#types": "./src/types/index.ts"
|
|
25
|
+
},
|
|
15
26
|
"exports": {
|
|
16
27
|
".": {
|
|
17
28
|
"source": "./src/index.ts",
|
|
@@ -19,6 +30,11 @@
|
|
|
19
30
|
"browser": "./dist/lib/browser/index.mjs",
|
|
20
31
|
"node": "./dist/lib/node-esm/index.mjs"
|
|
21
32
|
},
|
|
33
|
+
"./cli": {
|
|
34
|
+
"source": "./src/cli/index.ts",
|
|
35
|
+
"types": "./dist/types/src/cli/index.d.ts",
|
|
36
|
+
"node": "./dist/lib/node-esm/cli/index.mjs"
|
|
37
|
+
},
|
|
22
38
|
"./blueprints": {
|
|
23
39
|
"source": "./src/blueprints/index.ts",
|
|
24
40
|
"types": "./dist/types/src/blueprints/index.d.ts",
|
|
@@ -26,6 +42,12 @@
|
|
|
26
42
|
"node": "./dist/lib/node-esm/blueprints/index.mjs",
|
|
27
43
|
"default": "./src/blueprints/index.ts"
|
|
28
44
|
},
|
|
45
|
+
"./operations": {
|
|
46
|
+
"source": "./src/operations/index.ts",
|
|
47
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
48
|
+
"browser": "./dist/lib/browser/operations/index.mjs",
|
|
49
|
+
"node": "./dist/lib/node-esm/operations/index.mjs"
|
|
50
|
+
},
|
|
29
51
|
"./types": {
|
|
30
52
|
"source": "./src/types/index.ts",
|
|
31
53
|
"types": "./dist/types/src/types/index.d.ts",
|
|
@@ -34,16 +56,6 @@
|
|
|
34
56
|
}
|
|
35
57
|
},
|
|
36
58
|
"types": "dist/types/src/index.d.ts",
|
|
37
|
-
"typesVersions": {
|
|
38
|
-
"*": {
|
|
39
|
-
"blueprints": [
|
|
40
|
-
"dist/types/src/blueprints/index.d.ts"
|
|
41
|
-
],
|
|
42
|
-
"types": [
|
|
43
|
-
"dist/types/src/types/index.d.ts"
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
59
|
"files": [
|
|
48
60
|
"assets",
|
|
49
61
|
"dist",
|
|
@@ -65,112 +77,117 @@
|
|
|
65
77
|
"@effect/ai-openai": "0.37.2",
|
|
66
78
|
"@effect/experimental": "0.58.0",
|
|
67
79
|
"@effect/platform-browser": "0.74.0",
|
|
80
|
+
"@radix-ui/react-compose-refs": "1.1.1",
|
|
68
81
|
"@radix-ui/react-context": "1.1.1",
|
|
69
|
-
"effect": "3.
|
|
82
|
+
"effect": "3.20.0",
|
|
70
83
|
"exa-js": "^1.5.12",
|
|
71
84
|
"json5": "^2.2.3",
|
|
72
85
|
"jsonpointer": "^5.0.1",
|
|
73
86
|
"lodash.defaultsdeep": "^4.6.1",
|
|
74
87
|
"unified": "^11.0.0",
|
|
75
88
|
"use-deep-compare-effect": "^1.8.1",
|
|
76
|
-
"@dxos/ai": "0.8.4-main.
|
|
77
|
-
"@dxos/app-
|
|
78
|
-
"@dxos/app-
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/assistant
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/config": "0.8.4-main.
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/debug": "0.8.4-main.
|
|
90
|
-
"@dxos/echo
|
|
91
|
-
"@dxos/echo-
|
|
92
|
-
"@dxos/echo": "0.8.4-main.
|
|
93
|
-
"@dxos/echo-
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/functions
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/plugin-
|
|
107
|
-
"@dxos/plugin-
|
|
108
|
-
"@dxos/plugin-
|
|
109
|
-
"@dxos/plugin-
|
|
110
|
-
"@dxos/plugin-
|
|
111
|
-
"@dxos/plugin-
|
|
112
|
-
"@dxos/plugin-
|
|
113
|
-
"@dxos/plugin-
|
|
114
|
-
"@dxos/
|
|
115
|
-
"@dxos/
|
|
116
|
-
"@dxos/
|
|
117
|
-
"@dxos/react-
|
|
118
|
-
"@dxos/react-ui-
|
|
119
|
-
"@dxos/react-ui-canvas-editor": "0.8.4-main.
|
|
120
|
-
"@dxos/react-ui-
|
|
121
|
-
"@dxos/react-ui-components": "0.8.4-main.
|
|
122
|
-
"@dxos/react-ui-
|
|
123
|
-
"@dxos/react-ui-editor": "0.8.4-main.
|
|
124
|
-
"@dxos/react-ui-
|
|
125
|
-
"@dxos/react-ui-
|
|
126
|
-
"@dxos/
|
|
127
|
-
"@dxos/react-ui-markdown": "0.8.4-main.
|
|
128
|
-
"@dxos/react-ui-
|
|
129
|
-
"@dxos/react-ui-
|
|
130
|
-
"@dxos/react-ui-
|
|
131
|
-
"@dxos/react-ui-
|
|
132
|
-
"@dxos/react-ui-
|
|
133
|
-
"@dxos/react-ui-
|
|
134
|
-
"@dxos/react-ui-
|
|
135
|
-
"@dxos/
|
|
136
|
-
"@dxos/
|
|
137
|
-
"@dxos/
|
|
138
|
-
"@dxos/ui
|
|
139
|
-
"@dxos/
|
|
140
|
-
"@dxos/
|
|
89
|
+
"@dxos/ai": "0.8.4-main.422d1c7879",
|
|
90
|
+
"@dxos/app-graph": "0.8.4-main.422d1c7879",
|
|
91
|
+
"@dxos/app-framework": "0.8.4-main.422d1c7879",
|
|
92
|
+
"@dxos/app-toolkit": "0.8.4-main.422d1c7879",
|
|
93
|
+
"@dxos/assistant": "0.8.4-main.422d1c7879",
|
|
94
|
+
"@dxos/assistant-toolkit": "0.8.4-main.422d1c7879",
|
|
95
|
+
"@dxos/async": "0.8.4-main.422d1c7879",
|
|
96
|
+
"@dxos/client": "0.8.4-main.422d1c7879",
|
|
97
|
+
"@dxos/conductor": "0.8.4-main.422d1c7879",
|
|
98
|
+
"@dxos/blueprints": "0.8.4-main.422d1c7879",
|
|
99
|
+
"@dxos/config": "0.8.4-main.422d1c7879",
|
|
100
|
+
"@dxos/compute": "0.8.4-main.422d1c7879",
|
|
101
|
+
"@dxos/context": "0.8.4-main.422d1c7879",
|
|
102
|
+
"@dxos/debug": "0.8.4-main.422d1c7879",
|
|
103
|
+
"@dxos/echo": "0.8.4-main.422d1c7879",
|
|
104
|
+
"@dxos/echo-protocol": "0.8.4-main.422d1c7879",
|
|
105
|
+
"@dxos/echo-db": "0.8.4-main.422d1c7879",
|
|
106
|
+
"@dxos/echo-atom": "0.8.4-main.422d1c7879",
|
|
107
|
+
"@dxos/edge-client": "0.8.4-main.422d1c7879",
|
|
108
|
+
"@dxos/echo-query": "0.8.4-main.422d1c7879",
|
|
109
|
+
"@dxos/effect": "0.8.4-main.422d1c7879",
|
|
110
|
+
"@dxos/functions-runtime": "0.8.4-main.422d1c7879",
|
|
111
|
+
"@dxos/devtools": "0.8.4-main.422d1c7879",
|
|
112
|
+
"@dxos/functions": "0.8.4-main.422d1c7879",
|
|
113
|
+
"@dxos/graph": "0.8.4-main.422d1c7879",
|
|
114
|
+
"@dxos/keys": "0.8.4-main.422d1c7879",
|
|
115
|
+
"@dxos/lit-ui": "0.8.4-main.422d1c7879",
|
|
116
|
+
"@dxos/invariant": "0.8.4-main.422d1c7879",
|
|
117
|
+
"@dxos/operation": "0.8.4-main.422d1c7879",
|
|
118
|
+
"@dxos/log": "0.8.4-main.422d1c7879",
|
|
119
|
+
"@dxos/plugin-automation": "0.8.4-main.422d1c7879",
|
|
120
|
+
"@dxos/plugin-attention": "0.8.4-main.422d1c7879",
|
|
121
|
+
"@dxos/plugin-client": "0.8.4-main.422d1c7879",
|
|
122
|
+
"@dxos/plugin-graph": "0.8.4-main.422d1c7879",
|
|
123
|
+
"@dxos/plugin-map": "0.8.4-main.422d1c7879",
|
|
124
|
+
"@dxos/plugin-deck": "0.8.4-main.422d1c7879",
|
|
125
|
+
"@dxos/plugin-markdown": "0.8.4-main.422d1c7879",
|
|
126
|
+
"@dxos/plugin-space": "0.8.4-main.422d1c7879",
|
|
127
|
+
"@dxos/protocols": "0.8.4-main.422d1c7879",
|
|
128
|
+
"@dxos/react-client": "0.8.4-main.422d1c7879",
|
|
129
|
+
"@dxos/plugin-table": "0.8.4-main.422d1c7879",
|
|
130
|
+
"@dxos/react-ui-attention": "0.8.4-main.422d1c7879",
|
|
131
|
+
"@dxos/react-ui-canvas-compute": "0.8.4-main.422d1c7879",
|
|
132
|
+
"@dxos/react-ui-canvas-editor": "0.8.4-main.422d1c7879",
|
|
133
|
+
"@dxos/react-ui-chat": "0.8.4-main.422d1c7879",
|
|
134
|
+
"@dxos/react-ui-components": "0.8.4-main.422d1c7879",
|
|
135
|
+
"@dxos/react-ui-form": "0.8.4-main.422d1c7879",
|
|
136
|
+
"@dxos/react-ui-editor": "0.8.4-main.422d1c7879",
|
|
137
|
+
"@dxos/react-ui-graph": "0.8.4-main.422d1c7879",
|
|
138
|
+
"@dxos/react-ui-list": "0.8.4-main.422d1c7879",
|
|
139
|
+
"@dxos/plugin-transcription": "0.8.4-main.422d1c7879",
|
|
140
|
+
"@dxos/react-ui-markdown": "0.8.4-main.422d1c7879",
|
|
141
|
+
"@dxos/react-ui-masonry": "0.8.4-main.422d1c7879",
|
|
142
|
+
"@dxos/react-ui-menu": "0.8.4-main.422d1c7879",
|
|
143
|
+
"@dxos/react-ui-search": "0.8.4-main.422d1c7879",
|
|
144
|
+
"@dxos/react-ui-sfx": "0.8.4-main.422d1c7879",
|
|
145
|
+
"@dxos/react-ui-stack": "0.8.4-main.422d1c7879",
|
|
146
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.422d1c7879",
|
|
147
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.422d1c7879",
|
|
148
|
+
"@dxos/react-ui-tabs": "0.8.4-main.422d1c7879",
|
|
149
|
+
"@dxos/schema": "0.8.4-main.422d1c7879",
|
|
150
|
+
"@dxos/types": "0.8.4-main.422d1c7879",
|
|
151
|
+
"@dxos/ui": "0.8.4-main.422d1c7879",
|
|
152
|
+
"@dxos/ui-editor": "0.8.4-main.422d1c7879",
|
|
153
|
+
"@dxos/util": "0.8.4-main.422d1c7879",
|
|
154
|
+
"@dxos/react-edge-client": "0.8.4-main.422d1c7879",
|
|
155
|
+
"@dxos/plugin-status-bar": "0.8.4-main.422d1c7879"
|
|
141
156
|
},
|
|
142
157
|
"devDependencies": {
|
|
143
158
|
"@effect/platform": "0.94.4",
|
|
144
159
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
145
160
|
"@types/react": "~19.2.7",
|
|
146
161
|
"@types/react-dom": "~19.2.3",
|
|
147
|
-
"effect": "3.
|
|
162
|
+
"effect": "3.20.0",
|
|
148
163
|
"openapi-types": "^12.1.3",
|
|
149
164
|
"react": "~19.2.3",
|
|
150
165
|
"react-dom": "~19.2.3",
|
|
151
|
-
"vite": "7.1.
|
|
152
|
-
"@dxos/assistant-toolkit": "0.8.4-main.
|
|
153
|
-
"@dxos/
|
|
154
|
-
"@dxos/plugin-chess": "0.8.4-main.
|
|
155
|
-
"@dxos/plugin-
|
|
156
|
-
"@dxos/
|
|
157
|
-
"@dxos/plugin-
|
|
158
|
-
"@dxos/plugin-
|
|
159
|
-
"@dxos/random": "0.8.4-main.
|
|
160
|
-
"@dxos/
|
|
161
|
-
"@dxos/react-ui
|
|
162
|
-
"@dxos/react-ui-
|
|
163
|
-
"@dxos/
|
|
164
|
-
"@dxos/
|
|
166
|
+
"vite": "^7.1.11",
|
|
167
|
+
"@dxos/assistant-toolkit": "0.8.4-main.422d1c7879",
|
|
168
|
+
"@dxos/echo-db": "0.8.4-main.422d1c7879",
|
|
169
|
+
"@dxos/plugin-chess": "0.8.4-main.422d1c7879",
|
|
170
|
+
"@dxos/plugin-client": "0.8.4-main.422d1c7879",
|
|
171
|
+
"@dxos/plugin-map": "0.8.4-main.422d1c7879",
|
|
172
|
+
"@dxos/plugin-preview": "0.8.4-main.422d1c7879",
|
|
173
|
+
"@dxos/plugin-table": "0.8.4-main.422d1c7879",
|
|
174
|
+
"@dxos/random": "0.8.4-main.422d1c7879",
|
|
175
|
+
"@dxos/plugin-testing": "0.8.4-main.422d1c7879",
|
|
176
|
+
"@dxos/react-ui": "0.8.4-main.422d1c7879",
|
|
177
|
+
"@dxos/react-ui-menu": "0.8.4-main.422d1c7879",
|
|
178
|
+
"@dxos/react-ui-table": "0.8.4-main.422d1c7879",
|
|
179
|
+
"@dxos/storybook-utils": "0.8.4-main.422d1c7879",
|
|
180
|
+
"@dxos/ui-theme": "0.8.4-main.422d1c7879",
|
|
181
|
+
"@dxos/devtools": "0.8.4-main.422d1c7879"
|
|
165
182
|
},
|
|
166
183
|
"peerDependencies": {
|
|
167
184
|
"@effect-atom/atom-react": "^0.5.0",
|
|
168
185
|
"@effect/platform": "0.94.4",
|
|
169
|
-
"effect": "3.
|
|
186
|
+
"effect": "3.20.0",
|
|
170
187
|
"react": "~19.2.3",
|
|
171
188
|
"react-dom": "~19.2.3",
|
|
172
|
-
"@dxos/ui
|
|
173
|
-
"@dxos/
|
|
189
|
+
"@dxos/react-ui": "0.8.4-main.422d1c7879",
|
|
190
|
+
"@dxos/ui-theme": "0.8.4-main.422d1c7879"
|
|
174
191
|
},
|
|
175
192
|
"publishConfig": {
|
|
176
193
|
"access": "public"
|
package/src/AssistantPlugin.tsx
CHANGED
|
@@ -3,37 +3,46 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Option from 'effect/Option';
|
|
6
7
|
|
|
7
|
-
import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { ActivationEvent, ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
8
9
|
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
9
|
-
import {
|
|
10
|
+
import { ContextBinding } from '@dxos/assistant';
|
|
11
|
+
import { Agent, AgentBlueprint, Chat, McpServer, Memory, Plan, ResearchGraph } from '@dxos/assistant-toolkit';
|
|
10
12
|
import { Blueprint, Prompt } from '@dxos/blueprints';
|
|
11
13
|
import { Sequence } from '@dxos/conductor';
|
|
12
|
-
import { Obj, Type } from '@dxos/echo';
|
|
14
|
+
import { Annotation, Feed, Obj, Type } from '@dxos/echo';
|
|
13
15
|
import { type SpaceId } from '@dxos/keys';
|
|
14
16
|
import { Operation } from '@dxos/operation';
|
|
15
17
|
import { AutomationCapabilities } from '@dxos/plugin-automation/types';
|
|
16
18
|
import { ClientEvents } from '@dxos/plugin-client/types';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
19
|
+
import { DeckEvents } from '@dxos/plugin-deck/types';
|
|
20
|
+
import { MarkdownEvents } from '@dxos/plugin-markdown';
|
|
21
|
+
import { SpaceOperation } from '@dxos/plugin-space/operations';
|
|
22
|
+
import { type CreateObject, SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space/types';
|
|
23
|
+
import { Text } from '@dxos/schema';
|
|
24
|
+
import { HasSubject, Message } from '@dxos/types';
|
|
20
25
|
|
|
21
26
|
import {
|
|
22
27
|
AiService,
|
|
23
28
|
AppGraphBuilder,
|
|
24
29
|
AssistantState,
|
|
25
30
|
BlueprintDefinition,
|
|
31
|
+
CompanionChatProvisioner,
|
|
26
32
|
EdgeModelResolver,
|
|
27
33
|
LocalModelResolver,
|
|
28
|
-
|
|
34
|
+
MarkdownExtension,
|
|
35
|
+
Migrations,
|
|
36
|
+
OperationHandler,
|
|
29
37
|
ReactSurface,
|
|
30
|
-
Repair,
|
|
31
38
|
Settings,
|
|
32
39
|
Toolkit,
|
|
33
|
-
} from '
|
|
34
|
-
import { meta } from '
|
|
40
|
+
} from '#capabilities';
|
|
41
|
+
import { meta } from '#meta';
|
|
42
|
+
import { AssistantOperation } from '#operations';
|
|
43
|
+
import { AssistantEvents } from '#types';
|
|
44
|
+
|
|
35
45
|
import { translations } from './translations';
|
|
36
|
-
import { AssistantEvents, AssistantOperation } from './types';
|
|
37
46
|
|
|
38
47
|
export const AssistantPlugin = Plugin.define(meta).pipe(
|
|
39
48
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
@@ -43,75 +52,127 @@ export const AssistantPlugin = Plugin.define(meta).pipe(
|
|
|
43
52
|
{
|
|
44
53
|
id: Type.getTypename(Chat.Chat),
|
|
45
54
|
metadata: {
|
|
46
|
-
icon:
|
|
47
|
-
iconHue: '
|
|
48
|
-
createObject: ((props
|
|
55
|
+
icon: Annotation.IconAnnotation.get(Chat.Chat).pipe(Option.getOrThrow).icon,
|
|
56
|
+
iconHue: Annotation.IconAnnotation.get(Chat.Chat).pipe(Option.getOrThrow).hue ?? 'white',
|
|
57
|
+
createObject: ((props, options) =>
|
|
58
|
+
Effect.gen(function* () {
|
|
59
|
+
const { object } = yield* Operation.invoke(AssistantOperation.CreateChat, {
|
|
60
|
+
db: options.db,
|
|
61
|
+
name: props?.name,
|
|
62
|
+
});
|
|
63
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
64
|
+
object,
|
|
65
|
+
target: options.target,
|
|
66
|
+
hidden: true,
|
|
67
|
+
targetNodeId: options.targetNodeId,
|
|
68
|
+
});
|
|
69
|
+
})) satisfies CreateObject,
|
|
49
70
|
},
|
|
50
71
|
},
|
|
51
72
|
{
|
|
52
73
|
id: Type.getTypename(Blueprint.Blueprint),
|
|
53
74
|
metadata: {
|
|
54
|
-
icon:
|
|
55
|
-
iconHue: '
|
|
75
|
+
icon: Annotation.IconAnnotation.get(Blueprint.Blueprint).pipe(Option.getOrThrow).icon,
|
|
76
|
+
iconHue: Annotation.IconAnnotation.get(Blueprint.Blueprint).pipe(Option.getOrThrow).hue ?? 'white',
|
|
56
77
|
inputSchema: AssistantOperation.BlueprintForm,
|
|
57
|
-
createObject: ((props
|
|
78
|
+
createObject: ((props, options) =>
|
|
79
|
+
Effect.gen(function* () {
|
|
80
|
+
const object = Blueprint.make(props);
|
|
81
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
82
|
+
object,
|
|
83
|
+
target: options.target,
|
|
84
|
+
hidden: true,
|
|
85
|
+
targetNodeId: options.targetNodeId,
|
|
86
|
+
});
|
|
87
|
+
})) satisfies CreateObject,
|
|
58
88
|
},
|
|
59
89
|
},
|
|
60
90
|
{
|
|
61
91
|
id: Type.getTypename(Prompt.Prompt),
|
|
62
92
|
metadata: {
|
|
63
|
-
icon:
|
|
64
|
-
iconHue: '
|
|
65
|
-
createObject: ((props
|
|
93
|
+
icon: Annotation.IconAnnotation.get(Prompt.Prompt).pipe(Option.getOrThrow).icon,
|
|
94
|
+
iconHue: Annotation.IconAnnotation.get(Prompt.Prompt).pipe(Option.getOrThrow).hue ?? 'white',
|
|
95
|
+
createObject: ((props, options) =>
|
|
96
|
+
Effect.gen(function* () {
|
|
97
|
+
const object = Prompt.make(props);
|
|
98
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
99
|
+
object,
|
|
100
|
+
target: options.target,
|
|
101
|
+
hidden: true,
|
|
102
|
+
targetNodeId: options.targetNodeId,
|
|
103
|
+
});
|
|
104
|
+
})) satisfies CreateObject,
|
|
66
105
|
},
|
|
67
106
|
},
|
|
68
107
|
{
|
|
69
108
|
id: Type.getTypename(Sequence),
|
|
70
109
|
metadata: {
|
|
71
|
-
icon:
|
|
72
|
-
iconHue: '
|
|
73
|
-
createObject: ((props
|
|
74
|
-
|
|
110
|
+
icon: Annotation.IconAnnotation.get(Sequence).pipe(Option.getOrThrow).icon,
|
|
111
|
+
iconHue: Annotation.IconAnnotation.get(Sequence).pipe(Option.getOrThrow).hue ?? 'white',
|
|
112
|
+
createObject: ((props, options) =>
|
|
113
|
+
Effect.gen(function* () {
|
|
114
|
+
const object = Obj.make(Sequence, props);
|
|
115
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
116
|
+
object,
|
|
117
|
+
target: options.target,
|
|
118
|
+
hidden: true,
|
|
119
|
+
targetNodeId: options.targetNodeId,
|
|
120
|
+
});
|
|
121
|
+
})) satisfies CreateObject,
|
|
75
122
|
},
|
|
76
123
|
},
|
|
77
124
|
{
|
|
78
|
-
id: Type.getTypename(
|
|
125
|
+
id: Type.getTypename(Agent.Agent),
|
|
79
126
|
metadata: {
|
|
80
|
-
icon:
|
|
81
|
-
iconHue: '
|
|
82
|
-
createObject: ((
|
|
83
|
-
|
|
84
|
-
{
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
127
|
+
icon: Annotation.IconAnnotation.get(Agent.Agent).pipe(Option.getOrThrow).icon,
|
|
128
|
+
iconHue: Annotation.IconAnnotation.get(Agent.Agent).pipe(Option.getOrThrow).hue ?? 'white',
|
|
129
|
+
createObject: ((props, options) =>
|
|
130
|
+
Effect.gen(function* () {
|
|
131
|
+
const object = yield* Agent.makeInitialized({ name: '', instructions: '' }, AgentBlueprint.make()).pipe(
|
|
132
|
+
withComputeRuntime(options.db.spaceId),
|
|
133
|
+
);
|
|
134
|
+
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
135
|
+
object,
|
|
136
|
+
target: options.target,
|
|
137
|
+
hidden: true,
|
|
138
|
+
targetNodeId: options.targetNodeId,
|
|
139
|
+
});
|
|
140
|
+
})) satisfies CreateObject,
|
|
91
141
|
},
|
|
92
142
|
},
|
|
93
143
|
],
|
|
94
144
|
}),
|
|
95
|
-
AppPlugin.
|
|
145
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
96
146
|
AppPlugin.addSchemaModule({
|
|
97
147
|
schema: [
|
|
98
148
|
Chat.Chat,
|
|
99
149
|
Chat.CompanionTo,
|
|
100
150
|
Blueprint.Blueprint,
|
|
151
|
+
ContextBinding,
|
|
152
|
+
Feed.Feed,
|
|
101
153
|
HasSubject.HasSubject,
|
|
154
|
+
Message.Message,
|
|
102
155
|
Prompt.Prompt,
|
|
103
|
-
ResearchGraph,
|
|
104
|
-
|
|
105
|
-
|
|
156
|
+
ResearchGraph.ResearchGraph,
|
|
157
|
+
Agent.Agent,
|
|
158
|
+
McpServer.McpServer,
|
|
159
|
+
Plan.Plan,
|
|
106
160
|
Sequence,
|
|
161
|
+
Memory.Memory,
|
|
162
|
+
Text.Text,
|
|
107
163
|
],
|
|
108
164
|
}),
|
|
109
165
|
AppPlugin.addSettingsModule({ activate: Settings }),
|
|
110
166
|
AppPlugin.addSurfaceModule({
|
|
111
167
|
activate: ReactSurface,
|
|
112
|
-
|
|
168
|
+
firesBeforeActivation: [AppActivationEvents.SetupArtifactDefinition],
|
|
113
169
|
}),
|
|
114
170
|
AppPlugin.addTranslationsModule({ translations }),
|
|
171
|
+
Plugin.addModule({
|
|
172
|
+
id: 'markdown',
|
|
173
|
+
activatesOn: MarkdownEvents.SetupExtensions,
|
|
174
|
+
activate: MarkdownExtension,
|
|
175
|
+
}),
|
|
115
176
|
Plugin.addModule({
|
|
116
177
|
// TODO(wittjosiah): Does not integrate with settings store.
|
|
117
178
|
// Should this be a different event?
|
|
@@ -129,10 +190,6 @@ export const AssistantPlugin = Plugin.define(meta).pipe(
|
|
|
129
190
|
),
|
|
130
191
|
),
|
|
131
192
|
}),
|
|
132
|
-
Plugin.addModule({
|
|
133
|
-
activatesOn: ClientEvents.SpacesReady,
|
|
134
|
-
activate: Repair,
|
|
135
|
-
}),
|
|
136
193
|
Plugin.addModule({
|
|
137
194
|
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
138
195
|
activate: EdgeModelResolver,
|
|
@@ -142,7 +199,7 @@ export const AssistantPlugin = Plugin.define(meta).pipe(
|
|
|
142
199
|
activate: LocalModelResolver,
|
|
143
200
|
}),
|
|
144
201
|
Plugin.addModule({
|
|
145
|
-
|
|
202
|
+
firesBeforeActivation: [AssistantEvents.SetupAiServiceProviders],
|
|
146
203
|
// TODO(dmaretskyi): This should activate lazily when the AI chat is used.
|
|
147
204
|
activatesOn: ActivationEvents.Startup,
|
|
148
205
|
activate: AiService,
|
|
@@ -152,6 +209,18 @@ export const AssistantPlugin = Plugin.define(meta).pipe(
|
|
|
152
209
|
activatesOn: ActivationEvents.Startup,
|
|
153
210
|
activate: Toolkit,
|
|
154
211
|
}),
|
|
212
|
+
Plugin.addModule({
|
|
213
|
+
activatesOn: ActivationEvent.allOf(
|
|
214
|
+
ActivationEvents.OperationInvokerReady,
|
|
215
|
+
AppActivationEvents.AppGraphReady,
|
|
216
|
+
DeckEvents.StateReady,
|
|
217
|
+
),
|
|
218
|
+
activate: CompanionChatProvisioner,
|
|
219
|
+
}),
|
|
220
|
+
Plugin.addModule({
|
|
221
|
+
activatesOn: ClientEvents.SetupMigration,
|
|
222
|
+
activate: Migrations,
|
|
223
|
+
}),
|
|
155
224
|
Plugin.make,
|
|
156
225
|
);
|
|
157
226
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, it } from '@effect/vitest';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
|
|
8
|
+
import { AgentService } from '@dxos/assistant';
|
|
9
|
+
import { DatabaseBlueprint, DatabaseHandlers } from '@dxos/assistant-toolkit';
|
|
10
|
+
import { AssistantTestLayer } from '@dxos/assistant/testing';
|
|
11
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
12
|
+
import { Feed } from '@dxos/echo';
|
|
13
|
+
import { TestHelpers } from '@dxos/effect/testing';
|
|
14
|
+
import { ObjectId } from '@dxos/keys';
|
|
15
|
+
import { Organization } from '@dxos/types';
|
|
16
|
+
|
|
17
|
+
import AssistantBlueprint from './blueprint';
|
|
18
|
+
|
|
19
|
+
ObjectId.dangerouslyDisableRandomness();
|
|
20
|
+
|
|
21
|
+
const TestLayer = AssistantTestLayer({
|
|
22
|
+
aiServicePreset: 'edge-remote',
|
|
23
|
+
operationHandlers: DatabaseHandlers,
|
|
24
|
+
types: [Organization.Organization, Blueprint.Blueprint, Feed.Feed],
|
|
25
|
+
blueprints: [AssistantBlueprint.make(), DatabaseBlueprint.make()],
|
|
26
|
+
tracing: 'pretty',
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
describe('Assistant Blueprint', () => {
|
|
30
|
+
// TODO(dmaretskyi): Regenerate memoized conversation with ALLOW_LLM_GENERATION=1.
|
|
31
|
+
it.effect.skip(
|
|
32
|
+
'works with Database blueprint to create objects',
|
|
33
|
+
Effect.fnUntraced(
|
|
34
|
+
function* (_) {
|
|
35
|
+
const agent = yield* AgentService.createSession({
|
|
36
|
+
blueprints: [AssistantBlueprint.make(), DatabaseBlueprint.make()],
|
|
37
|
+
});
|
|
38
|
+
yield* agent.submitPrompt('Create a new organization called "Test Corp".');
|
|
39
|
+
yield* agent.waitForCompletion();
|
|
40
|
+
},
|
|
41
|
+
Effect.provide(TestLayer),
|
|
42
|
+
TestHelpers.provideTestContext,
|
|
43
|
+
),
|
|
44
|
+
{ timeout: 60_000 },
|
|
45
|
+
);
|
|
46
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { LayoutOperation, type AppCapabilities } from '@dxos/app-toolkit';
|
|
6
|
+
import { templates } from '@dxos/assistant';
|
|
7
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
8
|
+
|
|
9
|
+
import { AssistantOperation } from '#operations';
|
|
10
|
+
|
|
11
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.assistant';
|
|
12
|
+
|
|
13
|
+
const make = () =>
|
|
14
|
+
Blueprint.make({
|
|
15
|
+
key: BLUEPRINT_KEY,
|
|
16
|
+
name: 'Assistant',
|
|
17
|
+
tools: Blueprint.toolDefinitions({
|
|
18
|
+
// TODO(wittjosiah): LayoutOperation.Open requires Capability.Service which is only available
|
|
19
|
+
// via the compute-runtime layer (plugin-automation). Once Capability.Service is propagated
|
|
20
|
+
// through LocalFunctionExecutionService, this will work without the compute-runtime dependency.
|
|
21
|
+
operations: [LayoutOperation.Open, AssistantOperation.ResolveNavigationTargets],
|
|
22
|
+
}),
|
|
23
|
+
instructions: templates.system,
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
27
|
+
key: BLUEPRINT_KEY,
|
|
28
|
+
make,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default blueprint;
|
package/src/blueprints/index.ts
CHANGED
|
@@ -2,11 +2,4 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
7
|
-
|
|
8
|
-
import * as AssistantBlueprint from './assistant-blueprint';
|
|
9
|
-
|
|
10
|
-
export { AssistantBlueprint };
|
|
11
|
-
export const blueprints: Blueprint.Blueprint[] = AssistantBlueprint.blueprints;
|
|
12
|
-
export const functions: FunctionDefinition[] = AssistantBlueprint.functions;
|
|
5
|
+
export * from './assistant';
|