@dxos/plugin-assistant 0.8.4-main.c85a9c8dae → 0.8.4-main.d9fc60f731
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/LICENSE +102 -5
- package/PLUGIN.mdl +439 -0
- package/README.md +1 -1
- package/dist/lib/neutral/AgentArticle-OYQPCK3Q.mjs +161 -0
- package/dist/lib/neutral/AgentArticle-OYQPCK3Q.mjs.map +7 -0
- package/dist/lib/neutral/AgentProperties-W6LD56IB.mjs +40 -0
- package/dist/lib/neutral/AgentProperties-W6LD56IB.mjs.map +7 -0
- package/dist/lib/neutral/AssistantPlugin.mjs +10 -0
- package/dist/lib/neutral/AssistantPlugin.node.mjs +66 -0
- package/dist/lib/neutral/AssistantPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/AssistantPlugin.workerd.mjs +40 -0
- package/dist/lib/neutral/AssistantPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/AssistantSettings-GG52BLKS.mjs +40 -0
- package/dist/lib/neutral/AssistantSettings-GG52BLKS.mjs.map +7 -0
- package/dist/lib/{browser/BlueprintArticle-CCS25MNW.mjs → neutral/BlueprintArticle-ZBOZNZM7.mjs} +7 -16
- package/dist/lib/neutral/BlueprintArticle-ZBOZNZM7.mjs.map +7 -0
- package/dist/lib/neutral/ChatArticle-PWD4OEFZ.mjs +8 -0
- package/dist/lib/neutral/ChatCompanion-TPY7HF3C.mjs +122 -0
- package/dist/lib/neutral/ChatCompanion-TPY7HF3C.mjs.map +7 -0
- package/dist/lib/{browser/ChatDialog-AET7GVIB.mjs → neutral/ChatDialog-DCA6FLOV.mjs} +16 -28
- package/dist/lib/neutral/ChatDialog-DCA6FLOV.mjs.map +7 -0
- package/dist/lib/neutral/PlanArticle-TS5ULWYS.mjs +28 -0
- package/dist/lib/neutral/PlanArticle-TS5ULWYS.mjs.map +7 -0
- package/dist/lib/neutral/RoutineArticle-5NYXHRG6.mjs +119 -0
- package/dist/lib/neutral/RoutineArticle-5NYXHRG6.mjs.map +7 -0
- package/dist/lib/neutral/RoutineList-SO5ETHNT.mjs +48 -0
- package/dist/lib/neutral/RoutineList-SO5ETHNT.mjs.map +7 -0
- package/dist/lib/neutral/RoutineProperties-FISLMW2R.mjs +17 -0
- package/dist/lib/neutral/RoutineProperties-FISLMW2R.mjs.map +7 -0
- package/dist/lib/neutral/TracePanel-CHJHFTTQ.mjs +136 -0
- package/dist/lib/neutral/TracePanel-CHJHFTTQ.mjs.map +7 -0
- package/dist/lib/neutral/TriggerStatus-X7Y5JFZJ.mjs +93 -0
- package/dist/lib/neutral/TriggerStatus-X7Y5JFZJ.mjs.map +7 -0
- package/dist/lib/neutral/ai-context-IABBIEHG.mjs +42 -0
- package/dist/lib/neutral/ai-context-IABBIEHG.mjs.map +7 -0
- package/dist/lib/neutral/ai-service-3SH2UQIR.mjs +42 -0
- package/dist/lib/neutral/ai-service-3SH2UQIR.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-RJW5O57E.mjs +199 -0
- package/dist/lib/neutral/app-graph-builder-RJW5O57E.mjs.map +7 -0
- package/dist/lib/neutral/blueprint-definition-VXJYQ5AE.mjs +32 -0
- package/dist/lib/neutral/blueprint-definition-VXJYQ5AE.mjs.map +7 -0
- package/dist/lib/{browser → neutral}/blueprints/index.mjs +1 -1
- package/dist/lib/neutral/capabilities/index.mjs +37 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-47OH7ZF6.mjs +8 -0
- package/dist/lib/neutral/chunk-47OH7ZF6.mjs.map +7 -0
- package/dist/lib/neutral/chunk-5H6UJHLF.mjs +30 -0
- package/dist/lib/neutral/chunk-5H6UJHLF.mjs.map +7 -0
- package/dist/lib/neutral/chunk-6BUTAYVO.mjs +123 -0
- package/dist/lib/neutral/chunk-6BUTAYVO.mjs.map +7 -0
- package/dist/lib/neutral/chunk-A2XIILMZ.mjs +107 -0
- package/dist/lib/neutral/chunk-A2XIILMZ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-UWI53RCD.mjs +386 -0
- package/dist/lib/neutral/chunk-UWI53RCD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-XYHPOGTK.mjs +43 -0
- package/dist/lib/neutral/chunk-XYHPOGTK.mjs.map +7 -0
- package/dist/lib/neutral/companion-chat-provisioner-7RTSXL6M.mjs +116 -0
- package/dist/lib/neutral/companion-chat-provisioner-7RTSXL6M.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +2384 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +29 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-chat-67GZNG3T.mjs +54 -0
- package/dist/lib/neutral/create-chat-67GZNG3T.mjs.map +7 -0
- package/dist/lib/neutral/create-object-XPVVVEKF.mjs +89 -0
- package/dist/lib/neutral/create-object-XPVVVEKF.mjs.map +7 -0
- package/dist/lib/neutral/edge-model-resolver-7SMCGDRL.mjs +50 -0
- package/dist/lib/neutral/edge-model-resolver-7SMCGDRL.mjs.map +7 -0
- package/dist/lib/neutral/ensure-companion-chat-AMOF3C66.mjs +58 -0
- package/dist/lib/neutral/ensure-companion-chat-AMOF3C66.mjs.map +7 -0
- package/dist/lib/neutral/execution-graph/index.mjs +658 -0
- package/dist/lib/neutral/execution-graph/index.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +965 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +32 -0
- package/dist/lib/{browser/local-model-resolver-CGRQH37T.mjs → neutral/local-model-resolver-I2BENFFS.mjs} +8 -4
- package/dist/lib/neutral/local-model-resolver-I2BENFFS.mjs.map +7 -0
- package/dist/lib/neutral/markdown-KTBFOMFM.mjs +110 -0
- package/dist/lib/neutral/markdown-KTBFOMFM.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +12 -0
- package/dist/lib/neutral/migrations-7DEMVBOG.mjs +28 -0
- package/dist/lib/neutral/migrations-7DEMVBOG.mjs.map +7 -0
- package/dist/lib/neutral/on-create-space-Q2R7OSP6.mjs +19 -0
- package/dist/lib/neutral/on-create-space-Q2R7OSP6.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-SF36MOB5.mjs +13 -0
- package/dist/lib/neutral/operation-handler-SF36MOB5.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-XRTBW5OJ.mjs +174 -0
- package/dist/lib/neutral/react-surface-XRTBW5OJ.mjs.map +7 -0
- package/dist/lib/neutral/resolve-navigation-targets-ZHIMMH7L.mjs +22 -0
- package/dist/lib/neutral/resolve-navigation-targets-ZHIMMH7L.mjs.map +7 -0
- package/dist/lib/neutral/run-prompt-in-new-chat-NRDYPCJK.mjs +102 -0
- package/dist/lib/neutral/run-prompt-in-new-chat-NRDYPCJK.mjs.map +7 -0
- package/dist/lib/neutral/set-current-chat-VWBPSIMZ.mjs +48 -0
- package/dist/lib/neutral/set-current-chat-VWBPSIMZ.mjs.map +7 -0
- package/dist/lib/{browser/settings-YREVQAZ5.mjs → neutral/settings-W4BLWQ53.mjs} +6 -11
- package/dist/lib/neutral/settings-W4BLWQ53.mjs.map +7 -0
- package/dist/lib/neutral/state-H3G7QCU6.mjs +28 -0
- package/dist/lib/neutral/state-H3G7QCU6.mjs.map +7 -0
- package/dist/lib/neutral/testing.mjs +8 -0
- package/dist/lib/neutral/toggle-trace-panel-debug-JGTB6KVJ.mjs +21 -0
- package/dist/lib/neutral/toggle-trace-panel-debug-JGTB6KVJ.mjs.map +7 -0
- package/dist/lib/neutral/toolkit-GVWXPDLJ.mjs +14 -0
- package/dist/lib/neutral/toolkit-GVWXPDLJ.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +175 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +20 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/lib/neutral/update-chat-name-ENXRUMDJ.mjs +54 -0
- package/dist/lib/neutral/update-chat-name-ENXRUMDJ.mjs.map +7 -0
- package/dist/types/src/AssistantPlugin.d.ts +3 -1
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/AssistantPlugin.node.d.ts +5 -0
- package/dist/types/src/AssistantPlugin.node.d.ts.map +1 -0
- package/dist/types/src/AssistantPlugin.test.d.ts +2 -0
- package/dist/types/src/AssistantPlugin.test.d.ts.map +1 -0
- package/dist/types/src/AssistantPlugin.workerd.d.ts +4 -0
- package/dist/types/src/AssistantPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/assistant/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/assistant/blueprint.node.test.d.ts +2 -0
- package/dist/types/src/blueprints/assistant/blueprint.node.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/ai-context.d.ts +6 -0
- package/dist/types/src/capabilities/ai-context.d.ts.map +1 -0
- 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.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/create-object.d.ts +31 -0
- package/dist/types/src/capabilities/create-object.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 +57 -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/{repair/repair.d.ts → markdown.d.ts} +2 -3
- package/dist/types/src/capabilities/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/migrations.d.ts +6 -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.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.map +1 -0
- package/dist/types/src/components/AgentProperties/AgentProperties.d.ts +7 -0
- package/dist/types/src/components/AgentProperties/AgentProperties.d.ts.map +1 -0
- package/dist/types/src/components/AgentProperties/AgentProperties.stories.d.ts +15 -0
- package/dist/types/src/components/AgentProperties/AgentProperties.stories.d.ts.map +1 -0
- package/dist/types/src/components/AgentProperties/index.d.ts +2 -0
- package/dist/types/src/components/AgentProperties/index.d.ts.map +1 -0
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +6 -0
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -0
- 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 +2 -0
- package/dist/types/src/components/AssistantSettings/index.d.ts.map +1 -0
- package/dist/types/src/components/Chat/Chat.d.ts +43 -47
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/context.d.ts +29 -0
- package/dist/types/src/components/Chat/context.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/ChatMcpErrors.d.ts +12 -0
- package/dist/types/src/components/ChatPrompt/ChatMcpErrors.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +9 -6
- 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/ChatPrompt.d.ts +28 -0
- package/dist/types/src/components/ChatPrompt/ChatPrompt.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +2 -2
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatStatus.d.ts +20 -0
- package/dist/types/src/components/ChatPrompt/ChatStatus.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/index.d.ts +3 -0
- package/dist/types/src/components/ChatPrompt/index.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 +6 -3
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +10 -430
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Link.d.ts +2 -2
- package/dist/types/src/components/ChatThread/Link.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 +18 -0
- package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/sync.d.ts +46 -19
- 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/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 +12 -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/defaults.d.ts +5 -0
- package/dist/types/src/components/ChatThread/widgets/defaults.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/widgets/index.d.ts +10 -0
- package/dist/types/src/components/ChatThread/widgets/index.d.ts.map +1 -0
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts +11 -0
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts.map +1 -0
- package/dist/types/src/components/ProcessTree/ProcessTree.stories.d.ts +7 -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/RoutineProperties/RoutineProperties.d.ts +7 -0
- package/dist/types/src/components/RoutineProperties/RoutineProperties.d.ts.map +1 -0
- package/dist/types/src/components/RoutineProperties/RoutineProperties.stories.d.ts +15 -0
- package/dist/types/src/components/RoutineProperties/RoutineProperties.stories.d.ts.map +1 -0
- package/dist/types/src/components/RoutineProperties/index.d.ts +2 -0
- package/dist/types/src/components/RoutineProperties/index.d.ts.map +1 -0
- package/dist/types/src/components/TaskList/TaskList.d.ts +10 -0
- package/dist/types/src/components/TaskList/TaskList.d.ts.map +1 -0
- package/dist/types/src/components/TaskList/TaskList.stories.d.ts +16 -0
- package/dist/types/src/components/TaskList/TaskList.stories.d.ts.map +1 -0
- package/dist/types/src/components/TaskList/index.d.ts +2 -0
- package/dist/types/src/components/TaskList/index.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +9 -6
- 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 +4 -5
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +2 -420
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -1
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +4 -13
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +11 -9
- 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 +6 -0
- 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 +19 -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/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 +4 -4
- package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts.map +1 -1
- package/dist/types/src/containers/BlueprintArticle/index.d.ts +1 -2
- package/dist/types/src/containers/BlueprintArticle/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChatArticle/ChatArticle.d.ts +12 -0
- package/dist/types/src/containers/ChatArticle/ChatArticle.d.ts.map +1 -0
- package/dist/types/src/containers/ChatArticle/ChatArticle.stories.d.ts +15 -0
- package/dist/types/src/containers/ChatArticle/ChatArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ChatArticle/index.d.ts +2 -0
- package/dist/types/src/containers/ChatArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts +23 -9
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts.map +1 -1
- package/dist/types/src/containers/ChatCompanion/index.d.ts +1 -2
- package/dist/types/src/containers/ChatCompanion/index.d.ts.map +1 -1
- package/dist/types/src/containers/ChatDialog/ChatDialog.d.ts.map +1 -1
- package/dist/types/src/containers/ChatDialog/index.d.ts +1 -2
- package/dist/types/src/containers/ChatDialog/index.d.ts.map +1 -1
- package/dist/types/src/containers/PlanArticle/PlanArticle.d.ts +6 -0
- package/dist/types/src/containers/PlanArticle/PlanArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PlanArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PlanArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineArticle/RoutineArticle.d.ts +6 -0
- package/dist/types/src/containers/RoutineArticle/RoutineArticle.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineArticle/RoutineArticle.stories.d.ts +15 -0
- package/dist/types/src/containers/RoutineArticle/RoutineArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineArticle/index.d.ts +2 -0
- package/dist/types/src/containers/RoutineArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineList/RoutineList.d.ts +6 -0
- package/dist/types/src/containers/RoutineList/RoutineList.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineList/RoutineList.stories.d.ts +21 -0
- package/dist/types/src/containers/RoutineList/RoutineList.stories.d.ts.map +1 -0
- package/dist/types/src/containers/RoutineList/index.d.ts +2 -0
- package/dist/types/src/containers/RoutineList/index.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts +8 -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/index.d.ts +4 -0
- package/dist/types/src/containers/TracePanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/testing/index.d.ts +3 -0
- package/dist/types/src/containers/TracePanel/testing/index.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts +14 -0
- package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/testing/snapshot-playback.d.ts +12 -0
- package/dist/types/src/containers/TracePanel/testing/snapshot-playback.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts +3 -2
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts.map +1 -1
- package/dist/types/src/containers/TriggerStatus/index.d.ts +1 -2
- package/dist/types/src/containers/TriggerStatus/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +7 -4
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/execution-graph/execution-graph.d.ts +108 -0
- package/dist/types/src/execution-graph/execution-graph.d.ts.map +1 -0
- package/dist/types/src/execution-graph/execution-graph.test.d.ts +2 -0
- package/dist/types/src/execution-graph/execution-graph.test.d.ts.map +1 -0
- package/dist/types/src/execution-graph/index.d.ts +3 -0
- package/dist/types/src/execution-graph/index.d.ts.map +1 -0
- package/dist/types/src/execution-graph/remote-snapshot.test.d.ts +2 -0
- package/dist/types/src/execution-graph/remote-snapshot.test.d.ts.map +1 -0
- package/dist/types/src/execution-graph/span-tree.d.ts +76 -0
- package/dist/types/src/execution-graph/span-tree.d.ts.map +1 -0
- package/dist/types/src/execution-graph/span-tree.test.d.ts +2 -0
- package/dist/types/src/execution-graph/span-tree.test.d.ts.map +1 -0
- package/dist/types/src/execution-graph/testing/collect-trace-events.d.ts +40 -0
- package/dist/types/src/execution-graph/testing/collect-trace-events.d.ts.map +1 -0
- package/dist/types/src/execution-graph/testing/index.d.ts +2 -0
- package/dist/types/src/execution-graph/testing/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/feed-logger.d.ts +13 -0
- package/dist/types/src/feed-logger.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +2 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +56 -15
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatKeymap.d.ts +12 -0
- package/dist/types/src/hooks/useChatKeymap.d.ts.map +1 -0
- package/dist/types/src/hooks/useChatProcessor.d.ts +7 -7
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +7 -6
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextBinder.d.ts +4 -3
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextObjects.d.ts +5 -4
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -1
- package/dist/types/src/hooks/useDebug.d.ts +10 -0
- package/dist/types/src/hooks/useDebug.d.ts.map +1 -0
- 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/useFlush.d.ts +1 -1
- package/dist/types/src/hooks/useFlush.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 +0 -5
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +5 -2
- 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/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 +3 -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.node.test.d.ts +2 -0
- package/dist/types/src/operations/prompt.node.test.d.ts.map +1 -0
- package/dist/types/src/operations/resolve-navigation-targets.d.ts +17 -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/toggle-trace-panel-debug.d.ts +5 -0
- package/dist/types/src/operations/toggle-trace-panel-debug.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/plugin.d.ts +4 -0
- package/dist/types/src/plugin.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 +285 -41
- package/dist/types/src/processor/processor.d.ts.map +1 -1
- package/dist/types/src/processor/processor.node.test.d.ts +2 -0
- package/dist/types/src/processor/processor.node.test.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/snapshot.d.ts +21 -0
- package/dist/types/src/testing/snapshot.d.ts.map +1 -0
- package/dist/types/src/testing/test-generator.d.ts +2 -3
- 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-sequence.d.ts +10 -3
- package/dist/types/src/testing/test-sequence.d.ts.map +1 -1
- 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/test-trace.d.ts +5 -0
- package/dist/types/src/testing/test-trace.d.ts.map +1 -0
- package/dist/types/src/testing/trace-timeline.node.test.d.ts +2 -0
- package/dist/types/src/testing/trace-timeline.node.test.d.ts.map +1 -0
- package/dist/types/src/testing.d.ts +2 -0
- package/dist/types/src/testing.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 +31 -14
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/AssistantCapabilities.d.ts +30 -0
- package/dist/types/src/types/AssistantCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/AssistantEvents.d.ts +3 -0
- package/dist/types/src/types/AssistantEvents.d.ts.map +1 -0
- package/dist/types/src/types/AssistantOperation.d.ts +137 -0
- package/dist/types/src/types/AssistantOperation.d.ts.map +1 -0
- package/dist/types/src/types/Settings.d.ts +27 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +7 -4
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +2 -3
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/src/util/suggestions.d.ts +9 -0
- package/dist/types/src/util/suggestions.d.ts.map +1 -0
- package/dist/types/src/util/suggestions.test.d.ts +2 -0
- package/dist/types/src/util/suggestions.test.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +183 -126
- package/src/AssistantPlugin.conversations.json +1 -0
- package/src/AssistantPlugin.node.ts +77 -0
- package/src/AssistantPlugin.test.ts +152 -0
- package/src/AssistantPlugin.ts +147 -0
- package/src/AssistantPlugin.workerd.ts +41 -0
- package/src/blueprints/assistant/blueprint.node.test.ts +46 -0
- package/src/blueprints/assistant/blueprint.ts +11 -7
- package/src/capabilities/ai-context.ts +85 -0
- package/src/capabilities/ai-service.ts +57 -0
- package/src/capabilities/app-graph-builder.ts +197 -0
- package/src/capabilities/blueprint-definition.ts +56 -0
- package/src/capabilities/companion-chat-provisioner.ts +163 -0
- package/src/capabilities/create-object.ts +98 -0
- package/src/capabilities/edge-model-resolver.ts +69 -0
- package/src/capabilities/index.ts +30 -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 +28 -0
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +174 -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/toolkit.ts → toolkit.ts} +2 -4
- package/src/components/AgentProperties/AgentProperties.stories.tsx +74 -0
- package/src/components/AgentProperties/AgentProperties.tsx +104 -0
- package/src/components/AgentProperties/index.ts +5 -0
- package/src/components/AssistantSettings/AssistantSettings.stories.tsx +35 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +43 -0
- package/src/components/AssistantSettings/index.ts +5 -0
- package/src/components/Chat/Chat.tsx +118 -286
- package/src/components/Chat/context.ts +39 -0
- package/src/components/ChatPrompt/ChatActions.tsx +28 -16
- package/src/components/ChatPrompt/ChatMcpErrors.tsx +50 -0
- package/src/components/ChatPrompt/ChatOptions.stories.tsx +136 -0
- package/src/components/ChatPrompt/ChatOptions.tsx +242 -75
- package/src/components/ChatPrompt/ChatPrompt.tsx +182 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +12 -16
- package/src/components/ChatPrompt/ChatStatus.tsx +123 -0
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +1 -1
- package/src/components/ChatPrompt/index.ts +3 -0
- package/src/components/ChatThread/Anchor.stories.tsx +95 -0
- package/src/components/ChatThread/ChatThread.stories.tsx +64 -75
- package/src/components/ChatThread/ChatThread.tsx +57 -31
- package/src/components/ChatThread/DEBUG.md +41 -0
- package/src/components/ChatThread/Link.tsx +5 -5
- package/src/components/ChatThread/MarkdownStream.stories.tsx +281 -0
- package/src/components/ChatThread/registry.tsx +149 -66
- package/src/components/ChatThread/sync.test.ts +186 -28
- package/src/components/ChatThread/sync.ts +95 -105
- 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/ReasoningWidget.stories.tsx +68 -0
- package/src/components/ChatThread/widgets/ReasoningWidget.ts +139 -0
- package/src/components/ChatThread/widgets/ReferenceWidget.ts +33 -0
- package/src/components/ChatThread/widgets/SelectWidget.ts +39 -0
- package/src/components/ChatThread/widgets/StatsWidget.ts +31 -0
- package/src/components/ChatThread/widgets/StatusWidget.ts +53 -0
- package/src/components/ChatThread/widgets/SuggestionWidget.ts +41 -0
- package/src/components/ChatThread/widgets/SummaryWidget.tsx +27 -0
- package/src/components/ChatThread/widgets/ToolWidget.stories.tsx +55 -0
- package/src/components/ChatThread/widgets/ToolWidget.tsx +171 -0
- package/src/components/ChatThread/widgets/defaults.ts +8 -0
- package/src/components/ChatThread/widgets/index.ts +13 -0
- package/src/components/ProcessTree/ProcessTree.stories.tsx +83 -0
- package/src/components/ProcessTree/ProcessTree.tsx +120 -0
- package/src/components/ProcessTree/index.ts +5 -0
- package/src/components/RoutineProperties/RoutineProperties.stories.tsx +59 -0
- package/src/components/RoutineProperties/RoutineProperties.tsx +23 -0
- package/src/components/RoutineProperties/index.ts +5 -0
- package/src/components/TaskList/TaskList.stories.tsx +44 -0
- package/src/components/TaskList/TaskList.tsx +45 -0
- package/src/components/{Typewriter → TaskList}/index.ts +1 -1
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +5 -9
- package/src/components/TemplateEditor/TemplateEditor.tsx +54 -44
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +8 -10
- package/src/components/TemplateEditor/TemplateForm.tsx +53 -74
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +1 -1
- package/src/components/ToolBlock/ToolBlock.tsx +21 -20
- package/src/components/Toolbox/Toolbox.stories.tsx +7 -8
- package/src/components/Toolbox/Toolbox.tsx +66 -58
- package/src/components/index.ts +8 -0
- package/src/containers/AgentArticle/AgentArticle.stories.tsx +124 -0
- package/src/containers/AgentArticle/AgentArticle.tsx +189 -0
- package/src/containers/AgentArticle/index.ts +5 -0
- package/src/containers/AgentProperties/AgentProperties.tsx +43 -0
- package/src/containers/AgentProperties/index.ts +5 -0
- package/src/containers/BlueprintArticle/BlueprintArticle.tsx +8 -9
- package/src/containers/BlueprintArticle/index.ts +1 -3
- package/src/containers/ChatArticle/ChatArticle.stories.tsx +76 -0
- package/src/containers/ChatArticle/ChatArticle.tsx +108 -0
- package/src/containers/ChatArticle/index.ts +5 -0
- package/src/containers/ChatCompanion/ChatCompanion.tsx +51 -155
- package/src/containers/ChatCompanion/index.ts +1 -3
- package/src/containers/ChatDialog/ChatDialog.tsx +10 -15
- package/src/containers/ChatDialog/index.ts +1 -3
- package/src/containers/PlanArticle/PlanArticle.tsx +33 -0
- package/src/containers/PlanArticle/index.ts +5 -0
- package/src/containers/RoutineArticle/RoutineArticle.stories.tsx +75 -0
- package/src/containers/RoutineArticle/RoutineArticle.tsx +109 -0
- package/src/containers/RoutineArticle/index.ts +5 -0
- package/src/containers/RoutineList/RoutineList.stories.tsx +130 -0
- package/src/containers/RoutineList/RoutineList.tsx +50 -0
- package/src/containers/RoutineList/index.ts +5 -0
- package/src/containers/TracePanel/TracePanel.stories.tsx +319 -0
- package/src/containers/TracePanel/TracePanel.tsx +213 -0
- package/src/containers/TracePanel/dxn-extractor.test.ts +153 -0
- package/src/containers/TracePanel/dxn-extractor.ts +168 -0
- package/src/containers/TracePanel/index.ts +9 -0
- package/src/containers/TracePanel/testing/index.ts +6 -0
- package/src/containers/TracePanel/testing/simulated-agent.ts +114 -0
- package/src/containers/TracePanel/testing/snapshot-playback.ts +45 -0
- package/src/containers/TriggerStatus/TriggerStatus.tsx +42 -62
- package/src/containers/TriggerStatus/index.ts +1 -3
- package/src/containers/index.ts +7 -5
- package/src/execution-graph/SPEC.md +678 -0
- package/src/execution-graph/execution-graph.test.ts +799 -0
- package/src/execution-graph/execution-graph.ts +714 -0
- package/src/execution-graph/index.ts +24 -0
- package/src/execution-graph/remote-snapshot.test.ts +116 -0
- package/src/execution-graph/span-tree.test.ts +249 -0
- package/src/execution-graph/span-tree.ts +259 -0
- package/src/execution-graph/testing/collect-trace-events.ts +74 -0
- package/src/execution-graph/testing/index.ts +5 -0
- package/src/extensions/index.ts +5 -0
- package/src/extensions/prompt-extension.ts +111 -0
- package/src/{queue-logger.ts → feed-logger.ts} +47 -22
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useBlueprintRegistry.ts +62 -45
- package/src/hooks/useChatKeymap.ts +52 -0
- package/src/hooks/useChatProcessor.ts +57 -29
- package/src/hooks/useChatServices.ts +11 -30
- package/src/hooks/useChatToolbarActions.ts +89 -91
- package/src/hooks/useContextBinder.ts +19 -8
- package/src/hooks/useContextObjects.ts +13 -8
- package/src/hooks/useDebug.ts +38 -0
- package/src/hooks/useFilteredTypes.ts +17 -16
- package/src/hooks/usePresets.ts +2 -1
- package/src/hooks/useReferencesProvider.ts +7 -15
- package/src/index.ts +0 -6
- package/src/meta.ts +31 -9
- package/src/operations/create-chat.ts +57 -0
- package/src/operations/ensure-companion-chat.ts +63 -0
- package/src/operations/index.ts +16 -0
- package/src/operations/on-create-space.ts +24 -0
- package/src/operations/prompt.node.test.ts +80 -0
- package/src/operations/resolve-navigation-targets.ts +31 -0
- package/src/operations/run-prompt-in-new-chat.ts +113 -0
- package/src/operations/set-current-chat.ts +49 -0
- package/src/operations/toggle-trace-panel-debug.ts +27 -0
- package/src/operations/update-chat-name.ts +61 -0
- package/src/plugin.ts +11 -0
- package/src/processor/index.ts +0 -1
- package/src/processor/presets.ts +11 -3
- package/src/processor/processor.node.test.ts +40 -0
- package/src/processor/processor.ts +270 -166
- package/src/testing/data/trace-timeline-multiple.dx.json +1 -0
- package/src/testing/data/trace-timeline-remote.dx.json +1 -0
- package/src/testing/data/trace-timeline.dx.json +4657 -0
- package/src/testing/index.ts +2 -0
- package/src/testing/snapshot.ts +35 -0
- package/src/testing/test-generator.test.ts +71 -0
- package/src/testing/test-generator.ts +214 -192
- package/src/testing/test-sequence.ts +3 -3
- package/src/testing/test-services.ts +2 -2
- package/src/testing/test-trace.ts +20 -0
- package/src/testing/trace-timeline.node.conversations.json +1 -0
- package/src/testing/trace-timeline.node.test.ts +241 -0
- package/src/testing.ts +9 -0
- package/src/translations.ts +157 -109
- package/src/types/Assistant.ts +16 -18
- package/src/types/AssistantCapabilities.ts +35 -0
- package/src/types/AssistantEvents.ts +11 -0
- package/src/types/AssistantOperation.ts +164 -0
- package/src/types/Settings.ts +82 -0
- package/src/types/index.ts +11 -4
- package/src/types/service.ts +6 -11
- package/src/util/suggestions.test.ts +52 -0
- package/src/util/suggestions.ts +42 -0
- package/src/vite-env.d.ts +5 -0
- package/dist/lib/browser/AssistantSettings-2LFAG5OQ.mjs +0 -93
- package/dist/lib/browser/AssistantSettings-2LFAG5OQ.mjs.map +0 -7
- package/dist/lib/browser/BlueprintArticle-CCS25MNW.mjs.map +0 -7
- package/dist/lib/browser/ChatCompanion-UGD4V34A.mjs +0 -202
- package/dist/lib/browser/ChatCompanion-UGD4V34A.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-ZGRSZ5EU.mjs +0 -12
- package/dist/lib/browser/ChatDialog-AET7GVIB.mjs.map +0 -7
- package/dist/lib/browser/ProjectArticle-QDBTIFNE.mjs +0 -91
- package/dist/lib/browser/ProjectArticle-QDBTIFNE.mjs.map +0 -7
- package/dist/lib/browser/ProjectSettings-R6RRARLO.mjs +0 -194
- package/dist/lib/browser/ProjectSettings-R6RRARLO.mjs.map +0 -7
- package/dist/lib/browser/PromptArticle-USQO4WX6.mjs +0 -71
- package/dist/lib/browser/PromptArticle-USQO4WX6.mjs.map +0 -7
- package/dist/lib/browser/TriggerStatus-65X3EUSN.mjs +0 -122
- package/dist/lib/browser/TriggerStatus-65X3EUSN.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-SFYYUKTT.mjs +0 -234
- package/dist/lib/browser/app-graph-builder-SFYYUKTT.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-RB5RHZZM.mjs +0 -34
- package/dist/lib/browser/blueprint-definition-RB5RHZZM.mjs.map +0 -7
- package/dist/lib/browser/chunk-7DXYAXLZ.mjs +0 -230
- package/dist/lib/browser/chunk-7DXYAXLZ.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-JYY5AD65.mjs +0 -286
- package/dist/lib/browser/chunk-JYY5AD65.mjs.map +0 -7
- package/dist/lib/browser/chunk-LEXIQDXZ.mjs +0 -26
- package/dist/lib/browser/chunk-LEXIQDXZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-RU4G5NY4.mjs +0 -69
- package/dist/lib/browser/chunk-RU4G5NY4.mjs.map +0 -7
- package/dist/lib/browser/chunk-UUA6GNGG.mjs +0 -2125
- package/dist/lib/browser/chunk-UUA6GNGG.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/index.mjs +0 -386
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/operation-resolver-ELXDQZEG.mjs +0 -136
- package/dist/lib/browser/operation-resolver-ELXDQZEG.mjs.map +0 -7
- package/dist/lib/browser/react-surface-KYQSZO2I.mjs +0 -144
- package/dist/lib/browser/react-surface-KYQSZO2I.mjs.map +0 -7
- package/dist/lib/browser/repair-ZFZWZALX.mjs +0 -52
- package/dist/lib/browser/repair-ZFZWZALX.mjs.map +0 -7
- package/dist/lib/browser/settings-YREVQAZ5.mjs.map +0 -7
- package/dist/lib/browser/state-MPG42ZO4.mjs +0 -26
- package/dist/lib/browser/state-MPG42ZO4.mjs.map +0 -7
- package/dist/lib/browser/toolkit-XRSBBB3L.mjs +0 -16
- package/dist/lib/browser/toolkit-XRSBBB3L.mjs.map +0 -7
- package/dist/lib/browser/types/index.mjs +0 -23
- package/dist/lib/node-esm/AssistantSettings-QWFEMJG7.mjs +0 -94
- package/dist/lib/node-esm/AssistantSettings-QWFEMJG7.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintArticle-SNEN6LOY.mjs +0 -37
- package/dist/lib/node-esm/BlueprintArticle-SNEN6LOY.mjs.map +0 -7
- package/dist/lib/node-esm/ChatCompanion-NP4R5BFE.mjs +0 -203
- package/dist/lib/node-esm/ChatCompanion-NP4R5BFE.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-IFHDIFJH.mjs +0 -13
- package/dist/lib/node-esm/ChatDialog-UZNQBTKZ.mjs +0 -86
- package/dist/lib/node-esm/ChatDialog-UZNQBTKZ.mjs.map +0 -7
- package/dist/lib/node-esm/ProjectArticle-BCIBESJN.mjs +0 -92
- package/dist/lib/node-esm/ProjectArticle-BCIBESJN.mjs.map +0 -7
- package/dist/lib/node-esm/ProjectSettings-Q5QY6BYS.mjs +0 -195
- package/dist/lib/node-esm/ProjectSettings-Q5QY6BYS.mjs.map +0 -7
- package/dist/lib/node-esm/PromptArticle-PGMJMQK7.mjs +0 -72
- package/dist/lib/node-esm/PromptArticle-PGMJMQK7.mjs.map +0 -7
- package/dist/lib/node-esm/TriggerStatus-UR5S7PXJ.mjs +0 -123
- package/dist/lib/node-esm/TriggerStatus-UR5S7PXJ.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-E25JXI34.mjs +0 -235
- package/dist/lib/node-esm/app-graph-builder-E25JXI34.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-L7XKRYIW.mjs +0 -35
- package/dist/lib/node-esm/blueprint-definition-L7XKRYIW.mjs.map +0 -7
- package/dist/lib/node-esm/blueprints/index.mjs +0 -9
- package/dist/lib/node-esm/chunk-3QBVFAYO.mjs +0 -28
- package/dist/lib/node-esm/chunk-3QBVFAYO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6NCLKQCL.mjs +0 -70
- package/dist/lib/node-esm/chunk-6NCLKQCL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GZ4ERNT2.mjs +0 -2126
- package/dist/lib/node-esm/chunk-GZ4ERNT2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-JMBYVUD6.mjs +0 -288
- package/dist/lib/node-esm/chunk-JMBYVUD6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MWYYLALM.mjs +0 -231
- package/dist/lib/node-esm/chunk-MWYYLALM.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/index.mjs +0 -387
- package/dist/lib/node-esm/index.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/meta.json +0 -1
- package/dist/lib/node-esm/operation-resolver-Q5GNP2GH.mjs +0 -137
- package/dist/lib/node-esm/operation-resolver-Q5GNP2GH.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-JJRGVGKD.mjs +0 -145
- package/dist/lib/node-esm/react-surface-JJRGVGKD.mjs.map +0 -7
- package/dist/lib/node-esm/repair-LXFVOK4B.mjs +0 -53
- package/dist/lib/node-esm/repair-LXFVOK4B.mjs.map +0 -7
- package/dist/lib/node-esm/settings-N452OW6Y.mjs +0 -34
- package/dist/lib/node-esm/settings-N452OW6Y.mjs.map +0 -7
- package/dist/lib/node-esm/state-WHZFKIEL.mjs +0 -27
- package/dist/lib/node-esm/state-WHZFKIEL.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-5IWGLUF4.mjs +0 -17
- package/dist/lib/node-esm/toolkit-5IWGLUF4.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -24
- package/dist/types/src/blueprints/assistant/blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/assistant/blueprint.test.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.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 -6
- 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 -3
- 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.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.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.map +0 -1
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +0 -7
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +0 -1
- package/dist/types/src/components/ChatProgress/index.d.ts +0 -2
- package/dist/types/src/components/ChatProgress/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/containers/AssistantSettings/AssistantSettings.d.ts +0 -8
- package/dist/types/src/containers/AssistantSettings/AssistantSettings.d.ts.map +0 -1
- package/dist/types/src/containers/AssistantSettings/index.d.ts +0 -3
- package/dist/types/src/containers/AssistantSettings/index.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +0 -18
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ChatContainer/index.d.ts +0 -3
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +0 -1
- package/dist/types/src/containers/Project/ProjectArticle.d.ts +0 -7
- package/dist/types/src/containers/Project/ProjectArticle.d.ts.map +0 -1
- package/dist/types/src/containers/Project/ProjectSettings.d.ts +0 -6
- package/dist/types/src/containers/Project/ProjectSettings.d.ts.map +0 -1
- package/dist/types/src/containers/Project/index.d.ts +0 -7
- package/dist/types/src/containers/Project/index.d.ts.map +0 -1
- package/dist/types/src/containers/Project/triggers.d.ts +0 -6
- package/dist/types/src/containers/Project/triggers.d.ts.map +0 -1
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts +0 -6
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts.map +0 -1
- package/dist/types/src/containers/PromptArticle/index.d.ts +0 -3
- package/dist/types/src/containers/PromptArticle/index.d.ts.map +0 -1
- package/dist/types/src/processor/processor.test.d.ts +0 -2
- package/dist/types/src/processor/processor.test.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/queue-logger.d.ts +0 -11
- package/dist/types/src/queue-logger.d.ts.map +0 -1
- package/dist/types/src/types/AssistantAction.d.ts +0 -93
- package/dist/types/src/types/AssistantAction.d.ts.map +0 -1
- package/dist/types/src/types/capabilities.d.ts +0 -33
- package/dist/types/src/types/capabilities.d.ts.map +0 -1
- package/dist/types/src/types/defs.d.ts +0 -2
- package/dist/types/src/types/defs.d.ts.map +0 -1
- package/dist/types/src/types/events.d.ts +0 -5
- package/dist/types/src/types/events.d.ts.map +0 -1
- package/src/AssistantPlugin.tsx +0 -172
- package/src/blueprints/assistant/blueprint.conversations.json +0 -1
- package/src/blueprints/assistant/blueprint.test.ts +0 -48
- package/src/capabilities/ai-service/ai-service.ts +0 -30
- package/src/capabilities/ai-service/index.ts +0 -7
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -198
- package/src/capabilities/app-graph-builder/index.ts +0 -7
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +0 -48
- package/src/capabilities/blueprint-definition/index.ts +0 -7
- package/src/capabilities/edge-model-resolver/edge-model-resolver.ts +0 -33
- 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 -121
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/capabilities/react-surface/react-surface.tsx +0 -121
- package/src/capabilities/repair/index.ts +0 -7
- package/src/capabilities/repair/repair.ts +0 -69
- 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/components/ChatProgress/ChatProgress.tsx +0 -53
- package/src/components/ChatProgress/index.ts +0 -5
- package/src/components/Typewriter/AssistantToolbar.tsx +0 -161
- package/src/components/Typewriter/Typewriter.stories.tsx +0 -86
- package/src/components/Typewriter/Typewriter.tsx +0 -54
- package/src/components/Typewriter/assistant-extension.tsx +0 -142
- package/src/containers/AssistantSettings/AssistantSettings.tsx +0 -120
- package/src/containers/AssistantSettings/index.ts +0 -7
- package/src/containers/ChatContainer/ChatContainer.tsx +0 -69
- package/src/containers/ChatContainer/index.ts +0 -7
- package/src/containers/Project/ProjectArticle.tsx +0 -117
- package/src/containers/Project/ProjectSettings.tsx +0 -118
- package/src/containers/Project/index.ts +0 -16
- package/src/containers/Project/triggers.ts +0 -131
- package/src/containers/PromptArticle/PromptArticle.tsx +0 -59
- package/src/containers/PromptArticle/index.ts +0 -7
- package/src/processor/processor.test.ts +0 -73
- package/src/processor/update-name.ts +0 -58
- package/src/types/AssistantAction.ts +0 -76
- package/src/types/capabilities.ts +0 -27
- package/src/types/defs.ts +0 -5
- package/src/types/events.ts +0 -11
- /package/dist/lib/{browser/ChatContainer-ZGRSZ5EU.mjs.map → neutral/AssistantPlugin.mjs.map} +0 -0
- /package/dist/lib/{browser/blueprints/index.mjs.map → neutral/ChatArticle-PWD4OEFZ.mjs.map} +0 -0
- /package/dist/lib/{browser/types → neutral/blueprints}/index.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/lib/{node-esm/blueprints → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/ChatContainer-IFHDIFJH.mjs.map → neutral/meta.mjs.map} +0 -0
- /package/dist/lib/{node-esm/types → neutral/operations}/index.mjs.map +0 -0
- /package/dist/lib/{node-esm/chunk-HSLMI22Q.mjs.map → neutral/testing.mjs.map} +0 -0
- /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
- /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
- /package/dist/types/src/capabilities/{toolkit/toolkit.d.ts → toolkit.d.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.d9fc60f731",
|
|
4
4
|
"description": "Assistant plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -8,169 +8,226 @@
|
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/dxos/dxos"
|
|
10
10
|
},
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "FSL-1.1-Apache-2.0",
|
|
12
12
|
"author": "DXOS.org",
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
|
+
"imports": {
|
|
16
|
+
"#blueprints": {
|
|
17
|
+
"source": "./src/blueprints/index.ts",
|
|
18
|
+
"types": "./dist/types/src/blueprints/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/blueprints/index.mjs"
|
|
20
|
+
},
|
|
21
|
+
"#capabilities": {
|
|
22
|
+
"source": "./src/capabilities/index.ts",
|
|
23
|
+
"types": "./dist/types/src/capabilities/index.d.ts",
|
|
24
|
+
"default": "./dist/lib/neutral/capabilities/index.mjs"
|
|
25
|
+
},
|
|
26
|
+
"#components": {
|
|
27
|
+
"source": "./src/components/index.ts",
|
|
28
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
29
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
30
|
+
},
|
|
31
|
+
"#containers": {
|
|
32
|
+
"source": "./src/containers/index.ts",
|
|
33
|
+
"types": "./dist/types/src/containers/index.d.ts",
|
|
34
|
+
"default": "./dist/lib/neutral/containers/index.mjs"
|
|
35
|
+
},
|
|
36
|
+
"#execution-graph": {
|
|
37
|
+
"source": "./src/execution-graph/index.ts",
|
|
38
|
+
"types": "./dist/types/src/execution-graph/index.d.ts",
|
|
39
|
+
"default": "./dist/lib/neutral/execution-graph/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"#hooks": {
|
|
42
|
+
"source": "./src/hooks/index.ts",
|
|
43
|
+
"types": "./dist/types/src/hooks/index.d.ts",
|
|
44
|
+
"default": "./dist/lib/neutral/hooks/index.mjs"
|
|
45
|
+
},
|
|
46
|
+
"#meta": {
|
|
47
|
+
"source": "./src/meta.ts",
|
|
48
|
+
"types": "./dist/types/src/meta.d.ts",
|
|
49
|
+
"default": "./dist/lib/neutral/meta.mjs"
|
|
50
|
+
},
|
|
51
|
+
"#operations": {
|
|
52
|
+
"source": "./src/operations/index.ts",
|
|
53
|
+
"types": "./dist/types/src/operations/index.d.ts",
|
|
54
|
+
"default": "./dist/lib/neutral/operations/index.mjs"
|
|
55
|
+
},
|
|
56
|
+
"#plugin": {
|
|
57
|
+
"source": {
|
|
58
|
+
"workerd": "./src/AssistantPlugin.workerd.ts",
|
|
59
|
+
"node": "./src/AssistantPlugin.node.ts",
|
|
60
|
+
"default": "./src/AssistantPlugin.ts"
|
|
61
|
+
},
|
|
62
|
+
"types": "./dist/types/src/AssistantPlugin.d.ts",
|
|
63
|
+
"workerd": "./dist/lib/neutral/AssistantPlugin.workerd.mjs",
|
|
64
|
+
"node": "./dist/lib/neutral/AssistantPlugin.node.mjs",
|
|
65
|
+
"default": "./dist/lib/neutral/AssistantPlugin.mjs"
|
|
66
|
+
},
|
|
67
|
+
"#testing": "./src/testing/index.ts",
|
|
68
|
+
"#translations": {
|
|
69
|
+
"source": "./src/translations.ts",
|
|
70
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
71
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
72
|
+
},
|
|
73
|
+
"#types": {
|
|
74
|
+
"source": "./src/types/index.ts",
|
|
75
|
+
"types": "./dist/types/src/types/index.d.ts",
|
|
76
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
15
79
|
"exports": {
|
|
16
80
|
".": {
|
|
17
81
|
"source": "./src/index.ts",
|
|
18
82
|
"types": "./dist/types/src/index.d.ts",
|
|
19
|
-
"
|
|
20
|
-
"node": "./dist/lib/node-esm/index.mjs"
|
|
83
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
21
84
|
},
|
|
85
|
+
"./assets/PLUGIN.mdl": "./PLUGIN.mdl",
|
|
22
86
|
"./blueprints": {
|
|
23
87
|
"source": "./src/blueprints/index.ts",
|
|
24
88
|
"types": "./dist/types/src/blueprints/index.d.ts",
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
89
|
+
"default": "./dist/lib/neutral/blueprints/index.mjs"
|
|
90
|
+
},
|
|
91
|
+
"./components": {
|
|
92
|
+
"source": "./src/components/index.ts",
|
|
93
|
+
"types": "./dist/types/src/components/index.d.ts",
|
|
94
|
+
"default": "./dist/lib/neutral/components/index.mjs"
|
|
95
|
+
},
|
|
96
|
+
"./hooks": {
|
|
97
|
+
"source": "./src/hooks/index.ts",
|
|
98
|
+
"types": "./dist/types/src/hooks/index.d.ts",
|
|
99
|
+
"default": "./dist/lib/neutral/hooks/index.mjs"
|
|
100
|
+
},
|
|
101
|
+
"./plugin": {
|
|
102
|
+
"source": "./src/plugin.ts",
|
|
103
|
+
"types": "./dist/types/src/plugin.d.ts",
|
|
104
|
+
"default": "./dist/lib/neutral/plugin.mjs"
|
|
105
|
+
},
|
|
106
|
+
"./testing": {
|
|
107
|
+
"source": "./src/testing.ts",
|
|
108
|
+
"types": "./dist/types/src/testing.d.ts",
|
|
109
|
+
"default": "./dist/lib/neutral/testing.mjs"
|
|
110
|
+
},
|
|
111
|
+
"./translations": {
|
|
112
|
+
"source": "./src/translations.ts",
|
|
113
|
+
"types": "./dist/types/src/translations.d.ts",
|
|
114
|
+
"default": "./dist/lib/neutral/translations.mjs"
|
|
28
115
|
},
|
|
29
116
|
"./types": {
|
|
30
117
|
"source": "./src/types/index.ts",
|
|
31
118
|
"types": "./dist/types/src/types/index.d.ts",
|
|
32
|
-
"
|
|
33
|
-
"node": "./dist/lib/node-esm/types/index.mjs"
|
|
119
|
+
"default": "./dist/lib/neutral/types/index.mjs"
|
|
34
120
|
}
|
|
35
121
|
},
|
|
36
122
|
"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
123
|
"files": [
|
|
48
124
|
"assets",
|
|
49
125
|
"dist",
|
|
50
|
-
"src"
|
|
126
|
+
"src",
|
|
127
|
+
"PLUGIN.mdl"
|
|
51
128
|
],
|
|
52
129
|
"dependencies": {
|
|
53
|
-
"@codemirror/autocomplete": "^6.
|
|
54
|
-
"@codemirror/
|
|
55
|
-
"@codemirror/
|
|
56
|
-
"@codemirror/
|
|
57
|
-
"@
|
|
58
|
-
"@codemirror/lint": "6.8.5",
|
|
59
|
-
"@codemirror/state": "^6.5.2",
|
|
60
|
-
"@codemirror/view": "^6.38.4",
|
|
61
|
-
"@effect-atom/atom": "^0.5.1",
|
|
130
|
+
"@codemirror/autocomplete": "^6.20.2",
|
|
131
|
+
"@codemirror/language": "^6.12.3",
|
|
132
|
+
"@codemirror/state": "^6.6.0",
|
|
133
|
+
"@codemirror/view": "^6.43.0",
|
|
134
|
+
"@effect-atom/atom": "^0.5.3",
|
|
62
135
|
"@effect-atom/atom-react": "^0.5.0",
|
|
63
|
-
"@effect/ai": "0.
|
|
64
|
-
"@effect/ai-anthropic": "0.
|
|
65
|
-
"@effect/ai-openai": "0.
|
|
66
|
-
"@effect/experimental": "0.
|
|
67
|
-
"@
|
|
136
|
+
"@effect/ai": "0.35.0",
|
|
137
|
+
"@effect/ai-anthropic": "0.25.0",
|
|
138
|
+
"@effect/ai-openai": "0.39.2",
|
|
139
|
+
"@effect/experimental": "0.60.0",
|
|
140
|
+
"@radix-ui/react-compose-refs": "1.1.1",
|
|
68
141
|
"@radix-ui/react-context": "1.1.1",
|
|
69
|
-
"effect": "3.
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"@dxos/
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/
|
|
108
|
-
"@dxos/
|
|
109
|
-
"@dxos/
|
|
110
|
-
"@dxos/
|
|
111
|
-
"@dxos/
|
|
112
|
-
"@dxos/
|
|
113
|
-
"@dxos/
|
|
114
|
-
"@dxos/
|
|
115
|
-
"@dxos/
|
|
116
|
-
"@dxos/react-
|
|
117
|
-
"@dxos/
|
|
118
|
-
"@dxos/
|
|
119
|
-
"@dxos/
|
|
120
|
-
"@dxos/react-
|
|
121
|
-
"@dxos/
|
|
122
|
-
"@dxos/
|
|
123
|
-
"@dxos/react-ui-components": "0.8.4-main.c85a9c8dae",
|
|
124
|
-
"@dxos/react-ui-editor": "0.8.4-main.c85a9c8dae",
|
|
125
|
-
"@dxos/react-ui-form": "0.8.4-main.c85a9c8dae",
|
|
126
|
-
"@dxos/react-ui-list": "0.8.4-main.c85a9c8dae",
|
|
127
|
-
"@dxos/react-ui-graph": "0.8.4-main.c85a9c8dae",
|
|
128
|
-
"@dxos/react-ui-markdown": "0.8.4-main.c85a9c8dae",
|
|
129
|
-
"@dxos/react-ui-mosaic": "0.8.4-main.c85a9c8dae",
|
|
130
|
-
"@dxos/react-ui-searchlist": "0.8.4-main.c85a9c8dae",
|
|
131
|
-
"@dxos/react-ui-sfx": "0.8.4-main.c85a9c8dae",
|
|
132
|
-
"@dxos/react-ui-menu": "0.8.4-main.c85a9c8dae",
|
|
133
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.c85a9c8dae",
|
|
134
|
-
"@dxos/react-ui-tabs": "0.8.4-main.c85a9c8dae",
|
|
135
|
-
"@dxos/schema": "0.8.4-main.c85a9c8dae",
|
|
136
|
-
"@dxos/types": "0.8.4-main.c85a9c8dae",
|
|
137
|
-
"@dxos/ui": "0.8.4-main.c85a9c8dae",
|
|
138
|
-
"@dxos/ui-editor": "0.8.4-main.c85a9c8dae",
|
|
139
|
-
"@dxos/util": "0.8.4-main.c85a9c8dae",
|
|
140
|
-
"@dxos/react-ui-stack": "0.8.4-main.c85a9c8dae"
|
|
142
|
+
"effect": "3.21.2",
|
|
143
|
+
"@dxos/ai": "0.8.4-main.d9fc60f731",
|
|
144
|
+
"@dxos/app-graph": "0.8.4-main.d9fc60f731",
|
|
145
|
+
"@dxos/assistant": "0.8.4-main.d9fc60f731",
|
|
146
|
+
"@dxos/app-toolkit": "0.8.4-main.d9fc60f731",
|
|
147
|
+
"@dxos/async": "0.8.4-main.d9fc60f731",
|
|
148
|
+
"@dxos/assistant-toolkit": "0.8.4-main.d9fc60f731",
|
|
149
|
+
"@dxos/client": "0.8.4-main.d9fc60f731",
|
|
150
|
+
"@dxos/compute-runtime": "0.8.4-main.d9fc60f731",
|
|
151
|
+
"@dxos/conductor": "0.8.4-main.d9fc60f731",
|
|
152
|
+
"@dxos/compute": "0.8.4-main.d9fc60f731",
|
|
153
|
+
"@dxos/devtools": "0.8.4-main.d9fc60f731",
|
|
154
|
+
"@dxos/echo": "0.8.4-main.d9fc60f731",
|
|
155
|
+
"@dxos/echo-atom": "0.8.4-main.d9fc60f731",
|
|
156
|
+
"@dxos/echo-db": "0.8.4-main.d9fc60f731",
|
|
157
|
+
"@dxos/app-framework": "0.8.4-main.d9fc60f731",
|
|
158
|
+
"@dxos/edge-client": "0.8.4-main.d9fc60f731",
|
|
159
|
+
"@dxos/functions-runtime": "0.8.4-main.d9fc60f731",
|
|
160
|
+
"@dxos/effect": "0.8.4-main.d9fc60f731",
|
|
161
|
+
"@dxos/invariant": "0.8.4-main.d9fc60f731",
|
|
162
|
+
"@dxos/lit-ui": "0.8.4-main.d9fc60f731",
|
|
163
|
+
"@dxos/keys": "0.8.4-main.d9fc60f731",
|
|
164
|
+
"@dxos/plugin-automation": "0.8.4-main.d9fc60f731",
|
|
165
|
+
"@dxos/plugin-client": "0.8.4-main.d9fc60f731",
|
|
166
|
+
"@dxos/log": "0.8.4-main.d9fc60f731",
|
|
167
|
+
"@dxos/plugin-deck": "0.8.4-main.d9fc60f731",
|
|
168
|
+
"@dxos/plugin-graph": "0.8.4-main.d9fc60f731",
|
|
169
|
+
"@dxos/plugin-map": "0.8.4-main.d9fc60f731",
|
|
170
|
+
"@dxos/plugin-markdown": "0.8.4-main.d9fc60f731",
|
|
171
|
+
"@dxos/plugin-space": "0.8.4-main.d9fc60f731",
|
|
172
|
+
"@dxos/plugin-table": "0.8.4-main.d9fc60f731",
|
|
173
|
+
"@dxos/plugin-transcription": "0.8.4-main.d9fc60f731",
|
|
174
|
+
"@dxos/react-ui-attention": "0.8.4-main.d9fc60f731",
|
|
175
|
+
"@dxos/plugin-status-bar": "0.8.4-main.d9fc60f731",
|
|
176
|
+
"@dxos/react-client": "0.8.4-main.d9fc60f731",
|
|
177
|
+
"@dxos/react-ui-components": "0.8.4-main.d9fc60f731",
|
|
178
|
+
"@dxos/react-ui-chat": "0.8.4-main.d9fc60f731",
|
|
179
|
+
"@dxos/react-ui-form": "0.8.4-main.d9fc60f731",
|
|
180
|
+
"@dxos/react-ui-graph": "0.8.4-main.d9fc60f731",
|
|
181
|
+
"@dxos/react-ui-markdown": "0.8.4-main.d9fc60f731",
|
|
182
|
+
"@dxos/react-ui-list": "0.8.4-main.d9fc60f731",
|
|
183
|
+
"@dxos/react-ui-masonry": "0.8.4-main.d9fc60f731",
|
|
184
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.d9fc60f731",
|
|
185
|
+
"@dxos/react-ui-menu": "0.8.4-main.d9fc60f731",
|
|
186
|
+
"@dxos/react-ui-search": "0.8.4-main.d9fc60f731",
|
|
187
|
+
"@dxos/react-ui-sfx": "0.8.4-main.d9fc60f731",
|
|
188
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.d9fc60f731",
|
|
189
|
+
"@dxos/react-ui-tabs": "0.8.4-main.d9fc60f731",
|
|
190
|
+
"@dxos/schema": "0.8.4-main.d9fc60f731",
|
|
191
|
+
"@dxos/ui": "0.8.4-main.d9fc60f731",
|
|
192
|
+
"@dxos/types": "0.8.4-main.d9fc60f731",
|
|
193
|
+
"@dxos/react-ui-editor": "0.8.4-main.d9fc60f731",
|
|
194
|
+
"@dxos/ui-editor": "0.8.4-main.d9fc60f731",
|
|
195
|
+
"@dxos/util": "0.8.4-main.d9fc60f731"
|
|
141
196
|
},
|
|
142
197
|
"devDependencies": {
|
|
143
|
-
"@effect/platform": "0.
|
|
198
|
+
"@effect/platform": "0.96.1",
|
|
144
199
|
"@types/lodash.defaultsdeep": "^4.6.6",
|
|
145
200
|
"@types/react": "~19.2.7",
|
|
146
201
|
"@types/react-dom": "~19.2.3",
|
|
147
|
-
"effect": "3.
|
|
202
|
+
"effect": "3.21.2",
|
|
148
203
|
"openapi-types": "^12.1.3",
|
|
149
204
|
"react": "~19.2.3",
|
|
150
205
|
"react-dom": "~19.2.3",
|
|
151
|
-
"vite": "^
|
|
152
|
-
"@dxos/
|
|
153
|
-
"@dxos/
|
|
154
|
-
"@dxos/echo-db": "0.8.4-main.
|
|
155
|
-
"@dxos/plugin-chess": "0.8.4-main.
|
|
156
|
-
"@dxos/plugin-
|
|
157
|
-
"@dxos/plugin-
|
|
158
|
-
"@dxos/plugin-
|
|
159
|
-
"@dxos/
|
|
160
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
161
|
-
"@dxos/
|
|
162
|
-
"@dxos/
|
|
163
|
-
"@dxos/react-ui-
|
|
164
|
-
"@dxos/ui-
|
|
206
|
+
"vite": "^8.0.14",
|
|
207
|
+
"@dxos/assistant-toolkit": "0.8.4-main.d9fc60f731",
|
|
208
|
+
"@dxos/devtools": "0.8.4-main.d9fc60f731",
|
|
209
|
+
"@dxos/echo-db": "0.8.4-main.d9fc60f731",
|
|
210
|
+
"@dxos/plugin-chess": "0.8.4-main.d9fc60f731",
|
|
211
|
+
"@dxos/plugin-client": "0.8.4-main.d9fc60f731",
|
|
212
|
+
"@dxos/plugin-map": "0.8.4-main.d9fc60f731",
|
|
213
|
+
"@dxos/plugin-preview": "0.8.4-main.d9fc60f731",
|
|
214
|
+
"@dxos/plugin-table": "0.8.4-main.d9fc60f731",
|
|
215
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731",
|
|
216
|
+
"@dxos/plugin-testing": "0.8.4-main.d9fc60f731",
|
|
217
|
+
"@dxos/random": "0.8.4-main.d9fc60f731",
|
|
218
|
+
"@dxos/react-ui-menu": "0.8.4-main.d9fc60f731",
|
|
219
|
+
"@dxos/react-ui-table": "0.8.4-main.d9fc60f731",
|
|
220
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731",
|
|
221
|
+
"@dxos/storybook-utils": "0.8.4-main.d9fc60f731"
|
|
165
222
|
},
|
|
166
223
|
"peerDependencies": {
|
|
167
224
|
"@effect-atom/atom-react": "^0.5.0",
|
|
168
|
-
"@effect/platform": "0.
|
|
169
|
-
"effect": "3.
|
|
225
|
+
"@effect/platform": "0.96.1",
|
|
226
|
+
"effect": "3.21.2",
|
|
170
227
|
"react": "~19.2.3",
|
|
171
228
|
"react-dom": "~19.2.3",
|
|
172
|
-
"@dxos/ui-theme": "0.8.4-main.
|
|
173
|
-
"@dxos/react-ui": "0.8.4-main.
|
|
229
|
+
"@dxos/ui-theme": "0.8.4-main.d9fc60f731",
|
|
230
|
+
"@dxos/react-ui": "0.8.4-main.d9fc60f731"
|
|
174
231
|
},
|
|
175
232
|
"publishConfig": {
|
|
176
233
|
"access": "public"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"conversations":[{"parameters":{"model":"@anthropic/claude-haiku-4-5","stream":false,"tools":[]},"prompt":{"content":[{"role":"user","content":"What is the capital of France?","options":{}}]},"response":[{"type":"response-metadata","id":"msg_01RAT1yY9tVtS52NYBywnUJB","modelId":"claude-haiku-4-5-20251001","timestamp":"2026-06-03T12:07:13.610Z","metadata":{}},{"type":"text","text":"The capital of France is Paris.","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":14,"outputTokens":10,"totalTokens":24,"cachedInputTokens":0},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":14,"output_tokens":10,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"completeJob","inputSchema":{"type":"object","required":[],"properties":{"success":{"$id":"/schemas/any","title":"any"},"failure":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Short message describing the error."},"description":{"type":"string","description":"Optional longer message describing in detail what went wrong"}},"additionalProperties":false}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You are an agent running in the non-interactive mode.\nThe user is unable to see what you are doing, and cannot answer any questions.\nDo not ask questions.\nComplete the task before you, and at the end call [completeJob] with the output.\nIf you are unable to complete the task, call [completeJob] with the failure reason.\nIf no output is required, call [completeJob] with an empty object: {}\nDo not stop until you call [completeJob].","options":{}},{"role":"user","content":"Reply with the capital of the provided country. all lowercase.\n<input>{\"country\":\"France\"}</input>","options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01CvujoLHHYXutqyKqLZ5QMW","modelId":"claude-opus-4-6","timestamp":"2026-06-03T12:26:08.176Z","metadata":{}},{"type":"reasoning-start","id":"0","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"paris","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"","metadata":{"anthropic":{"type":"thinking","signature":"EssBCmMIDhgCKkCM/bVIaQfSTF8ZExTrOGiJMTlhINeqLYjdGBN5d6WB2wznSWZwBIOHWFggpDGbo7lmj+V7CDd2Uf6RAI2XENrkMg9jbGF1ZGUtb3B1cy00LTY4AEIIdGhpbmtpbmcSDJQ219jieZ4FkG08mhoMionboLaCpp5UyBOwIjDS6S//RiWi7WY4iQlzoFsn48TJTk6xiMBy+rbNHTYrkNnCu8hP+4G1yNp/0PSaUzgqFsC+3a+IZb67uEB/OYaMJe4AIyb6AJwYAQ=="}}},{"type":"reasoning-end","id":"0","metadata":{}},{"type":"tool-params-start","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","name":"completeJob","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","delta":"{\"success\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","delta":" \"pa","metadata":{}},{"type":"tool-params-delta","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","delta":"ris\"}","metadata":{}},{"type":"tool-params-end","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":765,"outputTokens":70,"totalTokens":835},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":765,"output_tokens":48,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"completeJob","inputSchema":{"type":"object","required":[],"properties":{"success":{"$id":"/schemas/any","title":"any"},"failure":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Short message describing the error."},"description":{"type":"string","description":"Optional longer message describing in detail what went wrong"}},"additionalProperties":false}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You are an agent running in the non-interactive mode.\nThe user is unable to see what you are doing, and cannot answer any questions.\nDo not ask questions.\nComplete the task before you, and at the end call [completeJob] with the output.\nIf you are unable to complete the task, call [completeJob] with the failure reason.\nIf no output is required, call [completeJob] with an empty object: {}\nDo not stop until you call [completeJob].","options":{}},{"role":"user","content":"Reply with the capital of the provided country. all lowercase.\n<input>{\"country\":\"France\"}</input>","options":{}},{"role":"assistant","content":[{"type":"reasoning","text":"paris","options":{}},{"type":"tool-call","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","name":"completeJob","params":{"success":"paris"},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01WVzQgBTHKacGVNr2XsiEgD","name":"completeJob","isFailure":false,"result":{},"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_018uyMDm9KkyaKoR1RmcptUT","modelId":"claude-opus-4-6","timestamp":"2026-06-03T12:26:10.072Z","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":831,"outputTokens":2,"totalTokens":833},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":831,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-haiku-4-5","stream":true,"tools":[{"name":"completeJob","inputSchema":{"type":"object","required":[],"properties":{"success":{"$id":"/schemas/any","title":"any"},"failure":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Short message describing the error."},"description":{"type":"string","description":"Optional longer message describing in detail what went wrong"}},"additionalProperties":false}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You are an agent running in the non-interactive mode.\nThe user is unable to see what you are doing, and cannot answer any questions.\nDo not ask questions.\nComplete the task before you, and at the end call [completeJob] with the output.\nIf you are unable to complete the task, call [completeJob] with the failure reason.\nIf no output is required, call [completeJob] with an empty object: {}\nDo not stop until you call [completeJob].","options":{}},{"role":"user","content":"Reply with the capital of the provided country. all lowercase.\n<input>{\"country\":\"France\"}</input>","options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01G9aGiJEbcFVuTm7yZYswf2","modelId":"claude-haiku-4-5-20251001","timestamp":"2026-06-03T12:27:48.910Z","metadata":{}},{"type":"tool-params-start","id":"toolu_01333qQ84nAJZ7e8yV1wfRt4","name":"completeJob","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01333qQ84nAJZ7e8yV1wfRt4","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01333qQ84nAJZ7e8yV1wfRt4","delta":"{\"succes","metadata":{}},{"type":"tool-params-delta","id":"toolu_01333qQ84nAJZ7e8yV1wfRt4","delta":"s\": \"paris\"}","metadata":{}},{"type":"tool-params-end","id":"toolu_01333qQ84nAJZ7e8yV1wfRt4","metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":764,"outputTokens":54,"totalTokens":818},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":764,"output_tokens":54,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-haiku-4-5","stream":true,"tools":[{"name":"completeJob","inputSchema":{"type":"object","required":[],"properties":{"success":{"$id":"/schemas/any","title":"any"},"failure":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Short message describing the error."},"description":{"type":"string","description":"Optional longer message describing in detail what went wrong"}},"additionalProperties":false}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You are an agent running in the non-interactive mode.\nThe user is unable to see what you are doing, and cannot answer any questions.\nDo not ask questions.\nComplete the task before you, and at the end call [completeJob] with the output.\nIf you are unable to complete the task, call [completeJob] with the failure reason.\nIf no output is required, call [completeJob] with an empty object: {}\nDo not stop until you call [completeJob].","options":{}},{"role":"user","content":"Reply with the capital of the provided country. all lowercase.\n<input>{\"country\":\"France\"}</input>","options":{}},{"role":"assistant","content":[{"type":"tool-call","id":"toolu_01333qQ84nAJZ7e8yV1wfRt4","name":"completeJob","params":{"success":"paris"},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01333qQ84nAJZ7e8yV1wfRt4","name":"completeJob","isFailure":false,"result":{},"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01LaRe85bD4MGAeouB9kbQtt","modelId":"claude-haiku-4-5-20251001","timestamp":"2026-06-03T12:27:49.634Z","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":830,"outputTokens":2,"totalTokens":832},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":830,"output_tokens":2,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-haiku-4-5","stream":true,"tools":[{"name":"completeJob","inputSchema":{"type":"object","required":[],"properties":{"success":{"$id":"/schemas/any","title":"any"},"failure":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Short message describing the error."},"description":{"type":"string","description":"Optional longer message describing in detail what went wrong"}},"additionalProperties":false}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You are an agent running in the non-interactive mode.\nThe user is unable to see what you are doing, and cannot answer any questions.\nDo not ask questions.\nComplete the task before you, and at the end call [completeJob] with the output.\nIf you are unable to complete the task, call [completeJob] with the failure reason.\nIf no output is required, call [completeJob] with an empty object: {}\nDo not stop until you call [completeJob].","options":{}},{"role":"user","content":"Call completeJob with success set to a JSON object { \"capital\": \"<lowercase country capital>\" } for the country in input.\n<input>{\"country\":\"France\"}</input>","options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_015jteJyGb5nE3WmLmVtGVZw","modelId":"claude-haiku-4-5-20251001","timestamp":"2026-06-03T12:29:09.994Z","metadata":{}},{"type":"tool-params-start","id":"toolu_01427PGZw3XpRqSJVkk5boDy","name":"completeJob","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_01427PGZw3XpRqSJVkk5boDy","delta":"","metadata":{}},{"type":"tool-params-delta","id":"toolu_01427PGZw3XpRqSJVkk5boDy","delta":"{\"success","metadata":{}},{"type":"tool-params-delta","id":"toolu_01427PGZw3XpRqSJVkk5boDy","delta":"\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01427PGZw3XpRqSJVkk5boDy","delta":" {\"capital\":","metadata":{}},{"type":"tool-params-delta","id":"toolu_01427PGZw3XpRqSJVkk5boDy","delta":"\"paris\"}}","metadata":{}},{"type":"tool-params-end","id":"toolu_01427PGZw3XpRqSJVkk5boDy","metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":779,"outputTokens":59,"totalTokens":838},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":779,"output_tokens":59,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-haiku-4-5","stream":true,"tools":[{"name":"completeJob","inputSchema":{"type":"object","required":[],"properties":{"success":{"$id":"/schemas/any","title":"any"},"failure":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"Short message describing the error."},"description":{"type":"string","description":"Optional longer message describing in detail what went wrong"}},"additionalProperties":false}},"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You are an agent running in the non-interactive mode.\nThe user is unable to see what you are doing, and cannot answer any questions.\nDo not ask questions.\nComplete the task before you, and at the end call [completeJob] with the output.\nIf you are unable to complete the task, call [completeJob] with the failure reason.\nIf no output is required, call [completeJob] with an empty object: {}\nDo not stop until you call [completeJob].","options":{}},{"role":"user","content":"Call completeJob with success set to a JSON object { \"capital\": \"<lowercase country capital>\" } for the country in input.\n<input>{\"country\":\"France\"}</input>","options":{}},{"role":"assistant","content":[{"type":"tool-call","id":"toolu_01427PGZw3XpRqSJVkk5boDy","name":"completeJob","params":{"success":{"capital":"paris"}},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_01427PGZw3XpRqSJVkk5boDy","name":"completeJob","isFailure":false,"result":{},"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_018FbdhevYwss68E5nCRy5gj","modelId":"claude-haiku-4-5-20251001","timestamp":"2026-06-03T12:29:10.686Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"Done","metadata":{}},{"type":"text-delta","id":"0","delta":"! I've completed the job by calling completeJob with the success parameter set to a JSON object containing the lowercase capital","metadata":{}},{"type":"text-delta","id":"0","delta":" of France, which is \"paris\".","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":850,"outputTokens":36,"totalTokens":886},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":850,"output_tokens":1,"server_tool_use":null,"service_tier":"standard"}}}}]}]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2023 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { ActivationEvents, Capability, Plugin } from '@dxos/app-framework';
|
|
6
|
+
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
|
+
import { AiContext } from '@dxos/assistant';
|
|
8
|
+
import { Agent, Chat, McpServer, Memory, Plan } from '@dxos/assistant-toolkit';
|
|
9
|
+
import { Blueprint, Routine } from '@dxos/compute';
|
|
10
|
+
import { Sequence } from '@dxos/conductor';
|
|
11
|
+
import { Feed } from '@dxos/echo';
|
|
12
|
+
import { Text } from '@dxos/schema';
|
|
13
|
+
import { HasSubject, Message } from '@dxos/types';
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
AiContext as AiContextCapability,
|
|
17
|
+
AiService,
|
|
18
|
+
AppGraphBuilder,
|
|
19
|
+
BlueprintDefinition,
|
|
20
|
+
CreateObject,
|
|
21
|
+
EdgeModelResolver,
|
|
22
|
+
LocalModelResolver,
|
|
23
|
+
OperationHandler,
|
|
24
|
+
Toolkit,
|
|
25
|
+
} from '#capabilities';
|
|
26
|
+
import { meta } from '#meta';
|
|
27
|
+
import { AssistantEvents, type AssistantPluginOptions } from '#types';
|
|
28
|
+
|
|
29
|
+
export const AssistantPlugin = Plugin.define<AssistantPluginOptions | void>(meta).pipe(
|
|
30
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
31
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
32
|
+
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
33
|
+
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
34
|
+
AppPlugin.addSchemaModule({
|
|
35
|
+
schema: [
|
|
36
|
+
Chat.Chat,
|
|
37
|
+
Chat.CompanionTo,
|
|
38
|
+
Blueprint.Blueprint,
|
|
39
|
+
AiContext.Binding,
|
|
40
|
+
Feed.Feed,
|
|
41
|
+
HasSubject.HasSubject,
|
|
42
|
+
Message.Message,
|
|
43
|
+
Routine.Routine,
|
|
44
|
+
Agent.Agent,
|
|
45
|
+
McpServer.McpServer,
|
|
46
|
+
Plan.Plan,
|
|
47
|
+
Sequence.Sequence,
|
|
48
|
+
Memory.Memory,
|
|
49
|
+
Text.Text,
|
|
50
|
+
],
|
|
51
|
+
}),
|
|
52
|
+
Plugin.addModule({
|
|
53
|
+
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
54
|
+
activate: EdgeModelResolver,
|
|
55
|
+
}),
|
|
56
|
+
Plugin.addModule({
|
|
57
|
+
activatesOn: AssistantEvents.SetupAiServiceProviders,
|
|
58
|
+
activate: LocalModelResolver,
|
|
59
|
+
}),
|
|
60
|
+
Plugin.addModule((options) => ({
|
|
61
|
+
id: Capability.getModuleTag(AiService),
|
|
62
|
+
firesBeforeActivation: [AssistantEvents.SetupAiServiceProviders],
|
|
63
|
+
activatesOn: ActivationEvents.SetupProcessManager,
|
|
64
|
+
activate: () => AiService(options),
|
|
65
|
+
})),
|
|
66
|
+
Plugin.addModule({
|
|
67
|
+
activatesOn: ActivationEvents.SetupProcessManager,
|
|
68
|
+
activate: AiContextCapability,
|
|
69
|
+
}),
|
|
70
|
+
Plugin.addModule({
|
|
71
|
+
activatesOn: ActivationEvents.Startup,
|
|
72
|
+
activate: Toolkit,
|
|
73
|
+
}),
|
|
74
|
+
Plugin.make,
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
export default AssistantPlugin;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as LanguageModel from '@effect/ai/LanguageModel';
|
|
6
|
+
import { type TestContext } from '@effect/vitest';
|
|
7
|
+
import * as Effect from 'effect/Effect';
|
|
8
|
+
import * as Layer from 'effect/Layer';
|
|
9
|
+
import * as Schema from 'effect/Schema';
|
|
10
|
+
import { describe, test } from 'vitest';
|
|
11
|
+
|
|
12
|
+
import { AiService } from '@dxos/ai';
|
|
13
|
+
import { TestAiService } from '@dxos/ai/testing';
|
|
14
|
+
import { AppActivationEvents } from '@dxos/app-toolkit';
|
|
15
|
+
import { AgentPrompt } from '@dxos/assistant-toolkit';
|
|
16
|
+
import { Operation, Routine, ServiceResolver } from '@dxos/compute';
|
|
17
|
+
import { Database, Feed, Ref } from '@dxos/echo';
|
|
18
|
+
import { runAndForwardErrors } from '@dxos/effect';
|
|
19
|
+
import { TestContextService } from '@dxos/effect/testing';
|
|
20
|
+
import { EntityId } from '@dxos/keys';
|
|
21
|
+
import { AutomationPlugin } from '@dxos/plugin-automation/plugin';
|
|
22
|
+
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
23
|
+
import { ClientPlugin } from '@dxos/plugin-client/plugin';
|
|
24
|
+
import { initializeIdentity } from '@dxos/plugin-client/testing';
|
|
25
|
+
import { createComposerTestApp } from '@dxos/plugin-testing/harness';
|
|
26
|
+
|
|
27
|
+
import { AssistantPlugin } from '#plugin';
|
|
28
|
+
|
|
29
|
+
import { meta } from './meta';
|
|
30
|
+
|
|
31
|
+
EntityId.dangerouslyDisableRandomness();
|
|
32
|
+
|
|
33
|
+
const moduleId = (name: string) => `${meta.id}.module.${name}`;
|
|
34
|
+
|
|
35
|
+
describe('AssistantPlugin', () => {
|
|
36
|
+
test('modules activate on the expected events', async ({ expect }) => {
|
|
37
|
+
await using harness = await createComposerTestApp({
|
|
38
|
+
plugins: [ClientPlugin({}), AssistantPlugin()],
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// After autoStart: AppGraphBuilder, CreateObject, schema, OperationHandler all auto-cascade.
|
|
42
|
+
expect(harness.manager.getActive()).toEqual(
|
|
43
|
+
expect.arrayContaining([moduleId('AppGraphBuilder'), moduleId('CreateObject'), moduleId('schema')]),
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
// AssistantPlugin fires SetupArtifactDefinition itself, so it can test its own blueprint.
|
|
47
|
+
await harness.fire(AppActivationEvents.SetupArtifactDefinition);
|
|
48
|
+
expect(harness.manager.getActive()).toContain(moduleId('BlueprintDefinition'));
|
|
49
|
+
|
|
50
|
+
// OperationHandler auto-cascades from ProcessManagerPlugin.
|
|
51
|
+
expect(harness.manager.getActive()).toContain(moduleId('OperationHandler'));
|
|
52
|
+
|
|
53
|
+
// AiService module must activate on SetupProcessManager (before the process manager is built).
|
|
54
|
+
expect(harness.manager.getActive()).toContain(moduleId('AiService'));
|
|
55
|
+
|
|
56
|
+
// AiService must be resolvable via the process manager's ServiceResolver.
|
|
57
|
+
await harness.runPromise(
|
|
58
|
+
Effect.gen(function* () {
|
|
59
|
+
const aiService = yield* AiService.AiService;
|
|
60
|
+
expect(aiService).toBeDefined();
|
|
61
|
+
}).pipe(Effect.provide(ServiceResolver.provide({}, AiService.AiService))),
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
test('can memoize ai-service requests', async (ctx) => {
|
|
66
|
+
const { expect } = ctx;
|
|
67
|
+
await using harness = await createComposerTestApp({
|
|
68
|
+
plugins: [
|
|
69
|
+
ClientPlugin({}),
|
|
70
|
+
AssistantPlugin({
|
|
71
|
+
aiServiceMiddleware: await makeMemoizedAiServiceMiddleware(ctx),
|
|
72
|
+
}),
|
|
73
|
+
],
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
await harness.runPromise(
|
|
77
|
+
Effect.gen(function* () {
|
|
78
|
+
const { text } = yield* LanguageModel.generateText({
|
|
79
|
+
prompt: 'What is the capital of France?',
|
|
80
|
+
});
|
|
81
|
+
expect(text.toLocaleLowerCase()).toContain('paris');
|
|
82
|
+
}).pipe(
|
|
83
|
+
Effect.provide(
|
|
84
|
+
AiService.model('@anthropic/claude-haiku-4-5').pipe(
|
|
85
|
+
Layer.provideMerge(ServiceResolver.provide({}, AiService.AiService)),
|
|
86
|
+
),
|
|
87
|
+
),
|
|
88
|
+
),
|
|
89
|
+
);
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
test('can run memoized routine', { timeout: 120_000 }, async (ctx) => {
|
|
93
|
+
const { expect } = ctx;
|
|
94
|
+
await using harness = await createComposerTestApp({
|
|
95
|
+
plugins: [
|
|
96
|
+
ClientPlugin({}),
|
|
97
|
+
AssistantPlugin({
|
|
98
|
+
aiServiceMiddleware: await makeMemoizedAiServiceMiddleware(ctx),
|
|
99
|
+
}),
|
|
100
|
+
AutomationPlugin(),
|
|
101
|
+
],
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
await harness.fire(AppActivationEvents.SetupArtifactDefinition);
|
|
105
|
+
|
|
106
|
+
const { personalSpace } = await runAndForwardErrors(initializeIdentity(harness.get(ClientCapabilities.Client)));
|
|
107
|
+
|
|
108
|
+
await harness.runPromise(
|
|
109
|
+
Effect.gen(function* () {
|
|
110
|
+
const routine = yield* Database.add(
|
|
111
|
+
Routine.make({
|
|
112
|
+
name: 'capital-test',
|
|
113
|
+
instructions:
|
|
114
|
+
'Call completeJob with success set to a JSON object { "capital": "<lowercase country capital>" } for the country in input.',
|
|
115
|
+
input: Schema.Struct({
|
|
116
|
+
country: Schema.String,
|
|
117
|
+
}),
|
|
118
|
+
output: Schema.Struct({
|
|
119
|
+
capital: Schema.String,
|
|
120
|
+
}),
|
|
121
|
+
}),
|
|
122
|
+
);
|
|
123
|
+
yield* Database.flush();
|
|
124
|
+
|
|
125
|
+
const result = yield* Operation.invoke(
|
|
126
|
+
AgentPrompt,
|
|
127
|
+
{
|
|
128
|
+
prompt: Ref.make(routine),
|
|
129
|
+
input: {
|
|
130
|
+
country: 'France',
|
|
131
|
+
},
|
|
132
|
+
model: '@anthropic/claude-haiku-4-5',
|
|
133
|
+
},
|
|
134
|
+
{ spaceId: personalSpace.id },
|
|
135
|
+
);
|
|
136
|
+
expect(result).toEqual({ capital: 'paris' });
|
|
137
|
+
}).pipe(Effect.provide(ServiceResolver.provide({ space: personalSpace.id }, Database.Service, Feed.FeedService))),
|
|
138
|
+
);
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
const makeMemoizedAiServiceMiddleware = (
|
|
143
|
+
ctx: TestContext,
|
|
144
|
+
): Promise<(_upstream: AiService.Service) => AiService.Service> =>
|
|
145
|
+
AiService.AiService.pipe(
|
|
146
|
+
Effect.provide(
|
|
147
|
+
TestAiService({ preset: 'direct' }).pipe(Layer.provideMerge(Layer.succeed(TestContextService, ctx))),
|
|
148
|
+
),
|
|
149
|
+
// Ignoring actual AI service the plugin contructs and using our own.
|
|
150
|
+
Effect.map((service) => (_upstream: AiService.Service) => service),
|
|
151
|
+
Effect.runPromise,
|
|
152
|
+
);
|