@dxos/plugin-assistant 0.8.4-main.67995b8 → 0.8.4-main.6fa680abb7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/AssistantSettings-PP6JSHWB.mjs +93 -0
- package/dist/lib/browser/AssistantSettings-PP6JSHWB.mjs.map +7 -0
- package/dist/lib/browser/BlueprintArticle-H6R33TZZ.mjs +35 -0
- package/dist/lib/browser/BlueprintArticle-H6R33TZZ.mjs.map +7 -0
- package/dist/lib/browser/ChatCompanion-GXS6DK4X.mjs +202 -0
- package/dist/lib/browser/ChatCompanion-GXS6DK4X.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-SMSZXEF5.mjs +12 -0
- package/dist/lib/browser/ChatContainer-SMSZXEF5.mjs.map +7 -0
- package/dist/lib/browser/ChatDialog-ZCVPPONM.mjs +85 -0
- package/dist/lib/browser/ChatDialog-ZCVPPONM.mjs.map +7 -0
- package/dist/lib/browser/ProjectArticle-QDBTIFNE.mjs +91 -0
- package/dist/lib/browser/ProjectArticle-QDBTIFNE.mjs.map +7 -0
- package/dist/lib/browser/ProjectSettings-L5MCDUXK.mjs +232 -0
- package/dist/lib/browser/ProjectSettings-L5MCDUXK.mjs.map +7 -0
- package/dist/lib/browser/PromptArticle-G5YSAEGK.mjs +71 -0
- package/dist/lib/browser/PromptArticle-G5YSAEGK.mjs.map +7 -0
- package/dist/lib/browser/TriggerStatus-X35WDCK5.mjs +112 -0
- package/dist/lib/browser/TriggerStatus-X35WDCK5.mjs.map +7 -0
- package/dist/lib/browser/ai-service-CY2BYPH6.mjs +22 -0
- package/dist/lib/browser/ai-service-CY2BYPH6.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-ECQCWGCN.mjs +224 -0
- package/dist/lib/browser/app-graph-builder-ECQCWGCN.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-CKG4TQ2J.mjs +35 -0
- package/dist/lib/browser/blueprint-definition-CKG4TQ2J.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +8 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-2VIEX4RA.mjs +23 -0
- package/dist/lib/browser/chunk-2VIEX4RA.mjs.map +7 -0
- package/dist/lib/browser/chunk-734CB3XG.mjs +230 -0
- package/dist/lib/browser/chunk-734CB3XG.mjs.map +7 -0
- package/dist/lib/browser/chunk-A346P45I.mjs +2125 -0
- package/dist/lib/browser/chunk-A346P45I.mjs.map +7 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/browser/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/browser/chunk-JYY5AD65.mjs +286 -0
- package/dist/lib/browser/chunk-JYY5AD65.mjs.map +7 -0
- package/dist/lib/browser/chunk-WP4WY2Y6.mjs +69 -0
- package/dist/lib/browser/chunk-WP4WY2Y6.mjs.map +7 -0
- package/dist/lib/browser/chunk-ZZRRSIQQ.mjs +26 -0
- package/dist/lib/browser/chunk-ZZRRSIQQ.mjs.map +7 -0
- package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs +21 -0
- package/dist/lib/browser/edge-model-resolver-YTMFQEN5.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +295 -175
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs +20 -0
- package/dist/lib/browser/local-model-resolver-CGRQH37T.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operation-resolver-DYSWWNVG.mjs +123 -0
- package/dist/lib/browser/operation-resolver-DYSWWNVG.mjs.map +7 -0
- package/dist/lib/browser/react-surface-M3GSSFPC.mjs +142 -0
- package/dist/lib/browser/react-surface-M3GSSFPC.mjs.map +7 -0
- package/dist/lib/browser/settings-NC5DQWES.mjs +33 -0
- package/dist/lib/browser/settings-NC5DQWES.mjs.map +7 -0
- package/dist/lib/browser/state-EMIKHGYZ.mjs +26 -0
- package/dist/lib/browser/state-EMIKHGYZ.mjs.map +7 -0
- package/dist/lib/browser/toolkit-XRSBBB3L.mjs +16 -0
- package/dist/lib/browser/toolkit-XRSBBB3L.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +11 -4
- package/dist/lib/node-esm/AssistantSettings-3MNGBQB2.mjs +94 -0
- package/dist/lib/node-esm/AssistantSettings-3MNGBQB2.mjs.map +7 -0
- package/dist/lib/node-esm/BlueprintArticle-2KYFUQKY.mjs +36 -0
- package/dist/lib/node-esm/BlueprintArticle-2KYFUQKY.mjs.map +7 -0
- package/dist/lib/node-esm/ChatCompanion-MPQGSWZB.mjs +203 -0
- package/dist/lib/node-esm/ChatCompanion-MPQGSWZB.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-DMOAYUUM.mjs +13 -0
- package/dist/lib/node-esm/ChatContainer-DMOAYUUM.mjs.map +7 -0
- package/dist/lib/node-esm/ChatDialog-PV2EU2XM.mjs +86 -0
- package/dist/lib/node-esm/ChatDialog-PV2EU2XM.mjs.map +7 -0
- package/dist/lib/node-esm/ProjectArticle-BCIBESJN.mjs +92 -0
- package/dist/lib/node-esm/ProjectArticle-BCIBESJN.mjs.map +7 -0
- package/dist/lib/node-esm/ProjectSettings-K3YBQWDD.mjs +233 -0
- package/dist/lib/node-esm/ProjectSettings-K3YBQWDD.mjs.map +7 -0
- package/dist/lib/node-esm/PromptArticle-HAGZPZWV.mjs +72 -0
- package/dist/lib/node-esm/PromptArticle-HAGZPZWV.mjs.map +7 -0
- package/dist/lib/node-esm/TriggerStatus-V3QMIE7T.mjs +113 -0
- package/dist/lib/node-esm/TriggerStatus-V3QMIE7T.mjs.map +7 -0
- package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs +23 -0
- package/dist/lib/node-esm/ai-service-ZI3A6RVG.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-YPHP6X6W.mjs +225 -0
- package/dist/lib/node-esm/app-graph-builder-YPHP6X6W.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-UZWGSFBI.mjs +36 -0
- package/dist/lib/node-esm/blueprint-definition-UZWGSFBI.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +9 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-5DLYAEBK.mjs +2126 -0
- package/dist/lib/node-esm/chunk-5DLYAEBK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-AK3JJ76X.mjs +28 -0
- package/dist/lib/node-esm/chunk-AK3JJ76X.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +11 -0
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JMBYVUD6.mjs +288 -0
- package/dist/lib/node-esm/chunk-JMBYVUD6.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JQAXFBBU.mjs +231 -0
- package/dist/lib/node-esm/chunk-JQAXFBBU.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-TEYTGR67.mjs +25 -0
- package/dist/lib/node-esm/chunk-TEYTGR67.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ZTL6HRDB.mjs +70 -0
- package/dist/lib/node-esm/chunk-ZTL6HRDB.mjs.map +7 -0
- package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs +22 -0
- package/dist/lib/node-esm/edge-model-resolver-CMJ3KNLQ.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +295 -175
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs +21 -0
- package/dist/lib/node-esm/local-model-resolver-FFDAKOXN.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operation-resolver-EE4EBO2Y.mjs +124 -0
- package/dist/lib/node-esm/operation-resolver-EE4EBO2Y.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-U3PGFTKA.mjs +143 -0
- package/dist/lib/node-esm/react-surface-U3PGFTKA.mjs.map +7 -0
- package/dist/lib/node-esm/settings-OOAN5LAO.mjs +34 -0
- package/dist/lib/node-esm/settings-OOAN5LAO.mjs.map +7 -0
- package/dist/lib/node-esm/state-7A7QPQKK.mjs +27 -0
- package/dist/lib/node-esm/state-7A7QPQKK.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-5IWGLUF4.mjs +17 -0
- package/dist/lib/node-esm/toolkit-5IWGLUF4.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +11 -4
- package/dist/types/src/AssistantPlugin.d.ts +2 -1
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/assistant/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/assistant/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/assistant/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/index.d.ts +2 -0
- package/dist/types/src/blueprints/assistant/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +2 -0
- package/dist/types/src/blueprints/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/ai-service/ai-service.d.ts +6 -0
- package/dist/types/src/capabilities/ai-service/ai-service.d.ts.map +1 -0
- package/dist/types/src/capabilities/ai-service/index.d.ts +3 -0
- package/dist/types/src/capabilities/ai-service/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +6 -0
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts +3 -0
- package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +3 -0
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts +7 -0
- package/dist/types/src/capabilities/edge-model-resolver/edge-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/edge-model-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/edge-model-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +10 -4
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/local-model-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/local-model-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts +13 -0
- package/dist/types/src/capabilities/local-model-resolver/local-model-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +3 -0
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +5 -0
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts +3 -0
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/index.d.ts +15 -0
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings/settings.d.ts +18 -0
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/index.d.ts +11 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +13 -0
- package/dist/types/src/capabilities/state/state.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts +3 -0
- package/dist/types/src/capabilities/toolkit/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts +6 -0
- package/dist/types/src/capabilities/toolkit/toolkit.d.ts.map +1 -0
- package/dist/types/src/components/Chat/Chat.d.ts +39 -22
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/events.d.ts +10 -1
- package/dist/types/src/components/Chat/events.d.ts.map +1 -1
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +7 -0
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -0
- package/dist/types/src/components/ChatProgress/index.d.ts +2 -0
- package/dist/types/src/components/ChatProgress/index.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +20 -0
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -0
- package/dist/types/src/components/ChatPrompt/ChatPresets.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +5 -6
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts +6 -4
- package/dist/types/src/components/ChatPrompt/ChatStatusIndicator.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/index.d.ts +1 -1
- package/dist/types/src/components/ChatPrompt/index.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +13 -11
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +318 -56
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/Link.d.ts +9 -0
- package/dist/types/src/components/ChatThread/Link.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/registry.d.ts +11 -0
- package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/sync.d.ts +42 -0
- package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -0
- package/dist/types/src/components/ChatThread/sync.test.d.ts +2 -0
- package/dist/types/src/components/ChatThread/sync.test.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +2 -6
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +437 -7
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +12 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +434 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts +12 -0
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/extensions/index.d.ts +3 -0
- package/dist/types/src/components/TemplateEditor/extensions/index.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts +8 -0
- package/dist/types/src/components/TemplateEditor/extensions/xml-extension.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +21 -0
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts +2 -0
- package/dist/types/src/components/ToolBlock/ToolBlockWidget.d.ts.map +1 -0
- package/dist/types/src/components/ToolBlock/index.d.ts +3 -0
- package/dist/types/src/components/ToolBlock/index.d.ts.map +1 -0
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +10 -16
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +438 -5
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts +12 -0
- package/dist/types/src/components/Typewriter/AssistantToolbar.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/Typewriter.d.ts +11 -0
- package/dist/types/src/components/Typewriter/Typewriter.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts +7 -0
- package/dist/types/src/components/Typewriter/Typewriter.stories.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts +5 -0
- package/dist/types/src/components/Typewriter/assistant-extension.d.ts.map +1 -0
- package/dist/types/src/components/Typewriter/index.d.ts +2 -0
- package/dist/types/src/components/Typewriter/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +0 -8
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/AssistantSettings/AssistantSettings.d.ts +8 -0
- package/dist/types/src/containers/AssistantSettings/AssistantSettings.d.ts.map +1 -0
- package/dist/types/src/containers/AssistantSettings/index.d.ts +3 -0
- package/dist/types/src/containers/AssistantSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts +6 -0
- package/dist/types/src/containers/BlueprintArticle/BlueprintArticle.d.ts.map +1 -0
- package/dist/types/src/containers/BlueprintArticle/index.d.ts +3 -0
- package/dist/types/src/containers/BlueprintArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts +12 -0
- package/dist/types/src/containers/ChatCompanion/ChatCompanion.d.ts.map +1 -0
- package/dist/types/src/containers/ChatCompanion/index.d.ts +3 -0
- package/dist/types/src/containers/ChatCompanion/index.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts +19 -0
- package/dist/types/src/containers/ChatContainer/ChatContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ChatContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ChatDialog}/ChatDialog.d.ts +2 -3
- package/dist/types/src/containers/ChatDialog/ChatDialog.d.ts.map +1 -0
- package/dist/types/src/containers/ChatDialog/index.d.ts +3 -0
- package/dist/types/src/containers/ChatDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/Project/ProjectArticle.d.ts +7 -0
- package/dist/types/src/containers/Project/ProjectArticle.d.ts.map +1 -0
- package/dist/types/src/containers/Project/ProjectSettings.d.ts +6 -0
- package/dist/types/src/containers/Project/ProjectSettings.d.ts.map +1 -0
- package/dist/types/src/containers/Project/index.d.ts +7 -0
- package/dist/types/src/containers/Project/index.d.ts.map +1 -0
- package/dist/types/src/containers/Project/triggers.d.ts +6 -0
- package/dist/types/src/containers/Project/triggers.d.ts.map +1 -0
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts +6 -0
- package/dist/types/src/containers/PromptArticle/PromptArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PromptArticle/index.d.ts +3 -0
- package/dist/types/src/containers/PromptArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts +4 -0
- package/dist/types/src/containers/TriggerStatus/TriggerStatus.d.ts.map +1 -0
- package/dist/types/src/containers/TriggerStatus/index.d.ts +3 -0
- package/dist/types/src/containers/TriggerStatus/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +10 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +8 -3
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +25 -0
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -0
- package/dist/types/src/hooks/useChatProcessor.d.ts +10 -20
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +7 -8
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatToolbarActions.d.ts +8 -0
- package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -0
- package/dist/types/src/hooks/useContextBinder.d.ts +4 -0
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -0
- package/dist/types/src/hooks/useContextObjects.d.ts +15 -0
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts +3 -0
- package/dist/types/src/hooks/useFilteredTypes.d.ts.map +1 -0
- package/dist/types/src/hooks/useFlush.d.ts +6 -0
- package/dist/types/src/hooks/useFlush.d.ts.map +1 -0
- package/dist/types/src/hooks/useOnline.d.ts +3 -0
- package/dist/types/src/hooks/useOnline.d.ts.map +1 -0
- package/dist/types/src/hooks/usePresets.d.ts +7 -0
- package/dist/types/src/hooks/usePresets.d.ts.map +1 -0
- package/dist/types/src/hooks/useReferencesProvider.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +3 -4
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/processor/index.d.ts +4 -0
- package/dist/types/src/processor/index.d.ts.map +1 -0
- package/dist/types/src/{hooks → processor}/presets.d.ts +3 -3
- package/dist/types/src/processor/presets.d.ts.map +1 -0
- package/dist/types/src/processor/processor.d.ts +79 -0
- package/dist/types/src/processor/processor.d.ts.map +1 -0
- package/dist/types/src/processor/processor.test.d.ts +2 -0
- package/dist/types/src/processor/processor.test.d.ts.map +1 -0
- package/dist/types/src/processor/update-name.d.ts +10 -0
- package/dist/types/src/processor/update-name.d.ts.map +1 -0
- package/dist/types/src/queue-logger.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.d.ts +8 -0
- package/dist/types/src/testing/test-generator.d.ts.map +1 -0
- package/dist/types/src/testing/test-sequence.d.ts +0 -4
- package/dist/types/src/testing/test-sequence.d.ts.map +1 -1
- package/dist/types/src/testing/test-services.d.ts +2 -2
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +382 -28
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +20 -0
- package/dist/types/src/types/Assistant.d.ts.map +1 -0
- package/dist/types/src/types/AssistantAction.d.ts +93 -0
- package/dist/types/src/types/AssistantAction.d.ts.map +1 -0
- package/dist/types/src/types/capabilities.d.ts +33 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/defs.d.ts +2 -0
- package/dist/types/src/types/defs.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +5 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +6 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +14 -213
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +127 -100
- package/src/AssistantPlugin.tsx +153 -113
- package/src/blueprints/assistant/blueprint.conversations.json +1 -0
- package/src/blueprints/assistant/blueprint.test.ts +48 -0
- package/src/blueprints/assistant/blueprint.ts +27 -0
- package/src/blueprints/assistant/index.ts +5 -0
- package/src/{components/SequenceEditor → blueprints}/index.ts +1 -1
- package/src/capabilities/ai-service/ai-service.ts +30 -0
- package/src/capabilities/ai-service/index.ts +7 -0
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +197 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +50 -0
- package/src/capabilities/blueprint-definition/index.ts +7 -0
- package/src/capabilities/edge-model-resolver/edge-model-resolver.ts +33 -0
- package/src/capabilities/edge-model-resolver/index.ts +7 -0
- package/src/capabilities/index.ts +10 -6
- package/src/capabilities/local-model-resolver/index.ts +7 -0
- package/src/capabilities/local-model-resolver/local-model-resolver.ts +38 -0
- package/src/capabilities/operation-resolver/index.ts +7 -0
- package/src/capabilities/operation-resolver/operation-resolver.ts +113 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +119 -0
- package/src/capabilities/settings/index.ts +7 -0
- package/src/capabilities/settings/settings.ts +31 -0
- package/src/capabilities/state/index.ts +7 -0
- package/src/capabilities/state/state.ts +27 -0
- package/src/capabilities/toolkit/index.ts +7 -0
- package/src/capabilities/toolkit/toolkit.ts +15 -0
- package/src/components/Chat/Chat.tsx +278 -198
- package/src/components/Chat/events.ts +14 -1
- package/src/components/ChatProgress/ChatProgress.tsx +53 -0
- package/src/components/ChatProgress/index.ts +5 -0
- package/src/components/ChatPrompt/ChatActions.tsx +20 -28
- package/src/components/ChatPrompt/ChatOptions.tsx +258 -0
- package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +42 -38
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +25 -22
- package/src/components/ChatPrompt/index.ts +1 -1
- package/src/components/ChatThread/ChatThread.stories.tsx +123 -116
- package/src/components/ChatThread/ChatThread.tsx +75 -36
- package/src/components/ChatThread/Link.tsx +26 -0
- package/src/components/ChatThread/registry.tsx +207 -0
- package/src/components/ChatThread/sync.test.ts +99 -0
- package/src/components/ChatThread/sync.ts +160 -0
- package/src/components/ChatThread/testing/thread.md +37 -0
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +39 -18
- package/src/components/TemplateEditor/TemplateEditor.tsx +33 -54
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +28 -15
- package/src/components/TemplateEditor/TemplateForm.tsx +84 -36
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +274 -0
- package/src/components/TemplateEditor/extensions/index.ts +6 -0
- package/src/components/TemplateEditor/extensions/xml-extension.ts +64 -0
- package/src/components/ToolBlock/ToolBlock.tsx +143 -0
- package/src/components/ToolBlock/ToolBlockWidget.tsx +5 -0
- package/src/components/ToolBlock/index.ts +6 -0
- package/src/components/Toolbox/Toolbox.stories.tsx +19 -29
- package/src/components/Toolbox/Toolbox.tsx +74 -104
- package/src/components/Typewriter/AssistantToolbar.tsx +161 -0
- package/src/components/Typewriter/Typewriter.stories.tsx +86 -0
- package/src/components/Typewriter/Typewriter.tsx +54 -0
- package/src/components/Typewriter/assistant-extension.tsx +142 -0
- package/src/components/Typewriter/index.ts +5 -0
- package/src/components/index.ts +0 -13
- package/src/containers/AssistantSettings/AssistantSettings.tsx +120 -0
- package/src/containers/AssistantSettings/index.ts +7 -0
- package/src/containers/BlueprintArticle/BlueprintArticle.tsx +29 -0
- package/src/containers/BlueprintArticle/index.ts +7 -0
- package/src/containers/ChatCompanion/ChatCompanion.tsx +225 -0
- package/src/containers/ChatCompanion/index.ts +7 -0
- package/src/containers/ChatContainer/ChatContainer.tsx +69 -0
- package/src/containers/ChatContainer/index.ts +7 -0
- package/src/containers/ChatDialog/ChatDialog.tsx +72 -0
- package/src/containers/ChatDialog/index.ts +7 -0
- package/src/containers/Project/ProjectArticle.tsx +117 -0
- package/src/containers/Project/ProjectSettings.tsx +134 -0
- package/src/containers/Project/index.ts +16 -0
- package/src/containers/Project/triggers.ts +149 -0
- package/src/containers/PromptArticle/PromptArticle.tsx +59 -0
- package/src/containers/PromptArticle/index.ts +7 -0
- package/src/containers/TriggerStatus/TriggerStatus.tsx +140 -0
- package/src/containers/TriggerStatus/index.ts +7 -0
- package/src/containers/index.ts +15 -0
- package/src/hooks/index.ts +8 -4
- package/src/hooks/useBlueprintRegistry.ts +108 -0
- package/src/hooks/useChatProcessor.ts +40 -105
- package/src/hooks/useChatServices.ts +31 -51
- package/src/hooks/useChatToolbarActions.ts +122 -0
- package/src/hooks/useContextBinder.ts +32 -0
- package/src/hooks/useContextObjects.ts +46 -0
- package/src/hooks/useFilteredTypes.ts +37 -0
- package/src/hooks/useFlush.ts +35 -0
- package/src/hooks/useOnline.ts +10 -0
- package/src/hooks/usePresets.ts +44 -0
- package/src/hooks/useReferencesProvider.ts +12 -13
- package/src/index.ts +3 -1
- package/src/meta.ts +11 -8
- package/src/processor/index.ts +7 -0
- package/src/{hooks → processor}/presets.ts +16 -8
- package/src/processor/processor.test.ts +73 -0
- package/src/processor/processor.ts +296 -0
- package/src/processor/update-name.ts +58 -0
- package/src/queue-logger.ts +17 -18
- package/src/testing/index.ts +1 -1
- package/src/testing/test-generator.ts +262 -0
- package/src/testing/test-sequence.ts +5 -30
- package/src/testing/test-services.ts +10 -14
- package/src/translations.ts +77 -20
- package/src/types/Assistant.ts +28 -0
- package/src/types/AssistantAction.ts +76 -0
- package/src/types/capabilities.ts +27 -0
- package/src/types/defs.ts +5 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +9 -1
- package/src/types/service.ts +27 -16
- package/src/vite-env.d.ts +30 -0
- package/dist/lib/browser/BlueprintContainer-IZ4AK5EO.mjs +0 -28
- package/dist/lib/browser/BlueprintContainer-IZ4AK5EO.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-RP3QEXYX.mjs +0 -54
- package/dist/lib/browser/ChatContainer-RP3QEXYX.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-ZVLXFHEY.mjs +0 -72
- package/dist/lib/browser/ChatDialog-ZVLXFHEY.mjs.map +0 -7
- package/dist/lib/browser/SequenceContainer-3UDVKWPA.mjs +0 -162
- package/dist/lib/browser/SequenceContainer-3UDVKWPA.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-XSEOKJLG.mjs +0 -164
- package/dist/lib/browser/app-graph-builder-XSEOKJLG.mjs.map +0 -7
- package/dist/lib/browser/chunk-63GG6U6D.mjs +0 -2226
- package/dist/lib/browser/chunk-63GG6U6D.mjs.map +0 -7
- package/dist/lib/browser/chunk-7W7LHTRH.mjs +0 -171
- package/dist/lib/browser/chunk-7W7LHTRH.mjs.map +0 -7
- package/dist/lib/browser/chunk-FDCJSQYF.mjs +0 -40
- package/dist/lib/browser/chunk-FDCJSQYF.mjs.map +0 -7
- package/dist/lib/browser/chunk-KFXSBNZR.mjs +0 -89
- package/dist/lib/browser/chunk-KFXSBNZR.mjs.map +0 -7
- package/dist/lib/browser/chunk-LERGF5YG.mjs +0 -108
- package/dist/lib/browser/chunk-LERGF5YG.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MV3VSZLS.mjs +0 -75
- package/dist/lib/browser/intent-resolver-MV3VSZLS.mjs.map +0 -7
- package/dist/lib/browser/react-surface-3GYEHQRP.mjs +0 -150
- package/dist/lib/browser/react-surface-3GYEHQRP.mjs.map +0 -7
- package/dist/lib/browser/settings-5GTTCVGD.mjs +0 -22
- package/dist/lib/browser/settings-5GTTCVGD.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintContainer-RGTMNLNX.mjs +0 -29
- package/dist/lib/node-esm/BlueprintContainer-RGTMNLNX.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-W3W6FWV3.mjs +0 -55
- package/dist/lib/node-esm/ChatContainer-W3W6FWV3.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-QW4JRKVO.mjs +0 -73
- package/dist/lib/node-esm/ChatDialog-QW4JRKVO.mjs.map +0 -7
- package/dist/lib/node-esm/SequenceContainer-RQQH5XOC.mjs +0 -163
- package/dist/lib/node-esm/SequenceContainer-RQQH5XOC.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-PANCJUHV.mjs +0 -165
- package/dist/lib/node-esm/app-graph-builder-PANCJUHV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BFO3KHYL.mjs +0 -2227
- package/dist/lib/node-esm/chunk-BFO3KHYL.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MS3PJARN.mjs +0 -109
- package/dist/lib/node-esm/chunk-MS3PJARN.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-QN2H2EHV.mjs +0 -41
- package/dist/lib/node-esm/chunk-QN2H2EHV.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VIIMA3XQ.mjs +0 -90
- package/dist/lib/node-esm/chunk-VIIMA3XQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Z7PUODRT.mjs +0 -172
- package/dist/lib/node-esm/chunk-Z7PUODRT.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-3FMC3GHC.mjs +0 -76
- package/dist/lib/node-esm/intent-resolver-3FMC3GHC.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-QDQWJ7FZ.mjs +0 -151
- package/dist/lib/node-esm/react-surface-QDQWJ7FZ.mjs.map +0 -7
- package/dist/lib/node-esm/settings-J2EXEM5H.mjs +0 -23
- package/dist/lib/node-esm/settings-J2EXEM5H.mjs.map +0 -7
- package/dist/types/src/capabilities/app-graph-builder.d.ts +0 -4
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface.d.ts +0 -4
- package/dist/types/src/capabilities/react-surface.d.ts.map +0 -1
- package/dist/types/src/capabilities/settings.d.ts +0 -4
- package/dist/types/src/capabilities/settings.d.ts.map +0 -1
- package/dist/types/src/capability-definitions.d.ts +0 -7
- package/dist/types/src/capability-definitions.d.ts.map +0 -1
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts +0 -6
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +0 -1
- package/dist/types/src/components/AssistantSettings/index.d.ts +0 -2
- package/dist/types/src/components/AssistantSettings/index.d.ts.map +0 -1
- package/dist/types/src/components/BlueprintContainer.d.ts +0 -8
- package/dist/types/src/components/BlueprintContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -11
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChatDialog.d.ts.map +0 -1
- package/dist/types/src/components/ChatPrompt/ChatOptionsMenu.d.ts +0 -9
- package/dist/types/src/components/ChatPrompt/ChatOptionsMenu.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts +0 -17
- package/dist/types/src/components/ChatThread/ChatMessage.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts +0 -19
- package/dist/types/src/components/ChatThread/ToolBlock.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/reducer.d.ts +0 -12
- package/dist/types/src/components/ChatThread/reducer.d.ts.map +0 -1
- package/dist/types/src/components/PromptSettings.d.ts +0 -6
- package/dist/types/src/components/PromptSettings.d.ts.map +0 -1
- package/dist/types/src/components/SequenceContainer.d.ts +0 -8
- package/dist/types/src/components/SequenceContainer.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts +0 -13
- package/dist/types/src/components/SequenceEditor/SequenceEditor.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts +0 -8
- package/dist/types/src/components/SequenceEditor/SequenceEditor.stories.d.ts.map +0 -1
- package/dist/types/src/components/SequenceEditor/index.d.ts +0 -2
- package/dist/types/src/components/SequenceEditor/index.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -4
- package/dist/types/src/events.d.ts.map +0 -1
- package/dist/types/src/hooks/chat-processor.d.ts +0 -86
- package/dist/types/src/hooks/chat-processor.d.ts.map +0 -1
- package/dist/types/src/hooks/chat-processor.test.d.ts +0 -2
- package/dist/types/src/hooks/chat-processor.test.d.ts.map +0 -1
- package/dist/types/src/hooks/presets.d.ts.map +0 -1
- package/dist/types/src/hooks/useBlueprints.d.ts +0 -9
- package/dist/types/src/hooks/useBlueprints.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.d.ts +0 -4
- package/dist/types/src/parser/filter-generator.d.ts.map +0 -1
- package/dist/types/src/parser/filter-generator.test.d.ts +0 -2
- package/dist/types/src/parser/filter-generator.test.d.ts.map +0 -1
- package/dist/types/src/parser/index.d.ts +0 -4
- package/dist/types/src/parser/index.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.d.ts +0 -15
- package/dist/types/src/parser/query-parser.d.ts.map +0 -1
- package/dist/types/src/parser/query-parser.test.d.ts +0 -2
- package/dist/types/src/parser/query-parser.test.d.ts.map +0 -1
- package/dist/types/src/parser/types.d.ts +0 -24
- package/dist/types/src/parser/types.d.ts.map +0 -1
- package/dist/types/src/stories/Chat.stories.d.ts +0 -207
- package/dist/types/src/stories/Chat.stories.d.ts.map +0 -1
- package/dist/types/src/testing/test-functions.d.ts +0 -3
- package/dist/types/src/testing/test-functions.d.ts.map +0 -1
- package/dist/types/src/tools/function.d.ts +0 -5
- package/dist/types/src/tools/function.d.ts.map +0 -1
- package/dist/types/src/tools/index.d.ts +0 -3
- package/dist/types/src/tools/index.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.d.ts +0 -10
- package/dist/types/src/tools/openapi.d.ts.map +0 -1
- package/dist/types/src/tools/openapi.test.d.ts +0 -2
- package/dist/types/src/tools/openapi.test.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -120
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -169
- package/src/capabilities/intent-resolver.ts +0 -72
- package/src/capabilities/react-surface.tsx +0 -138
- package/src/capabilities/settings.ts +0 -19
- package/src/capability-definitions.ts +0 -15
- package/src/components/AssistantSettings/AssistantSettings.tsx +0 -105
- package/src/components/AssistantSettings/index.ts +0 -5
- package/src/components/BlueprintContainer.tsx +0 -24
- package/src/components/ChatContainer.tsx +0 -45
- package/src/components/ChatDialog.tsx +0 -64
- package/src/components/ChatPrompt/ChatOptionsMenu.tsx +0 -52
- package/src/components/ChatThread/ChatMessage.tsx +0 -268
- package/src/components/ChatThread/ToolBlock.tsx +0 -121
- package/src/components/ChatThread/reducer.ts +0 -52
- package/src/components/PromptSettings.tsx +0 -89
- package/src/components/SequenceContainer.tsx +0 -132
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -32
- package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
- package/src/events.ts +0 -11
- package/src/hooks/chat-processor.test.ts +0 -16
- package/src/hooks/chat-processor.ts +0 -314
- package/src/hooks/useBlueprints.ts +0 -57
- package/src/parser/filter-generator.test.ts +0 -32
- package/src/parser/filter-generator.ts +0 -81
- package/src/parser/index.ts +0 -7
- package/src/parser/query-parser.test.ts +0 -139
- package/src/parser/query-parser.ts +0 -199
- package/src/parser/types.ts +0 -34
- package/src/shims.d.ts +0 -8
- package/src/stories/Chat.stories.tsx +0 -371
- package/src/testing/test-functions.ts +0 -11
- package/src/tools/function.ts +0 -46
- package/src/tools/index.ts +0 -6
- package/src/tools/openapi.test.ts +0 -217
- package/src/tools/openapi.ts +0 -338
- package/src/types/schema.ts +0 -108
- package/src/typings.d.ts +0 -9
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Obj } from '@dxos/echo';
|
|
8
|
+
import { Database } from '@dxos/echo';
|
|
9
|
+
import { ContextQueueService } from '@dxos/functions';
|
|
10
|
+
import { faker } from '@dxos/random';
|
|
11
|
+
import { renderObjectLink } from '@dxos/react-ui-components';
|
|
12
|
+
import { type Actor, type ContentBlock, Message, Organization } from '@dxos/types';
|
|
13
|
+
import { trim } from '@dxos/util';
|
|
14
|
+
|
|
15
|
+
export const createMessage = (role: Actor.Role, blocks: ContentBlock.Any[]): Message.Message => {
|
|
16
|
+
return Obj.make(Message.Message, {
|
|
17
|
+
created: new Date().toISOString(),
|
|
18
|
+
sender: { role },
|
|
19
|
+
blocks,
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export type MessageGenerator = Effect.Effect<void, never, Database.Service | ContextQueueService>;
|
|
24
|
+
|
|
25
|
+
export const createMessageGenerator = (): MessageGenerator[] => [
|
|
26
|
+
Effect.gen(function* () {
|
|
27
|
+
const { queue } = yield* ContextQueueService;
|
|
28
|
+
yield* Effect.promise(() =>
|
|
29
|
+
queue.append([
|
|
30
|
+
createMessage('user', [
|
|
31
|
+
{
|
|
32
|
+
_tag: 'text',
|
|
33
|
+
text: faker.lorem.sentence(5),
|
|
34
|
+
},
|
|
35
|
+
]),
|
|
36
|
+
]),
|
|
37
|
+
);
|
|
38
|
+
}),
|
|
39
|
+
|
|
40
|
+
Effect.gen(function* () {
|
|
41
|
+
const { queue } = yield* ContextQueueService;
|
|
42
|
+
yield* Effect.promise(() =>
|
|
43
|
+
queue.append([
|
|
44
|
+
createMessage('assistant', [
|
|
45
|
+
{
|
|
46
|
+
_tag: 'text',
|
|
47
|
+
text:
|
|
48
|
+
trim`
|
|
49
|
+
## Markdown
|
|
50
|
+
Here is a [link](https://dxos.org)
|
|
51
|
+
|
|
52
|
+
And some **bold** text.
|
|
53
|
+
|
|
54
|
+
And some JSON
|
|
55
|
+
\`\`\`json
|
|
56
|
+
{
|
|
57
|
+
"key": "value"
|
|
58
|
+
}
|
|
59
|
+
\`\`\`
|
|
60
|
+
|
|
61
|
+
And some code
|
|
62
|
+
\`\`\`js
|
|
63
|
+
const x = 1;
|
|
64
|
+
\`\`\`
|
|
65
|
+
` + '\n',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
_tag: 'text',
|
|
69
|
+
disposition: 'cot',
|
|
70
|
+
text:
|
|
71
|
+
[
|
|
72
|
+
faker.lorem.paragraph(),
|
|
73
|
+
'',
|
|
74
|
+
...Array.from({
|
|
75
|
+
length: faker.number.int({ min: 3, max: 5 }),
|
|
76
|
+
}).map((_, idx) => `${idx + 1}. ${faker.lorem.paragraph()}`),
|
|
77
|
+
].join('\n') + '\n',
|
|
78
|
+
},
|
|
79
|
+
]),
|
|
80
|
+
]),
|
|
81
|
+
);
|
|
82
|
+
}),
|
|
83
|
+
|
|
84
|
+
Effect.gen(function* () {
|
|
85
|
+
const { queue } = yield* ContextQueueService;
|
|
86
|
+
yield* Effect.promise(() =>
|
|
87
|
+
queue.append([
|
|
88
|
+
createMessage('assistant', [
|
|
89
|
+
{
|
|
90
|
+
_tag: 'text',
|
|
91
|
+
text: 'How can I help?',
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
_tag: 'suggestion',
|
|
95
|
+
text: 'List tools',
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
_tag: 'suggestion',
|
|
99
|
+
text: 'Show info',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
_tag: 'suggestion',
|
|
103
|
+
text: faker.lorem.paragraph(),
|
|
104
|
+
},
|
|
105
|
+
]),
|
|
106
|
+
createMessage('assistant', [
|
|
107
|
+
{
|
|
108
|
+
_tag: 'text',
|
|
109
|
+
text: 'Select an option:',
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
_tag: 'select',
|
|
113
|
+
options: ['Option 1', 'Option 2', 'Option 3'],
|
|
114
|
+
},
|
|
115
|
+
]),
|
|
116
|
+
]),
|
|
117
|
+
);
|
|
118
|
+
}),
|
|
119
|
+
|
|
120
|
+
Effect.gen(function* () {
|
|
121
|
+
const { queue } = yield* ContextQueueService;
|
|
122
|
+
yield* Effect.promise(() =>
|
|
123
|
+
queue.append([
|
|
124
|
+
createMessage('assistant', [
|
|
125
|
+
{
|
|
126
|
+
_tag: 'toolkit',
|
|
127
|
+
},
|
|
128
|
+
]),
|
|
129
|
+
]),
|
|
130
|
+
);
|
|
131
|
+
}),
|
|
132
|
+
|
|
133
|
+
Effect.gen(function* () {
|
|
134
|
+
const { queue } = yield* ContextQueueService;
|
|
135
|
+
yield* Effect.promise(() =>
|
|
136
|
+
queue.append([
|
|
137
|
+
createMessage('user', [
|
|
138
|
+
{
|
|
139
|
+
_tag: 'text',
|
|
140
|
+
text: faker.lorem.sentence(5),
|
|
141
|
+
},
|
|
142
|
+
]),
|
|
143
|
+
]),
|
|
144
|
+
);
|
|
145
|
+
}),
|
|
146
|
+
|
|
147
|
+
Effect.gen(function* () {
|
|
148
|
+
const { queue } = yield* ContextQueueService;
|
|
149
|
+
const { db } = yield* Database.Service;
|
|
150
|
+
const obj1 = db.add(Obj.make(Organization.Organization, { name: 'DXOS' }));
|
|
151
|
+
// const obj2 = db.add(Obj.make(Person.Person, { fullName: 'Alice' }));
|
|
152
|
+
// const obj3 = db.add(Obj.make(Person.Person, { fullName: 'Bob' }));
|
|
153
|
+
// const obj4 = db.add(Obj.make(Person.Person, { fullName: 'Charlie' }));
|
|
154
|
+
yield* Effect.promise(() =>
|
|
155
|
+
queue.append([
|
|
156
|
+
createMessage('assistant', [
|
|
157
|
+
// Inline tag.
|
|
158
|
+
{
|
|
159
|
+
_tag: 'text',
|
|
160
|
+
text: [faker.lorem.paragraph(), renderObjectLink(obj1), faker.lorem.paragraph(), '\n'].join(' '),
|
|
161
|
+
},
|
|
162
|
+
|
|
163
|
+
// Inline cards.
|
|
164
|
+
// ...[obj1, obj2, obj3, obj4].map(
|
|
165
|
+
// (obj) =>
|
|
166
|
+
// ({
|
|
167
|
+
// _tag: 'text',
|
|
168
|
+
// text: renderObjectLink(obj, true) + '\n',
|
|
169
|
+
// }) satisfies ContentBlock.Text,
|
|
170
|
+
// ),
|
|
171
|
+
]),
|
|
172
|
+
]),
|
|
173
|
+
);
|
|
174
|
+
}),
|
|
175
|
+
|
|
176
|
+
Effect.gen(function* () {
|
|
177
|
+
const { queue } = yield* ContextQueueService;
|
|
178
|
+
yield* Effect.promise(() =>
|
|
179
|
+
queue.append([
|
|
180
|
+
createMessage('assistant', [
|
|
181
|
+
{
|
|
182
|
+
_tag: 'text',
|
|
183
|
+
text: faker.lorem.paragraph() + '\n',
|
|
184
|
+
},
|
|
185
|
+
]),
|
|
186
|
+
createMessage('assistant', [
|
|
187
|
+
{
|
|
188
|
+
_tag: 'toolCall',
|
|
189
|
+
toolCallId: '1234',
|
|
190
|
+
name: 'search',
|
|
191
|
+
input: JSON.stringify({}),
|
|
192
|
+
providerExecuted: false,
|
|
193
|
+
},
|
|
194
|
+
]),
|
|
195
|
+
createMessage('user', [
|
|
196
|
+
{
|
|
197
|
+
_tag: 'toolResult',
|
|
198
|
+
toolCallId: '1234',
|
|
199
|
+
name: 'search',
|
|
200
|
+
result: 'This is a tool result.',
|
|
201
|
+
providerExecuted: false,
|
|
202
|
+
},
|
|
203
|
+
]),
|
|
204
|
+
]),
|
|
205
|
+
);
|
|
206
|
+
}),
|
|
207
|
+
|
|
208
|
+
Effect.gen(function* () {
|
|
209
|
+
const { queue } = yield* ContextQueueService;
|
|
210
|
+
yield* Effect.promise(() =>
|
|
211
|
+
queue.append([
|
|
212
|
+
createMessage('assistant', [
|
|
213
|
+
{
|
|
214
|
+
_tag: 'text',
|
|
215
|
+
text: faker.lorem.paragraph() + '\n',
|
|
216
|
+
},
|
|
217
|
+
]),
|
|
218
|
+
createMessage('assistant', [
|
|
219
|
+
{
|
|
220
|
+
_tag: 'toolCall',
|
|
221
|
+
toolCallId: '4567',
|
|
222
|
+
name: 'create',
|
|
223
|
+
input: JSON.stringify({}),
|
|
224
|
+
providerExecuted: false,
|
|
225
|
+
},
|
|
226
|
+
]),
|
|
227
|
+
createMessage('user', [
|
|
228
|
+
{
|
|
229
|
+
_tag: 'toolResult',
|
|
230
|
+
toolCallId: '4567',
|
|
231
|
+
name: 'create',
|
|
232
|
+
result: 'This is a tool result.',
|
|
233
|
+
providerExecuted: false,
|
|
234
|
+
},
|
|
235
|
+
]),
|
|
236
|
+
createMessage('assistant', [
|
|
237
|
+
{
|
|
238
|
+
_tag: 'text',
|
|
239
|
+
text:
|
|
240
|
+
Array.from({ length: faker.number.int({ min: 2, max: 3 }) })
|
|
241
|
+
.map(() => faker.lorem.paragraph())
|
|
242
|
+
.join('\n\n') + '\n',
|
|
243
|
+
},
|
|
244
|
+
]),
|
|
245
|
+
]),
|
|
246
|
+
);
|
|
247
|
+
}),
|
|
248
|
+
|
|
249
|
+
Effect.gen(function* () {
|
|
250
|
+
const { queue } = yield* ContextQueueService;
|
|
251
|
+
yield* Effect.promise(() =>
|
|
252
|
+
queue.append([
|
|
253
|
+
createMessage('assistant', [
|
|
254
|
+
{
|
|
255
|
+
_tag: 'text',
|
|
256
|
+
text: faker.lorem.paragraph(),
|
|
257
|
+
},
|
|
258
|
+
]),
|
|
259
|
+
]),
|
|
260
|
+
);
|
|
261
|
+
}),
|
|
262
|
+
];
|
|
@@ -2,48 +2,23 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { ToolId
|
|
6
|
-
|
|
7
|
-
import { type Space } from '@dxos/client/echo';
|
|
8
|
-
import { SequenceParser, type SequenceDefinition } from '@dxos/conductor';
|
|
9
|
-
import { type DXN } from '@dxos/keys';
|
|
10
|
-
import { isNonNullable } from '@dxos/util';
|
|
11
|
-
|
|
12
|
-
// TODO(dmaretskyi): make db available through services (same as function executor).
|
|
13
|
-
// TODO(burdon): Can tools implement "aspects" so that variants can be used rather than an explicit reference?
|
|
14
|
-
export const createToolRegistry = (space: Space, queueDxn?: DXN): ToolRegistry => {
|
|
15
|
-
return new ToolRegistry(
|
|
16
|
-
[
|
|
17
|
-
// createExaTool({ apiKey: EXA_API_KEY }),
|
|
18
|
-
// createLocalSearchTool(space.db, queueDxn && space.queues.get(queueDxn)),
|
|
19
|
-
// queueDxn &&
|
|
20
|
-
// createGraphWriterTool({
|
|
21
|
-
// db: space.db,
|
|
22
|
-
// queue: space.queues.get(queueDxn),
|
|
23
|
-
// schema: DataTypes,
|
|
24
|
-
// onDone: async (objects) => {
|
|
25
|
-
// const queue = space.queues.get(queueDxn);
|
|
26
|
-
// await queue.append(objects);
|
|
27
|
-
// },
|
|
28
|
-
// }),
|
|
29
|
-
].filter(isNonNullable),
|
|
30
|
-
);
|
|
31
|
-
};
|
|
5
|
+
import { ToolId } from '@dxos/ai';
|
|
6
|
+
import { type SequenceDefinition, SequenceParser } from '@dxos/conductor';
|
|
32
7
|
|
|
33
8
|
export const RESEARCH_SEQUENCE_DEFINITION: SequenceDefinition = {
|
|
34
9
|
steps: [
|
|
35
10
|
{
|
|
36
11
|
instructions: 'Research information and entities related to the selected objects.',
|
|
37
|
-
tools: [ToolId.make('search/
|
|
12
|
+
tools: [ToolId.make('search/web-search')],
|
|
38
13
|
},
|
|
39
14
|
{
|
|
40
15
|
instructions:
|
|
41
16
|
'Based on your research find matching entires that are already in the graph. Do exaustive research.',
|
|
42
|
-
tools: [ToolId.make('search/
|
|
17
|
+
tools: [ToolId.make('search/local-search')],
|
|
43
18
|
},
|
|
44
19
|
{
|
|
45
20
|
instructions: 'Add researched data to the graph. Make connections to existing objects.',
|
|
46
|
-
tools: [ToolId.make('search/
|
|
21
|
+
tools: [ToolId.make('search/local-search'), ToolId.make('graph/writer')],
|
|
47
22
|
},
|
|
48
23
|
],
|
|
49
24
|
};
|
|
@@ -2,18 +2,14 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Obj } from '@dxos/echo';
|
|
5
|
+
import { Obj, type Type } from '@dxos/echo';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
type ServiceQuery,
|
|
11
|
-
ServiceType,
|
|
12
|
-
categoryIcons,
|
|
13
|
-
} from '../types';
|
|
7
|
+
import { type ApiAuthorization, type BaseServiceRegistry, ServiceType, categoryIcons } from '../types';
|
|
8
|
+
|
|
9
|
+
const ServiceTypeSchema = ServiceType as unknown as Type.AnyObj;
|
|
14
10
|
|
|
15
11
|
export class MockServiceRegistry implements BaseServiceRegistry {
|
|
16
|
-
async queryServices(
|
|
12
|
+
async queryServices(): Promise<ServiceType[]> {
|
|
17
13
|
return TEST_SERVICES;
|
|
18
14
|
}
|
|
19
15
|
}
|
|
@@ -54,7 +50,7 @@ const VISUAL_CROSSING_CREDENTIALS: ApiAuthorization = {
|
|
|
54
50
|
// - e.g., https://github.com/konfig-sdks/openapi-examples/blob/main/xkcd/openapi.yaml
|
|
55
51
|
|
|
56
52
|
const TEST_SERVICES: ServiceType[] = [
|
|
57
|
-
Obj.make(
|
|
53
|
+
Obj.make(ServiceTypeSchema, {
|
|
58
54
|
serviceId: 'amadeus.com/service/FlightSearch',
|
|
59
55
|
name: 'Amadeus Flight Search',
|
|
60
56
|
description: 'Search for local and international flights.',
|
|
@@ -68,7 +64,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
68
64
|
],
|
|
69
65
|
}),
|
|
70
66
|
|
|
71
|
-
Obj.make(
|
|
67
|
+
Obj.make(ServiceTypeSchema, {
|
|
72
68
|
serviceId: 'amadeus.com/service/HotelSearch',
|
|
73
69
|
name: 'Amadeus Hotel Search',
|
|
74
70
|
description: 'Search for local and international hotels.',
|
|
@@ -82,7 +78,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
82
78
|
],
|
|
83
79
|
}),
|
|
84
80
|
|
|
85
|
-
Obj.make(
|
|
81
|
+
Obj.make(ServiceTypeSchema, {
|
|
86
82
|
serviceId: 'visualcrossing.com/service/Weather',
|
|
87
83
|
name: 'Visual Crossing Weather',
|
|
88
84
|
description: 'Search for global weather forecasts.',
|
|
@@ -97,7 +93,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
97
93
|
}),
|
|
98
94
|
|
|
99
95
|
// TODO(burdon): Needs auth.
|
|
100
|
-
Obj.make(
|
|
96
|
+
Obj.make(ServiceTypeSchema, {
|
|
101
97
|
serviceId: 'abstractapi.com/service/GeoLocation',
|
|
102
98
|
name: 'Abstract GeoLocation',
|
|
103
99
|
description: 'Get the location of any IP address.',
|
|
@@ -115,7 +111,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
115
111
|
//
|
|
116
112
|
|
|
117
113
|
...Array.from({ length: 20 }, (_, i) =>
|
|
118
|
-
Obj.make(
|
|
114
|
+
Obj.make(ServiceTypeSchema, {
|
|
119
115
|
serviceId: `example.com/service/test-${i}`,
|
|
120
116
|
name: `Test ${i}`,
|
|
121
117
|
description: `Test ${i}`,
|
package/src/translations.ts
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { Chat, Project } from '@dxos/assistant-toolkit';
|
|
6
|
+
import { Blueprint, Prompt } from '@dxos/blueprints';
|
|
6
7
|
import { Sequence } from '@dxos/conductor';
|
|
8
|
+
import { Type } from '@dxos/echo';
|
|
7
9
|
import { type Resource } from '@dxos/react-ui';
|
|
8
10
|
|
|
9
11
|
import { meta } from './meta';
|
|
10
|
-
import { Assistant } from './types';
|
|
11
12
|
|
|
13
|
+
// TODO(burdon): Standardize translation names.
|
|
12
14
|
export const translations = [
|
|
13
15
|
{
|
|
14
16
|
'en-US': {
|
|
@@ -19,8 +21,21 @@ export const translations = [
|
|
|
19
21
|
'typename label_one': 'Blueprint',
|
|
20
22
|
'typename label_other': 'Blueprints',
|
|
21
23
|
'object name placeholder': 'New blueprint',
|
|
24
|
+
'add object label': 'Add blueprint',
|
|
22
25
|
'rename object label': 'Rename blueprint',
|
|
23
26
|
'delete object label': 'Delete blueprint',
|
|
27
|
+
'object deleted label': 'Blueprint deleted',
|
|
28
|
+
},
|
|
29
|
+
[Type.getTypename(Prompt.Prompt)]: {
|
|
30
|
+
'typename label': 'Prompt',
|
|
31
|
+
'typename label_zero': 'Prompts',
|
|
32
|
+
'typename label_one': 'Prompt',
|
|
33
|
+
'typename label_other': 'Prompts',
|
|
34
|
+
'object name placeholder': 'New prompt',
|
|
35
|
+
'add object label': 'Add prompt',
|
|
36
|
+
'rename object label': 'Rename prompt',
|
|
37
|
+
'delete object label': 'Delete prompt',
|
|
38
|
+
'object deleted label': 'Prompt deleted',
|
|
24
39
|
},
|
|
25
40
|
// TODO(burdon): From conductor.
|
|
26
41
|
[Sequence.typename]: {
|
|
@@ -29,23 +44,37 @@ export const translations = [
|
|
|
29
44
|
'typename label_one': 'Sequence',
|
|
30
45
|
'typename label_other': 'Sequences',
|
|
31
46
|
'object name placeholder': 'New sequence',
|
|
47
|
+
'add object label': 'Add sequence',
|
|
32
48
|
'rename object label': 'Rename sequence',
|
|
33
49
|
'delete object label': 'Delete sequence',
|
|
50
|
+
'object deleted label': 'Sequence deleted',
|
|
51
|
+
},
|
|
52
|
+
[Chat.Chat.typename]: {
|
|
53
|
+
'typename label': 'AI Chat',
|
|
54
|
+
'object name placeholder': 'New AI Chat',
|
|
55
|
+
'add object label': 'Add AI chat',
|
|
56
|
+
'rename object label': 'Rename AI Chat',
|
|
57
|
+
'delete object label': 'Delete AI Chat',
|
|
58
|
+
'object deleted label': 'AI Chat deleted',
|
|
34
59
|
},
|
|
35
|
-
[
|
|
36
|
-
'typename label': '
|
|
37
|
-
'typename label_zero': '
|
|
38
|
-
'typename label_one': '
|
|
39
|
-
'typename label_other': '
|
|
40
|
-
'object name placeholder': 'New
|
|
41
|
-
'
|
|
42
|
-
'
|
|
60
|
+
[Project.Project.typename]: {
|
|
61
|
+
'typename label': 'Project',
|
|
62
|
+
'typename label_zero': 'Projects',
|
|
63
|
+
'typename label_one': 'Project',
|
|
64
|
+
'typename label_other': 'Projects',
|
|
65
|
+
'object name placeholder': 'New project',
|
|
66
|
+
'add object label': 'Add project',
|
|
67
|
+
'rename object label': 'Rename project',
|
|
68
|
+
'delete object label': 'Delete project',
|
|
69
|
+
'object deleted label': 'Project deleted',
|
|
43
70
|
},
|
|
71
|
+
// TODO(burdon): Reconcile with react-ui-chat.
|
|
44
72
|
[meta.id]: {
|
|
45
73
|
'templates label': 'Templates',
|
|
46
74
|
'open ambient chat label': 'Open Assistant',
|
|
47
75
|
'assistant chat label': 'Assistant',
|
|
48
76
|
'plugin name': 'Assistant',
|
|
77
|
+
'settings title': 'Assistant settings',
|
|
49
78
|
'object placeholder': 'New prompt',
|
|
50
79
|
'create object label': 'Create prompt',
|
|
51
80
|
'create trigger label': 'Create trigger',
|
|
@@ -58,30 +87,58 @@ export const translations = [
|
|
|
58
87
|
'description placeholder': 'Enter description of when this template should be used',
|
|
59
88
|
'select preset template placeholder': 'Select preset',
|
|
60
89
|
'service registry label': 'Service Registry',
|
|
90
|
+
'type filter placeholder': 'Type',
|
|
91
|
+
'any type filter label': 'Any',
|
|
92
|
+
'no blueprint message': 'No active blueprints',
|
|
93
|
+
'tool call label': 'Calling tool...',
|
|
94
|
+
'tool result label': 'Success',
|
|
95
|
+
'tool error label': 'Tool call failed',
|
|
61
96
|
|
|
62
|
-
'
|
|
97
|
+
'invocations label': 'Invocations',
|
|
63
98
|
|
|
64
99
|
'assistant dialog title': 'Assistant',
|
|
65
100
|
'open assistant label': 'Open assistant',
|
|
101
|
+
'reset blueprints label': 'Reset blueprints',
|
|
66
102
|
|
|
67
|
-
'no tools': 'No tools are configured
|
|
103
|
+
'no tools': 'No tools are configured',
|
|
104
|
+
'no results': 'No results',
|
|
68
105
|
|
|
69
|
-
'button
|
|
70
|
-
'button
|
|
106
|
+
'cancel button': 'Cancel',
|
|
107
|
+
'save button': 'Save',
|
|
108
|
+
'new thread button': 'New Chat',
|
|
109
|
+
'rename thread button': 'Rename Chat',
|
|
110
|
+
'chat history label': 'Chat History',
|
|
111
|
+
'chat update name label': 'Update AI Chat name',
|
|
112
|
+
|
|
113
|
+
'toolkit label': 'Toolkit',
|
|
114
|
+
'stats label': 'Stats',
|
|
71
115
|
|
|
72
116
|
'search placeholder': 'Search...',
|
|
73
|
-
'prompt placeholder': '
|
|
74
|
-
'context objects
|
|
75
|
-
'
|
|
76
|
-
'button
|
|
77
|
-
'
|
|
78
|
-
'
|
|
117
|
+
'prompt placeholder': 'Enter question or command...',
|
|
118
|
+
'context objects button': 'Add to context',
|
|
119
|
+
'context settings button': 'Chat settings',
|
|
120
|
+
'microphone button': 'Click to speak',
|
|
121
|
+
'cancel processing button': 'Stop processing',
|
|
122
|
+
'blueprints in context title': 'Blueprints',
|
|
123
|
+
'objects in context title': 'Content',
|
|
124
|
+
'remove object in context label': 'Remove document',
|
|
125
|
+
'chat model title': 'Model',
|
|
79
126
|
|
|
80
127
|
'settings default label': 'Default',
|
|
81
128
|
'settings custom prompts label': 'Use custom prompts',
|
|
82
129
|
'settings llm provider label': 'LLM provider',
|
|
83
130
|
'settings edge llm model label': 'Remote language model',
|
|
84
131
|
'settings ollama llm model label': 'Ollama language model',
|
|
132
|
+
|
|
133
|
+
// Trigger status
|
|
134
|
+
'trigger status disabled label': 'Triggers disabled',
|
|
135
|
+
'trigger status idle label': 'Triggers idle',
|
|
136
|
+
'trigger status running label': 'Trigger running',
|
|
137
|
+
'trigger status error label': 'Trigger error',
|
|
138
|
+
'trigger runtime label': 'Trigger Runtime',
|
|
139
|
+
'trigger runtime description': 'Enable automatic trigger execution',
|
|
140
|
+
'trigger last invocation label': 'Last run',
|
|
141
|
+
'trigger duration label': 'Duration',
|
|
85
142
|
},
|
|
86
143
|
},
|
|
87
144
|
},
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { Chat as ChatModule } from '@dxos/assistant-toolkit';
|
|
8
|
+
|
|
9
|
+
import { LLM_PROVIDERS } from './defs';
|
|
10
|
+
|
|
11
|
+
// Re-export Chat schema for backward compatibility.
|
|
12
|
+
export const Chat = ChatModule.Chat;
|
|
13
|
+
export type Chat = ChatModule.Chat;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Plugin settings.
|
|
17
|
+
*/
|
|
18
|
+
export const Settings = Schema.mutable(
|
|
19
|
+
Schema.Struct({
|
|
20
|
+
llmProvider: Schema.optional(Schema.Literal(...LLM_PROVIDERS)),
|
|
21
|
+
edgeModel: Schema.optional(Schema.String),
|
|
22
|
+
ollamaModel: Schema.optional(Schema.String),
|
|
23
|
+
lmstudioModel: Schema.optional(Schema.String),
|
|
24
|
+
customPrompts: Schema.optional(Schema.Boolean),
|
|
25
|
+
}),
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
export type Settings = Schema.Schema.Type<typeof Settings>;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { Chat } from '@dxos/assistant-toolkit';
|
|
9
|
+
import { SpaceSchema } from '@dxos/client/echo';
|
|
10
|
+
import { Database, Obj } from '@dxos/echo';
|
|
11
|
+
import { Collection } from '@dxos/echo';
|
|
12
|
+
import { Operation } from '@dxos/operation';
|
|
13
|
+
|
|
14
|
+
import { meta } from '../meta';
|
|
15
|
+
|
|
16
|
+
// Operations
|
|
17
|
+
const ASSISTANT_OPERATION = `${meta.id}.operation`;
|
|
18
|
+
|
|
19
|
+
export namespace AssistantOperation {
|
|
20
|
+
export const OnCreateSpace = Operation.make({
|
|
21
|
+
meta: { key: `${ASSISTANT_OPERATION}.on-create-space`, name: 'On Create Space' },
|
|
22
|
+
services: [Capability.Service],
|
|
23
|
+
schema: {
|
|
24
|
+
input: Schema.Struct({
|
|
25
|
+
space: SpaceSchema,
|
|
26
|
+
rootCollection: Collection.Collection,
|
|
27
|
+
}),
|
|
28
|
+
output: Schema.Void,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
export const CreateChat = Operation.make({
|
|
33
|
+
meta: { key: `${ASSISTANT_OPERATION}.create-chat`, name: 'Create Chat' },
|
|
34
|
+
services: [Capability.Service],
|
|
35
|
+
schema: {
|
|
36
|
+
input: Schema.Struct({
|
|
37
|
+
db: Database.Database,
|
|
38
|
+
name: Schema.optional(Schema.String),
|
|
39
|
+
/** If false, chat is created in-memory only and not added to space. Defaults to true. */
|
|
40
|
+
addToSpace: Schema.optional(Schema.Boolean),
|
|
41
|
+
}),
|
|
42
|
+
output: Schema.Struct({
|
|
43
|
+
object: Chat.Chat,
|
|
44
|
+
}),
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const UpdateChatName = Operation.make({
|
|
49
|
+
meta: { key: `${ASSISTANT_OPERATION}.update-chat-name`, name: 'Update Chat Name' },
|
|
50
|
+
services: [Capability.Service],
|
|
51
|
+
schema: {
|
|
52
|
+
input: Schema.Struct({
|
|
53
|
+
chat: Chat.Chat,
|
|
54
|
+
}),
|
|
55
|
+
output: Schema.Void,
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
export const SetCurrentChat = Operation.make({
|
|
60
|
+
meta: { key: `${ASSISTANT_OPERATION}.set-current-chat`, name: 'Set Current Chat' },
|
|
61
|
+
services: [Capability.Service],
|
|
62
|
+
schema: {
|
|
63
|
+
input: Schema.Struct({
|
|
64
|
+
companionTo: Obj.Unknown,
|
|
65
|
+
chat: Chat.Chat.pipe(Schema.optional),
|
|
66
|
+
}),
|
|
67
|
+
output: Schema.Void,
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export const BlueprintForm = Schema.Struct({
|
|
72
|
+
key: Schema.String,
|
|
73
|
+
name: Schema.String,
|
|
74
|
+
description: Schema.optional(Schema.String),
|
|
75
|
+
});
|
|
76
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type Atom } from '@effect-atom/atom-react';
|
|
6
|
+
import * as Schema from 'effect/Schema';
|
|
7
|
+
|
|
8
|
+
import { Capability } from '@dxos/app-framework';
|
|
9
|
+
|
|
10
|
+
import { meta } from '../meta';
|
|
11
|
+
|
|
12
|
+
import { type Assistant } from './';
|
|
13
|
+
|
|
14
|
+
export namespace AssistantCapabilities {
|
|
15
|
+
export const Settings = Capability.make<Atom.Writable<Assistant.Settings>>(`${meta.id}.capability.settings`);
|
|
16
|
+
|
|
17
|
+
export const StateSchema = Schema.mutable(
|
|
18
|
+
Schema.Struct({
|
|
19
|
+
/** Map of primary object dxn to current chat dxn. */
|
|
20
|
+
currentChat: Schema.Record({ key: Schema.String, value: Schema.UndefinedOr(Schema.String) }),
|
|
21
|
+
}),
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
export type AssistantState = Schema.Schema.Type<typeof StateSchema>;
|
|
25
|
+
|
|
26
|
+
export const State = Capability.make<Atom.Writable<AssistantState>>(`${meta.id}.capability.state`);
|
|
27
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { ActivationEvent } from '@dxos/app-framework';
|
|
6
|
+
|
|
7
|
+
import { meta } from '../meta';
|
|
8
|
+
|
|
9
|
+
export namespace AssistantEvents {
|
|
10
|
+
export const SetupAiServiceProviders = ActivationEvent.make(`${meta.id}.event.setup-ai-service-providers`);
|
|
11
|
+
}
|