@dxos/plugin-assistant 0.8.4-main.2e9d522 → 0.8.4-main.3eb6e50203
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/BlueprintArticle-6SP2ZWJ2.mjs +30 -0
- package/dist/lib/browser/BlueprintArticle-6SP2ZWJ2.mjs.map +7 -0
- package/dist/lib/browser/ChatCompanion-CAKFZAWN.mjs +200 -0
- package/dist/lib/browser/ChatCompanion-CAKFZAWN.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-QB37VONJ.mjs +73 -0
- package/dist/lib/browser/ChatContainer-QB37VONJ.mjs.map +7 -0
- package/dist/lib/browser/ChatDialog-ASVBLOOS.mjs +85 -0
- package/dist/lib/browser/ChatDialog-ASVBLOOS.mjs.map +7 -0
- package/dist/lib/browser/InitiativeContainer-V522FCYH.mjs +266 -0
- package/dist/lib/browser/InitiativeContainer-V522FCYH.mjs.map +7 -0
- package/dist/lib/browser/PromptArticle-PK3CBRUB.mjs +52 -0
- package/dist/lib/browser/PromptArticle-PK3CBRUB.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-MUZGUQSC.mjs +234 -0
- package/dist/lib/browser/app-graph-builder-MUZGUQSC.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-YAGWYVCL.mjs +14 -0
- package/dist/lib/browser/blueprint-definition-YAGWYVCL.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +12 -0
- package/dist/lib/browser/blueprints/index.mjs.map +7 -0
- package/dist/lib/browser/chunk-3ETBCBMH.mjs +47 -0
- package/dist/lib/browser/chunk-3ETBCBMH.mjs.map +7 -0
- package/dist/lib/browser/chunk-6BVCG5SJ.mjs +230 -0
- package/dist/lib/browser/chunk-6BVCG5SJ.mjs.map +7 -0
- package/dist/lib/browser/chunk-DKQMSMBN.mjs +326 -0
- package/dist/lib/browser/chunk-DKQMSMBN.mjs.map +7 -0
- package/dist/lib/browser/chunk-EXVT7D4B.mjs +23 -0
- package/dist/lib/browser/chunk-EXVT7D4B.mjs.map +7 -0
- package/dist/lib/browser/chunk-IJYAKPEU.mjs +286 -0
- package/dist/lib/browser/chunk-IJYAKPEU.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-JA7PUZC7.mjs +1974 -0
- package/dist/lib/browser/chunk-JA7PUZC7.mjs.map +7 -0
- package/dist/lib/browser/chunk-POPBT2AQ.mjs +198 -0
- package/dist/lib/browser/chunk-POPBT2AQ.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 +310 -156
- 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-2673CFJS.mjs +133 -0
- package/dist/lib/browser/operation-resolver-2673CFJS.mjs.map +7 -0
- package/dist/lib/browser/react-surface-T3FN4GVP.mjs +125 -0
- package/dist/lib/browser/react-surface-T3FN4GVP.mjs.map +7 -0
- package/dist/lib/browser/repair-IRXDYF4R.mjs +51 -0
- package/dist/lib/browser/repair-IRXDYF4R.mjs.map +7 -0
- package/dist/lib/browser/settings-XF6GKHCG.mjs +33 -0
- package/dist/lib/browser/settings-XF6GKHCG.mjs.map +7 -0
- package/dist/lib/browser/state-OYDPWLKA.mjs +26 -0
- package/dist/lib/browser/state-OYDPWLKA.mjs.map +7 -0
- package/dist/lib/browser/toolkit-IDXQCSTX.mjs +19 -0
- package/dist/lib/browser/toolkit-IDXQCSTX.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +11 -4
- package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs +31 -0
- package/dist/lib/node-esm/BlueprintArticle-7LI6UXKZ.mjs.map +7 -0
- package/dist/lib/node-esm/ChatCompanion-W4PGOCGR.mjs +201 -0
- package/dist/lib/node-esm/ChatCompanion-W4PGOCGR.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-ECFQVH6O.mjs +74 -0
- package/dist/lib/node-esm/ChatContainer-ECFQVH6O.mjs.map +7 -0
- package/dist/lib/node-esm/ChatDialog-AFLPYSIU.mjs +86 -0
- package/dist/lib/node-esm/ChatDialog-AFLPYSIU.mjs.map +7 -0
- package/dist/lib/node-esm/InitiativeContainer-U4LGO3BW.mjs +267 -0
- package/dist/lib/node-esm/InitiativeContainer-U4LGO3BW.mjs.map +7 -0
- package/dist/lib/node-esm/PromptArticle-BHPABYLT.mjs +53 -0
- package/dist/lib/node-esm/PromptArticle-BHPABYLT.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-4QN5M6PD.mjs +235 -0
- package/dist/lib/node-esm/app-graph-builder-4QN5M6PD.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-H3LFAEK2.mjs +15 -0
- package/dist/lib/node-esm/blueprint-definition-H3LFAEK2.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +13 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2LEN26ZQ.mjs +48 -0
- package/dist/lib/node-esm/chunk-2LEN26ZQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-3XC7LQSO.mjs +1975 -0
- package/dist/lib/node-esm/chunk-3XC7LQSO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-75PHXBN3.mjs +327 -0
- package/dist/lib/node-esm/chunk-75PHXBN3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-F6LA7XNS.mjs +199 -0
- package/dist/lib/node-esm/chunk-F6LA7XNS.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-LB72WG6R.mjs +231 -0
- package/dist/lib/node-esm/chunk-LB72WG6R.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-MJD5XWQV.mjs +288 -0
- package/dist/lib/node-esm/chunk-MJD5XWQV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-POWB2BPC.mjs +25 -0
- package/dist/lib/node-esm/chunk-POWB2BPC.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 +310 -156
- 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-2ZD2DXOU.mjs +134 -0
- package/dist/lib/node-esm/operation-resolver-2ZD2DXOU.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-T4VMCCKZ.mjs +126 -0
- package/dist/lib/node-esm/react-surface-T4VMCCKZ.mjs.map +7 -0
- package/dist/lib/node-esm/repair-DMI55PON.mjs +52 -0
- package/dist/lib/node-esm/repair-DMI55PON.mjs.map +7 -0
- package/dist/lib/node-esm/settings-NGGZA7S7.mjs +34 -0
- package/dist/lib/node-esm/settings-NGGZA7S7.mjs.map +7 -0
- package/dist/lib/node-esm/state-VSCPGN7R.mjs +27 -0
- package/dist/lib/node-esm/state-VSCPGN7R.mjs.map +7 -0
- package/dist/lib/node-esm/toolkit-JPRJRDDB.mjs +20 -0
- package/dist/lib/node-esm/toolkit-JPRJRDDB.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 +11 -0
- package/dist/types/src/blueprints/assistant-blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +7 -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 +26 -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 +4 -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 +11 -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/repair/index.d.ts +3 -0
- package/dist/types/src/capabilities/repair/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/repair/repair.d.ts +6 -0
- package/dist/types/src/capabilities/repair/repair.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/AssistantSettings/AssistantSettings.d.ts +4 -2
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
- package/dist/types/src/components/BlueprintArticle.d.ts +7 -0
- package/dist/types/src/components/BlueprintArticle.d.ts.map +1 -0
- package/dist/types/src/components/Chat/Chat.d.ts +37 -21
- 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/ChatCompanion.d.ts +13 -0
- package/dist/types/src/components/ChatCompanion.d.ts.map +1 -0
- package/dist/types/src/components/ChatContainer.d.ts +16 -8
- package/dist/types/src/components/ChatContainer.d.ts.map +1 -1
- package/dist/types/src/components/ChatDialog.d.ts +2 -2
- package/dist/types/src/components/ChatDialog.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 +285 -71
- 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/InitiativeContainer.d.ts +9 -0
- package/dist/types/src/components/InitiativeContainer.d.ts.map +1 -0
- package/dist/types/src/components/PromptArticle.d.ts +7 -0
- package/dist/types/src/components/PromptArticle.d.ts.map +1 -0
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +3 -6
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +431 -7
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +13 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +428 -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 +9 -15
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +432 -5
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts.map +1 -1
- package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts +4 -0
- package/dist/types/src/components/TriggerStatus/TriggerStatus.d.ts.map +1 -0
- package/dist/types/src/components/TriggerStatus/index.d.ts +2 -0
- package/dist/types/src/components/TriggerStatus/index.d.ts.map +1 -0
- 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 +10 -7
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +4 -0
- package/dist/types/src/functions/index.d.ts.map +1 -0
- package/dist/types/src/functions/object-list.d.ts +10 -0
- package/dist/types/src/functions/object-list.d.ts.map +1 -0
- package/dist/types/src/functions/object-load.d.ts +8 -0
- package/dist/types/src/functions/object-load.d.ts.map +1 -0
- package/dist/types/src/functions/object-search.d.ts +10 -0
- package/dist/types/src/functions/object-search.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 +2 -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 +376 -37
- 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 +97 -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 +125 -96
- package/src/AssistantPlugin.tsx +159 -88
- package/src/blueprints/assistant-blueprint.ts +57 -0
- package/src/blueprints/index.ts +12 -0
- 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 +200 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +74 -0
- package/src/capabilities/blueprint-definition/index.ts +8 -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 +11 -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 +112 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +111 -0
- package/src/capabilities/repair/index.ts +7 -0
- package/src/capabilities/repair/repair.ts +62 -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 +27 -0
- package/src/components/AssistantSettings/AssistantSettings.tsx +92 -77
- package/src/components/BlueprintArticle.tsx +28 -0
- package/src/components/Chat/Chat.tsx +267 -197
- package/src/components/Chat/events.ts +14 -1
- package/src/components/ChatCompanion.tsx +226 -0
- package/src/components/ChatContainer.tsx +56 -33
- package/src/components/ChatDialog.tsx +30 -19
- package/src/components/ChatProgress/ChatProgress.tsx +53 -0
- package/src/components/{SequenceEditor → ChatProgress}/index.ts +1 -1
- package/src/components/ChatPrompt/ChatActions.tsx +19 -27
- package/src/components/ChatPrompt/ChatOptions.tsx +238 -0
- package/src/components/ChatPrompt/ChatPresets.tsx +1 -0
- package/src/components/ChatPrompt/ChatReferences.tsx +32 -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 +174 -0
- package/src/components/ChatThread/sync.test.ts +97 -0
- package/src/components/ChatThread/sync.ts +154 -0
- package/src/components/ChatThread/testing/thread.md +37 -0
- package/src/components/InitiativeContainer.tsx +340 -0
- package/src/components/PromptArticle.tsx +49 -0
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +40 -19
- package/src/components/TemplateEditor/TemplateEditor.tsx +33 -52
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +30 -17
- package/src/components/TemplateEditor/TemplateForm.tsx +82 -32
- 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 +18 -28
- package/src/components/Toolbox/Toolbox.tsx +70 -102
- package/src/components/TriggerStatus/TriggerStatus.tsx +142 -0
- package/src/components/TriggerStatus/index.ts +5 -0
- package/src/components/Typewriter/AssistantToolbar.tsx +161 -0
- package/src/components/Typewriter/Typewriter.stories.tsx +83 -0
- package/src/components/Typewriter/Typewriter.tsx +54 -0
- package/src/components/Typewriter/assistant-extension.tsx +144 -0
- package/src/components/Typewriter/index.ts +5 -0
- package/src/components/index.ts +14 -9
- package/src/functions/index.ts +7 -0
- package/src/functions/object-list.ts +49 -0
- package/src/functions/object-load.ts +44 -0
- package/src/functions/object-search.ts +46 -0
- package/src/hooks/index.ts +8 -4
- package/src/hooks/useBlueprintRegistry.ts +105 -0
- package/src/hooks/useChatProcessor.ts +40 -105
- package/src/hooks/useChatServices.ts +31 -75
- 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 +15 -12
- package/src/index.ts +2 -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 +72 -0
- package/src/processor/processor.ts +301 -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 +2 -27
- package/src/testing/test-services.ts +10 -14
- package/src/translations.ts +71 -28
- 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 +25 -14
- package/src/vite-env.d.ts +30 -0
- package/dist/lib/browser/ChatContainer-M3IHQLRS.mjs +0 -54
- package/dist/lib/browser/ChatContainer-M3IHQLRS.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-X6VN6QZI.mjs +0 -72
- package/dist/lib/browser/ChatDialog-X6VN6QZI.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/TemplateContainer-RPJ2LBOB.mjs +0 -27
- package/dist/lib/browser/TemplateContainer-RPJ2LBOB.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-JTXBKE7O.mjs +0 -223
- package/dist/lib/browser/app-graph-builder-JTXBKE7O.mjs.map +0 -7
- package/dist/lib/browser/chunk-AEAEKWOC.mjs +0 -98
- package/dist/lib/browser/chunk-AEAEKWOC.mjs.map +0 -7
- package/dist/lib/browser/chunk-EQDW6BYQ.mjs +0 -108
- package/dist/lib/browser/chunk-EQDW6BYQ.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-JQBVLTM5.mjs +0 -158
- package/dist/lib/browser/chunk-JQBVLTM5.mjs.map +0 -7
- package/dist/lib/browser/chunk-OWY4CUQY.mjs +0 -2245
- package/dist/lib/browser/chunk-OWY4CUQY.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-5RMMCMXG.mjs +0 -60
- package/dist/lib/browser/intent-resolver-5RMMCMXG.mjs.map +0 -7
- package/dist/lib/browser/react-surface-66VY37YQ.mjs +0 -150
- package/dist/lib/browser/react-surface-66VY37YQ.mjs.map +0 -7
- package/dist/lib/browser/settings-2DGP3UTS.mjs +0 -22
- package/dist/lib/browser/settings-2DGP3UTS.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-VZT74PO2.mjs +0 -55
- package/dist/lib/node-esm/ChatContainer-VZT74PO2.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-RJ6FDX4Q.mjs +0 -73
- package/dist/lib/node-esm/ChatDialog-RJ6FDX4Q.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/TemplateContainer-A3NAQCZE.mjs +0 -28
- package/dist/lib/node-esm/TemplateContainer-A3NAQCZE.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-OWSOXFTD.mjs +0 -224
- package/dist/lib/node-esm/app-graph-builder-OWSOXFTD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-2XL6MNPE.mjs +0 -99
- package/dist/lib/node-esm/chunk-2XL6MNPE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BISJDTBK.mjs +0 -159
- package/dist/lib/node-esm/chunk-BISJDTBK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-E33DNNDW.mjs +0 -109
- package/dist/lib/node-esm/chunk-E33DNNDW.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-SENTQAEO.mjs +0 -2246
- package/dist/lib/node-esm/chunk-SENTQAEO.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-YPPYELY3.mjs +0 -61
- package/dist/lib/node-esm/intent-resolver-YPPYELY3.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-RJMRBR2M.mjs +0 -151
- package/dist/lib/node-esm/react-surface-RJMRBR2M.mjs.map +0 -7
- package/dist/lib/node-esm/settings-47RYZOU4.mjs +0 -23
- package/dist/lib/node-esm/settings-47RYZOU4.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/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/components/TemplateContainer.d.ts +0 -8
- package/dist/types/src/components/TemplateContainer.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 -249
- 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 -88
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/src/capabilities/app-graph-builder.ts +0 -253
- package/src/capabilities/intent-resolver.ts +0 -58
- package/src/capabilities/react-surface.tsx +0 -138
- package/src/capabilities/settings.ts +0 -19
- 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/components/TemplateContainer.tsx +0 -24
- 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 -378
- 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 -95
- package/src/typings.d.ts +0 -9
package/src/queue-logger.ts
CHANGED
|
@@ -2,17 +2,13 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { type Queue, Ref, type Space, getSpace } from '@dxos/client/echo';
|
|
6
6
|
import { type Sequence, type SequenceEvent, type SequenceLogger } from '@dxos/conductor';
|
|
7
7
|
import { DXN, Key, Obj } from '@dxos/echo';
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
InvocationTraceStartEvent,
|
|
13
|
-
TraceEvent,
|
|
14
|
-
type InvocationTraceEvent,
|
|
15
|
-
} from '@dxos/functions';
|
|
8
|
+
import { InvocationTraceEndEvent, InvocationTraceEventType, InvocationTraceStartEvent } from '@dxos/functions-runtime';
|
|
9
|
+
import { TraceEvent } from '@dxos/functions-runtime';
|
|
10
|
+
import { InvocationOutcome } from '@dxos/functions-runtime';
|
|
11
|
+
import { type InvocationTraceEvent } from '@dxos/functions-runtime';
|
|
16
12
|
import { invariant } from '@dxos/invariant';
|
|
17
13
|
import { QueueSubspaceTags } from '@dxos/keys';
|
|
18
14
|
|
|
@@ -27,7 +23,10 @@ export class QueueLogger implements SequenceLogger {
|
|
|
27
23
|
let dxn = this._space.properties.invocationTraceQueue?.dxn;
|
|
28
24
|
if (!dxn) {
|
|
29
25
|
dxn = DXN.fromQueue(QueueSubspaceTags.TRACE, this._space.id, Key.ObjectId.random());
|
|
30
|
-
|
|
26
|
+
const newDxn = dxn;
|
|
27
|
+
Obj.change(this._space.properties, (p) => {
|
|
28
|
+
p.invocationTraceQueue = Ref.fromDXN(newDxn);
|
|
29
|
+
});
|
|
31
30
|
}
|
|
32
31
|
this._invocationTraceQueue = this._space.queues.get(dxn);
|
|
33
32
|
}
|
|
@@ -39,7 +38,7 @@ export class QueueLogger implements SequenceLogger {
|
|
|
39
38
|
Obj.make(InvocationTraceStartEvent, {
|
|
40
39
|
type: InvocationTraceEventType.START,
|
|
41
40
|
invocationId: event.invocationId,
|
|
42
|
-
|
|
41
|
+
timestamp: Date.now(),
|
|
43
42
|
input: {},
|
|
44
43
|
invocationTraceQueue: Ref.fromDXN(this._getTraceQueueDxn(event.invocationId)),
|
|
45
44
|
invocationTarget: Ref.make(this.sequence),
|
|
@@ -51,7 +50,7 @@ export class QueueLogger implements SequenceLogger {
|
|
|
51
50
|
Obj.make(InvocationTraceEndEvent, {
|
|
52
51
|
type: InvocationTraceEventType.END,
|
|
53
52
|
invocationId: event.invocationId,
|
|
54
|
-
|
|
53
|
+
timestamp: Date.now(),
|
|
55
54
|
outcome: InvocationOutcome.SUCCESS,
|
|
56
55
|
}),
|
|
57
56
|
]);
|
|
@@ -62,10 +61,10 @@ export class QueueLogger implements SequenceLogger {
|
|
|
62
61
|
Obj.make(TraceEvent, {
|
|
63
62
|
outcome: event.type,
|
|
64
63
|
truncated: false,
|
|
65
|
-
|
|
64
|
+
ingestionTimestamp: Date.now(),
|
|
66
65
|
logs: [
|
|
67
66
|
{
|
|
68
|
-
|
|
67
|
+
timestamp: Date.now(),
|
|
69
68
|
level: 'info',
|
|
70
69
|
message: event.type,
|
|
71
70
|
context: { step: event.step },
|
|
@@ -80,10 +79,10 @@ export class QueueLogger implements SequenceLogger {
|
|
|
80
79
|
Obj.make(TraceEvent, {
|
|
81
80
|
outcome: event.type,
|
|
82
81
|
truncated: false,
|
|
83
|
-
|
|
82
|
+
ingestionTimestamp: Date.now(),
|
|
84
83
|
logs: [
|
|
85
84
|
{
|
|
86
|
-
|
|
85
|
+
timestamp: Date.now(),
|
|
87
86
|
level: 'info',
|
|
88
87
|
message: event.type,
|
|
89
88
|
context: { message: event.message },
|
|
@@ -98,10 +97,10 @@ export class QueueLogger implements SequenceLogger {
|
|
|
98
97
|
Obj.make(TraceEvent, {
|
|
99
98
|
outcome: event.type,
|
|
100
99
|
truncated: false,
|
|
101
|
-
|
|
100
|
+
ingestionTimestamp: Date.now(),
|
|
102
101
|
logs: [
|
|
103
102
|
{
|
|
104
|
-
|
|
103
|
+
timestamp: Date.now(),
|
|
105
104
|
level: 'info',
|
|
106
105
|
message: event.type,
|
|
107
106
|
context: { block: event.block },
|
package/src/testing/index.ts
CHANGED
|
@@ -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,33 +2,8 @@
|
|
|
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: [
|
|
@@ -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.Obj.Any;
|
|
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, Initiative } 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': {
|
|
@@ -21,15 +23,17 @@ export const translations = [
|
|
|
21
23
|
'object name placeholder': 'New blueprint',
|
|
22
24
|
'rename object label': 'Rename blueprint',
|
|
23
25
|
'delete object label': 'Delete blueprint',
|
|
26
|
+
'object deleted label': 'Blueprint deleted',
|
|
24
27
|
},
|
|
25
|
-
[
|
|
26
|
-
'typename label': '
|
|
27
|
-
'typename label_zero': '
|
|
28
|
-
'typename label_one': '
|
|
29
|
-
'typename label_other': '
|
|
30
|
-
'object name placeholder': 'New
|
|
31
|
-
'rename object label': 'Rename
|
|
32
|
-
'delete object label': 'Delete
|
|
28
|
+
[Type.getTypename(Prompt.Prompt)]: {
|
|
29
|
+
'typename label': 'Prompt',
|
|
30
|
+
'typename label_zero': 'Prompts',
|
|
31
|
+
'typename label_one': 'Prompt',
|
|
32
|
+
'typename label_other': 'Prompts',
|
|
33
|
+
'object name placeholder': 'New prompt',
|
|
34
|
+
'rename object label': 'Rename prompt',
|
|
35
|
+
'delete object label': 'Delete prompt',
|
|
36
|
+
'object deleted label': 'Prompt deleted',
|
|
33
37
|
},
|
|
34
38
|
// TODO(burdon): From conductor.
|
|
35
39
|
[Sequence.typename]: {
|
|
@@ -40,21 +44,32 @@ export const translations = [
|
|
|
40
44
|
'object name placeholder': 'New sequence',
|
|
41
45
|
'rename object label': 'Rename sequence',
|
|
42
46
|
'delete object label': 'Delete sequence',
|
|
47
|
+
'object deleted label': 'Sequence deleted',
|
|
43
48
|
},
|
|
44
|
-
[
|
|
45
|
-
'typename label': '
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'object
|
|
50
|
-
'rename object label': 'Rename assistant',
|
|
51
|
-
'delete object label': 'Delete assistant',
|
|
49
|
+
[Chat.Chat.typename]: {
|
|
50
|
+
'typename label': 'AI Chat',
|
|
51
|
+
'object name placeholder': 'New AI Chat',
|
|
52
|
+
'rename object label': 'Rename AI Chat',
|
|
53
|
+
'delete object label': 'Delete AI Chat',
|
|
54
|
+
'object deleted label': 'AI Chat deleted',
|
|
52
55
|
},
|
|
56
|
+
[Initiative.Initiative.typename]: {
|
|
57
|
+
'typename label': 'Initiative',
|
|
58
|
+
'typename label_zero': 'Initiatives',
|
|
59
|
+
'typename label_one': 'Initiative',
|
|
60
|
+
'typename label_other': 'Initiatives',
|
|
61
|
+
'object name placeholder': 'New initiative',
|
|
62
|
+
'rename object label': 'Rename initiative',
|
|
63
|
+
'delete object label': 'Delete initiative',
|
|
64
|
+
'object deleted label': 'Initiative deleted',
|
|
65
|
+
},
|
|
66
|
+
// TODO(burdon): Reconcile with react-ui-chat.
|
|
53
67
|
[meta.id]: {
|
|
54
68
|
'templates label': 'Templates',
|
|
55
69
|
'open ambient chat label': 'Open Assistant',
|
|
56
70
|
'assistant chat label': 'Assistant',
|
|
57
71
|
'plugin name': 'Assistant',
|
|
72
|
+
'settings title': 'Assistant settings',
|
|
58
73
|
'object placeholder': 'New prompt',
|
|
59
74
|
'create object label': 'Create prompt',
|
|
60
75
|
'create trigger label': 'Create trigger',
|
|
@@ -67,30 +82,58 @@ export const translations = [
|
|
|
67
82
|
'description placeholder': 'Enter description of when this template should be used',
|
|
68
83
|
'select preset template placeholder': 'Select preset',
|
|
69
84
|
'service registry label': 'Service Registry',
|
|
85
|
+
'type filter placeholder': 'Type',
|
|
86
|
+
'any type filter label': 'Any',
|
|
87
|
+
'no blueprint message': 'No active blueprints',
|
|
88
|
+
'tool call label': 'Calling tool...',
|
|
89
|
+
'tool result label': 'Success',
|
|
90
|
+
'tool error label': 'Tool call failed',
|
|
70
91
|
|
|
71
|
-
'
|
|
92
|
+
'invocations label': 'Invocations',
|
|
72
93
|
|
|
73
94
|
'assistant dialog title': 'Assistant',
|
|
74
95
|
'open assistant label': 'Open assistant',
|
|
96
|
+
'reset blueprints label': 'Reset blueprints',
|
|
97
|
+
|
|
98
|
+
'no tools': 'No tools are configured',
|
|
99
|
+
'no results': 'No results',
|
|
75
100
|
|
|
76
|
-
'
|
|
101
|
+
'cancel button': 'Cancel',
|
|
102
|
+
'save button': 'Save',
|
|
103
|
+
'new thread button': 'New Chat',
|
|
104
|
+
'rename thread button': 'Rename Chat',
|
|
105
|
+
'chat history label': 'Chat History',
|
|
106
|
+
'chat update name label': 'Update AI Chat name',
|
|
77
107
|
|
|
78
|
-
'
|
|
79
|
-
'
|
|
108
|
+
'toolkit label': 'Toolkit',
|
|
109
|
+
'summary label': 'Summary',
|
|
80
110
|
|
|
81
111
|
'search placeholder': 'Search...',
|
|
82
|
-
'prompt placeholder': '
|
|
83
|
-
'context objects
|
|
84
|
-
'
|
|
85
|
-
'button
|
|
86
|
-
'
|
|
87
|
-
'
|
|
112
|
+
'prompt placeholder': 'Enter question or command...',
|
|
113
|
+
'context objects button': 'Add to context',
|
|
114
|
+
'context settings button': 'Chat settings',
|
|
115
|
+
'microphone button': 'Click to speak',
|
|
116
|
+
'cancel processing button': 'Stop processing',
|
|
117
|
+
'blueprints in context title': 'Blueprints',
|
|
118
|
+
'objects in context title': 'Content',
|
|
119
|
+
'remove object in context label': 'Remove document',
|
|
120
|
+
'chat model title': 'Model',
|
|
88
121
|
|
|
89
122
|
'settings default label': 'Default',
|
|
90
123
|
'settings custom prompts label': 'Use custom prompts',
|
|
91
124
|
'settings llm provider label': 'LLM provider',
|
|
92
125
|
'settings edge llm model label': 'Remote language model',
|
|
93
126
|
'settings ollama llm model label': 'Ollama language model',
|
|
127
|
+
|
|
128
|
+
// Trigger status
|
|
129
|
+
'trigger status disabled label': 'Triggers disabled',
|
|
130
|
+
'trigger status idle label': 'Triggers idle',
|
|
131
|
+
'trigger status running label': 'Trigger running',
|
|
132
|
+
'trigger status error label': 'Trigger error',
|
|
133
|
+
'trigger runtime label': 'Trigger Runtime',
|
|
134
|
+
'trigger runtime description': 'Enable automatic trigger execution',
|
|
135
|
+
'trigger last invocation label': 'Last run',
|
|
136
|
+
'trigger duration label': 'Duration',
|
|
94
137
|
},
|
|
95
138
|
},
|
|
96
139
|
},
|
|
@@ -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>;
|