@dxos/plugin-assistant 0.11.1 → 0.12.0-next-2800d0376abcc62d5544afdd744b16b2b960434e
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/PLUGIN.mdl +5 -3
- package/dist/lib/Assistant.mjs +19 -0
- package/dist/lib/Assistant.mjs.map +1 -0
- package/dist/lib/AssistantCapabilities.mjs +50 -0
- package/dist/lib/AssistantCapabilities.mjs.map +1 -0
- package/dist/lib/AssistantEvents.mjs +17 -0
- package/dist/lib/AssistantEvents.mjs.map +1 -0
- package/dist/lib/AssistantOperation.mjs +149 -0
- package/dist/lib/AssistantOperation.mjs.map +1 -0
- package/dist/lib/AssistantOptions.mjs +7 -0
- package/dist/lib/AssistantOptions.mjs.map +1 -0
- package/dist/lib/AssistantPlugin.mjs +16 -2
- package/dist/lib/AssistantPlugin.mjs.map +1 -0
- package/dist/lib/AssistantPreset.mjs +7 -0
- package/dist/lib/AssistantPreset.mjs.map +1 -0
- package/dist/lib/AssistantService.mjs +81 -0
- package/dist/lib/AssistantService.mjs.map +1 -0
- package/dist/lib/AssistantSkill.mjs +21 -0
- package/dist/lib/AssistantSkill.mjs.map +1 -0
- package/dist/lib/ChatSurface.mjs +15 -0
- package/dist/lib/ChatSurface.mjs.map +1 -0
- package/dist/lib/Ollama.mjs +19 -0
- package/dist/lib/Ollama.mjs.map +1 -0
- package/dist/lib/Settings.mjs +59 -0
- package/dist/lib/Settings.mjs.map +1 -0
- package/dist/lib/capabilities.mjs +107 -20
- package/dist/lib/capabilities.mjs.map +1 -1
- package/dist/lib/capabilities.node.mjs +93 -0
- package/dist/lib/capabilities.node.mjs.map +1 -0
- package/dist/lib/capabilities.workerd.mjs +87 -0
- package/dist/lib/capabilities.workerd.mjs.map +1 -0
- package/dist/lib/chunk-AgentArticle.mjs +9 -9
- package/dist/lib/chunk-AgentArticle.mjs.map +1 -1
- package/dist/lib/chunk-AgentProperties.mjs +13 -12
- package/dist/lib/chunk-AgentProperties.mjs.map +1 -1
- package/dist/lib/chunk-AssistantSettings.mjs +17 -13
- package/dist/lib/chunk-AssistantSettings.mjs.map +1 -1
- package/dist/lib/chunk-ChatArticle.mjs +20 -16
- package/dist/lib/chunk-ChatArticle.mjs.map +1 -1
- package/dist/lib/chunk-ChatCompanion.mjs +23 -95
- package/dist/lib/chunk-ChatCompanion.mjs.map +1 -1
- package/dist/lib/chunk-ChatDialog.mjs +7 -8
- package/dist/lib/chunk-ChatDialog.mjs.map +1 -1
- package/dist/lib/chunk-IntegrationPrompt.mjs +42 -28
- package/dist/lib/chunk-IntegrationPrompt.mjs.map +1 -1
- package/dist/lib/chunk-PluginPrompt.mjs +83 -0
- package/dist/lib/chunk-PluginPrompt.mjs.map +1 -0
- package/dist/lib/chunk-SpaceHomePrompt.mjs +9 -11
- package/dist/lib/chunk-SpaceHomePrompt.mjs.map +1 -1
- package/dist/lib/chunk-SpaceHomeSuggestions.mjs +10 -23
- package/dist/lib/chunk-SpaceHomeSuggestions.mjs.map +1 -1
- package/dist/lib/chunk-TracePanel.mjs +128 -18
- package/dist/lib/chunk-TracePanel.mjs.map +1 -1
- package/dist/lib/chunk-TriggerStatus.mjs +8 -5
- package/dist/lib/chunk-TriggerStatus.mjs.map +1 -1
- package/dist/lib/chunk-agent-hydrator.mjs +9 -7
- package/dist/lib/chunk-agent-hydrator.mjs.map +1 -1
- package/dist/lib/chunk-agent-service.mjs +15 -8
- package/dist/lib/chunk-agent-service.mjs.map +1 -1
- package/dist/lib/chunk-ai-context.mjs +3 -2
- package/dist/lib/chunk-ai-context.mjs.map +1 -1
- package/dist/lib/chunk-ai-service.mjs +7 -9
- package/dist/lib/chunk-ai-service.mjs.map +1 -1
- package/dist/lib/chunk-app-graph-builder.mjs +64 -58
- package/dist/lib/chunk-app-graph-builder.mjs.map +1 -1
- package/dist/lib/chunk-automation-templates.mjs +10 -8
- package/dist/lib/chunk-automation-templates.mjs.map +1 -1
- package/dist/lib/chunk-bind-chat-context.mjs +58 -0
- package/dist/lib/chunk-bind-chat-context.mjs.map +1 -0
- package/dist/lib/chunk-companion-chat-provisioner.mjs +34 -30
- package/dist/lib/chunk-companion-chat-provisioner.mjs.map +1 -1
- package/dist/lib/chunk-connector.mjs +6 -6
- package/dist/lib/chunk-connector.mjs.map +1 -1
- package/dist/lib/chunk-context.mjs.map +1 -1
- package/dist/lib/chunk-create-chat.mjs +13 -21
- package/dist/lib/chunk-create-chat.mjs.map +1 -1
- package/dist/lib/chunk-create-object.mjs +31 -32
- package/dist/lib/chunk-create-object.mjs.map +1 -1
- package/dist/lib/chunk-edge-model-resolver.mjs +12 -11
- package/dist/lib/chunk-edge-model-resolver.mjs.map +1 -1
- package/dist/lib/chunk-ensure-companion-chat.mjs +23 -19
- package/dist/lib/chunk-ensure-companion-chat.mjs.map +1 -1
- package/dist/lib/chunk-extensions.mjs +1 -1
- package/dist/lib/chunk-fork-chat.mjs +15 -16
- package/dist/lib/chunk-fork-chat.mjs.map +1 -1
- package/dist/lib/chunk-generate-home-suggestions.mjs +14 -12
- package/dist/lib/chunk-generate-home-suggestions.mjs.map +1 -1
- package/dist/lib/chunk-local-model-resolver.mjs +5 -5
- package/dist/lib/chunk-local-model-resolver.mjs.map +1 -1
- package/dist/lib/chunk-markdown-extension.mjs +5 -4
- package/dist/lib/chunk-markdown-extension.mjs.map +1 -1
- package/dist/lib/chunk-operation-handler.mjs +16 -5
- package/dist/lib/chunk-operation-handler.mjs.map +1 -1
- package/dist/lib/chunk-paths.mjs +1 -1
- package/dist/lib/chunk-paths.mjs.map +1 -1
- package/dist/lib/chunk-processor.mjs +51 -28
- package/dist/lib/chunk-processor.mjs.map +1 -1
- package/dist/lib/chunk-react-surface.mjs +29 -16
- package/dist/lib/chunk-react-surface.mjs.map +1 -1
- package/dist/lib/chunk-rolldown-runtime.mjs +13 -0
- package/dist/lib/chunk-run-prompt-in-new-chat.mjs +19 -13
- package/dist/lib/chunk-run-prompt-in-new-chat.mjs.map +1 -1
- package/dist/lib/chunk-schema-defs.mjs +27 -0
- package/dist/lib/chunk-schema-defs.mjs.map +1 -0
- package/dist/lib/chunk-set-current-chat.mjs +5 -7
- package/dist/lib/chunk-set-current-chat.mjs.map +1 -1
- package/dist/lib/chunk-set-trace-panel-debug.mjs +16 -0
- package/dist/lib/chunk-set-trace-panel-debug.mjs.map +1 -0
- package/dist/lib/chunk-settings.mjs +5 -5
- package/dist/lib/chunk-settings.mjs.map +1 -1
- package/dist/lib/chunk-skill-definition.mjs +28 -37
- package/dist/lib/chunk-skill-definition.mjs.map +1 -1
- package/dist/lib/chunk-state.mjs +7 -7
- package/dist/lib/chunk-state.mjs.map +1 -1
- package/dist/lib/chunk-subject-context.mjs +21 -0
- package/dist/lib/chunk-subject-context.mjs.map +1 -0
- package/dist/lib/chunk-toolkit.mjs +4 -6
- package/dist/lib/chunk-toolkit.mjs.map +1 -1
- package/dist/lib/chunk-update-chat-name.mjs +7 -7
- package/dist/lib/chunk-update-chat-name.mjs.map +1 -1
- package/dist/lib/components.mjs +447 -1096
- package/dist/lib/components.mjs.map +1 -1
- package/dist/lib/containers.mjs +2 -1
- package/dist/lib/containers.mjs.map +1 -1
- package/dist/lib/execution-graph.mjs +37 -20
- package/dist/lib/execution-graph.mjs.map +1 -1
- package/dist/lib/hooks.mjs +70 -41
- package/dist/lib/hooks.mjs.map +1 -1
- package/dist/lib/index.mjs +4 -4
- package/dist/lib/meta.mjs +47 -1
- package/dist/lib/meta.mjs.map +1 -0
- package/dist/lib/operations.mjs +15 -2
- package/dist/lib/operations.mjs.map +1 -1
- package/dist/lib/plugin.mjs +5 -5
- package/dist/lib/plugin.mjs.map +1 -1
- package/dist/lib/skills.mjs +82 -2
- package/dist/lib/skills.mjs.map +1 -0
- package/dist/lib/testing.mjs +1 -2
- package/dist/lib/translations.mjs +25 -5
- package/dist/lib/translations.mjs.map +1 -1
- package/dist/lib/types.mjs +11 -2
- package/dist/types/src/AssistantPlugin.d.ts +36 -4
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/AssistantSurfaces.d.ts +1 -1
- package/dist/types/src/capabilities/AssistantSurfaces.d.ts.map +1 -1
- package/dist/types/src/capabilities/agent-hydrator.d.ts +2 -2
- package/dist/types/src/capabilities/agent-hydrator.d.ts.map +1 -1
- package/dist/types/src/capabilities/agent-service.d.ts +2 -2
- package/dist/types/src/capabilities/agent-service.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-context.d.ts +2 -2
- package/dist/types/src/capabilities/ai-context.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-service.d.ts +3 -3
- package/dist/types/src/capabilities/ai-service.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -13
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/automation-templates.d.ts +2 -2
- package/dist/types/src/capabilities/automation-templates.d.ts.map +1 -1
- package/dist/types/src/capabilities/chats-section-query.test.d.ts +2 -0
- package/dist/types/src/capabilities/chats-section-query.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/companion-chat-provisioner.d.ts +2 -2
- package/dist/types/src/capabilities/companion-chat-provisioner.d.ts.map +1 -1
- package/dist/types/src/capabilities/connector.d.ts +2 -2
- package/dist/types/src/capabilities/connector.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +3 -2
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
- package/dist/types/src/capabilities/edge-model-resolver.d.ts +2 -4
- package/dist/types/src/capabilities/edge-model-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/gen/node.d.ts +24 -0
- package/dist/types/src/capabilities/gen/node.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/workerd.d.ts +24 -0
- package/dist/types/src/capabilities/gen/workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +23 -21
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/local-model-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/local-model-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/markdown-extension.d.ts +2 -2
- package/dist/types/src/capabilities/markdown-extension.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +2 -3
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/schema-defs.d.ts +4 -0
- package/dist/types/src/capabilities/schema-defs.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +2 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/skill-definition.d.ts +3 -2
- package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +2 -2
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/capabilities/subject-context.d.ts +5 -0
- package/dist/types/src/capabilities/subject-context.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit.d.ts +2 -2
- package/dist/types/src/capabilities/toolkit.d.ts.map +1 -1
- package/dist/types/src/commands/index.d.ts +2 -0
- package/dist/types/src/commands/index.d.ts.map +1 -0
- package/dist/types/src/commands/task-commands.d.ts +8 -0
- package/dist/types/src/commands/task-commands.d.ts.map +1 -0
- package/dist/types/src/components/AgentProperties/AgentProperties.d.ts.map +1 -1
- package/dist/types/src/components/AgentProperties/AgentProperties.stories.d.ts +2 -1
- package/dist/types/src/components/AgentProperties/AgentProperties.stories.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Chat.d.ts +37 -41
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/Error.stories.d.ts +13 -1
- package/dist/types/src/components/Chat/Error.stories.d.ts.map +1 -1
- package/dist/types/src/components/{ChatThread/widgets → Chat}/SurfaceWidget.d.ts +1 -1
- package/dist/types/src/components/Chat/SurfaceWidget.d.ts.map +1 -0
- package/dist/types/src/components/Chat/Thread.stories.d.ts +51 -0
- package/dist/types/src/components/Chat/Thread.stories.d.ts.map +1 -0
- package/dist/types/src/components/Chat/context.d.ts +8 -8
- package/dist/types/src/components/Chat/context.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts +5 -1
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatMcpErrors.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +2 -2
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts +2 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts +2 -2
- package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatPrompt.d.ts +3 -3
- package/dist/types/src/components/ChatPrompt/ChatPrompt.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/useChatVoiceInput.d.ts.map +1 -1
- package/dist/types/src/components/ConnectorAuthMenu/ConnectorAuthMenu.d.ts +1 -1
- package/dist/types/src/components/ConnectorAuthMenu/ConnectorAuthMenu.d.ts.map +1 -1
- package/dist/types/src/components/ConnectorAuthMenu/ConnectorAuthMenu.stories.d.ts +23 -5
- package/dist/types/src/components/ConnectorAuthMenu/ConnectorAuthMenu.stories.d.ts.map +1 -1
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts +1 -1
- package/dist/types/src/components/ProcessTree/ProcessTree.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +4 -4
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +2 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts +2 -1
- package/dist/types/src/containers/AgentArticle/AgentArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/AssistantSettings/AssistantSettings.stories.d.ts +2 -4
- package/dist/types/src/containers/AssistantSettings/AssistantSettings.stories.d.ts.map +1 -1
- package/dist/types/src/containers/AssistantSettings/OllamaModels.d.ts +4 -4
- package/dist/types/src/containers/AssistantSettings/OllamaModels.d.ts.map +1 -1
- package/dist/types/src/containers/AssistantSettings/OllamaModels.stories.d.ts +5 -4
- package/dist/types/src/containers/AssistantSettings/OllamaModels.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ChatArticle/ChatArticle.d.ts +6 -5
- package/dist/types/src/containers/ChatArticle/ChatArticle.d.ts.map +1 -1
- package/dist/types/src/containers/ChatArticle/ChatArticle.stories.d.ts +37 -4
- package/dist/types/src/containers/ChatArticle/ChatArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts.map +1 -1
- package/dist/types/src/containers/ChatDialog/ChatDialog.d.ts.map +1 -1
- package/dist/types/src/containers/IntegrationPrompt/IntegrationPrompt.d.ts +5 -1
- package/dist/types/src/containers/IntegrationPrompt/IntegrationPrompt.d.ts.map +1 -1
- package/dist/types/src/containers/PluginPrompt/PluginPrompt.d.ts +10 -0
- package/dist/types/src/containers/PluginPrompt/PluginPrompt.d.ts.map +1 -0
- package/dist/types/src/containers/PluginPrompt/index.d.ts +2 -0
- package/dist/types/src/containers/PluginPrompt/index.d.ts.map +1 -0
- package/dist/types/src/containers/SpaceHomePrompt/SpaceHomePrompt.d.ts +1 -0
- package/dist/types/src/containers/SpaceHomePrompt/SpaceHomePrompt.d.ts.map +1 -1
- package/dist/types/src/containers/SpaceHomeSuggestions/SpaceHomeSuggestions.d.ts +1 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts.map +1 -1
- package/dist/types/src/containers/TracePanel/TracePanel.stories.d.ts.map +1 -1
- package/dist/types/src/containers/TracePanel/TraceToolbar.d.ts +12 -0
- package/dist/types/src/containers/TracePanel/TraceToolbar.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts +2 -1
- package/dist/types/src/containers/TracePanel/testing/simulated-agent.d.ts.map +1 -1
- package/dist/types/src/containers/TracePanel/trace-filter.d.ts +32 -0
- package/dist/types/src/containers/TracePanel/trace-filter.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/trace-filter.test.d.ts +2 -0
- package/dist/types/src/containers/TracePanel/trace-filter.test.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts +0 -11
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +1 -0
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/execution-graph/execution-graph.d.ts +2 -1
- package/dist/types/src/execution-graph/execution-graph.d.ts.map +1 -1
- package/dist/types/src/execution-graph/pending-block-status.d.ts +1 -1
- package/dist/types/src/execution-graph/pending-block-status.d.ts.map +1 -1
- package/dist/types/src/execution-graph/span-tree.d.ts +1 -1
- package/dist/types/src/execution-graph/span-tree.d.ts.map +1 -1
- package/dist/types/src/execution-graph/testing/collect-trace-events.d.ts +2 -2
- package/dist/types/src/execution-graph/testing/collect-trace-events.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +5 -6
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -1
- package/dist/types/src/hooks/useHomeSuggestions.d.ts.map +1 -1
- package/dist/types/src/hooks/usePlatform.d.ts +17 -0
- package/dist/types/src/hooks/usePlatform.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +2 -2
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -1
- package/dist/types/src/hooks/useProcessEphemeralStatus.d.ts +1 -1
- package/dist/types/src/hooks/useProcessEphemeralStatus.d.ts.map +1 -1
- package/dist/types/src/hooks/useSelectionContext.d.ts +2 -2
- package/dist/types/src/hooks/useSelectionContext.d.ts.map +1 -1
- package/dist/types/src/hooks/useSkillRegistry.d.ts +1 -1
- package/dist/types/src/hooks/useSkillRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useTraceMessages.d.ts +2 -2
- package/dist/types/src/hooks/useTraceMessages.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -3
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/operations/{toggle-trace-panel-debug.d.ts → bind-chat-context.d.ts} +3 -3
- package/dist/types/src/operations/bind-chat-context.d.ts.map +1 -0
- package/dist/types/src/operations/bind-chat-context.test.d.ts +2 -0
- package/dist/types/src/operations/bind-chat-context.test.d.ts.map +1 -0
- package/dist/types/src/operations/create-chat.d.ts +1 -1
- package/dist/types/src/operations/create-chat.d.ts.map +1 -1
- package/dist/types/src/operations/ensure-companion-chat.d.ts +1 -1
- package/dist/types/src/operations/ensure-companion-chat.d.ts.map +1 -1
- package/dist/types/src/operations/fork-chat.d.ts +1 -1
- package/dist/types/src/operations/fork-chat.d.ts.map +1 -1
- package/dist/types/src/operations/generate-home-suggestions.d.ts +1 -1
- package/dist/types/src/operations/generate-home-suggestions.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts +2 -2
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts.map +1 -1
- package/dist/types/src/operations/set-current-chat.d.ts +1 -1
- package/dist/types/src/operations/set-current-chat.d.ts.map +1 -1
- package/dist/types/src/operations/set-trace-panel-debug.d.ts +5 -0
- package/dist/types/src/operations/set-trace-panel-debug.d.ts.map +1 -0
- package/dist/types/src/operations/update-chat-name.d.ts +1 -1
- package/dist/types/src/operations/update-chat-name.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +4 -3
- package/dist/types/src/plugin.d.ts.map +1 -1
- package/dist/types/src/plugin.test.d.ts +2 -0
- package/dist/types/src/plugin.test.d.ts.map +1 -0
- package/dist/types/src/processor/processor.d.ts +9 -9
- package/dist/types/src/processor/processor.d.ts.map +1 -1
- package/dist/types/src/skills/assistant/AssistantSkill.d.ts +4 -0
- package/dist/types/src/skills/assistant/AssistantSkill.d.ts.map +1 -0
- package/dist/types/src/skills/assistant/index.d.ts +1 -1
- package/dist/types/src/skills/assistant/index.d.ts.map +1 -1
- package/dist/types/src/skills/index.d.ts +1 -0
- package/dist/types/src/skills/index.d.ts.map +1 -1
- package/dist/types/src/skills/plugin-manager/PluginManagerSkill.d.ts +27 -0
- package/dist/types/src/skills/plugin-manager/PluginManagerSkill.d.ts.map +1 -0
- package/dist/types/src/skills/plugin-manager/index.d.ts +2 -0
- package/dist/types/src/skills/plugin-manager/index.d.ts.map +1 -0
- package/dist/types/src/templates/daily-digest.d.ts +1 -1
- package/dist/types/src/templates/daily-digest.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +1 -1
- package/dist/types/src/templates/index.d.ts.map +1 -1
- package/dist/types/src/templates/research-brief.d.ts +1 -1
- package/dist/types/src/templates/research-brief.d.ts.map +1 -1
- package/dist/types/src/templates/scaffold.d.ts +3 -2
- package/dist/types/src/templates/scaffold.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +0 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-services.d.ts +3 -3
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/testing/test-trace.d.ts +1 -1
- package/dist/types/src/testing/test-trace.d.ts.map +1 -1
- package/dist/types/src/testing.d.ts +1 -1
- package/dist/types/src/testing.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +17 -21
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/AssistantCapabilities.d.ts +54 -19
- package/dist/types/src/types/AssistantCapabilities.d.ts.map +1 -1
- package/dist/types/src/types/AssistantEvents.d.ts +9 -2
- package/dist/types/src/types/AssistantEvents.d.ts.map +1 -1
- package/dist/types/src/types/AssistantOperation.d.ts +24 -18
- package/dist/types/src/types/AssistantOperation.d.ts.map +1 -1
- package/dist/types/src/types/AssistantOptions.d.ts +10 -0
- package/dist/types/src/types/AssistantOptions.d.ts.map +1 -0
- package/dist/types/src/types/{preset.d.ts → AssistantPreset.d.ts} +1 -1
- package/dist/types/src/types/AssistantPreset.d.ts.map +1 -0
- package/dist/types/src/types/AssistantService.d.ts +104 -0
- package/dist/types/src/types/AssistantService.d.ts.map +1 -0
- package/dist/types/src/types/ChatSurface.d.ts +1 -1
- package/dist/types/src/types/ChatSurface.d.ts.map +1 -1
- package/dist/types/src/types/Ollama.d.ts +1 -1
- package/dist/types/src/types/Ollama.d.ts.map +1 -1
- package/dist/types/src/types/Settings.d.ts +17 -18
- package/dist/types/src/types/Settings.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +6 -9
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +193 -124
- package/src/AssistantPlugin.ts +7 -143
- package/src/capabilities/AssistantSurfaces.tsx +3 -3
- package/src/capabilities/agent-hydrator.ts +8 -6
- package/src/capabilities/agent-service.ts +13 -5
- package/src/capabilities/ai-context.ts +4 -5
- package/src/capabilities/ai-service.ts +13 -13
- package/src/capabilities/app-graph-builder.ts +83 -80
- package/src/capabilities/automation-templates.ts +3 -3
- package/src/capabilities/{standalone-chats-query.test.ts → chats-section-query.test.ts} +8 -11
- package/src/capabilities/companion-chat-provisioner.ts +50 -31
- package/src/capabilities/connector.ts +6 -6
- package/src/capabilities/create-object.ts +62 -40
- package/src/capabilities/edge-model-resolver.ts +11 -19
- package/src/capabilities/gen/node.ts +157 -0
- package/src/capabilities/gen/workerd.ts +140 -0
- package/src/capabilities/index.ts +146 -27
- package/src/capabilities/local-model-resolver.ts +12 -14
- package/src/capabilities/markdown-extension.ts +5 -4
- package/src/capabilities/operation-handler.ts +30 -4
- package/src/capabilities/react-surface.ts +28 -9
- package/src/capabilities/schema-defs.ts +32 -0
- package/src/capabilities/settings.ts +4 -4
- package/src/capabilities/skill-definition.ts +36 -49
- package/src/capabilities/state.ts +5 -5
- package/src/capabilities/subject-context.ts +28 -0
- package/src/capabilities/toolkit.ts +3 -3
- package/src/{components/TaskList → commands}/index.ts +1 -1
- package/src/commands/task-commands.ts +150 -0
- package/src/components/AgentProperties/AgentProperties.stories.tsx +1 -1
- package/src/components/AgentProperties/AgentProperties.tsx +3 -7
- package/src/components/Chat/Chat.tsx +215 -145
- package/src/components/Chat/Error.stories.tsx +11 -1
- package/src/components/{ChatThread/widgets → Chat}/SurfaceWidget.tsx +2 -2
- package/src/components/{ChatThread/ChatThread.stories.tsx → Chat/Thread.stories.tsx} +109 -40
- package/src/components/Chat/context.ts +8 -8
- package/src/components/ChatPrompt/ChatActions.tsx +104 -32
- package/src/components/ChatPrompt/ChatMcpErrors.tsx +18 -16
- package/src/components/ChatPrompt/ChatOptions.stories.tsx +1 -1
- package/src/components/ChatPrompt/ChatOptions.tsx +4 -3
- package/src/components/ChatPrompt/ChatPresets.tsx +2 -2
- package/src/components/ChatPrompt/ChatPrompt.tsx +54 -11
- package/src/components/ChatPrompt/useChatVoiceInput.ts +60 -7
- package/src/components/ConnectorAuthMenu/ConnectorAuthMenu.stories.tsx +23 -22
- package/src/components/ConnectorAuthMenu/ConnectorAuthMenu.tsx +12 -10
- package/src/components/ProcessTree/ProcessTree.stories.tsx +1 -1
- package/src/components/ProcessTree/ProcessTree.tsx +1 -1
- package/src/components/Toolbox/Toolbox.stories.tsx +1 -1
- package/src/components/Toolbox/Toolbox.tsx +6 -6
- package/src/components/index.ts +0 -1
- package/src/containers/AgentArticle/AgentArticle.stories.tsx +8 -7
- package/src/containers/AgentArticle/AgentArticle.tsx +5 -4
- package/src/containers/AgentProperties/AgentProperties.tsx +1 -1
- package/src/containers/AssistantSettings/AssistantSettings.stories.tsx +2 -1
- package/src/containers/AssistantSettings/AssistantSettings.tsx +1 -1
- package/src/containers/AssistantSettings/OllamaModels.stories.tsx +2 -2
- package/src/containers/AssistantSettings/OllamaModels.tsx +14 -11
- package/src/containers/ChatArticle/ChatArticle.stories.tsx +197 -23
- package/src/containers/ChatArticle/ChatArticle.tsx +36 -25
- package/src/containers/ChatCompanion/ChatCompanion.tsx +7 -114
- package/src/containers/ChatDialog/ChatDialog.tsx +3 -2
- package/src/containers/IntegrationPrompt/IntegrationPrompt.tsx +33 -14
- package/src/containers/PluginPrompt/PluginPrompt.tsx +93 -0
- package/src/containers/PluginPrompt/index.ts +5 -0
- package/src/containers/SpaceHomePrompt/SpaceHomePrompt.tsx +6 -5
- package/src/containers/SpaceHomeSuggestions/SpaceHomeSuggestions.tsx +13 -23
- package/src/containers/TracePanel/TracePanel.stories.tsx +8 -9
- package/src/containers/TracePanel/TracePanel.tsx +48 -21
- package/src/containers/TracePanel/TraceToolbar.tsx +83 -0
- package/src/containers/TracePanel/testing/simulated-agent.ts +2 -1
- package/src/containers/TracePanel/trace-filter.test.ts +100 -0
- package/src/containers/TracePanel/trace-filter.ts +84 -0
- package/src/containers/TriggerStatus/TriggerStatus.tsx +5 -5
- package/src/containers/index.ts +1 -0
- package/src/execution-graph/SPEC.md +13 -12
- package/src/execution-graph/execution-graph.test.ts +83 -1
- package/src/execution-graph/execution-graph.ts +34 -13
- package/src/execution-graph/pending-block-status.test.ts +6 -2
- package/src/execution-graph/pending-block-status.ts +1 -1
- package/src/execution-graph/remote-snapshot.test.ts +1 -1
- package/src/execution-graph/span-tree.test.ts +1 -1
- package/src/execution-graph/span-tree.ts +1 -1
- package/src/execution-graph/sub-agent-delegation.test.ts +1 -1
- package/src/execution-graph/testing/collect-trace-events.ts +4 -2
- package/src/execution-graph/testing/sub-agent-delegation.json +55 -55
- package/src/functions/services.test.ts +9 -8
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useChatProcessor.ts +14 -13
- package/src/hooks/useChatServices.ts +10 -4
- package/src/hooks/useChatToolbarActions.ts +2 -2
- package/src/hooks/useContextBinder.ts +4 -3
- package/src/hooks/useContextObjects.ts +2 -1
- package/src/hooks/useHomeSuggestions.ts +1 -5
- package/src/hooks/usePlatform.ts +23 -0
- package/src/hooks/usePresets.ts +4 -4
- package/src/hooks/useProcessEphemeralStatus.ts +9 -7
- package/src/hooks/useSelectionContext.ts +3 -3
- package/src/hooks/useSkillRegistry.ts +1 -1
- package/src/hooks/useTraceMessages.ts +3 -3
- package/src/index.ts +3 -3
- package/src/meta.ts +1 -1
- package/src/operations/bind-chat-context.test.ts +123 -0
- package/src/operations/bind-chat-context.ts +68 -0
- package/src/operations/create-chat.ts +24 -19
- package/src/operations/ensure-companion-chat.ts +23 -19
- package/src/operations/fork-chat.ts +15 -15
- package/src/operations/generate-home-suggestions.test.ts +10 -8
- package/src/operations/generate-home-suggestions.ts +10 -8
- package/src/operations/index.ts +16 -11
- package/src/operations/prompt.node.test.ts +11 -9
- package/src/operations/run-prompt-in-new-chat.ts +14 -8
- package/src/operations/set-current-chat.ts +4 -3
- package/src/operations/set-trace-panel-debug.ts +25 -0
- package/src/operations/update-chat-name.ts +4 -4
- package/src/paths.ts +1 -1
- package/src/{AssistantPlugin.test.ts → plugin.test.ts} +68 -41
- package/src/plugin.ts +64 -4
- package/src/processor/processor.node.test.ts +41 -21
- package/src/processor/processor.ts +56 -35
- package/src/processor/streaming.node.test.ts +13 -6
- package/src/skills/assistant/{skill.ts → AssistantSkill.ts} +6 -12
- package/src/skills/assistant/index.ts +1 -1
- package/src/skills/assistant/skill.node.test.ts +7 -7
- package/src/skills/index.ts +1 -0
- package/src/skills/plugin-manager/PluginManagerSkill.ts +82 -0
- package/src/skills/plugin-manager/index.ts +5 -0
- package/src/templates/daily-digest.ts +1 -2
- package/src/templates/index.ts +1 -1
- package/src/templates/research-brief.ts +1 -2
- package/src/templates/routine-templates.test.ts +10 -9
- package/src/templates/scaffold.ts +8 -4
- package/src/testing/data/trace-timeline-multiple.dx.json +1 -1
- package/src/testing/data/trace-timeline-remote.dx.json +1 -1
- package/src/testing/data/trace-timeline.dx.json +9 -9
- package/src/testing/index.ts +0 -1
- package/src/testing/test-services.ts +10 -8
- package/src/testing/test-trace.ts +2 -1
- package/src/testing/trace-timeline.node.test.ts +12 -8
- package/src/testing.ts +1 -1
- package/src/translations.ts +24 -2
- package/src/types/Assistant.ts +0 -7
- package/src/types/AssistantCapabilities.ts +67 -23
- package/src/types/AssistantEvents.ts +10 -5
- package/src/types/AssistantOperation.ts +53 -26
- package/src/types/AssistantOptions.ts +15 -0
- package/src/types/{service.ts → AssistantService.ts} +6 -6
- package/src/types/ChatSurface.ts +1 -1
- package/src/types/Ollama.ts +1 -1
- package/src/types/Settings.ts +61 -61
- package/src/types/index.ts +7 -18
- package/dist/lib/AssistantPlugin.node.mjs +0 -55
- package/dist/lib/AssistantPlugin.node.mjs.map +0 -1
- package/dist/lib/AssistantPlugin.workerd.mjs +0 -43
- package/dist/lib/AssistantPlugin.workerd.mjs.map +0 -1
- package/dist/lib/chunk-AssistantPlugin.mjs +0 -88
- package/dist/lib/chunk-AssistantPlugin.mjs.map +0 -1
- package/dist/lib/chunk-meta.mjs +0 -48
- package/dist/lib/chunk-meta.mjs.map +0 -1
- package/dist/lib/chunk-skills.mjs +0 -19
- package/dist/lib/chunk-skills.mjs.map +0 -1
- package/dist/lib/chunk-toggle-trace-panel-debug.mjs +0 -18
- package/dist/lib/chunk-toggle-trace-panel-debug.mjs.map +0 -1
- package/dist/lib/chunk-types.mjs +0 -332
- package/dist/lib/chunk-types.mjs.map +0 -1
- package/dist/lib/plugin.workerd.mjs +0 -2
- package/dist/types/src/AssistantPlugin.node.d.ts +0 -5
- package/dist/types/src/AssistantPlugin.node.d.ts.map +0 -1
- package/dist/types/src/AssistantPlugin.test.d.ts +0 -2
- package/dist/types/src/AssistantPlugin.test.d.ts.map +0 -1
- package/dist/types/src/AssistantPlugin.workerd.d.ts +0 -4
- package/dist/types/src/AssistantPlugin.workerd.d.ts.map +0 -1
- package/dist/types/src/capabilities/standalone-chats-query.test.d.ts +0 -2
- package/dist/types/src/capabilities/standalone-chats-query.test.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/Anchor.stories.d.ts +0 -14
- package/dist/types/src/components/ChatThread/Anchor.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +0 -29
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +0 -63
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/Link.d.ts +0 -9
- package/dist/types/src/components/ChatThread/Link.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts +0 -42
- package/dist/types/src/components/ChatThread/MarkdownStream.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/index.d.ts +0 -3
- package/dist/types/src/components/ChatThread/index.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/registry.d.ts +0 -29
- package/dist/types/src/components/ChatThread/registry.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/sync/index.d.ts +0 -3
- package/dist/types/src/components/ChatThread/sync/index.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/sync/sync.d.ts +0 -113
- package/dist/types/src/components/ChatThread/sync/sync.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/sync/sync.test.d.ts +0 -2
- package/dist/types/src/components/ChatThread/sync/sync.test.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/sync/tool-widget-state.d.ts +0 -18
- package/dist/types/src/components/ChatThread/sync/tool-widget-state.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/sync/tool-widget-state.test.d.ts +0 -2
- package/dist/types/src/components/ChatThread/sync/tool-widget-state.test.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/BranchWidget.d.ts +0 -15
- package/dist/types/src/components/ChatThread/widgets/BranchWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/BranchWidget.stories.d.ts +0 -21
- package/dist/types/src/components/ChatThread/widgets/BranchWidget.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/BranchWidget.test.d.ts +0 -2
- package/dist/types/src/components/ChatThread/widgets/BranchWidget.test.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/FallbackWidget.d.ts +0 -8
- package/dist/types/src/components/ChatThread/widgets/FallbackWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.d.ts +0 -25
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.stories.d.ts +0 -18
- package/dist/types/src/components/ChatThread/widgets/ReasoningWidget.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/ReferenceWidget.d.ts +0 -9
- package/dist/types/src/components/ChatThread/widgets/ReferenceWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/SelectWidget.d.ts +0 -14
- package/dist/types/src/components/ChatThread/widgets/SelectWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/StatsWidget.d.ts +0 -12
- package/dist/types/src/components/ChatThread/widgets/StatsWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/StatusWidget.d.ts +0 -12
- package/dist/types/src/components/ChatThread/widgets/StatusWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/SuggestionWidget.d.ts +0 -11
- package/dist/types/src/components/ChatThread/widgets/SuggestionWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/SummaryWidget.d.ts +0 -5
- package/dist/types/src/components/ChatThread/widgets/SummaryWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/SurfaceWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.d.ts +0 -8
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.stories.d.ts +0 -15
- package/dist/types/src/components/ChatThread/widgets/ToolWidget.stories.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/defaults.d.ts +0 -11
- package/dist/types/src/components/ChatThread/widgets/defaults.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/format-time.d.ts +0 -2
- package/dist/types/src/components/ChatThread/widgets/format-time.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/index.d.ts +0 -14
- package/dist/types/src/components/ChatThread/widgets/index.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/widgets/is-tool-message.d.ts +0 -3
- package/dist/types/src/components/ChatThread/widgets/is-tool-message.d.ts.map +0 -1
- package/dist/types/src/components/TaskList/TaskList.d.ts +0 -16
- package/dist/types/src/components/TaskList/TaskList.d.ts.map +0 -1
- package/dist/types/src/components/TaskList/TaskList.stories.d.ts +0 -18
- package/dist/types/src/components/TaskList/TaskList.stories.d.ts.map +0 -1
- package/dist/types/src/components/TaskList/index.d.ts +0 -2
- package/dist/types/src/components/TaskList/index.d.ts.map +0 -1
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +0 -11
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +0 -1
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts +0 -2
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts.map +0 -1
- package/dist/types/src/components/ToolBlock/index.d.ts +0 -4
- package/dist/types/src/components/ToolBlock/index.d.ts.map +0 -1
- package/dist/types/src/components/ToolBlock/is-tool-message.d.ts +0 -3
- package/dist/types/src/components/ToolBlock/is-tool-message.d.ts.map +0 -1
- package/dist/types/src/feed-logger.d.ts +0 -14
- package/dist/types/src/feed-logger.d.ts.map +0 -1
- package/dist/types/src/operations/toggle-trace-panel-debug.d.ts.map +0 -1
- package/dist/types/src/plugin.workerd.d.ts +0 -2
- package/dist/types/src/plugin.workerd.d.ts.map +0 -1
- package/dist/types/src/skills/assistant/skill.d.ts +0 -4
- package/dist/types/src/skills/assistant/skill.d.ts.map +0 -1
- package/dist/types/src/testing/test-generator.d.ts +0 -7
- package/dist/types/src/testing/test-generator.d.ts.map +0 -1
- package/dist/types/src/testing/test-generator.test.d.ts +0 -2
- package/dist/types/src/testing/test-generator.test.d.ts.map +0 -1
- package/dist/types/src/types/preset.d.ts.map +0 -1
- package/dist/types/src/types/service.d.ts +0 -41
- package/dist/types/src/types/service.d.ts.map +0 -1
- package/src/AssistantPlugin.node.ts +0 -89
- package/src/AssistantPlugin.workerd.ts +0 -49
- package/src/components/ChatThread/Anchor.stories.tsx +0 -96
- package/src/components/ChatThread/ChatThread.tsx +0 -150
- package/src/components/ChatThread/Link.tsx +0 -27
- package/src/components/ChatThread/MarkdownStream.stories.tsx +0 -281
- package/src/components/ChatThread/index.ts +0 -7
- package/src/components/ChatThread/registry.tsx +0 -340
- package/src/components/ChatThread/sync/index.ts +0 -6
- package/src/components/ChatThread/sync/sync.test.ts +0 -417
- package/src/components/ChatThread/sync/sync.ts +0 -244
- package/src/components/ChatThread/sync/tool-widget-state.test.ts +0 -34
- package/src/components/ChatThread/sync/tool-widget-state.ts +0 -46
- package/src/components/ChatThread/testing/reasoning.md +0 -25
- package/src/components/ChatThread/testing/thinking.md +0 -21
- package/src/components/ChatThread/testing/thread-1.md +0 -30
- package/src/components/ChatThread/testing/thread-2.md +0 -56
- package/src/components/ChatThread/testing/thread-widgets.md +0 -79
- package/src/components/ChatThread/widgets/BranchWidget.stories.tsx +0 -83
- package/src/components/ChatThread/widgets/BranchWidget.test.ts +0 -55
- package/src/components/ChatThread/widgets/BranchWidget.tsx +0 -61
- package/src/components/ChatThread/widgets/FallbackWidget.tsx +0 -28
- package/src/components/ChatThread/widgets/ReasoningWidget.stories.tsx +0 -68
- package/src/components/ChatThread/widgets/ReasoningWidget.ts +0 -139
- package/src/components/ChatThread/widgets/ReferenceWidget.ts +0 -28
- package/src/components/ChatThread/widgets/SelectWidget.ts +0 -39
- package/src/components/ChatThread/widgets/StatsWidget.ts +0 -31
- package/src/components/ChatThread/widgets/StatusWidget.ts +0 -53
- package/src/components/ChatThread/widgets/SuggestionWidget.ts +0 -50
- package/src/components/ChatThread/widgets/SummaryWidget.tsx +0 -29
- package/src/components/ChatThread/widgets/ToolWidget.stories.tsx +0 -55
- package/src/components/ChatThread/widgets/ToolWidget.tsx +0 -179
- package/src/components/ChatThread/widgets/defaults.ts +0 -14
- package/src/components/ChatThread/widgets/format-time.ts +0 -45
- package/src/components/ChatThread/widgets/index.ts +0 -17
- package/src/components/ChatThread/widgets/is-tool-message.ts +0 -13
- package/src/components/TaskList/TaskList.stories.tsx +0 -58
- package/src/components/TaskList/TaskList.tsx +0 -67
- package/src/components/ToolBlock/ToolBlock.tsx +0 -148
- package/src/components/ToolBlock/ToolBlockWidget.tsx +0 -5
- package/src/components/ToolBlock/index.ts +0 -7
- package/src/components/ToolBlock/is-tool-message.ts +0 -13
- package/src/feed-logger.ts +0 -151
- package/src/operations/toggle-trace-panel-debug.ts +0 -27
- package/src/plugin.workerd.ts +0 -5
- package/src/testing/test-generator.test.ts +0 -75
- package/src/testing/test-generator.ts +0 -280
- /package/src/types/{preset.ts → AssistantPreset.ts} +0 -0
package/PLUGIN.mdl
CHANGED
|
@@ -227,8 +227,10 @@ feat F-2: Companion Chat
|
|
|
227
227
|
when: companion chat does not yet exist
|
|
228
228
|
then: op:EnsureCompanionChat creates one and optionally persists it
|
|
229
229
|
req F-2.3:
|
|
230
|
-
when:
|
|
231
|
-
then:
|
|
230
|
+
when: op:EnsureCompanionChat resolves a companion chat
|
|
231
|
+
then: op:BindChatContext runs every cap:SubjectContext contribution that applies to the primary
|
|
232
|
+
object and binds the merged result — by default the object itself plus the skills its type
|
|
233
|
+
declares via Skill.SkillsAnnotation
|
|
232
234
|
```
|
|
233
235
|
|
|
234
236
|
```mdl
|
|
@@ -267,7 +269,7 @@ feat F-5: Tool Execution
|
|
|
267
269
|
```mdl
|
|
268
270
|
feat F-6: ECHO Integration
|
|
269
271
|
|
|
270
|
-
req F-6.1: Chat,
|
|
272
|
+
req F-6.1: Chat, Skill, Feed, Message, Memory, Plan, Routine, Agent, McpServer, and Sequence schemas are registered with ECHO. A chat's subject is recorded by Chat.CompanionChatAnnotation on that subject, not by a type.
|
|
271
273
|
req F-6.2:
|
|
272
274
|
when: a new space is created
|
|
273
275
|
then: op:OnCreateSpace provisions default assistant objects
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import { ChatViews as ChatViews$1, ModelDefaults as ModelDefaults$1, ModelProvider as ModelProvider$1, ModelProviders as ModelProviders$1, Settings as Settings$1 } from "./Settings.mjs";
|
|
3
|
+
//#region src/types/Assistant.ts
|
|
4
|
+
var Assistant_exports = /* @__PURE__ */ __exportAll({
|
|
5
|
+
ChatViews: () => ChatViews,
|
|
6
|
+
ModelDefaults: () => ModelDefaults,
|
|
7
|
+
ModelProvider: () => ModelProvider,
|
|
8
|
+
ModelProviders: () => ModelProviders,
|
|
9
|
+
Settings: () => Settings
|
|
10
|
+
});
|
|
11
|
+
var Settings = Settings$1;
|
|
12
|
+
var ChatViews = ChatViews$1;
|
|
13
|
+
var ModelProviders = ModelProviders$1;
|
|
14
|
+
var ModelProvider = ModelProvider$1;
|
|
15
|
+
var ModelDefaults = ModelDefaults$1;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ChatViews, ModelDefaults, ModelProvider, ModelProviders, Settings, Assistant_exports as t };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=Assistant.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Assistant.mjs","names":[],"sources":["../../src/types/Assistant.ts"],"sourcesContent":["//\n// Copyright 2024 DXOS.org\n//\n\n// @import-as-namespace\n\nimport { type DXN } from '@dxos/keys';\n\n// Re-export Settings as merged const/type (not as namespace).\nimport * as SettingsModule from './Settings';\nexport const Settings = SettingsModule.Settings;\nexport type Settings = SettingsModule.Settings;\n\nexport const ChatViews = SettingsModule.ChatViews;\n\nexport const ModelProviders: readonly DXN.DXN[] = SettingsModule.ModelProviders;\nexport const ModelProvider = SettingsModule.ModelProvider;\nexport type ModelProvider = SettingsModule.ModelProvider;\n\nexport const ModelDefaults = SettingsModule.ModelDefaults;\nexport type ModelDefaults = SettingsModule.ModelDefaults;\n"],"mappings":";;;;;;;;;;AAUA,IAAa,WAAW;AAGxB,IAAa,YAAY;AAEzB,IAAa,iBAAqC;AAClD,IAAa,gBAAgB;AAG7B,IAAa,gBAAgB"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import * as Capability from "@dxos/app-framework/Capability";
|
|
3
|
+
import { meta } from "#meta";
|
|
4
|
+
import * as Schema from "effect/Schema";
|
|
5
|
+
import * as Struct from "effect/Struct";
|
|
6
|
+
//#region src/types/AssistantCapabilities.ts
|
|
7
|
+
var AssistantCapabilities_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
AgentTurnProducer: () => AgentTurnProducer,
|
|
9
|
+
CompanionChatCache: () => CompanionChatCache,
|
|
10
|
+
HomeSuggestionsCache: () => HomeSuggestionsCache,
|
|
11
|
+
HomeSuggestionsCacheSchema: () => HomeSuggestionsCacheSchema,
|
|
12
|
+
OllamaManager: () => OllamaManager,
|
|
13
|
+
Settings: () => Settings,
|
|
14
|
+
State: () => State,
|
|
15
|
+
StateSchema: () => StateSchema,
|
|
16
|
+
SubjectContext: () => SubjectContext
|
|
17
|
+
});
|
|
18
|
+
var Settings = Capability.makeSingleton()(`${meta.profile.key}.capability.settings`);
|
|
19
|
+
var OllamaManager = Capability.makeSingleton()(`${meta.profile.key}.capability.ollamaManager`);
|
|
20
|
+
var StateSchema = Schema.Struct({
|
|
21
|
+
/** Map of primary object dxn to current chat dxn. */
|
|
22
|
+
currentChat: Schema.Record(Schema.String, Schema.UndefinedOr(Schema.String)),
|
|
23
|
+
/** Map of chat object path to prompt text to auto-submit when the chat opens. */
|
|
24
|
+
pendingPrompts: Schema.Record(Schema.String, Schema.UndefinedOr(Schema.String))
|
|
25
|
+
}).mapFields(Struct.map(Schema.mutableKey));
|
|
26
|
+
var State = Capability.makeSingleton()(`${meta.profile.key}.capability.state`);
|
|
27
|
+
/** Session-scoped cache of transient (not yet persisted) companion chats keyed by companion DXN string. */
|
|
28
|
+
var CompanionChatCache = Capability.makeSingleton()(`${meta.profile.key}.capability.companionChatCache`);
|
|
29
|
+
var HomeSuggestionsCacheSchema = Schema.Record(Schema.String, Schema.mutableKey(Schema.Struct({
|
|
30
|
+
/** Epoch ms timestamp of the successful generation that produced these prompts. */
|
|
31
|
+
generatedAt: Schema.Number,
|
|
32
|
+
/** Non-empty, trimmed prompts from a successful generation. */
|
|
33
|
+
prompts: Schema.Array(Schema.String)
|
|
34
|
+
})));
|
|
35
|
+
/** Per-space cache of LLM-generated home starter prompts, persisted across page reloads. */
|
|
36
|
+
var HomeSuggestionsCache = Capability.makeSingleton()(`${meta.profile.key}.capability.homeSuggestionsCache`);
|
|
37
|
+
/**
|
|
38
|
+
* Optional engine for producing a conversation turn. When contributed, the agent process runs turns
|
|
39
|
+
* through it instead of DXOS's own `AiSession` — e.g. a Claude Agent SDK host — while keeping its
|
|
40
|
+
* queue, alarms, redelivery, delegation and hydration.
|
|
41
|
+
*
|
|
42
|
+
* A registry rather than a singleton, for the same reason as `AgentDelegationStrategy`: a harness
|
|
43
|
+
* has to be able to contribute one before the app's own module activates without colliding.
|
|
44
|
+
*/
|
|
45
|
+
var AgentTurnProducer = Capability.make()("org.dxos.plugin.assistant.capability.agentTurnProducer");
|
|
46
|
+
var SubjectContext = Capability.make()(`${meta.profile.key}.capability.subjectContext`);
|
|
47
|
+
//#endregion
|
|
48
|
+
export { AgentTurnProducer, CompanionChatCache, HomeSuggestionsCache, HomeSuggestionsCacheSchema, OllamaManager, Settings, State, StateSchema, SubjectContext, AssistantCapabilities_exports as t };
|
|
49
|
+
|
|
50
|
+
//# sourceMappingURL=AssistantCapabilities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantCapabilities.mjs","names":[],"sources":["../../src/types/AssistantCapabilities.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport type * as Effect from 'effect/Effect';\nimport * as Schema from 'effect/Schema';\nimport * as Struct from 'effect/Struct';\nimport type * as Atom from 'effect/unstable/reactivity/Atom';\n\nimport type { MakeTurnProducer } from '@dxos/agent-runtime';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport type { AiContext } from '@dxos/assistant';\nimport type { Chat } from '@dxos/assistant-toolkit';\nimport type * as Instructions from '@dxos/compute/Instructions';\nimport { type Database, type Obj, type Ref, type Registry } from '@dxos/echo';\n\nimport { meta } from '#meta';\n\nimport * as Assistant from './Assistant';\nimport * as Ollama from './Ollama';\n\nexport const Settings = Capability.makeSingleton<Atom.Writable<Assistant.Settings>>()(\n `${meta.profile.key}.capability.settings`,\n);\n\nexport const OllamaManager = Capability.makeSingleton<Ollama.Manager>()(`${meta.profile.key}.capability.ollamaManager`);\n\nexport const StateSchema = Schema.Struct({\n /** Map of primary object dxn to current chat dxn. */\n currentChat: Schema.Record(Schema.String, Schema.UndefinedOr(Schema.String)),\n /** Map of chat object path to prompt text to auto-submit when the chat opens. */\n pendingPrompts: Schema.Record(Schema.String, Schema.UndefinedOr(Schema.String)),\n}).mapFields(Struct.map(Schema.mutableKey));\n\nexport type AssistantState = Schema.Schema.Type<typeof StateSchema>;\n\nexport const State = Capability.makeSingleton<Atom.Writable<AssistantState>>()(`${meta.profile.key}.capability.state`);\n\n/** Session-scoped cache of transient (not yet persisted) companion chats keyed by companion DXN string. */\nexport const CompanionChatCache = Capability.makeSingleton<Atom.Writable<Record<string, Obj.Unknown | undefined>>>()(\n `${meta.profile.key}.capability.companionChatCache`,\n);\n\nexport const HomeSuggestionsCacheSchema = Schema.Record(\n Schema.String,\n Schema.mutableKey(\n Schema.Struct({\n /** Epoch ms timestamp of the successful generation that produced these prompts. */\n generatedAt: Schema.Number,\n /** Non-empty, trimmed prompts from a successful generation. */\n prompts: Schema.Array(Schema.String),\n }),\n ),\n);\nexport type HomeSuggestionsCache = Schema.Schema.Type<typeof HomeSuggestionsCacheSchema>;\n\n/** Per-space cache of LLM-generated home starter prompts, persisted across page reloads. */\nexport const HomeSuggestionsCache = Capability.makeSingleton<Atom.Writable<HomeSuggestionsCache>>()(\n `${meta.profile.key}.capability.homeSuggestionsCache`,\n);\n\n/**\n * Optional engine for producing a conversation turn. When contributed, the agent process runs turns\n * through it instead of DXOS's own `AiSession` — e.g. a Claude Agent SDK host — while keeping its\n * queue, alarms, redelivery, delegation and hydration.\n *\n * A registry rather than a singleton, for the same reason as `AgentDelegationStrategy`: a harness\n * has to be able to contribute one before the app's own module activates without colliding.\n */\nexport const AgentTurnProducer = Capability.make<MakeTurnProducer>()(\n 'org.dxos.plugin.assistant.capability.agentTurnProducer',\n);\n\n/** Context a chat receives when it runs against a subject object. */\nexport type SubjectBindings = AiContext.BindingProps & {\n /** Applied to `chat.instructions` only when the chat has none; reaches the model via the system prompt. */\n instructions?: Ref.Ref<Instructions.Instructions>;\n};\n\n/**\n * Bindings contributed for a chat opened against a subject object — the object a companion chat is\n * attached to, or the object a chat was created for.\n *\n * Every contribution whose `appliesTo` accepts the subject runs and the results are merged, so a\n * type-specific provider adds to the default rather than replacing it. Invoked by\n * `AssistantOperation.BindChatContext`, which provides `Database.Service` for the subject's space and\n * declares `Registry.Service` for skills resolved out of the hypergraph registry.\n */\nexport type SubjectContext = {\n /** Whether this provider applies to the subject. Absent ⇒ applies to every subject. */\n appliesTo?: (subject: Obj.Unknown) => boolean;\n getBindings: (params: {\n subject: Obj.Unknown;\n chat: Chat.Chat;\n }) => Effect.Effect<SubjectBindings, Error, Database.Service | Registry.Service>;\n};\n\nexport const SubjectContext = Capability.make<SubjectContext>()(`${meta.profile.key}.capability.subjectContext`);\n"],"mappings":";;;;;;;;;;;;;;;;;AAuBA,IAAa,WAAW,WAAW,cAAiD,CAAC,CACnF,GAAG,KAAK,QAAQ,IAAI,qBACtB;AAEA,IAAa,gBAAgB,WAAW,cAA8B,CAAC,CAAC,GAAG,KAAK,QAAQ,IAAI,0BAA0B;AAEtH,IAAa,cAAc,OAAO,OAAO;;CAEvC,aAAa,OAAO,OAAO,OAAO,QAAQ,OAAO,YAAY,OAAO,MAAM,CAAC;;CAE3E,gBAAgB,OAAO,OAAO,OAAO,QAAQ,OAAO,YAAY,OAAO,MAAM,CAAC;AAChF,CAAC,CAAC,CAAC,UAAU,OAAO,IAAI,OAAO,UAAU,CAAC;AAI1C,IAAa,QAAQ,WAAW,cAA6C,CAAC,CAAC,GAAG,KAAK,QAAQ,IAAI,kBAAkB;;AAGrH,IAAa,qBAAqB,WAAW,cAAsE,CAAC,CAClH,GAAG,KAAK,QAAQ,IAAI,+BACtB;AAEA,IAAa,6BAA6B,OAAO,OAC/C,OAAO,QACP,OAAO,WACL,OAAO,OAAO;;CAEZ,aAAa,OAAO;;CAEpB,SAAS,OAAO,MAAM,OAAO,MAAM;AACrC,CAAC,CACH,CACF;;AAIA,IAAa,uBAAuB,WAAW,cAAmD,CAAC,CACjG,GAAG,KAAK,QAAQ,IAAI,iCACtB;;;;;;;;;AAUA,IAAa,oBAAoB,WAAW,KAAuB,CAAC,CAClE,wDACF;AA0BA,IAAa,iBAAiB,WAAW,KAAqB,CAAC,CAAC,GAAG,KAAK,QAAQ,IAAI,2BAA2B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import { meta } from "#meta";
|
|
3
|
+
import * as ActivationEvent from "@dxos/app-framework/ActivationEvent";
|
|
4
|
+
//#region src/types/AssistantEvents.ts
|
|
5
|
+
var AssistantEvents_exports = /* @__PURE__ */ __exportAll({ Start: () => Start });
|
|
6
|
+
/**
|
|
7
|
+
* The assistant feature's start event. Fired on demand (chat surfaces, toolkit
|
|
8
|
+
* materialization, headless skill resolution) and by the host's idle trickle; assistant
|
|
9
|
+
* modules and cross-plugin assistant contributions (skills) activate here. The id must equal
|
|
10
|
+
* `AppActivationEvents.AssistantStart` (app-toolkit names it by key convention to avoid a package
|
|
11
|
+
* cycle).
|
|
12
|
+
*/
|
|
13
|
+
var Start = ActivationEvent.pluginStart(meta.profile.key);
|
|
14
|
+
//#endregion
|
|
15
|
+
export { Start, AssistantEvents_exports as t };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=AssistantEvents.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantEvents.mjs","names":[],"sources":["../../src/types/AssistantEvents.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as ActivationEvent from '@dxos/app-framework/ActivationEvent';\n\nimport { meta } from '#meta';\n\n/**\n * The assistant feature's start event. Fired on demand (chat surfaces, toolkit\n * materialization, headless skill resolution) and by the host's idle trickle; assistant\n * modules and cross-plugin assistant contributions (skills) activate here. The id must equal\n * `AppActivationEvents.AssistantStart` (app-toolkit names it by key convention to avoid a package\n * cycle).\n */\nexport const Start = ActivationEvent.pluginStart(meta.profile.key);\n"],"mappings":";;;;;;;;;;;;AAeA,IAAa,QAAQ,gBAAgB,YAAY,KAAK,QAAQ,GAAG"}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import * as Capability from "@dxos/app-framework/Capability";
|
|
3
|
+
import { Chat } from "@dxos/assistant-toolkit";
|
|
4
|
+
import { DXN } from "@dxos/keys";
|
|
5
|
+
import { Database, Obj, Ref, Registry, Type } from "@dxos/echo";
|
|
6
|
+
import { AiService } from "@dxos/ai";
|
|
7
|
+
import * as Operation from "@dxos/compute/Operation";
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import * as Instructions from "@dxos/compute/Instructions";
|
|
10
|
+
//#region src/types/AssistantOperation.ts
|
|
11
|
+
var AssistantOperation_exports = /* @__PURE__ */ __exportAll({
|
|
12
|
+
BindChatContext: () => BindChatContext,
|
|
13
|
+
CreateChat: () => CreateChat,
|
|
14
|
+
EnsureCompanionChat: () => EnsureCompanionChat,
|
|
15
|
+
ForkChat: () => ForkChat,
|
|
16
|
+
GenerateHomeSuggestions: () => GenerateHomeSuggestions,
|
|
17
|
+
SetCurrentChat: () => SetCurrentChat,
|
|
18
|
+
SetTracePanelDebug: () => SetTracePanelDebug,
|
|
19
|
+
SkillForm: () => SkillForm,
|
|
20
|
+
UpdateChatName: () => UpdateChatName
|
|
21
|
+
});
|
|
22
|
+
var CreateChat = Operation.make({
|
|
23
|
+
meta: {
|
|
24
|
+
key: DXN.make("org.dxos.operation.assistant.createChat"),
|
|
25
|
+
name: "Create Chat",
|
|
26
|
+
icon: "ph--chat-text--regular"
|
|
27
|
+
},
|
|
28
|
+
services: [Capability.Service, Database.Service],
|
|
29
|
+
input: Schema.Struct({
|
|
30
|
+
name: Schema.optional(Schema.String),
|
|
31
|
+
/**
|
|
32
|
+
* Instructions steering the conversation, rendered into the system prompt at request time.
|
|
33
|
+
* Held by reference so the chat follows later edits to them.
|
|
34
|
+
*/
|
|
35
|
+
instructions: Schema.optional(Ref.Ref(Instructions.Instructions))
|
|
36
|
+
}),
|
|
37
|
+
output: Schema.Struct({ object: Type.getSchema(Chat.Chat) })
|
|
38
|
+
});
|
|
39
|
+
var UpdateChatName = Operation.make({
|
|
40
|
+
meta: {
|
|
41
|
+
key: DXN.make("org.dxos.operation.assistant.updateChatName"),
|
|
42
|
+
name: "Update Chat Name",
|
|
43
|
+
icon: "ph--pencil--regular"
|
|
44
|
+
},
|
|
45
|
+
services: [Database.Service, AiService.AiService],
|
|
46
|
+
input: Schema.Struct({
|
|
47
|
+
chat: Type.getSchema(Chat.Chat),
|
|
48
|
+
/** Initial user message text; used when the feed has no history yet (e.g. auto-rename on first send). */
|
|
49
|
+
prompt: Schema.optional(Schema.String)
|
|
50
|
+
}),
|
|
51
|
+
output: Schema.Void
|
|
52
|
+
});
|
|
53
|
+
var SetCurrentChat = Operation.make({
|
|
54
|
+
meta: {
|
|
55
|
+
key: DXN.make("org.dxos.operation.assistant.setCurrentChat"),
|
|
56
|
+
name: "Set Current Chat",
|
|
57
|
+
icon: "ph--chat-text--regular"
|
|
58
|
+
},
|
|
59
|
+
services: [Capability.Service],
|
|
60
|
+
input: Schema.Struct({
|
|
61
|
+
companionTo: Obj.Unknown,
|
|
62
|
+
chat: Type.getSchema(Chat.Chat).pipe(Schema.optional)
|
|
63
|
+
}),
|
|
64
|
+
output: Schema.Void
|
|
65
|
+
});
|
|
66
|
+
var ForkChat = Operation.make({
|
|
67
|
+
meta: {
|
|
68
|
+
key: DXN.make("org.dxos.operation.assistant.forkChat"),
|
|
69
|
+
name: "Fork Chat",
|
|
70
|
+
icon: "ph--git-branch--regular",
|
|
71
|
+
skipRegistry: true
|
|
72
|
+
},
|
|
73
|
+
services: [Capability.Service, Database.Service],
|
|
74
|
+
input: Schema.Struct({
|
|
75
|
+
chat: Type.getSchema(Chat.Chat),
|
|
76
|
+
/** When provided, the forked chat is set as the companion for this object rather than opened standalone. */
|
|
77
|
+
companionTo: Schema.optional(Obj.Unknown)
|
|
78
|
+
}),
|
|
79
|
+
output: Schema.Struct({ object: Type.getSchema(Chat.Chat) })
|
|
80
|
+
});
|
|
81
|
+
/**
|
|
82
|
+
* Applies every applicable `AssistantCapabilities.SubjectContext` contribution to a chat, binding the
|
|
83
|
+
* subject and whatever else its providers derive from it (annotated skills, a project's instruction
|
|
84
|
+
* objects, ...). Idempotent: `AiContext.Binder.bind` drops refs already in the conversation, so
|
|
85
|
+
* re-running on an existing chat backfills bindings added since it was created.
|
|
86
|
+
*/
|
|
87
|
+
var BindChatContext = Operation.make({
|
|
88
|
+
meta: {
|
|
89
|
+
key: DXN.make("org.dxos.operation.assistant.bindChatContext"),
|
|
90
|
+
name: "Bind Chat Context",
|
|
91
|
+
icon: "ph--link--regular"
|
|
92
|
+
},
|
|
93
|
+
services: [Capability.Service, Registry.Service],
|
|
94
|
+
input: Schema.Struct({
|
|
95
|
+
chat: Type.getSchema(Chat.Chat),
|
|
96
|
+
/** The object the chat runs against — a companion's primary object, or a chat's originating object. */
|
|
97
|
+
subject: Obj.Unknown
|
|
98
|
+
}),
|
|
99
|
+
output: Schema.Void
|
|
100
|
+
});
|
|
101
|
+
var EnsureCompanionChat = Operation.make({
|
|
102
|
+
meta: {
|
|
103
|
+
key: DXN.make("org.dxos.operation.assistant.ensureCompanionChat"),
|
|
104
|
+
name: "Ensure Companion Chat",
|
|
105
|
+
icon: "ph--chat-text--regular"
|
|
106
|
+
},
|
|
107
|
+
services: [Capability.Service, Database.Service],
|
|
108
|
+
input: Schema.Struct({ companionTo: Obj.Unknown }),
|
|
109
|
+
output: Schema.Struct({
|
|
110
|
+
chat: Type.getSchema(Chat.Chat),
|
|
111
|
+
/** Whether the returned chat was already persisted in the space. */
|
|
112
|
+
persisted: Schema.Boolean
|
|
113
|
+
})
|
|
114
|
+
});
|
|
115
|
+
var SkillForm = Schema.Struct({
|
|
116
|
+
key: Schema.String,
|
|
117
|
+
name: Schema.String,
|
|
118
|
+
description: Schema.optional(Schema.String)
|
|
119
|
+
});
|
|
120
|
+
var GenerateHomeSuggestions = Operation.make({
|
|
121
|
+
meta: {
|
|
122
|
+
key: DXN.make("org.dxos.operation.assistant.generateHomeSuggestions"),
|
|
123
|
+
name: "Generate Home Suggestions",
|
|
124
|
+
icon: "ph--sparkle--regular",
|
|
125
|
+
skipRegistry: true
|
|
126
|
+
},
|
|
127
|
+
services: [
|
|
128
|
+
Capability.Service,
|
|
129
|
+
AiService.AiService,
|
|
130
|
+
Database.Service
|
|
131
|
+
],
|
|
132
|
+
input: Schema.Struct({}),
|
|
133
|
+
output: Schema.Struct({ prompts: Schema.Array(Schema.String) })
|
|
134
|
+
});
|
|
135
|
+
var SetTracePanelDebug = Operation.make({
|
|
136
|
+
meta: {
|
|
137
|
+
key: DXN.make("org.dxos.operation.assistant.setTracePanelDebug"),
|
|
138
|
+
name: "Set trace panel debug",
|
|
139
|
+
description: "Show the trace panel as a raw span tree JSON rather than a commit graph.",
|
|
140
|
+
icon: "ph--bug--regular"
|
|
141
|
+
},
|
|
142
|
+
services: [Capability.Service],
|
|
143
|
+
input: Schema.Struct({ state: Schema.Boolean }),
|
|
144
|
+
output: Schema.Boolean
|
|
145
|
+
});
|
|
146
|
+
//#endregion
|
|
147
|
+
export { BindChatContext, CreateChat, EnsureCompanionChat, ForkChat, GenerateHomeSuggestions, SetCurrentChat, SetTracePanelDebug, SkillForm, UpdateChatName, AssistantOperation_exports as t };
|
|
148
|
+
|
|
149
|
+
//# sourceMappingURL=AssistantOperation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantOperation.mjs","names":[],"sources":["../../src/types/AssistantOperation.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService } from '@dxos/ai';\nimport * as Capability from '@dxos/app-framework/Capability';\nimport { Chat } from '@dxos/assistant-toolkit';\nimport * as Instructions from '@dxos/compute/Instructions';\nimport * as Operation from '@dxos/compute/Operation';\nimport { Database, Obj, Ref, Registry, Type } from '@dxos/echo';\nimport { DXN } from '@dxos/keys';\n\nexport const CreateChat = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.createChat'),\n name: 'Create Chat',\n icon: 'ph--chat-text--regular',\n },\n // The chat is returned unfiled, for the caller to add with `SpaceOperation.AddObject` when it wants\n // a durable one. Its feed is added regardless — see the handler.\n services: [Capability.Service, Database.Service],\n input: Schema.Struct({\n name: Schema.optional(Schema.String),\n /**\n * Instructions steering the conversation, rendered into the system prompt at request time.\n * Held by reference so the chat follows later edits to them.\n */\n instructions: Schema.optional(Ref.Ref(Instructions.Instructions)),\n }),\n output: Schema.Struct({\n object: Type.getSchema(Chat.Chat),\n }),\n});\n\nexport const UpdateChatName = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.updateChatName'),\n name: 'Update Chat Name',\n icon: 'ph--pencil--regular',\n },\n services: [Database.Service, AiService.AiService],\n input: Schema.Struct({\n chat: Type.getSchema(Chat.Chat),\n /** Initial user message text; used when the feed has no history yet (e.g. auto-rename on first send). */\n prompt: Schema.optional(Schema.String),\n }),\n output: Schema.Void,\n});\n\nexport const SetCurrentChat = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.setCurrentChat'),\n name: 'Set Current Chat',\n icon: 'ph--chat-text--regular',\n },\n services: [Capability.Service],\n input: Schema.Struct({\n companionTo: Obj.Unknown,\n chat: Type.getSchema(Chat.Chat).pipe(Schema.optional),\n }),\n output: Schema.Void,\n});\n\nexport const ForkChat = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.forkChat'),\n name: 'Fork Chat',\n icon: 'ph--git-branch--regular',\n skipRegistry: true,\n },\n services: [Capability.Service, Database.Service],\n input: Schema.Struct({\n chat: Type.getSchema(Chat.Chat),\n /** When provided, the forked chat is set as the companion for this object rather than opened standalone. */\n companionTo: Schema.optional(Obj.Unknown),\n }),\n output: Schema.Struct({\n object: Type.getSchema(Chat.Chat),\n }),\n});\n\n/**\n * Applies every applicable `AssistantCapabilities.SubjectContext` contribution to a chat, binding the\n * subject and whatever else its providers derive from it (annotated skills, a project's instruction\n * objects, ...). Idempotent: `AiContext.Binder.bind` drops refs already in the conversation, so\n * re-running on an existing chat backfills bindings added since it was created.\n */\nexport const BindChatContext = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.bindChatContext'),\n name: 'Bind Chat Context',\n icon: 'ph--link--regular',\n },\n services: [Capability.Service, Registry.Service],\n input: Schema.Struct({\n chat: Type.getSchema(Chat.Chat),\n /** The object the chat runs against — a companion's primary object, or a chat's originating object. */\n subject: Obj.Unknown,\n }),\n output: Schema.Void,\n});\n\nexport const EnsureCompanionChat = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.ensureCompanionChat'),\n name: 'Ensure Companion Chat',\n icon: 'ph--chat-text--regular',\n },\n services: [Capability.Service, Database.Service],\n input: Schema.Struct({\n companionTo: Obj.Unknown,\n }),\n output: Schema.Struct({\n chat: Type.getSchema(Chat.Chat),\n /** Whether the returned chat was already persisted in the space. */\n persisted: Schema.Boolean,\n }),\n});\n\nexport const SkillForm = Schema.Struct({\n key: Schema.String,\n name: Schema.String,\n description: Schema.optional(Schema.String),\n});\n\nexport const GenerateHomeSuggestions = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.generateHomeSuggestions'),\n name: 'Generate Home Suggestions',\n icon: 'ph--sparkle--regular',\n // Internal UI operation — not exposed as an agent tool.\n skipRegistry: true,\n },\n services: [Capability.Service, AiService.AiService, Database.Service],\n input: Schema.Struct({}),\n output: Schema.Struct({ prompts: Schema.Array(Schema.String) }),\n});\n\nexport const SetTracePanelDebug = Operation.make({\n meta: {\n key: DXN.make('org.dxos.operation.assistant.setTracePanelDebug'),\n name: 'Set trace panel debug',\n description: 'Show the trace panel as a raw span tree JSON rather than a commit graph.',\n icon: 'ph--bug--regular',\n },\n services: [Capability.Service],\n // Required: a caller that omitted it used to get a flip, which made the result depend on state the\n // caller had not read — two calls racing would land wherever the interleaving left them.\n input: Schema.Struct({\n state: Schema.Boolean,\n }),\n output: Schema.Boolean,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAgBA,IAAa,aAAa,UAAU,KAAK;CACvC,MAAM;EACJ,KAAK,IAAI,KAAK,yCAAyC;EACvD,MAAM;EACN,MAAM;CACR;CAGA,UAAU,CAAC,WAAW,SAAS,SAAS,OAAO;CAC/C,OAAO,OAAO,OAAO;EACnB,MAAM,OAAO,SAAS,OAAO,MAAM;;;;;EAKnC,cAAc,OAAO,SAAS,IAAI,IAAI,aAAa,YAAY,CAAC;CAClE,CAAC;CACD,QAAQ,OAAO,OAAO,EACpB,QAAQ,KAAK,UAAU,KAAK,IAAI,EAClC,CAAC;AACH,CAAC;AAED,IAAa,iBAAiB,UAAU,KAAK;CAC3C,MAAM;EACJ,KAAK,IAAI,KAAK,6CAA6C;EAC3D,MAAM;EACN,MAAM;CACR;CACA,UAAU,CAAC,SAAS,SAAS,UAAU,SAAS;CAChD,OAAO,OAAO,OAAO;EACnB,MAAM,KAAK,UAAU,KAAK,IAAI;;EAE9B,QAAQ,OAAO,SAAS,OAAO,MAAM;CACvC,CAAC;CACD,QAAQ,OAAO;AACjB,CAAC;AAED,IAAa,iBAAiB,UAAU,KAAK;CAC3C,MAAM;EACJ,KAAK,IAAI,KAAK,6CAA6C;EAC3D,MAAM;EACN,MAAM;CACR;CACA,UAAU,CAAC,WAAW,OAAO;CAC7B,OAAO,OAAO,OAAO;EACnB,aAAa,IAAI;EACjB,MAAM,KAAK,UAAU,KAAK,IAAI,CAAC,CAAC,KAAK,OAAO,QAAQ;CACtD,CAAC;CACD,QAAQ,OAAO;AACjB,CAAC;AAED,IAAa,WAAW,UAAU,KAAK;CACrC,MAAM;EACJ,KAAK,IAAI,KAAK,uCAAuC;EACrD,MAAM;EACN,MAAM;EACN,cAAc;CAChB;CACA,UAAU,CAAC,WAAW,SAAS,SAAS,OAAO;CAC/C,OAAO,OAAO,OAAO;EACnB,MAAM,KAAK,UAAU,KAAK,IAAI;;EAE9B,aAAa,OAAO,SAAS,IAAI,OAAO;CAC1C,CAAC;CACD,QAAQ,OAAO,OAAO,EACpB,QAAQ,KAAK,UAAU,KAAK,IAAI,EAClC,CAAC;AACH,CAAC;;;;;;;AAQD,IAAa,kBAAkB,UAAU,KAAK;CAC5C,MAAM;EACJ,KAAK,IAAI,KAAK,8CAA8C;EAC5D,MAAM;EACN,MAAM;CACR;CACA,UAAU,CAAC,WAAW,SAAS,SAAS,OAAO;CAC/C,OAAO,OAAO,OAAO;EACnB,MAAM,KAAK,UAAU,KAAK,IAAI;;EAE9B,SAAS,IAAI;CACf,CAAC;CACD,QAAQ,OAAO;AACjB,CAAC;AAED,IAAa,sBAAsB,UAAU,KAAK;CAChD,MAAM;EACJ,KAAK,IAAI,KAAK,kDAAkD;EAChE,MAAM;EACN,MAAM;CACR;CACA,UAAU,CAAC,WAAW,SAAS,SAAS,OAAO;CAC/C,OAAO,OAAO,OAAO,EACnB,aAAa,IAAI,QACnB,CAAC;CACD,QAAQ,OAAO,OAAO;EACpB,MAAM,KAAK,UAAU,KAAK,IAAI;;EAE9B,WAAW,OAAO;CACpB,CAAC;AACH,CAAC;AAED,IAAa,YAAY,OAAO,OAAO;CACrC,KAAK,OAAO;CACZ,MAAM,OAAO;CACb,aAAa,OAAO,SAAS,OAAO,MAAM;AAC5C,CAAC;AAED,IAAa,0BAA0B,UAAU,KAAK;CACpD,MAAM;EACJ,KAAK,IAAI,KAAK,sDAAsD;EACpE,MAAM;EACN,MAAM;EAEN,cAAc;CAChB;CACA,UAAU;EAAC,WAAW;EAAS,UAAU;EAAW,SAAS;CAAO;CACpE,OAAO,OAAO,OAAO,CAAC,CAAC;CACvB,QAAQ,OAAO,OAAO,EAAE,SAAS,OAAO,MAAM,OAAO,MAAM,EAAE,CAAC;AAChE,CAAC;AAED,IAAa,qBAAqB,UAAU,KAAK;CAC/C,MAAM;EACJ,KAAK,IAAI,KAAK,iDAAiD;EAC/D,MAAM;EACN,aAAa;EACb,MAAM;CACR;CACA,UAAU,CAAC,WAAW,OAAO;CAG7B,OAAO,OAAO,OAAO,EACnB,OAAO,OAAO,QAChB,CAAC;CACD,QAAQ,OAAO;AACjB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
//#region src/types/AssistantOptions.ts
|
|
3
|
+
var AssistantOptions_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
//#endregion
|
|
5
|
+
export { AssistantOptions_exports as t };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=AssistantOptions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantOptions.mjs","names":[],"sources":["../../src/types/AssistantOptions.ts"],"sourcesContent":["//\n// Copyright 2024 DXOS.org\n//\n\nimport type { AiService } from '@dxos/ai';\n\nexport interface AssistantPluginOptions {\n aiServiceMiddleware?: (aiService: AiService.Service) => AiService.Service;\n\n /**\n * Whether creation is offered for the unfinished types (`Agent`, `Sequence`) — default true, off in\n * the curated set, which must not advertise a type it cannot yet do anything useful with.\n */\n experimentalTypes?: boolean;\n}\n"],"mappings":""}
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import { meta as meta$1 } from "#meta";
|
|
3
|
+
import * as Plugin from "@dxos/app-framework/Plugin";
|
|
4
|
+
//#region src/AssistantPlugin.ts
|
|
5
|
+
var AssistantPlugin_exports = /* @__PURE__ */ __exportAll({
|
|
6
|
+
make: () => make,
|
|
7
|
+
meta: () => meta
|
|
8
|
+
});
|
|
9
|
+
/** Plugin metadata, available without loading the plugin body. */
|
|
10
|
+
var meta = meta$1;
|
|
11
|
+
/** Constructs the plugin; the body loads on first enable. */
|
|
12
|
+
var make = Plugin.lazy(meta, () => import("#plugin"));
|
|
13
|
+
//#endregion
|
|
14
|
+
export { make, meta, AssistantPlugin_exports as t };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=AssistantPlugin.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantPlugin.mjs","names":[],"sources":["../../src/AssistantPlugin.ts"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Plugin from '@dxos/app-framework/Plugin';\n\nimport { meta as pluginMeta } from '#meta';\n\n/** Plugin metadata, available without loading the plugin body. */\nexport const meta = pluginMeta;\n\n/** Constructs the plugin; the body loads on first enable. */\nexport const make = Plugin.lazy(meta, () => import('#plugin'));\n"],"mappings":";;;;;;;;;AAWA,IAAa,OAAO;;AAGpB,IAAa,OAAO,OAAO,KAAK,YAAY,OAAO,UAAU"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
//#region src/types/AssistantPreset.ts
|
|
3
|
+
var AssistantPreset_exports = /* @__PURE__ */ __exportAll({});
|
|
4
|
+
//#endregion
|
|
5
|
+
export { AssistantPreset_exports as t };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=AssistantPreset.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantPreset.mjs","names":[],"sources":["../../src/types/AssistantPreset.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n/** Preset option shown in the chat prompt's model selector. */\nexport type AiPreset = {\n id: string;\n label: string;\n};\n\n/** Props shared between the ChatPresets component and the usePresets hook. */\nexport type ChatPresetProps = {\n presets?: AiPreset[];\n preset?: string;\n onPresetChange?: (id: string) => void;\n};\n"],"mappings":""}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import { DXN, Ref, Type } from "@dxos/echo";
|
|
3
|
+
import * as Operation from "@dxos/compute/Operation";
|
|
4
|
+
import * as Schema from "effect/Schema";
|
|
5
|
+
import { ComputeGraph } from "@dxos/conductor";
|
|
6
|
+
//#region src/types/AssistantService.ts
|
|
7
|
+
var AssistantService_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
ApiAuthorization: () => ApiAuthorization,
|
|
9
|
+
ServiceType: () => ServiceType,
|
|
10
|
+
categoryIcons: () => categoryIcons
|
|
11
|
+
});
|
|
12
|
+
var ApiAuthorizationKey = Schema.Struct({
|
|
13
|
+
type: Schema.Literal("api-key"),
|
|
14
|
+
key: Schema.String,
|
|
15
|
+
placement: Schema.Union([Schema.Struct({ type: Schema.Literal("authorization-header") }), Schema.Struct({
|
|
16
|
+
type: Schema.Literal("query"),
|
|
17
|
+
name: Schema.String
|
|
18
|
+
})])
|
|
19
|
+
});
|
|
20
|
+
var ApiAuthorizationOauth = Schema.Struct({
|
|
21
|
+
type: Schema.Literal("oauth"),
|
|
22
|
+
clientId: Schema.String,
|
|
23
|
+
clientSecret: Schema.String,
|
|
24
|
+
tokenUrl: Schema.String,
|
|
25
|
+
grantType: Schema.String
|
|
26
|
+
});
|
|
27
|
+
var ApiAuthorization = Schema.Union([ApiAuthorizationKey, ApiAuthorizationOauth]);
|
|
28
|
+
var ServiceInterfaceFunction = Schema.Struct({
|
|
29
|
+
kind: Schema.Literal("function"),
|
|
30
|
+
fn: Ref.Ref(Operation.PersistentOperation)
|
|
31
|
+
});
|
|
32
|
+
var ServiceInterfaceWorkflow = Schema.Struct({
|
|
33
|
+
kind: Schema.Literal("workflow"),
|
|
34
|
+
workflow: Ref.Ref(ComputeGraph)
|
|
35
|
+
});
|
|
36
|
+
var ServiceInterfaceApi = Schema.Struct({
|
|
37
|
+
kind: Schema.Literal("api"),
|
|
38
|
+
/**
|
|
39
|
+
* URL to fetch the openapi schema.
|
|
40
|
+
*/
|
|
41
|
+
schemaUrl: Schema.optional(Schema.String),
|
|
42
|
+
/**
|
|
43
|
+
* Inlined openapi schema.
|
|
44
|
+
*/
|
|
45
|
+
schema: Schema.optional(Schema.Any),
|
|
46
|
+
/**
|
|
47
|
+
* Authorization configuration if required.
|
|
48
|
+
*/
|
|
49
|
+
authorization: Schema.optional(ApiAuthorization)
|
|
50
|
+
});
|
|
51
|
+
var ServiceInterface = Schema.Union([
|
|
52
|
+
ServiceInterfaceFunction,
|
|
53
|
+
ServiceInterfaceWorkflow,
|
|
54
|
+
ServiceInterfaceApi
|
|
55
|
+
]);
|
|
56
|
+
var ServiceType = class extends Type.makeObject(DXN.make("org.dxos.type.service", "0.1.0"))(Schema.Struct({
|
|
57
|
+
serviceId: Schema.String,
|
|
58
|
+
name: Schema.optional(Schema.String),
|
|
59
|
+
description: Schema.optional(Schema.String),
|
|
60
|
+
category: Schema.optional(Schema.String),
|
|
61
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
62
|
+
/**
|
|
63
|
+
* Entries exposed: functions, workflows, and APIs.
|
|
64
|
+
*/
|
|
65
|
+
interfaces: Schema.optional(Schema.Array(ServiceInterface))
|
|
66
|
+
})) {};
|
|
67
|
+
var categoryIcons = {
|
|
68
|
+
finance: "ph--bank--regular",
|
|
69
|
+
health: "ph--heart--regular",
|
|
70
|
+
geolocation: "ph--globe-simple--regular",
|
|
71
|
+
education: "ph--books--regular",
|
|
72
|
+
entertainment: "ph--music-notes--regular",
|
|
73
|
+
shopping: "ph--shopping-cart--regular",
|
|
74
|
+
travel: "ph--airplane-takeoff--regular",
|
|
75
|
+
utilities: "ph--lightning--regular",
|
|
76
|
+
weather: "ph--cloud-rain--regular"
|
|
77
|
+
};
|
|
78
|
+
//#endregion
|
|
79
|
+
export { ApiAuthorization, ServiceType, categoryIcons, AssistantService_exports as t };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=AssistantService.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantService.mjs","names":[],"sources":["../../src/types/AssistantService.ts"],"sourcesContent":["//\n// Copyright 2024 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport * as Operation from '@dxos/compute/Operation';\nimport { ComputeGraph } from '@dxos/conductor';\nimport { DXN, Ref, Type } from '@dxos/echo';\n\n// TODO(burdon): Factor out and reconcile with https://github.com/dxos/dxos/blob/main/packages/plugins/plugin-token-manager/src/defs/presets.ts#L7\n\nconst ApiAuthorizationKey = Schema.Struct({\n type: Schema.Literal('api-key'),\n key: Schema.String,\n placement: Schema.Union([\n Schema.Struct({\n type: Schema.Literal('authorization-header'),\n }),\n Schema.Struct({\n type: Schema.Literal('query'),\n name: Schema.String,\n }),\n ]),\n});\n\nconst ApiAuthorizationOauth = Schema.Struct({\n type: Schema.Literal('oauth'),\n clientId: Schema.String,\n clientSecret: Schema.String,\n tokenUrl: Schema.String,\n grantType: Schema.String,\n});\n\nexport const ApiAuthorization = Schema.Union([ApiAuthorizationKey, ApiAuthorizationOauth]);\nexport type ApiAuthorization = Schema.Schema.Type<typeof ApiAuthorization>;\n\nconst ServiceInterfaceFunction = Schema.Struct({\n kind: Schema.Literal('function'),\n fn: Ref.Ref(Operation.PersistentOperation),\n});\n\nconst ServiceInterfaceWorkflow = Schema.Struct({\n kind: Schema.Literal('workflow'),\n workflow: Ref.Ref(ComputeGraph),\n});\n\nconst ServiceInterfaceApi = Schema.Struct({\n kind: Schema.Literal('api'),\n\n /**\n * URL to fetch the openapi schema.\n */\n schemaUrl: Schema.optional(Schema.String),\n\n /**\n * Inlined openapi schema.\n */\n schema: Schema.optional(Schema.Any),\n\n /**\n * Authorization configuration if required.\n */\n authorization: Schema.optional(ApiAuthorization),\n});\n\nconst ServiceInterface = Schema.Union([\n // Service types.\n ServiceInterfaceFunction,\n ServiceInterfaceWorkflow,\n ServiceInterfaceApi,\n]);\n\nexport type ServiceInterface = Schema.Schema.Type<typeof ServiceInterface>;\n\nexport class ServiceType extends Type.makeObject<ServiceType>(DXN.make('org.dxos.type.service', '0.1.0'))(\n Schema.Struct({\n serviceId: Schema.String,\n name: Schema.optional(Schema.String),\n description: Schema.optional(Schema.String),\n category: Schema.optional(Schema.String),\n enabled: Schema.optional(Schema.Boolean),\n\n /**\n * Entries exposed: functions, workflows, and APIs.\n */\n interfaces: Schema.optional(Schema.Array(ServiceInterface)),\n }),\n) {}\n\n//\n// Service Registry\n//\n\nexport interface BaseServiceRegistry {\n queryServices(query?: ServiceQuery): Promise<ServiceType[]>;\n}\n\nexport type ServiceQuery = {\n name?: string;\n category?: string;\n};\n\nexport const categoryIcons: Record<string, string> = {\n finance: 'ph--bank--regular',\n health: 'ph--heart--regular',\n geolocation: 'ph--globe-simple--regular',\n education: 'ph--books--regular',\n entertainment: 'ph--music-notes--regular',\n shopping: 'ph--shopping-cart--regular',\n travel: 'ph--airplane-takeoff--regular',\n utilities: 'ph--lightning--regular',\n weather: 'ph--cloud-rain--regular',\n} as const;\n"],"mappings":";;;;;;;;;;;AAYA,IAAM,sBAAsB,OAAO,OAAO;CACxC,MAAM,OAAO,QAAQ,SAAS;CAC9B,KAAK,OAAO;CACZ,WAAW,OAAO,MAAM,CACtB,OAAO,OAAO,EACZ,MAAM,OAAO,QAAQ,sBAAsB,EAC7C,CAAC,GACD,OAAO,OAAO;EACZ,MAAM,OAAO,QAAQ,OAAO;EAC5B,MAAM,OAAO;CACf,CAAC,CACH,CAAC;AACH,CAAC;AAED,IAAM,wBAAwB,OAAO,OAAO;CAC1C,MAAM,OAAO,QAAQ,OAAO;CAC5B,UAAU,OAAO;CACjB,cAAc,OAAO;CACrB,UAAU,OAAO;CACjB,WAAW,OAAO;AACpB,CAAC;AAED,IAAa,mBAAmB,OAAO,MAAM,CAAC,qBAAqB,qBAAqB,CAAC;AAGzF,IAAM,2BAA2B,OAAO,OAAO;CAC7C,MAAM,OAAO,QAAQ,UAAU;CAC/B,IAAI,IAAI,IAAI,UAAU,mBAAmB;AAC3C,CAAC;AAED,IAAM,2BAA2B,OAAO,OAAO;CAC7C,MAAM,OAAO,QAAQ,UAAU;CAC/B,UAAU,IAAI,IAAI,YAAY;AAChC,CAAC;AAED,IAAM,sBAAsB,OAAO,OAAO;CACxC,MAAM,OAAO,QAAQ,KAAK;;;;CAK1B,WAAW,OAAO,SAAS,OAAO,MAAM;;;;CAKxC,QAAQ,OAAO,SAAS,OAAO,GAAG;;;;CAKlC,eAAe,OAAO,SAAS,gBAAgB;AACjD,CAAC;AAED,IAAM,mBAAmB,OAAO,MAAM;CAEpC;CACA;CACA;AACF,CAAC;AAID,IAAa,cAAb,cAAiC,KAAK,WAAwB,IAAI,KAAK,yBAAyB,OAAO,CAAC,CAAC,CACvG,OAAO,OAAO;CACZ,WAAW,OAAO;CAClB,MAAM,OAAO,SAAS,OAAO,MAAM;CACnC,aAAa,OAAO,SAAS,OAAO,MAAM;CAC1C,UAAU,OAAO,SAAS,OAAO,MAAM;CACvC,SAAS,OAAO,SAAS,OAAO,OAAO;;;;CAKvC,YAAY,OAAO,SAAS,OAAO,MAAM,gBAAgB,CAAC;AAC5D,CAAC,CACH,CAAC,CAAC,CAAC;AAeH,IAAa,gBAAwC;CACnD,SAAS;CACT,QAAQ;CACR,aAAa;CACb,WAAW;CACX,eAAe;CACf,UAAU;CACV,QAAQ;CACR,WAAW;CACX,SAAS;AACX"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import * as LayoutOperation from "@dxos/app-toolkit/LayoutOperation";
|
|
3
|
+
import * as NavigationOperation from "@dxos/app-toolkit/NavigationOperation";
|
|
4
|
+
import { templates } from "@dxos/assistant";
|
|
5
|
+
import * as Skill from "@dxos/compute/Skill";
|
|
6
|
+
//#region src/skills/assistant/AssistantSkill.ts
|
|
7
|
+
var AssistantSkill_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
key: () => key,
|
|
9
|
+
make: () => make
|
|
10
|
+
});
|
|
11
|
+
var key = "org.dxos.skill.assistant";
|
|
12
|
+
var make = () => Skill.make({
|
|
13
|
+
key,
|
|
14
|
+
name: "Assistant",
|
|
15
|
+
tools: Skill.toolDefinitions({ operations: [LayoutOperation.Open, NavigationOperation.ResolveNavigationTargets] }),
|
|
16
|
+
instructions: templates.system
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { key, make, AssistantSkill_exports as t };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=AssistantSkill.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssistantSkill.mjs","names":[],"sources":["../../src/skills/assistant/AssistantSkill.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as LayoutOperation from '@dxos/app-toolkit/LayoutOperation';\nimport * as NavigationOperation from '@dxos/app-toolkit/NavigationOperation';\nimport { templates } from '@dxos/assistant';\nimport * as Skill from '@dxos/compute/Skill';\n\nexport const key = 'org.dxos.skill.assistant';\n\nexport const make = (): Skill.Skill =>\n Skill.make({\n key,\n name: 'Assistant',\n tools: Skill.toolDefinitions({\n // TODO(wittjosiah): LayoutOperation.Open requires Capability.Service which is only available\n // via the compute-runtime layer (plugin-routine). Once Capability.Service is propagated\n // through the process operation runtime, this will work without the compute-runtime dependency.\n operations: [LayoutOperation.Open, NavigationOperation.ResolveNavigationTargets],\n }),\n instructions: templates.system,\n });\n"],"mappings":";;;;;;;;;;AASA,IAAa,MAAM;AAEnB,IAAa,aACX,MAAM,KAAK;CACT;CACA,MAAM;CACN,OAAO,MAAM,gBAAgB,EAI3B,YAAY,CAAC,gBAAgB,MAAM,oBAAoB,wBAAwB,EACjF,CAAC;CACD,cAAc,UAAU;AAC1B,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import * as Role from "@dxos/app-framework/Role";
|
|
3
|
+
//#region src/types/ChatSurface.ts
|
|
4
|
+
var ChatSurface_exports = /* @__PURE__ */ __exportAll({ ChatSurface: () => ChatSurface });
|
|
5
|
+
/**
|
|
6
|
+
* Role token for surfaces an agent requests inline in the conversation via the `<surface>` content
|
|
7
|
+
* block. `role` selects the concrete surface to render (e.g. `integration-prompt`); `data` carries
|
|
8
|
+
* its payload (e.g. `{ service: 'gmail.com' }`). Plugins contribute renderers by filtering on the
|
|
9
|
+
* inner `role`, which keeps the chat renderer decoupled from the specific surfaces it can host.
|
|
10
|
+
*/
|
|
11
|
+
var ChatSurface = Role.make("org.dxos.plugin.assistant.role.chatSurface");
|
|
12
|
+
//#endregion
|
|
13
|
+
export { ChatSurface, ChatSurface_exports as t };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=ChatSurface.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatSurface.mjs","names":[],"sources":["../../src/types/ChatSurface.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Role from '@dxos/app-framework/Role';\n\n/**\n * Role token for surfaces an agent requests inline in the conversation via the `<surface>` content\n * block. `role` selects the concrete surface to render (e.g. `integration-prompt`); `data` carries\n * its payload (e.g. `{ service: 'gmail.com' }`). Plugins contribute renderers by filtering on the\n * inner `role`, which keeps the chat renderer decoupled from the specific surfaces it can host.\n */\nexport const ChatSurface: Role.Role<{\n role: string;\n data?: Record<string, unknown>;\n}> = Role.make('org.dxos.plugin.assistant.role.chatSurface');\n"],"mappings":";;;;;;;;;;AAYA,IAAa,cAGR,KAAK,KAAK,4CAA4C"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import * as Atom from "effect/unstable/reactivity/Atom";
|
|
3
|
+
//#region src/types/Ollama.ts
|
|
4
|
+
var Ollama_exports = /* @__PURE__ */ __exportAll({ emptyState: () => emptyState });
|
|
5
|
+
/**
|
|
6
|
+
* Stable, empty model state. Subscribed to when no sidecar manager is present (web/mobile) so a
|
|
7
|
+
* reactive read keeps an unconditional hook order.
|
|
8
|
+
*/
|
|
9
|
+
var emptyState = Atom.make({
|
|
10
|
+
kind: "idle",
|
|
11
|
+
models: [],
|
|
12
|
+
loaded: [],
|
|
13
|
+
pulls: {},
|
|
14
|
+
errors: {}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { emptyState, Ollama_exports as t };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=Ollama.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Ollama.mjs","names":[],"sources":["../../src/types/Ollama.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\n// @import-as-namespace\n\nimport type * as Effect from 'effect/Effect';\nimport * as Atom from 'effect/unstable/reactivity/Atom';\n\nimport { type OllamaAdmin } from '@dxos/ai/resolvers';\n\n/**\n * Reactive state of the local Ollama model installation, surfaced to the settings UI.\n */\nexport type ModelsState = {\n kind: 'idle' | 'loading' | 'ready' | 'failed';\n models: OllamaAdmin.Model[];\n /** Models currently loaded into memory (from `/api/ps`). */\n loaded: OllamaAdmin.RunningModel[];\n /** In-flight pulls keyed by model name. */\n pulls: Record<string, OllamaAdmin.PullProgress>;\n /** Per-model action errors (load/unload/remove/pull), keyed by model name, shown inline. */\n errors: Record<string, string>;\n /** Connection-level error reaching the service (no specific model). */\n error?: string;\n};\n\n/**\n * Stable, empty model state. Subscribed to when no sidecar manager is present (web/mobile) so a\n * reactive read keeps an unconditional hook order.\n */\nexport const emptyState: Atom.Atom<ModelsState> = Atom.make<ModelsState>({\n kind: 'idle',\n models: [],\n loaded: [],\n pulls: {},\n errors: {},\n});\n\n/**\n * Capability for managing locally-installed Ollama models. Implemented by the native (desktop)\n * plugin against the bundled sidecar; absent in the browser/mobile, where the UI renders nothing.\n */\nexport type Manager = {\n readonly endpoint: string;\n state: Atom.Writable<ModelsState>;\n /** List installed models (and currently-loaded models). Ensures the sidecar is running. */\n refresh: Effect.Effect<void>;\n /** Refresh only the currently-loaded models; cheap, for polling while a chat runs. */\n refreshLoaded: Effect.Effect<void>;\n pull: (name: string) => Effect.Effect<void>;\n /** Abort an in-flight pull, leaving any already-downloaded layers in place. */\n cancel: (name: string) => Effect.Effect<void>;\n /** Load a model into memory (kept resident until unloaded). */\n load: (name: string) => Effect.Effect<void>;\n /** Unload a model from memory. */\n unload: (name: string) => Effect.Effect<void>;\n remove: (name: string) => Effect.Effect<void>;\n};\n"],"mappings":";;;;;;;;AA+BA,IAAa,aAAqC,KAAK,KAAkB;CACvE,MAAM;CACN,QAAQ,CAAC;CACT,QAAQ,CAAC;CACT,OAAO,CAAC;CACR,QAAQ,CAAC;AACX,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { t as __exportAll } from "./chunk-rolldown-runtime.mjs";
|
|
2
|
+
import { DXN } from "@dxos/keys";
|
|
3
|
+
import { Provider } from "@dxos/ai";
|
|
4
|
+
import { SchemaEx } from "@dxos/effect";
|
|
5
|
+
import * as Schema from "effect/Schema";
|
|
6
|
+
import * as Struct from "effect/Struct";
|
|
7
|
+
import { ChatView } from "@dxos/react-ui-assistant/types";
|
|
8
|
+
//#region src/types/Settings.ts
|
|
9
|
+
var Settings_exports = /* @__PURE__ */ __exportAll({
|
|
10
|
+
ChatViews: () => ChatViews,
|
|
11
|
+
ModelDefaults: () => ModelDefaults,
|
|
12
|
+
ModelProvider: () => ModelProvider,
|
|
13
|
+
ModelProviders: () => ModelProviders,
|
|
14
|
+
Settings: () => Settings
|
|
15
|
+
});
|
|
16
|
+
var ModelProvider = DXN.Schema;
|
|
17
|
+
var ModelProviders = Provider.all.map((provider) => provider.id);
|
|
18
|
+
var ChatViews = SchemaEx.getLiteralValues(ChatView);
|
|
19
|
+
var ModelDefaults = Schema.Struct({
|
|
20
|
+
edge: Schema.optional(Schema.String.annotate({
|
|
21
|
+
title: "Remote language model",
|
|
22
|
+
description: "Choose the remote language model used for AI requests."
|
|
23
|
+
})),
|
|
24
|
+
ollama: Schema.optional(Schema.String.annotate({
|
|
25
|
+
title: "Local language model",
|
|
26
|
+
description: "Choose the locally hosted model used for AI requests."
|
|
27
|
+
})),
|
|
28
|
+
lmstudio: Schema.optional(Schema.String.annotate({
|
|
29
|
+
title: "LM Studio language model",
|
|
30
|
+
description: "Choose the locally hosted LM Studio model for AI requests."
|
|
31
|
+
}))
|
|
32
|
+
}).mapFields(Struct.map(Schema.mutableKey));
|
|
33
|
+
var Settings = Schema.Struct({
|
|
34
|
+
customPrompts: Schema.optional(Schema.Boolean.annotate({
|
|
35
|
+
title: "Use custom prompts",
|
|
36
|
+
description: "Allow the assistant to use custom prompts defined in your spaces."
|
|
37
|
+
})),
|
|
38
|
+
chatView: Schema.optional(ChatView.annotate({
|
|
39
|
+
title: "Chat view",
|
|
40
|
+
description: "Controls which message blocks are shown in the chat: normal hides reasoning, thinking shows reasoning, debug shows raw blocks, summary shows only conversational text."
|
|
41
|
+
})),
|
|
42
|
+
modelProvider: Schema.optional(ModelProvider.annotate({
|
|
43
|
+
title: "LLM provider",
|
|
44
|
+
description: "Select which language model service to use for AI responses."
|
|
45
|
+
})),
|
|
46
|
+
modelDefaults: Schema.optional(ModelDefaults.annotate({ title: "Model defaults" })),
|
|
47
|
+
tracePanelDebug: Schema.optional(Schema.Boolean.annotate({
|
|
48
|
+
title: "Trace panel debug",
|
|
49
|
+
description: "Show the raw span tree as JSON in the trace panel instead of the commit graph."
|
|
50
|
+
})),
|
|
51
|
+
traceProcessEnvironments: Schema.optional(Schema.mutable(Schema.Array(Schema.String)).annotate({
|
|
52
|
+
title: "Trace panel process environments",
|
|
53
|
+
description: "Process environments (app, space, conversation) shown in the trace panel. Unset uses the default selection, which hides app-level chatter."
|
|
54
|
+
}))
|
|
55
|
+
}).mapFields(Struct.map(Schema.mutableKey));
|
|
56
|
+
//#endregion
|
|
57
|
+
export { ChatViews, ModelDefaults, ModelProvider, ModelProviders, Settings, Settings_exports as t };
|
|
58
|
+
|
|
59
|
+
//# sourceMappingURL=Settings.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Settings.mjs","names":[],"sources":["../../src/types/Settings.ts"],"sourcesContent":["//\n// Copyright 2024 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\nimport * as Struct from 'effect/Struct';\n\nimport { Provider } from '@dxos/ai';\nimport { SchemaEx } from '@dxos/effect';\nimport { DXN } from '@dxos/keys';\nimport { ChatView } from '@dxos/react-ui-assistant/types';\n\n// A provider id is an open DXN (third-party providers define their own), validated as a DXN rather\n// than restricted to a closed literal union. The known providers come from the @dxos/ai registry.\nexport const ModelProvider = DXN.Schema;\nexport type ModelProvider = DXN.DXN;\nexport const ModelProviders: readonly DXN.DXN[] = Provider.all.map((provider) => provider.id);\n\n// The view type is the thread's own concern (`@dxos/react-ui-assistant`); only the literal values\n// survive here, for the settings UI.\nexport const ChatViews = SchemaEx.getLiteralValues(ChatView);\n\nexport const ModelDefaults = Schema.Struct({\n edge: Schema.optional(\n Schema.String.annotate({\n title: 'Remote language model',\n description: 'Choose the remote language model used for AI requests.',\n }),\n ),\n // `built-in` (bundled sidecar) and `ollama` (external) share the `ollama` model source, so they\n // share this single default key.\n ollama: Schema.optional(\n Schema.String.annotate({\n title: 'Local language model',\n description: 'Choose the locally hosted model used for AI requests.',\n }),\n ),\n lmstudio: Schema.optional(\n Schema.String.annotate({\n title: 'LM Studio language model',\n description: 'Choose the locally hosted LM Studio model for AI requests.',\n }),\n ),\n}).mapFields(Struct.map(Schema.mutableKey));\nexport type ModelDefaults = Schema.Schema.Type<typeof ModelDefaults>;\n\nexport const Settings = Schema.Struct({\n customPrompts: Schema.optional(\n Schema.Boolean.annotate({\n title: 'Use custom prompts',\n description: 'Allow the assistant to use custom prompts defined in your spaces.',\n }),\n ),\n chatView: Schema.optional(\n ChatView.annotate({\n title: 'Chat view',\n description:\n 'Controls which message blocks are shown in the chat: normal hides reasoning, thinking shows reasoning, debug shows raw blocks, summary shows only conversational text.',\n }),\n ),\n modelProvider: Schema.optional(\n ModelProvider.annotate({\n title: 'LLM provider',\n description: 'Select which language model service to use for AI responses.',\n }),\n ),\n modelDefaults: Schema.optional(ModelDefaults.annotate({ title: 'Model defaults' })),\n tracePanelDebug: Schema.optional(\n Schema.Boolean.annotate({\n title: 'Trace panel debug',\n description: 'Show the raw span tree as JSON in the trace panel instead of the commit graph.',\n }),\n ),\n traceProcessEnvironments: Schema.optional(\n Schema.mutable(Schema.Array(Schema.String)).annotate({\n title: 'Trace panel process environments',\n description:\n 'Process environments (app, space, conversation) shown in the trace panel. Unset uses the default selection, which hides app-level chatter.',\n }),\n ),\n}).mapFields(Struct.map(Schema.mutableKey));\nexport interface Settings extends Schema.Schema.Type<typeof Settings> {}\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,gBAAgB,IAAI;AAEjC,IAAa,iBAAqC,SAAS,IAAI,KAAK,aAAa,SAAS,EAAE;AAI5F,IAAa,YAAY,SAAS,iBAAiB,QAAQ;AAE3D,IAAa,gBAAgB,OAAO,OAAO;CACzC,MAAM,OAAO,SACX,OAAO,OAAO,SAAS;EACrB,OAAO;EACP,aAAa;CACf,CAAC,CACH;CAGA,QAAQ,OAAO,SACb,OAAO,OAAO,SAAS;EACrB,OAAO;EACP,aAAa;CACf,CAAC,CACH;CACA,UAAU,OAAO,SACf,OAAO,OAAO,SAAS;EACrB,OAAO;EACP,aAAa;CACf,CAAC,CACH;AACF,CAAC,CAAC,CAAC,UAAU,OAAO,IAAI,OAAO,UAAU,CAAC;AAG1C,IAAa,WAAW,OAAO,OAAO;CACpC,eAAe,OAAO,SACpB,OAAO,QAAQ,SAAS;EACtB,OAAO;EACP,aAAa;CACf,CAAC,CACH;CACA,UAAU,OAAO,SACf,SAAS,SAAS;EAChB,OAAO;EACP,aACE;CACJ,CAAC,CACH;CACA,eAAe,OAAO,SACpB,cAAc,SAAS;EACrB,OAAO;EACP,aAAa;CACf,CAAC,CACH;CACA,eAAe,OAAO,SAAS,cAAc,SAAS,EAAE,OAAO,iBAAiB,CAAC,CAAC;CAClF,iBAAiB,OAAO,SACtB,OAAO,QAAQ,SAAS;EACtB,OAAO;EACP,aAAa;CACf,CAAC,CACH;CACA,0BAA0B,OAAO,SAC/B,OAAO,QAAQ,OAAO,MAAM,OAAO,MAAM,CAAC,CAAC,CAAC,SAAS;EACnD,OAAO;EACP,aACE;CACJ,CAAC,CACH;AACF,CAAC,CAAC,CAAC,UAAU,OAAO,IAAI,OAAO,UAAU,CAAC"}
|