@dxos/plugin-assistant 0.8.4-main.72ec0f3 → 0.8.4-main.7996785055
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-SDYAAIS2.mjs +93 -0
- package/dist/lib/browser/AssistantSettings-SDYAAIS2.mjs.map +7 -0
- package/dist/lib/browser/BlueprintArticle-O7IDKYXB.mjs +37 -0
- package/dist/lib/browser/BlueprintArticle-O7IDKYXB.mjs.map +7 -0
- package/dist/lib/browser/ChatCompanion-QDT435XP.mjs +206 -0
- package/dist/lib/browser/ChatCompanion-QDT435XP.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-6IA3SIYM.mjs +14 -0
- package/dist/lib/browser/ChatDialog-TNC4CHJE.mjs +86 -0
- package/dist/lib/browser/ChatDialog-TNC4CHJE.mjs.map +7 -0
- package/dist/lib/browser/ProjectArticle-FJJFE4LS.mjs +97 -0
- package/dist/lib/browser/ProjectArticle-FJJFE4LS.mjs.map +7 -0
- package/dist/lib/browser/ProjectSettings-DDYTUL25.mjs +117 -0
- package/dist/lib/browser/ProjectSettings-DDYTUL25.mjs.map +7 -0
- package/dist/lib/browser/PromptArticle-NA7IJYBW.mjs +73 -0
- package/dist/lib/browser/PromptArticle-NA7IJYBW.mjs.map +7 -0
- package/dist/lib/browser/PromptList-LS4ZIZJP.mjs +55 -0
- package/dist/lib/browser/PromptList-LS4ZIZJP.mjs.map +7 -0
- package/dist/lib/browser/TracePanel-YPDUZKH5.mjs +407 -0
- package/dist/lib/browser/TracePanel-YPDUZKH5.mjs.map +7 -0
- package/dist/lib/browser/TriggerStatus-YVPE6X6O.mjs +105 -0
- package/dist/lib/browser/TriggerStatus-YVPE6X6O.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-LATYLZE6.mjs +255 -0
- package/dist/lib/browser/app-graph-builder-LATYLZE6.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-IFOVIZSP.mjs +39 -0
- package/dist/lib/browser/blueprint-definition-IFOVIZSP.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +11 -0
- package/dist/lib/browser/{chunk-WBG5PTSX.mjs → chunk-2VIEX4RA.mjs} +3 -3
- package/dist/lib/browser/chunk-2VIEX4RA.mjs.map +7 -0
- package/dist/lib/browser/chunk-5B7RDLFZ.mjs +8 -0
- package/dist/lib/browser/chunk-5B7RDLFZ.mjs.map +7 -0
- package/dist/lib/browser/chunk-HE6DIUYX.mjs +149 -0
- package/dist/lib/browser/chunk-HE6DIUYX.mjs.map +7 -0
- package/dist/lib/browser/chunk-ITKPUTIW.mjs +103 -0
- package/dist/lib/browser/chunk-ITKPUTIW.mjs.map +7 -0
- package/dist/lib/browser/chunk-L6R55X33.mjs +155 -0
- package/dist/lib/browser/chunk-L6R55X33.mjs.map +7 -0
- package/dist/lib/browser/chunk-RI3GWI6T.mjs +2135 -0
- package/dist/lib/browser/chunk-RI3GWI6T.mjs.map +7 -0
- package/dist/lib/browser/{chunk-2BOE3OTW.mjs → chunk-RTUG64Q4.mjs} +99 -47
- package/dist/lib/browser/chunk-RTUG64Q4.mjs.map +7 -0
- package/dist/lib/browser/chunk-YFCVKIRQ.mjs +33 -0
- package/dist/lib/browser/chunk-YFCVKIRQ.mjs.map +7 -0
- package/dist/lib/browser/create-chat-ZYARKO3O.mjs +81 -0
- package/dist/lib/browser/create-chat-ZYARKO3O.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 +263 -210
- 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/markdown-EKDPL7HL.mjs +114 -0
- package/dist/lib/browser/markdown-EKDPL7HL.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/on-create-space-QBTI5UPD.mjs +23 -0
- package/dist/lib/browser/on-create-space-QBTI5UPD.mjs.map +7 -0
- package/dist/lib/browser/operation-handler-V3LRD63Z.mjs +17 -0
- package/dist/lib/browser/operation-handler-V3LRD63Z.mjs.map +7 -0
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/react-surface-RLHFSOO7.mjs +172 -0
- package/dist/lib/browser/react-surface-RLHFSOO7.mjs.map +7 -0
- package/dist/lib/browser/resolve-navigation-targets-7Z37XH6T.mjs +23 -0
- package/dist/lib/browser/resolve-navigation-targets-7Z37XH6T.mjs.map +7 -0
- package/dist/lib/browser/run-prompt-in-new-chat-BTTYZUFT.mjs +112 -0
- package/dist/lib/browser/run-prompt-in-new-chat-BTTYZUFT.mjs.map +7 -0
- package/dist/lib/browser/set-current-chat-KWOC5WYV.mjs +30 -0
- package/dist/lib/browser/set-current-chat-KWOC5WYV.mjs.map +7 -0
- package/dist/lib/browser/settings-2KRFM5GU.mjs +33 -0
- package/dist/lib/browser/settings-2KRFM5GU.mjs.map +7 -0
- package/dist/lib/browser/state-4UTSI3FD.mjs +27 -0
- package/dist/lib/browser/state-4UTSI3FD.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 +6 -4
- package/dist/lib/browser/update-chat-name-5FJSXO7O.mjs +36 -0
- package/dist/lib/browser/update-chat-name-5FJSXO7O.mjs.map +7 -0
- package/dist/lib/node-esm/AssistantSettings-APDXNTQQ.mjs +94 -0
- package/dist/lib/node-esm/AssistantSettings-APDXNTQQ.mjs.map +7 -0
- package/dist/lib/node-esm/BlueprintArticle-AV6BYHMQ.mjs +38 -0
- package/dist/lib/node-esm/BlueprintArticle-AV6BYHMQ.mjs.map +7 -0
- package/dist/lib/node-esm/ChatCompanion-NY7VUCQP.mjs +207 -0
- package/dist/lib/node-esm/ChatCompanion-NY7VUCQP.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-OERYLF4C.mjs +15 -0
- package/dist/lib/node-esm/ChatContainer-OERYLF4C.mjs.map +7 -0
- package/dist/lib/node-esm/ChatDialog-3HRJNIAC.mjs +87 -0
- package/dist/lib/node-esm/ChatDialog-3HRJNIAC.mjs.map +7 -0
- package/dist/lib/node-esm/ProjectArticle-5OD6RNVS.mjs +98 -0
- package/dist/lib/node-esm/ProjectArticle-5OD6RNVS.mjs.map +7 -0
- package/dist/lib/node-esm/ProjectSettings-JQLRY6AS.mjs +118 -0
- package/dist/lib/node-esm/ProjectSettings-JQLRY6AS.mjs.map +7 -0
- package/dist/lib/node-esm/PromptArticle-OIWAJL46.mjs +74 -0
- package/dist/lib/node-esm/PromptArticle-OIWAJL46.mjs.map +7 -0
- package/dist/lib/node-esm/PromptList-HDPYYB2R.mjs +56 -0
- package/dist/lib/node-esm/PromptList-HDPYYB2R.mjs.map +7 -0
- package/dist/lib/node-esm/TracePanel-CZ34U6TD.mjs +408 -0
- package/dist/lib/node-esm/TracePanel-CZ34U6TD.mjs.map +7 -0
- package/dist/lib/node-esm/TriggerStatus-4TPPGPPG.mjs +106 -0
- package/dist/lib/node-esm/TriggerStatus-4TPPGPPG.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-7NW24QOO.mjs +256 -0
- package/dist/lib/node-esm/app-graph-builder-7NW24QOO.mjs.map +7 -0
- package/dist/lib/node-esm/blueprint-definition-SXKMCYS3.mjs +40 -0
- package/dist/lib/node-esm/blueprint-definition-SXKMCYS3.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +12 -0
- package/dist/lib/node-esm/blueprints/index.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-AH2IGRRQ.mjs +34 -0
- package/dist/lib/node-esm/chunk-AH2IGRRQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JXAI2DNW.mjs +104 -0
- package/dist/lib/node-esm/chunk-JXAI2DNW.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-KHQM4BYS.mjs +10 -0
- package/dist/lib/node-esm/chunk-KHQM4BYS.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-KPVPDVSY.mjs +2136 -0
- package/dist/lib/node-esm/chunk-KPVPDVSY.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PPNS6AW4.mjs +156 -0
- package/dist/lib/node-esm/chunk-PPNS6AW4.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-3Q22TTXW.mjs → chunk-SG27NPDT.mjs} +99 -47
- package/dist/lib/node-esm/chunk-SG27NPDT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-WE6KTH72.mjs → chunk-TEYTGR67.mjs} +3 -3
- package/dist/lib/node-esm/chunk-TEYTGR67.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-YQJNIYQB.mjs +150 -0
- package/dist/lib/node-esm/chunk-YQJNIYQB.mjs.map +7 -0
- package/dist/lib/node-esm/create-chat-DBZLK27V.mjs +82 -0
- package/dist/lib/node-esm/create-chat-DBZLK27V.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 +263 -210
- 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/markdown-RO7WIR76.mjs +115 -0
- package/dist/lib/node-esm/markdown-RO7WIR76.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/on-create-space-7RZULGPS.mjs +24 -0
- package/dist/lib/node-esm/on-create-space-7RZULGPS.mjs.map +7 -0
- package/dist/lib/node-esm/operation-handler-JKMSHWQF.mjs +18 -0
- package/dist/lib/node-esm/operation-handler-JKMSHWQF.mjs.map +7 -0
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/react-surface-NDT545FO.mjs +173 -0
- package/dist/lib/node-esm/react-surface-NDT545FO.mjs.map +7 -0
- package/dist/lib/node-esm/resolve-navigation-targets-XFZJ2A5H.mjs +24 -0
- package/dist/lib/node-esm/resolve-navigation-targets-XFZJ2A5H.mjs.map +7 -0
- package/dist/lib/node-esm/run-prompt-in-new-chat-MKDE3P3E.mjs +113 -0
- package/dist/lib/node-esm/run-prompt-in-new-chat-MKDE3P3E.mjs.map +7 -0
- package/dist/lib/node-esm/set-current-chat-G3UMPQAB.mjs +31 -0
- package/dist/lib/node-esm/set-current-chat-G3UMPQAB.mjs.map +7 -0
- package/dist/lib/node-esm/settings-I4NYOU5C.mjs +34 -0
- package/dist/lib/node-esm/settings-I4NYOU5C.mjs.map +7 -0
- package/dist/lib/node-esm/state-GOZALHOZ.mjs +28 -0
- package/dist/lib/node-esm/state-GOZALHOZ.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 +6 -4
- package/dist/lib/node-esm/update-chat-name-TJ3AG762.mjs +37 -0
- package/dist/lib/node-esm/update-chat-name-TJ3AG762.mjs.map +7 -0
- package/dist/types/src/AssistantPlugin.d.ts +2 -1
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/assistant/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/assistant/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/assistant/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/assistant/index.d.ts +2 -0
- package/dist/types/src/blueprints/assistant/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager.test.d.ts +2 -0
- package/dist/types/src/blueprints/blueprint-manager.test.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 +5 -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 +5 -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 -11
- 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/markdown/index.d.ts +3 -0
- package/dist/types/src/capabilities/markdown/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts +5 -0
- package/dist/types/src/capabilities/markdown/markdown.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts +4 -0
- package/dist/types/src/capabilities/operation-handler/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler/operation-handler.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 +17 -0
- package/dist/types/src/capabilities/state/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/state/state.d.ts +19 -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 +27 -18
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/events.d.ts +1 -1
- package/dist/types/src/components/Chat/events.d.ts.map +1 -1
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts +6 -3
- package/dist/types/src/components/ChatProgress/ChatProgress.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatActions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts +3 -3
- package/dist/types/src/components/ChatPrompt/ChatOptions.d.ts.map +1 -1
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts +3 -3
- package/dist/types/src/components/ChatPrompt/ChatReferences.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.d.ts +3 -3
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +139 -13
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/registry.d.ts +1 -1
- package/dist/types/src/components/ChatThread/registry.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/sync.d.ts +1 -1
- package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts +9 -4
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +130 -5
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +11 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts +131 -6
- package/dist/types/src/components/TemplateEditor/TemplateForm.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/extensions/handlebars-extension.d.ts.map +1 -1
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts +5 -5
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +16 -11
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +130 -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 -6
- 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 +13 -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 +20 -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/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/PromptList/PromptList.d.ts +6 -0
- package/dist/types/src/containers/PromptList/PromptList.d.ts.map +1 -0
- package/dist/types/src/containers/PromptList/PromptList.stories.d.ts +445 -0
- package/dist/types/src/containers/PromptList/PromptList.stories.d.ts.map +1 -0
- package/dist/types/src/containers/PromptList/index.d.ts +3 -0
- package/dist/types/src/containers/PromptList/index.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts +6 -0
- package/dist/types/src/containers/TracePanel/TracePanel.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.d.ts +19 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.test.d.ts +2 -0
- package/dist/types/src/containers/TracePanel/dxn-extractor.test.d.ts.map +1 -0
- package/dist/types/src/containers/TracePanel/index.d.ts +4 -0
- package/dist/types/src/containers/TracePanel/index.d.ts.map +1 -0
- package/dist/types/src/containers/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 +12 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/extensions/index.d.ts +2 -0
- package/dist/types/src/extensions/index.d.ts.map +1 -0
- package/dist/types/src/extensions/prompt-extension.d.ts +10 -0
- package/dist/types/src/extensions/prompt-extension.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +1 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts +5 -5
- package/dist/types/src/hooks/useBlueprintRegistry.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts +2 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +4 -5
- package/dist/types/src/hooks/useChatServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatToolbarActions.d.ts +3 -3
- package/dist/types/src/hooks/useChatToolbarActions.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextBinder.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextObjects.d.ts +7 -7
- package/dist/types/src/hooks/useContextObjects.d.ts.map +1 -1
- 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/useReferencesProvider.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create-chat.d.ts +5 -0
- package/dist/types/src/operations/create-chat.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +102 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/on-create-space.d.ts +5 -0
- package/dist/types/src/operations/on-create-space.d.ts.map +1 -0
- package/dist/types/src/operations/resolve-navigation-targets.d.ts +15 -0
- package/dist/types/src/operations/resolve-navigation-targets.d.ts.map +1 -0
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts +5 -0
- package/dist/types/src/operations/run-prompt-in-new-chat.d.ts.map +1 -0
- package/dist/types/src/operations/set-current-chat.d.ts +5 -0
- package/dist/types/src/operations/set-current-chat.d.ts.map +1 -0
- package/dist/types/src/operations/update-chat-name.d.ts +5 -0
- package/dist/types/src/operations/update-chat-name.d.ts.map +1 -0
- package/dist/types/src/processor/processor.d.ts +22 -12
- package/dist/types/src/processor/processor.d.ts.map +1 -1
- package/dist/types/src/processor/update-name.d.ts +2 -2
- package/dist/types/src/processor/update-name.d.ts.map +1 -1
- package/dist/types/src/queue-logger.d.ts.map +1 -1
- package/dist/types/src/testing/test-generator.d.ts +3 -2
- package/dist/types/src/testing/test-generator.d.ts.map +1 -1
- package/dist/types/src/testing/test-services.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +130 -5
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +6 -35
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/capabilities.d.ts +41 -0
- package/dist/types/src/types/capabilities.d.ts.map +1 -0
- package/dist/types/src/types/events.d.ts +5 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +3 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +10 -218
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +127 -93
- package/src/AssistantPlugin.tsx +163 -130
- package/src/blueprints/assistant/blueprint.conversations.json +1 -0
- package/src/blueprints/assistant/blueprint.test.ts +48 -0
- package/src/blueprints/assistant/blueprint.ts +31 -0
- package/src/blueprints/assistant/index.ts +5 -0
- package/src/blueprints/blueprint-manager.conversations.json +1 -0
- package/src/blueprints/blueprint-manager.test.ts +123 -0
- package/src/blueprints/index.ts +5 -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 +230 -0
- package/src/capabilities/app-graph-builder/index.ts +7 -0
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +58 -0
- package/src/capabilities/blueprint-definition/index.ts +10 -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 -14
- 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/markdown/index.ts +7 -0
- package/src/capabilities/markdown/markdown.ts +39 -0
- package/src/capabilities/operation-handler/index.ts +11 -0
- package/src/capabilities/operation-handler/operation-handler.ts +16 -0
- package/src/capabilities/react-surface/index.ts +7 -0
- package/src/capabilities/react-surface/react-surface.tsx +158 -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 +28 -0
- package/src/capabilities/toolkit/index.ts +7 -0
- package/src/capabilities/toolkit/toolkit.ts +15 -0
- package/src/components/Chat/Chat.tsx +125 -96
- package/src/components/Chat/events.ts +1 -1
- package/src/components/ChatProgress/ChatProgress.tsx +11 -22
- package/src/components/ChatPrompt/ChatActions.tsx +10 -2
- package/src/components/ChatPrompt/ChatOptions.tsx +102 -72
- package/src/components/ChatPrompt/ChatReferences.tsx +17 -8
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +1 -1
- package/src/components/ChatThread/ChatThread.stories.tsx +23 -21
- package/src/components/ChatThread/ChatThread.tsx +20 -7
- package/src/components/ChatThread/Link.tsx +4 -4
- package/src/components/ChatThread/registry.tsx +52 -19
- package/src/components/ChatThread/sync.test.ts +15 -5
- package/src/components/ChatThread/sync.ts +22 -10
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +5 -9
- package/src/components/TemplateEditor/TemplateEditor.tsx +49 -41
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +20 -10
- package/src/components/TemplateEditor/TemplateForm.tsx +80 -34
- package/src/components/TemplateEditor/extensions/handlebars-extension.ts +14 -9
- package/src/components/ToolBlock/ToolBlock.tsx +19 -19
- package/src/components/Toolbox/Toolbox.stories.tsx +11 -13
- package/src/components/Toolbox/Toolbox.tsx +70 -66
- package/src/components/Typewriter/AssistantToolbar.tsx +161 -0
- package/src/components/Typewriter/Typewriter.stories.tsx +86 -0
- package/src/components/Typewriter/Typewriter.tsx +50 -0
- package/src/components/Typewriter/assistant-extension.tsx +141 -0
- package/src/components/Typewriter/index.ts +5 -0
- package/src/components/index.ts +0 -9
- package/src/{components → containers}/AssistantSettings/AssistantSettings.tsx +28 -20
- 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 +231 -0
- package/src/containers/ChatCompanion/index.ts +7 -0
- package/src/containers/ChatContainer/ChatContainer.tsx +92 -0
- package/src/containers/ChatContainer/index.ts +7 -0
- package/src/{components → containers/ChatDialog}/ChatDialog.tsx +11 -14
- package/src/containers/ChatDialog/index.ts +7 -0
- package/src/containers/Project/ProjectArticle.tsx +128 -0
- package/src/containers/Project/ProjectSettings.tsx +135 -0
- package/src/containers/Project/index.ts +16 -0
- package/src/containers/PromptArticle/PromptArticle.tsx +59 -0
- package/src/containers/PromptArticle/index.ts +7 -0
- package/src/containers/PromptList/PromptList.stories.tsx +130 -0
- package/src/containers/PromptList/PromptList.tsx +49 -0
- package/src/containers/PromptList/index.ts +7 -0
- package/src/containers/TracePanel/TracePanel.tsx +347 -0
- package/src/containers/TracePanel/dxn-extractor.test.ts +153 -0
- package/src/containers/TracePanel/dxn-extractor.ts +178 -0
- package/src/containers/TracePanel/index.ts +9 -0
- package/src/containers/TriggerStatus/TriggerStatus.tsx +144 -0
- package/src/containers/TriggerStatus/index.ts +7 -0
- package/src/containers/index.ts +17 -0
- package/src/extensions/index.ts +5 -0
- package/src/extensions/prompt-extension.ts +111 -0
- package/src/hooks/index.ts +1 -1
- package/src/hooks/useBlueprintRegistry.ts +36 -22
- package/src/hooks/useChatProcessor.ts +9 -3
- package/src/hooks/useChatServices.ts +13 -25
- package/src/hooks/useChatToolbarActions.ts +27 -27
- package/src/hooks/useContextBinder.ts +4 -2
- package/src/hooks/useContextObjects.ts +16 -24
- package/src/hooks/useFilteredTypes.ts +37 -0
- package/src/hooks/useReferencesProvider.ts +5 -9
- package/src/index.ts +1 -1
- package/src/meta.ts +4 -4
- package/src/operations/create-chat.ts +75 -0
- package/src/operations/definitions.ts +112 -0
- package/src/operations/index.ts +16 -0
- package/src/operations/on-create-space.ts +24 -0
- package/src/operations/resolve-navigation-targets.ts +26 -0
- package/src/operations/run-prompt-in-new-chat.ts +107 -0
- package/src/operations/set-current-chat.ts +27 -0
- package/src/operations/update-chat-name.ts +43 -0
- package/src/processor/processor.test.ts +15 -10
- package/src/processor/processor.ts +110 -54
- package/src/processor/update-name.ts +6 -4
- package/src/queue-logger.ts +4 -1
- package/src/testing/test-generator.ts +4 -3
- package/src/testing/test-sequence.ts +3 -3
- package/src/testing/test-services.ts +8 -6
- package/src/translations.ts +33 -3
- package/src/types/Assistant.ts +4 -39
- package/src/types/capabilities.ts +29 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +5 -1
- package/src/types/service.ts +14 -11
- package/dist/lib/browser/BlueprintArticle-IMCR3642.mjs +0 -36
- package/dist/lib/browser/BlueprintArticle-IMCR3642.mjs.map +0 -7
- package/dist/lib/browser/ChatCompanion-JYD2RIBJ.mjs +0 -158
- package/dist/lib/browser/ChatCompanion-JYD2RIBJ.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-XCPBWYIR.mjs +0 -77
- package/dist/lib/browser/ChatContainer-XCPBWYIR.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-DT7KFCRL.mjs +0 -90
- package/dist/lib/browser/ChatDialog-DT7KFCRL.mjs.map +0 -7
- package/dist/lib/browser/PromptArticle-45QX25Y5.mjs +0 -59
- package/dist/lib/browser/PromptArticle-45QX25Y5.mjs.map +0 -7
- package/dist/lib/browser/ai-service-ERTZBTP3.mjs +0 -19
- package/dist/lib/browser/ai-service-ERTZBTP3.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-VZEXMDTY.mjs +0 -199
- package/dist/lib/browser/app-graph-builder-VZEXMDTY.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-5FT5JGPY.mjs +0 -12
- package/dist/lib/browser/chunk-2BOE3OTW.mjs.map +0 -7
- package/dist/lib/browser/chunk-BNTPFZ7O.mjs +0 -229
- package/dist/lib/browser/chunk-BNTPFZ7O.mjs.map +0 -7
- package/dist/lib/browser/chunk-FJQ4ZRYJ.mjs +0 -335
- package/dist/lib/browser/chunk-FJQ4ZRYJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-IXIIS4QA.mjs +0 -176
- package/dist/lib/browser/chunk-IXIIS4QA.mjs.map +0 -7
- package/dist/lib/browser/chunk-LRE4VEZV.mjs +0 -16
- package/dist/lib/browser/chunk-LRE4VEZV.mjs.map +0 -7
- package/dist/lib/browser/chunk-U62BTGDF.mjs +0 -1929
- package/dist/lib/browser/chunk-U62BTGDF.mjs.map +0 -7
- package/dist/lib/browser/chunk-WBG5PTSX.mjs.map +0 -7
- package/dist/lib/browser/edge-model-resolver-O6OFYIO2.mjs +0 -18
- package/dist/lib/browser/edge-model-resolver-O6OFYIO2.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-AK5O4GUW.mjs +0 -143
- package/dist/lib/browser/intent-resolver-AK5O4GUW.mjs.map +0 -7
- package/dist/lib/browser/local-model-resolver-34MVHRKD.mjs +0 -17
- package/dist/lib/browser/local-model-resolver-34MVHRKD.mjs.map +0 -7
- package/dist/lib/browser/react-surface-YCSR2MSR.mjs +0 -98
- package/dist/lib/browser/react-surface-YCSR2MSR.mjs.map +0 -7
- package/dist/lib/browser/settings-NYJGNQ5I.mjs +0 -23
- package/dist/lib/browser/settings-NYJGNQ5I.mjs.map +0 -7
- package/dist/lib/browser/state-GG7Z3NB7.mjs +0 -25
- package/dist/lib/browser/state-GG7Z3NB7.mjs.map +0 -7
- package/dist/lib/browser/toolkit-VYDAWNE4.mjs +0 -17
- package/dist/lib/browser/toolkit-VYDAWNE4.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintArticle-OL2HUY6Q.mjs +0 -37
- package/dist/lib/node-esm/BlueprintArticle-OL2HUY6Q.mjs.map +0 -7
- package/dist/lib/node-esm/ChatCompanion-AHKJS25S.mjs +0 -159
- package/dist/lib/node-esm/ChatCompanion-AHKJS25S.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-K7OGPE3G.mjs +0 -78
- package/dist/lib/node-esm/ChatContainer-K7OGPE3G.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-QT6ZBX45.mjs +0 -91
- package/dist/lib/node-esm/ChatDialog-QT6ZBX45.mjs.map +0 -7
- package/dist/lib/node-esm/PromptArticle-OUKFSJQV.mjs +0 -60
- package/dist/lib/node-esm/PromptArticle-OUKFSJQV.mjs.map +0 -7
- package/dist/lib/node-esm/ai-service-MUYLV3NT.mjs +0 -20
- package/dist/lib/node-esm/ai-service-MUYLV3NT.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-VRN6ESRR.mjs +0 -200
- package/dist/lib/node-esm/app-graph-builder-VRN6ESRR.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-XW6QQVLV.mjs +0 -13
- package/dist/lib/node-esm/chunk-3Q22TTXW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-AB74FOA2.mjs +0 -230
- package/dist/lib/node-esm/chunk-AB74FOA2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BHS747K7.mjs +0 -1930
- package/dist/lib/node-esm/chunk-BHS747K7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KJGD4EBJ.mjs +0 -336
- package/dist/lib/node-esm/chunk-KJGD4EBJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UXTUHH24.mjs +0 -178
- package/dist/lib/node-esm/chunk-UXTUHH24.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-WE6KTH72.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-YWFWT57N.mjs +0 -17
- package/dist/lib/node-esm/chunk-YWFWT57N.mjs.map +0 -7
- package/dist/lib/node-esm/edge-model-resolver-2ARXDOYS.mjs +0 -19
- package/dist/lib/node-esm/edge-model-resolver-2ARXDOYS.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-L2F3N45L.mjs +0 -144
- package/dist/lib/node-esm/intent-resolver-L2F3N45L.mjs.map +0 -7
- package/dist/lib/node-esm/local-model-resolver-TP2NTSAX.mjs +0 -18
- package/dist/lib/node-esm/local-model-resolver-TP2NTSAX.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-CTW44GEM.mjs +0 -99
- package/dist/lib/node-esm/react-surface-CTW44GEM.mjs.map +0 -7
- package/dist/lib/node-esm/settings-RRHYI5KO.mjs +0 -24
- package/dist/lib/node-esm/settings-RRHYI5KO.mjs.map +0 -7
- package/dist/lib/node-esm/state-FSUHFMDM.mjs +0 -26
- package/dist/lib/node-esm/state-FSUHFMDM.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-HFJZLVIR.mjs +0 -18
- package/dist/lib/node-esm/toolkit-HFJZLVIR.mjs.map +0 -7
- package/dist/types/src/capabilities/ai-service.d.ts +0 -4
- package/dist/types/src/capabilities/ai-service.d.ts.map +0 -1
- 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/blueprint-definition.d.ts +0 -7
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/capabilities.d.ts +0 -10
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/edge-model-resolver.d.ts +0 -4
- package/dist/types/src/capabilities/edge-model-resolver.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/local-model-resolver.d.ts +0 -10
- package/dist/types/src/capabilities/local-model-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/capabilities/state.d.ts +0 -4
- package/dist/types/src/capabilities/state.d.ts.map +0 -1
- package/dist/types/src/capabilities/toolkit.d.ts +0 -4
- package/dist/types/src/capabilities/toolkit.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/BlueprintArticle.d.ts +0 -7
- package/dist/types/src/components/BlueprintArticle.d.ts.map +0 -1
- package/dist/types/src/components/ChatCompanion.d.ts +0 -13
- package/dist/types/src/components/ChatCompanion.d.ts.map +0 -1
- package/dist/types/src/components/ChatContainer.d.ts +0 -14
- package/dist/types/src/components/ChatContainer.d.ts.map +0 -1
- package/dist/types/src/components/ChatDialog.d.ts.map +0 -1
- package/dist/types/src/components/ChatThread/reducers.d.ts +0 -40
- package/dist/types/src/components/ChatThread/reducers.d.ts.map +0 -1
- package/dist/types/src/components/PromptArticle.d.ts +0 -7
- package/dist/types/src/components/PromptArticle.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/functions/analysis.d.ts +0 -5
- package/dist/types/src/functions/analysis.d.ts.map +0 -1
- package/dist/types/src/functions/index.d.ts +0 -4
- package/dist/types/src/functions/index.d.ts.map +0 -1
- package/dist/types/src/functions/object-list.d.ts +0 -10
- package/dist/types/src/functions/object-list.d.ts.map +0 -1
- package/dist/types/src/functions/object-load.d.ts +0 -8
- package/dist/types/src/functions/object-load.d.ts.map +0 -1
- package/dist/types/src/hooks/useItemTypes.d.ts +0 -4
- package/dist/types/src/hooks/useItemTypes.d.ts.map +0 -1
- package/dist/types/src/types/AssistantAction.d.ts +0 -132
- package/dist/types/src/types/AssistantAction.d.ts.map +0 -1
- package/src/capabilities/ai-service.ts +0 -27
- package/src/capabilities/app-graph-builder.ts +0 -210
- package/src/capabilities/blueprint-definition.ts +0 -66
- package/src/capabilities/capabilities.ts +0 -17
- package/src/capabilities/edge-model-resolver.ts +0 -25
- package/src/capabilities/intent-resolver.ts +0 -147
- package/src/capabilities/local-model-resolver.ts +0 -30
- package/src/capabilities/react-surface.tsx +0 -87
- package/src/capabilities/settings.ts +0 -19
- package/src/capabilities/state.ts +0 -22
- package/src/capabilities/toolkit.ts +0 -17
- package/src/components/AssistantSettings/index.ts +0 -5
- package/src/components/BlueprintArticle.tsx +0 -29
- package/src/components/ChatCompanion.tsx +0 -155
- package/src/components/ChatContainer.tsx +0 -61
- package/src/components/ChatThread/reducers.ts +0 -151
- package/src/components/PromptArticle.tsx +0 -51
- package/src/events.ts +0 -11
- package/src/functions/analysis.ts +0 -22
- package/src/functions/index.ts +0 -7
- package/src/functions/object-list.ts +0 -48
- package/src/functions/object-load.ts +0 -45
- package/src/hooks/useItemTypes.ts +0 -37
- package/src/types/AssistantAction.ts +0 -79
- /package/dist/lib/browser/{blueprint-definition-5FT5JGPY.mjs.map → ChatContainer-6IA3SIYM.mjs.map} +0 -0
- /package/dist/lib/{node-esm/blueprint-definition-XW6QQVLV.mjs.map → browser/blueprints/index.mjs.map} +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import type * as Tool from '@effect/ai/Tool';
|
|
5
6
|
import { Atom, Registry } from '@effect-atom/atom-react';
|
|
6
7
|
import * as Cause from 'effect/Cause';
|
|
7
8
|
import * as Effect from 'effect/Effect';
|
|
@@ -19,32 +20,33 @@ import {
|
|
|
19
20
|
type ToolResolverService,
|
|
20
21
|
} from '@dxos/ai';
|
|
21
22
|
import {
|
|
23
|
+
AiContextService,
|
|
22
24
|
type AiConversation,
|
|
23
|
-
type
|
|
25
|
+
type AiConversationRunProps,
|
|
24
26
|
ArtifactDiffResolver,
|
|
25
27
|
GenerationObserver,
|
|
26
28
|
createSystemPrompt,
|
|
27
29
|
} from '@dxos/assistant';
|
|
30
|
+
import { formatSystemPrompt } from '@dxos/assistant';
|
|
31
|
+
import { type Chat } from '@dxos/assistant-toolkit';
|
|
28
32
|
import { type Blueprint } from '@dxos/blueprints';
|
|
29
|
-
import { Obj } from '@dxos/echo';
|
|
30
|
-
import {
|
|
33
|
+
import { Obj, Ref } from '@dxos/echo';
|
|
34
|
+
import { type Database } from '@dxos/echo';
|
|
35
|
+
import { runAndForwardErrors, throwCause, unwrapExit } from '@dxos/effect';
|
|
31
36
|
import {
|
|
32
37
|
type CredentialsService,
|
|
33
|
-
type DatabaseService,
|
|
34
38
|
type FunctionInvocationService,
|
|
35
39
|
type QueueService,
|
|
36
|
-
|
|
40
|
+
TracingService,
|
|
37
41
|
} from '@dxos/functions';
|
|
38
42
|
import { log } from '@dxos/log';
|
|
39
43
|
import { type ContentBlock, Message } from '@dxos/types';
|
|
40
44
|
|
|
41
|
-
import { type Assistant } from '../types';
|
|
42
|
-
|
|
43
45
|
import { updateName } from './update-name';
|
|
44
46
|
|
|
45
47
|
export type AiChatServices =
|
|
46
48
|
| CredentialsService
|
|
47
|
-
|
|
|
49
|
+
| Database.Service
|
|
48
50
|
| QueueService
|
|
49
51
|
| FunctionInvocationService
|
|
50
52
|
| AiService.AiService
|
|
@@ -58,7 +60,11 @@ export type AiChatProcessorOptions = {
|
|
|
58
60
|
blueprintRegistry?: Blueprint.Registry;
|
|
59
61
|
observableRegistry?: Registry.Registry;
|
|
60
62
|
extensions?: ToolContextExtensions;
|
|
61
|
-
|
|
63
|
+
/**
|
|
64
|
+
* For tracing.
|
|
65
|
+
*/
|
|
66
|
+
chat?: Ref.Ref<Chat.Chat>;
|
|
67
|
+
} & Pick<AiConversationRunProps, 'system'>;
|
|
62
68
|
|
|
63
69
|
const defaultOptions: Partial<AiChatProcessorOptions> = {
|
|
64
70
|
model: DEFAULT_EDGE_MODEL,
|
|
@@ -82,31 +88,26 @@ export class AiChatProcessor {
|
|
|
82
88
|
/** External observer. */
|
|
83
89
|
private readonly _observer: GenerationObserver;
|
|
84
90
|
|
|
91
|
+
/** Pending messages (incl. the current user request). */
|
|
92
|
+
private readonly _pending = Atom.make<Message.Message[]>([]);
|
|
93
|
+
|
|
94
|
+
/** Currently streaming message (from the AI service). */
|
|
95
|
+
private readonly _streaming = Atom.make<Message.Message[]>([]);
|
|
96
|
+
|
|
85
97
|
/** Currently active request fiber. */
|
|
86
98
|
private _fiber: Fiber.Fiber<void, any> | undefined;
|
|
87
99
|
|
|
88
100
|
/** Last request (for retries). */
|
|
89
101
|
private _lastRequest: AiRequest | undefined;
|
|
90
102
|
|
|
91
|
-
/** Pending messages (incl. the current user request). */
|
|
92
|
-
private readonly _pending = Atom.make<Message.Message[]>([]);
|
|
93
|
-
|
|
94
|
-
/** Currently streaming message (from the AI service). */
|
|
95
|
-
private readonly _streaming = Atom.make<Option.Option<Message.Message>>(Option.none());
|
|
96
|
-
|
|
97
103
|
/** Streaming state. */
|
|
98
|
-
public readonly streaming = Atom.make<boolean>((get) =>
|
|
104
|
+
public readonly streaming = Atom.make<boolean>((get) => get(this._streaming).length > 0);
|
|
99
105
|
|
|
100
106
|
/** Active state. */
|
|
101
107
|
public readonly active = Atom.make(false);
|
|
102
108
|
|
|
103
109
|
/** Array of Messages (incl. the current message being streamed). */
|
|
104
|
-
public readonly messages = Atom.make<Message.Message[]>((get) =>
|
|
105
|
-
Option.match(get(this._streaming), {
|
|
106
|
-
onNone: () => get(this._pending),
|
|
107
|
-
onSome: (streaming) => [...get(this._pending), streaming],
|
|
108
|
-
}),
|
|
109
|
-
);
|
|
110
|
+
public readonly messages = Atom.make<Message.Message[]>((get) => [...get(this._pending), ...get(this._streaming)]);
|
|
110
111
|
|
|
111
112
|
/** Last error. */
|
|
112
113
|
public readonly error = Atom.make<Option.Option<Error>>(Option.none());
|
|
@@ -141,37 +142,92 @@ export class AiChatProcessor {
|
|
|
141
142
|
return this._options.blueprintRegistry;
|
|
142
143
|
}
|
|
143
144
|
|
|
145
|
+
get system(): string {
|
|
146
|
+
return this._options.system ?? '';
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
async getTools(): Promise<Record<string, Tool.Any>> {
|
|
150
|
+
return unwrapExit(await this._conversation.getTools().pipe(await Runtime.runPromiseExit(await this._services())));
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
async getSystemPrompt(): Promise<string> {
|
|
154
|
+
return unwrapExit(
|
|
155
|
+
await Effect.gen(this, function* () {
|
|
156
|
+
const blueprints = this.context.getBlueprints();
|
|
157
|
+
const objects = this.context.getObjects();
|
|
158
|
+
const system = yield* formatSystemPrompt({ system: this._options.system, blueprints, objects });
|
|
159
|
+
return system;
|
|
160
|
+
}).pipe(
|
|
161
|
+
Effect.provideService(AiContextService, {
|
|
162
|
+
binder: this.context,
|
|
163
|
+
}),
|
|
164
|
+
await Runtime.runPromiseExit(await this._services()),
|
|
165
|
+
),
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
144
169
|
/**
|
|
145
170
|
* Initiates a new request.
|
|
146
171
|
*/
|
|
147
|
-
async request(
|
|
172
|
+
async request(requestProp: AiRequest): Promise<void> {
|
|
148
173
|
if (this._fiber) {
|
|
149
174
|
await this.cancel();
|
|
150
175
|
}
|
|
151
176
|
|
|
152
177
|
try {
|
|
153
|
-
this._lastRequest =
|
|
178
|
+
this._lastRequest = requestProp;
|
|
154
179
|
this._registry.set(this.error, Option.none());
|
|
155
180
|
this._registry.set(this.active, true);
|
|
156
181
|
|
|
182
|
+
const services = await this._services();
|
|
183
|
+
|
|
157
184
|
// Create request.
|
|
158
|
-
const request =
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
185
|
+
const request = Effect.gen(this, function* () {
|
|
186
|
+
const tracer = yield* TracingService;
|
|
187
|
+
const trace = yield* tracer.traceInvocationStart({
|
|
188
|
+
target: undefined,
|
|
189
|
+
payload: {
|
|
190
|
+
chat: this._options.chat,
|
|
191
|
+
data: {
|
|
192
|
+
prompt: requestProp.message,
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
const result = yield* this._conversation
|
|
198
|
+
.createRequest({
|
|
199
|
+
system: this._options.system,
|
|
200
|
+
prompt: requestProp.message,
|
|
201
|
+
observer: this._observer,
|
|
202
|
+
})
|
|
203
|
+
.pipe(
|
|
204
|
+
Effect.provide(
|
|
205
|
+
trace.invocationTraceQueue ? TracingService.layerInvocation(trace) : TracingService.layerNoop,
|
|
206
|
+
),
|
|
207
|
+
Effect.exit,
|
|
208
|
+
);
|
|
209
|
+
|
|
210
|
+
if (Exit.isFailure(result)) {
|
|
211
|
+
const error = Cause.prettyErrors(result.cause)[0];
|
|
212
|
+
log.error(error.message, error.cause ?? error.stack);
|
|
213
|
+
}
|
|
163
214
|
|
|
164
|
-
|
|
215
|
+
yield* tracer.traceInvocationEnd({
|
|
216
|
+
trace,
|
|
217
|
+
// TODO(dmaretskyi): Might miss errors.
|
|
218
|
+
exception: Exit.isFailure(result) ? Cause.prettyErrors(result.cause)[0] : undefined,
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
return Effect.exit(result);
|
|
222
|
+
});
|
|
165
223
|
|
|
166
224
|
// Create fiber.
|
|
167
225
|
this._fiber = request.pipe(
|
|
168
226
|
Effect.provide(AiService.model(this._options.model ?? DEFAULT_EDGE_MODEL)),
|
|
169
|
-
|
|
170
227
|
// TODO(dmaretskyi): Move ArtifactDiffResolver upstream.
|
|
171
228
|
Effect.provideService(ArtifactDiffResolver, this._artifactDiffResolver),
|
|
172
|
-
|
|
173
229
|
Effect.asVoid,
|
|
174
|
-
Runtime.runFork(
|
|
230
|
+
Runtime.runFork(services), // Runs in the background.
|
|
175
231
|
);
|
|
176
232
|
|
|
177
233
|
// Execute request.
|
|
@@ -183,12 +239,12 @@ export class AiChatProcessor {
|
|
|
183
239
|
this._registry.set(this.error, Option.none());
|
|
184
240
|
this._lastRequest = undefined;
|
|
185
241
|
this._fiber = undefined;
|
|
186
|
-
} catch (
|
|
187
|
-
log.error('request failed', { error });
|
|
188
|
-
this._registry.set(this.error, Option.some(new Error('AI service error', { cause:
|
|
242
|
+
} catch (err) {
|
|
243
|
+
log.error('request failed', { error: err });
|
|
244
|
+
this._registry.set(this.error, Option.some(new Error('AI service error', { cause: err })));
|
|
189
245
|
} finally {
|
|
190
|
-
this._fiber = undefined;
|
|
191
246
|
this._registry.set(this.active, false);
|
|
247
|
+
this._fiber = undefined;
|
|
192
248
|
}
|
|
193
249
|
}
|
|
194
250
|
|
|
@@ -196,7 +252,7 @@ export class AiChatProcessor {
|
|
|
196
252
|
* Cancels the current request.
|
|
197
253
|
*/
|
|
198
254
|
async cancel(): Promise<void> {
|
|
199
|
-
await
|
|
255
|
+
await runAndForwardErrors(
|
|
200
256
|
Effect.gen(this, function* () {
|
|
201
257
|
if (this._fiber) {
|
|
202
258
|
yield* this._fiber.pipe(Fiber.interrupt);
|
|
@@ -220,7 +276,7 @@ export class AiChatProcessor {
|
|
|
220
276
|
/**
|
|
221
277
|
* Update the current chat's name.
|
|
222
278
|
*/
|
|
223
|
-
async updateName(chat:
|
|
279
|
+
async updateName(chat: Chat.Chat): Promise<void> {
|
|
224
280
|
const runtime = await this._services();
|
|
225
281
|
await updateName(runtime, this._conversation, chat, this._options.model);
|
|
226
282
|
}
|
|
@@ -233,7 +289,7 @@ export class AiChatProcessor {
|
|
|
233
289
|
// artifacts.map(async (artifact) => {
|
|
234
290
|
// const {
|
|
235
291
|
// objects: [object],
|
|
236
|
-
// } = await space.db.query(Filter.
|
|
292
|
+
// } = await space.db.query(Filter.id(artifact.id)).run();
|
|
237
293
|
// if (!object) {
|
|
238
294
|
// return;
|
|
239
295
|
// }
|
|
@@ -249,29 +305,29 @@ export class AiChatProcessor {
|
|
|
249
305
|
},
|
|
250
306
|
};
|
|
251
307
|
|
|
252
|
-
|
|
253
|
-
function* (this: AiChatProcessor, message: Message.Message) {
|
|
254
|
-
this._registry.set(this._streaming, Option.none());
|
|
255
|
-
this._registry.update(this._pending, (pending) => [...pending, message]);
|
|
256
|
-
}.bind(this),
|
|
257
|
-
);
|
|
258
|
-
|
|
308
|
+
// TODO(dmaretskyi): Due to the way effect streams do buffering, we cannot rely on _onBlock and _onMessage to be called in order.
|
|
259
309
|
private _onBlock = Effect.fn(
|
|
260
310
|
function* (this: AiChatProcessor, block: ContentBlock.Any) {
|
|
261
311
|
this._registry.update(this._streaming, (streaming) => {
|
|
262
|
-
const blocks = streaming.
|
|
263
|
-
Option.map((streaming) => streaming.blocks.filter((b: ContentBlock.Any) => !b.pending)),
|
|
264
|
-
Option.getOrElse(() => []),
|
|
265
|
-
);
|
|
312
|
+
const blocks = streaming.filter((message) => message.blocks.every((block) => !block.pending));
|
|
266
313
|
|
|
267
|
-
|
|
314
|
+
// AiSession emits a message per each assistant content-block, so we do the same.
|
|
315
|
+
return [
|
|
316
|
+
...blocks,
|
|
268
317
|
Obj.make(Message.Message, {
|
|
269
318
|
created: new Date().toISOString(),
|
|
270
319
|
sender: { role: 'assistant' },
|
|
271
|
-
blocks: [
|
|
320
|
+
blocks: [block],
|
|
272
321
|
}),
|
|
273
|
-
|
|
322
|
+
];
|
|
274
323
|
});
|
|
275
324
|
}.bind(this),
|
|
276
325
|
);
|
|
326
|
+
|
|
327
|
+
private _onMessage = Effect.fn(
|
|
328
|
+
function* (this: AiChatProcessor, message: Message.Message) {
|
|
329
|
+
this._registry.set(this._streaming, []);
|
|
330
|
+
this._registry.update(this._pending, (pending) => [...pending, message]);
|
|
331
|
+
}.bind(this),
|
|
332
|
+
);
|
|
277
333
|
}
|
|
@@ -9,11 +9,11 @@ import * as Runtime from 'effect/Runtime';
|
|
|
9
9
|
|
|
10
10
|
import { AiService, DEFAULT_EDGE_MODEL, type ModelName } from '@dxos/ai';
|
|
11
11
|
import { type AiConversation, AiSession } from '@dxos/assistant';
|
|
12
|
+
import { type Chat } from '@dxos/assistant-toolkit';
|
|
13
|
+
import { Obj } from '@dxos/echo';
|
|
12
14
|
import { throwCause } from '@dxos/effect';
|
|
13
15
|
import { trim } from '@dxos/util';
|
|
14
16
|
|
|
15
|
-
import { type Assistant } from '../types';
|
|
16
|
-
|
|
17
17
|
import { type AiChatServices } from './processor';
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -23,7 +23,7 @@ import { type AiChatServices } from './processor';
|
|
|
23
23
|
export const updateName = async (
|
|
24
24
|
runtime: Runtime.Runtime<AiChatServices>,
|
|
25
25
|
conversation: AiConversation,
|
|
26
|
-
chat:
|
|
26
|
+
chat: Chat.Chat,
|
|
27
27
|
model: ModelName = DEFAULT_EDGE_MODEL,
|
|
28
28
|
): Promise<void> => {
|
|
29
29
|
const history = await conversation.getHistory();
|
|
@@ -43,7 +43,9 @@ export const updateName = async (
|
|
|
43
43
|
const message = messages.find((message) => message.sender.role === 'assistant');
|
|
44
44
|
const title = message?.blocks.find((block) => block._tag === 'text')?.text;
|
|
45
45
|
if (title) {
|
|
46
|
-
chat
|
|
46
|
+
Obj.change(chat, (obj) => {
|
|
47
|
+
obj.name = title;
|
|
48
|
+
});
|
|
47
49
|
}
|
|
48
50
|
}),
|
|
49
51
|
Runtime.runFork(runtime), // Run in the background.
|
package/src/queue-logger.ts
CHANGED
|
@@ -23,7 +23,10 @@ export class QueueLogger implements SequenceLogger {
|
|
|
23
23
|
let dxn = this._space.properties.invocationTraceQueue?.dxn;
|
|
24
24
|
if (!dxn) {
|
|
25
25
|
dxn = DXN.fromQueue(QueueSubspaceTags.TRACE, this._space.id, Key.ObjectId.random());
|
|
26
|
-
|
|
26
|
+
const newDxn = dxn;
|
|
27
|
+
Obj.change(this._space.properties, (obj) => {
|
|
28
|
+
obj.invocationTraceQueue = Ref.fromDXN(newDxn);
|
|
29
|
+
});
|
|
27
30
|
}
|
|
28
31
|
this._invocationTraceQueue = this._space.queues.get(dxn);
|
|
29
32
|
}
|
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
7
|
import { Obj } from '@dxos/echo';
|
|
8
|
-
import {
|
|
8
|
+
import { Database } from '@dxos/echo';
|
|
9
|
+
import { ContextQueueService } from '@dxos/functions';
|
|
9
10
|
import { faker } from '@dxos/random';
|
|
10
11
|
import { renderObjectLink } from '@dxos/react-ui-components';
|
|
11
12
|
import { type Actor, type ContentBlock, Message, Organization } from '@dxos/types';
|
|
@@ -19,7 +20,7 @@ export const createMessage = (role: Actor.Role, blocks: ContentBlock.Any[]): Mes
|
|
|
19
20
|
});
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
export type MessageGenerator = Effect.Effect<void, never,
|
|
23
|
+
export type MessageGenerator = Effect.Effect<void, never, Database.Service | ContextQueueService>;
|
|
23
24
|
|
|
24
25
|
export const createMessageGenerator = (): MessageGenerator[] => [
|
|
25
26
|
Effect.gen(function* () {
|
|
@@ -145,7 +146,7 @@ export const createMessageGenerator = (): MessageGenerator[] => [
|
|
|
145
146
|
|
|
146
147
|
Effect.gen(function* () {
|
|
147
148
|
const { queue } = yield* ContextQueueService;
|
|
148
|
-
const { db } = yield*
|
|
149
|
+
const { db } = yield* Database.Service;
|
|
149
150
|
const obj1 = db.add(Obj.make(Organization.Organization, { name: 'DXOS' }));
|
|
150
151
|
// const obj2 = db.add(Obj.make(Person.Person, { fullName: 'Alice' }));
|
|
151
152
|
// const obj3 = db.add(Obj.make(Person.Person, { fullName: 'Bob' }));
|
|
@@ -9,16 +9,16 @@ export const RESEARCH_SEQUENCE_DEFINITION: SequenceDefinition = {
|
|
|
9
9
|
steps: [
|
|
10
10
|
{
|
|
11
11
|
instructions: 'Research information and entities related to the selected objects.',
|
|
12
|
-
tools: [ToolId.make('search/
|
|
12
|
+
tools: [ToolId.make('search/web-search')],
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
instructions:
|
|
16
16
|
'Based on your research find matching entires that are already in the graph. Do exaustive research.',
|
|
17
|
-
tools: [ToolId.make('search/
|
|
17
|
+
tools: [ToolId.make('search/local-search')],
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
instructions: 'Add researched data to the graph. Make connections to existing objects.',
|
|
21
|
-
tools: [ToolId.make('search/
|
|
21
|
+
tools: [ToolId.make('search/local-search'), ToolId.make('graph/writer')],
|
|
22
22
|
},
|
|
23
23
|
],
|
|
24
24
|
};
|
|
@@ -2,10 +2,12 @@
|
|
|
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
7
|
import { type ApiAuthorization, type BaseServiceRegistry, ServiceType, categoryIcons } from '../types';
|
|
8
8
|
|
|
9
|
+
const ServiceTypeSchema = ServiceType as unknown as Type.AnyObj;
|
|
10
|
+
|
|
9
11
|
export class MockServiceRegistry implements BaseServiceRegistry {
|
|
10
12
|
async queryServices(): Promise<ServiceType[]> {
|
|
11
13
|
return TEST_SERVICES;
|
|
@@ -48,7 +50,7 @@ const VISUAL_CROSSING_CREDENTIALS: ApiAuthorization = {
|
|
|
48
50
|
// - e.g., https://github.com/konfig-sdks/openapi-examples/blob/main/xkcd/openapi.yaml
|
|
49
51
|
|
|
50
52
|
const TEST_SERVICES: ServiceType[] = [
|
|
51
|
-
Obj.make(
|
|
53
|
+
Obj.make(ServiceTypeSchema, {
|
|
52
54
|
serviceId: 'amadeus.com/service/FlightSearch',
|
|
53
55
|
name: 'Amadeus Flight Search',
|
|
54
56
|
description: 'Search for local and international flights.',
|
|
@@ -62,7 +64,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
62
64
|
],
|
|
63
65
|
}),
|
|
64
66
|
|
|
65
|
-
Obj.make(
|
|
67
|
+
Obj.make(ServiceTypeSchema, {
|
|
66
68
|
serviceId: 'amadeus.com/service/HotelSearch',
|
|
67
69
|
name: 'Amadeus Hotel Search',
|
|
68
70
|
description: 'Search for local and international hotels.',
|
|
@@ -76,7 +78,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
76
78
|
],
|
|
77
79
|
}),
|
|
78
80
|
|
|
79
|
-
Obj.make(
|
|
81
|
+
Obj.make(ServiceTypeSchema, {
|
|
80
82
|
serviceId: 'visualcrossing.com/service/Weather',
|
|
81
83
|
name: 'Visual Crossing Weather',
|
|
82
84
|
description: 'Search for global weather forecasts.',
|
|
@@ -91,7 +93,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
91
93
|
}),
|
|
92
94
|
|
|
93
95
|
// TODO(burdon): Needs auth.
|
|
94
|
-
Obj.make(
|
|
96
|
+
Obj.make(ServiceTypeSchema, {
|
|
95
97
|
serviceId: 'abstractapi.com/service/GeoLocation',
|
|
96
98
|
name: 'Abstract GeoLocation',
|
|
97
99
|
description: 'Get the location of any IP address.',
|
|
@@ -109,7 +111,7 @@ const TEST_SERVICES: ServiceType[] = [
|
|
|
109
111
|
//
|
|
110
112
|
|
|
111
113
|
...Array.from({ length: 20 }, (_, i) =>
|
|
112
|
-
Obj.make(
|
|
114
|
+
Obj.make(ServiceTypeSchema, {
|
|
113
115
|
serviceId: `example.com/service/test-${i}`,
|
|
114
116
|
name: `Test ${i}`,
|
|
115
117
|
description: `Test ${i}`,
|
package/src/translations.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { Chat, Project } from '@dxos/assistant-toolkit';
|
|
5
6
|
import { Blueprint, Prompt } from '@dxos/blueprints';
|
|
6
7
|
import { Sequence } from '@dxos/conductor';
|
|
7
8
|
import { Type } from '@dxos/echo';
|
|
8
9
|
import { type Resource } from '@dxos/react-ui';
|
|
9
10
|
|
|
10
11
|
import { meta } from './meta';
|
|
11
|
-
import { Assistant } from './types';
|
|
12
12
|
|
|
13
13
|
// TODO(burdon): Standardize translation names.
|
|
14
14
|
export const translations = [
|
|
@@ -21,8 +21,10 @@ export const translations = [
|
|
|
21
21
|
'typename label_one': 'Blueprint',
|
|
22
22
|
'typename label_other': 'Blueprints',
|
|
23
23
|
'object name placeholder': 'New blueprint',
|
|
24
|
+
'add object label': 'Add blueprint',
|
|
24
25
|
'rename object label': 'Rename blueprint',
|
|
25
26
|
'delete object label': 'Delete blueprint',
|
|
27
|
+
'object deleted label': 'Blueprint deleted',
|
|
26
28
|
},
|
|
27
29
|
[Type.getTypename(Prompt.Prompt)]: {
|
|
28
30
|
'typename label': 'Prompt',
|
|
@@ -30,8 +32,10 @@ export const translations = [
|
|
|
30
32
|
'typename label_one': 'Prompt',
|
|
31
33
|
'typename label_other': 'Prompts',
|
|
32
34
|
'object name placeholder': 'New prompt',
|
|
35
|
+
'add object label': 'Add prompt',
|
|
33
36
|
'rename object label': 'Rename prompt',
|
|
34
37
|
'delete object label': 'Delete prompt',
|
|
38
|
+
'object deleted label': 'Prompt deleted',
|
|
35
39
|
},
|
|
36
40
|
// TODO(burdon): From conductor.
|
|
37
41
|
[Sequence.typename]: {
|
|
@@ -40,14 +44,29 @@ export const translations = [
|
|
|
40
44
|
'typename label_one': 'Sequence',
|
|
41
45
|
'typename label_other': 'Sequences',
|
|
42
46
|
'object name placeholder': 'New sequence',
|
|
47
|
+
'add object label': 'Add sequence',
|
|
43
48
|
'rename object label': 'Rename sequence',
|
|
44
49
|
'delete object label': 'Delete sequence',
|
|
50
|
+
'object deleted label': 'Sequence deleted',
|
|
45
51
|
},
|
|
46
|
-
[
|
|
52
|
+
[Chat.Chat.typename]: {
|
|
47
53
|
'typename label': 'AI Chat',
|
|
48
54
|
'object name placeholder': 'New AI Chat',
|
|
55
|
+
'add object label': 'Add AI chat',
|
|
49
56
|
'rename object label': 'Rename AI Chat',
|
|
50
57
|
'delete object label': 'Delete AI Chat',
|
|
58
|
+
'object deleted label': 'AI Chat deleted',
|
|
59
|
+
},
|
|
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',
|
|
51
70
|
},
|
|
52
71
|
// TODO(burdon): Reconcile with react-ui-chat.
|
|
53
72
|
[meta.id]: {
|
|
@@ -76,9 +95,11 @@ export const translations = [
|
|
|
76
95
|
'tool error label': 'Tool call failed',
|
|
77
96
|
|
|
78
97
|
'invocations label': 'Invocations',
|
|
98
|
+
'trace label': 'Trace',
|
|
79
99
|
|
|
80
100
|
'assistant dialog title': 'Assistant',
|
|
81
101
|
'open assistant label': 'Open assistant',
|
|
102
|
+
'reset blueprints label': 'Reset blueprints',
|
|
82
103
|
|
|
83
104
|
'no tools': 'No tools are configured',
|
|
84
105
|
'no results': 'No results',
|
|
@@ -91,7 +112,7 @@ export const translations = [
|
|
|
91
112
|
'chat update name label': 'Update AI Chat name',
|
|
92
113
|
|
|
93
114
|
'toolkit label': 'Toolkit',
|
|
94
|
-
'
|
|
115
|
+
'stats label': 'Stats',
|
|
95
116
|
|
|
96
117
|
'search placeholder': 'Search...',
|
|
97
118
|
'prompt placeholder': 'Enter question or command...',
|
|
@@ -109,6 +130,15 @@ export const translations = [
|
|
|
109
130
|
'settings llm provider label': 'LLM provider',
|
|
110
131
|
'settings edge llm model label': 'Remote language model',
|
|
111
132
|
'settings ollama llm model label': 'Ollama language model',
|
|
133
|
+
|
|
134
|
+
// Trigger status
|
|
135
|
+
'trigger status disabled label': 'Triggers disabled',
|
|
136
|
+
'trigger status idle label': 'Triggers idle',
|
|
137
|
+
'trigger status running label': 'Trigger running',
|
|
138
|
+
'trigger status error label': 'Trigger error',
|
|
139
|
+
'trigger runtime label': 'Auto trigger execution',
|
|
140
|
+
'trigger last invocation label': 'Last run',
|
|
141
|
+
'trigger duration label': 'Duration',
|
|
112
142
|
},
|
|
113
143
|
},
|
|
114
144
|
},
|
package/src/types/Assistant.ts
CHANGED
|
@@ -4,48 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import { FormAnnotation, LabelAnnotation } from '@dxos/echo/internal';
|
|
9
|
-
import { Queue } from '@dxos/echo-db';
|
|
7
|
+
import { Chat as ChatModule } from '@dxos/assistant-toolkit';
|
|
10
8
|
|
|
11
9
|
import { LLM_PROVIDERS } from './defs';
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export const Chat = Schema.Struct({
|
|
17
|
-
name: Schema.String.pipe(Schema.optional),
|
|
18
|
-
queue: Type.Ref(Queue).pipe(FormAnnotation.set(false)),
|
|
19
|
-
// TODO(dmaretskyi): Eventually this and the message queue will be the same.
|
|
20
|
-
traceQueue: Type.Ref(Queue).pipe(FormAnnotation.set(false), Schema.optional),
|
|
21
|
-
}).pipe(
|
|
22
|
-
Type.Obj({
|
|
23
|
-
typename: 'dxos.org/type/assistant/Chat',
|
|
24
|
-
version: '0.2.0',
|
|
25
|
-
}),
|
|
26
|
-
LabelAnnotation.set(['name']),
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
export interface Chat extends Schema.Schema.Type<typeof Chat> {}
|
|
30
|
-
|
|
31
|
-
export const makeChat = ({ name, queue }: { name?: string; queue: Queue }) =>
|
|
32
|
-
Obj.make(Chat, { name, queue: Ref.fromDXN(queue.dxn) });
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Relation between a Chat and companion objects (e.g., artifacts).
|
|
36
|
-
*/
|
|
37
|
-
export const CompanionTo = Schema.Struct({
|
|
38
|
-
id: Type.ObjectId,
|
|
39
|
-
}).pipe(
|
|
40
|
-
Type.Relation({
|
|
41
|
-
typename: 'dxos.org/relation/assistant/CompanionTo',
|
|
42
|
-
version: '0.1.0',
|
|
43
|
-
source: Chat,
|
|
44
|
-
target: Type.Expando,
|
|
45
|
-
}),
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
export interface CompanionTo extends Schema.Schema.Type<typeof CompanionTo> {}
|
|
11
|
+
// Re-export Chat schema for backward compatibility.
|
|
12
|
+
export const Chat = ChatModule.Chat;
|
|
13
|
+
export type Chat = ChatModule.Chat;
|
|
49
14
|
|
|
50
15
|
/**
|
|
51
16
|
* Plugin settings.
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
/** Map of chat object path to prompt text to auto-submit when the chat opens. */
|
|
22
|
+
pendingPrompts: Schema.Record({ key: Schema.String, value: Schema.UndefinedOr(Schema.String) }),
|
|
23
|
+
}),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
export type AssistantState = Schema.Schema.Type<typeof StateSchema>;
|
|
27
|
+
|
|
28
|
+
export const State = Capability.make<Atom.Writable<AssistantState>>(`${meta.id}.capability.state`);
|
|
29
|
+
}
|
|
@@ -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
|
+
}
|
package/src/types/index.ts
CHANGED
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
// Copyright 2024 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
// Re-export Chat type from assistant-toolkit for public API type declarations.
|
|
6
|
+
export type { Chat as ChatType } from '@dxos/assistant-toolkit';
|
|
7
|
+
|
|
5
8
|
export * as Assistant from './Assistant';
|
|
6
|
-
export * as AssistantAction from './AssistantAction';
|
|
7
9
|
|
|
10
|
+
export * from './capabilities';
|
|
8
11
|
export * from './defs';
|
|
12
|
+
export * from './events';
|
|
9
13
|
export * from './service';
|