@dxos/plugin-assistant 0.8.4-main.f5c0578 → 0.8.4-main.fcfe5033a5
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 +8 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- 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/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 +3406 -249
- 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 +5 -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 +9 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- 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/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 +3406 -249
- 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 +5 -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 +2 -1
- 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 +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/ai-service.d.ts +4 -3
- package/dist/types/src/capabilities/ai-service.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +4 -2
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -1
- 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.d.ts +6 -4
- package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +29 -9
- 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 +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +4 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- 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 +4 -3
- package/dist/types/src/capabilities/toolkit.d.ts.map +1 -1
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +4 -4
- 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 +36 -17
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/events.d.ts +10 -1
- package/dist/types/src/components/Chat/events.d.ts.map +1 -1
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +10 -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 +2 -1
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +13 -4
- 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/ChatPresets.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +3 -4
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts +6 -4
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +13 -11
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +24 -215
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Link.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts +35 -0
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.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 +43 -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/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 +14 -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 +6 -9
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +13 -7
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +12 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +10 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts +12 -0
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/extensions/index.d.ts +3 -0
- package/dist/types/src/components/TemplateEditor/extensions/index.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts +8 -0
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +12 -0
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts +2 -0
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/index.d.ts +3 -0
- package/dist/types/src/components/ToolBlock/index.d.ts.map +1 -0
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +14 -15
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +15 -5
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +3 -9
- 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 +2 -3
- 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 +9 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/TracePanel.stories.d.ts +15 -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 +4 -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/index.d.ts +5 -5
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +8 -4
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +7 -10
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +5 -10
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatToolbarActions.d.ts +8 -0
- package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -0
- package/dist/types/src/hooks/useContextBinder.d.ts +5 -0
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -0
- package/dist/types/src/hooks/useContextObjects.d.ts +15 -0
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts +3 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -0
- package/dist/types/src/hooks/useFlush.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +3 -3
- 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 +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +5 -4
- 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/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 +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 +80 -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/queue-logger.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.d.ts +8 -0
- package/dist/types/src/testing/test-generator.d.ts.map +1 -0
- package/dist/types/src/testing/test-sequence.d.ts +0 -4
- package/dist/types/src/testing/test-sequence.d.ts.map +1 -1
- package/dist/types/src/testing/test-services.d.ts +2 -2
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/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 -76
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +18 -40
- 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 +32 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +5 -0
- package/dist/types/src/types/events.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 +14 -213
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +148 -102
- package/src/AssistantPlugin.tsx +216 -128
- 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/{components/Timeline → blueprints}/index.ts +1 -1
- package/src/capabilities/ai-service.ts +22 -20
- package/src/capabilities/app-graph-builder.ts +194 -146
- package/src/capabilities/blueprint-definition.ts +51 -25
- package/src/capabilities/companion-chat-provisioner.ts +164 -0
- package/src/capabilities/edge-model-resolver.ts +17 -13
- package/src/capabilities/index.ts +21 -11
- package/src/capabilities/local-model-resolver.ts +48 -0
- 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 +139 -130
- package/src/capabilities/settings.ts +24 -12
- package/src/capabilities/state.ts +35 -0
- package/src/capabilities/toolkit.ts +7 -100
- package/src/components/AssistantSettings/AssistantSettings.stories.tsx +34 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +102 -75
- package/src/components/AssistantSettings/index.ts +2 -2
- package/src/components/Chat/Chat.tsx +278 -205
- package/src/components/Chat/events.ts +14 -1
- package/src/components/ChatProgress/ChatProgress.tsx +56 -0
- package/src/components/{SequenceEditor → ChatProgress}/index.ts +1 -1
- package/src/components/ChatPrompt/ChatActions.tsx +34 -30
- package/src/components/ChatPrompt/ChatOptions.stories.tsx +122 -0
- package/src/components/ChatPrompt/ChatOptions.tsx +380 -35
- package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +40 -38
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +25 -22
- package/src/components/ChatThread/ChatThread.stories.tsx +91 -223
- package/src/components/ChatThread/ChatThread.tsx +77 -36
- package/src/components/ChatThread/Link.tsx +11 -8
- package/src/components/ChatThread/MarkdownStream.stories.tsx +243 -0
- package/src/components/ChatThread/registry.tsx +238 -0
- package/src/components/ChatThread/sync.test.ts +99 -0
- package/src/components/ChatThread/sync.ts +165 -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-2.md +56 -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 +28 -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 +133 -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 +27 -18
- package/src/components/TemplateEditor/TemplateEditor.tsx +55 -69
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +23 -16
- package/src/components/TemplateEditor/TemplateForm.tsx +85 -38
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +274 -0
- package/src/components/TemplateEditor/extensions/index.ts +6 -0
- package/src/components/TemplateEditor/extensions/xml-extension.ts +64 -0
- package/src/components/ToolBlock/ToolBlock.tsx +144 -0
- package/src/components/ToolBlock/ToolBlockWidget.tsx +5 -0
- package/src/components/ToolBlock/index.ts +6 -0
- package/src/components/Toolbox/Toolbox.stories.tsx +17 -23
- package/src/components/Toolbox/Toolbox.tsx +80 -81
- package/src/components/index.ts +3 -8
- package/src/containers/AgentArticle/AgentArticle.stories.tsx +120 -0
- package/src/containers/AgentArticle/AgentArticle.tsx +198 -0
- package/src/containers/AgentArticle/index.ts +5 -0
- package/src/containers/AgentProperties/AgentProperties.stories.tsx +100 -0
- package/src/containers/AgentProperties/AgentProperties.tsx +158 -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 +27 -23
- 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 +230 -0
- package/src/containers/TracePanel/TracePanel.tsx +114 -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 +425 -0
- package/src/containers/TracePanel/index.ts +9 -0
- package/src/containers/TriggerStatus/TriggerStatus.tsx +144 -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/index.ts +5 -6
- package/src/hooks/useBlueprintRegistry.ts +52 -22
- package/src/hooks/useChatProcessor.ts +47 -38
- package/src/hooks/useChatServices.ts +12 -60
- package/src/hooks/useChatToolbarActions.ts +122 -0
- package/src/hooks/useContextBinder.ts +43 -0
- package/src/hooks/useContextObjects.ts +50 -0
- package/src/hooks/useFilteredTypes.ts +37 -0
- package/src/hooks/usePresets.ts +5 -5
- package/src/hooks/useReferencesProvider.ts +5 -8
- package/src/index.ts +3 -2
- package/src/meta.ts +15 -9
- 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/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 +6 -0
- package/src/{hooks → processor}/presets.ts +21 -6
- package/src/processor/processor.test.ts +40 -0
- package/src/processor/processor.ts +321 -0
- package/src/queue-logger.ts +29 -19
- package/src/testing/index.ts +1 -1
- package/src/testing/test-generator.ts +293 -0
- package/src/testing/test-sequence.ts +4 -29
- package/src/testing/test-services.ts +10 -14
- package/src/testing/trace-timeline.conversations.json +1 -0
- package/src/testing/trace-timeline.test.ts +246 -0
- package/src/translations.ts +161 -66
- package/src/types/Assistant.ts +8 -56
- package/src/types/Settings.ts +21 -0
- package/src/types/capabilities.ts +35 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +5 -1
- package/src/types/service.ts +27 -16
- package/src/vite-env.d.ts +30 -0
- package/dist/lib/browser/BlueprintContainer-H7H4BQ2C.mjs +0 -29
- package/dist/lib/browser/BlueprintContainer-H7H4BQ2C.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-SB7YC2XP.mjs +0 -77
- package/dist/lib/browser/ChatContainer-SB7YC2XP.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-X6PFOQSQ.mjs +0 -87
- package/dist/lib/browser/ChatDialog-X6PFOQSQ.mjs.map +0 -7
- package/dist/lib/browser/SequenceContainer-627OQ557.mjs +0 -163
- package/dist/lib/browser/SequenceContainer-627OQ557.mjs.map +0 -7
- package/dist/lib/browser/ai-service-7KJ5LXBT.mjs +0 -22
- package/dist/lib/browser/ai-service-7KJ5LXBT.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-ERU5XY2S.mjs +0 -166
- package/dist/lib/browser/app-graph-builder-ERU5XY2S.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-CMGIZAOW.mjs +0 -146
- package/dist/lib/browser/blueprint-definition-CMGIZAOW.mjs.map +0 -7
- package/dist/lib/browser/chunk-BVH6VK6Q.mjs +0 -2254
- package/dist/lib/browser/chunk-BVH6VK6Q.mjs.map +0 -7
- package/dist/lib/browser/chunk-JBFDQMUJ.mjs +0 -193
- package/dist/lib/browser/chunk-JBFDQMUJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-LKP65RPA.mjs +0 -20
- package/dist/lib/browser/chunk-LKP65RPA.mjs.map +0 -7
- package/dist/lib/browser/chunk-NZDCKQ6W.mjs +0 -89
- package/dist/lib/browser/chunk-NZDCKQ6W.mjs.map +0 -7
- package/dist/lib/browser/chunk-QB7OVS6Z.mjs +0 -16
- package/dist/lib/browser/chunk-QB7OVS6Z.mjs.map +0 -7
- package/dist/lib/browser/chunk-Y66UJUHV.mjs +0 -280
- package/dist/lib/browser/chunk-Y66UJUHV.mjs.map +0 -7
- package/dist/lib/browser/edge-model-resolver-2HB4PCWH.mjs +0 -24
- package/dist/lib/browser/edge-model-resolver-2HB4PCWH.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-DGRO2XSG.mjs +0 -81
- package/dist/lib/browser/intent-resolver-DGRO2XSG.mjs.map +0 -7
- package/dist/lib/browser/react-surface-LPSIBHEJ.mjs +0 -163
- package/dist/lib/browser/react-surface-LPSIBHEJ.mjs.map +0 -7
- package/dist/lib/browser/settings-ZFNQYSYP.mjs +0 -23
- package/dist/lib/browser/settings-ZFNQYSYP.mjs.map +0 -7
- package/dist/lib/browser/toolkit-IW4FBLLB.mjs +0 -105
- package/dist/lib/browser/toolkit-IW4FBLLB.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintContainer-VH4EE4CM.mjs +0 -30
- package/dist/lib/node-esm/BlueprintContainer-VH4EE4CM.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-7JLMWHMX.mjs +0 -78
- package/dist/lib/node-esm/ChatContainer-7JLMWHMX.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-QDD722F2.mjs +0 -88
- package/dist/lib/node-esm/ChatDialog-QDD722F2.mjs.map +0 -7
- package/dist/lib/node-esm/SequenceContainer-EQ5NP2PG.mjs +0 -164
- package/dist/lib/node-esm/SequenceContainer-EQ5NP2PG.mjs.map +0 -7
- package/dist/lib/node-esm/ai-service-LDD32477.mjs +0 -23
- package/dist/lib/node-esm/ai-service-LDD32477.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-RCT4ANP2.mjs +0 -167
- package/dist/lib/node-esm/app-graph-builder-RCT4ANP2.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-AEWYMW6I.mjs +0 -147
- package/dist/lib/node-esm/blueprint-definition-AEWYMW6I.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ETS2CIDF.mjs +0 -2255
- package/dist/lib/node-esm/chunk-ETS2CIDF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GAWXJ7K5.mjs +0 -90
- package/dist/lib/node-esm/chunk-GAWXJ7K5.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GENVBE3B.mjs +0 -194
- package/dist/lib/node-esm/chunk-GENVBE3B.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KOC6ESG7.mjs +0 -22
- package/dist/lib/node-esm/chunk-KOC6ESG7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QS6GWTVA.mjs +0 -281
- package/dist/lib/node-esm/chunk-QS6GWTVA.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X6AANUHZ.mjs +0 -17
- package/dist/lib/node-esm/chunk-X6AANUHZ.mjs.map +0 -7
- package/dist/lib/node-esm/edge-model-resolver-UDDR2IA6.mjs +0 -25
- package/dist/lib/node-esm/edge-model-resolver-UDDR2IA6.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-7CKWG7TZ.mjs +0 -82
- package/dist/lib/node-esm/intent-resolver-7CKWG7TZ.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-3EPAE4I4.mjs +0 -164
- package/dist/lib/node-esm/react-surface-3EPAE4I4.mjs.map +0 -7
- package/dist/lib/node-esm/settings-UI4VQCWW.mjs +0 -24
- package/dist/lib/node-esm/settings-UI4VQCWW.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-2VNUL77B.mjs +0 -106
- package/dist/lib/node-esm/toolkit-2VNUL77B.mjs.map +0 -7
- package/dist/types/src/capabilities/capabilities.d.ts +0 -11
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/BlueprintContainer.d.ts +0 -8
- package/dist/types/src/components/BlueprintContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -12
- 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/ChatThread/ChatMessage.d.ts +0 -18
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts +0 -19
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/reducer.d.ts +0 -12
- package/dist/types/src/components/ChatThread/reducer.d.ts.map +0 -1
- package/dist/types/src/components/PromptSettings.d.ts +0 -6
- package/dist/types/src/components/PromptSettings.d.ts.map +0 -1
- package/dist/types/src/components/SequenceContainer.d.ts +0 -8
- package/dist/types/src/components/SequenceContainer.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts +0 -13
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +0 -8
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/index.d.ts +0 -2
- package/dist/types/src/components/SequenceEditor/index.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/Timeline.d.ts +0 -42
- package/dist/types/src/components/Timeline/Timeline.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/Timeline.stories.d.ts +0 -11
- package/dist/types/src/components/Timeline/Timeline.stories.d.ts.map +0 -1
- package/dist/types/src/components/Timeline/index.d.ts +0 -2
- package/dist/types/src/components/Timeline/index.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/dist/types/src/execution-graph/execution-graph.d.ts +0 -21
- package/dist/types/src/execution-graph/execution-graph.d.ts.map +0 -1
- package/dist/types/src/execution-graph/index.d.ts +0 -2
- package/dist/types/src/execution-graph/index.d.ts.map +0 -1
- package/dist/types/src/functions/analysis.d.ts +0 -5
- package/dist/types/src/functions/analysis.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/list.d.ts +0 -10
- package/dist/types/src/functions/list.d.ts.map +0 -1
- package/dist/types/src/functions/load.d.ts +0 -8
- package/dist/types/src/functions/load.d.ts.map +0 -1
- package/dist/types/src/hooks/chat-processor.d.ts +0 -72
- package/dist/types/src/hooks/chat-processor.d.ts.map +0 -1
- package/dist/types/src/hooks/errors.d.ts +0 -4
- package/dist/types/src/hooks/errors.d.ts.map +0 -1
- package/dist/types/src/hooks/presets.d.ts.map +0 -1
- package/dist/types/src/hooks/useExecutionGraph.d.ts +0 -7
- package/dist/types/src/hooks/useExecutionGraph.d.ts.map +0 -1
- package/dist/types/src/hooks/useResolveRef.d.ts +0 -4
- package/dist/types/src/hooks/useResolveRef.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.d.ts +0 -4
- package/dist/types/src/parser/filter-generator.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.test.d.ts +0 -2
- package/dist/types/src/parser/filter-generator.test.d.ts.map +0 -1
- package/dist/types/src/parser/index.d.ts +0 -4
- package/dist/types/src/parser/index.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.d.ts +0 -15
- package/dist/types/src/parser/query-parser.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.test.d.ts +0 -2
- package/dist/types/src/parser/query-parser.test.d.ts.map +0 -1
- package/dist/types/src/parser/types.d.ts +0 -24
- package/dist/types/src/parser/types.d.ts.map +0 -1
- package/dist/types/src/stories/Chat.stories.d.ts +0 -268
- package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/stories/components/BlueprintContainer.d.ts +0 -5
- package/dist/types/src/stories/components/BlueprintContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/ChatContainer.d.ts +0 -5
- package/dist/types/src/stories/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/GraphContainer.d.ts +0 -6
- package/dist/types/src/stories/components/GraphContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/LoggingContainer.d.ts +0 -5
- package/dist/types/src/stories/components/LoggingContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/SurfaceContainer.d.ts +0 -8
- package/dist/types/src/stories/components/SurfaceContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/TasksContainer.d.ts +0 -5
- package/dist/types/src/stories/components/TasksContainer.d.ts.map +0 -1
- package/dist/types/src/stories/components/index.d.ts +0 -8
- package/dist/types/src/stories/components/index.d.ts.map +0 -1
- package/dist/types/src/stories/components/types.d.ts +0 -7
- package/dist/types/src/stories/components/types.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/index.d.ts +0 -3
- package/dist/types/src/stories/hooks/index.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/useFlush.d.ts.map +0 -1
- package/dist/types/src/stories/hooks/useMatcherExtension.d.ts +0 -3
- package/dist/types/src/stories/hooks/useMatcherExtension.d.ts.map +0 -1
- package/dist/types/src/stories/testing/data.d.ts +0 -142
- package/dist/types/src/stories/testing/data.d.ts.map +0 -1
- package/dist/types/src/stories/testing/index.d.ts +0 -3
- package/dist/types/src/stories/testing/index.d.ts.map +0 -1
- package/dist/types/src/stories/testing/testing.d.ts +0 -26
- package/dist/types/src/stories/testing/testing.d.ts.map +0 -1
- package/dist/types/src/testing/test-functions.d.ts +0 -6
- package/dist/types/src/testing/test-functions.d.ts.map +0 -1
- package/dist/types/src/tools/function.d.ts +0 -5
- package/dist/types/src/tools/function.d.ts.map +0 -1
- package/dist/types/src/tools/index.d.ts +0 -3
- package/dist/types/src/tools/index.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.d.ts +0 -10
- package/dist/types/src/tools/openapi.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.test.d.ts +0 -2
- package/dist/types/src/tools/openapi.test.d.ts.map +0 -1
- package/dist/types/src/types/AssistantAction.d.ts +0 -91
- package/dist/types/src/types/AssistantAction.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -22
- package/src/capabilities/intent-resolver.ts +0 -73
- package/src/components/BlueprintContainer.tsx +0 -24
- package/src/components/ChatContainer.tsx +0 -69
- package/src/components/ChatThread/ChatMessage.tsx +0 -291
- package/src/components/ChatThread/ToolBlock.tsx +0 -125
- package/src/components/ChatThread/reducer.ts +0 -52
- package/src/components/PromptSettings.tsx +0 -89
- package/src/components/SequenceContainer.tsx +0 -133
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -33
- package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
- package/src/components/Timeline/Timeline.stories.tsx +0 -144
- package/src/components/Timeline/Timeline.tsx +0 -202
- package/src/events.ts +0 -11
- package/src/execution-graph/execution-graph.ts +0 -184
- package/src/execution-graph/index.ts +0 -5
- package/src/functions/analysis.ts +0 -20
- package/src/functions/index.ts +0 -7
- package/src/functions/list.ts +0 -42
- package/src/functions/load.ts +0 -43
- package/src/hooks/chat-processor.ts +0 -260
- package/src/hooks/errors.ts +0 -8
- package/src/hooks/useExecutionGraph.ts +0 -16
- package/src/hooks/useResolveRef.ts +0 -33
- package/src/parser/filter-generator.test.ts +0 -32
- package/src/parser/filter-generator.ts +0 -74
- package/src/parser/index.ts +0 -7
- package/src/parser/query-parser.test.ts +0 -139
- package/src/parser/query-parser.ts +0 -199
- package/src/parser/types.ts +0 -34
- package/src/shims.d.ts +0 -8
- package/src/stories/Chat.stories.tsx +0 -317
- package/src/stories/components/BlueprintContainer.tsx +0 -34
- package/src/stories/components/ChatContainer.tsx +0 -80
- package/src/stories/components/GraphContainer.tsx +0 -118
- package/src/stories/components/LoggingContainer.tsx +0 -29
- package/src/stories/components/SurfaceContainer.tsx +0 -62
- package/src/stories/components/TasksContainer.tsx +0 -51
- package/src/stories/components/index.ts +0 -12
- package/src/stories/components/types.ts +0 -11
- package/src/stories/hooks/index.ts +0 -6
- package/src/stories/hooks/useMatcherExtension.ts +0 -45
- package/src/stories/testing/data.ts +0 -130
- package/src/stories/testing/index.ts +0 -6
- package/src/stories/testing/testing.tsx +0 -163
- package/src/testing/test-functions.ts +0 -16
- package/src/tools/function.ts +0 -49
- package/src/tools/index.ts +0 -6
- package/src/tools/openapi.test.ts +0 -219
- package/src/tools/openapi.ts +0 -341
- package/src/types/AssistantAction.ts +0 -54
- package/src/typings.d.ts +0 -9
- /package/dist/types/src/{stories/hooks → hooks}/useFlush.d.ts +0 -0
- /package/src/{stories/hooks → hooks}/useFlush.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
definitions_exports
|
|
4
|
+
} from "../chunk-PXAJSTGZ.mjs";
|
|
5
|
+
import "../chunk-HSLMI22Q.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/index.ts
|
|
8
|
+
import { OperationHandlerSet } from "@dxos/operation";
|
|
9
|
+
var AssistantOperationHandlerSet = OperationHandlerSet.lazy(() => import("../create-chat-3BEG4R6J.mjs"), () => import("../ensure-companion-chat-6K2WEWFP.mjs"), () => import("../on-create-space-YRPZ6HZY.mjs"), () => import("../resolve-navigation-targets-3PPK7XLH.mjs"), () => import("../run-prompt-in-new-chat-OUYKCMQ7.mjs"), () => import("../set-current-chat-SMXZJD3F.mjs"), () => import("../update-chat-name-HM2P4NSI.mjs"));
|
|
10
|
+
export {
|
|
11
|
+
definitions_exports as AssistantOperation,
|
|
12
|
+
AssistantOperationHandlerSet
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/operations/index.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * as AssistantOperation from './definitions';\n\nexport const AssistantOperationHandlerSet = OperationHandlerSet.lazy(\n () => import('./create-chat'),\n () => import('./ensure-companion-chat'),\n () => import('./on-create-space'),\n () => import('./resolve-navigation-targets'),\n () => import('./run-prompt-in-new-chat'),\n () => import('./set-current-chat'),\n () => import('./update-chat-name'),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,SAASA,2BAA2B;AAI7B,IAAMC,+BAA+BC,oBAAoBC,KAC9D,MAAM,OAAO,6BAAA,GACb,MAAM,OAAO,uCAAA,GACb,MAAM,OAAO,iCAAA,GACb,MAAM,OAAO,4CAAA,GACb,MAAM,OAAO,wCAAA,GACb,MAAM,OAAO,kCAAA,GACb,MAAM,OAAO,kCAAA,CAAA;",
|
|
6
|
+
"names": ["OperationHandlerSet", "AssistantOperationHandlerSet", "OperationHandlerSet", "lazy"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
ResolveNavigationTargets
|
|
4
|
+
} from "./chunk-PXAJSTGZ.mjs";
|
|
5
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/resolve-navigation-targets.ts
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import { Capability } from "@dxos/app-framework";
|
|
10
|
+
import { AppCapabilities } from "@dxos/app-toolkit";
|
|
11
|
+
import { Operation } from "@dxos/operation";
|
|
12
|
+
var resolve_navigation_targets_default = ResolveNavigationTargets.pipe(Operation.withHandler(Effect.fn(function* ({ query }) {
|
|
13
|
+
const capabilities = yield* Capability.Service;
|
|
14
|
+
const resolvers = capabilities.getAll(AppCapabilities.NavigationTargetResolver);
|
|
15
|
+
const results = yield* Effect.forEach(resolvers, (resolver) => resolver(query).pipe(Effect.catchAll(() => Effect.succeed([]))));
|
|
16
|
+
return {
|
|
17
|
+
targets: results.flat()
|
|
18
|
+
};
|
|
19
|
+
})));
|
|
20
|
+
export {
|
|
21
|
+
resolve_navigation_targets_default as default
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=resolve-navigation-targets-3PPK7XLH.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/resolve-navigation-targets.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capability } from '@dxos/app-framework';\nimport { AppCapabilities } from '@dxos/app-toolkit';\nimport { Operation } from '@dxos/operation';\n\nimport { ResolveNavigationTargets } from './definitions';\n\nexport default ResolveNavigationTargets.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ query }) {\n const capabilities = yield* Capability.Service;\n\n // Delegate to contributed resolvers.\n const resolvers = capabilities.getAll(AppCapabilities.NavigationTargetResolver);\n const results = yield* Effect.forEach(resolvers, (resolver) =>\n resolver(query as AppCapabilities.NavigationQuery).pipe(Effect.catchAll(() => Effect.succeed([]))),\n );\n return { targets: results.flat() };\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,kBAAkB;AAC3B,SAASC,uBAAuB;AAChC,SAASC,iBAAiB;AAI1B,IAAA,qCAAeC,yBAAyBC,KACtCC,UAAUC,YACDC,UAAG,WAAW,EAAEC,MAAK,GAAE;AAC5B,QAAMC,eAAe,OAAOC,WAAWC;AAGvC,QAAMC,YAAYH,aAAaI,OAAOC,gBAAgBC,wBAAwB;AAC9E,QAAMC,UAAU,OAAcC,eAAQL,WAAW,CAACM,aAChDA,SAASV,KAAAA,EAA0CJ,KAAYe,gBAAS,MAAaC,eAAQ,CAAA,CAAE,CAAA,CAAA,CAAA;AAEjG,SAAO;IAAEC,SAASL,QAAQM,KAAI;EAAG;AACnC,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Capability", "AppCapabilities", "Operation", "ResolveNavigationTargets", "pipe", "Operation", "withHandler", "fn", "query", "capabilities", "Capability", "Service", "resolvers", "getAll", "AppCapabilities", "NavigationTargetResolver", "results", "forEach", "resolver", "catchAll", "succeed", "targets", "flat"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AssistantCapabilities
|
|
4
|
+
} from "./chunk-W3JZ2F4T.mjs";
|
|
5
|
+
import {
|
|
6
|
+
CreateChat,
|
|
7
|
+
RunPromptInNewChat
|
|
8
|
+
} from "./chunk-PXAJSTGZ.mjs";
|
|
9
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
10
|
+
|
|
11
|
+
// src/operations/run-prompt-in-new-chat.ts
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
14
|
+
import { getObjectPathFromObject, LayoutOperation } from "@dxos/app-toolkit";
|
|
15
|
+
import { AiContextBinder } from "@dxos/assistant";
|
|
16
|
+
import { AgentPrompt } from "@dxos/assistant-toolkit";
|
|
17
|
+
import { Blueprint, Prompt, Template } from "@dxos/blueprints";
|
|
18
|
+
import { Database, Filter, Obj, Ref } from "@dxos/echo";
|
|
19
|
+
import { createFeedServiceLayer } from "@dxos/echo-db";
|
|
20
|
+
import { invariant } from "@dxos/invariant";
|
|
21
|
+
import { log } from "@dxos/log";
|
|
22
|
+
import { Operation } from "@dxos/operation";
|
|
23
|
+
import { AutomationCapabilities } from "@dxos/plugin-automation/types";
|
|
24
|
+
import { ClientCapabilities } from "@dxos/plugin-client/types";
|
|
25
|
+
import { Text } from "@dxos/schema";
|
|
26
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-assistant/src/operations/run-prompt-in-new-chat.ts";
|
|
27
|
+
var handler = RunPromptInNewChat.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ db, prompt, objects, blueprints, background }) {
|
|
28
|
+
const registry = yield* Capability.get(Capabilities.AtomRegistry);
|
|
29
|
+
const { object: chat } = yield* Operation.invoke(CreateChat, {
|
|
30
|
+
db
|
|
31
|
+
});
|
|
32
|
+
if (objects && objects.length > 0 || blueprints && blueprints.length > 0) {
|
|
33
|
+
const feedTarget = chat.feed.target;
|
|
34
|
+
invariant(feedTarget, "Chat feed not found.", {
|
|
35
|
+
F: __dxlog_file,
|
|
36
|
+
L: 33,
|
|
37
|
+
S: this,
|
|
38
|
+
A: [
|
|
39
|
+
"feedTarget",
|
|
40
|
+
"'Chat feed not found.'"
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
const client = yield* Capability.get(ClientCapabilities.Client);
|
|
44
|
+
const space = client.spaces.get(db.spaceId);
|
|
45
|
+
invariant(space, "Space not found.", {
|
|
46
|
+
F: __dxlog_file,
|
|
47
|
+
L: 36,
|
|
48
|
+
S: this,
|
|
49
|
+
A: [
|
|
50
|
+
"space",
|
|
51
|
+
"'Space not found.'"
|
|
52
|
+
]
|
|
53
|
+
});
|
|
54
|
+
const feedServiceLayer = createFeedServiceLayer(space.queues);
|
|
55
|
+
const runtime2 = yield* Effect.runtime().pipe(Effect.provide(feedServiceLayer));
|
|
56
|
+
const binder = new AiContextBinder({
|
|
57
|
+
feed: feedTarget,
|
|
58
|
+
runtime: runtime2,
|
|
59
|
+
registry
|
|
60
|
+
});
|
|
61
|
+
yield* Effect.promise(() => binder.use(async (b) => {
|
|
62
|
+
const bindingProps = {};
|
|
63
|
+
if (objects && objects.length > 0) {
|
|
64
|
+
bindingProps.objects = objects.map((obj) => Ref.make(obj));
|
|
65
|
+
}
|
|
66
|
+
if (blueprints && blueprints.length > 0) {
|
|
67
|
+
const allBlueprints = await db.query(Filter.type(Blueprint.Blueprint)).run();
|
|
68
|
+
const matchedBlueprints = allBlueprints.filter((blueprint) => blueprint.key && blueprints.includes(blueprint.key));
|
|
69
|
+
if (matchedBlueprints.length > 0) {
|
|
70
|
+
bindingProps.blueprints = matchedBlueprints.map((blueprint) => Ref.make(blueprint));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
await b.bind(bindingProps);
|
|
74
|
+
}));
|
|
75
|
+
}
|
|
76
|
+
if (background) {
|
|
77
|
+
const promptRef = typeof prompt === "string" ? Ref.make(Prompt.make({
|
|
78
|
+
instructions: prompt,
|
|
79
|
+
blueprints: [],
|
|
80
|
+
context: []
|
|
81
|
+
})) : prompt;
|
|
82
|
+
yield* Database.flush();
|
|
83
|
+
const computeRuntime = yield* Capability.get(AutomationCapabilities.ComputeRuntime);
|
|
84
|
+
const runtime2 = yield* computeRuntime.getRuntime(db.spaceId).runtimeEffect;
|
|
85
|
+
yield* Operation.invoke(AgentPrompt, {
|
|
86
|
+
prompt: promptRef,
|
|
87
|
+
input: {},
|
|
88
|
+
chat: Ref.make(chat)
|
|
89
|
+
}).pipe(Effect.provide(runtime2), Effect.catchAll((error) => {
|
|
90
|
+
log.catch(error, void 0, {
|
|
91
|
+
F: __dxlog_file,
|
|
92
|
+
L: 84,
|
|
93
|
+
S: this,
|
|
94
|
+
C: (f, a) => f(...a)
|
|
95
|
+
});
|
|
96
|
+
return Effect.void;
|
|
97
|
+
}));
|
|
98
|
+
return {
|
|
99
|
+
object: chat
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
const chatPath = getObjectPathFromObject(chat);
|
|
103
|
+
const pendingPromptText = typeof prompt === "string" ? prompt : yield* Effect.gen(function* () {
|
|
104
|
+
const promptObj = yield* Effect.promise(() => prompt.load());
|
|
105
|
+
const source = yield* Effect.promise(() => promptObj.instructions.source.load());
|
|
106
|
+
invariant(Obj.instanceOf(Text.Text, source), "Prompt template source must be Text.", {
|
|
107
|
+
F: __dxlog_file,
|
|
108
|
+
L: 98,
|
|
109
|
+
S: this,
|
|
110
|
+
A: [
|
|
111
|
+
"Obj.instanceOf(Text.Text, source)",
|
|
112
|
+
"'Prompt template source must be Text.'"
|
|
113
|
+
]
|
|
114
|
+
});
|
|
115
|
+
return Template.process(source.content ?? "");
|
|
116
|
+
});
|
|
117
|
+
yield* Capabilities.updateAtomValue(AssistantCapabilities.State, (current) => ({
|
|
118
|
+
...current,
|
|
119
|
+
pendingPrompts: {
|
|
120
|
+
...current.pendingPrompts,
|
|
121
|
+
[chatPath]: pendingPromptText
|
|
122
|
+
}
|
|
123
|
+
}));
|
|
124
|
+
yield* Operation.invoke(LayoutOperation.Open, {
|
|
125
|
+
subject: [
|
|
126
|
+
chatPath
|
|
127
|
+
]
|
|
128
|
+
});
|
|
129
|
+
return {
|
|
130
|
+
object: chat
|
|
131
|
+
};
|
|
132
|
+
}, (effect, { db }) => effect.pipe(Effect.provide(Database.layer(db))))));
|
|
133
|
+
var run_prompt_in_new_chat_default = handler;
|
|
134
|
+
export {
|
|
135
|
+
run_prompt_in_new_chat_default as default
|
|
136
|
+
};
|
|
137
|
+
//# sourceMappingURL=run-prompt-in-new-chat-OUYKCMQ7.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/run-prompt-in-new-chat.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { getObjectPathFromObject, LayoutOperation } from '@dxos/app-toolkit';\nimport { AiContextBinder } from '@dxos/assistant';\nimport { AgentPrompt } from '@dxos/assistant-toolkit';\nimport { Blueprint, Prompt, Template } from '@dxos/blueprints';\nimport { Database, Feed, Filter, Obj, Ref } from '@dxos/echo';\nimport { createFeedServiceLayer } from '@dxos/echo-db';\nimport { invariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\nimport { Operation } from '@dxos/operation';\nimport { AutomationCapabilities } from '@dxos/plugin-automation/types';\nimport { ClientCapabilities } from '@dxos/plugin-client/types';\nimport { Text } from '@dxos/schema';\n\nimport { AssistantCapabilities } from '../types';\nimport { CreateChat, RunPromptInNewChat } from './definitions';\n\nconst handler: Operation.WithHandler<typeof RunPromptInNewChat> = RunPromptInNewChat.pipe(\n Operation.withHandler(\n Effect.fnUntraced(\n function* ({ db, prompt, objects, blueprints, background }) {\n const registry = yield* Capability.get(Capabilities.AtomRegistry);\n const { object: chat } = yield* Operation.invoke(CreateChat, { db });\n\n if ((objects && objects.length > 0) || (blueprints && blueprints.length > 0)) {\n const feedTarget = chat.feed.target;\n invariant(feedTarget, 'Chat feed not found.');\n const client = yield* Capability.get(ClientCapabilities.Client);\n const space = client.spaces.get(db.spaceId);\n invariant(space, 'Space not found.');\n const feedServiceLayer = createFeedServiceLayer(space.queues);\n const runtime = yield* Effect.runtime<Feed.FeedService>().pipe(Effect.provide(feedServiceLayer));\n const binder = new AiContextBinder({ feed: feedTarget, runtime, registry });\n yield* Effect.promise(() =>\n binder.use(async (b: AiContextBinder) => {\n const bindingProps: Parameters<AiContextBinder['bind']>[0] = {};\n\n if (objects && objects.length > 0) {\n bindingProps.objects = objects.map((obj) => Ref.make(obj));\n }\n\n if (blueprints && blueprints.length > 0) {\n const allBlueprints = await db.query(Filter.type(Blueprint.Blueprint)).run();\n const matchedBlueprints = allBlueprints.filter(\n (blueprint) => blueprint.key && blueprints.includes(blueprint.key),\n );\n if (matchedBlueprints.length > 0) {\n bindingProps.blueprints = matchedBlueprints.map((blueprint) => Ref.make(blueprint));\n }\n }\n\n await b.bind(bindingProps);\n }),\n );\n }\n\n if (background) {\n const promptRef =\n typeof prompt === 'string'\n ? Ref.make(\n Prompt.make({\n instructions: prompt,\n blueprints: [],\n context: [],\n }),\n )\n : prompt;\n yield* Database.flush();\n const computeRuntime = yield* Capability.get(AutomationCapabilities.ComputeRuntime);\n const runtime = yield* computeRuntime.getRuntime(db.spaceId).runtimeEffect;\n yield* Operation.invoke(AgentPrompt, {\n prompt: promptRef,\n input: {},\n chat: Ref.make(chat),\n }).pipe(\n Effect.provide(runtime),\n Effect.catchAll((error) => {\n log.catch(error);\n return Effect.void;\n }),\n );\n return { object: chat };\n }\n\n const chatPath = getObjectPathFromObject(chat);\n const pendingPromptText =\n typeof prompt === 'string'\n ? prompt\n : yield* Effect.gen(function* () {\n const promptObj = yield* Effect.promise(() => prompt.load());\n const source = yield* Effect.promise(() => promptObj.instructions.source.load());\n invariant(Obj.instanceOf(Text.Text, source), 'Prompt template source must be Text.');\n return Template.process(source.content ?? '');\n });\n yield* Capabilities.updateAtomValue(AssistantCapabilities.State, (current) => ({\n ...current,\n pendingPrompts: { ...current.pendingPrompts, [chatPath]: pendingPromptText },\n }));\n yield* Operation.invoke(LayoutOperation.Open, { subject: [chatPath] });\n return { object: chat };\n },\n (effect, { db }) => effect.pipe(Effect.provide(Database.layer(db))),\n ),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,yBAAyBC,uBAAuB;AACzD,SAASC,uBAAuB;AAChC,SAASC,mBAAmB;AAC5B,SAASC,WAAWC,QAAQC,gBAAgB;AAC5C,SAASC,UAAgBC,QAAQC,KAAKC,WAAW;AACjD,SAASC,8BAA8B;AACvC,SAASC,iBAAiB;AAC1B,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,8BAA8B;AACvC,SAASC,0BAA0B;AACnC,SAASC,YAAY;;AAKrB,IAAMC,UAA4DC,mBAAmBC,KACnFC,UAAUC,YACDC,kBACL,WAAW,EAAEC,IAAIC,QAAQC,SAASC,YAAYC,WAAU,GAAE;AACxD,QAAMC,WAAW,OAAOC,WAAWC,IAAIC,aAAaC,YAAY;AAChE,QAAM,EAAEC,QAAQC,KAAI,IAAK,OAAOd,UAAUe,OAAOC,YAAY;IAAEb;EAAG,CAAA;AAElE,MAAKE,WAAWA,QAAQY,SAAS,KAAOX,cAAcA,WAAWW,SAAS,GAAI;AAC5E,UAAMC,aAAaJ,KAAKK,KAAKC;AAC7BC,cAAUH,YAAY,wBAAA;;;;;;;;;AACtB,UAAMI,SAAS,OAAOb,WAAWC,IAAIa,mBAAmBC,MAAM;AAC9D,UAAMC,QAAQH,OAAOI,OAAOhB,IAAIP,GAAGwB,OAAO;AAC1CN,cAAUI,OAAO,oBAAA;;;;;;;;;AACjB,UAAMG,mBAAmBC,uBAAuBJ,MAAMK,MAAM;AAC5D,UAAMC,WAAU,OAAcA,eAAO,EAAqBhC,KAAYiC,eAAQJ,gBAAAA,CAAAA;AAC9E,UAAMK,SAAS,IAAIC,gBAAgB;MAAEf,MAAMD;MAAYa,SAAAA;MAASvB;IAAS,CAAA;AACzE,WAAc2B,eAAQ,MACpBF,OAAOG,IAAI,OAAOC,MAAAA;AAChB,YAAMC,eAAuD,CAAC;AAE9D,UAAIjC,WAAWA,QAAQY,SAAS,GAAG;AACjCqB,qBAAajC,UAAUA,QAAQkC,IAAI,CAACC,QAAQC,IAAIC,KAAKF,GAAAA,CAAAA;MACvD;AAEA,UAAIlC,cAAcA,WAAWW,SAAS,GAAG;AACvC,cAAM0B,gBAAgB,MAAMxC,GAAGyC,MAAMC,OAAOC,KAAKC,UAAUA,SAAS,CAAA,EAAGC,IAAG;AAC1E,cAAMC,oBAAoBN,cAAcO,OACtC,CAACC,cAAcA,UAAUC,OAAO9C,WAAW+C,SAASF,UAAUC,GAAG,CAAA;AAEnE,YAAIH,kBAAkBhC,SAAS,GAAG;AAChCqB,uBAAahC,aAAa2C,kBAAkBV,IAAI,CAACY,cAAcV,IAAIC,KAAKS,SAAAA,CAAAA;QAC1E;MACF;AAEA,YAAMd,EAAEiB,KAAKhB,YAAAA;IACf,CAAA,CAAA;EAEJ;AAEA,MAAI/B,YAAY;AACd,UAAMgD,YACJ,OAAOnD,WAAW,WACdqC,IAAIC,KACFc,OAAOd,KAAK;MACVe,cAAcrD;MACdE,YAAY,CAAA;MACZoD,SAAS,CAAA;IACX,CAAA,CAAA,IAEFtD;AACN,WAAOuD,SAASC,MAAK;AACrB,UAAMC,iBAAiB,OAAOpD,WAAWC,IAAIoD,uBAAuBC,cAAc;AAClF,UAAMhC,WAAU,OAAO8B,eAAeG,WAAW7D,GAAGwB,OAAO,EAAEsC;AAC7D,WAAOjE,UAAUe,OAAOmD,aAAa;MACnC9D,QAAQmD;MACRY,OAAO,CAAC;MACRrD,MAAM2B,IAAIC,KAAK5B,IAAAA;IACjB,CAAA,EAAGf,KACMiC,eAAQD,QAAAA,GACRqC,gBAAS,CAACC,UAAAA;AACfC,UAAIC,MAAMF,OAAAA,QAAAA;;;;;;AACV,aAAcG;IAChB,CAAA,CAAA;AAEF,WAAO;MAAE3D,QAAQC;IAAK;EACxB;AAEA,QAAM2D,WAAWC,wBAAwB5D,IAAAA;AACzC,QAAM6D,oBACJ,OAAOvE,WAAW,WACdA,SACA,OAAcwE,WAAI,aAAA;AAChB,UAAMC,YAAY,OAAc1C,eAAQ,MAAM/B,OAAO0E,KAAI,CAAA;AACzD,UAAMC,SAAS,OAAc5C,eAAQ,MAAM0C,UAAUpB,aAAasB,OAAOD,KAAI,CAAA;AAC7EzD,cAAU2D,IAAIC,WAAWC,KAAKA,MAAMH,MAAAA,GAAS,wCAAA;;;;;;;;;AAC7C,WAAOI,SAASC,QAAQL,OAAOM,WAAW,EAAA;EAC5C,CAAA;AACN,SAAO1E,aAAa2E,gBAAgBC,sBAAsBC,OAAO,CAACC,aAAa;IAC7E,GAAGA;IACHC,gBAAgB;MAAE,GAAGD,QAAQC;MAAgB,CAACjB,QAAAA,GAAWE;IAAkB;EAC7E,EAAA;AACA,SAAO3E,UAAUe,OAAO4E,gBAAgBC,MAAM;IAAEC,SAAS;MAACpB;;EAAU,CAAA;AACpE,SAAO;IAAE5D,QAAQC;EAAK;AACxB,GACA,CAACgF,QAAQ,EAAE3F,GAAE,MAAO2F,OAAO/F,KAAYiC,eAAQ2B,SAASoC,MAAM5F,EAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA;AAKpE,IAAA,iCAAeN;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "getObjectPathFromObject", "LayoutOperation", "AiContextBinder", "AgentPrompt", "Blueprint", "Prompt", "Template", "Database", "Filter", "Obj", "Ref", "createFeedServiceLayer", "invariant", "log", "Operation", "AutomationCapabilities", "ClientCapabilities", "Text", "handler", "RunPromptInNewChat", "pipe", "Operation", "withHandler", "fnUntraced", "db", "prompt", "objects", "blueprints", "background", "registry", "Capability", "get", "Capabilities", "AtomRegistry", "object", "chat", "invoke", "CreateChat", "length", "feedTarget", "feed", "target", "invariant", "client", "ClientCapabilities", "Client", "space", "spaces", "spaceId", "feedServiceLayer", "createFeedServiceLayer", "queues", "runtime", "provide", "binder", "AiContextBinder", "promise", "use", "b", "bindingProps", "map", "obj", "Ref", "make", "allBlueprints", "query", "Filter", "type", "Blueprint", "run", "matchedBlueprints", "filter", "blueprint", "key", "includes", "bind", "promptRef", "Prompt", "instructions", "context", "Database", "flush", "computeRuntime", "AutomationCapabilities", "ComputeRuntime", "getRuntime", "runtimeEffect", "AgentPrompt", "input", "catchAll", "error", "log", "catch", "void", "chatPath", "getObjectPathFromObject", "pendingPromptText", "gen", "promptObj", "load", "source", "Obj", "instanceOf", "Text", "Template", "process", "content", "updateAtomValue", "AssistantCapabilities", "State", "current", "pendingPrompts", "LayoutOperation", "Open", "subject", "effect", "layer"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
AssistantCapabilities
|
|
4
|
+
} from "./chunk-W3JZ2F4T.mjs";
|
|
5
|
+
import {
|
|
6
|
+
CreateChat,
|
|
7
|
+
SetCurrentChat
|
|
8
|
+
} from "./chunk-PXAJSTGZ.mjs";
|
|
9
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
10
|
+
|
|
11
|
+
// src/operations/set-current-chat.ts
|
|
12
|
+
import * as Effect from "effect/Effect";
|
|
13
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
14
|
+
import { Obj } from "@dxos/echo";
|
|
15
|
+
import { Operation } from "@dxos/operation";
|
|
16
|
+
var handler = SetCurrentChat.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ companionTo, chat }) {
|
|
17
|
+
const companionToId = Obj.getDXN(companionTo).toString();
|
|
18
|
+
if (chat) {
|
|
19
|
+
const chatId = Obj.getDXN(chat).toString();
|
|
20
|
+
yield* Capabilities.updateAtomValue(AssistantCapabilities.State, (current) => ({
|
|
21
|
+
...current,
|
|
22
|
+
currentChat: {
|
|
23
|
+
...current.currentChat,
|
|
24
|
+
[companionToId]: chatId
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
} else {
|
|
28
|
+
const operationInvoker = yield* Capability.get(Capabilities.OperationInvoker);
|
|
29
|
+
const db = Obj.getDatabase(companionTo);
|
|
30
|
+
if (db) {
|
|
31
|
+
const { data } = yield* Effect.promise(() => operationInvoker.invokePromise(CreateChat, {
|
|
32
|
+
db,
|
|
33
|
+
addToSpace: false
|
|
34
|
+
}));
|
|
35
|
+
if (data?.object) {
|
|
36
|
+
yield* Capabilities.updateAtomValue(AssistantCapabilities.CompanionChatCache, (current) => ({
|
|
37
|
+
...current,
|
|
38
|
+
[companionToId]: data.object
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
yield* Capabilities.updateAtomValue(AssistantCapabilities.State, (current) => ({
|
|
43
|
+
...current,
|
|
44
|
+
currentChat: {
|
|
45
|
+
...current.currentChat,
|
|
46
|
+
[companionToId]: void 0
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
}
|
|
50
|
+
})));
|
|
51
|
+
var set_current_chat_default = handler;
|
|
52
|
+
export {
|
|
53
|
+
set_current_chat_default as default
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=set-current-chat-SMXZJD3F.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/set-current-chat.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Obj } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { AssistantCapabilities } from '../types';\nimport { CreateChat, SetCurrentChat } from './definitions';\n\nconst handler: Operation.WithHandler<typeof SetCurrentChat> = SetCurrentChat.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ companionTo, chat }) {\n const companionToId = Obj.getDXN(companionTo).toString();\n\n if (chat) {\n const chatId = Obj.getDXN(chat).toString();\n yield* Capabilities.updateAtomValue(AssistantCapabilities.State, (current) => ({\n ...current,\n currentChat: { ...current.currentChat, [companionToId]: chatId },\n }));\n } else {\n // New thread: create a transient chat and cache it so the graph connector\n // can resolve it immediately via the cache fallback tier.\n const operationInvoker = yield* Capability.get(Capabilities.OperationInvoker);\n const db = Obj.getDatabase(companionTo);\n if (db) {\n const { data } = yield* Effect.promise(() =>\n operationInvoker.invokePromise(CreateChat, { db, addToSpace: false }),\n );\n if (data?.object) {\n yield* Capabilities.updateAtomValue(AssistantCapabilities.CompanionChatCache, (current) => ({\n ...current,\n [companionToId]: data.object,\n }));\n }\n }\n yield* Capabilities.updateAtomValue(AssistantCapabilities.State, (current) => ({\n ...current,\n currentChat: { ...current.currentChat, [companionToId]: undefined },\n }));\n }\n }),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAK1B,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,aAAaC,KAAI,GAAE;AAChD,QAAMC,gBAAgBC,IAAIC,OAAOJ,WAAAA,EAAaK,SAAQ;AAEtD,MAAIJ,MAAM;AACR,UAAMK,SAASH,IAAIC,OAAOH,IAAAA,EAAMI,SAAQ;AACxC,WAAOE,aAAaC,gBAAgBC,sBAAsBC,OAAO,CAACC,aAAa;MAC7E,GAAGA;MACHC,aAAa;QAAE,GAAGD,QAAQC;QAAa,CAACV,aAAAA,GAAgBI;MAAO;IACjE,EAAA;EACF,OAAO;AAGL,UAAMO,mBAAmB,OAAOC,WAAWC,IAAIR,aAAaS,gBAAgB;AAC5E,UAAMC,KAAKd,IAAIe,YAAYlB,WAAAA;AAC3B,QAAIiB,IAAI;AACN,YAAM,EAAEE,KAAI,IAAK,OAAcC,eAAQ,MACrCP,iBAAiBQ,cAAcC,YAAY;QAAEL;QAAIM,YAAY;MAAM,CAAA,CAAA;AAErE,UAAIJ,MAAMK,QAAQ;AAChB,eAAOjB,aAAaC,gBAAgBC,sBAAsBgB,oBAAoB,CAACd,aAAa;UAC1F,GAAGA;UACH,CAACT,aAAAA,GAAgBiB,KAAKK;QACxB,EAAA;MACF;IACF;AACA,WAAOjB,aAAaC,gBAAgBC,sBAAsBC,OAAO,CAACC,aAAa;MAC7E,GAAGA;MACHC,aAAa;QAAE,GAAGD,QAAQC;QAAa,CAACV,aAAAA,GAAgBwB;MAAU;IACpE,EAAA;EACF;AACF,CAAA,CAAA,CAAA;AAIJ,IAAA,2BAAehC;",
|
|
6
|
+
"names": ["Effect", "Capabilities", "Capability", "Obj", "Operation", "handler", "SetCurrentChat", "pipe", "Operation", "withHandler", "fnUntraced", "companionTo", "chat", "companionToId", "Obj", "getDXN", "toString", "chatId", "Capabilities", "updateAtomValue", "AssistantCapabilities", "State", "current", "currentChat", "operationInvoker", "Capability", "get", "OperationInvoker", "db", "getDatabase", "data", "promise", "invokePromise", "CreateChat", "addToSpace", "object", "CompanionChatCache", "undefined"]
|
|
7
|
+
}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
3
|
ApiAuthorization,
|
|
4
|
-
|
|
4
|
+
AssistantCapabilities,
|
|
5
|
+
AssistantEvents,
|
|
5
6
|
Assistant_exports,
|
|
6
7
|
LLM_PROVIDERS,
|
|
7
8
|
ServiceType,
|
|
8
9
|
categoryIcons
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import "../chunk-KOC6ESG7.mjs";
|
|
10
|
+
} from "../chunk-W3JZ2F4T.mjs";
|
|
11
11
|
import "../chunk-HSLMI22Q.mjs";
|
|
12
12
|
export {
|
|
13
13
|
ApiAuthorization,
|
|
14
14
|
Assistant_exports as Assistant,
|
|
15
|
-
|
|
15
|
+
AssistantCapabilities,
|
|
16
|
+
AssistantEvents,
|
|
16
17
|
LLM_PROVIDERS,
|
|
17
18
|
ServiceType,
|
|
18
19
|
categoryIcons
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
|
|
2
|
+
import {
|
|
3
|
+
UpdateChatName
|
|
4
|
+
} from "./chunk-PXAJSTGZ.mjs";
|
|
5
|
+
import "./chunk-HSLMI22Q.mjs";
|
|
6
|
+
|
|
7
|
+
// src/operations/update-chat-name.ts
|
|
8
|
+
import * as LanguageModel from "@effect/ai/LanguageModel";
|
|
9
|
+
import * as Prompt from "@effect/ai/Prompt";
|
|
10
|
+
import * as Effect from "effect/Effect";
|
|
11
|
+
import { AiPreprocessor, AiService } from "@dxos/ai";
|
|
12
|
+
import { Database, Feed, Filter, Obj } from "@dxos/echo";
|
|
13
|
+
import { log } from "@dxos/log";
|
|
14
|
+
import { Operation } from "@dxos/operation";
|
|
15
|
+
import { Message } from "@dxos/types";
|
|
16
|
+
import { trim } from "@dxos/util";
|
|
17
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-assistant/src/operations/update-chat-name.ts";
|
|
18
|
+
var handler = UpdateChatName.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ chat }) {
|
|
19
|
+
log.info("updating chat name", {
|
|
20
|
+
chat
|
|
21
|
+
}, {
|
|
22
|
+
F: __dxlog_file,
|
|
23
|
+
L: 22,
|
|
24
|
+
S: this,
|
|
25
|
+
C: (f, a) => f(...a)
|
|
26
|
+
});
|
|
27
|
+
const feed = yield* Database.load(chat.feed);
|
|
28
|
+
const history = yield* Feed.runQuery(feed, Filter.type(Message.Message));
|
|
29
|
+
log.info("history", {
|
|
30
|
+
history: history.length
|
|
31
|
+
}, {
|
|
32
|
+
F: __dxlog_file,
|
|
33
|
+
L: 27,
|
|
34
|
+
S: this,
|
|
35
|
+
C: (f, a) => f(...a)
|
|
36
|
+
});
|
|
37
|
+
const system = trim`
|
|
38
|
+
It is extremely important that you respond only with the title and nothing else.
|
|
39
|
+
Do not use markdown or other formatting.
|
|
40
|
+
If you cannot do this effectively respond with "New Chat".
|
|
41
|
+
|
|
42
|
+
<example_reply>
|
|
43
|
+
Fishing Trip
|
|
44
|
+
</example_reply>
|
|
45
|
+
`;
|
|
46
|
+
const prompt = "Suggest a name for this chat";
|
|
47
|
+
const historyPrompt = yield* AiPreprocessor.preprocessPrompt(history, {
|
|
48
|
+
system,
|
|
49
|
+
cacheControl: "ephemeral"
|
|
50
|
+
});
|
|
51
|
+
const response = yield* LanguageModel.generateText({
|
|
52
|
+
prompt: Prompt.merge(historyPrompt, prompt)
|
|
53
|
+
});
|
|
54
|
+
const newName = response.text.replaceAll(/[^a-zA-Z0-9\s]/g, "").trim();
|
|
55
|
+
Obj.change(chat, (chat2) => {
|
|
56
|
+
chat2.name = newName;
|
|
57
|
+
});
|
|
58
|
+
log.info("chat name updated", {
|
|
59
|
+
chat,
|
|
60
|
+
newName: chat.name
|
|
61
|
+
}, {
|
|
62
|
+
F: __dxlog_file,
|
|
63
|
+
L: 54,
|
|
64
|
+
S: this,
|
|
65
|
+
C: (f, a) => f(...a)
|
|
66
|
+
});
|
|
67
|
+
}, Effect.provide(AiService.model("@anthropic/claude-haiku-4-5")))));
|
|
68
|
+
var update_chat_name_default = handler;
|
|
69
|
+
export {
|
|
70
|
+
update_chat_name_default as default
|
|
71
|
+
};
|
|
72
|
+
//# sourceMappingURL=update-chat-name-HM2P4NSI.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/operations/update-chat-name.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as LanguageModel from '@effect/ai/LanguageModel';\nimport * as Prompt from '@effect/ai/Prompt';\nimport * as Effect from 'effect/Effect';\n\nimport { AiPreprocessor, AiService } from '@dxos/ai';\nimport { Database, Feed, Filter, Obj } from '@dxos/echo';\nimport { log } from '@dxos/log';\nimport { Operation } from '@dxos/operation';\nimport { Message } from '@dxos/types';\nimport { trim } from '@dxos/util';\n\nimport { UpdateChatName } from './definitions';\n\nconst handler: Operation.WithHandler<typeof UpdateChatName> = UpdateChatName.pipe(\n Operation.withHandler(\n Effect.fnUntraced(\n function* ({ chat }) {\n log.info('updating chat name', { chat });\n\n const feed = yield* Database.load(chat.feed);\n const history = yield* Feed.runQuery(feed, Filter.type(Message.Message));\n\n log.info('history', { history: history.length });\n\n const system = trim`\n It is extremely important that you respond only with the title and nothing else.\n Do not use markdown or other formatting.\n If you cannot do this effectively respond with \"New Chat\".\n\n <example_reply>\n Fishing Trip\n </example_reply>\n `;\n const prompt = 'Suggest a name for this chat';\n\n const historyPrompt = yield* AiPreprocessor.preprocessPrompt(history, {\n system,\n cacheControl: 'ephemeral',\n });\n\n const response = yield* LanguageModel.generateText({\n prompt: Prompt.merge(historyPrompt, prompt),\n });\n\n const newName = response.text.replaceAll(/[^a-zA-Z0-9\\s]/g, '').trim();\n\n Obj.change(chat, (chat) => {\n chat.name = newName;\n });\n log.info('chat name updated', { chat, newName: chat.name });\n },\n Effect.provide(AiService.model('@anthropic/claude-haiku-4-5')),\n ),\n ),\n);\n\nexport default handler;\n"],
|
|
5
|
+
"mappings": ";;;;;;;AAIA,YAAYA,mBAAmB;AAC/B,YAAYC,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,gBAAgBC,iBAAiB;AAC1C,SAASC,UAAUC,MAAMC,QAAQC,WAAW;AAC5C,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,eAAe;AACxB,SAASC,YAAY;;AAIrB,IAAMC,UAAwDC,eAAeC,KAC3EC,UAAUC,YACDC,kBACL,WAAW,EAAEC,KAAI,GAAE;AACjBC,MAAIC,KAAK,sBAAsB;IAAEF;EAAK,GAAA;;;;;;AAEtC,QAAMG,OAAO,OAAOC,SAASC,KAAKL,KAAKG,IAAI;AAC3C,QAAMG,UAAU,OAAOC,KAAKC,SAASL,MAAMM,OAAOC,KAAKC,QAAQA,OAAO,CAAA;AAEtEV,MAAIC,KAAK,WAAW;IAAEI,SAASA,QAAQM;EAAO,GAAA;;;;;;AAE9C,QAAMC,SAASC;;;;;;;;;AASf,QAAMC,SAAS;AAEf,QAAMC,gBAAgB,OAAOC,eAAeC,iBAAiBZ,SAAS;IACpEO;IACAM,cAAc;EAChB,CAAA;AAEA,QAAMC,WAAW,OAAqBC,2BAAa;IACjDN,QAAeO,aAAMN,eAAeD,MAAAA;EACtC,CAAA;AAEA,QAAMQ,UAAUH,SAASI,KAAKC,WAAW,mBAAmB,EAAA,EAAIX,KAAI;AAEpEY,MAAIC,OAAO3B,MAAM,CAACA,UAAAA;AAChBA,IAAAA,MAAK4B,OAAOL;EACd,CAAA;AACAtB,MAAIC,KAAK,qBAAqB;IAAEF;IAAMuB,SAASvB,KAAK4B;EAAK,GAAA;;;;;;AAC3D,GACOC,eAAQC,UAAUC,MAAM,6BAAA,CAAA,CAAA,CAAA,CAAA;AAKrC,IAAA,2BAAerC;",
|
|
6
|
+
"names": ["LanguageModel", "Prompt", "Effect", "AiPreprocessor", "AiService", "Database", "Feed", "Filter", "Obj", "log", "Operation", "Message", "trim", "handler", "UpdateChatName", "pipe", "Operation", "withHandler", "fnUntraced", "chat", "log", "info", "feed", "Database", "load", "history", "Feed", "runQuery", "Filter", "type", "Message", "length", "system", "trim", "prompt", "historyPrompt", "AiPreprocessor", "preprocessPrompt", "cacheControl", "response", "generateText", "merge", "newName", "text", "replaceAll", "Obj", "change", "name", "provide", "AiService", "model"]
|
|
7
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantPlugin.d.ts","sourceRoot":"","sources":["../../../src/AssistantPlugin.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AssistantPlugin.d.ts","sourceRoot":"","sources":["../../../src/AssistantPlugin.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAiD,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAqC5F,eAAO,MAAM,eAAe,4BA+K3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/assistant/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAqB1E,QAAA,MAAM,SAAS,EAAE,eAAe,CAAC,mBAGhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.test.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/assistant/blueprint.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/assistant/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/blueprints/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<[Capability.Capability<Capability.InterfaceDef<AppCapabilities.AiServiceLayer>>], never, Capability.Service>;
|
|
4
5
|
export default _default;
|
|
5
6
|
//# sourceMappingURL=ai-service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ai-service.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/ai-service.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"ai-service.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/ai-service.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;;AAEpD,wBAkBE"}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { GraphBuilder } from '@dxos/plugin-graph';
|
|
4
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<GraphBuilder.BuilderExtensions>>, never, Capability.Service>;
|
|
3
5
|
export default _default;
|
|
4
6
|
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAW/D,OAAO,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAC;;AAerE,wBAkKE"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
declare const blueprintDefinition: () => Effect.Effect<Capability.Capability<unknown>[]>;
|
|
4
|
+
export default blueprintDefinition;
|
|
3
5
|
//# sourceMappingURL=blueprint-definition.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"blueprint-definition.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/blueprint-definition.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AA0B/D,QAAA,MAAM,mBAAmB,EAAE,MAAM,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAuB9E,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
/**
|
|
4
|
+
* Non-React capability that watches deck companion state and provisions transient chats
|
|
5
|
+
* for active planks when the assistant companion is selected.
|
|
6
|
+
*/
|
|
7
|
+
declare const _default: (props: void) => Effect.Effect<Capability.Capability<Capability.InterfaceDef<null>>, Error, Capability.Service>;
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=companion-chat-provisioner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"companion-chat-provisioner.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/companion-chat-provisioner.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAc/D;;;GAGG;;AACH,wBA8GE"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
4
|
+
export type EdgeModelResolverCapabilities = [Capability.Capability<typeof AppCapabilities.AiModelResolver>];
|
|
5
|
+
declare const edgeModelResolver: (props: []) => Effect.Effect<EdgeModelResolverCapabilities, Error, Capability.Service>;
|
|
6
|
+
export default edgeModelResolver;
|
|
5
7
|
//# sourceMappingURL=edge-model-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-model-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/edge-model-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"edge-model-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/edge-model-resolver.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,MAAM,6BAA6B,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,eAAe,CAAC,CAAC,CAAC;AAE5G,QAAA,MAAM,iBAAiB,wFAetB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,10 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
1
|
+
import { Capability } from '@dxos/app-framework';
|
|
2
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
3
|
+
export declare const AiService: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.AiServiceLayer>>], Error>;
|
|
4
|
+
export declare const AppGraphBuilder: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-graph").BuilderExtensions>>, Error>;
|
|
5
|
+
export declare const BlueprintDefinition: Capability.LazyCapability<void, Capability.Capability<unknown>[], Error>;
|
|
6
|
+
export declare const CompanionChatProvisioner: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<null>>, Error>;
|
|
7
|
+
export declare const EdgeModelResolver: Capability.LazyCapability<[], import("./edge-model-resolver").EdgeModelResolverCapabilities, Error>;
|
|
8
|
+
export declare const LocalModelResolver: Capability.LazyCapability<[], Capability.ModuleReturn, Error>;
|
|
9
|
+
export declare const MarkdownExtension: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/plugin-markdown").MarkdownExtensionProvider[]>>, Error>;
|
|
10
|
+
export declare const Migrations: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/echo/Migration").ObjectMigration[]>>, Error>;
|
|
11
|
+
export declare const OperationHandler: Capability.LazyCapability<OperationHandlerSet.OperationHandlerSet, Capability.ModuleReturn, Error>;
|
|
12
|
+
export declare const ReactSurface: Capability.LazyCapability<void, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-framework/Capabilities").ReactSurface>>, Error>;
|
|
13
|
+
export declare const Settings: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<import("../types/Settings").Settings, import("../types/Settings").Settings>>>, Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.Settings>>], Error>;
|
|
14
|
+
export declare const AssistantState: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<{
|
|
15
|
+
currentChat: {
|
|
16
|
+
readonly [x: string]: string | undefined;
|
|
17
|
+
};
|
|
18
|
+
pendingPrompts: {
|
|
19
|
+
readonly [x: string]: string | undefined;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
currentChat: {
|
|
23
|
+
readonly [x: string]: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
pendingPrompts: {
|
|
26
|
+
readonly [x: string]: string | undefined;
|
|
27
|
+
};
|
|
28
|
+
}>>>, Capability.Capability<Capability.InterfaceDef<import("@effect-atom/atom/Atom").Writable<Record<string, import("@dxos/echo/Obj").Unknown | undefined>, Record<string, import("@dxos/echo/Obj").Unknown | undefined>>>>], Error>;
|
|
29
|
+
export declare const Toolkit: Capability.LazyCapability<void, [Capability.Capability<Capability.InterfaceDef<import("@dxos/app-toolkit").AppCapabilities.Toolkit>>], Error>;
|
|
10
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,eAAO,MAAM,SAAS,sJAA6D,CAAC;AACpF,eAAO,MAAM,eAAe,qIAA0E,CAAC;AACvG,eAAO,MAAM,mBAAmB,0EAAiF,CAAC;AAClH,eAAO,MAAM,wBAAwB,8FAGpC,CAAC;AACF,eAAO,MAAM,iBAAiB,qGAA8E,CAAC;AAC7G,eAAO,MAAM,kBAAkB,+DAAgF,CAAC;AAChH,eAAO,MAAM,iBAAiB,qJAAmE,CAAC;AAClG,eAAO,MAAM,UAAU,0IAAuE,CAAC;AAC/F,eAAO,MAAM,gBAAgB,oGAG5B,CAAC;AACF,eAAO,MAAM,YAAY,iJAAmE,CAAC;AAC7F,eAAO,MAAM,QAAQ,uTAA0D,CAAC;AAChF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;oOAA6D,CAAC;AACzF,eAAO,MAAM,OAAO,+IAAwD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import { Capability } from '@dxos/app-framework';
|
|
3
|
+
/**
|
|
4
|
+
* To start LM Studio server:
|
|
5
|
+
* ```bash
|
|
6
|
+
* ~/.lmstudio/bin/lms server start --cors
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* To start Ollama server:
|
|
10
|
+
* ```bash
|
|
11
|
+
* OLLAMA_ORIGINS="*" ollama serve
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
declare const localModelResolver: (props: []) => Effect.Effect<Capability.ModuleReturn, Error, Capability.Service>;
|
|
15
|
+
export default localModelResolver;
|
|
16
|
+
//# sourceMappingURL=local-model-resolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"local-model-resolver.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/local-model-resolver.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAIxC,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAGjD;;;;;;;;;;GAUG;AACH,QAAA,MAAM,kBAAkB,kFAoBvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|