@dxos/plugin-assistant 0.8.4-main.406dc2a → 0.8.4-main.52d7546f51
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-JOTRKE7B.mjs +200 -0
- package/dist/lib/browser/ChatCompanion-JOTRKE7B.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-ESDLG5JY.mjs +73 -0
- package/dist/lib/browser/ChatContainer-ESDLG5JY.mjs.map +7 -0
- package/dist/lib/browser/ChatDialog-LKY3FTYO.mjs +85 -0
- package/dist/lib/browser/ChatDialog-LKY3FTYO.mjs.map +7 -0
- package/dist/lib/browser/InitiativeContainer-T2SQ4O6J.mjs +267 -0
- package/dist/lib/browser/InitiativeContainer-T2SQ4O6J.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/blueprints/index.mjs +12 -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-POPBT2AQ.mjs +198 -0
- package/dist/lib/browser/chunk-POPBT2AQ.mjs.map +7 -0
- package/dist/lib/browser/chunk-Q4QUMX62.mjs +1974 -0
- package/dist/lib/browser/chunk-Q4QUMX62.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 +251 -215
- 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-I7YJVK4K.mjs +125 -0
- package/dist/lib/browser/react-surface-I7YJVK4K.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 +8 -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-52OWAARX.mjs +201 -0
- package/dist/lib/node-esm/ChatCompanion-52OWAARX.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-VLWSQ3ZO.mjs +74 -0
- package/dist/lib/node-esm/ChatContainer-VLWSQ3ZO.mjs.map +7 -0
- package/dist/lib/node-esm/ChatDialog-5DUQIF2T.mjs +86 -0
- package/dist/lib/node-esm/ChatDialog-5DUQIF2T.mjs.map +7 -0
- package/dist/lib/node-esm/InitiativeContainer-ATD3D23L.mjs +268 -0
- package/dist/lib/node-esm/InitiativeContainer-ATD3D23L.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-WD2IVMAI.mjs → blueprint-definition-H3LFAEK2.mjs} +6 -4
- 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-75PHXBN3.mjs +327 -0
- package/dist/lib/node-esm/chunk-75PHXBN3.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ESDMBGF7.mjs +1975 -0
- package/dist/lib/node-esm/chunk-ESDMBGF7.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-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-73ABYRYX.mjs → chunk-POWB2BPC.mjs} +7 -2
- 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 +251 -215
- 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-2CWJ6GZW.mjs +126 -0
- package/dist/lib/node-esm/react-surface-2CWJ6GZW.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 +8 -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 +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/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 +25 -13
- package/dist/types/src/components/Chat/Chat.d.ts.map +1 -1
- package/dist/types/src/components/Chat/events.d.ts +5 -1
- package/dist/types/src/components/Chat/events.d.ts.map +1 -1
- package/dist/types/src/components/ChatCompanion.d.ts +4 -4
- package/dist/types/src/components/ChatCompanion.d.ts.map +1 -1
- package/dist/types/src/components/ChatContainer.d.ts +14 -6
- 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 +2 -2
- 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 +7 -10
- package/dist/types/src/components/ChatThread/ChatThread.d.ts.map +1 -1
- package/dist/types/src/components/ChatThread/ChatThread.stories.d.ts +246 -73
- 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 +12 -6
- package/dist/types/src/components/ChatThread/sync.d.ts.map +1 -1
- 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 +2 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts +230 -61
- 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 +231 -62
- 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 -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 +10 -8
- package/dist/types/src/components/ToolBlock/ToolBlock.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +6 -7
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.stories.d.ts +230 -60
- 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 -10
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +3 -3
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/functions/{list.d.ts → object-list.d.ts} +3 -3
- package/dist/types/src/functions/object-list.d.ts.map +1 -0
- package/dist/types/src/functions/{load.d.ts → object-load.d.ts} +3 -3
- 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 +2 -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 +5 -2
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatServices.d.ts +5 -5
- 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 +2 -2
- 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 +0 -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/processor/index.d.ts +1 -0
- package/dist/types/src/processor/index.d.ts.map +1 -1
- package/dist/types/src/processor/processor.d.ts +23 -18
- package/dist/types/src/processor/processor.d.ts.map +1 -1
- 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/test-generator.d.ts +5 -4
- 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 +358 -26
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Assistant.d.ts +7 -38
- package/dist/types/src/types/Assistant.d.ts.map +1 -1
- package/dist/types/src/types/AssistantAction.d.ts +90 -100
- package/dist/types/src/types/AssistantAction.d.ts.map +1 -1
- 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/events.d.ts +5 -0
- package/dist/types/src/types/events.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +4 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +10 -212
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +119 -90
- package/src/AssistantPlugin.tsx +114 -112
- 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 +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/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 +28 -20
- package/src/components/BlueprintArticle.tsx +28 -0
- package/src/components/Chat/Chat.tsx +189 -127
- package/src/components/Chat/events.ts +7 -1
- package/src/components/ChatCompanion.tsx +191 -101
- package/src/components/ChatContainer.tsx +48 -31
- package/src/components/ChatDialog.tsx +15 -8
- package/src/components/ChatProgress/ChatProgress.tsx +6 -20
- package/src/components/ChatPrompt/ChatActions.tsx +11 -5
- package/src/components/ChatPrompt/ChatOptions.tsx +93 -80
- package/src/components/ChatPrompt/ChatReferences.tsx +7 -8
- package/src/components/ChatPrompt/ChatStatusIndicator.tsx +1 -1
- package/src/components/ChatThread/ChatThread.stories.tsx +58 -37
- package/src/components/ChatThread/ChatThread.tsx +35 -36
- package/src/components/ChatThread/Link.tsx +4 -4
- package/src/components/ChatThread/registry.tsx +25 -35
- package/src/components/ChatThread/sync.test.ts +33 -17
- package/src/components/ChatThread/sync.ts +53 -12
- 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 +16 -6
- package/src/components/TemplateEditor/TemplateEditor.tsx +24 -12
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +17 -9
- package/src/components/TemplateEditor/TemplateForm.tsx +76 -29
- 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 +36 -45
- package/src/components/Toolbox/Toolbox.stories.tsx +10 -11
- package/src/components/Toolbox/Toolbox.tsx +54 -56
- package/src/components/TriggerStatus/TriggerStatus.tsx +142 -0
- package/src/components/{Toolbar → TriggerStatus}/index.ts +1 -1
- 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 +13 -7
- package/src/functions/index.ts +3 -3
- package/src/functions/{list.ts → object-list.ts} +8 -7
- package/src/functions/object-load.ts +44 -0
- package/src/functions/object-search.ts +46 -0
- package/src/hooks/index.ts +2 -1
- package/src/hooks/useBlueprintRegistry.ts +31 -20
- package/src/hooks/useChatProcessor.ts +17 -13
- package/src/hooks/useChatServices.ts +16 -18
- package/src/hooks/useChatToolbarActions.ts +122 -0
- package/src/hooks/useContextBinder.ts +9 -7
- package/src/hooks/useContextObjects.ts +13 -25
- package/src/hooks/useFilteredTypes.ts +37 -0
- package/src/hooks/useReferencesProvider.ts +7 -6
- package/src/index.ts +0 -1
- package/src/meta.ts +8 -3
- package/src/processor/index.ts +1 -0
- package/src/processor/presets.ts +1 -1
- package/src/processor/processor.test.ts +16 -25
- package/src/processor/processor.ts +72 -73
- package/src/processor/update-name.ts +58 -0
- package/src/queue-logger.ts +8 -9
- package/src/testing/test-generator.ts +14 -13
- package/src/testing/test-services.ts +8 -6
- package/src/translations.ts +51 -18
- package/src/types/Assistant.ts +4 -40
- package/src/types/AssistantAction.ts +67 -53
- package/src/types/capabilities.ts +27 -0
- package/src/types/events.ts +11 -0
- package/src/types/index.ts +6 -1
- package/src/types/service.ts +12 -9
- package/dist/lib/browser/BlueprintContainer-WX2SSDVI.mjs +0 -28
- package/dist/lib/browser/BlueprintContainer-WX2SSDVI.mjs.map +0 -7
- package/dist/lib/browser/ChatCompanion-BDZ55ZRF.mjs +0 -150
- package/dist/lib/browser/ChatCompanion-BDZ55ZRF.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-RYGNN73X.mjs +0 -73
- package/dist/lib/browser/ChatContainer-RYGNN73X.mjs.map +0 -7
- package/dist/lib/browser/ChatDialog-MVHH2U66.mjs +0 -86
- package/dist/lib/browser/ChatDialog-MVHH2U66.mjs.map +0 -7
- package/dist/lib/browser/SequenceContainer-2FEWMQGW.mjs +0 -150
- package/dist/lib/browser/SequenceContainer-2FEWMQGW.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-2U7SLCRX.mjs +0 -154
- package/dist/lib/browser/app-graph-builder-2U7SLCRX.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-NSJARW5U.mjs +0 -12
- package/dist/lib/browser/chunk-2CE2KPKZ.mjs +0 -175
- package/dist/lib/browser/chunk-2CE2KPKZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-43I2LR6O.mjs +0 -216
- package/dist/lib/browser/chunk-43I2LR6O.mjs.map +0 -7
- package/dist/lib/browser/chunk-5EGXHCAZ.mjs +0 -16
- package/dist/lib/browser/chunk-5EGXHCAZ.mjs.map +0 -7
- package/dist/lib/browser/chunk-5RICKAMN.mjs +0 -18
- package/dist/lib/browser/chunk-5RICKAMN.mjs.map +0 -7
- package/dist/lib/browser/chunk-CQ7UHYTT.mjs +0 -296
- package/dist/lib/browser/chunk-CQ7UHYTT.mjs.map +0 -7
- package/dist/lib/browser/chunk-FP56WB24.mjs +0 -212
- package/dist/lib/browser/chunk-FP56WB24.mjs.map +0 -7
- package/dist/lib/browser/chunk-JZRZVB2A.mjs +0 -170
- package/dist/lib/browser/chunk-JZRZVB2A.mjs.map +0 -7
- package/dist/lib/browser/chunk-WRJGOT5P.mjs +0 -1794
- package/dist/lib/browser/chunk-WRJGOT5P.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-3GOJMBXJ.mjs +0 -114
- package/dist/lib/browser/intent-resolver-3GOJMBXJ.mjs.map +0 -7
- package/dist/lib/browser/local-model-resolver-GO6ZEMLL.mjs +0 -17
- package/dist/lib/browser/local-model-resolver-GO6ZEMLL.mjs.map +0 -7
- package/dist/lib/browser/react-surface-FTKCE6GG.mjs +0 -107
- package/dist/lib/browser/react-surface-FTKCE6GG.mjs.map +0 -7
- package/dist/lib/browser/settings-HBF32KV6.mjs +0 -23
- package/dist/lib/browser/settings-HBF32KV6.mjs.map +0 -7
- package/dist/lib/browser/state-LXTS54DI.mjs +0 -21
- package/dist/lib/browser/state-LXTS54DI.mjs.map +0 -7
- package/dist/lib/browser/toolkit-NQ2GXCF5.mjs +0 -199
- package/dist/lib/browser/toolkit-NQ2GXCF5.mjs.map +0 -7
- package/dist/lib/node-esm/BlueprintContainer-4MKN6ZRB.mjs +0 -29
- package/dist/lib/node-esm/BlueprintContainer-4MKN6ZRB.mjs.map +0 -7
- package/dist/lib/node-esm/ChatCompanion-XFNXVZIP.mjs +0 -151
- package/dist/lib/node-esm/ChatCompanion-XFNXVZIP.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-UTJGCQXF.mjs +0 -74
- package/dist/lib/node-esm/ChatContainer-UTJGCQXF.mjs.map +0 -7
- package/dist/lib/node-esm/ChatDialog-QEYZ4IOV.mjs +0 -87
- package/dist/lib/node-esm/ChatDialog-QEYZ4IOV.mjs.map +0 -7
- package/dist/lib/node-esm/SequenceContainer-PGGJUQ46.mjs +0 -151
- package/dist/lib/node-esm/SequenceContainer-PGGJUQ46.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-OKNLR7H2.mjs +0 -155
- package/dist/lib/node-esm/app-graph-builder-OKNLR7H2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-73ABYRYX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-DSE2IILK.mjs +0 -217
- package/dist/lib/node-esm/chunk-DSE2IILK.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-E2WXZND7.mjs +0 -297
- package/dist/lib/node-esm/chunk-E2WXZND7.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HXIBCBH4.mjs +0 -171
- package/dist/lib/node-esm/chunk-HXIBCBH4.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TNR46C3L.mjs +0 -213
- package/dist/lib/node-esm/chunk-TNR46C3L.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-U2NYUS2N.mjs +0 -177
- package/dist/lib/node-esm/chunk-U2NYUS2N.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-UFKLCEAE.mjs +0 -1795
- package/dist/lib/node-esm/chunk-UFKLCEAE.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XQGWSZ4T.mjs +0 -17
- package/dist/lib/node-esm/chunk-XQGWSZ4T.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-6XLVTRDJ.mjs +0 -115
- package/dist/lib/node-esm/intent-resolver-6XLVTRDJ.mjs.map +0 -7
- package/dist/lib/node-esm/local-model-resolver-WOQ2D2R2.mjs +0 -18
- package/dist/lib/node-esm/local-model-resolver-WOQ2D2R2.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-K7ZXQLAP.mjs +0 -108
- package/dist/lib/node-esm/react-surface-K7ZXQLAP.mjs.map +0 -7
- package/dist/lib/node-esm/settings-CWP6MTWP.mjs +0 -24
- package/dist/lib/node-esm/settings-CWP6MTWP.mjs.map +0 -7
- package/dist/lib/node-esm/state-BO6GUFLB.mjs +0 -22
- package/dist/lib/node-esm/state-BO6GUFLB.mjs.map +0 -7
- package/dist/lib/node-esm/toolkit-V57PRJNG.mjs +0 -200
- package/dist/lib/node-esm/toolkit-V57PRJNG.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 -11
- 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/BlueprintContainer.d.ts +0 -8
- package/dist/types/src/components/BlueprintContainer.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/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 -269
- 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/TemplateEditor/handlebars-extension.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +0 -5
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/index.d.ts +0 -2
- package/dist/types/src/components/Toolbar/index.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/useChatToolbarActions.d.ts +0 -11
- package/dist/types/src/components/Toolbar/useChatToolbarActions.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/list.d.ts.map +0 -1
- package/dist/types/src/functions/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/src/capabilities/ai-service.ts +0 -27
- package/src/capabilities/app-graph-builder.ts +0 -163
- package/src/capabilities/blueprint-definition.ts +0 -64
- package/src/capabilities/capabilities.ts +0 -18
- package/src/capabilities/edge-model-resolver.ts +0 -25
- package/src/capabilities/intent-resolver.ts +0 -96
- package/src/capabilities/local-model-resolver.ts +0 -30
- package/src/capabilities/react-surface.tsx +0 -91
- package/src/capabilities/settings.ts +0 -19
- package/src/capabilities/state.ts +0 -20
- package/src/capabilities/toolkit.ts +0 -168
- package/src/components/BlueprintContainer.tsx +0 -24
- package/src/components/ChatThread/reducers.ts +0 -151
- package/src/components/PromptSettings.tsx +0 -90
- package/src/components/SequenceContainer.tsx +0 -131
- package/src/components/SequenceEditor/SequenceEditor.stories.tsx +0 -35
- package/src/components/SequenceEditor/SequenceEditor.tsx +0 -50
- package/src/components/SequenceEditor/index.ts +0 -5
- package/src/components/TemplateEditor/handlebars-extension.ts +0 -165
- package/src/components/Toolbar/Toolbar.tsx +0 -21
- package/src/components/Toolbar/useChatToolbarActions.ts +0 -126
- package/src/events.ts +0 -11
- package/src/functions/analysis.ts +0 -22
- package/src/functions/load.ts +0 -46
- package/src/hooks/useItemTypes.ts +0 -37
- /package/dist/lib/browser/{blueprint-definition-NSJARW5U.mjs.map → blueprint-definition-YAGWYVCL.mjs.map} +0 -0
- /package/dist/lib/{node-esm/blueprint-definition-WD2IVMAI.mjs.map → browser/blueprints/index.mjs.map} +0 -0
- /package/dist/types/src/components/TemplateEditor/{handlebars-extension.d.ts → extensions/handlebars-extension.d.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/SequenceContainer.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,KAAK,QAAQ,EAA2B,MAAM,iBAAiB,CAAC;AAWzE,eAAO,MAAM,WAAW,yCAAyC,CAAC;AAalE,eAAO,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,QAAQ,CAAA;CAAE,sBAgGrE,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SequenceDefinition } from '@dxos/conductor';
|
|
3
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
4
|
-
import { type EditorView } from '@dxos/react-ui-editor';
|
|
5
|
-
export type SequenceEditorProps = ThemedClassName<{
|
|
6
|
-
sequence: SequenceDefinition;
|
|
7
|
-
}>;
|
|
8
|
-
export declare const SequenceEditor: React.ForwardRefExoticComponent<Omit<{
|
|
9
|
-
sequence: SequenceDefinition;
|
|
10
|
-
}, "className"> & {
|
|
11
|
-
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
12
|
-
} & React.RefAttributes<EditorView | null>>;
|
|
13
|
-
//# sourceMappingURL=SequenceEditor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/SequenceEditor/SequenceEditor.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAE/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EACL,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,mBAAmB,GAAG,eAAe,CAAC;IAChD,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,CAAC,CAAC;AAGH,eAAO,MAAM,cAAc;cAJf,kBAAkB;;;2CA8B7B,CAAC"}
|
|
@@ -1,269 +0,0 @@
|
|
|
1
|
-
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { SequenceEditor } from './SequenceEditor';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.ForwardRefExoticComponent<Omit<{
|
|
7
|
-
sequence: import("@dxos/conductor").SequenceDefinition;
|
|
8
|
-
}, "className"> & {
|
|
9
|
-
classNames?: import("@dxos/react-ui-types").ClassNameValue;
|
|
10
|
-
} & React.RefAttributes<import("@codemirror/view").EditorView | null>>;
|
|
11
|
-
render: () => React.JSX.Element;
|
|
12
|
-
decorators: import("@storybook/react").Decorator[];
|
|
13
|
-
parameters: {
|
|
14
|
-
layout: string;
|
|
15
|
-
translations: [{
|
|
16
|
-
readonly 'en-US': {
|
|
17
|
-
readonly [x: string]: {
|
|
18
|
-
readonly 'typename label': "Blueprint";
|
|
19
|
-
readonly 'typename label_zero': "Blueprints";
|
|
20
|
-
readonly 'typename label_one': "Blueprint";
|
|
21
|
-
readonly 'typename label_other': "Blueprints";
|
|
22
|
-
readonly 'object name placeholder': "New blueprint";
|
|
23
|
-
readonly 'rename object label': "Rename blueprint";
|
|
24
|
-
readonly 'delete object label': "Delete blueprint";
|
|
25
|
-
readonly 'templates label'?: undefined;
|
|
26
|
-
readonly 'open ambient chat label'?: undefined;
|
|
27
|
-
readonly 'assistant chat label'?: undefined;
|
|
28
|
-
readonly 'plugin name'?: undefined;
|
|
29
|
-
readonly 'settings title'?: undefined;
|
|
30
|
-
readonly 'object placeholder'?: undefined;
|
|
31
|
-
readonly 'create object label'?: undefined;
|
|
32
|
-
readonly 'create trigger label'?: undefined;
|
|
33
|
-
readonly 'create stack section label'?: undefined;
|
|
34
|
-
readonly 'command placeholder'?: undefined;
|
|
35
|
-
readonly 'template placeholder'?: undefined;
|
|
36
|
-
readonly 'value placeholder'?: undefined;
|
|
37
|
-
readonly 'prompt rules label'?: undefined;
|
|
38
|
-
readonly 'typename placeholder'?: undefined;
|
|
39
|
-
readonly 'description placeholder'?: undefined;
|
|
40
|
-
readonly 'select preset template placeholder'?: undefined;
|
|
41
|
-
readonly 'service registry label'?: undefined;
|
|
42
|
-
readonly 'type filter placeholder'?: undefined;
|
|
43
|
-
readonly 'any type filter label'?: undefined;
|
|
44
|
-
readonly 'no blueprint message'?: undefined;
|
|
45
|
-
readonly 'calling tool label'?: undefined;
|
|
46
|
-
readonly 'calling label'?: undefined;
|
|
47
|
-
readonly 'error label'?: undefined;
|
|
48
|
-
readonly 'sequence logs label'?: undefined;
|
|
49
|
-
readonly 'assistant dialog title'?: undefined;
|
|
50
|
-
readonly 'open assistant label'?: undefined;
|
|
51
|
-
readonly 'no tools'?: undefined;
|
|
52
|
-
readonly 'no results'?: undefined;
|
|
53
|
-
readonly 'button retry'?: undefined;
|
|
54
|
-
readonly 'button suggestion'?: undefined;
|
|
55
|
-
readonly 'button select option'?: undefined;
|
|
56
|
-
readonly 'button cancel'?: undefined;
|
|
57
|
-
readonly 'button save'?: undefined;
|
|
58
|
-
readonly 'button run'?: undefined;
|
|
59
|
-
readonly 'button new thread'?: undefined;
|
|
60
|
-
readonly 'chat history label'?: undefined;
|
|
61
|
-
readonly 'toolkit label'?: undefined;
|
|
62
|
-
readonly 'summary label'?: undefined;
|
|
63
|
-
readonly 'search placeholder'?: undefined;
|
|
64
|
-
readonly 'prompt placeholder'?: undefined;
|
|
65
|
-
readonly 'button context objects'?: undefined;
|
|
66
|
-
readonly 'button context settings'?: undefined;
|
|
67
|
-
readonly 'button microphone'?: undefined;
|
|
68
|
-
readonly 'button cancel processing'?: undefined;
|
|
69
|
-
readonly 'blueprints in context title'?: undefined;
|
|
70
|
-
readonly 'objects in context title'?: undefined;
|
|
71
|
-
readonly 'remove object in context label'?: undefined;
|
|
72
|
-
readonly 'chat model title'?: undefined;
|
|
73
|
-
readonly 'settings default label'?: undefined;
|
|
74
|
-
readonly 'settings custom prompts label'?: undefined;
|
|
75
|
-
readonly 'settings llm provider label'?: undefined;
|
|
76
|
-
readonly 'settings edge llm model label'?: undefined;
|
|
77
|
-
readonly 'settings ollama llm model label'?: undefined;
|
|
78
|
-
} | {
|
|
79
|
-
readonly 'typename label': "Sequence";
|
|
80
|
-
readonly 'typename label_zero': "Sequences";
|
|
81
|
-
readonly 'typename label_one': "Sequence";
|
|
82
|
-
readonly 'typename label_other': "Sequences";
|
|
83
|
-
readonly 'object name placeholder': "New sequence";
|
|
84
|
-
readonly 'rename object label': "Rename sequence";
|
|
85
|
-
readonly 'delete object label': "Delete sequence";
|
|
86
|
-
readonly 'templates label'?: undefined;
|
|
87
|
-
readonly 'open ambient chat label'?: undefined;
|
|
88
|
-
readonly 'assistant chat label'?: undefined;
|
|
89
|
-
readonly 'plugin name'?: undefined;
|
|
90
|
-
readonly 'settings title'?: undefined;
|
|
91
|
-
readonly 'object placeholder'?: undefined;
|
|
92
|
-
readonly 'create object label'?: undefined;
|
|
93
|
-
readonly 'create trigger label'?: undefined;
|
|
94
|
-
readonly 'create stack section label'?: undefined;
|
|
95
|
-
readonly 'command placeholder'?: undefined;
|
|
96
|
-
readonly 'template placeholder'?: undefined;
|
|
97
|
-
readonly 'value placeholder'?: undefined;
|
|
98
|
-
readonly 'prompt rules label'?: undefined;
|
|
99
|
-
readonly 'typename placeholder'?: undefined;
|
|
100
|
-
readonly 'description placeholder'?: undefined;
|
|
101
|
-
readonly 'select preset template placeholder'?: undefined;
|
|
102
|
-
readonly 'service registry label'?: undefined;
|
|
103
|
-
readonly 'type filter placeholder'?: undefined;
|
|
104
|
-
readonly 'any type filter label'?: undefined;
|
|
105
|
-
readonly 'no blueprint message'?: undefined;
|
|
106
|
-
readonly 'calling tool label'?: undefined;
|
|
107
|
-
readonly 'calling label'?: undefined;
|
|
108
|
-
readonly 'error label'?: undefined;
|
|
109
|
-
readonly 'sequence logs label'?: undefined;
|
|
110
|
-
readonly 'assistant dialog title'?: undefined;
|
|
111
|
-
readonly 'open assistant label'?: undefined;
|
|
112
|
-
readonly 'no tools'?: undefined;
|
|
113
|
-
readonly 'no results'?: undefined;
|
|
114
|
-
readonly 'button retry'?: undefined;
|
|
115
|
-
readonly 'button suggestion'?: undefined;
|
|
116
|
-
readonly 'button select option'?: undefined;
|
|
117
|
-
readonly 'button cancel'?: undefined;
|
|
118
|
-
readonly 'button save'?: undefined;
|
|
119
|
-
readonly 'button run'?: undefined;
|
|
120
|
-
readonly 'button new thread'?: undefined;
|
|
121
|
-
readonly 'chat history label'?: undefined;
|
|
122
|
-
readonly 'toolkit label'?: undefined;
|
|
123
|
-
readonly 'summary label'?: undefined;
|
|
124
|
-
readonly 'search placeholder'?: undefined;
|
|
125
|
-
readonly 'prompt placeholder'?: undefined;
|
|
126
|
-
readonly 'button context objects'?: undefined;
|
|
127
|
-
readonly 'button context settings'?: undefined;
|
|
128
|
-
readonly 'button microphone'?: undefined;
|
|
129
|
-
readonly 'button cancel processing'?: undefined;
|
|
130
|
-
readonly 'blueprints in context title'?: undefined;
|
|
131
|
-
readonly 'objects in context title'?: undefined;
|
|
132
|
-
readonly 'remove object in context label'?: undefined;
|
|
133
|
-
readonly 'chat model title'?: undefined;
|
|
134
|
-
readonly 'settings default label'?: undefined;
|
|
135
|
-
readonly 'settings custom prompts label'?: undefined;
|
|
136
|
-
readonly 'settings llm provider label'?: undefined;
|
|
137
|
-
readonly 'settings edge llm model label'?: undefined;
|
|
138
|
-
readonly 'settings ollama llm model label'?: undefined;
|
|
139
|
-
} | {
|
|
140
|
-
readonly 'typename label': "AI Chat";
|
|
141
|
-
readonly 'object name placeholder': "New AI Chat";
|
|
142
|
-
readonly 'rename object label': "Rename AI Chat";
|
|
143
|
-
readonly 'delete object label': "Delete AI Chat";
|
|
144
|
-
readonly 'typename label_zero'?: undefined;
|
|
145
|
-
readonly 'typename label_one'?: undefined;
|
|
146
|
-
readonly 'typename label_other'?: undefined;
|
|
147
|
-
readonly 'templates label'?: undefined;
|
|
148
|
-
readonly 'open ambient chat label'?: undefined;
|
|
149
|
-
readonly 'assistant chat label'?: undefined;
|
|
150
|
-
readonly 'plugin name'?: undefined;
|
|
151
|
-
readonly 'settings title'?: undefined;
|
|
152
|
-
readonly 'object placeholder'?: undefined;
|
|
153
|
-
readonly 'create object label'?: undefined;
|
|
154
|
-
readonly 'create trigger label'?: undefined;
|
|
155
|
-
readonly 'create stack section label'?: undefined;
|
|
156
|
-
readonly 'command placeholder'?: undefined;
|
|
157
|
-
readonly 'template placeholder'?: undefined;
|
|
158
|
-
readonly 'value placeholder'?: undefined;
|
|
159
|
-
readonly 'prompt rules label'?: undefined;
|
|
160
|
-
readonly 'typename placeholder'?: undefined;
|
|
161
|
-
readonly 'description placeholder'?: undefined;
|
|
162
|
-
readonly 'select preset template placeholder'?: undefined;
|
|
163
|
-
readonly 'service registry label'?: undefined;
|
|
164
|
-
readonly 'type filter placeholder'?: undefined;
|
|
165
|
-
readonly 'any type filter label'?: undefined;
|
|
166
|
-
readonly 'no blueprint message'?: undefined;
|
|
167
|
-
readonly 'calling tool label'?: undefined;
|
|
168
|
-
readonly 'calling label'?: undefined;
|
|
169
|
-
readonly 'error label'?: undefined;
|
|
170
|
-
readonly 'sequence logs label'?: undefined;
|
|
171
|
-
readonly 'assistant dialog title'?: undefined;
|
|
172
|
-
readonly 'open assistant label'?: undefined;
|
|
173
|
-
readonly 'no tools'?: undefined;
|
|
174
|
-
readonly 'no results'?: undefined;
|
|
175
|
-
readonly 'button retry'?: undefined;
|
|
176
|
-
readonly 'button suggestion'?: undefined;
|
|
177
|
-
readonly 'button select option'?: undefined;
|
|
178
|
-
readonly 'button cancel'?: undefined;
|
|
179
|
-
readonly 'button save'?: undefined;
|
|
180
|
-
readonly 'button run'?: undefined;
|
|
181
|
-
readonly 'button new thread'?: undefined;
|
|
182
|
-
readonly 'chat history label'?: undefined;
|
|
183
|
-
readonly 'toolkit label'?: undefined;
|
|
184
|
-
readonly 'summary label'?: undefined;
|
|
185
|
-
readonly 'search placeholder'?: undefined;
|
|
186
|
-
readonly 'prompt placeholder'?: undefined;
|
|
187
|
-
readonly 'button context objects'?: undefined;
|
|
188
|
-
readonly 'button context settings'?: undefined;
|
|
189
|
-
readonly 'button microphone'?: undefined;
|
|
190
|
-
readonly 'button cancel processing'?: undefined;
|
|
191
|
-
readonly 'blueprints in context title'?: undefined;
|
|
192
|
-
readonly 'objects in context title'?: undefined;
|
|
193
|
-
readonly 'remove object in context label'?: undefined;
|
|
194
|
-
readonly 'chat model title'?: undefined;
|
|
195
|
-
readonly 'settings default label'?: undefined;
|
|
196
|
-
readonly 'settings custom prompts label'?: undefined;
|
|
197
|
-
readonly 'settings llm provider label'?: undefined;
|
|
198
|
-
readonly 'settings edge llm model label'?: undefined;
|
|
199
|
-
readonly 'settings ollama llm model label'?: undefined;
|
|
200
|
-
} | {
|
|
201
|
-
readonly 'templates label': "Templates";
|
|
202
|
-
readonly 'open ambient chat label': "Open Assistant";
|
|
203
|
-
readonly 'assistant chat label': "Assistant";
|
|
204
|
-
readonly 'plugin name': "Assistant";
|
|
205
|
-
readonly 'settings title': "Assistant settings";
|
|
206
|
-
readonly 'object placeholder': "New prompt";
|
|
207
|
-
readonly 'create object label': "Create prompt";
|
|
208
|
-
readonly 'create trigger label': "Create trigger";
|
|
209
|
-
readonly 'create stack section label': "Create prompt";
|
|
210
|
-
readonly 'command placeholder': "Enter slash command...";
|
|
211
|
-
readonly 'template placeholder': "Enter template...";
|
|
212
|
-
readonly 'value placeholder': "Enter value...";
|
|
213
|
-
readonly 'prompt rules label': "Prompt Rules";
|
|
214
|
-
readonly 'typename placeholder': "Enter typename of objects which this template is for";
|
|
215
|
-
readonly 'description placeholder': "Enter description of when this template should be used";
|
|
216
|
-
readonly 'select preset template placeholder': "Select preset";
|
|
217
|
-
readonly 'service registry label': "Service Registry";
|
|
218
|
-
readonly 'type filter placeholder': "Type";
|
|
219
|
-
readonly 'any type filter label': "Any";
|
|
220
|
-
readonly 'no blueprint message': "No active blueprints";
|
|
221
|
-
readonly 'calling tool label': "Calling tool...";
|
|
222
|
-
readonly 'calling label': "Calling";
|
|
223
|
-
readonly 'error label': "Error";
|
|
224
|
-
readonly 'sequence logs label': "Logs";
|
|
225
|
-
readonly 'assistant dialog title': "Assistant";
|
|
226
|
-
readonly 'open assistant label': "Open assistant";
|
|
227
|
-
readonly 'no tools': "No tools are configured";
|
|
228
|
-
readonly 'no results': "No results";
|
|
229
|
-
readonly 'button retry': "Retry";
|
|
230
|
-
readonly 'button suggestion': "Assistant suggestion";
|
|
231
|
-
readonly 'button select option': "Select option";
|
|
232
|
-
readonly 'button cancel': "Cancel";
|
|
233
|
-
readonly 'button save': "Save";
|
|
234
|
-
readonly 'button run': "Run";
|
|
235
|
-
readonly 'button new thread': "New Chat";
|
|
236
|
-
readonly 'chat history label': "Chat History";
|
|
237
|
-
readonly 'toolkit label': "Toolkit";
|
|
238
|
-
readonly 'summary label': "Summary";
|
|
239
|
-
readonly 'search placeholder': "Search...";
|
|
240
|
-
readonly 'prompt placeholder': "Enter question or command...";
|
|
241
|
-
readonly 'button context objects': "Add to context";
|
|
242
|
-
readonly 'button context settings': "Chat settings";
|
|
243
|
-
readonly 'button microphone': "Click to speak";
|
|
244
|
-
readonly 'button cancel processing': "Stop processing";
|
|
245
|
-
readonly 'blueprints in context title': "Blueprints";
|
|
246
|
-
readonly 'objects in context title': "Content";
|
|
247
|
-
readonly 'remove object in context label': "Remove document";
|
|
248
|
-
readonly 'chat model title': "Model";
|
|
249
|
-
readonly 'settings default label': "Default";
|
|
250
|
-
readonly 'settings custom prompts label': "Use custom prompts";
|
|
251
|
-
readonly 'settings llm provider label': "LLM provider";
|
|
252
|
-
readonly 'settings edge llm model label': "Remote language model";
|
|
253
|
-
readonly 'settings ollama llm model label': "Ollama language model";
|
|
254
|
-
readonly 'typename label'?: undefined;
|
|
255
|
-
readonly 'typename label_zero'?: undefined;
|
|
256
|
-
readonly 'typename label_one'?: undefined;
|
|
257
|
-
readonly 'typename label_other'?: undefined;
|
|
258
|
-
readonly 'object name placeholder'?: undefined;
|
|
259
|
-
readonly 'rename object label'?: undefined;
|
|
260
|
-
readonly 'delete object label'?: undefined;
|
|
261
|
-
};
|
|
262
|
-
};
|
|
263
|
-
}];
|
|
264
|
-
};
|
|
265
|
-
};
|
|
266
|
-
export default meta;
|
|
267
|
-
type Story = StoryObj<typeof SequenceEditor>;
|
|
268
|
-
export declare const Default: Story;
|
|
269
|
-
//# sourceMappingURL=SequenceEditor.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SequenceEditor.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/SequenceEditor/SequenceEditor.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAU6B,CAAC;AAExC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,cAAc,CAAC,CAAC;AAE7C,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SequenceEditor/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"handlebars-extension.d.ts","sourceRoot":"","sources":["../../../../../src/components/TemplateEditor/handlebars-extension.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAGnD,MAAM,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAEnC;;;;;;;GAOG;AACH,eAAO,MAAM,UAAU,GAAI,IAAG,iBAAsB,KAAG,SAWtD,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
-
import { type ChatToolbarActionsProps } from './useChatToolbarActions';
|
|
4
|
-
export declare const Toolbar: ({ chat, companionTo, onReset, classNames }: ThemedClassName<ChatToolbarActionsProps>) => React.JSX.Element;
|
|
5
|
-
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/Toolbar.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,EAAE,KAAK,uBAAuB,EAAyB,MAAM,yBAAyB,CAAC;AAE9F,eAAO,MAAM,OAAO,GAAI,4CAA4C,eAAe,CAAC,uBAAuB,CAAC,sBAQ3G,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Obj } from '@dxos/echo';
|
|
2
|
-
import { Assistant } from '../../types';
|
|
3
|
-
export type ChatToolbarActionsProps = {
|
|
4
|
-
chat: Assistant.Chat;
|
|
5
|
-
companionTo?: Obj.Any;
|
|
6
|
-
onReset?: () => void;
|
|
7
|
-
};
|
|
8
|
-
export declare const useChatToolbarActions: ({ chat, companionTo, onReset }: ChatToolbarActionsProps) => {
|
|
9
|
-
useGroupItems: (sourceNode?: import("@dxos/react-ui-menu").MenuItemGroup) => import("@dxos/react-ui-menu").MenuItem[];
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=useChatToolbarActions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useChatToolbarActions.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbar/useChatToolbarActions.ts"],"names":[],"mappings":"AASA,OAAO,EAAU,GAAG,EAAS,MAAM,YAAY,CAAC;AAOhD,OAAO,EAAE,SAAS,EAAmB,MAAM,aAAa,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC;IACrB,WAAW,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,gCAAgC,uBAAuB;8BAX5E,CAAC;CAgHjB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/events.ts"],"names":[],"mappings":"AAQA,yBAAiB,eAAe,CAAC;IACxB,MAAM,uBAAuB,+CAA6D,CAAC;CACnG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"analysis.d.ts","sourceRoot":"","sources":["../../../../src/functions/analysis.ts"],"names":[],"mappings":";;;AAUA,wBAWG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/functions/list.ts"],"names":[],"mappings":";;;;;;;;AAYA,wBAmCG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../src/functions/load.ts"],"names":[],"mappings":";;;;;;AAeA,wBA8BG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useItemTypes.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useItemTypes.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAIrD,eAAO,MAAM,YAAY,GAAI,QAAQ,KAAK,KAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAwBxD,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2023 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Layer from 'effect/Layer';
|
|
7
|
-
|
|
8
|
-
import * as AiServiceRouter from '@dxos/ai/AiServiceRouter';
|
|
9
|
-
import { Capabilities, type PluginContext, contributes } from '@dxos/app-framework';
|
|
10
|
-
|
|
11
|
-
export default (context: PluginContext) => {
|
|
12
|
-
const resolvers = context.getCapabilities(Capabilities.AiModelResolver);
|
|
13
|
-
|
|
14
|
-
// TODO(dmaretskyi): Extract function to reduce them.
|
|
15
|
-
const combinedLayer = resolvers.reduce(
|
|
16
|
-
(acc, resolver) => resolver.pipe(Layer.provide(acc)),
|
|
17
|
-
AiServiceRouter.AiModelResolver.fromModelMap(Effect.succeed({})), // Empty resolver as fallback.
|
|
18
|
-
);
|
|
19
|
-
|
|
20
|
-
return [
|
|
21
|
-
// TODO(dmaretskyi): Read config from settings.
|
|
22
|
-
contributes(
|
|
23
|
-
Capabilities.AiServiceLayer,
|
|
24
|
-
AiServiceRouter.AiModelResolver.buildAiService.pipe(Layer.provide(combinedLayer)),
|
|
25
|
-
),
|
|
26
|
-
];
|
|
27
|
-
};
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Rx } from '@effect-rx/rx-react';
|
|
6
|
-
import * as Function from 'effect/Function';
|
|
7
|
-
import * as Option from 'effect/Option';
|
|
8
|
-
|
|
9
|
-
import {
|
|
10
|
-
Capabilities,
|
|
11
|
-
LayoutAction,
|
|
12
|
-
type PluginContext,
|
|
13
|
-
type PromiseIntentDispatcher,
|
|
14
|
-
contributes,
|
|
15
|
-
createIntent,
|
|
16
|
-
} from '@dxos/app-framework';
|
|
17
|
-
import { Sequence } from '@dxos/conductor';
|
|
18
|
-
import { Obj } from '@dxos/echo';
|
|
19
|
-
import { invariant } from '@dxos/invariant';
|
|
20
|
-
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
21
|
-
import { ATTENDABLE_PATH_SEPARATOR, PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
22
|
-
import { ROOT_ID, createExtension, rxFromSignal } from '@dxos/plugin-graph';
|
|
23
|
-
import { getActiveSpace } from '@dxos/plugin-space';
|
|
24
|
-
import { SpaceAction } from '@dxos/plugin-space/types';
|
|
25
|
-
import { Query, type Space, fullyQualifiedId } from '@dxos/react-client/echo';
|
|
26
|
-
|
|
27
|
-
import { ASSISTANT_DIALOG, meta } from '../meta';
|
|
28
|
-
import { Assistant, AssistantAction } from '../types';
|
|
29
|
-
|
|
30
|
-
import { AssistantCapabilities } from './capabilities';
|
|
31
|
-
|
|
32
|
-
export default (context: PluginContext) =>
|
|
33
|
-
contributes(Capabilities.AppGraphBuilder, [
|
|
34
|
-
createExtension({
|
|
35
|
-
id: `${meta.id}/assistant`,
|
|
36
|
-
actions: (node) =>
|
|
37
|
-
Rx.make((get) =>
|
|
38
|
-
Function.pipe(
|
|
39
|
-
get(node),
|
|
40
|
-
Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),
|
|
41
|
-
Option.map(() => [
|
|
42
|
-
{
|
|
43
|
-
id: `${LayoutAction.UpdateDialog._tag}/assistant/open`,
|
|
44
|
-
data: async () => {
|
|
45
|
-
const { dispatchPromise: dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
46
|
-
const client = context.getCapability(ClientCapabilities.Client);
|
|
47
|
-
const space = getActiveSpace(context) ?? client.spaces.default;
|
|
48
|
-
const chat = await getOrCreateChat(dispatch, space);
|
|
49
|
-
if (!chat) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
await dispatch(
|
|
54
|
-
createIntent(LayoutAction.UpdateDialog, {
|
|
55
|
-
part: 'dialog',
|
|
56
|
-
subject: ASSISTANT_DIALOG,
|
|
57
|
-
options: {
|
|
58
|
-
state: true,
|
|
59
|
-
blockAlign: 'end',
|
|
60
|
-
props: {
|
|
61
|
-
chat,
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
}),
|
|
65
|
-
);
|
|
66
|
-
},
|
|
67
|
-
properties: {
|
|
68
|
-
label: ['open assistant label', { ns: meta.id }],
|
|
69
|
-
icon: 'ph--sparkle--regular',
|
|
70
|
-
disposition: 'pin-end',
|
|
71
|
-
position: 'hoist',
|
|
72
|
-
keyBinding: {
|
|
73
|
-
macos: 'shift+meta+k',
|
|
74
|
-
windows: 'shift+ctrl+k',
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
]),
|
|
79
|
-
Option.getOrElse(() => []),
|
|
80
|
-
),
|
|
81
|
-
),
|
|
82
|
-
}),
|
|
83
|
-
|
|
84
|
-
createExtension({
|
|
85
|
-
id: `${meta.id}/companion-chat`,
|
|
86
|
-
connector: (node) => {
|
|
87
|
-
return Rx.make((get) =>
|
|
88
|
-
Function.pipe(
|
|
89
|
-
get(node),
|
|
90
|
-
Option.flatMap((node) => (Obj.isObject(node.data) ? Option.some(node.data) : Option.none())),
|
|
91
|
-
Option.map((object) => {
|
|
92
|
-
const currentChat = get(
|
|
93
|
-
rxFromSignal(
|
|
94
|
-
() => context.getCapability(AssistantCapabilities.State).currentChat[fullyQualifiedId(object)],
|
|
95
|
-
),
|
|
96
|
-
);
|
|
97
|
-
|
|
98
|
-
return [
|
|
99
|
-
{
|
|
100
|
-
id: [fullyQualifiedId(object), 'assistant-chat'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
101
|
-
type: PLANK_COMPANION_TYPE,
|
|
102
|
-
data: currentChat ?? 'assistant-chat',
|
|
103
|
-
properties: {
|
|
104
|
-
label: ['assistant chat label', { ns: meta.id }],
|
|
105
|
-
icon: 'ph--sparkle--regular',
|
|
106
|
-
position: 'hoist',
|
|
107
|
-
disposition: 'hidden',
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
];
|
|
111
|
-
}),
|
|
112
|
-
Option.getOrElse(() => []),
|
|
113
|
-
),
|
|
114
|
-
);
|
|
115
|
-
},
|
|
116
|
-
}),
|
|
117
|
-
|
|
118
|
-
createExtension({
|
|
119
|
-
id: `${meta.id}/sequence-logs`,
|
|
120
|
-
connector: (node) =>
|
|
121
|
-
Rx.make((get) =>
|
|
122
|
-
Function.pipe(
|
|
123
|
-
get(node),
|
|
124
|
-
Option.flatMap((node) => (Obj.instanceOf(Sequence, node.data) ? Option.some(node) : Option.none())),
|
|
125
|
-
Option.map((node) => [
|
|
126
|
-
{
|
|
127
|
-
id: [node.id, 'logs'].join(ATTENDABLE_PATH_SEPARATOR),
|
|
128
|
-
type: PLANK_COMPANION_TYPE,
|
|
129
|
-
data: 'logs',
|
|
130
|
-
properties: {
|
|
131
|
-
label: ['sequence logs label', { ns: meta.id }],
|
|
132
|
-
icon: 'ph--clock-countdown--regular',
|
|
133
|
-
disposition: 'hidden',
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
]),
|
|
137
|
-
Option.getOrElse(() => []),
|
|
138
|
-
),
|
|
139
|
-
),
|
|
140
|
-
}),
|
|
141
|
-
]);
|
|
142
|
-
|
|
143
|
-
// TODO(burdon): Factor out.
|
|
144
|
-
const getOrCreateChat = async (
|
|
145
|
-
dispatch: PromiseIntentDispatcher,
|
|
146
|
-
space: Space,
|
|
147
|
-
): Promise<Assistant.Chat | undefined> => {
|
|
148
|
-
// TODO(wittjosiah): This should be possible with a single query.
|
|
149
|
-
const { objects: allChats } = await space.db.query(Query.type(Assistant.Chat)).run();
|
|
150
|
-
const { objects: relatedChats } = await space.db
|
|
151
|
-
.query(Query.type(Assistant.Chat).sourceOf(Assistant.CompanionTo).source())
|
|
152
|
-
.run();
|
|
153
|
-
|
|
154
|
-
const chats = allChats.filter((chat) => !relatedChats.includes(chat));
|
|
155
|
-
if (chats.length > 0) {
|
|
156
|
-
return chats.at(-1);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
const { data } = await dispatch(createIntent(AssistantAction.CreateChat, { space }));
|
|
160
|
-
invariant(Obj.instanceOf(Assistant.Chat, data?.object));
|
|
161
|
-
await dispatch(createIntent(SpaceAction.AddObject, { target: space, object: data.object }));
|
|
162
|
-
return data.object;
|
|
163
|
-
};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { Capabilities, type Capability, contributes } from '@dxos/app-framework';
|
|
6
|
-
import { templates } from '@dxos/assistant';
|
|
7
|
-
import {
|
|
8
|
-
DISCORD_BLUEPRINT,
|
|
9
|
-
LINEAR_BLUEPRINT,
|
|
10
|
-
RESEARCH_BLUEPRINT,
|
|
11
|
-
WEB_SEARCH_BLUEPRINT,
|
|
12
|
-
agent,
|
|
13
|
-
createResearchNote,
|
|
14
|
-
entityExtraction,
|
|
15
|
-
fetchDiscordMessages,
|
|
16
|
-
research,
|
|
17
|
-
syncLinearIssues,
|
|
18
|
-
} from '@dxos/assistant-testing';
|
|
19
|
-
import { Blueprint } from '@dxos/blueprints';
|
|
20
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
21
|
-
|
|
22
|
-
import { analysis, list, load } from '../functions';
|
|
23
|
-
|
|
24
|
-
const functions: FunctionDefinition[] = [analysis, list, load];
|
|
25
|
-
const tools = [
|
|
26
|
-
'add-to-context',
|
|
27
|
-
// TODO(wittjosiah): Factor out to an ECHO blueprint.
|
|
28
|
-
'get-schemas',
|
|
29
|
-
'add-schema',
|
|
30
|
-
'create-record',
|
|
31
|
-
// TODO(wittjosiah): Factor out to a generic app-framework blueprint.
|
|
32
|
-
'open-item',
|
|
33
|
-
// TODO(burdon): Anthropic only.
|
|
34
|
-
// https://docs.anthropic.com/en/docs/agents-and-tools/tool-use/text-editor-tool#example-str-replace-command
|
|
35
|
-
// AI_TOOL_NOT_FOUND: str_replace_based_edit_tool
|
|
36
|
-
// 'str_replace_based_edit_tool',
|
|
37
|
-
];
|
|
38
|
-
|
|
39
|
-
export const BLUEPRINT_KEY = 'dxos.org/blueprint/assistant';
|
|
40
|
-
|
|
41
|
-
export const createBlueprint = (): Blueprint.Blueprint =>
|
|
42
|
-
Blueprint.make({
|
|
43
|
-
key: BLUEPRINT_KEY,
|
|
44
|
-
name: 'Assistant',
|
|
45
|
-
tools: Blueprint.toolDefinitions({ functions, tools }),
|
|
46
|
-
instructions: templates.system,
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
const blueprint = createBlueprint();
|
|
50
|
-
|
|
51
|
-
// TODO(dmaretskyi): Consider splitting into multiple modules.
|
|
52
|
-
export default (): Capability<any>[] => [
|
|
53
|
-
contributes(Capabilities.Functions, functions),
|
|
54
|
-
contributes(Capabilities.Functions, [agent]),
|
|
55
|
-
contributes(Capabilities.Functions, [research, createResearchNote, entityExtraction]),
|
|
56
|
-
contributes(Capabilities.BlueprintDefinition, blueprint),
|
|
57
|
-
contributes(Capabilities.BlueprintDefinition, RESEARCH_BLUEPRINT),
|
|
58
|
-
// TODO(burdon): Move out of assistant.
|
|
59
|
-
contributes(Capabilities.Functions, [syncLinearIssues]),
|
|
60
|
-
contributes(Capabilities.Functions, [fetchDiscordMessages]),
|
|
61
|
-
contributes(Capabilities.BlueprintDefinition, LINEAR_BLUEPRINT),
|
|
62
|
-
contributes(Capabilities.BlueprintDefinition, DISCORD_BLUEPRINT),
|
|
63
|
-
contributes(Capabilities.BlueprintDefinition, WEB_SEARCH_BLUEPRINT),
|
|
64
|
-
];
|